@zyzgroup/core-vue 0.0.21 → 0.0.22

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.
Files changed (41) hide show
  1. package/ce/style.css +1 -1
  2. package/ce/yz_custom_element.iife.js +134 -107
  3. package/ce/yz_custom_element.iife.js.map +1 -1
  4. package/ce/yz_custom_element.js +11414 -10519
  5. package/ce/yz_custom_element.js.map +1 -1
  6. package/ce/yz_custom_element.umd.cjs +134 -107
  7. package/ce/yz_custom_element.umd.cjs.map +1 -1
  8. package/dist/style.css +1 -1
  9. package/dist/zyzgroup_core_vue.iife.js +47 -38
  10. package/dist/zyzgroup_core_vue.iife.js.map +1 -1
  11. package/dist/zyzgroup_core_vue.js +5970 -5177
  12. package/dist/zyzgroup_core_vue.js.map +1 -1
  13. package/dist/zyzgroup_core_vue.umd.cjs +49 -40
  14. package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
  15. package/package.json +1 -1
  16. package/types/components/Accordion.ce.vue.d.ts +5 -5
  17. package/types/components/Accordion.vue.d.ts +5 -5
  18. package/types/components/Container.ce.vue.d.ts +78 -0
  19. package/types/components/Container.vue.d.ts +78 -0
  20. package/types/components/chat/ClockFlipper.ce.vue.d.ts +69 -0
  21. package/types/components/chat/ClockFlipper.vue.d.ts +69 -0
  22. package/types/components/chat/RingText.ce.vue.d.ts +49 -0
  23. package/types/components/chat/RingText.vue.d.ts +49 -0
  24. package/types/components/effect/CSSAnimation.ce.vue.d.ts +92 -0
  25. package/types/components/effect/CSSAnimation.vue.d.ts +92 -0
  26. package/types/components/effect/Circle.ce.vue.d.ts +62 -0
  27. package/types/components/effect/Circle.vue.d.ts +62 -0
  28. package/types/components/effect/Float.ce.vue.d.ts +72 -0
  29. package/types/components/effect/Float.vue.d.ts +72 -0
  30. package/types/components/effect/LineDouble.ce.vue.d.ts +77 -0
  31. package/types/components/effect/LineDouble.vue.d.ts +77 -0
  32. package/types/components/effect/LineSingle.ce.vue.d.ts +77 -0
  33. package/types/components/effect/LineSingle.vue.d.ts +77 -0
  34. package/types/components/effect/Slide.ce.vue.d.ts +67 -0
  35. package/types/components/effect/Slide.vue.d.ts +67 -0
  36. package/types/components/effect/SlideCorner.ce.vue.d.ts +67 -0
  37. package/types/components/effect/SlideCorner.vue.d.ts +67 -0
  38. package/types/components/effect/TextBackgroundClip.ce.vue.d.ts +34 -0
  39. package/types/components/effect/TextBackgroundClip.vue.d.ts +34 -0
  40. package/types/lib.d.ts +11 -2
  41. package/types/types.d.ts +3 -0
@@ -1,33 +1,33 @@
1
- var YZCustomElement=function(yt){"use strict";/**
1
+ var YZCustomElement=function(we){"use strict";/**
2
2
  * @vue/shared v3.4.25
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function In(s,e){const t=new Set(s.split(","));return e?n=>t.has(n.toLowerCase()):n=>t.has(n)}const Ke={}.NODE_ENV!=="production"?Object.freeze({}):{},Dn={}.NODE_ENV!=="production"?Object.freeze([]):[],bt=()=>{},sd=()=>!1,Wn=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Ni=s=>s.startsWith("onUpdate:"),lt=Object.assign,Qr=(s,e)=>{const t=s.indexOf(e);t>-1&&s.splice(t,1)},nd=Object.prototype.hasOwnProperty,Ve=(s,e)=>nd.call(s,e),ve=Array.isArray,an=s=>$i(s)==="[object Map]",tl=s=>$i(s)==="[object Set]",Oe=s=>typeof s=="function",mt=s=>typeof s=="string",ln=s=>typeof s=="symbol",Xe=s=>s!==null&&typeof s=="object",Jr=s=>(Xe(s)||Oe(s))&&Oe(s.then)&&Oe(s.catch),sl=Object.prototype.toString,$i=s=>sl.call(s),eo=s=>$i(s).slice(8,-1),nl=s=>$i(s)==="[object Object]",to=s=>mt(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Xn=In(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),id=In("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Mi=s=>{const e=Object.create(null);return t=>e[t]||(e[t]=s(t))},rd=/-(\w)/g,Cs=Mi(s=>s.replace(rd,(e,t)=>t?t.toUpperCase():"")),od=/\B([A-Z])/g,Wt=Mi(s=>s.replace(od,"-$1").toLowerCase()),Ai=Mi(s=>s.charAt(0).toUpperCase()+s.slice(1)),cn=Mi(s=>s?`on${Ai(s)}`:""),Gs=(s,e)=>!Object.is(s,e),Un=(s,e)=>{for(let t=0;t<s.length;t++)s[t](e)},il=(s,e,t)=>{Object.defineProperty(s,e,{configurable:!0,enumerable:!1,value:t})},ad=s=>{const e=parseFloat(s);return isNaN(e)?s:e},rl=s=>{const e=mt(s)?Number(s):NaN;return isNaN(e)?s:e};let ol;const so=()=>ol||(ol=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function M(s){if(ve(s)){const e={};for(let t=0;t<s.length;t++){const n=s[t],i=mt(n)?hd(n):M(n);if(i)for(const r in i)e[r]=i[r]}return e}else if(mt(s)||Xe(s))return s}const ld=/;(?![^(]*\))/g,cd=/:([^]+)/,ud=/\/\*[^]*?\*\//g;function hd(s){const e={};return s.replace(ud,"").split(ld).forEach(t=>{if(t){const n=t.split(cd);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function _t(s){let e="";if(mt(s))e=s;else if(ve(s))for(let t=0;t<s.length;t++){const n=_t(s[t]);n&&(e+=n+" ")}else if(Xe(s))for(const t in s)s[t]&&(e+=t+" ");return e.trim()}const dd=In("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function al(s){return!!s||s===""}const me=s=>mt(s)?s:s==null?"":ve(s)||Xe(s)&&(s.toString===sl||!Oe(s.toString))?JSON.stringify(s,ll,2):String(s),ll=(s,e)=>e&&e.__v_isRef?ll(s,e.value):an(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[n,i],r)=>(t[no(n,r)+" =>"]=i,t),{})}:tl(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>no(t))}:ln(e)?no(e):Xe(e)&&!ve(e)&&!nl(e)?String(e):e,no=(s,e="")=>{var t;return ln(s)?`Symbol(${(t=s.description)!=null?t:e})`:s};/**
5
+ **//*! #__NO_SIDE_EFFECTS__ */function $n(s,t){const e=new Set(s.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const te={}.NODE_ENV!=="production"?Object.freeze({}):{},Nn={}.NODE_ENV!=="production"?Object.freeze([]):[],ke=()=>{},vd=()=>!1,Zn=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),zi=s=>s.startsWith("onUpdate:"),pe=Object.assign,no=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},bd=Object.prototype.hasOwnProperty,Lt=(s,t)=>bd.call(s,t),vt=Array.isArray,ln=s=>Li(s)==="[object Map]",al=s=>Li(s)==="[object Set]",Ot=s=>typeof s=="function",be=s=>typeof s=="string",cn=s=>typeof s=="symbol",qt=s=>s!==null&&typeof s=="object",io=s=>(qt(s)||Ot(s))&&Ot(s.then)&&Ot(s.catch),ll=Object.prototype.toString,Li=s=>ll.call(s),ro=s=>Li(s).slice(8,-1),cl=s=>Li(s)==="[object Object]",oo=s=>be(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,qn=$n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),_d=$n("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Vi=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},xd=/-(\w)/g,Ss=Vi(s=>s.replace(xd,(t,e)=>e?e.toUpperCase():"")),wd=/\B([A-Z])/g,Ze=Vi(s=>s.replace(wd,"-$1").toLowerCase()),Fi=Vi(s=>s.charAt(0).toUpperCase()+s.slice(1)),un=Vi(s=>s?`on${Fi(s)}`:""),Xs=(s,t)=>!Object.is(s,t),Kn=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},ul=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},kd=s=>{const t=parseFloat(s);return isNaN(t)?s:t},hl=s=>{const t=be(s)?Number(s):NaN;return isNaN(t)?s:t};let dl;const ao=()=>dl||(dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function $(s){if(vt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],i=be(n)?Td(n):$(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(be(s)||qt(s))return s}const Cd=/;(?![^(]*\))/g,Sd=/:([^]+)/,Ed=/\/\*[^]*?\*\//g;function Td(s){const t={};return s.replace(Ed,"").split(Cd).forEach(e=>{if(e){const n=e.split(Sd);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function he(s){let t="";if(be(s))t=s;else if(vt(s))for(let e=0;e<s.length;e++){const n=he(s[e]);n&&(t+=n+" ")}else if(qt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Od=$n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function fl(s){return!!s||s===""}const pt=s=>be(s)?s:s==null?"":vt(s)||qt(s)&&(s.toString===ll||!Ot(s.toString))?JSON.stringify(s,pl,2):String(s),pl=(s,t)=>t&&t.__v_isRef?pl(s,t.value):ln(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],r)=>(e[lo(n,r)+" =>"]=i,e),{})}:al(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>lo(e))}:cn(t)?lo(t):qt(t)&&!vt(t)&&!cl(t)?String(t):t,lo=(s,t="")=>{var e;return cn(s)?`Symbol(${(e=s.description)!=null?e:t})`:s};/**
6
6
  * @vue/reactivity v3.4.25
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function Bs(s,...e){console.warn(`[Vue warn] ${s}`,...e)}let is;class fd{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=is,!e&&is&&(this.index=(is.scopes||(is.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=is;try{return is=this,e()}finally{is=t}}else({}).NODE_ENV!=="production"&&Bs("cannot run an inactive effect scope.")}on(){is=this}off(){is=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){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 pd(s,e=is){e&&e.active&&e.effects.push(s)}function md(){return is}let un;class io{constructor(e,t,n,i){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,pd(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ss();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(gd(t.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),ks()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=js,t=un;try{return js=!0,un=this,this._runnings++,cl(this),this.fn()}finally{ul(this),this._runnings--,un=t,js=e}}stop(){var e;this.active&&(cl(this),ul(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function gd(s){return s.value}function cl(s){s._trackId++,s._depsLength=0}function ul(s){if(s.deps.length>s._depsLength){for(let e=s._depsLength;e<s.deps.length;e++)hl(s.deps[e],s);s.deps.length=s._depsLength}}function hl(s,e){const t=s.get(e);t!==void 0&&e._trackId!==t&&(s.delete(e),s.size===0&&s.cleanup())}let js=!0,ro=0;const dl=[];function Ss(){dl.push(js),js=!1}function ks(){const s=dl.pop();js=s===void 0?!0:s}function oo(){ro++}function ao(){for(ro--;!ro&&lo.length;)lo.shift()()}function fl(s,e,t){var n;if(e.get(s)!==s._trackId){e.set(s,s._trackId);const i=s.deps[s._depsLength];i!==e?(i&&hl(i,s),s.deps[s._depsLength++]=e):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,lt({effect:s},t)))}}const lo=[];function pl(s,e,t){var n;oo();for(const i of s.keys()){let r;i._dirtyLevel<e&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=e),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,lt({effect:i},t))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&lo.push(i.scheduler)))}ao()}const ml=(s,e)=>{const t=new Map;return t.cleanup=s,t.computed=e,t},co=new WeakMap,hn=Symbol({}.NODE_ENV!=="production"?"iterate":""),uo=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function Pt(s,e,t){if(js&&un){let n=co.get(s);n||co.set(s,n=new Map);let i=n.get(t);i||n.set(t,i=ml(()=>n.delete(t))),fl(un,i,{}.NODE_ENV!=="production"?{target:s,type:e,key:t}:void 0)}}function ds(s,e,t,n,i,r){const o=co.get(s);if(!o)return;let a=[];if(e==="clear")a=[...o.values()];else if(t==="length"&&ve(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!ln(u)&&u>=l)&&a.push(c)})}else switch(t!==void 0&&a.push(o.get(t)),e){case"add":ve(s)?to(t)&&a.push(o.get("length")):(a.push(o.get(hn)),an(s)&&a.push(o.get(uo)));break;case"delete":ve(s)||(a.push(o.get(hn)),an(s)&&a.push(o.get(uo)));break;case"set":an(s)&&a.push(o.get(hn));break}oo();for(const l of a)l&&pl(l,4,{}.NODE_ENV!=="production"?{target:s,type:e,key:t,newValue:n,oldValue:i,oldTarget:r}:void 0);ao()}const vd=In("__proto__,__v_isRef,__isVue"),gl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(ln)),vl=yd();function yd(){const s={};return["includes","indexOf","lastIndexOf"].forEach(e=>{s[e]=function(...t){const n=Ne(this);for(let r=0,o=this.length;r<o;r++)Pt(n,"get",r+"");const i=n[e](...t);return i===-1||i===!1?n[e](...t.map(Ne)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{s[e]=function(...t){Ss(),oo();const n=Ne(this)[e].apply(this,t);return ao(),ks(),n}}),s}function bd(s){ln(s)||(s=String(s));const e=Ne(this);return Pt(e,"has",s),e.hasOwnProperty(s)}class yl{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const i=this._isReadonly,r=this._isShallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return r;if(t==="__v_raw")return n===(i?r?Pl:Ol:r?Tl:El).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=ve(e);if(!i){if(o&&Ve(vl,t))return Reflect.get(vl,t,n);if(t==="hasOwnProperty")return bd}const a=Reflect.get(e,t,n);return(ln(t)?gl.has(t):vd(t))||(i||Pt(e,"get",t),r)?a:It(a)?o&&to(t)?a:a.value:Xe(a)?i?Il(a):kt(a):a}}class bl extends yl{constructor(e=!1){super(!1,e)}set(e,t,n,i){let r=e[t];if(!this._isShallow){const l=dn(r);if(!fn(n)&&!dn(n)&&(r=Ne(r),n=Ne(n)),!ve(e)&&It(r)&&!It(n))return l?!1:(r.value=n,!0)}const o=ve(e)&&to(t)?Number(t)<e.length:Ve(e,t),a=Reflect.set(e,t,n,i);return e===Ne(i)&&(o?Gs(n,r)&&ds(e,"set",t,n,r):ds(e,"add",t,n)),a}deleteProperty(e,t){const n=Ve(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&ds(e,"delete",t,void 0,i),r}has(e,t){const n=Reflect.has(e,t);return(!ln(t)||!gl.has(t))&&Pt(e,"has",t),n}ownKeys(e){return Pt(e,"iterate",ve(e)?"length":hn),Reflect.ownKeys(e)}}class _l extends yl{constructor(e=!1){super(!0,e)}set(e,t){return{}.NODE_ENV!=="production"&&Bs(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return{}.NODE_ENV!=="production"&&Bs(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const _d=new bl,xd=new _l,wd=new bl(!0),Cd=new _l(!0),ho=s=>s,Ri=s=>Reflect.getPrototypeOf(s);function Vi(s,e,t=!1,n=!1){s=s.__v_raw;const i=Ne(s),r=Ne(e);t||(Gs(e,r)&&Pt(i,"get",e),Pt(i,"get",r));const{has:o}=Ri(i),a=n?ho:t?po:qn;if(o.call(i,e))return a(s.get(e));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(e)}function Li(s,e=!1){const t=this.__v_raw,n=Ne(t),i=Ne(s);return e||(Gs(s,i)&&Pt(n,"has",s),Pt(n,"has",i)),s===i?t.has(s):t.has(s)||t.has(i)}function zi(s,e=!1){return s=s.__v_raw,!e&&Pt(Ne(s),"iterate",hn),Reflect.get(s,"size",s)}function xl(s){s=Ne(s);const e=Ne(this);return Ri(e).has.call(e,s)||(e.add(s),ds(e,"add",s,s)),this}function wl(s,e){e=Ne(e);const t=Ne(this),{has:n,get:i}=Ri(t);let r=n.call(t,s);r?{}.NODE_ENV!=="production"&&kl(t,n,s):(s=Ne(s),r=n.call(t,s));const o=i.call(t,s);return t.set(s,e),r?Gs(e,o)&&ds(t,"set",s,e,o):ds(t,"add",s,e),this}function Cl(s){const e=Ne(this),{has:t,get:n}=Ri(e);let i=t.call(e,s);i?{}.NODE_ENV!=="production"&&kl(e,t,s):(s=Ne(s),i=t.call(e,s));const r=n?n.call(e,s):void 0,o=e.delete(s);return i&&ds(e,"delete",s,void 0,r),o}function Sl(){const s=Ne(this),e=s.size!==0,t={}.NODE_ENV!=="production"?an(s)?new Map(s):new Set(s):void 0,n=s.clear();return e&&ds(s,"clear",void 0,void 0,t),n}function Fi(s,e){return function(n,i){const r=this,o=r.__v_raw,a=Ne(o),l=e?ho:s?po:qn;return!s&&Pt(a,"iterate",hn),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Gi(s,e,t){return function(...n){const i=this.__v_raw,r=Ne(i),o=an(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=t?ho:e?po:qn;return!e&&Pt(r,"iterate",l?uo:hn),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Ys(s){return function(...e){if({}.NODE_ENV!=="production"){const t=e[0]?`on key "${e[0]}" `:"";Bs(`${Ai(s)} operation ${t}failed: target is readonly.`,Ne(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Sd(){const s={get(r){return Vi(this,r)},get size(){return zi(this)},has:Li,add:xl,set:wl,delete:Cl,clear:Sl,forEach:Fi(!1,!1)},e={get(r){return Vi(this,r,!1,!0)},get size(){return zi(this)},has:Li,add:xl,set:wl,delete:Cl,clear:Sl,forEach:Fi(!1,!0)},t={get(r){return Vi(this,r,!0)},get size(){return zi(this,!0)},has(r){return Li.call(this,r,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Fi(!0,!1)},n={get(r){return Vi(this,r,!0,!0)},get size(){return zi(this,!0)},has(r){return Li.call(this,r,!0)},add:Ys("add"),set:Ys("set"),delete:Ys("delete"),clear:Ys("clear"),forEach:Fi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Gi(r,!1,!1),t[r]=Gi(r,!0,!1),e[r]=Gi(r,!1,!0),n[r]=Gi(r,!0,!0)}),[s,t,e,n]}const[kd,Ed,Td,Od]=Sd();function Bi(s,e){const t=e?s?Od:Td:s?Ed:kd;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(Ve(t,i)&&i in n?t:n,i,r)}const Pd={get:Bi(!1,!1)},Id={get:Bi(!1,!0)},Dd={get:Bi(!0,!1)},Nd={get:Bi(!0,!0)};function kl(s,e,t){const n=Ne(t);if(n!==t&&e.call(s,n)){const i=eo(s);Bs(`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 El=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Pl=new WeakMap;function $d(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Md(s){return s.__v_skip||!Object.isExtensible(s)?0:$d(eo(s))}function kt(s){return dn(s)?s:ji(s,!1,_d,Pd,El)}function Ad(s){return ji(s,!1,wd,Id,Tl)}function Il(s){return ji(s,!0,xd,Dd,Ol)}function Es(s){return ji(s,!0,Cd,Nd,Pl)}function ji(s,e,t,n,i){if(!Xe(s))return{}.NODE_ENV!=="production"&&Bs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(e&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=Md(s);if(o===0)return s;const a=new Proxy(s,o===2?n:t);return i.set(s,a),a}function Nn(s){return dn(s)?Nn(s.__v_raw):!!(s&&s.__v_isReactive)}function dn(s){return!!(s&&s.__v_isReadonly)}function fn(s){return!!(s&&s.__v_isShallow)}function fo(s){return s?!!s.__v_raw:!1}function Ne(s){const e=s&&s.__v_raw;return e?Ne(e):s}function Rd(s){return Object.isExtensible(s)&&il(s,"__v_skip",!0),s}const qn=s=>Xe(s)?kt(s):s,po=s=>Xe(s)?Il(s):s,Vd="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 Dl{constructor(e,t,n,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new io(()=>e(this._value),()=>Yi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Ne(this);return(!e._cacheable||e.effect.dirty)&&Gs(e._value,e._value=e.effect.run())&&Yi(e,4),Nl(e),e.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Bs(Vd,`
9
+ **/function Us(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let os;class Id{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=os,!t&&os&&(this.index=(os.scopes||(os.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=os;try{return os=this,t()}finally{os=e}}else({}).NODE_ENV!=="production"&&Us("cannot run an inactive effect scope.")}on(){os=this}off(){os=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 Pd(s,t=os){t&&t.active&&t.effects.push(s)}function Dd(){return os}let hn;class co{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,Pd(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Es();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&($d(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Ts()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Hs,e=hn;try{return Hs=!0,hn=this,this._runnings++,ml(this),this.fn()}finally{gl(this),this._runnings--,hn=e,Hs=t}}stop(){var t;this.active&&(ml(this),gl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function $d(s){return s.value}function ml(s){s._trackId++,s._depsLength=0}function gl(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)yl(s.deps[t],s);s.deps.length=s._depsLength}}function yl(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Hs=!0,uo=0;const vl=[];function Es(){vl.push(Hs),Hs=!1}function Ts(){const s=vl.pop();Hs=s===void 0?!0:s}function ho(){uo++}function fo(){for(uo--;!uo&&po.length;)po.shift()()}function bl(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&&yl(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,pe({effect:s},e)))}}const po=[];function _l(s,t,e){var n;ho();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,pe({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&po.push(i.scheduler)))}fo()}const xl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},mo=new WeakMap,dn=Symbol({}.NODE_ENV!=="production"?"iterate":""),go=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function De(s,t,e){if(Hs&&hn){let n=mo.get(s);n||mo.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=xl(()=>n.delete(e))),bl(hn,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function fs(s,t,e,n,i,r){const o=mo.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&vt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!cn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":vt(s)?oo(e)&&a.push(o.get("length")):(a.push(o.get(dn)),ln(s)&&a.push(o.get(go)));break;case"delete":vt(s)||(a.push(o.get(dn)),ln(s)&&a.push(o.get(go)));break;case"set":ln(s)&&a.push(o.get(dn));break}ho();for(const l of a)l&&_l(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);fo()}const Nd=$n("__proto__,__v_isRef,__isVue"),wl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(cn)),kl=Md();function Md(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Mt(this);for(let r=0,o=this.length;r<o;r++)De(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Mt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){Es(),ho();const n=Mt(this)[t].apply(this,e);return fo(),Ts(),n}}),s}function Rd(s){cn(s)||(s=String(s));const t=Mt(this);return De(t,"has",s),t.hasOwnProperty(s)}class Cl{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?Rl:Ml:r?Nl:$l).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=vt(t);if(!i){if(o&&Lt(kl,e))return Reflect.get(kl,e,n);if(e==="hasOwnProperty")return Rd}const a=Reflect.get(t,e,n);return(cn(e)?wl.has(e):Nd(e))||(i||De(t,"get",e),r)?a:$e(a)?o&&oo(e)?a:a.value:qt(a)?i?Al(a):oe(a):a}}class Sl extends Cl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=fn(r);if(!pn(n)&&!fn(n)&&(r=Mt(r),n=Mt(n)),!vt(t)&&$e(r)&&!$e(n))return l?!1:(r.value=n,!0)}const o=vt(t)&&oo(e)?Number(e)<t.length:Lt(t,e),a=Reflect.set(t,e,n,i);return t===Mt(i)&&(o?Xs(n,r)&&fs(t,"set",e,n,r):fs(t,"add",e,n)),a}deleteProperty(t,e){const n=Lt(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&fs(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!cn(e)||!wl.has(e))&&De(t,"has",e),n}ownKeys(t){return De(t,"iterate",vt(t)?"length":dn),Reflect.ownKeys(t)}}class El extends Cl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Us(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Us(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Ad=new Sl,zd=new El,Ld=new Sl(!0),Vd=new El(!0),yo=s=>s,Gi=s=>Reflect.getPrototypeOf(s);function Bi(s,t,e=!1,n=!1){s=s.__v_raw;const i=Mt(s),r=Mt(t);e||(Xs(t,r)&&De(i,"get",t),De(i,"get",r));const{has:o}=Gi(i),a=n?yo:e?bo:Qn;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 Yi(s,t=!1){const e=this.__v_raw,n=Mt(e),i=Mt(s);return t||(Xs(s,i)&&De(n,"has",s),De(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function ji(s,t=!1){return s=s.__v_raw,!t&&De(Mt(s),"iterate",dn),Reflect.get(s,"size",s)}function Tl(s){s=Mt(s);const t=Mt(this);return Gi(t).has.call(t,s)||(t.add(s),fs(t,"add",s,s)),this}function Ol(s,t){t=Mt(t);const e=Mt(this),{has:n,get:i}=Gi(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&Dl(e,n,s):(s=Mt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?Xs(t,o)&&fs(e,"set",s,t,o):fs(e,"add",s,t),this}function Il(s){const t=Mt(this),{has:e,get:n}=Gi(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&Dl(t,e,s):(s=Mt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&fs(t,"delete",s,void 0,r),o}function Pl(){const s=Mt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?ln(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&fs(s,"clear",void 0,void 0,e),n}function Xi(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Mt(o),l=t?yo:s?bo:Qn;return!s&&De(a,"iterate",dn),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Ui(s,t,e){return function(...n){const i=this.__v_raw,r=Mt(i),o=ln(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?yo:t?bo:Qn;return!t&&De(r,"iterate",l?go:dn),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[u(h[0]),u(h[1])]:u(h),done:f}},[Symbol.iterator](){return this}}}}function Ws(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Us(`${Fi(s)} operation ${e}failed: target is readonly.`,Mt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Fd(){const s={get(r){return Bi(this,r)},get size(){return ji(this)},has:Yi,add:Tl,set:Ol,delete:Il,clear:Pl,forEach:Xi(!1,!1)},t={get(r){return Bi(this,r,!1,!0)},get size(){return ji(this)},has:Yi,add:Tl,set:Ol,delete:Il,clear:Pl,forEach:Xi(!1,!0)},e={get(r){return Bi(this,r,!0)},get size(){return ji(this,!0)},has(r){return Yi.call(this,r,!0)},add:Ws("add"),set:Ws("set"),delete:Ws("delete"),clear:Ws("clear"),forEach:Xi(!0,!1)},n={get(r){return Bi(this,r,!0,!0)},get size(){return ji(this,!0)},has(r){return Yi.call(this,r,!0)},add:Ws("add"),set:Ws("set"),delete:Ws("delete"),clear:Ws("clear"),forEach:Xi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ui(r,!1,!1),e[r]=Ui(r,!0,!1),t[r]=Ui(r,!1,!0),n[r]=Ui(r,!0,!0)}),[s,e,t,n]}const[Gd,Bd,Yd,jd]=Fd();function Hi(s,t){const e=t?s?jd:Yd:s?Bd:Gd;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(Lt(e,i)&&i in n?e:n,i,r)}const Xd={get:Hi(!1,!1)},Ud={get:Hi(!1,!0)},Hd={get:Hi(!0,!1)},Wd={get:Hi(!0,!0)};function Dl(s,t,e){const n=Mt(e);if(n!==e&&t.call(s,n)){const i=ro(s);Us(`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 $l=new WeakMap,Nl=new WeakMap,Ml=new WeakMap,Rl=new WeakMap;function Zd(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qd(s){return s.__v_skip||!Object.isExtensible(s)?0:Zd(ro(s))}function oe(s){return fn(s)?s:Wi(s,!1,Ad,Xd,$l)}function Kd(s){return Wi(s,!1,Ld,Ud,Nl)}function Al(s){return Wi(s,!0,zd,Hd,Ml)}function Os(s){return Wi(s,!0,Vd,Wd,Rl)}function Wi(s,t,e,n,i){if(!qt(s))return{}.NODE_ENV!=="production"&&Us(`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=qd(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function Mn(s){return fn(s)?Mn(s.__v_raw):!!(s&&s.__v_isReactive)}function fn(s){return!!(s&&s.__v_isReadonly)}function pn(s){return!!(s&&s.__v_isShallow)}function vo(s){return s?!!s.__v_raw:!1}function Mt(s){const t=s&&s.__v_raw;return t?Mt(t):s}function Qd(s){return Object.isExtensible(s)&&ul(s,"__v_skip",!0),s}const Qn=s=>qt(s)?oe(s):s,bo=s=>qt(s)?Al(s):s,Jd="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 zl{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 co(()=>t(this._value),()=>Zi(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=Mt(this);return(!t._cacheable||t.effect.dirty)&&Xs(t._value,t._value=t.effect.run())&&Zi(t,4),Ll(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Us(Jd,`
10
10
 
11
- getter: `,this.getter),Yi(e,2)),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Ld(s,e,t=!1){let n,i;const r=Oe(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{Bs("Write operation failed: computed value is readonly")}:bt):(n=s.get,i=s.set);const o=new Dl(n,i,r||!i,t);return{}.NODE_ENV!=="production"&&e&&!t&&(o.effect.onTrack=e.onTrack,o.effect.onTrigger=e.onTrigger),o}function Nl(s){var e;js&&un&&(s=Ne(s),fl(un,(e=s.dep)!=null?e:s.dep=ml(()=>s.dep=void 0,s instanceof Dl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Yi(s,e=4,t){s=Ne(s);const n=s.dep;n&&pl(n,e,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:t}:void 0)}function It(s){return!!(s&&s.__v_isRef===!0)}function P(s){return zd(s,!1)}function zd(s,e){return It(s)?s:new Fd(s,e)}class Fd{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ne(e),this._value=t?e:qn(e)}get value(){return Nl(this),this._value}set value(e){const t=this.__v_isShallow||fn(e)||dn(e);e=t?e:Ne(e),Gs(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:qn(e),Yi(this,4,e))}}function ke(s){return It(s)?s.value:s}const Gd={get:(s,e,t)=>ke(Reflect.get(s,e,t)),set:(s,e,t,n)=>{const i=s[e];return It(i)&&!It(t)?(i.value=t,!0):Reflect.set(s,e,t,n)}};function $l(s){return Nn(s)?s:new Proxy(s,Gd)}/**
11
+ getter: `,this.getter),Zi(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function tf(s,t,e=!1){let n,i;const r=Ot(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{Us("Write operation failed: computed value is readonly")}:ke):(n=s.get,i=s.set);const o=new zl(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function Ll(s){var t;Hs&&hn&&(s=Mt(s),bl(hn,(t=s.dep)!=null?t:s.dep=xl(()=>s.dep=void 0,s instanceof zl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Zi(s,t=4,e){s=Mt(s);const n=s.dep;n&&_l(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function $e(s){return!!(s&&s.__v_isRef===!0)}function P(s){return ef(s,!1)}function ef(s,t){return $e(s)?s:new sf(s,t)}class sf{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Mt(t),this._value=e?t:Qn(t)}get value(){return Ll(this),this._value}set value(t){const e=this.__v_isShallow||pn(t)||fn(t);t=e?t:Mt(t),Xs(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Qn(t),Zi(this,4,t))}}function wt(s){return $e(s)?s.value:s}const nf={get:(s,t,e)=>wt(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return $e(i)&&!$e(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function Vl(s){return Mn(s)?s:new Proxy(s,nf)}/**
12
12
  * @vue/runtime-core v3.4.25
13
13
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
14
14
  * @license MIT
15
- **/const pn=[];function Hi(s){pn.push(s)}function Wi(){pn.pop()}function re(s,...e){Ss();const t=pn.length?pn[pn.length-1].component:null,n=t&&t.appContext.config.warnHandler,i=Bd();if(n)Ts(n,t,11,[s+e.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),t&&t.proxy,i.map(({vnode:r})=>`at <${ur(t,r.type)}>`).join(`
16
- `),i]);else{const r=[`[Vue warn]: ${s}`,...e];i.length&&r.push(`
17
- `,...jd(i)),console.warn(...r)}ks()}function Bd(){let s=pn[pn.length-1];if(!s)return[];const e=[];for(;s;){const t=e[0];t&&t.vnode===s?t.recurseCount++:e.push({vnode:s,recurseCount:0});const n=s.component&&s.component.parent;s=n&&n.vnode}return e}function jd(s){const e=[];return s.forEach((t,n)=>{e.push(...n===0?[]:[`
18
- `],...Yd(t))}),e}function Yd({vnode:s,recurseCount:e}){const t=e>0?`... (${e} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${ur(s.component,s.type,n)}`,r=">"+t;return s.props?[i,...Hd(s.props),r]:[i+r]}function Hd(s){const e=[],t=Object.keys(s);return t.slice(0,3).forEach(n=>{e.push(...Ml(n,s[n]))}),t.length>3&&e.push(" ..."),e}function Ml(s,e,t){return mt(e)?(e=JSON.stringify(e),t?e:[`${s}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${s}=${e}`]:It(e)?(e=Ml(s,Ne(e.value),!0),t?e:[`${s}=Ref<`,e,">"]):Oe(e)?[`${s}=fn${e.name?`<${e.name}>`:""}`]:(e=Ne(e),t?e:[`${s}=`,e])}const mo={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 Ts(s,e,t,n){try{return n?s(...n):s()}catch(i){Zn(i,e,t)}}function rs(s,e,t,n){if(Oe(s)){const i=Ts(s,e,t,n);return i&&Jr(i)&&i.catch(r=>{Zn(r,e,t)}),i}if(ve(s)){const i=[];for(let r=0;r<s.length;r++)i.push(rs(s[r],e,t,n));return i}else({}).NODE_ENV!=="production"&&re(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Zn(s,e,t,n=!0){const i=e?e.vnode:null;if(e){let r=e.parent;const o=e.proxy,a={}.NODE_ENV!=="production"?mo[t]:`https://vuejs.org/error-reference/#runtime-${t}`;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=e.appContext.config.errorHandler;if(l){Ss(),Ts(l,null,10,[s,o,a]),ks();return}}Wd(s,t,i,n)}function Wd(s,e,t,n=!0){if({}.NODE_ENV!=="production"){const i=mo[e];if(t&&Hi(t),re(`Unhandled error${i?` during execution of ${i}`:""}`),t&&Wi(),n)throw s;console.error(s)}else console.error(s)}let Kn=!1,go=!1;const Mt=[];let fs=0;const $n=[];let Os=null,Hs=0;const Al=Promise.resolve();let vo=null;const Xd=100;function Xi(s){const e=vo||Al;return s?e.then(this?s.bind(this):s):e}function Ud(s){let e=fs+1,t=Mt.length;for(;e<t;){const n=e+t>>>1,i=Mt[n],r=Qn(i);r<s||r===s&&i.pre?e=n+1:t=n}return e}function Ui(s){(!Mt.length||!Mt.includes(s,Kn&&s.allowRecurse?fs+1:fs))&&(s.id==null?Mt.push(s):Mt.splice(Ud(s.id),0,s),Rl())}function Rl(){!Kn&&!go&&(go=!0,vo=Al.then(Fl))}function qd(s){const e=Mt.indexOf(s);e>fs&&Mt.splice(e,1)}function Vl(s){ve(s)?$n.push(...s):(!Os||!Os.includes(s,s.allowRecurse?Hs+1:Hs))&&$n.push(s),Rl()}function Ll(s,e,t=Kn?fs+1:0){for({}.NODE_ENV!=="production"&&(e=e||new Map);t<Mt.length;t++){const n=Mt[t];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&yo(e,n))continue;Mt.splice(t,1),t--,n()}}}function zl(s){if($n.length){const e=[...new Set($n)].sort((t,n)=>Qn(t)-Qn(n));if($n.length=0,Os){Os.push(...e);return}for(Os=e,{}.NODE_ENV!=="production"&&(s=s||new Map),Hs=0;Hs<Os.length;Hs++)({}).NODE_ENV!=="production"&&yo(s,Os[Hs])||Os[Hs]();Os=null,Hs=0}}const Qn=s=>s.id==null?1/0:s.id,Zd=(s,e)=>{const t=Qn(s)-Qn(e);if(t===0){if(s.pre&&!e.pre)return-1;if(e.pre&&!s.pre)return 1}return t};function Fl(s){go=!1,Kn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Mt.sort(Zd);const e={}.NODE_ENV!=="production"?t=>yo(s,t):bt;try{for(fs=0;fs<Mt.length;fs++){const t=Mt[fs];if(t&&t.active!==!1){if({}.NODE_ENV!=="production"&&e(t))continue;Ts(t,null,14)}}}finally{fs=0,Mt.length=0,zl(s),Kn=!1,vo=null,(Mt.length||$n.length)&&Fl(s)}}function yo(s,e){if(!s.has(e))s.set(e,1);else{const t=s.get(e);if(t>Xd){const n=e.ownerInstance,i=n&&Ac(n.type);return Zn(`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(e,t+1)}}let mn=!1;const Mn=new Set;({}).NODE_ENV!=="production"&&(so().__VUE_HMR_RUNTIME__={createRecord:bo(Gl),rerender:bo(Jd),reload:bo(ef)});const gn=new Map;function Kd(s){const e=s.type.__hmrId;let t=gn.get(e);t||(Gl(e,s.type),t=gn.get(e)),t.instances.add(s)}function Qd(s){gn.get(s.type.__hmrId).instances.delete(s)}function Gl(s,e){return gn.has(s)?!1:(gn.set(s,{initialDef:Jn(e),instances:new Set}),!0)}function Jn(s){return Rc(s)?s.__vccOpts:s}function Jd(s,e){const t=gn.get(s);t&&(t.initialDef.render=e,[...t.instances].forEach(n=>{e&&(n.render=e,Jn(n.type).render=e),n.renderCache=[],mn=!0,n.effect.dirty=!0,n.update(),mn=!1}))}function ef(s,e){const t=gn.get(s);if(!t)return;e=Jn(e),Bl(t.initialDef,e);const n=[...t.instances];for(const i of n){const r=Jn(i.type);Mn.has(r)||(r!==t.initialDef&&Bl(r,e),Mn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(Mn.add(r),i.ceReload(e.styles),Mn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ui(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.")}Vl(()=>{for(const i of n)Mn.delete(Jn(i.type))})}function Bl(s,e){lt(s,e);for(const t in s)t!=="__file"&&!(t in e)&&delete s[t]}function bo(s){return(e,t)=>{try{return s(e,t)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ps,ei=[],_o=!1;function ti(s,...e){ps?ps.emit(s,...e):_o||ei.push({event:s,args:e})}function jl(s,e){var t,n;ps=s,ps?(ps.enabled=!0,ei.forEach(({event:i,args:r})=>ps.emit(i,...r)),ei=[]):typeof window<"u"&&window.HTMLElement&&!((n=(t=window.navigator)==null?void 0:t.userAgent)!=null&&n.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{jl(r,e)}),setTimeout(()=>{ps||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_o=!0,ei=[])},3e3)):(_o=!0,ei=[])}function tf(s,e){ti("app:init",s,e,{Fragment:je,Text:oi,Comment:Bt,Static:rr})}function sf(s){ti("app:unmount",s)}const nf=xo("component:added"),Yl=xo("component:updated"),rf=xo("component:removed"),of=s=>{ps&&typeof ps.cleanupBuffer=="function"&&!ps.cleanupBuffer(s)&&rf(s)};/*! #__NO_SIDE_EFFECTS__ */function xo(s){return e=>{ti(s,e.appContext.app,e.uid,e.parent?e.parent.uid:void 0,e)}}const af=Hl("perf:start"),lf=Hl("perf:end");function Hl(s){return(e,t,n)=>{ti(s,e.appContext.app,e.uid,e,t,n)}}function cf(s,e,t){ti("component:emit",s.appContext.app,s,e,t)}function uf(s,e,...t){if(s.isUnmounted)return;const n=s.vnode.props||Ke;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(e in u))(!h||!(cn(e)in h))&&re(`Component emitted event "${e}" but it is neither declared in the emits option nor as an "${cn(e)}" prop.`);else{const f=u[e];Oe(f)&&(f(...t)||re(`Invalid event arguments: event validation failed for event "${e}".`))}}let i=t;const r=e.startsWith("update:"),o=r&&e.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:f}=n[u]||Ke;f&&(i=t.map(d=>mt(d)?d.trim():d)),h&&(i=t.map(ad))}if({}.NODE_ENV!=="production"&&cf(s,e,i),{}.NODE_ENV!=="production"){const u=e.toLowerCase();u!==e&&n[cn(u)]&&re(`Event "${u}" is emitted in component ${ur(s,s.type)} but the handler is registered for "${e}". 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 "${Wt(e)}" instead of "${e}".`)}let a,l=n[a=cn(e)]||n[a=cn(Cs(e))];!l&&r&&(l=n[a=cn(Wt(e))]),l&&rs(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,rs(c,s,6,i)}}function Wl(s,e,t=!1){const n=e.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!Oe(s)){const l=c=>{const u=Wl(c,e,!0);u&&(a=!0,lt(o,u))};!t&&e.mixins.length&&e.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Xe(s)&&n.set(s,null),null):(ve(r)?r.forEach(l=>o[l]=null):lt(o,r),Xe(s)&&n.set(s,o),o)}function qi(s,e){return!s||!Wn(e)?!1:(e=e.slice(2).replace(/Once$/,""),Ve(s,e[0].toLowerCase()+e.slice(1))||Ve(s,Wt(e))||Ve(s,e))}let xt=null,Zi=null;function Ki(s){const e=xt;return xt=s,Zi=s&&s.type.__scopeId||null,e}function Ws(s){Zi=s}function Xs(){Zi=null}function nt(s,e=xt,t){if(!e||s._n)return s;const n=(...i)=>{n._d&&Cc(-1);const r=Ki(e);let o;try{o=s(...i)}finally{Ki(r),n._d&&Cc(1)}return{}.NODE_ENV!=="production"&&Yl(e),o};return n._n=!0,n._c=!0,n._d=!0,n}let wo=!1;function Qi(){wo=!0}function Co(s){const{type:e,vnode:t,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:v}=s,b=Ki(s);let C,O;({}).NODE_ENV!=="production"&&(wo=!1);try{if(t.shapeFlag&4){const Y=i||n,L={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(Y,{get(H,fe,ye){return re(`Property '${String(fe)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(H,fe,ye)}}):Y;C=as(c.call(L,Y,u,{}.NODE_ENV!=="production"?Es(h):h,d,f,m)),O=a}else{const Y=e;({}).NODE_ENV!=="production"&&a===h&&Qi(),C=as(Y.length>1?Y({}.NODE_ENV!=="production"?Es(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Qi(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):Y({}.NODE_ENV!=="production"?Es(h):h,null)),O=e.props?a:hf(a)}}catch(Y){ai.length=0,Zn(Y,s,1),C=ue(Bt)}let $=C,S;if({}.NODE_ENV!=="production"&&C.patchFlag>0&&C.patchFlag&2048&&([$,S]=Xl(C)),O&&v!==!1){const Y=Object.keys(O),{shapeFlag:L}=$;if(Y.length){if(L&7)r&&Y.some(Ni)&&(O=df(O,r)),$=Zs($,O);else if({}.NODE_ENV!=="production"&&!wo&&$.type!==Bt){const H=Object.keys(a),fe=[],ye=[];for(let ge=0,Me=H.length;ge<Me;ge++){const Ae=H[ge];Wn(Ae)?Ni(Ae)||fe.push(Ae[2].toLowerCase()+Ae.slice(3)):ye.push(Ae)}ye.length&&re(`Extraneous non-props attributes (${ye.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),fe.length&&re(`Extraneous non-emits event listeners (${fe.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 t.dirs&&({}.NODE_ENV!=="production"&&!Ul($)&&re("Runtime directive used on component with non-element root node. The directives will not function as intended."),$=Zs($),$.dirs=$.dirs?$.dirs.concat(t.dirs):t.dirs),t.transition&&({}.NODE_ENV!=="production"&&!Ul($)&&re("Component inside <Transition> renders non-element root node that cannot be animated."),$.transition=t.transition),{}.NODE_ENV!=="production"&&S?S($):C=$,Ki(b),C}const Xl=s=>{const e=s.children,t=s.dynamicChildren,n=So(e,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Xl(n)}else return[s,void 0];const i=e.indexOf(n),r=t?t.indexOf(n):-1,o=a=>{e[i]=a,t&&(r>-1?t[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...t,a]))};return[as(n),o]};function So(s,e=!0){let t;for(let n=0;n<s.length;n++){const i=s[n];if(An(i)){if(i.type!==Bt||i.children==="v-if"){if(t)return;if(t=i,{}.NODE_ENV!=="production"&&e&&t.patchFlag>0&&t.patchFlag&2048)return So(t.children)}}else return}return t}const hf=s=>{let e;for(const t in s)(t==="class"||t==="style"||Wn(t))&&((e||(e={}))[t]=s[t]);return e},df=(s,e)=>{const t={};for(const n in s)(!Ni(n)||!(n.slice(9)in e))&&(t[n]=s[n]);return t},Ul=s=>s.shapeFlag&7||s.type===Bt;function ff(s,e,t){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&mn||e.dirs||e.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return n?ql(n,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!qi(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?ql(n,o,c):!0:!!o;return!1}function ql(s,e,t){const n=Object.keys(e);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(e[r]!==s[r]&&!qi(t,r))return!0}return!1}function pf({vnode:s,parent:e},t){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=e.vnode).el=t,e=e.parent;else break}}const mf=Symbol.for("v-ndc"),gf=s=>s.__isSuspense;function vf(s,e){e&&e.pendingBranch?ve(s)?e.effects.push(...s):e.effects.push(s):Vl(s)}const yf=Symbol.for("v-scx"),bf=()=>{{const s=sr(yf);return s||{}.NODE_ENV!=="production"&&re("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Zl(s,e){return ko(s,null,e)}const Ji={};function Ee(s,e,t){return{}.NODE_ENV!=="production"&&!Oe(e)&&re("`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."),ko(s,e,t)}function ko(s,e,{immediate:t,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Ke){if(e&&r){const H=e;e=(...fe)=>{H(...fe),L()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&re('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"&&!e&&(t!==void 0&&re('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&re('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&re('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=H=>{re("Invalid watch source: ",H,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Et,u=H=>n===!0?H:vn(H,n===!1?1:void 0);let h,f=!1,d=!1;if(It(s)?(h=()=>s.value,f=fn(s)):Nn(s)?(h=()=>u(s),f=!0):ve(s)?(d=!0,f=s.some(H=>Nn(H)||fn(H)),h=()=>s.map(H=>{if(It(H))return H.value;if(Nn(H))return u(H);if(Oe(H))return Ts(H,c,2);({}).NODE_ENV!=="production"&&l(H)})):Oe(s)?e?h=()=>Ts(s,c,2):h=()=>(m&&m(),rs(s,c,3,[v])):(h=bt,{}.NODE_ENV!=="production"&&l(s)),e&&n){const H=h;h=()=>vn(H())}let m,v=H=>{m=S.onStop=()=>{Ts(H,c,4),m=S.onStop=void 0}},b;if(lr)if(v=bt,e?t&&rs(e,c,3,[h(),d?[]:void 0,v]):h(),i==="sync"){const H=bf();b=H.__watcherHandles||(H.__watcherHandles=[])}else return bt;let C=d?new Array(s.length).fill(Ji):Ji;const O=()=>{if(!(!S.active||!S.dirty))if(e){const H=S.run();(n||f||(d?H.some((fe,ye)=>Gs(fe,C[ye])):Gs(H,C)))&&(m&&m(),rs(e,c,3,[H,C===Ji?void 0:d&&C[0]===Ji?[]:C,v]),C=H)}else S.run()};O.allowRecurse=!!e;let $;i==="sync"?$=O:i==="post"?$=()=>Gt(O,c&&c.suspense):(O.pre=!0,c&&(O.id=c.uid),$=()=>Ui(O));const S=new io(h,bt,$),Y=md(),L=()=>{S.stop(),Y&&Qr(Y.effects,S)};return{}.NODE_ENV!=="production"&&(S.onTrack=o,S.onTrigger=a),e?t?O():C=S.run():i==="post"?Gt(S.run.bind(S),c&&c.suspense):S.run(),b&&b.push(L),L}function _f(s,e,t){const n=this.proxy,i=mt(s)?s.includes(".")?Kl(n,s):()=>n[s]:s.bind(n,n);let r;Oe(e)?r=e:(r=e.handler,t=e);const o=ui(this),a=ko(i,r.bind(n),t);return o(),a}function Kl(s,e){const t=e.split(".");return()=>{let n=s;for(let i=0;i<t.length&&n;i++)n=n[t[i]];return n}}function vn(s,e,t=0,n){if(!Xe(s)||s.__v_skip)return s;if(e&&e>0){if(t>=e)return s;t++}if(n=n||new Set,n.has(s))return s;if(n.add(s),It(s))vn(s.value,e,t,n);else if(ve(s))for(let i=0;i<s.length;i++)vn(s[i],e,t,n);else if(tl(s)||an(s))s.forEach(i=>{vn(i,e,t,n)});else if(nl(s))for(const i in s)vn(s[i],e,t,n);return s}function Ql(s){id(s)&&re("Do not use built-in directive ids as custom directive id: "+s)}function Ps(s,e){if(xt===null)return{}.NODE_ENV!=="production"&&re("withDirectives can only be used inside render functions."),s;const t=cr(xt)||xt.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<e.length;i++){let[r,o,a,l=Ke]=e[i];r&&(Oe(r)&&(r={mounted:r,updated:r}),r.deep&&vn(o),n.push({dir:r,instance:t,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function yn(s,e,t,n){const i=s.dirs,r=e&&e.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&&(Ss(),rs(l,t,8,[s.el,a,s,e]),ks())}}/*! #__NO_SIDE_EFFECTS__ */function oe(s,e){return Oe(s)?(()=>lt({name:s.name},e,{setup:s}))():s}const si=s=>!!s.type.__asyncLoader,Eo=s=>s.type.__isKeepAlive;function xf(s,e){Jl(s,"a",e)}function wf(s,e){Jl(s,"da",e)}function Jl(s,e,t=Et){const n=s.__wdc||(s.__wdc=()=>{let i=t;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(er(e,n,t),t){let i=t.parent;for(;i&&i.parent;)Eo(i.parent.vnode)&&Cf(n,e,t,i),i=i.parent}}function Cf(s,e,t,n){const i=er(e,s,n,!0);Qe(()=>{Qr(n[e],i)},t)}function er(s,e,t=Et,n=!1){if(t){const i=t[s]||(t[s]=[]),r=e.__weh||(e.__weh=(...o)=>{if(t.isUnmounted)return;Ss();const a=ui(t),l=rs(e,t,s,o);return a(),ks(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=cn(mo[s].replace(/ hook$/,""));re(`${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 Is=s=>(e,t=Et)=>(!lr||s==="sp")&&er(s,(...n)=>e(...n),t),Sf=Is("bm"),Us=Is("m"),kf=Is("bu"),Ef=Is("u"),Tf=Is("bum"),Qe=Is("um"),Of=Is("sp"),Pf=Is("rtg"),If=Is("rtc");function Df(s,e=Et){er("ec",s,e)}function St(s,e,t,n){let i;const r=t&&t[n];if(ve(s)||mt(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=e(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&re(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=e(o+1,o,void 0,r&&r[o])}else if(Xe(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>e(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]=e(s[c],c,a,r&&r[a])}}else i=[];return t&&(t[n]=i),i}function ze(s,e,t={},n,i){if(xt.isCE||xt.parent&&si(xt.parent)&&xt.parent.isCE)return e!=="default"&&(t.name=e),ue("slot",t,n&&n());let r=s[e];({}).NODE_ENV!=="production"&&r&&r.length>1&&(re("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),I();const o=r&&ec(r(t)),a=wt(je,{key:t.key||o&&o.key||`_${e}`},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 ec(s){return s.some(e=>An(e)?!(e.type===Bt||e.type===je&&!ec(e.children)):!0)?s:null}const To=s=>s?Ic(s)?cr(s)||s.proxy:To(s.parent):null,bn=lt(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?Es(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?Es(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?Es(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?Es(s.refs):s.refs,$parent:s=>To(s.parent),$root:s=>To(s.root),$emit:s=>s.emit,$options:s=>Do(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ui(s.update)}),$nextTick:s=>s.n||(s.n=Xi.bind(s.proxy)),$watch:s=>_f.bind(s)}),Oo=s=>s==="_"||s==="$",Po=(s,e)=>s!==Ke&&!s.__isScriptSetup&&Ve(s,e),tc={get({_:s},e){if(e==="__v_skip")return!0;const{ctx:t,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&e==="__isVue")return!0;let c;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return n[e];case 2:return i[e];case 4:return t[e];case 3:return r[e]}else{if(Po(n,e))return o[e]=1,n[e];if(i!==Ke&&Ve(i,e))return o[e]=2,i[e];if((c=s.propsOptions[0])&&Ve(c,e))return o[e]=3,r[e];if(t!==Ke&&Ve(t,e))return o[e]=4,t[e];Io&&(o[e]=0)}}const u=bn[e];let h,f;if(u)return e==="$attrs"?(Pt(s.attrs,"get",""),{}.NODE_ENV!=="production"&&Qi()):{}.NODE_ENV!=="production"&&e==="$slots"&&Pt(s,"get",e),u(s);if((h=a.__cssModules)&&(h=h[e]))return h;if(t!==Ke&&Ve(t,e))return o[e]=4,t[e];if(f=l.config.globalProperties,Ve(f,e))return f[e];({}).NODE_ENV!=="production"&&xt&&(!mt(e)||e.indexOf("__v")!==0)&&(i!==Ke&&Oo(e[0])&&Ve(i,e)?re(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===xt&&re(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:s},e,t){const{data:n,setupState:i,ctx:r}=s;return Po(i,e)?(i[e]=t,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Ve(i,e)?(re(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):n!==Ke&&Ve(n,e)?(n[e]=t,!0):Ve(s.props,e)?({}.NODE_ENV!=="production"&&re(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in s?({}.NODE_ENV!=="production"&&re(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&e in s.appContext.config.globalProperties?Object.defineProperty(r,e,{enumerable:!0,configurable:!0,value:t}):r[e]=t,!0)},has({_:{data:s,setupState:e,accessCache:t,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!t[o]||s!==Ke&&Ve(s,o)||Po(e,o)||(a=r[0])&&Ve(a,o)||Ve(n,o)||Ve(bn,o)||Ve(i.config.globalProperties,o)},defineProperty(s,e,t){return t.get!=null?s._.accessCache[e]=0:Ve(t,"value")&&this.set(s,e,t.value,null),Reflect.defineProperty(s,e,t)}};({}).NODE_ENV!=="production"&&(tc.ownKeys=s=>(re("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 Nf(s){const e={};return Object.defineProperty(e,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(bn).forEach(t=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get:()=>bn[t](s),set:bt})}),e}function $f(s){const{ctx:e,propsOptions:[t]}=s;t&&Object.keys(t).forEach(n=>{Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:bt})})}function Mf(s){const{ctx:e,setupState:t}=s;Object.keys(Ne(t)).forEach(n=>{if(!t.__isScriptSetup){if(Oo(n[0])){re(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>t[n],set:bt})}})}function Af(){return Rf().slots}function Rf(){const s=Oc();return{}.NODE_ENV!=="production"&&!s&&re("useContext() called without active instance."),s.setupContext||(s.setupContext=Mc(s))}function sc(s){return ve(s)?s.reduce((e,t)=>(e[t]=null,e),{}):s}function Vf(){const s=Object.create(null);return(e,t)=>{s[t]?re(`${e} property "${t}" is already defined in ${s[t]}.`):s[t]=e}}let Io=!0;function Lf(s){const e=Do(s),t=s.proxy,n=s.ctx;Io=!1,e.beforeCreate&&nc(e.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:m,activated:v,deactivated:b,beforeDestroy:C,beforeUnmount:O,destroyed:$,unmounted:S,render:Y,renderTracked:L,renderTriggered:H,errorCaptured:fe,serverPrefetch:ye,expose:ge,inheritAttrs:Me,components:Ae,directives:Ue,filters:qe}=e,et={}.NODE_ENV!=="production"?Vf():null;if({}.NODE_ENV!=="production"){const[be]=s.propsOptions;if(be)for(const _e in be)et("Props",_e)}if(c&&zf(c,n,et),o)for(const be in o){const _e=o[be];Oe(_e)?({}.NODE_ENV!=="production"?Object.defineProperty(n,be,{value:_e.bind(t),configurable:!0,enumerable:!0,writable:!0}):n[be]=_e.bind(t),{}.NODE_ENV!=="production"&&et("Methods",be)):{}.NODE_ENV!=="production"&&re(`Method "${be}" has type "${typeof _e}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Oe(i)&&re("The data option must be a function. Plain object usage is no longer supported.");const be=i.call(t,t);if({}.NODE_ENV!=="production"&&Jr(be)&&re("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Xe(be))({}).NODE_ENV!=="production"&&re("data() should return an object.");else if(s.data=kt(be),{}.NODE_ENV!=="production")for(const _e in be)et("Data",_e),Oo(_e[0])||Object.defineProperty(n,_e,{configurable:!0,enumerable:!0,get:()=>be[_e],set:bt})}if(Io=!0,r)for(const be in r){const _e=r[be],te=Oe(_e)?_e.bind(t,t):Oe(_e.get)?_e.get.bind(t,t):bt;({}).NODE_ENV!=="production"&&te===bt&&re(`Computed property "${be}" has no getter.`);const U=!Oe(_e)&&Oe(_e.set)?_e.set.bind(t):{}.NODE_ENV!=="production"?()=>{re(`Write operation failed: computed property "${be}" is readonly.`)}:bt,Ce=wp({get:te,set:U});Object.defineProperty(n,be,{enumerable:!0,configurable:!0,get:()=>Ce.value,set:A=>Ce.value=A}),{}.NODE_ENV!=="production"&&et("Computed",be)}if(a)for(const be in a)ic(a[be],n,t,be);if(l){const be=Oe(l)?l.call(t):l;Reflect.ownKeys(be).forEach(_e=>{Hf(_e,be[_e])})}u&&nc(u,s,"c");function Ge(be,_e){ve(_e)?_e.forEach(te=>be(te.bind(t))):_e&&be(_e.bind(t))}if(Ge(Sf,h),Ge(Us,f),Ge(kf,d),Ge(Ef,m),Ge(xf,v),Ge(wf,b),Ge(Df,fe),Ge(If,L),Ge(Pf,H),Ge(Tf,O),Ge(Qe,S),Ge(Of,ye),ve(ge))if(ge.length){const be=s.exposed||(s.exposed={});ge.forEach(_e=>{Object.defineProperty(be,_e,{get:()=>t[_e],set:te=>t[_e]=te})})}else s.exposed||(s.exposed={});Y&&s.render===bt&&(s.render=Y),Me!=null&&(s.inheritAttrs=Me),Ae&&(s.components=Ae),Ue&&(s.directives=Ue)}function zf(s,e,t=bt){ve(s)&&(s=No(s));for(const n in s){const i=s[n];let r;Xe(i)?"default"in i?r=sr(i.from||n,i.default,!0):r=sr(i.from||n):r=sr(i),It(r)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[n]=r,{}.NODE_ENV!=="production"&&t("Inject",n)}}function nc(s,e,t){rs(ve(s)?s.map(n=>n.bind(e.proxy)):s.bind(e.proxy),e,t)}function ic(s,e,t,n){const i=n.includes(".")?Kl(t,n):()=>t[n];if(mt(s)){const r=e[s];Oe(r)?Ee(i,r):{}.NODE_ENV!=="production"&&re(`Invalid watch handler specified by key "${s}"`,r)}else if(Oe(s))Ee(i,s.bind(t));else if(Xe(s))if(ve(s))s.forEach(r=>ic(r,e,t,n));else{const r=Oe(s.handler)?s.handler.bind(t):e[s.handler];Oe(r)?Ee(i,r,s):{}.NODE_ENV!=="production"&&re(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&re(`Invalid watch option: "${n}"`,s)}function Do(s){const e=s.type,{mixins:t,extends:n}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(e);let l;return a?l=a:!i.length&&!t&&!n?l=e:(l={},i.length&&i.forEach(c=>tr(l,c,o,!0)),tr(l,e,o)),Xe(e)&&r.set(e,l),l}function tr(s,e,t,n=!1){const{mixins:i,extends:r}=e;r&&tr(s,r,t,!0),i&&i.forEach(o=>tr(s,o,t,!0));for(const o in e)if(n&&o==="expose")({}).NODE_ENV!=="production"&&re('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Ff[o]||t&&t[o];s[o]=a?a(s[o],e[o]):e[o]}return s}const Ff={data:rc,props:oc,emits:oc,methods:ni,computed:ni,beforeCreate:At,created:At,beforeMount:At,mounted:At,beforeUpdate:At,updated:At,beforeDestroy:At,beforeUnmount:At,destroyed:At,unmounted:At,activated:At,deactivated:At,errorCaptured:At,serverPrefetch:At,components:ni,directives:ni,watch:Bf,provide:rc,inject:Gf};function rc(s,e){return e?s?function(){return lt(Oe(s)?s.call(this,this):s,Oe(e)?e.call(this,this):e)}:e:s}function Gf(s,e){return ni(No(s),No(e))}function No(s){if(ve(s)){const e={};for(let t=0;t<s.length;t++)e[s[t]]=s[t];return e}return s}function At(s,e){return s?[...new Set([].concat(s,e))]:e}function ni(s,e){return s?lt(Object.create(null),s,e):e}function oc(s,e){return s?ve(s)&&ve(e)?[...new Set([...s,...e])]:lt(Object.create(null),sc(s),sc(e??{})):e}function Bf(s,e){if(!s)return e;if(!e)return s;const t=lt(Object.create(null),s);for(const n in e)t[n]=At(s[n],e[n]);return t}function ac(){return{app:null,config:{isNativeTag:sd,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 jf=0;function Yf(s,e){return function(n,i=null){Oe(n)||(n=lt({},n)),i!=null&&!Xe(i)&&({}.NODE_ENV!=="production"&&re("root props passed to app.mount() must be an object."),i=null);const r=ac(),o=new WeakSet;let a=!1;const l=r.app={_uid:jf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Vc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&re("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&re("Plugin has already been applied to target app."):c&&Oe(c.install)?(o.add(c),c.install(l,...u)):Oe(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&re('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"&&re("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Go(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&re(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Ql(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&re(`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"&&re("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__&&re("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 f=ue(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Zs(f),c,h)}),u&&e?e(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,tf(l,Vc)),cr(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,sf(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&re("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&re(`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=ii;ii=l;try{return c()}finally{ii=u}}};return l}}let ii=null;function Hf(s,e){if(!Et)({}).NODE_ENV!=="production"&&re("provide() can only be used inside setup().");else{let t=Et.provides;const n=Et.parent&&Et.parent.provides;n===t&&(t=Et.provides=Object.create(n)),t[s]=e}}function sr(s,e,t=!1){const n=Et||xt;if(n||ii){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:ii._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return t&&Oe(e)?e.call(n&&n.proxy):e;({}).NODE_ENV!=="production"&&re(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&re("inject() can only be used inside setup() or functional components.")}const lc={},cc=()=>Object.create(lc),uc=s=>Object.getPrototypeOf(s)===lc;function Wf(s,e,t,n=!1){const i={},r=cc();s.propsDefaults=Object.create(null),hc(s,e,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&gc(e||{},i,s),t?s.props=n?i:Ad(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function Xf(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function Uf(s,e,t,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Ne(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Xf(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(qi(s.emitsOptions,f))continue;const d=e[f];if(l)if(Ve(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=Cs(f);i[m]=$o(l,a,m,d,s,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{hc(s,e,i,r)&&(c=!0);let u;for(const h in a)(!e||!Ve(e,h)&&((u=Wt(h))===h||!Ve(e,u)))&&(l?t&&(t[h]!==void 0||t[u]!==void 0)&&(i[h]=$o(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!e||!Ve(e,h))&&(delete r[h],c=!0)}c&&ds(s.attrs,"set",""),{}.NODE_ENV!=="production"&&gc(e||{},i,s)}function hc(s,e,t,n){const[i,r]=s.propsOptions;let o=!1,a;if(e)for(let l in e){if(Xn(l))continue;const c=e[l];let u;i&&Ve(i,u=Cs(l))?!r||!r.includes(u)?t[u]=c:(a||(a={}))[u]=c:qi(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Ne(t),c=a||Ke;for(let u=0;u<r.length;u++){const h=r[u];t[h]=$o(i,l,h,c[h],s,!Ve(c,h))}}return o}function $o(s,e,t,n,i,r){const o=s[t];if(o!=null){const a=Ve(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Oe(l)){const{propsDefaults:c}=i;if(t in c)n=c[t];else{const u=ui(i);n=c[t]=l.call(null,e),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Wt(t))&&(n=!0))}return n}function dc(s,e,t=!1){const n=e.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!Oe(s)){const u=h=>{l=!0;const[f,d]=dc(h,e,!0);lt(o,f),d&&a.push(...d)};!t&&e.mixins.length&&e.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Xe(s)&&n.set(s,Dn),Dn;if(ve(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!mt(r[u])&&re("props must be strings when using array syntax.",r[u]);const h=Cs(r[u]);fc(h)&&(o[h]=Ke)}else if(r){({}).NODE_ENV!=="production"&&!Xe(r)&&re("invalid props options",r);for(const u in r){const h=Cs(u);if(fc(h)){const f=r[u],d=o[h]=ve(f)||Oe(f)?{type:f}:lt({},f);if(d){const m=mc(Boolean,d.type),v=mc(String,d.type);d[0]=m>-1,d[1]=v<0||m<v,(m>-1||Ve(d,"default"))&&a.push(h)}}}}const c=[o,a];return Xe(s)&&n.set(s,c),c}function fc(s){return s[0]!=="$"&&!Xn(s)?!0:({}.NODE_ENV!=="production"&&re(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Mo(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function pc(s,e){return Mo(s)===Mo(e)}function mc(s,e){return ve(e)?e.findIndex(t=>pc(t,s)):Oe(e)&&pc(e,s)?0:-1}function gc(s,e,t){const n=Ne(e),i=t.propsOptions[0];for(const r in i){let o=i[r];o!=null&&qf(r,n[r],o,{}.NODE_ENV!=="production"?Es(n):n,!Ve(s,r)&&!Ve(s,Wt(r)))}}function qf(s,e,t,n,i){const{type:r,required:o,validator:a,skipCheck:l}=t;if(o&&i){re('Missing required prop: "'+s+'"');return}if(!(e==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=ve(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=Kf(e,u[f]);h.push(m||""),c=d}if(!c){re(Qf(s,e,h));return}}a&&!a(e,n)&&re('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Zf=In("String,Number,Boolean,Function,Symbol,BigInt");function Kf(s,e){let t;const n=Mo(e);if(Zf(n)){const i=typeof s;t=i===n.toLowerCase(),!t&&i==="object"&&(t=s instanceof e)}else n==="Object"?t=Xe(s):n==="Array"?t=ve(s):n==="null"?t=s===null:t=s instanceof e;return{valid:t,expectedType:n}}function Qf(s,e,t){if(t.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 ${t.map(Ai).join(" | ")}`;const i=t[0],r=eo(e),o=vc(e,i),a=vc(e,r);return t.length===1&&yc(i)&&!Jf(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,yc(r)&&(n+=`with value ${a}.`),n}function vc(s,e){return e==="String"?`"${s}"`:e==="Number"?`${Number(s)}`:`${s}`}function yc(s){return["string","number","boolean"].some(t=>s.toLowerCase()===t)}function Jf(...s){return s.some(e=>e.toLowerCase()==="boolean")}const bc=s=>s[0]==="_"||s==="$stable",Ao=s=>ve(s)?s.map(as):[as(s)],ep=(s,e,t)=>{if(e._n)return e;const n=nt((...i)=>({}.NODE_ENV!=="production"&&Et&&(!t||t.root===Et.root)&&re(`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.`),Ao(e(...i))),t);return n._c=!1,n},_c=(s,e,t)=>{const n=s._ctx;for(const i in s){if(bc(i))continue;const r=s[i];if(Oe(r))e[i]=ep(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&re(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Ao(r);e[i]=()=>o}}},xc=(s,e)=>{({}).NODE_ENV!=="production"&&!Eo(s.vnode)&&re("Non-function value encountered for default slot. Prefer function slots for better performance.");const t=Ao(e);s.slots.default=()=>t},tp=(s,e)=>{const t=s.slots=cc();if(s.vnode.shapeFlag&32){const n=e._;n?(lt(t,e),il(t,"_",n)):_c(e,t)}else e&&xc(s,e)},sp=(s,e,t)=>{const{vnode:n,slots:i}=s;let r=!0,o=Ke;if(n.shapeFlag&32){const a=e._;a?{}.NODE_ENV!=="production"&&mn?(lt(i,e),ds(s,"set","$slots")):t&&a===1?r=!1:(lt(i,e),!t&&a===1&&delete i._):(r=!e.$stable,_c(e,i)),o=e}else e&&(xc(s,e),o={default:1});if(r)for(const a in i)!bc(a)&&o[a]==null&&delete i[a]};function Ro(s,e,t,n,i=!1){if(ve(s)){s.forEach((f,d)=>Ro(f,e&&(ve(e)?e[d]:e),t,n,i));return}if(si(n)&&!i)return;const r=n.shapeFlag&4?cr(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){re("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=e&&e.r,u=a.refs===Ke?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(mt(c)?(u[c]=null,Ve(h,c)&&(h[c]=null)):It(c)&&(c.value=null)),Oe(l))Ts(l,a,12,[o,u]);else{const f=mt(l),d=It(l);if(f||d){const m=()=>{if(s.f){const v=f?Ve(h,l)?h[l]:u[l]:l.value;i?ve(v)&&Qr(v,r):ve(v)?v.includes(r)||v.push(r):f?(u[l]=[r],Ve(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,Ve(h,l)&&(h[l]=o)):d?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&re("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Gt(m,t)):m()}else({}).NODE_ENV!=="production"&&re("Invalid template ref type:",l,`(${typeof l})`)}}let ri,qs;function Ds(s,e){s.appContext.config.performance&&nr()&&qs.mark(`vue-${e}-${s.uid}`),{}.NODE_ENV!=="production"&&af(s,e,nr()?qs.now():Date.now())}function Ns(s,e){if(s.appContext.config.performance&&nr()){const t=`vue-${e}-${s.uid}`,n=t+":end";qs.mark(n),qs.measure(`<${ur(s,s.type)}> ${e}`,t,n),qs.clearMarks(t),qs.clearMarks(n)}({}).NODE_ENV!=="production"&&lf(s,e,nr()?qs.now():Date.now())}function nr(){return ri!==void 0||(typeof window<"u"&&window.performance?(ri=!0,qs=window.performance):ri=!1),ri}function np(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const e=s.length>1;console.warn(`Feature flag${e?"s":""} ${s.join(", ")} ${e?"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.
15
+ **/const mn=[];function qi(s){mn.push(s)}function Ki(){mn.pop()}function at(s,...t){Es();const e=mn.length?mn[mn.length-1].component:null,n=e&&e.appContext.config.warnHandler,i=rf();if(n)Is(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 <${mr(e,r.type)}>`).join(`
16
+ `),i]);else{const r=[`[Vue warn]: ${s}`,...t];i.length&&r.push(`
17
+ `,...of(i)),console.warn(...r)}Ts()}function rf(){let s=mn[mn.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 of(s){const t=[];return s.forEach((e,n)=>{t.push(...n===0?[]:[`
18
+ `],...af(e))}),t}function af({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${mr(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...lf(s.props),r]:[i+r]}function lf(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Fl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Fl(s,t,e){return be(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:$e(t)?(t=Fl(s,Mt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Ot(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Mt(t),e?t:[`${s}=`,t])}const _o={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 Is(s,t,e,n){try{return n?s(...n):s()}catch(i){Jn(i,t,e)}}function as(s,t,e,n){if(Ot(s)){const i=Is(s,t,e,n);return i&&io(i)&&i.catch(r=>{Jn(r,t,e)}),i}if(vt(s)){const i=[];for(let r=0;r<s.length;r++)i.push(as(s[r],t,e,n));return i}else({}).NODE_ENV!=="production"&&at(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Jn(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"?_o[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){Es(),Is(l,null,10,[s,o,a]),Ts();return}}cf(s,e,i,n)}function cf(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=_o[t];if(e&&qi(e),at(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Ki(),n)throw s;console.error(s)}else console.error(s)}let ti=!1,xo=!1;const Ae=[];let ps=0;const Rn=[];let Ps=null,Zs=0;const Gl=Promise.resolve();let wo=null;const uf=100;function Qi(s){const t=wo||Gl;return s?t.then(this?s.bind(this):s):t}function hf(s){let t=ps+1,e=Ae.length;for(;t<e;){const n=t+e>>>1,i=Ae[n],r=ei(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Ji(s){(!Ae.length||!Ae.includes(s,ti&&s.allowRecurse?ps+1:ps))&&(s.id==null?Ae.push(s):Ae.splice(hf(s.id),0,s),Bl())}function Bl(){!ti&&!xo&&(xo=!0,wo=Gl.then(Ul))}function df(s){const t=Ae.indexOf(s);t>ps&&Ae.splice(t,1)}function Yl(s){vt(s)?Rn.push(...s):(!Ps||!Ps.includes(s,s.allowRecurse?Zs+1:Zs))&&Rn.push(s),Bl()}function jl(s,t,e=ti?ps+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Ae.length;e++){const n=Ae[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&ko(t,n))continue;Ae.splice(e,1),e--,n()}}}function Xl(s){if(Rn.length){const t=[...new Set(Rn)].sort((e,n)=>ei(e)-ei(n));if(Rn.length=0,Ps){Ps.push(...t);return}for(Ps=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Zs=0;Zs<Ps.length;Zs++)({}).NODE_ENV!=="production"&&ko(s,Ps[Zs])||Ps[Zs]();Ps=null,Zs=0}}const ei=s=>s.id==null?1/0:s.id,ff=(s,t)=>{const e=ei(s)-ei(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function Ul(s){xo=!1,ti=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Ae.sort(ff);const t={}.NODE_ENV!=="production"?e=>ko(s,e):ke;try{for(ps=0;ps<Ae.length;ps++){const e=Ae[ps];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;Is(e,null,14)}}}finally{ps=0,Ae.length=0,Xl(s),ti=!1,wo=null,(Ae.length||Rn.length)&&Ul(s)}}function ko(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>uf){const n=t.ownerInstance,i=n&&Gc(n.type);return Jn(`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 gn=!1;const An=new Set;({}).NODE_ENV!=="production"&&(ao().__VUE_HMR_RUNTIME__={createRecord:Co(Hl),rerender:Co(gf),reload:Co(yf)});const yn=new Map;function pf(s){const t=s.type.__hmrId;let e=yn.get(t);e||(Hl(t,s.type),e=yn.get(t)),e.instances.add(s)}function mf(s){yn.get(s.type.__hmrId).instances.delete(s)}function Hl(s,t){return yn.has(s)?!1:(yn.set(s,{initialDef:si(t),instances:new Set}),!0)}function si(s){return Bc(s)?s.__vccOpts:s}function gf(s,t){const e=yn.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,si(n.type).render=t),n.renderCache=[],gn=!0,n.effect.dirty=!0,n.update(),gn=!1}))}function yf(s,t){const e=yn.get(s);if(!e)return;t=si(t),Wl(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=si(i.type);An.has(r)||(r!==e.initialDef&&Wl(r,t),An.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(An.add(r),i.ceReload(t.styles),An.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ji(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.")}Yl(()=>{for(const i of n)An.delete(si(i.type))})}function Wl(s,t){pe(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function Co(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 ms,ni=[],So=!1;function ii(s,...t){ms?ms.emit(s,...t):So||ni.push({event:s,args:t})}function Zl(s,t){var e,n;ms=s,ms?(ms.enabled=!0,ni.forEach(({event:i,args:r})=>ms.emit(i,...r)),ni=[]):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=>{Zl(r,t)}),setTimeout(()=>{ms||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,So=!0,ni=[])},3e3)):(So=!0,ni=[])}function vf(s,t){ii("app:init",s,t,{Fragment:Bt,Text:ci,Comment:je,Static:ur})}function bf(s){ii("app:unmount",s)}const _f=Eo("component:added"),ql=Eo("component:updated"),xf=Eo("component:removed"),wf=s=>{ms&&typeof ms.cleanupBuffer=="function"&&!ms.cleanupBuffer(s)&&xf(s)};/*! #__NO_SIDE_EFFECTS__ */function Eo(s){return t=>{ii(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const kf=Kl("perf:start"),Cf=Kl("perf:end");function Kl(s){return(t,e,n)=>{ii(s,t.appContext.app,t.uid,t,e,n)}}function Sf(s,t,e){ii("component:emit",s.appContext.app,s,t,e)}function Ef(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||te;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(un(t)in h))&&at(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${un(t)}" prop.`);else{const f=u[t];Ot(f)&&(f(...e)||at(`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:f}=n[u]||te;f&&(i=e.map(d=>be(d)?d.trim():d)),h&&(i=e.map(kd))}if({}.NODE_ENV!=="production"&&Sf(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[un(u)]&&at(`Event "${u}" is emitted in component ${mr(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 "${Ze(t)}" instead of "${t}".`)}let a,l=n[a=un(t)]||n[a=un(Ss(t))];!l&&r&&(l=n[a=un(Ze(t))]),l&&as(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,as(c,s,6,i)}}function Ql(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(!Ot(s)){const l=c=>{const u=Ql(c,t,!0);u&&(a=!0,pe(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(qt(s)&&n.set(s,null),null):(vt(r)?r.forEach(l=>o[l]=null):pe(o,r),qt(s)&&n.set(s,o),o)}function tr(s,t){return!s||!Zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Lt(s,t[0].toLowerCase()+t.slice(1))||Lt(s,Ze(t))||Lt(s,t))}let Ce=null,er=null;function sr(s){const t=Ce;return Ce=s,er=s&&s.type.__scopeId||null,t}function Ds(s){er=s}function $s(){er=null}function Ft(s,t=Ce,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&Ic(-1);const r=sr(t);let o;try{o=s(...i)}finally{sr(r),n._d&&Ic(1)}return{}.NODE_ENV!=="production"&&ql(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let To=!1;function nr(){To=!0}function Oo(s){const{type:t,vnode:e,proxy:n,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:f,setupState:d,ctx:m,inheritAttrs:g}=s,v=sr(s);let k,I;({}).NODE_ENV!=="production"&&(To=!1);try{if(e.shapeFlag&4){const j=i||n,L={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(j,{get(X,mt,bt){return at(`Property '${String(mt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(X,mt,bt)}}):j;k=cs(c.call(L,j,u,{}.NODE_ENV!=="production"?Os(h):h,d,f,m)),I=a}else{const j=t;({}).NODE_ENV!=="production"&&a===h&&nr(),k=cs(j.length>1?j({}.NODE_ENV!=="production"?Os(h):h,{}.NODE_ENV!=="production"?{get attrs(){return nr(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):j({}.NODE_ENV!=="production"?Os(h):h,null)),I=t.props?a:Tf(a)}}catch(j){ui.length=0,Jn(j,s,1),k=ut(je)}let M=k,C;if({}.NODE_ENV!=="production"&&k.patchFlag>0&&k.patchFlag&2048&&([M,C]=Jl(k)),I&&g!==!1){const j=Object.keys(I),{shapeFlag:L}=M;if(j.length){if(L&7)r&&j.some(zi)&&(I=Of(I,r)),M=Qs(M,I);else if({}.NODE_ENV!=="production"&&!To&&M.type!==je){const X=Object.keys(a),mt=[],bt=[];for(let yt=0,At=X.length;yt<At;yt++){const zt=X[yt];Zn(zt)?zi(zt)||mt.push(zt[2].toLowerCase()+zt.slice(3)):bt.push(zt)}bt.length&&at(`Extraneous non-props attributes (${bt.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),mt.length&&at(`Extraneous non-emits event listeners (${mt.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"&&!tc(M)&&at("Runtime directive used on component with non-element root node. The directives will not function as intended."),M=Qs(M),M.dirs=M.dirs?M.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!tc(M)&&at("Component inside <Transition> renders non-element root node that cannot be animated."),M.transition=e.transition),{}.NODE_ENV!=="production"&&C?C(M):k=M,sr(v),k}const Jl=s=>{const t=s.children,e=s.dynamicChildren,n=Io(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Jl(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[cs(n),o]};function Io(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(zn(i)){if(i.type!==je||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return Io(e.children)}}else return}return e}const Tf=s=>{let t;for(const e in s)(e==="class"||e==="style"||Zn(e))&&((t||(t={}))[e]=s[e]);return t},Of=(s,t)=>{const e={};for(const n in s)(!zi(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},tc=s=>s.shapeFlag&7||s.type===je;function If(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)&&gn||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?ec(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const f=u[h];if(o[f]!==n[f]&&!tr(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?ec(n,o,c):!0:!!o;return!1}function ec(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]&&!tr(e,r))return!0}return!1}function Pf({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 Df=Symbol.for("v-ndc"),$f=s=>s.__isSuspense;function Nf(s,t){t&&t.pendingBranch?vt(s)?t.effects.push(...s):t.effects.push(s):Yl(s)}const Mf=Symbol.for("v-scx"),Rf=()=>{{const s=ar(Mf);return s||{}.NODE_ENV!=="production"&&at("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function sc(s,t){return Po(s,null,t)}const ir={};function kt(s,t,e){return{}.NODE_ENV!=="production"&&!Ot(t)&&at("`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."),Po(s,t,e)}function Po(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=te){if(t&&r){const X=t;t=(...mt)=>{X(...mt),L()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&at('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&&at('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&at('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&at('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=X=>{at("Invalid watch source: ",X,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=Oe,u=X=>n===!0?X:vn(X,n===!1?1:void 0);let h,f=!1,d=!1;if($e(s)?(h=()=>s.value,f=pn(s)):Mn(s)?(h=()=>u(s),f=!0):vt(s)?(d=!0,f=s.some(X=>Mn(X)||pn(X)),h=()=>s.map(X=>{if($e(X))return X.value;if(Mn(X))return u(X);if(Ot(X))return Is(X,c,2);({}).NODE_ENV!=="production"&&l(X)})):Ot(s)?t?h=()=>Is(s,c,2):h=()=>(m&&m(),as(s,c,3,[g])):(h=ke,{}.NODE_ENV!=="production"&&l(s)),t&&n){const X=h;h=()=>vn(X())}let m,g=X=>{m=C.onStop=()=>{Is(X,c,4),m=C.onStop=void 0}},v;if(fr)if(g=ke,t?e&&as(t,c,3,[h(),d?[]:void 0,g]):h(),i==="sync"){const X=Rf();v=X.__watcherHandles||(X.__watcherHandles=[])}else return ke;let k=d?new Array(s.length).fill(ir):ir;const I=()=>{if(!(!C.active||!C.dirty))if(t){const X=C.run();(n||f||(d?X.some((mt,bt)=>Xs(mt,k[bt])):Xs(X,k)))&&(m&&m(),as(t,c,3,[X,k===ir?void 0:d&&k[0]===ir?[]:k,g]),k=X)}else C.run()};I.allowRecurse=!!t;let M;i==="sync"?M=I:i==="post"?M=()=>Ye(I,c&&c.suspense):(I.pre=!0,c&&(I.id=c.uid),M=()=>Ji(I));const C=new co(h,ke,M),j=Dd(),L=()=>{C.stop(),j&&no(j.effects,C)};return{}.NODE_ENV!=="production"&&(C.onTrack=o,C.onTrigger=a),t?e?I():k=C.run():i==="post"?Ye(C.run.bind(C),c&&c.suspense):C.run(),v&&v.push(L),L}function Af(s,t,e){const n=this.proxy,i=be(s)?s.includes(".")?nc(n,s):()=>n[s]:s.bind(n,n);let r;Ot(t)?r=t:(r=t.handler,e=t);const o=fi(this),a=Po(i,r.bind(n),e);return o(),a}function nc(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 vn(s,t,e=0,n){if(!qt(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),$e(s))vn(s.value,t,e,n);else if(vt(s))for(let i=0;i<s.length;i++)vn(s[i],t,e,n);else if(al(s)||ln(s))s.forEach(i=>{vn(i,t,e,n)});else if(cl(s))for(const i in s)vn(s[i],t,e,n);return s}function ic(s){_d(s)&&at("Do not use built-in directive ids as custom directive id: "+s)}function Ns(s,t){if(Ce===null)return{}.NODE_ENV!=="production"&&at("withDirectives can only be used inside render functions."),s;const e=pr(Ce)||Ce.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=te]=t[i];r&&(Ot(r)&&(r={mounted:r,updated:r}),r.deep&&vn(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function bn(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&&(Es(),as(l,e,8,[s.el,a,s,t]),Ts())}}/*! #__NO_SIDE_EFFECTS__ */function st(s,t){return Ot(s)?(()=>pe({name:s.name},t,{setup:s}))():s}const ri=s=>!!s.type.__asyncLoader,Do=s=>s.type.__isKeepAlive;function zf(s,t){rc(s,"a",t)}function Lf(s,t){rc(s,"da",t)}function rc(s,t,e=Oe){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(rr(t,n,e),e){let i=e.parent;for(;i&&i.parent;)Do(i.parent.vnode)&&Vf(n,t,e,i),i=i.parent}}function Vf(s,t,e,n){const i=rr(t,s,n,!0);ee(()=>{no(n[t],i)},e)}function rr(s,t,e=Oe,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;Es();const a=fi(e),l=as(t,e,s,o);return a(),Ts(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=un(_o[s].replace(/ hook$/,""));at(`${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 Ms=s=>(t,e=Oe)=>(!fr||s==="sp")&&rr(s,(...n)=>t(...n),e),Ff=Ms("bm"),qs=Ms("m"),Gf=Ms("bu"),Bf=Ms("u"),Yf=Ms("bum"),ee=Ms("um"),jf=Ms("sp"),Xf=Ms("rtg"),Uf=Ms("rtc");function Hf(s,t=Oe){rr("ec",s,t)}function Se(s,t,e,n){let i;const r=e&&e[n];if(vt(s)||be(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)&&at(`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(qt(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 Pt(s,t,e={},n,i){if(Ce.isCE||Ce.parent&&ri(Ce.parent)&&Ce.parent.isCE)return t!=="default"&&(e.name=t),ut("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(at("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),O();const o=r&&oc(r(e)),a=Ht(Bt,{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 oc(s){return s.some(t=>zn(t)?!(t.type===je||t.type===Bt&&!oc(t.children)):!0)?s:null}const $o=s=>s?Ac(s)?pr(s)||s.proxy:$o(s.parent):null,_n=pe(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?Os(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?Os(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?Os(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?Os(s.refs):s.refs,$parent:s=>$o(s.parent),$root:s=>$o(s.root),$emit:s=>s.emit,$options:s=>Ao(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ji(s.update)}),$nextTick:s=>s.n||(s.n=Qi.bind(s.proxy)),$watch:s=>Af.bind(s)}),No=s=>s==="_"||s==="$",Mo=(s,t)=>s!==te&&!s.__isScriptSetup&&Lt(s,t),ac={get({_:s},t){if(t==="__v_skip")return!0;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 d=o[t];if(d!==void 0)switch(d){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(Mo(n,t))return o[t]=1,n[t];if(i!==te&&Lt(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&Lt(c,t))return o[t]=3,r[t];if(e!==te&&Lt(e,t))return o[t]=4,e[t];Ro&&(o[t]=0)}}const u=_n[t];let h,f;if(u)return t==="$attrs"?(De(s.attrs,"get",""),{}.NODE_ENV!=="production"&&nr()):{}.NODE_ENV!=="production"&&t==="$slots"&&De(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==te&&Lt(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,Lt(f,t))return f[t];({}).NODE_ENV!=="production"&&Ce&&(!be(t)||t.indexOf("__v")!==0)&&(i!==te&&No(t[0])&&Lt(i,t)?at(`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===Ce&&at(`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 Mo(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Lt(i,t)?(at(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==te&&Lt(n,t)?(n[t]=e,!0):Lt(s.props,t)?({}.NODE_ENV!=="production"&&at(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&at(`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!==te&&Lt(s,o)||Mo(t,o)||(a=r[0])&&Lt(a,o)||Lt(n,o)||Lt(_n,o)||Lt(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:Lt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(ac.ownKeys=s=>(at("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 Wf(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(_n).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>_n[e](s),set:ke})}),t}function Zf(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:ke})})}function qf(s){const{ctx:t,setupState:e}=s;Object.keys(Mt(e)).forEach(n=>{if(!e.__isScriptSetup){if(No(n[0])){at(`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:ke})}})}function Kf(){return Qf().slots}function Qf(){const s=Mc();return{}.NODE_ENV!=="production"&&!s&&at("useContext() called without active instance."),s.setupContext||(s.setupContext=Fc(s))}function lc(s){return vt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Jf(){const s=Object.create(null);return(t,e)=>{s[e]?at(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let Ro=!0;function tp(s){const t=Ao(s),e=s.proxy,n=s.ctx;Ro=!1,t.beforeCreate&&cc(t.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:f,beforeUpdate:d,updated:m,activated:g,deactivated:v,beforeDestroy:k,beforeUnmount:I,destroyed:M,unmounted:C,render:j,renderTracked:L,renderTriggered:X,errorCaptured:mt,serverPrefetch:bt,expose:yt,inheritAttrs:At,components:zt,directives:Kt,filters:Qt}=t,ne={}.NODE_ENV!=="production"?Jf():null;if({}.NODE_ENV!=="production"){const[_t]=s.propsOptions;if(_t)for(const xt in _t)ne("Props",xt)}if(c&&ep(c,n,ne),o)for(const _t in o){const xt=o[_t];Ot(xt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,_t,{value:xt.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[_t]=xt.bind(e),{}.NODE_ENV!=="production"&&ne("Methods",_t)):{}.NODE_ENV!=="production"&&at(`Method "${_t}" has type "${typeof xt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Ot(i)&&at("The data option must be a function. Plain object usage is no longer supported.");const _t=i.call(e,e);if({}.NODE_ENV!=="production"&&io(_t)&&at("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!qt(_t))({}).NODE_ENV!=="production"&&at("data() should return an object.");else if(s.data=oe(_t),{}.NODE_ENV!=="production")for(const xt in _t)ne("Data",xt),No(xt[0])||Object.defineProperty(n,xt,{configurable:!0,enumerable:!0,get:()=>_t[xt],set:ke})}if(Ro=!0,r)for(const _t in r){const xt=r[_t],it=Ot(xt)?xt.bind(e,e):Ot(xt.get)?xt.get.bind(e,e):ke;({}).NODE_ENV!=="production"&&it===ke&&at(`Computed property "${_t}" has no getter.`);const q=!Ot(xt)&&Ot(xt.set)?xt.set.bind(e):{}.NODE_ENV!=="production"?()=>{at(`Write operation failed: computed property "${_t}" is readonly.`)}:ke,Et=Lp({get:it,set:q});Object.defineProperty(n,_t,{enumerable:!0,configurable:!0,get:()=>Et.value,set:A=>Et.value=A}),{}.NODE_ENV!=="production"&&ne("Computed",_t)}if(a)for(const _t in a)uc(a[_t],n,e,_t);if(l){const _t=Ot(l)?l.call(e):l;Reflect.ownKeys(_t).forEach(xt=>{ap(xt,_t[xt])})}u&&cc(u,s,"c");function Yt(_t,xt){vt(xt)?xt.forEach(it=>_t(it.bind(e))):xt&&_t(xt.bind(e))}if(Yt(Ff,h),Yt(qs,f),Yt(Gf,d),Yt(Bf,m),Yt(zf,g),Yt(Lf,v),Yt(Hf,mt),Yt(Uf,L),Yt(Xf,X),Yt(Yf,I),Yt(ee,C),Yt(jf,bt),vt(yt))if(yt.length){const _t=s.exposed||(s.exposed={});yt.forEach(xt=>{Object.defineProperty(_t,xt,{get:()=>e[xt],set:it=>e[xt]=it})})}else s.exposed||(s.exposed={});j&&s.render===ke&&(s.render=j),At!=null&&(s.inheritAttrs=At),zt&&(s.components=zt),Kt&&(s.directives=Kt)}function ep(s,t,e=ke){vt(s)&&(s=zo(s));for(const n in s){const i=s[n];let r;qt(i)?"default"in i?r=ar(i.from||n,i.default,!0):r=ar(i.from||n):r=ar(i),$e(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 cc(s,t,e){as(vt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function uc(s,t,e,n){const i=n.includes(".")?nc(e,n):()=>e[n];if(be(s)){const r=t[s];Ot(r)?kt(i,r):{}.NODE_ENV!=="production"&&at(`Invalid watch handler specified by key "${s}"`,r)}else if(Ot(s))kt(i,s.bind(e));else if(qt(s))if(vt(s))s.forEach(r=>uc(r,t,e,n));else{const r=Ot(s.handler)?s.handler.bind(e):t[s.handler];Ot(r)?kt(i,r,s):{}.NODE_ENV!=="production"&&at(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&at(`Invalid watch option: "${n}"`,s)}function Ao(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=>or(l,c,o,!0)),or(l,t,o)),qt(t)&&r.set(t,l),l}function or(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&or(s,r,e,!0),i&&i.forEach(o=>or(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&at('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=sp[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const sp={data:hc,props:dc,emits:dc,methods:oi,computed:oi,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:oi,directives:oi,watch:ip,provide:hc,inject:np};function hc(s,t){return t?s?function(){return pe(Ot(s)?s.call(this,this):s,Ot(t)?t.call(this,this):t)}:t:s}function np(s,t){return oi(zo(s),zo(t))}function zo(s){if(vt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Le(s,t){return s?[...new Set([].concat(s,t))]:t}function oi(s,t){return s?pe(Object.create(null),s,t):t}function dc(s,t){return s?vt(s)&&vt(t)?[...new Set([...s,...t])]:pe(Object.create(null),lc(s),lc(t??{})):t}function ip(s,t){if(!s)return t;if(!t)return s;const e=pe(Object.create(null),s);for(const n in t)e[n]=Le(s[n],t[n]);return e}function fc(){return{app:null,config:{isNativeTag:vd,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 rp=0;function op(s,t){return function(n,i=null){Ot(n)||(n=pe({},n)),i!=null&&!qt(i)&&({}.NODE_ENV!=="production"&&at("root props passed to app.mount() must be an object."),i=null);const r=fc(),o=new WeakSet;let a=!1;const l=r.app={_uid:rp++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Yc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&at("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&at("Plugin has already been applied to target app."):c&&Ot(c.install)?(o.add(c),c.install(l,...u)):Ot(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&at('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"&&at("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Uo(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&at(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&ic(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&at(`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"&&at("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__&&at("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 f=ut(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Qs(f),c,h)}),u&&t?t(f,c):s(f,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=f.component,vf(l,Yc)),pr(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,bf(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&at("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&at(`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=ai;ai=l;try{return c()}finally{ai=u}}};return l}}let ai=null;function ap(s,t){if(!Oe)({}).NODE_ENV!=="production"&&at("provide() can only be used inside setup().");else{let e=Oe.provides;const n=Oe.parent&&Oe.parent.provides;n===e&&(e=Oe.provides=Object.create(n)),e[s]=t}}function ar(s,t,e=!1){const n=Oe||Ce;if(n||ai){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:ai._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&Ot(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&at(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&at("inject() can only be used inside setup() or functional components.")}const pc={},mc=()=>Object.create(pc),gc=s=>Object.getPrototypeOf(s)===pc;function lp(s,t,e,n=!1){const i={},r=mc();s.propsDefaults=Object.create(null),yc(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&wc(t||{},i,s),e?s.props=n?i:Kd(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function cp(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function up(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Mt(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&cp(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let f=u[h];if(tr(s.emitsOptions,f))continue;const d=t[f];if(l)if(Lt(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=Ss(f);i[m]=Lo(l,a,m,d,s,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{yc(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!Lt(t,h)&&((u=Ze(h))===h||!Lt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=Lo(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!Lt(t,h))&&(delete r[h],c=!0)}c&&fs(s.attrs,"set",""),{}.NODE_ENV!=="production"&&wc(t||{},i,s)}function yc(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(qn(l))continue;const c=t[l];let u;i&&Lt(i,u=Ss(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:tr(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Mt(e),c=a||te;for(let u=0;u<r.length;u++){const h=r[u];e[h]=Lo(i,l,h,c[h],s,!Lt(c,h))}}return o}function Lo(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=Lt(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Ot(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=fi(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Ze(e))&&(n=!0))}return n}function vc(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(!Ot(s)){const u=h=>{l=!0;const[f,d]=vc(h,t,!0);pe(o,f),d&&a.push(...d)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return qt(s)&&n.set(s,Nn),Nn;if(vt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!be(r[u])&&at("props must be strings when using array syntax.",r[u]);const h=Ss(r[u]);bc(h)&&(o[h]=te)}else if(r){({}).NODE_ENV!=="production"&&!qt(r)&&at("invalid props options",r);for(const u in r){const h=Ss(u);if(bc(h)){const f=r[u],d=o[h]=vt(f)||Ot(f)?{type:f}:pe({},f);if(d){const m=xc(Boolean,d.type),g=xc(String,d.type);d[0]=m>-1,d[1]=g<0||m<g,(m>-1||Lt(d,"default"))&&a.push(h)}}}}const c=[o,a];return qt(s)&&n.set(s,c),c}function bc(s){return s[0]!=="$"&&!qn(s)?!0:({}.NODE_ENV!=="production"&&at(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Vo(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function _c(s,t){return Vo(s)===Vo(t)}function xc(s,t){return vt(t)?t.findIndex(e=>_c(e,s)):Ot(t)&&_c(t,s)?0:-1}function wc(s,t,e){const n=Mt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&hp(r,n[r],o,{}.NODE_ENV!=="production"?Os(n):n,!Lt(s,r)&&!Lt(s,Ze(r)))}}function hp(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){at('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=vt(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=fp(t,u[f]);h.push(m||""),c=d}if(!c){at(pp(s,t,h));return}}a&&!a(t,n)&&at('Invalid prop: custom validator check failed for prop "'+s+'".')}}const dp=$n("String,Number,Boolean,Function,Symbol,BigInt");function fp(s,t){let e;const n=Vo(t);if(dp(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=qt(s):n==="Array"?e=vt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function pp(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(Fi).join(" | ")}`;const i=e[0],r=ro(t),o=kc(t,i),a=kc(t,r);return e.length===1&&Cc(i)&&!mp(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,Cc(r)&&(n+=`with value ${a}.`),n}function kc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function Cc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function mp(...s){return s.some(t=>t.toLowerCase()==="boolean")}const Sc=s=>s[0]==="_"||s==="$stable",Fo=s=>vt(s)?s.map(cs):[cs(s)],gp=(s,t,e)=>{if(t._n)return t;const n=Ft((...i)=>({}.NODE_ENV!=="production"&&Oe&&(!e||e.root===Oe.root)&&at(`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.`),Fo(t(...i))),e);return n._c=!1,n},Ec=(s,t,e)=>{const n=s._ctx;for(const i in s){if(Sc(i))continue;const r=s[i];if(Ot(r))t[i]=gp(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&at(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Fo(r);t[i]=()=>o}}},Tc=(s,t)=>{({}).NODE_ENV!=="production"&&!Do(s.vnode)&&at("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=Fo(t);s.slots.default=()=>e},yp=(s,t)=>{const e=s.slots=mc();if(s.vnode.shapeFlag&32){const n=t._;n?(pe(e,t),ul(e,"_",n)):Ec(t,e)}else t&&Tc(s,t)},vp=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=te;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&gn?(pe(i,t),fs(s,"set","$slots")):e&&a===1?r=!1:(pe(i,t),!e&&a===1&&delete i._):(r=!t.$stable,Ec(t,i)),o=t}else t&&(Tc(s,t),o={default:1});if(r)for(const a in i)!Sc(a)&&o[a]==null&&delete i[a]};function Go(s,t,e,n,i=!1){if(vt(s)){s.forEach((f,d)=>Go(f,t&&(vt(t)?t[d]:t),e,n,i));return}if(ri(n)&&!i)return;const r=n.shapeFlag&4?pr(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){at("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===te?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(be(c)?(u[c]=null,Lt(h,c)&&(h[c]=null)):$e(c)&&(c.value=null)),Ot(l))Is(l,a,12,[o,u]);else{const f=be(l),d=$e(l);if(f||d){const m=()=>{if(s.f){const g=f?Lt(h,l)?h[l]:u[l]:l.value;i?vt(g)&&no(g,r):vt(g)?g.includes(r)||g.push(r):f?(u[l]=[r],Lt(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,Lt(h,l)&&(h[l]=o)):d?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&at("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Ye(m,e)):m()}else({}).NODE_ENV!=="production"&&at("Invalid template ref type:",l,`(${typeof l})`)}}let li,Ks;function Rs(s,t){s.appContext.config.performance&&lr()&&Ks.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&kf(s,t,lr()?Ks.now():Date.now())}function As(s,t){if(s.appContext.config.performance&&lr()){const e=`vue-${t}-${s.uid}`,n=e+":end";Ks.mark(n),Ks.measure(`<${mr(s,s.type)}> ${t}`,e,n),Ks.clearMarks(e),Ks.clearMarks(n)}({}).NODE_ENV!=="production"&&Cf(s,t,lr()?Ks.now():Date.now())}function lr(){return li!==void 0||(typeof window<"u"&&window.performance?(li=!0,Ks=window.performance):li=!1),li}function bp(){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
- For more details, see https://link.vuejs.org/feature-flags.`)}}const Gt=vf;function ip(s){return rp(s)}function rp(s,e){np();const t=so();t.__VUE__=!0,{}.NODE_ENV!=="production"&&jl(t.__VUE_DEVTOOLS_GLOBAL_HOOK__,t);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:f,setScopeId:d=bt,insertStaticContent:m}=s,v=(y,w,R,F=null,G=null,se=null,J=void 0,W=null,ee={}.NODE_ENV!=="production"&&mn?!1:!!w.dynamicChildren)=>{if(y===w)return;y&&!ci(y,w)&&(F=zt(y),Fe(y,G,se,!0),y=null),w.patchFlag===-2&&(ee=!1,w.dynamicChildren=null);const{type:Z,ref:le,shapeFlag:pe}=w;switch(Z){case oi:b(y,w,R,F);break;case Bt:C(y,w,R,F);break;case rr:y==null?O(w,R,F,J):{}.NODE_ENV!=="production"&&$(y,w,R,J);break;case je:Ue(y,w,R,F,G,se,J,W,ee);break;default:pe&1?L(y,w,R,F,G,se,J,W,ee):pe&6?qe(y,w,R,F,G,se,J,W,ee):pe&64||pe&128?Z.process(y,w,R,F,G,se,J,W,ee,Kt):{}.NODE_ENV!=="production"&&re("Invalid VNode type:",Z,`(${typeof Z})`)}le!=null&&G&&Ro(le,y&&y.ref,se,w||y,!w)},b=(y,w,R,F)=>{if(y==null)n(w.el=a(w.children),R,F);else{const G=w.el=y.el;w.children!==y.children&&c(G,w.children)}},C=(y,w,R,F)=>{y==null?n(w.el=l(w.children||""),R,F):w.el=y.el},O=(y,w,R,F)=>{[y.el,y.anchor]=m(y.children,w,R,F,y.el,y.anchor)},$=(y,w,R,F)=>{if(w.children!==y.children){const G=f(y.anchor);Y(y),[w.el,w.anchor]=m(w.children,R,G,F)}else w.el=y.el,w.anchor=y.anchor},S=({el:y,anchor:w},R,F)=>{let G;for(;y&&y!==w;)G=f(y),n(y,R,F),y=G;n(w,R,F)},Y=({el:y,anchor:w})=>{let R;for(;y&&y!==w;)R=f(y),i(y),y=R;i(w)},L=(y,w,R,F,G,se,J,W,ee)=>{w.type==="svg"?J="svg":w.type==="math"&&(J="mathml"),y==null?H(w,R,F,G,se,J,W,ee):ge(y,w,G,se,J,W,ee)},H=(y,w,R,F,G,se,J,W)=>{let ee,Z;const{props:le,shapeFlag:pe,transition:de,dirs:Te}=y;if(ee=y.el=o(y.type,se,le&&le.is,le),pe&8?u(ee,y.children):pe&16&&ye(y.children,ee,null,F,G,Vo(y,se),J,W),Te&&yn(y,null,F,"created"),fe(ee,y,y.scopeId,J,F),le){for(const Be in le)Be!=="value"&&!Xn(Be)&&r(ee,Be,null,le[Be],se,y.children,F,G,Re);"value"in le&&r(ee,"value",null,le.value,se),(Z=le.onVnodeBeforeMount)&&ms(Z,F,y)}({}).NODE_ENV!=="production"&&(Object.defineProperty(ee,"__vnode",{value:y,enumerable:!1}),Object.defineProperty(ee,"__vueParentComponent",{value:F,enumerable:!1})),Te&&yn(y,null,F,"beforeMount");const De=op(G,de);De&&de.beforeEnter(ee),n(ee,w,R),((Z=le&&le.onVnodeMounted)||De||Te)&&Gt(()=>{Z&&ms(Z,F,y),De&&de.enter(ee),Te&&yn(y,null,F,"mounted")},G)},fe=(y,w,R,F,G)=>{if(R&&d(y,R),F)for(let se=0;se<F.length;se++)d(y,F[se]);if(G){let se=G.subTree;if({}.NODE_ENV!=="production"&&se.patchFlag>0&&se.patchFlag&2048&&(se=So(se.children)||se),w===se){const J=G.vnode;fe(y,J,J.scopeId,J.slotScopeIds,G.parent)}}},ye=(y,w,R,F,G,se,J,W,ee=0)=>{for(let Z=ee;Z<y.length;Z++){const le=y[Z]=W?Ks(y[Z]):as(y[Z]);v(null,le,w,R,F,G,se,J,W)}},ge=(y,w,R,F,G,se,J)=>{const W=w.el=y.el;let{patchFlag:ee,dynamicChildren:Z,dirs:le}=w;ee|=y.patchFlag&16;const pe=y.props||Ke,de=w.props||Ke;let Te;if(R&&_n(R,!1),(Te=de.onVnodeBeforeUpdate)&&ms(Te,R,w,y),le&&yn(w,y,R,"beforeUpdate"),R&&_n(R,!0),{}.NODE_ENV!=="production"&&mn&&(ee=0,J=!1,Z=null),Z?(Me(y.dynamicChildren,Z,W,R,F,Vo(w,G),se),{}.NODE_ENV!=="production"&&ir(y,w)):J||te(y,w,W,null,R,F,Vo(w,G),se,!1),ee>0){if(ee&16)Ae(W,w,pe,de,R,F,G);else if(ee&2&&pe.class!==de.class&&r(W,"class",null,de.class,G),ee&4&&r(W,"style",pe.style,de.style,G),ee&8){const De=w.dynamicProps;for(let Be=0;Be<De.length;Be++){const Ze=De[Be],D=pe[Ze],E=de[Ze];(E!==D||Ze==="value")&&r(W,Ze,D,E,G,y.children,R,F,Re)}}ee&1&&y.children!==w.children&&u(W,w.children)}else!J&&Z==null&&Ae(W,w,pe,de,R,F,G);((Te=de.onVnodeUpdated)||le)&&Gt(()=>{Te&&ms(Te,R,w,y),le&&yn(w,y,R,"updated")},F)},Me=(y,w,R,F,G,se,J)=>{for(let W=0;W<w.length;W++){const ee=y[W],Z=w[W],le=ee.el&&(ee.type===je||!ci(ee,Z)||ee.shapeFlag&70)?h(ee.el):R;v(ee,Z,le,null,F,G,se,J,!0)}},Ae=(y,w,R,F,G,se,J)=>{if(R!==F){if(R!==Ke)for(const W in R)!Xn(W)&&!(W in F)&&r(y,W,R[W],null,J,w.children,G,se,Re);for(const W in F){if(Xn(W))continue;const ee=F[W],Z=R[W];ee!==Z&&W!=="value"&&r(y,W,Z,ee,J,w.children,G,se,Re)}"value"in F&&r(y,"value",R.value,F.value,J)}},Ue=(y,w,R,F,G,se,J,W,ee)=>{const Z=w.el=y?y.el:a(""),le=w.anchor=y?y.anchor:a("");let{patchFlag:pe,dynamicChildren:de,slotScopeIds:Te}=w;({}).NODE_ENV!=="production"&&(mn||pe&2048)&&(pe=0,ee=!1,de=null),Te&&(W=W?W.concat(Te):Te),y==null?(n(Z,R,F),n(le,R,F),ye(w.children||[],R,le,G,se,J,W,ee)):pe>0&&pe&64&&de&&y.dynamicChildren?(Me(y.dynamicChildren,de,R,G,se,J,W),{}.NODE_ENV!=="production"?ir(y,w):(w.key!=null||G&&w===G.subTree)&&ir(y,w,!0)):te(y,w,R,le,G,se,J,W,ee)},qe=(y,w,R,F,G,se,J,W,ee)=>{w.slotScopeIds=W,y==null?w.shapeFlag&512?G.ctx.activate(w,R,F,J,ee):et(w,R,F,G,se,J,ee):Ge(y,w,ee)},et=(y,w,R,F,G,se,J)=>{const W=y.component=pp(y,F,G);if({}.NODE_ENV!=="production"&&W.type.__hmrId&&Kd(W),{}.NODE_ENV!=="production"&&(Hi(y),Ds(W,"mount")),Eo(y)&&(W.ctx.renderer=Kt),{}.NODE_ENV!=="production"&&Ds(W,"init"),gp(W),{}.NODE_ENV!=="production"&&Ns(W,"init"),W.asyncDep){if(G&&G.registerDep(W,be),!y.el){const ee=W.subTree=ue(Bt);C(null,ee,w,R)}}else be(W,y,w,R,G,se,J);({}).NODE_ENV!=="production"&&(Wi(),Ns(W,"mount"))},Ge=(y,w,R)=>{const F=w.component=y.component;if(ff(y,w,R))if(F.asyncDep&&!F.asyncResolved){({}).NODE_ENV!=="production"&&Hi(w),_e(F,w,R),{}.NODE_ENV!=="production"&&Wi();return}else F.next=w,qd(F.update),F.effect.dirty=!0,F.update();else w.el=y.el,F.vnode=w},be=(y,w,R,F,G,se,J)=>{const W=()=>{if(y.isMounted){let{next:le,bu:pe,u:de,parent:Te,vnode:De}=y;{const k=wc(y);if(k){le&&(le.el=De.el,_e(y,le,J)),k.asyncDep.then(()=>{y.isUnmounted||W()});return}}let Be=le,Ze;({}).NODE_ENV!=="production"&&Hi(le||y.vnode),_n(y,!1),le?(le.el=De.el,_e(y,le,J)):le=De,pe&&Un(pe),(Ze=le.props&&le.props.onVnodeBeforeUpdate)&&ms(Ze,Te,le,De),_n(y,!0),{}.NODE_ENV!=="production"&&Ds(y,"render");const D=Co(y);({}).NODE_ENV!=="production"&&Ns(y,"render");const E=y.subTree;y.subTree=D,{}.NODE_ENV!=="production"&&Ds(y,"patch"),v(E,D,h(E.el),zt(E),y,G,se),{}.NODE_ENV!=="production"&&Ns(y,"patch"),le.el=D.el,Be===null&&pf(y,D.el),de&&Gt(de,G),(Ze=le.props&&le.props.onVnodeUpdated)&&Gt(()=>ms(Ze,Te,le,De),G),{}.NODE_ENV!=="production"&&Yl(y),{}.NODE_ENV!=="production"&&Wi()}else{let le;const{el:pe,props:de}=w,{bm:Te,m:De,parent:Be}=y,Ze=si(w);if(_n(y,!1),Te&&Un(Te),!Ze&&(le=de&&de.onVnodeBeforeMount)&&ms(le,Be,w),_n(y,!0),pe&&us){const D=()=>{({}).NODE_ENV!=="production"&&Ds(y,"render"),y.subTree=Co(y),{}.NODE_ENV!=="production"&&Ns(y,"render"),{}.NODE_ENV!=="production"&&Ds(y,"hydrate"),us(pe,y.subTree,y,G,null),{}.NODE_ENV!=="production"&&Ns(y,"hydrate")};Ze?w.type.__asyncLoader().then(()=>!y.isUnmounted&&D()):D()}else{({}).NODE_ENV!=="production"&&Ds(y,"render");const D=y.subTree=Co(y);({}).NODE_ENV!=="production"&&Ns(y,"render"),{}.NODE_ENV!=="production"&&Ds(y,"patch"),v(null,D,R,F,y,G,se),{}.NODE_ENV!=="production"&&Ns(y,"patch"),w.el=D.el}if(De&&Gt(De,G),!Ze&&(le=de&&de.onVnodeMounted)){const D=w;Gt(()=>ms(le,Be,D),G)}(w.shapeFlag&256||Be&&si(Be.vnode)&&Be.vnode.shapeFlag&256)&&y.a&&Gt(y.a,G),y.isMounted=!0,{}.NODE_ENV!=="production"&&nf(y),w=R=F=null}},ee=y.effect=new io(W,bt,()=>Ui(Z),y.scope),Z=y.update=()=>{ee.dirty&&ee.run()};Z.id=y.uid,_n(y,!0),{}.NODE_ENV!=="production"&&(ee.onTrack=y.rtc?le=>Un(y.rtc,le):void 0,ee.onTrigger=y.rtg?le=>Un(y.rtg,le):void 0,Z.ownerInstance=y),Z()},_e=(y,w,R)=>{w.component=y;const F=y.vnode.props;y.vnode=w,y.next=null,Uf(y,w.props,F,R),sp(y,w.children,R),Ss(),Ll(y),ks()},te=(y,w,R,F,G,se,J,W,ee=!1)=>{const Z=y&&y.children,le=y?y.shapeFlag:0,pe=w.children,{patchFlag:de,shapeFlag:Te}=w;if(de>0){if(de&128){Ce(Z,pe,R,F,G,se,J,W,ee);return}else if(de&256){U(Z,pe,R,F,G,se,J,W,ee);return}}Te&8?(le&16&&Re(Z,G,se),pe!==Z&&u(R,pe)):le&16?Te&16?Ce(Z,pe,R,F,G,se,J,W,ee):Re(Z,G,se,!0):(le&8&&u(R,""),Te&16&&ye(pe,R,F,G,se,J,W,ee))},U=(y,w,R,F,G,se,J,W,ee)=>{y=y||Dn,w=w||Dn;const Z=y.length,le=w.length,pe=Math.min(Z,le);let de;for(de=0;de<pe;de++){const Te=w[de]=ee?Ks(w[de]):as(w[de]);v(y[de],Te,R,null,G,se,J,W,ee)}Z>le?Re(y,G,se,!0,!1,pe):ye(w,R,F,G,se,J,W,ee,pe)},Ce=(y,w,R,F,G,se,J,W,ee)=>{let Z=0;const le=w.length;let pe=y.length-1,de=le-1;for(;Z<=pe&&Z<=de;){const Te=y[Z],De=w[Z]=ee?Ks(w[Z]):as(w[Z]);if(ci(Te,De))v(Te,De,R,null,G,se,J,W,ee);else break;Z++}for(;Z<=pe&&Z<=de;){const Te=y[pe],De=w[de]=ee?Ks(w[de]):as(w[de]);if(ci(Te,De))v(Te,De,R,null,G,se,J,W,ee);else break;pe--,de--}if(Z>pe){if(Z<=de){const Te=de+1,De=Te<le?w[Te].el:F;for(;Z<=de;)v(null,w[Z]=ee?Ks(w[Z]):as(w[Z]),R,De,G,se,J,W,ee),Z++}}else if(Z>de)for(;Z<=pe;)Fe(y[Z],G,se,!0),Z++;else{const Te=Z,De=Z,Be=new Map;for(Z=De;Z<=de;Z++){const ie=w[Z]=ee?Ks(w[Z]):as(w[Z]);ie.key!=null&&({}.NODE_ENV!=="production"&&Be.has(ie.key)&&re("Duplicate keys found during update:",JSON.stringify(ie.key),"Make sure keys are unique."),Be.set(ie.key,Z))}let Ze,D=0;const E=de-De+1;let k=!1,B=0;const z=new Array(E);for(Z=0;Z<E;Z++)z[Z]=0;for(Z=Te;Z<=pe;Z++){const ie=y[Z];if(D>=E){Fe(ie,G,se,!0);continue}let X;if(ie.key!=null)X=Be.get(ie.key);else for(Ze=De;Ze<=de;Ze++)if(z[Ze-De]===0&&ci(ie,w[Ze])){X=Ze;break}X===void 0?Fe(ie,G,se,!0):(z[X-De]=Z+1,X>=B?B=X:k=!0,v(ie,w[X],R,null,G,se,J,W,ee),D++)}const q=k?ap(z):Dn;for(Ze=q.length-1,Z=E-1;Z>=0;Z--){const ie=De+Z,X=w[ie],ne=ie+1<le?w[ie+1].el:F;z[Z]===0?v(null,X,R,ne,G,se,J,W,ee):k&&(Ze<0||Z!==q[Ze]?A(X,R,ne,2):Ze--)}}},A=(y,w,R,F,G=null)=>{const{el:se,type:J,transition:W,children:ee,shapeFlag:Z}=y;if(Z&6){A(y.component.subTree,w,R,F);return}if(Z&128){y.suspense.move(w,R,F);return}if(Z&64){J.move(y,w,R,Kt);return}if(J===je){n(se,w,R);for(let pe=0;pe<ee.length;pe++)A(ee[pe],w,R,F);n(y.anchor,w,R);return}if(J===rr){S(y,w,R);return}if(F!==2&&Z&1&&W)if(F===0)W.beforeEnter(se),n(se,w,R),Gt(()=>W.enter(se),G);else{const{leave:pe,delayLeave:de,afterLeave:Te}=W,De=()=>n(se,w,R),Be=()=>{pe(se,()=>{De(),Te&&Te()})};de?de(se,De,Be):Be()}else n(se,w,R)},Fe=(y,w,R,F=!1,G=!1)=>{const{type:se,props:J,ref:W,children:ee,dynamicChildren:Z,shapeFlag:le,patchFlag:pe,dirs:de}=y;if(W!=null&&Ro(W,null,R,y,!0),le&256){w.ctx.deactivate(y);return}const Te=le&1&&de,De=!si(y);let Be;if(De&&(Be=J&&J.onVnodeBeforeUnmount)&&ms(Be,w,y),le&6)ot(y.component,R,F);else{if(le&128){y.suspense.unmount(R,F);return}Te&&yn(y,null,w,"beforeUnmount"),le&64?y.type.remove(y,w,R,G,Kt,F):Z&&(se!==je||pe>0&&pe&64)?Re(Z,w,R,!1,!0):(se===je&&pe&384||!G&&le&16)&&Re(ee,w,R),F&&ht(y)}(De&&(Be=J&&J.onVnodeUnmounted)||Te)&&Gt(()=>{Be&&ms(Be,w,y),Te&&yn(y,null,w,"unmounted")},R)},ht=y=>{const{type:w,el:R,anchor:F,transition:G}=y;if(w===je){({}).NODE_ENV!=="production"&&y.patchFlag>0&&y.patchFlag&2048&&G&&!G.persisted?y.children.forEach(J=>{J.type===Bt?i(J.el):ht(J)}):rt(R,F);return}if(w===rr){Y(y);return}const se=()=>{i(R),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(y.shapeFlag&1&&G&&!G.persisted){const{leave:J,delayLeave:W}=G,ee=()=>J(R,se);W?W(y.el,se,ee):ee()}else se()},rt=(y,w)=>{let R;for(;y!==w;)R=f(y),i(y),y=R;i(w)},ot=(y,w,R)=>{({}).NODE_ENV!=="production"&&y.type.__hmrId&&Qd(y);const{bum:F,scope:G,update:se,subTree:J,um:W}=y;F&&Un(F),G.stop(),se&&(se.active=!1,Fe(J,y,w,R)),W&&Gt(W,w),Gt(()=>{y.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&y.asyncDep&&!y.asyncResolved&&y.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve()),{}.NODE_ENV!=="production"&&of(y)},Re=(y,w,R,F=!1,G=!1,se=0)=>{for(let J=se;J<y.length;J++)Fe(y[J],w,R,F,G)},zt=y=>y.shapeFlag&6?zt(y.component.subTree):y.shapeFlag&128?y.suspense.next():f(y.anchor||y.el);let Ye=!1;const pt=(y,w,R)=>{y==null?w._vnode&&Fe(w._vnode,null,null,!0):v(w._vnode||null,y,w,null,null,null,R),Ye||(Ye=!0,Ll(),zl(),Ye=!1),w._vnode=y},Kt={p:v,um:Fe,m:A,r:ht,mt:et,mc:ye,pc:te,pbc:Me,n:zt,o:s};let cs,us;return e&&([cs,us]=e(Kt)),{render:pt,hydrate:cs,createApp:Yf(pt,cs)}}function Vo({type:s,props:e},t){return t==="svg"&&s==="foreignObject"||t==="mathml"&&s==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:t}function _n({effect:s,update:e},t){s.allowRecurse=e.allowRecurse=t}function op(s,e){return(!s||s&&!s.pendingBranch)&&e&&!e.persisted}function ir(s,e,t=!1){const n=s.children,i=e.children;if(ve(n)&&ve(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]=Ks(i[r]),a.el=o.el),t||ir(o,a)),a.type===oi&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Bt&&!a.el&&(a.el=o.el)}}function ap(s){const e=s.slice(),t=[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=t[t.length-1],s[i]<c){e[n]=i,t.push(n);continue}for(r=0,o=t.length-1;r<o;)a=r+o>>1,s[t[a]]<c?r=a+1:o=a;c<s[t[r]]&&(r>0&&(e[n]=t[r-1]),t[r]=n)}}for(r=t.length,o=t[r-1];r-- >0;)t[r]=o,o=e[o];return t}function wc(s){const e=s.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:wc(e)}const lp=s=>s.__isTeleport,je=Symbol.for("v-fgt"),oi=Symbol.for("v-txt"),Bt=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),ai=[];let os=null;function I(s=!1){ai.push(os=s?null:[])}function cp(){ai.pop(),os=ai[ai.length-1]||null}let li=1;function Cc(s){li+=s}function Sc(s){return s.dynamicChildren=li>0?os||Dn:null,cp(),li>0&&os&&os.push(s),s}function V(s,e,t,n,i,r){return Sc(_(s,e,t,n,i,r,!0))}function wt(s,e,t,n,i){return Sc(ue(s,e,t,n,i,!0))}function An(s){return s?s.__v_isVNode===!0:!1}function ci(s,e){return{}.NODE_ENV!=="production"&&e.shapeFlag&6&&Mn.has(e.type)?(s.shapeFlag&=-257,e.shapeFlag&=-513,!1):s.type===e.type&&s.key===e.key}const up=(...s)=>Ec(...s),kc=({key:s})=>s??null,or=({ref:s,ref_key:e,ref_for:t})=>(typeof s=="number"&&(s=""+s),s!=null?mt(s)||It(s)||Oe(s)?{i:xt,r:s,k:e,f:!!t}:s:null);function _(s,e=null,t=null,n=0,i=null,r=s===je?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:e,key:e&&kc(e),ref:e&&or(e),scopeId:Zi,slotScopeIds:null,children:t,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:xt};return a?(Lo(l,t),r&128&&s.normalize(l)):t&&(l.shapeFlag|=mt(t)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&re("VNode created with invalid key (NaN). VNode type:",l.type),li>0&&!o&&os&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&os.push(l),l}const ue={}.NODE_ENV!=="production"?up:Ec;function Ec(s,e=null,t=null,n=0,i=null,r=!1){if((!s||s===mf)&&({}.NODE_ENV!=="production"&&!s&&re(`Invalid vnode type when creating vnode: ${s}.`),s=Bt),An(s)){const a=Zs(s,e,!0);return t&&Lo(a,t),li>0&&!r&&os&&(a.shapeFlag&6?os[os.indexOf(s)]=a:os.push(a)),a.patchFlag|=-2,a}if(Rc(s)&&(s=s.__vccOpts),e){e=hp(e);let{class:a,style:l}=e;a&&!mt(a)&&(e.class=_t(a)),Xe(l)&&(fo(l)&&!ve(l)&&(l=lt({},l)),e.style=M(l))}const o=mt(s)?1:gf(s)?128:lp(s)?64:Xe(s)?4:Oe(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&fo(s)&&(s=Ne(s),re("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)),_(s,e,t,n,i,o,r,!0)}function hp(s){return s?fo(s)||uc(s)?lt({},s):s:null}function Zs(s,e,t=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=e?zo(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&kc(a),ref:e&&e.ref?t&&i?ve(i)?i.concat(or(e)):[i,or(e)]:or(e):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&ve(o)?o.map(Tc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:e&&s.type!==je?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&&Zs(s.ssContent),ssFallback:s.ssFallback&&Zs(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function Tc(s){const e=Zs(s);return ve(s.children)&&(e.children=s.children.map(Tc)),e}function He(s=" ",e=0){return ue(oi,null,s,e)}function Pe(s="",e=!1){return e?(I(),wt(Bt,null,s)):ue(Bt,null,s)}function as(s){return s==null||typeof s=="boolean"?ue(Bt):ve(s)?ue(je,null,s.slice()):typeof s=="object"?Ks(s):ue(oi,null,String(s))}function Ks(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Zs(s)}function Lo(s,e){let t=0;const{shapeFlag:n}=s;if(e==null)e=null;else if(ve(e))t=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Lo(s,i()),i._c&&(i._d=!0));return}else{t=32;const i=e._;!i&&!uc(e)?e._ctx=xt:i===3&&xt&&(xt.slots._===1?e._=1:(e._=2,s.patchFlag|=1024))}else Oe(e)?(e={default:e,_ctx:xt},t=32):(e=String(e),n&64?(t=16,e=[He(e)]):t=8);s.children=e,s.shapeFlag|=t}function zo(...s){const e={};for(let t=0;t<s.length;t++){const n=s[t];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=_t([e.class,n.class]));else if(i==="style")e.style=M([e.style,n.style]);else if(Wn(i)){const r=e[i],o=n[i];o&&r!==o&&!(ve(r)&&r.includes(o))&&(e[i]=r?[].concat(r,o):o)}else i!==""&&(e[i]=n[i])}return e}function ms(s,e,t,n=null){rs(s,e,7,[t,n])}const dp=ac();let fp=0;function pp(s,e,t){const n=s.type,i=(e?e.appContext:s.appContext)||dp,r={uid:fp++,vnode:s,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new fd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:dc(n,i),emitsOptions:Wl(n,i),emit:null,emitted:null,propsDefaults:Ke,inheritAttrs:n.inheritAttrs,ctx:Ke,data:Ke,props:Ke,attrs:Ke,slots:Ke,refs:Ke,setupState:Ke,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:t,suspenseId:t?t.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=Nf(r):r.ctx={_:r},r.root=e?e.root:r,r.emit=uf.bind(null,r),s.ce&&s.ce(r),r}let Et=null;const Oc=()=>Et||xt;let ar,Fo;{const s=so(),e=(t,n)=>{let i;return(i=s[t])||(i=s[t]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};ar=e("__VUE_INSTANCE_SETTERS__",t=>Et=t),Fo=e("__VUE_SSR_SETTERS__",t=>lr=t)}const ui=s=>{const e=Et;return ar(s),s.scope.on(),()=>{s.scope.off(),ar(e)}},Pc=()=>{Et&&Et.scope.off(),ar(null)},mp=In("slot,component");function Go(s,{isNativeTag:e}){(mp(s)||e(s))&&re("Do not use built-in or reserved HTML elements as component id: "+s)}function Ic(s){return s.vnode.shapeFlag&4}let lr=!1;function gp(s,e=!1){e&&Fo(e);const{props:t,children:n}=s.vnode,i=Ic(s);Wf(s,t,i,e),tp(s,n);const r=i?vp(s,e):void 0;return e&&Fo(!1),r}function vp(s,e){var t;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Go(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)Go(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)Ql(r[o])}n.compilerOptions&&yp()&&re('"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=new Proxy(s.ctx,tc),{}.NODE_ENV!=="production"&&$f(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?Mc(s):null,o=ui(s);Ss();const a=Ts(i,s,0,[{}.NODE_ENV!=="production"?Es(s.props):s.props,r]);if(ks(),o(),Jr(a)){if(a.then(Pc,Pc),e)return a.then(l=>{Dc(s,l,e)}).catch(l=>{Zn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(t=n.name)!=null?t:"Anonymous";re(`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 Dc(s,a,e)}else Nc(s,e)}function Dc(s,e,t){Oe(e)?s.type.__ssrInlineRender?s.ssrRender=e:s.render=e:Xe(e)?({}.NODE_ENV!=="production"&&An(e)&&re("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=e),s.setupState=$l(e),{}.NODE_ENV!=="production"&&Mf(s)):{}.NODE_ENV!=="production"&&e!==void 0&&re(`setup() should return an object. Received: ${e===null?"null":typeof e}`),Nc(s,t)}let Bo;const yp=()=>!Bo;function Nc(s,e,t){const n=s.type;if(!s.render){if(!e&&Bo&&!n.render){const i=n.template||Do(s).template;if(i){({}).NODE_ENV!=="production"&&Ds(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=lt(lt({isCustomElement:r,delimiters:a},o),l);n.render=Bo(i,c),{}.NODE_ENV!=="production"&&Ns(s,"compile")}}s.render=n.render||bt}{const i=ui(s);Ss();try{Lf(s)}finally{ks(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===bt&&!e&&(n.template?re('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".'):re("Component is missing template or render function."))}const $c={}.NODE_ENV!=="production"?{get(s,e){return Qi(),Pt(s,"get",""),s[e]},set(){return re("setupContext.attrs is readonly."),!1},deleteProperty(){return re("setupContext.attrs is readonly."),!1}}:{get(s,e){return Pt(s,"get",""),s[e]}};function bp(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(e,t){return Pt(s,"get","$slots"),e[t]}}))}function Mc(s){const e=t=>{if({}.NODE_ENV!=="production"&&(s.exposed&&re("expose() should be called only once per setup()."),t!=null)){let n=typeof t;n==="object"&&(ve(t)?n="array":It(t)&&(n="ref")),n!=="object"&&re(`expose() should be passed a plain object, received ${n}.`)}s.exposed=t||{}};if({}.NODE_ENV!=="production"){let t;return Object.freeze({get attrs(){return t||(t=new Proxy(s.attrs,$c))},get slots(){return bp(s)},get emit(){return(n,...i)=>s.emit(n,...i)},expose:e})}else return{attrs:new Proxy(s.attrs,$c),slots:s.slots,emit:s.emit,expose:e}}function cr(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy($l(Rd(s.exposed)),{get(e,t){if(t in e)return e[t];if(t in bn)return bn[t](s)},has(e,t){return t in e||t in bn}}))}const _p=/(?:^|[-_])(\w)/g,xp=s=>s.replace(_p,e=>e.toUpperCase()).replace(/[-_]/g,"");function Ac(s,e=!0){return Oe(s)?s.displayName||s.name:s.name||e&&s.__name}function ur(s,e,t=!1){let n=Ac(e);if(!n&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===e)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?xp(n):t?"App":"Anonymous"}function Rc(s){return Oe(s)&&"__vccOpts"in s}const wp=(s,e)=>{const t=Ld(s,e,lr);if({}.NODE_ENV!=="production"){const n=Oc();n&&n.appContext.config.warnRecursiveComputed&&(t._warnRecursive=!0)}return t};function tt(s,e,t){const n=arguments.length;return n===2?Xe(e)&&!ve(e)?An(e)?ue(s,null,[e]):ue(s,e):ue(s,null,e):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&An(t)&&(t=[t]),ue(s,e,t))}function Cp(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},e={style:"color:#1677ff"},t={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Xe(h)?h.__isVue?["div",s,"VueInstance"]:It(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:Nn(h)?["div",{},["span",s,fn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${dn(h)?" (readonly)":""}`]:dn(h)?["div",{},["span",s,fn(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 f=[];h.type.props&&h.props&&f.push(o("props",Ne(h.props))),h.setupState!==Ke&&f.push(o("setup",h.setupState)),h.data!==Ke&&f.push(o("data",Ne(h.data)));const d=l(h,"computed");d&&f.push(o("computed",d));const m=l(h,"inject");return m&&f.push(o("injected",m)),f.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=lt({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",n,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",e,h]:typeof h=="string"?["span",t,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Xe(h)?["object",{object:f?Ne(h):h}]:["span",t,String(h)]}function l(h,f){const d=h.type;if(Oe(d))return;const m={};for(const v in h.ctx)c(d,v,f)&&(m[v]=h.ctx[v]);return m}function c(h,f,d){const m=h[d];if(ve(m)&&m.includes(f)||Xe(m)&&f in m||h.extends&&c(h.extends,f,d)||h.mixins&&h.mixins.some(v=>c(v,f,d)))return!0}function u(h){return fn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Vc="3.4.25",hr={}.NODE_ENV!=="production"?re:bt;/**
20
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const Ye=Nf;function _p(s){return xp(s)}function xp(s,t){bp();const e=ao();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Zl(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:f,setScopeId:d=ke,insertStaticContent:m}=s,g=(b,w,z,F=null,G=null,et=null,J=void 0,U=null,tt={}.NODE_ENV!=="production"&&gn?!1:!!w.dynamicChildren)=>{if(b===w)return;b&&!di(b,w)&&(F=Te(b),jt(b,G,et,!0),b=null),w.patchFlag===-2&&(tt=!1,w.dynamicChildren=null);const{type:K,ref:lt,shapeFlag:gt}=w;switch(K){case ci:v(b,w,z,F);break;case je:k(b,w,z,F);break;case ur:b==null?I(w,z,F,J):{}.NODE_ENV!=="production"&&M(b,w,z,J);break;case Bt:Kt(b,w,z,F,G,et,J,U,tt);break;default:gt&1?L(b,w,z,F,G,et,J,U,tt):gt&6?Qt(b,w,z,F,G,et,J,U,tt):gt&64||gt&128?K.process(b,w,z,F,G,et,J,U,tt,ze):{}.NODE_ENV!=="production"&&at("Invalid VNode type:",K,`(${typeof K})`)}lt!=null&&G&&Go(lt,b&&b.ref,et,w||b,!w)},v=(b,w,z,F)=>{if(b==null)n(w.el=a(w.children),z,F);else{const G=w.el=b.el;w.children!==b.children&&c(G,w.children)}},k=(b,w,z,F)=>{b==null?n(w.el=l(w.children||""),z,F):w.el=b.el},I=(b,w,z,F)=>{[b.el,b.anchor]=m(b.children,w,z,F,b.el,b.anchor)},M=(b,w,z,F)=>{if(w.children!==b.children){const G=f(b.anchor);j(b),[w.el,w.anchor]=m(w.children,z,G,F)}else w.el=b.el,w.anchor=b.anchor},C=({el:b,anchor:w},z,F)=>{let G;for(;b&&b!==w;)G=f(b),n(b,z,F),b=G;n(w,z,F)},j=({el:b,anchor:w})=>{let z;for(;b&&b!==w;)z=f(b),i(b),b=z;i(w)},L=(b,w,z,F,G,et,J,U,tt)=>{w.type==="svg"?J="svg":w.type==="math"&&(J="mathml"),b==null?X(w,z,F,G,et,J,U,tt):yt(b,w,G,et,J,U,tt)},X=(b,w,z,F,G,et,J,U)=>{let tt,K;const{props:lt,shapeFlag:gt,transition:ft,dirs:Tt}=b;if(tt=b.el=o(b.type,et,lt&&lt.is,lt),gt&8?u(tt,b.children):gt&16&&bt(b.children,tt,null,F,G,Bo(b,et),J,U),Tt&&bn(b,null,F,"created"),mt(tt,b,b.scopeId,J,F),lt){for(const Xt in lt)Xt!=="value"&&!qn(Xt)&&r(tt,Xt,null,lt[Xt],et,b.children,F,G,Dt);"value"in lt&&r(tt,"value",null,lt.value,et),(K=lt.onVnodeBeforeMount)&&gs(K,F,b)}({}).NODE_ENV!=="production"&&(Object.defineProperty(tt,"__vnode",{value:b,enumerable:!1}),Object.defineProperty(tt,"__vueParentComponent",{value:F,enumerable:!1})),Tt&&bn(b,null,F,"beforeMount");const Nt=wp(G,ft);Nt&&ft.beforeEnter(tt),n(tt,w,z),((K=lt&&lt.onVnodeMounted)||Nt||Tt)&&Ye(()=>{K&&gs(K,F,b),Nt&&ft.enter(tt),Tt&&bn(b,null,F,"mounted")},G)},mt=(b,w,z,F,G)=>{if(z&&d(b,z),F)for(let et=0;et<F.length;et++)d(b,F[et]);if(G){let et=G.subTree;if({}.NODE_ENV!=="production"&&et.patchFlag>0&&et.patchFlag&2048&&(et=Io(et.children)||et),w===et){const J=G.vnode;mt(b,J,J.scopeId,J.slotScopeIds,G.parent)}}},bt=(b,w,z,F,G,et,J,U,tt=0)=>{for(let K=tt;K<b.length;K++){const lt=b[K]=U?Js(b[K]):cs(b[K]);g(null,lt,w,z,F,G,et,J,U)}},yt=(b,w,z,F,G,et,J)=>{const U=w.el=b.el;let{patchFlag:tt,dynamicChildren:K,dirs:lt}=w;tt|=b.patchFlag&16;const gt=b.props||te,ft=w.props||te;let Tt;if(z&&xn(z,!1),(Tt=ft.onVnodeBeforeUpdate)&&gs(Tt,z,w,b),lt&&bn(w,b,z,"beforeUpdate"),z&&xn(z,!0),{}.NODE_ENV!=="production"&&gn&&(tt=0,J=!1,K=null),K?(At(b.dynamicChildren,K,U,z,F,Bo(w,G),et),{}.NODE_ENV!=="production"&&cr(b,w)):J||it(b,w,U,null,z,F,Bo(w,G),et,!1),tt>0){if(tt&16)zt(U,w,gt,ft,z,F,G);else if(tt&2&&gt.class!==ft.class&&r(U,"class",null,ft.class,G),tt&4&&r(U,"style",gt.style,ft.style,G),tt&8){const Nt=w.dynamicProps;for(let Xt=0;Xt<Nt.length;Xt++){const Jt=Nt[Xt],D=gt[Jt],E=ft[Jt];(E!==D||Jt==="value")&&r(U,Jt,D,E,G,b.children,z,F,Dt)}}tt&1&&b.children!==w.children&&u(U,w.children)}else!J&&K==null&&zt(U,w,gt,ft,z,F,G);((Tt=ft.onVnodeUpdated)||lt)&&Ye(()=>{Tt&&gs(Tt,z,w,b),lt&&bn(w,b,z,"updated")},F)},At=(b,w,z,F,G,et,J)=>{for(let U=0;U<w.length;U++){const tt=b[U],K=w[U],lt=tt.el&&(tt.type===Bt||!di(tt,K)||tt.shapeFlag&70)?h(tt.el):z;g(tt,K,lt,null,F,G,et,J,!0)}},zt=(b,w,z,F,G,et,J)=>{if(z!==F){if(z!==te)for(const U in z)!qn(U)&&!(U in F)&&r(b,U,z[U],null,J,w.children,G,et,Dt);for(const U in F){if(qn(U))continue;const tt=F[U],K=z[U];tt!==K&&U!=="value"&&r(b,U,K,tt,J,w.children,G,et,Dt)}"value"in F&&r(b,"value",z.value,F.value,J)}},Kt=(b,w,z,F,G,et,J,U,tt)=>{const K=w.el=b?b.el:a(""),lt=w.anchor=b?b.anchor:a("");let{patchFlag:gt,dynamicChildren:ft,slotScopeIds:Tt}=w;({}).NODE_ENV!=="production"&&(gn||gt&2048)&&(gt=0,tt=!1,ft=null),Tt&&(U=U?U.concat(Tt):Tt),b==null?(n(K,z,F),n(lt,z,F),bt(w.children||[],z,lt,G,et,J,U,tt)):gt>0&&gt&64&&ft&&b.dynamicChildren?(At(b.dynamicChildren,ft,z,G,et,J,U),{}.NODE_ENV!=="production"?cr(b,w):(w.key!=null||G&&w===G.subTree)&&cr(b,w,!0)):it(b,w,z,lt,G,et,J,U,tt)},Qt=(b,w,z,F,G,et,J,U,tt)=>{w.slotScopeIds=U,b==null?w.shapeFlag&512?G.ctx.activate(w,z,F,J,tt):ne(w,z,F,G,et,J,tt):Yt(b,w,tt)},ne=(b,w,z,F,G,et,J)=>{const U=b.component=Pp(b,F,G);if({}.NODE_ENV!=="production"&&U.type.__hmrId&&pf(U),{}.NODE_ENV!=="production"&&(qi(b),Rs(U,"mount")),Do(b)&&(U.ctx.renderer=ze),{}.NODE_ENV!=="production"&&Rs(U,"init"),$p(U),{}.NODE_ENV!=="production"&&As(U,"init"),U.asyncDep){if(G&&G.registerDep(U,_t),!b.el){const tt=U.subTree=ut(je);k(null,tt,w,z)}}else _t(U,b,w,z,G,et,J);({}).NODE_ENV!=="production"&&(Ki(),As(U,"mount"))},Yt=(b,w,z)=>{const F=w.component=b.component;if(If(b,w,z))if(F.asyncDep&&!F.asyncResolved){({}).NODE_ENV!=="production"&&qi(w),xt(F,w,z),{}.NODE_ENV!=="production"&&Ki();return}else F.next=w,df(F.update),F.effect.dirty=!0,F.update();else w.el=b.el,F.vnode=w},_t=(b,w,z,F,G,et,J)=>{const U=()=>{if(b.isMounted){let{next:lt,bu:gt,u:ft,parent:Tt,vnode:Nt}=b;{const S=Oc(b);if(S){lt&&(lt.el=Nt.el,xt(b,lt,J)),S.asyncDep.then(()=>{b.isUnmounted||U()});return}}let Xt=lt,Jt;({}).NODE_ENV!=="production"&&qi(lt||b.vnode),xn(b,!1),lt?(lt.el=Nt.el,xt(b,lt,J)):lt=Nt,gt&&Kn(gt),(Jt=lt.props&&lt.props.onVnodeBeforeUpdate)&&gs(Jt,Tt,lt,Nt),xn(b,!0),{}.NODE_ENV!=="production"&&Rs(b,"render");const D=Oo(b);({}).NODE_ENV!=="production"&&As(b,"render");const E=b.subTree;b.subTree=D,{}.NODE_ENV!=="production"&&Rs(b,"patch"),g(E,D,h(E.el),Te(E),b,G,et),{}.NODE_ENV!=="production"&&As(b,"patch"),lt.el=D.el,Xt===null&&Pf(b,D.el),ft&&Ye(ft,G),(Jt=lt.props&&lt.props.onVnodeUpdated)&&Ye(()=>gs(Jt,Tt,lt,Nt),G),{}.NODE_ENV!=="production"&&ql(b),{}.NODE_ENV!=="production"&&Ki()}else{let lt;const{el:gt,props:ft}=w,{bm:Tt,m:Nt,parent:Xt}=b,Jt=ri(w);if(xn(b,!1),Tt&&Kn(Tt),!Jt&&(lt=ft&&ft.onVnodeBeforeMount)&&gs(lt,Xt,w),xn(b,!0),gt&&hs){const D=()=>{({}).NODE_ENV!=="production"&&Rs(b,"render"),b.subTree=Oo(b),{}.NODE_ENV!=="production"&&As(b,"render"),{}.NODE_ENV!=="production"&&Rs(b,"hydrate"),hs(gt,b.subTree,b,G,null),{}.NODE_ENV!=="production"&&As(b,"hydrate")};Jt?w.type.__asyncLoader().then(()=>!b.isUnmounted&&D()):D()}else{({}).NODE_ENV!=="production"&&Rs(b,"render");const D=b.subTree=Oo(b);({}).NODE_ENV!=="production"&&As(b,"render"),{}.NODE_ENV!=="production"&&Rs(b,"patch"),g(null,D,z,F,b,G,et),{}.NODE_ENV!=="production"&&As(b,"patch"),w.el=D.el}if(Nt&&Ye(Nt,G),!Jt&&(lt=ft&&ft.onVnodeMounted)){const D=w;Ye(()=>gs(lt,Xt,D),G)}(w.shapeFlag&256||Xt&&ri(Xt.vnode)&&Xt.vnode.shapeFlag&256)&&b.a&&Ye(b.a,G),b.isMounted=!0,{}.NODE_ENV!=="production"&&_f(b),w=z=F=null}},tt=b.effect=new co(U,ke,()=>Ji(K),b.scope),K=b.update=()=>{tt.dirty&&tt.run()};K.id=b.uid,xn(b,!0),{}.NODE_ENV!=="production"&&(tt.onTrack=b.rtc?lt=>Kn(b.rtc,lt):void 0,tt.onTrigger=b.rtg?lt=>Kn(b.rtg,lt):void 0,K.ownerInstance=b),K()},xt=(b,w,z)=>{w.component=b;const F=b.vnode.props;b.vnode=w,b.next=null,up(b,w.props,F,z),vp(b,w.children,z),Es(),jl(b),Ts()},it=(b,w,z,F,G,et,J,U,tt=!1)=>{const K=b&&b.children,lt=b?b.shapeFlag:0,gt=w.children,{patchFlag:ft,shapeFlag:Tt}=w;if(ft>0){if(ft&128){Et(K,gt,z,F,G,et,J,U,tt);return}else if(ft&256){q(K,gt,z,F,G,et,J,U,tt);return}}Tt&8?(lt&16&&Dt(K,G,et),gt!==K&&u(z,gt)):lt&16?Tt&16?Et(K,gt,z,F,G,et,J,U,tt):Dt(K,G,et,!0):(lt&8&&u(z,""),Tt&16&&bt(gt,z,F,G,et,J,U,tt))},q=(b,w,z,F,G,et,J,U,tt)=>{b=b||Nn,w=w||Nn;const K=b.length,lt=w.length,gt=Math.min(K,lt);let ft;for(ft=0;ft<gt;ft++){const Tt=w[ft]=tt?Js(w[ft]):cs(w[ft]);g(b[ft],Tt,z,null,G,et,J,U,tt)}K>lt?Dt(b,G,et,!0,!1,gt):bt(w,z,F,G,et,J,U,tt,gt)},Et=(b,w,z,F,G,et,J,U,tt)=>{let K=0;const lt=w.length;let gt=b.length-1,ft=lt-1;for(;K<=gt&&K<=ft;){const Tt=b[K],Nt=w[K]=tt?Js(w[K]):cs(w[K]);if(di(Tt,Nt))g(Tt,Nt,z,null,G,et,J,U,tt);else break;K++}for(;K<=gt&&K<=ft;){const Tt=b[gt],Nt=w[ft]=tt?Js(w[ft]):cs(w[ft]);if(di(Tt,Nt))g(Tt,Nt,z,null,G,et,J,U,tt);else break;gt--,ft--}if(K>gt){if(K<=ft){const Tt=ft+1,Nt=Tt<lt?w[Tt].el:F;for(;K<=ft;)g(null,w[K]=tt?Js(w[K]):cs(w[K]),z,Nt,G,et,J,U,tt),K++}}else if(K>ft)for(;K<=gt;)jt(b[K],G,et,!0),K++;else{const Tt=K,Nt=K,Xt=new Map;for(K=Nt;K<=ft;K++){const ot=w[K]=tt?Js(w[K]):cs(w[K]);ot.key!=null&&({}.NODE_ENV!=="production"&&Xt.has(ot.key)&&at("Duplicate keys found during update:",JSON.stringify(ot.key),"Make sure keys are unique."),Xt.set(ot.key,K))}let Jt,D=0;const E=ft-Nt+1;let S=!1,B=0;const V=new Array(E);for(K=0;K<E;K++)V[K]=0;for(K=Tt;K<=gt;K++){const ot=b[K];if(D>=E){jt(ot,G,et,!0);continue}let W;if(ot.key!=null)W=Xt.get(ot.key);else for(Jt=Nt;Jt<=ft;Jt++)if(V[Jt-Nt]===0&&di(ot,w[Jt])){W=Jt;break}W===void 0?jt(ot,G,et,!0):(V[W-Nt]=K+1,W>=B?B=W:S=!0,g(ot,w[W],z,null,G,et,J,U,tt),D++)}const Z=S?kp(V):Nn;for(Jt=Z.length-1,K=E-1;K>=0;K--){const ot=Nt+K,W=w[ot],nt=ot+1<lt?w[ot+1].el:F;V[K]===0?g(null,W,z,nt,G,et,J,U,tt):S&&(Jt<0||K!==Z[Jt]?A(W,z,nt,2):Jt--)}}},A=(b,w,z,F,G=null)=>{const{el:et,type:J,transition:U,children:tt,shapeFlag:K}=b;if(K&6){A(b.component.subTree,w,z,F);return}if(K&128){b.suspense.move(w,z,F);return}if(K&64){J.move(b,w,z,ze);return}if(J===Bt){n(et,w,z);for(let gt=0;gt<tt.length;gt++)A(tt[gt],w,z,F);n(b.anchor,w,z);return}if(J===ur){C(b,w,z);return}if(F!==2&&K&1&&U)if(F===0)U.beforeEnter(et),n(et,w,z),Ye(()=>U.enter(et),G);else{const{leave:gt,delayLeave:ft,afterLeave:Tt}=U,Nt=()=>n(et,w,z),Xt=()=>{gt(et,()=>{Nt(),Tt&&Tt()})};ft?ft(et,Nt,Xt):Xt()}else n(et,w,z)},jt=(b,w,z,F=!1,G=!1)=>{const{type:et,props:J,ref:U,children:tt,dynamicChildren:K,shapeFlag:lt,patchFlag:gt,dirs:ft}=b;if(U!=null&&Go(U,null,z,b,!0),lt&256){w.ctx.deactivate(b);return}const Tt=lt&1&&ft,Nt=!ri(b);let Xt;if(Nt&&(Xt=J&&J.onVnodeBeforeUnmount)&&gs(Xt,w,b),lt&6)re(b.component,z,F);else{if(lt&128){b.suspense.unmount(z,F);return}Tt&&bn(b,null,w,"beforeUnmount"),lt&64?b.type.remove(b,w,z,G,ze,F):K&&(et!==Bt||gt>0&&gt&64)?Dt(K,w,z,!1,!0):(et===Bt&&gt&384||!G&&lt&16)&&Dt(tt,w,z),F&&le(b)}(Nt&&(Xt=J&&J.onVnodeUnmounted)||Tt)&&Ye(()=>{Xt&&gs(Xt,w,b),Tt&&bn(b,null,w,"unmounted")},z)},le=b=>{const{type:w,el:z,anchor:F,transition:G}=b;if(w===Bt){({}).NODE_ENV!=="production"&&b.patchFlag>0&&b.patchFlag&2048&&G&&!G.persisted?b.children.forEach(J=>{J.type===je?i(J.el):le(J)}):ie(z,F);return}if(w===ur){j(b);return}const et=()=>{i(z),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(b.shapeFlag&1&&G&&!G.persisted){const{leave:J,delayLeave:U}=G,tt=()=>J(z,et);U?U(b.el,et,tt):tt()}else et()},ie=(b,w)=>{let z;for(;b!==w;)z=f(b),i(b),b=z;i(w)},re=(b,w,z)=>{({}).NODE_ENV!=="production"&&b.type.__hmrId&&mf(b);const{bum:F,scope:G,update:et,subTree:J,um:U}=b;F&&Kn(F),G.stop(),et&&(et.active=!1,jt(J,b,w,z)),U&&Ye(U,w),Ye(()=>{b.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve()),{}.NODE_ENV!=="production"&&wf(b)},Dt=(b,w,z,F=!1,G=!1,et=0)=>{for(let J=et;J<b.length;J++)jt(b[J],w,z,F,G)},Te=b=>b.shapeFlag&6?Te(b.component.subTree):b.shapeFlag&128?b.suspense.next():f(b.anchor||b.el);let Gt=!1;const ce=(b,w,z)=>{b==null?w._vnode&&jt(w._vnode,null,null,!0):g(w._vnode||null,b,w,null,null,null,z),Gt||(Gt=!0,jl(),Xl(),Gt=!1),w._vnode=b},ze={p:g,um:jt,m:A,r:le,mt:ne,mc:bt,pc:it,pbc:At,n:Te,o:s};let He,hs;return t&&([He,hs]=t(ze)),{render:ce,hydrate:He,createApp:op(ce,He)}}function Bo({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 xn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function wp(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function cr(s,t,e=!1){const n=s.children,i=t.children;if(vt(n)&&vt(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]=Js(i[r]),a.el=o.el),e||cr(o,a)),a.type===ci&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===je&&!a.el&&(a.el=o.el)}}function kp(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 Oc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Oc(t)}const Cp=s=>s.__isTeleport,Bt=Symbol.for("v-fgt"),ci=Symbol.for("v-txt"),je=Symbol.for("v-cmt"),ur=Symbol.for("v-stc"),ui=[];let ls=null;function O(s=!1){ui.push(ls=s?null:[])}function Sp(){ui.pop(),ls=ui[ui.length-1]||null}let hi=1;function Ic(s){hi+=s}function Pc(s){return s.dynamicChildren=hi>0?ls||Nn:null,Sp(),hi>0&&ls&&ls.push(s),s}function R(s,t,e,n,i,r){return Pc(_(s,t,e,n,i,r,!0))}function Ht(s,t,e,n,i){return Pc(ut(s,t,e,n,i,!0))}function zn(s){return s?s.__v_isVNode===!0:!1}function di(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&An.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Ep=(...s)=>$c(...s),Dc=({key:s})=>s??null,hr=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?be(s)||$e(s)||Ot(s)?{i:Ce,r:s,k:t,f:!!e}:s:null);function _(s,t=null,e=null,n=0,i=null,r=s===Bt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Dc(t),ref:t&&hr(t),scopeId:er,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:Ce};return a?(Yo(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=be(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&at("VNode created with invalid key (NaN). VNode type:",l.type),hi>0&&!o&&ls&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&ls.push(l),l}const ut={}.NODE_ENV!=="production"?Ep:$c;function $c(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===Df)&&({}.NODE_ENV!=="production"&&!s&&at(`Invalid vnode type when creating vnode: ${s}.`),s=je),zn(s)){const a=Qs(s,t,!0);return e&&Yo(a,e),hi>0&&!r&&ls&&(a.shapeFlag&6?ls[ls.indexOf(s)]=a:ls.push(a)),a.patchFlag|=-2,a}if(Bc(s)&&(s=s.__vccOpts),t){t=Tp(t);let{class:a,style:l}=t;a&&!be(a)&&(t.class=he(a)),qt(l)&&(vo(l)&&!vt(l)&&(l=pe({},l)),t.style=$(l))}const o=be(s)?1:$f(s)?128:Cp(s)?64:qt(s)?4:Ot(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&vo(s)&&(s=Mt(s),at("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)),_(s,t,e,n,i,o,r,!0)}function Tp(s){return s?vo(s)||gc(s)?pe({},s):s:null}function Qs(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?jo(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&Dc(a),ref:t&&t.ref?e&&i?vt(i)?i.concat(hr(t)):[i,hr(t)]:hr(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&vt(o)?o.map(Nc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==Bt?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&&Qs(s.ssContent),ssFallback:s.ssFallback&&Qs(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function Nc(s){const t=Qs(s);return vt(s.children)&&(t.children=s.children.map(Nc)),t}function Wt(s=" ",t=0){return ut(ci,null,s,t)}function It(s="",t=!1){return t?(O(),Ht(je,null,s)):ut(je,null,s)}function cs(s){return s==null||typeof s=="boolean"?ut(je):vt(s)?ut(Bt,null,s.slice()):typeof s=="object"?Js(s):ut(ci,null,String(s))}function Js(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Qs(s)}function Yo(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(vt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Yo(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!gc(t)?t._ctx=Ce:i===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:Ce},e=32):(t=String(t),n&64?(e=16,t=[Wt(t)]):e=8);s.children=t,s.shapeFlag|=e}function jo(...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=he([t.class,n.class]));else if(i==="style")t.style=$([t.style,n.style]);else if(Zn(i)){const r=t[i],o=n[i];o&&r!==o&&!(vt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function gs(s,t,e,n=null){as(s,t,7,[e,n])}const Op=fc();let Ip=0;function Pp(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||Op,r={uid:Ip++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Id(!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:vc(n,i),emitsOptions:Ql(n,i),emit:null,emitted:null,propsDefaults:te,inheritAttrs:n.inheritAttrs,ctx:te,data:te,props:te,attrs:te,slots:te,refs:te,setupState:te,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=Wf(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Ef.bind(null,r),s.ce&&s.ce(r),r}let Oe=null;const Mc=()=>Oe||Ce;let dr,Xo;{const s=ao(),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)}};dr=t("__VUE_INSTANCE_SETTERS__",e=>Oe=e),Xo=t("__VUE_SSR_SETTERS__",e=>fr=e)}const fi=s=>{const t=Oe;return dr(s),s.scope.on(),()=>{s.scope.off(),dr(t)}},Rc=()=>{Oe&&Oe.scope.off(),dr(null)},Dp=$n("slot,component");function Uo(s,{isNativeTag:t}){(Dp(s)||t(s))&&at("Do not use built-in or reserved HTML elements as component id: "+s)}function Ac(s){return s.vnode.shapeFlag&4}let fr=!1;function $p(s,t=!1){t&&Xo(t);const{props:e,children:n}=s.vnode,i=Ac(s);lp(s,e,i,t),yp(s,n);const r=i?Np(s,t):void 0;return t&&Xo(!1),r}function Np(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Uo(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)Uo(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)ic(r[o])}n.compilerOptions&&Mp()&&at('"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=new Proxy(s.ctx,ac),{}.NODE_ENV!=="production"&&Zf(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?Fc(s):null,o=fi(s);Es();const a=Is(i,s,0,[{}.NODE_ENV!=="production"?Os(s.props):s.props,r]);if(Ts(),o(),io(a)){if(a.then(Rc,Rc),t)return a.then(l=>{zc(s,l,t)}).catch(l=>{Jn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";at(`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 zc(s,a,t)}else Lc(s,t)}function zc(s,t,e){Ot(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:qt(t)?({}.NODE_ENV!=="production"&&zn(t)&&at("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=Vl(t),{}.NODE_ENV!=="production"&&qf(s)):{}.NODE_ENV!=="production"&&t!==void 0&&at(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Lc(s,e)}let Ho;const Mp=()=>!Ho;function Lc(s,t,e){const n=s.type;if(!s.render){if(!t&&Ho&&!n.render){const i=n.template||Ao(s).template;if(i){({}).NODE_ENV!=="production"&&Rs(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=pe(pe({isCustomElement:r,delimiters:a},o),l);n.render=Ho(i,c),{}.NODE_ENV!=="production"&&As(s,"compile")}}s.render=n.render||ke}{const i=fi(s);Es();try{tp(s)}finally{Ts(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===ke&&!t&&(n.template?at('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".'):at("Component is missing template or render function."))}const Vc={}.NODE_ENV!=="production"?{get(s,t){return nr(),De(s,"get",""),s[t]},set(){return at("setupContext.attrs is readonly."),!1},deleteProperty(){return at("setupContext.attrs is readonly."),!1}}:{get(s,t){return De(s,"get",""),s[t]}};function Rp(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return De(s,"get","$slots"),t[e]}}))}function Fc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&at("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(vt(e)?n="array":$e(e)&&(n="ref")),n!=="object"&&at(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};if({}.NODE_ENV!=="production"){let e;return Object.freeze({get attrs(){return e||(e=new Proxy(s.attrs,Vc))},get slots(){return Rp(s)},get emit(){return(n,...i)=>s.emit(n,...i)},expose:t})}else return{attrs:new Proxy(s.attrs,Vc),slots:s.slots,emit:s.emit,expose:t}}function pr(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(Vl(Qd(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in _n)return _n[e](s)},has(t,e){return e in t||e in _n}}))}const Ap=/(?:^|[-_])(\w)/g,zp=s=>s.replace(Ap,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gc(s,t=!0){return Ot(s)?s.displayName||s.name:s.name||t&&s.__name}function mr(s,t,e=!1){let n=Gc(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?zp(n):e?"App":"Anonymous"}function Bc(s){return Ot(s)&&"__vccOpts"in s}const Lp=(s,t)=>{const e=tf(s,t,fr);if({}.NODE_ENV!=="production"){const n=Mc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function ae(s,t,e){const n=arguments.length;return n===2?qt(t)&&!vt(t)?zn(t)?ut(s,null,[t]):ut(s,t):ut(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&zn(e)&&(e=[e]),ut(s,t,e))}function Vp(){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 qt(h)?h.__isVue?["div",s,"VueInstance"]:$e(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:Mn(h)?["div",{},["span",s,pn(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${fn(h)?" (readonly)":""}`]:fn(h)?["div",{},["span",s,pn(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 f=[];h.type.props&&h.props&&f.push(o("props",Mt(h.props))),h.setupState!==te&&f.push(o("setup",h.setupState)),h.data!==te&&f.push(o("data",Mt(h.data)));const d=l(h,"computed");d&&f.push(o("computed",d));const m=l(h,"inject");return m&&f.push(o("injected",m)),f.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),f}function o(h,f){return f=pe({},f),Object.keys(f).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(f).map(d=>["div",{},["span",n,d+": "],a(f[d],!1)])]]:["span",{}]}function a(h,f=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:qt(h)?["object",{object:f?Mt(h):h}]:["span",e,String(h)]}function l(h,f){const d=h.type;if(Ot(d))return;const m={};for(const g in h.ctx)c(d,g,f)&&(m[g]=h.ctx[g]);return m}function c(h,f,d){const m=h[d];if(vt(m)&&m.includes(f)||qt(m)&&f in m||h.extends&&c(h.extends,f,d)||h.mixins&&h.mixins.some(g=>c(g,f,d)))return!0}function u(h){return pn(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Yc="3.4.25",gr={}.NODE_ENV!=="production"?at:ke;/**
22
22
  * @vue/runtime-dom v3.4.25
23
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
24
24
  * @license MIT
25
- **/const Sp="http://www.w3.org/2000/svg",kp="http://www.w3.org/1998/Math/MathML",Qs=typeof document<"u"?document:null,Lc=Qs&&Qs.createElement("template"),Ep={insert:(s,e,t)=>{e.insertBefore(s,t||null)},remove:s=>{const e=s.parentNode;e&&e.removeChild(s)},createElement:(s,e,t,n)=>{const i=e==="svg"?Qs.createElementNS(Sp,s):e==="mathml"?Qs.createElementNS(kp,s):Qs.createElement(s,t?{is:t}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>Qs.createTextNode(s),createComment:s=>Qs.createComment(s),setText:(s,e)=>{s.nodeValue=e},setElementText:(s,e)=>{s.textContent=e},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Qs.querySelector(s),setScopeId(s,e){s.setAttribute(e,"")},insertStaticContent(s,e,t,n,i,r){const o=t?t.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),t),!(i===r||!(i=i.nextSibling)););else{Lc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=Lc.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,t)}return[o?o.nextSibling:e.firstChild,t?t.previousSibling:e.lastChild]}},Tp=Symbol("_vtc");function Op(s,e,t){const n=s[Tp];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?s.removeAttribute("class"):t?s.setAttribute("class",e):s.className=e}const dr=Symbol("_vod"),zc=Symbol("_vsh"),gs={beforeMount(s,{value:e},{transition:t}){s[dr]=s.style.display==="none"?"":s.style.display,t&&e?t.beforeEnter(s):hi(s,e)},mounted(s,{value:e},{transition:t}){t&&e&&t.enter(s)},updated(s,{value:e,oldValue:t},{transition:n}){!e!=!t&&(n?e?(n.beforeEnter(s),hi(s,!0),n.enter(s)):n.leave(s,()=>{hi(s,!1)}):hi(s,e))},beforeUnmount(s,{value:e}){hi(s,e)}};({}).NODE_ENV!=="production"&&(gs.name="show");function hi(s,e){s.style.display=e?s[dr]:"none",s[zc]=!e}const Pp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Ip=/(^|;)\s*display\s*:/;function Dp(s,e,t){const n=s.style,i=mt(t);let r=!1;if(t&&!i){if(e)if(mt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();t[a]==null&&fr(n,a,"")}else for(const o in e)t[o]==null&&fr(n,o,"");for(const o in t)o==="display"&&(r=!0),fr(n,o,t[o])}else if(i){if(e!==t){const o=n[Pp];o&&(t+=";"+o),n.cssText=t,r=Ip.test(t)}}else e&&s.removeAttribute("style");dr in s&&(s[dr]=r?n.display:"",s[zc]&&(n.display="none"))}const Np=/[^\\];\s*$/,Fc=/\s*!important$/;function fr(s,e,t){if(ve(t))t.forEach(n=>fr(s,e,n));else if(t==null&&(t=""),{}.NODE_ENV!=="production"&&Np.test(t)&&hr(`Unexpected semicolon at the end of '${e}' style value: '${t}'`),e.startsWith("--"))s.setProperty(e,t);else{const n=$p(s,e);Fc.test(t)?s.setProperty(Wt(n),t.replace(Fc,""),"important"):s[n]=t}}const Gc=["Webkit","Moz","ms"],jo={};function $p(s,e){const t=jo[e];if(t)return t;let n=Cs(e);if(n!=="filter"&&n in s)return jo[e]=n;n=Ai(n);for(let i=0;i<Gc.length;i++){const r=Gc[i]+n;if(r in s)return jo[e]=r}return e}const Bc="http://www.w3.org/1999/xlink";function Mp(s,e,t,n,i){if(n&&e.startsWith("xlink:"))t==null?s.removeAttributeNS(Bc,e.slice(6,e.length)):s.setAttributeNS(Bc,e,t);else{const r=dd(e);t==null||r&&!al(t)?s.removeAttribute(e):s.setAttribute(e,r?"":t)}}function Ap(s,e,t,n,i,r,o){if(e==="innerHTML"||e==="textContent"){n&&o(n,i,r),s[e]=t??"";return}const a=s.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?s.getAttribute("value")||"":s.value,u=t??"";(c!==u||!("_value"in s))&&(s.value=u),t==null&&s.removeAttribute(e),s._value=t;return}let l=!1;if(t===""||t==null){const c=typeof s[e];c==="boolean"?t=al(t):t==null&&c==="string"?(t="",l=!0):c==="number"&&(t=0,l=!0)}try{s[e]=t}catch(c){({}).NODE_ENV!=="production"&&!l&&hr(`Failed setting prop "${e}" on <${a.toLowerCase()}>: value ${t} is invalid.`,c)}l&&s.removeAttribute(e)}function Rp(s,e,t,n){s.addEventListener(e,t,n)}function Vp(s,e,t,n){s.removeEventListener(e,t,n)}const jc=Symbol("_vei");function Lp(s,e,t,n,i=null){const r=s[jc]||(s[jc]={}),o=r[e];if(n&&o)o.value={}.NODE_ENV!=="production"?Hc(n,e):n;else{const[a,l]=zp(e);if(n){const c=r[e]=Bp({}.NODE_ENV!=="production"?Hc(n,e):n,i);Rp(s,a,c,l)}else o&&(Vp(s,a,o,l),r[e]=void 0)}}const Yc=/(?:Once|Passive|Capture)$/;function zp(s){let e;if(Yc.test(s)){e={};let n;for(;n=s.match(Yc);)s=s.slice(0,s.length-n[0].length),e[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):Wt(s.slice(2)),e]}let Yo=0;const Fp=Promise.resolve(),Gp=()=>Yo||(Fp.then(()=>Yo=0),Yo=Date.now());function Bp(s,e){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;rs(jp(n,t.value),e,5,[n])};return t.value=s,t.attached=Gp(),t}function Hc(s,e){return Oe(s)||ve(s)?s:(hr(`Wrong type passed as event handler to ${e} - did you forget @ or : in front of your prop?
26
- Expected function or array of functions, received type ${typeof s}.`),bt)}function jp(s,e){if(ve(e)){const t=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{t.call(s),s._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const Wc=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,Yp=(s,e,t,n,i,r,o,a,l)=>{const c=i==="svg";e==="class"?Op(s,n,c):e==="style"?Dp(s,t,n):Wn(e)?Ni(e)||Lp(s,e,t,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Hp(s,e,n,c))?Ap(s,e,n,r,o,a,l):(e==="true-value"?s._trueValue=n:e==="false-value"&&(s._falseValue=n),Mp(s,e,n,c))};function Hp(s,e,t,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in s&&Wc(e)&&Oe(t));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&s.tagName==="INPUT"||e==="type"&&s.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=s.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Wc(e)&&mt(t)?!1:e in s}/*! #__NO_SIDE_EFFECTS__ */function xe(s,e){const t=oe(s);class n extends Ho{constructor(r){super(t,r,e)}}return n.def=t,n}const Wp=typeof HTMLElement<"u"?HTMLElement:class{};class Ho extends Wp{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&hr("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Xi(()=>{this._connected||(pr(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const e=(n,i=!1)=>{const{props:r,styles:o}=n;let a;if(r&&!ve(r))for(const l in r){const c=r[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=rl(this._props[l])),(a||(a=Object.create(null)))[Cs(l)]=!0)}this._numberProps=a,i&&this._resolveProps(n),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then(n=>e(n,!0)):e(this._def)}_resolveProps(e){const{props:t}=e,n=ve(t)?t:Object.keys(t||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(Cs))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=Cs(e);this._numberProps&&this._numberProps[n]&&(t=rl(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!0){t!==this._props[e]&&(this._props[e]=t,i&&this._instance&&this._update(),n&&(t===!0?this.setAttribute(Wt(e),""):typeof t=="string"||typeof t=="number"?this.setAttribute(Wt(e),t+""):t||this.removeAttribute(Wt(e))))}_update(){pr(this._createVNode(),this.shadowRoot)}_createVNode(){const e=ue(this._def,lt({},this._props));return this._instance||(e.ce=t=>{this._instance=t,t.isCE=!0,{}.NODE_ENV!=="production"&&(t.ceReload=r=>{this._styles&&(this._styles.forEach(o=>this.shadowRoot.removeChild(o)),this._styles.length=0),this._applyStyles(r),this._instance=null,this._update()});const n=(r,o)=>{this.dispatchEvent(new CustomEvent(r,{detail:o}))};t.emit=(r,...o)=>{n(r,o),Wt(r)!==r&&n(Wt(r),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Ho){t.parent=i._instance,t.provides=i._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(t=>{const n=document.createElement("style");n.textContent=t,this.shadowRoot.appendChild(n),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(n)})}}const Xp=lt({patchProp:Yp},Ep);let Xc;function Up(){return Xc||(Xc=ip(Xp))}const pr=(...s)=>{Up().render(...s)};/**
25
+ **/const Fp="http://www.w3.org/2000/svg",Gp="http://www.w3.org/1998/Math/MathML",tn=typeof document<"u"?document:null,jc=tn&&tn.createElement("template"),Bp={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,n)=>{const i=t==="svg"?tn.createElementNS(Fp,s):t==="mathml"?tn.createElementNS(Gp,s):tn.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>tn.createTextNode(s),createComment:s=>tn.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>tn.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,n,i,r){const o=e?e.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),e),!(i===r||!(i=i.nextSibling)););else{jc.innerHTML=n==="svg"?`<svg>${s}</svg>`:n==="mathml"?`<math>${s}</math>`:s;const a=jc.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},Yp=Symbol("_vtc");function jp(s,t,e){const n=s[Yp];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const yr=Symbol("_vod"),Xc=Symbol("_vsh"),ys={beforeMount(s,{value:t},{transition:e}){s[yr]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):pi(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:n}){!t!=!e&&(n?t?(n.beforeEnter(s),pi(s,!0),n.enter(s)):n.leave(s,()=>{pi(s,!1)}):pi(s,t))},beforeUnmount(s,{value:t}){pi(s,t)}};({}).NODE_ENV!=="production"&&(ys.name="show");function pi(s,t){s.style.display=t?s[yr]:"none",s[Xc]=!t}const Xp=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Up=/(^|;)\s*display\s*:/;function Hp(s,t,e){const n=s.style,i=be(e);let r=!1;if(e&&!i){if(t)if(be(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&vr(n,a,"")}else for(const o in t)e[o]==null&&vr(n,o,"");for(const o in e)o==="display"&&(r=!0),vr(n,o,e[o])}else if(i){if(t!==e){const o=n[Xp];o&&(e+=";"+o),n.cssText=e,r=Up.test(e)}}else t&&s.removeAttribute("style");yr in s&&(s[yr]=r?n.display:"",s[Xc]&&(n.display="none"))}const Wp=/[^\\];\s*$/,Uc=/\s*!important$/;function vr(s,t,e){if(vt(e))e.forEach(n=>vr(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&Wp.test(e)&&gr(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=Zp(s,t);Uc.test(e)?s.setProperty(Ze(n),e.replace(Uc,""),"important"):s[n]=e}}const Hc=["Webkit","Moz","ms"],Wo={};function Zp(s,t){const e=Wo[t];if(e)return e;let n=Ss(t);if(n!=="filter"&&n in s)return Wo[t]=n;n=Fi(n);for(let i=0;i<Hc.length;i++){const r=Hc[i]+n;if(r in s)return Wo[t]=r}return t}const Wc="http://www.w3.org/1999/xlink";function qp(s,t,e,n,i){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(Wc,t.slice(6,t.length)):s.setAttributeNS(Wc,t,e);else{const r=Od(t);e==null||r&&!fl(e)?s.removeAttribute(t):s.setAttribute(t,r?"":e)}}function Kp(s,t,e,n,i,r,o){if(t==="innerHTML"||t==="textContent"){n&&o(n,i,r),s[t]=e??"";return}const a=s.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const c=a==="OPTION"?s.getAttribute("value")||"":s.value,u=e??"";(c!==u||!("_value"in s))&&(s.value=u),e==null&&s.removeAttribute(t),s._value=e;return}let l=!1;if(e===""||e==null){const c=typeof s[t];c==="boolean"?e=fl(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&gr(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function Qp(s,t,e,n){s.addEventListener(t,e,n)}function Jp(s,t,e,n){s.removeEventListener(t,e,n)}const Zc=Symbol("_vei");function tm(s,t,e,n,i=null){const r=s[Zc]||(s[Zc]={}),o=r[t];if(n&&o)o.value={}.NODE_ENV!=="production"?Kc(n,t):n;else{const[a,l]=em(t);if(n){const c=r[t]=im({}.NODE_ENV!=="production"?Kc(n,t):n,i);Qp(s,a,c,l)}else o&&(Jp(s,a,o,l),r[t]=void 0)}}const qc=/(?:Once|Passive|Capture)$/;function em(s){let t;if(qc.test(s)){t={};let n;for(;n=s.match(qc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):Ze(s.slice(2)),t]}let Zo=0;const sm=Promise.resolve(),nm=()=>Zo||(sm.then(()=>Zo=0),Zo=Date.now());function im(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;as(rm(n,e.value),t,5,[n])};return e.value=s,e.attached=nm(),e}function Kc(s,t){return Ot(s)||vt(s)?s:(gr(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
26
+ Expected function or array of functions, received type ${typeof s}.`),ke)}function rm(s,t){if(vt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const Qc=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,om=(s,t,e,n,i,r,o,a,l)=>{const c=i==="svg";t==="class"?jp(s,n,c):t==="style"?Hp(s,e,n):Zn(t)?zi(t)||tm(s,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):am(s,t,n,c))?Kp(s,t,n,r,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),qp(s,t,n,c))};function am(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Qc(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&s.tagName==="INPUT"||t==="type"&&s.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=s.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Qc(t)&&be(e)?!1:t in s}/*! #__NO_SIDE_EFFECTS__ */function ht(s,t){const e=st(s);class n extends qo{constructor(r){super(e,r,t)}}return n.def=e,n}const lm=typeof HTMLElement<"u"?HTMLElement:class{};class qo extends lm{constructor(t,e={},n){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):({}.NODE_ENV!=="production"&&this.shadowRoot&&gr("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Qi(()=>{this._connected||(br(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver(n=>{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{const{props:r,styles:o}=n;let a;if(r&&!vt(r))for(const l in r){const c=r[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=hl(this._props[l])),(a||(a=Object.create(null)))[Ss(l)]=!0)}this._numberProps=a,i&&this._resolveProps(n),this._applyStyles(o),this._update()},e=this._def.__asyncLoader;e?e().then(n=>t(n,!0)):t(this._def)}_resolveProps(t){const{props:e}=t,n=vt(e)?e:Object.keys(e||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of n.map(Ss))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r)}})}_setAttr(t){let e=this.hasAttribute(t)?this.getAttribute(t):void 0;const n=Ss(t);this._numberProps&&this._numberProps[n]&&(e=hl(e)),this._setProp(n,e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,n=!0,i=!0){e!==this._props[t]&&(this._props[t]=e,i&&this._instance&&this._update(),n&&(e===!0?this.setAttribute(Ze(t),""):typeof e=="string"||typeof e=="number"?this.setAttribute(Ze(t),e+""):e||this.removeAttribute(Ze(t))))}_update(){br(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ut(this._def,pe({},this._props));return this._instance||(t.ce=e=>{this._instance=e,e.isCE=!0,{}.NODE_ENV!=="production"&&(e.ceReload=r=>{this._styles&&(this._styles.forEach(o=>this.shadowRoot.removeChild(o)),this._styles.length=0),this._applyStyles(r),this._instance=null,this._update()});const n=(r,o)=>{this.dispatchEvent(new CustomEvent(r,{detail:o}))};e.emit=(r,...o)=>{n(r,o),Ze(r)!==r&&n(Ze(r),o)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof qo){e.parent=i._instance,e.provides=i._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(e=>{const n=document.createElement("style");n.textContent=e,this.shadowRoot.appendChild(n),{}.NODE_ENV!=="production"&&(this._styles||(this._styles=[])).push(n)})}}const cm=pe({patchProp:om},Bp);let Jc;function um(){return Jc||(Jc=_p(cm))}const br=(...s)=>{um().render(...s)};/**
27
27
  * vue v3.4.25
28
28
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
29
29
  * @license MIT
30
- **/function qp(){Cp()}({}).NODE_ENV!=="production"&&qp();function Uc(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function qc(s){this.message=s}qc.prototype=new Error,qc.prototype.name="InvalidCharacterError";class Wo{maps=new Map;mapsAddedDuringUpdate=new Map;constructor(){}entries(){return Array.from(this.maps.entries())}keys(){return Array.from(this.maps.keys())}values(){return Array.from(this.maps.values())}get length(){return this.entries().length}set(e,t){this.maps.set(e,t),this.mapsAddedDuringUpdate.set(e,t)}get(e){return this.maps.get(e)}shift(){const e=this.entries();if(e.length){const[t,n]=e[0];return this.delete(t),n}}delete(e){return this.mapsAddedDuringUpdate.delete(e),this.maps.delete(e)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(e){let t=this.entries();for(;t.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,i=t.length;n<i;n++){const[r,o]=t[n];e(r,o)===!1&&this.delete(r)}t=Array.from(this.mapsAddedDuringUpdate.entries())}}}const Rn=new Wo,Xo=s=>{let e=null;switch(s){case"any-character":e=/[^]/;break;case"bin":e=/^(0b)?[0-1]+$/;break;case"oct":e=/^(0o)?[0-7]+$/i;break;case"hex":e=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":e=/^[\x00-\xFF]+$/i;break;case"int":e=/^[-+]?[0-9]+$/;break;case"number":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":e=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":e=/\s*,\s*/gi;break;case"svg-segment":e=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":e=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":e=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":e=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":e=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"url":e=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"date":e=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"whitespace":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":e=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"trim":e=/^\s+|\s+$/g;break;case"base64-data":e=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":e=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":e=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":e=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":e=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"bezier":e=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":e=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":e=new RegExp(String.raw`
30
+ **/function hm(){Vp()}({}).NODE_ENV!=="production"&&hm();function tu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function eu(s){this.message=s}eu.prototype=new Error,eu.prototype.name="InvalidCharacterError";class Ko{maps=new Map;mapsAddedDuringUpdate=new Map;constructor(){}entries(){return Array.from(this.maps.entries())}keys(){return Array.from(this.maps.keys())}values(){return Array.from(this.maps.values())}get length(){return this.entries().length}set(t,e){this.maps.set(t,e),this.mapsAddedDuringUpdate.set(t,e)}get(t){return this.maps.get(t)}shift(){const t=this.entries();if(t.length){const[e,n]=t[0];return this.delete(e),n}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}deleteAll(){this.maps=new Map,this.mapsAddedDuringUpdate=new Map}filter(t){let e=this.entries();for(;e.length>0;){this.mapsAddedDuringUpdate=new Map;for(let n=0,i=e.length;n<i;n++){const[r,o]=e[n];t(r,o)===!1&&this.delete(r)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}const Ln=new Ko,Qo=s=>{let t=null;switch(s){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/;break;case"oct":t=/^(0o)?[0-7]+$/i;break;case"hex":t=/^(0x)?[0-9a-fA-F]+$/i;break;case"ascii":t=/^[\x00-\xFF]+$/i;break;case"int":t=/^[-+]?[0-9]+$/;break;case"number":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;break;case"number-single":t=/[-+]?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/i;break;case"split":t=/\s*,\s*/gi;break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+[1-9]{1}[0-9]{10}$/g;break;case"phone-number":t=/^[+]?[(]?[0-9]{3}[)]?[-\s.]?[0-9]{3}[-\s.]?[0-9]{4,6}$/gi;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+@[A-Za-z0-9._-]+$/gm;break;case"ip":t=/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;break;case"url":t=/^http[s]?:\/\/([\w-]+\.)+[\w-]+([\w-./?%&=]*)?$/;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"whitespace":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]/g;break;case"commaSpaces":t=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/;break;case"trim":t=/^\s+|\s+$/g;break;case"base64-data":t=/^\s*data:(?:[a-z]+\/[a-z0-9-+.]+(?:;[a-z-]+=[a-z0-9-]+)?)?(?:;base64)?,([a-z0-9!$&',()*+;=\-._~:@/?%\s]*?)\s*$/i;break;case"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"hex-color":t=/^#([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;break;case"color":t=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i;break;case"bezier":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
31
31
  [\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
32
32
  |[\u{4E00}-\u{9FCC}]
33
33
  |[\u{3400}-\u{4DB5}]
@@ -36,41 +36,41 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
36
36
  |[\u{2B740}-\u{2B81D}]
37
37
  |[\u{2B820}-\u{2CEAF}]
38
38
  |[\u{2CEB0}-\u{2EBEF}]
39
- `.replace(/\s+/g,""),"u");break;case"mime-image":e=/^image\//;break;case"mime-video":e=/^video\//;break;case"mime-audio":e=/^audio\//;break;case"mime-document-word":e=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":e=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":e=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":e=/^application\/json$/;break;case"mime-document-xml":e=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return e},$s=(s,e)=>(typeof s=="string"&&(s=Xo(s)||new RegExp(s)),s.test(e)),Zc=(s,e)=>{if(typeof s=="string"&&(s=Xo(s)||new RegExp(s)),!e)return null;const t=e.match(s);return t?s.flags.toLowerCase().indexOf("g")>=0?t.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof t.index=="number"?t.index:-1,fullMatch:t[0],groupMatchs:t.slice(1)}:null},Kc=(s,e)=>{typeof s=="string"&&(s=Xo(s)||new RegExp(s));const t=[],n=e.matchAll(s);for(const i of n)t.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return t};function Qc(s){const e=s.match(/[\s\S]/gu);return e?e.length:0}function Jc(s,e){const t=s.codePointAt(e);return t?String.fromCodePoint(t):void 0}function Zp(s=12){const e="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",t=e.length;let n="";for(let i=0;i<s;i++)n+=e[Math.floor(Math.random()*t)];return n}function Kp(s){const e=Rn.get(s);if(e)return e;const t=s.replace(/(^\w)/g,function(n){return n.toLowerCase()});return Rn.set(s,t),t}const Xt=(s,e="-")=>{const t=Rn.get(s);if(t)return t;let n=s.replace(new RegExp(`${e}?([A-Z])`,"g"),e+"$1").toLowerCase();return n=n.replace(new RegExp(`^${e}`),""),Rn.set(s,n),n};function Uo(s){const e=Rn.get(s);if(e)return e;const t=s.replace(/(^\w|[_-]\w)/g,function(n){return n.slice(-1).toUpperCase()});return Rn.set(s,t),t}function eu(s){return Kp(Uo(s))}const tu=(s,e="")=>(s=s.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,e),s);function Qp(s,e,t="0",n="left"){const i=Qc(s);if(e>i){const r=e-i;switch(n){case"left":s=Array(r+1).join(t)+s;break;case"right":s=s+Array(r+1).join(t);break;default:const o=Math.ceil(r/2),a=r-o;s=Array(a+1).join(t)+s+Array(o+1).join(t);break}}return s}function Jp(s){const e=typeof s;return e!=="object"?e:Object.prototype.toString.call(s).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function em(s){return s!=null}function mr(s){return Jp(s)==="object"}function tm(s,e){for(const t of Reflect.ownKeys(e))if(t!=="constructor"&&t!=="prototype"&&t!=="name"&&t!=="displayName"){const n=Object.getOwnPropertyDescriptor(e,t);n&&Object.defineProperty(s,t,n)}}function su(s,e=new WeakMap){if(s==null)return s;if(s.constructor===Date)return new Date(s);if(s.constructor===RegExp)return new RegExp(s);if(typeof s!="object")return s;if(e.has(s))return e.get(s);const t=Object.create(Object.getPrototypeOf(s),Object.getOwnPropertyDescriptors(s));for(const n of Reflect.ownKeys(s))t[n]=mr(s[n])?su(s[n],e):s[n];return e.set(s,t),t}function qo(s,e){for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(mr(e[t])?(typeof s[t]>"u"&&(s[t]={}),qo(s[t],e[t])):typeof s[t]>"u"&&(s[t]=e[t]));return s}function nu(s,e){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&!e(t,s[t])&&delete s[t];return s}function xn(s){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&delete s[e];return s}function di(s,e){const t=s.length,n=e.length;for(let r=0;r<n;r++)s[r]=e[r];let i=Math.max(0,t-n);for(;i>0;)s.pop(),i--}function sm(s,e){if(s=parseFloat(s),isNaN(s)){if(typeof e=="number")return e;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function fi(s,e,t=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-e)<t}const Ut=(s,e,t)=>s<e?e:s>t?t:s,nm=(s,e,t)=>n=>{const i=Math.min(Math.max(s,n),e);return e-i<t?e:Math.round(i/t)*t};function im(s,e=12){return sm(s).toFixed(e)}function Rt(s,e=12){return+im(s,e)}function Js(s,e){const t=Zc("number-single",String(s));return{hasNumber:!!t,number:t&&!Array.isArray(t)&&t.fullMatch?parseFloat(t.fullMatch):em(e)?e:NaN,prefix:t&&!Array.isArray(t)&&t.fullMatch?s.substring(0,t.matchIndex):"",suffix:t&&!Array.isArray(t)&&t.fullMatch?s.substring(t.matchIndex+t.fullMatch.length):""}}function iu(s){const e=Zc("number",s);return e?Array.isArray(e)?e.map(t=>Number(t.fullMatch)):[Number(e.fullMatch)]:[]}function rm(s=0,e=100){return Math.random()*(e-s)+s}function dt(s=0,e=100){return Math.floor(rm(s,e))}function ru(s,e){let t=!0;return function(...n){t&&(t=!1,s.apply(this,n),setTimeout(()=>{t=!0},e))}}function om(s,e){let t;return function(...n){clearTimeout(t),t=setTimeout(()=>{s.apply(this,n)},e)}}class ou{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(e=1){this.concurrency=e,this.rs=new ReadableStream({start:async t=>{this.controller=t}})}get readableStream(){return this.rs}addTask(e){Array.isArray(e)?this.queue.push(...e):this.queue.push(e),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const e=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=e.length;const t=await Promise.allSettled(e.map(n=>n()));this.results.push(...t),t.forEach(n=>{n.status=="fulfilled"?this.controller?.enqueue(n.value):n.status=="rejected"&&this.controller?.enqueue(new Error(n.reason))}),this.activeTaskCount-=t.length}}}class gr{events;constructor(){this.events={}}on(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].push(t),this}addListener(e,t){return this.on(e,t),this}prependListener(e,t){return this.events[e]||(this.events[e]=[]),this.events[e].unshift(t),this}removeListener(e,t){if(this.events[e])return this.events[e]=this.events[e].filter(n=>n!==t),this}off(e,t){return this.removeListener(e,t),this}removeAllListeners(e){return e?this.events[e]=[]:this.events={},this}emit(e,...t){return this.events[e]&&this.events[e].forEach(n=>{Reflect.apply(n,this,t)}),this}once(e,t){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(t,this,o),this.off(e,i))}})();return this.on(e,i),this}}var au=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function am(s,e={}){var t=1,n=1;function i(te){var U=te.match(/\n/g);U&&(t+=U.length);var Ce=te.lastIndexOf(`
40
- `);n=~Ce?te.length-Ce:n+te.length}function r(){var te={line:t,column:n};return function(U){return U.position=new o(te),m(),U}}function o(te){this.start=te,this.end={line:t,column:n},this.source=e.source}o.prototype.content=s;var a=[];function l(te){var U=new Error(e.source+":"+t+":"+n+": "+te);if(U.reason=te,U.filename=e.source,U.line=t,U.column=n,U.source=s,e.silent)a.push(U);else throw U}function c(){var te=f();return{type:"stylesheet",stylesheet:{source:e.source,rules:te,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var te,U=[];for(m(),v(U);s.length&&s.charAt(0)!="}"&&(te=be()||_e());)te!==!1&&(U.push(te),v(U));return U}function d(te){var U=te.exec(s);if(U){var Ce=U[0];return i(Ce),s=s.slice(Ce.length),U}}function m(){d(/^\s*/)}function v(te){var U;for(te=te||[];U=b();)U!==!1&&te.push(U);return te}function b(){var te=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var U=2;s.charAt(U)!=""&&(s.charAt(U)!="*"||s.charAt(U+1)!="/");)++U;if(U+=2,s.charAt(U-1)==="")return l("End of comment missing");var Ce=s.slice(2,U-2);return n+=2,i(Ce),s=s.slice(U),n+=2,te({type:"comment",comment:Ce})}}function C(){var te=d(/^([^{]+)/);if(te)return Ms(te[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(U){return U.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(U){return U.replace(/\u200C/g,",")})}function O(){var te=r(),U=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(U){if(U=Ms(U[0]),!d(/^:\s*/))return l("property missing ':'");var Ce=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),A=te({type:"declaration",property:U.replace(au,""),value:Ce?Ms(Ce[0]).replace(au,""):""});return d(/^[;\s]*/),A}}function $(){var te=[];if(!u())return l("missing '{'");v(te);for(var U;U=O();)U!==!1&&(te.push(U),v(te));return h()?te:l("missing '}'")}function S(){for(var te,U=[],Ce=r();te=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)U.push(te[1]),d(/^,\s*/);if(U.length)return Ce({type:"keyframe",values:U,declarations:$()})}function Y(){var te=r(),U=d(/^@([-\w]+)?keyframes\s*/);if(U){var Ce=U[1];if(U=d(/^([-\w]+)\s*/),!U)return l("@keyframes missing name");var A=U[1];if(!u())return l("@keyframes missing '{'");for(var Fe,ht=v();Fe=S();)ht.push(Fe),ht=ht.concat(v());return h()?te({type:"keyframes",name:A,vendor:Ce,keyframes:ht}):l("@keyframes missing '}'")}}function L(){var te=r(),U=d(/^@supports *([^{]+)/);if(U){var Ce=Ms(U[1]);if(!u())return l("@supports missing '{'");var A=v().concat(f());return h()?te({type:"supports",supports:Ce,rules:A}):l("@supports missing '}'")}}function H(){var te=r(),U=d(/^@host\s*/);if(U){if(!u())return l("@host missing '{'");var Ce=v().concat(f());return h()?te({type:"host",rules:Ce}):l("@host missing '}'")}}function fe(){var te=r(),U=d(/^@media *([^{]+)/);if(U){var Ce=Ms(U[1]);if(!u())return l("@media missing '{'");var A=v().concat(f());return h()?te({type:"media",media:Ce,rules:A}):l("@media missing '}'")}}function ye(){var te=r(),U=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(U)return te({type:"custom-media",name:Ms(U[1]),media:Ms(U[2])})}function ge(){var te=r(),U=d(/^@page */);if(U){var Ce=C()||[];if(!u())return l("@page missing '{'");for(var A=v(),Fe;Fe=O();)A.push(Fe),A=A.concat(v());return h()?te({type:"page",selectors:Ce,declarations:A}):l("@page missing '}'")}}function Me(){var te=r(),U=d(/^@([-\w]+)?document *([^{]+)/);if(U){var Ce=Ms(U[1]),A=Ms(U[2]);if(!u())return l("@document missing '{'");var Fe=v().concat(f());return h()?te({type:"document",document:A,vendor:Ce,rules:Fe}):l("@document missing '}'")}}function Ae(){var te=r(),U=d(/^@font-face\s*/);if(U){if(!u())return l("@font-face missing '{'");for(var Ce=v(),A;A=O();)Ce.push(A),Ce=Ce.concat(v());return h()?te({type:"font-face",declarations:Ce}):l("@font-face missing '}'")}}var Ue=Ge("import"),qe=Ge("charset"),et=Ge("namespace");function Ge(te){var U=new RegExp("^@"+te+"\\s*([^;]+);");return function(){var Ce=r(),A=d(U);if(A){var Fe={type:te};return Fe[te]=A[1].trim(),Ce(Fe)}}}function be(){if(s[0]=="@")return Y()||fe()||ye()||L()||Ue()||qe()||et()||Me()||ge()||H()||Ae()}function _e(){var te=r(),U=C();return U?(v(),te({type:"rule",selectors:U,declarations:$()})):l("selector missing")}return Zo(c())}function Ms(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Zo(s,e){var t=s&&typeof s.type=="string",n=t?s:e;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){Zo(o,n)}):r&&typeof r=="object"&&Zo(r,n)}return t&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:e||null}),s}const pi=/^[a-z0-9]+(-[a-z0-9]+)*$/,vr=(s,e,t,n="")=>{const i=s.split(":");if(s.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:n,prefix:l,name:a};return e&&!yr(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return e&&!yr(a)?null:a}if(t&&n===""){const a={provider:n,prefix:"",name:r};return e&&!yr(a,t)?null:a}return null},yr=(s,e)=>s?!!((s.provider===""||s.provider.match(pi))&&(e&&s.prefix===""||s.prefix.match(pi))&&s.name.match(pi)):!1,lu=Object.freeze({left:0,top:0,width:16,height:16}),br=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_r=Object.freeze({...lu,...br}),Ko=Object.freeze({..._r,body:"",hidden:!1});function lm(s,e){const t={};!s.hFlip!=!e.hFlip&&(t.hFlip=!0),!s.vFlip!=!e.vFlip&&(t.vFlip=!0);const n=((s.rotate||0)+(e.rotate||0))%4;return n&&(t.rotate=n),t}function cu(s,e){const t=lm(s,e);for(const n in Ko)n in br?n in s&&!(n in t)&&(t[n]=br[n]):n in e?t[n]=e[n]:n in s&&(t[n]=s[n]);return t}function cm(s,e){const t=s.icons,n=s.aliases||Object.create(null),i=Object.create(null);function r(o){if(t[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=n[o]&&n[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(e||Object.keys(t).concat(Object.keys(n))).forEach(r),i}function um(s,e,t){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=cu(n[a]||i[a],r)}return o(e),t.forEach(o),cu(s,r)}function uu(s,e){const t=[];if(typeof s!="object"||typeof s.icons!="object")return t;s.not_found instanceof Array&&s.not_found.forEach(i=>{e(i,null),t.push(i)});const n=cm(s);for(const i in n){const r=n[i];r&&(e(i,um(s,i,r)),t.push(i))}return t}const hm={provider:"",aliases:{},not_found:{},...lu};function Qo(s,e){for(const t in e)if(t in s&&typeof s[t]!=typeof e[t])return!1;return!0}function hu(s){if(typeof s!="object"||s===null)return null;const e=s;if(typeof e.prefix!="string"||!s.icons||typeof s.icons!="object"||!Qo(s,hm))return null;const t=e.icons;for(const i in t){const r=t[i];if(!i.match(pi)||typeof r.body!="string"||!Qo(r,Ko))return null}const n=e.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(pi)||typeof o!="string"||!t[o]&&!n[o]||!Qo(r,Ko))return null}return e}const du=Object.create(null);function dm(s,e){return{provider:s,prefix:e,icons:Object.create(null),missing:new Set}}function wn(s,e){const t=du[s]||(du[s]=Object.create(null));return t[e]||(t[e]=dm(s,e))}function Jo(s,e){return hu(e)?uu(e,(t,n)=>{n?s.icons[t]=n:s.missing.add(t)}):[]}function fm(s,e,t){try{if(typeof t.body=="string")return s.icons[e]={...t},!0}catch{}return!1}let mi=!1;function fu(s){return typeof s=="boolean"&&(mi=s),mi}function pm(s){const e=typeof s=="string"?vr(s,!0,mi):s;if(e){const t=wn(e.provider,e.prefix),n=e.name;return t.icons[n]||(t.missing.has(n)?null:void 0)}}function mm(s,e){const t=vr(s,!0,mi);if(!t)return!1;const n=wn(t.provider,t.prefix);return fm(n,t.name,e)}function gm(s,e){if(typeof s!="object")return!1;if(typeof e!="string"&&(e=s.provider||""),mi&&!e&&!s.prefix){let i=!1;return hu(s)&&(s.prefix="",uu(s,(r,o)=>{o&&mm(r,o)&&(i=!0)})),i}const t=s.prefix;if(!yr({provider:e,prefix:t,name:"a"}))return!1;const n=wn(e,t);return!!Jo(n,s)}const pu=Object.freeze({width:null,height:null}),mu=Object.freeze({...pu,...br}),vm=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ym=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gu(s,e,t){if(e===1)return s;if(t=t||100,typeof s=="number")return Math.ceil(s*e*t)/t;if(typeof s!="string")return s;const n=s.split(vm);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=ym.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*e*t)/t)}else i.push(r);if(r=n.shift(),r===void 0)return i.join("");o=!o}}function bm(s,e="defs"){let t="";const n=s.indexOf("<"+e);for(;n>=0;){const i=s.indexOf(">",n),r=s.indexOf("</"+e);if(i===-1||r===-1)break;const o=s.indexOf(">",r);if(o===-1)break;t+=s.slice(i+1,r).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:t,content:s}}function _m(s,e){return s?"<defs>"+s+"</defs>"+e:e}function xm(s,e,t){const n=bm(s);return _m(n.defs,e+n.content+t)}const wm=s=>s==="unset"||s==="undefined"||s==="none";function Cm(s,e){const t={..._r,...s},n={...mu,...e},i={left:t.left,top:t.top,width:t.width,height:t.height};let r=t.body;[t,n].forEach(v=>{const b=[],C=v.hFlip,O=v.vFlip;let $=v.rotate;C?O?$+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):O&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let S;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:S=i.height/2+i.top,b.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,b.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}$%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),b.length&&(r=xm(r,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=gu(h,l/c)):(u=o==="auto"?l:o,h=a===null?gu(u,c/l):a==="auto"?c:a);const f={},d=(v,b)=>{wm(b)||(f[v]=b.toString())};d("width",u),d("height",h);const m=[i.left,i.top,l,c];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const Sm=/\sid="(\S+)"/g,km="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Em=0;function Tm(s,e=km){const t=[];let n;for(;n=Sm.exec(s);)t.push(n[1]);if(!t.length)return s;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(r=>{const o=typeof e=="function"?e(r):e+(Em++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),s=s.replace(new RegExp(i,"g"),""),s}const ea=Object.create(null);function Om(s,e){ea[s]=e}function ta(s){return ea[s]||ea[""]}function sa(s){let e;if(typeof s.resources=="string")e=[s.resources];else if(e=s.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const na=Object.create(null),gi=["https://api.simplesvg.com","https://api.unisvg.com"],xr=[];for(;gi.length>0;)gi.length===1||Math.random()>.5?xr.push(gi.shift()):xr.push(gi.pop());na[""]=sa({resources:["https://api.iconify.design"].concat(xr)});function Pm(s,e){const t=sa(e);return t===null?!1:(na[s]=t,!0)}function ia(s){return na[s]}let vu=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Im(s,e){const t=ia(s);if(!t)return 0;let n;if(!t.maxURL)n=0;else{let i=0;t.resources.forEach(o=>{i=Math.max(i,o.length)});const r=e+".json?icons=";n=t.maxURL-i-t.path.length-r.length}return n}function Dm(s){return s===404}const Nm=(s,e,t)=>{const n=[],i=Im(s,e),r="icons";let o={type:r,provider:s,prefix:e,icons:[]},a=0;return t.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(o),o={type:r,provider:s,prefix:e,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function $m(s){if(typeof s=="string"){const e=ia(s);if(e)return e.path}return"/"}const Mm={prepare:Nm,send:(s,e,t)=>{if(!vu){t("abort",424);return}let n=$m(e.provider);switch(e.type){case"icons":{const r=e.prefix,a=e.icons.join(","),l=new URLSearchParams({icons:a});n+=r+".json?"+l.toString();break}case"custom":{const r=e.uri;n+=r.slice(0,1)==="/"?r.slice(1):r;break}default:t("abort",400);return}let i=503;vu(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{t(Dm(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?t("abort",r):t("next",i)});return}setTimeout(()=>{t("success",r)})}).catch(()=>{t("next",i)})}};function Am(s){const e={loaded:[],missing:[],pending:[]},t=Object.create(null);s.sort((i,r)=>i.provider!==r.provider?i.provider.localeCompare(r.provider):i.prefix!==r.prefix?i.prefix.localeCompare(r.prefix):i.name.localeCompare(r.name));let n={provider:"",prefix:"",name:""};return s.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const r=i.provider,o=i.prefix,a=i.name,l=t[r]||(t[r]=Object.create(null)),c=l[o]||(l[o]=wn(r,o));let u;a in c.icons?u=e.loaded:o===""||c.missing.has(a)?u=e.missing:u=e.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),e}function yu(s,e){s.forEach(t=>{const n=t.loaderCallbacks;n&&(t.loaderCallbacks=n.filter(i=>i.id!==e))})}function Rm(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const e=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!e.length)return;let t=!1;const n=s.provider,i=s.prefix;e.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(s.icons[c])o.loaded.push({provider:n,prefix:i,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:i,name:c});else return t=!0,!0;return!1}),o.pending.length!==a&&(t||yu([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let Vm=0;function Lm(s,e,t){const n=Vm++,i=yu.bind(null,t,n);if(!e.pending.length)return i;const r={id:n,icons:e,callback:s,abort:i};return t.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function zm(s,e=!0,t=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?vr(i,e,t):i;r&&n.push(r)}),n}var Fm={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Gm(s,e,t,n){const i=s.resources.length,r=s.random?Math.floor(Math.random()*i):s.index;let o;if(s.random){let L=s.resources.slice(0);for(o=[];L.length>1;){const H=Math.floor(Math.random()*L.length);o.push(L[H]),L=L.slice(0,H).concat(L.slice(H+1))}o=o.concat(L)}else o=s.resources.slice(r).concat(s.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,f=[],d=[];typeof n=="function"&&d.push(n);function m(){h&&(clearTimeout(h),h=null)}function v(){l==="pending"&&(l="aborted"),m(),f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function b(L,H){H&&(d=[]),typeof L=="function"&&d.push(L)}function C(){return{startTime:a,payload:e,status:l,queriesSent:c,queriesPending:f.length,subscribe:b,abort:v}}function O(){l="failed",d.forEach(L=>{L(void 0,u)})}function $(){f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function S(L,H,fe){const ye=H!=="success";switch(f=f.filter(ge=>ge!==L),l){case"pending":break;case"failed":if(ye||!s.dataAfterTimeout)return;break;default:return}if(H==="abort"){u=fe,O();return}if(ye){u=fe,f.length||(o.length?Y():O());return}if(m(),$(),!s.random){const ge=s.resources.indexOf(L.resource);ge!==-1&&ge!==s.index&&(s.index=ge)}l="completed",d.forEach(ge=>{ge(fe)})}function Y(){if(l!=="pending")return;m();const L=o.shift();if(L===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&($(),O())},s.timeout);return}O();return}const H={status:"pending",resource:L,callback:(fe,ye)=>{S(H,fe,ye)}};f.push(H),c++,h=setTimeout(Y,s.rotate),t(L,e,H.callback)}return setTimeout(Y),C}function bu(s){const e={...Fm,...s};let t=[];function n(){t=t.filter(a=>a().status==="pending")}function i(a,l,c){const u=Gm(e,a,l,(h,f)=>{n(),c&&c(h,f)});return t.push(u),u}function r(a){return t.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:n}}function _u(){}const ra=Object.create(null);function Bm(s){if(!ra[s]){const e=ia(s);if(!e)return;const t=bu(e),n={config:e,redundancy:t};ra[s]=n}return ra[s]}function jm(s,e,t){let n,i;if(typeof s=="string"){const r=ta(s);if(!r)return t(void 0,424),_u;i=r.send;const o=Bm(s);o&&(n=o.redundancy)}else{const r=sa(s);if(r){n=bu(r);const o=s.resources?s.resources[0]:"",a=ta(o);a&&(i=a.send)}}return!n||!i?(t(void 0,424),_u):n.query(e,i,t)().abort}const xu="iconify2",vi="iconify",wu=vi+"-count",Cu=vi+"-version",Su=36e5,Ym=168,Hm=50;function oa(s,e){try{return s.getItem(e)}catch{}}function aa(s,e,t){try{return s.setItem(e,t),!0}catch{}}function ku(s,e){try{s.removeItem(e)}catch{}}function la(s,e){return aa(s,wu,e.toString())}function ca(s){return parseInt(oa(s,wu))||0}const wr={local:!0,session:!0},Eu={local:new Set,session:new Set};let ua=!1;function Wm(s){ua=s}let Cr=typeof window>"u"?{}:window;function Tu(s){const e=s+"Storage";try{if(Cr&&Cr[e]&&typeof Cr[e].length=="number")return Cr[e]}catch{}wr[s]=!1}function Ou(s,e){const t=Tu(s);if(!t)return;const n=oa(t,Cu);if(n!==xu){if(n){const a=ca(t);for(let l=0;l<a;l++)ku(t,vi+l.toString())}aa(t,Cu,xu),la(t,0);return}const i=Math.floor(Date.now()/Su)-Ym,r=a=>{const l=vi+a.toString(),c=oa(t,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&e(u,a))return!0}catch{}ku(t,l)}};let o=ca(t);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,la(t,o)):Eu[s].add(a))}function Pu(){if(!ua){Wm(!0);for(const s in wr)Ou(s,e=>{const t=e.data,n=e.provider,i=t.prefix,r=wn(n,i);if(!Jo(r,t).length)return!1;const o=t.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function Xm(s,e){const t=s.lastModifiedCached;if(t&&t>=e)return t===e;if(s.lastModifiedCached=e,t)for(const n in wr)Ou(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===e});return!0}function Um(s,e){ua||Pu();function t(n){let i;if(!wr[n]||!(i=Tu(n)))return;const r=Eu[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=ca(i),o>=Hm||!la(i,o+1))return;const a={cached:Math.floor(Date.now()/Su),provider:s.provider,data:e};return aa(i,vi+o.toString(),JSON.stringify(a))}e.lastModified&&!Xm(s,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),t("local")||t("session"))}function Iu(){}function qm(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Rm(s)}))}function Zm(s,e){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(e).sort():s.iconsToLoad=e,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:t,prefix:n}=s,i=s.iconsToLoad;delete s.iconsToLoad;let r;if(!i||!(r=ta(t)))return;r.prepare(t,n,i).forEach(a=>{jm(t,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Jo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),Um(s,l)}catch(c){console.error(c)}qm(s)})})}))}const Km=(s,e)=>{const t=zm(s,!0,fu()),n=Am(t);if(!n.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(n.loaded,n.missing,n.pending,Iu)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(wn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=wn(c,u),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(h)||(d.add(h),i[c][u].push(h))}),r.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&Zm(l,i[c][u])}),e?Lm(e,n,r):Iu};function Qm(s,e){const t={...s};for(const n in e){const i=e[n],r=typeof i;n in pu?(i===null||i&&(r==="string"||r==="number"))&&(t[n]=i):r===typeof t[n]&&(t[n]=n==="rotate"?i%4:i)}return t}const Jm=/[\s,]+/;function eg(s,e){e.split(Jm).forEach(t=>{switch(t.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function tg(s,e=0){const t=s.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(t===""){const i=parseInt(s);return isNaN(i)?0:n(i)}else if(t!==s){let i=0;switch(t){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(s.slice(0,s.length-t.length));return isNaN(r)?0:(r=r/i,r%1===0?n(r):0)}}return e}function sg(s,e){let t=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)t+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+s+"</svg>"}function ng(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ig(s){return"data:image/svg+xml,"+ng(s)}function rg(s){return'url("'+ig(s)+'")'}const Du={...mu,inline:!1},og={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},ag={display:"inline-block"},ha={backgroundColor:"currentColor"},Nu={backgroundColor:"transparent"},$u={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Mu={webkitMask:ha,mask:ha,background:Nu};for(const s in Mu){const e=Mu[s];for(const t in $u)e[s+t]=$u[t]}const Sr={};["horizontal","vertical"].forEach(s=>{const e=s.slice(0,1)+"Flip";Sr[s+"-flip"]=e,Sr[s.slice(0,1)+"-flip"]=e,Sr[s+"Flip"]=e});function Au(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Ru=(s,e)=>{const t=Qm(Du,e),n={...og},i=e.mode||"svg",r={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let v in e){const b=e[v];if(b!==void 0)switch(v){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":t[v]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&eg(t,b);break;case"color":r.color=b;break;case"rotate":typeof b=="string"?t[v]=tg(b):typeof b=="number"&&(t[v]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete n["aria-hidden"];break;default:{const C=Sr[v];C?(b===!0||b==="true"||b===1)&&(t[C]=!0):Du[v]===void 0&&(n[v]=b)}}}const l=Cm(s,t),c=l.attributes;if(t.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let v=0,b=e.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),n.innerHTML=Tm(l.body,b?()=>b+"ID"+v++:"iconifyVue"),tt("svg",n)}const{body:u,width:h,height:f}=s,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=sg(u,{...c,width:h+"",height:f+""});return n.style={...r,"--svg":rg(m),width:Au(c.width),height:Au(c.height),...ag,...d?ha:Nu,...a},tt("span",n)};if(fu(!0),Om("",Mm),typeof document<"u"&&typeof window<"u"){Pu();const s=window;if(s.IconifyPreload!==void 0){const e=s.IconifyPreload,t="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!gm(n))&&console.error(t)}catch{console.error(t)}})}if(s.IconifyProviders!==void 0){const e=s.IconifyProviders;if(typeof e=="object"&&e!==null)for(let t in e){const n="IconifyProviders["+t+"] is invalid.";try{const i=e[t];if(typeof i!="object"||!i||i.resources===void 0)continue;Pm(t,i)||console.error(n)}catch{console.error(n)}}}}const lg={..._r,body:""},Vu=oe({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(s,e){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let t;if(typeof s!="string"||(t=vr(s,!1,!0))===null)return this.abortLoading(),null;const n=pm(t);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:Km([t],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,e&&e(s));const i=["iconify"];return t.prefix!==""&&i.push("iconify--"+t.prefix),t.provider!==""&&i.push("iconify--"+t.provider),{data:n,classes:i}}},render(){this.counter;const s=this.$attrs,e=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!e)return Ru(lg,s);let t=s;return e.classes&&(t={...s,class:(typeof s.class=="string"?s.class+" ":"")+e.classes.join(" ")}),Ru({..._r,...e.data},t)}}),Lu=(s,e="image/svg+xml",t="utf-8")=>t==="base64"?new Blob([s],{type:`${e};${t}`}):new Blob([s],{type:`${e};charset=${t}`}),zu=s=>new XMLSerializer().serializeToString(s),cg=(s,e="image/svg+xml",t="utf-8")=>Lu(zu(s),e,t),Fu=(s,e)=>new Promise(t=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=e,typeof s=="string"?n.href=s:n.href=window.URL.createObjectURL(s),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href),t()});function ug(s=["*"],e){return new Promise((t,n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return n(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(s)&&s.length>0&&i.setAttribute("accept",s.join(",")),e&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&n(new Error("Cancel select"))},1e3)},{once:!0});const r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)n(new Error("Cancel select"));else{const o=Array.from(i.files);!s.includes("*")&&o.some(a=>!s.includes(`.${dg(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),t(o)}};i.addEventListener("change",r),i.click()})}function hg(s,e="text",t){return new Promise((n,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{t?.(o.loaded,o.total)}),r.addEventListener("load",o=>{n(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),e){case"dataURL":r.readAsDataURL(s);break;case"binaryString":r.readAsBinaryString(s);break;case"arrayBuffer":r.readAsArrayBuffer(s);break;case"text":default:r.readAsText(s)}})}const dg=s=>{let e;return s instanceof File?e=s.name:e=s,e.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function kr(){const s=document.documentElement;return{clientX:s.getBoundingClientRect().x,clientY:s.getBoundingClientRect().y,clientWidth:s.clientWidth,clientHeight:s.clientHeight,clientTop:s.clientTop,clientLeft:s.clientLeft,scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,offsetTop:s.offsetTop,offsetLeft:s.offsetLeft,offsetParent:s.offsetParent}}function da(){const{clientWidth:s,clientHeight:e}=kr();return{width:s||window.innerWidth,height:e||window.innerHeight}}function fg(s){const{top:e,left:t,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=kr();return{x:t+r,y:e+o,width:n,height:i}}function pg(){const{clientHeight:s,scrollTop:e,scrollHeight:t}=kr(),n=t-s;return n<=0?0:e/n*100}function mg(s){if("center"in s)return s.center;if(s.pageX&&s.pageY)return{x:s.pageX,y:s.pageY};const{scrollLeft:e,scrollTop:t}=kr();return{x:s.clientX+e,y:s.clientY+t}}function gg(s,e){const t=mg(e),n=fg(s);return{x:t.x-n.x,y:t.y-n.y}}const vg=()=>{const s=navigator.userAgent.toLowerCase();let e="Unknown";return/mac/i.test(s)?e="macOS":/win/i.test(s)?e="Windows":/android/i.test(s)?e="Android":/iphone|ipad|ipod/i.test(s)?e="iOS":/linux/i.test(s)?e="Linux":/bsd/i.test(s)&&(e="BSD"),e.toLowerCase()};function yg(){return vg()==="macos"}function bg(){const s=window.navigator.userAgent,e=s.indexOf("MSIE ");if(e>0)return parseInt(s.substring(e+5,s.indexOf(".",e)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const fa=bg()!==-1;(()=>{const s=Uc();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!Uc().OffscreenCanvas)return!1;const e=new OffscreenCanvas(1,1),t=e.getContext("2d");t.fillRect(0,0,1,1);const n=e.transferToImageBitmap();try{t.createPattern(n,"no-repeat")}catch{return!1}return!0}();function _g(s){const e=document.documentElement,t=window.top===window.self?window.devicePixelRatio:1;e.dataset.dpr=t;let n=100;const i=function(){const r=Math.min(e.clientWidth,s);e.dataset.width=r,e.dataset.rem=n=Math.round(100*(r/s)),e.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function $e(s){return s*Math.PI/180}function jt(s){return s*180/Math.PI}function pa(s,e,t=0){return Math.sqrt(s*s+e*e+t*t)}function ma(s,e,t,n){const i=s-t,r=e-n;return pa(i,r)}function ga(s,e,t,n){const i=s-t,r=e-n;return i*i+r*r}function Vn(s,e,t,n){const i=t-s,r=n-e;let o=Math.atan2(r,i);return o<0&&(o+=Math.PI*2),o}function As(s,e){return{dx:Math.cos(s)*e,dy:Math.sin(s)*e}}const yi=Math.PI*2;function Gu(s,e,t,n){const i=s*n-e*t<0?-1:1;let r=s*t+e*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function xg(s,e,t,n,i,r,o,a,l,c){const u=c*(s-t)/2+l*(e-n)/2,h=-l*(s-t)/2+c*(e-n)/2,f=o*o,d=a*a,m=u*u,v=h*h;let b=f*d-f*v-d*m;b<0&&(b=0),b/=f*v+d*m,b=Math.sqrt(b)*(i===r?-1:1);const C=b*o/a*h,O=b*-a/o*u,$=c*C-l*O+(s+t)/2,S=l*C+c*O+(e+n)/2,Y=(u-C)/o,L=(h-O)/a,H=(-u-C)/o,fe=(-h-O)/a,ye=Gu(1,0,Y,L);let ge=Gu(Y,L,H,fe);return r===0&&ge>0&&(ge-=yi),r===1&&ge<0&&(ge+=yi),[$,S,ye,ge]}function wg(s,e){const t=1.3333333333333333*Math.tan(e/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+e),o=Math.sin(s+e);return[n,i,n-i*t,i+n*t,r+o*t,o-r*t,r,o]}function Bu(s,e,t,n,i,r,o,a,l){const c=Math.sin(l*yi/360),u=Math.cos(l*yi/360),h=u*(s-t)/2+c*(e-n)/2,f=-c*(s-t)/2+u*(e-n)/2;if(h===0&&f===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const d=h*h/(o*o)+f*f/(a*a);d>1&&(o*=Math.sqrt(d),a*=Math.sqrt(d));const m=xg(s,e,t,n,i,r,o,a,c,u),v=[];let b=m[2],C=m[3];const O=Math.max(Math.ceil(Math.abs(C)/(yi/4)),1);C/=O;for(let $=0;$<O;$++)v.push(wg(b,C)),b+=C;return v.map($=>{for(let S=0;S<$.length;S+=2){let Y=$[S+0],L=$[S+1];Y*=o,L*=a;const H=u*Y-c*L,fe=c*Y+u*L;$[S+0]=H+m[0],$[S+1]=fe+m[1]}return $})}function va(s,e,t,n,i,r){return[s/3+.6666666666666666*t,e/3+.6666666666666666*n,i/3+.6666666666666666*t,r/3+.6666666666666666*n,i,r]}function bi(s,e,t,n){return[s,e,t,n,t,n]}const Er={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class Cn{static createSVGElement(e="path",t){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",e);return t&&K.attribute(n,t),n}static createSvgPath(e){return this.createSVGElement("path",{d:e})}static downloadFromSVGElement(e,t="shape"){return Fu(cg(e),`${t}.svg`)}static downloadFromSVGString(e,t="shape"){return Fu(Lu(e),`${t}.svg`)}static getSVGRawStringFromElement(e){return zu(e)}static isSVGPath(e){return typeof e!="string"?!1:(e=e.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(e)&&/[\dz]$/i.test(e))}static SVGPathDataToD(e){return e.map(t=>{if(!t[0])return"";switch(t[0].toLowerCase()){case"a":return`${t[0]} ${t[1]},${t[2]} ${t[3]} ${t[4]},${t[5]} ${t[6]},${t[7]}`;case"c":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]} ${t[5]},${t[6]}`;case"s":case"q":return`${t[0]} ${t[1]},${t[2]} ${t[3]},${t[4]}`;default:return t[0]+" "+t.slice(1).join(",")}}).join(" ")}static parseSVGPath(e){const t=[];return e.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=iu(r);for(o=="m"&&a.length>Er[o]&&(t.push([i,...a.splice(0,Er[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Er[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);t.push([i,...a.splice(0,Er[o])])}return o=="z"&&t.push([i]),""}),t}static absolutizeSVGPath(e){let t=0,n=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=t,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=t=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(e){let t=0,n=0,i=0,r=0;return e.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=t,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],t+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(e){let t=[],n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=e.length;f<d;f++){let m=e[f];const v=m[0];switch(v){case"M":n=m[1],i=m[2];break;case"A":const b=Bu(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!b.length)continue;b.forEach(($,S)=>{const[Y,L,H,fe,ye,ge,Me,Ae]=$;m=["C",H,fe,ye,ge,Me,Ae],S<b.length-1&&t.push(m)});break;case"S":let C=r,O=o;(h=="C"||h=="S")&&(C+=C-c,O+=O-u),m=["C",C,O,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),m=["C",...va(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...va(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...bi(r,o,m[1],m[2])];break;case"H":m=["C",...bi(r,o,m[1],o)];break;case"V":m=["C",...bi(r,o,r,m[1])];break;case"Z":m=["C",...bi(r,o,n,i)];break}h=v,r=m[m.length-2],o=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=r,u=o),t.push(m)}return t}static catmullRom2bezier(e){let t=[];for(let n=0,i=e.length;i-2>n;n+=2){let r;n==0?r=[{x:e[n],y:e[n+1]},{x:e[n],y:e[n+1]},{x:e[n+2],y:e[n+3]},{x:e[n+4],y:e[n+5]}]:i-4==n?r=[{x:e[n-2],y:e[n-1]},{x:e[n],y:e[n+1]},{x:e[n+2],y:e[n+3]},{x:e[n+2],y:e[n+3]}]:r=[{x:e[n-2],y:e[n-1]},{x:e[n],y:e[n+1]},{x:e[n+2],y:e[n+3]},{x:e[n+4],y:e[n+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];t.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return t}static zvhToLSVGPath(e){let t=[],n=["L",0,0],i;for(let r=0,o=e.length;r<o;r++){let a=e[r];switch(a[0]){case"M":n=["L",a[1],a[2]],t.push(a);break;case"Z":t.push(n);break;case"H":i=t[t.length-1]||["L",0,0],t.push(["L",a[1],i[i.length-1]]);break;case"V":i=t[t.length-1]||["L",0,0],t.push(["L",i[i.length-2],a[1]]);break;default:t.push(a)}}return t}static longhandSVGPath(e){const t={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=e.length;o<a;o++){const l=e[o],c=t[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return e}static curveDim(e,t,n,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,v,b,C,O;for(let L=0;L<2;++L){if(L===0?(f=6*e-12*n+6*r,h=-3*e+9*n-9*r+3*a,d=3*n-3*e):(f=6*t-12*i+6*o,h=-3*t+9*i-9*o+3*l,d=3*i-3*t),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;m=-d/f,m>0&&m<1&&c.push(m);continue}C=f*f-4*d*h,O=Math.sqrt(C),!(C<0)&&(v=(-f+O)/(2*h),v>0&&v<1&&c.push(v),b=(-f-O)/(2*h),b>0&&b<1&&c.push(b))}let $=c.length,S;const Y=$;for(;$--;)m=c[$],S=1-m,u[0][$]=S*S*S*e+3*S*S*m*n+3*S*m*m*r+m*m*m*a,u[1][$]=S*S*S*t+3*S*S*m*i+3*S*m*m*o+m*m*m*l;return u[0][Y]=e,u[1][Y]=t,u[0][Y+1]=a,u[1][Y+1]=l,u[0].length=u[1].length=Y+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}static base3(e,t,n,i,r){const o=-3*t+9*n-9*i+3*r,a=e*o+6*t-12*n+6*i;return e*a-3*t+3*n}static bezlen(e,t,n,i,r,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let v=0;v<h;v++){const b=u*f[v]+u,C=this.base3(b,e,n,r,a),O=this.base3(b,t,i,o,l),$=C*C+O*O;m+=d[v]*Math.sqrt($)}return u*m}}const ct=Cn;class ju extends gr{shapes=[];removes=[];x;y;constructor(e){super(),this.x=e?.x||0,this.y=e?.y||0}register(...e){this.shapes.push(...e);const t=n=>(i,r)=>{this.shapes.forEach(o=>{o.id!==n.id&&o.enableDrag&&(o.x+=i,o.y+=r)}),this.x+=i,this.y+=r};e.forEach(n=>{const i=t(n);n.on("moving",i),this.removes.push(()=>{n.off("moving",i)})})}destroy(){this.removes.forEach(e=>e())}}class ut extends gr{id;cX;cY;x;prevX;y;prevY;degree;prevDegree;scalexOnOrigin;scaleyOnOrigin;prevScalexOnOrigin;prevScaleyOnOrigin;skewxDegreeOnOrigin;skewyDegreeOnOrigin;prevSkewxDegreeOnOrigin;prevSkewyDegreeOnOrigin;transformBaseOnSelfInRenderGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;mouseX=0;mouseY=0;targetToAfterDragFree;followMouse;isShow=!0;now=new Date().getTime();frameRate=60;strokeArmyAnts;strokeArmyAntsOffset=0;history=[];path2d=new Path2D;el;pathd;renderGroup;shapeGroup;autoRender;constructor(e){super(),this.id=Zp(),this.cX=e?.cX||0,this.cY=e?.cY||0,this.prevX=this.x=e?.x||0,this.prevY=this.y=e?.y||0,this.prevDegree=this.degree=e?.degree||0,this.prevScalexOnOrigin=this.scalexOnOrigin=1,this.prevScaleyOnOrigin=this.scaleyOnOrigin=1,e?.scaleOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=e.scaleOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin=e.scaleOnOrigin),e?.scalexOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=e.scalexOnOrigin),e?.scaleyOnOrigin!==void 0&&(this.prevScaleyOnOrigin=this.scaleyOnOrigin=e.scaleyOnOrigin),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin=e?.skewxDegreeOnOrigin||0,this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin=e?.skewyDegreeOnOrigin||0,this.transformBaseOnSelfInRenderGroup=typeof e?.transformBaseOnSelfInRenderGroup=="boolean"?e.transformBaseOnSelfInRenderGroup:!1,this.vx=e?.vx||0,this.vy=e?.vy||0,this.ax=e?.ax||0,this.ay=e?.ay||0,this.mass=e?.mass||1,this.attrs=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(e?.attrs||{}).map(([t,n])=>[Xt(t),n]))),this.enableDrag=e?.enableDrag||!1,this.alongPath=e?.alongPath,this.targetToAfterDragFree=e?.targetToAfterDragFree,this.followMouse=e?.followMouse||!1,this.isShow=typeof e?.isShow=="boolean"?e?.isShow:!0,this.strokeArmyAnts=e?.strokeArmyAnts||!1,this.renderGroup=e?.renderGroup,this.shapeGroup=e?.shapeGroup,this.autoRender=typeof e?.autoRender=="boolean"?e?.autoRender:!1}save(){this.history.push(su(this))}restore(){const e=this.history.pop();e&&tm(this,e)}group(...e){this.renderGroup||(this.renderGroup=new ju({x:this.x,y:this.y}),this.renderGroup.register(this)),e.forEach(t=>{t.renderGroup=this.renderGroup,this.renderGroup?.register(t)})}ungroup(){this.renderGroup&&(this.renderGroup.shapes.forEach(e=>delete e.renderGroup),this.renderGroup.destroy(),this.renderGroup=void 0)}setAttr(e,t){mr(e)?Object.assign(this.attrs,Object.fromEntries(Object.entries(e).map(([n,i])=>[Xt(n),i]))):typeof e=="string"&&t&&(this.attrs[Xt(e)]=t)}getAttr(e,t){return this.attrs[Xt(e)]||t}hasAttr(e){return!!this.attrs[Xt(e)]}get centerX(){const e=this.getBoundingClientRect();return e?e.x+e.width/2:this.x}get centerY(){const e=this.getBoundingClientRect();return e?e.y+e.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}frameUpdate(){const e=new Date().getTime();if(!(e-this.now<1e3/this.frameRate)&&(this.now=e,this.strokeArmyAnts&&!this.isMouseIn)){const t=this.getAttr("stroke-dasharray","4 4");if(typeof t=="string"){this.setAttr("stroke-dasharray",t);const n=iu(t);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>n.reduce((i,r)=>i+r,0)&&(this.strokeArmyAntsOffset=0)}}}toSVGPathD(e=!1){let t=[];const n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?t.push(...n):t.push(n),e&&(t=ct.relativeSVGPath(t)),ct.SVGPathDataToD(t)}distance(e){return ma(this.x,this.y,e.x,e.y)}rotateTo(e){this.degree=jt(Vn(this.x,this.y,e.x,e.y))}followTo(e,t=3){this.rotateTo(e);const{dx:n,dy:i}=As($e(this.degree),t);this.vx=n,this.vy=i,this.nextFrame()}followAccelerationTo(e,t=.05){this.rotateTo(e);const{dx:n,dy:i}=As($e(this.degree),t);this.ax=n,this.ay=i,this.nextFrame()}checkCollision(e){}gravitate(e){const t=e.x-this.x,n=e.y-this.y,i=t*t+n*n,r=Math.sqrt(i),o=this.mass*e.mass/i,a=o*t/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,e.vx-=a/e.mass,e.vy-=l/e.mass}static comboGravitate(e){const t=e.length;e.forEach((n,i)=>{n.nextFrame();for(let r=i+1;r<t;r++)n.checkCollision(e[r]),n.gravitate(e[r])})}nextFrame(e){this.vx+=this.ax,this.vy+=this.ay;const t=e?.gravity??0;this.vy+=t;const n=e?.friction??1;this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(e,t){const n=t?.easing??.05,{dx:i,dy:r}=this.centerDiff,o=e.x-i-this.x,a=e.y-r-this.y;this.vx=o*n,this.vy=a*n,this.nextFrame(t)}nextFrameSpringTo(e,t){const n=t?.spring??.03,{dx:i,dy:r}=this.centerDiff;(Array.isArray(e)?e:[e]).forEach(o=>{const a=o.x-i-this.x,l=o.y-r-this.y,c=a*n,u=l*n;this.vx+=c,this.vy+=u}),this.nextFrame({friction:.9,...t})}static comboSpringChain(e,t){e.forEach((n,i)=>{i>0&&n.nextFrameSpringTo(e[i-1],t)})}static comboSpringConnect(e,t){const n=t?.springLength??100;e.forEach(i=>{i.isDragging||e.filter(r=>r.id!==i.id).forEach(r=>{const o=Vn(i.x,i.y,r.x,r.y);i.nextFrameSpringTo({x:r.x-Math.cos(o)*n,y:r.y-Math.sin(o)*n},t)})})}spring(e,t){const n=t?.springLength??100,i=t?.spring??1e-4;let r=[0,0,0,0,0];const o=e.x-this.x,a=e.y-this.y,l=Math.sqrt(o*o+a*a);if(l<n){r=[this.x,this.y,e.x,e.y,1-l/n];const c=o*i,u=a*i;this.vx+=c/this.mass,this.vy+=u/this.mass,e.vx-=c/e.mass,e.vy-=u/e.mass}return r}static comboSpringMass(e,t,n){const i=[];return e.forEach((r,o)=>{r.nextFrame(n),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,l=e.length;a<l;a++)i.push(r.spring(e[a],n))}),i}}class ya extends ut{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(e){super(e),this.x=e?.x||0,this.y=e?.y||0,this.z=e?.z||0,this.fl=e?.fl||250,this.vpX=e?.vpX||0,this.vpY=e?.vpY||0,this.cX=e?.cX||0,this.cY=e?.cY||0,this.cZ=e?.cZ||0,this.radius=e?.radius||0}getBoundingClientRect(){return null}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-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",this.getScreenX(),this.getScreenY()]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}setVanishingPoint(e,t){this.vpX=e,this.vpY=t}setCenter(e,t,n){this.cX=e,this.cY=t,this.cZ=n}rotateX(e){({x:this.y,y:this.z}=vs($e(e),this.y,this.z))}rotateY(e){({x:this.x,y:this.z}=vs($e(e),this.x,this.z))}rotateZ(e){({x:this.x,y:this.y}=vs($e(e),this.x,this.y))}getScreenX(){const e=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*e}getScreenY(){const e=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*e}eq(e){return this.x===e.x&&this.y===e.y&&this.z===e.z&&this.radius===e.radius&&this.mass===e.mass}length(){return pa(this.x,this.y,this.z)}distance(e){const t=e.x-this.x,n=e.y-this.y,i=e.z-this.z;return Math.sqrt(t*t+n*n+i*i)}scalar(e){return this.x*=e,this.y*=e,this.z*=e,this}normalize(e=1){const t=this.length();if(t){const n=e/t;this.scalar(n)}return this}clamp(e){const t=this.length();return t&&t>e&&this.scalar(e/t),this}cross(e){const t=this.x,n=this.y,i=this.z;return{x:n*e.z-i*e.y,y:i*e.x-t*e.z,z:t*e.y-n*e.x}}multiply(e){return{x:this.x*e.x,y:this.y*e.y,z:this.z*e.z}}div(e){return{x:this.x/e.x,y:this.y/e.y,z:this.z/e.z}}add(e){return{x:this.x+e.x,y:this.y+e.y,z:this.z+e.z}}sub(e){return{x:this.x-e.x,y:this.y-e.y,z:this.z-e.z}}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}reflect(e){const t=this.dot(e);return{x:this.x-2*t*e.x,y:this.y-2*t*e.y,z:this.z-2*t*e.z}}clone(e){return new ya({x:e.x,y:e.y,z:e.z,radius:e.radius,mass:e.mass})}}const Tr=ya;class Ct extends ut{width;height;borderRadius;constructor(e){super(e),this.width=e.width,this.height=e.height,this.borderRadius=e.borderRadius||0}static fromBezier(e,t,n,i,r,o,a,l){const c=Cn.curveDim(e,t,n,i,r,o,a,l);return new Ct({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return new Ct({x:this.x,y:this.y,width:this.width,height:this.height})}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["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",this.x,this.y],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(e){e.beginPath(),this.borderRadius<=0?e.rect(0,0,this.width,this.height):(e.moveTo(0,this.borderRadius),e.lineTo(0,this.height-this.borderRadius),e.quadraticCurveTo(0,this.height,this.borderRadius,this.height),e.lineTo(this.width-this.borderRadius,this.height),e.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),e.lineTo(this.width,this.borderRadius),e.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),e.lineTo(this.borderRadius,0),e.quadraticCurveTo(0,0,0,this.borderRadius)),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height&&this.borderRadius===e.borderRadius}isIntersectRect(e){return!(this.x+this.width<e.x||e.x+e.width<this.x||this.y+this.height<e.y||e.y+e.height<this.y)}isContainPoint(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height}clone(e){return new Ct({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const _i=Ct,Yu=[1,0,0,1,0,0],Hu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Yt{value;m13_value=0;m23_value=0;m33_value=1;matrix3d;constructor(e=Yu){this.value=Array.from(e),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.m13_value}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this.m23_value}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this.m33_value}set m11(e){this.value[0]=e}set m12(e){this.value[1]=e}set m13(e){this.m13_value=e}set m21(e){this.value[2]=e}set m22(e){this.value[3]=e}set m23(e){this.m23_value=e}set m31(e){this.value[4]=e}set m32(e){this.value[5]=e}set m33(e){this.m33_value=e}toMatrix3D(e=this.matrix3d){const t=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return e?(e.value=t,e):new en(t)}identity(){return this.value=Array.from(Yu),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}scalar(e){return this.m11*=e,this.m12*=e,this.m13*=e,this.m21*=e,this.m22*=e,this.m23*=e,this.m31*=e,this.m32*=e,this.m33*=e,this}normalize(){const e=this.m33||1e-4;return this.scalar(1/e)}applyToPoint(e,t,n=0,i=0){const r=e-n,o=t-i;return e=this.m11*r+this.m21*o+this.m31,t=this.m12*r+this.m22*o+this.m32,{x:e+n,y:t+i}}fromString(e){const t=Kc("number",e);return t.length===6?(t.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}),this.m13=0,this.m23=0,this.m33=1):this.identity(),this}clone(){const e=new Yt;return e.m11=this.m11,e.m12=this.m12,e.m13=this.m13,e.m21=this.m21,e.m22=this.m22,e.m23=this.m23,e.m31=this.m31,e.m32=this.m32,e.m33=this.m33,e}multiply(e){const t=this.clone();let n;return e instanceof Yt?n=e:n=new Yt(e),this.m11=n.m11*t.m11+n.m12*t.m21+n.m13*t.m31,this.m12=n.m11*t.m12+n.m12*t.m22+n.m13*t.m32,this.m13=n.m11*t.m13+n.m12*t.m23+n.m13*t.m33,this.m21=n.m21*t.m11+n.m22*t.m21+n.m23*t.m31,this.m22=n.m21*t.m12+n.m22*t.m22+n.m23*t.m32,this.m23=n.m21*t.m13+n.m22*t.m23+n.m23*t.m33,this.m31=n.m31*t.m11+n.m32*t.m21+n.m33*t.m31,this.m32=n.m31*t.m12+n.m32*t.m22+n.m33*t.m32,this.m33=n.m31*t.m13+n.m32*t.m23+n.m33*t.m33,this}append(e){return this.multiply(e)}prepend(e){return e.multiply(this),this}inverse(){const e=this.m11,t=this.m12,n=this.m21,i=this.m22,r=this.m31,o=this.m32,a=e*i-t*n;return this.m11=i/a,this.m12=-t/a,this.m21=-n/a,this.m22=e/a,this.m31=(n*o-i*r)/a,this.m32=-(e*o-t*r)/a,this.m13=0,this.m23=0,this.m33=1,this}adjugate(){const e=new Yt;return e.m11=this.m22*this.m33-this.m32*this.m23,e.m12=this.m32*this.m13-this.m12*this.m33,e.m13=this.m12*this.m23-this.m22*this.m13,e.m21=this.m31*this.m23-this.m21*this.m33,e.m22=this.m11*this.m33-this.m31*this.m13,e.m23=this.m21*this.m13-this.m11*this.m23,e.m31=this.m21*this.m32-this.m31*this.m22,e.m32=this.m31*this.m12-this.m11*this.m32,e.m33=this.m11*this.m22-this.m21*this.m12,e}split(){let e=jt(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(e+=180),{x:this.m31,y:this.m32,rotate:e,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:jt(Math.atan2(-this.m21,this.m22)),skewY:jt(Math.atan2(this.m12,this.m11))}}getGroupCoords(e){const t=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=e.value[0],c=e.value[1],u=e.value[2],h=e.value[3],f=e.value[4],d=e.value[5],m=l*h,v=c*u,b=(u*n-t*h)/(v-m),C=(l*n-t*c)/(m-v),O=(u*r-i*h)/(v-m),$=(l*r-i*c)/(m-v),S=(u*(a-d)+h*(f-o))/(v-m),Y=(l*(a-d)+c*(f-o))/(m-v),L=[b,C,O,$,S,Y];return new Yt(L)}toString(e=6){return this.matrix3d.is2D()?`matrix(${this.value.map(t=>Rt(t,e)).join(",")})`:this.matrix3d.toString()}translate(e,t){return this.multiply([1,0,0,1,e,t]),this.toMatrix3D(),this}translateTo(e,t){return this.translate(e-this.m31,t-this.m32)}translateX(e){return this.translate(e,0)}translateXTo(e){return this.translateTo(e,this.m32)}translateY(e){return this.translate(0,e)}translateYTo(e){return this.translateTo(this.m31,e)}translateZ(e){return this.matrix3d.translate(0,0,e),this.matrix3d.toMatrix(this),this}translateZTo(e){return this.translateZ(e-this.matrix3d.m43),this}translate3d(e,t,n){return this.matrix3d.translate(e,t,n),this.matrix3d.toMatrix(this),this}translate3dTo(e,t,n){return this.translate3d(e-this.matrix3d.m41,t-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(e,t=0,n=0){const i=$e(e),r=Math.cos(i),o=Math.sin(i);return this.multiply([r,o,-o,r,t,n]),this.translate(-t,-n),this.toMatrix3D(),this}rotateTo(e,t=0,n=0){const{rotate:i}=this.split();return this.rotate(e-i,t,n),this}rotateX(e){return this.matrix3d.rotate(e,0,0),this.matrix3d.toMatrix(this),this}rotateXTo(e){const{rotateX:t}=this.matrix3d.split();return this.rotateX(e-t),this}rotateY(e){return this.matrix3d.rotate(0,e,0),this.matrix3d.toMatrix(this),this}rotateYTo(e){const{rotateY:t}=this.matrix3d.split();return this.rotateY(e-t),this}rotateZ(e){return this.matrix3d.rotate(0,0,e),this.matrix3d.toMatrix(this),this}rotateZTo(e){const{rotateZ:t}=this.matrix3d.split();return this.rotateZ(e-t),this}rotate3d(e,t,n){return this.matrix3d.rotate(e,t,n),this.matrix3d.toMatrix(this),this}rotate3dTo(e,t,n){const{rotateX:i,rotateY:r,rotateZ:o}=this.matrix3d.split();return this.rotate3d(e-i,t-r,n-o),this}scale(e,t=e,n=0,i=0){return this.multiply([e,0,0,t,n,i]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(e,t=e,n=0,i=0){return this.scale(e/this.m11,t/this.m22,n,i)}scaleX(e){return this.scale(e,1)}scaleXTo(e){return this.scale(e/this.m11,1)}scaleY(e){return this.scale(1,e)}scaleYTo(e){return this.scale(1,e/this.m22)}scaleZ(e){return this.matrix3d.scale(1,1,e),this.matrix3d.toMatrix(this),this}scaleZTo(e){const{scaleZ:t}=this.matrix3d.split();return this.scaleZ(e/t),this}scale3d(e,t=e,n=e){return this.matrix3d.scale(e,t,n),this.matrix3d.toMatrix(this),this}scale3dTo(e,t=e,n=e){const{scaleX:i,scaleY:r,scaleZ:o}=this.matrix3d.split();return this.scale3d(e/i,t/r,n/o),this}skew(e,t=e){return this.multiply([Math.cos($e(t)),Math.sin($e(t)),-Math.sin($e(e)),Math.cos($e(e)),0,0]),this.toMatrix3D(),this}skewTo(e,t=e){const{skewX:n,skewY:i}=this.split();return this.skew(e-n,t-i)}skewX(e){const{skewY:t}=this.split();return this.skew(e,t)}skewXTo(e){const{skewY:t}=this.split();return this.skewTo(e,t)}skewY(e){const{skewX:t}=this.split();return this.skew(t,e)}skewYTo(e){const{skewX:t}=this.split();return this.skewTo(t,e)}skewZ(e){return this}skewZTo(e){return this}skew3d(e,t,n){return this}skew3dTo(e,t,n){return this}perspective(e){return this.matrix3d.perspective(e),this.matrix3d.toMatrix(this),this}}class en{value;is3dSpecial=!1;constructor(e=Hu){this.value=Array.from(e)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(e){this.value[0]=e}set m12(e){this.value[1]=e}set m13(e){this.value[2]=e}set m14(e){this.value[3]=e}set m21(e){this.value[4]=e}set m22(e){this.value[5]=e}set m23(e){this.value[6]=e}set m24(e){this.value[7]=e}set m31(e){this.value[8]=e}set m32(e){this.value[9]=e}set m33(e){this.value[10]=e}set m34(e){this.value[11]=e}set m41(e){this.value[12]=e}set m42(e){this.value[13]=e}set m43(e){this.value[14]=e}set m44(e){this.value[15]=e}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(Hu),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}clone(){const e=new en;return e.m11=this.m11,e.m12=this.m12,e.m13=this.m13,e.m14=this.m14,e.m21=this.m21,e.m22=this.m22,e.m23=this.m23,e.m24=this.m24,e.m31=this.m31,e.m32=this.m32,e.m33=this.m33,e.m34=this.m34,e.m41=this.m41,e.m42=this.m42,e.m43=this.m43,e.m44=this.m44,e}scalar(e){return this.m11*=e,this.m12*=e,this.m13*=e,this.m14*=e,this.m21*=e,this.m22*=e,this.m23*=e,this.m24*=e,this.m31*=e,this.m32*=e,this.m33*=e,this.m34*=e,this.m41*=e,this.m42*=e,this.m43*=e,this.m44*=e,this}normalize(){return this.scalar(1/(this.m44||1e-4))}applyToPoint(e){const t=e.x*this.m11+e.y*this.m21+e.z*this.m31+e.mass*this.m41,n=e.x*this.m12+e.y*this.m22+e.z*this.m32+e.mass*this.m42,i=e.x*this.m13+e.y*this.m23+e.z*this.m33+e.mass*this.m43,r=e.x*this.m14+e.y*this.m24+e.z*this.m34+e.mass*this.m44;e.x=t,e.y=n,e.z=i,e.mass=r}fromString(e){const t=Kc("number",e);return t.length===16?t.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.identity(),this}toMatrix(e){const{scaleX:t,scaleY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[t,r,i,n,o,a];return e?(e.value=l,e):new Yt(l)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(e=6){return`matrix3d(${this.value.map(t=>Rt(t,e)).join(",")})`}split(){const e=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),t=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33);let i=jt(Ut(Math.asin(-this.m13),-1,1)),r=jt(Math.atan2(this.m23,this.m33));Math.cos($e(i))===0&&(r=jt(Math.atan2(-this.m31,this.m22)));let o=jt(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scaleX:e,scaleY:t,scaleZ:n,rotateX:r,rotateY:i,rotateZ:o,skewX:jt(this.m14),skewY:jt(this.m24),skewZ:jt(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const e=[],t=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,d=this.m34,m=this.m41,v=this.m42,b=this.m43,C=this.m44;e[0]=l*d*v-c*f*v+c*h*b-a*d*b-l*h*C+a*f*C,e[1]=r*f*v-i*d*v-r*h*b+n*d*b+i*h*C-n*f*C,e[2]=i*c*v-r*l*v+r*a*b-n*c*b-i*a*C+n*l*C,e[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*d-n*l*d;const O=t*e[0]+o*e[1]+u*e[2]+m*e[3];if(O==0)return console.warn("Can't invert matrix, determinant is 0");e[4]=c*f*m-l*d*m-c*u*b+o*d*b+l*u*C-o*f*C,e[5]=i*d*m-r*f*m+r*u*b-t*d*b-i*u*C+t*f*C,e[6]=r*l*m-i*c*m-r*o*b+t*c*b+i*o*C-t*l*C,e[7]=i*c*u-r*l*u+r*o*f-t*c*f-i*o*d+t*l*d,e[8]=a*d*m-c*h*m+c*u*v-o*d*v-a*u*C+o*h*C,e[9]=r*h*m-n*d*m-r*u*v+t*d*v+n*u*C-t*h*C,e[10]=n*c*m-r*a*m+r*o*v-t*c*v-n*o*C+t*a*C,e[11]=r*a*u-n*c*u-r*o*h+t*c*h+n*o*d-t*a*d,e[12]=l*h*m-a*f*m-l*u*v+o*f*v+a*u*b-o*h*b,e[13]=n*f*m-i*h*m+i*u*v-t*f*v-n*u*b+t*h*b,e[14]=i*a*m-n*l*m-i*o*v+t*l*v+n*o*b-t*a*b,e[15]=n*l*u-i*a*u+i*o*h-t*l*h-n*o*f+t*a*f,this.value=e,this.scalar(1/O)}multiply(e){const t=this.clone(),n=e.m11*t.m11+e.m12*t.m21+e.m13*t.m31+e.m14*t.m41,i=e.m11*t.m12+e.m12*t.m22+e.m13*t.m32+e.m14*t.m42,r=e.m11*t.m13+e.m12*t.m23+e.m13*t.m33+e.m14*t.m43,o=e.m11*t.m14+e.m12*t.m24+e.m13*t.m34+e.m14*t.m44,a=e.m21*t.m11+e.m22*t.m21+e.m23*t.m31+e.m24*t.m41,l=e.m21*t.m12+e.m22*t.m22+e.m23*t.m32+e.m24*t.m42,c=e.m21*t.m13+e.m22*t.m23+e.m23*t.m33+e.m24*t.m43,u=e.m21*t.m14+e.m22*t.m24+e.m23*t.m34+e.m24*t.m44,h=e.m31*t.m11+e.m32*t.m21+e.m33*t.m31+e.m34*t.m41,f=e.m31*t.m12+e.m32*t.m22+e.m33*t.m32+e.m34*t.m42,d=e.m31*t.m13+e.m32*t.m23+e.m33*t.m33+e.m34*t.m43,m=e.m31*t.m14+e.m32*t.m24+e.m33*t.m34+e.m34*t.m44,v=e.m41*t.m11+e.m42*t.m21+e.m43*t.m31+e.m44*t.m41,b=e.m41*t.m12+e.m42*t.m22+e.m43*t.m32+e.m44*t.m42,C=e.m41*t.m13+e.m42*t.m23+e.m43*t.m33+e.m44*t.m43,O=e.m41*t.m14+e.m42*t.m24+e.m43*t.m34+e.m44*t.m44;return this.m11=n,this.m12=i,this.m13=r,this.m14=o,this.m21=a,this.m22=l,this.m23=c,this.m24=u,this.m31=h,this.m32=f,this.m33=d,this.m34=m,this.m41=v,this.m42=b,this.m43=C,this.m44=O,this}translate(e=0,t=0,n=0){return this.multiply(new en([1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1]))}scale(e=1,t=1,n=1){return this.multiply(new en([e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1]))}skew(e=0,t=0,n=0){return this.multiply(new en([1,0,0,$e(e),0,1,0,$e(t),0,0,1,$e(n),0,0,0,1]))}rotate(e=0,t=0,n=0){n&&(this.is3dSpecial=!0);const i=$e(e),r=$e(t),o=$e(n),a=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r),h=Math.cos(o),f=Math.sin(o),d=a*h,m=a*f,v=l*h,b=l*f;return this.m11=c*h,this.m21=-c*f,this.m31=u,this.m12=m+v*u,this.m22=d-b*u,this.m32=-l*c,this.m13=b-d*u,this.m23=v+m*u,this.m33=a*c,this}perspective(e){return this.multiply(new en([1,0,0,0,0,1,0,0,0,0,1,e?-(1/e):0,0,0,0,1]))}unproject(e){let t=e.x*this.m11+e.y*this.m21+this.m41,n=e.x*this.m12+e.y*this.m22+this.m42,i=e.x*this.m13+e.y*this.m23+this.m43,r=e.x*this.m14+e.y*this.m24+this.m44,o=t+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),t/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:t,y:n,z:i,mass:r};const h=-i/u;return t+=h*(o-t),n+=h*(a-n),{x:t,y:n,z:i,mass:r}}project(e){let t=e.z,n=e.x*this.m11+e.y*this.m21+t*this.m31+this.m41,i=e.x*this.m12+e.y*this.m22+t*this.m32+this.m42,r=e.x*this.m14+e.y*this.m24+t*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:t,mass:r}}bounds(e,t,n,i){const r=new Tr({x:e,y:t}),o=new Tr({x:e+n,y:t}),a=new Tr({x:e+n,y:t+i}),l=new Tr({x:e,y:t+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return new _i({x:c,y:u,width:h,height:f})}}function Wu(s){const e=new Yt;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(t,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(n.toLowerCase()){case"t":case"translate":e.translate(r[0],r[1]);break;case"translatex":e.translateX(r[0]);break;case"translatey":e.translateY(r[0]);break;case"translatez":e.translateZ(r[0]);break;case"translate3d":e.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":e.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":e.rotateX(r[0]);break;case"rotatey":e.rotateY(r[0]);break;case"rotatez":e.rotateZ(r[0]);break;case"rotate3d":e.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":e.scale(r[0],r[1]??r[0]);break;case"scalex":e.scaleX(r[0]);break;case"scaley":e.scaleY(r[0]);break;case"scalez":e.scaleZ(r[0]);break;case"scale3d":e.scale3d(r[0],r[1],r[2]);break;case"skew":e.skew(r[0],r[1]??0);break;case"skewx":e.skewX(r[0]);break;case"skewy":e.skewY(r[0]);break;case"skewz":e.skewZ(r[0]);break;case"skew3d":e.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":e.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),e.toMatrix3D();break;case"matrix3d":e.matrix3d.multiply(new en(r)),e.matrix3d.toMatrix(e);break}return""}),e}function vs(s,e,t,n=0,i=0){const r=new Yt;return r.rotate(jt(s),n,i),r.applyToPoint(e,t,n,i)}function Cg(s){const{tx:e,ty:t,scaleX:n,scaleY:i,degree:r}=qo(s||{},{tx:0,ty:0,scaleX:1,scaleY:1,degree:0}),o=new DOMMatrix([Math.cos($e(r))*n,Math.sin($e(r))*n,-Math.sin($e(r))*i,Math.cos($e(r))*i,e,t]);return o.multiplySelf(new DOMMatrix(s?.originMatrix)),o}class K{static onDocumentReady(e){let t=!1;function n(){document.readyState==="loading"||t||(t=!0,e(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static onBeforeUnload(e){function t(){e(),document.removeEventListener("beforeunload",t)}typeof document<"u"&&document.addEventListener("beforeunload",t)}static getCSSVar(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}static setCSSVar(e,t){document.documentElement.style.setProperty(e,t)}static add3DSupport(e,t="1000px"){if(e.parentElement){const n=K.getStyle(e.parentElement,"position");K.setStyle(e.parentElement,{position:n=="static"?"relative":n,perspective:t})}K.setStyle(e,{"transform-style":"preserve-3d"})}static convertAttrs(e,t,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:K.getStyle(e,"transform")||""});const i=Wu(n.transform),r={};for(let o in t){const a=t[o];switch(o){case"transform":break;case"translate":i.translate(a[0]||0,a[1]||0);break;case"translateTo":i.translateTo(a[0]||0,a[1]||0);break;case"translateX":i.translateX(a||0);break;case"translateXTo":i.translateXTo(a||0);break;case"translateY":i.translateY(a||0);break;case"translateYTo":i.translateYTo(a||0);break;case"translateZ":i.translateZ(a||0);break;case"translateZTo":i.translateZTo(a||0);break;case"translate3d":i.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":i.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?i.rotate(a||0):i.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?i.rotateTo(a||0):i.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":i.rotateX(a||0);break;case"rotateXTo":i.rotateXTo(a||0);break;case"rotateY":i.rotateY(a||0);break;case"rotateYTo":i.rotateYTo(a||0);break;case"rotateZ":i.rotateZ(a||0);break;case"rotateZTo":i.rotateZTo(a||0);break;case"rotate3d":i.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":i.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?i.scale(a||1):i.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?i.scaleTo(a||1):i.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":i.scaleX(a||1);break;case"scaleXTo":i.scaleXTo(a||1);break;case"scaleY":i.scaleY(a||1);break;case"scaleYTo":i.scaleYTo(a||1);break;case"scaleZ":i.scaleZ(a||1);break;case"scaleZTo":i.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?i.scale3d(a||1):i.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?i.scale3dTo(a||1):i.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?i.skew(a||0):i.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?i.skewTo(a||0):i.skewTo(a[0]||0,a[1]||0);break;case"skewX":i.skewX(a||0);break;case"skewXTo":i.skewXTo(a||0);break;case"skewY":i.skewY(a||0);break;case"skewYTo":i.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":i.perspective(a||0);break;default:n.hasOwnProperty(o)||(n[o]=K.getStyle(e,o)),Object.assign(r,{[o]:`${a}`});break}}return Object.assign(r,{transform:i.toString()}),r}static attrsToCanvas(e,t){for(const n in t){const i=t[n];switch(Xt(n)){case"fill":i!=="none"&&(e.fillStyle=i);break;case"stroke":i!=="none"&&(e.strokeStyle=i);break;case"stroke-width":e.lineWidth=Number(i);break;case"stroke-linecap":e.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":e.lineJoin=i;break;default:e.lineJoin="miter";break}break;case"stroke-miterlimit":e.miterLimit=Number(i);break;case"stroke-opacity":break;case"stroke-dashoffset":e.lineDashOffset=Number(i);break;case"stroke-dasharray":typeof i=="string"&&e.setLineDash(i.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof i=="string"&&(e.font=i);break;case"font-size":e.font+=` ${i}`;break;case"font-family":e.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":e.textAlign="center";break;case"end":e.textAlign="end";break;case"start":e.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":e.textBaseline=i;break;default:e.textBaseline="alphabetic";break}break}}}static getStyle(e,t,n){const i=e;if(getComputedStyle)if(t){t=Xt(t);const r=getComputedStyle(i,n).getPropertyPriority(t);return getComputedStyle(i,n).getPropertyValue(t).trim()+(r?"!"+r:"")}else{const r=[],o=getComputedStyle(i,"");for(let a=0;a<o.length;a++)r.push(o[a]+":"+o.getPropertyValue(o[a]));return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(e.currentStyle){if(t)return t=eu(t),e.currentStyle[t];{const r=[],o=i.currentStyle;for(let a in o)r.push(a+":"+o[a]);return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(e,t,n){if(typeof t=="string"&&n){const i=String(n).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Xt(t),n.replace(/!important/i,""),i)}else t instanceof Object&&Object.keys(t).forEach(i=>{const r=String(t[i]).toLowerCase().includes("!important")?"important":"";e.style.setProperty(Xt(i),String(t[i]).replace(/!important/i,""),r)})}static setStyleSheet(e,t){let n;if(typeof t=="string"){const r=document.querySelector(t)?.shadowRoot;r?n=r:n=document.querySelector(t)}else n=t;const i=document.createElement("style");if(i.innerHTML=e,n)return n.appendChild(i),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(i)};{const r=document.styleSheets[0].insertRule(e);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(e,t,n="toggle"){t.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&e.classList[n](i.trim())})}static addClass(e,t){this.toggleClass(e,t,"add")}static removeClass(e,t){this.toggleClass(e,t,"remove")}static hasClass(e,t){return t.split(/[,\s]+/).every(n=>n.trim()!==""?Array.from(e.classList||[]).includes(n.trim()):!0)}static toggleDisplay(e,t){this.getStyle(e,"display")=="none"&&t===void 0||t===!0?e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block"):e.style.setProperty("display","none")}static show(e){e.style.setProperty("display",e instanceof HTMLTableRowElement?"table-row":e instanceof HTMLTableCellElement?"table-cell":"block")}static hide(e){e.style.setProperty("display","none")}static origins=new Wo;static updates=new Wo;static attribute(e,t,n){let i={};if(t===void 0&&n===void 0){for(let r=0,o=e.attributes,a=o.length;r<a;r++){const l=o[r];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof t=="string"&&n===void 0)return e.getAttribute(Xt(t));typeof t=="object"?i=t:typeof t=="string"&&n!==void 0&&(i[t]=n),Object.entries(i).forEach(([r,o])=>{e.setAttribute(Xt(r),o)})}static removeAttribute(e,t){t.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&e.removeAttribute(n.trim())})}static fixProp(e){const t={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return t[e]?t[e]:e}static prop(e,t,n){if(n===void 0&&typeof t=="string")return e[t];{let i={};typeof t=="object"?i=t:typeof t=="string"&&n!==void 0&&(i[t]=n),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);e[a]=o,a=="innerHTML"&&this.scriptConvert(e)})}}static removeProp(e,t){t.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete e[this.fixProp(n.trim())]})}static data(e,t,n){if(typeof t=="string"&&(t=eu(t)),(typeof t=="string"||t===void 0)&&n===void 0){const i=Object.assign({},e.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]||"")}catch{}}),typeof t=="string"?i[t]:i}else{let i={};typeof t=="object"?i=t:typeof t=="string"&&(i[t]=n),Object.entries(i).forEach(([r,o])=>{o!=null?e.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete e.dataset[r]})}}static removeData(e,t){t.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete e.dataset[n.trim()]})}static empty(e){this.html(e,"")}static html(e,t){t instanceof HTMLElement||t instanceof SVGElement?this.insert(e,t,"replaceWith"):this.prop(e,"innerHTML",t)}static text(e,t){return this.prop(e,"textContent",t)}static value(e,t){return this.prop(e,"value",t)}static dispatchEvent(e,t,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof t=="string"?r.includes(t)?i=new MouseEvent(t,n):o.includes(t)?i=new KeyboardEvent(t,n):i=new Event(t,n):i=t,e.dispatchEvent(i)}static scriptConvert(e){const t=n=>{const r=n.ownerDocument.createElement("script");r.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return e.tagName=="SCRIPT"&&(e=t(e)),e.querySelectorAll&&e.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(t(n),n)}),e}static insert(e,t,n="append"){return typeof t=="string"?e[n](this.fragment(t)):(t instanceof HTMLElement||t instanceof SVGElement)&&e[n](t),this}static createElement(e){return document.createElement.call(document,e)}static createTextNode(e){return document.createTextNode.call(document,e)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(e){const t=document.createElement("template");return t.innerHTML=e,t.content.childNodes.forEach(n=>{const i=this.scriptConvert(n);i!=n&&t.content.replaceChild(i,n)}),t.content}static remove(e){return e.remove()}static siblings=e=>Array.prototype.slice.call(e.parentElement?.children).filter(t=>t!==e);static nextElementSibling(e){return e.nextElementSibling}static previousElementSibling(e){return e.previousElementSibling}static closest(e,t){return e.closest(t)}static shadowRoot(e){return e.shadowRoot}static parentElement=e=>e.parentElement;static changeSelectSelected(e,t){if(e instanceof HTMLSelectElement){const n=e.options;for(let i=0,r=n.length;i<r;i++)n[i].value==t?n[i].selected=!0:n[i].selected=!1}}static changeRadioChecked(e,t){e instanceof HTMLInputElement&&(e.value==t?e.checked=!0:e.checked=!1)}static entity2text(e){const t={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let n;return e.charAt(0)=="#"?e.charAt(1).toLowerCase()=="x"?n=parseInt(e.substring(2),16):n=parseInt(e.substring(1),10):n=t[e],n?String.fromCharCode(n):"&"+e}static waitForStyleSheetsLoaded=()=>new Promise(e=>{const t=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length||0;const i=()=>n>=t.length?(e(),!0):!1;i()||t.forEach(r=>{r.onload=()=>{n+=1,i()}})});static loadScript(e,t=()=>{},n=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=e,i.async=!1,i.onload=t,i.onerror=n,document.body.appendChild(i)}static runInSafe(e){const t=new Proxy(window,{get(n,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?t:Reflect.get(n,i,r)},set(n,i,r,o){return Reflect.set(n,i,r,o)}});new Function("window",`with(window) { ${e} }`)(t,null)}static dom=new Proxy({},{get(e,t){return function(n={},...i){const r=document.createElement(t);for(const o of Object.keys(n))r.setAttribute(o,n[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});static compileTemplate(e){return e=e.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),e="echo(`"+e+"`);",`(function parse(data){
39
+ `.replace(/\s+/g,""),"u");break;case"mime-image":t=/^image\//;break;case"mime-video":t=/^video\//;break;case"mime-audio":t=/^audio\//;break;case"mime-document-word":t=/^application\/(?:vnd\.openxmlformats-officedocument\.wordprocessingml\.document|msword|vnd\.ms-word\.document\.macroenabled\.12|vnd\.openxmlformats-officedocument\.wordprocessingml\.template|vnd\.ms-word\.template\.macroenabled\.12)$/;break;case"mime-document-excel":t=/^application\/(?:vnd\.openxmlformats-officedocument\.spreadsheetml\.sheet|vnd\.ms-excel|vnd\.ms-excel\.sheet\.macroenabled\.12|vnd\.openxmlformats-officedocument\.spreadsheetml\.template|vnd\.ms-excel\.template\.macroenabled\.12)$/;break;case"mime-document-ppt":t=/^application\/(?:vnd\.ms-powerpoint|vnd\.openxmlformats-officedocument\.presentationml\.presentation|vnd\.ms-powerpoint\.presentation\.macroenabled\.12|vnd\.openxmlformats-officedocument\.presentationml\.template|vnd\.ms-powerpoint\.template\.macroenabled\.12)$/;break;case"mime-document-json":t=/^application\/json$/;break;case"mime-document-xml":t=/^(?:application|text)\/(?:xml|xhtml\+xml)$/;break}return t},zs=(s,t)=>(typeof s=="string"&&(s=Qo(s)||new RegExp(s)),s.test(t)),su=(s,t)=>{if(typeof s=="string"&&(s=Qo(s)||new RegExp(s)),!t)return null;const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(n=>({matchIndex:-1,fullMatch:n,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},nu=(s,t)=>{typeof s=="string"&&(s=Qo(s)||new RegExp(s));const e=[],n=t.matchAll(s);for(const i of n)e.push({matchIndex:typeof i.index=="number"?i.index:-1,fullMatch:i[0],groupMatchs:i.slice(1)});return e};function iu(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function ru(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function dm(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let n="";for(let i=0;i<s;i++)n+=t[Math.floor(Math.random()*e)];return n}function fm(s){const t=Ln.get(s);if(t)return t;const e=s.replace(/(^\w)/g,function(n){return n.toLowerCase()});return Ln.set(s,e),e}const qe=(s,t="-")=>{const e=Ln.get(s);if(e)return e;let n=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return n=n.replace(new RegExp(`^${t}`),""),Ln.set(s,n),n};function Jo(s){const t=Ln.get(s);if(t)return t;const e=s.replace(/(^\w|[_-]\w)/g,function(n){return n.slice(-1).toUpperCase()});return Ln.set(s,e),e}function ou(s){return fm(Jo(s))}const au=(s,t="")=>(s=s.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,t),s);function pm(s,t,e="0",n="left"){const i=iu(s);if(t>i){const r=t-i;switch(n){case"left":s=Array(r+1).join(e)+s;break;case"right":s=s+Array(r+1).join(e);break;default:const o=Math.ceil(r/2),a=r-o;s=Array(a+1).join(e)+s+Array(o+1).join(e);break}}return s}function mm(s){const t=typeof s;return t!=="object"?t:Object.prototype.toString.call(s).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function gm(s){return s!=null}function _r(s){return mm(s)==="object"}function ym(s,t){for(const e of Reflect.ownKeys(t))if(e!=="constructor"&&e!=="prototype"&&e!=="name"&&e!=="displayName"){const n=Object.getOwnPropertyDescriptor(t,e);n&&Object.defineProperty(s,e,n)}}function lu(s,t=new WeakMap){if(s==null)return s;if(s.constructor===Date)return new Date(s);if(s.constructor===RegExp)return new RegExp(s);if(typeof s!="object")return s;if(t.has(s))return t.get(s);const e=Object.create(Object.getPrototypeOf(s),Object.getOwnPropertyDescriptors(s));for(const n of Reflect.ownKeys(s))e[n]=_r(s[n])?lu(s[n],t):s[n];return t.set(s,e),e}function ta(s,t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(_r(t[e])?(typeof s[e]>"u"&&(s[e]={}),ta(s[e],t[e])):typeof s[e]>"u"&&(s[e]=t[e]));return s}function cu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function wn(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function mi(s,t){const e=s.length,n=t.length;for(let r=0;r<n;r++)s[r]=t[r];let i=Math.max(0,e-n);for(;i>0;)s.pop(),i--}function vm(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function gi(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const Ke=(s,t,e)=>s<t?t:s>e?e:s,bm=(s,t,e)=>n=>{const i=Math.min(Math.max(s,n),t);return t-i<e?t:Math.round(i/e)*e};function _m(s,t=12){return vm(s).toFixed(t)}function Ve(s,t=12){return+_m(s,t)}function en(s,t){const e=su("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):gm(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?s.substring(e.matchIndex+e.fullMatch.length):""}}function ea(s){const t=su("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function xm(s=0,t=100){return Math.random()*(t-s)+s}function ye(s=0,t=100){return Math.floor(xm(s,t))}function wm(s){const t=[0,0,0,0,0,0],e=ea(s);for(let n=0,i=Math.min(e.length,3);n<i;n++){const r=Math.floor(Math.abs(e[n]));t[2*n+1]=r%10,t[2*n]=Math.floor(r/10)}return sa(t)}function sa(s){let t=0;for(let r=5;r>=0;r=r-2)r==5?t+=s[r-1]*10+s[r]:r==3?t+=(s[r-1]*10+s[r])*60:r==1&&(t+=(s[r-1]*10+s[r])*60*60);t=Math.floor(Math.max(0,t));const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const n=t%60;s[3]=n%10,s[2]=Math.floor(n/10),t=Math.floor(t/60);const i=t%60%24;return s[1]=i%10,s[0]=Math.floor(i/10),s}function km(s){return s[5]++,sa(s)}function Cm(s){return s[5]--,sa(s)}function uu(s,t){let e=!0;return function(...n){e&&(e=!1,s.apply(this,n),setTimeout(()=>{e=!0},t))}}function Sm(s,t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{s.apply(this,n)},t)}}class hu{queue=[];results=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get readableStream(){return this.rs}addTask(t){Array.isArray(t)?this.queue.push(...t):this.queue.push(t),this.activeTaskCount<this.concurrency&&this.queue.length>0&&this.runTasks()}async runTasks(){for(;this.activeTaskCount<this.concurrency&&this.queue.length>0;){const t=this.queue.splice(0,this.concurrency-this.activeTaskCount);this.activeTaskCount+=t.length;const e=await Promise.allSettled(t.map(n=>n()));this.results.push(...e),e.forEach(n=>{n.status=="fulfilled"?this.controller?.enqueue(n.value):n.status=="rejected"&&this.controller?.enqueue(new Error(n.reason))}),this.activeTaskCount-=e.length}}}class xr{events;constructor(){this.events={}}on(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].push(e),this}addListener(t,e){return this.on(t,e),this}prependListener(t,e){return this.events[t]||(this.events[t]=[]),this.events[t].unshift(e),this}removeListener(t,e){if(this.events[t])return this.events[t]=this.events[t].filter(n=>n!==e),this}off(t,e){return this.removeListener(t,e),this}removeAllListeners(t){return t?this.events[t]=[]:this.events={},this}emit(t,...e){return this.events[t]&&this.events[t].forEach(n=>{Reflect.apply(n,this,e)}),this}once(t,e){const i=(()=>{let r=!1;return(...o)=>{r||(r=!0,Reflect.apply(e,this,o),this.off(t,i))}})();return this.on(t,i),this}}var du=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Em(s,t={}){var e=1,n=1;function i(it){var q=it.match(/\n/g);q&&(e+=q.length);var Et=it.lastIndexOf(`
40
+ `);n=~Et?it.length-Et:n+it.length}function r(){var it={line:e,column:n};return function(q){return q.position=new o(it),m(),q}}function o(it){this.start=it,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(it){var q=new Error(t.source+":"+e+":"+n+": "+it);if(q.reason=it,q.filename=t.source,q.line=e,q.column=n,q.source=s,t.silent)a.push(q);else throw q}function c(){var it=f();return{type:"stylesheet",stylesheet:{source:t.source,rules:it,parsingErrors:a}}}function u(){return d(/^{\s*/)}function h(){return d(/^}/)}function f(){var it,q=[];for(m(),g(q);s.length&&s.charAt(0)!="}"&&(it=_t()||xt());)it!==!1&&(q.push(it),g(q));return q}function d(it){var q=it.exec(s);if(q){var Et=q[0];return i(Et),s=s.slice(Et.length),q}}function m(){d(/^\s*/)}function g(it){var q;for(it=it||[];q=v();)q!==!1&&it.push(q);return it}function v(){var it=r();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var q=2;s.charAt(q)!=""&&(s.charAt(q)!="*"||s.charAt(q+1)!="/");)++q;if(q+=2,s.charAt(q-1)==="")return l("End of comment missing");var Et=s.slice(2,q-2);return n+=2,i(Et),s=s.slice(q),n+=2,it({type:"comment",comment:Et})}}function k(){var it=d(/^([^{]+)/);if(it)return Ls(it[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(q){return q.replace(/,/g,"‌")}).split(/\s*(?![^(]*\)),\s*/).map(function(q){return q.replace(/\u200C/g,",")})}function I(){var it=r(),q=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(q){if(q=Ls(q[0]),!d(/^:\s*/))return l("property missing ':'");var Et=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),A=it({type:"declaration",property:q.replace(du,""),value:Et?Ls(Et[0]).replace(du,""):""});return d(/^[;\s]*/),A}}function M(){var it=[];if(!u())return l("missing '{'");g(it);for(var q;q=I();)q!==!1&&(it.push(q),g(it));return h()?it:l("missing '}'")}function C(){for(var it,q=[],Et=r();it=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)q.push(it[1]),d(/^,\s*/);if(q.length)return Et({type:"keyframe",values:q,declarations:M()})}function j(){var it=r(),q=d(/^@([-\w]+)?keyframes\s*/);if(q){var Et=q[1];if(q=d(/^([-\w]+)\s*/),!q)return l("@keyframes missing name");var A=q[1];if(!u())return l("@keyframes missing '{'");for(var jt,le=g();jt=C();)le.push(jt),le=le.concat(g());return h()?it({type:"keyframes",name:A,vendor:Et,keyframes:le}):l("@keyframes missing '}'")}}function L(){var it=r(),q=d(/^@supports *([^{]+)/);if(q){var Et=Ls(q[1]);if(!u())return l("@supports missing '{'");var A=g().concat(f());return h()?it({type:"supports",supports:Et,rules:A}):l("@supports missing '}'")}}function X(){var it=r(),q=d(/^@host\s*/);if(q){if(!u())return l("@host missing '{'");var Et=g().concat(f());return h()?it({type:"host",rules:Et}):l("@host missing '}'")}}function mt(){var it=r(),q=d(/^@media *([^{]+)/);if(q){var Et=Ls(q[1]);if(!u())return l("@media missing '{'");var A=g().concat(f());return h()?it({type:"media",media:Et,rules:A}):l("@media missing '}'")}}function bt(){var it=r(),q=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return it({type:"custom-media",name:Ls(q[1]),media:Ls(q[2])})}function yt(){var it=r(),q=d(/^@page */);if(q){var Et=k()||[];if(!u())return l("@page missing '{'");for(var A=g(),jt;jt=I();)A.push(jt),A=A.concat(g());return h()?it({type:"page",selectors:Et,declarations:A}):l("@page missing '}'")}}function At(){var it=r(),q=d(/^@([-\w]+)?document *([^{]+)/);if(q){var Et=Ls(q[1]),A=Ls(q[2]);if(!u())return l("@document missing '{'");var jt=g().concat(f());return h()?it({type:"document",document:A,vendor:Et,rules:jt}):l("@document missing '}'")}}function zt(){var it=r(),q=d(/^@font-face\s*/);if(q){if(!u())return l("@font-face missing '{'");for(var Et=g(),A;A=I();)Et.push(A),Et=Et.concat(g());return h()?it({type:"font-face",declarations:Et}):l("@font-face missing '}'")}}var Kt=Yt("import"),Qt=Yt("charset"),ne=Yt("namespace");function Yt(it){var q=new RegExp("^@"+it+"\\s*([^;]+);");return function(){var Et=r(),A=d(q);if(A){var jt={type:it};return jt[it]=A[1].trim(),Et(jt)}}}function _t(){if(s[0]=="@")return j()||mt()||bt()||L()||Kt()||Qt()||ne()||At()||yt()||X()||zt()}function xt(){var it=r(),q=k();return q?(g(),it({type:"rule",selectors:q,declarations:M()})):l("selector missing")}return na(c())}function Ls(s){return s?s.replace(/^\s+|\s+$/g,""):""}function na(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var i in s){var r=s[i];Array.isArray(r)?r.forEach(function(o){na(o,n)}):r&&typeof r=="object"&&na(r,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const yi=/^[a-z0-9]+(-[a-z0-9]+)*$/,wr=(s,t,e,n="")=>{const i=s.split(":");if(s.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:n,prefix:l,name:a};return t&&!kr(c)?null:c}const r=i[0],o=r.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!kr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:r};return t&&!kr(a,e)?null:a}return null},kr=(s,t)=>s?!!((s.provider===""||s.provider.match(yi))&&(t&&s.prefix===""||s.prefix.match(yi))&&s.name.match(yi)):!1,fu=Object.freeze({left:0,top:0,width:16,height:16}),Cr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Sr=Object.freeze({...fu,...Cr}),ia=Object.freeze({...Sr,body:"",hidden:!1});function Tm(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const n=((s.rotate||0)+(t.rotate||0))%4;return n&&(e.rotate=n),e}function pu(s,t){const e=Tm(s,t);for(const n in ia)n in Cr?n in s&&!(n in e)&&(e[n]=Cr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function Om(s,t){const e=s.icons,n=s.aliases||Object.create(null),i=Object.create(null);function r(o){if(e[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=n[o]&&n[o].parent,l=a&&r(a);l&&(i[o]=[a].concat(l))}return i[o]}return(t||Object.keys(e).concat(Object.keys(n))).forEach(r),i}function Im(s,t,e){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=pu(n[a]||i[a],r)}return o(t),e.forEach(o),pu(s,r)}function mu(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(i=>{t(i,null),e.push(i)});const n=Om(s);for(const i in n){const r=n[i];r&&(t(i,Im(s,i,r)),e.push(i))}return e}const Pm={provider:"",aliases:{},not_found:{},...fu};function ra(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function gu(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!ra(s,Pm))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i.match(yi)||typeof r.body!="string"||!ra(r,ia))return null}const n=t.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(yi)||typeof o!="string"||!e[o]&&!n[o]||!ra(r,ia))return null}return t}const yu=Object.create(null);function Dm(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function kn(s,t){const e=yu[s]||(yu[s]=Object.create(null));return e[t]||(e[t]=Dm(s,t))}function oa(s,t){return gu(t)?mu(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function $m(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let vi=!1;function vu(s){return typeof s=="boolean"&&(vi=s),vi}function Nm(s){const t=typeof s=="string"?wr(s,!0,vi):s;if(t){const e=kn(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Mm(s,t){const e=wr(s,!0,vi);if(!e)return!1;const n=kn(e.provider,e.prefix);return $m(n,e.name,t)}function Rm(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),vi&&!t&&!s.prefix){let i=!1;return gu(s)&&(s.prefix="",mu(s,(r,o)=>{o&&Mm(r,o)&&(i=!0)})),i}const e=s.prefix;if(!kr({provider:t,prefix:e,name:"a"}))return!1;const n=kn(t,e);return!!oa(n,s)}const bu=Object.freeze({width:null,height:null}),_u=Object.freeze({...bu,...Cr}),Am=/(-?[0-9.]*[0-9]+[0-9.]*)/g,zm=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xu(s,t,e){if(t===1)return s;if(e=e||100,typeof s=="number")return Math.ceil(s*t*e)/e;if(typeof s!="string")return s;const n=s.split(Am);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=zm.test(r);for(;;){if(o){const a=parseFloat(r);isNaN(a)?i.push(r):i.push(Math.ceil(a*t*e)/e)}else i.push(r);if(r=n.shift(),r===void 0)return i.join("");o=!o}}function Lm(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const i=s.indexOf(">",n),r=s.indexOf("</"+t);if(i===-1||r===-1)break;const o=s.indexOf(">",r);if(o===-1)break;e+=s.slice(i+1,r).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function Vm(s,t){return s?"<defs>"+s+"</defs>"+t:t}function Fm(s,t,e){const n=Lm(s);return Vm(n.defs,t+n.content+e)}const Gm=s=>s==="unset"||s==="undefined"||s==="none";function Bm(s,t){const e={...Sr,...s},n={..._u,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,n].forEach(g=>{const v=[],k=g.hFlip,I=g.vFlip;let M=g.rotate;k?I?M+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):I&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let C;switch(M<0&&(M-=Math.floor(M/4)*4),M=M%4,M){case 1:C=i.height/2+i.top,v.unshift("rotate(90 "+C.toString()+" "+C.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:C=i.width/2+i.left,v.unshift("rotate(-90 "+C.toString()+" "+C.toString()+")");break}M%2===1&&(i.left!==i.top&&(C=i.left,i.left=i.top,i.top=C),i.width!==i.height&&(C=i.width,i.width=i.height,i.height=C)),v.length&&(r=Fm(r,'<g transform="'+v.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=i.width,c=i.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=xu(h,l/c)):(u=o==="auto"?l:o,h=a===null?xu(u,c/l):a==="auto"?c:a);const f={},d=(g,v)=>{Gm(v)||(f[g]=v.toString())};d("width",u),d("height",h);const m=[i.left,i.top,l,c];return f.viewBox=m.join(" "),{attributes:f,viewBox:m,body:r}}const Ym=/\sid="(\S+)"/g,jm="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xm=0;function Um(s,t=jm){const e=[];let n;for(;n=Ym.exec(s);)e.push(n[1]);if(!e.length)return s;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(r=>{const o=typeof t=="function"?t(r):t+(Xm++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),s=s.replace(new RegExp(i,"g"),""),s}const aa=Object.create(null);function Hm(s,t){aa[s]=t}function la(s){return aa[s]||aa[""]}function ca(s){let t;if(typeof s.resources=="string")t=[s.resources];else if(t=s.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:s.path||"/",maxURL:s.maxURL||500,rotate:s.rotate||750,timeout:s.timeout||5e3,random:s.random===!0,index:s.index||0,dataAfterTimeout:s.dataAfterTimeout!==!1}}const ua=Object.create(null),bi=["https://api.simplesvg.com","https://api.unisvg.com"],Er=[];for(;bi.length>0;)bi.length===1||Math.random()>.5?Er.push(bi.shift()):Er.push(bi.pop());ua[""]=ca({resources:["https://api.iconify.design"].concat(Er)});function Wm(s,t){const e=ca(t);return e===null?!1:(ua[s]=e,!0)}function ha(s){return ua[s]}let wu=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Zm(s,t){const e=ha(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let i=0;e.resources.forEach(o=>{i=Math.max(i,o.length)});const r=t+".json?icons=";n=e.maxURL-i-e.path.length-r.length}return n}function qm(s){return s===404}const Km=(s,t,e)=>{const n=[],i=Zm(s,t),r="icons";let o={type:r,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=i&&c>0&&(n.push(o),o={type:r,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function Qm(s){if(typeof s=="string"){const t=ha(s);if(t)return t.path}return"/"}const Jm={prepare:Km,send:(s,t,e)=>{if(!wu){e("abort",424);return}let n=Qm(t.provider);switch(t.type){case"icons":{const r=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=r+".json?"+l.toString();break}case"custom":{const r=t.uri;n+=r.slice(0,1)==="/"?r.slice(1):r;break}default:e("abort",400);return}let i=503;wu(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(qm(o)?"abort":"next",o)});return}return i=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?e("abort",r):e("next",i)});return}setTimeout(()=>{e("success",r)})}).catch(()=>{e("next",i)})}};function t0(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.sort((i,r)=>i.provider!==r.provider?i.provider.localeCompare(r.provider):i.prefix!==r.prefix?i.prefix.localeCompare(r.prefix):i.name.localeCompare(r.name));let n={provider:"",prefix:"",name:""};return s.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const r=i.provider,o=i.prefix,a=i.name,l=e[r]||(e[r]=Object.create(null)),c=l[o]||(l[o]=kn(r,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:r,prefix:o,name:a};u.push(h)}),t}function ku(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(i=>i.id!==t))})}function e0(s){s.pendingCallbacksFlag||(s.pendingCallbacksFlag=!0,setTimeout(()=>{s.pendingCallbacksFlag=!1;const t=s.loaderCallbacks?s.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const n=s.provider,i=s.prefix;t.forEach(r=>{const o=r.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==i)return!0;const c=l.name;if(s.icons[c])o.loaded.push({provider:n,prefix:i,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:i,name:c});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||ku([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let s0=0;function n0(s,t,e){const n=s0++,i=ku.bind(null,e,n);if(!t.pending.length)return i;const r={id:n,icons:t,callback:s,abort:i};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(r)}),i}function i0(s,t=!0,e=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?wr(i,t,e):i;r&&n.push(r)}),n}var r0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function o0(s,t,e,n){const i=s.resources.length,r=s.random?Math.floor(Math.random()*i):s.index;let o;if(s.random){let L=s.resources.slice(0);for(o=[];L.length>1;){const X=Math.floor(Math.random()*L.length);o.push(L[X]),L=L.slice(0,X).concat(L.slice(X+1))}o=o.concat(L)}else o=s.resources.slice(r).concat(s.resources.slice(0,r));const a=Date.now();let l="pending",c=0,u,h=null,f=[],d=[];typeof n=="function"&&d.push(n);function m(){h&&(clearTimeout(h),h=null)}function g(){l==="pending"&&(l="aborted"),m(),f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function v(L,X){X&&(d=[]),typeof L=="function"&&d.push(L)}function k(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:v,abort:g}}function I(){l="failed",d.forEach(L=>{L(void 0,u)})}function M(){f.forEach(L=>{L.status==="pending"&&(L.status="aborted")}),f=[]}function C(L,X,mt){const bt=X!=="success";switch(f=f.filter(yt=>yt!==L),l){case"pending":break;case"failed":if(bt||!s.dataAfterTimeout)return;break;default:return}if(X==="abort"){u=mt,I();return}if(bt){u=mt,f.length||(o.length?j():I());return}if(m(),M(),!s.random){const yt=s.resources.indexOf(L.resource);yt!==-1&&yt!==s.index&&(s.index=yt)}l="completed",d.forEach(yt=>{yt(mt)})}function j(){if(l!=="pending")return;m();const L=o.shift();if(L===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(M(),I())},s.timeout);return}I();return}const X={status:"pending",resource:L,callback:(mt,bt)=>{C(X,mt,bt)}};f.push(X),c++,h=setTimeout(j,s.rotate),e(L,t,X.callback)}return setTimeout(j),k}function Cu(s){const t={...r0,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function i(a,l,c){const u=o0(t,a,l,(h,f)=>{n(),c&&c(h,f)});return e.push(u),u}function r(a){return e.find(l=>a(l))||null}return{query:i,find:r,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Su(){}const da=Object.create(null);function a0(s){if(!da[s]){const t=ha(s);if(!t)return;const e=Cu(t),n={config:t,redundancy:e};da[s]=n}return da[s]}function l0(s,t,e){let n,i;if(typeof s=="string"){const r=la(s);if(!r)return e(void 0,424),Su;i=r.send;const o=a0(s);o&&(n=o.redundancy)}else{const r=ca(s);if(r){n=Cu(r);const o=s.resources?s.resources[0]:"",a=la(o);a&&(i=a.send)}}return!n||!i?(e(void 0,424),Su):n.query(t,i,e)().abort}const Eu="iconify2",_i="iconify",Tu=_i+"-count",Ou=_i+"-version",Iu=36e5,c0=168,u0=50;function fa(s,t){try{return s.getItem(t)}catch{}}function pa(s,t,e){try{return s.setItem(t,e),!0}catch{}}function Pu(s,t){try{s.removeItem(t)}catch{}}function ma(s,t){return pa(s,Tu,t.toString())}function ga(s){return parseInt(fa(s,Tu))||0}const Tr={local:!0,session:!0},Du={local:new Set,session:new Set};let ya=!1;function h0(s){ya=s}let Or=typeof window>"u"?{}:window;function $u(s){const t=s+"Storage";try{if(Or&&Or[t]&&typeof Or[t].length=="number")return Or[t]}catch{}Tr[s]=!1}function Nu(s,t){const e=$u(s);if(!e)return;const n=fa(e,Ou);if(n!==Eu){if(n){const a=ga(e);for(let l=0;l<a;l++)Pu(e,_i+l.toString())}pa(e,Ou,Eu),ma(e,0);return}const i=Math.floor(Date.now()/Iu)-c0,r=a=>{const l=_i+a.toString(),c=fa(e,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Pu(e,l)}};let o=ga(e);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,ma(e,o)):Du[s].add(a))}function Mu(){if(!ya){h0(!0);for(const s in Tr)Nu(s,t=>{const e=t.data,n=t.provider,i=e.prefix,r=kn(n,i);if(!oa(r,e).length)return!1;const o=e.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function d0(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in Tr)Nu(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===t});return!0}function f0(s,t){ya||Mu();function e(n){let i;if(!Tr[n]||!(i=$u(n)))return;const r=Du[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=ga(i),o>=u0||!ma(i,o+1))return;const a={cached:Math.floor(Date.now()/Iu),provider:s.provider,data:t};return pa(i,_i+o.toString(),JSON.stringify(a))}t.lastModified&&!d0(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function Ru(){}function p0(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,e0(s)}))}function m0(s,t){s.iconsToLoad?s.iconsToLoad=s.iconsToLoad.concat(t).sort():s.iconsToLoad=t,s.iconsQueueFlag||(s.iconsQueueFlag=!0,setTimeout(()=>{s.iconsQueueFlag=!1;const{provider:e,prefix:n}=s,i=s.iconsToLoad;delete s.iconsToLoad;let r;if(!i||!(r=la(e)))return;r.prepare(e,n,i).forEach(a=>{l0(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=oa(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),f0(s,l)}catch(c){console.error(c)}p0(s)})})}))}const g0=(s,t)=>{const e=i0(s,!0,vu()),n=t0(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,Ru)}),()=>{l=!1}}const i=Object.create(null),r=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,r.push(kn(c,u));const h=i[c]||(i[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,f=kn(c,u),d=f.pendingIcons||(f.pendingIcons=new Set);d.has(h)||(d.add(h),i[c][u].push(h))}),r.forEach(l=>{const{provider:c,prefix:u}=l;i[c][u].length&&m0(l,i[c][u])}),t?n0(t,n,r):Ru};function y0(s,t){const e={...s};for(const n in t){const i=t[n],r=typeof i;n in bu?(i===null||i&&(r==="string"||r==="number"))&&(e[n]=i):r===typeof e[n]&&(e[n]=n==="rotate"?i%4:i)}return e}const v0=/[\s,]+/;function b0(s,t){t.split(v0).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function _0(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(e===""){const i=parseInt(s);return isNaN(i)?0:n(i)}else if(e!==s){let i=0;switch(e){case"%":i=25;break;case"deg":i=90}if(i){let r=parseFloat(s.slice(0,s.length-e.length));return isNaN(r)?0:(r=r/i,r%1===0?n(r):0)}}return t}function x0(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)e+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function w0(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function k0(s){return"data:image/svg+xml,"+w0(s)}function C0(s){return'url("'+k0(s)+'")'}const Au={..._u,inline:!1},S0={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},E0={display:"inline-block"},va={backgroundColor:"currentColor"},zu={backgroundColor:"transparent"},Lu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Vu={webkitMask:va,mask:va,background:zu};for(const s in Vu){const t=Vu[s];for(const e in Lu)t[s+e]=Lu[e]}const Ir={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";Ir[s+"-flip"]=t,Ir[s.slice(0,1)+"-flip"]=t,Ir[s+"Flip"]=t});function Fu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Gu=(s,t)=>{const e=y0(Au,t),n={...S0},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let g in t){const v=t[g];if(v!==void 0)switch(g){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[g]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&b0(e,v);break;case"color":r.color=v;break;case"rotate":typeof v=="string"?e[g]=_0(v):typeof v=="number"&&(e[g]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const k=Ir[g];k?(v===!0||v==="true"||v===1)&&(e[k]=!0):Au[g]===void 0&&(n[g]=v)}}}const l=Bm(s,e),c=l.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let g=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=Um(l.body,v?()=>v+"ID"+g++:"iconifyVue"),ae("svg",n)}const{body:u,width:h,height:f}=s,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=x0(u,{...c,width:h+"",height:f+""});return n.style={...r,"--svg":C0(m),width:Fu(c.width),height:Fu(c.height),...E0,...d?va:zu,...a},ae("span",n)};if(vu(!0),Hm("",Jm),typeof document<"u"&&typeof window<"u"){Mu();const s=window;if(s.IconifyPreload!==void 0){const t=s.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Rm(n))&&console.error(e)}catch{console.error(e)}})}if(s.IconifyProviders!==void 0){const t=s.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const n="IconifyProviders["+e+"] is invalid.";try{const i=t[e];if(typeof i!="object"||!i||i.resources===void 0)continue;Wm(e,i)||console.error(n)}catch{console.error(n)}}}}const T0={...Sr,body:""},Bu=st({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(s,t){if(typeof s=="object"&&s!==null&&typeof s.body=="string")return this._name="",this.abortLoading(),{data:s};let e;if(typeof s!="string"||(e=wr(s,!1,!0))===null)return this.abortLoading(),null;const n=Nm(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:g0([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const i=["iconify"];return e.prefix!==""&&i.push("iconify--"+e.prefix),e.provider!==""&&i.push("iconify--"+e.provider),{data:n,classes:i}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return Gu(T0,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),Gu({...Sr,...t.data},e)}}),Yu=(s,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([s],{type:`${t};${e}`}):new Blob([s],{type:`${t};charset=${e}`}),ju=s=>new XMLSerializer().serializeToString(s),O0=(s,t="image/svg+xml",e="utf-8")=>Yu(ju(s),t,e),Xu=(s,t)=>new Promise(e=>{const n=document.createElement("a");n.style.visibility="hidden",document.body.appendChild(n),n.download=t,typeof s=="string"?n.href=s:n.href=window.URL.createObjectURL(s),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(n.href),e()});function I0(s=["*"],t){return new Promise((e,n)=>{if(!globalThis.document||!(globalThis.document instanceof Document))return n(new Error("This is not a browser environment"));const i=globalThis.document.createElement("input");i.setAttribute("type","file"),i.setAttribute("visibility","hidden"),Array.isArray(s)&&s.length>0&&i.setAttribute("accept",s.join(",")),t&&i.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!i.files||i.files?.length===0)&&n(new Error("Cancel select"))},1e3)},{once:!0});const r=()=>{if(i.removeEventListener("change",r),!i.files||i.files?.length===0)n(new Error("Cancel select"));else{const o=Array.from(i.files);!s.includes("*")&&o.some(a=>!s.includes(`.${D0(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),e(o)}};i.addEventListener("change",r),i.click()})}function P0(s,t="text",e){return new Promise((n,i)=>{const r=new FileReader;switch(r.addEventListener("progress",o=>{e?.(o.loaded,o.total)}),r.addEventListener("load",o=>{n(o.target?.result)}),r.addEventListener("error",o=>{i(o)}),t){case"dataURL":r.readAsDataURL(s);break;case"binaryString":r.readAsBinaryString(s);break;case"arrayBuffer":r.readAsArrayBuffer(s);break;case"text":default:r.readAsText(s)}})}const D0=s=>{let t;return s instanceof File?t=s.name:t=s,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function Pr(){const s=document.documentElement;return{clientX:s.getBoundingClientRect().x,clientY:s.getBoundingClientRect().y,clientWidth:s.clientWidth,clientHeight:s.clientHeight,clientTop:s.clientTop,clientLeft:s.clientLeft,scrollWidth:s.scrollWidth,scrollHeight:s.scrollHeight,scrollTop:s.scrollTop,scrollLeft:s.scrollLeft,offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight,offsetTop:s.offsetTop,offsetLeft:s.offsetLeft,offsetParent:s.offsetParent}}function ba(){const{clientWidth:s,clientHeight:t}=Pr();return{width:s||window.innerWidth,height:t||window.innerHeight}}function $0(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=Pr();return{x:e+r,y:t+o,width:n,height:i}}function N0(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=Pr(),n=e-s;return n<=0?0:t/n*100}function M0(s){if("center"in s)return s.center;if(s.pageX&&s.pageY)return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=Pr();return{x:s.clientX+t,y:s.clientY+e}}function R0(s,t){const e=M0(t),n=$0(s);return{x:e.x-n.x,y:e.y-n.y}}const A0=()=>{const s=navigator.userAgent.toLowerCase();let t="Unknown";return/mac/i.test(s)?t="macOS":/win/i.test(s)?t="Windows":/android/i.test(s)?t="Android":/iphone|ipad|ipod/i.test(s)?t="iOS":/linux/i.test(s)?t="Linux":/bsd/i.test(s)&&(t="BSD"),t.toLowerCase()};function z0(){return A0()==="macos"}function L0(){const s=window.navigator.userAgent,t=s.indexOf("MSIE ");if(t>0)return parseInt(s.substring(t+5,s.indexOf(".",t)),10);if(s.indexOf("Trident/")>0){const i=s.indexOf("rv:");return parseInt(s.substring(i+3,s.indexOf(".",i)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const _a=L0()!==-1;(()=>{const s=tu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!tu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const n=t.transferToImageBitmap();try{e.createPattern(n,"no-repeat")}catch{return!1}return!0}();function V0(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const i=function(){const r=Math.min(t.clientWidth,s);t.dataset.width=r,t.dataset.rem=n=Math.round(100*(r/s)),t.style.fontSize=n+"px"};i(),window.rem2px=function(r){return r=parseFloat(r),r*n},window.px2rem=function(r){return r=parseFloat(r),r/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",i,!1)}function Rt(s){return s*Math.PI/180}function Xe(s){return s*180/Math.PI}function xa(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function wa(s,t,e,n){const i=s-e,r=t-n;return xa(i,r)}function ka(s,t,e,n){const i=s-e,r=t-n;return i*i+r*r}function Vn(s,t,e,n){const i=e-s,r=n-t;let o=Math.atan2(r,i);return o<0&&(o+=Math.PI*2),o}function Vs(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const xi=Math.PI*2;function Uu(s,t,e,n){const i=s*n-t*e<0?-1:1;let r=s*e+t*n;return r>1&&(r=1),r<-1&&(r=-1),i*Math.acos(r)}function F0(s,t,e,n,i,r,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,f=o*o,d=a*a,m=u*u,g=h*h;let v=f*d-f*g-d*m;v<0&&(v=0),v/=f*g+d*m,v=Math.sqrt(v)*(i===r?-1:1);const k=v*o/a*h,I=v*-a/o*u,M=c*k-l*I+(s+e)/2,C=l*k+c*I+(t+n)/2,j=(u-k)/o,L=(h-I)/a,X=(-u-k)/o,mt=(-h-I)/a,bt=Uu(1,0,j,L);let yt=Uu(j,L,X,mt);return r===0&&yt>0&&(yt-=xi),r===1&&yt<0&&(yt+=xi),[M,C,bt,yt]}function G0(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),i=Math.sin(s),r=Math.cos(s+t),o=Math.sin(s+t);return[n,i,n-i*e,i+n*e,r+o*e,o-r*e,r,o]}function Hu(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*xi/360),u=Math.cos(l*xi/360),h=u*(s-e)/2+c*(t-n)/2,f=-c*(s-e)/2+u*(t-n)/2;if(h===0&&f===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const d=h*h/(o*o)+f*f/(a*a);d>1&&(o*=Math.sqrt(d),a*=Math.sqrt(d));const m=F0(s,t,e,n,i,r,o,a,c,u),g=[];let v=m[2],k=m[3];const I=Math.max(Math.ceil(Math.abs(k)/(xi/4)),1);k/=I;for(let M=0;M<I;M++)g.push(G0(v,k)),v+=k;return g.map(M=>{for(let C=0;C<M.length;C+=2){let j=M[C+0],L=M[C+1];j*=o,L*=a;const X=u*j-c*L,mt=c*j+u*L;M[C+0]=X+m[0],M[C+1]=mt+m[1]}return M})}function Ca(s,t,e,n,i,r){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,i/3+.6666666666666666*e,r/3+.6666666666666666*n,i,r]}function wi(s,t,e,n){return[s,t,e,n,e,n]}const Dr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class Cn{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&H.attribute(n,e),n}static createSvgPath(t){return this.createSVGElement("path",{d:t})}static downloadFromSVGElement(t,e="shape"){return Xu(O0(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Xu(Yu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return ju(t)}static isSVGPath(t){return typeof t!="string"?!1:(t=t.trim(),/^[mlhvzaqtcs]\s*[-+.0-9][^mlhvzaqtcs]+/i.test(t)&&/[\dz]$/i.test(t))}static SVGPathDataToD(t){return t.map(e=>{if(!e[0])return"";switch(e[0].toLowerCase()){case"a":return`${e[0]} ${e[1]},${e[2]} ${e[3]} ${e[4]},${e[5]} ${e[6]},${e[7]}`;case"c":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]} ${e[5]},${e[6]}`;case"s":case"q":return`${e[0]} ${e[1]},${e[2]} ${e[3]},${e[4]}`;default:return e[0]+" "+e.slice(1).join(",")}}).join(" ")}static parseSVGPath(t){const e=[];return t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(n,i,r)=>{let o=i.toLowerCase();const a=ea(r);for(o=="m"&&a.length>Dr[o]&&(e.push([i,...a.splice(0,Dr[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<Dr[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,Dr[o])])}return o=="z"&&e.push([i]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toUpperCase();if(a!=l)switch(o[0]=l,a){case"a":o[6]+=i,o[7]+=r;break;case"v":o[1]+=r;break;case"h":o[1]+=i;break;default:for(let c=1;c<o.length;)o[c++]+=i,o[c++]+=r}switch(l){case"Z":i=e,r=n;break;case"H":i=o[1];break;case"V":r=o[1];break;case"M":i=e=o[1],r=n=o[2];break;default:i=o[o.length-2],r=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,i=0,r=0;return t.map(function(o){const a=o[0],l=a.toLowerCase();if(a!=l)switch(o[0]=l,a){case"A":o[6]-=i,o[7]-=r;break;case"V":o[1]-=r;break;case"H":o[1]-=i;break;default:for(let c=1;c<o.length;)o[c++]-=i,o[c++]-=r}switch(l){case"z":i=e,r=n;break;case"h":i+=o[1];break;case"v":r+=o[1];break;case"m":i+=o[1],r+=o[2],e+=o[1],n+=o[2];break;default:i+=o[o.length-2],r+=o[o.length-1]}return o})}static normalizeSVGPath(t){let e=[],n=0,i=0,r=0,o=0,a=0,l=0,c=0,u=0,h;for(let f=0,d=t.length;f<d;f++){let m=t[f];const g=m[0];switch(g){case"M":n=m[1],i=m[2];break;case"A":const v=Hu(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!v.length)continue;v.forEach((M,C)=>{const[j,L,X,mt,bt,yt,At,zt]=M;m=["C",X,mt,bt,yt,At,zt],C<v.length-1&&e.push(m)});break;case"S":let k=r,I=o;(h=="C"||h=="S")&&(k+=k-c,I+=I-u),m=["C",k,I,m[1],m[2],m[3],m[4]];break;case"T":h=="Q"||h=="T"?(a=r*2-a,l=o*2-l):(a=r,l=o),m=["C",...Ca(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...Ca(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...wi(r,o,m[1],m[2])];break;case"H":m=["C",...wi(r,o,m[1],o)];break;case"V":m=["C",...wi(r,o,r,m[1])];break;case"Z":m=["C",...wi(r,o,n,i)];break}h=g,r=m[m.length-2],o=m[m.length-1],m.length>4?(c=m[m.length-4],u=m[m.length-3]):(c=r,u=o),e.push(m)}return e}static catmullRom2bezier(t){let e=[];for(let n=0,i=t.length;i-2>n;n+=2){let r;n==0?r=[{x:t[n],y:t[n+1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}]:i-4==n?r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+2],y:t[n+3]}]:r=[{x:t[n-2],y:t[n-1]},{x:t[n],y:t[n+1]},{x:t[n+2],y:t[n+3]},{x:t[n+4],y:t[n+5]}];const o=[{x:r[1].x,y:r[1].y},{x:(-r[0].x+6*r[1].x+r[2].x)/6,y:(-r[0].y+6*r[1].y+r[2].y)/6},{x:(r[1].x+6*r[2].x-r[3].x)/6,y:(r[1].y+6*r[2].y-r[3].y)/6},{x:r[2].x,y:r[2].y}];e.push(["C",o[1].x,o[1].y,o[2].x,o[2].y,o[3].x,o[3].y])}return e}static zvhToLSVGPath(t){let e=[],n=["L",0,0],i;for(let r=0,o=t.length;r<o;r++){let a=t[r];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":i=e[e.length-1]||["L",0,0],e.push(["L",a[1],i[i.length-1]]);break;case"V":i=e[e.length-1]||["L",0,0],e.push(["L",i[i.length-2],a[1]]);break;default:e.push(a)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let n,i=0,r=0;for(let o=0,a=t.length;o<a;o++){const l=t[o],c=e[l[0]];c&&(l[0]=c.to,n&&(n[0]===c.to?(i=2*Number(n[c.x+2])-Number(n[c.x]),r=2*Number(n[c.x+3])-Number(n[c.x+1])):(i=Number(n[n.length-2]),r=Number(n[n.length-1]))),l.splice(1,0,i,r)),n=l}return t}static curveDim(t,e,n,i,r,o,a,l){const c=[],u=[[],[]];let h,f,d,m,g,v,k,I;for(let L=0;L<2;++L){if(L===0?(f=6*t-12*n+6*r,h=-3*t+9*n-9*r+3*a,d=3*n-3*t):(f=6*e-12*i+6*o,h=-3*e+9*i-9*o+3*l,d=3*i-3*e),Math.abs(h)<1e-12){if(Math.abs(f)<1e-12)continue;m=-d/f,m>0&&m<1&&c.push(m);continue}k=f*f-4*d*h,I=Math.sqrt(k),!(k<0)&&(g=(-f+I)/(2*h),g>0&&g<1&&c.push(g),v=(-f-I)/(2*h),v>0&&v<1&&c.push(v))}let M=c.length,C;const j=M;for(;M--;)m=c[M],C=1-m,u[0][M]=C*C*C*t+3*C*C*m*n+3*C*m*m*r+m*m*m*a,u[1][M]=C*C*C*e+3*C*C*m*i+3*C*m*m*o+m*m*m*l;return u[0][j]=t,u[1][j]=e,u[0][j+1]=a,u[1][j+1]=l,u[0].length=u[1].length=j+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}}static base3(t,e,n,i,r){const o=-3*e+9*n-9*i+3*r,a=t*o+6*e-12*n+6*i;return t*a-3*e+3*n}static bezlen(t,e,n,i,r,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let m=0;for(let g=0;g<h;g++){const v=u*f[g]+u,k=this.base3(v,t,n,r,a),I=this.base3(v,e,i,o,l),M=k*k+I*I;m+=d[g]*Math.sqrt(M)}return u*m}}const me=Cn;class Wu extends xr{shapes=[];removes=[];x;y;constructor(t){super(),this.x=t?.x||0,this.y=t?.y||0}register(...t){this.shapes.push(...t);const e=n=>(i,r)=>{this.shapes.forEach(o=>{o.id!==n.id&&o.enableDrag&&(o.x+=i,o.y+=r)}),this.x+=i,this.y+=r};t.forEach(n=>{const i=e(n);n.on("moving",i),this.removes.push(()=>{n.off("moving",i)})})}destroy(){this.removes.forEach(t=>t())}}class ge extends xr{id;cX;cY;x;prevX;y;prevY;degree;prevDegree;scalexOnOrigin;scaleyOnOrigin;prevScalexOnOrigin;prevScaleyOnOrigin;skewxDegreeOnOrigin;skewyDegreeOnOrigin;prevSkewxDegreeOnOrigin;prevSkewyDegreeOnOrigin;transformBaseOnSelfInRenderGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;mouseX=0;mouseY=0;targetToAfterDragFree;followMouse;isShow=!0;now=new Date().getTime();frameRate=60;strokeArmyAnts;strokeArmyAntsOffset=0;history=[];path2d=new Path2D;el;pathd;renderGroup;shapeGroup;autoRender;constructor(t){super(),this.id=dm(),this.cX=t?.cX||0,this.cY=t?.cY||0,this.prevX=this.x=t?.x||0,this.prevY=this.y=t?.y||0,this.prevDegree=this.degree=t?.degree||0,this.prevScalexOnOrigin=this.scalexOnOrigin=1,this.prevScaleyOnOrigin=this.scaleyOnOrigin=1,t?.scaleOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scaleOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleOnOrigin),t?.scalexOnOrigin!==void 0&&(this.prevScalexOnOrigin=this.scalexOnOrigin=t.scalexOnOrigin),t?.scaleyOnOrigin!==void 0&&(this.prevScaleyOnOrigin=this.scaleyOnOrigin=t.scaleyOnOrigin),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin=t?.skewxDegreeOnOrigin||0,this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin=t?.skewyDegreeOnOrigin||0,this.transformBaseOnSelfInRenderGroup=typeof t?.transformBaseOnSelfInRenderGroup=="boolean"?t.transformBaseOnSelfInRenderGroup:!1,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||1,this.attrs=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(t?.attrs||{}).map(([e,n])=>[qe(e),n]))),this.enableDrag=t?.enableDrag||!1,this.alongPath=t?.alongPath,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1,this.renderGroup=t?.renderGroup,this.shapeGroup=t?.shapeGroup,this.autoRender=typeof t?.autoRender=="boolean"?t?.autoRender:!1}save(){this.history.push(lu(this))}restore(){const t=this.history.pop();t&&ym(this,t)}group(...t){this.renderGroup||(this.renderGroup=new Wu({x:this.x,y:this.y}),this.renderGroup.register(this)),t.forEach(e=>{e.renderGroup=this.renderGroup,this.renderGroup?.register(e)})}ungroup(){this.renderGroup&&(this.renderGroup.shapes.forEach(t=>delete t.renderGroup),this.renderGroup.destroy(),this.renderGroup=void 0)}setAttr(t,e){_r(t)?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,i])=>[qe(n),i]))):typeof t=="string"&&e&&(this.attrs[qe(t)]=e)}getAttr(t,e){return this.attrs[qe(t)]||e}hasAttr(t){return!!this.attrs[qe(t)]}get centerX(){const t=this.getBoundingClientRect();return t?t.x+t.width/2:this.x}get centerY(){const t=this.getBoundingClientRect();return t?t.y+t.height/2:this.y}get centerDiff(){return{dx:this.centerX-this.x,dy:this.centerY-this.y}}getBoundingClientRect(){return null}frameUpdate(){const t=new Date().getTime();if(!(t-this.now<1e3/this.frameRate)&&(this.now=t,this.strokeArmyAnts&&!this.isMouseIn)){const e=this.getAttr("stroke-dasharray","4 4");if(typeof e=="string"){this.setAttr("stroke-dasharray",e);const n=ea(e);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>n.reduce((i,r)=>i+r,0)&&(this.strokeArmyAntsOffset=0)}}}toSVGPathD(t=!1){let e=[];const n=this.toSVGPathData();return n[0]&&Array.isArray(n[0])?e.push(...n):e.push(n),t&&(e=me.relativeSVGPath(e)),me.SVGPathDataToD(e)}distance(t){return wa(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Xe(Vn(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=Vs(Rt(this.degree),e);this.vx=n,this.vy=i,this.nextFrame()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=Vs(Rt(this.degree),e);this.ax=n,this.ay=i,this.nextFrame()}checkCollision(t){}gravitate(t){const e=t.x-this.x,n=t.y-this.y,i=e*e+n*n,r=Math.sqrt(i),o=this.mass*t.mass/i,a=o*e/r,l=o*n/r;this.vx+=a/this.mass,this.vy+=l/this.mass,t.vx-=a/t.mass,t.vy-=l/t.mass}static comboGravitate(t){const e=t.length;t.forEach((n,i)=>{n.nextFrame();for(let r=i+1;r<e;r++)n.checkCollision(t[r]),n.gravitate(t[r])})}nextFrame(t){this.vx+=this.ax,this.vy+=this.ay;const e=t?.gravity??0;this.vy+=e;const n=t?.friction??1;this.vx*=n,this.vy*=n,this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,e){const n=e?.easing??.05,{dx:i,dy:r}=this.centerDiff,o=t.x-i-this.x,a=t.y-r-this.y;this.vx=o*n,this.vy=a*n,this.nextFrame(e)}nextFrameSpringTo(t,e){const n=e?.spring??.03,{dx:i,dy:r}=this.centerDiff;(Array.isArray(t)?t:[t]).forEach(o=>{const a=o.x-i-this.x,l=o.y-r-this.y,c=a*n,u=l*n;this.vx+=c,this.vy+=u}),this.nextFrame({friction:.9,...e})}static comboSpringChain(t,e){t.forEach((n,i)=>{i>0&&n.nextFrameSpringTo(t[i-1],e)})}static comboSpringConnect(t,e){const n=e?.springLength??100;t.forEach(i=>{i.isDragging||t.filter(r=>r.id!==i.id).forEach(r=>{const o=Vn(i.x,i.y,r.x,r.y);i.nextFrameSpringTo({x:r.x-Math.cos(o)*n,y:r.y-Math.sin(o)*n},e)})})}spring(t,e){const n=e?.springLength??100,i=e?.spring??1e-4;let r=[0,0,0,0,0];const o=t.x-this.x,a=t.y-this.y,l=Math.sqrt(o*o+a*a);if(l<n){r=[this.x,this.y,t.x,t.y,1-l/n];const c=o*i,u=a*i;this.vx+=c/this.mass,this.vy+=u/this.mass,t.vx-=c/t.mass,t.vy-=u/t.mass}return r}static comboSpringMass(t,e,n){const i=[];return t.forEach((r,o)=>{r.nextFrame(n),r.x>e.x+e.width?r.x=e.x:r.x<e.x&&(r.x=e.x+e.width),r.y>e.y+e.height?r.y=e.y:r.y<e.y&&(r.y=e.y+e.height);for(let a=o+1,l=t.length;a<l;a++)i.push(r.spring(t[a],n))}),i}}class Sa extends ge{x;y;z;fl;vpX;vpY;cX;cY;cZ;radius;constructor(t){super(t),this.x=t?.x||0,this.y=t?.y||0,this.z=t?.z||0,this.fl=t?.fl||250,this.vpX=t?.vpX||0,this.vpY=t?.vpY||0,this.cX=t?.cX||0,this.cY=t?.cY||0,this.cZ=t?.cZ||0,this.radius=t?.radius||0}getBoundingClientRect(){return null}toSVGPathData(){return this.radius?[["M",this.getScreenX(),this.getScreenY()-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",this.getScreenX(),this.getScreenY()]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}setVanishingPoint(t,e){this.vpX=t,this.vpY=e}setCenter(t,e,n){this.cX=t,this.cY=e,this.cZ=n}rotateX(t){({x:this.y,y:this.z}=vs(Rt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=vs(Rt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=vs(Rt(t),this.x,this.y))}getScreenX(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpX+(this.cX+this.x)*t}getScreenY(){const t=this.fl/(this.fl+this.z+this.cZ);return this.vpY+(this.cY+this.y)*t}eq(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.radius===t.radius&&this.mass===t.mass}length(){return xa(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,n=t.y-this.y,i=t.z-this.z;return Math.sqrt(e*e+n*n+i*i)}scalar(t){return this.x*=t,this.y*=t,this.z*=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,i=this.z;return{x:n*t.z-i*t.y,y:i*t.x-e*t.z,z:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y,z:this.z*t.z}}div(t){return{x:this.x/t.x,y:this.y/t.y,z:this.z/t.z}}add(t){return{x:this.x+t.x,y:this.y+t.y,z:this.z+t.z}}sub(t){return{x:this.x-t.x,y:this.y-t.y,z:this.z-t.z}}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y,z:this.z-2*e*t.z}}clone(t){return new Sa({x:t.x,y:t.y,z:t.z,radius:t.radius,mass:t.mass})}}const $r=Sa;class Ee extends ge{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromBezier(t,e,n,i,r,o,a,l){const c=Cn.curveDim(t,e,n,i,r,o,a,l);return new Ee({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return new Ee({x:this.x,y:this.y,width:this.width,height:this.height})}toSVGPathData(){return this.borderRadius?[["M",this.x+this.borderRadius,this.y],["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",this.x,this.y],["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}clone(t){return new Ee({x:t.x,y:t.y,width:t.width,height:t.height,borderRadius:t.borderRadius})}toArray(){return[this.x,this.y,this.width,this.height,this.borderRadius]}}const ki=Ee,Zu=[1,0,0,1,0,0],qu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ue{value;m13_value=0;m23_value=0;m33_value=1;matrix3d;constructor(t=Zu){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.m13_value}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this.m23_value}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this.m33_value}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.m13_value=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this.m23_value=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this.m33_value=t}toMatrix3D(t=this.matrix3d){const e=[this.m11,this.m12,0,this.m13,this.m21,this.m22,0,this.m23,0,0,1,0,this.m31,this.m32,0,this.m33];return t?(t.value=e,t):new sn(e)}identity(){return this.value=Array.from(Zu),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m31==0&&this.m32==0&&this.m33==1}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m31*=t,this.m32*=t,this.m33*=t,this}normalize(){const t=this.m33||1e-4;return this.scalar(1/t)}applyToPoint(t,e,n=0,i=0){const r=t-n,o=e-i;return t=this.m11*r+this.m21*o+this.m31,e=this.m12*r+this.m22*o+this.m32,{x:t+n,y:e+i}}fromString(t){const e=nu("number",t);return e.length===6?(e.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}),this.m13=0,this.m23=0,this.m33=1):this.identity(),this}clone(){const t=new Ue;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t}multiply(t){const e=this.clone();let n;return t instanceof Ue?n=t:n=new Ue(t),this.m11=n.m11*e.m11+n.m12*e.m21+n.m13*e.m31,this.m12=n.m11*e.m12+n.m12*e.m22+n.m13*e.m32,this.m13=n.m11*e.m13+n.m12*e.m23+n.m13*e.m33,this.m21=n.m21*e.m11+n.m22*e.m21+n.m23*e.m31,this.m22=n.m21*e.m12+n.m22*e.m22+n.m23*e.m32,this.m23=n.m21*e.m13+n.m22*e.m23+n.m23*e.m33,this.m31=n.m31*e.m11+n.m32*e.m21+n.m33*e.m31,this.m32=n.m31*e.m12+n.m32*e.m22+n.m33*e.m32,this.m33=n.m31*e.m13+n.m32*e.m23+n.m33*e.m33,this}append(t){return this.multiply(t)}prepend(t){return t.multiply(this),this}inverse(){const t=this.m11,e=this.m12,n=this.m21,i=this.m22,r=this.m31,o=this.m32,a=t*i-e*n;return this.m11=i/a,this.m12=-e/a,this.m21=-n/a,this.m22=t/a,this.m31=(n*o-i*r)/a,this.m32=-(t*o-e*r)/a,this.m13=0,this.m23=0,this.m33=1,this}adjugate(){const t=new Ue;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=Xe(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,rotate:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:Xe(Math.atan2(-this.m21,this.m22)),skewY:Xe(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],n=this.value[1],i=this.value[2],r=this.value[3],o=this.value[4],a=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],h=t.value[3],f=t.value[4],d=t.value[5],m=l*h,g=c*u,v=(u*n-e*h)/(g-m),k=(l*n-e*c)/(m-g),I=(u*r-i*h)/(g-m),M=(l*r-i*c)/(m-g),C=(u*(a-d)+h*(f-o))/(g-m),j=(l*(a-d)+c*(f-o))/(m-g),L=[v,k,I,M,C,j];return new Ue(L)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>Ve(e,t)).join(",")})`:this.matrix3d.toString()}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){return this.translate(t-this.m31,e-this.m32)}translateX(t){return this.translate(t,0)}translateXTo(t){return this.translateTo(t,this.m32)}translateY(t){return this.translate(0,t)}translateYTo(t){return this.translateTo(this.m31,t)}translateZ(t){return this.matrix3d.translate(0,0,t),this.matrix3d.toMatrix(this),this}translateZTo(t){return this.translateZ(t-this.matrix3d.m43),this}translate3d(t,e,n){return this.matrix3d.translate(t,e,n),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,n){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,n-this.matrix3d.m43),this}rotate(t,e=0,n=0){const i=Rt(t),r=Math.cos(i),o=Math.sin(i);return this.multiply([r,o,-o,r,e,n]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{rotate:i}=this.split();return this.rotate(t-i,e,n),this}rotateX(t){return this.matrix3d.rotate(t,0,0),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{rotateX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotate(0,t,0),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{rotateY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotate(0,0,t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{rotateZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,n){return this.matrix3d.rotate(t,e,n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{rotateX:i,rotateY:r,rotateZ:o}=this.matrix3d.split();return this.rotate3d(t-i,e-r,n-o),this}scale(t,e=t,n=0,i=0){return this.multiply([t,0,0,e,n,i]),this.translate(-n,-i),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,i=0){return this.scale(t/this.m11,e/this.m22,n,i)}scaleX(t){return this.scale(t,1)}scaleXTo(t){return this.scale(t/this.m11,1)}scaleY(t){return this.scale(1,t)}scaleYTo(t){return this.scale(1,t/this.m22)}scaleZ(t){return this.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scaleZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,n=t){return this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scaleX:i,scaleY:r,scaleZ:o}=this.matrix3d.split();return this.scale3d(t/i,e/r,n/o),this}skew(t,e=t){return this.multiply([Math.cos(Rt(e)),Math.sin(Rt(e)),-Math.sin(Rt(t)),Math.cos(Rt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:n,skewY:i}=this.split();return this.skew(t-n,e-i)}skewX(t){const{skewY:e}=this.split();return this.skew(t,e)}skewXTo(t){const{skewY:e}=this.split();return this.skewTo(t,e)}skewY(t){const{skewX:e}=this.split();return this.skew(e,t)}skewYTo(t){const{skewX:e}=this.split();return this.skewTo(e,t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class sn{value;is3dSpecial=!1;constructor(t=qu){this.value=Array.from(t)}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this.value[2]=t}set m14(t){this.value[3]=t}set m21(t){this.value[4]=t}set m22(t){this.value[5]=t}set m23(t){this.value[6]=t}set m24(t){this.value[7]=t}set m31(t){this.value[8]=t}set m32(t){this.value[9]=t}set m33(t){this.value[10]=t}set m34(t){this.value[11]=t}set m41(t){this.value[12]=t}set m42(t){this.value[13]=t}set m43(t){this.value[14]=t}set m44(t){this.value[15]=t}is2D(){return!this.is3dSpecial&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m43==0&&this.m44==1}is3D(){return!this.is2D()}identity(){return this.value=Array.from(qu),this}isIdentity(){return this.m11==1&&this.m12==0&&this.m13==0&&this.m14==0&&this.m21==0&&this.m22==1&&this.m23==0&&this.m24==0&&this.m31==0&&this.m32==0&&this.m33==1&&this.m34==0&&this.m41==0&&this.m42==0&&this.m43==0&&this.m44==1}clone(){const t=new sn;return t.m11=this.m11,t.m12=this.m12,t.m13=this.m13,t.m14=this.m14,t.m21=this.m21,t.m22=this.m22,t.m23=this.m23,t.m24=this.m24,t.m31=this.m31,t.m32=this.m32,t.m33=this.m33,t.m34=this.m34,t.m41=this.m41,t.m42=this.m42,t.m43=this.m43,t.m44=this.m44,t}scalar(t){return this.m11*=t,this.m12*=t,this.m13*=t,this.m14*=t,this.m21*=t,this.m22*=t,this.m23*=t,this.m24*=t,this.m31*=t,this.m32*=t,this.m33*=t,this.m34*=t,this.m41*=t,this.m42*=t,this.m43*=t,this.m44*=t,this}normalize(){return this.scalar(1/(this.m44||1e-4))}applyToPoint(t){const e=t.x*this.m11+t.y*this.m21+t.z*this.m31+t.mass*this.m41,n=t.x*this.m12+t.y*this.m22+t.z*this.m32+t.mass*this.m42,i=t.x*this.m13+t.y*this.m23+t.z*this.m33+t.mass*this.m43,r=t.x*this.m14+t.y*this.m24+t.z*this.m34+t.mass*this.m44;t.x=e,t.y=n,t.z=i,t.mass=r}fromString(t){const e=nu("number",t);return e.length===16?e.forEach((n,i)=>{n.fullMatch&&(this.value[i]=parseFloat(n.fullMatch))}):this.identity(),this}toMatrix(t){const{scaleX:e,scaleY:n,skewX:i,skewY:r,x:o,y:a}=this.split(),l=[e,r,i,n,o,a];return t?(t.value=l,t):new Ue(l)}flatten(){return this.m31=0,this.m32=0,this.m33=1,this.m34=0,this.m14=0,this.m24=0,this.m43=0,this.m44=1,this}toString(t=6){return`matrix3d(${this.value.map(e=>Ve(e,t)).join(",")})`}split(){const t=Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),e=Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),n=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33);let i=Xe(Ke(Math.asin(-this.m13),-1,1)),r=Xe(Math.atan2(this.m23,this.m33));Math.cos(Rt(i))===0&&(r=Xe(Math.atan2(-this.m31,this.m22)));let o=Xe(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(o+=180),{x:this.m41,y:this.m42,z:this.m43,scaleX:t,scaleY:e,scaleZ:n,rotateX:r,rotateY:i,rotateZ:o,skewX:Xe(this.m14),skewY:Xe(this.m24),skewZ:Xe(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,n=this.m12,i=this.m13,r=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,f=this.m33,d=this.m34,m=this.m41,g=this.m42,v=this.m43,k=this.m44;t[0]=l*d*g-c*f*g+c*h*v-a*d*v-l*h*k+a*f*k,t[1]=r*f*g-i*d*g-r*h*v+n*d*v+i*h*k-n*f*k,t[2]=i*c*g-r*l*g+r*a*v-n*c*v-i*a*k+n*l*k,t[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*d-n*l*d;const I=e*t[0]+o*t[1]+u*t[2]+m*t[3];if(I==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*m-l*d*m-c*u*v+o*d*v+l*u*k-o*f*k,t[5]=i*d*m-r*f*m+r*u*v-e*d*v-i*u*k+e*f*k,t[6]=r*l*m-i*c*m-r*o*v+e*c*v+i*o*k-e*l*k,t[7]=i*c*u-r*l*u+r*o*f-e*c*f-i*o*d+e*l*d,t[8]=a*d*m-c*h*m+c*u*g-o*d*g-a*u*k+o*h*k,t[9]=r*h*m-n*d*m-r*u*g+e*d*g+n*u*k-e*h*k,t[10]=n*c*m-r*a*m+r*o*g-e*c*g-n*o*k+e*a*k,t[11]=r*a*u-n*c*u-r*o*h+e*c*h+n*o*d-e*a*d,t[12]=l*h*m-a*f*m-l*u*g+o*f*g+a*u*v-o*h*v,t[13]=n*f*m-i*h*m+i*u*g-e*f*g-n*u*v+e*h*v,t[14]=i*a*m-n*l*m-i*o*g+e*l*g+n*o*v-e*a*v,t[15]=n*l*u-i*a*u+i*o*h-e*l*h-n*o*f+e*a*f,this.value=t,this.scalar(1/I)}multiply(t){const e=this.clone(),n=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,i=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,r=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,o=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,a=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,l=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,c=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,u=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,h=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,f=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,d=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,m=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,g=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,v=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,k=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,I=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44;return this.m11=n,this.m12=i,this.m13=r,this.m14=o,this.m21=a,this.m22=l,this.m23=c,this.m24=u,this.m31=h,this.m32=f,this.m33=d,this.m34=m,this.m41=g,this.m42=v,this.m43=k,this.m44=I,this}translate(t=0,e=0,n=0){return this.multiply(new sn([1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]))}scale(t=1,e=1,n=1){return this.multiply(new sn([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}skew(t=0,e=0,n=0){return this.multiply(new sn([1,0,0,Rt(t),0,1,0,Rt(e),0,0,1,Rt(n),0,0,0,1]))}rotate(t=0,e=0,n=0){n&&(this.is3dSpecial=!0);const i=Rt(t),r=Rt(e),o=Rt(n),a=Math.cos(i),l=Math.sin(i),c=Math.cos(r),u=Math.sin(r),h=Math.cos(o),f=Math.sin(o),d=a*h,m=a*f,g=l*h,v=l*f;return this.m11=c*h,this.m21=-c*f,this.m31=u,this.m12=m+g*u,this.m22=d-v*u,this.m32=-l*c,this.m13=v-d*u,this.m23=g+m*u,this.m33=a*c,this}perspective(t){return this.multiply(new sn([1,0,0,0,0,1,0,0,0,0,1,t?-(1/t):0,0,0,0,1]))}unproject(t){let e=t.x*this.m11+t.y*this.m21+this.m41,n=t.x*this.m12+t.y*this.m22+this.m42,i=t.x*this.m13+t.y*this.m23+this.m43,r=t.x*this.m14+t.y*this.m24+this.m44,o=e+this.m31,a=n+this.m32,l=i+this.m33,c=r+this.m34;r==0&&(r=1e-4),e/=r,n/=r,i/=r,c==0&&(c=1e-4),o/=c,a/=c,l/=c;const u=l-i;if(u==0)return{x:e,y:n,z:i,mass:r};const h=-i/u;return e+=h*(o-e),n+=h*(a-n),{x:e,y:n,z:i,mass:r}}project(t){let e=t.z,n=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,i=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,r=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return r==0&&(r=1e-4),n/=r,i/=r,r<0&&(n-=this.m41,i-=this.m42,n*=1/r,i*=1/r,n+=this.m41,i+=this.m42),{x:n,y:i,z:e,mass:r}}bounds(t,e,n,i){const r=new $r({x:t,y:e}),o=new $r({x:t+n,y:e}),a=new $r({x:t+n,y:e+i}),l=new $r({x:t,y:e+i});({x:r.x,y:r.y,z:r.z,mass:r.mass}=this.project(r)),{x:o.x,y:o.y,z:o.z,mass:o.mass}=this.project(o),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(r.x,o.x,a.x,l.x),u=Math.min(r.y,o.y,a.y,l.y),h=Math.max(r.x,o.x,a.x,l.x)-c,f=Math.max(r.y,o.y,a.y,l.y)-u;return new ki({x:c,y:u,width:h,height:f})}}function Ku(s){const t=new Ue;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,i){i.indexOf(",")>=0?i=i.split(/\s*,\s*/):i=i.split(/\s+/);const r=[];for(let o=0,a=i.length;o<a;o++)i[o].trim()&&r.push(parseFloat(""+i[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(r[0],r[1]);break;case"translatex":t.translateX(r[0]);break;case"translatey":t.translateY(r[0]);break;case"translatez":t.translateZ(r[0]);break;case"translate3d":t.translate3d(r[0],r[1],r[2]);break;case"r":case"rotate":t.rotate(r[0],r[1]??0,r[2]??0);break;case"rotatex":t.rotateX(r[0]);break;case"rotatey":t.rotateY(r[0]);break;case"rotatez":t.rotateZ(r[0]);break;case"rotate3d":t.rotate3d(r[0],r[1],r[2]);break;case"s":case"scale":t.scale(r[0],r[1]??r[0]);break;case"scalex":t.scaleX(r[0]);break;case"scaley":t.scaleY(r[0]);break;case"scalez":t.scaleZ(r[0]);break;case"scale3d":t.scale3d(r[0],r[1],r[2]);break;case"skew":t.skew(r[0],r[1]??0);break;case"skewx":t.skewX(r[0]);break;case"skewy":t.skewY(r[0]);break;case"skewz":t.skewZ(r[0]);break;case"skew3d":t.skew3d(r[0],r[1],r[2]);break;case"m":case"matrix":t.multiply([r[0],r[1],r[2],r[3],r[4],r[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new sn(r)),t.matrix3d.toMatrix(t);break}return""}),t}function vs(s,t,e,n=0,i=0){const r=new Ue;return r.rotate(Xe(s),n,i),r.applyToPoint(t,e,n,i)}function B0(s){const{tx:t,ty:e,scaleX:n,scaleY:i,degree:r}=ta(s||{},{tx:0,ty:0,scaleX:1,scaleY:1,degree:0}),o=new DOMMatrix([Math.cos(Rt(r))*n,Math.sin(Rt(r))*n,-Math.sin(Rt(r))*i,Math.cos(Rt(r))*i,t,e]);return o.multiplySelf(new DOMMatrix(s?.originMatrix)),o}class H{static onDocumentReady(t){let e=!1;function n(){document.readyState==="loading"||e||(e=!0,t(),document.removeEventListener("DOMContentLoaded",n))}typeof document<"u"&&(document.addEventListener("DOMContentLoaded",n),n())}static onBeforeUnload(t){function e(){t(),document.removeEventListener("beforeunload",e)}typeof document<"u"&&document.addEventListener("beforeunload",e)}static getCSSVar(t){return getComputedStyle(document.documentElement).getPropertyValue(t)}static setCSSVar(t,e){document.documentElement.style.setProperty(t,e)}static add3DSupport(t,e="1000px"){if(t.parentElement){const n=H.getStyle(t.parentElement,"position");H.setStyle(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}H.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:H.getStyle(t,"transform")||""});const i=Ku(n.transform),r={};for(let o in e){const a=e[o];switch(o){case"transform":break;case"translate":i.translate(a[0]||0,a[1]||0);break;case"translateTo":i.translateTo(a[0]||0,a[1]||0);break;case"translateX":i.translateX(a||0);break;case"translateXTo":i.translateXTo(a||0);break;case"translateY":i.translateY(a||0);break;case"translateYTo":i.translateYTo(a||0);break;case"translateZ":i.translateZ(a||0);break;case"translateZTo":i.translateZTo(a||0);break;case"translate3d":i.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":i.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?i.rotate(a||0):i.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?i.rotateTo(a||0):i.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":i.rotateX(a||0);break;case"rotateXTo":i.rotateXTo(a||0);break;case"rotateY":i.rotateY(a||0);break;case"rotateYTo":i.rotateYTo(a||0);break;case"rotateZ":i.rotateZ(a||0);break;case"rotateZTo":i.rotateZTo(a||0);break;case"rotate3d":i.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":i.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?i.scale(a||1):i.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?i.scaleTo(a||1):i.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":i.scaleX(a||1);break;case"scaleXTo":i.scaleXTo(a||1);break;case"scaleY":i.scaleY(a||1);break;case"scaleYTo":i.scaleYTo(a||1);break;case"scaleZ":i.scaleZ(a||1);break;case"scaleZTo":i.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?i.scale3d(a||1):i.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?i.scale3dTo(a||1):i.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?i.skew(a||0):i.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?i.skewTo(a||0):i.skewTo(a[0]||0,a[1]||0);break;case"skewX":i.skewX(a||0);break;case"skewXTo":i.skewXTo(a||0);break;case"skewY":i.skewY(a||0);break;case"skewYTo":i.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":i.perspective(a||0);break;default:n.hasOwnProperty(o)||(n[o]=H.getStyle(t,o)),Object.assign(r,{[o]:`${a}`});break}}return Object.assign(r,{transform:i.toString()}),r}static attrsToCanvas(t,e){for(const n in e){const i=e[n];switch(qe(n)){case"fill":i!=="none"&&(t.fillStyle=i);break;case"stroke":i!=="none"&&(t.strokeStyle=i);break;case"stroke-width":t.lineWidth=Number(i);break;case"stroke-linecap":t.lineCap=i;break;case"stroke-linejoin":switch(i){case"round":case"bevel":case"miter":t.lineJoin=i;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":t.miterLimit=Number(i);break;case"stroke-opacity":break;case"stroke-dashoffset":t.lineDashOffset=Number(i);break;case"stroke-dasharray":typeof i=="string"&&t.setLineDash(i.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof i=="string"&&(t.font=i);break;case"font-size":t.font+=` ${i}`;break;case"font-family":t.font+=` ${i}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(i){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":switch(i){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=i;break;default:t.textBaseline="alphabetic";break}break}}}static getStyle(t,e,n){const i=t;if(getComputedStyle)if(e){e=qe(e);const r=getComputedStyle(i,n).getPropertyPriority(e);return getComputedStyle(i,n).getPropertyValue(e).trim()+(r?"!"+r:"")}else{const r=[],o=getComputedStyle(i,"");for(let a=0;a<o.length;a++)r.push(o[a]+":"+o.getPropertyValue(o[a]));return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(t.currentStyle){if(e)return e=ou(e),t.currentStyle[e];{const r=[],o=i.currentStyle;for(let a in o)r.push(a+":"+o[a]);return r.push(...(i.style.cssText||"").split(";")),Object.fromEntries(r.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(t,e,n){if(typeof e=="string"&&n){const i=String(n).toLowerCase().includes("!important")?"important":"";t.style.setProperty(qe(e),n.replace(/!important/i,""),i)}else e instanceof Object&&Object.keys(e).forEach(i=>{const r=String(e[i]).toLowerCase().includes("!important")?"important":"";t.style.setProperty(qe(i),String(e[i]).replace(/!important/i,""),r)})}static setStyleSheet(t,e){let n;if(typeof e=="string"){const r=document.querySelector(e)?.shadowRoot;r?n=r:n=document.querySelector(e)}else n=e;const i=document.createElement("style");if(i.innerHTML=t,n)return n.appendChild(i),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(i)};{const r=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(r)}}}static toggleClass(t,e,n="toggle"){e.split(/[,\s]+/).forEach(i=>{i.trim()!==""&&t.classList[n](i.trim())})}static addClass(t,e){this.toggleClass(t,e,"add")}static removeClass(t,e){this.toggleClass(t,e,"remove")}static hasClass(t,e){return e.split(/[,\s]+/).every(n=>n.trim()!==""?Array.from(t.classList||[]).includes(n.trim()):!0)}static toggleDisplay(t,e){this.getStyle(t,"display")=="none"&&e===void 0||e===!0?t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block"):t.style.setProperty("display","none")}static show(t){t.style.setProperty("display",t instanceof HTMLTableRowElement?"table-row":t instanceof HTMLTableCellElement?"table-cell":"block")}static hide(t){t.style.setProperty("display","none")}static origins=new Ko;static updates=new Ko;static attribute(t,e,n){let i={};if(e===void 0&&n===void 0){for(let r=0,o=t.attributes,a=o.length;r<a;r++){const l=o[r];l.nodeName&&l.nodeValue&&(i[l.nodeName]=l.nodeValue)}return i}if(typeof e=="string"&&n===void 0)return t.getAttribute(qe(e));typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{t.setAttribute(qe(r),o)})}static removeAttribute(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&t.removeAttribute(n.trim())})}static fixProp(t){const e={cellpadding:"cellPadding",cellspacing:"cellSpacing",class:"className",colspan:"colSpan",contenteditable:"contentEditable",for:"htmlFor",frameborder:"frameBorder",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",usemap:"useMap"};return e[t]?e[t]:t}static prop(t,e,n){if(n===void 0&&typeof e=="string")return t[e];{let i={};typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{const a=this.fixProp(r);t[a]=o,a=="innerHTML"&&this.scriptConvert(t)})}}static removeProp(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t[this.fixProp(n.trim())]})}static data(t,e,n){if(typeof e=="string"&&(e=ou(e)),(typeof e=="string"||e===void 0)&&n===void 0){const i=Object.assign({},t.dataset);return Object.keys(i).forEach(r=>{if(i[r]?.startsWith("[")||i[r]?.startsWith("{"))try{i[r]=JSON.parse(i[r]||"")}catch{}}),typeof e=="string"?i[e]:i}else{let i={};typeof e=="object"?i=e:typeof e=="string"&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{o!=null?t.dataset[r]=o instanceof Object?JSON.stringify(o):o:delete t.dataset[r]})}}static removeData(t,e){e.split(/[,\s]+/).forEach(n=>{n.trim()!=""&&delete t.dataset[n.trim()]})}static empty(t){this.html(t,"")}static html(t,e){e instanceof HTMLElement||e instanceof SVGElement?this.insert(t,e,"replaceWith"):this.prop(t,"innerHTML",e)}static text(t,e){return this.prop(t,"textContent",e)}static value(t,e){return this.prop(t,"value",e)}static dispatchEvent(t,e,n){let i;const r=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof e=="string"?r.includes(e)?i=new MouseEvent(e,n):o.includes(e)?i=new KeyboardEvent(e,n):i=new Event(e,n):i=e,t.dispatchEvent(i)}static scriptConvert(t){const e=n=>{const r=n.ownerDocument.createElement("script");r.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)r.setAttribute(o[a].name,o[a].value);return r};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static insert(t,e,n="append"){return typeof e=="string"?t[n](this.fragment(e)):(e instanceof HTMLElement||e instanceof SVGElement)&&t[n](e),this}static createElement(t){return document.createElement.call(document,t)}static createTextNode(t){return document.createTextNode.call(document,t)}static createDocumentFragment(){return document.createDocumentFragment.call(document)}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const i=this.scriptConvert(n);i!=n&&e.content.replaceChild(i,n)}),e.content}static remove(t){return t.remove()}static siblings=t=>Array.prototype.slice.call(t.parentElement?.children).filter(e=>e!==t);static nextElementSibling(t){return t.nextElementSibling}static previousElementSibling(t){return t.previousElementSibling}static closest(t,e){return t.closest(e)}static shadowRoot(t){return t.shadowRoot}static parentElement=t=>t.parentElement;static changeSelectSelected(t,e){if(t instanceof HTMLSelectElement){const n=t.options;for(let i=0,r=n.length;i<r;i++)n[i].value==e?n[i].selected=!0:n[i].selected=!1}}static changeRadioChecked(t,e){t instanceof HTMLInputElement&&(t.value==e?t.checked=!0:t.checked=!1)}static entity2text(t){const e={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let n;return t.charAt(0)=="#"?t.charAt(1).toLowerCase()=="x"?n=parseInt(t.substring(2),16):n=parseInt(t.substring(1),10):n=e[t],n?String.fromCharCode(n):"&"+t}static waitForStyleSheetsLoaded=()=>new Promise(t=>{const e=Array.from(document.querySelectorAll("link[rel=stylesheet]"));let n=document.styleSheets.length||0;const i=()=>n>=e.length?(t(),!0):!1;i()||e.forEach(r=>{r.onload=()=>{n+=1,i()}})});static loadScript(t,e=()=>{},n=(i,r,o,a,l)=>{}){const i=document.createElement("script");i.type="text/javascript",i.src=t,i.async=!1,i.onload=e,i.onerror=n,document.body.appendChild(i)}static runInSafe(t){const e=new Proxy(window,{get(n,i,r){if(typeof i=="string"&&["open","location","document"].includes(i))throw new Error(`禁止访问 key: ${i}`);return i==="window"?e:Reflect.get(n,i,r)},set(n,i,r,o){return Reflect.set(n,i,r,o)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(n={},...i){const r=document.createElement(e);for(const o of Object.keys(n))r.setAttribute(o,n[o]);for(const o of i)typeof o=="string"?r.appendChild(document.createTextNode(o)):r.appendChild(o);return r}}});static compileTemplate(t){return t=t.replace(/<%=(.+?)%>/g,"`); \n echo( $1 ); \n echo(`").replace(/<%([\s\S]+?)%>/g,"`); \n $1 \n echo(`"),t="echo(`"+t+"`);",`(function parse(data){
41
41
  let output = "";
42
42
  function echo(html){
43
43
  output += html;
44
44
  }
45
- ${e}
45
+ ${t}
46
46
  return output;
47
- })`}static escape(e,t="encode"){const n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e=e.replace(new RegExp(t=="encode"?i:n[i],"g"),t=="encode"?n[i]:i));return e}static getInnerText=e=>{let t=e.innerText;if(!t){const n=e.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!t&&i<=n.length-1;)"innerText"in n[i]&&(t=n[i].innerText),i++}return t};static copyToClipboard=e=>new Promise((t,n)=>{if(navigator.clipboard)navigator.clipboard.writeText(e).then(t).catch(n);else{const i=document.createElement("textarea");i.value=e,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?t():n()}catch(r){n(r)}document.body.removeChild(i)}});static scrollTo=(e,t)=>window.scrollTo(e,t);static setScrollRestoration(e){try{window.history.scrollRestoration=e}catch{}}static getLocation(){return new Promise((e,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{e(n.coords)}):t("Geolocation is not supported by this browser")})}static vibrate(e=200){"vibrate"in navigator?window.navigator.vibrate(e):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=e=>e===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(e,t="http://test.com/localstorage.html"){const n=document.createElement("iframe");n.src=t,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(e,t)},4e3),setTimeout(function(){n.remove()},6e3)}static measureText=(e,t=12,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=t+"px",i.style.fontWeight=n.toString(),i.innerText=e,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}};static getFixedWidthText=(e,t,n=12,i=400,r=!0)=>{let o="";if(!e||t<n)return o;const a=e.split(""),l="...";let c=r?K.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=K.measureText(a[u],n,i).width,c>t){r&&(o+=l);break}else o+=a[u];return o}}function Sg(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Xu={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
47
+ })`}static escape(t,e="encode"){const n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t=t.replace(new RegExp(e=="encode"?i:n[i],"g"),e=="encode"?n[i]:i));return t}static getInnerText=t=>{let e=t.innerText;if(!e){const n=t.querySelector("slot")?.assignedNodes()||[];let i=0;for(;!e&&i<=n.length-1;)"innerText"in n[i]&&(e=n[i].innerText),i++}return e};static copyToClipboard=t=>new Promise((e,n)=>{if(navigator.clipboard)navigator.clipboard.writeText(t).then(e).catch(n);else{const i=document.createElement("textarea");i.value=t,i.style.opacity="0",i.style.top="0",i.style.left="0",i.style.position="fixed",document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")?e():n()}catch(r){n(r)}document.body.removeChild(i)}});static scrollTo=(t,e)=>window.scrollTo(t,e);static setScrollRestoration(t){try{window.history.scrollRestoration=t}catch{}}static getLocation(){return new Promise((t,e)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(n=>{t(n.coords)}):e("Geolocation is not supported by this browser")})}static vibrate(t=200){"vibrate"in navigator?window.navigator.vibrate(t):console.error("Your device is not support vibrate on this browser.")}static getSelectedText=()=>window.getSelection()?.toString();static isElementFocus=t=>t===document.activeElement;static isTabInView=()=>!document.hidden;static navigateBack=()=>history.back();static navigateBack2=()=>history.go(-1);static iframePostMessage(t,e="http://test.com/localstorage.html"){const n=document.createElement("iframe");n.src=e,document.body.append(n),setTimeout(function(){n.contentWindow?.postMessage(t,e)},4e3),setTimeout(function(){n.remove()},6e3)}static measureText=(t,e=12,n=400)=>{const i=document.createElement("span");i.style.visibility="hidden",i.style.margin="0",i.style.padding="0",i.style.inset="0",i.style.whiteSpace="nowrap",i.style.overflow="visible",i.style.fontSize=e+"px",i.style.fontWeight=n.toString(),i.innerText=t,document.body.appendChild(i);const r=i.offsetWidth,o=i.offsetHeight;return document.body.removeChild(i),{width:r,height:o}};static getFixedWidthText=(t,e,n=12,i=400,r=!0)=>{let o="";if(!t||e<n)return o;const a=t.split(""),l="...";let c=r?H.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=H.measureText(a[u],n,i).width,c>e){r&&(o+=l);break}else o+=a[u];return o}}function Y0(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Qu={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
48
48
  * http://hammerjs.github.io/
49
49
  *
50
50
  * Copyright (c) 2016 Jorik Tangelder;
51
- * Licensed under the MIT license */(function(s){(function(e,t,n,i){var r=["","webkit","Moz","MS","ms","o"],o=t.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,g,x){return setTimeout($(p,x),g)}function f(p,g,x){return Array.isArray(p)?(d(p,x[g],x),!0):!1}function d(p,g,x){var N;if(p)if(p.forEach)p.forEach(g,x);else if(p.length!==i)for(N=0;N<p.length;)g.call(x,p[N],N,p),N++;else for(N in p)p.hasOwnProperty(N)&&g.call(x,p[N],N,p)}function m(p,g,x){var N="DEPRECATED METHOD: "+g+`
51
+ * Licensed under the MIT license */(function(s){(function(t,e,n,i){var r=["","webkit","Moz","MS","ms","o"],o=e.createElement("div"),a="function",l=Math.round,c=Math.abs,u=Date.now;function h(p,y,x){return setTimeout(M(p,x),y)}function f(p,y,x){return Array.isArray(p)?(d(p,x[y],x),!0):!1}function d(p,y,x){var N;if(p)if(p.forEach)p.forEach(y,x);else if(p.length!==i)for(N=0;N<p.length;)y.call(x,p[N],N,p),N++;else for(N in p)p.hasOwnProperty(N)&&y.call(x,p[N],N,p)}function m(p,y,x){var N="DEPRECATED METHOD: "+y+`
52
52
  `+x+` AT
53
- `;return function(){var Q=new Error("get-stack-trace"),ce=Q&&Q.stack?Q.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Le=e.console&&(e.console.warn||e.console.log);return Le&&Le.call(e.console,N,ce),p.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var x=Object(g),N=1;N<arguments.length;N++){var Q=arguments[N];if(Q!==i&&Q!==null)for(var ce in Q)Q.hasOwnProperty(ce)&&(x[ce]=Q[ce])}return x}:v=Object.assign;var b=m(function(g,x,N){for(var Q=Object.keys(x),ce=0;ce<Q.length;)(!N||N&&g[Q[ce]]===i)&&(g[Q[ce]]=x[Q[ce]]),ce++;return g},"extend","Use `assign`."),C=m(function(g,x){return b(g,x,!0)},"merge","Use `assign`.");function O(p,g,x){var N=g.prototype,Q;Q=p.prototype=Object.create(N),Q.constructor=p,Q._super=N,x&&v(Q,x)}function $(p,g){return function(){return p.apply(g,arguments)}}function S(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function Y(p,g){return p===i?g:p}function L(p,g,x){d(ge(g),function(N){p.addEventListener(N,x,!1)})}function H(p,g,x){d(ge(g),function(N){p.removeEventListener(N,x,!1)})}function fe(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function ye(p,g){return p.indexOf(g)>-1}function ge(p){return p.trim().split(/\s+/g)}function Me(p,g,x){if(p.indexOf&&!x)return p.indexOf(g);for(var N=0;N<p.length;){if(x&&p[N][x]==g||!x&&p[N]===g)return N;N++}return-1}function Ae(p){return Array.prototype.slice.call(p,0)}function Ue(p,g,x){for(var N=[],Q=[],ce=0;ce<p.length;){var Le=g?p[ce][g]:p[ce];Me(Q,Le)<0&&N.push(p[ce]),Q[ce]=Le,ce++}return x&&(g?N=N.sort(function($t,Ft){return $t[g]>Ft[g]}):N=N.sort()),N}function qe(p,g){for(var x,N,Q=g[0].toUpperCase()+g.slice(1),ce=0;ce<r.length;){if(x=r[ce],N=x?x+Q:g,N in p)return N;ce++}return i}var et=1;function Ge(){return et++}function be(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||e}var _e=/mobile|tablet|ip(ad|hone|od)|android/i,te="ontouchstart"in e,U=qe(e,"PointerEvent")!==i,Ce=te&&_e.test(navigator.userAgent),A="touch",Fe="pen",ht="mouse",rt="kinect",ot=25,Re=1,zt=2,Ye=4,pt=8,Kt=1,cs=2,us=4,y=8,w=16,R=cs|us,F=y|w,G=R|F,se=["x","y"],J=["clientX","clientY"];function W(p,g){var x=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(N){S(p.options.enable,[p])&&x.handler(N)},this.init()}W.prototype={handler:function(){},init:function(){this.evEl&&L(this.element,this.evEl,this.domHandler),this.evTarget&&L(this.target,this.evTarget,this.domHandler),this.evWin&&L(be(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&H(this.element,this.evEl,this.domHandler),this.evTarget&&H(this.target,this.evTarget,this.domHandler),this.evWin&&H(be(this.element),this.evWin,this.domHandler)}};function ee(p){var g,x=p.options.inputClass;return x?g=x:U?g=Ht:Ce?g=_s:te?g=Xa:g=X,new g(p,Z)}function Z(p,g,x){var N=x.pointers.length,Q=x.changedPointers.length,ce=g&Re&&N-Q===0,Le=g&(Ye|pt)&&N-Q===0;x.isFirst=!!ce,x.isFinal=!!Le,ce&&(p.session={}),x.eventType=g,le(p,x),p.emit("hammer.input",x),p.recognize(x),p.session.prevInput=x}function le(p,g){var x=p.session,N=g.pointers,Q=N.length;x.firstInput||(x.firstInput=Te(g)),Q>1&&!x.firstMultiple?x.firstMultiple=Te(g):Q===1&&(x.firstMultiple=!1);var ce=x.firstInput,Le=x.firstMultiple,Ot=Le?Le.center:ce.center,$t=g.center=De(N);g.timeStamp=u(),g.deltaTime=g.timeStamp-ce.timeStamp,g.angle=E(Ot,$t),g.distance=D(Ot,$t),pe(x,g),g.offsetDirection=Ze(g.deltaX,g.deltaY);var Ft=Be(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Ft.x,g.overallVelocityY=Ft.y,g.overallVelocity=c(Ft.x)>c(Ft.y)?Ft.x:Ft.y,g.scale=Le?B(Le.pointers,N):1,g.rotation=Le?k(Le.pointers,N):0,g.maxPointers=x.prevInput?g.pointers.length>x.prevInput.maxPointers?g.pointers.length:x.prevInput.maxPointers:g.pointers.length,de(x,g);var ws=p.element;fe(g.srcEvent.target,ws)&&(ws=g.srcEvent.target),g.target=ws}function pe(p,g){var x=g.center,N=p.offsetDelta||{},Q=p.prevDelta||{},ce=p.prevInput||{};(g.eventType===Re||ce.eventType===Ye)&&(Q=p.prevDelta={x:ce.deltaX||0,y:ce.deltaY||0},N=p.offsetDelta={x:x.x,y:x.y}),g.deltaX=Q.x+(x.x-N.x),g.deltaY=Q.y+(x.y-N.y)}function de(p,g){var x=p.lastInterval||g,N=g.timeStamp-x.timeStamp,Q,ce,Le,Ot;if(g.eventType!=pt&&(N>ot||x.velocity===i)){var $t=g.deltaX-x.deltaX,Ft=g.deltaY-x.deltaY,ws=Be(N,$t,Ft);ce=ws.x,Le=ws.y,Q=c(ws.x)>c(ws.y)?ws.x:ws.y,Ot=Ze($t,Ft),p.lastInterval=g}else Q=x.velocity,ce=x.velocityX,Le=x.velocityY,Ot=x.direction;g.velocity=Q,g.velocityX=ce,g.velocityY=Le,g.direction=Ot}function Te(p){for(var g=[],x=0;x<p.pointers.length;)g[x]={clientX:l(p.pointers[x].clientX),clientY:l(p.pointers[x].clientY)},x++;return{timeStamp:u(),pointers:g,center:De(g),deltaX:p.deltaX,deltaY:p.deltaY}}function De(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var x=0,N=0,Q=0;Q<g;)x+=p[Q].clientX,N+=p[Q].clientY,Q++;return{x:l(x/g),y:l(N/g)}}function Be(p,g,x){return{x:g/p||0,y:x/p||0}}function Ze(p,g){return p===g?Kt:c(p)>=c(g)?p<0?cs:us:g<0?y:w}function D(p,g,x){x||(x=se);var N=g[x[0]]-p[x[0]],Q=g[x[1]]-p[x[1]];return Math.sqrt(N*N+Q*Q)}function E(p,g,x){x||(x=se);var N=g[x[0]]-p[x[0]],Q=g[x[1]]-p[x[1]];return Math.atan2(Q,N)*180/Math.PI}function k(p,g){return E(g[1],g[0],J)+E(p[1],p[0],J)}function B(p,g){return D(g[0],g[1],J)/D(p[0],p[1],J)}var z={mousedown:Re,mousemove:zt,mouseup:Ye},q="mousedown",ie="mousemove mouseup";function X(){this.evEl=q,this.evWin=ie,this.pressed=!1,W.apply(this,arguments)}O(X,W,{handler:function(g){var x=z[g.type];x&Re&&g.button===0&&(this.pressed=!0),x&zt&&g.which!==1&&(x=Ye),this.pressed&&(x&Ye&&(this.pressed=!1),this.callback(this.manager,x,{pointers:[g],changedPointers:[g],pointerType:ht,srcEvent:g}))}});var ne={pointerdown:Re,pointermove:zt,pointerup:Ye,pointercancel:pt,pointerout:pt},Se={2:A,3:Fe,4:ht,5:rt},Ie="pointerdown",vt="pointermove pointerup pointercancel";e.MSPointerEvent&&!e.PointerEvent&&(Ie="MSPointerDown",vt="MSPointerMove MSPointerUp MSPointerCancel");function Ht(){this.evEl=Ie,this.evWin=vt,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}O(Ht,W,{handler:function(g){var x=this.store,N=!1,Q=g.type.toLowerCase().replace("ms",""),ce=ne[Q],Le=Se[g.pointerType]||g.pointerType,Ot=Le==A,$t=Me(x,g.pointerId,"pointerId");ce&Re&&(g.button===0||Ot)?$t<0&&(x.push(g),$t=x.length-1):ce&(Ye|pt)&&(N=!0),!($t<0)&&(x[$t]=g,this.callback(this.manager,ce,{pointers:x,changedPointers:[g],pointerType:Le,srcEvent:g}),N&&x.splice($t,1))}});var st={touchstart:Re,touchmove:zt,touchend:Ye,touchcancel:pt},ss="touchstart",at="touchstart touchmove touchend touchcancel";function Tt(){this.evTarget=ss,this.evWin=at,this.started=!1,W.apply(this,arguments)}O(Tt,W,{handler:function(g){var x=st[g.type];if(x===Re&&(this.started=!0),!!this.started){var N=Qt.call(this,g,x);x&(Ye|pt)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,x,{pointers:N[0],changedPointers:N[1],pointerType:A,srcEvent:g})}}});function Qt(p,g){var x=Ae(p.touches),N=Ae(p.changedTouches);return g&(Ye|pt)&&(x=Ue(x.concat(N),"identifier",!0)),[x,N]}var On={touchstart:Re,touchmove:zt,touchend:Ye,touchcancel:pt},Oi="touchstart touchmove touchend touchcancel";function _s(){this.evTarget=Oi,this.targetIds={},W.apply(this,arguments)}O(_s,W,{handler:function(g){var x=On[g.type],N=Yn.call(this,g,x);N&&this.callback(this.manager,x,{pointers:N[0],changedPointers:N[1],pointerType:A,srcEvent:g})}});function Yn(p,g){var x=Ae(p.touches),N=this.targetIds;if(g&(Re|zt)&&x.length===1)return N[x[0].identifier]=!0,[x,x];var Q,ce,Le=Ae(p.changedTouches),Ot=[],$t=this.target;if(ce=x.filter(function(Ft){return fe(Ft.target,$t)}),g===Re)for(Q=0;Q<ce.length;)N[ce[Q].identifier]=!0,Q++;for(Q=0;Q<Le.length;)N[Le[Q].identifier]&&Ot.push(Le[Q]),g&(Ye|pt)&&delete N[Le[Q].identifier],Q++;if(Ot.length)return[Ue(ce.concat(Ot),"identifier",!0),Ot]}var Wr=2500,Wh=25;function Xa(){W.apply(this,arguments);var p=$(this.handler,this);this.touch=new _s(this.manager,p),this.mouse=new X(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}O(Xa,W,{handler:function(g,x,N){var Q=N.pointerType==A,ce=N.pointerType==ht;if(!(ce&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(Q)Bb.call(this,x,N);else if(ce&&jb.call(this,N))return;this.callback(g,x,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function Bb(p,g){p&Re?(this.primaryTouch=g.changedPointers[0].identifier,Xh.call(this,g)):p&(Ye|pt)&&Xh.call(this,g)}function Xh(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var x={x:g.clientX,y:g.clientY};this.lastTouches.push(x);var N=this.lastTouches,Q=function(){var ce=N.indexOf(x);ce>-1&&N.splice(ce,1)};setTimeout(Q,Wr)}}function jb(p){for(var g=p.srcEvent.clientX,x=p.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var Q=this.lastTouches[N],ce=Math.abs(g-Q.x),Le=Math.abs(x-Q.y);if(ce<=Wh&&Le<=Wh)return!0}return!1}var Uh=qe(o.style,"touchAction"),qh=Uh!==i,Zh="compute",Kh="auto",Ua="manipulation",Pn="none",Pi="pan-x",Ii="pan-y",Xr=Hb();function qa(p,g){this.manager=p,this.set(g)}qa.prototype={set:function(p){p==Zh&&(p=this.compute()),qh&&this.manager.element.style&&Xr[p]&&(this.manager.element.style[Uh]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return d(this.manager.recognizers,function(g){S(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),Yb(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,x=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var N=this.actions,Q=ye(N,Pn)&&!Xr[Pn],ce=ye(N,Ii)&&!Xr[Ii],Le=ye(N,Pi)&&!Xr[Pi];if(Q){var Ot=p.pointers.length===1,$t=p.distance<2,Ft=p.deltaTime<250;if(Ot&&$t&&Ft)return}if(!(Le&&ce)&&(Q||ce&&x&R||Le&&x&F))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function Yb(p){if(ye(p,Pn))return Pn;var g=ye(p,Pi),x=ye(p,Ii);return g&&x?Pn:g||x?g?Pi:Ii:ye(p,Ua)?Ua:Kh}function Hb(){if(!qh)return!1;var p={},g=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(x){p[x]=g?e.CSS.supports("touch-action",x):!0}),p}var Ur=1,ns=2,Hn=4,on=8,Ls=on,Di=16,xs=32;function zs(p){this.options=v({},this.defaults,p||{}),this.id=Ge(),this.manager=null,this.options.enable=Y(this.options.enable,!0),this.state=Ur,this.simultaneous={},this.requireFail=[]}zs.prototype={defaults:{},set:function(p){return v(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(f(p,"recognizeWith",this))return this;var g=this.simultaneous;return p=qr(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=qr(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=qr(p,this),Me(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=qr(p,this);var g=Me(this.requireFail,p);return g>-1&&this.requireFail.splice(g,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var g=this,x=this.state;function N(Q){g.manager.emit(Q,p)}x<on&&N(g.options.event+Qh(x)),N(g.options.event),p.additionalEvent&&N(p.additionalEvent),x>=on&&N(g.options.event+Qh(x))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=xs},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(xs|Ur)))return!1;p++}return!0},recognize:function(p){var g=v({},p);if(!S(this.options.enable,[this,g])){this.reset(),this.state=xs;return}this.state&(Ls|Di|xs)&&(this.state=Ur),this.state=this.process(g),this.state&(ns|Hn|on|Di)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Qh(p){return p&Di?"cancel":p&on?"end":p&Hn?"move":p&ns?"start":""}function Jh(p){return p==w?"down":p==y?"up":p==cs?"left":p==us?"right":""}function qr(p,g){var x=g.manager;return x?x.get(p):p}function hs(){zs.apply(this,arguments)}O(hs,zs,{defaults:{pointers:1},attrTest:function(p){var g=this.options.pointers;return g===0||p.pointers.length===g},process:function(p){var g=this.state,x=p.eventType,N=g&(ns|Hn),Q=this.attrTest(p);return N&&(x&pt||!Q)?g|Di:N||Q?x&Ye?g|on:g&ns?g|Hn:ns:xs}});function Zr(){hs.apply(this,arguments),this.pX=null,this.pY=null}O(Zr,hs,{defaults:{event:"pan",threshold:10,pointers:1,direction:G},getTouchAction:function(){var p=this.options.direction,g=[];return p&R&&g.push(Ii),p&F&&g.push(Pi),g},directionTest:function(p){var g=this.options,x=!0,N=p.distance,Q=p.direction,ce=p.deltaX,Le=p.deltaY;return Q&g.direction||(g.direction&R?(Q=ce===0?Kt:ce<0?cs:us,x=ce!=this.pX,N=Math.abs(p.deltaX)):(Q=Le===0?Kt:Le<0?y:w,x=Le!=this.pY,N=Math.abs(p.deltaY))),p.direction=Q,x&&N>g.threshold&&Q&g.direction},attrTest:function(p){return hs.prototype.attrTest.call(this,p)&&(this.state&ns||!(this.state&ns)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Jh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Za(){hs.apply(this,arguments)}O(Za,hs,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&ns)},emit:function(p){if(p.scale!==1){var g=p.scale<1?"in":"out";p.additionalEvent=this.options.event+g}this._super.emit.call(this,p)}});function Ka(){zs.apply(this,arguments),this._timer=null,this._input=null}O(Ka,zs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Kh]},process:function(p){var g=this.options,x=p.pointers.length===g.pointers,N=p.distance<g.threshold,Q=p.deltaTime>g.time;if(this._input=p,!N||!x||p.eventType&(Ye|pt)&&!Q)this.reset();else if(p.eventType&Re)this.reset(),this._timer=h(function(){this.state=Ls,this.tryEmit()},g.time,this);else if(p.eventType&Ye)return Ls;return xs},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===Ls&&(p&&p.eventType&Ye?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Qa(){hs.apply(this,arguments)}O(Qa,hs,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&ns)}});function Ja(){hs.apply(this,arguments)}O(Ja,hs,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:R|F,pointers:1},getTouchAction:function(){return Zr.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,x;return g&(R|F)?x=p.overallVelocity:g&R?x=p.overallVelocityX:g&F&&(x=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(x)>this.options.velocity&&p.eventType&Ye},emit:function(p){var g=Jh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Kr(){zs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}O(Kr,zs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ua]},process:function(p){var g=this.options,x=p.pointers.length===g.pointers,N=p.distance<g.threshold,Q=p.deltaTime<g.time;if(this.reset(),p.eventType&Re&&this.count===0)return this.failTimeout();if(N&&Q&&x){if(p.eventType!=Ye)return this.failTimeout();var ce=this.pTime?p.timeStamp-this.pTime<g.interval:!0,Le=!this.pCenter||D(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!Le||!ce?this.count=1:this.count+=1,this._input=p;var Ot=this.count%g.taps;if(Ot===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Ls,this.tryEmit()},g.interval,this),ns):Ls}return xs},failTimeout:function(){return this._timer=h(function(){this.state=xs},this.options.interval,this),xs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ls&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Fs(p,g){return g=g||{},g.recognizers=Y(g.recognizers,Fs.defaults.preset),new el(p,g)}Fs.VERSION="2.0.7",Fs.defaults={domEvents:!1,touchAction:Zh,enable:!0,inputTarget:null,inputClass:null,preset:[[Qa,{enable:!1}],[Za,{enable:!1},["rotate"]],[Ja,{direction:R}],[Zr,{direction:R},["swipe"]],[Kr],[Kr,{event:"doubletap",taps:2},["tap"]],[Ka]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var Wb=1,ed=2;function el(p,g){this.options=v({},Fs.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=ee(this),this.touchAction=new qa(this,this.options.touchAction),td(this,!0),d(this.options.recognizers,function(x){var N=this.add(new x[0](x[1]));x[2]&&N.recognizeWith(x[2]),x[3]&&N.requireFailure(x[3])},this)}el.prototype={set:function(p){return v(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?ed:Wb},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var x,N=this.recognizers,Q=g.curRecognizer;(!Q||Q&&Q.state&Ls)&&(Q=g.curRecognizer=null);for(var ce=0;ce<N.length;)x=N[ce],g.stopped!==ed&&(!Q||x==Q||x.canRecognizeWith(Q))?x.recognize(p):x.reset(),!Q&&x.state&(ns|Hn|on)&&(Q=g.curRecognizer=x),ce++}},get:function(p){if(p instanceof zs)return p;for(var g=this.recognizers,x=0;x<g.length;x++)if(g[x].options.event==p)return g[x];return null},add:function(p){if(f(p,"add",this))return this;var g=this.get(p.options.event);return g&&this.remove(g),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(f(p,"remove",this))return this;if(p=this.get(p),p){var g=this.recognizers,x=Me(g,p);x!==-1&&(g.splice(x,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var x=this.handlers;return d(ge(p),function(N){x[N]=x[N]||[],x[N].push(g)}),this}},off:function(p,g){if(p!==i){var x=this.handlers;return d(ge(p),function(N){g?x[N]&&x[N].splice(Me(x[N],g),1):delete x[N]}),this}},emit:function(p,g){this.options.domEvents&&Xb(p,g);var x=this.handlers[p]&&this.handlers[p].slice();if(!(!x||!x.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var N=0;N<x.length;)x[N](g),N++}},destroy:function(){this.element&&td(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function td(p,g){var x=p.element;if(x.style){var N;d(p.options.cssProps,function(Q,ce){N=qe(x.style,ce),g?(p.oldCssProps[N]=x.style[N],x.style[N]=Q):x.style[N]=p.oldCssProps[N]||""}),g||(p.oldCssProps={})}}function Xb(p,g){var x=t.createEvent("Event");x.initEvent(p,!0,!0),x.gesture=g,g.target.dispatchEvent(x)}v(Fs,{INPUT_START:Re,INPUT_MOVE:zt,INPUT_END:Ye,INPUT_CANCEL:pt,STATE_POSSIBLE:Ur,STATE_BEGAN:ns,STATE_CHANGED:Hn,STATE_ENDED:on,STATE_RECOGNIZED:Ls,STATE_CANCELLED:Di,STATE_FAILED:xs,DIRECTION_NONE:Kt,DIRECTION_LEFT:cs,DIRECTION_RIGHT:us,DIRECTION_UP:y,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:R,DIRECTION_VERTICAL:F,DIRECTION_ALL:G,Manager:el,Input:W,TouchAction:qa,TouchInput:_s,MouseInput:X,PointerEventInput:Ht,TouchMouseInput:Xa,SingleTouchInput:Tt,Recognizer:zs,AttrRecognizer:hs,Tap:Kr,Pan:Zr,Swipe:Ja,Pinch:Za,Rotate:Qa,Press:Ka,on:L,off:H,each:d,merge:C,extend:b,assign:v,inherit:O,bindFn:$,prefixed:qe});var Ub=typeof e<"u"?e:typeof self<"u"?self:{};Ub.Hammer=Fs,typeof i=="function"&&i.amd?i(function(){return Fs}):s.exports?s.exports=Fs:e[n]=Fs})(window,document,"Hammer")})(Xu);var kg=Xu.exports;const Eg=Sg(kg);class Dt extends ut{radius;constructor(e){super(e),this.radius=e?.radius||0}getBoundingClientRect(){return new Ct({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return this.radius?[["M",this.x,this.y-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",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,0,Math.PI*2,!0),e.closePath()}eq(e){return this.x===e.x&&this.y===e.y&&this.radius===e.radius&&this.mass===e.mass}midPointBtw(e){return{x:this.x+(e.x-this.x)/2,y:this.y+(e.y-this.y)/2}}length(){return pa(this.x,this.y)}scalar(e){return this.x*=e,this.y*=e,this}normalize(e=1){const t=this.length();if(t){const n=e/t;this.scalar(n)}return this}clamp(e){const t=this.length();return t&&t>e&&this.scalar(e/t),this}cross(e){const t=this.x,n=this.y;return{x:n*e.x-t*e.y,y:t*e.y-n*e.x}}multiply(e){return{x:this.x*e.x,y:this.y*e.y}}div(e){return{x:this.x/e.x,y:this.y/e.y}}add(e){return{x:this.x+e.x,y:this.y+e.y}}sub(e){return{x:this.x-e.x,y:this.y-e.y}}dot(e){return this.x*e.x+this.y*e.y}reflect(e){const t=this.dot(e);return{x:this.x-2*t*e.x,y:this.y-2*t*e.y}}clone(e){return new Dt({x:e.x,y:e.y,radius:e.radius,mass:e.mass})}checkCollision(e){const t=e.x-this.x,n=e.y-this.y;if(Math.sqrt(t*t+n*n)<this.radius+e.radius){const r=Math.atan2(n,t),o={x:0,y:0},a=vs(-r,t,n),l=vs(-r,this.vx,this.vy),c=vs(-r,e.vx,e.vy),u=l.x-c.x;l.x=((this.mass-e.mass)*l.x+2*e.mass*c.x)/(this.mass+e.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),f=this.radius+e.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const d=vs(r,o.x,o.y),m=vs(r,a.x,a.y);e.x=this.x+m.x,e.y=this.y+m.y,this.x=this.x+d.x,this.y=this.y+d.y;const v=vs(r,l.x,l.y),b=vs(r,c.x,c.y);this.vx=v.x,this.vy=v.y,e.vx=b.x,e.vy=b.y}}checkWalls(e,t){const n=t?.bounce??-1,i=e.x,r=e.y,o=e.x+e.width,a=e.y+e.height;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=n):this.x-this.radius<i&&(this.x=i+this.radius,this.vx*=n),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=n):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=n)}static comboMove(e,t,n){e.forEach(r=>{r.nextFrame(),t&&r.checkWalls(t,n)});const i=e.length;for(let r=0,o=i-1;r<o;r++){const a=e[r];for(let l,c=r+1;c<i;c++)l=e[c],a.checkCollision(l)}}}class Tg{constructor(){}static getFormatKeyNames(e){const t=yg(),n=[];return e.ctrl&&n.push(t?"Cmd":"Ctrl"),e.shift&&n.push("Shift"),e.alt&&n.push("Alt"),typeof e.key=="string"?n.push(Uo(e.key)):Array.isArray(e.key)&&(e.key.map(i=>Uo(i)),n.push(...e.key)),n}static matchKeyScheme(e,t){const n=e.ctrl??!1,i=e.shift??!1,r=e.alt??!1;if(e.exact)return(n===t.metaKey||n===t.ctrlKey)&&i===t.shiftKey&&r===t.altKey;const o=[];return n&&o.push(n===t.metaKey||n===t.ctrlKey),i&&o.push(i===t.shiftKey),r&&o.push(r===t.altKey),o.every(a=>a)}static on(e,t){if(e?.key===void 0||e?.key===null)return t;const n=e?.target??window;let i=!1;const r=this.getFormatKeyNames(e),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(e,a)){a.preventDefault();const l=t(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),n.removeEventListener("keyup",c)};n.addEventListener("keyup",c)}};return t.title=e?.title??"",t.formatedKeyNames=r,t.pause=()=>i=!0,t.restart=()=>i=!1,t.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),t}}let Jt;const Ln=[];class ft extends gr{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(e=document.documentElement,t=!0){super(),this.container=e,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight;const n=K.getStyle(this.container,"position");K.setStyle(this.container,{position:n=="static"?"relative":n}),this.hammer=new Eg(this.container),this.mousePoint=new Dt({x:0,y:0}),t&&this.start()}emitDebounce=om((e,...t)=>super.emit(e,...t),50);emit(e,...t){switch(e){case"panLeft":case"panRight":this.emitDebounce(e,...t);break;default:super.emit(e,...t);break}return this}static get page(){if(Jt)return Jt;Jt=new ft,window.addEventListener("hashchange",()=>{Jt.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Jt.emit("popstate")}),Jt.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{ug().then(t=>hg(t[0])).then(t=>{Jt.emit("openFile",t)}).catch(t=>{Jt.emit("openFileError",t)})}),Jt.registerMatchMediaChange("(prefers-color-scheme: dark)");const e=()=>Ln.forEach(t=>t());return Jt.registerGlobalScrollChange=t=>{Ln.push(t),Ln.length==1&&document.addEventListener("scroll",e)},Jt.removeGlobalScrollChange=t=>{const n=Ln.findIndex(i=>i==t);n>=0&&(Ln.splice(n,1),Ln.length==0&&document.removeEventListener("scroll",e))},Jt}start(){this.registerMouseEventListeners(),this.registerInputEventListeners(),this.registerTransitionEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventBusRemoves(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParent()}restart(){this.destroy(),this.start()}destroy(){this.domEventBusRemoves.forEach(e=>e()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(e){this.domEventBusRemoves.push(e)}setMousePoint(e){const t=gg(this.container,e);return this.mousePoint.x=t.x,this.mousePoint.y=t.y,t}registerMouseEventListeners(){const e=A=>{this.emit("mouseDown",A)},t=A=>{this.emit("mouseUp",A)},n=A=>{this.emit("mouseMove",A)},i=A=>{this.emit("mouseOver",A)},r=A=>{this.emit("mouseOut",A)},o=A=>{this.emit("mouseClick",A)},a=A=>{this.emit("mouseDoubleClick",A)},l=A=>{this.emit("mouseWheel",A)},c=A=>{this.emit("mouseContextMenu",A)},u=A=>{this.emit("touchStart",A)},h=A=>{this.emit("touchEnd",A)},f=A=>{this.emit("touchCancel",A)},d=A=>{this.emit("touchMove",A)},m=A=>{this.emit("pointerDown",A)},v=A=>{this.emit("pointerUp",A)},b=A=>{this.emit("pointerCancel",A)},C=A=>{this.emit("pointerMove",A)},O=A=>{this.emit("pan",A)},$=A=>{this.emit("panStart",A)},S=A=>{this.emit("panMove",A)},Y=A=>{this.emit("panEnd",A)},L=A=>{this.emit("panCancel",A)},H=A=>{this.emit("panLeft",A)},fe=A=>{this.emit("panRight",A)},ye=A=>{this.emit("panUp",A)},ge=A=>{this.emit("panDown",A)},Me=A=>{this.emit("pinch",A)},Ae=A=>{this.emit("press",A)},Ue=A=>{this.emit("rotate",A)},qe=A=>{this.emit("swipe",A)},et=A=>{this.emit("swipeLeft",A)},Ge=A=>{this.emit("swipeRight",A)},be=A=>{this.emit("swipeUp",A)},_e=A=>{this.emit("swipeDown",A)},te=A=>{this.emit("tap",A)},U=A=>{!A.target||this.container==A.target||this.container.contains(A.target)||this.emit("tapOutSide",A)};this.container.addEventListener("mousedown",e),this.container.addEventListener("mouseup",t),this.container.addEventListener("mousemove",n),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",r),this.container.addEventListener("click",o),this.container.addEventListener("dblclick",a),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",f),this.container.addEventListener("touchmove",d),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",v),this.container.addEventListener("pointercancel",b),this.container.addEventListener("pointermove",C),this.hammer.on("pan",O),this.hammer.on("panstart",$),this.hammer.on("panmove",S),this.hammer.on("panend",Y),this.hammer.on("pancancel",L),this.hammer.on("panleft",H),this.hammer.on("panright",fe),this.hammer.on("panup",ye),this.hammer.on("pandown",ge),this.hammer.on("pinch",Me),this.hammer.on("press",Ae),this.hammer.on("rotate",Ue),this.hammer.on("swipe",qe),this.hammer.on("swipeleft",et),this.hammer.on("swiperight",Ge),this.hammer.on("swipeup",be),this.hammer.on("swipedown",_e),this.hammer.on("tap",te),document.addEventListener("pointerdown",U,!1);const Ce=()=>{this.container.removeEventListener("mousedown",e),this.container.removeEventListener("mouseup",t),this.container.removeEventListener("mousemove",n),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",r),this.container.removeEventListener("click",o),this.container.removeEventListener("dblclick",a),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",f),this.container.removeEventListener("touchmove",d),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",v),this.container.removeEventListener("pointercancel",b),this.container.removeEventListener("pointermove",C),this.hammer.off("pan",O),this.hammer.off("panstart",$),this.hammer.off("panmove",S),this.hammer.off("panend",Y),this.hammer.off("pancancel",L),this.hammer.off("panleft",H),this.hammer.off("panright",fe),this.hammer.off("panup",ye),this.hammer.off("pandown",ge),this.hammer.off("pinch",Me),this.hammer.off("press",Ae),this.hammer.off("rotate",Ue),this.hammer.off("swipe",qe),this.hammer.off("swipeleft",et),this.hammer.off("swiperight",Ge),this.hammer.off("swipeup",be),this.hammer.off("swipedown",_e),this.hammer.off("tap",te),document.removeEventListener("pointerdown",U,!1),document.removeEventListener("touchstart",U,!1),document.removeEventListener("mousedown",U,!1)};return this.addDOMEventBusRemoves(Ce),Ce}registerInputEventListeners(){const e=l=>{this.emit("inputChange",l,this.container.files)},t=l=>{this.emit("dragstart",l)},n=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},i=l=>{this.emit("dragenter",l)},r=l=>{this.emit("dragend",l)},o=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer,this.emit("drop",l,l.dataTransfer?.files)};this.container instanceof HTMLInputElement&&this.container.addEventListener("change",e,!1),this.container.addEventListener("dragstart",t,!1),this.container.addEventListener("dragover",n,!1),this.container.addEventListener("dragenter",i,!1),this.container.addEventListener("dragend",r,!1),this.container.addEventListener("drop",o,!1);const a=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",e,!1),this.container.removeEventListener("dragstart",t,!1),this.container.removeEventListener("dragover",n,!1),this.container.removeEventListener("dragenter",i,!1),this.container.removeEventListener("dragend",r,!1),this.container.removeEventListener("drop",o,!1)};return this.addDOMEventBusRemoves(a),a}registerTransitionEventListeners(){const e=n=>{this.emit("transitionend",n)};this.container.addEventListener("transitionend",e);const t=()=>{this.container.removeEventListener("transitionend",e)};return this.addDOMEventBusRemoves(t),t}registerKeyDown(e,t,n){const i=Tg.on(e,o=>(t(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(r),r}registerResizeObserver(){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);const t=()=>{e.unobserve(this.container)};return this.addDOMEventBusRemoves(t),t}registerMatchMediaChange(e){let t="";switch(e){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=e;break}const n=r=>{this.emit(t,r.matches)};window.matchMedia(e).addEventListener("change",n);const i=()=>{window.matchMedia(e).removeEventListener("change",n)};return this.addDOMEventBusRemoves(i),i}registerElementDisplayInParent(e){const t={threshold:e?.threshold||.5,root:e?.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>=t.threshold?this.emit("showInParent"):this.emit("showOffParent")},t);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addDOMEventBusRemoves(i),i}registerPullDownRefresh(e){const t=e?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-n,i>0&&i<t&&this.emit("pullDownIng",i)},end:()=>{i>=t&&this.emit("pullDown")}})}registerPullUpLoading(e){const t=e?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=n-this.mousePoint.y,i>0&&i<t&&this.emit("pullUpIng",i)},end:()=>{i>=t&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(e){return this.captureMoveUsePointer(e)}captureMoveUsePointer(e){const t=o=>{this.container.setPointerCapture(o.pointerId),e?.start?.(o)},n=o=>{e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("pointerDown",t),this.on("pointerUp",n),this.on("pointerCancel",n),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",t),this.off("pointerUp",n),this.off("pointerCancel",n),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(r),r}captureMoveUseMouse(e){const t=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",n,!1),e?.start?.(o)},n=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",n,!1),e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("mouseDown",t);const r=()=>{this.off("mouseDown",t)};return this.addDOMEventBusRemoves(r),r}captureMoveUseTouch(e){const t=o=>{o.preventDefault(),e?.start?.(o)},n=o=>{e?.end?.(o)},i=o=>{e?.move?.(o)};this.on("touchStart",t),this.on("touchEnd",n),this.on("touchCancel",n),this.on("touchMove",i);const r=()=>{this.off("touchStart",t),this.off("touchEnd",n),this.off("touchCancel",n),this.off("touchMove",i)};return this.addDOMEventBusRemoves(r),r}static getMouseButton(e){if(document.implementation.hasFeature("MouseEvents","2.0"))return e.button;switch(e.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class ba{video;constructor(e){this.video=e}setSrcObject(e){this.video.addEventListener("loadedmetadata",t=>{t.target}),this.video.srcObject=e}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(e=>{this.setSrcObject(e)})}static async videoMediaChangeSupport(){return new Promise(e=>{const t=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>e(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),t.width="5",t.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(t),t.contentDocument?.body.append(n),setTimeout(()=>{t.width="15"}),setTimeout(()=>{t.remove(),e(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(e){return new Promise(t=>{e.play().then(()=>{e.autoplay=!0,t(!0)}).catch(()=>{ba.setAutoPlayWhenClick(e),t(!1)})})}static setAutoPlayWhenClick(e){function t(){e.autoplay=!0,e.play(),document.removeEventListener("click",t),document.removeEventListener("touchend",t)}document.addEventListener("click",t),document.addEventListener("touchend",t)}}class Og extends gr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(e){super(),this.source=e}parse(){const e=Qc(this.source);if(e===0){this.emit("finish");return}let t,n,i=Jc(this.source,0);for(let r=1;r<e;r++)t=n,n=i,i=Jc(this.source,r),this.raw+=n,n&&this.step(n,i,t);i&&this.step(i,void 0,n),this.emit("finish")}step(e,t,n){e==`
54
- `&&this.emit("newline"),this.act(e,t,n)}act(e,t,n){switch(this.mode){case"text":switch(e){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+=e,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=e;break}break;case"entity":$s("whitespace",e)?(this.textchunk+=K.entity2text(this.entity),this.mode="text"):e==";"?(this.textchunk+=K.entity2text(this.entity+e),this.mode="text"):this.entity+=e;break;case"special":if(n=="!"&&e=="-"&&t=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&e=="["){this.mode="cdata",this.textchunk="";break}if(e==">"||e=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=e;break;case"cdata":if(n=="]"&&e=="]"&&t==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}e=="eof"&&(this.mode="cdata end",this.act(e,t,n)),this.textchunk+=e;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":t==">"||e=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":e=="-"&&n=="-"&&t==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):e=="eof"?this.emit("comment",this.textchunk):this.textchunk+=e;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(e=="?"&&t==">"){this.mode="declaration end";break}e=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=e;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(e=="eof"){this.emit("text","<");break}if(!$s("whitespace",e)){if(this.mode="tag name",e=="/"){this.mode="close tag name start";break}else if(e=="!"){this.mode="special",this.textchunk="";break}else if(e=="?"){this.mode="declaration";break}this.act(e,t,n)}break;case"close tag name start":$s("whitespace",e)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(e,t,n));break;case"close tag name":if($s("whitespace",e))this.tagname=this.nodename;else switch(e){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=e);break}break;case"tag name":if($s("whitespace",e))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(e){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=t,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=e;break}break;case"attr start":$s("whitespace",e)||(this.mode="attr",this.nodename="",this.act(e,t,n));break;case"attr":if($s("whitespace",e)||e=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(e){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+=e;break}break;case"attr value start":if(!$s("whitespace",e)){if(this.mode="attr value",this.quote="",e=="'"||e=='"'){this.quote=e;return}this.act(e,t,n)}break;case"attr value":if($s("whitespace",e)&&!this.quote)this.mode="attr start";else if(e==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(e){case'"':case"'":this.quote==e&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=e;break}break}}}function Uu(s,e,t){if(typeof e<"u")window.localStorage.setItem(s,JSON.stringify({value:e,expires:typeof t=="number"?t:-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}}}ft.page.on("matchMediaChangePrefersColorSchemeDark",s=>{_a(s?"dark":"light")}),Pg();function _a(s){Uu("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function Pg(){const s=Uu("colorScheme");if(s=="dark"||s=="light")return _a(s),s;{const e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return _a(e),e}}const j={safeAreaTop:K.getCSSVar("--safe-area-inset-top"),safeAreaRight:K.getCSSVar("--safe-area-inset-right"),safeAreaBottom:K.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:K.getCSSVar("--safe-area-inset-left"),colorPrimary:K.getCSSVar("--color-primary")||"#5078f0",colorRed:K.getCSSVar("--color-red")||"#ff5050",colorOrange:K.getCSSVar("--color-orange")||"#fa8c00",colorYellow:K.getCSSVar("--color-yellow")||"#fadc32",colorGreen:K.getCSSVar("--color-green")||"#00c878",colorBlue:K.getCSSVar("--color-blue")||"#00b4fa",colorPurple:K.getCSSVar("--color-purple")||"#6464fa",colorBlack:K.getCSSVar("--color-black")||"#001428",colorGray00:K.getCSSVar("--color-gray-00")||"#000000",colorGray33:K.getCSSVar("--color-gray-33")||"#333333",colorGray66:K.getCSSVar("--color-gray-66")||"#666666",colorGray99:K.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:K.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:K.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:K.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:K.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:K.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:K.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:K.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:K.getCSSVar("--font-line-height")||"1,4",fontSize32:K.getCSSVar("--font-size-32")||"32px",fontSize24:K.getCSSVar("--font-size-24")||"24px",fontSize20:K.getCSSVar("--font-size-20")||"20px",fontSize18:K.getCSSVar("--font-size-18")||"18px",fontSize16:K.getCSSVar("--font-size-16")||"16px",fontSize14:K.getCSSVar("--font-size-14")||"14px",fontSize12:K.getCSSVar("--font-size-12")||"12px",fontSize11:K.getCSSVar("--font-size-11")||"11px",gap4:K.getCSSVar("--gap-4")||"4px",gap8:K.getCSSVar("--gap-8")||"8px",gap12:K.getCSSVar("--gap-12")||"12px",gap16:K.getCSSVar("--gap-16")||"16px",gap20:K.getCSSVar("--gap-20")||"20px",gap40:K.getCSSVar("--gap-40")||"40px",height44:K.getCSSVar("--height-44")||"44px",height32:K.getCSSVar("--height-32")||"32px",borderRadius:K.getCSSVar("--border-radius")||"4px"},Ig=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function tn(s,e){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(Ut(s.r,0,255)),s.g=Math.round(Ut(s.g,0,255)),s.b=Math.round(Ut(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof e=="number"?e:s.a:s.a=typeof e=="number"?e:1,s.a=Ut(s.a,0,1),s;const t={r:0,g:0,b:0,a:1};let n=-1;if(typeof s=="number")n=s;else if(typeof s=="string")if(s[0].toLowerCase()==="r"){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);i&&(n=(parseInt(i[1])<<16)+(parseInt(i[2])<<8)+parseInt(i[3]),i[4]&&(t.a=Rt(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(t.a=Rt(parseInt(s.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+s);return n>=0&&(t.r=n>>16&255,t.g=n>>8&255,t.b=n&255),typeof e=="number"&&(t.a=e),t.a=Ut(t.a,0,1),t}function Dg(s,e=!1){let t=tn(s);return e?t=tn(t.r*.299+t.g*.587+t.b*.114>186?"#000000":"#FFFFFF"):(t.r=255-t.r,t.g=255-t.g,t.b=255-t.b),t}function xi(s,e){const t=tn(s,e);return t.a===1?`rgb(${t.r},${t.g},${t.b})`:`rgba(${t.r},${t.g},${t.b},${t.a})`}function Or(s){return Qp(s.toString(16),2,"0","left")}function sn(s,e){const t=tn(s,e);let n=`#${Or(t.r)}${Or(t.g)}${Or(t.b)}`;return t.a===1?n:n+`${Or(Math.ceil(t.a*255))}`}function Ng(s,e=!1){return sn(Dg(s,e))}const $g=()=>Math.random()*16777215,Vt=()=>sn($g());function Rs(s,e){const t=tn(s);return t.r==0&&(t.r=32),t.g==0&&(t.g=32),t.b==0&&(t.b=32),t.r=t.r*(100+e)/100,t.g=t.g*(100+e)/100,t.b=t.b*(100+e)/100,t.r=Math.round(Ut(t.r,0,255)),t.g=Math.round(Ut(t.g,0,255)),t.b=Math.round(Ut(t.b,0,255)),sn(t)}function qu(s,e,t){try{const n=tn(s),i=tn(e);return sn({r:(i.r-n.r)*t+n.r,g:(i.g-n.g)*t+n.g,b:(i.b-n.b)*t+n.b,a:(i.a-n.a)*t+n.a})}catch{return e}}function zn(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()}(function(){let s=zn();window.requestAnimationFrame||(window.requestAnimationFrame=function(e){const t=zn(),n=Math.max(0,16-(t-s)),i=window.setTimeout(function(){e(t+n)},n);return s=t+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})})();const Mg=s=>{let e=!1;return window.requestAnimationFrame(function t(n){s(n),e||window.requestAnimationFrame(t)}),()=>{e=!0}};class Ag{id=0;cbs={};cancelAnimateCycle;constructor(){}get length(){return Object.keys(this.cbs).length}run(e){this.cbs[this.id++]=e,!this.cancelAnimateCycle&&(this.cancelAnimateCycle=Mg(t=>{const n=[];for(let i in this.cbs)this.cbs[i](t)===!1&&n.push(parseInt(i));for(let i of n)delete this.cbs[i];!this.length&&this.cancelAnimateCycle&&(this.cancelAnimateCycle(),this.cancelAnimateCycle=void 0)}))}runAccurateSetTimeout(e,t=0){let n=!1,i=zn();return this.run(r=>n?!1:r-i>=t?(e(),!1):!0),()=>{n=!0}}}const We=new Ag,Pr=new Map;async function Zu(s){return new Promise((e,t)=>{Rg(s,(n,i)=>n?t(n):e({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const Rg=(s,e)=>{if(Pr.has(s))return e(null,Pr.get(s));const t=new Image;t.onload=function(){Pr.set(s,{width:t.naturalWidth||t.width,height:t.naturalHeight||t.height,element:t}),e(null,Pr.get(s))},t.onerror=function(n){e(n,null)},t.src=s};class ls extends ut{shapes=[];renderGroup;constructor(e){super(e),this.renderGroup=new ju({x:this.x,y:this.y})}setAttrs(e,t){this.shapes.forEach(n=>{mr(e)?n.setAttr(e):typeof e=="string"&&t&&n.setAttr(e,t)})}addShape(e){this.shapes.push(...(Array.isArray(e)?e:[e]).map(t=>(t.shapeGroup=this,t.renderGroup=this.renderGroup,this.renderGroup.register(t),t)))}toSVGPathData(){return this.shapes.reduce((e,t,n)=>{const i=t.toSVGPathData();return Array.isArray(i[0])?e.push(...i):e.push(i),e},[])}toCanvasContext(e){}frameUpdate(){super.frameUpdate()}groupTranslate(e,t){this.x+=e,this.y+=t,this.renderGroup.x=this.x,this.renderGroup.y=this.y,this.shapes.forEach(n=>{n.x+=e,n.y+=t})}groupTranslateTo(e,t){this.groupTranslate(e-this.x,t-this.y)}groupRotate(e){this.degree+=e,this.shapes.forEach(t=>{t.degree+=e})}groupRotateTo(e){this.groupRotate(e-this.degree)}groupScaleTo(e){this.scalexOnOrigin=e,this.scaleyOnOrigin=e,this.shapes.forEach(t=>{t.scalexOnOrigin=e,t.scaleyOnOrigin=e})}}const Vg=ls;let wi;typeof self>"u"&&typeof process<"u"&&process.hrtime?wi=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?wi=self.performance.now.bind(self.performance):Date.now!==void 0?wi=Date.now:wi=function(){return new Date().getTime()};const Fn=wi;class Ci{static _nextId=0;static nextId(){return Ci._nextId++}}const Ir={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const e=2.5949095;return(s*=2)<1?.5*(s*s*((e+1)*s-e)):.5*((s-=2)*s*((e+1)*s+e)+2)}},Bounce:{In:function(s){return 1-Ir.Bounce.Out(1-s)},Out:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},InOut:function(s){return s<.5?Ir.Bounce.In(s*2)*.5:Ir.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(e){return e**s},Out:function(e){return 1-(1-e)**s},InOut:function(e){return e<.5?(e*2)**s/2:(1-(2-e*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(e){return Math.floor(e*s)/s}},createNoisyEasing:function(s,e=.1){const t=1-e;return function(n){return e*Math.random()+t*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},xa=Ir,Si={Utils:{Linear:function(s,e,t){return(e-s)*t+s},Factorial:function(){const s=[1];return function(e){let t=1;if(s[e])return s[e];for(let n=e;n>1;n--)t*=n;return s[e]=t,t}}(),Bernstein:function(s,e){const t=Si.Utils.Factorial;return t(s)/t(e)/t(s-e)},CatmullRom:function(s,e,t,n,i){const r=(t-s)*.5,o=(n-e)*.5,a=i*i,l=i*a;return(2*e-2*t+r+o)*l+(-3*e+3*t-2*r-o)*a+r*i+e}},Linear:function(s,e){const t=s.length-1,n=t*e,i=Math.floor(n),r=Si.Utils.Linear;return e<0?r(s[0],s[1],n):e>1?r(s[t],s[t-1],t-n):r(s[i],s[i+1>t?t:i+1],n-i)},Bezier:function(s,e){let t=0;const n=s.length-1,i=Math.pow,r=Si.Utils.Bernstein;for(let o=0;o<=n;o++)t+=i(1-e,n-o)*i(e,o)*s[o]*r(n,o);return t},CatmullRom:function(s,e){const t=s.length-1;let n=t*e,i=Math.floor(n);const r=Si.Utils.CatmullRom;return s[0]===s[t]?(e<0&&(i=Math.floor(n=t*(1+e))),r(s[(i-1+t)%t],s[i],s[(i+1)%t],s[(i+2)%t],n-i)):e<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):e>1?s[t]-(r(s[t],s[t],s[t-1],s[t-1],n-t)-s[t]):r(s[i?i-1:0],s[i],s[t<i+1?t:i+1],s[t<i+2?t:i+2],n-i)}},wa=Si;class Ku{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(e=>this._tweens[e])}removeAll(){this._tweens={}}add(e){this._tweens[e.getId()]=e,this._tweensAddedDuringUpdate[e.getId()]=e}remove(e){delete this._tweens[e.getId()],delete this._tweensAddedDuringUpdate[e.getId()]}update(e=Fn(),t=!1){let n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!t;r&&r.update(e,o)===!1&&!t&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const es=new Ku;class Qu{constructor(e,t=es){this._object=e,this._group=t}_id=Ci.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=xa.Linear.None;_interpolationFunction=wa.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(e,t){return this._valuesEnd=Object.create(e),t!==void 0&&(this._durationTime=t),this}duration(e=1e3){return this._durationTime=e,this}start(e=Fn()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const t in this._valuesStartRepeat)this._swapEndStartRepeatValues(t),this._valuesStart[t]=this._valuesStartRepeat[t]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=e,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(e,t,n,i){for(const r in n){const o=e[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){t[r]=a?[]:{};for(const u in o)t[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,t[r],n[r],i[r])}else typeof t[r]>"u"&&(t[r]=o),a||(t[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=t[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(e=Fn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=e,this._group&&this._group.remove(this),this)}resume(e=Fn()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=e-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let e=0,t=this._chainedTweens.length;e<t;e++)this._chainedTweens[e].stop();return this}group(e=es){return this._group=e,this}delay(e=0){return this._delayTime=e,this}repeat(e=0){return this._initialRepeat=e,this._repeat=e,this}repeatDelay(e){return this._repeatDelayTime=e,this}yoyo(e=!1){return this._yoyo=e,this}easing(e=xa.Linear.None){return this._easingFunction=e,this}interpolation(e=wa.Linear){return this._interpolationFunction=e,this}chain(...e){return this._chainedTweens=e,this}onStart(e){return this._onStartCallback=e,this}onEveryStart(e){return this._onEveryStartCallback=e,this}onUpdate(e){return this._onUpdateCallback=e,this}onRepeat(e){return this._onRepeatCallback=e,this}onComplete(e){return this._onCompleteCallback=e,this}onStop(e){return this._onStopCallback=e,this}update(e=Fn(),t=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(e>r)return!1;t&&this.start(e)}if(this._goToEnd=!1,e<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(e-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=e+this._repeatDelayTime:this._startTime=e+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(e,t,n,i){for(const r in n){if(t[r]===void 0)continue;const o=t[r]||0;let a=n[r];const l=Array.isArray(e[r]),c=Array.isArray(a);!l&&c?e[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(e[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(e[r]=o+(a-o)*i))}}_handleRelativeValue(e,t){return typeof t!="string"?t:t.charAt(0)==="+"||t.charAt(0)==="-"?e+parseFloat(t):parseFloat(t)}_swapEndStartRepeatValues(e){const t=this._valuesStartRepeat[e],n=this._valuesEnd[e];typeof n=="string"?this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(n):this._valuesStartRepeat[e]=n,this._valuesEnd[e]=t}}const Lg=Qu,zg=Ci.nextId,Fg=es.getAll.bind(es),Gg=es.removeAll.bind(es),Bg=es.add.bind(es),jg=es.remove.bind(es),Yg=es.update.bind(es),he={now:Fn,Sequence:Ci,Easing:xa,Interpolation:wa,Group:Ku,Tween:Lg,nextId:zg,getAll:Fg,removeAll:Gg,add:Bg,remove:jg,update:Yg};function Hg(s){switch(s){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const Wg={attributeName:["display"],values:[["block","block"]],immediate:!1},qt={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class Je{objects=[];animateObjects=[];currentAnimateName;constructor(){}fromDOM(e){return this.objects.forEach(t=>{t.app.destroy()}),this.objects=[],(Array.isArray(e)?e:[e]).forEach(t=>{this.objects.push({el:t,app:new ft(t),originAttrs:{}})}),this}static toTween(e,t,n){const i=n?.onStart||(()=>{}),r=n?.onUpdate||(()=>{}),o=n?.onComplete||(()=>{}),a=n?.duration||1e3,l=n?.delay||0,c=n?.easeFunction||he.Easing.Linear.None,u=n?.repeat||0,h=n?.yoyo||!1,f=new he.Tween(e).to(t,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(i).onUpdate((d,m)=>{r(d,m)}).onComplete(o);return n?.interpolationFunction&&f.interpolation(n.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),We.run(()=>{const m=f.update(d?.());if(n?.precision){let v=!0;for(let b in e)fi(e[b],t[b],n.precision)||(v=!1);return v?!1:m}return m})}}}static toTweenGroup(e,t){if(e instanceof Qu)return n=>{e.start(),t?.onGroupStart?.(),We.run(()=>{const i=he.update(n?.());return i?t?.onGroupUpdate?.():t?.onGroupComplete?.(),i})};{const n=new he.Group;return e.forEach(i=>{n.add(i)}),i=>{e.forEach(r=>r.start()),t?.onGroupStart?.(),We.run(()=>{const r=n.update(i?.());return r?t?.onGroupUpdate?.():t?.onGroupComplete?.(),r})}}}static toTweenCSS(e,t,n,i){K.add3DSupport(e);const r=i?.onUpdate||(()=>{});return Je.toTween(t,n,Object.assign(i||{},{onUpdate:(o,a)=>{const l=K.convertAttrs(e,o);K.setStyle(e,l),r(o,a)}}))}addAnimateObject(e=Wg,t=qt,n=0,i=!1){const r=t.easeName||"linear",o=t.dur||300,a=t.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(Hg(r))});const c=this.objects[n];return this.animateObjects=i?[]:this.animateObjects,this.animateObjects.push({el:c.el,app:c.app,originAttrs:c.originAttrs,attributeName:e.attributeName,values:e.values,immediate:e.immediate||!1,easeName:r,begin:t.begin||0,dur:o,repeatCount:t.repeatCount||1,direction:t.direction||"normal",fill:t.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>o*u),keySplines:l,calcMode:t.calcMode||"linear",onComplete:t.onComplete||(()=>{})}),this}resetAnimateObjects(e,t,n,i,r=qt,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=Ut(o,0,h);let f=o-1;f=Ut(f,0,h);let d=o+1;d=Ut(d,0,h);const m=this.objects[o],v=this.objects[f],b=this.objects[d];if(v&&f!==o){const C=e(v);C&&(this.addAnimateObject(C,r,f,a),a=!1,l=!0)}if(m){const C=t(m);C&&(this.addAnimateObject(C,r,o,a),a=!1,c=!0)}if(b&&d!==o){const C=n(b);C&&(this.addAnimateObject(C,r,d,a),a=!1,u=!0)}this.objects.forEach((C,O)=>{if(!(O==f&&l||O==o&&c||O==d&&u)){const $=i(C);$&&(this.addAnimateObject($,r,O,a),a=!1)}})}toCSS(e,...t){if(this.objects.length==0)return;this.currentAnimateName=e,this[e](...t),K.add3DSupport(this.objects[0].el),this.objects.forEach((r,o)=>{K.setStyle(r.el,{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let n=0;const i=()=>{this.animateObjects.forEach((r,o)=>{let a=[],l=[];Array.isArray(r.attributeName)?(a=r.attributeName,l=r.values):r.attributeName&&(a=[r.attributeName],l=[r.values]);const c=r.keyTimes.length;let u=r.begin;r.keyTimes.forEach((h,f)=>{const d={};a.forEach((v,b)=>{const C=l[b][r.direction=="reverse"?c-1-f:f];d[v]=C});const m=K.convertAttrs(r.el,d,r.originAttrs);f==0||r.immediate?K.setStyle(r.el,Object.assign(m,{transition:"none"})):(We.runAccurateSetTimeout(()=>{K.setStyle(r.el,Object.assign(m,{transition:`all ${r.realKeyTimes[f]}ms cubic-bezier(${r.keySplines[f-1].join(",")})`}))},u),u+=r.realKeyTimes[f])}),We.runAccurateSetTimeout(()=>{r.fill==="remove"&&K.setStyle(r.el,r.originAttrs||{}),o==this.animateObjects.length-1&&(r.onComplete?.(),this.currentAnimateName==e&&(r.repeatCount=="infinite"||typeof r.repeatCount=="number"&&++n<r.repeatCount)&&i())},r.begin+r.dur)})};i()}slideLeft(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.app.width,0],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[n.app.width,0],[n.app.width,0]]],immediate:!0}),e,t)}slideRight(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.app.width,0],[0,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-n.app.width,0],[-n.app.width,0]]],immediate:!0}),e,t)}slideDown(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-n.app.height],[0,-n.app.height]]],immediate:!0}),e,t)}slideUp(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,n.app.height],[0,n.app.height]]],immediate:!0}),e,t)}flipLeft(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipRight(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipDown(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}flipUp(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popIn(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}popOut(e=qt,t=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}rotate(e=qt,t=this.objects.length-1){Object.assign(e,{keyTimes:[0,1]});const n=e.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),e,t)}}class Xg extends Og{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(e){super(e),this.on("tag",(t,n)=>{switch(this.text="",this.currentItem={type:t},t){case"g":this.groups.push(this.currentItem);break}this.processAttrs(t,n)}),this.on("text",t=>{if(this.currentItem.type=="style"){try{const n=am(t);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: "+t)}return}this.text+=t}),this.on("/tag",(t,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),Sa(this.currentItem.style,this.currentItem,ka)}switch(this.processAttrs(t,n),t){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(e,t){let n=[],i;switch(e){case"svg":let r="",o="";if(t.width&&t.height)r=t.width,o=t.height;else if(t.viewBox){const a=t.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 t.x1=="number"&&typeof t.y1=="number"&&typeof t.x2=="number"&&typeof t.y2=="number"&&(this.currentItem.path="M"+[t.x1,t.y1,t.x2,t.y2]);break;case"stop":i={},t.style&&Sa(t.style,i),i.offset=i.offset||t.offset,i.color=i["stop-color"]||t["stop-color"],i.opacity=i["stop-opacity"]||t["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+Ca(parseFloat(t.x1),parseFloat(t.y1),parseFloat(t.x2),parseFloat(t.y2),parseFloat(t.x1)+100,parseFloat(t.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 t){const o=t[r];if(ka.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"&&Sa(o,this.currentItem,ka),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 Ca(s,e,t,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-t,a=e-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Ca(s,e,i,r)-Ca(t,n,i,r)}function Sa(s,e,t){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()});(!t||t.includes(l))&&(e[l]=a[1].replace(i,""))}}const ka=["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 Ju{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e,t,n){this.app=e,this.rootEl=ct.createSVGElement("svg"),K.empty(this.app.container),K.insert(this.app.container,this.rootEl),t&&n?this.setSize(t,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const i=this.shapes.length;let r=0;for(;r<i;r++){const o=this.shapes[r];if(!(o instanceof we)&&!o.pathd){o.isMouseIn=!1,o.mouseX=0,o.mouseY=0;continue}const a=o instanceof we&&(o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||o.pathd instanceof we&&(o.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||!1;if(o.isMouseIn=a,o.mouseX=this.app.mousePoint.x,o.mouseY=this.app.mousePoint.y,a&&(this.currentMouseInShapeID=o.id,o.enableDrag)){this.currentEnableDragMouseInShapeID=o.id,this.shapes.filter(l=>l.id!==o.id).forEach(l=>{l instanceof ut&&(l.isMouseIn=!1,l.mouseX=0,l.mouseY=0)});break}}r>=i&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing",this.shapes.forEach(e=>{e.autoRender&&this.path(e.shapeGroup||e)}))):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}setSize(e,t){return K.attribute(this.rootEl,{viewBox:`0 0 ${e} ${t}`,width:`${e}`,height:`${t}`}),this}download(){return ct.downloadFromSVGElement(this.rootEl)}path(e){[...Array.isArray(e)?e:[e]].forEach(t=>{if(t instanceof ls){t.frameUpdate(),t.shapes.forEach(n=>this.path(n));return}if(!t.el){if(t instanceof $r)t.el=this.text(t.text,t.x,t.y,nu(t.attrs,(n,i)=>typeof i=="string"));else if(t instanceof Nt)t.el=ct.createSvgPath(`M ${t.fromX} ${t.fromY} `+t.toSVGPathD()),K.insert(this.rootEl,t.el);else if(t instanceof we)t.el=ct.createSvgPath(t.toSVGPathD()),K.insert(this.rootEl,t.el);else if(t instanceof ut){const n=we.fromShape(t)||t;t.el=n.el=ct.createSvgPath(n.toSVGPathD()),K.insert(this.rootEl,t.el),n instanceof we&&(t.pathd=n)}}this.shapes.find(n=>n.id==t.id)||this.shapes.push(t),this.update(t)})}update(e){[...Array.isArray(e)?e:[e]].forEach(t=>{const n=[];t instanceof ls?(t.frameUpdate(),n.push(...t.shapes)):n.push(t),n.forEach(i=>{if(i.followMouse&&(!fi(i.x,this.app.mousePoint.x,5)||!fi(i.y,this.app.mousePoint.y,5))&&(i.rotateTo(this.app.mousePoint),i.followTo(this.app.mousePoint)),i.targetToAfterDragFree&&(this.isMouseDown||i.nextFrameEaseTo({x:i.targetToAfterDragFree.targetX,y:i.targetToAfterDragFree.targetY},{easing:i.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==i.id){const{dx:r,dy:o}=i.centerDiff,a=i.x,l=i.y;if(i.x=this.app.mousePoint.x-r,i.y=this.app.mousePoint.y-o,i.alongPath){const c=i.alongPath.closestPoint(i.x,i.y);i.x=c.point.x,i.y=c.point.y}i.isDragging=!0,i.emit("moving",i.x-a,i.y-l)}else i instanceof ut&&(i.isDragging=!1);(i instanceof Nt||i instanceof we||i.pathd instanceof we)&&this.attr(i,"d",i instanceof Nt?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof we?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof $r&&(i.setAttr("x",String(i.x)),i.setAttr("y",String(i.y))),this.attr(i,nu(i.attrs,(r,o)=>typeof o=="string")),i.frameUpdate(),i instanceof we?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),i.el&&(i.isShow?K.show(i.el):K.hide(i.el))})})}click(e){const t=()=>{this.shapes.forEach(n=>{(n instanceof we&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||n.pathd instanceof we&&(n.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)))&&e(n)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}delete(e){[...e instanceof ls?e.shapes:[e]].forEach(t=>{t.el&&K.remove(t.el),t.pathd?.el&&K.remove(t.pathd?.el),delete t.el,delete t.pathd,this.shapes=this.shapes.filter(n=>n.id!==t.id)})}clear(){this.shapes.forEach(e=>{e.el&&K.remove(e.el),e.pathd?.el&&K.remove(e.pathd?.el),delete e.el,delete e.pathd}),K.empty(this.rootEl),this.shapes=[]}attr(e,t,n){const i=e.el||e;return i instanceof SVGElement?t===void 0&&n===void 0?K.attribute(i):typeof t=="string"&&n===void 0?K.attribute(i,Xt(t))||"":(typeof t=="object"?K.attribute(i,t):typeof t=="string"&&n!==void 0&&K.attribute(i,Xt(t),n),this):this}circle(e,t,n){return this.path(new Dt({x:e,y:t,radius:n}))}circleEl(e,t,n){const i=ct.createSVGElement("circle",{cx:String(e),cy:String(t),r:String(n)});return K.insert(this.rootEl,i),i}ellipse(e,t,n,i){return this.path(new Qg({x:e,y:t,rx:n,ry:i}))}ellipseEl(e,t,n,i){const r=ct.createSVGElement("ellipse",{cx:String(e),cy:String(t),rx:String(n),ry:String(i)});return K.insert(this.rootEl,r),r}rect(e,t,n,i){return this.path(new Ct({x:e,y:t,width:n,height:i}))}rectEl(e,t,n,i){const r=ct.createSVGElement("rect",{x:String(e),y:String(t),width:String(n),height:String(i)});return K.insert(this.rootEl,r),r}image(e,t,n,i,r){}text(e,t,n,i){const r=ct.createSVGElement("text",{x:String(t),y:String(n)});return K.html(r,e),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),K.insert(this.rootEl,r),r}textWithTspan(e,t,n,i){const r=i?.["line-height"]||"1.2em",o=ct.createSVGElement("text",{x:String(t),y:String(n)});return e.split(`
55
- `).forEach((a,l)=>{if(a.trim()){const c=ct.createSVGElement("tspan",{x:String(t),dy:l>0?r:"0"});K.html(c,a),K.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),K.insert(this.rootEl,o),o}}const eh=Ug("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function Ug(s,e=10){const t={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],e);t[r]="&#"+o+";"}return t["\\xa0"]="&#160;",t}function Lt(s,e){const t=Object.keys(e);for(let n=0;n<t.length;n++)s=s.replace(new RegExp("{"+t[n]+"}","gi"),""+e[t[n]]);return s}function Dr(s){let e,t;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";e="";do for(e="",t=0;t<12;t++)e+=n[Math.floor(Math.random()*n.length)];while(s[e]);return e}function qg(s){const e={left:"start",right:"end",center:"middle",start:"start",end:"end"};return e[s]||e.start}function Zg(s){const e={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return e[s]||e.alphabetic}const ki={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class Ea{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}addColorStop(e,t){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+e),t.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(t);r&&(n.setAttribute("stop-color",Lt("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",t);this.__root.appendChild(n)}}class th{__root;__ctx;constructor(e,t){this.__root=e,this.__ctx=t}}class Nr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:e,width:t=500,height:n=500}){e?(this.__canvas=e,this.__ctx=e.getContext("2d"),this.width=e.width,this.height=e.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=t,this.height=n),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const e=Object.keys(ki);for(let t=0,n=e.length;t<n;t++){const i=e[t];this[i]=ki[i].canvas}}__getStyleState(){const e={},t=Object.keys(ki);for(let n=0,i=t.length;n<i;n++){const r=t[n];e[r]=this[r]}return e}__applyStyleState(e){const t=Object.keys(e);for(let n=0,i=t.length;n<i;n++){const r=t[n];this[r]=e[r]}}__createElement(e,t={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",e),r=Object.keys(t);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,t[a])}return i}__applyStyleToCurrentElement(e){let t=this.__currentElement;const n=this.__currentElementsToStyle;n&&(t.setAttribute(e,""),t=n.element,n.children.forEach(r=>{r.setAttribute(e,"")}));const i=Object.keys(ki);for(let r=0;r<i.length;r++){const o=ki[i[r]],a=this[i[r]];if(o.apply){if(a instanceof th){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}t.setAttribute(o.apply,Lt("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Ea)t.setAttribute(o.apply,Lt("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(e)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(c){t.setAttribute(o.svgAttr,Lt("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),t.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=e+"-"+o.svgAttr,t.getAttribute(l)))continue;l&&t.setAttribute(l,a)}}}}__closestGroupOrSvg(e){return e=e||this.__currentElement,e.nodeName==="g"||e.nodeName==="svg"?e:this.__closestGroupOrSvg(e.parentNode)}getSerializedSvg(e){let t=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(t)&&(t=t.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),e){const i=Object.keys(eh);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=eh[a],c=new RegExp(a,"gi");c.test(t)&&(t=t.replace(c,l))}}return t}getSvg(){return this.__rootSVG}save(){const e=this.__createElement("g"),t=this.__closestGroupOrSvg();this.__groupStack.push(t),t.appendChild(e),this.__currentElement=e,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const e=this.__groupStack.pop();e?this.__currentElement=e:this.__currentElement=this.__rootSVG.childNodes[1];const t=this.__styleStack.pop();t&&this.__applyStyleState(t)}__addTransform(e){const t=this.__closestGroupOrSvg();if(t.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:t,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");t.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=e,this.__currentElement.setAttribute("transform",n)}scale(e,t){t===void 0&&(t=e),this.__addTransform(Lt("scale({x},{y})",{x:e,y:t}))}rotate(e){const t=e*180/Math.PI;this.__addTransform(Lt("rotate({angle},{cx},{cy})",{angle:t,cx:0,cy:0}))}translate(e,t){this.__addTransform(Lt("translate({x},{y})",{x:e,y:t}))}transform(e,t,n,i,r,o){this.__addTransform(Lt("matrix({a},{b},{c},{d},{e},{f})",{a:e,b:t,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const e=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(e),this.__currentElement=e}__applyCurrentDefaultPath(){const e=this.__currentElement;e.nodeName==="path"&&e.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(e){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=e}moveTo(e,t){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:e,y:t},this.__addPathCommand(Lt("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(e,t){this.__currentPosition={x:e,y:t},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Lt("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Lt("M {x} {y}",this.__currentPosition))}bezierCurveTo(e,t,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Lt("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:e,cp1y:t,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(e,t,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Lt("Q {cpx} {cpy} {x} {y}",{cpx:e,cpy:t,x:n,y:i}))}normalize(e){const t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}arcTo(e,t,n,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===e&&a===t||e===n&&t===i||r===0){this.lineTo(e,t);return}const l=this.normalize([o-e,a-t]),c=this.normalize([n-e,i-t]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(e,t);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),d=r/Math.sin(h/2),m=e+d*f[0],v=t+d*f[1],b=[-l[1],l[0]],C=[c[1],-c[0]],O=function(Y){const L=Y[0];return Y[1]>=0?Math.acos(L):-Math.acos(L)},$=O(b),S=O(C);this.lineTo(m+b[0]*r,v+b[1]*r),this.arc(m,v,r,$,S)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(e,t,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+i),this.lineTo(e,t+i),this.lineTo(e,t),this.closePath()}fillRect(e,t,n,i){const r=this.__createElement("rect",{x:e,y:t,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(e,t,n,i){const r=this.__createElement("rect",{x:e,y:t,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const t=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],t&&this.__addTransform(t)}clearRect(e,t,n,i){if(e===0&&t===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:e,y:t,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(e,t,n,i){const r=this.__createElement("linearGradient",{id:Dr(this.__ids),x1:e+"px",x2:n+"px",y1:t+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new Ea(r,this)}createRadialGradient(e,t,n,i,r,o){const a=this.__createElement("radialGradient",{id:Dr(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:e+"px",fy:t+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Ea(a,this)}__parseFont(){const t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),n={style:t[1]||"normal",size:t[4]||"10px",family:t[6]||"sans-serif",weight:t[3]||"normal",decoration:t[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(e,t){if(e.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.href),n.appendChild(t),n}return t}__applyText(e,t,n,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:t,y:n,"text-anchor":qg(this.textAlign),"dominant-baseline":Zg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(e)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(e,t,n){this.__applyText(e,t,n,"fill")}strokeText(e,t,n){this.__applyText(e,t,n,"stroke")}measureText(e){return this.__ctx.font=this.font,this.__ctx.measureText(e)}arc(e,t,n,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=e+n*Math.cos(r),l=t+n*Math.sin(r),c=e+n*Math.cos(i),u=t+n*Math.sin(i),h=o?0:1;let f=0,d=r-i;d<0&&(d+=2*Math.PI),o?f=d>Math.PI?0:1:f=d>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Lt("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const e=this.__closestGroupOrSvg(),t=this.__createElement("clipPath"),n=Dr(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),e.removeChild(this.__currentElement),t.setAttribute("id",n),t.appendChild(this.__currentElement),this.__SVGdefs.appendChild(t),e.setAttribute("clip-path",Lt("url(#{id})",{id:n})),e.appendChild(i),this.__currentElement=i}drawImage(...e){let t=e[0],n,i,r,o,a=0,l=0,c,u,h,f,d,m,v,b;if(e.length===3)n=e[1],i=e[2],c=t.width,u=t.height,r=c,o=u;else if(e.length===5)n=e[1],i=e[2],r=e[3],o=e[4],c=t.width,u=t.height;else if(e.length===9)a=e[1],l=e[2],c=e[3],u=e[4],n=e[5],i=e[6],r=e[7],o=e[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const C=this.__closestGroupOrSvg();this.__currentElement;const O="translate("+n+", "+i+")";if(t instanceof Nr){if(h=t.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)b=f.childNodes[0].getAttribute("id"),this.__ids[b]=b,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const $=d.getAttribute("transform");let S;$?S=$+" "+O:S=O,d.setAttribute("transform",S),C.appendChild(d)}}}else(t.nodeName==="CANVAS"||t.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==t.width||u!==t.height)&&(v=this.__document.createElement("canvas"),v.width=r,v.height=o,v.getContext("2d")?.drawImage(t,a,l,c,u,0,0,r,o),t=v),m.setAttribute("transform",O),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),C.appendChild(m))}createPattern(e,t){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Dr(this.__ids);let r;return n.setAttribute("id",i),e.nodeName==="CANVAS"||e.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+e.width),r.setAttribute("height",""+e.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):e instanceof Nr&&(n.setAttribute("width",""+e.width),n.setAttribute("height",""+e.height),n.appendChild(e.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new th(n,this)}setLineDash(e){e&&e.length>0?this.lineDash=e.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Ta{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(e,t,n,i=!1){this.canvas=e,this.context=e.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new Nr({canvas:this.canvas,width:t||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(e){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=e,this.customContext&&(this.customContext.lineWidth=e)}get lineWidth(){return this.context.lineWidth}set lineCap(e){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=e,this.customContext&&(this.customContext.lineCap=e)}get lineCap(){return this.context.lineCap}set lineJoin(e){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=e,this.customContext&&(this.customContext.lineCap=e)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(e){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=e,this.customContext&&(this.customContext.lineDashOffset=e)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(e){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=e,this.customContext&&(this.customContext.miterLimit=e)}get miterLimit(){return this.context.miterLimit}set globalAlpha(e){this.context.globalAlpha=e,this.customContext&&(this.customContext.globalAlpha=e)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(e){this.hasSetCustomFillStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.fillStyle=e,this.customContext&&(this.customContext.fillStyle=e)):(this.context.fillStyle=e.gradient,this.customContext&&(this.customContext.fillStyle=e.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(e){this.hasSetCustomStrokeStyle=!0,typeof e=="string"||e instanceof CanvasGradient||e instanceof CanvasPattern?(this.context.strokeStyle=e,this.customContext&&(this.customContext.strokeStyle=e)):(this.context.strokeStyle=e.gradient,this.customContext&&(this.customContext.strokeStyle=e.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(e){this.context.font=e,this.customContext&&(this.customContext.font=e)}get font(){return this.context.font}set textBaseline(e){this.context.textBaseline=e,this.customContext&&(this.customContext.textBaseline=e)}get textBaseline(){return this.context.textBaseline}set textAlign(e){this.context.textAlign=e,this.customContext&&(this.customContext.textAlign=e)}get textAlign(){return this.context.textAlign}fill(e){return e?this.context.fill(e):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(e,t,n,i){return this.context.fillRect(e,t,n,i),this.customContext&&this.customContext.fillRect(e,t,n,i),this}fillText(e,t,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(e,t,n,i),this.customContext&&this.customContext.fillText(e,t,n),this}setLineDash(e){return this.context.setLineDash(e),this.customContext&&this.customContext.setLineDash(e),this}stroke(e){return e?this.context.stroke(e):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(e,t,n,i){return this.context.strokeText(e,t,n,i),this.customContext&&this.customContext.strokeText(e,t,n),this}strokeRect(e,t,n,i){return this.context.strokeRect(e,t,n,i),this.customContext&&this.customContext.strokeRect(e,t,n,i),this}measureText(e){return this.context.measureText(e)}clearRect(e=0,t=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(e,t,n,i),this.customContext&&this.customContext.clearRect(e,t,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(e=this.currentPath2D,t=this.currentMatrix){const n=new Path2D;n.addPath(e,t),this.currentPath2D=n}isPointInStroke(...e){return e[0]instanceof Path2D?this.context.isPointInStroke(e[0],e[1],e[2]):this.context.isPointInStroke(e[0],e[1])}isPointInPath(...e){return e[0]instanceof Path2D?this.context.isPointInPath(e[0],e[1],e[2]):this.context.isPointInPath(e[0],e[1])}translate(e,t){return this.context.translate(e,t),this.customContext&&this.customContext.translate(e,t),this.currentMatrix.translate(e,t),this.changePath2D(),this}rotate(e,t=0,n=0){return this.translate(t,n),this.context.rotate(e),this.customContext&&this.customContext.rotate(e),this.currentMatrix.rotate(e),this.translate(-t,-n),this.changePath2D(),this}scale(e,t=e,n=0,i=0){return this.translate(n,i),this.context.scale(e,t),this.customContext&&this.customContext.scale(e,t),this.currentMatrix.scale(e,t),this.translate(-n,-i),this.changePath2D(),this}moveTo(e,t){return this.context.moveTo(e,t),this.customContext&&this.customContext.moveTo(e,t),this.currentPath2D.moveTo(e,t),this}lineTo(e,t){return this.context.lineTo(e,t),this.customContext&&this.customContext.lineTo(e,t),this.currentPath2D.lineTo(e,t),this}arc(e,t,n,i,r,o){return this.context.arc(e,t,n,i,r,o),this.customContext&&this.customContext.arc(e,t,n,i,r,o?-1:1),this.currentPath2D.arc(e,t,n,i,r,o),this}arcTo(e,t,n,i,r){return this.context.arcTo(e,t,n,i,r),this.customContext&&this.customContext.arcTo(e,t,n,i,r),this.currentPath2D.arcTo(e,t,n,i,r),this}ellipse(e,t,n,i,r,o,a,l){return this.context.ellipse(e,t,n,i,r,o,a,l),this.currentPath2D.ellipse(e,t,n,i,r,o,a,l),this}quadraticCurveTo(e,t,n,i){return this.context.quadraticCurveTo(e,t,n,i),this.customContext&&this.customContext.quadraticCurveTo(e,t,n,i),this.currentPath2D.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,r,o){return this.context.bezierCurveTo(e,t,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(e,t,n,i,r,o),this.currentPath2D.bezierCurveTo(e,t,n,i,r,o),this}rect(e,t,n,i){return this.context.rect(e,t,n,i),this.customContext&&this.customContext.rect(e,t,n,i),this.currentPath2D.rect(e,t,n,i),this}createLinearGradient(e,t,n,i,r){const o=this.context.createLinearGradient(e,t,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(e,t,n,i,r,o,a){const l=this.context.createRadialGradient(e,t,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(e,...t){if(t.length===0)this.context.drawImage(e,0,0);else if(t.length===2){const n=t[0],i=t[1];this.context.drawImage(e,n,i)}else if(t.length===4){const n=t[0],i=t[1],r=t[2],o=t[3];this.context.drawImage(e,n,i,r,o)}else if(t.length===8){const n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],l=t[5],c=t[6],u=t[7];this.context.drawImage(e,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+t.length);return this.customContext&&this.customContext.drawImage(e,...t),this}getImageData(e=0,t=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(e,t,n,i,r)}putImageData(e,t=0,n=0){return this.context.putImageData(e,t,n)}createPattern(e,t){return this.context.createPattern(e,t)}toRawSVG(){if(this.customContext){const e=this.customContext.getSerializedSvg(!0),t=this.customContext.getSvg();return{raw:e,element:t}}else return{raw:"",element:null}}}class Nt extends ut{fromX;fromY;constructor(e){super(e),this.fromX=e?.fromX||0,this.fromY=e?.fromY||0}static fromSVGPathData(e,t){if(e.length<3)throw new Error("Line 参数个数错误");if(e[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new Nt({x:e[1],y:e[2],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.lineTo(this.x,this.y)}getBoundingClientRect(){const e=Vn(this.fromX,this.fromY,this.x,this.y);if(e===0){const t=Math.min(this.x,this.fromX),n=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new _i({x:t,y:n,width:i-t,height:r-n})}else{const t=Math.sin(e),n=Math.cos(e),i=n*this.fromX-t*this.fromY,r=n*this.x-t*this.y,o=n*this.fromY+t*this.fromX,a=n*this.y+t*this.x;return new _i({x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)})}}interpolate(e){return{x:this.fromX+e*(this.x-this.fromX),y:this.fromY+e*(this.y-this.fromY)}}intersection(e){const t=this.fromX,n=this.fromY,i=e.x,r=e.y,o=this.x-t,a=e.fromX-i;if(!o&&!a)return null;const l=(this.y-n)/o,c=(e.fromY-r)/a;if(o){if(!a)return{x:i,y:l*(i-t)+n}}else return{x:t,y:c*(t-i)+r};const u=(-c*i+r+l*t-n)/(l-c),h=l*(u-t)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}class Oa extends Nt{c1x;c1y;c2x;c2y;constructor(e){super(e),this.c1x=e.c1x,this.c1y=e.c1y,this.c2x=e.c2x,this.c2y=e.c2y}static fromSVGPathData(e,t){if(e.length<7)throw new Error("CubicBezier 参数个数错误");if(e[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Oa({c1x:e[1],c1y:e[2],c2x:e[3],c2y:e[4],x:e[5],y:e[6],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(e){e.beginPath(),e.moveTo(this.fromX,this.fromY),e.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const e=ct.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new _i({x:e.min.x,y:e.min.y,width:e.max.x-e.min.x,height:e.max.y-e.min.y})}interpolate(e){return{x:Math.pow(1-e,3)*this.fromX+3*Math.pow(1-e,2)*e*this.c1x+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2x+Math.pow(e,3)*this.x,y:Math.pow(1-e,3)*this.fromY+3*Math.pow(1-e,2)*e*this.c1y+3*Math.pow(1-e,1)*Math.pow(e,2)*this.c2y+Math.pow(e,3)*this.y}}length(e=1){return ct.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,e)}getTatLen(e){const t=this.fromX,n=this.fromY,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(e<0||ct.bezlen(t,n,i,r,o,a,l,c)<e)return 0;let u=1,h=u/2,f=u-h,d,m=.01;for(d=ct.bezlen(t,n,i,r,o,a,l,c,f);Math.abs(d-e)>m;)h/=2,f+=(d<e?1:-1)*h,d=ct.bezlen(t,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(e){const t=this.getTatLen(e),n=this.fromX,i=this.fromY,r=this.c1x,o=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-t,f=Math.pow(h,3),d=Math.pow(h,2),m=t*t,v=m*t,b=f*n+d*3*t*r+h*3*t*t*a+v*c,C=f*i+d*3*t*o+h*3*t*t*l+v*u,O=n+2*t*(r-n)+m*(a-2*r+n),$=i+2*t*(o-i)+m*(l-2*o+i),S=r+2*t*(a-r)+m*(c-2*a+r),Y=o+2*t*(l-o)+m*(u-2*l+o),L=h*n+t*r,H=h*i+t*o,fe=h*a+t*c,ye=h*l+t*u,ge=90-Math.atan2(O-S,$-Y)*180/Math.PI;return{x:b,y:C,m:{x:O,y:$},n:{x:S,y:Y},start:{x:L,y:H},end:{x:fe,y:ye},alpha:ge}}}const nn=Oa;class Sn extends Nt{cx;cy;isLineThrough;constructor(e){super(e),this.cx=e.cx,this.cy=e.cy,this.isLineThrough=typeof e.isLineThrough=="boolean"?e.isLineThrough:!0}static fromSVGPathData(e,t){if(e.length<5)throw new Error("QuadraticBezier 参数个数错误");if(e[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new Sn({cx:e[1],cy:e[2],x:e[3],y:e[4],fromX:t?.x,fromY:t?.y})}toSVGPathData(){if(this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,t=this.cy*2-(this.fromY+this.y)/2;return["Q",e,t,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(e){if(e.beginPath(),e.moveTo(this.fromX,this.fromY),this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,n=this.cy*2-(this.fromY+this.y)/2;e.quadraticCurveTo(t,n,this.x,this.y)}else e.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(e){return{x:(1-e)*(1-e)*this.fromX+2*(1-e)*e*this.cx+e*e*this.x,y:(1-e)*(1-e)*this.fromY+2*(1-e)*e*this.cy+e*e*this.y}}}const Kg=Sn;class Pa extends Nt{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(e){super(e),this.rx=e.rx,this.ry=e.ry,this.xAxisRotate=e?.xAxisRotate??0,this.largeArcFlag=e?.largeArcFlag??1,this.sweepFlag=e?.sweepFlag??1}static fromSVGPathData(e,t){if(e.length<8)throw new Error("Arc 参数个数错误");if(e[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Pa({rx:e[1],ry:e[2],xAxisRotate:e[3],largeArcFlag:e[4],sweepFlag:e[5],x:e[6],y:e[7],fromX:t?.x,fromY:t?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(e){e.beginPath();const[t,n,i,r,o,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);e.ellipse(t-this.x,n-this.y,i,r,o,a,l,!this.sweepFlag)}convertSVGToCanvas(e,t,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(e-n)/2,f=(t-i)/2,d=Math.cos(u)*h+Math.sin(u)*f,m=-Math.sin(u)*h+Math.cos(u)*f,v=d*d/(r*r)+m*m/(o*o);if(v>1){const Me=Math.sqrt(v);throw r=Me*r,o=Me*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const b=Math.sqrt((r*r*o*o-r*r*m*m-o*o*d*d)/(r*r*m*m+o*o*d*d)),C=l!=c?1:-1,O=C*b*r*m/o,$=C*b*-o*d/r,S=(e+n)/2,Y=(t+i)/2,L=Math.cos(u)*O-Math.sin(u)*$+S,H=Math.sin(u)*O+Math.cos(u)*$+Y,fe=(Me,Ae,Ue,qe)=>(Me*qe>=Ae*Ue?1:-1)*Math.acos((Me*Ue+Ae*qe)/(Math.sqrt(Me*Me+Ae*Ae)*Math.sqrt(Ue*Ue+qe*qe))),ye=fe(1,0,e-L,t-H)-u,ge=fe(e-L,t-H,n-L,i-H);return[L,H,r,o,u,ye,ye+ge]}}const Ia=Pa;class we extends ut{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(e){super(e),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(e){if(e instanceof Ia){Bu(this.prevPathX,this.prevPathY,e.x,e.y,e.largeArcFlag,e.sweepFlag,e.rx,e.ry,e.xAxisRotate).forEach(c=>{const[u,h,f,d,m,v,b,C]=c;this.normalizedLines.push(new nn({c1x:f,c1y:d,c2x:m,c2y:v,x:b,y:C,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=b,this.prevPathY=C});return}let t,n,i,r,o,a;e instanceof nn?(t=e.c1x,n=e.c1y,i=e.c2x,r=e.c2y,o=e.x,a=e.y):e instanceof Kg?[t,n,i,r,o,a]=va(this.prevPathX,this.prevPathY,e.cx,e.cy,e.x,e.y):[t,n,i,r,o,a]=bi(this.prevPathX,this.prevPathY,e.x,e.y),this.normalizedLines.push(new nn({c1x:t,c1y:n,c2x:i,c2y:r,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromSVGPathD(e="M0,0",t){const n=new we(t);return n.updateFromSVGPathD(e),n}static fromSVGPathData(e,t){const n=new we(t);return n.updateFromSVGPathData(e),n}static fromShape(e,t){const n=new we(Object.assign({attrs:{...e.attrs}},t));return n.updateFromShape(e),n}updateFromShape(e){this.degree=e.degree,this.scalexOnOrigin=e.scalexOnOrigin,this.scaleyOnOrigin=e.scaleyOnOrigin,this.skewxDegreeOnOrigin=e.skewxDegreeOnOrigin,this.skewyDegreeOnOrigin=e.skewyDegreeOnOrigin,this.updateFromSVGPathD(e.toSVGPathD())}updateFromSVGPathD(e){ct.isSVGPath(e)&&this.updateFromSVGPathData(ct.parseSVGPath(e))}updateFromSVGPathData(e){this.normalizedLines=[];const t=ct.normalizeSVGPath(ct.absolutizeSVGPath(e));for(let n=0,i=t.length;n<i;n++){const r=t[n];if(r[0]=="M"){this.prevPathX=this.startPathX=r[1],this.prevPathY=this.startPathY=r[2];continue}this.appendLine(new nn({c1x:r[1],c1y:r[2],c2x:r[3],c2y:r[4],x:r[5],y:r[6]}))}this.prevDegree=0,this.prevScalexOnOrigin=1,this.prevScaleyOnOrigin=1,this.prevSkewxDegreeOnOrigin=0,this.prevSkewyDegreeOnOrigin=0,this.updateTransform()}toSVGPathData(e=!1){let t=[];t.push(["M",this.startPathX,this.startPathY]);for(let n=0,i=this.normalizedLines.length;n<i;n++)t.push(this.normalizedLines[n].toSVGPathData());return e&&(t=ct.relativeSVGPath(t)),t}toCanvasContext(e){e.beginPath(),e.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(t=>{const[n,...i]=t.toSVGPathData();e.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}static toCanvasContextUsePath2D(e,t,n,i){e.beginPath();const r=new Path2D(t),o=new Path2D;o.addPath(r,new DOMMatrix(n));const a=new Path2D;return a.addPath(o,Cg(i)),e.fill(a),a}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.scalexOnOrigin!=this.prevScalexOnOrigin||this.scaleyOnOrigin!=this.prevScaleyOnOrigin){const e=this.getBoundingClientRect();this.scale(this.scalexOnOrigin/this.prevScalexOnOrigin,this.scaleyOnOrigin/this.prevScaleyOnOrigin,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:e.x+e.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:e.y+e.height/2)}if(this.degree!=this.prevDegree){const e=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:e.x+e.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:e.y+e.height/2)}this.skewxDegreeOnOrigin!=this.prevSkewxDegreeOnOrigin&&this.skewx(this.skewxDegreeOnOrigin-this.prevSkewxDegreeOnOrigin),this.skewyDegreeOnOrigin!=this.prevSkewyDegreeOnOrigin&&this.skewy(this.skewyDegreeOnOrigin-this.prevSkewyDegreeOnOrigin)}transform(e){return{x:this.startPathX,y:this.startPathY}=e.applyToPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=e.applyToPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(t=>{({x:t.fromX,y:t.fromY}=e.applyToPoint(t.fromX,t.fromY)),{x:t.c1x,y:t.c1y}=e.applyToPoint(t.c1x,t.c1y),{x:t.c2x,y:t.c2y}=e.applyToPoint(t.c2x,t.c2y),{x:t.x,y:t.y}=e.applyToPoint(t.x,t.y)}),this}translate(e,t){const n=new Yt().translate(e,t);return this.transform(n),this.prevX=this.x,this.prevY=this.y,this}rotate(e,t=0,n=0){const i=new Yt().rotate(e,t,n);return this.transform(i),this.prevDegree=this.degree,this}scale(e,t=e,n=0,i=0){const r=new Yt().scale(e,t,n,i);return this.transform(r),this.prevScalexOnOrigin=this.scalexOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin,this}skewx(e){const t=new Yt().skew(e,0);return this.transform(t),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin,this}skewy(e){const t=new Yt().skew(0,e);return this.transform(t),this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin,this}trim(){const e=this.getBoundingClientRect();return this.translate(-e.x,-e.y),this}getBoundingClientRect(){let e=0,t=0,n=[],i=[];e=this.startPathX,t=this.startPathY,n.push(e),i.push(t),this.normalizedLines.forEach(c=>{const u=ct.curveDim(e,t,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);n=n.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),e=c.x,t=c.y});const r=Math.min.apply(0,n),o=Math.min.apply(0,i),a=Math.max.apply(0,n),l=Math.max.apply(0,i);return new _i({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((e,t)=>e+=t.length(),0)}getPointAtLength(e){let t=0;const n=this.normalizedLines.length;for(let i=0;i<n;i++){const r=this.normalizedLines[i],o=r.length();if(t+o>=e)return r.getPointAtSegmentLength(e-t);t+=o}return this.normalizedLines[n-1].getPointAtSegmentLength(1)}interpolate(e){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(e);{let t=e*this.normalizedLines.length,n=this.normalizedLines[0];if(t--,t>1)for(let i=1,r=this.normalizedLines.length;i<r&&(n=this.normalizedLines[i],t>1);i++)t-=1;return n.interpolate(t)}}getSubpathsAtLength(e,t,n){let i=null,r=0;const o=new we;o.prevPathX=o.startPathX=e.x,o.prevPathY=o.startPathY=e.y;for(let a=0,l=e.normalizedLines.length;a<l;a++){const c=e.normalizedLines[a],u=c.length();if(r+u>t&&!i){const h=c.getPointAtSegmentLength(t-r);if(o.appendLine(new nn({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),n)return o;i=o,o.prevPathX=h.x,o.prevPathY=h.y,o.appendLine(new nn({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),r+=u;continue}r+=u,o.appendLine(c)}return o}getSubpath(e,t){if(this.getTotalLength()-t<1e-6)return this.getSubpathsAtLength(this,e);{const n=this.getSubpathsAtLength(this,t,1);return e?this.getSubpathsAtLength(n,e):n}}trailPath(e,t=0){const n=this.getTotalLength();return e.updateFromSVGPathD(this.getSubpath(0,t*n).toSVGPathD()),this.getPointAtLength(t*n)}closestPoint(e,t){const n=this.getTotalLength();let i={x:e,y:t},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ga(u.x,u.y,e,t);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=ga(u.x,u.y,e,t),f=r+a,d=this.getPointAtLength(f),m=ga(d.x,d.y,e,t);c>=0&&h<o?(i=u,r=c,o=h):f<=n&&m<o?(i=d,r=f,o=m):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?Vn(l.x,l.y,i.x,i.y):Vn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}isPointInPath(e,t,n){if(n instanceof Ta)return n.isPointInPath(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=n.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(e,t,n){if(n instanceof Ta)return n.isPointInStroke(new Path2D(this.toSVGPathD()),e,t);let i;try{i=new SVGPoint(e,t)}catch{i=n.createSVGPoint(),i.x=e,i.y=t}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}strokeDashToTween(e){const t=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${t} ${t}`,strokeDashoffset:`${t}`});const n=e?.onUpdate;return Je.toTween({offset:t},{offset:0},Object.assign(e||{},{onUpdate:(i,r)=>{this.setAttr("strokeDashoffset",""+Rt(i.offset,2)),n?.(i,r)}}))}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((e,t)=>e.concat([t.c1x,t.c1y,t.c2x,t.c2y,t.x,t.y]),[]))}static fromPolymorphPoints(e){const t=new we({x:e[0],y:e[1]});for(let n=2;n+5<e.length;n+=6)t.appendLine(new nn({c1x:e[n],c1y:e[n+1],c2x:e[n+2],c2y:e[n+3],x:e[n+4],y:e[n+5]}));return t}perimeterPoints(){const e=this.polymorphPoints,t=e.length;let n=e[t-2],i=e[t-1],r=0;for(let o=0;o<t;o+=6)r+=ma(e[o],e[o+1],n,i),n=e[o],i=e[o+1];return Math.floor(r)}fillPathD(e){const t=this.polymorphPoints,n=t.length;let i=e-n;const r=Math.ceil(e/n),o=[];o.push(["M",t[0],t[1]]);let a=2;for(;a+5<=n-1;){const l=t[a++],c=t[a++],u=t[a++],h=t[a++],f=t[a++],d=t[a++];o.push(["C",l,c,u,h,f,d]);let m=0;for(;m<r&&i>0;)o.push(["C",f,d,f,d,f,d]),i-=6,m++}return we.fromSVGPathData(o)}static mixPoints(e,t,n){const i=e.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Rt(e[o]+(t[o]-e[o])*n,6);return r}static getPathInterpolator(e,t){return n=>Math.abs(n-0)<Number.EPSILON?e.toSVGPathD():Math.abs(n-1)<Number.EPSILON?t.toSVGPathD():we.fromPolymorphPoints(this.mixPoints(e.polymorphPoints,t.polymorphPoints,n)).toSVGPathD()}static polymorph(e){if(!e.length)throw new Error("paths 为空!");const t=e.length-1,n=new Array(t);for(let r=0;r<t;r++){const o=Math.max(e[r].polymorphPoints.length,e[r+1].polymorphPoints.length);n[r]=this.getPathInterpolator(e[r].fillPathD(o),e[r+1].fillPathD(o))}const i=we.fromSVGPathD(n[0](0));return r=>{const o=Rt(t*r,6),a=Math.min(Math.floor(o),t-1),l=Rt(o-a,6);i.updateFromSVGPathD(n[a](l));const c=e[a].getAttr("fill","none"),u=e[a+1].getAttr("fill","none");typeof c=="string"&&typeof u=="string"&&i.setAttr("fill",qu(c,u,l));const h=e[a].getAttr("stroke","none"),f=e[a+1].getAttr("stroke","none");return typeof h=="string"&&typeof f=="string"&&i.setAttr("stroke",qu(h,f,l)),i}}static generateRosetta(e,t,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new we({x:e,y:t}),a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=e+2*n*Math.cos(c),h=t+2*n*Math.sin(c);o.appendLine(new Ia({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new Ia({x:e,y:t,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class ys extends Vg{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(e){if(super(e),!e?.svg)return;const t=new Xg(e.svg).parse();for(let n=0,i=t.length;n<i;n++){const r=t[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),e.width){const u=this.svgWidth/this.svgHeight;this.width=e.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!Cn.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=Cn.absolutizeSVGPath(Cn.parseSVGPath(r.path));let l=[],c=[];for(let u=0,h=a.length;u<h;u++){const f=a[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=we.fromSVGPathData(u,e),f=Wu(r.transform??"");h.transform(f),h.attrs={...h.attrs,...o,...e.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.addShape(h)})}}addShape(e,t){(Array.isArray(e)?e:[e]).forEach(n=>{if(n instanceof we)super.addShape(n);else{const i=we.fromShape(n,{...t});i&&super.addShape(i)}})}static fromShape(e,t){const n=new ys;return n.addShape(e,t),n}strokeDashToTween(e){const t=e?.type||"parallel",n=this.shapes.map(i=>i.strokeDashToTween({...e}).tween);switch(t){case"sequence":return n.forEach((i,r)=>{r>0&&n[r-1].chain(i)}),{startAuto:Je.toTweenGroup(n[0],e)};case"parallel":default:return{startAuto:Je.toTweenGroup(n,e)}}}sortPathD(){this.shapes=this.shapes.map(e=>({path:e,perimeter:e.perimeterPoints()})).sort((e,t)=>t.perimeter-e.perimeter).map(e=>e.path)}fillPathDGroup(e){const t=e.shapes.length,n=this.shapes.length;if(t<n)return e.fillPathDGroup(this);for(let i=n;i<t;i++){const r=e.shapes[i].polymorphPoints,o=r[0],a=r[1],l=new we({x:o,y:a,attrs:{...e.shapes[i].attrs}});for(let c=2;c+5<r.length;c+=6)l.appendLine(new nn({c1x:o,c1y:a,c2x:o,c2y:a,x:o,y:a}));this.addShape(l)}}static polymorph(e){if(!e.length)throw new Error("groups 为空!");let t=-1,n=0;e.forEach((a,l)=>{a.sortPathD(),n<a.shapes.length&&(n=a.shapes.length,t=l)}),e.forEach(a=>a.fillPathDGroup(e[t]));const i=[];e.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>r.push(we.polymorph(a)));const o=new ys;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}}class Qg extends ut{rx;ry;constructor(e){super(e),this.rx=e?.rx||0,this.ry=e?.ry||0}getBoundingClientRect(){return new Ct({x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2})}toSVGPathData(){return[["M",this.x,this.y],["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(e){e.beginPath(),e.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),e.closePath()}}class Gn extends ut{points;constructor(e=[]){if(!e.length)throw new Error("points can't be null");super(e[0]),this.points=e}toSVGPathData(){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");const t=[];t.push(["M",this.points[0].x,this.points[0].y]);for(let n=0;n<=e-1;n++)t.push(["L",this.points[n].x,this.points[n].y]);return t.push(["L",this.points[0].x,this.points[0].y]),t}toCanvasContext(e){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");e.beginPath(),e.moveTo(0,0);for(let n=0;n<=t-1;n++)e.lineTo(this.points[n].x-this.points[0].x,this.points[n].y-this.points[0].y);e.lineTo(0,0)}get length(){return this.points.length}addPoint(e){this.points.push(e)}getPoint(e){return this.points[e]}isContainPoint(e,t){const n=this.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===e&&c===t||u===e&&h===t||t===c&&t===h)return!0;if(t>=c&&t<h||t<c&&t>=h){const f=(u-l)/(h-c),d=l+f*(t-c);if(d===e||Math.abs(d-e)<r)return!0;d>e&&(i=!i)}}return i}[Symbol.iterator](){let e=0;return{next:()=>({value:e>=this.length-1?this.points[++e]:void 0,done:e>=this.length})}}static generatePoints(e,t,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=As(a,n);r.push(new Dt({x:e+l,y:t+c}))}return new Gn(r)}}class $r extends ut{text;width=0;height=0;constructor(e){super(e),this.text=e.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.attrs});const t=Js(this.getAttr("fontSize"),10).number,n=Js(this.getAttr("fontWeight"),400).number,i=K.measureText(this.text,t,n);this.width=i.width,this.height=i.height,this.frameUpdate()}frameUpdate(){super.frameUpdate()}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(e){e.fillText(this.text,0,0)}}class Mr extends ut{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["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(e){e.beginPath(),e.moveTo(-50,-25),e.lineTo(0,-25),e.lineTo(0,-50),e.lineTo(50,0),e.lineTo(0,50),e.lineTo(0,25),e.lineTo(-50,25),e.lineTo(-50,-25),e.closePath()}}class Da extends ut{constructor(e){super(e)}toSVGPathData(){return[["M",this.x,this.y],["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(e){e.beginPath(),e.moveTo(4,24),e.lineTo(8,16),e.lineTo(14,10),e.lineTo(15,0),e.lineTo(9,-10),e.lineTo(2,0),e.lineTo(-2,0),e.lineTo(-9,-10),e.lineTo(-15,0),e.lineTo(-14,10),e.lineTo(-8,16),e.lineTo(-4,24),e.closePath()}}class Jg extends we{constructor(e){super(e),this.rx=e?.rx??10,this.ry=e?.ry??10,this.updateFromSVGPathData([["M",this.x,this.y],["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 e0 extends we{constructor(e){super(e),this.rx=e?.rx??50,this.ry=e?.ry??50,this.updateFromSVGPathData([["M",this.x,this.y+this.ry*.3],["C",this.x,this.y,this.x-this.rx/2,this.y,this.x-this.rx/2,this.y+this.ry*.3],["C",this.x-this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x,this.y+(this.ry+this.ry*.3)/1.4,this.x,this.y+this.ry],["C",this.x,this.y+(this.ry+this.ry*.3)/1.8,this.x+this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x+this.rx/2,this.y+this.ry*.3],["C",this.x+this.rx/2,this.y,this.x,this.y,this.x,this.y+this.ry*.3],["z"]])}}class sh extends we{constructor(e){super(e),this.r=e?.r??20;let t="M"+this.x+","+(this.y-this.r);for(let n=0;n<6;n+=1){const i=270+n*144,r=this.x+this.r*Math.cos($e(i)),o=this.y+this.r*Math.sin($e(i));t+="L"+r+","+o}this.updateFromSVGPathD(t)}}class t0 extends we{constructor(e){super(e),this.updateFromSVGPathData([["M",this.x,this.y],["C",this.x+15,this.y,this.x+15,this.y-40,this.x+5,this.y+-30],["L",this.x,this.y],["C",this.x-15,this.y,this.x-15,this.y-40,this.x-5,this.y-30],["L",this.x,this.y],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]])}}class s0 extends we{constructor(e){super(e),this.updateFromSVGPathD(`M${this.x} ${this.y}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 n0 extends ys{constructor(e){super(e),this.addShape(we.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],{renderGroup:this.renderGroup,...e})),this.addShape(we.fromSVGPathData([["M",this.x,this.y-30-Math.random()*30],["L",this.x+Math.random()*80-40,this.y-100-Math.random()*40]],{renderGroup:this.renderGroup,...e})),this.addShape(we.fromSVGPathData([["M",this.x,this.y-60-Math.random()*40],["L",this.x+Math.random()*60-30,this.y-110-Math.random()*20]],{renderGroup:this.renderGroup,...e}))}}class i0 extends ls{width=0;height=0;bg;padding;offset;constructor(e){super(e),this.text=e.text,this.bg=e.bg||"rgba(0,0,0,0.5)",this.padding=e.padding||4,this.offset=e.offset||20,this.textShape=new $r({...e,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.attrs,fill:Ng(this.bg,!0),textAnchor:"start"}}),this.bgShape=new Ct({...e,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.attrs,fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}frameUpdate(){super.frameUpdate(),this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,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.isShow=this.isShow}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(e){}}class r0 extends ls{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Dt;p1Offset=10;p2=new Dt;p2Offset=40;p3=new Dt;p3Offset=10;p4=new Dt;p4Offset=10;direction=1;constructor(e){super(e),this.radius=e.radius,this.expandRaidus=e.expandRaidus??20,this.startDegree=e.startDegree,this.endDegree=e.endDegree,this.text=e.text||"",this.defaultShowText=typeof e?.defaultShowText=="boolean"?e.defaultShowText:!!this.text,this.tip=e.tip||"";const t=Object.assign({...this.attrs},{fill:"none"});this.line12=new Nt({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...t},isShow:this.defaultShowText}),this.line23=new Nt({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...t},isShow:this.defaultShowText}),this.textShape=new $r({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:t.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.tipShape=new i0({x:0,y:0,text:this.tip,isShow:!1}),this.sector=new o0({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.attrs},{strokeWidth:"0"})}),this.addShape(this.sector),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tip&&this.addShape(this.tipShape),this.frameUpdate()}frameUpdate(){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sector.isMouseIn,this.line23.isShow=this.sector.isMouseIn,this.textShape.isShow=this.sector.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:t,dy:n}=As($e(e),this.sector.radius+this.p1Offset);this.p1.x=this.x+t,this.p1.y=this.y+n;const{dx:i,dy:r}=As($e(e),this.sector.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,this.p2.y=this.y+r,this.line12.fromX=this.p1.x,this.line12.fromY=this.p1.y,this.line12.x=this.p2.x,this.line12.y=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.fromX=this.p2.x,this.line23.fromY=this.p2.y,this.line23.x=this.p3.x,this.line23.y=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.sector.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY):(this.tipShape.isShow=!1,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY)}}class o0 extends ut{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;dur;status;constructor(e){super(e),this.radius=0,this.realRadius=e.radius,this.expandRaidus=e.expandRaidus??20,this.startDegree=e.startDegree,this.endDegree=e.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.dur=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(e){this.vr+=this.ar,this.radius+=this.vr*this.dur,this.radius>e&&(this.radius=e,this.vr*=-this.bounce)}shrink(e){this.vr-=this.ar,this.radius+=this.vr*this.dur,this.radius<e&&(this.radius=e,this.vr*=-this.bounce)}toSVGPathData(){const{dx:e,dy:t}=As($e(this.startDegree),this.radius),{dx:n,dy:i}=As($e(this.endDegree),this.radius);return[["M",this.x,this.y],["l",e,t],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i],["z"]]}toCanvasContext(e){e.beginPath(),e.moveTo(0,0),e.arc(0,0,this.radius,$e(this.startDegree),$e(this.endDegree),!1),e.closePath()}containPoint(e,t){const n=ma(this.x,this.y,e,t),i=jt(Vn(this.x,this.y,e,t));return n<this.radius&&i>this.startDegree&&i<this.endDegree}}class a0 extends ls{showFlame;constructor(e){super(e),this.showFlame=typeof e?.showFlame=="boolean"?e.showFlame:!1,this.ship=we.fromSVGPathData([["M",this.x+10,this.y],["L",this.x-10,this.y+10],["L",this.x-5,this.y],["L",this.x-10,this.y-10],["L",this.x+10,this.y],["Z"]],{renderGroup:this.renderGroup,...e}),this.flame=we.fromSVGPathData([["M",this.x-7.5,this.y-5],["L",this.x-15,this.y],["L",this.x-7.5,this.y+5],["Z"]],{renderGroup:this.renderGroup,...e,isShow:this.showFlame}),this.addShape(this.ship),this.addShape(this.flame),this.frameUpdate()}frameUpdate(){this.flame.isShow=this.showFlame}}class nh extends ls{min;max;step;value;percent;barWidth;barHeight;barColor;handleSize;handleColor;realBarWidth;constructor(e){super(e),this.min=e?.min||0,this.max=e?.max||100,this.step=e?.step||1,this.stepNumber=nm(this.min,this.max,this.step),this.value=this.stepNumber(e?.defaultValue||this.min),this.percent=this.value/(this.max-this.min),this.barColor=e?.barColor||j.colorGrayF5,this.handleColor=e?.handleColor||j.colorPrimary,this.barWidth=e?.barWidth||100,this.barHeight=e?.barHeight||4,this.handleSize=e?.handleSize||20,this.realBarWidth=this.barWidth-this.handleSize,this.fullRect=new Ct({x:this.x,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*this.percent,height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.handleColor}}),this.addShape(this.fullRect),this.emptyRect=new Ct({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*(1-this.percent),height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.barColor}}),this.addShape(this.emptyRect),this.alongPath=we.fromSVGPathData([["M",this.x+this.handleSize*.5,this.y],["l",this.realBarWidth,0]]),this.handle=new Dt({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y,radius:this.handleSize*.5,enableDrag:!0,autoRender:e?.autoRender,alongPath:this.alongPath,attrs:{fill:this.handleColor}}),this.addShape(this.handle),this.frameUpdate()}frameUpdate(){const e=this.handle.x-this.x-this.handleSize*.5;this.realBarWidth=this.barWidth-this.handleSize,this.percent=e/this.realBarWidth,this.fullRect.width=e+this.handleSize*.5,this.emptyRect.x=this.handle.x,this.emptyRect.width=this.barWidth-this.fullRect.width;const t=this.stepNumber(this.percent*(this.max-this.min)+this.min);t!=this.value&&(this.value=t,this.emit("change",this.value))}}class Ei extends ys{constructor(e){super(e),this.width=e.width,this.height=e.height,this.cornerRadius=this.height/2,this.addShape([we.fromShape(new Ct({...e,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),{renderGroup:this.renderGroup,...e}),we.fromShape(new Dt({...e,x:this.x,y:this.y,radius:2}),{renderGroup:this.renderGroup,...e}),we.fromShape(new Dt({...e,x:this.x+this.width,y:this.y,radius:2}),{renderGroup:this.renderGroup,...e})])}frameUpdate(){super.frameUpdate()}getPin(){return{x:this.x+Math.cos($e(this.degree))*this.width,y:this.y+Math.sin($e(this.degree))*this.width}}}class Na extends ut{constructor(e){super(e),this.update(e)}update(e){this.extendDegree=e?.extendDegree||0,this.x=(e.x||0)+e.width/2;const t=Math.min(e.width/2,e.height)-e.lineWidth*1.5;this.radius=t-t*Math.abs(Math.sin($e(this.extendDegree))),this.y=(e.y||0)+e.height-e.lineWidth-this.radius*Math.abs(Math.sin($e(this.extendDegree))),this.startDegree=180+e.startDegree,this.endDegree=180+e.endDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(e.lineWidth),stroke:e.colorGradient||e.color||"none"})}frameUpdate(){}toSVGPathData(){const{dx:e,dy:t}=As($e(this.startDegree),this.radius),{dx:n,dy:i}=As($e(this.endDegree),this.radius);return[["M",this.x+e,this.y+t],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i]]}toCanvasContext(e){e.beginPath(),e.arc(0,0,this.radius,$e(this.startDegree),$e(this.endDegree),!1)}}class l0 extends ls{fettis=[];constructor(e,t,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:d,ticks:m,colors:v,scalar:b,flat:C}=qo(n||{},{shape:sh,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Ig,scalar:1,flat:!1}),O=e*r,$=t*o,S=$e(l),Y=$e(c);let L=a;for(;L--;){const H=new i({x:O,y:$,transformBaseOnSelfInRenderGroup:!0,scaleOnOrigin:b,attrs:{fill:v[L%v.length]}});this.addShape(H),this.fettis.push({shape:H,x:O,y:$,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-S+(.5*Y-Math.random()*Y),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:m,decay:h,drift:d,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:b,flat:C})}}frameUpdate(){super.frameUpdate(),this.fettis.length&&(this.fettis=this.fettis.filter(e=>this.updateFetti(e)))}updateFetti(e){e.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.x=e.x,e.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.shape.y=e.y,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.x+10*e.scalar,e.wobbleY=e.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.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 t=e.tick++/e.totalTicks,n=e.x+e.random*e.tiltCos,i=e.y+e.random*e.tiltSin,r=e.wobbleX+e.random*e.tiltCos,o=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",xi(e.shape.getAttr("fill"),1-t)),e.shape.scalexOnOrigin=Math.abs(r-n)*.1*e.shape.prevScalexOnOrigin,e.shape.scaleyOnOrigin=Math.abs(o-i)*.1*e.shape.prevScalexOnOrigin,e.shape.degree=jt(Math.PI/10*e.wobble),e.shape.x=e.x,e.shape.y=e.y,e.tick<e.totalTicks}}class $a{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(e,t=!1){if(this.app=e,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Ta(this.app.container,this.app.width,this.app.height,t),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const n=this.shapes.length;let i=0;for(;i<n;i++){const r=this.shapes[i];this.ctx.save(),this.transformCtxBaseOnShape(r);const o=this.ctx.isPointInPath(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),r.isMouseIn=o,r.mouseX=this.app.mousePoint.x,r.mouseY=this.app.mousePoint.y,o&&(this.currentMouseInShapeID=r.id,r.enableDrag)){this.currentEnableDragMouseInShapeID=r.id,this.shapes.filter(a=>a.id!==r.id).forEach(a=>{a instanceof ut&&(a.isMouseIn=!1,a.mouseX=this.app.mousePoint.x,a.mouseY=this.app.mousePoint.y)});break}}i>=n&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}transformCtxBaseOnShape(e){e instanceof we||(e instanceof Nt||this.ctx.translate(e.x,e.y),this.ctx.rotate($e(e.degree),e.cX,e.cY),this.ctx.scale(e.scalexOnOrigin,e.scaleyOnOrigin,e.cX,e.cY))}_addShape(e){e instanceof ls?(e.frameUpdate(),e.shapes.forEach(t=>{t instanceof ls?this._addShape(t):this.shapes.push(t)})):this.shapes.push(e)}draw(e=[]){this.shapes=[],(Array.isArray(e)?e:[e]).forEach(t=>{this._addShape(t)});for(let t of this.shapes)if(t.isShow){if(this.ctx.save(),K.attrsToCanvas(this.ctx,t.attrs),t.followMouse&&(!fi(t.x,this.app.mousePoint.x,5)||!fi(t.y,this.app.mousePoint.y,5))&&(t.rotateTo(this.app.mousePoint),t.followTo(this.app.mousePoint)),t.targetToAfterDragFree&&(this.isMouseDown||t.nextFrameEaseTo({x:t.targetToAfterDragFree.targetX,y:t.targetToAfterDragFree.targetY},{easing:t.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==t.id){const{dx:n,dy:i}=t.centerDiff,r=t.x,o=t.y;if(t.x=this.app.mousePoint.x-n,t.y=this.app.mousePoint.y-i,t.alongPath){const a=t.alongPath.closestPoint(t.x,t.y);t.x=a.point.x,t.y=a.point.y}t.isDragging=!0,t.emit("moving",t.x-r,t.y-o)}else t.isDragging=!1;t.frameUpdate(),this.transformCtxBaseOnShape(t),t.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),t.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(e){const t=()=>{this.shapes.forEach(n=>{(n instanceof we&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx))||this.currentMouseInShapeID==n.id)&&e(n)})};return this.app.on("tap",t),()=>{this.app.off("tap",t)}}drawMouseMoveLine(e="line",t){switch(e){case"brush":const n=t?.brushSize??10,i=t?.brushDensity??50,r=t?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=tn(r);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,f=this.app.mousePoint.x+Math.cos(u)*h|0,d=this.app.mousePoint.y+Math.sin(u)*h|0,m=(f+d*o.width)*4;a[m]=l.r,a[m+1]=l.g,a[m+2]=l.b,a[m+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),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 c0{map;constructor(e,t=120.619585,n=31.299379,i=18){this.map=new T.Map(e),this.map.centerAndZoom(new T.LngLat(t,n),i)}}const u0=oe({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("span",{class:"icon",style:M(["color: "+t.color])},[ue(ke(Vu),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),h0=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
56
- `,ae=(s,e)=>{const t=s.__vccOpts||s;for(const[n,i]of e)t[n]=i;return t},ih=ae(u0,[["styles",[h0]],["__scopeId","data-v-b2d9b612"]]),d0=oe({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("span",{class:"icon",style:M(["color: "+t.color])},[ue(ke(Vu),{icon:e.icon,color:t.color},null,8,["icon","color"])],4))}}),Qb="",bs=ae(d0,[["__scopeId","data-v-8789b4ce"]]),f0={class:"loading-11",ref:"loading11"},p0={class:"container container-1"},m0={class:"container container-2"},g0={class:"container container-3"},v0=oe({__name:"Loading11",props:{color:{default:j.colorPrimary},width:{default:"0.8em"}},setup(s){const e=s;return(t,n)=>(I(),V("div",f0,[_("div",{class:"loading-11-inner",style:M({width:e.width,height:e.width})},[_("div",p0,[_("div",{class:"dot dot-1",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-2",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-3",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-4",style:M({backgroundColor:e.color})},null,4)]),_("div",m0,[_("div",{class:"dot dot-1",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-2",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-3",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-4",style:M({backgroundColor:e.color})},null,4)]),_("div",g0,[_("div",{class:"dot dot-1",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-2",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-3",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-4",style:M({backgroundColor:e.color})},null,4)])],4)],512))}}),Jb="",Ar=ae(v0,[["__scopeId","data-v-f95fac77"]]),y0={key:0,class:"loading"},kn=ae(oe({customOptions:{Loading11:Ar},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(n.borderColor),a=P(n.bgColor),l=P(n.fontColor),c=P(n.borderColor),u=P(n.bgColor);function h(S){switch(S){case"outline":o.value=n.borderColor??j.colorPrimary,a.value=n.bgColor??j.colorGrayFF,l.value=n.fontColor??j.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??j.colorPrimary,a.value=n.bgColor??j.colorPrimary,l.value=n.fontColor??j.colorGrayFF,c.value=o.value,u.value=a.value;break}}Ee(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=P(n.isDisabled?"0.6":"1"),d=P(n.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{n.isDisabled||(m=!0,o.value=Rs(c.value,10),a.value=Rs(u.value,10))},b=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},C=P(!1),$=ru(()=>{n.isDisabled||C.value||(o.value=Rs(c.value,-10),a.value=Rs(u.value,-10),setTimeout(()=>{m?v():b()},150),i("ceClick"),i("click"),n.asyncClick&&(C.value=!0,n.asyncClick().then(()=>{C.value=!1}).catch(()=>{C.value=!1})))},500);return e({el:r}),(S,Y)=>(I(),V("div",{ref_key:"el",ref:r,class:"button",style:M([`opacity: ${f.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: ${d.value}`,"user-select: none"]),onMouseover:v,onMouseleave:b,onClick:Y[0]||(Y[0]=(...L)=>ke($)&&ke($)(...L))},[_("label",{class:"label truncate",style:M({padding:"0 "+S.padding,cursor:d.value})},[C.value?(I(),V("div",y0,[ue(Ar,{color:l.value},null,8,["color"])])):Pe("",!0),ze(S.$slots,"default",{},()=>[S.icon&&S.iconPosition==="left"?(I(),wt(bs,{key:0,icon:S.icon,color:l.value,style:M({marginRight:ke(j).gap4,cursor:d.value})},null,8,["icon","color","style"])):Pe("",!0),_("span",{style:M({cursor:d.value})},me(S.label),5),S.icon&&S.iconPosition==="right"?(I(),wt(bs,{key:1,icon:S.icon,color:l.value,style:M({marginLeft:ke(j).gap4,cursor:d.value})},null,8,["icon","color","style"])):Pe("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-2205d3fb]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-2205d3fb]{display:inline-flex;justify-content:center;align-items:center}.loading[data-v-2205d3fb]{margin-right:6px}
57
- `]],["__scopeId","data-v-2205d3fb"]]),b0={key:0,class:"loading"},_0=oe({customOptions:{Loading11:Ar},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(n.borderColor),a=P(n.bgColor),l=P(n.fontColor),c=P(n.borderColor),u=P(n.bgColor);function h(S){switch(S){case"outline":o.value=n.borderColor??j.colorPrimary,a.value=n.bgColor??j.colorGrayFF,l.value=n.fontColor??j.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??j.colorPrimary,a.value=n.bgColor??j.colorPrimary,l.value=n.fontColor??j.colorGrayFF,c.value=o.value,u.value=a.value;break}}Ee(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=P(n.isDisabled?"0.6":"1"),d=P(n.isDisabled?"not-allowed":"pointer");let m=!1;const v=()=>{n.isDisabled||(m=!0,o.value=Rs(c.value,10),a.value=Rs(u.value,10))},b=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},C=P(!1),$=ru(()=>{n.isDisabled||C.value||(o.value=Rs(c.value,-10),a.value=Rs(u.value,-10),setTimeout(()=>{m?v():b()},150),i("ceClick"),i("click"),n.asyncClick&&(C.value=!0,n.asyncClick().then(()=>{C.value=!1}).catch(()=>{C.value=!1})))},500);return e({el:r}),(S,Y)=>(I(),V("div",{ref_key:"el",ref:r,class:"button",style:M([`opacity: ${f.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: ${d.value}`,"user-select: none"]),onMouseover:v,onMouseleave:b,onClick:Y[0]||(Y[0]=(...L)=>ke($)&&ke($)(...L))},[_("label",{class:"label truncate",style:M({padding:"0 "+S.padding,cursor:d.value})},[C.value?(I(),V("div",b0,[ue(Ar,{color:l.value},null,8,["color"])])):Pe("",!0),ze(S.$slots,"default",{},()=>[S.icon&&S.iconPosition==="left"?(I(),wt(bs,{key:0,icon:S.icon,color:l.value,style:M({marginRight:ke(j).gap4,cursor:d.value})},null,8,["icon","color","style"])):Pe("",!0),_("span",{style:M({cursor:d.value})},me(S.label),5),S.icon&&S.iconPosition==="right"?(I(),wt(bs,{key:1,icon:S.icon,color:l.value,style:M({marginLeft:ke(j).gap4,cursor:d.value})},null,8,["icon","color","style"])):Pe("",!0)],!0)],4)],36))}}),s_="",it=ae(_0,[["__scopeId","data-v-ea027c50"]]),x0=["onClick","value"],w0={class:"option-inner"},C0=ae(oe({customOptions:{Icon:bs,Button:it},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:e}){const t=s,n=e;Us(()=>{K.setStyleSheet(`
53
+ `;return function(){var Q=new Error("get-stack-trace"),ct=Q&&Q.stack?Q.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Vt=t.console&&(t.console.warn||t.console.log);return Vt&&Vt.call(t.console,N,ct),p.apply(this,arguments)}}var g;typeof Object.assign!="function"?g=function(y){if(y===i||y===null)throw new TypeError("Cannot convert undefined or null to object");for(var x=Object(y),N=1;N<arguments.length;N++){var Q=arguments[N];if(Q!==i&&Q!==null)for(var ct in Q)Q.hasOwnProperty(ct)&&(x[ct]=Q[ct])}return x}:g=Object.assign;var v=m(function(y,x,N){for(var Q=Object.keys(x),ct=0;ct<Q.length;)(!N||N&&y[Q[ct]]===i)&&(y[Q[ct]]=x[Q[ct]]),ct++;return y},"extend","Use `assign`."),k=m(function(y,x){return v(y,x,!0)},"merge","Use `assign`.");function I(p,y,x){var N=y.prototype,Q;Q=p.prototype=Object.create(N),Q.constructor=p,Q._super=N,x&&g(Q,x)}function M(p,y){return function(){return p.apply(y,arguments)}}function C(p,y){return typeof p==a?p.apply(y&&y[0]||i,y):p}function j(p,y){return p===i?y:p}function L(p,y,x){d(yt(y),function(N){p.addEventListener(N,x,!1)})}function X(p,y,x){d(yt(y),function(N){p.removeEventListener(N,x,!1)})}function mt(p,y){for(;p;){if(p==y)return!0;p=p.parentNode}return!1}function bt(p,y){return p.indexOf(y)>-1}function yt(p){return p.trim().split(/\s+/g)}function At(p,y,x){if(p.indexOf&&!x)return p.indexOf(y);for(var N=0;N<p.length;){if(x&&p[N][x]==y||!x&&p[N]===y)return N;N++}return-1}function zt(p){return Array.prototype.slice.call(p,0)}function Kt(p,y,x){for(var N=[],Q=[],ct=0;ct<p.length;){var Vt=y?p[ct][y]:p[ct];At(Q,Vt)<0&&N.push(p[ct]),Q[ct]=Vt,ct++}return x&&(y?N=N.sort(function(Re,Be){return Re[y]>Be[y]}):N=N.sort()),N}function Qt(p,y){for(var x,N,Q=y[0].toUpperCase()+y.slice(1),ct=0;ct<r.length;){if(x=r[ct],N=x?x+Q:y,N in p)return N;ct++}return i}var ne=1;function Yt(){return ne++}function _t(p){var y=p.ownerDocument||p;return y.defaultView||y.parentWindow||t}var xt=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in t,q=Qt(t,"PointerEvent")!==i,Et=it&&xt.test(navigator.userAgent),A="touch",jt="pen",le="mouse",ie="kinect",re=25,Dt=1,Te=2,Gt=4,ce=8,ze=1,He=2,hs=4,b=8,w=16,z=He|hs,F=b|w,G=z|F,et=["x","y"],J=["clientX","clientY"];function U(p,y){var x=this;this.manager=p,this.callback=y,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(N){C(p.options.enable,[p])&&x.handler(N)},this.init()}U.prototype={handler:function(){},init:function(){this.evEl&&L(this.element,this.evEl,this.domHandler),this.evTarget&&L(this.target,this.evTarget,this.domHandler),this.evWin&&L(_t(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&X(this.element,this.evEl,this.domHandler),this.evTarget&&X(this.target,this.evTarget,this.domHandler),this.evWin&&X(_t(this.element),this.evWin,this.domHandler)}};function tt(p){var y,x=p.options.inputClass;return x?y=x:q?y=We:Et?y=ws:it?y=Ja:y=W,new y(p,K)}function K(p,y,x){var N=x.pointers.length,Q=x.changedPointers.length,ct=y&Dt&&N-Q===0,Vt=y&(Gt|ce)&&N-Q===0;x.isFirst=!!ct,x.isFinal=!!Vt,ct&&(p.session={}),x.eventType=y,lt(p,x),p.emit("hammer.input",x),p.recognize(x),p.session.prevInput=x}function lt(p,y){var x=p.session,N=y.pointers,Q=N.length;x.firstInput||(x.firstInput=Tt(y)),Q>1&&!x.firstMultiple?x.firstMultiple=Tt(y):Q===1&&(x.firstMultiple=!1);var ct=x.firstInput,Vt=x.firstMultiple,Pe=Vt?Vt.center:ct.center,Re=y.center=Nt(N);y.timeStamp=u(),y.deltaTime=y.timeStamp-ct.timeStamp,y.angle=E(Pe,Re),y.distance=D(Pe,Re),gt(x,y),y.offsetDirection=Jt(y.deltaX,y.deltaY);var Be=Xt(y.deltaTime,y.deltaX,y.deltaY);y.overallVelocityX=Be.x,y.overallVelocityY=Be.y,y.overallVelocity=c(Be.x)>c(Be.y)?Be.x:Be.y,y.scale=Vt?B(Vt.pointers,N):1,y.rotation=Vt?S(Vt.pointers,N):0,y.maxPointers=x.prevInput?y.pointers.length>x.prevInput.maxPointers?y.pointers.length:x.prevInput.maxPointers:y.pointers.length,ft(x,y);var Cs=p.element;mt(y.srcEvent.target,Cs)&&(Cs=y.srcEvent.target),y.target=Cs}function gt(p,y){var x=y.center,N=p.offsetDelta||{},Q=p.prevDelta||{},ct=p.prevInput||{};(y.eventType===Dt||ct.eventType===Gt)&&(Q=p.prevDelta={x:ct.deltaX||0,y:ct.deltaY||0},N=p.offsetDelta={x:x.x,y:x.y}),y.deltaX=Q.x+(x.x-N.x),y.deltaY=Q.y+(x.y-N.y)}function ft(p,y){var x=p.lastInterval||y,N=y.timeStamp-x.timeStamp,Q,ct,Vt,Pe;if(y.eventType!=ce&&(N>re||x.velocity===i)){var Re=y.deltaX-x.deltaX,Be=y.deltaY-x.deltaY,Cs=Xt(N,Re,Be);ct=Cs.x,Vt=Cs.y,Q=c(Cs.x)>c(Cs.y)?Cs.x:Cs.y,Pe=Jt(Re,Be),p.lastInterval=y}else Q=x.velocity,ct=x.velocityX,Vt=x.velocityY,Pe=x.direction;y.velocity=Q,y.velocityX=ct,y.velocityY=Vt,y.direction=Pe}function Tt(p){for(var y=[],x=0;x<p.pointers.length;)y[x]={clientX:l(p.pointers[x].clientX),clientY:l(p.pointers[x].clientY)},x++;return{timeStamp:u(),pointers:y,center:Nt(y),deltaX:p.deltaX,deltaY:p.deltaY}}function Nt(p){var y=p.length;if(y===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var x=0,N=0,Q=0;Q<y;)x+=p[Q].clientX,N+=p[Q].clientY,Q++;return{x:l(x/y),y:l(N/y)}}function Xt(p,y,x){return{x:y/p||0,y:x/p||0}}function Jt(p,y){return p===y?ze:c(p)>=c(y)?p<0?He:hs:y<0?b:w}function D(p,y,x){x||(x=et);var N=y[x[0]]-p[x[0]],Q=y[x[1]]-p[x[1]];return Math.sqrt(N*N+Q*Q)}function E(p,y,x){x||(x=et);var N=y[x[0]]-p[x[0]],Q=y[x[1]]-p[x[1]];return Math.atan2(Q,N)*180/Math.PI}function S(p,y){return E(y[1],y[0],J)+E(p[1],p[0],J)}function B(p,y){return D(y[0],y[1],J)/D(p[0],p[1],J)}var V={mousedown:Dt,mousemove:Te,mouseup:Gt},Z="mousedown",ot="mousemove mouseup";function W(){this.evEl=Z,this.evWin=ot,this.pressed=!1,U.apply(this,arguments)}I(W,U,{handler:function(y){var x=V[y.type];x&Dt&&y.button===0&&(this.pressed=!0),x&Te&&y.which!==1&&(x=Gt),this.pressed&&(x&Gt&&(this.pressed=!1),this.callback(this.manager,x,{pointers:[y],changedPointers:[y],pointerType:le,srcEvent:y}))}});var nt={pointerdown:Dt,pointermove:Te,pointerup:Gt,pointercancel:ce,pointerout:ce},St={2:A,3:jt,4:le,5:ie},$t="pointerdown",xe="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&($t="MSPointerDown",xe="MSPointerMove MSPointerUp MSPointerCancel");function We(){this.evEl=$t,this.evWin=xe,U.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}I(We,U,{handler:function(y){var x=this.store,N=!1,Q=y.type.toLowerCase().replace("ms",""),ct=nt[Q],Vt=St[y.pointerType]||y.pointerType,Pe=Vt==A,Re=At(x,y.pointerId,"pointerId");ct&Dt&&(y.button===0||Pe)?Re<0&&(x.push(y),Re=x.length-1):ct&(Gt|ce)&&(N=!0),!(Re<0)&&(x[Re]=y,this.callback(this.manager,ct,{pointers:x,changedPointers:[y],pointerType:Vt,srcEvent:y}),N&&x.splice(Re,1))}});var ue={touchstart:Dt,touchmove:Te,touchend:Gt,touchcancel:ce},is="touchstart",fe="touchstart touchmove touchend touchcancel";function Ie(){this.evTarget=is,this.evWin=fe,this.started=!1,U.apply(this,arguments)}I(Ie,U,{handler:function(y){var x=ue[y.type];if(x===Dt&&(this.started=!0),!!this.started){var N=ts.call(this,y,x);x&(Gt|ce)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,x,{pointers:N[0],changedPointers:N[1],pointerType:A,srcEvent:y})}}});function ts(p,y){var x=zt(p.touches),N=zt(p.changedTouches);return y&(Gt|ce)&&(x=Kt(x.concat(N),"identifier",!0)),[x,N]}var Pn={touchstart:Dt,touchmove:Te,touchend:Gt,touchcancel:ce},Ni="touchstart touchmove touchend touchcancel";function ws(){this.evTarget=Ni,this.targetIds={},U.apply(this,arguments)}I(ws,U,{handler:function(y){var x=Pn[y.type],N=Hn.call(this,y,x);N&&this.callback(this.manager,x,{pointers:N[0],changedPointers:N[1],pointerType:A,srcEvent:y})}});function Hn(p,y){var x=zt(p.touches),N=this.targetIds;if(y&(Dt|Te)&&x.length===1)return N[x[0].identifier]=!0,[x,x];var Q,ct,Vt=zt(p.changedTouches),Pe=[],Re=this.target;if(ct=x.filter(function(Be){return mt(Be.target,Re)}),y===Dt)for(Q=0;Q<ct.length;)N[ct[Q].identifier]=!0,Q++;for(Q=0;Q<Vt.length;)N[Vt[Q].identifier]&&Pe.push(Vt[Q]),y&(Gt|ce)&&delete N[Vt[Q].identifier],Q++;if(Pe.length)return[Kt(ct.concat(Pe),"identifier",!0),Pe]}var Kr=2500,ld=25;function Ja(){U.apply(this,arguments);var p=M(this.handler,this);this.touch=new ws(this.manager,p),this.mouse=new W(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}I(Ja,U,{handler:function(y,x,N){var Q=N.pointerType==A,ct=N.pointerType==le;if(!(ct&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(Q)p_.call(this,x,N);else if(ct&&m_.call(this,N))return;this.callback(y,x,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function p_(p,y){p&Dt?(this.primaryTouch=y.changedPointers[0].identifier,cd.call(this,y)):p&(Gt|ce)&&cd.call(this,y)}function cd(p){var y=p.changedPointers[0];if(y.identifier===this.primaryTouch){var x={x:y.clientX,y:y.clientY};this.lastTouches.push(x);var N=this.lastTouches,Q=function(){var ct=N.indexOf(x);ct>-1&&N.splice(ct,1)};setTimeout(Q,Kr)}}function m_(p){for(var y=p.srcEvent.clientX,x=p.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var Q=this.lastTouches[N],ct=Math.abs(y-Q.x),Vt=Math.abs(x-Q.y);if(ct<=ld&&Vt<=ld)return!0}return!1}var ud=Qt(o.style,"touchAction"),hd=ud!==i,dd="compute",fd="auto",tl="manipulation",Dn="none",Mi="pan-x",Ri="pan-y",Qr=y_();function el(p,y){this.manager=p,this.set(y)}el.prototype={set:function(p){p==dd&&(p=this.compute()),hd&&this.manager.element.style&&Qr[p]&&(this.manager.element.style[ud]=p),this.actions=p.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var p=[];return d(this.manager.recognizers,function(y){C(y.options.enable,[y])&&(p=p.concat(y.getTouchAction()))}),g_(p.join(" "))},preventDefaults:function(p){var y=p.srcEvent,x=p.offsetDirection;if(this.manager.session.prevented){y.preventDefault();return}var N=this.actions,Q=bt(N,Dn)&&!Qr[Dn],ct=bt(N,Ri)&&!Qr[Ri],Vt=bt(N,Mi)&&!Qr[Mi];if(Q){var Pe=p.pointers.length===1,Re=p.distance<2,Be=p.deltaTime<250;if(Pe&&Re&&Be)return}if(!(Vt&&ct)&&(Q||ct&&x&z||Vt&&x&F))return this.preventSrc(y)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function g_(p){if(bt(p,Dn))return Dn;var y=bt(p,Mi),x=bt(p,Ri);return y&&x?Dn:y||x?y?Mi:Ri:bt(p,tl)?tl:fd}function y_(){if(!hd)return!1;var p={},y=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(x){p[x]=y?t.CSS.supports("touch-action",x):!0}),p}var Jr=1,rs=2,Wn=4,an=8,Bs=an,Ai=16,ks=32;function Ys(p){this.options=g({},this.defaults,p||{}),this.id=Yt(),this.manager=null,this.options.enable=j(this.options.enable,!0),this.state=Jr,this.simultaneous={},this.requireFail=[]}Ys.prototype={defaults:{},set:function(p){return g(this.options,p),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(p){if(f(p,"recognizeWith",this))return this;var y=this.simultaneous;return p=to(p,this),y[p.id]||(y[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=to(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var y=this.requireFail;return p=to(p,this),At(y,p)===-1&&(y.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=to(p,this);var y=At(this.requireFail,p);return y>-1&&this.requireFail.splice(y,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(p){return!!this.simultaneous[p.id]},emit:function(p){var y=this,x=this.state;function N(Q){y.manager.emit(Q,p)}x<an&&N(y.options.event+pd(x)),N(y.options.event),p.additionalEvent&&N(p.additionalEvent),x>=an&&N(y.options.event+pd(x))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=ks},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(ks|Jr)))return!1;p++}return!0},recognize:function(p){var y=g({},p);if(!C(this.options.enable,[this,y])){this.reset(),this.state=ks;return}this.state&(Bs|Ai|ks)&&(this.state=Jr),this.state=this.process(y),this.state&(rs|Wn|an|Ai)&&this.tryEmit(y)},process:function(p){},getTouchAction:function(){},reset:function(){}};function pd(p){return p&Ai?"cancel":p&an?"end":p&Wn?"move":p&rs?"start":""}function md(p){return p==w?"down":p==b?"up":p==He?"left":p==hs?"right":""}function to(p,y){var x=y.manager;return x?x.get(p):p}function ds(){Ys.apply(this,arguments)}I(ds,Ys,{defaults:{pointers:1},attrTest:function(p){var y=this.options.pointers;return y===0||p.pointers.length===y},process:function(p){var y=this.state,x=p.eventType,N=y&(rs|Wn),Q=this.attrTest(p);return N&&(x&ce||!Q)?y|Ai:N||Q?x&Gt?y|an:y&rs?y|Wn:rs:ks}});function eo(){ds.apply(this,arguments),this.pX=null,this.pY=null}I(eo,ds,{defaults:{event:"pan",threshold:10,pointers:1,direction:G},getTouchAction:function(){var p=this.options.direction,y=[];return p&z&&y.push(Ri),p&F&&y.push(Mi),y},directionTest:function(p){var y=this.options,x=!0,N=p.distance,Q=p.direction,ct=p.deltaX,Vt=p.deltaY;return Q&y.direction||(y.direction&z?(Q=ct===0?ze:ct<0?He:hs,x=ct!=this.pX,N=Math.abs(p.deltaX)):(Q=Vt===0?ze:Vt<0?b:w,x=Vt!=this.pY,N=Math.abs(p.deltaY))),p.direction=Q,x&&N>y.threshold&&Q&y.direction},attrTest:function(p){return ds.prototype.attrTest.call(this,p)&&(this.state&rs||!(this.state&rs)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var y=md(p.direction);y&&(p.additionalEvent=this.options.event+y),this._super.emit.call(this,p)}});function sl(){ds.apply(this,arguments)}I(sl,ds,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Dn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&rs)},emit:function(p){if(p.scale!==1){var y=p.scale<1?"in":"out";p.additionalEvent=this.options.event+y}this._super.emit.call(this,p)}});function nl(){Ys.apply(this,arguments),this._timer=null,this._input=null}I(nl,Ys,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fd]},process:function(p){var y=this.options,x=p.pointers.length===y.pointers,N=p.distance<y.threshold,Q=p.deltaTime>y.time;if(this._input=p,!N||!x||p.eventType&(Gt|ce)&&!Q)this.reset();else if(p.eventType&Dt)this.reset(),this._timer=h(function(){this.state=Bs,this.tryEmit()},y.time,this);else if(p.eventType&Gt)return Bs;return ks},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===Bs&&(p&&p.eventType&Gt?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function il(){ds.apply(this,arguments)}I(il,ds,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Dn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&rs)}});function rl(){ds.apply(this,arguments)}I(rl,ds,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:z|F,pointers:1},getTouchAction:function(){return eo.prototype.getTouchAction.call(this)},attrTest:function(p){var y=this.options.direction,x;return y&(z|F)?x=p.overallVelocity:y&z?x=p.overallVelocityX:y&F&&(x=p.overallVelocityY),this._super.attrTest.call(this,p)&&y&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(x)>this.options.velocity&&p.eventType&Gt},emit:function(p){var y=md(p.offsetDirection);y&&this.manager.emit(this.options.event+y,p),this.manager.emit(this.options.event,p)}});function so(){Ys.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}I(so,Ys,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[tl]},process:function(p){var y=this.options,x=p.pointers.length===y.pointers,N=p.distance<y.threshold,Q=p.deltaTime<y.time;if(this.reset(),p.eventType&Dt&&this.count===0)return this.failTimeout();if(N&&Q&&x){if(p.eventType!=Gt)return this.failTimeout();var ct=this.pTime?p.timeStamp-this.pTime<y.interval:!0,Vt=!this.pCenter||D(this.pCenter,p.center)<y.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!Vt||!ct?this.count=1:this.count+=1,this._input=p;var Pe=this.count%y.taps;if(Pe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Bs,this.tryEmit()},y.interval,this),rs):Bs}return ks},failTimeout:function(){return this._timer=h(function(){this.state=ks},this.options.interval,this),ks},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Bs&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function js(p,y){return y=y||{},y.recognizers=j(y.recognizers,js.defaults.preset),new ol(p,y)}js.VERSION="2.0.7",js.defaults={domEvents:!1,touchAction:dd,enable:!0,inputTarget:null,inputClass:null,preset:[[il,{enable:!1}],[sl,{enable:!1},["rotate"]],[rl,{direction:z}],[eo,{direction:z},["swipe"]],[so],[so,{event:"doubletap",taps:2},["tap"]],[nl]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var v_=1,gd=2;function ol(p,y){this.options=g({},js.defaults,y||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=tt(this),this.touchAction=new el(this,this.options.touchAction),yd(this,!0),d(this.options.recognizers,function(x){var N=this.add(new x[0](x[1]));x[2]&&N.recognizeWith(x[2]),x[3]&&N.requireFailure(x[3])},this)}ol.prototype={set:function(p){return g(this.options,p),p.touchAction&&this.touchAction.update(),p.inputTarget&&(this.input.destroy(),this.input.target=p.inputTarget,this.input.init()),this},stop:function(p){this.session.stopped=p?gd:v_},recognize:function(p){var y=this.session;if(!y.stopped){this.touchAction.preventDefaults(p);var x,N=this.recognizers,Q=y.curRecognizer;(!Q||Q&&Q.state&Bs)&&(Q=y.curRecognizer=null);for(var ct=0;ct<N.length;)x=N[ct],y.stopped!==gd&&(!Q||x==Q||x.canRecognizeWith(Q))?x.recognize(p):x.reset(),!Q&&x.state&(rs|Wn|an)&&(Q=y.curRecognizer=x),ct++}},get:function(p){if(p instanceof Ys)return p;for(var y=this.recognizers,x=0;x<y.length;x++)if(y[x].options.event==p)return y[x];return null},add:function(p){if(f(p,"add",this))return this;var y=this.get(p.options.event);return y&&this.remove(y),this.recognizers.push(p),p.manager=this,this.touchAction.update(),p},remove:function(p){if(f(p,"remove",this))return this;if(p=this.get(p),p){var y=this.recognizers,x=At(y,p);x!==-1&&(y.splice(x,1),this.touchAction.update())}return this},on:function(p,y){if(p!==i&&y!==i){var x=this.handlers;return d(yt(p),function(N){x[N]=x[N]||[],x[N].push(y)}),this}},off:function(p,y){if(p!==i){var x=this.handlers;return d(yt(p),function(N){y?x[N]&&x[N].splice(At(x[N],y),1):delete x[N]}),this}},emit:function(p,y){this.options.domEvents&&b_(p,y);var x=this.handlers[p]&&this.handlers[p].slice();if(!(!x||!x.length)){y.type=p,y.preventDefault=function(){y.srcEvent.preventDefault()};for(var N=0;N<x.length;)x[N](y),N++}},destroy:function(){this.element&&yd(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function yd(p,y){var x=p.element;if(x.style){var N;d(p.options.cssProps,function(Q,ct){N=Qt(x.style,ct),y?(p.oldCssProps[N]=x.style[N],x.style[N]=Q):x.style[N]=p.oldCssProps[N]||""}),y||(p.oldCssProps={})}}function b_(p,y){var x=e.createEvent("Event");x.initEvent(p,!0,!0),x.gesture=y,y.target.dispatchEvent(x)}g(js,{INPUT_START:Dt,INPUT_MOVE:Te,INPUT_END:Gt,INPUT_CANCEL:ce,STATE_POSSIBLE:Jr,STATE_BEGAN:rs,STATE_CHANGED:Wn,STATE_ENDED:an,STATE_RECOGNIZED:Bs,STATE_CANCELLED:Ai,STATE_FAILED:ks,DIRECTION_NONE:ze,DIRECTION_LEFT:He,DIRECTION_RIGHT:hs,DIRECTION_UP:b,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:z,DIRECTION_VERTICAL:F,DIRECTION_ALL:G,Manager:ol,Input:U,TouchAction:el,TouchInput:ws,MouseInput:W,PointerEventInput:We,TouchMouseInput:Ja,SingleTouchInput:Ie,Recognizer:Ys,AttrRecognizer:ds,Tap:so,Pan:eo,Swipe:rl,Pinch:sl,Rotate:il,Press:nl,on:L,off:X,each:d,merge:k,extend:v,assign:g,inherit:I,bindFn:M,prefixed:Qt});var __=typeof t<"u"?t:typeof self<"u"?self:{};__.Hammer=js,typeof i=="function"&&i.amd?i(function(){return js}):s.exports?s.exports=js:t[n]=js})(window,document,"Hammer")})(Qu);var j0=Qu.exports;const X0=Y0(j0);class Ne extends ge{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return new Ee({x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2})}toSVGPathData(){return this.radius?[["M",this.x,this.y-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",this.x,this.y]}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 xa(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}}clone(t){return new Ne({x:t.x,y:t.y,radius:t.radius,mass:t.mass})}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=vs(-r,e,n),l=vs(-r,this.vx,this.vy),c=vs(-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),f=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*f,a.x+=c.x/h*f;const d=vs(r,o.x,o.y),m=vs(r,a.x,a.y);t.x=this.x+m.x,t.y=this.y+m.y,this.x=this.x+d.x,this.y=this.y+d.y;const g=vs(r,l.x,l.y),v=vs(r,c.x,c.y);this.vx=g.x,this.vy=g.y,t.vx=v.x,t.vy=v.y}}checkWalls(t,e){const n=e?.bounce??-1,i=t.x,r=t.y,o=t.x+t.width,a=t.y+t.height;this.x+this.radius>o?(this.x=o-this.radius,this.vx*=n):this.x-this.radius<i&&(this.x=i+this.radius,this.vx*=n),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=n):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=n)}static comboMove(t,e,n){t.forEach(r=>{r.nextFrame(),e&&r.checkWalls(e,n)});const i=t.length;for(let r=0,o=i-1;r<o;r++){const a=t[r];for(let l,c=r+1;c<i;c++)l=t[c],a.checkCollision(l)}}}class U0{constructor(){}static getFormatKeyNames(t){const e=z0(),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}}let es;const Fn=[];class ve extends xr{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(t=document.documentElement,e=!0){super(),this.container=t,this.width=this.container.offsetWidth,this.height=this.container.offsetHeight;const n=H.getStyle(this.container,"position");H.setStyle(this.container,{position:n=="static"?"relative":n}),this.hammer=new X0(this.container),this.mousePoint=new Ne({x:0,y:0}),e&&this.start()}emitDebounce=Sm((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}static get page(){if(es)return es;es=new ve,window.addEventListener("hashchange",()=>{es.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{es.emit("popstate")}),es.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{I0().then(e=>P0(e[0])).then(e=>{es.emit("openFile",e)}).catch(e=>{es.emit("openFileError",e)})}),es.registerMatchMediaChange("(prefers-color-scheme: dark)");const t=()=>Fn.forEach(e=>e());return es.registerGlobalScrollChange=e=>{Fn.push(e),Fn.length==1&&document.addEventListener("scroll",t)},es.removeGlobalScrollChange=e=>{const n=Fn.findIndex(i=>i==e);n>=0&&(Fn.splice(n,1),Fn.length==0&&document.removeEventListener("scroll",t))},es}start(){this.registerMouseEventListeners(),this.registerInputEventListeners(),this.registerTransitionEventListeners(),this.on("pointerMove",this.setMousePoint),this.addDOMEventBusRemoves(()=>{this.off("pointerMove",this.setMousePoint)}),this.registerResizeObserver(),this.registerElementDisplayInParent()}restart(){this.destroy(),this.start()}destroy(){this.domEventBusRemoves.forEach(t=>t()),this.domEventBusRemoves=[],this.removeAllListeners()}addDOMEventBusRemoves(t){this.domEventBusRemoves.push(t)}setMousePoint(t){const e=R0(this.container,t);return this.mousePoint.x=e.x,this.mousePoint.y=e.y,e}registerMouseEventListeners(){const t=A=>{this.emit("mouseDown",A)},e=A=>{this.emit("mouseUp",A)},n=A=>{this.emit("mouseMove",A)},i=A=>{this.emit("mouseOver",A)},r=A=>{this.emit("mouseOut",A)},o=A=>{this.emit("mouseClick",A)},a=A=>{this.emit("mouseDoubleClick",A)},l=A=>{this.emit("mouseWheel",A)},c=A=>{this.emit("mouseContextMenu",A)},u=A=>{this.emit("touchStart",A)},h=A=>{this.emit("touchEnd",A)},f=A=>{this.emit("touchCancel",A)},d=A=>{this.emit("touchMove",A)},m=A=>{this.emit("pointerDown",A)},g=A=>{this.emit("pointerUp",A)},v=A=>{this.emit("pointerCancel",A)},k=A=>{this.emit("pointerMove",A)},I=A=>{this.emit("pan",A)},M=A=>{this.emit("panStart",A)},C=A=>{this.emit("panMove",A)},j=A=>{this.emit("panEnd",A)},L=A=>{this.emit("panCancel",A)},X=A=>{this.emit("panLeft",A)},mt=A=>{this.emit("panRight",A)},bt=A=>{this.emit("panUp",A)},yt=A=>{this.emit("panDown",A)},At=A=>{this.emit("pinch",A)},zt=A=>{this.emit("press",A)},Kt=A=>{this.emit("rotate",A)},Qt=A=>{this.emit("swipe",A)},ne=A=>{this.emit("swipeLeft",A)},Yt=A=>{this.emit("swipeRight",A)},_t=A=>{this.emit("swipeUp",A)},xt=A=>{this.emit("swipeDown",A)},it=A=>{this.emit("tap",A)},q=A=>{!A.target||this.container==A.target||this.container.contains(A.target)||this.emit("tapOutSide",A)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),this.container.addEventListener("mousemove",n),this.container.addEventListener("mouseover",i),this.container.addEventListener("mouseout",r),this.container.addEventListener("click",o),this.container.addEventListener("dblclick",a),this.container.addEventListener("wheel",l),this.container.addEventListener("contextmenu",c),this.container.addEventListener("touchstart",u),this.container.addEventListener("touchend",h),this.container.addEventListener("touchcancel",f),this.container.addEventListener("touchmove",d),this.container.addEventListener("pointerdown",m),this.container.addEventListener("pointerup",g),this.container.addEventListener("pointercancel",v),this.container.addEventListener("pointermove",k),this.hammer.on("pan",I),this.hammer.on("panstart",M),this.hammer.on("panmove",C),this.hammer.on("panend",j),this.hammer.on("pancancel",L),this.hammer.on("panleft",X),this.hammer.on("panright",mt),this.hammer.on("panup",bt),this.hammer.on("pandown",yt),this.hammer.on("pinch",At),this.hammer.on("press",zt),this.hammer.on("rotate",Kt),this.hammer.on("swipe",Qt),this.hammer.on("swipeleft",ne),this.hammer.on("swiperight",Yt),this.hammer.on("swipeup",_t),this.hammer.on("swipedown",xt),this.hammer.on("tap",it),document.addEventListener("pointerdown",q,!1);const Et=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),this.container.removeEventListener("mousemove",n),this.container.removeEventListener("mouseover",i),this.container.removeEventListener("mouseout",r),this.container.removeEventListener("click",o),this.container.removeEventListener("dblclick",a),this.container.removeEventListener("wheel",l),this.container.removeEventListener("contextmenu",c),this.container.removeEventListener("touchstart",u),this.container.removeEventListener("touchend",h),this.container.removeEventListener("touchcancel",f),this.container.removeEventListener("touchmove",d),this.container.removeEventListener("pointerdown",m),this.container.removeEventListener("pointerup",g),this.container.removeEventListener("pointercancel",v),this.container.removeEventListener("pointermove",k),this.hammer.off("pan",I),this.hammer.off("panstart",M),this.hammer.off("panmove",C),this.hammer.off("panend",j),this.hammer.off("pancancel",L),this.hammer.off("panleft",X),this.hammer.off("panright",mt),this.hammer.off("panup",bt),this.hammer.off("pandown",yt),this.hammer.off("pinch",At),this.hammer.off("press",zt),this.hammer.off("rotate",Kt),this.hammer.off("swipe",Qt),this.hammer.off("swipeleft",ne),this.hammer.off("swiperight",Yt),this.hammer.off("swipeup",_t),this.hammer.off("swipedown",xt),this.hammer.off("tap",it),document.removeEventListener("pointerdown",q,!1),document.removeEventListener("touchstart",q,!1),document.removeEventListener("mousedown",q,!1)};return this.addDOMEventBusRemoves(Et),Et}registerInputEventListeners(){const t=l=>{this.emit("inputChange",l,this.container.files)},e=l=>{this.emit("dragstart",l)},n=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer&&(l.dataTransfer.dropEffect="copy"),this.emit("dragover",l)},i=l=>{this.emit("dragenter",l)},r=l=>{this.emit("dragend",l)},o=l=>{l.stopPropagation(),l.preventDefault(),l.dataTransfer,this.emit("drop",l,l.dataTransfer?.files)};this.container instanceof HTMLInputElement&&this.container.addEventListener("change",t,!1),this.container.addEventListener("dragstart",e,!1),this.container.addEventListener("dragover",n,!1),this.container.addEventListener("dragenter",i,!1),this.container.addEventListener("dragend",r,!1),this.container.addEventListener("drop",o,!1);const a=()=>{this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",t,!1),this.container.removeEventListener("dragstart",e,!1),this.container.removeEventListener("dragover",n,!1),this.container.removeEventListener("dragenter",i,!1),this.container.removeEventListener("dragend",r,!1),this.container.removeEventListener("drop",o,!1)};return this.addDOMEventBusRemoves(a),a}registerTransitionEventListeners(){const t=n=>{this.emit("transitionend",n)};this.container.addEventListener("transitionend",t);const e=()=>{this.container.removeEventListener("transitionend",t)};return this.addDOMEventBusRemoves(e),e}registerKeyDown(t,e,n){const i=U0.on(t,o=>(e(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addDOMEventBusRemoves(r),r}registerResizeObserver(){const t=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});t.observe(this.container);const e=()=>{t.unobserve(this.container)};return this.addDOMEventBusRemoves(e),e}registerMatchMediaChange(t){let e="";switch(t){case"(prefers-color-scheme: dark)":e="matchMediaChangePrefersColorSchemeDark";break;default:e=t;break}const n=r=>{this.emit(e,r.matches)};window.matchMedia(t).addEventListener("change",n);const i=()=>{window.matchMedia(t).removeEventListener("change",n)};return this.addDOMEventBusRemoves(i),i}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.addDOMEventBusRemoves(i),i}registerPullDownRefresh(t){const e=t?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=this.mousePoint.y-n,i>0&&i<e&&this.emit("pullDownIng",i)},end:()=>{i>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;let n=0,i=0;return this.captureMove({start:r=>{n=this.setMousePoint(r).y},move:()=>{i=n-this.mousePoint.y,i>0&&i<e&&this.emit("pullUpIng",i)},end:()=>{i>=e&&this.emit("pullUp")}})}static isTouchEnabled(){return"ontouchstart"in window||navigator.maxTouchPoints>0}captureMove(t){return this.captureMoveUsePointer(t)}captureMoveUsePointer(t){const e=o=>{this.container.setPointerCapture(o.pointerId),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("pointerDown",e),this.on("pointerUp",n),this.on("pointerCancel",n),this.on("pointerMove",i);const r=()=>{this.off("pointerDown",e),this.off("pointerUp",n),this.off("pointerCancel",n),this.off("pointerMove",i)};return this.addDOMEventBusRemoves(r),r}captureMoveUseMouse(t){const e=o=>{document.addEventListener("mousemove",i,!1),document.addEventListener("mouseup",n,!1),t?.start?.(o)},n=o=>{document.removeEventListener("mousemove",i,!1),document.removeEventListener("mouseup",n,!1),t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("mouseDown",e);const r=()=>{this.off("mouseDown",e)};return this.addDOMEventBusRemoves(r),r}captureMoveUseTouch(t){const e=o=>{o.preventDefault(),t?.start?.(o)},n=o=>{t?.end?.(o)},i=o=>{t?.move?.(o)};this.on("touchStart",e),this.on("touchEnd",n),this.on("touchCancel",n),this.on("touchMove",i);const r=()=>{this.off("touchStart",e),this.off("touchEnd",n),this.off("touchCancel",n),this.off("touchMove",i)};return this.addDOMEventBusRemoves(r),r}static getMouseButton(t){if(document.implementation.hasFeature("MouseEvents","2.0"))return t.button;switch(t.button){case 0:case 1:case 3:case 5:case 7:return 0;case 2:case 6:return 2;case 4:return 1}}}class Ea{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(()=>{Ea.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 H0 extends xr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=iu(this.source);if(t===0){this.emit("finish");return}let e,n,i=ru(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=ru(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==`
54
+ `&&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":zs("whitespace",t)?(this.textchunk+=H.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=H.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(!zs("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":zs("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(zs("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(zs("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":zs("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(zs("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(!zs("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(zs("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 Ju(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}}}ve.page.on("matchMediaChangePrefersColorSchemeDark",s=>{Ta(s?"dark":"light")}),W0();function Ta(s){Ju("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function W0(){const s=Ju("colorScheme");if(s=="dark"||s=="light")return Ta(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Ta(t),t}}const Y={safeAreaTop:H.getCSSVar("--safe-area-inset-top"),safeAreaRight:H.getCSSVar("--safe-area-inset-right"),safeAreaBottom:H.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:H.getCSSVar("--safe-area-inset-left"),colorPrimary:H.getCSSVar("--color-primary")||"#5078f0",colorRed:H.getCSSVar("--color-red")||"#ff5050",colorOrange:H.getCSSVar("--color-orange")||"#fa8c00",colorYellow:H.getCSSVar("--color-yellow")||"#fadc32",colorGreen:H.getCSSVar("--color-green")||"#00c878",colorBlue:H.getCSSVar("--color-blue")||"#00b4fa",colorPurple:H.getCSSVar("--color-purple")||"#6464fa",colorBlack:H.getCSSVar("--color-black")||"#001428",colorGray00:H.getCSSVar("--color-gray-00")||"#000000",colorGray33:H.getCSSVar("--color-gray-33")||"#333333",colorGray66:H.getCSSVar("--color-gray-66")||"#666666",colorGray99:H.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:H.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:H.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:H.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:H.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:H.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:H.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:H.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:H.getCSSVar("--font-line-height")||"1,4",fontSize32:H.getCSSVar("--font-size-32")||"32px",fontSize24:H.getCSSVar("--font-size-24")||"24px",fontSize20:H.getCSSVar("--font-size-20")||"20px",fontSize18:H.getCSSVar("--font-size-18")||"18px",fontSize16:H.getCSSVar("--font-size-16")||"16px",fontSize14:H.getCSSVar("--font-size-14")||"14px",fontSize12:H.getCSSVar("--font-size-12")||"12px",fontSize11:H.getCSSVar("--font-size-11")||"11px",gap4:H.getCSSVar("--gap-4")||"4px",gap8:H.getCSSVar("--gap-8")||"8px",gap12:H.getCSSVar("--gap-12")||"12px",gap16:H.getCSSVar("--gap-16")||"16px",gap20:H.getCSSVar("--gap-20")||"20px",gap40:H.getCSSVar("--gap-40")||"40px",height44:H.getCSSVar("--height-44")||"44px",height32:H.getCSSVar("--height-32")||"32px",borderRadius:H.getCSSVar("--border-radius")||"4px"},Z0=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function nn(s,t){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(Ke(s.r,0,255)),s.g=Math.round(Ke(s.g,0,255)),s.b=Math.round(Ke(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof t=="number"?t:s.a:s.a=typeof t=="number"?t:1,s.a=Ke(s.a,0,1),s;const e={r:0,g:0,b:0,a:1};let n=-1;if(typeof s=="number")n=s;else if(typeof s=="string")if(s[0].toLowerCase()==="r"){const i=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);i&&(n=(parseInt(i[1])<<16)+(parseInt(i[2])<<8)+parseInt(i[3]),i[4]&&(e.a=Ve(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(e.a=Ve(parseInt(s.slice(7,9),16)/255,2));else throw new Error("getColor 不支持的颜色解析:"+s);return n>=0&&(e.r=n>>16&255,e.g=n>>8&255,e.b=n&255),typeof t=="number"&&(e.a=t),e.a=Ke(e.a,0,1),e}function q0(s,t=!1){let e=nn(s);return t?e=nn(e.r*.299+e.g*.587+e.b*.114>186?"#000000":"#FFFFFF"):(e.r=255-e.r,e.g=255-e.g,e.b=255-e.b),e}function Ci(s,t){const e=nn(s,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function Nr(s){return pm(s.toString(16),2,"0","left")}function Si(s,t){const e=nn(s,t);let n=`#${Nr(e.r)}${Nr(e.g)}${Nr(e.b)}`;return e.a===1?n:n+`${Nr(Math.ceil(e.a*255))}`}function K0(s,t=!1){return Si(q0(s,t))}const Q0=()=>Math.random()*16777215,Fe=()=>Si(Q0());function Fs(s,t){const e=nn(s);return e.r==0&&(e.r=32),e.g==0&&(e.g=32),e.b==0&&(e.b=32),e.r=e.r*(100+t)/100,e.g=e.g*(100+t)/100,e.b=e.b*(100+t)/100,e.r=Math.round(Ke(e.r,0,255)),e.g=Math.round(Ke(e.g,0,255)),e.b=Math.round(Ke(e.b,0,255)),Si(e)}function th(s,t,e){try{const n=nn(s),i=nn(t);return Si({r:(i.r-n.r)*e+n.r,g:(i.g-n.g)*e+n.g,b:(i.b-n.b)*e+n.b,a:(i.a-n.a)*e+n.a})}catch{return t}}function Gn(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()}(function(){let s=Gn();window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const e=Gn(),n=Math.max(0,16-(e-s)),i=window.setTimeout(function(){t(e+n)},n);return s=e+n,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const J0=s=>{let t=!1;return window.requestAnimationFrame(function e(n){s(n),t||window.requestAnimationFrame(e)}),()=>{t=!0}};class tg{id=0;cbs={};cancelAnimateCycle;constructor(){}get length(){return Object.keys(this.cbs).length}run(t){this.cbs[this.id++]=t,!this.cancelAnimateCycle&&(this.cancelAnimateCycle=J0(e=>{const n=[];for(let i in this.cbs)this.cbs[i](e)===!1&&n.push(parseInt(i));for(let i of n)delete this.cbs[i];!this.length&&this.cancelAnimateCycle&&(this.cancelAnimateCycle(),this.cancelAnimateCycle=void 0)}))}runAccurateSetTimeout(t,e=0){let n=!1,i=Gn();return this.run(r=>n?!1:r-i>=e?(t(),!1):!0),()=>{n=!0}}}const Zt=new tg,Mr=new Map;async function eh(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(Mr.has(s))return t(null,Mr.get(s));const e=new Image;e.onload=function(){Mr.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,Mr.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class us extends ge{shapes=[];renderGroup;constructor(t){super(t),this.renderGroup=new Wu({x:this.x,y:this.y})}setAttrs(t,e){this.shapes.forEach(n=>{_r(t)?n.setAttr(t):typeof t=="string"&&e&&n.setAttr(t,e)})}addShape(t){this.shapes.push(...(Array.isArray(t)?t:[t]).map(e=>(e.shapeGroup=this,e.renderGroup=this.renderGroup,this.renderGroup.register(e),e)))}toSVGPathData(){return this.shapes.reduce((t,e,n)=>{const i=e.toSVGPathData();return Array.isArray(i[0])?t.push(...i):t.push(i),t},[])}toCanvasContext(t){}frameUpdate(){super.frameUpdate()}groupTranslate(t,e){this.x+=t,this.y+=e,this.renderGroup.x=this.x,this.renderGroup.y=this.y,this.shapes.forEach(n=>{n.x+=t,n.y+=e})}groupTranslateTo(t,e){this.groupTranslate(t-this.x,e-this.y)}groupRotate(t){this.degree+=t,this.shapes.forEach(e=>{e.degree+=t})}groupRotateTo(t){this.groupRotate(t-this.degree)}groupScaleTo(t){this.scalexOnOrigin=t,this.scaleyOnOrigin=t,this.shapes.forEach(e=>{e.scalexOnOrigin=t,e.scaleyOnOrigin=t})}}const sg=us;let Ei;typeof self>"u"&&typeof process<"u"&&process.hrtime?Ei=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?Ei=self.performance.now.bind(self.performance):Date.now!==void 0?Ei=Date.now:Ei=function(){return new Date().getTime()};const Bn=Ei;class Ti{static _nextId=0;static nextId(){return Ti._nextId++}}const Rr={Linear:{None:function(s){return s}},Ease:{In:function(s){return Math.pow(s,1.7)}},Quadratic:{In:function(s){return s*s},Out:function(s){return s*(2-s)},InOut:function(s){return(s*=2)<1?.5*s*s:-.5*(--s*(s-2)-1)}},Cubic:{In:function(s){return s*s*s},Out:function(s){return--s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s:.5*((s-=2)*s*s+2)}},Quartic:{In:function(s){return s*s*s*s},Out:function(s){return 1- --s*s*s*s},InOut:function(s){return(s*=2)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2)}},Quintic:{In:function(s){return s*s*s*s*s},Out:function(s){return--s*s*s*s*s+1},InOut:function(s){return(s*=2)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2)}},Sinusoidal:{In:function(s){return 1-Math.sin((1-s)*Math.PI/2)},Out:function(s){return Math.sin(s*Math.PI/2)},InOut:function(s){return .5*(1-Math.sin(Math.PI*(.5-s)))}},Exponential:{In:function(s){return s===0?0:Math.pow(1024,s-1)},Out:function(s){return s===1?1:1-Math.pow(2,-10*s)},InOut:function(s){return s===0?0:s===1?1:(s*=2)<1?.5*Math.pow(1024,s-1):.5*(-Math.pow(2,-10*(s-1))+2)}},Circular:{In:function(s){return 1-Math.sqrt(1-s*s)},Out:function(s){return Math.sqrt(1- --s*s)},InOut:function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)}},Elastic:{In:function(s){return s===0?0:s===1?1:-Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI)},Out:function(s){return s===0?0:s===1?1:Math.pow(2,-10*s)*Math.sin((s-.1)*5*Math.PI)+1},InOut:function(s){return s===0?0:s===1?1:(s*=2,s<1?-.5*Math.pow(2,10*(s-1))*Math.sin((s-1.1)*5*Math.PI):.5*Math.pow(2,-10*(s-1))*Math.sin((s-1.1)*5*Math.PI)+1)}},Back:{In:function(s){return s===1?1:s*s*((1.70158+1)*s-1.70158)},Out:function(s){return s===0?0:--s*s*((1.70158+1)*s+1.70158)+1},InOut:function(s){const t=2.5949095;return(s*=2)<1?.5*(s*s*((t+1)*s-t)):.5*((s-=2)*s*((t+1)*s+t)+2)}},Bounce:{In:function(s){return 1-Rr.Bounce.Out(1-s)},Out:function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},InOut:function(s){return s<.5?Rr.Bounce.In(s*2)*.5:Rr.Bounce.Out(s*2-1)*.5+.5}},generatePow:function(s=4){return s=s<Number.EPSILON?Number.EPSILON:s,s=s>1e4?1e4:s,{In:function(t){return t**s},Out:function(t){return 1-(1-t)**s},InOut:function(t){return t<.5?(t*2)**s/2:(1-(2-t*2)**s)/2+.5}}},random:function(s){return Math.random()},createStep:function(s){return function(t){return Math.floor(t*s)/s}},createNoisyEasing:function(s,t=.1){const e=1-t;return function(n){return t*Math.random()+e*s(n)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},Oa=Rr,Oi={Utils:{Linear:function(s,t,e){return(t-s)*e+s},Factorial:function(){const s=[1];return function(t){let e=1;if(s[t])return s[t];for(let n=t;n>1;n--)e*=n;return s[t]=e,e}}(),Bernstein:function(s,t){const e=Oi.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,i){const r=(e-s)*.5,o=(n-t)*.5,a=i*i,l=i*a;return(2*t-2*e+r+o)*l+(-3*t+3*e-2*r-o)*a+r*i+t}},Linear:function(s,t){const e=s.length-1,n=e*t,i=Math.floor(n),r=Oi.Utils.Linear;return t<0?r(s[0],s[1],n):t>1?r(s[e],s[e-1],e-n):r(s[i],s[i+1>e?e:i+1],n-i)},Bezier:function(s,t){let e=0;const n=s.length-1,i=Math.pow,r=Oi.Utils.Bernstein;for(let o=0;o<=n;o++)e+=i(1-t,n-o)*i(t,o)*s[o]*r(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,i=Math.floor(n);const r=Oi.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(i=Math.floor(n=e*(1+t))),r(s[(i-1+e)%e],s[i],s[(i+1)%e],s[(i+2)%e],n-i)):t<0?s[0]-(r(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(r(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):r(s[i?i-1:0],s[i],s[e<i+1?e:i+1],s[e<i+2?e:i+2],n-i)}},Ia=Oi;class sh{_tweens={};_tweensAddedDuringUpdate={};getAll(){return Object.keys(this._tweens).map(t=>this._tweens[t])}removeAll(){this._tweens={}}add(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t}remove(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]}update(t=Bn(),e=!1){let n=Object.keys(this._tweens);for(let i=0;i<n.length;i++){const r=this._tweens[n[i]],o=!e;r&&r.update(t,o)===!1&&!e&&delete this._tweens[n[i]]}return!!Object.keys(this._tweens).length}}const ss=new sh;class nh{constructor(t,e=ss){this._object=t,this._group=e}_id=Ti.nextId();_isPlaying=!1;_startTime=0;_delayTime=0;_durationTime=1e3;_isPaused=!1;_pauseStartTime=0;_initialRepeat=0;_repeat=0;_repeatDelayTime;_yoyo=!1;_reversed=!1;_valuesStart={};_valuesEnd={};_valuesStartRepeat={};_easingFunction=Oa.Linear.None;_interpolationFunction=Ia.Linear;_chainedTweens=[];_isChainStopped=!1;_onStartCallback;_onStartCallbackFired=!1;_onEveryStartCallback;_onEveryStartCallbackFired=!1;_onUpdateCallback;_onRepeatCallback;_onCompleteCallback;_onStopCallback;_goToEnd=!1;getId(){return this._id}isPlaying(){return this._isPlaying}isPaused(){return this._isPaused}to(t,e){return this._valuesEnd=Object.create(t),e!==void 0&&(this._durationTime=e),this}duration(t=1e3){return this._durationTime=t,this}start(t=Bn()){if(this._isPlaying)return this;if(this._group&&this._group.add(this),this._repeat=this._initialRepeat,this._reversed){this._reversed=!1;for(const e in this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e]}return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._onEveryStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=t,this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this}_setupProperties(t,e,n,i){for(const r in n){const o=t[r],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[r]);if(!(l==="undefined"||l==="function")){if(c){let u=n[r];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[r]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[r]=a?[]:{};for(const u in o)e[r][u]=o[u];i[r]=a?[]:{},this._setupProperties(o,e[r],n[r],i[r])}else typeof e[r]>"u"&&(e[r]=o),a||(e[r]*=1),c?i[r]=n[r].slice().reverse():i[r]=e[r]||0}}}stop(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group&&this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this}end(){return this._goToEnd=!0,this.update(1/0),this}pause(t=Bn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=Bn()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=ss){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=Oa.Linear.None){return this._easingFunction=t,this}interpolation(t=Ia.Linear){return this._interpolationFunction=t,this}chain(...t){return this._chainedTweens=t,this}onStart(t){return this._onStartCallback=t,this}onEveryStart(t){return this._onEveryStartCallback=t,this}onUpdate(t){return this._onUpdateCallback=t,this}onRepeat(t){return this._onRepeatCallback=t,this}onComplete(t){return this._onCompleteCallback=t,this}onStop(t){return this._onStopCallback=t,this}update(t=Bn(),e=!0){if(this._isPaused)return!0;let n,i;const r=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>r)return!1;e&&this.start(t)}if(this._goToEnd=!1,t<this._startTime)return!0;this._onStartCallbackFired===!1&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),this._onEveryStartCallbackFired===!1&&(this._onEveryStartCallback&&this._onEveryStartCallback(this._object),this._onEveryStartCallbackFired=!0),i=(t-this._startTime)/this._durationTime,i=this._durationTime===0||i>1?1:i;const o=this._easingFunction(i);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,i),i===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(n in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[n]=="string"&&(this._valuesStartRepeat[n]=this._valuesStartRepeat[n]+parseFloat(this._valuesEnd[n])),this._yoyo&&this._swapEndStartRepeatValues(n),this._valuesStart[n]=this._valuesStartRepeat[n];return this._yoyo&&(this._reversed=!this._reversed),this._repeatDelayTime!==void 0?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),this._onEveryStartCallbackFired=!1,!0}else{this._onCompleteCallback&&this._onCompleteCallback(this._object);for(let a=0,l=this._chainedTweens.length;a<l;a++)this._chainedTweens[a].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,n,i){for(const r in n){if(e[r]===void 0)continue;const o=e[r]||0;let a=n[r];const l=Array.isArray(t[r]),c=Array.isArray(a);!l&&c?t[r]=this._interpolationFunction(a,i):typeof a=="object"&&a?this._updateProperties(t[r],o,a,i):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[r]=o+(a-o)*i))}}_handleRelativeValue(t,e){return typeof e!="string"?e:e.charAt(0)==="+"||e.charAt(0)==="-"?t+parseFloat(e):parseFloat(e)}_swapEndStartRepeatValues(t){const e=this._valuesStartRepeat[t],n=this._valuesEnd[t];typeof n=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(n):this._valuesStartRepeat[t]=n,this._valuesEnd[t]=e}}const ng=nh,ig=Ti.nextId,rg=ss.getAll.bind(ss),og=ss.removeAll.bind(ss),ag=ss.add.bind(ss),lg=ss.remove.bind(ss),cg=ss.update.bind(ss),dt={now:Bn,Sequence:Ti,Easing:Oa,Interpolation:Ia,Group:sh,Tween:ng,nextId:ig,getAll:rg,removeAll:og,add:ag,remove:lg,update:cg};function ug(s){switch(s){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-in-out":return[.42,0,.58,1];case"ease-out":return[0,0,.58,1]}}const hg={attributeName:["display"],values:[["block","block"]],immediate:!1},Qe={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class se{objects=[];animateObjects=[];currentAnimateName;constructor(){}fromDOM(t){return this.objects.forEach(e=>{e.app.destroy()}),this.objects=[],(Array.isArray(t)?t:[t]).forEach(e=>{this.objects.push({el:e,app:new ve(e),originAttrs:{}})}),this}static toTween(t,e,n){const i=n?.onStart||(()=>{}),r=n?.onUpdate||(()=>{}),o=n?.onComplete||(()=>{}),a=n?.duration||1e3,l=n?.delay||0,c=n?.easeFunction||dt.Easing.Linear.None,u=n?.repeat||0,h=n?.yoyo||!1,f=new dt.Tween(t).to(e,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(i).onUpdate((d,m)=>{r(d,m)}).onComplete(o);return n?.interpolationFunction&&f.interpolation(n.interpolationFunction),{tween:f,startAuto:d=>{f.start(d?.()),Zt.run(()=>{const m=f.update(d?.());if(n?.precision){let g=!0;for(let v in t)gi(t[v],e[v],n.precision)||(g=!1);return g?!1:m}return m})}}}static toTweenGroup(t,e){if(t instanceof nh)return n=>{t.start(),e?.onGroupStart?.(),Zt.run(()=>{const i=dt.update(n?.());return i?e?.onGroupUpdate?.():e?.onGroupComplete?.(),i})};{const n=new dt.Group;return t.forEach(i=>{n.add(i)}),i=>{t.forEach(r=>r.start()),e?.onGroupStart?.(),Zt.run(()=>{const r=n.update(i?.());return r?e?.onGroupUpdate?.():e?.onGroupComplete?.(),r})}}}static toTweenCSS(t,e,n,i){H.add3DSupport(t);const r=i?.onUpdate||(()=>{});return se.toTween(e,n,Object.assign(i||{},{onUpdate:(o,a)=>{const l=H.convertAttrs(t,o);H.setStyle(t,l),r(o,a)}}))}addAnimateObject(t=hg,e=Qe,n=0,i=!1){const r=e.easeName||"linear",o=e.dur||300,a=e.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(ug(r))});const c=this.objects[n];return this.animateObjects=i?[]:this.animateObjects,this.animateObjects.push({el:c.el,app:c.app,originAttrs:c.originAttrs,attributeName:t.attributeName,values:t.values,immediate:t.immediate||!1,easeName:r,begin:e.begin||0,dur:o,repeatCount:e.repeatCount||1,direction:e.direction||"normal",fill:e.fill||"freeze",keyTimes:a,realKeyTimes:a.map(u=>o*u),keySplines:l,calcMode:e.calcMode||"linear",onComplete:e.onComplete||(()=>{})}),this}resetAnimateObjects(t,e,n,i,r=Qe,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=Ke(o,0,h);let f=o-1;f=Ke(f,0,h);let d=o+1;d=Ke(d,0,h);const m=this.objects[o],g=this.objects[f],v=this.objects[d];if(g&&f!==o){const k=t(g);k&&(this.addAnimateObject(k,r,f,a),a=!1,l=!0)}if(m){const k=e(m);k&&(this.addAnimateObject(k,r,o,a),a=!1,c=!0)}if(v&&d!==o){const k=n(v);k&&(this.addAnimateObject(k,r,d,a),a=!1,u=!0)}this.objects.forEach((k,I)=>{if(!(I==f&&l||I==o&&c||I==d&&u)){const M=i(k);M&&(this.addAnimateObject(M,r,I,a),a=!1)}})}toCSS(t,...e){if(this.objects.length==0)return;this.currentAnimateName=t,this[t](...e),H.add3DSupport(this.objects[0].el),this.objects.forEach((r,o)=>{H.setStyle(r.el,{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let n=0;const i=()=>{this.animateObjects.forEach((r,o)=>{let a=[],l=[];Array.isArray(r.attributeName)?(a=r.attributeName,l=r.values):r.attributeName&&(a=[r.attributeName],l=[r.values]);const c=r.keyTimes.length;let u=r.begin;r.keyTimes.forEach((h,f)=>{const d={};a.forEach((g,v)=>{const k=l[v][r.direction=="reverse"?c-1-f:f];d[g]=k});const m=H.convertAttrs(r.el,d,r.originAttrs);f==0||r.immediate?H.setStyle(r.el,Object.assign(m,{transition:"none"})):(Zt.runAccurateSetTimeout(()=>{H.setStyle(r.el,Object.assign(m,{transition:`all ${r.realKeyTimes[f]}ms cubic-bezier(${r.keySplines[f-1].join(",")})`}))},u),u+=r.realKeyTimes[f])}),Zt.runAccurateSetTimeout(()=>{r.fill==="remove"&&H.setStyle(r.el,r.originAttrs||{}),o==this.animateObjects.length-1&&(r.onComplete?.(),this.currentAnimateName==t&&(r.repeatCount=="infinite"||typeof r.repeatCount=="number"&&++n<r.repeatCount)&&i())},r.begin+r.dur)})};i()}slideLeft(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[-n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[n.app.width,0],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[n.app.width,0],[n.app.width,0]]],immediate:!0}),t,e)}slideRight(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[-n.app.width,0],[0,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[n.app.width,0]]]}),n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[-n.app.width,0],[-n.app.width,0]]],immediate:!0}),t,e)}slideDown(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,-n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,-n.app.height],[0,-n.app.height]]],immediate:!0}),t,e)}slideUp(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,0],[0,-n.app.height]]]}),n=>({attributeName:["opacity","translateTo"],values:[[1,1],[[0,n.app.height],[0,0]]]}),n=>{},n=>({attributeName:["opacity","translateTo"],values:[[0,0],[[0,n.app.height],[0,n.app.height]]],immediate:!0}),t,e)}flipLeft(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipRight(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateYTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipDown(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,-180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}flipUp(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[0,180]]}),n=>({attributeName:["opacity","rotateXTo"],values:[[1,1],[-180,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popIn(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[.8,1],[0,1]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}popOut(t=Qe,e=this.objects.length-1){this.resetAnimateObjects(n=>{},n=>({attributeName:["translateTo","scaleTo","opacity"],values:[[[0,0],[0,0]],[1,1.2],[1,0]]}),n=>{},n=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}rotate(t=Qe,e=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const n=t.degree||360;this.resetAnimateObjects(i=>{},i=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),i=>{},i=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}}class dg extends H0{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=Em(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),Da(this.currentItem.style,this.currentItem,$a)}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&&Da(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+Pa(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($a.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"&&Da(o,this.currentItem,$a),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 Pa(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 Pa(s,t,i,r)-Pa(e,n,i,r)}function Da(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 $a=["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 ih{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e,n){this.app=t,this.rootEl=me.createSVGElement("svg"),H.empty(this.app.container),H.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.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const i=this.shapes.length;let r=0;for(;r<i;r++){const o=this.shapes[r];if(!(o instanceof Ct)&&!o.pathd){o.isMouseIn=!1,o.mouseX=0,o.mouseY=0;continue}const a=o instanceof Ct&&(o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||o.pathd instanceof Ct&&(o.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||!1;if(o.isMouseIn=a,o.mouseX=this.app.mousePoint.x,o.mouseY=this.app.mousePoint.y,a&&(this.currentMouseInShapeID=o.id,o.enableDrag)){this.currentEnableDragMouseInShapeID=o.id,this.shapes.filter(l=>l.id!==o.id).forEach(l=>{l instanceof ge&&(l.isMouseIn=!1,l.mouseX=0,l.mouseY=0)});break}}r>=i&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing",this.shapes.forEach(t=>{t.autoRender&&this.path(t.shapeGroup||t)}))):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}setSize(t,e){return H.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return me.downloadFromSVGElement(this.rootEl)}path(t){[...Array.isArray(t)?t:[t]].forEach(e=>{if(e instanceof us){e.frameUpdate(),e.shapes.forEach(n=>this.path(n));return}if(!e.el){if(e instanceof Lr)e.el=this.text(e.text,e.x,e.y,cu(e.attrs,(n,i)=>typeof i=="string"));else if(e instanceof Me)e.el=me.createSvgPath(`M ${e.fromX} ${e.fromY} `+e.toSVGPathD()),H.insert(this.rootEl,e.el);else if(e instanceof Ct)e.el=me.createSvgPath(e.toSVGPathD()),H.insert(this.rootEl,e.el);else if(e instanceof ge){const n=Ct.fromShape(e)||e;e.el=n.el=me.createSvgPath(n.toSVGPathD()),H.insert(this.rootEl,e.el),n instanceof Ct&&(e.pathd=n)}}this.shapes.find(n=>n.id==e.id)||this.shapes.push(e),this.update(e)})}update(t){[...Array.isArray(t)?t:[t]].forEach(e=>{const n=[];e instanceof us?(e.frameUpdate(),n.push(...e.shapes)):n.push(e),n.forEach(i=>{if(i.followMouse&&(!gi(i.x,this.app.mousePoint.x,5)||!gi(i.y,this.app.mousePoint.y,5))&&(i.rotateTo(this.app.mousePoint),i.followTo(this.app.mousePoint)),i.targetToAfterDragFree&&(this.isMouseDown||i.nextFrameEaseTo({x:i.targetToAfterDragFree.targetX,y:i.targetToAfterDragFree.targetY},{easing:i.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==i.id){const{dx:r,dy:o}=i.centerDiff,a=i.x,l=i.y;if(i.x=this.app.mousePoint.x-r,i.y=this.app.mousePoint.y-o,i.alongPath){const c=i.alongPath.closestPoint(i.x,i.y);i.x=c.point.x,i.y=c.point.y}i.isDragging=!0,i.emit("moving",i.x-a,i.y-l)}else i instanceof ge&&(i.isDragging=!1);(i instanceof Me||i instanceof Ct||i.pathd instanceof Ct)&&this.attr(i,"d",i instanceof Me?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof Ct?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof Lr&&(i.setAttr("x",String(i.x)),i.setAttr("y",String(i.y))),this.attr(i,cu(i.attrs,(r,o)=>typeof o=="string")),i.frameUpdate(),i instanceof Ct?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),i.el&&(i.isShow?H.show(i.el):H.hide(i.el))})})}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof Ct&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl))||n.pathd instanceof Ct&&(n.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.pathd.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)))&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}delete(t){[...t instanceof us?t.shapes:[t]].forEach(e=>{e.el&&H.remove(e.el),e.pathd?.el&&H.remove(e.pathd?.el),delete e.el,delete e.pathd,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&H.remove(t.el),t.pathd?.el&&H.remove(t.pathd?.el),delete t.el,delete t.pathd}),H.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?H.attribute(i):typeof e=="string"&&n===void 0?H.attribute(i,qe(e))||"":(typeof e=="object"?H.attribute(i,e):typeof e=="string"&&n!==void 0&&H.attribute(i,qe(e),n),this):this}circle(t,e,n){return this.path(new Ne({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=me.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return H.insert(this.rootEl,i),i}ellipse(t,e,n,i){return this.path(new yg({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=me.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return H.insert(this.rootEl,r),r}rect(t,e,n,i){return this.path(new Ee({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=me.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return H.insert(this.rootEl,r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=me.createSVGElement("text",{x:String(e),y:String(n)});return H.html(r,t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),H.insert(this.rootEl,r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=me.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
55
+ `).forEach((a,l)=>{if(a.trim()){const c=me.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});H.html(c,a),H.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),H.insert(this.rootEl,o),o}}const rh=fg("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);function fg(s,t=10){const e={},n=s.split(",");for(let i=0;i<n.length;i+=2){const r="&"+n[i+1]+";",o=parseInt(n[i],t);e[r]="&#"+o+";"}return e["\\xa0"]="&#160;",e}function Ge(s,t){const e=Object.keys(t);for(let n=0;n<e.length;n++)s=s.replace(new RegExp("{"+e[n]+"}","gi"),""+t[e[n]]);return s}function Ar(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const n="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=n[Math.floor(Math.random()*n.length)];while(s[t]);return t}function pg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function mg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const Ii={strokeStyle:{svgAttr:"stroke",canvas:"#000000",svg:"none",apply:"stroke"},fillStyle:{svgAttr:"fill",canvas:"#000000",svg:null,apply:"fill"},lineCap:{svgAttr:"stroke-linecap",canvas:"butt",svg:"butt",apply:"stroke"},lineJoin:{svgAttr:"stroke-linejoin",canvas:"miter",svg:"miter",apply:"stroke"},miterLimit:{svgAttr:"stroke-miterlimit",canvas:10,svg:4,apply:"stroke"},lineWidth:{svgAttr:"stroke-width",canvas:1,svg:1,apply:"stroke"},globalAlpha:{svgAttr:"opacity",canvas:1,svg:1,apply:"fill stroke"},font:{canvas:"10px sans-serif"},shadowColor:{canvas:"#000000"},shadowOffsetX:{canvas:0},shadowOffsetY:{canvas:0},shadowBlur:{canvas:0},textAlign:{canvas:"start"},textBaseline:{canvas:"alphabetic"},lineDash:{svgAttr:"stroke-dasharray",canvas:[],svg:null,apply:"stroke"},lineDashOffset:{svgAttr:"stroke-dashoffset",canvas:0,svg:0,apply:"stroke"}};class Na{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const n=this.__ctx.__createElement("stop");if(n.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const r=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);r&&(n.setAttribute("stop-color",Ge("rgb({r},{g},{b})",{r:r[1],g:r[2],b:r[3]})),n.setAttribute("stop-opacity",r[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class oh{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class zr{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:n=500}){t?(this.__canvas=t,this.__ctx=t.getContext("2d"),this.width=t.width,this.height=t.height):(this.__canvas=this.__document.createElement("canvas"),this.__ctx=this.__canvas.getContext("2d"),this.width=e,this.height=n),this.__setDefaultStyles(),this.__styleStack=[this.__getStyleState()],this.__groupStack=[],this.__rootSVG=this.__document.createElementNS("http://www.w3.org/2000/svg","svg"),this.__rootSVG.setAttribute("version","1.1"),this.__rootSVG.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.__rootSVG.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),this.__rootSVG.setAttribute("width",""+this.width),this.__rootSVG.setAttribute("height",""+this.height),this.__ids={},this.__SVGdefs=this.__document.createElementNS("http://www.w3.org/2000/svg","defs"),this.__rootSVG.appendChild(this.__SVGdefs),this.__currentElement=this.__document.createElementNS("http://www.w3.org/2000/svg","g"),this.__rootSVG.appendChild(this.__currentElement)}__setDefaultStyles(){const t=Object.keys(Ii);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=Ii[i].canvas}}__getStyleState(){const t={},e=Object.keys(Ii);for(let n=0,i=e.length;n<i;n++){const r=e[n];t[r]=this[r]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,i=e.length;n<i;n++){const r=e[n];this[r]=t[r]}}__createElement(t,e={},n=!1){const i=this.__document.createElementNS("http://www.w3.org/2000/svg",t),r=Object.keys(e);n&&(i.setAttribute("fill","none"),i.setAttribute("stroke","none"));for(let o=0;o<r.length;o++){const a=r[o];i.setAttribute(a,e[a])}return i}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(r=>{r.setAttribute(t,"")}));const i=Object.keys(Ii);for(let r=0;r<i.length;r++){const o=Ii[i[r]],a=this[i[r]];if(o.apply){if(a instanceof oh){if(a.__ctx)for(;a.__ctx.__SVGdefs.childNodes.length;){const l=a.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(a.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(o.apply,Ge("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Na)e.setAttribute(o.apply,Ge("url(#{id})",{id:a.__root.getAttribute("id")}));else if(o.apply.indexOf(t)!==-1&&o.svg!==a)if((o.svgAttr==="stroke"||o.svgAttr==="fill")&&a.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(a);if(c){e.setAttribute(o.svgAttr,Ge("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const h=this.globalAlpha;h!=null&&(u*=h),e.setAttribute(o.svgAttr+"-opacity",""+u)}}else{let l=o.svgAttr;if(i[r]==="globalAlpha"&&(l=t+"-"+o.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,a)}}}}__closestGroupOrSvg(t){return t=t||this.__currentElement,t.nodeName==="g"||t.nodeName==="svg"?t:this.__closestGroupOrSvg(t.parentNode)}getSerializedSvg(t){let e=new XMLSerializer().serializeToString(this.__rootSVG);if(/xmlns="http:\/\/www\.w3\.org\/2000\/svg".+xmlns="http:\/\/www\.w3\.org\/2000\/svg/gi.test(e)&&(e=e.replace('xmlns="http://www.w3.org/2000/svg','xmlns:xlink="http://www.w3.org/1999/xlink')),t){const i=Object.keys(rh);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=rh[a],c=new RegExp(a,"gi");c.test(e)&&(e=e.replace(c,l))}}return e}getSvg(){return this.__rootSVG}save(){const t=this.__createElement("g"),e=this.__closestGroupOrSvg();this.__groupStack.push(e),e.appendChild(t),this.__currentElement=t,this.__styleStack.push(this.__getStyleState())}restore(){this.__currentElementsToStyle=null;const t=this.__groupStack.pop();t?this.__currentElement=t:this.__currentElement=this.__rootSVG.childNodes[1];const e=this.__styleStack.pop();e&&this.__applyStyleState(e)}__addTransform(t){const e=this.__closestGroupOrSvg();if(e.childNodes.length>0){this.__currentElement.nodeName==="path"&&(this.__currentElementsToStyle||(this.__currentElementsToStyle={element:e,children:[]}),this.__currentElementsToStyle.children.push(this.__currentElement),this.__applyCurrentDefaultPath());const i=this.__createElement("g");e.appendChild(i),this.__currentElement=i}let n=this.__currentElement.getAttribute("transform");n?n+=" ":n="",n+=t,this.__currentElement.setAttribute("transform",n)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Ge("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Ge("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Ge("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Ge("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:i,e:r,f:o}))}beginPath(){this.__currentDefaultPath="",this.__currentPosition={};const t=this.__createElement("path",{},!0);this.__closestGroupOrSvg().appendChild(t),this.__currentElement=t}__applyCurrentDefaultPath(){const t=this.__currentElement;t.nodeName==="path"&&t.setAttribute("d",this.__currentDefaultPath)}__addPathCommand(t){this.__currentDefaultPath+=" ",this.__currentDefaultPath+=t}moveTo(t,e){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.__currentPosition={x:t,y:e},this.__addPathCommand(Ge("M {x} {y}",this.__currentPosition))}closePath(){this.__currentDefaultPath&&this.__addPathCommand("Z")}lineTo(t,e){this.__currentPosition={x:t,y:e},this.__currentDefaultPath.indexOf("M")>-1?this.__addPathCommand(Ge("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Ge("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Ge("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:i,x:r,y:o}))}quadraticCurveTo(t,e,n,i){this.__currentPosition={x:n,y:i},this.__addPathCommand(Ge("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:i}))}normalize(t){const e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}arcTo(t,e,n,i,r){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(r<0)throw new Error("IndexSizeError: The radius provided ("+r+") is negative.");if(o===t&&a===e||t===n&&e===i||r===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,i-e]);if(l[0]*c[1]===l[1]*c[0]){this.lineTo(t,e);return}const u=l[0]*c[0]+l[1]*c[1],h=Math.acos(Math.abs(u)),f=this.normalize([l[0]+c[0],l[1]+c[1]]),d=r/Math.sin(h/2),m=t+d*f[0],g=e+d*f[1],v=[-l[1],l[0]],k=[c[1],-c[0]],I=function(j){const L=j[0];return j[1]>=0?Math.acos(L):-Math.acos(L)},M=I(v),C=I(k);this.lineTo(m+v[0]*r,g+v[1]*r),this.arc(m,g,r,M,C)}stroke(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","fill stroke markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("stroke")}fill(){this.__currentElement.nodeName==="path"&&this.__currentElement.setAttribute("paint-order","stroke fill markers"),this.__applyCurrentDefaultPath(),this.__applyStyleToCurrentElement("fill")}rect(t,e,n,i){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+i),this.lineTo(t,e+i),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,i){const r=this.__createElement("rect",{x:t,y:e,width:n,height:i},!0);this.__closestGroupOrSvg().appendChild(r),this.__currentElement=r,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],i=n.childNodes;for(let r=i.length-1;r>=0;r--)i[r]&&n.removeChild(i[r]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,i){if(t===0&&e===0&&n===this.width&&i===this.height){this.__clearCanvas();return}const r=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:i,fill:"#FFFFFF"},!0);r.appendChild(o)}createLinearGradient(t,e,n,i){const r=this.__createElement("linearGradient",{id:Ar(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new Na(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:Ar(this.__ids),cx:i+"px",cy:r+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Na(a,this)}__parseFont(){const e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext]))(?:\s*\/\s*(normal|[.\d]+(?:%|in|[cem]m|ex|p[CustomCanvasContext])))?\s*([-,'"\sa-z0-9]+?)\s*$/i.exec(this.font),n={style:e[1]||"normal",size:e[4]||"10px",family:e[6]||"sans-serif",weight:e[3]||"normal",decoration:e[2]||"normal",href:null};return this.__fontUnderline==="underline"&&(n.decoration="underline"),this.__fontHref&&(n.href=this.__fontHref),n}__wrapTextLink(t,e){if(t.href){const n=this.__createElement("a");return n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),n.appendChild(e),n}return e}__applyText(t,e,n,i){const r=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":r.family,"font-size":r.size,"font-style":r.style,"font-weight":r.weight,"text-decoration":r.decoration,x:e,y:n,"text-anchor":pg(this.textAlign),"dominant-baseline":mg(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(i),o.appendChild(this.__wrapTextLink(r,a))}fillText(t,e,n){this.__applyText(t,e,n,"fill")}strokeText(t,e,n){this.__applyText(t,e,n,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,n,i,r,o){if(i===r)return;i=i%(2*Math.PI),r=r%(2*Math.PI),i===r&&(r=(r+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(r),l=e+n*Math.sin(r),c=t+n*Math.cos(i),u=e+n*Math.sin(i),h=o?0:1;let f=0,d=r-i;d<0&&(d+=2*Math.PI),o?f=d>Math.PI?0:1:f=d>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Ge("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:f,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=Ar(this.__ids),i=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",n),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Ge("url(#{id})",{id:n})),t.appendChild(i),this.__currentElement=i}drawImage(...t){let e=t[0],n,i,r,o,a=0,l=0,c,u,h,f,d,m,g,v;if(t.length===3)n=t[1],i=t[2],c=e.width,u=e.height,r=c,o=u;else if(t.length===5)n=t[1],i=t[2],r=t[3],o=t[4],c=e.width,u=e.height;else if(t.length===9)a=t[1],l=t[2],c=t[3],u=t[4],n=t[5],i=t[6],r=t[7],o=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const k=this.__closestGroupOrSvg();this.__currentElement;const I="translate("+n+", "+i+")";if(e instanceof zr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)v=f.childNodes[0].getAttribute("id"),this.__ids[v]=v,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const M=d.getAttribute("transform");let C;M?C=M+" "+I:C=I,d.setAttribute("transform",C),k.appendChild(d)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(m=this.__createElement("image"),m.setAttribute("width",r),m.setAttribute("height",o),m.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(g=this.__document.createElement("canvas"),g.width=r,g.height=o,g.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=g),m.setAttribute("transform",I),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),k.appendChild(m))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Ar(this.__ids);let r;return n.setAttribute("id",i),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(r=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(r),this.__SVGdefs.appendChild(n)):t instanceof zr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new oh(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Ma{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n,i=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),i&&(this.customContext=new zr({canvas:this.canvas,width:e||this.canvas.width,height:n||this.canvas.height}))}set lineWidth(t){this.hasSetCustomStrokeStyle=!0,this.context.lineWidth=t,this.customContext&&(this.customContext.lineWidth=t)}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext&&(this.customContext.lineCap=t)}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext&&(this.customContext.lineCap=t)}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext&&(this.customContext.lineDashOffset=t)}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext&&(this.customContext.miterLimit=t)}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,this.customContext&&(this.customContext.globalAlpha=t)}get globalAlpha(){return this.context.globalAlpha}set fillStyle(t){this.hasSetCustomFillStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.fillStyle=t,this.customContext&&(this.customContext.fillStyle=t)):(this.context.fillStyle=t.gradient,this.customContext&&(this.customContext.fillStyle=t.gradientCustom))}get fillStyle(){return this.context.fillStyle}set strokeStyle(t){this.hasSetCustomStrokeStyle=!0,typeof t=="string"||t instanceof CanvasGradient||t instanceof CanvasPattern?(this.context.strokeStyle=t,this.customContext&&(this.customContext.strokeStyle=t)):(this.context.strokeStyle=t.gradient,this.customContext&&(this.customContext.strokeStyle=t.gradientCustom))}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext&&(this.customContext.font=t)}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext&&(this.customContext.textBaseline=t)}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext&&(this.customContext.textAlign=t)}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext&&this.customContext.fill()),this}fillRect(t,e,n,i){return this.context.fillRect(t,e,n,i),this.customContext&&this.customContext.fillRect(t,e,n,i),this}fillText(t,e,n,i){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,n,i),this.customContext&&this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext&&this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext&&this.customContext.stroke()),this}strokeText(t,e,n,i){return this.context.strokeText(t,e,n,i),this.customContext&&this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,i){return this.context.strokeRect(t,e,n,i),this.customContext&&this.customContext.strokeRect(t,e,n,i),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,i=this.canvas.height){return this.context.clearRect(t,e,n,i),this.customContext&&this.customContext.clearRect(t,e,n,i),this}save(){return this.context.save(),this.customContext&&this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),this.customContext&&this.customContext.restore(),this.hasSetCustomStrokeStyle=!1,this.hasSetCustomFillStyle=!1,this.currentMatrix=new DOMMatrix,this.currentPath2D=this.path2Ds.pop()||new Path2D,this}beginPath(){return this.context.beginPath(),this.customContext&&this.customContext.beginPath(),this}closePath(){return this.context.closePath(),this.customContext&&this.customContext.closePath(),this.currentPath2D.closePath(),this}changePath2D(t=this.currentPath2D,e=this.currentMatrix){const n=new Path2D;n.addPath(t,e),this.currentPath2D=n}isPointInStroke(...t){return t[0]instanceof Path2D?this.context.isPointInStroke(t[0],t[1],t[2]):this.context.isPointInStroke(t[0],t[1])}isPointInPath(...t){return t[0]instanceof Path2D?this.context.isPointInPath(t[0],t[1],t[2]):this.context.isPointInPath(t[0],t[1])}translate(t,e){return this.context.translate(t,e),this.customContext&&this.customContext.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t,e=0,n=0){return this.translate(e,n),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-n),this.changePath2D(),this}scale(t,e=t,n=0,i=0){return this.translate(n,i),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-n,-i),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext&&this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext&&this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,i,r,o){return this.context.arc(t,e,n,i,r,o),this.customContext&&this.customContext.arc(t,e,n,i,r,o?-1:1),this.currentPath2D.arc(t,e,n,i,r,o),this}arcTo(t,e,n,i,r){return this.context.arcTo(t,e,n,i,r),this.customContext&&this.customContext.arcTo(t,e,n,i,r),this.currentPath2D.arcTo(t,e,n,i,r),this}ellipse(t,e,n,i,r,o,a,l){return this.context.ellipse(t,e,n,i,r,o,a,l),this.currentPath2D.ellipse(t,e,n,i,r,o,a,l),this}quadraticCurveTo(t,e,n,i){return this.context.quadraticCurveTo(t,e,n,i),this.customContext&&this.customContext.quadraticCurveTo(t,e,n,i),this.currentPath2D.quadraticCurveTo(t,e,n,i),this}bezierCurveTo(t,e,n,i,r,o){return this.context.bezierCurveTo(t,e,n,i,r,o),this.customContext&&this.customContext.bezierCurveTo(t,e,n,i,r,o),this.currentPath2D.bezierCurveTo(t,e,n,i,r,o),this}rect(t,e,n,i){return this.context.rect(t,e,n,i),this.customContext&&this.customContext.rect(t,e,n,i),this.currentPath2D.rect(t,e,n,i),this}createLinearGradient(t,e,n,i,r){const o=this.context.createLinearGradient(t,e,n,i);return r&&Object.entries(r).forEach(([a,l])=>{o.addColorStop(parseFloat(a),l)}),o}createRadialGradient(t,e,n,i,r,o,a){const l=this.context.createRadialGradient(t,e,n,i,r,o);return a&&Object.entries(a).forEach(([c,u])=>{l.addColorStop(parseFloat(c),u)}),l}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],i=e[1];this.context.drawImage(t,n,i)}else if(e.length===4){const n=e[0],i=e[1],r=e[2],o=e[3];this.context.drawImage(t,n,i,r,o)}else if(e.length===8){const n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,i,r,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext&&this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,i=this.canvas.height,r){return this.context.getImageData(t,e,n,i,r)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}createPattern(t,e){return this.context.createPattern(t,e)}toRawSVG(){if(this.customContext){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}else return{raw:"",element:null}}}class Me extends ge{fromX;fromY;constructor(t){super(t),this.fromX=t?.fromX||0,this.fromY=t?.fromY||0}static fromSVGPathData(t,e){if(t.length<3)throw new Error("Line 参数个数错误");if(t[0].toUpperCase()!=="L")throw new Error("Line command 错误");return new Me({x:t[1],y:t[2],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["L",this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.lineTo(this.x,this.y)}getBoundingClientRect(){const t=Vn(this.fromX,this.fromY,this.x,this.y);if(t===0){const e=Math.min(this.x,this.fromX),n=Math.min(this.y,this.fromY),i=Math.max(this.x,this.fromX),r=Math.max(this.y,this.fromY);return new ki({x:e,y:n,width:i-e,height:r-n})}else{const e=Math.sin(t),n=Math.cos(t),i=n*this.fromX-e*this.fromY,r=n*this.x-e*this.y,o=n*this.fromY+e*this.fromX,a=n*this.y+e*this.x;return new ki({x:Math.min(i,r),y:Math.min(o,a),width:Math.max(i,r)-Math.min(i,r),height:Math.max(o,a)-Math.min(o,a)})}}interpolate(t){return{x:this.fromX+t*(this.x-this.fromX),y:this.fromY+t*(this.y-this.fromY)}}intersection(t){const e=this.fromX,n=this.fromY,i=t.x,r=t.y,o=this.x-e,a=t.fromX-i;if(!o&&!a)return null;const l=(this.y-n)/o,c=(t.fromY-r)/a;if(o){if(!a)return{x:i,y:l*(i-e)+n}}else return{x:e,y:c*(e-i)+r};const u=(-c*i+r+l*e-n)/(l-c),h=l*(u-e)+n;return isNaN(u)||isNaN(h)?null:{x:u,y:h}}}class Ra extends Me{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}static fromSVGPathData(t,e){if(t.length<7)throw new Error("CubicBezier 参数个数错误");if(t[0].toUpperCase()!=="C")throw new Error("CubicBezier command 错误");return new Ra({c1x:t[1],c1y:t[2],c2x:t[3],c2y:t[4],x:t[5],y:t[6],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["C",this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y]}toCanvasContext(t){t.beginPath(),t.moveTo(this.fromX,this.fromY),t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y)}getBoundingClientRect(){const t=me.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new ki({x:t.min.x,y:t.min.y,width:t.max.x-t.min.x,height:t.max.y-t.min.y})}interpolate(t){return{x:Math.pow(1-t,3)*this.fromX+3*Math.pow(1-t,2)*t*this.c1x+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2x+Math.pow(t,3)*this.x,y:Math.pow(1-t,3)*this.fromY+3*Math.pow(1-t,2)*t*this.c1y+3*Math.pow(1-t,1)*Math.pow(t,2)*this.c2y+Math.pow(t,3)*this.y}}length(t=1){return me.bezlen(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y,t)}getTatLen(t){const e=this.fromX,n=this.fromY,i=this.c1x,r=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(t<0||me.bezlen(e,n,i,r,o,a,l,c)<t)return 0;let u=1,h=u/2,f=u-h,d,m=.01;for(d=me.bezlen(e,n,i,r,o,a,l,c,f);Math.abs(d-t)>m;)h/=2,f+=(d<t?1:-1)*h,d=me.bezlen(e,n,i,r,o,a,l,c,f);return f}getPointAtSegmentLength(t){const e=this.getTatLen(t),n=this.fromX,i=this.fromY,r=this.c1x,o=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-e,f=Math.pow(h,3),d=Math.pow(h,2),m=e*e,g=m*e,v=f*n+d*3*e*r+h*3*e*e*a+g*c,k=f*i+d*3*e*o+h*3*e*e*l+g*u,I=n+2*e*(r-n)+m*(a-2*r+n),M=i+2*e*(o-i)+m*(l-2*o+i),C=r+2*e*(a-r)+m*(c-2*a+r),j=o+2*e*(l-o)+m*(u-2*l+o),L=h*n+e*r,X=h*i+e*o,mt=h*a+e*c,bt=h*l+e*u,yt=90-Math.atan2(I-C,M-j)*180/Math.PI;return{x:v,y:k,m:{x:I,y:M},n:{x:C,y:j},start:{x:L,y:X},end:{x:mt,y:bt},alpha:yt}}}const rn=Ra;class Sn extends Me{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!0}static fromSVGPathData(t,e){if(t.length<5)throw new Error("QuadraticBezier 参数个数错误");if(t[0].toUpperCase()!=="Q")throw new Error("QuadraticBezier command 错误");return new Sn({cx:t[1],cy:t[2],x:t[3],y:t[4],fromX:e?.x,fromY:e?.y})}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.fromX+this.x)/2,e=this.cy*2-(this.fromY+this.y)/2;return["Q",t,e,this.x,this.y]}else return["Q",this.cx,this.cy,this.x,this.y]}toCanvasContext(t){if(t.beginPath(),t.moveTo(this.fromX,this.fromY),this.isLineThrough){const e=this.cx*2-(this.fromX+this.x)/2,n=this.cy*2-(this.fromY+this.y)/2;t.quadraticCurveTo(e,n,this.x,this.y)}else t.quadraticCurveTo(this.cx,this.cy,this.x,this.y)}interpolate(t){return{x:(1-t)*(1-t)*this.fromX+2*(1-t)*t*this.cx+t*t*this.x,y:(1-t)*(1-t)*this.fromY+2*(1-t)*t*this.cy+t*t*this.y}}}const gg=Sn;class Aa extends Me{rx;ry;xAxisRotate;largeArcFlag;sweepFlag;constructor(t){super(t),this.rx=t.rx,this.ry=t.ry,this.xAxisRotate=t?.xAxisRotate??0,this.largeArcFlag=t?.largeArcFlag??1,this.sweepFlag=t?.sweepFlag??1}static fromSVGPathData(t,e){if(t.length<8)throw new Error("Arc 参数个数错误");if(t[0].toUpperCase()!=="A")throw new Error("Arc command 错误");return new Aa({rx:t[1],ry:t[2],xAxisRotate:t[3],largeArcFlag:t[4],sweepFlag:t[5],x:t[6],y:t[7],fromX:e?.x,fromY:e?.y})}toSVGPathData(){return["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.x,this.y]}toCanvasContext(t){t.beginPath();const[e,n,i,r,o,a,l]=this.convertSVGToCanvas(this.fromX,this.fromY,this.x,this.y,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e-this.x,n-this.y,i,r,o,a,l,!this.sweepFlag)}convertSVGToCanvas(t,e,n,i,r,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,f=(e-i)/2,d=Math.cos(u)*h+Math.sin(u)*f,m=-Math.sin(u)*h+Math.cos(u)*f,g=d*d/(r*r)+m*m/(o*o);if(g>1){const At=Math.sqrt(g);throw r=At*r,o=At*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const v=Math.sqrt((r*r*o*o-r*r*m*m-o*o*d*d)/(r*r*m*m+o*o*d*d)),k=l!=c?1:-1,I=k*v*r*m/o,M=k*v*-o*d/r,C=(t+n)/2,j=(e+i)/2,L=Math.cos(u)*I-Math.sin(u)*M+C,X=Math.sin(u)*I+Math.cos(u)*M+j,mt=(At,zt,Kt,Qt)=>(At*Qt>=zt*Kt?1:-1)*Math.acos((At*Kt+zt*Qt)/(Math.sqrt(At*At+zt*zt)*Math.sqrt(Kt*Kt+Qt*Qt))),bt=mt(1,0,t-L,e-X)-u,yt=mt(t-L,e-X,n-L,i-X);return[L,X,r,o,u,bt,bt+yt]}}const za=Aa;class Ct extends ge{startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){super(t),this.prevPathX=this.startPathX=this.x,this.prevPathY=this.startPathY=this.y}appendLine(t){if(t instanceof za){Hu(this.prevPathX,this.prevPathY,t.x,t.y,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,f,d,m,g,v,k]=c;this.normalizedLines.push(new rn({c1x:f,c1y:d,c2x:m,c2y:g,x:v,y:k,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=v,this.prevPathY=k});return}let e,n,i,r,o,a;t instanceof rn?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.x,a=t.y):t instanceof gg?[e,n,i,r,o,a]=Ca(this.prevPathX,this.prevPathY,t.cx,t.cy,t.x,t.y):[e,n,i,r,o,a]=wi(this.prevPathX,this.prevPathY,t.x,t.y),this.normalizedLines.push(new rn({c1x:e,c1y:n,c2x:i,c2y:r,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromSVGPathD(t="M0,0",e){const n=new Ct(e);return n.updateFromSVGPathD(t),n}static fromSVGPathData(t,e){const n=new Ct(e);return n.updateFromSVGPathData(t),n}static fromShape(t,e){const n=new Ct(Object.assign({attrs:{...t.attrs}},e));return n.updateFromShape(t),n}updateFromShape(t){this.degree=t.degree,this.scalexOnOrigin=t.scalexOnOrigin,this.scaleyOnOrigin=t.scaleyOnOrigin,this.skewxDegreeOnOrigin=t.skewxDegreeOnOrigin,this.skewyDegreeOnOrigin=t.skewyDegreeOnOrigin,this.updateFromSVGPathD(t.toSVGPathD())}updateFromSVGPathD(t){me.isSVGPath(t)&&this.updateFromSVGPathData(me.parseSVGPath(t))}updateFromSVGPathData(t){this.normalizedLines=[];const e=me.normalizeSVGPath(me.absolutizeSVGPath(t));for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r[0]=="M"){this.prevPathX=this.startPathX=r[1],this.prevPathY=this.startPathY=r[2];continue}this.appendLine(new rn({c1x:r[1],c1y:r[2],c2x:r[3],c2y:r[4],x:r[5],y:r[6]}))}this.prevDegree=0,this.prevScalexOnOrigin=1,this.prevScaleyOnOrigin=1,this.prevSkewxDegreeOnOrigin=0,this.prevSkewyDegreeOnOrigin=0,this.updateTransform()}toSVGPathData(t=!1){let e=[];e.push(["M",this.startPathX,this.startPathY]);for(let n=0,i=this.normalizedLines.length;n<i;n++)e.push(this.normalizedLines[n].toSVGPathData());return t&&(e=me.relativeSVGPath(e)),e}toCanvasContext(t){t.beginPath(),t.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(e=>{const[n,...i]=e.toSVGPathData();t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])})}static toCanvasContextUsePath2D(t,e,n,i){t.beginPath();const r=new Path2D(e),o=new Path2D;o.addPath(r,new DOMMatrix(n));const a=new Path2D;return a.addPath(o,B0(i)),t.fill(a),a}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.scalexOnOrigin!=this.prevScalexOnOrigin||this.scaleyOnOrigin!=this.prevScaleyOnOrigin){const t=this.getBoundingClientRect();this.scale(this.scalexOnOrigin/this.prevScalexOnOrigin,this.scaleyOnOrigin/this.prevScaleyOnOrigin,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}if(this.degree!=this.prevDegree){const t=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.x:t.x+t.width/2,this.renderGroup&&!this.transformBaseOnSelfInRenderGroup?this.renderGroup.y:t.y+t.height/2)}this.skewxDegreeOnOrigin!=this.prevSkewxDegreeOnOrigin&&this.skewx(this.skewxDegreeOnOrigin-this.prevSkewxDegreeOnOrigin),this.skewyDegreeOnOrigin!=this.prevSkewyDegreeOnOrigin&&this.skewy(this.skewyDegreeOnOrigin-this.prevSkewyDegreeOnOrigin)}transform(t){return{x:this.startPathX,y:this.startPathY}=t.applyToPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=t.applyToPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(e=>{({x:e.fromX,y:e.fromY}=t.applyToPoint(e.fromX,e.fromY)),{x:e.c1x,y:e.c1y}=t.applyToPoint(e.c1x,e.c1y),{x:e.c2x,y:e.c2y}=t.applyToPoint(e.c2x,e.c2y),{x:e.x,y:e.y}=t.applyToPoint(e.x,e.y)}),this}translate(t,e){const n=new Ue().translate(t,e);return this.transform(n),this.prevX=this.x,this.prevY=this.y,this}rotate(t,e=0,n=0){const i=new Ue().rotate(t,e,n);return this.transform(i),this.prevDegree=this.degree,this}scale(t,e=t,n=0,i=0){const r=new Ue().scale(t,e,n,i);return this.transform(r),this.prevScalexOnOrigin=this.scalexOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin,this}skewx(t){const e=new Ue().skew(t,0);return this.transform(e),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin,this}skewy(t){const e=new Ue().skew(0,t);return this.transform(e),this.prevSkewyDegreeOnOrigin=this.skewyDegreeOnOrigin,this}trim(){const t=this.getBoundingClientRect();return this.translate(-t.x,-t.y),this}getBoundingClientRect(){let t=0,e=0,n=[],i=[];t=this.startPathX,e=this.startPathY,n.push(t),i.push(e),this.normalizedLines.forEach(c=>{const u=me.curveDim(t,e,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);n=n.concat(u.min.x,u.max.x),i=i.concat(u.min.y,u.max.y),t=c.x,e=c.y});const r=Math.min.apply(0,n),o=Math.min.apply(0,i),a=Math.max.apply(0,n),l=Math.max.apply(0,i);return new ki({x:r,y:o,width:a-r,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((t,e)=>t+=e.length(),0)}getPointAtLength(t){let e=0;const n=this.normalizedLines.length;for(let i=0;i<n;i++){const r=this.normalizedLines[i],o=r.length();if(e+o>=t)return r.getPointAtSegmentLength(t-e);e+=o}return this.normalizedLines[n-1].getPointAtSegmentLength(1)}interpolate(t){if(this.normalizedLines.length===0)return{x:this.startPathX,y:this.startPathX};if(this.normalizedLines.length===1)return this.normalizedLines[0].interpolate(t);{let e=t*this.normalizedLines.length,n=this.normalizedLines[0];if(e--,e>1)for(let i=1,r=this.normalizedLines.length;i<r&&(n=this.normalizedLines[i],e>1);i++)e-=1;return n.interpolate(e)}}getSubpathsAtLength(t,e,n){let i=null,r=0;const o=new Ct;o.prevPathX=o.startPathX=t.x,o.prevPathY=o.startPathY=t.y;for(let a=0,l=t.normalizedLines.length;a<l;a++){const c=t.normalizedLines[a],u=c.length();if(r+u>e&&!i){const h=c.getPointAtSegmentLength(e-r);if(o.appendLine(new rn({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,x:h.x,y:h.y})),n)return o;i=o,o.prevPathX=h.x,o.prevPathY=h.y,o.appendLine(new rn({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),r+=u;continue}r+=u,o.appendLine(c)}return o}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const n=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(n,t):n}}trailPath(t,e=0){const n=this.getTotalLength();return t.updateFromSVGPathD(this.getSubpath(0,e*n).toSVGPathD()),this.getPointAtLength(e*n)}closestPoint(t,e){const n=this.getTotalLength();let i={x:t,y:e},r=0,o=1/0,a=8;for(let c=0;c<=n;c+=a){let u=this.getPointAtLength(c),h=ka(u.x,u.y,t,e);h<o&&(i=u,r=c,o=h)}for(a/=2;a>.5;){let c=r-a,u=this.getPointAtLength(c),h=ka(u.x,u.y,t,e),f=r+a,d=this.getPointAtLength(f),m=ka(d.x,d.y,t,e);c>=0&&h<o?(i=u,r=c,o=h):f<=n&&m<o?(i=d,r=f,o=m):a/=2}const l=this.getPointAtLength(r+(r===n?-.1:.1));return{point:i,rotation:r>=n?Vn(l.x,l.y,i.x,i.y):Vn(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}isPointInPath(t,e,n){if(n instanceof Ma)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(i):!1}isPointInStroke(t,e,n){if(n instanceof Ma)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let i;try{i=new SVGPoint(t,e)}catch{i=n.createSVGPoint(),i.x=t,i.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(i):!1}strokeDashToTween(t){const e=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${e} ${e}`,strokeDashoffset:`${e}`});const n=t?.onUpdate;return se.toTween({offset:e},{offset:0},Object.assign(t||{},{onUpdate:(i,r)=>{this.setAttr("strokeDashoffset",""+Ve(i.offset,2)),n?.(i,r)}}))}get polymorphPoints(){return[this.startPathX,this.startPathY].concat(this.normalizedLines.reduce((t,e)=>t.concat([e.c1x,e.c1y,e.c2x,e.c2y,e.x,e.y]),[]))}static fromPolymorphPoints(t){const e=new Ct({x:t[0],y:t[1]});for(let n=2;n+5<t.length;n+=6)e.appendLine(new rn({c1x:t[n],c1y:t[n+1],c2x:t[n+2],c2y:t[n+3],x:t[n+4],y:t[n+5]}));return e}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let n=t[e-2],i=t[e-1],r=0;for(let o=0;o<e;o+=6)r+=wa(t[o],t[o+1],n,i),n=t[o],i=t[o+1];return Math.floor(r)}fillPathD(t){const e=this.polymorphPoints,n=e.length;let i=t-n;const r=Math.ceil(t/n),o=[];o.push(["M",e[0],e[1]]);let a=2;for(;a+5<=n-1;){const l=e[a++],c=e[a++],u=e[a++],h=e[a++],f=e[a++],d=e[a++];o.push(["C",l,c,u,h,f,d]);let m=0;for(;m<r&&i>0;)o.push(["C",f,d,f,d,f,d]),i-=6,m++}return Ct.fromSVGPathData(o)}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=Ve(t[o]+(e[o]-t[o])*n,6);return r}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t.toSVGPathD():Math.abs(n-1)<Number.EPSILON?e.toSVGPathD():Ct.fromPolymorphPoints(this.mixPoints(t.polymorphPoints,e.polymorphPoints,n)).toSVGPathD()}static polymorph(t){if(!t.length)throw new Error("paths 为空!");const e=t.length-1,n=new Array(e);for(let r=0;r<e;r++){const o=Math.max(t[r].polymorphPoints.length,t[r+1].polymorphPoints.length);n[r]=this.getPathInterpolator(t[r].fillPathD(o),t[r+1].fillPathD(o))}const i=Ct.fromSVGPathD(n[0](0));return r=>{const o=Ve(e*r,6),a=Math.min(Math.floor(o),e-1),l=Ve(o-a,6);i.updateFromSVGPathD(n[a](l));const c=t[a].getAttr("fill","none"),u=t[a+1].getAttr("fill","none");typeof c=="string"&&typeof u=="string"&&i.setAttr("fill",th(c,u,l));const h=t[a].getAttr("stroke","none"),f=t[a+1].getAttr("stroke","none");return typeof h=="string"&&typeof f=="string"&&i.setAttr("stroke",th(h,f,l)),i}}static generateRosetta(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=new Ct({x:t,y:e}),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.appendLine(new za({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new za({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class bs extends sg{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(t){if(super(t),!t?.svg)return;const e=new dg(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"||!Cn.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=Cn.absolutizeSVGPath(Cn.parseSVGPath(r.path));let l=[],c=[];for(let u=0,h=a.length;u<h;u++){const f=a[u];c.push(f),f[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=Ct.fromSVGPathData(u,t),f=Ku(r.transform??"");h.transform(f),h.attrs={...h.attrs,...o,...t.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.addShape(h)})}}addShape(t,e){(Array.isArray(t)?t:[t]).forEach(n=>{if(n instanceof Ct)super.addShape(n);else{const i=Ct.fromShape(n,{...e});i&&super.addShape(i)}})}static fromShape(t,e){const n=new bs;return n.addShape(t,e),n}strokeDashToTween(t){const e=t?.type||"parallel",n=this.shapes.map(i=>i.strokeDashToTween({...t}).tween);switch(e){case"sequence":return n.forEach((i,r)=>{r>0&&n[r-1].chain(i)}),{startAuto:se.toTweenGroup(n[0],t)};case"parallel":default:return{startAuto:se.toTweenGroup(n,t)}}}sortPathD(){this.shapes=this.shapes.map(t=>({path:t,perimeter:t.perimeterPoints()})).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.path)}fillPathDGroup(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.fillPathDGroup(this);for(let i=n;i<e;i++){const r=t.shapes[i].polymorphPoints,o=r[0],a=r[1],l=new Ct({x:o,y:a,attrs:{...t.shapes[i].attrs}});for(let c=2;c+5<r.length;c+=6)l.appendLine(new rn({c1x:o,c1y:a,c2x:o,c2y:a,x:o,y:a}));this.addShape(l)}}static polymorph(t){if(!t.length)throw new Error("groups 为空!");let e=-1,n=0;t.forEach((a,l)=>{a.sortPathD(),n<a.shapes.length&&(n=a.shapes.length,e=l)}),t.forEach(a=>a.fillPathDGroup(t[e]));const i=[];t.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>r.push(Ct.polymorph(a)));const o=new bs;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}}class yg extends ge{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return new Ee({x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2})}toSVGPathData(){return[["M",this.x,this.y],["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 Yn extends ge{points;constructor(t=[]){if(!t.length)throw new Error("points can't be null");super(t[0]),this.points=t}toSVGPathData(){const t=this.points.length;if(t<3)throw new Error("points length must >= 3");const e=[];e.push(["M",this.points[0].x,this.points[0].y]);for(let n=0;n<=t-1;n++)e.push(["L",this.points[n].x,this.points[n].y]);return e.push(["L",this.points[0].x,this.points[0].y]),e}toCanvasContext(t){const e=this.points.length;if(e<3)throw new Error("points length must >= 3");t.beginPath(),t.moveTo(0,0);for(let n=0;n<=e-1;n++)t.lineTo(this.points[n].x-this.points[0].x,this.points[n].y-this.points[0].y);t.lineTo(0,0)}get length(){return this.points.length}addPoint(t){this.points.push(t)}getPoint(t){return this.points[t]}isContainPoint(t,e){const n=this.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 f=(u-l)/(h-c),d=l+f*(e-c);if(d===t||Math.abs(d-t)<r)return!0;d>t&&(i=!i)}}return i}[Symbol.iterator](){let t=0;return{next:()=>({value:t>=this.length-1?this.points[++t]:void 0,done:t>=this.length})}}static generatePoints(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=Vs(a,n);r.push(new Ne({x:t+l,y:e+c}))}return new Yn(r)}}class Lr extends ge{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.attrs});const e=en(this.getAttr("fontSize"),10).number,n=en(this.getAttr("fontWeight"),400).number,i=H.measureText(this.text,e,n);this.width=i.width,this.height=i.height,this.frameUpdate()}frameUpdate(){super.frameUpdate()}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Vr extends ge{constructor(t){super(t)}toSVGPathData(){return[["M",this.x,this.y],["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 La extends ge{constructor(t){super(t)}toSVGPathData(){return[["M",this.x,this.y],["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 vg extends Ct{constructor(t){super(t),this.rx=t?.rx??10,this.ry=t?.ry??10,this.updateFromSVGPathData([["M",this.x,this.y],["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 bg extends Ct{constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50,this.updateFromSVGPathData([["M",this.x,this.y+this.ry*.3],["C",this.x,this.y,this.x-this.rx/2,this.y,this.x-this.rx/2,this.y+this.ry*.3],["C",this.x-this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x,this.y+(this.ry+this.ry*.3)/1.4,this.x,this.y+this.ry],["C",this.x,this.y+(this.ry+this.ry*.3)/1.8,this.x+this.rx/2,this.y+(this.ry+this.ry*.3)/2,this.x+this.rx/2,this.y+this.ry*.3],["C",this.x+this.rx/2,this.y,this.x,this.y,this.x,this.y+this.ry*.3],["z"]])}}class ah extends Ct{constructor(t){super(t),this.r=t?.r??20;let e="M"+this.x+","+(this.y-this.r);for(let n=0;n<6;n+=1){const i=270+n*144,r=this.x+this.r*Math.cos(Rt(i)),o=this.y+this.r*Math.sin(Rt(i));e+="L"+r+","+o}this.updateFromSVGPathD(e)}}class _g extends Ct{constructor(t){super(t),this.updateFromSVGPathData([["M",this.x,this.y],["C",this.x+15,this.y,this.x+15,this.y-40,this.x+5,this.y+-30],["L",this.x,this.y],["C",this.x-15,this.y,this.x-15,this.y-40,this.x-5,this.y-30],["L",this.x,this.y],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]])}}class xg extends Ct{constructor(t){super(t),this.updateFromSVGPathD(`M${this.x} ${this.y}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 wg extends bs{constructor(t){super(t),this.addShape(Ct.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],{renderGroup:this.renderGroup,...t})),this.addShape(Ct.fromSVGPathData([["M",this.x,this.y-30-Math.random()*30],["L",this.x+Math.random()*80-40,this.y-100-Math.random()*40]],{renderGroup:this.renderGroup,...t})),this.addShape(Ct.fromSVGPathData([["M",this.x,this.y-60-Math.random()*40],["L",this.x+Math.random()*60-30,this.y-110-Math.random()*20]],{renderGroup:this.renderGroup,...t}))}}class kg extends us{width=0;height=0;bg;padding;offset;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.textShape=new Lr({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.attrs,fill:K0(this.bg,!0),textAnchor:"start"}}),this.bgShape=new Ee({...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.attrs,fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}frameUpdate(){super.frameUpdate(),this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,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.isShow=this.isShow}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){}}class Cg extends us{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Ne;p1Offset=10;p2=new Ne;p2Offset=40;p3=new Ne;p3Offset=10;p4=new Ne;p4Offset=10;direction=1;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||"";const e=Object.assign({...this.attrs},{fill:"none"});this.line12=new Me({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new Me({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Lr({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.tipShape=new kg({x:0,y:0,text:this.tip,isShow:!1}),this.sector=new Sg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.attrs},{strokeWidth:"0"})}),this.addShape(this.sector),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tip&&this.addShape(this.tipShape),this.frameUpdate()}frameUpdate(){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sector.isMouseIn,this.line23.isShow=this.sector.isMouseIn,this.textShape.isShow=this.sector.isMouseIn);const t=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:e,dy:n}=Vs(Rt(t),this.sector.radius+this.p1Offset);this.p1.x=this.x+e,this.p1.y=this.y+n;const{dx:i,dy:r}=Vs(Rt(t),this.sector.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+i,this.p2.y=this.y+r,this.line12.fromX=this.p1.x,this.line12.fromY=this.p1.y,this.line12.x=this.p2.x,this.line12.y=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.fromX=this.p2.x,this.line23.fromY=this.p2.y,this.line23.x=this.p3.x,this.line23.y=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.sector.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY):(this.tipShape.isShow=!1,this.tipShape.x=this.sector.mouseX,this.tipShape.y=this.sector.mouseY)}}class Sg extends ge{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;dur;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.dur=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.dur,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.dur,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=Vs(Rt(this.startDegree),this.radius),{dx:n,dy:i}=Vs(Rt(this.endDegree),this.radius);return[["M",this.x,this.y],["l",t,e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Rt(this.startDegree),Rt(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=wa(this.x,this.y,t,e),i=Xe(Vn(this.x,this.y,t,e));return n<this.radius&&i>this.startDegree&&i<this.endDegree}}class Eg extends us{showFlame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=Ct.fromSVGPathData([["M",this.x+10,this.y],["L",this.x-10,this.y+10],["L",this.x-5,this.y],["L",this.x-10,this.y-10],["L",this.x+10,this.y],["Z"]],{renderGroup:this.renderGroup,...t}),this.flame=Ct.fromSVGPathData([["M",this.x-7.5,this.y-5],["L",this.x-15,this.y],["L",this.x-7.5,this.y+5],["Z"]],{renderGroup:this.renderGroup,...t,isShow:this.showFlame}),this.addShape(this.ship),this.addShape(this.flame),this.frameUpdate()}frameUpdate(){this.flame.isShow=this.showFlame}}class lh extends us{min;max;step;value;percent;barWidth;barHeight;barColor;handleSize;handleColor;realBarWidth;constructor(t){super(t),this.min=t?.min||0,this.max=t?.max||100,this.step=t?.step||1,this.stepNumber=bm(this.min,this.max,this.step),this.value=this.stepNumber(t?.defaultValue||this.min),this.percent=this.value/(this.max-this.min),this.barColor=t?.barColor||Y.colorGrayF5,this.handleColor=t?.handleColor||Y.colorPrimary,this.barWidth=t?.barWidth||100,this.barHeight=t?.barHeight||4,this.handleSize=t?.handleSize||20,this.realBarWidth=this.barWidth-this.handleSize,this.fullRect=new Ee({x:this.x,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*this.percent,height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.handleColor}}),this.addShape(this.fullRect),this.emptyRect=new Ee({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y-this.barHeight*.5,width:this.handleSize*.5+this.realBarWidth*(1-this.percent),height:this.barHeight,borderRadius:this.barHeight*.5,attrs:{fill:this.barColor}}),this.addShape(this.emptyRect),this.alongPath=Ct.fromSVGPathData([["M",this.x+this.handleSize*.5,this.y],["l",this.realBarWidth,0]]),this.handle=new Ne({x:this.x+this.handleSize*.5+this.realBarWidth*this.percent,y:this.y,radius:this.handleSize*.5,enableDrag:!0,autoRender:t?.autoRender,alongPath:this.alongPath,attrs:{fill:this.handleColor}}),this.addShape(this.handle),this.frameUpdate()}frameUpdate(){const t=this.handle.x-this.x-this.handleSize*.5;this.realBarWidth=this.barWidth-this.handleSize,this.percent=t/this.realBarWidth,this.fullRect.width=t+this.handleSize*.5,this.emptyRect.x=this.handle.x,this.emptyRect.width=this.barWidth-this.fullRect.width;const e=this.stepNumber(this.percent*(this.max-this.min)+this.min);e!=this.value&&(this.value=e,this.emit("change",this.value))}}class Pi extends bs{constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.addShape([Ct.fromShape(new Ee({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),{renderGroup:this.renderGroup,...t}),Ct.fromShape(new Ne({...t,x:this.x,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t}),Ct.fromShape(new Ne({...t,x:this.x+this.width,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t})])}frameUpdate(){super.frameUpdate()}getPin(){return{x:this.x+Math.cos(Rt(this.degree))*this.width,y:this.y+Math.sin(Rt(this.degree))*this.width}}}class Va extends ge{constructor(t){super(t),this.update(t)}update(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*1.5;this.radius=e-e*Math.abs(Math.sin(Rt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Rt(this.extendDegree))),this.startDegree=180+t.startDegree,this.endDegree=180+t.endDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.colorGradient||t.color||"none"})}frameUpdate(){}toSVGPathData(){const{dx:t,dy:e}=Vs(Rt(this.startDegree),this.radius),{dx:n,dy:i}=Vs(Rt(this.endDegree),this.radius);return[["M",this.x+t,this.y+e],["A",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,this.x+n,this.y+i]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Rt(this.startDegree),Rt(this.endDegree),!1)}}class Tg extends us{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:f,drift:d,ticks:m,colors:g,scalar:v,flat:k}=ta(n||{},{shape:ah,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Z0,scalar:1,flat:!1}),I=t*r,M=e*o,C=Rt(l),j=Rt(c);let L=a;for(;L--;){const X=new i({x:I,y:M,transformBaseOnSelfInRenderGroup:!0,scaleOnOrigin:v,attrs:{fill:g[L%g.length]}});this.addShape(X),this.fettis.push({shape:X,x:I,y:M,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-C+(.5*j-Math.random()*j),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:m,decay:h,drift:d,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:f*3,scalar:v,flat:k})}}frameUpdate(){super.frameUpdate(),this.fettis.length&&(this.fettis=this.fettis.filter(t=>this.updateFetti(t)))}updateFetti(t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.shape.x=t.x,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.shape.y=t.y,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);const e=t.tick++/t.totalTicks,n=t.x+t.random*t.tiltCos,i=t.y+t.random*t.tiltSin,r=t.wobbleX+t.random*t.tiltCos,o=t.wobbleY+t.random*t.tiltSin;return t.shape.setAttr("fill",Ci(t.shape.getAttr("fill"),1-e)),t.shape.scalexOnOrigin=Math.abs(r-n)*.1*t.shape.prevScalexOnOrigin,t.shape.scaleyOnOrigin=Math.abs(o-i)*.1*t.shape.prevScalexOnOrigin,t.shape.degree=Xe(Math.PI/10*t.wobble),t.shape.x=t.x,t.shape.y=t.y,t.tick<t.totalTicks}}class Fa{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Ma(this.app.container,this.app.width,this.app.height,e),this.app.captureMove({start:()=>{this.isMouseDown=!0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.setCursor()},move:()=>{if(this.isMouseDown&&this.currentEnableDragMouseInShapeID){this.setCursor();return}this.currentMouseInShapeID="";const n=this.shapes.length;let i=0;for(;i<n;i++){const r=this.shapes[i];this.ctx.save(),this.transformCtxBaseOnShape(r);const o=this.ctx.isPointInPath(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),r.isMouseIn=o,r.mouseX=this.app.mousePoint.x,r.mouseY=this.app.mousePoint.y,o&&(this.currentMouseInShapeID=r.id,r.enableDrag)){this.currentEnableDragMouseInShapeID=r.id,this.shapes.filter(a=>a.id!==r.id).forEach(a=>{a instanceof ge&&(a.isMouseIn=!1,a.mouseX=this.app.mousePoint.x,a.mouseY=this.app.mousePoint.y)});break}}i>=n&&(this.currentEnableDragMouseInShapeID=""),this.setCursor()}})}setCursor(){this.currentEnableDragMouseInShapeID?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShapeID?this.app.container.style.cursor="default":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t instanceof Ct||(t instanceof Me||this.ctx.translate(t.x,t.y),this.ctx.rotate(Rt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalexOnOrigin,t.scaleyOnOrigin,t.cX,t.cY))}_addShape(t){t instanceof us?(t.frameUpdate(),t.shapes.forEach(e=>{e instanceof us?this._addShape(e):this.shapes.push(e)})):this.shapes.push(t)}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addShape(e)});for(let e of this.shapes)if(e.isShow){if(this.ctx.save(),H.attrsToCanvas(this.ctx,e.attrs),e.followMouse&&(!gi(e.x,this.app.mousePoint.x,5)||!gi(e.y,this.app.mousePoint.y,5))&&(e.rotateTo(this.app.mousePoint),e.followTo(this.app.mousePoint)),e.targetToAfterDragFree&&(this.isMouseDown||e.nextFrameEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==e.id){const{dx:n,dy:i}=e.centerDiff,r=e.x,o=e.y;if(e.x=this.app.mousePoint.x-n,e.y=this.app.mousePoint.y-i,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x,e.y=a.point.y}e.isDragging=!0,e.emit("moving",e.x-r,e.y-o)}else e.isDragging=!1;e.frameUpdate(),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),e.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof Ct&&(n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx)||n.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.ctx))||this.currentMouseInShapeID==n.id)&&t(n)})};return this.app.on("tap",e),()=>{this.app.off("tap",e)}}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=nn(r);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,f=this.app.mousePoint.x+Math.cos(u)*h|0,d=this.app.mousePoint.y+Math.sin(u)*h|0,m=(f+d*o.width)*4;a[m]=l.r,a[m+1]=l.g,a[m+2]=l.b,a[m+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureMove({start:c=>{this.ctx.beginPath(),this.app.setMousePoint(c),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 Og{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 Ig=st({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("span",{class:"icon",style:$(["color: "+e.color])},[ut(wt(Bu),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),Pg=`.icon[data-v-b2d9b612]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
56
+ `,rt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},ch=rt(Ig,[["styles",[Pg]],["__scopeId","data-v-b2d9b612"]]),Dg=st({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("span",{class:"icon",style:$(["color: "+e.color])},[ut(wt(Bu),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),C_="",_s=rt(Dg,[["__scopeId","data-v-8789b4ce"]]),$g={class:"loading-11",ref:"loading11"},Ng={class:"container container-1"},Mg={class:"container container-2"},Rg={class:"container container-3"},Ag=st({__name:"Loading11",props:{color:{default:Y.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(O(),R("div",$g,[_("div",{class:"loading-11-inner",style:$({width:t.width,height:t.width})},[_("div",Ng,[_("div",{class:"dot dot-1",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-2",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-3",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-4",style:$({backgroundColor:t.color})},null,4)]),_("div",Mg,[_("div",{class:"dot dot-1",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-2",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-3",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-4",style:$({backgroundColor:t.color})},null,4)]),_("div",Rg,[_("div",{class:"dot dot-1",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-2",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-3",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-4",style:$({backgroundColor:t.color})},null,4)])],4)],512))}}),S_="",Fr=rt(Ag,[["__scopeId","data-v-f95fac77"]]),zg={key:0,class:"loading"},En=rt(st({customOptions:{Loading11:Fr},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(n.borderColor),a=P(n.bgColor),l=P(n.fontColor),c=P(n.borderColor),u=P(n.bgColor);function h(C){switch(C){case"outline":o.value=n.borderColor??Y.colorPrimary,a.value=n.bgColor??Y.colorGrayFF,l.value=n.fontColor??Y.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Y.colorPrimary,a.value=n.bgColor??Y.colorPrimary,l.value=n.fontColor??Y.colorGrayFF,c.value=o.value,u.value=a.value;break}}kt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=P(n.isDisabled?"0.6":"1"),d=P(n.isDisabled?"not-allowed":"pointer");let m=!1;const g=()=>{n.isDisabled||(m=!0,o.value=Fs(c.value,10),a.value=Fs(u.value,10))},v=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},k=P(!1),M=uu(()=>{n.isDisabled||k.value||(o.value=Fs(c.value,-10),a.value=Fs(u.value,-10),setTimeout(()=>{m?g():v()},150),i("ceClick"),i("click"),n.asyncClick&&(k.value=!0,n.asyncClick().then(()=>{k.value=!1}).catch(()=>{k.value=!1})))},500);return t({el:r}),(C,j)=>(O(),R("div",{ref_key:"el",ref:r,class:"button",style:$([`opacity: ${f.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: ${d.value}`,"user-select: none"]),onMouseover:g,onMouseleave:v,onClick:j[0]||(j[0]=(...L)=>wt(M)&&wt(M)(...L))},[_("label",{class:"label truncate",style:$({padding:"0 "+C.padding,cursor:d.value})},[k.value?(O(),R("div",zg,[ut(Fr,{color:l.value},null,8,["color"])])):It("",!0),Pt(C.$slots,"default",{},()=>[C.icon&&C.iconPosition==="left"?(O(),Ht(_s,{key:0,icon:C.icon,color:l.value,style:$({marginRight:wt(Y).gap4,cursor:d.value})},null,8,["icon","color","style"])):It("",!0),_("span",{style:$({cursor:d.value})},pt(C.label),5),C.icon&&C.iconPosition==="right"?(O(),Ht(_s,{key:1,icon:C.icon,color:l.value,style:$({marginLeft:wt(Y).gap4,cursor:d.value})},null,8,["icon","color","style"])):It("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-2205d3fb]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-2205d3fb]{display:inline-flex;justify-content:center;align-items:center}.loading[data-v-2205d3fb]{margin-right:6px}
57
+ `]],["__scopeId","data-v-2205d3fb"]]),Lg={key:0,class:"loading"},Vg=st({customOptions:{Loading11:Fr},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},isDisabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["ceClick","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(n.borderColor),a=P(n.bgColor),l=P(n.fontColor),c=P(n.borderColor),u=P(n.bgColor);function h(C){switch(C){case"outline":o.value=n.borderColor??Y.colorPrimary,a.value=n.bgColor??Y.colorGrayFF,l.value=n.fontColor??Y.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Y.colorPrimary,a.value=n.bgColor??Y.colorPrimary,l.value=n.fontColor??Y.colorGrayFF,c.value=o.value,u.value=a.value;break}}kt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=P(n.isDisabled?"0.6":"1"),d=P(n.isDisabled?"not-allowed":"pointer");let m=!1;const g=()=>{n.isDisabled||(m=!0,o.value=Fs(c.value,10),a.value=Fs(u.value,10))},v=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},k=P(!1),M=uu(()=>{n.isDisabled||k.value||(o.value=Fs(c.value,-10),a.value=Fs(u.value,-10),setTimeout(()=>{m?g():v()},150),i("ceClick"),i("click"),n.asyncClick&&(k.value=!0,n.asyncClick().then(()=>{k.value=!1}).catch(()=>{k.value=!1})))},500);return t({el:r}),(C,j)=>(O(),R("div",{ref_key:"el",ref:r,class:"button",style:$([`opacity: ${f.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: ${d.value}`,"user-select: none"]),onMouseover:g,onMouseleave:v,onClick:j[0]||(j[0]=(...L)=>wt(M)&&wt(M)(...L))},[_("label",{class:"label truncate",style:$({padding:"0 "+C.padding,cursor:d.value})},[k.value?(O(),R("div",Lg,[ut(Fr,{color:l.value},null,8,["color"])])):It("",!0),Pt(C.$slots,"default",{},()=>[C.icon&&C.iconPosition==="left"?(O(),Ht(_s,{key:0,icon:C.icon,color:l.value,style:$({marginRight:wt(Y).gap4,cursor:d.value})},null,8,["icon","color","style"])):It("",!0),_("span",{style:$({cursor:d.value})},pt(C.label),5),C.icon&&C.iconPosition==="right"?(O(),Ht(_s,{key:1,icon:C.icon,color:l.value,style:$({marginLeft:wt(Y).gap4,cursor:d.value})},null,8,["icon","color","style"])):It("",!0)],!0)],4)],36))}}),O_="",de=rt(Vg,[["__scopeId","data-v-ea027c50"]]),Fg=["onClick","value"],Gg={class:"option-inner"},Bg=rt(st({customOptions:{Icon:_s,Button:de},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;qs(()=>{H.setStyleSheet(`
58
58
  :root {
59
- --select-option-bg-color: ${j.colorGrayFF};
60
- --select-option-bg-color-hover: ${j.colorGrayF5};
59
+ --select-option-bg-color: ${Y.colorGrayFF};
60
+ --select-option-bg-color-hover: ${Y.colorGrayF5};
61
61
  }
62
- `)});const i=P(!1),r=P(t.initIndex);Ee(r,function(){n("change",r.value,t.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(I(),V("div",{class:"select",style:M(["font-size:"+l.fontSize])},[_("div",{onClick:o},[ze(l.$slots,"button",{selectedIndex:r.value},()=>[ue(it,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Ps(_("div",{class:"options",style:M({border:"1px solid "+ke(j).colorGrayCC})},[(I(!0),V(je,null,St(l.options,(u,h)=>(I(),V("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:M({borderTop:(h==0?"0":"1px")+" solid "+ke(j).colorGrayCC})},[_("div",w0,[ze(l.$slots,"default",{item:u,index:h},()=>[_("span",null,me(u),1),h==r.value?(I(),wt(bs,{key:0,icon:"mingcute:check-fill",class:"icon"})):Pe("",!0)],!0)])],12,x0))),128))],4),[[gs,i.value]])],4))}}),[["styles",[`.select[data-v-2b1ef62b]{display:inline-block;position:relative}.options[data-v-2b1ef62b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-2b1ef62b]{cursor:pointer}.option-inner[data-v-2b1ef62b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-2b1ef62b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-2b1ef62b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
63
- `]],["__scopeId","data-v-2b1ef62b"]]),S0=["width","height"],k0=["fill"],E0=oe({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:j.colorGrayCC}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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:e.color},null,8,k0)],8,S0))}}),r_="",Rr=ae(E0,[["__scopeId","data-v-b1f2ae20"]]),T0={class:"button-default"},O0={class:"truncate"},P0=["onClick","value"],I0=oe({customOptions:{SVGDown:Rr},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:j.colorGrayFF},hoverColor:{default:j.colorGrayF5},selectedColor:{default:j.colorPrimary},fontColor:{default:j.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:e}){const t=s,n=e;Us(()=>{K.setStyleSheet(`
62
+ `)});const i=P(!1),r=P(e.initIndex);kt(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)=>(O(),R("div",{class:"select",style:$(["font-size:"+l.fontSize])},[_("div",{onClick:o},[Pt(l.$slots,"button",{selectedIndex:r.value},()=>[ut(de,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Ns(_("div",{class:"options",style:$({border:"1px solid "+wt(Y).colorGrayCC})},[(O(!0),R(Bt,null,Se(l.options,(u,h)=>(O(),R("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:$({borderTop:(h==0?"0":"1px")+" solid "+wt(Y).colorGrayCC})},[_("div",Gg,[Pt(l.$slots,"default",{item:u,index:h},()=>[_("span",null,pt(u),1),h==r.value?(O(),Ht(_s,{key:0,icon:"mingcute:check-fill",class:"icon"})):It("",!0)],!0)])],12,Fg))),128))],4),[[ys,i.value]])],4))}}),[["styles",[`.select[data-v-2b1ef62b]{display:inline-block;position:relative}.options[data-v-2b1ef62b]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-2b1ef62b]{cursor:pointer}.option-inner[data-v-2b1ef62b]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-2b1ef62b]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-2b1ef62b]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
63
+ `]],["__scopeId","data-v-2b1ef62b"]]),Yg=["width","height"],jg=["fill"],Xg=st({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Y.colorGrayCC}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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,jg)],8,Yg))}}),D_="",Gr=rt(Xg,[["__scopeId","data-v-b1f2ae20"]]),Ug={class:"button-default"},Hg={class:"truncate"},Wg=["onClick","value"],Zg=st({customOptions:{SVGDown:Gr},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:Y.colorGrayFF},hoverColor:{default:Y.colorGrayF5},selectedColor:{default:Y.colorPrimary},fontColor:{default:Y.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;qs(()=>{H.setStyleSheet(`
64
64
  :root {
65
- --select-option-bg-color: ${t.bgColor};
66
- --select-option-bg-color-hover: ${t.hoverColor};
65
+ --select-option-bg-color: ${e.bgColor};
66
+ --select-option-bg-color-hover: ${e.hoverColor};
67
67
  }
68
- `)});const i=P(!1),r=P(t.initIndex);Ee(r,function(){n("change",r.value,t.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=P("rotate(-180deg)");return Zl(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(I(),V("div",{class:"select-absolute",style:M({fontSize:t.fontSize,backgroundColor:t.bgColor})},[_("div",{class:"select-absolute-button",onClick:o},[ze(c.$slots,"button",{selectedIndex:r.value},()=>[_("div",T0,[_("div",O0,me(c.options[r.value]),1),ue(Rr,{class:"icon-down",width:"20px",style:M({transition:`transform ${t.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),_("div",{class:"options",style:M({maxHeight:i.value?"200px":0,transition:`all ${t.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(I(!0),V(je,null,St(c.options,(h,f)=>(I(),V("div",{onClick:d=>a(f),class:"option",key:f,value:f},[ze(c.$slots,"default",{item:h,index:f},()=>[_("div",{class:"option-default",style:M({color:r.value==f?t.selectedColor:t.fontColor})},me(h),5)],!0)],8,P0))),128))],4)],4))}}),rh=ae(I0,[["styles",[`.select-absolute[data-v-fd6e278c]{display:block;position:relative;width:100%}.select-absolute-button[data-v-fd6e278c]{overflow:hidden}.button-default[data-v-fd6e278c]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-fd6e278c]{flex:0 0 auto}.truncate[data-v-fd6e278c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-fd6e278c]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-fd6e278c]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-fd6e278c]::-webkit-scrollbar:vertical{width:2px}.options[data-v-fd6e278c]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-fd6e278c]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-fd6e278c]{cursor:pointer}.option-default[data-v-fd6e278c]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-fd6e278c]:hover{background-color:var(--select-option-bg-color-hover)}
69
- `]],["__scopeId","data-v-fd6e278c"]]),D0=oe({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:j.colorPrimary},colorBgOn:{default:j.colorGrayEF},colorBgOff:{default:j.colorGrayF5}},emits:["change"],setup(s,{emit:e}){const t=s,n=Js(t.width),i=Js(t.height),r=Js(t.padding),o=i.number-r.number*2+i.suffix,a=t.padding,l=n.number-Js(a).number-Js(o).number+n.suffix,c=e,u=P(t.init);Ee(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(I(),V("div",{class:"switch",onClick:h,style:M(["width: "+t.width,"height: "+t.height,"background-color: "+(u.value?t.colorBgOn:t.colorBgOff)])},[_("span",{class:"round",style:M(["width: "+o,"height: "+o,"background-color: "+(u.value?t.colorPrimary:ke(Rs)(t.colorPrimary,30)),"transform: translate("+(u.value?l:ke(a))+", 0)"])},null,4)],4))}}),N0=ae(D0,[["styles",[`.switch[data-v-2446c0e5]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-2446c0e5]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
70
- `]],["__scopeId","data-v-2446c0e5"]]),$0=["onClick"],M0=["stroke","fill"],A0=["stroke","fill"],R0=["stroke"],V0=oe({customOptions:{},__name:"RadioGroup.ce",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:j.colorGrayFF},colorBgSelected:{default:j.colorPrimary},colorBgDisabled:{default:j.colorGrayCC},colorBorder:{default:j.colorGrayCC},colorBorderSelected:{default:j.colorPrimary},colorBorderDisabled:{default:j.colorGrayCC},colorPath:{default:j.colorGrayFF},colorPathDisabled:{default:j.colorGrayFF},fontSize:{default:j.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:e}){const t=s,n=e;let i=P(t.initIndex??0);Ee(i,function(){n("change",t.options[i.value])});const r=function(o){t.disabledIndexs&&t.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(I(!0),V(je,null,St(o.options,(l,c)=>(I(),V("div",{class:_t(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:M(["margin-left:"+(c>0?t.itemPadding:0)])},[ze(o.$slots,"default",{label:l,index:c},()=>[(I(),V("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:M(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Pe("",!0):(I(),V("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i)==c?o.colorBgSelected:o.colorBg},null,8,M0)),t.isRounded?(I(),V("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i)==c?o.colorBgSelected:o.colorBg},null,8,A0)):Pe("",!0),ke(i)==c?(I(),V("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,R0)):Pe("",!0)],4)),_("span",{style:M(["font-size:"+t.fontSize])},me(l),5)],!0)],14,$0))),128))}}),oh=ae(V0,[["styles",[`.radio[data-v-c165166d]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.radio.disabled[data-v-c165166d]{cursor:not-allowed}.icon[data-v-c165166d]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
71
- `]],["__scopeId","data-v-c165166d"]]),L0=["onClick"],z0=["stroke","fill"],F0=["stroke","fill"],G0=["stroke"],B0=oe({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:j.colorGrayFF},colorBgSelected:{default:j.colorPrimary},colorBgDisabled:{default:j.colorGrayCC},colorBorder:{default:j.colorGrayCC},colorBorderSelected:{default:j.colorPrimary},colorBorderDisabled:{default:j.colorGrayCC},colorPath:{default:j.colorGrayFF},colorPathDisabled:{default:j.colorGrayFF},fontSize:{default:j.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:e}){const t=s,n=e;let i=kt(t.initIndexs??[]);Ee(i,function(){n("change",i.map(o=>t.options[o]))});const r=function(o){if(t.disabledIndexs&&t.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(I(!0),V(je,null,St(o.options,(l,c)=>(I(),V("div",{class:_t(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:M(["margin-left:"+(c>0?t.itemPadding:0)])},[ze(o.$slots,"default",{label:l,index:c},()=>[(I(),V("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:M(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Pe("",!0):(I(),V("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,z0)),t.isRounded?(I(),V("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,F0)):Pe("",!0),ke(i).findIndex(u=>u===c)>=0?(I(),V("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,G0)):Pe("",!0)],4)),_("span",{style:M(["font-size:"+t.fontSize])},me(l),5)],!0)],14,L0))),128))}}),ah=ae(B0,[["styles",[`.checkbox[data-v-1584b0b1]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.checkbox.disabled[data-v-1584b0b1]{cursor:not-allowed}.icon[data-v-1584b0b1]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
72
- `]],["__scopeId","data-v-1584b0b1"]]),j0=["width","height"],Y0=["fill"],H0=["fill"],W0=["fill"],X0=oe({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:j.colorRed}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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:e.color},null,8,Y0),_("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:e.color},null,8,H0),_("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:e.color},null,8,W0)],8,j0))}}),u_="",lh=ae(X0,[["__scopeId","data-v-41294f60"]]),U0={class:"wrap"},q0=["type","required"],Z0={class:"ellipsis"},K0={key:1,style:{}},Q0=oe({customOptions:{SVGPrompt:lh},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:j.colorPrimary},errorColor:{default:j.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=n.placeholder.split(""),o=n.duration/r.length,a=P(!1),l=P(""),c=P("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),d()}function f(m){c.value=m.target.value,d()}function d(){if(c.value&&n.validator){const m=n.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return Qe(()=>{}),e({}),(m,v)=>(I(),V("div",U0,[_("input",{type:n.type,required:n.required,autocomplete:"off",style:M({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value?n.bgColor:"transparent",transition:n.duration+"ms"}),class:_t([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,q0),_("div",{class:"placeholder",style:M({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderJump?"":n.duration+"ms",transform:n.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(I(),V("div",{key:0,style:M({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[ue(lh,{class:"icon"}),_("div",Z0,me(l.value),1)],4)):Pe("",!0),!l.value&&!n.placeholderJump?(I(),V("div",K0,me(n.placeholder),1)):Pe("",!0),!l.value&&n.placeholderJump?(I(!0),V(je,{key:2},St(ke(r),(b,C)=>(I(),V("span",{key:C,style:M({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*C}ms`,transform:a.value||c.value?`translateX(${100*C}%) translateY(-100%)`:`translateX(${100*C}%)`}),class:"single"},me(b),5))),128)):Pe("",!0)],4),_("div",{class:"bg",style:M({transition:n.duration+"ms",backgroundColor:a.value||c.value?"transparent":n.bgColor,height:a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)]))}}),J0=ae(Q0,[["styles",[`.wrap[data-v-133a3bfb]{position:relative;box-sizing:border-box;font-size:1em}.input[data-v-133a3bfb]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.bg[data-v-133a3bfb]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-133a3bfb]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-133a3bfb]{font-size:.75em}.placeholder>div[data-v-133a3bfb]{width:100%;display:flex;justify-content:flex-start;align-items:center}.icon[data-v-133a3bfb]{flex:0 0 auto}.ellipsis[data-v-133a3bfb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.placeholder>span.single[data-v-133a3bfb]{position:absolute;left:0;top:0}
73
- `]],["__scopeId","data-v-133a3bfb"]]),ev=["max","min","step","value","autofocus"],tv={key:0,class:"label"},sv=oe({customOptions:{},inheritAttrs:!0,__name:"InputRange.ce",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:j.colorPrimary},barColor:{default:j.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(n.defaultValue),o=P(Rt((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=Rt(u.target.value,2),o.value=Rt((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
68
+ `)});const i=P(!1),r=P(e.initIndex);kt(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=P("rotate(-180deg)");return sc(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(O(),R("div",{class:"select-absolute",style:$({fontSize:e.fontSize,backgroundColor:e.bgColor})},[_("div",{class:"select-absolute-button",onClick:o},[Pt(c.$slots,"button",{selectedIndex:r.value},()=>[_("div",Ug,[_("div",Hg,pt(c.options[r.value]),1),ut(Gr,{class:"icon-down",width:"20px",style:$({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),_("div",{class:"options",style:$({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(O(!0),R(Bt,null,Se(c.options,(h,f)=>(O(),R("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Pt(c.$slots,"default",{item:h,index:f},()=>[_("div",{class:"option-default",style:$({color:r.value==f?e.selectedColor:e.fontColor})},pt(h),5)],!0)],8,Wg))),128))],4)],4))}}),uh=rt(Zg,[["styles",[`.select-absolute[data-v-fd6e278c]{display:block;position:relative;width:100%}.select-absolute-button[data-v-fd6e278c]{overflow:hidden}.button-default[data-v-fd6e278c]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-fd6e278c]{flex:0 0 auto}.truncate[data-v-fd6e278c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-fd6e278c]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-fd6e278c]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-fd6e278c]::-webkit-scrollbar:vertical{width:2px}.options[data-v-fd6e278c]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-fd6e278c]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-fd6e278c]{cursor:pointer}.option-default[data-v-fd6e278c]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-fd6e278c]:hover{background-color:var(--select-option-bg-color-hover)}
69
+ `]],["__scopeId","data-v-fd6e278c"]]),qg=st({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:Y.colorPrimary},colorBgOn:{default:Y.colorGrayEF},colorBgOff:{default:Y.colorGrayF5}},emits:["change"],setup(s,{emit:t}){const e=s,n=en(e.width),i=en(e.height),r=en(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-en(a).number-en(o).number+n.suffix,c=t,u=P(e.init);kt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(O(),R("div",{class:"switch",onClick:h,style:$(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[_("span",{class:"round",style:$(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:wt(Fs)(e.colorPrimary,30)),"transform: translate("+(u.value?l:wt(a))+", 0)"])},null,4)],4))}}),Kg=rt(qg,[["styles",[`.switch[data-v-2446c0e5]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-2446c0e5]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
70
+ `]],["__scopeId","data-v-2446c0e5"]]),Qg=["onClick"],Jg=["stroke","fill"],ty=["stroke","fill"],ey=["stroke"],sy=st({customOptions:{},__name:"RadioGroup.ce",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:Y.colorGrayFF},colorBgSelected:{default:Y.colorPrimary},colorBgDisabled:{default:Y.colorGrayCC},colorBorder:{default:Y.colorGrayCC},colorBorderSelected:{default:Y.colorPrimary},colorBorderDisabled:{default:Y.colorGrayCC},colorPath:{default:Y.colorGrayFF},colorPathDisabled:{default:Y.colorGrayFF},fontSize:{default:Y.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=P(e.initIndex??0);kt(i,function(){n("change",e.options[i.value])});const r=function(o){e.disabledIndexs&&e.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(O(!0),R(Bt,null,Se(o.options,(l,c)=>(O(),R("div",{class:he(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:$(["margin-left:"+(c>0?e.itemPadding:0)])},[Pt(o.$slots,"default",{label:l,index:c},()=>[(O(),R("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:$(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?It("",!0):(O(),R("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i)==c?o.colorBgSelected:o.colorBg},null,8,Jg)),e.isRounded?(O(),R("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i)==c?o.colorBgSelected:o.colorBg},null,8,ty)):It("",!0),wt(i)==c?(O(),R("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ey)):It("",!0)],4)),_("span",{style:$(["font-size:"+e.fontSize])},pt(l),5)],!0)],14,Qg))),128))}}),hh=rt(sy,[["styles",[`.radio[data-v-c165166d]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.radio.disabled[data-v-c165166d]{cursor:not-allowed}.icon[data-v-c165166d]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
71
+ `]],["__scopeId","data-v-c165166d"]]),ny=["onClick"],iy=["stroke","fill"],ry=["stroke","fill"],oy=["stroke"],ay=st({customOptions:{},__name:"CheckboxGroup.ce",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:Y.colorGrayFF},colorBgSelected:{default:Y.colorPrimary},colorBgDisabled:{default:Y.colorGrayCC},colorBorder:{default:Y.colorGrayCC},colorBorderSelected:{default:Y.colorPrimary},colorBorderDisabled:{default:Y.colorGrayCC},colorPath:{default:Y.colorGrayFF},colorPathDisabled:{default:Y.colorGrayFF},fontSize:{default:Y.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=oe(e.initIndexs??[]);kt(i,function(){n("change",i.map(o=>e.options[o]))});const r=function(o){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(O(!0),R(Bt,null,Se(o.options,(l,c)=>(O(),R("div",{class:he(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:$(["margin-left:"+(c>0?e.itemPadding:0)])},[Pt(o.$slots,"default",{label:l,index:c},()=>[(O(),R("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:$(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?It("",!0):(O(),R("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,iy)),e.isRounded?(O(),R("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,ry)):It("",!0),wt(i).findIndex(u=>u===c)>=0?(O(),R("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,oy)):It("",!0)],4)),_("span",{style:$(["font-size:"+e.fontSize])},pt(l),5)],!0)],14,ny))),128))}}),dh=rt(ay,[["styles",[`.checkbox[data-v-1584b0b1]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.checkbox.disabled[data-v-1584b0b1]{cursor:not-allowed}.icon[data-v-1584b0b1]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
72
+ `]],["__scopeId","data-v-1584b0b1"]]),ly=["width","height"],cy=["fill"],uy=["fill"],hy=["fill"],dy=st({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Y.colorRed}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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,cy),_("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,uy),_("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,hy)],8,ly))}}),A_="",fh=rt(dy,[["__scopeId","data-v-41294f60"]]),fy={class:"wrap"},py=["type","required"],my={class:"ellipsis"},gy={key:1,style:{}},yy=st({customOptions:{SVGPrompt:fh},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:Y.colorPrimary},errorColor:{default:Y.colorRed},bgColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","ceFocus","blur","ceBlur","input","ceInput"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=P(!1),l=P(""),c=P("");function u(){a.value=!0,i("focus"),i("ceFocus")}function h(){a.value=!1,i("blur"),i("ceBlur"),d()}function f(m){c.value=m.target.value,d()}function d(){if(c.value&&n.validator){const m=n.validator(c.value);if(!m.isValidated){l.value=m.msg;return}}l.value="",c.value&&(i("input",c.value),i("ceInput",c.value))}return ee(()=>{}),t({}),(m,g)=>(O(),R("div",fy,[_("input",{type:n.type,required:n.required,autocomplete:"off",style:$({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value?n.bgColor:"transparent",transition:n.duration+"ms"}),class:he([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,py),_("div",{class:"placeholder",style:$({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderJump?"":n.duration+"ms",transform:n.placeholderJump?"":a.value||c.value?"translateY(-100%)":"none"})},[l.value?(O(),R("div",{key:0,style:$({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[ut(fh,{class:"icon"}),_("div",my,pt(l.value),1)],4)):It("",!0),!l.value&&!n.placeholderJump?(O(),R("div",gy,pt(n.placeholder),1)):It("",!0),!l.value&&n.placeholderJump?(O(!0),R(Bt,{key:2},Se(wt(r),(v,k)=>(O(),R("span",{key:k,style:$({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*k}ms`,transform:a.value||c.value?`translateX(${100*k}%) translateY(-100%)`:`translateX(${100*k}%)`}),class:"single"},pt(v),5))),128)):It("",!0)],4),_("div",{class:"bg",style:$({transition:n.duration+"ms",backgroundColor:a.value||c.value?"transparent":n.bgColor,height:a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)]))}}),vy=rt(yy,[["styles",[`.wrap[data-v-133a3bfb]{position:relative;box-sizing:border-box;font-size:1em}.input[data-v-133a3bfb]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.bg[data-v-133a3bfb]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-133a3bfb]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-133a3bfb]{font-size:.75em}.placeholder>div[data-v-133a3bfb]{width:100%;display:flex;justify-content:flex-start;align-items:center}.icon[data-v-133a3bfb]{flex:0 0 auto}.ellipsis[data-v-133a3bfb]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.placeholder>span.single[data-v-133a3bfb]{position:absolute;left:0;top:0}
73
+ `]],["__scopeId","data-v-133a3bfb"]]),by=["max","min","step","value","autofocus"],_y={key:0,class:"label"},xy=st({customOptions:{},inheritAttrs:!0,__name:"InputRange.ce",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:Y.colorPrimary},barColor:{default:Y.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(n.defaultValue),o=P(Ve((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=Ve(u.target.value,2),o.value=Ve((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
74
74
  :root {
75
75
  --input-range-color: ${n.color};
76
76
  --input-range-thumb-size: ${n.handleSize};
@@ -81,31 +81,28 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
81
81
  --input-range-thumb-size: ${n.handleSize};
82
82
  --input-range-track-size: ${n.barHeight};
83
83
  }
84
- `,c=P();return Ee(c,()=>{c.value&&K.setStyleSheet(l,c.value)}),Qe(()=>{}),e({}),(u,h)=>(I(),V("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[_("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:M({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,ev),u.showValue?(I(),V("label",tv,me(r.value)+me(n.unit),1)):Pe("",!0)],512))}}),Ma=ae(sv,[["styles",[`.input-range[data-v-47a3874d]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.label[data-v-47a3874d]{min-width:4em;text-align:right}input[type=range][data-v-47a3874d]{flex:1 1 auto;-webkit-appearance:none;appearance:none;border-radius:9999px;margin:0;padding:0}input[type=range][data-v-47a3874d]:focus{outline:none}input[type=range][data-v-47a3874d]::-webkit-slider-runnable-track{height:var(--input-range-track-size);border-radius:9999px}input[type=range][data-v-47a3874d]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:var(--input-range-thumb-size);width:var(--input-range-thumb-size);margin-top:-8px;background:var(--input-range-color);border-radius:50%;cursor:pointer}
85
- `]],["__scopeId","data-v-47a3874d"]]),nv=oe({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();Ee(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new ft(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new Ju(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return Qe(()=>{o?.destroy()}),e({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(I(),V("div",{ref_key:"svgRef",ref:r,class:"svg",style:M({backgroundColor:n.bgColor})},null,4))}}),f_="",Vr=ae(nv,[["__scopeId","data-v-933ab3a5"]]),iv={class:"input-range-svg"},rv={key:0,class:"label"},ov=oe({customOptions:{SVG:Vr},inheritAttrs:!0,__name:"InputRangeSvg.ce",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:j.colorPrimary},barColor:{default:j.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(n.defaultValue),o=f=>{r.value=f,i("change",f)},a=Js(n.handleSize,20).number;let l;const c=()=>{l=new nh({x:0,y:a*.5,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:u,handleSize:a,autoRender:!0}),l.on("change",o)};let u=0;const h=P();return Ee(h,()=>{h.value&&h.value.getSVG().then(f=>{u=f.app.width,f.clear(),c(),f.path(l),f.app.on("resize",d=>{u=d,f.clear(),c(),f.path(l)})})}),Qe(()=>{}),e({}),(f,d)=>(I(),V("div",iv,[_("div",{class:"input",style:M({height:n.handleSize})},[ue(Vr,{ref_key:"svgRef",ref:h},null,512)],4),f.showValue?(I(),V("div",rv,me(r.value)+me(n.unit),1)):Pe("",!0)]))}}),ch=ae(ov,[["styles",[`.input-range-svg[data-v-c05468f9]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.input[data-v-c05468f9]{flex:1 1 auto;overflow:hidden}.label[data-v-c05468f9]{min-width:4em;text-align:right}
86
- `]],["__scopeId","data-v-c05468f9"]]),av=["width","height"],lv=["fill"],cv=oe({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[_("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,lv)],8,av))}}),m_="",uh=ae(cv,[["__scopeId","data-v-4747d4a7"]]),uv=oe({customOptions:{SVGDelete:uh},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:j.colorGrayFF},deleteColor:{default:j.colorRed},fontColor:{default:j.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(!1),o=()=>{i("delete"),r.value=!1};let a;const l=P();return Ee(l,()=>{l.value&&(a=new ft(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),Qe(()=>{a?.destroy()}),e({}),(c,u)=>(I(),V("div",{class:"parent",ref_key:"item",ref:l,style:M({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[_("div",{class:"content",style:M({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[ze(c.$slots,"default",{},void 0,!0)],4),_("div",{class:"delete",onClick:o,style:M({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[ue(uh,{color:n.fontColor},null,8,["color"])],4)],4))}}),hh=ae(uv,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
87
- `]],["__scopeId","data-v-4ea80232"]]),hv=s=>{const e={};for(const t of s.attributes)e[t.name]=t.value;return e},dv={class:"overlay-content",style:M(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},fv=oe({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:xi(j.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:e,emit:t}){const n=s,i=P();function r(o){n.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return Ee(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),e({}),(o,a)=>n.visible?(I(),V("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:M([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[_("div",dv,[ze(o.$slots,"default",{},void 0,!0)])],4)):Pe("",!0)}}),v_="",rn=ae(fv,[["__scopeId","data-v-fbdcceee"]]),pv=(s=>(Ws("data-v-0dd2379f"),s=s(),Xs(),s))(()=>_("div",null,null,-1)),mv=oe({customOptions:{Overlay:rn},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;const a=kt({}),l=kt({});function c(){switch(xn(a),xn(l),n.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Ee(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new Je,h=(C=!0)=>{!o||!r.value||(C?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};Ee(r,()=>{r.value&&h(!0)},{});const f=P(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function b(C){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(C.target)&&n.closeWhenClickOverlay&&v():r.value&&!r.value.contains(C.target)&&n.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(C,O)=>(I(),wt(rn,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:nt(()=>[_("div",{class:"pop-parent",style:M([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[_("div",{ref_key:"pop",ref:r,class:"pop",style:M([{position:"absolute","z-index":"3000"},l])},[ze(C.$slots,"default",{},()=>[pv],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),b_="",Zt=ae(mv,[["__scopeId","data-v-0dd2379f"]]),gv={class:"dialog-parent"},vv={key:0,class:"title"},yv={key:0,class:"title-inner truncate"},bv={class:"custom-content"},_v={class:"custom-content-default"},xv={key:1,class:"btns"},wv=oe({customOptions:{Overlay:rn,Pop:Zt,Icon:bs,Button:it},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(""),a=P(""),l=P(!1),c=P(""),u=P("");let h,f,d;function m(O){o.value=O?.title||"",a.value=O?.content||"",l.value=typeof O?.showClose=="boolean"?O?.showClose:!1,c.value=O?.cancelText||"",u.value=O?.confirmText||"",r.value.open(),h=O?.onClose,f=O?.onCancel,d=O?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function b(){v(),f?.(),i("cancel")}function C(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(O,$)=>(I(),wt(Zt,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:nt(()=>[_("div",gv,[_("div",{class:"dialog",style:M({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(I(),V("div",vv,[o.value?(I(),V("div",yv,me(o.value),1)):Pe("",!0),l.value?(I(),V("div",{key:1,class:"close",onClick:v},[ue(bs,{icon:"ic:baseline-close",color:ke(j).colorGrayCC},null,8,["color"])])):Pe("",!0)])):Pe("",!0),_("div",bv,[ze(O.$slots,"default",{},()=>[_("div",_v,me(a.value),1)],!0)]),c.value||u.value?(I(),V("div",xv,[c.value?(I(),wt(it,{key:0,onClick:b,class:"btn",bgColor:ke(j).colorGrayE6,borderColor:ke(j).colorGrayE6,fontColor:ke(j).colorGray33,borderRadius:"0"},{default:nt(()=>[He(me(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Pe("",!0),u.value?(I(),wt(it,{key:1,onClick:C,class:"btn",borderRadius:"0"},{default:nt(()=>[He(me(u.value),1)]),_:1})):Pe("",!0)])):Pe("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),__="",Lr=ae(wv,[["__scopeId","data-v-6bd255c9"]]),Cv={class:"loading-8"},Sv={viewBox:"25 25 50 50"},kv=oe({__name:"Loading8",props:{color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("div",Cv,[(I(),V("svg",Sv,[_("circle",{cx:"50",cy:"50",r:"20",style:M(["stroke: "+e.color])},null,4)]))]))}}),x_="",dh=ae(kv,[["__scopeId","data-v-e5e3cf4c"]]),Aa=s=>(Ws("data-v-85491020"),s=s(),Xs(),s),Ev=[Aa(()=>_("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)),Aa(()=>_("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)),Aa(()=>_("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))],Tv=oe({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{style:M(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Ev,4))}}),k_="",Ra=ae(Tv,[["__scopeId","data-v-85491020"]]);function Bn(s){let e=!1;return s=="123"&&(e=!0),{isValidated:e,msg:s+"不对!"}}function E_(s){return s}document.getElementById("teleport")||document.documentElement;function Va(s,e){{const t=document.querySelector("yz-dialog-toast#globalDialogToast");t&&"_instance"in t&&t._instance.exposed.open(s,e)}}function Ov(s){{const e=document.querySelector("yz-dialog-loading#globalDialogLoading");return e&&"_instance"in e&&e._instance.exposed.open(s),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function Pv(s){{const e=document.querySelector("yz-dialog#globalDialog");return e&&"_instance"in e&&e._instance.exposed.open(s),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}function jn(s,e="bottom"){let t;s instanceof HTMLElement?t=tt(Zt,{directionFrom:e},()=>tt("div",{...hv(s),innerHTML:s.innerHTML})):t=tt(Zt,{directionFrom:e},()=>s),pr(t,document.getElementById("teleport")||document.documentElement),t.component?.exposed?.open();const n=()=>{t.component?.exposed?.close()};return n.vnode=t,n}function fh(s){return jn(s,"bottom")}function ph(s){return jn(s,"top")}function mh(s){return jn(s,"left")}function gh(s){return jn(s,"right")}function vh(s){return jn(s,"center")}function zr(s){return jn(s,"absolute")}const Iv=()=>fh(tt("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Dv=()=>ph(tt("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Nv=()=>mh(tt("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),$v=()=>gh(tt("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Mv=()=>vh(tt("div",{style:"width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn}))),Av=()=>zr(tt("div",{style:"position:absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},tt("yz-input",{placeholder:"请输入姓名",validator:Bn})));let Fr;function yh(s){{const e=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return e&&"_instance"in e&&(Fr&&e.removeEventListener("plates",Fr),Fr=t=>{"detail"in t&&s?.onPlates?.(t.detail[0])},e.addEventListener("plates",Fr),e.initPlates=s?.initPlates,e.completePlateLength=s?.completePlateLength,e._instance.exposed.open()),()=>{e&&"_instance"in e&&e._instance.exposed.close()}}}const Rv={class:"content"},Vv=ae(oe({customOptions:{},inheritAttrs:!0,__name:"MouseOver.ce",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(!1),a=kt({});let l=kt({}),c=kt({}),u=1,h;Ee(r,()=>{!r.value||h||(d(),h=new ft(r.value,!1),h.on("resize",(m,v)=>{u=Math.max(m,v)/Math.min(m,v);const b=Math.min(m,v);c.width=l.width=b+"px",c.height=l.height=b+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,d()}),h.start())});function f(){K.copyToClipboard(K.getInnerText(r.value)).then(()=>{Va("复制成功")}).catch(m=>{Va(m.toString())})}function d(){switch(n.coverDirection){case"bottomLeft":l.top="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"bottomRight":l.top="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"topLeft":l.bottom="100%",l.right="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(50%, 50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"topRight":l.bottom="100%",l.left="100%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, 50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"center":l.top="50%",l.left="50%",l.borderRadius="50%",l.transformOrigin="center",l.transform=`translate3d(-50%, -50%, 0) ${o.value?`scale3d(${u*3}, ${u*3}, ${u*3})`:"scale3d(0,0,0)"}`,l.transition=`transform ${n.timeGap*u}ms ease-in-out`;break;case"slideUp":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"slideDown":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center top":"center bottom"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"slideRight":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center left":"center right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"slideLeft":l.top="0",l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="100%",l.borderRadius="0",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap}ms ease-in-out`;break;case"animationJelly":l.transform="scale(0)",a.animation=`${o.value?"jelly 0.5s":"none"}`;break;case"floatUp":l.transform="scale(0)",a.transform=`${o.value?"translateY(-4px)":"translateY(0)"}`,a.willChange="box-shadow, transform",a.transition=`transform ${n.timeGap}ms ease,box-shadow ${n.timeGap}ms ease `;break;case"underlineRight":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"underlineRightInit":l.bottom="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom right":"bottom left"}`,l.transform=`${o.value?"scaleX(0)":"scaleX(1)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"underlineCenter":l.bottom="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease-in-out`;break;case"lineThrough":l.top="50%",l.left="0",l.right="0",l.width="100%",l.height="3px",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(0)":"scaleX(1)"} translateY(-50%)`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"overlineRight":l.top="0",l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"bottom left":"bottom right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease`;break;case"overlineCenter":l.top="0",l.left="50%",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=`translate(-50%, 0) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u*.5}ms ease-in-out`;break;case"pillars1":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.right="0";break;case"pillars2":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin=`${o.value?"center bottom":"center top"}`,l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.transformOrigin=`${o.value?"center top":"center bottom"}`,c.right="0";break;case"pillars3":l.top="0",l.bottom="0",l.width="2px",l.height="100%",l.transformOrigin="center",l.transform=`${o.value?"scaleY(1)":"scaleY(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.right="0";break;case"bars1":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center left":"center right"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"bars2":l.left="0",l.right="0",l.width="100%",l.height="2px",l.transformOrigin=`${o.value?"center right":"center left"}`,l.transform=`${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},l.transformOrigin=`${o.value?"center left":"center right"}`,c.bottom="0";break;case"bars3":l.left="50%",l.right="0",l.width="100%",l.height="2px",l.transformOrigin="center",l.transform=` translateX(-50%) ${o.value?"scaleX(1)":"scaleX(0)"}`,l.transition=`transform ${n.timeGap*u}ms ease`,c={...l},c.bottom="0";break;case"circle":l.zIndex="2",l.backgroundColor="rgba(255,255,255,0)",l.borderRadius="100%",l.boxShadow=o.value?`
88
- inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
89
- inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
90
- inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
91
- inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)`:`
92
- inset ${l.width} 0 0 ${sn(n.coverColor,.2)},
93
- inset 0 ${l.width} 0 ${sn(n.coverColor,.2)},
94
- inset -${l.width} 0 0 ${sn(n.coverColor,.2)},
95
- inset 0 -${l.width} 0 ${sn(n.coverColor,.2)}`,l.transition="box-shadow 0.75s";break}}return Qe(()=>{h?.destroy()}),e({}),(m,v)=>(I(),V("div",{ref_key:"mouseOverContainer",ref:r,class:"mouse-over",style:M(a),onClick:f},[_("div",{class:"before",style:M({backgroundColor:n.coverColor,...ke(l)})},null,4),_("div",Rv,[ze(m.$slots,"default",{},void 0,!0)]),_("div",{class:"after",style:M({backgroundColor:n.coverColor,...ke(c)})},null,4)],4))}}),[["styles",[`@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}
96
- `,`.mouse-over[data-v-73454cb9]{box-sizing:border-box;position:relative;display:inline-block;cursor:pointer;overflow:hidden}.before[data-v-73454cb9],.after[data-v-73454cb9]{position:absolute;z-index:0}.content[data-v-73454cb9]{position:relative;z-index:1}
97
- `]],["__scopeId","data-v-73454cb9"]]),Lv=ae(oe({customOptions:{SVGDown:Rr},inheritAttrs:!0,__name:"Accordion.ce",props:{initOpen:{type:Boolean,default:!1},height:{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:e,emit:t}){const n=s,i=t,r=P(Number.MAX_SAFE_INTEGER+"px"),o=P(),a=P(!0);let l;Ee(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new ft(o.value),l.on("resize",(h,f)=>{i("resize",h,f)}),a.value=n.initOpen)});function c(){a.value=!a.value,a.value?i("open"):i("close")}const u=P("rotate(0deg)");return Zl(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),Qe(()=>{l?.destroy()}),e({}),(h,f)=>(I(),V("div",{class:"wrap",style:M({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[_("div",{class:"title",onClick:c,style:M({height:n.height,lineHeight:n.height,margin:`0 ${n.padding}`,transitionDelay:`${a.value?0:n.duration}ms`,borderBottom:`${a.value?1:0}px solid ${n.borderColor}`})},[ze(h.$slots,"title",{},()=>[He("title")],!0),ue(Rr,{class:"arrow",style:M({transition:`transform ${n.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),_("div",{ref_key:"content",ref:o,class:"content",style:M({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[ze(h.$slots,"content",{},void 0,!0)],4)],4))}}),[["styles",[`.wrap[data-v-68d65f8a]{font-size:1em;position:relative;overflow:hidden}.title[data-v-68d65f8a]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.content[data-v-68d65f8a]{word-break:break-all;overflow:hidden}
98
- `]],["__scopeId","data-v-68d65f8a"]]),zv=oe({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);Je.toTween({width:c},{width:u},{duration:Math.abs(u-c)*n.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return e({start:o,goto:a}),(l,c)=>(I(),V("div",{class:"wrap",style:M({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[_("div",{class:"bar",style:M({width:r.value+"%",backgroundColor:n.progressColor})},me(n.showText?r.value+"%":""),5)],4))}}),N_="",Gr=ae(zv,[["__scopeId","data-v-77dcb1dd"]]),Fv=["width","height"],Gv=["src","type"],Bv={class:"bar-wrap"},bh=ae(oe({customOptions:{ProgressBar:Gr},inheritAttrs:!0,__name:"Video.ce",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:e,emit:t}){const n=s;function i(){Je.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{o.value?.start()},onUpdate:l=>{o.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const r=P(),o=P();Ee(r,()=>{r.value&&(r.value.addEventListener("play",i),n.autoplay&&ba.tryAutoPlayOrAutoPlayAfterClick(r.value))}),Qe(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return e({play:a}),(l,c)=>(I(),V("div",{class:"wrap",style:M({width:n.width,height:n.height}),onClick:a},[_("video",{ref_key:"video",ref:r,width:n.width,height:n.height,preload:"metadata"},[_("source",{src:n.src,type:n.type},null,8,Gv)],8,Fv),_("div",Bv,[ue(Gr,{ref_key:"bar",ref:o,width:n.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),[["styles",[`.wrap[data-v-8cc0b5aa]{position:relative;overflow:hidden;background-color:#f5f5f5}.bar-wrap[data-v-8cc0b5aa]{position:absolute;bottom:0;left:0}
99
- `]],["__scopeId","data-v-8cc0b5aa"]]),jv=oe({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(),a=P(0),l=P(0),c=P(0),u=P(0),h=P(1),f=P(0),d=P(0);Zu(n.src).then(Y=>{c.value=Y.width,u.value=Y.height,h.value=Y.aspectRatio,O()});let m;Ee(r,()=>{r.value&&(m=new ft(r.value,!1),m.on("resize",(Y,L)=>{a.value=Y,l.value=L,O()}),m.start())});let v=!1;const b={x:0,y:0,width:0,height:0};let C;function O(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(n.mode){case"aspectFit":h.value>=1?(f.value=a.value,d.value=f.value/h.value,d.value>l.value&&(d.value=l.value,f.value=d.value*h.value)):(d.value=l.value,f.value=d.value*h.value,f.value>a.value&&(f.value=a.value,d.value=f.value/h.value));break;case"aspectFill":h.value>=1?(d.value=l.value,f.value=d.value*h.value):(f.value=a.value,d.value=f.value/h.value);break;case"widthFix":f.value=a.value,d.value=f.value/h.value;break;case"heightFix":d.value=l.value,f.value=d.value*h.value;break;case"scaleToFill":default:f.value=a.value,d.value=l.value;break}Xi(()=>{const Y=o.value.getBoundingClientRect();i("settled",Y.x,Y.y,f.value,d.value),v&&C(b.x,b.y,b.width,b.height)})}}function $(Y,L,H,fe){const ye=(Ae,Ue,qe,et,Ge,be,_e,te,U)=>{if(!Ge||!be||!_e||!te){const A=Me.vnode.el.getBoundingClientRect(),Fe=A.width,ht=A.height;let rt=0,ot=0;h.value>=1?(rt=Fe,ot=rt/h.value,ot>ht&&(ot=ht,rt=ot*h.value)):(ot=ht,rt=ot*h.value,rt>Fe.value&&(rt=Fe.value,ot=rt/h.value)),Ge=(Fe-rt)/2,be=(ht-ot)/2,_e=rt,te=ot}const Ce=200;Je.toTween({left:Ae,top:Ue,width:qe,height:et},{left:Ge,top:be,width:_e,height:te},{duration:Ce,onStart(){},onUpdate(A){ge.el.style.left=A.left+"px",ge.el.style.top=A.top+"px",ge.el.style.width=A.width+"px",ge.el.style.height=A.height+"px"},onComplete(A){b.x=A.left,b.y=A.top,b.width=A.width,b.height=A.height,U?.()}}).startAuto()},ge=tt("div",{style:`
84
+ `,c=P();return kt(c,()=>{c.value&&H.setStyleSheet(l,c.value)}),ee(()=>{}),t({}),(u,h)=>(O(),R("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[_("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:$({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,by),u.showValue?(O(),R("label",_y,pt(r.value)+pt(n.unit),1)):It("",!0)],512))}}),Ga=rt(xy,[["styles",[`.input-range[data-v-47a3874d]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.label[data-v-47a3874d]{min-width:4em;text-align:right}input[type=range][data-v-47a3874d]{flex:1 1 auto;-webkit-appearance:none;appearance:none;border-radius:9999px;margin:0;padding:0}input[type=range][data-v-47a3874d]:focus{outline:none}input[type=range][data-v-47a3874d]::-webkit-slider-runnable-track{height:var(--input-range-track-size);border-radius:9999px}input[type=range][data-v-47a3874d]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:var(--input-range-thumb-size);width:var(--input-range-thumb-size);margin-top:-8px;background:var(--input-range-color);border-radius:50%;cursor:pointer}
85
+ `]],["__scopeId","data-v-47a3874d"]]),wy=st({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P();kt(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new ve(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new ih(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return ee(()=>{o?.destroy()}),t({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(O(),R("div",{ref_key:"svgRef",ref:r,class:"svg",style:$({backgroundColor:n.bgColor})},null,4))}}),V_="",Br=rt(wy,[["__scopeId","data-v-933ab3a5"]]),ky={class:"input-range-svg"},Cy={key:0,class:"label"},Sy=st({customOptions:{SVG:Br},inheritAttrs:!0,__name:"InputRangeSvg.ce",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:Y.colorPrimary},barColor:{default:Y.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(n.defaultValue),o=f=>{r.value=f,i("change",f)},a=en(n.handleSize,20).number;let l;const c=()=>{l=new lh({x:0,y:a*.5,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:u,handleSize:a,autoRender:!0}),l.on("change",o)};let u=0;const h=P();return kt(h,()=>{h.value&&h.value.getSVG().then(f=>{u=f.app.width,f.clear(),c(),f.path(l),f.app.on("resize",d=>{u=d,f.clear(),c(),f.path(l)})})}),ee(()=>{}),t({}),(f,d)=>(O(),R("div",ky,[_("div",{class:"input",style:$({height:n.handleSize})},[ut(Br,{ref_key:"svgRef",ref:h},null,512)],4),f.showValue?(O(),R("div",Cy,pt(r.value)+pt(n.unit),1)):It("",!0)]))}}),ph=rt(Sy,[["styles",[`.input-range-svg[data-v-c05468f9]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.input[data-v-c05468f9]{flex:1 1 auto;overflow:hidden}.label[data-v-c05468f9]{min-width:4em;text-align:right}
86
+ `]],["__scopeId","data-v-c05468f9"]]),Ey=["width","height"],Ty=["fill"],Oy=st({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[_("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,Ty)],8,Ey))}}),G_="",mh=rt(Oy,[["__scopeId","data-v-4747d4a7"]]),Iy=st({customOptions:{SVGDelete:mh},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:Y.colorGrayFF},deleteColor:{default:Y.colorRed},fontColor:{default:Y.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(!1),o=()=>{i("delete"),r.value=!1};let a;const l=P();return kt(l,()=>{l.value&&(a=new ve(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),ee(()=>{a?.destroy()}),t({}),(c,u)=>(O(),R("div",{class:"parent",ref_key:"item",ref:l,style:$({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[_("div",{class:"content",style:$({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[Pt(c.$slots,"default",{},void 0,!0)],4),_("div",{class:"delete",onClick:o,style:$({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[ut(mh,{color:n.fontColor},null,8,["color"])],4)],4))}}),gh=rt(Iy,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
87
+ `]],["__scopeId","data-v-4ea80232"]]),Py=s=>{const t={};for(const e of s.attributes)t[e.name]=e.value;return t},Dy={class:"overlay-content",style:$(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},$y=st({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Ci(Y.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=P();function r(o){n.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return kt(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),t({}),(o,a)=>n.visible?(O(),R("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:$([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[_("div",Dy,[Pt(o.$slots,"default",{},void 0,!0)])],4)):It("",!0)}}),Y_="",on=rt($y,[["__scopeId","data-v-fbdcceee"]]),Ny=(s=>(Ds("data-v-0dd2379f"),s=s(),$s(),s))(()=>_("div",null,null,-1)),My=st({customOptions:{Overlay:on},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P();let o;const a=oe({}),l=oe({});function c(){switch(wn(a),wn(l),n.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}kt(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new se,h=(k=!0)=>{!o||!r.value||(k?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{g()}}))};kt(r,()=>{r.value&&h(!0)},{});const f=P(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?g():h(!1)}function g(){f.value=!1,i("close")}function v(k){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(k.target)&&n.closeWhenClickOverlay&&g():r.value&&!r.value.contains(k.target)&&n.closeWhenClickOverlay&&m()}return t({open:d,close:m}),(k,I)=>(O(),Ht(on,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:Ft(()=>[_("div",{class:"pop-parent",style:$([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:v},[_("div",{ref_key:"pop",ref:r,class:"pop",style:$([{position:"absolute","z-index":"3000"},l])},[Pt(k.$slots,"default",{},()=>[Ny],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),X_="",Je=rt(My,[["__scopeId","data-v-0dd2379f"]]),Ry={class:"dialog-parent"},Ay={key:0,class:"title"},zy={key:0,class:"title-inner truncate"},Ly={class:"custom-content"},Vy={class:"custom-content-default"},Fy={key:1,class:"btns"},Gy=st({customOptions:{Overlay:on,Pop:Je,Icon:_s,Button:de},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(""),a=P(""),l=P(!1),c=P(""),u=P("");let h,f,d;function m(I){o.value=I?.title||"",a.value=I?.content||"",l.value=typeof I?.showClose=="boolean"?I?.showClose:!1,c.value=I?.cancelText||"",u.value=I?.confirmText||"",r.value.open(),h=I?.onClose,f=I?.onCancel,d=I?.onConfirm,i("open")}function g(){r.value.close(),h?.(),i("close")}function v(){g(),f?.(),i("cancel")}function k(){g(),d?.(),i("confirm")}return t({open:m,close:g}),(I,M)=>(O(),Ht(Je,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:Ft(()=>[_("div",Ry,[_("div",{class:"dialog",style:$({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(O(),R("div",Ay,[o.value?(O(),R("div",zy,pt(o.value),1)):It("",!0),l.value?(O(),R("div",{key:1,class:"close",onClick:g},[ut(_s,{icon:"ic:baseline-close",color:wt(Y).colorGrayCC},null,8,["color"])])):It("",!0)])):It("",!0),_("div",Ly,[Pt(I.$slots,"default",{},()=>[_("div",Vy,pt(a.value),1)],!0)]),c.value||u.value?(O(),R("div",Fy,[c.value?(O(),Ht(de,{key:0,onClick:v,class:"btn",bgColor:wt(Y).colorGrayE6,borderColor:wt(Y).colorGrayE6,fontColor:wt(Y).colorGray33,borderRadius:"0"},{default:Ft(()=>[Wt(pt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):It("",!0),u.value?(O(),Ht(de,{key:1,onClick:k,class:"btn",borderRadius:"0"},{default:Ft(()=>[Wt(pt(u.value),1)]),_:1})):It("",!0)])):It("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),U_="",Yr=rt(Gy,[["__scopeId","data-v-6bd255c9"]]),By={class:"loading-8"},Yy={viewBox:"25 25 50 50"},jy=st({__name:"Loading8",props:{color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("div",By,[(O(),R("svg",Yy,[_("circle",{cx:"50",cy:"50",r:"20",style:$(["stroke: "+t.color])},null,4)]))]))}}),H_="",yh=rt(jy,[["__scopeId","data-v-e5e3cf4c"]]),Ba=s=>(Ds("data-v-85491020"),s=s(),$s(),s),Xy=[Ba(()=>_("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)),Ba(()=>_("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)),Ba(()=>_("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))],Uy=st({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{style:$(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},Xy,4))}}),K_="",Ya=rt(Uy,[["__scopeId","data-v-85491020"]]);function jn(s){let t=!1;return s=="123"&&(t=!0),{isValidated:t,msg:s+"不对!"}}function Q_(s){return s}document.getElementById("teleport")||document.documentElement;function Di(s,t){{const e=document.querySelector("yz-dialog-toast#globalDialogToast");e&&"_instance"in e&&e._instance.exposed.open(s,t)}}function Hy(s){{const t=document.querySelector("yz-dialog-loading#globalDialogLoading");return t&&"_instance"in t&&t._instance.exposed.open(s),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function Wy(s){{const t=document.querySelector("yz-dialog#globalDialog");return t&&"_instance"in t&&t._instance.exposed.open(s),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function Xn(s,t="bottom"){let e;s instanceof HTMLElement?e=ae(Je,{directionFrom:t},()=>ae("div",{...Py(s),innerHTML:s.innerHTML})):e=ae(Je,{directionFrom:t},()=>s),br(e,document.getElementById("teleport")||document.documentElement),e.component?.exposed?.open();const n=()=>{e.component?.exposed?.close()};return n.vnode=e,n}function vh(s){return Xn(s,"bottom")}function bh(s){return Xn(s,"top")}function _h(s){return Xn(s,"left")}function xh(s){return Xn(s,"right")}function wh(s){return Xn(s,"center")}function jr(s){return Xn(s,"absolute")}const Zy=()=>vh(ae("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},ae("yz-input",{placeholder:"请输入姓名",validator:jn}))),qy=()=>bh(ae("div",{style:"width: 100%;height: 300px;background-color: white;font-size: 16px;padding: 30px;"},ae("yz-input",{placeholder:"请输入姓名",validator:jn}))),Ky=()=>_h(ae("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},ae("yz-input",{placeholder:"请输入姓名",validator:jn}))),Qy=()=>xh(ae("div",{style:"width: 300px;height: 100%;background-color: white;font-size: 16px;padding: 30px;"},ae("yz-input",{placeholder:"请输入姓名",validator:jn}))),Jy=()=>wh(ae("div",{style:"width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},ae("yz-input",{placeholder:"请输入姓名",validator:jn}))),t1=()=>jr(ae("div",{style:"position:absolute;left: 100px;top: 100px;width: 200px;height: 200px;background-color: white;font-size: 16px;padding: 30px;"},ae("yz-input",{placeholder:"请输入姓名",validator:jn})));let Xr;function kh(s){{const t=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return t&&"_instance"in t&&(Xr&&t.removeEventListener("plates",Xr),Xr=e=>{"detail"in e&&s?.onPlates?.(e.detail[0])},t.addEventListener("plates",Xr),t.initPlates=s?.initPlates,t.completePlateLength=s?.completePlateLength,t._instance.exposed.open()),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}const e1=st({__name:"Container",props:{overflow:{default:"hidden"},type:{default:"block"},supportCopyText:{type:Boolean,default:!1},effectInit:{default:"leave"},effectTriggerTiming:{default:"none"},enter:{},leave:{},styleSheets:{}},emits:["ready","resize","mouseOver","mouseOut"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="leave";const o=()=>{r="enter",n.enter?.()},a=()=>{r="leave",n.leave?.()},l=()=>{r=="enter"?a():o()},c=()=>{r=="enter"?o():a()},u=P();let h,f;kt(u,()=>{if(!(!u.value||h)){if(n.styleSheets){let g="";for(let v in n.styleSheets)g+=`${v}: ${n.styleSheets[v]};`;H.setStyleSheet(`
88
+ :root {
89
+ ${g}
90
+ }
91
+ :host {
92
+ ${g}
93
+ }
94
+ `,u.value)}switch(h=new ve(u.value,!1),h.on("resize",(g,v)=>{i("resize",g,v),i("ready",g,v),f?.(h)}),h.on("mouseOver",()=>{i("mouseOver"),n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseOut",()=>{i("mouseOut"),n.effectTriggerTiming=="mouseMove"&&l()}),h.start(),n.effectInit){case"enter":o();break;case"leave":a();break}}});function d(){n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&H.copyToClipboard(H.getInnerText(u.value)).then(()=>{Di("复制成功")}).catch(g=>{Di(g.toString())})}ee(()=>{h?.destroy()});function m(){return new Promise(g=>{if(h)return g(h);f=g})}return t({getApp:m,reEffect:c}),(g,v)=>(O(),R("div",{ref_key:"containerRef",ref:u,class:he(["container",[n.type]]),style:$({overflow:n.overflow}),onClick:d},[Pt(g.$slots,"default",{},void 0,!0)],6))}}),J_="",_e=rt(e1,[["__scopeId","data-v-f8cbfaff"]]),s1=rt(st({customOptions:{Container:_e,SVGDown:Gr},inheritAttrs:!0,__name:"Accordion.ce",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,f)=>{i("resize",h,f)},o=P(Number.MAX_SAFE_INTEGER+"px"),a=P(),l=P(!0);kt(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=P(0);return sc(()=>{u.value=l.value?0:-90}),t({}),(h,f)=>(O(),Ht(_e,{onResize:r},{default:Ft(()=>[_("div",{class:"accordion",style:$({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[_("div",{class:"accordion-title",onClick:c,style:$({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}`})},[Pt(h.$slots,"title",{},()=>[Wt("title")],!0),ut(Gr,{class:"arrow",style:$({transition:`transform ${n.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),_("div",{ref_key:"content",ref:a,class:"accordion-content",style:$({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[Pt(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),[["styles",[`.accordion[data-v-bb17ddb4]{width:100%;font-size:1em;position:relative;overflow:hidden}.accordion-title[data-v-bb17ddb4]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.accordion-content[data-v-bb17ddb4]{word-break:break-all;overflow:hidden}
95
+ `]],["__scopeId","data-v-bb17ddb4"]]),n1=st({__name:"ProgressBar",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);se.toTween({width:c},{width:u},{duration:Math.abs(u-c)*n.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return t({start:o,goto:a}),(l,c)=>(O(),R("div",{class:"wrap",style:$({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[_("div",{class:"bar",style:$({width:r.value+"%",backgroundColor:n.progressColor})},pt(n.showText?r.value+"%":""),5)],4))}}),sx="",Ur=rt(n1,[["__scopeId","data-v-77dcb1dd"]]),i1=["width","height"],r1=["src","type"],o1={class:"bar-wrap"},Ch=rt(st({customOptions:{ProgressBar:Ur},inheritAttrs:!0,__name:"Video.ce",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;function i(){se.toTween({x:0},{x:100},{duration:this.duration,precision:.05,onStart:()=>{o.value?.start()},onUpdate:l=>{o.value?.goto(l.x)}}).startAuto(()=>this.currentTime)}const r=P(),o=P();kt(r,()=>{r.value&&(r.value.addEventListener("play",i),n.autoplay&&Ea.tryAutoPlayOrAutoPlayAfterClick(r.value))}),ee(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return t({play:a}),(l,c)=>(O(),R("div",{class:"wrap",style:$({width:n.width,height:n.height}),onClick:a},[_("video",{ref_key:"video",ref:r,width:n.width,height:n.height,preload:"metadata"},[_("source",{src:n.src,type:n.type},null,8,r1)],8,i1),_("div",o1,[ut(Ur,{ref_key:"bar",ref:o,width:n.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),[["styles",[`.wrap[data-v-8cc0b5aa]{position:relative;overflow:hidden;background-color:#f5f5f5}.bar-wrap[data-v-8cc0b5aa]{position:absolute;bottom:0;left:0}
96
+ `]],["__scopeId","data-v-8cc0b5aa"]]),a1=st({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(),a=P(0),l=P(0),c=P(0),u=P(0),h=P(1),f=P(0),d=P(0);eh(n.src).then(j=>{c.value=j.width,u.value=j.height,h.value=j.aspectRatio,I()});let m;kt(r,()=>{r.value&&(m=new ve(r.value,!1),m.on("resize",(j,L)=>{a.value=j,l.value=L,I()}),m.start())});let g=!1;const v={x:0,y:0,width:0,height:0};let k;function I(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(n.mode){case"aspectFit":h.value>=1?(f.value=a.value,d.value=f.value/h.value,d.value>l.value&&(d.value=l.value,f.value=d.value*h.value)):(d.value=l.value,f.value=d.value*h.value,f.value>a.value&&(f.value=a.value,d.value=f.value/h.value));break;case"aspectFill":h.value>=1?(d.value=l.value,f.value=d.value*h.value):(f.value=a.value,d.value=f.value/h.value);break;case"widthFix":f.value=a.value,d.value=f.value/h.value;break;case"heightFix":d.value=l.value,f.value=d.value*h.value;break;case"scaleToFill":default:f.value=a.value,d.value=l.value;break}Qi(()=>{const j=o.value.getBoundingClientRect();i("settled",j.x,j.y,f.value,d.value),g&&k(v.x,v.y,v.width,v.height)})}}function M(j,L,X,mt){const bt=(zt,Kt,Qt,ne,Yt,_t,xt,it,q)=>{if(!Yt||!_t||!xt||!it){const A=At.vnode.el.getBoundingClientRect(),jt=A.width,le=A.height;let ie=0,re=0;h.value>=1?(ie=jt,re=ie/h.value,re>le&&(re=le,ie=re*h.value)):(re=le,ie=re*h.value,ie>jt.value&&(ie=jt.value,re=ie/h.value)),Yt=(jt-ie)/2,_t=(le-re)/2,xt=ie,it=re}const Et=200;se.toTween({left:zt,top:Kt,width:Qt,height:ne},{left:Yt,top:_t,width:xt,height:it},{duration:Et,onStart(){},onUpdate(A){yt.el.style.left=A.left+"px",yt.el.style.top=A.top+"px",yt.el.style.width=A.width+"px",yt.el.style.height=A.height+"px"},onComplete(A){v.x=A.left,v.y=A.top,v.width=A.width,v.height=A.height,q?.()}}).startAuto()},yt=ae("div",{style:`
100
97
  position:absolute;
101
- left:${Y}px;
98
+ left:${j}px;
102
99
  top:${L}px;
103
- width: ${H}px;
104
- height: ${fe}px;
100
+ width: ${X}px;
101
+ height: ${mt}px;
105
102
  background-image: url(${n.src});
106
103
  background-repeat: no-repeat;
107
104
  background-position: center center;
108
- background-size: 100% 100%`,onVnodeMounted:()=>{ye(Y,L,H,fe)}}),Me=zr(tt("div",{style:`
105
+ background-size: 100% 100%`,onVnodeMounted:()=>{bt(j,L,X,mt)}}),At=jr(ae("div",{style:`
109
106
  position:absolute;
110
107
  width: 100%;
111
108
  height: 100%;
@@ -113,17 +110,17 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
113
110
  display: flex;
114
111
  justify-content: center;
115
112
  align-items: center;
116
- `,onClick:()=>{const{x:Ae,y:Ue,width:qe,height:et}=o.value.getBoundingClientRect();ye(b.x,b.y,b.width,b.height,Ae,Ue,qe,et,()=>{Me(),v=!1})}},ge));return ye}function S(){if(!r.value||!n.openImageViewWhenClick)return;v=!0;const{x:Y,y:L,width:H,height:fe}=o.value.getBoundingClientRect();C=$(Y,L,H,fe)}return Qe(()=>{m?.destroy()}),e({}),(Y,L)=>(I(),V("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:M({backgroundColor:n.bgColor}),onClick:S},[_("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:M({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),_h=ae(jv,[["styles",[`.image[data-v-e5ec6af4]{box-sizing:border-box;position:relative;overflow:hidden;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-inner[data-v-e5ec6af4]{background-repeat:no-repeat;background-position:center center}
117
- `]],["__scopeId","data-v-e5ec6af4"]]),Yv=oe({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o=[],a;const l=new Je;let c=0,u=!1;const h={};function f(){switch(xn(h),n.direction){case"none":a="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":a="slideDown";break;case"leftToRight":a="slideRight";break;case"rightToLeft":a="slideLeft";break;case"bottomToTop":a="slideUp";break}}f();function d(){r.value&&(pr(tt("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(L=>tt("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},tt(L.component,{...L.attributes,style:{...L.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=L=>{if(!(!a||u||!o.length)){if(u=!0,L.push&&(c=o.length-1),L.pop){if(!o.length){u=!1;return}c=o.length-1}if(L.reset&&(c=0),L.forward){if(c>=o.length-1){u=!1;return}c++}if(L.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:n.easeName,dur:L?.dur??n.duration,direction:L.back||L.pop?"reverse":"normal",onComplete:()=>{(L.back||L.pop)&&c--,L.pop&&(o.pop(),d()),i("finish",c),u=!1,L?.onComplete?.()}},c)}};function v(L=[],H){o=[],L.forEach(fe=>o.push({component:fe.component,attributes:fe.attributes??{}})),d(),m({reset:!0,onComplete:H})}function b(L,H={}){o.push({component:L,attributes:H}),d(),m({push:!0})}function C(){m({pop:!0})}function O(){m({forward:!0})}function $(){m({back:!0})}function S(L,H){L>o.length-1||L<0||L==c||(H||(H=n.duration/Math.abs(L-c)),c<L?m({forward:!0,dur:H,onComplete:()=>{setTimeout(()=>{S(L,H)})}}):m({back:!0,dur:H,onComplete:()=>{setTimeout(()=>{S(L,H)})}}))}function Y(){d(),m({resize:!0})}return Us(()=>{ft.page.on("resize",Y)}),Qe(()=>{ft.page.off("resize",Y)}),e({reset:v,push:b,pop:C,forward:O,back:$,goto:S}),(L,H)=>(I(),V("div",{ref_key:"routesContainerRef",ref:r,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),V_="",xh=ae(Yv,[["__scopeId","data-v-e9c68065"]]),Hv=oe({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(),a=P(0),l=P(0),c=P(0),u=P(0),h=P(1),f=P(0),d=P(0);Zu(n.src).then(Y=>{c.value=Y.width,u.value=Y.height,h.value=Y.aspectRatio,O()});let m;Ee(r,()=>{r.value&&(m=new ft(r.value,!1),m.on("resize",(Y,L)=>{a.value=Y,l.value=L,O()}),m.start())});let v=!1;const b={x:0,y:0,width:0,height:0};let C;function O(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(n.mode){case"aspectFit":h.value>=1?(f.value=a.value,d.value=f.value/h.value,d.value>l.value&&(d.value=l.value,f.value=d.value*h.value)):(d.value=l.value,f.value=d.value*h.value,f.value>a.value&&(f.value=a.value,d.value=f.value/h.value));break;case"aspectFill":h.value>=1?(d.value=l.value,f.value=d.value*h.value):(f.value=a.value,d.value=f.value/h.value);break;case"widthFix":f.value=a.value,d.value=f.value/h.value;break;case"heightFix":d.value=l.value,f.value=d.value*h.value;break;case"scaleToFill":default:f.value=a.value,d.value=l.value;break}Xi(()=>{const Y=o.value.getBoundingClientRect();i("settled",Y.x,Y.y,f.value,d.value),v&&C(b.x,b.y,b.width,b.height)})}}function $(Y,L,H,fe){const ye=(Ae,Ue,qe,et,Ge,be,_e,te,U)=>{if(!Ge||!be||!_e||!te){const A=Me.vnode.el.getBoundingClientRect(),Fe=A.width,ht=A.height;let rt=0,ot=0;h.value>=1?(rt=Fe,ot=rt/h.value,ot>ht&&(ot=ht,rt=ot*h.value)):(ot=ht,rt=ot*h.value,rt>Fe.value&&(rt=Fe.value,ot=rt/h.value)),Ge=(Fe-rt)/2,be=(ht-ot)/2,_e=rt,te=ot}const Ce=200;Je.toTween({left:Ae,top:Ue,width:qe,height:et},{left:Ge,top:be,width:_e,height:te},{duration:Ce,onStart(){},onUpdate(A){ge.el.style.left=A.left+"px",ge.el.style.top=A.top+"px",ge.el.style.width=A.width+"px",ge.el.style.height=A.height+"px"},onComplete(A){b.x=A.left,b.y=A.top,b.width=A.width,b.height=A.height,U?.()}}).startAuto()},ge=tt("div",{style:`
113
+ `,onClick:()=>{const{x:zt,y:Kt,width:Qt,height:ne}=o.value.getBoundingClientRect();bt(v.x,v.y,v.width,v.height,zt,Kt,Qt,ne,()=>{At(),g=!1})}},yt));return bt}function C(){if(!r.value||!n.openImageViewWhenClick)return;g=!0;const{x:j,y:L,width:X,height:mt}=o.value.getBoundingClientRect();k=M(j,L,X,mt)}return ee(()=>{m?.destroy()}),t({}),(j,L)=>(O(),R("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:$({backgroundColor:n.bgColor}),onClick:C},[_("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:$({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),Sh=rt(a1,[["styles",[`.image[data-v-e5ec6af4]{box-sizing:border-box;position:relative;overflow:hidden;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.image-inner[data-v-e5ec6af4]{background-repeat:no-repeat;background-position:center center}
114
+ `]],["__scopeId","data-v-e5ec6af4"]]),l1=st({customOptions:{},inheritAttrs:!0,__name:"Routes",props:{direction:{default:"rightToLeft"},duration:{default:300},easeName:{default:"ease-in-out"}},emits:["finish"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P();let o=[],a;const l=new se;let c=0,u=!1;const h={};function f(){switch(wn(h),n.direction){case"none":a="",h.position="absolute",h.top="0",h.left="0";break;case"topToBottom":a="slideDown";break;case"leftToRight":a="slideRight";break;case"rightToLeft":a="slideLeft";break;case"bottomToTop":a="slideUp";break}}f();function d(){r.value&&(br(ae("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(L=>ae("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},ae(L.component,{...L.attributes,style:{...L.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=L=>{if(!(!a||u||!o.length)){if(u=!0,L.push&&(c=o.length-1),L.pop){if(!o.length){u=!1;return}c=o.length-1}if(L.reset&&(c=0),L.forward){if(c>=o.length-1){u=!1;return}c++}if(L.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:n.easeName,dur:L?.dur??n.duration,direction:L.back||L.pop?"reverse":"normal",onComplete:()=>{(L.back||L.pop)&&c--,L.pop&&(o.pop(),d()),i("finish",c),u=!1,L?.onComplete?.()}},c)}};function g(L=[],X){o=[],L.forEach(mt=>o.push({component:mt.component,attributes:mt.attributes??{}})),d(),m({reset:!0,onComplete:X})}function v(L,X={}){o.push({component:L,attributes:X}),d(),m({push:!0})}function k(){m({pop:!0})}function I(){m({forward:!0})}function M(){m({back:!0})}function C(L,X){L>o.length-1||L<0||L==c||(X||(X=n.duration/Math.abs(L-c)),c<L?m({forward:!0,dur:X,onComplete:()=>{setTimeout(()=>{C(L,X)})}}):m({back:!0,dur:X,onComplete:()=>{setTimeout(()=>{C(L,X)})}}))}function j(){d(),m({resize:!0})}return qs(()=>{ve.page.on("resize",j)}),ee(()=>{ve.page.off("resize",j)}),t({reset:g,push:v,pop:k,forward:I,back:M,goto:C}),(L,X)=>(O(),R("div",{ref_key:"routesContainerRef",ref:r,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),ax="",Eh=rt(l1,[["__scopeId","data-v-e9c68065"]]),c1=st({...{},name:"Image",customOptions:{},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},bgColor:{default:"transparent"},openImageViewWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(),a=P(0),l=P(0),c=P(0),u=P(0),h=P(1),f=P(0),d=P(0);eh(n.src).then(j=>{c.value=j.width,u.value=j.height,h.value=j.aspectRatio,I()});let m;kt(r,()=>{r.value&&(m=new ve(r.value,!1),m.on("resize",(j,L)=>{a.value=j,l.value=L,I()}),m.start())});let g=!1;const v={x:0,y:0,width:0,height:0};let k;function I(){if(!(!a.value||!l.value||!c.value||!u.value)){switch(n.mode){case"aspectFit":h.value>=1?(f.value=a.value,d.value=f.value/h.value,d.value>l.value&&(d.value=l.value,f.value=d.value*h.value)):(d.value=l.value,f.value=d.value*h.value,f.value>a.value&&(f.value=a.value,d.value=f.value/h.value));break;case"aspectFill":h.value>=1?(d.value=l.value,f.value=d.value*h.value):(f.value=a.value,d.value=f.value/h.value);break;case"widthFix":f.value=a.value,d.value=f.value/h.value;break;case"heightFix":d.value=l.value,f.value=d.value*h.value;break;case"scaleToFill":default:f.value=a.value,d.value=l.value;break}Qi(()=>{const j=o.value.getBoundingClientRect();i("settled",j.x,j.y,f.value,d.value),g&&k(v.x,v.y,v.width,v.height)})}}function M(j,L,X,mt){const bt=(zt,Kt,Qt,ne,Yt,_t,xt,it,q)=>{if(!Yt||!_t||!xt||!it){const A=At.vnode.el.getBoundingClientRect(),jt=A.width,le=A.height;let ie=0,re=0;h.value>=1?(ie=jt,re=ie/h.value,re>le&&(re=le,ie=re*h.value)):(re=le,ie=re*h.value,ie>jt.value&&(ie=jt.value,re=ie/h.value)),Yt=(jt-ie)/2,_t=(le-re)/2,xt=ie,it=re}const Et=200;se.toTween({left:zt,top:Kt,width:Qt,height:ne},{left:Yt,top:_t,width:xt,height:it},{duration:Et,onStart(){},onUpdate(A){yt.el.style.left=A.left+"px",yt.el.style.top=A.top+"px",yt.el.style.width=A.width+"px",yt.el.style.height=A.height+"px"},onComplete(A){v.x=A.left,v.y=A.top,v.width=A.width,v.height=A.height,q?.()}}).startAuto()},yt=ae("div",{style:`
118
115
  position:absolute;
119
- left:${Y}px;
116
+ left:${j}px;
120
117
  top:${L}px;
121
- width: ${H}px;
122
- height: ${fe}px;
118
+ width: ${X}px;
119
+ height: ${mt}px;
123
120
  background-image: url(${n.src});
124
121
  background-repeat: no-repeat;
125
122
  background-position: center center;
126
- background-size: 100% 100%`,onVnodeMounted:()=>{ye(Y,L,H,fe)}}),Me=zr(tt("div",{style:`
123
+ background-size: 100% 100%`,onVnodeMounted:()=>{bt(j,L,X,mt)}}),At=jr(ae("div",{style:`
127
124
  position:absolute;
128
125
  width: 100%;
129
126
  height: 100%;
@@ -131,26 +128,26 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
131
128
  display: flex;
132
129
  justify-content: center;
133
130
  align-items: center;
134
- `,onClick:()=>{const{x:Ae,y:Ue,width:qe,height:et}=o.value.getBoundingClientRect();ye(b.x,b.y,b.width,b.height,Ae,Ue,qe,et,()=>{Me(),v=!1})}},ge));return ye}function S(){if(!r.value||!n.openImageViewWhenClick)return;v=!0;const{x:Y,y:L,width:H,height:fe}=o.value.getBoundingClientRect();C=$(Y,L,H,fe)}return Qe(()=>{m?.destroy()}),e({}),(Y,L)=>(I(),V("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:M({backgroundColor:n.bgColor}),onClick:S},[_("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:M({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),z_="",wh=ae(Hv,[["__scopeId","data-v-34d166d5"]]),Wv={style:{position:"absolute",width:"100%",height:"100%"}},Xv={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Ch=ae(oe({customOptions:{Image:wh},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]}},setup(s,{expose:e,emit:t}){const n=s,i=P(),r=P(),o=P(),a=P(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}Ee(r,()=>{r.value&&(l?.destroy(),l=new ft(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),Ee(o,()=>{o.value&&o.value.reset(n.urls.map(m=>({component:tt("div",{style:"position:absolute;width:100%;height:100%"},tt(wh,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return Qe(()=>{l?.destroy()}),e({open:f,close:d}),(m,v)=>(I(),wt(Zt,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:nt(()=>[_("div",Wv,[n.urls.length>1?(I(),V("div",Xv,me(a.value+1)+" / "+me(n.urls.length),1)):Pe("",!0),_("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[ue(xh,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),[["styles",[""]],["__scopeId","data-v-06f6e07e"]]),B_="",Uv={class:"page"},qv={class:"header"},Zv={class:"main"},Kv={class:"main-scroll"},Qv={class:"footer"},Jv=ae(oe({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(s,{expose:e,emit:t}){return _g(s.designWidth),e({}),(i,r)=>(I(),V("div",Uv,[_("header",qv,[ze(i.$slots,"header",{},void 0,!0)]),_("div",Zv,[_("div",Kv,[ze(i.$slots,"main",{},void 0,!0)])]),_("footer",Qv,[ze(i.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
135
- `]],["__scopeId","data-v-20686fd2"]]),ey=ae(oe({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(s,{expose:e,emit:t}){const n=s,i=kt({}),r=kt({});function o(){switch(xn(i),xn(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(),Qe(()=>{}),e({}),(a,l)=>(I(),V("div",{class:"layout-center",style:M(i)},[_("div",{style:M(r)},[ze(a.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-db9c6bab]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
136
- `]],["__scopeId","data-v-db9c6bab"]]),ty={class:"overlay-content",style:M(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},sy=oe({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:xi(j.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:e,emit:t}){const n=s,i=P();function r(o){n.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return Ee(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),e({}),(o,a)=>n.visible?(I(),V("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:M([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[_("div",ty,[ze(o.$slots,"default",{},void 0,!0)])],4)):Pe("",!0)}}),Br=ae(sy,[["styles",[""]],["__scopeId","data-v-c75aa932"]]),ny=(s=>(Ws("data-v-1ca4c8cb"),s=s(),Xs(),s))(()=>_("div",null,null,-1)),En=ae(oe({customOptions:{Overlay:rn},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;const a=kt({}),l=kt({});function c(){switch(xn(a),xn(l),n.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}Ee(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new Je,h=(C=!0)=>{!o||!r.value||(C?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{v()}}))};Ee(r,()=>{r.value&&h(!0)},{});const f=P(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?v():h(!1)}function v(){f.value=!1,i("close")}function b(C){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(C.target)&&n.closeWhenClickOverlay&&v():r.value&&!r.value.contains(C.target)&&n.closeWhenClickOverlay&&m()}return e({open:d,close:m}),(C,O)=>(I(),wt(rn,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:nt(()=>[_("div",{class:"pop-parent",style:M([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[_("div",{ref_key:"pop",ref:r,class:"pop",style:M([{position:"absolute","z-index":"3000"},l])},[ze(C.$slots,"default",{},()=>[ny],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-1ca4c8cb"]]),iy=(s=>(Ws("data-v-8d198707"),s=s(),Xs(),s))(()=>_("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Sh=ae(oe({customOptions:{Pop:Zt,Button:it},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const e=s,t=P(),n=P(),i=P(),r=kt({left:"0",top:"0"});Ee(n,()=>{o()}),Ee(i,()=>{o()});function o(){if(!n.value||!i.value)return;const l=da(),c=n.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+e.gap,m=c.y;d=Math.max(e.gap,Math.min(d,l.width-h-e.gap)),m=Math.max(e.gap,Math.min(m,l.height-f-e.gap)),r.left=`${d}px`,r.top=`${m}px`}function a(){t.value.open()}return(l,c)=>(I(),V(je,null,[_("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[ze(l.$slots,"button",{},()=>[ue(it,null,{default:nt(()=>[He("popover-default-button")]),_:1})],!0)],512),ue(Zt,{ref_key:"popRef",ref:t,"direction-from":"absolute",isGlobal:e.isGlobal},{default:nt(()=>[_("div",{ref_key:"popoverPanelRef",ref:i,style:M([{display:"inline-block",position:"absolute"},r])},[ze(l.$slots,"panel",{},()=>[iy],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),ry={class:"dialog-parent"},oy={key:0,class:"title"},ay={key:0,class:"title-inner truncate"},ly={class:"custom-content"},cy={class:"custom-content-default"},uy={key:1,class:"btns"},jr=ae(oe({customOptions:{Overlay:rn,Pop:Zt,Icon:bs,Button:it},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(""),a=P(""),l=P(!1),c=P(""),u=P("");let h,f,d;function m(O){o.value=O?.title||"",a.value=O?.content||"",l.value=typeof O?.showClose=="boolean"?O?.showClose:!1,c.value=O?.cancelText||"",u.value=O?.confirmText||"",r.value.open(),h=O?.onClose,f=O?.onCancel,d=O?.onConfirm,i("open")}function v(){r.value.close(),h?.(),i("close")}function b(){v(),f?.(),i("cancel")}function C(){v(),d?.(),i("confirm")}return e({open:m,close:v}),(O,$)=>(I(),wt(Zt,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:nt(()=>[_("div",ry,[_("div",{class:"dialog",style:M({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(I(),V("div",oy,[o.value?(I(),V("div",ay,me(o.value),1)):Pe("",!0),l.value?(I(),V("div",{key:1,class:"close",onClick:v},[ue(bs,{icon:"ic:baseline-close",color:ke(j).colorGrayCC},null,8,["color"])])):Pe("",!0)])):Pe("",!0),_("div",ly,[ze(O.$slots,"default",{},()=>[_("div",cy,me(a.value),1)],!0)]),c.value||u.value?(I(),V("div",uy,[c.value?(I(),wt(it,{key:0,onClick:b,class:"btn",bgColor:ke(j).colorGrayE6,borderColor:ke(j).colorGrayE6,fontColor:ke(j).colorGray33,borderRadius:"0"},{default:nt(()=>[He(me(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Pe("",!0),u.value?(I(),wt(it,{key:1,onClick:C,class:"btn",borderRadius:"0"},{default:nt(()=>[He(me(u.value),1)]),_:1})):Pe("",!0)])):Pe("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-8c45bc83]{display:flex;justify-content:center;align-items:center}.dialog[data-v-8c45bc83]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-8c45bc83]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-8c45bc83]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-8c45bc83]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-8c45bc83]{font-size:16px;word-break:break-all}.custom-content-default[data-v-8c45bc83]{padding:1em}.btns[data-v-8c45bc83]{display:flex;justify-content:center}.btn[data-v-8c45bc83]{flex:1 1 auto;border-radius:0}
137
- `]],["__scopeId","data-v-8c45bc83"]]),hy={class:"loading"},dy={class:"icon"},fy={style:{width:"8em"}},py={key:0,class:"content"},kh=ae(oe({customOptions:{Overlay:rn,Pop:Zt,Dialog:Lr,Loading8:dh},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(I(),wt(Lr,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:nt(()=>[_("div",hy,[_("div",dy,[ze(c.$slots,"default",{},()=>[_("div",fy,[ue(dh)])],!0)]),o.value?(I(),V("div",py,me(o.value),1)):Pe("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-8a5155ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-8a5155ef]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-8a5155ef]{font-size:1em;margin-top:-1em;margin-bottom:1em}
138
- `]],["__scopeId","data-v-8a5155ef"]]),my={class:"toast"},gy={class:"content"},Eh=ae(oe({customOptions:{Overlay:rn,Pop:Zt,Dialog:Lr},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return e({open:a,close:l}),(c,u)=>(I(),wt(Lr,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:nt(()=>[_("div",my,[_("div",gy,me(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.toast[data-v-9b0eec22]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-9b0eec22]{font-size:1em}
139
- `]],["__scopeId","data-v-9b0eec22"]]),vy={class:"tabs"},yy=["onClick"],by={class:"content"},_y=ae(oe({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(n.initIndex),o=kt([]),a=P(),l=P(0),c=P(0),u=P(0),h=P([]),f=[],d=Af(),m=d.default&&d.default();m&&(di(o,m),C(r.value));const v=($,S)=>{if($){if(f.push({index:S,el:$}),f.length<o.length)return;h.value=f}};Ee([a,h],()=>{b()});function b(){if(a.value&&h.value.length){const $=a.value.getBoundingClientRect(),S=h.value[r.value].el.getBoundingClientRect();l.value=S.x-$.x,c.value=S.y-$.y+S.height-2,u.value=S.width}}function C($){r.value=$,i("changedIndex",$),b(),O.value.goto($)}const O=P();return Ee(O,()=>{O.value&&O.value.reset(n.pages,()=>{O.value.goto(n.initIndex)})}),e({}),($,S)=>(I(),V("div",vy,[_("div",{class:"header",ref_key:"headerRef",ref:a},[(I(!0),V(je,null,St(n.labels,(Y,L)=>(I(),V("div",{key:Y,class:_t(L==r.value?"active":""),onClick:H=>C(L)},[_("div",{ref_for:!0,ref:H=>v(H,L)},me(Y),513)],10,yy))),128)),_("div",{class:"indicator",style:M({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),_("div",by,[ue(xh,{ref_key:"routesRef",ref:O,direction:"rightToLeft",duration:200},null,512)])]))}}),[["styles",[`.tabs[data-v-d151e665]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-d151e665]{flex:1 1 auto}.header[data-v-d151e665]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-d151e665]{color:#5a82f0}.header>div[data-v-d151e665]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-d151e665]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-d151e665]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
140
- `]],["__scopeId","data-v-d151e665"]]),xy=["width","height"],wy=oe({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:e,emit:t}){const n=s;let i=()=>{};const r=P();return Ee(r,()=>{if(!r.value)return;const o=new ft(r.value),a=new $a(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{Cn.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),e({download:()=>i()}),(o,a)=>(I(),V("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:M([`border: 1px solid ${o.borderColor}`])},null,12,xy))}}),La=ae(oe({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);Je.toTween({width:c},{width:u},{duration:Math.abs(u-c)*n.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return e({start:o,goto:a}),(l,c)=>(I(),V("div",{class:"wrap",style:M({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[_("div",{class:"bar",style:M({width:r.value+"%",backgroundColor:n.progressColor})},me(n.showText?r.value+"%":""),5)],4))}}),[["styles",[`.wrap[data-v-e178311c]{position:relative;overflow:hidden}.bar[data-v-e178311c]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
141
- `]],["__scopeId","data-v-e178311c"]]),Cy={class:"wrap",style:{}},Th=ae(oe({customOptions:{ProgressBar:Gr},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",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:e,emit:t}){const n=s,i=t,r=P(),o=()=>{const a=pg();i("progress",a),r.value?.goto(a)};return ft.page.registerGlobalScrollChange(o),Qe(()=>{ft.page.removeGlobalScrollChange(o)}),e({}),(a,l)=>(I(),V("div",Cy,[ue(Gr,{ref_key:"bar",ref:r,width:"100%",height:"100%",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"])]))}}),[["styles",[`.wrap[data-v-5084cdef]{position:relative;overflow:hidden;width:100%;height:100%}
142
- `]],["__scopeId","data-v-5084cdef"]]),Sy=["fill"],ky=["fill"],Ey=oe({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{style:M(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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:e.color},null,8,Sy),_("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:e.color},null,8,ky)],4))}}),dx="",Oh=ae(Ey,[["__scopeId","data-v-987aed3d"]]),Yr=s=>(Ws("data-v-330c7adc"),s=s(),Xs(),s),Ty=Yr(()=>_("div",{class:"title"},"车牌颜色",-1)),Oy={class:"plate-types"},Py=["onClick"],Iy=Yr(()=>_("div",{class:"title"},"车牌号码",-1)),Dy={class:"plate-numbers"},Ny=Yr(()=>_("div",{class:"dot"},"·",-1)),$y=["onClick"],My=Yr(()=>_("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Ph=ae(oe({customOptions:{SVGCheck:Oh},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:e,emit:t}){const n=s,i=t,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=P(0),a=kt([]),l=P(-1);function c(){yh({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{di(a,f),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=r[f].completePlateLength&&a.length<r[f].completePlateLength?(l.value=a.length,c(),i("clear")):di(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{di(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return e({}),(f,d)=>(I(),V("div",zo(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[Ty,_("div",Oy,[(I(),V(je,null,St(r,(m,v)=>_("div",{key:v,class:_t(v==o.value?"checked":""),onClick:b=>u(v)},[_("div",{style:M(m.style)},null,4),_("div",null,me(m.name),1),_("div",null,[ue(Oh,{color:"#ffffff",width:"0.14rem"})])],10,Py)),64))]),Iy,_("div",Dy,[_("div",{onClick:d[0]||(d[0]=m=>h(0)),class:_t(l.value==0?"current":"")},me(a[0]),3),_("div",{onClick:d[1]||(d[1]=m=>h(1)),class:_t(l.value==1?"current":"")},me(a[1]),3),Ny,(I(!0),V(je,null,St(r[o.value].completePlateLength-2,m=>(I(),V("div",{key:m,class:_t(m+1==l.value?"current":""),onClick:v=>h(m+1)},me(a[m+1]),11,$y))),128))]),My],16))}}),[["styles",[`.plate-mobile[data-v-330c7adc]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-330c7adc]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-330c7adc]{display:flex;justify-content:center}.plate-types>div[data-v-330c7adc]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-330c7adc]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-330c7adc]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-330c7adc]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-330c7adc]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-330c7adc]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-330c7adc]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-330c7adc]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-330c7adc]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-types>div.checked[data-v-330c7adc]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(3){display:block}.plate-numbers[data-v-330c7adc]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-330c7adc]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-330c7adc]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-numbers>div.dot[data-v-330c7adc]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-330c7adc]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
143
- `]],["__scopeId","data-v-330c7adc"]]),Ay=["data-number"],Ry=["data-number","data-unactive"],Vy=["data-number"],Ly=["data-number","data-unactive"],za=ae(oe({customOptions:{Pop:Zt,SVGCleanUp:Ra},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(0),a=kt([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&u()}Ee(()=>[...n.initPlates],()=>{di(a,n.initPlates),l()},{immediate:!0});const c=()=>{r.value.open(),i("open")},u=()=>{r.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},f=C=>{if(C.target.dataset.unactive||"")return;let $=C.target.dataset.number;$&&(a.push($),l(),i("plates",a))};e({open:c,close:u});const d=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],v=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],b=["港","澳","学","警","使","领","挂","应","急"];return(C,O)=>(I(),wt(Zt,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:nt(()=>[_("div",{class:"popup-plate",style:M({paddingBottom:ke(j).safeAreaBottom})},[_("div",null,[_("div",{onClick:u},"关闭")]),_("div",{class:_t(["step",o.value==0?"":"hide"])},[(I(),V(je,null,St(d,$=>_("div",{key:$,class:"popitem",onClick:f,"data-number":$},me($),9,Ay)),64)),_("div",{class:"popitem popitem-clear",onClick:h},[ue(Ra,{width:"16px"})])],2),_("div",{class:_t(["step",o.value!=0?"":"hide"])},[(I(),V(je,null,St(m,$=>_("div",{key:$,class:_t(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":$,"data-unactive":o.value!=2?"unactive":""},me($),11,Ry)),64)),(I(),V(je,null,St(v,$=>_("div",{key:$,class:"popitem",onClick:f,"data-number":$},me($),9,Vy)),64)),(I(),V(je,null,St(b,$=>_("div",{key:$,class:_t(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":$,"data-unactive":o.value!=2?"unactive":""},me($),11,Ly)),64)),_("div",{class:"popitem popitem-clear",onClick:h},[ue(Ra,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-7fa8a410]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-7fa8a410]{display:none!important}.popup-plate>div[data-v-7fa8a410]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-7fa8a410]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-7fa8a410]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-7fa8a410]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-7fa8a410]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-7fa8a410]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-7fa8a410]{background-color:#eee;display:flex;justify-content:center;align-items:center}
144
- `]],["__scopeId","data-v-7fa8a410"]]),zy={class:"parent"},Fy=ae(oe({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:e,emit:t}){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 f=i.filter(d=>d.name===h);return f.length?f[0]:o("未知")}const a=r(n.plate),l=P(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 e({}),(h,f)=>(I(),V("div",zy,[_("div",{class:_t(["leading",n.displayType]),style:M(l.value.style)},me(l.value.name),7),_("div",{class:"text",style:M({color:ke(c),"font-size":ke(u)})},me(ke(a)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
145
- `]],["__scopeId","data-v-5a5145f8"]]),Gy=`.resize-observer[data-v-16da9fc4]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-16da9fc4] object{position:absolute;top:0;left:0;height:100%;width:100%;display:block;overflow:hidden;pointer-events:none;z-index:-1}
146
- `,By={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",fa&&this.$el.appendChild(s),s.data="about:blank",fa||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&&(!fa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},jy={class:"resize-observer",tabindex:"-1"};function Yy(s,e,t,n,i,r){return I(),V("div",jy)}const Hy=ae(By,[["render",Yy],["styles",[Gy]],["__scopeId","data-v-16da9fc4"]]),Wy=ae(oe({__name:"MapTianditu.ce",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:e,emit:t}){const n=s,i=P(n.mapWidth),r=P(n.mapHeight);let o;const a=P();return Ee(a,()=>{a.value&&(o=new ft(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),Us(()=>{K.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new c0(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),Qe(()=>{o.destroy()}),e({}),(l,c)=>(I(),V("div",zo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[ze(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
147
- `]],["__scopeId","data-v-7b13fce1"]]);var Ti=function(){var s=0,e=document.createElement("div");e.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",e.addEventListener("click",function(u){u.preventDefault(),n(++s%e.children.length)},!1);function t(u){return e.appendChild(u.dom),u}function n(u){for(var h=0;h<e.children.length;h++)e.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=t(new Ti.Panel("FPS","#0ff","#002")),l=t(new Ti.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=t(new Ti.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:e,addPanel:t,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:e,setMode:n}};Ti.Panel=function(s,e,t){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,f=15*o,d=74*o,m=30*o,v=document.createElement("canvas");v.width=a,v.height=l,v.style.cssText="width:80px;height:48px";var b=v.getContext("2d");return b.font="bold "+9*o+"px Helvetica,Arial,sans-serif",b.textBaseline="top",b.fillStyle=t,b.fillRect(0,0,a,l),b.fillStyle=e,b.fillText(s,c,u),b.fillRect(h,f,d,m),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h,f,d,m),{dom:v,update:function(C,O){n=Math.min(n,C),i=Math.max(i,C),b.fillStyle=t,b.globalAlpha=1,b.fillRect(0,0,a,f),b.fillStyle=e,b.fillText(r(C)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),b.drawImage(v,h+o,f,d-o,m,h,f,d-o,m),b.fillRect(h+d-o,f,o,m),b.fillStyle=t,b.globalAlpha=.9,b.fillRect(h+d-o,f,o,r((1-C/O)*m))}}};const Xy=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(s,{expose:e}){const t=P();return Us(()=>{const n=new Ti,i=n.domElement.style;i.margin="1em",t.value.appendChild(n.domElement),We.run(()=>(n.update(),!0))}),e({}),(n,i)=>(I(),V("div",{ref_key:"containerRef",ref:t},null,512))}}),Uy=["width","height"],qy=oe({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(),a=P(0),l=P(0);let c;Ee(r,()=>{r.value&&(c=new ft(r.value,!1),c.on("resize",(v,b)=>{const C=da();a.value=Math.min(v,C.width),l.value=Math.min(b,C.height),d()}),c.start())}),Ee(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new ft(o.value,!1),u.on("resize",(v,b)=>{h=new $a(u),i("resize",v,b),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return Qe(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>o.value,getCanvas:m}),(v,b)=>(I(),V("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[_("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:M({backgroundColor:n.bgColor})},null,12,Uy)],512))}}),wx="",ts=ae(qy,[["__scopeId","data-v-d6a232ce"]]),Zy={class:"ease-graph"},Fa=ae(oe({customOptions:{Button:it,Canvas:ts},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",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:e,emit:t}){const n=s,i=t,r=P();let o;Ee(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};let f=!1,d=!1;Je.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),Je.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.easeFunction,onUpdate:()=>{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},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return Qe(()=>{o.app.off("showInParent",l)}),e({start:l}),(u,h)=>(I(),V("div",Zy,[_("div",null,"缓动:"+me(u.easeName),1),_("div",null,[_("div",null,[ue(it,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",null,[ue(it,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:nt(()=>[He(" 选择 ")]),_:1},8,["stylePattern"])])]),_("div",{style:M({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-c0b4dba9]{display:inline-block}.ease-graph>div[data-v-c0b4dba9]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-c0b4dba9]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-c0b4dba9]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-c0b4dba9]{margin-left:10px}
148
- `]],["__scopeId","data-v-c0b4dba9"]]),Ky={class:"ease-graph"},Qy=oe({customOptions:{Button:it,Canvas:ts},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:e,emit:t}){const n=s,i=t,r=P();let o;Ee(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};let f=!1,d=!1;Je.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),Je.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.easeFunction,onUpdate:()=>{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},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return Qe(()=>{o.app.off("showInParent",l)}),e({start:l}),(u,h)=>(I(),V("div",Ky,[_("div",null,"缓动:"+me(u.easeName),1),_("div",null,[_("div",null,[ue(it,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",null,[ue(it,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:nt(()=>[He(" 选择 ")]),_:1},8,["stylePattern"])])]),_("div",{style:M({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),kx="",Ih=ae(Qy,[["__scopeId","data-v-5c401464"]]),Jy=2e3,Dh=ae(oe({customOptions:{EaseGraphDisplay:Ih},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:he.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:he.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:he.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:he.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:he.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:he.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:he.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:he.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:he.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:he.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:he.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:he.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:he.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:he.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:he.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:he.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:he.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:he.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:he.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:he.Easing.Circular.In},{easeName:"CircularOut",easeFunction:he.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:he.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:he.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:he.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:he.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:he.Easing.Back.In},{easeName:"BackOut",easeFunction:he.Easing.Back.Out},{easeName:"BackInOut",easeFunction:he.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:he.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:he.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:he.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:he.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:he.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:he.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:he.Easing.createStep(4)},{easeName:"8 steps",easeFunction:he.Easing.createStep(8)},{easeName:"12 steps",easeFunction:he.Easing.createStep(12)},{easeName:"16 steps",easeFunction:he.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:he.Easing.createNoisyEasing(he.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:he.Easing.swing},{easeName:"causeSeizures",easeFunction:he.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:e,emit:t}){const n=s,i=t,r={};function o(f,d){f&&(r[d]={el:f})}const a=new ou(10);function l(f){a.addTask(()=>(r[f].el.start(),new Promise(d=>{r[f].resolve=d})))}function c(f){r[f].resolve?.()}const u=P("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",he.Easing.Linear.None),e({}),(f,d)=>(I(),V("div",null,[(I(!0),V(je,null,St(n.easeList,m=>(I(),V("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(I(),wt(Ih,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:Jy,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:v=>o(v,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):Pe("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
149
- `]],["__scopeId","data-v-b3ce4b26"]]),e1={class:"interpolation-graph"},Nh=1/6,$h=5/6,Ga=ae(oe({customOptions:{Button:it,Canvas:ts},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;Ee(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*Nh,l=n.canvasHeight/2,c=[n.canvasWidth*$h,n.canvasWidth/2],u=[n.canvasHeight*Nh,n.canvasHeight*$h],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!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 v=0;v<c.length;v++)o.ctx.fillRect(c[v]-2,u[v]-2,4,4);let b=!1,C=!1;const O={x:a,y:l,old:{x:a,y:l}};Je.toTween(O,{x:c,y:u},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{b=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const $={x:a,y:l,old:{x:a,y:l}};Je.toTween($,{x:h,y:f},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{C=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return Qe(()=>{o.app.off("showInParent",m)}),e({start:m}),(v,b)=>(I(),V("div",e1,[_("div",null,[He(" 插值:"+me(v.interpolationName)+" ",1),ue(it,{stylePattern:"outline",height:"32px",onClick:m},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",{style:M({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-2bc9c320]{display:inline-block}.interpolation-graph>div[data-v-2bc9c320]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
150
- `]],["__scopeId","data-v-2bc9c320"]]),t1={class:"interpolation-graph"},Mh=1/6,Ah=5/6,s1=oe({customOptions:{Button:it,Canvas:ts},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();let o;Ee(r,()=>{r.value&&r.value.getCanvas().then(v=>{o=v,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*Mh,l=n.canvasHeight/2,c=[n.canvasWidth*Ah,n.canvasWidth/2],u=[n.canvasHeight*Mh,n.canvasHeight*Ah],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!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 v=0;v<c.length;v++)o.ctx.fillRect(c[v]-2,u[v]-2,4,4);let b=!1,C=!1;const O={x:a,y:l,old:{x:a,y:l}};Je.toTween(O,{x:c,y:u},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{b=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const $={x:a,y:l,old:{x:a,y:l}};Je.toTween($,{x:h,y:f},{duration:n.easeDuration,easeFunction:he.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:S=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(S.old.x,S.old.y),o.ctx.lineTo(S.x,S.y),o.ctx.closePath(),o.ctx.stroke(),S.old.x=S.x,S.old.y=S.y},onComplete:()=>{C=!0,b&&C&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return Qe(()=>{o.app.off("showInParent",m)}),e({start:m}),(v,b)=>(I(),V("div",t1,[_("div",null,[He(" 插值:"+me(v.interpolationName)+" ",1),ue(it,{stylePattern:"outline",height:"32px",onClick:m},{default:nt(()=>[He(" 开始 ")]),_:1})]),_("div",{style:M({width:v.canvasWidth+"px",height:v.canvasHeight+"px"})},[ue(ts,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Ix="",Rh=ae(s1,[["__scopeId","data-v-eb70b61a"]]),n1=2e3,Vh=ae(oe({customOptions:{InterpolationGraphDisplay:Rh},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:he.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:he.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:he.Interpolation.CatmullRom}]}},setup(s,{expose:e,emit:t}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new ou(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return e({}),(c,u)=>(I(),V("div",null,[(I(!0),V(je,null,St(n.interpolationList,h=>(I(),V("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ue(Rh,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:n1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
151
- `]],["__scopeId","data-v-7128e350"]]),Lh=ae(oe({__name:"SVG.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P();Ee(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new ft(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new Ju(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return Qe(()=>{o?.destroy()}),e({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(I(),V("div",{ref_key:"svgRef",ref:r,class:"svg",style:M({backgroundColor:n.bgColor})},null,4))}}),[["styles",[`.svg[data-v-0cf49925]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
152
- `]],["__scopeId","data-v-0cf49925"]]),i1=["width","height"],Hr=ae(oe({__name:"Canvas.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(),o=P(),a=P(0),l=P(0);let c;Ee(r,()=>{r.value&&(c=new ft(r.value,!1),c.on("resize",(v,b)=>{const C=da();a.value=Math.min(v,C.width),l.value=Math.min(b,C.height),d()}),c.start())}),Ee(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new ft(o.value,!1),u.on("resize",(v,b)=>{h=new $a(u),i("resize",v,b),f?.(h)}),u.start())}function m(){return new Promise(v=>{if(h&&u.width&&u.height)return v(h);f=v})}return Qe(()=>{u?.destroy(),c?.destroy()}),e({getCanvasElement:()=>o.value,getCanvas:m}),(v,b)=>(I(),V("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[_("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:M({backgroundColor:n.bgColor})},null,12,i1)],512))}}),[["styles",[`.canvas-wrap[data-v-9f469399]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
153
- `]],["__scopeId","data-v-9f469399"]]),r1=["max","min","step","value","autofocus"],o1={key:0,class:"label"},a1=oe({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:j.colorPrimary},barColor:{default:j.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(n.defaultValue),o=P(Rt((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=Rt(u.target.value,2),o.value=Rt((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
131
+ `,onClick:()=>{const{x:zt,y:Kt,width:Qt,height:ne}=o.value.getBoundingClientRect();bt(v.x,v.y,v.width,v.height,zt,Kt,Qt,ne,()=>{At(),g=!1})}},yt));return bt}function C(){if(!r.value||!n.openImageViewWhenClick)return;g=!0;const{x:j,y:L,width:X,height:mt}=o.value.getBoundingClientRect();k=M(j,L,X,mt)}return ee(()=>{m?.destroy()}),t({}),(j,L)=>(O(),R("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:$({backgroundColor:n.bgColor}),onClick:C},[_("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:$({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),cx="",Th=rt(c1,[["__scopeId","data-v-34d166d5"]]),u1={style:{position:"absolute",width:"100%",height:"100%"}},h1={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Oh=rt(st({customOptions:{Image:Th},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]}},setup(s,{expose:t,emit:e}){const n=s,i=P(),r=P(),o=P(),a=P(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}kt(r,()=>{r.value&&(l?.destroy(),l=new ve(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),kt(o,()=>{o.value&&o.value.reset(n.urls.map(m=>({component:ae("div",{style:"position:absolute;width:100%;height:100%"},ae(Th,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return ee(()=>{l?.destroy()}),t({open:f,close:d}),(m,g)=>(O(),Ht(Je,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:Ft(()=>[_("div",u1,[n.urls.length>1?(O(),R("div",h1,pt(a.value+1)+" / "+pt(n.urls.length),1)):It("",!0),_("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[ut(Eh,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),[["styles",[""]],["__scopeId","data-v-06f6e07e"]]),dx="",d1={class:"page"},f1={class:"header"},p1={class:"main"},m1={class:"main-scroll"},g1={class:"footer"},y1=rt(st({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return V0(s.designWidth),t({}),(i,r)=>(O(),R("div",d1,[_("header",f1,[Pt(i.$slots,"header",{},void 0,!0)]),_("div",p1,[_("div",m1,[Pt(i.$slots,"main",{},void 0,!0)])]),_("footer",g1,[Pt(i.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-20686fd2]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-20686fd2]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-20686fd2]{flex:1 1 auto;width:100%}.main-scroll[data-v-20686fd2]>:nth-child(1){min-height:100%}.header[data-v-20686fd2],.footer[data-v-20686fd2]{flex:0 0 auto}
132
+ `]],["__scopeId","data-v-20686fd2"]]),v1=rt(st({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=oe({}),r=oe({});function o(){switch(wn(i),wn(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(),ee(()=>{}),t({}),(a,l)=>(O(),R("div",{class:"layout-center",style:$(i)},[_("div",{style:$(r)},[Pt(a.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-db9c6bab]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
133
+ `]],["__scopeId","data-v-db9c6bab"]]),b1={class:"overlay-content",style:$(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},_1=st({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean},bgColor:{default:Ci(Y.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=P();function r(o){n.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):i.value&&o&&(i.value.parentElement.style.overflow="hidden")}return kt(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),t({}),(o,a)=>n.visible?(O(),R("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:$([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[_("div",b1,[Pt(o.$slots,"default",{},void 0,!0)])],4)):It("",!0)}}),Hr=rt(_1,[["styles",[""]],["__scopeId","data-v-c75aa932"]]),x1=(s=>(Ds("data-v-1ca4c8cb"),s=s(),$s(),s))(()=>_("div",null,null,-1)),Tn=rt(st({customOptions:{Overlay:on},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},openDurTime:{default:200},closeDurTime:{default:150},isGlobal:{type:Boolean,default:!0},overlayBgColor:{}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P();let o;const a=oe({}),l=oe({});function c(){switch(wn(a),wn(l),n.directionFrom){case"absolute":o="",a.display="block",l.width="100%",l.height="100%";break;case"top":o="slideDown",a.display="block",l.width="100%",l.top="0",l.left="0";break;case"left":o="slideRight",a.display="block",l.height="100%",l.top="0",l.left="0";break;case"right":o="slideLeft",a.display="block",l.height="100%",l.top="0",l.right="0";break;case"bottom":o="slideUp",a.display="block",l.width="100%",l.bottom="0",l.left="0";break;case"center":default:o="popIn",a.display="flex",a.justifyContent="center",a.alignItems="center";break}}kt(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new se,h=(k=!0)=>{!o||!r.value||(k?(u.fromDOM(r.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{i("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{g()}}))};kt(r,()=>{r.value&&h(!0)},{});const f=P(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?g():h(!1)}function g(){f.value=!1,i("close")}function v(k){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(k.target)&&n.closeWhenClickOverlay&&g():r.value&&!r.value.contains(k.target)&&n.closeWhenClickOverlay&&m()}return t({open:d,close:m}),(k,I)=>(O(),Ht(on,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:Ft(()=>[_("div",{class:"pop-parent",style:$([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:v},[_("div",{ref_key:"pop",ref:r,class:"pop",style:$([{position:"absolute","z-index":"3000"},l])},[Pt(k.$slots,"default",{},()=>[x1],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),[["styles",[""]],["__scopeId","data-v-1ca4c8cb"]]),w1=(s=>(Ds("data-v-8d198707"),s=s(),$s(),s))(()=>_("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Ih=rt(st({customOptions:{Pop:Je,Button:de},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const t=s,e=P(),n=P(),i=P(),r=oe({left:"0",top:"0"});kt(n,()=>{o()}),kt(i,()=>{o()});function o(){if(!n.value||!i.value)return;const l=ba(),c=n.value.getBoundingClientRect(),u=i.value.getBoundingClientRect(),h=u.width,f=u.height;let d=c.x+c.width+t.gap,m=c.y;d=Math.max(t.gap,Math.min(d,l.width-h-t.gap)),m=Math.max(t.gap,Math.min(m,l.height-f-t.gap)),r.left=`${d}px`,r.top=`${m}px`}function a(){e.value.open()}return(l,c)=>(O(),R(Bt,null,[_("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[Pt(l.$slots,"button",{},()=>[ut(de,null,{default:Ft(()=>[Wt("popover-default-button")]),_:1})],!0)],512),ut(Je,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:Ft(()=>[_("div",{ref_key:"popoverPanelRef",ref:i,style:$([{display:"inline-block",position:"absolute"},r])},[Pt(l.$slots,"panel",{},()=>[w1],!0)],4)]),_:3},8,["isGlobal"])],64))}}),[["styles",[""]],["__scopeId","data-v-8d198707"]]),k1={class:"dialog-parent"},C1={key:0,class:"title"},S1={key:0,class:"title-inner truncate"},E1={class:"custom-content"},T1={class:"custom-content-default"},O1={key:1,class:"btns"},Wr=rt(st({customOptions:{Overlay:on,Pop:Je,Icon:_s,Button:de},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(""),a=P(""),l=P(!1),c=P(""),u=P("");let h,f,d;function m(I){o.value=I?.title||"",a.value=I?.content||"",l.value=typeof I?.showClose=="boolean"?I?.showClose:!1,c.value=I?.cancelText||"",u.value=I?.confirmText||"",r.value.open(),h=I?.onClose,f=I?.onCancel,d=I?.onConfirm,i("open")}function g(){r.value.close(),h?.(),i("close")}function v(){g(),f?.(),i("cancel")}function k(){g(),d?.(),i("confirm")}return t({open:m,close:g}),(I,M)=>(O(),Ht(Je,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:Ft(()=>[_("div",k1,[_("div",{class:"dialog",style:$({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(O(),R("div",C1,[o.value?(O(),R("div",S1,pt(o.value),1)):It("",!0),l.value?(O(),R("div",{key:1,class:"close",onClick:g},[ut(_s,{icon:"ic:baseline-close",color:wt(Y).colorGrayCC},null,8,["color"])])):It("",!0)])):It("",!0),_("div",E1,[Pt(I.$slots,"default",{},()=>[_("div",T1,pt(a.value),1)],!0)]),c.value||u.value?(O(),R("div",O1,[c.value?(O(),Ht(de,{key:0,onClick:v,class:"btn",bgColor:wt(Y).colorGrayE6,borderColor:wt(Y).colorGrayE6,fontColor:wt(Y).colorGray33,borderRadius:"0"},{default:Ft(()=>[Wt(pt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):It("",!0),u.value?(O(),Ht(de,{key:1,onClick:k,class:"btn",borderRadius:"0"},{default:Ft(()=>[Wt(pt(u.value),1)]),_:1})):It("",!0)])):It("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-8c45bc83]{display:flex;justify-content:center;align-items:center}.dialog[data-v-8c45bc83]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-8c45bc83]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-8c45bc83]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-8c45bc83]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-8c45bc83]{font-size:16px;word-break:break-all}.custom-content-default[data-v-8c45bc83]{padding:1em}.btns[data-v-8c45bc83]{display:flex;justify-content:center}.btn[data-v-8c45bc83]{flex:1 1 auto;border-radius:0}
134
+ `]],["__scopeId","data-v-8c45bc83"]]),I1={class:"loading"},P1={class:"icon"},D1={style:{width:"8em"}},$1={key:0,class:"content"},Ph=rt(st({customOptions:{Overlay:on,Pop:Je,Dialog:Yr,Loading8:yh},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P("");function a(c){o.value=c||"",r.value.open(),i("open")}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(O(),Ht(Yr,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:Ft(()=>[_("div",I1,[_("div",P1,[Pt(c.$slots,"default",{},()=>[_("div",D1,[ut(yh)])],!0)]),o.value?(O(),R("div",$1,pt(o.value),1)):It("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.loading[data-v-8a5155ef]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-8a5155ef]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-8a5155ef]{font-size:1em;margin-top:-1em;margin-bottom:1em}
135
+ `]],["__scopeId","data-v-8a5155ef"]]),N1={class:"toast"},M1={class:"content"},Dh=rt(st({customOptions:{Overlay:on,Pop:Je,Dialog:Yr},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P("");function a(c,u=1500){o.value=c,r.value.open(),i("open"),setTimeout(()=>{l()},u)}function l(){r.value.close(),i("close")}return t({open:a,close:l}),(c,u)=>(O(),Ht(Yr,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:Ft(()=>[_("div",N1,[_("div",M1,pt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),[["styles",[`.toast[data-v-9b0eec22]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-9b0eec22]{font-size:1em}
136
+ `]],["__scopeId","data-v-9b0eec22"]]),R1={class:"tabs"},A1=["onClick"],z1={class:"content"},L1=rt(st({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(n.initIndex),o=oe([]),a=P(),l=P(0),c=P(0),u=P(0),h=P([]),f=[],d=Kf(),m=d.default&&d.default();m&&(mi(o,m),k(r.value));const g=(M,C)=>{if(M){if(f.push({index:C,el:M}),f.length<o.length)return;h.value=f}};kt([a,h],()=>{v()});function v(){if(a.value&&h.value.length){const M=a.value.getBoundingClientRect(),C=h.value[r.value].el.getBoundingClientRect();l.value=C.x-M.x,c.value=C.y-M.y+C.height-2,u.value=C.width}}function k(M){r.value=M,i("changedIndex",M),v(),I.value.goto(M)}const I=P();return kt(I,()=>{I.value&&I.value.reset(n.pages,()=>{I.value.goto(n.initIndex)})}),t({}),(M,C)=>(O(),R("div",R1,[_("div",{class:"header",ref_key:"headerRef",ref:a},[(O(!0),R(Bt,null,Se(n.labels,(j,L)=>(O(),R("div",{key:j,class:he(L==r.value?"active":""),onClick:X=>k(L)},[_("div",{ref_for:!0,ref:X=>g(X,L)},pt(j),513)],10,A1))),128)),_("div",{class:"indicator",style:$({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),_("div",z1,[ut(Eh,{ref_key:"routesRef",ref:I,direction:"rightToLeft",duration:200},null,512)])]))}}),[["styles",[`.tabs[data-v-d151e665]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-d151e665]{flex:1 1 auto}.header[data-v-d151e665]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-d151e665]{color:#5a82f0}.header>div[data-v-d151e665]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-d151e665]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-d151e665]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
137
+ `]],["__scopeId","data-v-d151e665"]]),V1=["width","height"],F1=st({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",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=P();return kt(r,()=>{if(!r.value)return;const o=new ve(r.value),a=new Fa(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{Cn.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(O(),R("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:$([`border: 1px solid ${o.borderColor}`])},null,12,V1))}}),ja=rt(st({__name:"ProgressBar.ce",props:{width:{default:"200px"},height:{default:"10px"},bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},duringTimeGap:{default:50},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);se.toTween({width:c},{width:u},{duration:Math.abs(u-c)*n.duringTimeGap,onStart:()=>{},onUpdate:h=>{r.value=h.width},onComplete:()=>{i("complete",r.value)}}).startAuto()}return t({start:o,goto:a}),(l,c)=>(O(),R("div",{class:"wrap",style:$({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[_("div",{class:"bar",style:$({width:r.value+"%",backgroundColor:n.progressColor})},pt(n.showText?r.value+"%":""),5)],4))}}),[["styles",[`.wrap[data-v-e178311c]{position:relative;overflow:hidden}.bar[data-v-e178311c]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
138
+ `]],["__scopeId","data-v-e178311c"]]),G1={class:"wrap",style:{}},$h=rt(st({customOptions:{ProgressBar:Ur},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",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=P(),o=()=>{const a=N0();i("progress",a),r.value?.goto(a)};return ve.page.registerGlobalScrollChange(o),ee(()=>{ve.page.removeGlobalScrollChange(o)}),t({}),(a,l)=>(O(),R("div",G1,[ut(Ur,{ref_key:"bar",ref:r,width:"100%",height:"100%",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"])]))}}),[["styles",[`.wrap[data-v-5084cdef]{position:relative;overflow:hidden;width:100%;height:100%}
139
+ `]],["__scopeId","data-v-5084cdef"]]),B1=["fill"],Y1=["fill"],j1=st({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{style:$(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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,B1),_("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,Y1)],4))}}),Ax="",Nh=rt(j1,[["__scopeId","data-v-987aed3d"]]),Zr=s=>(Ds("data-v-330c7adc"),s=s(),$s(),s),X1=Zr(()=>_("div",{class:"title"},"车牌颜色",-1)),U1={class:"plate-types"},H1=["onClick"],W1=Zr(()=>_("div",{class:"title"},"车牌号码",-1)),Z1={class:"plate-numbers"},q1=Zr(()=>_("div",{class:"dot"},"·",-1)),K1=["onClick"],Q1=Zr(()=>_("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Mh=rt(st({customOptions:{SVGCheck:Nh},__name:"PlateMobile.ce",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=P(0),a=oe([]),l=P(-1);function c(){kh({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:f=>{mi(a,f),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=f=>{o.value=f,l.value<=r[f].completePlateLength&&a.length<r[f].completePlateLength?(l.value=a.length,c(),i("clear")):mi(a,a.slice(0,r[f].completePlateLength)),r[f].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=f=>{mi(a,a.slice(0,f)),l.value=Math.min(Math.max(0,l.value),f),c(),i("clear")};return t({}),(f,d)=>(O(),R("div",jo(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[X1,_("div",U1,[(O(),R(Bt,null,Se(r,(m,g)=>_("div",{key:g,class:he(g==o.value?"checked":""),onClick:v=>u(g)},[_("div",{style:$(m.style)},null,4),_("div",null,pt(m.name),1),_("div",null,[ut(Nh,{color:"#ffffff",width:"0.14rem"})])],10,H1)),64))]),W1,_("div",Z1,[_("div",{onClick:d[0]||(d[0]=m=>h(0)),class:he(l.value==0?"current":"")},pt(a[0]),3),_("div",{onClick:d[1]||(d[1]=m=>h(1)),class:he(l.value==1?"current":"")},pt(a[1]),3),q1,(O(!0),R(Bt,null,Se(r[o.value].completePlateLength-2,m=>(O(),R("div",{key:m,class:he(m+1==l.value?"current":""),onClick:g=>h(m+1)},pt(a[m+1]),11,K1))),128))]),Q1],16))}}),[["styles",[`.plate-mobile[data-v-330c7adc]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-330c7adc]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-330c7adc]{display:flex;justify-content:center}.plate-types>div[data-v-330c7adc]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-330c7adc]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-330c7adc]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-330c7adc]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-330c7adc]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-330c7adc]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-330c7adc]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-330c7adc]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-330c7adc]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-types>div.checked[data-v-330c7adc]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-330c7adc]:nth-child(3){display:block}.plate-numbers[data-v-330c7adc]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-330c7adc]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-330c7adc]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-330c7adc]{margin-left:.1rem}.plate-numbers>div.dot[data-v-330c7adc]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-330c7adc]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
140
+ `]],["__scopeId","data-v-330c7adc"]]),J1=["data-number"],tv=["data-number","data-unactive"],ev=["data-number"],sv=["data-number","data-unactive"],Xa=rt(st({customOptions:{Pop:Je,SVGCleanUp:Ya},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(0),a=oe([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&u()}kt(()=>[...n.initPlates],()=>{mi(a,n.initPlates),l()},{immediate:!0});const c=()=>{r.value.open(),i("open")},u=()=>{r.value.close(),i("close")},h=()=>{a.pop(),l(),i("plates",a)},f=k=>{if(k.target.dataset.unactive||"")return;let M=k.target.dataset.number;M&&(a.push(M),l(),i("plates",a))};t({open:c,close:u});const d=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],g=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],v=["港","澳","学","警","使","领","挂","应","急"];return(k,I)=>(O(),Ht(Je,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:Ft(()=>[_("div",{class:"popup-plate",style:$({paddingBottom:wt(Y).safeAreaBottom})},[_("div",null,[_("div",{onClick:u},"关闭")]),_("div",{class:he(["step",o.value==0?"":"hide"])},[(O(),R(Bt,null,Se(d,M=>_("div",{key:M,class:"popitem",onClick:f,"data-number":M},pt(M),9,J1)),64)),_("div",{class:"popitem popitem-clear",onClick:h},[ut(Ya,{width:"16px"})])],2),_("div",{class:he(["step",o.value!=0?"":"hide"])},[(O(),R(Bt,null,Se(m,M=>_("div",{key:M,class:he(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":M,"data-unactive":o.value!=2?"unactive":""},pt(M),11,tv)),64)),(O(),R(Bt,null,Se(g,M=>_("div",{key:M,class:"popitem",onClick:f,"data-number":M},pt(M),9,ev)),64)),(O(),R(Bt,null,Se(v,M=>_("div",{key:M,class:he(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":M,"data-unactive":o.value!=2?"unactive":""},pt(M),11,sv)),64)),_("div",{class:"popitem popitem-clear",onClick:h},[ut(Ya,{width:"16px"})])],2)],4)]),_:1},512))}}),[["styles",[`.popup-plate[data-v-7fa8a410]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-7fa8a410]{display:none!important}.popup-plate>div[data-v-7fa8a410]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-7fa8a410]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-7fa8a410]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-7fa8a410]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-7fa8a410]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-7fa8a410]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-7fa8a410]{background-color:#eee;display:flex;justify-content:center;align-items:center}
141
+ `]],["__scopeId","data-v-7fa8a410"]]),nv={class:"parent"},iv=rt(st({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",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 f=i.filter(d=>d.name===h);return f.length?f[0]:o("未知")}const a=r(n.plate),l=P(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,f)=>(O(),R("div",nv,[_("div",{class:he(["leading",n.displayType]),style:$(l.value.style)},pt(l.value.name),7),_("div",{class:"text",style:$({color:wt(c),"font-size":wt(u)})},pt(wt(a)),5)]))}}),[["styles",[`.parent[data-v-5a5145f8]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-5a5145f8]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:2px}.leading.chinese[data-v-5a5145f8]{padding:4px}.leading.dot[data-v-5a5145f8]{font-size:0;width:14px;height:14px;border-radius:50%}.text[data-v-5a5145f8]{margin-left:5px;margin-right:5px;line-height:1}
142
+ `]],["__scopeId","data-v-5a5145f8"]]),rv=`.resize-observer[data-v-16da9fc4]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-16da9fc4] object{position:absolute;top:0;left:0;height:100%;width:100%;display:block;overflow:hidden;pointer-events:none;z-index:-1}
143
+ `,ov={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",_a&&this.$el.appendChild(s),s.data="about:blank",_a||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&&(!_a&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},av={class:"resize-observer",tabindex:"-1"};function lv(s,t,e,n,i,r){return O(),R("div",av)}const cv=rt(ov,[["render",lv],["styles",[rv]],["__scopeId","data-v-16da9fc4"]]),uv=rt(st({__name:"MapTianditu.ce",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=P(n.mapWidth),r=P(n.mapHeight);let o;const a=P();return kt(a,()=>{a.value&&(o=new ve(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),qs(()=>{H.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Og(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),ee(()=>{o.destroy()}),t({}),(l,c)=>(O(),R("div",jo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Pt(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-7b13fce1]{position:relative;width:100%;height:100%}
144
+ `]],["__scopeId","data-v-7b13fce1"]]);var $i=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 $i.Panel("FPS","#0ff","#002")),l=e(new $i.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new $i.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}};$i.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,f=15*o,d=74*o,m=30*o,g=document.createElement("canvas");g.width=a,g.height=l,g.style.cssText="width:80px;height:48px";var v=g.getContext("2d");return v.font="bold "+9*o+"px Helvetica,Arial,sans-serif",v.textBaseline="top",v.fillStyle=e,v.fillRect(0,0,a,l),v.fillStyle=t,v.fillText(s,c,u),v.fillRect(h,f,d,m),v.fillStyle=e,v.globalAlpha=.9,v.fillRect(h,f,d,m),{dom:g,update:function(k,I){n=Math.min(n,k),i=Math.max(i,k),v.fillStyle=e,v.globalAlpha=1,v.fillRect(0,0,a,f),v.fillStyle=t,v.fillText(r(k)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),v.drawImage(g,h+o,f,d-o,m,h,f,d-o,m),v.fillRect(h+d-o,f,o,m),v.fillStyle=e,v.globalAlpha=.9,v.fillRect(h+d-o,f,o,r((1-k/I)*m))}}};const hv=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(s,{expose:t}){const e=P();return qs(()=>{const n=new $i,i=n.domElement.style;i.margin="1em",e.value.appendChild(n.domElement),Zt.run(()=>(n.update(),!0))}),t({}),(n,i)=>(O(),R("div",{ref_key:"containerRef",ref:e},null,512))}}),dv=["width","height"],fv=st({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(),a=P(0),l=P(0);let c;kt(r,()=>{r.value&&(c=new ve(r.value,!1),c.on("resize",(g,v)=>{const k=ba();a.value=Math.min(g,k.width),l.value=Math.min(v,k.height),d()}),c.start())}),kt(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new ve(o.value,!1),u.on("resize",(g,v)=>{h=new Fa(u),i("resize",g,v),f?.(h)}),u.start())}function m(){return new Promise(g=>{if(h&&u.width&&u.height)return g(h);f=g})}return ee(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:m}),(g,v)=>(O(),R("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[_("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:$({backgroundColor:n.bgColor})},null,12,dv)],512))}}),Ux="",ns=rt(fv,[["__scopeId","data-v-d6a232ce"]]),pv={class:"ease-graph"},Ua=rt(st({customOptions:{Button:de,Canvas:ns},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",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=P();let o;kt(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};let f=!1,d=!1;se.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),se.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.easeFunction,onUpdate:()=>{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},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return ee(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(O(),R("div",pv,[_("div",null,"缓动:"+pt(u.easeName),1),_("div",null,[_("div",null,[ut(de,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Ft(()=>[Wt(" 开始 ")]),_:1})]),_("div",null,[ut(de,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Ft(()=>[Wt(" 选择 ")]),_:1},8,["stylePattern"])])]),_("div",{style:$({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ut(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-c0b4dba9]{display:inline-block}.ease-graph>div[data-v-c0b4dba9]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-c0b4dba9]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-c0b4dba9]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-c0b4dba9]{margin-left:10px}
145
+ `]],["__scopeId","data-v-c0b4dba9"]]),mv={class:"ease-graph"},gv=st({customOptions:{Button:de,Canvas:ns},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=P();let o;kt(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};let f=!1,d=!1;se.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,onComplete:()=>{f=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto(),se.toTween(u,{y:n.graphVerticalGap},{duration:n.easeDuration,easeFunction:n.easeFunction,onUpdate:()=>{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},onComplete:()=>{d=!0,f&&d&&(i("onCompleted",n.easeName),a=!1)}}).startAuto()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return ee(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(O(),R("div",mv,[_("div",null,"缓动:"+pt(u.easeName),1),_("div",null,[_("div",null,[ut(de,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Ft(()=>[Wt(" 开始 ")]),_:1})]),_("div",null,[ut(de,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Ft(()=>[Wt(" 选择 ")]),_:1},8,["stylePattern"])])]),_("div",{style:$({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ut(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Zx="",Rh=rt(gv,[["__scopeId","data-v-5c401464"]]),yv=2e3,Ah=rt(st({customOptions:{EaseGraphDisplay:Rh},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:dt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:dt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:dt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:dt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:dt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:dt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:dt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:dt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:dt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:dt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:dt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:dt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:dt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:dt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:dt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:dt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:dt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:dt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:dt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:dt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:dt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:dt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:dt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:dt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:dt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:dt.Easing.Back.In},{easeName:"BackOut",easeFunction:dt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:dt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:dt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:dt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:dt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:dt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:dt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:dt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:dt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:dt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:dt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:dt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:dt.Easing.createNoisyEasing(dt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:dt.Easing.swing},{easeName:"causeSeizures",easeFunction:dt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(f,d){f&&(r[d]={el:f})}const a=new hu(10);function l(f){a.addTask(()=>(r[f].el.start(),new Promise(d=>{r[f].resolve=d})))}function c(f){r[f].resolve?.()}const u=P("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",dt.Easing.Linear.None),t({}),(f,d)=>(O(),R("div",null,[(O(!0),R(Bt,null,Se(n.easeList,m=>(O(),R("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(O(),Ht(Rh,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:yv,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:g=>o(g,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):It("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
146
+ `]],["__scopeId","data-v-b3ce4b26"]]),vv={class:"interpolation-graph"},zh=1/6,Lh=5/6,Ha=rt(st({customOptions:{Button:de,Canvas:ns},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P();let o;kt(r,()=>{r.value&&r.value.getCanvas().then(g=>{o=g,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*zh,l=n.canvasHeight/2,c=[n.canvasWidth*Lh,n.canvasWidth/2],u=[n.canvasHeight*zh,n.canvasHeight*Lh],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!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 g=0;g<c.length;g++)o.ctx.fillRect(c[g]-2,u[g]-2,4,4);let v=!1,k=!1;const I={x:a,y:l,old:{x:a,y:l}};se.toTween(I,{x:c,y:u},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:C=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(C.old.x,C.old.y),o.ctx.lineTo(C.x,C.y),o.ctx.closePath(),o.ctx.stroke(),C.old.x=C.x,C.old.y=C.y},onComplete:()=>{v=!0,v&&k&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const M={x:a,y:l,old:{x:a,y:l}};se.toTween(M,{x:h,y:f},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:C=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(C.old.x,C.old.y),o.ctx.lineTo(C.x,C.y),o.ctx.closePath(),o.ctx.stroke(),C.old.x=C.x,C.old.y=C.y},onComplete:()=>{k=!0,v&&k&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return ee(()=>{o.app.off("showInParent",m)}),t({start:m}),(g,v)=>(O(),R("div",vv,[_("div",null,[Wt(" 插值:"+pt(g.interpolationName)+" ",1),ut(de,{stylePattern:"outline",height:"32px",onClick:m},{default:Ft(()=>[Wt(" 开始 ")]),_:1})]),_("div",{style:$({width:g.canvasWidth+"px",height:g.canvasHeight+"px"})},[ut(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-2bc9c320]{display:inline-block}.interpolation-graph>div[data-v-2bc9c320]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
147
+ `]],["__scopeId","data-v-2bc9c320"]]),bv={class:"interpolation-graph"},Vh=1/6,Fh=5/6,_v=st({customOptions:{Button:de,Canvas:ns},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},easeDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P();let o;kt(r,()=>{r.value&&r.value.getCanvas().then(g=>{o=g,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*Vh,l=n.canvasHeight/2,c=[n.canvasWidth*Fh,n.canvasWidth/2],u=[n.canvasHeight*Vh,n.canvasHeight*Fh],h=[...c,a],f=[...u,l];let d=!1;const m=()=>{if(!o||d)return;d=!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 g=0;g<c.length;g++)o.ctx.fillRect(c[g]-2,u[g]-2,4,4);let v=!1,k=!1;const I={x:a,y:l,old:{x:a,y:l}};se.toTween(I,{x:c,y:u},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:C=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(C.old.x,C.old.y),o.ctx.lineTo(C.x,C.y),o.ctx.closePath(),o.ctx.stroke(),C.old.x=C.x,C.old.y=C.y},onComplete:()=>{v=!0,v&&k&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const M={x:a,y:l,old:{x:a,y:l}};se.toTween(M,{x:h,y:f},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:C=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(C.old.x,C.old.y),o.ctx.lineTo(C.x,C.y),o.ctx.closePath(),o.ctx.stroke(),C.old.x=C.x,C.old.y=C.y},onComplete:()=>{k=!0,v&&k&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return ee(()=>{o.app.off("showInParent",m)}),t({start:m}),(g,v)=>(O(),R("div",bv,[_("div",null,[Wt(" 插值:"+pt(g.interpolationName)+" ",1),ut(de,{stylePattern:"outline",height:"32px",onClick:m},{default:Ft(()=>[Wt(" 开始 ")]),_:1})]),_("div",{style:$({width:g.canvasWidth+"px",height:g.canvasHeight+"px"})},[ut(ns,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),t2="",Gh=rt(_v,[["__scopeId","data-v-eb70b61a"]]),xv=2e3,Bh=rt(st({customOptions:{InterpolationGraphDisplay:Gh},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:dt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:dt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:dt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new hu(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)=>(O(),R("div",null,[(O(!0),R(Bt,null,Se(n.interpolationList,h=>(O(),R("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ut(Gh,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:xv,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
148
+ `]],["__scopeId","data-v-7128e350"]]),Yh=rt(st({__name:"SVG.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P();kt(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new ve(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new ih(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return ee(()=>{o?.destroy()}),t({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(O(),R("div",{ref_key:"svgRef",ref:r,class:"svg",style:$({backgroundColor:n.bgColor})},null,4))}}),[["styles",[`.svg[data-v-0cf49925]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
149
+ `]],["__scopeId","data-v-0cf49925"]]),wv=["width","height"],qr=rt(st({__name:"Canvas.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(),o=P(),a=P(0),l=P(0);let c;kt(r,()=>{r.value&&(c=new ve(r.value,!1),c.on("resize",(g,v)=>{const k=ba();a.value=Math.min(g,k.width),l.value=Math.min(v,k.height),d()}),c.start())}),kt(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new ve(o.value,!1),u.on("resize",(g,v)=>{h=new Fa(u),i("resize",g,v),f?.(h)}),u.start())}function m(){return new Promise(g=>{if(h&&u.width&&u.height)return g(h);f=g})}return ee(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:m}),(g,v)=>(O(),R("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[_("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:$({backgroundColor:n.bgColor})},null,12,wv)],512))}}),[["styles",[`.canvas-wrap[data-v-9f469399]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
150
+ `]],["__scopeId","data-v-9f469399"]]),kv=["max","min","step","value","autofocus"],Cv={key:0,class:"label"},Sv=st({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:Y.colorPrimary},barColor:{default:Y.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(n.defaultValue),o=P(Ve((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=Ve(u.target.value,2),o.value=Ve((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
154
151
  :root {
155
152
  --input-range-color: ${n.color};
156
153
  --input-range-thumb-size: ${n.handleSize};
@@ -161,14 +158,14 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
161
158
  --input-range-thumb-size: ${n.handleSize};
162
159
  --input-range-track-size: ${n.barHeight};
163
160
  }
164
- `,c=P();return Ee(c,()=>{c.value&&K.setStyleSheet(l,c.value)}),Qe(()=>{}),e({}),(u,h)=>(I(),V("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[_("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:M({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,r1),u.showValue?(I(),V("label",o1,me(r.value)+me(n.unit),1)):Pe("",!0)],512))}}),Vx="",Tn=ae(a1,[["__scopeId","data-v-75b06946"]]),l1='<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>',c1={class:"btns"},u1={class:"btns"},h1={class:"btns sub-btns"},d1={class:"btns sub-btns"},f1={class:"btns sub-btns"},p1={style:{width:"100%"}},m1={style:{width:"100%"}},g1={style:{height:"400px"}},v1={style:{height:"400px"}},y1={style:{height:"400px"},class:"css-area"},b1={class:"animate-to-css-group"},_1={class:"animate-to-css-group"},x1=oe({customOptions:{Button:it,InputRange:Tn,SVG:Vr,Canvas:ts},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:he.Easing.Linear.None}},setup(s,{expose:e}){const t=s,n=P();let i=0,r=0;Ee(n,()=>{n.value&&n.value.getSVG().then(D=>{i=D.app.width,r=D.app.height,D.app.on("resize",(E,k)=>{i=E,r=k})})});const o=P(),a=P(),l=P(),c=P(),u=P(),h=P(),f=P(),d=P(""),m=P("");function v(D){switch(m.value=D,d.value){case"AnimateToCSS":W();break;case"AnimateToTweenCSS":le();break}}const b=new ys({svg:l1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0});function C(D,E,k=30){return new Dt({x:D,y:E,radius:k,attrs:{fill:Vt()}})}function O(D,E,k=3){const B=[];for(let z=0;z<k;z++)B.push(new Dt({x:Math.random()*D,y:Math.random()*E,radius:10,attrs:{fill:Vt()},enableDrag:!0}));return B}function $(){return new Mr({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Vt()}})}function S(D,E){return new Nt({x:D,y:E,attrs:{"stroke-width":"1",stroke:"#666666"}})}const Y=C(0,0,8),L=C(0,0,5);function H(){const D="PathDGroup";if(d.value==D||!n.value||!o.value)return;d.value=D;let E=[b,Y,L];n.value.getSVG().then(k=>{o.value.getCanvas().then(B=>{let z,q;const ie=st=>{q&&k.delete(q),z&&z?.restore(),z=st,st.save(),st.attrs.fill="pink",st.attrs.stroke="green",E=[b,Y,L],q=st.getBoundingClientRect(),q&&(q.attrs.fill="none",q.attrs.strokeWidth="4",q.attrs.stroke="#0000ff",E.push(q))},X=k.click(st=>{ie(st)}),ne=B.click(st=>{ie(st)});let Se=0,Ie=b.shapes[Se].getTotalLength(),vt=0;const Ht=.01;k.clear(),We.run(()=>{if(d.value!==D)return X(),ne(),z&&(z.restore(),k.delete(z)),!1;vt>1&&(Se++,vt=0,Se>b.shapes.length-1&&(Se=0),Ie=b.shapes[Se].getTotalLength()),B.ctx.clearRect();let{x:st,y:ss}=b.shapes[Se].interpolate(vt);Y.x=st,Y.y=ss;let{x:at,y:Tt}=b.shapes[Se].getPointAtLength(vt*Ie);return L.x=at,L.y=Tt,k.path(E),B.draw(E),vt+=Ht,!0})})})}function fe(){const D="Shapes";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Mr({x:dt(0,i),y:dt(0,r),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),k=new Ct({x:dt(0,i),y:dt(0,r),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Da({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),z=new Jg({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),q=new e0({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),ie=new sh({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt()},enableDrag:!0}),X=new t0({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),ne=new s0({x:dt(0,i),y:dt(0,r),scaleOnOrigin:1,attrs:{fill:Vt()},enableDrag:!0}),Se=new n0({x:dt(0,i),y:dt(0,r),degree:30,scaleOnOrigin:.5,attrs:{strokeWidth:"2",stroke:Vt(),fill:"none"},enableDrag:!0}),Ie=new a0({x:dt(0,i),y:dt(0,r),degree:0,scaleOnOrigin:2,showFlame:!0,attrs:{stroke:Vt()},enableDrag:!0}),vt=new nh({x:100,y:100,min:0,max:200,step:2,defaultValue:10,barWidth:200});vt.on("change",Yn=>{console.log(`slider change: ${Yn}`)});const Ht=new Ei({x:100,y:120,width:200,height:20,degree:30,attrs:{stroke:Vt()},enableDrag:!0});E.group(z);const st=dt(0,i-100),ss=dt(0,r-100),at=new Nt({fromX:st,fromY:ss,x:st+100,y:ss+100,attrs:{stroke:"#666666"}}),Tt=new Nt({fromX:st+100,fromY:ss,x:st,y:ss+100,attrs:{stroke:"#666666"}}),Qt=C(0,0,10),On=at.intersection(Tt);On&&(Qt.x=On.x,Qt.y=On.y);const Oi=new Na({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Vt(),enableDrag:!0}),_s=[E,k,B,z,q,ie,X,ne,Se,Ie,vt,Ht,at,Tt,Qt,Oi];n.value.getSVG().then(Yn=>{o.value.getCanvas().then(Wr=>{Yn.clear(),We.run(()=>d.value!==D?!1:(Yn.path(_s),Wr.ctx.clearRect(),Wr.draw(_s),!0))})})}function ye(){const D="Arrow";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{const k=$(),B=S(E.app.width/2,E.app.height/2);E.clear(),We.run(()=>d.value!==D?!1:(B.fromX=k.x,B.fromY=k.y,E.path([B,k]),!0))}),o.value.getCanvas().then(E=>{const k=$(),B=S(E.app.width/2,E.app.height/2);We.run(()=>d.value!=D?!1:(E.ctx.clearRect(),B.fromX=k.x,B.fromY=k.y,E.draw([B,k]),!0))}))}function ge(){const D="PointEase";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=C(E.app.width/2,E.app.height/2);k.enableDrag=!0,k.targetToAfterDragFree={targetX:E.app.width/2,targetY:E.app.height/2},E.clear(),We.run(()=>d.value!==D?!1:(E.path(k),!0))}),o.value.getCanvas().then(E=>{const k=C(E.app.width/2,E.app.height/2);k.enableDrag=!0,k.targetToAfterDragFree={targetX:E.app.width/2,targetY:E.app.height/2},We.run(()=>d.value!=D?!1:(E.ctx.clearRect(),E.draw(k),!0))}))}function Me(){const D="BallCollision";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=C(50,E.app.height/2);k.mass=2,k.vx=2;const B=C(E.app.width-50,E.app.height/2);B.mass=1,B.vx=-2,E.clear(),o.value.getCanvas().then(z=>{We.run(()=>d.value!=D?!1:(k.checkCollision(B),k.nextFrame(),B.nextFrame(),E.path([k,B]),z.ctx.clearRect(),z.draw([k,B]),!0))})}))}function Ae(){const D="Balls";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const z=[];for(let ie=0;ie<15;ie++){const X=Math.random()*20+15,ne=C(Math.random()*E.app.width,Math.random()*E.app.height,X);ne.mass=X,ne.vx=Math.random()*10-5,ne.vy=Math.random()*10-5,z.push(ne)}const q=new Ct({x:0,y:0,width:E.app.width,height:E.app.height});E.clear(),We.run(()=>d.value!=D?!1:(Dt.comboMove(z,q),E.path(z),k.ctx.clearRect(),k.draw(z),!0))})}))}function Ue(){const D="Gravitate";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const z=[];for(let q=0;q<30;q++){const ie=Math.random()*25+5,X=C(Math.random()*E.app.width,Math.random()*E.app.height,ie);X.mass=ie,z.push(X)}E.clear(),We.run(()=>d.value!=D?!1:(ut.comboGravitate(z),E.path(z),k.ctx.clearRect(),k.draw(z),!0))})}))}function qe(){const D="SunPlanet";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=C(E.app.width*.5,E.app.height*.5,50);B.mass=1e4;const z=C(E.app.width*.5+200,E.app.height*.5,10);z.mass=1,z.vy=7;const q=[B,z];E.clear(),We.run(()=>d.value!=D?!1:(ut.comboGravitate(q),E.path(q),k.ctx.clearRect(),k.draw(q),!0))})}))}function et(){const D="SpringMass";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=[];for(let ne=0;ne<30;ne++){const Se=Math.random()*10+2,Ie=C(Math.random()*k.app.width,Math.random()*k.app.height,Se);Ie.vx=Math.random()*6-3,Ie.vy=Math.random()*6-3,Ie.mass=Se,B.push(Ie)}const q=new Ct({x:0,y:0,width:k.app.width,height:k.app.height}),ie=[];ut.comboSpringMass(B,q,{spring:5e-4}).forEach(([ne,Se,Ie,vt,Ht])=>{ie.push(new Nt({fromX:ne,fromY:Se,x:Ie,y:vt,attrs:{strokeWidth:"1",stroke:xi("#666666",Ht)}}))});const X=[...ie,...B];E.clear(),E.path(X),We.run(()=>d.value!=D?!1:(ut.comboSpringMass(B,q,{spring:5e-4}).forEach(([ne,Se,Ie,vt,Ht],st)=>{ie[st].fromX=ne,ie[st].fromY=Se,ie[st].x=Ie,ie[st].y=vt,ie[st].setAttr("stroke",xi("#666666",Ht))}),E.path(X),k.ctx.clearRect(),k.draw(X),!0))})}))}function Ge(){const D="WalkMan";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=new Ei({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),z=new Ei({width:50,height:10,attrs:{stroke:"#666666"}}),q=new Ei({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),ie=new Ei({width:50,height:10,attrs:{stroke:"#666666"}});let X=0,ne=0;function Se(){ne+=.2,B.groupTranslate(X,ne),q.groupTranslate(X,ne)}const Ie=-Math.PI/2;function vt(at,Tt,Qt){const On=Math.sin(Qt)*45+90,Oi=Math.sin(Qt+Ie)*45+45,_s=Tt.getPin();at.groupRotateTo(On),Tt.groupRotateTo(at.degree+Oi),Tt.groupTranslateTo(at.getPin().x,at.getPin().y),Tt.vx=Tt.getPin().x-_s.x,Tt.vy=Tt.getPin().y-_s.y}function Ht(at){const Tt=at.getPin().y+at.height/2;if(Tt>k.app.height){const Qt=Tt-k.app.height;B.groupTranslate(0,-Qt),z.groupTranslate(0,-Qt),q.groupTranslate(0,-Qt),ie.groupTranslate(0,-Qt),X-=at.vx,ne-=at.vy}}function st(){const at=k.app.width+200;B.x>k.app.width+100?(B.groupTranslate(-at,0),z.groupTranslate(-at,0),q.groupTranslate(-at,0),ie.groupTranslate(-at,0)):B.x<-100&&(B.groupTranslate(at,0),z.groupTranslate(at,0),q.groupTranslate(at,0),ie.groupTranslate(at,0))}let ss=0;E.clear(),We.run(()=>d.value!=D?!1:(ss+=.06,Se(),vt(B,z,ss),vt(q,ie,ss+Math.PI),Ht(z),Ht(ie),st(),E.path([B,z,q,ie]),k.ctx.clearRect(),k.draw([B,z,q,ie]),!0))})}))}function be(){const D="Sector";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new r0({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(k=>{k.clear(),o.value.getCanvas().then(B=>{We.run(()=>d.value!=D?!1:(k.path(E),B.ctx.clearRect(),B.draw(E),!0))})})}function _e(){const D="RectGame";if(d.value==D)return;d.value=D;function E(ie){return new Ct({x:Math.random()*ie,y:0,width:50,height:50,attrs:{fill:Vt()},enableDrag:!0})}const k=.2,B=[];function z(){const ie=E(i);return B.push(ie),ie}let q=z();n.value.getSVG().then(ie=>{ie.clear(),o.value.getCanvas().then(X=>{We.run(()=>d.value!=D?!1:(X.ctx.clearRect(),ie.isMouseDown||X.isMouseDown?(ie.path(B),X.draw(B)):(q&&q.nextFrame({gravity:k}),q&&q.y+q.height>=X.ctx.canvas.height&&(q.y=X.ctx.canvas.height-q.height,q=z()),B.forEach(ne=>(q&&q!==ne&&q.isIntersectRect(ne)&&(q.y=ne.y-q.height,q.y>=q.height?q=z():q=null),ne)),ie.path(B),X.draw(B)),!0))})})}function te(){const D="PointWater";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=[];for(let B=0;B<80;B++){const z=C(E.app.width/2,E.app.height,2);z.vx=Math.random()*2-1,z.vy=Math.random()*-10-10,k.push(z)}E.clear(),o.value.getCanvas().then(B=>{We.run(()=>d.value!=D?!1:(k.forEach(z=>{z.nextFrame({gravity:.5}),(z.x-z.radius>E.app.width||z.x+z.radius<0||z.y-z.radius>E.app.height||z.y+z.radius<0)&&(z.x=E.app.width/2,z.y=E.app.height,z.vx=Math.random()*2-1,z.vy=Math.random()*-10-10)}),E.path(k),B.ctx.clearRect(),B.draw(k),!0))})}))}function U(){const D="PointSpringChain";if(d.value==D)return;d.value=D;function E(z,q){const ie=[];for(let X=0;X<3;X++)ie.push(C(z,q,20));return ie}function k(){const z=[];for(let q=0;q<3;q++)z.push(new Nt({attrs:{"stroke-width":"1",stroke:"#666666"}}));return z}const B={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(z=>{const q=k(),ie=E(z.app.width/2,z.app.height/2);z.clear(),We.run(()=>d.value!==D?!1:(ut.comboSpringChain([z.app.mousePoint,...ie],B),ie.forEach((X,ne)=>{if(ne===0)q[ne].fromX=z.app.mousePoint.x,q[ne].fromY=z.app.mousePoint.y,q[ne].x=X.x,q[ne].y=X.y;else{const Se=ie[ne-1];q[ne].fromX=Se.x,q[ne].fromY=Se.y,q[ne].x=X.x,q[ne].y=X.y}}),z.path(q),z.path(ie),!0))}),o.value.getCanvas().then(z=>{const q=k(),ie=E(z.app.width/2,z.app.height/2);We.run(()=>d.value!=D?!1:(z.ctx.clearRect(),ut.comboSpringChain([z.app.mousePoint,...ie],B),ie.forEach((X,ne)=>{if(ne===0)q[ne].fromX=z.app.mousePoint.x,q[ne].fromY=z.app.mousePoint.y,q[ne].x=X.x,q[ne].y=X.y;else{const Se=ie[ne-1];q[ne].fromX=Se.x,q[ne].fromY=Se.y,q[ne].x=X.x,q[ne].y=X.y}}),z.draw(q),z.draw(ie),!0))})}function Ce(){const D="PointSpringMulti";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=[S(0,0),S(0,0),S(0,0)],B=O(E.app.width,E.app.height),z=new Dt({radius:20,attrs:{fill:"#ff0000"}});E.clear(),o.value.getCanvas().then(q=>{We.run(()=>d.value!=D?!1:(z.nextFrameSpringTo(B,{spring:.03}),B.forEach((ie,X)=>{k[X].fromX=z.x,k[X].fromY=z.y,k[X].x=ie.x,k[X].y=ie.y}),E.path([...k,...B,z]),q.ctx.clearRect(),q.draw([...k,...B,z]),!0))})}))}function A(){const D="PointSpringConnect";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const k=[S(0,0),S(0,0),S(0,0)],B=O(E.app.width,E.app.height);E.clear(),o.value.getCanvas().then(z=>{We.run(()=>d.value!=D?!1:(ut.comboSpringConnect(B,{springLength:120}),k[0].x=B[0].x,k[0].y=B[0].y,k[0].fromX=B[1].x,k[0].fromY=B[1].y,k[1].x=B[1].x,k[1].y=B[1].y,k[1].fromX=B[2].x,k[1].fromY=B[2].y,k[2].x=B[2].x,k[2].y=B[2].y,k[2].fromX=B[0].x,k[2].fromY=B[0].y,E.path([...k,...B]),z.ctx.clearRect(),z.draw([...k,...B]),!0))})}))}function Fe(){const D="QuadraticBezierCurve";if(d.value==D)return;d.value=D;const E=50;n.value.getSVG().then(k=>{const B=new Sn({x:E,y:k.app.height-E,fromX:k.app.width-E,fromY:k.app.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),z=new Sn({x:E,y:k.app.height-E,fromX:k.app.width-E,fromY:k.app.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});k.clear(),We.run(()=>d.value!==D?!1:(z.cx=B.cx=k.app.mousePoint.x,z.cy=B.cy=k.app.mousePoint.y,k.path(B),k.path(z),!0))}),o.value.getCanvas().then(k=>{const B=new Sn({x:E,y:k.ctx.canvas.height-E,fromX:k.ctx.canvas.width-E,fromY:k.ctx.canvas.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),z=new Sn({x:E,y:k.ctx.canvas.height-E,fromX:k.ctx.canvas.width-E,fromY:k.ctx.canvas.height-E,cx:k.app.mousePoint.x,cy:k.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});We.run(()=>d.value!=D?!1:(k.ctx.clearRect(),z.cx=B.cx=k.app.mousePoint.x,z.cy=B.cy=k.app.mousePoint.y,k.draw([B,z]),!0))})}function ht(){const D="PointsRandom";d.value=D;function E(k,B){const z=[];for(let q=0;q<10;q++){const ie=new Dt({x:Math.random()*k,y:Math.random()*B,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});z.push(ie)}return z}n.value.getSVG().then(k=>{const B=E(k.app.width,k.app.height),z=B.map((q,ie)=>new Ct({x:q.x,y:q.y,width:6,height:6,attrs:{fill:ie==0?"#ff0000":"#666666"}}));k.clear(),k.path(z),k.path(new Gn(B)),o.value.getCanvas().then(q=>{q.ctx.clearRect(),q.draw([...z,new Gn(B)])})})}function rt(){const D="InterpolatePath";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Mr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),k=new Ct({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),B=new Da({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),z=Gn.generatePoints(100,100,100,3),q=Gn.generatePoints(100,100,100,6);z.attrs.stroke="#666666",q.attrs.stroke="#7EEDFF";const ie=we.polymorph([we.fromShape(z),we.fromShape(q),we.fromShape(E),we.fromShape(k),we.fromShape(B)]),X=ie(0);X.enableDrag=!0,n.value.getSVG().then(ne=>{ne.clear(),o.value.getCanvas().then(Se=>{const Ie=Je.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:vt=>{d.value===D&&(ie(vt.t),ne.path(X),Se.ctx.clearRect(),Se.draw(X))},onComplete:()=>{}});Ie.tween.start(),We.run(()=>d.value!==D?!1:(Ie.tween.update()||(ne.path(X),Se.ctx.clearRect(),Se.draw(X)),!0))})})}function ot(){const D="InterpolatePathGroup";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Mr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),k=new Ct({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),B=new Da({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),z=ys.polymorph([ys.fromShape(E),ys.fromShape(k),b,ys.fromShape(B)]),q=z(0);n.value.getSVG().then(ie=>{ie.clear(),o.value.getCanvas().then(X=>{Je.toTween({t:0},{t:1},{duration:6e3,easeFunction:t.easeFunction,onUpdate:ne=>{d.value===D&&(z(ne.t),ie.path(q),X.ctx.clearRect(),X.draw(q))},onComplete:()=>{}}).startAuto()})})}const Re=we.fromSVGPathD("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"),zt=+Re.getTotalLength().toFixed(0),Ye=P(zt),pt=P(Math.floor(zt/2));function Kt(D){Ye.value=D,Re.setAttr("strokeDasharray",`${Ye.value} ${Ye.value}`),n.value.getSVG().then(E=>{E.path(Re)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Re)})}function cs(D){pt.value=D,Re.setAttr("strokeDashoffset",`${pt.value}`),n.value.getSVG().then(E=>{E.path(Re)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Re)})}function us(){const D="StrokeDash";d.value==D||!n.value||!o.value||(d.value=D,Re.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Ye.value} ${Ye.value}`,strokeDashoffset:`${pt.value}`}),n.value.getSVG().then(E=>{E.clear(),E.path(Re)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Re)}))}function y(){const D="StrokeDashAuto";d.value==D||!n.value||!o.value||(d.value=D,Re.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(E=>{E.clear(),o.value.getCanvas().then(k=>{Re.strokeDashToTween({duration:4e3,easeFunction:t.easeFunction,onUpdate:()=>{E.path(Re),k.ctx.clearRect(),k.draw(Re)}}).startAuto()})}))}function w(){const D="StrokeDashGroupParallelAuto";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{b.setAttrs({stroke:"none"}),E.clear(),o.value.getCanvas().then(k=>{k.ctx.clearRect(),b.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:t.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:Vt()})},onGroupUpdate:()=>{E.path(b),k.ctx.clearRect(),k.draw(b)}}).startAuto()})}))}function R(){const D="StrokeDashGroupSequenceAuto";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{b.setAttrs({stroke:"none"}),E.clear(),o.value.getCanvas().then(k=>{k.ctx.clearRect(),b.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:t.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:Vt()})},onGroupUpdate:()=>{E.path(b),k.ctx.clearRect(),k.draw(b)}}).startAuto()})}))}const F=new Je,G=new Je;function se(){const D="AnimateToCSS";d.value=D,F.fromDOM([a.value,l.value,c.value]),G.fromDOM([u.value])}let J=0;function W(){switch(m.value){case"slideLeft":F.toCSS("slideLeft",{},++J%3),G.toCSS("slideLeft",{direction:J%2==0?"normal":"reverse"});break;case"slideRight":F.toCSS("slideRight",{easeName:"ease",dur:1e3},--J%3),G.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":F.toCSS("slideDown",{easeName:"ease-out",dur:500},++J%3),G.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":F.toCSS("slideUp",{easeName:"ease-in",dur:500},++J%3),G.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":F.toCSS("flipLeft",{easeName:"linear",dur:1e3},++J%3),G.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":F.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++J%3),G.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":F.toCSS("flipDown",{easeName:"ease",dur:1e3},++J%3),G.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":F.toCSS("flipUp",{easeName:"ease",dur:1e3},++J%3),G.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":F.toCSS("popIn",{easeName:"ease",dur:1e3},++J%3),G.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":F.toCSS("popOut",{easeName:"ease",dur:1e3},++J%3),G.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":F.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},J++%3),G.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let ee;function Z(){const D="AnimateToTweenCSS";d.value=D,K.setStyle(f.value,{transform:""})}function le(){ee||(ee=new ft(h.value));const D=50,E=0,k=0,B=0,z=ee.width-D,q=ee.height-D,ie=ee.height-D,X=ee.width/2-D/2,ne=ee.height/2-D/2,Se={},Ie={};switch(m.value){case"translateTo":Object.assign(Se,{translateTo:[E,k]}),Object.assign(Ie,{translateTo:[z,q]});break;case"translateXTo":Object.assign(Se,{translateXTo:E}),Object.assign(Ie,{translateXTo:z});break;case"translateYTo":Object.assign(Se,{translateYTo:k}),Object.assign(Ie,{translateYTo:q});break;case"translateZTo":Object.assign(Se,{translateTo:[X,ne],translateZTo:B}),Object.assign(Ie,{translateTo:[X,ne],translateZTo:ie});break;case"translate3dTo":Object.assign(Se,{translate3dTo:[X-50,ne-50,B]}),Object.assign(Ie,{translate3dTo:[X+50,ne+50,ie]});break;case"rotateTo":Object.assign(Se,{translateTo:[X,ne],rotateTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateTo:360});break;case"rotateXTo":Object.assign(Se,{translateTo:[X,ne],rotateXTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateXTo:180});break;case"rotateYTo":Object.assign(Se,{translateTo:[X,ne],rotateYTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateYTo:180});break;case"rotateZTo":Object.assign(Se,{translateTo:[X,ne],rotateZTo:0}),Object.assign(Ie,{translateTo:[X,ne],rotateZTo:360});break;case"rotate3dTo":Object.assign(Se,{translateTo:[X,ne],rotate3dTo:[0,0,0]}),Object.assign(Ie,{translateTo:[X,ne],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(Se,{translateTo:[X,ne],scaleTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleTo:3});break;case"scaleXTo":Object.assign(Se,{translateTo:[X,ne],scaleXTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleXTo:3});break;case"scaleYTo":Object.assign(Se,{translateTo:[X,ne],scaleYTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleYTo:3});break;case"scaleZTo":Object.assign(Se,{translateTo:[X,ne],scaleZTo:1}),Object.assign(Ie,{translateTo:[X,ne],scaleZTo:3});break;case"scale3dTo":Object.assign(Se,{translateTo:[X,ne],scale3dTo:[1,1,1]}),Object.assign(Ie,{translateTo:[X,ne],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(Se,{translateTo:[X,ne],skewTo:0}),Object.assign(Ie,{translateTo:[X,ne],skewTo:30});break;case"skewXTo":Object.assign(Se,{translateTo:[X,ne],skewXTo:0}),Object.assign(Ie,{translateTo:[X,ne],skewXTo:30});break;case"skewYTo":Object.assign(Se,{translateTo:[X,ne],skewYTo:0}),Object.assign(Ie,{translateTo:[X,ne],skewYTo:30});break;case"perspective":Object.assign(Se,{translateTo:[X,ne],perspective:0}),Object.assign(Ie,{translateTo:[X,ne],perspective:1e3});break}Je.toTweenCSS(f.value,Se,Ie,{duration:2e3,easeFunction:t.easeFunction,onUpdate:vt=>{}}).startAuto()}function pe(){const D="Rosetta";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{const B=we.generateRosetta(120,120,55,35,6);B.setAttr({stroke:"none",fill:"none"});const z=new Ct({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),q=new we({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});E.clear(),k.ctx.clearRect(),Je.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:ie=>{if(d.value!==D)return;const X=B.trailPath(q,ie.progress);z.x=X.x,z.y=X.y,z.degree=X.alpha+90,E.path([q,z]),k.ctx.clearRect(),k.draw([q,z])}}).startAuto()})}))}function de(){const D="Confetti_"+dt();d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(k=>{E.clear();const B=new l0(k.app.width,k.app.height,{scalar:1});We.run(()=>d.value!==D?!1:(E.path(B),k.ctx.clearRect(),k.draw(B),!0))})})}const Te=[{name:"PathDGroup",type:"PathDGroup",onClick:H},{name:"Shapes",type:"Shapes",onClick:fe},{name:"Arrow",type:"Arrow",onClick:ye},{name:"targetToAfterDragFree",type:"PointEase",onClick:ge},{name:"ballCollision",type:"BallCollision",onClick:Me},{name:"balls",type:"Balls",onClick:Ae},{name:"万有引力",type:"Gravitate",onClick:Ue},{name:"行星",type:"SunPlanet",onClick:qe},{name:"SpringMass",type:"SpringMass",onClick:et},{name:"WalkMan",type:"WalkMan",onClick:Ge},{name:"俄罗斯方块",type:"RectGame",onClick:_e},{name:"喷泉",type:"PointWater",onClick:te},{name:"链式弹簧",type:"PointSpringChain",onClick:U},{name:"多点弹簧",type:"PointSpringMulti",onClick:Ce},{name:"连接弹簧",type:"PointSpringConnect",onClick:A},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:Fe},{name:"Points - random",type:"PointsRandom",onClick:ht},{name:"线条动画",type:"InterpolatePath",onClick:rt},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:ot},{name:"strokeDash",type:"StrokeDash",onClick:us},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:y},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:w},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:R},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:se},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:Z},{name:"扇形",type:"Sector",onClick:be},{name:"rosetta",type:"Rosetta",onClick:pe},{name:"Confetti",type:"Confetti",onClick:de}],De=[{type:"slideLeft",onClick:()=>v("slideLeft")},{type:"slideRight",onClick:()=>v("slideRight")},{type:"slideDown",onClick:()=>v("slideDown")},{type:"slideUp",onClick:()=>v("slideUp")},{type:"flipLeft",onClick:()=>v("flipLeft")},{type:"flipRight",onClick:()=>v("flipRight")},{type:"flipDown",onClick:()=>v("flipDown")},{type:"flipUp",onClick:()=>v("flipUp")},{type:"popIn",onClick:()=>v("popIn")},{type:"popOut",onClick:()=>v("popOut")},{type:"rotate",onClick:()=>v("rotate")}],Be=[{type:"translateTo",onClick:()=>v("translateTo")},{type:"translateXTo",onClick:()=>v("translateXTo")},{type:"translateYTo",onClick:()=>v("translateYTo")},{type:"translateZTo",onClick:()=>v("translateZTo")},{type:"translate3dTo",onClick:()=>v("translate3dTo")},{type:"rotateTo",onClick:()=>v("rotateTo")},{type:"rotateXTo",onClick:()=>v("rotateXTo")},{type:"rotateYTo",onClick:()=>v("rotateYTo")},{type:"rotateZTo",onClick:()=>v("rotateZTo")},{type:"rotate3dTo",onClick:()=>v("rotate3dTo")},{type:"scaleTo",onClick:()=>v("scaleTo")},{type:"scaleXTo",onClick:()=>v("scaleXTo")},{type:"scaleYTo",onClick:()=>v("scaleYTo")},{type:"scaleZTo",onClick:()=>v("scaleZTo")},{type:"scale3dTo",onClick:()=>v("scale3dTo")},{type:"skewTo",onClick:()=>v("skewTo")},{type:"skewXTo",onClick:()=>v("skewXTo")},{type:"skewYTo",onClick:()=>v("skewYTo")},{type:"perspective",onClick:()=>v("perspective")}];function Ze(){return new Promise(D=>{o.value.getCanvas().then(E=>{Cn.downloadFromSVGString(E.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{D()},3e3)})})})}return Qe(()=>{}),e({}),(D,E)=>(I(),V(je,null,[_("div",c1,[ue(it,{asyncClick:Ze},{default:nt(()=>[He(" downloadFromCanvasToSVG ")]),_:1})]),_("div",u1,[(I(),V(je,null,St(Te,k=>ue(it,{key:k.type,item:k,onClick:k.onClick,stylePattern:d.value.indexOf(k.type)>=0?"fullfilled":"outline"},{default:nt(()=>[He(me(k.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Ps(_("div",h1,[(I(),V(je,null,St(De,k=>ue(it,{key:k.type,item:k,onClick:k.onClick,stylePattern:m.value==k.type?"fullfilled":"outline"},{default:nt(()=>[He(me(k.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[gs,d.value=="AnimateToCSS"]]),Ps(_("div",null," 当前缓动函数:"+me(t.easeName),513),[[gs,d.value=="AnimateToTweenCSS"]]),Ps(_("div",d1,[(I(),V(je,null,St(Be,k=>ue(it,{key:k.type,item:k,onClick:k.onClick,stylePattern:m.value==k.type?"fullfilled":"outline"},{default:nt(()=>[He(me(k.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[gs,d.value=="AnimateToTweenCSS"]]),Ps(_("div",f1,[_("div",p1,[_("div",null,"stroke-dasharray: "+me(Ye.value)+","+me(Ye.value),1),ue(Tn,{max:988,defaultValue:Ye.value,onChange:Kt},null,8,["defaultValue"])]),_("div",m1,[_("div",null,"stroke-dashoffset: "+me(pt.value),1),ue(Tn,{max:988,defaultValue:pt.value,onChange:cs},null,8,["defaultValue"])])],512),[[gs,d.value=="StrokeDash"]]),Ps(_("div",g1,[ue(Vr,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[gs,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Ps(_("div",v1,[ue(ts,{ref_key:"canvasRef",ref:o,bgColor:"#333333"},null,512)],512),[[gs,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Ps(_("div",y1,[_("div",b1,[_("div",{ref_key:"divOneRef",ref:a},"1",512),_("div",{ref_key:"divTwoRef",ref:l},"2",512),_("div",{ref_key:"divThreeRef",ref:c},"3",512)]),_("div",_1,[_("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[gs,d.value=="AnimateToCSS"]]),Ps(_("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[_("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[gs,d.value=="AnimateToTweenCSS"]])],64))}}),zh=ae(x1,[["styles",[`.btns[data-v-d2faaf30]{display:flex;flex-wrap:wrap}.btns[data-v-d2faaf30]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-d2faaf30]{padding-top:10px;background-color:#dbffff}.css-area[data-v-d2faaf30]{background-color:#fff}.animate-to-css-group[data-v-d2faaf30]{position:relative;width:160px;height:160px;margin:20px;overflow:hidden}.animate-to-css-group>div[data-v-d2faaf30]{width:160px;height:160px;line-height:160px;background-color:#efefef;border:1px solid #333333;text-align:center}.tween-css-target[data-v-d2faaf30]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
165
- `]],["__scopeId","data-v-d2faaf30"]]),w1=["fill"],C1=["fill"],S1=oe({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{style:M(["width: "+e.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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:e.color},null,8,w1),_("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:e.color},null,8,C1)],4))}}),k1=ae(S1,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
166
- `]],["__scopeId","data-v-8fe3f9fd"]]),Ba=s=>(Ws("data-v-7aebdea0"),s=s(),Xs(),s),E1=[Ba(()=>_("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)),Ba(()=>_("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)),Ba(()=>_("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))],T1=oe({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{style:M(["width: "+e.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},E1,4))}}),O1=ae(T1,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
167
- `]],["__scopeId","data-v-7aebdea0"]]),P1=["width","height"],I1=["fill"],D1=oe({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{viewBox:"0 0 24 24",width:e.width,height:e.height??e.width,xmlns:"http://www.w3.org/2000/svg"},[_("path",{fill:e.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,I1)],8,P1))}}),N1=ae(D1,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
168
- `]],["__scopeId","data-v-8745630f"]]),$1=["width","height"],M1=["fill"],A1=oe({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:j.colorGrayCC}},setup(s){const e=s;return(t,n)=>(I(),V("svg",{viewBox:"0 0 20 20",width:e.width,height:e.height??e.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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:e.color},null,8,M1)],8,$1))}}),R1=ae(A1,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
169
- `]],["__scopeId","data-v-0e77f86d"]]),V1={class:"loading-1"},L1=oe({__name:"Loading1.ce",props:{color:{default:j.colorPrimary}},setup(s){const t={backgroundColor:s.color};return(n,i)=>(I(),V("div",V1,[_("div",{class:"rect1",style:t}),_("div",{class:"rect2",style:t}),_("div",{class:"rect3",style:t}),_("div",{class:"rect4",style:t}),_("div",{class:"rect5",style:t})]))}}),z1=ae(L1,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
170
- `]],["__scopeId","data-v-f7deb691"]]),F1={class:"loading-2"},G1=oe({__name:"Loading2.ce",props:{color:{default:j.colorPrimary}},setup(s){const t={backgroundColor:s.color};return(n,i)=>(I(),V("div",F1,[_("div",{class:"dot1",style:t}),_("div",{class:"dot2",style:t})]))}}),B1=ae(G1,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
171
- `]],["__scopeId","data-v-945f5b2e"]]),j1=oe({__name:"Loading3.ce",props:{fromColor:{default:j.colorPrimary},toColor:{default:j.colorRed}},setup(s){const e=s,t=`
161
+ `,c=P();return kt(c,()=>{c.value&&H.setStyleSheet(l,c.value)}),ee(()=>{}),t({}),(u,h)=>(O(),R("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[_("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:$({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,kv),u.showValue?(O(),R("label",Cv,pt(r.value)+pt(n.unit),1)):It("",!0)],512))}}),a2="",On=rt(Sv,[["__scopeId","data-v-75b06946"]]),Ev='<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>',Tv={class:"btns"},Ov={class:"btns"},Iv={class:"btns sub-btns"},Pv={class:"btns sub-btns"},Dv={class:"btns sub-btns"},$v={style:{width:"100%"}},Nv={style:{width:"100%"}},Mv={style:{height:"400px"}},Rv={style:{height:"400px"}},Av={style:{height:"400px"},class:"css-area"},zv={class:"animate-to-css-group"},Lv={class:"animate-to-css-group"},Vv=st({customOptions:{Button:de,InputRange:On,SVG:Br,Canvas:ns},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:dt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=P();let i=0,r=0;kt(n,()=>{n.value&&n.value.getSVG().then(D=>{i=D.app.width,r=D.app.height,D.app.on("resize",(E,S)=>{i=E,r=S})})});const o=P(),a=P(),l=P(),c=P(),u=P(),h=P(),f=P(),d=P(""),m=P("");function g(D){switch(m.value=D,d.value){case"AnimateToCSS":U();break;case"AnimateToTweenCSS":lt();break}}const v=new bs({svg:Ev,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0});function k(D,E,S=30){return new Ne({x:D,y:E,radius:S,attrs:{fill:Fe()}})}function I(D,E,S=3){const B=[];for(let V=0;V<S;V++)B.push(new Ne({x:Math.random()*D,y:Math.random()*E,radius:10,attrs:{fill:Fe()},enableDrag:!0}));return B}function M(){return new Vr({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Fe()}})}function C(D,E){return new Me({x:D,y:E,attrs:{"stroke-width":"1",stroke:"#666666"}})}const j=k(0,0,8),L=k(0,0,5);function X(){const D="PathDGroup";if(d.value==D||!n.value||!o.value)return;d.value=D;let E=[v,j,L];n.value.getSVG().then(S=>{o.value.getCanvas().then(B=>{let V,Z;const ot=ue=>{Z&&S.delete(Z),V&&V?.restore(),V=ue,ue.save(),ue.attrs.fill="pink",ue.attrs.stroke="green",E=[v,j,L],Z=ue.getBoundingClientRect(),Z&&(Z.attrs.fill="none",Z.attrs.strokeWidth="4",Z.attrs.stroke="#0000ff",E.push(Z))},W=S.click(ue=>{ot(ue)}),nt=B.click(ue=>{ot(ue)});let St=0,$t=v.shapes[St].getTotalLength(),xe=0;const We=.01;S.clear(),Zt.run(()=>{if(d.value!==D)return W(),nt(),V&&(V.restore(),S.delete(V)),!1;xe>1&&(St++,xe=0,St>v.shapes.length-1&&(St=0),$t=v.shapes[St].getTotalLength()),B.ctx.clearRect();let{x:ue,y:is}=v.shapes[St].interpolate(xe);j.x=ue,j.y=is;let{x:fe,y:Ie}=v.shapes[St].getPointAtLength(xe*$t);return L.x=fe,L.y=Ie,S.path(E),B.draw(E),xe+=We,!0})})})}function mt(){const D="Shapes";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Vr({x:ye(0,i),y:ye(0,r),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),S=new Ee({x:ye(0,i),y:ye(0,r),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new La({x:ye(0,i),y:ye(0,r),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new vg({x:ye(0,i),y:ye(0,r),scaleOnOrigin:1,attrs:{fill:Fe(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new bg({x:ye(0,i),y:ye(0,r),scaleOnOrigin:1,attrs:{fill:Fe(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),ot=new ah({x:ye(0,i),y:ye(0,r),scaleOnOrigin:1,attrs:{fill:Fe()},enableDrag:!0}),W=new _g({x:ye(0,i),y:ye(0,r),scaleOnOrigin:1,attrs:{fill:Fe(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new xg({x:ye(0,i),y:ye(0,r),scaleOnOrigin:1,attrs:{fill:Fe()},enableDrag:!0}),St=new wg({x:ye(0,i),y:ye(0,r),degree:30,scaleOnOrigin:.5,attrs:{strokeWidth:"2",stroke:Fe(),fill:"none"},enableDrag:!0}),$t=new Eg({x:ye(0,i),y:ye(0,r),degree:0,scaleOnOrigin:2,showFlame:!0,attrs:{stroke:Fe()},enableDrag:!0}),xe=new lh({x:100,y:100,min:0,max:200,step:2,defaultValue:10,barWidth:200});xe.on("change",Hn=>{console.log(`slider change: ${Hn}`)});const We=new Pi({x:100,y:120,width:200,height:20,degree:30,attrs:{stroke:Fe()},enableDrag:!0});E.group(V);const ue=ye(0,i-100),is=ye(0,r-100),fe=new Me({fromX:ue,fromY:is,x:ue+100,y:is+100,attrs:{stroke:"#666666"}}),Ie=new Me({fromX:ue+100,fromY:is,x:ue,y:is+100,attrs:{stroke:"#666666"}}),ts=k(0,0,10),Pn=fe.intersection(Ie);Pn&&(ts.x=Pn.x,ts.y=Pn.y);const Ni=new Va({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Fe(),enableDrag:!0}),ws=[E,S,B,V,Z,ot,W,nt,St,$t,xe,We,fe,Ie,ts,Ni];n.value.getSVG().then(Hn=>{o.value.getCanvas().then(Kr=>{Hn.clear(),Zt.run(()=>d.value!==D?!1:(Hn.path(ws),Kr.ctx.clearRect(),Kr.draw(ws),!0))})})}function bt(){const D="Arrow";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{const S=M(),B=C(E.app.width/2,E.app.height/2);E.clear(),Zt.run(()=>d.value!==D?!1:(B.fromX=S.x,B.fromY=S.y,E.path([B,S]),!0))}),o.value.getCanvas().then(E=>{const S=M(),B=C(E.app.width/2,E.app.height/2);Zt.run(()=>d.value!=D?!1:(E.ctx.clearRect(),B.fromX=S.x,B.fromY=S.y,E.draw([B,S]),!0))}))}function yt(){const D="PointEase";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const S=k(E.app.width/2,E.app.height/2);S.enableDrag=!0,S.targetToAfterDragFree={targetX:E.app.width/2,targetY:E.app.height/2},E.clear(),Zt.run(()=>d.value!==D?!1:(E.path(S),!0))}),o.value.getCanvas().then(E=>{const S=k(E.app.width/2,E.app.height/2);S.enableDrag=!0,S.targetToAfterDragFree={targetX:E.app.width/2,targetY:E.app.height/2},Zt.run(()=>d.value!=D?!1:(E.ctx.clearRect(),E.draw(S),!0))}))}function At(){const D="BallCollision";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const S=k(50,E.app.height/2);S.mass=2,S.vx=2;const B=k(E.app.width-50,E.app.height/2);B.mass=1,B.vx=-2,E.clear(),o.value.getCanvas().then(V=>{Zt.run(()=>d.value!=D?!1:(S.checkCollision(B),S.nextFrame(),B.nextFrame(),E.path([S,B]),V.ctx.clearRect(),V.draw([S,B]),!0))})}))}function zt(){const D="Balls";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(S=>{const V=[];for(let ot=0;ot<15;ot++){const W=Math.random()*20+15,nt=k(Math.random()*E.app.width,Math.random()*E.app.height,W);nt.mass=W,nt.vx=Math.random()*10-5,nt.vy=Math.random()*10-5,V.push(nt)}const Z=new Ee({x:0,y:0,width:E.app.width,height:E.app.height});E.clear(),Zt.run(()=>d.value!=D?!1:(Ne.comboMove(V,Z),E.path(V),S.ctx.clearRect(),S.draw(V),!0))})}))}function Kt(){const D="Gravitate";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(S=>{const V=[];for(let Z=0;Z<30;Z++){const ot=Math.random()*25+5,W=k(Math.random()*E.app.width,Math.random()*E.app.height,ot);W.mass=ot,V.push(W)}E.clear(),Zt.run(()=>d.value!=D?!1:(ge.comboGravitate(V),E.path(V),S.ctx.clearRect(),S.draw(V),!0))})}))}function Qt(){const D="SunPlanet";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(S=>{const B=k(E.app.width*.5,E.app.height*.5,50);B.mass=1e4;const V=k(E.app.width*.5+200,E.app.height*.5,10);V.mass=1,V.vy=7;const Z=[B,V];E.clear(),Zt.run(()=>d.value!=D?!1:(ge.comboGravitate(Z),E.path(Z),S.ctx.clearRect(),S.draw(Z),!0))})}))}function ne(){const D="SpringMass";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(S=>{const B=[];for(let nt=0;nt<30;nt++){const St=Math.random()*10+2,$t=k(Math.random()*S.app.width,Math.random()*S.app.height,St);$t.vx=Math.random()*6-3,$t.vy=Math.random()*6-3,$t.mass=St,B.push($t)}const Z=new Ee({x:0,y:0,width:S.app.width,height:S.app.height}),ot=[];ge.comboSpringMass(B,Z,{spring:5e-4}).forEach(([nt,St,$t,xe,We])=>{ot.push(new Me({fromX:nt,fromY:St,x:$t,y:xe,attrs:{strokeWidth:"1",stroke:Ci("#666666",We)}}))});const W=[...ot,...B];E.clear(),E.path(W),Zt.run(()=>d.value!=D?!1:(ge.comboSpringMass(B,Z,{spring:5e-4}).forEach(([nt,St,$t,xe,We],ue)=>{ot[ue].fromX=nt,ot[ue].fromY=St,ot[ue].x=$t,ot[ue].y=xe,ot[ue].setAttr("stroke",Ci("#666666",We))}),E.path(W),S.ctx.clearRect(),S.draw(W),!0))})}))}function Yt(){const D="WalkMan";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(S=>{const B=new Pi({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),V=new Pi({width:50,height:10,attrs:{stroke:"#666666"}}),Z=new Pi({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),ot=new Pi({width:50,height:10,attrs:{stroke:"#666666"}});let W=0,nt=0;function St(){nt+=.2,B.groupTranslate(W,nt),Z.groupTranslate(W,nt)}const $t=-Math.PI/2;function xe(fe,Ie,ts){const Pn=Math.sin(ts)*45+90,Ni=Math.sin(ts+$t)*45+45,ws=Ie.getPin();fe.groupRotateTo(Pn),Ie.groupRotateTo(fe.degree+Ni),Ie.groupTranslateTo(fe.getPin().x,fe.getPin().y),Ie.vx=Ie.getPin().x-ws.x,Ie.vy=Ie.getPin().y-ws.y}function We(fe){const Ie=fe.getPin().y+fe.height/2;if(Ie>S.app.height){const ts=Ie-S.app.height;B.groupTranslate(0,-ts),V.groupTranslate(0,-ts),Z.groupTranslate(0,-ts),ot.groupTranslate(0,-ts),W-=fe.vx,nt-=fe.vy}}function ue(){const fe=S.app.width+200;B.x>S.app.width+100?(B.groupTranslate(-fe,0),V.groupTranslate(-fe,0),Z.groupTranslate(-fe,0),ot.groupTranslate(-fe,0)):B.x<-100&&(B.groupTranslate(fe,0),V.groupTranslate(fe,0),Z.groupTranslate(fe,0),ot.groupTranslate(fe,0))}let is=0;E.clear(),Zt.run(()=>d.value!=D?!1:(is+=.06,St(),xe(B,V,is),xe(Z,ot,is+Math.PI),We(V),We(ot),ue(),E.path([B,V,Z,ot]),S.ctx.clearRect(),S.draw([B,V,Z,ot]),!0))})}))}function _t(){const D="Sector";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Cg({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(S=>{S.clear(),o.value.getCanvas().then(B=>{Zt.run(()=>d.value!=D?!1:(S.path(E),B.ctx.clearRect(),B.draw(E),!0))})})}function xt(){const D="RectGame";if(d.value==D)return;d.value=D;function E(ot){return new Ee({x:Math.random()*ot,y:0,width:50,height:50,attrs:{fill:Fe()},enableDrag:!0})}const S=.2,B=[];function V(){const ot=E(i);return B.push(ot),ot}let Z=V();n.value.getSVG().then(ot=>{ot.clear(),o.value.getCanvas().then(W=>{Zt.run(()=>d.value!=D?!1:(W.ctx.clearRect(),ot.isMouseDown||W.isMouseDown?(ot.path(B),W.draw(B)):(Z&&Z.nextFrame({gravity:S}),Z&&Z.y+Z.height>=W.ctx.canvas.height&&(Z.y=W.ctx.canvas.height-Z.height,Z=V()),B.forEach(nt=>(Z&&Z!==nt&&Z.isIntersectRect(nt)&&(Z.y=nt.y-Z.height,Z.y>=Z.height?Z=V():Z=null),nt)),ot.path(B),W.draw(B)),!0))})})}function it(){const D="PointWater";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const S=[];for(let B=0;B<80;B++){const V=k(E.app.width/2,E.app.height,2);V.vx=Math.random()*2-1,V.vy=Math.random()*-10-10,S.push(V)}E.clear(),o.value.getCanvas().then(B=>{Zt.run(()=>d.value!=D?!1:(S.forEach(V=>{V.nextFrame({gravity:.5}),(V.x-V.radius>E.app.width||V.x+V.radius<0||V.y-V.radius>E.app.height||V.y+V.radius<0)&&(V.x=E.app.width/2,V.y=E.app.height,V.vx=Math.random()*2-1,V.vy=Math.random()*-10-10)}),E.path(S),B.ctx.clearRect(),B.draw(S),!0))})}))}function q(){const D="PointSpringChain";if(d.value==D)return;d.value=D;function E(V,Z){const ot=[];for(let W=0;W<3;W++)ot.push(k(V,Z,20));return ot}function S(){const V=[];for(let Z=0;Z<3;Z++)V.push(new Me({attrs:{"stroke-width":"1",stroke:"#666666"}}));return V}const B={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(V=>{const Z=S(),ot=E(V.app.width/2,V.app.height/2);V.clear(),Zt.run(()=>d.value!==D?!1:(ge.comboSpringChain([V.app.mousePoint,...ot],B),ot.forEach((W,nt)=>{if(nt===0)Z[nt].fromX=V.app.mousePoint.x,Z[nt].fromY=V.app.mousePoint.y,Z[nt].x=W.x,Z[nt].y=W.y;else{const St=ot[nt-1];Z[nt].fromX=St.x,Z[nt].fromY=St.y,Z[nt].x=W.x,Z[nt].y=W.y}}),V.path(Z),V.path(ot),!0))}),o.value.getCanvas().then(V=>{const Z=S(),ot=E(V.app.width/2,V.app.height/2);Zt.run(()=>d.value!=D?!1:(V.ctx.clearRect(),ge.comboSpringChain([V.app.mousePoint,...ot],B),ot.forEach((W,nt)=>{if(nt===0)Z[nt].fromX=V.app.mousePoint.x,Z[nt].fromY=V.app.mousePoint.y,Z[nt].x=W.x,Z[nt].y=W.y;else{const St=ot[nt-1];Z[nt].fromX=St.x,Z[nt].fromY=St.y,Z[nt].x=W.x,Z[nt].y=W.y}}),V.draw(Z),V.draw(ot),!0))})}function Et(){const D="PointSpringMulti";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const S=[C(0,0),C(0,0),C(0,0)],B=I(E.app.width,E.app.height),V=new Ne({radius:20,attrs:{fill:"#ff0000"}});E.clear(),o.value.getCanvas().then(Z=>{Zt.run(()=>d.value!=D?!1:(V.nextFrameSpringTo(B,{spring:.03}),B.forEach((ot,W)=>{S[W].fromX=V.x,S[W].fromY=V.y,S[W].x=ot.x,S[W].y=ot.y}),E.path([...S,...B,V]),Z.ctx.clearRect(),Z.draw([...S,...B,V]),!0))})}))}function A(){const D="PointSpringConnect";d.value!=D&&(d.value=D,n.value.getSVG().then(E=>{const S=[C(0,0),C(0,0),C(0,0)],B=I(E.app.width,E.app.height);E.clear(),o.value.getCanvas().then(V=>{Zt.run(()=>d.value!=D?!1:(ge.comboSpringConnect(B,{springLength:120}),S[0].x=B[0].x,S[0].y=B[0].y,S[0].fromX=B[1].x,S[0].fromY=B[1].y,S[1].x=B[1].x,S[1].y=B[1].y,S[1].fromX=B[2].x,S[1].fromY=B[2].y,S[2].x=B[2].x,S[2].y=B[2].y,S[2].fromX=B[0].x,S[2].fromY=B[0].y,E.path([...S,...B]),V.ctx.clearRect(),V.draw([...S,...B]),!0))})}))}function jt(){const D="QuadraticBezierCurve";if(d.value==D)return;d.value=D;const E=50;n.value.getSVG().then(S=>{const B=new Sn({x:E,y:S.app.height-E,fromX:S.app.width-E,fromY:S.app.height-E,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),V=new Sn({x:E,y:S.app.height-E,fromX:S.app.width-E,fromY:S.app.height-E,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});S.clear(),Zt.run(()=>d.value!==D?!1:(V.cx=B.cx=S.app.mousePoint.x,V.cy=B.cy=S.app.mousePoint.y,S.path(B),S.path(V),!0))}),o.value.getCanvas().then(S=>{const B=new Sn({x:E,y:S.ctx.canvas.height-E,fromX:S.ctx.canvas.width-E,fromY:S.ctx.canvas.height-E,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),V=new Sn({x:E,y:S.ctx.canvas.height-E,fromX:S.ctx.canvas.width-E,fromY:S.ctx.canvas.height-E,cx:S.app.mousePoint.x,cy:S.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});Zt.run(()=>d.value!=D?!1:(S.ctx.clearRect(),V.cx=B.cx=S.app.mousePoint.x,V.cy=B.cy=S.app.mousePoint.y,S.draw([B,V]),!0))})}function le(){const D="PointsRandom";d.value=D;function E(S,B){const V=[];for(let Z=0;Z<10;Z++){const ot=new Ne({x:Math.random()*S,y:Math.random()*B,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});V.push(ot)}return V}n.value.getSVG().then(S=>{const B=E(S.app.width,S.app.height),V=B.map((Z,ot)=>new Ee({x:Z.x,y:Z.y,width:6,height:6,attrs:{fill:ot==0?"#ff0000":"#666666"}}));S.clear(),S.path(V),S.path(new Yn(B)),o.value.getCanvas().then(Z=>{Z.ctx.clearRect(),Z.draw([...V,new Yn(B)])})})}function ie(){const D="InterpolatePath";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Vr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),S=new Ee({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),B=new La({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),V=Yn.generatePoints(100,100,100,3),Z=Yn.generatePoints(100,100,100,6);V.attrs.stroke="#666666",Z.attrs.stroke="#7EEDFF";const ot=Ct.polymorph([Ct.fromShape(V),Ct.fromShape(Z),Ct.fromShape(E),Ct.fromShape(S),Ct.fromShape(B)]),W=ot(0);W.enableDrag=!0,n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(St=>{const $t=se.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:xe=>{d.value===D&&(ot(xe.t),nt.path(W),St.ctx.clearRect(),St.draw(W))},onComplete:()=>{}});$t.tween.start(),Zt.run(()=>d.value!==D?!1:($t.tween.update()||(nt.path(W),St.ctx.clearRect(),St.draw(W)),!0))})})}function re(){const D="InterpolatePathGroup";if(d.value==D||!n.value||!o.value)return;d.value=D;const E=new Vr({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),S=new Ee({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),B=new La({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),V=bs.polymorph([bs.fromShape(E),bs.fromShape(S),v,bs.fromShape(B)]),Z=V(0);n.value.getSVG().then(ot=>{ot.clear(),o.value.getCanvas().then(W=>{se.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:nt=>{d.value===D&&(V(nt.t),ot.path(Z),W.ctx.clearRect(),W.draw(Z))},onComplete:()=>{}}).startAuto()})})}const Dt=Ct.fromSVGPathD("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"),Te=+Dt.getTotalLength().toFixed(0),Gt=P(Te),ce=P(Math.floor(Te/2));function ze(D){Gt.value=D,Dt.setAttr("strokeDasharray",`${Gt.value} ${Gt.value}`),n.value.getSVG().then(E=>{E.path(Dt)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Dt)})}function He(D){ce.value=D,Dt.setAttr("strokeDashoffset",`${ce.value}`),n.value.getSVG().then(E=>{E.path(Dt)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Dt)})}function hs(){const D="StrokeDash";d.value==D||!n.value||!o.value||(d.value=D,Dt.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Gt.value} ${Gt.value}`,strokeDashoffset:`${ce.value}`}),n.value.getSVG().then(E=>{E.clear(),E.path(Dt)}),o.value.getCanvas().then(E=>{E.ctx.clearRect(),E.draw(Dt)}))}function b(){const D="StrokeDashAuto";d.value==D||!n.value||!o.value||(d.value=D,Dt.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(E=>{E.clear(),o.value.getCanvas().then(S=>{Dt.strokeDashToTween({duration:4e3,easeFunction:e.easeFunction,onUpdate:()=>{E.path(Dt),S.ctx.clearRect(),S.draw(Dt)}}).startAuto()})}))}function w(){const D="StrokeDashGroupParallelAuto";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{v.setAttrs({stroke:"none"}),E.clear(),o.value.getCanvas().then(S=>{S.ctx.clearRect(),v.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{v.setAttrs({stroke:Fe()})},onGroupUpdate:()=>{E.path(v),S.ctx.clearRect(),S.draw(v)}}).startAuto()})}))}function z(){const D="StrokeDashGroupSequenceAuto";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{v.setAttrs({stroke:"none"}),E.clear(),o.value.getCanvas().then(S=>{S.ctx.clearRect(),v.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{v.setAttrs({stroke:Fe()})},onGroupUpdate:()=>{E.path(v),S.ctx.clearRect(),S.draw(v)}}).startAuto()})}))}const F=new se,G=new se;function et(){const D="AnimateToCSS";d.value=D,F.fromDOM([a.value,l.value,c.value]),G.fromDOM([u.value])}let J=0;function U(){switch(m.value){case"slideLeft":F.toCSS("slideLeft",{},++J%3),G.toCSS("slideLeft",{direction:J%2==0?"normal":"reverse"});break;case"slideRight":F.toCSS("slideRight",{easeName:"ease",dur:1e3},--J%3),G.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":F.toCSS("slideDown",{easeName:"ease-out",dur:500},++J%3),G.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":F.toCSS("slideUp",{easeName:"ease-in",dur:500},++J%3),G.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":F.toCSS("flipLeft",{easeName:"linear",dur:1e3},++J%3),G.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":F.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++J%3),G.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":F.toCSS("flipDown",{easeName:"ease",dur:1e3},++J%3),G.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":F.toCSS("flipUp",{easeName:"ease",dur:1e3},++J%3),G.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":F.toCSS("popIn",{easeName:"ease",dur:1e3},++J%3),G.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":F.toCSS("popOut",{easeName:"ease",dur:1e3},++J%3),G.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":F.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},J++%3),G.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let tt;function K(){const D="AnimateToTweenCSS";d.value=D,H.setStyle(f.value,{transform:""})}function lt(){tt||(tt=new ve(h.value));const D=50,E=0,S=0,B=0,V=tt.width-D,Z=tt.height-D,ot=tt.height-D,W=tt.width/2-D/2,nt=tt.height/2-D/2,St={},$t={};switch(m.value){case"translateTo":Object.assign(St,{translateTo:[E,S]}),Object.assign($t,{translateTo:[V,Z]});break;case"translateXTo":Object.assign(St,{translateXTo:E}),Object.assign($t,{translateXTo:V});break;case"translateYTo":Object.assign(St,{translateYTo:S}),Object.assign($t,{translateYTo:Z});break;case"translateZTo":Object.assign(St,{translateTo:[W,nt],translateZTo:B}),Object.assign($t,{translateTo:[W,nt],translateZTo:ot});break;case"translate3dTo":Object.assign(St,{translate3dTo:[W-50,nt-50,B]}),Object.assign($t,{translate3dTo:[W+50,nt+50,ot]});break;case"rotateTo":Object.assign(St,{translateTo:[W,nt],rotateTo:0}),Object.assign($t,{translateTo:[W,nt],rotateTo:360});break;case"rotateXTo":Object.assign(St,{translateTo:[W,nt],rotateXTo:0}),Object.assign($t,{translateTo:[W,nt],rotateXTo:180});break;case"rotateYTo":Object.assign(St,{translateTo:[W,nt],rotateYTo:0}),Object.assign($t,{translateTo:[W,nt],rotateYTo:180});break;case"rotateZTo":Object.assign(St,{translateTo:[W,nt],rotateZTo:0}),Object.assign($t,{translateTo:[W,nt],rotateZTo:360});break;case"rotate3dTo":Object.assign(St,{translateTo:[W,nt],rotate3dTo:[0,0,0]}),Object.assign($t,{translateTo:[W,nt],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(St,{translateTo:[W,nt],scaleTo:1}),Object.assign($t,{translateTo:[W,nt],scaleTo:3});break;case"scaleXTo":Object.assign(St,{translateTo:[W,nt],scaleXTo:1}),Object.assign($t,{translateTo:[W,nt],scaleXTo:3});break;case"scaleYTo":Object.assign(St,{translateTo:[W,nt],scaleYTo:1}),Object.assign($t,{translateTo:[W,nt],scaleYTo:3});break;case"scaleZTo":Object.assign(St,{translateTo:[W,nt],scaleZTo:1}),Object.assign($t,{translateTo:[W,nt],scaleZTo:3});break;case"scale3dTo":Object.assign(St,{translateTo:[W,nt],scale3dTo:[1,1,1]}),Object.assign($t,{translateTo:[W,nt],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(St,{translateTo:[W,nt],skewTo:0}),Object.assign($t,{translateTo:[W,nt],skewTo:30});break;case"skewXTo":Object.assign(St,{translateTo:[W,nt],skewXTo:0}),Object.assign($t,{translateTo:[W,nt],skewXTo:30});break;case"skewYTo":Object.assign(St,{translateTo:[W,nt],skewYTo:0}),Object.assign($t,{translateTo:[W,nt],skewYTo:30});break;case"perspective":Object.assign(St,{translateTo:[W,nt],perspective:0}),Object.assign($t,{translateTo:[W,nt],perspective:1e3});break}se.toTweenCSS(f.value,St,$t,{duration:2e3,easeFunction:e.easeFunction,onUpdate:xe=>{}}).startAuto()}function gt(){const D="Rosetta";d.value==D||!n.value||!o.value||(d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(S=>{const B=Ct.generateRosetta(120,120,55,35,6);B.setAttr({stroke:"none",fill:"none"});const V=new Ee({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),Z=new Ct({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});E.clear(),S.ctx.clearRect(),se.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:ot=>{if(d.value!==D)return;const W=B.trailPath(Z,ot.progress);V.x=W.x,V.y=W.y,V.degree=W.alpha+90,E.path([Z,V]),S.ctx.clearRect(),S.draw([Z,V])}}).startAuto()})}))}function ft(){const D="Confetti_"+ye();d.value=D,n.value.getSVG().then(E=>{o.value.getCanvas().then(S=>{E.clear();const B=new Tg(S.app.width,S.app.height,{scalar:1});Zt.run(()=>d.value!==D?!1:(E.path(B),S.ctx.clearRect(),S.draw(B),!0))})})}const Tt=[{name:"PathDGroup",type:"PathDGroup",onClick:X},{name:"Shapes",type:"Shapes",onClick:mt},{name:"Arrow",type:"Arrow",onClick:bt},{name:"targetToAfterDragFree",type:"PointEase",onClick:yt},{name:"ballCollision",type:"BallCollision",onClick:At},{name:"balls",type:"Balls",onClick:zt},{name:"万有引力",type:"Gravitate",onClick:Kt},{name:"行星",type:"SunPlanet",onClick:Qt},{name:"SpringMass",type:"SpringMass",onClick:ne},{name:"WalkMan",type:"WalkMan",onClick:Yt},{name:"俄罗斯方块",type:"RectGame",onClick:xt},{name:"喷泉",type:"PointWater",onClick:it},{name:"链式弹簧",type:"PointSpringChain",onClick:q},{name:"多点弹簧",type:"PointSpringMulti",onClick:Et},{name:"连接弹簧",type:"PointSpringConnect",onClick:A},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:jt},{name:"Points - random",type:"PointsRandom",onClick:le},{name:"线条动画",type:"InterpolatePath",onClick:ie},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:re},{name:"strokeDash",type:"StrokeDash",onClick:hs},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:b},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:w},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:z},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:et},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:K},{name:"扇形",type:"Sector",onClick:_t},{name:"rosetta",type:"Rosetta",onClick:gt},{name:"Confetti",type:"Confetti",onClick:ft}],Nt=[{type:"slideLeft",onClick:()=>g("slideLeft")},{type:"slideRight",onClick:()=>g("slideRight")},{type:"slideDown",onClick:()=>g("slideDown")},{type:"slideUp",onClick:()=>g("slideUp")},{type:"flipLeft",onClick:()=>g("flipLeft")},{type:"flipRight",onClick:()=>g("flipRight")},{type:"flipDown",onClick:()=>g("flipDown")},{type:"flipUp",onClick:()=>g("flipUp")},{type:"popIn",onClick:()=>g("popIn")},{type:"popOut",onClick:()=>g("popOut")},{type:"rotate",onClick:()=>g("rotate")}],Xt=[{type:"translateTo",onClick:()=>g("translateTo")},{type:"translateXTo",onClick:()=>g("translateXTo")},{type:"translateYTo",onClick:()=>g("translateYTo")},{type:"translateZTo",onClick:()=>g("translateZTo")},{type:"translate3dTo",onClick:()=>g("translate3dTo")},{type:"rotateTo",onClick:()=>g("rotateTo")},{type:"rotateXTo",onClick:()=>g("rotateXTo")},{type:"rotateYTo",onClick:()=>g("rotateYTo")},{type:"rotateZTo",onClick:()=>g("rotateZTo")},{type:"rotate3dTo",onClick:()=>g("rotate3dTo")},{type:"scaleTo",onClick:()=>g("scaleTo")},{type:"scaleXTo",onClick:()=>g("scaleXTo")},{type:"scaleYTo",onClick:()=>g("scaleYTo")},{type:"scaleZTo",onClick:()=>g("scaleZTo")},{type:"scale3dTo",onClick:()=>g("scale3dTo")},{type:"skewTo",onClick:()=>g("skewTo")},{type:"skewXTo",onClick:()=>g("skewXTo")},{type:"skewYTo",onClick:()=>g("skewYTo")},{type:"perspective",onClick:()=>g("perspective")}];function Jt(){return new Promise(D=>{o.value.getCanvas().then(E=>{Cn.downloadFromSVGString(E.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{D()},3e3)})})})}return ee(()=>{}),t({}),(D,E)=>(O(),R(Bt,null,[_("div",Tv,[ut(de,{asyncClick:Jt},{default:Ft(()=>[Wt(" downloadFromCanvasToSVG ")]),_:1})]),_("div",Ov,[(O(),R(Bt,null,Se(Tt,S=>ut(de,{key:S.type,item:S,onClick:S.onClick,stylePattern:d.value.indexOf(S.type)>=0?"fullfilled":"outline"},{default:Ft(()=>[Wt(pt(S.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Ns(_("div",Iv,[(O(),R(Bt,null,Se(Nt,S=>ut(de,{key:S.type,item:S,onClick:S.onClick,stylePattern:m.value==S.type?"fullfilled":"outline"},{default:Ft(()=>[Wt(pt(S.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ys,d.value=="AnimateToCSS"]]),Ns(_("div",null," 当前缓动函数:"+pt(e.easeName),513),[[ys,d.value=="AnimateToTweenCSS"]]),Ns(_("div",Pv,[(O(),R(Bt,null,Se(Xt,S=>ut(de,{key:S.type,item:S,onClick:S.onClick,stylePattern:m.value==S.type?"fullfilled":"outline"},{default:Ft(()=>[Wt(pt(S.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ys,d.value=="AnimateToTweenCSS"]]),Ns(_("div",Dv,[_("div",$v,[_("div",null,"stroke-dasharray: "+pt(Gt.value)+","+pt(Gt.value),1),ut(On,{max:988,defaultValue:Gt.value,onChange:ze},null,8,["defaultValue"])]),_("div",Nv,[_("div",null,"stroke-dashoffset: "+pt(ce.value),1),ut(On,{max:988,defaultValue:ce.value,onChange:He},null,8,["defaultValue"])])],512),[[ys,d.value=="StrokeDash"]]),Ns(_("div",Mv,[ut(Br,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[ys,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Ns(_("div",Rv,[ut(ns,{ref_key:"canvasRef",ref:o,bgColor:"#333333"},null,512)],512),[[ys,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Ns(_("div",Av,[_("div",zv,[_("div",{ref_key:"divOneRef",ref:a},"1",512),_("div",{ref_key:"divTwoRef",ref:l},"2",512),_("div",{ref_key:"divThreeRef",ref:c},"3",512)]),_("div",Lv,[_("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[ys,d.value=="AnimateToCSS"]]),Ns(_("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[_("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[ys,d.value=="AnimateToTweenCSS"]])],64))}}),jh=rt(Vv,[["styles",[`.btns[data-v-fe3ab207]{display:flex;flex-wrap:wrap}.btns[data-v-fe3ab207]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-fe3ab207]{padding-top:10px;background-color:#dbffff}.css-area[data-v-fe3ab207]{background-color:#fff}.animate-to-css-group[data-v-fe3ab207]{position:relative;width:160px;height:160px;margin:20px;overflow:hidden}.animate-to-css-group>div[data-v-fe3ab207]{width:160px;height:160px;line-height:160px;background-color:#efefef;border:1px solid #333333;text-align:center}.tween-css-target[data-v-fe3ab207]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
162
+ `]],["__scopeId","data-v-fe3ab207"]]),Fv=["fill"],Gv=["fill"],Bv=st({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{style:$(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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,Fv),_("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,Gv)],4))}}),Yv=rt(Bv,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
163
+ `]],["__scopeId","data-v-8fe3f9fd"]]),Wa=s=>(Ds("data-v-7aebdea0"),s=s(),$s(),s),jv=[Wa(()=>_("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)),Wa(()=>_("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)),Wa(()=>_("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))],Xv=st({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{style:$(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},jv,4))}}),Uv=rt(Xv,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
164
+ `]],["__scopeId","data-v-7aebdea0"]]),Hv=["width","height"],Wv=["fill"],Zv=st({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[_("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,Wv)],8,Hv))}}),qv=rt(Zv,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
165
+ `]],["__scopeId","data-v-8745630f"]]),Kv=["width","height"],Qv=["fill"],Jv=st({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:Y.colorGrayCC}},setup(s){const t=s;return(e,n)=>(O(),R("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[_("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,Qv)],8,Kv))}}),tb=rt(Jv,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
166
+ `]],["__scopeId","data-v-0e77f86d"]]),eb={class:"loading-1"},sb=st({__name:"Loading1.ce",props:{color:{default:Y.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(O(),R("div",eb,[_("div",{class:"rect1",style:e}),_("div",{class:"rect2",style:e}),_("div",{class:"rect3",style:e}),_("div",{class:"rect4",style:e}),_("div",{class:"rect5",style:e})]))}}),nb=rt(sb,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
167
+ `]],["__scopeId","data-v-f7deb691"]]),ib={class:"loading-2"},rb=st({__name:"Loading2.ce",props:{color:{default:Y.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(O(),R("div",ib,[_("div",{class:"dot1",style:e}),_("div",{class:"dot2",style:e})]))}}),ob=rt(rb,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
168
+ `]],["__scopeId","data-v-945f5b2e"]]),ab=st({__name:"Loading3.ce",props:{fromColor:{default:Y.colorPrimary},toColor:{default:Y.colorRed}},setup(s){const t=s,e=`
172
169
  @keyframes snake {
173
170
  0% {
174
171
  opacity: 0.3;
@@ -178,7 +175,7 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
178
175
  50% {
179
176
  opacity: 1;
180
177
  transform: translateY(-10px);
181
- background-color: ${e.toColor};
178
+ background-color: ${t.toColor};
182
179
  box-shadow: 0px 20px 3px rgba(0, 0, 0, 0.05);
183
180
  }
184
181
  100% {
@@ -187,31 +184,61 @@ Expected function or array of functions, received type ${typeof s}.`),bt)}functi
187
184
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
188
185
  }
189
186
  }
190
- `,n={backgroundColor:e.fromColor,width:"20%"},i=P();return Ee(i,()=>{i.value&&K.setStyleSheet(t,i.value)}),Us(()=>{}),Qe(()=>{}),(r,o)=>(I(),V("div",{class:"loading-3",ref_key:"loading3",ref:i},[_("div",{class:"dot",style:M({...n,left:"0"})},null,4),_("div",{class:"dot",style:M({...n,left:"20%"})},null,4),_("div",{class:"dot",style:M({...n,left:"40%"})},null,4),_("div",{class:"dot",style:M({...n,left:"60%"})},null,4),_("div",{class:"dot",style:M({...n,left:"80%"})},null,4)],512))}}),Y1=ae(j1,[["styles",[`.loading-3[data-v-47c42038]{position:relative;display:inline-block;width:100%;height:100%;text-align:center;animation:rotate 2s infinite linear}.dot[data-v-47c42038]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-47c42038]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-47c42038]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-47c42038]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-47c42038]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-47c42038]:nth-child(5){animation-delay:.8s}
191
- `]],["__scopeId","data-v-47c42038"]]),H1={class:"loading-4"},W1=oe({__name:"Loading4.ce",props:{color:{default:j.colorPrimary}},setup(s){const t={backgroundColor:s.color};return(n,i)=>(I(),V("div",H1,[_("div",{class:"rect",style:t})]))}}),X1=ae(W1,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
192
- `]],["__scopeId","data-v-b2b74418"]]),U1={class:"loading-5"},q1=oe({__name:"Loading5.ce",props:{color:{default:j.colorPrimary}},setup(s){const t={backgroundColor:s.color};return(n,i)=>(I(),V("div",U1,[_("div",{class:"cube1",style:t}),_("div",{class:"cube2",style:t})]))}}),Z1=ae(q1,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
193
- `]],["__scopeId","data-v-2e49b1eb"]]),K1={class:"loading-6"},Q1=oe({__name:"Loading6.ce",props:{color:{default:j.colorPrimary}},setup(s){const t={backgroundColor:s.color};return(n,i)=>(I(),V("div",K1,[_("div",{style:t}),_("div",{style:t}),_("div",{style:t})]))}}),J1=ae(Q1,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
194
- `]],["__scopeId","data-v-0e771b32"]]),eb=[(s=>(Ws("data-v-c9759bdc"),s=s(),Xs(),s))(()=>_("div",null,null,-1))],tb=oe({__name:"Loading7.ce",props:{color:{default:j.colorPrimary}},setup(s){const e=s,t=`
187
+ `,n={backgroundColor:t.fromColor,width:"20%"},i=P();return kt(i,()=>{i.value&&H.setStyleSheet(e,i.value)}),qs(()=>{}),ee(()=>{}),(r,o)=>(O(),R("div",{class:"loading-3",ref_key:"loading3",ref:i},[_("div",{class:"dot",style:$({...n,left:"0"})},null,4),_("div",{class:"dot",style:$({...n,left:"20%"})},null,4),_("div",{class:"dot",style:$({...n,left:"40%"})},null,4),_("div",{class:"dot",style:$({...n,left:"60%"})},null,4),_("div",{class:"dot",style:$({...n,left:"80%"})},null,4)],512))}}),lb=rt(ab,[["styles",[`.loading-3[data-v-58c7849d]{position:relative;display:inline-block;width:100%;height:100%;text-align:center}.dot[data-v-58c7849d]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-58c7849d]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-58c7849d]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-58c7849d]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-58c7849d]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-58c7849d]:nth-child(5){animation-delay:.8s}
188
+ `]],["__scopeId","data-v-58c7849d"]]),cb={class:"loading-4"},ub=st({__name:"Loading4.ce",props:{color:{default:Y.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(O(),R("div",cb,[_("div",{class:"rect",style:e})]))}}),hb=rt(ub,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
189
+ `]],["__scopeId","data-v-b2b74418"]]),db={class:"loading-5"},fb=st({__name:"Loading5.ce",props:{color:{default:Y.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(O(),R("div",db,[_("div",{class:"cube1",style:e}),_("div",{class:"cube2",style:e})]))}}),pb=rt(fb,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
190
+ `]],["__scopeId","data-v-2e49b1eb"]]),mb={class:"loading-6"},gb=st({__name:"Loading6.ce",props:{color:{default:Y.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(O(),R("div",mb,[_("div",{style:e}),_("div",{style:e}),_("div",{style:e})]))}}),yb=rt(gb,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
191
+ `]],["__scopeId","data-v-0e771b32"]]),vb=[(s=>(Ds("data-v-c9759bdc"),s=s(),$s(),s))(()=>_("div",null,null,-1))],bb=st({__name:"Loading7.ce",props:{color:{default:Y.colorPrimary}},setup(s){const t=s,e=`
195
192
  :root {
196
- --loading-7-bg-color: ${e.color}
193
+ --loading-7-bg-color: ${t.color}
197
194
  }
198
195
  :host {
199
- --loading-7-bg-color: ${e.color}
196
+ --loading-7-bg-color: ${t.color}
200
197
  }
201
- `,n=P();return Ee(n,()=>{n.value&&K.setStyleSheet(t,n.value)}),Us(()=>{}),Qe(()=>{}),(i,r)=>(I(),V("div",{class:"loading-7",ref_key:"loading7",ref:n},eb,512))}}),sb=ae(tb,[["styles",[`.loading-7[data-v-c9759bdc]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-c9759bdc]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-c9759bdc]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-c9759bdc .5s linear infinite}.loading-7>div[data-v-c9759bdc]:after{content:"";width:100%;height:100%;animation:animate-c9759bdc .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-c9759bdc{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-c9759bdc{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
202
- `]],["__scopeId","data-v-c9759bdc"]]),nb={class:"loading-8"},ib={viewBox:"25 25 50 50"},rb=oe({__name:"Loading8.ce",props:{color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("div",nb,[(I(),V("svg",ib,[_("circle",{cx:"50",cy:"50",r:"20",style:M(["stroke: "+e.color])},null,4)]))]))}}),Fh=ae(rb,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
203
- `]],["__scopeId","data-v-51a259a7"]]),ob={class:"loading-9"},ab=oe({__name:"Loading9.ce",props:{color:{default:j.colorPrimary}},setup(s){const t={borderTopColor:s.color};return(n,i)=>(I(),V("div",ob,[_("div",{style:t})]))}}),lb=ae(ab,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
204
- `]],["__scopeId","data-v-ee782ac8"]]),cb={class:"loading-10"},ub={viewBox:"0 0 50 50"},hb=oe({__name:"Loading10.ce",props:{color:{default:j.colorPrimary}},setup(s){const e=s;return(t,n)=>(I(),V("div",cb,[(I(),V("svg",ub,[_("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:M(["stroke: rgba(0,0,0,0.1)"])},null,4),_("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:M(["fill: "+e.color])},null,4)]))]))}}),db=ae(hb,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
205
- `]],["__scopeId","data-v-984ad184"]]),fb={class:"loading-11",ref:"loading11"},pb={class:"container container-1"},mb={class:"container container-2"},gb={class:"container container-3"},vb=oe({__name:"Loading11.ce",props:{color:{default:j.colorPrimary},width:{default:"0.8em"}},setup(s){const e=s;return(t,n)=>(I(),V("div",fb,[_("div",{class:"loading-11-inner",style:M({width:e.width,height:e.width})},[_("div",pb,[_("div",{class:"dot dot-1",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-2",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-3",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-4",style:M({backgroundColor:e.color})},null,4)]),_("div",mb,[_("div",{class:"dot dot-1",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-2",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-3",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-4",style:M({backgroundColor:e.color})},null,4)]),_("div",gb,[_("div",{class:"dot dot-1",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-2",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-3",style:M({backgroundColor:e.color})},null,4),_("div",{class:"dot dot-4",style:M({backgroundColor:e.color})},null,4)])],4)],512))}}),Gh=ae(vb,[["styles",[`.loading-11[data-v-7fb118c9]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-11-inner[data-v-7fb118c9]{position:relative}.loading-11-inner .container[data-v-7fb118c9]{position:absolute;width:100%;height:100%}.loading-11-inner .container .dot[data-v-7fb118c9]{width:20%;height:20%;border-radius:100%;position:absolute;animation:bouncedelay-7fb118c9 1.2s infinite ease-in-out;animation-fill-mode:both}.loading-11-inner .container .dot-1[data-v-7fb118c9]{top:0;left:0}.loading-11-inner .container .dot-2[data-v-7fb118c9]{top:0;right:0}.loading-11-inner .container .dot-3[data-v-7fb118c9]{right:0;bottom:0}.loading-11-inner .container .dot-4[data-v-7fb118c9]{left:0;bottom:0}.loading-11-inner .container-1 .dot-2[data-v-7fb118c9]{animation-delay:-.9s}.loading-11-inner .container-1 .dot-3[data-v-7fb118c9]{animation-delay:-.6s}.loading-11-inner .container-1 .dot-4[data-v-7fb118c9]{animation-delay:-.3s}.loading-11-inner .container-2[data-v-7fb118c9]{transform:rotate(45deg)}.loading-11-inner .container-2 .dot-1[data-v-7fb118c9]{animation-delay:-1.1s}.loading-11-inner .container-2 .dot-2[data-v-7fb118c9]{animation-delay:-.8s}.loading-11-inner .container-2 .dot-3[data-v-7fb118c9]{animation-delay:-.5s}.loading-11-inner .container-2 .dot-4[data-v-7fb118c9]{animation-delay:-.2s}.loading-11-inner .container-3[data-v-7fb118c9]{transform:rotate(90deg)}.loading-11-inner .container-3 .dot-1[data-v-7fb118c9]{animation-delay:-1s}.loading-11-inner .container-3 .dot-2[data-v-7fb118c9]{animation-delay:-.7s}.loading-11-inner .container-3 .dot-3[data-v-7fb118c9]{animation-delay:-.4s}.loading-11-inner .container-3 .dot-4[data-v-7fb118c9]{animation-delay:-.1s}@keyframes bouncedelay-7fb118c9{0%,80%,to{transform:scale(.3)}40%{transform:scale(1)}}
206
- `]],["__scopeId","data-v-7fb118c9"]]),yb={class:"face front"},bb={class:"face back"},_b=ae(oe({customOptions:{},inheritAttrs:!0,__name:"CardFlip.ce",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:e,emit:t}){const n=s,i=t,r=P(!1),o=()=>{r.value=!r.value,i("click",r.value)};return e({}),(a,l)=>(I(),V("div",{class:"card-flip-scene",style:M({perspective:n.perspective})},[_("div",{class:_t(["card",[n.type,{flip:r.value}]]),style:M({transition:`transform ${n.dur}ms`}),onClick:o},[_("div",yb,[ze(a.$slots,"front",{},()=>[He("front")],!0)]),_("div",bb,[ze(a.$slots,"back",{},()=>[He("back")],!0)])],6)],4))}}),[["styles",[`.card-flip-scene[data-v-1ee90a6e]{width:100%;height:100%;cursor:pointer}.card[data-v-1ee90a6e]{width:100%;height:100%;position:relative;transform-style:preserve-3d}.card.slide[data-v-1ee90a6e]{transform-origin:center right}.card.flip[data-v-1ee90a6e]{transform:rotateY(180deg)}.card.slide.flip[data-v-1ee90a6e]{transform:translate(-100%) rotateY(-180deg)}.face[data-v-1ee90a6e]{position:absolute;height:100%;width:100%;backface-visibility:hidden}.face[data-v-1ee90a6e]>:nth-child(1){display:block;width:100%;height:100%}.back[data-v-1ee90a6e]{transform:rotateY(180deg)}
207
- `]],["__scopeId","data-v-1ee90a6e"]]),xb=["onClick"],wb=["stroke","fill"],Cb=["stroke","fill"],Sb=["stroke"],kb=oe({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:j.colorGrayFF},colorBgSelected:{default:j.colorPrimary},colorBgDisabled:{default:j.colorGrayCC},colorBorder:{default:j.colorGrayCC},colorBorderSelected:{default:j.colorPrimary},colorBorderDisabled:{default:j.colorGrayCC},colorPath:{default:j.colorGrayFF},colorPathDisabled:{default:j.colorGrayFF},fontSize:{default:j.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:e}){const t=s,n=e;let i=P(t.initIndex??0);Ee(i,function(){n("change",t.options[i.value])});const r=function(o){t.disabledIndexs&&t.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(I(!0),V(je,null,St(o.options,(l,c)=>(I(),V("div",{class:_t(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:M(["margin-left:"+(c>0?t.itemPadding:0)])},[ze(o.$slots,"default",{label:l,index:c},()=>[(I(),V("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:M(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Pe("",!0):(I(),V("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i)==c?o.colorBgSelected:o.colorBg},null,8,wb)),t.isRounded?(I(),V("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i)==c?o.colorBgSelected:o.colorBg},null,8,Cb)):Pe("",!0),ke(i)==c?(I(),V("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Sb)):Pe("",!0)],4)),_("span",{style:M(["font-size:"+t.fontSize])},me(l),5)],!0)],14,xb))),128))}}),a2="",Bh=ae(kb,[["__scopeId","data-v-15ba52e8"]]),Eb=["onClick"],Tb=["stroke","fill"],Ob=["stroke","fill"],Pb=["stroke"],Ib=oe({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:j.colorGrayFF},colorBgSelected:{default:j.colorPrimary},colorBgDisabled:{default:j.colorGrayCC},colorBorder:{default:j.colorGrayCC},colorBorderSelected:{default:j.colorPrimary},colorBorderDisabled:{default:j.colorGrayCC},colorPath:{default:j.colorGrayFF},colorPathDisabled:{default:j.colorGrayFF},fontSize:{default:j.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:e}){const t=s,n=e;let i=kt(t.initIndexs??[]);Ee(i,function(){n("change",i.map(o=>t.options[o]))});const r=function(o){if(t.disabledIndexs&&t.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(I(!0),V(je,null,St(o.options,(l,c)=>(I(),V("div",{class:_t(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:M(["margin-left:"+(c>0?t.itemPadding:0)])},[ze(o.$slots,"default",{label:l,index:c},()=>[(I(),V("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:M(["margin-right:"+t.labelPadding,"width:"+t.itemWidth])},[t.isRounded?Pe("",!0):(I(),V("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,Tb)),t.isRounded?(I(),V("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:ke(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,Ob)):Pe("",!0),ke(i).findIndex(u=>u===c)>=0?(I(),V("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Pb)):Pe("",!0)],4)),_("span",{style:M(["font-size:"+t.fontSize])},me(l),5)],!0)],14,Eb))),128))}}),l2="",ja=ae(Ib,[["__scopeId","data-v-96939a11"]]),jh=ae(oe({customOptions:{RadioGroup:Bh,CheckboxGroup:ja,InputRange:Tn},inheritAttrs:!0,__name:"Cube.ce",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:e,emit:t}){const n=s,i=P(Math.floor(n.width/2)),r=`
198
+ `,n=P();return kt(n,()=>{n.value&&H.setStyleSheet(e,n.value)}),qs(()=>{}),ee(()=>{}),(i,r)=>(O(),R("div",{class:"loading-7",ref_key:"loading7",ref:n},vb,512))}}),_b=rt(bb,[["styles",[`.loading-7[data-v-c9759bdc]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-c9759bdc]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-c9759bdc]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-c9759bdc .5s linear infinite}.loading-7>div[data-v-c9759bdc]:after{content:"";width:100%;height:100%;animation:animate-c9759bdc .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-c9759bdc{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-c9759bdc{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
199
+ `]],["__scopeId","data-v-c9759bdc"]]),xb={class:"loading-8"},wb={viewBox:"25 25 50 50"},kb=st({__name:"Loading8.ce",props:{color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("div",xb,[(O(),R("svg",wb,[_("circle",{cx:"50",cy:"50",r:"20",style:$(["stroke: "+t.color])},null,4)]))]))}}),Xh=rt(kb,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
200
+ `]],["__scopeId","data-v-51a259a7"]]),Cb={class:"loading-9"},Sb=st({__name:"Loading9.ce",props:{color:{default:Y.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(O(),R("div",Cb,[_("div",{style:e})]))}}),Eb=rt(Sb,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
201
+ `]],["__scopeId","data-v-ee782ac8"]]),Tb={class:"loading-10"},Ob={viewBox:"0 0 50 50"},Ib=st({__name:"Loading10.ce",props:{color:{default:Y.colorPrimary}},setup(s){const t=s;return(e,n)=>(O(),R("div",Tb,[(O(),R("svg",Ob,[_("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:$(["stroke: rgba(0,0,0,0.1)"])},null,4),_("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:$(["fill: "+t.color])},null,4)]))]))}}),Pb=rt(Ib,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
202
+ `]],["__scopeId","data-v-984ad184"]]),Db={class:"loading-11",ref:"loading11"},$b={class:"container container-1"},Nb={class:"container container-2"},Mb={class:"container container-3"},Rb=st({__name:"Loading11.ce",props:{color:{default:Y.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(O(),R("div",Db,[_("div",{class:"loading-11-inner",style:$({width:t.width,height:t.width})},[_("div",$b,[_("div",{class:"dot dot-1",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-2",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-3",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-4",style:$({backgroundColor:t.color})},null,4)]),_("div",Nb,[_("div",{class:"dot dot-1",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-2",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-3",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-4",style:$({backgroundColor:t.color})},null,4)]),_("div",Mb,[_("div",{class:"dot dot-1",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-2",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-3",style:$({backgroundColor:t.color})},null,4),_("div",{class:"dot dot-4",style:$({backgroundColor:t.color})},null,4)])],4)],512))}}),Uh=rt(Rb,[["styles",[`.loading-11[data-v-7fb118c9]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-11-inner[data-v-7fb118c9]{position:relative}.loading-11-inner .container[data-v-7fb118c9]{position:absolute;width:100%;height:100%}.loading-11-inner .container .dot[data-v-7fb118c9]{width:20%;height:20%;border-radius:100%;position:absolute;animation:bouncedelay-7fb118c9 1.2s infinite ease-in-out;animation-fill-mode:both}.loading-11-inner .container .dot-1[data-v-7fb118c9]{top:0;left:0}.loading-11-inner .container .dot-2[data-v-7fb118c9]{top:0;right:0}.loading-11-inner .container .dot-3[data-v-7fb118c9]{right:0;bottom:0}.loading-11-inner .container .dot-4[data-v-7fb118c9]{left:0;bottom:0}.loading-11-inner .container-1 .dot-2[data-v-7fb118c9]{animation-delay:-.9s}.loading-11-inner .container-1 .dot-3[data-v-7fb118c9]{animation-delay:-.6s}.loading-11-inner .container-1 .dot-4[data-v-7fb118c9]{animation-delay:-.3s}.loading-11-inner .container-2[data-v-7fb118c9]{transform:rotate(45deg)}.loading-11-inner .container-2 .dot-1[data-v-7fb118c9]{animation-delay:-1.1s}.loading-11-inner .container-2 .dot-2[data-v-7fb118c9]{animation-delay:-.8s}.loading-11-inner .container-2 .dot-3[data-v-7fb118c9]{animation-delay:-.5s}.loading-11-inner .container-2 .dot-4[data-v-7fb118c9]{animation-delay:-.2s}.loading-11-inner .container-3[data-v-7fb118c9]{transform:rotate(90deg)}.loading-11-inner .container-3 .dot-1[data-v-7fb118c9]{animation-delay:-1s}.loading-11-inner .container-3 .dot-2[data-v-7fb118c9]{animation-delay:-.7s}.loading-11-inner .container-3 .dot-3[data-v-7fb118c9]{animation-delay:-.4s}.loading-11-inner .container-3 .dot-4[data-v-7fb118c9]{animation-delay:-.1s}@keyframes bouncedelay-7fb118c9{0%,80%,to{transform:scale(.3)}40%{transform:scale(1)}}
203
+ `]],["__scopeId","data-v-7fb118c9"]]),Ab={class:"face front"},zb={class:"face back"},Lb=rt(st({customOptions:{},inheritAttrs:!0,__name:"CardFlip.ce",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=P(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(O(),R("div",{class:"card-flip-scene",style:$({perspective:n.perspective})},[_("div",{class:he(["card",[n.type,{flip:r.value}]]),style:$({transition:`transform ${n.dur}ms`}),onClick:o},[_("div",Ab,[Pt(a.$slots,"front",{},()=>[Wt("front")],!0)]),_("div",zb,[Pt(a.$slots,"back",{},()=>[Wt("back")],!0)])],6)],4))}}),[["styles",[`.card-flip-scene[data-v-1ee90a6e]{width:100%;height:100%;cursor:pointer}.card[data-v-1ee90a6e]{width:100%;height:100%;position:relative;transform-style:preserve-3d}.card.slide[data-v-1ee90a6e]{transform-origin:center right}.card.flip[data-v-1ee90a6e]{transform:rotateY(180deg)}.card.slide.flip[data-v-1ee90a6e]{transform:translate(-100%) rotateY(-180deg)}.face[data-v-1ee90a6e]{position:absolute;height:100%;width:100%;backface-visibility:hidden}.face[data-v-1ee90a6e]>:nth-child(1){display:block;width:100%;height:100%}.back[data-v-1ee90a6e]{transform:rotateY(180deg)}
204
+ `]],["__scopeId","data-v-1ee90a6e"]]),Vb=["onClick"],Fb=["stroke","fill"],Gb=["stroke","fill"],Bb=["stroke"],Yb=st({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:Y.colorGrayFF},colorBgSelected:{default:Y.colorPrimary},colorBgDisabled:{default:Y.colorGrayCC},colorBorder:{default:Y.colorGrayCC},colorBorderSelected:{default:Y.colorPrimary},colorBorderDisabled:{default:Y.colorGrayCC},colorPath:{default:Y.colorGrayFF},colorPathDisabled:{default:Y.colorGrayFF},fontSize:{default:Y.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=P(e.initIndex??0);kt(i,function(){n("change",e.options[i.value])});const r=function(o){e.disabledIndexs&&e.disabledIndexs.findIndex(a=>a==o)>=0||(i.value=o)};return(o,a)=>(O(!0),R(Bt,null,Se(o.options,(l,c)=>(O(),R("div",{class:he(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:$(["margin-left:"+(c>0?e.itemPadding:0)])},[Pt(o.$slots,"default",{label:l,index:c},()=>[(O(),R("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:$(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?It("",!0):(O(),R("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i)==c?o.colorBgSelected:o.colorBg},null,8,Fb)),e.isRounded?(O(),R("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i)==c?o.colorBgSelected:o.colorBg},null,8,Gb)):It("",!0),wt(i)==c?(O(),R("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Bb)):It("",!0)],4)),_("span",{style:$(["font-size:"+e.fontSize])},pt(l),5)],!0)],14,Vb))),128))}}),D2="",Hh=rt(Yb,[["__scopeId","data-v-15ba52e8"]]),jb=["onClick"],Xb=["stroke","fill"],Ub=["stroke","fill"],Hb=["stroke"],Wb=st({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:Y.colorGrayFF},colorBgSelected:{default:Y.colorPrimary},colorBgDisabled:{default:Y.colorGrayCC},colorBorder:{default:Y.colorGrayCC},colorBorderSelected:{default:Y.colorPrimary},colorBorderDisabled:{default:Y.colorGrayCC},colorPath:{default:Y.colorGrayFF},colorPathDisabled:{default:Y.colorGrayFF},fontSize:{default:Y.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=oe(e.initIndexs??[]);kt(i,function(){n("change",i.map(o=>e.options[o]))});const r=function(o){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=i.findIndex(l=>l===o);a>=0?i.splice(a,1):i.push(o)};return(o,a)=>(O(!0),R(Bt,null,Se(o.options,(l,c)=>(O(),R("div",{class:he(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:$(["margin-left:"+(c>0?e.itemPadding:0)])},[Pt(o.$slots,"default",{label:l,index:c},()=>[(O(),R("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:$(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?It("",!0):(O(),R("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,Xb)),e.isRounded?(O(),R("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:wt(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,Ub)):It("",!0),wt(i).findIndex(u=>u===c)>=0?(O(),R("path",{key:2,d:"m7 13l3 3 7-7",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorPathDisabled:o.colorPath,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Hb)):It("",!0)],4)),_("span",{style:$(["font-size:"+e.fontSize])},pt(l),5)],!0)],14,jb))),128))}}),$2="",Za=rt(Wb,[["__scopeId","data-v-96939a11"]]),Wh=rt(st({customOptions:{RadioGroup:Hh,CheckboxGroup:Za,InputRange:On},inheritAttrs:!0,__name:"Cube.ce",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=P(Math.floor(n.width/2)),r=`
208
205
  :root {
209
206
  --spin-cube-z: -${i.value}px;
210
207
  }
211
208
  :host {
212
209
  --spin-cube-z: -${i.value}px;
213
210
  }
214
- `,o=P();Ee(o,()=>{o.value&&K.setStyleSheet(r,o.value)});const a=P(n.perspective+"px"),l=S=>{a.value=S==2e3?"none":S+"px"},c=P("50%"),u=S=>{c.value=S+"%"},h=P("50%"),f=S=>{h.value=S+"%"},d=`translateZ(-${i.value}px)`,m=P(d),v=S=>{switch(S){case"front":m.value=d+" rotateY(0deg)";break;case"right":m.value=d+" rotateY(-90deg)";break;case"back":m.value=d+" rotateY(-180deg)";break;case"left":m.value=d+" rotateY(90deg)";break;case"top":m.value=d+" rotateX(-90deg)";break;case"bottom":m.value=d+" rotateX(90deg)";break;default:m.value=d;break}},b=P(!1),C=S=>{S.length?b.value=!0:b.value=!1},O=P("visible"),$=S=>{S.length?O.value="visible":O.value="hidden"};return e({}),(S,Y)=>(I(),V("div",{ref_key:"container",ref:o},[_("div",{class:"cube-scene",style:M({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[_("div",{class:_t(["cube",{spinning:b.value}]),style:M({transformStyle:"preserve-3d",transform:m.value,transition:`transform ${n.dur}ms`})},[_("div",{class:"face front",style:M({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:O.value})},[ze(S.$slots,"front",{},()=>[He("front")],!0)],4),_("div",{class:"face back",style:M({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:O.value})},[ze(S.$slots,"back",{},()=>[He("back")],!0)],4),_("div",{class:"face right",style:M({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:O.value})},[ze(S.$slots,"right",{},()=>[He("right")],!0)],4),_("div",{class:"face left",style:M({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:O.value})},[ze(S.$slots,"left",{},()=>[He("left")],!0)],4),_("div",{class:"face top",style:M({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:O.value})},[ze(S.$slots,"top",{},()=>[He("top")],!0)],4),_("div",{class:"face bottom",style:M({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:O.value})},[ze(S.$slots,"bottom",{},()=>[He("bottom")],!0)],4)],6)],4),_("div",null,[ue(Bh,{options:["front","right","back","left","top","bottom"],onChange:v})]),_("div",null,[ue(ja,{options:["Backface visible"],onChange:$})]),_("div",null,[ue(ja,{options:["spin cube"],onChange:C})]),_("div",null,[He(" perspective: "),ue(Tn,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),_("div",null,[He(" perspective-origin x: "),ue(Tn,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),_("div",null,[He(" perspective-origin y: "),ue(Tn,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),[["styles",[`.cube[data-v-5d61e216]{position:relative;width:100%;height:100%}.face[data-v-5d61e216]{position:absolute;width:100%;height:100%}.front[data-v-5d61e216]{background:hsla(0,100%,50%,.7)}.right[data-v-5d61e216]{background:hsla(60,100%,50%,.7)}.back[data-v-5d61e216]{background:hsla(120,100%,50%,.7)}.left[data-v-5d61e216]{background:hsla(180,100%,50%,.7)}.top[data-v-5d61e216]{background:hsla(240,100%,50%,.7)}.bottom[data-v-5d61e216]{background:hsla(300,100%,50%,.7)}.spinning[data-v-5d61e216]{animation:spinCube-5d61e216 8s infinite ease-in-out}@keyframes spinCube-5d61e216{0%{transform:translateZ(var(--spin-cube-z)) rotateX(0) rotateY(0)}to{transform:translateZ(var(--spin-cube-z)) rotateX(360deg) rotateY(360deg)}}
215
- `]],["__scopeId","data-v-5d61e216"]]),Db=s=>(Ws("data-v-c2869a68"),s=s(),Xs(),s),Nb={class:"ring-indicator"},$b={class:"ring-text"},Mb=Db(()=>_("span",null,"%",-1)),Ab=1e3/20,Vs=15,Ya=22+1,Rb=20,Vb=2,Yh=17,Hh=ae(oe({customOptions:{Canvas:ts},inheritAttrs:!0,__name:"RingIndicator.ce",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:e}){const t=s;let n=zn(),i=P(0);const r=()=>{if(zn()-n>=Ab){n=zn();const h=Math.ceil(Ut(t.percent,0,100));i.value<h?i.value++:i.value>h&&i.value--}return Rt(i.value/100,2)},o=P(0),a=P(0),l=(180+Vs*2)/(Ya-1),c=(h,f)=>{o.value=h,a.value=f},u=P();return Ee(u,()=>{u.value&&u.value.getCanvas().then(h=>{We.run(()=>{h.ctx.clearRect();const f=new Na({width:o.value,height:a.value,startDegree:0-Vs,endDegree:180+Vs,extendDegree:Vs,lineWidth:t.lineWidth,color:t.bgColor}),d=f.radius-f.radius*Math.cos(Math.PI*r()),m=f.radius*Math.sin(Math.PI*r()),v=h.ctx.createLinearGradient(f.x-f.radius,f.y,f.x-f.radius+d,f.y-m,{0:t.startColor,1:t.endColor}),b=new Na({width:o.value,height:a.value,startDegree:0-Vs,endDegree:(180+Vs*2)*r()-Vs,extendDegree:Vs,lineWidth:t.lineWidth,colorGradient:v}),C=[];for(let O=0;O<Ya;O++){const $=f.y-f.radius+Rb,S=new Nt({cX:f.x,cY:f.y,fromX:f.x,fromY:$,x:f.x,y:$+Yh,degree:-Vs-90+l*O}),Y=O/Ya<r();S.setAttr({"stroke-linecap":"round","stroke-width":String(Vb),stroke:Y?h.ctx.createLinearGradient(f.x,$,f.x,$+Yh,{0:t.startColor,1:t.endColor}):t.bgColor}),C.push(S)}return h.draw([f,b,...C]),!0})})}),e({}),(h,f)=>(I(),V("div",Nb,[ue(ts,{ref_key:"canvasRef",ref:u,onResize:c},null,512),_("div",$b,[_("span",null,me(ke(i)),1),Mb])]))}}),[["styles",[`.ring-indicator[data-v-c2869a68]{position:relative;width:100%;height:100%}.ring-text[data-v-c2869a68]{position:absolute;bottom:0;left:0;width:100%;text-align:center;font-family:D-DINExp;color:#333;padding-bottom:20px}.ring-text>span[data-v-c2869a68]:nth-child(1){font-size:64px}.ring-text>span[data-v-c2869a68]:nth-child(2){font-size:20px}
216
- `]],["__scopeId","data-v-c2869a68"]]);class Lb extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(e=>{if(e.media){const t=()=>{(e.media===this.video.currentSrc||!this.previousSiblingIsPlaying(e,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:e.media,handler:t}),window.matchMedia(e.media).addEventListener("change",t)}})}unbindMediaListeners(){this.listenedMedia.forEach(e=>{window.matchMedia(e.media).removeEventListener("change",e.handler)})}previousSiblingIsPlaying(e,t){const n=e;for(;e.previousElementSibling;)if(n.src===t)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const e=this.video.currentTime,t=this.video.playState;this.video.load();const n=()=>{this.video.playState=t,this.video.currentTime=e.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",n)};this.video.addEventListener("loadeddata",n)}}const zb=Lb;function Fb(s,e="style.css"){for(let t of s){const n=document.querySelector(t)?.shadowRoot;if(n){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",e),n.appendChild(i)}}}const Ha={},Wa={},gt=(s,e,t=!0)=>{const n=s.__name;Ha[n]=[];let i=[...s.styles||[]],r=0;for(let o in s.customOptions)Ha[n].push(o),`${s.customOptions[o].__scopeId}`,i=[...(Ha[o]||[]).reduce((a,l)=>(a.push(...(Wa[l]||[]).map(c=>tu(c))),a),[]),...(e[r++]?.styles||[]).map(a=>tu(a)),...i],Wa[o]=i;if(t)s.styles=i;else for(let o of s.styles){const a=document.createElement("style");a.innerHTML=o,document.head.insertBefore(a,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return Wa[n]=i,s},Gb=()=>{customElements.define("yz-loading-1",xe(z1)),customElements.define("yz-loading-2",xe(B1)),customElements.define("yz-loading-3",xe(Y1)),customElements.define("yz-loading-4",xe(X1)),customElements.define("yz-loading-5",xe(Z1)),customElements.define("yz-loading-6",xe(J1)),customElements.define("yz-loading-7",xe(sb)),customElements.define("yz-loading-8",xe(Fh)),customElements.define("yz-loading-9",xe(lb)),customElements.define("yz-loading-10",xe(db)),customElements.define("yz-loading-11",xe(Gh));const s=xe(ih);customElements.define("yz-icon",s),gt(kn,[Gh]);const e=xe(kn);customElements.define("yz-button",e);const t=xe(Jv);customElements.define("yz-layout-mobile",t);const n=xe(ey);customElements.define("yz-layout-center",n),gt(En,[Br]);const i=xe(En);customElements.define("yz-pop",i),gt(jr,[Br,En,ih,kn]);const r=xe(jr);customElements.define("yz-dialog",r),gt(kh,[Br,En,jr,Fh]);const o=xe(kh);customElements.define("yz-dialog-loading",o),gt(Eh,[Br,En,jr]);const a=xe(Eh);customElements.define("yz-dialog-toast",a);const l=xe(C0);customElements.define("yz-select",l),gt(rh,[R1]);const c=xe(rh);customElements.define("yz-select-absolute",c);const u=xe(N0);customElements.define("yz-switch",u);const h=xe(oh);customElements.define("yz-radiogroup",h);const f=xe(ah);customElements.define("yz-checkboxgroup",f),gt(Sh,[En,kn]);const d=xe(Sh);customElements.define("yz-popover",d);const m=xe(Hy);customElements.define("yz-resize-observer",m);const v=xe(Wy);customElements.define("yz-map-tianditu",v),gt(za,[En,O1]);const b=xe(za);customElements.define("yz-plate-keyboard",b),gt(Ph,[k1,za]);const C=xe(Ph);customElements.define("yz-plate-mobile",C),gt(hh,[N1]);const O=xe(hh);customElements.define("yz-slide-left-item",O);const $=xe(Fy);customElements.define("yz-plate-display",$);const S=xe(_y);customElements.define("yz-tabs",S);const Y=xe(Xy);customElements.define("yz-fps-stats",Y),gt(Fa,[kn,Hr]);const L=xe(Fa);customElements.define("yz-ease-graph-display",L),gt(Dh,[Fa]);const H=xe(Dh);customElements.define("yz-ease-group-graph-display",H),gt(Ga,[kn,Hr]);const fe=xe(Ga);customElements.define("yz-interpolation-graph-display",fe),gt(Vh,[Ga]);const ye=xe(Vh);customElements.define("yz-interpolation-group-graph-display",ye);const ge=xe(La);customElements.define("yz-progress-bar",ge),gt(Th,[La]);const Me=xe(Th);customElements.define("yz-page-vertical-scroll-progress-bar",Me),gt(zh,[kn,Ma,Lh,Hr]);const Ae=xe(zh);customElements.define("yz-svg-and-canvas",Ae),customElements.define("yz-hand-write-panel",xe(wy)),gt(bh,[La]);const Ue=xe(bh);customElements.define("yz-video",Ue),customElements.define("yz-input",xe(J0)),customElements.define("yz-input-range",xe(Ma)),gt(ch,[Lh]),customElements.define("yz-input-range-svg",xe(ch)),customElements.define("yz-accordion",xe(Lv)),customElements.define("yz-image",xe(_h)),gt(Ch,[_h]);const qe=xe(Ch);customElements.define("yz-image-view",qe);const et=xe(Vv);customElements.define("yz-mouse-over",et);const Ge=xe(_b);customElements.define("yz-card-flip",Ge),gt(jh,[oh,ah,Ma]);const be=xe(jh);customElements.define("yz-cube",be),gt(Hh,[Hr]);const _e=xe(Hh);customElements.define("yz-chat-ring-indicator",_e),customElements.define("yz-responsive-video",zb);const te=document.getElementById("teleport")||document.documentElement,U=document.createElement("yz-dialog-toast");U.id="globalDialogToast",te?.appendChild(U);const Ce=document.createElement("yz-dialog-loading");Ce.id="globalDialogLoading",te?.appendChild(Ce);const A=document.createElement("yz-dialog");A.id="globalDialog",te?.appendChild(A);const Fe=document.createElement("yz-plate-keyboard");Fe.id="globalPlateKeyboard",te?.appendChild(Fe)};return yt.dialog=Pv,yt.install=Gb,yt.linkChildrenComponentsStyles=Fb,yt.loading=Ov,yt.mergeChildComponentCSS=gt,yt.plateKeyboard=yh,yt.popAbsolute=zr,yt.popAbsoluteSample=Av,yt.popBottom=fh,yt.popBottomSample=Iv,yt.popCenter=vh,yt.popCenterSample=Mv,yt.popLeft=mh,yt.popLeftSample=Nv,yt.popRight=gh,yt.popRightSample=$v,yt.popTop=ph,yt.popTopSample=Dv,yt.toast=Va,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"}),yt}({});
211
+ `,o=P();kt(o,()=>{o.value&&H.setStyleSheet(r,o.value)});const a=P(n.perspective+"px"),l=C=>{a.value=C==2e3?"none":C+"px"},c=P("50%"),u=C=>{c.value=C+"%"},h=P("50%"),f=C=>{h.value=C+"%"},d=`translateZ(-${i.value}px)`,m=P(d),g=C=>{switch(C){case"front":m.value=d+" rotateY(0deg)";break;case"right":m.value=d+" rotateY(-90deg)";break;case"back":m.value=d+" rotateY(-180deg)";break;case"left":m.value=d+" rotateY(90deg)";break;case"top":m.value=d+" rotateX(-90deg)";break;case"bottom":m.value=d+" rotateX(90deg)";break;default:m.value=d;break}},v=P(!1),k=C=>{C.length?v.value=!0:v.value=!1},I=P("visible"),M=C=>{C.length?I.value="visible":I.value="hidden"};return t({}),(C,j)=>(O(),R("div",{ref_key:"container",ref:o},[_("div",{class:"cube-scene",style:$({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[_("div",{class:he(["cube",{spinning:v.value}]),style:$({transformStyle:"preserve-3d",transform:m.value,transition:`transform ${n.dur}ms`})},[_("div",{class:"face front",style:$({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Pt(C.$slots,"front",{},()=>[Wt("front")],!0)],4),_("div",{class:"face back",style:$({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Pt(C.$slots,"back",{},()=>[Wt("back")],!0)],4),_("div",{class:"face right",style:$({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Pt(C.$slots,"right",{},()=>[Wt("right")],!0)],4),_("div",{class:"face left",style:$({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Pt(C.$slots,"left",{},()=>[Wt("left")],!0)],4),_("div",{class:"face top",style:$({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Pt(C.$slots,"top",{},()=>[Wt("top")],!0)],4),_("div",{class:"face bottom",style:$({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:I.value})},[Pt(C.$slots,"bottom",{},()=>[Wt("bottom")],!0)],4)],6)],4),_("div",null,[ut(Hh,{options:["front","right","back","left","top","bottom"],onChange:g})]),_("div",null,[ut(Za,{options:["Backface visible"],onChange:M})]),_("div",null,[ut(Za,{options:["spin cube"],onChange:k})]),_("div",null,[Wt(" perspective: "),ut(On,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),_("div",null,[Wt(" perspective-origin x: "),ut(On,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),_("div",null,[Wt(" perspective-origin y: "),ut(On,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),[["styles",[`.cube[data-v-5d61e216]{position:relative;width:100%;height:100%}.face[data-v-5d61e216]{position:absolute;width:100%;height:100%}.front[data-v-5d61e216]{background:hsla(0,100%,50%,.7)}.right[data-v-5d61e216]{background:hsla(60,100%,50%,.7)}.back[data-v-5d61e216]{background:hsla(120,100%,50%,.7)}.left[data-v-5d61e216]{background:hsla(180,100%,50%,.7)}.top[data-v-5d61e216]{background:hsla(240,100%,50%,.7)}.bottom[data-v-5d61e216]{background:hsla(300,100%,50%,.7)}.spinning[data-v-5d61e216]{animation:spinCube-5d61e216 8s infinite ease-in-out}@keyframes spinCube-5d61e216{0%{transform:translateZ(var(--spin-cube-z)) rotateX(0) rotateY(0)}to{transform:translateZ(var(--spin-cube-z)) rotateX(360deg) rotateY(360deg)}}
212
+ `]],["__scopeId","data-v-5d61e216"]]),xs=rt(st({__name:"Container.ce",props:{overflow:{default:"hidden"},type:{default:"block"},supportCopyText:{type:Boolean,default:!1},effectInit:{default:"leave"},effectTriggerTiming:{default:"none"},enter:{},leave:{},styleSheets:{}},emits:["ready","resize","mouseOver","mouseOut"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="leave";const o=()=>{r="enter",n.enter?.()},a=()=>{r="leave",n.leave?.()},l=()=>{r=="enter"?a():o()},c=()=>{r=="enter"?o():a()},u=P();let h,f;kt(u,()=>{if(!(!u.value||h)){if(n.styleSheets){let g="";for(let v in n.styleSheets)g+=`${v}: ${n.styleSheets[v]};`;H.setStyleSheet(`
213
+ :root {
214
+ ${g}
215
+ }
216
+ :host {
217
+ ${g}
218
+ }
219
+ `,u.value)}switch(h=new ve(u.value,!1),h.on("resize",(g,v)=>{i("resize",g,v),i("ready",g,v),f?.(h)}),h.on("mouseOver",()=>{i("mouseOver"),n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseOut",()=>{i("mouseOut"),n.effectTriggerTiming=="mouseMove"&&l()}),h.start(),n.effectInit){case"enter":o();break;case"leave":a();break}}});function d(){n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&H.copyToClipboard(H.getInnerText(u.value)).then(()=>{Di("复制成功")}).catch(g=>{Di(g.toString())})}ee(()=>{h?.destroy()});function m(){return new Promise(g=>{if(h)return g(h);f=g})}return t({getApp:m,reEffect:c}),(g,v)=>(O(),R("div",{ref_key:"containerRef",ref:u,class:he(["container",[n.type]]),style:$({overflow:n.overflow}),onClick:d},[Pt(g.$slots,"default",{},void 0,!0)],6))}}),[["styles",[`.container[data-v-a2449606]{position:relative;box-sizing:border-box}.block[data-v-a2449606]{display:block}.shrink[data-v-a2449606]{display:inline-block}.full[data-v-a2449606]{display:block;width:100%;height:100%}
220
+ `]],["__scopeId","data-v-a2449606"]]),Zb=s=>(Ds("data-v-bdd12647"),s=s(),$s(),s),qb={class:"ring-indicator"},Kb={class:"ring-text"},Qb=Zb(()=>_("span",null,"%",-1)),Jb=1e3/20,Gs=15,qa=22+1,t_=20,e_=2,Zh=17,qh=rt(st({customOptions:{Canvas:ns},inheritAttrs:!0,__name:"RingIndicator.ce",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=Gn(),i=P(0);const r=()=>{if(Gn()-n>=Jb){n=Gn();const h=Ke(Math.floor(e.percent),0,100);i.value<h?i.value=Math.min(i.value+1,h):i.value>h&&(i.value=Math.max(i.value-1,h))}return Ve(i.value/100,2)},o=P(0),a=P(0),l=(180+Gs*2)/(qa-1),c=(h,f)=>{o.value=h,a.value=f},u=P();return kt(u,()=>{u.value&&u.value.getCanvas().then(h=>{Zt.run(()=>{h.ctx.clearRect();const f=new Va({width:o.value,height:a.value,startDegree:0-Gs,endDegree:180+Gs,extendDegree:Gs,lineWidth:e.lineWidth,color:e.bgColor}),d=f.radius-f.radius*Math.cos(Math.PI*r()),m=f.radius*Math.sin(Math.PI*r()),g=h.ctx.createLinearGradient(f.x-f.radius,f.y,f.x-f.radius+d,f.y-m,{0:e.startColor,1:e.endColor}),v=new Va({width:o.value,height:a.value,startDegree:0-Gs,endDegree:(180+Gs*2)*r()-Gs,extendDegree:Gs,lineWidth:e.lineWidth,colorGradient:g}),k=[];for(let I=0;I<qa;I++){const M=f.y-f.radius+t_,C=new Me({cX:f.x,cY:f.y,fromX:f.x,fromY:M,x:f.x,y:M+Zh,degree:-Gs-90+l*I}),j=I/(qa-1)<=r();C.setAttr({"stroke-linecap":"round","stroke-width":String(e_),stroke:j?h.ctx.createLinearGradient(f.x,M,f.x,M+Zh,{0:e.startColor,1:e.endColor}):e.bgColor}),k.push(C)}return h.draw([f,v,...k]),!0})})}),t({}),(h,f)=>(O(),R("div",qb,[ut(ns,{ref_key:"canvasRef",ref:u,onResize:c},null,512),_("div",Kb,[_("span",null,pt(wt(i)),1),Qb])]))}}),[["styles",[`.ring-indicator[data-v-bdd12647]{position:relative;width:100%;height:100%}.ring-text[data-v-bdd12647]{position:absolute;bottom:0;left:0;width:100%;text-align:center;font-family:D-DINExp;color:#333;padding-bottom:20px}.ring-text>span[data-v-bdd12647]:nth-child(1){font-size:64px}.ring-text>span[data-v-bdd12647]:nth-child(2){font-size:20px}
221
+ `]],["__scopeId","data-v-bdd12647"]]),Kh=s=>(Ds("data-v-8b4a3cb1"),s=s(),$s(),s),s_=[Kh(()=>_("div",{class:"left"},null,-1)),Kh(()=>_("div",{class:"right"},null,-1))],n_={key:0},i_={key:1},In=10,Un=4,Qh=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"RingText.ce",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,n=P(0),i=(r,o)=>{n.value=Math.floor(Math.min(r,o))};return t({}),(r,o)=>(O(),Ht(_e,{onResize:i,type:"full"},{default:Ft(()=>[_("div",{class:"ring",style:$({width:n.value+"px",height:n.value+"px",padding:In+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[_("div",{class:"ring-rotate",style:$({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-In-Un}px, #000 ${n.value/2-In-Un}px)`})},s_,4),_("div",{class:"ring-content",style:$({top:In+Un+"px",left:In+Un+"px",width:n.value-(In+Un)*2+"px",height:n.value-(In+Un)*2+"px"})},[e.text?(O(),R("div",n_,pt(e.text),1)):It("",!0),e.secondText?(O(),R("div",i_,pt(e.secondText),1)):It("",!0)],4)],4)]),_:1}))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}
222
+ `,`.ring[data-v-8b4a3cb1]{position:relative;display:block;margin:0 auto;border-radius:50%;overflow:hidden;box-sizing:border-box}.ring-rotate[data-v-8b4a3cb1]{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box;border-radius:50%}.ring-content[data-v-8b4a3cb1]{position:absolute;overflow:hidden;box-sizing:border-box;border-radius:50%;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.ring-content>div[data-v-8b4a3cb1]:nth-child(1){font-size:20px;font-weight:700}.ring-content>div[data-v-8b4a3cb1]:nth-child(2){font-size:14px;margin-top:6px}.left[data-v-8b4a3cb1],.right[data-v-8b4a3cb1]{position:absolute;top:0;width:50%;height:100%;z-index:0}.left[data-v-8b4a3cb1]{left:0;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.5))}.right[data-v-8b4a3cb1]{right:0;background:linear-gradient(180deg,rgba(255,255,255,1),rgba(255,255,255,.5))}
223
+ `]],["__scopeId","data-v-8b4a3cb1"]]),Jh=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"ClockFlipper.ce",props:{startTime:{default:"00:00:00"},type:{default:"increase"},direction:{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=P(40),i=P(20),r=P(20),o=(u,h)=>{n.value=Math.floor(u/(6+1)),i.value=Math.floor(h),r.value=Math.max(12,i.value)},a=oe([0,0,0,0,0,0]),l=oe([0,0,0,0,0,0]);wm(e.startTime).forEach((u,h)=>{a[h]=u,l[h]=u});const c=()=>{setInterval(()=>{e.type=="increase"?km(l):Cm(l),setTimeout(()=>{l.forEach((u,h)=>{a[h]=u})},e.dur)},1e3)};return t({}),(u,h)=>(O(),Ht(_e,{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:o,onReady:c},{default:Ft(()=>[_("div",{class:"clock-flipper",style:$({fontSize:r.value+"px",lineHeight:i.value+"px"})},[(O(!0),R(Bt,null,Se(a,(f,d)=>(O(),R(Bt,{key:d},[_("div",{class:he(["flip",[e.direction,l[d]!=f?"go":""]]),style:$({width:n.value+"px"})},[_("div",{class:he(["front digital",[`number${f}`]])},null,2),_("div",{class:he(["back digital",[`number${l[d]}`]])},null,2)],6),d==1||d==3?(O(),R("div",{key:0,class:"gap",style:$({fontSize:Math.floor(r.value*.6)+"px",lineHeight:0})}," : ",4)):It("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),[["styles",[`@keyframes frontFlipDown{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}}@keyframes backFlipDown{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}}@keyframes frontFlipUp{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}}@keyframes backFlipUp{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}}
224
+ `,`.clock-flipper[data-v-ad9aa957]{position:relative;margin:0 auto;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;height:100%;font-family:D-DINCondensed-number}.flip[data-v-ad9aa957]{position:relative;height:100%;box-sizing:border-box;color:var(--yz-clock-flipper-text-color)}.flip+.flip[data-v-ad9aa957]{margin-left:var(--yz-clock-flipper-gap-double)}.flip.down .front[data-v-ad9aa957]:after,.flip.down .back[data-v-ad9aa957]:before{z-index:1}.flip.down .front[data-v-ad9aa957]:before{z-index:3}.flip.down .back[data-v-ad9aa957]:after{z-index:2;transform-origin:50% 0%;transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}.flip.down.go .front[data-v-ad9aa957]:before{transform-origin:50% 100%;animation:frontFlipDown var(--yz-clock-flipper-animation-duration) ease-in-out both;backface-visibility:hidden}.flip.down.go .back[data-v-ad9aa957]:after{animation:backFlipDown var(--yz-clock-flipper-animation-duration) ease-in-out both}.flip.up .front[data-v-ad9aa957]:before,.flip.up .back[data-v-ad9aa957]:after{z-index:1}.flip.up .front[data-v-ad9aa957]:after{z-index:3}.flip.up .back[data-v-ad9aa957]:before{z-index:2;transform-origin:50% 100%;transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}.flip.up.go .front[data-v-ad9aa957]:after{transform-origin:50% 0;animation:frontFlipUp var(--yz-clock-flipper-animation-duration) ease-in-out both;backface-visibility:hidden}.flip.up.go .back[data-v-ad9aa957]:before{animation:backFlipUp var(--yz-clock-flipper-animation-duration) ease-in-out both}.gap[data-v-ad9aa957]{margin:0 var(--yz-clock-flipper-gap-four);color:var(--yz-clock-flipper-bg-color)}.digital[data-v-ad9aa957]:before,.digital[data-v-ad9aa957]:after{content:"";position:absolute;left:0;right:0;height:50%;box-sizing:border-box;background:var(--yz-clock-flipper-bg-color);overflow:hidden}.digital[data-v-ad9aa957]:before{top:0;bottom:50%;border-radius:var(--yz-clock-flipper-border-radius) var(--yz-clock-flipper-border-radius) 0 0;border-bottom:solid var(--yz-clock-flipper-gap) var(--yz-clock-flipper-text-color)}.digital[data-v-ad9aa957]:after{top:50%;bottom:0;border-radius:0 0 var(--yz-clock-flipper-border-radius) var(--yz-clock-flipper-border-radius);border-top:solid var(--yz-clock-flipper-gap) var(--yz-clock-flipper-text-color);line-height:0}.digital.number0[data-v-ad9aa957]:before,.digital.number0[data-v-ad9aa957]:after{content:"0"}.digital.number1[data-v-ad9aa957]:before,.digital.number1[data-v-ad9aa957]:after{content:"1"}.digital.number2[data-v-ad9aa957]:before,.digital.number2[data-v-ad9aa957]:after{content:"2"}.digital.number3[data-v-ad9aa957]:before,.digital.number3[data-v-ad9aa957]:after{content:"3"}.digital.number4[data-v-ad9aa957]:before,.digital.number4[data-v-ad9aa957]:after{content:"4"}.digital.number5[data-v-ad9aa957]:before,.digital.number5[data-v-ad9aa957]:after{content:"5"}.digital.number6[data-v-ad9aa957]:before,.digital.number6[data-v-ad9aa957]:after{content:"6"}.digital.number7[data-v-ad9aa957]:before,.digital.number7[data-v-ad9aa957]:after{content:"7"}.digital.number8[data-v-ad9aa957]:before,.digital.number8[data-v-ad9aa957]:after{content:"8"}.digital.number9[data-v-ad9aa957]:before,.digital.number9[data-v-ad9aa957]:after{content:"9"}
225
+ `]],["__scopeId","data-v-ad9aa957"]]),td=st({customOptions:{Container:_e},inheritAttrs:!0,__name:"TextBackgroundClip.ce",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)=>(O(),Ht(_e,null,{default:Ft(()=>[_("div",{style:$({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},pt(e.text),5)]),_:1}))}}),r_={class:"slide"},ed=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"Slide.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=oe({}),i=()=>{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}},r=()=>{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}};return t({}),(o,a)=>(O(),Ht(_e,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:i,leave:r},{default:Ft(()=>[_("div",{class:"slide-before",style:$({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),_("div",r_,[Pt(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),[["styles",[`.slide-before[data-v-2014e3c1]{position:absolute;z-index:0;inset:0;width:100%;height:100%}.slide[data-v-2014e3c1]{position:relative;z-index:1;cursor:pointer}
226
+ `]],["__scopeId","data-v-2014e3c1"]]),o_={class:"slide-corner"},sd=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"SlideCorner.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,n=oe({});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(${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}},l=()=>{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}};return t({}),(c,u)=>(O(),Ht(_e,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:a,leave:l,onResize:o},{default:Ft(()=>[_("div",{class:"slide-corner-before",style:$({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*wt(i)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),_("div",o_,[Pt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),[["styles",[`.slide-corner-before[data-v-79f29739]{position:absolute;z-index:0}.slide-corner[data-v-79f29739]{position:relative;z-index:1;cursor:pointer}
227
+ `]],["__scopeId","data-v-79f29739"]]),a_={class:"line-single"},nd=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"LineSingle.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},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=oe({});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 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}},a=()=>{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}};return t({}),(l,c)=>(O(),Ht(_e,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:o,leave:a,onResize:i},{default:Ft(()=>[_("div",{class:"line-single-before",style:$({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*wt(n)}ms ease-in-out`,...r})},null,4),_("div",a_,[Pt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),[["styles",[`.line-single-before[data-v-f6e7ebd1]{position:absolute;z-index:0}.line-single[data-v-f6e7ebd1]{position:relative;z-index:1;cursor:pointer}
228
+ `]],["__scopeId","data-v-f6e7ebd1"]]),l_={class:"line-double"},id=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"LineDouble.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},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=oe({}),o=oe({}),a=oe({});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.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}},c=()=>{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}};return t({}),(u,h)=>(O(),Ht(_e,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:l,leave:c,onResize:i},{default:Ft(()=>[_("div",{class:"line-double-before",style:$({backgroundColor:e.color,transition:`transform ${e.timeGap*wt(n)}ms ease-in-out`,...r,...o})},null,4),_("div",l_,[Pt(u.$slots,"default",{},void 0,!0)]),_("div",{class:"line-double-after",style:$({backgroundColor:e.color,transition:`transform ${e.timeGap*wt(n)}ms ease-in-out`,...r,...a})},null,4)]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),[["styles",[`.line-double-before[data-v-e0a218bf],.line-double-after[data-v-e0a218bf]{position:absolute;z-index:0}.line-double[data-v-e0a218bf]{position:relative;z-index:1;cursor:pointer}
229
+ `]],["__scopeId","data-v-e0a218bf"]]),rd=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"Float.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=oe({willChange:"box-shadow, transform"}),i=()=>{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}},r=()=>{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}};return t({}),(o,a)=>(O(),Ht(_e,{type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:i,leave:r},{default:Ft(()=>[_("div",{class:"float",style:$({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[Pt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),[["styles",[`.float[data-v-02b52d73]{position:relative;z-index:1;cursor:pointer}
230
+ `]],["__scopeId","data-v-02b52d73"]]),od=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"CSSAnimation.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},duration:{default:500},delay:{default:0},repeat:{default:1},fillMode:{default:"both"},timingFunction:{default:"ease"},direction:{default:"normal"},playState:{default:"running"},name:{default:"jelly"}},setup(s,{expose:t}){const e=s,n=oe({}),i=P("visible");switch(e.name){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":i.value="visible";break;default:i.value="hidden";break}switch(e.name){case"zoomOutUp":n.transformOrigin="center top";break;case"bounce":case"zoomOutDown":n.transformOrigin="center bottom";break;case"hinge":n.transformOrigin="top left";break;case"swing":n.transformOrigin="top center";break;case"zoomOutLeft":n.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":n.transformOrigin="left bottom";break;case"zoomOutRight":n.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":n.transformOrigin="right bottom";break;default:n.transformOrigin="center";break}switch(e.name){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":n.backfaceVisibility="visible";break}let r=e.timingFunction;switch(e.name){case"pulse":case"headShake":case"heartBeat":r="ease-in-out";break;case"lightSpeedInLeft":case"lightSpeedInRight":r="ease-out";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":r="ease-in";break}const o=()=>{n.animation=`${e.duration}ms ${r} ${e.delay}ms ${e.repeat} ${e.direction} ${e.fillMode} ${e.playState} ${e.name}`},a=()=>{n.animation="none"};return t({}),(l,c)=>(O(),Ht(_e,{overflow:i.value,type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:o,leave:a},{default:Ft(()=>[_("div",{class:"css-animation",style:$(n)},[Pt(l.$slots,"default",{},void 0,!0)],4)]),_:3},8,["overflow","type","supportCopyText","effectInit","effectTriggerTiming"]))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}
231
+ `,`.css-animation[data-v-8406a598]{position:relative;cursor:pointer}
232
+ `]],["__scopeId","data-v-8406a598"]]),c_={class:"circle"},ad=rt(st({customOptions:{Container:_e},inheritAttrs:!0,__name:"Circle.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectInit:{default:"leave"},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,n=P(),i=oe({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),r=(l,c)=>{i.width=i.height=Math.ceil(Math.max(l,c))+"px",n.value?.reEffect?.()},o=()=>{i.boxShadow=`
233
+ inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
234
+ inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
235
+ inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
236
+ inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
237
+ `},a=()=>{const l=Si(e.color,.2);i.boxShadow=`
238
+ inset ${i.width} 0 0 ${l},
239
+ inset 0 ${i.width} 0 ${l},
240
+ inset -${i.width} 0 0 ${l},
241
+ inset 0 -${i.width} 0 ${l}
242
+ `};return t({}),(l,c)=>(O(),Ht(_e,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectInit:e.effectInit,effectTriggerTiming:e.effectTriggerTiming,enter:o,leave:a,onResize:r},{default:Ft(()=>[_("div",{class:"circle-before",style:$(i)},null,4),_("div",c_,[Pt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectInit","effectTriggerTiming"]))}}),[["styles",[`.circle-before[data-v-cb894199]{position:absolute;z-index:2}.circle[data-v-cb894199]{position:relative;z-index:1;cursor:pointer}
243
+ `]],["__scopeId","data-v-cb894199"]]);class u_ extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(t=>{if(t.media){const e=()=>{(t.media===this.video.currentSrc||!this.previousSiblingIsPlaying(t,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:t.media,handler:e}),window.matchMedia(t.media).addEventListener("change",e)}})}unbindMediaListeners(){this.listenedMedia.forEach(t=>{window.matchMedia(t.media).removeEventListener("change",t.handler)})}previousSiblingIsPlaying(t,e){const n=t;for(;t.previousElementSibling;)if(n.src===e)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const t=this.video.currentTime,e=this.video.playState;this.video.load();const n=()=>{this.video.playState=e,this.video.currentTime=t.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",n)};this.video.addEventListener("loadeddata",n)}}const h_=u_;function d_(s,t="style.css"){for(let e of s){const n=document.querySelector(e)?.shadowRoot;if(n){const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t),n.appendChild(i)}}}const Ka={},Qa={},Ut=(s,t,e=!0)=>{const n=s.__name;Ka[n]=[];let i=[...s.styles||[]],r=0;for(let o in s.customOptions)Ka[n].push(o),`${s.customOptions[o].__scopeId}`,i=[...(Ka[o]||[]).reduce((a,l)=>(a.push(...(Qa[l]||[]).map(c=>au(c))),a),[]),...(t[r++]?.styles||[]).map(a=>au(a)),...i],Qa[o]=i;if(e)s.styles=i;else for(let o of s.styles){const a=document.createElement("style");a.innerHTML=o,document.head.insertBefore(a,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return Qa[n]=i,s},f_=()=>{customElements.define("yz-loading-1",ht(nb)),customElements.define("yz-loading-2",ht(ob)),customElements.define("yz-loading-3",ht(lb)),customElements.define("yz-loading-4",ht(hb)),customElements.define("yz-loading-5",ht(pb)),customElements.define("yz-loading-6",ht(yb)),customElements.define("yz-loading-7",ht(_b)),customElements.define("yz-loading-8",ht(Xh)),customElements.define("yz-loading-9",ht(Eb)),customElements.define("yz-loading-10",ht(Pb)),customElements.define("yz-loading-11",ht(Uh));const s=ht(ch);customElements.define("yz-icon",s),Ut(En,[Uh]);const t=ht(En);customElements.define("yz-button",t);const e=ht(y1);customElements.define("yz-layout-mobile",e);const n=ht(v1);customElements.define("yz-layout-center",n),Ut(Tn,[Hr]);const i=ht(Tn);customElements.define("yz-pop",i),Ut(Wr,[Hr,Tn,ch,En]);const r=ht(Wr);customElements.define("yz-dialog",r),Ut(Ph,[Hr,Tn,Wr,Xh]);const o=ht(Ph);customElements.define("yz-dialog-loading",o),Ut(Dh,[Hr,Tn,Wr]);const a=ht(Dh);customElements.define("yz-dialog-toast",a);const l=ht(Bg);customElements.define("yz-select",l),Ut(uh,[tb]);const c=ht(uh);customElements.define("yz-select-absolute",c);const u=ht(Kg);customElements.define("yz-switch",u);const h=ht(hh);customElements.define("yz-radiogroup",h);const f=ht(dh);customElements.define("yz-checkboxgroup",f),Ut(Ih,[Tn,En]);const d=ht(Ih);customElements.define("yz-popover",d);const m=ht(cv);customElements.define("yz-resize-observer",m);const g=ht(uv);customElements.define("yz-map-tianditu",g),Ut(Xa,[Tn,Uv]);const v=ht(Xa);customElements.define("yz-plate-keyboard",v),Ut(Mh,[Yv,Xa]);const k=ht(Mh);customElements.define("yz-plate-mobile",k),Ut(gh,[qv]);const I=ht(gh);customElements.define("yz-slide-left-item",I);const M=ht(iv);customElements.define("yz-plate-display",M);const C=ht(L1);customElements.define("yz-tabs",C);const j=ht(hv);customElements.define("yz-fps-stats",j),Ut(Ua,[En,qr]);const L=ht(Ua);customElements.define("yz-ease-graph-display",L),Ut(Ah,[Ua]);const X=ht(Ah);customElements.define("yz-ease-group-graph-display",X),Ut(Ha,[En,qr]);const mt=ht(Ha);customElements.define("yz-interpolation-graph-display",mt),Ut(Bh,[Ha]);const bt=ht(Bh);customElements.define("yz-interpolation-group-graph-display",bt);const yt=ht(ja);customElements.define("yz-progress-bar",yt),Ut($h,[ja]);const At=ht($h);customElements.define("yz-page-vertical-scroll-progress-bar",At),Ut(jh,[En,Ga,Yh,qr]);const zt=ht(jh);customElements.define("yz-svg-and-canvas",zt),customElements.define("yz-hand-write-panel",ht(F1)),Ut(Ch,[ja]);const Kt=ht(Ch);customElements.define("yz-video",Kt),customElements.define("yz-input",ht(vy)),customElements.define("yz-input-range",ht(Ga)),Ut(ph,[Yh]),customElements.define("yz-input-range-svg",ht(ph)),customElements.define("yz-accordion",ht(s1)),customElements.define("yz-image",ht(Sh)),Ut(Oh,[Sh]);const Qt=ht(Oh);customElements.define("yz-image-view",Qt);const ne=ht(Lb);customElements.define("yz-card-flip",ne),Ut(Wh,[hh,dh,Ga]);const Yt=ht(Wh);customElements.define("yz-cube",Yt),Ut(qh,[qr]);const _t=ht(qh);customElements.define("yz-chat-ring-indicator",_t),Ut(Qh,[xs]);const xt=ht(Qh);customElements.define("yz-chat-ring-text",xt),Ut(Jh,[xs]);const it=ht(Jh);customElements.define("yz-chat-clock-flipper",it),Ut(td,[xs]);const q=ht(td);customElements.define("yz-effect-text-background-clip",q),Ut(ed,[xs]);const Et=ht(ed);customElements.define("yz-effect-slide",Et),Ut(sd,[xs]);const A=ht(sd);customElements.define("yz-effect-slide-corner",A),Ut(nd,[xs]);const jt=ht(nd);customElements.define("yz-effect-line-single",jt),Ut(id,[xs]);const le=ht(id);customElements.define("yz-effect-line-double",le),Ut(rd,[xs]);const ie=ht(rd);customElements.define("yz-effect-float",ie),Ut(od,[xs]);const re=ht(od);customElements.define("yz-effect-css-animation",re),Ut(ad,[xs]);const Dt=ht(ad);customElements.define("yz-effect-circle",Dt),customElements.define("yz-responsive-video",h_);const Te=document.getElementById("teleport")||document.documentElement,Gt=document.createElement("yz-dialog-toast");Gt.id="globalDialogToast",Te?.appendChild(Gt);const ce=document.createElement("yz-dialog-loading");ce.id="globalDialogLoading",Te?.appendChild(ce);const ze=document.createElement("yz-dialog");ze.id="globalDialog",Te?.appendChild(ze);const He=document.createElement("yz-plate-keyboard");He.id="globalPlateKeyboard",Te?.appendChild(He)};return we.dialog=Wy,we.install=f_,we.linkChildrenComponentsStyles=d_,we.loading=Hy,we.mergeChildComponentCSS=Ut,we.plateKeyboard=kh,we.popAbsolute=jr,we.popAbsoluteSample=t1,we.popBottom=vh,we.popBottomSample=Zy,we.popCenter=wh,we.popCenterSample=Jy,we.popLeft=_h,we.popLeftSample=Ky,we.popRight=xh,we.popRightSample=Qy,we.popTop=bh,we.popTopSample=qy,we.toast=Di,Object.defineProperty(we,Symbol.toStringTag,{value:"Module"}),we}({});
217
244
  //# sourceMappingURL=yz_custom_element.iife.js.map