@zyzgroup/core-vue 0.0.19 → 0.0.20
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.
- package/ce/style.css +1 -1
- package/ce/yz_custom_element.iife.js +118 -99
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +13055 -11177
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +118 -99
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +52 -41
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +11427 -9748
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +52 -41
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/components/Canvas.ce.vue.d.ts +2 -2
- package/types/components/Canvas.vue.d.ts +2 -2
- package/types/components/CardFlip.ce.vue.d.ts +51 -0
- package/types/components/CardFlip.vue.d.ts +51 -0
- package/types/components/Cube.ce.vue.d.ts +56 -0
- package/types/components/Cube.vue.d.ts +56 -0
- package/types/components/Demo.ce.vue.d.ts +2 -0
- package/types/components/Demo.vue.d.ts +2 -0
- package/types/components/InputRange.ce.vue.d.ts +30 -5
- package/types/components/InputRange.vue.d.ts +30 -5
- package/types/components/InputRangeSvg.ce.vue.d.ts +78 -0
- package/types/components/InputRangeSvg.vue.d.ts +78 -0
- package/types/components/SVG.ce.vue.d.ts +2 -2
- package/types/components/SVG.vue.d.ts +2 -2
- package/types/components/chat/RingIndicator.ce.vue.d.ts +53 -0
- package/types/components/chat/RingIndicator.vue.d.ts +53 -0
- package/types/lib.d.ts +5 -1
- package/types/main.d.ts +2 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var ZYZGroupCoreVue=function(
|
|
1
|
+
var ZYZGroupCoreVue=function(ct){"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
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function wn(s,t){const e=new Set(s.split(","));return t?n=>e.has(n.toLowerCase()):n=>e.has(n)}const Ht={}.NODE_ENV!=="production"?Object.freeze({}):{},Sn={}.NODE_ENV!=="production"?Object.freeze([]):[],ae=()=>{},Oh=()=>!1,zn=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Ii=s=>s.startsWith("onUpdate:"),te=Object.assign,Hr=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},Ph=Object.prototype.hasOwnProperty,Mt=(s,t)=>Ph.call(s,t),mt=Array.isArray,tn=s=>Ni(s)==="[object Map]",el=s=>Ni(s)==="[object Set]",St=s=>typeof s=="function",le=s=>typeof s=="string",en=s=>typeof s=="symbol",Bt=s=>s!==null&&typeof s=="object",Ur=s=>(Bt(s)||St(s))&&St(s.then)&&St(s.catch),sl=Object.prototype.toString,Ni=s=>sl.call(s),Wr=s=>Ni(s).slice(8,-1),nl=s=>Ni(s)==="[object Object]",qr=s=>le(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,jn=wn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Dh=wn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Mi=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},Ih=/-(\w)/g,cs=Mi(s=>s.replace(Ih,(t,e)=>e?e.toUpperCase():"")),Nh=/\B([A-Z])/g,Rs=Mi(s=>s.replace(Nh,"-$1").toLowerCase()),sn=Mi(s=>s.charAt(0).toUpperCase()+s.slice(1)),nn=Mi(s=>s?`on${sn(s)}`:""),$s=(s,t)=>!Object.is(s,t),Bn=(s,t)=>{for(let e=0;e<s.length;e++)s[e](t)},il=(s,t,e)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value:e})},Mh=s=>{const t=parseFloat(s);return isNaN(t)?s:t};let rl;const Zr=()=>rl||(rl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function W(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++){const n=s[e],i=le(n)?Vh(n):W(n);if(i)for(const r in i)t[r]=i[r]}return t}else if(le(s)||Bt(s))return s}const Ah=/;(?![^(]*\))/g,Rh=/:([^]+)/,$h=/\/\*[^]*?\*\//g;function Vh(s){const t={};return s.replace($h,"").split(Ah).forEach(e=>{if(e){const n=e.split(Rh);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ye(s){let t="";if(le(s))t=s;else if(mt(s))for(let e=0;e<s.length;e++){const n=ye(s[e]);n&&(t+=n+" ")}else if(Bt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Lh=wn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ol(s){return!!s||s===""}const kt=s=>le(s)?s:s==null?"":mt(s)||Bt(s)&&(s.toString===sl||!St(s.toString))?JSON.stringify(s,al,2):String(s),al=(s,t)=>t&&t.__v_isRef?al(s,t.value):tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[n,i],r)=>(e[Kr(n,r)+" =>"]=i,e),{})}:el(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Kr(e))}:en(t)?Kr(t):Bt(t)&&!mt(t)&&!nl(t)?String(t):t,Kr=(s,t="")=>{var e;return en(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 Ss(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let Ye;class ph{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=Ye;try{return Ye=this,t()}finally{Ye=e}}else({}).NODE_ENV!=="production"&&Ss("cannot run an inactive effect scope.")}on(){Ye=this}off(){Ye=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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function mh(s,t=Ye){t&&t.active&&t.effects.push(s)}function gh(){return Ye}let Vs;class Pi{constructor(t,e,n,r){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,mh(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,os();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(vh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),as()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Es,e=Vs;try{return Es=!0,Vs=this,this._runnings++,La(this),this.fn()}finally{Va(this),this._runnings--,Vs=e,Es=t}}stop(){var t;this.active&&(La(this),Va(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function vh(s){return s.value}function La(s){s._trackId++,s._depsLength=0}function Va(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)Fa(s.deps[t],s);s.deps.length=s._depsLength}}function Fa(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Es=!0,Ii=0;const Ga=[];function os(){Ga.push(Es),Es=!1}function as(){const s=Ga.pop();Es=s===void 0?!0:s}function Di(){Ii++}function Ni(){for(Ii--;!Ii&&Ai.length;)Ai.shift()()}function ja(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const r=s.deps[s._depsLength];r!==t?(r&&Fa(r,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,Ht({effect:s},e)))}}const Ai=[];function za(s,t,e){var n;Di();for(const r of s.keys()){let i;r._dirtyLevel<t&&(i??(i=s.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(i??(i=s.get(r)===r._trackId))&&({}.NODE_ENV!=="production"&&((n=r.onTrigger)==null||n.call(r,Ht({effect:r},e))),r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Ai.push(r.scheduler)))}Ni()}const Ba=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},Mi=new WeakMap,Fs=Symbol({}.NODE_ENV!=="production"?"iterate":""),Ri=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function me(s,t,e){if(Es&&Vs){let n=Mi.get(s);n||Mi.set(s,n=new Map);let r=n.get(e);r||n.set(e,r=Ba(()=>n.delete(e))),ja(Vs,r,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function Je(s,t,e,n,r,i){const o=Mi.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&mt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!Rs(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":mt(s)?Ti(e)&&a.push(o.get("length")):(a.push(o.get(Fs)),Ms(s)&&a.push(o.get(Ri)));break;case"delete":mt(s)||(a.push(o.get(Fs)),Ms(s)&&a.push(o.get(Ri)));break;case"set":Ms(s)&&a.push(o.get(Fs));break}Di();for(const l of a)l&&za(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:r,oldTarget:i}:void 0);Ni()}const yh=nn("__proto__,__v_isRef,__isVue"),Ha=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(Rs)),Ua=_h();function _h(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Et(this);for(let i=0,o=this.length;i<o;i++)me(n,"get",i+"");const r=n[t](...e);return r===-1||r===!1?n[t](...e.map(Et)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){os(),Di();const n=Et(this)[t].apply(this,e);return Ni(),as(),n}}),s}function bh(s){Rs(s)||(s=String(s));const t=Et(this);return me(t,"has",s),t.hasOwnProperty(s)}class Ya{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const r=this._isReadonly,i=this._isShallow;if(e==="__v_isReactive")return!r;if(e==="__v_isReadonly")return r;if(e==="__v_isShallow")return i;if(e==="__v_raw")return n===(r?i?nl:sl:i?el:tl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=mt(t);if(!r){if(o&&Tt(Ua,e))return Reflect.get(Ua,e,n);if(e==="hasOwnProperty")return bh}const a=Reflect.get(t,e,n);return(Rs(e)?Ha.has(e):yh(e))||(r||me(t,"get",e),i)?a:ge(a)?o&&Ti(e)?a:a.value:Mt(a)?r?rl(a):Se(a):a}}class Xa extends Ya{constructor(t=!1){super(!1,t)}set(t,e,n,r){let i=t[e];if(!this._isShallow){const l=Gs(i);if(!js(n)&&!Gs(n)&&(i=Et(i),n=Et(n)),!mt(t)&&ge(i)&&!ge(n))return l?!1:(i.value=n,!0)}const o=mt(t)&&Ti(e)?Number(e)<t.length:Tt(t,e),a=Reflect.set(t,e,n,r);return t===Et(r)&&(o?ws(n,i)&&Je(t,"set",e,n,i):Je(t,"add",e,n)),a}deleteProperty(t,e){const n=Tt(t,e),r=t[e],i=Reflect.deleteProperty(t,e);return i&&n&&Je(t,"delete",e,void 0,r),i}has(t,e){const n=Reflect.has(t,e);return(!Rs(e)||!Ha.has(e))&&me(t,"has",e),n}ownKeys(t){return me(t,"iterate",mt(t)?"length":Fs),Reflect.ownKeys(t)}}class Wa extends Ya{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Ss(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Ss(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const xh=new Xa,wh=new Wa,Sh=new Xa(!0),Eh=new Wa(!0),$i=s=>s,mr=s=>Reflect.getPrototypeOf(s);function gr(s,t,e=!1,n=!1){s=s.__v_raw;const r=Et(s),i=Et(t);e||(ws(t,i)&&me(r,"get",t),me(r,"get",i));const{has:o}=mr(r),a=n?$i:e?Vi:Tn;if(o.call(r,t))return a(s.get(t));if(o.call(r,i))return a(s.get(i));s!==r&&s.get(t)}function vr(s,t=!1){const e=this.__v_raw,n=Et(e),r=Et(s);return t||(ws(s,r)&&me(n,"has",s),me(n,"has",r)),s===r?e.has(s):e.has(s)||e.has(r)}function yr(s,t=!1){return s=s.__v_raw,!t&&me(Et(s),"iterate",Fs),Reflect.get(s,"size",s)}function qa(s){s=Et(s);const t=Et(this);return mr(t).has.call(t,s)||(t.add(s),Je(t,"add",s,s)),this}function Ka(s,t){t=Et(t);const e=Et(this),{has:n,get:r}=mr(e);let i=n.call(e,s);i?{}.NODE_ENV!=="production"&&Ja(e,n,s):(s=Et(s),i=n.call(e,s));const o=r.call(e,s);return e.set(s,t),i?ws(t,o)&&Je(e,"set",s,t,o):Je(e,"add",s,t),this}function Za(s){const t=Et(this),{has:e,get:n}=mr(t);let r=e.call(t,s);r?{}.NODE_ENV!=="production"&&Ja(t,e,s):(s=Et(s),r=e.call(t,s));const i=n?n.call(t,s):void 0,o=t.delete(s);return r&&Je(t,"delete",s,void 0,i),o}function Qa(){const s=Et(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Ms(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&Je(s,"clear",void 0,void 0,e),n}function _r(s,t){return function(n,r){const i=this,o=i.__v_raw,a=Et(o),l=t?$i:s?Vi:Tn;return!s&&me(a,"iterate",Fs),o.forEach((c,u)=>n.call(r,l(c),l(u),i))}}function br(s,t,e){return function(...n){const r=this.__v_raw,i=Et(r),o=Ms(i),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=r[s](...n),u=e?$i:t?Vi:Tn;return!t&&me(i,"iterate",l?Ri:Fs),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:a?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function Cs(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Ss(`${$s(s)} operation ${e}failed: target is readonly.`,Et(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Ch(){const s={get(i){return gr(this,i)},get size(){return yr(this)},has:vr,add:qa,set:Ka,delete:Za,clear:Qa,forEach:_r(!1,!1)},t={get(i){return gr(this,i,!1,!0)},get size(){return yr(this)},has:vr,add:qa,set:Ka,delete:Za,clear:Qa,forEach:_r(!1,!0)},e={get(i){return gr(this,i,!0)},get size(){return yr(this,!0)},has(i){return vr.call(this,i,!0)},add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear"),forEach:_r(!0,!1)},n={get(i){return gr(this,i,!0,!0)},get size(){return yr(this,!0)},has(i){return vr.call(this,i,!0)},add:Cs("add"),set:Cs("set"),delete:Cs("delete"),clear:Cs("clear"),forEach:_r(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=br(i,!1,!1),e[i]=br(i,!0,!1),t[i]=br(i,!1,!0),n[i]=br(i,!0,!0)}),[s,e,t,n]}const[Th,kh,Oh,Ph]=Ch();function xr(s,t){const e=t?s?Ph:Oh:s?kh:Th;return(n,r,i)=>r==="__v_isReactive"?!s:r==="__v_isReadonly"?s:r==="__v_raw"?n:Reflect.get(Tt(e,r)&&r in n?e:n,r,i)}const Ih={get:xr(!1,!1)},Dh={get:xr(!1,!0)},Nh={get:xr(!0,!1)},Ah={get:xr(!0,!0)};function Ja(s,t,e){const n=Et(e);if(n!==e&&t.call(s,n)){const r=Ci(s);Ss(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="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 tl=new WeakMap,el=new WeakMap,sl=new WeakMap,nl=new WeakMap;function Mh(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rh(s){return s.__v_skip||!Object.isExtensible(s)?0:Mh(Ci(s))}function Se(s){return Gs(s)?s:wr(s,!1,xh,Ih,tl)}function $h(s){return wr(s,!1,Sh,Dh,el)}function rl(s){return wr(s,!0,wh,Nh,sl)}function ls(s){return wr(s,!0,Eh,Ah,nl)}function wr(s,t,e,n,r){if(!Mt(s))return{}.NODE_ENV!=="production"&&Ss(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const i=r.get(s);if(i)return i;const o=Rh(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return r.set(s,a),a}function on(s){return Gs(s)?on(s.__v_raw):!!(s&&s.__v_isReactive)}function Gs(s){return!!(s&&s.__v_isReadonly)}function js(s){return!!(s&&s.__v_isShallow)}function Li(s){return s?!!s.__v_raw:!1}function Et(s){const t=s&&s.__v_raw;return t?Et(t):s}function Lh(s){return Object.isExtensible(s)&&Aa(s,"__v_skip",!0),s}const Tn=s=>Mt(s)?Se(s):s,Vi=s=>Mt(s)?rl(s):s,Vh="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 il{constructor(t,e,n,r){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Pi(()=>t(this._value),()=>Sr(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const t=Et(this);return(!t._cacheable||t.effect.dirty)&&ws(t._value,t._value=t.effect.run())&&Sr(t,4),ol(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Ss(Vh,`
|
|
9
|
+
**/function Vs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let es;class Fh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=es,!t&&es&&(this.index=(es.scopes||(es.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=es;try{return es=this,t()}finally{es=e}}else({}).NODE_ENV!=="production"&&Vs("cannot run an inactive effect scope.")}on(){es=this}off(){es=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 Gh(s,t=es){t&&t.active&&t.effects.push(s)}function zh(){return es}let rn;class Qr{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,Gh(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,bs();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(jh(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),xs()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ls,e=rn;try{return Ls=!0,rn=this,this._runnings++,ll(this),this.fn()}finally{cl(this),this._runnings--,rn=e,Ls=t}}stop(){var t;this.active&&(ll(this),cl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function jh(s){return s.value}function ll(s){s._trackId++,s._depsLength=0}function cl(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)ul(s.deps[t],s);s.deps.length=s._depsLength}}function ul(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Ls=!0,Jr=0;const hl=[];function bs(){hl.push(Ls),Ls=!1}function xs(){const s=hl.pop();Ls=s===void 0?!0:s}function to(){Jr++}function eo(){for(Jr--;!Jr&&so.length;)so.shift()()}function dl(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&&ul(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,te({effect:s},e)))}}const so=[];function fl(s,t,e){var n;to();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,te({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&so.push(i.scheduler)))}eo()}const pl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},no=new WeakMap,on=Symbol({}.NODE_ENV!=="production"?"iterate":""),io=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function we(s,t,e){if(Ls&&rn){let n=no.get(s);n||no.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=pl(()=>n.delete(e))),dl(rn,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function us(s,t,e,n,i,r){const o=no.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&mt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!en(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":mt(s)?qr(e)&&a.push(o.get("length")):(a.push(o.get(on)),tn(s)&&a.push(o.get(io)));break;case"delete":mt(s)||(a.push(o.get(on)),tn(s)&&a.push(o.get(io)));break;case"set":tn(s)&&a.push(o.get(on));break}to();for(const l of a)l&&fl(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);eo()}const Bh=wn("__proto__,__v_isRef,__isVue"),ml=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(en)),gl=Yh();function Yh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Pt(this);for(let r=0,o=this.length;r<o;r++)we(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Pt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){bs(),to();const n=Pt(this)[t].apply(this,e);return eo(),xs(),n}}),s}function Xh(s){en(s)||(s=String(s));const t=Pt(this);return we(t,"has",s),t.hasOwnProperty(s)}class yl{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?Ol:Tl:r?kl:El).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=mt(t);if(!i){if(o&&Mt(gl,e))return Reflect.get(gl,e,n);if(e==="hasOwnProperty")return Xh}const a=Reflect.get(t,e,n);return(en(e)?ml.has(e):Bh(e))||(i||we(t,"get",e),r)?a:Se(a)?o&&qr(e)?a:a.value:Bt(a)?i?Pl(a):Pe(a):a}}class vl extends yl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=an(r);if(!ln(n)&&!an(n)&&(r=Pt(r),n=Pt(n)),!mt(t)&&Se(r)&&!Se(n))return l?!1:(r.value=n,!0)}const o=mt(t)&&qr(e)?Number(e)<t.length:Mt(t,e),a=Reflect.set(t,e,n,i);return t===Pt(i)&&(o?$s(n,r)&&us(t,"set",e,n,r):us(t,"add",e,n)),a}deleteProperty(t,e){const n=Mt(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&us(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!en(e)||!ml.has(e))&&we(t,"has",e),n}ownKeys(t){return we(t,"iterate",mt(t)?"length":on),Reflect.ownKeys(t)}}class _l extends yl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Vs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Vs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Hh=new vl,Uh=new _l,Wh=new vl(!0),qh=new _l(!0),ro=s=>s,Ai=s=>Reflect.getPrototypeOf(s);function Ri(s,t,e=!1,n=!1){s=s.__v_raw;const i=Pt(s),r=Pt(t);e||($s(t,r)&&we(i,"get",t),we(i,"get",r));const{has:o}=Ai(i),a=n?ro:e?ao:Yn;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 $i(s,t=!1){const e=this.__v_raw,n=Pt(e),i=Pt(s);return t||($s(s,i)&&we(n,"has",s),we(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Vi(s,t=!1){return s=s.__v_raw,!t&&we(Pt(s),"iterate",on),Reflect.get(s,"size",s)}function bl(s){s=Pt(s);const t=Pt(this);return Ai(t).has.call(t,s)||(t.add(s),us(t,"add",s,s)),this}function xl(s,t){t=Pt(t);const e=Pt(this),{has:n,get:i}=Ai(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&Cl(e,n,s):(s=Pt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?$s(t,o)&&us(e,"set",s,t,o):us(e,"add",s,t),this}function wl(s){const t=Pt(this),{has:e,get:n}=Ai(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&Cl(t,e,s):(s=Pt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&us(t,"delete",s,void 0,r),o}function Sl(){const s=Pt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?tn(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&us(s,"clear",void 0,void 0,e),n}function Li(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Pt(o),l=t?ro:s?ao:Yn;return!s&&we(a,"iterate",on),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Fi(s,t,e){return function(...n){const i=this.__v_raw,r=Pt(i),o=tn(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?ro:t?ao:Yn;return!t&&we(r,"iterate",l?io:on),{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 Fs(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Vs(`${sn(s)} operation ${e}failed: target is readonly.`,Pt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Zh(){const s={get(r){return Ri(this,r)},get size(){return Vi(this)},has:$i,add:bl,set:xl,delete:wl,clear:Sl,forEach:Li(!1,!1)},t={get(r){return Ri(this,r,!1,!0)},get size(){return Vi(this)},has:$i,add:bl,set:xl,delete:wl,clear:Sl,forEach:Li(!1,!0)},e={get(r){return Ri(this,r,!0)},get size(){return Vi(this,!0)},has(r){return $i.call(this,r,!0)},add:Fs("add"),set:Fs("set"),delete:Fs("delete"),clear:Fs("clear"),forEach:Li(!0,!1)},n={get(r){return Ri(this,r,!0,!0)},get size(){return Vi(this,!0)},has(r){return $i.call(this,r,!0)},add:Fs("add"),set:Fs("set"),delete:Fs("delete"),clear:Fs("clear"),forEach:Li(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Fi(r,!1,!1),e[r]=Fi(r,!0,!1),t[r]=Fi(r,!1,!0),n[r]=Fi(r,!0,!0)}),[s,e,t,n]}const[Kh,Qh,Jh,td]=Zh();function Gi(s,t){const e=t?s?td:Jh:s?Qh:Kh;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(Mt(e,i)&&i in n?e:n,i,r)}const ed={get:Gi(!1,!1)},sd={get:Gi(!1,!0)},nd={get:Gi(!0,!1)},id={get:Gi(!0,!0)};function Cl(s,t,e){const n=Pt(e);if(n!==e&&t.call(s,n)){const i=Wr(s);Vs(`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,kl=new WeakMap,Tl=new WeakMap,Ol=new WeakMap;function rd(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function od(s){return s.__v_skip||!Object.isExtensible(s)?0:rd(Wr(s))}function Pe(s){return an(s)?s:zi(s,!1,Hh,ed,El)}function ad(s){return zi(s,!1,Wh,sd,kl)}function Pl(s){return zi(s,!0,Uh,nd,Tl)}function ws(s){return zi(s,!0,qh,id,Ol)}function zi(s,t,e,n,i){if(!Bt(s))return{}.NODE_ENV!=="production"&&Vs(`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=od(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function Cn(s){return an(s)?Cn(s.__v_raw):!!(s&&s.__v_isReactive)}function an(s){return!!(s&&s.__v_isReadonly)}function ln(s){return!!(s&&s.__v_isShallow)}function oo(s){return s?!!s.__v_raw:!1}function Pt(s){const t=s&&s.__v_raw;return t?Pt(t):s}function ld(s){return Object.isExtensible(s)&&il(s,"__v_skip",!0),s}const Yn=s=>Bt(s)?Pe(s):s,ao=s=>Bt(s)?Pl(s):s,cd="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(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 Qr(()=>t(this._value),()=>ji(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=Pt(this);return(!t._cacheable||t.effect.dirty)&&$s(t._value,t._value=t.effect.run())&&ji(t,4),Il(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Vs(cd,`
|
|
10
10
|
|
|
11
|
-
getter: `,this.getter),
|
|
11
|
+
getter: `,this.getter),ji(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ud(s,t,e=!1){let n,i;const r=St(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{Vs("Write operation failed: computed value is readonly")}:ae):(n=s.get,i=s.set);const o=new Dl(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function Il(s){var t;Ls&&rn&&(s=Pt(s),dl(rn,(t=s.dep)!=null?t:s.dep=pl(()=>s.dep=void 0,s instanceof Dl?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function ji(s,t=4,e){s=Pt(s);const n=s.dep;n&&fl(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function Se(s){return!!(s&&s.__v_isRef===!0)}function $(s){return hd(s,!1)}function hd(s,t){return Se(s)?s:new dd(s,t)}class dd{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Pt(t),this._value=e?t:Yn(t)}get value(){return Il(this),this._value}set value(t){const e=this.__v_isShallow||ln(t)||an(t);t=e?t:Pt(t),$s(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:Yn(t),ji(this,4,t))}}function Ft(s){return Se(s)?s.value:s}const fd={get:(s,t,e)=>Ft(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return Se(i)&&!Se(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function Nl(s){return Cn(s)?s:new Proxy(s,fd)}/**
|
|
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
|
|
16
|
-
`),
|
|
17
|
-
`,...
|
|
18
|
-
`],...Uh(e))}),t}function Uh({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,r=` at <${zr(s.component,s.type,n)}`,i=">"+e;return s.props?[r,...Yh(s.props),i]:[r+i]}function Yh(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...ll(n,s[n]))}),e.length>3&&t.push(" ..."),t}function ll(s,t,e){return Jt(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:ge(t)?(t=ll(s,Et(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):bt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Et(t),e?t:[`${s}=`,t])}const Fi={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 cs(s,t,e,n){try{return n?s(...n):s()}catch(r){kn(r,t,e)}}function Xe(s,t,e,n){if(bt(s)){const r=cs(s,t,e,n);return r&&Ei(r)&&r.catch(i=>{kn(i,t,e)}),r}if(mt(s)){const r=[];for(let i=0;i<s.length;i++)r.push(Xe(s[i],t,e,n));return r}else({}).NODE_ENV!=="production"&&tt(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function kn(s,t,e,n=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?Fi[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;i;){const c=i.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){os(),cs(l,null,10,[s,o,a]),as();return}}Xh(s,e,r,n)}function Xh(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const r=Fi[t];if(e&&Er(e),tt(`Unhandled error${r?` during execution of ${r}`:""}`),e&&Cr(),n)throw s;console.error(s)}else console.error(s)}let On=!1,Gi=!1;const xe=[];let ts=0;const an=[];let us=null,Ts=0;const cl=Promise.resolve();let ji=null;const Wh=100;function ul(s){const t=ji||cl;return s?t.then(this?s.bind(this):s):t}function qh(s){let t=ts+1,e=xe.length;for(;t<e;){const n=t+e>>>1,r=xe[n],i=Pn(r);i<s||i===s&&r.pre?t=n+1:e=n}return t}function Tr(s){(!xe.length||!xe.includes(s,On&&s.allowRecurse?ts+1:ts))&&(s.id==null?xe.push(s):xe.splice(qh(s.id),0,s),hl())}function hl(){!On&&!Gi&&(Gi=!0,ji=cl.then(ml))}function Kh(s){const t=xe.indexOf(s);t>ts&&xe.splice(t,1)}function fl(s){mt(s)?an.push(...s):(!us||!us.includes(s,s.allowRecurse?Ts+1:Ts))&&an.push(s),hl()}function dl(s,t,e=On?ts+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<xe.length;e++){const n=xe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&zi(t,n))continue;xe.splice(e,1),e--,n()}}}function pl(s){if(an.length){const t=[...new Set(an)].sort((e,n)=>Pn(e)-Pn(n));if(an.length=0,us){us.push(...t);return}for(us=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Ts=0;Ts<us.length;Ts++)({}).NODE_ENV!=="production"&&zi(s,us[Ts])||us[Ts]();us=null,Ts=0}}const Pn=s=>s.id==null?1/0:s.id,Zh=(s,t)=>{const e=Pn(s)-Pn(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function ml(s){Gi=!1,On=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(Zh);const t={}.NODE_ENV!=="production"?e=>zi(s,e):Qt;try{for(ts=0;ts<xe.length;ts++){const e=xe[ts];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;cs(e,null,14)}}}finally{ts=0,xe.length=0,pl(s),On=!1,ji=null,(xe.length||an.length)&&ml(s)}}function zi(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>Wh){const n=t.ownerInstance,r=n&&mo(n.type);return kn(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. 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 Bs=!1;const ln=new Set;({}).NODE_ENV!=="production"&&(ki().__VUE_HMR_RUNTIME__={createRecord:Bi(gl),rerender:Bi(tf),reload:Bi(ef)});const Hs=new Map;function Qh(s){const t=s.type.__hmrId;let e=Hs.get(t);e||(gl(t,s.type),e=Hs.get(t)),e.instances.add(s)}function Jh(s){Hs.get(s.type.__hmrId).instances.delete(s)}function gl(s,t){return Hs.has(s)?!1:(Hs.set(s,{initialDef:In(t),instances:new Set}),!0)}function In(s){return hc(s)?s.__vccOpts:s}function tf(s,t){const e=Hs.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,In(n.type).render=t),n.renderCache=[],Bs=!0,n.effect.dirty=!0,n.update(),Bs=!1}))}function ef(s,t){const e=Hs.get(s);if(!e)return;t=In(t),vl(e.initialDef,t);const n=[...e.instances];for(const r of n){const i=In(r.type);ln.has(i)||(i!==e.initialDef&&vl(i,t),ln.add(i)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(ln.add(i),r.ceReload(t.styles),ln.delete(i)):r.parent?(r.parent.effect.dirty=!0,Tr(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}fl(()=>{for(const r of n)ln.delete(In(r.type))})}function vl(s,t){Ht(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function Bi(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 es,Dn=[],Hi=!1;function Nn(s,...t){es?es.emit(s,...t):Hi||Dn.push({event:s,args:t})}function yl(s,t){var e,n;es=s,es?(es.enabled=!0,Dn.forEach(({event:r,args:i})=>es.emit(r,...i)),Dn=[]):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(i=>{yl(i,t)}),setTimeout(()=>{es||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Hi=!0,Dn=[])},3e3)):(Hi=!0,Dn=[])}function sf(s,t){Nn("app:init",s,t,{Fragment:Nt,Text:Fn,Comment:De,Static:Lr})}function nf(s){Nn("app:unmount",s)}const rf=Ui("component:added"),_l=Ui("component:updated"),of=Ui("component:removed"),af=s=>{es&&typeof es.cleanupBuffer=="function"&&!es.cleanupBuffer(s)&&of(s)};/*! #__NO_SIDE_EFFECTS__ */function Ui(s){return t=>{Nn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const lf=bl("perf:start"),cf=bl("perf:end");function bl(s){return(t,e,n)=>{Nn(s,t.appContext.app,t.uid,t,e,n)}}function uf(s,t,e){Nn("component:emit",s.appContext.app,s,t,e)}function hf(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||$t;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(Ls(t)in h))&&tt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Ls(t)}" prop.`);else{const p=u[t];bt(p)&&(p(...e)||tt(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=e;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:p}=n[u]||$t;p&&(r=e.map(f=>Jt(f)?f.trim():f)),h&&(r=e.map(lh))}if({}.NODE_ENV!=="production"&&uf(s,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Ls(u)]&&tt(`Event "${u}" is emitted in component ${zr(s,s.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${xs(t)}" instead of "${t}".`)}let a,l=n[a=Ls(t)]||n[a=Ls(Qe(t))];!l&&i&&(l=n[a=Ls(xs(t))]),l&&Xe(l,s,6,r);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,Xe(c,s,6,r)}}function xl(s,t,e=!1){const n=t.emitsCache,r=n.get(s);if(r!==void 0)return r;const i=s.emits;let o={},a=!1;if(!bt(s)){const l=c=>{const u=xl(c,t,!0);u&&(a=!0,Ht(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!i&&!a?(Mt(s)&&n.set(s,null),null):(mt(i)?i.forEach(l=>o[l]=null):Ht(o,i),Mt(s)&&n.set(s,o),o)}function kr(s,t){return!s||!Sn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Tt(s,t[0].toLowerCase()+t.slice(1))||Tt(s,xs(t))||Tt(s,t))}let te=null,Or=null;function Pr(s){const t=te;return te=s,Or=s&&s.type.__scopeId||null,t}function An(s){Or=s}function Mn(){Or=null}function ne(s,t=te,e){if(!t||s._n)return s;const n=(...r)=>{n._d&&Jl(-1);const i=Pr(t);let o;try{o=s(...r)}finally{Pr(i),n._d&&Jl(1)}return{}.NODE_ENV!=="production"&&_l(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let Yi=!1;function Ir(){Yi=!0}function Xi(s){const{type:t,vnode:e,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:h,data:p,setupState:f,ctx:g,inheritAttrs:y}=s,b=Pr(s);let k,A;({}).NODE_ENV!=="production"&&(Yi=!1);try{if(e.shapeFlag&4){const et=r||n,M={}.NODE_ENV!=="production"&&f.__isScriptSetup?new Proxy(et,{get(Y,gt,yt){return tt(`Property '${String(gt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(Y,gt,yt)}}):et;k=qe(c.call(M,et,u,{}.NODE_ENV!=="production"?ls(h):h,f,p,g)),A=a}else{const et=t;({}).NODE_ENV!=="production"&&a===h&&Ir(),k=qe(et.length>1?et({}.NODE_ENV!=="production"?ls(h):h,{}.NODE_ENV!=="production"?{get attrs(){return Ir(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):et({}.NODE_ENV!=="production"?ls(h):h,null)),A=t.props?a:ff(a)}}catch(et){Gn.length=0,kn(et,s,1),k=xt(De)}let N=k,I;if({}.NODE_ENV!=="production"&&k.patchFlag>0&&k.patchFlag&2048&&([N,I]=wl(k)),A&&y!==!1){const et=Object.keys(A),{shapeFlag:M}=N;if(et.length){if(M&7)i&&et.some(fr)&&(A=df(A,i)),N=Ps(N,A);else if({}.NODE_ENV!=="production"&&!Yi&&N.type!==De){const Y=Object.keys(a),gt=[],yt=[];for(let wt=0,Pt=Y.length;wt<Pt;wt++){const It=Y[wt];Sn(It)?fr(It)||gt.push(It[2].toLowerCase()+It.slice(3)):yt.push(It)}yt.length&&tt(`Extraneous non-props attributes (${yt.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),gt.length&&tt(`Extraneous non-emits event listeners (${gt.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"&&!Sl(N)&&tt("Runtime directive used on component with non-element root node. The directives will not function as intended."),N=Ps(N),N.dirs=N.dirs?N.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Sl(N)&&tt("Component inside <Transition> renders non-element root node that cannot be animated."),N.transition=e.transition),{}.NODE_ENV!=="production"&&I?I(N):k=N,Pr(b),k}const wl=s=>{const t=s.children,e=s.dynamicChildren,n=Wi(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return wl(n)}else return[s,void 0];const r=t.indexOf(n),i=e?e.indexOf(n):-1,o=a=>{t[r]=a,e&&(i>-1?e[i]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[qe(n),o]};function Wi(s,t=!0){let e;for(let n=0;n<s.length;n++){const r=s[n];if(cn(r)){if(r.type!==De||r.children==="v-if"){if(e)return;if(e=r,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return Wi(e.children)}}else return}return e}const ff=s=>{let t;for(const e in s)(e==="class"||e==="style"||Sn(e))&&((t||(t={}))[e]=s[e]);return t},df=(s,t)=>{const e={};for(const n in s)(!fr(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Sl=s=>s.shapeFlag&7||s.type===De;function pf(s,t,e){const{props:n,children:r,component:i}=s,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if({}.NODE_ENV!=="production"&&(r||a)&&Bs||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?El(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const p=u[h];if(o[p]!==n[p]&&!kr(c,p))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?El(n,o,c):!0:!!o;return!1}function El(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==s[i]&&!kr(e,i))return!0}return!1}function mf({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 qi="components";function gf(s,t){return yf(qi,s,!0,t)||s}const vf=Symbol.for("v-ndc");function yf(s,t,e=!0,n=!1){const r=te||ie;if(r){const i=r.type;if(s===qi){const a=mo(i,!1);if(a&&(a===t||a===Qe(t)||a===$s(Qe(t))))return i}const o=Cl(r[s]||i[s],t)||Cl(r.appContext[s],t);if(!o&&n)return i;if({}.NODE_ENV!=="production"&&e&&!o){const a=s===qi?`
|
|
19
|
-
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";tt(`Failed to resolve ${s.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&tt(`resolve${$s(s.slice(0,-1))} can only be used in render() or setup().`)}function Cl(s,t){return s&&(s[t]||s[Qe(t)]||s[$s(Qe(t))])}const _f=s=>s.__isSuspense;function bf(s,t){t&&t.pendingBranch?mt(s)?t.effects.push(...s):t.effects.push(s):fl(s)}const xf=Symbol.for("v-scx"),wf=()=>{{const s=Mr(xf);return s||{}.NODE_ENV!=="production"&&tt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Tl(s,t){return Ki(s,null,t)}const Dr={};function kt(s,t,e){return{}.NODE_ENV!=="production"&&!bt(t)&&tt("`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."),Ki(s,t,e)}function Ki(s,t,{immediate:e,deep:n,flush:r,once:i,onTrack:o,onTrigger:a}=$t){if(t&&i){const Y=t;t=(...gt)=>{Y(...gt),M()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&tt('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&&tt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&tt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&tt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=Y=>{tt("Invalid watch source: ",Y,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ie,u=Y=>n===!0?Y:Us(Y,n===!1?1:void 0);let h,p=!1,f=!1;if(ge(s)?(h=()=>s.value,p=js(s)):on(s)?(h=()=>u(s),p=!0):mt(s)?(f=!0,p=s.some(Y=>on(Y)||js(Y)),h=()=>s.map(Y=>{if(ge(Y))return Y.value;if(on(Y))return u(Y);if(bt(Y))return cs(Y,c,2);({}).NODE_ENV!=="production"&&l(Y)})):bt(s)?t?h=()=>cs(s,c,2):h=()=>(g&&g(),Xe(s,c,3,[y])):(h=Qt,{}.NODE_ENV!=="production"&&l(s)),t&&n){const Y=h;h=()=>Us(Y())}let g,y=Y=>{g=I.onStop=()=>{cs(Y,c,4),g=I.onStop=void 0}},b;if(Gr)if(y=Qt,t?e&&Xe(t,c,3,[h(),f?[]:void 0,y]):h(),r==="sync"){const Y=wf();b=Y.__watcherHandles||(Y.__watcherHandles=[])}else return Qt;let k=f?new Array(s.length).fill(Dr):Dr;const A=()=>{if(!(!I.active||!I.dirty))if(t){const Y=I.run();(n||p||(f?Y.some((gt,yt)=>ws(gt,k[yt])):ws(Y,k)))&&(g&&g(),Xe(t,c,3,[Y,k===Dr?void 0:f&&k[0]===Dr?[]:k,y]),k=Y)}else I.run()};A.allowRecurse=!!t;let N;r==="sync"?N=A:r==="post"?N=()=>Ie(A,c&&c.suspense):(A.pre=!0,c&&(A.id=c.uid),N=()=>Tr(A));const I=new Pi(h,Qt,N),et=gh(),M=()=>{I.stop(),et&&Si(et.effects,I)};return{}.NODE_ENV!=="production"&&(I.onTrack=o,I.onTrigger=a),t?e?A():k=I.run():r==="post"?Ie(I.run.bind(I),c&&c.suspense):I.run(),b&&b.push(M),M}function Sf(s,t,e){const n=this.proxy,r=Jt(s)?s.includes(".")?kl(n,s):()=>n[s]:s.bind(n,n);let i;bt(t)?i=t:(i=t.handler,e=t);const o=Bn(this),a=Ki(r,i.bind(n),e);return o(),a}function kl(s,t){const e=t.split(".");return()=>{let n=s;for(let r=0;r<e.length&&n;r++)n=n[e[r]];return n}}function Us(s,t,e=0,n){if(!Mt(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),ge(s))Us(s.value,t,e,n);else if(mt(s))for(let r=0;r<s.length;r++)Us(s[r],t,e,n);else if(Ia(s)||Ms(s))s.forEach(r=>{Us(r,t,e,n)});else if(Na(s))for(const r in s)Us(s[r],t,e,n);return s}function Ol(s){ih(s)&&tt("Do not use built-in directive ids as custom directive id: "+s)}function hs(s,t){if(te===null)return{}.NODE_ENV!=="production"&&tt("withDirectives can only be used inside render functions."),s;const e=jr(te)||te.proxy,n=s.dirs||(s.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,a,l=$t]=t[r];i&&(bt(i)&&(i={mounted:i,updated:i}),i.deep&&Us(o),n.push({dir:i,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function Ys(s,t,e,n){const r=s.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const a=r[o];i&&(a.oldValue=i[o].value);let l=a.dir[n];l&&(os(),Xe(l,e,8,[s.el,a,s,t]),as())}}/*! #__NO_SIDE_EFFECTS__ */function ut(s,t){return bt(s)?(()=>Ht({name:s.name},t,{setup:s}))():s}const Rn=s=>!!s.type.__asyncLoader,Zi=s=>s.type.__isKeepAlive;function Ef(s,t){Pl(s,"a",t)}function Cf(s,t){Pl(s,"da",t)}function Pl(s,t,e=ie){const n=s.__wdc||(s.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return s()});if(Nr(t,n,e),e){let r=e.parent;for(;r&&r.parent;)Zi(r.parent.vnode)&&Tf(n,t,e,r),r=r.parent}}function Tf(s,t,e,n){const r=Nr(t,s,n,!0);ee(()=>{Si(n[t],r)},e)}function Nr(s,t,e=ie,n=!1){if(e){const r=e[s]||(e[s]=[]),i=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;os();const a=Bn(e),l=Xe(t,e,s,o);return a(),as(),l});return n?r.unshift(i):r.push(i),i}else if({}.NODE_ENV!=="production"){const r=Ls(Fi[s].replace(/ hook$/,""));tt(`${r} 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 fs=s=>(t,e=ie)=>(!Gr||s==="sp")&&Nr(s,(...n)=>t(...n),e),kf=fs("bm"),ks=fs("m"),Of=fs("bu"),Pf=fs("u"),If=fs("bum"),ee=fs("um"),Df=fs("sp"),Nf=fs("rtg"),Af=fs("rtc");function Mf(s,t=ie){Nr("ec",s,t)}function ve(s,t,e,n){let r;const i=e&&e[n];if(mt(s)||Jt(s)){r=new Array(s.length);for(let o=0,a=s.length;o<a;o++)r[o]=t(s[o],o,void 0,i&&i[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&tt(`The v-for range expect an integer value but got ${s}.`),r=new Array(s);for(let o=0;o<s;o++)r[o]=t(o+1,o,void 0,i&&i[o])}else if(Mt(s))if(s[Symbol.iterator])r=Array.from(s,(o,a)=>t(o,a,void 0,i&&i[a]));else{const o=Object.keys(s);r=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];r[a]=t(s[c],c,a,i&&i[a])}}else r=[];return e&&(e[n]=r),r}function zt(s,t,e={},n,r){if(te.isCE||te.parent&&Rn(te.parent)&&te.parent.isCE)return t!=="default"&&(e.name=t),xt("slot",e,n&&n());let i=s[t];({}).NODE_ENV!=="production"&&i&&i.length>1&&(tt("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."),i=()=>[]),i&&i._c&&(i._d=!1),V();const o=i&&Il(i(e)),a=Ce(Nt,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),i&&i._c&&(i._d=!0),a}function Il(s){return s.some(t=>cn(t)?!(t.type===De||t.type===Nt&&!Il(t.children)):!0)?s:null}const Qi=s=>s?oc(s)?jr(s)||s.proxy:Qi(s.parent):null,Xs=Ht(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?ls(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?ls(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?ls(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?ls(s.refs):s.refs,$parent:s=>Qi(s.parent),$root:s=>Qi(s.root),$emit:s=>s.emit,$options:s=>so(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Tr(s.update)}),$nextTick:s=>s.n||(s.n=ul.bind(s.proxy)),$watch:s=>Sf.bind(s)}),Ji=s=>s==="_"||s==="$",to=(s,t)=>s!==$t&&!s.__isScriptSetup&&Tt(s,t),Dl={get({_:s},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:n,data:r,props:i,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return e[t];case 3:return i[t]}else{if(to(n,t))return o[t]=1,n[t];if(r!==$t&&Tt(r,t))return o[t]=2,r[t];if((c=s.propsOptions[0])&&Tt(c,t))return o[t]=3,i[t];if(e!==$t&&Tt(e,t))return o[t]=4,e[t];eo&&(o[t]=0)}}const u=Xs[t];let h,p;if(u)return t==="$attrs"?(me(s.attrs,"get",""),{}.NODE_ENV!=="production"&&Ir()):{}.NODE_ENV!=="production"&&t==="$slots"&&me(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==$t&&Tt(e,t))return o[t]=4,e[t];if(p=l.config.globalProperties,Tt(p,t))return p[t];({}).NODE_ENV!=="production"&&te&&(!Jt(t)||t.indexOf("__v")!==0)&&(r!==$t&&Ji(t[0])&&Tt(r,t)?tt(`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===te&&tt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:r,ctx:i}=s;return to(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&Tt(r,t)?(tt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==$t&&Tt(n,t)?(n[t]=e,!0):Tt(s.props,t)?({}.NODE_ENV!=="production"&&tt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&tt(`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(i,t,{enumerable:!0,configurable:!0,value:e}):i[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:r,propsOptions:i}},o){let a;return!!e[o]||s!==$t&&Tt(s,o)||to(t,o)||(a=i[0])&&Tt(a,o)||Tt(n,o)||Tt(Xs,o)||Tt(r.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:Tt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(Dl.ownKeys=s=>(tt("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 Rf(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(Xs).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>Xs[e](s),set:Qt})}),t}function $f(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:Qt})})}function Lf(s){const{ctx:t,setupState:e}=s;Object.keys(Et(e)).forEach(n=>{if(!e.__isScriptSetup){if(Ji(n[0])){tt(`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:Qt})}})}function Vf(){return Ff().slots}function Ff(){const s=rc();return{}.NODE_ENV!=="production"&&!s&&tt("useContext() called without active instance."),s.setupContext||(s.setupContext=uc(s))}function Nl(s){return mt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Gf(){const s=Object.create(null);return(t,e)=>{s[e]?tt(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let eo=!0;function jf(s){const t=so(s),e=s.proxy,n=s.ctx;eo=!1,t.beforeCreate&&Al(t.beforeCreate,s,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:p,beforeUpdate:f,updated:g,activated:y,deactivated:b,beforeDestroy:k,beforeUnmount:A,destroyed:N,unmounted:I,render:et,renderTracked:M,renderTriggered:Y,errorCaptured:gt,serverPrefetch:yt,expose:wt,inheritAttrs:Pt,components:It,directives:Xt,filters:Wt}=t,se={}.NODE_ENV!=="production"?Gf():null;if({}.NODE_ENV!=="production"){const[_t]=s.propsOptions;if(_t)for(const $ in _t)se("Props",$)}if(c&&zf(c,n,se),o)for(const _t in o){const $=o[_t];bt($)?({}.NODE_ENV!=="production"?Object.defineProperty(n,_t,{value:$.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[_t]=$.bind(e),{}.NODE_ENV!=="production"&&se("Methods",_t)):{}.NODE_ENV!=="production"&&tt(`Method "${_t}" has type "${typeof $}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!bt(r)&&tt("The data option must be a function. Plain object usage is no longer supported.");const _t=r.call(e,e);if({}.NODE_ENV!=="production"&&Ei(_t)&&tt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Mt(_t))({}).NODE_ENV!=="production"&&tt("data() should return an object.");else if(s.data=Se(_t),{}.NODE_ENV!=="production")for(const $ in _t)se("Data",$),Ji($[0])||Object.defineProperty(n,$,{configurable:!0,enumerable:!0,get:()=>_t[$],set:Qt})}if(eo=!0,i)for(const _t in i){const $=i[_t],nt=bt($)?$.bind(e,e):bt($.get)?$.get.bind(e,e):Qt;({}).NODE_ENV!=="production"&&nt===Qt&&tt(`Computed property "${_t}" has no getter.`);const q=!bt($)&&bt($.set)?$.set.bind(e):{}.NODE_ENV!=="production"?()=>{tt(`Write operation failed: computed property "${_t}" is readonly.`)}:Qt,St=Cd({get:nt,set:q});Object.defineProperty(n,_t,{enumerable:!0,configurable:!0,get:()=>St.value,set:lt=>St.value=lt}),{}.NODE_ENV!=="production"&&se("Computed",_t)}if(a)for(const _t in a)Ml(a[_t],n,e,_t);if(l){const _t=bt(l)?l.call(e):l;Reflect.ownKeys(_t).forEach($=>{Wf($,_t[$])})}u&&Al(u,s,"c");function At(_t,$){mt($)?$.forEach(nt=>_t(nt.bind(e))):$&&_t($.bind(e))}if(At(kf,h),At(ks,p),At(Of,f),At(Pf,g),At(Ef,y),At(Cf,b),At(Mf,gt),At(Af,M),At(Nf,Y),At(If,A),At(ee,I),At(Df,yt),mt(wt))if(wt.length){const _t=s.exposed||(s.exposed={});wt.forEach($=>{Object.defineProperty(_t,$,{get:()=>e[$],set:nt=>e[$]=nt})})}else s.exposed||(s.exposed={});et&&s.render===Qt&&(s.render=et),Pt!=null&&(s.inheritAttrs=Pt),It&&(s.components=It),Xt&&(s.directives=Xt)}function zf(s,t,e=Qt){mt(s)&&(s=no(s));for(const n in s){const r=s[n];let i;Mt(r)?"default"in r?i=Mr(r.from||n,r.default,!0):i=Mr(r.from||n):i=Mr(r),ge(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i,{}.NODE_ENV!=="production"&&e("Inject",n)}}function Al(s,t,e){Xe(mt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function Ml(s,t,e,n){const r=n.includes(".")?kl(e,n):()=>e[n];if(Jt(s)){const i=t[s];bt(i)?kt(r,i):{}.NODE_ENV!=="production"&&tt(`Invalid watch handler specified by key "${s}"`,i)}else if(bt(s))kt(r,s.bind(e));else if(Mt(s))if(mt(s))s.forEach(i=>Ml(i,t,e,n));else{const i=bt(s.handler)?s.handler.bind(e):t[s.handler];bt(i)?kt(r,i,s):{}.NODE_ENV!=="production"&&tt(`Invalid watch handler specified by key "${s.handler}"`,i)}else({}).NODE_ENV!=="production"&&tt(`Invalid watch option: "${n}"`,s)}function so(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=s.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!e&&!n?l=t:(l={},r.length&&r.forEach(c=>Ar(l,c,o,!0)),Ar(l,t,o)),Mt(t)&&i.set(t,l),l}function Ar(s,t,e,n=!1){const{mixins:r,extends:i}=t;i&&Ar(s,i,e,!0),r&&r.forEach(o=>Ar(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&tt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Bf[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const Bf={data:Rl,props:$l,emits:$l,methods:$n,computed:$n,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:$n,directives:$n,watch:Uf,provide:Rl,inject:Hf};function Rl(s,t){return t?s?function(){return Ht(bt(s)?s.call(this,this):s,bt(t)?t.call(this,this):t)}:t:s}function Hf(s,t){return $n(no(s),no(t))}function no(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Ee(s,t){return s?[...new Set([].concat(s,t))]:t}function $n(s,t){return s?Ht(Object.create(null),s,t):t}function $l(s,t){return s?mt(s)&&mt(t)?[...new Set([...s,...t])]:Ht(Object.create(null),Nl(s),Nl(t??{})):t}function Uf(s,t){if(!s)return t;if(!t)return s;const e=Ht(Object.create(null),s);for(const n in t)e[n]=Ee(s[n],t[n]);return e}function Ll(){return{app:null,config:{isNativeTag:nh,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 Yf=0;function Xf(s,t){return function(n,r=null){bt(n)||(n=Ht({},n)),r!=null&&!Mt(r)&&({}.NODE_ENV!=="production"&&tt("root props passed to app.mount() must be an object."),r=null);const i=Ll(),o=new WeakSet;let a=!1;const l=i.app={_uid:Yf++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:fc,get config(){return i.config},set config(c){({}).NODE_ENV!=="production"&&tt("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&tt("Plugin has already been applied to target app."):c&&bt(c.install)?(o.add(c),c.install(l,...u)):bt(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&tt('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return i.mixins.includes(c)?{}.NODE_ENV!=="production"&&tt("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):i.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&fo(c,i.config),u?({}.NODE_ENV!=="production"&&i.components[c]&&tt(`Component "${c}" has already been registered in target app.`),i.components[c]=u,l):i.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Ol(c),u?({}.NODE_ENV!=="production"&&i.directives[c]&&tt(`Directive "${c}" has already been registered in target app.`),i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&tt("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__&&tt("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 p=xt(n,r);return p.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(i.reload=()=>{s(Ps(p),c,h)}),u&&t?t(p,c):s(p,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=p.component,sf(l,fc)),jr(p.component)||p.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,nf(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&tt("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in i.provides&&tt(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),i.provides[c]=u,l},runWithContext(c){const u=Ln;Ln=l;try{return c()}finally{Ln=u}}};return l}}let Ln=null;function Wf(s,t){if(!ie)({}).NODE_ENV!=="production"&&tt("provide() can only be used inside setup().");else{let e=ie.provides;const n=ie.parent&&ie.parent.provides;n===e&&(e=ie.provides=Object.create(n)),e[s]=t}}function Mr(s,t,e=!1){const n=ie||te;if(n||Ln){const r=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Ln._context.provides;if(r&&s in r)return r[s];if(arguments.length>1)return e&&bt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&tt(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&tt("inject() can only be used inside setup() or functional components.")}const Vl={},Fl=()=>Object.create(Vl),Gl=s=>Object.getPrototypeOf(s)===Vl;function qf(s,t,e,n=!1){const r={},i=Fl();s.propsDefaults=Object.create(null),jl(s,t,r,i);for(const o in s.propsOptions[0])o in r||(r[o]=void 0);({}).NODE_ENV!=="production"&&Yl(t||{},r,s),e?s.props=n?r:$h(r):s.type.props?s.props=r:s.props=i,s.attrs=i}function Kf(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function Zf(s,t,e,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=s,a=Et(r),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&Kf(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let p=u[h];if(kr(s.emitsOptions,p))continue;const f=t[p];if(l)if(Tt(i,p))f!==i[p]&&(i[p]=f,c=!0);else{const g=Qe(p);r[g]=ro(l,a,g,f,s,!1)}else f!==i[p]&&(i[p]=f,c=!0)}}}else{jl(s,t,r,i)&&(c=!0);let u;for(const h in a)(!t||!Tt(t,h)&&((u=xs(h))===h||!Tt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(r[h]=ro(l,a,h,void 0,s,!0)):delete r[h]);if(i!==a)for(const h in i)(!t||!Tt(t,h))&&(delete i[h],c=!0)}c&&Je(s.attrs,"set",""),{}.NODE_ENV!=="production"&&Yl(t||{},r,s)}function jl(s,t,e,n){const[r,i]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(En(l))continue;const c=t[l];let u;r&&Tt(r,u=Qe(l))?!i||!i.includes(u)?e[u]=c:(a||(a={}))[u]=c:kr(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(i){const l=Et(e),c=a||$t;for(let u=0;u<i.length;u++){const h=i[u];e[h]=ro(r,l,h,c[h],s,!Tt(c,h))}}return o}function ro(s,t,e,n,r,i){const o=s[e];if(o!=null){const a=Tt(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&bt(l)){const{propsDefaults:c}=r;if(e in c)n=c[e];else{const u=Bn(r);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(i&&!a?n=!1:o[1]&&(n===""||n===xs(e))&&(n=!0))}return n}function zl(s,t,e=!1){const n=t.propsCache,r=n.get(s);if(r)return r;const i=s.props,o={},a=[];let l=!1;if(!bt(s)){const u=h=>{l=!0;const[p,f]=zl(h,t,!0);Ht(o,p),f&&a.push(...f)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!i&&!l)return Mt(s)&&n.set(s,rn),rn;if(mt(i))for(let u=0;u<i.length;u++){({}).NODE_ENV!=="production"&&!Jt(i[u])&&tt("props must be strings when using array syntax.",i[u]);const h=Qe(i[u]);Bl(h)&&(o[h]=$t)}else if(i){({}).NODE_ENV!=="production"&&!Mt(i)&&tt("invalid props options",i);for(const u in i){const h=Qe(u);if(Bl(h)){const p=i[u],f=o[h]=mt(p)||bt(p)?{type:p}:Ht({},p);if(f){const g=Ul(Boolean,f.type),y=Ul(String,f.type);f[0]=g>-1,f[1]=y<0||g<y,(g>-1||Tt(f,"default"))&&a.push(h)}}}}const c=[o,a];return Mt(s)&&n.set(s,c),c}function Bl(s){return s[0]!=="$"&&!En(s)?!0:({}.NODE_ENV!=="production"&&tt(`Invalid prop name: "${s}" is a reserved property.`),!1)}function io(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Hl(s,t){return io(s)===io(t)}function Ul(s,t){return mt(t)?t.findIndex(e=>Hl(e,s)):bt(t)&&Hl(t,s)?0:-1}function Yl(s,t,e){const n=Et(t),r=e.propsOptions[0];for(const i in r){let o=r[i];o!=null&&Qf(i,n[i],o,{}.NODE_ENV!=="production"?ls(n):n,!Tt(s,i)&&!Tt(s,xs(i)))}}function Qf(s,t,e,n,r){const{type:i,required:o,validator:a,skipCheck:l}=e;if(o&&r){tt('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(i!=null&&i!==!0&&!l){let c=!1;const u=mt(i)?i:[i],h=[];for(let p=0;p<u.length&&!c;p++){const{valid:f,expectedType:g}=td(t,u[p]);h.push(g||""),c=f}if(!c){tt(ed(s,t,h));return}}a&&!a(t,n)&&tt('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Jf=nn("String,Number,Boolean,Function,Symbol,BigInt");function td(s,t){let e;const n=io(t);if(Jf(n)){const r=typeof s;e=r===n.toLowerCase(),!e&&r==="object"&&(e=s instanceof t)}else n==="Object"?e=Mt(s):n==="Array"?e=mt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function ed(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($s).join(" | ")}`;const r=e[0],i=Ci(t),o=Xl(t,r),a=Xl(t,i);return e.length===1&&Wl(r)&&!sd(r,i)&&(n+=` with value ${o}`),n+=`, got ${i} `,Wl(i)&&(n+=`with value ${a}.`),n}function Xl(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function Wl(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function sd(...s){return s.some(t=>t.toLowerCase()==="boolean")}const ql=s=>s[0]==="_"||s==="$stable",oo=s=>mt(s)?s.map(qe):[qe(s)],nd=(s,t,e)=>{if(t._n)return t;const n=ne((...r)=>({}.NODE_ENV!=="production"&&ie&&(!e||e.root===ie.root)&&tt(`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.`),oo(t(...r))),e);return n._c=!1,n},Kl=(s,t,e)=>{const n=s._ctx;for(const r in s){if(ql(r))continue;const i=s[r];if(bt(i))t[r]=nd(r,i,n);else if(i!=null){({}).NODE_ENV!=="production"&&tt(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const o=oo(i);t[r]=()=>o}}},Zl=(s,t)=>{({}).NODE_ENV!=="production"&&!Zi(s.vnode)&&tt("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=oo(t);s.slots.default=()=>e},rd=(s,t)=>{const e=s.slots=Fl();if(s.vnode.shapeFlag&32){const n=t._;n?(Ht(e,t),Aa(e,"_",n)):Kl(t,e)}else t&&Zl(s,t)},id=(s,t,e)=>{const{vnode:n,slots:r}=s;let i=!0,o=$t;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&Bs?(Ht(r,t),Je(s,"set","$slots")):e&&a===1?i=!1:(Ht(r,t),!e&&a===1&&delete r._):(i=!t.$stable,Kl(t,r)),o=t}else t&&(Zl(s,t),o={default:1});if(i)for(const a in r)!ql(a)&&o[a]==null&&delete r[a]};function ao(s,t,e,n,r=!1){if(mt(s)){s.forEach((p,f)=>ao(p,t&&(mt(t)?t[f]:t),e,n,r));return}if(Rn(n)&&!r)return;const i=n.shapeFlag&4?jr(n.component)||n.component.proxy:n.el,o=r?null:i,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){tt("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===$t?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(Jt(c)?(u[c]=null,Tt(h,c)&&(h[c]=null)):ge(c)&&(c.value=null)),bt(l))cs(l,a,12,[o,u]);else{const p=Jt(l),f=ge(l);if(p||f){const g=()=>{if(s.f){const y=p?Tt(h,l)?h[l]:u[l]:l.value;r?mt(y)&&Si(y,i):mt(y)?y.includes(i)||y.push(i):p?(u[l]=[i],Tt(h,l)&&(h[l]=u[l])):(l.value=[i],s.k&&(u[s.k]=l.value))}else p?(u[l]=o,Tt(h,l)&&(h[l]=o)):f?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&tt("Invalid template ref type:",l,`(${typeof l})`)};o?(g.id=-1,Ie(g,e)):g()}else({}).NODE_ENV!=="production"&&tt("Invalid template ref type:",l,`(${typeof l})`)}}let Vn,Os;function ds(s,t){s.appContext.config.performance&&Rr()&&Os.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&lf(s,t,Rr()?Os.now():Date.now())}function ps(s,t){if(s.appContext.config.performance&&Rr()){const e=`vue-${t}-${s.uid}`,n=e+":end";Os.mark(n),Os.measure(`<${zr(s,s.type)}> ${t}`,e,n),Os.clearMarks(e),Os.clearMarks(n)}({}).NODE_ENV!=="production"&&cf(s,t,Rr()?Os.now():Date.now())}function Rr(){return Vn!==void 0||(typeof window<"u"&&window.performance?(Vn=!0,Os=window.performance):Vn=!1),Vn}function od(){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.
|
|
15
|
+
**/const cn=[];function Bi(s){cn.push(s)}function Yi(){cn.pop()}function st(s,...t){bs();const e=cn.length?cn[cn.length-1].component:null,n=e&&e.appContext.config.warnHandler,i=pd();if(n)Ss(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 <${ar(e,r.type)}>`).join(`
|
|
16
|
+
`),i]);else{const r=[`[Vue warn]: ${s}`,...t];i.length&&r.push(`
|
|
17
|
+
`,...md(i)),console.warn(...r)}xs()}function pd(){let s=cn[cn.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 md(s){const t=[];return s.forEach((e,n)=>{t.push(...n===0?[]:[`
|
|
18
|
+
`],...gd(e))}),t}function gd({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${ar(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...yd(s.props),r]:[i+r]}function yd(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...Ml(n,s[n]))}),e.length>3&&t.push(" ..."),t}function Ml(s,t,e){return le(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:Se(t)?(t=Ml(s,Pt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):St(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Pt(t),e?t:[`${s}=`,t])}const lo={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 Ss(s,t,e,n){try{return n?s(...n):s()}catch(i){Xn(i,t,e)}}function ss(s,t,e,n){if(St(s)){const i=Ss(s,t,e,n);return i&&Ur(i)&&i.catch(r=>{Xn(r,t,e)}),i}if(mt(s)){const i=[];for(let r=0;r<s.length;r++)i.push(ss(s[r],t,e,n));return i}else({}).NODE_ENV!=="production"&&st(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function Xn(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"?lo[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){bs(),Ss(l,null,10,[s,o,a]),xs();return}}vd(s,e,i,n)}function vd(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=lo[t];if(e&&Bi(e),st(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Yi(),n)throw s;console.error(s)}else console.error(s)}let Hn=!1,co=!1;const Oe=[];let hs=0;const En=[];let Cs=null,Gs=0;const Al=Promise.resolve();let uo=null;const _d=100;function Rl(s){const t=uo||Al;return s?t.then(this?s.bind(this):s):t}function bd(s){let t=hs+1,e=Oe.length;for(;t<e;){const n=t+e>>>1,i=Oe[n],r=Un(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Xi(s){(!Oe.length||!Oe.includes(s,Hn&&s.allowRecurse?hs+1:hs))&&(s.id==null?Oe.push(s):Oe.splice(bd(s.id),0,s),$l())}function $l(){!Hn&&!co&&(co=!0,uo=Al.then(Gl))}function xd(s){const t=Oe.indexOf(s);t>hs&&Oe.splice(t,1)}function Vl(s){mt(s)?En.push(...s):(!Cs||!Cs.includes(s,s.allowRecurse?Gs+1:Gs))&&En.push(s),$l()}function Ll(s,t,e=Hn?hs+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Oe.length;e++){const n=Oe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&ho(t,n))continue;Oe.splice(e,1),e--,n()}}}function Fl(s){if(En.length){const t=[...new Set(En)].sort((e,n)=>Un(e)-Un(n));if(En.length=0,Cs){Cs.push(...t);return}for(Cs=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Gs=0;Gs<Cs.length;Gs++)({}).NODE_ENV!=="production"&&ho(s,Cs[Gs])||Cs[Gs]();Cs=null,Gs=0}}const Un=s=>s.id==null?1/0:s.id,wd=(s,t)=>{const e=Un(s)-Un(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function Gl(s){co=!1,Hn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),Oe.sort(wd);const t={}.NODE_ENV!=="production"?e=>ho(s,e):ae;try{for(hs=0;hs<Oe.length;hs++){const e=Oe[hs];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;Ss(e,null,14)}}}finally{hs=0,Oe.length=0,Fl(s),Hn=!1,uo=null,(Oe.length||En.length)&&Gl(s)}}function ho(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>_d){const n=t.ownerInstance,i=n&&Lo(n.type);return Xn(`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 un=!1;const kn=new Set;({}).NODE_ENV!=="production"&&(Zr().__VUE_HMR_RUNTIME__={createRecord:fo(zl),rerender:fo(Ed),reload:fo(kd)});const hn=new Map;function Sd(s){const t=s.type.__hmrId;let e=hn.get(t);e||(zl(t,s.type),e=hn.get(t)),e.instances.add(s)}function Cd(s){hn.get(s.type.__hmrId).instances.delete(s)}function zl(s,t){return hn.has(s)?!1:(hn.set(s,{initialDef:Wn(t),instances:new Set}),!0)}function Wn(s){return $c(s)?s.__vccOpts:s}function Ed(s,t){const e=hn.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Wn(n.type).render=t),n.renderCache=[],un=!0,n.effect.dirty=!0,n.update(),un=!1}))}function kd(s,t){const e=hn.get(s);if(!e)return;t=Wn(t),jl(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=Wn(i.type);kn.has(r)||(r!==e.initialDef&&jl(r,t),kn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(kn.add(r),i.ceReload(t.styles),kn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Xi(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)kn.delete(Wn(i.type))})}function jl(s,t){te(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function fo(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 ds,qn=[],po=!1;function Zn(s,...t){ds?ds.emit(s,...t):po||qn.push({event:s,args:t})}function Bl(s,t){var e,n;ds=s,ds?(ds.enabled=!0,qn.forEach(({event:i,args:r})=>ds.emit(i,...r)),qn=[]):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=>{Bl(r,t)}),setTimeout(()=>{ds||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,po=!0,qn=[])},3e3)):(po=!0,qn=[])}function Td(s,t){Zn("app:init",s,t,{Fragment:zt,Text:ei,Comment:Fe,Static:sr})}function Od(s){Zn("app:unmount",s)}const Pd=mo("component:added"),Yl=mo("component:updated"),Dd=mo("component:removed"),Id=s=>{ds&&typeof ds.cleanupBuffer=="function"&&!ds.cleanupBuffer(s)&&Dd(s)};/*! #__NO_SIDE_EFFECTS__ */function mo(s){return t=>{Zn(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const Nd=Xl("perf:start"),Md=Xl("perf:end");function Xl(s){return(t,e,n)=>{Zn(s,t.appContext.app,t.uid,t,e,n)}}function Ad(s,t,e){Zn("component:emit",s.appContext.app,s,t,e)}function Rd(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Ht;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(nn(t)in h))&&st(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${nn(t)}" prop.`);else{const f=u[t];St(f)&&(f(...e)||st(`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]||Ht;f&&(i=e.map(d=>le(d)?d.trim():d)),h&&(i=e.map(Mh))}if({}.NODE_ENV!=="production"&&Ad(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[nn(u)]&&st(`Event "${u}" is emitted in component ${ar(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 "${Rs(t)}" instead of "${t}".`)}let a,l=n[a=nn(t)]||n[a=nn(cs(t))];!l&&r&&(l=n[a=nn(Rs(t))]),l&&ss(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,ss(c,s,6,i)}}function Hl(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(!St(s)){const l=c=>{const u=Hl(c,t,!0);u&&(a=!0,te(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Bt(s)&&n.set(s,null),null):(mt(r)?r.forEach(l=>o[l]=null):te(o,r),Bt(s)&&n.set(s,o),o)}function Hi(s,t){return!s||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Mt(s,t[0].toLowerCase()+t.slice(1))||Mt(s,Rs(t))||Mt(s,t))}let ce=null,Ui=null;function Wi(s){const t=ce;return ce=s,Ui=s&&s.type.__scopeId||null,t}function Tn(s){Ui=s}function On(){Ui=null}function he(s,t=ce,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&Cc(-1);const r=Wi(t);let o;try{o=s(...i)}finally{Wi(r),n._d&&Cc(1)}return{}.NODE_ENV!=="production"&&Yl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let go=!1;function qi(){go=!0}function yo(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:y}=s,_=Wi(s);let E,D;({}).NODE_ENV!=="production"&&(go=!1);try{if(e.shapeFlag&4){const Q=i||n,A={}.NODE_ENV!=="production"&&d.__isScriptSetup?new Proxy(Q,{get(j,yt,bt){return st(`Property '${String(yt)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(j,yt,bt)}}):Q;E=is(c.call(A,Q,u,{}.NODE_ENV!=="production"?ws(h):h,d,f,m)),D=a}else{const Q=t;({}).NODE_ENV!=="production"&&a===h&&qi(),E=is(Q.length>1?Q({}.NODE_ENV!=="production"?ws(h):h,{}.NODE_ENV!=="production"?{get attrs(){return qi(),a},slots:o,emit:l}:{attrs:a,slots:o,emit:l}):Q({}.NODE_ENV!=="production"?ws(h):h,null)),D=t.props?a:$d(a)}}catch(Q){si.length=0,Xn(Q,s,1),E=pt(Fe)}let N=E,k;if({}.NODE_ENV!=="production"&&E.patchFlag>0&&E.patchFlag&2048&&([N,k]=Ul(E)),D&&y!==!1){const Q=Object.keys(D),{shapeFlag:A}=N;if(Q.length){if(A&7)r&&Q.some(Ii)&&(D=Vd(D,r)),N=Bs(N,D);else if({}.NODE_ENV!=="production"&&!go&&N.type!==Fe){const j=Object.keys(a),yt=[],bt=[];for(let Ct=0,Rt=j.length;Ct<Rt;Ct++){const $t=j[Ct];zn($t)?Ii($t)||yt.push($t[2].toLowerCase()+$t.slice(3)):bt.push($t)}bt.length&&st(`Extraneous non-props attributes (${bt.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),yt.length&&st(`Extraneous non-emits event listeners (${yt.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"&&!Wl(N)&&st("Runtime directive used on component with non-element root node. The directives will not function as intended."),N=Bs(N),N.dirs=N.dirs?N.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Wl(N)&&st("Component inside <Transition> renders non-element root node that cannot be animated."),N.transition=e.transition),{}.NODE_ENV!=="production"&&k?k(N):E=N,Wi(_),E}const Ul=s=>{const t=s.children,e=s.dynamicChildren,n=vo(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Ul(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[is(n),o]};function vo(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(Pn(i)){if(i.type!==Fe||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return vo(e.children)}}else return}return e}const $d=s=>{let t;for(const e in s)(e==="class"||e==="style"||zn(e))&&((t||(t={}))[e]=s[e]);return t},Vd=(s,t)=>{const e={};for(const n in s)(!Ii(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Wl=s=>s.shapeFlag&7||s.type===Fe;function Ld(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)&&un||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?ql(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]&&!Hi(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,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]&&!Hi(e,r))return!0}return!1}function Fd({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 _o="components";function Gd(s,t){return jd(_o,s,!0,t)||s}const zd=Symbol.for("v-ndc");function jd(s,t,e=!0,n=!1){const i=ce||pe;if(i){const r=i.type;if(s===_o){const a=Lo(r,!1);if(a&&(a===t||a===cs(t)||a===sn(cs(t))))return r}const o=Zl(i[s]||r[s],t)||Zl(i.appContext[s],t);if(!o&&n)return r;if({}.NODE_ENV!=="production"&&e&&!o){const a=s===_o?`
|
|
19
|
+
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";st(`Failed to resolve ${s.slice(0,-1)}: ${t}${a}`)}return o}else({}).NODE_ENV!=="production"&&st(`resolve${sn(s.slice(0,-1))} can only be used in render() or setup().`)}function Zl(s,t){return s&&(s[t]||s[cs(t)]||s[sn(cs(t))])}const Bd=s=>s.__isSuspense;function Yd(s,t){t&&t.pendingBranch?mt(s)?t.effects.push(...s):t.effects.push(s):Vl(s)}const Xd=Symbol.for("v-scx"),Hd=()=>{{const s=Ji(Xd);return s||{}.NODE_ENV!=="production"&&st("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Kl(s,t){return bo(s,null,t)}const Zi={};function Dt(s,t,e){return{}.NODE_ENV!=="production"&&!St(t)&&st("`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."),bo(s,t,e)}function bo(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Ht){if(t&&r){const j=t;t=(...yt)=>{j(...yt),A()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&st('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&&st('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&st('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&st('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=j=>{st("Invalid watch source: ",j,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=pe,u=j=>n===!0?j:dn(j,n===!1?1:void 0);let h,f=!1,d=!1;if(Se(s)?(h=()=>s.value,f=ln(s)):Cn(s)?(h=()=>u(s),f=!0):mt(s)?(d=!0,f=s.some(j=>Cn(j)||ln(j)),h=()=>s.map(j=>{if(Se(j))return j.value;if(Cn(j))return u(j);if(St(j))return Ss(j,c,2);({}).NODE_ENV!=="production"&&l(j)})):St(s)?t?h=()=>Ss(s,c,2):h=()=>(m&&m(),ss(s,c,3,[y])):(h=ae,{}.NODE_ENV!=="production"&&l(s)),t&&n){const j=h;h=()=>dn(j())}let m,y=j=>{m=k.onStop=()=>{Ss(j,c,4),m=k.onStop=void 0}},_;if(rr)if(y=ae,t?e&&ss(t,c,3,[h(),d?[]:void 0,y]):h(),i==="sync"){const j=Hd();_=j.__watcherHandles||(j.__watcherHandles=[])}else return ae;let E=d?new Array(s.length).fill(Zi):Zi;const D=()=>{if(!(!k.active||!k.dirty))if(t){const j=k.run();(n||f||(d?j.some((yt,bt)=>$s(yt,E[bt])):$s(j,E)))&&(m&&m(),ss(t,c,3,[j,E===Zi?void 0:d&&E[0]===Zi?[]:E,y]),E=j)}else k.run()};D.allowRecurse=!!t;let N;i==="sync"?N=D:i==="post"?N=()=>Le(D,c&&c.suspense):(D.pre=!0,c&&(D.id=c.uid),N=()=>Xi(D));const k=new Qr(h,ae,N),Q=zh(),A=()=>{k.stop(),Q&&Hr(Q.effects,k)};return{}.NODE_ENV!=="production"&&(k.onTrack=o,k.onTrigger=a),t?e?D():E=k.run():i==="post"?Le(k.run.bind(k),c&&c.suspense):k.run(),_&&_.push(A),A}function Ud(s,t,e){const n=this.proxy,i=le(s)?s.includes(".")?Ql(n,s):()=>n[s]:s.bind(n,n);let r;St(t)?r=t:(r=t.handler,e=t);const o=ri(this),a=bo(i,r.bind(n),e);return o(),a}function Ql(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 dn(s,t,e=0,n){if(!Bt(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),Se(s))dn(s.value,t,e,n);else if(mt(s))for(let i=0;i<s.length;i++)dn(s[i],t,e,n);else if(el(s)||tn(s))s.forEach(i=>{dn(i,t,e,n)});else if(nl(s))for(const i in s)dn(s[i],t,e,n);return s}function Jl(s){Dh(s)&&st("Do not use built-in directive ids as custom directive id: "+s)}function Es(s,t){if(ce===null)return{}.NODE_ENV!=="production"&&st("withDirectives can only be used inside render functions."),s;const e=or(ce)||ce.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Ht]=t[i];r&&(St(r)&&(r={mounted:r,updated:r}),r.deep&&dn(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function fn(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&&(bs(),ss(l,e,8,[s.el,a,s,t]),xs())}}/*! #__NO_SIDE_EFFECTS__ */function lt(s,t){return St(s)?(()=>te({name:s.name},t,{setup:s}))():s}const Kn=s=>!!s.type.__asyncLoader,xo=s=>s.type.__isKeepAlive;function Wd(s,t){tc(s,"a",t)}function qd(s,t){tc(s,"da",t)}function tc(s,t,e=pe){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if(Ki(t,n,e),e){let i=e.parent;for(;i&&i.parent;)xo(i.parent.vnode)&&Zd(n,t,e,i),i=i.parent}}function Zd(s,t,e,n){const i=Ki(t,s,n,!0);re(()=>{Hr(n[t],i)},e)}function Ki(s,t,e=pe,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;bs();const a=ri(e),l=ss(t,e,s,o);return a(),xs(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=nn(lo[s].replace(/ hook$/,""));st(`${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 ks=s=>(t,e=pe)=>(!rr||s==="sp")&&Ki(s,(...n)=>t(...n),e),Kd=ks("bm"),zs=ks("m"),Qd=ks("bu"),Jd=ks("u"),tf=ks("bum"),re=ks("um"),ef=ks("sp"),sf=ks("rtg"),nf=ks("rtc");function rf(s,t=pe){Ki("ec",s,t)}function Ce(s,t,e,n){let i;const r=e&&e[n];if(mt(s)||le(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)&&st(`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(Bt(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 Gt(s,t,e={},n,i){if(ce.isCE||ce.parent&&Kn(ce.parent)&&ce.parent.isCE)return t!=="default"&&(e.name=t),pt("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(st("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),F();const o=r&&ec(r(e)),a=Ie(zt,{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 ec(s){return s.some(t=>Pn(t)?!(t.type===Fe||t.type===zt&&!ec(t.children)):!0)?s:null}const wo=s=>s?Ic(s)?or(s)||s.proxy:wo(s.parent):null,pn=te(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?ws(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?ws(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?ws(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?ws(s.refs):s.refs,$parent:s=>wo(s.parent),$root:s=>wo(s.root),$emit:s=>s.emit,$options:s=>ko(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Xi(s.update)}),$nextTick:s=>s.n||(s.n=Rl.bind(s.proxy)),$watch:s=>Ud.bind(s)}),So=s=>s==="_"||s==="$",Co=(s,t)=>s!==Ht&&!s.__isScriptSetup&&Mt(s,t),sc={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(Co(n,t))return o[t]=1,n[t];if(i!==Ht&&Mt(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&Mt(c,t))return o[t]=3,r[t];if(e!==Ht&&Mt(e,t))return o[t]=4,e[t];Eo&&(o[t]=0)}}const u=pn[t];let h,f;if(u)return t==="$attrs"?(we(s.attrs,"get",""),{}.NODE_ENV!=="production"&&qi()):{}.NODE_ENV!=="production"&&t==="$slots"&&we(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Ht&&Mt(e,t))return o[t]=4,e[t];if(f=l.config.globalProperties,Mt(f,t))return f[t];({}).NODE_ENV!=="production"&&ce&&(!le(t)||t.indexOf("__v")!==0)&&(i!==Ht&&So(t[0])&&Mt(i,t)?st(`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&&st(`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 Co(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&Mt(i,t)?(st(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Ht&&Mt(n,t)?(n[t]=e,!0):Mt(s.props,t)?({}.NODE_ENV!=="production"&&st(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&st(`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!==Ht&&Mt(s,o)||Co(t,o)||(a=r[0])&&Mt(a,o)||Mt(n,o)||Mt(pn,o)||Mt(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:Mt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(sc.ownKeys=s=>(st("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 of(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(pn).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>pn[e](s),set:ae})}),t}function af(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:ae})})}function lf(s){const{ctx:t,setupState:e}=s;Object.keys(Pt(e)).forEach(n=>{if(!e.__isScriptSetup){if(So(n[0])){st(`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:ae})}})}function cf(){return uf().slots}function uf(){const s=Pc();return{}.NODE_ENV!=="production"&&!s&&st("useContext() called without active instance."),s.setupContext||(s.setupContext=Rc(s))}function nc(s){return mt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function hf(){const s=Object.create(null);return(t,e)=>{s[e]?st(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let Eo=!0;function df(s){const t=ko(s),e=s.proxy,n=s.ctx;Eo=!1,t.beforeCreate&&ic(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:y,deactivated:_,beforeDestroy:E,beforeUnmount:D,destroyed:N,unmounted:k,render:Q,renderTracked:A,renderTriggered:j,errorCaptured:yt,serverPrefetch:bt,expose:Ct,inheritAttrs:Rt,components:$t,directives:se,filters:ne}=t,ue={}.NODE_ENV!=="production"?hf():null;if({}.NODE_ENV!=="production"){const[xt]=s.propsOptions;if(xt)for(const wt in xt)ue("Props",wt)}if(c&&ff(c,n,ue),o)for(const xt in o){const wt=o[xt];St(wt)?({}.NODE_ENV!=="production"?Object.defineProperty(n,xt,{value:wt.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[xt]=wt.bind(e),{}.NODE_ENV!=="production"&&ue("Methods",xt)):{}.NODE_ENV!=="production"&&st(`Method "${xt}" has type "${typeof wt}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!St(i)&&st("The data option must be a function. Plain object usage is no longer supported.");const xt=i.call(e,e);if({}.NODE_ENV!=="production"&&Ur(xt)&&st("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Bt(xt))({}).NODE_ENV!=="production"&&st("data() should return an object.");else if(s.data=Pe(xt),{}.NODE_ENV!=="production")for(const wt in xt)ue("Data",wt),So(wt[0])||Object.defineProperty(n,wt,{configurable:!0,enumerable:!0,get:()=>xt[wt],set:ae})}if(Eo=!0,r)for(const xt in r){const wt=r[xt],it=St(wt)?wt.bind(e,e):St(wt.get)?wt.get.bind(e,e):ae;({}).NODE_ENV!=="production"&&it===ae&&st(`Computed property "${xt}" has no getter.`);const q=!St(wt)&&St(wt.set)?wt.set.bind(e):{}.NODE_ENV!=="production"?()=>{st(`Write operation failed: computed property "${xt}" is readonly.`)}:ae,Et=Zf({get:it,set:q});Object.defineProperty(n,xt,{enumerable:!0,configurable:!0,get:()=>Et.value,set:V=>Et.value=V}),{}.NODE_ENV!=="production"&&ue("Computed",xt)}if(a)for(const xt in a)rc(a[xt],n,e,xt);if(l){const xt=St(l)?l.call(e):l;Reflect.ownKeys(xt).forEach(wt=>{_f(wt,xt[wt])})}u&&ic(u,s,"c");function Yt(xt,wt){mt(wt)?wt.forEach(it=>xt(it.bind(e))):wt&&xt(wt.bind(e))}if(Yt(Kd,h),Yt(zs,f),Yt(Qd,d),Yt(Jd,m),Yt(Wd,y),Yt(qd,_),Yt(rf,yt),Yt(nf,A),Yt(sf,j),Yt(tf,D),Yt(re,k),Yt(ef,bt),mt(Ct))if(Ct.length){const xt=s.exposed||(s.exposed={});Ct.forEach(wt=>{Object.defineProperty(xt,wt,{get:()=>e[wt],set:it=>e[wt]=it})})}else s.exposed||(s.exposed={});Q&&s.render===ae&&(s.render=Q),Rt!=null&&(s.inheritAttrs=Rt),$t&&(s.components=$t),se&&(s.directives=se)}function ff(s,t,e=ae){mt(s)&&(s=To(s));for(const n in s){const i=s[n];let r;Bt(i)?"default"in i?r=Ji(i.from||n,i.default,!0):r=Ji(i.from||n):r=Ji(i),Se(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 ic(s,t,e){ss(mt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function rc(s,t,e,n){const i=n.includes(".")?Ql(e,n):()=>e[n];if(le(s)){const r=t[s];St(r)?Dt(i,r):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s}"`,r)}else if(St(s))Dt(i,s.bind(e));else if(Bt(s))if(mt(s))s.forEach(r=>rc(r,t,e,n));else{const r=St(s.handler)?s.handler.bind(e):t[s.handler];St(r)?Dt(i,r,s):{}.NODE_ENV!=="production"&&st(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&st(`Invalid watch option: "${n}"`,s)}function ko(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=>Qi(l,c,o,!0)),Qi(l,t,o)),Bt(t)&&r.set(t,l),l}function Qi(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&Qi(s,r,e,!0),i&&i.forEach(o=>Qi(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&st('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=pf[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const pf={data:oc,props:ac,emits:ac,methods:Qn,computed:Qn,beforeCreate:De,created:De,beforeMount:De,mounted:De,beforeUpdate:De,updated:De,beforeDestroy:De,beforeUnmount:De,destroyed:De,unmounted:De,activated:De,deactivated:De,errorCaptured:De,serverPrefetch:De,components:Qn,directives:Qn,watch:gf,provide:oc,inject:mf};function oc(s,t){return t?s?function(){return te(St(s)?s.call(this,this):s,St(t)?t.call(this,this):t)}:t:s}function mf(s,t){return Qn(To(s),To(t))}function To(s){if(mt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function De(s,t){return s?[...new Set([].concat(s,t))]:t}function Qn(s,t){return s?te(Object.create(null),s,t):t}function ac(s,t){return s?mt(s)&&mt(t)?[...new Set([...s,...t])]:te(Object.create(null),nc(s),nc(t??{})):t}function gf(s,t){if(!s)return t;if(!t)return s;const e=te(Object.create(null),s);for(const n in t)e[n]=De(s[n],t[n]);return e}function lc(){return{app:null,config:{isNativeTag:Oh,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 yf=0;function vf(s,t){return function(n,i=null){St(n)||(n=te({},n)),i!=null&&!Bt(i)&&({}.NODE_ENV!=="production"&&st("root props passed to app.mount() must be an object."),i=null);const r=lc(),o=new WeakSet;let a=!1;const l=r.app={_uid:yf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:Vc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&st("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&st("Plugin has already been applied to target app."):c&&St(c.install)?(o.add(c),c.install(l,...u)):St(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&st('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"&&st("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&$o(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&st(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Jl(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&st(`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"&&st("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__&&st("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=pt(n,i);return f.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Bs(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,Td(l,Vc)),or(f.component)||f.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,Od(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&st("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&st(`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=Jn;Jn=l;try{return c()}finally{Jn=u}}};return l}}let Jn=null;function _f(s,t){if(!pe)({}).NODE_ENV!=="production"&&st("provide() can only be used inside setup().");else{let e=pe.provides;const n=pe.parent&&pe.parent.provides;n===e&&(e=pe.provides=Object.create(n)),e[s]=t}}function Ji(s,t,e=!1){const n=pe||ce;if(n||Jn){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:Jn._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&St(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&st(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&st("inject() can only be used inside setup() or functional components.")}const cc={},uc=()=>Object.create(cc),hc=s=>Object.getPrototypeOf(s)===cc;function bf(s,t,e,n=!1){const i={},r=uc();s.propsDefaults=Object.create(null),dc(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&yc(t||{},i,s),e?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 wf(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Pt(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(Hi(s.emitsOptions,f))continue;const d=t[f];if(l)if(Mt(r,f))d!==r[f]&&(r[f]=d,c=!0);else{const m=cs(f);i[m]=Oo(l,a,m,d,s,!1)}else d!==r[f]&&(r[f]=d,c=!0)}}}else{dc(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!Mt(t,h)&&((u=Rs(h))===h||!Mt(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=Oo(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!Mt(t,h))&&(delete r[h],c=!0)}c&&us(s.attrs,"set",""),{}.NODE_ENV!=="production"&&yc(t||{},i,s)}function dc(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(jn(l))continue;const c=t[l];let u;i&&Mt(i,u=cs(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Hi(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Pt(e),c=a||Ht;for(let u=0;u<r.length;u++){const h=r[u];e[h]=Oo(i,l,h,c[h],s,!Mt(c,h))}}return o}function Oo(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=Mt(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&St(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=ri(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===Rs(e))&&(n=!0))}return n}function fc(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(!St(s)){const u=h=>{l=!0;const[f,d]=fc(h,t,!0);te(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 Bt(s)&&n.set(s,Sn),Sn;if(mt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!le(r[u])&&st("props must be strings when using array syntax.",r[u]);const h=cs(r[u]);pc(h)&&(o[h]=Ht)}else if(r){({}).NODE_ENV!=="production"&&!Bt(r)&&st("invalid props options",r);for(const u in r){const h=cs(u);if(pc(h)){const f=r[u],d=o[h]=mt(f)||St(f)?{type:f}:te({},f);if(d){const m=gc(Boolean,d.type),y=gc(String,d.type);d[0]=m>-1,d[1]=y<0||m<y,(m>-1||Mt(d,"default"))&&a.push(h)}}}}const c=[o,a];return Bt(s)&&n.set(s,c),c}function pc(s){return s[0]!=="$"&&!jn(s)?!0:({}.NODE_ENV!=="production"&&st(`Invalid prop name: "${s}" is a reserved property.`),!1)}function Po(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function mc(s,t){return Po(s)===Po(t)}function gc(s,t){return mt(t)?t.findIndex(e=>mc(e,s)):St(t)&&mc(t,s)?0:-1}function yc(s,t,e){const n=Pt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&Sf(r,n[r],o,{}.NODE_ENV!=="production"?ws(n):n,!Mt(s,r)&&!Mt(s,Rs(r)))}}function Sf(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){st('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=mt(r)?r:[r],h=[];for(let f=0;f<u.length&&!c;f++){const{valid:d,expectedType:m}=Ef(t,u[f]);h.push(m||""),c=d}if(!c){st(kf(s,t,h));return}}a&&!a(t,n)&&st('Invalid prop: custom validator check failed for prop "'+s+'".')}}const Cf=wn("String,Number,Boolean,Function,Symbol,BigInt");function Ef(s,t){let e;const n=Po(t);if(Cf(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Bt(s):n==="Array"?e=mt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function kf(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(sn).join(" | ")}`;const i=e[0],r=Wr(t),o=vc(t,i),a=vc(t,r);return e.length===1&&_c(i)&&!Tf(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,_c(r)&&(n+=`with value ${a}.`),n}function vc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function _c(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function Tf(...s){return s.some(t=>t.toLowerCase()==="boolean")}const bc=s=>s[0]==="_"||s==="$stable",Do=s=>mt(s)?s.map(is):[is(s)],Of=(s,t,e)=>{if(t._n)return t;const n=he((...i)=>({}.NODE_ENV!=="production"&&pe&&(!e||e.root===pe.root)&&st(`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.`),Do(t(...i))),e);return n._c=!1,n},xc=(s,t,e)=>{const n=s._ctx;for(const i in s){if(bc(i))continue;const r=s[i];if(St(r))t[i]=Of(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&st(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=Do(r);t[i]=()=>o}}},wc=(s,t)=>{({}).NODE_ENV!=="production"&&!xo(s.vnode)&&st("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=Do(t);s.slots.default=()=>e},Pf=(s,t)=>{const e=s.slots=uc();if(s.vnode.shapeFlag&32){const n=t._;n?(te(e,t),il(e,"_",n)):xc(t,e)}else t&&wc(s,t)},Df=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Ht;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&un?(te(i,t),us(s,"set","$slots")):e&&a===1?r=!1:(te(i,t),!e&&a===1&&delete i._):(r=!t.$stable,xc(t,i)),o=t}else t&&(wc(s,t),o={default:1});if(r)for(const a in i)!bc(a)&&o[a]==null&&delete i[a]};function Io(s,t,e,n,i=!1){if(mt(s)){s.forEach((f,d)=>Io(f,t&&(mt(t)?t[d]:t),e,n,i));return}if(Kn(n)&&!i)return;const r=n.shapeFlag&4?or(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){st("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===Ht?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(le(c)?(u[c]=null,Mt(h,c)&&(h[c]=null)):Se(c)&&(c.value=null)),St(l))Ss(l,a,12,[o,u]);else{const f=le(l),d=Se(l);if(f||d){const m=()=>{if(s.f){const y=f?Mt(h,l)?h[l]:u[l]:l.value;i?mt(y)&&Hr(y,r):mt(y)?y.includes(r)||y.push(r):f?(u[l]=[r],Mt(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else f?(u[l]=o,Mt(h,l)&&(h[l]=o)):d?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Le(m,e)):m()}else({}).NODE_ENV!=="production"&&st("Invalid template ref type:",l,`(${typeof l})`)}}let ti,js;function Ts(s,t){s.appContext.config.performance&&tr()&&js.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&Nd(s,t,tr()?js.now():Date.now())}function Os(s,t){if(s.appContext.config.performance&&tr()){const e=`vue-${t}-${s.uid}`,n=e+":end";js.mark(n),js.measure(`<${ar(s,s.type)}> ${t}`,e,n),js.clearMarks(e),js.clearMarks(n)}({}).NODE_ENV!=="production"&&Md(s,t,tr()?js.now():Date.now())}function tr(){return ti!==void 0||(typeof window<"u"&&window.performance?(ti=!0,js=window.performance):ti=!1),ti}function If(){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.
|
|
20
20
|
|
|
21
|
-
For more details, see https://link.vuejs.org/feature-flags.`)}}const Ie=bf;function ad(s){return ld(s)}function ld(s,t){od();const e=ki();e.__VUE__=!0,{}.NODE_ENV!=="production"&&yl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:p,setScopeId:f=Qt,insertStaticContent:g}=s,y=(v,w,P,R=null,F=null,K=null,st=void 0,G=null,Q={}.NODE_ENV!=="production"&&Bs?!1:!!w.dynamicChildren)=>{if(v===w)return;v&&!zn(v,w)&&(R=Ae(v),Rt(v,F,K,!0),v=null),w.patchFlag===-2&&(Q=!1,w.dynamicChildren=null);const{type:B,ref:rt,shapeFlag:C}=w;switch(B){case Fn:b(v,w,P,R);break;case De:k(v,w,P,R);break;case Lr:v==null?A(w,P,R,st):{}.NODE_ENV!=="production"&&N(v,w,P,st);break;case Nt:Xt(v,w,P,R,F,K,st,G,Q);break;default:C&1?M(v,w,P,R,F,K,st,G,Q):C&6?Wt(v,w,P,R,F,K,st,G,Q):C&64||C&128?B.process(v,w,P,R,F,K,st,G,Q,Ge):{}.NODE_ENV!=="production"&&tt("Invalid VNode type:",B,`(${typeof B})`)}rt!=null&&F&&ao(rt,v&&v.ref,K,w||v,!w)},b=(v,w,P,R)=>{if(v==null)n(w.el=a(w.children),P,R);else{const F=w.el=v.el;w.children!==v.children&&c(F,w.children)}},k=(v,w,P,R)=>{v==null?n(w.el=l(w.children||""),P,R):w.el=v.el},A=(v,w,P,R)=>{[v.el,v.anchor]=g(v.children,w,P,R,v.el,v.anchor)},N=(v,w,P,R)=>{if(w.children!==v.children){const F=p(v.anchor);et(v),[w.el,w.anchor]=g(w.children,P,F,R)}else w.el=v.el,w.anchor=v.anchor},I=({el:v,anchor:w},P,R)=>{let F;for(;v&&v!==w;)F=p(v),n(v,P,R),v=F;n(w,P,R)},et=({el:v,anchor:w})=>{let P;for(;v&&v!==w;)P=p(v),r(v),v=P;r(w)},M=(v,w,P,R,F,K,st,G,Q)=>{w.type==="svg"?st="svg":w.type==="math"&&(st="mathml"),v==null?Y(w,P,R,F,K,st,G,Q):wt(v,w,F,K,st,G,Q)},Y=(v,w,P,R,F,K,st,G)=>{let Q,B;const{props:rt,shapeFlag:C,transition:S,dirs:x}=v;if(Q=v.el=o(v.type,K,rt&&rt.is,rt),C&8?u(Q,v.children):C&16&&yt(v.children,Q,null,R,F,lo(v,K),st,G),x&&Ys(v,null,R,"created"),gt(Q,v,v.scopeId,st,R),rt){for(const H in rt)H!=="value"&&!En(H)&&i(Q,H,null,rt[H],K,v.children,R,F,Lt);"value"in rt&&i(Q,"value",null,rt.value,K),(B=rt.onVnodeBeforeMount)&&ss(B,R,v)}({}).NODE_ENV!=="production"&&(Object.defineProperty(Q,"__vnode",{value:v,enumerable:!1}),Object.defineProperty(Q,"__vueParentComponent",{value:R,enumerable:!1})),x&&Ys(v,null,R,"beforeMount");const D=cd(F,S);D&&S.beforeEnter(Q),n(Q,w,P),((B=rt&&rt.onVnodeMounted)||D||x)&&Ie(()=>{B&&ss(B,R,v),D&&S.enter(Q),x&&Ys(v,null,R,"mounted")},F)},gt=(v,w,P,R,F)=>{if(P&&f(v,P),R)for(let K=0;K<R.length;K++)f(v,R[K]);if(F){let K=F.subTree;if({}.NODE_ENV!=="production"&&K.patchFlag>0&&K.patchFlag&2048&&(K=Wi(K.children)||K),w===K){const st=F.vnode;gt(v,st,st.scopeId,st.slotScopeIds,F.parent)}}},yt=(v,w,P,R,F,K,st,G,Q=0)=>{for(let B=Q;B<v.length;B++){const rt=v[B]=G?Is(v[B]):qe(v[B]);y(null,rt,w,P,R,F,K,st,G)}},wt=(v,w,P,R,F,K,st)=>{const G=w.el=v.el;let{patchFlag:Q,dynamicChildren:B,dirs:rt}=w;Q|=v.patchFlag&16;const C=v.props||$t,S=w.props||$t;let x;if(P&&Ws(P,!1),(x=S.onVnodeBeforeUpdate)&&ss(x,P,w,v),rt&&Ys(w,v,P,"beforeUpdate"),P&&Ws(P,!0),{}.NODE_ENV!=="production"&&Bs&&(Q=0,st=!1,B=null),B?(Pt(v.dynamicChildren,B,G,P,R,lo(w,F),K),{}.NODE_ENV!=="production"&&$r(v,w)):st||nt(v,w,G,null,P,R,lo(w,F),K,!1),Q>0){if(Q&16)It(G,w,C,S,P,R,F);else if(Q&2&&C.class!==S.class&&i(G,"class",null,S.class,F),Q&4&&i(G,"style",C.style,S.style,F),Q&8){const D=w.dynamicProps;for(let H=0;H<D.length;H++){const L=D[H],Z=C[L],z=S[L];(z!==Z||L==="value")&&i(G,L,Z,z,F,v.children,P,R,Lt)}}Q&1&&v.children!==w.children&&u(G,w.children)}else!st&&B==null&&It(G,w,C,S,P,R,F);((x=S.onVnodeUpdated)||rt)&&Ie(()=>{x&&ss(x,P,w,v),rt&&Ys(w,v,P,"updated")},R)},Pt=(v,w,P,R,F,K,st)=>{for(let G=0;G<w.length;G++){const Q=v[G],B=w[G],rt=Q.el&&(Q.type===Nt||!zn(Q,B)||Q.shapeFlag&70)?h(Q.el):P;y(Q,B,rt,null,R,F,K,st,!0)}},It=(v,w,P,R,F,K,st)=>{if(P!==R){if(P!==$t)for(const G in P)!En(G)&&!(G in R)&&i(v,G,P[G],null,st,w.children,F,K,Lt);for(const G in R){if(En(G))continue;const Q=R[G],B=P[G];Q!==B&&G!=="value"&&i(v,G,B,Q,st,w.children,F,K,Lt)}"value"in R&&i(v,"value",P.value,R.value,st)}},Xt=(v,w,P,R,F,K,st,G,Q)=>{const B=w.el=v?v.el:a(""),rt=w.anchor=v?v.anchor:a("");let{patchFlag:C,dynamicChildren:S,slotScopeIds:x}=w;({}).NODE_ENV!=="production"&&(Bs||C&2048)&&(C=0,Q=!1,S=null),x&&(G=G?G.concat(x):x),v==null?(n(B,P,R),n(rt,P,R),yt(w.children||[],P,rt,F,K,st,G,Q)):C>0&&C&64&&S&&v.dynamicChildren?(Pt(v.dynamicChildren,S,P,F,K,st,G),{}.NODE_ENV!=="production"?$r(v,w):(w.key!=null||F&&w===F.subTree)&&$r(v,w,!0)):nt(v,w,P,rt,F,K,st,G,Q)},Wt=(v,w,P,R,F,K,st,G,Q)=>{w.slotScopeIds=G,v==null?w.shapeFlag&512?F.ctx.activate(w,P,R,st,Q):se(w,P,R,F,K,st,Q):At(v,w,Q)},se=(v,w,P,R,F,K,st)=>{const G=v.component=vd(v,R,F);if({}.NODE_ENV!=="production"&&G.type.__hmrId&&Qh(G),{}.NODE_ENV!=="production"&&(Er(v),ds(G,"mount")),Zi(v)&&(G.ctx.renderer=Ge),{}.NODE_ENV!=="production"&&ds(G,"init"),_d(G),{}.NODE_ENV!=="production"&&ps(G,"init"),G.asyncDep){if(F&&F.registerDep(G,_t),!v.el){const Q=G.subTree=xt(De);k(null,Q,w,P)}}else _t(G,v,w,P,F,K,st);({}).NODE_ENV!=="production"&&(Cr(),ps(G,"mount"))},At=(v,w,P)=>{const R=w.component=v.component;if(pf(v,w,P))if(R.asyncDep&&!R.asyncResolved){({}).NODE_ENV!=="production"&&Er(w),$(R,w,P),{}.NODE_ENV!=="production"&&Cr();return}else R.next=w,Kh(R.update),R.effect.dirty=!0,R.update();else w.el=v.el,R.vnode=w},_t=(v,w,P,R,F,K,st)=>{const G=()=>{if(v.isMounted){let{next:rt,bu:C,u:S,parent:x,vnode:D}=v;{const at=Ql(v);if(at){rt&&(rt.el=D.el,$(v,rt,st)),at.asyncDep.then(()=>{v.isUnmounted||G()});return}}let H=rt,L;({}).NODE_ENV!=="production"&&Er(rt||v.vnode),Ws(v,!1),rt?(rt.el=D.el,$(v,rt,st)):rt=D,C&&Cn(C),(L=rt.props&&rt.props.onVnodeBeforeUpdate)&&ss(L,x,rt,D),Ws(v,!0),{}.NODE_ENV!=="production"&&ds(v,"render");const Z=Xi(v);({}).NODE_ENV!=="production"&&ps(v,"render");const z=v.subTree;v.subTree=Z,{}.NODE_ENV!=="production"&&ds(v,"patch"),y(z,Z,h(z.el),Ae(z),v,F,K),{}.NODE_ENV!=="production"&&ps(v,"patch"),rt.el=Z.el,H===null&&mf(v,Z.el),S&&Ie(S,F),(L=rt.props&&rt.props.onVnodeUpdated)&&Ie(()=>ss(L,x,rt,D),F),{}.NODE_ENV!=="production"&&_l(v),{}.NODE_ENV!=="production"&&Cr()}else{let rt;const{el:C,props:S}=w,{bm:x,m:D,parent:H}=v,L=Rn(w);if(Ws(v,!1),x&&Cn(x),!L&&(rt=S&&S.onVnodeBeforeMount)&&ss(rt,H,w),Ws(v,!0),C&&Kt){const Z=()=>{({}).NODE_ENV!=="production"&&ds(v,"render"),v.subTree=Xi(v),{}.NODE_ENV!=="production"&&ps(v,"render"),{}.NODE_ENV!=="production"&&ds(v,"hydrate"),Kt(C,v.subTree,v,F,null),{}.NODE_ENV!=="production"&&ps(v,"hydrate")};L?w.type.__asyncLoader().then(()=>!v.isUnmounted&&Z()):Z()}else{({}).NODE_ENV!=="production"&&ds(v,"render");const Z=v.subTree=Xi(v);({}).NODE_ENV!=="production"&&ps(v,"render"),{}.NODE_ENV!=="production"&&ds(v,"patch"),y(null,Z,P,R,v,F,K),{}.NODE_ENV!=="production"&&ps(v,"patch"),w.el=Z.el}if(D&&Ie(D,F),!L&&(rt=S&&S.onVnodeMounted)){const Z=w;Ie(()=>ss(rt,H,Z),F)}(w.shapeFlag&256||H&&Rn(H.vnode)&&H.vnode.shapeFlag&256)&&v.a&&Ie(v.a,F),v.isMounted=!0,{}.NODE_ENV!=="production"&&rf(v),w=P=R=null}},Q=v.effect=new Pi(G,Qt,()=>Tr(B),v.scope),B=v.update=()=>{Q.dirty&&Q.run()};B.id=v.uid,Ws(v,!0),{}.NODE_ENV!=="production"&&(Q.onTrack=v.rtc?rt=>Cn(v.rtc,rt):void 0,Q.onTrigger=v.rtg?rt=>Cn(v.rtg,rt):void 0,B.ownerInstance=v),B()},$=(v,w,P)=>{w.component=v;const R=v.vnode.props;v.vnode=w,v.next=null,Zf(v,w.props,R,P),id(v,w.children,P),os(),dl(v),as()},nt=(v,w,P,R,F,K,st,G,Q=!1)=>{const B=v&&v.children,rt=v?v.shapeFlag:0,C=w.children,{patchFlag:S,shapeFlag:x}=w;if(S>0){if(S&128){St(B,C,P,R,F,K,st,G,Q);return}else if(S&256){q(B,C,P,R,F,K,st,G,Q);return}}x&8?(rt&16&&Lt(B,F,K),C!==B&&u(P,C)):rt&16?x&16?St(B,C,P,R,F,K,st,G,Q):Lt(B,F,K,!0):(rt&8&&u(P,""),x&16&&yt(C,P,R,F,K,st,G,Q))},q=(v,w,P,R,F,K,st,G,Q)=>{v=v||rn,w=w||rn;const B=v.length,rt=w.length,C=Math.min(B,rt);let S;for(S=0;S<C;S++){const x=w[S]=Q?Is(w[S]):qe(w[S]);y(v[S],x,P,null,F,K,st,G,Q)}B>rt?Lt(v,F,K,!0,!1,C):yt(w,P,R,F,K,st,G,Q,C)},St=(v,w,P,R,F,K,st,G,Q)=>{let B=0;const rt=w.length;let C=v.length-1,S=rt-1;for(;B<=C&&B<=S;){const x=v[B],D=w[B]=Q?Is(w[B]):qe(w[B]);if(zn(x,D))y(x,D,P,null,F,K,st,G,Q);else break;B++}for(;B<=C&&B<=S;){const x=v[C],D=w[S]=Q?Is(w[S]):qe(w[S]);if(zn(x,D))y(x,D,P,null,F,K,st,G,Q);else break;C--,S--}if(B>C){if(B<=S){const x=S+1,D=x<rt?w[x].el:R;for(;B<=S;)y(null,w[B]=Q?Is(w[B]):qe(w[B]),P,D,F,K,st,G,Q),B++}}else if(B>S)for(;B<=C;)Rt(v[B],F,K,!0),B++;else{const x=B,D=B,H=new Map;for(B=D;B<=S;B++){const Zt=w[B]=Q?Is(w[B]):qe(w[B]);Zt.key!=null&&({}.NODE_ENV!=="production"&&H.has(Zt.key)&&tt("Duplicate keys found during update:",JSON.stringify(Zt.key),"Make sure keys are unique."),H.set(Zt.key,B))}let L,Z=0;const z=S-D+1;let at=!1,pt=0;const ct=new Array(z);for(B=0;B<z;B++)ct[B]=0;for(B=x;B<=C;B++){const Zt=v[B];if(Z>=z){Rt(Zt,F,K,!0);continue}let Vt;if(Zt.key!=null)Vt=H.get(Zt.key);else for(L=D;L<=S;L++)if(ct[L-D]===0&&zn(Zt,w[L])){Vt=L;break}Vt===void 0?Rt(Zt,F,K,!0):(ct[Vt-D]=B+1,Vt>=pt?pt=Vt:at=!0,y(Zt,w[Vt],P,null,F,K,st,G,Q),Z++)}const jt=at?ud(ct):rn;for(L=jt.length-1,B=z-1;B>=0;B--){const Zt=D+B,Vt=w[Zt],xn=Zt+1<rt?w[Zt+1].el:R;ct[B]===0?y(null,Vt,P,xn,F,K,st,G,Q):at&&(L<0||B!==jt[L]?lt(Vt,P,xn,2):L--)}}},lt=(v,w,P,R,F=null)=>{const{el:K,type:st,transition:G,children:Q,shapeFlag:B}=v;if(B&6){lt(v.component.subTree,w,P,R);return}if(B&128){v.suspense.move(w,P,R);return}if(B&64){st.move(v,w,P,Ge);return}if(st===Nt){n(K,w,P);for(let C=0;C<Q.length;C++)lt(Q[C],w,P,R);n(v.anchor,w,P);return}if(st===Lr){I(v,w,P);return}if(R!==2&&B&1&&G)if(R===0)G.beforeEnter(K),n(K,w,P),Ie(()=>G.enter(K),F);else{const{leave:C,delayLeave:S,afterLeave:x}=G,D=()=>n(K,w,P),H=()=>{C(K,()=>{D(),x&&x()})};S?S(K,D,H):H()}else n(K,w,P)},Rt=(v,w,P,R=!1,F=!1)=>{const{type:K,props:st,ref:G,children:Q,dynamicChildren:B,shapeFlag:rt,patchFlag:C,dirs:S}=v;if(G!=null&&ao(G,null,P,v,!0),rt&256){w.ctx.deactivate(v);return}const x=rt&1&&S,D=!Rn(v);let H;if(D&&(H=st&&st.onVnodeBeforeUnmount)&&ss(H,w,v),rt&6)Oe(v.component,P,R);else{if(rt&128){v.suspense.unmount(P,R);return}x&&Ys(v,null,w,"beforeUnmount"),rt&64?v.type.remove(v,w,P,F,Ge,R):B&&(K!==Nt||C>0&&C&64)?Lt(B,w,P,!1,!0):(K===Nt&&C&384||!F&&rt&16)&&Lt(Q,w,P),R&&Ft(v)}(D&&(H=st&&st.onVnodeUnmounted)||x)&&Ie(()=>{H&&ss(H,w,v),x&&Ys(v,null,w,"unmounted")},P)},Ft=v=>{const{type:w,el:P,anchor:R,transition:F}=v;if(w===Nt){({}).NODE_ENV!=="production"&&v.patchFlag>0&&v.patchFlag&2048&&F&&!F.persisted?v.children.forEach(st=>{st.type===De?r(st.el):Ft(st)}):ae(P,R);return}if(w===Lr){et(v);return}const K=()=>{r(P),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(v.shapeFlag&1&&F&&!F.persisted){const{leave:st,delayLeave:G}=F,Q=()=>st(P,K);G?G(v.el,K,Q):Q()}else K()},ae=(v,w)=>{let P;for(;v!==w;)P=p(v),r(v),v=P;r(w)},Oe=(v,w,P)=>{({}).NODE_ENV!=="production"&&v.type.__hmrId&&Jh(v);const{bum:R,scope:F,update:K,subTree:st,um:G}=v;R&&Cn(R),F.stop(),K&&(K.active=!1,Rt(st,v,w,P)),G&&Ie(G,w),Ie(()=>{v.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve()),{}.NODE_ENV!=="production"&&af(v)},Lt=(v,w,P,R=!1,F=!1,K=0)=>{for(let st=K;st<v.length;st++)Rt(v[st],w,P,R,F)},Ae=v=>v.shapeFlag&6?Ae(v.component.subTree):v.shapeFlag&128?v.suspense.next():p(v.anchor||v.el);let Gt=!1;const le=(v,w,P)=>{v==null?w._vnode&&Rt(w._vnode,null,null,!0):y(w._vnode||null,v,w,null,null,null,P),Gt||(Gt=!0,dl(),pl(),Gt=!1),w._vnode=v},Ge={p:y,um:Rt,m:lt,r:Ft,mt:se,mc:yt,pc:nt,pbc:Pt,n:Ae,o:s};let qt,Kt;return t&&([qt,Kt]=t(Ge)),{render:le,hydrate:qt,createApp:Xf(le,qt)}}function lo({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 Ws({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function cd(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function $r(s,t,e=!1){const n=s.children,r=t.children;if(mt(n)&&mt(r))for(let i=0;i<n.length;i++){const o=n[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=Is(r[i]),a.el=o.el),e||$r(o,a)),a.type===Fn&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===De&&!a.el&&(a.el=o.el)}}function ud(s){const t=s.slice(),e=[0];let n,r,i,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(r=e[e.length-1],s[r]<c){t[n]=r,e.push(n);continue}for(i=0,o=e.length-1;i<o;)a=i+o>>1,s[e[a]]<c?i=a+1:o=a;c<s[e[i]]&&(i>0&&(t[n]=e[i-1]),e[i]=n)}}for(i=e.length,o=e[i-1];i-- >0;)e[i]=o,o=t[o];return e}function Ql(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ql(t)}const hd=s=>s.__isTeleport,Nt=Symbol.for("v-fgt"),Fn=Symbol.for("v-txt"),De=Symbol.for("v-cmt"),Lr=Symbol.for("v-stc"),Gn=[];let We=null;function V(s=!1){Gn.push(We=s?null:[])}function fd(){Gn.pop(),We=Gn[Gn.length-1]||null}let jn=1;function Jl(s){jn+=s}function tc(s){return s.dynamicChildren=jn>0?We||rn:null,fd(),jn>0&&We&&We.push(s),s}function X(s,t,e,n,r,i){return tc(E(s,t,e,n,r,i,!0))}function Ce(s,t,e,n,r){return tc(xt(s,t,e,n,r,!0))}function cn(s){return s?s.__v_isVNode===!0:!1}function zn(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&ln.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const dd=(...s)=>sc(...s),ec=({key:s})=>s??null,Vr=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?Jt(s)||ge(s)||bt(s)?{i:te,r:s,k:t,f:!!e}:s:null);function E(s,t=null,e=null,n=0,r=null,i=s===Nt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&ec(t),ref:t&&Vr(t),scopeId:Or,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:te};return a?(co(l,e),i&128&&s.normalize(l)):e&&(l.shapeFlag|=Jt(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&tt("VNode created with invalid key (NaN). VNode type:",l.type),jn>0&&!o&&We&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&We.push(l),l}const xt={}.NODE_ENV!=="production"?dd:sc;function sc(s,t=null,e=null,n=0,r=null,i=!1){if((!s||s===vf)&&({}.NODE_ENV!=="production"&&!s&&tt(`Invalid vnode type when creating vnode: ${s}.`),s=De),cn(s)){const a=Ps(s,t,!0);return e&&co(a,e),jn>0&&!i&&We&&(a.shapeFlag&6?We[We.indexOf(s)]=a:We.push(a)),a.patchFlag|=-2,a}if(hc(s)&&(s=s.__vccOpts),t){t=pd(t);let{class:a,style:l}=t;a&&!Jt(a)&&(t.class=be(a)),Mt(l)&&(Li(l)&&!mt(l)&&(l=Ht({},l)),t.style=J(l))}const o=Jt(s)?1:_f(s)?128:hd(s)?64:Mt(s)?4:bt(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&Li(s)&&(s=Et(s),tt("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`.",`
|
|
22
|
-
Component that was made reactive: `,s)),
|
|
21
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const Le=Yd;function Nf(s){return Mf(s)}function Mf(s,t){If();const e=Zr();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Bl(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=ae,insertStaticContent:m}=s,y=(v,x,I,R=null,L=null,tt=null,K=void 0,z=null,J={}.NODE_ENV!=="production"&&un?!1:!!x.dynamicChildren)=>{if(v===x)return;v&&!ii(v,x)&&(R=$e(v),Ut(v,L,tt,!0),v=null),x.patchFlag===-2&&(J=!1,x.dynamicChildren=null);const{type:X,ref:rt,shapeFlag:ft}=x;switch(X){case ei:_(v,x,I,R);break;case Fe:E(v,x,I,R);break;case sr:v==null?D(x,I,R,K):{}.NODE_ENV!=="production"&&N(v,x,I,K);break;case zt:se(v,x,I,R,L,tt,K,z,J);break;default:ft&1?A(v,x,I,R,L,tt,K,z,J):ft&6?ne(v,x,I,R,L,tt,K,z,J):ft&64||ft&128?X.process(v,x,I,R,L,tt,K,z,J,Ue):{}.NODE_ENV!=="production"&&st("Invalid VNode type:",X,`(${typeof X})`)}rt!=null&&L&&Io(rt,v&&v.ref,tt,x||v,!x)},_=(v,x,I,R)=>{if(v==null)n(x.el=a(x.children),I,R);else{const L=x.el=v.el;x.children!==v.children&&c(L,x.children)}},E=(v,x,I,R)=>{v==null?n(x.el=l(x.children||""),I,R):x.el=v.el},D=(v,x,I,R)=>{[v.el,v.anchor]=m(v.children,x,I,R,v.el,v.anchor)},N=(v,x,I,R)=>{if(x.children!==v.children){const L=f(v.anchor);Q(v),[x.el,x.anchor]=m(x.children,I,L,R)}else x.el=v.el,x.anchor=v.anchor},k=({el:v,anchor:x},I,R)=>{let L;for(;v&&v!==x;)L=f(v),n(v,I,R),v=L;n(x,I,R)},Q=({el:v,anchor:x})=>{let I;for(;v&&v!==x;)I=f(v),i(v),v=I;i(x)},A=(v,x,I,R,L,tt,K,z,J)=>{x.type==="svg"?K="svg":x.type==="math"&&(K="mathml"),v==null?j(x,I,R,L,tt,K,z,J):Ct(v,x,L,tt,K,z,J)},j=(v,x,I,R,L,tt,K,z)=>{let J,X;const{props:rt,shapeFlag:ft,transition:ht,dirs:_t}=v;if(J=v.el=o(v.type,tt,rt&&rt.is,rt),ft&8?u(J,v.children):ft&16&&bt(v.children,J,null,R,L,No(v,tt),K,z),_t&&fn(v,null,R,"created"),yt(J,v,v.scopeId,K,R),rt){for(const Vt in rt)Vt!=="value"&&!jn(Vt)&&r(J,Vt,null,rt[Vt],tt,v.children,R,L,It);"value"in rt&&r(J,"value",null,rt.value,tt),(X=rt.onVnodeBeforeMount)&&fs(X,R,v)}({}).NODE_ENV!=="production"&&(Object.defineProperty(J,"__vnode",{value:v,enumerable:!1}),Object.defineProperty(J,"__vueParentComponent",{value:R,enumerable:!1})),_t&&fn(v,null,R,"beforeMount");const Ot=Af(L,ht);Ot&&ht.beforeEnter(J),n(J,x,I),((X=rt&&rt.onVnodeMounted)||Ot||_t)&&Le(()=>{X&&fs(X,R,v),Ot&&ht.enter(J),_t&&fn(v,null,R,"mounted")},L)},yt=(v,x,I,R,L)=>{if(I&&d(v,I),R)for(let tt=0;tt<R.length;tt++)d(v,R[tt]);if(L){let tt=L.subTree;if({}.NODE_ENV!=="production"&&tt.patchFlag>0&&tt.patchFlag&2048&&(tt=vo(tt.children)||tt),x===tt){const K=L.vnode;yt(v,K,K.scopeId,K.slotScopeIds,L.parent)}}},bt=(v,x,I,R,L,tt,K,z,J=0)=>{for(let X=J;X<v.length;X++){const rt=v[X]=z?Ys(v[X]):is(v[X]);y(null,rt,x,I,R,L,tt,K,z)}},Ct=(v,x,I,R,L,tt,K)=>{const z=x.el=v.el;let{patchFlag:J,dynamicChildren:X,dirs:rt}=x;J|=v.patchFlag&16;const ft=v.props||Ht,ht=x.props||Ht;let _t;if(I&&mn(I,!1),(_t=ht.onVnodeBeforeUpdate)&&fs(_t,I,x,v),rt&&fn(x,v,I,"beforeUpdate"),I&&mn(I,!0),{}.NODE_ENV!=="production"&&un&&(J=0,K=!1,X=null),X?(Rt(v.dynamicChildren,X,z,I,R,No(x,L),tt),{}.NODE_ENV!=="production"&&er(v,x)):K||it(v,x,z,null,I,R,No(x,L),tt,!1),J>0){if(J&16)$t(z,x,ft,ht,I,R,L);else if(J&2&&ft.class!==ht.class&&r(z,"class",null,ht.class,L),J&4&&r(z,"style",ft.style,ht.style,L),J&8){const Ot=x.dynamicProps;for(let Vt=0;Vt<Ot.length;Vt++){const Xt=Ot[Vt],O=ft[Xt],C=ht[Xt];(C!==O||Xt==="value")&&r(z,Xt,O,C,L,v.children,I,R,It)}}J&1&&v.children!==x.children&&u(z,x.children)}else!K&&X==null&&$t(z,x,ft,ht,I,R,L);((_t=ht.onVnodeUpdated)||rt)&&Le(()=>{_t&&fs(_t,I,x,v),rt&&fn(x,v,I,"updated")},R)},Rt=(v,x,I,R,L,tt,K)=>{for(let z=0;z<x.length;z++){const J=v[z],X=x[z],rt=J.el&&(J.type===zt||!ii(J,X)||J.shapeFlag&70)?h(J.el):I;y(J,X,rt,null,R,L,tt,K,!0)}},$t=(v,x,I,R,L,tt,K)=>{if(I!==R){if(I!==Ht)for(const z in I)!jn(z)&&!(z in R)&&r(v,z,I[z],null,K,x.children,L,tt,It);for(const z in R){if(jn(z))continue;const J=R[z],X=I[z];J!==X&&z!=="value"&&r(v,z,X,J,K,x.children,L,tt,It)}"value"in R&&r(v,"value",I.value,R.value,K)}},se=(v,x,I,R,L,tt,K,z,J)=>{const X=x.el=v?v.el:a(""),rt=x.anchor=v?v.anchor:a("");let{patchFlag:ft,dynamicChildren:ht,slotScopeIds:_t}=x;({}).NODE_ENV!=="production"&&(un||ft&2048)&&(ft=0,J=!1,ht=null),_t&&(z=z?z.concat(_t):_t),v==null?(n(X,I,R),n(rt,I,R),bt(x.children||[],I,rt,L,tt,K,z,J)):ft>0&&ft&64&&ht&&v.dynamicChildren?(Rt(v.dynamicChildren,ht,I,L,tt,K,z),{}.NODE_ENV!=="production"?er(v,x):(x.key!=null||L&&x===L.subTree)&&er(v,x,!0)):it(v,x,I,rt,L,tt,K,z,J)},ne=(v,x,I,R,L,tt,K,z,J)=>{x.slotScopeIds=z,v==null?x.shapeFlag&512?L.ctx.activate(x,I,R,K,J):ue(x,I,R,L,tt,K,J):Yt(v,x,J)},ue=(v,x,I,R,L,tt,K)=>{const z=v.component=jf(v,R,L);if({}.NODE_ENV!=="production"&&z.type.__hmrId&&Sd(z),{}.NODE_ENV!=="production"&&(Bi(v),Ts(z,"mount")),xo(v)&&(z.ctx.renderer=Ue),{}.NODE_ENV!=="production"&&Ts(z,"init"),Yf(z),{}.NODE_ENV!=="production"&&Os(z,"init"),z.asyncDep){if(L&&L.registerDep(z,xt),!v.el){const J=z.subTree=pt(Fe);E(null,J,x,I)}}else xt(z,v,x,I,L,tt,K);({}).NODE_ENV!=="production"&&(Yi(),Os(z,"mount"))},Yt=(v,x,I)=>{const R=x.component=v.component;if(Ld(v,x,I))if(R.asyncDep&&!R.asyncResolved){({}).NODE_ENV!=="production"&&Bi(x),wt(R,x,I),{}.NODE_ENV!=="production"&&Yi();return}else R.next=x,xd(R.update),R.effect.dirty=!0,R.update();else x.el=v.el,R.vnode=x},xt=(v,x,I,R,L,tt,K)=>{const z=()=>{if(v.isMounted){let{next:rt,bu:ft,u:ht,parent:_t,vnode:Ot}=v;{const w=Sc(v);if(w){rt&&(rt.el=Ot.el,wt(v,rt,K)),w.asyncDep.then(()=>{v.isUnmounted||z()});return}}let Vt=rt,Xt;({}).NODE_ENV!=="production"&&Bi(rt||v.vnode),mn(v,!1),rt?(rt.el=Ot.el,wt(v,rt,K)):rt=Ot,ft&&Bn(ft),(Xt=rt.props&&rt.props.onVnodeBeforeUpdate)&&fs(Xt,_t,rt,Ot),mn(v,!0),{}.NODE_ENV!=="production"&&Ts(v,"render");const O=yo(v);({}).NODE_ENV!=="production"&&Os(v,"render");const C=v.subTree;v.subTree=O,{}.NODE_ENV!=="production"&&Ts(v,"patch"),y(C,O,h(C.el),$e(C),v,L,tt),{}.NODE_ENV!=="production"&&Os(v,"patch"),rt.el=O.el,Vt===null&&Fd(v,O.el),ht&&Le(ht,L),(Xt=rt.props&&rt.props.onVnodeUpdated)&&Le(()=>fs(Xt,_t,rt,Ot),L),{}.NODE_ENV!=="production"&&Yl(v),{}.NODE_ENV!=="production"&&Yi()}else{let rt;const{el:ft,props:ht}=x,{bm:_t,m:Ot,parent:Vt}=v,Xt=Kn(x);if(mn(v,!1),_t&&Bn(_t),!Xt&&(rt=ht&&ht.onVnodeBeforeMount)&&fs(rt,Vt,x),mn(v,!0),ft&&as){const O=()=>{({}).NODE_ENV!=="production"&&Ts(v,"render"),v.subTree=yo(v),{}.NODE_ENV!=="production"&&Os(v,"render"),{}.NODE_ENV!=="production"&&Ts(v,"hydrate"),as(ft,v.subTree,v,L,null),{}.NODE_ENV!=="production"&&Os(v,"hydrate")};Xt?x.type.__asyncLoader().then(()=>!v.isUnmounted&&O()):O()}else{({}).NODE_ENV!=="production"&&Ts(v,"render");const O=v.subTree=yo(v);({}).NODE_ENV!=="production"&&Os(v,"render"),{}.NODE_ENV!=="production"&&Ts(v,"patch"),y(null,O,I,R,v,L,tt),{}.NODE_ENV!=="production"&&Os(v,"patch"),x.el=O.el}if(Ot&&Le(Ot,L),!Xt&&(rt=ht&&ht.onVnodeMounted)){const O=x;Le(()=>fs(rt,Vt,O),L)}(x.shapeFlag&256||Vt&&Kn(Vt.vnode)&&Vt.vnode.shapeFlag&256)&&v.a&&Le(v.a,L),v.isMounted=!0,{}.NODE_ENV!=="production"&&Pd(v),x=I=R=null}},J=v.effect=new Qr(z,ae,()=>Xi(X),v.scope),X=v.update=()=>{J.dirty&&J.run()};X.id=v.uid,mn(v,!0),{}.NODE_ENV!=="production"&&(J.onTrack=v.rtc?rt=>Bn(v.rtc,rt):void 0,J.onTrigger=v.rtg?rt=>Bn(v.rtg,rt):void 0,X.ownerInstance=v),X()},wt=(v,x,I)=>{x.component=v;const R=v.vnode.props;v.vnode=x,v.next=null,wf(v,x.props,R,I),Df(v,x.children,I),bs(),Ll(v),xs()},it=(v,x,I,R,L,tt,K,z,J=!1)=>{const X=v&&v.children,rt=v?v.shapeFlag:0,ft=x.children,{patchFlag:ht,shapeFlag:_t}=x;if(ht>0){if(ht&128){Et(X,ft,I,R,L,tt,K,z,J);return}else if(ht&256){q(X,ft,I,R,L,tt,K,z,J);return}}_t&8?(rt&16&&It(X,L,tt),ft!==X&&u(I,ft)):rt&16?_t&16?Et(X,ft,I,R,L,tt,K,z,J):It(X,L,tt,!0):(rt&8&&u(I,""),_t&16&&bt(ft,I,R,L,tt,K,z,J))},q=(v,x,I,R,L,tt,K,z,J)=>{v=v||Sn,x=x||Sn;const X=v.length,rt=x.length,ft=Math.min(X,rt);let ht;for(ht=0;ht<ft;ht++){const _t=x[ht]=J?Ys(x[ht]):is(x[ht]);y(v[ht],_t,I,null,L,tt,K,z,J)}X>rt?It(v,L,tt,!0,!1,ft):bt(x,I,R,L,tt,K,z,J,ft)},Et=(v,x,I,R,L,tt,K,z,J)=>{let X=0;const rt=x.length;let ft=v.length-1,ht=rt-1;for(;X<=ft&&X<=ht;){const _t=v[X],Ot=x[X]=J?Ys(x[X]):is(x[X]);if(ii(_t,Ot))y(_t,Ot,I,null,L,tt,K,z,J);else break;X++}for(;X<=ft&&X<=ht;){const _t=v[ft],Ot=x[ht]=J?Ys(x[ht]):is(x[ht]);if(ii(_t,Ot))y(_t,Ot,I,null,L,tt,K,z,J);else break;ft--,ht--}if(X>ft){if(X<=ht){const _t=ht+1,Ot=_t<rt?x[_t].el:R;for(;X<=ht;)y(null,x[X]=J?Ys(x[X]):is(x[X]),I,Ot,L,tt,K,z,J),X++}}else if(X>ht)for(;X<=ft;)Ut(v[X],L,tt,!0),X++;else{const _t=X,Ot=X,Vt=new Map;for(X=Ot;X<=ht;X++){const nt=x[X]=J?Ys(x[X]):is(x[X]);nt.key!=null&&({}.NODE_ENV!=="production"&&Vt.has(nt.key)&&st("Duplicate keys found during update:",JSON.stringify(nt.key),"Make sure keys are unique."),Vt.set(nt.key,X))}let Xt,O=0;const C=ht-Ot+1;let w=!1,G=0;const M=new Array(C);for(X=0;X<C;X++)M[X]=0;for(X=_t;X<=ft;X++){const nt=v[X];if(O>=C){Ut(nt,L,tt,!0);continue}let B;if(nt.key!=null)B=Vt.get(nt.key);else for(Xt=Ot;Xt<=ht;Xt++)if(M[Xt-Ot]===0&&ii(nt,x[Xt])){B=Xt;break}B===void 0?Ut(nt,L,tt,!0):(M[B-Ot]=X+1,B>=G?G=B:w=!0,y(nt,x[B],I,null,L,tt,K,z,J),O++)}const Y=w?Rf(M):Sn;for(Xt=Y.length-1,X=C-1;X>=0;X--){const nt=Ot+X,B=x[nt],et=nt+1<rt?x[nt+1].el:R;M[X]===0?y(null,B,I,et,L,tt,K,z,J):w&&(Xt<0||X!==Y[Xt]?V(B,I,et,2):Xt--)}}},V=(v,x,I,R,L=null)=>{const{el:tt,type:K,transition:z,children:J,shapeFlag:X}=v;if(X&6){V(v.component.subTree,x,I,R);return}if(X&128){v.suspense.move(x,I,R);return}if(X&64){K.move(v,x,I,Ue);return}if(K===zt){n(tt,x,I);for(let ft=0;ft<J.length;ft++)V(J[ft],x,I,R);n(v.anchor,x,I);return}if(K===sr){k(v,x,I);return}if(R!==2&&X&1&&z)if(R===0)z.beforeEnter(tt),n(tt,x,I),Le(()=>z.enter(tt),L);else{const{leave:ft,delayLeave:ht,afterLeave:_t}=z,Ot=()=>n(tt,x,I),Vt=()=>{ft(tt,()=>{Ot(),_t&&_t()})};ht?ht(tt,Ot,Vt):Vt()}else n(tt,x,I)},Ut=(v,x,I,R=!1,L=!1)=>{const{type:tt,props:K,ref:z,children:J,dynamicChildren:X,shapeFlag:rt,patchFlag:ft,dirs:ht}=v;if(z!=null&&Io(z,null,I,v,!0),rt&256){x.ctx.deactivate(v);return}const _t=rt&1&&ht,Ot=!Kn(v);let Vt;if(Ot&&(Vt=K&&K.onVnodeBeforeUnmount)&&fs(Vt,x,v),rt&6)Re(v.component,I,R);else{if(rt&128){v.suspense.unmount(I,R);return}_t&&fn(v,null,x,"beforeUnmount"),rt&64?v.type.remove(v,x,I,L,Ue,R):X&&(tt!==zt||ft>0&&ft&64)?It(X,x,I,!1,!0):(tt===zt&&ft&384||!L&&rt&16)&&It(J,x,I),R&&ge(v)}(Ot&&(Vt=K&&K.onVnodeUnmounted)||_t)&&Le(()=>{Vt&&fs(Vt,x,v),_t&&fn(v,null,x,"unmounted")},I)},ge=v=>{const{type:x,el:I,anchor:R,transition:L}=v;if(x===zt){({}).NODE_ENV!=="production"&&v.patchFlag>0&&v.patchFlag&2048&&L&&!L.persisted?v.children.forEach(K=>{K.type===Fe?i(K.el):ge(K)}):Ae(I,R);return}if(x===sr){Q(v);return}const tt=()=>{i(I),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(v.shapeFlag&1&&L&&!L.persisted){const{leave:K,delayLeave:z}=L,J=()=>K(I,tt);z?z(v.el,tt,J):J()}else tt()},Ae=(v,x)=>{let I;for(;v!==x;)I=f(v),i(v),v=I;i(x)},Re=(v,x,I)=>{({}).NODE_ENV!=="production"&&v.type.__hmrId&&Cd(v);const{bum:R,scope:L,update:tt,subTree:K,um:z}=v;R&&Bn(R),L.stop(),tt&&(tt.active=!1,Ut(K,v,x,I)),z&&Le(z,x),Le(()=>{v.isUnmounted=!0},x),x&&x.pendingBranch&&!x.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===x.pendingId&&(x.deps--,x.deps===0&&x.resolve()),{}.NODE_ENV!=="production"&&Id(v)},It=(v,x,I,R=!1,L=!1,tt=0)=>{for(let K=tt;K<v.length;K++)Ut(v[K],x,I,R,L)},$e=v=>v.shapeFlag&6?$e(v.component.subTree):v.shapeFlag&128?v.suspense.next():f(v.anchor||v.el);let Lt=!1;const ie=(v,x,I)=>{v==null?x._vnode&&Ut(x._vnode,null,null,!0):y(x._vnode||null,v,x,null,null,null,I),Lt||(Lt=!0,Ll(),Fl(),Lt=!1),x._vnode=v},Ue={p:y,um:Ut,m:V,r:ge,mt:ue,mc:bt,pc:it,pbc:Rt,n:$e,o:s};let os,as;return t&&([os,as]=t(Ue)),{render:ie,hydrate:os,createApp:vf(ie,os)}}function No({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 mn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function Af(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function er(s,t,e=!1){const n=s.children,i=t.children;if(mt(n)&&mt(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]=Ys(i[r]),a.el=o.el),e||er(o,a)),a.type===ei&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===Fe&&!a.el&&(a.el=o.el)}}function Rf(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 Sc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Sc(t)}const $f=s=>s.__isTeleport,zt=Symbol.for("v-fgt"),ei=Symbol.for("v-txt"),Fe=Symbol.for("v-cmt"),sr=Symbol.for("v-stc"),si=[];let ns=null;function F(s=!1){si.push(ns=s?null:[])}function Vf(){si.pop(),ns=si[si.length-1]||null}let ni=1;function Cc(s){ni+=s}function Ec(s){return s.dynamicChildren=ni>0?ns||Sn:null,Vf(),ni>0&&ns&&ns.push(s),s}function H(s,t,e,n,i,r){return Ec(S(s,t,e,n,i,r,!0))}function Ie(s,t,e,n,i){return Ec(pt(s,t,e,n,i,!0))}function Pn(s){return s?s.__v_isVNode===!0:!1}function ii(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&kn.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Lf=(...s)=>Tc(...s),kc=({key:s})=>s??null,nr=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?le(s)||Se(s)||St(s)?{i:ce,r:s,k:t,f:!!e}:s:null);function S(s,t=null,e=null,n=0,i=null,r=s===zt?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&kc(t),ref:t&&nr(t),scopeId:Ui,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?(Mo(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=le(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&st("VNode created with invalid key (NaN). VNode type:",l.type),ni>0&&!o&&ns&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&ns.push(l),l}const pt={}.NODE_ENV!=="production"?Lf:Tc;function Tc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===zd)&&({}.NODE_ENV!=="production"&&!s&&st(`Invalid vnode type when creating vnode: ${s}.`),s=Fe),Pn(s)){const a=Bs(s,t,!0);return e&&Mo(a,e),ni>0&&!r&&ns&&(a.shapeFlag&6?ns[ns.indexOf(s)]=a:ns.push(a)),a.patchFlag|=-2,a}if($c(s)&&(s=s.__vccOpts),t){t=Ff(t);let{class:a,style:l}=t;a&&!le(a)&&(t.class=ye(a)),Bt(l)&&(oo(l)&&!mt(l)&&(l=te({},l)),t.style=W(l))}const o=le(s)?1:Bd(s)?128:$f(s)?64:Bt(s)?4:St(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&oo(s)&&(s=Pt(s),st("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`.",`
|
|
22
|
+
Component that was made reactive: `,s)),S(s,t,e,n,i,o,r,!0)}function Ff(s){return s?oo(s)||hc(s)?te({},s):s:null}function Bs(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?Ao(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&kc(a),ref:t&&t.ref?e&&i?mt(i)?i.concat(nr(t)):[i,nr(t)]:nr(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&mt(o)?o.map(Oc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==zt?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&&Bs(s.ssContent),ssFallback:s.ssFallback&&Bs(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function Oc(s){const t=Bs(s);return mt(s.children)&&(t.children=s.children.map(Oc)),t}function Kt(s=" ",t=0){return pt(ei,null,s,t)}function qt(s="",t=!1){return t?(F(),Ie(Fe,null,s)):pt(Fe,null,s)}function is(s){return s==null||typeof s=="boolean"?pt(Fe):mt(s)?pt(zt,null,s.slice()):typeof s=="object"?Ys(s):pt(ei,null,String(s))}function Ys(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Bs(s)}function Mo(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(mt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Mo(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!hc(t)?t._ctx=ce:i===3&&ce&&(ce.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else St(t)?(t={default:t,_ctx:ce},e=32):(t=String(t),n&64?(e=16,t=[Kt(t)]):e=8);s.children=t,s.shapeFlag|=e}function Ao(...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=ye([t.class,n.class]));else if(i==="style")t.style=W([t.style,n.style]);else if(zn(i)){const r=t[i],o=n[i];o&&r!==o&&!(mt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function fs(s,t,e,n=null){ss(s,t,7,[e,n])}const Gf=lc();let zf=0;function jf(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||Gf,r={uid:zf++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Fh(!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:fc(n,i),emitsOptions:Hl(n,i),emit:null,emitted:null,propsDefaults:Ht,inheritAttrs:n.inheritAttrs,ctx:Ht,data:Ht,props:Ht,attrs:Ht,slots:Ht,refs:Ht,setupState:Ht,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=of(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Rd.bind(null,r),s.ce&&s.ce(r),r}let pe=null;const Pc=()=>pe||ce;let ir,Ro;{const s=Zr(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};ir=t("__VUE_INSTANCE_SETTERS__",e=>pe=e),Ro=t("__VUE_SSR_SETTERS__",e=>rr=e)}const ri=s=>{const t=pe;return ir(s),s.scope.on(),()=>{s.scope.off(),ir(t)}},Dc=()=>{pe&&pe.scope.off(),ir(null)},Bf=wn("slot,component");function $o(s,{isNativeTag:t}){(Bf(s)||t(s))&&st("Do not use built-in or reserved HTML elements as component id: "+s)}function Ic(s){return s.vnode.shapeFlag&4}let rr=!1;function Yf(s,t=!1){t&&Ro(t);const{props:e,children:n}=s.vnode,i=Ic(s);bf(s,e,i,t),Pf(s,n);const r=i?Xf(s,t):void 0;return t&&Ro(!1),r}function Xf(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&$o(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)$o(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)Jl(r[o])}n.compilerOptions&&Hf()&&st('"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,sc),{}.NODE_ENV!=="production"&&af(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?Rc(s):null,o=ri(s);bs();const a=Ss(i,s,0,[{}.NODE_ENV!=="production"?ws(s.props):s.props,r]);if(xs(),o(),Ur(a)){if(a.then(Dc,Dc),t)return a.then(l=>{Nc(s,l,t)}).catch(l=>{Xn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";st(`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 Nc(s,a,t)}else Mc(s,t)}function Nc(s,t,e){St(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Bt(t)?({}.NODE_ENV!=="production"&&Pn(t)&&st("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=Nl(t),{}.NODE_ENV!=="production"&&lf(s)):{}.NODE_ENV!=="production"&&t!==void 0&&st(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Mc(s,e)}let Vo;const Hf=()=>!Vo;function Mc(s,t,e){const n=s.type;if(!s.render){if(!t&&Vo&&!n.render){const i=n.template||ko(s).template;if(i){({}).NODE_ENV!=="production"&&Ts(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=te(te({isCustomElement:r,delimiters:a},o),l);n.render=Vo(i,c),{}.NODE_ENV!=="production"&&Os(s,"compile")}}s.render=n.render||ae}{const i=ri(s);bs();try{df(s)}finally{xs(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===ae&&!t&&(n.template?st('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".'):st("Component is missing template or render function."))}const Ac={}.NODE_ENV!=="production"?{get(s,t){return qi(),we(s,"get",""),s[t]},set(){return st("setupContext.attrs is readonly."),!1},deleteProperty(){return st("setupContext.attrs is readonly."),!1}}:{get(s,t){return we(s,"get",""),s[t]}};function Uf(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return we(s,"get","$slots"),t[e]}}))}function Rc(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&st("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(mt(e)?n="array":Se(e)&&(n="ref")),n!=="object"&&st(`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,Ac))},get slots(){return Uf(s)},get emit(){return(n,...i)=>s.emit(n,...i)},expose:t})}else return{attrs:new Proxy(s.attrs,Ac),slots:s.slots,emit:s.emit,expose:t}}function or(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(Nl(ld(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in pn)return pn[e](s)},has(t,e){return e in t||e in pn}}))}const Wf=/(?:^|[-_])(\w)/g,qf=s=>s.replace(Wf,t=>t.toUpperCase()).replace(/[-_]/g,"");function Lo(s,t=!0){return St(s)?s.displayName||s.name:s.name||t&&s.__name}function ar(s,t,e=!1){let n=Lo(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?qf(n):e?"App":"Anonymous"}function $c(s){return St(s)&&"__vccOpts"in s}const Zf=(s,t)=>{const e=ud(s,t,rr);if({}.NODE_ENV!=="production"){const n=Pc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function Ge(s,t,e){const n=arguments.length;return n===2?Bt(t)&&!mt(t)?Pn(t)?pt(s,null,[t]):pt(s,t):pt(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&Pn(e)&&(e=[e]),pt(s,t,e))}function Kf(){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 Bt(h)?h.__isVue?["div",s,"VueInstance"]:Se(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:Cn(h)?["div",{},["span",s,ln(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${an(h)?" (readonly)":""}`]:an(h)?["div",{},["span",s,ln(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",Pt(h.props))),h.setupState!==Ht&&f.push(o("setup",h.setupState)),h.data!==Ht&&f.push(o("data",Pt(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=te({},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]:Bt(h)?["object",{object:f?Pt(h):h}]:["span",e,String(h)]}function l(h,f){const d=h.type;if(St(d))return;const m={};for(const y in h.ctx)c(d,y,f)&&(m[y]=h.ctx[y]);return m}function c(h,f,d){const m=h[d];if(mt(m)&&m.includes(f)||Bt(m)&&f in m||h.extends&&c(h.extends,f,d)||h.mixins&&h.mixins.some(y=>c(y,f,d)))return!0}function u(h){return ln(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const Vc="3.4.25",Fo={}.NODE_ENV!=="production"?st:ae;/**
|
|
23
23
|
* @vue/runtime-dom v3.4.25
|
|
24
24
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
25
25
|
* @license MIT
|
|
26
|
-
**/const
|
|
27
|
-
Expected function or array of functions, received type ${typeof s}.`),
|
|
26
|
+
**/const Qf="http://www.w3.org/2000/svg",Jf="http://www.w3.org/1998/Math/MathML",Xs=typeof document<"u"?document:null,Lc=Xs&&Xs.createElement("template"),tp={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"?Xs.createElementNS(Qf,s):t==="mathml"?Xs.createElementNS(Jf,s):Xs.createElement(s,e?{is:e}:void 0);return s==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:s=>Xs.createTextNode(s),createComment:s=>Xs.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>Xs.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{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)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},ep=Symbol("_vtc");function sp(s,t,e){const n=s[ep];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const lr=Symbol("_vod"),Fc=Symbol("_vsh"),ps={beforeMount(s,{value:t},{transition:e}){s[lr]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):oi(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),oi(s,!0),n.enter(s)):n.leave(s,()=>{oi(s,!1)}):oi(s,t))},beforeUnmount(s,{value:t}){oi(s,t)}};({}).NODE_ENV!=="production"&&(ps.name="show");function oi(s,t){s.style.display=t?s[lr]:"none",s[Fc]=!t}const np=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),ip=/(^|;)\s*display\s*:/;function rp(s,t,e){const n=s.style,i=le(e);let r=!1;if(e&&!i){if(t)if(le(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();e[a]==null&&cr(n,a,"")}else for(const o in t)e[o]==null&&cr(n,o,"");for(const o in e)o==="display"&&(r=!0),cr(n,o,e[o])}else if(i){if(t!==e){const o=n[np];o&&(e+=";"+o),n.cssText=e,r=ip.test(e)}}else t&&s.removeAttribute("style");lr in s&&(s[lr]=r?n.display:"",s[Fc]&&(n.display="none"))}const op=/[^\\];\s*$/,Gc=/\s*!important$/;function cr(s,t,e){if(mt(e))e.forEach(n=>cr(s,t,n));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&op.test(e)&&Fo(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const n=ap(s,t);Gc.test(e)?s.setProperty(Rs(n),e.replace(Gc,""),"important"):s[n]=e}}const zc=["Webkit","Moz","ms"],Go={};function ap(s,t){const e=Go[t];if(e)return e;let n=cs(t);if(n!=="filter"&&n in s)return Go[t]=n;n=sn(n);for(let i=0;i<zc.length;i++){const r=zc[i]+n;if(r in s)return Go[t]=r}return t}const jc="http://www.w3.org/1999/xlink";function lp(s,t,e,n,i){if(n&&t.startsWith("xlink:"))e==null?s.removeAttributeNS(jc,t.slice(6,t.length)):s.setAttributeNS(jc,t,e);else{const r=Lh(t);e==null||r&&!ol(e)?s.removeAttribute(t):s.setAttribute(t,r?"":e)}}function cp(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=ol(e):e==null&&c==="string"?(e="",l=!0):c==="number"&&(e=0,l=!0)}try{s[t]=e}catch(c){({}).NODE_ENV!=="production"&&!l&&Fo(`Failed setting prop "${t}" on <${a.toLowerCase()}>: value ${e} is invalid.`,c)}l&&s.removeAttribute(t)}function up(s,t,e,n){s.addEventListener(t,e,n)}function hp(s,t,e,n){s.removeEventListener(t,e,n)}const Bc=Symbol("_vei");function dp(s,t,e,n,i=null){const r=s[Bc]||(s[Bc]={}),o=r[t];if(n&&o)o.value={}.NODE_ENV!=="production"?Xc(n,t):n;else{const[a,l]=fp(t);if(n){const c=r[t]=gp({}.NODE_ENV!=="production"?Xc(n,t):n,i);up(s,a,c,l)}else o&&(hp(s,a,o,l),r[t]=void 0)}}const Yc=/(?:Once|Passive|Capture)$/;function fp(s){let t;if(Yc.test(s)){t={};let n;for(;n=s.match(Yc);)s=s.slice(0,s.length-n[0].length),t[n[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):Rs(s.slice(2)),t]}let zo=0;const pp=Promise.resolve(),mp=()=>zo||(pp.then(()=>zo=0),zo=Date.now());function gp(s,t){const e=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=e.attached)return;ss(yp(n,e.value),t,5,[n])};return e.value=s,e.attached=mp(),e}function Xc(s,t){return St(s)||mt(s)?s:(Fo(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
27
|
+
Expected function or array of functions, received type ${typeof s}.`),ae)}function yp(s,t){if(mt(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 Hc=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,vp=(s,t,e,n,i,r,o,a,l)=>{const c=i==="svg";t==="class"?sp(s,n,c):t==="style"?rp(s,e,n):zn(t)?Ii(t)||dp(s,t,e,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_p(s,t,n,c))?cp(s,t,n,r,o,a,l):(t==="true-value"?s._trueValue=n:t==="false-value"&&(s._falseValue=n),lp(s,t,n,c))};function _p(s,t,e,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in s&&Hc(t)&&St(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 Hc(t)&&le(e)?!1:t in s}const bp=te({patchProp:vp},tp);let Uc;function xp(){return Uc||(Uc=Nf(bp))}const ur=(...s)=>{xp().render(...s)};/**
|
|
28
28
|
* vue v3.4.25
|
|
29
29
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
30
30
|
* @license MIT
|
|
31
|
-
**/function Zd(){Td()}({}).NODE_ENV!=="production"&&Zd();const Un=/^[a-z0-9]+(-[a-z0-9]+)*$/,Yr=(s,t,e,n="")=>{const r=s.split(":");if(s.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const a=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:n,prefix:l,name:a};return t&&!Xr(c)?null:c}const i=r[0],o=i.split("-");if(o.length>1){const a={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!Xr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:i};return t&&!Xr(a,e)?null:a}return null},Xr=(s,t)=>s?!!((s.provider===""||s.provider.match(Un))&&(t&&s.prefix===""||s.prefix.match(Un))&&s.name.match(Un)):!1,Sc=Object.freeze({left:0,top:0,width:16,height:16}),Wr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),qr=Object.freeze({...Sc,...Wr}),_o=Object.freeze({...qr,body:"",hidden:!1});function Qd(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 Ec(s,t){const e=Qd(s,t);for(const n in _o)n in Wr?n in s&&!(n in e)&&(e[n]=Wr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function Jd(s,t){const e=s.icons,n=s.aliases||Object.create(null),r=Object.create(null);function i(o){if(e[o])return r[o]=[];if(!(o in r)){r[o]=null;const a=n[o]&&n[o].parent,l=a&&i(a);l&&(r[o]=[a].concat(l))}return r[o]}return(t||Object.keys(e).concat(Object.keys(n))).forEach(i),r}function tp(s,t,e){const n=s.icons,r=s.aliases||Object.create(null);let i={};function o(a){i=Ec(n[a]||r[a],i)}return o(t),e.forEach(o),Ec(s,i)}function Cc(s,t){const e=[];if(typeof s!="object"||typeof s.icons!="object")return e;s.not_found instanceof Array&&s.not_found.forEach(r=>{t(r,null),e.push(r)});const n=Jd(s);for(const r in n){const i=n[r];i&&(t(r,tp(s,r,i)),e.push(r))}return e}const ep={provider:"",aliases:{},not_found:{},...Sc};function bo(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function Tc(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!bo(s,ep))return null;const e=t.icons;for(const r in e){const i=e[r];if(!r.match(Un)||typeof i.body!="string"||!bo(i,_o))return null}const n=t.aliases||Object.create(null);for(const r in n){const i=n[r],o=i.parent;if(!r.match(Un)||typeof o!="string"||!e[o]&&!n[o]||!bo(i,_o))return null}return t}const kc=Object.create(null);function sp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function qs(s,t){const e=kc[s]||(kc[s]=Object.create(null));return e[t]||(e[t]=sp(s,t))}function xo(s,t){return Tc(t)?Cc(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function np(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let Yn=!1;function Oc(s){return typeof s=="boolean"&&(Yn=s),Yn}function rp(s){const t=typeof s=="string"?Yr(s,!0,Yn):s;if(t){const e=qs(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function ip(s,t){const e=Yr(s,!0,Yn);if(!e)return!1;const n=qs(e.provider,e.prefix);return np(n,e.name,t)}function op(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),Yn&&!t&&!s.prefix){let r=!1;return Tc(s)&&(s.prefix="",Cc(s,(i,o)=>{o&&ip(i,o)&&(r=!0)})),r}const e=s.prefix;if(!Xr({provider:t,prefix:e,name:"a"}))return!1;const n=qs(t,e);return!!xo(n,s)}const Pc=Object.freeze({width:null,height:null}),Ic=Object.freeze({...Pc,...Wr}),ap=/(-?[0-9.]*[0-9]+[0-9.]*)/g,lp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Dc(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(ap);if(n===null||!n.length)return s;const r=[];let i=n.shift(),o=lp.test(i);for(;;){if(o){const a=parseFloat(i);isNaN(a)?r.push(i):r.push(Math.ceil(a*t*e)/e)}else r.push(i);if(i=n.shift(),i===void 0)return r.join("");o=!o}}function cp(s,t="defs"){let e="";const n=s.indexOf("<"+t);for(;n>=0;){const r=s.indexOf(">",n),i=s.indexOf("</"+t);if(r===-1||i===-1)break;const o=s.indexOf(">",i);if(o===-1)break;e+=s.slice(r+1,i).trim(),s=s.slice(0,n).trim()+s.slice(o+1)}return{defs:e,content:s}}function up(s,t){return s?"<defs>"+s+"</defs>"+t:t}function hp(s,t,e){const n=cp(s);return up(n.defs,t+n.content+e)}const fp=s=>s==="unset"||s==="undefined"||s==="none";function dp(s,t){const e={...qr,...s},n={...Ic,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let i=e.body;[e,n].forEach(y=>{const b=[],k=y.hFlip,A=y.vFlip;let N=y.rotate;k?A?N+=2:(b.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),b.push("scale(-1 1)"),r.top=r.left=0):A&&(b.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),b.push("scale(1 -1)"),r.top=r.left=0);let I;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:I=r.height/2+r.top,b.unshift("rotate(90 "+I.toString()+" "+I.toString()+")");break;case 2:b.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:I=r.width/2+r.left,b.unshift("rotate(-90 "+I.toString()+" "+I.toString()+")");break}N%2===1&&(r.left!==r.top&&(I=r.left,r.left=r.top,r.top=I),r.width!==r.height&&(I=r.width,r.width=r.height,r.height=I)),b.length&&(i=hp(i,'<g transform="'+b.join(" ")+'">',"</g>"))});const o=n.width,a=n.height,l=r.width,c=r.height;let u,h;o===null?(h=a===null?"1em":a==="auto"?c:a,u=Dc(h,l/c)):(u=o==="auto"?l:o,h=a===null?Dc(u,c/l):a==="auto"?c:a);const p={},f=(y,b)=>{fp(b)||(p[y]=b.toString())};f("width",u),f("height",h);const g=[r.left,r.top,l,c];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:i}}const pp=/\sid="(\S+)"/g,mp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let gp=0;function vp(s,t=mp){const e=[];let n;for(;n=pp.exec(s);)e.push(n[1]);if(!e.length)return s;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(i=>{const o=typeof t=="function"?t(i):t+(gp++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+r+"$3")}),s=s.replace(new RegExp(r,"g"),""),s}const wo=Object.create(null);function yp(s,t){wo[s]=t}function So(s){return wo[s]||wo[""]}function Eo(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 Co=Object.create(null),Xn=["https://api.simplesvg.com","https://api.unisvg.com"],Kr=[];for(;Xn.length>0;)Xn.length===1||Math.random()>.5?Kr.push(Xn.shift()):Kr.push(Xn.pop());Co[""]=Eo({resources:["https://api.iconify.design"].concat(Kr)});function _p(s,t){const e=Eo(t);return e===null?!1:(Co[s]=e,!0)}function To(s){return Co[s]}let Nc=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function bp(s,t){const e=To(s);if(!e)return 0;let n;if(!e.maxURL)n=0;else{let r=0;e.resources.forEach(o=>{r=Math.max(r,o.length)});const i=t+".json?icons=";n=e.maxURL-r-e.path.length-i.length}return n}function xp(s){return s===404}const wp=(s,t,e)=>{const n=[],r=bp(s,t),i="icons";let o={type:i,provider:s,prefix:t,icons:[]},a=0;return e.forEach((l,c)=>{a+=l.length+1,a>=r&&c>0&&(n.push(o),o={type:i,provider:s,prefix:t,icons:[]},a=l.length),o.icons.push(l)}),n.push(o),n};function Sp(s){if(typeof s=="string"){const t=To(s);if(t)return t.path}return"/"}const Ep={prepare:wp,send:(s,t,e)=>{if(!Nc){e("abort",424);return}let n=Sp(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),l=new URLSearchParams({icons:a});n+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:e("abort",400);return}let r=503;Nc(s+n).then(i=>{const o=i.status;if(o!==200){setTimeout(()=>{e(xp(o)?"abort":"next",o)});return}return r=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?e("abort",i):e("next",r)});return}setTimeout(()=>{e("success",i)})}).catch(()=>{e("next",r)})}};function Cp(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.sort((r,i)=>r.provider!==i.provider?r.provider.localeCompare(i.provider):r.prefix!==i.prefix?r.prefix.localeCompare(i.prefix):r.name.localeCompare(i.name));let n={provider:"",prefix:"",name:""};return s.forEach(r=>{if(n.name===r.name&&n.prefix===r.prefix&&n.provider===r.provider)return;n=r;const i=r.provider,o=r.prefix,a=r.name,l=e[i]||(e[i]=Object.create(null)),c=l[o]||(l[o]=qs(i,o));let u;a in c.icons?u=t.loaded:o===""||c.missing.has(a)?u=t.missing:u=t.pending;const h={provider:i,prefix:o,name:a};u.push(h)}),t}function Ac(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(r=>r.id!==t))})}function Tp(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,r=s.prefix;t.forEach(i=>{const o=i.icons,a=o.pending.length;o.pending=o.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(s.icons[c])o.loaded.push({provider:n,prefix:r,name:c});else if(s.missing.has(c))o.missing.push({provider:n,prefix:r,name:c});else return e=!0,!0;return!1}),o.pending.length!==a&&(e||Ac([s],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}let kp=0;function Op(s,t,e){const n=kp++,r=Ac.bind(null,e,n);if(!t.pending.length)return r;const i={id:n,icons:t,callback:s,abort:r};return e.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),r}function Pp(s,t=!0,e=!1){const n=[];return s.forEach(r=>{const i=typeof r=="string"?Yr(r,t,e):r;i&&n.push(i)}),n}var Ip={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Dp(s,t,e,n){const r=s.resources.length,i=s.random?Math.floor(Math.random()*r):s.index;let o;if(s.random){let M=s.resources.slice(0);for(o=[];M.length>1;){const Y=Math.floor(Math.random()*M.length);o.push(M[Y]),M=M.slice(0,Y).concat(M.slice(Y+1))}o=o.concat(M)}else o=s.resources.slice(i).concat(s.resources.slice(0,i));const a=Date.now();let l="pending",c=0,u,h=null,p=[],f=[];typeof n=="function"&&f.push(n);function g(){h&&(clearTimeout(h),h=null)}function y(){l==="pending"&&(l="aborted"),g(),p.forEach(M=>{M.status==="pending"&&(M.status="aborted")}),p=[]}function b(M,Y){Y&&(f=[]),typeof M=="function"&&f.push(M)}function k(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:p.length,subscribe:b,abort:y}}function A(){l="failed",f.forEach(M=>{M(void 0,u)})}function N(){p.forEach(M=>{M.status==="pending"&&(M.status="aborted")}),p=[]}function I(M,Y,gt){const yt=Y!=="success";switch(p=p.filter(wt=>wt!==M),l){case"pending":break;case"failed":if(yt||!s.dataAfterTimeout)return;break;default:return}if(Y==="abort"){u=gt,A();return}if(yt){u=gt,p.length||(o.length?et():A());return}if(g(),N(),!s.random){const wt=s.resources.indexOf(M.resource);wt!==-1&&wt!==s.index&&(s.index=wt)}l="completed",f.forEach(wt=>{wt(gt)})}function et(){if(l!=="pending")return;g();const M=o.shift();if(M===void 0){if(p.length){h=setTimeout(()=>{g(),l==="pending"&&(N(),A())},s.timeout);return}A();return}const Y={status:"pending",resource:M,callback:(gt,yt)=>{I(Y,gt,yt)}};p.push(Y),c++,h=setTimeout(et,s.rotate),e(M,t,Y.callback)}return setTimeout(et),k}function Mc(s){const t={...Ip,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function r(a,l,c){const u=Dp(t,a,l,(h,p)=>{n(),c&&c(h,p)});return e.push(u),u}function i(a){return e.find(l=>a(l))||null}return{query:r,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:n}}function Rc(){}const ko=Object.create(null);function Np(s){if(!ko[s]){const t=To(s);if(!t)return;const e=Mc(t),n={config:t,redundancy:e};ko[s]=n}return ko[s]}function Ap(s,t,e){let n,r;if(typeof s=="string"){const i=So(s);if(!i)return e(void 0,424),Rc;r=i.send;const o=Np(s);o&&(n=o.redundancy)}else{const i=Eo(s);if(i){n=Mc(i);const o=s.resources?s.resources[0]:"",a=So(o);a&&(r=a.send)}}return!n||!r?(e(void 0,424),Rc):n.query(t,r,e)().abort}const $c="iconify2",Wn="iconify",Lc=Wn+"-count",Vc=Wn+"-version",Fc=36e5,Mp=168,Rp=50;function Oo(s,t){try{return s.getItem(t)}catch{}}function Po(s,t,e){try{return s.setItem(t,e),!0}catch{}}function Gc(s,t){try{s.removeItem(t)}catch{}}function Io(s,t){return Po(s,Lc,t.toString())}function Do(s){return parseInt(Oo(s,Lc))||0}const Zr={local:!0,session:!0},jc={local:new Set,session:new Set};let No=!1;function $p(s){No=s}let Qr=typeof window>"u"?{}:window;function zc(s){const t=s+"Storage";try{if(Qr&&Qr[t]&&typeof Qr[t].length=="number")return Qr[t]}catch{}Zr[s]=!1}function Bc(s,t){const e=zc(s);if(!e)return;const n=Oo(e,Vc);if(n!==$c){if(n){const a=Do(e);for(let l=0;l<a;l++)Gc(e,Wn+l.toString())}Po(e,Vc,$c),Io(e,0);return}const r=Math.floor(Date.now()/Fc)-Mp,i=a=>{const l=Wn+a.toString(),c=Oo(e,l);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,a))return!0}catch{}Gc(e,l)}};let o=Do(e);for(let a=o-1;a>=0;a--)i(a)||(a===o-1?(o--,Io(e,o)):jc[s].add(a))}function Hc(){if(!No){$p(!0);for(const s in Zr)Bc(s,t=>{const e=t.data,n=t.provider,r=e.prefix,i=qs(n,r);if(!xo(i,e).length)return!1;const o=e.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,o):o,!0})}}function Lp(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in Zr)Bc(n,r=>{const i=r.data;return r.provider!==s.provider||i.prefix!==s.prefix||i.lastModified===t});return!0}function Vp(s,t){No||Hc();function e(n){let r;if(!Zr[n]||!(r=zc(n)))return;const i=jc[n];let o;if(i.size)i.delete(o=Array.from(i).shift());else if(o=Do(r),o>=Rp||!Io(r,o+1))return;const a={cached:Math.floor(Date.now()/Fc),provider:s.provider,data:t};return Po(r,Wn+o.toString(),JSON.stringify(a))}t.lastModified&&!Lp(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function Uc(){}function Fp(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Tp(s)}))}function Gp(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,r=s.iconsToLoad;delete s.iconsToLoad;let i;if(!r||!(i=So(e)))return;i.prepare(e,n,r).forEach(a=>{Ap(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=xo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),Vp(s,l)}catch(c){console.error(c)}Fp(s)})})}))}const jp=(s,t)=>{const e=Pp(s,!0,Oc()),n=Cp(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,Uc)}),()=>{l=!1}}const r=Object.create(null),i=[];let o,a;return n.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===a&&c===o)return;o=c,a=u,i.push(qs(c,u));const h=r[c]||(r[c]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(l=>{const{provider:c,prefix:u,name:h}=l,p=qs(c,u),f=p.pendingIcons||(p.pendingIcons=new Set);f.has(h)||(f.add(h),r[c][u].push(h))}),i.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&Gp(l,r[c][u])}),t?Op(t,n,i):Uc};function zp(s,t){const e={...s};for(const n in t){const r=t[n],i=typeof r;n in Pc?(r===null||r&&(i==="string"||i==="number"))&&(e[n]=r):i===typeof e[n]&&(e[n]=n==="rotate"?r%4:r)}return e}const Bp=/[\s,]+/;function Hp(s,t){t.split(Bp).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function Up(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function n(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(s);return isNaN(r)?0:n(r)}else if(e!==s){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let i=parseFloat(s.slice(0,s.length-e.length));return isNaN(i)?0:(i=i/r,i%1===0?n(i):0)}}return t}function Yp(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 Xp(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Wp(s){return"data:image/svg+xml,"+Xp(s)}function qp(s){return'url("'+Wp(s)+'")'}const Yc={...Ic,inline:!1},Kp={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Zp={display:"inline-block"},Ao={backgroundColor:"currentColor"},Xc={backgroundColor:"transparent"},Wc={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},qc={webkitMask:Ao,mask:Ao,background:Xc};for(const s in qc){const t=qc[s];for(const e in Wc)t[s+e]=Wc[e]}const Jr={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";Jr[s+"-flip"]=t,Jr[s.slice(0,1)+"-flip"]=t,Jr[s+"Flip"]=t});function Kc(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const Zc=(s,t)=>{const e=zp(Yc,t),n={...Kp},r=t.mode||"svg",i={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let y in t){const b=t[y];if(b!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[y]=b===!0||b==="true"||b===1;break;case"flip":typeof b=="string"&&Hp(e,b);break;case"color":i.color=b;break;case"rotate":typeof b=="string"?e[y]=Up(b):typeof b=="number"&&(e[y]=b);break;case"ariaHidden":case"aria-hidden":b!==!0&&b!=="true"&&delete n["aria-hidden"];break;default:{const k=Jr[y];k?(b===!0||b==="true"||b===1)&&(e[k]=!0):Yc[y]===void 0&&(n[y]=b)}}}const l=dp(s,e),c=l.attributes;if(e.inline&&(i.verticalAlign="-0.125em"),r==="svg"){n.style={...i,...a},Object.assign(n,c);let y=0,b=t.id;return typeof b=="string"&&(b=b.replace(/-/g,"_")),n.innerHTML=vp(l.body,b?()=>b+"ID"+y++:"iconifyVue"),Ne("svg",n)}const{body:u,width:h,height:p}=s,f=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Yp(u,{...c,width:h+"",height:p+""});return n.style={...i,"--svg":qp(g),width:Kc(c.width),height:Kc(c.height),...Zp,...f?Ao:Xc,...a},Ne("span",n)};if(Oc(!0),yp("",Ep),typeof document<"u"&&typeof window<"u"){Hc();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"||!op(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 r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;_p(e,r)||console.error(n)}catch{console.error(n)}}}}const Qp={...qr,body:""},Jp=ut({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=Yr(s,!1,!0))===null)return this.abortLoading(),null;const n=rp(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:jp([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==s&&(this._name=s,t&&t(s));const r=["iconify"];return e.prefix!==""&&r.push("iconify--"+e.prefix),e.provider!==""&&r.push("iconify--"+e.provider),{data:n,classes:r}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return Zc(Qp,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),Zc({...qr,...t.data},e)}});typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function Qc(s){this.message=s}Qc.prototype=new Error,Qc.prototype.name="InvalidCharacterError";const Mo=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"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"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
|
+
**/function wp(){Kf()}({}).NODE_ENV!=="production"&&wp();const ai=/^[a-z0-9]+(-[a-z0-9]+)*$/,hr=(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&&!dr(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&&!dr(a)?null:a}if(e&&n===""){const a={provider:n,prefix:"",name:r};return t&&!dr(a,e)?null:a}return null},dr=(s,t)=>s?!!((s.provider===""||s.provider.match(ai))&&(t&&s.prefix===""||s.prefix.match(ai))&&s.name.match(ai)):!1,Wc=Object.freeze({left:0,top:0,width:16,height:16}),fr=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),pr=Object.freeze({...Wc,...fr}),jo=Object.freeze({...pr,body:"",hidden:!1});function Sp(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 qc(s,t){const e=Sp(s,t);for(const n in jo)n in fr?n in s&&!(n in e)&&(e[n]=fr[n]):n in t?e[n]=t[n]:n in s&&(e[n]=s[n]);return e}function Cp(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 Ep(s,t,e){const n=s.icons,i=s.aliases||Object.create(null);let r={};function o(a){r=qc(n[a]||i[a],r)}return o(t),e.forEach(o),qc(s,r)}function Zc(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=Cp(s);for(const i in n){const r=n[i];r&&(t(i,Ep(s,i,r)),e.push(i))}return e}const kp={provider:"",aliases:{},not_found:{},...Wc};function Bo(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function Kc(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!Bo(s,kp))return null;const e=t.icons;for(const i in e){const r=e[i];if(!i.match(ai)||typeof r.body!="string"||!Bo(r,jo))return null}const n=t.aliases||Object.create(null);for(const i in n){const r=n[i],o=r.parent;if(!i.match(ai)||typeof o!="string"||!e[o]&&!n[o]||!Bo(r,jo))return null}return t}const Qc=Object.create(null);function Tp(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function gn(s,t){const e=Qc[s]||(Qc[s]=Object.create(null));return e[t]||(e[t]=Tp(s,t))}function Yo(s,t){return Kc(t)?Zc(t,(e,n)=>{n?s.icons[e]=n:s.missing.add(e)}):[]}function Op(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let li=!1;function Jc(s){return typeof s=="boolean"&&(li=s),li}function Pp(s){const t=typeof s=="string"?hr(s,!0,li):s;if(t){const e=gn(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Dp(s,t){const e=hr(s,!0,li);if(!e)return!1;const n=gn(e.provider,e.prefix);return Op(n,e.name,t)}function Ip(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),li&&!t&&!s.prefix){let i=!1;return Kc(s)&&(s.prefix="",Zc(s,(r,o)=>{o&&Dp(r,o)&&(i=!0)})),i}const e=s.prefix;if(!dr({provider:t,prefix:e,name:"a"}))return!1;const n=gn(t,e);return!!Yo(n,s)}const tu=Object.freeze({width:null,height:null}),eu=Object.freeze({...tu,...fr}),Np=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Mp=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function su(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(Np);if(n===null||!n.length)return s;const i=[];let r=n.shift(),o=Mp.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 Ap(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 Rp(s,t){return s?"<defs>"+s+"</defs>"+t:t}function $p(s,t,e){const n=Ap(s);return Rp(n.defs,t+n.content+e)}const Vp=s=>s==="unset"||s==="undefined"||s==="none";function Lp(s,t){const e={...pr,...s},n={...eu,...t},i={left:e.left,top:e.top,width:e.width,height:e.height};let r=e.body;[e,n].forEach(y=>{const _=[],E=y.hFlip,D=y.vFlip;let N=y.rotate;E?D?N+=2:(_.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),_.push("scale(-1 1)"),i.top=i.left=0):D&&(_.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),_.push("scale(1 -1)"),i.top=i.left=0);let k;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:k=i.height/2+i.top,_.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:_.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:k=i.width/2+i.left,_.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}N%2===1&&(i.left!==i.top&&(k=i.left,i.left=i.top,i.top=k),i.width!==i.height&&(k=i.width,i.width=i.height,i.height=k)),_.length&&(r=$p(r,'<g transform="'+_.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=su(h,l/c)):(u=o==="auto"?l:o,h=a===null?su(u,c/l):a==="auto"?c:a);const f={},d=(y,_)=>{Vp(_)||(f[y]=_.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 Fp=/\sid="(\S+)"/g,Gp="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let zp=0;function jp(s,t=Gp){const e=[];let n;for(;n=Fp.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+(zp++).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 Xo=Object.create(null);function Bp(s,t){Xo[s]=t}function Ho(s){return Xo[s]||Xo[""]}function Uo(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 Wo=Object.create(null),ci=["https://api.simplesvg.com","https://api.unisvg.com"],mr=[];for(;ci.length>0;)ci.length===1||Math.random()>.5?mr.push(ci.shift()):mr.push(ci.pop());Wo[""]=Uo({resources:["https://api.iconify.design"].concat(mr)});function Yp(s,t){const e=Uo(t);return e===null?!1:(Wo[s]=e,!0)}function qo(s){return Wo[s]}let nu=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function Xp(s,t){const e=qo(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 Hp(s){return s===404}const Up=(s,t,e)=>{const n=[],i=Xp(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 Wp(s){if(typeof s=="string"){const t=qo(s);if(t)return t.path}return"/"}const qp={prepare:Up,send:(s,t,e)=>{if(!nu){e("abort",424);return}let n=Wp(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;nu(s+n).then(r=>{const o=r.status;if(o!==200){setTimeout(()=>{e(Hp(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 Zp(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]=gn(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 iu(s,t){s.forEach(e=>{const n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(i=>i.id!==t))})}function Kp(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||iu([s],r.id),r.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),r.abort))})}))}let Qp=0;function Jp(s,t,e){const n=Qp++,i=iu.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 tm(s,t=!0,e=!1){const n=[];return s.forEach(i=>{const r=typeof i=="string"?hr(i,t,e):i;r&&n.push(r)}),n}var em={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sm(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 A=s.resources.slice(0);for(o=[];A.length>1;){const j=Math.floor(Math.random()*A.length);o.push(A[j]),A=A.slice(0,j).concat(A.slice(j+1))}o=o.concat(A)}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 y(){l==="pending"&&(l="aborted"),m(),f.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),f=[]}function _(A,j){j&&(d=[]),typeof A=="function"&&d.push(A)}function E(){return{startTime:a,payload:t,status:l,queriesSent:c,queriesPending:f.length,subscribe:_,abort:y}}function D(){l="failed",d.forEach(A=>{A(void 0,u)})}function N(){f.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),f=[]}function k(A,j,yt){const bt=j!=="success";switch(f=f.filter(Ct=>Ct!==A),l){case"pending":break;case"failed":if(bt||!s.dataAfterTimeout)return;break;default:return}if(j==="abort"){u=yt,D();return}if(bt){u=yt,f.length||(o.length?Q():D());return}if(m(),N(),!s.random){const Ct=s.resources.indexOf(A.resource);Ct!==-1&&Ct!==s.index&&(s.index=Ct)}l="completed",d.forEach(Ct=>{Ct(yt)})}function Q(){if(l!=="pending")return;m();const A=o.shift();if(A===void 0){if(f.length){h=setTimeout(()=>{m(),l==="pending"&&(N(),D())},s.timeout);return}D();return}const j={status:"pending",resource:A,callback:(yt,bt)=>{k(j,yt,bt)}};f.push(j),c++,h=setTimeout(Q,s.rotate),e(A,t,j.callback)}return setTimeout(Q),E}function ru(s){const t={...em,...s};let e=[];function n(){e=e.filter(a=>a().status==="pending")}function i(a,l,c){const u=sm(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 ou(){}const Zo=Object.create(null);function nm(s){if(!Zo[s]){const t=qo(s);if(!t)return;const e=ru(t),n={config:t,redundancy:e};Zo[s]=n}return Zo[s]}function im(s,t,e){let n,i;if(typeof s=="string"){const r=Ho(s);if(!r)return e(void 0,424),ou;i=r.send;const o=nm(s);o&&(n=o.redundancy)}else{const r=Uo(s);if(r){n=ru(r);const o=s.resources?s.resources[0]:"",a=Ho(o);a&&(i=a.send)}}return!n||!i?(e(void 0,424),ou):n.query(t,i,e)().abort}const au="iconify2",ui="iconify",lu=ui+"-count",cu=ui+"-version",uu=36e5,rm=168,om=50;function Ko(s,t){try{return s.getItem(t)}catch{}}function Qo(s,t,e){try{return s.setItem(t,e),!0}catch{}}function hu(s,t){try{s.removeItem(t)}catch{}}function Jo(s,t){return Qo(s,lu,t.toString())}function ta(s){return parseInt(Ko(s,lu))||0}const gr={local:!0,session:!0},du={local:new Set,session:new Set};let ea=!1;function am(s){ea=s}let yr=typeof window>"u"?{}:window;function fu(s){const t=s+"Storage";try{if(yr&&yr[t]&&typeof yr[t].length=="number")return yr[t]}catch{}gr[s]=!1}function pu(s,t){const e=fu(s);if(!e)return;const n=Ko(e,cu);if(n!==au){if(n){const a=ta(e);for(let l=0;l<a;l++)hu(e,ui+l.toString())}Qo(e,cu,au),Jo(e,0);return}const i=Math.floor(Date.now()/uu)-rm,r=a=>{const l=ui+a.toString(),c=Ko(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{}hu(e,l)}};let o=ta(e);for(let a=o-1;a>=0;a--)r(a)||(a===o-1?(o--,Jo(e,o)):du[s].add(a))}function mu(){if(!ea){am(!0);for(const s in gr)pu(s,t=>{const e=t.data,n=t.provider,i=e.prefix,r=gn(n,i);if(!Yo(r,e).length)return!1;const o=e.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,o):o,!0})}}function lm(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const n in gr)pu(n,i=>{const r=i.data;return i.provider!==s.provider||r.prefix!==s.prefix||r.lastModified===t});return!0}function cm(s,t){ea||mu();function e(n){let i;if(!gr[n]||!(i=fu(n)))return;const r=du[n];let o;if(r.size)r.delete(o=Array.from(r).shift());else if(o=ta(i),o>=om||!Jo(i,o+1))return;const a={cached:Math.floor(Date.now()/uu),provider:s.provider,data:t};return Qo(i,ui+o.toString(),JSON.stringify(a))}t.lastModified&&!lm(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function gu(){}function um(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,Kp(s)}))}function hm(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=Ho(e)))return;r.prepare(e,n,i).forEach(a=>{im(e,a,l=>{if(typeof l!="object")a.icons.forEach(c=>{s.missing.add(c)});else try{const c=Yo(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(h=>{u.delete(h)}),cm(s,l)}catch(c){console.error(c)}um(s)})})}))}const dm=(s,t)=>{const e=tm(s,!0,Jc()),n=Zp(e);if(!n.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(n.loaded,n.missing,n.pending,gu)}),()=>{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(gn(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=gn(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&&hm(l,i[c][u])}),t?Jp(t,n,r):gu};function fm(s,t){const e={...s};for(const n in t){const i=t[n],r=typeof i;n in tu?(i===null||i&&(r==="string"||r==="number"))&&(e[n]=i):r===typeof e[n]&&(e[n]=n==="rotate"?i%4:i)}return e}const pm=/[\s,]+/;function mm(s,t){t.split(pm).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function gm(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 ym(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 vm(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function _m(s){return"data:image/svg+xml,"+vm(s)}function bm(s){return'url("'+_m(s)+'")'}const yu={...eu,inline:!1},xm={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},wm={display:"inline-block"},sa={backgroundColor:"currentColor"},vu={backgroundColor:"transparent"},_u={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},bu={webkitMask:sa,mask:sa,background:vu};for(const s in bu){const t=bu[s];for(const e in _u)t[s+e]=_u[e]}const vr={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";vr[s+"-flip"]=t,vr[s.slice(0,1)+"-flip"]=t,vr[s+"Flip"]=t});function xu(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const wu=(s,t)=>{const e=fm(yu,t),n={...xm},i=t.mode||"svg",r={},o=t.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let y in t){const _=t[y];if(_!==void 0)switch(y){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[y]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&mm(e,_);break;case"color":r.color=_;break;case"rotate":typeof _=="string"?e[y]=gm(_):typeof _=="number"&&(e[y]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete n["aria-hidden"];break;default:{const E=vr[y];E?(_===!0||_==="true"||_===1)&&(e[E]=!0):yu[y]===void 0&&(n[y]=_)}}}const l=Lp(s,e),c=l.attributes;if(e.inline&&(r.verticalAlign="-0.125em"),i==="svg"){n.style={...r,...a},Object.assign(n,c);let y=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),n.innerHTML=jp(l.body,_?()=>_+"ID"+y++:"iconifyVue"),Ge("svg",n)}const{body:u,width:h,height:f}=s,d=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),m=ym(u,{...c,width:h+"",height:f+""});return n.style={...r,"--svg":bm(m),width:xu(c.width),height:xu(c.height),...wm,...d?sa:vu,...a},Ge("span",n)};if(Jc(!0),Bp("",qp),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"||!Ip(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;Yp(e,i)||console.error(n)}catch{console.error(n)}}}}const Sm={...pr,body:""},Cm=lt({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=hr(s,!1,!0))===null)return this.abortLoading(),null;const n=Pp(e);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:s,abort:dm([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 wu(Sm,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),wu({...pr,...t.data},e)}});function Su(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}typeof process<"u"&&process.versions!=null&&process.versions.node!=null;function Cu(s){this.message=s}Cu.prototype=new Error,Cu.prototype.name="InvalidCharacterError";class na{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 Dn=new na,ia=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`
|
|
32
32
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
33
33
|
|[\u{4E00}-\u{9FCC}]
|
|
34
34
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -37,57 +37,61 @@ Expected function or array of functions, received type ${typeof s}.`),Qt)}functi
|
|
|
37
37
|
|[\u{2B740}-\u{2B81D}]
|
|
38
38
|
|[\u{2B820}-\u{2CEAF}]
|
|
39
39
|
|[\u{2CEB0}-\u{2EBEF}]
|
|
40
|
-
`.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},
|
|
41
|
-
`);n=~St?nt.length-St:n+nt.length}function i(){var nt={line:e,column:n};return function(q){return q.position=new o(nt),g(),q}}function o(nt){this.start=nt,this.end={line:e,column:n},this.source=t.source}o.prototype.content=s;var a=[];function l(nt){var q=new Error(t.source+":"+e+":"+n+": "+nt);if(q.reason=nt,q.filename=t.source,q.line=e,q.column=n,q.source=s,t.silent)a.push(q);else throw q}function c(){var nt=p();return{type:"stylesheet",stylesheet:{source:t.source,rules:nt,parsingErrors:a}}}function u(){return f(/^{\s*/)}function h(){return f(/^}/)}function p(){var nt,q=[];for(g(),y(q);s.length&&s.charAt(0)!="}"&&(nt=_t()||$());)nt!==!1&&(q.push(nt),y(q));return q}function f(nt){var q=nt.exec(s);if(q){var St=q[0];return r(St),s=s.slice(St.length),q}}function g(){f(/^\s*/)}function y(nt){var q;for(nt=nt||[];q=b();)q!==!1&&nt.push(q);return nt}function b(){var nt=i();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 St=s.slice(2,q-2);return n+=2,r(St),s=s.slice(q),n+=2,nt({type:"comment",comment:St})}}function k(){var nt=f(/^([^{]+)/);if(nt)return gs(nt[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 A(){var nt=i(),q=f(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(q){if(q=gs(q[0]),!f(/^:\s*/))return l("property missing ':'");var St=f(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),lt=nt({type:"declaration",property:q.replace(lu,""),value:St?gs(St[0]).replace(lu,""):""});return f(/^[;\s]*/),lt}}function N(){var nt=[];if(!u())return l("missing '{'");y(nt);for(var q;q=A();)q!==!1&&(nt.push(q),y(nt));return h()?nt:l("missing '}'")}function I(){for(var nt,q=[],St=i();nt=f(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)q.push(nt[1]),f(/^,\s*/);if(q.length)return St({type:"keyframe",values:q,declarations:N()})}function et(){var nt=i(),q=f(/^@([-\w]+)?keyframes\s*/);if(q){var St=q[1];if(q=f(/^([-\w]+)\s*/),!q)return l("@keyframes missing name");var lt=q[1];if(!u())return l("@keyframes missing '{'");for(var Rt,Ft=y();Rt=I();)Ft.push(Rt),Ft=Ft.concat(y());return h()?nt({type:"keyframes",name:lt,vendor:St,keyframes:Ft}):l("@keyframes missing '}'")}}function M(){var nt=i(),q=f(/^@supports *([^{]+)/);if(q){var St=gs(q[1]);if(!u())return l("@supports missing '{'");var lt=y().concat(p());return h()?nt({type:"supports",supports:St,rules:lt}):l("@supports missing '}'")}}function Y(){var nt=i(),q=f(/^@host\s*/);if(q){if(!u())return l("@host missing '{'");var St=y().concat(p());return h()?nt({type:"host",rules:St}):l("@host missing '}'")}}function gt(){var nt=i(),q=f(/^@media *([^{]+)/);if(q){var St=gs(q[1]);if(!u())return l("@media missing '{'");var lt=y().concat(p());return h()?nt({type:"media",media:St,rules:lt}):l("@media missing '}'")}}function yt(){var nt=i(),q=f(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return nt({type:"custom-media",name:gs(q[1]),media:gs(q[2])})}function wt(){var nt=i(),q=f(/^@page */);if(q){var St=k()||[];if(!u())return l("@page missing '{'");for(var lt=y(),Rt;Rt=A();)lt.push(Rt),lt=lt.concat(y());return h()?nt({type:"page",selectors:St,declarations:lt}):l("@page missing '}'")}}function Pt(){var nt=i(),q=f(/^@([-\w]+)?document *([^{]+)/);if(q){var St=gs(q[1]),lt=gs(q[2]);if(!u())return l("@document missing '{'");var Rt=y().concat(p());return h()?nt({type:"document",document:lt,vendor:St,rules:Rt}):l("@document missing '}'")}}function It(){var nt=i(),q=f(/^@font-face\s*/);if(q){if(!u())return l("@font-face missing '{'");for(var St=y(),lt;lt=A();)St.push(lt),St=St.concat(y());return h()?nt({type:"font-face",declarations:St}):l("@font-face missing '}'")}}var Xt=At("import"),Wt=At("charset"),se=At("namespace");function At(nt){var q=new RegExp("^@"+nt+"\\s*([^;]+);");return function(){var St=i(),lt=f(q);if(lt){var Rt={type:nt};return Rt[nt]=lt[1].trim(),St(Rt)}}}function _t(){if(s[0]=="@")return et()||gt()||yt()||M()||Xt()||Wt()||se()||Pt()||wt()||Y()||It()}function $(){var nt=i(),q=k();return q?(y(),nt({type:"rule",selectors:q,declarations:N()})):l("selector missing")}return Vo(c())}function gs(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Vo(s,t){var e=s&&typeof s.type=="string",n=e?s:t;for(var r in s){var i=s[r];Array.isArray(i)?i.forEach(function(o){Vo(o,n)}):i&&typeof i=="object"&&Vo(i,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const cu=(s,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([s],{type:`${t};${e}`}):new Blob([s],{type:`${t};charset=${e}`}),uu=s=>new XMLSerializer().serializeToString(s),um=(s,t="image/svg+xml",e="utf-8")=>cu(uu(s),t,e),hu=(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 hm(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 r=globalThis.document.createElement("input");r.setAttribute("type","file"),r.setAttribute("visibility","hidden"),Array.isArray(s)&&s.length>0&&r.setAttribute("accept",s.join(",")),t&&r.setAttribute("multiple","true"),globalThis.addEventListener("focus",()=>{setTimeout(()=>{(!r.files||r.files?.length===0)&&n(new Error("Cancel select"))},1e3)},{once:!0});const i=()=>{if(r.removeEventListener("change",i),!r.files||r.files?.length===0)n(new Error("Cancel select"));else{const o=Array.from(r.files);!s.includes("*")&&o.some(a=>!s.includes(`.${dm(a)}`))&&n(new Error(`Please select files in ${s} format`)),r.remove(),e(o)}};r.addEventListener("change",i),r.click()})}function fm(s,t="text",e){return new Promise((n,r)=>{const i=new FileReader;switch(i.addEventListener("progress",o=>{e?.(o.loaded,o.total)}),i.addEventListener("load",o=>{n(o.target?.result)}),i.addEventListener("error",o=>{r(o)}),t){case"dataURL":i.readAsDataURL(s);break;case"binaryString":i.readAsBinaryString(s);break;case"arrayBuffer":i.readAsArrayBuffer(s);break;case"text":default:i.readAsText(s)}})}const dm=s=>{let t;return s instanceof File?t=s.name:t=s,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function ti(){const s=document.documentElement;return{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,clientX:s.getBoundingClientRect().x,clientY:s.getBoundingClientRect().y}}function fu(){const{clientWidth:s,clientHeight:t}=ti();return{width:s||window.innerWidth,height:t||window.innerHeight}}function pm(s){const{top:t,left:e}=s.getBoundingClientRect(),{scrollLeft:n,scrollTop:r}=ti();return{x:e+n,y:t+r}}function mm(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=ti(),n=e-s;return n<=0?0:t/n*100}function gm(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}=ti();return{x:s.clientX+t,y:s.clientY+e}}function vm(s,t){const e=gm(t),n=pm(s);return{x:e.x-n.x,y:e.y-n.y}}function du(){return typeof window<"u"?window:this||{}}const ym=()=>{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 _m(){return ym()==="macos"}function bm(){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 r=s.indexOf("rv:");return parseInt(s.substring(r+3,s.indexOf(".",r)),10)}const n=s.indexOf("Edge/");return n>0?parseInt(s.substring(n+5,s.indexOf(".",n)),10):-1}const Fo=bm()!==-1;(()=>{const s=du();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!du().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 xm(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let n=100;const r=function(){const i=Math.min(t.clientWidth,s);t.dataset.width=i,t.dataset.rem=n=Math.round(100*(i/s)),t.style.fontSize=n+"px"};r(),window.rem2px=function(i){return i=parseFloat(i),i*n},window.px2rem=function(i){return i=parseFloat(i),i/n},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}function Te(s){return s*Math.PI/180}function we(s){return s*180/Math.PI}function pu(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function Go(s,t,e,n){const r=s-e,i=t-n;return pu(r,i)}function jo(s,t,e,n){const r=e-s,i=n-t;let o=Math.atan2(i,r);return o<0&&(o+=Math.PI*2),o}function Ks(s,t){return{x:Math.cos(s)*t,y:Math.sin(s)*t}}const mu=[1,0,0,1,0,0],gu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class ye{value;matrix3d;isEverTo3d=!1;constructor(t=mu){this.value=Array.from(t),this.matrix3d=this.toMatrix3D()}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return 0}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return 0}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return 1}toMatrix3D(t=this.matrix3d){const e=[this.value[0],this.value[1],0,0,this.value[2],this.value[3],0,0,0,0,1,0,this.value[4],this.value[5],0,1];return t?(t.value=e,t):new hn(e)}unit(){return this.value=Array.from(mu),this.matrix3d=this.toMatrix3D(),this}multiplyPoint(t,e,n=0,r=0){const i=t-n,o=e-r;return t=this.m11*i+this.m21*o+this.m31,e=this.m12*i+this.m22*o+this.m32,{x:t+n,y:e+r}}fromString(t){const e=tu("number",t);return e.length===6?e.forEach((n,r)=>{n.fullMatch&&(this.value[r]=parseFloat(n.fullMatch))}):this.unit(),this}clone(){return new ye(this.value)}multiply(t){const e=this.value;let n;t instanceof ye?n=t.value:n=t;const r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],l=e[0]*n[4]+e[2]*n[5]+e[4],c=e[1]*n[4]+e[3]*n[5]+e[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=l,e[5]=c,this}inverse(){const t=new ye(this.value),e=t.value,n=1/(e[0]*e[3]-e[1]*e[2]),r=e[3]*n,i=-e[1]*n,o=-e[2]*n,a=e[0]*n,l=n*(e[2]*e[5]-e[3]*e[4]),c=n*(e[1]*e[4]-e[0]*e[5]);return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=l,e[5]=c,t}offset(t=0,e=0){return{x:t-this.m31,y:e-this.m32}}translate(t,e){return this.multiply([1,0,0,1,t,e]),this.toMatrix3D(),this}translateTo(t,e){const n=this.offset(t,e);return this.translate(n.x,n.y)}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.isEverTo3d=!0,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.isEverTo3d=!0,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 r=Te(t),i=Math.cos(r),o=Math.sin(r);return this.multiply([i,o,-o,i,e,n]),this.translate(-e,-n),this.toMatrix3D(),this}rotateTo(t,e=0,n=0){const{rotateZ:r}=this.matrix3d.split();return this.rotate(t-r,e,n),this}rotateX(t){return this.isEverTo3d=!0,this.matrix3d.rotate("x",t),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{rotateX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.isEverTo3d=!0,this.matrix3d.rotate("y",t),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{rotateY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.isEverTo3d=!0,this.matrix3d.rotate("z",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.isEverTo3d=!0,this.matrix3d.rotate("x",t).rotate("y",e).rotate("z",n),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,n){const{rotateX:r,rotateY:i,rotateZ:o}=this.matrix3d.split();return this.rotate3d(t-r,e-i,n-o),this}scale(t,e=t,n=0,r=0){return this.translate(n,r),this.multiply([t,0,0,e,0,0]),this.translate(-n,-r),this.toMatrix3D(),this}scaleTo(t,e=t,n=0,r=0){return this.scale(t/this.m11,e/this.m22,n,r)}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.isEverTo3d=!0,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.isEverTo3d=!0,this.matrix3d.scale(t,e,n),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,n=t){const{scaleX:r,scaleY:i,scaleZ:o}=this.matrix3d.split();return this.scale3d(t/r,e/i,n/o),this}skew(t,e=t){const n=Math.tan(Te(t)),r=Math.tan(Te(e));return this.multiply([1,r,n,1,0,0]),this.toMatrix3D(),this}skewTo(t,e=t){return this.skew(t-we(this.m21),e-we(this.m12))}skewX(t){return this.skew(t,we(this.m12))}skewXTo(t){return this.skewTo(t,we(this.m12))}skewY(t){return this.skew(we(this.m21),t)}skewYTo(t){return this.skewTo(we(this.m21),t)}skewZ(t){return this}skewZTo(t){return this}skew3d(t,e,n){return this}skew3dTo(t,e,n){return this}getGroupCoords(t){const e=this.value[0],n=this.value[1],r=this.value[2],i=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],p=t.value[4],f=t.value[5],g=l*h,y=c*u,b=(u*n-e*h)/(y-g),k=(l*n-e*c)/(g-y),A=(u*i-r*h)/(y-g),N=(l*i-r*c)/(g-y),I=(u*(a-f)+h*(p-o))/(y-g),et=(l*(a-f)+c*(p-o))/(g-y),M=[b,k,A,N,I,et];return new ye(M)}toString(){return this.isEverTo3d?this.matrix3d.toString():`matrix(${this.value.map(t=>Ke(t,6)).join(",")})`}toFilter(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.value[0]+", M12="+this.value[2]+", M21="+this.value[1]+", M22="+this.value[3]+", Dx="+this.value[4]+", Dy="+this.value[5]+", sizingmethod='auto expand')"}}class hn{value;constructor(t=gu){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]}unit(){return this.value=Array.from(gu),this}fromString(t){const e=tu("number",t);return e.length===16?e.forEach((n,r)=>{n.fullMatch&&(this.value[r]=parseFloat(n.fullMatch))}):this.unit(),this}toMatrix(t){const{scaleX:e,scaleY:n,skewX:r,skewY:i,x:o,y:a}=this.split(),l=[e,i,r,n,o,a];return t?(t.value=l,t):new ye(l)}multiplyMatrix(t){const e=t.value[0],n=t.value[1],r=t.value[2],i=t.value[3],o=e*this.m11+n*this.m21+r*this.m31+i*this.m41,a=e*this.m12+n*this.m22+r*this.m32+i*this.m42,l=e*this.m13+n*this.m23+r*this.m33+i*this.m43,c=e*this.m14+n*this.m24+r*this.m34+i*this.m44;return new ye([o,a,l,c,0,0])}multiply(t){const e=new ye([t.value[0],t.value[1],t.value[2],t.value[3],0,0]),n=new ye([t.value[4],t.value[5],t.value[6],t.value[7],0,0]),r=new ye([t.value[8],t.value[9],t.value[10],t.value[11],0,0]),i=new ye([t.value[12],t.value[13],t.value[14],t.value[15],0,0]),o=this.multiplyMatrix(e),a=this.multiplyMatrix(n),l=this.multiplyMatrix(r),c=this.multiplyMatrix(i);return this.value[0]=o.value[0],this.value[1]=o.value[1],this.value[2]=o.value[2],this.value[3]=o.value[3],this.value[4]=a.value[0],this.value[5]=a.value[1],this.value[6]=a.value[2],this.value[7]=a.value[3],this.value[8]=l.value[0],this.value[9]=l.value[1],this.value[10]=l.value[2],this.value[11]=l.value[3],this.value[12]=c.value[0],this.value[13]=c.value[1],this.value[14]=c.value[2],this.value[15]=c.value[3],this}translate(t=0,e=0,n=0){return this.multiply(new hn([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 hn([t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]))}rotate(t,e){const n=Te(e),r=Math.sin,i=Math.cos;let o;switch(t){case"x":o=[1,0,0,0,0,i(n),r(n),0,0,-r(n),i(n),0,0,0,0,1];break;case"y":o=[i(n),0,-r(n),0,0,1,0,0,r(n),0,i(n),0,0,0,0,1];break;case"z":o=[i(n),r(n),0,0,-r(n),i(n),0,0,0,0,1,0,0,0,0,1];break}return this.multiply(new hn(o))}toString(){return`matrix3d(${this.value.map(t=>Ke(t,6)).join(",")})`}split(){let t=we(je(Math.asin(-this.m13),-1,1)),e=we(Math.atan2(this.m23,this.m33)),n=we(Math.atan2(this.m12,this.m11));return Math.cos(t)===0&&(e=we(Math.atan2(-this.m31,this.m22)),n=0),{x:this.m41,y:this.m42,z:this.m43,rotateX:e,rotateY:t,rotateZ:n,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12+this.m13*this.m13),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22+this.m23*this.m23),scaleZ:Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),skewX:we(this.m14),skewY:we(this.m24),skewZ:we(this.m34),skewW:this.m44}}inverse(){const t=[],e=this.m11,n=this.m12,r=this.m13,i=this.m14,o=this.m21,a=this.m22,l=this.m23,c=this.m24,u=this.m31,h=this.m32,p=this.m33,f=this.m34,g=this.m41,y=this.m42,b=this.m43,k=this.m44;t[0]=l*f*y-c*p*y+c*h*b-a*f*b-l*h*k+a*p*k,t[1]=i*p*y-r*f*y-i*h*b+n*f*b+r*h*k-n*p*k,t[2]=r*c*y-i*l*y+i*a*b-n*c*b-r*a*k+n*l*k,t[3]=i*l*h-r*c*h-i*a*p+n*c*p+r*a*f-n*l*f;const A=e*t[0]+o*t[1]+u*t[2]+g*t[3];if(A==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*p*g-l*f*g-c*u*b+o*f*b+l*u*k-o*p*k,t[5]=r*f*g-i*p*g+i*u*b-e*f*b-r*u*k+e*p*k,t[6]=i*l*g-r*c*g-i*o*b+e*c*b+r*o*k-e*l*k,t[7]=r*c*u-i*l*u+i*o*p-e*c*p-r*o*f+e*l*f,t[8]=a*f*g-c*h*g+c*u*y-o*f*y-a*u*k+o*h*k,t[9]=i*h*g-n*f*g-i*u*y+e*f*y+n*u*k-e*h*k,t[10]=n*c*g-i*a*g+i*o*y-e*c*y-n*o*k+e*a*k,t[11]=i*a*u-n*c*u-i*o*h+e*c*h+n*o*f-e*a*f,t[12]=l*h*g-a*p*g-l*u*y+o*p*y+a*u*b-o*h*b,t[13]=n*p*g-r*h*g+r*u*y-e*p*y-n*u*b+e*h*b,t[14]=r*a*g-n*l*g-r*o*y+e*l*y+n*o*b-e*a*b,t[15]=n*l*u-r*a*u+r*o*h-e*l*h-n*o*p+e*a*p,this.value=t;const N=1/A;this.value.map(I=>I*N)}}function vu(s){const t=new ye;return s.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,n,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const i=[];for(let o=0,a=r.length;o<a;o++)r[o].trim()&&i.push(parseFloat(""+r[o]));switch(n.toLowerCase()){case"t":case"translate":t.translate(i[0],i[1]);break;case"translatex":t.translateX(i[0]);break;case"translatey":t.translateY(i[0]);break;case"translatez":t.translateZ(i[0]);break;case"translate3d":t.translate3d(i[0],i[1],i[2]);break;case"r":case"rotate":t.rotate(i[0],i[1]??0,i[2]??0);break;case"rotatex":t.rotateX(i[0]);break;case"rotatey":t.rotateY(i[0]);break;case"rotatez":t.rotateZ(i[0]);break;case"rotate3d":t.rotate3d(i[0],i[1],i[2]);break;case"s":case"scale":t.scale(i[0],i[1]??i[0]);break;case"scalex":t.scaleX(i[0]);break;case"scaley":t.scaleY(i[0]);break;case"scalez":t.scaleZ(i[0]);break;case"scale3d":t.scale3d(i[0],i[1],i[2]);break;case"skew":t.skew(i[0],i[1]??0);break;case"skewx":t.skewX(i[0]);break;case"skewy":t.skewY(i[0]);break;case"skewz":t.skewZ(i[0]);break;case"skew3d":t.skew3d(i[0],i[1],i[2]);break;case"m":case"matrix":t.multiply([i[0],i[1],i[2],i[3],i[4],i[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new hn(i)),t.matrix3d.toMatrix(t);break}return""}),t}function Zs(s,t,e,n=0,r=0){const i=new ye;return i.rotate(we(s),n,r),i.multiplyPoint(t,e,n,r)}class W{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=W.getStyle(t.parentElement,"position");W.setStyle(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}W.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:W.getStyle(t,"transform")||""});const r=vu(n.transform),i={};for(let o in e){const a=e[o];switch(o){case"transform":break;case"translate":r.translate(a[0]||0,a[1]||0);break;case"translateTo":r.translateTo(a[0]||0,a[1]||0);break;case"translateX":r.translateX(a||0);break;case"translateXTo":r.translateXTo(a||0);break;case"translateY":r.translateY(a||0);break;case"translateYTo":r.translateYTo(a||0);break;case"translateZ":r.translateZ(a||0);break;case"translateZTo":r.translateZTo(a||0);break;case"translate3d":r.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":r.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?r.rotate(a||0):r.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?r.rotateTo(a||0):r.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":r.rotateX(a||0);break;case"rotateXTo":r.rotateXTo(a||0);break;case"rotateY":r.rotateY(a||0);break;case"rotateYTo":r.rotateYTo(a||0);break;case"rotateZ":r.rotateZ(a||0);break;case"rotateZTo":r.rotateZTo(a||0);break;case"rotate3d":r.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":r.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?r.scale(a||1):r.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?r.scaleTo(a||1):r.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":r.scaleX(a||1);break;case"scaleXTo":r.scaleXTo(a||1);break;case"scaleY":r.scaleY(a||1);break;case"scaleYTo":r.scaleYTo(a||1);break;case"scaleZ":r.scaleZ(a||1);break;case"scaleZTo":r.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?r.scale3d(a||1):r.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?r.scale3dTo(a||1):r.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?r.skew(a||0):r.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?r.skewTo(a||0):r.skewTo(a[0]||0,a[1]||0);break;case"skewX":r.skewX(a||0);break;case"skewXTo":r.skewXTo(a||0);break;case"skewY":r.skewY(a||0);break;case"skewYTo":r.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;default:n.hasOwnProperty(o)||(n[o]=W.getStyle(t,o)),Object.assign(i,{[o]:`${a}`});break}}return Object.assign(i,{transform:r.toString()}),i}static attrsToCanvas(t,e){for(const n in e){const r=e[n];switch(Re(n)){case"fill":r!=="none"&&(t.fillStyle=r);break;case"stroke":r!=="none"&&(t.strokeStyle=r);break;case"stroke-width":t.lineWidth=Number(r);break;case"stroke-linecap":t.lineCap=r;break;case"stroke-linejoin":switch(r){case"round":case"bevel":case"miter":t.lineJoin=r;break;default:t.lineJoin="miter";break}break;case"stroke-miterlimit":t.miterLimit=Number(r);break;case"stroke-opacity":break;case"stroke-dashoffset":t.lineDashOffset=Number(r);break;case"stroke-dasharray":t.setLineDash(r.split(/\s+/).map(i=>Number(i)));break;case"cursor":break;case"font":t.font=r;break;case"font-size":t.font+=` ${r}`;break;case"font-family":t.font+=` ${r}`;break;case"font-weight":break;case"font-style":break;case"text-anchor":switch(r){case"middle":t.textAlign="center";break;case"end":t.textAlign="end";break;case"start":t.textAlign="start";break}break;case"alignment-baseline":switch(r){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":t.textBaseline=r;break;default:t.textBaseline="alphabetic";break}break}}}static getStyle(t,e,n){const r=t;if(getComputedStyle)if(e){e=Re(e);const i=getComputedStyle(r,n).getPropertyPriority(e);return getComputedStyle(r,n).getPropertyValue(e).trim()+(i?"!"+i:"")}else{const i=[],o=getComputedStyle(r,"");for(let a=0;a<o.length;a++)i.push(o[a]+":"+o.getPropertyValue(o[a]));return i.push(...(r.style.cssText||"").split(";")),Object.fromEntries(i.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}else if(t.currentStyle){if(e)return e=nu(e),t.currentStyle[e];{const i=[],o=r.currentStyle;for(let a in o)i.push(a+":"+o[a]);return i.push(...(r.style.cssText||"").split(";")),Object.fromEntries(i.filter(a=>!!a).map(a=>a.split(":").map(l=>l.trim()))||[])}}}static setStyle(t,e,n){if(typeof e=="string"&&n){const r=String(n).toLowerCase().includes("!important")?"important":"";t.style.setProperty(Re(e),n.replace(/!important/i,""),r)}else e instanceof Object&&Object.keys(e).forEach(r=>{const i=String(e[r]).toLowerCase().includes("!important")?"important":"";t.style.setProperty(Re(r),String(e[r]).replace(/!important/i,""),i)})}static setStyleSheet(t,e){let n;if(typeof e=="string"){const i=document.querySelector(e)?.shadowRoot;i?n=i:n=document.querySelector(e)}else n=e;const r=document.createElement("style");if(r.innerHTML=t,n)return n.appendChild(r),()=>{(n instanceof HTMLElement||n instanceof ShadowRoot)&&n.removeChild(r)};{const i=document.styleSheets[0].insertRule(t);return()=>{document.styleSheets[0].deleteRule(i)}}}static toggleClass(t,e,n="toggle"){e.split(/[,\s]+/).forEach(r=>{r.trim()!==""&&t.classList[n](r.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){this.toggleDisplay(t,!0)}static hide(t){this.toggleDisplay(t,!1)}static attribute(t,e,n){let r={};if(e===void 0&&n===void 0){for(let i=0,o=t.attributes,a=o.length;i<a;i++){const l=o[i];l.nodeName&&l.nodeValue&&(r[l.nodeName]=l.nodeValue)}return r}if(typeof e=="string"&&n===void 0)return t.getAttribute(Re(e));typeof e=="object"?r=e:typeof e=="string"&&n!==void 0&&(r[e]=n),Object.entries(r).forEach(([i,o])=>{t.setAttribute(Re(i),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 r={};typeof e=="object"?r=e:typeof e=="string"&&n!==void 0&&(r[e]=n),Object.entries(r).forEach(([i,o])=>{const a=this.fixProp(i);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=nu(e)),(typeof e=="string"||e===void 0)&&n===void 0){const r=Object.assign({},t.dataset);return Object.keys(r).forEach(i=>{if(r[i]?.startsWith("[")||r[i]?.startsWith("{"))try{r[i]=JSON.parse(r[i]||"")}catch{}}),typeof e=="string"?r[e]:r}else{let r={};typeof e=="object"?r=e:typeof e=="string"&&(r[e]=n),Object.entries(r).forEach(([i,o])=>{o!=null?t.dataset[i]=o instanceof Object?JSON.stringify(o):o:delete t.dataset[i]})}}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 r;const i=["click","dblclick","mousedown","mouseup","mousemove"],o=["keydown","keyup","keypress"];typeof e=="string"?i.includes(e)?r=new MouseEvent(e,n):o.includes(e)?r=new KeyboardEvent(e,n):r=new Event(e,n):r=e,t.dispatchEvent(r)}static scriptConvert(t){const e=n=>{const i=n.ownerDocument.createElement("script");i.text=n.text;const o=n.attributes;for(let a=0;a<o.length;a++)i.setAttribute(o[a].name,o[a].value);return i};return t.tagName=="SCRIPT"&&(t=e(t)),t.querySelectorAll&&t.querySelectorAll("script").forEach(n=>{n.parentNode?.replaceChild(e(n),n)}),t}static fragment(t){const e=document.createElement("template");return e.innerHTML=t,e.content.childNodes.forEach(n=>{const r=this.scriptConvert(n);r!=n&&e.content.replaceChild(r,n)}),e.content}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 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 r=0,i=n.length;r<i;r++)n[r].value==e?n[r].selected=!0:n[r].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 r=()=>n>=e.length?(t(),!0):!1;r()||e.forEach(i=>{i.onload=()=>{n+=1,r()}})});static loadScript(t,e=()=>{},n=(r,i,o,a,l)=>{}){const r=document.createElement("script");r.type="text/javascript",r.src=t,r.async=!1,r.onload=e,r.onerror=n,document.body.appendChild(r)}static runInSafe(t){const e=new Proxy(window,{get(n,r,i){if(typeof r=="string"&&["open","location","document"].includes(r))throw new Error(`禁止访问 key: ${r}`);return r==="window"?e:Reflect.get(n,r,i)},set(n,r,i,o){return Reflect.set(n,r,i,o)}});new Function("window",`with(window) { ${t} }`)(e,null)}static dom=new Proxy({},{get(t,e){return function(n={},...r){const i=document.createElement(e);for(const o of Object.keys(n))i.setAttribute(o,n[o]);for(const o of r)typeof o=="string"?i.appendChild(document.createTextNode(o)):i.appendChild(o);return i}}});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){
|
|
40
|
+
`.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},Ps=(s,t)=>(typeof s=="string"&&(s=ia(s)||new RegExp(s)),s.test(t)),Eu=(s,t)=>{if(typeof s=="string"&&(s=ia(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},ku=(s,t)=>{typeof s=="string"&&(s=ia(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 Tu(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function Ou(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function Em(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 km(s){const t=Dn.get(s);if(t)return t;const e=s.replace(/(^\w)/g,function(n){return n.toLowerCase()});return Dn.set(s,e),e}const Ye=(s,t="-")=>{const e=Dn.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}`),""),Dn.set(s,n),n};function ra(s){const t=Dn.get(s);if(t)return t;const e=s.replace(/(^\w|[_-]\w)/g,function(n){return n.slice(-1).toUpperCase()});return Dn.set(s,e),e}function Pu(s){return km(ra(s))}function Tm(s,t,e="0",n="left"){const i=Tu(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 Om(s){const t=typeof s;return t!=="object"?t:Object.prototype.toString.call(s).replace(/^\[object (\S+)\]$/,"$1").toLowerCase()}function Pm(s){return s!=null}function _r(s){return Om(s)==="object"}function Dm(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 Du(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])?Du(s[n],t):s[n];return t.set(s,e),e}function oa(s,t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(_r(t[e])?(typeof s[e]>"u"&&(s[e]={}),oa(s[e],t[e])):typeof s[e]>"u"&&(s[e]=t[e]));return s}function Iu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function hi(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function di(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 Im(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function fi(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const Xe=(s,t,e)=>s<t?t:s>e?e:s,Nm=(s,t,e)=>n=>{const i=Math.min(Math.max(s,n),t);return t-i<e?t:Math.round(i/e)*e};function Mm(s,t=12){return Im(s).toFixed(t)}function qe(s,t=12){return+Mm(s,t)}function Hs(s,t){const e=Eu("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):Pm(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 Nu(s){const t=Eu("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function Am(s=0,t=100){return Math.random()*(t-s)+s}function ee(s=0,t=100){return Math.floor(Am(s,t))}function Rm(s,t){let e=!0;return function(...n){e&&(e=!1,s.apply(this,n),setTimeout(()=>{e=!0},t))}}function $m(s,t){let e;return function(...n){clearTimeout(e),e=setTimeout(()=>{s.apply(this,n)},t)}}class Mu{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 br{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 Au=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Vm(s,t={}){var e=1,n=1;function i(it){var q=it.match(/\n/g);q&&(e+=q.length);var Et=it.lastIndexOf(`
|
|
41
|
+
`);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(),y(q);s.length&&s.charAt(0)!="}"&&(it=xt()||wt());)it!==!1&&(q.push(it),y(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 y(it){var q;for(it=it||[];q=_();)q!==!1&&it.push(q);return it}function _(){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 E(){var it=d(/^([^{]+)/);if(it)return Ds(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 D(){var it=r(),q=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(q){if(q=Ds(q[0]),!d(/^:\s*/))return l("property missing ':'");var Et=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),V=it({type:"declaration",property:q.replace(Au,""),value:Et?Ds(Et[0]).replace(Au,""):""});return d(/^[;\s]*/),V}}function N(){var it=[];if(!u())return l("missing '{'");y(it);for(var q;q=D();)q!==!1&&(it.push(q),y(it));return h()?it:l("missing '}'")}function k(){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:N()})}function Q(){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 V=q[1];if(!u())return l("@keyframes missing '{'");for(var Ut,ge=y();Ut=k();)ge.push(Ut),ge=ge.concat(y());return h()?it({type:"keyframes",name:V,vendor:Et,keyframes:ge}):l("@keyframes missing '}'")}}function A(){var it=r(),q=d(/^@supports *([^{]+)/);if(q){var Et=Ds(q[1]);if(!u())return l("@supports missing '{'");var V=y().concat(f());return h()?it({type:"supports",supports:Et,rules:V}):l("@supports missing '}'")}}function j(){var it=r(),q=d(/^@host\s*/);if(q){if(!u())return l("@host missing '{'");var Et=y().concat(f());return h()?it({type:"host",rules:Et}):l("@host missing '}'")}}function yt(){var it=r(),q=d(/^@media *([^{]+)/);if(q){var Et=Ds(q[1]);if(!u())return l("@media missing '{'");var V=y().concat(f());return h()?it({type:"media",media:Et,rules:V}):l("@media missing '}'")}}function bt(){var it=r(),q=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return it({type:"custom-media",name:Ds(q[1]),media:Ds(q[2])})}function Ct(){var it=r(),q=d(/^@page */);if(q){var Et=E()||[];if(!u())return l("@page missing '{'");for(var V=y(),Ut;Ut=D();)V.push(Ut),V=V.concat(y());return h()?it({type:"page",selectors:Et,declarations:V}):l("@page missing '}'")}}function Rt(){var it=r(),q=d(/^@([-\w]+)?document *([^{]+)/);if(q){var Et=Ds(q[1]),V=Ds(q[2]);if(!u())return l("@document missing '{'");var Ut=y().concat(f());return h()?it({type:"document",document:V,vendor:Et,rules:Ut}):l("@document missing '}'")}}function $t(){var it=r(),q=d(/^@font-face\s*/);if(q){if(!u())return l("@font-face missing '{'");for(var Et=y(),V;V=D();)Et.push(V),Et=Et.concat(y());return h()?it({type:"font-face",declarations:Et}):l("@font-face missing '}'")}}var se=Yt("import"),ne=Yt("charset"),ue=Yt("namespace");function Yt(it){var q=new RegExp("^@"+it+"\\s*([^;]+);");return function(){var Et=r(),V=d(q);if(V){var Ut={type:it};return Ut[it]=V[1].trim(),Et(Ut)}}}function xt(){if(s[0]=="@")return Q()||yt()||bt()||A()||se()||ne()||ue()||Rt()||Ct()||j()||$t()}function wt(){var it=r(),q=E();return q?(y(),it({type:"rule",selectors:q,declarations:N()})):l("selector missing")}return aa(c())}function Ds(s){return s?s.replace(/^\s+|\s+$/g,""):""}function aa(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){aa(o,n)}):r&&typeof r=="object"&&aa(r,n)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}const Ru=(s,t="image/svg+xml",e="utf-8")=>e==="base64"?new Blob([s],{type:`${t};${e}`}):new Blob([s],{type:`${t};charset=${e}`}),$u=s=>new XMLSerializer().serializeToString(s),Lm=(s,t="image/svg+xml",e="utf-8")=>Ru($u(s),t,e),Vu=(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 Fm(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(`.${zm(a)}`))&&n(new Error(`Please select files in ${s} format`)),i.remove(),e(o)}};i.addEventListener("change",r),i.click()})}function Gm(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 zm=s=>{let t;return s instanceof File?t=s.name:t=s,t.match(/\.([0-9a-z]+)(?:[\\?#]|$)/i)?.[1]??""};function xr(){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 Lu(){const{clientWidth:s,clientHeight:t}=xr();return{width:s||window.innerWidth,height:t||window.innerHeight}}function jm(s){const{top:t,left:e,width:n,height:i}=s.getBoundingClientRect(),{scrollLeft:r,scrollTop:o}=xr();return{x:e+r,y:t+o,width:n,height:i}}function Bm(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=xr(),n=e-s;return n<=0?0:t/n*100}function Ym(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}=xr();return{x:s.clientX+t,y:s.clientY+e}}function Xm(s,t){const e=Ym(t),n=jm(s);return{x:e.x-n.x,y:e.y-n.y}}const Hm=()=>{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 Um(){return Hm()==="macos"}function Wm(){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 la=Wm()!==-1;(()=>{const s=Su();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!Su().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 qm(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 Nt(s){return s*Math.PI/180}function ze(s){return s*180/Math.PI}function ca(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function ua(s,t,e,n){const i=s-e,r=t-n;return ca(i,r)}function ha(s,t,e,n){const i=s-e,r=t-n;return i*i+r*r}function In(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 Is(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const pi=Math.PI*2;function Fu(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 Zm(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,y=h*h;let _=f*d-f*y-d*m;_<0&&(_=0),_/=f*y+d*m,_=Math.sqrt(_)*(i===r?-1:1);const E=_*o/a*h,D=_*-a/o*u,N=c*E-l*D+(s+e)/2,k=l*E+c*D+(t+n)/2,Q=(u-E)/o,A=(h-D)/a,j=(-u-E)/o,yt=(-h-D)/a,bt=Fu(1,0,Q,A);let Ct=Fu(Q,A,j,yt);return r===0&&Ct>0&&(Ct-=pi),r===1&&Ct<0&&(Ct+=pi),[N,k,bt,Ct]}function Km(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 Gu(s,t,e,n,i,r,o,a,l){const c=Math.sin(l*pi/360),u=Math.cos(l*pi/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=Zm(s,t,e,n,i,r,o,a,c,u),y=[];let _=m[2],E=m[3];const D=Math.max(Math.ceil(Math.abs(E)/(pi/4)),1);E/=D;for(let N=0;N<D;N++)y.push(Km(_,E)),_+=E;return y.map(N=>{for(let k=0;k<N.length;k+=2){let Q=N[k+0],A=N[k+1];Q*=o,A*=a;const j=u*Q-c*A,yt=c*Q+u*A;N[k+0]=j+m[0],N[k+1]=yt+m[1]}return N})}function da(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 mi(s,t,e,n){return[s,t,e,n,e,n]}const wr={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class yn{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&U.attribute(n,e),n}static createSvgPath(t){return this.createSVGElement("path",{d:t})}static downloadFromSVGElement(t,e="shape"){return Vu(Lm(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Vu(Ru(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return $u(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=Nu(r);for(o=="m"&&a.length>wr[o]&&(e.push([i,...a.splice(0,wr[o])]),o="l",i=i=="m"?"l":"L");a.length;){if(a.length<wr[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${i} } args:{ ${a} }`);e.push([i,...a.splice(0,wr[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 y=m[0];switch(y){case"M":n=m[1],i=m[2];break;case"A":const _=Gu(r,o,m[6],m[7],m[4],m[5],m[1],m[2],m[3]);if(!_.length)continue;_.forEach((N,k)=>{const[Q,A,j,yt,bt,Ct,Rt,$t]=N;m=["C",j,yt,bt,Ct,Rt,$t],k<_.length-1&&e.push(m)});break;case"S":let E=r,D=o;(h=="C"||h=="S")&&(E+=E-c,D+=D-u),m=["C",E,D,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",...da(r,o,a,l,m[1],m[2])];break;case"Q":a=m[1],l=m[2],m=["C",...da(r,o,m[1],m[2],m[3],m[4])];break;case"L":m=["C",...mi(r,o,m[1],m[2])];break;case"H":m=["C",...mi(r,o,m[1],o)];break;case"V":m=["C",...mi(r,o,r,m[1])];break;case"Z":m=["C",...mi(r,o,n,i)];break}h=y,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,y,_,E,D;for(let A=0;A<2;++A){if(A===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}E=f*f-4*d*h,D=Math.sqrt(E),!(E<0)&&(y=(-f+D)/(2*h),y>0&&y<1&&c.push(y),_=(-f-D)/(2*h),_>0&&_<1&&c.push(_))}let N=c.length,k;const Q=N;for(;N--;)m=c[N],k=1-m,u[0][N]=k*k*k*t+3*k*k*m*n+3*k*m*m*r+m*m*m*a,u[1][N]=k*k*k*e+3*k*k*m*i+3*k*m*m*o+m*m*m*l;return u[0][Q]=t,u[1][Q]=e,u[0][Q+1]=a,u[1][Q+1]=l,u[0].length=u[1].length=Q+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 y=0;y<h;y++){const _=u*f[y]+u,E=this.base3(_,t,n,r,a),D=this.base3(_,e,i,o,l),N=E*E+D*D;m+=d[y]*Math.sqrt(N)}return u*m}}const Qt=yn;class zu extends br{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 Jt extends br{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=Em(),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])=>[Ye(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(Du(this))}restore(){const t=this.history.pop();t&&Dm(this,t)}group(...t){this.renderGroup||(this.renderGroup=new zu({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])=>[Ye(n),i]))):typeof t=="string"&&e&&(this.attrs[Ye(t)]=e)}getAttr(t,e){return this.attrs[Ye(t)]||e}hasAttr(t){return!!this.attrs[Ye(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=Nu(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=Qt.relativeSVGPath(e)),Qt.SVGPathDataToD(e)}distance(t){return ua(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=ze(In(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:n,dy:i}=Is(Nt(this.degree),e);this.vx=n,this.vy=i,this.nextFrame()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:n,dy:i}=Is(Nt(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=In(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 fa extends Jt{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}=ms(Nt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=ms(Nt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=ms(Nt(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 ca(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 fa({x:t.x,y:t.y,z:t.z,radius:t.radius,mass:t.mass})}}const Sr=fa;class de extends Jt{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=yn.curveDim(t,e,n,i,r,o,a,l);return new de({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 de({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 de({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 gi=de,ju=[1,0,0,1,0,0],Bu=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class je{value;m13_value=0;m23_value=0;m33_value=1;matrix3d;constructor(t=ju){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 Us(e)}identity(){return this.value=Array.from(ju),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=ku("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 je;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 je?n=t:n=new je(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 je;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=ze(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:ze(Math.atan2(-this.m21,this.m22)),skewY:ze(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,y=c*u,_=(u*n-e*h)/(y-m),E=(l*n-e*c)/(m-y),D=(u*r-i*h)/(y-m),N=(l*r-i*c)/(m-y),k=(u*(a-d)+h*(f-o))/(y-m),Q=(l*(a-d)+c*(f-o))/(m-y),A=[_,E,D,N,k,Q];return new je(A)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>qe(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=Nt(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(Nt(e)),Math.sin(Nt(e)),-Math.sin(Nt(t)),Math.cos(Nt(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 Us{value;is3dSpecial=!1;constructor(t=Bu){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(Bu),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 Us;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=ku("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 je(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=>qe(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=ze(Xe(Math.asin(-this.m13),-1,1)),r=ze(Math.atan2(this.m23,this.m33));Math.cos(Nt(i))===0&&(r=ze(Math.atan2(-this.m31,this.m22)));let o=ze(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:ze(this.m14),skewY:ze(this.m24),skewZ:ze(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,y=this.m42,_=this.m43,E=this.m44;t[0]=l*d*y-c*f*y+c*h*_-a*d*_-l*h*E+a*f*E,t[1]=r*f*y-i*d*y-r*h*_+n*d*_+i*h*E-n*f*E,t[2]=i*c*y-r*l*y+r*a*_-n*c*_-i*a*E+n*l*E,t[3]=r*l*h-i*c*h-r*a*f+n*c*f+i*a*d-n*l*d;const D=e*t[0]+o*t[1]+u*t[2]+m*t[3];if(D==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*f*m-l*d*m-c*u*_+o*d*_+l*u*E-o*f*E,t[5]=i*d*m-r*f*m+r*u*_-e*d*_-i*u*E+e*f*E,t[6]=r*l*m-i*c*m-r*o*_+e*c*_+i*o*E-e*l*E,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*y-o*d*y-a*u*E+o*h*E,t[9]=r*h*m-n*d*m-r*u*y+e*d*y+n*u*E-e*h*E,t[10]=n*c*m-r*a*m+r*o*y-e*c*y-n*o*E+e*a*E,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*y+o*f*y+a*u*_-o*h*_,t[13]=n*f*m-i*h*m+i*u*y-e*f*y-n*u*_+e*h*_,t[14]=i*a*m-n*l*m-i*o*y+e*l*y+n*o*_-e*a*_,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/D)}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,y=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,_=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,E=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,D=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=y,this.m42=_,this.m43=E,this.m44=D,this}translate(t=0,e=0,n=0){return this.multiply(new Us([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 Us([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 Us([1,0,0,Nt(t),0,1,0,Nt(e),0,0,1,Nt(n),0,0,0,1]))}rotate(t=0,e=0,n=0){n&&(this.is3dSpecial=!0);const i=Nt(t),r=Nt(e),o=Nt(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,y=l*h,_=l*f;return this.m11=c*h,this.m21=-c*f,this.m31=u,this.m12=m+y*u,this.m22=d-_*u,this.m32=-l*c,this.m13=_-d*u,this.m23=y+m*u,this.m33=a*c,this}perspective(t){return this.multiply(new Us([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 Sr({x:t,y:e}),o=new Sr({x:t+n,y:e}),a=new Sr({x:t+n,y:e+i}),l=new Sr({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 gi({x:c,y:u,width:h,height:f})}}function Yu(s){const t=new je;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 Us(r)),t.matrix3d.toMatrix(t);break}return""}),t}function ms(s,t,e,n=0,i=0){const r=new je;return r.rotate(ze(s),n,i),r.applyToPoint(t,e,n,i)}function Qm(s){const{tx:t,ty:e,scaleX:n,scaleY:i,degree:r}=oa(s||{},{tx:0,ty:0,scaleX:1,scaleY:1,degree:0}),o=new DOMMatrix([Math.cos(Nt(r))*n,Math.sin(Nt(r))*n,-Math.sin(Nt(r))*i,Math.cos(Nt(r))*i,t,e]);return o.multiplySelf(new DOMMatrix(s?.originMatrix)),o}class U{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=U.getStyle(t.parentElement,"position");U.setStyle(t.parentElement,{position:n=="static"?"relative":n,perspective:e})}U.setStyle(t,{"transform-style":"preserve-3d"})}static convertAttrs(t,e,n={}){n.hasOwnProperty("transform")||Object.assign(n,{transform:U.getStyle(t,"transform")||""});const i=Yu(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]=U.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(Ye(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=Ye(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=Pu(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(Ye(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(Ye(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 na;static updates=new na;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(Ye(e));typeof e=="object"?i=e:typeof e=="string"&&n!==void 0&&(i[e]=n),Object.entries(i).forEach(([r,o])=>{t.setAttribute(Ye(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=Pu(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){
|
|
42
42
|
let output = "";
|
|
43
43
|
function echo(html){
|
|
44
44
|
output += html;
|
|
45
45
|
}
|
|
46
46
|
${t}
|
|
47
47
|
return output;
|
|
48
|
-
})`}static escape(t,e="encode"){const n={"&":"&","<":"<",">":">",'"':""","'":"'"};for(const
|
|
48
|
+
})`}static escape(t,e="encode"){const n={"&":"&","<":"<",">":">",'"':""","'":"'"};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?U.measureText(l,n,i).width:0;for(let u=0,h=a.length;u<h;u++)if(c+=U.measureText(a[u],n,i).width,c>e){r&&(o+=l);break}else o+=a[u];return o}}function Jm(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
|
|
49
49
|
* http://hammerjs.github.io/
|
|
50
50
|
*
|
|
51
51
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
52
|
-
* Licensed under the MIT license */(function(s){(function(t,e,n,
|
|
53
|
-
`+
|
|
54
|
-
`;return function(){var U=new Error("get-stack-trace"),ot=U&&U.stack?U.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ot=t.console&&(t.console.warn||t.console.log);return Ot&&Ot.call(t.console,O,ot),d.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(m){if(m===r||m===null)throw new TypeError("Cannot convert undefined or null to object");for(var _=Object(m),O=1;O<arguments.length;O++){var U=arguments[O];if(U!==r&&U!==null)for(var ot in U)U.hasOwnProperty(ot)&&(_[ot]=U[ot])}return _}:y=Object.assign;var b=g(function(m,_,O){for(var U=Object.keys(_),ot=0;ot<U.length;)(!O||O&&m[U[ot]]===r)&&(m[U[ot]]=_[U[ot]]),ot++;return m},"extend","Use `assign`."),k=g(function(m,_){return b(m,_,!0)},"merge","Use `assign`.");function A(d,m,_){var O=m.prototype,U;U=d.prototype=Object.create(O),U.constructor=d,U._super=O,_&&y(U,_)}function N(d,m){return function(){return d.apply(m,arguments)}}function I(d,m){return typeof d==a?d.apply(m&&m[0]||r,m):d}function et(d,m){return d===r?m:d}function M(d,m,_){f(wt(m),function(O){d.addEventListener(O,_,!1)})}function Y(d,m,_){f(wt(m),function(O){d.removeEventListener(O,_,!1)})}function gt(d,m){for(;d;){if(d==m)return!0;d=d.parentNode}return!1}function yt(d,m){return d.indexOf(m)>-1}function wt(d){return d.trim().split(/\s+/g)}function Pt(d,m,_){if(d.indexOf&&!_)return d.indexOf(m);for(var O=0;O<d.length;){if(_&&d[O][_]==m||!_&&d[O]===m)return O;O++}return-1}function It(d){return Array.prototype.slice.call(d,0)}function Xt(d,m,_){for(var O=[],U=[],ot=0;ot<d.length;){var Ot=m?d[ot][m]:d[ot];Pt(U,Ot)<0&&O.push(d[ot]),U[ot]=Ot,ot++}return _&&(m?O=O.sort(function(_e,Pe){return _e[m]>Pe[m]}):O=O.sort()),O}function Wt(d,m){for(var _,O,U=m[0].toUpperCase()+m.slice(1),ot=0;ot<i.length;){if(_=i[ot],O=_?_+U:m,O in d)return O;ot++}return r}var se=1;function At(){return se++}function _t(d){var m=d.ownerDocument||d;return m.defaultView||m.parentWindow||t}var $=/mobile|tablet|ip(ad|hone|od)|android/i,nt="ontouchstart"in t,q=Wt(t,"PointerEvent")!==r,St=nt&&$.test(navigator.userAgent),lt="touch",Rt="pen",Ft="mouse",ae="kinect",Oe=25,Lt=1,Ae=2,Gt=4,le=8,Ge=1,qt=2,Kt=4,v=8,w=16,P=qt|Kt,R=v|w,F=P|R,K=["x","y"],st=["clientX","clientY"];function G(d,m){var _=this;this.manager=d,this.callback=m,this.element=d.element,this.target=d.options.inputTarget,this.domHandler=function(O){I(d.options.enable,[d])&&_.handler(O)},this.init()}G.prototype={handler:function(){},init:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(_t(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Y(this.element,this.evEl,this.domHandler),this.evTarget&&Y(this.target,this.evTarget,this.domHandler),this.evWin&&Y(_t(this.element),this.evWin,this.domHandler)}};function Q(d){var m,_=d.options.inputClass;return _?m=_:q?m=xa:St?m=vi:nt?m=wa:m=Vt,new m(d,B)}function B(d,m,_){var O=_.pointers.length,U=_.changedPointers.length,ot=m&Lt&&O-U===0,Ot=m&(Gt|le)&&O-U===0;_.isFirst=!!ot,_.isFinal=!!Ot,ot&&(d.session={}),_.eventType=m,rt(d,_),d.emit("hammer.input",_),d.recognize(_),d.session.prevInput=_}function rt(d,m){var _=d.session,O=m.pointers,U=O.length;_.firstInput||(_.firstInput=x(m)),U>1&&!_.firstMultiple?_.firstMultiple=x(m):U===1&&(_.firstMultiple=!1);var ot=_.firstInput,Ot=_.firstMultiple,pe=Ot?Ot.center:ot.center,_e=m.center=D(O);m.timeStamp=u(),m.deltaTime=m.timeStamp-ot.timeStamp,m.angle=z(pe,_e),m.distance=Z(pe,_e),C(_,m),m.offsetDirection=L(m.deltaX,m.deltaY);var Pe=H(m.deltaTime,m.deltaX,m.deltaY);m.overallVelocityX=Pe.x,m.overallVelocityY=Pe.y,m.overallVelocity=c(Pe.x)>c(Pe.y)?Pe.x:Pe.y,m.scale=Ot?pt(Ot.pointers,O):1,m.rotation=Ot?at(Ot.pointers,O):0,m.maxPointers=_.prevInput?m.pointers.length>_.prevInput.maxPointers?m.pointers.length:_.prevInput.maxPointers:m.pointers.length,S(_,m);var is=d.element;gt(m.srcEvent.target,is)&&(is=m.srcEvent.target),m.target=is}function C(d,m){var _=m.center,O=d.offsetDelta||{},U=d.prevDelta||{},ot=d.prevInput||{};(m.eventType===Lt||ot.eventType===Gt)&&(U=d.prevDelta={x:ot.deltaX||0,y:ot.deltaY||0},O=d.offsetDelta={x:_.x,y:_.y}),m.deltaX=U.x+(_.x-O.x),m.deltaY=U.y+(_.y-O.y)}function S(d,m){var _=d.lastInterval||m,O=m.timeStamp-_.timeStamp,U,ot,Ot,pe;if(m.eventType!=le&&(O>Oe||_.velocity===r)){var _e=m.deltaX-_.deltaX,Pe=m.deltaY-_.deltaY,is=H(O,_e,Pe);ot=is.x,Ot=is.y,U=c(is.x)>c(is.y)?is.x:is.y,pe=L(_e,Pe),d.lastInterval=m}else U=_.velocity,ot=_.velocityX,Ot=_.velocityY,pe=_.direction;m.velocity=U,m.velocityX=ot,m.velocityY=Ot,m.direction=pe}function x(d){for(var m=[],_=0;_<d.pointers.length;)m[_]={clientX:l(d.pointers[_].clientX),clientY:l(d.pointers[_].clientY)},_++;return{timeStamp:u(),pointers:m,center:D(m),deltaX:d.deltaX,deltaY:d.deltaY}}function D(d){var m=d.length;if(m===1)return{x:l(d[0].clientX),y:l(d[0].clientY)};for(var _=0,O=0,U=0;U<m;)_+=d[U].clientX,O+=d[U].clientY,U++;return{x:l(_/m),y:l(O/m)}}function H(d,m,_){return{x:m/d||0,y:_/d||0}}function L(d,m){return d===m?Ge:c(d)>=c(m)?d<0?qt:Kt:m<0?v:w}function Z(d,m,_){_||(_=K);var O=m[_[0]]-d[_[0]],U=m[_[1]]-d[_[1]];return Math.sqrt(O*O+U*U)}function z(d,m,_){_||(_=K);var O=m[_[0]]-d[_[0]],U=m[_[1]]-d[_[1]];return Math.atan2(U,O)*180/Math.PI}function at(d,m){return z(m[1],m[0],st)+z(d[1],d[0],st)}function pt(d,m){return Z(m[0],m[1],st)/Z(d[0],d[1],st)}var ct={mousedown:Lt,mousemove:Ae,mouseup:Gt},jt="mousedown",Zt="mousemove mouseup";function Vt(){this.evEl=jt,this.evWin=Zt,this.pressed=!1,G.apply(this,arguments)}A(Vt,G,{handler:function(m){var _=ct[m.type];_&Lt&&m.button===0&&(this.pressed=!0),_&Ae&&m.which!==1&&(_=Gt),this.pressed&&(_&Gt&&(this.pressed=!1),this.callback(this.manager,_,{pointers:[m],changedPointers:[m],pointerType:Ft,srcEvent:m}))}});var xn={pointerdown:Lt,pointermove:Ae,pointerup:Gt,pointercancel:le,pointerout:le},ba={2:lt,3:Rt,4:Ft,5:ae},gi="pointerdown",Uu="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(gi="MSPointerDown",Uu="MSPointerMove MSPointerUp MSPointerCancel");function xa(){this.evEl=gi,this.evWin=Uu,G.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}A(xa,G,{handler:function(m){var _=this.store,O=!1,U=m.type.toLowerCase().replace("ms",""),ot=xn[U],Ot=ba[m.pointerType]||m.pointerType,pe=Ot==lt,_e=Pt(_,m.pointerId,"pointerId");ot&Lt&&(m.button===0||pe)?_e<0&&(_.push(m),_e=_.length-1):ot&(Gt|le)&&(O=!0),!(_e<0)&&(_[_e]=m,this.callback(this.manager,ot,{pointers:_,changedPointers:[m],pointerType:Ot,srcEvent:m}),O&&_.splice(_e,1))}});var b_={touchstart:Lt,touchmove:Ae,touchend:Gt,touchcancel:le},x_="touchstart",w_="touchstart touchmove touchend touchcancel";function Yu(){this.evTarget=x_,this.evWin=w_,this.started=!1,G.apply(this,arguments)}A(Yu,G,{handler:function(m){var _=b_[m.type];if(_===Lt&&(this.started=!0),!!this.started){var O=S_.call(this,m,_);_&(Gt|le)&&O[0].length-O[1].length===0&&(this.started=!1),this.callback(this.manager,_,{pointers:O[0],changedPointers:O[1],pointerType:lt,srcEvent:m})}}});function S_(d,m){var _=It(d.touches),O=It(d.changedTouches);return m&(Gt|le)&&(_=Xt(_.concat(O),"identifier",!0)),[_,O]}var E_={touchstart:Lt,touchmove:Ae,touchend:Gt,touchcancel:le},C_="touchstart touchmove touchend touchcancel";function vi(){this.evTarget=C_,this.targetIds={},G.apply(this,arguments)}A(vi,G,{handler:function(m){var _=E_[m.type],O=T_.call(this,m,_);O&&this.callback(this.manager,_,{pointers:O[0],changedPointers:O[1],pointerType:lt,srcEvent:m})}});function T_(d,m){var _=It(d.touches),O=this.targetIds;if(m&(Lt|Ae)&&_.length===1)return O[_[0].identifier]=!0,[_,_];var U,ot,Ot=It(d.changedTouches),pe=[],_e=this.target;if(ot=_.filter(function(Pe){return gt(Pe.target,_e)}),m===Lt)for(U=0;U<ot.length;)O[ot[U].identifier]=!0,U++;for(U=0;U<Ot.length;)O[Ot[U].identifier]&&pe.push(Ot[U]),m&(Gt|le)&&delete O[Ot[U].identifier],U++;if(pe.length)return[Xt(ot.concat(pe),"identifier",!0),pe]}var k_=2500,Xu=25;function wa(){G.apply(this,arguments);var d=N(this.handler,this);this.touch=new vi(this.manager,d),this.mouse=new Vt(this.manager,d),this.primaryTouch=null,this.lastTouches=[]}A(wa,G,{handler:function(m,_,O){var U=O.pointerType==lt,ot=O.pointerType==Ft;if(!(ot&&O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents)){if(U)O_.call(this,_,O);else if(ot&&P_.call(this,O))return;this.callback(m,_,O)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function O_(d,m){d&Lt?(this.primaryTouch=m.changedPointers[0].identifier,Wu.call(this,m)):d&(Gt|le)&&Wu.call(this,m)}function Wu(d){var m=d.changedPointers[0];if(m.identifier===this.primaryTouch){var _={x:m.clientX,y:m.clientY};this.lastTouches.push(_);var O=this.lastTouches,U=function(){var ot=O.indexOf(_);ot>-1&&O.splice(ot,1)};setTimeout(U,k_)}}function P_(d){for(var m=d.srcEvent.clientX,_=d.srcEvent.clientY,O=0;O<this.lastTouches.length;O++){var U=this.lastTouches[O],ot=Math.abs(m-U.x),Ot=Math.abs(_-U.y);if(ot<=Xu&&Ot<=Xu)return!0}return!1}var qu=Wt(o.style,"touchAction"),Ku=qu!==r,Zu="compute",Qu="auto",Sa="manipulation",sn="none",cr="pan-x",ur="pan-y",yi=D_();function Ea(d,m){this.manager=d,this.set(m)}Ea.prototype={set:function(d){d==Zu&&(d=this.compute()),Ku&&this.manager.element.style&&yi[d]&&(this.manager.element.style[qu]=d),this.actions=d.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var d=[];return f(this.manager.recognizers,function(m){I(m.options.enable,[m])&&(d=d.concat(m.getTouchAction()))}),I_(d.join(" "))},preventDefaults:function(d){var m=d.srcEvent,_=d.offsetDirection;if(this.manager.session.prevented){m.preventDefault();return}var O=this.actions,U=yt(O,sn)&&!yi[sn],ot=yt(O,ur)&&!yi[ur],Ot=yt(O,cr)&&!yi[cr];if(U){var pe=d.pointers.length===1,_e=d.distance<2,Pe=d.deltaTime<250;if(pe&&_e&&Pe)return}if(!(Ot&&ot)&&(U||ot&&_&P||Ot&&_&R))return this.preventSrc(m)},preventSrc:function(d){this.manager.session.prevented=!0,d.preventDefault()}};function I_(d){if(yt(d,sn))return sn;var m=yt(d,cr),_=yt(d,ur);return m&&_?sn:m||_?m?cr:ur:yt(d,Sa)?Sa:Qu}function D_(){if(!Ku)return!1;var d={},m=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(_){d[_]=m?t.CSS.supports("touch-action",_):!0}),d}var _i=1,Ue=2,wn=4,As=8,ys=As,hr=16,rs=32;function _s(d){this.options=y({},this.defaults,d||{}),this.id=At(),this.manager=null,this.options.enable=et(this.options.enable,!0),this.state=_i,this.simultaneous={},this.requireFail=[]}_s.prototype={defaults:{},set:function(d){return y(this.options,d),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(d){if(p(d,"recognizeWith",this))return this;var m=this.simultaneous;return d=bi(d,this),m[d.id]||(m[d.id]=d,d.recognizeWith(this)),this},dropRecognizeWith:function(d){return p(d,"dropRecognizeWith",this)?this:(d=bi(d,this),delete this.simultaneous[d.id],this)},requireFailure:function(d){if(p(d,"requireFailure",this))return this;var m=this.requireFail;return d=bi(d,this),Pt(m,d)===-1&&(m.push(d),d.requireFailure(this)),this},dropRequireFailure:function(d){if(p(d,"dropRequireFailure",this))return this;d=bi(d,this);var m=Pt(this.requireFail,d);return m>-1&&this.requireFail.splice(m,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(d){return!!this.simultaneous[d.id]},emit:function(d){var m=this,_=this.state;function O(U){m.manager.emit(U,d)}_<As&&O(m.options.event+Ju(_)),O(m.options.event),d.additionalEvent&&O(d.additionalEvent),_>=As&&O(m.options.event+Ju(_))},tryEmit:function(d){if(this.canEmit())return this.emit(d);this.state=rs},canEmit:function(){for(var d=0;d<this.requireFail.length;){if(!(this.requireFail[d].state&(rs|_i)))return!1;d++}return!0},recognize:function(d){var m=y({},d);if(!I(this.options.enable,[this,m])){this.reset(),this.state=rs;return}this.state&(ys|hr|rs)&&(this.state=_i),this.state=this.process(m),this.state&(Ue|wn|As|hr)&&this.tryEmit(m)},process:function(d){},getTouchAction:function(){},reset:function(){}};function Ju(d){return d&hr?"cancel":d&As?"end":d&wn?"move":d&Ue?"start":""}function th(d){return d==w?"down":d==v?"up":d==qt?"left":d==Kt?"right":""}function bi(d,m){var _=m.manager;return _?_.get(d):d}function Ze(){_s.apply(this,arguments)}A(Ze,_s,{defaults:{pointers:1},attrTest:function(d){var m=this.options.pointers;return m===0||d.pointers.length===m},process:function(d){var m=this.state,_=d.eventType,O=m&(Ue|wn),U=this.attrTest(d);return O&&(_&le||!U)?m|hr:O||U?_&Gt?m|As:m&Ue?m|wn:Ue:rs}});function xi(){Ze.apply(this,arguments),this.pX=null,this.pY=null}A(xi,Ze,{defaults:{event:"pan",threshold:10,pointers:1,direction:F},getTouchAction:function(){var d=this.options.direction,m=[];return d&P&&m.push(ur),d&R&&m.push(cr),m},directionTest:function(d){var m=this.options,_=!0,O=d.distance,U=d.direction,ot=d.deltaX,Ot=d.deltaY;return U&m.direction||(m.direction&P?(U=ot===0?Ge:ot<0?qt:Kt,_=ot!=this.pX,O=Math.abs(d.deltaX)):(U=Ot===0?Ge:Ot<0?v:w,_=Ot!=this.pY,O=Math.abs(d.deltaY))),d.direction=U,_&&O>m.threshold&&U&m.direction},attrTest:function(d){return Ze.prototype.attrTest.call(this,d)&&(this.state&Ue||!(this.state&Ue)&&this.directionTest(d))},emit:function(d){this.pX=d.deltaX,this.pY=d.deltaY;var m=th(d.direction);m&&(d.additionalEvent=this.options.event+m),this._super.emit.call(this,d)}});function Ca(){Ze.apply(this,arguments)}A(Ca,Ze,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[sn]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.scale-1)>this.options.threshold||this.state&Ue)},emit:function(d){if(d.scale!==1){var m=d.scale<1?"in":"out";d.additionalEvent=this.options.event+m}this._super.emit.call(this,d)}});function Ta(){_s.apply(this,arguments),this._timer=null,this._input=null}A(Ta,_s,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Qu]},process:function(d){var m=this.options,_=d.pointers.length===m.pointers,O=d.distance<m.threshold,U=d.deltaTime>m.time;if(this._input=d,!O||!_||d.eventType&(Gt|le)&&!U)this.reset();else if(d.eventType&Lt)this.reset(),this._timer=h(function(){this.state=ys,this.tryEmit()},m.time,this);else if(d.eventType&Gt)return ys;return rs},reset:function(){clearTimeout(this._timer)},emit:function(d){this.state===ys&&(d&&d.eventType&Gt?this.manager.emit(this.options.event+"up",d):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function ka(){Ze.apply(this,arguments)}A(ka,Ze,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[sn]},attrTest:function(d){return this._super.attrTest.call(this,d)&&(Math.abs(d.rotation)>this.options.threshold||this.state&Ue)}});function Oa(){Ze.apply(this,arguments)}A(Oa,Ze,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:P|R,pointers:1},getTouchAction:function(){return xi.prototype.getTouchAction.call(this)},attrTest:function(d){var m=this.options.direction,_;return m&(P|R)?_=d.overallVelocity:m&P?_=d.overallVelocityX:m&R&&(_=d.overallVelocityY),this._super.attrTest.call(this,d)&&m&d.offsetDirection&&d.distance>this.options.threshold&&d.maxPointers==this.options.pointers&&c(_)>this.options.velocity&&d.eventType&Gt},emit:function(d){var m=th(d.offsetDirection);m&&this.manager.emit(this.options.event+m,d),this.manager.emit(this.options.event,d)}});function wi(){_s.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}A(wi,_s,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Sa]},process:function(d){var m=this.options,_=d.pointers.length===m.pointers,O=d.distance<m.threshold,U=d.deltaTime<m.time;if(this.reset(),d.eventType&Lt&&this.count===0)return this.failTimeout();if(O&&U&&_){if(d.eventType!=Gt)return this.failTimeout();var ot=this.pTime?d.timeStamp-this.pTime<m.interval:!0,Ot=!this.pCenter||Z(this.pCenter,d.center)<m.posThreshold;this.pTime=d.timeStamp,this.pCenter=d.center,!Ot||!ot?this.count=1:this.count+=1,this._input=d;var pe=this.count%m.taps;if(pe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=ys,this.tryEmit()},m.interval,this),Ue):ys}return rs},failTimeout:function(){return this._timer=h(function(){this.state=rs},this.options.interval,this),rs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ys&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function bs(d,m){return m=m||{},m.recognizers=et(m.recognizers,bs.defaults.preset),new Pa(d,m)}bs.VERSION="2.0.7",bs.defaults={domEvents:!1,touchAction:Zu,enable:!0,inputTarget:null,inputClass:null,preset:[[ka,{enable:!1}],[Ca,{enable:!1},["rotate"]],[Oa,{direction:P}],[xi,{direction:P},["swipe"]],[wi],[wi,{event:"doubletap",taps:2},["tap"]],[Ta]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var N_=1,eh=2;function Pa(d,m){this.options=y({},bs.defaults,m||{}),this.options.inputTarget=this.options.inputTarget||d,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=d,this.input=Q(this),this.touchAction=new Ea(this,this.options.touchAction),sh(this,!0),f(this.options.recognizers,function(_){var O=this.add(new _[0](_[1]));_[2]&&O.recognizeWith(_[2]),_[3]&&O.requireFailure(_[3])},this)}Pa.prototype={set:function(d){return y(this.options,d),d.touchAction&&this.touchAction.update(),d.inputTarget&&(this.input.destroy(),this.input.target=d.inputTarget,this.input.init()),this},stop:function(d){this.session.stopped=d?eh:N_},recognize:function(d){var m=this.session;if(!m.stopped){this.touchAction.preventDefaults(d);var _,O=this.recognizers,U=m.curRecognizer;(!U||U&&U.state&ys)&&(U=m.curRecognizer=null);for(var ot=0;ot<O.length;)_=O[ot],m.stopped!==eh&&(!U||_==U||_.canRecognizeWith(U))?_.recognize(d):_.reset(),!U&&_.state&(Ue|wn|As)&&(U=m.curRecognizer=_),ot++}},get:function(d){if(d instanceof _s)return d;for(var m=this.recognizers,_=0;_<m.length;_++)if(m[_].options.event==d)return m[_];return null},add:function(d){if(p(d,"add",this))return this;var m=this.get(d.options.event);return m&&this.remove(m),this.recognizers.push(d),d.manager=this,this.touchAction.update(),d},remove:function(d){if(p(d,"remove",this))return this;if(d=this.get(d),d){var m=this.recognizers,_=Pt(m,d);_!==-1&&(m.splice(_,1),this.touchAction.update())}return this},on:function(d,m){if(d!==r&&m!==r){var _=this.handlers;return f(wt(d),function(O){_[O]=_[O]||[],_[O].push(m)}),this}},off:function(d,m){if(d!==r){var _=this.handlers;return f(wt(d),function(O){m?_[O]&&_[O].splice(Pt(_[O],m),1):delete _[O]}),this}},emit:function(d,m){this.options.domEvents&&A_(d,m);var _=this.handlers[d]&&this.handlers[d].slice();if(!(!_||!_.length)){m.type=d,m.preventDefault=function(){m.srcEvent.preventDefault()};for(var O=0;O<_.length;)_[O](m),O++}},destroy:function(){this.element&&sh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function sh(d,m){var _=d.element;if(_.style){var O;f(d.options.cssProps,function(U,ot){O=Wt(_.style,ot),m?(d.oldCssProps[O]=_.style[O],_.style[O]=U):_.style[O]=d.oldCssProps[O]||""}),m||(d.oldCssProps={})}}function A_(d,m){var _=e.createEvent("Event");_.initEvent(d,!0,!0),_.gesture=m,m.target.dispatchEvent(_)}y(bs,{INPUT_START:Lt,INPUT_MOVE:Ae,INPUT_END:Gt,INPUT_CANCEL:le,STATE_POSSIBLE:_i,STATE_BEGAN:Ue,STATE_CHANGED:wn,STATE_ENDED:As,STATE_RECOGNIZED:ys,STATE_CANCELLED:hr,STATE_FAILED:rs,DIRECTION_NONE:Ge,DIRECTION_LEFT:qt,DIRECTION_RIGHT:Kt,DIRECTION_UP:v,DIRECTION_DOWN:w,DIRECTION_HORIZONTAL:P,DIRECTION_VERTICAL:R,DIRECTION_ALL:F,Manager:Pa,Input:G,TouchAction:Ea,TouchInput:vi,MouseInput:Vt,PointerEventInput:xa,TouchMouseInput:wa,SingleTouchInput:Yu,Recognizer:_s,AttrRecognizer:Ze,Tap:wi,Pan:xi,Swipe:Oa,Pinch:Ca,Rotate:ka,Press:Ta,on:M,off:Y,each:f,merge:k,extend:b,assign:y,inherit:A,bindFn:N,prefixed:Wt});var M_=typeof t<"u"?t:typeof self<"u"?self:{};M_.Hammer=bs,typeof r=="function"&&r.amd?r(function(){return bs}):s.exports?s.exports=bs:t[n]=bs})(window,document,"Hammer")})(yu);var Sm=yu.exports;const Em=wm(Sm),Qn=Math.PI*2;function _u(s,t,e,n){const r=s*n-t*e<0?-1:1;let i=s*e+t*n;return i>1&&(i=1),i<-1&&(i=-1),r*Math.acos(i)}function Cm(s,t,e,n,r,i,o,a,l,c){const u=c*(s-e)/2+l*(t-n)/2,h=-l*(s-e)/2+c*(t-n)/2,p=o*o,f=a*a,g=u*u,y=h*h;let b=p*f-p*y-f*g;b<0&&(b=0),b/=p*y+f*g,b=Math.sqrt(b)*(r===i?-1:1);const k=b*o/a*h,A=b*-a/o*u,N=c*k-l*A+(s+e)/2,I=l*k+c*A+(t+n)/2,et=(u-k)/o,M=(h-A)/a,Y=(-u-k)/o,gt=(-h-A)/a,yt=_u(1,0,et,M);let wt=_u(et,M,Y,gt);return i===0&&wt>0&&(wt-=Qn),i===1&&wt<0&&(wt+=Qn),[N,I,yt,wt]}function Tm(s,t){const e=1.3333333333333333*Math.tan(t/4),n=Math.cos(s),r=Math.sin(s),i=Math.cos(s+t),o=Math.sin(s+t);return[n,r,n-r*e,r+n*e,i+o*e,o-i*e,i,o]}function bu(s,t,e,n,r,i,o,a,l){const c=Math.sin(l*Qn/360),u=Math.cos(l*Qn/360),h=u*(s-e)/2+c*(t-n)/2,p=-c*(s-e)/2+u*(t-n)/2;if(h===0&&p===0)return[];if(o===0||a===0)return[];o=Math.abs(o),a=Math.abs(a);const f=h*h/(o*o)+p*p/(a*a);f>1&&(o*=Math.sqrt(f),a*=Math.sqrt(f));const g=Cm(s,t,e,n,r,i,o,a,c,u),y=[];let b=g[2],k=g[3];const A=Math.max(Math.ceil(Math.abs(k)/(Qn/4)),1);k/=A;for(let N=0;N<A;N++)y.push(Tm(b,k)),b+=k;return y.map(N=>{for(let I=0;I<N.length;I+=2){let et=N[I+0],M=N[I+1];et*=o,M*=a;const Y=u*et-c*M,gt=c*et+u*M;N[I+0]=Y+g[0],N[I+1]=gt+g[1]}return N})}function zo(s,t,e,n,r,i){return[s/3+.6666666666666666*e,t/3+.6666666666666666*n,r/3+.6666666666666666*e,i/3+.6666666666666666*n,r,i]}function Jn(s,t,e,n){return[s,t,e,n,e,n]}const ei={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class Qs{static createSVGElement(t="path",e){const n=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&W.attribute(n,e),n}static createSvgPath(t){return this.createSVGElement("path",{d:t})}static downloadFromSVGElement(t,e="shape"){return hu(um(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return hu(cu(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return uu(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,r,i)=>{let o=r.toLowerCase();const a=ou(i);for(o=="m"&&a.length>ei[o]&&(e.push([r,...a.splice(0,ei[o])]),o="l",r=r=="m"?"l":"L");a.length;){if(a.length<ei[o])throw new Error(`parseSVGPath substring:{ ${n} } command:{ ${r} } args:{ ${a} }`);e.push([r,...a.splice(0,ei[o])])}return o=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,n=0,r=0,i=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]+=r,o[7]+=i;break;case"v":o[1]+=i;break;case"h":o[1]+=r;break;default:for(let c=1;c<o.length;)o[c++]+=r,o[c++]+=i}switch(l){case"Z":r=e,i=n;break;case"H":r=o[1];break;case"V":i=o[1];break;case"M":r=e=o[1],i=n=o[2];break;default:r=o[o.length-2],i=o[o.length-1]}return o})}static relativeSVGPath(t){let e=0,n=0,r=0,i=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]-=r,o[7]-=i;break;case"V":o[1]-=i;break;case"H":o[1]-=r;break;default:for(let c=1;c<o.length;)o[c++]-=r,o[c++]-=i}switch(l){case"z":r=e,i=n;break;case"h":r+=o[1];break;case"v":i+=o[1];break;case"m":r+=o[1],i+=o[2],e+=o[1],n+=o[2];break;default:r+=o[o.length-2],i+=o[o.length-1]}return o})}static normalizeSVGPath(t){let e=[],n=0,r=0,i=0,o=0,a=0,l=0,c=0,u=0,h;for(let p=0,f=t.length;p<f;p++){let g=t[p];const y=g[0];switch(y){case"M":n=g[1],r=g[2];break;case"A":const b=bu(i,o,g[6],g[7],g[4],g[5],g[1],g[2],g[3]);if(!b.length)continue;b.forEach((N,I)=>{const[et,M,Y,gt,yt,wt,Pt,It]=N;g=["C",Y,gt,yt,wt,Pt,It],I<b.length-1&&e.push(g)});break;case"S":let k=i,A=o;(h=="C"||h=="S")&&(k+=k-c,A+=A-u),g=["C",k,A,g[1],g[2],g[3],g[4]];break;case"T":h=="Q"||h=="T"?(a=i*2-a,l=o*2-l):(a=i,l=o),g=["C",...zo(i,o,a,l,g[1],g[2])];break;case"Q":a=g[1],l=g[2],g=["C",...zo(i,o,g[1],g[2],g[3],g[4])];break;case"L":g=["C",...Jn(i,o,g[1],g[2])];break;case"H":g=["C",...Jn(i,o,g[1],o)];break;case"V":g=["C",...Jn(i,o,i,g[1])];break;case"Z":g=["C",...Jn(i,o,n,r)];break}h=y,i=g[g.length-2],o=g[g.length-1],g.length>4?(c=g[g.length-4],u=g[g.length-3]):(c=i,u=o),e.push(g)}return e}static catmullRom2bezier(t){let e=[];for(let n=0,r=t.length;r-2>n;n+=2){let i;n==0?i=[{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]}]:r-4==n?i=[{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]}]:i=[{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:i[1].x,y:i[1].y},{x:(-i[0].x+6*i[1].x+i[2].x)/6,y:(-i[0].y+6*i[1].y+i[2].y)/6},{x:(i[1].x+6*i[2].x-i[3].x)/6,y:(i[1].y+6*i[2].y-i[3].y)/6},{x:i[2].x,y:i[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],r;for(let i=0,o=t.length;i<o;i++){let a=t[i];switch(a[0]){case"M":n=["L",a[1],a[2]],e.push(a);break;case"Z":e.push(n);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",a[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.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,r=0,i=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?(r=2*Number(n[c.x+2])-Number(n[c.x]),i=2*Number(n[c.x+3])-Number(n[c.x+1])):(r=Number(n[n.length-2]),i=Number(n[n.length-1]))),l.splice(1,0,r,i)),n=l}return t}static curveDim(t,e,n,r,i,o,a,l){const c=[],u=[[],[]];let h,p,f,g,y,b,k,A;for(let M=0;M<2;++M){if(M===0?(p=6*t-12*n+6*i,h=-3*t+9*n-9*i+3*a,f=3*n-3*t):(p=6*e-12*r+6*o,h=-3*e+9*r-9*o+3*l,f=3*r-3*e),Math.abs(h)<1e-12){if(Math.abs(p)<1e-12)continue;g=-f/p,g>0&&g<1&&c.push(g);continue}k=p*p-4*f*h,A=Math.sqrt(k),!(k<0)&&(y=(-p+A)/(2*h),y>0&&y<1&&c.push(y),b=(-p-A)/(2*h),b>0&&b<1&&c.push(b))}let N=c.length,I;const et=N;for(;N--;)g=c[N],I=1-g,u[0][N]=I*I*I*t+3*I*I*g*n+3*I*g*g*i+g*g*g*a,u[1][N]=I*I*I*e+3*I*I*g*r+3*I*g*g*o+g*g*g*l;return u[0][et]=t,u[1][et]=e,u[0][et+1]=a,u[1][et+1]=l,u[0].length=u[1].length=et+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,r,i){const o=-3*e+9*n-9*r+3*i,a=t*o+6*e-12*n+6*r;return t*a-3*e+3*n}static bezlen(t,e,n,r,i,o,a,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,h=12,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let g=0;for(let y=0;y<h;y++){const b=u*p[y]+u,k=this.base3(b,t,n,i,a),A=this.base3(b,e,r,o,l),N=k*k+A*A;g+=f[y]*Math.sqrt(N)}return u*g}}const Bt=Qs;class ue extends Lo{id;x;prevX;y;prevY;degree;prevDegree;scaleOnOrigin;prevScaleOnOrigin;skewDegreeOnOrigin;prevSkewDegreeOnOrigin;vx;vy;ax;ay;mass;attrs;enableDrag;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;isShow=!0;now=new Date().getTime();frameRate=60;strokeArmyAnts;strokeArmyAntsOffset=0;history=[];path2d=new Path2D;el;pathd;constructor(t){super(),this.id=tm(),this.prevX=this.x=t?.x||0,this.prevY=this.y=t?.y||0,this.prevDegree=this.degree=t?.degree||0,this.prevScaleOnOrigin=this.scaleOnOrigin=t?.scaleOnOrigin||1,this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin=t?.skewDegreeOnOrigin||0,this.vx=t?.vx||0,this.vy=t?.vy||0,this.ax=t?.ax||0,this.ay=t?.ay||0,this.mass=t?.mass||0,this.attrs=Object.assign({paintOrder:"stroke",stroke:"none",fill:"none"},Object.fromEntries(Object.entries(t?.attrs||{}).map(([e,n])=>[Re(e),n]))),this.enableDrag=t?.enableDrag||!1,this.targetToAfterDragFree=t?.targetToAfterDragFree,this.followMouse=t?.followMouse||!1,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!0,this.strokeArmyAnts=t?.strokeArmyAnts||!1}save(){this.history.push(iu(this))}restore(){const t=this.history.pop();t&&im(this,t)}setAttr(t,e){$o(t)?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([n,r])=>[Re(n),r]))):typeof t=="string"&&e&&(this.attrs[Re(t)]=e)}getAttr(t,e){return this.attrs[Re(t)]||e}hasAttr(t){return!!this.attrs[Re(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");this.setAttr("stroke-dasharray",e);const n=ou(e);this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>n.reduce((r,i)=>r+i,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=Bt.relativeSVGPath(e)),Bt.SVGPathDataToD(e)}distanceTo(t){return Go(this.x,this.y,t.x,t.y)}angleTo(t){return this.degree=we(jo(this.x,this.y,t.x,t.y)),this.degree}followTo(t,e=3){const n=this.angleTo(t),{x:r,y:i}=Ks(Te(n),e);this.vx=r,this.vy=i,this.nextFrame()}followAccelerationTo(t,e=.05){const n=this.angleTo(t),{x:r,y:i}=Ks(Te(n),e);this.ax=r,this.ay=i,this.nextFrame()}nextFrame(t){const e=t?.gravity??0,n=t?.friction??0;if(this.vx+=this.ax,this.vy+=this.ay,this.vy+=e,n>0){const r=Math.atan2(this.vy,this.vx);let i=Math.sqrt(this.vx*this.vx+this.vy*this.vy);i>n?i-=n:i=0,this.vx=Math.cos(r)*i,this.vy=Math.sin(r)*i}this.x+=this.vx,this.y+=this.vy}nextFrameEaseTo(t,e){const n=e?.gravity??0,r=e?.friction??1,i=e?.easing??.05,{dx:o,dy:a}=this.centerDiff,l=t.x-this.x-o,c=t.y-this.y-a;this.vx=l*i,this.vy=c*i,this.vy+=n,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}nextFrameSpringTo(t,e){const n=e?.gravity??0,r=e?.friction??.95,i=e?.spring??.03,{dx:o,dy:a}=this.centerDiff;(Array.isArray(t)?t:[t]).forEach(c=>{const u=c.x-this.x-o,h=c.y-this.y-a,p=u*i,f=h*i;this.vx+=p,this.vy+=f}),this.vy+=n,this.vx*=r,this.vy*=r,this.x+=this.vx,this.y+=this.vy}static nextFrameSpringConnect(t,e){const n=e?.springLength??100,r=e?.spring??.03,i=e?.gravity??0,o=e?.friction??.95;t.forEach(a=>{a.isDragging||t.filter(l=>l.id!==a.id).forEach(l=>{const c=a.angleTo(l);a.nextFrameSpringTo(new xu({x:l.x-Math.cos(Te(c))*n,y:l.y-Math.sin(Te(c))*n}),{spring:r,gravity:i,friction:o})})})}}class $e extends ue{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,r,i,o,a,l){const c=Qs.curveDim(t,e,n,r,i,o,a,l);return new $e({x:c.min.x,y:c.min.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y})}getBoundingClientRect(){return this}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 $e({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 si=$e;class he extends ue{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return new $e({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()}toArray(){return[this.x,this.y,this.radius]}setX(t){this.x=t}setY(t){this.y=t}setXY(t,e){this.x=t,this.y=e}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius}midPointBtw(t){return new he({x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2})}cross(t){const e=this.x,n=this.y;return this.x=n*t.x-e*t.y,this.y=e*t.y-n*t.x,this}normalize(t=1){const e=pu(this.x,this.y);if(e){const n=t/e;this.x*=n,this.y*=n}return this}reflect(t,e){const n=t.x*e.x+t.y*e.y;return this.x=t.x-2*n*e.x,this.y=t.y-2*n*e.y,this}clone(t){return new he({x:t.x,y:t.y,radius:t.radius})}nextFrameCollisionTo(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const i=Math.atan2(n,e),o={x:0,y:0},a=Zs(-i,e,n),l=Zs(-i,this.vx,this.vy),c=Zs(-i,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),p=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*p,a.x+=c.x/h*p;const f=Zs(i,o.x,o.y),g=Zs(i,a.x,a.y);t.x=this.x+g.x,t.y=this.y+g.y,this.x=this.x+f.x,this.y=this.y+f.y;const y=Zs(i,l.x,l.y),b=Zs(i,c.x,c.y);this.vx=y.x,this.vy=y.y,t.vx=b.x,t.vy=b.y}}nextFrameBounce(t,e){const n=e?.bounce??-1,r=t.x,i=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<r&&(this.x=r+this.radius,this.vx*=n),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=n):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=n)}}const xu=he;class km{constructor(){}static getFormatKeyNames(t){const e=_m(),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(Ro(t.key)):Array.isArray(t.key)&&(t.key.map(r=>Ro(r)),n.push(...t.key)),n}static matchKeyScheme(t,e){const n=t.ctrl??!1,r=t.shift??!1,i=t.alt??!1;if(t.exact)return(n===e.metaKey||n===e.ctrlKey)&&r===e.shiftKey&&i===e.altKey;const o=[];return n&&o.push(n===e.metaKey||n===e.ctrlKey),r&&o.push(r===e.shiftKey),i&&o.push(i===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 r=!1;const i=this.getFormatKeyNames(t),o=a=>{if(a.stopPropagation(),!r&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&i.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=i,e.pause=()=>r=!0,e.restart=()=>r=!1,e.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),e}}let ze;const fn=[];class oe extends Lo{container;width;height;mousePoint;hammer;domEventBusRemoves=[];constructor(t=document.documentElement,e=!0){super(),this.container=t,this.width=this.container.clientWidth,this.height=this.container.clientHeight,this.hammer=new Em(this.container),this.mousePoint=new he({x:0,y:0}),e&&this.start()}emitDebounce=lm((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(ze)return ze;ze=new oe,window.addEventListener("hashchange",()=>{ze.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{ze.emit("popstate")}),ze.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{hm().then(e=>fm(e[0])).then(e=>{ze.emit("openFile",e)}).catch(e=>{ze.emit("openFileError",e)})}),ze.registerMatchMediaChange("(prefers-color-scheme: dark)");const t=()=>fn.forEach(e=>e());return ze.registerGlobalScrollChange=e=>{fn.push(e),fn.length==1&&document.addEventListener("scroll",t)},ze.removeGlobalScrollChange=e=>{const n=fn.findIndex(r=>r==e);n>=0&&(fn.splice(n,1),fn.length==0&&document.removeEventListener("scroll",t))},ze}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=vm(this.container,t);return this.mousePoint.x=e.x,this.mousePoint.y=e.y,e}registerMouseEventListeners(){const t=$=>{this.emit("mouseDown",$),this.container.style.userSelect="none"},e=$=>{this.emit("mouseUp",$),this.container.style.userSelect=""},n=$=>{this.emit("mouseMove",$)},r=$=>{this.emit("mouseOver",$)},i=$=>{this.emit("mouseOut",$),this.container.style.userSelect=""},o=$=>{this.emit("mouseClick",$)},a=$=>{this.emit("mouseDoubleClick",$)},l=$=>{this.emit("mouseWheel",$)},c=$=>{this.emit("mouseContextMenu",$)},u=$=>{this.emit("touchStart",$),this.container.style.userSelect="none"},h=$=>{this.emit("touchEnd",$),this.container.style.userSelect=""},p=$=>{this.emit("touchCancel",$),this.container.style.userSelect=""},f=$=>{this.emit("touchMove",$)},g=$=>{this.emit("pointerDown",$),this.container.style.userSelect="none"},y=$=>{this.emit("pointerUp",$),this.container.style.userSelect=""},b=$=>{this.emit("pointerCancel",$),this.container.style.userSelect=""},k=$=>{this.emit("pointerMove",$)},A=$=>{this.emit("pan",$)},N=$=>{this.emit("panStart",$),this.container.style.userSelect="none"},I=$=>{this.emit("panMove",$)},et=$=>{this.emit("panEnd",$),this.container.style.userSelect=""},M=$=>{this.emit("panCancel",$),this.container.style.userSelect=""},Y=$=>{this.emit("panLeft",$)},gt=$=>{this.emit("panRight",$)},yt=$=>{this.emit("panUp",$),this.container.style.userSelect=""},wt=$=>{this.emit("panDown",$),this.container.style.userSelect="none"},Pt=$=>{this.emit("pinch",$)},It=$=>{this.emit("press",$)},Xt=$=>{this.emit("rotate",$)},Wt=$=>{this.emit("swipe",$)},se=$=>{this.emit("tap",$)},At=$=>{!$.target||this.container==$.target||this.container.contains($.target)||this.emit("tapOutSide",$)};this.container.addEventListener("mousedown",t),this.container.addEventListener("mouseup",e),this.container.addEventListener("mousemove",n),this.container.addEventListener("mouseover",r),this.container.addEventListener("mouseout",i),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",p),this.container.addEventListener("touchmove",f),this.container.addEventListener("pointerdown",g),this.container.addEventListener("pointerup",y),this.container.addEventListener("pointercancel",b),this.container.addEventListener("pointermove",k),this.hammer.on("pan",A),this.hammer.on("panstart",N),this.hammer.on("panmove",I),this.hammer.on("panend",et),this.hammer.on("pancancel",M),this.hammer.on("panleft",Y),this.hammer.on("panright",gt),this.hammer.on("panup",yt),this.hammer.on("pandown",wt),this.hammer.on("pinch",Pt),this.hammer.on("press",It),this.hammer.on("rotate",Xt),this.hammer.on("swipe",Wt),this.hammer.on("tap",se),document.addEventListener("pointerdown",At,!1);const _t=()=>{this.container.removeEventListener("mousedown",t),this.container.removeEventListener("mouseup",e),this.container.removeEventListener("mousemove",n),this.container.removeEventListener("mouseover",r),this.container.removeEventListener("mouseout",i),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",p),this.container.removeEventListener("touchmove",f),this.container.removeEventListener("pointerdown",g),this.container.removeEventListener("pointerup",y),this.container.removeEventListener("pointercancel",b),this.container.removeEventListener("pointermove",k),this.hammer.off("pan",A),this.hammer.off("panstart",N),this.hammer.off("panmove",I),this.hammer.off("panend",et),this.hammer.off("pancancel",M),this.hammer.off("panleft",Y),this.hammer.off("panright",gt),this.hammer.off("panup",yt),this.hammer.off("pandown",wt),this.hammer.off("pinch",Pt),this.hammer.off("press",It),this.hammer.off("rotate",Xt),this.hammer.off("swipe",Wt),this.hammer.off("tap",se),document.removeEventListener("pointerdown",At,!1),document.removeEventListener("touchstart",At,!1),document.removeEventListener("mousedown",At,!1)};return this.addDOMEventBusRemoves(_t),_t}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)},r=l=>{this.emit("dragenter",l)},i=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",r,!1),this.container.addEventListener("dragend",i,!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",r,!1),this.container.removeEventListener("dragend",i,!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 r=km.on(t,o=>(e(o,r.formatedKeyNames,r.pause,r.restart),n)),i=()=>{r.removeListener?.()};return this.addDOMEventBusRemoves(i),i}registerResizeObserver(){const t=new ResizeObserver(n=>{const{width:r,height:i}=n[0].contentRect;this.width=r,this.height=i,this.emit("resize",r,i)});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=i=>{this.emit(e,i.matches)};window.matchMedia(t).addEventListener("change",n);const r=()=>{window.matchMedia(t).removeEventListener("change",n)};return this.addDOMEventBusRemoves(r),r}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},n=new IntersectionObserver((i,o)=>{let a=i[0];if(i.length>1){const c=i.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 r=()=>{n.unobserve(this.container)};return this.addDOMEventBusRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;let n=0,r=0;return this.captureMove({start:i=>{n=this.setMousePoint(i).y},move:()=>{r=this.mousePoint.y-n,r>0&&r<e&&this.emit("pullDownIng",r)},end:()=>{r>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;let n=0,r=0;return this.captureMove({start:i=>{n=this.setMousePoint(i).y},move:()=>{r=n-this.mousePoint.y,r>0&&r<e&&this.emit("pullUpIng",r)},end:()=>{r>=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),this.container.style.userSelect="none",t?.start?.(o)},n=o=>{this.container.style.userSelect="",t?.end?.(o)},r=o=>{t?.move?.(o)};this.on("pointerDown",e),this.on("pointerUp",n),this.on("pointerCancel",n),this.on("pointerMove",r);const i=()=>{this.off("pointerDown",e),this.off("pointerUp",n),this.off("pointerCancel",n),this.off("pointerMove",r)};return this.addDOMEventBusRemoves(i),i}captureMoveUseMouse(t){const e=o=>{document.addEventListener("mousemove",r,!1),document.addEventListener("mouseup",n,!1),this.container.style.userSelect="none",t?.start?.(o)},n=o=>{document.removeEventListener("mousemove",r,!1),document.removeEventListener("mouseup",n,!1),this.container.style.userSelect="",t?.end?.(o)},r=o=>{t?.move?.(o)};this.on("mouseDown",e);const i=()=>{this.off("mouseDown",e)};return this.addDOMEventBusRemoves(i),i}captureMoveUseTouch(t){const e=o=>{o.preventDefault(),t?.start?.(o)},n=o=>{t?.end?.(o)},r=o=>{t?.move?.(o)};this.on("touchStart",e),this.on("touchEnd",n),this.on("touchCancel",n),this.on("touchMove",r);const i=()=>{this.off("touchStart",e),this.off("touchEnd",n),this.off("touchCancel",n),this.off("touchMove",r)};return this.addDOMEventBusRemoves(i),i}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 Bo{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"),r=document.createElement("source"),i=new MediaSource;i.addEventListener("sourceopen",()=>t(!0)),r.src=URL.createObjectURL(i),r.media="(min-width:10px)",n.append(r),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(()=>{Bo.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 Om extends Lo{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=eu(this.source);if(t===0){this.emit("finish");return}let e,n,r=su(this.source,0);for(let i=1;i<t;i++)e=n,n=r,r=su(this.source,i),this.raw+=n,n&&this.step(n,r,e);r&&this.step(r,void 0,n),this.emit("finish")}step(t,e,n){t==`
|
|
55
|
-
`&&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":ms("whitespace",t)?(this.textchunk+=W.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=W.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(!ms("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":ms("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(ms("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(ms("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":ms("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(ms("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(!ms("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(ms("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 wu(s,t){if(typeof t<"u")window.localStorage.setItem(s,t);else return window.localStorage.getItem(s)??void 0}oe.page.on("matchMediaChangePrefersColorSchemeDark",s=>{Ho(s?"dark":"light")}),Pm();function Ho(s){wu("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function Pm(){const s=wu("colorScheme");if(s=="dark"||s=="light")return Ho(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return Ho(t),t}}const it={safeAreaTop:W.getCSSVar("--safe-area-inset-top"),safeAreaRight:W.getCSSVar("--safe-area-inset-right"),safeAreaBottom:W.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:W.getCSSVar("--safe-area-inset-left"),colorPrimary:W.getCSSVar("--color-primary")||"#5078f0",colorRed:W.getCSSVar("--color-red")||"#ff5050",colorOrange:W.getCSSVar("--color-orange")||"#fa8c00",colorYellow:W.getCSSVar("--color-yellow")||"#fadc32",colorGreen:W.getCSSVar("--color-green")||"#00c878",colorBlue:W.getCSSVar("--color-blue")||"#00b4fa",colorPurple:W.getCSSVar("--color-purple")||"#6464fa",colorBlack:W.getCSSVar("--color-black")||"#001428",colorGray00:W.getCSSVar("--color-gray-00")||"#000000",colorGray33:W.getCSSVar("--color-gray-33")||"#333333",colorGray66:W.getCSSVar("--color-gray-66")||"#666666",colorGray99:W.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:W.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:W.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:W.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:W.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:W.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:W.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:W.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:W.getCSSVar("--font-line-height")||"1,4",fontSize32:W.getCSSVar("--font-size-32")||"32px",fontSize24:W.getCSSVar("--font-size-24")||"24px",fontSize20:W.getCSSVar("--font-size-20")||"20px",fontSize18:W.getCSSVar("--font-size-18")||"18px",fontSize16:W.getCSSVar("--font-size-16")||"16px",fontSize14:W.getCSSVar("--font-size-14")||"14px",fontSize12:W.getCSSVar("--font-size-12")||"12px",fontSize11:W.getCSSVar("--font-size-11")||"11px",gap4:W.getCSSVar("--gap-4")||"4px",gap8:W.getCSSVar("--gap-8")||"8px",gap12:W.getCSSVar("--gap-12")||"12px",gap16:W.getCSSVar("--gap-16")||"16px",gap20:W.getCSSVar("--gap-20")||"20px",gap40:W.getCSSVar("--gap-40")||"40px",height44:W.getCSSVar("--height-44")||"44px",height32:W.getCSSVar("--height-32")||"32px",borderRadius:W.getCSSVar("--border-radius")||"4px"};function dn(s,t){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(je(s.r,0,255)),s.g=Math.round(je(s.g,0,255)),s.b=Math.round(je(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof t=="number"?t:s.a:s.a=typeof t=="number"?t:1,s.a=je(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 r=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);r&&(n=(parseInt(r[1])<<16)+(parseInt(r[2])<<8)+parseInt(r[3]),r[4]&&(e.a=Ke(parseFloat(r[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(e.a=Ke(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=je(e.a,0,1),e}function Im(s,t){const e=dn(s,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function ni(s){return sm(s.toString(16),2,"0","left")}function Js(s,t){const e=dn(s,t);let n=`#${ni(e.r)}${ni(e.g)}${ni(e.b)}`;return e.a===1?n:n+`${ni(Math.ceil(e.a*255))}`}const Dm=()=>Math.random()*16777215,Le=()=>Js(Dm());function tr(s,t){const e=dn(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(je(e.r,0,255)),e.g=Math.round(je(e.g,0,255)),e.b=Math.round(je(e.b,0,255)),Js(e)}function Su(s,t,e){try{const n=dn(s),r=dn(t);return Js({r:(r.r-n.r)*e+n.r,g:(r.g-n.g)*e+n.g,b:(r.b-n.b)*e+n.b,a:(r.a-n.a)*e+n.a})}catch{return t}}const ri=new Map;async function Nm(s){return new Promise((t,e)=>{Am(s,(n,r)=>n?e(n):t({width:r.width,height:r.height,aspectRatio:r.width/r.height}))})}const Am=(s,t)=>{if(ri.has(s))return t(null,ri.get(s));const e=new Image;e.onload=function(){ri.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,ri.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class pn extends ue{shapes=[];constructor(t){super(t)}setAttrs(t,e){this.shapes.forEach(n=>{$o(t)?n.setAttr(t):typeof t=="string"&&e&&n.setAttr(t,e)})}addShape(t){this.shapes.push(...Array.isArray(t)?t:[t])}toSVGPathData(){return this.shapes.reduce((t,e,n)=>{const r=e.toSVGPathData();return Array.isArray(r[0])?t.push(...r):t.push(r),t},[])}toCanvasContext(t){this.shapes.forEach(e=>e.toCanvasContext(t))}}const Mm=pn;let er;typeof self>"u"&&typeof process<"u"&&process.hrtime?er=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?er=self.performance.now.bind(self.performance):Date.now!==void 0?er=Date.now:er=function(){return new Date().getTime()};const mn=er;class sr{static _nextId=0;static nextId(){return sr._nextId++}}const ii={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-ii.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?ii.Bounce.In(s*2)*.5:ii.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}},Uo=ii,nr={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=nr.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,n,r){const i=(e-s)*.5,o=(n-t)*.5,a=r*r,l=r*a;return(2*t-2*e+i+o)*l+(-3*t+3*e-2*i-o)*a+i*r+t}},Linear:function(s,t){const e=s.length-1,n=e*t,r=Math.floor(n),i=nr.Utils.Linear;return t<0?i(s[0],s[1],n):t>1?i(s[e],s[e-1],e-n):i(s[r],s[r+1>e?e:r+1],n-r)},Bezier:function(s,t){let e=0;const n=s.length-1,r=Math.pow,i=nr.Utils.Bernstein;for(let o=0;o<=n;o++)e+=r(1-t,n-o)*r(t,o)*s[o]*i(n,o);return e},CatmullRom:function(s,t){const e=s.length-1;let n=e*t,r=Math.floor(n);const i=nr.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(r=Math.floor(n=e*(1+t))),i(s[(r-1+e)%e],s[r],s[(r+1)%e],s[(r+2)%e],n-r)):t<0?s[0]-(i(s[0],s[0],s[1],s[1],-n)-s[0]):t>1?s[e]-(i(s[e],s[e],s[e-1],s[e-1],n-e)-s[e]):i(s[r?r-1:0],s[r],s[e<r+1?e:r+1],s[e<r+2?e:r+2],n-r)}},Yo=nr;class Eu{_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=mn(),e=!1){let n=Object.keys(this._tweens);for(let r=0;r<n.length;r++){const i=this._tweens[n[r]],o=!e;i&&i.update(t,o)===!1&&!e&&delete this._tweens[n[r]]}return!!Object.keys(this._tweens).length}}const Be=new Eu;class Cu{constructor(t,e=Be){this._object=t,this._group=e}_id=sr.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=Uo.Linear.None;_interpolationFunction=Yo.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=mn()){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,r){for(const i in n){const o=t[i],a=Array.isArray(o),l=a?"array":typeof o,c=!a&&Array.isArray(n[i]);if(!(l==="undefined"||l==="function")){if(c){let u=n[i];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,o)),n[i]=[o].concat(u)}if((l==="object"||a)&&o&&!c){e[i]=a?[]:{};for(const u in o)e[i][u]=o[u];r[i]=a?[]:{},this._setupProperties(o,e[i],n[i],r[i])}else typeof e[i]>"u"&&(e[i]=o),a||(e[i]*=1),c?r[i]=n[i].slice().reverse():r[i]=e[i]||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=mn()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=mn()){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=Be){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=Uo.Linear.None){return this._easingFunction=t,this}interpolation(t=Yo.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=mn(),e=!0){if(this._isPaused)return!0;let n,r;const i=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>i)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),r=(t-this._startTime)/this._durationTime,r=this._durationTime===0||r>1?1:r;const o=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,o),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===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,r){for(const i in n){if(e[i]===void 0)continue;const o=e[i]||0;let a=n[i];const l=Array.isArray(t[i]),c=Array.isArray(a);!l&&c?t[i]=this._interpolationFunction(a,r):typeof a=="object"&&a?this._updateProperties(t[i],o,a,r):(a=this._handleRelativeValue(o,a),typeof a=="number"&&(t[i]=o+(a-o)*r))}}_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 Rm=Cu,$m=sr.nextId,Lm=Be.getAll.bind(Be),Vm=Be.removeAll.bind(Be),Fm=Be.add.bind(Be),Gm=Be.remove.bind(Be),jm=Be.update.bind(Be),ht={now:mn,Sequence:sr,Easing:Uo,Interpolation:Yo,Group:Eu,Tween:Rm,nextId:$m,getAll:Lm,removeAll:Vm,add:Fm,remove:Gm,update:jm};function zm(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]}}(function(){let s=0;window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const e=new Date().getTime(),n=Math.max(0,16-(e-s)),r=window.setTimeout(function(){t(e+n)},n);return s=e+n,r}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})})();const Bm=s=>{let t=window.requestAnimationFrame(function e(n){s(n),t=window.requestAnimationFrame(e)});return()=>window.cancelAnimationFrame(t)};class Hm{id=0;renders={};cancelAnimateInWeb;constructor(){}get length(){return Object.keys(this.renders).length}run(t){this.renders[this.id++]=t,!this.cancelAnimateInWeb&&(this.cancelAnimateInWeb=Bm(e=>{const n=[];for(let r in this.renders)this.renders[r](e)===!1&&n.push(parseInt(r));for(let r of n)delete this.renders[r];!this.length&&this.cancelAnimateInWeb&&(this.cancelAnimateInWeb(),this.cancelAnimateInWeb=void 0)}))}runAccurateSetTimeout(t,e=0){let n=!1,r;return this.run(i=>n?!1:(r||(r=i),i-r>=e?(t(),!1):!0)),()=>{n=!0}}}const Yt=new Hm,Um={attributeName:["display"],values:[["block","block"]],immediate:!1},Ve={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class re{objects=[];animateObjects=[];currentAnimateName;constructor(){}hasObjects(){return this.objects.length>0}fromDOM(t){return Array.isArray(t)||(t=[t]),this.objects.forEach(e=>{e.app.destroy()}),this.objects=[],t.forEach(e=>{this.objects.push({el:e,app:new oe(e),originAttrs:{}})}),this}static toTween(t,e,n){const r=n?.onStart||(()=>{}),i=n?.onUpdate||(()=>{}),o=n?.onComplete||(()=>{}),a=n?.duration||1e3,l=n?.delay||0,c=n?.easeFunction||ht.Easing.Linear.None,u=n?.repeat||0,h=n?.yoyo||!1,p=new ht.Tween(t).to(e,a).delay(l).easing(c).repeat(u).yoyo(h).onStart(r).onUpdate((f,g)=>{i(f,g)}).onComplete(o);return n?.interpolationFunction&&p.interpolation(n.interpolationFunction),{tween:p,startAuto:f=>{p.start(f?.()),Yt.run(()=>{const g=p.update(f?.());if(n?.precision){let y=!0;for(let b in t)Zn(t[b],e[b],n.precision)||(y=!1);return y?!1:g}return g})}}}static toTweenGroup(t,e){if(t instanceof Cu)return n=>{t.start(),e?.onGroupStart?.(),Yt.run(()=>{const r=ht.update(n?.());return r?e?.onGroupUpdate?.():e?.onGroupComplete?.(),r})};{const n=new ht.Group;return t.forEach(r=>{n.add(r)}),r=>{t.forEach(i=>i.start()),e?.onGroupStart?.(),Yt.run(()=>{const i=n.update(r?.());return i?e?.onGroupUpdate?.():e?.onGroupComplete?.(),i})}}}static toTweenCSS(t,e,n,r){W.add3DSupport(t);const i=r?.onUpdate||(()=>{});return re.toTween(e,n,Object.assign(r||{},{onUpdate:(o,a)=>{const l=W.convertAttrs(t,o);W.setStyle(t,l),i(o,a)}}))}addAnimateObject(t=Um,e=Ve,n=0,r=!1){const i=e.easeName||"linear",o=e.dur||300,a=e.keyTimes||[0,1],l=[];a.forEach((u,h)=>{h>0&&l.push(zm(i))});const c=this.objects[n];return this.animateObjects=r?[]: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:i,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,r,i=Ve,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=je(o,0,h);let p=o-1;p=je(p,0,h);let f=o+1;f=je(f,0,h);const g=this.objects[o],y=this.objects[p],b=this.objects[f];if(y&&p!==o){const k=t(y);k&&(this.addAnimateObject(k,i,p,a),a=!1,l=!0)}if(g){const k=e(g);k&&(this.addAnimateObject(k,i,o,a),a=!1,c=!0)}if(b&&f!==o){const k=n(b);k&&(this.addAnimateObject(k,i,f,a),a=!1,u=!0)}this.objects.forEach((k,A)=>{if(!(A==p&&l||A==o&&c||A==f&&u)){const N=r(k);N&&(this.addAnimateObject(N,i,A,a),a=!1)}})}toCSS(t,...e){if(!this.hasObjects())return;this.currentAnimateName=t,this[t](...e),W.add3DSupport(this.objects[0].el),this.objects.forEach((i,o)=>{W.setStyle(i.el,{position:"absolute","z-index":String(2e3+o),"transform-style":"preserve-3d","backface-visibility":"hidden"})});let n=0;const r=()=>{this.animateObjects.forEach((i,o)=>{let a=[],l=[];Array.isArray(i.attributeName)?(a=i.attributeName,l=i.values):i.attributeName&&(a=[i.attributeName],l=[i.values]);const c=i.keyTimes.length;let u=i.begin;i.keyTimes.forEach((h,p)=>{if(p==0||i.immediate){const f={};a.forEach((y,b)=>{const k=l[b][i.direction=="reverse"?c-1-p:p];f[y]=k});const g=W.convertAttrs(i.el,f,i.originAttrs);W.setStyle(i.el,Object.assign(g,{transition:"none"}))}else Yt.runAccurateSetTimeout(()=>{const f={};a.forEach((y,b)=>{const k=l[b][i.direction=="reverse"?c-1-p:p];f[y]=k});const g=W.convertAttrs(i.el,f,i.originAttrs);W.setStyle(i.el,Object.assign(g,{transition:`all ${i.realKeyTimes[p]}ms cubic-bezier(${i.keySplines[p-1].join(",")})`}))},u),u+=i.realKeyTimes[p]}),Yt.runAccurateSetTimeout(()=>{i.fill==="remove"&&W.setStyle(i.el,i.originAttrs||{}),o==this.animateObjects.length-1&&(i.onComplete?.(),this.currentAnimateName==t&&(i.repeatCount=="infinite"||typeof i.repeatCount=="number"&&++n<i.repeatCount)&&r())},i.begin+i.dur)})};r()}slideLeft(t=Ve,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=Ve,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=Ve,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=Ve,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=Ve,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=Ve,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=Ve,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=Ve,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=Ve,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=Ve,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=Ve,e=this.objects.length-1){Object.assign(t,{keyTimes:[0,1]});const n=t.degree||360;this.resetAnimateObjects(r=>{},r=>({attributeName:["opacity","rotate"],values:[[1,1],[0,n]]}),r=>{},r=>({attributeName:["opacity"],values:[[0,0]],immediate:!0}),t,e)}}class Ym extends Om{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=cm(e);for(let r of n.stylesheet.rules)for(let i of r.declarations)for(let o of r.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${i.property}:${i.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let i="",o="";for(let a in this.groups[r])a=="transform"?i=this.groups[r].transform:a=="class"&&this.globalStyles["."+this.groups[r][a]]?o=this.globalStyles["."+this.groups[r][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[r][a]]?o=this.globalStyles["#"+this.groups[r][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[r][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=i:this.currentItem.transform+=" "+i,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),Wo(this.currentItem.style,this.currentItem,qo)}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=[],r;switch(t){case"svg":let i="",o="";if(e.width&&e.height)i=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(i=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}i&&o&&this.items.push({type:"viewbox",width:i,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":r={},e.style&&Wo(e.style,r),r.offset=r.offset||e.offset,r.color=r["stop-color"]||e["stop-color"],r.opacity=r["stop-opacity"]||e["stop-opacity"],~(r.offset+"").indexOf("%")?r.offset=parseFloat(r.offset):r.offset=parseFloat(r.offset)*100,r.offset=+r.offset.toFixed(2),this.grad.stops.push(r);break;case"linearGradient":this.grad.angle=(360+Xo(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++)r=this.grad.stops[a],a&&a!=l-1?n.push(r.color+":"+r.offset):n.push(r.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++)r=this.grad.stops[a],a&&a!=l-1?n.push(r.color+":"+r.offset):n.push(r.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 i in e){const o=e[i];if(qo.includes(i)&&(this.currentItem[i]=o),i==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:i,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:i,stops:[]})),i==="style"&&Wo(o,this.currentItem,qo),i==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),i==="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])}}i==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),i==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),i==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function Xo(s,t,e,n,r,i){if(typeof r>"u"||typeof i>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return Xo(s,t,r,i)-Xo(e,n,r,i)}function Wo(s,t,e){const n=(s+"").split(";"),r=/^\s+|\s+$/g;for(let i=0,o=n.length;i<o;i++){let a=n[i].split(":"),l=a[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(r,""))}}const qo=["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"];let Xm=class{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e,n){this.app=t,this.rootEl=Bt.createSVGElement("svg"),W.empty(this.app.container),W.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="";let r=0,i=this.shapes.length;for(;r<i;r++){const o=this.shapes[r];if(!(o instanceof vt)&&!o.pathd){o.isMouseIn=!1;continue}const a=o instanceof vt&&o.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||o.pathd instanceof vt&&o.pathd.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;if(o.isMouseIn=a,a&&(this.currentMouseInShapeID=o.id,o.enableDrag)){this.currentEnableDragMouseInShapeID=o.id,this.shapes.filter(l=>l.id!==o.id).forEach(l=>{l instanceof ue&&(l.isMouseIn=!1)});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.currentMouseInShapeID?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}setSize(t,e){return W.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return Bt.downloadFromSVGElement(this.rootEl)}path(t){[...Array.isArray(t)?t:[t]].forEach(e=>{if(e instanceof pn){e.shapes.forEach(n=>this.path(n));return}if(e instanceof ea)e.el=this.text(e.text,e.x,e.y,e.attrs);else if(e instanceof Fe)e.el=Bt.createSvgPath(`M ${e.fromX} ${e.fromY} `+e.toSVGPathD()),W.insert(this.rootEl,e.el);else if(e instanceof vt)e.el=Bt.createSvgPath(e.toSVGPathD()),W.insert(this.rootEl,e.el);else if(e instanceof ue){const n=vt.fromShape(e)||e;n.el=e.el=Bt.createSvgPath(n.toSVGPathD()),W.insert(this.rootEl,e.el),n instanceof vt&&(e.pathd=n)}this.update(e),this.shapes.push(e)})}update(t){[...Array.isArray(t)?t:[t]].forEach(e=>{const n=[];e instanceof pn?(e.frameUpdate(),n.push(...e.shapes)):n.push(e),n.forEach(r=>{if(r.followMouse&&(!Zn(r.x,this.app.mousePoint.x,5)||!Zn(r.y,this.app.mousePoint.y,5))&&(r.angleTo(this.app.mousePoint),r.followTo(this.app.mousePoint)),r.targetToAfterDragFree&&(this.isMouseDown||r.nextFrameEaseTo(new he({x:r.targetToAfterDragFree.targetX,y:r.targetToAfterDragFree.targetY}),{easing:r.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==r.id){const{dx:i,dy:o}=r.centerDiff;r.x=this.app.mousePoint.x,r.y=this.app.mousePoint.y,r.x-=i,r.y-=o,r.isDragging=!0,this.shapes.filter(a=>a.id!=r.id).forEach(a=>{a instanceof ue&&(a.isDragging=!1)})}else this.shapes.forEach(i=>{i instanceof ue&&(i.isDragging=!1)});r.frameUpdate(),r instanceof vt?r.updateTransform():r.pathd&&r.pathd.updateFromShape(r),(r instanceof Fe||r instanceof vt||r.pathd instanceof vt)&&this.attr(r,"d",r instanceof Fe?`M ${r.fromX} ${r.fromY} `+r.toSVGPathD():r.pathd instanceof vt?r.pathd.toSVGPathD():r.toSVGPathD()),r instanceof ea&&(r.setAttr("x",String(r.x)),r.setAttr("y",String(r.y))),this.attr(r,r.attrs),r.el&&(r.isShow?W.show(r.el):W.hide(r.el))})})}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof vt&&n.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||n.pathd instanceof vt&&n.pathd.isPointInPath(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 pn?t.shapes:[t]].forEach(e=>{e.el&&W.remove(e.el),delete e.el,delete e.pathd?.el,this.shapes=this.shapes.filter(n=>n.id!=e.id)})}clear(){this.shapes.forEach(t=>{delete t.el,delete t.pathd?.el}),W.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const r=t.el||t;return r instanceof SVGElement?e===void 0&&n===void 0?W.attribute(r):typeof e=="string"&&n===void 0?W.attribute(r,Re(e))||"":(typeof e=="object"?W.attribute(r,e):typeof e=="string"&&n!==void 0&&W.attribute(r,Re(e),n),this):this}circle(t,e,n){return this.path(new he({x:t,y:e,radius:n}))}circleEl(t,e,n){const r=Bt.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return W.insert(this.rootEl,r),r}ellipse(t,e,n,r){return this.path(new Qm({x:t,y:e,rx:n,ry:r}))}ellipseEl(t,e,n,r){const i=Bt.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(r)});return W.insert(this.rootEl,i),i}rect(t,e,n,r){return this.path(new $e({x:t,y:e,width:n,height:r}))}rectEl(t,e,n,r){const i=Bt.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(r)});return W.insert(this.rootEl,i),i}image(t,e,n,r,i){}text(t,e,n,r){const i=Bt.createSVGElement("text",{x:String(e),y:String(n)});return W.html(i,t),this.attr(i,Object.assign({"alignment-baseline":"middle"},r)),W.insert(this.rootEl,i),i}textWithTspan(t,e,n,r){const i=r?.["line-height"]||"1.2em",o=Bt.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
|
|
56
|
-
`).forEach((a,l)=>{if(a.trim()){const c=Bt.createSVGElement("tspan",{x:String(e),dy:l>0?i:"0"});W.html(c,a),W.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),W.insert(this.rootEl,o),o}};const Tu=Wm("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 Wm(s,t=10){const e={},n=s.split(",");for(let r=0;r<n.length;r+=2){const i="&"+n[r+1]+";",o=parseInt(n[r],t);e[i]="&#"+o+";"}return e["\\xa0"]=" ",e}function ke(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 oi(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 qm(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function Km(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const rr={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 Ko{__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 i=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);i&&(n.setAttribute("stop-color",ke("rgb({r},{g},{b})",{r:i[1],g:i[2],b:i[3]})),n.setAttribute("stop-opacity",i[4]))}else n.setAttribute("stop-color",e);this.__root.appendChild(n)}}class ku{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class ai{__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(rr);for(let e=0,n=t.length;e<n;e++){const r=t[e];this[r]=rr[r].canvas}}__getStyleState(){const t={},e=Object.keys(rr);for(let n=0,r=e.length;n<r;n++){const i=e[n];t[i]=this[i]}return t}__applyStyleState(t){const e=Object.keys(t);for(let n=0,r=e.length;n<r;n++){const i=e[n];this[i]=t[i]}}__createElement(t,e={},n=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),i=Object.keys(e);n&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let o=0;o<i.length;o++){const a=i[o];r.setAttribute(a,e[a])}return r}__applyStyleToCurrentElement(t){let e=this.__currentElement;const n=this.__currentElementsToStyle;n&&(e.setAttribute(t,""),e=n.element,n.children.forEach(i=>{i.setAttribute(t,"")}));const r=Object.keys(rr);for(let i=0;i<r.length;i++){const o=rr[r[i]],a=this[r[i]];if(o.apply){if(a instanceof ku){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,ke("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof Ko)e.setAttribute(o.apply,ke("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);e.setAttribute(o.svgAttr,ke("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(r[i]==="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 r=Object.keys(Tu);for(let i=0,o=r.length;i<o;i++){const a=r[i],l=Tu[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 r=this.__createElement("g");e.appendChild(r),this.__currentElement=r}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(ke("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(ke("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(ke("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,r,i,o){this.__addTransform(ke("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:n,d:r,e:i,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(ke("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(ke("L {x} {y}",this.__currentPosition)):this.__addPathCommand(ke("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,r,i,o){this.__currentPosition={x:i,y:o},this.__addPathCommand(ke("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:n,cp2y:r,x:i,y:o}))}quadraticCurveTo(t,e,n,r){this.__currentPosition={x:n,y:r},this.__addPathCommand(ke("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:n,y:r}))}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,r,i){const o=this.__currentPosition&&this.__currentPosition.x,a=this.__currentPosition&&this.__currentPosition.y;if(typeof o>"u"||typeof a>"u")return;if(i<0)throw new Error("IndexSizeError: The radius provided ("+i+") is negative.");if(o===t&&a===e||t===n&&e===r||i===0){this.lineTo(t,e);return}const l=this.normalize([o-t,a-e]),c=this.normalize([n-t,r-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)),p=this.normalize([l[0]+c[0],l[1]+c[1]]),f=i/Math.sin(h/2),g=t+f*p[0],y=e+f*p[1],b=[-l[1],l[0]],k=[c[1],-c[0]],A=function(et){const M=et[0];return et[1]>=0?Math.acos(M):-Math.acos(M)},N=A(b),I=A(k);this.lineTo(g+b[0]*i,y+b[1]*i),this.arc(g,y,i,N,I)}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,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,n,r){const i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,n,r){const i=this.__createElement("rect",{x:t,y:e,width:n,height:r},!0);this.__closestGroupOrSvg().appendChild(i),this.__currentElement=i,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),n=this.__rootSVG.childNodes[1],r=n.childNodes;for(let i=r.length-1;i>=0;i--)r[i]&&n.removeChild(r[i]);this.__currentElement=n,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,n,r){if(t===0&&e===0&&n===this.width&&r===this.height){this.__clearCanvas();return}const i=this.__closestGroupOrSvg(),o=this.__createElement("rect",{x:t,y:e,width:n,height:r,fill:"#FFFFFF"},!0);i.appendChild(o)}createLinearGradient(t,e,n,r){const i=this.__createElement("linearGradient",{id:oi(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new Ko(i,this)}createRadialGradient(t,e,n,r,i,o){const a=this.__createElement("radialGradient",{id:oi(this.__ids),cx:r+"px",cy:i+"px",r:o+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(a),new Ko(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,r){const i=this.__parseFont(),o=this.__closestGroupOrSvg(),a=this.__createElement("text",{"font-family":i.family,"font-size":i.size,"font-style":i.style,"font-weight":i.weight,"text-decoration":i.decoration,x:e,y:n,"text-anchor":qm(this.textAlign),"dominant-baseline":Km(this.textBaseline)},!0);a.appendChild(this.__document.createTextNode(t)),this.__currentElement=a,this.__applyStyleToCurrentElement(r),o.appendChild(this.__wrapTextLink(i,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,r,i,o){if(r===i)return;r=r%(2*Math.PI),i=i%(2*Math.PI),r===i&&(i=(i+2*Math.PI-.001*(o?-1:1))%(2*Math.PI));const a=t+n*Math.cos(i),l=e+n*Math.sin(i),c=t+n*Math.cos(r),u=e+n*Math.sin(r),h=o?0:1;let p=0,f=i-r;f<0&&(f+=2*Math.PI),o?p=f>Math.PI?0:1:p=f>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(ke("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:n,ry:n,xAxisRotation:0,largeArcFlag:p,sweepFlag:h,endX:a,endY:l})),this.__currentPosition={x:a,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),n=oi(this.__ids),r=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",ke("url(#{id})",{id:n})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],n,r,i,o,a=0,l=0,c,u,h,p,f,g,y,b;if(t.length===3)n=t[1],r=t[2],c=e.width,u=e.height,i=c,o=u;else if(t.length===5)n=t[1],r=t[2],i=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],r=t[6],i=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 A="translate("+n+", "+r+")";if(e instanceof ai){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(p=h.childNodes[0];p.childNodes.length;)b=p.childNodes[0].getAttribute("id"),this.__ids[b]=b,this.__SVGdefs.appendChild(p.childNodes[0]);if(f=h.childNodes[1],f){const N=f.getAttribute("transform");let I;N?I=N+" "+A:I=A,f.setAttribute("transform",I),k.appendChild(f)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(g=this.__createElement("image"),g.setAttribute("width",i),g.setAttribute("height",o),g.setAttribute("preserveAspectRatio","none"),(a||l||c!==e.width||u!==e.height)&&(y=this.__document.createElement("canvas"),y.width=i,y.height=o,y.getContext("2d")?.drawImage(e,a,l,c,u,0,0,i,o),e=y),g.setAttribute("transform",A),g.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),k.appendChild(g))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=oi(this.__ids);let i;return n.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(i=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),n.appendChild(i),this.__SVGdefs.appendChild(n)):t instanceof ai&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new ku(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Zo{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,n){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),this.customContext=new ai({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.lineWidth=t}get lineWidth(){return this.context.lineWidth}set lineCap(t){this.hasSetCustomStrokeStyle=!0,this.context.lineCap=t,this.customContext.lineCap=t}get lineCap(){return this.context.lineCap}set lineJoin(t){this.hasSetCustomStrokeStyle=!0,this.context.lineJoin=t,this.customContext.lineCap=t}get lineJoin(){return this.context.lineJoin}set lineDashOffset(t){this.hasSetCustomStrokeStyle=!0,this.context.lineDashOffset=t,this.customContext.lineDashOffset=t}get lineDashOffset(){return this.context.lineDashOffset}set miterLimit(t){this.hasSetCustomStrokeStyle=!0,this.context.miterLimit=t,this.customContext.miterLimit=t}get miterLimit(){return this.context.miterLimit}set globalAlpha(t){this.context.globalAlpha=t,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.fillStyle=t):(this.context.fillStyle=t.gradient,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.strokeStyle=t):(this.context.strokeStyle=t.gradient,this.customContext.strokeStyle=t.gradientCustom)}get strokeStyle(){return this.context.strokeStyle}set font(t){this.context.font=t,this.customContext.font=t}get font(){return this.context.font}set textBaseline(t){this.context.textBaseline=t,this.customContext.textBaseline=t}get textBaseline(){return this.context.textBaseline}set textAlign(t){this.context.textAlign=t,this.customContext.textAlign=t}get textAlign(){return this.context.textAlign}fill(t){return t?this.context.fill(t):(this.context.fill(),this.customContext.fill()),this}fillRect(t,e,n,r){return this.context.fillRect(t,e,n,r),this.customContext.fillRect(t,e,n,r),this}fillText(t,e,n,r){return this.context.fillText(t,e,n,r),this.customContext.fillText(t,e,n),this}setLineDash(t){return this.context.setLineDash(t),this.customContext.setLineDash(t),this}stroke(t){return t?this.context.stroke(t):(this.context.stroke(),this.customContext.stroke()),this}strokeText(t,e,n,r){return this.context.strokeText(t,e,n,r),this.customContext.strokeText(t,e,n),this}strokeRect(t,e,n,r){return this.context.strokeRect(t,e,n,r),this.customContext.strokeRect(t,e,n,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,n=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,n,r),this.customContext.clearRect(t,e,n,r),this}save(){return this.context.save(),this.customContext.save(),this.currentMatrix=new DOMMatrix,this.path2Ds.push(this.currentPath2D),this.currentPath2D=new Path2D,this}restore(){return this.context.restore(),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.beginPath(),this}closePath(){return this.context.closePath(),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.translate(t,e),this.currentMatrix.translate(t,e),this.changePath2D(),this}rotate(t){return this.context.rotate(t),this.customContext.rotate(t),this.currentMatrix.rotate(t),this.changePath2D(),this}scale(t,e=t){return this.context.scale(t,e),this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.changePath2D(),this}moveTo(t,e){return this.context.moveTo(t,e),this.customContext.moveTo(t,e),this.currentPath2D.moveTo(t,e),this}lineTo(t,e){return this.context.lineTo(t,e),this.customContext.lineTo(t,e),this.currentPath2D.lineTo(t,e),this}arc(t,e,n,r,i,o){return this.context.arc(t,e,n,r,i,o),this.customContext.arc(t,e,n,r,i,o?-1:1),this.currentPath2D.arc(t,e,n,r,i,o),this}arcTo(t,e,n,r,i){return this.context.arcTo(t,e,n,r,i),this.customContext.arcTo(t,e,n,r,i),this.currentPath2D.arcTo(t,e,n,r,i),this}ellipse(t,e,n,r,i,o,a,l){return this.context.ellipse(t,e,n,r,i,o,a,l),this.currentPath2D.ellipse(t,e,n,r,i,o,a,l),this}quadraticCurveTo(t,e,n,r){return this.context.quadraticCurveTo(t,e,n,r),this.customContext.quadraticCurveTo(t,e,n,r),this.currentPath2D.quadraticCurveTo(t,e,n,r),this}bezierCurveTo(t,e,n,r,i,o){return this.context.bezierCurveTo(t,e,n,r,i,o),this.customContext.bezierCurveTo(t,e,n,r,i,o),this.currentPath2D.bezierCurveTo(t,e,n,r,i,o),this}rect(t,e,n,r){return this.context.rect(t,e,n,r),this.customContext.rect(t,e,n,r),this.currentPath2D.rect(t,e,n,r),this}createLinearGradient(t,e,n,r,i){const o=this.context.createLinearGradient(t,e,n,r),a=this.customContext.createLinearGradient(t,e,n,r);return i&&Object.keys(i).forEach(l=>{const c=parseFloat(l);o.addColorStop(c,i[c]),a.addColorStop(c,i[c])}),{gradient:o,gradientCustom:a}}createRadialGradient(t,e,n,r,i,o,a){const l=this.context.createRadialGradient(t,e,n,r,i,o),c=this.customContext.createRadialGradient(t,e,n,r,i,o);return a&&Object.keys(a).forEach(u=>{const h=parseFloat(u);l.addColorStop(h,a[h]),c.addColorStop(h,a[h])}),{gradient:l,gradientCustom:c}}drawImage(t,...e){if(e.length===0)this.context.drawImage(t,0,0);else if(e.length===2){const n=e[0],r=e[1];this.context.drawImage(t,n,r)}else if(e.length===4){const n=e[0],r=e[1],i=e[2],o=e[3];this.context.drawImage(t,n,r,i,o)}else if(e.length===8){const n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,n,r,i,o,a,l,c,u)}else throw new Error("Invalid number of arguments passed to drawImage: "+e.length);return this.customContext.drawImage(t,...e),this}getImageData(t=0,e=0,n=this.canvas.width,r=this.canvas.height,i){return this.context.getImageData(t,e,n,r,i)}putImageData(t,e=0,n=0){return this.context.putImageData(t,e,n)}toRawSVG(){const t=this.customContext.getSerializedSvg(!0),e=this.customContext.getSvg();return{raw:t,element:e}}}class Fe extends ue{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 Fe({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=jo(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),r=Math.max(this.x,this.fromX),i=Math.max(this.y,this.fromY);return new si({x:e,y:n,width:r-e,height:i-n})}else{const e=Math.sin(t),n=Math.cos(t),r=n*this.fromX-e*this.fromY,i=n*this.x-e*this.y,o=n*this.fromY+e*this.fromX,a=n*this.y+e*this.x;return new si({x:Math.min(r,i),y:Math.min(o,a),width:Math.max(r,i)-Math.min(r,i),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)}}}class Qo extends Fe{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 Qo({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=Bt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new si({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 Bt.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,r=this.c1x,i=this.c1y,o=this.c2x,a=this.c2y,l=this.x,c=this.y;if(t<0||Bt.bezlen(e,n,r,i,o,a,l,c)<t)return 0;let u=1,h=u/2,p=u-h,f,g=.01;for(f=Bt.bezlen(e,n,r,i,o,a,l,c,p);Math.abs(f-t)>g;)h/=2,p+=(f<t?1:-1)*h,f=Bt.bezlen(e,n,r,i,o,a,l,c,p);return p}getPointAtSegmentLength(t){const e=this.getTatLen(t),n=this.fromX,r=this.fromY,i=this.c1x,o=this.c1y,a=this.c2x,l=this.c2y,c=this.x,u=this.y;let h=1-e,p=Math.pow(h,3),f=Math.pow(h,2),g=e*e,y=g*e,b=p*n+f*3*e*i+h*3*e*e*a+y*c,k=p*r+f*3*e*o+h*3*e*e*l+y*u,A=n+2*e*(i-n)+g*(a-2*i+n),N=r+2*e*(o-r)+g*(l-2*o+r),I=i+2*e*(a-i)+g*(c-2*a+i),et=o+2*e*(l-o)+g*(u-2*l+o),M=h*n+e*i,Y=h*r+e*o,gt=h*a+e*c,yt=h*l+e*u,wt=90-Math.atan2(A-I,N-et)*180/Math.PI;return{x:b,y:k,m:{x:A,y:N},n:{x:I,y:et},start:{x:M,y:Y},end:{x:gt,y:yt},alpha:wt}}}const Ns=Qo;class tn extends Fe{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 tn({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 Zm=tn;class Jo extends Fe{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 Jo({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,r,i,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,n,r,i,o,a,l,!this.sweepFlag)}convertSVGToCanvas(t,e,n,r,i,o,a,l,c){const u=a/180*Math.PI,h=(t-n)/2,p=(e-r)/2,f=Math.cos(u)*h+Math.sin(u)*p,g=-Math.sin(u)*h+Math.cos(u)*p,y=f*f/(i*i)+g*g/(o*o);if(y>1){const Pt=Math.sqrt(y);throw i=Pt*i,o=Pt*o,new Error(`Radii are too small to build an arc. Correcting them to ${i}/${o}.`)}const b=Math.sqrt((i*i*o*o-i*i*g*g-o*o*f*f)/(i*i*g*g+o*o*f*f)),k=l!=c?1:-1,A=k*b*i*g/o,N=k*b*-o*f/i,I=(t+n)/2,et=(e+r)/2,M=Math.cos(u)*A-Math.sin(u)*N+I,Y=Math.sin(u)*A+Math.cos(u)*N+et,gt=(Pt,It,Xt,Wt)=>(Pt*Wt>=It*Xt?1:-1)*Math.acos((Pt*Xt+It*Wt)/(Math.sqrt(Pt*Pt+It*It)*Math.sqrt(Xt*Xt+Wt*Wt))),yt=gt(1,0,t-M,e-Y)-u,wt=gt(t-M,e-Y,n-M,r-Y);return[M,Y,i,o,u,yt,yt+wt]}}const ta=Jo;class vt extends ue{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 ta){bu(this.prevPathX,this.prevPathY,t.x,t.y,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,h,p,f,g,y,b,k]=c;this.normalizedLines.push(new Ns({c1x:p,c1y:f,c2x:g,c2y:y,x:b,y:k,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=b,this.prevPathY=k});return}let e,n,r,i,o,a;t instanceof Ns?(e=t.c1x,n=t.c1y,r=t.c2x,i=t.c2y,o=t.x,a=t.y):t instanceof Zm?[e,n,r,i,o,a]=zo(this.prevPathX,this.prevPathY,t.cx,t.cy,t.x,t.y):[e,n,r,i,o,a]=Jn(this.prevPathX,this.prevPathY,t.x,t.y),this.normalizedLines.push(new Ns({c1x:e,c1y:n,c2x:r,c2y:i,x:o,y:a,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=o,this.prevPathY=a}static fromShape(t,e){const n=new vt(Object.assign({attrs:{...t.attrs}},e));return n.updateFromShape(t),n}updateFromShape(t){this.degree=t.degree,this.scaleOnOrigin=t.scaleOnOrigin,this.skewDegreeOnOrigin=t.skewDegreeOnOrigin,this.updateFromSVGPathD(t.toSVGPathD())}static fromSVGPathD(t="M0,0",e){const n=new vt(e);return n.updateFromSVGPathD(t),n}static fromSVGPathData(t,e){const n=new vt(e);return n.updateFromSVGPathData(t),n}updateFromSVGPathD(t){Bt.isSVGPath(t)&&this.updateFromSVGPathData(Bt.parseSVGPath(t))}updateFromSVGPathData(t){this.normalizedLines=[];const e=Bt.normalizeSVGPath(Bt.absolutizeSVGPath(t));for(let n=0,r=e.length;n<r;n++){const i=e[n];if(i[0]=="M"){this.prevPathX=this.startPathX=i[1],this.prevPathY=this.startPathY=i[2];continue}this.appendLine(new Ns({c1x:i[1],c1y:i[2],c2x:i[3],c2y:i[4],x:i[5],y:i[6]}))}this.prevDegree=0,this.prevScaleOnOrigin=1,this.prevSkewDegreeOnOrigin=0,this.updateTransform()}toSVGPathData(t=!1){let e=[];e.push(["M",this.startPathX,this.startPathY]);for(let n=0,r=this.normalizedLines.length;n<r;n++)e.push(this.normalizedLines[n].toSVGPathData());return t&&(e=Bt.relativeSVGPath(e)),e}toCanvasContext(t){t.beginPath(),t.moveTo(this.startPathX,this.startPathY),this.normalizedLines.forEach(e=>{const[n,...r]=e.toSVGPathData();t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])})}updateTransform(){if((this.x!=this.prevX||this.y!=this.prevY)&&this.translate(this.x-this.prevX,this.y-this.prevY),this.degree!=this.prevDegree){const t=this.getBoundingClientRect();this.rotate(this.degree-this.prevDegree,t.x+t.width/2,t.y+t.height/2)}if(this.scaleOnOrigin!=this.prevScaleOnOrigin){const t=this.getBoundingClientRect(),e=this.scaleOnOrigin/this.prevScaleOnOrigin;this.scale(e,e,t.x+t.width/2,t.y+t.height/2)}}transform(t){return{x:this.startPathX,y:this.startPathY}=t.multiplyPoint(this.startPathX,this.startPathY),{x:this.prevPathX,y:this.prevPathY}=t.multiplyPoint(this.prevPathX,this.prevPathY),this.normalizedLines.forEach(e=>{({x:e.fromX,y:e.fromY}=t.multiplyPoint(e.fromX,e.fromY)),{x:e.c1x,y:e.c1y}=t.multiplyPoint(e.c1x,e.c1y),{x:e.c2x,y:e.c2y}=t.multiplyPoint(e.c2x,e.c2y),{x:e.x,y:e.y}=t.multiplyPoint(e.x,e.y)}),this}translate(t,e){const n=new ye().translate(t,e);return this.transform(n),this.prevX=this.x,this.prevY=this.y,this}rotate(t,e=0,n=0){const r=new ye().rotate(t,e,n);return this.transform(r),this.prevDegree=this.degree,this}scale(t,e=t,n=0,r=0){const i=new ye().scale(t,e,n,r);return this.transform(i),this.prevScaleOnOrigin=this.scaleOnOrigin,this}skew(t,e=0){const n=new ye().skew(t,e);return this.transform(n),this.prevSkewDegreeOnOrigin=this.skewDegreeOnOrigin,this}trim(){const t=this.getBoundingClientRect();return this.translate(-t.x,-t.y),this}getBoundingClientRect(){let t=0,e=0,n=[],r=[];t=this.startPathX,e=this.startPathY,n.push(t),r.push(e),this.normalizedLines.forEach(c=>{const u=Bt.curveDim(t,e,c.c1x,c.c1y,c.c2x,c.c2y,c.x,c.y);n=n.concat(u.min.x,u.max.x),r=r.concat(u.min.y,u.max.y),t=c.x,e=c.y});const i=Math.min.apply(0,n),o=Math.min.apply(0,r),a=Math.max.apply(0,n),l=Math.max.apply(0,r);return new si({x:i,y:o,width:a-i,height:l-o})}getTotalLength(){return this.normalizedLines.reduce((t,e)=>t+=e.length(),0)}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 r=1,i=this.normalizedLines.length;r<i&&(n=this.normalizedLines[r],e>1);r++)e-=1;return n.interpolate(e)}}getPointAtLength(t){let e=0;const n=this.normalizedLines.length;for(let r=0;r<n;r++){const i=this.normalizedLines[r],o=i.length();if(e+o>=t)return i.getPointAtSegmentLength(t-e);e+=o}return this.normalizedLines[n-1].getPointAtSegmentLength(1)}getSubpathsAtLength(t,e,n){let r=null,i=0;const o=new vt;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(i+u>e&&!r){const h=c.getPointAtSegmentLength(e-i);if(o.appendLine(new Ns({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;r=o,o.prevPathX=h.x,o.prevPathY=h.y,o.appendLine(new Ns({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,x:c.x,y:c.y})),i+=u;continue}i+=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)}isPointInPath(t,e,n){if(n instanceof Zo)return n.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=n.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInFill(r):!1}isPointInStroke(t,e,n){if(n instanceof Zo)return n.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=n.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!1}strokeDashToTween(t){const e=+this.getTotalLength().toFixed(0);this.setAttr({strokeDasharray:`${e} ${e}`,strokeDashoffset:`${e}`});const n=t?.onUpdate;return re.toTween({offset:e},{offset:0},Object.assign(t||{},{onUpdate:(r,i)=>{this.setAttr("strokeDashoffset",""+Ke(r.offset,2)),n?.(r,i)}}))}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 vt({x:t[0],y:t[1]});for(let n=2;n+5<t.length;n+=6)e.appendLine(new Ns({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],r=t[e-1],i=0;for(let o=0;o<e;o+=6)i+=Go(t[o],t[o+1],n,r),n=t[o],r=t[o+1];return Math.floor(i)}fillPathD(t){const e=this.polymorphPoints,n=e.length;let r=t-n;const i=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++],p=e[a++],f=e[a++];o.push(["C",l,c,u,h,p,f]);let g=0;for(;g<i&&r>0;)o.push(["C",p,f,p,f,p,f]),r-=6,g++}return vt.fromSVGPathData(o)}static mixPoints(t,e,n){const r=t.length,i=new Array(r);for(let o=0;o<r;o++)i[o]=Ke(t[o]+(e[o]-t[o])*n,6);return i}static getPathInterpolator(t,e){return n=>Math.abs(n-0)<Number.EPSILON?t.toSVGPathD():Math.abs(n-1)<Number.EPSILON?e.toSVGPathD():vt.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 i=0;i<e;i++){const o=Math.max(t[i].polymorphPoints.length,t[i+1].polymorphPoints.length);n[i]=this.getPathInterpolator(t[i].fillPathD(o),t[i+1].fillPathD(o))}const r=vt.fromSVGPathD(n[0](0));return i=>{const o=Ke(e*i,6),a=Math.min(Math.floor(o),e-1),l=Ke(o-a,6);return r.updateFromSVGPathD(n[a](l)),r.setAttr("fill",Su(t[a].getAttr("fill","none"),t[a+1].getAttr("fill","none"),l)),r.setAttr("stroke",Su(t[a].getAttr("stroke","none"),t[a+1].getAttr("stroke","none"),l)),r}}static generateRosetta(t,e,n,r,i){if(i==0)throw new Error("no dividing by zero, please");const o=new vt({x:t,y:e}),a=360/i;for(let l=0;l<i;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 ta({x:u,y:h,rx:n,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new ta({x:t,y:e,rx:n,ry:r,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class vs extends Mm{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(t){if(super(t),!t?.svg)return;const e=new Ym(t.svg).parse();for(let n=0,r=e.length;n<r;n++){const i=e[n];if(i.type=="viewbox"&&i.width&&i.height){if(this.svgWidth=parseFloat(i.width),this.svgHeight=parseFloat(i.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(i.type!="path"||!Qs.isSVGPath(i.path))continue;const o={};for(const u in i)u==="type"||u==="path"||u==="transform"||(o[u]=i[u]);const a=Qs.absolutizeSVGPath(Qs.parseSVGPath(i.path));let l=[],c=[];for(let u=0,h=a.length;u<h;u++){const p=a[u];c.push(p),p[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=vt.fromSVGPathData(u,t),p=vu(i.transform??"");h.transform(p),h.attrs={...h.attrs,...o,...t.attrs},this.width&&this.svgWidth&&h.scale(this.width/this.svgWidth),this.shapes.push(h)})}}static fromShape(t,e){const n=new vs;if(t instanceof ue){const r=vt.fromShape(t,e);r&&n.shapes.push(r)}else t.forEach(r=>{const i=vt.fromShape(r,e);i&&n.shapes.push(i)});return n}addShape(t,e){(Array.isArray(t)?t:[t]).forEach(n=>{if(n instanceof vt)this.shapes.push(n);else{const r=vt.fromShape(n,e);r&&this.shapes.push(r)}})}strokeDashToTween(t){const e=t?.type||"parallel",n=this.shapes.map(r=>r.strokeDashToTween({...t}).tween);switch(e){case"sequence":return n.forEach((r,i)=>{i>0&&n[i-1].chain(r)}),{startAuto:re.toTweenGroup(n[0],t)};case"parallel":default:return{startAuto:re.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 r=n;r<e;r++){const i=t.shapes[r].polymorphPoints,o=i[0],a=i[1],l=new vt({x:o,y:a,attrs:{...t.shapes[r].attrs}});for(let c=2;c+5<i.length;c+=6)l.appendLine(new Ns({c1x:o,c1y:a,c2x:o,c2y:a,x:o,y:a}));this.shapes.push(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 r=[];t.forEach((a,l)=>{a.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const i=[];r.forEach(a=>i.push(vt.polymorph(a)));const o=new vs;return i.forEach(a=>{o.shapes.push(a(0))}),a=>(i.forEach(l=>{l(a)}),o)}}class Qm extends ue{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return new $e({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(this.x,this.y,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class gn extends ue{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 r=!1;const i=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 p=(u-l)/(h-c),f=l+p*(e-c);if(f===t||Math.abs(f-t)<i)return!0;f>t&&(r=!r)}}return r}[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,r){const i=[];for(let o=0;o<r;o++){const a=o/r*2*Math.PI,{x:l,y:c}=Ks(a,n);i.push(new xu({x:t+l,y:e+c}))}return new gn(i)}}class ea extends ue{text;width=0;height=0;bitmap=null;constructor(t){super(t),this.text=t.text,this.attrs={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","alignment-baseline":"middle",textAnchor:"start",...this.attrs};const e=un(this.attrs.fontSize,10).number,n=new OffscreenCanvas(e,e),r=n.getContext("2d");if(r){r.font=""+this.attrs.fontSize+" "+this.attrs.fontFamily,this.bitmap=n.transferToImageBitmap();const i=r.measureText(this.text);let o=Math.ceil(i.actualBoundingBoxRight+i.actualBoundingBoxLeft),a=Math.ceil(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent);const l=2;o+=l+l,a+=l+l,this.width=o,this.height=a}}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Jm extends pn{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;p1=new he;p1Offset=10;p2=new he;p2Offset=40;p3=new he;p3Offset=10;p4=new he;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:!1;const e=Object.assign({...this.attrs},{fill:"none"});this.line12=new Fe({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new Fe({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new ea({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{...e,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.sector=new tg({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.shapes.push(this.sector),this.text&&(this.shapes.push(this.line12),this.shapes.push(this.line23),this.shapes.push(this.textShape)),this.update()}frameUpdate(){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sector.isMouseIn,this.line23.isShow=this.sector.isMouseIn,this.textShape.isShow=this.sector.isMouseIn),this.update()}update(){const t=this.startDegree+(this.endDegree-this.startDegree)/2,{x:e,y:n}=Ks(Te(t),this.sector.radius+this.p1Offset);this.p1.x=this.x+e,this.p1.y=this.y+n;const{x:r,y:i}=Ks(Te(t),this.sector.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+r,this.p2.y=this.y+i,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")}}class tg extends ue{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{x:t,y:e}=Ks(Te(this.startDegree),this.radius),{x:n,y:r}=Ks(Te(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+r],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Te(this.startDegree),Te(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=Go(this.x,this.y,t,e),r=we(jo(this.x,this.y,t,e));return n<this.radius&&r>this.startDegree&&r<this.endDegree}}class li extends ue{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 sa extends ue{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 eg extends vt{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 sg extends vt{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 ng extends vt{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 r=270+n*144,i=this.x+this.r*Math.cos(r*Math.PI/180),o=this.y+this.r*Math.sin(r*Math.PI/180);e+="L"+i+","+o}this.updateFromSVGPathD(e)}}class rg extends vt{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 ig extends vt{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 og extends vs{constructor(t){super(t),this.addShape(vt.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],t)),this.addShape(vt.fromSVGPathData([["M",this.x,this.y-30-Math.random()*30],["L",this.x+Math.random()*80-40,this.y-100-Math.random()*40]],t)),this.addShape(vt.fromSVGPathData([["M",this.x,this.y-60-Math.random()*40],["L",this.x+Math.random()*60-30,this.y-110-Math.random()*20]],t))}}let Ou=class{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t){this.app=t,this.ctx=new Zo(this.app.container,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="";let e=0,n=this.shapes.length;for(;e<n;e++){const r=this.shapes[e];this.ctx.save(),this.transformCtxBaseOnShape(r);const i=this.ctx.isPointInPath(r.path2d,this.app.mousePoint.x,this.app.mousePoint.y)||!1;if(this.ctx.restore(),r.isMouseIn=i,i&&(this.currentMouseInShapeID=r.id,r.enableDrag)){this.currentEnableDragMouseInShapeID=r.id,this.shapes.filter(o=>o.id!==r.id).forEach(o=>{o instanceof ue&&(o.isMouseIn=!1)});break}}e>=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="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){!(t instanceof Fe)&&!(t instanceof vt)&&this.ctx.translate(t.x,t.y),this.ctx.rotate(Te(t.degree)),this.ctx.scale(t.scaleOnOrigin,t.scaleOnOrigin)}draw(t=[]){const e=[];nm(t)?e.push(...t):e.push(t),this.shapes=[],e.forEach(n=>{n instanceof pn?(n.frameUpdate(),this.shapes.push(...n.shapes)):this.shapes.push(n)});for(let n of this.shapes)if(n.isShow){if(this.ctx.save(),W.attrsToCanvas(this.ctx,n.attrs),n.followMouse&&(!Zn(n.x,this.app.mousePoint.x,5)||!Zn(n.y,this.app.mousePoint.y,5))&&(n.angleTo(this.app.mousePoint),n.followTo(this.app.mousePoint)),n.targetToAfterDragFree&&(this.isMouseDown||n.nextFrameEaseTo(new he({x:n.targetToAfterDragFree.targetX,y:n.targetToAfterDragFree.targetY}),{easing:n.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShapeID==n.id){const{dx:r,dy:i}=n.centerDiff;n.x=this.app.mousePoint.x,n.y=this.app.mousePoint.y,n.x-=r,n.y-=i,n.isDragging=!0,this.shapes.filter(o=>o.id!=n.id).forEach(o=>o.isDragging=!1)}else this.shapes.forEach(r=>r.isDragging=!1);n.frameUpdate(),this.transformCtxBaseOnShape(n),n.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill(),n.path2d=this.ctx.currentPath2D,this.ctx.restore()}return this}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof vt&&n.isPointInPath(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,r=e?.brushDensity??50,i=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=dn(i);return this.app.captureMove({move:()=>{if(this.isMouseDown){for(let c=0;c<r;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,p=this.app.mousePoint.x+Math.cos(u)*h|0,f=this.app.mousePoint.y+Math.sin(u)*h|0,g=(p+f*o.width)*4;a[g]=l.r,a[g+1]=l.g,a[g+2]=l.b,a[g+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 ag{map;constructor(t,e=120.619585,n=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),r)}}const lg=ut({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:it.colorPrimary}},setup(s){const t=s;return(e,n)=>(V(),X("span",{class:"icon",style:J(["color: "+e.color])},[xt(Dt(Jp),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),V_="",dt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,r]of t)e[n]=r;return e},en=dt(lg,[["__scopeId","data-v-8789b4ce"]]),cg={class:"loading-11",ref:"loading11"},ug={class:"container container-1"},hg={class:"container container-2"},fg={class:"container container-3"},dg=ut({__name:"Loading11",props:{color:{default:it.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(V(),X("div",cg,[E("div",{class:"loading-11-inner",style:J({width:t.width,height:t.width})},[E("div",ug,[E("div",{class:"dot dot-1",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:J({backgroundColor:t.color})},null,4)]),E("div",hg,[E("div",{class:"dot dot-1",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:J({backgroundColor:t.color})},null,4)]),E("div",fg,[E("div",{class:"dot dot-1",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:J({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:J({backgroundColor:t.color})},null,4)])],4)],512))}}),F_="",na=dt(dg,[["__scopeId","data-v-f95fac77"]]),pg={key:0,class:"loading"},mg=ut({customOptions:{Loading11:na},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,r=e,i=j(),o=j(n.borderColor),a=j(n.bgColor),l=j(n.fontColor),c=j(n.borderColor),u=j(n.bgColor);function h(I){switch(I){case"outline":o.value=n.borderColor??it.colorPrimary,a.value=n.bgColor??it.colorGrayFF,l.value=n.fontColor??it.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??it.colorPrimary,a.value=n.bgColor??it.colorPrimary,l.value=n.fontColor??it.colorGrayFF,c.value=o.value,u.value=a.value;break}}kt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const p=j(n.isDisabled?"0.6":"1"),f=j(n.isDisabled?"not-allowed":"pointer");let g=!1;const y=()=>{n.isDisabled||(g=!0,o.value=tr(c.value,10),a.value=tr(u.value,10))},b=()=>{n.isDisabled||(g=!1,o.value=c.value,a.value=u.value)},k=j(!1),N=am(()=>{n.isDisabled||k.value||(o.value=tr(c.value,-10),a.value=tr(u.value,-10),setTimeout(()=>{g?y():b()},150),r("ceClick"),r("click"),n.asyncClick&&(k.value=!0,n.asyncClick().then(()=>{k.value=!1}).catch(()=>{k.value=!1})))},500);return t({el:i}),(I,et)=>(V(),X("div",{ref_key:"el",ref:i,class:"button",style:J([`opacity: ${p.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: ${f.value}`,"user-select: none"]),onMouseover:y,onMouseleave:b,onClick:et[0]||(et[0]=(...M)=>Dt(N)&&Dt(N)(...M))},[E("label",{class:"label truncate",style:J({padding:"0 "+I.padding,cursor:f.value})},[k.value?(V(),X("div",pg,[xt(na,{color:l.value},null,8,["color"])])):Ut("",!0),zt(I.$slots,"default",{},()=>[I.icon&&I.iconPosition==="left"?(V(),Ce(en,{key:0,icon:I.icon,color:l.value,style:J({marginRight:Dt(it).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ut("",!0),E("span",{style:J({cursor:f.value})},Ct(I.label),5),I.icon&&I.iconPosition==="right"?(V(),Ce(en,{key:1,icon:I.icon,color:l.value,style:J({marginLeft:Dt(it).gap4,cursor:f.value})},null,8,["icon","color","style"])):Ut("",!0)],!0)],4)],36))}}),G_="",fe=dt(mg,[["__scopeId","data-v-ea027c50"]]),gg=["onClick","value"],vg={class:"option-inner"},yg=ut({customOptions:{Icon:en,Button:fe},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;ks(()=>{W.setStyleSheet(`
|
|
52
|
+
* 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,g,b){return setTimeout(N(p,b),g)}function f(p,g,b){return Array.isArray(p)?(d(p,b[g],b),!0):!1}function d(p,g,b){var P;if(p)if(p.forEach)p.forEach(g,b);else if(p.length!==i)for(P=0;P<p.length;)g.call(b,p[P],P,p),P++;else for(P in p)p.hasOwnProperty(P)&&g.call(b,p[P],P,p)}function m(p,g,b){var P="DEPRECATED METHOD: "+g+`
|
|
53
|
+
`+b+` AT
|
|
54
|
+
`;return function(){var Z=new Error("get-stack-trace"),at=Z&&Z.stack?Z.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",At=t.console&&(t.console.warn||t.console.log);return At&&At.call(t.console,P,at),p.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(g){if(g===i||g===null)throw new TypeError("Cannot convert undefined or null to object");for(var b=Object(g),P=1;P<arguments.length;P++){var Z=arguments[P];if(Z!==i&&Z!==null)for(var at in Z)Z.hasOwnProperty(at)&&(b[at]=Z[at])}return b}:y=Object.assign;var _=m(function(g,b,P){for(var Z=Object.keys(b),at=0;at<Z.length;)(!P||P&&g[Z[at]]===i)&&(g[Z[at]]=b[Z[at]]),at++;return g},"extend","Use `assign`."),E=m(function(g,b){return _(g,b,!0)},"merge","Use `assign`.");function D(p,g,b){var P=g.prototype,Z;Z=p.prototype=Object.create(P),Z.constructor=p,Z._super=P,b&&y(Z,b)}function N(p,g){return function(){return p.apply(g,arguments)}}function k(p,g){return typeof p==a?p.apply(g&&g[0]||i,g):p}function Q(p,g){return p===i?g:p}function A(p,g,b){d(Ct(g),function(P){p.addEventListener(P,b,!1)})}function j(p,g,b){d(Ct(g),function(P){p.removeEventListener(P,b,!1)})}function yt(p,g){for(;p;){if(p==g)return!0;p=p.parentNode}return!1}function bt(p,g){return p.indexOf(g)>-1}function Ct(p){return p.trim().split(/\s+/g)}function Rt(p,g,b){if(p.indexOf&&!b)return p.indexOf(g);for(var P=0;P<p.length;){if(b&&p[P][b]==g||!b&&p[P]===g)return P;P++}return-1}function $t(p){return Array.prototype.slice.call(p,0)}function se(p,g,b){for(var P=[],Z=[],at=0;at<p.length;){var At=g?p[at][g]:p[at];Rt(Z,At)<0&&P.push(p[at]),Z[at]=At,at++}return b&&(g?P=P.sort(function(Te,Ve){return Te[g]>Ve[g]}):P=P.sort()),P}function ne(p,g){for(var b,P,Z=g[0].toUpperCase()+g.slice(1),at=0;at<r.length;){if(b=r[at],P=b?b+Z:g,P in p)return P;at++}return i}var ue=1;function Yt(){return ue++}function xt(p){var g=p.ownerDocument||p;return g.defaultView||g.parentWindow||t}var wt=/mobile|tablet|ip(ad|hone|od)|android/i,it="ontouchstart"in t,q=ne(t,"PointerEvent")!==i,Et=it&&wt.test(navigator.userAgent),V="touch",Ut="pen",ge="mouse",Ae="kinect",Re=25,It=1,$e=2,Lt=4,ie=8,Ue=1,os=2,as=4,v=8,x=16,I=os|as,R=v|x,L=I|R,tt=["x","y"],K=["clientX","clientY"];function z(p,g){var b=this;this.manager=p,this.callback=g,this.element=p.element,this.target=p.options.inputTarget,this.domHandler=function(P){k(p.options.enable,[p])&&b.handler(P)},this.init()}z.prototype={handler:function(){},init:function(){this.evEl&&A(this.element,this.evEl,this.domHandler),this.evTarget&&A(this.target,this.evTarget,this.domHandler),this.evWin&&A(xt(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&j(this.element,this.evEl,this.domHandler),this.evTarget&&j(this.target,this.evTarget,this.domHandler),this.evWin&&j(xt(this.element),this.evWin,this.domHandler)}};function J(p){var g,b=p.options.inputClass;return b?g=b:q?g=Be:Et?g=ys:it?g=Ua:g=B,new g(p,X)}function X(p,g,b){var P=b.pointers.length,Z=b.changedPointers.length,at=g&It&&P-Z===0,At=g&(Lt|ie)&&P-Z===0;b.isFirst=!!at,b.isFinal=!!At,at&&(p.session={}),b.eventType=g,rt(p,b),p.emit("hammer.input",b),p.recognize(b),p.session.prevInput=b}function rt(p,g){var b=p.session,P=g.pointers,Z=P.length;b.firstInput||(b.firstInput=_t(g)),Z>1&&!b.firstMultiple?b.firstMultiple=_t(g):Z===1&&(b.firstMultiple=!1);var at=b.firstInput,At=b.firstMultiple,xe=At?At.center:at.center,Te=g.center=Ot(P);g.timeStamp=u(),g.deltaTime=g.timeStamp-at.timeStamp,g.angle=C(xe,Te),g.distance=O(xe,Te),ft(b,g),g.offsetDirection=Xt(g.deltaX,g.deltaY);var Ve=Vt(g.deltaTime,g.deltaX,g.deltaY);g.overallVelocityX=Ve.x,g.overallVelocityY=Ve.y,g.overallVelocity=c(Ve.x)>c(Ve.y)?Ve.x:Ve.y,g.scale=At?G(At.pointers,P):1,g.rotation=At?w(At.pointers,P):0,g.maxPointers=b.prevInput?g.pointers.length>b.prevInput.maxPointers?g.pointers.length:b.prevInput.maxPointers:g.pointers.length,ht(b,g);var _s=p.element;yt(g.srcEvent.target,_s)&&(_s=g.srcEvent.target),g.target=_s}function ft(p,g){var b=g.center,P=p.offsetDelta||{},Z=p.prevDelta||{},at=p.prevInput||{};(g.eventType===It||at.eventType===Lt)&&(Z=p.prevDelta={x:at.deltaX||0,y:at.deltaY||0},P=p.offsetDelta={x:b.x,y:b.y}),g.deltaX=Z.x+(b.x-P.x),g.deltaY=Z.y+(b.y-P.y)}function ht(p,g){var b=p.lastInterval||g,P=g.timeStamp-b.timeStamp,Z,at,At,xe;if(g.eventType!=ie&&(P>Re||b.velocity===i)){var Te=g.deltaX-b.deltaX,Ve=g.deltaY-b.deltaY,_s=Vt(P,Te,Ve);at=_s.x,At=_s.y,Z=c(_s.x)>c(_s.y)?_s.x:_s.y,xe=Xt(Te,Ve),p.lastInterval=g}else Z=b.velocity,at=b.velocityX,At=b.velocityY,xe=b.direction;g.velocity=Z,g.velocityX=at,g.velocityY=At,g.direction=xe}function _t(p){for(var g=[],b=0;b<p.pointers.length;)g[b]={clientX:l(p.pointers[b].clientX),clientY:l(p.pointers[b].clientY)},b++;return{timeStamp:u(),pointers:g,center:Ot(g),deltaX:p.deltaX,deltaY:p.deltaY}}function Ot(p){var g=p.length;if(g===1)return{x:l(p[0].clientX),y:l(p[0].clientY)};for(var b=0,P=0,Z=0;Z<g;)b+=p[Z].clientX,P+=p[Z].clientY,Z++;return{x:l(b/g),y:l(P/g)}}function Vt(p,g,b){return{x:g/p||0,y:b/p||0}}function Xt(p,g){return p===g?Ue:c(p)>=c(g)?p<0?os:as:g<0?v:x}function O(p,g,b){b||(b=tt);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.sqrt(P*P+Z*Z)}function C(p,g,b){b||(b=tt);var P=g[b[0]]-p[b[0]],Z=g[b[1]]-p[b[1]];return Math.atan2(Z,P)*180/Math.PI}function w(p,g){return C(g[1],g[0],K)+C(p[1],p[0],K)}function G(p,g){return O(g[0],g[1],K)/O(p[0],p[1],K)}var M={mousedown:It,mousemove:$e,mouseup:Lt},Y="mousedown",nt="mousemove mouseup";function B(){this.evEl=Y,this.evWin=nt,this.pressed=!1,z.apply(this,arguments)}D(B,z,{handler:function(g){var b=M[g.type];b&It&&g.button===0&&(this.pressed=!0),b&$e&&g.which!==1&&(b=Lt),this.pressed&&(b&Lt&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[g],changedPointers:[g],pointerType:ge,srcEvent:g}))}});var et={pointerdown:It,pointermove:$e,pointerup:Lt,pointercancel:ie,pointerout:ie},vt={2:V,3:Ut,4:ge,5:Ae},Tt="pointerdown",oe="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Tt="MSPointerDown",oe="MSPointerMove MSPointerUp MSPointerCancel");function Be(){this.evEl=Tt,this.evWin=oe,z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}D(Be,z,{handler:function(g){var b=this.store,P=!1,Z=g.type.toLowerCase().replace("ms",""),at=et[Z],At=vt[g.pointerType]||g.pointerType,xe=At==V,Te=Rt(b,g.pointerId,"pointerId");at&It&&(g.button===0||xe)?Te<0&&(b.push(g),Te=b.length-1):at&(Lt|ie)&&(P=!0),!(Te<0)&&(b[Te]=g,this.callback(this.manager,at,{pointers:b,changedPointers:[g],pointerType:At,srcEvent:g}),P&&b.splice(Te,1))}});var Wt={touchstart:It,touchmove:$e,touchend:Lt,touchcancel:ie},Je="touchstart",Zt="touchstart touchmove touchend touchcancel";function be(){this.evTarget=Je,this.evWin=Zt,this.started=!1,z.apply(this,arguments)}D(be,z,{handler:function(g){var b=Wt[g.type];if(b===It&&(this.started=!0),!!this.started){var P=We.call(this,g,b);b&(Lt|ie)&&P[0].length-P[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:V,srcEvent:g})}}});function We(p,g){var b=$t(p.touches),P=$t(p.changedTouches);return g&(Lt|ie)&&(b=se(b.concat(P),"identifier",!0)),[b,P]}var bn={touchstart:It,touchmove:$e,touchend:Lt,touchcancel:ie},Ti="touchstart touchmove touchend touchcancel";function ys(){this.evTarget=Ti,this.targetIds={},z.apply(this,arguments)}D(ys,z,{handler:function(g){var b=bn[g.type],P=Fn.call(this,g,b);P&&this.callback(this.manager,b,{pointers:P[0],changedPointers:P[1],pointerType:V,srcEvent:g})}});function Fn(p,g){var b=$t(p.touches),P=this.targetIds;if(g&(It|$e)&&b.length===1)return P[b[0].identifier]=!0,[b,b];var Z,at,At=$t(p.changedTouches),xe=[],Te=this.target;if(at=b.filter(function(Ve){return yt(Ve.target,Te)}),g===It)for(Z=0;Z<at.length;)P[at[Z].identifier]=!0,Z++;for(Z=0;Z<At.length;)P[At[Z].identifier]&&xe.push(At[Z]),g&(Lt|ie)&&delete P[At[Z].identifier],Z++;if(xe.length)return[se(at.concat(xe),"identifier",!0),xe]}var Gr=2500,vh=25;function Ua(){z.apply(this,arguments);var p=N(this.handler,this);this.touch=new ys(this.manager,p),this.mouse=new B(this.manager,p),this.primaryTouch=null,this.lastTouches=[]}D(Ua,z,{handler:function(g,b,P){var Z=P.pointerType==V,at=P.pointerType==ge;if(!(at&&P.sourceCapabilities&&P.sourceCapabilities.firesTouchEvents)){if(Z)m_.call(this,b,P);else if(at&&g_.call(this,P))return;this.callback(g,b,P)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function m_(p,g){p&It?(this.primaryTouch=g.changedPointers[0].identifier,_h.call(this,g)):p&(Lt|ie)&&_h.call(this,g)}function _h(p){var g=p.changedPointers[0];if(g.identifier===this.primaryTouch){var b={x:g.clientX,y:g.clientY};this.lastTouches.push(b);var P=this.lastTouches,Z=function(){var at=P.indexOf(b);at>-1&&P.splice(at,1)};setTimeout(Z,Gr)}}function g_(p){for(var g=p.srcEvent.clientX,b=p.srcEvent.clientY,P=0;P<this.lastTouches.length;P++){var Z=this.lastTouches[P],at=Math.abs(g-Z.x),At=Math.abs(b-Z.y);if(at<=vh&&At<=vh)return!0}return!1}var bh=ne(o.style,"touchAction"),xh=bh!==i,wh="compute",Sh="auto",Wa="manipulation",xn="none",Oi="pan-x",Pi="pan-y",zr=v_();function qa(p,g){this.manager=p,this.set(g)}qa.prototype={set:function(p){p==wh&&(p=this.compute()),xh&&this.manager.element.style&&zr[p]&&(this.manager.element.style[bh]=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){k(g.options.enable,[g])&&(p=p.concat(g.getTouchAction()))}),y_(p.join(" "))},preventDefaults:function(p){var g=p.srcEvent,b=p.offsetDirection;if(this.manager.session.prevented){g.preventDefault();return}var P=this.actions,Z=bt(P,xn)&&!zr[xn],at=bt(P,Pi)&&!zr[Pi],At=bt(P,Oi)&&!zr[Oi];if(Z){var xe=p.pointers.length===1,Te=p.distance<2,Ve=p.deltaTime<250;if(xe&&Te&&Ve)return}if(!(At&&at)&&(Z||at&&b&I||At&&b&R))return this.preventSrc(g)},preventSrc:function(p){this.manager.session.prevented=!0,p.preventDefault()}};function y_(p){if(bt(p,xn))return xn;var g=bt(p,Oi),b=bt(p,Pi);return g&&b?xn:g||b?g?Oi:Pi:bt(p,Wa)?Wa:Sh}function v_(){if(!xh)return!1;var p={},g=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(b){p[b]=g?t.CSS.supports("touch-action",b):!0}),p}var jr=1,ts=2,Gn=4,Js=8,Ns=Js,Di=16,vs=32;function Ms(p){this.options=y({},this.defaults,p||{}),this.id=Yt(),this.manager=null,this.options.enable=Q(this.options.enable,!0),this.state=jr,this.simultaneous={},this.requireFail=[]}Ms.prototype={defaults:{},set:function(p){return y(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=Br(p,this),g[p.id]||(g[p.id]=p,p.recognizeWith(this)),this},dropRecognizeWith:function(p){return f(p,"dropRecognizeWith",this)?this:(p=Br(p,this),delete this.simultaneous[p.id],this)},requireFailure:function(p){if(f(p,"requireFailure",this))return this;var g=this.requireFail;return p=Br(p,this),Rt(g,p)===-1&&(g.push(p),p.requireFailure(this)),this},dropRequireFailure:function(p){if(f(p,"dropRequireFailure",this))return this;p=Br(p,this);var g=Rt(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,b=this.state;function P(Z){g.manager.emit(Z,p)}b<Js&&P(g.options.event+Ch(b)),P(g.options.event),p.additionalEvent&&P(p.additionalEvent),b>=Js&&P(g.options.event+Ch(b))},tryEmit:function(p){if(this.canEmit())return this.emit(p);this.state=vs},canEmit:function(){for(var p=0;p<this.requireFail.length;){if(!(this.requireFail[p].state&(vs|jr)))return!1;p++}return!0},recognize:function(p){var g=y({},p);if(!k(this.options.enable,[this,g])){this.reset(),this.state=vs;return}this.state&(Ns|Di|vs)&&(this.state=jr),this.state=this.process(g),this.state&(ts|Gn|Js|Di)&&this.tryEmit(g)},process:function(p){},getTouchAction:function(){},reset:function(){}};function Ch(p){return p&Di?"cancel":p&Js?"end":p&Gn?"move":p&ts?"start":""}function Eh(p){return p==x?"down":p==v?"up":p==os?"left":p==as?"right":""}function Br(p,g){var b=g.manager;return b?b.get(p):p}function ls(){Ms.apply(this,arguments)}D(ls,Ms,{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,b=p.eventType,P=g&(ts|Gn),Z=this.attrTest(p);return P&&(b&ie||!Z)?g|Di:P||Z?b&Lt?g|Js:g&ts?g|Gn:ts:vs}});function Yr(){ls.apply(this,arguments),this.pX=null,this.pY=null}D(Yr,ls,{defaults:{event:"pan",threshold:10,pointers:1,direction:L},getTouchAction:function(){var p=this.options.direction,g=[];return p&I&&g.push(Pi),p&R&&g.push(Oi),g},directionTest:function(p){var g=this.options,b=!0,P=p.distance,Z=p.direction,at=p.deltaX,At=p.deltaY;return Z&g.direction||(g.direction&I?(Z=at===0?Ue:at<0?os:as,b=at!=this.pX,P=Math.abs(p.deltaX)):(Z=At===0?Ue:At<0?v:x,b=At!=this.pY,P=Math.abs(p.deltaY))),p.direction=Z,b&&P>g.threshold&&Z&g.direction},attrTest:function(p){return ls.prototype.attrTest.call(this,p)&&(this.state&ts||!(this.state&ts)&&this.directionTest(p))},emit:function(p){this.pX=p.deltaX,this.pY=p.deltaY;var g=Eh(p.direction);g&&(p.additionalEvent=this.options.event+g),this._super.emit.call(this,p)}});function Za(){ls.apply(this,arguments)}D(Za,ls,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.scale-1)>this.options.threshold||this.state&ts)},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(){Ms.apply(this,arguments),this._timer=null,this._input=null}D(Ka,Ms,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Sh]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime>g.time;if(this._input=p,!P||!b||p.eventType&(Lt|ie)&&!Z)this.reset();else if(p.eventType&It)this.reset(),this._timer=h(function(){this.state=Ns,this.tryEmit()},g.time,this);else if(p.eventType&Lt)return Ns;return vs},reset:function(){clearTimeout(this._timer)},emit:function(p){this.state===Ns&&(p&&p.eventType&Lt?this.manager.emit(this.options.event+"up",p):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Qa(){ls.apply(this,arguments)}D(Qa,ls,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xn]},attrTest:function(p){return this._super.attrTest.call(this,p)&&(Math.abs(p.rotation)>this.options.threshold||this.state&ts)}});function Ja(){ls.apply(this,arguments)}D(Ja,ls,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:I|R,pointers:1},getTouchAction:function(){return Yr.prototype.getTouchAction.call(this)},attrTest:function(p){var g=this.options.direction,b;return g&(I|R)?b=p.overallVelocity:g&I?b=p.overallVelocityX:g&R&&(b=p.overallVelocityY),this._super.attrTest.call(this,p)&&g&p.offsetDirection&&p.distance>this.options.threshold&&p.maxPointers==this.options.pointers&&c(b)>this.options.velocity&&p.eventType&Lt},emit:function(p){var g=Eh(p.offsetDirection);g&&this.manager.emit(this.options.event+g,p),this.manager.emit(this.options.event,p)}});function Xr(){Ms.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}D(Xr,Ms,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Wa]},process:function(p){var g=this.options,b=p.pointers.length===g.pointers,P=p.distance<g.threshold,Z=p.deltaTime<g.time;if(this.reset(),p.eventType&It&&this.count===0)return this.failTimeout();if(P&&Z&&b){if(p.eventType!=Lt)return this.failTimeout();var at=this.pTime?p.timeStamp-this.pTime<g.interval:!0,At=!this.pCenter||O(this.pCenter,p.center)<g.posThreshold;this.pTime=p.timeStamp,this.pCenter=p.center,!At||!at?this.count=1:this.count+=1,this._input=p;var xe=this.count%g.taps;if(xe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=Ns,this.tryEmit()},g.interval,this),ts):Ns}return vs},failTimeout:function(){return this._timer=h(function(){this.state=vs},this.options.interval,this),vs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ns&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function As(p,g){return g=g||{},g.recognizers=Q(g.recognizers,As.defaults.preset),new tl(p,g)}As.VERSION="2.0.7",As.defaults={domEvents:!1,touchAction:wh,enable:!0,inputTarget:null,inputClass:null,preset:[[Qa,{enable:!1}],[Za,{enable:!1},["rotate"]],[Ja,{direction:I}],[Yr,{direction:I},["swipe"]],[Xr],[Xr,{event:"doubletap",taps:2},["tap"]],[Ka]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var __=1,kh=2;function tl(p,g){this.options=y({},As.defaults,g||{}),this.options.inputTarget=this.options.inputTarget||p,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=p,this.input=J(this),this.touchAction=new qa(this,this.options.touchAction),Th(this,!0),d(this.options.recognizers,function(b){var P=this.add(new b[0](b[1]));b[2]&&P.recognizeWith(b[2]),b[3]&&P.requireFailure(b[3])},this)}tl.prototype={set:function(p){return y(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?kh:__},recognize:function(p){var g=this.session;if(!g.stopped){this.touchAction.preventDefaults(p);var b,P=this.recognizers,Z=g.curRecognizer;(!Z||Z&&Z.state&Ns)&&(Z=g.curRecognizer=null);for(var at=0;at<P.length;)b=P[at],g.stopped!==kh&&(!Z||b==Z||b.canRecognizeWith(Z))?b.recognize(p):b.reset(),!Z&&b.state&(ts|Gn|Js)&&(Z=g.curRecognizer=b),at++}},get:function(p){if(p instanceof Ms)return p;for(var g=this.recognizers,b=0;b<g.length;b++)if(g[b].options.event==p)return g[b];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,b=Rt(g,p);b!==-1&&(g.splice(b,1),this.touchAction.update())}return this},on:function(p,g){if(p!==i&&g!==i){var b=this.handlers;return d(Ct(p),function(P){b[P]=b[P]||[],b[P].push(g)}),this}},off:function(p,g){if(p!==i){var b=this.handlers;return d(Ct(p),function(P){g?b[P]&&b[P].splice(Rt(b[P],g),1):delete b[P]}),this}},emit:function(p,g){this.options.domEvents&&b_(p,g);var b=this.handlers[p]&&this.handlers[p].slice();if(!(!b||!b.length)){g.type=p,g.preventDefault=function(){g.srcEvent.preventDefault()};for(var P=0;P<b.length;)b[P](g),P++}},destroy:function(){this.element&&Th(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function Th(p,g){var b=p.element;if(b.style){var P;d(p.options.cssProps,function(Z,at){P=ne(b.style,at),g?(p.oldCssProps[P]=b.style[P],b.style[P]=Z):b.style[P]=p.oldCssProps[P]||""}),g||(p.oldCssProps={})}}function b_(p,g){var b=e.createEvent("Event");b.initEvent(p,!0,!0),b.gesture=g,g.target.dispatchEvent(b)}y(As,{INPUT_START:It,INPUT_MOVE:$e,INPUT_END:Lt,INPUT_CANCEL:ie,STATE_POSSIBLE:jr,STATE_BEGAN:ts,STATE_CHANGED:Gn,STATE_ENDED:Js,STATE_RECOGNIZED:Ns,STATE_CANCELLED:Di,STATE_FAILED:vs,DIRECTION_NONE:Ue,DIRECTION_LEFT:os,DIRECTION_RIGHT:as,DIRECTION_UP:v,DIRECTION_DOWN:x,DIRECTION_HORIZONTAL:I,DIRECTION_VERTICAL:R,DIRECTION_ALL:L,Manager:tl,Input:z,TouchAction:qa,TouchInput:ys,MouseInput:B,PointerEventInput:Be,TouchMouseInput:Ua,SingleTouchInput:be,Recognizer:Ms,AttrRecognizer:ls,Tap:Xr,Pan:Yr,Swipe:Ja,Pinch:Za,Rotate:Qa,Press:Ka,on:A,off:j,each:d,merge:E,extend:_,assign:y,inherit:D,bindFn:N,prefixed:ne});var x_=typeof t<"u"?t:typeof self<"u"?self:{};x_.Hammer=As,typeof i=="function"&&i.amd?i(function(){return As}):s.exports?s.exports=As:t[n]=As})(window,document,"Hammer")})(Xu);var tg=Xu.exports;const eg=Jm(tg);class Ee extends Jt{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return new de({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 ca(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 Ee({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=ms(-r,e,n),l=ms(-r,this.vx,this.vy),c=ms(-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=ms(r,o.x,o.y),m=ms(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 y=ms(r,l.x,l.y),_=ms(r,c.x,c.y);this.vx=y.x,this.vy=y.y,t.vx=_.x,t.vy=_.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 sg{constructor(){}static getFormatKeyNames(t){const e=Um(),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(ra(t.key)):Array.isArray(t.key)&&(t.key.map(i=>ra(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 Ze;const Nn=[];class me extends br{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=U.getStyle(this.container,"position");U.setStyle(this.container,{position:n=="static"?"relative":n}),this.hammer=new eg(this.container),this.mousePoint=new Ee({x:0,y:0}),e&&this.start()}emitDebounce=$m((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(Ze)return Ze;Ze=new me,window.addEventListener("hashchange",()=>{Ze.emit("hashchange",location.hash)}),window.addEventListener("popstate",()=>{Ze.emit("popstate")}),Ze.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Fm().then(e=>Gm(e[0])).then(e=>{Ze.emit("openFile",e)}).catch(e=>{Ze.emit("openFileError",e)})}),Ze.registerMatchMediaChange("(prefers-color-scheme: dark)");const t=()=>Nn.forEach(e=>e());return Ze.registerGlobalScrollChange=e=>{Nn.push(e),Nn.length==1&&document.addEventListener("scroll",t)},Ze.removeGlobalScrollChange=e=>{const n=Nn.findIndex(i=>i==e);n>=0&&(Nn.splice(n,1),Nn.length==0&&document.removeEventListener("scroll",t))},Ze}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=Xm(this.container,t);return this.mousePoint.x=e.x,this.mousePoint.y=e.y,e}registerMouseEventListeners(){const t=V=>{this.emit("mouseDown",V)},e=V=>{this.emit("mouseUp",V)},n=V=>{this.emit("mouseMove",V)},i=V=>{this.emit("mouseOver",V)},r=V=>{this.emit("mouseOut",V)},o=V=>{this.emit("mouseClick",V)},a=V=>{this.emit("mouseDoubleClick",V)},l=V=>{this.emit("mouseWheel",V)},c=V=>{this.emit("mouseContextMenu",V)},u=V=>{this.emit("touchStart",V)},h=V=>{this.emit("touchEnd",V)},f=V=>{this.emit("touchCancel",V)},d=V=>{this.emit("touchMove",V)},m=V=>{this.emit("pointerDown",V)},y=V=>{this.emit("pointerUp",V)},_=V=>{this.emit("pointerCancel",V)},E=V=>{this.emit("pointerMove",V)},D=V=>{this.emit("pan",V)},N=V=>{this.emit("panStart",V)},k=V=>{this.emit("panMove",V)},Q=V=>{this.emit("panEnd",V)},A=V=>{this.emit("panCancel",V)},j=V=>{this.emit("panLeft",V)},yt=V=>{this.emit("panRight",V)},bt=V=>{this.emit("panUp",V)},Ct=V=>{this.emit("panDown",V)},Rt=V=>{this.emit("pinch",V)},$t=V=>{this.emit("press",V)},se=V=>{this.emit("rotate",V)},ne=V=>{this.emit("swipe",V)},ue=V=>{this.emit("swipeLeft",V)},Yt=V=>{this.emit("swipeRight",V)},xt=V=>{this.emit("swipeUp",V)},wt=V=>{this.emit("swipeDown",V)},it=V=>{this.emit("tap",V)},q=V=>{!V.target||this.container==V.target||this.container.contains(V.target)||this.emit("tapOutSide",V)};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",y),this.container.addEventListener("pointercancel",_),this.container.addEventListener("pointermove",E),this.hammer.on("pan",D),this.hammer.on("panstart",N),this.hammer.on("panmove",k),this.hammer.on("panend",Q),this.hammer.on("pancancel",A),this.hammer.on("panleft",j),this.hammer.on("panright",yt),this.hammer.on("panup",bt),this.hammer.on("pandown",Ct),this.hammer.on("pinch",Rt),this.hammer.on("press",$t),this.hammer.on("rotate",se),this.hammer.on("swipe",ne),this.hammer.on("swipeleft",ue),this.hammer.on("swiperight",Yt),this.hammer.on("swipeup",xt),this.hammer.on("swipedown",wt),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",y),this.container.removeEventListener("pointercancel",_),this.container.removeEventListener("pointermove",E),this.hammer.off("pan",D),this.hammer.off("panstart",N),this.hammer.off("panmove",k),this.hammer.off("panend",Q),this.hammer.off("pancancel",A),this.hammer.off("panleft",j),this.hammer.off("panright",yt),this.hammer.off("panup",bt),this.hammer.off("pandown",Ct),this.hammer.off("pinch",Rt),this.hammer.off("press",$t),this.hammer.off("rotate",se),this.hammer.off("swipe",ne),this.hammer.off("swipeleft",ue),this.hammer.off("swiperight",Yt),this.hammer.off("swipeup",xt),this.hammer.off("swipedown",wt),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=sg.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 pa{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(()=>{pa.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 ng extends br{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=Tu(this.source);if(t===0){this.emit("finish");return}let e,n,i=Ou(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=Ou(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==`
|
|
55
|
+
`&&this.emit("newline"),this.act(t,e,n)}act(t,e,n){switch(this.mode){case"text":switch(t){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t;break}break;case"entity":Ps("whitespace",t)?(this.textchunk+=U.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=U.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(n=="!"&&t=="-"&&e=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&t=="["){this.mode="cdata",this.textchunk="";break}if(t==">"||t=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=t;break;case"cdata":if(n=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,n)),this.textchunk+=t;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":e==">"||t=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":t=="-"&&n=="-"&&e==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):t=="eof"?this.emit("comment",this.textchunk):this.textchunk+=t;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(t=="?"&&e==">"){this.mode="declaration end";break}t=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=t;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(t=="eof"){this.emit("text","<");break}if(!Ps("whitespace",t)){if(this.mode="tag name",t=="/"){this.mode="close tag name start";break}else if(t=="!"){this.mode="special",this.textchunk="";break}else if(t=="?"){this.mode="declaration";break}this.act(t,e,n)}break;case"close tag name start":Ps("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(Ps("whitespace",t))this.tagname=this.nodename;else switch(t){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=t);break}break;case"tag name":if(Ps("whitespace",t))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(t){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=e,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=t;break}break;case"attr start":Ps("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(Ps("whitespace",t)||t=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(t){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=t;break}break;case"attr value start":if(!Ps("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,n)}break;case"attr value":if(Ps("whitespace",t)&&!this.quote)this.mode="attr start";else if(t==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(t){case'"':case"'":this.quote==t&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function Hu(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}}}me.page.on("matchMediaChangePrefersColorSchemeDark",s=>{ma(s?"dark":"light")}),ig();function ma(s){Hu("colorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function ig(){const s=Hu("colorScheme");if(s=="dark"||s=="light")return ma(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return ma(t),t}}const ot={safeAreaTop:U.getCSSVar("--safe-area-inset-top"),safeAreaRight:U.getCSSVar("--safe-area-inset-right"),safeAreaBottom:U.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:U.getCSSVar("--safe-area-inset-left"),colorPrimary:U.getCSSVar("--color-primary")||"#5078f0",colorRed:U.getCSSVar("--color-red")||"#ff5050",colorOrange:U.getCSSVar("--color-orange")||"#fa8c00",colorYellow:U.getCSSVar("--color-yellow")||"#fadc32",colorGreen:U.getCSSVar("--color-green")||"#00c878",colorBlue:U.getCSSVar("--color-blue")||"#00b4fa",colorPurple:U.getCSSVar("--color-purple")||"#6464fa",colorBlack:U.getCSSVar("--color-black")||"#001428",colorGray00:U.getCSSVar("--color-gray-00")||"#000000",colorGray33:U.getCSSVar("--color-gray-33")||"#333333",colorGray66:U.getCSSVar("--color-gray-66")||"#666666",colorGray99:U.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:U.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:U.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:U.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:U.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:U.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:U.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:U.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:U.getCSSVar("--font-line-height")||"1,4",fontSize32:U.getCSSVar("--font-size-32")||"32px",fontSize24:U.getCSSVar("--font-size-24")||"24px",fontSize20:U.getCSSVar("--font-size-20")||"20px",fontSize18:U.getCSSVar("--font-size-18")||"18px",fontSize16:U.getCSSVar("--font-size-16")||"16px",fontSize14:U.getCSSVar("--font-size-14")||"14px",fontSize12:U.getCSSVar("--font-size-12")||"12px",fontSize11:U.getCSSVar("--font-size-11")||"11px",gap4:U.getCSSVar("--gap-4")||"4px",gap8:U.getCSSVar("--gap-8")||"8px",gap12:U.getCSSVar("--gap-12")||"12px",gap16:U.getCSSVar("--gap-16")||"16px",gap20:U.getCSSVar("--gap-20")||"20px",gap40:U.getCSSVar("--gap-40")||"40px",height44:U.getCSSVar("--height-44")||"44px",height32:U.getCSSVar("--height-32")||"32px",borderRadius:U.getCSSVar("--border-radius")||"4px"},rg=["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"];function Ws(s,t){if(s.hasOwnProperty("r")&&s.hasOwnProperty("g")&&s.hasOwnProperty("b"))return s.r=Math.round(Xe(s.r,0,255)),s.g=Math.round(Xe(s.g,0,255)),s.b=Math.round(Xe(s.b,0,255)),s.hasOwnProperty("a")?s.a=typeof t=="number"?t:s.a:s.a=typeof t=="number"?t:1,s.a=Xe(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=qe(parseFloat(i[4]),2)))}else if(s[0]==="#")n=parseInt(s.slice(1,7),16),s.length>7&&(e.a=qe(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=Xe(e.a,0,1),e}function og(s,t=!1){let e=Ws(s);return t?e=Ws(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 Cr(s,t){const e=Ws(s,t);return e.a===1?`rgb(${e.r},${e.g},${e.b})`:`rgba(${e.r},${e.g},${e.b},${e.a})`}function Er(s){return Tm(s.toString(16),2,"0","left")}function qs(s,t){const e=Ws(s,t);let n=`#${Er(e.r)}${Er(e.g)}${Er(e.b)}`;return e.a===1?n:n+`${Er(Math.ceil(e.a*255))}`}function ag(s,t=!1){return qs(og(s,t))}const lg=()=>Math.random()*16777215,Ne=()=>qs(lg());function yi(s,t){const e=Ws(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(Xe(e.r,0,255)),e.g=Math.round(Xe(e.g,0,255)),e.b=Math.round(Xe(e.b,0,255)),qs(e)}function Uu(s,t,e){try{const n=Ws(s),i=Ws(t);return qs({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 Mn(){return typeof performance=="object"&&typeof performance.now=="function"?performance.now():Date.now()}(function(){let s=Mn();window.requestAnimationFrame||(window.requestAnimationFrame=function(t){const e=Mn(),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 cg=s=>{let t=!1;return window.requestAnimationFrame(function e(n){s(n),t||window.requestAnimationFrame(e)}),()=>{t=!0}};class ug{id=0;cbs={};cancelAnimateCycle;constructor(){}get length(){return Object.keys(this.cbs).length}run(t){this.cbs[this.id++]=t,!this.cancelAnimateCycle&&(this.cancelAnimateCycle=cg(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=Mn();return this.run(r=>n?!1:r-i>=e?(t(),!1):!0),()=>{n=!0}}}const jt=new ug,kr=new Map;async function hg(s){return new Promise((t,e)=>{dg(s,(n,i)=>n?e(n):t({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const dg=(s,t)=>{if(kr.has(s))return t(null,kr.get(s));const e=new Image;e.onload=function(){kr.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,kr.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class rs extends Jt{shapes=[];renderGroup;constructor(t){super(t),this.renderGroup=new zu({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 fg=rs;let vi;typeof self>"u"&&typeof process<"u"&&process.hrtime?vi=function(){const s=process.hrtime();return s[0]*1e3+s[1]/1e6}:typeof self<"u"&&self.performance!==void 0&&self.performance.now!==void 0?vi=self.performance.now.bind(self.performance):Date.now!==void 0?vi=Date.now:vi=function(){return new Date().getTime()};const An=vi;class _i{static _nextId=0;static nextId(){return _i._nextId++}}const Tr={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-Tr.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?Tr.Bounce.In(s*2)*.5:Tr.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}},ga=Tr,bi={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=bi.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=bi.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=bi.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=bi.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)}},ya=bi;class Wu{_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=An(),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 Ke=new Wu;class qu{constructor(t,e=Ke){this._object=t,this._group=e}_id=_i.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=ga.Linear.None;_interpolationFunction=ya.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=An()){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=An()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=An()){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=Ke){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=ga.Linear.None){return this._easingFunction=t,this}interpolation(t=ya.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=An(),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 pg=qu,mg=_i.nextId,gg=Ke.getAll.bind(Ke),yg=Ke.removeAll.bind(Ke),vg=Ke.add.bind(Ke),_g=Ke.remove.bind(Ke),bg=Ke.update.bind(Ke),dt={now:An,Sequence:_i,Easing:ga,Interpolation:ya,Group:Wu,Tween:pg,nextId:mg,getAll:gg,removeAll:yg,add:vg,remove:_g,update:bg};function xg(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},He={easeName:"linear",begin:0,dur:300,repeatCount:1,direction:"normal",fill:"freeze",keyTimes:[0,1]};class fe{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 me(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?.()),jt.run(()=>{const m=f.update(d?.());if(n?.precision){let y=!0;for(let _ in t)fi(t[_],e[_],n.precision)||(y=!1);return y?!1:m}return m})}}}static toTweenGroup(t,e){if(t instanceof qu)return n=>{t.start(),e?.onGroupStart?.(),jt.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?.(),jt.run(()=>{const r=n.update(i?.());return r?e?.onGroupUpdate?.():e?.onGroupComplete?.(),r})}}}static toTweenCSS(t,e,n,i){U.add3DSupport(t);const r=i?.onUpdate||(()=>{});return fe.toTween(e,n,Object.assign(i||{},{onUpdate:(o,a)=>{const l=U.convertAttrs(t,o);U.setStyle(t,l),r(o,a)}}))}addAnimateObject(t=wg,e=He,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(xg(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=He,o=this.objects.length-1){let a=!0,l=!1,c=!1,u=!1;const h=this.objects.length-1;o=Xe(o,0,h);let f=o-1;f=Xe(f,0,h);let d=o+1;d=Xe(d,0,h);const m=this.objects[o],y=this.objects[f],_=this.objects[d];if(y&&f!==o){const E=t(y);E&&(this.addAnimateObject(E,r,f,a),a=!1,l=!0)}if(m){const E=e(m);E&&(this.addAnimateObject(E,r,o,a),a=!1,c=!0)}if(_&&d!==o){const E=n(_);E&&(this.addAnimateObject(E,r,d,a),a=!1,u=!0)}this.objects.forEach((E,D)=>{if(!(D==f&&l||D==o&&c||D==d&&u)){const N=i(E);N&&(this.addAnimateObject(N,r,D,a),a=!1)}})}toCSS(t,...e){if(this.objects.length==0)return;this.currentAnimateName=t,this[t](...e),U.add3DSupport(this.objects[0].el),this.objects.forEach((r,o)=>{U.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((y,_)=>{const E=l[_][r.direction=="reverse"?c-1-f:f];d[y]=E});const m=U.convertAttrs(r.el,d,r.originAttrs);f==0||r.immediate?U.setStyle(r.el,Object.assign(m,{transition:"none"})):(jt.runAccurateSetTimeout(()=>{U.setStyle(r.el,Object.assign(m,{transition:`all ${r.realKeyTimes[f]}ms cubic-bezier(${r.keySplines[f-1].join(",")})`}))},u),u+=r.realKeyTimes[f])}),jt.runAccurateSetTimeout(()=>{r.fill==="remove"&&U.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=He,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=He,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=He,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=He,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=He,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=He,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=He,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=He,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=He,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=He,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=He,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 Sg extends ng{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=Vm(e);for(let i of n.stylesheet.rules)for(let r of i.declarations)for(let o of i.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${r.property}:${r.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(let a in this.groups[i])a=="transform"?r=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?o=this.globalStyles["."+this.groups[i][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?o=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=r:this.currentItem.transform+=" "+r,typeof this.currentItem.style>"u"?this.currentItem.style=o:this.currentItem.style=o+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),_a(this.currentItem.style,this.currentItem,ba)}switch(this.processAttrs(e,n),e){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(t,e){let n=[],i;switch(t){case"svg":let r="",o="";if(e.width&&e.height)r=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(r=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}r&&o&&this.items.push({type:"viewbox",width:r,height:o});break;case"line":typeof e.x1=="number"&&typeof e.y1=="number"&&typeof e.x2=="number"&&typeof e.y2=="number"&&(this.currentItem.path="M"+[e.x1,e.y1,e.x2,e.y2]);break;case"stop":i={},e.style&&_a(e.style,i),i.offset=i.offset||e.offset,i.color=i["stop-color"]||e["stop-color"],i.opacity=i["stop-opacity"]||e["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+va(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":n=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in e){const o=e[r];if(ba.includes(r)&&(this.currentItem[r]=o),r==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:r,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:r,stops:[]})),r==="style"&&_a(o,this.currentItem,ba),r==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),r==="fill"){const a=o.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}r==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),r==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),r==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function va(s,t,e,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return va(s,t,i,r)-va(e,n,i,r)}function _a(s,t,e){const n=(s+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=n.length;r<o;r++){let a=n[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const ba=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];class Cg{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShapeID="";currentEnableDragMouseInShapeID="";constructor(t,e,n){this.app=t,this.rootEl=Qt.createSVGElement("svg"),U.empty(this.app.container),U.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 gt)&&!o.pathd){o.isMouseIn=!1,o.mouseX=0,o.mouseY=0;continue}const a=o instanceof gt&&(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 gt&&(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 Jt&&(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 U.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return Qt.downloadFromSVGElement(this.rootEl)}path(t){[...Array.isArray(t)?t:[t]].forEach(e=>{if(e instanceof rs){e.frameUpdate(),e.shapes.forEach(n=>this.path(n));return}if(!e.el){if(e instanceof Dr)e.el=this.text(e.text,e.x,e.y,Iu(e.attrs,(n,i)=>typeof i=="string"));else if(e instanceof ke)e.el=Qt.createSvgPath(`M ${e.fromX} ${e.fromY} `+e.toSVGPathD()),U.insert(this.rootEl,e.el);else if(e instanceof gt)e.el=Qt.createSvgPath(e.toSVGPathD()),U.insert(this.rootEl,e.el);else if(e instanceof Jt){const n=gt.fromShape(e)||e;e.el=n.el=Qt.createSvgPath(n.toSVGPathD()),U.insert(this.rootEl,e.el),n instanceof gt&&(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 rs?(e.frameUpdate(),n.push(...e.shapes)):n.push(e),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 Jt&&(i.isDragging=!1);(i instanceof ke||i instanceof gt||i.pathd instanceof gt)&&this.attr(i,"d",i instanceof ke?`M ${i.fromX} ${i.fromY} `+i.toSVGPathD():i.pathd instanceof gt?i.pathd.toSVGPathD():i.toSVGPathD()),i instanceof Dr&&(i.setAttr("x",String(i.x)),i.setAttr("y",String(i.y))),this.attr(i,Iu(i.attrs,(r,o)=>typeof o=="string")),i.frameUpdate(),i instanceof gt?i.updateTransform():i.pathd&&i.pathd.updateFromShape(i),i.el&&(i.isShow?U.show(i.el):U.hide(i.el))})})}click(t){const e=()=>{this.shapes.forEach(n=>{(n instanceof gt&&(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 gt&&(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 rs?t.shapes:[t]].forEach(e=>{e.el&&U.remove(e.el),e.pathd?.el&&U.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&&U.remove(t.el),t.pathd?.el&&U.remove(t.pathd?.el),delete t.el,delete t.pathd}),U.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?U.attribute(i):typeof e=="string"&&n===void 0?U.attribute(i,Ye(e))||"":(typeof e=="object"?U.attribute(i,e):typeof e=="string"&&n!==void 0&&U.attribute(i,Ye(e),n),this):this}circle(t,e,n){return this.path(new Ee({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=Qt.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return U.insert(this.rootEl,i),i}ellipse(t,e,n,i){return this.path(new Pg({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=Qt.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return U.insert(this.rootEl,r),r}rect(t,e,n,i){return this.path(new de({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=Qt.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return U.insert(this.rootEl,r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=Qt.createSVGElement("text",{x:String(e),y:String(n)});return U.html(r,t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),U.insert(this.rootEl,r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=Qt.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
|
|
56
|
+
`).forEach((a,l)=>{if(a.trim()){const c=Qt.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});U.html(c,a),U.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),U.insert(this.rootEl,o),o}}const Zu=Eg("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 Eg(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"]=" ",e}function Me(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 Or(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 kg(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function Tg(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const xi={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 xa{__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",Me("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 Ku{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class Pr{__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(xi);for(let e=0,n=t.length;e<n;e++){const i=t[e];this[i]=xi[i].canvas}}__getStyleState(){const t={},e=Object.keys(xi);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(xi);for(let r=0;r<i.length;r++){const o=xi[i[r]],a=this[i[r]];if(o.apply){if(a instanceof Ku){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,Me("url(#{id})",{id:a.__root.getAttribute("id")}))}else if(a instanceof xa)e.setAttribute(o.apply,Me("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,Me("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(Zu);for(let r=0,o=i.length;r<o;r++){const a=i[r],l=Zu[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(Me("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Me("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Me("translate({x},{y})",{x:t,y:e}))}transform(t,e,n,i,r,o){this.__addTransform(Me("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(Me("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(Me("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Me("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,n,i,r,o){this.__currentPosition={x:r,y:o},this.__addPathCommand(Me("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(Me("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],y=e+d*f[1],_=[-l[1],l[0]],E=[c[1],-c[0]],D=function(Q){const A=Q[0];return Q[1]>=0?Math.acos(A):-Math.acos(A)},N=D(_),k=D(E);this.lineTo(m+_[0]*r,y+_[1]*r),this.arc(m,y,r,N,k)}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:Or(this.__ids),x1:t+"px",x2:n+"px",y1:e+"px",y2:i+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(r),new xa(r,this)}createRadialGradient(t,e,n,i,r,o){const a=this.__createElement("radialGradient",{id:Or(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 xa(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":kg(this.textAlign),"dominant-baseline":Tg(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(Me("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=Or(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",Me("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,y,_;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 E=this.__closestGroupOrSvg();this.__currentElement;const D="translate("+n+", "+i+")";if(e instanceof Pr){if(h=e.getSvg().cloneNode(!0),h.childNodes&&h.childNodes.length>1){for(f=h.childNodes[0];f.childNodes.length;)_=f.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(f.childNodes[0]);if(d=h.childNodes[1],d){const N=d.getAttribute("transform");let k;N?k=N+" "+D:k=D,d.setAttribute("transform",k),E.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)&&(y=this.__document.createElement("canvas"),y.width=r,y.height=o,y.getContext("2d")?.drawImage(e,a,l,c,u,0,0,r,o),e=y),m.setAttribute("transform",D),m.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),E.appendChild(m))}createPattern(t,e){const n=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),i=Or(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 Pr&&(n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(n)),new Ku(n,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class wa{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 Pr({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 ke extends Jt{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 ke({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=In(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 gi({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 gi({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 Sa extends ke{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 Sa({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=Qt.curveDim(this.fromX,this.fromY,this.c1x,this.c1y,this.c2x,this.c2y,this.x,this.y);return new gi({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 Qt.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||Qt.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=Qt.bezlen(e,n,i,r,o,a,l,c,f);Math.abs(d-t)>m;)h/=2,f+=(d<t?1:-1)*h,d=Qt.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,y=m*e,_=f*n+d*3*e*r+h*3*e*e*a+y*c,E=f*i+d*3*e*o+h*3*e*e*l+y*u,D=n+2*e*(r-n)+m*(a-2*r+n),N=i+2*e*(o-i)+m*(l-2*o+i),k=r+2*e*(a-r)+m*(c-2*a+r),Q=o+2*e*(l-o)+m*(u-2*l+o),A=h*n+e*r,j=h*i+e*o,yt=h*a+e*c,bt=h*l+e*u,Ct=90-Math.atan2(D-k,N-Q)*180/Math.PI;return{x:_,y:E,m:{x:D,y:N},n:{x:k,y:Q},start:{x:A,y:j},end:{x:yt,y:bt},alpha:Ct}}}const Zs=Sa;class vn extends ke{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 vn({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 Og=vn;class Ca extends ke{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 Ca({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,y=d*d/(r*r)+m*m/(o*o);if(y>1){const Rt=Math.sqrt(y);throw r=Rt*r,o=Rt*o,new Error(`Radii are too small to build an arc. Correcting them to ${r}/${o}.`)}const _=Math.sqrt((r*r*o*o-r*r*m*m-o*o*d*d)/(r*r*m*m+o*o*d*d)),E=l!=c?1:-1,D=E*_*r*m/o,N=E*_*-o*d/r,k=(t+n)/2,Q=(e+i)/2,A=Math.cos(u)*D-Math.sin(u)*N+k,j=Math.sin(u)*D+Math.cos(u)*N+Q,yt=(Rt,$t,se,ne)=>(Rt*ne>=$t*se?1:-1)*Math.acos((Rt*se+$t*ne)/(Math.sqrt(Rt*Rt+$t*$t)*Math.sqrt(se*se+ne*ne))),bt=yt(1,0,t-A,e-j)-u,Ct=yt(t-A,e-j,n-A,i-j);return[A,j,r,o,u,bt,bt+Ct]}}const Ea=Ca;class gt extends Jt{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 Ea){Gu(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,y,_,E]=c;this.normalizedLines.push(new Zs({c1x:f,c1y:d,c2x:m,c2y:y,x:_,y:E,fromX:this.prevPathX,fromY:this.prevPathY})),this.prevPathX=_,this.prevPathY=E});return}let e,n,i,r,o,a;t instanceof Zs?(e=t.c1x,n=t.c1y,i=t.c2x,r=t.c2y,o=t.x,a=t.y):t instanceof Og?[e,n,i,r,o,a]=da(this.prevPathX,this.prevPathY,t.cx,t.cy,t.x,t.y):[e,n,i,r,o,a]=mi(this.prevPathX,this.prevPathY,t.x,t.y),this.normalizedLines.push(new Zs({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 gt(e);return n.updateFromSVGPathD(t),n}static fromSVGPathData(t,e){const n=new gt(e);return n.updateFromSVGPathData(t),n}static fromShape(t,e){const n=new gt(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){Qt.isSVGPath(t)&&this.updateFromSVGPathData(Qt.parseSVGPath(t))}updateFromSVGPathData(t){this.normalizedLines=[];const e=Qt.normalizeSVGPath(Qt.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 Zs({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=Qt.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,Qm(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 je().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 je().rotate(t,e,n);return this.transform(i),this.prevDegree=this.degree,this}scale(t,e=t,n=0,i=0){const r=new je().scale(t,e,n,i);return this.transform(r),this.prevScalexOnOrigin=this.scalexOnOrigin,this.prevScaleyOnOrigin=this.scaleyOnOrigin,this}skewx(t){const e=new je().skew(t,0);return this.transform(e),this.prevSkewxDegreeOnOrigin=this.skewxDegreeOnOrigin,this}skewy(t){const e=new je().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=Qt.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 gi({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 gt;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 Zs({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 Zs({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=ha(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=ha(u.x,u.y,t,e),f=r+a,d=this.getPointAtLength(f),m=ha(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?In(l.x,l.y,i.x,i.y):In(i.x,i.y,l.x,l.y),distance:Math.sqrt(o)}}isPointInPath(t,e,n){if(n instanceof wa)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 wa)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 fe.toTween({offset:e},{offset:0},Object.assign(t||{},{onUpdate:(i,r)=>{this.setAttr("strokeDashoffset",""+qe(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 gt({x:t[0],y:t[1]});for(let n=2;n+5<t.length;n+=6)e.appendLine(new Zs({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+=ua(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 gt.fromSVGPathData(o)}static mixPoints(t,e,n){const i=t.length,r=new Array(i);for(let o=0;o<i;o++)r[o]=qe(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():gt.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=gt.fromSVGPathD(n[0](0));return r=>{const o=qe(e*r,6),a=Math.min(Math.floor(o),e-1),l=qe(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",Uu(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",Uu(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 gt({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 Ea({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1})),o.appendLine(new Ea({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1}))}return o}}class gs extends fg{svgWidth=0;svgHeight=0;width=0;height=0;shapes=[];constructor(t){if(super(t),!t?.svg)return;const e=new Sg(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"||!yn.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=yn.absolutizeSVGPath(yn.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=gt.fromSVGPathData(u,t),f=Yu(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 gt)super.addShape(n);else{const i=gt.fromShape(n,{...e});i&&super.addShape(i)}})}static fromShape(t,e){const n=new gs;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:fe.toTweenGroup(n[0],t)};case"parallel":default:return{startAuto:fe.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 gt({x:o,y:a,attrs:{...t.shapes[i].attrs}});for(let c=2;c+5<r.length;c+=6)l.appendLine(new Zs({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(gt.polymorph(a)));const o=new gs;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}}class Pg extends Jt{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return new de({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 Rn extends Jt{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}=Is(a,n);r.push(new Ee({x:t+l,y:e+c}))}return new Rn(r)}}class Dr extends Jt{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=Hs(this.getAttr("fontSize"),10).number,n=Hs(this.getAttr("fontWeight"),400).number,i=U.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 Ir extends Jt{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 ka extends Jt{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 Dg extends gt{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 Ig extends gt{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 Qu extends gt{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(Nt(i)),o=this.y+this.r*Math.sin(Nt(i));e+="L"+r+","+o}this.updateFromSVGPathD(e)}}class Ng extends gt{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 Mg extends gt{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 Ag extends gs{constructor(t){super(t),this.addShape(gt.fromSVGPathData([["M",this.x,this.y],["L",this.x,this.y-140-Math.random()*20]],{renderGroup:this.renderGroup,...t})),this.addShape(gt.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(gt.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 Rg extends rs{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 Dr({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.attrs,fill:ag(this.bg,!0),textAnchor:"start"}}),this.bgShape=new de({...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 $g extends rs{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Ee;p1Offset=10;p2=new Ee;p2Offset=40;p3=new Ee;p3Offset=10;p4=new Ee;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 ke({fromX:this.p1.x,fromY:this.p1.y,x:this.p2.x,y:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new ke({fromX:this.p2.x,fromY:this.p2.y,x:this.p3.x,y:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Dr({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 Rg({x:0,y:0,text:this.tip,isShow:!1}),this.sector=new Vg({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}=Is(Nt(t),this.sector.radius+this.p1Offset);this.p1.x=this.x+e,this.p1.y=this.y+n;const{dx:i,dy:r}=Is(Nt(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 Vg extends Jt{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}=Is(Nt(this.startDegree),this.radius),{dx:n,dy:i}=Is(Nt(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,Nt(this.startDegree),Nt(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=ua(this.x,this.y,t,e),i=ze(In(this.x,this.y,t,e));return n<this.radius&&i>this.startDegree&&i<this.endDegree}}class Lg extends rs{showFlame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=gt.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=gt.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}}let Ju=class extends rs{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=Nm(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||ot.colorGrayF5,this.handleColor=t?.handleColor||ot.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 de({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 de({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=gt.fromSVGPathData([["M",this.x+this.handleSize*.5,this.y],["l",this.realBarWidth,0]]),this.handle=new Ee({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 wi extends gs{constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.addShape([gt.fromShape(new de({...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}),gt.fromShape(new Ee({...t,x:this.x,y:this.y,radius:2}),{renderGroup:this.renderGroup,...t}),gt.fromShape(new Ee({...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(Nt(this.degree))*this.width,y:this.y+Math.sin(Nt(this.degree))*this.width}}}class Ta extends Jt{constructor(t){super(t),this.update(t)}update(t){this.x=t.x,this.y=t.y,this.radius=t.radius,this.startDegree=t.startDegree+180,this.endDegree=t.endDegree+180,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.colorGradient||t.color||"none"})}frameUpdate(){}toSVGPathData(){const{dx:t,dy:e}=Is(Nt(this.startDegree),this.radius),{dx:n,dy:i}=Is(Nt(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,Nt(this.startDegree),Nt(this.endDegree),!1)}}class Fg extends rs{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:y,scalar:_,flat:E}=oa(n||{},{shape:Qu,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:rg,scalar:1,flat:!1}),D=t*r,N=e*o,k=Nt(l),Q=Nt(c);let A=a;for(;A--;){const j=new i({x:D,y:N,transformBaseOnSelfInRenderGroup:!0,scaleOnOrigin:_,attrs:{fill:y[A%y.length]}});this.addShape(j),this.fettis.push({shape:j,x:D,y:N,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-k+(.5*Q-Math.random()*Q),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:_,flat:E})}}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",Cr(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=ze(Math.PI/10*t.wobble),t.shape.x=t.x,t.shape.y=t.y,t.tick<t.totalTicks}}class th{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 wa(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 Jt&&(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 gt||(t instanceof ke||this.ctx.translate(t.x,t.y),this.ctx.rotate(Nt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalexOnOrigin,t.scaleyOnOrigin,t.cX,t.cY))}_addShape(t){t instanceof rs?(t.frameUpdate(),t.shapes.forEach(e=>{e instanceof rs?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(),U.attrsToCanvas(this.ctx,e.attrs),e.followMouse&&(!fi(e.x,this.app.mousePoint.x,5)||!fi(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 gt&&(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=Ws(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 Gg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const zg=lt({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("span",{class:"icon",style:W(["color: "+e.color])},[pt(Ft(Cm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),E_="",ut=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},_n=ut(zg,[["__scopeId","data-v-8789b4ce"]]),jg={class:"loading-11",ref:"loading11"},Bg={class:"container container-1"},Yg={class:"container container-2"},Xg={class:"container container-3"},Hg=lt({__name:"Loading11",props:{color:{default:ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(F(),H("div",jg,[S("div",{class:"loading-11-inner",style:W({width:t.width,height:t.width})},[S("div",Bg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)]),S("div",Yg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)]),S("div",Xg,[S("div",{class:"dot dot-1",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-2",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-3",style:W({backgroundColor:t.color})},null,4),S("div",{class:"dot dot-4",style:W({backgroundColor:t.color})},null,4)])],4)],512))}}),k_="",Oa=ut(Hg,[["__scopeId","data-v-f95fac77"]]),Ug={key:0,class:"loading"},Wg=lt({customOptions:{Loading11:Oa},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=$(),o=$(n.borderColor),a=$(n.bgColor),l=$(n.fontColor),c=$(n.borderColor),u=$(n.bgColor);function h(k){switch(k){case"outline":o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorGrayFF,l.value=n.fontColor??ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??ot.colorPrimary,a.value=n.bgColor??ot.colorPrimary,l.value=n.fontColor??ot.colorGrayFF,c.value=o.value,u.value=a.value;break}}Dt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const f=$(n.isDisabled?"0.6":"1"),d=$(n.isDisabled?"not-allowed":"pointer");let m=!1;const y=()=>{n.isDisabled||(m=!0,o.value=yi(c.value,10),a.value=yi(u.value,10))},_=()=>{n.isDisabled||(m=!1,o.value=c.value,a.value=u.value)},E=$(!1),N=Rm(()=>{n.isDisabled||E.value||(o.value=yi(c.value,-10),a.value=yi(u.value,-10),setTimeout(()=>{m?y():_()},150),i("ceClick"),i("click"),n.asyncClick&&(E.value=!0,n.asyncClick().then(()=>{E.value=!1}).catch(()=>{E.value=!1})))},500);return t({el:r}),(k,Q)=>(F(),H("div",{ref_key:"el",ref:r,class:"button",style:W([`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:y,onMouseleave:_,onClick:Q[0]||(Q[0]=(...A)=>Ft(N)&&Ft(N)(...A))},[S("label",{class:"label truncate",style:W({padding:"0 "+k.padding,cursor:d.value})},[E.value?(F(),H("div",Ug,[pt(Oa,{color:l.value},null,8,["color"])])):qt("",!0),Gt(k.$slots,"default",{},()=>[k.icon&&k.iconPosition==="left"?(F(),Ie(_n,{key:0,icon:k.icon,color:l.value,style:W({marginRight:Ft(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):qt("",!0),S("span",{style:W({cursor:d.value})},kt(k.label),5),k.icon&&k.iconPosition==="right"?(F(),Ie(_n,{key:1,icon:k.icon,color:l.value,style:W({marginLeft:Ft(ot).gap4,cursor:d.value})},null,8,["icon","color","style"])):qt("",!0)],!0)],4)],36))}}),T_="",ve=ut(Wg,[["__scopeId","data-v-ea027c50"]]),qg=["onClick","value"],Zg={class:"option-inner"},Kg=lt({customOptions:{Icon:_n,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;zs(()=>{U.setStyleSheet(`
|
|
57
57
|
:root {
|
|
58
|
-
--select-option-bg-color: ${
|
|
59
|
-
--select-option-bg-color-hover: ${
|
|
58
|
+
--select-option-bg-color: ${ot.colorGrayFF};
|
|
59
|
+
--select-option-bg-color-hover: ${ot.colorGrayF5};
|
|
60
60
|
}
|
|
61
|
-
`)});const
|
|
61
|
+
`)});const i=$(!1),r=$(e.initIndex);Dt(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)=>(F(),H("div",{class:"select",style:W(["font-size:"+l.fontSize])},[S("div",{onClick:o},[Gt(l.$slots,"button",{selectedIndex:r.value},()=>[pt(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Es(S("div",{class:"options",style:W({border:"1px solid "+Ft(ot).colorGrayCC})},[(F(!0),H(zt,null,Ce(l.options,(u,h)=>(F(),H("div",{onClick:f=>a(h),class:"option",key:h,value:h,style:W({borderTop:(h==0?"0":"1px")+" solid "+Ft(ot).colorGrayCC})},[S("div",Zg,[Gt(l.$slots,"default",{item:u,index:h},()=>[S("span",null,kt(u),1),h==r.value?(F(),Ie(_n,{key:0,icon:"mingcute:check-fill",class:"icon"})):qt("",!0)],!0)])],12,qg))),128))],4),[[ps,i.value]])],4))}}),O_="",Qg=ut(Kg,[["__scopeId","data-v-8bb25be3"]]),Jg=["width","height"],t0=["fill"],e0=lt({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:ot.colorGrayCC}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:t.color},null,8,t0)],8,Jg))}}),P_="",Si=ut(e0,[["__scopeId","data-v-b1f2ae20"]]),s0={class:"button-default"},n0={class:"truncate"},i0=["onClick","value"],r0=lt({customOptions:{SVGDown:Si},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:ot.colorGrayFF},hoverColor:{default:ot.colorGrayF5},selectedColor:{default:ot.colorPrimary},fontColor:{default:ot.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;zs(()=>{U.setStyleSheet(`
|
|
62
62
|
:root {
|
|
63
63
|
--select-option-bg-color: ${e.bgColor};
|
|
64
64
|
--select-option-bg-color-hover: ${e.hoverColor};
|
|
65
65
|
}
|
|
66
|
-
`)});const r=j(!1),i=j(e.initIndex);kt(i,function(){n("change",i.value,e.options[i.value])});function o(){r.value=!r.value}function a(c){i.value=c,r.value=!1}const l=j("rotate(-180deg)");return Tl(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(V(),X("div",{class:"select-absolute",style:J({fontSize:e.fontSize,backgroundColor:e.bgColor})},[E("div",{class:"select-absolute-button",onClick:o},[zt(c.$slots,"button",{selectedIndex:i.value},()=>[E("div",Sg,[E("div",Eg,Ct(c.options[i.value]),1),xt(ir,{class:"icon-down",width:"20px",style:J({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),E("div",{class:"options",style:J({maxHeight:r.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${r.value?1:0}px solid #e6e6e6`})},[(V(!0),X(Nt,null,ve(c.options,(h,p)=>(V(),X("div",{onClick:f=>a(p),class:"option",key:p,value:p},[zt(c.$slots,"default",{item:h,index:p},()=>[E("div",{class:"option-default",style:J({color:i.value==p?e.selectedColor:e.fontColor})},Ct(h),5)],!0)],8,Cg))),128))],4)],4))}}),B_="",kg=dt(Tg,[["__scopeId","data-v-5096cb20"]]),Og=ut({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:it.colorPrimary},colorBgOn:{default:it.colorGrayEF},colorBgOff:{default:it.colorGrayF5}},emits:["change"],setup(s,{emit:t}){const e=s,n=un(e.width),r=un(e.height),i=un(e.padding),o=r.number-i.number*2+r.suffix,a=e.padding,l=n.number-un(a).number-un(o).number+n.suffix,c=t,u=j(e.init);kt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(p,f)=>(V(),X("div",{class:"switch",onClick:h,style:J(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[E("span",{class:"round",style:J(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Dt(tr)(e.colorPrimary,30)),"transform: translate("+(u.value?l:Dt(a))+", 0)"])},null,4)],4))}}),H_="",Pg=dt(Og,[["__scopeId","data-v-8a5d8a64"]]),Ig=["onClick"],Dg=["stroke","fill"],Ng=["stroke","fill"],Ag=["stroke"],Mg=ut({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:it.colorGrayFF},colorBgSelected:{default:it.colorPrimary},colorBgDisabled:{default:it.colorGrayCC},colorBorder:{default:it.colorGrayCC},colorBorderSelected:{default:it.colorPrimary},colorBorderDisabled:{default:it.colorGrayCC},colorPath:{default:it.colorGrayFF},colorPathDisabled:{default:it.colorGrayFF},fontSize:{default:it.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let r=j(e.initIndex??0);kt(r,function(){n("change",e.options[r.value])});const i=function(o){e.disabledIndexs&&e.disabledIndexs.findIndex(a=>a==o)>=0||(r.value=o)};return(o,a)=>(V(!0),X(Nt,null,ve(o.options,(l,c)=>(V(),X("div",{class:be(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>i(c),style:J(["margin-left:"+(c>0?e.itemPadding:0)])},[zt(o.$slots,"default",{label:l,index:c},()=>[(V(),X("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:J(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Ut("",!0):(V(),X("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:Dt(r)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Dt(r)==c?o.colorBgSelected:o.colorBg},null,8,Dg)),e.isRounded?(V(),X("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Dt(r)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Dt(r)==c?o.colorBgSelected:o.colorBg},null,8,Ng)):Ut("",!0),Dt(r)==c?(V(),X("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,Ag)):Ut("",!0)],4)),E("span",{style:J(["font-size:"+e.fontSize])},Ct(l),5)],!0)],14,Ig))),128))}}),U_="",Rg=dt(Mg,[["__scopeId","data-v-15ba52e8"]]),$g=["onClick"],Lg=["stroke","fill"],Vg=["stroke","fill"],Fg=["stroke"],Gg=ut({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:it.colorGrayFF},colorBgSelected:{default:it.colorPrimary},colorBgDisabled:{default:it.colorGrayCC},colorBorder:{default:it.colorGrayCC},colorBorderSelected:{default:it.colorPrimary},colorBorderDisabled:{default:it.colorGrayCC},colorPath:{default:it.colorGrayFF},colorPathDisabled:{default:it.colorGrayFF},fontSize:{default:it.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let r=Se(e.initIndexs??[]);kt(r,function(){n("change",r.map(o=>e.options[o]))});const i=function(o){if(e.disabledIndexs&&e.disabledIndexs.findIndex(l=>l==o)>=0)return;const a=r.findIndex(l=>l===o);a>=0?r.splice(a,1):r.push(o)};return(o,a)=>(V(!0),X(Nt,null,ve(o.options,(l,c)=>(V(),X("div",{class:be(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>i(c),style:J(["margin-left:"+(c>0?e.itemPadding:0)])},[zt(o.$slots,"default",{label:l,index:c},()=>[(V(),X("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:J(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?Ut("",!0):(V(),X("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:Dt(r).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Dt(r).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,Lg)),e.isRounded?(V(),X("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Dt(r).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Dt(r).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,Vg)):Ut("",!0),Dt(r).findIndex(u=>u===c)>=0?(V(),X("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,Fg)):Ut("",!0)],4)),E("span",{style:J(["font-size:"+e.fontSize])},Ct(l),5)],!0)],14,$g))),128))}}),Y_="",jg=dt(Gg,[["__scopeId","data-v-96939a11"]]),zg=["width","height"],Bg=["fill"],Hg=["fill"],Ug=["fill"],Yg=ut({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:it.colorRed}},setup(s){const t=s;return(e,n)=>(V(),X("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,Bg),E("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,Hg),E("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,Ug)],8,zg))}}),X_="",Pu=dt(Yg,[["__scopeId","data-v-41294f60"]]),Xg={class:"wrap"},Wg=["type","required"],qg={class:"ellipsis"},Kg={key:1,style:{}},Zg=ut({customOptions:{SVGPrompt:Pu},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:it.colorPrimary},errorColor:{default:it.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,r=e,i=n.placeholder.split(""),o=n.duration/i.length,a=j(!1),l=j(""),c=j("");function u(){a.value=!0,r("focus"),r("ceFocus")}function h(){a.value=!1,r("blur"),r("ceBlur"),f()}function p(g){c.value=g.target.value,f()}function f(){if(c.value&&n.validator){const g=n.validator(c.value);if(!g.isValidated){l.value=g.msg;return}}l.value="",c.value&&(r("input",c.value),r("ceInput",c.value))}return ee(()=>{}),t({}),(g,y)=>(V(),X("div",Xg,[E("input",{type:n.type,required:n.required,autocomplete:"off",style:J({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:be([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:p,onChange:p},null,46,Wg),E("div",{class:"placeholder",style:J({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?(V(),X("div",{key:0,style:J({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[xt(Pu,{class:"icon"}),E("div",qg,Ct(l.value),1)],4)):Ut("",!0),!l.value&&!n.placeholderJump?(V(),X("div",Kg,Ct(n.placeholder),1)):Ut("",!0),!l.value&&n.placeholderJump?(V(!0),X(Nt,{key:2},ve(Dt(i),(b,k)=>(V(),X("span",{key:k,style:J({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"},Ct(b),5))),128)):Ut("",!0)],4),E("div",{class:"bg",style:J({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)]))}}),W_="",Qg=dt(Zg,[["__scopeId","data-v-e02afc20"]]),Jg=["max","min","step","value","autofocus"],t0={class:"input-range-label"},e0=ut({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{max:{default:100},min:{default:0},step:{default:1},defaultValue:{default:0},autofocus:{type:Boolean,default:!1},color:{default:it.colorPrimary}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(n.defaultValue),o=j(Ke((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){i.value=Ke(u.target.value,2),o.value=Ke((i.value-n.min)/(n.max-n.min),4)*100,r("change",i.value)}const l=`
|
|
66
|
+
`)});const i=$(!1),r=$(e.initIndex);Dt(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=$("rotate(-180deg)");return Kl(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(F(),H("div",{class:"select-absolute",style:W({fontSize:e.fontSize,backgroundColor:e.bgColor})},[S("div",{class:"select-absolute-button",onClick:o},[Gt(c.$slots,"button",{selectedIndex:r.value},()=>[S("div",s0,[S("div",n0,kt(c.options[r.value]),1),pt(Si,{class:"icon-down",width:"20px",style:W({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),S("div",{class:"options",style:W({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(F(!0),H(zt,null,Ce(c.options,(h,f)=>(F(),H("div",{onClick:d=>a(f),class:"option",key:f,value:f},[Gt(c.$slots,"default",{item:h,index:f},()=>[S("div",{class:"option-default",style:W({color:r.value==f?e.selectedColor:e.fontColor})},kt(h),5)],!0)],8,i0))),128))],4)],4))}}),D_="",o0=ut(r0,[["__scopeId","data-v-5096cb20"]]),a0=lt({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"52px"},height:{default:"32px"},padding:{default:"4px"},colorPrimary:{default:ot.colorPrimary},colorBgOn:{default:ot.colorGrayEF},colorBgOff:{default:ot.colorGrayF5}},emits:["change"],setup(s,{emit:t}){const e=s,n=Hs(e.width),i=Hs(e.height),r=Hs(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-Hs(a).number-Hs(o).number+n.suffix,c=t,u=$(e.init);Dt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(f,d)=>(F(),H("div",{class:"switch",onClick:h,style:W(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[S("span",{class:"round",style:W(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Ft(yi)(e.colorPrimary,30)),"transform: translate("+(u.value?l:Ft(a))+", 0)"])},null,4)],4))}}),I_="",l0=ut(a0,[["__scopeId","data-v-45b7e06e"]]),c0=["onClick"],u0=["stroke","fill"],h0=["stroke","fill"],d0=["stroke"],f0=lt({customOptions:{},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{},isRounded:{type:Boolean,default:!0},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=$(e.initIndex??0);Dt(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)=>(F(!0),H(zt,null,Ce(o.options,(l,c)=>(F(),H("div",{class:ye(["radio",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:W(["margin-left:"+(c>0?e.itemPadding:0)])},[Gt(o.$slots,"default",{label:l,index:c},()=>[(F(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:W(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?qt("",!0):(F(),H("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:Ft(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i)==c?o.colorBgSelected:o.colorBg},null,8,u0)),e.isRounded?(F(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i)==c?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i)==c?o.colorBgSelected:o.colorBg},null,8,h0)):qt("",!0),Ft(i)==c?(F(),H("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,d0)):qt("",!0)],4)),S("span",{style:W(["font-size:"+e.fontSize])},kt(l),5)],!0)],14,c0))),128))}}),N_="",Pa=ut(f0,[["__scopeId","data-v-15ba52e8"]]),p0=["onClick"],m0=["stroke","fill"],g0=["stroke","fill"],y0=["stroke"],v0=lt({customOptions:{},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBg:{default:ot.colorGrayFF},colorBgSelected:{default:ot.colorPrimary},colorBgDisabled:{default:ot.colorGrayCC},colorBorder:{default:ot.colorGrayCC},colorBorderSelected:{default:ot.colorPrimary},colorBorderDisabled:{default:ot.colorGrayCC},colorPath:{default:ot.colorGrayFF},colorPathDisabled:{default:ot.colorGrayFF},fontSize:{default:ot.fontSize14},itemWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=Pe(e.initIndexs??[]);Dt(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)=>(F(!0),H(zt,null,Ce(o.options,(l,c)=>(F(),H("div",{class:ye(["checkbox",o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?"disabled":""]),key:c,onClick:u=>r(c),style:W(["margin-left:"+(c>0?e.itemPadding:0)])},[Gt(o.$slots,"default",{label:l,index:c},()=>[(F(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:W(["margin-right:"+e.labelPadding,"width:"+e.itemWidth])},[e.isRounded?qt("",!0):(F(),H("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:Ft(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,m0)),e.isRounded?(F(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBorderDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBorderSelected:o.colorBorder,fill:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0?o.colorBgDisabled:Ft(i).findIndex(u=>u===c)>=0?o.colorBgSelected:o.colorBg},null,8,g0)):qt("",!0),Ft(i).findIndex(u=>u===c)>=0?(F(),H("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,y0)):qt("",!0)],4)),S("span",{style:W(["font-size:"+e.fontSize])},kt(l),5)],!0)],14,p0))),128))}}),M_="",Nr=ut(v0,[["__scopeId","data-v-96939a11"]]),_0=["width","height"],b0=["fill"],x0=["fill"],w0=["fill"],S0=lt({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:ot.colorRed}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("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,b0),S("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,x0),S("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,w0)],8,_0))}}),A_="",eh=ut(S0,[["__scopeId","data-v-41294f60"]]),C0={class:"wrap"},E0=["type","required"],k0={class:"ellipsis"},T0={key:1,style:{}},O0=lt({customOptions:{SVGPrompt:eh},inheritAttrs:!0,__name:"Input",props:{placeholder:{},placeholderJump:{type:Boolean,default:!1},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:ot.colorPrimary},errorColor:{default:ot.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=$(!1),l=$(""),c=$("");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 re(()=>{}),t({}),(m,y)=>(F(),H("div",C0,[S("input",{type:n.type,required:n.required,autocomplete:"off",style:W({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:ye([a.value||c.value?"focus":"blur","input"]),onFocus:u,onBlur:h,onInput:f,onChange:f},null,46,E0),S("div",{class:"placeholder",style:W({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?(F(),H("div",{key:0,style:W({color:n.errorColor,transform:n.placeholderJump?"translateY(-100%)":""})},[pt(eh,{class:"icon"}),S("div",k0,kt(l.value),1)],4)):qt("",!0),!l.value&&!n.placeholderJump?(F(),H("div",T0,kt(n.placeholder),1)):qt("",!0),!l.value&&n.placeholderJump?(F(!0),H(zt,{key:2},Ce(Ft(r),(_,E)=>(F(),H("span",{key:E,style:W({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*E}ms`,transform:a.value||c.value?`translateX(${100*E}%) translateY(-100%)`:`translateX(${100*E}%)`}),class:"single"},kt(_),5))),128)):qt("",!0)],4),S("div",{class:"bg",style:W({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)]))}}),R_="",P0=ut(O0,[["__scopeId","data-v-e02afc20"]]),D0=["max","min","step","value","autofocus"],I0={key:0,class:"label"},N0=lt({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:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(n.defaultValue),o=$(qe((n.defaultValue-n.min)/(n.max-n.min),4)*100);function a(u){r.value=qe(u.target.value,2),o.value=qe((r.value-n.min)/(n.max-n.min),4)*100,i("change",r.value)}const l=`
|
|
67
67
|
:root {
|
|
68
|
-
--input-range-color: ${n.color}
|
|
68
|
+
--input-range-color: ${n.color};
|
|
69
|
+
--input-range-thumb-size: ${n.handleSize};
|
|
70
|
+
--input-range-track-size: ${n.barHeight};
|
|
69
71
|
}
|
|
70
72
|
:host {
|
|
71
|
-
--input-range-color: ${n.color}
|
|
73
|
+
--input-range-color: ${n.color};
|
|
74
|
+
--input-range-thumb-size: ${n.handleSize};
|
|
75
|
+
--input-range-track-size: ${n.barHeight};
|
|
72
76
|
}
|
|
73
|
-
`,c=j();return kt(c,()=>{c.value&&W.setStyleSheet(l,c.value)}),ee(()=>{}),t({}),(u,h)=>(V(),X("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[E("input",{type:"range",max:n.max,min:n.min,step:n.step,value:i.value,autofocus:n.autofocus,onInput:a,style:J({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, #ffffff ${o.value}%, #ffffff)`})},null,44,Jg),E("label",t0,Ct(i.value),1)],512))}}),q_="",ci=dt(e0,[["__scopeId","data-v-ed564377"]]),s0=["width","height"],n0=["fill"],r0=ut({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:it.colorPrimary}},setup(s){const t=s;return(e,n)=>(V(),X("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[E("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,n0)],8,s0))}}),K_="",ra=dt(r0,[["__scopeId","data-v-4747d4a7"]]),i0=ut({customOptions:{SVGDelete:ra},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:it.colorGrayFF},deleteColor:{default:it.colorRed},fontColor:{default:it.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(!1),o=()=>{r("delete"),i.value=!1};let a;const l=j();return kt(l,()=>{l.value&&(a=new oe(l.value),a.on("panLeft",()=>{i.value=!0}),a.on("panRight",()=>{i.value=!1}),a.on("tapOutSide",()=>{i.value=!1}))}),ee(()=>{a?.destroy()}),t({}),(c,u)=>(V(),X("div",{class:"parent",ref_key:"item",ref:l,style:J({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[E("div",{class:"content",style:J({transition:"all ease-in "+n.transtionDuration,transform:i.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[zt(c.$slots,"default",{},void 0,!0)],4),E("div",{class:"delete",onClick:o,style:J({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:i.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[xt(ra,{color:n.fontColor},null,8,["color"])],4)],4))}}),Z_="",o0=dt(i0,[["__scopeId","data-v-244215c2"]]),a0=s=>{const t={};for(const e of s.attributes)t[e.name]=e.value;return t},l0={class:"overlay-content",style:J(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},c0=ut({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Im(it.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,r=j();function i(o){n.isGlobal?o?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow="",document.body.style.overflow=""):r.value&&o&&(r.value.parentElement.style.overflow="hidden")}return kt(()=>n.visible,()=>{i(n.visible)},{immediate:!0}),t({}),(o,a)=>n.visible?(V(),X("div",{key:0,ref_key:"overlayRef",ref:r,class:"overlay",style:J([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[E("div",l0,[zt(o.$slots,"default",{},void 0,!0)])],4)):Ut("",!0)}}),Q_="",vn=dt(c0,[["__scopeId","data-v-fbdcceee"]]),u0=(s=>(An("data-v-fb37ce89"),s=s(),Mn(),s))(()=>E("div",null,null,-1)),h0=ut({customOptions:{Overlay:vn},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,r=e,i=j();let o;const a=Se({}),l=Se({});function c(){switch(qn(a),qn(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 re,h=(k=!0)=>{!o||!i.value||(k?(u.fromDOM(i.value),u.toCSS(o,{easeName:"ease",dur:n.openDurTime,onComplete:()=>{r("open")}})):u.toCSS(o,{easeName:"ease",dur:n.closeDurTime,direction:"reverse",onComplete:()=>{y()}}))};kt(i,()=>{i.value&&h(!0)},{});const p=j(!1);function f(){p.value=!0}function g(){n.directionFrom=="absolute"?y():h(!1)}function y(){p.value=!1,r("close")}function b(k){n.directionFrom=="absolute"?i.value&&i.value.children[0]&&!i.value.children[0].contains(k.target)&&n.closeWhenClickOverlay&&y():i.value&&!i.value.contains(k.target)&&n.closeWhenClickOverlay&&g()}return t({open:f,close:g}),(k,A)=>(V(),Ce(vn,{visible:p.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:ne(()=>[E("div",{class:"pop-parent",style:J([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:b},[E("div",{ref_key:"pop",ref:i,class:"pop",style:J([{position:"absolute","z-index":"3000"},l])},[zt(k.$slots,"default",{},()=>[u0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),t1="",He=dt(h0,[["__scopeId","data-v-fb37ce89"]]),f0={class:"dialog-parent"},d0={key:0,class:"title"},p0={key:0,class:"title-inner truncate"},m0={class:"custom-content"},g0={class:"custom-content-default"},v0={key:1,class:"btns"},y0=ut({customOptions:{Overlay:vn,Pop:He,Icon:en,Button:fe},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,r=e,i=j(),o=j(""),a=j(""),l=j(!1),c=j(""),u=j("");let h,p,f;function g(A){o.value=A?.title||"",a.value=A?.content||"",l.value=typeof A?.showClose=="boolean"?A?.showClose:!1,c.value=A?.cancelText||"",u.value=A?.confirmText||"",i.value.open(),h=A?.onClose,p=A?.onCancel,f=A?.onConfirm,r("open")}function y(){i.value.close(),h?.(),r("close")}function b(){y(),p?.(),r("cancel")}function k(){y(),f?.(),r("confirm")}return t({open:g,close:y}),(A,N)=>(V(),Ce(He,{ref_key:"popRef",ref:i,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:ne(()=>[E("div",f0,[E("div",{class:"dialog",style:J({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(V(),X("div",d0,[o.value?(V(),X("div",p0,Ct(o.value),1)):Ut("",!0),l.value?(V(),X("div",{key:1,class:"close",onClick:y},[xt(en,{icon:"ic:baseline-close",color:Dt(it).colorGrayCC},null,8,["color"])])):Ut("",!0)])):Ut("",!0),E("div",m0,[zt(A.$slots,"default",{},()=>[E("div",g0,Ct(a.value),1)],!0)]),c.value||u.value?(V(),X("div",v0,[c.value?(V(),Ce(fe,{key:0,onClick:b,class:"btn",bgColor:Dt(it).colorGrayE6,borderColor:Dt(it).colorGrayE6,fontColor:Dt(it).colorGray33,borderRadius:"0"},{default:ne(()=>[Me(Ct(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Ut("",!0),u.value?(V(),Ce(fe,{key:1,onClick:k,class:"btn",borderRadius:"0"},{default:ne(()=>[Me(Ct(u.value),1)]),_:1})):Ut("",!0)])):Ut("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),e1="",or=dt(y0,[["__scopeId","data-v-6bd255c9"]]),_0={class:"toast"},b0={class:"content"},x0=ut({customOptions:{Overlay:vn,Pop:He,Dialog:or},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(),o=j("");function a(c,u=1500){o.value=c,i.value.open(),r("open"),setTimeout(()=>{l()},u)}function l(){i.value.close(),r("close")}return t({open:a,close:l}),(c,u)=>(V(),Ce(or,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:ne(()=>[E("div",_0,[E("div",b0,Ct(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),s1="",Iu=dt(x0,[["__scopeId","data-v-50ed852e"]]),w0={class:"loading-8"},S0={viewBox:"25 25 50 50"},E0=ut({__name:"Loading8",props:{color:{default:it.colorPrimary}},setup(s){const t=s;return(e,n)=>(V(),X("div",w0,[(V(),X("svg",S0,[E("circle",{cx:"50",cy:"50",r:"20",style:J(["stroke: "+t.color])},null,4)]))]))}}),n1="",ia=dt(E0,[["__scopeId","data-v-e5e3cf4c"]]),C0={class:"loading"},T0={class:"icon"},k0={style:{width:"8em"}},O0={key:0,class:"content"},P0=ut({customOptions:{Overlay:vn,Pop:He,Dialog:or,Loading8:ia},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},openDurTime:{default:200},closeDurTime:{default:150}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(),o=j("");function a(c){o.value=c||"",i.value.open(),r("open")}function l(){i.value.close(),r("close")}return t({open:a,close:l}),(c,u)=>(V(),Ce(or,{ref_key:"dialogRef",ref:i,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:ne(()=>[E("div",C0,[E("div",T0,[zt(c.$slots,"default",{},()=>[E("div",k0,[xt(ia)])],!0)]),o.value?(V(),X("div",O0,Ct(o.value),1)):Ut("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),r1="",I0=dt(P0,[["__scopeId","data-v-cb469a6c"]]),oa=s=>(An("data-v-85491020"),s=s(),Mn(),s),D0=[oa(()=>E("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)),oa(()=>E("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)),oa(()=>E("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))],N0=ut({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:it.colorPrimary}},setup(s){const t=s;return(e,n)=>(V(),X("svg",{style:J(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},D0,4))}}),l1="",ui=dt(N0,[["__scopeId","data-v-85491020"]]),A0=["data-number"],M0=["data-number","data-unactive"],R0=["data-number"],$0=["data-number","data-unactive"],L0=ut({customOptions:{Pop:He,SVGCleanUp:ui},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(),o=j(0),a=Se([]);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],()=>{Kn(a,n.initPlates),l()},{immediate:!0});const c=()=>{i.value.open(),r("open")},u=()=>{i.value.close(),r("close")},h=()=>{a.pop(),l(),r("plates",a)},p=k=>{if(k.target.dataset.unactive||"")return;let N=k.target.dataset.number;N&&(a.push(N),l(),r("plates",a))};t({open:c,close:u});const f=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],g=["1","2","3","4","5","6","7","8","9","0"],y=["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(k,A)=>(V(),Ce(He,{ref_key:"popRef",ref:i,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:ne(()=>[E("div",{class:"popup-plate",style:J({paddingBottom:Dt(it).safeAreaBottom})},[E("div",null,[E("div",{onClick:u},"关闭")]),E("div",{class:be(["step",o.value==0?"":"hide"])},[(V(),X(Nt,null,ve(f,N=>E("div",{key:N,class:"popitem",onClick:p,"data-number":N},Ct(N),9,A0)),64)),E("div",{class:"popitem popitem-clear",onClick:h},[xt(ui,{width:"16px"})])],2),E("div",{class:be(["step",o.value!=0?"":"hide"])},[(V(),X(Nt,null,ve(g,N=>E("div",{key:N,class:be(["popitem",o.value!=2?"unactive":""]),onClick:p,"data-number":N,"data-unactive":o.value!=2?"unactive":""},Ct(N),11,M0)),64)),(V(),X(Nt,null,ve(y,N=>E("div",{key:N,class:"popitem",onClick:p,"data-number":N},Ct(N),9,R0)),64)),(V(),X(Nt,null,ve(b,N=>E("div",{key:N,class:be(["popitem",o.value!=2?"unactive":""]),onClick:p,"data-number":N,"data-unactive":o.value!=2?"unactive":""},Ct(N),11,$0)),64)),E("div",{class:"popitem popitem-clear",onClick:h},[xt(ui,{width:"16px"})])],2)],4)]),_:1},512))}}),c1="",Du=dt(L0,[["__scopeId","data-v-bade3529"]]),Nu=document.getElementById("teleport")||document.documentElement;function Au(s,t){{const e=Ne(Iu,{});Ur(e,Nu),e.component?.exposed?.open(s,t)}}function V0(s,t="bottom"){let e;s instanceof HTMLElement?e=Ne(He,{directionFrom:t},()=>Ne("div",{...a0(s),innerHTML:s.innerHTML})):e=Ne(He,{directionFrom:t},()=>s),Ur(e,document.getElementById("teleport")||document.documentElement),e.component?.exposed?.open();const n=()=>{e.component?.exposed?.close()};return n.vnode=e,n}function F0(s){return V0(s,"absolute")}function G0(s){{const t=Ne(Du,s);return Ur(t,Nu),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const j0={class:"content"},z0=ut({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(),o=j(!1),a=Se({});let l=Se({}),c=Se({}),u=1,h;kt(i,()=>{!i.value||h||(f(),h=new oe(i.value,!1),h.on("resize",(g,y)=>{u=Math.max(g,y)/Math.min(g,y);const b=Math.min(g,y);c.width=l.width=b+"px",c.height=l.height=b+"px",f()}),h.on("mouseOver",()=>{r("mouseOver"),o.value=!0,f()}),h.on("mouseOut",()=>{r("mouseOut"),o.value=!1,f()}),h.start())});function p(){W.copyToClipboard(W.getInnerText(i.value)).then(()=>{Au("复制成功")}).catch(g=>{Au(g.toString())})}function f(){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?`
|
|
77
|
+
`,c=$();return Dt(c,()=>{c.value&&U.setStyleSheet(l,c.value)}),re(()=>{}),t({}),(u,h)=>(F(),H("div",{class:"input-range",ref_key:"inputRangeContainer",ref:c},[S("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:a,style:W({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${o.value}%, ${n.barColor} ${o.value}%, ${n.barColor})`})},null,44,D0),u.showValue?(F(),H("label",I0,kt(r.value)+kt(n.unit),1)):qt("",!0)],512))}}),$_="",Ks=ut(N0,[["__scopeId","data-v-75b06946"]]),M0=lt({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$();Dt(r,()=>{r.value&&c()});let o,a,l;function c(){o||!r.value||(o=new me(r.value,!1),o.on("resize",(h,f)=>{i("resize",h,f)}),a=new Cg(o),l?.(a),o.start())}function u(){return new Promise(h=>{if(a&&o.width&&o.height)return h(a);l=h})}return re(()=>{o?.destroy()}),t({getSVGElement:()=>r.value,getSVG:u}),(h,f)=>(F(),H("div",{ref_key:"svgRef",ref:r,class:"svg",style:W({backgroundColor:n.bgColor})},null,4))}}),V_="",Mr=ut(M0,[["__scopeId","data-v-933ab3a5"]]),A0={class:"input-range-svg"},R0={key:0,class:"label"},$0=lt({customOptions:{SVG:Mr},inheritAttrs:!0,__name:"InputRangeSvg",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:ot.colorPrimary},barColor:{default:ot.colorGrayF5},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(n.defaultValue),o=f=>{r.value=f,i("change",f)},a=Hs(n.handleSize,20).number;let l;const c=()=>{l=new Ju({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=$();return Dt(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)})})}),re(()=>{}),t({}),(f,d)=>(F(),H("div",A0,[S("div",{class:"input",style:W({height:n.handleSize})},[pt(Mr,{ref_key:"svgRef",ref:h},null,512)],4),f.showValue?(F(),H("div",R0,kt(r.value)+kt(n.unit),1)):qt("",!0)]))}}),L_="",V0=ut($0,[["__scopeId","data-v-1360472b"]]),L0=["width","height"],F0=["fill"],G0=lt({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[S("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,F0)],8,L0))}}),F_="",Da=ut(G0,[["__scopeId","data-v-4747d4a7"]]),z0=lt({customOptions:{SVGDelete:Da},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:ot.colorGrayFF},deleteColor:{default:ot.colorRed},fontColor:{default:ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(!1),o=()=>{i("delete"),r.value=!1};let a;const l=$();return Dt(l,()=>{l.value&&(a=new me(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),re(()=>{a?.destroy()}),t({}),(c,u)=>(F(),H("div",{class:"parent",ref_key:"item",ref:l,style:W({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[S("div",{class:"content",style:W({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[Gt(c.$slots,"default",{},void 0,!0)],4),S("div",{class:"delete",onClick:o,style:W({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[pt(Da,{color:n.fontColor},null,8,["color"])],4)],4))}}),G_="",j0=ut(z0,[["__scopeId","data-v-244215c2"]]),B0=s=>{const t={};for(const e of s.attributes)t[e.name]=e.value;return t},Y0={class:"overlay-content",style:W(["position: relative","z-index: 6001","inset: 0","overflow-y: auto","width: 100% ","height: 100%"])},X0=lt({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean},bgColor:{default:Cr(ot.colorGray00,.25)},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=$();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 Dt(()=>n.visible,()=>{r(n.visible)},{immediate:!0}),t({}),(o,a)=>n.visible?(F(),H("div",{key:0,ref_key:"overlayRef",ref:i,class:"overlay",style:W([`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 6000 ","inset: 0",`background-color: ${n.bgColor};`])},[S("div",Y0,[Gt(o.$slots,"default",{},void 0,!0)])],4)):qt("",!0)}}),z_="",$n=ut(X0,[["__scopeId","data-v-fbdcceee"]]),H0=(s=>(Tn("data-v-0dd2379f"),s=s(),On(),s))(()=>S("div",null,null,-1)),U0=lt({customOptions:{Overlay:$n},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=$();let o;const a=Pe({}),l=Pe({});function c(){switch(hi(a),hi(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}}Dt(()=>n.directionFrom,()=>{c()},{immediate:!0});const u=new fe,h=(E=!0)=>{!o||!r.value||(E?(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:()=>{y()}}))};Dt(r,()=>{r.value&&h(!0)},{});const f=$(!1);function d(){f.value=!0}function m(){n.directionFrom=="absolute"?y():h(!1)}function y(){f.value=!1,i("close")}function _(E){n.directionFrom=="absolute"?r.value&&r.value.children[0]&&!r.value.children[0].contains(E.target)&&n.closeWhenClickOverlay&&y():r.value&&!r.value.contains(E.target)&&n.closeWhenClickOverlay&&m()}return t({open:d,close:m}),(E,D)=>(F(),Ie($n,{visible:f.value,isGlobal:n.isGlobal,bgColor:n.overlayBgColor},{default:he(()=>[S("div",{class:"pop-parent",style:W([{position:"relative",width:"100%",height:"100%",overflow:"hidden"},a]),onClick:_},[S("div",{ref_key:"pop",ref:r,class:"pop",style:W([{position:"absolute","z-index":"3000"},l])},[Gt(E.$slots,"default",{},()=>[H0],!0)],4)],4)]),_:3},8,["visible","isGlobal","bgColor"]))}}),B_="",Qe=ut(U0,[["__scopeId","data-v-0dd2379f"]]),W0={class:"dialog-parent"},q0={key:0,class:"title"},Z0={key:0,class:"title-inner truncate"},K0={class:"custom-content"},Q0={class:"custom-content-default"},J0={key:1,class:"btns"},ty=lt({customOptions:{Overlay:$n,Pop:Qe,Icon:_n,Button:ve},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=$(),o=$(""),a=$(""),l=$(!1),c=$(""),u=$("");let h,f,d;function m(D){o.value=D?.title||"",a.value=D?.content||"",l.value=typeof D?.showClose=="boolean"?D?.showClose:!1,c.value=D?.cancelText||"",u.value=D?.confirmText||"",r.value.open(),h=D?.onClose,f=D?.onCancel,d=D?.onConfirm,i("open")}function y(){r.value.close(),h?.(),i("close")}function _(){y(),f?.(),i("cancel")}function E(){y(),d?.(),i("confirm")}return t({open:m,close:y}),(D,N)=>(F(),Ie(Qe,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:n.overlayBgColor},{default:he(()=>[S("div",W0,[S("div",{class:"dialog",style:W({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(F(),H("div",q0,[o.value?(F(),H("div",Z0,kt(o.value),1)):qt("",!0),l.value?(F(),H("div",{key:1,class:"close",onClick:y},[pt(_n,{icon:"ic:baseline-close",color:Ft(ot).colorGrayCC},null,8,["color"])])):qt("",!0)])):qt("",!0),S("div",K0,[Gt(D.$slots,"default",{},()=>[S("div",Q0,kt(a.value),1)],!0)]),c.value||u.value?(F(),H("div",J0,[c.value?(F(),Ie(ve,{key:0,onClick:_,class:"btn",bgColor:Ft(ot).colorGrayE6,borderColor:Ft(ot).colorGrayE6,fontColor:Ft(ot).colorGray33,borderRadius:"0"},{default:he(()=>[Kt(kt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):qt("",!0),u.value?(F(),Ie(ve,{key:1,onClick:E,class:"btn",borderRadius:"0"},{default:he(()=>[Kt(kt(u.value),1)]),_:1})):qt("",!0)])):qt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime","overlayBgColor"]))}}),Y_="",Ci=ut(ty,[["__scopeId","data-v-6bd255c9"]]),ey={class:"toast"},sy={class:"content"},ny=lt({customOptions:{Overlay:$n,Pop:Qe,Dialog:Ci},inheritAttrs:!0,__name:"DialogToast",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=$(),o=$("");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)=>(F(),Ie(Ci,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime,overlayBgColor:"transparent",minWidth:"10em"},{default:he(()=>[S("div",ey,[S("div",sy,kt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),X_="",sh=ut(ny,[["__scopeId","data-v-50ed852e"]]),iy={class:"loading-8"},ry={viewBox:"25 25 50 50"},oy=lt({__name:"Loading8",props:{color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("div",iy,[(F(),H("svg",ry,[S("circle",{cx:"50",cy:"50",r:"20",style:W(["stroke: "+t.color])},null,4)]))]))}}),H_="",Ia=ut(oy,[["__scopeId","data-v-e5e3cf4c"]]),ay={class:"loading"},ly={class:"icon"},cy={style:{width:"8em"}},uy={key:0,class:"content"},hy=lt({customOptions:{Overlay:$n,Pop:Qe,Dialog:Ci,Loading8:Ia},inheritAttrs:!0,__name:"DialogLoading",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=$(),o=$("");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)=>(F(),Ie(Ci,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,openDurTime:n.openDurTime,closeDurTime:n.closeDurTime},{default:he(()=>[S("div",ay,[S("div",ly,[Gt(c.$slots,"default",{},()=>[S("div",cy,[pt(Ia)])],!0)]),o.value?(F(),H("div",uy,kt(o.value),1)):qt("",!0)])]),_:3},8,["closeWhenClickOverlay","openDurTime","closeDurTime"]))}}),U_="",dy=ut(hy,[["__scopeId","data-v-cb469a6c"]]),Na=s=>(Tn("data-v-85491020"),s=s(),On(),s),fy=[Na(()=>S("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)),Na(()=>S("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)),Na(()=>S("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))],py=lt({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:W(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},fy,4))}}),K_="",Ar=ut(py,[["__scopeId","data-v-85491020"]]),my=["data-number"],gy=["data-number","data-unactive"],yy=["data-number"],vy=["data-number","data-unactive"],_y=lt({customOptions:{Pop:Qe,SVGCleanUp:Ar},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(),o=$(0),a=Pe([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&u()}Dt(()=>[...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=E=>{if(E.target.dataset.unactive||"")return;let N=E.target.dataset.number;N&&(a.push(N),l(),i("plates",a))};t({open:c,close:u});const d=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],m=["1","2","3","4","5","6","7","8","9","0"],y=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],_=["港","澳","学","警","使","领","挂","应","急"];return(E,D)=>(F(),Ie(Qe,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1},{default:he(()=>[S("div",{class:"popup-plate",style:W({paddingBottom:Ft(ot).safeAreaBottom})},[S("div",null,[S("div",{onClick:u},"关闭")]),S("div",{class:ye(["step",o.value==0?"":"hide"])},[(F(),H(zt,null,Ce(d,N=>S("div",{key:N,class:"popitem",onClick:f,"data-number":N},kt(N),9,my)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[pt(Ar,{width:"16px"})])],2),S("div",{class:ye(["step",o.value!=0?"":"hide"])},[(F(),H(zt,null,Ce(m,N=>S("div",{key:N,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":o.value!=2?"unactive":""},kt(N),11,gy)),64)),(F(),H(zt,null,Ce(y,N=>S("div",{key:N,class:"popitem",onClick:f,"data-number":N},kt(N),9,yy)),64)),(F(),H(zt,null,Ce(_,N=>S("div",{key:N,class:ye(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":N,"data-unactive":o.value!=2?"unactive":""},kt(N),11,vy)),64)),S("div",{class:"popitem popitem-clear",onClick:h},[pt(Ar,{width:"16px"})])],2)],4)]),_:1},512))}}),Q_="",nh=ut(_y,[["__scopeId","data-v-bade3529"]]),ih=document.getElementById("teleport")||document.documentElement;function rh(s,t){{const e=Ge(sh,{});ur(e,ih),e.component?.exposed?.open(s,t)}}function by(s,t="bottom"){let e;s instanceof HTMLElement?e=Ge(Qe,{directionFrom:t},()=>Ge("div",{...B0(s),innerHTML:s.innerHTML})):e=Ge(Qe,{directionFrom:t},()=>s),ur(e,document.getElementById("teleport")||document.documentElement),e.component?.exposed?.open();const n=()=>{e.component?.exposed?.close()};return n.vnode=e,n}function xy(s){return by(s,"absolute")}function wy(s){{const t=Ge(nh,s);return ur(t,ih),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const Sy={class:"content"},Cy=lt({customOptions:{},inheritAttrs:!0,__name:"MouseOver",props:{coverColor:{default:"#fc2f70"},timeGap:{default:200},coverDirection:{default:"bottomLeft"}},emits:["mouseOver","mouseOut"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(),o=$(!1),a=Pe({});let l=Pe({}),c=Pe({}),u=1,h;Dt(r,()=>{!r.value||h||(d(),h=new me(r.value,!1),h.on("resize",(m,y)=>{u=Math.max(m,y)/Math.min(m,y);const _=Math.min(m,y);c.width=l.width=_+"px",c.height=l.height=_+"px",d()}),h.on("mouseOver",()=>{i("mouseOver"),o.value=!0,d()}),h.on("mouseOut",()=>{i("mouseOut"),o.value=!1,d()}),h.start())});function f(){U.copyToClipboard(U.getInnerText(r.value)).then(()=>{rh("复制成功")}).catch(m=>{rh(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?`
|
|
74
78
|
inset 0.5em 0 0 rgba(255, 0, 0, 0.5),
|
|
75
79
|
inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
|
|
76
80
|
inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
|
|
77
81
|
inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)`:`
|
|
78
|
-
inset ${l.width} 0 0 ${
|
|
79
|
-
inset 0 ${l.width} 0 ${
|
|
80
|
-
inset -${l.width} 0 0 ${
|
|
81
|
-
inset 0 -${l.width} 0 ${
|
|
82
|
+
inset ${l.width} 0 0 ${qs(n.coverColor,.2)},
|
|
83
|
+
inset 0 ${l.width} 0 ${qs(n.coverColor,.2)},
|
|
84
|
+
inset -${l.width} 0 0 ${qs(n.coverColor,.2)},
|
|
85
|
+
inset 0 -${l.width} 0 ${qs(n.coverColor,.2)}`,l.transition="box-shadow 0.75s";break}}return re(()=>{h?.destroy()}),t({}),(m,y)=>(F(),H("div",{ref_key:"mouseOverContainer",ref:r,class:"mouse-over",style:W(a),onClick:f},[S("div",{class:"before",style:W({backgroundColor:n.coverColor,...Ft(l)})},null,4),S("div",Sy,[Gt(m.$slots,"default",{},void 0,!0)]),S("div",{class:"after",style:W({backgroundColor:n.coverColor,...Ft(c)})},null,4)],4))}}),J_="",tb="",Ey=ut(Cy,[["__scopeId","data-v-fe4ebfe5"]]),ky=lt({customOptions:{SVGDown:Si},inheritAttrs:!0,__name:"Accordion",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:t,emit:e}){const n=s,i=e,r=$(Number.MAX_SAFE_INTEGER+"px"),o=$(),a=$(!0);let l;Dt(o,()=>{o.value&&(r.value=o.value.getBoundingClientRect().height+"px",l=new me(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=$("rotate(0deg)");return Kl(()=>{u.value=a.value?"rotate(0deg)":"rotate(-90deg)"}),re(()=>{l?.destroy()}),t({}),(h,f)=>(F(),H("div",{class:"wrap",style:W({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[S("div",{class:"title",onClick:c,style:W({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}`})},[Gt(h.$slots,"title",{},()=>[Kt("title")],!0),pt(Si,{class:"arrow",style:W({transition:`transform ${n.duration}ms ease-in-out`,transform:u.value})},null,8,["style"])],4),S("div",{ref_key:"content",ref:o,class:"content",style:W({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:a.value?r.value:"0"})},[Gt(h.$slots,"content",{},void 0,!0)],4)],4))}}),eb="",Ty=ut(ky,[["__scopeId","data-v-9ced806f"]]),Oy=lt({__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=$(0);function o(){r.value=0}function a(l){const c=r.value,u=Math.min(Math.max(0,l),100);fe.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)=>(F(),H("div",{class:"wrap",style:W({width:n.width,height:n.height,border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[S("div",{class:"bar",style:W({width:r.value+"%",backgroundColor:n.progressColor})},kt(n.showText?r.value+"%":""),5)],4))}}),sb="",Ei=ut(Oy,[["__scopeId","data-v-77dcb1dd"]]),Py=["width","height"],Dy=["src","type"],Iy={class:"bar-wrap"},Ny=lt({customOptions:{ProgressBar:Ei},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const n=s;function i(){fe.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=$(),o=$();Dt(r,()=>{r.value&&(r.value.addEventListener("play",i),n.autoplay&&pa.tryAutoPlayOrAutoPlayAfterClick(r.value))}),re(()=>{r.value?.removeEventListener(i)});function a(){r.value?.play()}return t({play:a}),(l,c)=>(F(),H("div",{class:"wrap",style:W({width:n.width,height:n.height}),onClick:a},[S("video",{ref_key:"video",ref:r,width:n.width,height:n.height,preload:"metadata"},[S("source",{src:n.src,type:n.type},null,8,Dy)],8,Py),S("div",Iy,[pt(Ei,{ref_key:"bar",ref:o,width:n.width,height:"6px",bgColor:"#ffffff"},null,8,["width"])])],4))}}),nb="",My=ut(Ny,[["__scopeId","data-v-2bcf5d2e"]]),Ay=lt({...{},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=$(),o=$(),a=$(0),l=$(0),c=$(0),u=$(0),h=$(1),f=$(0),d=$(0);hg(n.src).then(Q=>{c.value=Q.width,u.value=Q.height,h.value=Q.aspectRatio,D()});let m;Dt(r,()=>{r.value&&(m=new me(r.value,!1),m.on("resize",(Q,A)=>{a.value=Q,l.value=A,D()}),m.start())});let y=!1;const _={x:0,y:0,width:0,height:0};let E;function D(){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}Rl(()=>{const Q=o.value.getBoundingClientRect();i("settled",Q.x,Q.y,f.value,d.value),y&&E(_.x,_.y,_.width,_.height)})}}function N(Q,A,j,yt){const bt=($t,se,ne,ue,Yt,xt,wt,it,q)=>{if(!Yt||!xt||!wt||!it){const V=Rt.vnode.el.getBoundingClientRect(),Ut=V.width,ge=V.height;let Ae=0,Re=0;h.value>=1?(Ae=Ut,Re=Ae/h.value,Re>ge&&(Re=ge,Ae=Re*h.value)):(Re=ge,Ae=Re*h.value,Ae>Ut.value&&(Ae=Ut.value,Re=Ae/h.value)),Yt=(Ut-Ae)/2,xt=(ge-Re)/2,wt=Ae,it=Re}const Et=200;fe.toTween({left:$t,top:se,width:ne,height:ue},{left:Yt,top:xt,width:wt,height:it},{duration:Et,onStart(){},onUpdate(V){Ct.el.style.left=V.left+"px",Ct.el.style.top=V.top+"px",Ct.el.style.width=V.width+"px",Ct.el.style.height=V.height+"px"},onComplete(V){_.x=V.left,_.y=V.top,_.width=V.width,_.height=V.height,q?.()}}).startAuto()},Ct=Ge("div",{style:`
|
|
82
86
|
position:absolute;
|
|
83
|
-
left:${
|
|
84
|
-
top:${
|
|
85
|
-
width: ${
|
|
86
|
-
height: ${
|
|
87
|
+
left:${Q}px;
|
|
88
|
+
top:${A}px;
|
|
89
|
+
width: ${j}px;
|
|
90
|
+
height: ${yt}px;
|
|
87
91
|
background-image: url(${n.src});
|
|
88
92
|
background-repeat: no-repeat;
|
|
89
93
|
background-position: center center;
|
|
90
|
-
background-size: 100% 100%`,onVnodeMounted:()=>{
|
|
94
|
+
background-size: 100% 100%`,onVnodeMounted:()=>{bt(Q,A,j,yt)}}),Rt=xy(Ge("div",{style:`
|
|
91
95
|
position:absolute;
|
|
92
96
|
width: 100%;
|
|
93
97
|
height: 100%;
|
|
@@ -95,7 +99,7 @@ Expected function or array of functions, received type ${typeof s}.`),Qt)}functi
|
|
|
95
99
|
display: flex;
|
|
96
100
|
justify-content: center;
|
|
97
101
|
align-items: center;
|
|
98
|
-
`,onClick:()=>{const{x:It,y:Xt,width:Wt,height:se}=o.value.getBoundingClientRect();yt(b.x,b.y,b.width,b.height,It,Xt,Wt,se,()=>{Pt(),y=!1})}},wt));return yt}function I(){if(!i.value||!n.openImageViewWhenClick)return;y=!0;const{x:et,y:M,width:Y,height:gt}=o.value.getBoundingClientRect();k=N(et,M,Y,gt)}return ee(()=>{g?.destroy()}),t({}),(et,M)=>(V(),X("div",{ref_key:"imageOutterRef",ref:i,class:"image",style:J({backgroundColor:n.bgColor}),onClick:I},[E("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:J({width:p.value+"px",height:f.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${p.value}px ${f.value}px`})},null,4)],4))}}),g1="",aa=dt(Q0,[["__scopeId","data-v-928690db"]]),J0=ut({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,r=e,i=j();let o=[],a;const l=new re;let c=0,u=!1;const h={};function p(){switch(qn(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}}p();function f(){i.value&&(Ur(Ne("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(M=>Ne("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Ne(M.component,{...M.attributes,style:{...M.attributes.style||{},...h}})))),i.value),l?.fromDOM([...i.value.children[0].children]))}const g=M=>{if(!(!a||u||!o.length)){if(u=!0,M.push&&(c=o.length-1),M.pop){if(!o.length){u=!1;return}c=o.length-1}if(M.reset&&(c=0),M.forward){if(c>=o.length-1){u=!1;return}c++}if(M.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:n.easeName,dur:M?.dur??n.duration,direction:M.back||M.pop?"reverse":"normal",onComplete:()=>{(M.back||M.pop)&&c--,M.pop&&(o.pop(),f()),r("finish",c),u=!1,M?.onComplete?.()}},c)}};function y(M=[],Y){o=[],M.forEach(gt=>o.push({component:gt.component,attributes:gt.attributes??{}})),f(),g({reset:!0,onComplete:Y})}function b(M,Y={}){o.push({component:M,attributes:Y}),f(),g({push:!0})}function k(){g({pop:!0})}function A(){g({forward:!0})}function N(){g({back:!0})}function I(M,Y){M>o.length-1||M<0||M==c||(Y||(Y=n.duration/Math.abs(M-c)),c<M?g({forward:!0,dur:Y,onComplete:()=>{setTimeout(()=>{I(M,Y)})}}):g({back:!0,dur:Y,onComplete:()=>{setTimeout(()=>{I(M,Y)})}}))}function et(){f(),g({resize:!0})}return ks(()=>{oe.page.on("resize",et)}),ee(()=>{oe.page.off("resize",et)}),t({reset:y,push:b,pop:k,forward:A,back:N,goto:I}),(M,Y)=>(V(),X("div",{ref_key:"routesContainerRef",ref:i,class:"routes",style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-y":"scroll","overflow-x":"hidden"}},null,512))}}),v1="",Mu=dt(J0,[["__scopeId","data-v-f06c01ec"]]),tv={style:{position:"absolute",width:"100%",height:"100%"}},ev={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},sv=ut({customOptions:{Image:aa},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(s,{expose:t,emit:e}){const n=s,r=j(),i=j(),o=j(),a=j(0);let l;function c(g){a.value=g}function u(){o.value?.forward()}function h(){o.value?.back()}kt(i,()=>{i.value&&(l?.destroy(),l=new oe(i.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",f))}),kt(o,()=>{o.value&&o.value.reset(n.urls.map(g=>({component:Ne("div",{style:"position:absolute;width:100%;height:100%"},Ne(aa,{mode:"aspectFit",src:g,openImageViewWhenClick:!1}))})))});function p(){r.value?.open()}function f(){r.value?.close()}return ee(()=>{l?.destroy()}),t({open:p,close:f}),(g,y)=>(V(),Ce(He,{ref_key:"popRef",ref:r,directionFrom:"absolute"},{default:ne(()=>[E("div",tv,[n.urls.length>1?(V(),X("div",ev,Ct(a.value+1)+" / "+Ct(n.urls.length),1)):Ut("",!0),E("div",{ref_key:"pageRef",ref:i,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[xt(Mu,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),y1="",nv=dt(sv,[["__scopeId","data-v-be51d205"]]),_1="",rv={class:"page"},iv={class:"header"},ov={class:"main"},av={class:"main-scroll"},lv={class:"footer"},cv=ut({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return xm(s.designWidth),t({}),(r,i)=>(V(),X("div",rv,[E("header",iv,[zt(r.$slots,"header",{},void 0,!0)]),E("div",ov,[E("div",av,[zt(r.$slots,"main",{},void 0,!0)])]),E("footer",lv,[zt(r.$slots,"footer",{},void 0,!0)])]))}}),b1="",uv=dt(cv,[["__scopeId","data-v-3904d6b5"]]),hv=ut({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,r=Se({}),i=Se({});function o(){switch(qn(r),qn(i),n.type){case"table":r.display="table",i.display="table-cell",i.verticalAlign="middle",i.textAlign="center";break;case"transform":i.position="absolute",i.top="50%",i.left="50%",i.transform="translate(-50%, -50%)";break;case"grid":r.display="grid",r.justifyContent="center",r.alignItems="center";break;case"flex":default:r.display="flex",i.margin="auto"}}return o(),ee(()=>{}),t({}),(a,l)=>(V(),X("div",{class:"layout-center",style:J(r)},[E("div",{style:J(i)},[zt(a.$slots,"default",{},void 0,!0)],4)],4))}}),x1="",fv=dt(hv,[["__scopeId","data-v-a768b36f"]]),dv=(s=>(An("data-v-d02782ac"),s=s(),Mn(),s))(()=>E("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),pv=ut({customOptions:{Pop:He,Button:fe},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const t=s,e=j(),n=j(),r=j(),i=Se({left:"0",top:"0"});kt(n,()=>{o()}),kt(r,()=>{o()});function o(){if(!n.value||!r.value)return;const l=fu(),c=n.value.getBoundingClientRect(),u=r.value.getBoundingClientRect(),h=u.width,p=u.height;let f=c.x+c.width+t.gap,g=c.y;f=Math.max(t.gap,Math.min(f,l.width-h-t.gap)),g=Math.max(t.gap,Math.min(g,l.height-p-t.gap)),i.left=`${f}px`,i.top=`${g}px`}function a(){e.value.open()}return(l,c)=>(V(),X(Nt,null,[E("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[zt(l.$slots,"button",{},()=>[xt(fe,null,{default:ne(()=>[Me("popover-default-button")]),_:1})],!0)],512),xt(He,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:ne(()=>[E("div",{ref_key:"popoverPanelRef",ref:r,style:J([{display:"inline-block",position:"absolute"},i])},[zt(l.$slots,"panel",{},()=>[dv],!0)],4)]),_:3},8,["isGlobal"])],64))}}),S1="",la=dt(pv,[["__scopeId","data-v-d02782ac"]]),mv={class:"tab"},gv=ut({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(V(),X("div",mv,[zt(e.$slots,"default",{},void 0,!0)]))}}),E1="",vv=dt(gv,[["__scopeId","data-v-6589e7fa"]]),yv={class:"tabs"},_v=["onClick"],bv={class:"content"},xv=ut({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(n.initIndex),o=Se([]),a=j(),l=j(0),c=j(0),u=j(0),h=j([]),p=[],f=Vf(),g=f.default&&f.default();g&&(Kn(o,g),k(i.value));const y=(N,I)=>{if(N){if(p.push({index:I,el:N}),p.length<o.length)return;h.value=p}};kt([a,h],()=>{b()});function b(){if(a.value&&h.value.length){const N=a.value.getBoundingClientRect(),I=h.value[i.value].el.getBoundingClientRect();l.value=I.x-N.x,c.value=I.y-N.y+I.height-2,u.value=I.width}}function k(N){i.value=N,r("changedIndex",N),b(),A.value.goto(N)}const A=j();return kt(A,()=>{A.value&&A.value.reset(n.pages,()=>{A.value.goto(n.initIndex)})}),t({}),(N,I)=>(V(),X("div",yv,[E("div",{class:"header",ref_key:"headerRef",ref:a},[(V(!0),X(Nt,null,ve(n.labels,(et,M)=>(V(),X("div",{key:et,class:be(M==i.value?"active":""),onClick:Y=>k(M)},[E("div",{ref_for:!0,ref:Y=>y(Y,M)},Ct(et),513)],10,_v))),128)),E("div",{class:"indicator",style:J({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),E("div",bv,[xt(Mu,{ref_key:"routesRef",ref:A,direction:"rightToLeft",duration:200},null,512)])]))}}),C1="",wv=dt(xv,[["__scopeId","data-v-e74e266d"]]),Sv=["width","height"],Ev=ut({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let r=()=>{};const i=j();return kt(i,()=>{if(!i.value)return;const o=new oe(i.value),a=new Ou(o);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),r=()=>{Qs.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>r()}),(o,a)=>(V(),X("canvas",{ref_key:"panelRef",ref:i,width:n.canvasWidth,height:n.canvasHeight,style:J([`border: 1px solid ${o.borderColor}`])},null,12,Sv))}}),Cv={class:"wrap",style:{}},Tv=ut({customOptions:{ProgressBar:ar},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(),o=()=>{const a=mm();r("progress",a),i.value?.goto(a)};return oe.page.registerGlobalScrollChange(o),ee(()=>{oe.page.removeGlobalScrollChange(o)}),t({}),(a,l)=>(V(),X("div",Cv,[xt(ar,{ref_key:"bar",ref:i,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"])]))}}),T1="",kv=dt(Tv,[["__scopeId","data-v-2e31cfe2"]]),Ov=["fill"],Pv=["fill"],Iv=ut({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:it.colorPrimary}},setup(s){const t=s;return(e,n)=>(V(),X("svg",{style:J(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,Ov),E("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,Pv)],4))}}),k1="",ca=dt(Iv,[["__scopeId","data-v-987aed3d"]]),hi=s=>(An("data-v-5f064292"),s=s(),Mn(),s),Dv=hi(()=>E("div",{class:"title"},"车牌颜色",-1)),Nv={class:"plate-types"},Av=["onClick"],Mv=hi(()=>E("div",{class:"title"},"车牌号码",-1)),Rv={class:"plate-numbers"},$v=hi(()=>E("div",{class:"dot"},"·",-1)),Lv=["onClick"],Vv=hi(()=>E("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),Fv=ut({customOptions:{SVGCheck:ca},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=[{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=j(0),a=Se([]),l=j(-1);function c(){G0({initPlates:a,completePlateLength:i[o.value].completePlateLength,onPlates:p=>{Kn(a,p),l.value=a.length,a.length===i[o.value].completePlateLength&&r("complete",i[o.value].name,a.join(""))}})}const u=p=>{o.value=p,l.value<=i[p].completePlateLength&&a.length<i[p].completePlateLength?(l.value=a.length,c(),r("clear")):Kn(a,a.slice(0,i[p].completePlateLength)),i[p].completePlateLength===a.length&&r("complete",i[o.value].name,a.join(""))},h=p=>{Kn(a,a.slice(0,p)),l.value=Math.min(Math.max(0,l.value),p),c(),r("clear")};return t({}),(p,f)=>(V(),X("div",uo(p.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[Dv,E("div",Nv,[(V(),X(Nt,null,ve(i,(g,y)=>E("div",{key:y,class:be(y==o.value?"checked":""),onClick:b=>u(y)},[E("div",{style:J(g.style)},null,4),E("div",null,Ct(g.name),1),E("div",null,[xt(ca,{color:"#ffffff",width:"0.14rem"})])],10,Av)),64))]),Mv,E("div",Rv,[E("div",{onClick:f[0]||(f[0]=g=>h(0)),class:be(l.value==0?"current":"")},Ct(a[0]),3),E("div",{onClick:f[1]||(f[1]=g=>h(1)),class:be(l.value==1?"current":"")},Ct(a[1]),3),$v,(V(!0),X(Nt,null,ve(i[o.value].completePlateLength-2,g=>(V(),X("div",{key:g,class:be(g+1==l.value?"current":""),onClick:y=>h(g+1)},Ct(a[g+1]),11,Lv))),128))]),Vv],16))}}),O1="",Gv=dt(Fv,[["__scopeId","data-v-5f064292"]]),jv={class:"parent"},zv=ut({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,r=[{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 i(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const p=r.filter(f=>f.name===h);return p.length?p[0]:o("未知")}const a=i(n.plate),l=j(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,p)=>(V(),X("div",jv,[E("div",{class:be(["leading",n.displayType]),style:J(l.value.style)},Ct(l.value.name),7),E("div",{class:"text",style:J({color:Dt(c),"font-size":Dt(u)})},Ct(Dt(a)),5)]))}}),P1="",Bv=dt(zv,[["__scopeId","data-v-11a104c3"]]),yn=(s,t=0,e=1)=>s>e?e:s<t?t:s,de=(s,t=0,e=Math.pow(10,t))=>Math.round(e*s)/e,Hv=s=>Wv(ua(s)),ua=s=>(s[0]==="#"&&(s=s.substring(1)),s.length<6?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?de(parseInt(s[3]+s[3],16)/255,2):1}:{r:parseInt(s.substring(0,2),16),g:parseInt(s.substring(2,4),16),b:parseInt(s.substring(4,6),16),a:s.length===8?de(parseInt(s.substring(6,8),16)/255,2):1}),Uv=s=>Xv(Yv(s)),Ru=({h:s,s:t,v:e,a:n})=>{const r=(200-t)*e/100;return{h:de(s),s:de(r>0&&r<200?t*e/100/(r<=100?r:200-r)*100:0),l:de(r/2),a:de(n,2)}},ha=s=>{const{h:t,s:e,l:n}=Ru(s);return`hsl(${t}, ${e}%, ${n}%)`},fa=s=>{const{h:t,s:e,l:n,a:r}=Ru(s);return`hsla(${t}, ${e}%, ${n}%, ${r})`},Yv=({h:s,s:t,v:e,a:n})=>{s=s/360*6,t=t/100,e=e/100;const r=Math.floor(s),i=e*(1-t),o=e*(1-(s-r)*t),a=e*(1-(1-s+r)*t),l=r%6;return{r:de([e,o,i,i,a,e][l]*255),g:de([a,e,e,o,i,i][l]*255),b:de([i,i,a,e,e,o][l]*255),a:de(n,2)}},fi=s=>{const t=s.toString(16);return t.length<2?"0"+t:t},Xv=({r:s,g:t,b:e,a:n})=>{const r=n<1?fi(de(n*255)):"";return"#"+fi(s)+fi(t)+fi(e)+r},Wv=({r:s,g:t,b:e,a:n})=>{const r=Math.max(s,t,e),i=r-Math.min(s,t,e),o=i?r===s?(t-e)/i:r===t?2+(e-s)/i:4+(s-t)/i:0;return{h:de(60*(o<0?o+6:o)),s:de(r?i/r*100:0),v:de(r/255*100),a:n}},$u=(s,t)=>{if(s===t)return!0;for(const e in s)if(s[e]!==t[e])return!1;return!0},qv=(s,t)=>s.toLowerCase()===t.toLowerCase()?!0:$u(ua(s),ua(t)),Lu={},Vu=s=>{let t=Lu[s];return t||(t=document.createElement("template"),t.innerHTML=s,Lu[s]=t),t},da=(s,t,e)=>{s.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let _n=!1;const pa=s=>"touches"in s,Kv=s=>_n&&!pa(s)?!1:(_n||(_n=pa(s)),!0),Fu=(s,t)=>{const e=pa(t)?t.touches[0]:t,n=s.el.getBoundingClientRect();da(s.el,"move",s.getMove({x:yn((e.pageX-(n.left+window.pageXOffset))/n.width),y:yn((e.pageY-(n.top+window.pageYOffset))/n.height)}))},Zv=(s,t)=>{const e=t.keyCode;e>40||s.xy&&e<37||e<33||(t.preventDefault(),da(s.el,"move",s.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class ma{constructor(t,e,n,r){const i=Vu(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(i.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=r,this.nodes=[o.firstChild,o]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(_n?"touchmove":"mousemove",this),e(_n?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!Kv(t)||!_n&&t.button!=0)return;this.el.focus(),Fu(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),Fu(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Zv(this,t);break}}style(t){t.forEach((e,n)=>{for(const r in e)this.nodes[n].style.setProperty(r,e[r])})}}class Qv extends ma{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:ha({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${de(t)}`)}getMove(t,e){return{h:e?yn(this.h+t.x*360,0,360):360*t.x}}}class Jv extends ma{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:ha(t)},{"background-color":ha({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${de(t.s)}%, Brightness ${de(t.v)}%`)}getMove(t,e){return{s:e?yn(this.hsva.s+t.x*100,0,100):t.x*100,v:e?yn(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const ty=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',ey="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",sy="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",di=Symbol("same"),ga=Symbol("color"),Gu=Symbol("hsva"),va=Symbol("update"),ju=Symbol("parts"),pi=Symbol("css"),mi=Symbol("sliders");let ny=class extends HTMLElement{static get observedAttributes(){return["color"]}get[pi](){return[ty,ey,sy]}get[mi](){return[Jv,Qv]}get color(){return this[ga]}set color(t){if(!this[di](t)){const e=this.colorModel.toHsva(t);this[va](e),this[ga]=t}}constructor(){super();const t=Vu(`<style>${this[pi].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[ju]=this[mi].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const r=this.colorModel.fromAttr(n);this[di](r)||(this.color=r)}handleEvent(t){const e=this[Gu],n={...e,...t.detail};this[va](n);let r;!$u(n,e)&&!this[di](r=this.colorModel.fromHsva(n))&&(this[ga]=r,da(this,"color-changed",{value:r}))}[di](t){return this.color&&this.colorModel.equal(t,this.color)}[va](t){this[Gu]=t,this[ju].forEach(e=>e.update(t))}};class ry extends ma{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const e=fa({...t,a:0}),n=fa({...t,a:1}),r=t.a*100;this.style([{left:`${r}%`,color:fa(t)},{"--gradient":`linear-gradient(90deg, ${e}, ${n}`}]);const i=de(r);this.el.setAttribute("aria-valuenow",`${i}`),this.el.setAttribute("aria-valuetext",`${i}%`)}getMove(t,e){return{a:e?yn(this.hsva.a+t.x):t.x}}}const iy=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class oy extends ny{get[pi](){return[...super[pi],iy]}get[mi](){return[...super[mi],ry]}}const ay={defaultColor:"#0001",toHsva:Hv,fromHsva:Uv,equal:qv,fromAttr:s=>s};class ly extends oy{get colorModel(){return ay}}class cy extends ly{}customElements.define("hex-alpha-color-picker",cy);const uy=ut({customOptions:{Popover:la},__name:"ColorPicker",props:{color:{default:it.colorPrimary}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,r=j(e.color);kt(r,(a,l)=>{a!==l&&n("change",a)});const i=j(),o=a=>{r.value=a.detail.value};return kt(i,()=>{i.value&&(i.value.removeEventListener("color-changed",o),i.value.addEventListener("color-changed",o))}),(a,l)=>{const c=gf("hex-alpha-color-picker");return V(),Ce(la,null,{button:ne(()=>[zt(a.$slots,"default",{},()=>[E("span",{class:"button",style:J({backgroundColor:r.value})},null,4)],!0)]),panel:ne(()=>[xt(c,{ref_key:"colorPickerRef",ref:i,color:r.value},null,8,["color"])]),_:3})}}}),I1="",hy=dt(uy,[["__scopeId","data-v-ac12603f"]]),D1="",fy={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",Fo&&this.$el.appendChild(s),s.data="about:blank",Fo||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&&(!Fo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},dy={class:"resize-observer",tabindex:"-1"};function py(s,t,e,n,r,i){return V(),X("div",dy)}const my=dt(fy,[["render",py],["__scopeId","data-v-d5987ae1"]]),gy=ut({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,r=j(n.mapWidth),i=j(n.mapHeight);let o;const a=j();return kt(a,()=>{a.value&&(o=new oe(a.value,!1),o.on("resize",(l,c)=>{r.value=l+"px",i.value=c+"px"}),o.start())}),ks(()=>{W.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new ag(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),ee(()=>{o.destroy()}),t({}),(l,c)=>(V(),X("div",uo({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[zt(l.$slots,"default",{width:r.value,height:i.value},void 0,!0)],16))}}),N1="",vy=dt(gy,[["__scopeId","data-v-e5da8598"]]);var lr=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 r=(performance||Date).now(),i=r,o=0,a=e(new lr.Panel("FPS","#0ff","#002")),l=e(new lr.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new lr.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){r=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-r,200),u>i+1e3&&(a.update(o*1e3/(u-i),100),i=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:t,setMode:n}};lr.Panel=function(s,t,e){var n=1/0,r=0,i=Math.round,o=i(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,p=15*o,f=74*o,g=30*o,y=document.createElement("canvas");y.width=a,y.height=l,y.style.cssText="width:80px;height:48px";var b=y.getContext("2d");return b.font="bold "+9*o+"px Helvetica,Arial,sans-serif",b.textBaseline="top",b.fillStyle=e,b.fillRect(0,0,a,l),b.fillStyle=t,b.fillText(s,c,u),b.fillRect(h,p,f,g),b.fillStyle=e,b.globalAlpha=.9,b.fillRect(h,p,f,g),{dom:y,update:function(k,A){n=Math.min(n,k),r=Math.max(r,k),b.fillStyle=e,b.globalAlpha=1,b.fillRect(0,0,a,p),b.fillStyle=t,b.fillText(i(k)+" "+s+" ("+i(n)+"-"+i(r)+")",c,u),b.drawImage(y,h+o,p,f-o,g,h,p,f-o,g),b.fillRect(h+f-o,p,o,g),b.fillStyle=e,b.globalAlpha=.9,b.fillRect(h+f-o,p,o,i((1-k/A)*g))}}};const yy=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=j();return ks(()=>{const n=new lr,r=n.domElement.style;r.margin="1em",e.value.appendChild(n.domElement),Yt.run(()=>(n.update(),!0))}),t({}),(n,r)=>(V(),X("div",{ref_key:"containerRef",ref:e},null,512))}}),_y=["width","height"],by=ut({__name:"Canvas",props:{bgColor:{default:"#333333"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j(),o=j(),a=j(0),l=j(0);let c;kt(i,()=>{i.value&&(c=new oe(i.value,!1),c.on("resize",(y,b)=>{const k=fu();a.value=Math.min(y,k.width),l.value=Math.min(b,k.height),f()}),c.start())}),kt(o,()=>{o.value&&f()});let u,h,p;function f(){u||!o.value||!a.value||!l.value||(u=new oe(o.value,!1),u.on("resize",(y,b)=>{h=new Ou(u),r("resize",y,b),p?.(h)}),u.start())}function g(){return new Promise(y=>{if(h&&u.width&&u.height)return y(h);p=y})}return ee(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:g}),(y,b)=>(V(),X("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:i},[E("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:J({backgroundColor:n.bgColor})},null,12,_y)],512))}}),M1="",bn=dt(by,[["__scopeId","data-v-98a022ba"]]),xy={class:"ease-graph"},wy=ut({customOptions:{Button:fe,Canvas:bn},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,r=e,i=j();let o;kt(i,()=>{i.value&&i.value.getCanvas().then(u=>{o=u,r("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,r("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 p=!1,f=!1;re.toTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{duration:n.easeDuration,easeFunction:ht.Easing.Linear.None,onComplete:()=>{p=!0,p&&f&&(r("onCompleted",n.easeName),a=!1)}}).startAuto(),re.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:()=>{f=!0,p&&f&&(r("onCompleted",n.easeName),a=!1)}}).startAuto()},c=()=>{r("onSelected",n.easeName,n.easeFunction)};return ee(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(V(),X("div",xy,[E("div",null,"缓动:"+Ct(u.easeName),1),E("div",null,[E("div",null,[xt(fe,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:ne(()=>[Me(" 开始 ")]),_:1})]),E("div",null,[xt(fe,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:ne(()=>[Me(" 选择 ")]),_:1},8,["stylePattern"])])]),E("div",{style:J({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[xt(bn,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),R1="",ya=dt(wy,[["__scopeId","data-v-a2b487d0"]]),Sy=2e3,Ey=ut({customOptions:{EaseGraphDisplay:ya},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:ht.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:ht.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:ht.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:ht.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:ht.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:ht.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:ht.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:ht.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:ht.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:ht.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:ht.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:ht.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:ht.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:ht.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:ht.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:ht.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:ht.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:ht.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:ht.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:ht.Easing.Circular.In},{easeName:"CircularOut",easeFunction:ht.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:ht.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:ht.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:ht.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:ht.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:ht.Easing.Back.In},{easeName:"BackOut",easeFunction:ht.Easing.Back.Out},{easeName:"BackInOut",easeFunction:ht.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:ht.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:ht.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:ht.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:ht.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:ht.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:ht.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:ht.Easing.createStep(4)},{easeName:"8 steps",easeFunction:ht.Easing.createStep(8)},{easeName:"12 steps",easeFunction:ht.Easing.createStep(12)},{easeName:"16 steps",easeFunction:ht.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:ht.Easing.createNoisyEasing(ht.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:ht.Easing.createNoisyEasing(ht.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:ht.Easing.createNoisyEasing(ht.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:ht.Easing.swing},{easeName:"causeSeizures",easeFunction:ht.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,r=e,i={};function o(p,f){p&&(i[f]={el:p})}const a=new au(10);function l(p){a.addTask(()=>(i[p].el.start(),new Promise(f=>{i[p].resolve=f})))}function c(p){i[p].resolve?.()}const u=j("Linear");function h(p,f){u.value=p,r("selectedEaseFunction",p,f)}return h("Linear",ht.Easing.Linear.None),t({}),(p,f)=>(V(),X("div",null,[(V(!0),X(Nt,null,ve(n.easeList,g=>(V(),X("div",{key:g.easeName,class:"ease-graph-wrap"},[g.easeFunction?(V(),Ce(ya,{key:0,easeName:g.easeName,easeFunction:g.easeFunction,easeDuration:Sy,isSelected:u.value==g.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:y=>o(y,g.easeName)},null,8,["easeName","easeFunction","isSelected"])):Ut("",!0)]))),128))]))}}),$1="",Cy=dt(Ey,[["__scopeId","data-v-fa7ba01d"]]),Ty={class:"interpolation-graph"},zu=1/6,Bu=5/6,ky=ut({customOptions:{Button:fe,Canvas:bn},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,r=e,i=j();let o;kt(i,()=>{i.value&&i.value.getCanvas().then(y=>{o=y,r("onMounted",n.interpolationName),o.app.on("showInParent",g)})});const a=n.canvasWidth*zu,l=n.canvasHeight/2,c=[n.canvasWidth*Bu,n.canvasWidth/2],u=[n.canvasHeight*zu,n.canvasHeight*Bu],h=[...c,a],p=[...u,l];let f=!1;const g=()=>{if(!o||f)return;f=!0,r("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 y=0;y<c.length;y++)o.ctx.fillRect(c[y]-2,u[y]-2,4,4);let b=!1,k=!1;const A={x:a,y:l,old:{x:a,y:l}};re.toTween(A,{x:c,y:u},{duration:n.easeDuration,easeFunction:ht.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:I=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(I.old.x,I.old.y),o.ctx.lineTo(I.x,I.y),o.ctx.closePath(),o.ctx.stroke(),I.old.x=I.x,I.old.y=I.y},onComplete:()=>{b=!0,b&&k&&(r("onCompleted",n.interpolationName),f=!1)}}).startAuto();const N={x:a,y:l,old:{x:a,y:l}};re.toTween(N,{x:h,y:p},{duration:n.easeDuration,easeFunction:ht.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:I=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(I.old.x,I.old.y),o.ctx.lineTo(I.x,I.y),o.ctx.closePath(),o.ctx.stroke(),I.old.x=I.x,I.old.y=I.y},onComplete:()=>{k=!0,b&&k&&(r("onCompleted",n.interpolationName),f=!1)}}).startAuto()};return ee(()=>{o.app.off("showInParent",g)}),t({start:g}),(y,b)=>(V(),X("div",Ty,[E("div",null,[Me(" 插值:"+Ct(y.interpolationName)+" ",1),xt(fe,{stylePattern:"outline",height:"32px",onClick:g},{default:ne(()=>[Me(" 开始 ")]),_:1})]),E("div",{style:J({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[xt(bn,{ref_key:"canvasRef",ref:i,bgColor:"#ffffff"},null,512)],4)]))}}),L1="",_a=dt(ky,[["__scopeId","data-v-18aca8d5"]]),Oy=2e3,Py=ut({customOptions:{InterpolationGraphDisplay:_a},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:ht.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:ht.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:ht.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,r={};function i(c,u){c&&(r[u]={el:c})}const o=new au(1);function a(c){o.addTask(()=>(r[c].el.start(),new Promise(u=>{r[c].resolve=u})))}function l(c){r[c].resolve?.()}return t({}),(c,u)=>(V(),X("div",null,[(V(!0),X(Nt,null,ve(n.interpolationList,h=>(V(),X("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[xt(_a,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Oy,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:p=>i(p,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),V1="",Iy=dt(Py,[["__scopeId","data-v-6e8312e3"]]),Dy=ut({__name:"SVG",props:{bgColor:{default:"#fefefe"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,r=e,i=j();kt(i,()=>{i.value&&c()});let o,a,l;function c(){o||!i.value||(o=new oe(i.value,!1),o.on("resize",(h,p)=>{a=new Xm(o),r("resize",h,p),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:()=>i.value,getSVG:u}),(h,p)=>(V(),X("div",{ref_key:"svgRef",ref:i,class:"svg",style:J({backgroundColor:n.bgColor})},null,4))}}),F1="",Hu=dt(Dy,[["__scopeId","data-v-60764462"]]),Ny='<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>',Ay={class:"btns"},My={class:"btns"},Ry={class:"btns sub-btns"},$y={class:"btns sub-btns"},Ly={class:"btns sub-btns"},Vy={style:{width:"100%"}},Fy={style:{width:"100%"}},Gy={style:{height:"400px"}},jy={style:{height:"400px"}},zy={style:{height:"400px"},class:"css-area"},By={class:"animate-to-css-group"},Hy={class:"animate-to-css-group"},Uy=ut({customOptions:{Button:fe,InputRange:ci,SVG:Hu,Canvas:bn},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:ht.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=j();let r=0,i=0;kt(n,()=>{n.value&&n.value.getSVG().then(C=>{r=C.app.width,i=C.app.height,C.app.on("resize",(S,x)=>{r=S,i=x})})});const o=j(),a=j(),l=j(),c=j(),u=j(),h=j(),p=j(),f=j(""),g=j("");function y(C){switch(g.value=C,f.value){case"AnimateToCSS":P();break;case"AnimateToTweenCSS":K();break}}const b=new vs({svg:Ny,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"}});function k(C,S,x=30){return new he({x:C,y:S,radius:x,attrs:{fill:Le()}})}function A(C,S,x=3){const D=[];for(let H=0;H<x;H++)D.push(new he({x:Math.random()*C,y:Math.random()*S,radius:10,attrs:{fill:Le()},enableDrag:!0}));return D}function N(){return new li({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Le()}})}function I(C,S){return new Fe({x:C,y:S,attrs:{"stroke-width":"1",stroke:"#666666"}})}const et=k(0,0,8),M=k(0,0,5);function Y(){const C="PathDGroup";if(f.value==C||!n.value||!o.value)return;f.value=C;let S=[b,et,M];n.value.getSVG().then(x=>{o.value.getCanvas().then(D=>{let H,L;const Z=Vt=>{L&&x.delete(L),H&&H?.restore(),H=Vt,Vt.save(),Vt.attrs.fill="pink",Vt.attrs.stroke="green",S=[b,et,M],L=Vt.getBoundingClientRect(),L&&(L.attrs.fill="none",L.attrs.strokeWidth="4",L.attrs.stroke="#0000ff",x.path(L),S.push(L))},z=x.click(Vt=>{Z(Vt)}),at=D.click(Vt=>{Z(Vt)});let pt=0,ct=b.shapes[pt].getTotalLength(),jt=0;const Zt=.01;x.clear(),x.path(S),Yt.run(()=>{if(f.value!==C)return z(),at(),H?.restore(),!1;jt>1&&(pt++,jt=0,pt>b.shapes.length-1&&(pt=0),ct=b.shapes[pt].getTotalLength()),D.ctx.clearRect();let{x:Vt,y:xn}=b.shapes[pt].interpolate(jt);et.x=Vt,et.y=xn;let{x:ba,y:gi}=b.shapes[pt].getPointAtLength(jt*ct);return M.x=ba,M.y=gi,x.update(S),D.draw(S),jt+=Zt,!0})})})}function gt(){const C="Shapes";if(f.value==C||!n.value||!o.value)return;f.value=C;const S=new li({x:ce(0,r),y:ce(0,i),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),x=new $e({x:ce(0,r),y:ce(0,i),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),D=new sa({x:ce(0,r),y:ce(0,i),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),H=new eg({x:ce(0,r),y:ce(0,i),scaleOnOrigin:1,attrs:{fill:Le(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),L=new sg({x:ce(0,r),y:ce(0,i),scaleOnOrigin:1,attrs:{fill:Le(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new ng({x:ce(0,r),y:ce(0,i),scaleOnOrigin:1,attrs:{fill:Le(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),z=new rg({x:ce(0,r),y:ce(0,i),scaleOnOrigin:1,attrs:{fill:Le(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),at=new ig({x:ce(0,r),y:ce(0,i),scaleOnOrigin:1,attrs:{fill:Le()},enableDrag:!0}),pt=new og({x:ce(0,r),y:ce(0,i),attrs:{strokeWidth:"2",stroke:"#ff0000",fill:"none"},enableDrag:!0}),ct=[S,x,D,H,L,Z,z,at,pt];n.value.getSVG().then(jt=>{o.value.getCanvas().then(Zt=>{jt.clear(),jt.path(ct),Yt.run(()=>f.value!==C?!1:(jt.update(ct),Zt.ctx.clearRect(),Zt.draw(ct),!0))})})}function yt(){const C="Arrow";f.value==C||!n.value||!o.value||(f.value=C,n.value.getSVG().then(S=>{const x=N(),D=I(S.app.width/2,S.app.height/2);S.clear(),S.path(D),S.path(x),Yt.run(()=>f.value!==C?!1:(S.update(x),D.fromX=x.x,D.fromY=x.y,S.update(D),!0))}),o.value.getCanvas().then(S=>{const x=N(),D=I(S.app.width/2,S.app.height/2);Yt.run(()=>f.value!=C?!1:(S.ctx.clearRect(),D.fromX=x.x,D.fromY=x.y,S.draw([D,x]),!0))}))}function wt(){const C="PointEase";f.value!=C&&(f.value=C,n.value.getSVG().then(S=>{const x=k(S.app.width/2,S.app.height/2);S.clear(),S.path(x),x.enableDrag=!0,x.targetToAfterDragFree={targetX:S.app.width/2,targetY:S.app.height/2},Yt.run(()=>f.value!==C?!1:(S.update(x),!0))}),o.value.getCanvas().then(S=>{const x=k(S.app.width/2,S.app.height/2);x.enableDrag=!0,x.targetToAfterDragFree={targetX:S.app.width/2,targetY:S.app.height/2},Yt.run(()=>f.value!=C?!1:(S.ctx.clearRect(),S.draw(x),!0))}))}function Pt(){const C="BallCollision";f.value!=C&&(f.value=C,n.value.getSVG().then(S=>{const x=k(50,S.app.height/2);x.mass=2,x.vx=2;const D=k(S.app.width-50,S.app.height/2);D.mass=1,D.vx=-2,S.clear(),S.path([x,D]),o.value.getCanvas().then(H=>{Yt.run(()=>f.value!=C?!1:(x.nextFrameCollisionTo(D),x.nextFrame(),D.nextFrame(),S.update([x,D]),H.ctx.clearRect(),H.draw([x,D]),!0))})}))}function It(){const C="Sector";if(f.value==C||!n.value||!o.value)return;f.value=C;const S=new Jm({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(x=>{x.clear(),x.path(S),o.value.getCanvas().then(D=>{Yt.run(()=>f.value!=C?!1:(x.update(S),D.ctx.clearRect(),D.draw(S),!0))})})}function Xt(){const C="RectGame";if(f.value==C)return;f.value=C;function S(Z){return new $e({x:Math.random()*Z,y:0,width:50,height:50,attrs:{fill:Le()},enableDrag:!0})}const x=.2,D=[];function H(){const Z=S(r);return D.push(Z),Z}let L=H();n.value.getSVG().then(Z=>{Z.clear(),Z.path(D),o.value.getCanvas().then(z=>{Yt.run(()=>f.value!=C?!1:(z.ctx.clearRect(),Z.isMouseDown||z.isMouseDown?(Z.update(D),z.draw(D)):(L&&L.nextFrame({gravity:x}),L&&L.y+L.height>=z.ctx.canvas.height&&(L.y=z.ctx.canvas.height-L.height,L=H(),Z.path(L)),D.forEach(at=>(L&&L!==at&&L.isIntersectRect(at)&&(L.y=at.y-L.height,L.y>=L.height?(L=H(),Z.path(L)):L=null),at)),Z.update(D),z.draw(D)),!0))})})}function Wt(){const C="PointWater";if(f.value==C)return;f.value=C;function S(x,D){const H=[];for(let L=0;L<80;L++){const Z=new he({x:x/2,y:D,radius:2,attrs:{fill:Le()}});Z.vx=Math.random()*2-1,Z.vy=Math.random()*-10-10,H.push(Z)}return H}n.value.getSVG().then(x=>{const D=S(x.app.width,x.app.height);x.clear(),x.path(D),o.value.getCanvas().then(H=>{Yt.run(()=>f.value!=C?!1:(D.forEach(L=>{L.nextFrame({gravity:.5}),(L.x-L.radius>x.app.width||L.x+L.radius<0||L.y-L.radius>x.app.height||L.y+L.radius<0)&&(L.x=x.app.width/2,L.y=x.app.height,L.vx=Math.random()*2-1,L.vy=Math.random()*-10-10)}),x.update(D),H.ctx.clearRect(),H.draw(D),!0))})})}function se(){const C="PointSpringChain";if(f.value==C)return;f.value=C;function S(Z,z){const at=[];for(let pt=0;pt<3;pt++)at.push(new he({x:Z,y:z,radius:20,attrs:{fill:Le()}}));return at}function x(){const Z=[];for(let z=0;z<3;z++)Z.push(new Fe({attrs:{"stroke-width":"1",stroke:"#666666"}}));return Z}const D=.03,H=.9,L=2;n.value.getSVG().then(Z=>{const z=x(),at=S(Z.app.width/2,Z.app.height/2);Z.clear(),Z.path(z),Z.path(at),Yt.run(()=>f.value!==C?!1:(at.forEach((pt,ct)=>{if(ct===0)pt.nextFrameSpringTo(Z.app.mousePoint,{spring:D,friction:H,gravity:L}),z[ct].fromX=Z.app.mousePoint.x,z[ct].fromY=Z.app.mousePoint.y,z[ct].x=pt.x,z[ct].y=pt.y;else{const jt=at[ct-1];pt.nextFrameSpringTo(jt,{spring:D,friction:H,gravity:L}),z[ct].fromX=jt.x,z[ct].fromY=jt.y,z[ct].x=pt.x,z[ct].y=pt.y}Z.update(z[ct]),Z.update(pt)}),!0))}),o.value.getCanvas().then(Z=>{const z=x(),at=S(Z.app.width/2,Z.app.height/2);Yt.run(()=>f.value!=C?!1:(Z.ctx.clearRect(),at.forEach((pt,ct)=>{if(ct===0)pt.nextFrameSpringTo(Z.app.mousePoint,{spring:D,friction:H,gravity:L}),z[ct].fromX=Z.app.mousePoint.x,z[ct].fromY=Z.app.mousePoint.y,z[ct].x=pt.x,z[ct].y=pt.y;else{const jt=at[ct-1];pt.nextFrameSpringTo(jt,{spring:D,friction:H,gravity:L}),z[ct].fromX=jt.x,z[ct].fromY=jt.y,z[ct].x=pt.x,z[ct].y=pt.y}}),Z.draw(z),Z.draw(at),!0))})}function At(){const C="PointSpringMulti";f.value!=C&&(f.value=C,n.value.getSVG().then(S=>{const x=[I(0,0),I(0,0),I(0,0)],D=A(S.app.width,S.app.height),H=new he({radius:20,attrs:{fill:"#ff0000"}});S.clear(),S.path([...x,...D,H]),o.value.getCanvas().then(L=>{Yt.run(()=>f.value!=C?!1:(H.nextFrameSpringTo(D,{spring:.03,friction:.9}),D.forEach((Z,z)=>{x[z].fromX=H.x,x[z].fromY=H.y,x[z].x=Z.x,x[z].y=Z.y}),S.update([...x,...D,H]),L.ctx.clearRect(),L.draw([...x,...D,H]),!0))})}))}function _t(){const C="PointSpringConnect";f.value!=C&&(f.value=C,n.value.getSVG().then(S=>{const x=[I(0,0),I(0,0),I(0,0)],D=A(S.app.width,S.app.height),H={springLength:120,spring:.03,friction:.9};S.clear(),S.path([...x,...D]),o.value.getCanvas().then(L=>{Yt.run(()=>f.value!=C?!1:(ue.nextFrameSpringConnect(D,H),x[0].x=D[0].x,x[0].y=D[0].y,x[0].fromX=D[1].x,x[0].fromY=D[1].y,x[1].x=D[1].x,x[1].y=D[1].y,x[1].fromX=D[2].x,x[1].fromY=D[2].y,x[2].x=D[2].x,x[2].y=D[2].y,x[2].fromX=D[0].x,x[2].fromY=D[0].y,S.update([...x,...D]),L.ctx.clearRect(),L.draw([...x,...D]),!0))})}))}function $(){const C="QuadraticBezierCurve";if(f.value==C)return;f.value=C;const S=50;n.value.getSVG().then(x=>{const D=new tn({x:S,y:x.app.height-S,fromX:x.app.width-S,fromY:x.app.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),H=new tn({x:S,y:x.app.height-S,fromX:x.app.width-S,fromY:x.app.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});x.clear(),x.path(D),x.path(H),Yt.run(()=>f.value!==C?!1:(H.cx=D.cx=x.app.mousePoint.x,H.cy=D.cy=x.app.mousePoint.y,x.update(D),x.update(H),!0))}),o.value.getCanvas().then(x=>{const D=new tn({x:S,y:x.ctx.canvas.height-S,fromX:x.ctx.canvas.width-S,fromY:x.ctx.canvas.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),H=new tn({x:S,y:x.ctx.canvas.height-S,fromX:x.ctx.canvas.width-S,fromY:x.ctx.canvas.height-S,cx:x.app.mousePoint.x,cy:x.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});Yt.run(()=>f.value!=C?!1:(x.ctx.clearRect(),H.cx=D.cx=x.app.mousePoint.x,H.cy=D.cy=x.app.mousePoint.y,x.draw([D,H]),!0))})}function nt(){const C="PointsRandom";f.value=C;function S(x,D){const H=[];for(let L=0;L<10;L++){const Z=new he({x:Math.random()*x,y:Math.random()*D,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});H.push(Z)}return H}n.value.getSVG().then(x=>{const D=S(x.app.width,x.app.height),H=D.map((L,Z)=>new $e({x:L.x,y:L.y,width:6,height:6,attrs:{fill:Z==0?"#ff0000":"#666666"}}));x.clear(),x.path(H),x.path(new gn(D)),o.value.getCanvas().then(L=>{L.ctx.clearRect(),L.draw([...H,new gn(D)])})})}function q(){const C="InterpolatePath";if(f.value==C||!n.value||!o.value)return;f.value=C;const S=new li({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),x=new $e({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),D=new sa({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),H=gn.generatePoints(100,100,100,3),L=gn.generatePoints(100,100,100,6);H.attrs.stroke="#666666",L.attrs.stroke="#7EEDFF";const Z=vt.polymorph([vt.fromShape(H),vt.fromShape(L),vt.fromShape(S),vt.fromShape(x),vt.fromShape(D)]),z=Z(0);z.enableDrag=!0,n.value.getSVG().then(at=>{at.clear(),at.path(z),o.value.getCanvas().then(pt=>{const ct=re.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:jt=>{Z(jt.t),at.update(z),pt.ctx.clearRect(),pt.draw(z)},onComplete:()=>{}});ct.tween.start(),Yt.run(()=>f.value!==C?!1:(ct.tween.update()||(at.update(z),pt.ctx.clearRect(),pt.draw(z)),!0))})})}function St(){const C="InterpolatePathGroup";if(f.value==C||!n.value||!o.value)return;f.value=C;const S=new li({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),x=new $e({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),D=new sa({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),H=vs.polymorph([vs.fromShape(S),vs.fromShape(x),b,vs.fromShape(D)]),L=H(0);n.value.getSVG().then(Z=>{Z.clear(),Z.path(L),o.value.getCanvas().then(z=>{re.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:at=>{H(at.t),Z.update(L),z.ctx.clearRect(),z.draw(L)},onComplete:()=>{}}).startAuto()})})}const lt=vt.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"),Rt=+lt.getTotalLength().toFixed(0),Ft=j(Rt),ae=j(Math.floor(Rt/2));function Oe(C){Ft.value=C,lt.setAttr("strokeDasharray",`${Ft.value} ${Ft.value}`),n.value.getSVG().then(S=>{S.update(lt)}),o.value.getCanvas().then(S=>{S.ctx.clearRect(),S.draw(lt)})}function Lt(C){ae.value=C,lt.setAttr("strokeDashoffset",`${ae.value}`),n.value.getSVG().then(S=>{S.update(lt)}),o.value.getCanvas().then(S=>{S.ctx.clearRect(),S.draw(lt)})}function Ae(){const C="StrokeDash";f.value==C||!n.value||!o.value||(f.value=C,lt.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Ft.value} ${Ft.value}`,strokeDashoffset:`${ae.value}`}),n.value.getSVG().then(S=>{S.clear(),S.path(lt)}),o.value.getCanvas().then(S=>{S.ctx.clearRect(),S.draw(lt)}))}function Gt(){const C="StrokeDashAuto";f.value==C||!n.value||!o.value||(f.value=C,lt.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(S=>{S.clear(),S.path(lt),o.value.getCanvas().then(x=>{lt.strokeDashToTween({duration:4e3,easeFunction:e.easeFunction,onUpdate:()=>{S.update(lt),x.ctx.clearRect(),x.draw(lt)}}).startAuto()})}))}function le(){const C="StrokeDashGroupParallelAuto";f.value==C||!n.value||!o.value||(f.value=C,n.value.getSVG().then(S=>{S.clear(),b.setAttrs({stroke:"none"}),S.path(b),o.value.getCanvas().then(x=>{x.ctx.clearRect(),b.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:Le()})},onGroupUpdate:()=>{S.update(b),x.ctx.clearRect(),x.draw(b)}}).startAuto()})}))}function Ge(){const C="StrokeDashGroupSequenceAuto";f.value==C||!n.value||!o.value||(f.value=C,n.value.getSVG().then(S=>{S.clear(),b.setAttrs({stroke:"none"}),S.path(b),o.value.getCanvas().then(x=>{x.ctx.clearRect(),b.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{b.setAttrs({stroke:Le()})},onGroupUpdate:()=>{S.update(b),x.ctx.clearRect(),x.draw(b)}}).startAuto()})}))}const qt=new re,Kt=new re;function v(){const C="AnimateToCSS";f.value=C,qt.fromDOM([a.value,l.value,c.value]),Kt.fromDOM([u.value])}let w=0;function P(){switch(g.value){case"slideLeft":qt.toCSS("slideLeft",{},++w%3),Kt.toCSS("slideLeft",{direction:w%2==0?"normal":"reverse"});break;case"slideRight":qt.toCSS("slideRight",{easeName:"ease",dur:1e3},--w%3),Kt.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":qt.toCSS("slideDown",{easeName:"ease-out",dur:500},++w%3),Kt.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":qt.toCSS("slideUp",{easeName:"ease-in",dur:500},++w%3),Kt.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":qt.toCSS("flipLeft",{easeName:"linear",dur:1e3},++w%3),Kt.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":qt.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++w%3),Kt.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":qt.toCSS("flipDown",{easeName:"ease",dur:1e3},++w%3),Kt.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":qt.toCSS("flipUp",{easeName:"ease",dur:1e3},++w%3),Kt.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":qt.toCSS("popIn",{easeName:"ease",dur:1e3},++w%3),Kt.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":qt.toCSS("popOut",{easeName:"ease",dur:1e3},++w%3),Kt.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":qt.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},++w%3),Kt.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let R;function F(){const C="AnimateToTweenCSS";f.value=C,W.setStyle(p.value,{transform:""})}function K(){R||(R=new oe(h.value));const C=50,S=0,x=0,D=0,H=R.width-C,L=R.height-C,Z=R.height-C,z=R.width/2-C/2,at=R.height/2-C/2,pt={},ct={};switch(g.value){case"translateTo":Object.assign(pt,{translateTo:[S,x]}),Object.assign(ct,{translateTo:[H,L]});break;case"translateXTo":Object.assign(pt,{translateXTo:S}),Object.assign(ct,{translateXTo:H});break;case"translateYTo":Object.assign(pt,{translateYTo:x}),Object.assign(ct,{translateYTo:L});break;case"translateZTo":Object.assign(pt,{translateTo:[z,at],translateZTo:D}),Object.assign(ct,{translateTo:[z,at],translateZTo:Z});break;case"translate3dTo":Object.assign(pt,{translate3dTo:[z-50,at-50,D]}),Object.assign(ct,{translate3dTo:[z+50,at+50,Z]});break;case"rotateTo":Object.assign(pt,{translateTo:[z,at],rotateTo:0}),Object.assign(ct,{translateTo:[z,at],rotateTo:180});break;case"rotateXTo":Object.assign(pt,{translateTo:[z,at],rotateXTo:0}),Object.assign(ct,{translateTo:[z,at],rotateXTo:180});break;case"rotateYTo":Object.assign(pt,{translateTo:[z,at],rotateYTo:0}),Object.assign(ct,{translateTo:[z,at],rotateYTo:180});break;case"rotateZTo":Object.assign(pt,{translateTo:[z,at],rotateZTo:0}),Object.assign(ct,{translateTo:[z,at],rotateZTo:180});break;case"rotate3dTo":Object.assign(pt,{translateTo:[z,at],rotate3dTo:[0,0,0]}),Object.assign(ct,{translateTo:[z,at],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(pt,{translateTo:[z,at],scaleTo:1}),Object.assign(ct,{translateTo:[z,at],scaleTo:3});break;case"scaleXTo":Object.assign(pt,{translateTo:[z,at],scaleXTo:1}),Object.assign(ct,{translateTo:[z,at],scaleXTo:3});break;case"scaleYTo":Object.assign(pt,{translateTo:[z,at],scaleYTo:1}),Object.assign(ct,{translateTo:[z,at],scaleYTo:3});break;case"scaleZTo":Object.assign(pt,{translateTo:[z,at],scaleZTo:1}),Object.assign(ct,{translateTo:[z,at],scaleZTo:3});break;case"scale3dTo":Object.assign(pt,{translateTo:[z,at],scale3dTo:[1,1,1]}),Object.assign(ct,{translateTo:[z,at],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(pt,{translateTo:[z,at],skewTo:0}),Object.assign(ct,{translateTo:[z,at],skewTo:60});break;case"skewXTo":Object.assign(pt,{translateTo:[z,at],skewXTo:0}),Object.assign(ct,{translateTo:[z,at],skewXTo:60});break;case"skewYTo":Object.assign(pt,{translateTo:[z,at],skewYTo:0}),Object.assign(ct,{translateTo:[z,at],skewYTo:60});break}re.toTweenCSS(p.value,pt,ct,{duration:2e3,easeFunction:e.easeFunction,onUpdate:jt=>{}}).startAuto()}function st(){const C="Rosetta";f.value==C||!n.value||!o.value||(f.value=C,n.value.getSVG().then(S=>{o.value.getCanvas().then(x=>{const D=vt.generateRosetta(120,120,55,35,6);D.setAttr({stroke:"none",fill:"none"});const H=new $e({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),L=new vt({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});S.clear(),x.ctx.clearRect(),S.path([L,H]),re.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:Z=>{const z=D.trailPath(L,Z.progress);H.degree=z.alpha+90,H.x=z.x,H.y=z.y,S.update([L,H]),x.ctx.clearRect(),x.draw([L,H])}}).startAuto()})}))}const G=[{name:"PathDGroup",type:"PathDGroup",onClick:Y},{name:"Shapes",type:"Shapes",onClick:gt},{name:"Arrow",type:"Arrow",onClick:yt},{name:"targetToAfterDragFree",type:"PointEase",onClick:wt},{name:"ballCollision",type:"BallCollision",onClick:Pt},{name:"俄罗斯方块",type:"RectGame",onClick:Xt},{name:"喷泉",type:"PointWater",onClick:Wt},{name:"链式弹簧",type:"PointSpringChain",onClick:se},{name:"多点弹簧",type:"PointSpringMulti",onClick:At},{name:"连接弹簧",type:"PointSpringConnect",onClick:_t},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:$},{name:"Points - random",type:"PointsRandom",onClick:nt},{name:"线条动画",type:"InterpolatePath",onClick:q},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:St},{name:"strokeDash",type:"StrokeDash",onClick:Ae},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:Gt},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:le},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:Ge},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:v},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:F},{name:"扇形",type:"Sector",onClick:It},{name:"rosetta",type:"Rosetta",onClick:st}],Q=[{type:"slideLeft",onClick:()=>y("slideLeft")},{type:"slideRight",onClick:()=>y("slideRight")},{type:"slideDown",onClick:()=>y("slideDown")},{type:"slideUp",onClick:()=>y("slideUp")},{type:"flipLeft",onClick:()=>y("flipLeft")},{type:"flipRight",onClick:()=>y("flipRight")},{type:"flipDown",onClick:()=>y("flipDown")},{type:"flipUp",onClick:()=>y("flipUp")},{type:"popIn",onClick:()=>y("popIn")},{type:"popOut",onClick:()=>y("popOut")},{type:"rotate",onClick:()=>y("rotate")}],B=[{type:"translateTo",onClick:()=>y("translateTo")},{type:"translateXTo",onClick:()=>y("translateXTo")},{type:"translateYTo",onClick:()=>y("translateYTo")},{type:"translateZTo",onClick:()=>y("translateZTo")},{type:"translate3dTo",onClick:()=>y("translate3dTo")},{type:"rotateTo",onClick:()=>y("rotateTo")},{type:"rotateXTo",onClick:()=>y("rotateXTo")},{type:"rotateYTo",onClick:()=>y("rotateYTo")},{type:"rotateZTo",onClick:()=>y("rotateZTo")},{type:"rotate3dTo",onClick:()=>y("rotate3dTo")},{type:"scaleTo",onClick:()=>y("scaleTo")},{type:"scaleXTo",onClick:()=>y("scaleXTo")},{type:"scaleYTo",onClick:()=>y("scaleYTo")},{type:"scaleZTo",onClick:()=>y("scaleZTo")},{type:"scale3dTo",onClick:()=>y("scale3dTo")},{type:"skewTo",onClick:()=>y("skewTo")},{type:"skewXTo",onClick:()=>y("skewXTo")},{type:"skewYTo",onClick:()=>y("skewYTo")}];function rt(){return new Promise(C=>{o.value.getCanvas().then(S=>{Qs.downloadFromSVGString(S.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{C()},3e3)})})})}return ee(()=>{}),t({}),(C,S)=>(V(),X(Nt,null,[E("div",Ay,[xt(fe,{asyncClick:rt},{default:ne(()=>[Me(" downloadFromCanvasToSVG ")]),_:1})]),E("div",My,[(V(),X(Nt,null,ve(G,x=>xt(fe,{key:x.type,item:x,onClick:x.onClick,stylePattern:f.value==x.type?"fullfilled":"outline"},{default:ne(()=>[Me(Ct(x.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),hs(E("div",Ry,[(V(),X(Nt,null,ve(Q,x=>xt(fe,{key:x.type,item:x,onClick:x.onClick,stylePattern:g.value==x.type?"fullfilled":"outline"},{default:ne(()=>[Me(Ct(x.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ns,f.value=="AnimateToCSS"]]),hs(E("div",null," 当前缓动函数:"+Ct(e.easeName),513),[[ns,f.value=="AnimateToTweenCSS"]]),hs(E("div",$y,[(V(),X(Nt,null,ve(B,x=>xt(fe,{key:x.type,item:x,onClick:x.onClick,stylePattern:g.value==x.type?"fullfilled":"outline"},{default:ne(()=>[Me(Ct(x.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ns,f.value=="AnimateToTweenCSS"]]),hs(E("div",Ly,[E("div",Vy,[E("div",null,"stroke-dasharray: "+Ct(Ft.value)+","+Ct(Ft.value),1),xt(ci,{max:988,defaultValue:Ft.value,onChange:Oe},null,8,["defaultValue"])]),E("div",Fy,[E("div",null,"stroke-dashoffset: "+Ct(ae.value),1),xt(ci,{max:988,defaultValue:ae.value,onChange:Lt},null,8,["defaultValue"])])],512),[[ns,f.value=="StrokeDash"]]),hs(E("div",Gy,[xt(Hu,{ref_key:"svgRef",ref:n},null,512)],512),[[ns,f.value!=="AnimateToCSS"&&f.value!=="AnimateToTweenCSS"]]),hs(E("div",jy,[xt(bn,{ref_key:"canvasRef",ref:o},null,512)],512),[[ns,f.value!=="AnimateToCSS"&&f.value!=="AnimateToTweenCSS"]]),hs(E("div",zy,[E("div",By,[E("div",{ref_key:"divOneRef",ref:a},"1",512),E("div",{ref_key:"divTwoRef",ref:l},"2",512),E("div",{ref_key:"divThreeRef",ref:c},"3",512)]),E("div",Hy,[E("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[ns,f.value=="AnimateToCSS"]]),hs(E("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[E("div",{ref_key:"divTweenTargetRef",ref:p,class:"tween-css-target"},null,512)],512),[[ns,f.value=="AnimateToTweenCSS"]])],64))}}),G1="",Yy=dt(Uy,[["__scopeId","data-v-677296d1"]]),Xy={class:"loading-1"},Wy=ut({__name:"Loading1",props:{color:{default:it.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(V(),X("div",Xy,[E("div",{class:"rect1",style:e}),E("div",{class:"rect2",style:e}),E("div",{class:"rect3",style:e}),E("div",{class:"rect4",style:e}),E("div",{class:"rect5",style:e})]))}}),j1="",qy=dt(Wy,[["__scopeId","data-v-48b10c9a"]]),Ky={class:"loading-2"},Zy=ut({__name:"Loading2",props:{color:{default:it.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,r)=>(V(),X("div",Ky,[E("div",{class:"dot1",style:e}),E("div",{class:"dot2",style:e})]))}}),z1="",Qy=dt(Zy,[["__scopeId","data-v-79f9930f"]]),Jy=ut({__name:"Loading3",props:{fromColor:{default:it.colorPrimary},toColor:{default:it.colorRed}},setup(s){const t=s,e=`
|
|
102
|
+
`,onClick:()=>{const{x:$t,y:se,width:ne,height:ue}=o.value.getBoundingClientRect();bt(_.x,_.y,_.width,_.height,$t,se,ne,ue,()=>{Rt(),y=!1})}},Ct));return bt}function k(){if(!r.value||!n.openImageViewWhenClick)return;y=!0;const{x:Q,y:A,width:j,height:yt}=o.value.getBoundingClientRect();E=N(Q,A,j,yt)}return re(()=>{m?.destroy()}),t({}),(Q,A)=>(F(),H("div",{ref_key:"imageOutterRef",ref:r,class:"image",style:W({backgroundColor:n.bgColor}),onClick:k},[S("div",{ref_key:"imageInnerRef",ref:o,class:"image-inner",style:W({width:f.value+"px",height:d.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${f.value}px ${d.value}px`})},null,4)],4))}}),rb="",Ma=ut(Ay,[["__scopeId","data-v-34d166d5"]]),Ry=lt({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=$();let o=[],a;const l=new fe;let c=0,u=!1;const h={};function f(){switch(hi(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&&(ur(Ge("div",{class:"routes-inner-wrap",style:"height: 100%;"},o.map(A=>Ge("div",{class:"route-page",style:"display: block; position: relative; width: 100%; min-height: 100%;"},Ge(A.component,{...A.attributes,style:{...A.attributes.style||{},...h}})))),r.value),l?.fromDOM([...r.value.children[0].children]))}const m=A=>{if(!(!a||u||!o.length)){if(u=!0,A.push&&(c=o.length-1),A.pop){if(!o.length){u=!1;return}c=o.length-1}if(A.reset&&(c=0),A.forward){if(c>=o.length-1){u=!1;return}c++}if(A.back&&c<=0){u=!1;return}l.toCSS(a,{easeName:n.easeName,dur:A?.dur??n.duration,direction:A.back||A.pop?"reverse":"normal",onComplete:()=>{(A.back||A.pop)&&c--,A.pop&&(o.pop(),d()),i("finish",c),u=!1,A?.onComplete?.()}},c)}};function y(A=[],j){o=[],A.forEach(yt=>o.push({component:yt.component,attributes:yt.attributes??{}})),d(),m({reset:!0,onComplete:j})}function _(A,j={}){o.push({component:A,attributes:j}),d(),m({push:!0})}function E(){m({pop:!0})}function D(){m({forward:!0})}function N(){m({back:!0})}function k(A,j){A>o.length-1||A<0||A==c||(j||(j=n.duration/Math.abs(A-c)),c<A?m({forward:!0,dur:j,onComplete:()=>{setTimeout(()=>{k(A,j)})}}):m({back:!0,dur:j,onComplete:()=>{setTimeout(()=>{k(A,j)})}}))}function Q(){d(),m({resize:!0})}return zs(()=>{me.page.on("resize",Q)}),re(()=>{me.page.off("resize",Q)}),t({reset:y,push:_,pop:E,forward:D,back:N,goto:k}),(A,j)=>(F(),H("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))}}),ob="",oh=ut(Ry,[["__scopeId","data-v-e9c68065"]]),$y={style:{position:"absolute",width:"100%",height:"100%"}},Vy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},Ly=lt({customOptions:{Image:Ma},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]}},setup(s,{expose:t,emit:e}){const n=s,i=$(),r=$(),o=$(),a=$(0);let l;function c(m){a.value=m}function u(){o.value?.forward()}function h(){o.value?.back()}Dt(r,()=>{r.value&&(l?.destroy(),l=new me(r.value),l.on("panLeft",u),l.on("panRight",h),l.on("tap",d))}),Dt(o,()=>{o.value&&o.value.reset(n.urls.map(m=>({component:Ge("div",{style:"position:absolute;width:100%;height:100%"},Ge(Ma,{mode:"aspectFit",src:m,openImageViewWhenClick:!1}))})))});function f(){i.value?.open()}function d(){i.value?.close()}return re(()=>{l?.destroy()}),t({open:f,close:d}),(m,y)=>(F(),Ie(Qe,{ref_key:"popRef",ref:i,directionFrom:"absolute"},{default:he(()=>[S("div",$y,[n.urls.length>1?(F(),H("div",Vy,kt(a.value+1)+" / "+kt(n.urls.length),1)):qt("",!0),S("div",{ref_key:"pageRef",ref:r,style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"}},[pt(oh,{ref_key:"routesRef",ref:o,direction:n.urls.length>1?"rightToLeft":"none",duration:600,onFinish:c},null,8,["direction"])],512)])]),_:1},512))}}),ab="",Fy=ut(Ly,[["__scopeId","data-v-be51d205"]]),lb="",Gy={class:"page"},zy={class:"header"},jy={class:"main"},By={class:"main-scroll"},Yy={class:"footer"},Xy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return qm(s.designWidth),t({}),(i,r)=>(F(),H("div",Gy,[S("header",zy,[Gt(i.$slots,"header",{},void 0,!0)]),S("div",jy,[S("div",By,[Gt(i.$slots,"main",{},void 0,!0)])]),S("footer",Yy,[Gt(i.$slots,"footer",{},void 0,!0)])]))}}),cb="",Hy=ut(Xy,[["__scopeId","data-v-3904d6b5"]]),Uy=lt({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=Pe({}),r=Pe({});function o(){switch(hi(i),hi(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(),re(()=>{}),t({}),(a,l)=>(F(),H("div",{class:"layout-center",style:W(i)},[S("div",{style:W(r)},[Gt(a.$slots,"default",{},void 0,!0)],4)],4))}}),ub="",Wy=ut(Uy,[["__scopeId","data-v-a768b36f"]]),qy=(s=>(Tn("data-v-d02782ac"),s=s(),On(),s))(()=>S("div",{style:{"background-color":"#ffffff"}},"popover-default-panel",-1)),Zy=lt({customOptions:{Pop:Qe,Button:ve},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0}},setup(s){const t=s,e=$(),n=$(),i=$(),r=Pe({left:"0",top:"0"});Dt(n,()=>{o()}),Dt(i,()=>{o()});function o(){if(!n.value||!i.value)return;const l=Lu(),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)=>(F(),H(zt,null,[S("div",{ref_key:"popoverButtonRef",ref:n,style:{display:"inline-block"},onClick:a},[Gt(l.$slots,"button",{},()=>[pt(ve,null,{default:he(()=>[Kt("popover-default-button")]),_:1})],!0)],512),pt(Qe,{ref_key:"popRef",ref:e,"direction-from":"absolute",isGlobal:t.isGlobal},{default:he(()=>[S("div",{ref_key:"popoverPanelRef",ref:i,style:W([{display:"inline-block",position:"absolute"},r])},[Gt(l.$slots,"panel",{},()=>[qy],!0)],4)]),_:3},8,["isGlobal"])],64))}}),db="",Aa=ut(Zy,[["__scopeId","data-v-d02782ac"]]),Ky={class:"tab"},Qy=lt({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(F(),H("div",Ky,[Gt(e.$slots,"default",{},void 0,!0)]))}}),fb="",Jy=ut(Qy,[["__scopeId","data-v-6589e7fa"]]),tv={class:"tabs"},ev=["onClick"],sv={class:"content"},nv=lt({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(n.initIndex),o=Pe([]),a=$(),l=$(0),c=$(0),u=$(0),h=$([]),f=[],d=cf(),m=d.default&&d.default();m&&(di(o,m),E(r.value));const y=(N,k)=>{if(N){if(f.push({index:k,el:N}),f.length<o.length)return;h.value=f}};Dt([a,h],()=>{_()});function _(){if(a.value&&h.value.length){const N=a.value.getBoundingClientRect(),k=h.value[r.value].el.getBoundingClientRect();l.value=k.x-N.x,c.value=k.y-N.y+k.height-2,u.value=k.width}}function E(N){r.value=N,i("changedIndex",N),_(),D.value.goto(N)}const D=$();return Dt(D,()=>{D.value&&D.value.reset(n.pages,()=>{D.value.goto(n.initIndex)})}),t({}),(N,k)=>(F(),H("div",tv,[S("div",{class:"header",ref_key:"headerRef",ref:a},[(F(!0),H(zt,null,Ce(n.labels,(Q,A)=>(F(),H("div",{key:Q,class:ye(A==r.value?"active":""),onClick:j=>E(A)},[S("div",{ref_for:!0,ref:j=>y(j,A)},kt(Q),513)],10,ev))),128)),S("div",{class:"indicator",style:W({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),S("div",sv,[pt(oh,{ref_key:"routesRef",ref:D,direction:"rightToLeft",duration:200},null,512)])]))}}),pb="",iv=ut(nv,[["__scopeId","data-v-e74e266d"]]),rv=["width","height"],ov=lt({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=$();return Dt(r,()=>{if(!r.value)return;const o=new me(r.value),a=new th(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{yn.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(F(),H("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:W([`border: 1px solid ${o.borderColor}`])},null,12,rv))}}),av={class:"wrap",style:{}},lv=lt({customOptions:{ProgressBar:Ei},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(),o=()=>{const a=Bm();i("progress",a),r.value?.goto(a)};return me.page.registerGlobalScrollChange(o),re(()=>{me.page.removeGlobalScrollChange(o)}),t({}),(a,l)=>(F(),H("div",av,[pt(Ei,{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"])]))}}),mb="",cv=ut(lv,[["__scopeId","data-v-2e31cfe2"]]),uv=["fill"],hv=["fill"],dv=lt({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("svg",{style:W(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[S("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,uv),S("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,hv)],4))}}),gb="",Ra=ut(dv,[["__scopeId","data-v-987aed3d"]]),Rr=s=>(Tn("data-v-5f064292"),s=s(),On(),s),fv=Rr(()=>S("div",{class:"title"},"车牌颜色",-1)),pv={class:"plate-types"},mv=["onClick"],gv=Rr(()=>S("div",{class:"title"},"车牌号码",-1)),yv={class:"plate-numbers"},vv=Rr(()=>S("div",{class:"dot"},"·",-1)),_v=["onClick"],bv=Rr(()=>S("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),xv=lt({customOptions:{SVGCheck:Ra},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],o=$(0),a=Pe([]),l=$(-1);function c(){wy({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 t({}),(f,d)=>(F(),H("div",Ao(f.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[fv,S("div",pv,[(F(),H(zt,null,Ce(r,(m,y)=>S("div",{key:y,class:ye(y==o.value?"checked":""),onClick:_=>u(y)},[S("div",{style:W(m.style)},null,4),S("div",null,kt(m.name),1),S("div",null,[pt(Ra,{color:"#ffffff",width:"0.14rem"})])],10,mv)),64))]),gv,S("div",yv,[S("div",{onClick:d[0]||(d[0]=m=>h(0)),class:ye(l.value==0?"current":"")},kt(a[0]),3),S("div",{onClick:d[1]||(d[1]=m=>h(1)),class:ye(l.value==1?"current":"")},kt(a[1]),3),vv,(F(!0),H(zt,null,Ce(r[o.value].completePlateLength-2,m=>(F(),H("div",{key:m,class:ye(m+1==l.value?"current":""),onClick:y=>h(m+1)},kt(a[m+1]),11,_v))),128))]),bv],16))}}),yb="",wv=ut(xv,[["__scopeId","data-v-5f064292"]]),Sv={class:"parent"},Cv=lt({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const f=i.filter(d=>d.name===h);return f.length?f[0]:o("未知")}const a=r(n.plate),l=$(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)=>(F(),H("div",Sv,[S("div",{class:ye(["leading",n.displayType]),style:W(l.value.style)},kt(l.value.name),7),S("div",{class:"text",style:W({color:Ft(c),"font-size":Ft(u)})},kt(Ft(a)),5)]))}}),vb="",Ev=ut(Cv,[["__scopeId","data-v-11a104c3"]]),Vn=(s,t=0,e=1)=>s>e?e:s<t?t:s,_e=(s,t=0,e=Math.pow(10,t))=>Math.round(e*s)/e,kv=s=>Dv($a(s)),$a=s=>(s[0]==="#"&&(s=s.substring(1)),s.length<6?{r:parseInt(s[0]+s[0],16),g:parseInt(s[1]+s[1],16),b:parseInt(s[2]+s[2],16),a:s.length===4?_e(parseInt(s[3]+s[3],16)/255,2):1}:{r:parseInt(s.substring(0,2),16),g:parseInt(s.substring(2,4),16),b:parseInt(s.substring(4,6),16),a:s.length===8?_e(parseInt(s.substring(6,8),16)/255,2):1}),Tv=s=>Pv(Ov(s)),ah=({h:s,s:t,v:e,a:n})=>{const i=(200-t)*e/100;return{h:_e(s),s:_e(i>0&&i<200?t*e/100/(i<=100?i:200-i)*100:0),l:_e(i/2),a:_e(n,2)}},Va=s=>{const{h:t,s:e,l:n}=ah(s);return`hsl(${t}, ${e}%, ${n}%)`},La=s=>{const{h:t,s:e,l:n,a:i}=ah(s);return`hsla(${t}, ${e}%, ${n}%, ${i})`},Ov=({h:s,s:t,v:e,a:n})=>{s=s/360*6,t=t/100,e=e/100;const i=Math.floor(s),r=e*(1-t),o=e*(1-(s-i)*t),a=e*(1-(1-s+i)*t),l=i%6;return{r:_e([e,o,r,r,a,e][l]*255),g:_e([a,e,e,o,r,r][l]*255),b:_e([r,r,a,e,e,o][l]*255),a:_e(n,2)}},$r=s=>{const t=s.toString(16);return t.length<2?"0"+t:t},Pv=({r:s,g:t,b:e,a:n})=>{const i=n<1?$r(_e(n*255)):"";return"#"+$r(s)+$r(t)+$r(e)+i},Dv=({r:s,g:t,b:e,a:n})=>{const i=Math.max(s,t,e),r=i-Math.min(s,t,e),o=r?i===s?(t-e)/r:i===t?2+(e-s)/r:4+(s-t)/r:0;return{h:_e(60*(o<0?o+6:o)),s:_e(i?r/i*100:0),v:_e(i/255*100),a:n}},lh=(s,t)=>{if(s===t)return!0;for(const e in s)if(s[e]!==t[e])return!1;return!0},Iv=(s,t)=>s.toLowerCase()===t.toLowerCase()?!0:lh($a(s),$a(t)),ch={},uh=s=>{let t=ch[s];return t||(t=document.createElement("template"),t.innerHTML=s,ch[s]=t),t},Fa=(s,t,e)=>{s.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let Ln=!1;const Ga=s=>"touches"in s,Nv=s=>Ln&&!Ga(s)?!1:(Ln||(Ln=Ga(s)),!0),hh=(s,t)=>{const e=Ga(t)?t.touches[0]:t,n=s.el.getBoundingClientRect();Fa(s.el,"move",s.getMove({x:Vn((e.pageX-(n.left+window.pageXOffset))/n.width),y:Vn((e.pageY-(n.top+window.pageYOffset))/n.height)}))},Mv=(s,t)=>{const e=t.keyCode;e>40||s.xy&&e<37||e<33||(t.preventDefault(),Fa(s.el,"move",s.getMove({x:e===39?.01:e===37?-.01:e===34?.05:e===33?-.05:e===35?1:e===36?-1:0,y:e===40?.01:e===38?-.01:0},!0)))};class za{constructor(t,e,n,i){const r=uh(`<div role="slider" tabindex="0" part="${e}" ${n}><div part="${e}-pointer"></div></div>`);t.appendChild(r.content.cloneNode(!0));const o=t.querySelector(`[part=${e}]`);o.addEventListener("mousedown",this),o.addEventListener("touchstart",this),o.addEventListener("keydown",this),this.el=o,this.xy=i,this.nodes=[o.firstChild,o]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Ln?"touchmove":"mousemove",this),e(Ln?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),!Nv(t)||!Ln&&t.button!=0)return;this.el.focus(),hh(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),hh(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":Mv(this,t);break}}style(t){t.forEach((e,n)=>{for(const i in e)this.nodes[n].style.setProperty(i,e[i])})}}class Av extends za{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:`${t/360*100}%`,color:Va({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${_e(t)}`)}getMove(t,e){return{h:e?Vn(this.h+t.x*360,0,360):360*t.x}}}class Rv extends za{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:`${100-t.v}%`,left:`${t.s}%`,color:Va(t)},{"background-color":Va({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${_e(t.s)}%, Brightness ${_e(t.v)}%`)}getMove(t,e){return{s:e?Vn(this.hsva.s+t.x*100,0,100):t.x*100,v:e?Vn(this.hsva.v-t.y*100,0,100):Math.round(100-t.y*100)}}}const $v=':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',Vv="[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}",Lv="[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}",Vr=Symbol("same"),ja=Symbol("color"),dh=Symbol("hsva"),Ba=Symbol("update"),fh=Symbol("parts"),Lr=Symbol("css"),Fr=Symbol("sliders");let Fv=class extends HTMLElement{static get observedAttributes(){return["color"]}get[Lr](){return[$v,Vv,Lv]}get[Fr](){return[Rv,Av]}get color(){return this[ja]}set color(t){if(!this[Vr](t)){const e=this.colorModel.toHsva(t);this[Ba](e),this[ja]=t}}constructor(){super();const t=uh(`<style>${this[Lr].join("")}</style>`),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[fh]=this[Fr].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const i=this.colorModel.fromAttr(n);this[Vr](i)||(this.color=i)}handleEvent(t){const e=this[dh],n={...e,...t.detail};this[Ba](n);let i;!lh(n,e)&&!this[Vr](i=this.colorModel.fromHsva(n))&&(this[ja]=i,Fa(this,"color-changed",{value:i}))}[Vr](t){return this.color&&this.colorModel.equal(t,this.color)}[Ba](t){this[dh]=t,this[fh].forEach(e=>e.update(t))}};class Gv extends za{constructor(t){super(t,"alpha",'aria-label="Alpha" aria-valuemin="0" aria-valuemax="1"',!1)}update(t){this.hsva=t;const e=La({...t,a:0}),n=La({...t,a:1}),i=t.a*100;this.style([{left:`${i}%`,color:La(t)},{"--gradient":`linear-gradient(90deg, ${e}, ${n}`}]);const r=_e(i);this.el.setAttribute("aria-valuenow",`${r}`),this.el.setAttribute("aria-valuetext",`${r}%`)}getMove(t,e){return{a:e?Vn(this.hsva.a+t.x):t.x}}}const zv=`[part=alpha]{flex:0 0 24px}[part=alpha]::after{display:block;content:"";position:absolute;top:0;left:0;right:0;bottom:0;border-radius:inherit;background-image:var(--gradient);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part^=alpha]{background-color:#fff;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><rect x="8" width="8" height="8"/><rect y="8" width="8" height="8"/></svg>')}[part=alpha-pointer]{top:50%}`;class jv extends Fv{get[Lr](){return[...super[Lr],zv]}get[Fr](){return[...super[Fr],Gv]}}const Bv={defaultColor:"#0001",toHsva:kv,fromHsva:Tv,equal:Iv,fromAttr:s=>s};class Yv extends jv{get colorModel(){return Bv}}class Xv extends Yv{}customElements.define("hex-alpha-color-picker",Xv);const Hv=lt({customOptions:{Popover:Aa},__name:"ColorPicker",props:{color:{default:ot.colorPrimary}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=$(e.color);Dt(i,(a,l)=>{a!==l&&n("change",a)});const r=$(),o=a=>{i.value=a.detail.value};return Dt(r,()=>{r.value&&(r.value.removeEventListener("color-changed",o),r.value.addEventListener("color-changed",o))}),(a,l)=>{const c=Gd("hex-alpha-color-picker");return F(),Ie(Aa,null,{button:he(()=>[Gt(a.$slots,"default",{},()=>[S("span",{class:"button",style:W({backgroundColor:i.value})},null,4)],!0)]),panel:he(()=>[pt(c,{ref_key:"colorPickerRef",ref:r,color:i.value},null,8,["color"])]),_:3})}}}),_b="",Uv=ut(Hv,[["__scopeId","data-v-ac12603f"]]),bb="",Wv={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",la&&this.$el.appendChild(s),s.data="about:blank",la||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&&(!la&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},qv={class:"resize-observer",tabindex:"-1"};function Zv(s,t,e,n,i,r){return F(),H("div",qv)}const Kv=ut(Wv,[["render",Zv],["__scopeId","data-v-d5987ae1"]]),Qv=lt({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=$(n.mapWidth),r=$(n.mapHeight);let o;const a=$();return Dt(a,()=>{a.value&&(o=new me(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),zs(()=>{U.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Gg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),re(()=>{o.destroy()}),t({}),(l,c)=>(F(),H("div",Ao({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Gt(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),xb="",Jv=ut(Qv,[["__scopeId","data-v-e5da8598"]]);var ki=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 ki.Panel("FPS","#0ff","#002")),l=e(new ki.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new ki.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}};ki.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,y=document.createElement("canvas");y.width=a,y.height=l,y.style.cssText="width:80px;height:48px";var _=y.getContext("2d");return _.font="bold "+9*o+"px Helvetica,Arial,sans-serif",_.textBaseline="top",_.fillStyle=e,_.fillRect(0,0,a,l),_.fillStyle=t,_.fillText(s,c,u),_.fillRect(h,f,d,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h,f,d,m),{dom:y,update:function(E,D){n=Math.min(n,E),i=Math.max(i,E),_.fillStyle=e,_.globalAlpha=1,_.fillRect(0,0,a,f),_.fillStyle=t,_.fillText(r(E)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),_.drawImage(y,h+o,f,d-o,m,h,f,d-o,m),_.fillRect(h+d-o,f,o,m),_.fillStyle=e,_.globalAlpha=.9,_.fillRect(h+d-o,f,o,r((1-E/D)*m))}}};const t1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=$();return zs(()=>{const n=new ki,i=n.domElement.style;i.margin="1em",e.value.appendChild(n.domElement),jt.run(()=>(n.update(),!0))}),t({}),(n,i)=>(F(),H("div",{ref_key:"containerRef",ref:e},null,512))}}),e1=["width","height"],s1=lt({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(),o=$(),a=$(0),l=$(0);let c;Dt(r,()=>{r.value&&(c=new me(r.value,!1),c.on("resize",(y,_)=>{const E=Lu();a.value=Math.min(y,E.width),l.value=Math.min(_,E.height),d()}),c.start())}),Dt(o,()=>{o.value&&d()});let u,h,f;function d(){u||!o.value||!a.value||!l.value||(u=new me(o.value,!1),u.on("resize",(y,_)=>{h=new th(u),i("resize",y,_),f?.(h)}),u.start())}function m(){return new Promise(y=>{if(h&&u.width&&u.height)return y(h);f=y})}return re(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:m}),(y,_)=>(F(),H("div",{class:"canvas-wrap",ref_key:"canvasWrapRef",ref:r},[S("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:W({backgroundColor:n.bgColor})},null,12,e1)],512))}}),Sb="",Qs=ut(s1,[["__scopeId","data-v-d6a232ce"]]),n1={class:"ease-graph"},i1=lt({customOptions:{Button:ve,Canvas:Qs},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=$();let o;Dt(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;fe.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(),fe.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 re(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(F(),H("div",n1,[S("div",null,"缓动:"+kt(u.easeName),1),S("div",null,[S("div",null,[pt(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:he(()=>[Kt(" 开始 ")]),_:1})]),S("div",null,[pt(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:he(()=>[Kt(" 选择 ")]),_:1},8,["stylePattern"])])]),S("div",{style:W({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[pt(Qs,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Cb="",Ya=ut(i1,[["__scopeId","data-v-5c401464"]]),r1=2e3,o1=lt({customOptions:{EaseGraphDisplay:Ya},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",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 Mu(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=$("Linear");function h(f,d){u.value=f,i("selectedEaseFunction",f,d)}return h("Linear",dt.Easing.Linear.None),t({}),(f,d)=>(F(),H("div",null,[(F(!0),H(zt,null,Ce(n.easeList,m=>(F(),H("div",{key:m.easeName,class:"ease-graph-wrap"},[m.easeFunction?(F(),Ie(Ya,{key:0,easeName:m.easeName,easeFunction:m.easeFunction,easeDuration:r1,isSelected:u.value==m.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:y=>o(y,m.easeName)},null,8,["easeName","easeFunction","isSelected"])):qt("",!0)]))),128))]))}}),Eb="",a1=ut(o1,[["__scopeId","data-v-fa7ba01d"]]),l1={class:"interpolation-graph"},ph=1/6,mh=5/6,c1=lt({customOptions:{Button:ve,Canvas:Qs},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=$();let o;Dt(r,()=>{r.value&&r.value.getCanvas().then(y=>{o=y,i("onMounted",n.interpolationName),o.app.on("showInParent",m)})});const a=n.canvasWidth*ph,l=n.canvasHeight/2,c=[n.canvasWidth*mh,n.canvasWidth/2],u=[n.canvasHeight*ph,n.canvasHeight*mh],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 y=0;y<c.length;y++)o.ctx.fillRect(c[y]-2,u[y]-2,4,4);let _=!1,E=!1;const D={x:a,y:l,old:{x:a,y:l}};fe.toTween(D,{x:c,y:u},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:k=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(k.old.x,k.old.y),o.ctx.lineTo(k.x,k.y),o.ctx.closePath(),o.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{_=!0,_&&E&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto();const N={x:a,y:l,old:{x:a,y:l}};fe.toTween(N,{x:h,y:f},{duration:n.easeDuration,easeFunction:dt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:k=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(k.old.x,k.old.y),o.ctx.lineTo(k.x,k.y),o.ctx.closePath(),o.ctx.stroke(),k.old.x=k.x,k.old.y=k.y},onComplete:()=>{E=!0,_&&E&&(i("onCompleted",n.interpolationName),d=!1)}}).startAuto()};return re(()=>{o.app.off("showInParent",m)}),t({start:m}),(y,_)=>(F(),H("div",l1,[S("div",null,[Kt(" 插值:"+kt(y.interpolationName)+" ",1),pt(ve,{stylePattern:"outline",height:"32px",onClick:m},{default:he(()=>[Kt(" 开始 ")]),_:1})]),S("div",{style:W({width:y.canvasWidth+"px",height:y.canvasHeight+"px"})},[pt(Qs,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),kb="",Xa=ut(c1,[["__scopeId","data-v-eb70b61a"]]),u1=2e3,h1=lt({customOptions:{InterpolationGraphDisplay:Xa},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",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 Mu(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)=>(F(),H("div",null,[(F(!0),H(zt,null,Ce(n.interpolationList,h=>(F(),H("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[pt(Xa,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:u1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:f=>r(f,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Tb="",d1=ut(h1,[["__scopeId","data-v-6e8312e3"]]),f1='<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>',p1={class:"btns"},m1={class:"btns"},g1={class:"btns sub-btns"},y1={class:"btns sub-btns"},v1={class:"btns sub-btns"},_1={style:{width:"100%"}},b1={style:{width:"100%"}},x1={style:{height:"400px"}},w1={style:{height:"400px"}},S1={style:{height:"400px"},class:"css-area"},C1={class:"animate-to-css-group"},E1={class:"animate-to-css-group"},k1=lt({customOptions:{Button:ve,InputRange:Ks,SVG:Mr,Canvas:Qs},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:dt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=$();let i=0,r=0;Dt(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(C,w)=>{i=C,r=w})})});const o=$(),a=$(),l=$(),c=$(),u=$(),h=$(),f=$(),d=$(""),m=$("");function y(O){switch(m.value=O,d.value){case"AnimateToCSS":z();break;case"AnimateToTweenCSS":rt();break}}const _=new gs({svg:f1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0});function E(O,C,w=30){return new Ee({x:O,y:C,radius:w,attrs:{fill:Ne()}})}function D(O,C,w=3){const G=[];for(let M=0;M<w;M++)G.push(new Ee({x:Math.random()*O,y:Math.random()*C,radius:10,attrs:{fill:Ne()},enableDrag:!0}));return G}function N(){return new Ir({scaleOnOrigin:.5,followMouse:!0,attrs:{fill:Ne()}})}function k(O,C){return new ke({x:O,y:C,attrs:{"stroke-width":"1",stroke:"#666666"}})}const Q=E(0,0,8),A=E(0,0,5);function j(){const O="PathDGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;let C=[_,Q,A];n.value.getSVG().then(w=>{o.value.getCanvas().then(G=>{let M,Y;const nt=Wt=>{Y&&w.delete(Y),M&&M?.restore(),M=Wt,Wt.save(),Wt.attrs.fill="pink",Wt.attrs.stroke="green",C=[_,Q,A],Y=Wt.getBoundingClientRect(),Y&&(Y.attrs.fill="none",Y.attrs.strokeWidth="4",Y.attrs.stroke="#0000ff",C.push(Y))},B=w.click(Wt=>{nt(Wt)}),et=G.click(Wt=>{nt(Wt)});let vt=0,Tt=_.shapes[vt].getTotalLength(),oe=0;const Be=.01;w.clear(),jt.run(()=>{if(d.value!==O)return B(),et(),M&&(M.restore(),w.delete(M)),!1;oe>1&&(vt++,oe=0,vt>_.shapes.length-1&&(vt=0),Tt=_.shapes[vt].getTotalLength()),G.ctx.clearRect();let{x:Wt,y:Je}=_.shapes[vt].interpolate(oe);Q.x=Wt,Q.y=Je;let{x:Zt,y:be}=_.shapes[vt].getPointAtLength(oe*Tt);return A.x=Zt,A.y=be,w.path(C),G.draw(C),oe+=Be,!0})})})}function yt(){const O="Shapes";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Ir({x:ee(0,i),y:ee(0,r),scaleOnOrigin:.5,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),w=new de({x:ee(0,i),y:ee(0,r),width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new ka({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),M=new Dg({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Y=new Ig({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),nt=new Qu({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),B=new Ng({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),et=new Mg({x:ee(0,i),y:ee(0,r),scaleOnOrigin:1,attrs:{fill:Ne()},enableDrag:!0}),vt=new Ag({x:ee(0,i),y:ee(0,r),degree:30,scaleOnOrigin:.5,attrs:{strokeWidth:"2",stroke:Ne(),fill:"none"},enableDrag:!0}),Tt=new Lg({x:ee(0,i),y:ee(0,r),degree:0,scaleOnOrigin:2,showFlame:!0,attrs:{stroke:Ne()},enableDrag:!0}),oe=new Ju({x:100,y:100,min:0,max:200,step:2,defaultValue:10,barWidth:200});oe.on("change",Fn=>{console.log(`slider change: ${Fn}`)});const Be=new wi({x:100,y:120,width:200,height:20,degree:30,attrs:{stroke:Ne()},enableDrag:!0});C.group(M);const Wt=ee(0,i-100),Je=ee(0,r-100),Zt=new ke({fromX:Wt,fromY:Je,x:Wt+100,y:Je+100,attrs:{stroke:"#666666"}}),be=new ke({fromX:Wt+100,fromY:Je,x:Wt,y:Je+100,attrs:{stroke:"#666666"}}),We=E(0,0,10),bn=Zt.intersection(be);bn&&(We.x=bn.x,We.y=bn.y);const Ti=new Ta({x:200,y:200,radius:50,startDegree:45,endDegree:270,lineWidth:10,color:Ne(),enableDrag:!0}),ys=[C,w,G,M,Y,nt,B,et,vt,Tt,oe,Be,Zt,be,We,Ti];n.value.getSVG().then(Fn=>{o.value.getCanvas().then(Gr=>{Fn.clear(),jt.run(()=>d.value!==O?!1:(Fn.path(ys),Gr.ctx.clearRect(),Gr.draw(ys),!0))})})}function bt(){const O="Arrow";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{const w=N(),G=k(C.app.width/2,C.app.height/2);C.clear(),jt.run(()=>d.value!==O?!1:(G.fromX=w.x,G.fromY=w.y,C.path([G,w]),!0))}),o.value.getCanvas().then(C=>{const w=N(),G=k(C.app.width/2,C.app.height/2);jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),G.fromX=w.x,G.fromY=w.y,C.draw([G,w]),!0))}))}function Ct(){const O="PointEase";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=E(C.app.width/2,C.app.height/2);w.enableDrag=!0,w.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},C.clear(),jt.run(()=>d.value!==O?!1:(C.path(w),!0))}),o.value.getCanvas().then(C=>{const w=E(C.app.width/2,C.app.height/2);w.enableDrag=!0,w.targetToAfterDragFree={targetX:C.app.width/2,targetY:C.app.height/2},jt.run(()=>d.value!=O?!1:(C.ctx.clearRect(),C.draw(w),!0))}))}function Rt(){const O="BallCollision";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=E(50,C.app.height/2);w.mass=2,w.vx=2;const G=E(C.app.width-50,C.app.height/2);G.mass=1,G.vx=-2,C.clear(),o.value.getCanvas().then(M=>{jt.run(()=>d.value!=O?!1:(w.checkCollision(G),w.nextFrame(),G.nextFrame(),C.path([w,G]),M.ctx.clearRect(),M.draw([w,G]),!0))})}))}function $t(){const O="Balls";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const M=[];for(let nt=0;nt<15;nt++){const B=Math.random()*20+15,et=E(Math.random()*C.app.width,Math.random()*C.app.height,B);et.mass=B,et.vx=Math.random()*10-5,et.vy=Math.random()*10-5,M.push(et)}const Y=new de({x:0,y:0,width:C.app.width,height:C.app.height});C.clear(),jt.run(()=>d.value!=O?!1:(Ee.comboMove(M,Y),C.path(M),w.ctx.clearRect(),w.draw(M),!0))})}))}function se(){const O="Gravitate";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const M=[];for(let Y=0;Y<30;Y++){const nt=Math.random()*25+5,B=E(Math.random()*C.app.width,Math.random()*C.app.height,nt);B.mass=nt,M.push(B)}C.clear(),jt.run(()=>d.value!=O?!1:(Jt.comboGravitate(M),C.path(M),w.ctx.clearRect(),w.draw(M),!0))})}))}function ne(){const O="SunPlanet";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=E(C.app.width*.5,C.app.height*.5,50);G.mass=1e4;const M=E(C.app.width*.5+200,C.app.height*.5,10);M.mass=1,M.vy=7;const Y=[G,M];C.clear(),jt.run(()=>d.value!=O?!1:(Jt.comboGravitate(Y),C.path(Y),w.ctx.clearRect(),w.draw(Y),!0))})}))}function ue(){const O="SpringMass";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=[];for(let et=0;et<30;et++){const vt=Math.random()*10+2,Tt=E(Math.random()*w.app.width,Math.random()*w.app.height,vt);Tt.vx=Math.random()*6-3,Tt.vy=Math.random()*6-3,Tt.mass=vt,G.push(Tt)}const Y=new de({x:0,y:0,width:w.app.width,height:w.app.height}),nt=[];Jt.comboSpringMass(G,Y,{spring:5e-4}).forEach(([et,vt,Tt,oe,Be])=>{nt.push(new ke({fromX:et,fromY:vt,x:Tt,y:oe,attrs:{strokeWidth:"1",stroke:Cr("#666666",Be)}}))});const B=[...nt,...G];C.clear(),C.path(B),jt.run(()=>d.value!=O?!1:(Jt.comboSpringMass(G,Y,{spring:5e-4}).forEach(([et,vt,Tt,oe,Be],Wt)=>{nt[Wt].fromX=et,nt[Wt].fromY=vt,nt[Wt].x=Tt,nt[Wt].y=oe,nt[Wt].setAttr("stroke",Cr("#666666",Be))}),C.path(B),w.ctx.clearRect(),w.draw(B),!0))})}))}function Yt(){const O="WalkMan";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=new wi({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),M=new wi({width:50,height:10,attrs:{stroke:"#666666"}}),Y=new wi({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),nt=new wi({width:50,height:10,attrs:{stroke:"#666666"}});let B=0,et=0;function vt(){et+=.2,G.groupTranslate(B,et),Y.groupTranslate(B,et)}const Tt=-Math.PI/2;function oe(Zt,be,We){const bn=Math.sin(We)*45+90,Ti=Math.sin(We+Tt)*45+45,ys=be.getPin();Zt.groupRotateTo(bn),be.groupRotateTo(Zt.degree+Ti),be.groupTranslateTo(Zt.getPin().x,Zt.getPin().y),be.vx=be.getPin().x-ys.x,be.vy=be.getPin().y-ys.y}function Be(Zt){const be=Zt.getPin().y+Zt.height/2;if(be>w.app.height){const We=be-w.app.height;G.groupTranslate(0,-We),M.groupTranslate(0,-We),Y.groupTranslate(0,-We),nt.groupTranslate(0,-We),B-=Zt.vx,et-=Zt.vy}}function Wt(){const Zt=w.app.width+200;G.x>w.app.width+100?(G.groupTranslate(-Zt,0),M.groupTranslate(-Zt,0),Y.groupTranslate(-Zt,0),nt.groupTranslate(-Zt,0)):G.x<-100&&(G.groupTranslate(Zt,0),M.groupTranslate(Zt,0),Y.groupTranslate(Zt,0),nt.groupTranslate(Zt,0))}let Je=0;C.clear(),jt.run(()=>d.value!=O?!1:(Je+=.06,vt(),oe(G,M,Je),oe(Y,nt,Je+Math.PI),Be(M),Be(nt),Wt(),C.path([G,M,Y,nt]),w.ctx.clearRect(),w.draw([G,M,Y,nt]),!0))})}))}function xt(){const O="Sector";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new $g({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(w=>{w.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(w.path(C),G.ctx.clearRect(),G.draw(C),!0))})})}function wt(){const O="RectGame";if(d.value==O)return;d.value=O;function C(nt){return new de({x:Math.random()*nt,y:0,width:50,height:50,attrs:{fill:Ne()},enableDrag:!0})}const w=.2,G=[];function M(){const nt=C(i);return G.push(nt),nt}let Y=M();n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(B=>{jt.run(()=>d.value!=O?!1:(B.ctx.clearRect(),nt.isMouseDown||B.isMouseDown?(nt.path(G),B.draw(G)):(Y&&Y.nextFrame({gravity:w}),Y&&Y.y+Y.height>=B.ctx.canvas.height&&(Y.y=B.ctx.canvas.height-Y.height,Y=M()),G.forEach(et=>(Y&&Y!==et&&Y.isIntersectRect(et)&&(Y.y=et.y-Y.height,Y.y>=Y.height?Y=M():Y=null),et)),nt.path(G),B.draw(G)),!0))})})}function it(){const O="PointWater";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[];for(let G=0;G<80;G++){const M=E(C.app.width/2,C.app.height,2);M.vx=Math.random()*2-1,M.vy=Math.random()*-10-10,w.push(M)}C.clear(),o.value.getCanvas().then(G=>{jt.run(()=>d.value!=O?!1:(w.forEach(M=>{M.nextFrame({gravity:.5}),(M.x-M.radius>C.app.width||M.x+M.radius<0||M.y-M.radius>C.app.height||M.y+M.radius<0)&&(M.x=C.app.width/2,M.y=C.app.height,M.vx=Math.random()*2-1,M.vy=Math.random()*-10-10)}),C.path(w),G.ctx.clearRect(),G.draw(w),!0))})}))}function q(){const O="PointSpringChain";if(d.value==O)return;d.value=O;function C(M,Y){const nt=[];for(let B=0;B<3;B++)nt.push(E(M,Y,20));return nt}function w(){const M=[];for(let Y=0;Y<3;Y++)M.push(new ke({attrs:{"stroke-width":"1",stroke:"#666666"}}));return M}const G={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(M=>{const Y=w(),nt=C(M.app.width/2,M.app.height/2);M.clear(),jt.run(()=>d.value!==O?!1:(Jt.comboSpringChain([M.app.mousePoint,...nt],G),nt.forEach((B,et)=>{if(et===0)Y[et].fromX=M.app.mousePoint.x,Y[et].fromY=M.app.mousePoint.y,Y[et].x=B.x,Y[et].y=B.y;else{const vt=nt[et-1];Y[et].fromX=vt.x,Y[et].fromY=vt.y,Y[et].x=B.x,Y[et].y=B.y}}),M.path(Y),M.path(nt),!0))}),o.value.getCanvas().then(M=>{const Y=w(),nt=C(M.app.width/2,M.app.height/2);jt.run(()=>d.value!=O?!1:(M.ctx.clearRect(),Jt.comboSpringChain([M.app.mousePoint,...nt],G),nt.forEach((B,et)=>{if(et===0)Y[et].fromX=M.app.mousePoint.x,Y[et].fromY=M.app.mousePoint.y,Y[et].x=B.x,Y[et].y=B.y;else{const vt=nt[et-1];Y[et].fromX=vt.x,Y[et].fromY=vt.y,Y[et].x=B.x,Y[et].y=B.y}}),M.draw(Y),M.draw(nt),!0))})}function Et(){const O="PointSpringMulti";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[k(0,0),k(0,0),k(0,0)],G=D(C.app.width,C.app.height),M=new Ee({radius:20,attrs:{fill:"#ff0000"}});C.clear(),o.value.getCanvas().then(Y=>{jt.run(()=>d.value!=O?!1:(M.nextFrameSpringTo(G,{spring:.03}),G.forEach((nt,B)=>{w[B].fromX=M.x,w[B].fromY=M.y,w[B].x=nt.x,w[B].y=nt.y}),C.path([...w,...G,M]),Y.ctx.clearRect(),Y.draw([...w,...G,M]),!0))})}))}function V(){const O="PointSpringConnect";d.value!=O&&(d.value=O,n.value.getSVG().then(C=>{const w=[k(0,0),k(0,0),k(0,0)],G=D(C.app.width,C.app.height);C.clear(),o.value.getCanvas().then(M=>{jt.run(()=>d.value!=O?!1:(Jt.comboSpringConnect(G,{springLength:120}),w[0].x=G[0].x,w[0].y=G[0].y,w[0].fromX=G[1].x,w[0].fromY=G[1].y,w[1].x=G[1].x,w[1].y=G[1].y,w[1].fromX=G[2].x,w[1].fromY=G[2].y,w[2].x=G[2].x,w[2].y=G[2].y,w[2].fromX=G[0].x,w[2].fromY=G[0].y,C.path([...w,...G]),M.ctx.clearRect(),M.draw([...w,...G]),!0))})}))}function Ut(){const O="QuadraticBezierCurve";if(d.value==O)return;d.value=O;const C=50;n.value.getSVG().then(w=>{const G=new vn({x:C,y:w.app.height-C,fromX:w.app.width-C,fromY:w.app.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),M=new vn({x:C,y:w.app.height-C,fromX:w.app.width-C,fromY:w.app.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});w.clear(),jt.run(()=>d.value!==O?!1:(M.cx=G.cx=w.app.mousePoint.x,M.cy=G.cy=w.app.mousePoint.y,w.path(G),w.path(M),!0))}),o.value.getCanvas().then(w=>{const G=new vn({x:C,y:w.ctx.canvas.height-C,fromX:w.ctx.canvas.width-C,fromY:w.ctx.canvas.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),M=new vn({x:C,y:w.ctx.canvas.height-C,fromX:w.ctx.canvas.width-C,fromY:w.ctx.canvas.height-C,cx:w.app.mousePoint.x,cy:w.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});jt.run(()=>d.value!=O?!1:(w.ctx.clearRect(),M.cx=G.cx=w.app.mousePoint.x,M.cy=G.cy=w.app.mousePoint.y,w.draw([G,M]),!0))})}function ge(){const O="PointsRandom";d.value=O;function C(w,G){const M=[];for(let Y=0;Y<10;Y++){const nt=new Ee({x:Math.random()*w,y:Math.random()*G,radius:3,attrs:{stroke:"pink","stroke-width":"2"}});M.push(nt)}return M}n.value.getSVG().then(w=>{const G=C(w.app.width,w.app.height),M=G.map((Y,nt)=>new de({x:Y.x,y:Y.y,width:6,height:6,attrs:{fill:nt==0?"#ff0000":"#666666"}}));w.clear(),w.path(M),w.path(new Rn(G)),o.value.getCanvas().then(Y=>{Y.ctx.clearRect(),Y.draw([...M,new Rn(G)])})})}function Ae(){const O="InterpolatePath";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Ir({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),w=new de({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),G=new ka({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),M=Rn.generatePoints(100,100,100,3),Y=Rn.generatePoints(100,100,100,6);M.attrs.stroke="#666666",Y.attrs.stroke="#7EEDFF";const nt=gt.polymorph([gt.fromShape(M),gt.fromShape(Y),gt.fromShape(C),gt.fromShape(w),gt.fromShape(G)]),B=nt(0);B.enableDrag=!0,n.value.getSVG().then(et=>{et.clear(),o.value.getCanvas().then(vt=>{const Tt=fe.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:oe=>{d.value===O&&(nt(oe.t),et.path(B),vt.ctx.clearRect(),vt.draw(B))},onComplete:()=>{}});Tt.tween.start(),jt.run(()=>d.value!==O?!1:(Tt.tween.update()||(et.path(B),vt.ctx.clearRect(),vt.draw(B)),!0))})})}function Re(){const O="InterpolatePathGroup";if(d.value==O||!n.value||!o.value)return;d.value=O;const C=new Ir({x:200,y:200,scaleOnOrigin:1,attrs:{stroke:"#5a82f0"}}),w=new de({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),G=new ka({x:200,y:200,scaleOnOrigin:3,attrs:{stroke:"rgb(200,80,80)"}}),M=gs.polymorph([gs.fromShape(C),gs.fromShape(w),_,gs.fromShape(G)]),Y=M(0);n.value.getSVG().then(nt=>{nt.clear(),o.value.getCanvas().then(B=>{fe.toTween({t:0},{t:1},{duration:6e3,easeFunction:e.easeFunction,onUpdate:et=>{d.value===O&&(M(et.t),nt.path(Y),B.ctx.clearRect(),B.draw(Y))},onComplete:()=>{}}).startAuto()})})}const It=gt.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"),$e=+It.getTotalLength().toFixed(0),Lt=$($e),ie=$(Math.floor($e/2));function Ue(O){Lt.value=O,It.setAttr("strokeDasharray",`${Lt.value} ${Lt.value}`),n.value.getSVG().then(C=>{C.path(It)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(It)})}function os(O){ie.value=O,It.setAttr("strokeDashoffset",`${ie.value}`),n.value.getSVG().then(C=>{C.path(It)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(It)})}function as(){const O="StrokeDash";d.value==O||!n.value||!o.value||(d.value=O,It.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${Lt.value} ${Lt.value}`,strokeDashoffset:`${ie.value}`}),n.value.getSVG().then(C=>{C.clear(),C.path(It)}),o.value.getCanvas().then(C=>{C.ctx.clearRect(),C.draw(It)}))}function v(){const O="StrokeDashAuto";d.value==O||!n.value||!o.value||(d.value=O,It.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(C=>{C.clear(),o.value.getCanvas().then(w=>{It.strokeDashToTween({duration:4e3,easeFunction:e.easeFunction,onUpdate:()=>{C.path(It),w.ctx.clearRect(),w.draw(It)}}).startAuto()})}))}function x(){const O="StrokeDashGroupParallelAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(w=>{w.ctx.clearRect(),_.strokeDashToTween({type:"parallel",duration:4e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),w.ctx.clearRect(),w.draw(_)}}).startAuto()})}))}function I(){const O="StrokeDashGroupSequenceAuto";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{_.setAttrs({stroke:"none"}),C.clear(),o.value.getCanvas().then(w=>{w.ctx.clearRect(),_.strokeDashToTween({type:"sequence",duration:1e3,easeFunction:e.easeFunction,precision:.05,onGroupStart:()=>{_.setAttrs({stroke:Ne()})},onGroupUpdate:()=>{C.path(_),w.ctx.clearRect(),w.draw(_)}}).startAuto()})}))}const R=new fe,L=new fe;function tt(){const O="AnimateToCSS";d.value=O,R.fromDOM([a.value,l.value,c.value]),L.fromDOM([u.value])}let K=0;function z(){switch(m.value){case"slideLeft":R.toCSS("slideLeft",{},++K%3),L.toCSS("slideLeft",{direction:K%2==0?"normal":"reverse"});break;case"slideRight":R.toCSS("slideRight",{easeName:"ease",dur:1e3},--K%3),L.toCSS("slideRight",{easeName:"ease",dur:1500,repeatCount:"infinite"});break;case"slideDown":R.toCSS("slideDown",{easeName:"ease-out",dur:500},++K%3),L.toCSS("slideDown",{easeName:"ease-out",dur:500});break;case"slideUp":R.toCSS("slideUp",{easeName:"ease-in",dur:500},++K%3),L.toCSS("slideUp",{easeName:"ease-in",dur:500});break;case"flipLeft":R.toCSS("flipLeft",{easeName:"linear",dur:1e3},++K%3),L.toCSS("flipLeft",{easeName:"linear",dur:1e3});break;case"flipRight":R.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3},++K%3),L.toCSS("flipRight",{easeName:"ease-in-out",dur:1e3});break;case"flipDown":R.toCSS("flipDown",{easeName:"ease",dur:1e3},++K%3),L.toCSS("flipDown",{easeName:"ease",dur:1e3});break;case"flipUp":R.toCSS("flipUp",{easeName:"ease",dur:1e3},++K%3),L.toCSS("flipUp",{easeName:"ease",dur:1e3});break;case"popIn":R.toCSS("popIn",{easeName:"ease",dur:1e3},++K%3),L.toCSS("popIn",{easeName:"ease",dur:1e3});break;case"popOut":R.toCSS("popOut",{easeName:"ease",dur:1e3},++K%3),L.toCSS("popOut",{easeName:"ease",dur:1e3});break;case"rotate":R.toCSS("rotate",{easeName:"ease",dur:1e3,degree:90},K++%3),L.toCSS("rotate",{easeName:"ease",dur:1e3,degree:360});break}}let J;function X(){const O="AnimateToTweenCSS";d.value=O,U.setStyle(f.value,{transform:""})}function rt(){J||(J=new me(h.value));const O=50,C=0,w=0,G=0,M=J.width-O,Y=J.height-O,nt=J.height-O,B=J.width/2-O/2,et=J.height/2-O/2,vt={},Tt={};switch(m.value){case"translateTo":Object.assign(vt,{translateTo:[C,w]}),Object.assign(Tt,{translateTo:[M,Y]});break;case"translateXTo":Object.assign(vt,{translateXTo:C}),Object.assign(Tt,{translateXTo:M});break;case"translateYTo":Object.assign(vt,{translateYTo:w}),Object.assign(Tt,{translateYTo:Y});break;case"translateZTo":Object.assign(vt,{translateTo:[B,et],translateZTo:G}),Object.assign(Tt,{translateTo:[B,et],translateZTo:nt});break;case"translate3dTo":Object.assign(vt,{translate3dTo:[B-50,et-50,G]}),Object.assign(Tt,{translate3dTo:[B+50,et+50,nt]});break;case"rotateTo":Object.assign(vt,{translateTo:[B,et],rotateTo:0}),Object.assign(Tt,{translateTo:[B,et],rotateTo:360});break;case"rotateXTo":Object.assign(vt,{translateTo:[B,et],rotateXTo:0}),Object.assign(Tt,{translateTo:[B,et],rotateXTo:180});break;case"rotateYTo":Object.assign(vt,{translateTo:[B,et],rotateYTo:0}),Object.assign(Tt,{translateTo:[B,et],rotateYTo:180});break;case"rotateZTo":Object.assign(vt,{translateTo:[B,et],rotateZTo:0}),Object.assign(Tt,{translateTo:[B,et],rotateZTo:360});break;case"rotate3dTo":Object.assign(vt,{translateTo:[B,et],rotate3dTo:[0,0,0]}),Object.assign(Tt,{translateTo:[B,et],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(vt,{translateTo:[B,et],scaleTo:1}),Object.assign(Tt,{translateTo:[B,et],scaleTo:3});break;case"scaleXTo":Object.assign(vt,{translateTo:[B,et],scaleXTo:1}),Object.assign(Tt,{translateTo:[B,et],scaleXTo:3});break;case"scaleYTo":Object.assign(vt,{translateTo:[B,et],scaleYTo:1}),Object.assign(Tt,{translateTo:[B,et],scaleYTo:3});break;case"scaleZTo":Object.assign(vt,{translateTo:[B,et],scaleZTo:1}),Object.assign(Tt,{translateTo:[B,et],scaleZTo:3});break;case"scale3dTo":Object.assign(vt,{translateTo:[B,et],scale3dTo:[1,1,1]}),Object.assign(Tt,{translateTo:[B,et],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(vt,{translateTo:[B,et],skewTo:0}),Object.assign(Tt,{translateTo:[B,et],skewTo:30});break;case"skewXTo":Object.assign(vt,{translateTo:[B,et],skewXTo:0}),Object.assign(Tt,{translateTo:[B,et],skewXTo:30});break;case"skewYTo":Object.assign(vt,{translateTo:[B,et],skewYTo:0}),Object.assign(Tt,{translateTo:[B,et],skewYTo:30});break;case"perspective":Object.assign(vt,{translateTo:[B,et],perspective:0}),Object.assign(Tt,{translateTo:[B,et],perspective:1e3});break}fe.toTweenCSS(f.value,vt,Tt,{duration:2e3,easeFunction:e.easeFunction,onUpdate:oe=>{}}).startAuto()}function ft(){const O="Rosetta";d.value==O||!n.value||!o.value||(d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{const G=gt.generateRosetta(120,120,55,35,6);G.setAttr({stroke:"none",fill:"none"});const M=new de({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),Y=new gt({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});C.clear(),w.ctx.clearRect(),fe.toTween({progress:0},{progress:1},{duration:15e3,onUpdate:nt=>{if(d.value!==O)return;const B=G.trailPath(Y,nt.progress);M.x=B.x,M.y=B.y,M.degree=B.alpha+90,C.path([Y,M]),w.ctx.clearRect(),w.draw([Y,M])}}).startAuto()})}))}function ht(){const O="Confetti_"+ee();d.value=O,n.value.getSVG().then(C=>{o.value.getCanvas().then(w=>{C.clear();const G=new Fg(w.app.width,w.app.height,{scalar:1});jt.run(()=>d.value!==O?!1:(C.path(G),w.ctx.clearRect(),w.draw(G),!0))})})}const _t=[{name:"PathDGroup",type:"PathDGroup",onClick:j},{name:"Shapes",type:"Shapes",onClick:yt},{name:"Arrow",type:"Arrow",onClick:bt},{name:"targetToAfterDragFree",type:"PointEase",onClick:Ct},{name:"ballCollision",type:"BallCollision",onClick:Rt},{name:"balls",type:"Balls",onClick:$t},{name:"万有引力",type:"Gravitate",onClick:se},{name:"行星",type:"SunPlanet",onClick:ne},{name:"SpringMass",type:"SpringMass",onClick:ue},{name:"WalkMan",type:"WalkMan",onClick:Yt},{name:"俄罗斯方块",type:"RectGame",onClick:wt},{name:"喷泉",type:"PointWater",onClick:it},{name:"链式弹簧",type:"PointSpringChain",onClick:q},{name:"多点弹簧",type:"PointSpringMulti",onClick:Et},{name:"连接弹簧",type:"PointSpringConnect",onClick:V},{name:"QuadraticBezier",type:"QuadraticBezierCurve",onClick:Ut},{name:"Points - random",type:"PointsRandom",onClick:ge},{name:"线条动画",type:"InterpolatePath",onClick:Ae},{name:"线条动画 pathDGroup",type:"InterpolatePathGroup",onClick:Re},{name:"strokeDash",type:"StrokeDash",onClick:as},{name:"strokeDashAuto",type:"StrokeDashAuto",onClick:v},{name:"strokeDashGroupParallelAuto",type:"StrokeDashGroupParallelAuto",onClick:x},{name:"strokeDashGroupSequenceAuto",type:"StrokeDashGroupSequenceAuto",onClick:I},{name:"Animate - toCSS",type:"AnimateToCSS",onClick:tt},{name:"Animate - toTweenCSS",type:"AnimateToTweenCSS",onClick:X},{name:"扇形",type:"Sector",onClick:xt},{name:"rosetta",type:"Rosetta",onClick:ft},{name:"Confetti",type:"Confetti",onClick:ht}],Ot=[{type:"slideLeft",onClick:()=>y("slideLeft")},{type:"slideRight",onClick:()=>y("slideRight")},{type:"slideDown",onClick:()=>y("slideDown")},{type:"slideUp",onClick:()=>y("slideUp")},{type:"flipLeft",onClick:()=>y("flipLeft")},{type:"flipRight",onClick:()=>y("flipRight")},{type:"flipDown",onClick:()=>y("flipDown")},{type:"flipUp",onClick:()=>y("flipUp")},{type:"popIn",onClick:()=>y("popIn")},{type:"popOut",onClick:()=>y("popOut")},{type:"rotate",onClick:()=>y("rotate")}],Vt=[{type:"translateTo",onClick:()=>y("translateTo")},{type:"translateXTo",onClick:()=>y("translateXTo")},{type:"translateYTo",onClick:()=>y("translateYTo")},{type:"translateZTo",onClick:()=>y("translateZTo")},{type:"translate3dTo",onClick:()=>y("translate3dTo")},{type:"rotateTo",onClick:()=>y("rotateTo")},{type:"rotateXTo",onClick:()=>y("rotateXTo")},{type:"rotateYTo",onClick:()=>y("rotateYTo")},{type:"rotateZTo",onClick:()=>y("rotateZTo")},{type:"rotate3dTo",onClick:()=>y("rotate3dTo")},{type:"scaleTo",onClick:()=>y("scaleTo")},{type:"scaleXTo",onClick:()=>y("scaleXTo")},{type:"scaleYTo",onClick:()=>y("scaleYTo")},{type:"scaleZTo",onClick:()=>y("scaleZTo")},{type:"scale3dTo",onClick:()=>y("scale3dTo")},{type:"skewTo",onClick:()=>y("skewTo")},{type:"skewXTo",onClick:()=>y("skewXTo")},{type:"skewYTo",onClick:()=>y("skewYTo")},{type:"perspective",onClick:()=>y("perspective")}];function Xt(){return new Promise(O=>{o.value.getCanvas().then(C=>{yn.downloadFromSVGString(C.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{O()},3e3)})})})}return re(()=>{}),t({}),(O,C)=>(F(),H(zt,null,[S("div",p1,[pt(ve,{asyncClick:Xt},{default:he(()=>[Kt(" downloadFromCanvasToSVG ")]),_:1})]),S("div",m1,[(F(),H(zt,null,Ce(_t,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:d.value.indexOf(w.type)>=0?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Es(S("div",g1,[(F(),H(zt,null,Ce(Ot,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:m.value==w.type?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ps,d.value=="AnimateToCSS"]]),Es(S("div",null," 当前缓动函数:"+kt(e.easeName),513),[[ps,d.value=="AnimateToTweenCSS"]]),Es(S("div",y1,[(F(),H(zt,null,Ce(Vt,w=>pt(ve,{key:w.type,item:w,onClick:w.onClick,stylePattern:m.value==w.type?"fullfilled":"outline"},{default:he(()=>[Kt(kt(w.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[ps,d.value=="AnimateToTweenCSS"]]),Es(S("div",v1,[S("div",_1,[S("div",null,"stroke-dasharray: "+kt(Lt.value)+","+kt(Lt.value),1),pt(Ks,{max:988,defaultValue:Lt.value,onChange:Ue},null,8,["defaultValue"])]),S("div",b1,[S("div",null,"stroke-dashoffset: "+kt(ie.value),1),pt(Ks,{max:988,defaultValue:ie.value,onChange:os},null,8,["defaultValue"])])],512),[[ps,d.value=="StrokeDash"]]),Es(S("div",x1,[pt(Mr,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[ps,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Es(S("div",w1,[pt(Qs,{ref_key:"canvasRef",ref:o,bgColor:"#333333"},null,512)],512),[[ps,d.value!=="AnimateToCSS"&&d.value!=="AnimateToTweenCSS"]]),Es(S("div",S1,[S("div",C1,[S("div",{ref_key:"divOneRef",ref:a},"1",512),S("div",{ref_key:"divTwoRef",ref:l},"2",512),S("div",{ref_key:"divThreeRef",ref:c},"3",512)]),S("div",E1,[S("div",{ref_key:"divOneSingleRef",ref:u},"one",512)])],512),[[ps,d.value=="AnimateToCSS"]]),Es(S("div",{ref_key:"tweenCSSContainerRef",ref:h,style:{height:"400px"},class:"css-area"},[S("div",{ref_key:"divTweenTargetRef",ref:f,class:"tween-css-target"},null,512)],512),[[ps,d.value=="AnimateToTweenCSS"]])],64))}}),Ob="",T1=ut(k1,[["__scopeId","data-v-55911768"]]),O1={class:"loading-1"},P1=lt({__name:"Loading1",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",O1,[S("div",{class:"rect1",style:e}),S("div",{class:"rect2",style:e}),S("div",{class:"rect3",style:e}),S("div",{class:"rect4",style:e}),S("div",{class:"rect5",style:e})]))}}),Pb="",D1=ut(P1,[["__scopeId","data-v-48b10c9a"]]),I1={class:"loading-2"},N1=lt({__name:"Loading2",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",I1,[S("div",{class:"dot1",style:e}),S("div",{class:"dot2",style:e})]))}}),Db="",M1=ut(N1,[["__scopeId","data-v-79f9930f"]]),A1=lt({__name:"Loading3",props:{fromColor:{default:ot.colorPrimary},toColor:{default:ot.colorRed}},setup(s){const t=s,e=`
|
|
99
103
|
@keyframes snake {
|
|
100
104
|
0% {
|
|
101
105
|
opacity: 0.3;
|
|
@@ -114,12 +118,19 @@ Expected function or array of functions, received type ${typeof s}.`),Qt)}functi
|
|
|
114
118
|
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
|
-
`,n={backgroundColor:t.fromColor,width:"20%"},
|
|
121
|
+
`,n={backgroundColor:t.fromColor,width:"20%"},i=$();return Dt(i,()=>{i.value&&U.setStyleSheet(e,i.value)}),zs(()=>{}),re(()=>{}),(r,o)=>(F(),H("div",{class:"loading-3",ref_key:"loading3",ref:i},[S("div",{class:"dot",style:W({...n,left:"0"})},null,4),S("div",{class:"dot",style:W({...n,left:"20%"})},null,4),S("div",{class:"dot",style:W({...n,left:"40%"})},null,4),S("div",{class:"dot",style:W({...n,left:"60%"})},null,4),S("div",{class:"dot",style:W({...n,left:"80%"})},null,4)],512))}}),Ib="",R1=ut(A1,[["__scopeId","data-v-718133c0"]]),$1={class:"loading-4"},V1=lt({__name:"Loading4",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",$1,[S("div",{class:"rect",style:e})]))}}),Nb="",L1=ut(V1,[["__scopeId","data-v-9028c8cf"]]),F1={class:"loading-5"},G1=lt({__name:"Loading5",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",F1,[S("div",{class:"cube1",style:e}),S("div",{class:"cube2",style:e})]))}}),Mb="",z1=ut(G1,[["__scopeId","data-v-6f68ee6f"]]),j1={class:"loading-6"},B1=lt({__name:"Loading6",props:{color:{default:ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(F(),H("div",j1,[S("div",{style:e}),S("div",{style:e}),S("div",{style:e})]))}}),Ab="",Y1=ut(B1,[["__scopeId","data-v-e397194b"]]),X1=[(s=>(Tn("data-v-58741a38"),s=s(),On(),s))(()=>S("div",null,null,-1))],H1=lt({__name:"Loading7",props:{color:{default:ot.colorPrimary}},setup(s){const t=s,e=`
|
|
118
122
|
:root {
|
|
119
123
|
--loading-7-bg-color: ${t.color}
|
|
120
124
|
}
|
|
121
125
|
:host {
|
|
122
126
|
--loading-7-bg-color: ${t.color}
|
|
123
127
|
}
|
|
124
|
-
`,n
|
|
128
|
+
`,n=$();return Dt(n,()=>{n.value&&U.setStyleSheet(e,n.value)}),zs(()=>{}),re(()=>{}),(i,r)=>(F(),H("div",{class:"loading-7",ref_key:"loading7",ref:n},X1,512))}}),Vb="",U1=ut(H1,[["__scopeId","data-v-58741a38"]]),W1={class:"loading-9"},q1=lt({__name:"Loading9",props:{color:{default:ot.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(F(),H("div",W1,[S("div",{style:e})]))}}),Lb="",Z1=ut(q1,[["__scopeId","data-v-a563aaa4"]]),K1={class:"loading-10"},Q1={viewBox:"0 0 50 50"},J1=lt({__name:"Loading10",props:{color:{default:ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(F(),H("div",K1,[(F(),H("svg",Q1,[S("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:W(["stroke: rgba(0,0,0,0.1)"])},null,4),S("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:W(["fill: "+t.color])},null,4)]))]))}}),Fb="",t_=ut(J1,[["__scopeId","data-v-361d898a"]]),e_={class:"face front"},s_={class:"face back"},n_=lt({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=$(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(F(),H("div",{class:"card-flip-scene",style:W({perspective:n.perspective})},[S("div",{class:ye(["card",[n.type,{flip:r.value}]]),style:W({transition:`transform ${n.dur}ms`}),onClick:o},[S("div",e_,[Gt(a.$slots,"front",{},()=>[Kt("front")],!0)]),S("div",s_,[Gt(a.$slots,"back",{},()=>[Kt("back")],!0)])],6)],4))}}),Gb="",i_=ut(n_,[["__scopeId","data-v-e37e840a"]]),r_=lt({customOptions:{RadioGroup:Pa,CheckboxGroup:Nr,InputRange:Ks},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=$(Math.floor(n.width/2)),r=`
|
|
129
|
+
:root {
|
|
130
|
+
--spin-cube-z: -${i.value}px;
|
|
131
|
+
}
|
|
132
|
+
:host {
|
|
133
|
+
--spin-cube-z: -${i.value}px;
|
|
134
|
+
}
|
|
135
|
+
`,o=$();Dt(o,()=>{o.value&&U.setStyleSheet(r,o.value)});const a=$(n.perspective+"px"),l=k=>{a.value=k==2e3?"none":k+"px"},c=$("50%"),u=k=>{c.value=k+"%"},h=$("50%"),f=k=>{h.value=k+"%"},d=`translateZ(-${i.value}px)`,m=$(d),y=k=>{switch(k){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}},_=$(!1),E=k=>{k.length?_.value=!0:_.value=!1},D=$("visible"),N=k=>{k.length?D.value="visible":D.value="hidden"};return t({}),(k,Q)=>(F(),H("div",{ref_key:"container",ref:o},[S("div",{class:"cube-scene",style:W({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[S("div",{class:ye(["cube",{spinning:_.value}]),style:W({transformStyle:"preserve-3d",transform:m.value,transition:`transform ${n.dur}ms`})},[S("div",{class:"face front",style:W({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"front",{},()=>[Kt("front")],!0)],4),S("div",{class:"face back",style:W({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"back",{},()=>[Kt("back")],!0)],4),S("div",{class:"face right",style:W({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"right",{},()=>[Kt("right")],!0)],4),S("div",{class:"face left",style:W({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"left",{},()=>[Kt("left")],!0)],4),S("div",{class:"face top",style:W({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"top",{},()=>[Kt("top")],!0)],4),S("div",{class:"face bottom",style:W({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:D.value})},[Gt(k.$slots,"bottom",{},()=>[Kt("bottom")],!0)],4)],6)],4),S("div",null,[pt(Pa,{options:["front","right","back","left","top","bottom"],onChange:y})]),S("div",null,[pt(Nr,{options:["Backface visible"],onChange:N})]),S("div",null,[pt(Nr,{options:["spin cube"],onChange:E})]),S("div",null,[Kt(" perspective: "),pt(Ks,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),S("div",null,[Kt(" perspective-origin x: "),pt(Ks,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),S("div",null,[Kt(" perspective-origin y: "),pt(Ks,{min:0,max:100,defaultValue:50,unit:"%",onChange:f})])],512))}}),zb="",o_=ut(r_,[["__scopeId","data-v-f15fa1e3"]]),a_=s=>(Tn("data-v-cca6a88d"),s=s(),On(),s),l_={class:"ring-indicator"},c_=a_(()=>S("span",null,"%",-1)),u_=1e3/20,gh=22+1,h_=180/22,yh=20,d_=2,Ha=17,f_=lt({customOptions:{Canvas:Qs},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s;let i=Mn(),r=$(0);const o=()=>{if(Mn()-i>=u_){i=Mn();const m=Math.ceil(Xe(n.percent,0,100));r.value<m?r.value++:r.value>m&&r.value--}return qe(r.value/100,2)},a=$(0),l=$(0),c=$(0),u=$(0),h=$(0),f=(m,y)=>{a.value=m,l.value=y,c.value=a.value/2,u.value=l.value-n.lineWidth/2,h.value=Math.min(a.value/2,l.value)-n.lineWidth},d=$();return Dt(d,()=>{d.value&&d.value.getCanvas().then(m=>{jt.run(()=>{m.ctx.clearRect();const y=new Ta({x:c.value,y:u.value,radius:h.value,startDegree:0,endDegree:180,lineWidth:n.lineWidth,color:n.bgColor}),_=h.value-h.value*Math.cos(Math.PI*o()),E=h.value*Math.sin(Math.PI*o()),D=m.ctx.createLinearGradient(c.value-h.value,u.value,c.value-h.value+_,u.value-E,{0:n.startColor,1:n.endColor}),N=new Ta({x:c.value,y:u.value,radius:h.value,startDegree:0,endDegree:180*o(),lineWidth:n.lineWidth,colorGradient:D}),k=[];for(let Q=0;Q<gh;Q++){const A=u.value-h.value+yh,j=new ke({cX:c.value,cY:u.value,fromX:c.value,fromY:A,x:c.value,y:A+Ha}),yt=Q/gh<o();j.setAttr({"stroke-linecap":"round","stroke-width":String(d_),stroke:yt?m.ctx.createLinearGradient(c.value,A,c.value,A+Ha,{0:n.startColor,1:n.endColor}):n.bgColor}),j.degree=-90+h_*Q,k.push(j)}return m.draw([y,N,...k]),!0})})}),t({}),(m,y)=>(F(),H("div",l_,[pt(Qs,{ref_key:"canvasRef",ref:d,onResize:f},null,512),S("div",{class:"ring-text",style:W({paddingTop:l.value-h.value+Ha+yh/2+"px",lineHeight:h.value+"px"})},[S("span",null,kt(Ft(r)),1),c_],4)]))}}),jb="",p_=ut(f_,[["__scopeId","data-v-cca6a88d"]]);return ct.Accordion=Ty,ct.Button=ve,ct.CardFlip=i_,ct.CheckboxGroup=Nr,ct.ColorPicker=Uv,ct.Cube=o_,ct.Dialog=Ci,ct.DialogLoading=dy,ct.DialogToast=sh,ct.EaseGraphDisplay=Ya,ct.EaseGroupGraphDisplay=a1,ct.FPSStats=t1,ct.HandWritePanel=ov,ct.Icon=_n,ct.Image=Ma,ct.ImageView=Fy,ct.Input=P0,ct.InputRange=Ks,ct.InputRangeSvg=V0,ct.InterpolationGraphDisplay=Xa,ct.InterpolationGroupGraphDisplay=d1,ct.LayoutCenter=Wy,ct.LayoutMobile=Hy,ct.Loading1=D1,ct.Loading10=t_,ct.Loading11=Oa,ct.Loading2=M1,ct.Loading3=R1,ct.Loading4=L1,ct.Loading5=z1,ct.Loading6=Y1,ct.Loading7=U1,ct.Loading8=Ia,ct.Loading9=Z1,ct.MapTianditu=Jv,ct.MouseOver=Ey,ct.Overlay=$n,ct.PageVerticalScrollProgressBar=cv,ct.PlateDisplay=Ev,ct.PlateKeyboard=nh,ct.PlateMobile=wv,ct.Pop=Qe,ct.Popover=Aa,ct.ProgressBar=Ei,ct.RadioGroup=Pa,ct.ResizeObserver=Kv,ct.RingIndicator=p_,ct.SVGAndCanvas=T1,ct.SVGCheck=Ra,ct.SVGCleanUp=Ar,ct.SVGDelete=Da,ct.SVGDown=Si,ct.Select=Qg,ct.SelectAbsolute=o0,ct.SlideLeftItem=j0,ct.Switch=l0,ct.Tab=Jy,ct.Tabs=iv,ct.Video=My,Object.defineProperty(ct,Symbol.toStringTag,{value:"Module"}),ct}({});
|
|
125
136
|
//# sourceMappingURL=zyzgroup_core_vue.iife.js.map
|