@zyzgroup/core-vue 0.0.39 → 0.0.40
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 +127 -111
- package/ce/yz_custom_element.iife.js.map +1 -1
- package/ce/yz_custom_element.js +8884 -8718
- package/ce/yz_custom_element.js.map +1 -1
- package/ce/yz_custom_element.umd.cjs +128 -112
- package/ce/yz_custom_element.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/zyzgroup_core_vue.iife.js +17 -1
- package/dist/zyzgroup_core_vue.iife.js.map +1 -1
- package/dist/zyzgroup_core_vue.js +1128 -710
- package/dist/zyzgroup_core_vue.js.map +1 -1
- package/dist/zyzgroup_core_vue.umd.cjs +17 -1
- package/dist/zyzgroup_core_vue.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/types/components/Button.ce.vue.d.ts +5 -0
- package/types/components/Button.vue.d.ts +5 -0
- package/types/components/Container.ce.vue.d.ts +3 -8
- package/types/components/Container.vue.d.ts +0 -4
- package/types/components/VueRouterView.ce.vue.d.ts +24 -0
- package/types/components/VueRouterView.vue.d.ts +24 -0
- package/types/components/VueSuspense.ce.vue.d.ts +7 -0
- package/types/components/VueSuspense.vue.d.ts +7 -0
- package/types/components/VueTeleport.ce.vue.d.ts +2 -0
- package/types/components/VueTeleport.vue.d.ts +2 -0
- package/types/components/effect/CSSTransition.ce.vue.d.ts +12 -5
- package/types/components/effect/CSSTransition.vue.d.ts +1 -0
- package/types/components/effect/VueTransition.ce.vue.d.ts +71 -0
- package/types/components/effect/VueTransition.vue.d.ts +71 -0
- package/types/components/effect/VueTransitionGroupSlideToLeft.ce.vue.d.ts +9 -0
- package/types/components/effect/VueTransitionGroupSlideToLeft.vue.d.ts +9 -0
- package/types/components/effect/VueTransitionOpacity.ce.vue.d.ts +9 -0
- package/types/components/effect/VueTransitionOpacity.vue.d.ts +9 -0
- package/types/components/effect/VueTransitionSlideUp.ce.vue.d.ts +9 -0
- package/types/components/effect/VueTransitionSlideUp.vue.d.ts +9 -0
- package/types/components/layout/LayoutMobile.ce.vue.d.ts +1 -1
- package/types/components/layout/LayoutMobile.vue.d.ts +1 -1
- package/types/components/xg/Footer.ce.vue.d.ts +2 -0
- package/types/components/xg/Footer.vue.d.ts +2 -0
- package/types/components/xg/Lot.ce.vue.d.ts +2 -0
- package/types/components/xg/Lot.vue.d.ts +2 -0
- package/types/lib.d.ts +2 -0
|
@@ -2,30 +2,30 @@ var YZCustomElement=function(fe){"use strict";/**
|
|
|
2
2
|
* @vue/shared v3.5.13
|
|
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 Os(s){const t=Object.create(null);for(const e of s.split(","))t[e]=1;return e=>e in t}const Wt={}.NODE_ENV!=="production"?Object.freeze({}):{},Eo={}.NODE_ENV!=="production"?Object.freeze([]):[],ve=()=>{},ph=()=>!1,jo=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&(s.charCodeAt(2)>122||s.charCodeAt(2)<97),Fr=s=>s.startsWith("onUpdate:"),ie=Object.assign,ia=(s,t)=>{const e=s.indexOf(t);e>-1&&s.splice(e,1)},mh=Object.prototype.hasOwnProperty,Gt=(s,t)=>mh.call(s,t),Tt=Array.isArray,ro=s=>Dr(s)==="[object Map]",wl=s=>Dr(s)==="[object Set]",Ot=s=>typeof s=="function",ue=s=>typeof s=="string",Rs=s=>typeof s=="symbol",Qt=s=>s!==null&&typeof s=="object",la=s=>(Qt(s)||Ot(s))&&Ot(s.then)&&Ot(s.catch),kl=Object.prototype.toString,Dr=s=>kl.call(s),ca=s=>Dr(s).slice(8,-1),$r=s=>Dr(s)==="[object Object]",ua=s=>ue(s)&&s!=="NaN"&&s[0]!=="-"&&""+parseInt(s,10)===s,Ho=Os(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gh=Os("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Lr=s=>{const t=Object.create(null);return e=>t[e]||(t[e]=s(e))},yh=/-(\w)/g,Ye=Lr(s=>s.replace(yh,(t,e)=>e?e.toUpperCase():"")),vh=/\B([A-Z])/g,We=Lr(s=>s.replace(vh,"-$1").toLowerCase()),Ar=Lr(s=>s.charAt(0).toUpperCase()+s.slice(1)),no=Lr(s=>s?`on${Ar(s)}`:""),Us=(s,t)=>!Object.is(s,t),Wo=(s,...t)=>{for(let e=0;e<s.length;e++)s[e](...t)},Nr=(s,t,e,o=!1)=>{Object.defineProperty(s,t,{configurable:!0,enumerable:!1,writable:o,value:e})},bh=s=>{const t=parseFloat(s);return isNaN(t)?s:t},Cl=s=>{const t=ue(s)?Number(s):NaN;return isNaN(t)?s:t};let Tl;const Zo=()=>Tl||(Tl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function N(s){if(Tt(s)){const t={};for(let e=0;e<s.length;e++){const o=s[e],r=ue(o)?kh(o):N(o);if(r)for(const n in r)t[n]=r[n]}return t}else if(ue(s)||Qt(s))return s}const _h=/;(?![^(]*\))/g,xh=/:([^]+)/,wh=/\/\*[^]*?\*\//g;function kh(s){const t={};return s.replace(wh,"").split(_h).forEach(e=>{if(e){const o=e.split(xh);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function se(s){let t="";if(ue(s))t=s;else if(Tt(s))for(let e=0;e<s.length;e++){const o=se(s[e]);o&&(t+=o+" ")}else if(Qt(s))for(const e in s)s[e]&&(t+=e+" ");return t.trim()}const Ch="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",Th="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",Sh="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",Eh=Os(Ch),Ph=Os(Th),Oh=Os(Sh),Rh=Os("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Sl(s){return!!s||s===""}const El=s=>!!(s&&s.__v_isRef===!0),yt=s=>ue(s)?s:s==null?"":Tt(s)||Qt(s)&&(s.toString===kl||!Ot(s.toString))?El(s)?yt(s.value):JSON.stringify(s,Pl,2):String(s),Pl=(s,t)=>El(t)?Pl(s,t.value):ro(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[o,r],n)=>(e[da(o,n)+" =>"]=r,e),{})}:wl(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>da(e))}:Rs(t)?da(t):Qt(t)&&!Tt(t)&&!$r(t)?String(t):t,da=(s,t="")=>{var e;return Rs(s)?`Symbol(${(e=s.description)!=null?e:t})`:s};/**
|
|
6
6
|
* @vue/reactivity v3.5.13
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/function cs(o,...t){console.warn(`[Vue warn] ${o}`,...t)}let We;class wh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=We;try{return We=this,t()}finally{We=e}}else({}).NODE_ENV!=="production"&&cs("cannot run an inactive effect scope.")}on(){We=this}off(){We=this.parent}stop(t){if(this._active){this._active=!1;let e,s;for(e=0,s=this.effects.length;e<s;e++)this.effects[e].stop();for(this.effects.length=0,e=0,s=this.cleanups.length;e<s;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].stop(!0);this.scopes.length=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}}}function kh(){return We}let Wt;const ia=new WeakSet;class Tl{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,We&&We.active&&We.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ia.has(this)&&(ia.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||El(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Fl(this),Pl(this);const t=Wt,e=ns;Wt=this,ns=!0;try{return this.fn()}finally{({}).NODE_ENV!=="production"&&Wt!==this&&cs("Active effect was not restored correctly - this is likely a Vue internal bug."),Ol(this),Wt=t,ns=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)fa(t);this.deps=this.depsTail=void 0,Fl(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ia.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ua(this)&&this.run()}get dirty(){return ua(this)}}let Sl=0,Wo,Zo;function El(o,t=!1){if(o.flags|=8,t){o.next=Zo,Zo=o;return}o.next=Wo,Wo=o}function la(){Sl++}function ca(){if(--Sl>0)return;if(Zo){let t=Zo;for(Zo=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let o;for(;Wo;){let t=Wo;for(Wo=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){o||(o=s)}t=e}}if(o)throw o}function Pl(o){for(let t=o.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ol(o){let t,e=o.depsTail,s=e;for(;s;){const r=s.prevDep;s.version===-1?(s===e&&(e=r),fa(s),Ch(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}o.deps=t,o.depsTail=e}function ua(o){for(let t=o.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Rl(t.dep.computed)||t.dep.version!==t.version))return!0;return!!o._dirty}function Rl(o){if(o.flags&4&&!(o.flags&16)||(o.flags&=-17,o.globalVersion===qo))return;o.globalVersion=qo;const t=o.dep;if(o.flags|=2,t.version>0&&!o.isSSR&&o.deps&&!ua(o)){o.flags&=-3;return}const e=Wt,s=ns;Wt=o,ns=!0;try{Pl(o);const r=o.fn(o._value);(t.version===0||Xs(r,o._value))&&(o._value=r,t.version++)}catch(r){throw t.version++,r}finally{Wt=e,ns=s,Ol(o),o.flags&=-3}}function fa(o,t=!1){const{dep:e,prevSub:s,nextSub:r}=o;if(s&&(s.nextSub=r,o.prevSub=void 0),r&&(r.prevSub=s,o.nextSub=void 0),{}.NODE_ENV!=="production"&&e.subsHead===o&&(e.subsHead=r),e.subs===o&&(e.subs=s,!s&&e.computed)){e.computed.flags&=-5;for(let n=e.computed.deps;n;n=n.nextDep)fa(n,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function Ch(o){const{prevDep:t,nextDep:e}=o;t&&(t.nextDep=e,o.prevDep=void 0),e&&(e.prevDep=t,o.nextDep=void 0)}let ns=!0;const Il=[];function Ps(){Il.push(ns),ns=!1}function Os(){const o=Il.pop();ns=o===void 0?!0:o}function Fl(o){const{cleanup:t}=o;if(o.cleanup=void 0,t){const e=Wt;Wt=void 0;try{t()}finally{Wt=e}}}let qo=0;class Th{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}let da=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,{}.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!Wt||!ns||Wt===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==Wt)e=this.activeLink=new Th(Wt,this),Wt.deps?(e.prevDep=Wt.depsTail,Wt.depsTail.nextDep=e,Wt.depsTail=e):Wt.deps=Wt.depsTail=e,Dl(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const s=e.nextDep;s.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=s),e.prevDep=Wt.depsTail,e.nextDep=void 0,Wt.depsTail.nextDep=e,Wt.depsTail=e,Wt.deps===e&&(Wt.deps=s)}return{}.NODE_ENV!=="production"&&Wt.onTrack&&Wt.onTrack(ae({effect:Wt},t)),e}trigger(t){this.version++,qo++,this.notify(t)}notify(t){la();try{if({}.NODE_ENV!=="production")for(let e=this.subsHead;e;e=e.nextSub)e.sub.onTrigger&&!(e.sub.flags&8)&&e.sub.onTrigger(ae({effect:e.sub},t));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{ca()}}};function Dl(o){if(o.dep.sc++,o.sub.flags&4){const t=o.dep.computed;if(t&&!o.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Dl(s)}const e=o.dep.subs;e!==o&&(o.prevSub=e,e&&(e.nextSub=o)),{}.NODE_ENV!=="production"&&o.dep.subsHead===void 0&&(o.dep.subsHead=o),o.dep.subs=o}}const ha=new WeakMap,ro=Symbol({}.NODE_ENV!=="production"?"Object iterate":""),pa=Symbol({}.NODE_ENV!=="production"?"Map keys iterate":""),Qo=Symbol({}.NODE_ENV!=="production"?"Array iterate":"");function ve(o,t,e){if(ns&&Wt){let s=ha.get(o);s||ha.set(o,s=new Map);let r=s.get(e);r||(s.set(e,r=new da),r.map=s,r.key=e),{}.NODE_ENV!=="production"?r.track({target:o,type:t,key:e}):r.track()}}function us(o,t,e,s,r,n){const a=ha.get(o);if(!a){qo++;return}const i=l=>{l&&({}.NODE_ENV!=="production"?l.trigger({target:o,type:t,key:e,newValue:s,oldValue:r,oldTarget:n}):l.trigger())};if(la(),t==="clear")a.forEach(i);else{const l=Tt(o),c=l&&na(e);if(l&&e==="length"){const u=Number(s);a.forEach((f,d)=>{(d==="length"||d===Qo||!Es(d)&&d>=u)&&i(f)})}else switch((e!==void 0||a.has(void 0))&&i(a.get(e)),c&&i(a.get(Qo)),t){case"add":l?c&&i(a.get("length")):(i(a.get(ro)),so(o)&&i(a.get(pa)));break;case"delete":l||(i(a.get(ro)),so(o)&&i(a.get(pa)));break;case"set":so(o)&&i(a.get(ro));break}}ca()}function So(o){const t=Lt(o);return t===o?t:(ve(t,"iterate",Qo),De(o)?t:t.map(Re))}function Nr(o){return ve(o=Lt(o),"iterate",Qo),o}const Sh={__proto__:null,[Symbol.iterator](){return ma(this,Symbol.iterator,Re)},concat(...o){return So(this).concat(...o.map(t=>Tt(t)?So(t):t))},entries(){return ma(this,"entries",o=>(o[1]=Re(o[1]),o))},every(o,t){return Rs(this,"every",o,t,void 0,arguments)},filter(o,t){return Rs(this,"filter",o,t,e=>e.map(Re),arguments)},find(o,t){return Rs(this,"find",o,t,Re,arguments)},findIndex(o,t){return Rs(this,"findIndex",o,t,void 0,arguments)},findLast(o,t){return Rs(this,"findLast",o,t,Re,arguments)},findLastIndex(o,t){return Rs(this,"findLastIndex",o,t,void 0,arguments)},forEach(o,t){return Rs(this,"forEach",o,t,void 0,arguments)},includes(...o){return ga(this,"includes",o)},indexOf(...o){return ga(this,"indexOf",o)},join(o){return So(this).join(o)},lastIndexOf(...o){return ga(this,"lastIndexOf",o)},map(o,t){return Rs(this,"map",o,t,void 0,arguments)},pop(){return Ko(this,"pop")},push(...o){return Ko(this,"push",o)},reduce(o,...t){return $l(this,"reduce",o,t)},reduceRight(o,...t){return $l(this,"reduceRight",o,t)},shift(){return Ko(this,"shift")},some(o,t){return Rs(this,"some",o,t,void 0,arguments)},splice(...o){return Ko(this,"splice",o)},toReversed(){return So(this).toReversed()},toSorted(o){return So(this).toSorted(o)},toSpliced(...o){return So(this).toSpliced(...o)},unshift(...o){return Ko(this,"unshift",o)},values(){return ma(this,"values",Re)}};function ma(o,t,e){const s=Nr(o),r=s[t]();return s!==o&&!De(o)&&(r._next=r.next,r.next=()=>{const n=r._next();return n.value&&(n.value=e(n.value)),n}),r}const Eh=Array.prototype;function Rs(o,t,e,s,r,n){const a=Nr(o),i=a!==o&&!De(o),l=a[t];if(l!==Eh[t]){const f=l.apply(o,n);return i?Re(f):f}let c=e;a!==o&&(i?c=function(f,d){return e.call(this,Re(f),d,o)}:e.length>2&&(c=function(f,d){return e.call(this,f,d,o)}));const u=l.call(a,c,s);return i&&r?r(u):u}function $l(o,t,e,s){const r=Nr(o);let n=e;return r!==o&&(De(o)?e.length>3&&(n=function(a,i,l){return e.call(this,a,i,l,o)}):n=function(a,i,l){return e.call(this,a,Re(i),l,o)}),r[t](n,...s)}function ga(o,t,e){const s=Lt(o);ve(s,"iterate",Qo);const r=s[t](...e);return(r===-1||r===!1)&&Br(e[0])?(e[0]=Lt(e[0]),s[t](...e)):r}function Ko(o,t,e=[]){Ps(),la();const s=Lt(o)[t].apply(o,e);return ca(),Os(),s}const Ph=Ss("__proto__,__v_isRef,__isVue"),Ll=new Set(Object.getOwnPropertyNames(Symbol).filter(o=>o!=="arguments"&&o!=="caller").map(o=>Symbol[o]).filter(Es));function Oh(o){Es(o)||(o=String(o));const t=Lt(this);return ve(t,"has",o),t.hasOwnProperty(o)}class Nl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,s){if(e==="__v_skip")return t.__v_skip;const r=this._isReadonly,n=this._isShallow;if(e==="__v_isReactive")return!r;if(e==="__v_isReadonly")return r;if(e==="__v_isShallow")return n;if(e==="__v_raw")return s===(r?n?Xl:Yl:n?Bl:Vl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=Tt(t);if(!r){let l;if(a&&(l=Sh[e]))return l;if(e==="hasOwnProperty")return Oh}const i=Reflect.get(t,e,de(t)?t:s);return(Es(e)?Ll.has(e):Ph(e))||(r||ve(t,"get",e),n)?i:de(i)?a&&na(e)?i:i.value:qt(i)?r?Gl(i):Qt(i):i}}class Ml extends Nl{constructor(t=!1){super(!1,t)}set(t,e,s,r){let n=t[e];if(!this._isShallow){const l=Is(n);if(!De(s)&&!Is(s)&&(n=Lt(n),s=Lt(s)),!Tt(t)&&de(n)&&!de(s))return l?!1:(n.value=s,!0)}const a=Tt(t)&&na(e)?Number(e)<t.length:Gt(t,e),i=Reflect.set(t,e,s,de(t)?t:r);return t===Lt(r)&&(a?Xs(s,n)&&us(t,"set",e,s,n):us(t,"add",e,s)),i}deleteProperty(t,e){const s=Gt(t,e),r=t[e],n=Reflect.deleteProperty(t,e);return n&&s&&us(t,"delete",e,void 0,r),n}has(t,e){const s=Reflect.has(t,e);return(!Es(e)||!Ll.has(e))&&ve(t,"has",e),s}ownKeys(t){return ve(t,"iterate",Tt(t)?"length":ro),Reflect.ownKeys(t)}}class Al extends Nl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&cs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&cs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Rh=new Ml,Ih=new Al,Fh=new Ml(!0),Dh=new Al(!0),ya=o=>o,Mr=o=>Reflect.getPrototypeOf(o);function $h(o,t,e){return function(...s){const r=this.__v_raw,n=Lt(r),a=so(n),i=o==="entries"||o===Symbol.iterator&&a,l=o==="keys"&&a,c=r[o](...s),u=e?ya:t?va:Re;return!t&&ve(n,"iterate",l?pa:ro),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:i?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Ar(o){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";cs(`${$r(o)} operation ${e}failed: target is readonly.`,Lt(this))}return o==="delete"?!1:o==="clear"?void 0:this}}function Lh(o,t){const e={get(r){const n=this.__v_raw,a=Lt(n),i=Lt(r);o||(Xs(r,i)&&ve(a,"get",r),ve(a,"get",i));const{has:l}=Mr(a),c=t?ya:o?va:Re;if(l.call(a,r))return c(n.get(r));if(l.call(a,i))return c(n.get(i));n!==a&&n.get(r)},get size(){const r=this.__v_raw;return!o&&ve(Lt(r),"iterate",ro),Reflect.get(r,"size",r)},has(r){const n=this.__v_raw,a=Lt(n),i=Lt(r);return o||(Xs(r,i)&&ve(a,"has",r),ve(a,"has",i)),r===i?n.has(r):n.has(r)||n.has(i)},forEach(r,n){const a=this,i=a.__v_raw,l=Lt(i),c=t?ya:o?va:Re;return!o&&ve(l,"iterate",ro),i.forEach((u,f)=>r.call(n,c(u),c(f),a))}};return ae(e,o?{add:Ar("add"),set:Ar("set"),delete:Ar("delete"),clear:Ar("clear")}:{add(r){!t&&!De(r)&&!Is(r)&&(r=Lt(r));const n=Lt(this);return Mr(n).has.call(n,r)||(n.add(r),us(n,"add",r,r)),this},set(r,n){!t&&!De(n)&&!Is(n)&&(n=Lt(n));const a=Lt(this),{has:i,get:l}=Mr(a);let c=i.call(a,r);c?{}.NODE_ENV!=="production"&&zl(a,i,r):(r=Lt(r),c=i.call(a,r));const u=l.call(a,r);return a.set(r,n),c?Xs(n,u)&&us(a,"set",r,n,u):us(a,"add",r,n),this},delete(r){const n=Lt(this),{has:a,get:i}=Mr(n);let l=a.call(n,r);l?{}.NODE_ENV!=="production"&&zl(n,a,r):(r=Lt(r),l=a.call(n,r));const c=i?i.call(n,r):void 0,u=n.delete(r);return l&&us(n,"delete",r,void 0,c),u},clear(){const r=Lt(this),n=r.size!==0,a={}.NODE_ENV!=="production"?so(r)?new Map(r):new Set(r):void 0,i=r.clear();return n&&us(r,"clear",void 0,void 0,a),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=$h(r,o,t)}),e}function zr(o,t){const e=Lh(o,t);return(s,r,n)=>r==="__v_isReactive"?!o:r==="__v_isReadonly"?o:r==="__v_raw"?s:Reflect.get(Gt(e,r)&&r in s?e:s,r,n)}const Nh={get:zr(!1,!1)},Mh={get:zr(!1,!0)},Ah={get:zr(!0,!1)},zh={get:zr(!0,!0)};function zl(o,t,e){const s=Lt(e);if(s!==e&&t.call(o,s)){const r=ra(o);cs(`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 Vl=new WeakMap,Bl=new WeakMap,Yl=new WeakMap,Xl=new WeakMap;function Vh(o){switch(o){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bh(o){return o.__v_skip||!Object.isExtensible(o)?0:Vh(ra(o))}function Qt(o){return Is(o)?o:Vr(o,!1,Rh,Nh,Vl)}function Yh(o){return Vr(o,!1,Fh,Mh,Bl)}function Gl(o){return Vr(o,!0,Ih,Ah,Yl)}function fs(o){return Vr(o,!0,Dh,zh,Xl)}function Vr(o,t,e,s,r){if(!qt(o))return{}.NODE_ENV!=="production"&&cs(`value cannot be made ${t?"readonly":"reactive"}: ${String(o)}`),o;if(o.__v_raw&&!(t&&o.__v_isReactive))return o;const n=r.get(o);if(n)return n;const a=Bh(o);if(a===0)return o;const i=new Proxy(o,a===2?s:e);return r.set(o,i),i}function no(o){return Is(o)?no(o.__v_raw):!!(o&&o.__v_isReactive)}function Is(o){return!!(o&&o.__v_isReadonly)}function De(o){return!!(o&&o.__v_isShallow)}function Br(o){return o?!!o.__v_raw:!1}function Lt(o){const t=o&&o.__v_raw;return t?Lt(t):o}function Xh(o){return!Gt(o,"__v_skip")&&Object.isExtensible(o)&&Lr(o,"__v_skip",!0),o}const Re=o=>qt(o)?Qt(o):o,va=o=>qt(o)?Gl(o):o;function de(o){return o?o.__v_isRef===!0:!1}function R(o){return Gh(o,!1)}function Gh(o,t){return de(o)?o:new Uh(o,t)}class Uh{constructor(t,e){this.dep=new da,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:Lt(t),this._value=e?t:Re(t),this.__v_isShallow=e}get value(){return{}.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const e=this._rawValue,s=this.__v_isShallow||De(t)||Is(t);t=s?t:Lt(t),Xs(t,e)&&(this._rawValue=t,this._value=s?t:Re(t),{}.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:e}):this.dep.trigger())}}function Ct(o){return de(o)?o.value:o}const jh={get:(o,t,e)=>t==="__v_raw"?o:Ct(Reflect.get(o,t,e)),set:(o,t,e,s)=>{const r=o[t];return de(r)&&!de(e)?(r.value=e,!0):Reflect.set(o,t,e,s)}};function Ul(o){return no(o)?o:new Proxy(o,jh)}class Hh{constructor(t,e,s){this.fn=t,this.setter=e,this._value=void 0,this.dep=new da(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qo-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Wt!==this)return El(this,!0),!0}get value(){const t={}.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return Rl(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):{}.NODE_ENV!=="production"&&cs("Write operation failed: computed value is readonly")}}function Wh(o,t,e=!1){let s,r;Ot(o)?s=o:(s=o.get,r=o.set);const n=new Hh(s,r,e);return{}.NODE_ENV!=="production"&&t&&!e&&(n.onTrack=t.onTrack,n.onTrigger=t.onTrigger),n}const Yr={},Xr=new WeakMap;let ao;function Zh(o,t=!1,e=ao){if(e){let s=Xr.get(e);s||Xr.set(e,s=[]),s.push(o)}else({}).NODE_ENV!=="production"&&!t&&cs("onWatcherCleanup() was called when there was no active watcher to associate with.")}function qh(o,t,e=Ht){const{immediate:s,deep:r,once:n,scheduler:a,augmentJob:i,call:l}=e,c=b=>{(e.onWarn||cs)("Invalid watch source: ",b,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=b=>r?b:De(b)||r===!1||r===0?Fs(b,1):Fs(b);let f,d,p,h,w=!1,_=!1;if(de(o)?(d=()=>o.value,w=De(o)):no(o)?(d=()=>u(o),w=!0):Tt(o)?(_=!0,w=o.some(b=>no(b)||De(b)),d=()=>o.map(b=>{if(de(b))return b.value;if(no(b))return u(b);if(Ot(b))return l?l(b,2):b();({}).NODE_ENV!=="production"&&c(b)})):Ot(o)?t?d=l?()=>l(o,2):o:d=()=>{if(p){Ps();try{p()}finally{Os()}}const b=ao;ao=f;try{return l?l(o,3,[h]):o(h)}finally{ao=b}}:(d=ye,{}.NODE_ENV!=="production"&&c(o)),t&&r){const b=d,C=r===!0?1/0:r;d=()=>Fs(b(),C)}const x=kh(),v=()=>{f.stop(),x&&x.active&&sa(x.effects,f)};if(n&&t){const b=t;t=(...C)=>{b(...C),v()}}let g=_?new Array(o.length).fill(Yr):Yr;const m=b=>{if(!(!(f.flags&1)||!f.dirty&&!b))if(t){const C=f.run();if(r||w||(_?C.some((U,K)=>Xs(U,g[K])):Xs(C,g))){p&&p();const U=ao;ao=f;try{const K=[C,g===Yr?void 0:_&&g[0]===Yr?[]:g,h];l?l(t,3,K):t(...K),g=C}finally{ao=U}}}else f.run()};return i&&i(m),f=new Tl(d),f.scheduler=a?()=>a(m,!1):m,h=b=>Zh(b,!1,f),p=f.onStop=()=>{const b=Xr.get(f);if(b){if(l)l(b,4);else for(const C of b)C();Xr.delete(f)}},{}.NODE_ENV!=="production"&&(f.onTrack=e.onTrack,f.onTrigger=e.onTrigger),t?s?m(!0):g=f.run():a?a(m.bind(null,!0),!0):f.run(),v.pause=f.pause.bind(f),v.resume=f.resume.bind(f),v.stop=v,v}function Fs(o,t=1/0,e){if(t<=0||!qt(o)||o.__v_skip||(e=e||new Set,e.has(o)))return o;if(e.add(o),t--,de(o))Fs(o.value,t,e);else if(Tt(o))for(let s=0;s<o.length;s++)Fs(o[s],t,e);else if(vl(o)||so(o))o.forEach(s=>{Fs(s,t,e)});else if(Fr(o)){for(const s in o)Fs(o[s],t,e);for(const s of Object.getOwnPropertySymbols(o))Object.prototype.propertyIsEnumerable.call(o,s)&&Fs(o[s],t,e)}return o}/**
|
|
9
|
+
**/function ds(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let Ze;class Ih{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ze,!t&&Ze&&(this.index=(Ze.scopes||(Ze.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].pause();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,e;if(this.scopes)for(t=0,e=this.scopes.length;t<e;t++)this.scopes[t].resume();for(t=0,e=this.effects.length;t<e;t++)this.effects[t].resume()}}run(t){if(this._active){const e=Ze;try{return Ze=this,t()}finally{Ze=e}}else({}).NODE_ENV!=="production"&&ds("cannot run an inactive effect scope.")}on(){Ze=this}off(){Ze=this.parent}stop(t){if(this._active){this._active=!1;let e,o;for(e=0,o=this.effects.length;e<o;e++)this.effects[e].stop();for(this.effects.length=0,e=0,o=this.cleanups.length;e<o;e++)this.cleanups[e]();if(this.cleanups.length=0,this.scopes){for(e=0,o=this.scopes.length;e<o;e++)this.scopes[e].stop(!0);this.scopes.length=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}}}function Fh(){return Ze}let Zt;const fa=new WeakSet;class Ol{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ze&&Ze.active&&Ze.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,fa.has(this)&&(fa.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Il(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Al(this),Fl(this);const t=Zt,e=as;Zt=this,as=!0;try{return this.fn()}finally{({}).NODE_ENV!=="production"&&Zt!==this&&ds("Active effect was not restored correctly - this is likely a Vue internal bug."),Dl(this),Zt=t,as=e,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ga(t);this.deps=this.depsTail=void 0,Al(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?fa.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ma(this)&&this.run()}get dirty(){return ma(this)}}let Rl=0,qo,Qo;function Il(s,t=!1){if(s.flags|=8,t){s.next=Qo,Qo=s;return}s.next=qo,qo=s}function ha(){Rl++}function pa(){if(--Rl>0)return;if(Qo){let t=Qo;for(Qo=void 0;t;){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let s;for(;qo;){let t=qo;for(qo=void 0;t;){const e=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){s||(s=o)}t=e}}if(s)throw s}function Fl(s){for(let t=s.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Dl(s){let t,e=s.depsTail,o=e;for(;o;){const r=o.prevDep;o.version===-1?(o===e&&(e=r),ga(o),Dh(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}s.deps=t,s.depsTail=e}function ma(s){for(let t=s.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($l(t.dep.computed)||t.dep.version!==t.version))return!0;return!!s._dirty}function $l(s){if(s.flags&4&&!(s.flags&16)||(s.flags&=-17,s.globalVersion===Ko))return;s.globalVersion=Ko;const t=s.dep;if(s.flags|=2,t.version>0&&!s.isSSR&&s.deps&&!ma(s)){s.flags&=-3;return}const e=Zt,o=as;Zt=s,as=!0;try{Fl(s);const r=s.fn(s._value);(t.version===0||Us(r,s._value))&&(s._value=r,t.version++)}catch(r){throw t.version++,r}finally{Zt=e,as=o,Dl(s),s.flags&=-3}}function ga(s,t=!1){const{dep:e,prevSub:o,nextSub:r}=s;if(o&&(o.nextSub=r,s.prevSub=void 0),r&&(r.prevSub=o,s.nextSub=void 0),{}.NODE_ENV!=="production"&&e.subsHead===s&&(e.subsHead=r),e.subs===s&&(e.subs=o,!o&&e.computed)){e.computed.flags&=-5;for(let n=e.computed.deps;n;n=n.nextDep)ga(n,!0)}!t&&!--e.sc&&e.map&&e.map.delete(e.key)}function Dh(s){const{prevDep:t,nextDep:e}=s;t&&(t.nextDep=e,s.prevDep=void 0),e&&(e.prevDep=t,s.nextDep=void 0)}let as=!0;const Ll=[];function Is(){Ll.push(as),as=!1}function Fs(){const s=Ll.pop();as=s===void 0?!0:s}function Al(s){const{cleanup:t}=s;if(s.cleanup=void 0,t){const e=Zt;Zt=void 0;try{t()}finally{Zt=e}}}let Ko=0;class $h{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}let ya=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,{}.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!Zt||!as||Zt===this.computed)return;let e=this.activeLink;if(e===void 0||e.sub!==Zt)e=this.activeLink=new $h(Zt,this),Zt.deps?(e.prevDep=Zt.depsTail,Zt.depsTail.nextDep=e,Zt.depsTail=e):Zt.deps=Zt.depsTail=e,Nl(e);else if(e.version===-1&&(e.version=this.version,e.nextDep)){const o=e.nextDep;o.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=o),e.prevDep=Zt.depsTail,e.nextDep=void 0,Zt.depsTail.nextDep=e,Zt.depsTail=e,Zt.deps===e&&(Zt.deps=o)}return{}.NODE_ENV!=="production"&&Zt.onTrack&&Zt.onTrack(ie({effect:Zt},t)),e}trigger(t){this.version++,Ko++,this.notify(t)}notify(t){ha();try{if({}.NODE_ENV!=="production")for(let e=this.subsHead;e;e=e.nextSub)e.sub.onTrigger&&!(e.sub.flags&8)&&e.sub.onTrigger(ie({effect:e.sub},t));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{pa()}}};function Nl(s){if(s.dep.sc++,s.sub.flags&4){const t=s.dep.computed;if(t&&!s.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)Nl(o)}const e=s.dep.subs;e!==s&&(s.prevSub=e,e&&(e.nextSub=s)),{}.NODE_ENV!=="production"&&s.dep.subsHead===void 0&&(s.dep.subsHead=s),s.dep.subs=s}}const va=new WeakMap,ao=Symbol({}.NODE_ENV!=="production"?"Object iterate":""),ba=Symbol({}.NODE_ENV!=="production"?"Map keys iterate":""),Jo=Symbol({}.NODE_ENV!=="production"?"Array iterate":"");function be(s,t,e){if(as&&Zt){let o=va.get(s);o||va.set(s,o=new Map);let r=o.get(e);r||(o.set(e,r=new ya),r.map=o,r.key=e),{}.NODE_ENV!=="production"?r.track({target:s,type:t,key:e}):r.track()}}function fs(s,t,e,o,r,n){const a=va.get(s);if(!a){Ko++;return}const i=l=>{l&&({}.NODE_ENV!=="production"?l.trigger({target:s,type:t,key:e,newValue:o,oldValue:r,oldTarget:n}):l.trigger())};if(ha(),t==="clear")a.forEach(i);else{const l=Tt(s),c=l&&ua(e);if(l&&e==="length"){const u=Number(o);a.forEach((d,h)=>{(h==="length"||h===Jo||!Rs(h)&&h>=u)&&i(d)})}else switch((e!==void 0||a.has(void 0))&&i(a.get(e)),c&&i(a.get(Jo)),t){case"add":l?c&&i(a.get("length")):(i(a.get(ao)),ro(s)&&i(a.get(ba)));break;case"delete":l||(i(a.get(ao)),ro(s)&&i(a.get(ba)));break;case"set":ro(s)&&i(a.get(ao));break}}pa()}function Po(s){const t=$t(s);return t===s?t:(be(t,"iterate",Jo),$e(s)?t:t.map(Ie))}function Mr(s){return be(s=$t(s),"iterate",Jo),s}const Lh={__proto__:null,[Symbol.iterator](){return _a(this,Symbol.iterator,Ie)},concat(...s){return Po(this).concat(...s.map(t=>Tt(t)?Po(t):t))},entries(){return _a(this,"entries",s=>(s[1]=Ie(s[1]),s))},every(s,t){return Ds(this,"every",s,t,void 0,arguments)},filter(s,t){return Ds(this,"filter",s,t,e=>e.map(Ie),arguments)},find(s,t){return Ds(this,"find",s,t,Ie,arguments)},findIndex(s,t){return Ds(this,"findIndex",s,t,void 0,arguments)},findLast(s,t){return Ds(this,"findLast",s,t,Ie,arguments)},findLastIndex(s,t){return Ds(this,"findLastIndex",s,t,void 0,arguments)},forEach(s,t){return Ds(this,"forEach",s,t,void 0,arguments)},includes(...s){return xa(this,"includes",s)},indexOf(...s){return xa(this,"indexOf",s)},join(s){return Po(this).join(s)},lastIndexOf(...s){return xa(this,"lastIndexOf",s)},map(s,t){return Ds(this,"map",s,t,void 0,arguments)},pop(){return tr(this,"pop")},push(...s){return tr(this,"push",s)},reduce(s,...t){return Ml(this,"reduce",s,t)},reduceRight(s,...t){return Ml(this,"reduceRight",s,t)},shift(){return tr(this,"shift")},some(s,t){return Ds(this,"some",s,t,void 0,arguments)},splice(...s){return tr(this,"splice",s)},toReversed(){return Po(this).toReversed()},toSorted(s){return Po(this).toSorted(s)},toSpliced(...s){return Po(this).toSpliced(...s)},unshift(...s){return tr(this,"unshift",s)},values(){return _a(this,"values",Ie)}};function _a(s,t,e){const o=Mr(s),r=o[t]();return o!==s&&!$e(s)&&(r._next=r.next,r.next=()=>{const n=r._next();return n.value&&(n.value=e(n.value)),n}),r}const Ah=Array.prototype;function Ds(s,t,e,o,r,n){const a=Mr(s),i=a!==s&&!$e(s),l=a[t];if(l!==Ah[t]){const d=l.apply(s,n);return i?Ie(d):d}let c=e;a!==s&&(i?c=function(d,h){return e.call(this,Ie(d),h,s)}:e.length>2&&(c=function(d,h){return e.call(this,d,h,s)}));const u=l.call(a,c,o);return i&&r?r(u):u}function Ml(s,t,e,o){const r=Mr(s);let n=e;return r!==s&&($e(s)?e.length>3&&(n=function(a,i,l){return e.call(this,a,i,l,s)}):n=function(a,i,l){return e.call(this,a,Ie(i),l,s)}),r[t](n,...o)}function xa(s,t,e){const o=$t(s);be(o,"iterate",Jo);const r=o[t](...e);return(r===-1||r===!1)&&Xr(e[0])?(e[0]=$t(e[0]),o[t](...e)):r}function tr(s,t,e=[]){Is(),ha();const o=$t(s)[t].apply(s,e);return pa(),Fs(),o}const Nh=Os("__proto__,__v_isRef,__isVue"),zl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(Rs));function Mh(s){Rs(s)||(s=String(s));const t=$t(this);return be(t,"has",s),t.hasOwnProperty(s)}class Vl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,o){if(e==="__v_skip")return t.__v_skip;const r=this._isReadonly,n=this._isShallow;if(e==="__v_isReactive")return!r;if(e==="__v_isReadonly")return r;if(e==="__v_isShallow")return n;if(e==="__v_raw")return o===(r?n?Hl:jl:n?Ul:Gl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=Tt(t);if(!r){let l;if(a&&(l=Lh[e]))return l;if(e==="hasOwnProperty")return Mh}const i=Reflect.get(t,e,he(t)?t:o);return(Rs(e)?zl.has(e):Nh(e))||(r||be(t,"get",e),n)?i:he(i)?a&&ua(e)?i:i.value:Qt(i)?r?Wl(i):Kt(i):i}}class Bl extends Vl{constructor(t=!1){super(!1,t)}set(t,e,o,r){let n=t[e];if(!this._isShallow){const l=$s(n);if(!$e(o)&&!$s(o)&&(n=$t(n),o=$t(o)),!Tt(t)&&he(n)&&!he(o))return l?!1:(n.value=o,!0)}const a=Tt(t)&&ua(e)?Number(e)<t.length:Gt(t,e),i=Reflect.set(t,e,o,he(t)?t:r);return t===$t(r)&&(a?Us(o,n)&&fs(t,"set",e,o,n):fs(t,"add",e,o)),i}deleteProperty(t,e){const o=Gt(t,e),r=t[e],n=Reflect.deleteProperty(t,e);return n&&o&&fs(t,"delete",e,void 0,r),n}has(t,e){const o=Reflect.has(t,e);return(!Rs(e)||!zl.has(e))&&be(t,"has",e),o}ownKeys(t){return be(t,"iterate",Tt(t)?"length":ao),Reflect.ownKeys(t)}}class Yl extends Vl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&ds(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&ds(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const zh=new Bl,Vh=new Yl,Bh=new Bl(!0),Yh=new Yl(!0),wa=s=>s,zr=s=>Reflect.getPrototypeOf(s);function Xh(s,t,e){return function(...o){const r=this.__v_raw,n=$t(r),a=ro(n),i=s==="entries"||s===Symbol.iterator&&a,l=s==="keys"&&a,c=r[s](...o),u=e?wa:t?ka:Ie;return!t&&be(n,"iterate",l?ba:ao),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:i?[u(d[0]),u(d[1])]:u(d),done:h}},[Symbol.iterator](){return this}}}}function Vr(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";ds(`${Ar(s)} operation ${e}failed: target is readonly.`,$t(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function Gh(s,t){const e={get(r){const n=this.__v_raw,a=$t(n),i=$t(r);s||(Us(r,i)&&be(a,"get",r),be(a,"get",i));const{has:l}=zr(a),c=t?wa:s?ka:Ie;if(l.call(a,r))return c(n.get(r));if(l.call(a,i))return c(n.get(i));n!==a&&n.get(r)},get size(){const r=this.__v_raw;return!s&&be($t(r),"iterate",ao),Reflect.get(r,"size",r)},has(r){const n=this.__v_raw,a=$t(n),i=$t(r);return s||(Us(r,i)&&be(a,"has",r),be(a,"has",i)),r===i?n.has(r):n.has(r)||n.has(i)},forEach(r,n){const a=this,i=a.__v_raw,l=$t(i),c=t?wa:s?ka:Ie;return!s&&be(l,"iterate",ao),i.forEach((u,d)=>r.call(n,c(u),c(d),a))}};return ie(e,s?{add:Vr("add"),set:Vr("set"),delete:Vr("delete"),clear:Vr("clear")}:{add(r){!t&&!$e(r)&&!$s(r)&&(r=$t(r));const n=$t(this);return zr(n).has.call(n,r)||(n.add(r),fs(n,"add",r,r)),this},set(r,n){!t&&!$e(n)&&!$s(n)&&(n=$t(n));const a=$t(this),{has:i,get:l}=zr(a);let c=i.call(a,r);c?{}.NODE_ENV!=="production"&&Xl(a,i,r):(r=$t(r),c=i.call(a,r));const u=l.call(a,r);return a.set(r,n),c?Us(n,u)&&fs(a,"set",r,n,u):fs(a,"add",r,n),this},delete(r){const n=$t(this),{has:a,get:i}=zr(n);let l=a.call(n,r);l?{}.NODE_ENV!=="production"&&Xl(n,a,r):(r=$t(r),l=a.call(n,r));const c=i?i.call(n,r):void 0,u=n.delete(r);return l&&fs(n,"delete",r,void 0,c),u},clear(){const r=$t(this),n=r.size!==0,a={}.NODE_ENV!=="production"?ro(r)?new Map(r):new Set(r):void 0,i=r.clear();return n&&fs(r,"clear",void 0,void 0,a),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Xh(r,s,t)}),e}function Br(s,t){const e=Gh(s,t);return(o,r,n)=>r==="__v_isReactive"?!s:r==="__v_isReadonly"?s:r==="__v_raw"?o:Reflect.get(Gt(e,r)&&r in o?e:o,r,n)}const Uh={get:Br(!1,!1)},jh={get:Br(!1,!0)},Hh={get:Br(!0,!1)},Wh={get:Br(!0,!0)};function Xl(s,t,e){const o=$t(e);if(o!==e&&t.call(s,o)){const r=ca(s);ds(`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 Gl=new WeakMap,Ul=new WeakMap,jl=new WeakMap,Hl=new WeakMap;function Zh(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qh(s){return s.__v_skip||!Object.isExtensible(s)?0:Zh(ca(s))}function Kt(s){return $s(s)?s:Yr(s,!1,zh,Uh,Gl)}function Qh(s){return Yr(s,!1,Bh,jh,Ul)}function Wl(s){return Yr(s,!0,Vh,Hh,jl)}function hs(s){return Yr(s,!0,Yh,Wh,Hl)}function Yr(s,t,e,o,r){if(!Qt(s))return{}.NODE_ENV!=="production"&&ds(`value cannot be made ${t?"readonly":"reactive"}: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const n=r.get(s);if(n)return n;const a=qh(s);if(a===0)return s;const i=new Proxy(s,a===2?o:e);return r.set(s,i),i}function io(s){return $s(s)?io(s.__v_raw):!!(s&&s.__v_isReactive)}function $s(s){return!!(s&&s.__v_isReadonly)}function $e(s){return!!(s&&s.__v_isShallow)}function Xr(s){return s?!!s.__v_raw:!1}function $t(s){const t=s&&s.__v_raw;return t?$t(t):s}function Kh(s){return!Gt(s,"__v_skip")&&Object.isExtensible(s)&&Nr(s,"__v_skip",!0),s}const Ie=s=>Qt(s)?Kt(s):s,ka=s=>Qt(s)?Wl(s):s;function he(s){return s?s.__v_isRef===!0:!1}function I(s){return Jh(s,!1)}function Jh(s,t){return he(s)?s:new tp(s,t)}class tp{constructor(t,e){this.dep=new ya,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=e?t:$t(t),this._value=e?t:Ie(t),this.__v_isShallow=e}get value(){return{}.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const e=this._rawValue,o=this.__v_isShallow||$e(t)||$s(t);t=o?t:$t(t),Us(t,e)&&(this._rawValue=t,this._value=o?t:Ie(t),{}.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:e}):this.dep.trigger())}}function Ct(s){return he(s)?s.value:s}const ep={get:(s,t,e)=>t==="__v_raw"?s:Ct(Reflect.get(s,t,e)),set:(s,t,e,o)=>{const r=s[t];return he(r)&&!he(e)?(r.value=e,!0):Reflect.set(s,t,e,o)}};function Zl(s){return io(s)?s:new Proxy(s,ep)}class sp{constructor(t,e,o){this.fn=t,this.setter=e,this._value=void 0,this.dep=new ya(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ko-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!e,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Zt!==this)return Il(this,!0),!0}get value(){const t={}.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return $l(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):{}.NODE_ENV!=="production"&&ds("Write operation failed: computed value is readonly")}}function op(s,t,e=!1){let o,r;Ot(s)?o=s:(o=s.get,r=s.set);const n=new sp(o,r,e);return{}.NODE_ENV!=="production"&&t&&!e&&(n.onTrack=t.onTrack,n.onTrigger=t.onTrigger),n}const Gr={},Ur=new WeakMap;let lo;function rp(s,t=!1,e=lo){if(e){let o=Ur.get(e);o||Ur.set(e,o=[]),o.push(s)}else({}).NODE_ENV!=="production"&&!t&&ds("onWatcherCleanup() was called when there was no active watcher to associate with.")}function np(s,t,e=Wt){const{immediate:o,deep:r,once:n,scheduler:a,augmentJob:i,call:l}=e,c=_=>{(e.onWarn||ds)("Invalid watch source: ",_,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=_=>r?_:$e(_)||r===!1||r===0?Ls(_,1):Ls(_);let d,h,p,f,b=!1,w=!1;if(he(s)?(h=()=>s.value,b=$e(s)):io(s)?(h=()=>u(s),b=!0):Tt(s)?(w=!0,b=s.some(_=>io(_)||$e(_)),h=()=>s.map(_=>{if(he(_))return _.value;if(io(_))return u(_);if(Ot(_))return l?l(_,2):_();({}).NODE_ENV!=="production"&&c(_)})):Ot(s)?t?h=l?()=>l(s,2):s:h=()=>{if(p){Is();try{p()}finally{Fs()}}const _=lo;lo=d;try{return l?l(s,3,[f]):s(f)}finally{lo=_}}:(h=ve,{}.NODE_ENV!=="production"&&c(s)),t&&r){const _=h,k=r===!0?1/0:r;h=()=>Ls(_(),k)}const x=Fh(),v=()=>{d.stop(),x&&x.active&&ia(x.effects,d)};if(n&&t){const _=t;t=(...k)=>{_(...k),v()}}let g=w?new Array(s.length).fill(Gr):Gr;const m=_=>{if(!(!(d.flags&1)||!d.dirty&&!_))if(t){const k=d.run();if(r||b||(w?k.some((Z,ot)=>Us(Z,g[ot])):Us(k,g))){p&&p();const Z=lo;lo=d;try{const ot=[k,g===Gr?void 0:w&&g[0]===Gr?[]:g,f];l?l(t,3,ot):t(...ot),g=k}finally{lo=Z}}}else d.run()};return i&&i(m),d=new Ol(h),d.scheduler=a?()=>a(m,!1):m,f=_=>rp(_,!1,d),p=d.onStop=()=>{const _=Ur.get(d);if(_){if(l)l(_,4);else for(const k of _)k();Ur.delete(d)}},{}.NODE_ENV!=="production"&&(d.onTrack=e.onTrack,d.onTrigger=e.onTrigger),t?o?m(!0):g=d.run():a?a(m.bind(null,!0),!0):d.run(),v.pause=d.pause.bind(d),v.resume=d.resume.bind(d),v.stop=v,v}function Ls(s,t=1/0,e){if(t<=0||!Qt(s)||s.__v_skip||(e=e||new Set,e.has(s)))return s;if(e.add(s),t--,he(s))Ls(s.value,t,e);else if(Tt(s))for(let o=0;o<s.length;o++)Ls(s[o],t,e);else if(wl(s)||ro(s))s.forEach(o=>{Ls(o,t,e)});else if($r(s)){for(const o in s)Ls(s[o],t,e);for(const o of Object.getOwnPropertySymbols(s))Object.prototype.propertyIsEnumerable.call(s,o)&&Ls(s[o],t,e)}return s}/**
|
|
10
10
|
* @vue/runtime-core v3.5.13
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
14
|
-
`),r]);else{const n=[`[Vue warn]: ${
|
|
15
|
-
`,...
|
|
16
|
-
`],...Jh(e))}),t}function Jh({vnode:o,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",s=o.component?o.component.parent==null:!1,r=` at <${cn(o.component,o.type,s)}`,n=">"+e;return o.props?[r,...tp(o.props),n]:[r+n]}function tp(o){const t=[],e=Object.keys(o);return e.slice(0,3).forEach(s=>{t.push(...jl(s,o[s]))}),e.length>3&&t.push(" ..."),t}function jl(o,t,e){return ce(t)?(t=JSON.stringify(t),e?t:[`${o}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${o}=${t}`]:de(t)?(t=jl(o,Lt(t.value),!0),e?t:[`${o}=Ref<`,t,">"]):Ot(t)?[`${o}=fn${t.name?`<${t.name}>`:""}`]:(t=Lt(t),e?t:[`${o}=`,t])}const _a={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Eo(o,t,e,s){try{return s?o(...s):o()}catch(r){Jo(r,t,e)}}function ds(o,t,e,s){if(Ot(o)){const r=Eo(o,t,e,s);return r&&oa(r)&&r.catch(n=>{Jo(n,t,e)}),r}if(Tt(o)){const r=[];for(let n=0;n<o.length;n++)r.push(ds(o[n],t,e,s));return r}else({}).NODE_ENV!=="production"&&ut(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof o}`)}function Jo(o,t,e,s=!0){const r=t?t.vnode:null,{errorHandler:n,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ht;if(t){let i=t.parent;const l=t.proxy,c={}.NODE_ENV!=="production"?_a[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](o,l,c)===!1)return}i=i.parent}if(n){Ps(),Eo(n,null,10,[o,l,c]),Os();return}}ep(o,e,r,s,a)}function ep(o,t,e,s=!0,r=!1){if({}.NODE_ENV!=="production"){const n=_a[t];if(e&&Gr(e),ut(`Unhandled error${n?` during execution of ${n}`:""}`),e&&Ur(),s)throw o;console.error(o)}else{if(r)throw o;console.error(o)}}const $e=[];let hs=-1;const Po=[];let Gs=null,Oo=0;const Hl=Promise.resolve();let jr=null;const sp=100;function Wl(o){const t=jr||Hl;return o?t.then(this?o.bind(this):o):t}function op(o){let t=hs+1,e=$e.length;for(;t<e;){const s=t+e>>>1,r=$e[s],n=tr(r);n<o||n===o&&r.flags&2?t=s+1:e=s}return t}function Hr(o){if(!(o.flags&1)){const t=tr(o),e=$e[$e.length-1];!e||!(o.flags&2)&&t>=tr(e)?$e.push(o):$e.splice(op(t),0,o),o.flags|=1,Zl()}}function Zl(){jr||(jr=Hl.then(Jl))}function ql(o){Tt(o)?Po.push(...o):Gs&&o.id===-1?Gs.splice(Oo+1,0,o):o.flags&1||(Po.push(o),o.flags|=1),Zl()}function Ql(o,t,e=hs+1){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<$e.length;e++){const s=$e[e];if(s&&s.flags&2){if(o&&s.id!==o.uid||{}.NODE_ENV!=="production"&&xa(t,s))continue;$e.splice(e,1),e--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Kl(o){if(Po.length){const t=[...new Set(Po)].sort((e,s)=>tr(e)-tr(s));if(Po.length=0,Gs){Gs.push(...t);return}for(Gs=t,{}.NODE_ENV!=="production"&&(o=o||new Map),Oo=0;Oo<Gs.length;Oo++){const e=Gs[Oo];({}).NODE_ENV!=="production"&&xa(o,e)||(e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2)}Gs=null,Oo=0}}const tr=o=>o.id==null?o.flags&2?-1:1/0:o.id;function Jl(o){({}).NODE_ENV!=="production"&&(o=o||new Map);const t={}.NODE_ENV!=="production"?e=>xa(o,e):ye;try{for(hs=0;hs<$e.length;hs++){const e=$e[hs];if(e&&!(e.flags&8)){if({}.NODE_ENV!=="production"&&t(e))continue;e.flags&4&&(e.flags&=-2),Eo(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2)}}}finally{for(;hs<$e.length;hs++){const e=$e[hs];e&&(e.flags&=-2)}hs=-1,$e.length=0,Kl(o),jr=null,($e.length||Po.length)&&Jl(o)}}function xa(o,t){const e=o.get(t)||0;if(e>sp){const s=t.i,r=s&&Qc(s.type);return Jo(`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}return o.set(t,e+1),!1}let ps=!1;const Wr=new Map;({}).NODE_ENV!=="production"&&(Ho().__VUE_HMR_RUNTIME__={createRecord:wa(tc),rerender:wa(ap),reload:wa(ip)});const lo=new Map;function rp(o){const t=o.type.__hmrId;let e=lo.get(t);e||(tc(t,o.type),e=lo.get(t)),e.instances.add(o)}function np(o){lo.get(o.type.__hmrId).instances.delete(o)}function tc(o,t){return lo.has(o)?!1:(lo.set(o,{initialDef:Zr(t),instances:new Set}),!0)}function Zr(o){return Kc(o)?o.__vccOpts:o}function ap(o,t){const e=lo.get(o);e&&(e.initialDef.render=t,[...e.instances].forEach(s=>{t&&(s.render=t,Zr(s.type).render=t),s.renderCache=[],ps=!0,s.update(),ps=!1}))}function ip(o,t){const e=lo.get(o);if(!e)return;t=Zr(t),ec(e.initialDef,t);const s=[...e.instances];for(let r=0;r<s.length;r++){const n=s[r],a=Zr(n.type);let i=Wr.get(a);i||(a!==e.initialDef&&ec(a,t),Wr.set(a,i=new Set)),i.add(n),n.appContext.propsCache.delete(n.type),n.appContext.emitsCache.delete(n.type),n.appContext.optionsCache.delete(n.type),n.ceReload?(i.add(n),n.ceReload(t.styles),i.delete(n)):n.parent?Hr(()=>{ps=!0,n.parent.update(),ps=!1,i.delete(n)}):n.appContext.reload?n.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),n.root.ce&&n!==n.root&&n.root.ce._removeChildStyle(a)}ql(()=>{Wr.clear()})}function ec(o,t){ae(o,t);for(const e in o)e!=="__file"&&!(e in t)&&delete o[e]}function wa(o){return(t,e)=>{try{return o(t,e)}catch(s){console.error(s),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ms,er=[],ka=!1;function sr(o,...t){ms?ms.emit(o,...t):ka||er.push({event:o,args:t})}function sc(o,t){var e,s;ms=o,ms?(ms.enabled=!0,er.forEach(({event:r,args:n})=>ms.emit(r,...n)),er=[]):typeof window<"u"&&window.HTMLElement&&!((s=(e=window.navigator)==null?void 0:e.userAgent)!=null&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{sc(n,t)}),setTimeout(()=>{ms||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ka=!0,er=[])},3e3)):(ka=!0,er=[])}function lp(o,t){sr("app:init",o,t,{Fragment:Vt,Text:nr,Comment:Ye,Static:ar})}function cp(o){sr("app:unmount",o)}const up=Ca("component:added"),oc=Ca("component:updated"),fp=Ca("component:removed"),dp=o=>{ms&&typeof ms.cleanupBuffer=="function"&&!ms.cleanupBuffer(o)&&fp(o)};/*! #__NO_SIDE_EFFECTS__ */function Ca(o){return t=>{sr(o,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const hp=rc("perf:start"),pp=rc("perf:end");function rc(o){return(t,e,s)=>{sr(o,t.appContext.app,t.uid,t,e,s)}}function mp(o,t,e){sr("component:emit",o.appContext.app,o,t,e)}let be=null,nc=null;function qr(o){const t=be;return be=o,nc=o&&o.type.__scopeId||null,t}function bt(o,t=be,e){if(!t||o._n)return o;const s=(...r)=>{s._d&&Ac(-1);const n=qr(t);let a;try{a=o(...r)}finally{qr(n),s._d&&Ac(1)}return{}.NODE_ENV!=="production"&&oc(t),a};return s._n=!0,s._c=!0,s._d=!0,s}function ac(o){ih(o)&&ut("Do not use built-in directive ids as custom directive id: "+o)}function co(o,t){if(be===null)return{}.NODE_ENV!=="production"&&ut("withDirectives can only be used inside render functions."),o;const e=ln(be),s=o.dirs||(o.dirs=[]);for(let r=0;r<t.length;r++){let[n,a,i,l=Ht]=t[r];n&&(Ot(n)&&(n={mounted:n,updated:n}),n.deep&&Fs(a),s.push({dir:n,instance:e,value:a,oldValue:void 0,arg:i,modifiers:l}))}return o}function uo(o,t,e,s){const r=o.dirs,n=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];n&&(i.oldValue=n[a].value);let l=i.dir[s];l&&(Ps(),ds(l,e,8,[o.el,i,o,t]),Os())}}const gp=Symbol("_vte"),yp=o=>o.__isTeleport;function Ta(o,t){o.shapeFlag&6&&o.component?(o.transition=t,Ta(o.component.subTree,t)):o.shapeFlag&128?(o.ssContent.transition=t.clone(o.ssContent),o.ssFallback.transition=t.clone(o.ssFallback)):o.transition=t}/*! #__NO_SIDE_EFFECTS__ */function q(o,t){return Ot(o)?(()=>ae({name:o.name},t,{setup:o}))():o}function ic(o){o.ids=[o.ids[0]+o.ids[2]+++"-",0,0]}const vp=new WeakSet;function Qr(o,t,e,s,r=!1){if(Tt(o)){o.forEach((h,w)=>Qr(h,t&&(Tt(t)?t[w]:t),e,s,r));return}if(Ro(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Qr(o,t,e,s.component.subTree);return}const n=s.shapeFlag&4?ln(s.component):s.el,a=r?null:n,{i,r:l}=o;if({}.NODE_ENV!=="production"&&!i){ut("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=i.refs===Ht?i.refs={}:i.refs,f=i.setupState,d=Lt(f),p=f===Ht?()=>!1:h=>({}).NODE_ENV!=="production"&&(Gt(d,h)&&!de(d[h])&&ut(`Template ref "${h}" used on a non-ref value. It will not work in the production build.`),vp.has(d[h]))?!1:Gt(d,h);if(c!=null&&c!==l&&(ce(c)?(u[c]=null,p(c)&&(f[c]=null)):de(c)&&(c.value=null)),Ot(l))Eo(l,i,12,[a,u]);else{const h=ce(l),w=de(l);if(h||w){const _=()=>{if(o.f){const x=h?p(l)?f[l]:u[l]:l.value;r?Tt(x)&&sa(x,n):Tt(x)?x.includes(n)||x.push(n):h?(u[l]=[n],p(l)&&(f[l]=u[l])):(l.value=[n],o.k&&(u[o.k]=l.value))}else h?(u[l]=a,p(l)&&(f[l]=a)):w?(l.value=a,o.k&&(u[o.k]=a)):{}.NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)};a?(_.id=-1,Ze(_,e)):_()}else({}).NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)}}Ho().requestIdleCallback,Ho().cancelIdleCallback;const Ro=o=>!!o.type.__asyncLoader,Sa=o=>o.type.__isKeepAlive;function bp(o,t){lc(o,"a",t)}function _p(o,t){lc(o,"da",t)}function lc(o,t,e=ke){const s=o.__wdc||(o.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return o()});if(Kr(t,s,e),e){let r=e.parent;for(;r&&r.parent;)Sa(r.parent.vnode)&&xp(s,t,e,r),r=r.parent}}function xp(o,t,e,s){const r=Kr(t,o,s,!0);se(()=>{sa(s[t],r)},e)}function Kr(o,t,e=ke,s=!1){if(e){const r=e[o]||(e[o]=[]),n=t.__weh||(t.__weh=(...a)=>{Ps();const i=ur(e),l=ds(t,e,o,a);return i(),Os(),l});return s?r.unshift(n):r.push(n),n}else if({}.NODE_ENV!=="production"){const r=oo(_a[o].replace(/ hook$/,""));ut(`${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 Ds=o=>(t,e=ke)=>{(!fr||o==="sp")&&Kr(o,(...s)=>t(...s),e)},wp=Ds("bm"),gs=Ds("m"),kp=Ds("bu"),Cp=Ds("u"),Tp=Ds("bum"),se=Ds("um"),Sp=Ds("sp"),Ep=Ds("rtg"),Pp=Ds("rtc");function Op(o,t=ke){Kr("ec",o,t)}const Rp=Symbol.for("v-ndc");function _e(o,t,e,s){let r;const n=e&&e[s],a=Tt(o);if(a||ce(o)){const i=a&&no(o);let l=!1;i&&(l=!De(o),o=Nr(o)),r=new Array(o.length);for(let c=0,u=o.length;c<u;c++)r[c]=t(l?Re(o[c]):o[c],c,void 0,n&&n[c])}else if(typeof o=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(o)&&ut(`The v-for range expect an integer value but got ${o}.`),r=new Array(o);for(let i=0;i<o;i++)r[i]=t(i+1,i,void 0,n&&n[i])}else if(qt(o))if(o[Symbol.iterator])r=Array.from(o,(i,l)=>t(i,l,void 0,n&&n[l]));else{const i=Object.keys(o);r=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];r[l]=t(o[u],u,l,n&&n[l])}}else r=[];return e&&(e[s]=r),r}function kt(o,t,e={},s,r){if(be.ce||be.parent&&Ro(be.parent)&&be.parent.ce)return t!=="default"&&(e.name=t),L(),Nt(Vt,null,[ct("slot",e,s&&s())],64);let n=o[t];({}).NODE_ENV!=="production"&&n&&n.length>1&&(ut("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."),n=()=>[]),n&&n._c&&(n._d=!1),L();const a=n&&cc(n(e)),i=e.key||a&&a.key,l=Nt(Vt,{key:(i&&!Es(i)?i:`_${t}`)+(!a&&s?"_fb":"")},a||(s?s():[]),a&&o._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),n&&n._c&&(n._d=!0),l}function cc(o){return o.some(t=>po(t)?!(t.type===Ye||t.type===Vt&&!cc(t.children)):!0)?o:null}const Ea=o=>o?jc(o)?ln(o):Ea(o.parent):null,fo=ae(Object.create(null),{$:o=>o,$el:o=>o.vnode.el,$data:o=>o.data,$props:o=>({}).NODE_ENV!=="production"?fs(o.props):o.props,$attrs:o=>({}).NODE_ENV!=="production"?fs(o.attrs):o.attrs,$slots:o=>({}).NODE_ENV!=="production"?fs(o.slots):o.slots,$refs:o=>({}).NODE_ENV!=="production"?fs(o.refs):o.refs,$parent:o=>Ea(o.parent),$root:o=>Ea(o.root),$host:o=>o.ce,$emit:o=>o.emit,$options:o=>Ia(o),$forceUpdate:o=>o.f||(o.f=()=>{Hr(o.update)}),$nextTick:o=>o.n||(o.n=Wl.bind(o.proxy)),$watch:o=>fm.bind(o)}),Pa=o=>o==="_"||o==="$",Oa=(o,t)=>o!==Ht&&!o.__isScriptSetup&&Gt(o,t),uc={get({_:o},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:s,data:r,props:n,accessCache:a,type:i,appContext:l}=o;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return e[t];case 3:return n[t]}else{if(Oa(s,t))return a[t]=1,s[t];if(r!==Ht&&Gt(r,t))return a[t]=2,r[t];if((c=o.propsOptions[0])&&Gt(c,t))return a[t]=3,n[t];if(e!==Ht&&Gt(e,t))return a[t]=4,e[t];Ra&&(a[t]=0)}}const u=fo[t];let f,d;if(u)return t==="$attrs"?(ve(o.attrs,"get",""),{}.NODE_ENV!=="production"&&rn()):{}.NODE_ENV!=="production"&&t==="$slots"&&ve(o,"get",t),u(o);if((f=i.__cssModules)&&(f=f[t]))return f;if(e!==Ht&&Gt(e,t))return a[t]=4,e[t];if(d=l.config.globalProperties,Gt(d,t))return d[t];({}).NODE_ENV!=="production"&&be&&(!ce(t)||t.indexOf("__v")!==0)&&(r!==Ht&&Pa(t[0])&&Gt(r,t)?ut(`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.`):o===be&&ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:o},t,e){const{data:s,setupState:r,ctx:n}=o;return Oa(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&Gt(r,t)?(ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):s!==Ht&&Gt(s,t)?(s[t]=e,!0):Gt(o.props,t)?({}.NODE_ENV!=="production"&&ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in o?({}.NODE_ENV!=="production"&&ut(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in o.appContext.config.globalProperties?Object.defineProperty(n,t,{enumerable:!0,configurable:!0,value:e}):n[t]=e,!0)},has({_:{data:o,setupState:t,accessCache:e,ctx:s,appContext:r,propsOptions:n}},a){let i;return!!e[a]||o!==Ht&&Gt(o,a)||Oa(t,a)||(i=n[0])&&Gt(i,a)||Gt(s,a)||Gt(fo,a)||Gt(r.config.globalProperties,a)},defineProperty(o,t,e){return e.get!=null?o._.accessCache[t]=0:Gt(e,"value")&&this.set(o,t,e.value,null),Reflect.defineProperty(o,t,e)}};({}).NODE_ENV!=="production"&&(uc.ownKeys=o=>(ut("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(o)));function Ip(o){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>o}),Object.keys(fo).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>fo[e](o),set:ye})}),t}function Fp(o){const{ctx:t,propsOptions:[e]}=o;e&&Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.props[s],set:ye})})}function Dp(o){const{ctx:t,setupState:e}=o;Object.keys(Lt(e)).forEach(s=>{if(!e.__isScriptSetup){if(Pa(s[0])){ut(`setup() return property ${JSON.stringify(s)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>e[s],set:ye})}})}function $p(){return Lp().slots}function Lp(){const o=Gc();return{}.NODE_ENV!=="production"&&!o&&ut("useContext() called without active instance."),o.setupContext||(o.setupContext=qc(o))}function fc(o){return Tt(o)?o.reduce((t,e)=>(t[e]=null,t),{}):o}function Np(){const o=Object.create(null);return(t,e)=>{o[e]?ut(`${t} property "${e}" is already defined in ${o[e]}.`):o[e]=t}}let Ra=!0;function Mp(o){const t=Ia(o),e=o.proxy,s=o.ctx;Ra=!1,t.beforeCreate&&dc(t.beforeCreate,o,"bc");const{data:r,computed:n,methods:a,watch:i,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:w,deactivated:_,beforeDestroy:x,beforeUnmount:v,destroyed:g,unmounted:m,render:b,renderTracked:C,renderTriggered:U,errorCaptured:K,serverPrefetch:I,expose:$,inheritAttrs:N,components:D,directives:A,filters:X}=t,rt={}.NODE_ENV!=="production"?Np():null;if({}.NODE_ENV!=="production"){const[Z]=o.propsOptions;if(Z)for(const at in Z)rt("Props",at)}if(c&&Ap(c,s,rt),a)for(const Z in a){const at=a[Z];Ot(at)?({}.NODE_ENV!=="production"?Object.defineProperty(s,Z,{value:at.bind(e),configurable:!0,enumerable:!0,writable:!0}):s[Z]=at.bind(e),{}.NODE_ENV!=="production"&&rt("Methods",Z)):{}.NODE_ENV!=="production"&&ut(`Method "${Z}" has type "${typeof at}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Ot(r)&&ut("The data option must be a function. Plain object usage is no longer supported.");const Z=r.call(e,e);if({}.NODE_ENV!=="production"&&oa(Z)&&ut("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!qt(Z))({}).NODE_ENV!=="production"&&ut("data() should return an object.");else if(o.data=Qt(Z),{}.NODE_ENV!=="production")for(const at in Z)rt("Data",at),Pa(at[0])||Object.defineProperty(s,at,{configurable:!0,enumerable:!0,get:()=>Z[at],set:ye})}if(Ra=!0,n)for(const Z in n){const at=n[Z],G=Ot(at)?at.bind(e,e):Ot(at.get)?at.get.bind(e,e):ye;({}).NODE_ENV!=="production"&&G===ye&&ut(`Computed property "${Z}" has no getter.`);const H=!Ot(at)&&Ot(at.set)?at.set.bind(e):{}.NODE_ENV!=="production"?()=>{ut(`Write operation failed: computed property "${Z}" is readonly.`)}:ye,gt=Fm({get:G,set:H});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>gt.value,set:ht=>gt.value=ht}),{}.NODE_ENV!=="production"&&rt("Computed",Z)}if(i)for(const Z in i)hc(i[Z],s,e,Z);if(l){const Z=Ot(l)?l.call(e):l;Reflect.ownKeys(Z).forEach(at=>{Gp(at,Z[at])})}u&&dc(u,o,"c");function Q(Z,at){Tt(at)?at.forEach(G=>Z(G.bind(e))):at&&Z(at.bind(e))}if(Q(wp,f),Q(gs,d),Q(kp,p),Q(Cp,h),Q(bp,w),Q(_p,_),Q(Op,K),Q(Pp,C),Q(Ep,U),Q(Tp,v),Q(se,m),Q(Sp,I),Tt($))if($.length){const Z=o.exposed||(o.exposed={});$.forEach(at=>{Object.defineProperty(Z,at,{get:()=>e[at],set:G=>e[at]=G})})}else o.exposed||(o.exposed={});b&&o.render===ye&&(o.render=b),N!=null&&(o.inheritAttrs=N),D&&(o.components=D),A&&(o.directives=A),I&&ic(o)}function Ap(o,t,e=ye){Tt(o)&&(o=Fa(o));for(const s in o){const r=o[s];let n;qt(r)?"default"in r?n=tn(r.from||s,r.default,!0):n=tn(r.from||s):n=tn(r),de(n)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[s]=n,{}.NODE_ENV!=="production"&&e("Inject",s)}}function dc(o,t,e){ds(Tt(o)?o.map(s=>s.bind(t.proxy)):o.bind(t.proxy),t,e)}function hc(o,t,e,s){let r=s.includes(".")?Fc(e,s):()=>e[s];if(ce(o)){const n=t[o];Ot(n)?St(r,n):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${o}"`,n)}else if(Ot(o))St(r,o.bind(e));else if(qt(o))if(Tt(o))o.forEach(n=>hc(n,t,e,s));else{const n=Ot(o.handler)?o.handler.bind(e):t[o.handler];Ot(n)?St(r,n,o):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${o.handler}"`,n)}else({}).NODE_ENV!=="production"&&ut(`Invalid watch option: "${s}"`,o)}function Ia(o){const t=o.type,{mixins:e,extends:s}=t,{mixins:r,optionsCache:n,config:{optionMergeStrategies:a}}=o.appContext,i=n.get(t);let l;return i?l=i:!r.length&&!e&&!s?l=t:(l={},r.length&&r.forEach(c=>Jr(l,c,a,!0)),Jr(l,t,a)),qt(t)&&n.set(t,l),l}function Jr(o,t,e,s=!1){const{mixins:r,extends:n}=t;n&&Jr(o,n,e,!0),r&&r.forEach(a=>Jr(o,a,e,!0));for(const a in t)if(s&&a==="expose")({}).NODE_ENV!=="production"&&ut('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const i=zp[a]||e&&e[a];o[a]=i?i(o[a],t[a]):t[a]}return o}const zp={data:pc,props:mc,emits:mc,methods:or,computed:or,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:or,directives:or,watch:Bp,provide:pc,inject:Vp};function pc(o,t){return t?o?function(){return ae(Ot(o)?o.call(this,this):o,Ot(t)?t.call(this,this):t)}:t:o}function Vp(o,t){return or(Fa(o),Fa(t))}function Fa(o){if(Tt(o)){const t={};for(let e=0;e<o.length;e++)t[o[e]]=o[e];return t}return o}function Le(o,t){return o?[...new Set([].concat(o,t))]:t}function or(o,t){return o?ae(Object.create(null),o,t):t}function mc(o,t){return o?Tt(o)&&Tt(t)?[...new Set([...o,...t])]:ae(Object.create(null),fc(o),fc(t??{})):t}function Bp(o,t){if(!o)return t;if(!t)return o;const e=ae(Object.create(null),o);for(const s in t)e[s]=Le(o[s],t[s]);return e}function gc(){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 Yp=0;function Xp(o,t){return function(s,r=null){Ot(s)||(s=ae({},s)),r!=null&&!qt(r)&&({}.NODE_ENV!=="production"&&ut("root props passed to app.mount() must be an object."),r=null);const n=gc(),a=new WeakSet,i=[];let l=!1;const c=n.app={_uid:Yp++,_component:s,_props:r,_container:null,_context:n,_instance:null,version:Jc,get config(){return n.config},set config(u){({}).NODE_ENV!=="production"&&ut("app.config cannot be replaced. Modify individual options instead.")},use(u,...f){return a.has(u)?{}.NODE_ENV!=="production"&&ut("Plugin has already been applied to target app."):u&&Ot(u.install)?(a.add(u),u.install(c,...f)):Ot(u)?(a.add(u),u(c,...f)):{}.NODE_ENV!=="production"&&ut('A plugin must either be a function or an object with an "install" function.'),c},mixin(u){return n.mixins.includes(u)?{}.NODE_ENV!=="production"&&ut("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):n.mixins.push(u),c},component(u,f){return{}.NODE_ENV!=="production"&&Ga(u,n.config),f?({}.NODE_ENV!=="production"&&n.components[u]&&ut(`Component "${u}" has already been registered in target app.`),n.components[u]=f,c):n.components[u]},directive(u,f){return{}.NODE_ENV!=="production"&&ac(u),f?({}.NODE_ENV!=="production"&&n.directives[u]&&ut(`Directive "${u}" has already been registered in target app.`),n.directives[u]=f,c):n.directives[u]},mount(u,f,d){if(l)({}).NODE_ENV!=="production"&&ut("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"&&u.__vue_app__&&ut("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=c._ceVNode||ct(s,r);return p.appContext=n,d===!0?d="svg":d===!1&&(d=void 0),{}.NODE_ENV!=="production"&&(n.reload=()=>{o(js(p),u,d)}),f&&t?t(p,u):o(p,u,d),l=!0,c._container=u,u.__vue_app__=c,{}.NODE_ENV!=="production"&&(c._instance=p.component,lp(c,Jc)),ln(p.component)}},onUnmount(u){({}).NODE_ENV!=="production"&&typeof u!="function"&&ut(`Expected function as first argument to app.onUnmount(), but got ${typeof u}`),i.push(u)},unmount(){l?(ds(i,c._instance,16),o(null,c._container),{}.NODE_ENV!=="production"&&(c._instance=null,cp(c)),delete c._container.__vue_app__):{}.NODE_ENV!=="production"&&ut("Cannot unmount an app that is not mounted.")},provide(u,f){return{}.NODE_ENV!=="production"&&u in n.provides&&ut(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`),n.provides[u]=f,c},runWithContext(u){const f=Io;Io=c;try{return u()}finally{Io=f}}};return c}}let Io=null;function Gp(o,t){if(!ke)({}).NODE_ENV!=="production"&&ut("provide() can only be used inside setup().");else{let e=ke.provides;const s=ke.parent&&ke.parent.provides;s===e&&(e=ke.provides=Object.create(s)),e[o]=t}}function tn(o,t,e=!1){const s=ke||be;if(s||Io){const r=Io?Io._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&o in r)return r[o];if(arguments.length>1)return e&&Ot(t)?t.call(s&&s.proxy):t;({}).NODE_ENV!=="production"&&ut(`injection "${String(o)}" not found.`)}else({}).NODE_ENV!=="production"&&ut("inject() can only be used inside setup() or functional components.")}const yc={},vc=()=>Object.create(yc),bc=o=>Object.getPrototypeOf(o)===yc;function Up(o,t,e,s=!1){const r={},n=vc();o.propsDefaults=Object.create(null),_c(o,t,r,n);for(const a in o.propsOptions[0])a in r||(r[a]=void 0);({}).NODE_ENV!=="production"&&kc(t||{},r,o),e?o.props=s?r:Yh(r):o.type.props?o.props=r:o.props=n,o.attrs=n}function jp(o){for(;o;){if(o.type.__hmrId)return!0;o=o.parent}}function Hp(o,t,e,s){const{props:r,attrs:n,vnode:{patchFlag:a}}=o,i=Lt(r),[l]=o.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&jp(o))&&(s||a>0)&&!(a&16)){if(a&8){const u=o.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(on(o.emitsOptions,d))continue;const p=t[d];if(l)if(Gt(n,d))p!==n[d]&&(n[d]=p,c=!0);else{const h=Be(d);r[h]=Da(l,i,h,p,o,!1)}else p!==n[d]&&(n[d]=p,c=!0)}}}else{_c(o,t,r,n)&&(c=!0);let u;for(const f in i)(!t||!Gt(t,f)&&((u=He(f))===f||!Gt(t,u)))&&(l?e&&(e[f]!==void 0||e[u]!==void 0)&&(r[f]=Da(l,i,f,void 0,o,!0)):delete r[f]);if(n!==i)for(const f in n)(!t||!Gt(t,f))&&(delete n[f],c=!0)}c&&us(o.attrs,"set",""),{}.NODE_ENV!=="production"&&kc(t||{},r,o)}function _c(o,t,e,s){const[r,n]=o.propsOptions;let a=!1,i;if(t)for(let l in t){if(Uo(l))continue;const c=t[l];let u;r&&Gt(r,u=Be(l))?!n||!n.includes(u)?e[u]=c:(i||(i={}))[u]=c:on(o.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,a=!0)}if(n){const l=Lt(e),c=i||Ht;for(let u=0;u<n.length;u++){const f=n[u];e[f]=Da(r,l,f,c[f],o,!Gt(c,f))}}return a}function Da(o,t,e,s,r,n){const a=o[e];if(a!=null){const i=Gt(a,"default");if(i&&s===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ot(l)){const{propsDefaults:c}=r;if(e in c)s=c[e];else{const u=ur(r);s=c[e]=l.call(null,t),u()}}else s=l;r.ce&&r.ce._setProp(e,s)}a[0]&&(n&&!i?s=!1:a[1]&&(s===""||s===He(e))&&(s=!0))}return s}const Wp=new WeakMap;function xc(o,t,e=!1){const s=e?Wp:t.propsCache,r=s.get(o);if(r)return r;const n=o.props,a={},i=[];let l=!1;if(!Ot(o)){const u=f=>{l=!0;const[d,p]=xc(f,t,!0);ae(a,d),p&&i.push(...p)};!e&&t.mixins.length&&t.mixins.forEach(u),o.extends&&u(o.extends),o.mixins&&o.mixins.forEach(u)}if(!n&&!l)return qt(o)&&s.set(o,To),To;if(Tt(n))for(let u=0;u<n.length;u++){({}).NODE_ENV!=="production"&&!ce(n[u])&&ut("props must be strings when using array syntax.",n[u]);const f=Be(n[u]);wc(f)&&(a[f]=Ht)}else if(n){({}).NODE_ENV!=="production"&&!qt(n)&&ut("invalid props options",n);for(const u in n){const f=Be(u);if(wc(f)){const d=n[u],p=a[f]=Tt(d)||Ot(d)?{type:d}:ae({},d),h=p.type;let w=!1,_=!0;if(Tt(h))for(let x=0;x<h.length;++x){const v=h[x],g=Ot(v)&&v.name;if(g==="Boolean"){w=!0;break}else g==="String"&&(_=!1)}else w=Ot(h)&&h.name==="Boolean";p[0]=w,p[1]=_,(w||Gt(p,"default"))&&i.push(f)}}}const c=[a,i];return qt(o)&&s.set(o,c),c}function wc(o){return o[0]!=="$"&&!Uo(o)?!0:({}.NODE_ENV!=="production"&&ut(`Invalid prop name: "${o}" is a reserved property.`),!1)}function Zp(o){return o===null?"null":typeof o=="function"?o.name||"":typeof o=="object"&&o.constructor&&o.constructor.name||""}function kc(o,t,e){const s=Lt(t),r=e.propsOptions[0],n=Object.keys(o).map(a=>Be(a));for(const a in r){let i=r[a];i!=null&&qp(a,s[a],i,{}.NODE_ENV!=="production"?fs(s):s,!n.includes(a))}}function qp(o,t,e,s,r){const{type:n,required:a,validator:i,skipCheck:l}=e;if(a&&r){ut('Missing required prop: "'+o+'"');return}if(!(t==null&&!a)){if(n!=null&&n!==!0&&!l){let c=!1;const u=Tt(n)?n:[n],f=[];for(let d=0;d<u.length&&!c;d++){const{valid:p,expectedType:h}=Kp(t,u[d]);f.push(h||""),c=p}if(!c){ut(Jp(o,t,f));return}}i&&!i(t,s)&&ut('Invalid prop: custom validator check failed for prop "'+o+'".')}}const Qp=Ss("String,Number,Boolean,Function,Symbol,BigInt");function Kp(o,t){let e;const s=Zp(t);if(s==="null")e=o===null;else if(Qp(s)){const r=typeof o;e=r===s.toLowerCase(),!e&&r==="object"&&(e=o instanceof t)}else s==="Object"?e=qt(o):s==="Array"?e=Tt(o):e=o instanceof t;return{valid:e,expectedType:s}}function Jp(o,t,e){if(e.length===0)return`Prop type [] for prop "${o}" won't match anything. Did you mean to use type Array instead?`;let s=`Invalid prop: type check failed for prop "${o}". Expected ${e.map($r).join(" | ")}`;const r=e[0],n=ra(t),a=Cc(t,r),i=Cc(t,n);return e.length===1&&Tc(r)&&!tm(r,n)&&(s+=` with value ${a}`),s+=`, got ${n} `,Tc(n)&&(s+=`with value ${i}.`),s}function Cc(o,t){return t==="String"?`"${o}"`:t==="Number"?`${Number(o)}`:`${o}`}function Tc(o){return["string","number","boolean"].some(e=>o.toLowerCase()===e)}function tm(...o){return o.some(t=>t.toLowerCase()==="boolean")}const Sc=o=>o[0]==="_"||o==="$stable",$a=o=>Tt(o)?o.map(as):[as(o)],em=(o,t,e)=>{if(t._n)return t;const s=bt((...r)=>({}.NODE_ENV!=="production"&&ke&&(!e||e.root===ke.root)&&ut(`Slot "${o}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),$a(t(...r))),e);return s._c=!1,s},Ec=(o,t,e)=>{const s=o._ctx;for(const r in o){if(Sc(r))continue;const n=o[r];if(Ot(n))t[r]=em(r,n,s);else if(n!=null){({}).NODE_ENV!=="production"&&ut(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const a=$a(n);t[r]=()=>a}}},Pc=(o,t)=>{({}).NODE_ENV!=="production"&&!Sa(o.vnode)&&ut("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=$a(t);o.slots.default=()=>e},La=(o,t,e)=>{for(const s in t)(e||s!=="_")&&(o[s]=t[s])},sm=(o,t,e)=>{const s=o.slots=vc();if(o.vnode.shapeFlag&32){const r=t._;r?(La(s,t,e),e&&Lr(s,"_",r,!0)):Ec(t,s)}else t&&Pc(o,t)},om=(o,t,e)=>{const{vnode:s,slots:r}=o;let n=!0,a=Ht;if(s.shapeFlag&32){const i=t._;i?{}.NODE_ENV!=="production"&&ps?(La(r,t,e),us(o,"set","$slots")):e&&i===1?n=!1:La(r,t,e):(n=!t.$stable,Ec(t,r)),a=t}else t&&(Pc(o,t),a={default:1});if(n)for(const i in r)!Sc(i)&&a[i]==null&&delete r[i]};let rr,Us;function $s(o,t){o.appContext.config.performance&&en()&&Us.mark(`vue-${t}-${o.uid}`),{}.NODE_ENV!=="production"&&hp(o,t,en()?Us.now():Date.now())}function Ls(o,t){if(o.appContext.config.performance&&en()){const e=`vue-${t}-${o.uid}`,s=e+":end";Us.mark(s),Us.measure(`<${cn(o,o.type)}> ${t}`,e,s),Us.clearMarks(e),Us.clearMarks(s)}({}).NODE_ENV!=="production"&&pp(o,t,en()?Us.now():Date.now())}function en(){return rr!==void 0||(typeof window<"u"&&window.performance?(rr=!0,Us=window.performance):rr=!1),rr}function rm(){const o=[];if({}.NODE_ENV!=="production"&&o.length){const t=o.length>1;console.warn(`Feature flag${t?"s":""} ${o.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.
|
|
13
|
+
**/const co=[];function jr(s){co.push(s)}function Hr(){co.pop()}let Ca=!1;function ut(s,...t){if(Ca)return;Ca=!0,Is();const e=co.length?co[co.length-1].component:null,o=e&&e.appContext.config.warnHandler,r=ap();if(o)Oo(o,e,11,[s+t.map(n=>{var a,i;return(i=(a=n.toString)==null?void 0:a.call(n))!=null?i:JSON.stringify(n)}).join(""),e&&e.proxy,r.map(({vnode:n})=>`at <${dn(e,n.type)}>`).join(`
|
|
14
|
+
`),r]);else{const n=[`[Vue warn]: ${s}`,...t];r.length&&n.push(`
|
|
15
|
+
`,...ip(r)),console.warn(...n)}Fs(),Ca=!1}function ap(){let s=co[co.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 o=s.component&&s.component.parent;s=o&&o.vnode}return t}function ip(s){const t=[];return s.forEach((e,o)=>{t.push(...o===0?[]:[`
|
|
16
|
+
`],...lp(e))}),t}function lp({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",o=s.component?s.component.parent==null:!1,r=` at <${dn(s.component,s.type,o)}`,n=">"+e;return s.props?[r,...cp(s.props),n]:[r+n]}function cp(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(o=>{t.push(...ql(o,s[o]))}),e.length>3&&t.push(" ..."),t}function ql(s,t,e){return ue(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:he(t)?(t=ql(s,$t(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Ot(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=$t(t),e?t:[`${s}=`,t])}const Ta={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Oo(s,t,e,o){try{return o?s(...o):s()}catch(r){er(r,t,e)}}function ps(s,t,e,o){if(Ot(s)){const r=Oo(s,t,e,o);return r&&la(r)&&r.catch(n=>{er(n,t,e)}),r}if(Tt(s)){const r=[];for(let n=0;n<s.length;n++)r.push(ps(s[n],t,e,o));return r}else({}).NODE_ENV!=="production"&&ut(`Invalid value type passed to callWithAsyncErrorHandling(): ${typeof s}`)}function er(s,t,e,o=!0){const r=t?t.vnode:null,{errorHandler:n,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Wt;if(t){let i=t.parent;const l=t.proxy,c={}.NODE_ENV!=="production"?Ta[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;i;){const u=i.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](s,l,c)===!1)return}i=i.parent}if(n){Is(),Oo(n,null,10,[s,l,c]),Fs();return}}up(s,e,r,o,a)}function up(s,t,e,o=!0,r=!1){if({}.NODE_ENV!=="production"){const n=Ta[t];if(e&&jr(e),ut(`Unhandled error${n?` during execution of ${n}`:""}`),e&&Hr(),o)throw s;console.error(s)}else{if(r)throw s;console.error(s)}}const Le=[];let ms=-1;const Ro=[];let js=null,Io=0;const Ql=Promise.resolve();let Wr=null;const dp=100;function Kl(s){const t=Wr||Ql;return s?t.then(this?s.bind(this):s):t}function fp(s){let t=ms+1,e=Le.length;for(;t<e;){const o=t+e>>>1,r=Le[o],n=sr(r);n<s||n===s&&r.flags&2?t=o+1:e=o}return t}function Zr(s){if(!(s.flags&1)){const t=sr(s),e=Le[Le.length-1];!e||!(s.flags&2)&&t>=sr(e)?Le.push(s):Le.splice(fp(t),0,s),s.flags|=1,Jl()}}function Jl(){Wr||(Wr=Ql.then(oc))}function tc(s){Tt(s)?Ro.push(...s):js&&s.id===-1?js.splice(Io+1,0,s):s.flags&1||(Ro.push(s),s.flags|=1),Jl()}function ec(s,t,e=ms+1){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<Le.length;e++){const o=Le[e];if(o&&o.flags&2){if(s&&o.id!==s.uid||{}.NODE_ENV!=="production"&&Sa(t,o))continue;Le.splice(e,1),e--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function sc(s){if(Ro.length){const t=[...new Set(Ro)].sort((e,o)=>sr(e)-sr(o));if(Ro.length=0,js){js.push(...t);return}for(js=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Io=0;Io<js.length;Io++){const e=js[Io];({}).NODE_ENV!=="production"&&Sa(s,e)||(e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2)}js=null,Io=0}}const sr=s=>s.id==null?s.flags&2?-1:1/0:s.id;function oc(s){({}).NODE_ENV!=="production"&&(s=s||new Map);const t={}.NODE_ENV!=="production"?e=>Sa(s,e):ve;try{for(ms=0;ms<Le.length;ms++){const e=Le[ms];if(e&&!(e.flags&8)){if({}.NODE_ENV!=="production"&&t(e))continue;e.flags&4&&(e.flags&=-2),Oo(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2)}}}finally{for(;ms<Le.length;ms++){const e=Le[ms];e&&(e.flags&=-2)}ms=-1,Le.length=0,sc(s),Wr=null,(Le.length||Ro.length)&&oc(s)}}function Sa(s,t){const e=s.get(t)||0;if(e>dp){const o=t.i,r=o&&eu(o.type);return er(`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}return s.set(t,e+1),!1}let gs=!1;const qr=new Map;({}).NODE_ENV!=="production"&&(Zo().__VUE_HMR_RUNTIME__={createRecord:Ea(rc),rerender:Ea(mp),reload:Ea(gp)});const uo=new Map;function hp(s){const t=s.type.__hmrId;let e=uo.get(t);e||(rc(t,s.type),e=uo.get(t)),e.instances.add(s)}function pp(s){uo.get(s.type.__hmrId).instances.delete(s)}function rc(s,t){return uo.has(s)?!1:(uo.set(s,{initialDef:Qr(t),instances:new Set}),!0)}function Qr(s){return su(s)?s.__vccOpts:s}function mp(s,t){const e=uo.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(o=>{t&&(o.render=t,Qr(o.type).render=t),o.renderCache=[],gs=!0,o.update(),gs=!1}))}function gp(s,t){const e=uo.get(s);if(!e)return;t=Qr(t),nc(e.initialDef,t);const o=[...e.instances];for(let r=0;r<o.length;r++){const n=o[r],a=Qr(n.type);let i=qr.get(a);i||(a!==e.initialDef&&nc(a,t),qr.set(a,i=new Set)),i.add(n),n.appContext.propsCache.delete(n.type),n.appContext.emitsCache.delete(n.type),n.appContext.optionsCache.delete(n.type),n.ceReload?(i.add(n),n.ceReload(t.styles),i.delete(n)):n.parent?Zr(()=>{gs=!0,n.parent.update(),gs=!1,i.delete(n)}):n.appContext.reload?n.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),n.root.ce&&n!==n.root&&n.root.ce._removeChildStyle(a)}tc(()=>{qr.clear()})}function nc(s,t){ie(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function Ea(s){return(t,e)=>{try{return s(t,e)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ys,or=[],Pa=!1;function rr(s,...t){ys?ys.emit(s,...t):Pa||or.push({event:s,args:t})}function ac(s,t){var e,o;ys=s,ys?(ys.enabled=!0,or.forEach(({event:r,args:n})=>ys.emit(r,...n)),or=[]):typeof window<"u"&&window.HTMLElement&&!((o=(e=window.navigator)==null?void 0:e.userAgent)!=null&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{ac(n,t)}),setTimeout(()=>{ys||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Pa=!0,or=[])},3e3)):(Pa=!0,or=[])}function yp(s,t){rr("app:init",s,t,{Fragment:Vt,Text:ir,Comment:Xe,Static:lr})}function vp(s){rr("app:unmount",s)}const bp=Oa("component:added"),ic=Oa("component:updated"),_p=Oa("component:removed"),xp=s=>{ys&&typeof ys.cleanupBuffer=="function"&&!ys.cleanupBuffer(s)&&_p(s)};/*! #__NO_SIDE_EFFECTS__ */function Oa(s){return t=>{rr(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const wp=lc("perf:start"),kp=lc("perf:end");function lc(s){return(t,e,o)=>{rr(s,t.appContext.app,t.uid,t,e,o)}}function Cp(s,t,e){rr("component:emit",s.appContext.app,s,t,e)}let _e=null,cc=null;function Kr(s){const t=_e;return _e=s,cc=s&&s.type.__scopeId||null,t}function bt(s,t=_e,e){if(!t||s._n)return s;const o=(...r)=>{o._d&&Yc(-1);const n=Kr(t);let a;try{a=s(...r)}finally{Kr(n),o._d&&Yc(1)}return{}.NODE_ENV!=="production"&&ic(t),a};return o._n=!0,o._c=!0,o._d=!0,o}function uc(s){gh(s)&&ut("Do not use built-in directive ids as custom directive id: "+s)}function fo(s,t){if(_e===null)return{}.NODE_ENV!=="production"&&ut("withDirectives can only be used inside render functions."),s;const e=un(_e),o=s.dirs||(s.dirs=[]);for(let r=0;r<t.length;r++){let[n,a,i,l=Wt]=t[r];n&&(Ot(n)&&(n={mounted:n,updated:n}),n.deep&&Ls(a),o.push({dir:n,instance:e,value:a,oldValue:void 0,arg:i,modifiers:l}))}return s}function ho(s,t,e,o){const r=s.dirs,n=t&&t.dirs;for(let a=0;a<r.length;a++){const i=r[a];n&&(i.oldValue=n[a].value);let l=i.dir[o];l&&(Is(),ps(l,e,8,[s.el,i,s,t]),Fs())}}const Tp=Symbol("_vte"),Sp=s=>s.__isTeleport;function Ra(s,t){s.shapeFlag&6&&s.component?(s.transition=t,Ra(s.component.subTree,t)):s.shapeFlag&128?(s.ssContent.transition=t.clone(s.ssContent),s.ssFallback.transition=t.clone(s.ssFallback)):s.transition=t}/*! #__NO_SIDE_EFFECTS__ */function q(s,t){return Ot(s)?(()=>ie({name:s.name},t,{setup:s}))():s}function dc(s){s.ids=[s.ids[0]+s.ids[2]+++"-",0,0]}const Ep=new WeakSet;function Jr(s,t,e,o,r=!1){if(Tt(s)){s.forEach((f,b)=>Jr(f,t&&(Tt(t)?t[b]:t),e,o,r));return}if(Fo(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&Jr(s,t,e,o.component.subTree);return}const n=o.shapeFlag&4?un(o.component):o.el,a=r?null:n,{i,r:l}=s;if({}.NODE_ENV!=="production"&&!i){ut("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=i.refs===Wt?i.refs={}:i.refs,d=i.setupState,h=$t(d),p=d===Wt?()=>!1:f=>({}).NODE_ENV!=="production"&&(Gt(h,f)&&!he(h[f])&&ut(`Template ref "${f}" used on a non-ref value. It will not work in the production build.`),Ep.has(h[f]))?!1:Gt(h,f);if(c!=null&&c!==l&&(ue(c)?(u[c]=null,p(c)&&(d[c]=null)):he(c)&&(c.value=null)),Ot(l))Oo(l,i,12,[a,u]);else{const f=ue(l),b=he(l);if(f||b){const w=()=>{if(s.f){const x=f?p(l)?d[l]:u[l]:l.value;r?Tt(x)&&ia(x,n):Tt(x)?x.includes(n)||x.push(n):f?(u[l]=[n],p(l)&&(d[l]=u[l])):(l.value=[n],s.k&&(u[s.k]=l.value))}else f?(u[l]=a,p(l)&&(d[l]=a)):b?(l.value=a,s.k&&(u[s.k]=a)):{}.NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)};a?(w.id=-1,qe(w,e)):w()}else({}).NODE_ENV!=="production"&&ut("Invalid template ref type:",l,`(${typeof l})`)}}Zo().requestIdleCallback,Zo().cancelIdleCallback;const Fo=s=>!!s.type.__asyncLoader,Ia=s=>s.type.__isKeepAlive;function Pp(s,t){fc(s,"a",t)}function Op(s,t){fc(s,"da",t)}function fc(s,t,e=Ce){const o=s.__wdc||(s.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return s()});if(tn(t,o,e),e){let r=e.parent;for(;r&&r.parent;)Ia(r.parent.vnode)&&Rp(o,t,e,r),r=r.parent}}function Rp(s,t,e,o){const r=tn(t,s,o,!0);oe(()=>{ia(o[t],r)},e)}function tn(s,t,e=Ce,o=!1){if(e){const r=e[s]||(e[s]=[]),n=t.__weh||(t.__weh=(...a)=>{Is();const i=fr(e),l=ps(t,e,s,a);return i(),Fs(),l});return o?r.unshift(n):r.push(n),n}else if({}.NODE_ENV!=="production"){const r=no(Ta[s].replace(/ hook$/,""));ut(`${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 As=s=>(t,e=Ce)=>{(!hr||s==="sp")&&tn(s,(...o)=>t(...o),e)},Ip=As("bm"),vs=As("m"),Fp=As("bu"),Dp=As("u"),$p=As("bum"),oe=As("um"),Lp=As("sp"),Ap=As("rtg"),Np=As("rtc");function Mp(s,t=Ce){tn("ec",s,t)}const zp=Symbol.for("v-ndc");function xe(s,t,e,o){let r;const n=e&&e[o],a=Tt(s);if(a||ue(s)){const i=a&&io(s);let l=!1;i&&(l=!$e(s),s=Mr(s)),r=new Array(s.length);for(let c=0,u=s.length;c<u;c++)r[c]=t(l?Ie(s[c]):s[c],c,void 0,n&&n[c])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&ut(`The v-for range expect an integer value but got ${s}.`),r=new Array(s);for(let i=0;i<s;i++)r[i]=t(i+1,i,void 0,n&&n[i])}else if(Qt(s))if(s[Symbol.iterator])r=Array.from(s,(i,l)=>t(i,l,void 0,n&&n[l]));else{const i=Object.keys(s);r=new Array(i.length);for(let l=0,c=i.length;l<c;l++){const u=i[l];r[l]=t(s[u],u,l,n&&n[l])}}else r=[];return e&&(e[o]=r),r}function kt(s,t,e={},o,r){if(_e.ce||_e.parent&&Fo(_e.parent)&&_e.parent.ce)return t!=="default"&&(e.name=t),L(),Lt(Vt,null,[ct("slot",e,o&&o())],64);let n=s[t];({}).NODE_ENV!=="production"&&n&&n.length>1&&(ut("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."),n=()=>[]),n&&n._c&&(n._d=!1),L();const a=n&&hc(n(e)),i=e.key||a&&a.key,l=Lt(Vt,{key:(i&&!Rs(i)?i:`_${t}`)+(!a&&o?"_fb":"")},a||(o?o():[]),a&&s._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),n&&n._c&&(n._d=!0),l}function hc(s){return s.some(t=>go(t)?!(t.type===Xe||t.type===Vt&&!hc(t.children)):!0)?s:null}const Fa=s=>s?qc(s)?un(s):Fa(s.parent):null,po=ie(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?hs(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?hs(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?hs(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?hs(s.refs):s.refs,$parent:s=>Fa(s.parent),$root:s=>Fa(s.root),$host:s=>s.ce,$emit:s=>s.emit,$options:s=>Aa(s),$forceUpdate:s=>s.f||(s.f=()=>{Zr(s.update)}),$nextTick:s=>s.n||(s.n=Kl.bind(s.proxy)),$watch:s=>_m.bind(s)}),Da=s=>s==="_"||s==="$",$a=(s,t)=>s!==Wt&&!s.__isScriptSetup&&Gt(s,t),pc={get({_:s},t){if(t==="__v_skip")return!0;const{ctx:e,setupState:o,data:r,props:n,accessCache:a,type:i,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return o[t];case 2:return r[t];case 4:return e[t];case 3:return n[t]}else{if($a(o,t))return a[t]=1,o[t];if(r!==Wt&&Gt(r,t))return a[t]=2,r[t];if((c=s.propsOptions[0])&&Gt(c,t))return a[t]=3,n[t];if(e!==Wt&&Gt(e,t))return a[t]=4,e[t];La&&(a[t]=0)}}const u=po[t];let d,h;if(u)return t==="$attrs"?(be(s.attrs,"get",""),{}.NODE_ENV!=="production"&&an()):{}.NODE_ENV!=="production"&&t==="$slots"&&be(s,"get",t),u(s);if((d=i.__cssModules)&&(d=d[t]))return d;if(e!==Wt&&Gt(e,t))return a[t]=4,e[t];if(h=l.config.globalProperties,Gt(h,t))return h[t];({}).NODE_ENV!=="production"&&_e&&(!ue(t)||t.indexOf("__v")!==0)&&(r!==Wt&&Da(t[0])&&Gt(r,t)?ut(`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===_e&&ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:o,setupState:r,ctx:n}=s;return $a(r,t)?(r[t]=e,!0):{}.NODE_ENV!=="production"&&r.__isScriptSetup&&Gt(r,t)?(ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==Wt&&Gt(o,t)?(o[t]=e,!0):Gt(s.props,t)?({}.NODE_ENV!=="production"&&ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&ut(`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(n,t,{enumerable:!0,configurable:!0,value:e}):n[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:o,appContext:r,propsOptions:n}},a){let i;return!!e[a]||s!==Wt&&Gt(s,a)||$a(t,a)||(i=n[0])&&Gt(i,a)||Gt(o,a)||Gt(po,a)||Gt(r.config.globalProperties,a)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:Gt(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(pc.ownKeys=s=>(ut("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 Vp(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(po).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>po[e](s),set:ve})}),t}function Bp(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.props[o],set:ve})})}function Yp(s){const{ctx:t,setupState:e}=s;Object.keys($t(e)).forEach(o=>{if(!e.__isScriptSetup){if(Da(o[0])){ut(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e[o],set:ve})}})}function Xp(){return Gp().slots}function Gp(){const s=Wc();return{}.NODE_ENV!=="production"&&!s&&ut("useContext() called without active instance."),s.setupContext||(s.setupContext=tu(s))}function mc(s){return Tt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Up(){const s=Object.create(null);return(t,e)=>{s[e]?ut(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let La=!0;function jp(s){const t=Aa(s),e=s.proxy,o=s.ctx;La=!1,t.beforeCreate&&gc(t.beforeCreate,s,"bc");const{data:r,computed:n,methods:a,watch:i,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:f,activated:b,deactivated:w,beforeDestroy:x,beforeUnmount:v,destroyed:g,unmounted:m,render:_,renderTracked:k,renderTriggered:Z,errorCaptured:ot,serverPrefetch:R,expose:$,inheritAttrs:A,components:D,directives:M,filters:X}=t,rt={}.NODE_ENV!=="production"?Up():null;if({}.NODE_ENV!=="production"){const[W]=s.propsOptions;if(W)for(const at in W)rt("Props",at)}if(c&&Hp(c,o,rt),a)for(const W in a){const at=a[W];Ot(at)?({}.NODE_ENV!=="production"?Object.defineProperty(o,W,{value:at.bind(e),configurable:!0,enumerable:!0,writable:!0}):o[W]=at.bind(e),{}.NODE_ENV!=="production"&&rt("Methods",W)):{}.NODE_ENV!=="production"&&ut(`Method "${W}" has type "${typeof at}" in the component definition. Did you reference the function correctly?`)}if(r){({}).NODE_ENV!=="production"&&!Ot(r)&&ut("The data option must be a function. Plain object usage is no longer supported.");const W=r.call(e,e);if({}.NODE_ENV!=="production"&&la(W)&&ut("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Qt(W))({}).NODE_ENV!=="production"&&ut("data() should return an object.");else if(s.data=Kt(W),{}.NODE_ENV!=="production")for(const at in W)rt("Data",at),Da(at[0])||Object.defineProperty(o,at,{configurable:!0,enumerable:!0,get:()=>W[at],set:ve})}if(La=!0,n)for(const W in n){const at=n[W],G=Ot(at)?at.bind(e,e):Ot(at.get)?at.get.bind(e,e):ve;({}).NODE_ENV!=="production"&&G===ve&&ut(`Computed property "${W}" has no getter.`);const j=!Ot(at)&&Ot(at.set)?at.set.bind(e):{}.NODE_ENV!=="production"?()=>{ut(`Write operation failed: computed property "${W}" is readonly.`)}:ve,gt=Bm({get:G,set:j});Object.defineProperty(o,W,{enumerable:!0,configurable:!0,get:()=>gt.value,set:ht=>gt.value=ht}),{}.NODE_ENV!=="production"&&rt("Computed",W)}if(i)for(const W in i)yc(i[W],o,e,W);if(l){const W=Ot(l)?l.call(e):l;Reflect.ownKeys(W).forEach(at=>{Jp(at,W[at])})}u&&gc(u,s,"c");function Q(W,at){Tt(at)?at.forEach(G=>W(G.bind(e))):at&&W(at.bind(e))}if(Q(Ip,d),Q(vs,h),Q(Fp,p),Q(Dp,f),Q(Pp,b),Q(Op,w),Q(Mp,ot),Q(Np,k),Q(Ap,Z),Q($p,v),Q(oe,m),Q(Lp,R),Tt($))if($.length){const W=s.exposed||(s.exposed={});$.forEach(at=>{Object.defineProperty(W,at,{get:()=>e[at],set:G=>e[at]=G})})}else s.exposed||(s.exposed={});_&&s.render===ve&&(s.render=_),A!=null&&(s.inheritAttrs=A),D&&(s.components=D),M&&(s.directives=M),R&&dc(s)}function Hp(s,t,e=ve){Tt(s)&&(s=Na(s));for(const o in s){const r=s[o];let n;Qt(r)?"default"in r?n=sn(r.from||o,r.default,!0):n=sn(r.from||o):n=sn(r),he(n)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n.value,set:a=>n.value=a}):t[o]=n,{}.NODE_ENV!=="production"&&e("Inject",o)}}function gc(s,t,e){ps(Tt(s)?s.map(o=>o.bind(t.proxy)):s.bind(t.proxy),t,e)}function yc(s,t,e,o){let r=o.includes(".")?Ac(e,o):()=>e[o];if(ue(s)){const n=t[s];Ot(n)?St(r,n):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${s}"`,n)}else if(Ot(s))St(r,s.bind(e));else if(Qt(s))if(Tt(s))s.forEach(n=>yc(n,t,e,o));else{const n=Ot(s.handler)?s.handler.bind(e):t[s.handler];Ot(n)?St(r,n,s):{}.NODE_ENV!=="production"&&ut(`Invalid watch handler specified by key "${s.handler}"`,n)}else({}).NODE_ENV!=="production"&&ut(`Invalid watch option: "${o}"`,s)}function Aa(s){const t=s.type,{mixins:e,extends:o}=t,{mixins:r,optionsCache:n,config:{optionMergeStrategies:a}}=s.appContext,i=n.get(t);let l;return i?l=i:!r.length&&!e&&!o?l=t:(l={},r.length&&r.forEach(c=>en(l,c,a,!0)),en(l,t,a)),Qt(t)&&n.set(t,l),l}function en(s,t,e,o=!1){const{mixins:r,extends:n}=t;n&&en(s,n,e,!0),r&&r.forEach(a=>en(s,a,e,!0));for(const a in t)if(o&&a==="expose")({}).NODE_ENV!=="production"&&ut('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const i=Wp[a]||e&&e[a];s[a]=i?i(s[a],t[a]):t[a]}return s}const Wp={data:vc,props:bc,emits:bc,methods:nr,computed:nr,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:nr,directives:nr,watch:qp,provide:vc,inject:Zp};function vc(s,t){return t?s?function(){return ie(Ot(s)?s.call(this,this):s,Ot(t)?t.call(this,this):t)}:t:s}function Zp(s,t){return nr(Na(s),Na(t))}function Na(s){if(Tt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Ae(s,t){return s?[...new Set([].concat(s,t))]:t}function nr(s,t){return s?ie(Object.create(null),s,t):t}function bc(s,t){return s?Tt(s)&&Tt(t)?[...new Set([...s,...t])]:ie(Object.create(null),mc(s),mc(t??{})):t}function qp(s,t){if(!s)return t;if(!t)return s;const e=ie(Object.create(null),s);for(const o in t)e[o]=Ae(s[o],t[o]);return e}function _c(){return{app:null,config:{isNativeTag:ph,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 Qp=0;function Kp(s,t){return function(o,r=null){Ot(o)||(o=ie({},o)),r!=null&&!Qt(r)&&({}.NODE_ENV!=="production"&&ut("root props passed to app.mount() must be an object."),r=null);const n=_c(),a=new WeakSet,i=[];let l=!1;const c=n.app={_uid:Qp++,_component:o,_props:r,_container:null,_context:n,_instance:null,version:ou,get config(){return n.config},set config(u){({}).NODE_ENV!=="production"&&ut("app.config cannot be replaced. Modify individual options instead.")},use(u,...d){return a.has(u)?{}.NODE_ENV!=="production"&&ut("Plugin has already been applied to target app."):u&&Ot(u.install)?(a.add(u),u.install(c,...d)):Ot(u)?(a.add(u),u(c,...d)):{}.NODE_ENV!=="production"&&ut('A plugin must either be a function or an object with an "install" function.'),c},mixin(u){return n.mixins.includes(u)?{}.NODE_ENV!=="production"&&ut("Mixin has already been applied to target app"+(u.name?`: ${u.name}`:"")):n.mixins.push(u),c},component(u,d){return{}.NODE_ENV!=="production"&&Za(u,n.config),d?({}.NODE_ENV!=="production"&&n.components[u]&&ut(`Component "${u}" has already been registered in target app.`),n.components[u]=d,c):n.components[u]},directive(u,d){return{}.NODE_ENV!=="production"&&uc(u),d?({}.NODE_ENV!=="production"&&n.directives[u]&&ut(`Directive "${u}" has already been registered in target app.`),n.directives[u]=d,c):n.directives[u]},mount(u,d,h){if(l)({}).NODE_ENV!=="production"&&ut("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"&&u.__vue_app__&&ut("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=c._ceVNode||ct(o,r);return p.appContext=n,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(n.reload=()=>{s(Ws(p),u,h)}),d&&t?t(p,u):s(p,u,h),l=!0,c._container=u,u.__vue_app__=c,{}.NODE_ENV!=="production"&&(c._instance=p.component,yp(c,ou)),un(p.component)}},onUnmount(u){({}).NODE_ENV!=="production"&&typeof u!="function"&&ut(`Expected function as first argument to app.onUnmount(), but got ${typeof u}`),i.push(u)},unmount(){l?(ps(i,c._instance,16),s(null,c._container),{}.NODE_ENV!=="production"&&(c._instance=null,vp(c)),delete c._container.__vue_app__):{}.NODE_ENV!=="production"&&ut("Cannot unmount an app that is not mounted.")},provide(u,d){return{}.NODE_ENV!=="production"&&u in n.provides&&ut(`App already provides property with key "${String(u)}". It will be overwritten with the new value.`),n.provides[u]=d,c},runWithContext(u){const d=Do;Do=c;try{return u()}finally{Do=d}}};return c}}let Do=null;function Jp(s,t){if(!Ce)({}).NODE_ENV!=="production"&&ut("provide() can only be used inside setup().");else{let e=Ce.provides;const o=Ce.parent&&Ce.parent.provides;o===e&&(e=Ce.provides=Object.create(o)),e[s]=t}}function sn(s,t,e=!1){const o=Ce||_e;if(o||Do){const r=Do?Do._context.provides:o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&s in r)return r[s];if(arguments.length>1)return e&&Ot(t)?t.call(o&&o.proxy):t;({}).NODE_ENV!=="production"&&ut(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&ut("inject() can only be used inside setup() or functional components.")}const xc={},wc=()=>Object.create(xc),kc=s=>Object.getPrototypeOf(s)===xc;function tm(s,t,e,o=!1){const r={},n=wc();s.propsDefaults=Object.create(null),Cc(s,t,r,n);for(const a in s.propsOptions[0])a in r||(r[a]=void 0);({}).NODE_ENV!=="production"&&Ec(t||{},r,s),e?s.props=o?r:Qh(r):s.type.props?s.props=r:s.props=n,s.attrs=n}function em(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function sm(s,t,e,o){const{props:r,attrs:n,vnode:{patchFlag:a}}=s,i=$t(r),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&em(s))&&(o||a>0)&&!(a&16)){if(a&8){const u=s.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(nn(s.emitsOptions,h))continue;const p=t[h];if(l)if(Gt(n,h))p!==n[h]&&(n[h]=p,c=!0);else{const f=Ye(h);r[f]=Ma(l,i,f,p,s,!1)}else p!==n[h]&&(n[h]=p,c=!0)}}}else{Cc(s,t,r,n)&&(c=!0);let u;for(const d in i)(!t||!Gt(t,d)&&((u=We(d))===d||!Gt(t,u)))&&(l?e&&(e[d]!==void 0||e[u]!==void 0)&&(r[d]=Ma(l,i,d,void 0,s,!0)):delete r[d]);if(n!==i)for(const d in n)(!t||!Gt(t,d))&&(delete n[d],c=!0)}c&&fs(s.attrs,"set",""),{}.NODE_ENV!=="production"&&Ec(t||{},r,s)}function Cc(s,t,e,o){const[r,n]=s.propsOptions;let a=!1,i;if(t)for(let l in t){if(Ho(l))continue;const c=t[l];let u;r&&Gt(r,u=Ye(l))?!n||!n.includes(u)?e[u]=c:(i||(i={}))[u]=c:nn(s.emitsOptions,l)||(!(l in o)||c!==o[l])&&(o[l]=c,a=!0)}if(n){const l=$t(e),c=i||Wt;for(let u=0;u<n.length;u++){const d=n[u];e[d]=Ma(r,l,d,c[d],s,!Gt(c,d))}}return a}function Ma(s,t,e,o,r,n){const a=s[e];if(a!=null){const i=Gt(a,"default");if(i&&o===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&Ot(l)){const{propsDefaults:c}=r;if(e in c)o=c[e];else{const u=fr(r);o=c[e]=l.call(null,t),u()}}else o=l;r.ce&&r.ce._setProp(e,o)}a[0]&&(n&&!i?o=!1:a[1]&&(o===""||o===We(e))&&(o=!0))}return o}const om=new WeakMap;function Tc(s,t,e=!1){const o=e?om:t.propsCache,r=o.get(s);if(r)return r;const n=s.props,a={},i=[];let l=!1;if(!Ot(s)){const u=d=>{l=!0;const[h,p]=Tc(d,t,!0);ie(a,h),p&&i.push(...p)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!n&&!l)return Qt(s)&&o.set(s,Eo),Eo;if(Tt(n))for(let u=0;u<n.length;u++){({}).NODE_ENV!=="production"&&!ue(n[u])&&ut("props must be strings when using array syntax.",n[u]);const d=Ye(n[u]);Sc(d)&&(a[d]=Wt)}else if(n){({}).NODE_ENV!=="production"&&!Qt(n)&&ut("invalid props options",n);for(const u in n){const d=Ye(u);if(Sc(d)){const h=n[u],p=a[d]=Tt(h)||Ot(h)?{type:h}:ie({},h),f=p.type;let b=!1,w=!0;if(Tt(f))for(let x=0;x<f.length;++x){const v=f[x],g=Ot(v)&&v.name;if(g==="Boolean"){b=!0;break}else g==="String"&&(w=!1)}else b=Ot(f)&&f.name==="Boolean";p[0]=b,p[1]=w,(b||Gt(p,"default"))&&i.push(d)}}}const c=[a,i];return Qt(s)&&o.set(s,c),c}function Sc(s){return s[0]!=="$"&&!Ho(s)?!0:({}.NODE_ENV!=="production"&&ut(`Invalid prop name: "${s}" is a reserved property.`),!1)}function rm(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Ec(s,t,e){const o=$t(t),r=e.propsOptions[0],n=Object.keys(s).map(a=>Ye(a));for(const a in r){let i=r[a];i!=null&&nm(a,o[a],i,{}.NODE_ENV!=="production"?hs(o):o,!n.includes(a))}}function nm(s,t,e,o,r){const{type:n,required:a,validator:i,skipCheck:l}=e;if(a&&r){ut('Missing required prop: "'+s+'"');return}if(!(t==null&&!a)){if(n!=null&&n!==!0&&!l){let c=!1;const u=Tt(n)?n:[n],d=[];for(let h=0;h<u.length&&!c;h++){const{valid:p,expectedType:f}=im(t,u[h]);d.push(f||""),c=p}if(!c){ut(lm(s,t,d));return}}i&&!i(t,o)&&ut('Invalid prop: custom validator check failed for prop "'+s+'".')}}const am=Os("String,Number,Boolean,Function,Symbol,BigInt");function im(s,t){let e;const o=rm(t);if(o==="null")e=s===null;else if(am(o)){const r=typeof s;e=r===o.toLowerCase(),!e&&r==="object"&&(e=s instanceof t)}else o==="Object"?e=Qt(s):o==="Array"?e=Tt(s):e=s instanceof t;return{valid:e,expectedType:o}}function lm(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 o=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(Ar).join(" | ")}`;const r=e[0],n=ca(t),a=Pc(t,r),i=Pc(t,n);return e.length===1&&Oc(r)&&!cm(r,n)&&(o+=` with value ${a}`),o+=`, got ${n} `,Oc(n)&&(o+=`with value ${i}.`),o}function Pc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function Oc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function cm(...s){return s.some(t=>t.toLowerCase()==="boolean")}const Rc=s=>s[0]==="_"||s==="$stable",za=s=>Tt(s)?s.map(is):[is(s)],um=(s,t,e)=>{if(t._n)return t;const o=bt((...r)=>({}.NODE_ENV!=="production"&&Ce&&(!e||e.root===Ce.root)&&ut(`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.`),za(t(...r))),e);return o._c=!1,o},Ic=(s,t,e)=>{const o=s._ctx;for(const r in s){if(Rc(r))continue;const n=s[r];if(Ot(n))t[r]=um(r,n,o);else if(n!=null){({}).NODE_ENV!=="production"&&ut(`Non-function value encountered for slot "${r}". Prefer function slots for better performance.`);const a=za(n);t[r]=()=>a}}},Fc=(s,t)=>{({}).NODE_ENV!=="production"&&!Ia(s.vnode)&&ut("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=za(t);s.slots.default=()=>e},Va=(s,t,e)=>{for(const o in t)(e||o!=="_")&&(s[o]=t[o])},dm=(s,t,e)=>{const o=s.slots=wc();if(s.vnode.shapeFlag&32){const r=t._;r?(Va(o,t,e),e&&Nr(o,"_",r,!0)):Ic(t,o)}else t&&Fc(s,t)},fm=(s,t,e)=>{const{vnode:o,slots:r}=s;let n=!0,a=Wt;if(o.shapeFlag&32){const i=t._;i?{}.NODE_ENV!=="production"&&gs?(Va(r,t,e),fs(s,"set","$slots")):e&&i===1?n=!1:Va(r,t,e):(n=!t.$stable,Ic(t,r)),a=t}else t&&(Fc(s,t),a={default:1});if(n)for(const i in r)!Rc(i)&&a[i]==null&&delete r[i]};let ar,Hs;function Ns(s,t){s.appContext.config.performance&&on()&&Hs.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&wp(s,t,on()?Hs.now():Date.now())}function Ms(s,t){if(s.appContext.config.performance&&on()){const e=`vue-${t}-${s.uid}`,o=e+":end";Hs.mark(o),Hs.measure(`<${dn(s,s.type)}> ${t}`,e,o),Hs.clearMarks(e),Hs.clearMarks(o)}({}).NODE_ENV!=="production"&&kp(s,t,on()?Hs.now():Date.now())}function on(){return ar!==void 0||(typeof window<"u"&&window.performance?(ar=!0,Hs=window.performance):ar=!1),ar}function hm(){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.
|
|
17
17
|
|
|
18
|
-
For more details, see https://link.vuejs.org/feature-flags.`)}}const Ze=vm;function nm(o){return am(o)}function am(o,t){rm();const e=Ho();e.__VUE__=!0,{}.NODE_ENV!=="production"&&sc(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:s,remove:r,patchProp:n,createElement:a,createText:i,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:p=ye,insertStaticContent:h}=o,w=(S,F,Y,J=null,W=null,tt=null,lt=void 0,et=null,nt={}.NODE_ENV!=="production"&&ps?!1:!!F.dynamicChildren)=>{if(S===F)return;S&&!cr(S,F)&&(J=te(S),B(S,W,tt,!0),S=null),F.patchFlag===-2&&(nt=!1,F.dynamicChildren=null);const{type:ot,ref:Pt,shapeFlag:dt}=F;switch(ot){case nr:_(S,F,Y,J);break;case Ye:x(S,F,Y,J);break;case ar:S==null?v(F,Y,J,lt):{}.NODE_ENV!=="production"&&g(S,F,Y,lt);break;case Vt:A(S,F,Y,J,W,tt,lt,et,nt);break;default:dt&1?C(S,F,Y,J,W,tt,lt,et,nt):dt&6?X(S,F,Y,J,W,tt,lt,et,nt):dt&64||dt&128?ot.process(S,F,Y,J,W,tt,lt,et,nt,Me):{}.NODE_ENV!=="production"&&ut("Invalid VNode type:",ot,`(${typeof ot})`)}Pt!=null&&W&&Qr(Pt,S&&S.ref,tt,F||S,!F)},_=(S,F,Y,J)=>{if(S==null)s(F.el=i(F.children),Y,J);else{const W=F.el=S.el;F.children!==S.children&&c(W,F.children)}},x=(S,F,Y,J)=>{S==null?s(F.el=l(F.children||""),Y,J):F.el=S.el},v=(S,F,Y,J)=>{[S.el,S.anchor]=h(S.children,F,Y,J,S.el,S.anchor)},g=(S,F,Y,J)=>{if(F.children!==S.children){const W=d(S.anchor);b(S),[F.el,F.anchor]=h(F.children,Y,W,J)}else F.el=S.el,F.anchor=S.anchor},m=({el:S,anchor:F},Y,J)=>{let W;for(;S&&S!==F;)W=d(S),s(S,Y,J),S=W;s(F,Y,J)},b=({el:S,anchor:F})=>{let Y;for(;S&&S!==F;)Y=d(S),r(S),S=Y;r(F)},C=(S,F,Y,J,W,tt,lt,et,nt)=>{F.type==="svg"?lt="svg":F.type==="math"&&(lt="mathml"),S==null?U(F,Y,J,W,tt,lt,et,nt):$(S,F,W,tt,lt,et,nt)},U=(S,F,Y,J,W,tt,lt,et)=>{let nt,ot;const{props:Pt,shapeFlag:dt,transition:_t,dirs:It}=S;if(nt=S.el=a(S.type,tt,Pt&&Pt.is,Pt),dt&8?u(nt,S.children):dt&16&&I(S.children,nt,null,J,W,Na(S,tt),lt,et),It&&uo(S,null,J,"created"),K(nt,S,S.scopeId,lt,J),Pt){for(const Zt in Pt)Zt!=="value"&&!Uo(Zt)&&n(nt,Zt,null,Pt[Zt],tt,J);"value"in Pt&&n(nt,"value",null,Pt.value,tt),(ot=Pt.onVnodeBeforeMount)&&ys(ot,J,S)}({}).NODE_ENV!=="production"&&(Lr(nt,"__vnode",S,!0),Lr(nt,"__vueParentComponent",J,!0)),It&&uo(S,null,J,"beforeMount");const At=im(W,_t);At&&_t.beforeEnter(nt),s(nt,F,Y),((ot=Pt&&Pt.onVnodeMounted)||At||It)&&Ze(()=>{ot&&ys(ot,J,S),At&&_t.enter(nt),It&&uo(S,null,J,"mounted")},W)},K=(S,F,Y,J,W)=>{if(Y&&p(S,Y),J)for(let tt=0;tt<J.length;tt++)p(S,J[tt]);if(W){let tt=W.subTree;if({}.NODE_ENV!=="production"&&tt.patchFlag>0&&tt.patchFlag&2048&&(tt=Va(tt.children)||tt),F===tt||Mc(tt.type)&&(tt.ssContent===F||tt.ssFallback===F)){const lt=W.vnode;K(S,lt,lt.scopeId,lt.slotScopeIds,W.parent)}}},I=(S,F,Y,J,W,tt,lt,et,nt=0)=>{for(let ot=nt;ot<S.length;ot++){const Pt=S[ot]=et?Hs(S[ot]):as(S[ot]);w(null,Pt,F,Y,J,W,tt,lt,et)}},$=(S,F,Y,J,W,tt,lt)=>{const et=F.el=S.el;({}).NODE_ENV!=="production"&&(et.__vnode=F);let{patchFlag:nt,dynamicChildren:ot,dirs:Pt}=F;nt|=S.patchFlag&16;const dt=S.props||Ht,_t=F.props||Ht;let It;if(Y&&ho(Y,!1),(It=_t.onVnodeBeforeUpdate)&&ys(It,Y,F,S),Pt&&uo(F,S,Y,"beforeUpdate"),Y&&ho(Y,!0),{}.NODE_ENV!=="production"&&ps&&(nt=0,lt=!1,ot=null),(dt.innerHTML&&_t.innerHTML==null||dt.textContent&&_t.textContent==null)&&u(et,""),ot?(N(S.dynamicChildren,ot,et,Y,J,Na(F,W),tt),{}.NODE_ENV!=="production"&&sn(S,F)):lt||G(S,F,et,null,Y,J,Na(F,W),tt,!1),nt>0){if(nt&16)D(et,dt,_t,Y,W);else if(nt&2&&dt.class!==_t.class&&n(et,"class",null,_t.class,W),nt&4&&n(et,"style",dt.style,_t.style,W),nt&8){const At=F.dynamicProps;for(let Zt=0;Zt<At.length;Zt++){const Ut=At[Zt],Te=dt[Ut],ge=_t[Ut];(ge!==Te||Ut==="value")&&n(et,Ut,Te,ge,W,Y)}}nt&1&&S.children!==F.children&&u(et,F.children)}else!lt&&ot==null&&D(et,dt,_t,Y,W);((It=_t.onVnodeUpdated)||Pt)&&Ze(()=>{It&&ys(It,Y,F,S),Pt&&uo(F,S,Y,"updated")},J)},N=(S,F,Y,J,W,tt,lt)=>{for(let et=0;et<F.length;et++){const nt=S[et],ot=F[et],Pt=nt.el&&(nt.type===Vt||!cr(nt,ot)||nt.shapeFlag&70)?f(nt.el):Y;w(nt,ot,Pt,null,J,W,tt,lt,!0)}},D=(S,F,Y,J,W)=>{if(F!==Y){if(F!==Ht)for(const tt in F)!Uo(tt)&&!(tt in Y)&&n(S,tt,F[tt],null,W,J);for(const tt in Y){if(Uo(tt))continue;const lt=Y[tt],et=F[tt];lt!==et&&tt!=="value"&&n(S,tt,et,lt,W,J)}"value"in Y&&n(S,"value",F.value,Y.value,W)}},A=(S,F,Y,J,W,tt,lt,et,nt)=>{const ot=F.el=S?S.el:i(""),Pt=F.anchor=S?S.anchor:i("");let{patchFlag:dt,dynamicChildren:_t,slotScopeIds:It}=F;({}).NODE_ENV!=="production"&&(ps||dt&2048)&&(dt=0,nt=!1,_t=null),It&&(et=et?et.concat(It):It),S==null?(s(ot,Y,J),s(Pt,Y,J),I(F.children||[],Y,Pt,W,tt,lt,et,nt)):dt>0&&dt&64&&_t&&S.dynamicChildren?(N(S.dynamicChildren,_t,Y,W,tt,lt,et),{}.NODE_ENV!=="production"?sn(S,F):(F.key!=null||W&&F===W.subTree)&&sn(S,F,!0)):G(S,F,Y,Pt,W,tt,lt,et,nt)},X=(S,F,Y,J,W,tt,lt,et,nt)=>{F.slotScopeIds=et,S==null?F.shapeFlag&512?W.ctx.activate(F,Y,J,lt,nt):rt(F,Y,J,W,tt,lt,nt):Q(S,F,nt)},rt=(S,F,Y,J,W,tt,lt)=>{const et=S.component=Cm(S,J,W);if({}.NODE_ENV!=="production"&&et.type.__hmrId&&rp(et),{}.NODE_ENV!=="production"&&(Gr(S),$s(et,"mount")),Sa(S)&&(et.ctx.renderer=Me),{}.NODE_ENV!=="production"&&$s(et,"init"),Sm(et,!1,lt),{}.NODE_ENV!=="production"&&Ls(et,"init"),et.asyncDep){if({}.NODE_ENV!=="production"&&ps&&(S.el=null),W&&W.registerDep(et,Z,lt),!S.el){const nt=et.subTree=ct(Ye);x(null,nt,F,Y)}}else Z(et,S,F,Y,W,tt,lt);({}).NODE_ENV!=="production"&&(Ur(),Ls(et,"mount"))},Q=(S,F,Y)=>{const J=F.component=S.component;if(gm(S,F,Y))if(J.asyncDep&&!J.asyncResolved){({}).NODE_ENV!=="production"&&Gr(F),at(J,F,Y),{}.NODE_ENV!=="production"&&Ur();return}else J.next=F,J.update();else F.el=S.el,J.vnode=F},Z=(S,F,Y,J,W,tt,lt)=>{const et=()=>{if(S.isMounted){let{next:dt,bu:_t,u:It,parent:At,vnode:Zt}=S;{const Ae=Oc(S);if(Ae){dt&&(dt.el=Zt.el,at(S,dt,lt)),Ae.asyncDep.then(()=>{S.isUnmounted||et()});return}}let Ut=dt,Te;({}).NODE_ENV!=="production"&&Gr(dt||S.vnode),ho(S,!1),dt?(dt.el=Zt.el,at(S,dt,lt)):dt=Zt,_t&&jo(_t),(Te=dt.props&&dt.props.onVnodeBeforeUpdate)&&ys(Te,At,dt,Zt),ho(S,!0),{}.NODE_ENV!=="production"&&$s(S,"render");const ge=za(S);({}).NODE_ENV!=="production"&&Ls(S,"render");const Je=S.subTree;S.subTree=ge,{}.NODE_ENV!=="production"&&$s(S,"patch"),w(Je,ge,f(Je.el),te(Je),S,W,tt),{}.NODE_ENV!=="production"&&Ls(S,"patch"),dt.el=ge.el,Ut===null&&ym(S,ge.el),It&&Ze(It,W),(Te=dt.props&&dt.props.onVnodeUpdated)&&Ze(()=>ys(Te,At,dt,Zt),W),{}.NODE_ENV!=="production"&&oc(S),{}.NODE_ENV!=="production"&&Ur()}else{let dt;const{el:_t,props:It}=F,{bm:At,m:Zt,parent:Ut,root:Te,type:ge}=S,Je=Ro(F);if(ho(S,!1),At&&jo(At),!Je&&(dt=It&&It.onVnodeBeforeMount)&&ys(dt,Ut,F),ho(S,!0),_t&&Fe){const Ae=()=>{({}).NODE_ENV!=="production"&&$s(S,"render"),S.subTree=za(S),{}.NODE_ENV!=="production"&&Ls(S,"render"),{}.NODE_ENV!=="production"&&$s(S,"hydrate"),Fe(_t,S.subTree,S,W,null),{}.NODE_ENV!=="production"&&Ls(S,"hydrate")};Je&&ge.__asyncHydrate?ge.__asyncHydrate(_t,S,Ae):Ae()}else{Te.ce&&Te.ce._injectChildStyle(ge),{}.NODE_ENV!=="production"&&$s(S,"render");const Ae=S.subTree=za(S);({}).NODE_ENV!=="production"&&Ls(S,"render"),{}.NODE_ENV!=="production"&&$s(S,"patch"),w(null,Ae,Y,J,S,W,tt),{}.NODE_ENV!=="production"&&Ls(S,"patch"),F.el=Ae.el}if(Zt&&Ze(Zt,W),!Je&&(dt=It&&It.onVnodeMounted)){const Ae=F;Ze(()=>ys(dt,Ut,Ae),W)}(F.shapeFlag&256||Ut&&Ro(Ut.vnode)&&Ut.vnode.shapeFlag&256)&&S.a&&Ze(S.a,W),S.isMounted=!0,{}.NODE_ENV!=="production"&&up(S),F=Y=J=null}};S.scope.on();const nt=S.effect=new Tl(et);S.scope.off();const ot=S.update=nt.run.bind(nt),Pt=S.job=nt.runIfDirty.bind(nt);Pt.i=S,Pt.id=S.uid,nt.scheduler=()=>Hr(Pt),ho(S,!0),{}.NODE_ENV!=="production"&&(nt.onTrack=S.rtc?dt=>jo(S.rtc,dt):void 0,nt.onTrigger=S.rtg?dt=>jo(S.rtg,dt):void 0),ot()},at=(S,F,Y)=>{F.component=S;const J=S.vnode.props;S.vnode=F,S.next=null,Hp(S,F.props,J,Y),om(S,F.children,Y),Ps(),Ql(S),Os()},G=(S,F,Y,J,W,tt,lt,et,nt=!1)=>{const ot=S&&S.children,Pt=S?S.shapeFlag:0,dt=F.children,{patchFlag:_t,shapeFlag:It}=F;if(_t>0){if(_t&128){gt(ot,dt,Y,J,W,tt,lt,et,nt);return}else if(_t&256){H(ot,dt,Y,J,W,tt,lt,et,nt);return}}It&8?(Pt&16&&Et(ot,W,tt),dt!==ot&&u(Y,dt)):Pt&16?It&16?gt(ot,dt,Y,J,W,tt,lt,et,nt):Et(ot,W,tt,!0):(Pt&8&&u(Y,""),It&16&&I(dt,Y,J,W,tt,lt,et,nt))},H=(S,F,Y,J,W,tt,lt,et,nt)=>{S=S||To,F=F||To;const ot=S.length,Pt=F.length,dt=Math.min(ot,Pt);let _t;for(_t=0;_t<dt;_t++){const It=F[_t]=nt?Hs(F[_t]):as(F[_t]);w(S[_t],It,Y,null,W,tt,lt,et,nt)}ot>Pt?Et(S,W,tt,!0,!1,dt):I(F,Y,J,W,tt,lt,et,nt,dt)},gt=(S,F,Y,J,W,tt,lt,et,nt)=>{let ot=0;const Pt=F.length;let dt=S.length-1,_t=Pt-1;for(;ot<=dt&&ot<=_t;){const It=S[ot],At=F[ot]=nt?Hs(F[ot]):as(F[ot]);if(cr(It,At))w(It,At,Y,null,W,tt,lt,et,nt);else break;ot++}for(;ot<=dt&&ot<=_t;){const It=S[dt],At=F[_t]=nt?Hs(F[_t]):as(F[_t]);if(cr(It,At))w(It,At,Y,null,W,tt,lt,et,nt);else break;dt--,_t--}if(ot>dt){if(ot<=_t){const It=_t+1,At=It<Pt?F[It].el:J;for(;ot<=_t;)w(null,F[ot]=nt?Hs(F[ot]):as(F[ot]),Y,At,W,tt,lt,et,nt),ot++}}else if(ot>_t)for(;ot<=dt;)B(S[ot],W,tt,!0),ot++;else{const It=ot,At=ot,Zt=new Map;for(ot=At;ot<=_t;ot++){const Pe=F[ot]=nt?Hs(F[ot]):as(F[ot]);Pe.key!=null&&({}.NODE_ENV!=="production"&&Zt.has(Pe.key)&&ut("Duplicate keys found during update:",JSON.stringify(Pe.key),"Make sure keys are unique."),Zt.set(Pe.key,ot))}let Ut,Te=0;const ge=_t-At+1;let Je=!1,Ae=0;const ko=new Array(ge);for(ot=0;ot<ge;ot++)ko[ot]=0;for(ot=It;ot<=dt;ot++){const Pe=S[ot];if(Te>=ge){B(Pe,W,tt,!0);continue}let ze;if(Pe.key!=null)ze=Zt.get(Pe.key);else for(Ut=At;Ut<=_t;Ut++)if(ko[Ut-At]===0&&cr(Pe,F[Ut])){ze=Ut;break}ze===void 0?B(Pe,W,tt,!0):(ko[ze-At]=ot+1,ze>=Ae?Ae=ze:Je=!0,w(Pe,F[ze],Y,null,W,tt,lt,et,nt),Te++)}const Wn=Je?lm(ko):To;for(Ut=Wn.length-1,ot=ge-1;ot>=0;ot--){const Pe=At+ot,ze=F[Pe],Zn=Pe+1<Pt?F[Pe+1].el:J;ko[ot]===0?w(null,ze,Y,Zn,W,tt,lt,et,nt):Je&&(Ut<0||ot!==Wn[Ut]?ht(ze,Y,Zn,2):Ut--)}}},ht=(S,F,Y,J,W=null)=>{const{el:tt,type:lt,transition:et,children:nt,shapeFlag:ot}=S;if(ot&6){ht(S.component.subTree,F,Y,J);return}if(ot&128){S.suspense.move(F,Y,J);return}if(ot&64){lt.move(S,F,Y,Me);return}if(lt===Vt){s(tt,F,Y);for(let dt=0;dt<nt.length;dt++)ht(nt[dt],F,Y,J);s(S.anchor,F,Y);return}if(lt===ar){m(S,F,Y);return}if(J!==2&&ot&1&&et)if(J===0)et.beforeEnter(tt),s(tt,F,Y),Ze(()=>et.enter(tt),W);else{const{leave:dt,delayLeave:_t,afterLeave:It}=et,At=()=>s(tt,F,Y),Zt=()=>{dt(tt,()=>{At(),It&&It()})};_t?_t(tt,At,Zt):Zt()}else s(tt,F,Y)},B=(S,F,Y,J=!1,W=!1)=>{const{type:tt,props:lt,ref:et,children:nt,dynamicChildren:ot,shapeFlag:Pt,patchFlag:dt,dirs:_t,cacheIndex:It}=S;if(dt===-2&&(W=!1),et!=null&&Qr(et,null,Y,S,!0),It!=null&&(F.renderCache[It]=void 0),Pt&256){F.ctx.deactivate(S);return}const At=Pt&1&&_t,Zt=!Ro(S);let Ut;if(Zt&&(Ut=lt&<.onVnodeBeforeUnmount)&&ys(Ut,F,S),Pt&6)Mt(S.component,Y,J);else{if(Pt&128){S.suspense.unmount(Y,J);return}At&&uo(S,null,F,"beforeUnmount"),Pt&64?S.type.remove(S,F,Y,Me,J):ot&&!ot.hasOnce&&(tt!==Vt||dt>0&&dt&64)?Et(ot,F,Y,!1,!0):(tt===Vt&&dt&384||!W&&Pt&16)&&Et(nt,F,Y),J&&P(S)}(Zt&&(Ut=lt&<.onVnodeUnmounted)||At)&&Ze(()=>{Ut&&ys(Ut,F,S),At&&uo(S,null,F,"unmounted")},Y)},P=S=>{const{type:F,el:Y,anchor:J,transition:W}=S;if(F===Vt){({}).NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&W&&!W.persisted?S.children.forEach(lt=>{lt.type===Ye?r(lt.el):P(lt)}):Yt(Y,J);return}if(F===ar){b(S);return}const tt=()=>{r(Y),W&&!W.persisted&&W.afterLeave&&W.afterLeave()};if(S.shapeFlag&1&&W&&!W.persisted){const{leave:lt,delayLeave:et}=W,nt=()=>lt(Y,tt);et?et(S.el,tt,nt):nt()}else tt()},Yt=(S,F)=>{let Y;for(;S!==F;)Y=d(S),r(S),S=Y;r(F)},Mt=(S,F,Y)=>{({}).NODE_ENV!=="production"&&S.type.__hmrId&&np(S);const{bum:J,scope:W,job:tt,subTree:lt,um:et,m:nt,a:ot}=S;Rc(nt),Rc(ot),J&&jo(J),W.stop(),tt&&(tt.flags|=8,B(lt,S,F,Y)),et&&Ze(et,F),Ze(()=>{S.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve()),{}.NODE_ENV!=="production"&&dp(S)},Et=(S,F,Y,J=!1,W=!1,tt=0)=>{for(let lt=tt;lt<S.length;lt++)B(S[lt],F,Y,J,W)},te=S=>{if(S.shapeFlag&6)return te(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const F=d(S.anchor||S.el),Y=F&&F[gp];return Y?d(Y):F};let Xt=!1;const j=(S,F,Y)=>{S==null?F._vnode&&B(F._vnode,null,null,!0):w(F._vnode||null,S,F,null,null,null,Y),F._vnode=S,Xt||(Xt=!0,Ql(),Kl(),Xt=!1)},Me={p:w,um:B,m:ht,r:P,mt:rt,mc:I,pc:G,pbc:N,n:te,o};let je,Fe;return t&&([je,Fe]=t(Me)),{render:j,hydrate:je,createApp:Xp(j,je)}}function Na({type:o,props:t},e){return e==="svg"&&o==="foreignObject"||e==="mathml"&&o==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function ho({effect:o,job:t},e){e?(o.flags|=32,t.flags|=4):(o.flags&=-33,t.flags&=-5)}function im(o,t){return(!o||o&&!o.pendingBranch)&&t&&!t.persisted}function sn(o,t,e=!1){const s=o.children,r=t.children;if(Tt(s)&&Tt(r))for(let n=0;n<s.length;n++){const a=s[n];let i=r[n];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[n]=Hs(r[n]),i.el=a.el),!e&&i.patchFlag!==-2&&sn(a,i)),i.type===nr&&(i.el=a.el),{}.NODE_ENV!=="production"&&i.type===Ye&&!i.el&&(i.el=a.el)}}function lm(o){const t=o.slice(),e=[0];let s,r,n,a,i;const l=o.length;for(s=0;s<l;s++){const c=o[s];if(c!==0){if(r=e[e.length-1],o[r]<c){t[s]=r,e.push(s);continue}for(n=0,a=e.length-1;n<a;)i=n+a>>1,o[e[i]]<c?n=i+1:a=i;c<o[e[n]]&&(n>0&&(t[s]=e[n-1]),e[n]=s)}}for(n=e.length,a=e[n-1];n-- >0;)e[n]=a,a=t[a];return e}function Oc(o){const t=o.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Oc(t)}function Rc(o){if(o)for(let t=0;t<o.length;t++)o[t].flags|=8}const cm=Symbol.for("v-scx"),um=()=>{{const o=tn(cm);return o||{}.NODE_ENV!=="production"&&ut("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),o}};function Ic(o,t){return Ma(o,null,t)}function St(o,t,e){return{}.NODE_ENV!=="production"&&!Ot(t)&&ut("`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."),Ma(o,t,e)}function Ma(o,t,e=Ht){const{immediate:s,deep:r,flush:n,once:a}=e;({}).NODE_ENV!=="production"&&!t&&(s!==void 0&&ut('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&ut('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&ut('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const i=ae({},e);({}).NODE_ENV!=="production"&&(i.onWarn=ut);const l=t&&s||!t&&n!=="post";let c;if(fr){if(n==="sync"){const p=um();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=ye,p.resume=ye,p.pause=ye,p}}const u=ke;i.call=(p,h,w)=>ds(p,u,h,w);let f=!1;n==="post"?i.scheduler=p=>{Ze(p,u&&u.suspense)}:n!=="sync"&&(f=!0,i.scheduler=(p,h)=>{h?p():Hr(p)}),i.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const d=qh(o,t,i);return fr&&(c?c.push(d):l&&d()),d}function fm(o,t,e){const s=this.proxy,r=ce(o)?o.includes(".")?Fc(s,o):()=>s[o]:o.bind(s,s);let n;Ot(t)?n=t:(n=t.handler,e=t);const a=ur(this),i=Ma(r,n.bind(s),e);return a(),i}function Fc(o,t){const e=t.split(".");return()=>{let s=o;for(let r=0;r<e.length&&s;r++)s=s[e[r]];return s}}const dm=(o,t)=>t==="modelValue"||t==="model-value"?o.modelModifiers:o[`${t}Modifiers`]||o[`${Be(t)}Modifiers`]||o[`${He(t)}Modifiers`];function hm(o,t,...e){if(o.isUnmounted)return;const s=o.vnode.props||Ht;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[f]}=o;if(u)if(!(t in u))(!f||!(oo(Be(t))in f))&&ut(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${oo(Be(t))}" prop.`);else{const d=u[t];Ot(d)&&(d(...e)||ut(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=e;const n=t.startsWith("update:"),a=n&&dm(s,t.slice(7));if(a&&(a.trim&&(r=e.map(u=>ce(u)?u.trim():u)),a.number&&(r=e.map(uh))),{}.NODE_ENV!=="production"&&mp(o,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&s[oo(u)]&&ut(`Event "${u}" is emitted in component ${cn(o,o.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 "${He(t)}" instead of "${t}".`)}let i,l=s[i=oo(t)]||s[i=oo(Be(t))];!l&&n&&(l=s[i=oo(He(t))]),l&&ds(l,o,6,r);const c=s[i+"Once"];if(c){if(!o.emitted)o.emitted={};else if(o.emitted[i])return;o.emitted[i]=!0,ds(c,o,6,r)}}function Dc(o,t,e=!1){const s=t.emitsCache,r=s.get(o);if(r!==void 0)return r;const n=o.emits;let a={},i=!1;if(!Ot(o)){const l=c=>{const u=Dc(c,t,!0);u&&(i=!0,ae(a,u))};!e&&t.mixins.length&&t.mixins.forEach(l),o.extends&&l(o.extends),o.mixins&&o.mixins.forEach(l)}return!n&&!i?(qt(o)&&s.set(o,null),null):(Tt(n)?n.forEach(l=>a[l]=null):ae(a,n),qt(o)&&s.set(o,a),a)}function on(o,t){return!o||!Go(t)?!1:(t=t.slice(2).replace(/Once$/,""),Gt(o,t[0].toLowerCase()+t.slice(1))||Gt(o,He(t))||Gt(o,t))}let Aa=!1;function rn(){Aa=!0}function za(o){const{type:t,vnode:e,proxy:s,withProxy:r,propsOptions:[n],slots:a,attrs:i,emit:l,render:c,renderCache:u,props:f,data:d,setupState:p,ctx:h,inheritAttrs:w}=o,_=qr(o);let x,v;({}).NODE_ENV!=="production"&&(Aa=!1);try{if(e.shapeFlag&4){const b=r||s,C={}.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(b,{get(U,K,I){return ut(`Property '${String(K)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(U,K,I)}}):b;x=as(c.call(C,b,u,{}.NODE_ENV!=="production"?fs(f):f,p,d,h)),v=i}else{const b=t;({}).NODE_ENV!=="production"&&i===f&&rn(),x=as(b.length>1?b({}.NODE_ENV!=="production"?fs(f):f,{}.NODE_ENV!=="production"?{get attrs(){return rn(),fs(i)},slots:a,emit:l}:{attrs:i,slots:a,emit:l}):b({}.NODE_ENV!=="production"?fs(f):f,null)),v=t.props?i:pm(i)}}catch(b){ir.length=0,Jo(b,o,1),x=ct(Ye)}let g=x,m;if({}.NODE_ENV!=="production"&&x.patchFlag>0&&x.patchFlag&2048&&([g,m]=$c(x)),v&&w!==!1){const b=Object.keys(v),{shapeFlag:C}=g;if(b.length){if(C&7)n&&b.some(Rr)&&(v=mm(v,n)),g=js(g,v,!1,!0);else if({}.NODE_ENV!=="production"&&!Aa&&g.type!==Ye){const U=Object.keys(i),K=[],I=[];for(let $=0,N=U.length;$<N;$++){const D=U[$];Go(D)?Rr(D)||K.push(D[2].toLowerCase()+D.slice(3)):I.push(D)}I.length&&ut(`Extraneous non-props attributes (${I.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),K.length&&ut(`Extraneous non-emits event listeners (${K.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"&&!Lc(g)&&ut("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=js(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Lc(g)&&ut("Component inside <Transition> renders non-element root node that cannot be animated."),Ta(g,e.transition)),{}.NODE_ENV!=="production"&&m?m(g):x=g,qr(_),x}const $c=o=>{const t=o.children,e=o.dynamicChildren,s=Va(t,!1);if(s){if({}.NODE_ENV!=="production"&&s.patchFlag>0&&s.patchFlag&2048)return $c(s)}else return[o,void 0];const r=t.indexOf(s),n=e?e.indexOf(s):-1,a=i=>{t[r]=i,e&&(n>-1?e[n]=i:i.patchFlag>0&&(o.dynamicChildren=[...e,i]))};return[as(s),a]};function Va(o,t=!0){let e;for(let s=0;s<o.length;s++){const r=o[s];if(po(r)){if(r.type!==Ye||r.children==="v-if"){if(e)return;if(e=r,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return Va(e.children)}}else return}return e}const pm=o=>{let t;for(const e in o)(e==="class"||e==="style"||Go(e))&&((t||(t={}))[e]=o[e]);return t},mm=(o,t)=>{const e={};for(const s in o)(!Rr(s)||!(s.slice(9)in t))&&(e[s]=o[s]);return e},Lc=o=>o.shapeFlag&7||o.type===Ye;function gm(o,t,e){const{props:s,children:r,component:n}=o,{props:a,children:i,patchFlag:l}=t,c=n.emitsOptions;if({}.NODE_ENV!=="production"&&(r||i)&&ps||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return s?Nc(s,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(a[d]!==s[d]&&!on(c,d))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:s===a?!1:s?a?Nc(s,a,c):!0:!!a;return!1}function Nc(o,t,e){const s=Object.keys(t);if(s.length!==Object.keys(o).length)return!0;for(let r=0;r<s.length;r++){const n=s[r];if(t[n]!==o[n]&&!on(e,n))return!0}return!1}function ym({vnode:o,parent:t},e){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===o&&(s.el=o.el),s===o)(o=t.vnode).el=e,t=t.parent;else break}}const Mc=o=>o.__isSuspense;function vm(o,t){t&&t.pendingBranch?Tt(o)?t.effects.push(...o):t.effects.push(o):ql(o)}const Vt=Symbol.for("v-fgt"),nr=Symbol.for("v-txt"),Ye=Symbol.for("v-cmt"),ar=Symbol.for("v-stc"),ir=[];let qe=null;function L(o=!1){ir.push(qe=o?null:[])}function bm(){ir.pop(),qe=ir[ir.length-1]||null}let lr=1;function Ac(o,t=!1){lr+=o,o<0&&qe&&t&&(qe.hasOnce=!0)}function zc(o){return o.dynamicChildren=lr>0?qe||To:null,bm(),lr>0&&qe&&qe.push(o),o}function V(o,t,e,s,r,n){return zc(E(o,t,e,s,r,n,!0))}function Nt(o,t,e,s,r){return zc(ct(o,t,e,s,r,!0))}function po(o){return o?o.__v_isVNode===!0:!1}function cr(o,t){if({}.NODE_ENV!=="production"&&t.shapeFlag&6&&o.component){const e=Wr.get(t.type);if(e&&e.has(o.component))return o.shapeFlag&=-257,t.shapeFlag&=-513,!1}return o.type===t.type&&o.key===t.key}const _m=(...o)=>Bc(...o),Vc=({key:o})=>o??null,nn=({ref:o,ref_key:t,ref_for:e})=>(typeof o=="number"&&(o=""+o),o!=null?ce(o)||de(o)||Ot(o)?{i:be,r:o,k:t,f:!!e}:o:null);function E(o,t=null,e=null,s=0,r=null,n=o===Vt?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:o,props:t,key:t&&Vc(t),ref:t&&nn(t),scopeId:nc,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:be};return i?(Ba(l,e),n&128&&o.normalize(l)):e&&(l.shapeFlag|=ce(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ut("VNode created with invalid key (NaN). VNode type:",l.type),lr>0&&!a&&qe&&(l.patchFlag>0||n&6)&&l.patchFlag!==32&&qe.push(l),l}const ct={}.NODE_ENV!=="production"?_m:Bc;function Bc(o,t=null,e=null,s=0,r=null,n=!1){if((!o||o===Rp)&&({}.NODE_ENV!=="production"&&!o&&ut(`Invalid vnode type when creating vnode: ${o}.`),o=Ye),po(o)){const i=js(o,t,!0);return e&&Ba(i,e),lr>0&&!n&&qe&&(i.shapeFlag&6?qe[qe.indexOf(o)]=i:qe.push(i)),i.patchFlag=-2,i}if(Kc(o)&&(o=o.__vccOpts),t){t=xm(t);let{class:i,style:l}=t;i&&!ce(i)&&(t.class=ee(i)),qt(l)&&(Br(l)&&!Tt(l)&&(l=ae({},l)),t.style=M(l))}const a=ce(o)?1:Mc(o)?128:yp(o)?64:qt(o)?4:Ot(o)?2:0;return{}.NODE_ENV!=="production"&&a&4&&Br(o)&&(o=Lt(o),ut("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`.",`
|
|
19
|
-
Component that was made reactive: `,o)),E(o,t,e,s,r,a,n,!0)}function xm(o){return o?Br(o)||bc(o)?ae({},o):o:null}function js(o,t,e=!1,s=!1){const{props:r,ref:n,patchFlag:a,children:i,transition:l}=o,c=t?Ya(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:o.type,props:c,key:c&&Vc(c),ref:t&&t.ref?e&&n?Tt(n)?n.concat(nn(t)):[n,nn(t)]:nn(t):n,scopeId:o.scopeId,slotScopeIds:o.slotScopeIds,children:{}.NODE_ENV!=="production"&&a===-1&&Tt(i)?i.map(Yc):i,target:o.target,targetStart:o.targetStart,targetAnchor:o.targetAnchor,staticCount:o.staticCount,shapeFlag:o.shapeFlag,patchFlag:t&&o.type!==Vt?a===-1?16:a|16:a,dynamicProps:o.dynamicProps,dynamicChildren:o.dynamicChildren,appContext:o.appContext,dirs:o.dirs,transition:l,component:o.component,suspense:o.suspense,ssContent:o.ssContent&&js(o.ssContent),ssFallback:o.ssFallback&&js(o.ssFallback),el:o.el,anchor:o.anchor,ctx:o.ctx,ce:o.ce};return l&&s&&Ta(u,l.clone(u)),u}function Yc(o){const t=js(o);return Tt(o.children)&&(t.children=o.children.map(Yc)),t}function jt(o=" ",t=0){return ct(nr,null,o,t)}function Xc(o,t){const e=ct(ar,null,o);return e.staticCount=t,e}function Rt(o="",t=!1){return t?(L(),Nt(Ye,null,o)):ct(Ye,null,o)}function as(o){return o==null||typeof o=="boolean"?ct(Ye):Tt(o)?ct(Vt,null,o.slice()):po(o)?Hs(o):ct(nr,null,String(o))}function Hs(o){return o.el===null&&o.patchFlag!==-1||o.memo?o:js(o)}function Ba(o,t){let e=0;const{shapeFlag:s}=o;if(t==null)t=null;else if(Tt(t))e=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ba(o,r()),r._c&&(r._d=!0));return}else{e=32;const r=t._;!r&&!bc(t)?t._ctx=be:r===3&&be&&(be.slots._===1?t._=1:(t._=2,o.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:be},e=32):(t=String(t),s&64?(e=16,t=[jt(t)]):e=8);o.children=t,o.shapeFlag|=e}function Ya(...o){const t={};for(let e=0;e<o.length;e++){const s=o[e];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=ee([t.class,s.class]));else if(r==="style")t.style=M([t.style,s.style]);else if(Go(r)){const n=t[r],a=s[r];a&&n!==a&&!(Tt(n)&&n.includes(a))&&(t[r]=n?[].concat(n,a):a)}else r!==""&&(t[r]=s[r])}return t}function ys(o,t,e,s=null){ds(o,t,7,[e,s])}const wm=gc();let km=0;function Cm(o,t,e){const s=o.type,r=(t?t.appContext:o.appContext)||wm,n={uid:km++,vnode:o,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xc(s,r),emitsOptions:Dc(s,r),emit:null,emitted:null,propsDefaults:Ht,inheritAttrs:s.inheritAttrs,ctx:Ht,data:Ht,props:Ht,attrs:Ht,slots:Ht,refs:Ht,setupState:Ht,setupContext: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"?n.ctx=Ip(n):n.ctx={_:n},n.root=t?t.root:n,n.emit=hm.bind(null,n),o.ce&&o.ce(n),n}let ke=null;const Gc=()=>ke||be;let an,Xa;{const o=Ho(),t=(e,s)=>{let r;return(r=o[e])||(r=o[e]=[]),r.push(s),n=>{r.length>1?r.forEach(a=>a(n)):r[0](n)}};an=t("__VUE_INSTANCE_SETTERS__",e=>ke=e),Xa=t("__VUE_SSR_SETTERS__",e=>fr=e)}const ur=o=>{const t=ke;return an(o),o.scope.on(),()=>{o.scope.off(),an(t)}},Uc=()=>{ke&&ke.scope.off(),an(null)},Tm=Ss("slot,component");function Ga(o,{isNativeTag:t}){(Tm(o)||t(o))&&ut("Do not use built-in or reserved HTML elements as component id: "+o)}function jc(o){return o.vnode.shapeFlag&4}let fr=!1;function Sm(o,t=!1,e=!1){t&&Xa(t);const{props:s,children:r}=o.vnode,n=jc(o);Up(o,s,n,t),sm(o,r,e);const a=n?Em(o,t):void 0;return t&&Xa(!1),a}function Em(o,t){var e;const s=o.type;if({}.NODE_ENV!=="production"){if(s.name&&Ga(s.name,o.appContext.config),s.components){const n=Object.keys(s.components);for(let a=0;a<n.length;a++)Ga(n[a],o.appContext.config)}if(s.directives){const n=Object.keys(s.directives);for(let a=0;a<n.length;a++)ac(n[a])}s.compilerOptions&&Pm()&&ut('"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.')}o.accessCache=Object.create(null),o.proxy=new Proxy(o.ctx,uc),{}.NODE_ENV!=="production"&&Fp(o);const{setup:r}=s;if(r){Ps();const n=o.setupContext=r.length>1?qc(o):null,a=ur(o),i=Eo(r,o,0,[{}.NODE_ENV!=="production"?fs(o.props):o.props,n]),l=oa(i);if(Os(),a(),(l||o.sp)&&!Ro(o)&&ic(o),l){if(i.then(Uc,Uc),t)return i.then(c=>{Hc(o,c,t)}).catch(c=>{Jo(c,o,0)});if(o.asyncDep=i,{}.NODE_ENV!=="production"&&!o.suspense){const c=(e=s.name)!=null?e:"Anonymous";ut(`Component <${c}>: 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 Hc(o,i,t)}else Wc(o,t)}function Hc(o,t,e){Ot(t)?o.type.__ssrInlineRender?o.ssrRender=t:o.render=t:qt(t)?({}.NODE_ENV!=="production"&&po(t)&&ut("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(o.devtoolsRawSetupState=t),o.setupState=Ul(t),{}.NODE_ENV!=="production"&&Dp(o)):{}.NODE_ENV!=="production"&&t!==void 0&&ut(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Wc(o,e)}let Ua;const Pm=()=>!Ua;function Wc(o,t,e){const s=o.type;if(!o.render){if(!t&&Ua&&!s.render){const r=s.template||Ia(o).template;if(r){({}).NODE_ENV!=="production"&&$s(o,"compile");const{isCustomElement:n,compilerOptions:a}=o.appContext.config,{delimiters:i,compilerOptions:l}=s,c=ae(ae({isCustomElement:n,delimiters:i},a),l);s.render=Ua(r,c),{}.NODE_ENV!=="production"&&Ls(o,"compile")}}o.render=s.render||ye}{const r=ur(o);Ps();try{Mp(o)}finally{Os(),r()}}({}).NODE_ENV!=="production"&&!s.render&&o.render===ye&&!t&&(s.template?ut('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".'):ut("Component is missing template or render function: ",s))}const Zc={}.NODE_ENV!=="production"?{get(o,t){return rn(),ve(o,"get",""),o[t]},set(){return ut("setupContext.attrs is readonly."),!1},deleteProperty(){return ut("setupContext.attrs is readonly."),!1}}:{get(o,t){return ve(o,"get",""),o[t]}};function Om(o){return new Proxy(o.slots,{get(t,e){return ve(o,"get","$slots"),t[e]}})}function qc(o){const t=e=>{if({}.NODE_ENV!=="production"&&(o.exposed&&ut("expose() should be called only once per setup()."),e!=null)){let s=typeof e;s==="object"&&(Tt(e)?s="array":de(e)&&(s="ref")),s!=="object"&&ut(`expose() should be passed a plain object, received ${s}.`)}o.exposed=e||{}};if({}.NODE_ENV!=="production"){let e,s;return Object.freeze({get attrs(){return e||(e=new Proxy(o.attrs,Zc))},get slots(){return s||(s=Om(o))},get emit(){return(r,...n)=>o.emit(r,...n)},expose:t})}else return{attrs:new Proxy(o.attrs,Zc),slots:o.slots,emit:o.emit,expose:t}}function ln(o){return o.exposed?o.exposeProxy||(o.exposeProxy=new Proxy(Ul(Xh(o.exposed)),{get(t,e){if(e in t)return t[e];if(e in fo)return fo[e](o)},has(t,e){return e in t||e in fo}})):o.proxy}const Rm=/(?:^|[-_])(\w)/g,Im=o=>o.replace(Rm,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qc(o,t=!0){return Ot(o)?o.displayName||o.name:o.name||t&&o.__name}function cn(o,t,e=!1){let s=Qc(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&o&&o.parent){const r=n=>{for(const a in n)if(n[a]===t)return a};s=r(o.components||o.parent.type.components)||r(o.appContext.components)}return s?Im(s):e?"App":"Anonymous"}function Kc(o){return Ot(o)&&"__vccOpts"in o}const Fm=(o,t)=>{const e=Wh(o,t,fr);if({}.NODE_ENV!=="production"){const s=Gc();s&&s.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function Kt(o,t,e){const s=arguments.length;return s===2?qt(t)&&!Tt(t)?po(t)?ct(o,null,[t]):ct(o,t):ct(o,null,t):(s>3?e=Array.prototype.slice.call(arguments,2):s===3&&po(e)&&(e=[e]),ct(o,t,e))}function Dm(){if({}.NODE_ENV==="production"||typeof window>"u")return;const o={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},s={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(f){return qt(f)?f.__isVue?["div",o,"VueInstance"]:de(f)?["div",{},["span",o,u(f)],"<",i("_value"in f?f._value:f),">"]:no(f)?["div",{},["span",o,De(f)?"ShallowReactive":"Reactive"],"<",i(f),`>${Is(f)?" (readonly)":""}`]:Is(f)?["div",{},["span",o,De(f)?"ShallowReadonly":"Readonly"],"<",i(f),">"]:null:null},hasBody(f){return f&&f.__isVue},body(f){if(f&&f.__isVue)return["div",{},...n(f.$)]}};function n(f){const d=[];f.type.props&&f.props&&d.push(a("props",Lt(f.props))),f.setupState!==Ht&&d.push(a("setup",f.setupState)),f.data!==Ht&&d.push(a("data",Lt(f.data)));const p=l(f,"computed");p&&d.push(a("computed",p));const h=l(f,"inject");return h&&d.push(a("injected",h)),d.push(["div",{},["span",{style:s.style+";opacity:0.66"},"$ (internal): "],["object",{object:f}]]),d}function a(f,d){return d=ae({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},f],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(p=>["div",{},["span",s,p+": "],i(d[p],!1)])]]:["span",{}]}function i(f,d=!0){return typeof f=="number"?["span",t,f]:typeof f=="string"?["span",e,JSON.stringify(f)]:typeof f=="boolean"?["span",s,f]:qt(f)?["object",{object:d?Lt(f):f}]:["span",e,String(f)]}function l(f,d){const p=f.type;if(Ot(p))return;const h={};for(const w in f.ctx)c(p,w,d)&&(h[w]=f.ctx[w]);return h}function c(f,d,p){const h=f[p];if(Tt(h)&&h.includes(d)||qt(h)&&d in h||f.extends&&c(f.extends,d,p)||f.mixins&&f.mixins.some(w=>c(w,d,p)))return!0}function u(f){return De(f)?"ShallowRef":f.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const Jc="3.5.13",ts={}.NODE_ENV!=="production"?ut:ye;/**
|
|
18
|
+
For more details, see https://link.vuejs.org/feature-flags.`)}}const qe=Em;function pm(s){return mm(s)}function mm(s,t){hm();const e=Zo();e.__VUE__=!0,{}.NODE_ENV!=="production"&&ac(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:o,remove:r,patchProp:n,createElement:a,createText:i,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=ve,insertStaticContent:f}=s,b=(S,F,Y,K=null,H=null,J=null,lt=void 0,tt=null,nt={}.NODE_ENV!=="production"&&gs?!1:!!F.dynamicChildren)=>{if(S===F)return;S&&!dr(S,F)&&(K=ee(S),B(S,H,J,!0),S=null),F.patchFlag===-2&&(nt=!1,F.dynamicChildren=null);const{type:st,ref:Pt,shapeFlag:ft}=F;switch(st){case ir:w(S,F,Y,K);break;case Xe:x(S,F,Y,K);break;case lr:S==null?v(F,Y,K,lt):{}.NODE_ENV!=="production"&&g(S,F,Y,lt);break;case Vt:M(S,F,Y,K,H,J,lt,tt,nt);break;default:ft&1?k(S,F,Y,K,H,J,lt,tt,nt):ft&6?X(S,F,Y,K,H,J,lt,tt,nt):ft&64||ft&128?st.process(S,F,Y,K,H,J,lt,tt,nt,Me):{}.NODE_ENV!=="production"&&ut("Invalid VNode type:",st,`(${typeof st})`)}Pt!=null&&H&&Jr(Pt,S&&S.ref,J,F||S,!F)},w=(S,F,Y,K)=>{if(S==null)o(F.el=i(F.children),Y,K);else{const H=F.el=S.el;F.children!==S.children&&c(H,F.children)}},x=(S,F,Y,K)=>{S==null?o(F.el=l(F.children||""),Y,K):F.el=S.el},v=(S,F,Y,K)=>{[S.el,S.anchor]=f(S.children,F,Y,K,S.el,S.anchor)},g=(S,F,Y,K)=>{if(F.children!==S.children){const H=h(S.anchor);_(S),[F.el,F.anchor]=f(F.children,Y,H,K)}else F.el=S.el,F.anchor=S.anchor},m=({el:S,anchor:F},Y,K)=>{let H;for(;S&&S!==F;)H=h(S),o(S,Y,K),S=H;o(F,Y,K)},_=({el:S,anchor:F})=>{let Y;for(;S&&S!==F;)Y=h(S),r(S),S=Y;r(F)},k=(S,F,Y,K,H,J,lt,tt,nt)=>{F.type==="svg"?lt="svg":F.type==="math"&&(lt="mathml"),S==null?Z(F,Y,K,H,J,lt,tt,nt):$(S,F,H,J,lt,tt,nt)},Z=(S,F,Y,K,H,J,lt,tt)=>{let nt,st;const{props:Pt,shapeFlag:ft,transition:_t,dirs:It}=S;if(nt=S.el=a(S.type,J,Pt&&Pt.is,Pt),ft&8?u(nt,S.children):ft&16&&R(S.children,nt,null,K,H,Ba(S,J),lt,tt),It&&ho(S,null,K,"created"),ot(nt,S,S.scopeId,lt,K),Pt){for(const qt in Pt)qt!=="value"&&!Ho(qt)&&n(nt,qt,null,Pt[qt],J,K);"value"in Pt&&n(nt,"value",null,Pt.value,J),(st=Pt.onVnodeBeforeMount)&&bs(st,K,S)}({}).NODE_ENV!=="production"&&(Nr(nt,"__vnode",S,!0),Nr(nt,"__vueParentComponent",K,!0)),It&&ho(S,null,K,"beforeMount");const Mt=gm(H,_t);Mt&&_t.beforeEnter(nt),o(nt,F,Y),((st=Pt&&Pt.onVnodeMounted)||Mt||It)&&qe(()=>{st&&bs(st,K,S),Mt&&_t.enter(nt),It&&ho(S,null,K,"mounted")},H)},ot=(S,F,Y,K,H)=>{if(Y&&p(S,Y),K)for(let J=0;J<K.length;J++)p(S,K[J]);if(H){let J=H.subTree;if({}.NODE_ENV!=="production"&&J.patchFlag>0&&J.patchFlag&2048&&(J=Ua(J.children)||J),F===J||Bc(J.type)&&(J.ssContent===F||J.ssFallback===F)){const lt=H.vnode;ot(S,lt,lt.scopeId,lt.slotScopeIds,H.parent)}}},R=(S,F,Y,K,H,J,lt,tt,nt=0)=>{for(let st=nt;st<S.length;st++){const Pt=S[st]=tt?Zs(S[st]):is(S[st]);b(null,Pt,F,Y,K,H,J,lt,tt)}},$=(S,F,Y,K,H,J,lt)=>{const tt=F.el=S.el;({}).NODE_ENV!=="production"&&(tt.__vnode=F);let{patchFlag:nt,dynamicChildren:st,dirs:Pt}=F;nt|=S.patchFlag&16;const ft=S.props||Wt,_t=F.props||Wt;let It;if(Y&&mo(Y,!1),(It=_t.onVnodeBeforeUpdate)&&bs(It,Y,F,S),Pt&&ho(F,S,Y,"beforeUpdate"),Y&&mo(Y,!0),{}.NODE_ENV!=="production"&&gs&&(nt=0,lt=!1,st=null),(ft.innerHTML&&_t.innerHTML==null||ft.textContent&&_t.textContent==null)&&u(tt,""),st?(A(S.dynamicChildren,st,tt,Y,K,Ba(F,H),J),{}.NODE_ENV!=="production"&&rn(S,F)):lt||G(S,F,tt,null,Y,K,Ba(F,H),J,!1),nt>0){if(nt&16)D(tt,ft,_t,Y,H);else if(nt&2&&ft.class!==_t.class&&n(tt,"class",null,_t.class,H),nt&4&&n(tt,"style",ft.style,_t.style,H),nt&8){const Mt=F.dynamicProps;for(let qt=0;qt<Mt.length;qt++){const jt=Mt[qt],Se=ft[jt],ye=_t[jt];(ye!==Se||jt==="value")&&n(tt,jt,Se,ye,H,Y)}}nt&1&&S.children!==F.children&&u(tt,F.children)}else!lt&&st==null&&D(tt,ft,_t,Y,H);((It=_t.onVnodeUpdated)||Pt)&&qe(()=>{It&&bs(It,Y,F,S),Pt&&ho(F,S,Y,"updated")},K)},A=(S,F,Y,K,H,J,lt)=>{for(let tt=0;tt<F.length;tt++){const nt=S[tt],st=F[tt],Pt=nt.el&&(nt.type===Vt||!dr(nt,st)||nt.shapeFlag&70)?d(nt.el):Y;b(nt,st,Pt,null,K,H,J,lt,!0)}},D=(S,F,Y,K,H)=>{if(F!==Y){if(F!==Wt)for(const J in F)!Ho(J)&&!(J in Y)&&n(S,J,F[J],null,H,K);for(const J in Y){if(Ho(J))continue;const lt=Y[J],tt=F[J];lt!==tt&&J!=="value"&&n(S,J,tt,lt,H,K)}"value"in Y&&n(S,"value",F.value,Y.value,H)}},M=(S,F,Y,K,H,J,lt,tt,nt)=>{const st=F.el=S?S.el:i(""),Pt=F.anchor=S?S.anchor:i("");let{patchFlag:ft,dynamicChildren:_t,slotScopeIds:It}=F;({}).NODE_ENV!=="production"&&(gs||ft&2048)&&(ft=0,nt=!1,_t=null),It&&(tt=tt?tt.concat(It):It),S==null?(o(st,Y,K),o(Pt,Y,K),R(F.children||[],Y,Pt,H,J,lt,tt,nt)):ft>0&&ft&64&&_t&&S.dynamicChildren?(A(S.dynamicChildren,_t,Y,H,J,lt,tt),{}.NODE_ENV!=="production"?rn(S,F):(F.key!=null||H&&F===H.subTree)&&rn(S,F,!0)):G(S,F,Y,Pt,H,J,lt,tt,nt)},X=(S,F,Y,K,H,J,lt,tt,nt)=>{F.slotScopeIds=tt,S==null?F.shapeFlag&512?H.ctx.activate(F,Y,K,lt,nt):rt(F,Y,K,H,J,lt,nt):Q(S,F,nt)},rt=(S,F,Y,K,H,J,lt)=>{const tt=S.component=Dm(S,K,H);if({}.NODE_ENV!=="production"&&tt.type.__hmrId&&hp(tt),{}.NODE_ENV!=="production"&&(jr(S),Ns(tt,"mount")),Ia(S)&&(tt.ctx.renderer=Me),{}.NODE_ENV!=="production"&&Ns(tt,"init"),Lm(tt,!1,lt),{}.NODE_ENV!=="production"&&Ms(tt,"init"),tt.asyncDep){if({}.NODE_ENV!=="production"&&gs&&(S.el=null),H&&H.registerDep(tt,W,lt),!S.el){const nt=tt.subTree=ct(Xe);x(null,nt,F,Y)}}else W(tt,S,F,Y,H,J,lt);({}).NODE_ENV!=="production"&&(Hr(),Ms(tt,"mount"))},Q=(S,F,Y)=>{const K=F.component=S.component;if(Tm(S,F,Y))if(K.asyncDep&&!K.asyncResolved){({}).NODE_ENV!=="production"&&jr(F),at(K,F,Y),{}.NODE_ENV!=="production"&&Hr();return}else K.next=F,K.update();else F.el=S.el,K.vnode=F},W=(S,F,Y,K,H,J,lt)=>{const tt=()=>{if(S.isMounted){let{next:ft,bu:_t,u:It,parent:Mt,vnode:qt}=S;{const ze=Dc(S);if(ze){ft&&(ft.el=qt.el,at(S,ft,lt)),ze.asyncDep.then(()=>{S.isUnmounted||tt()});return}}let jt=ft,Se;({}).NODE_ENV!=="production"&&jr(ft||S.vnode),mo(S,!1),ft?(ft.el=qt.el,at(S,ft,lt)):ft=qt,_t&&Wo(_t),(Se=ft.props&&ft.props.onVnodeBeforeUpdate)&&bs(Se,Mt,ft,qt),mo(S,!0),{}.NODE_ENV!=="production"&&Ns(S,"render");const ye=Ga(S);({}).NODE_ENV!=="production"&&Ms(S,"render");const ts=S.subTree;S.subTree=ye,{}.NODE_ENV!=="production"&&Ns(S,"patch"),b(ts,ye,d(ts.el),ee(ts),S,H,J),{}.NODE_ENV!=="production"&&Ms(S,"patch"),ft.el=ye.el,jt===null&&Sm(S,ye.el),It&&qe(It,H),(Se=ft.props&&ft.props.onVnodeUpdated)&&qe(()=>bs(Se,Mt,ft,qt),H),{}.NODE_ENV!=="production"&&ic(S),{}.NODE_ENV!=="production"&&Hr()}else{let ft;const{el:_t,props:It}=F,{bm:Mt,m:qt,parent:jt,root:Se,type:ye}=S,ts=Fo(F);if(mo(S,!1),Mt&&Wo(Mt),!ts&&(ft=It&&It.onVnodeBeforeMount)&&bs(ft,jt,F),mo(S,!0),_t&&De){const ze=()=>{({}).NODE_ENV!=="production"&&Ns(S,"render"),S.subTree=Ga(S),{}.NODE_ENV!=="production"&&Ms(S,"render"),{}.NODE_ENV!=="production"&&Ns(S,"hydrate"),De(_t,S.subTree,S,H,null),{}.NODE_ENV!=="production"&&Ms(S,"hydrate")};ts&&ye.__asyncHydrate?ye.__asyncHydrate(_t,S,ze):ze()}else{Se.ce&&Se.ce._injectChildStyle(ye),{}.NODE_ENV!=="production"&&Ns(S,"render");const ze=S.subTree=Ga(S);({}).NODE_ENV!=="production"&&Ms(S,"render"),{}.NODE_ENV!=="production"&&Ns(S,"patch"),b(null,ze,Y,K,S,H,J),{}.NODE_ENV!=="production"&&Ms(S,"patch"),F.el=ze.el}if(qt&&qe(qt,H),!ts&&(ft=It&&It.onVnodeMounted)){const ze=F;qe(()=>bs(ft,jt,ze),H)}(F.shapeFlag&256||jt&&Fo(jt.vnode)&&jt.vnode.shapeFlag&256)&&S.a&&qe(S.a,H),S.isMounted=!0,{}.NODE_ENV!=="production"&&bp(S),F=Y=K=null}};S.scope.on();const nt=S.effect=new Ol(tt);S.scope.off();const st=S.update=nt.run.bind(nt),Pt=S.job=nt.runIfDirty.bind(nt);Pt.i=S,Pt.id=S.uid,nt.scheduler=()=>Zr(Pt),mo(S,!0),{}.NODE_ENV!=="production"&&(nt.onTrack=S.rtc?ft=>Wo(S.rtc,ft):void 0,nt.onTrigger=S.rtg?ft=>Wo(S.rtg,ft):void 0),st()},at=(S,F,Y)=>{F.component=S;const K=S.vnode.props;S.vnode=F,S.next=null,sm(S,F.props,K,Y),fm(S,F.children,Y),Is(),ec(S),Fs()},G=(S,F,Y,K,H,J,lt,tt,nt=!1)=>{const st=S&&S.children,Pt=S?S.shapeFlag:0,ft=F.children,{patchFlag:_t,shapeFlag:It}=F;if(_t>0){if(_t&128){gt(st,ft,Y,K,H,J,lt,tt,nt);return}else if(_t&256){j(st,ft,Y,K,H,J,lt,tt,nt);return}}It&8?(Pt&16&&Et(st,H,J),ft!==st&&u(Y,ft)):Pt&16?It&16?gt(st,ft,Y,K,H,J,lt,tt,nt):Et(st,H,J,!0):(Pt&8&&u(Y,""),It&16&&R(ft,Y,K,H,J,lt,tt,nt))},j=(S,F,Y,K,H,J,lt,tt,nt)=>{S=S||Eo,F=F||Eo;const st=S.length,Pt=F.length,ft=Math.min(st,Pt);let _t;for(_t=0;_t<ft;_t++){const It=F[_t]=nt?Zs(F[_t]):is(F[_t]);b(S[_t],It,Y,null,H,J,lt,tt,nt)}st>Pt?Et(S,H,J,!0,!1,ft):R(F,Y,K,H,J,lt,tt,nt,ft)},gt=(S,F,Y,K,H,J,lt,tt,nt)=>{let st=0;const Pt=F.length;let ft=S.length-1,_t=Pt-1;for(;st<=ft&&st<=_t;){const It=S[st],Mt=F[st]=nt?Zs(F[st]):is(F[st]);if(dr(It,Mt))b(It,Mt,Y,null,H,J,lt,tt,nt);else break;st++}for(;st<=ft&&st<=_t;){const It=S[ft],Mt=F[_t]=nt?Zs(F[_t]):is(F[_t]);if(dr(It,Mt))b(It,Mt,Y,null,H,J,lt,tt,nt);else break;ft--,_t--}if(st>ft){if(st<=_t){const It=_t+1,Mt=It<Pt?F[It].el:K;for(;st<=_t;)b(null,F[st]=nt?Zs(F[st]):is(F[st]),Y,Mt,H,J,lt,tt,nt),st++}}else if(st>_t)for(;st<=ft;)B(S[st],H,J,!0),st++;else{const It=st,Mt=st,qt=new Map;for(st=Mt;st<=_t;st++){const Oe=F[st]=nt?Zs(F[st]):is(F[st]);Oe.key!=null&&({}.NODE_ENV!=="production"&&qt.has(Oe.key)&&ut("Duplicate keys found during update:",JSON.stringify(Oe.key),"Make sure keys are unique."),qt.set(Oe.key,st))}let jt,Se=0;const ye=_t-Mt+1;let ts=!1,ze=0;const To=new Array(ye);for(st=0;st<ye;st++)To[st]=0;for(st=It;st<=ft;st++){const Oe=S[st];if(Se>=ye){B(Oe,H,J,!0);continue}let Ve;if(Oe.key!=null)Ve=qt.get(Oe.key);else for(jt=Mt;jt<=_t;jt++)if(To[jt-Mt]===0&&dr(Oe,F[jt])){Ve=jt;break}Ve===void 0?B(Oe,H,J,!0):(To[Ve-Mt]=st+1,Ve>=ze?ze=Ve:ts=!0,b(Oe,F[Ve],Y,null,H,J,lt,tt,nt),Se++)}const Jn=ts?ym(To):Eo;for(jt=Jn.length-1,st=ye-1;st>=0;st--){const Oe=Mt+st,Ve=F[Oe],ta=Oe+1<Pt?F[Oe+1].el:K;To[st]===0?b(null,Ve,Y,ta,H,J,lt,tt,nt):ts&&(jt<0||st!==Jn[jt]?ht(Ve,Y,ta,2):jt--)}}},ht=(S,F,Y,K,H=null)=>{const{el:J,type:lt,transition:tt,children:nt,shapeFlag:st}=S;if(st&6){ht(S.component.subTree,F,Y,K);return}if(st&128){S.suspense.move(F,Y,K);return}if(st&64){lt.move(S,F,Y,Me);return}if(lt===Vt){o(J,F,Y);for(let ft=0;ft<nt.length;ft++)ht(nt[ft],F,Y,K);o(S.anchor,F,Y);return}if(lt===lr){m(S,F,Y);return}if(K!==2&&st&1&&tt)if(K===0)tt.beforeEnter(J),o(J,F,Y),qe(()=>tt.enter(J),H);else{const{leave:ft,delayLeave:_t,afterLeave:It}=tt,Mt=()=>o(J,F,Y),qt=()=>{ft(J,()=>{Mt(),It&&It()})};_t?_t(J,Mt,qt):qt()}else o(J,F,Y)},B=(S,F,Y,K=!1,H=!1)=>{const{type:J,props:lt,ref:tt,children:nt,dynamicChildren:st,shapeFlag:Pt,patchFlag:ft,dirs:_t,cacheIndex:It}=S;if(ft===-2&&(H=!1),tt!=null&&Jr(tt,null,Y,S,!0),It!=null&&(F.renderCache[It]=void 0),Pt&256){F.ctx.deactivate(S);return}const Mt=Pt&1&&_t,qt=!Fo(S);let jt;if(qt&&(jt=lt&<.onVnodeBeforeUnmount)&&bs(jt,F,S),Pt&6)At(S.component,Y,K);else{if(Pt&128){S.suspense.unmount(Y,K);return}Mt&&ho(S,null,F,"beforeUnmount"),Pt&64?S.type.remove(S,F,Y,Me,K):st&&!st.hasOnce&&(J!==Vt||ft>0&&ft&64)?Et(st,F,Y,!1,!0):(J===Vt&&ft&384||!H&&Pt&16)&&Et(nt,F,Y),K&&P(S)}(qt&&(jt=lt&<.onVnodeUnmounted)||Mt)&&qe(()=>{jt&&bs(jt,F,S),Mt&&ho(S,null,F,"unmounted")},Y)},P=S=>{const{type:F,el:Y,anchor:K,transition:H}=S;if(F===Vt){({}).NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&H&&!H.persisted?S.children.forEach(lt=>{lt.type===Xe?r(lt.el):P(lt)}):Yt(Y,K);return}if(F===lr){_(S);return}const J=()=>{r(Y),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(S.shapeFlag&1&&H&&!H.persisted){const{leave:lt,delayLeave:tt}=H,nt=()=>lt(Y,J);tt?tt(S.el,J,nt):nt()}else J()},Yt=(S,F)=>{let Y;for(;S!==F;)Y=h(S),r(S),S=Y;r(F)},At=(S,F,Y)=>{({}).NODE_ENV!=="production"&&S.type.__hmrId&&pp(S);const{bum:K,scope:H,job:J,subTree:lt,um:tt,m:nt,a:st}=S;$c(nt),$c(st),K&&Wo(K),H.stop(),J&&(J.flags|=8,B(lt,S,F,Y)),tt&&qe(tt,F),qe(()=>{S.isUnmounted=!0},F),F&&F.pendingBranch&&!F.isUnmounted&&S.asyncDep&&!S.asyncResolved&&S.suspenseId===F.pendingId&&(F.deps--,F.deps===0&&F.resolve()),{}.NODE_ENV!=="production"&&xp(S)},Et=(S,F,Y,K=!1,H=!1,J=0)=>{for(let lt=J;lt<S.length;lt++)B(S[lt],F,Y,K,H)},ee=S=>{if(S.shapeFlag&6)return ee(S.component.subTree);if(S.shapeFlag&128)return S.suspense.next();const F=h(S.anchor||S.el),Y=F&&F[Tp];return Y?h(Y):F};let Xt=!1;const U=(S,F,Y)=>{S==null?F._vnode&&B(F._vnode,null,null,!0):b(F._vnode||null,S,F,null,null,null,Y),F._vnode=S,Xt||(Xt=!0,ec(),sc(),Xt=!1)},Me={p:b,um:B,m:ht,r:P,mt:rt,mc:R,pc:G,pbc:A,n:ee,o:s};let He,De;return t&&([He,De]=t(Me)),{render:U,hydrate:He,createApp:Kp(U,He)}}function Ba({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 mo({effect:s,job:t},e){e?(s.flags|=32,t.flags|=4):(s.flags&=-33,t.flags&=-5)}function gm(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function rn(s,t,e=!1){const o=s.children,r=t.children;if(Tt(o)&&Tt(r))for(let n=0;n<o.length;n++){const a=o[n];let i=r[n];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=r[n]=Zs(r[n]),i.el=a.el),!e&&i.patchFlag!==-2&&rn(a,i)),i.type===ir&&(i.el=a.el),{}.NODE_ENV!=="production"&&i.type===Xe&&!i.el&&(i.el=a.el)}}function ym(s){const t=s.slice(),e=[0];let o,r,n,a,i;const l=s.length;for(o=0;o<l;o++){const c=s[o];if(c!==0){if(r=e[e.length-1],s[r]<c){t[o]=r,e.push(o);continue}for(n=0,a=e.length-1;n<a;)i=n+a>>1,s[e[i]]<c?n=i+1:a=i;c<s[e[n]]&&(n>0&&(t[o]=e[n-1]),e[n]=o)}}for(n=e.length,a=e[n-1];n-- >0;)e[n]=a,a=t[a];return e}function Dc(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Dc(t)}function $c(s){if(s)for(let t=0;t<s.length;t++)s[t].flags|=8}const vm=Symbol.for("v-scx"),bm=()=>{{const s=sn(vm);return s||{}.NODE_ENV!=="production"&&ut("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function Lc(s,t){return Ya(s,null,t)}function St(s,t,e){return{}.NODE_ENV!=="production"&&!Ot(t)&&ut("`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."),Ya(s,t,e)}function Ya(s,t,e=Wt){const{immediate:o,deep:r,flush:n,once:a}=e;({}).NODE_ENV!=="production"&&!t&&(o!==void 0&&ut('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&ut('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),a!==void 0&&ut('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const i=ie({},e);({}).NODE_ENV!=="production"&&(i.onWarn=ut);const l=t&&o||!t&&n!=="post";let c;if(hr){if(n==="sync"){const p=bm();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=ve,p.resume=ve,p.pause=ve,p}}const u=Ce;i.call=(p,f,b)=>ps(p,u,f,b);let d=!1;n==="post"?i.scheduler=p=>{qe(p,u&&u.suspense)}:n!=="sync"&&(d=!0,i.scheduler=(p,f)=>{f?p():Zr(p)}),i.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=np(s,t,i);return hr&&(c?c.push(h):l&&h()),h}function _m(s,t,e){const o=this.proxy,r=ue(s)?s.includes(".")?Ac(o,s):()=>o[s]:s.bind(o,o);let n;Ot(t)?n=t:(n=t.handler,e=t);const a=fr(this),i=Ya(r,n.bind(o),e);return a(),i}function Ac(s,t){const e=t.split(".");return()=>{let o=s;for(let r=0;r<e.length&&o;r++)o=o[e[r]];return o}}const xm=(s,t)=>t==="modelValue"||t==="model-value"?s.modelModifiers:s[`${t}Modifiers`]||s[`${Ye(t)}Modifiers`]||s[`${We(t)}Modifiers`];function wm(s,t,...e){if(s.isUnmounted)return;const o=s.vnode.props||Wt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[d]}=s;if(u)if(!(t in u))(!d||!(no(Ye(t))in d))&&ut(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${no(Ye(t))}" prop.`);else{const h=u[t];Ot(h)&&(h(...e)||ut(`Invalid event arguments: event validation failed for event "${t}".`))}}let r=e;const n=t.startsWith("update:"),a=n&&xm(o,t.slice(7));if(a&&(a.trim&&(r=e.map(u=>ue(u)?u.trim():u)),a.number&&(r=e.map(bh))),{}.NODE_ENV!=="production"&&Cp(s,t,r),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&o[no(u)]&&ut(`Event "${u}" is emitted in component ${dn(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 "${We(t)}" instead of "${t}".`)}let i,l=o[i=no(t)]||o[i=no(Ye(t))];!l&&n&&(l=o[i=no(We(t))]),l&&ps(l,s,6,r);const c=o[i+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[i])return;s.emitted[i]=!0,ps(c,s,6,r)}}function Nc(s,t,e=!1){const o=t.emitsCache,r=o.get(s);if(r!==void 0)return r;const n=s.emits;let a={},i=!1;if(!Ot(s)){const l=c=>{const u=Nc(c,t,!0);u&&(i=!0,ie(a,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!n&&!i?(Qt(s)&&o.set(s,null),null):(Tt(n)?n.forEach(l=>a[l]=null):ie(a,n),Qt(s)&&o.set(s,a),a)}function nn(s,t){return!s||!jo(t)?!1:(t=t.slice(2).replace(/Once$/,""),Gt(s,t[0].toLowerCase()+t.slice(1))||Gt(s,We(t))||Gt(s,t))}let Xa=!1;function an(){Xa=!0}function Ga(s){const{type:t,vnode:e,proxy:o,withProxy:r,propsOptions:[n],slots:a,attrs:i,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:f,inheritAttrs:b}=s,w=Kr(s);let x,v;({}).NODE_ENV!=="production"&&(Xa=!1);try{if(e.shapeFlag&4){const _=r||o,k={}.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(_,{get(Z,ot,R){return ut(`Property '${String(ot)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(Z,ot,R)}}):_;x=is(c.call(k,_,u,{}.NODE_ENV!=="production"?hs(d):d,p,h,f)),v=i}else{const _=t;({}).NODE_ENV!=="production"&&i===d&&an(),x=is(_.length>1?_({}.NODE_ENV!=="production"?hs(d):d,{}.NODE_ENV!=="production"?{get attrs(){return an(),hs(i)},slots:a,emit:l}:{attrs:i,slots:a,emit:l}):_({}.NODE_ENV!=="production"?hs(d):d,null)),v=t.props?i:km(i)}}catch(_){cr.length=0,er(_,s,1),x=ct(Xe)}let g=x,m;if({}.NODE_ENV!=="production"&&x.patchFlag>0&&x.patchFlag&2048&&([g,m]=Mc(x)),v&&b!==!1){const _=Object.keys(v),{shapeFlag:k}=g;if(_.length){if(k&7)n&&_.some(Fr)&&(v=Cm(v,n)),g=Ws(g,v,!1,!0);else if({}.NODE_ENV!=="production"&&!Xa&&g.type!==Xe){const Z=Object.keys(i),ot=[],R=[];for(let $=0,A=Z.length;$<A;$++){const D=Z[$];jo(D)?Fr(D)||ot.push(D[2].toLowerCase()+D.slice(3)):R.push(D)}R.length&&ut(`Extraneous non-props attributes (${R.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text or teleport root nodes.`),ot.length&&ut(`Extraneous non-emits event listeners (${ot.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"&&!zc(g)&&ut("Runtime directive used on component with non-element root node. The directives will not function as intended."),g=Ws(g,null,!1,!0),g.dirs=g.dirs?g.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!zc(g)&&ut("Component inside <Transition> renders non-element root node that cannot be animated."),Ra(g,e.transition)),{}.NODE_ENV!=="production"&&m?m(g):x=g,Kr(w),x}const Mc=s=>{const t=s.children,e=s.dynamicChildren,o=Ua(t,!1);if(o){if({}.NODE_ENV!=="production"&&o.patchFlag>0&&o.patchFlag&2048)return Mc(o)}else return[s,void 0];const r=t.indexOf(o),n=e?e.indexOf(o):-1,a=i=>{t[r]=i,e&&(n>-1?e[n]=i:i.patchFlag>0&&(s.dynamicChildren=[...e,i]))};return[is(o),a]};function Ua(s,t=!0){let e;for(let o=0;o<s.length;o++){const r=s[o];if(go(r)){if(r.type!==Xe||r.children==="v-if"){if(e)return;if(e=r,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return Ua(e.children)}}else return}return e}const km=s=>{let t;for(const e in s)(e==="class"||e==="style"||jo(e))&&((t||(t={}))[e]=s[e]);return t},Cm=(s,t)=>{const e={};for(const o in s)(!Fr(o)||!(o.slice(9)in t))&&(e[o]=s[o]);return e},zc=s=>s.shapeFlag&7||s.type===Xe;function Tm(s,t,e){const{props:o,children:r,component:n}=s,{props:a,children:i,patchFlag:l}=t,c=n.emitsOptions;if({}.NODE_ENV!=="production"&&(r||i)&&gs||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return o?Vc(o,a,c):!!a;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(a[h]!==o[h]&&!nn(c,h))return!0}}}else return(r||i)&&(!i||!i.$stable)?!0:o===a?!1:o?a?Vc(o,a,c):!0:!!a;return!1}function Vc(s,t,e){const o=Object.keys(t);if(o.length!==Object.keys(s).length)return!0;for(let r=0;r<o.length;r++){const n=o[r];if(t[n]!==s[n]&&!nn(e,n))return!0}return!1}function Sm({vnode:s,parent:t},e){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===s&&(o.el=s.el),o===s)(s=t.vnode).el=e,t=t.parent;else break}}const Bc=s=>s.__isSuspense;function Em(s,t){t&&t.pendingBranch?Tt(s)?t.effects.push(...s):t.effects.push(s):tc(s)}const Vt=Symbol.for("v-fgt"),ir=Symbol.for("v-txt"),Xe=Symbol.for("v-cmt"),lr=Symbol.for("v-stc"),cr=[];let Qe=null;function L(s=!1){cr.push(Qe=s?null:[])}function Pm(){cr.pop(),Qe=cr[cr.length-1]||null}let ur=1;function Yc(s,t=!1){ur+=s,s<0&&Qe&&t&&(Qe.hasOnce=!0)}function Xc(s){return s.dynamicChildren=ur>0?Qe||Eo:null,Pm(),ur>0&&Qe&&Qe.push(s),s}function V(s,t,e,o,r,n){return Xc(E(s,t,e,o,r,n,!0))}function Lt(s,t,e,o,r){return Xc(ct(s,t,e,o,r,!0))}function go(s){return s?s.__v_isVNode===!0:!1}function dr(s,t){if({}.NODE_ENV!=="production"&&t.shapeFlag&6&&s.component){const e=qr.get(t.type);if(e&&e.has(s.component))return s.shapeFlag&=-257,t.shapeFlag&=-513,!1}return s.type===t.type&&s.key===t.key}const Om=(...s)=>Uc(...s),Gc=({key:s})=>s??null,ln=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?ue(s)||he(s)||Ot(s)?{i:_e,r:s,k:t,f:!!e}:s:null);function E(s,t=null,e=null,o=0,r=null,n=s===Vt?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&Gc(t),ref:t&&ln(t),scopeId:cc,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:_e};return i?(ja(l,e),n&128&&s.normalize(l)):e&&(l.shapeFlag|=ue(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ut("VNode created with invalid key (NaN). VNode type:",l.type),ur>0&&!a&&Qe&&(l.patchFlag>0||n&6)&&l.patchFlag!==32&&Qe.push(l),l}const ct={}.NODE_ENV!=="production"?Om:Uc;function Uc(s,t=null,e=null,o=0,r=null,n=!1){if((!s||s===zp)&&({}.NODE_ENV!=="production"&&!s&&ut(`Invalid vnode type when creating vnode: ${s}.`),s=Xe),go(s)){const i=Ws(s,t,!0);return e&&ja(i,e),ur>0&&!n&&Qe&&(i.shapeFlag&6?Qe[Qe.indexOf(s)]=i:Qe.push(i)),i.patchFlag=-2,i}if(su(s)&&(s=s.__vccOpts),t){t=Rm(t);let{class:i,style:l}=t;i&&!ue(i)&&(t.class=se(i)),Qt(l)&&(Xr(l)&&!Tt(l)&&(l=ie({},l)),t.style=N(l))}const a=ue(s)?1:Bc(s)?128:Sp(s)?64:Qt(s)?4:Ot(s)?2:0;return{}.NODE_ENV!=="production"&&a&4&&Xr(s)&&(s=$t(s),ut("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`.",`
|
|
19
|
+
Component that was made reactive: `,s)),E(s,t,e,o,r,a,n,!0)}function Rm(s){return s?Xr(s)||kc(s)?ie({},s):s:null}function Ws(s,t,e=!1,o=!1){const{props:r,ref:n,patchFlag:a,children:i,transition:l}=s,c=t?Ha(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:s.type,props:c,key:c&&Gc(c),ref:t&&t.ref?e&&n?Tt(n)?n.concat(ln(t)):[n,ln(t)]:ln(t):n,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&a===-1&&Tt(i)?i.map(jc):i,target:s.target,targetStart:s.targetStart,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==Vt?a===-1?16:a|16:a,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:l,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Ws(s.ssContent),ssFallback:s.ssFallback&&Ws(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce};return l&&o&&Ra(u,l.clone(u)),u}function jc(s){const t=Ws(s);return Tt(s.children)&&(t.children=s.children.map(jc)),t}function Ht(s=" ",t=0){return ct(ir,null,s,t)}function Hc(s,t){const e=ct(lr,null,s);return e.staticCount=t,e}function Rt(s="",t=!1){return t?(L(),Lt(Xe,null,s)):ct(Xe,null,s)}function is(s){return s==null||typeof s=="boolean"?ct(Xe):Tt(s)?ct(Vt,null,s.slice()):go(s)?Zs(s):ct(ir,null,String(s))}function Zs(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Ws(s)}function ja(s,t){let e=0;const{shapeFlag:o}=s;if(t==null)t=null;else if(Tt(t))e=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),ja(s,r()),r._c&&(r._d=!0));return}else{e=32;const r=t._;!r&&!kc(t)?t._ctx=_e:r===3&&_e&&(_e.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else Ot(t)?(t={default:t,_ctx:_e},e=32):(t=String(t),o&64?(e=16,t=[Ht(t)]):e=8);s.children=t,s.shapeFlag|=e}function Ha(...s){const t={};for(let e=0;e<s.length;e++){const o=s[e];for(const r in o)if(r==="class")t.class!==o.class&&(t.class=se([t.class,o.class]));else if(r==="style")t.style=N([t.style,o.style]);else if(jo(r)){const n=t[r],a=o[r];a&&n!==a&&!(Tt(n)&&n.includes(a))&&(t[r]=n?[].concat(n,a):a)}else r!==""&&(t[r]=o[r])}return t}function bs(s,t,e,o=null){ps(s,t,7,[e,o])}const Im=_c();let Fm=0;function Dm(s,t,e){const o=s.type,r=(t?t.appContext:s.appContext)||Im,n={uid:Fm++,vnode:s,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ih(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Tc(o,r),emitsOptions:Nc(o,r),emit:null,emitted:null,propsDefaults:Wt,inheritAttrs:o.inheritAttrs,ctx:Wt,data:Wt,props:Wt,attrs:Wt,slots:Wt,refs:Wt,setupState:Wt,setupContext: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"?n.ctx=Vp(n):n.ctx={_:n},n.root=t?t.root:n,n.emit=wm.bind(null,n),s.ce&&s.ce(n),n}let Ce=null;const Wc=()=>Ce||_e;let cn,Wa;{const s=Zo(),t=(e,o)=>{let r;return(r=s[e])||(r=s[e]=[]),r.push(o),n=>{r.length>1?r.forEach(a=>a(n)):r[0](n)}};cn=t("__VUE_INSTANCE_SETTERS__",e=>Ce=e),Wa=t("__VUE_SSR_SETTERS__",e=>hr=e)}const fr=s=>{const t=Ce;return cn(s),s.scope.on(),()=>{s.scope.off(),cn(t)}},Zc=()=>{Ce&&Ce.scope.off(),cn(null)},$m=Os("slot,component");function Za(s,{isNativeTag:t}){($m(s)||t(s))&&ut("Do not use built-in or reserved HTML elements as component id: "+s)}function qc(s){return s.vnode.shapeFlag&4}let hr=!1;function Lm(s,t=!1,e=!1){t&&Wa(t);const{props:o,children:r}=s.vnode,n=qc(s);tm(s,o,n,t),dm(s,r,e);const a=n?Am(s,t):void 0;return t&&Wa(!1),a}function Am(s,t){var e;const o=s.type;if({}.NODE_ENV!=="production"){if(o.name&&Za(o.name,s.appContext.config),o.components){const n=Object.keys(o.components);for(let a=0;a<n.length;a++)Za(n[a],s.appContext.config)}if(o.directives){const n=Object.keys(o.directives);for(let a=0;a<n.length;a++)uc(n[a])}o.compilerOptions&&Nm()&&ut('"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,pc),{}.NODE_ENV!=="production"&&Bp(s);const{setup:r}=o;if(r){Is();const n=s.setupContext=r.length>1?tu(s):null,a=fr(s),i=Oo(r,s,0,[{}.NODE_ENV!=="production"?hs(s.props):s.props,n]),l=la(i);if(Fs(),a(),(l||s.sp)&&!Fo(s)&&dc(s),l){if(i.then(Zc,Zc),t)return i.then(c=>{Qc(s,c,t)}).catch(c=>{er(c,s,0)});if(s.asyncDep=i,{}.NODE_ENV!=="production"&&!s.suspense){const c=(e=o.name)!=null?e:"Anonymous";ut(`Component <${c}>: 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 Qc(s,i,t)}else Kc(s,t)}function Qc(s,t,e){Ot(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Qt(t)?({}.NODE_ENV!=="production"&&go(t)&&ut("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=Zl(t),{}.NODE_ENV!=="production"&&Yp(s)):{}.NODE_ENV!=="production"&&t!==void 0&&ut(`setup() should return an object. Received: ${t===null?"null":typeof t}`),Kc(s,e)}let qa;const Nm=()=>!qa;function Kc(s,t,e){const o=s.type;if(!s.render){if(!t&&qa&&!o.render){const r=o.template||Aa(s).template;if(r){({}).NODE_ENV!=="production"&&Ns(s,"compile");const{isCustomElement:n,compilerOptions:a}=s.appContext.config,{delimiters:i,compilerOptions:l}=o,c=ie(ie({isCustomElement:n,delimiters:i},a),l);o.render=qa(r,c),{}.NODE_ENV!=="production"&&Ms(s,"compile")}}s.render=o.render||ve}{const r=fr(s);Is();try{jp(s)}finally{Fs(),r()}}({}).NODE_ENV!=="production"&&!o.render&&s.render===ve&&!t&&(o.template?ut('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".'):ut("Component is missing template or render function: ",o))}const Jc={}.NODE_ENV!=="production"?{get(s,t){return an(),be(s,"get",""),s[t]},set(){return ut("setupContext.attrs is readonly."),!1},deleteProperty(){return ut("setupContext.attrs is readonly."),!1}}:{get(s,t){return be(s,"get",""),s[t]}};function Mm(s){return new Proxy(s.slots,{get(t,e){return be(s,"get","$slots"),t[e]}})}function tu(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&ut("expose() should be called only once per setup()."),e!=null)){let o=typeof e;o==="object"&&(Tt(e)?o="array":he(e)&&(o="ref")),o!=="object"&&ut(`expose() should be passed a plain object, received ${o}.`)}s.exposed=e||{}};if({}.NODE_ENV!=="production"){let e,o;return Object.freeze({get attrs(){return e||(e=new Proxy(s.attrs,Jc))},get slots(){return o||(o=Mm(s))},get emit(){return(r,...n)=>s.emit(r,...n)},expose:t})}else return{attrs:new Proxy(s.attrs,Jc),slots:s.slots,emit:s.emit,expose:t}}function un(s){return s.exposed?s.exposeProxy||(s.exposeProxy=new Proxy(Zl(Kh(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in po)return po[e](s)},has(t,e){return e in t||e in po}})):s.proxy}const zm=/(?:^|[-_])(\w)/g,Vm=s=>s.replace(zm,t=>t.toUpperCase()).replace(/[-_]/g,"");function eu(s,t=!0){return Ot(s)?s.displayName||s.name:s.name||t&&s.__name}function dn(s,t,e=!1){let o=eu(t);if(!o&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&s&&s.parent){const r=n=>{for(const a in n)if(n[a]===t)return a};o=r(s.components||s.parent.type.components)||r(s.appContext.components)}return o?Vm(o):e?"App":"Anonymous"}function su(s){return Ot(s)&&"__vccOpts"in s}const Bm=(s,t)=>{const e=op(s,t,hr);if({}.NODE_ENV!=="production"){const o=Wc();o&&o.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function Jt(s,t,e){const o=arguments.length;return o===2?Qt(t)&&!Tt(t)?go(t)?ct(s,null,[t]):ct(s,t):ct(s,null,t):(o>3?e=Array.prototype.slice.call(arguments,2):o===3&&go(e)&&(e=[e]),ct(s,t,e))}function Ym(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},o={style:"color:#eb2f96"},r={__vue_custom_formatter:!0,header(d){return Qt(d)?d.__isVue?["div",s,"VueInstance"]:he(d)?["div",{},["span",s,u(d)],"<",i("_value"in d?d._value:d),">"]:io(d)?["div",{},["span",s,$e(d)?"ShallowReactive":"Reactive"],"<",i(d),`>${$s(d)?" (readonly)":""}`]:$s(d)?["div",{},["span",s,$e(d)?"ShallowReadonly":"Readonly"],"<",i(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...n(d.$)]}};function n(d){const h=[];d.type.props&&d.props&&h.push(a("props",$t(d.props))),d.setupState!==Wt&&h.push(a("setup",d.setupState)),d.data!==Wt&&h.push(a("data",$t(d.data)));const p=l(d,"computed");p&&h.push(a("computed",p));const f=l(d,"inject");return f&&h.push(a("injected",f)),h.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),h}function a(d,h){return h=ie({},h),Object.keys(h).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(h).map(p=>["div",{},["span",o,p+": "],i(h[p],!1)])]]:["span",{}]}function i(d,h=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",e,JSON.stringify(d)]:typeof d=="boolean"?["span",o,d]:Qt(d)?["object",{object:h?$t(d):d}]:["span",e,String(d)]}function l(d,h){const p=d.type;if(Ot(p))return;const f={};for(const b in d.ctx)c(p,b,h)&&(f[b]=d.ctx[b]);return f}function c(d,h,p){const f=d[p];if(Tt(f)&&f.includes(h)||Qt(f)&&h in f||d.extends&&c(d.extends,h,p)||d.mixins&&d.mixins.some(b=>c(b,h,p)))return!0}function u(d){return $e(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(r):window.devtoolsFormatters=[r]}const ou="3.5.13",es={}.NODE_ENV!=="production"?ut:ve;/**
|
|
20
20
|
* @vue/runtime-dom v3.5.13
|
|
21
21
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
22
|
* @license MIT
|
|
23
|
-
**/let
|
|
24
|
-
Expected function or array of functions, received type ${typeof
|
|
23
|
+
**/let Qa;const ru=typeof window<"u"&&window.trustedTypes;if(ru)try{Qa=ru.createPolicy("vue",{createHTML:s=>s})}catch(s){({}).NODE_ENV!=="production"&&es(`Error creating trusted types policy: ${s}`)}const nu=Qa?s=>Qa.createHTML(s):s=>s,Xm="http://www.w3.org/2000/svg",Gm="http://www.w3.org/1998/Math/MathML",zs=typeof document<"u"?document:null,au=zs&&zs.createElement("template"),Um={insert:(s,t,e)=>{t.insertBefore(s,e||null)},remove:s=>{const t=s.parentNode;t&&t.removeChild(s)},createElement:(s,t,e,o)=>{const r=t==="svg"?zs.createElementNS(Xm,s):t==="mathml"?zs.createElementNS(Gm,s):e?zs.createElement(s,{is:e}):zs.createElement(s);return s==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:s=>zs.createTextNode(s),createComment:s=>zs.createComment(s),setText:(s,t)=>{s.nodeValue=t},setElementText:(s,t)=>{s.textContent=t},parentNode:s=>s.parentNode,nextSibling:s=>s.nextSibling,querySelector:s=>zs.querySelector(s),setScopeId(s,t){s.setAttribute(t,"")},insertStaticContent(s,t,e,o,r,n){const a=e?e.previousSibling:t.lastChild;if(r&&(r===n||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),e),!(r===n||!(r=r.nextSibling)););else{au.innerHTML=nu(o==="svg"?`<svg>${s}</svg>`:o==="mathml"?`<math>${s}</math>`:s);const i=au.content;if(o==="svg"||o==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,e)}return[a?a.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}},jm=Symbol("_vtc");function Hm(s,t,e){const o=s[jm];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?s.removeAttribute("class"):e?s.setAttribute("class",t):s.className=t}const fn=Symbol("_vod"),iu=Symbol("_vsh"),qs={beforeMount(s,{value:t},{transition:e}){s[fn]=s.style.display==="none"?"":s.style.display,e&&t?e.beforeEnter(s):pr(s,t)},mounted(s,{value:t},{transition:e}){e&&t&&e.enter(s)},updated(s,{value:t,oldValue:e},{transition:o}){!t!=!e&&(o?t?(o.beforeEnter(s),pr(s,!0),o.enter(s)):o.leave(s,()=>{pr(s,!1)}):pr(s,t))},beforeUnmount(s,{value:t}){pr(s,t)}};({}).NODE_ENV!=="production"&&(qs.name="show");function pr(s,t){s.style.display=t?s[fn]:"none",s[iu]=!t}const Wm=Symbol({}.NODE_ENV!=="production"?"CSS_VAR_TEXT":""),Zm=/(^|;)\s*display\s*:/;function qm(s,t,e){const o=s.style,r=ue(e);let n=!1;if(e&&!r){if(t)if(ue(t))for(const a of t.split(";")){const i=a.slice(0,a.indexOf(":")).trim();e[i]==null&&hn(o,i,"")}else for(const a in t)e[a]==null&&hn(o,a,"");for(const a in e)a==="display"&&(n=!0),hn(o,a,e[a])}else if(r){if(t!==e){const a=o[Wm];a&&(e+=";"+a),o.cssText=e,n=Zm.test(e)}}else t&&s.removeAttribute("style");fn in s&&(s[fn]=n?o.display:"",s[iu]&&(o.display="none"))}const Qm=/[^\\];\s*$/,lu=/\s*!important$/;function hn(s,t,e){if(Tt(e))e.forEach(o=>hn(s,t,o));else if(e==null&&(e=""),{}.NODE_ENV!=="production"&&Qm.test(e)&&es(`Unexpected semicolon at the end of '${t}' style value: '${e}'`),t.startsWith("--"))s.setProperty(t,e);else{const o=Km(s,t);lu.test(e)?s.setProperty(We(o),e.replace(lu,""),"important"):s[o]=e}}const cu=["Webkit","Moz","ms"],Ka={};function Km(s,t){const e=Ka[t];if(e)return e;let o=Ye(t);if(o!=="filter"&&o in s)return Ka[t]=o;o=Ar(o);for(let r=0;r<cu.length;r++){const n=cu[r]+o;if(n in s)return Ka[t]=n}return t}const uu="http://www.w3.org/1999/xlink";function du(s,t,e,o,r,n=Rh(t)){o&&t.startsWith("xlink:")?e==null?s.removeAttributeNS(uu,t.slice(6,t.length)):s.setAttributeNS(uu,t,e):e==null||n&&!Sl(e)?s.removeAttribute(t):s.setAttribute(t,n?"":Rs(e)?String(e):e)}function fu(s,t,e,o,r){if(t==="innerHTML"||t==="textContent"){e!=null&&(s[t]=t==="innerHTML"?nu(e):e);return}const n=s.tagName;if(t==="value"&&n!=="PROGRESS"&&!n.includes("-")){const i=n==="OPTION"?s.getAttribute("value")||"":s.value,l=e==null?s.type==="checkbox"?"on":"":String(e);(i!==l||!("_value"in s))&&(s.value=l),e==null&&s.removeAttribute(t),s._value=e;return}let a=!1;if(e===""||e==null){const i=typeof s[t];i==="boolean"?e=Sl(e):e==null&&i==="string"?(e="",a=!0):i==="number"&&(e=0,a=!0)}try{s[t]=e}catch(i){({}).NODE_ENV!=="production"&&!a&&es(`Failed setting prop "${t}" on <${n.toLowerCase()}>: value ${e} is invalid.`,i)}a&&s.removeAttribute(r||t)}function Jm(s,t,e,o){s.addEventListener(t,e,o)}function t0(s,t,e,o){s.removeEventListener(t,e,o)}const hu=Symbol("_vei");function e0(s,t,e,o,r=null){const n=s[hu]||(s[hu]={}),a=n[t];if(o&&a)a.value={}.NODE_ENV!=="production"?mu(o,t):o;else{const[i,l]=s0(t);if(o){const c=n[t]=n0({}.NODE_ENV!=="production"?mu(o,t):o,r);Jm(s,i,c,l)}else a&&(t0(s,i,a,l),n[t]=void 0)}}const pu=/(?:Once|Passive|Capture)$/;function s0(s){let t;if(pu.test(s)){t={};let o;for(;o=s.match(pu);)s=s.slice(0,s.length-o[0].length),t[o[0].toLowerCase()]=!0}return[s[2]===":"?s.slice(3):We(s.slice(2)),t]}let Ja=0;const o0=Promise.resolve(),r0=()=>Ja||(o0.then(()=>Ja=0),Ja=Date.now());function n0(s,t){const e=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=e.attached)return;ps(a0(o,e.value),t,5,[o])};return e.value=s,e.attached=r0(),e}function mu(s,t){return Ot(s)||Tt(s)?s:(es(`Wrong type passed as event handler to ${t} - did you forget @ or : in front of your prop?
|
|
24
|
+
Expected function or array of functions, received type ${typeof s}.`),ve)}function a0(s,t){if(Tt(t)){const e=s.stopImmediatePropagation;return s.stopImmediatePropagation=()=>{e.call(s),s._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const gu=s=>s.charCodeAt(0)===111&&s.charCodeAt(1)===110&&s.charCodeAt(2)>96&&s.charCodeAt(2)<123,i0=(s,t,e,o,r,n)=>{const a=r==="svg";t==="class"?Hm(s,o,a):t==="style"?qm(s,e,o):jo(t)?Fr(t)||e0(s,t,e,o,n):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):l0(s,t,o,a))?(fu(s,t,o),!s.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&du(s,t,o,a,n,t!=="value")):s._isVueCE&&(/[A-Z]/.test(t)||!ue(o))?fu(s,Ye(t),o,n,t):(t==="true-value"?s._trueValue=o:t==="false-value"&&(s._falseValue=o),du(s,t,o,a))};function l0(s,t,e,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in s&&gu(t)&&Ot(e));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&s.tagName==="INPUT"||t==="type"&&s.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=s.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return gu(t)&&ue(e)?!1:t in s}const yu={};/*! #__NO_SIDE_EFFECTS__ */function pt(s,t,e){const o=q(s,t);$r(o)&&ie(o,t);class r extends ti{constructor(a){super(o,a,e)}}return r.def=o,r}const c0=typeof HTMLElement<"u"?HTMLElement:class{};class ti extends c0{constructor(t,e={},o=_u){super(),this._def=t,this._props=e,this._createApp=o,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&o!==_u?this._root=this.shadowRoot:({}.NODE_ENV!=="production"&&this.shadowRoot&&es("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this),this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof ti){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,Kl(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(o=>{for(const r of o)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(o,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:a}=o;let i;if(n&&!Tt(n))for(const l in n){const c=n[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=Cl(this._props[l])),(i||(i=Object.create(null)))[Ye(l)]=!0)}this._numberProps=i,r&&this._resolveProps(o),this.shadowRoot?this._applyStyles(a):{}.NODE_ENV!=="production"&&a&&es("Custom element style injection is not supported when using shadowRoot: false"),this._mount(o)},e=this._def.__asyncLoader;e?this._pendingResolve=e().then(o=>t(this._def=o,!0)):t(this._def)}_mount(t){({}).NODE_ENV!=="production"&&!t.name&&(t.name="VueElement"),this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const e=this._instance&&this._instance.exposed;if(e)for(const o in e)Gt(this,o)?{}.NODE_ENV!=="production"&&es(`Exposed property "${o}" already exists on custom element.`):Object.defineProperty(this,o,{get:()=>Ct(e[o])})}_resolveProps(t){const{props:e}=t,o=Tt(e)?e:Object.keys(e||{});for(const r of Object.keys(this))r[0]!=="_"&&o.includes(r)&&this._setProp(r,this[r]);for(const r of o.map(Ye))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(n){this._setProp(r,n,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const e=this.hasAttribute(t);let o=e?this.getAttribute(t):yu;const r=Ye(t);e&&this._numberProps&&this._numberProps[r]&&(o=Cl(o)),this._setProp(r,o,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,e,o=!0,r=!1){if(e!==this._props[t]&&(e===yu?delete this._props[t]:(this._props[t]=e,t==="key"&&this._app&&(this._app._ceVNode.key=e)),r&&this._instance&&this._update(),o)){const n=this._ob;n&&n.disconnect(),e===!0?this.setAttribute(We(t),""):typeof e=="string"||typeof e=="number"?this.setAttribute(We(t),e+""):e||this.removeAttribute(We(t)),n&&n.observe(this,{attributes:!0})}}_update(){pn(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const e=ct(this._def,ie(t,this._props));return this._instance||(e.ce=o=>{this._instance=o,o.ce=this,o.isCE=!0,{}.NODE_ENV!=="production"&&(o.ceReload=n=>{this._styles&&(this._styles.forEach(a=>this._root.removeChild(a)),this._styles.length=0),this._applyStyles(n),this._instance=null,this._update()});const r=(n,a)=>{this.dispatchEvent(new CustomEvent(n,$r(a[0])?ie({detail:a},a[0]):{detail:a}))};o.emit=(n,...a)=>{r(n,a),We(n)!==n&&r(We(n),a)},this._setParent()}),e}_applyStyles(t,e){if(!t)return;if(e){if(e===this._def||this._styleChildren.has(e))return;this._styleChildren.add(e)}const o=this._nonce;for(let r=t.length-1;r>=0;r--){const n=document.createElement("style");if(o&&n.setAttribute("nonce",o),n.textContent=t[r],this.shadowRoot.prepend(n),{}.NODE_ENV!=="production")if(e){if(e.__hmrId){this._childStyles||(this._childStyles=new Map);let a=this._childStyles.get(e.__hmrId);a||this._childStyles.set(e.__hmrId,a=[]),a.push(n)}}else(this._styles||(this._styles=[])).push(n)}}_parseSlots(){const t=this._slots={};let e;for(;e=this.firstChild;){const o=e.nodeType===1&&e.getAttribute("slot")||"default";(t[o]||(t[o]=[])).push(e),this.removeChild(e)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),e=this._instance.type.__scopeId;for(let o=0;o<t.length;o++){const r=t[o],n=r.getAttribute("name")||"default",a=this._slots[n],i=r.parentNode;if(a)for(const l of a){if(e&&l.nodeType===1){const c=e+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let d;for(;d=u.nextNode();)d.setAttribute(c,"")}i.insertBefore(l,r)}else for(;r.firstChild;)i.insertBefore(r.firstChild,r);i.removeChild(r)}}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){if({}.NODE_ENV!=="production"&&(this._styleChildren.delete(t),this._childStyles&&t.__hmrId)){const e=this._childStyles.get(t.__hmrId);e&&(e.forEach(o=>this._root.removeChild(o)),e.length=0)}}}const u0=ie({patchProp:i0},Um);let vu;function bu(){return vu||(vu=pm(u0))}const pn=(...s)=>{bu().render(...s)},_u=(...s)=>{const t=bu().createApp(...s);({}).NODE_ENV!=="production"&&(f0(t),h0(t));const{mount:e}=t;return t.mount=o=>{const r=p0(o);if(!r)return;const n=t._component;!Ot(n)&&!n.render&&!n.template&&(n.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=e(r,!1,d0(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function d0(s){if(s instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&s instanceof MathMLElement)return"mathml"}function f0(s){Object.defineProperty(s.config,"isNativeTag",{value:t=>Eh(t)||Ph(t)||Oh(t),writable:!1})}function h0(s){{const t=s.config.isCustomElement;Object.defineProperty(s.config,"isCustomElement",{get(){return t},set(){es("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const e=s.config.compilerOptions,o='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(s.config,"compilerOptions",{get(){return es(o),e},set(){es(o)}})}}function p0(s){if(ue(s)){const t=document.querySelector(s);return{}.NODE_ENV!=="production"&&!t&&es(`Failed to mount app: mount target selector "${s}" returned null.`),t}return{}.NODE_ENV!=="production"&&window.ShadowRoot&&s instanceof window.ShadowRoot&&s.mode==="closed"&&es('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),s}/**
|
|
25
25
|
* vue v3.5.13
|
|
26
26
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
27
27
|
* @license MIT
|
|
28
|
-
**/function
|
|
28
|
+
**/function m0(){Ym()}({}).NODE_ENV!=="production"&&m0();function xu(){return typeof window<"u"?window:typeof global<"u"?global:this||{}}const mn=s=>{let t=null;switch(s){case"any-character":t=/[^]/;break;case"bin":t=/^(0b)?[0-1]+$/i;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"trim":t=/^\s+|\s+$/g;break;case"regexp":t=/[\\^$.*+?()[\]{}|]/g;break;case"regexp-flags":t=/\w*$/;break;case"native-method":t=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(mn("regexp"),"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");break;case"svg-segment":t=/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi;break;case"mobile-china":t=/^\+?[1-9]{1}[0-9]{10}$/g;break;case"email":t=/^[A-Za-z0-9_!#$%&'*+/=?`{|}~^.-]+\@[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"element-url":t=/^url\(['"]?(.+?)['"]?\)$/i;break;case"date":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})$/;break;case"time":t=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/;break;case"datetime":t=/^\d{4}(\-|\/|\.)(\d{1,2})(\-|\/|\.)(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})$/;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"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"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"var-name":t=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/;break;case"bezier":t=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/;break;case"chinese-name":t=/^(?:[\u4e00-\u9fa5·]{2,16})$/;break;case"chinese":t=new RegExp(String.raw`
|
|
29
29
|
[\u{FA0E}\u{FA0F}\u{FA11}\u{FA13}\u{FA14}\u{FA1F}\u{FA21}\u{FA23}\u{FA24}\u{FA27}-\u{FA29}]
|
|
30
30
|
|[\u{4E00}-\u{9FCC}]
|
|
31
31
|
|[\u{3400}-\u{4DB5}]
|
|
@@ -34,79 +34,95 @@ Expected function or array of functions, received type ${typeof o}.`),ye)}functi
|
|
|
34
34
|
|[\u{2B740}-\u{2B81D}]
|
|
35
35
|
|[\u{2B820}-\u{2CEAF}]
|
|
36
36
|
|[\u{2CEB0}-\u{2EBEF}]
|
|
37
|
-
`.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},vs=(o,t)=>(typeof o=="string"&&(o=hn(o)||new RegExp(o)),o.test(t)),vu=(o,t)=>{typeof o=="string"&&(o=hn(o)||new RegExp(o));const e=t.match(o);return e?o.flags.toLowerCase().indexOf("g")>=0?e.map(s=>({matchIndex:-1,fullMatch:s,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},bu=(o,t)=>{typeof o=="string"&&(o=hn(o)||new RegExp(o));const e=[],s=t.matchAll(o);for(const r of s)e.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return e};function i0(o){const t=o.match(/[\s\S]/gu);return t?t.length:0}function _u(o,t){const e=o.codePointAt(t);return e?String.fromCodePoint(e):void 0}function Fo(o=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let s="";for(let r=0;r<o;r++)s+=t[Math.floor(Math.random()*e)];return s}function l0(o){return o.replace(/(^\w)/g,t=>t.toLowerCase())}const is=(o,t="-")=>{let e=o.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function c0(o){return o.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function xu(o){return l0(c0(o))}const wu=(o,t="")=>(o=o.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,t),o);function u0(o){return o!=null}function f0(o,...t){return new o.constructor(...t)}function ku(o,t){for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&!t(e,o[e])&&delete o[e];return o}function Cu(o){for(const t in o)Object.prototype.hasOwnProperty.call(o,t)&&delete o[t];return o}function hr(o=[],t=[]){const e=o.length,s=t.length;for(let n=0;n<s;n++)o[n]=t[n];let r=Math.max(0,e-s);for(;r>0;)o.pop(),r--;return o}function d0(o,t){const e=o.findIndex(s=>s===t);return e>=0&&o.splice(e,1),o}let Tu;try{Tu=Map}catch{Tu=function(){}}let Su;try{Su=Set}catch{Su=function(){}}function Zs(o,t){if(o=parseFloat(o),isNaN(o)){if(typeof t=="number")return t;throw new Error(`parseNumber(${o}) isNaN!`)}return o}function pn(o,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(o-t)<e}const ie=(o,t,e)=>o<t?t:o>e?e:o;function h0(o,t,e,s,r){return s+(r-s)*((o-t)/(e-t))}const Eu=(o,t,e)=>s=>{const r=ie(s,o,t);return e==0?r:t-r<e?t:Math.round(r/e)*e};function p0(o,t=12){return Zs(o).toFixed(t)}function Ce(o,t=12){return+p0(o,t)}function bs(o,t){const e=vu("number-single",String(o));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):u0(t)?t:NaN,prefix:e&&!Array.isArray(e)&&e.fullMatch?o.substring(0,e.matchIndex):"",suffix:e&&!Array.isArray(e)&&e.fullMatch?o.substring(e.matchIndex+e.fullMatch.length):""}}function qa(o){const t=vu("number",o);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function m0(o=0,t=100){return Math.random()*(t-o)+o}function Jt(o=0,t=100){return Math.floor(m0(o,t))}g0();function g0(){const o=new ArrayBuffer(4),t=new Float32Array(o),e=new Uint32Array(o),s=new Uint32Array(512),r=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(s[l]=0,s[l|256]=32768,r[l]=24,r[l|256]=24):c<-14?(s[l]=1024>>-c-14,s[l|256]=1024>>-c-14|32768,r[l]=-c-1,r[l|256]=-c-1):c<=15?(s[l]=c+15<<10,s[l|256]=c+15<<10|32768,r[l]=13,r[l|256]=13):c<128?(s[l]=31744,s[l|256]=64512,r[l]=24,r[l|256]=24):(s[l]=31744,s[l|256]=64512,r[l]=13,r[l|256]=13)}const n=new Uint32Array(2048),a=new Uint32Array(64),i=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;!(c&8388608);)c<<=1,u-=8388608;c&=-8388609,u+=947912704,n[l]=c|u}for(let l=1024;l<2048;++l)n[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)a[l]=l<<23;a[31]=1199570944,a[32]=2147483648;for(let l=33;l<63;++l)a[l]=2147483648+(l-32<<23);a[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(i[l]=1024);return{floatView:t,uint32View:e,baseTable:s,shiftTable:r,mantissaTable:n,exponentTable:a,offsetTable:i}}var Pu=(o=>(o.UNKNOWN="",o.TEXT="text/plain",o.MD="text/plain",o.HTML="text/html",o.XML_TEXT="text/xml",o.CSS="text/css",o.JPEG="image/jpeg",o.PNG="image/png",o.GIF="image/gif",o.BMP="image/bmp",o.WEBP="image/webp",o.SVG="image/svg+xml",o.ICON="image/x-icon",o.MICROSOFT_ICON="image/vnd.microsoft.icon",o.MPEG="audio/mpeg",o.MP3="audio/mpeg",o.MP4="video/mp4",o.OGG="audio/ogg",o.WAV="audio/wav",o.MIDI="audio/midi",o.WEBM="video/webm",o.VIDEO_OGG="video/ogg",o.OCTET_STREAM="application/octet-stream",o.JAVASCRIPT="application/javascript",o.ECMASCRIPT="application/ecmascript",o.JSON="application/json",o.XML="application/xml",o.XHTML="application/xhtml+xml",o.XWWW="application/x-www-form-urlencoded",o.DOC="application/msword",o.CSV="application/x-csv",o.EXCEL="application/vnb.ms-excel",o.PPT="application/vnb.mspowerpoint",o.PDF="application/pdf",o.ZIP="application/zip",o.TGZ="application/x-gtar",o.TAR_GZ="application/x-gzip",o.EOT="appliaction/vnd.ms-fontobject",o.TTF="aplication/font-sfnt",o.PKCS12="aplication/pkcs12",o))(Pu||{}),mn=(o=>(o.ascii="ascii",o.utf8="utf8",o.utf16le="utf16le",o.ucs2="ucs2",o.base64="base64",o.base64url="base64url",o.latin1="latin1",o.binary="binary",o.hex="hex",o))(mn||{});const Ou=(o,t,e)=>t?e===mn.base64?new Blob([o],{type:`${t};${e}`}):e===mn.utf8?new Blob([o],{type:`${t};charset=${e}`}):new Blob([o],{type:`${t}`}):new Blob([o]);function he(){return(performance||Date).now()}function y0(o){let t=0;for(let e=5;e>=0;e=e-2)e==5?t+=o[e-1]*10+o[e]:e==3?t+=(o[e-1]*10+o[e])*60:e==1&&(t+=(o[e-1]*10+o[e])*60*60);return t=Math.floor(Math.max(0,t)),t*1e3}function Qa(o){let t=y0(o)/1e3;const e=t%60;o[5]=e%10,o[4]=Math.floor(e/10),t=Math.floor(t/60);const s=t%60;o[3]=s%10,o[2]=Math.floor(s/10),t=Math.floor(t/60);const r=t%60%24;return o[1]=r%10,o[0]=Math.floor(r/10),o}function v0(o){const t=[0,0,0,0,0,0],e=qa(o);for(let s=0,r=Math.min(e.length,3);s<r;s++){const n=Math.floor(Math.abs(e[s]));t[2*s+1]=n%10,t[2*s]=Math.floor(n/10)}return Qa(t)}function Ka(o,t=1){return o[5]+=t,Qa(o)}function Ja(o,t=1){return o[5]-=t,Qa(o)}function b0(o,t){o.forEach((e,s)=>{t[s]=e})}function _0(o,t){const e=t.reduce((s,r)=>{const{match:n,error:a}=r;return n(o)||s.push(a),s},[]);return{valid:e.length===0,errors:e}}function x0(o="xxx不能为空!"){return{match:t=>!!t,error:o}}function w0(o="邮箱格式不正确!"){return{match:t=>vs("email",t),error:o}}class k0{criterias=[];constructor(t=[]){t.forEach(e=>this.add(e))}add(...t){this.criterias.push(...t)}clear(){this.criterias=[]}get(){return t=>_0(t,this.criterias)}run(t){return this.get()(t)}}function Do(o){return new k0([x0("邮箱不能为空!"),w0("邮箱格式不正确!")]).run(o)}function Ru(o,t){let e=!0;return function(...s){e&&(e=!1,o.apply(this,s),setTimeout(()=>{e=!0},t))}}function C0(o,t){let e;return function(...s){clearTimeout(e),e=setTimeout(()=>{o.apply(this,s)},t)}}class pr{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(s=>s!==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(s=>{s(...e)}),this}once(t,e){const r=(()=>{let n=!1;return(...a)=>{n||(n=!0,e(...a),this.off(t,r))}})();return this.on(t,r),this}}class gn extends pr{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}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(r=>r())),s=this.results.length;e.forEach((r,n)=>{if(r.status=="fulfilled"){const a=r.value;this.results.push(a),this.controller?.enqueue(a),this.emit("success",s+n,a)}else if(r.status=="rejected"){const a=new Error(r.reason);this.results.push(a),this.controller?.enqueue(a),this.emit("error",s+n,a)}}),this.activeTaskCount-=e.length}}}Array.prototype.ap=function(o){return this.reduce((t,e)=>t.concat(o.map(e)),[])};let mr;function ti(o){mr=o,o(),mr=null}class T0{subscribers=new Set;add(){mr&&!this.subscribers.has(mr)&&this.subscribers.add(mr)}notify(){this.subscribers.forEach(t=>t())}}const Iu=new WeakMap;function ei(o,t){let e=Iu.get(o);e||(e=new Map,Iu.set(o,e));let s=e.get(t);return s||(s=new T0,e.set(t,s)),s}function Fu(o,t=!1){const e={get(r,n,a){const i=Reflect.get(r,n,a);if(t&&typeof i=="object"&&i!==null&&!("isYZReactiveProxy"in i)){const c=Fu(i,t);c.YZReactiveProxyParentTarget=r,c.YZReactiveProxyParentKey=n,Reflect.set(a,n,c)}return ei(r,n).add(),Reflect.get(r,n,a)},set(r,n,a,i){const l=Reflect.get(r,n,i),c=Reflect.set(r,n,a,i);return Array.isArray(r)?ei(r.YZReactiveProxyParentTarget,r.YZReactiveProxyParentKey).notify():l!=a&&ei(r,n).notify(),c},has(r,n){return n==="isYZReactiveProxy"||n in r}};return new Proxy(o,e)}const S0=Fu;class si{maps=new Map;mapsAddedDuringUpdate=new Map;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,s]=t[0];return this.delete(e),[e,s]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}clear(){this.maps.clear(),this.mapsAddedDuringUpdate.clear()}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate.clear();for(let s=0,r=e.length;s<r;s++){const[n,a]=e[s];t(n,a)===!1&&this.delete(n)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function E0(o,t=(e,s)=>e<=s){const e=o.length;let s=Math.floor(e/2);for(;s>0;){for(let r=s;r<e;r++){const n=o[r];let a=r;for(;a>=s&&!t(o[a-s],n);)o[a]=o[a-s],a-=s;o[a]=n}s=Math.floor(s/2)}}let Du;try{Du=Promise}catch{Du=function(){}}const gr=/^[a-z0-9]+(-[a-z0-9]+)*$/,yn=(o,t,e,s="")=>{const r=o.split(":");if(o.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const i=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:s,prefix:l,name:i};return t&&!vn(c)?null:c}const n=r[0],a=n.split("-");if(a.length>1){const i={provider:s,prefix:a.shift(),name:a.join("-")};return t&&!vn(i)?null:i}if(e&&s===""){const i={provider:s,prefix:"",name:n};return t&&!vn(i,e)?null:i}return null},vn=(o,t)=>o?!!((o.provider===""||o.provider.match(gr))&&(t&&o.prefix===""||o.prefix.match(gr))&&o.name.match(gr)):!1,$u=Object.freeze({left:0,top:0,width:16,height:16}),bn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_n=Object.freeze({...$u,...bn}),oi=Object.freeze({..._n,body:"",hidden:!1});function P0(o,t){const e={};!o.hFlip!=!t.hFlip&&(e.hFlip=!0),!o.vFlip!=!t.vFlip&&(e.vFlip=!0);const s=((o.rotate||0)+(t.rotate||0))%4;return s&&(e.rotate=s),e}function Lu(o,t){const e=P0(o,t);for(const s in oi)s in bn?s in o&&!(s in e)&&(e[s]=bn[s]):s in t?e[s]=t[s]:s in o&&(e[s]=o[s]);return e}function O0(o,t){const e=o.icons,s=o.aliases||Object.create(null),r=Object.create(null);function n(a){if(e[a])return r[a]=[];if(!(a in r)){r[a]=null;const i=s[a]&&s[a].parent,l=i&&n(i);l&&(r[a]=[i].concat(l))}return r[a]}return(t||Object.keys(e).concat(Object.keys(s))).forEach(n),r}function R0(o,t,e){const s=o.icons,r=o.aliases||Object.create(null);let n={};function a(i){n=Lu(s[i]||r[i],n)}return a(t),e.forEach(a),Lu(o,n)}function Nu(o,t){const e=[];if(typeof o!="object"||typeof o.icons!="object")return e;o.not_found instanceof Array&&o.not_found.forEach(r=>{t(r,null),e.push(r)});const s=O0(o);for(const r in s){const n=s[r];n&&(t(r,R0(o,r,n)),e.push(r))}return e}const I0={provider:"",aliases:{},not_found:{},...$u};function ri(o,t){for(const e in t)if(e in o&&typeof o[e]!=typeof t[e])return!1;return!0}function Mu(o){if(typeof o!="object"||o===null)return null;const t=o;if(typeof t.prefix!="string"||!o.icons||typeof o.icons!="object"||!ri(o,I0))return null;const e=t.icons;for(const r in e){const n=e[r];if(!r.match(gr)||typeof n.body!="string"||!ri(n,oi))return null}const s=t.aliases||Object.create(null);for(const r in s){const n=s[r],a=n.parent;if(!r.match(gr)||typeof a!="string"||!e[a]&&!s[a]||!ri(n,oi))return null}return t}const Au=Object.create(null);function F0(o,t){return{provider:o,prefix:t,icons:Object.create(null),missing:new Set}}function mo(o,t){const e=Au[o]||(Au[o]=Object.create(null));return e[t]||(e[t]=F0(o,t))}function ni(o,t){return Mu(t)?Nu(t,(e,s)=>{s?o.icons[e]=s:o.missing.add(e)}):[]}function D0(o,t,e){try{if(typeof e.body=="string")return o.icons[t]={...e},!0}catch{}return!1}let yr=!1;function zu(o){return typeof o=="boolean"&&(yr=o),yr}function $0(o){const t=typeof o=="string"?yn(o,!0,yr):o;if(t){const e=mo(t.provider,t.prefix),s=t.name;return e.icons[s]||(e.missing.has(s)?null:void 0)}}function L0(o,t){const e=yn(o,!0,yr);if(!e)return!1;const s=mo(e.provider,e.prefix);return D0(s,e.name,t)}function N0(o,t){if(typeof o!="object")return!1;if(typeof t!="string"&&(t=o.provider||""),yr&&!t&&!o.prefix){let r=!1;return Mu(o)&&(o.prefix="",Nu(o,(n,a)=>{a&&L0(n,a)&&(r=!0)})),r}const e=o.prefix;if(!vn({provider:t,prefix:e,name:"a"}))return!1;const s=mo(t,e);return!!ni(s,o)}const Vu=Object.freeze({width:null,height:null}),Bu=Object.freeze({...Vu,...bn}),M0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,A0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Yu(o,t,e){if(t===1)return o;if(e=e||100,typeof o=="number")return Math.ceil(o*t*e)/e;if(typeof o!="string")return o;const s=o.split(M0);if(s===null||!s.length)return o;const r=[];let n=s.shift(),a=A0.test(n);for(;;){if(a){const i=parseFloat(n);isNaN(i)?r.push(n):r.push(Math.ceil(i*t*e)/e)}else r.push(n);if(n=s.shift(),n===void 0)return r.join("");a=!a}}function z0(o,t="defs"){let e="";const s=o.indexOf("<"+t);for(;s>=0;){const r=o.indexOf(">",s),n=o.indexOf("</"+t);if(r===-1||n===-1)break;const a=o.indexOf(">",n);if(a===-1)break;e+=o.slice(r+1,n).trim(),o=o.slice(0,s).trim()+o.slice(a+1)}return{defs:e,content:o}}function V0(o,t){return o?"<defs>"+o+"</defs>"+t:t}function B0(o,t,e){const s=z0(o);return V0(s.defs,t+s.content+e)}const Y0=o=>o==="unset"||o==="undefined"||o==="none";function X0(o,t){const e={..._n,...o},s={...Bu,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let n=e.body;[e,s].forEach(w=>{const _=[],x=w.hFlip,v=w.vFlip;let g=w.rotate;x?v?g+=2:(_.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),_.push("scale(-1 1)"),r.top=r.left=0):v&&(_.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),_.push("scale(1 -1)"),r.top=r.left=0);let m;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:m=r.height/2+r.top,_.unshift("rotate(90 "+m.toString()+" "+m.toString()+")");break;case 2:_.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:m=r.width/2+r.left,_.unshift("rotate(-90 "+m.toString()+" "+m.toString()+")");break}g%2===1&&(r.left!==r.top&&(m=r.left,r.left=r.top,r.top=m),r.width!==r.height&&(m=r.width,r.width=r.height,r.height=m)),_.length&&(n=B0(n,'<g transform="'+_.join(" ")+'">',"</g>"))});const a=s.width,i=s.height,l=r.width,c=r.height;let u,f;a===null?(f=i===null?"1em":i==="auto"?c:i,u=Yu(f,l/c)):(u=a==="auto"?l:a,f=i===null?Yu(u,c/l):i==="auto"?c:i);const d={},p=(w,_)=>{Y0(_)||(d[w]=_.toString())};p("width",u),p("height",f);const h=[r.left,r.top,l,c];return d.viewBox=h.join(" "),{attributes:d,viewBox:h,body:n}}const G0=/\sid="(\S+)"/g,U0="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let j0=0;function H0(o,t=U0){const e=[];let s;for(;s=G0.exec(o);)e.push(s[1]);if(!e.length)return o;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{const a=typeof t=="function"?t(n):t+(j0++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");o=o.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),o=o.replace(new RegExp(r,"g"),""),o}const ai=Object.create(null);function W0(o,t){ai[o]=t}function ii(o){return ai[o]||ai[""]}function li(o){let t;if(typeof o.resources=="string")t=[o.resources];else if(t=o.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:o.path||"/",maxURL:o.maxURL||500,rotate:o.rotate||750,timeout:o.timeout||5e3,random:o.random===!0,index:o.index||0,dataAfterTimeout:o.dataAfterTimeout!==!1}}const ci=Object.create(null),vr=["https://api.simplesvg.com","https://api.unisvg.com"],xn=[];for(;vr.length>0;)vr.length===1||Math.random()>.5?xn.push(vr.shift()):xn.push(vr.pop());ci[""]=li({resources:["https://api.iconify.design"].concat(xn)});function Z0(o,t){const e=li(t);return e===null?!1:(ci[o]=e,!0)}function ui(o){return ci[o]}let Xu=(()=>{let o;try{if(o=fetch,typeof o=="function")return o}catch{}})();function q0(o,t){const e=ui(o);if(!e)return 0;let s;if(!e.maxURL)s=0;else{let r=0;e.resources.forEach(a=>{r=Math.max(r,a.length)});const n=t+".json?icons=";s=e.maxURL-r-e.path.length-n.length}return s}function Q0(o){return o===404}const K0=(o,t,e)=>{const s=[],r=q0(o,t),n="icons";let a={type:n,provider:o,prefix:t,icons:[]},i=0;return e.forEach((l,c)=>{i+=l.length+1,i>=r&&c>0&&(s.push(a),a={type:n,provider:o,prefix:t,icons:[]},i=l.length),a.icons.push(l)}),s.push(a),s};function J0(o){if(typeof o=="string"){const t=ui(o);if(t)return t.path}return"/"}const tg={prepare:K0,send:(o,t,e)=>{if(!Xu){e("abort",424);return}let s=J0(t.provider);switch(t.type){case"icons":{const n=t.prefix,i=t.icons.join(","),l=new URLSearchParams({icons:i});s+=n+".json?"+l.toString();break}case"custom":{const n=t.uri;s+=n.slice(0,1)==="/"?n.slice(1):n;break}default:e("abort",400);return}let r=503;Xu(o+s).then(n=>{const a=n.status;if(a!==200){setTimeout(()=>{e(Q0(a)?"abort":"next",a)});return}return r=501,n.json()}).then(n=>{if(typeof n!="object"||n===null){setTimeout(()=>{n===404?e("abort",n):e("next",r)});return}setTimeout(()=>{e("success",n)})}).catch(()=>{e("next",r)})}};function eg(o){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);o.sort((r,n)=>r.provider!==n.provider?r.provider.localeCompare(n.provider):r.prefix!==n.prefix?r.prefix.localeCompare(n.prefix):r.name.localeCompare(n.name));let s={provider:"",prefix:"",name:""};return o.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const n=r.provider,a=r.prefix,i=r.name,l=e[n]||(e[n]=Object.create(null)),c=l[a]||(l[a]=mo(n,a));let u;i in c.icons?u=t.loaded:a===""||c.missing.has(i)?u=t.missing:u=t.pending;const f={provider:n,prefix:a,name:i};u.push(f)}),t}function Gu(o,t){o.forEach(e=>{const s=e.loaderCallbacks;s&&(e.loaderCallbacks=s.filter(r=>r.id!==t))})}function sg(o){o.pendingCallbacksFlag||(o.pendingCallbacksFlag=!0,setTimeout(()=>{o.pendingCallbacksFlag=!1;const t=o.loaderCallbacks?o.loaderCallbacks.slice(0):[];if(!t.length)return;let e=!1;const s=o.provider,r=o.prefix;t.forEach(n=>{const a=n.icons,i=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(o.icons[c])a.loaded.push({provider:s,prefix:r,name:c});else if(o.missing.has(c))a.missing.push({provider:s,prefix:r,name:c});else return e=!0,!0;return!1}),a.pending.length!==i&&(e||Gu([o],n.id),n.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),n.abort))})}))}let og=0;function rg(o,t,e){const s=og++,r=Gu.bind(null,e,s);if(!t.pending.length)return r;const n={id:s,icons:t,callback:o,abort:r};return e.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(n)}),r}function ng(o,t=!0,e=!1){const s=[];return o.forEach(r=>{const n=typeof r=="string"?yn(r,t,e):r;n&&s.push(n)}),s}var ag={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ig(o,t,e,s){const r=o.resources.length,n=o.random?Math.floor(Math.random()*r):o.index;let a;if(o.random){let C=o.resources.slice(0);for(a=[];C.length>1;){const U=Math.floor(Math.random()*C.length);a.push(C[U]),C=C.slice(0,U).concat(C.slice(U+1))}a=a.concat(C)}else a=o.resources.slice(n).concat(o.resources.slice(0,n));const i=Date.now();let l="pending",c=0,u,f=null,d=[],p=[];typeof s=="function"&&p.push(s);function h(){f&&(clearTimeout(f),f=null)}function w(){l==="pending"&&(l="aborted"),h(),d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function _(C,U){U&&(p=[]),typeof C=="function"&&p.push(C)}function x(){return{startTime:i,payload:t,status:l,queriesSent:c,queriesPending:d.length,subscribe:_,abort:w}}function v(){l="failed",p.forEach(C=>{C(void 0,u)})}function g(){d.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),d=[]}function m(C,U,K){const I=U!=="success";switch(d=d.filter($=>$!==C),l){case"pending":break;case"failed":if(I||!o.dataAfterTimeout)return;break;default:return}if(U==="abort"){u=K,v();return}if(I){u=K,d.length||(a.length?b():v());return}if(h(),g(),!o.random){const $=o.resources.indexOf(C.resource);$!==-1&&$!==o.index&&(o.index=$)}l="completed",p.forEach($=>{$(K)})}function b(){if(l!=="pending")return;h();const C=a.shift();if(C===void 0){if(d.length){f=setTimeout(()=>{h(),l==="pending"&&(g(),v())},o.timeout);return}v();return}const U={status:"pending",resource:C,callback:(K,I)=>{m(U,K,I)}};d.push(U),c++,f=setTimeout(b,o.rotate),e(C,t,U.callback)}return setTimeout(b),x}function Uu(o){const t={...ag,...o};let e=[];function s(){e=e.filter(i=>i().status==="pending")}function r(i,l,c){const u=ig(t,i,l,(f,d)=>{s(),c&&c(f,d)});return e.push(u),u}function n(i){return e.find(l=>i(l))||null}return{query:r,find:n,setIndex:i=>{t.index=i},getIndex:()=>t.index,cleanup:s}}function ju(){}const fi=Object.create(null);function lg(o){if(!fi[o]){const t=ui(o);if(!t)return;const e=Uu(t),s={config:t,redundancy:e};fi[o]=s}return fi[o]}function cg(o,t,e){let s,r;if(typeof o=="string"){const n=ii(o);if(!n)return e(void 0,424),ju;r=n.send;const a=lg(o);a&&(s=a.redundancy)}else{const n=li(o);if(n){s=Uu(n);const a=o.resources?o.resources[0]:"",i=ii(a);i&&(r=i.send)}}return!s||!r?(e(void 0,424),ju):s.query(t,r,e)().abort}const Hu="iconify2",br="iconify",Wu=br+"-count",Zu=br+"-version",qu=36e5,ug=168,fg=50;function di(o,t){try{return o.getItem(t)}catch{}}function hi(o,t,e){try{return o.setItem(t,e),!0}catch{}}function Qu(o,t){try{o.removeItem(t)}catch{}}function pi(o,t){return hi(o,Wu,t.toString())}function mi(o){return parseInt(di(o,Wu))||0}const wn={local:!0,session:!0},Ku={local:new Set,session:new Set};let gi=!1;function dg(o){gi=o}let kn=typeof window>"u"?{}:window;function Ju(o){const t=o+"Storage";try{if(kn&&kn[t]&&typeof kn[t].length=="number")return kn[t]}catch{}wn[o]=!1}function tf(o,t){const e=Ju(o);if(!e)return;const s=di(e,Zu);if(s!==Hu){if(s){const i=mi(e);for(let l=0;l<i;l++)Qu(e,br+l.toString())}hi(e,Zu,Hu),pi(e,0);return}const r=Math.floor(Date.now()/qu)-ug,n=i=>{const l=br+i.toString(),c=di(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,i))return!0}catch{}Qu(e,l)}};let a=mi(e);for(let i=a-1;i>=0;i--)n(i)||(i===a-1?(a--,pi(e,a)):Ku[o].add(i))}function ef(){if(!gi){dg(!0);for(const o in wn)tf(o,t=>{const e=t.data,s=t.provider,r=e.prefix,n=mo(s,r);if(!ni(n,e).length)return!1;const a=e.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,a):a,!0})}}function hg(o,t){const e=o.lastModifiedCached;if(e&&e>=t)return e===t;if(o.lastModifiedCached=t,e)for(const s in wn)tf(s,r=>{const n=r.data;return r.provider!==o.provider||n.prefix!==o.prefix||n.lastModified===t});return!0}function pg(o,t){gi||ef();function e(s){let r;if(!wn[s]||!(r=Ju(s)))return;const n=Ku[s];let a;if(n.size)n.delete(a=Array.from(n).shift());else if(a=mi(r),a>=fg||!pi(r,a+1))return;const i={cached:Math.floor(Date.now()/qu),provider:o.provider,data:t};return hi(r,br+a.toString(),JSON.stringify(i))}t.lastModified&&!hg(o,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function sf(){}function mg(o){o.iconsLoaderFlag||(o.iconsLoaderFlag=!0,setTimeout(()=>{o.iconsLoaderFlag=!1,sg(o)}))}function gg(o,t){o.iconsToLoad?o.iconsToLoad=o.iconsToLoad.concat(t).sort():o.iconsToLoad=t,o.iconsQueueFlag||(o.iconsQueueFlag=!0,setTimeout(()=>{o.iconsQueueFlag=!1;const{provider:e,prefix:s}=o,r=o.iconsToLoad;delete o.iconsToLoad;let n;if(!r||!(n=ii(e)))return;n.prepare(e,s,r).forEach(i=>{cg(e,i,l=>{if(typeof l!="object")i.icons.forEach(c=>{o.missing.add(c)});else try{const c=ni(o,l);if(!c.length)return;const u=o.pendingIcons;u&&c.forEach(f=>{u.delete(f)}),pg(o,l)}catch(c){console.error(c)}mg(o)})})}))}const yg=(o,t)=>{const e=ng(o,!0,zu()),s=eg(e);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,sf)}),()=>{l=!1}}const r=Object.create(null),n=[];let a,i;return s.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===i&&c===a)return;a=c,i=u,n.push(mo(c,u));const f=r[c]||(r[c]=Object.create(null));f[u]||(f[u]=[])}),s.pending.forEach(l=>{const{provider:c,prefix:u,name:f}=l,d=mo(c,u),p=d.pendingIcons||(d.pendingIcons=new Set);p.has(f)||(p.add(f),r[c][u].push(f))}),n.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&gg(l,r[c][u])}),t?rg(t,s,n):sf};function vg(o,t){const e={...o};for(const s in t){const r=t[s],n=typeof r;s in Vu?(r===null||r&&(n==="string"||n==="number"))&&(e[s]=r):n===typeof e[s]&&(e[s]=s==="rotate"?r%4:r)}return e}const bg=/[\s,]+/;function _g(o,t){t.split(bg).forEach(e=>{switch(e.trim()){case"horizontal":o.hFlip=!0;break;case"vertical":o.vFlip=!0;break}})}function xg(o,t=0){const e=o.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(o);return isNaN(r)?0:s(r)}else if(e!==o){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let n=parseFloat(o.slice(0,o.length-e.length));return isNaN(n)?0:(n=n/r,n%1===0?s(n):0)}}return t}function wg(o,t){let e=o.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)e+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+o+"</svg>"}function kg(o){return o.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Cg(o){return"data:image/svg+xml,"+kg(o)}function Tg(o){return'url("'+Cg(o)+'")'}const of={...Bu,inline:!1},Sg={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Eg={display:"inline-block"},yi={backgroundColor:"currentColor"},rf={backgroundColor:"transparent"},nf={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},af={webkitMask:yi,mask:yi,background:rf};for(const o in af){const t=af[o];for(const e in nf)t[o+e]=nf[e]}const Cn={};["horizontal","vertical"].forEach(o=>{const t=o.slice(0,1)+"Flip";Cn[o+"-flip"]=t,Cn[o.slice(0,1)+"-flip"]=t,Cn[o+"Flip"]=t});function lf(o){return o+(o.match(/^[-0-9.]+$/)?"px":"")}const cf=(o,t)=>{const e=vg(of,t),s={...Sg},r=t.mode||"svg",n={},a=t.style,i=typeof a=="object"&&!(a instanceof Array)?a:{};for(let w in t){const _=t[w];if(_!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[w]=_===!0||_==="true"||_===1;break;case"flip":typeof _=="string"&&_g(e,_);break;case"color":n.color=_;break;case"rotate":typeof _=="string"?e[w]=xg(_):typeof _=="number"&&(e[w]=_);break;case"ariaHidden":case"aria-hidden":_!==!0&&_!=="true"&&delete s["aria-hidden"];break;default:{const x=Cn[w];x?(_===!0||_==="true"||_===1)&&(e[x]=!0):of[w]===void 0&&(s[w]=_)}}}const l=X0(o,e),c=l.attributes;if(e.inline&&(n.verticalAlign="-0.125em"),r==="svg"){s.style={...n,...i},Object.assign(s,c);let w=0,_=t.id;return typeof _=="string"&&(_=_.replace(/-/g,"_")),s.innerHTML=H0(l.body,_?()=>_+"ID"+w++:"iconifyVue"),Kt("svg",s)}const{body:u,width:f,height:d}=o,p=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),h=wg(u,{...c,width:f+"",height:d+""});return s.style={...n,"--svg":Tg(h),width:lf(c.width),height:lf(c.height),...Eg,...p?yi:rf,...i},Kt("span",s)};if(zu(!0),W0("",tg),typeof document<"u"&&typeof window<"u"){ef();const o=window;if(o.IconifyPreload!==void 0){const t=o.IconifyPreload,e="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!N0(s))&&console.error(e)}catch{console.error(e)}})}if(o.IconifyProviders!==void 0){const t=o.IconifyProviders;if(typeof t=="object"&&t!==null)for(let e in t){const s="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;Z0(e,r)||console.error(s)}catch{console.error(s)}}}}const Pg={..._n,body:""},uf=q({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(o,t){if(typeof o=="object"&&o!==null&&typeof o.body=="string")return this._name="",this.abortLoading(),{data:o};let e;if(typeof o!="string"||(e=yn(o,!1,!0))===null)return this.abortLoading(),null;const s=$0(e);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==o)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:o,abort:yg([e],()=>{this.counter++})})),null;this.abortLoading(),this._name!==o&&(this._name=o,t&&t(o));const r=["iconify"];return e.prefix!==""&&r.push("iconify--"+e.prefix),e.provider!==""&&r.push("iconify--"+e.provider),{data:s,classes:r}}},render(){this.counter;const o=this.$attrs,t=this.iconMounted||o.ssr?this.getIcon(o.icon,o.onLoad):null;if(!t)return cf(Pg,o);let e=o;return t.classes&&(e={...o,class:(typeof o.class=="string"?o.class+" ":"")+t.classes.join(" ")}),cf({..._n,...t.data},e)}});function Og(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Rg={exports:{}};(function(o,t){(function(e){o.exports=e()})(function(e){var s=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(x,v){var g=x[0],m=x[1],b=x[2],C=x[3];g+=(m&b|~m&C)+v[0]-680876936|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&b)+v[1]-389564586|0,C=(C<<12|C>>>20)+g|0,b+=(C&g|~C&m)+v[2]+606105819|0,b=(b<<17|b>>>15)+C|0,m+=(b&C|~b&g)+v[3]-1044525330|0,m=(m<<22|m>>>10)+b|0,g+=(m&b|~m&C)+v[4]-176418897|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&b)+v[5]+1200080426|0,C=(C<<12|C>>>20)+g|0,b+=(C&g|~C&m)+v[6]-1473231341|0,b=(b<<17|b>>>15)+C|0,m+=(b&C|~b&g)+v[7]-45705983|0,m=(m<<22|m>>>10)+b|0,g+=(m&b|~m&C)+v[8]+1770035416|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&b)+v[9]-1958414417|0,C=(C<<12|C>>>20)+g|0,b+=(C&g|~C&m)+v[10]-42063|0,b=(b<<17|b>>>15)+C|0,m+=(b&C|~b&g)+v[11]-1990404162|0,m=(m<<22|m>>>10)+b|0,g+=(m&b|~m&C)+v[12]+1804603682|0,g=(g<<7|g>>>25)+m|0,C+=(g&m|~g&b)+v[13]-40341101|0,C=(C<<12|C>>>20)+g|0,b+=(C&g|~C&m)+v[14]-1502002290|0,b=(b<<17|b>>>15)+C|0,m+=(b&C|~b&g)+v[15]+1236535329|0,m=(m<<22|m>>>10)+b|0,g+=(m&C|b&~C)+v[1]-165796510|0,g=(g<<5|g>>>27)+m|0,C+=(g&b|m&~b)+v[6]-1069501632|0,C=(C<<9|C>>>23)+g|0,b+=(C&m|g&~m)+v[11]+643717713|0,b=(b<<14|b>>>18)+C|0,m+=(b&g|C&~g)+v[0]-373897302|0,m=(m<<20|m>>>12)+b|0,g+=(m&C|b&~C)+v[5]-701558691|0,g=(g<<5|g>>>27)+m|0,C+=(g&b|m&~b)+v[10]+38016083|0,C=(C<<9|C>>>23)+g|0,b+=(C&m|g&~m)+v[15]-660478335|0,b=(b<<14|b>>>18)+C|0,m+=(b&g|C&~g)+v[4]-405537848|0,m=(m<<20|m>>>12)+b|0,g+=(m&C|b&~C)+v[9]+568446438|0,g=(g<<5|g>>>27)+m|0,C+=(g&b|m&~b)+v[14]-1019803690|0,C=(C<<9|C>>>23)+g|0,b+=(C&m|g&~m)+v[3]-187363961|0,b=(b<<14|b>>>18)+C|0,m+=(b&g|C&~g)+v[8]+1163531501|0,m=(m<<20|m>>>12)+b|0,g+=(m&C|b&~C)+v[13]-1444681467|0,g=(g<<5|g>>>27)+m|0,C+=(g&b|m&~b)+v[2]-51403784|0,C=(C<<9|C>>>23)+g|0,b+=(C&m|g&~m)+v[7]+1735328473|0,b=(b<<14|b>>>18)+C|0,m+=(b&g|C&~g)+v[12]-1926607734|0,m=(m<<20|m>>>12)+b|0,g+=(m^b^C)+v[5]-378558|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^b)+v[8]-2022574463|0,C=(C<<11|C>>>21)+g|0,b+=(C^g^m)+v[11]+1839030562|0,b=(b<<16|b>>>16)+C|0,m+=(b^C^g)+v[14]-35309556|0,m=(m<<23|m>>>9)+b|0,g+=(m^b^C)+v[1]-1530992060|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^b)+v[4]+1272893353|0,C=(C<<11|C>>>21)+g|0,b+=(C^g^m)+v[7]-155497632|0,b=(b<<16|b>>>16)+C|0,m+=(b^C^g)+v[10]-1094730640|0,m=(m<<23|m>>>9)+b|0,g+=(m^b^C)+v[13]+681279174|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^b)+v[0]-358537222|0,C=(C<<11|C>>>21)+g|0,b+=(C^g^m)+v[3]-722521979|0,b=(b<<16|b>>>16)+C|0,m+=(b^C^g)+v[6]+76029189|0,m=(m<<23|m>>>9)+b|0,g+=(m^b^C)+v[9]-640364487|0,g=(g<<4|g>>>28)+m|0,C+=(g^m^b)+v[12]-421815835|0,C=(C<<11|C>>>21)+g|0,b+=(C^g^m)+v[15]+530742520|0,b=(b<<16|b>>>16)+C|0,m+=(b^C^g)+v[2]-995338651|0,m=(m<<23|m>>>9)+b|0,g+=(b^(m|~C))+v[0]-198630844|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~b))+v[7]+1126891415|0,C=(C<<10|C>>>22)+g|0,b+=(g^(C|~m))+v[14]-1416354905|0,b=(b<<15|b>>>17)+C|0,m+=(C^(b|~g))+v[5]-57434055|0,m=(m<<21|m>>>11)+b|0,g+=(b^(m|~C))+v[12]+1700485571|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~b))+v[3]-1894986606|0,C=(C<<10|C>>>22)+g|0,b+=(g^(C|~m))+v[10]-1051523|0,b=(b<<15|b>>>17)+C|0,m+=(C^(b|~g))+v[1]-2054922799|0,m=(m<<21|m>>>11)+b|0,g+=(b^(m|~C))+v[8]+1873313359|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~b))+v[15]-30611744|0,C=(C<<10|C>>>22)+g|0,b+=(g^(C|~m))+v[6]-1560198380|0,b=(b<<15|b>>>17)+C|0,m+=(C^(b|~g))+v[13]+1309151649|0,m=(m<<21|m>>>11)+b|0,g+=(b^(m|~C))+v[4]-145523070|0,g=(g<<6|g>>>26)+m|0,C+=(m^(g|~b))+v[11]-1120210379|0,C=(C<<10|C>>>22)+g|0,b+=(g^(C|~m))+v[2]+718787259|0,b=(b<<15|b>>>17)+C|0,m+=(C^(b|~g))+v[9]-343485551|0,m=(m<<21|m>>>11)+b|0,x[0]=g+x[0]|0,x[1]=m+x[1]|0,x[2]=b+x[2]|0,x[3]=C+x[3]|0}function n(x){var v=[],g;for(g=0;g<64;g+=4)v[g>>2]=x.charCodeAt(g)+(x.charCodeAt(g+1)<<8)+(x.charCodeAt(g+2)<<16)+(x.charCodeAt(g+3)<<24);return v}function a(x){var v=[],g;for(g=0;g<64;g+=4)v[g>>2]=x[g]+(x[g+1]<<8)+(x[g+2]<<16)+(x[g+3]<<24);return v}function i(x){var v=x.length,g=[1732584193,-271733879,-1732584194,271733878],m,b,C,U,K,I;for(m=64;m<=v;m+=64)r(g,n(x.substring(m-64,m)));for(x=x.substring(m-64),b=x.length,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<b;m+=1)C[m>>2]|=x.charCodeAt(m)<<(m%4<<3);if(C[m>>2]|=128<<(m%4<<3),m>55)for(r(g,C),m=0;m<16;m+=1)C[m]=0;return U=v*8,U=U.toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(U[2],16),I=parseInt(U[1],16)||0,C[14]=K,C[15]=I,r(g,C),g}function l(x){var v=x.length,g=[1732584193,-271733879,-1732584194,271733878],m,b,C,U,K,I;for(m=64;m<=v;m+=64)r(g,a(x.subarray(m-64,m)));for(x=m-64<v?x.subarray(m-64):new Uint8Array(0),b=x.length,C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<b;m+=1)C[m>>2]|=x[m]<<(m%4<<3);if(C[m>>2]|=128<<(m%4<<3),m>55)for(r(g,C),m=0;m<16;m+=1)C[m]=0;return U=v*8,U=U.toString(16).match(/(.*?)(.{0,8})$/),K=parseInt(U[2],16),I=parseInt(U[1],16)||0,C[14]=K,C[15]=I,r(g,C),g}function c(x){var v="",g;for(g=0;g<4;g+=1)v+=s[x>>g*8+4&15]+s[x>>g*8&15];return v}function u(x){var v;for(v=0;v<x.length;v+=1)x[v]=c(x[v]);return x.join("")}u(i("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function x(v,g){return v=v|0||0,v<0?Math.max(v+g,0):Math.min(v,g)}ArrayBuffer.prototype.slice=function(v,g){var m=this.byteLength,b=x(v,m),C=m,U,K,I,$;return g!==e&&(C=x(g,m)),b>C?new ArrayBuffer(0):(U=C-b,K=new ArrayBuffer(U),I=new Uint8Array(K),$=new Uint8Array(this,b,U),I.set($),K)}}();function f(x){return/[\u0080-\uFFFF]/.test(x)&&(x=unescape(encodeURIComponent(x))),x}function d(x,v){var g=x.length,m=new ArrayBuffer(g),b=new Uint8Array(m),C;for(C=0;C<g;C+=1)b[C]=x.charCodeAt(C);return v?b:m}function p(x){return String.fromCharCode.apply(null,new Uint8Array(x))}function h(x,v,g){var m=new Uint8Array(x.byteLength+v.byteLength);return m.set(new Uint8Array(x)),m.set(new Uint8Array(v),x.byteLength),g?m:m.buffer}function w(x){var v=[],g=x.length,m;for(m=0;m<g-1;m+=2)v.push(parseInt(x.substr(m,2),16));return String.fromCharCode.apply(String,v)}function _(){this.reset()}return _.prototype.append=function(x){return this.appendBinary(f(x)),this},_.prototype.appendBinary=function(x){this._buff+=x,this._length+=x.length;var v=this._buff.length,g;for(g=64;g<=v;g+=64)r(this._hash,n(this._buff.substring(g-64,g)));return this._buff=this._buff.substring(g-64),this},_.prototype.end=function(x){var v=this._buff,g=v.length,m,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C;for(m=0;m<g;m+=1)b[m>>2]|=v.charCodeAt(m)<<(m%4<<3);return this._finish(b,g),C=u(this._hash),x&&(C=w(C)),this.reset(),C},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},_.prototype.setState=function(x){return this._buff=x.buff,this._length=x.length,this._hash=x.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.prototype._finish=function(x,v){var g=v,m,b,C;if(x[g>>2]|=128<<(g%4<<3),g>55)for(r(this._hash,x),g=0;g<16;g+=1)x[g]=0;m=this._length*8,m=m.toString(16).match(/(.*?)(.{0,8})$/),b=parseInt(m[2],16),C=parseInt(m[1],16)||0,x[14]=b,x[15]=C,r(this._hash,x)},_.hash=function(x,v){return _.hashBinary(f(x),v)},_.hashBinary=function(x,v){var g=i(x),m=u(g);return v?w(m):m},_.ArrayBuffer=function(){this.reset()},_.ArrayBuffer.prototype.append=function(x){var v=h(this._buff.buffer,x,!0),g=v.length,m;for(this._length+=x.byteLength,m=64;m<=g;m+=64)r(this._hash,a(v.subarray(m-64,m)));return this._buff=m-64<g?new Uint8Array(v.buffer.slice(m-64)):new Uint8Array(0),this},_.ArrayBuffer.prototype.end=function(x){var v=this._buff,g=v.length,m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b,C;for(b=0;b<g;b+=1)m[b>>2]|=v[b]<<(b%4<<3);return this._finish(m,g),C=u(this._hash),x&&(C=w(C)),this.reset(),C},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var x=_.prototype.getState.call(this);return x.buff=p(x.buff),x},_.ArrayBuffer.prototype.setState=function(x){return x.buff=d(x.buff,!0),_.prototype.setState.call(this,x)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(x,v){var g=l(new Uint8Array(x)),m=u(g);return v?w(m):m},_})})(Rg);const ff=o=>new XMLSerializer().serializeToString(o),Ig=(o,t=Pu.SVG,e=mn.utf8)=>Ou(ff(o),t,e),Fg=(o,t,e)=>{const s=async r=>{await e(r)};return o.addEventListener(t,s,!1),()=>{o.removeEventListener(t,s,!1)}};function vi(){const o=new pr;return{on:(t,e)=>{o.on(t,e)},off:(t,e)=>{o.off(t,e)},emit:(t,...e)=>{o.emit(t,...e)}}}function Dg(){const o=vi();return{destroy:Fg(document,"scroll",t=>{o.emit("scroll",t)}),on:t=>(o.on("scroll",t),()=>{o.off("scroll",t)})}}function $g(o){const t=vi(),e=new ResizeObserver(s=>{const r=s[0],{width:n,height:a}=r.contentRect;t.emit("resize",n,a)});return e.observe(o),{on:s=>(t.on("resize",s),()=>{t.off("resize",s)}),destroy:()=>{e.unobserve(o)}}}function Tn(o,t=.5,e){const s=vi();let r;const n=new IntersectionObserver((a,i)=>{let l=a[0];if(a.length>1){const u=a.find(f=>f.isIntersecting);u&&(l=u)}const c=l.isIntersecting&&l.intersectionRatio>=t;r!==c&&(c?s.emit("show"):s.emit("hide"),r=c)},{threshold:t,root:e});return n.observe(o),{onshow:a=>(s.on("show",a),()=>{s.off("show",a)}),onhide:a=>(s.on("hide",a),()=>{s.off("hide",a)}),destroy:()=>{n.unobserve(o)}}}function Sn(o,t,e,s,r){const n=t/e;let a=0,i=0;switch(o){case"aspectFit":n>=1?(a=s,i=a/n,i>r&&(i=r,a=i*n)):(i=r,a=i*n,a>s&&(a=s,i=a/n));break;case"aspectFill":n>=1?(i=r,a=i*n):(a=s,i=a/n);break;case"widthFix":a=s,i=a/n;break;case"heightFix":i=r,a=i*n;break;case"scaleToFill":default:a=s,i=r;break}return{width:a,height:i}}function Lg(o){const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=o.width,t.height=o.height,e.drawImage(o,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}function Ng(){const o=window.navigator.userAgent,t=o.indexOf("MSIE ");if(t>0)return parseInt(o.substring(t+5,o.indexOf(".",t)),10);if(o.indexOf("Trident/")>0){const r=o.indexOf("rv:");return parseInt(o.substring(r+3,o.indexOf(".",r)),10)}const s=o.indexOf("Edge/");return s>0?parseInt(o.substring(s+5,o.indexOf(".",s)),10):-1}const bi=Ng()!==-1;(()=>{const o=yu();return!!(o.Worker&&o.Blob&&o.Promise&&o.OffscreenCanvas&&o.OffscreenCanvasRenderingContext2D&&o.HTMLCanvasElement&&o.HTMLCanvasElement.prototype.transferControlToOffscreen&&o.URL&&o.URL.createObjectURL)})(),function(){if(!yu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const s=t.transferToImageBitmap();try{e.createPattern(s,"no-repeat")}catch{return!1}return!0}();function Bt(o){return o*Math.PI/180}function Xe(o){return o*180/Math.PI}function _i(o,t,e=0){return Math.sqrt(o*o+t*t+e*e)}function xi(o,t,e,s){return _i(e-o,s-t)}function wi(o,t,e,s){const r=e-o,n=s-t;return r*r+n*n}function $o(o,t,e,s){let r=Math.atan2(s-t,e-o);return r<0&&(r+=Math.PI*2),r}function Ms(o,t){return{dx:Math.cos(o)*t,dy:Math.sin(o)*t}}const df=Mg("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 Mg(o,t=10){const e={},s=o.split(",");for(let r=0;r<s.length;r+=2){const n="&"+s[r+1]+";",a=parseInt(s[r],t);e[n]="&#"+a+";"}return e["\\xa0"]=" ",e}function Ne(o,t){const e=Object.keys(t);for(let s=0;s<e.length;s++)o=o.replace(new RegExp("{"+e[s]+"}","gi"),""+t[e[s]]);return o}function En(o){let t,e;if(!o)throw new Error("cannot create a random attribute name for an undefined object");const s="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=s[Math.floor(Math.random()*s.length)];while(o[t]);return t}function Ag(o){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[o]||t.start}function zg(o){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[o]||t.alphabetic}const _r={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 ki{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const s=this.__ctx.__createElement("stop");if(s.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const n=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);n&&(s.setAttribute("stop-color",Ne("rgb({r},{g},{b})",{r:n[1],g:n[2],b:n[3]})),s.setAttribute("stop-opacity",n[4]))}else s.setAttribute("stop-color",e);this.__root.appendChild(s)}}class hf{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class Pn{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:s=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=s),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(_r);for(let e=0,s=t.length;e<s;e++){const r=t[e];this[r]=_r[r].canvas}}__getStyleState(){const t={},e=Object.keys(_r);for(let s=0,r=e.length;s<r;s++){const n=e[s];t[n]=this[n]}return t}__applyStyleState(t){const e=Object.keys(t);for(let s=0,r=e.length;s<r;s++){const n=e[s];this[n]=t[n]}}__createElement(t,e={},s=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),n=Object.keys(e);s&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let a=0;a<n.length;a++){const i=n[a];r.setAttribute(i,e[i])}return r}__applyStyleToCurrentElement(t){let e=this.__currentElement;const s=this.__currentElementsToStyle;s&&(e.setAttribute(t,""),e=s.element,s.children.forEach(n=>{n.setAttribute(t,"")}));const r=Object.keys(_r);for(let n=0;n<r.length;n++){const a=_r[r[n]],i=this[r[n]];if(a.apply){if(i instanceof hf){if(i.__ctx)for(;i.__ctx.__SVGdefs.childNodes.length;){const l=i.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(i.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(a.apply,Ne("url(#{id})",{id:i.__root.getAttribute("id")}))}else if(i instanceof ki)e.setAttribute(a.apply,Ne("url(#{id})",{id:i.__root.getAttribute("id")}));else if(a.apply.indexOf(t)!==-1&&a.svg!==i)if((a.svgAttr==="stroke"||a.svgAttr==="fill")&&i.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(i);if(c){e.setAttribute(a.svgAttr,Ne("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const f=this.globalAlpha;f!=null&&(u*=f),e.setAttribute(a.svgAttr+"-opacity",""+u)}}else{let l=a.svgAttr;if(r[n]==="globalAlpha"&&(l=t+"-"+a.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,i)}}}}__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(df);for(let n=0,a=r.length;n<a;n++){const i=r[n],l=df[i],c=new RegExp(i,"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 s=this.__currentElement.getAttribute("transform");s?s+=" ":s="",s+=t,this.__currentElement.setAttribute("transform",s)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Ne("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Ne("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Ne("translate({x},{y})",{x:t,y:e}))}transform(t,e,s,r,n,a){this.__addTransform(Ne("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:s,d:r,e:n,f:a}))}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(Ne("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(Ne("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Ne("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,s,r,n,a){this.__currentPosition={x:n,y:a},this.__addPathCommand(Ne("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:s,cp2y:r,x:n,y:a}))}quadraticCurveTo(t,e,s,r){this.__currentPosition={x:s,y:r},this.__addPathCommand(Ne("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:s,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,s,r,n){const a=this.__currentPosition&&this.__currentPosition.x,i=this.__currentPosition&&this.__currentPosition.y;if(typeof a>"u"||typeof i>"u")return;if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(a===t&&i===e||t===s&&e===r||n===0){this.lineTo(t,e);return}const l=this.normalize([a-t,i-e]),c=this.normalize([s-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],f=Math.acos(Math.abs(u)),d=this.normalize([l[0]+c[0],l[1]+c[1]]),p=n/Math.sin(f/2),h=t+p*d[0],w=e+p*d[1],_=[-l[1],l[0]],x=[c[1],-c[0]],v=function(b){const C=b[0];return b[1]>=0?Math.acos(C):-Math.acos(C)},g=v(_),m=v(x);this.lineTo(h+_[0]*n,w+_[1]*n),this.arc(h,w,n,g,m)}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,s,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+s,e),this.lineTo(t+s,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,s,r){const n=this.__createElement("rect",{x:t,y:e,width:s,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,s,r){const n=this.__createElement("rect",{x:t,y:e,width:s,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),s=this.__rootSVG.childNodes[1],r=s.childNodes;for(let n=r.length-1;n>=0;n--)r[n]&&s.removeChild(r[n]);this.__currentElement=s,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,s,r){if(t===0&&e===0&&s===this.width&&r===this.height){this.__clearCanvas();return}const n=this.__closestGroupOrSvg(),a=this.__createElement("rect",{x:t,y:e,width:s,height:r,fill:"#FFFFFF"},!0);n.appendChild(a)}createLinearGradient(t,e,s,r){const n=this.__createElement("linearGradient",{id:En(this.__ids),x1:t+"px",x2:s+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(n),new ki(n,this)}createRadialGradient(t,e,s,r,n,a){const i=this.__createElement("radialGradient",{id:En(this.__ids),cx:r+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new ki(i,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),s={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"&&(s.decoration="underline"),this.__fontHref&&(s.href=this.__fontHref),s}__wrapTextLink(t,e){if(t.href){const s=this.__createElement("a");return s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),s.appendChild(e),s}return e}__applyText(t,e,s,r){const n=this.__parseFont(),a=this.__closestGroupOrSvg(),i=this.__createElement("text",{"font-family":n.family,"font-size":n.size,"font-style":n.style,"font-weight":n.weight,"text-decoration":n.decoration,x:e,y:s,"text-anchor":Ag(this.textAlign),"dominant-baseline":zg(this.textBaseline)},!0);i.appendChild(this.__document.createTextNode(t)),this.__currentElement=i,this.__applyStyleToCurrentElement(r),a.appendChild(this.__wrapTextLink(n,i))}fillText(t,e,s){this.__applyText(t,e,s,"fill")}strokeText(t,e,s){this.__applyText(t,e,s,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,s,r,n,a){if(r===n)return;r=r%(2*Math.PI),n=n%(2*Math.PI),r===n&&(n=(n+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));const i=t+s*Math.cos(n),l=e+s*Math.sin(n),c=t+s*Math.cos(r),u=e+s*Math.sin(r),f=a?0:1;let d=0,p=n-r;p<0&&(p+=2*Math.PI),a?d=p>Math.PI?0:1:d=p>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Ne("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:s,ry:s,xAxisRotation:0,largeArcFlag:d,sweepFlag:f,endX:i,endY:l})),this.__currentPosition={x:i,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),s=En(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",s),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Ne("url(#{id})",{id:s})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],s,r,n,a,i=0,l=0,c,u,f,d,p,h,w,_;if(t.length===3)s=t[1],r=t[2],c=e.width,u=e.height,n=c,a=u;else if(t.length===5)s=t[1],r=t[2],n=t[3],a=t[4],c=e.width,u=e.height;else if(t.length===9)i=t[1],l=t[2],c=t[3],u=t[4],s=t[5],r=t[6],n=t[7],a=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const x=this.__closestGroupOrSvg();this.__currentElement;const v="translate("+s+", "+r+")";if(e instanceof Pn){if(f=e.getSvg().cloneNode(!0),f.childNodes&&f.childNodes.length>1){for(d=f.childNodes[0];d.childNodes.length;)_=d.childNodes[0].getAttribute("id"),this.__ids[_]=_,this.__SVGdefs.appendChild(d.childNodes[0]);if(p=f.childNodes[1],p){const g=p.getAttribute("transform");let m;g?m=g+" "+v:m=v,p.setAttribute("transform",m),x.appendChild(p)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(h=this.__createElement("image"),h.setAttribute("width",n),h.setAttribute("height",a),h.setAttribute("preserveAspectRatio","none"),(i||l||c!==e.width||u!==e.height)&&(w=this.__document.createElement("canvas"),w.width=n,w.height=a,w.getContext("2d")?.drawImage(e,i,l,c,u,0,0,n,a),e=w),h.setAttribute("transform",v),h.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),x.appendChild(h))}createPattern(t,e){const s=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=En(this.__ids);let n;return s.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(n=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),s.appendChild(n),this.__SVGdefs.appendChild(s)):t instanceof Pn&&(s.setAttribute("width",""+t.width),s.setAttribute("height",""+t.height),s.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(s)),new hf(s,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Ci{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,s,r=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),r&&(this.customContext=new Pn({canvas:this.canvas,width:e||this.canvas.width,height:s||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,s,r){return this.context.fillRect(t,e,s,r),this.customContext&&this.customContext.fillRect(t,e,s,r),this}fillText(t,e,s,r){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,s,r),this.customContext&&this.customContext.fillText(t,e,s),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,s,r){return this.context.strokeText(t,e,s,r),this.customContext&&this.customContext.strokeText(t,e,s),this}strokeRect(t,e,s,r){return this.context.strokeRect(t,e,s,r),this.customContext&&this.customContext.strokeRect(t,e,s,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,s=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,s,r),this.customContext&&this.customContext.clearRect(t,e,s,r),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 s=new Path2D;s.addPath(t,e),this.currentPath2D=s}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,s=0){return this.translate(e,s),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-s),this.changePath2D(),this}scale(t,e=t,s=0,r=0){return this.translate(s,r),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-s,-r),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,s,r,n,a){return this.context.arc(t,e,s,r,n,a),this.customContext&&this.customContext.arc(t,e,s,r,n,a?-1:1),this.currentPath2D.arc(t,e,s,r,n,a),this}arcTo(t,e,s,r,n){return this.context.arcTo(t,e,s,r,n),this.customContext&&this.customContext.arcTo(t,e,s,r,n),this.currentPath2D.arcTo(t,e,s,r,n),this}ellipse(t,e,s,r,n,a,i,l){return this.context.ellipse(t,e,s,r,n,a,i,l),this.currentPath2D.ellipse(t,e,s,r,n,a,i,l),this}quadraticCurveTo(t,e,s,r){return this.context.quadraticCurveTo(t,e,s,r),this.customContext&&this.customContext.quadraticCurveTo(t,e,s,r),this.currentPath2D.quadraticCurveTo(t,e,s,r),this}bezierCurveTo(t,e,s,r,n,a){return this.context.bezierCurveTo(t,e,s,r,n,a),this.customContext&&this.customContext.bezierCurveTo(t,e,s,r,n,a),this.currentPath2D.bezierCurveTo(t,e,s,r,n,a),this}rect(t,e,s,r){return this.context.rect(t,e,s,r),this.customContext&&this.customContext.rect(t,e,s,r),this.currentPath2D.rect(t,e,s,r),this}createLinearGradient(t,e,s,r,n){const a=this.context.createLinearGradient(t,e,s,r);return n&&Object.entries(n).forEach(([i,l])=>{a.addColorStop(parseFloat(i),l)}),a}createRadialGradient(t,e,s,r,n,a,i){const l=this.context.createRadialGradient(t,e,s,r,n,a);return i&&Object.entries(i).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 s=e[0],r=e[1];this.context.drawImage(t,s,r)}else if(e.length===4){const s=e[0],r=e[1],n=e[2],a=e[3];this.context.drawImage(t,s,r,n,a)}else if(e.length===8){const s=e[0],r=e[1],n=e[2],a=e[3],i=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,s,r,n,a,i,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,s=this.canvas.width,r=this.canvas.height,n){return this.context.getImageData(t,e,s,r,n)}putImageData(t,e=0,s=0){return this.context.putImageData(t,e,s)}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 On{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=$o(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),s=Math.min(this.y,this.toY),r=Math.max(this.x,this.toX),n=Math.max(this.y,this.toY);return{x:e,y:s,width:r-e,height:n-s}}else{const e=Math.sin(t),s=Math.cos(t),r=s*this.x-e*this.y,n=s*this.toX-e*this.toY,a=s*this.y+e*this.x,i=s*this.toY+e*this.toX;return{x:Math.min(r,n),y:Math.min(a,i),width:Math.max(r,n)-Math.min(r,n),height:Math.max(a,i)-Math.min(a,i)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,s=this.y,r=t.toX,n=t.toY,a=this.toX-e,i=t.x-r;if(!a&&!i)return null;const l=(this.toY-s)/a,c=(t.y-n)/i;if(a){if(!i)return{x:r,y:l*(r-e)+s}}else return{x:e,y:c*(e-r)+n};const u=(-c*r+n+l*e-s)/(l-c),f=l*(u-e)+s;return isNaN(u)||isNaN(f)?null:{x:u,y:f}}}const pf=On;class Ti extends On{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,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,s,r,n,a,i,l]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,s,r,n,a,i,l,!this.sweepFlag)}convert(t,e,s,r,n,a,i,l,c){const u=i/180*Math.PI,f=(t-s)/2,d=(e-r)/2,p=Math.cos(u)*f+Math.sin(u)*d,h=-Math.sin(u)*f+Math.cos(u)*d,w=p*p/(n*n)+h*h/(a*a);if(w>1){const N=Math.sqrt(w);throw n=N*n,a=N*a,new Error(`Radii are too small to build an arc. Correcting them to ${n}/${a}.`)}const _=Math.sqrt((n*n*a*a-n*n*h*h-a*a*p*p)/(n*n*h*h+a*a*p*p)),x=l!=c?1:-1,v=x*_*n*h/a,g=x*_*-a*p/n,m=(t+s)/2,b=(e+r)/2,C=Math.cos(u)*v-Math.sin(u)*g+m,U=Math.sin(u)*v+Math.cos(u)*g+b,K=(N,D,A,X)=>(N*X>=D*A?1:-1)*Math.acos((N*A+D*X)/(Math.sqrt(N*N+D*D)*Math.sqrt(A*A+X*X))),I=K(1,0,t-C,e-U)-u,$=K(t-C,e-U,s-C,r-U);return[C,U,n,a,u,I,I+$]}}const Vg=Ti;class Bg extends On{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,s=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,s,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let s,r,n,a;for(let c=0;c<2;++c)s=c==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,r=c==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,n=c==0?this.x:this.y,Math.abs(s)>1e-12&&(a=-r/(2*s),0<a&&a<1&&[t,e][c].push(s*a*a+r*a+n));const i={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},l={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:i.x,y:i.y,width:l.x-i.x,height:l.y-i.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const Yg=Bg;class go extends On{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),s=this.x-this.c1x,r=(-e+Math.sqrt(e*e-4*t*s))/2/t,n=(-e-Math.sqrt(e*e-4*t*s))/2/t;const a=[this.y,this.toY],i=[this.x,this.toX];let l;const c=[];Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),s=this.y-this.c1y,r=(-e+Math.sqrt(e*e-4*t*s))/2/t,n=(-e-Math.sqrt(e*e-4*t*s))/2/t,Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y}));let u=[],f=c.length;for(let h=0;h<f;h++){for(let w=h+1;w<f;w++)c[h].X===c[w].X&&c[h].Y===c[w].Y&&(w=++h);u.push({X:c[h].X,Y:c[h].Y})}const d={x:Math.min.apply(Math,i),y:Math.min.apply(Math,a)},p={x:Math.max.apply(Math,i),y:Math.max.apply(Math,a)};return{x:d.x,y:d.y,width:p.x-d.x,height:p.y-d.y,dots:u}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+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.toX,y:Math.pow(1-t,3)*this.y+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.toY}}static base3(t,e,s,r,n){const a=-3*e+9*s-9*r+3*n,i=t*a+6*e-12*s+6*r;return t*i-3*e+3*s}static bezlen(t,e,s,r,n,a,i,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,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 p=0;for(let h=0;h<12;h++){const w=u*f[h]+u,_=this.base3(w,t,s,n,i),x=this.base3(w,e,r,a,l);p+=d[h]*Math.sqrt(_*_+x*x)}return u*p}length(t=1){return go.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,s=this.y,r=this.c1x,n=this.c1y,a=this.c2x,i=this.c2y,l=this.toX,c=this.toY;if(t<0||go.bezlen(e,s,r,n,a,i,l,c)<t)return 0;let u=1,f=u/2,d=u-f,p=go.bezlen(e,s,r,n,a,i,l,c,d);for(;Math.abs(p-t)>.01;)f/=2,d+=(p<t?1:-1)*f,p=go.bezlen(e,s,r,n,a,i,l,c,d);return d}getPointAtSegmentLength(t){const e=this.getTatLen(t);let s=1-e,r=Math.pow(s,3),n=Math.pow(s,2),a=e*e,i=a*e,l=r*this.x+n*3*e*this.c1x+s*3*e*e*this.c2x+i*this.toX,c=r*this.y+n*3*e*this.c1y+s*3*e*e*this.c2y+i*this.toY,u=this.x+2*e*(this.c1x-this.x)+a*(this.c2x-2*this.c1x+this.x),f=this.y+2*e*(this.c1y-this.y)+a*(this.c2y-2*this.c1y+this.y),d=this.c1x+2*e*(this.c2x-this.c1x)+a*(this.toX-2*this.c2x+this.c1x),p=this.c1y+2*e*(this.c2y-this.c1y)+a*(this.toY-2*this.c2y+this.c1y),h=s*this.x+e*this.c1x,w=s*this.y+e*this.c1y,_=s*this.c2x+e*this.toX,x=s*this.c2y+e*this.toY,v=90-Math.atan2(u-d,f-p)*180/Math.PI;return{x:l,y:c,m:{x:u,y:f},n:{x:d,y:p},start:{x:h,y:w},end:{x:_,y:x},alpha:v}}}const qs=go,xr=Math.PI*2;function mf(o,t,e,s){const r=o*s-t*e<0?-1:1;let n=o*e+t*s;return n>1&&(n=1),n<-1&&(n=-1),r*Math.acos(n)}function Xg(o,t,e,s,r,n,a,i,l,c){const u=c*(o-e)/2+l*(t-s)/2,f=-l*(o-e)/2+c*(t-s)/2,d=a*a,p=i*i,h=u*u,w=f*f;let _=d*p-d*w-p*h;_<0&&(_=0),_/=d*w+p*h,_=Math.sqrt(_)*(r===n?-1:1);const x=_*a/i*f,v=_*-i/a*u,g=c*x-l*v+(o+e)/2,m=l*x+c*v+(t+s)/2,b=(u-x)/a,C=(f-v)/i,U=(-u-x)/a,K=(-f-v)/i,I=mf(1,0,b,C);let $=mf(b,C,U,K);return n===0&&$>0&&($-=xr),n===1&&$<0&&($+=xr),[g,m,I,$]}function Gg(o,t){const e=1.3333333333333333*Math.tan(t/4),s=Math.cos(o),r=Math.sin(o),n=Math.cos(o+t),a=Math.sin(o+t);return[s,r,s-r*e,r+s*e,n+a*e,a-n*e,n,a]}function gf(o,t,e,s,r,n,a,i,l){const c=Math.sin(l*xr/360),u=Math.cos(l*xr/360),f=u*(o-e)/2+c*(t-s)/2,d=-c*(o-e)/2+u*(t-s)/2;if(f===0&&d===0)return[];if(a===0||i===0)return[];a=Math.abs(a),i=Math.abs(i);const p=f*f/(a*a)+d*d/(i*i);p>1&&(a*=Math.sqrt(p),i*=Math.sqrt(p));const h=Xg(o,t,e,s,r,n,a,i,c,u),w=[];let _=h[2],x=h[3];const v=Math.max(Math.ceil(Math.abs(x)/(xr/4)),1);x/=v;for(let g=0;g<v;g++)w.push(Gg(_,x)),_+=x;return w.map(g=>{for(let m=0;m<g.length;m+=2){let b=g[m+0],C=g[m+1];b*=a,C*=i;const U=u*b-c*C,K=c*b+u*C;g[m+0]=U+h[0],g[m+1]=K+h[1]}return g})}function Si(o,t,e,s,r,n){return[o/3+.6666666666666666*e,t/3+.6666666666666666*s,r/3+.6666666666666666*e,n/3+.6666666666666666*s,r,n]}function wr(o,t,e,s){return[o,t,e,s,e,s]}const Rn={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class pe{static createSVGElement(t="path",e){const s=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&zo(s,e),s}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||Fo()})}static downloadFromSVGElement(t,e="shape"){return Nf(Ig(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Nf(Ou(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return ff(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 pe.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(s,r,n)=>{let a=r.toLowerCase();const i=qa(n);for(a=="m"&&i.length>Rn[a]&&(e.push([r,...i.splice(0,Rn[a])]),a="l",r=r=="m"?"l":"L");i.length;){if(i.length<Rn[a])throw new Error(`parseSVGPath substring:{ ${s} } command:{ ${r} } args:{ ${i} }`);e.push([r,...i.splice(0,Rn[a])])}return a=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,s=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toUpperCase();if(i!=l)switch(a[0]=l,i){case"a":a[6]+=r,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=r;break;default:for(let c=1;c<a.length;)a[c++]+=r,a[c++]+=n}switch(l){case"Z":r=e,n=s;break;case"H":r=a[1];break;case"V":n=a[1];break;case"M":r=e=a[1],n=s=a[2];break;default:r=a[a.length-2],n=a[a.length-1]}return a})}static relativeSVGPath(t){let e=0,s=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toLowerCase();if(i!=l)switch(a[0]=l,i){case"A":a[6]-=r,a[7]-=n;break;case"V":a[1]-=n;break;case"H":a[1]-=r;break;default:for(let c=1;c<a.length;)a[c++]-=r,a[c++]-=n}switch(l){case"z":r=e,n=s;break;case"h":r+=a[1];break;case"v":n+=a[1];break;case"m":r+=a[1],n+=a[2],e+=a[1],s+=a[2];break;default:r+=a[a.length-2],n+=a[a.length-1]}return a})}static normalizeSVGPath(t){const e=[];let s=0,r=0,n=0,a=0,i=0,l=0,c=0,u=0,f;for(let d=0,p=t.length;d<p;d++){let h=t[d];const w=h[0];switch(w){case"M":s=h[1],r=h[2];break;case"A":const _=gf(n,a,h[6],h[7],h[4],h[5],h[1],h[2],h[3]);if(!_.length)continue;_.forEach((g,m)=>{const[b,C,U,K,I,$,N,D]=g;h=["C",U,K,I,$,N,D],m<_.length-1&&e.push(h)});break;case"S":let x=n,v=a;(f=="C"||f=="S")&&(x+=x-c,v+=v-u),h=["C",x,v,h[1],h[2],h[3],h[4]];break;case"T":f=="Q"||f=="T"?(i=n*2-i,l=a*2-l):(i=n,l=a),h=["C",...Si(n,a,i,l,h[1],h[2])];break;case"Q":i=h[1],l=h[2],h=["C",...Si(n,a,h[1],h[2],h[3],h[4])];break;case"L":h=["C",...wr(n,a,h[1],h[2])];break;case"H":h=["C",...wr(n,a,h[1],a)];break;case"V":h=["C",...wr(n,a,n,h[1])];break;case"Z":h=["C",...wr(n,a,s,r)];break}f=w,n=h[h.length-2],a=h[h.length-1],h.length>4?(c=h[h.length-4],u=h[h.length-3]):(c=n,u=a),e.push(h)}return e}static catmullRom2bezier(t){const e=[];for(let s=0,r=t.length;r-2>s;s+=2){let n;s==0?n=[{x:t[s],y:t[s+1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}]:r-4==s?n=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+2],y:t[s+3]}]:n=[{x:t[s-2],y:t[s-1]},{x:t[s],y:t[s+1]},{x:t[s+2],y:t[s+3]},{x:t[s+4],y:t[s+5]}];const a=[{x:n[1].x,y:n[1].y},{x:(-n[0].x+6*n[1].x+n[2].x)/6,y:(-n[0].y+6*n[1].y+n[2].y)/6},{x:(n[1].x+6*n[2].x-n[3].x)/6,y:(n[1].y+6*n[2].y-n[3].y)/6},{x:n[2].x,y:n[2].y}];e.push(["C",a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y])}return e}static zvhToLSVGPath(t){const e=[];let s=["L",0,0],r;for(let n=0,a=t.length;n<a;n++){const i=t[n];switch(i[0]){case"M":s=["L",i[1],i[2]],e.push(i);break;case"Z":e.push(s);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",i[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.length-2],i[1]]);break;default:e.push(i)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let s,r=0,n=0;for(let a=0,i=t.length;a<i;a++){const l=t[a],c=e[l[0]];c&&(l[0]=c.to,s&&(s[0]===c.to?(r=2*Number(s[c.x+2])-Number(s[c.x]),n=2*Number(s[c.x+3])-Number(s[c.x+1])):(r=Number(s[s.length-2]),n=Number(s[s.length-1]))),l.splice(1,0,r,n)),s=l}return t}}class Qe{cX;cY;x;y;degree;scalarX;scalarY;startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){this.cX=0,this.cY=0,this.x=t?.x||0,this.y=t?.y||0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&(this.cX=t.centerX-this.x,this.cY=t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.reset(t?.d,t?.originMatrix)}reset(t,e){typeof t=="string"?this.resetFromSVGPathData(pe.parseSVGPath(t),e):t instanceof Qe?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const s=pe.normalizeSVGPath(pe.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let r=!1;for(let n=0,a=s.length;n<a;n++){const i=s[n];if(i[0]=="M"){r||(r=!0,this.startPathX=i[1],this.startPathY=i[2]),this.prevPathX=i[1],this.prevPathY=i[2];continue}this.appendLine(new qs({c1x:i[1],c1y:i[2],c2x:i[3],c2y:i[4],toX:i[5],toY:i[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(n=>{({x:n.x,y:n.y}=e.transformPoint({x:n.x,y:n.y})),{x:n.c1x,y:n.c1y}=e.transformPoint({x:n.c1x,y:n.c1y}),{x:n.c2x,y:n.c2y}=e.transformPoint({x:n.c2x,y:n.c2y}),{x:n.toX,y:n.toY}=e.transformPoint({x:n.toX,y:n.toY})}))}static fromPolymorphPoints(t){const e=new Qe;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let s=2,r=t.length;s+5<r;s+=6)e.appendLine(new qs({c1x:t[s],c1y:t[s+1],c2x:t[s+2],c2y:t[s+3],toX:t[s+4],toY:t[s+5]}));return e}static fromLines(t){const e=new Qe;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let s=0,r=t.length;s<r;s++)e.appendLine(t[s]);return e}appendLine(t){if(t instanceof Vg){gf(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,f,d,p,h,w,_,x]=c;this.normalizedLines.push(new qs({x:this.prevPathX,y:this.prevPathY,c1x:d,c1y:p,c2x:h,c2y:w,toX:_,toY:x})),this.prevPathX=_,this.prevPathY=x});return}let e,s,r,n,a,i;t instanceof qs?(e=t.c1x,s=t.c1y,r=t.c2x,n=t.c2y,a=t.toX,i=t.toY):t instanceof Yg?[e,s,r,n,a,i]=Si(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,s,r,n,a,i]=wr(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new qs({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:s,c2x:r,c2y:n,toX:a,toY:i})),this.prevPathX=a,this.prevPathY=i}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform(),r=[];r.push(["M",t,e]);for(let n=0,a=s.length;n<a;n++)r.push(...s[n].toSVGPathData());return r}toSVGPathD(){return pe.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:s,normalizedLines:r}=this.updateTransform();t.beginPath(),t.moveTo(e,s),r.forEach(n=>{n.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],s=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),s.push(c.y,c.y+c.height)}),e.length==0||s.length==0)return{x:0,y:0,width:0,height:0};const r=Math.min.apply(0,e),n=Math.min.apply(0,s),a=Math.max.apply(0,e),i=Math.max.apply(0,s);return{x:r,y:n,width:a-r,height:i-n}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new Ke;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,s=this.startPathY;({x:e,y:s}=t.transformPoint({x:e,y:s}));const r=[];return this.normalizedLines.forEach(n=>{let a=n.x,i=n.y,l=n.c1x,c=n.c1y,u=n.c2x,f=n.c2y,d=n.toX,p=n.toY;({x:a,y:i}=t.transformPoint({x:a,y:i})),{x:l,y:c}=t.transformPoint({x:l,y:c}),{x:u,y:f}=t.transformPoint({x:u,y:f}),{x:d,y:p}=t.transformPoint({x:d,y:p}),r.push(new qs({x:a,y:i,c1x:l,c1y:c,c2x:u,c2y:f,toX:d,toY:p}))}),{startPathX:e,startPathY:s,normalizedLines:r}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,s)=>e+=s.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let s=0;const r=e.length;for(let n=0;n<r;n++){const a=e[n],i=a.length();if(s+i>=t)return a.getPointAtSegmentLength(t-s);s+=i}return e[r-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:s,normalizedLines:r}=this.updateTransform(),n=r.length;if(n===0)return{x:e,y:s};if(n===1)return r[0].interpolate(t);{let a=t*n,i=r[0];if(a--,a>1)for(let l=1;l<n&&(i=r[l],a>1);l++)a-=1;return i.interpolate(a)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const s=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(s,t):s}}getSubpathsAtLength(t,e,s){const{startPathX:r,startPathY:n,normalizedLines:a}=t.updateTransform();let i=null,l=0;const c=new Qe;c.prevPathX=c.startPathX=r,c.prevPathY=c.startPathY=n;for(let u=0,f=a.length;u<f;u++){const d=a[u],p=d.length();if(l+p>e&&!i){const h=d.getPointAtSegmentLength(e-l);if(c.appendLine(new qs({c1x:h.start.x,c1y:h.start.y,c2x:h.m.x,c2y:h.m.y,toX:h.x,toY:h.y})),s)return c;i=c,c.appendLine(new qs({c1x:h.n.x,c1y:h.n.y,c2x:h.end.x,c2y:h.end.y,toX:d.x,toY:d.y})),l+=p;continue}l+=p,c.appendLine(d)}return c}closestPoint(t,e){const s=this.getTotalLength();let r={x:t,y:e},n=0,a=1/0,i=8;for(let c=0;c<=s;c+=i){let u=this.getPointAtLength(c),f=wi(u.x,u.y,t,e);f<a&&(r=u,n=c,a=f)}for(i/=2;i>.5;){let c=n-i,u=this.getPointAtLength(c),f=wi(u.x,u.y,t,e),d=n+i,p=this.getPointAtLength(d),h=wi(p.x,p.y,t,e);c>=0&&f<a?(r=u,n=c,a=f):d<=s&&h<a?(r=p,n=d,a=h):i/=2}const l=this.getPointAtLength(n+(n===s?-.1:.1));return{point:r,rotation:n>=s?$o(l.x,l.y,r.x,r.y):$o(r.x,r.y,l.x,l.y),distance:Math.sqrt(a)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:s}=this.updateTransform();return[t,e].concat(s.reduce((r,n)=>r.concat([n.c1x,n.c1y,n.c2x,n.c2y,n.toX,n.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let s=t[e-2],r=t[e-1],n=0;for(let a=0;a<e;a+=6)n+=xi(t[a],t[a+1],s,r),s=t[a],r=t[a+1];return Math.floor(n)}expendFill(t){const e=this.polymorphPoints,s=e.length;let r=t-s;const n=Math.ceil(t/s),a=[];a.push(["M",e[0],e[1]]);let i=2;for(;i+5<=s-1;){const l=e[i++],c=e[i++],u=e[i++],f=e[i++],d=e[i++],p=e[i++];a.push(["C",l,c,u,f,d,p]);let h=0;for(;h<n&&r>0;)a.push(["C",d,p,d,p,d,p]),r-=6,h++}return a}static mixPoints(t,e,s){const r=t.length,n=new Array(r);for(let a=0;a<r;a++)n[a]=Ce(t[a]+(e[a]-t[a])*s,6);return n}static getPathInterpolator(t,e){return s=>Math.abs(s-0)<Number.EPSILON?t:Math.abs(s-1)<Number.EPSILON?e:Qe.fromPolymorphPoints(Qe.mixPoints(new Qe({d:t}).polymorphPoints,new Qe({d:e}).polymorphPoints,s)).toSVGPathData()}}(function(){if(!window.requestAnimationFrame){let o=he();window.requestAnimationFrame=function(t){const e=he(),s=Math.max(0,16-(e-o)),r=window.setTimeout(function(){t(e+s)},s);return o=e+s,r}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(o){clearTimeout(o)})})();const le=o=>{let t=!1;return window.requestAnimationFrame(function e(s){!t&&o(s)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function Ei(o,t=0){if(t==0)return o(he()),()=>{};{const e=he();return le(s=>s-e>=t?(o(s),!1):!0)}}function Ug(o,t=0){let e=!1,s=0;const r=he(),n=a=>{if(e)return;s++;const i=a-r-s*t;o(a,s,t<=i),Ei(n,Math.max(0,t-i))};return Ei(n,t),()=>{e=!0}}function jg(o,t=20){const e=1e3/t;let s=0,r;return()=>(he()-s>=e&&(s=he(),r=o()),r)}const In=new si;let Pi=!1;function yf(o,t,e){if(o&&t&&In.set(o,t),Pi)return;Pi=!0;const s=he();Wg(r=>{for(Pi=!1;(r.timeRemaining()>0||e&&he()-s>=e)&&In.length>0;){const n=In.shift();n&&n[1]()}In.length>0&&yf()})}let Fn=0,yo=33,Qs=33,Oi;const vf=new MessageChannel,Hg=vf.port2;vf.port1.onmessage=o=>{Oi!==null&&Oi({didTimeout:Fn<=he(),timeRemaining:()=>Math.max(0,Fn-he())})};function Wg(o){return Oi=o,requestAnimationFrame(t=>{let e=t-Fn+Qs;e<Qs&&yo<Qs?(e<8&&(e=8),Qs=e<yo?yo:e):e>Qs&&yo>Qs?Qs=e<yo?yo:e:yo=e,Fn=t+Qs,Hg.postMessage(null)})}class kr{static _nextId=0;static nextId(){return kr._nextId++}}const ft={Linear:{None:function(o){return o}},Ease:{In:function(o){return Math.pow(o,1.7)}},Quadratic:{In:function(o){return o*o},Out:function(o){return o*(2-o)},InOut:function(o){return(o*=2)<1?.5*o*o:-.5*(--o*(o-2)-1)}},Cubic:{In:function(o){return o*o*o},Out:function(o){return--o*o*o+1},InOut:function(o){return(o*=2)<1?.5*o*o*o:.5*((o-=2)*o*o+2)}},Quartic:{In:function(o){return o*o*o*o},Out:function(o){return 1- --o*o*o*o},InOut:function(o){return(o*=2)<1?.5*o*o*o*o:-.5*((o-=2)*o*o*o-2)}},Quintic:{In:function(o){return o*o*o*o*o},Out:function(o){return--o*o*o*o*o+1},InOut:function(o){return(o*=2)<1?.5*o*o*o*o*o:.5*((o-=2)*o*o*o*o+2)}},Sinusoidal:{In:function(o){return 1-Math.sin((1-o)*Math.PI/2)},Out:function(o){return Math.sin(o*Math.PI/2)},InOut:function(o){return .5*(1-Math.sin(Math.PI*(.5-o)))}},Exponential:{In:function(o){return o===0?0:Math.pow(1024,o-1)},Out:function(o){return o===1?1:1-Math.pow(2,-10*o)},InOut:function(o){return o===0?0:o===1?1:(o*=2)<1?.5*Math.pow(1024,o-1):.5*(-Math.pow(2,-10*(o-1))+2)}},Circular:{In:function(o){return 1-Math.sqrt(1-o*o)},Out:function(o){return Math.sqrt(1- --o*o)},InOut:function(o){return(o*=2)<1?-.5*(Math.sqrt(1-o*o)-1):.5*(Math.sqrt(1-(o-=2)*o)+1)}},Elastic:{In:function(o){return o===0?0:o===1?1:-Math.pow(2,10*(o-1))*Math.sin((o-1.1)*5*Math.PI)},Out:function(o){return o===0?0:o===1?1:Math.pow(2,-10*o)*Math.sin((o-.1)*5*Math.PI)+1},InOut:function(o){return o===0?0:o===1?1:(o*=2,o<1?-.5*Math.pow(2,10*(o-1))*Math.sin((o-1.1)*5*Math.PI):.5*Math.pow(2,-10*(o-1))*Math.sin((o-1.1)*5*Math.PI)+1)}},Back:{In:function(o){return o===1?1:o*o*((1.70158+1)*o-1.70158)},Out:function(o){return o===0?0:--o*o*((1.70158+1)*o+1.70158)+1},InOut:function(o){const t=2.5949095;return(o*=2)<1?.5*(o*o*((t+1)*o-t)):.5*((o-=2)*o*((t+1)*o+t)+2)}},Bounce:{In:function(o){return 1-ft.Bounce.Out(1-o)},Out:function(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375},InOut:function(o){return o<.5?ft.Bounce.In(o*2)*.5:ft.Bounce.Out(o*2-1)*.5+.5}},generatePow:function(o=4){return o=o<Number.EPSILON?Number.EPSILON:o,o=o>1e4?1e4:o,{In:function(t){return t**o},Out:function(t){return 1-(1-t)**o},InOut:function(t){return t<.5?(t*2)**o/2:(1-(2-t*2)**o)/2+.5}}},random:function(o){return Math.random()},createStep:function(o){return function(t){return Math.floor(t*o)/o}},createNoisyEasing:function(o,t=.1){const e=1-t;return function(s){return t*Math.random()+e*o(s)}},swing:function(o){return o+Math.sin(o*Math.PI*2)/2},causeSeizures:function(o){return o+.2*Math.random()-.1}},Ri=ft;function Zg(o){switch(o){case ft.Quadratic.In:return ft.Quadratic.Out;case ft.Quadratic.Out:return ft.Quadratic.In;case ft.Quadratic.InOut:return ft.Quadratic.InOut;case ft.Cubic.In:return ft.Cubic.Out;case ft.Cubic.Out:return ft.Cubic.In;case ft.Cubic.InOut:return ft.Cubic.InOut;case ft.Quartic.In:return ft.Quartic.Out;case ft.Quartic.Out:return ft.Quartic.In;case ft.Quartic.InOut:return ft.Quartic.InOut;case ft.Quintic.In:return ft.Quintic.Out;case ft.Quintic.Out:return ft.Quintic.In;case ft.Quintic.InOut:return ft.Quintic.InOut;case ft.Sinusoidal.In:return ft.Sinusoidal.Out;case ft.Sinusoidal.Out:return ft.Sinusoidal.In;case ft.Sinusoidal.InOut:return ft.Sinusoidal.InOut;case ft.Exponential.In:return ft.Exponential.Out;case ft.Exponential.Out:return ft.Exponential.In;case ft.Exponential.InOut:return ft.Exponential.InOut;case ft.Circular.In:return ft.Circular.Out;case ft.Circular.Out:return ft.Circular.In;case ft.Circular.InOut:return ft.Circular.InOut;case ft.Elastic.In:return ft.Elastic.Out;case ft.Elastic.Out:return ft.Elastic.In;case ft.Elastic.InOut:return ft.Elastic.InOut;case ft.Back.In:return ft.Back.Out;case ft.Back.Out:return ft.Back.In;case ft.Back.InOut:return ft.Back.InOut;case ft.Bounce.In:return ft.Bounce.Out;case ft.Bounce.Out:return ft.Bounce.In;case ft.Bounce.InOut:return ft.Bounce.InOut;default:return o}}const Lo={Utils:{Linear:function(o,t,e){return(t-o)*e+o},Factorial:function(){const o=[1];return function(t){let e=1;if(o[t])return o[t];for(let s=t;s>1;s--)e*=s;return o[t]=e,e}}(),Bernstein:function(o,t){const e=Lo.Utils.Factorial;return e(o)/e(t)/e(o-t)},CatmullRom:function(o,t,e,s,r){const n=(e-o)*.5,a=(s-t)*.5,i=r*r,l=r*i;return(2*t-2*e+n+a)*l+(-3*t+3*e-2*n-a)*i+n*r+t},QuadraticBezier:(o,t,e,s)=>{const r=1-s;return r*r*o+2*r*s*t+s*s*e},CubicBezier:(o,t,e,s,r)=>{const n=1-r;return n*n*n*o+3*n*n*r*t+3*n*r*r*e+r*r*r*s}},Linear:function(o,t){const e=o.length-1,s=e*t,r=Math.floor(s),n=Lo.Utils.Linear;return t<0?n(o[0],o[1],s):t>1?n(o[e],o[e-1],e-s):n(o[r],o[r+1>e?e:r+1],s-r)},Bezier:function(o,t){let e=0;const s=o.length-1,r=Math.pow,n=Lo.Utils.Bernstein;for(let a=0;a<=s;a++)e+=r(1-t,s-a)*r(t,a)*o[a]*n(s,a);return e},CatmullRom:function(o,t){const e=o.length-1;let s=e*t,r=Math.floor(s);const n=Lo.Utils.CatmullRom;return o[0]===o[e]?(t<0&&(r=Math.floor(s=e*(1+t))),n(o[(r-1+e)%e],o[r],o[(r+1)%e],o[(r+2)%e],s-r)):t<0?o[0]-(n(o[0],o[0],o[1],o[1],-s)-o[0]):t>1?o[e]-(n(o[e],o[e],o[e-1],o[e-1],s-e)-o[e]):n(o[r?r-1:0],o[r],o[e<r+1?e:r+1],o[e<r+2?e:r+2],s-r)}},Ii=Lo;class bf{_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=he(),e=!1){const s=Object.keys(this._tweens);for(let r=0;r<s.length;r++){const n=this._tweens[s[r]],a=!e;n&&n.update(t,a)===!1&&!e&&delete this._tweens[s[r]]}return!!Object.keys(this._tweens).length}}const es=new bf;class _f{constructor(t,e=es){this._object=t,this._group=e}_id=kr.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=Ri.Linear.None;_interpolationFunction=Ii.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=he()){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,s,r){for(const n in s){const a=t[n],i=Array.isArray(a),l=i?"array":typeof a,c=!i&&Array.isArray(s[n]);if(!(l==="undefined"||l==="function")){if(c){let u=s[n];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,a)),s[n]=[a].concat(u)}if((l==="object"||i)&&a&&!c){e[n]=i?[]:{};for(const u in a)e[n][u]=a[u];r[n]=i?[]:{},this._setupProperties(a,e[n],s[n],r[n])}else typeof e[n]>"u"&&(e[n]=a),i||(e[n]*=1),c?r[n]=s[n].slice().reverse():r[n]=e[n]||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=he()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=he()){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=es){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=Ri.Linear.None){return this._easingFunction=t,this}interpolation(t=Ii.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=he(),e=!0){if(this._isPaused)return!0;let s,r;const n=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>n)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 a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(s in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[s]=="string"&&(this._valuesStartRepeat[s]=this._valuesStartRepeat[s]+parseFloat(this._valuesEnd[s])),this._yoyo&&this._swapEndStartRepeatValues(s),this._valuesStart[s]=this._valuesStartRepeat[s];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 i=0,l=this._chainedTweens.length;i<l;i++)this._chainedTweens[i].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,s,r){for(const n in s){if(e[n]===void 0)continue;const a=e[n]||0;let i=s[n];const l=Array.isArray(t[n]),c=Array.isArray(i);!l&&c?t[n]=this._interpolationFunction(i,r):typeof i=="object"&&i?this._updateProperties(t[n],a,i,r):(i=this._handleRelativeValue(a,i),typeof i=="number"&&(t[n]=a+(i-a)*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],s=this._valuesEnd[t];typeof s=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(s):this._valuesStartRepeat[t]=s,this._valuesEnd[t]=e}}const qg=_f,Qg=kr.nextId,Kg=es.getAll.bind(es),Jg=es.removeAll.bind(es),ty=es.add.bind(es),ey=es.remove.bind(es),sy=es.update.bind(es),xt={now:he,Sequence:kr,Easing:Ri,Interpolation:Ii,Group:bf,Tween:qg,nextId:Qg,getAll:Kg,removeAll:Jg,add:ty,remove:ey,update:sy};class oy{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=he(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=he();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const xf=oy;class Ie{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){E0(this.tweens,(e,s)=>t?e.delay>s.delay:e.delay<=s.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(s=>{const r={...s};delete r.tween,r.fromValues={...r.fromValues},r.toValues={...r.toValues},e.push(r)}),e}addTween(t,e,s){const r={fromValues:t,toValues:e,frames:typeof s?.frames=="number"?s.frames:1,delay:typeof s?.delay=="number"?s.delay:this.tweens.length,easeFunction:s?.easeFunction||ft.Linear.None,interpolationFunction:s?.interpolationFunction||Lo.Linear,repeat:typeof s?.repeat=="number"?s.repeat:0,yoyo:s?.yoyo||!1,onStart:s?.onStart||(()=>{}),onUpdate:s?.onUpdate||(()=>{}),onComplete:s?.onComplete||(()=>{})};return this.tweens.push(r),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new xf,s=this.frameDuration;return new Promise(r=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=le(n=>{if(!this.isPaused){const i=Math.max(0,n-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*s<=l).forEach(c=>{c.tween||(c.tween=new _f({...c.fromValues}).to({...c.toValues},c.frames*s).easing(c.easeFunction).interpolation(c.interpolationFunction).repeat(c.repeat).yoyo(c.yoyo).onStart(c.onStart).onUpdate(c.onUpdate).onComplete(c.onComplete),c.tween.start(i)),(c.delay+c.frames*(c.repeat+1))*s>l?c.tween.update(i):(c.tween.isPlaying()&&c.tween.end(),d0(t,c))})}const a=!!t.length;return a||(this.onGroupComplete?.(),r()),a})})}isPaused=!1;pausedClock=new xf;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(s=>{e=Math.max(e,s.delay+s.frames),s.easeFunction=Zg(s.easeFunction);const r={...s.toValues};s.toValues={...s.fromValues},s.fromValues={...r}}),t.forEach(s=>{s.delay=e-s.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}class oe extends pr{id;originD;originMatrix;independentTransformInGroup;forceCXY=!1;cX;cY;x;y;degree;scalarX;scalarY;diffXInGroup;diffYInGroup;diffDegreeInGroup;diffScalarXInGroup;diffScalarYInGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;strokeArmyAnts;strokeArmyAntsOffset=0;strokeDashTotalLength=0;isShow=!0;el;pathd;usePathDtoCanvasContext=!1;parent;shapes=[];constructor(t){if(super(),this.id=Fo(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||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={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),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.strokeArmyAnts){const s=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",s),this.strokeDashTotalLength=qa(s).reduce((r,n)=>r+n,0)}return S0(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Qe,ti(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(s=>{const r=s.originMatrix?s.originMatrix.clone():new Ke;r.translate(-t.x+s.x,-t.y+s.y),s.originMatrix=r});const e=this.originMatrix?this.originMatrix.clone():new Ke;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,s){if(s instanceof Ci)return s.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=s.createSVGPoint(),r.x=t,r.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(r);{const n=this.getBoundingClientRect();if(n)return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height}return!1}isPointInStroke(t,e,s){if(s instanceof Ci)return s.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=s.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!1}clone(){return f0(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([s,r])=>[is(s),r]))):e&&(this.attrs[is(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[is(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[is(t)]}distance(t){return xi(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Xe($o(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:s,dy:r}=Ms(Bt(this.degree),e);this.vx=s,this.vy=r,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:s,dy:r}=Ms(Bt(this.degree),e);this.ax=s,this.ay=r,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,s=t.y-this.y,r=e*e+s*s,n=Math.sqrt(r),a=this.mass*t.mass/r,i=a*e/n,l=a*s/n;this.vx+=i/this.mass,this.vy+=l/this.mass,t.vx-=i/t.mass,t.vy-=l/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=Zs(t?.gravity,0);this.vy+=e;const s=Zs(t?.friction,1);this.vx*=s,this.vy*=s,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const s=Zs(e?.easing,.05),r=t.x-this.cX-this.x,n=t.y-this.cY-this.y;this.vx=r*s,this.vy=n*s,this.run(e)}runSpringTo(t,e){const s=Zs(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(r=>{const n=r.x-this.cX-this.x,a=r.y-this.cY-this.y,i=n*s,l=a*s;this.vx+=i,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const s=Zs(e?.springLength,100),r=Zs(e?.spring,1e-4),n=t.x-this.x,a=t.y-this.y,i=Math.sqrt(n*n+a*a);if(i<s){const l=n*r,c=a*r;return this.vx+=l/this.mass,this.vy+=c/this.mass,t.vx-=l/t.mass,t.vy-=c/t.mass,1-i/s}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const s=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*s),this.getPointAtLength(e*s)}strokeDashTween(t=1e3,e){const s=this.initPathD(),r=Ce(s.getTotalLength(),0);this.setAttr({strokeDasharray:`${r} ${r}`,strokeDashoffset:`${r}`});const n=e?.onUpdate,a=new Ie({frameDuration:t});a.addTween({offset:r},{offset:0},Object.assign(e||{},{onUpdate:(i,l)=>{this.setAttr("strokeDashoffset",""+Ce(i.offset,2)),n?.(i,l)}})),a.play()}}class ry extends oe{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}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,s){this.cX=t,this.cY=e,this.cZ=s}rotateX(t){({x:this.y,y:this.z}=_s(Bt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=_s(Bt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=_s(Bt(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 _i(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,s=t.y-this.y,r=t.z-this.z;return Math.sqrt(e*e+s*s+r*r)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const s=t/e;this.scalar(s)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,s=this.y,r=this.z;return{x:s*t.z-r*t.y,y:r*t.x-e*t.z,z:e*t.y-s*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}}}const Dn=ry,wf=[1,0,0,1,0,0],kf=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Ke{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=wf){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Ke,s=bu("number",t);return s.length===6&&s.forEach((r,n)=>{r.fullMatch&&(e.value[n]=parseFloat(r.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=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 ss(e)}identity(){return this.value=Array.from(wf),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}get 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)}transformPoint(t){const e=t.z||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31,y:t.x*this.m12+t.y*this.m22+e*this.m32,z:t.x*this.m13+t.y*this.m23+e*this.m33}}clone(){return new Ke([...this.value])}multiply(t){const e=this.clone(),s=t instanceof Ke?t:new Ke(t);return this.m11=s.m11*e.m11+s.m12*e.m21+s.m13*e.m31,this.m12=s.m11*e.m12+s.m12*e.m22+s.m13*e.m32,this.m13=s.m11*e.m13+s.m12*e.m23+s.m13*e.m33,this.m21=s.m21*e.m11+s.m22*e.m21+s.m23*e.m31,this.m22=s.m21*e.m12+s.m22*e.m22+s.m23*e.m32,this.m23=s.m21*e.m13+s.m22*e.m23+s.m23*e.m33,this.m31=s.m31*e.m11+s.m32*e.m21+s.m33*e.m31,this.m32=s.m31*e.m12+s.m32*e.m22+s.m33*e.m32,this.m33=s.m31*e.m13+s.m32*e.m23+s.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,s=this.m13,r=this.m21,n=this.m22,a=this.m23,i=this.m31,l=this.m32,c=this.m33,u=c*n-a*l,f=-c*r+a*i,d=l*r-n*i;let p=t*u+e*f+s*d;return p?(p=1/p,this.m11=u*p,this.m12=(-c*e+s*l)*p,this.m13=(a*e-s*n)*p,this.m21=f*p,this.m22=(c*t-s*i)*p,this.m23=(-a*t+s*r)*p,this.m31=d*p,this.m32=(-l*t+e*i)*p,this.m33=(n*t-e*r)*p,this):null}adjugate(){const t=new Ke;return t.m11=this.m22*this.m33-this.m32*this.m23,t.m12=this.m32*this.m13-this.m12*this.m33,t.m13=this.m12*this.m23-this.m22*this.m13,t.m21=this.m31*this.m23-this.m21*this.m33,t.m22=this.m11*this.m33-this.m31*this.m13,t.m23=this.m21*this.m13-this.m11*this.m23,t.m31=this.m21*this.m32-this.m31*this.m22,t.m32=this.m31*this.m12-this.m11*this.m32,t.m33=this.m11*this.m22-this.m21*this.m12,t}split(){let t=Xe(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,degree:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:Xe(Math.atan2(-this.m21,this.m22)),skewY:Xe(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],s=this.value[1],r=this.value[2],n=this.value[3],a=this.value[4],i=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],f=t.value[3],d=t.value[4],p=t.value[5],h=l*f,w=c*u,_=(u*s-e*f)/(w-h),x=(l*s-e*c)/(h-w),v=(u*n-r*f)/(w-h),g=(l*n-r*c)/(h-w),m=(u*(i-p)+f*(d-a))/(w-h),b=(l*(i-p)+c*(d-a))/(h-w),C=[_,x,v,g,m,b];return new Ke(C)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>Ce(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,s){return this.matrix3d.translate(t,e,s),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,s){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,s-this.matrix3d.m43),this}rotate(t,e=0,s=0){const r=Bt(t),n=Math.cos(r),a=Math.sin(r);return this.translate(e,s),this.multiply([n,a,-a,n,0,0]),this.translate(-e,-s),this.toMatrix3D(),this}rotateTo(t,e=0,s=0){const{degree:r}=this.split();return this.rotate(t-r,e,s),this}rotateX(t){return this.matrix3d.rotateX(t),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotateY(t),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotateZ(t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,s){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(s),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,s){const{degreeX:r,degreeY:n,degreeZ:a}=this.matrix3d.split();return this.rotate3d(t-r,e-n,s-a),this}scale(t,e=t,s=0,r=0){return this.translate(s,r),this.multiply([t,0,0,e,0,0]),this.translate(-s,-r),this.toMatrix3D(),this}scaleTo(t,e=t,s=0,r=0){return this.scale(t/this.m11,e/this.m22,s,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.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,s=t){return this.matrix3d.scale(t,e,s),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,s=t){const{scalarX:r,scalarY:n,scalarZ:a}=this.matrix3d.split();return this.scale3d(t/r,e/n,s/a),this}skew(t,e=t){return this.multiply([Math.cos(Bt(e)),Math.sin(Bt(e)),-Math.sin(Bt(t)),Math.cos(Bt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:s,skewY:r}=this.split();return this.skew(t-s,e-r)}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,s){return this}skew3dTo(t,e,s){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class ss{value;is3dSpecial=!1;constructor(t=kf){this.value=Array.from(t)}static fromString(t){const e=new ss,s=bu("number",t);return s.length===16&&s.forEach((r,n)=>{r.fullMatch&&(e.value[n]=parseFloat(r.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(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(kf),this}get 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(){return new ss([...this.value])}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))}transformPoint(t){const e=t.z||1,s=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+s*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+s*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+s*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+s*this.m44}}toMatrix(t){const{scalarX:e,scalarY:s,skewX:r,skewY:n,x:a,y:i}=this.split(),l=[e,n,r,s,a,i];return t?(t.value=l,t):new Ke(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=>Ce(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),s=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),r=Xe(ie(Math.asin(-this.m13),-1,1));let n=Xe(Math.atan2(this.m23,this.m33));Math.cos(Bt(r))===0&&(n=Xe(Math.atan2(-this.m31,this.m22)));let a=Xe(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(a+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:s,degreeX:n,degreeY:r,degreeZ:a,skewX:Xe(this.m14),skewY:Xe(this.m24),skewZ:Xe(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,s=this.m12,r=this.m13,n=this.m14,a=this.m21,i=this.m22,l=this.m23,c=this.m24,u=this.m31,f=this.m32,d=this.m33,p=this.m34,h=this.m41,w=this.m42,_=this.m43,x=this.m44;t[0]=l*p*w-c*d*w+c*f*_-i*p*_-l*f*x+i*d*x,t[1]=n*d*w-r*p*w-n*f*_+s*p*_+r*f*x-s*d*x,t[2]=r*c*w-n*l*w+n*i*_-s*c*_-r*i*x+s*l*x,t[3]=n*l*f-r*c*f-n*i*d+s*c*d+r*i*p-s*l*p;const v=e*t[0]+a*t[1]+u*t[2]+h*t[3];if(v==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*d*h-l*p*h-c*u*_+a*p*_+l*u*x-a*d*x,t[5]=r*p*h-n*d*h+n*u*_-e*p*_-r*u*x+e*d*x,t[6]=n*l*h-r*c*h-n*a*_+e*c*_+r*a*x-e*l*x,t[7]=r*c*u-n*l*u+n*a*d-e*c*d-r*a*p+e*l*p,t[8]=i*p*h-c*f*h+c*u*w-a*p*w-i*u*x+a*f*x,t[9]=n*f*h-s*p*h-n*u*w+e*p*w+s*u*x-e*f*x,t[10]=s*c*h-n*i*h+n*a*w-e*c*w-s*a*x+e*i*x,t[11]=n*i*u-s*c*u-n*a*f+e*c*f+s*a*p-e*i*p,t[12]=l*f*h-i*d*h-l*u*w+a*d*w+i*u*_-a*f*_,t[13]=s*d*h-r*f*h+r*u*w-e*d*w-s*u*_+e*f*_,t[14]=r*i*h-s*l*h-r*a*w+e*l*w+s*a*_-e*i*_,t[15]=s*l*u-r*i*u+r*a*f-e*l*f-s*a*d+e*i*d,this.value=t,this.scalar(1/v)}multiply(t){const e=this.clone();return this.m11=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,this.m12=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,this.m13=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,this.m14=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,this.m21=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,this.m22=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,this.m23=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,this.m24=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,this.m31=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,this.m32=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,this.m33=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,this.m34=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,this.m41=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,this.m42=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,this.m43=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,this.m44=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44,this}translate(t=0,e=0,s=0){return this.multiply(new ss([1,0,0,0,0,1,0,0,0,0,1,0,t,e,s,1]))}scale(t=1,e=1,s=1){return this.multiply(new ss([t,0,0,0,0,e,0,0,0,0,s,0,0,0,0,1]))}rotateX(t){const e=Bt(t),s=Math.cos(e),r=Math.sin(e);return this.multiply(new ss([1,0,0,0,0,s,r,0,0,-r,s,0,0,0,0,1]))}rotateY(t){const e=Bt(t),s=Math.cos(e),r=Math.sin(e);return this.multiply(new ss([s,0,-r,0,0,1,0,0,r,0,s,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Bt(t),s=Math.cos(e),r=Math.sin(e);return this.multiply(new ss([s,r,0,0,-r,s,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,s=0){return this.multiply(new ss([1,0,0,Bt(t),0,1,0,Bt(e),0,0,1,Bt(s),0,0,0,1]))}perspective(t){return this.multiply(new ss([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,s=t.x*this.m12+t.y*this.m22+this.m42,r=t.x*this.m13+t.y*this.m23+this.m43,n=t.x*this.m14+t.y*this.m24+this.m44,a=e+this.m31,i=s+this.m32,l=r+this.m33,c=n+this.m34;n==0&&(n=1e-4),e/=n,s/=n,r/=n,c==0&&(c=1e-4),a/=c,i/=c,l/=c;const u=l-r;if(u==0)return{x:e,y:s,z:r,mass:n};const f=-r/u;return e+=f*(a-e),s+=f*(i-s),{x:e,y:s,z:r,mass:n}}project(t){const e=t.z;let s=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,r=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,n=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return n==0&&(n=1e-4),s/=n,r/=n,n<0&&(s-=this.m41,r-=this.m42,s*=1/n,r*=1/n,s+=this.m41,r+=this.m42),{x:s,y:r,z:e,mass:n}}bounds(t,e,s,r){const n=new Dn({x:t,y:e}),a=new Dn({x:t+s,y:e}),i=new Dn({x:t+s,y:e+r}),l=new Dn({x:t,y:e+r});({x:n.x,y:n.y,z:n.z,mass:n.mass}=this.project(n)),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:i.x,y:i.y,z:i.z,mass:i.mass}=this.project(i),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(n.x,a.x,i.x,l.x),u=Math.min(n.y,a.y,i.y,l.y),f=Math.max(n.x,a.x,i.x,l.x)-c,d=Math.max(n.y,a.y,i.y,l.y)-u;return{x:c,y:u,width:f,height:d}}}function Cf(o){const t=new Ke;return o.replace(/([a-z0-9]+)\s*\(?\s*((-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)*[a-z%]*\s*,?\s*)+)\)?/gi,function(e,s,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const n=[];for(let a=0,i=r.length;a<i;a++)r[a].trim()&&n.push(parseFloat(""+r[a]));switch(s.toLowerCase()){case"t":case"translate":t.translate(n[0],n[1]);break;case"translatex":t.translateX(n[0]);break;case"translatey":t.translateY(n[0]);break;case"translatez":t.translateZ(n[0]);break;case"translate3d":t.translate3d(n[0],n[1],n[2]);break;case"r":case"rotate":t.rotate(n[0],n[1]??0,n[2]??0);break;case"rotatex":t.rotateX(n[0]);break;case"rotatey":t.rotateY(n[0]);break;case"rotatez":t.rotateZ(n[0]);break;case"rotate3d":t.rotate3d(n[0],n[1],n[2]);break;case"s":case"scale":t.scale(n[0],n[1]??n[0]);break;case"scalex":t.scaleX(n[0]);break;case"scaley":t.scaleY(n[0]);break;case"scalez":t.scaleZ(n[0]);break;case"scale3d":t.scale3d(n[0],n[1],n[2]);break;case"skew":t.skew(n[0],n[1]??0);break;case"skewx":t.skewX(n[0]);break;case"skewy":t.skewY(n[0]);break;case"skewz":t.skewZ(n[0]);break;case"skew3d":t.skew3d(n[0],n[1],n[2]);break;case"m":case"matrix":t.multiply([n[0],n[1],n[2],n[3],n[4],n[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new ss(n)),t.matrix3d.toMatrix(t);break}return""}),t}function _s(o,t,e){const s=new Ke;return s.rotate(Xe(o)),s.transformPoint({x:t,y:e})}class xs extends oe{shapesCountChange=!1;constructor(t){super(t)}shapeInit(){}frameStart(t){return this.shapesCountChange&&(this.shapesCountChange=!1,this.shapes.forEach(e=>{e.parent=this,e.initPathD()}),this.pathd=this.initPathD(),this.shapes.forEach(e=>{!e.forceCXY&&!e.independentTransformInGroup&&(e.cX=this.cX-e.diffXInGroup,e.cY=this.cY-e.diffYInGroup)})),super.frameStart(t)}frameUpdate(t,e){this.shapes.forEach(s=>{!s.independentTransformInGroup&&!s.isDragging&&(s.x=this.x+s.diffXInGroup,s.y=this.y+s.diffYInGroup,s.degree=this.degree+s.diffDegreeInGroup,s.scalarX=this.scalarX*s.diffScalarXInGroup,s.scalarY=this.scalarY*s.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(s=>s.id==e.id)==-1&&(e.on("draging",(s,r)=>{this.enableDrag&&(this.x+=s,this.y+=r,this.emit("draging",s,r,e))}),this.shapes.push(e),this.shapesCountChange=!0)})}getBoundingClientRect(){const t=[],e=[];this.shapes.forEach(l=>{const c=l.getBoundingClientRect();c&&(t.push(c.x,c.x+c.width),e.push(c.y,c.y+c.height))});const s=this.pathd?.getBoundingClientRect();if(s&&(s.width||s.height)&&(t.push(s.x,s.x+s.width),e.push(s.y,s.y+s.height)),t.length==0||e.length==0)return null;const r=Math.min.apply(0,t),n=Math.min.apply(0,e),a=Math.max.apply(0,t),i=Math.max.apply(0,e);return{x:r,y:n,width:a-r,height:i-n}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(s=>{s.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(s=>{s.setAttr(t,e)}))}sortPathD(){this.shapes=this.shapes.map(t=>{const e=t.initPathD();return{shape:t,perimeter:e.perimeterPoints()}}).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.shape)}expendFill(t){const e=t.shapes.length,s=this.shapes.length;if(e<s)return t.expendFill(this);for(let r=s;r<e;r++){const a=t.shapes[r].initPathD().polymorphPoints,i=a[0],l=a[1],c=[["M",i,l]];for(let u=2;u+5<a.length;u+=6)c.push(["C",i,l,i,l,i,l]);this.addShape(new oe({attrs:{...t.shapes[r].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const s=this.shapes.length-1;this.shapes.forEach((i,l)=>{i.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==s&&e?.onGroupComplete?.()}})});break;case"parallel":default:const r=new Ie({frameDuration:t}),n={},a={};this.shapes.forEach((i,l)=>{const c=Ce(i.getTotalLength(),0);n[`offset_${l}`]=c,a[`offset_${l}`]=0,i.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),r.addTween(n,a,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(i,l)=>{for(let c in i){const u=bs(c).number;this.shapes[u].setAttr("strokeDashoffset",""+Ce(i[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),r.play();break}}}const No=xs,ny=getComputedStyle(document.documentElement);function $t(o){return ny.getPropertyValue(o)}const vt={safeAreaTop:$t("--safe-area-inset-top"),safeAreaRight:$t("--safe-area-inset-right"),safeAreaBottom:$t("--safe-area-inset-bottom"),safeAreaLeft:$t("--safe-area-inset-left"),colorPrimary:$t("--color-primary")||"#5078f0",colorRed:$t("--color-red")||"#ff5050",colorOrange:$t("--color-orange")||"#fa8c00",colorYellow:$t("--color-yellow")||"#fadc32",colorGreen:$t("--color-green")||"#00c878",colorBlue:$t("--color-blue")||"#00b4fa",colorPurple:$t("--color-purple")||"#6464fa",colorBlack:$t("--color-black")||"#001428",colorGray00:$t("--color-gray-00")||"#000000",colorGray33:$t("--color-gray-33")||"#333333",colorGray66:$t("--color-gray-66")||"#666666",colorGray99:$t("--color-gray-99")||"#999999",colorGrayCC:$t("--color-gray-cc")||"#cccccc",colorGrayDD:$t("--color-gray-dd")||"#dddddd",colorGrayE6:$t("--color-gray-e6")||"#e6e6e6",colorGrayEE:$t("--color-gray-ee")||"#eeeeee",colorGrayEF:$t("--color-gray-ef")||"#efefef",colorGrayF5:$t("--color-gray-f5")||"#f5f5f5",colorGrayFF:$t("--color-gray-ff")||"#ffffff",fontLineHeight:$t("--font-line-height")||"1.4",fontSize32:$t("--font-size-32")||"32px",fontSize24:$t("--font-size-24")||"24px",fontSize22:$t("--font-size-22")||"22px",fontSize20:$t("--font-size-20")||"20px",fontSize18:$t("--font-size-18")||"18px",fontSize16:$t("--font-size-16")||"16px",fontSize14:$t("--font-size-14")||"14px",fontSize12:$t("--font-size-12")||"12px",fontSize10:$t("--font-size-10")||"10px",d4:$t("--distance-4")||"4px",d8:$t("--distance-8")||"8px",d12:$t("--distance-12")||"12px",d16:$t("--distance-16")||"16px",d20:$t("--distance-20")||"20px",d32:$t("--distance-32")||"32px",d40:$t("--distance-40")||"40px",d44:$t("--distance-44")||"44px"};class Ft{__color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),typeof e=="number"&&this.setAlpha(e)}get color(){return this.__color}set color(t){this.__color=Fi(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=ie(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=ie(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=ie(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=ie(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,e,s){return this.r=t,this.g=e,this.b=s,this}setRGBA(t,e,s,r){return this.r=t,this.g=e,this.b=s,this.a=r,this}get hex(){return(this.r<<16)+(this.g<<8)+this.b}toString(){if(this.a===1){const t="000000"+this.hex.toString(16);return"#"+t.slice(t.length-6)}else return`rgba(${this.r},${this.g},${this.b},${Ce(this.a,6)})`}clone(){return new Ft(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",s="#ffffff"){if(t)return new Ft(this.r*.299+this.g*.587+this.b*.114>186?e:s);{const r=this.clone();return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,r}}lighten(t){t=ie(Math.abs(t),0,1);let{r:e,g:s,b:r}=this.color;return e+=(255-e)*t,s+=(255-s)*t,r+=(255-r)*t,new Ft().setRGBA(e,s,r,this.color.a)}darken(t){t=ie(Math.abs(t),0,1);let{r:e,g:s,b:r}=this.color;return e=e*(1-t),s=s*(1-t),r=r*(1-t),new Ft().setRGBA(e,s,r,this.color.a)}static gradient(t,e,s){try{const r=Fi(t),n=Fi(e);return new Ft().setRGB((n.r-r.r)*s+r.r,(n.g-r.g)*s+r.g,(n.b-r.b)*s+r.b)}catch{return new Ft(e)}}static random(){return new Ft(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:s,a:r}=this.color,n=Math.max(t,e,s),a=Math.min(t,e,s),i=n-a;let l;return t===n?l=(e-s)/i:e===n?l=2+(s-t)/i:l=4+(t-e)/i,l/=6,l<0&&(l+=1),{h:i==0?0:l*360,s:n===0?0:i/n,v:n/255,a:r}}set h(t){const e=this.hsv;e.h=ie(t,0,360),this.setColor(e)}get h(){return this.hsv.h}set s(t){const e=this.hsv;e.s=ie(t,0,1),this.setColor(e)}get s(){return this.hsv.s}set v(t){const e=this.hsv;e.v=ie(t,0,1),this.setColor(e)}get v(){return this.hsv.v}}function me(o,t){return new Ft(o,t)}function Fi(o){const t=Object.prototype.hasOwnProperty.call(o,"a")?ie(o.a,0,1):1;if(Object.prototype.hasOwnProperty.call(o,"r")&&Object.prototype.hasOwnProperty.call(o,"g")&&Object.prototype.hasOwnProperty.call(o,"b"))return o.r=ie(Math.round(o.r),0,255),o.g=ie(Math.round(o.g),0,255),o.b=ie(Math.round(o.b),0,255),o.a=t,o;if(Object.prototype.hasOwnProperty.call(o,"h")&&Object.prototype.hasOwnProperty.call(o,"s")&&Object.prototype.hasOwnProperty.call(o,"v")){const s=ie(o.h,0,360),r=ie(o.s,0,1),n=ie(o.v,0,1),a=Math.floor(s/60)%6,i=s/60-Math.floor(s/60),l=n*(1-r),c=n*(1-i*r),u=n*(1-(1-i)*r),f=[[n,u,l],[c,n,l],[l,n,u],[l,c,n],[u,l,n],[n,l,c]][a];return{r:Math.round(f[0]*255),g:Math.round(f[1]*255),b:Math.round(f[2]*255),a:t}}const e={r:0,g:0,b:0,a:t};if(typeof o=="number")o<Math.pow(2,24)?(e.r=o>>16&255,e.g=o>>8&255,e.b=o&255):(e.r=o>>24&255,e.g=o>>16&255,e.b=o>>8&255,e.a=(o&255)/255);else if(typeof o=="string"){const s=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(o);if(s)e.r=parseInt(s[1]),e.g=parseInt(s[2]),e.b=parseInt(s[3]),s[4]&&(e.a=parseFloat(s[4]));else{let r=o.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);r?(e.r=parseInt(`${r[1]}${r[1]}`,16),e.g=parseInt(`${r[2]}${r[2]}`,16),e.b=parseInt(`${r[3]}${r[3]}`,16)):(r=o.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16)):(r=o.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16),e.a=parseInt(r[4],16)/255):o==="none"&&(e.a=0)))}}else throw new Error("parseColor 不支持的颜色解析:"+o);return e.r=ie(e.r,0,255),e.g=ie(e.g,0,255),e.b=ie(e.b,0,255),e.a=ie(e.a,0,1),e}const ay=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],Ks={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};Ks.buttonColor=new Ft(Ks.saveRowColor).darken(.1).toString(),Ks.borderColor=new Ft(Ks.backgroundColor).lighten(.07).toString(),Ks.inputColor=new Ft(Ks.backgroundColor).lighten(.085).toString();class xe extends oe{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,s=this.toY-this.y;return new Proxy(this,{set(r,n,a,i){switch(n){case"x":r.toX=a+e;break;case"y":r.toY=a+s;break;case"toX":e=a-r.x;break;case"toY":s=a-r.y;break}return Reflect.set(r,n,a,i)}})}toSVGPathData(){return[["m",0,0],["l",this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.lineTo(this.toX-this.x,this.toY-this.y)}intersection(t){const e=new pf({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),s=new pf({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(s)}}class $n extends oe{cx;cy;toX;toY;isLineThrough;constructor(t){super(t),this.cx=t?.cx||0,this.cy=t?.cy||0,this.toX=t?.toX||0,this.toY=t?.toY||0,this.isLineThrough=typeof t?.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["m",0,0],["q",t-this.x,e-this.y,this.toX-this.x,this.toY-this.y]]}else return[["m",0,0],["q",this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){if(t.beginPath(),t.moveTo(0,0),this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,s=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,s-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}var Tf={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
37
|
+
`.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},_s=(s,t)=>(typeof s=="string"&&(s=mn(s)||new RegExp(s)),s.test(t)),wu=(s,t)=>{typeof s=="string"&&(s=mn(s)||new RegExp(s));const e=t.match(s);return e?s.flags.toLowerCase().indexOf("g")>=0?e.map(o=>({matchIndex:-1,fullMatch:o,groupMatchs:[]})):{matchIndex:typeof e.index=="number"?e.index:-1,fullMatch:e[0],groupMatchs:e.slice(1)}:null},ku=(s,t)=>{typeof s=="string"&&(s=mn(s)||new RegExp(s));const e=[],o=t.matchAll(s);for(const r of o)e.push({matchIndex:typeof r.index=="number"?r.index:-1,fullMatch:r[0],groupMatchs:r.slice(1)});return e};function g0(s){const t=s.match(/[\s\S]/gu);return t?t.length:0}function Cu(s,t){const e=s.codePointAt(t);return e?String.fromCodePoint(e):void 0}function $o(s=12){const t="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghijklmnopqrstuvwxyz0123456789",e=t.length;let o="";for(let r=0;r<s;r++)o+=t[Math.floor(Math.random()*e)];return o}function y0(s){return s.replace(/(^\w)/g,t=>t.toLowerCase())}const ls=(s,t="-")=>{let e=s.replace(new RegExp(`${t}?([A-Z])`,"g"),t+"$1").toLowerCase();return e=e.replace(new RegExp(`^${t}`),""),e};function v0(s){return s.replace(/(^\w|[_-]\w)/g,t=>t.slice(-1).toUpperCase())}function Tu(s){return y0(v0(s))}const Su=(s,t="")=>(s=s.replaceAll(/\[data-v-[0-9a-zA-Z]*\]/g,t),s);function b0(s){return s!=null}function _0(s,...t){return new s.constructor(...t)}function Eu(s,t){for(const e in s)Object.prototype.hasOwnProperty.call(s,e)&&!t(e,s[e])&&delete s[e];return s}function Pu(s){for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&delete s[t];return s}function mr(s=[],t=[]){const e=s.length,o=t.length;for(let n=0;n<o;n++)s[n]=t[n];let r=Math.max(0,e-o);for(;r>0;)s.pop(),r--;return s}function x0(s,t){const e=s.findIndex(o=>o===t);return e>=0&&s.splice(e,1),s}let Ou;try{Ou=Map}catch{Ou=function(){}}let Ru;try{Ru=Set}catch{Ru=function(){}}function Qs(s,t){if(s=parseFloat(s),isNaN(s)){if(typeof t=="number")return t;throw new Error(`parseNumber(${s}) isNaN!`)}return s}function gn(s,t,e=Number.EPSILON*Math.pow(2,2)){return Math.abs(s-t)<e}const le=(s,t,e)=>s<t?t:s>e?e:s;function w0(s,t,e,o,r){return o+(r-o)*((s-t)/(e-t))}const Iu=(s,t,e)=>o=>{const r=le(o,s,t);return e==0?r:t-r<e?t:Math.round(r/e)*e};function k0(s,t=12){return Qs(s).toFixed(t)}function Te(s,t=12){return+k0(s,t)}function xs(s,t){const e=wu("number-single",String(s));return{hasNumber:!!e,number:e&&!Array.isArray(e)&&e.fullMatch?parseFloat(e.fullMatch):b0(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 ei(s){const t=wu("number",s);return t?Array.isArray(t)?t.map(e=>Number(e.fullMatch)):[Number(t.fullMatch)]:[]}function C0(s=0,t=100){return Math.random()*(t-s)+s}function te(s=0,t=100){return Math.floor(C0(s,t))}T0();function T0(){const s=new ArrayBuffer(4),t=new Float32Array(s),e=new Uint32Array(s),o=new Uint32Array(512),r=new Uint32Array(512);for(let l=0;l<256;++l){const c=l-127;c<-27?(o[l]=0,o[l|256]=32768,r[l]=24,r[l|256]=24):c<-14?(o[l]=1024>>-c-14,o[l|256]=1024>>-c-14|32768,r[l]=-c-1,r[l|256]=-c-1):c<=15?(o[l]=c+15<<10,o[l|256]=c+15<<10|32768,r[l]=13,r[l|256]=13):c<128?(o[l]=31744,o[l|256]=64512,r[l]=24,r[l|256]=24):(o[l]=31744,o[l|256]=64512,r[l]=13,r[l|256]=13)}const n=new Uint32Array(2048),a=new Uint32Array(64),i=new Uint32Array(64);for(let l=1;l<1024;++l){let c=l<<13,u=0;for(;!(c&8388608);)c<<=1,u-=8388608;c&=-8388609,u+=947912704,n[l]=c|u}for(let l=1024;l<2048;++l)n[l]=939524096+(l-1024<<13);for(let l=1;l<31;++l)a[l]=l<<23;a[31]=1199570944,a[32]=2147483648;for(let l=33;l<63;++l)a[l]=2147483648+(l-32<<23);a[63]=3347054592;for(let l=1;l<64;++l)l!==32&&(i[l]=1024);return{floatView:t,uint32View:e,baseTable:o,shiftTable:r,mantissaTable:n,exponentTable:a,offsetTable:i}}var Fu=(s=>(s.UNKNOWN="",s.TEXT="text/plain",s.MD="text/plain",s.HTML="text/html",s.XML_TEXT="text/xml",s.CSS="text/css",s.JPEG="image/jpeg",s.PNG="image/png",s.GIF="image/gif",s.BMP="image/bmp",s.WEBP="image/webp",s.SVG="image/svg+xml",s.ICON="image/x-icon",s.MICROSOFT_ICON="image/vnd.microsoft.icon",s.MPEG="audio/mpeg",s.MP3="audio/mpeg",s.MP4="video/mp4",s.OGG="audio/ogg",s.WAV="audio/wav",s.MIDI="audio/midi",s.WEBM="video/webm",s.VIDEO_OGG="video/ogg",s.OCTET_STREAM="application/octet-stream",s.JAVASCRIPT="application/javascript",s.ECMASCRIPT="application/ecmascript",s.JSON="application/json",s.XML="application/xml",s.XHTML="application/xhtml+xml",s.XWWW="application/x-www-form-urlencoded",s.DOC="application/msword",s.CSV="application/x-csv",s.EXCEL="application/vnb.ms-excel",s.PPT="application/vnb.mspowerpoint",s.PDF="application/pdf",s.ZIP="application/zip",s.TGZ="application/x-gtar",s.TAR_GZ="application/x-gzip",s.EOT="appliaction/vnd.ms-fontobject",s.TTF="aplication/font-sfnt",s.PKCS12="aplication/pkcs12",s))(Fu||{}),yn=(s=>(s.ascii="ascii",s.utf8="utf8",s.utf16le="utf16le",s.ucs2="ucs2",s.base64="base64",s.base64url="base64url",s.latin1="latin1",s.binary="binary",s.hex="hex",s))(yn||{});const Du=(s,t,e)=>t?e===yn.base64?new Blob([s],{type:`${t};${e}`}):e===yn.utf8?new Blob([s],{type:`${t};charset=${e}`}):new Blob([s],{type:`${t}`}):new Blob([s]);function pe(){return(performance||Date).now()}function S0(s){let t=0;for(let e=5;e>=0;e=e-2)e==5?t+=s[e-1]*10+s[e]:e==3?t+=(s[e-1]*10+s[e])*60:e==1&&(t+=(s[e-1]*10+s[e])*60*60);return t=Math.floor(Math.max(0,t)),t*1e3}function si(s){let t=S0(s)/1e3;const e=t%60;s[5]=e%10,s[4]=Math.floor(e/10),t=Math.floor(t/60);const o=t%60;s[3]=o%10,s[2]=Math.floor(o/10),t=Math.floor(t/60);const r=t%60%24;return s[1]=r%10,s[0]=Math.floor(r/10),s}function E0(s){const t=[0,0,0,0,0,0],e=ei(s);for(let o=0,r=Math.min(e.length,3);o<r;o++){const n=Math.floor(Math.abs(e[o]));t[2*o+1]=n%10,t[2*o]=Math.floor(n/10)}return si(t)}function oi(s,t=1){return s[5]+=t,si(s)}function ri(s,t=1){return s[5]-=t,si(s)}function P0(s,t){s.forEach((e,o)=>{t[o]=e})}function O0(s,t){const e=t.reduce((o,r)=>{const{match:n,error:a}=r;return n(s)||o.push(a),o},[]);return{valid:e.length===0,errors:e}}function R0(s="xxx不能为空!"){return{match:t=>!!t,error:s}}function I0(s="邮箱格式不正确!"){return{match:t=>_s("email",t),error:s}}class F0{criterias=[];constructor(t=[]){t.forEach(e=>this.add(e))}add(...t){this.criterias.push(...t)}clear(){this.criterias=[]}get(){return t=>O0(t,this.criterias)}run(t){return this.get()(t)}}function Lo(s){return new F0([R0("邮箱不能为空!"),I0("邮箱格式不正确!")]).run(s)}function $u(s,t){let e=!0;return function(...o){e&&(e=!1,s.apply(this,o),setTimeout(()=>{e=!0},t))}}function D0(s,t){let e;return function(...o){clearTimeout(e),e=setTimeout(()=>{s.apply(this,o)},t)}}class gr{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(o=>o!==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(o=>{o(...e)}),this}once(t,e){const r=(()=>{let n=!1;return(...a)=>{n||(n=!0,e(...a),this.off(t,r))}})();return this.on(t,r),this}}class vn extends gr{results=[];queue=[];rs;controller;concurrency;activeTaskCount=0;constructor(t=1){super(),this.concurrency=t,this.rs=new ReadableStream({start:async e=>{this.controller=e}})}get stream(){return this.rs}clearUnstartTasks(){this.queue=[]}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(r=>r())),o=this.results.length;e.forEach((r,n)=>{if(r.status=="fulfilled"){const a=r.value;this.results.push(a),this.controller?.enqueue(a),this.emit("success",o+n,a)}else if(r.status=="rejected"){const a=new Error(r.reason);this.results.push(a),this.controller?.enqueue(a),this.emit("error",o+n,a)}}),this.activeTaskCount-=e.length}}}function $0(s){let t=!1;return function(...e){if(!t)return t=!0,s.apply(this,e)}}Array.prototype.ap=function(s){return this.reduce((t,e)=>t.concat(s.map(e)),[])};let yr;function ni(s){yr=s,s(),yr=null}class L0{subscribers=new Set;add(){yr&&!this.subscribers.has(yr)&&this.subscribers.add(yr)}notify(){this.subscribers.forEach(t=>t())}}const Lu=new WeakMap;function bn(s,t){let e=Lu.get(s);e||(e=new Map,Lu.set(s,e));let o=e.get(t);return o||(o=new L0,e.set(t,o)),o}function A0(s,t=!1){return Object.keys(s).forEach(e=>{let o=s[e];if(t&&typeof o=="object"&&o!==null)s[e]=ai(o,t);else{const r=bn(s,e);Object.defineProperty(s,e,{configurable:!0,enumerable:!0,get(){return r.add(),o},set(n){o!=n&&(o=n,r.notify())}})}}),s}function _n(s,t=!1){return A0({value:s},t)}function ai(s,t=!1){const e={get(r,n,a){const i=Reflect.get(r,n,a);if(t&&typeof i=="object"&&i!==null&&!("isYZReactiveProxy"in i)){const c=ai(i,t);c.YZReactiveProxyParentTarget=r,c.YZReactiveProxyParentKey=n,Reflect.set(a,n,c)}return bn(r,n).add(),Reflect.get(r,n,a)},set(r,n,a,i){const l=Reflect.get(r,n,i),c=Reflect.set(r,n,a,i);return Array.isArray(r)?bn(r.YZReactiveProxyParentTarget,r.YZReactiveProxyParentKey).notify():l!=a&&bn(r,n).notify(),c},has(r,n){return n==="isYZReactiveProxy"||n in r}};return new Proxy(s,e)}const N0=ai;class ii{maps=new Map;mapsAddedDuringUpdate=new Map;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,o]=t[0];return this.delete(e),[e,o]}}delete(t){return this.mapsAddedDuringUpdate.delete(t),this.maps.delete(t)}clear(){this.maps.clear(),this.mapsAddedDuringUpdate.clear()}filter(t){let e=Array.from(this.maps.entries());for(;e.length>0;){this.mapsAddedDuringUpdate.clear();for(let o=0,r=e.length;o<r;o++){const[n,a]=e[o];t(n,a)===!1&&this.delete(n)}e=Array.from(this.mapsAddedDuringUpdate.entries())}}}function M0(s,t=(e,o)=>e<=o){const e=s.length;let o=Math.floor(e/2);for(;o>0;){for(let r=o;r<e;r++){const n=s[r];let a=r;for(;a>=o&&!t(s[a-o],n);)s[a]=s[a-o],a-=o;s[a]=n}o=Math.floor(o/2)}}let Au;try{Au=Promise}catch{Au=function(){}}const vr=/^[a-z0-9]+(-[a-z0-9]+)*$/,xn=(s,t,e,o="")=>{const r=s.split(":");if(s.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;o=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const i=r.pop(),l=r.pop(),c={provider:r.length>0?r[0]:o,prefix:l,name:i};return t&&!wn(c)?null:c}const n=r[0],a=n.split("-");if(a.length>1){const i={provider:o,prefix:a.shift(),name:a.join("-")};return t&&!wn(i)?null:i}if(e&&o===""){const i={provider:o,prefix:"",name:n};return t&&!wn(i,e)?null:i}return null},wn=(s,t)=>s?!!((s.provider===""||s.provider.match(vr))&&(t&&s.prefix===""||s.prefix.match(vr))&&s.name.match(vr)):!1,Nu=Object.freeze({left:0,top:0,width:16,height:16}),kn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Cn=Object.freeze({...Nu,...kn}),li=Object.freeze({...Cn,body:"",hidden:!1});function z0(s,t){const e={};!s.hFlip!=!t.hFlip&&(e.hFlip=!0),!s.vFlip!=!t.vFlip&&(e.vFlip=!0);const o=((s.rotate||0)+(t.rotate||0))%4;return o&&(e.rotate=o),e}function Mu(s,t){const e=z0(s,t);for(const o in li)o in kn?o in s&&!(o in e)&&(e[o]=kn[o]):o in t?e[o]=t[o]:o in s&&(e[o]=s[o]);return e}function V0(s,t){const e=s.icons,o=s.aliases||Object.create(null),r=Object.create(null);function n(a){if(e[a])return r[a]=[];if(!(a in r)){r[a]=null;const i=o[a]&&o[a].parent,l=i&&n(i);l&&(r[a]=[i].concat(l))}return r[a]}return(t||Object.keys(e).concat(Object.keys(o))).forEach(n),r}function B0(s,t,e){const o=s.icons,r=s.aliases||Object.create(null);let n={};function a(i){n=Mu(o[i]||r[i],n)}return a(t),e.forEach(a),Mu(s,n)}function zu(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 o=V0(s);for(const r in o){const n=o[r];n&&(t(r,B0(s,r,n)),e.push(r))}return e}const Y0={provider:"",aliases:{},not_found:{},...Nu};function ci(s,t){for(const e in t)if(e in s&&typeof s[e]!=typeof t[e])return!1;return!0}function Vu(s){if(typeof s!="object"||s===null)return null;const t=s;if(typeof t.prefix!="string"||!s.icons||typeof s.icons!="object"||!ci(s,Y0))return null;const e=t.icons;for(const r in e){const n=e[r];if(!r.match(vr)||typeof n.body!="string"||!ci(n,li))return null}const o=t.aliases||Object.create(null);for(const r in o){const n=o[r],a=n.parent;if(!r.match(vr)||typeof a!="string"||!e[a]&&!o[a]||!ci(n,li))return null}return t}const Bu=Object.create(null);function X0(s,t){return{provider:s,prefix:t,icons:Object.create(null),missing:new Set}}function yo(s,t){const e=Bu[s]||(Bu[s]=Object.create(null));return e[t]||(e[t]=X0(s,t))}function ui(s,t){return Vu(t)?zu(t,(e,o)=>{o?s.icons[e]=o:s.missing.add(e)}):[]}function G0(s,t,e){try{if(typeof e.body=="string")return s.icons[t]={...e},!0}catch{}return!1}let br=!1;function Yu(s){return typeof s=="boolean"&&(br=s),br}function U0(s){const t=typeof s=="string"?xn(s,!0,br):s;if(t){const e=yo(t.provider,t.prefix),o=t.name;return e.icons[o]||(e.missing.has(o)?null:void 0)}}function j0(s,t){const e=xn(s,!0,br);if(!e)return!1;const o=yo(e.provider,e.prefix);return G0(o,e.name,t)}function H0(s,t){if(typeof s!="object")return!1;if(typeof t!="string"&&(t=s.provider||""),br&&!t&&!s.prefix){let r=!1;return Vu(s)&&(s.prefix="",zu(s,(n,a)=>{a&&j0(n,a)&&(r=!0)})),r}const e=s.prefix;if(!wn({provider:t,prefix:e,name:"a"}))return!1;const o=yo(t,e);return!!ui(o,s)}const Xu=Object.freeze({width:null,height:null}),Gu=Object.freeze({...Xu,...kn}),W0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Z0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Uu(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 o=s.split(W0);if(o===null||!o.length)return s;const r=[];let n=o.shift(),a=Z0.test(n);for(;;){if(a){const i=parseFloat(n);isNaN(i)?r.push(n):r.push(Math.ceil(i*t*e)/e)}else r.push(n);if(n=o.shift(),n===void 0)return r.join("");a=!a}}function q0(s,t="defs"){let e="";const o=s.indexOf("<"+t);for(;o>=0;){const r=s.indexOf(">",o),n=s.indexOf("</"+t);if(r===-1||n===-1)break;const a=s.indexOf(">",n);if(a===-1)break;e+=s.slice(r+1,n).trim(),s=s.slice(0,o).trim()+s.slice(a+1)}return{defs:e,content:s}}function Q0(s,t){return s?"<defs>"+s+"</defs>"+t:t}function K0(s,t,e){const o=q0(s);return Q0(o.defs,t+o.content+e)}const J0=s=>s==="unset"||s==="undefined"||s==="none";function tg(s,t){const e={...Cn,...s},o={...Gu,...t},r={left:e.left,top:e.top,width:e.width,height:e.height};let n=e.body;[e,o].forEach(b=>{const w=[],x=b.hFlip,v=b.vFlip;let g=b.rotate;x?v?g+=2:(w.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),w.push("scale(-1 1)"),r.top=r.left=0):v&&(w.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),w.push("scale(1 -1)"),r.top=r.left=0);let m;switch(g<0&&(g-=Math.floor(g/4)*4),g=g%4,g){case 1:m=r.height/2+r.top,w.unshift("rotate(90 "+m.toString()+" "+m.toString()+")");break;case 2:w.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:m=r.width/2+r.left,w.unshift("rotate(-90 "+m.toString()+" "+m.toString()+")");break}g%2===1&&(r.left!==r.top&&(m=r.left,r.left=r.top,r.top=m),r.width!==r.height&&(m=r.width,r.width=r.height,r.height=m)),w.length&&(n=K0(n,'<g transform="'+w.join(" ")+'">',"</g>"))});const a=o.width,i=o.height,l=r.width,c=r.height;let u,d;a===null?(d=i===null?"1em":i==="auto"?c:i,u=Uu(d,l/c)):(u=a==="auto"?l:a,d=i===null?Uu(u,c/l):i==="auto"?c:i);const h={},p=(b,w)=>{J0(w)||(h[b]=w.toString())};p("width",u),p("height",d);const f=[r.left,r.top,l,c];return h.viewBox=f.join(" "),{attributes:h,viewBox:f,body:n}}const eg=/\sid="(\S+)"/g,sg="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let og=0;function rg(s,t=sg){const e=[];let o;for(;o=eg.exec(s);)e.push(o[1]);if(!e.length)return s;const r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return e.forEach(n=>{const a=typeof t=="function"?t(n):t+(og++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");s=s.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+a+r+"$3")}),s=s.replace(new RegExp(r,"g"),""),s}const di=Object.create(null);function ng(s,t){di[s]=t}function fi(s){return di[s]||di[""]}function hi(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 pi=Object.create(null),_r=["https://api.simplesvg.com","https://api.unisvg.com"],Tn=[];for(;_r.length>0;)_r.length===1||Math.random()>.5?Tn.push(_r.shift()):Tn.push(_r.pop());pi[""]=hi({resources:["https://api.iconify.design"].concat(Tn)});function ag(s,t){const e=hi(t);return e===null?!1:(pi[s]=e,!0)}function mi(s){return pi[s]}let ju=(()=>{let s;try{if(s=fetch,typeof s=="function")return s}catch{}})();function ig(s,t){const e=mi(s);if(!e)return 0;let o;if(!e.maxURL)o=0;else{let r=0;e.resources.forEach(a=>{r=Math.max(r,a.length)});const n=t+".json?icons=";o=e.maxURL-r-e.path.length-n.length}return o}function lg(s){return s===404}const cg=(s,t,e)=>{const o=[],r=ig(s,t),n="icons";let a={type:n,provider:s,prefix:t,icons:[]},i=0;return e.forEach((l,c)=>{i+=l.length+1,i>=r&&c>0&&(o.push(a),a={type:n,provider:s,prefix:t,icons:[]},i=l.length),a.icons.push(l)}),o.push(a),o};function ug(s){if(typeof s=="string"){const t=mi(s);if(t)return t.path}return"/"}const dg={prepare:cg,send:(s,t,e)=>{if(!ju){e("abort",424);return}let o=ug(t.provider);switch(t.type){case"icons":{const n=t.prefix,i=t.icons.join(","),l=new URLSearchParams({icons:i});o+=n+".json?"+l.toString();break}case"custom":{const n=t.uri;o+=n.slice(0,1)==="/"?n.slice(1):n;break}default:e("abort",400);return}let r=503;ju(s+o).then(n=>{const a=n.status;if(a!==200){setTimeout(()=>{e(lg(a)?"abort":"next",a)});return}return r=501,n.json()}).then(n=>{if(typeof n!="object"||n===null){setTimeout(()=>{n===404?e("abort",n):e("next",r)});return}setTimeout(()=>{e("success",n)})}).catch(()=>{e("next",r)})}};function fg(s){const t={loaded:[],missing:[],pending:[]},e=Object.create(null);s.sort((r,n)=>r.provider!==n.provider?r.provider.localeCompare(n.provider):r.prefix!==n.prefix?r.prefix.localeCompare(n.prefix):r.name.localeCompare(n.name));let o={provider:"",prefix:"",name:""};return s.forEach(r=>{if(o.name===r.name&&o.prefix===r.prefix&&o.provider===r.provider)return;o=r;const n=r.provider,a=r.prefix,i=r.name,l=e[n]||(e[n]=Object.create(null)),c=l[a]||(l[a]=yo(n,a));let u;i in c.icons?u=t.loaded:a===""||c.missing.has(i)?u=t.missing:u=t.pending;const d={provider:n,prefix:a,name:i};u.push(d)}),t}function Hu(s,t){s.forEach(e=>{const o=e.loaderCallbacks;o&&(e.loaderCallbacks=o.filter(r=>r.id!==t))})}function hg(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 o=s.provider,r=s.prefix;t.forEach(n=>{const a=n.icons,i=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==r)return!0;const c=l.name;if(s.icons[c])a.loaded.push({provider:o,prefix:r,name:c});else if(s.missing.has(c))a.missing.push({provider:o,prefix:r,name:c});else return e=!0,!0;return!1}),a.pending.length!==i&&(e||Hu([s],n.id),n.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),n.abort))})}))}let pg=0;function mg(s,t,e){const o=pg++,r=Hu.bind(null,e,o);if(!t.pending.length)return r;const n={id:o,icons:t,callback:s,abort:r};return e.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(n)}),r}function gg(s,t=!0,e=!1){const o=[];return s.forEach(r=>{const n=typeof r=="string"?xn(r,t,e):r;n&&o.push(n)}),o}var yg={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vg(s,t,e,o){const r=s.resources.length,n=s.random?Math.floor(Math.random()*r):s.index;let a;if(s.random){let k=s.resources.slice(0);for(a=[];k.length>1;){const Z=Math.floor(Math.random()*k.length);a.push(k[Z]),k=k.slice(0,Z).concat(k.slice(Z+1))}a=a.concat(k)}else a=s.resources.slice(n).concat(s.resources.slice(0,n));const i=Date.now();let l="pending",c=0,u,d=null,h=[],p=[];typeof o=="function"&&p.push(o);function f(){d&&(clearTimeout(d),d=null)}function b(){l==="pending"&&(l="aborted"),f(),h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function w(k,Z){Z&&(p=[]),typeof k=="function"&&p.push(k)}function x(){return{startTime:i,payload:t,status:l,queriesSent:c,queriesPending:h.length,subscribe:w,abort:b}}function v(){l="failed",p.forEach(k=>{k(void 0,u)})}function g(){h.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),h=[]}function m(k,Z,ot){const R=Z!=="success";switch(h=h.filter($=>$!==k),l){case"pending":break;case"failed":if(R||!s.dataAfterTimeout)return;break;default:return}if(Z==="abort"){u=ot,v();return}if(R){u=ot,h.length||(a.length?_():v());return}if(f(),g(),!s.random){const $=s.resources.indexOf(k.resource);$!==-1&&$!==s.index&&(s.index=$)}l="completed",p.forEach($=>{$(ot)})}function _(){if(l!=="pending")return;f();const k=a.shift();if(k===void 0){if(h.length){d=setTimeout(()=>{f(),l==="pending"&&(g(),v())},s.timeout);return}v();return}const Z={status:"pending",resource:k,callback:(ot,R)=>{m(Z,ot,R)}};h.push(Z),c++,d=setTimeout(_,s.rotate),e(k,t,Z.callback)}return setTimeout(_),x}function Wu(s){const t={...yg,...s};let e=[];function o(){e=e.filter(i=>i().status==="pending")}function r(i,l,c){const u=vg(t,i,l,(d,h)=>{o(),c&&c(d,h)});return e.push(u),u}function n(i){return e.find(l=>i(l))||null}return{query:r,find:n,setIndex:i=>{t.index=i},getIndex:()=>t.index,cleanup:o}}function Zu(){}const gi=Object.create(null);function bg(s){if(!gi[s]){const t=mi(s);if(!t)return;const e=Wu(t),o={config:t,redundancy:e};gi[s]=o}return gi[s]}function _g(s,t,e){let o,r;if(typeof s=="string"){const n=fi(s);if(!n)return e(void 0,424),Zu;r=n.send;const a=bg(s);a&&(o=a.redundancy)}else{const n=hi(s);if(n){o=Wu(n);const a=s.resources?s.resources[0]:"",i=fi(a);i&&(r=i.send)}}return!o||!r?(e(void 0,424),Zu):o.query(t,r,e)().abort}const qu="iconify2",xr="iconify",Qu=xr+"-count",Ku=xr+"-version",Ju=36e5,xg=168,wg=50;function yi(s,t){try{return s.getItem(t)}catch{}}function vi(s,t,e){try{return s.setItem(t,e),!0}catch{}}function td(s,t){try{s.removeItem(t)}catch{}}function bi(s,t){return vi(s,Qu,t.toString())}function _i(s){return parseInt(yi(s,Qu))||0}const Sn={local:!0,session:!0},ed={local:new Set,session:new Set};let xi=!1;function kg(s){xi=s}let En=typeof window>"u"?{}:window;function sd(s){const t=s+"Storage";try{if(En&&En[t]&&typeof En[t].length=="number")return En[t]}catch{}Sn[s]=!1}function od(s,t){const e=sd(s);if(!e)return;const o=yi(e,Ku);if(o!==qu){if(o){const i=_i(e);for(let l=0;l<i;l++)td(e,xr+l.toString())}vi(e,Ku,qu),bi(e,0);return}const r=Math.floor(Date.now()/Ju)-xg,n=i=>{const l=xr+i.toString(),c=yi(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,i))return!0}catch{}td(e,l)}};let a=_i(e);for(let i=a-1;i>=0;i--)n(i)||(i===a-1?(a--,bi(e,a)):ed[s].add(i))}function rd(){if(!xi){kg(!0);for(const s in Sn)od(s,t=>{const e=t.data,o=t.provider,r=e.prefix,n=yo(o,r);if(!ui(n,e).length)return!1;const a=e.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,a):a,!0})}}function Cg(s,t){const e=s.lastModifiedCached;if(e&&e>=t)return e===t;if(s.lastModifiedCached=t,e)for(const o in Sn)od(o,r=>{const n=r.data;return r.provider!==s.provider||n.prefix!==s.prefix||n.lastModified===t});return!0}function Tg(s,t){xi||rd();function e(o){let r;if(!Sn[o]||!(r=sd(o)))return;const n=ed[o];let a;if(n.size)n.delete(a=Array.from(n).shift());else if(a=_i(r),a>=wg||!bi(r,a+1))return;const i={cached:Math.floor(Date.now()/Ju),provider:s.provider,data:t};return vi(r,xr+a.toString(),JSON.stringify(i))}t.lastModified&&!Cg(s,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),e("local")||e("session"))}function nd(){}function Sg(s){s.iconsLoaderFlag||(s.iconsLoaderFlag=!0,setTimeout(()=>{s.iconsLoaderFlag=!1,hg(s)}))}function Eg(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:o}=s,r=s.iconsToLoad;delete s.iconsToLoad;let n;if(!r||!(n=fi(e)))return;n.prepare(e,o,r).forEach(i=>{_g(e,i,l=>{if(typeof l!="object")i.icons.forEach(c=>{s.missing.add(c)});else try{const c=ui(s,l);if(!c.length)return;const u=s.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),Tg(s,l)}catch(c){console.error(c)}Sg(s)})})}))}const Pg=(s,t)=>{const e=gg(s,!0,Yu()),o=fg(e);if(!o.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(o.loaded,o.missing,o.pending,nd)}),()=>{l=!1}}const r=Object.create(null),n=[];let a,i;return o.pending.forEach(l=>{const{provider:c,prefix:u}=l;if(u===i&&c===a)return;a=c,i=u,n.push(yo(c,u));const d=r[c]||(r[c]=Object.create(null));d[u]||(d[u]=[])}),o.pending.forEach(l=>{const{provider:c,prefix:u,name:d}=l,h=yo(c,u),p=h.pendingIcons||(h.pendingIcons=new Set);p.has(d)||(p.add(d),r[c][u].push(d))}),n.forEach(l=>{const{provider:c,prefix:u}=l;r[c][u].length&&Eg(l,r[c][u])}),t?mg(t,o,n):nd};function Og(s,t){const e={...s};for(const o in t){const r=t[o],n=typeof r;o in Xu?(r===null||r&&(n==="string"||n==="number"))&&(e[o]=r):n===typeof e[o]&&(e[o]=o==="rotate"?r%4:r)}return e}const Rg=/[\s,]+/;function Ig(s,t){t.split(Rg).forEach(e=>{switch(e.trim()){case"horizontal":s.hFlip=!0;break;case"vertical":s.vFlip=!0;break}})}function Fg(s,t=0){const e=s.replace(/^-?[0-9.]*/,"");function o(r){for(;r<0;)r+=4;return r%4}if(e===""){const r=parseInt(s);return isNaN(r)?0:o(r)}else if(e!==s){let r=0;switch(e){case"%":r=25;break;case"deg":r=90}if(r){let n=parseFloat(s.slice(0,s.length-e.length));return isNaN(n)?0:(n=n/r,n%1===0?o(n):0)}}return t}function Dg(s,t){let e=s.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const o in t)e+=" "+o+'="'+t[o]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+e+">"+s+"</svg>"}function $g(s){return s.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Lg(s){return"data:image/svg+xml,"+$g(s)}function Ag(s){return'url("'+Lg(s)+'")'}const ad={...Gu,inline:!1},Ng={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Mg={display:"inline-block"},wi={backgroundColor:"currentColor"},id={backgroundColor:"transparent"},ld={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},cd={webkitMask:wi,mask:wi,background:id};for(const s in cd){const t=cd[s];for(const e in ld)t[s+e]=ld[e]}const Pn={};["horizontal","vertical"].forEach(s=>{const t=s.slice(0,1)+"Flip";Pn[s+"-flip"]=t,Pn[s.slice(0,1)+"-flip"]=t,Pn[s+"Flip"]=t});function ud(s){return s+(s.match(/^[-0-9.]+$/)?"px":"")}const dd=(s,t)=>{const e=Og(ad,t),o={...Ng},r=t.mode||"svg",n={},a=t.style,i=typeof a=="object"&&!(a instanceof Array)?a:{};for(let b in t){const w=t[b];if(w!==void 0)switch(b){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":e[b]=w===!0||w==="true"||w===1;break;case"flip":typeof w=="string"&&Ig(e,w);break;case"color":n.color=w;break;case"rotate":typeof w=="string"?e[b]=Fg(w):typeof w=="number"&&(e[b]=w);break;case"ariaHidden":case"aria-hidden":w!==!0&&w!=="true"&&delete o["aria-hidden"];break;default:{const x=Pn[b];x?(w===!0||w==="true"||w===1)&&(e[x]=!0):ad[b]===void 0&&(o[b]=w)}}}const l=tg(s,e),c=l.attributes;if(e.inline&&(n.verticalAlign="-0.125em"),r==="svg"){o.style={...n,...i},Object.assign(o,c);let b=0,w=t.id;return typeof w=="string"&&(w=w.replace(/-/g,"_")),o.innerHTML=rg(l.body,w?()=>w+"ID"+b++:"iconifyVue"),Jt("svg",o)}const{body:u,width:d,height:h}=s,p=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),f=Dg(u,{...c,width:d+"",height:h+""});return o.style={...n,"--svg":Ag(f),width:ud(c.width),height:ud(c.height),...Mg,...p?wi:id,...i},Jt("span",o)};if(Yu(!0),ng("",dg),typeof document<"u"&&typeof window<"u"){rd();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(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!H0(o))&&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 o="IconifyProviders["+e+"] is invalid.";try{const r=t[e];if(typeof r!="object"||!r||r.resources===void 0)continue;ag(e,r)||console.error(o)}catch{console.error(o)}}}}const zg={...Cn,body:""},fd=q({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=xn(s,!1,!0))===null)return this.abortLoading(),null;const o=U0(e);if(!o)return(!this._loadingIcon||this._loadingIcon.name!==s)&&(this.abortLoading(),this._name="",o!==null&&(this._loadingIcon={name:s,abort:Pg([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:o,classes:r}}},render(){this.counter;const s=this.$attrs,t=this.iconMounted||s.ssr?this.getIcon(s.icon,s.onLoad):null;if(!t)return dd(zg,s);let e=s;return t.classes&&(e={...s,class:(typeof s.class=="string"?s.class+" ":"")+t.classes.join(" ")}),dd({...Cn,...t.data},e)}});function Vg(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Bg={exports:{}};(function(s,t){(function(e){s.exports=e()})(function(e){var o=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(x,v){var g=x[0],m=x[1],_=x[2],k=x[3];g+=(m&_|~m&k)+v[0]-680876936|0,g=(g<<7|g>>>25)+m|0,k+=(g&m|~g&_)+v[1]-389564586|0,k=(k<<12|k>>>20)+g|0,_+=(k&g|~k&m)+v[2]+606105819|0,_=(_<<17|_>>>15)+k|0,m+=(_&k|~_&g)+v[3]-1044525330|0,m=(m<<22|m>>>10)+_|0,g+=(m&_|~m&k)+v[4]-176418897|0,g=(g<<7|g>>>25)+m|0,k+=(g&m|~g&_)+v[5]+1200080426|0,k=(k<<12|k>>>20)+g|0,_+=(k&g|~k&m)+v[6]-1473231341|0,_=(_<<17|_>>>15)+k|0,m+=(_&k|~_&g)+v[7]-45705983|0,m=(m<<22|m>>>10)+_|0,g+=(m&_|~m&k)+v[8]+1770035416|0,g=(g<<7|g>>>25)+m|0,k+=(g&m|~g&_)+v[9]-1958414417|0,k=(k<<12|k>>>20)+g|0,_+=(k&g|~k&m)+v[10]-42063|0,_=(_<<17|_>>>15)+k|0,m+=(_&k|~_&g)+v[11]-1990404162|0,m=(m<<22|m>>>10)+_|0,g+=(m&_|~m&k)+v[12]+1804603682|0,g=(g<<7|g>>>25)+m|0,k+=(g&m|~g&_)+v[13]-40341101|0,k=(k<<12|k>>>20)+g|0,_+=(k&g|~k&m)+v[14]-1502002290|0,_=(_<<17|_>>>15)+k|0,m+=(_&k|~_&g)+v[15]+1236535329|0,m=(m<<22|m>>>10)+_|0,g+=(m&k|_&~k)+v[1]-165796510|0,g=(g<<5|g>>>27)+m|0,k+=(g&_|m&~_)+v[6]-1069501632|0,k=(k<<9|k>>>23)+g|0,_+=(k&m|g&~m)+v[11]+643717713|0,_=(_<<14|_>>>18)+k|0,m+=(_&g|k&~g)+v[0]-373897302|0,m=(m<<20|m>>>12)+_|0,g+=(m&k|_&~k)+v[5]-701558691|0,g=(g<<5|g>>>27)+m|0,k+=(g&_|m&~_)+v[10]+38016083|0,k=(k<<9|k>>>23)+g|0,_+=(k&m|g&~m)+v[15]-660478335|0,_=(_<<14|_>>>18)+k|0,m+=(_&g|k&~g)+v[4]-405537848|0,m=(m<<20|m>>>12)+_|0,g+=(m&k|_&~k)+v[9]+568446438|0,g=(g<<5|g>>>27)+m|0,k+=(g&_|m&~_)+v[14]-1019803690|0,k=(k<<9|k>>>23)+g|0,_+=(k&m|g&~m)+v[3]-187363961|0,_=(_<<14|_>>>18)+k|0,m+=(_&g|k&~g)+v[8]+1163531501|0,m=(m<<20|m>>>12)+_|0,g+=(m&k|_&~k)+v[13]-1444681467|0,g=(g<<5|g>>>27)+m|0,k+=(g&_|m&~_)+v[2]-51403784|0,k=(k<<9|k>>>23)+g|0,_+=(k&m|g&~m)+v[7]+1735328473|0,_=(_<<14|_>>>18)+k|0,m+=(_&g|k&~g)+v[12]-1926607734|0,m=(m<<20|m>>>12)+_|0,g+=(m^_^k)+v[5]-378558|0,g=(g<<4|g>>>28)+m|0,k+=(g^m^_)+v[8]-2022574463|0,k=(k<<11|k>>>21)+g|0,_+=(k^g^m)+v[11]+1839030562|0,_=(_<<16|_>>>16)+k|0,m+=(_^k^g)+v[14]-35309556|0,m=(m<<23|m>>>9)+_|0,g+=(m^_^k)+v[1]-1530992060|0,g=(g<<4|g>>>28)+m|0,k+=(g^m^_)+v[4]+1272893353|0,k=(k<<11|k>>>21)+g|0,_+=(k^g^m)+v[7]-155497632|0,_=(_<<16|_>>>16)+k|0,m+=(_^k^g)+v[10]-1094730640|0,m=(m<<23|m>>>9)+_|0,g+=(m^_^k)+v[13]+681279174|0,g=(g<<4|g>>>28)+m|0,k+=(g^m^_)+v[0]-358537222|0,k=(k<<11|k>>>21)+g|0,_+=(k^g^m)+v[3]-722521979|0,_=(_<<16|_>>>16)+k|0,m+=(_^k^g)+v[6]+76029189|0,m=(m<<23|m>>>9)+_|0,g+=(m^_^k)+v[9]-640364487|0,g=(g<<4|g>>>28)+m|0,k+=(g^m^_)+v[12]-421815835|0,k=(k<<11|k>>>21)+g|0,_+=(k^g^m)+v[15]+530742520|0,_=(_<<16|_>>>16)+k|0,m+=(_^k^g)+v[2]-995338651|0,m=(m<<23|m>>>9)+_|0,g+=(_^(m|~k))+v[0]-198630844|0,g=(g<<6|g>>>26)+m|0,k+=(m^(g|~_))+v[7]+1126891415|0,k=(k<<10|k>>>22)+g|0,_+=(g^(k|~m))+v[14]-1416354905|0,_=(_<<15|_>>>17)+k|0,m+=(k^(_|~g))+v[5]-57434055|0,m=(m<<21|m>>>11)+_|0,g+=(_^(m|~k))+v[12]+1700485571|0,g=(g<<6|g>>>26)+m|0,k+=(m^(g|~_))+v[3]-1894986606|0,k=(k<<10|k>>>22)+g|0,_+=(g^(k|~m))+v[10]-1051523|0,_=(_<<15|_>>>17)+k|0,m+=(k^(_|~g))+v[1]-2054922799|0,m=(m<<21|m>>>11)+_|0,g+=(_^(m|~k))+v[8]+1873313359|0,g=(g<<6|g>>>26)+m|0,k+=(m^(g|~_))+v[15]-30611744|0,k=(k<<10|k>>>22)+g|0,_+=(g^(k|~m))+v[6]-1560198380|0,_=(_<<15|_>>>17)+k|0,m+=(k^(_|~g))+v[13]+1309151649|0,m=(m<<21|m>>>11)+_|0,g+=(_^(m|~k))+v[4]-145523070|0,g=(g<<6|g>>>26)+m|0,k+=(m^(g|~_))+v[11]-1120210379|0,k=(k<<10|k>>>22)+g|0,_+=(g^(k|~m))+v[2]+718787259|0,_=(_<<15|_>>>17)+k|0,m+=(k^(_|~g))+v[9]-343485551|0,m=(m<<21|m>>>11)+_|0,x[0]=g+x[0]|0,x[1]=m+x[1]|0,x[2]=_+x[2]|0,x[3]=k+x[3]|0}function n(x){var v=[],g;for(g=0;g<64;g+=4)v[g>>2]=x.charCodeAt(g)+(x.charCodeAt(g+1)<<8)+(x.charCodeAt(g+2)<<16)+(x.charCodeAt(g+3)<<24);return v}function a(x){var v=[],g;for(g=0;g<64;g+=4)v[g>>2]=x[g]+(x[g+1]<<8)+(x[g+2]<<16)+(x[g+3]<<24);return v}function i(x){var v=x.length,g=[1732584193,-271733879,-1732584194,271733878],m,_,k,Z,ot,R;for(m=64;m<=v;m+=64)r(g,n(x.substring(m-64,m)));for(x=x.substring(m-64),_=x.length,k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<_;m+=1)k[m>>2]|=x.charCodeAt(m)<<(m%4<<3);if(k[m>>2]|=128<<(m%4<<3),m>55)for(r(g,k),m=0;m<16;m+=1)k[m]=0;return Z=v*8,Z=Z.toString(16).match(/(.*?)(.{0,8})$/),ot=parseInt(Z[2],16),R=parseInt(Z[1],16)||0,k[14]=ot,k[15]=R,r(g,k),g}function l(x){var v=x.length,g=[1732584193,-271733879,-1732584194,271733878],m,_,k,Z,ot,R;for(m=64;m<=v;m+=64)r(g,a(x.subarray(m-64,m)));for(x=m-64<v?x.subarray(m-64):new Uint8Array(0),_=x.length,k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],m=0;m<_;m+=1)k[m>>2]|=x[m]<<(m%4<<3);if(k[m>>2]|=128<<(m%4<<3),m>55)for(r(g,k),m=0;m<16;m+=1)k[m]=0;return Z=v*8,Z=Z.toString(16).match(/(.*?)(.{0,8})$/),ot=parseInt(Z[2],16),R=parseInt(Z[1],16)||0,k[14]=ot,k[15]=R,r(g,k),g}function c(x){var v="",g;for(g=0;g<4;g+=1)v+=o[x>>g*8+4&15]+o[x>>g*8&15];return v}function u(x){var v;for(v=0;v<x.length;v+=1)x[v]=c(x[v]);return x.join("")}u(i("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function x(v,g){return v=v|0||0,v<0?Math.max(v+g,0):Math.min(v,g)}ArrayBuffer.prototype.slice=function(v,g){var m=this.byteLength,_=x(v,m),k=m,Z,ot,R,$;return g!==e&&(k=x(g,m)),_>k?new ArrayBuffer(0):(Z=k-_,ot=new ArrayBuffer(Z),R=new Uint8Array(ot),$=new Uint8Array(this,_,Z),R.set($),ot)}}();function d(x){return/[\u0080-\uFFFF]/.test(x)&&(x=unescape(encodeURIComponent(x))),x}function h(x,v){var g=x.length,m=new ArrayBuffer(g),_=new Uint8Array(m),k;for(k=0;k<g;k+=1)_[k]=x.charCodeAt(k);return v?_:m}function p(x){return String.fromCharCode.apply(null,new Uint8Array(x))}function f(x,v,g){var m=new Uint8Array(x.byteLength+v.byteLength);return m.set(new Uint8Array(x)),m.set(new Uint8Array(v),x.byteLength),g?m:m.buffer}function b(x){var v=[],g=x.length,m;for(m=0;m<g-1;m+=2)v.push(parseInt(x.substr(m,2),16));return String.fromCharCode.apply(String,v)}function w(){this.reset()}return w.prototype.append=function(x){return this.appendBinary(d(x)),this},w.prototype.appendBinary=function(x){this._buff+=x,this._length+=x.length;var v=this._buff.length,g;for(g=64;g<=v;g+=64)r(this._hash,n(this._buff.substring(g-64,g)));return this._buff=this._buff.substring(g-64),this},w.prototype.end=function(x){var v=this._buff,g=v.length,m,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],k;for(m=0;m<g;m+=1)_[m>>2]|=v.charCodeAt(m)<<(m%4<<3);return this._finish(_,g),k=u(this._hash),x&&(k=b(k)),this.reset(),k},w.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},w.prototype.setState=function(x){return this._buff=x.buff,this._length=x.length,this._hash=x.hash,this},w.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},w.prototype._finish=function(x,v){var g=v,m,_,k;if(x[g>>2]|=128<<(g%4<<3),g>55)for(r(this._hash,x),g=0;g<16;g+=1)x[g]=0;m=this._length*8,m=m.toString(16).match(/(.*?)(.{0,8})$/),_=parseInt(m[2],16),k=parseInt(m[1],16)||0,x[14]=_,x[15]=k,r(this._hash,x)},w.hash=function(x,v){return w.hashBinary(d(x),v)},w.hashBinary=function(x,v){var g=i(x),m=u(g);return v?b(m):m},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(x){var v=f(this._buff.buffer,x,!0),g=v.length,m;for(this._length+=x.byteLength,m=64;m<=g;m+=64)r(this._hash,a(v.subarray(m-64,m)));return this._buff=m-64<g?new Uint8Array(v.buffer.slice(m-64)):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(x){var v=this._buff,g=v.length,m=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_,k;for(_=0;_<g;_+=1)m[_>>2]|=v[_]<<(_%4<<3);return this._finish(m,g),k=u(this._hash),x&&(k=b(k)),this.reset(),k},w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.getState=function(){var x=w.prototype.getState.call(this);return x.buff=p(x.buff),x},w.ArrayBuffer.prototype.setState=function(x){return x.buff=h(x.buff,!0),w.prototype.setState.call(this,x)},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.hash=function(x,v){var g=l(new Uint8Array(x)),m=u(g);return v?b(m):m},w})})(Bg);const hd=s=>new XMLSerializer().serializeToString(s),Yg=(s,t=Fu.SVG,e=yn.utf8)=>Du(hd(s),t,e),ws=(s,t,e)=>{const o=async r=>{await e(r)};return s.addEventListener(t,o,!1),()=>{s.removeEventListener(t,o,!1)}};function On(){const s=new gr;return{on:(t,e)=>{s.on(t,e)},off:(t,e)=>{s.off(t,e)},emit:(t,...e)=>{s.emit(t,...e)}}}const Ut=On();let pd="";new MutationObserver((s,t)=>{location.href!==pd&&(pd=location.href,Ut.emit("urlchange",location.href))}).observe(document,{attributes:!0,childList:!0,subtree:!0}),ws(window,"hashchange",()=>{Ut.emit("hashchange",location.hash)}),ws(window,"popstate",s=>{Ut.emit("popstate",s.state)}),ws(window,"orientationchange"in window?"orientationchange":"resize",s=>{const t=s.target.innerWidth,e=s.target.innerHeight;Ut.emit("windowresize",t,e)});let md=!1;ws(window,"load",()=>{Ut.emit("load"),md=!0}),ws(window,"beforeunload",s=>{Ut.emit("beforeunload",s)}),ws(window,"pagehide",s=>{Ut.emit("pagehide",s)}),ws(window,"focus",s=>{Ut.emit("focus",s)}),ws(window,"blur",s=>{Ut.emit("blur",s)}),ws(window,"visibilitychange",s=>{document.hidden?Ut.emit("windowhidden",s):Ut.emit("windowvisible",s)});const Xg={getSelectedText:()=>window.getSelection()?.toString()||"",isTabInView:()=>!document.hidden,onurlchange:s=>(Ut.on("urlchange",s),()=>{Ut.off("urlchange",s)}),onhashchange:s=>(Ut.on("hashchange",s),()=>{Ut.off("hashchange",s)}),onpopstate:s=>(Ut.on("popstate",s),()=>{Ut.off("popstate",s)}),pushstate:(s,t=null)=>{history.pushState(t,"",s)},replacestate:(s,t=null)=>{history.replaceState(t,"",s)},onwindowresize:s=>(Ut.on("windowresize",s),()=>{Ut.off("windowresize",s)}),onload:s=>{const t=$0(s);return Ut.on("load",t),md&&t(),()=>{Ut.off("load",t)}},onbeforeunload:s=>(Ut.on("beforeunload",s),()=>{Ut.off("beforeunload",s)}),onpagehide:s=>(Ut.on("pagehide",s),()=>{Ut.off("pagehide",s)}),onfocus:s=>(Ut.on("focus",s),()=>{Ut.off("focus",s)}),onblur:s=>(Ut.on("blur",s),()=>{Ut.off("blur",s)}),onwindowvisible:s=>(Ut.on("windowvisible",s),()=>{Ut.off("windowvisible",s)}),onwindowhidden:s=>(Ut.on("windowhidden",s),()=>{Ut.off("windowhidden",s)})},Gg=()=>{const s=navigator.userAgent.toLowerCase();let t="Unknown";return/iphone|ipad|ipod/i.test(s)?t="iOS":/android/i.test(s)?t="Android":/BlackBerry/i.test(s)?t="BlackBerry":/mac/i.test(s)?t="macOS":/win/i.test(s)?t="Windows":/linux/i.test(s)?t="Linux":/bsd/i.test(s)&&(t="BSD"),t.toLowerCase()};function Ug(s=navigator.userAgent){let t="Unknown";if(/iPhone|iPad|iPod/i.test(s)){const e=s.match(/OS (\d+_\d+)/i);e&&(t=e[1].replace("_","."))}else if(/Android/i.test(s)){const e=s.match(/Android (\d+\.\d+)/i);e&&(t=e[1])}else if(/Mac OS X/i.test(s)){const e=s.match(/Mac OS X (\d+_\d+)/i);e&&(t=e[1].replace("_","."))}else if(/Windows NT/i.test(s)){const e=s.match(/Windows NT (\d+\.\d+)/i);e&&(t=e[1])}return t.toLowerCase()}function jg(s,t){const e=s.split("."),o=t.split(".");for(let r=0,n=e.length;r<n;r++){if(o.length==r)return 1;if(e[r]!=o[r])return e[r]>o[r]?1:-1}return e.length!=o.length?-1:0}function Hg(){return Gg()==="ios"}function Wg(){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 o=s.indexOf("Edge/");return o>0?parseInt(s.substring(o+5,s.indexOf(".",o)),10):-1}const ki=Wg()!==-1;(()=>{const s=xu();return!!(s.Worker&&s.Blob&&s.Promise&&s.OffscreenCanvas&&s.OffscreenCanvasRenderingContext2D&&s.HTMLCanvasElement&&s.HTMLCanvasElement.prototype.transferControlToOffscreen&&s.URL&&s.URL.createObjectURL)})(),function(){if(!xu().OffscreenCanvas)return!1;const t=new OffscreenCanvas(1,1),e=t.getContext("2d");e.fillRect(0,0,1,1);const o=t.transferToImageBitmap();try{e.createPattern(o,"no-repeat")}catch{return!1}return!0}(),function(){if(!window.requestAnimationFrame){let s=pe();window.requestAnimationFrame=function(t){const e=pe(),o=Math.max(0,16-(e-s)),r=window.setTimeout(function(){t(e+o)},o);return s=e+o,r}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(s){clearTimeout(s)})}();const ce=s=>{let t=!1;return window.requestAnimationFrame(function e(o){!t&&s(o)&&window.requestAnimationFrame(e)}),()=>{t=!0}};function Ci(s,t=0){if(t==0)return s(pe()),()=>{};{const e=pe();return ce(o=>o-e>=t?(s(o),!1):!0)}}function Zg(s,t=0){let e=!1,o=0;const r=pe(),n=a=>{if(e)return;o++;const i=a-r-o*t;s(a,o,t<=i),Ci(n,Math.max(0,t-i))};return Ci(n,t),()=>{e=!0}}function qg(s,t=20){const e=1e3/t;let o=0,r;return()=>(pe()-o>=e&&(o=pe(),r=s()),r)}const Rn=new ii;let Ti=!1;function gd(s,t,e){if(s&&t&&Rn.set(s,t),Ti)return;Ti=!0;const o=pe();Kg(r=>{for(Ti=!1;(r.timeRemaining()>0||e&&pe()-o>=e)&&Rn.length>0;){const n=Rn.shift();n&&n[1]()}Rn.length>0&&gd()})}let In=0,vo=33,Ks=33,Si;const yd=new MessageChannel,Qg=yd.port2;yd.port1.onmessage=s=>{Si!==null&&Si({didTimeout:In<=pe(),timeRemaining:()=>Math.max(0,In-pe())})};function Kg(s){return Si=s,requestAnimationFrame(t=>{let e=t-In+Ks;e<Ks&&vo<Ks?(e<8&&(e=8),Ks=e<vo?vo:e):e>Ks&&vo>Ks?Ks=e<vo?vo:e:vo=e,In=t+Ks,Qg.postMessage(null)})}class wr{static _nextId=0;static nextId(){return wr._nextId++}}const dt={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-dt.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?dt.Bounce.In(s*2)*.5:dt.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(o){return t*Math.random()+e*s(o)}},swing:function(s){return s+Math.sin(s*Math.PI*2)/2},causeSeizures:function(s){return s+.2*Math.random()-.1}},Ei=dt;function Jg(s){switch(s){case dt.Quadratic.In:return dt.Quadratic.Out;case dt.Quadratic.Out:return dt.Quadratic.In;case dt.Quadratic.InOut:return dt.Quadratic.InOut;case dt.Cubic.In:return dt.Cubic.Out;case dt.Cubic.Out:return dt.Cubic.In;case dt.Cubic.InOut:return dt.Cubic.InOut;case dt.Quartic.In:return dt.Quartic.Out;case dt.Quartic.Out:return dt.Quartic.In;case dt.Quartic.InOut:return dt.Quartic.InOut;case dt.Quintic.In:return dt.Quintic.Out;case dt.Quintic.Out:return dt.Quintic.In;case dt.Quintic.InOut:return dt.Quintic.InOut;case dt.Sinusoidal.In:return dt.Sinusoidal.Out;case dt.Sinusoidal.Out:return dt.Sinusoidal.In;case dt.Sinusoidal.InOut:return dt.Sinusoidal.InOut;case dt.Exponential.In:return dt.Exponential.Out;case dt.Exponential.Out:return dt.Exponential.In;case dt.Exponential.InOut:return dt.Exponential.InOut;case dt.Circular.In:return dt.Circular.Out;case dt.Circular.Out:return dt.Circular.In;case dt.Circular.InOut:return dt.Circular.InOut;case dt.Elastic.In:return dt.Elastic.Out;case dt.Elastic.Out:return dt.Elastic.In;case dt.Elastic.InOut:return dt.Elastic.InOut;case dt.Back.In:return dt.Back.Out;case dt.Back.Out:return dt.Back.In;case dt.Back.InOut:return dt.Back.InOut;case dt.Bounce.In:return dt.Bounce.Out;case dt.Bounce.Out:return dt.Bounce.In;case dt.Bounce.InOut:return dt.Bounce.InOut;default:return s}}const Ao={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 o=t;o>1;o--)e*=o;return s[t]=e,e}}(),Bernstein:function(s,t){const e=Ao.Utils.Factorial;return e(s)/e(t)/e(s-t)},CatmullRom:function(s,t,e,o,r){const n=(e-s)*.5,a=(o-t)*.5,i=r*r,l=r*i;return(2*t-2*e+n+a)*l+(-3*t+3*e-2*n-a)*i+n*r+t},QuadraticBezier:(s,t,e,o)=>{const r=1-o;return r*r*s+2*r*o*t+o*o*e},CubicBezier:(s,t,e,o,r)=>{const n=1-r;return n*n*n*s+3*n*n*r*t+3*n*r*r*e+r*r*r*o}},Linear:function(s,t){const e=s.length-1,o=e*t,r=Math.floor(o),n=Ao.Utils.Linear;return t<0?n(s[0],s[1],o):t>1?n(s[e],s[e-1],e-o):n(s[r],s[r+1>e?e:r+1],o-r)},Bezier:function(s,t){let e=0;const o=s.length-1,r=Math.pow,n=Ao.Utils.Bernstein;for(let a=0;a<=o;a++)e+=r(1-t,o-a)*r(t,a)*s[a]*n(o,a);return e},CatmullRom:function(s,t){const e=s.length-1;let o=e*t,r=Math.floor(o);const n=Ao.Utils.CatmullRom;return s[0]===s[e]?(t<0&&(r=Math.floor(o=e*(1+t))),n(s[(r-1+e)%e],s[r],s[(r+1)%e],s[(r+2)%e],o-r)):t<0?s[0]-(n(s[0],s[0],s[1],s[1],-o)-s[0]):t>1?s[e]-(n(s[e],s[e],s[e-1],s[e-1],o-e)-s[e]):n(s[r?r-1:0],s[r],s[e<r+1?e:r+1],s[e<r+2?e:r+2],o-r)}},Pi=Ao;class vd{_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=pe(),e=!1){const o=Object.keys(this._tweens);for(let r=0;r<o.length;r++){const n=this._tweens[o[r]],a=!e;n&&n.update(t,a)===!1&&!e&&delete this._tweens[o[r]]}return!!Object.keys(this._tweens).length}}const ss=new vd;class bd{constructor(t,e=ss){this._object=t,this._group=e}_id=wr.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=Ei.Linear.None;_interpolationFunction=Pi.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=pe()){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,o,r){for(const n in o){const a=t[n],i=Array.isArray(a),l=i?"array":typeof a,c=!i&&Array.isArray(o[n]);if(!(l==="undefined"||l==="function")){if(c){let u=o[n];if(u.length===0)continue;u=u.map(this._handleRelativeValue.bind(this,a)),o[n]=[a].concat(u)}if((l==="object"||i)&&a&&!c){e[n]=i?[]:{};for(const u in a)e[n][u]=a[u];r[n]=i?[]:{},this._setupProperties(a,e[n],o[n],r[n])}else typeof e[n]>"u"&&(e[n]=a),i||(e[n]*=1),c?r[n]=o[n].slice().reverse():r[n]=e[n]||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=pe()){return this._isPaused||!this._isPlaying?this:(this._isPaused=!0,this._pauseStartTime=t,this._group&&this._group.remove(this),this)}resume(t=pe()){return!this._isPaused||!this._isPlaying?this:(this._isPaused=!1,this._startTime+=t-this._pauseStartTime,this._pauseStartTime=0,this._group&&this._group.add(this),this)}stopChainedTweens(){for(let t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this}group(t=ss){return this._group=t,this}delay(t=0){return this._delayTime=t,this}repeat(t=0){return this._initialRepeat=t,this._repeat=t,this}repeatDelay(t){return this._repeatDelayTime=t,this}yoyo(t=!1){return this._yoyo=t,this}easing(t=Ei.Linear.None){return this._easingFunction=t,this}interpolation(t=Pi.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=pe(),e=!0){if(this._isPaused)return!0;let o,r;const n=this._startTime+this._durationTime;if(!this._goToEnd&&!this._isPlaying){if(t>n)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 a=this._easingFunction(r);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,a),this._onUpdateCallback&&this._onUpdateCallback(this._object,r),r===1)if(this._repeat>0){isFinite(this._repeat)&&this._repeat--;for(o in this._valuesStartRepeat)!this._yoyo&&typeof this._valuesEnd[o]=="string"&&(this._valuesStartRepeat[o]=this._valuesStartRepeat[o]+parseFloat(this._valuesEnd[o])),this._yoyo&&this._swapEndStartRepeatValues(o),this._valuesStart[o]=this._valuesStartRepeat[o];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 i=0,l=this._chainedTweens.length;i<l;i++)this._chainedTweens[i].start(this._startTime+this._durationTime);return this._isPlaying=!1,!1}return!0}_updateProperties(t,e,o,r){for(const n in o){if(e[n]===void 0)continue;const a=e[n]||0;let i=o[n];const l=Array.isArray(t[n]),c=Array.isArray(i);!l&&c?t[n]=this._interpolationFunction(i,r):typeof i=="object"&&i?this._updateProperties(t[n],a,i,r):(i=this._handleRelativeValue(a,i),typeof i=="number"&&(t[n]=a+(i-a)*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],o=this._valuesEnd[t];typeof o=="string"?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(o):this._valuesStartRepeat[t]=o,this._valuesEnd[t]=e}}const ty=bd,ey=wr.nextId,sy=ss.getAll.bind(ss),oy=ss.removeAll.bind(ss),ry=ss.add.bind(ss),ny=ss.remove.bind(ss),ay=ss.update.bind(ss),xt={now:pe,Sequence:wr,Easing:Ei,Interpolation:Pi,Group:vd,Tween:ty,nextId:ey,getAll:sy,removeAll:oy,add:ry,remove:ny,update:ay};class iy{autoStart;startTime;oldTime;elapsedTime;running;constructor(t=!0){this.autoStart=t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=pe(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const e=pe();t=e-this.oldTime,this.oldTime=e,this.elapsedTime+=t}return t}}const _d=iy;class Fe{tweens=[];frameDuration;onGroupStart;onGroupComplete;constructor(t){this.frameDuration=t?.frameDuration||1e3,this.onGroupStart=t?.onGroupStart,this.onGroupComplete=t?.onGroupComplete}get count(){return this.tweens.length}clear(){this.tweens=[]}sort(t=!1){M0(this.tweens,(e,o)=>t?e.delay>o.delay:e.delay<=o.delay)}cloneTweens(t=this.tweens){const e=[];return t.forEach(o=>{const r={...o};delete r.tween,r.fromValues={...r.fromValues},r.toValues={...r.toValues},e.push(r)}),e}addTween(t,e,o){const r={fromValues:t,toValues:e,frames:typeof o?.frames=="number"?o.frames:1,delay:typeof o?.delay=="number"?o.delay:this.tweens.length,easeFunction:o?.easeFunction||dt.Linear.None,interpolationFunction:o?.interpolationFunction||Ao.Linear,repeat:typeof o?.repeat=="number"?o.repeat:0,yoyo:o?.yoyo||!1,onStart:o?.onStart||(()=>{}),onUpdate:o?.onUpdate||(()=>{}),onComplete:o?.onComplete||(()=>{})};return this.tweens.push(r),this}cancelRequestAnimationCycle=()=>{};runTweens(t){this.cancelRequestAnimationCycle();const e=new _d,o=this.frameDuration;return new Promise(r=>{this.onGroupStart?.(),this.cancelRequestAnimationCycle=ce(n=>{if(!this.isPaused){const i=Math.max(0,n-this.pausedDuration),l=Math.max(0,e.getElapsedTime()-this.pausedDuration);t.filter(c=>c.delay*o<=l).forEach(c=>{c.tween||(c.tween=new bd({...c.fromValues}).to({...c.toValues},c.frames*o).easing(c.easeFunction).interpolation(c.interpolationFunction).repeat(c.repeat).yoyo(c.yoyo).onStart(c.onStart).onUpdate(c.onUpdate).onComplete(c.onComplete),c.tween.start(i)),(c.delay+c.frames*(c.repeat+1))*o>l?c.tween.update(i):(c.tween.isPlaying()&&c.tween.end(),x0(t,c))})}const a=!!t.length;return a||(this.onGroupComplete?.(),r()),a})})}isPaused=!1;pausedClock=new _d;pausedDuration=0;play(t=this.cloneTweens(this.tweens)){this.isPaused=!1,this.pausedDuration=0,this.runTweens(t)}reverse(){const t=this.cloneTweens(this.tweens);let e=0;t.forEach(o=>{e=Math.max(e,o.delay+o.frames),o.easeFunction=Jg(o.easeFunction);const r={...o.toValues};o.toValues={...o.fromValues},o.fromValues={...r}}),t.forEach(o=>{o.delay=e-o.frames}),this.play(t)}pause(){this.pausedClock.start(),this.isPaused=!0}resume(){this.pausedDuration+=this.pausedClock.getElapsedTime(),this.pausedClock.stop(),this.isPaused=!1}}const Fn=new ii,ly=(s=!0)=>{Fn.filter((t,e)=>(e.alternate&&(tf(e,e.alternate),s&&Fn.set(t,e.alternate),e.alternate=void 0),s))};function xd(s){let t=Fn.get(s);return t||(t=Wi(s),Fn.set(s,t)),t}function cy(s){const t=xd(s);return t.alternate||(t.alternate=Wi(s)),t.alternate}function wd(s,t,e=!0){t(cy(s)),gd("FLUSH_DOM_ACTION",()=>ly(e),50)}function Bt(s){return s*Math.PI/180}function Ge(s){return s*180/Math.PI}function Oi(s,t,e=0){return Math.sqrt(s*s+t*t+e*e)}function Ri(s,t,e,o){return Oi(e-s,o-t)}function Ii(s,t,e,o){const r=e-s,n=o-t;return r*r+n*n}function No(s,t,e,o){let r=Math.atan2(o-t,e-s);return r<0&&(r+=Math.PI*2),r}function Vs(s,t){return{dx:Math.cos(s)*t,dy:Math.sin(s)*t}}const kd=uy("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 uy(s,t=10){const e={},o=s.split(",");for(let r=0;r<o.length;r+=2){const n="&"+o[r+1]+";",a=parseInt(o[r],t);e[n]="&#"+a+";"}return e["\\xa0"]=" ",e}function Ne(s,t){const e=Object.keys(t);for(let o=0;o<e.length;o++)s=s.replace(new RegExp("{"+e[o]+"}","gi"),""+t[e[o]]);return s}function Dn(s){let t,e;if(!s)throw new Error("cannot create a random attribute name for an undefined object");const o="ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";t="";do for(t="",e=0;e<12;e++)t+=o[Math.floor(Math.random()*o.length)];while(s[t]);return t}function dy(s){const t={left:"start",right:"end",center:"middle",start:"start",end:"end"};return t[s]||t.start}function fy(s){const t={alphabetic:"alphabetic",hanging:"hanging",top:"text-before-edge",bottom:"text-after-edge",middle:"central"};return t[s]||t.alphabetic}const kr={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 Fi{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}addColorStop(t,e){const o=this.__ctx.__createElement("stop");if(o.setAttribute("offset",""+t),e.indexOf("rgba")!==-1){const n=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(e);n&&(o.setAttribute("stop-color",Ne("rgb({r},{g},{b})",{r:n[1],g:n[2],b:n[3]})),o.setAttribute("stop-opacity",n[4]))}else o.setAttribute("stop-color",e);this.__root.appendChild(o)}}class Cd{__root;__ctx;constructor(t,e){this.__root=t,this.__ctx=e}}class $n{__document=document;__canvas;__ctx;width;height;__styleStack;__groupStack;__rootSVG;__ids;__SVGdefs;__currentElement;__currentElementsToStyle=null;constructor({canvas:t,width:e=500,height:o=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=o),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(kr);for(let e=0,o=t.length;e<o;e++){const r=t[e];this[r]=kr[r].canvas}}__getStyleState(){const t={},e=Object.keys(kr);for(let o=0,r=e.length;o<r;o++){const n=e[o];t[n]=this[n]}return t}__applyStyleState(t){const e=Object.keys(t);for(let o=0,r=e.length;o<r;o++){const n=e[o];this[n]=t[n]}}__createElement(t,e={},o=!1){const r=this.__document.createElementNS("http://www.w3.org/2000/svg",t),n=Object.keys(e);o&&(r.setAttribute("fill","none"),r.setAttribute("stroke","none"));for(let a=0;a<n.length;a++){const i=n[a];r.setAttribute(i,e[i])}return r}__applyStyleToCurrentElement(t){let e=this.__currentElement;const o=this.__currentElementsToStyle;o&&(e.setAttribute(t,""),e=o.element,o.children.forEach(n=>{n.setAttribute(t,"")}));const r=Object.keys(kr);for(let n=0;n<r.length;n++){const a=kr[r[n]],i=this[r[n]];if(a.apply){if(i instanceof Cd){if(i.__ctx)for(;i.__ctx.__SVGdefs.childNodes.length;){const l=i.__ctx.__SVGdefs.childNodes[0].getAttribute("id");this.__ids[l]=l,this.__SVGdefs.appendChild(i.__ctx.__SVGdefs.childNodes[0])}e.setAttribute(a.apply,Ne("url(#{id})",{id:i.__root.getAttribute("id")}))}else if(i instanceof Fi)e.setAttribute(a.apply,Ne("url(#{id})",{id:i.__root.getAttribute("id")}));else if(a.apply.indexOf(t)!==-1&&a.svg!==i)if((a.svgAttr==="stroke"||a.svgAttr==="fill")&&i.indexOf("rgba")!==-1){const c=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d?\.?\d*)\s*\)/gi.exec(i);if(c){e.setAttribute(a.svgAttr,Ne("rgb({r},{g},{b})",{r:c[1],g:c[2],b:c[3]}));let u=parseFloat(c[4]);const d=this.globalAlpha;d!=null&&(u*=d),e.setAttribute(a.svgAttr+"-opacity",""+u)}}else{let l=a.svgAttr;if(r[n]==="globalAlpha"&&(l=t+"-"+a.svgAttr,e.getAttribute(l)))continue;l&&e.setAttribute(l,i)}}}}__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(kd);for(let n=0,a=r.length;n<a;n++){const i=r[n],l=kd[i],c=new RegExp(i,"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 o=this.__currentElement.getAttribute("transform");o?o+=" ":o="",o+=t,this.__currentElement.setAttribute("transform",o)}scale(t,e){e===void 0&&(e=t),this.__addTransform(Ne("scale({x},{y})",{x:t,y:e}))}rotate(t){const e=t*180/Math.PI;this.__addTransform(Ne("rotate({angle},{cx},{cy})",{angle:e,cx:0,cy:0}))}translate(t,e){this.__addTransform(Ne("translate({x},{y})",{x:t,y:e}))}transform(t,e,o,r,n,a){this.__addTransform(Ne("matrix({a},{b},{c},{d},{e},{f})",{a:t,b:e,c:o,d:r,e:n,f:a}))}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(Ne("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(Ne("L {x} {y}",this.__currentPosition)):this.__addPathCommand(Ne("M {x} {y}",this.__currentPosition))}bezierCurveTo(t,e,o,r,n,a){this.__currentPosition={x:n,y:a},this.__addPathCommand(Ne("C {cp1x} {cp1y} {cp2x} {cp2y} {x} {y}",{cp1x:t,cp1y:e,cp2x:o,cp2y:r,x:n,y:a}))}quadraticCurveTo(t,e,o,r){this.__currentPosition={x:o,y:r},this.__addPathCommand(Ne("Q {cpx} {cpy} {x} {y}",{cpx:t,cpy:e,x:o,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,o,r,n){const a=this.__currentPosition&&this.__currentPosition.x,i=this.__currentPosition&&this.__currentPosition.y;if(typeof a>"u"||typeof i>"u")return;if(n<0)throw new Error("IndexSizeError: The radius provided ("+n+") is negative.");if(a===t&&i===e||t===o&&e===r||n===0){this.lineTo(t,e);return}const l=this.normalize([a-t,i-e]),c=this.normalize([o-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],d=Math.acos(Math.abs(u)),h=this.normalize([l[0]+c[0],l[1]+c[1]]),p=n/Math.sin(d/2),f=t+p*h[0],b=e+p*h[1],w=[-l[1],l[0]],x=[c[1],-c[0]],v=function(_){const k=_[0];return _[1]>=0?Math.acos(k):-Math.acos(k)},g=v(w),m=v(x);this.lineTo(f+w[0]*n,b+w[1]*n),this.arc(f,b,n,g,m)}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,o,r){this.__currentElement.nodeName!=="path"&&this.beginPath(),this.moveTo(t,e),this.lineTo(t+o,e),this.lineTo(t+o,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.closePath()}fillRect(t,e,o,r){const n=this.__createElement("rect",{x:t,y:e,width:o,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("fill")}strokeRect(t,e,o,r){const n=this.__createElement("rect",{x:t,y:e,width:o,height:r},!0);this.__closestGroupOrSvg().appendChild(n),this.__currentElement=n,this.__applyStyleToCurrentElement("stroke")}__clearCanvas(){const e=this.__closestGroupOrSvg().getAttribute("transform"),o=this.__rootSVG.childNodes[1],r=o.childNodes;for(let n=r.length-1;n>=0;n--)r[n]&&o.removeChild(r[n]);this.__currentElement=o,this.__groupStack=[],e&&this.__addTransform(e)}clearRect(t,e,o,r){if(t===0&&e===0&&o===this.width&&r===this.height){this.__clearCanvas();return}const n=this.__closestGroupOrSvg(),a=this.__createElement("rect",{x:t,y:e,width:o,height:r,fill:"#FFFFFF"},!0);n.appendChild(a)}createLinearGradient(t,e,o,r){const n=this.__createElement("linearGradient",{id:Dn(this.__ids),x1:t+"px",x2:o+"px",y1:e+"px",y2:r+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(n),new Fi(n,this)}createRadialGradient(t,e,o,r,n,a){const i=this.__createElement("radialGradient",{id:Dn(this.__ids),cx:r+"px",cy:n+"px",r:a+"px",fx:t+"px",fy:e+"px",gradientUnits:"userSpaceOnUse"},!1);return this.__SVGdefs.appendChild(i),new Fi(i,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),o={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"&&(o.decoration="underline"),this.__fontHref&&(o.href=this.__fontHref),o}__wrapTextLink(t,e){if(t.href){const o=this.__createElement("a");return o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.href),o.appendChild(e),o}return e}__applyText(t,e,o,r){const n=this.__parseFont(),a=this.__closestGroupOrSvg(),i=this.__createElement("text",{"font-family":n.family,"font-size":n.size,"font-style":n.style,"font-weight":n.weight,"text-decoration":n.decoration,x:e,y:o,"text-anchor":dy(this.textAlign),"dominant-baseline":fy(this.textBaseline)},!0);i.appendChild(this.__document.createTextNode(t)),this.__currentElement=i,this.__applyStyleToCurrentElement(r),a.appendChild(this.__wrapTextLink(n,i))}fillText(t,e,o){this.__applyText(t,e,o,"fill")}strokeText(t,e,o){this.__applyText(t,e,o,"stroke")}measureText(t){return this.__ctx.font=this.font,this.__ctx.measureText(t)}arc(t,e,o,r,n,a){if(r===n)return;r=r%(2*Math.PI),n=n%(2*Math.PI),r===n&&(n=(n+2*Math.PI-.001*(a?-1:1))%(2*Math.PI));const i=t+o*Math.cos(n),l=e+o*Math.sin(n),c=t+o*Math.cos(r),u=e+o*Math.sin(r),d=a?0:1;let h=0,p=n-r;p<0&&(p+=2*Math.PI),a?h=p>Math.PI?0:1:h=p>Math.PI?1:0,this.lineTo(c,u),this.__addPathCommand(Ne("A {rx} {ry} {xAxisRotation} {largeArcFlag} {sweepFlag} {endX} {endY}",{rx:o,ry:o,xAxisRotation:0,largeArcFlag:h,sweepFlag:d,endX:i,endY:l})),this.__currentPosition={x:i,y:l}}clip(){const t=this.__closestGroupOrSvg(),e=this.__createElement("clipPath"),o=Dn(this.__ids),r=this.__createElement("g");this.__applyCurrentDefaultPath(),t.removeChild(this.__currentElement),e.setAttribute("id",o),e.appendChild(this.__currentElement),this.__SVGdefs.appendChild(e),t.setAttribute("clip-path",Ne("url(#{id})",{id:o})),t.appendChild(r),this.__currentElement=r}drawImage(...t){let e=t[0],o,r,n,a,i=0,l=0,c,u,d,h,p,f,b,w;if(t.length===3)o=t[1],r=t[2],c=e.width,u=e.height,n=c,a=u;else if(t.length===5)o=t[1],r=t[2],n=t[3],a=t[4],c=e.width,u=e.height;else if(t.length===9)i=t[1],l=t[2],c=t[3],u=t[4],o=t[5],r=t[6],n=t[7],a=t[8];else throw new Error("Invalid number of arguments passed to drawImage: "+arguments.length);const x=this.__closestGroupOrSvg();this.__currentElement;const v="translate("+o+", "+r+")";if(e instanceof $n){if(d=e.getSvg().cloneNode(!0),d.childNodes&&d.childNodes.length>1){for(h=d.childNodes[0];h.childNodes.length;)w=h.childNodes[0].getAttribute("id"),this.__ids[w]=w,this.__SVGdefs.appendChild(h.childNodes[0]);if(p=d.childNodes[1],p){const g=p.getAttribute("transform");let m;g?m=g+" "+v:m=v,p.setAttribute("transform",m),x.appendChild(p)}}}else(e.nodeName==="CANVAS"||e.nodeName==="IMG")&&(f=this.__createElement("image"),f.setAttribute("width",n),f.setAttribute("height",a),f.setAttribute("preserveAspectRatio","none"),(i||l||c!==e.width||u!==e.height)&&(b=this.__document.createElement("canvas"),b.width=n,b.height=a,b.getContext("2d")?.drawImage(e,i,l,c,u,0,0,n,a),e=b),f.setAttribute("transform",v),f.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",e.nodeName==="CANVAS"?e.toDataURL():e.getAttribute("src")),x.appendChild(f))}createPattern(t,e){const o=this.__document.createElementNS("http://www.w3.org/2000/svg","pattern"),r=Dn(this.__ids);let n;return o.setAttribute("id",r),t.nodeName==="CANVAS"||t.nodeName==="IMG"?(n=this.__document.createElementNS("http://www.w3.org/2000/svg","image"),n.setAttribute("width",""+t.width),n.setAttribute("height",""+t.height),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.nodeName==="CANVAS"?t.toDataURL():t.getAttribute("src")),o.appendChild(n),this.__SVGdefs.appendChild(o)):t instanceof $n&&(o.setAttribute("width",""+t.width),o.setAttribute("height",""+t.height),o.appendChild(t.__rootSVG.childNodes[1]),this.__SVGdefs.appendChild(o)),new Cd(o,this)}setLineDash(t){t&&t.length>0?this.lineDash=t.join(","):this.lineDash=null}drawFocusRing(){}createImageData(){}getImageData(){}putImageData(){}globalCompositeOperation(){}setTransform(){}}class Di{canvas;context;customContext;currentPath2D=new Path2D;path2Ds=[];currentMatrix=new DOMMatrix;hasSetCustomStrokeStyle=!1;hasSetCustomFillStyle=!1;constructor(t,e,o,r=!1){this.canvas=t,this.context=t.getContext("2d",{willReadFrequently:!0}),r&&(this.customContext=new $n({canvas:this.canvas,width:e||this.canvas.width,height:o||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,o,r){return this.context.fillRect(t,e,o,r),this.customContext&&this.customContext.fillRect(t,e,o,r),this}fillText(t,e,o,r){return this.hasSetCustomFillStyle=!1,this.context.fillText(t,e,o,r),this.customContext&&this.customContext.fillText(t,e,o),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,o,r){return this.context.strokeText(t,e,o,r),this.customContext&&this.customContext.strokeText(t,e,o),this}strokeRect(t,e,o,r){return this.context.strokeRect(t,e,o,r),this.customContext&&this.customContext.strokeRect(t,e,o,r),this}measureText(t){return this.context.measureText(t)}clearRect(t=0,e=0,o=this.canvas.width,r=this.canvas.height){return this.context.clearRect(t,e,o,r),this.customContext&&this.customContext.clearRect(t,e,o,r),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 o=new Path2D;o.addPath(t,e),this.currentPath2D=o}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,o=0){return this.translate(e,o),this.context.rotate(t),this.customContext&&this.customContext.rotate(t),this.currentMatrix.rotate(t),this.translate(-e,-o),this.changePath2D(),this}scale(t,e=t,o=0,r=0){return this.translate(o,r),this.context.scale(t,e),this.customContext&&this.customContext.scale(t,e),this.currentMatrix.scale(t,e),this.translate(-o,-r),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,o,r,n,a){return this.context.arc(t,e,o,r,n,a),this.customContext&&this.customContext.arc(t,e,o,r,n,a?-1:1),this.currentPath2D.arc(t,e,o,r,n,a),this}arcTo(t,e,o,r,n){return this.context.arcTo(t,e,o,r,n),this.customContext&&this.customContext.arcTo(t,e,o,r,n),this.currentPath2D.arcTo(t,e,o,r,n),this}ellipse(t,e,o,r,n,a,i,l){return this.context.ellipse(t,e,o,r,n,a,i,l),this.currentPath2D.ellipse(t,e,o,r,n,a,i,l),this}quadraticCurveTo(t,e,o,r){return this.context.quadraticCurveTo(t,e,o,r),this.customContext&&this.customContext.quadraticCurveTo(t,e,o,r),this.currentPath2D.quadraticCurveTo(t,e,o,r),this}bezierCurveTo(t,e,o,r,n,a){return this.context.bezierCurveTo(t,e,o,r,n,a),this.customContext&&this.customContext.bezierCurveTo(t,e,o,r,n,a),this.currentPath2D.bezierCurveTo(t,e,o,r,n,a),this}rect(t,e,o,r){return this.context.rect(t,e,o,r),this.customContext&&this.customContext.rect(t,e,o,r),this.currentPath2D.rect(t,e,o,r),this}createLinearGradient(t,e,o,r,n){const a=this.context.createLinearGradient(t,e,o,r);return n&&Object.entries(n).forEach(([i,l])=>{a.addColorStop(parseFloat(i),l)}),a}createRadialGradient(t,e,o,r,n,a,i){const l=this.context.createRadialGradient(t,e,o,r,n,a);return i&&Object.entries(i).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 o=e[0],r=e[1];this.context.drawImage(t,o,r)}else if(e.length===4){const o=e[0],r=e[1],n=e[2],a=e[3];this.context.drawImage(t,o,r,n,a)}else if(e.length===8){const o=e[0],r=e[1],n=e[2],a=e[3],i=e[4],l=e[5],c=e[6],u=e[7];this.context.drawImage(t,o,r,n,a,i,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,o=this.canvas.width,r=this.canvas.height,n){return this.context.getImageData(t,e,o,r,n)}putImageData(t,e=0,o=0){return this.context.putImageData(t,e,o)}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 Ln{x;y;toX;toY;constructor(t){this.x=t?.x||0,this.y=t?.y||0,this.toX=t?.toX||0,this.toY=t?.toY||0}toSVGPathData(){return[["L",this.toX,this.toY]]}toCanvasContext(t){t.lineTo(this.toX,this.toY)}getBoundingClientRect(){const t=No(this.x,this.y,this.toX,this.toY);if(t===0){const e=Math.min(this.x,this.toX),o=Math.min(this.y,this.toY),r=Math.max(this.x,this.toX),n=Math.max(this.y,this.toY);return{x:e,y:o,width:r-e,height:n-o}}else{const e=Math.sin(t),o=Math.cos(t),r=o*this.x-e*this.y,n=o*this.toX-e*this.toY,a=o*this.y+e*this.x,i=o*this.toY+e*this.toX;return{x:Math.min(r,n),y:Math.min(a,i),width:Math.max(r,n)-Math.min(r,n),height:Math.max(a,i)-Math.min(a,i)}}}interpolate(t){return{x:this.x+t*(this.toX-this.x),y:this.y+t*(this.toY-this.y)}}intersection(t){const e=this.x,o=this.y,r=t.toX,n=t.toY,a=this.toX-e,i=t.x-r;if(!a&&!i)return null;const l=(this.toY-o)/a,c=(t.y-n)/i;if(a){if(!i)return{x:r,y:l*(r-e)+o}}else return{x:e,y:c*(e-r)+n};const u=(-c*r+n+l*e-o)/(l-c),d=l*(u-e)+o;return isNaN(u)||isNaN(d)?null:{x:u,y:d}}}const Td=Ln;class $i extends Ln{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,this.toX=t.toX,this.toY=t.toY}toSVGPathData(){return[["A",this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag,this.toX,this.toY]]}toCanvasContext(t){const[e,o,r,n,a,i,l]=this.convert(this.x,this.y,this.toX,this.toY,this.rx,this.ry,this.xAxisRotate,this.largeArcFlag,this.sweepFlag);t.ellipse(e,o,r,n,a,i,l,!this.sweepFlag)}convert(t,e,o,r,n,a,i,l,c){const u=i/180*Math.PI,d=(t-o)/2,h=(e-r)/2,p=Math.cos(u)*d+Math.sin(u)*h,f=-Math.sin(u)*d+Math.cos(u)*h,b=p*p/(n*n)+f*f/(a*a);if(b>1){const A=Math.sqrt(b);throw n=A*n,a=A*a,new Error(`Radii are too small to build an arc. Correcting them to ${n}/${a}.`)}const w=Math.sqrt((n*n*a*a-n*n*f*f-a*a*p*p)/(n*n*f*f+a*a*p*p)),x=l!=c?1:-1,v=x*w*n*f/a,g=x*w*-a*p/n,m=(t+o)/2,_=(e+r)/2,k=Math.cos(u)*v-Math.sin(u)*g+m,Z=Math.sin(u)*v+Math.cos(u)*g+_,ot=(A,D,M,X)=>(A*X>=D*M?1:-1)*Math.acos((A*M+D*X)/(Math.sqrt(A*A+D*D)*Math.sqrt(M*M+X*X))),R=ot(1,0,t-k,e-Z)-u,$=ot(t-k,e-Z,o-k,r-Z);return[k,Z,n,a,u,R,R+$]}}const hy=$i;class py extends Ln{cx;cy;isLineThrough;constructor(t){super(t),this.cx=t.cx,this.cy=t.cy,this.isLineThrough=typeof t.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["Q",t,e,this.toX,this.toY]]}else return[["Q",this.cx,this.cy,this.toX,this.toY]]}toCanvasContext(t){if(this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,o=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e,o,this.toX,this.toY)}else t.quadraticCurveTo(this.cx,this.cy,this.toX,this.toY)}getBoundingClientRect(){const t=[this.x,this.toX],e=[this.y,this.toY];let o,r,n,a;for(let c=0;c<2;++c)o=c==0?this.x-2*this.cx+this.toX:this.y-2*this.cy+this.toY,r=c==0?-2*this.x+2*this.cx:-2*this.y+2*this.cy,n=c==0?this.x:this.y,Math.abs(o)>1e-12&&(a=-r/(2*o),0<a&&a<1&&[t,e][c].push(o*a*a+r*a+n));const i={x:Math.min.apply(0,t),y:Math.min.apply(0,e)},l={x:Math.max.apply(0,t),y:Math.max.apply(0,e)};return{x:i.x,y:i.y,width:l.x-i.x,height:l.y-i.y}}interpolate(t){return{x:(1-t)*(1-t)*this.x+2*(1-t)*t*this.cx+t*t*this.toX,y:(1-t)*(1-t)*this.y+2*(1-t)*t*this.cy+t*t*this.toY}}}const my=py;class bo extends Ln{c1x;c1y;c2x;c2y;constructor(t){super(t),this.c1x=t.c1x,this.c1y=t.c1y,this.c2x=t.c2x,this.c2y=t.c2y}toSVGPathData(){return[["C",this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY]]}toCanvasContext(t){t.bezierCurveTo(this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY)}getBoundingClientRect(){let t=this.c2x-2*this.c1x+this.x-(this.toX-2*this.c2x+this.c1x),e=2*(this.c1x-this.x)-2*(this.c2x-this.c1x),o=this.x-this.c1x,r=(-e+Math.sqrt(e*e-4*t*o))/2/t,n=(-e-Math.sqrt(e*e-4*t*o))/2/t;const a=[this.y,this.toY],i=[this.x,this.toX];let l;const c=[];Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),t=this.c2y-2*this.c1y+this.y-(this.toY-2*this.c2y+this.c1y),e=2*(this.c1y-this.y)-2*(this.c2y-this.c1y),o=this.y-this.c1y,r=(-e+Math.sqrt(e*e-4*t*o))/2/t,n=(-e-Math.sqrt(e*e-4*t*o))/2/t,Math.abs(r)>1e12&&(r=.5),Math.abs(n)>1e12&&(n=.5),r>=0&&r<=1&&(l=this.interpolate(r),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y})),n>=0&&n<=1&&(l=this.interpolate(n),i.push(l.x),a.push(l.y),c.push({X:l.x,Y:l.y}));let u=[],d=c.length;for(let f=0;f<d;f++){for(let b=f+1;b<d;b++)c[f].X===c[b].X&&c[f].Y===c[b].Y&&(b=++f);u.push({X:c[f].X,Y:c[f].Y})}const h={x:Math.min.apply(Math,i),y:Math.min.apply(Math,a)},p={x:Math.max.apply(Math,i),y:Math.max.apply(Math,a)};return{x:h.x,y:h.y,width:p.x-h.x,height:p.y-h.y,dots:u}}interpolate(t){return{x:Math.pow(1-t,3)*this.x+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.toX,y:Math.pow(1-t,3)*this.y+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.toY}}static base3(t,e,o,r,n){const a=-3*e+9*o-9*r+3*n,i=t*a+6*e-12*o+6*r;return t*i-3*e+3*o}static bezlen(t,e,o,r,n,a,i,l,c=1){c=Math.max(0,Math.min(c,1));const u=c/2,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472];let p=0;for(let f=0;f<12;f++){const b=u*d[f]+u,w=this.base3(b,t,o,n,i),x=this.base3(b,e,r,a,l);p+=h[f]*Math.sqrt(w*w+x*x)}return u*p}length(t=1){return bo.bezlen(this.x,this.y,this.c1x,this.c1y,this.c2x,this.c2y,this.toX,this.toY,t)}getTatLen(t){const e=this.x,o=this.y,r=this.c1x,n=this.c1y,a=this.c2x,i=this.c2y,l=this.toX,c=this.toY;if(t<0||bo.bezlen(e,o,r,n,a,i,l,c)<t)return 0;let u=1,d=u/2,h=u-d,p=bo.bezlen(e,o,r,n,a,i,l,c,h);for(;Math.abs(p-t)>.01;)d/=2,h+=(p<t?1:-1)*d,p=bo.bezlen(e,o,r,n,a,i,l,c,h);return h}getPointAtSegmentLength(t){const e=this.getTatLen(t);let o=1-e,r=Math.pow(o,3),n=Math.pow(o,2),a=e*e,i=a*e,l=r*this.x+n*3*e*this.c1x+o*3*e*e*this.c2x+i*this.toX,c=r*this.y+n*3*e*this.c1y+o*3*e*e*this.c2y+i*this.toY,u=this.x+2*e*(this.c1x-this.x)+a*(this.c2x-2*this.c1x+this.x),d=this.y+2*e*(this.c1y-this.y)+a*(this.c2y-2*this.c1y+this.y),h=this.c1x+2*e*(this.c2x-this.c1x)+a*(this.toX-2*this.c2x+this.c1x),p=this.c1y+2*e*(this.c2y-this.c1y)+a*(this.toY-2*this.c2y+this.c1y),f=o*this.x+e*this.c1x,b=o*this.y+e*this.c1y,w=o*this.c2x+e*this.toX,x=o*this.c2y+e*this.toY,v=90-Math.atan2(u-h,d-p)*180/Math.PI;return{x:l,y:c,m:{x:u,y:d},n:{x:h,y:p},start:{x:f,y:b},end:{x:w,y:x},alpha:v}}}const Js=bo,Cr=Math.PI*2;function Sd(s,t,e,o){const r=s*o-t*e<0?-1:1;let n=s*e+t*o;return n>1&&(n=1),n<-1&&(n=-1),r*Math.acos(n)}function gy(s,t,e,o,r,n,a,i,l,c){const u=c*(s-e)/2+l*(t-o)/2,d=-l*(s-e)/2+c*(t-o)/2,h=a*a,p=i*i,f=u*u,b=d*d;let w=h*p-h*b-p*f;w<0&&(w=0),w/=h*b+p*f,w=Math.sqrt(w)*(r===n?-1:1);const x=w*a/i*d,v=w*-i/a*u,g=c*x-l*v+(s+e)/2,m=l*x+c*v+(t+o)/2,_=(u-x)/a,k=(d-v)/i,Z=(-u-x)/a,ot=(-d-v)/i,R=Sd(1,0,_,k);let $=Sd(_,k,Z,ot);return n===0&&$>0&&($-=Cr),n===1&&$<0&&($+=Cr),[g,m,R,$]}function yy(s,t){const e=1.3333333333333333*Math.tan(t/4),o=Math.cos(s),r=Math.sin(s),n=Math.cos(s+t),a=Math.sin(s+t);return[o,r,o-r*e,r+o*e,n+a*e,a-n*e,n,a]}function Ed(s,t,e,o,r,n,a,i,l){const c=Math.sin(l*Cr/360),u=Math.cos(l*Cr/360),d=u*(s-e)/2+c*(t-o)/2,h=-c*(s-e)/2+u*(t-o)/2;if(d===0&&h===0)return[];if(a===0||i===0)return[];a=Math.abs(a),i=Math.abs(i);const p=d*d/(a*a)+h*h/(i*i);p>1&&(a*=Math.sqrt(p),i*=Math.sqrt(p));const f=gy(s,t,e,o,r,n,a,i,c,u),b=[];let w=f[2],x=f[3];const v=Math.max(Math.ceil(Math.abs(x)/(Cr/4)),1);x/=v;for(let g=0;g<v;g++)b.push(yy(w,x)),w+=x;return b.map(g=>{for(let m=0;m<g.length;m+=2){let _=g[m+0],k=g[m+1];_*=a,k*=i;const Z=u*_-c*k,ot=c*_+u*k;g[m+0]=Z+f[0],g[m+1]=ot+f[1]}return g})}function Li(s,t,e,o,r,n){return[s/3+.6666666666666666*e,t/3+.6666666666666666*o,r/3+.6666666666666666*e,n/3+.6666666666666666*o,r,n]}function Tr(s,t,e,o){return[s,t,e,o,e,o]}const An={a:7,c:6,s:4,q:4,t:2,m:2,l:2,h:1,v:1,z:0};class me{static createSVGElement(t="path",e){const o=document.createElementNS.call(document,"http://www.w3.org/2000/svg",t);return e&&Bo(o,e),o}static createSvgPath(t,e){return this.createSVGElement("path",{d:t,id:e||$o()})}static downloadFromSVGElement(t,e="shape"){return Zd(Yg(t),`${e}.svg`)}static downloadFromSVGString(t,e="shape"){return Zd(Du(t),`${e}.svg`)}static getSVGRawStringFromElement(t){return hd(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 me.isSVGPath(t)&&t.replace(/([mlhvzaqtcs])([^mlhvzaqtcs]*)/gi,(o,r,n)=>{let a=r.toLowerCase();const i=ei(n);for(a=="m"&&i.length>An[a]&&(e.push([r,...i.splice(0,An[a])]),a="l",r=r=="m"?"l":"L");i.length;){if(i.length<An[a])throw new Error(`parseSVGPath substring:{ ${o} } command:{ ${r} } args:{ ${i} }`);e.push([r,...i.splice(0,An[a])])}return a=="z"&&e.push([r]),""}),e}static absolutizeSVGPath(t){let e=0,o=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toUpperCase();if(i!=l)switch(a[0]=l,i){case"a":a[6]+=r,a[7]+=n;break;case"v":a[1]+=n;break;case"h":a[1]+=r;break;default:for(let c=1;c<a.length;)a[c++]+=r,a[c++]+=n}switch(l){case"Z":r=e,n=o;break;case"H":r=a[1];break;case"V":n=a[1];break;case"M":r=e=a[1],n=o=a[2];break;default:r=a[a.length-2],n=a[a.length-1]}return a})}static relativeSVGPath(t){let e=0,o=0,r=0,n=0;return t.map(function(a){const i=a[0],l=i.toLowerCase();if(i!=l)switch(a[0]=l,i){case"A":a[6]-=r,a[7]-=n;break;case"V":a[1]-=n;break;case"H":a[1]-=r;break;default:for(let c=1;c<a.length;)a[c++]-=r,a[c++]-=n}switch(l){case"z":r=e,n=o;break;case"h":r+=a[1];break;case"v":n+=a[1];break;case"m":r+=a[1],n+=a[2],e+=a[1],o+=a[2];break;default:r+=a[a.length-2],n+=a[a.length-1]}return a})}static normalizeSVGPath(t){const e=[];let o=0,r=0,n=0,a=0,i=0,l=0,c=0,u=0,d;for(let h=0,p=t.length;h<p;h++){let f=t[h];const b=f[0];switch(b){case"M":o=f[1],r=f[2];break;case"A":const w=Ed(n,a,f[6],f[7],f[4],f[5],f[1],f[2],f[3]);if(!w.length)continue;w.forEach((g,m)=>{const[_,k,Z,ot,R,$,A,D]=g;f=["C",Z,ot,R,$,A,D],m<w.length-1&&e.push(f)});break;case"S":let x=n,v=a;(d=="C"||d=="S")&&(x+=x-c,v+=v-u),f=["C",x,v,f[1],f[2],f[3],f[4]];break;case"T":d=="Q"||d=="T"?(i=n*2-i,l=a*2-l):(i=n,l=a),f=["C",...Li(n,a,i,l,f[1],f[2])];break;case"Q":i=f[1],l=f[2],f=["C",...Li(n,a,f[1],f[2],f[3],f[4])];break;case"L":f=["C",...Tr(n,a,f[1],f[2])];break;case"H":f=["C",...Tr(n,a,f[1],a)];break;case"V":f=["C",...Tr(n,a,n,f[1])];break;case"Z":f=["C",...Tr(n,a,o,r)];break}d=b,n=f[f.length-2],a=f[f.length-1],f.length>4?(c=f[f.length-4],u=f[f.length-3]):(c=n,u=a),e.push(f)}return e}static catmullRom2bezier(t){const e=[];for(let o=0,r=t.length;r-2>o;o+=2){let n;o==0?n=[{x:t[o],y:t[o+1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+4],y:t[o+5]}]:r-4==o?n=[{x:t[o-2],y:t[o-1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+2],y:t[o+3]}]:n=[{x:t[o-2],y:t[o-1]},{x:t[o],y:t[o+1]},{x:t[o+2],y:t[o+3]},{x:t[o+4],y:t[o+5]}];const a=[{x:n[1].x,y:n[1].y},{x:(-n[0].x+6*n[1].x+n[2].x)/6,y:(-n[0].y+6*n[1].y+n[2].y)/6},{x:(n[1].x+6*n[2].x-n[3].x)/6,y:(n[1].y+6*n[2].y-n[3].y)/6},{x:n[2].x,y:n[2].y}];e.push(["C",a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y])}return e}static zvhToLSVGPath(t){const e=[];let o=["L",0,0],r;for(let n=0,a=t.length;n<a;n++){const i=t[n];switch(i[0]){case"M":o=["L",i[1],i[2]],e.push(i);break;case"Z":e.push(o);break;case"H":r=e[e.length-1]||["L",0,0],e.push(["L",i[1],r[r.length-1]]);break;case"V":r=e[e.length-1]||["L",0,0],e.push(["L",r[r.length-2],i[1]]);break;default:e.push(i)}}return e}static longhandSVGPath(t){const e={S:{to:"C",x:3},T:{to:"Q",x:1}};let o,r=0,n=0;for(let a=0,i=t.length;a<i;a++){const l=t[a],c=e[l[0]];c&&(l[0]=c.to,o&&(o[0]===c.to?(r=2*Number(o[c.x+2])-Number(o[c.x]),n=2*Number(o[c.x+3])-Number(o[c.x+1])):(r=Number(o[o.length-2]),n=Number(o[o.length-1]))),l.splice(1,0,r,n)),o=l}return t}}class Ke{cX;cY;x;y;degree;scalarX;scalarY;startPathX=0;startPathY=0;prevPathX=0;prevPathY=0;normalizedLines=[];constructor(t){this.cX=0,this.cY=0,this.x=t?.x||0,this.y=t?.y||0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&(this.cX=t.centerX-this.x,this.cY=t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.reset(t?.d,t?.originMatrix)}reset(t,e){typeof t=="string"?this.resetFromSVGPathData(me.parseSVGPath(t),e):t instanceof Ke?this.resetFromSVGPathData(t.toSVGPathData(),e):this.resetFromSVGPathData(t||[],e)}resetFromSVGPathData(t,e){this.normalizedLines=[];const o=me.normalizeSVGPath(me.absolutizeSVGPath(t));this.prevPathX=this.startPathX=0,this.prevPathY=this.startPathY=0;let r=!1;for(let n=0,a=o.length;n<a;n++){const i=o[n];if(i[0]=="M"){r||(r=!0,this.startPathX=i[1],this.startPathY=i[2]),this.prevPathX=i[1],this.prevPathY=i[2];continue}this.appendLine(new Js({c1x:i[1],c1y:i[2],c2x:i[3],c2y:i[4],toX:i[5],toY:i[6]}))}e&&({x:this.startPathX,y:this.startPathY}=e.transformPoint({x:this.startPathX,y:this.startPathY}),{x:this.prevPathX,y:this.prevPathY}=e.transformPoint({x:this.prevPathX,y:this.prevPathY}),this.normalizedLines.forEach(n=>{({x:n.x,y:n.y}=e.transformPoint({x:n.x,y:n.y})),{x:n.c1x,y:n.c1y}=e.transformPoint({x:n.c1x,y:n.c1y}),{x:n.c2x,y:n.c2y}=e.transformPoint({x:n.c2x,y:n.c2y}),{x:n.toX,y:n.toY}=e.transformPoint({x:n.toX,y:n.toY})}))}static fromPolymorphPoints(t){const e=new Ke;e.prevPathX=e.startPathX=t[0]||0,e.prevPathY=e.startPathY=t[1]||0;for(let o=2,r=t.length;o+5<r;o+=6)e.appendLine(new Js({c1x:t[o],c1y:t[o+1],c2x:t[o+2],c2y:t[o+3],toX:t[o+4],toY:t[o+5]}));return e}static fromLines(t){const e=new Ke;e.prevPathX=e.startPathX=t[0].x||0,e.prevPathY=e.startPathY=t[0].y||0;for(let o=0,r=t.length;o<r;o++)e.appendLine(t[o]);return e}appendLine(t){if(t instanceof hy){Ed(this.prevPathX,this.prevPathY,t.toX,t.toY,t.largeArcFlag,t.sweepFlag,t.rx,t.ry,t.xAxisRotate).forEach(c=>{const[u,d,h,p,f,b,w,x]=c;this.normalizedLines.push(new Js({x:this.prevPathX,y:this.prevPathY,c1x:h,c1y:p,c2x:f,c2y:b,toX:w,toY:x})),this.prevPathX=w,this.prevPathY=x});return}let e,o,r,n,a,i;t instanceof Js?(e=t.c1x,o=t.c1y,r=t.c2x,n=t.c2y,a=t.toX,i=t.toY):t instanceof my?[e,o,r,n,a,i]=Li(this.prevPathX,this.prevPathY,t.cx,t.cy,t.toX,t.toY):[e,o,r,n,a,i]=Tr(this.prevPathX,this.prevPathY,t.toX,t.toY),this.normalizedLines.push(new Js({x:this.prevPathX,y:this.prevPathY,c1x:e,c1y:o,c2x:r,c2y:n,toX:a,toY:i})),this.prevPathX=a,this.prevPathY=i}toSVGPathData(){const{startPathX:t,startPathY:e,normalizedLines:o}=this.updateTransform(),r=[];r.push(["M",t,e]);for(let n=0,a=o.length;n<a;n++)r.push(...o[n].toSVGPathData());return r}toSVGPathD(){return me.SVGPathDataToD(this.toSVGPathData())}toCanvasContext(t){const{startPathX:e,startPathY:o,normalizedLines:r}=this.updateTransform();t.beginPath(),t.moveTo(e,o),r.forEach(n=>{n.toCanvasContext(t)})}getBoundingClientRect(){const{normalizedLines:t}=this.updateTransform(),e=[],o=[];if(t.forEach(l=>{const c=l.getBoundingClientRect();e.push(c.x,c.x+c.width),o.push(c.y,c.y+c.height)}),e.length==0||o.length==0)return{x:0,y:0,width:0,height:0};const r=Math.min.apply(0,e),n=Math.min.apply(0,o),a=Math.max.apply(0,e),i=Math.max.apply(0,o);return{x:r,y:n,width:a-r,height:i-n}}update(t){this.cX=typeof t.cX=="number"?t.cX:this.cX,this.cY=typeof t.cY=="number"?t.cY:this.cY,this.x=t.x,this.y=t.y,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY}updateTransform(){const t=new Je;if(t.translate(this.x+this.cX,this.y+this.cY),t.rotate(this.degree),t.scale(this.scalarX,this.scalarY),t.translate(-this.cX,-this.cY),t.isIdentity)return{startPathX:this.startPathX,startPathY:this.startPathY,normalizedLines:this.normalizedLines};{let e=this.startPathX,o=this.startPathY;({x:e,y:o}=t.transformPoint({x:e,y:o}));const r=[];return this.normalizedLines.forEach(n=>{let a=n.x,i=n.y,l=n.c1x,c=n.c1y,u=n.c2x,d=n.c2y,h=n.toX,p=n.toY;({x:a,y:i}=t.transformPoint({x:a,y:i})),{x:l,y:c}=t.transformPoint({x:l,y:c}),{x:u,y:d}=t.transformPoint({x:u,y:d}),{x:h,y:p}=t.transformPoint({x:h,y:p}),r.push(new Js({x:a,y:i,c1x:l,c1y:c,c2x:u,c2y:d,toX:h,toY:p}))}),{startPathX:e,startPathY:o,normalizedLines:r}}}getTotalLength(){const{normalizedLines:t}=this.updateTransform();return t.reduce((e,o)=>e+=o.length(),0)}getPointAtLength(t){const{normalizedLines:e}=this.updateTransform();let o=0;const r=e.length;for(let n=0;n<r;n++){const a=e[n],i=a.length();if(o+i>=t)return a.getPointAtSegmentLength(t-o);o+=i}return e[r-1].getPointAtSegmentLength(1)}interpolate(t){const{startPathX:e,startPathY:o,normalizedLines:r}=this.updateTransform(),n=r.length;if(n===0)return{x:e,y:o};if(n===1)return r[0].interpolate(t);{let a=t*n,i=r[0];if(a--,a>1)for(let l=1;l<n&&(i=r[l],a>1);l++)a-=1;return i.interpolate(a)}}getSubpath(t,e){if(this.getTotalLength()-e<1e-6)return this.getSubpathsAtLength(this,t);{const o=this.getSubpathsAtLength(this,e,1);return t?this.getSubpathsAtLength(o,t):o}}getSubpathsAtLength(t,e,o){const{startPathX:r,startPathY:n,normalizedLines:a}=t.updateTransform();let i=null,l=0;const c=new Ke;c.prevPathX=c.startPathX=r,c.prevPathY=c.startPathY=n;for(let u=0,d=a.length;u<d;u++){const h=a[u],p=h.length();if(l+p>e&&!i){const f=h.getPointAtSegmentLength(e-l);if(c.appendLine(new Js({c1x:f.start.x,c1y:f.start.y,c2x:f.m.x,c2y:f.m.y,toX:f.x,toY:f.y})),o)return c;i=c,c.appendLine(new Js({c1x:f.n.x,c1y:f.n.y,c2x:f.end.x,c2y:f.end.y,toX:h.x,toY:h.y})),l+=p;continue}l+=p,c.appendLine(h)}return c}closestPoint(t,e){const o=this.getTotalLength();let r={x:t,y:e},n=0,a=1/0,i=8;for(let c=0;c<=o;c+=i){let u=this.getPointAtLength(c),d=Ii(u.x,u.y,t,e);d<a&&(r=u,n=c,a=d)}for(i/=2;i>.5;){let c=n-i,u=this.getPointAtLength(c),d=Ii(u.x,u.y,t,e),h=n+i,p=this.getPointAtLength(h),f=Ii(p.x,p.y,t,e);c>=0&&d<a?(r=u,n=c,a=d):h<=o&&f<a?(r=p,n=h,a=f):i/=2}const l=this.getPointAtLength(n+(n===o?-.1:.1));return{point:r,rotation:n>=o?No(l.x,l.y,r.x,r.y):No(r.x,r.y,l.x,l.y),distance:Math.sqrt(a)}}get polymorphPoints(){const{startPathX:t,startPathY:e,normalizedLines:o}=this.updateTransform();return[t,e].concat(o.reduce((r,n)=>r.concat([n.c1x,n.c1y,n.c2x,n.c2y,n.toX,n.toY]),[]))}perimeterPoints(){const t=this.polymorphPoints,e=t.length;let o=t[e-2],r=t[e-1],n=0;for(let a=0;a<e;a+=6)n+=Ri(t[a],t[a+1],o,r),o=t[a],r=t[a+1];return Math.floor(n)}expendFill(t){const e=this.polymorphPoints,o=e.length;let r=t-o;const n=Math.ceil(t/o),a=[];a.push(["M",e[0],e[1]]);let i=2;for(;i+5<=o-1;){const l=e[i++],c=e[i++],u=e[i++],d=e[i++],h=e[i++],p=e[i++];a.push(["C",l,c,u,d,h,p]);let f=0;for(;f<n&&r>0;)a.push(["C",h,p,h,p,h,p]),r-=6,f++}return a}static mixPoints(t,e,o){const r=t.length,n=new Array(r);for(let a=0;a<r;a++)n[a]=Te(t[a]+(e[a]-t[a])*o,6);return n}static getPathInterpolator(t,e){return o=>Math.abs(o-0)<Number.EPSILON?t:Math.abs(o-1)<Number.EPSILON?e:Ke.fromPolymorphPoints(Ke.mixPoints(new Ke({d:t}).polymorphPoints,new Ke({d:e}).polymorphPoints,o)).toSVGPathData()}}class re extends gr{id;originD;originMatrix;independentTransformInGroup;forceCXY=!1;cX;cY;x;y;degree;scalarX;scalarY;diffXInGroup;diffYInGroup;diffDegreeInGroup;diffScalarXInGroup;diffScalarYInGroup;vx;vy;ax;ay;mass;attrs;enableDrag;alongPath;isDragging=!1;isMouseIn=!1;targetToAfterDragFree;followMouse;strokeArmyAnts;strokeArmyAntsOffset=0;strokeDashTotalLength=0;isShow=!0;el;pathd;usePathDtoCanvasContext=!1;parent;shapes=[];constructor(t){if(super(),this.id=$o(),t?.d&&(this.originD=t?.d),t?.originMatrix&&(this.originMatrix=t.originMatrix),this.independentTransformInGroup=typeof t?.independentTransformInGroup=="boolean"?t.independentTransformInGroup:!1,this.x=t?.x||0,this.y=t?.y||0,this.cX=0,this.cY=0,typeof t?.centerX=="number"&&typeof t?.centerY=="number"&&this.forceSetCXY(t.centerX-this.x,t.centerY-this.y),this.degree=t?.degree||0,this.scalarX=1,this.scalarY=1,t?.scalar!==void 0&&(this.scalarX=t.scalar,this.scalarY=t.scalar),t?.scalarX!==void 0&&(this.scalarX=t.scalarX),t?.scalarY!==void 0&&(this.scalarY=t.scalarY),this.diffXInGroup=t?.diffXInGroup||0,this.diffYInGroup=t?.diffYInGroup||0,this.diffDegreeInGroup=t?.diffDegreeInGroup||0,this.diffScalarXInGroup=t?.diffScalarXInGroup||1,this.diffScalarYInGroup=t?.diffScalarYInGroup||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={stroke:"none",fill:"none"},t?.attrs&&this.setAttr(t?.attrs),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.strokeArmyAnts){const o=this.getAttr("stroke-dasharray","4 4");this.setAttr("stroke-dasharray",o),this.strokeDashTotalLength=ei(o).reduce((r,n)=>r+n,0)}return N0(this)}forceSetCXY(t,e){this.cX=t,this.cY=e,this.forceCXY=!0}shapeInit(){}initPathD(){if(!this.pathd){if(this.pathd=new Ke,ni(()=>{this.pathd?.reset(this.originD||this.toSVGPathData(),this.originMatrix)}),this.pathd&&!this.forceCXY){const t=this.shapes.length==0?this.pathd.getBoundingClientRect():this.getBoundingClientRect();t&&(this.pathd.cX=this.cX=t.x+t.width/2-this.pathd.x,this.pathd.cY=this.cY=t.y+t.height/2-this.pathd.y)}this.shapeInit()}return this.pathd}frameStart(t){}frameUpdate(t,e){this.pathd=this.initPathD(),this.pathd.update(this),this.strokeArmyAnts&&(this.isMouseIn||(this.setAttr("stroke-dashoffset",String(this.strokeArmyAntsOffset++)),this.strokeArmyAntsOffset>this.strokeDashTotalLength&&(this.strokeArmyAntsOffset=0)))}frameEnd(t){}toSVGPathData(){return[]}toSVGPathD(){return this.pathd?.toSVGPathD()||""}toCanvasContext(t){this.usePathDtoCanvasContext=!0,this.pathd?.toCanvasContext(t)}getBoundingClientRect(){return this.pathd?.getBoundingClientRect()||null}get center(){const t=this.getBoundingClientRect(),e={x:this.x,y:this.y};return t&&(e.x=t.x+t.width/2,e.y=t.y+t.height/2),e}trim(){if(this.parent)return;const t=this.getBoundingClientRect();if(!t)return;this.shapes.forEach(o=>{const r=o.originMatrix?o.originMatrix.clone():new Je;r.translate(-t.x+o.x,-t.y+o.y),o.originMatrix=r});const e=this.originMatrix?this.originMatrix.clone():new Je;e.translate(-t.x+this.x,-t.y+this.y),this.originMatrix=e}isPointInPath(t,e,o){if(o instanceof Di)return o.isPointInPath(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=o.createSVGPoint(),r.x=t,r.y=e}if(this.el instanceof SVGGeometryElement)return this.el.isPointInFill(r);{const n=this.getBoundingClientRect();if(n)return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height}return!1}isPointInStroke(t,e,o){if(o instanceof Di)return o.isPointInStroke(new Path2D(this.toSVGPathD()),t,e);let r;try{r=new SVGPoint(t,e)}catch{r=o.createSVGPoint(),r.x=t,r.y=e}return this.el instanceof SVGGeometryElement?this.el.isPointInStroke(r):!1}clone(){return _0(this).copy(this)}copy(t){return this.id=t.id,this.originD=t.originD,this.originMatrix=t.originMatrix,this.independentTransformInGroup=t.independentTransformInGroup,this.x=t.x,this.y=t.y,this.cX=t.cX,this.cY=t.cY,this.degree=t.degree,this.scalarX=t.scalarX,this.scalarY=t.scalarY,this.diffXInGroup=t.diffXInGroup,this.diffYInGroup=t.diffYInGroup,this.diffDegreeInGroup=t.diffDegreeInGroup,this.diffScalarXInGroup=t.diffScalarXInGroup,this.diffScalarYInGroup=t.diffScalarYInGroup,this.vx=t.vx,this.vy=t.vy,this.ax=t.ax,this.ay=t.ay,this.mass=t.mass,this.attrs={...t.attrs},this.enableDrag=t.enableDrag,this.alongPath=t.alongPath,this.targetToAfterDragFree=t.targetToAfterDragFree,this.followMouse=t.followMouse,this.isShow=t.isShow,this.strokeArmyAnts=t.strokeArmyAnts,this.strokeDashTotalLength=t.strokeDashTotalLength,this}save(){}restore(){}setAttr(t,e){typeof t!="string"?Object.assign(this.attrs,Object.fromEntries(Object.entries(t).map(([o,r])=>[ls(o),r]))):e&&(this.attrs[ls(t)]=e)}getAttr(t,e){return this.attrs[t]||this.attrs[ls(t)]||e}getAttrs(){return this.attrs}hasAttr(t){return!!this.attrs[t]||!!this.attrs[ls(t)]}distance(t){return Ri(this.x,this.y,t.x,t.y)}rotateTo(t){this.degree=Ge(No(this.x,this.y,t.x,t.y))}followTo(t,e=3){this.rotateTo(t);const{dx:o,dy:r}=Vs(Bt(this.degree),e);this.vx=o,this.vy=r,this.run()}followAccelerationTo(t,e=.05){this.rotateTo(t);const{dx:o,dy:r}=Vs(Bt(this.degree),e);this.ax=o,this.ay=r,this.run()}checkCollision(t){}checkWall(t){}gravitateTo(t){const e=t.x-this.x,o=t.y-this.y,r=e*e+o*o,n=Math.sqrt(r),a=this.mass*t.mass/r,i=a*e/n,l=a*o/n;this.vx+=i/this.mass,this.vy+=l/this.mass,t.vx-=i/t.mass,t.vy-=l/t.mass}run(t){this.vx+=this.ax,this.vy+=this.ay;const e=Qs(t?.gravity,0);this.vy+=e;const o=Qs(t?.friction,1);this.vx*=o,this.vy*=o,this.x+=this.vx,this.y+=this.vy}runEaseTo(t,e){const o=Qs(e?.easing,.05),r=t.x-this.cX-this.x,n=t.y-this.cY-this.y;this.vx=r*o,this.vy=n*o,this.run(e)}runSpringTo(t,e){const o=Qs(e?.spring,.03);(Array.isArray(t)?t:[t]).forEach(r=>{const n=r.x-this.cX-this.x,a=r.y-this.cY-this.y,i=n*o,l=a*o;this.vx+=i,this.vy+=l}),this.run({friction:.9,...e})}springMassTo(t,e){const o=Qs(e?.springLength,100),r=Qs(e?.spring,1e-4),n=t.x-this.x,a=t.y-this.y,i=Math.sqrt(n*n+a*a);if(i<o){const l=n*r,c=a*r;return this.vx+=l/this.mass,this.vy+=c/this.mass,t.vx-=l/t.mass,t.vy-=c/t.mass,1-i/o}return 0}getTotalLength(){return this.initPathD().getTotalLength()}interpolate(t){return this.initPathD().interpolate(t)}getPointAtLength(t){return this.initPathD().getPointAtLength(t)}trailPath(t,e=0){const o=this.getTotalLength();return t.originD=this.initPathD().getSubpath(0,e*o),this.getPointAtLength(e*o)}strokeDashTween(t=1e3,e){const o=this.initPathD(),r=Te(o.getTotalLength(),0);this.setAttr({strokeDasharray:`${r} ${r}`,strokeDashoffset:`${r}`});const n=e?.onUpdate,a=new Fe({frameDuration:t});a.addTween({offset:r},{offset:0},Object.assign(e||{},{onUpdate:(i,l)=>{this.setAttr("strokeDashoffset",""+Te(i.offset,2)),n?.(i,l)}})),a.play()}}class vy extends re{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}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,o){this.cX=t,this.cY=e,this.cZ=o}rotateX(t){({x:this.y,y:this.z}=ks(Bt(t),this.y,this.z))}rotateY(t){({x:this.x,y:this.z}=ks(Bt(t),this.x,this.z))}rotateZ(t){({x:this.x,y:this.y}=ks(Bt(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 Oi(this.x,this.y,this.z)}distance(t){const e=t.x-this.x,o=t.y-this.y,r=t.z-this.z;return Math.sqrt(e*e+o*o+r*r)}scalar(t){return this.x*=t,this.y*=t,this.z*=t,this}normalize(t=1){const e=this.length();if(e){const o=t/e;this.scalar(o)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,o=this.y,r=this.z;return{x:o*t.z-r*t.y,y:r*t.x-e*t.z,z:e*t.y-o*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}}}const Nn=vy,Pd=[1,0,0,1,0,0],Od=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];class Je{value;_m13=0;_m23=0;_m33=1;matrix3d;constructor(t=Pd){this.value=Array.from(t),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D()}static fromString(t){const e=new Je,o=ku("number",t);return o.length===6&&o.forEach((r,n)=>{r.fullMatch&&(e.value[n]=parseFloat(r.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this._m13}get m21(){return this.value[2]}get m22(){return this.value[3]}get m23(){return this._m23}get m31(){return this.value[4]}get m32(){return this.value[5]}get m33(){return this._m33}set m11(t){this.value[0]=t}set m12(t){this.value[1]=t}set m13(t){this._m13=t}set m21(t){this.value[2]=t}set m22(t){this.value[3]=t}set m23(t){this._m23=t}set m31(t){this.value[4]=t}set m32(t){this.value[5]=t}set m33(t){this._m33=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 os(e)}identity(){return this.value=Array.from(Pd),this.m13=0,this.m23=0,this.m33=1,this.matrix3d=this.toMatrix3D(),this}get 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)}transformPoint(t){const e=t.z||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31,y:t.x*this.m12+t.y*this.m22+e*this.m32,z:t.x*this.m13+t.y*this.m23+e*this.m33}}clone(){return new Je([...this.value])}multiply(t){const e=this.clone(),o=t instanceof Je?t:new Je(t);return this.m11=o.m11*e.m11+o.m12*e.m21+o.m13*e.m31,this.m12=o.m11*e.m12+o.m12*e.m22+o.m13*e.m32,this.m13=o.m11*e.m13+o.m12*e.m23+o.m13*e.m33,this.m21=o.m21*e.m11+o.m22*e.m21+o.m23*e.m31,this.m22=o.m21*e.m12+o.m22*e.m22+o.m23*e.m32,this.m23=o.m21*e.m13+o.m22*e.m23+o.m23*e.m33,this.m31=o.m31*e.m11+o.m32*e.m21+o.m33*e.m31,this.m32=o.m31*e.m12+o.m32*e.m22+o.m33*e.m32,this.m33=o.m31*e.m13+o.m32*e.m23+o.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,o=this.m13,r=this.m21,n=this.m22,a=this.m23,i=this.m31,l=this.m32,c=this.m33,u=c*n-a*l,d=-c*r+a*i,h=l*r-n*i;let p=t*u+e*d+o*h;return p?(p=1/p,this.m11=u*p,this.m12=(-c*e+o*l)*p,this.m13=(a*e-o*n)*p,this.m21=d*p,this.m22=(c*t-o*i)*p,this.m23=(-a*t+o*r)*p,this.m31=h*p,this.m32=(-l*t+e*i)*p,this.m33=(n*t-e*r)*p,this):null}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=Ge(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(t+=180),{x:this.m31,y:this.m32,degree:t,scaleX:Math.sqrt(this.m11*this.m11+this.m12*this.m12),scaleY:Math.sqrt(this.m21*this.m21+this.m22*this.m22),skewX:Ge(Math.atan2(-this.m21,this.m22)),skewY:Ge(Math.atan2(this.m12,this.m11))}}getGroupCoords(t){const e=this.value[0],o=this.value[1],r=this.value[2],n=this.value[3],a=this.value[4],i=this.value[5],l=t.value[0],c=t.value[1],u=t.value[2],d=t.value[3],h=t.value[4],p=t.value[5],f=l*d,b=c*u,w=(u*o-e*d)/(b-f),x=(l*o-e*c)/(f-b),v=(u*n-r*d)/(b-f),g=(l*n-r*c)/(f-b),m=(u*(i-p)+d*(h-a))/(b-f),_=(l*(i-p)+c*(h-a))/(f-b),k=[w,x,v,g,m,_];return new Je(k)}toString(t=6){return this.matrix3d.is2D()?`matrix(${this.value.map(e=>Te(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,o){return this.matrix3d.translate(t,e,o),this.matrix3d.toMatrix(this),this}translate3dTo(t,e,o){return this.translate3d(t-this.matrix3d.m41,e-this.matrix3d.m42,o-this.matrix3d.m43),this}rotate(t,e=0,o=0){const r=Bt(t),n=Math.cos(r),a=Math.sin(r);return this.translate(e,o),this.multiply([n,a,-a,n,0,0]),this.translate(-e,-o),this.toMatrix3D(),this}rotateTo(t,e=0,o=0){const{degree:r}=this.split();return this.rotate(t-r,e,o),this}rotateX(t){return this.matrix3d.rotateX(t),this.matrix3d.toMatrix(this),this}rotateXTo(t){const{degreeX:e}=this.matrix3d.split();return this.rotateX(t-e),this}rotateY(t){return this.matrix3d.rotateY(t),this.matrix3d.toMatrix(this),this}rotateYTo(t){const{degreeY:e}=this.matrix3d.split();return this.rotateY(t-e),this}rotateZ(t){return this.matrix3d.rotateZ(t),this.matrix3d.toMatrix(this),this}rotateZTo(t){const{degreeZ:e}=this.matrix3d.split();return this.rotateZ(t-e),this}rotate3d(t,e,o){return this.matrix3d.rotateX(t).rotateY(e).rotateZ(o),this.matrix3d.toMatrix(this),this}rotate3dTo(t,e,o){const{degreeX:r,degreeY:n,degreeZ:a}=this.matrix3d.split();return this.rotate3d(t-r,e-n,o-a),this}scale(t,e=t,o=0,r=0){return this.translate(o,r),this.multiply([t,0,0,e,0,0]),this.translate(-o,-r),this.toMatrix3D(),this}scaleTo(t,e=t,o=0,r=0){return this.scale(t/this.m11,e/this.m22,o,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.matrix3d.scale(1,1,t),this.matrix3d.toMatrix(this),this}scaleZTo(t){const{scalarZ:e}=this.matrix3d.split();return this.scaleZ(t/e),this}scale3d(t,e=t,o=t){return this.matrix3d.scale(t,e,o),this.matrix3d.toMatrix(this),this}scale3dTo(t,e=t,o=t){const{scalarX:r,scalarY:n,scalarZ:a}=this.matrix3d.split();return this.scale3d(t/r,e/n,o/a),this}skew(t,e=t){return this.multiply([Math.cos(Bt(e)),Math.sin(Bt(e)),-Math.sin(Bt(t)),Math.cos(Bt(t)),0,0]),this.toMatrix3D(),this}skewTo(t,e=t){const{skewX:o,skewY:r}=this.split();return this.skew(t-o,e-r)}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,o){return this}skew3dTo(t,e,o){return this}perspective(t){return this.matrix3d.perspective(t),this.matrix3d.toMatrix(this),this}}class os{value;is3dSpecial=!1;constructor(t=Od){this.value=Array.from(t)}static fromString(t){const e=new os,o=ku("number",t);return o.length===16&&o.forEach((r,n)=>{r.fullMatch&&(e.value[n]=parseFloat(r.fullMatch))}),e}get m11(){return this.value[0]}get m12(){return this.value[1]}get m13(){return this.value[2]}get m14(){return this.value[3]}get m21(){return this.value[4]}get m22(){return this.value[5]}get m23(){return this.value[6]}get m24(){return this.value[7]}get m31(){return this.value[8]}get m32(){return this.value[9]}get m33(){return this.value[10]}get m34(){return this.value[11]}get m41(){return this.value[12]}get m42(){return this.value[13]}get m43(){return this.value[14]}get m44(){return this.value[15]}set m11(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(Od),this}get 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(){return new os([...this.value])}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))}transformPoint(t){const e=t.z||1,o=t.w||1;return{x:t.x*this.m11+t.y*this.m21+e*this.m31+o*this.m41,y:t.x*this.m12+t.y*this.m22+e*this.m32+o*this.m42,z:t.x*this.m13+t.y*this.m23+e*this.m33+o*this.m43,w:t.x*this.m14+t.y*this.m24+e*this.m34+o*this.m44}}toMatrix(t){const{scalarX:e,scalarY:o,skewX:r,skewY:n,x:a,y:i}=this.split(),l=[e,n,r,o,a,i];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=>Te(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),o=Math.sqrt(this.m31*this.m31+this.m32*this.m32+this.m33*this.m33),r=Ge(le(Math.asin(-this.m13),-1,1));let n=Ge(Math.atan2(this.m23,this.m33));Math.cos(Bt(r))===0&&(n=Ge(Math.atan2(-this.m31,this.m22)));let a=Ge(Math.atan2(this.m12,this.m11));return this.m11<0&&this.m22>=0&&(a+=180),{x:this.m41,y:this.m42,z:this.m43,scalarX:t,scalarY:e,scalarZ:o,degreeX:n,degreeY:r,degreeZ:a,skewX:Ge(this.m14),skewY:Ge(this.m24),skewZ:Ge(this.m34),skewW:this.m44,perspective:this.m34?-(1/this.m34):0}}inverse(){const t=[],e=this.m11,o=this.m12,r=this.m13,n=this.m14,a=this.m21,i=this.m22,l=this.m23,c=this.m24,u=this.m31,d=this.m32,h=this.m33,p=this.m34,f=this.m41,b=this.m42,w=this.m43,x=this.m44;t[0]=l*p*b-c*h*b+c*d*w-i*p*w-l*d*x+i*h*x,t[1]=n*h*b-r*p*b-n*d*w+o*p*w+r*d*x-o*h*x,t[2]=r*c*b-n*l*b+n*i*w-o*c*w-r*i*x+o*l*x,t[3]=n*l*d-r*c*d-n*i*h+o*c*h+r*i*p-o*l*p;const v=e*t[0]+a*t[1]+u*t[2]+f*t[3];if(v==0)return console.warn("Can't invert matrix, determinant is 0");t[4]=c*h*f-l*p*f-c*u*w+a*p*w+l*u*x-a*h*x,t[5]=r*p*f-n*h*f+n*u*w-e*p*w-r*u*x+e*h*x,t[6]=n*l*f-r*c*f-n*a*w+e*c*w+r*a*x-e*l*x,t[7]=r*c*u-n*l*u+n*a*h-e*c*h-r*a*p+e*l*p,t[8]=i*p*f-c*d*f+c*u*b-a*p*b-i*u*x+a*d*x,t[9]=n*d*f-o*p*f-n*u*b+e*p*b+o*u*x-e*d*x,t[10]=o*c*f-n*i*f+n*a*b-e*c*b-o*a*x+e*i*x,t[11]=n*i*u-o*c*u-n*a*d+e*c*d+o*a*p-e*i*p,t[12]=l*d*f-i*h*f-l*u*b+a*h*b+i*u*w-a*d*w,t[13]=o*h*f-r*d*f+r*u*b-e*h*b-o*u*w+e*d*w,t[14]=r*i*f-o*l*f-r*a*b+e*l*b+o*a*w-e*i*w,t[15]=o*l*u-r*i*u+r*a*d-e*l*d-o*a*h+e*i*h,this.value=t,this.scalar(1/v)}multiply(t){const e=this.clone();return this.m11=t.m11*e.m11+t.m12*e.m21+t.m13*e.m31+t.m14*e.m41,this.m12=t.m11*e.m12+t.m12*e.m22+t.m13*e.m32+t.m14*e.m42,this.m13=t.m11*e.m13+t.m12*e.m23+t.m13*e.m33+t.m14*e.m43,this.m14=t.m11*e.m14+t.m12*e.m24+t.m13*e.m34+t.m14*e.m44,this.m21=t.m21*e.m11+t.m22*e.m21+t.m23*e.m31+t.m24*e.m41,this.m22=t.m21*e.m12+t.m22*e.m22+t.m23*e.m32+t.m24*e.m42,this.m23=t.m21*e.m13+t.m22*e.m23+t.m23*e.m33+t.m24*e.m43,this.m24=t.m21*e.m14+t.m22*e.m24+t.m23*e.m34+t.m24*e.m44,this.m31=t.m31*e.m11+t.m32*e.m21+t.m33*e.m31+t.m34*e.m41,this.m32=t.m31*e.m12+t.m32*e.m22+t.m33*e.m32+t.m34*e.m42,this.m33=t.m31*e.m13+t.m32*e.m23+t.m33*e.m33+t.m34*e.m43,this.m34=t.m31*e.m14+t.m32*e.m24+t.m33*e.m34+t.m34*e.m44,this.m41=t.m41*e.m11+t.m42*e.m21+t.m43*e.m31+t.m44*e.m41,this.m42=t.m41*e.m12+t.m42*e.m22+t.m43*e.m32+t.m44*e.m42,this.m43=t.m41*e.m13+t.m42*e.m23+t.m43*e.m33+t.m44*e.m43,this.m44=t.m41*e.m14+t.m42*e.m24+t.m43*e.m34+t.m44*e.m44,this}translate(t=0,e=0,o=0){return this.multiply(new os([1,0,0,0,0,1,0,0,0,0,1,0,t,e,o,1]))}scale(t=1,e=1,o=1){return this.multiply(new os([t,0,0,0,0,e,0,0,0,0,o,0,0,0,0,1]))}rotateX(t){const e=Bt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new os([1,0,0,0,0,o,r,0,0,-r,o,0,0,0,0,1]))}rotateY(t){const e=Bt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new os([o,0,-r,0,0,1,0,0,r,0,o,0,0,0,0,1]))}rotateZ(t){this.is3dSpecial=!0;const e=Bt(t),o=Math.cos(e),r=Math.sin(e);return this.multiply(new os([o,r,0,0,-r,o,0,0,0,0,1,0,0,0,0,1]))}skew(t=0,e=0,o=0){return this.multiply(new os([1,0,0,Bt(t),0,1,0,Bt(e),0,0,1,Bt(o),0,0,0,1]))}perspective(t){return this.multiply(new os([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,o=t.x*this.m12+t.y*this.m22+this.m42,r=t.x*this.m13+t.y*this.m23+this.m43,n=t.x*this.m14+t.y*this.m24+this.m44,a=e+this.m31,i=o+this.m32,l=r+this.m33,c=n+this.m34;n==0&&(n=1e-4),e/=n,o/=n,r/=n,c==0&&(c=1e-4),a/=c,i/=c,l/=c;const u=l-r;if(u==0)return{x:e,y:o,z:r,mass:n};const d=-r/u;return e+=d*(a-e),o+=d*(i-o),{x:e,y:o,z:r,mass:n}}project(t){const e=t.z;let o=t.x*this.m11+t.y*this.m21+e*this.m31+this.m41,r=t.x*this.m12+t.y*this.m22+e*this.m32+this.m42,n=t.x*this.m14+t.y*this.m24+e*this.m34+this.m44;return n==0&&(n=1e-4),o/=n,r/=n,n<0&&(o-=this.m41,r-=this.m42,o*=1/n,r*=1/n,o+=this.m41,r+=this.m42),{x:o,y:r,z:e,mass:n}}bounds(t,e,o,r){const n=new Nn({x:t,y:e}),a=new Nn({x:t+o,y:e}),i=new Nn({x:t+o,y:e+r}),l=new Nn({x:t,y:e+r});({x:n.x,y:n.y,z:n.z,mass:n.mass}=this.project(n)),{x:a.x,y:a.y,z:a.z,mass:a.mass}=this.project(a),{x:i.x,y:i.y,z:i.z,mass:i.mass}=this.project(i),{x:l.x,y:l.y,z:l.z,mass:l.mass}=this.project(l);const c=Math.min(n.x,a.x,i.x,l.x),u=Math.min(n.y,a.y,i.y,l.y),d=Math.max(n.x,a.x,i.x,l.x)-c,h=Math.max(n.y,a.y,i.y,l.y)-u;return{x:c,y:u,width:d,height:h}}}function Rd(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,o,r){r.indexOf(",")>=0?r=r.split(/\s*,\s*/):r=r.split(/\s+/);const n=[];for(let a=0,i=r.length;a<i;a++)r[a].trim()&&n.push(parseFloat(""+r[a]));switch(o.toLowerCase()){case"t":case"translate":t.translate(n[0],n[1]);break;case"translatex":t.translateX(n[0]);break;case"translatey":t.translateY(n[0]);break;case"translatez":t.translateZ(n[0]);break;case"translate3d":t.translate3d(n[0],n[1],n[2]);break;case"r":case"rotate":t.rotate(n[0],n[1]??0,n[2]??0);break;case"rotatex":t.rotateX(n[0]);break;case"rotatey":t.rotateY(n[0]);break;case"rotatez":t.rotateZ(n[0]);break;case"rotate3d":t.rotate3d(n[0],n[1],n[2]);break;case"s":case"scale":t.scale(n[0],n[1]??n[0]);break;case"scalex":t.scaleX(n[0]);break;case"scaley":t.scaleY(n[0]);break;case"scalez":t.scaleZ(n[0]);break;case"scale3d":t.scale3d(n[0],n[1],n[2]);break;case"skew":t.skew(n[0],n[1]??0);break;case"skewx":t.skewX(n[0]);break;case"skewy":t.skewY(n[0]);break;case"skewz":t.skewZ(n[0]);break;case"skew3d":t.skew3d(n[0],n[1],n[2]);break;case"m":case"matrix":t.multiply([n[0],n[1],n[2],n[3],n[4],n[5]]),t.toMatrix3D();break;case"matrix3d":t.matrix3d.multiply(new os(n)),t.matrix3d.toMatrix(t);break}return""}),t}function ks(s,t,e){const o=new Je;return o.rotate(Ge(s)),o.transformPoint({x:t,y:e})}function Sr(s,t,e){const o=xd(s);return o.props.style=o.props.style||{},t?o.props.style[t]||o.props.style[Tu(t)]||o.props.style[ls(t)]||"":o.props.style}function Id(s,t,e){wd(s,o=>{o.props.style=o.props.style||{},typeof t=="string"&&e?o.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(r=>{o.props.style[r]=t[r]})},!0)}function Fd(s){const t=[];if(getComputedStyle){const e=getComputedStyle(s);for(let o=0,r=e.length;o<r;o++)t.push(e[o]+":"+e.getPropertyValue(e[o]))}else{const e=s.currentStyle;for(const o in e)t.push(o+":"+e[o])}return t.push(...(s.style.cssText||"").split(";")),Object.fromEntries(t.filter(e=>!!e).map(e=>e.split(":").map((o,r)=>r==0?Tu(o).trim():o.trim())))}function Ai(s,t,e){typeof t=="string"&&e?s.style.setProperty(ls(t),e.replace(/!important/i,""),String(e).toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(o=>{Ai(s,o,t[o])})}function Dd(s,t){typeof t=="string"?s.style.removeProperty(ls(t)):Object.keys(t).forEach(e=>{Dd(s,e)})}function cs(s,t){let e;if(typeof t=="string"){const r=document.querySelector(t)?.shadowRoot;r?e=r:e=document.querySelector(t)}else e=t||document.getElementsByTagName("head")[0];const o=document.createElement("style");if(o.innerHTML=s,e)return e.appendChild(o),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(o)};{const r=document.styleSheets[0].insertRule(s);return()=>{document.styleSheets[0].deleteRule(r)}}}function by(s,t,e={}){Object.prototype.hasOwnProperty.call(e,"transform")||Object.assign(e,{transform:Sr(s,"transform")||""});const o=Rd(e.transform),r={};for(const n in t){const a=t[n];switch(n){case"transform":break;case"translate":o.translate(a[0]||0,a[1]||0);break;case"translateTo":o.translateTo(a[0]||0,a[1]||0);break;case"translateX":o.translateX(a||0);break;case"translateXTo":o.translateXTo(a||0);break;case"translateY":o.translateY(a||0);break;case"translateYTo":o.translateYTo(a||0);break;case"translateZ":o.translateZ(a||0);break;case"translateZTo":o.translateZTo(a||0);break;case"translate3d":o.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":o.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?o.rotate(a||0):o.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?o.rotateTo(a||0):o.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":o.rotateX(a||0);break;case"rotateXTo":o.rotateXTo(a||0);break;case"rotateY":o.rotateY(a||0);break;case"rotateYTo":o.rotateYTo(a||0);break;case"rotateZ":o.rotateZ(a||0);break;case"rotateZTo":o.rotateZTo(a||0);break;case"rotate3d":o.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":o.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?o.scale(a||1):o.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?o.scaleTo(a||1):o.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":o.scaleX(a||1);break;case"scaleXTo":o.scaleXTo(a||1);break;case"scaleY":o.scaleY(a||1);break;case"scaleYTo":o.scaleYTo(a||1);break;case"scaleZ":o.scaleZ(a||1);break;case"scaleZTo":o.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?o.scale3d(a||1):o.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?o.scale3dTo(a||1):o.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?o.skew(a||0):o.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?o.skewTo(a||0):o.skewTo(a[0]||0,a[1]||0);break;case"skewX":o.skewX(a||0);break;case"skewXTo":o.skewXTo(a||0);break;case"skewY":o.skewY(a||0);break;case"skewYTo":o.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":o.perspective(a||0);break;default:Object.prototype.hasOwnProperty.call(e,n)||(e[n]=Sr(s,n)),Object.assign(r,{[n]:`${a}`});break}}return Object.assign(r,{transform:o.toString()}),r}Hg()&&jg(Ug(),"11.2")<0?cs(`
|
|
38
|
+
:root {
|
|
39
|
+
/* iOS < 11.2 */
|
|
40
|
+
--sat: constant(safe-area-inset-top);
|
|
41
|
+
--sar: constant(safe-area-inset-right);
|
|
42
|
+
--sab: constant(safe-area-inset-bottom);
|
|
43
|
+
--sal: constant(safe-area-inset-left);
|
|
44
|
+
}
|
|
45
|
+
`):cs(`
|
|
46
|
+
:root {
|
|
47
|
+
/* iOS > 11.2 */
|
|
48
|
+
--sat: env(safe-area-inset-top);
|
|
49
|
+
--sar: env(safe-area-inset-right);
|
|
50
|
+
--sab: env(safe-area-inset-bottom);
|
|
51
|
+
--sal: env(safe-area-inset-left);
|
|
52
|
+
}
|
|
53
|
+
`);const $d=_n("0px"),Ld=_n("0px"),Ad=_n("0px"),Nd=_n("0px");Xg.onload(()=>{const s=getComputedStyle(document.documentElement);$d.value=s.getPropertyValue("--sat"),Ld.value=s.getPropertyValue("--sar"),Ad.value=s.getPropertyValue("--sab"),Nd.value=s.getPropertyValue("--sal")});const _y={top:()=>$d.value,right:()=>Ld.value,bottom:()=>Ad.value,left:()=>Nd.value};function xy(){const s=On();return{destroy:ws(document,"scroll",t=>{s.emit("scroll",t)}),on:t=>(s.on("scroll",t),()=>{s.off("scroll",t)})}}function wy(s){const t=On(),e=new ResizeObserver(o=>{const r=o[0],{width:n,height:a}=r.contentRect;t.emit("resize",n,a)});return e.observe(s),{on:o=>(t.on("resize",o),()=>{t.off("resize",o)}),destroy:()=>{e.unobserve(s)}}}function Mn(s,t=.5,e){const o=On();let r;const n=new IntersectionObserver((a,i)=>{let l=a[0];if(a.length>1){const u=a.find(d=>d.isIntersecting);u&&(l=u)}const c=l.isIntersecting&&l.intersectionRatio>=t;r!==c&&(c?o.emit("show"):o.emit("hide"),r=c)},{threshold:t,root:e});return n.observe(s),{onshow:a=>(o.on("show",a),()=>{o.off("show",a)}),onhide:a=>(o.on("hide",a),()=>{o.off("hide",a)}),destroy:()=>{n.unobserve(s)}}}function zn(s,t,e,o,r){const n=t/e;let a=0,i=0;switch(s){case"aspectFit":n>=1?(a=o,i=a/n,i>r&&(i=r,a=i*n)):(i=r,a=i*n,a>o&&(a=o,i=a/n));break;case"aspectFill":n>=1?(i=r,a=i*n):(a=o,i=a/n);break;case"widthFix":a=o,i=a/n;break;case"heightFix":i=r,a=i*n;break;case"scaleToFill":default:a=o,i=r;break}return{width:a,height:i}}function ky(s){const t=document.createElement("canvas"),e=t.getContext("2d");return t.width=s.width,t.height=s.height,e.drawImage(s,0,0,t.width,t.height),e.getImageData(0,0,t.width,t.height)}class Cs extends re{shapesCountChange=!1;constructor(t){super(t)}shapeInit(){}frameStart(t){return this.shapesCountChange&&(this.shapesCountChange=!1,this.shapes.forEach(e=>{e.parent=this,e.initPathD()}),this.pathd=this.initPathD(),this.shapes.forEach(e=>{!e.forceCXY&&!e.independentTransformInGroup&&(e.cX=this.cX-e.diffXInGroup,e.cY=this.cY-e.diffYInGroup)})),super.frameStart(t)}frameUpdate(t,e){this.shapes.forEach(o=>{!o.independentTransformInGroup&&!o.isDragging&&(o.x=this.x+o.diffXInGroup,o.y=this.y+o.diffYInGroup,o.degree=this.degree+o.diffDegreeInGroup,o.scalarX=this.scalarX*o.diffScalarXInGroup,o.scalarY=this.scalarY*o.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(o=>o.id==e.id)==-1&&(e.on("draging",(o,r)=>{this.enableDrag&&(this.x+=o,this.y+=r,this.emit("draging",o,r,e))}),this.shapes.push(e),this.shapesCountChange=!0)})}getBoundingClientRect(){const t=[],e=[];this.shapes.forEach(l=>{const c=l.getBoundingClientRect();c&&(t.push(c.x,c.x+c.width),e.push(c.y,c.y+c.height))});const o=this.pathd?.getBoundingClientRect();if(o&&(o.width||o.height)&&(t.push(o.x,o.x+o.width),e.push(o.y,o.y+o.height)),t.length==0||e.length==0)return null;const r=Math.min.apply(0,t),n=Math.min.apply(0,e),a=Math.max.apply(0,t),i=Math.max.apply(0,e);return{x:r,y:n,width:a-r,height:i-n}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(o=>{o.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(o=>{o.setAttr(t,e)}))}sortPathD(){this.shapes=this.shapes.map(t=>{const e=t.initPathD();return{shape:t,perimeter:e.perimeterPoints()}}).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.shape)}expendFill(t){const e=t.shapes.length,o=this.shapes.length;if(e<o)return t.expendFill(this);for(let r=o;r<e;r++){const a=t.shapes[r].initPathD().polymorphPoints,i=a[0],l=a[1],c=[["M",i,l]];for(let u=2;u+5<a.length;u+=6)c.push(["C",i,l,i,l,i,l]);this.addShape(new re({attrs:{...t.shapes[r].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const o=this.shapes.length-1;this.shapes.forEach((i,l)=>{i.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==o&&e?.onGroupComplete?.()}})});break;case"parallel":default:const r=new Fe({frameDuration:t}),n={},a={};this.shapes.forEach((i,l)=>{const c=Te(i.getTotalLength(),0);n[`offset_${l}`]=c,a[`offset_${l}`]=0,i.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),r.addTween(n,a,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(i,l)=>{for(let c in i){const u=xs(c).number;this.shapes[u].setAttr("strokeDashoffset",""+Te(i[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),r.play();break}}}const Mo=Cs,Cy=getComputedStyle(document.documentElement);function Nt(s){return Cy.getPropertyValue(s)}const vt={colorPrimary:Nt("--color-primary")||"#5A82F0",colorRed:Nt("--color-red")||"#ff5050",colorOrange:Nt("--color-orange")||"#fa8c00",colorYellow:Nt("--color-yellow")||"#fadc32",colorGreen:Nt("--color-green")||"#00c878",colorBlue:Nt("--color-blue")||"#00b4fa",colorPurple:Nt("--color-purple")||"#6464fa",colorBlack:Nt("--color-black")||"#001428",colorGray00:Nt("--color-gray-00")||"#000000",colorGray33:Nt("--color-gray-33")||"#333333",colorGray66:Nt("--color-gray-66")||"#666666",colorGray99:Nt("--color-gray-99")||"#999999",colorGrayCC:Nt("--color-gray-cc")||"#cccccc",colorGrayDD:Nt("--color-gray-dd")||"#dddddd",colorGrayE6:Nt("--color-gray-e6")||"#e6e6e6",colorGrayEE:Nt("--color-gray-ee")||"#eeeeee",colorGrayEF:Nt("--color-gray-ef")||"#efefef",colorGrayF5:Nt("--color-gray-f5")||"#f5f5f5",colorGrayFF:Nt("--color-gray-ff")||"#ffffff",fontLineHeight:Nt("--font-line-height")||"1.4",fontSize32:Nt("--font-size-32")||"32px",fontSize24:Nt("--font-size-24")||"24px",fontSize22:Nt("--font-size-22")||"22px",fontSize20:Nt("--font-size-20")||"20px",fontSize18:Nt("--font-size-18")||"18px",fontSize16:Nt("--font-size-16")||"16px",fontSize14:Nt("--font-size-14")||"14px",fontSize12:Nt("--font-size-12")||"12px",fontSize10:Nt("--font-size-10")||"10px",d4:Nt("--distance-4")||"4px",d8:Nt("--distance-8")||"8px",d12:Nt("--distance-12")||"12px",d16:Nt("--distance-16")||"16px",d20:Nt("--distance-20")||"20px",d32:Nt("--distance-32")||"32px",d40:Nt("--distance-40")||"40px",d44:Nt("--distance-44")||"44px"};class Ft{__color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),typeof e=="number"&&this.setAlpha(e)}get color(){return this.__color}set color(t){this.__color=Ni(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=le(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=le(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=le(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=le(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,e,o){return this.r=t,this.g=e,this.b=o,this}setRGBA(t,e,o,r){return this.r=t,this.g=e,this.b=o,this.a=r,this}get hex(){return(this.r<<16)+(this.g<<8)+this.b}toString(){if(this.a===1){const t="000000"+this.hex.toString(16);return"#"+t.slice(t.length-6)}else return`rgba(${this.r},${this.g},${this.b},${Te(this.a,6)})`}clone(){return new Ft(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",o="#ffffff"){if(t)return new Ft(this.r*.299+this.g*.587+this.b*.114>186?e:o);{const r=this.clone();return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,r}}lighten(t){t=le(Math.abs(t),0,1);let{r:e,g:o,b:r}=this.color;return e+=(255-e)*t,o+=(255-o)*t,r+=(255-r)*t,new Ft().setRGBA(e,o,r,this.color.a)}darken(t){t=le(Math.abs(t),0,1);let{r:e,g:o,b:r}=this.color;return e=e*(1-t),o=o*(1-t),r=r*(1-t),new Ft().setRGBA(e,o,r,this.color.a)}static gradient(t,e,o){try{const r=Ni(t),n=Ni(e);return new Ft().setRGB((n.r-r.r)*o+r.r,(n.g-r.g)*o+r.g,(n.b-r.b)*o+r.b)}catch{return new Ft(e)}}static random(){return new Ft(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:o,a:r}=this.color,n=Math.max(t,e,o),a=Math.min(t,e,o),i=n-a;let l;return t===n?l=(e-o)/i:e===n?l=2+(o-t)/i:l=4+(t-e)/i,l/=6,l<0&&(l+=1),{h:i==0?0:l*360,s:n===0?0:i/n,v:n/255,a:r}}set h(t){const e=this.hsv;e.h=le(t,0,360),this.setColor(e)}get h(){return this.hsv.h}set s(t){const e=this.hsv;e.s=le(t,0,1),this.setColor(e)}get s(){return this.hsv.s}set v(t){const e=this.hsv;e.v=le(t,0,1),this.setColor(e)}get v(){return this.hsv.v}}function ge(s,t){return new Ft(s,t)}function Ni(s){const t=Object.prototype.hasOwnProperty.call(s,"a")?le(s.a,0,1):1;if(Object.prototype.hasOwnProperty.call(s,"r")&&Object.prototype.hasOwnProperty.call(s,"g")&&Object.prototype.hasOwnProperty.call(s,"b"))return s.r=le(Math.round(s.r),0,255),s.g=le(Math.round(s.g),0,255),s.b=le(Math.round(s.b),0,255),s.a=t,s;if(Object.prototype.hasOwnProperty.call(s,"h")&&Object.prototype.hasOwnProperty.call(s,"s")&&Object.prototype.hasOwnProperty.call(s,"v")){const o=le(s.h,0,360),r=le(s.s,0,1),n=le(s.v,0,1),a=Math.floor(o/60)%6,i=o/60-Math.floor(o/60),l=n*(1-r),c=n*(1-i*r),u=n*(1-(1-i)*r),d=[[n,u,l],[c,n,l],[l,n,u],[l,c,n],[u,l,n],[n,l,c]][a];return{r:Math.round(d[0]*255),g:Math.round(d[1]*255),b:Math.round(d[2]*255),a:t}}const e={r:0,g:0,b:0,a:t};if(typeof s=="number")s<Math.pow(2,24)?(e.r=s>>16&255,e.g=s>>8&255,e.b=s&255):(e.r=s>>24&255,e.g=s>>16&255,e.b=s>>8&255,e.a=(s&255)/255);else if(typeof s=="string"){const o=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);if(o)e.r=parseInt(o[1]),e.g=parseInt(o[2]),e.b=parseInt(o[3]),o[4]&&(e.a=parseFloat(o[4]));else{let r=s.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);r?(e.r=parseInt(`${r[1]}${r[1]}`,16),e.g=parseInt(`${r[2]}${r[2]}`,16),e.b=parseInt(`${r[3]}${r[3]}`,16)):(r=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16)):(r=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),r?(e.r=parseInt(r[1],16),e.g=parseInt(r[2],16),e.b=parseInt(r[3],16),e.a=parseInt(r[4],16)/255):s==="none"&&(e.a=0)))}}else throw new Error("parseColor 不支持的颜色解析:"+s);return e.r=le(e.r,0,255),e.g=le(e.g,0,255),e.b=le(e.b,0,255),e.a=le(e.a,0,1),e}const Ty=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],to={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};to.buttonColor=new Ft(to.saveRowColor).darken(.1).toString(),to.borderColor=new Ft(to.backgroundColor).lighten(.07).toString(),to.inputColor=new Ft(to.backgroundColor).lighten(.085).toString();class we extends re{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,o=this.toY-this.y;return new Proxy(this,{set(r,n,a,i){switch(n){case"x":r.toX=a+e;break;case"y":r.toY=a+o;break;case"toX":e=a-r.x;break;case"toY":o=a-r.y;break}return Reflect.set(r,n,a,i)}})}toSVGPathData(){return[["m",0,0],["l",this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.lineTo(this.toX-this.x,this.toY-this.y)}intersection(t){const e=new Td({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),o=new Td({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(o)}}class Vn extends re{cx;cy;toX;toY;isLineThrough;constructor(t){super(t),this.cx=t?.cx||0,this.cy=t?.cy||0,this.toX=t?.toX||0,this.toY=t?.toY||0,this.isLineThrough=typeof t?.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["m",0,0],["q",t-this.x,e-this.y,this.toX-this.x,this.toY-this.y]]}else return[["m",0,0],["q",this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){if(t.beginPath(),t.moveTo(0,0),this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,o=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,o-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}var Md={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
38
54
|
* http://hammerjs.github.io/
|
|
39
55
|
*
|
|
40
56
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
41
|
-
* Licensed under the MIT license */(function(
|
|
57
|
+
* Licensed under the MIT license */(function(s){(function(t,e,o,r){var n=["","webkit","Moz","MS","ms","o"],a=e.createElement("div"),i="function",l=Math.round,c=Math.abs,u=Date.now;function d(y,C,O){return setTimeout(g(y,O),C)}function h(y,C,O){return Array.isArray(y)?(p(y,O[C],O),!0):!1}function p(y,C,O){var z;if(y)if(y.forEach)y.forEach(C,O);else if(y.length!==r)for(z=0;z<y.length;)C.call(O,y[z],z,y),z++;else for(z in y)y.hasOwnProperty(z)&&C.call(O,y[z],z,y)}function f(y,C,O){var z="DEPRECATED METHOD: "+C+`
|
|
42
58
|
`+O+` AT
|
|
43
|
-
`;return function(){var st=new Error("get-stack-trace"),mt=st&&st.stack?st.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",zt=t.console&&(t.console.warn||t.console.log);return zt&&zt.call(t.console,z,mt),y.apply(this,arguments)}}var w;typeof Object.assign!="function"?w=function(k){if(k===r||k===null)throw new TypeError("Cannot convert undefined or null to object");for(var O=Object(k),z=1;z<arguments.length;z++){var st=arguments[z];if(st!==r&&st!==null)for(var mt in st)st.hasOwnProperty(mt)&&(O[mt]=st[mt])}return O}:w=Object.assign;var _=h(function(k,O,z){for(var st=Object.keys(O),mt=0;mt<st.length;)(!z||z&&k[st[mt]]===r)&&(k[st[mt]]=O[st[mt]]),mt++;return k},"extend","Use `assign`."),x=h(function(k,O){return _(k,O,!0)},"merge","Use `assign`.");function v(y,k,O){var z=k.prototype,st;st=y.prototype=Object.create(z),st.constructor=y,st._super=z,O&&w(st,O)}function g(y,k){return function(){return y.apply(k,arguments)}}function m(y,k){return typeof y==i?y.apply(k&&k[0]||r,k):y}function b(y,k){return y===r?k:y}function C(y,k,O){p($(k),function(z){y.addEventListener(z,O,!1)})}function U(y,k,O){p($(k),function(z){y.removeEventListener(z,O,!1)})}function K(y,k){for(;y;){if(y==k)return!0;y=y.parentNode}return!1}function I(y,k){return y.indexOf(k)>-1}function $(y){return y.trim().split(/\s+/g)}function N(y,k,O){if(y.indexOf&&!O)return y.indexOf(k);for(var z=0;z<y.length;){if(O&&y[z][O]==k||!O&&y[z]===k)return z;z++}return-1}function D(y){return Array.prototype.slice.call(y,0)}function A(y,k,O){for(var z=[],st=[],mt=0;mt<y.length;){var zt=k?y[mt][k]:y[mt];N(st,zt)<0&&z.push(y[mt]),st[mt]=zt,mt++}return O&&(k?z=z.sort(function(Oe,Ve){return Oe[k]>Ve[k]}):z=z.sort()),z}function X(y,k){for(var O,z,st=k[0].toUpperCase()+k.slice(1),mt=0;mt<n.length;){if(O=n[mt],z=O?O+st:k,z in y)return z;mt++}return r}var rt=1;function Q(){return rt++}function Z(y){var k=y.ownerDocument||y;return k.defaultView||k.parentWindow||t}var at=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in t,H=X(t,"PointerEvent")!==r,gt=G&&at.test(navigator.userAgent),ht="touch",B="pen",P="mouse",Yt="kinect",Mt=25,Et=1,te=2,Xt=4,j=8,Me=1,je=2,Fe=4,S=8,F=16,Y=je|Fe,J=S|F,W=Y|J,tt=["x","y"],lt=["clientX","clientY"];function et(y,k){var O=this;this.manager=y,this.callback=k,this.element=y.element,this.target=y.options.inputTarget,this.domHandler=function(z){m(y.options.enable,[y])&&O.handler(z)},this.init()}et.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(Z(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&U(this.element,this.evEl,this.domHandler),this.evTarget&&U(this.target,this.evTarget,this.domHandler),this.evWin&&U(Z(this.element),this.evWin,this.domHandler)}};function nt(y){var k,O=y.options.inputClass;return O?k=O:H?k=cl:gt?k=qn:G?k=ul:k=ze,new k(y,ot)}function ot(y,k,O){var z=O.pointers.length,st=O.changedPointers.length,mt=k&Et&&z-st===0,zt=k&(Xt|j)&&z-st===0;O.isFirst=!!mt,O.isFinal=!!zt,mt&&(y.session={}),O.eventType=k,Pt(y,O),y.emit("hammer.input",O),y.recognize(O),y.session.prevInput=O}function Pt(y,k){var O=y.session,z=k.pointers,st=z.length;O.firstInput||(O.firstInput=It(k)),st>1&&!O.firstMultiple?O.firstMultiple=It(k):st===1&&(O.firstMultiple=!1);var mt=O.firstInput,zt=O.firstMultiple,Se=zt?zt.center:mt.center,Oe=k.center=At(z);k.timeStamp=u(),k.deltaTime=k.timeStamp-mt.timeStamp,k.angle=ge(Se,Oe),k.distance=Te(Se,Oe),dt(O,k),k.offsetDirection=Ut(k.deltaX,k.deltaY);var Ve=Zt(k.deltaTime,k.deltaX,k.deltaY);k.overallVelocityX=Ve.x,k.overallVelocityY=Ve.y,k.overallVelocity=c(Ve.x)>c(Ve.y)?Ve.x:Ve.y,k.scale=zt?Ae(zt.pointers,z):1,k.rotation=zt?Je(zt.pointers,z):0,k.maxPointers=O.prevInput?k.pointers.length>O.prevInput.maxPointers?k.pointers.length:O.prevInput.maxPointers:k.pointers.length,_t(O,k);var Ts=y.element;K(k.srcEvent.target,Ts)&&(Ts=k.srcEvent.target),k.target=Ts}function dt(y,k){var O=k.center,z=y.offsetDelta||{},st=y.prevDelta||{},mt=y.prevInput||{};(k.eventType===Et||mt.eventType===Xt)&&(st=y.prevDelta={x:mt.deltaX||0,y:mt.deltaY||0},z=y.offsetDelta={x:O.x,y:O.y}),k.deltaX=st.x+(O.x-z.x),k.deltaY=st.y+(O.y-z.y)}function _t(y,k){var O=y.lastInterval||k,z=k.timeStamp-O.timeStamp,st,mt,zt,Se;if(k.eventType!=j&&(z>Mt||O.velocity===r)){var Oe=k.deltaX-O.deltaX,Ve=k.deltaY-O.deltaY,Ts=Zt(z,Oe,Ve);mt=Ts.x,zt=Ts.y,st=c(Ts.x)>c(Ts.y)?Ts.x:Ts.y,Se=Ut(Oe,Ve),y.lastInterval=k}else st=O.velocity,mt=O.velocityX,zt=O.velocityY,Se=O.direction;k.velocity=st,k.velocityX=mt,k.velocityY=zt,k.direction=Se}function It(y){for(var k=[],O=0;O<y.pointers.length;)k[O]={clientX:l(y.pointers[O].clientX),clientY:l(y.pointers[O].clientY)},O++;return{timeStamp:u(),pointers:k,center:At(k),deltaX:y.deltaX,deltaY:y.deltaY}}function At(y){var k=y.length;if(k===1)return{x:l(y[0].clientX),y:l(y[0].clientY)};for(var O=0,z=0,st=0;st<k;)O+=y[st].clientX,z+=y[st].clientY,st++;return{x:l(O/k),y:l(z/k)}}function Zt(y,k,O){return{x:k/y||0,y:O/y||0}}function Ut(y,k){return y===k?Me:c(y)>=c(k)?y<0?je:Fe:k<0?S:F}function Te(y,k,O){O||(O=tt);var z=k[O[0]]-y[O[0]],st=k[O[1]]-y[O[1]];return Math.sqrt(z*z+st*st)}function ge(y,k,O){O||(O=tt);var z=k[O[0]]-y[O[0]],st=k[O[1]]-y[O[1]];return Math.atan2(st,z)*180/Math.PI}function Je(y,k){return ge(k[1],k[0],lt)+ge(y[1],y[0],lt)}function Ae(y,k){return Te(k[0],k[1],lt)/Te(y[0],y[1],lt)}var ko={mousedown:Et,mousemove:te,mouseup:Xt},Wn="mousedown",Pe="mousemove mouseup";function ze(){this.evEl=Wn,this.evWin=Pe,this.pressed=!1,et.apply(this,arguments)}v(ze,et,{handler:function(k){var O=ko[k.type];O&Et&&k.button===0&&(this.pressed=!0),O&te&&k.which!==1&&(O=Xt),this.pressed&&(O&Xt&&(this.pressed=!1),this.callback(this.manager,O,{pointers:[k],changedPointers:[k],pointerType:P,srcEvent:k}))}});var Zn={pointerdown:Et,pointermove:te,pointerup:Xt,pointercancel:j,pointerout:j},W_={2:ht,3:B,4:P,5:Yt},jd="pointerdown",Hd="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(jd="MSPointerDown",Hd="MSPointerMove MSPointerUp MSPointerCancel");function cl(){this.evEl=jd,this.evWin=Hd,et.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}v(cl,et,{handler:function(k){var O=this.store,z=!1,st=k.type.toLowerCase().replace("ms",""),mt=Zn[st],zt=W_[k.pointerType]||k.pointerType,Se=zt==ht,Oe=N(O,k.pointerId,"pointerId");mt&Et&&(k.button===0||Se)?Oe<0&&(O.push(k),Oe=O.length-1):mt&(Xt|j)&&(z=!0),!(Oe<0)&&(O[Oe]=k,this.callback(this.manager,mt,{pointers:O,changedPointers:[k],pointerType:zt,srcEvent:k}),z&&O.splice(Oe,1))}});var Z_={touchstart:Et,touchmove:te,touchend:Xt,touchcancel:j},q_="touchstart",Q_="touchstart touchmove touchend touchcancel";function Wd(){this.evTarget=q_,this.evWin=Q_,this.started=!1,et.apply(this,arguments)}v(Wd,et,{handler:function(k){var O=Z_[k.type];if(O===Et&&(this.started=!0),!!this.started){var z=K_.call(this,k,O);O&(Xt|j)&&z[0].length-z[1].length===0&&(this.started=!1),this.callback(this.manager,O,{pointers:z[0],changedPointers:z[1],pointerType:ht,srcEvent:k})}}});function K_(y,k){var O=D(y.touches),z=D(y.changedTouches);return k&(Xt|j)&&(O=A(O.concat(z),"identifier",!0)),[O,z]}var J_={touchstart:Et,touchmove:te,touchend:Xt,touchcancel:j},tx="touchstart touchmove touchend touchcancel";function qn(){this.evTarget=tx,this.targetIds={},et.apply(this,arguments)}v(qn,et,{handler:function(k){var O=J_[k.type],z=ex.call(this,k,O);z&&this.callback(this.manager,O,{pointers:z[0],changedPointers:z[1],pointerType:ht,srcEvent:k})}});function ex(y,k){var O=D(y.touches),z=this.targetIds;if(k&(Et|te)&&O.length===1)return z[O[0].identifier]=!0,[O,O];var st,mt,zt=D(y.changedTouches),Se=[],Oe=this.target;if(mt=O.filter(function(Ve){return K(Ve.target,Oe)}),k===Et)for(st=0;st<mt.length;)z[mt[st].identifier]=!0,st++;for(st=0;st<zt.length;)z[zt[st].identifier]&&Se.push(zt[st]),k&(Xt|j)&&delete z[zt[st].identifier],st++;if(Se.length)return[A(mt.concat(Se),"identifier",!0),Se]}var sx=2500,Zd=25;function ul(){et.apply(this,arguments);var y=g(this.handler,this);this.touch=new qn(this.manager,y),this.mouse=new ze(this.manager,y),this.primaryTouch=null,this.lastTouches=[]}v(ul,et,{handler:function(k,O,z){var st=z.pointerType==ht,mt=z.pointerType==P;if(!(mt&&z.sourceCapabilities&&z.sourceCapabilities.firesTouchEvents)){if(st)ox.call(this,O,z);else if(mt&&rx.call(this,z))return;this.callback(k,O,z)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function ox(y,k){y&Et?(this.primaryTouch=k.changedPointers[0].identifier,qd.call(this,k)):y&(Xt|j)&&qd.call(this,k)}function qd(y){var k=y.changedPointers[0];if(k.identifier===this.primaryTouch){var O={x:k.clientX,y:k.clientY};this.lastTouches.push(O);var z=this.lastTouches,st=function(){var mt=z.indexOf(O);mt>-1&&z.splice(mt,1)};setTimeout(st,sx)}}function rx(y){for(var k=y.srcEvent.clientX,O=y.srcEvent.clientY,z=0;z<this.lastTouches.length;z++){var st=this.lastTouches[z],mt=Math.abs(k-st.x),zt=Math.abs(O-st.y);if(mt<=Zd&&zt<=Zd)return!0}return!1}var Qd=X(a.style,"touchAction"),Kd=Qd!==r,Jd="compute",th="auto",fl="manipulation",Co="none",Er="pan-x",Pr="pan-y",Qn=ax();function dl(y,k){this.manager=y,this.set(k)}dl.prototype={set:function(y){y==Jd&&(y=this.compute()),Kd&&this.manager.element.style&&Qn[y]&&(this.manager.element.style[Qd]=y),this.actions=y.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var y=[];return p(this.manager.recognizers,function(k){m(k.options.enable,[k])&&(y=y.concat(k.getTouchAction()))}),nx(y.join(" "))},preventDefaults:function(y){var k=y.srcEvent,O=y.offsetDirection;if(this.manager.session.prevented){k.preventDefault();return}var z=this.actions,st=I(z,Co)&&!Qn[Co],mt=I(z,Pr)&&!Qn[Pr],zt=I(z,Er)&&!Qn[Er];if(st){var Se=y.pointers.length===1,Oe=y.distance<2,Ve=y.deltaTime<250;if(Se&&Oe&&Ve)return}if(!(zt&&mt)&&(st||mt&&O&Y||zt&&O&J))return this.preventSrc(k)},preventSrc:function(y){this.manager.session.prevented=!0,y.preventDefault()}};function nx(y){if(I(y,Co))return Co;var k=I(y,Er),O=I(y,Pr);return k&&O?Co:k||O?k?Er:Pr:I(y,fl)?fl:th}function ax(){if(!Kd)return!1;var y={},k=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(O){y[O]=k?t.CSS.supports("touch-action",O):!0}),y}var Kn=1,rs=2,Xo=4,eo=8,Vs=eo,Or=16,Cs=32;function Bs(y){this.options=w({},this.defaults,y||{}),this.id=Q(),this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=Kn,this.simultaneous={},this.requireFail=[]}Bs.prototype={defaults:{},set:function(y){return w(this.options,y),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(y){if(d(y,"recognizeWith",this))return this;var k=this.simultaneous;return y=Jn(y,this),k[y.id]||(k[y.id]=y,y.recognizeWith(this)),this},dropRecognizeWith:function(y){return d(y,"dropRecognizeWith",this)?this:(y=Jn(y,this),delete this.simultaneous[y.id],this)},requireFailure:function(y){if(d(y,"requireFailure",this))return this;var k=this.requireFail;return y=Jn(y,this),N(k,y)===-1&&(k.push(y),y.requireFailure(this)),this},dropRequireFailure:function(y){if(d(y,"dropRequireFailure",this))return this;y=Jn(y,this);var k=N(this.requireFail,y);return k>-1&&this.requireFail.splice(k,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(y){return!!this.simultaneous[y.id]},emit:function(y){var k=this,O=this.state;function z(st){k.manager.emit(st,y)}O<eo&&z(k.options.event+eh(O)),z(k.options.event),y.additionalEvent&&z(y.additionalEvent),O>=eo&&z(k.options.event+eh(O))},tryEmit:function(y){if(this.canEmit())return this.emit(y);this.state=Cs},canEmit:function(){for(var y=0;y<this.requireFail.length;){if(!(this.requireFail[y].state&(Cs|Kn)))return!1;y++}return!0},recognize:function(y){var k=w({},y);if(!m(this.options.enable,[this,k])){this.reset(),this.state=Cs;return}this.state&(Vs|Or|Cs)&&(this.state=Kn),this.state=this.process(k),this.state&(rs|Xo|eo|Or)&&this.tryEmit(k)},process:function(y){},getTouchAction:function(){},reset:function(){}};function eh(y){return y&Or?"cancel":y&eo?"end":y&Xo?"move":y&rs?"start":""}function sh(y){return y==F?"down":y==S?"up":y==je?"left":y==Fe?"right":""}function Jn(y,k){var O=k.manager;return O?O.get(y):y}function ls(){Bs.apply(this,arguments)}v(ls,Bs,{defaults:{pointers:1},attrTest:function(y){var k=this.options.pointers;return k===0||y.pointers.length===k},process:function(y){var k=this.state,O=y.eventType,z=k&(rs|Xo),st=this.attrTest(y);return z&&(O&j||!st)?k|Or:z||st?O&Xt?k|eo:k&rs?k|Xo:rs:Cs}});function ta(){ls.apply(this,arguments),this.pX=null,this.pY=null}v(ta,ls,{defaults:{event:"pan",threshold:10,pointers:1,direction:W},getTouchAction:function(){var y=this.options.direction,k=[];return y&Y&&k.push(Pr),y&J&&k.push(Er),k},directionTest:function(y){var k=this.options,O=!0,z=y.distance,st=y.direction,mt=y.deltaX,zt=y.deltaY;return st&k.direction||(k.direction&Y?(st=mt===0?Me:mt<0?je:Fe,O=mt!=this.pX,z=Math.abs(y.deltaX)):(st=zt===0?Me:zt<0?S:F,O=zt!=this.pY,z=Math.abs(y.deltaY))),y.direction=st,O&&z>k.threshold&&st&k.direction},attrTest:function(y){return ls.prototype.attrTest.call(this,y)&&(this.state&rs||!(this.state&rs)&&this.directionTest(y))},emit:function(y){this.pX=y.deltaX,this.pY=y.deltaY;var k=sh(y.direction);k&&(y.additionalEvent=this.options.event+k),this._super.emit.call(this,y)}});function hl(){ls.apply(this,arguments)}v(hl,ls,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Co]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.scale-1)>this.options.threshold||this.state&rs)},emit:function(y){if(y.scale!==1){var k=y.scale<1?"in":"out";y.additionalEvent=this.options.event+k}this._super.emit.call(this,y)}});function pl(){Bs.apply(this,arguments),this._timer=null,this._input=null}v(pl,Bs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[th]},process:function(y){var k=this.options,O=y.pointers.length===k.pointers,z=y.distance<k.threshold,st=y.deltaTime>k.time;if(this._input=y,!z||!O||y.eventType&(Xt|j)&&!st)this.reset();else if(y.eventType&Et)this.reset(),this._timer=f(function(){this.state=Vs,this.tryEmit()},k.time,this);else if(y.eventType&Xt)return Vs;return Cs},reset:function(){clearTimeout(this._timer)},emit:function(y){this.state===Vs&&(y&&y.eventType&Xt?this.manager.emit(this.options.event+"up",y):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function ml(){ls.apply(this,arguments)}v(ml,ls,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Co]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.rotation)>this.options.threshold||this.state&rs)}});function gl(){ls.apply(this,arguments)}v(gl,ls,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|J,pointers:1},getTouchAction:function(){return ta.prototype.getTouchAction.call(this)},attrTest:function(y){var k=this.options.direction,O;return k&(Y|J)?O=y.overallVelocity:k&Y?O=y.overallVelocityX:k&J&&(O=y.overallVelocityY),this._super.attrTest.call(this,y)&&k&y.offsetDirection&&y.distance>this.options.threshold&&y.maxPointers==this.options.pointers&&c(O)>this.options.velocity&&y.eventType&Xt},emit:function(y){var k=sh(y.offsetDirection);k&&this.manager.emit(this.options.event+k,y),this.manager.emit(this.options.event,y)}});function ea(){Bs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}v(ea,Bs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[fl]},process:function(y){var k=this.options,O=y.pointers.length===k.pointers,z=y.distance<k.threshold,st=y.deltaTime<k.time;if(this.reset(),y.eventType&Et&&this.count===0)return this.failTimeout();if(z&&st&&O){if(y.eventType!=Xt)return this.failTimeout();var mt=this.pTime?y.timeStamp-this.pTime<k.interval:!0,zt=!this.pCenter||Te(this.pCenter,y.center)<k.posThreshold;this.pTime=y.timeStamp,this.pCenter=y.center,!zt||!mt?this.count=1:this.count+=1,this._input=y;var Se=this.count%k.taps;if(Se===0)return this.hasRequireFailures()?(this._timer=f(function(){this.state=Vs,this.tryEmit()},k.interval,this),rs):Vs}return Cs},failTimeout:function(){return this._timer=f(function(){this.state=Cs},this.options.interval,this),Cs},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Vs&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Ys(y,k){return k=k||{},k.recognizers=b(k.recognizers,Ys.defaults.preset),new yl(y,k)}Ys.VERSION="2.0.7",Ys.defaults={domEvents:!1,touchAction:Jd,enable:!0,inputTarget:null,inputClass:null,preset:[[ml,{enable:!1}],[hl,{enable:!1},["rotate"]],[gl,{direction:Y}],[ta,{direction:Y},["swipe"]],[ea],[ea,{event:"doubletap",taps:2},["tap"]],[pl]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ix=1,oh=2;function yl(y,k){this.options=w({},Ys.defaults,k||{}),this.options.inputTarget=this.options.inputTarget||y,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=y,this.input=nt(this),this.touchAction=new dl(this,this.options.touchAction),rh(this,!0),p(this.options.recognizers,function(O){var z=this.add(new O[0](O[1]));O[2]&&z.recognizeWith(O[2]),O[3]&&z.requireFailure(O[3])},this)}yl.prototype={set:function(y){return w(this.options,y),y.touchAction&&this.touchAction.update(),y.inputTarget&&(this.input.destroy(),this.input.target=y.inputTarget,this.input.init()),this},stop:function(y){this.session.stopped=y?oh:ix},recognize:function(y){var k=this.session;if(!k.stopped){this.touchAction.preventDefaults(y);var O,z=this.recognizers,st=k.curRecognizer;(!st||st&&st.state&Vs)&&(st=k.curRecognizer=null);for(var mt=0;mt<z.length;)O=z[mt],k.stopped!==oh&&(!st||O==st||O.canRecognizeWith(st))?O.recognize(y):O.reset(),!st&&O.state&(rs|Xo|eo)&&(st=k.curRecognizer=O),mt++}},get:function(y){if(y instanceof Bs)return y;for(var k=this.recognizers,O=0;O<k.length;O++)if(k[O].options.event==y)return k[O];return null},add:function(y){if(d(y,"add",this))return this;var k=this.get(y.options.event);return k&&this.remove(k),this.recognizers.push(y),y.manager=this,this.touchAction.update(),y},remove:function(y){if(d(y,"remove",this))return this;if(y=this.get(y),y){var k=this.recognizers,O=N(k,y);O!==-1&&(k.splice(O,1),this.touchAction.update())}return this},on:function(y,k){if(y!==r&&k!==r){var O=this.handlers;return p($(y),function(z){O[z]=O[z]||[],O[z].push(k)}),this}},off:function(y,k){if(y!==r){var O=this.handlers;return p($(y),function(z){k?O[z]&&O[z].splice(N(O[z],k),1):delete O[z]}),this}},emit:function(y,k){this.options.domEvents&&lx(y,k);var O=this.handlers[y]&&this.handlers[y].slice();if(!(!O||!O.length)){k.type=y,k.preventDefault=function(){k.srcEvent.preventDefault()};for(var z=0;z<O.length;)O[z](k),z++}},destroy:function(){this.element&&rh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function rh(y,k){var O=y.element;if(O.style){var z;p(y.options.cssProps,function(st,mt){z=X(O.style,mt),k?(y.oldCssProps[z]=O.style[z],O.style[z]=st):O.style[z]=y.oldCssProps[z]||""}),k||(y.oldCssProps={})}}function lx(y,k){var O=e.createEvent("Event");O.initEvent(y,!0,!0),O.gesture=k,k.target.dispatchEvent(O)}w(Ys,{INPUT_START:Et,INPUT_MOVE:te,INPUT_END:Xt,INPUT_CANCEL:j,STATE_POSSIBLE:Kn,STATE_BEGAN:rs,STATE_CHANGED:Xo,STATE_ENDED:eo,STATE_RECOGNIZED:Vs,STATE_CANCELLED:Or,STATE_FAILED:Cs,DIRECTION_NONE:Me,DIRECTION_LEFT:je,DIRECTION_RIGHT:Fe,DIRECTION_UP:S,DIRECTION_DOWN:F,DIRECTION_HORIZONTAL:Y,DIRECTION_VERTICAL:J,DIRECTION_ALL:W,Manager:yl,Input:et,TouchAction:dl,TouchInput:qn,MouseInput:ze,PointerEventInput:cl,TouchMouseInput:ul,SingleTouchInput:Wd,Recognizer:Bs,AttrRecognizer:ls,Tap:ea,Pan:ta,Swipe:gl,Pinch:hl,Rotate:ml,Press:pl,on:C,off:U,each:p,merge:x,extend:_,assign:w,inherit:v,bindFn:g,prefixed:X});var cx=typeof t<"u"?t:typeof self<"u"?self:{};cx.Hammer=Ys,typeof r=="function"&&r.amd?r(function(){return Ys}):o.exports?o.exports=Ys:t[s]=Ys})(window,document,"Hammer")})(Tf);var iy=Tf.exports;const ly=Og(iy);function Di(){const o=document.documentElement;return{clientWidth:o.clientWidth,clientHeight:o.clientHeight,clientTop:o.clientTop,clientLeft:o.clientLeft,scrollWidth:o.scrollWidth,scrollHeight:o.scrollHeight,scrollTop:o.scrollTop,scrollLeft:o.scrollLeft,offsetWidth:o.offsetWidth,offsetHeight:o.offsetHeight,offsetTop:o.offsetTop,offsetLeft:o.offsetLeft,offsetParent:o.offsetParent}}function Mo(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function cy(o){const{top:t,left:e,width:s,height:r}=o.getBoundingClientRect(),{scrollLeft:n,scrollTop:a}=Di();return{x:e+n,y:t+a,width:s,height:r}}function uy(){const{clientHeight:o,scrollTop:t,scrollHeight:e}=Di(),s=e-o;return s<=0?0:t/s*100}function fy(o){if("center"in o)return o.center;if(typeof o.pageX=="number"&&typeof o.pageY=="number")return{x:o.pageX,y:o.pageY};const{scrollLeft:t,scrollTop:e}=Di();return{x:o.clientX+t,y:o.clientY+e}}function ws(o,t){if(!t&&"offsetX"in o)return{x:o.offsetX,y:o.offsetY};const e=fy(o),s=cy(t||o.target);return{x:e.x-s.x,y:e.y-s.y}}class os extends pr{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,e=!0,s){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new ly(this.container),e&&this.start(s)}emitDebounce=C0((t,...e)=>super.emit(t,...e),50);emit(t,...e){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...e);break;default:super.emit(t,...e);break}return this}start(t){this.registerMouseEventListeners(),this.registerTransitionEventListeners(),this.registerAnimationEventListeners(),this.registerResizeObserver(),t&&t.forEach(e=>{this.addRemoves(e())}),this.on("pointerMove",e=>{this.setMousePoint(ws(e,this.container))})}destroy(){this.removes.forEach(t=>t()),this.removes=[],this.removeAllListeners()}restart(){this.destroy(),this.start()}addRemoves(t){this.removes.push(t)}registerMouseEventListeners(){const t=j=>{this.emit("mouseDown",j)},e=j=>{this.emit("mouseUp",j)},s=j=>{this.emit("mouseMove",j)},r=j=>{this.emit("mouseOver",j)},n=j=>{this.emit("mouseOut",j)},a=j=>{this.emit("mouseEnter",j)},i=j=>{this.emit("mouseLeave",j)},l=j=>{this.emit("mouseClick",j)},c=j=>{this.emit("mouseDoubleClick",j)},u=j=>{this.emit("mouseWheel",j)},f=j=>{this.emit("mouseContextMenu",j)},d=j=>{this.emit("touchStart",j)},p=j=>{this.emit("touchEnd",j)},h=j=>{this.emit("touchCancel",j)},w=j=>{this.emit("touchMove",j)},_=j=>{this.emit("pointerDown",j)},x=j=>{this.emit("pointerUp",j)},v=j=>{this.emit("pointerCancel",j)},g=j=>{this.emit("pointerMove",j)},m=j=>{this.emit("pan",j)},b=j=>{this.emit("panStart",j)},C=j=>{this.emit("panMove",j)},U=j=>{this.emit("panEnd",j)},K=j=>{this.emit("panCancel",j)},I=j=>{this.emit("panLeft",j)},$=j=>{this.emit("panRight",j)},N=j=>{this.emit("panUp",j)},D=j=>{this.emit("panDown",j)},A=j=>{this.emit("pinch",j)},X=j=>{this.emit("press",j)},rt=j=>{this.emit("rotate",j)},Q=j=>{this.emit("swipe",j)},Z=j=>{this.emit("swipeLeft",j)},at=j=>{this.emit("swipeRight",j)},G=j=>{this.emit("swipeUp",j)},H=j=>{this.emit("swipeDown",j)},gt=j=>{this.emit("tap",j)},ht=j=>{!j.target||this.container==j.target||this.container.contains(j.target)||this.emit("tapOutSide",j)},B=j=>{this.emit("inputChange",j,this.container.files)},P=j=>{this.emit("dragstart",j)},Yt=j=>{j.dataTransfer&&(j.dataTransfer.dropEffect="copy"),this.emit("dragover",j)},Mt=j=>{this.emit("dragenter",j)},Et=j=>{this.emit("dragend",j)},te=j=>{j.dataTransfer,this.emit("drop",j,j.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",s,!1),this.container.addEventListener("mouseover",r,!1),this.container.addEventListener("mouseout",n,!1),this.container.addEventListener("mouseenter",a,!1),this.container.addEventListener("mouseleave",i,!1),this.container.addEventListener("click",l,!1),this.container.addEventListener("dblclick",c,!1),this.container.addEventListener("wheel",u,!1),this.container.addEventListener("contextmenu",f,!1),this.container.addEventListener("touchstart",d,!1),this.container.addEventListener("touchend",p,!1),this.container.addEventListener("touchcancel",h,!1),this.container.addEventListener("touchmove",w,!1),this.container.addEventListener("pointerdown",_,!1),this.container.addEventListener("pointerup",x,!1),this.container.addEventListener("pointercancel",v,!1),this.container.addEventListener("pointermove",g,!1),this.hammer.on("pan",m),this.hammer.on("panstart",b),this.hammer.on("panmove",C),this.hammer.on("panend",U),this.hammer.on("pancancel",K),this.hammer.on("panleft",I),this.hammer.on("panright",$),this.hammer.on("panup",N),this.hammer.on("pandown",D),this.hammer.on("pinch",A),this.hammer.on("press",X),this.hammer.on("rotate",rt),this.hammer.on("swipe",Q),this.hammer.on("swipeleft",Z),this.hammer.on("swiperight",at),this.hammer.on("swipeup",G),this.hammer.on("swipedown",H),this.hammer.on("tap",gt),document.addEventListener("pointerdown",ht,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",B,!1),this.container.addEventListener("dragstart",P,!1),this.container.addEventListener("dragover",Yt,!1),this.container.addEventListener("dragenter",Mt,!1),this.container.addEventListener("dragend",Et,!1),this.container.addEventListener("drop",te,!1);const Xt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",s,!1),this.container.removeEventListener("mouseover",r,!1),this.container.removeEventListener("mouseout",n,!1),this.container.removeEventListener("mouseenter",a,!1),this.container.removeEventListener("mouseleave",i,!1),this.container.removeEventListener("click",l,!1),this.container.removeEventListener("dblclick",c,!1),this.container.removeEventListener("wheel",u,!1),this.container.removeEventListener("contextmenu",f,!1),this.container.removeEventListener("touchstart",d,!1),this.container.removeEventListener("touchend",p,!1),this.container.removeEventListener("touchcancel",h,!1),this.container.removeEventListener("touchmove",w,!1),this.container.removeEventListener("pointerdown",_,!1),this.container.removeEventListener("pointerup",x,!1),this.container.removeEventListener("pointercancel",v),this.container.removeEventListener("pointermove",g,!1),this.hammer.off("pan",m),this.hammer.off("panstart",b),this.hammer.off("panmove",C),this.hammer.off("panend",U),this.hammer.off("pancancel",K),this.hammer.off("panleft",I),this.hammer.off("panright",$),this.hammer.off("panup",N),this.hammer.off("pandown",D),this.hammer.off("pinch",A),this.hammer.off("press",X),this.hammer.off("rotate",rt),this.hammer.off("swipe",Q),this.hammer.off("swipeleft",Z),this.hammer.off("swiperight",at),this.hammer.off("swipeup",G),this.hammer.off("swipedown",H),this.hammer.off("tap",gt),document.removeEventListener("pointerdown",ht,!1),document.removeEventListener("touchstart",ht,!1),document.removeEventListener("mousedown",ht,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",B,!1),this.container.removeEventListener("dragstart",P,!1),this.container.removeEventListener("dragover",Yt,!1),this.container.removeEventListener("dragenter",Mt,!1),this.container.removeEventListener("dragend",Et,!1),this.container.removeEventListener("drop",te,!1)};return this.addRemoves(Xt),Xt}registerTransitionEventListeners(){const t=r=>{this.emit("transitionstart",r)},e=r=>{this.emit("transitionend",r)};this.container.addEventListener("transitionstart",t,!1),this.container.addEventListener("transitionend",e,!1);const s=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",e,!1)};return this.addRemoves(s),s}registerAnimationEventListeners(){const t=r=>{this.emit("animationstart",r)},e=r=>{this.emit("animationend",r)};this.container.addEventListener("animationstart",t,!1),this.container.addEventListener("animationend",e,!1);const s=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",e,!1)};return this.addRemoves(s),s}registerResizeObserver(){const{on:t,destroy:e}=$g(this.container),s=t((n,a)=>{this.width=n,this.height=a,this.emit("resize",n,a)}),r=()=>{s(),e()};return this.addRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(s,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullDowning",r.dStartY)},end:(s,r)=>{r.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(s,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullUping",r.dStartY)},end:(s,r)=>{r.dStartY>=e&&this.emit("pullUp")}})}setMousePoint(t){this.mousePoint.x=t.x,this.mousePoint.y=t.y,this.mousePoint.dx=typeof t.dx=="number"?t.dx:0,this.mousePoint.dy=typeof t.dy=="number"?t.dy:0,this.mousePoint.dStartX=typeof t.dStartX=="number"?t.dStartX:0,this.mousePoint.dStartY=typeof t.dStartY=="number"?t.dStartY:0}captureDrag(t){return this.captureDragUsePointer(t)}captureDragUsePointer(t){let e,s;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",a),this.on("pointerUp",n),this.on("pointerCancel",n),s=ws(l,this.container);const c={...s};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",a),this.off("pointerUp",n),this.off("pointerCancel",n),s=ws(l,this.container);const c={...s,dStartX:e?s.x-e.x:0,dStartY:e?s.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...s};s=ws(l,this.container);const u={...s,dx:s.x-(c.x||0),dy:s.y-(c.y||0),dStartX:e?s.x-e.x:0,dStartY:e?s.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("pointerDown",r);const i=()=>{this.off("pointerDown",r)};return this.addRemoves(i),i}captureDragUseMouse(t){let e,s;const r=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",n,!1),s=ws(l,this.container);const c={...s};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",a,!1),document.removeEventListener("mouseup",n,!1),s=ws(l,this.container);const c={...s,dStartX:e?s.x-e.x:0,dStartY:e?s.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...s};s=ws(l,this.container);const u={...s,dx:s.x-(c.x||0),dy:s.y-(c.y||0),dStartX:e?s.x-e.x:0,dStartY:e?s.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("mouseDown",r);const i=()=>{this.off("mouseDown",r)};return this.addRemoves(i),i}captureDragUseTouch(t){let e,s;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",a),this.on("touchEnd",n),this.on("touchCancel",n);const c=l.changedTouches[0];s=ws(c,this.container);const u={...s};e=u,this.setMousePoint(u),t?.start?.(c,u)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",a),this.off("touchEnd",n),this.off("touchCancel",n);const c=l.changedTouches[0];s=ws(c,this.container);const u={...s,dStartX:e?s.x-e.x:0,dStartY:e?s.y-e.y:0};this.setMousePoint(u),t?.end?.(c,u),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c=l.changedTouches[0],u={...s};s=ws(c,this.container);const f={...s,dx:s.x-(u.x||0),dy:s.y-(u.y||0),dStartX:e?s.x-e.x:0,dStartY:e?s.y-e.y:0};this.setMousePoint(f),t?.move?.(c,f)};this.on("touchStart",r);const i=()=>{this.off("touchStart",r)};return this.addRemoves(i),i}}class $i{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"),s=document.createElement("video"),r=document.createElement("source"),n=new MediaSource;n.addEventListener("sourceopen",()=>t(!0)),r.src=URL.createObjectURL(n),r.media="(min-width:10px)",s.append(r),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(s),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(()=>{$i.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 dy extends pr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=i0(this.source);if(t===0){this.emit("finish");return}let e,s,r=_u(this.source,0);for(let n=1;n<t;n++)e=s,s=r,r=_u(this.source,n),this.raw+=s,s&&this.step(s,r,e);r&&this.step(r,void 0,s),this.emit("finish")}step(t,e,s){t==`
|
|
44
|
-
`&&this.emit("newline"),this.act(t,e,
|
|
45
|
-
`);s=~gt?G.length-gt:s+G.length}function n(){var G={line:e,column:s};return function(H){return H.position=new a(G),h(),H}}function a(G){this.start=G,this.end={line:e,column:s},this.source=t.source}a.prototype.content=o;var i=[];function l(G){var H=new Error(t.source+":"+e+":"+s+": "+G);if(H.reason=G,H.filename=t.source,H.line=e,H.column=s,H.source=o,t.silent)i.push(H);else throw H}function c(){var G=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:G,parsingErrors:i}}}function u(){return p(/^{\s*/)}function f(){return p(/^}/)}function d(){var G,H=[];for(h(),w(H);o.length&&o.charAt(0)!="}"&&(G=Z()||at());)G!==!1&&(H.push(G),w(H));return H}function p(G){var H=G.exec(o);if(H){var gt=H[0];return r(gt),o=o.slice(gt.length),H}}function h(){p(/^\s*/)}function w(G){var H;for(G=G||[];H=_();)H!==!1&&G.push(H);return G}function _(){var G=n();if(!(o.charAt(0)!="/"||o.charAt(1)!="*")){for(var H=2;o.charAt(H)!=""&&(o.charAt(H)!="*"||o.charAt(H+1)!="/");)++H;if(H+=2,o.charAt(H-1)==="")return l("End of comment missing");var gt=o.slice(2,H-2);return s+=2,r(gt),o=o.slice(H),s+=2,G({type:"comment",comment:gt})}}function x(){var G=p(/^([^{]+)/);if(G)return As(G[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(H){return H.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(H){return H.replace(/\u200C/g,",")})}function v(){var G=n(),H=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(H){if(H=As(H[0]),!p(/^:\s*/))return l("property missing ':'");var gt=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ht=G({type:"declaration",property:H.replace(Ef,""),value:gt?As(gt[0]).replace(Ef,""):""});return p(/^[;\s]*/),ht}}function g(){var G=[];if(!u())return l("missing '{'");w(G);for(var H;H=v();)H!==!1&&(G.push(H),w(G));return f()?G:l("missing '}'")}function m(){for(var G,H=[],gt=n();G=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)H.push(G[1]),p(/^,\s*/);if(H.length)return gt({type:"keyframe",values:H,declarations:g()})}function b(){var G=n(),H=p(/^@([-\w]+)?keyframes\s*/);if(H){var gt=H[1];if(H=p(/^([-\w]+)\s*/),!H)return l("@keyframes missing name");var ht=H[1];if(!u())return l("@keyframes missing '{'");for(var B,P=w();B=m();)P.push(B),P=P.concat(w());return f()?G({type:"keyframes",name:ht,vendor:gt,keyframes:P}):l("@keyframes missing '}'")}}function C(){var G=n(),H=p(/^@supports *([^{]+)/);if(H){var gt=As(H[1]);if(!u())return l("@supports missing '{'");var ht=w().concat(d());return f()?G({type:"supports",supports:gt,rules:ht}):l("@supports missing '}'")}}function U(){var G=n(),H=p(/^@host\s*/);if(H){if(!u())return l("@host missing '{'");var gt=w().concat(d());return f()?G({type:"host",rules:gt}):l("@host missing '}'")}}function K(){var G=n(),H=p(/^@media *([^{]+)/);if(H){var gt=As(H[1]);if(!u())return l("@media missing '{'");var ht=w().concat(d());return f()?G({type:"media",media:gt,rules:ht}):l("@media missing '}'")}}function I(){var G=n(),H=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(H)return G({type:"custom-media",name:As(H[1]),media:As(H[2])})}function $(){var G=n(),H=p(/^@page */);if(H){var gt=x()||[];if(!u())return l("@page missing '{'");for(var ht=w(),B;B=v();)ht.push(B),ht=ht.concat(w());return f()?G({type:"page",selectors:gt,declarations:ht}):l("@page missing '}'")}}function N(){var G=n(),H=p(/^@([-\w]+)?document *([^{]+)/);if(H){var gt=As(H[1]),ht=As(H[2]);if(!u())return l("@document missing '{'");var B=w().concat(d());return f()?G({type:"document",document:ht,vendor:gt,rules:B}):l("@document missing '}'")}}function D(){var G=n(),H=p(/^@font-face\s*/);if(H){if(!u())return l("@font-face missing '{'");for(var gt=w(),ht;ht=v();)gt.push(ht),gt=gt.concat(w());return f()?G({type:"font-face",declarations:gt}):l("@font-face missing '}'")}}var A=Q("import"),X=Q("charset"),rt=Q("namespace");function Q(G){var H=new RegExp("^@"+G+"\\s*([^;]+);");return function(){var gt=n(),ht=p(H);if(ht){var B={type:G};return B[G]=ht[1].trim(),gt(B)}}}function Z(){if(o[0]=="@")return b()||K()||I()||C()||A()||X()||rt()||N()||$()||U()||D()}function at(){var G=n(),H=x();return H?(w(),G({type:"rule",selectors:H,declarations:g()})):l("selector missing")}return Li(c())}function As(o){return o?o.replace(/^\s+|\s+$/g,""):""}function Li(o,t){var e=o&&typeof o.type=="string",s=e?o:t;for(var r in o){var n=o[r];Array.isArray(n)?n.forEach(function(a){Li(a,s)}):n&&typeof n=="object"&&Li(n,s)}return e&&Object.defineProperty(o,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),o}class py extends dy{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,s)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,s)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const s=hy(e);for(const r of s.stylesheet.rules)for(const n of r.declarations)for(const a of r.selectors)this.globalStyles[a]=this.globalStyles[a]||[],this.globalStyles[a].push(`${n.property}:${n.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,s)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let n="",a="";for(const i in this.groups[r])i=="transform"?n=this.groups[r].transform:i=="class"&&this.globalStyles["."+this.groups[r][i]]?a=this.globalStyles["."+this.groups[r][i]].join(";")+";"+a:i=="id"&&this.globalStyles["#"+this.groups[r][i]]?a=this.globalStyles["#"+this.groups[r][i]].join(";")+";"+a:typeof this.currentItem[i]>"u"&&(this.currentItem[i]=this.groups[r][i]);typeof this.currentItem.transform>"u"?this.currentItem.transform=n:this.currentItem.transform+=" "+n,typeof this.currentItem.style>"u"?this.currentItem.style=a:this.currentItem.style=a+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),Mi(this.currentItem.style,this.currentItem,Ai)}switch(this.processAttrs(e,s),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 s=[],r;switch(t){case"svg":let n="",a="";if(e.width&&e.height)n=e.width,a=e.height;else if(e.viewBox){const i=e.viewBox.split(/\s+/gi);i.length==4&&(n=String(parseFloat(i[2])-parseFloat(i[0])),a=String(parseFloat(i[3])-parseFloat(i[1])))}n&&a&&this.items.push({type:"viewbox",width:n,height:a});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&&Mi(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+Ni(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),s=[this.grad.angle];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?s.push(r.color+":"+r.offset):s.push(r.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break;case"radialGradient":s=[];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?s.push(r.color+":"+r.offset):s.push(r.color);this.idtops[this.grad.id]=s.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break}for(const n in e){const a=e[n];if(Ai.includes(n)&&(this.currentItem[n]=a),n==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:n,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:n,stops:[]})),n==="style"&&Mi(a,this.currentItem,Ai),n==="transform"&&(this.currentItem.transform=a+(this.currentItem.transform||" ")),n==="fill"){const i=a.match(/url\(#([^)]+)\)/);if(i){const l=i[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}n==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+a+"z"),n==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=a),n==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=a)}}addToItems(){this.items.push(this.currentItem)}}function Ni(o,t,e,s,r,n){if(typeof r>"u"||typeof n>"u"){const a=o-e,i=t-s;return!a&&!i?0:(180+Math.atan2(-i,-a)*180/Math.PI+360)%360}else return Ni(o,t,r,n)-Ni(e,s,r,n)}function Mi(o,t,e){const s=(o+"").split(";"),r=/^\s+|\s+$/g;for(let n=0,a=s.length;n<a;n++){const i=s[n].split(":"),l=i[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=i[1].replace(r,""))}}const Ai=["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 Pf{app;rootEl;ue;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,s){this.app=t,this.rootEl=pe.createSVGElement("svg"),this.ue=vo(this.rootEl);const r=vo(this.app.container);r.empty(),r.insert(this.rootEl),e&&s?this.setSize(e,s):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(n,a)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=a.dx,this.dragDy+=a.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let a=n.parent;for(;a;)a.emit("clicked",n),a=a.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}setSize(t,e){return zo(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return pe.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof xs&&t.shapes.forEach(e=>{this._addDrawShape(e)}))}path(t){(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow){e.el&&(e.el.remove(),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof Nn?e.el=this.text(e.text,e.x,e.y,ku(e.getAttrs(),(r,n)=>typeof n=="string")):(e.el=pe.createSvgPath(e.toSVGPathD(),e.id),this.ue.insert(e.el))),e.followMouse&&(!pn(e.x,this.app.mousePoint.x,5)||!pn(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const r=this.dragDx,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}else e.isDragging=!1;e instanceof Nn&&(e.setAttr("x",String(e.x)),e.setAttr("y",String(e.y))),e.frameUpdate(this.app.mousePoint);const s=e.toSVGPathD();if(this.attr(e,ku(e.getAttrs(),(r,n)=>typeof n=="string")),this.attr(e,"d",s),!this.currentMouseInShape){const r=e.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||e.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;e.isMouseIn=r,r&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint)}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}delete(t){(Array.isArray(t)?t:[t]).forEach(e=>{e.el&&e.el.remove(),delete e.el,this.shapes=this.shapes.filter(s=>s.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&t.el.remove(),delete t.el}),this.ue.empty(),this.shapes=[]}attr(t,e,s){const r=t.el||t;return r instanceof SVGElement?e===void 0&&s===void 0?zo(r):typeof e=="string"&&s===void 0?zo(r,is(e))||"":(typeof e=="object"?zo(r,e):typeof e=="string"&&s!==void 0&&zo(r,is(e),s),this):this}circle(t,e,s){return this.path(new re({x:t,y:e,radius:s}))}circleEl(t,e,s){const r=pe.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(s)});return this.ue.insert(r),r}ellipse(t,e,s,r){return this.path(new Rf({x:t,y:e,rx:s,ry:r}))}ellipseEl(t,e,s,r){const n=pe.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(s),ry:String(r)});return this.ue.insert(n),n}rect(t,e,s,r){return this.path(new Ee({x:t,y:e,width:s,height:r}))}rectEl(t,e,s,r){const n=pe.createSVGElement("rect",{x:String(t),y:String(e),width:String(s),height:String(r)});return this.ue.insert(n),n}image(t,e,s,r,n){}text(t,e,s,r){const n=pe.createSVGElement("text",{x:String(e),y:String(s)});return vo(n).html(t),this.attr(n,Object.assign({"alignment-baseline":"middle"},r)),this.ue.insert(n),n}textWithTspan(t,e,s,r){const n=r?.["line-height"]||"1.2em",a=pe.createSVGElement("text",{x:String(e),y:String(s)});return t.split(`
|
|
46
|
-
`).forEach((i,l)=>{if(i.trim()){const c=pe.createSVGElement("tspan",{x:String(e),dy:l>0?n:"0"});vo(c).html(i),vo(a).insert(c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),this.ue.insert(a),a}}class my extends No{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new py(t.svg).parse();for(let s=0,r=e.length;s<r;s++){const n=e[s];if(n.type=="viewbox"&&n.width&&n.height){if(this.svgWidth=parseFloat(n.width),this.svgHeight=parseFloat(n.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(n.type!="path"||!pe.isSVGPath(n.path))continue;const a={};for(const u in n)u==="type"||u==="path"||u==="transform"||(a[u]=n[u]);const i=pe.absolutizeSVGPath(pe.parseSVGPath(n.path)),l=[];let c=[];for(let u=0,f=i.length;u<f;u++){const d=i[u];c.push(d),d[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const f=Cf(n.transform??"");f.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new oe({...t,attrs:{...a,...t?.attrs||{}},d:u,originMatrix:f}))})}}shapeInit(){this.trim()}}class re extends oe{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}toSVGPathData(){return this.radius?[["m",0,-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["m",0,0]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return _i(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const s=t/e;this.scalar(s)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,s=this.y;return{x:s*t.x-e*t.y,y:e*t.y-s*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}checkCollision(t){const e=t.x-this.x,s=t.y-this.y;if(Math.sqrt(e*e+s*s)<this.radius+t.radius){const n=Math.atan2(s,e),a={x:0,y:0},i=_s(-n,e,s),l=_s(-n,this.vx,this.vy),c=_s(-n,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 f=Math.abs(l.x)+Math.abs(c.x),d=this.radius+t.radius-Math.abs(a.x-i.x);a.x+=l.x/f*d,i.x+=c.x/f*d;const p=_s(n,a.x,a.y),h=_s(n,i.x,i.y);t.x=this.x+h.x,t.y=this.y+h.y,this.x=this.x+p.x,this.y=this.y+p.y;const w=_s(n,l.x,l.y),_=_s(n,c.x,c.y);this.vx=w.x,this.vy=w.y,t.vx=_.x,t.vy=_.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,s=t.wall.x,r=t.wall.y,n=t.wall.x+t.wall.width,a=t.wall.y+t.wall.height;this.x+this.radius>n?(this.x=n-this.radius,this.vx*=e):this.x-this.radius<s&&(this.x=s+this.radius,this.vx*=e),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=e):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=e)}}class Of extends oe{points;isStraight;constructor(t){if(super(t),this.points=t.points,this.points.length<3)throw new Error("points length must >= 3");this.isStraight=typeof t?.isStraight=="boolean"?t.isStraight:!0}toSVGPathData(){const t=[],e=this.points.length;if(this.isStraight){t.push(["M",this.points[0].x,this.points[0].y]);for(let s=1;s<=e-1;s++)t.push(["L",this.points[s].x,this.points[s].y]);t.push(["Z"])}else{const s=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",s,r]);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.push(["Q",this.points[n].x,this.points[n].y,a,i])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,s,r])}return t}toCanvasContext(t){t.beginPath();const e=this.points.length;if(this.isStraight){t.moveTo(this.points[0].x,this.points[0].y);for(let s=1;s<=e-1;s++)t.lineTo(this.points[s].x,this.points[s].y);t.closePath()}else{const s=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(s,r);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.quadraticCurveTo(this.points[n].x,this.points[n].y,a,i)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,s,r)}}isContainPoint(t,e){const s=this.points.length;let r=!1;const n=2e-10;for(let a=0,i=s-1;a<s;i=a,a++){const l=this.points[a].x,c=this.points[a].y,u=this.points[i].x,f=this.points[i].y;if(l===t&&c===e||u===t&&f===e||e===c&&e===f)return!0;if(e>=c&&e<f||e<c&&e>=f){const d=(u-l)/(f-c),p=l+d*(e-c);if(p===t||Math.abs(p-t)<n)return!0;p>t&&(r=!r)}}return r}[Symbol.iterator](){let t=-1;return{next:()=>({value:t<=this.points.length-1?this.points[++t]:void 0,done:t>=this.points.length})}}}class Ee extends oe{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,s,r,n,a,i,l){const c=new go({x:t,y:e,c1x:s,c1y:r,c2x:n,c2y:a,toX:i,toY:l});return new Ee(c.getBoundingClientRect())}getBoundingClientRect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}toSVGPathData(){return this.borderRadius?[["m",this.borderRadius,0],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["m",0,0],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}class Rf extends oe{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return{x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2}}toSVGPathData(){return[["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class Ln extends oe{constructor(t){super(t)}toSVGPathData(){return[["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class zi extends oe{constructor(t){super(t)}toSVGPathData(){return[["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class gy extends oe{rx;ry;constructor(t){super(t),this.rx=t?.rx||10,this.ry=t?.ry||10}toSVGPathData(){return[["m",0,0],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]]}}class yy extends oe{rx;ry;constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50}toSVGPathData(){return[["m",0,0+this.ry*.3],["C",0,0,0-this.rx/2,0,0-this.rx/2,0+this.ry*.3],["C",0-this.rx/2,0+(this.ry+this.ry*.3)/2,0,0+(this.ry+this.ry*.3)/1.4,0,0+this.ry],["C",0,0+(this.ry+this.ry*.3)/1.8,0+this.rx/2,0+(this.ry+this.ry*.3)/2,0+this.rx/2,0+this.ry*.3],["C",0+this.rx/2,0,0,0,0,0+this.ry*.3],["z"]]}}class vy extends oe{r;constructor(t){super(t),this.r=t?.r||20}toSVGPathData(){const t=[["m",0,-this.r]];for(let e=0;e<6;e+=1){const s=288+e*144,r=this.r*Math.cos(Bt(s)),n=this.r*Math.sin(Bt(s));t.push(["l",r,n])}return t}}class by extends oe{constructor(t){super(t)}toSVGPathData(){return[["M",0,0],["C",15,0,15,-40,5,-30],["L",0,0],["C",-15,0,-15,-40,-5,-30],["L",0,0],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]]}}class _y extends oe{constructor(t){super(t),this.originD="m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z"}}class xy extends No{constructor(t){super(t);const e=new xe({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),s=30+Math.random()*30,r=new xe({...t,x:this.x,y:this.y-s,diffYInGroup:-s,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),n=60+Math.random()*40,a=new xe({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,r,a])}}class Nn extends oe{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.getAttrs()});const e=bs(this.getAttr("fontSize"),10).number,s=bs(this.getAttr("fontWeight"),400).number,r=this.measureText(this.text,e,s);this.width=r.width,this.height=r.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}measureText(t,e=12,s=400){const r=document.createElement("span");r.style.visibility="hidden",r.style.margin="0",r.style.padding="0",r.style.inset="0",r.style.whiteSpace="nowrap",r.style.overflow="visible",r.style.fontSize=e+"px",r.style.fontWeight=s.toString(),r.innerText=t,document.body.appendChild(r);const n=r.offsetWidth,a=r.offsetHeight;return document.body.removeChild(r),{width:n,height:a}}getFixedWidthText(t,e,s=12,r=400,n=!0){let a="";if(!t||e<s)return a;const i=t.split(""),l="...";let c=n?this.measureText(l,s,r).width:0;for(let u=0,f=i.length;u<f;u++)if(c+=this.measureText(i[u],s,r).width,c>e){n&&(a+=l);break}else a+=i[u];return a}}class wy extends No{text;bg;padding;offset;isShow;textShape;bgShape;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!1,this.textShape=new Nn({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:me(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new Ee({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.getAttrs(),fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}shapeInit(){ti(()=>{this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.text=this.text,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.width=this.textShape.width+this.padding*2,this.bgShape.height=this.textShape.height+this.padding*2,this.bgShape.isShow=this.isShow})}}class If extends xs{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new re;p1Offset=10;p2=new re;p2Offset=40;p3=new re;p3Offset=10;p4=new re;p4Offset=10;direction=1;sectorArc;line12;line23;textShape;tipShape;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"",this.sectorArc=new ky({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.getAttrs()},{strokeWidth:"0"})}),this.addShape(this.sectorArc);const e=Object.assign({...this.getAttrs()},{fill:"none"});this.line12=new xe({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new xe({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Nn({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tipShape=new wy({x:0,y:0,text:this.tip,isShow:!1}),this.tip&&this.addShape(this.tipShape)}frameUpdate(t){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sectorArc.isMouseIn,this.line23.isShow=this.sectorArc.isMouseIn,this.textShape.isShow=this.sectorArc.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:s,dy:r}=Ms(Bt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+s,this.p1.y=this.y+r;const{dx:n,dy:a}=Ms(Bt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+n,this.p2.y=this.y+a,this.line12.x=this.p1.x,this.line12.y=this.p1.y,this.line12.toX=this.p2.x,this.line12.toY=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.x=this.p2.x,this.line23.y=this.p2.y,this.line23.toX=this.p3.x,this.line23.toY=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sectorArc.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=t.x,this.tipShape.y=t.y):(this.tipShape.isShow=!1,this.tipShape.x=t.x,this.tipShape.y=t.y)}}class ky extends oe{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;durationTime;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.durationTime=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.durationTime,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.durationTime,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=Ms(Bt(this.startDegree),this.radius),{dx:s,dy:r}=Ms(Bt(this.endDegree),this.radius);return[["m",0,0],["l",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,s-t,r-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Bt(this.startDegree),Bt(this.endDegree),!1),t.closePath()}containPoint(t,e){const s=xi(this.x,this.y,t,e),r=Xe($o(this.x,this.y,t,e));return s<=this.radius&&r>=this.startDegree&&r<=this.endDegree}}class Cy extends xs{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new oe({...t,d:[["M",10,0],["L",-10,10],["L",-5,0],["L",-10,-10],["L",10,0],["Z"]]}),this.addShape(this.ship),this.flame=new oe({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){ti(()=>{this.ship.x=this.x,this.ship.y=this.y,this.flame.x=this.x,this.flame.y=this.y,this.flame.isShow=this.showFlame})}}class Ff extends No{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,s=t?.max||100,r=t?.step||1,n=Eu(e,s,r);this.value=n(typeof t?.defaultValue=="number"?ie(t.defaultValue,e,s):e);const a=this.value/(s-e),i=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,f=t?.barColor||vt.colorGrayF5,d=t?.handleColor||vt.colorPrimary;this.backgroundRect=new Ee({x:this.x,y:this.y,width:i,height:l,borderRadius:u,attrs:{fill:f},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new Ee({x:this.x,y:this.y,width:i*a,height:l,borderRadius:u,attrs:{fill:d},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new re({x:this.x+i*a,y:this.y+u,diffXInGroup:i*a,diffYInGroup:u,radius:c,alongPath:new Qe({x:this.x,y:this.y+u,d:[["m",0,0],["l",i,0]]}),attrs:{fill:d},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",p=>{this.occupyRect.width=ie(this.occupyRect.width+p,0,i),this.value=n((this.handle.x-this.x)/i*(s-e)+e),this.emit("change",this.value)})}}class Ao extends No{width;height;cornerRadius;controlPoint;mainRect;rightPoint;constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.controlPoint=new re({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new Ee({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,diffXInGroup:-this.cornerRadius,diffYInGroup:-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),this.rightPoint=new re({...t,x:this.x+this.width,y:this.y,diffXInGroup:this.width,radius:2}),this.addShape([this.mainRect,this.controlPoint,this.rightPoint])}getPin(){return{x:this.controlPoint.x+Math.cos(Bt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Bt(this.controlPoint.degree))*this.width}}}class Vi extends oe{extendDegree;radius;startDegree;endDegree;diffDegree;constructor(t){super(t),this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth;this.radius=e-e*Math.abs(Math.sin(Bt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Bt(this.extendDegree))),this.diffDegree=t.endDegree-t.startDegree,this.startDegree=180+t.startDegree-this.extendDegree,this.endDegree=180+t.endDegree+this.extendDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.color||"none"})}setPercent(t){this.endDegree=this.startDegree+(this.diffDegree+this.extendDegree*2)*t}toSVGPathData(){const{dx:t,dy:e}=Ms(Bt(this.startDegree),this.radius),{dx:s,dy:r}=Ms(Bt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,s-t,r-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Bt(this.startDegree),Bt(this.endDegree),!1)}}let Df=class extends No{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,s=t?.endDegree||180,r=t?.extendDegree||15,n=t?.lineWidth||12;this.bgColor=t?.bgColor||"#B3C6E7",this.startColor=t?.startColor||"#5A82F0",this.endColor=t?.endColor||"#66B3FF",this.percent=t?.percent||0,this.indicatorLineCount=22+1;const a=20,i=2,l=17;this.ringBg=new Vi({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:s,extendDegree:r,lineWidth:n,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new Vi({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:s,extendDegree:r,lineWidth:n}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+a;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new xe({...t,centerX:this.ringBg.x,centerY:this.ringBg.y,x:this.ringBg.x,y:c,toX:this.ringBg.x,toY:c+l,degree:this.ringBg.startDegree+90+(s-e+r*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(i),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,s)=>{this.shapes.forEach(r=>{r!=s&&(r.x+=t,r.y+=e)})})}frameUpdate(t,e){const s=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),r=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const n=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+s,-r,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:n})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let n=0;n<this.indicatorLineCount;n++){const a=n/(this.indicatorLineCount-1)<=this.percent;this.lines[n].setAttr({stroke:a&&e?e.createLinearGradient(0,0,this.lines[n].toX-this.lines[n].x,this.lines[n].toY-this.lines[n].y,{0:this.startColor,1:this.endColor}):a?this.startColor:this.bgColor})}}};class Ty extends xs{fettis=[];constructor(t,e,s){super();const{shape:r,x:n,y:a,particleCount:i,angle:l,spread:c,startVelocity:u,decay:f,gravity:d,drift:p,ticks:h,colors:w,scalar:_,flat:x}=Object.assign({shape:Ee,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:ay,scalar:1,flat:!1},s||{}),v=Bt(l),g=Bt(c);let m=i;for(;m--;){const b=w[m%w.length],C=new r({x:t*n,y:e*a,width:10,height:10,scalar:_,attrs:{fill:b},independentTransformInGroup:!0});this.addShape(C),this.fettis.push({shape:C,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-v+(.5*g-Math.random()*g),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:h,decay:f,drift:p,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d*3,scalar:_,flat:x,color:me(b)})}}frameUpdate(t){this.fettis.length&&(this.fettis=this.fettis.filter(e=>{e.shape.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.shape.x+10*e.scalar,e.wobbleY=e.shape.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.shape.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.shape.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);const s=e.tick++/e.totalTicks,r=e.shape.x+e.random*e.tiltCos,n=e.shape.y+e.random*e.tiltSin,a=e.wobbleX+e.random*e.tiltCos,i=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-s).toString()),e.shape.degree=Xe(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(a-r)*.1,e.shape.scalarY=Math.abs(i-n)*.1,e.tick<e.totalTicks}))}}class Ge{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(s=>{s.run(),t?.wall&&s.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let s=0,r=e-1;s<r;s++)for(let n=s+1;n<e;n++)this.shapes[s].checkCollision(this.shapes[n])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,s)=>{e.run();for(let r=s+1;r<t;r++)e.checkCollision(this.shapes[r]),e.gravitateTo(this.shapes[r])})}springChain(t){this.shapes.forEach((e,s)=>{s>0&&e.runSpringTo(this.shapes[s-1],t)})}springConnect(t){const e=Zs(t?.springLength,100);this.shapes.forEach(s=>{s.isDragging||this.shapes.filter(r=>r.id!==s.id).forEach(r=>{const n=$o(s.x,s.y,r.x,r.y);s.runSpringTo({x:r.x-Math.cos(n)*e,y:r.y-Math.sin(n)*e},t)})})}springMass(t,e){const s=this.shapes.length,r=[];return this.shapes.forEach((n,a)=>{n.run(e),n.x>t.x+t.width?n.x=t.x:n.x<t.x&&(n.x=t.x+t.width),n.y>t.y+t.height?n.y=t.y:n.y<t.y&&(n.y=t.y+t.height);for(let i=a+1;i<s;i++)r.push([n.x,n.y,this.shapes[i].x,this.shapes[i].y,n.springMassTo(this.shapes[i],e)])}),r}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let r=0;r<t;r++){const n=this.shapes[r].initPathD();this.shapes[r].frameStart();const a=this.shapes[r+1].initPathD();this.shapes[r+1].frameStart();const i=Math.max(n.polymorphPoints.length,a.polymorphPoints.length);e[r]=Qe.getPathInterpolator(n.expendFill(i),a.expendFill(i))}const s=new oe({d:e[0](0)});return r=>{const n=Ce(t*r,6),a=Math.min(Math.floor(n),t-1),i=Ce(n-a,6);s.originD=e[a](i);const l=this.shapes[a].getAttr("fill","none"),c=this.shapes[a+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&s.setAttr("fill",Ft.gradient(l,c,i).toString());const u=this.shapes[a].getAttr("stroke","none"),f=this.shapes[a+1].getAttr("stroke","none");return typeof u=="string"&&typeof f=="string"&&s.setAttr("stroke",Ft.gradient(u,f,i).toString()),s}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const s=[];this.shapes.forEach(i=>{let l;i instanceof xs?(l=i,l.sortPathD()):(l=new xs,l.addShape(i)),s.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),s.forEach(i=>{i!==e&&i.expendFill(e)});const r=[];s.forEach((i,l)=>{i.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const n=[];r.forEach(i=>{n.push(new Ge(i).polymorph())});const a=new xs;return n.forEach(i=>{a.addShape(i(0))}),i=>(n.forEach(l=>{l(i)}),a)}polymorphTween(t=6e3,e){const s=this.shapes.findIndex(i=>i instanceof xs)>=0?this.polymorphGroup():this.polymorph(),r=s(0),n=e?.onUpdate,a=new Ie({frameDuration:t});a.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(i,l)=>{s(i.t),n?.(i,l),e?.draw?.(r)}})),a.play()}static generatePointsShape(t,e,s,r){const n=[];for(let a=0;a<r;a++){const i=a/r*2*Math.PI,{dx:l,dy:c}=Ms(i,s);n.push({x:t+l,y:e+c})}return new Of({points:n})}static generateRosettaShape(t,e,s,r,n){if(n==0)throw new Error("no dividing by zero, please");const a=[],i=360/n;for(let l=0;l<n;l+=1){const c=i*l*Math.PI/180,u=t+2*s*Math.cos(c),f=e+2*s*Math.sin(c);a.push(new Ti({x:t,y:e,rx:s,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:f})),a.push(new Ti({x:u,y:f,rx:s,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new oe({d:Qe.fromLines(a)})}}function Sy(o){return window.URL.createObjectURL(o)}const $f=new si;async function Lf(o,t=6e4){const e=typeof o=="string"?o:Sy(o);return new Promise((s,r)=>{const n=$f.get(e);if(n)return s(n);const a=new Image;a.onload=l=>{clearTimeout(i);const c=a.naturalWidth||a.width,u=a.naturalHeight||a.height,f={width:c,height:u,aspectRatio:c/u,imageData:Lg(a),element:a};$f.set(e,f),s(f),a.onerror=a.onload=null},a.onerror=l=>{clearTimeout(i),r(l)},a.src=e;const i=setTimeout(()=>{r("Timeout!")},t)})}async function Ey(o,t=6e4){return new Promise((e,s)=>{const r=document.createElement("script");r.type="text/javascript",r.async=!1,r.onload=a=>{clearTimeout(n),e(a),r.onerror=r.onload=null},r.onerror=a=>{clearTimeout(n),s(a)},r.src=o;const n=setTimeout(()=>{s("Timeout!")},t);document.body.appendChild(r)})}function Nf(o,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof o=="string"?e.href=o:e.href=window.URL.createObjectURL(o),e.click()}const Mn=new si,Py=(o=!0)=>{Mn.filter((t,e)=>(e.alternate&&(jf(e,e.alternate),o&&Mn.set(t,e.alternate),e.alternate=void 0),o))};function Mf(o){let t=Mn.get(o);return t||(t=Gi(o),Mn.set(o,t)),t}function Oy(o){const t=Mf(o);return t.alternate||(t.alternate=Gi(o)),t.alternate}function Af(o,t,e=!0){t(Oy(o)),yf("FLUSH_DOM_ACTION",()=>Py(e),50)}function Cr(o,t,e){const s=Mf(o);return s.props.style=s.props.style||{},t?s.props.style[t]||s.props.style[xu(t)]||s.props.style[is(t)]||"":s.props.style}function zf(o,t,e){Af(o,s=>{s.props.style=s.props.style||{},typeof t=="string"&&e?s.props.style[t]=e:t instanceof Object&&Object.keys(t).forEach(r=>{s.props.style[r]=t[r]})},!0)}function Vf(o){const t=[];if(getComputedStyle){const e=getComputedStyle(o);for(let s=0,r=e.length;s<r;s++)t.push(e[s]+":"+e.getPropertyValue(e[s]))}else{const e=o.currentStyle;for(const s in e)t.push(s+":"+e[s])}return t.push(...(o.style.cssText||"").split(";")),Object.fromEntries(t.filter(e=>!!e).map(e=>e.split(":").map((s,r)=>r==0?xu(s).trim():s.trim())))}function Bi(o,t,e){typeof t=="string"&&e?o.style.setProperty(is(t),e.replace(/!important/i,""),String(e).toLowerCase().includes("!important")?"important":""):t instanceof Object&&Object.keys(t).forEach(s=>{Bi(o,s,t[s])})}function Bf(o,t){typeof t=="string"?o.style.removeProperty(is(t)):Object.keys(t).forEach(e=>{Bf(o,e)})}function zs(o,t){let e;if(typeof t=="string"){const r=document.querySelector(t)?.shadowRoot;r?e=r:e=document.querySelector(t)}else e=t||document.getElementsByTagName("head")[0];const s=document.createElement("style");if(s.innerHTML=o,e)return e.appendChild(s),()=>{(e instanceof HTMLElement||e instanceof ShadowRoot)&&e.removeChild(s)};{const r=document.styleSheets[0].insertRule(o);return()=>{document.styleSheets[0].deleteRule(r)}}}function Ry(o,t,e={}){Object.prototype.hasOwnProperty.call(e,"transform")||Object.assign(e,{transform:Cr(o,"transform")||""});const s=Cf(e.transform),r={};for(const n in t){const a=t[n];switch(n){case"transform":break;case"translate":s.translate(a[0]||0,a[1]||0);break;case"translateTo":s.translateTo(a[0]||0,a[1]||0);break;case"translateX":s.translateX(a||0);break;case"translateXTo":s.translateXTo(a||0);break;case"translateY":s.translateY(a||0);break;case"translateYTo":s.translateYTo(a||0);break;case"translateZ":s.translateZ(a||0);break;case"translateZTo":s.translateZTo(a||0);break;case"translate3d":s.translate3d(a[0]||0,a[1]||0,a[2]||0);break;case"translate3dTo":s.translate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotate":typeof a=="number"?s.rotate(a||0):s.rotate(a[0]||0,a[1]||0,a[2]||0);break;case"rotateTo":typeof a=="number"?s.rotateTo(a||0):s.rotateTo(a[0]||0,a[1]||0,a[2]||0);break;case"rotateX":s.rotateX(a||0);break;case"rotateXTo":s.rotateXTo(a||0);break;case"rotateY":s.rotateY(a||0);break;case"rotateYTo":s.rotateYTo(a||0);break;case"rotateZ":s.rotateZ(a||0);break;case"rotateZTo":s.rotateZTo(a||0);break;case"rotate3d":s.rotate3d(a[0]||0,a[1]||0,a[2]||0);break;case"rotate3dTo":s.rotate3dTo(a[0]||0,a[1]||0,a[2]||0);break;case"scale":typeof a=="number"?s.scale(a||1):s.scale(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleTo":typeof a=="number"?s.scaleTo(a||1):s.scaleTo(a[0]||1,a[1]||1,a[2]||0,a[3]||0);break;case"scaleX":s.scaleX(a||1);break;case"scaleXTo":s.scaleXTo(a||1);break;case"scaleY":s.scaleY(a||1);break;case"scaleYTo":s.scaleYTo(a||1);break;case"scaleZ":s.scaleZ(a||1);break;case"scaleZTo":s.scaleZTo(a||1);break;case"scale3d":typeof a=="number"?s.scale3d(a||1):s.scale3d(a[0]||1,a[1]||1,a[2]||1);break;case"scale3dTo":typeof a=="number"?s.scale3dTo(a||1):s.scale3dTo(a[0]||1,a[1]||1,a[2]||1);break;case"skew":typeof a=="number"?s.skew(a||0):s.skew(a[0]||0,a[1]||0);break;case"skewTo":typeof a=="number"?s.skewTo(a||0):s.skewTo(a[0]||0,a[1]||0);break;case"skewX":s.skewX(a||0);break;case"skewXTo":s.skewXTo(a||0);break;case"skewY":s.skewY(a||0);break;case"skewYTo":s.skewYTo(a||0);break;case"skewZ":break;case"skewZTo":break;case"skew3d":break;case"skew3dTo":break;case"perspective":s.perspective(a||0);break;default:Object.prototype.hasOwnProperty.call(e,n)||(e[n]=Cr(o,n)),Object.assign(r,{[n]:`${a}`});break}}return Object.assign(r,{transform:s.toString()}),r}function zo(o,t,e){if(t===void 0&&e===void 0)return Yf(o);if(typeof t=="string"&&e===void 0)return Iy(o,t);let s={};typeof t=="object"?s=t:typeof t=="string"&&typeof e=="string"&&(s[t]=e),Af(o,r=>{Object.entries(s).forEach(([n,a])=>{r.props[n]=a})})}function Yf(o){const t={};for(let e=0,s=o.attributes,r=s.length;e<r;e++){const n=s[e];n.nodeName&&n.nodeValue&&(n.nodeName==="style"?t[n.nodeName]=Vf(o):t[n.nodeName]=n.nodeValue)}return t}function Iy(o,t){return t==="style"?Vf(o):o.getAttribute(is(t))}function Xf(o,t,e){return o.setAttribute(is(t),e)}function Yi(o,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(o.className)||!1}function vo(o){return{el:o,isRoot:()=>/(html|body)/i.test(o.tagName)||o===document.documentElement,isActive:()=>o===document.activeElement&&(o.type||o.href),parent:()=>o.parentElement,parents:function(t=o,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,s=t.length;e<s;e++)if(/(auto|scroll)/.test(Cr(t[e],"overflow")+Cr(t[e],"overflow-y")+Cr(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>o.contains?o!=t&&o.contains(t):!!(o.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(o.parentElement?.children).filter(t=>t!==o),nextElementSibling:()=>o.nextElementSibling,previousElementSibling:()=>o.previousElementSibling,closest:t=>o.closest(t),shadowRoot:()=>o.shadowRoot,isInput:()=>o.tagName==="INPUT"||o instanceof HTMLInputElement,isSelect:()=>o.tagName==="SELECT"||o instanceof HTMLSelectElement,isTextArea:()=>o.tagName==="TEXTAREA"||o instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(o)&&o.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(o)&&o.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(o)&&o.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(o)&&o.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=o.options;for(let s=0,r=e.length;s<r;s++)e[s].selected=e[s].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(o.name);for(let s=0,r=e.length;s<r;s++){const n=e[s];n.checked=n.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(o.checked=t)},insert:(t,e="append")=>{typeof t=="string"?o[e](Fy(t)):o[e](t)},html:function(t){if(typeof t=="string"){o.innerHTML=t;const e=Gf(o);e!=o&&(o=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{o.textContent=t},getInnerText:()=>{if(o instanceof SVGElement)return"";let t=o.innerText;if(!t){const e=o.querySelector("slot")?.assignedNodes()||[];let s=0;for(;!t&&s<=e.length-1;)"innerText"in e[s]&&(t=e[s].innerText),s++}return t},remove:()=>o.remove()}}function Fy(o){const t=document.createElement("template");return t.innerHTML=o,t.content.childNodes.forEach(e=>{const s=Gf(e);s!=e&&t.content.replaceChild(s,e)}),t.content}function Gf(o){return o.tagName=="SCRIPT"&&(o=Uf(o)),o.querySelectorAll&&o.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(Uf(t),t)}),o}function Uf(o){const t=o.ownerDocument.createElement("script");t.text=o.text;const e=o.attributes;for(let s=0,r=e.length;s<r;s++)t.setAttribute(e[s].name,e[s].value);return t}async function Xi(o){if(navigator.clipboard)return await navigator.clipboard.writeText(o);{const t=document.createElement("textarea");return t.value=o,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function Dy(o,t={},e=[],s){return{tag:o,props:t,children:e,el:s}}function Gi(o){return Dy(o.tagName,Yf(o),Array.from(o.children).map(t=>Gi(t)),o)}function An(o,t=document.documentElement){if(o.el)return o.el;if(o.el=document.createElement(o.tag),o.props)for(const e in o.props){const s=o.props[e];e.startsWith("on")?o.el.addEventListener(e.slice(2).toLowerCase(),s):e==="style"?Bi(o.el,o.props[e]):Xf(o.el,e,s)}return o.children&&(typeof o.children=="string"?o.el.appendChild(document.createTextNode(o.children)):o.children.forEach(e=>{An(e,o.el)})),t.appendChild(o.el),o.el}function jf(o,t){if(!o.el)return;if(o.tag!==t.tag){(o.el.parentElement||document.body).replaceChild(An(t),o.el);return}const e=t.el=o.el,s=o.props,r=t.props;for(const i in s)i in r||(i.startsWith("on")?e.removeEventListener(i.slice(2).toLowerCase(),s[i]):e.removeAttribute(i));for(const i in r){const l=s[i],c=r[i];if(c!=l)if(i.startsWith("on")){const u=i.slice(2).toLowerCase();e.removeEventListener(u,l),e.addEventListener(u,c)}else if(i==="style"){for(const u in l)u in c||Bf(e,u);Bi(e,c)}else Xf(e,i,c)}const n=o.children||[],a=t.children||[];if(typeof a=="string")e.innerHTML=a;else if(typeof n=="string")e.innerHTML="",a.forEach(i=>{An(i,e)});else{const i=Math.min(n.length,a.length);for(let l=0;l<i;l++)jf(n[l],a[l]);a.length>n.length&&a.slice(n.length).forEach(l=>{An(l,e)}),a.length<n.length&&n.slice(a.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function $y(o){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let s=100;const r=function(){const n=Math.min(t.clientWidth,o);t.dataset.width=n,t.dataset.rem=s=Math.round(100*(n/o)),t.style.fontSize=s+"px"};r(),window.rem2px=function(n){return n=parseFloat(n),n*s},window.px2rem=function(n){return n=parseFloat(n),n/s},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}class Ui{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Ci(this.app.container,this.app.width,this.app.height,e),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(s,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const s of this.shapes)if(this.currentMouseInShape==s){s.emit("clicked");let r=s.parent;for(;r;)r.emit("clicked",s),r=r.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t.usePathDtoCanvasContext||(this.ctx.translate(t.x,t.y),this.ctx.rotate(Bt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalarX,t.scalarY,t.cX,t.cY))}_addDrawShape(t){this.shapes.push(t),t instanceof xs&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),Ly(this.ctx,e.getAttrs()),e.followMouse&&(!pn(e.x,this.app.mousePoint.x,5)||!pn(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const r=this.dragDx,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}else e.isDragging=!1;e.frameUpdate(this.app.mousePoint,this.ctx),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill();const s=this.ctx.currentPath2D;if(!this.currentMouseInShape){const r=this.ctx.isPointInPath(s,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(s,this.app.mousePoint.x,this.app.mousePoint.y)||!1;e.isMouseIn=r,r&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint),this.ctx.restore()}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}drawMouseMoveLine(t="line",e){switch(t){case"brush":const s=e?.brushSize??10,r=e?.brushDensity??50,n=e?.brushColor??"#000000",a=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),i=a.data,l=me(n);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<r;c++){const u=Math.random()*Math.PI*2,f=Math.random()*s,d=this.app.mousePoint.x+Math.cos(u)*f|0,p=this.app.mousePoint.y+Math.sin(u)*f|0,h=(d+p*a.width)*4;i[h]=l.r,i[h+1]=l.g,i[h+2]=l.b,i[h+3]=255}this.ctx.putImageData(a)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}function Ly(o,t){for(const e in t){const s=t[e];switch(e){case"fill":s!=="none"&&(o.fillStyle=s);break;case"stroke":s!=="none"&&(o.strokeStyle=s);break;case"stroke-width":case"strokeWidth":o.lineWidth=Number(s);break;case"stroke-linecap":case"strokeLinecap":o.lineCap=s;break;case"stroke-linejoin":case"strokeLinejoin":switch(s){case"round":case"bevel":case"miter":o.lineJoin=s;break;default:o.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":o.miterLimit=Number(s);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":o.lineDashOffset=Number(s);break;case"stroke-dasharray":case"strokeDasharray":typeof s=="string"&&o.setLineDash(s.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof s=="string"&&(o.font=s);break;case"font-size":case"fontSize":o.font+=` ${s}`;break;case"font-family":case"fontFamily":o.font+=` ${s}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(s){case"middle":o.textAlign="center";break;case"end":o.textAlign="end";break;case"start":o.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(s){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":o.textBaseline=s;break;default:o.textBaseline="alphabetic";break}break}}}class Ny{map;constructor(t,e=120.619585,s=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,s),r)}}const My=q({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:vt.colorPrimary}},setup(o){const t=o;return(e,s)=>(L(),V("span",{class:"icon",style:M(["color: "+e.color])},[ct(Ct(uf),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),Ay=`.icon[data-v-7966389b]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
47
|
-
`,it=(
|
|
48
|
-
`]],["__scopeId","data-v-
|
|
59
|
+
`;return function(){var et=new Error("get-stack-trace"),mt=et&&et.stack?et.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",zt=t.console&&(t.console.warn||t.console.log);return zt&&zt.call(t.console,z,mt),y.apply(this,arguments)}}var b;typeof Object.assign!="function"?b=function(C){if(C===r||C===null)throw new TypeError("Cannot convert undefined or null to object");for(var O=Object(C),z=1;z<arguments.length;z++){var et=arguments[z];if(et!==r&&et!==null)for(var mt in et)et.hasOwnProperty(mt)&&(O[mt]=et[mt])}return O}:b=Object.assign;var w=f(function(C,O,z){for(var et=Object.keys(O),mt=0;mt<et.length;)(!z||z&&C[et[mt]]===r)&&(C[et[mt]]=O[et[mt]]),mt++;return C},"extend","Use `assign`."),x=f(function(C,O){return w(C,O,!0)},"merge","Use `assign`.");function v(y,C,O){var z=C.prototype,et;et=y.prototype=Object.create(z),et.constructor=y,et._super=z,O&&b(et,O)}function g(y,C){return function(){return y.apply(C,arguments)}}function m(y,C){return typeof y==i?y.apply(C&&C[0]||r,C):y}function _(y,C){return y===r?C:y}function k(y,C,O){p($(C),function(z){y.addEventListener(z,O,!1)})}function Z(y,C,O){p($(C),function(z){y.removeEventListener(z,O,!1)})}function ot(y,C){for(;y;){if(y==C)return!0;y=y.parentNode}return!1}function R(y,C){return y.indexOf(C)>-1}function $(y){return y.trim().split(/\s+/g)}function A(y,C,O){if(y.indexOf&&!O)return y.indexOf(C);for(var z=0;z<y.length;){if(O&&y[z][O]==C||!O&&y[z]===C)return z;z++}return-1}function D(y){return Array.prototype.slice.call(y,0)}function M(y,C,O){for(var z=[],et=[],mt=0;mt<y.length;){var zt=C?y[mt][C]:y[mt];A(et,zt)<0&&z.push(y[mt]),et[mt]=zt,mt++}return O&&(C?z=z.sort(function(Re,Be){return Re[C]>Be[C]}):z=z.sort()),z}function X(y,C){for(var O,z,et=C[0].toUpperCase()+C.slice(1),mt=0;mt<n.length;){if(O=n[mt],z=O?O+et:C,z in y)return z;mt++}return r}var rt=1;function Q(){return rt++}function W(y){var C=y.ownerDocument||y;return C.defaultView||C.parentWindow||t}var at=/mobile|tablet|ip(ad|hone|od)|android/i,G="ontouchstart"in t,j=X(t,"PointerEvent")!==r,gt=G&&at.test(navigator.userAgent),ht="touch",B="pen",P="mouse",Yt="kinect",At=25,Et=1,ee=2,Xt=4,U=8,Me=1,He=2,De=4,S=8,F=16,Y=He|De,K=S|F,H=Y|K,J=["x","y"],lt=["clientX","clientY"];function tt(y,C){var O=this;this.manager=y,this.callback=C,this.element=y.element,this.target=y.options.inputTarget,this.domHandler=function(z){m(y.options.enable,[y])&&O.handler(z)},this.init()}tt.prototype={handler:function(){},init:function(){this.evEl&&k(this.element,this.evEl,this.domHandler),this.evTarget&&k(this.target,this.evTarget,this.domHandler),this.evWin&&k(W(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&Z(this.element,this.evEl,this.domHandler),this.evTarget&&Z(this.target,this.evTarget,this.domHandler),this.evWin&&Z(W(this.element),this.evWin,this.domHandler)}};function nt(y){var C,O=y.options.inputClass;return O?C=O:j?C=hl:gt?C=ea:G?C=pl:C=Ve,new C(y,st)}function st(y,C,O){var z=O.pointers.length,et=O.changedPointers.length,mt=C&Et&&z-et===0,zt=C&(Xt|U)&&z-et===0;O.isFirst=!!mt,O.isFinal=!!zt,mt&&(y.session={}),O.eventType=C,Pt(y,O),y.emit("hammer.input",O),y.recognize(O),y.session.prevInput=O}function Pt(y,C){var O=y.session,z=C.pointers,et=z.length;O.firstInput||(O.firstInput=It(C)),et>1&&!O.firstMultiple?O.firstMultiple=It(C):et===1&&(O.firstMultiple=!1);var mt=O.firstInput,zt=O.firstMultiple,Ee=zt?zt.center:mt.center,Re=C.center=Mt(z);C.timeStamp=u(),C.deltaTime=C.timeStamp-mt.timeStamp,C.angle=ye(Ee,Re),C.distance=Se(Ee,Re),ft(O,C),C.offsetDirection=jt(C.deltaX,C.deltaY);var Be=qt(C.deltaTime,C.deltaX,C.deltaY);C.overallVelocityX=Be.x,C.overallVelocityY=Be.y,C.overallVelocity=c(Be.x)>c(Be.y)?Be.x:Be.y,C.scale=zt?ze(zt.pointers,z):1,C.rotation=zt?ts(zt.pointers,z):0,C.maxPointers=O.prevInput?C.pointers.length>O.prevInput.maxPointers?C.pointers.length:O.prevInput.maxPointers:C.pointers.length,_t(O,C);var Ps=y.element;ot(C.srcEvent.target,Ps)&&(Ps=C.srcEvent.target),C.target=Ps}function ft(y,C){var O=C.center,z=y.offsetDelta||{},et=y.prevDelta||{},mt=y.prevInput||{};(C.eventType===Et||mt.eventType===Xt)&&(et=y.prevDelta={x:mt.deltaX||0,y:mt.deltaY||0},z=y.offsetDelta={x:O.x,y:O.y}),C.deltaX=et.x+(O.x-z.x),C.deltaY=et.y+(O.y-z.y)}function _t(y,C){var O=y.lastInterval||C,z=C.timeStamp-O.timeStamp,et,mt,zt,Ee;if(C.eventType!=U&&(z>At||O.velocity===r)){var Re=C.deltaX-O.deltaX,Be=C.deltaY-O.deltaY,Ps=qt(z,Re,Be);mt=Ps.x,zt=Ps.y,et=c(Ps.x)>c(Ps.y)?Ps.x:Ps.y,Ee=jt(Re,Be),y.lastInterval=C}else et=O.velocity,mt=O.velocityX,zt=O.velocityY,Ee=O.direction;C.velocity=et,C.velocityX=mt,C.velocityY=zt,C.direction=Ee}function It(y){for(var C=[],O=0;O<y.pointers.length;)C[O]={clientX:l(y.pointers[O].clientX),clientY:l(y.pointers[O].clientY)},O++;return{timeStamp:u(),pointers:C,center:Mt(C),deltaX:y.deltaX,deltaY:y.deltaY}}function Mt(y){var C=y.length;if(C===1)return{x:l(y[0].clientX),y:l(y[0].clientY)};for(var O=0,z=0,et=0;et<C;)O+=y[et].clientX,z+=y[et].clientY,et++;return{x:l(O/C),y:l(z/C)}}function qt(y,C,O){return{x:C/y||0,y:O/y||0}}function jt(y,C){return y===C?Me:c(y)>=c(C)?y<0?He:De:C<0?S:F}function Se(y,C,O){O||(O=J);var z=C[O[0]]-y[O[0]],et=C[O[1]]-y[O[1]];return Math.sqrt(z*z+et*et)}function ye(y,C,O){O||(O=J);var z=C[O[0]]-y[O[0]],et=C[O[1]]-y[O[1]];return Math.atan2(et,z)*180/Math.PI}function ts(y,C){return ye(C[1],C[0],lt)+ye(y[1],y[0],lt)}function ze(y,C){return Se(C[0],C[1],lt)/Se(y[0],y[1],lt)}var To={mousedown:Et,mousemove:ee,mouseup:Xt},Jn="mousedown",Oe="mousemove mouseup";function Ve(){this.evEl=Jn,this.evWin=Oe,this.pressed=!1,tt.apply(this,arguments)}v(Ve,tt,{handler:function(C){var O=To[C.type];O&Et&&C.button===0&&(this.pressed=!0),O&ee&&C.which!==1&&(O=Xt),this.pressed&&(O&Xt&&(this.pressed=!1),this.callback(this.manager,O,{pointers:[C],changedPointers:[C],pointerType:P,srcEvent:C}))}});var ta={pointerdown:Et,pointermove:ee,pointerup:Xt,pointercancel:U,pointerout:U},ux={2:ht,3:B,4:P,5:Yt},eh="pointerdown",sh="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(eh="MSPointerDown",sh="MSPointerMove MSPointerUp MSPointerCancel");function hl(){this.evEl=eh,this.evWin=sh,tt.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}v(hl,tt,{handler:function(C){var O=this.store,z=!1,et=C.type.toLowerCase().replace("ms",""),mt=ta[et],zt=ux[C.pointerType]||C.pointerType,Ee=zt==ht,Re=A(O,C.pointerId,"pointerId");mt&Et&&(C.button===0||Ee)?Re<0&&(O.push(C),Re=O.length-1):mt&(Xt|U)&&(z=!0),!(Re<0)&&(O[Re]=C,this.callback(this.manager,mt,{pointers:O,changedPointers:[C],pointerType:zt,srcEvent:C}),z&&O.splice(Re,1))}});var dx={touchstart:Et,touchmove:ee,touchend:Xt,touchcancel:U},fx="touchstart",hx="touchstart touchmove touchend touchcancel";function oh(){this.evTarget=fx,this.evWin=hx,this.started=!1,tt.apply(this,arguments)}v(oh,tt,{handler:function(C){var O=dx[C.type];if(O===Et&&(this.started=!0),!!this.started){var z=px.call(this,C,O);O&(Xt|U)&&z[0].length-z[1].length===0&&(this.started=!1),this.callback(this.manager,O,{pointers:z[0],changedPointers:z[1],pointerType:ht,srcEvent:C})}}});function px(y,C){var O=D(y.touches),z=D(y.changedTouches);return C&(Xt|U)&&(O=M(O.concat(z),"identifier",!0)),[O,z]}var mx={touchstart:Et,touchmove:ee,touchend:Xt,touchcancel:U},gx="touchstart touchmove touchend touchcancel";function ea(){this.evTarget=gx,this.targetIds={},tt.apply(this,arguments)}v(ea,tt,{handler:function(C){var O=mx[C.type],z=yx.call(this,C,O);z&&this.callback(this.manager,O,{pointers:z[0],changedPointers:z[1],pointerType:ht,srcEvent:C})}});function yx(y,C){var O=D(y.touches),z=this.targetIds;if(C&(Et|ee)&&O.length===1)return z[O[0].identifier]=!0,[O,O];var et,mt,zt=D(y.changedTouches),Ee=[],Re=this.target;if(mt=O.filter(function(Be){return ot(Be.target,Re)}),C===Et)for(et=0;et<mt.length;)z[mt[et].identifier]=!0,et++;for(et=0;et<zt.length;)z[zt[et].identifier]&&Ee.push(zt[et]),C&(Xt|U)&&delete z[zt[et].identifier],et++;if(Ee.length)return[M(mt.concat(Ee),"identifier",!0),Ee]}var vx=2500,rh=25;function pl(){tt.apply(this,arguments);var y=g(this.handler,this);this.touch=new ea(this.manager,y),this.mouse=new Ve(this.manager,y),this.primaryTouch=null,this.lastTouches=[]}v(pl,tt,{handler:function(C,O,z){var et=z.pointerType==ht,mt=z.pointerType==P;if(!(mt&&z.sourceCapabilities&&z.sourceCapabilities.firesTouchEvents)){if(et)bx.call(this,O,z);else if(mt&&_x.call(this,z))return;this.callback(C,O,z)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function bx(y,C){y&Et?(this.primaryTouch=C.changedPointers[0].identifier,nh.call(this,C)):y&(Xt|U)&&nh.call(this,C)}function nh(y){var C=y.changedPointers[0];if(C.identifier===this.primaryTouch){var O={x:C.clientX,y:C.clientY};this.lastTouches.push(O);var z=this.lastTouches,et=function(){var mt=z.indexOf(O);mt>-1&&z.splice(mt,1)};setTimeout(et,vx)}}function _x(y){for(var C=y.srcEvent.clientX,O=y.srcEvent.clientY,z=0;z<this.lastTouches.length;z++){var et=this.lastTouches[z],mt=Math.abs(C-et.x),zt=Math.abs(O-et.y);if(mt<=rh&&zt<=rh)return!0}return!1}var ah=X(a.style,"touchAction"),ih=ah!==r,lh="compute",ch="auto",ml="manipulation",So="none",Or="pan-x",Rr="pan-y",sa=wx();function gl(y,C){this.manager=y,this.set(C)}gl.prototype={set:function(y){y==lh&&(y=this.compute()),ih&&this.manager.element.style&&sa[y]&&(this.manager.element.style[ah]=y),this.actions=y.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var y=[];return p(this.manager.recognizers,function(C){m(C.options.enable,[C])&&(y=y.concat(C.getTouchAction()))}),xx(y.join(" "))},preventDefaults:function(y){var C=y.srcEvent,O=y.offsetDirection;if(this.manager.session.prevented){C.preventDefault();return}var z=this.actions,et=R(z,So)&&!sa[So],mt=R(z,Rr)&&!sa[Rr],zt=R(z,Or)&&!sa[Or];if(et){var Ee=y.pointers.length===1,Re=y.distance<2,Be=y.deltaTime<250;if(Ee&&Re&&Be)return}if(!(zt&&mt)&&(et||mt&&O&Y||zt&&O&K))return this.preventSrc(C)},preventSrc:function(y){this.manager.session.prevented=!0,y.preventDefault()}};function xx(y){if(R(y,So))return So;var C=R(y,Or),O=R(y,Rr);return C&&O?So:C||O?C?Or:Rr:R(y,ml)?ml:ch}function wx(){if(!ih)return!1;var y={},C=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(O){y[O]=C?t.CSS.supports("touch-action",O):!0}),y}var oa=1,ns=2,Uo=4,oo=8,Ys=oo,Ir=16,Es=32;function Xs(y){this.options=b({},this.defaults,y||{}),this.id=Q(),this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=oa,this.simultaneous={},this.requireFail=[]}Xs.prototype={defaults:{},set:function(y){return b(this.options,y),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(y){if(h(y,"recognizeWith",this))return this;var C=this.simultaneous;return y=ra(y,this),C[y.id]||(C[y.id]=y,y.recognizeWith(this)),this},dropRecognizeWith:function(y){return h(y,"dropRecognizeWith",this)?this:(y=ra(y,this),delete this.simultaneous[y.id],this)},requireFailure:function(y){if(h(y,"requireFailure",this))return this;var C=this.requireFail;return y=ra(y,this),A(C,y)===-1&&(C.push(y),y.requireFailure(this)),this},dropRequireFailure:function(y){if(h(y,"dropRequireFailure",this))return this;y=ra(y,this);var C=A(this.requireFail,y);return C>-1&&this.requireFail.splice(C,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(y){return!!this.simultaneous[y.id]},emit:function(y){var C=this,O=this.state;function z(et){C.manager.emit(et,y)}O<oo&&z(C.options.event+uh(O)),z(C.options.event),y.additionalEvent&&z(y.additionalEvent),O>=oo&&z(C.options.event+uh(O))},tryEmit:function(y){if(this.canEmit())return this.emit(y);this.state=Es},canEmit:function(){for(var y=0;y<this.requireFail.length;){if(!(this.requireFail[y].state&(Es|oa)))return!1;y++}return!0},recognize:function(y){var C=b({},y);if(!m(this.options.enable,[this,C])){this.reset(),this.state=Es;return}this.state&(Ys|Ir|Es)&&(this.state=oa),this.state=this.process(C),this.state&(ns|Uo|oo|Ir)&&this.tryEmit(C)},process:function(y){},getTouchAction:function(){},reset:function(){}};function uh(y){return y&Ir?"cancel":y&oo?"end":y&Uo?"move":y&ns?"start":""}function dh(y){return y==F?"down":y==S?"up":y==He?"left":y==De?"right":""}function ra(y,C){var O=C.manager;return O?O.get(y):y}function us(){Xs.apply(this,arguments)}v(us,Xs,{defaults:{pointers:1},attrTest:function(y){var C=this.options.pointers;return C===0||y.pointers.length===C},process:function(y){var C=this.state,O=y.eventType,z=C&(ns|Uo),et=this.attrTest(y);return z&&(O&U||!et)?C|Ir:z||et?O&Xt?C|oo:C&ns?C|Uo:ns:Es}});function na(){us.apply(this,arguments),this.pX=null,this.pY=null}v(na,us,{defaults:{event:"pan",threshold:10,pointers:1,direction:H},getTouchAction:function(){var y=this.options.direction,C=[];return y&Y&&C.push(Rr),y&K&&C.push(Or),C},directionTest:function(y){var C=this.options,O=!0,z=y.distance,et=y.direction,mt=y.deltaX,zt=y.deltaY;return et&C.direction||(C.direction&Y?(et=mt===0?Me:mt<0?He:De,O=mt!=this.pX,z=Math.abs(y.deltaX)):(et=zt===0?Me:zt<0?S:F,O=zt!=this.pY,z=Math.abs(y.deltaY))),y.direction=et,O&&z>C.threshold&&et&C.direction},attrTest:function(y){return us.prototype.attrTest.call(this,y)&&(this.state&ns||!(this.state&ns)&&this.directionTest(y))},emit:function(y){this.pX=y.deltaX,this.pY=y.deltaY;var C=dh(y.direction);C&&(y.additionalEvent=this.options.event+C),this._super.emit.call(this,y)}});function yl(){us.apply(this,arguments)}v(yl,us,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[So]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.scale-1)>this.options.threshold||this.state&ns)},emit:function(y){if(y.scale!==1){var C=y.scale<1?"in":"out";y.additionalEvent=this.options.event+C}this._super.emit.call(this,y)}});function vl(){Xs.apply(this,arguments),this._timer=null,this._input=null}v(vl,Xs,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ch]},process:function(y){var C=this.options,O=y.pointers.length===C.pointers,z=y.distance<C.threshold,et=y.deltaTime>C.time;if(this._input=y,!z||!O||y.eventType&(Xt|U)&&!et)this.reset();else if(y.eventType&Et)this.reset(),this._timer=d(function(){this.state=Ys,this.tryEmit()},C.time,this);else if(y.eventType&Xt)return Ys;return Es},reset:function(){clearTimeout(this._timer)},emit:function(y){this.state===Ys&&(y&&y.eventType&Xt?this.manager.emit(this.options.event+"up",y):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function bl(){us.apply(this,arguments)}v(bl,us,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[So]},attrTest:function(y){return this._super.attrTest.call(this,y)&&(Math.abs(y.rotation)>this.options.threshold||this.state&ns)}});function _l(){us.apply(this,arguments)}v(_l,us,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|K,pointers:1},getTouchAction:function(){return na.prototype.getTouchAction.call(this)},attrTest:function(y){var C=this.options.direction,O;return C&(Y|K)?O=y.overallVelocity:C&Y?O=y.overallVelocityX:C&K&&(O=y.overallVelocityY),this._super.attrTest.call(this,y)&&C&y.offsetDirection&&y.distance>this.options.threshold&&y.maxPointers==this.options.pointers&&c(O)>this.options.velocity&&y.eventType&Xt},emit:function(y){var C=dh(y.offsetDirection);C&&this.manager.emit(this.options.event+C,y),this.manager.emit(this.options.event,y)}});function aa(){Xs.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}v(aa,Xs,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ml]},process:function(y){var C=this.options,O=y.pointers.length===C.pointers,z=y.distance<C.threshold,et=y.deltaTime<C.time;if(this.reset(),y.eventType&Et&&this.count===0)return this.failTimeout();if(z&&et&&O){if(y.eventType!=Xt)return this.failTimeout();var mt=this.pTime?y.timeStamp-this.pTime<C.interval:!0,zt=!this.pCenter||Se(this.pCenter,y.center)<C.posThreshold;this.pTime=y.timeStamp,this.pCenter=y.center,!zt||!mt?this.count=1:this.count+=1,this._input=y;var Ee=this.count%C.taps;if(Ee===0)return this.hasRequireFailures()?(this._timer=d(function(){this.state=Ys,this.tryEmit()},C.interval,this),ns):Ys}return Es},failTimeout:function(){return this._timer=d(function(){this.state=Es},this.options.interval,this),Es},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Ys&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function Gs(y,C){return C=C||{},C.recognizers=_(C.recognizers,Gs.defaults.preset),new xl(y,C)}Gs.VERSION="2.0.7",Gs.defaults={domEvents:!1,touchAction:lh,enable:!0,inputTarget:null,inputClass:null,preset:[[bl,{enable:!1}],[yl,{enable:!1},["rotate"]],[_l,{direction:Y}],[na,{direction:Y},["swipe"]],[aa],[aa,{event:"doubletap",taps:2},["tap"]],[vl]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var kx=1,fh=2;function xl(y,C){this.options=b({},Gs.defaults,C||{}),this.options.inputTarget=this.options.inputTarget||y,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=y,this.input=nt(this),this.touchAction=new gl(this,this.options.touchAction),hh(this,!0),p(this.options.recognizers,function(O){var z=this.add(new O[0](O[1]));O[2]&&z.recognizeWith(O[2]),O[3]&&z.requireFailure(O[3])},this)}xl.prototype={set:function(y){return b(this.options,y),y.touchAction&&this.touchAction.update(),y.inputTarget&&(this.input.destroy(),this.input.target=y.inputTarget,this.input.init()),this},stop:function(y){this.session.stopped=y?fh:kx},recognize:function(y){var C=this.session;if(!C.stopped){this.touchAction.preventDefaults(y);var O,z=this.recognizers,et=C.curRecognizer;(!et||et&&et.state&Ys)&&(et=C.curRecognizer=null);for(var mt=0;mt<z.length;)O=z[mt],C.stopped!==fh&&(!et||O==et||O.canRecognizeWith(et))?O.recognize(y):O.reset(),!et&&O.state&(ns|Uo|oo)&&(et=C.curRecognizer=O),mt++}},get:function(y){if(y instanceof Xs)return y;for(var C=this.recognizers,O=0;O<C.length;O++)if(C[O].options.event==y)return C[O];return null},add:function(y){if(h(y,"add",this))return this;var C=this.get(y.options.event);return C&&this.remove(C),this.recognizers.push(y),y.manager=this,this.touchAction.update(),y},remove:function(y){if(h(y,"remove",this))return this;if(y=this.get(y),y){var C=this.recognizers,O=A(C,y);O!==-1&&(C.splice(O,1),this.touchAction.update())}return this},on:function(y,C){if(y!==r&&C!==r){var O=this.handlers;return p($(y),function(z){O[z]=O[z]||[],O[z].push(C)}),this}},off:function(y,C){if(y!==r){var O=this.handlers;return p($(y),function(z){C?O[z]&&O[z].splice(A(O[z],C),1):delete O[z]}),this}},emit:function(y,C){this.options.domEvents&&Cx(y,C);var O=this.handlers[y]&&this.handlers[y].slice();if(!(!O||!O.length)){C.type=y,C.preventDefault=function(){C.srcEvent.preventDefault()};for(var z=0;z<O.length;)O[z](C),z++}},destroy:function(){this.element&&hh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function hh(y,C){var O=y.element;if(O.style){var z;p(y.options.cssProps,function(et,mt){z=X(O.style,mt),C?(y.oldCssProps[z]=O.style[z],O.style[z]=et):O.style[z]=y.oldCssProps[z]||""}),C||(y.oldCssProps={})}}function Cx(y,C){var O=e.createEvent("Event");O.initEvent(y,!0,!0),O.gesture=C,C.target.dispatchEvent(O)}b(Gs,{INPUT_START:Et,INPUT_MOVE:ee,INPUT_END:Xt,INPUT_CANCEL:U,STATE_POSSIBLE:oa,STATE_BEGAN:ns,STATE_CHANGED:Uo,STATE_ENDED:oo,STATE_RECOGNIZED:Ys,STATE_CANCELLED:Ir,STATE_FAILED:Es,DIRECTION_NONE:Me,DIRECTION_LEFT:He,DIRECTION_RIGHT:De,DIRECTION_UP:S,DIRECTION_DOWN:F,DIRECTION_HORIZONTAL:Y,DIRECTION_VERTICAL:K,DIRECTION_ALL:H,Manager:xl,Input:tt,TouchAction:gl,TouchInput:ea,MouseInput:Ve,PointerEventInput:hl,TouchMouseInput:pl,SingleTouchInput:oh,Recognizer:Xs,AttrRecognizer:us,Tap:aa,Pan:na,Swipe:_l,Pinch:yl,Rotate:bl,Press:vl,on:k,off:Z,each:p,merge:x,extend:w,assign:b,inherit:v,bindFn:g,prefixed:X});var Tx=typeof t<"u"?t:typeof self<"u"?self:{};Tx.Hammer=Gs,typeof r=="function"&&r.amd?r(function(){return Gs}):s.exports?s.exports=Gs:t[o]=Gs})(window,document,"Hammer")})(Md);var Sy=Md.exports;const Ey=Vg(Sy);function Mi(){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}}function zo(){return typeof window.innerWidth=="number"?{width:window.innerWidth,height:window.innerHeight}:document.compatMode==="CSS1Compat"?{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}:{width:document.body.clientWidth,height:document.body.clientHeight}}function Py(s){const{top:t,left:e,width:o,height:r}=s.getBoundingClientRect(),{scrollLeft:n,scrollTop:a}=Mi();return{x:e+n,y:t+a,width:o,height:r}}function Oy(){const{clientHeight:s,scrollTop:t,scrollHeight:e}=Mi(),o=e-s;return o<=0?0:t/o*100}function Ry(s){if("center"in s)return s.center;if(typeof s.pageX=="number"&&typeof s.pageY=="number")return{x:s.pageX,y:s.pageY};const{scrollLeft:t,scrollTop:e}=Mi();return{x:s.clientX+t,y:s.clientY+e}}function Ts(s,t){if(!t&&"offsetX"in s)return{x:s.offsetX,y:s.offsetY};const e=Ry(s),o=Py(t||s.target);return{x:e.x-o.x,y:e.y-o.y}}class rs extends gr{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,e=!0,o){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new Ey(this.container),e&&this.start(o)}emitDebounce=D0((t,...e)=>super.emit(t,...e),50);emit(t,...e){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...e);break;default:super.emit(t,...e);break}return this}start(t){this.registerMouseEventListeners(),this.registerTransitionEventListeners(),this.registerAnimationEventListeners(),this.registerResizeObserver(),t&&t.forEach(e=>{this.addRemoves(e())}),this.on("pointerMove",e=>{this.setMousePoint(Ts(e,this.container))})}destroy(){this.removes.forEach(t=>t()),this.removes=[],this.removeAllListeners()}restart(){this.destroy(),this.start()}addRemoves(t){this.removes.push(t)}registerMouseEventListeners(){const t=U=>{this.emit("mouseDown",U)},e=U=>{this.emit("mouseUp",U)},o=U=>{this.emit("mouseMove",U)},r=U=>{this.emit("mouseOver",U)},n=U=>{this.emit("mouseOut",U)},a=U=>{this.emit("mouseEnter",U)},i=U=>{this.emit("mouseLeave",U)},l=U=>{this.emit("mouseClick",U)},c=U=>{this.emit("mouseDoubleClick",U)},u=U=>{this.emit("mouseWheel",U)},d=U=>{this.emit("mouseContextMenu",U)},h=U=>{this.emit("touchStart",U)},p=U=>{this.emit("touchEnd",U)},f=U=>{this.emit("touchCancel",U)},b=U=>{this.emit("touchMove",U)},w=U=>{this.emit("pointerDown",U)},x=U=>{this.emit("pointerUp",U)},v=U=>{this.emit("pointerCancel",U)},g=U=>{this.emit("pointerMove",U)},m=U=>{this.emit("pan",U)},_=U=>{this.emit("panStart",U)},k=U=>{this.emit("panMove",U)},Z=U=>{this.emit("panEnd",U)},ot=U=>{this.emit("panCancel",U)},R=U=>{this.emit("panLeft",U)},$=U=>{this.emit("panRight",U)},A=U=>{this.emit("panUp",U)},D=U=>{this.emit("panDown",U)},M=U=>{this.emit("pinch",U)},X=U=>{this.emit("press",U)},rt=U=>{this.emit("rotate",U)},Q=U=>{this.emit("swipe",U)},W=U=>{this.emit("swipeLeft",U)},at=U=>{this.emit("swipeRight",U)},G=U=>{this.emit("swipeUp",U)},j=U=>{this.emit("swipeDown",U)},gt=U=>{this.emit("tap",U)},ht=U=>{!U.target||this.container==U.target||this.container.contains(U.target)||this.emit("tapOutSide",U)},B=U=>{this.emit("inputChange",U,this.container.files)},P=U=>{this.emit("dragstart",U)},Yt=U=>{U.dataTransfer&&(U.dataTransfer.dropEffect="copy"),this.emit("dragover",U)},At=U=>{this.emit("dragenter",U)},Et=U=>{this.emit("dragend",U)},ee=U=>{U.dataTransfer,this.emit("drop",U,U.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",o,!1),this.container.addEventListener("mouseover",r,!1),this.container.addEventListener("mouseout",n,!1),this.container.addEventListener("mouseenter",a,!1),this.container.addEventListener("mouseleave",i,!1),this.container.addEventListener("click",l,!1),this.container.addEventListener("dblclick",c,!1),this.container.addEventListener("wheel",u,!1),this.container.addEventListener("contextmenu",d,!1),this.container.addEventListener("touchstart",h,!1),this.container.addEventListener("touchend",p,!1),this.container.addEventListener("touchcancel",f,!1),this.container.addEventListener("touchmove",b,!1),this.container.addEventListener("pointerdown",w,!1),this.container.addEventListener("pointerup",x,!1),this.container.addEventListener("pointercancel",v,!1),this.container.addEventListener("pointermove",g,!1),this.hammer.on("pan",m),this.hammer.on("panstart",_),this.hammer.on("panmove",k),this.hammer.on("panend",Z),this.hammer.on("pancancel",ot),this.hammer.on("panleft",R),this.hammer.on("panright",$),this.hammer.on("panup",A),this.hammer.on("pandown",D),this.hammer.on("pinch",M),this.hammer.on("press",X),this.hammer.on("rotate",rt),this.hammer.on("swipe",Q),this.hammer.on("swipeleft",W),this.hammer.on("swiperight",at),this.hammer.on("swipeup",G),this.hammer.on("swipedown",j),this.hammer.on("tap",gt),document.addEventListener("pointerdown",ht,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",B,!1),this.container.addEventListener("dragstart",P,!1),this.container.addEventListener("dragover",Yt,!1),this.container.addEventListener("dragenter",At,!1),this.container.addEventListener("dragend",Et,!1),this.container.addEventListener("drop",ee,!1);const Xt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",o,!1),this.container.removeEventListener("mouseover",r,!1),this.container.removeEventListener("mouseout",n,!1),this.container.removeEventListener("mouseenter",a,!1),this.container.removeEventListener("mouseleave",i,!1),this.container.removeEventListener("click",l,!1),this.container.removeEventListener("dblclick",c,!1),this.container.removeEventListener("wheel",u,!1),this.container.removeEventListener("contextmenu",d,!1),this.container.removeEventListener("touchstart",h,!1),this.container.removeEventListener("touchend",p,!1),this.container.removeEventListener("touchcancel",f,!1),this.container.removeEventListener("touchmove",b,!1),this.container.removeEventListener("pointerdown",w,!1),this.container.removeEventListener("pointerup",x,!1),this.container.removeEventListener("pointercancel",v),this.container.removeEventListener("pointermove",g,!1),this.hammer.off("pan",m),this.hammer.off("panstart",_),this.hammer.off("panmove",k),this.hammer.off("panend",Z),this.hammer.off("pancancel",ot),this.hammer.off("panleft",R),this.hammer.off("panright",$),this.hammer.off("panup",A),this.hammer.off("pandown",D),this.hammer.off("pinch",M),this.hammer.off("press",X),this.hammer.off("rotate",rt),this.hammer.off("swipe",Q),this.hammer.off("swipeleft",W),this.hammer.off("swiperight",at),this.hammer.off("swipeup",G),this.hammer.off("swipedown",j),this.hammer.off("tap",gt),document.removeEventListener("pointerdown",ht,!1),document.removeEventListener("touchstart",ht,!1),document.removeEventListener("mousedown",ht,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",B,!1),this.container.removeEventListener("dragstart",P,!1),this.container.removeEventListener("dragover",Yt,!1),this.container.removeEventListener("dragenter",At,!1),this.container.removeEventListener("dragend",Et,!1),this.container.removeEventListener("drop",ee,!1)};return this.addRemoves(Xt),Xt}registerTransitionEventListeners(){const t=r=>{this.emit("transitionstart",r)},e=r=>{this.emit("transitionend",r)};this.container.addEventListener("transitionstart",t,!1),this.container.addEventListener("transitionend",e,!1);const o=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",e,!1)};return this.addRemoves(o),o}registerAnimationEventListeners(){const t=r=>{this.emit("animationstart",r)},e=r=>{this.emit("animationend",r)};this.container.addEventListener("animationstart",t,!1),this.container.addEventListener("animationend",e,!1);const o=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",e,!1)};return this.addRemoves(o),o}registerResizeObserver(){const{on:t,destroy:e}=wy(this.container),o=t((n,a)=>{this.width=n,this.height=a,this.emit("resize",n,a)}),r=()=>{o(),e()};return this.addRemoves(r),r}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(o,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullDowning",r.dStartY)},end:(o,r)=>{r.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(o,r)=>{r.dStartY>0&&r.dStartY<e&&this.emit("pullUping",r.dStartY)},end:(o,r)=>{r.dStartY>=e&&this.emit("pullUp")}})}setMousePoint(t){this.mousePoint.x=t.x,this.mousePoint.y=t.y,this.mousePoint.dx=typeof t.dx=="number"?t.dx:0,this.mousePoint.dy=typeof t.dy=="number"?t.dy:0,this.mousePoint.dStartX=typeof t.dStartX=="number"?t.dStartX:0,this.mousePoint.dStartY=typeof t.dStartY=="number"?t.dStartY:0}captureDrag(t){return this.captureDragUsePointer(t)}captureDragUsePointer(t){let e,o;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",a),this.on("pointerUp",n),this.on("pointerCancel",n),o=Ts(l,this.container);const c={...o};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",a),this.off("pointerUp",n),this.off("pointerCancel",n),o=Ts(l,this.container);const c={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...o};o=Ts(l,this.container);const u={...o,dx:o.x-(c.x||0),dy:o.y-(c.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("pointerDown",r);const i=()=>{this.off("pointerDown",r)};return this.addRemoves(i),i}captureDragUseMouse(t){let e,o;const r=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",a,!1),document.addEventListener("mouseup",n,!1),o=Ts(l,this.container);const c={...o};e=c,this.setMousePoint(c),t?.start?.(l,c)},n=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",a,!1),document.removeEventListener("mouseup",n,!1),o=Ts(l,this.container);const c={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c={...o};o=Ts(l,this.container);const u={...o,dx:o.x-(c.x||0),dy:o.y-(c.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("mouseDown",r);const i=()=>{this.off("mouseDown",r)};return this.addRemoves(i),i}captureDragUseTouch(t){let e,o;const r=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",a),this.on("touchEnd",n),this.on("touchCancel",n);const c=l.changedTouches[0];o=Ts(c,this.container);const u={...o};e=u,this.setMousePoint(u),t?.start?.(c,u)},n=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",a),this.off("touchEnd",n),this.off("touchCancel",n);const c=l.changedTouches[0];o=Ts(c,this.container);const u={...o,dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(u),t?.end?.(c,u),e=null},a=l=>{l.preventDefault(),l.stopPropagation();const c=l.changedTouches[0],u={...o};o=Ts(c,this.container);const d={...o,dx:o.x-(u.x||0),dy:o.y-(u.y||0),dStartX:e?o.x-e.x:0,dStartY:e?o.y-e.y:0};this.setMousePoint(d),t?.move?.(c,d)};this.on("touchStart",r);const i=()=>{this.off("touchStart",r)};return this.addRemoves(i),i}}class zi{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"),o=document.createElement("video"),r=document.createElement("source"),n=new MediaSource;n.addEventListener("sourceopen",()=>t(!0)),r.src=URL.createObjectURL(n),r.media="(min-width:10px)",o.append(r),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(o),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(()=>{zi.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 Iy extends gr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=g0(this.source);if(t===0){this.emit("finish");return}let e,o,r=Cu(this.source,0);for(let n=1;n<t;n++)e=o,o=r,r=Cu(this.source,n),this.raw+=o,o&&this.step(o,r,e);r&&this.step(r,void 0,o),this.emit("finish")}step(t,e,o){t==`
|
|
60
|
+
`&&this.emit("newline"),this.act(t,e,o)}act(t,e,o){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":_s("whitespace",t)?(this.textchunk+=zd(this.entity),this.mode="text"):t==";"?(this.textchunk+=zd(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(o=="!"&&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(o=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,o)),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=="-"&&o=="-"&&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(!_s("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,o)}break;case"close tag name start":_s("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,o));break;case"close tag name":if(_s("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(_s("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":_s("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,o));break;case"attr":if(_s("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(!_s("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,o)}break;case"attr value":if(_s("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&&o!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function zd(s){const t={lt:60,"lt;":60,"AMP;":38,AMP:38,"GT;":62,GT:62,"QUOT;":34,QUOT:34,"apos;":39,"bull;":8226,"bullet;":8226,"copy;":169,copy:169,"deg;":176,deg:176};let e;return s.charAt(0)=="#"?s.charAt(1).toLowerCase()=="x"?e=parseInt(s.substring(2),16):e=parseInt(s.substring(1),10):e=t[s],e?String.fromCharCode(e):"&"+s}var Vd=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Fy(s,t={}){var e=1,o=1;function r(G){var j=G.match(/\n/g);j&&(e+=j.length);var gt=G.lastIndexOf(`
|
|
61
|
+
`);o=~gt?G.length-gt:o+G.length}function n(){var G={line:e,column:o};return function(j){return j.position=new a(G),f(),j}}function a(G){this.start=G,this.end={line:e,column:o},this.source=t.source}a.prototype.content=s;var i=[];function l(G){var j=new Error(t.source+":"+e+":"+o+": "+G);if(j.reason=G,j.filename=t.source,j.line=e,j.column=o,j.source=s,t.silent)i.push(j);else throw j}function c(){var G=h();return{type:"stylesheet",stylesheet:{source:t.source,rules:G,parsingErrors:i}}}function u(){return p(/^{\s*/)}function d(){return p(/^}/)}function h(){var G,j=[];for(f(),b(j);s.length&&s.charAt(0)!="}"&&(G=W()||at());)G!==!1&&(j.push(G),b(j));return j}function p(G){var j=G.exec(s);if(j){var gt=j[0];return r(gt),s=s.slice(gt.length),j}}function f(){p(/^\s*/)}function b(G){var j;for(G=G||[];j=w();)j!==!1&&G.push(j);return G}function w(){var G=n();if(!(s.charAt(0)!="/"||s.charAt(1)!="*")){for(var j=2;s.charAt(j)!=""&&(s.charAt(j)!="*"||s.charAt(j+1)!="/");)++j;if(j+=2,s.charAt(j-1)==="")return l("End of comment missing");var gt=s.slice(2,j-2);return o+=2,r(gt),s=s.slice(j),o+=2,G({type:"comment",comment:gt})}}function x(){var G=p(/^([^{]+)/);if(G)return Bs(G[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(j){return j.replace(/,/g,"")}).split(/\s*(?![^(]*\)),\s*/).map(function(j){return j.replace(/\u200C/g,",")})}function v(){var G=n(),j=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(j){if(j=Bs(j[0]),!p(/^:\s*/))return l("property missing ':'");var gt=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),ht=G({type:"declaration",property:j.replace(Vd,""),value:gt?Bs(gt[0]).replace(Vd,""):""});return p(/^[;\s]*/),ht}}function g(){var G=[];if(!u())return l("missing '{'");b(G);for(var j;j=v();)j!==!1&&(G.push(j),b(G));return d()?G:l("missing '}'")}function m(){for(var G,j=[],gt=n();G=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)j.push(G[1]),p(/^,\s*/);if(j.length)return gt({type:"keyframe",values:j,declarations:g()})}function _(){var G=n(),j=p(/^@([-\w]+)?keyframes\s*/);if(j){var gt=j[1];if(j=p(/^([-\w]+)\s*/),!j)return l("@keyframes missing name");var ht=j[1];if(!u())return l("@keyframes missing '{'");for(var B,P=b();B=m();)P.push(B),P=P.concat(b());return d()?G({type:"keyframes",name:ht,vendor:gt,keyframes:P}):l("@keyframes missing '}'")}}function k(){var G=n(),j=p(/^@supports *([^{]+)/);if(j){var gt=Bs(j[1]);if(!u())return l("@supports missing '{'");var ht=b().concat(h());return d()?G({type:"supports",supports:gt,rules:ht}):l("@supports missing '}'")}}function Z(){var G=n(),j=p(/^@host\s*/);if(j){if(!u())return l("@host missing '{'");var gt=b().concat(h());return d()?G({type:"host",rules:gt}):l("@host missing '}'")}}function ot(){var G=n(),j=p(/^@media *([^{]+)/);if(j){var gt=Bs(j[1]);if(!u())return l("@media missing '{'");var ht=b().concat(h());return d()?G({type:"media",media:gt,rules:ht}):l("@media missing '}'")}}function R(){var G=n(),j=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(j)return G({type:"custom-media",name:Bs(j[1]),media:Bs(j[2])})}function $(){var G=n(),j=p(/^@page */);if(j){var gt=x()||[];if(!u())return l("@page missing '{'");for(var ht=b(),B;B=v();)ht.push(B),ht=ht.concat(b());return d()?G({type:"page",selectors:gt,declarations:ht}):l("@page missing '}'")}}function A(){var G=n(),j=p(/^@([-\w]+)?document *([^{]+)/);if(j){var gt=Bs(j[1]),ht=Bs(j[2]);if(!u())return l("@document missing '{'");var B=b().concat(h());return d()?G({type:"document",document:ht,vendor:gt,rules:B}):l("@document missing '}'")}}function D(){var G=n(),j=p(/^@font-face\s*/);if(j){if(!u())return l("@font-face missing '{'");for(var gt=b(),ht;ht=v();)gt.push(ht),gt=gt.concat(b());return d()?G({type:"font-face",declarations:gt}):l("@font-face missing '}'")}}var M=Q("import"),X=Q("charset"),rt=Q("namespace");function Q(G){var j=new RegExp("^@"+G+"\\s*([^;]+);");return function(){var gt=n(),ht=p(j);if(ht){var B={type:G};return B[G]=ht[1].trim(),gt(B)}}}function W(){if(s[0]=="@")return _()||ot()||R()||k()||M()||X()||rt()||A()||$()||Z()||D()}function at(){var G=n(),j=x();return j?(b(),G({type:"rule",selectors:j,declarations:g()})):l("selector missing")}return Vi(c())}function Bs(s){return s?s.replace(/^\s+|\s+$/g,""):""}function Vi(s,t){var e=s&&typeof s.type=="string",o=e?s:t;for(var r in s){var n=s[r];Array.isArray(n)?n.forEach(function(a){Vi(a,o)}):n&&typeof n=="object"&&Vi(n,o)}return e&&Object.defineProperty(s,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),s}class Dy extends Iy{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,o)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,o)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const o=Fy(e);for(const r of o.stylesheet.rules)for(const n of r.declarations)for(const a of r.selectors)this.globalStyles[a]=this.globalStyles[a]||[],this.globalStyles[a].push(`${n.property}:${n.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,o)=>{let r=this.groups.length;for(;r--;)if(this.groups[r]!=this.currentItem){let n="",a="";for(const i in this.groups[r])i=="transform"?n=this.groups[r].transform:i=="class"&&this.globalStyles["."+this.groups[r][i]]?a=this.globalStyles["."+this.groups[r][i]].join(";")+";"+a:i=="id"&&this.globalStyles["#"+this.groups[r][i]]?a=this.globalStyles["#"+this.groups[r][i]].join(";")+";"+a:typeof this.currentItem[i]>"u"&&(this.currentItem[i]=this.groups[r][i]);typeof this.currentItem.transform>"u"?this.currentItem.transform=n:this.currentItem.transform+=" "+n,typeof this.currentItem.style>"u"?this.currentItem.style=a:this.currentItem.style=a+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),Yi(this.currentItem.style,this.currentItem,Xi)}switch(this.processAttrs(e,o),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 o=[],r;switch(t){case"svg":let n="",a="";if(e.width&&e.height)n=e.width,a=e.height;else if(e.viewBox){const i=e.viewBox.split(/\s+/gi);i.length==4&&(n=String(parseFloat(i[2])-parseFloat(i[0])),a=String(parseFloat(i[3])-parseFloat(i[1])))}n&&a&&this.items.push({type:"viewbox",width:n,height:a});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&&Yi(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+Bi(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),o=[this.grad.angle];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?o.push(r.color+":"+r.offset):o.push(r.color);this.idtops[this.grad.id]=o.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break;case"radialGradient":o=[];for(let i=0,l=this.grad.stops.length;i<l;i++)r=this.grad.stops[i],i&&i!=l-1?o.push(r.color+":"+r.offset):o.push(r.color);this.idtops[this.grad.id]=o.join("-"),this.items.forEach(i=>{i.fillid==this.grad.id&&(i.fill=this.idtops[this.grad.id])});break}for(const n in e){const a=e[n];if(Xi.includes(n)&&(this.currentItem[n]=a),n==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:n,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:n,stops:[]})),n==="style"&&Yi(a,this.currentItem,Xi),n==="transform"&&(this.currentItem.transform=a+(this.currentItem.transform||" ")),n==="fill"){const i=a.match(/url\(#([^)]+)\)/);if(i){const l=i[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}n==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+a+"z"),n==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=a),n==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=a)}}addToItems(){this.items.push(this.currentItem)}}function Bi(s,t,e,o,r,n){if(typeof r>"u"||typeof n>"u"){const a=s-e,i=t-o;return!a&&!i?0:(180+Math.atan2(-i,-a)*180/Math.PI+360)%360}else return Bi(s,t,r,n)-Bi(e,o,r,n)}function Yi(s,t,e){const o=(s+"").split(";"),r=/^\s+|\s+$/g;for(let n=0,a=o.length;n<a;n++){const i=o[n].split(":"),l=i[0].replace(r,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=i[1].replace(r,""))}}const Xi=["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 Bd{app;rootEl;ue;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,o){this.app=t,this.rootEl=me.createSVGElement("svg"),this.ue=_o(this.rootEl);const r=_o(this.app.container);r.empty(),r.insert(this.rootEl),e&&o?this.setSize(e,o):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(n,a)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=a.dx,this.dragDy+=a.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let a=n.parent;for(;a;)a.emit("clicked",n),a=a.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}setSize(t,e){return Bo(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return me.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof Cs&&t.shapes.forEach(e=>{this._addDrawShape(e)}))}path(t){(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow){e.el&&(e.el.remove(),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof Yn?e.el=this.text(e.text,e.x,e.y,Eu(e.getAttrs(),(r,n)=>typeof n=="string")):(e.el=me.createSvgPath(e.toSVGPathD(),e.id),this.ue.insert(e.el))),e.followMouse&&(!gn(e.x,this.app.mousePoint.x,5)||!gn(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const r=this.dragDx,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}else e.isDragging=!1;e instanceof Yn&&(e.setAttr("x",String(e.x)),e.setAttr("y",String(e.y))),e.frameUpdate(this.app.mousePoint);const o=e.toSVGPathD();if(this.attr(e,Eu(e.getAttrs(),(r,n)=>typeof n=="string")),this.attr(e,"d",o),!this.currentMouseInShape){const r=e.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||e.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;e.isMouseIn=r,r&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint)}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}delete(t){(Array.isArray(t)?t:[t]).forEach(e=>{e.el&&e.el.remove(),delete e.el,this.shapes=this.shapes.filter(o=>o.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&t.el.remove(),delete t.el}),this.ue.empty(),this.shapes=[]}attr(t,e,o){const r=t.el||t;return r instanceof SVGElement?e===void 0&&o===void 0?Bo(r):typeof e=="string"&&o===void 0?Bo(r,ls(e))||"":(typeof e=="object"?Bo(r,e):typeof e=="string"&&o!==void 0&&Bo(r,ls(e),o),this):this}circle(t,e,o){return this.path(new ne({x:t,y:e,radius:o}))}circleEl(t,e,o){const r=me.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(o)});return this.ue.insert(r),r}ellipse(t,e,o,r){return this.path(new Xd({x:t,y:e,rx:o,ry:r}))}ellipseEl(t,e,o,r){const n=me.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(o),ry:String(r)});return this.ue.insert(n),n}rect(t,e,o,r){return this.path(new Pe({x:t,y:e,width:o,height:r}))}rectEl(t,e,o,r){const n=me.createSVGElement("rect",{x:String(t),y:String(e),width:String(o),height:String(r)});return this.ue.insert(n),n}image(t,e,o,r,n){}text(t,e,o,r){const n=me.createSVGElement("text",{x:String(e),y:String(o)});return _o(n).html(t),this.attr(n,Object.assign({"alignment-baseline":"middle"},r)),this.ue.insert(n),n}textWithTspan(t,e,o,r){const n=r?.["line-height"]||"1.2em",a=me.createSVGElement("text",{x:String(e),y:String(o)});return t.split(`
|
|
62
|
+
`).forEach((i,l)=>{if(i.trim()){const c=me.createSVGElement("tspan",{x:String(e),dy:l>0?n:"0"});_o(c).html(i),_o(a).insert(c),this.attr(c,Object.assign({"alignment-baseline":"middle"},r))}}),this.ue.insert(a),a}}class $y extends Mo{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new Dy(t.svg).parse();for(let o=0,r=e.length;o<r;o++){const n=e[o];if(n.type=="viewbox"&&n.width&&n.height){if(this.svgWidth=parseFloat(n.width),this.svgHeight=parseFloat(n.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(n.type!="path"||!me.isSVGPath(n.path))continue;const a={};for(const u in n)u==="type"||u==="path"||u==="transform"||(a[u]=n[u]);const i=me.absolutizeSVGPath(me.parseSVGPath(n.path)),l=[];let c=[];for(let u=0,d=i.length;u<d;u++){const h=i[u];c.push(h),h[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const d=Rd(n.transform??"");d.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new re({...t,attrs:{...a,...t?.attrs||{}},d:u,originMatrix:d}))})}}shapeInit(){this.trim()}}class ne extends re{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}toSVGPathData(){return this.radius?[["m",0,-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["m",0,0]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return Oi(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const o=t/e;this.scalar(o)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,o=this.y;return{x:o*t.x-e*t.y,y:e*t.y-o*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}checkCollision(t){const e=t.x-this.x,o=t.y-this.y;if(Math.sqrt(e*e+o*o)<this.radius+t.radius){const n=Math.atan2(o,e),a={x:0,y:0},i=ks(-n,e,o),l=ks(-n,this.vx,this.vy),c=ks(-n,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 d=Math.abs(l.x)+Math.abs(c.x),h=this.radius+t.radius-Math.abs(a.x-i.x);a.x+=l.x/d*h,i.x+=c.x/d*h;const p=ks(n,a.x,a.y),f=ks(n,i.x,i.y);t.x=this.x+f.x,t.y=this.y+f.y,this.x=this.x+p.x,this.y=this.y+p.y;const b=ks(n,l.x,l.y),w=ks(n,c.x,c.y);this.vx=b.x,this.vy=b.y,t.vx=w.x,t.vy=w.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,o=t.wall.x,r=t.wall.y,n=t.wall.x+t.wall.width,a=t.wall.y+t.wall.height;this.x+this.radius>n?(this.x=n-this.radius,this.vx*=e):this.x-this.radius<o&&(this.x=o+this.radius,this.vx*=e),this.y+this.radius>a?(this.y=a-this.radius,this.vy*=e):this.y-this.radius<r&&(this.y=r+this.radius,this.vy*=e)}}class Yd extends re{points;isStraight;constructor(t){if(super(t),this.points=t.points,this.points.length<3)throw new Error("points length must >= 3");this.isStraight=typeof t?.isStraight=="boolean"?t.isStraight:!0}toSVGPathData(){const t=[],e=this.points.length;if(this.isStraight){t.push(["M",this.points[0].x,this.points[0].y]);for(let o=1;o<=e-1;o++)t.push(["L",this.points[o].x,this.points[o].y]);t.push(["Z"])}else{const o=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",o,r]);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.push(["Q",this.points[n].x,this.points[n].y,a,i])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,o,r])}return t}toCanvasContext(t){t.beginPath();const e=this.points.length;if(this.isStraight){t.moveTo(this.points[0].x,this.points[0].y);for(let o=1;o<=e-1;o++)t.lineTo(this.points[o].x,this.points[o].y);t.closePath()}else{const o=(this.points[0].x+this.points[e-1].x)/2,r=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(o,r);for(let n=0;n<e-1;n++){const a=(this.points[n].x+this.points[n+1].x)/2,i=(this.points[n].y+this.points[n+1].y)/2;t.quadraticCurveTo(this.points[n].x,this.points[n].y,a,i)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,o,r)}}isContainPoint(t,e){const o=this.points.length;let r=!1;const n=2e-10;for(let a=0,i=o-1;a<o;i=a,a++){const l=this.points[a].x,c=this.points[a].y,u=this.points[i].x,d=this.points[i].y;if(l===t&&c===e||u===t&&d===e||e===c&&e===d)return!0;if(e>=c&&e<d||e<c&&e>=d){const h=(u-l)/(d-c),p=l+h*(e-c);if(p===t||Math.abs(p-t)<n)return!0;p>t&&(r=!r)}}return r}[Symbol.iterator](){let t=-1;return{next:()=>({value:t<=this.points.length-1?this.points[++t]:void 0,done:t>=this.points.length})}}}class Pe extends re{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,o,r,n,a,i,l){const c=new bo({x:t,y:e,c1x:o,c1y:r,c2x:n,c2y:a,toX:i,toY:l});return new Pe(c.getBoundingClientRect())}getBoundingClientRect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}toSVGPathData(){return this.borderRadius?[["m",this.borderRadius,0],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["m",0,0],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}class Xd extends re{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return{x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2}}toSVGPathData(){return[["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class Bn extends re{constructor(t){super(t)}toSVGPathData(){return[["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class Gi extends re{constructor(t){super(t)}toSVGPathData(){return[["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class Ly extends re{rx;ry;constructor(t){super(t),this.rx=t?.rx||10,this.ry=t?.ry||10}toSVGPathData(){return[["m",0,0],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]]}}class Ay extends re{rx;ry;constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50}toSVGPathData(){return[["m",0,0+this.ry*.3],["C",0,0,0-this.rx/2,0,0-this.rx/2,0+this.ry*.3],["C",0-this.rx/2,0+(this.ry+this.ry*.3)/2,0,0+(this.ry+this.ry*.3)/1.4,0,0+this.ry],["C",0,0+(this.ry+this.ry*.3)/1.8,0+this.rx/2,0+(this.ry+this.ry*.3)/2,0+this.rx/2,0+this.ry*.3],["C",0+this.rx/2,0,0,0,0,0+this.ry*.3],["z"]]}}class Ny extends re{r;constructor(t){super(t),this.r=t?.r||20}toSVGPathData(){const t=[["m",0,-this.r]];for(let e=0;e<6;e+=1){const o=288+e*144,r=this.r*Math.cos(Bt(o)),n=this.r*Math.sin(Bt(o));t.push(["l",r,n])}return t}}class My extends re{constructor(t){super(t)}toSVGPathData(){return[["M",0,0],["C",15,0,15,-40,5,-30],["L",0,0],["C",-15,0,-15,-40,-5,-30],["L",0,0],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]]}}class zy extends re{constructor(t){super(t),this.originD="m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z"}}class Vy extends Mo{constructor(t){super(t);const e=new we({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),o=30+Math.random()*30,r=new we({...t,x:this.x,y:this.y-o,diffYInGroup:-o,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),n=60+Math.random()*40,a=new we({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,r,a])}}class Yn extends re{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.getAttrs()});const e=xs(this.getAttr("fontSize"),10).number,o=xs(this.getAttr("fontWeight"),400).number,r=this.measureText(this.text,e,o);this.width=r.width,this.height=r.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}measureText(t,e=12,o=400){const r=document.createElement("span");r.style.visibility="hidden",r.style.margin="0",r.style.padding="0",r.style.inset="0",r.style.whiteSpace="nowrap",r.style.overflow="visible",r.style.fontSize=e+"px",r.style.fontWeight=o.toString(),r.innerText=t,document.body.appendChild(r);const n=r.offsetWidth,a=r.offsetHeight;return document.body.removeChild(r),{width:n,height:a}}getFixedWidthText(t,e,o=12,r=400,n=!0){let a="";if(!t||e<o)return a;const i=t.split(""),l="...";let c=n?this.measureText(l,o,r).width:0;for(let u=0,d=i.length;u<d;u++)if(c+=this.measureText(i[u],o,r).width,c>e){n&&(a+=l);break}else a+=i[u];return a}}class By extends Mo{text;bg;padding;offset;isShow;textShape;bgShape;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!1,this.textShape=new Yn({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:ge(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new Pe({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.getAttrs(),fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}shapeInit(){ni(()=>{this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.text=this.text,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.width=this.textShape.width+this.padding*2,this.bgShape.height=this.textShape.height+this.padding*2,this.bgShape.isShow=this.isShow})}}class Gd extends Cs{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new ne;p1Offset=10;p2=new ne;p2Offset=40;p3=new ne;p3Offset=10;p4=new ne;p4Offset=10;direction=1;sectorArc;line12;line23;textShape;tipShape;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"",this.sectorArc=new Yy({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.getAttrs()},{strokeWidth:"0"})}),this.addShape(this.sectorArc);const e=Object.assign({...this.getAttrs()},{fill:"none"});this.line12=new we({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new we({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Yn({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tipShape=new By({x:0,y:0,text:this.tip,isShow:!1}),this.tip&&this.addShape(this.tipShape)}frameUpdate(t){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sectorArc.isMouseIn,this.line23.isShow=this.sectorArc.isMouseIn,this.textShape.isShow=this.sectorArc.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:o,dy:r}=Vs(Bt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+o,this.p1.y=this.y+r;const{dx:n,dy:a}=Vs(Bt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+n,this.p2.y=this.y+a,this.line12.x=this.p1.x,this.line12.y=this.p1.y,this.line12.toX=this.p2.x,this.line12.toY=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.x=this.p2.x,this.line23.y=this.p2.y,this.line23.toX=this.p3.x,this.line23.toY=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sectorArc.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=t.x,this.tipShape.y=t.y):(this.tipShape.isShow=!1,this.tipShape.x=t.x,this.tipShape.y=t.y)}}class Yy extends re{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;durationTime;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.durationTime=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.durationTime,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.durationTime,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=Vs(Bt(this.startDegree),this.radius),{dx:o,dy:r}=Vs(Bt(this.endDegree),this.radius);return[["m",0,0],["l",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,o-t,r-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Bt(this.startDegree),Bt(this.endDegree),!1),t.closePath()}containPoint(t,e){const o=Ri(this.x,this.y,t,e),r=Ge(No(this.x,this.y,t,e));return o<=this.radius&&r>=this.startDegree&&r<=this.endDegree}}class Xy extends Cs{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new re({...t,d:[["M",10,0],["L",-10,10],["L",-5,0],["L",-10,-10],["L",10,0],["Z"]]}),this.addShape(this.ship),this.flame=new re({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){ni(()=>{this.ship.x=this.x,this.ship.y=this.y,this.flame.x=this.x,this.flame.y=this.y,this.flame.isShow=this.showFlame})}}class Ud extends Mo{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,o=t?.max||100,r=t?.step||1,n=Iu(e,o,r);this.value=n(typeof t?.defaultValue=="number"?le(t.defaultValue,e,o):e);const a=this.value/(o-e),i=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,d=t?.barColor||vt.colorGrayF5,h=t?.handleColor||vt.colorPrimary;this.backgroundRect=new Pe({x:this.x,y:this.y,width:i,height:l,borderRadius:u,attrs:{fill:d},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new Pe({x:this.x,y:this.y,width:i*a,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new ne({x:this.x+i*a,y:this.y+u,diffXInGroup:i*a,diffYInGroup:u,radius:c,alongPath:new Ke({x:this.x,y:this.y+u,d:[["m",0,0],["l",i,0]]}),attrs:{fill:h},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",p=>{this.occupyRect.width=le(this.occupyRect.width+p,0,i),this.value=n((this.handle.x-this.x)/i*(o-e)+e),this.emit("change",this.value)})}}class Vo extends Mo{width;height;cornerRadius;controlPoint;mainRect;rightPoint;constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.controlPoint=new ne({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new Pe({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,diffXInGroup:-this.cornerRadius,diffYInGroup:-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),this.rightPoint=new ne({...t,x:this.x+this.width,y:this.y,diffXInGroup:this.width,radius:2}),this.addShape([this.mainRect,this.controlPoint,this.rightPoint])}getPin(){return{x:this.controlPoint.x+Math.cos(Bt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Bt(this.controlPoint.degree))*this.width}}}class Ui extends re{extendDegree;radius;startDegree;endDegree;diffDegree;constructor(t){super(t),this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth;this.radius=e-e*Math.abs(Math.sin(Bt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Bt(this.extendDegree))),this.diffDegree=t.endDegree-t.startDegree,this.startDegree=180+t.startDegree-this.extendDegree,this.endDegree=180+t.endDegree+this.extendDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.color||"none"})}setPercent(t){this.endDegree=this.startDegree+(this.diffDegree+this.extendDegree*2)*t}toSVGPathData(){const{dx:t,dy:e}=Vs(Bt(this.startDegree),this.radius),{dx:o,dy:r}=Vs(Bt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,o-t,r-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Bt(this.startDegree),Bt(this.endDegree),!1)}}let jd=class extends Mo{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,o=t?.endDegree||180,r=t?.extendDegree||15,n=t?.lineWidth||12;this.bgColor=t?.bgColor||"#B3C6E7",this.startColor=t?.startColor||"#5A82F0",this.endColor=t?.endColor||"#66B3FF",this.percent=t?.percent||0,this.indicatorLineCount=22+1;const a=20,i=2,l=17;this.ringBg=new Ui({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:o,extendDegree:r,lineWidth:n,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new Ui({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:o,extendDegree:r,lineWidth:n}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+a;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new we({...t,centerX:this.ringBg.x,centerY:this.ringBg.y,x:this.ringBg.x,y:c,toX:this.ringBg.x,toY:c+l,degree:this.ringBg.startDegree+90+(o-e+r*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(i),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,o)=>{this.shapes.forEach(r=>{r!=o&&(r.x+=t,r.y+=e)})})}frameUpdate(t,e){const o=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),r=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const n=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+o,-r,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:n})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let n=0;n<this.indicatorLineCount;n++){const a=n/(this.indicatorLineCount-1)<=this.percent;this.lines[n].setAttr({stroke:a&&e?e.createLinearGradient(0,0,this.lines[n].toX-this.lines[n].x,this.lines[n].toY-this.lines[n].y,{0:this.startColor,1:this.endColor}):a?this.startColor:this.bgColor})}}};class Gy extends Cs{fettis=[];constructor(t,e,o){super();const{shape:r,x:n,y:a,particleCount:i,angle:l,spread:c,startVelocity:u,decay:d,gravity:h,drift:p,ticks:f,colors:b,scalar:w,flat:x}=Object.assign({shape:Pe,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Ty,scalar:1,flat:!1},o||{}),v=Bt(l),g=Bt(c);let m=i;for(;m--;){const _=b[m%b.length],k=new r({x:t*n,y:e*a,width:10,height:10,scalar:w,attrs:{fill:_},independentTransformInGroup:!0});this.addShape(k),this.fettis.push({shape:k,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-v+(.5*g-Math.random()*g),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:f,decay:d,drift:p,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:h*3,scalar:w,flat:x,color:ge(_)})}}frameUpdate(t){this.fettis.length&&(this.fettis=this.fettis.filter(e=>{e.shape.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.shape.x+10*e.scalar,e.wobbleY=e.shape.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.shape.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.shape.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);const o=e.tick++/e.totalTicks,r=e.shape.x+e.random*e.tiltCos,n=e.shape.y+e.random*e.tiltSin,a=e.wobbleX+e.random*e.tiltCos,i=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-o).toString()),e.shape.degree=Ge(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(a-r)*.1,e.shape.scalarY=Math.abs(i-n)*.1,e.tick<e.totalTicks}))}}class Ue{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(o=>{o.run(),t?.wall&&o.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let o=0,r=e-1;o<r;o++)for(let n=o+1;n<e;n++)this.shapes[o].checkCollision(this.shapes[n])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,o)=>{e.run();for(let r=o+1;r<t;r++)e.checkCollision(this.shapes[r]),e.gravitateTo(this.shapes[r])})}springChain(t){this.shapes.forEach((e,o)=>{o>0&&e.runSpringTo(this.shapes[o-1],t)})}springConnect(t){const e=Qs(t?.springLength,100);this.shapes.forEach(o=>{o.isDragging||this.shapes.filter(r=>r.id!==o.id).forEach(r=>{const n=No(o.x,o.y,r.x,r.y);o.runSpringTo({x:r.x-Math.cos(n)*e,y:r.y-Math.sin(n)*e},t)})})}springMass(t,e){const o=this.shapes.length,r=[];return this.shapes.forEach((n,a)=>{n.run(e),n.x>t.x+t.width?n.x=t.x:n.x<t.x&&(n.x=t.x+t.width),n.y>t.y+t.height?n.y=t.y:n.y<t.y&&(n.y=t.y+t.height);for(let i=a+1;i<o;i++)r.push([n.x,n.y,this.shapes[i].x,this.shapes[i].y,n.springMassTo(this.shapes[i],e)])}),r}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let r=0;r<t;r++){const n=this.shapes[r].initPathD();this.shapes[r].frameStart();const a=this.shapes[r+1].initPathD();this.shapes[r+1].frameStart();const i=Math.max(n.polymorphPoints.length,a.polymorphPoints.length);e[r]=Ke.getPathInterpolator(n.expendFill(i),a.expendFill(i))}const o=new re({d:e[0](0)});return r=>{const n=Te(t*r,6),a=Math.min(Math.floor(n),t-1),i=Te(n-a,6);o.originD=e[a](i);const l=this.shapes[a].getAttr("fill","none"),c=this.shapes[a+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&o.setAttr("fill",Ft.gradient(l,c,i).toString());const u=this.shapes[a].getAttr("stroke","none"),d=this.shapes[a+1].getAttr("stroke","none");return typeof u=="string"&&typeof d=="string"&&o.setAttr("stroke",Ft.gradient(u,d,i).toString()),o}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const o=[];this.shapes.forEach(i=>{let l;i instanceof Cs?(l=i,l.sortPathD()):(l=new Cs,l.addShape(i)),o.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),o.forEach(i=>{i!==e&&i.expendFill(e)});const r=[];o.forEach((i,l)=>{i.shapes.forEach((c,u)=>{r[u]=r[u]||[],r[u][l]=c})});const n=[];r.forEach(i=>{n.push(new Ue(i).polymorph())});const a=new Cs;return n.forEach(i=>{a.addShape(i(0))}),i=>(n.forEach(l=>{l(i)}),a)}polymorphTween(t=6e3,e){const o=this.shapes.findIndex(i=>i instanceof Cs)>=0?this.polymorphGroup():this.polymorph(),r=o(0),n=e?.onUpdate,a=new Fe({frameDuration:t});a.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(i,l)=>{o(i.t),n?.(i,l),e?.draw?.(r)}})),a.play()}static generatePointsShape(t,e,o,r){const n=[];for(let a=0;a<r;a++){const i=a/r*2*Math.PI,{dx:l,dy:c}=Vs(i,o);n.push({x:t+l,y:e+c})}return new Yd({points:n})}static generateRosettaShape(t,e,o,r,n){if(n==0)throw new Error("no dividing by zero, please");const a=[],i=360/n;for(let l=0;l<n;l+=1){const c=i*l*Math.PI/180,u=t+2*o*Math.cos(c),d=e+2*o*Math.sin(c);a.push(new $i({x:t,y:e,rx:o,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:d})),a.push(new $i({x:u,y:d,rx:o,ry:r,xAxisRotate:i*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new re({d:Ke.fromLines(a)})}}function Uy(s){return window.URL.createObjectURL(s)}const Hd=new ii;async function Wd(s,t=6e4){const e=typeof s=="string"?s:Uy(s);return new Promise((o,r)=>{const n=Hd.get(e);if(n)return o(n);const a=new Image;a.onload=l=>{clearTimeout(i);const c=a.naturalWidth||a.width,u=a.naturalHeight||a.height,d={width:c,height:u,aspectRatio:c/u,imageData:ky(a),element:a};Hd.set(e,d),o(d),a.onerror=a.onload=null},a.onerror=l=>{clearTimeout(i),r(l)},a.src=e;const i=setTimeout(()=>{r("Timeout!")},t)})}async function jy(s,t=6e4){return new Promise((e,o)=>{const r=document.createElement("script");r.type="text/javascript",r.async=!1,r.onload=a=>{clearTimeout(n),e(a),r.onerror=r.onload=null},r.onerror=a=>{clearTimeout(n),o(a)},r.src=s;const n=setTimeout(()=>{o("Timeout!")},t);document.body.appendChild(r)})}function Zd(s,t){const e=document.createElement("a");e.style.visibility="hidden",e.download=t,typeof s=="string"?e.href=s:e.href=window.URL.createObjectURL(s),e.click()}function Bo(s,t,e){if(t===void 0&&e===void 0)return qd(s);if(typeof t=="string"&&e===void 0)return Hy(s,t);let o={};typeof t=="object"?o=t:typeof t=="string"&&typeof e=="string"&&(o[t]=e),wd(s,r=>{Object.entries(o).forEach(([n,a])=>{r.props[n]=a})})}function qd(s){const t={};for(let e=0,o=s.attributes,r=o.length;e<r;e++){const n=o[e];n.nodeName&&n.nodeValue&&(n.nodeName==="style"?t[n.nodeName]=Fd(s):t[n.nodeName]=n.nodeValue)}return t}function Hy(s,t){return t==="style"?Fd(s):s.getAttribute(ls(t))}function Qd(s,t,e){return s.setAttribute(ls(t),e)}function ji(s,t){return new RegExp("(?:^|\\s+)"+t+"(?:\\s+|$)").test(s.className)||!1}function _o(s){return{el:s,isRoot:()=>/(html|body)/i.test(s.tagName)||s===document.documentElement,isActive:()=>s===document.activeElement&&(s.type||s.href),parent:()=>s.parentElement,parents:function(t=s,e=[]){return!t||t.parentElement===null?e:this.parents(t.parentElement,e.concat([t]))},scrollParent:function(){const t=this.parents();for(let e=0,o=t.length;e<o;e++)if(/(auto|scroll)/.test(Sr(t[e],"overflow")+Sr(t[e],"overflow-y")+Sr(t[e],"overflow-x")))return t[e];return document.scrollingElement||document.documentElement},contains:t=>s.contains?s!=t&&s.contains(t):!!(s.compareDocumentPosition(t)&16),siblings:()=>Array.prototype.slice.call(s.parentElement?.children).filter(t=>t!==s),nextElementSibling:()=>s.nextElementSibling,previousElementSibling:()=>s.previousElementSibling,closest:t=>s.closest(t),shadowRoot:()=>s.shadowRoot,isInput:()=>s.tagName==="INPUT"||s instanceof HTMLInputElement,isSelect:()=>s.tagName==="SELECT"||s instanceof HTMLSelectElement,isTextArea:()=>s.tagName==="TEXTAREA"||s instanceof HTMLTextAreaElement,isInputCheckbox:function(){return this.isInput(s)&&s.getAttribute("type")==="checkbox"},isInputRadio:function(){return this.isInput(s)&&s.getAttribute("type")==="radio"},isInputText:function(){return this.isInput(s)&&s.getAttribute("type")==="text"},isInputNumber:function(){return this.isInput(s)&&s.getAttribute("type")==="number"},changeSelected:function(t){if(this.isSelect()){const e=s.options;for(let o=0,r=e.length;o<r;o++)e[o].selected=e[o].value==t}},changeRadioChecked:function(t){if(this.isInputRadio()){const e=document.getElementsByName(s.name);for(let o=0,r=e.length;o<r;o++){const n=e[o];n.checked=n.value==t}}},changeCheckboxChecked:function(t){this.isInputCheckbox()&&(s.checked=t)},insert:(t,e="append")=>{typeof t=="string"?s[e](Wy(t)):s[e](t)},html:function(t){if(typeof t=="string"){s.innerHTML=t;const e=Kd(s);e!=s&&(s=e)}else this.insert(t,"replaceWith")},empty:function(){this.html("")},text:t=>{s.textContent=t},getInnerText:()=>{if(s instanceof SVGElement)return"";let t=s.innerText;if(!t){const e=s.querySelector("slot")?.assignedNodes()||[];let o=0;for(;!t&&o<=e.length-1;)"innerText"in e[o]&&(t=e[o].innerText),o++}return t},remove:()=>s.remove()}}function Wy(s){const t=document.createElement("template");return t.innerHTML=s,t.content.childNodes.forEach(e=>{const o=Kd(e);o!=e&&t.content.replaceChild(o,e)}),t.content}function Kd(s){return s.tagName=="SCRIPT"&&(s=Jd(s)),s.querySelectorAll&&s.querySelectorAll("script").forEach(t=>{t.parentNode?.replaceChild(Jd(t),t)}),s}function Jd(s){const t=s.ownerDocument.createElement("script");t.text=s.text;const e=s.attributes;for(let o=0,r=e.length;o<r;o++)t.setAttribute(e[o].name,e[o].value);return t}async function Hi(s){if(navigator.clipboard)return await navigator.clipboard.writeText(s);{const t=document.createElement("textarea");return t.value=s,t.style.opacity="0",t.style.position="fixed",t.style.top="0",t.style.left="0",t.focus(),t.select(),document.execCommand("copy")}}function Zy(s,t={},e=[],o){return{tag:s,props:t,children:e,el:o}}function Wi(s){return Zy(s.tagName,qd(s),Array.from(s.children).map(t=>Wi(t)),s)}function Xn(s,t=document.documentElement){if(s.el)return s.el;if(s.el=document.createElement(s.tag),s.props)for(const e in s.props){const o=s.props[e];e.startsWith("on")?s.el.addEventListener(e.slice(2).toLowerCase(),o):e==="style"?Ai(s.el,s.props[e]):Qd(s.el,e,o)}return s.children&&(typeof s.children=="string"?s.el.appendChild(document.createTextNode(s.children)):s.children.forEach(e=>{Xn(e,s.el)})),t.appendChild(s.el),s.el}function tf(s,t){if(!s.el)return;if(s.tag!==t.tag){(s.el.parentElement||document.body).replaceChild(Xn(t),s.el);return}const e=t.el=s.el,o=s.props,r=t.props;for(const i in o)i in r||(i.startsWith("on")?e.removeEventListener(i.slice(2).toLowerCase(),o[i]):e.removeAttribute(i));for(const i in r){const l=o[i],c=r[i];if(c!=l)if(i.startsWith("on")){const u=i.slice(2).toLowerCase();e.removeEventListener(u,l),e.addEventListener(u,c)}else if(i==="style"){for(const u in l)u in c||Dd(e,u);Ai(e,c)}else Qd(e,i,c)}const n=s.children||[],a=t.children||[];if(typeof a=="string")e.innerHTML=a;else if(typeof n=="string")e.innerHTML="",a.forEach(i=>{Xn(i,e)});else{const i=Math.min(n.length,a.length);for(let l=0;l<i;l++)tf(n[l],a[l]);a.length>n.length&&a.slice(n.length).forEach(l=>{Xn(l,e)}),a.length<n.length&&n.slice(a.length).forEach(l=>{l.el&&e.removeChild(l.el)})}}function qy(s){const t=document.documentElement,e=window.top===window.self?window.devicePixelRatio:1;t.dataset.dpr=e;let o=100;const r=function(){const n=Math.min(t.clientWidth,s);t.dataset.width=n,t.dataset.rem=o=Math.round(100*(n/s)),t.style.fontSize=o+"px"};r(),window.rem2px=function(n){return n=parseFloat(n),n*o},window.px2rem=function(n){return n=parseFloat(n),n/o},window.addEventListener&&window.addEventListener("orientationchange"in window?"orientationchange":"resize",r,!1)}class Zi{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new Di(this.app.container,this.app.width,this.app.height,e),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(o,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(const o of this.shapes)if(this.currentMouseInShape==o){o.emit("clicked");let r=o.parent;for(;r;)r.emit("clicked",o),r=r.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t.usePathDtoCanvasContext||(this.ctx.translate(t.x,t.y),this.ctx.rotate(Bt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalarX,t.scalarY,t.cX,t.cY))}_addDrawShape(t){this.shapes.push(t),t instanceof Cs&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(const e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),Qy(this.ctx,e.getAttrs()),e.followMouse&&(!gn(e.x,this.app.mousePoint.x,5)||!gn(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const r=this.dragDx,n=this.dragDy;if(this.dragDx=0,this.dragDy=0,r||n){if(e.x+=r,e.y+=n,e.alongPath){const a=e.alongPath.closestPoint(e.x,e.y);e.x=a.point.x-e.cX,e.y=a.point.y-e.cY}e.emit("draging",r,n)}}else e.isDragging=!1;e.frameUpdate(this.app.mousePoint,this.ctx),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill();const o=this.ctx.currentPath2D;if(!this.currentMouseInShape){const r=this.ctx.isPointInPath(o,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(o,this.app.mousePoint.x,this.app.mousePoint.y)||!1;e.isMouseIn=r,r&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint),this.ctx.restore()}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}drawMouseMoveLine(t="line",e){switch(t){case"brush":const o=e?.brushSize??10,r=e?.brushDensity??50,n=e?.brushColor??"#000000",a=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),i=a.data,l=ge(n);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<r;c++){const u=Math.random()*Math.PI*2,d=Math.random()*o,h=this.app.mousePoint.x+Math.cos(u)*d|0,p=this.app.mousePoint.y+Math.sin(u)*d|0,f=(h+p*a.width)*4;i[f]=l.r,i[f+1]=l.g,i[f+2]=l.b,i[f+3]=255}this.ctx.putImageData(a)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}function Qy(s,t){for(const e in t){const o=t[e];switch(e){case"fill":o!=="none"&&(s.fillStyle=o);break;case"stroke":o!=="none"&&(s.strokeStyle=o);break;case"stroke-width":case"strokeWidth":s.lineWidth=Number(o);break;case"stroke-linecap":case"strokeLinecap":s.lineCap=o;break;case"stroke-linejoin":case"strokeLinejoin":switch(o){case"round":case"bevel":case"miter":s.lineJoin=o;break;default:s.lineJoin="miter";break}break;case"stroke-miterlimit":case"strokeMiterlimit":s.miterLimit=Number(o);break;case"stroke-opacity":case"strokeOpacity":break;case"stroke-dashoffset":case"strokeDashoffset":s.lineDashOffset=Number(o);break;case"stroke-dasharray":case"strokeDasharray":typeof o=="string"&&s.setLineDash(o.split(/\s+/).map(r=>Number(r)));break;case"cursor":break;case"font":typeof o=="string"&&(s.font=o);break;case"font-size":case"fontSize":s.font+=` ${o}`;break;case"font-family":case"fontFamily":s.font+=` ${o}`;break;case"font-weight":case"fontWeight":break;case"font-style":case"fontStyle":break;case"text-anchor":case"textAnchor":switch(o){case"middle":s.textAlign="center";break;case"end":s.textAlign="end";break;case"start":s.textAlign="start";break}break;case"alignment-baseline":case"alignmentBaseline":switch(o){case"middle":case"bottom":case"top":case"alphabetic":case"hanging":case"ideographic":s.textBaseline=o;break;default:s.textBaseline="alphabetic";break}break}}}class Ky{map;constructor(t,e=120.619585,o=31.299379,r=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,o),r)}}const Jy=q({__name:"Icon.ce",props:{icon:{default:"mdi-light:home"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("span",{class:"icon",style:N(["color: "+e.color])},[ct(Ct(fd),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),t1=`.icon[data-v-7966389b]{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font-size:1em}
|
|
63
|
+
`,it=(s,t)=>{const e=s.__vccOpts||s;for(const[o,r]of t)e[o]=r;return e},ef=it(Jy,[["styles",[t1]],["__scopeId","data-v-7966389b"]]),e1=q({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("span",{class:"icon",style:N(["color: "+e.color])},[ct(Ct(fd),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),Rx="",Ss=it(e1,[["__scopeId","data-v-3f9d90d2"]]),s1={class:"loading-11",ref:"loading11"},o1={class:"container container-1"},r1={class:"container container-2"},n1={class:"container container-3"},a1=q({__name:"Loading11",props:{color:{default:vt.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,o)=>(L(),V("div",s1,[E("div",{class:"loading-11-inner",style:N({width:t.width,height:t.width})},[E("div",o1,[E("div",{class:"dot dot-1",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:N({backgroundColor:t.color})},null,4)]),E("div",r1,[E("div",{class:"dot dot-1",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:N({backgroundColor:t.color})},null,4)]),E("div",n1,[E("div",{class:"dot dot-1",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:N({backgroundColor:t.color})},null,4)])],4)],512))}}),Ix="",Gn=it(a1,[["__scopeId","data-v-f95fac77"]]),i1={key:0,class:"loading"},xo=it(q({customOptions:{Loading11:Gn},inheritAttrs:!0,__name:"Button.ce",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(o.borderColor),i=I(o.bgColor),l=I(o.fontColor),c=I(o.borderColor),u=I(o.bgColor);function d(m){switch(m){case"outline":a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorGrayFF,l.value=o.fontColor??vt.colorPrimary,c.value=a.value,u.value=i.value;break;case"fullfilled":default:a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorPrimary,l.value=o.fontColor??vt.colorGrayFF,c.value=a.value,u.value=i.value;break}}St(()=>o.stylePattern,()=>{d(o.stylePattern)},{immediate:!0});const h=I(o.disabled?"0.6":"1"),p=I(o.disabled?"not-allowed":"pointer");let f=!1;const b=()=>{o.disabled||(f=!0,a.value=ge(c.value).lighten(.05).toString(),i.value=ge(u.value).lighten(.05).toString())},w=()=>{o.disabled||(f=!1,a.value=c.value,i.value=u.value)},x=I(!1),g=$u(()=>{o.disabled||x.value||(a.value=ge(c.value).darken(.05).toString(),i.value=ge(u.value).darken(.05).toString(),setTimeout(()=>{f?b():w()},150),r("yz-click"),r("click"),o.asyncClick&&(x.value=!0,o.asyncClick().then(()=>{x.value=!1}).catch(()=>{x.value=!1})))},500);return t({el:n}),(m,_)=>(L(),V("div",{ref_key:"el",ref:n,class:"button",style:N([`opacity: ${h.value}`,`border: 1px solid ${a.value}`,`background-color: ${i.value}`,`color: ${l.value}`,`border-radius: ${o.borderRadius}`,`width: ${o.width}`,`height: ${o.height}`,`line-height: ${o.height}`,`font-size: ${o.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:b,onMouseleave:w,onClick:_[0]||(_[0]=(...k)=>Ct(g)&&Ct(g)(...k))},[E("label",{class:"label truncate",style:N({padding:"0 "+m.padding,cursor:p.value})},[x.value?(L(),V("div",i1,[ct(Gn,{color:l.value},null,8,["color"])])):Rt("",!0),kt(m.$slots,"default",{},()=>[m.icon&&m.iconPosition==="left"?(L(),Lt(Ss,{key:0,icon:m.icon,color:l.value,style:N({marginRight:Ct(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0),E("span",{style:N({cursor:p.value})},yt(m.label),5),m.icon&&m.iconPosition==="right"?(L(),Lt(Ss,{key:1,icon:m.icon,color:l.value,style:N({marginLeft:Ct(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0)],!0)],4)],36))}}),[["styles",[`.button[data-v-4d6b5d68]{box-sizing:border-box;display:inline-flex;justify-content:center;align-items:center;z-index:0}.label[data-v-4d6b5d68]{display:inline-flex;justify-content:center;align-items:center}.loading[data-v-4d6b5d68]{margin-right:6px}
|
|
64
|
+
`]],["__scopeId","data-v-4d6b5d68"]]),l1={key:0,class:"loading"},c1=q({customOptions:{Loading11:Gn},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},width:{default:"auto"},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(o.borderColor),i=I(o.bgColor),l=I(o.fontColor),c=I(o.borderColor),u=I(o.bgColor);function d(m){switch(m){case"outline":a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorGrayFF,l.value=o.fontColor??vt.colorPrimary,c.value=a.value,u.value=i.value;break;case"fullfilled":default:a.value=o.borderColor??vt.colorPrimary,i.value=o.bgColor??vt.colorPrimary,l.value=o.fontColor??vt.colorGrayFF,c.value=a.value,u.value=i.value;break}}St(()=>o.stylePattern,()=>{d(o.stylePattern)},{immediate:!0});const h=I(o.disabled?"0.6":"1"),p=I(o.disabled?"not-allowed":"pointer");let f=!1;const b=()=>{o.disabled||(f=!0,a.value=ge(c.value).lighten(.05).toString(),i.value=ge(u.value).lighten(.05).toString())},w=()=>{o.disabled||(f=!1,a.value=c.value,i.value=u.value)},x=I(!1),g=$u(()=>{o.disabled||x.value||(a.value=ge(c.value).darken(.05).toString(),i.value=ge(u.value).darken(.05).toString(),setTimeout(()=>{f?b():w()},150),r("yz-click"),r("click"),o.asyncClick&&(x.value=!0,o.asyncClick().then(()=>{x.value=!1}).catch(()=>{x.value=!1})))},500);return t({el:n}),(m,_)=>(L(),V("div",{ref_key:"el",ref:n,class:"button",style:N([`opacity: ${h.value}`,`border: 1px solid ${a.value}`,`background-color: ${i.value}`,`color: ${l.value}`,`border-radius: ${o.borderRadius}`,`width: ${o.width}`,`height: ${o.height}`,`line-height: ${o.height}`,`font-size: ${o.fontSize}`,`cursor: ${p.value}`,"user-select: none"]),onMouseover:b,onMouseleave:w,onClick:_[0]||(_[0]=(...k)=>Ct(g)&&Ct(g)(...k))},[E("label",{class:"label truncate",style:N({padding:"0 "+m.padding,cursor:p.value})},[x.value?(L(),V("div",l1,[ct(Gn,{color:l.value},null,8,["color"])])):Rt("",!0),kt(m.$slots,"default",{},()=>[m.icon&&m.iconPosition==="left"?(L(),Lt(Ss,{key:0,icon:m.icon,color:l.value,style:N({marginRight:Ct(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0),E("span",{style:N({cursor:p.value})},yt(m.label),5),m.icon&&m.iconPosition==="right"?(L(),Lt(Ss,{key:1,icon:m.icon,color:l.value,style:N({marginLeft:Ct(vt).d4,cursor:p.value})},null,8,["icon","color","style"])):Rt("",!0)],!0)],4)],36))}}),$x="",ae=it(c1,[["__scopeId","data-v-999537e3"]]),u1=["onClick","value"],d1={class:"option-inner"},f1=it(q({customOptions:{Icon:Ss,Button:ae},__name:"Select.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,o=t;vs(()=>{cs(`
|
|
49
65
|
:root {
|
|
50
66
|
--select-option-bg-color: ${vt.colorGrayFF};
|
|
51
67
|
--select-option-bg-color-hover: ${vt.colorGrayF5};
|
|
52
68
|
}
|
|
53
|
-
`)});const r=
|
|
54
|
-
`]],["__scopeId","data-v-fa255391"]]),
|
|
69
|
+
`)});const r=I(!1),n=I(e.initIndex);St(n,function(){o("change",n.value,e.options[n.value])});function a(){r.value=!r.value}function i(l){n.value=l,r.value=!1}return(l,c)=>(L(),V("div",{class:"select",style:N(["font-size:"+l.fontSize])},[E("div",{onClick:a},[kt(l.$slots,"button",{selectedIndex:n.value},()=>[ct(ae,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[n.value],style:{width:"100%"}},null,8,["label"])],!0)]),fo(E("div",{class:"options",style:N({border:"1px solid "+Ct(vt).colorGrayCC})},[(L(!0),V(Vt,null,xe(l.options,(u,d)=>(L(),V("div",{onClick:h=>i(d),class:"option",key:d,value:d,style:N({borderTop:(d==0?"0":"1px")+" solid "+Ct(vt).colorGrayCC})},[E("div",d1,[kt(l.$slots,"default",{item:u,index:d},()=>[E("span",null,yt(u),1),d==n.value?(L(),Lt(Ss,{key:0,icon:"mingcute:check-fill",class:"icon"})):Rt("",!0)],!0)])],12,u1))),128))],4),[[qs,r.value]])],4))}}),[["styles",[`.select[data-v-fa255391]{display:inline-block;position:relative}.options[data-v-fa255391]{position:relative;width:100%;text-align:center;margin:0;padding:0;box-sizing:border-box;background-color:#fff}.option[data-v-fa255391]{cursor:pointer}.option-inner[data-v-fa255391]{padding:.5em 1em .5em .5em;display:flex;justify-content:center;align-items:center;position:relative;background-color:var(--select-option-bg-color)}.option-inner[data-v-fa255391]:hover{background-color:var(--select-option-bg-color-hover)}.icon[data-v-fa255391]{position:absolute;right:.5em;top:50%;transform:translateY(-50%)}
|
|
70
|
+
`]],["__scopeId","data-v-fa255391"]]),h1=["width","height"],p1=["fill"],m1=q({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:vt.colorGrayCC}},setup(s){const t=s;return(e,o)=>(L(),V("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,p1)],8,h1))}}),Nx="",Un=it(m1,[["__scopeId","data-v-b1f2ae20"]]),g1={class:"button-default"},y1={class:"truncate"},v1=["onClick","value"],b1=q({customOptions:{SVGDown:Un},__name:"SelectAbsolute.ce",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:vt.colorGrayFF},hoverColor:{default:vt.colorGrayF5},selectedColor:{default:vt.colorPrimary},fontColor:{default:vt.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,o=t;vs(()=>{cs(`
|
|
55
71
|
:root {
|
|
56
72
|
--select-option-bg-color: ${e.bgColor};
|
|
57
73
|
--select-option-bg-color-hover: ${e.hoverColor};
|
|
58
74
|
}
|
|
59
|
-
`)});const r=
|
|
60
|
-
`]],["__scopeId","data-v-09b63393"]]),
|
|
61
|
-
`]],["__scopeId","data-v-fedd031c"]]),
|
|
62
|
-
`]],["__scopeId","data-v-79270ea2"]]),
|
|
63
|
-
`]],["__scopeId","data-v-4793f58f"]]),
|
|
64
|
-
`]],["__scopeId","data-v-f267549e"]]),
|
|
65
|
-
`]],["__scopeId","data-v-812cd68c"]]),
|
|
75
|
+
`)});const r=I(!1),n=I(e.initIndex);St(n,function(){o("change",n.value,e.options[n.value])});function a(){r.value=!r.value}function i(c){n.value=c,r.value=!1}const l=I("rotate(-180deg)");return Lc(()=>{l.value=r.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(L(),V("div",{class:"select-absolute",style:N({fontSize:e.fontSize,backgroundColor:e.bgColor})},[E("div",{class:"select-absolute-button",onClick:a},[kt(c.$slots,"button",{selectedIndex:n.value},()=>[E("div",g1,[E("div",y1,yt(c.options[n.value]),1),ct(Un,{class:"icon-down",width:"20px",style:N({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),E("div",{class:"options",style:N({maxHeight:r.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${r.value?1:0}px solid #e6e6e6`})},[(L(!0),V(Vt,null,xe(c.options,(d,h)=>(L(),V("div",{onClick:p=>i(h),class:"option",key:h,value:h},[kt(c.$slots,"default",{item:d,index:h},()=>[E("div",{class:"option-default",style:N({color:n.value==h?e.selectedColor:e.fontColor})},yt(d),5)],!0)],8,v1))),128))],4)],4))}}),sf=it(b1,[["styles",[`.select-absolute[data-v-09b63393]{display:block;position:relative;width:100%}.select-absolute-button[data-v-09b63393]{overflow:hidden}.button-default[data-v-09b63393]{display:flex;justify-content:space-between;align-items:center;padding:0 10px 0 15px;height:44px;line-height:44px}.icon-down[data-v-09b63393]{flex:0 0 auto}.truncate[data-v-09b63393]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.options[data-v-09b63393]{position:absolute;bottom:0;left:0;transform:translateY(100%);z-index:99;width:100%;overflow-y:scroll;box-sizing:border-box}.options[data-v-09b63393]::-webkit-scrollbar{-webkit-appearance:none}.options[data-v-09b63393]::-webkit-scrollbar:vertical{width:2px}.options[data-v-09b63393]::-webkit-scrollbar-track{background-color:var(--select-option-bg-color)}.options[data-v-09b63393]::-webkit-scrollbar-thumb{border-radius:2px;background-color:#0000004d}.option[data-v-09b63393]{cursor:pointer}.option-default[data-v-09b63393]{padding:14px 15px;line-height:1;background-color:var(--select-option-bg-color)}.option-default[data-v-09b63393]:hover{background-color:var(--select-option-bg-color-hover)}
|
|
76
|
+
`]],["__scopeId","data-v-09b63393"]]),_1=it(q({__name:"Switch.ce",props:{init:{type:Boolean,default:!1},width:{default:"44px"},height:{default:"26px"},padding:{default:"3px"},colorPrimary:{default:"#5a82f0"},colorBgOn:{default:"#efefef"},colorBgOff:{default:"#f5f5f5"}},emits:["change"],setup(s,{emit:t}){const e=s,o=xs(e.width),r=xs(e.height),n=xs(e.padding),a=r.number-n.number*2+r.suffix,i=e.padding,l=o.number-xs(i).number-xs(a).number+o.suffix,c=t,u=I(e.init);St(u,function(){c("change",u.value)});function d(){u.value=!u.value}return(h,p)=>(L(),V("div",{class:"switch",onClick:d,style:N(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[E("span",{class:"round",style:N(["width: "+a,"height: "+a,"background-color: "+(u.value?e.colorPrimary:Ct(ge)(e.colorPrimary).lighten(.5).toString()),"transform: translate("+(u.value?l:Ct(i))+", 0)"])},null,4)],4))}}),[["styles",[`.switch[data-v-fedd031c]{position:relative;display:inline-flex;align-items:center;flex-shrink:0;cursor:pointer;border-radius:9999px;box-sizing:border-box;transition:all .2s cubic-bezier(.4,0,.2,1)}.round[data-v-fedd031c]{pointer-events:none;display:inline-block;box-sizing:border-box;border-radius:9999px;transition:all .2s cubic-bezier(.4,0,.2,1)}
|
|
77
|
+
`]],["__scopeId","data-v-fedd031c"]]),x1=["stroke","fill"],w1=["stroke","fill"],k1=["stroke"],qi=it(q({customOptions:{},__name:"BooleanBox.ce",props:{selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!0},label:{default:""},labelPadding:{default:"2px"},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},boxWidth:{default:"20px"},fontSize:{default:"14px"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=I(o.selected),a=I(o.disabled),i=I(o.label);const l=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorDisabled:o.colorBackground;case"reverse":default:return a.value?o.colorDisabled:n.value?o.colorForeground:o.colorBackground}},c=()=>a.value?o.colorDisabled:ge(l()).darken(.2).toString(),u=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorBackground:o.colorForeground;case"reverse":default:return n.value?o.colorBackground:o.colorForeground}},d=()=>{a.value||(p(),r("change",n.value))},h=v=>{v!==n.value&&(n.value=v)},p=()=>{n.value=!n.value};return t({setValue:h,toggleValue:p,getValue:()=>n.value,enable:()=>{a.value=!1},disable:()=>{a.value=!0},setLabel:v=>{i.value=v}}),(v,g)=>(L(),V("div",{class:se(["boolean-box",Ct(a)?"disabled":""]),onClick:d},[kt(v.$slots,"default",{selected:Ct(n),disabled:Ct(a),label:Ct(i)},()=>[(L(),V("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:N(["width:"+o.boxWidth])},[o.isRounded?Rt("",!0):(L(),V("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,x1)),o.isRounded?(L(),V("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,w1)):Rt("",!0),Ct(n)?(L(),V("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,k1)):Rt("",!0)],4)),v.label?(L(),V("span",{key:0,style:N(["font-size:"+o.fontSize,"margin-left:"+o.labelPadding])},yt(v.label),5)):Rt("",!0)],!0)],2))}}),[["styles",[`.boolean-box[data-v-79270ea2]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center;cursor:pointer}.boolean-box.disabled[data-v-79270ea2]{cursor:not-allowed}.icon[data-v-79270ea2]{flex:0 0 auto;box-sizing:border-box;display:inline-flex;justify-content:flex-start;align-items:center;transition:border-color .2s ease-in-out,background-color .2s ease-in-out}
|
|
78
|
+
`]],["__scopeId","data-v-79270ea2"]]),C1=["stroke","fill"],T1=["stroke","fill"],S1=["stroke"],E1=q({customOptions:{},__name:"BooleanBox",props:{selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!0},label:{default:""},labelPadding:{default:"2px"},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},boxWidth:{default:"20px"},fontSize:{default:"14px"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=I(o.selected),a=I(o.disabled),i=I(o.label);const l=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorDisabled:o.colorBackground;case"reverse":default:return a.value?o.colorDisabled:n.value?o.colorForeground:o.colorBackground}},c=()=>a.value?o.colorDisabled:ge(l()).darken(.2).toString(),u=()=>{switch(o.colorChangeMode){case"only-foreground":return a.value?o.colorBackground:o.colorForeground;case"reverse":default:return n.value?o.colorBackground:o.colorForeground}},d=()=>{a.value||(p(),r("change",n.value))},h=v=>{v!==n.value&&(n.value=v)},p=()=>{n.value=!n.value};return t({setValue:h,toggleValue:p,getValue:()=>n.value,enable:()=>{a.value=!1},disable:()=>{a.value=!0},setLabel:v=>{i.value=v}}),(v,g)=>(L(),V("div",{class:se(["boolean-box",Ct(a)?"disabled":""]),onClick:d},[kt(v.$slots,"default",{selected:Ct(n),disabled:Ct(a),label:Ct(i)},()=>[(L(),V("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:N(["width:"+o.boxWidth])},[o.isRounded?Rt("",!0):(L(),V("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,C1)),o.isRounded?(L(),V("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,T1)):Rt("",!0),Ct(n)?(L(),V("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,S1)):Rt("",!0)],4)),v.label?(L(),V("span",{key:0,style:N(["font-size:"+o.fontSize,"margin-left:"+o.labelPadding])},yt(v.label),5)):Rt("",!0)],!0)],2))}}),Xx="",eo=it(E1,[["__scopeId","data-v-3df94794"]]),Qi=it(q({customOptions:{BooleanBox:eo},__name:"RadioGroup.ce",props:{options:{},disabledIndexs:{},initIndex:{default:0},isRounded:{type:Boolean,default:!0},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,o=t,r=I([]),n=(l,c)=>{l&&(r.value[c]=l)};let a=I(e.initIndex);const i=(l,c)=>{a.value!==l?(r.value[a.value].toggleValue(),c&&(a.value=l,o("change",e.options[a.value]))):c||r.value[a.value].setValue(!0)};return(l,c)=>(L(!0),V(Vt,null,xe(l.options,(u,d)=>(L(),V("div",{class:"radio-group",key:d,style:N(["margin-left:"+(d>0?e.itemPadding:0)])},[ct(eo,{ref_for:!0,ref:h=>n(h,d),selected:Ct(a)==d,disabled:l.disabledIndexs&&l.disabledIndexs.findIndex(h=>h===d)>=0,isRounded:e.isRounded,label:u,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:h=>i(d,h)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),[["styles",[`.radio-group[data-v-4793f58f]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center}
|
|
79
|
+
`]],["__scopeId","data-v-4793f58f"]]),Ki=it(q({customOptions:{BooleanBox:eo},__name:"CheckboxGroup.ce",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,o=t;let r=Kt(e.initIndexs??[]);const n=(a,i)=>{const l=r.findIndex(u=>u===a);let c=!1;l>=0&&!i?(r.splice(l,1),c=!0):l<0&&i&&(r.push(a),c=!0),c&&o("change",r.map(u=>e.options[u]))};return(a,i)=>(L(!0),V(Vt,null,xe(a.options,(l,c)=>(L(),V("div",{class:"checkbox-group",key:c,style:N(["margin-left:"+(c>0?e.itemPadding:0)])},[ct(eo,{selected:Ct(r).findIndex(u=>u===c)>=0,disabled:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0,isRounded:e.isRounded,label:l,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:u=>n(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),[["styles",[`.checkbox-group[data-v-f267549e]{position:relative;display:inline-flex;justify-content:flex-start;align-items:center}
|
|
80
|
+
`]],["__scopeId","data-v-f267549e"]]),P1=["width","height"],O1=["fill"],R1=["fill"],I1=["fill"],F1=q({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:vt.colorRed}},setup(s){const t=s;return(e,o)=>(L(),V("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,O1),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,R1),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,I1)],8,P1))}}),Wx="",of=it(F1,[["__scopeId","data-v-41294f60"]]),D1={class:"input"},$1={class:"ellipsis"},L1={class:"input-wrap"},A1=["type","required"],N1={key:0,style:{paddingLeft:"0.5em"}},M1={key:1},z1=it(q({customOptions:{SVGPrompt:of},inheritAttrs:!0,__name:"Input.ce",props:{placeholder:{default:""},placeholderType:{default:"normal"},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:"#5a82f0"},errorColor:{default:"#ff5050"},borderColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{},defaultValue:{}},emits:["focus","yz-focus","blur","yz-blur","input","yz-input"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=o.placeholder.split(""),a=o.duration/n.length,i=I(),l=I(!1),c=I(""),u=I(o.defaultValue||"");function d(){l.value=!0,r("focus"),r("yz-focus")}function h(){l.value=!1,r("blur"),r("yz-blur"),f()}function p(b){u.value=b.target.value,f()}function f(){if(u.value&&o.validator){const b=o.validator(u.value);if(!b.valid){c.value=b.errors[0];return}}c.value="",u.value&&(r("input",u.value),r("yz-input",u.value))}return vs(()=>{o.defaultValue&&(i.value.value=o.defaultValue)}),oe(()=>{}),t({}),(b,w)=>(L(),V("div",D1,[c.value?(L(),V("div",{key:0,class:"error-text",style:N({color:o.errorColor})},[ct(of,{class:"icon"}),E("div",$1,yt(c.value),1)],4)):Rt("",!0),E("div",L1,[E("input",{ref_key:"inputEl",ref:i,class:se(["input-raw",l.value||u.value?"focus":""]),type:o.type,required:o.required,autocomplete:"off",style:N({height:o.height,lineHeight:o.height,borderRadius:o.borderRadius,color:o.fontColor,borderColor:c.value?o.errorColor:l.value?o.focusColor:u.value||o.placeholderType=="normal"?o.borderColor:"transparent",transition:o.duration+"ms"}),onFocus:d,onBlur:h,onInput:p,onChange:p},null,46,A1),E("div",{class:"placeholder",style:N({lineHeight:l.value||u.value?1.3:o.height,color:o.placeholderColor,transition:o.placeholderType=="normal"?"":o.duration+"ms",transform:o.placeholderType=="normal"?"":l.value||u.value?"translateY(-100%)":"none"})},[!c.value&&o.placeholderType=="normal"&&!l.value&&!u.value?(L(),V("div",N1,yt(o.placeholder),1)):Rt("",!0),!c.value&&o.placeholderType=="jump"?(L(),V("div",M1,yt(o.placeholder),1)):Rt("",!0),!c.value&&o.placeholderType=="jump-each"?(L(!0),V(Vt,{key:2},xe(Ct(n),(x,v)=>(L(),V("span",{key:v,style:N({transition:o.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${a*v}ms`,transform:l.value||u.value?`translateX(${100*v}%) translateY(-100%)`:`translateX(${100*v}%)`}),class:"single"},yt(x),5))),128)):Rt("",!0)],4),E("div",{class:"background",style:N({transition:o.duration+"ms",backgroundColor:o.placeholderType=="normal"||l.value||u.value?"transparent":o.borderColor,height:o.placeholderType=="normal"||l.value||u.value?o.height:"2px",borderRadius:o.borderRadius})},null,4)])]))}}),[["styles",[`.input[data-v-812cd68c]{position:relative;box-sizing:border-box;font-size:1em}.error-text[data-v-812cd68c]{position:absolute;top:0;left:0;width:100%;font-size:.75em;display:flex;align-items:center;transform:translateY(-100%)}.icon[data-v-812cd68c]{flex:0 0 auto}.ellipsis[data-v-812cd68c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;word-break:break-all}.input-wrap[data-v-812cd68c]{position:relative;box-sizing:border-box}.input-raw[data-v-812cd68c]{display:block;box-sizing:border-box;position:relative;width:100%;background:transparent;outline:none;box-shadow:none;border:1px solid transparent;padding:.6em;z-index:10}.background[data-v-812cd68c]{position:absolute;left:0;bottom:0;width:100%;pointer-events:none;z-index:9}.placeholder[data-v-812cd68c]{position:absolute;left:0;top:0;width:100%;pointer-events:none}.focus~.placeholder[data-v-812cd68c]{font-size:.75em}.placeholder>div[data-v-812cd68c]{width:100%;display:flex;justify-content:flex-start;align-items:center}.placeholder>span.single[data-v-812cd68c]{position:absolute;left:0;top:0}
|
|
81
|
+
`]],["__scopeId","data-v-812cd68c"]]),V1=["max","min","step","value","autofocus"],B1={key:0,class:"label"},Ji=it(q({customOptions:{},inheritAttrs:!0,__name:"InputRange.ce",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.defaultValue),a=()=>Te((n.value-o.min)/(o.max-o.min),4)*100,i=I(a());function l(d){n.value=Te(d.target.value,2),i.value=a(),r("change",n.value)}const c=`
|
|
66
82
|
:root {
|
|
67
|
-
--input-range-color: ${
|
|
68
|
-
--input-range-thumb-size: ${
|
|
69
|
-
--input-range-track-size: ${
|
|
83
|
+
--input-range-color: ${o.color};
|
|
84
|
+
--input-range-thumb-size: ${o.handleSize};
|
|
85
|
+
--input-range-track-size: ${o.barHeight};
|
|
70
86
|
}
|
|
71
87
|
:host {
|
|
72
|
-
--input-range-color: ${
|
|
73
|
-
--input-range-thumb-size: ${
|
|
74
|
-
--input-range-track-size: ${
|
|
88
|
+
--input-range-color: ${o.color};
|
|
89
|
+
--input-range-thumb-size: ${o.handleSize};
|
|
90
|
+
--input-range-track-size: ${o.barHeight};
|
|
75
91
|
}
|
|
76
|
-
`,u=
|
|
77
|
-
`]],["__scopeId","data-v-d547a5f1"]]),
|
|
78
|
-
`]],["__scopeId","data-v-14730339"]]),wt=q({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1},styleSheets:{}},emits:["ready","resize","start","end"],setup(
|
|
92
|
+
`,u=I();return St(u,()=>{u.value&&cs(c,u.value)}),oe(()=>{}),t({}),(d,h)=>(L(),V("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[E("input",{type:"range",max:o.max,min:o.min,step:o.step,value:n.value,autofocus:o.autofocus,onInput:l,style:N({background:`linear-gradient(to right, ${o.color} 0%, ${o.color} ${i.value}%, ${o.barColor} ${i.value}%, ${o.barColor})`})},null,44,V1),kt(d.$slots,"default",{value:n.value},()=>[d.showValue?(L(),V("label",B1,yt(n.value)+yt(o.unit),1)):Rt("",!0)],!0)],512))}}),[["styles",[`.input-range[data-v-d547a5f1]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.label[data-v-d547a5f1]{min-width:3em;text-align:right}input[type=range][data-v-d547a5f1]{flex:1 1 auto;-webkit-appearance:none;appearance:none;border-radius:9999px;margin:0;padding:0}input[type=range][data-v-d547a5f1]:focus{outline:none}input[type=range][data-v-d547a5f1]::-webkit-slider-runnable-track{height:var(--input-range-track-size);border-radius:9999px}input[type=range][data-v-d547a5f1]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:var(--input-range-thumb-size);width:var(--input-range-thumb-size);margin-top:-8px;background:var(--input-range-color);border-radius:50%;cursor:pointer}
|
|
93
|
+
`]],["__scopeId","data-v-d547a5f1"]]),Y1=["width","height"],X1=q({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;St(n,()=>{n.value&&(c=new rs(n.value,!1),c.on("resize",(b,w)=>{const x=zo();i.value=Math.min(b,x.width),l.value=Math.min(w,x.height),p()}),c.start())}),St(a,()=>{a.value&&p()});let u,d,h;function p(){u||!a.value||!i.value||!l.value||(u=new rs(a.value,!1),u.on("resize",(b,w)=>{r("resize",b,w),d=new Zi(u,o.enableCustomContext),h?.(d),r("ready",d)}),u.start())}function f(){return new Promise(b=>{if(d)return b(d);h=b})}return oe(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>a.value,getCanvas:f}),(b,w)=>(L(),V("div",{class:"canvas",ref_key:"canvasOutterRef",ref:n},[E("canvas",{ref_key:"canvasRef",ref:a,width:i.value,height:l.value,style:N({backgroundColor:o.bgColor})},null,12,Y1)],512))}}),Jx="",je=it(X1,[["__scopeId","data-v-1fc03287"]]),G1={class:"input-range-canvas"},U1={key:0,class:"label"},rf=it(q({customOptions:{Canvas:je},inheritAttrs:!0,__name:"InputRangeCanvas.ce",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.defaultValue),a=p=>{n.value=p,r("change",p)},i=xs(o.handleSize,20).number/2,l=xs(o.barHeight,4).number;let c;const u=()=>{c=new Ud({x:0,y:i-l/2,min:o.min,max:o.max,step:o.step,defaultValue:n.value,barWidth:d,handleRadius:i,barHeight:l}),c.on("change",a)};let d=0;const h=I();return St(h,()=>{h.value&&h.value.getCanvas().then(p=>{d=p.app.width,u(),p.app.on("resize",f=>{d=f,u()}),ce(()=>(p.ctx.clearRect(),p.draw(c),!0))})}),oe(()=>{}),t({}),(p,f)=>(L(),V("div",G1,[E("div",{class:"input",style:N({height:o.handleSize})},[ct(je,{ref_key:"canvasRef",ref:h},null,512)],4),kt(p.$slots,"default",{value:n.value},()=>[p.showValue?(L(),V("div",U1,yt(n.value)+yt(o.unit),1)):Rt("",!0)],!0)]))}}),[["styles",[`.input-range-canvas[data-v-14730339]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.input[data-v-14730339]{flex:1 1 auto;overflow:hidden}.label[data-v-14730339]{min-width:3em;text-align:right}
|
|
94
|
+
`]],["__scopeId","data-v-14730339"]]),wt=q({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1},styleSheets:{}},emits:["ready","resize","start","end"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n="start";const a=()=>{n="start",r("start")},i=()=>{n="end",r("end")},l=()=>{n=="start"?i():a()},c=I();let u=!1,d,h;vs(()=>{if(o.styleSheets){let b="";for(let w in o.styleSheets)b+=`${w}: ${o.styleSheets[w]};`;cs(`
|
|
79
95
|
:root {
|
|
80
|
-
${
|
|
96
|
+
${b}
|
|
81
97
|
}
|
|
82
98
|
:host {
|
|
83
|
-
${
|
|
99
|
+
${b}
|
|
84
100
|
}
|
|
85
|
-
`,
|
|
86
|
-
`]],["__scopeId","data-v-b07b3c9b"]]),
|
|
87
|
-
`]],["__scopeId","data-v-141eb7ce"]]),
|
|
88
|
-
`]],["__scopeId","data-v-4ea80232"]]),
|
|
89
|
-
`]],["__scopeId","data-v-33318c10"]]),
|
|
90
|
-
`]],["__scopeId","data-v-b54fc81b"]]),
|
|
91
|
-
`]],["__scopeId","data-v-892af4f0"]]),Yn=q({customOptions:{Container:wt,CSSAnimation:Vo},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ft.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=R(),a=Qt({}),i=()=>{r("ready",C,U)},l=()=>{w()},c=R();let u="rotateRightSideFirst",f=s.effect;function d(K,I){switch(f){case"static":I();break;default:K();break}}let p=!1;const h=new Ie,w=()=>{const K={},I={};h.clear(),h.frameDuration=s.duration,d(()=>{u=f},()=>{h.addTween(K,I,{delay:s.delay/s.duration,easeFunction:s.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:$=>{a.transform="","x"in $&&(a.transform+=` translateX(${$.x}%)`),"y"in $&&(a.transform+=` translateY(${$.y}%)`),"rx"in $&&(a.transform+=` rotateX(${$.rx}deg)`),"ry"in $&&(a.transform+=` rotateY(${$.ry}deg)`),"scale"in $&&(a.transform+=` scale(${$.scale})`),"opacity"in $&&(a.opacity=`${$.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[s.effect,s.delay,s.duration,s.easeFunction],()=>{f=s.effect,w()},{immediate:!0});const _=()=>{r(p?"pageCloseStart":"pageOpenStart")},x=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},v=()=>{d(()=>{c.value.trigger(u)},()=>{h.play()})},g=()=>{d(()=>{c.value.triggerReverse(u)},()=>{h.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function b(){d(()=>{m()},()=>{c.value?.clear()})}const C=K=>{K&&(f=K,w()),p=!1,b(),n.value.startEffect()},U=K=>{K&&(f=K,w()),p=!0,b(),n.value.endEffect()};return t({open:C,close:U,clear:m,getElement:()=>n.value.getElement()}),(K,I)=>(L(),Nt(wt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:v,onEnd:g},{default:bt(()=>[ct(Vo,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:s.duration,delay:s.delay,timingFunction:s.timingFunction,onCssanimationstart:_,onCssanimationend:x},{default:bt(()=>[E("div",{class:"page-inner",style:M({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(K.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Qi=q({customOptions:{Page:Yn,Container:wt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ft.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(o,{expose:t,emit:e}){const s=o,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],f=[];function d(B){return B>=0&&B<c.length}function p(){return a>n}function h(B,P,Yt){switch(B){case n:return p()?P:Yt;case a:return p()?Yt:P;default:return"static"}}function w(B,P){switch(B){case"moveToLeft":return h(P,"moveToLeft","moveFromRight");case"moveToRight":return h(P,"moveToRight","moveFromLeft");case"moveToTop":return h(P,"moveToTop","moveFromBottom");case"moveToBottom":return h(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return h(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return h(P,"fade","moveFromRight");case"moveFromTopPrevFade":return h(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return h(P,"fade","moveFromBottom");case"moveToLeftFade":return h(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return h(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return h(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return h(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return h(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return h(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return h(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return h(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return h(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return h(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return h(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return h(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return h(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return h(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return h(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return h(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return h(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return h(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return h(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return h(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return h(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return h(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return h(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return h(P,"flipOutLeft","flipInRight");case"flipToRight":return h(P,"flipOutRight","flipInLeft");case"flipToTop":return h(P,"flipOutTop","flipInBottom");case"flipToBottom":return h(P,"flipOutBottom","flipInTop");case"rotateFall":return h(P,"rotateFall","scaleFromSmall");case"newspaper":return h(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return h(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return h(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return h(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return h(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return h(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return h(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return h(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return h(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return h(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return h(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return h(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return h(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return h(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return h(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return h(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return h(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return h(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return h(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return h(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return h(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return h(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return h(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return h(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return h(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return h(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return h(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return h(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return h(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return h(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return h(P,"rotateSlideOut","rotateSlideIn")}}function _(B,P=600,Yt=600){switch(B){case n:return P;case a:return Yt;default:return s.duration}}function x(B,P){switch(B){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return _(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return _(P,700,600);case"scaleSmall":return _(P,700,500);case"scaleLarge":return _(P,500,700);case"scaleToLargePrevScaleToSmall":return _(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return _(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return _(P,800,600);default:return s.duration}}let v=s.timingFunction;function g(B){switch(B){default:return s.easeFunction}}function m(B,P){switch(B){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:v=p()?"ease-in-out":"ease";break;case a:default:v=p()?"ease":"ease-in-out"}return g(P);default:return v=s.timingFunction,s.easeFunction}}function b(B,P=300){switch(B){case a:return s.delay+P;default:return s.delay}}function C(B,P){switch(B){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return b(P,500);case"scaleSmall":case"scaleLarge":return b(P,300);case"scaleToLargePrevScaleToSmall":return b(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return b(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return b(P,180);default:return s.delay}}let U=2,K=2;const I=()=>{U=2,K=2},$=()=>{U=2,K=3},N=()=>{U=3,K=2};function D(B){switch(s.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":N();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":p()?N():$();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":p()?$():N();break;default:I();break}d(n)&&n==B&&(f[n].style.zIndex=`${U}`,f[n].style.visibility="visible"),d(a)&&a==B&&(f[a].style.zIndex=`${K}`,f[a].style.visibility="visible")}function A(B){$(),B==n&&(f[n].style.zIndex=`${U}`,f[n].style.visibility="hidden"),B==a&&(f[a].style.zIndex=`${K}`,f[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const X=R();function rt(B=0,P=!1){if(!X.value)return;let Yt=0;dn(Kt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((Mt,Et)=>{const te=w(s.effect,Et);return Kt("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:n==Et?"visible":"hidden",zIndex:P?"1":"0"}},Mt.pageKey?{key:Mt.pageKey}:{}),Kt(Yn,{effect:te,duration:x(s.effect,Et),easeFunction:m(s.effect,Et),timingFunction:v,delay:C(s.effect,Et),onReady:(Xt,j)=>{u[Et]={open:Xt,close:j},++Yt==B&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{D(Et)},onPageOpenEnd:()=>{A(Et)},onPageCloseStart:()=>{D(Et)},onPageCloseEnd:()=>{A(Et)}},{default:()=>Mt.component instanceof HTMLElement?Kt("div",{...Mt.attributes,innerHTML:Mt.component.innerHTML}):Kt(Mt.component,Mt.attributes,()=>Mt.child)}))})),X.value),f=X.value.children[0].children}St(()=>s.effect,()=>{rt()});function Q(B=[]){c=[...B],c.forEach(P=>{P.pageKey=P.pageKey||Fo()}),i=()=>{n=-1,ht(0)},rt(c.length,!0)}function Z(B){B.pageKey=B.pageKey||Fo(),c.push(B),i=()=>{ht(c.length-1)},rt(1,c.length==1)}function at(){c.length<=1||ht(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,rt()})}function G(){ht(n+1)}function H(){ht(n-1)}const gt=new gn(1);function ht(B,P){gt.addTask(()=>new Promise(Yt=>{const Mt=()=>{P?.(),Yt()};if(!d(B)){Mt();return}if(a=B,a==n){Mt();return}l.push(Mt),rt(),r("routeChangeStart",n,a,c.length),p()?(d(n)&&u[n].open(),d(a)&&u[a].open()):(d(n)&&u[n].close(),d(a)&&u[a].close())}))}return t({reset:Q,push:Z,pop:at,forward:G,back:H,goto:ht,currentPageIndex:()=>n,totalPages:()=>c.length}),(B,P)=>(L(),V("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),U1=q({...{},name:"Image",customOptions:{Container:wt,Pop:we},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=new Ie({frameDuration:s.dur}),a=R(0),i=R(0),l=R(0),c=R(0),u=R(0),f=R(0),d=R(0),p=R(0),h=R(0),w=R(0);Lf(s.src).then(D=>{h.value=D.width,w.value=D.height,b()});const _=R(0),x=R(0),v=(D,A)=>{_.value=D,x.value=A,b()},g=R(0),m=R(0);function b(){if(!_.value||!x.value||!h.value||!w.value)return;const D=Sn(s.mode,h.value,w.value,_.value,x.value);g.value=D.width,m.value=D.height;const{width:A,height:X}=Mo(),rt=Sn("aspectFit",h.value,w.value,A,X);d.value=rt.width,p.value=rt.height,u.value=(A-d.value)/2,f.value=(X-p.value)/2}const C=(D,A,X)=>{r("settled",X.x,X.y,X.width,X.height)};let U=!1;const K=R(),I=R();async function $(){if(!s.openImageDetailWhenClick)return;const D=await K.value.getSize();n.clear(),n.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:u.value,top:f.value,width:d.value,height:p.value},{easeFunction:ft.Quadratic.Out,onUpdate(A){a.value=A.left,i.value=A.top,l.value=A.width,c.value=A.height},onComplete(){U&&I.value.close(),U=!U}}),U||(I.value.open(),n.play())}function N(){U&&n.reverse()}return t({}),(D,A)=>(L(),Nt(wt,{class:"image",type:"full",style:M({backgroundColor:s.bgColor}),onResize:v,onClick:$},{default:bt(()=>[ct(wt,{class:"image-inner",ref_key:"imageRef",ref:K,type:"shrink",style:M({width:g.value+"px",height:m.value+"px",backgroundImage:`url(${s.src})`,backgroundSize:`${g.value}px ${m.value}px`}),onResize:C},null,8,["style"]),ct(we,{ref_key:"popRef",ref:I,"direction-from":"absolute","absolute-left":`${a.value}px`,"absolute-top":`${i.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:N},{default:bt(()=>[E("div",{class:"image-pop",style:M({width:"100%",height:"100%",backgroundImage:`url(${s.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),Jx="",sd=it(U1,[["__scopeId","data-v-4e9887dd"]]),j1={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},od=q({customOptions:{Image:sd,Container:wt,Routes:Qi},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(o,{expose:t,emit:e}){const s=o,r=R(0);function n(d,p){r.value=p}const a=R(),i=d=>{d.on("panLeft",()=>{a.value?.forward()}),d.on("panRight",()=>{a.value?.back()}),a.value.reset(s.urls.map(p=>({component:Kt(sd,{mode:"aspectFit",src:p,openImageDetailWhenClick:!1})})))},l=R();function c(){l.value?.open()}function u(){l.value?.close()}const f=d=>{d.target&&Yi(d.target,"image")&&u()};return t({open:c,close:u}),(d,p)=>(L(),Nt(we,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:f},{default:bt(()=>[s.urls.length>1?(L(),V("div",j1,yt(r.value+1)+" / "+yt(s.urls.length),1)):Rt("",!0),ct(wt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:i},{default:bt(()=>[ct(Qi,{ref_key:"routesRef",ref:a,effect:s.effect,onRouteChangeEnd:n},null,8,["effect"])]),_:1})]),_:1},512))}}),t2="",H1={class:"page"},W1={class:"header"},Z1={class:"main"},q1={class:"main-scroll"},Q1={class:"footer"},K1=it(q({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(o,{expose:t,emit:e}){return $y(o.designWidth),t({}),(r,n)=>(L(),V("div",H1,[E("header",W1,[kt(r.$slots,"header",{},void 0,!0)]),E("div",Z1,[E("div",q1,[kt(r.$slots,"main",{},void 0,!0)])]),E("footer",Q1,[kt(r.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-37c36e58]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-37c36e58]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-37c36e58]{flex:1 1 auto;width:100%}.main-scroll[data-v-37c36e58]>:nth-child(1){min-height:100%}.header[data-v-37c36e58],.footer[data-v-37c36e58]{flex:0 0 auto}
|
|
92
|
-
`]],["__scopeId","data-v-
|
|
93
|
-
`]],["__scopeId","data-v-114afb17"]]),
|
|
101
|
+
`,c.value)}d=new rs(c.value,!1),d.on("resize",(b,w)=>{r("resize",b,w,c.value.getBoundingClientRect()),h?.(d),u||(u=!0,o.effectTriggerTiming!=="manual"&&a(),r("ready",d),o.effectTriggerTiming=="immediate"&&l())}),d.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),d.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),d.on("tap",()=>{o.effectTriggerTiming=="click"&&l(),o.supportCopyText&&Hi(_o(c.value).getInnerText()).then(()=>{}).catch(b=>{})}),d.start()});const p=()=>new Promise(b=>{if(d)return b(d);h=b}),f=async()=>(await p(),c.value.getBoundingClientRect());return oe(()=>{d?.destroy()}),t({getElement:()=>c.value,getApp:p,getSize:f}),(b,w)=>(L(),V("div",{class:se(["container",[o.type]]),ref_key:"containerRef",ref:c,style:N({position:"relative",boxSizing:"border-box",display:o.type=="shrink"?"inline-block":"block",width:o.type=="full"?"100%":"auto",height:o.type=="full"?"100%":"auto"})},[kt(b.$slots,"default")],6))}}),j1={class:"input-range-box"},H1={key:0,class:"label"},W1=q({customOptions:{Container:wt},inheritAttrs:!0,__name:"InputRangeBox.ce",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!1},bgColor:{default:to.inputColor},barColor:{default:to.numberColor},barHeight:{default:"20px"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.defaultValue),a=()=>Te(Iu(o.min,o.max,o.step)(n.value),2),i=()=>Te((n.value-o.min)/(o.max-o.min),4)*100;n.value=a();const l=I(i()),c={"--input-range-box-background-hover-color":ge(o.bgColor).lighten(.05).toString(),"--input-range-box-foreground-hover-color":ge(o.barColor).lighten(.05).toString()},u=I();function d(h){const p=async f=>{const b=await u.value.getSize();n.value=Te(w0(f,b.left,b.right,o.min,o.max),2),n.value=a(),l.value=i(),r("change",n.value)};h.captureDrag({start:f=>{p(f.clientX)},move:f=>{p(f.clientX)}})}return oe(()=>{}),t({}),(h,p)=>(L(),V("div",j1,[E("div",{class:"box",style:N({height:o.barHeight,cursor:"ew-resize"})},[ct(wt,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:d},{default:bt(()=>[E("div",{class:"background",style:N({backgroundColor:o.bgColor,width:"100%",height:"100%"})},null,4),E("div",{class:"foreground",style:N({backgroundColor:o.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),kt(h.$slots,"default",{value:n.value},()=>[h.showValue?(L(),V("label",H1,yt(n.value)+yt(o.unit),1)):Rt("",!0)],!0)]))}}),nf=it(W1,[["styles",[`.input-range-box[data-v-b07b3c9b]{position:relative;box-sizing:border-box;font-size:1em;display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;overflow:hidden}.label[data-v-b07b3c9b]{min-width:3em;text-align:right}.box[data-v-b07b3c9b]{flex:1 1 auto;position:relative}.foreground[data-v-b07b3c9b]{position:absolute;left:0;top:0}.box:hover .background[data-v-b07b3c9b]{background-color:var(--input-range-box-background-hover-color)!important}.box:hover .foreground[data-v-b07b3c9b]{background-color:var(--input-range-box-foreground-hover-color)!important}
|
|
102
|
+
`]],["__scopeId","data-v-b07b3c9b"]]),Yo=q({customOptions:{Container:wt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=Kt({}),a=Kt({});let i=o.name,l=o.duration,c=o.timingFunction,u=o.delay,d=o.repeat,h=o.direction;function p(k){switch(i=k,i){case"superRainbow":l=o.duration||15e3;break;case"heartBeat":l=o.duration||1300;break;case"statusProcessing":l=o.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=o.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=o.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=o.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=o.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=o.duration||600;break;default:l=o.duration||500;break}switch(i){case"superRainbow":c=o.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=o.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=o.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=o.timingFunction||"ease-in-out";break;default:c=o.timingFunction||"ease";break}switch(i){default:u=o.delay||0;break}switch(i){case"superRainbow":case"statusProcessing":d=o.repeat||"infinite";break;default:d=o.repeat||1;break}switch(i){case"superRainbow":h=o.direction||"alternate";break;default:h=o.direction||"normal";break}switch(i){case"hinge":case"rotateFall":a.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":a.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":a.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":a.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":a.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":a.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":a.transformOrigin="right bottom";break;default:delete a.transformOrigin;break}switch(i){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":n.overflow="visible";break;default:n.overflow="hidden";break}switch(i){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":a.backfaceVisibility="visible";break;default:delete a.backfaceVisibility;break}}const f=I(),b=k=>{n.perspective=o.perspective,k.on("animationstart",Z=>{r("cssanimationstart",Z.animationName)}),k.on("animationend",Z=>{r("cssanimationend",Z.animationName)})};function w(){f.value.style.animation="none",f.value.offsetHeight,f.value.style.animation=null}const x=()=>{a.animation="none"},v=()=>{w(),a.animation=`${l}ms ${c} ${u}ms ${d} ${h} ${o.fillMode} ${o.playState} ${i}`},g=k=>{k&&p(k),x(),h="normal",v()},m=k=>{k&&p(k),x(),h="reverse",v()},_=()=>{a.animation="none"};return St(()=>o.name,()=>{p(o.name)},{immediate:!0}),t({trigger:g,triggerReverse:m,clear:_}),(k,Z)=>(L(),Lt(wt,{class:"css-animation",type:o.containerType,supportCopyText:o.supportCopyText,effectTriggerTiming:o.effectTriggerTiming,style:N(n),onReady:b,onStart:x,onEnd:v},{default:bt(()=>[E("div",{class:"css-animation-inner",ref_key:"animationRef",ref:f,style:N({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[kt(k.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),o2="",Z1={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},af=q({customOptions:{CSSAnimation:Yo},__name:"Status.ce",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const o=s;let r="";switch(o.status){case"wait":r="#d9d9d9";break;case"success":r="#52c41a";break;case"error":r="#ff4d4f";break;case"processing":default:r="#1677ff";break}return o.color&&(r=o.color),t({}),(n,a)=>(L(),V("div",Z1,[n.status==="processing"?(L(),Lt(Yo,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:bt(()=>[E("div",{style:N({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Ct(r)})},null,4)]),_:1})):Rt("",!0),E("div",{style:N({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Ct(r)})},null,4)]))}}),q1=it(q({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop.ce",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(!1);function i(){a.value=!0}function l(){a.value=!1}function c(d){d.preventDefault()}function u(d){d.preventDefault(),r("yz-drop",d.dataTransfer.files),l()}return oe(()=>{}),t({}),(d,h)=>(L(),V("div",{class:se(["input-file-drop",[a.value?"over":""]]),ref_key:"zone",ref:n,onDragenter:i,onDragleave:l,onDragover:c,onDrop:u},[kt(d.$slots,"default",{},()=>[Ht(yt(o.placeholder),1)],!0)],34))}}),[["styles",[`.input-file-drop[data-v-141eb7ce]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;border:2px dashed #ccc;color:#ccc}.input-file-drop.over[data-v-141eb7ce]{border-color:#000;color:#000}
|
|
103
|
+
`]],["__scopeId","data-v-141eb7ce"]]),Q1=["width","height"],K1=["fill"],J1=q({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("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,K1)],8,Q1))}}),a2="",lf=it(J1,[["__scopeId","data-v-4747d4a7"]]),tv=q({customOptions:{SVGDelete:lf},inheritAttrs:!0,__name:"SlideLeftItem.ce",props:{bgColor:{default:vt.colorGrayFF},deleteColor:{default:vt.colorRed},fontColor:{default:vt.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(!1),a=()=>{r("delete"),n.value=!1};let i;const l=I();return St(l,()=>{l.value&&(i=new rs(l.value),i.on("panLeft",()=>{n.value=!0}),i.on("panRight",()=>{n.value=!1}),i.on("tapOutSide",()=>{n.value=!1}))}),oe(()=>{i?.destroy()}),t({}),(c,u)=>(L(),V("div",{class:"parent",ref_key:"item",ref:l,style:N({backgroundColor:o.bgColor,borderRadius:o.borderRadius})},[E("div",{class:"content",style:N({transition:"all ease-in "+o.transtionDuration,transform:n.value?"translate(-"+o.deleteWidth+", 0)":"translate(0, 0)"})},[kt(c.$slots,"default",{},void 0,!0)],4),E("div",{class:"delete",onClick:a,style:N({backgroundColor:o.deleteColor,width:o.deleteWidth,transition:"all ease-in "+o.transtionDuration,transform:n.value?"translate(0, 0)":"translate("+o.deleteWidth+", 0)"})},[ct(lf,{color:o.fontColor},null,8,["color"])],4)],4))}}),cf=it(tv,[["styles",[`.parent[data-v-4ea80232]{position:relative;overflow:hidden;width:100%}.content[data-v-4ea80232]{width:100%;height:100%}.delete[data-v-4ea80232]{position:absolute;right:0;top:0;height:100%;display:flex;justify-content:center;align-items:center;cursor:pointer}
|
|
104
|
+
`]],["__scopeId","data-v-4ea80232"]]),ev=it(q({customOptions:{Container:wt,SVGDown:Un},inheritAttrs:!0,__name:"Accordion.ce",props:{initOpen:{type:Boolean,default:!1},titleHeight:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=(d,h)=>{r("resize",d,h)},a=I(Number.MAX_SAFE_INTEGER+"px"),i=I(),l=I(!0);St(i,()=>{i.value&&(a.value=i.value.getBoundingClientRect().height+"px",l.value=o.initOpen)});function c(){l.value=!l.value,l.value?r("open"):r("close")}const u=I(0);return Lc(()=>{u.value=l.value?0:-90}),t({}),(d,h)=>(L(),Lt(wt,{onResize:n},{default:bt(()=>[E("div",{class:"accordion",style:N({background:o.bgColor,color:o.fontColor,borderRadius:o.borderRadius})},[E("div",{class:"accordion-title",onClick:c,style:N({height:o.titleHeight,lineHeight:o.titleHeight,margin:`0 ${o.padding}`,transitionDelay:`${l.value?0:o.duration}ms`,borderBottom:`${l.value?1:0}px solid ${o.borderColor}`})},[kt(d.$slots,"title",{},()=>[h[0]||(h[0]=Ht("title"))],!0),ct(Un,{class:"arrow",style:N({transition:`transform ${o.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),E("div",{class:"accordion-content",ref_key:"content",ref:i,style:N({margin:`0 ${o.padding}`,transition:`max-height ${o.duration}ms ease-in-out`,maxHeight:l.value?a.value:"0"})},[kt(d.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),[["styles",[`.accordion[data-v-33318c10]{width:100%;font-size:1em;position:relative;overflow:hidden}.accordion-title[data-v-33318c10]{display:flex;justify-content:space-between;align-items:center;user-select:none;cursor:pointer}.accordion-content[data-v-33318c10]{word-break:break-all;overflow:hidden}
|
|
105
|
+
`]],["__scopeId","data-v-33318c10"]]),sv=q({__name:"ProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const o=s,r=I(0);function n(a){r.value=Math.min(Math.max(0,a),100)}return t({goto:n}),(a,i)=>(L(),V("div",{class:"bar",style:N({border:`1px solid ${o.borderColor}`,borderRadius:o.borderRadius,backgroundColor:o.bgColor})},[E("div",{class:"bar-inner",style:N({width:r.value+"%",backgroundColor:o.progressColor})},yt(o.showText?r.value+"%":""),5)],4))}}),u2="",jn=it(sv,[["__scopeId","data-v-d986b312"]]),ov=["width","height"],rv=["src","type"],nv={class:"video-progress-bar"},uf=it(q({customOptions:{ProgressBar:jn},inheritAttrs:!0,__name:"Video.ce",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n;function a(d){if(n){n.resume();return}n=new Fe({frameDuration:this.duration*1e3}),n.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{r("start"),l.value?.goto(0)},onUpdate:h=>{l.value?.goto(h.x)},onComplete:()=>{r("complete"),n=null}}),n.play()}const i=I(),l=I();St(i,()=>{i.value&&(i.value.addEventListener("play",a),o.autoplay&&zi.tryAutoPlayOrAutoPlayAfterClick(i.value))}),oe(()=>{i.value?.removeEventListener(a)});function c(){i.value?.play()}function u(){i.value?.pause(),n?.pause()}return t({play:c,pause:u}),(d,h)=>(L(),V("div",{class:"video",style:N({width:o.width,height:o.height}),onClick:c},[E("video",{ref_key:"video",ref:i,width:o.width,height:o.height,preload:"metadata"},[E("source",{src:o.src,type:o.type},null,8,rv)],8,ov),E("div",nv,[ct(jn,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),[["styles",[`.video[data-v-b54fc81b]{position:relative;overflow:hidden;background-color:#f5f5f5}.video-progress-bar[data-v-b54fc81b]{position:absolute;bottom:0;left:0;width:100%;height:6px}
|
|
106
|
+
`]],["__scopeId","data-v-b54fc81b"]]),so=q({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:ge("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const o=s,r=I(),n=document.documentElement.style.overflow,a=document.body.style.overflow;return St(()=>o.visible,()=>{o.isGlobal?o.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=n,document.body.style.overflow=a):r.value&&(o.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(i,l)=>o.visible?(L(),V("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:N([`background-color: ${o.color}`,`position: ${o.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[kt(i.$slots,"default")],4)):Rt("",!0)}}),ke=q({customOptions:{Overlay:so,Container:wt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{},popPercent:{default:50},popBgColor:{default:"rgba(255,255,255,0)"}},emits:["open","close","resize","clickOverlay"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=new Fe({frameDuration:o.dur}),a=Kt({backgroundColor:o.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),i=I("full");St(()=>[o.directionFrom,o.popValue],()=>{n.clear();const b=o.popValue?o.popValue:o.popPercent,w=o.popValue?"px":"%";switch(o.directionFrom){case"left":a.height="100%",a.width=`${b}${w}`,a.top="0",a.bottom="0",delete a.right,n.addTween({left:b},{left:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.left=`-${x.left}${w}`},onComplete:u});break;case"right":a.height="100%",a.width=`${b}${w}`,a.top="0",a.bottom="0",delete a.left,n.addTween({right:b},{right:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.right=`-${x.right}${w}`},onComplete:u});break;case"top":a.width="100%",a.height=`${b}${w}`,a.left="0",a.right="0",delete a.bottom,n.addTween({top:b},{top:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.top=`-${x.top}${w}`},onComplete:u});break;case"bottom":a.width="100%",a.height=`${b}${w}`,a.left="0",a.right="0",delete a.top,n.addTween({bottom:b},{bottom:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.bottom=`-${x.bottom}${w}`},onComplete:u});break;case"center":delete a.width,delete a.height,a.left="50%",delete a.right,a.top="50%",delete a.bottom,n.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.transform=`translate(-50%, -50%) scale(${x.scale})`,a.opacity=`${x.opacity}`},onComplete:u});break;case"absolute":a.width=o.absoluteWidth,a.height=o.absoluteHeight,a.left=o.absoluteLeft,a.top=o.absoluteTop,delete a.right,delete a.bottom;break}switch(o.directionFrom){case"center":i.value="shrink",a.transform="translate(-50%, -50%)";break;case"absolute":i.value="shrink",delete a.transform,delete a.opacity;break;default:i.value="full",delete a.transform,delete a.opacity;break}},{immediate:!0}),St(()=>o.absoluteLeft,()=>{switch(o.directionFrom){case"absolute":a.left=o.absoluteLeft;break}}),St(()=>o.absoluteTop,()=>{switch(o.directionFrom){case"absolute":a.top=o.absoluteTop;break}}),St(()=>o.absoluteWidth,()=>{switch(o.directionFrom){case"absolute":a.width=o.absoluteWidth;break}}),St(()=>o.absoluteHeight,()=>{switch(o.directionFrom){case"absolute":a.height=o.absoluteHeight;break}});const l=(b,w,x)=>{r("resize",b,w,x)};let c="open";function u(){c=="open"?r("open"):(d.value=!1,r("close"))}const d=I(!1);function h(){d.value=!0,c="open",n.play()}function p(){switch(c="close",o.directionFrom){case"absolute":u();break;default:n.reverse();break}}function f(b){const w=o.directionFrom=="absolute"&&o.absoluteWidth=="100%"&&o.absoluteHeight=="100%"?"pop-content":"pop";b.target&&ji(b.target,w)&&(o.closeWhenClickOverlay&&p(),r("clickOverlay"))}return t({open:h,close:p}),(b,w)=>(L(),Lt(so,{visible:d.value,isGlobal:o.isGlobal,color:o.overlayBgColor},{default:bt(()=>[E("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:f},[ct(wt,{class:"pop-content",type:i.value,style:N(a),onResize:l},{default:bt(()=>[kt(b.$slots,"default",{},()=>[w[0]||(w[0]=E("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),av=q({...{},name:"Image",customOptions:{Container:wt,Pop:ke},inheritAttrs:!0,__name:"Image.ce",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=new Fe({frameDuration:o.dur}),a=I(0),i=I(0),l=I(0),c=I(0),u=I(0),d=I(0),h=I(0),p=I(0),f=I(0),b=I(0);Wd(o.src).then(D=>{f.value=D.width,b.value=D.height,_()});const w=I(0),x=I(0),v=(D,M)=>{w.value=D,x.value=M,_()},g=I(0),m=I(0);function _(){if(!w.value||!x.value||!f.value||!b.value)return;const D=zn(o.mode,f.value,b.value,w.value,x.value);g.value=D.width,m.value=D.height;const{width:M,height:X}=zo(),rt=zn("aspectFit",f.value,b.value,M,X);h.value=rt.width,p.value=rt.height,u.value=(M-h.value)/2,d.value=(X-p.value)/2}const k=(D,M,X)=>{r("settled",X.x,X.y,X.width,X.height)};let Z=!1;const ot=I(),R=I();async function $(){if(!o.openImageDetailWhenClick)return;const D=await ot.value.getSize();n.clear(),n.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:u.value,top:d.value,width:h.value,height:p.value},{easeFunction:dt.Quadratic.Out,onUpdate(M){a.value=M.left,i.value=M.top,l.value=M.width,c.value=M.height},onComplete(){Z&&R.value.close(),Z=!Z}}),Z||(R.value.open(),n.play())}function A(){Z&&n.reverse()}return t({}),(D,M)=>(L(),Lt(wt,{class:"image",type:"full",style:N({backgroundColor:o.bgColor}),onResize:v,onClick:$},{default:bt(()=>[ct(wt,{class:"image-inner",ref_key:"imageRef",ref:ot,type:"shrink",style:N({width:g.value+"px",height:m.value+"px",backgroundImage:`url(${o.src})`,backgroundSize:`${g.value}px ${m.value}px`}),onResize:k},null,8,["style"]),ct(ke,{ref_key:"popRef",ref:R,"direction-from":"absolute","absolute-left":`${a.value}px`,"absolute-top":`${i.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:A},{default:bt(()=>[E("div",{class:"image-pop",style:N({width:"100%",height:"100%",backgroundImage:`url(${o.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),tl=it(av,[["styles",[`.image[data-v-892af4f0]{overflow:hidden;display:flex!important;justify-content:center;align-items:center}.image-inner[data-v-892af4f0],.image-pop[data-v-892af4f0]{background-repeat:no-repeat;background-position:center center}
|
|
107
|
+
`]],["__scopeId","data-v-892af4f0"]]),Hn=q({customOptions:{Container:wt,CSSAnimation:Yo},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:dt.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=Kt({}),i=()=>{r("ready",k,Z)},l=()=>{b()},c=I();let u="rotateRightSideFirst",d=o.effect;function h(ot,R){switch(d){case"static":R();break;default:ot();break}}let p=!1;const f=new Fe,b=()=>{const ot={},R={};f.clear(),f.frameDuration=o.duration,h(()=>{u=d},()=>{f.addTween(ot,R,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:$=>{a.transform="","x"in $&&(a.transform+=` translateX(${$.x}%)`),"y"in $&&(a.transform+=` translateY(${$.y}%)`),"rx"in $&&(a.transform+=` rotateX(${$.rx}deg)`),"ry"in $&&(a.transform+=` rotateY(${$.ry}deg)`),"scale"in $&&(a.transform+=` scale(${$.scale})`),"opacity"in $&&(a.opacity=`${$.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{d=o.effect,b()},{immediate:!0});const w=()=>{r(p?"pageCloseStart":"pageOpenStart")},x=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},v=()=>{h(()=>{c.value.trigger(u)},()=>{f.play()})},g=()=>{h(()=>{c.value.triggerReverse(u)},()=>{f.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function _(){h(()=>{m()},()=>{c.value?.clear()})}const k=ot=>{ot&&(d=ot,b()),p=!1,_(),v()},Z=ot=>{ot&&(d=ot,b()),p=!0,_(),g()};return t({open:k,close:Z,clear:m,getElement:()=>n.value.getElement()}),(ot,R)=>(L(),Lt(wt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l},{default:bt(()=>[ct(Yo,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:w,onCssanimationend:x},{default:bt(()=>[E("div",{class:"page-inner",style:N({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(ot.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),el=q({customOptions:{Page:Hn,Container:wt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:dt.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],d=[];function h(B){return B>=0&&B<c.length}function p(){return a>n}function f(B,P,Yt){switch(B){case n:return p()?P:Yt;case a:return p()?Yt:P;default:return"static"}}function b(B,P){switch(B){case"moveToLeft":return f(P,"moveToLeft","moveFromRight");case"moveToRight":return f(P,"moveToRight","moveFromLeft");case"moveToTop":return f(P,"moveToTop","moveFromBottom");case"moveToBottom":return f(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return f(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return f(P,"fade","moveFromRight");case"moveFromTopPrevFade":return f(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return f(P,"fade","moveFromBottom");case"moveToLeftFade":return f(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return f(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return f(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return f(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return f(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return f(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return f(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return f(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return f(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return f(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return f(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return f(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return f(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return f(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return f(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return f(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return f(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return f(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return f(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return f(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return f(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return f(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return f(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return f(P,"flipOutLeft","flipInRight");case"flipToRight":return f(P,"flipOutRight","flipInLeft");case"flipToTop":return f(P,"flipOutTop","flipInBottom");case"flipToBottom":return f(P,"flipOutBottom","flipInTop");case"rotateFall":return f(P,"rotateFall","scaleFromSmall");case"newspaper":return f(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return f(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return f(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return f(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return f(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return f(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return f(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return f(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return f(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return f(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return f(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return f(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return f(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return f(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return f(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return f(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return f(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return f(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return f(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return f(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return f(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return f(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return f(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return f(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return f(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return f(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return f(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return f(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return f(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return f(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return f(P,"rotateSlideOut","rotateSlideIn")}}function w(B,P=600,Yt=600){switch(B){case n:return P;case a:return Yt;default:return o.duration}}function x(B,P){switch(B){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return w(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return w(P,700,600);case"scaleSmall":return w(P,700,500);case"scaleLarge":return w(P,500,700);case"scaleToLargePrevScaleToSmall":return w(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return w(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return w(P,800,600);default:return o.duration}}let v=o.timingFunction;function g(B){switch(B){default:return o.easeFunction}}function m(B,P){switch(B){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:v=p()?"ease-in-out":"ease";break;case a:default:v=p()?"ease":"ease-in-out"}return g(P);default:return v=o.timingFunction,o.easeFunction}}function _(B,P=300){switch(B){case a:return o.delay+P;default:return o.delay}}function k(B,P){switch(B){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return _(P,500);case"scaleSmall":case"scaleLarge":return _(P,300);case"scaleToLargePrevScaleToSmall":return _(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return _(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return _(P,180);default:return o.delay}}let Z=2,ot=2;const R=()=>{Z=2,ot=2},$=()=>{Z=2,ot=3},A=()=>{Z=3,ot=2};function D(B){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":A();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":p()?A():$();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":p()?$():A();break;default:R();break}h(n)&&n==B&&(d[n].style.zIndex=`${Z}`,d[n].style.visibility="visible"),h(a)&&a==B&&(d[a].style.zIndex=`${ot}`,d[a].style.visibility="visible")}function M(B){$(),B==n&&(d[n].style.zIndex=`${Z}`,d[n].style.visibility="hidden"),B==a&&(d[a].style.zIndex=`${ot}`,d[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const X=I();function rt(B=0,P=!1){if(!X.value)return;let Yt=0;pn(Jt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((At,Et)=>{const ee=b(o.effect,Et);return Jt("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:n==Et?"visible":"hidden",zIndex:P?"1":"0"}},At.pageKey?{key:At.pageKey}:{}),Jt(Hn,{effect:ee,duration:x(o.effect,Et),easeFunction:m(o.effect,Et),timingFunction:v,delay:k(o.effect,Et),onReady:(Xt,U)=>{u[Et]={open:Xt,close:U},++Yt==B&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{D(Et)},onPageOpenEnd:()=>{M(Et)},onPageCloseStart:()=>{D(Et)},onPageCloseEnd:()=>{M(Et)}},{default:()=>At.component instanceof HTMLElement?Jt("div",{...At.attributes,innerHTML:At.component.innerHTML}):Jt(At.component,At.attributes,()=>At.child)}))})),X.value),d=X.value.children[0].children}St(()=>o.effect,()=>{rt()});function Q(B=[]){c=[...B],c.forEach(P=>{P.pageKey=P.pageKey||$o()}),i=()=>{n=-1,ht(0)},rt(c.length,!0)}function W(B){B.pageKey=B.pageKey||$o(),c.push(B),i=()=>{ht(c.length-1)},rt(1,c.length==1)}function at(){c.length<=1||ht(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,rt()})}function G(){ht(n+1)}function j(){ht(n-1)}const gt=new vn(1);function ht(B,P){gt.addTask(()=>new Promise(Yt=>{const At=()=>{P?.(),Yt()};if(!h(B)){At();return}if(a=B,a==n){At();return}l.push(At),rt(),r("routeChangeStart",n,a,c.length),p()?(h(n)&&u[n].open(),h(a)&&u[a].open()):(h(n)&&u[n].close(),h(a)&&u[a].close())}))}return t({reset:Q,push:W,pop:at,forward:G,back:j,goto:ht,currentPageIndex:()=>n,totalPages:()=>c.length}),(B,P)=>(L(),V("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),iv=q({...{},name:"Image",customOptions:{Container:wt,Pop:ke},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=new Fe({frameDuration:o.dur}),a=I(0),i=I(0),l=I(0),c=I(0),u=I(0),d=I(0),h=I(0),p=I(0),f=I(0),b=I(0);Wd(o.src).then(D=>{f.value=D.width,b.value=D.height,_()});const w=I(0),x=I(0),v=(D,M)=>{w.value=D,x.value=M,_()},g=I(0),m=I(0);function _(){if(!w.value||!x.value||!f.value||!b.value)return;const D=zn(o.mode,f.value,b.value,w.value,x.value);g.value=D.width,m.value=D.height;const{width:M,height:X}=zo(),rt=zn("aspectFit",f.value,b.value,M,X);h.value=rt.width,p.value=rt.height,u.value=(M-h.value)/2,d.value=(X-p.value)/2}const k=(D,M,X)=>{r("settled",X.x,X.y,X.width,X.height)};let Z=!1;const ot=I(),R=I();async function $(){if(!o.openImageDetailWhenClick)return;const D=await ot.value.getSize();n.clear(),n.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:u.value,top:d.value,width:h.value,height:p.value},{easeFunction:dt.Quadratic.Out,onUpdate(M){a.value=M.left,i.value=M.top,l.value=M.width,c.value=M.height},onComplete(){Z&&R.value.close(),Z=!Z}}),Z||(R.value.open(),n.play())}function A(){Z&&n.reverse()}return t({}),(D,M)=>(L(),Lt(wt,{class:"image",type:"full",style:N({backgroundColor:o.bgColor}),onResize:v,onClick:$},{default:bt(()=>[ct(wt,{class:"image-inner",ref_key:"imageRef",ref:ot,type:"shrink",style:N({width:g.value+"px",height:m.value+"px",backgroundImage:`url(${o.src})`,backgroundSize:`${g.value}px ${m.value}px`}),onResize:k},null,8,["style"]),ct(ke,{ref_key:"popRef",ref:R,"direction-from":"absolute","absolute-left":`${a.value}px`,"absolute-top":`${i.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:A},{default:bt(()=>[E("div",{class:"image-pop",style:N({width:"100%",height:"100%",backgroundImage:`url(${o.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),g2="",df=it(iv,[["__scopeId","data-v-4e9887dd"]]),lv={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},ff=q({customOptions:{Image:df,Container:wt,Routes:el},inheritAttrs:!0,__name:"ImageView.ce",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const o=s,r=I(0);function n(h,p){r.value=p}const a=I(),i=h=>{h.on("panLeft",()=>{a.value?.forward()}),h.on("panRight",()=>{a.value?.back()}),a.value.reset(o.urls.map(p=>({component:Jt(df,{mode:"aspectFit",src:p,openImageDetailWhenClick:!1})})))},l=I();function c(){l.value?.open()}function u(){l.value?.close()}const d=h=>{h.target&&ji(h.target,"image")&&u()};return t({open:c,close:u}),(h,p)=>(L(),Lt(ke,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:d},{default:bt(()=>[o.urls.length>1?(L(),V("div",lv,yt(r.value+1)+" / "+yt(o.urls.length),1)):Rt("",!0),ct(wt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:i},{default:bt(()=>[ct(el,{ref_key:"routesRef",ref:a,effect:o.effect,onRouteChangeEnd:n},null,8,["effect"])]),_:1})]),_:1},512))}}),y2="",cv={class:"page"},uv={class:"header"},dv={class:"main"},fv={class:"main-scroll"},hv={class:"footer"},pv=it(q({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile.ce",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return qy(s.designWidth),t({}),(r,n)=>(L(),V("div",cv,[E("header",uv,[kt(r.$slots,"header",{},void 0,!0)]),E("div",dv,[E("div",fv,[kt(r.$slots,"default",{},void 0,!0)])]),E("footer",hv,[kt(r.$slots,"footer",{},void 0,!0)])]))}}),[["styles",[`.page[data-v-828e514c]{width:100%;height:100%;position:relative;overflow:hidden;display:flex;flex-direction:column}.main[data-v-828e514c]{flex:1 1 auto;width:100%;overflow-y:scroll;display:flex;flex-direction:column}.main-scroll[data-v-828e514c]{flex:1 1 auto;width:100%}.main-scroll[data-v-828e514c]>:nth-child(1){min-height:100%}.header[data-v-828e514c],.footer[data-v-828e514c]{flex:0 0 auto}
|
|
108
|
+
`]],["__scopeId","data-v-828e514c"]]),mv=it(q({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter.ce",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const o=s,r=Kt({}),n=Kt({});function a(){switch(Pu(r),Pu(n),o.type){case"table":r.display="table",n.display="table-cell",n.verticalAlign="middle",n.textAlign="center";break;case"transform":n.position="absolute",n.top="50%",n.left="50%",n.transform="translate(-50%, -50%)";break;case"grid":r.display="grid",r.justifyContent="center",r.alignItems="center";break;case"flex":default:r.display="flex",n.margin="auto"}}return a(),oe(()=>{}),t({}),(i,l)=>(L(),V("div",{class:"layout-center",style:N(r)},[E("div",{style:N(n)},[kt(i.$slots,"default",{},void 0,!0)],4)],4))}}),[["styles",[`.layout-center[data-v-114afb17]{position:relative;display:block;width:100%;height:100%;overflow:hidden}
|
|
109
|
+
`]],["__scopeId","data-v-114afb17"]]),de=q({customOptions:{},inheritAttrs:!0,__name:"Container.ce",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},supportCopyText:{type:Boolean,default:!1},styleSheets:{}},emits:["ready","resize","start","end"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n="start";const a=()=>{n="start",r("start")},i=()=>{n="end",r("end")},l=()=>{n=="start"?i():a()},c=I();let u=!1,d,h;vs(()=>{if(o.styleSheets){let b="";for(let w in o.styleSheets)b+=`${w}: ${o.styleSheets[w]};`;cs(`
|
|
94
110
|
:root {
|
|
95
|
-
${
|
|
111
|
+
${b}
|
|
96
112
|
}
|
|
97
113
|
:host {
|
|
98
|
-
${
|
|
114
|
+
${b}
|
|
99
115
|
}
|
|
100
|
-
`,
|
|
101
|
-
`]],["__scopeId","data-v-061fc404"]]),
|
|
102
|
-
`]],["__scopeId","data-v-2227dca8"]]),
|
|
103
|
-
`]],["__scopeId","data-v-c02c226c"]]),Ji=q({customOptions:{Container:wt,CSSAnimation:Vo},inheritAttrs:!0,__name:"Page.ce",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ft.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=R(),a=Qt({}),i=()=>{r("ready",C,U)},l=()=>{w()},c=R();let u="rotateRightSideFirst",f=s.effect;function d(K,I){switch(f){case"static":I();break;default:K();break}}let p=!1;const h=new Ie,w=()=>{const K={},I={};h.clear(),h.frameDuration=s.duration,d(()=>{u=f},()=>{h.addTween(K,I,{delay:s.delay/s.duration,easeFunction:s.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:$=>{a.transform="","x"in $&&(a.transform+=` translateX(${$.x}%)`),"y"in $&&(a.transform+=` translateY(${$.y}%)`),"rx"in $&&(a.transform+=` rotateX(${$.rx}deg)`),"ry"in $&&(a.transform+=` rotateY(${$.ry}deg)`),"scale"in $&&(a.transform+=` scale(${$.scale})`),"opacity"in $&&(a.opacity=`${$.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[s.effect,s.delay,s.duration,s.easeFunction],()=>{f=s.effect,w()},{immediate:!0});const _=()=>{r(p?"pageCloseStart":"pageOpenStart")},x=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},v=()=>{d(()=>{c.value.trigger(u)},()=>{h.play()})},g=()=>{d(()=>{c.value.triggerReverse(u)},()=>{h.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function b(){d(()=>{m()},()=>{c.value?.clear()})}const C=K=>{K&&(f=K,w()),p=!1,b(),n.value.startEffect()},U=K=>{K&&(f=K,w()),p=!0,b(),n.value.endEffect()};return t({open:C,close:U,clear:m,getElement:()=>n.value.getElement()}),(K,I)=>(L(),Nt(wt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l,onStart:v,onEnd:g},{default:bt(()=>[ct(Vo,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:s.duration,delay:s.delay,timingFunction:s.timingFunction,onCssanimationstart:_,onCssanimationend:x},{default:bt(()=>[E("div",{class:"page-inner",style:M({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(K.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),tl=q({customOptions:{Page:Yn,Container:wt},inheritAttrs:!0,__name:"Routes.ce",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ft.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(o,{expose:t,emit:e}){const s=o,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],f=[];function d(B){return B>=0&&B<c.length}function p(){return a>n}function h(B,P,Yt){switch(B){case n:return p()?P:Yt;case a:return p()?Yt:P;default:return"static"}}function w(B,P){switch(B){case"moveToLeft":return h(P,"moveToLeft","moveFromRight");case"moveToRight":return h(P,"moveToRight","moveFromLeft");case"moveToTop":return h(P,"moveToTop","moveFromBottom");case"moveToBottom":return h(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return h(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return h(P,"fade","moveFromRight");case"moveFromTopPrevFade":return h(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return h(P,"fade","moveFromBottom");case"moveToLeftFade":return h(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return h(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return h(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return h(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return h(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return h(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return h(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return h(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return h(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return h(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return h(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return h(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return h(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return h(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return h(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return h(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return h(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return h(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return h(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return h(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return h(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return h(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return h(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return h(P,"flipOutLeft","flipInRight");case"flipToRight":return h(P,"flipOutRight","flipInLeft");case"flipToTop":return h(P,"flipOutTop","flipInBottom");case"flipToBottom":return h(P,"flipOutBottom","flipInTop");case"rotateFall":return h(P,"rotateFall","scaleFromSmall");case"newspaper":return h(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return h(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return h(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return h(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return h(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return h(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return h(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return h(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return h(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return h(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return h(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return h(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return h(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return h(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return h(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return h(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return h(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return h(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return h(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return h(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return h(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return h(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return h(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return h(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return h(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return h(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return h(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return h(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return h(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return h(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return h(P,"rotateSlideOut","rotateSlideIn")}}function _(B,P=600,Yt=600){switch(B){case n:return P;case a:return Yt;default:return s.duration}}function x(B,P){switch(B){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return _(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return _(P,700,600);case"scaleSmall":return _(P,700,500);case"scaleLarge":return _(P,500,700);case"scaleToLargePrevScaleToSmall":return _(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return _(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return _(P,800,600);default:return s.duration}}let v=s.timingFunction;function g(B){switch(B){default:return s.easeFunction}}function m(B,P){switch(B){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:v=p()?"ease-in-out":"ease";break;case a:default:v=p()?"ease":"ease-in-out"}return g(P);default:return v=s.timingFunction,s.easeFunction}}function b(B,P=300){switch(B){case a:return s.delay+P;default:return s.delay}}function C(B,P){switch(B){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return b(P,500);case"scaleSmall":case"scaleLarge":return b(P,300);case"scaleToLargePrevScaleToSmall":return b(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return b(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return b(P,180);default:return s.delay}}let U=2,K=2;const I=()=>{U=2,K=2},$=()=>{U=2,K=3},N=()=>{U=3,K=2};function D(B){switch(s.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":N();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":p()?N():$();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":p()?$():N();break;default:I();break}d(n)&&n==B&&(f[n].style.zIndex=`${U}`,f[n].style.visibility="visible"),d(a)&&a==B&&(f[a].style.zIndex=`${K}`,f[a].style.visibility="visible")}function A(B){$(),B==n&&(f[n].style.zIndex=`${U}`,f[n].style.visibility="hidden"),B==a&&(f[a].style.zIndex=`${K}`,f[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const X=R();function rt(B=0,P=!1){if(!X.value)return;let Yt=0;dn(Kt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((Mt,Et)=>{const te=w(s.effect,Et);return Kt("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:n==Et?"visible":"hidden",zIndex:P?"1":"0"}},Mt.pageKey?{key:Mt.pageKey}:{}),Kt(Yn,{effect:te,duration:x(s.effect,Et),easeFunction:m(s.effect,Et),timingFunction:v,delay:C(s.effect,Et),onReady:(Xt,j)=>{u[Et]={open:Xt,close:j},++Yt==B&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{D(Et)},onPageOpenEnd:()=>{A(Et)},onPageCloseStart:()=>{D(Et)},onPageCloseEnd:()=>{A(Et)}},{default:()=>Mt.component instanceof HTMLElement?Kt("div",{...Mt.attributes,innerHTML:Mt.component.innerHTML}):Kt(Mt.component,Mt.attributes,()=>Mt.child)}))})),X.value),f=X.value.children[0].children}St(()=>s.effect,()=>{rt()});function Q(B=[]){c=[...B],c.forEach(P=>{P.pageKey=P.pageKey||Fo()}),i=()=>{n=-1,ht(0)},rt(c.length,!0)}function Z(B){B.pageKey=B.pageKey||Fo(),c.push(B),i=()=>{ht(c.length-1)},rt(1,c.length==1)}function at(){c.length<=1||ht(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,rt()})}function G(){ht(n+1)}function H(){ht(n-1)}const gt=new gn(1);function ht(B,P){gt.addTask(()=>new Promise(Yt=>{const Mt=()=>{P?.(),Yt()};if(!d(B)){Mt();return}if(a=B,a==n){Mt();return}l.push(Mt),rt(),r("routeChangeStart",n,a,c.length),p()?(d(n)&&u[n].open(),d(a)&&u[a].open()):(d(n)&&u[n].close(),d(a)&&u[a].close())}))}return t({reset:Q,push:Z,pop:at,forward:G,back:H,goto:ht,currentPageIndex:()=>n,totalPages:()=>c.length}),(B,P)=>(L(),V("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),wv={class:"tabs"},kv=["onClick"],Cv={class:"content"},Tv=it(q({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=R(s.initIndex),a=Qt([]),i=R(),l=R(0),c=R(0),u=R(0),f=R([]),d=[],p=$p(),h=p.default&&p.default();h&&(hr(a,h),x(n.value));const w=(g,m)=>{if(g){if(d.push({index:m,el:g}),d.length<a.length)return;f.value=d}};St([i,f],()=>{_()});function _(){if(i.value&&f.value.length){const g=i.value.getBoundingClientRect(),m=f.value[n.value].el.getBoundingClientRect();l.value=m.x-g.x,c.value=m.y-g.y+m.height-2,u.value=m.width}}function x(g){n.value=g,r("changedIndex",g),_(),v.value.goto(g)}const v=R();return St(v,()=>{v.value&&v.value.reset(s.pages,()=>{v.value.goto(s.initIndex)})}),t({}),(g,m)=>(L(),V("div",wv,[E("div",{class:"header",ref_key:"headerRef",ref:i},[(L(!0),V(Vt,null,_e(s.labels,(b,C)=>(L(),V("div",{key:b,class:ee(C==n.value?"active":""),onClick:U=>x(C)},[E("div",{ref_for:!0,ref:U=>w(U,C)},yt(b),513)],10,kv))),128)),E("div",{class:"indicator",style:M({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),E("div",Cv,[ct(Qi,{ref_key:"routesRef",ref:v},null,512)])]))}}),[["styles",[`.tabs[data-v-a49dc86a]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-a49dc86a]{flex:1 1 auto}.header[data-v-a49dc86a]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-a49dc86a]{color:#5a82f0}.header>div[data-v-a49dc86a]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-a49dc86a]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-a49dc86a]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
|
|
104
|
-
`]],["__scopeId","data-v-a49dc86a"]]),
|
|
105
|
-
`]],["__scopeId","data-v-2492fe8d"]]),
|
|
106
|
-
`]],["__scopeId","data-v-7a4e1639"]]),
|
|
107
|
-
`]],["__scopeId","data-v-8d96d860"]]),
|
|
108
|
-
`]],["__scopeId","data-v-
|
|
109
|
-
`]],["__scopeId","data-v-49a2baa1"]]),
|
|
116
|
+
`,c.value)}d=new rs(c.value,!1),d.on("resize",(b,w)=>{r("resize",b,w,c.value.getBoundingClientRect()),h?.(d),u||(u=!0,o.effectTriggerTiming!=="manual"&&a(),r("ready",d),o.effectTriggerTiming=="immediate"&&l())}),d.on("mouseEnter",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),d.on("mouseLeave",()=>{o.effectTriggerTiming=="mouseMove"&&l()}),d.on("tap",()=>{o.effectTriggerTiming=="click"&&l(),o.supportCopyText&&Hi(_o(c.value).getInnerText()).then(()=>{}).catch(b=>{})}),d.start()});const p=()=>new Promise(b=>{if(d)return b(d);h=b}),f=async()=>(await p(),c.value.getBoundingClientRect());return oe(()=>{d?.destroy()}),t({getElement:()=>c.value,getApp:p,getSize:f}),(b,w)=>(L(),V("div",{class:se(["container",[o.type]]),ref_key:"containerRef",ref:c,style:N({position:"relative",boxSizing:"border-box",display:o.type=="shrink"?"inline-block":"block",width:o.type=="full"?"100%":"auto",height:o.type=="full"?"100%":"auto"})},[kt(b.$slots,"default")],6))}}),Wn=q({customOptions:{},inheritAttrs:!0,__name:"Overlay.ce",props:{visible:{type:Boolean,default:!1},color:{default:ge("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const o=s,r=I(),n=document.documentElement.style.overflow,a=document.body.style.overflow;return St(()=>o.visible,()=>{o.isGlobal?o.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=n,document.body.style.overflow=a):r.value&&(o.visible?r.value.parentElement.style.overflow="hidden":r.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(i,l)=>o.visible?(L(),V("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:r,style:N([`background-color: ${o.color}`,`position: ${o.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[kt(i.$slots,"default")],4)):Rt("",!0)}}),wo=q({customOptions:{Overlay:so,Container:wt},inheritAttrs:!0,__name:"Pop.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{},popPercent:{default:50},popBgColor:{default:"rgba(255,255,255,0)"}},emits:["open","close","resize","clickOverlay"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=new Fe({frameDuration:o.dur}),a=Kt({backgroundColor:o.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),i=I("full");St(()=>[o.directionFrom,o.popValue],()=>{n.clear();const b=o.popValue?o.popValue:o.popPercent,w=o.popValue?"px":"%";switch(o.directionFrom){case"left":a.height="100%",a.width=`${b}${w}`,a.top="0",a.bottom="0",delete a.right,n.addTween({left:b},{left:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.left=`-${x.left}${w}`},onComplete:u});break;case"right":a.height="100%",a.width=`${b}${w}`,a.top="0",a.bottom="0",delete a.left,n.addTween({right:b},{right:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.right=`-${x.right}${w}`},onComplete:u});break;case"top":a.width="100%",a.height=`${b}${w}`,a.left="0",a.right="0",delete a.bottom,n.addTween({top:b},{top:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.top=`-${x.top}${w}`},onComplete:u});break;case"bottom":a.width="100%",a.height=`${b}${w}`,a.left="0",a.right="0",delete a.top,n.addTween({bottom:b},{bottom:0},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.bottom=`-${x.bottom}${w}`},onComplete:u});break;case"center":delete a.width,delete a.height,a.left="50%",delete a.right,a.top="50%",delete a.bottom,n.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:dt.Quadratic.Out,onUpdate(x){a.transform=`translate(-50%, -50%) scale(${x.scale})`,a.opacity=`${x.opacity}`},onComplete:u});break;case"absolute":a.width=o.absoluteWidth,a.height=o.absoluteHeight,a.left=o.absoluteLeft,a.top=o.absoluteTop,delete a.right,delete a.bottom;break}switch(o.directionFrom){case"center":i.value="shrink",a.transform="translate(-50%, -50%)";break;case"absolute":i.value="shrink",delete a.transform,delete a.opacity;break;default:i.value="full",delete a.transform,delete a.opacity;break}},{immediate:!0}),St(()=>o.absoluteLeft,()=>{switch(o.directionFrom){case"absolute":a.left=o.absoluteLeft;break}}),St(()=>o.absoluteTop,()=>{switch(o.directionFrom){case"absolute":a.top=o.absoluteTop;break}}),St(()=>o.absoluteWidth,()=>{switch(o.directionFrom){case"absolute":a.width=o.absoluteWidth;break}}),St(()=>o.absoluteHeight,()=>{switch(o.directionFrom){case"absolute":a.height=o.absoluteHeight;break}});const l=(b,w,x)=>{r("resize",b,w,x)};let c="open";function u(){c=="open"?r("open"):(d.value=!1,r("close"))}const d=I(!1);function h(){d.value=!0,c="open",n.play()}function p(){switch(c="close",o.directionFrom){case"absolute":u();break;default:n.reverse();break}}function f(b){const w=o.directionFrom=="absolute"&&o.absoluteWidth=="100%"&&o.absoluteHeight=="100%"?"pop-content":"pop";b.target&&ji(b.target,w)&&(o.closeWhenClickOverlay&&p(),r("clickOverlay"))}return t({open:h,close:p}),(b,w)=>(L(),Lt(so,{visible:d.value,isGlobal:o.isGlobal,color:o.overlayBgColor},{default:bt(()=>[E("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:f},[ct(wt,{class:"pop-content",type:i.value,style:N(a),onResize:l},{default:bt(()=>[kt(b.$slots,"default",{},()=>[w[0]||(w[0]=E("div",null,null,-1))])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),sl=q({customOptions:{Pop:ke,Button:ae,Container:wt},inheritAttrs:!0,__name:"Popover.ce",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!0}},setup(s,{expose:t}){const e=s,o=I();function r(){o.value.open()}function n(){o.value.close()}const a=I(),i=I(0),l=I(0),c=I(0),u=I(0),d=(h,p)=>{if(c.value=h,u.value=p,!a.value)return;const f=zo(),b=a.value.getBoundingClientRect();i.value=Math.max(e.gap,Math.min(b.x+b.width+e.gap,f.width-h-e.gap)),l.value=Math.max(e.gap,Math.min(b.y,f.height-p-e.gap))};return t({open:r,close:n}),(h,p)=>(L(),V(Vt,null,[E("div",{ref_key:"popoverButtonRef",ref:a,class:"popover-button",style:{display:"inline-block"},onClick:r},[kt(h.$slots,"button",{},()=>[ct(ae,null,{default:bt(()=>p[0]||(p[0]=[Ht("popover")])),_:1})])],512),ct(ke,{ref_key:"popRef",ref:o,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:bt(()=>[E("div",{style:N({position:"absolute",left:i.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[ct(wt,{type:"shrink",onResize:d},{default:bt(()=>[kt(h.$slots,"panel",{},()=>[p[1]||(p[1]=E("div",{style:{"background-color":"#ffffff"}},"...",-1))])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),gv={class:"dialog-parent"},yv={key:0,class:"title"},vv={key:0,class:"title-inner truncate"},bv={class:"custom-content"},_v={class:"custom-content-default"},xv={key:1,class:"btns"},Zn=it(q({customOptions:{Overlay:so,Pop:ke,Icon:Ss,Button:ae},inheritAttrs:!0,__name:"Dialog.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(""),i=I(""),l=I(!1),c=I(""),u=I("");let d,h,p;const f=()=>{r("open")},b=()=>{d?.(),r("close")};function w(m){a.value=m?.title||"",i.value=m?.content||"",l.value=typeof m?.showClose=="boolean"?m?.showClose:!1,c.value=m?.cancelText||"",u.value=m?.confirmText||"",d=m?.onClose,h=m?.onCancel,p=m?.onConfirm,n.value.open()}function x(){n.value.close()}function v(){x(),h?.(),r("cancel")}function g(){x(),p?.(),r("confirm")}return t({open:w,close:x}),(m,_)=>(L(),Lt(ke,{ref_key:"popRef",ref:n,directionFrom:"center",closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:o.overlayBgColor,onOpen:f,onClose:b},{default:bt(()=>[E("div",gv,[E("div",{class:"dialog",style:N({minWidth:o.minWidth,maxWidth:o.maxWidth})},[a.value||l.value?(L(),V("div",yv,[a.value?(L(),V("div",vv,yt(a.value),1)):Rt("",!0),l.value?(L(),V("div",{key:1,class:"close",onClick:x},[ct(Ss,{icon:"ic:baseline-close",color:Ct(vt).colorGrayCC},null,8,["color"])])):Rt("",!0)])):Rt("",!0),E("div",bv,[kt(m.$slots,"default",{},()=>[E("div",_v,yt(i.value),1)],!0)]),c.value||u.value?(L(),V("div",xv,[c.value?(L(),Lt(ae,{key:0,onClick:v,class:"btn",bgColor:Ct(vt).colorGrayE6,borderColor:Ct(vt).colorGrayE6,fontColor:Ct(vt).colorGray33,borderRadius:"0"},{default:bt(()=>[Ht(yt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Rt("",!0),u.value?(L(),Lt(ae,{key:1,onClick:g,class:"btn",borderRadius:"0"},{default:bt(()=>[Ht(yt(u.value),1)]),_:1})):Rt("",!0)])):Rt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),[["styles",[`.dialog-parent[data-v-061fc404]{display:flex;justify-content:center;align-items:center}.dialog[data-v-061fc404]{border-radius:8px;background-color:#fff;overflow:hidden}.title[data-v-061fc404]{position:relative;font-size:20px;min-height:20px;margin-top:1em}.title-inner[data-v-061fc404]{font-weight:700;min-height:20px;padding:0 2em;text-align:center}.close[data-v-061fc404]{position:absolute;top:0;right:0;width:2em;height:100%;font-size:1.2em;text-align:center}.custom-content[data-v-061fc404]{font-size:16px;word-break:break-all}.custom-content-default[data-v-061fc404]{padding:1em}.btns[data-v-061fc404]{display:flex;justify-content:center}.btn[data-v-061fc404]{flex:1 1 auto;border-radius:0}
|
|
117
|
+
`]],["__scopeId","data-v-061fc404"]]),wv={class:"dialog-parent"},kv={key:0,class:"title"},Cv={key:0,class:"title-inner truncate"},Tv={class:"custom-content"},Sv={class:"custom-content-default"},Ev={key:1,class:"btns"},Pv=q({customOptions:{Overlay:so,Pop:ke,Icon:Ss,Button:ae},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(""),i=I(""),l=I(!1),c=I(""),u=I("");let d,h,p;const f=()=>{r("open")},b=()=>{d?.(),r("close")};function w(m){a.value=m?.title||"",i.value=m?.content||"",l.value=typeof m?.showClose=="boolean"?m?.showClose:!1,c.value=m?.cancelText||"",u.value=m?.confirmText||"",d=m?.onClose,h=m?.onCancel,p=m?.onConfirm,n.value.open()}function x(){n.value.close()}function v(){x(),h?.(),r("cancel")}function g(){x(),p?.(),r("confirm")}return t({open:w,close:x}),(m,_)=>(L(),Lt(ke,{ref_key:"popRef",ref:n,directionFrom:"center",closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:o.overlayBgColor,onOpen:f,onClose:b},{default:bt(()=>[E("div",wv,[E("div",{class:"dialog",style:N({minWidth:o.minWidth,maxWidth:o.maxWidth})},[a.value||l.value?(L(),V("div",kv,[a.value?(L(),V("div",Cv,yt(a.value),1)):Rt("",!0),l.value?(L(),V("div",{key:1,class:"close",onClick:x},[ct(Ss,{icon:"ic:baseline-close",color:Ct(vt).colorGrayCC},null,8,["color"])])):Rt("",!0)])):Rt("",!0),E("div",Tv,[kt(m.$slots,"default",{},()=>[E("div",Sv,yt(i.value),1)],!0)]),c.value||u.value?(L(),V("div",Ev,[c.value?(L(),Lt(ae,{key:0,onClick:v,class:"btn",bgColor:Ct(vt).colorGrayE6,borderColor:Ct(vt).colorGrayE6,fontColor:Ct(vt).colorGray33,borderRadius:"0"},{default:bt(()=>[Ht(yt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Rt("",!0),u.value?(L(),Lt(ae,{key:1,onClick:g,class:"btn",borderRadius:"0"},{default:bt(()=>[Ht(yt(u.value),1)]),_:1})):Rt("",!0)])):Rt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),C2="",qn=it(Pv,[["__scopeId","data-v-f9df8635"]]),Ov={class:"loading-8"},Rv={viewBox:"25 25 50 50"},Iv=q({__name:"Loading8",props:{color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("div",Ov,[(L(),V("svg",Rv,[E("circle",{cx:"50",cy:"50",r:"20",style:N(["stroke: "+t.color])},null,4)]))]))}}),T2="",hf=it(Iv,[["__scopeId","data-v-e5e3cf4c"]]),Fv={class:"loading"},Dv={class:"icon"},$v={style:{width:"8em"}},Lv={key:0,class:"content"},pf=it(q({customOptions:{Overlay:so,Pop:ke,Dialog:qn,Loading8:hf},inheritAttrs:!0,__name:"DialogLoading.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(""),i=()=>{r("open")},l=()=>{r("close")};function c(d){a.value=d||"",n.value.open()}function u(){n.value.close()}return t({open:c,close:u}),(d,h)=>(L(),Lt(qn,{ref_key:"dialogRef",ref:n,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,onOpen:i,onClose:l},{default:bt(()=>[E("div",Fv,[E("div",Dv,[kt(d.$slots,"default",{},()=>[E("div",$v,[ct(hf)])],!0)]),a.value?(L(),V("div",Lv,yt(a.value),1)):Rt("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),[["styles",[`.loading[data-v-2227dca8]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:1em}.icon[data-v-2227dca8]{padding:2em 0;display:flex;justify-content:center;align-items:center}.content[data-v-2227dca8]{font-size:1em;margin-top:-1em;margin-bottom:1em}
|
|
118
|
+
`]],["__scopeId","data-v-2227dca8"]]),Av={class:"toast"},Nv={class:"content"},mf=it(q({customOptions:{Overlay:so,Pop:ke,Dialog:qn},inheritAttrs:!0,__name:"DialogToast.ce",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(""),i=()=>{r("open")},l=()=>{r("close")};function c(d,h=1500){a.value=d,n.value.open(),setTimeout(()=>{u()},h)}function u(){n.value.close()}return t({open:c,close:u}),(d,h)=>(L(),Lt(qn,{ref_key:"dialogRef",ref:n,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:o.closeWhenClickOverlay,dur:o.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:i,onClose:l},{default:bt(()=>[E("div",Av,[E("div",Nv,yt(a.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),[["styles",[`.toast[data-v-c02c226c]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#333;color:#ccc;padding:1em}.content[data-v-c02c226c]{font-size:1em}
|
|
119
|
+
`]],["__scopeId","data-v-c02c226c"]]),ol=q({customOptions:{Container:wt,CSSAnimation:Yo},inheritAttrs:!0,__name:"Page.ce",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:dt.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=Kt({}),i=()=>{r("ready",k,Z)},l=()=>{b()},c=I();let u="rotateRightSideFirst",d=o.effect;function h(ot,R){switch(d){case"static":R();break;default:ot();break}}let p=!1;const f=new Fe,b=()=>{const ot={},R={};f.clear(),f.frameDuration=o.duration,h(()=>{u=d},()=>{f.addTween(ot,R,{delay:o.delay/o.duration,easeFunction:o.easeFunction,onStart:()=>{r(p?"pageCloseStart":"pageOpenStart")},onUpdate:$=>{a.transform="","x"in $&&(a.transform+=` translateX(${$.x}%)`),"y"in $&&(a.transform+=` translateY(${$.y}%)`),"rx"in $&&(a.transform+=` rotateX(${$.rx}deg)`),"ry"in $&&(a.transform+=` rotateY(${$.ry}deg)`),"scale"in $&&(a.transform+=` scale(${$.scale})`),"opacity"in $&&(a.opacity=`${$.opacity}`)},onComplete:()=>{r(p?"pageCloseEnd":"pageOpenEnd")}})})};St(()=>[o.effect,o.delay,o.duration,o.easeFunction],()=>{d=o.effect,b()},{immediate:!0});const w=()=>{r(p?"pageCloseStart":"pageOpenStart")},x=()=>{r(p?"pageCloseEnd":"pageOpenEnd")},v=()=>{h(()=>{c.value.trigger(u)},()=>{f.play()})},g=()=>{h(()=>{c.value.triggerReverse(u)},()=>{f.reverse()})},m=()=>{a.transform="none",a.opacity="1"};function _(){h(()=>{m()},()=>{c.value?.clear()})}const k=ot=>{ot&&(d=ot,b()),p=!1,_(),v()},Z=ot=>{ot&&(d=ot,b()),p=!0,_(),g()};return t({open:k,close:Z,clear:m,getElement:()=>n.value.getElement()}),(ot,R)=>(L(),Lt(wt,{class:"page",ref_key:"pageRef",ref:n,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:i,onResize:l},{default:bt(()=>[ct(Yo,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:o.duration,delay:o.delay,timingFunction:o.timingFunction,onCssanimationstart:w,onCssanimationend:x},{default:bt(()=>[E("div",{class:"page-inner",style:N({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...a})},[kt(ot.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),rl=q({customOptions:{Page:Hn,Container:wt},inheritAttrs:!0,__name:"Routes.ce",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:dt.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n=-1,a=-1,i;const l=[];let c=[],u=[],d=[];function h(B){return B>=0&&B<c.length}function p(){return a>n}function f(B,P,Yt){switch(B){case n:return p()?P:Yt;case a:return p()?Yt:P;default:return"static"}}function b(B,P){switch(B){case"moveToLeft":return f(P,"moveToLeft","moveFromRight");case"moveToRight":return f(P,"moveToRight","moveFromLeft");case"moveToTop":return f(P,"moveToTop","moveFromBottom");case"moveToBottom":return f(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return f(P,"fade","moveFromLeft");case"moveFromRightPrevFade":return f(P,"fade","moveFromRight");case"moveFromTopPrevFade":return f(P,"fade","moveFromTop");case"moveFromBottomPrevFade":return f(P,"fade","moveFromBottom");case"moveToLeftFade":return f(P,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return f(P,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return f(P,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return f(P,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return f(P,"moveToLeft","moveFromRight");case"moveToRightEasing":return f(P,"moveToRight","moveFromLeft");case"moveToTopEasing":return f(P,"moveToTop","moveFromBottom");case"moveToBottomEasing":return f(P,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return f(P,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return f(P,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return f(P,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return f(P,"scaleToSmall","moveFromBottom");case"scaleSmall":return f(P,"scaleToSmall","scaleFromLarge");case"scaleLarge":return f(P,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return f(P,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return f(P,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return f(P,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return f(P,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return f(P,"moveToBottom","scaleFromSmall");case"glueToLeft":return f(P,"rotateRightSideFirst","moveFromRight");case"glueToRight":return f(P,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return f(P,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return f(P,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return f(P,"flipOutLeft","flipInRight");case"flipToRight":return f(P,"flipOutRight","flipInLeft");case"flipToTop":return f(P,"flipOutTop","flipInBottom");case"flipToBottom":return f(P,"flipOutBottom","flipInTop");case"rotateFall":return f(P,"rotateFall","scaleFromSmall");case"newspaper":return f(P,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return f(P,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return f(P,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return f(P,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return f(P,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return f(P,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return f(P,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return f(P,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return f(P,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return f(P,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return f(P,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return f(P,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return f(P,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return f(P,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return f(P,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return f(P,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return f(P,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return f(P,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return f(P,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return f(P,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return f(P,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return f(P,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return f(P,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return f(P,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return f(P,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return f(P,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return f(P,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return f(P,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return f(P,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return f(P,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return f(P,"rotateSlideOut","rotateSlideIn")}}function w(B,P=600,Yt=600){switch(B){case n:return P;case a:return Yt;default:return o.duration}}function x(B,P){switch(B){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return w(P,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return w(P,700,600);case"scaleSmall":return w(P,700,500);case"scaleLarge":return w(P,500,700);case"scaleToLargePrevScaleToSmall":return w(P,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return w(P,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return w(P,800,600);default:return o.duration}}let v=o.timingFunction;function g(B){switch(B){default:return o.easeFunction}}function m(B,P){switch(B){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(P){case n:v=p()?"ease-in-out":"ease";break;case a:default:v=p()?"ease":"ease-in-out"}return g(P);default:return v=o.timingFunction,o.easeFunction}}function _(B,P=300){switch(B){case a:return o.delay+P;default:return o.delay}}function k(B,P){switch(B){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return _(P,500);case"scaleSmall":case"scaleLarge":return _(P,300);case"scaleToLargePrevScaleToSmall":return _(P,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return _(P,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return _(P,180);default:return o.delay}}let Z=2,ot=2;const R=()=>{Z=2,ot=2},$=()=>{Z=2,ot=3},A=()=>{Z=3,ot=2};function D(B){switch(o.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":A();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":p()?A():$();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":p()?$():A();break;default:R();break}h(n)&&n==B&&(d[n].style.zIndex=`${Z}`,d[n].style.visibility="visible"),h(a)&&a==B&&(d[a].style.zIndex=`${ot}`,d[a].style.visibility="visible")}function M(B){$(),B==n&&(d[n].style.zIndex=`${Z}`,d[n].style.visibility="hidden"),B==a&&(d[a].style.zIndex=`${ot}`,d[a].style.visibility="visible",l.shift()?.(),r("routeChangeEnd",n,a,c.length),n=a)}const X=I();function rt(B=0,P=!1){if(!X.value)return;let Yt=0;pn(Jt("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((At,Et)=>{const ee=b(o.effect,Et);return Jt("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:n==Et?"visible":"hidden",zIndex:P?"1":"0"}},At.pageKey?{key:At.pageKey}:{}),Jt(Hn,{effect:ee,duration:x(o.effect,Et),easeFunction:m(o.effect,Et),timingFunction:v,delay:k(o.effect,Et),onReady:(Xt,U)=>{u[Et]={open:Xt,close:U},++Yt==B&&(i?.(),r("renderComplete"))},onPageOpenStart:()=>{D(Et)},onPageOpenEnd:()=>{M(Et)},onPageCloseStart:()=>{D(Et)},onPageCloseEnd:()=>{M(Et)}},{default:()=>At.component instanceof HTMLElement?Jt("div",{...At.attributes,innerHTML:At.component.innerHTML}):Jt(At.component,At.attributes,()=>At.child)}))})),X.value),d=X.value.children[0].children}St(()=>o.effect,()=>{rt()});function Q(B=[]){c=[...B],c.forEach(P=>{P.pageKey=P.pageKey||$o()}),i=()=>{n=-1,ht(0)},rt(c.length,!0)}function W(B){B.pageKey=B.pageKey||$o(),c.push(B),i=()=>{ht(c.length-1)},rt(1,c.length==1)}function at(){c.length<=1||ht(c.length-2,()=>{c.splice(c.length-1,1),n=c.length-1,rt()})}function G(){ht(n+1)}function j(){ht(n-1)}const gt=new vn(1);function ht(B,P){gt.addTask(()=>new Promise(Yt=>{const At=()=>{P?.(),Yt()};if(!h(B)){At();return}if(a=B,a==n){At();return}l.push(At),rt(),r("routeChangeStart",n,a,c.length),p()?(h(n)&&u[n].open(),h(a)&&u[a].open()):(h(n)&&u[n].close(),h(a)&&u[a].close())}))}return t({reset:Q,push:W,pop:at,forward:G,back:j,goto:ht,currentPageIndex:()=>n,totalPages:()=>c.length}),(B,P)=>(L(),V("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),Mv={class:"tabs"},zv=["onClick"],Vv={class:"content"},Bv=it(q({customOptions:{},inheritAttrs:!0,__name:"Tabs.ce",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.initIndex),a=Kt([]),i=I(),l=I(0),c=I(0),u=I(0),d=I([]),h=[],p=Xp(),f=p.default&&p.default();f&&(mr(a,f),x(n.value));const b=(g,m)=>{if(g){if(h.push({index:m,el:g}),h.length<a.length)return;d.value=h}};St([i,d],()=>{w()});function w(){if(i.value&&d.value.length){const g=i.value.getBoundingClientRect(),m=d.value[n.value].el.getBoundingClientRect();l.value=m.x-g.x,c.value=m.y-g.y+m.height-2,u.value=m.width}}function x(g){n.value=g,r("changedIndex",g),w(),v.value.goto(g)}const v=I();return St(v,()=>{v.value&&v.value.reset(o.pages,()=>{v.value.goto(o.initIndex)})}),t({}),(g,m)=>(L(),V("div",Mv,[E("div",{class:"header",ref_key:"headerRef",ref:i},[(L(!0),V(Vt,null,xe(o.labels,(_,k)=>(L(),V("div",{key:_,class:se(k==n.value?"active":""),onClick:Z=>x(k)},[E("div",{ref_for:!0,ref:Z=>b(Z,k)},yt(_),513)],10,zv))),128)),E("div",{class:"indicator",style:N({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),E("div",Vv,[ct(el,{ref_key:"routesRef",ref:v},null,512)])]))}}),[["styles",[`.tabs[data-v-a49dc86a]{display:flex;flex-direction:column;width:100%;height:100%}.content[data-v-a49dc86a]{flex:1 1 auto}.header[data-v-a49dc86a]{flex:0 0 auto;position:relative;display:flex;font-size:14px;line-height:1;color:#999;box-sizing:border-box}.header .active[data-v-a49dc86a]{color:#5a82f0}.header>div[data-v-a49dc86a]{flex:1 1 auto;cursor:pointer;text-align:center;display:flex;justify-content:center;align-items:center;font-weight:700;background-color:#fff;position:relative;box-sizing:border-box}.header>div>div[data-v-a49dc86a]{box-sizing:border-box;padding:10px 0}.header>div.indicator[data-v-a49dc86a]{display:inline-block;flex:0;position:absolute;background-color:#5a82f0;transition:all ease-out .2s}
|
|
120
|
+
`]],["__scopeId","data-v-a49dc86a"]]),Yv=["width","height"],Xv=q({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel.ce",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const o=s;let r=()=>{};const n=I();return St(n,()=>{if(!n.value)return;const a=new rs(n.value),i=new Zi(a,!0);i.ctx.strokeStyle=o.brushColor,i.ctx.lineWidth=o.brushSize,i.drawMouseMoveLine("line"),r=()=>{me.downloadFromSVGString(i.ctx.toRawSVG().raw,o.downloadFileName)}}),t({download:()=>r()}),(a,i)=>(L(),V("canvas",{ref_key:"panelRef",ref:n,width:o.canvasWidth,height:o.canvasHeight,style:N([`border: 1px solid ${a.borderColor}`])},null,12,Yv))}}),nl=it(q({__name:"ProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const o=s,r=I(0);function n(a){r.value=Math.min(Math.max(0,a),100)}return t({goto:n}),(a,i)=>(L(),V("div",{class:"bar",style:N({border:`1px solid ${o.borderColor}`,borderRadius:o.borderRadius,backgroundColor:o.bgColor})},[E("div",{class:"bar-inner",style:N({width:r.value+"%",backgroundColor:o.progressColor})},yt(o.showText?r.value+"%":""),5)],4))}}),[["styles",[`.bar[data-v-2492fe8d]{position:relative;overflow:hidden;width:100%;height:100%}.bar-inner[data-v-2492fe8d]{position:absolute;top:0;left:0;width:0;height:100%;text-align:center;font-size:12px;display:flex;justify-content:center;align-items:center;color:#666}
|
|
121
|
+
`]],["__scopeId","data-v-2492fe8d"]]),Gv={class:"page-vertical-scroll-progress-bar"},gf=it(q({customOptions:{ProgressBar:jn},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar.ce",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=xy();return a.on(()=>{const i=Oy();r("progress",i),n.value?.goto(i)}),oe(()=>{a.destroy()}),t({}),(i,l)=>(L(),V("div",Gv,[ct(jn,{ref_key:"bar",ref:n,bgColor:o.bgColor,progressColor:o.progressColor,borderColor:o.borderColor,borderRadius:o.borderRadius,duringTimeGap:o.duringTimeGap,showText:o.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),[["styles",[`.page-vertical-scroll-progress-bar[data-v-7a4e1639]{position:relative;overflow:hidden;width:100%;height:100%}
|
|
122
|
+
`]],["__scopeId","data-v-7a4e1639"]]),Uv=["fill"],jv=["fill"],Hv=q({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("svg",{style:N(["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,Uv),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,jv)],4))}}),A2="",yf=it(Hv,[["__scopeId","data-v-987aed3d"]]),Wv=s=>{const t={};if(s.attributes)for(let e=0,o=s.attributes,r=o.length;e<r;e++){const n=o[e];n.nodeName&&n.nodeValue&&(t[n.nodeName]=n.nodeValue)}return t},Zv=q({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("svg",{style:N(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},o[0]||(o[0]=[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),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),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)]),4))}}),N2="",al=it(Zv,[["__scopeId","data-v-85491020"]]);function M2(s){return s}document.getElementById("teleport")||document.documentElement;function qv(s,t){{const e=document.querySelector("yz-dialog-toast#globalDialogToast");e&&"_instance"in e&&e._instance.exposed.open(s,t)}}function Qv(s){{const t=document.querySelector("yz-dialog-loading#globalDialogLoading");return t&&"_instance"in t&&t._instance.exposed.open(s),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function Kv(s){{const t=document.querySelector("yz-dialog#globalDialog");return t&&"_instance"in t&&t._instance.exposed.open(s),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}function Xo(s,t="bottom",e){let o;s instanceof HTMLElement?o=Jt(ke,{directionFrom:t,popBgColor:e?.popBgColor||"#ffffff",absoluteLeft:e?.absoluteLeft,absoluteTop:e?.absoluteTop,absoluteWidth:e?.absoluteWidth,absoluteHeight:e?.absoluteHeight},()=>Jt("div",{...Wv(s),innerHTML:s.innerHTML})):o=Jt(ke,{directionFrom:t,popBgColor:e?.popBgColor||"#ffffff",absoluteLeft:e?.absoluteLeft,absoluteTop:e?.absoluteTop,absoluteWidth:e?.absoluteWidth,absoluteHeight:e?.absoluteHeight},()=>s),pn(o,document.getElementById("teleport")||document.documentElement),o.component?.exposed?.open();const r=()=>{o.component?.exposed?.close()};return r.vnode=o,r}function vf(s,t){return Xo(s,"bottom",t)}function bf(s,t){return Xo(s,"top",t)}function _f(s,t){return Xo(s,"left",t)}function xf(s,t){return Xo(s,"right",t)}function wf(s,t){return Xo(s,"center",t)}function kf(s,t){return Xo(s,"absolute",t)}const Jv=()=>vf(Jt("div",{style:"padding: 30px;"},Jt("yz-input",{placeholder:"请输入邮箱",validator:Lo}))),tb=()=>bf(Jt("div",{style:"padding: 30px;"},Jt("yz-input",{placeholder:"请输入邮箱",validator:Lo}))),eb=()=>_f(Jt("div",{style:"padding: 30px;"},Jt("yz-input",{placeholder:"请输入邮箱",validator:Lo}))),sb=()=>xf(Jt("div",{style:"padding: 30px;"},Jt("yz-input",{placeholder:"请输入邮箱",validator:Lo}))),ob=()=>wf(Jt("div",{style:"width: 200px;height: 200px;padding: 30px;"},Jt("yz-input",{placeholder:"请输入邮箱",validator:Lo}))),rb=()=>kf(Jt("div",{style:"width: 200px;height: 200px;padding: 30px;"},Jt("yz-input",{placeholder:"请输入邮箱",validator:Lo})),{absoluteLeft:"50%",absoluteTop:"50%",absoluteWidth:"200px",absoluteHeight:"200px"});let Qn;function Cf(s){{const t=document.querySelector("yz-plate-keyboard#globalPlateKeyboard");return t&&"_instance"in t&&(Qn&&t.removeEventListener("plates",Qn),Qn=e=>{"detail"in e&&s?.onPlates?.(e.detail[0])},t.addEventListener("plates",Qn),t.initPlates=s?.initPlates,t.completePlateLength=s?.completePlateLength,t._instance.exposed.open()),()=>{t&&"_instance"in t&&t._instance.exposed.close()}}}const nb={class:"plate-types"},ab=["onClick"],ib={class:"plate-numbers"},lb=["onClick"],Tf=it(q({customOptions:{SVGCheck:yf},__name:"PlateMobile.ce",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=[{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}],a=I(0),i=Kt([]),l=I(-1);function c(){Cf({initPlates:i,completePlateLength:n[a.value].completePlateLength,onPlates:h=>{mr(i,h),l.value=i.length,i.length===n[a.value].completePlateLength&&r("complete",n[a.value].name,i.join(""))}})}const u=h=>{a.value=h,l.value<=n[h].completePlateLength&&i.length<n[h].completePlateLength?(l.value=i.length,c(),r("clear")):mr(i,i.slice(0,n[h].completePlateLength)),n[h].completePlateLength===i.length&&r("complete",n[a.value].name,i.join(""))},d=h=>{mr(i,i.slice(0,h)),l.value=Math.min(Math.max(0,l.value),h),c(),r("clear")};return t({}),(h,p)=>(L(),V("div",Ha(h.$attrs,{class:"plate-mobile",style:{maxWidth:o.maxWidth}}),[p[3]||(p[3]=E("div",{class:"title"},"车牌颜色",-1)),E("div",nb,[(L(),V(Vt,null,xe(n,(f,b)=>E("div",{key:b,class:se(b==a.value?"checked":""),onClick:w=>u(b)},[E("div",{style:N(f.style)},null,4),E("div",null,yt(f.name),1),E("div",null,[ct(yf,{color:"#ffffff",width:"0.14rem"})])],10,ab)),64))]),p[4]||(p[4]=E("div",{class:"title"},"车牌号码",-1)),E("div",ib,[E("div",{onClick:p[0]||(p[0]=f=>d(0)),class:se(l.value==0?"current":"")},yt(i[0]),3),E("div",{onClick:p[1]||(p[1]=f=>d(1)),class:se(l.value==1?"current":"")},yt(i[1]),3),p[2]||(p[2]=E("div",{class:"dot"},"·",-1)),(L(!0),V(Vt,null,xe(n[a.value].completePlateLength-2,f=>(L(),V("div",{key:f,class:se(f+1==l.value?"current":""),onClick:b=>d(f+1)},yt(i[f+1]),11,lb))),128))]),p[5]||(p[5]=E("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1))],16))}}),[["styles",[`.plate-mobile[data-v-8d96d860]{background-color:#fff;overflow:hidden;border-radius:.16rem;padding-bottom:.3rem;padding-left:.3rem;padding-right:.3rem}.title[data-v-8d96d860]{font-size:16px;line-height:1;color:#333;font-weight:700;text-align:center;margin-top:.4rem;margin-bottom:.2rem}.plate-types[data-v-8d96d860]{display:flex;justify-content:center}.plate-types>div[data-v-8d96d860]{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;width:1.2rem;height:.88rem;border-radius:.08rem;background-color:#f5f5f5;cursor:pointer;overflow:hidden}.plate-types>div>div[data-v-8d96d860]:nth-child(1){width:.28rem;height:.28rem;margin-bottom:.1rem;border-radius:50%;background-color:#0078f0}.plate-types>div:nth-child(2)>div[data-v-8d96d860]:nth-child(1){background-color:#00f08c}.plate-types>div:nth-child(3)>div[data-v-8d96d860]:nth-child(1){background-color:#fac800}.plate-types>div:nth-child(4)>div[data-v-8d96d860]:nth-child(1){background:linear-gradient(90deg,#fac800 51.5%,#00f08c 51.51%)}.plate-types>div:nth-child(5)>div[data-v-8d96d860]:nth-child(1){background-color:#222}.plate-types>div>div[data-v-8d96d860]:nth-child(2){color:#ccc;font-size:14px;line-height:1;font-weight:700}.plate-types>div>div[data-v-8d96d860]:nth-child(3){display:none;position:absolute;right:-.02rem;bottom:-.02rem;width:.32rem;height:.32rem;border-radius:.32rem 0 .08rem;background:#5a82f0}.plate-types>div>div:nth-child(3)>svg[data-v-8d96d860]{position:absolute;top:.12rem;left:.12rem}.plate-types>div+div[data-v-8d96d860]{margin-left:.1rem}.plate-types>div.checked[data-v-8d96d860]{border:1px solid #5a82f0}.plate-types>div.checked>div[data-v-8d96d860]:nth-child(2){color:#333}.plate-types>div.checked>div[data-v-8d96d860]:nth-child(3){display:block}.plate-numbers[data-v-8d96d860]{display:flex;justify-content:center;align-items:center}.plate-numbers>div[data-v-8d96d860]{flex:1;max-width:.8rem;height:.88rem;line-height:.88rem;border-radius:.08rem;font-size:.36rem;color:#333;text-align:center;border:1px solid #cccccc}.plate-numbers>div.current[data-v-8d96d860]{border:1px solid #5a82f0}.plate-numbers>div+div[data-v-8d96d860]{margin-left:.1rem}.plate-numbers>div.dot[data-v-8d96d860]{flex:0;border:0;padding:0 .05rem;color:#ccc;font-size:46px;margin-right:-.1rem;margin-left:0}.info[data-v-8d96d860]{font-size:12px;line-height:16px;font-weight:400;color:#999;text-align:center;padding:0 .1rem;margin-top:.4rem}
|
|
123
|
+
`]],["__scopeId","data-v-8d96d860"]]),cb=["data-number"],ub=["data-number","data-unactive"],db=["data-number"],fb=["data-number","data-unactive"],il=it(q({customOptions:{Pop:ke,SVGCleanUp:al,Container:wt},__name:"PlateKeyboard.ce",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(0),i=Kt([]);function l(){i.length==0?a.value=0:i.length==1?a.value=1:a.value=2,i.length>=o.completePlateLength&&h()}St(()=>[...o.initPlates],()=>{mr(i,o.initPlates),l()},{immediate:!0});const c=I(0),u=(g,m)=>{c.value=m},d=()=>{n.value.open(),r("open")},h=()=>{n.value.close(),r("close")},p=()=>{i.pop(),l(),r("plates",i)},f=g=>{if(g.target.dataset.unactive||"")return;let _=g.target.dataset.number;_&&(i.push(_),l(),r("plates",i))};t({open:d,close:h});const b=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],w=["1","2","3","4","5","6","7","8","9","0"],x=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],v=["港","澳","学","警","使","领","挂","应","急"];return(g,m)=>(L(),Lt(ke,{ref_key:"popRef",ref:n,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:bt(()=>[ct(wt,{class:"popup-plate",style:N({paddingBottom:Ct(_y).bottom()}),onResize:u},{default:bt(()=>[E("div",null,[E("div",{onClick:h},"关闭")]),E("div",{class:se(["step",a.value==0?"":"hide"])},[(L(),V(Vt,null,xe(b,_=>E("div",{key:_,class:"popitem",onClick:f,"data-number":_},yt(_),9,cb)),64)),E("div",{class:"popitem popitem-clear",onClick:p},[ct(al,{width:"16px"})])],2),E("div",{class:se(["step",a.value!=0?"":"hide"])},[(L(),V(Vt,null,xe(w,_=>E("div",{key:_,class:se(["popitem",a.value!=2?"unactive":""]),onClick:f,"data-number":_,"data-unactive":a.value!=2?"unactive":""},yt(_),11,ub)),64)),(L(),V(Vt,null,xe(x,_=>E("div",{key:_,class:"popitem",onClick:f,"data-number":_},yt(_),9,db)),64)),(L(),V(Vt,null,xe(v,_=>E("div",{key:_,class:se(["popitem",a.value!=2?"unactive":""]),onClick:f,"data-number":_,"data-unactive":a.value!=2?"unactive":""},yt(_),11,fb)),64)),E("div",{class:"popitem popitem-clear",onClick:p},[ct(al,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),[["styles",[`.popup-plate[data-v-4a7813e2]{box-sizing:border-box;width:100%;background-color:#ddd}.hide[data-v-4a7813e2]{display:none!important}.popup-plate>div[data-v-4a7813e2]:nth-child(1){display:flex;justify-content:flex-end;background-color:#fff;border-top:1px solid #e6e6e6}.popup-plate>div:nth-child(1)>div[data-v-4a7813e2]{flex:0 0 auto;padding:0 .3rem;color:#5a82f0;font-size:16px;line-height:2.6;cursor:pointer}.popup-plate>.step[data-v-4a7813e2]{display:flex;flex-wrap:wrap;justify-content:center;padding:.2rem .2rem .1rem}.popup-plate>.step>.popitem[data-v-4a7813e2]{flex:0 0 auto;width:1rem;padding:.2rem 0;border:1px solid #e6e6e6;border-radius:.08rem;margin-right:.1rem;margin-bottom:.1rem;font-size:16px;line-height:1;text-align:center;background-color:#fff;cursor:pointer}.popup-plate>.step>.popitem[data-v-4a7813e2]:not(.unactive):active{background-color:#eee}.popup-plate>.step>.popitem.unactive[data-v-4a7813e2]{color:#ccc}.popup-plate>.step>.popitem.popitem-clear[data-v-4a7813e2]{background-color:#eee;display:flex;justify-content:center;align-items:center}
|
|
124
|
+
`]],["__scopeId","data-v-4a7813e2"]]),hb={class:"parent"},pb=it(q({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay.ce",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const o=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":"#ffffff",color:"#000000",border:"1px solid #999999"}},{name:"未知",style:{"background-color":"#cccccc",color:"#ffffff"}}];function n(c){switch(c){case"b":case"蓝牌":c="蓝牌";break;case"g":case"绿牌":c="绿牌";break;case"y":case"黄牌":c="黄牌";break;case"q":case"黄绿":c="黄绿";break;case"d":case"黑牌":c="黑牌";break;case"w":case"白牌":c="白牌";break;default:c="未知";break}const u=r.filter(d=>d.name===c);return u.length?u[0]:n("未知")}const a=I(n(o.plateType||""));let i=o.fontColor,l=o.fontSize;switch(o.displayType){case"dot":i=i||"#999999",l=l||"14px";break;case"chinese":i=i||"#333333",l=l||"14px";break;case"plaintext":i=i||"#333333",l=l||"14px";break}return t({}),(c,u)=>(L(),V("div",hb,[c.displayType=="dot"&&c.plate!=="无牌车"?(L(),V("div",{key:0,class:se(["leading",c.displayType]),style:N({...a.value.style,width:Ct(l),height:Ct(l)})},yt(a.value.name),7)):Rt("",!0),c.displayType=="chinese"&&c.plate!=="无牌车"?(L(),V("div",{key:1,class:se(["leading",c.displayType]),style:N(a.value.style)},yt(a.value.name),7)):Rt("",!0),c.displayType=="plaintext"&&c.plate!=="无牌车"?(L(),V("div",{key:2,class:se(["leading",c.displayType]),style:N({color:Ct(i),fontSize:Ct(l)})},yt(a.value.name),7)):Rt("",!0),E("div",{class:"text",style:N({color:Ct(i),"font-size":Ct(l)})},yt(c.plate),5)]))}}),[["styles",[`.parent[data-v-49a2baa1]{display:inline-flex;justify-content:center;align-items:center}.leading[data-v-49a2baa1]{box-sizing:border-box;font-size:12px;line-height:1;border-radius:4px;margin-right:5px}.leading.chinese[data-v-49a2baa1]{padding:4px}.leading.dot[data-v-49a2baa1]{font-size:0;border-radius:50%}.leading.plaintext[data-v-49a2baa1]{padding-right:5px;border-right:1px solid #e6e6e6;border-radius:0}.text[data-v-49a2baa1]{line-height:1}
|
|
125
|
+
`]],["__scopeId","data-v-49a2baa1"]]),Sf=q({customOptions:{Pop:ke,Button:ae,Container:wt},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!0}},setup(s,{expose:t}){const e=s,o=I();function r(){o.value.open()}function n(){o.value.close()}const a=I(),i=I(0),l=I(0),c=I(0),u=I(0),d=(h,p)=>{if(c.value=h,u.value=p,!a.value)return;const f=zo(),b=a.value.getBoundingClientRect();i.value=Math.max(e.gap,Math.min(b.x+b.width+e.gap,f.width-h-e.gap)),l.value=Math.max(e.gap,Math.min(b.y,f.height-p-e.gap))};return t({open:r,close:n}),(h,p)=>(L(),V(Vt,null,[E("div",{ref_key:"popoverButtonRef",ref:a,class:"popover-button",style:{display:"inline-block"},onClick:r},[kt(h.$slots,"button",{},()=>[ct(ae,null,{default:bt(()=>p[0]||(p[0]=[Ht("popover")])),_:1})])],512),ct(ke,{ref_key:"popRef",ref:o,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:bt(()=>[E("div",{style:N({position:"absolute",left:i.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[ct(wt,{type:"shrink",onResize:d},{default:bt(()=>[kt(h.$slots,"panel",{},()=>[p[1]||(p[1]=E("div",{style:{"background-color":"#ffffff"}},"...",-1))])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),mb={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},gb={class:"hue-field",style:{width:"15px",height:"100px",cursor:"ns-resize",position:"absolute",top:"3px",right:"3px",background:`linear-gradient(
|
|
110
126
|
to bottom,
|
|
111
127
|
rgb(255, 0, 0) 0%,
|
|
112
128
|
rgb(255, 0, 255) 17%,
|
|
@@ -115,7 +131,7 @@ Expected function or array of functions, received type ${typeof o}.`),ye)}functi
|
|
|
115
131
|
rgb(0, 255, 0) 67%,
|
|
116
132
|
rgb(255, 255, 0) 84%,
|
|
117
133
|
rgb(255, 0, 0) 100%
|
|
118
|
-
)`,"box-sizing":"border-box"}},
|
|
134
|
+
)`,"box-sizing":"border-box"}},Ef=q({customOptions:{Popover:Sf,Container:wt},__name:"ColorPicker.ce",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=new Ft(o.color),i=new Ft(o.color),l=I(a.toString()),c=I(a.opposite(!0).toString()),u=I(i.toString()),d=I(i.opposite(!0).toString()),h=I(i.h),p=I(a.s),f=I(a.v);function b(v){v&&(a.setColor(v),i.setColor(v)),l.value=a.toString(),c.value=a.opposite(!0).toString(),u.value=i.toString(),d.value=i.opposite(!0).toString(),h.value=i.h,p.value=a.s,f.value=a.v}const w=v=>{const g=(m,_)=>{i.h=(1-_.y/v.height)*360,a.h=i.h,b()};v.captureDrag({start:g,move:g})},x=v=>{const g=(m,_)=>{a.s=_.x/v.width,a.v=1-_.y/v.height,b()};v.captureDrag({start:g,move:g,end:()=>{r("change",l.value),n.value.close(),Hi(l.value).then(()=>{})}})};return t({setColor:b}),(v,g)=>(L(),Lt(Sf,{ref_key:"popover",ref:n,closeWhenClickOverlay:!1},{button:bt(()=>[kt(v.$slots,"default",{},()=>[E("span",{style:N([{display:"inline-block","vertical-align":"middle","font-size":"1em",padding:"0.3em 0.8em","border-radius":"0.3em",cursor:"pointer",outline:"'none'","text-align":"'center'",border:"0"},{backgroundColor:l.value,color:c.value}])},yt(l.value),5)])]),panel:bt(()=>[E("div",mb,[E("div",{class:"saturation-field",style:N([{position:"relative",width:"100px",height:"100px",display:"inline-block",cursor:"pointer","box-sizing":"border-box"},{background:`linear-gradient(
|
|
119
135
|
to right,
|
|
120
136
|
rgb(255, 255, 255) 0%,
|
|
121
137
|
${u.value} 100%
|
|
@@ -123,34 +139,34 @@ Expected function or array of functions, received type ${typeof o}.`),ye)}functi
|
|
|
123
139
|
to bottom,
|
|
124
140
|
rgba(0, 0, 0, 0) 0%,
|
|
125
141
|
rgb(0, 0, 0) 100%
|
|
126
|
-
)`,"box-sizing":"border-box"}},null,-1)),E("div",{class:"field-knob",style:
|
|
127
|
-
`,
|
|
128
|
-
`]],["__scopeId","data-v-24e42cfa"]]);var
|
|
129
|
-
`]],["__scopeId","data-v-2d807a98"]]),
|
|
130
|
-
`]],["__scopeId","data-v-b3ce4b26"]]),
|
|
131
|
-
`]],["__scopeId","data-v-52732a09"]]),
|
|
132
|
-
`]],["__scopeId","data-v-7128e350"]]),
|
|
133
|
-
`]],["__scopeId","data-v-4e16ec5b"]]),
|
|
134
|
-
`]],["__scopeId","data-v-e0bc94d8"]])
|
|
142
|
+
)`,"box-sizing":"border-box"}},null,-1)),E("div",{class:"field-knob",style:N([{position:"absolute",width:"12px",height:"12px","box-shadow":"rgba(0, 0, 0, 0.5) 0px 1px 3px","border-radius":"12px","z-index":"1",cursor:"pointer","box-sizing":"border-box"},{left:100*p.value-6+"px",top:100*(1-f.value)-6+"px",backgroundColor:l.value,border:`2px solid ${c.value}`}])},null,4)]),_:1})],4),E("div",gb,[ct(wt,{type:"full",onReady:w},{default:bt(()=>[E("div",{class:"hue-knob",style:N([{position:"absolute",width:"15px",height:"2px","z-index":"1","box-sizing":"border-box"},{marginTop:(1-h.value/360)*100+"px",borderRight:"4px solid "+d.value}])},null,4)]),_:1})])])]),_:3},512))}}),yb=`.resize-observer[data-v-16da9fc4]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-16da9fc4] object{position:absolute;top:0;left:0;height:100%;width:100%;display:block;overflow:hidden;pointer-events:none;z-index:-1}
|
|
143
|
+
`,vb={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",ki&&this.$el.appendChild(s),s.data="about:blank",ki||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&&(!ki&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},bb={class:"resize-observer",tabindex:"-1"};function _b(s,t,e,o,r,n){return L(),V("div",bb)}const xb=it(vb,[["render",_b],["styles",[yb]],["__scopeId","data-v-16da9fc4"]]),wb=it(q({__name:"MapTianditu.ce",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const o=s,r=I(o.mapWidth),n=I(o.mapHeight);let a;const i=I();return St(i,()=>{i.value&&(a=new rs(i.value,!1),a.on("resize",(l,c)=>{r.value=l+"px",n.value=c+"px"}),a.start())}),vs(()=>{jy(`http://api.tianditu.gov.cn/api?v=4.0&tk=${o.mapKey}`).then(()=>{new Ky(o.mapContainerID,o.mapCenterLng,o.mapCenterLat,o.mapZoom)}).catch(l=>{console.log("error",l)})}),oe(()=>{a.destroy()}),t({}),(l,c)=>(L(),V("div",Ha({class:"mapDivWrap",ref_key:"mapWrap",ref:i},l.$attrs),[kt(l.$slots,"default",{width:r.value,height:n.value},void 0,!0)],16))}}),[["styles",[`.mapDivWrap[data-v-24e42cfa]{position:relative;width:100%;height:100%}
|
|
144
|
+
`]],["__scopeId","data-v-24e42cfa"]]);var Er=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(),o(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function o(u){for(var d=0;d<t.children.length;d++)t.children[d].style.display=d===u?"block":"none";s=u}var r=(performance||Date).now(),n=r,a=0,i=e(new Er.Panel("FPS","#0ff","#002")),l=e(new Er.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new Er.Panel("MB","#f08","#201"));return o(0),{REVISION:16,dom:t,addPanel:e,showPanel:o,begin:function(){r=(performance||Date).now()},end:function(){a++;var u=(performance||Date).now();if(l.update(u-r,200),u>n+1e3&&(i.update(a*1e3/(u-n),100),n=u,a=0,c)){var d=performance.memory;c.update(d.usedJSHeapSize/1048576,d.jsHeapSizeLimit/1048576)}return u},update:function(){r=this.end()},domElement:t,setMode:o}};Er.Panel=function(s,t,e){var o=1/0,r=0,n=Math.round,a=n(window.devicePixelRatio||1),i=80*a,l=48*a,c=3*a,u=2*a,d=3*a,h=15*a,p=74*a,f=30*a,b=document.createElement("canvas");b.width=i,b.height=l,b.style.cssText="width:80px;height:48px";var w=b.getContext("2d");return w.font="bold "+9*a+"px Helvetica,Arial,sans-serif",w.textBaseline="top",w.fillStyle=e,w.fillRect(0,0,i,l),w.fillStyle=t,w.fillText(s,c,u),w.fillRect(d,h,p,f),w.fillStyle=e,w.globalAlpha=.9,w.fillRect(d,h,p,f),{dom:b,update:function(x,v){o=Math.min(o,x),r=Math.max(r,x),w.fillStyle=e,w.globalAlpha=1,w.fillRect(0,0,i,h),w.fillStyle=t,w.fillText(n(x)+" "+s+" ("+n(o)+"-"+n(r)+")",c,u),w.drawImage(b,d+a,h,p-a,f,d,h,p-a,f),w.fillRect(d+p-a,h,a,f),w.fillStyle=e,w.globalAlpha=.9,w.fillRect(d+p-a,h,a,n((1-x/v)*f))}}};const kb=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats.ce",setup(s,{expose:t}){const e=I();return vs(()=>{const o=new Er;o.domElement.style.margin="1em",e.value.appendChild(o.domElement),ce(()=>(o.update(),!0))}),t({}),(o,r)=>(L(),V("div",{ref_key:"containerRef",ref:e},null,512))}}),Cb={class:"ease-graph"},ll=it(q({customOptions:{Button:ae,Canvas:je},inheritAttrs:!0,__name:"EaseGraphDisplay.ce",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I();let a,i;St(n,()=>{n.value&&(i=Mn(n.value.getCanvasElement()),n.value.getCanvas().then(d=>{a=d,r("onMounted",o.easeName),i?.onshow(c)}))});let l=!1;const c=()=>{if(!a||l)return;l=!0,r("onStart",o.easeName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.lineWidth=.5,a.ctx.strokeStyle="rgb(230,230,230)",a.ctx.beginPath(),a.ctx.moveTo(0,o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.graphVerticalGap),a.ctx.moveTo(0,o.canvasHeight-o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.canvasHeight-o.graphVerticalGap),a.ctx.closePath(),a.ctx.stroke(),a.ctx.lineWidth=2,a.ctx.strokeStyle="rgb(255,127,127)";const d={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},h={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},p=()=>{a.ctx.beginPath(),a.ctx.moveTo(h.x,h.y),a.ctx.lineTo(d.x,d.y),a.ctx.closePath(),a.ctx.stroke(),h.x=d.x,h.y=d.y},f=new Fe({frameDuration:o.easeDuration});f.addTween(d,{x:o.canvasWidth-o.graphHorizontalGap},{frames:1,delay:0,easeFunction:xt.Easing.Linear.None,onUpdate:b=>{d.x=b.x},onComplete:()=>{}}),f.addTween(d,{y:o.graphVerticalGap},{frames:1,delay:0,easeFunction:o.easeFunction,onUpdate:b=>{d.y=b.y,p()},onComplete:()=>{r("onCompleted",o.easeName),l=!1}}),f.play()},u=()=>{r("onSelected",o.easeName,o.easeFunction)};return oe(()=>{i?.destroy()}),t({start:c}),(d,h)=>(L(),V("div",Cb,[E("div",null,"缓动:"+yt(d.easeName),1),E("div",null,[E("div",null,[ct(ae,{stylePattern:"outline",height:"32px",padding:"10px",onClick:c},{default:bt(()=>h[0]||(h[0]=[Ht(" 开始 ")])),_:1})]),E("div",null,[ct(ae,{stylePattern:o.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:u},{default:bt(()=>h[1]||(h[1]=[Ht(" 选择 ")])),_:1},8,["stylePattern"])])]),E("div",{style:N({width:d.canvasWidth+"px",height:d.canvasHeight+"px"})},[ct(je,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.ease-graph[data-v-2d807a98]{display:inline-block}.ease-graph>div[data-v-2d807a98]:nth-child(1){margin-top:10px;font-size:14px}.ease-graph>div[data-v-2d807a98]:nth-child(2){margin-bottom:10px}.ease-graph>div:nth-child(2)>div[data-v-2d807a98]{display:inline-block}.ease-graph>div:nth-child(2)>div+div[data-v-2d807a98]{margin-left:10px}
|
|
145
|
+
`]],["__scopeId","data-v-2d807a98"]]),Tb={class:"ease-graph"},Sb=q({customOptions:{Button:ae,Canvas:je},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 o=s,r=e,n=I();let a,i;St(n,()=>{n.value&&(i=Mn(n.value.getCanvasElement()),n.value.getCanvas().then(d=>{a=d,r("onMounted",o.easeName),i?.onshow(c)}))});let l=!1;const c=()=>{if(!a||l)return;l=!0,r("onStart",o.easeName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.lineWidth=.5,a.ctx.strokeStyle="rgb(230,230,230)",a.ctx.beginPath(),a.ctx.moveTo(0,o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.graphVerticalGap),a.ctx.moveTo(0,o.canvasHeight-o.graphVerticalGap),a.ctx.lineTo(o.canvasWidth,o.canvasHeight-o.graphVerticalGap),a.ctx.closePath(),a.ctx.stroke(),a.ctx.lineWidth=2,a.ctx.strokeStyle="rgb(255,127,127)";const d={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},h={x:o.graphHorizontalGap,y:o.canvasHeight-o.graphVerticalGap},p=()=>{a.ctx.beginPath(),a.ctx.moveTo(h.x,h.y),a.ctx.lineTo(d.x,d.y),a.ctx.closePath(),a.ctx.stroke(),h.x=d.x,h.y=d.y},f=new Fe({frameDuration:o.easeDuration});f.addTween(d,{x:o.canvasWidth-o.graphHorizontalGap},{frames:1,delay:0,easeFunction:xt.Easing.Linear.None,onUpdate:b=>{d.x=b.x},onComplete:()=>{}}),f.addTween(d,{y:o.graphVerticalGap},{frames:1,delay:0,easeFunction:o.easeFunction,onUpdate:b=>{d.y=b.y,p()},onComplete:()=>{r("onCompleted",o.easeName),l=!1}}),f.play()},u=()=>{r("onSelected",o.easeName,o.easeFunction)};return oe(()=>{i?.destroy()}),t({start:c}),(d,h)=>(L(),V("div",Tb,[E("div",null,"缓动:"+yt(d.easeName),1),E("div",null,[E("div",null,[ct(ae,{stylePattern:"outline",height:"32px",padding:"10px",onClick:c},{default:bt(()=>h[0]||(h[0]=[Ht(" 开始 ")])),_:1})]),E("div",null,[ct(ae,{stylePattern:o.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:u},{default:bt(()=>h[1]||(h[1]=[Ht(" 选择 ")])),_:1},8,["stylePattern"])])]),E("div",{style:N({width:d.canvasWidth+"px",height:d.canvasHeight+"px"})},[ct(je,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),q2="",Pf=it(Sb,[["__scopeId","data-v-fa615237"]]),Eb=2e3,Of=it(q({customOptions:{EaseGraphDisplay:Pf},inheritAttrs:!0,__name:"EaseGroupGraphDisplay.ce",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:xt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:xt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:xt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:xt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:xt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:xt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:xt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:xt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:xt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:xt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:xt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:xt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:xt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:xt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:xt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:xt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:xt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:xt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:xt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:xt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:xt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:xt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:xt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:xt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:xt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:xt.Easing.Back.In},{easeName:"BackOut",easeFunction:xt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:xt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:xt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:xt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:xt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:xt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:xt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:xt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:xt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:xt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:xt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:xt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:xt.Easing.createNoisyEasing(xt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:xt.Easing.swing},{easeName:"causeSeizures",easeFunction:xt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const o=s,r=e,n={};function a(h,p){h&&(n[p]={el:h})}const i=new vn(10);function l(h){i.addTask(()=>(n[h].el.start(),new Promise(p=>{n[h].resolve=p})))}function c(h){n[h].resolve?.()}const u=I("Linear");function d(h,p){u.value=h,r("selectedEaseFunction",h,p)}return d("Linear",xt.Easing.Linear.None),t({}),(h,p)=>(L(),V("div",null,[(L(!0),V(Vt,null,xe(o.easeList,f=>(L(),V("div",{key:f.easeName,class:"ease-graph-wrap"},[f.easeFunction?(L(),Lt(Pf,{key:0,easeName:f.easeName,easeFunction:f.easeFunction,easeDuration:Eb,isSelected:u.value==f.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:d,ref_for:!0,ref:b=>a(b,f.easeName)},null,8,["easeName","easeFunction","isSelected"])):Rt("",!0)]))),128))]))}}),[["styles",[`.ease-graph-wrap[data-v-b3ce4b26]{display:inline-block;margin-right:10px}.ease-group-gap[data-v-b3ce4b26]{margin:10px}
|
|
146
|
+
`]],["__scopeId","data-v-b3ce4b26"]]),Pb={class:"interpolation-graph"},Rf=1/6,If=5/6,cl=it(q({customOptions:{Button:ae,Canvas:je},inheritAttrs:!0,__name:"InterpolationGraphDisplay.ce",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I();let a,i;St(n,()=>{n.value&&(i=Mn(n.value.getCanvasElement()),n.value.getCanvas().then(w=>{a=w,r("onMounted",o.interpolationName),i?.onshow(b)}))});const l=o.canvasWidth*Rf,c=o.canvasHeight/2,u=[o.canvasWidth*If,o.canvasWidth/2],d=[o.canvasHeight*Rf,o.canvasHeight*If],h=[...u,l],p=[...d,c];let f=!1;const b=()=>{if(!a||f)return;f=!0,r("onStart",o.interpolationName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.fillStyle="rgb(200,200,200)",a.ctx.fillRect(l-3,c-3,6,6),a.ctx.fillRect(u[u.length-1]-3,d[d.length-1]-3,6,6);for(var w=0;w<u.length;w++)a.ctx.fillRect(u[w]-2,d[w]-2,4,4);const x=new Fe({frameDuration:o.interpolationDuration});x.addTween({x:l,y:c,old:{x:l,y:c}},{x:u,y:d},{frames:1,delay:0,easeFunction:xt.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.9)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{}}),x.addTween({x:l,y:c,old:{x:l,y:c}},{x:h,y:p},{frames:1,delay:0,easeFunction:xt.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.5)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{r("onCompleted",o.interpolationName),f=!1}}),x.play()};return oe(()=>{i?.destroy()}),t({start:b}),(w,x)=>(L(),V("div",Pb,[E("div",null,[Ht(" 插值:"+yt(w.interpolationName)+" ",1),ct(ae,{stylePattern:"outline",height:"32px",onClick:b},{default:bt(()=>x[0]||(x[0]=[Ht(" 开始 ")])),_:1})]),E("div",{style:N({width:w.canvasWidth+"px",height:w.canvasHeight+"px"})},[ct(je,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),[["styles",[`.interpolation-graph[data-v-52732a09]{display:inline-block}.interpolation-graph>div[data-v-52732a09]:nth-child(1){margin-top:10px;margin-bottom:10px;font-size:14px}
|
|
147
|
+
`]],["__scopeId","data-v-52732a09"]]),Ob={class:"interpolation-graph"},Ff=1/6,Df=5/6,Rb=q({customOptions:{Button:ae,Canvas:je},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I();let a,i;St(n,()=>{n.value&&(i=Mn(n.value.getCanvasElement()),n.value.getCanvas().then(w=>{a=w,r("onMounted",o.interpolationName),i?.onshow(b)}))});const l=o.canvasWidth*Ff,c=o.canvasHeight/2,u=[o.canvasWidth*Df,o.canvasWidth/2],d=[o.canvasHeight*Ff,o.canvasHeight*Df],h=[...u,l],p=[...d,c];let f=!1;const b=()=>{if(!a||f)return;f=!0,r("onStart",o.interpolationName),a.ctx.fillStyle="rgb(250,250,250)",a.ctx.fillRect(0,0,o.canvasWidth,o.canvasHeight),a.ctx.fillStyle="rgb(200,200,200)",a.ctx.fillRect(l-3,c-3,6,6),a.ctx.fillRect(u[u.length-1]-3,d[d.length-1]-3,6,6);for(var w=0;w<u.length;w++)a.ctx.fillRect(u[w]-2,d[w]-2,4,4);const x=new Fe({frameDuration:o.interpolationDuration});x.addTween({x:l,y:c,old:{x:l,y:c}},{x:u,y:d},{frames:1,delay:0,easeFunction:xt.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.9)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{}}),x.addTween({x:l,y:c,old:{x:l,y:c}},{x:h,y:p},{frames:1,delay:0,easeFunction:xt.Easing.Linear.None,interpolationFunction:o.interpolationFunction,onUpdate:v=>{a.ctx.lineWidth=2,a.ctx.strokeStyle="rgba(255,127,127,0.5)",a.ctx.beginPath(),a.ctx.moveTo(v.old.x,v.old.y),a.ctx.lineTo(v.x,v.y),a.ctx.closePath(),a.ctx.stroke(),v.old.x=v.x,v.old.y=v.y},onComplete:()=>{r("onCompleted",o.interpolationName),f=!1}}),x.play()};return oe(()=>{i?.destroy()}),t({start:b}),(w,x)=>(L(),V("div",Ob,[E("div",null,[Ht(" 插值:"+yt(w.interpolationName)+" ",1),ct(ae,{stylePattern:"outline",height:"32px",onClick:b},{default:bt(()=>x[0]||(x[0]=[Ht(" 开始 ")])),_:1})]),E("div",{style:N({width:w.canvasWidth+"px",height:w.canvasHeight+"px"})},[ct(je,{ref_key:"canvasRef",ref:n,bgColor:"#ffffff"},null,512)],4)]))}}),ew="",$f=it(Rb,[["__scopeId","data-v-858ad7b1"]]),Ib=2e3,Lf=it(q({customOptions:{InterpolationGraphDisplay:$f},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay.ce",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:xt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:xt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:xt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const o=s,r={};function n(c,u){c&&(r[u]={el:c})}const a=new vn(1);function i(c){a.addTask(()=>(r[c].el.start(),new Promise(u=>{r[c].resolve=u})))}function l(c){r[c].resolve?.()}return t({}),(c,u)=>(L(),V("div",null,[(L(!0),V(Vt,null,xe(o.interpolationList,d=>(L(),V("div",{key:d.interpolationName,class:"interpolation-graph-wrap"},[ct($f,{interpolationName:d.interpolationName,interpolationFunction:d.interpolationFunction,easeDuration:Ib,onOnMounted:i,onOnCompleted:l,ref_for:!0,ref:h=>n(h,d.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),[["styles",[`.interpolation-graph-wrap[data-v-7128e350]{display:inline-block;margin-right:10px}
|
|
148
|
+
`]],["__scopeId","data-v-7128e350"]]),Fb=it(q({__name:"SVG.ce",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n,a,i;const l=I();St(l,()=>{n||!l.value||(n=new rs(l.value,!1),n.on("resize",(u,d)=>{r("resize",u,d),a=new Bd(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return oe(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,d)=>(L(),V("div",{class:"svg",ref_key:"svgRef",ref:l,style:N({backgroundColor:o.bgColor})},null,4))}}),[["styles",[`.svg[data-v-4e16ec5b]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
149
|
+
`]],["__scopeId","data-v-4e16ec5b"]]),Db=["width","height"],Pr=it(q({__name:"Canvas.ce",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(),a=I(),i=I(0),l=I(0);let c;St(n,()=>{n.value&&(c=new rs(n.value,!1),c.on("resize",(b,w)=>{const x=zo();i.value=Math.min(b,x.width),l.value=Math.min(w,x.height),p()}),c.start())}),St(a,()=>{a.value&&p()});let u,d,h;function p(){u||!a.value||!i.value||!l.value||(u=new rs(a.value,!1),u.on("resize",(b,w)=>{r("resize",b,w),d=new Zi(u,o.enableCustomContext),h?.(d),r("ready",d)}),u.start())}function f(){return new Promise(b=>{if(d)return b(d);h=b})}return oe(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>a.value,getCanvas:f}),(b,w)=>(L(),V("div",{class:"canvas",ref_key:"canvasOutterRef",ref:n},[E("canvas",{ref_key:"canvasRef",ref:a,width:i.value,height:l.value,style:N({backgroundColor:o.bgColor})},null,12,Db)],512))}}),[["styles",[`.canvas[data-v-e0bc94d8]{display:block;position:relative;overflow:hidden;width:100%;height:100%}
|
|
150
|
+
`]],["__scopeId","data-v-e0bc94d8"]]),$b=["max","min","step","value","autofocus"],Lb={key:0,class:"label"},Ab=q({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(o.defaultValue),a=()=>Te((n.value-o.min)/(o.max-o.min),4)*100,i=I(a());function l(d){n.value=Te(d.target.value,2),i.value=a(),r("change",n.value)}const c=`
|
|
135
151
|
:root {
|
|
136
|
-
--input-range-color: ${
|
|
137
|
-
--input-range-thumb-size: ${
|
|
138
|
-
--input-range-track-size: ${
|
|
152
|
+
--input-range-color: ${o.color};
|
|
153
|
+
--input-range-thumb-size: ${o.handleSize};
|
|
154
|
+
--input-range-track-size: ${o.barHeight};
|
|
139
155
|
}
|
|
140
156
|
:host {
|
|
141
|
-
--input-range-color: ${
|
|
142
|
-
--input-range-thumb-size: ${
|
|
143
|
-
--input-range-track-size: ${
|
|
157
|
+
--input-range-color: ${o.color};
|
|
158
|
+
--input-range-thumb-size: ${o.handleSize};
|
|
159
|
+
--input-range-track-size: ${o.barHeight};
|
|
144
160
|
}
|
|
145
|
-
`,u=R();return St(u,()=>{u.value&&zs(c,u.value)}),se(()=>{}),t({}),(f,d)=>(L(),V("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[E("input",{type:"range",max:s.max,min:s.min,step:s.step,value:n.value,autofocus:s.autofocus,onInput:l,style:M({background:`linear-gradient(to right, ${s.color} 0%, ${s.color} ${i.value}%, ${s.barColor} ${i.value}%, ${s.barColor})`})},null,44,vb),kt(f.$slots,"default",{value:n.value},()=>[f.showValue?(L(),V("label",bb,yt(n.value)+yt(s.unit),1)):Rt("",!0)],!0)],512))}}),U2="",xo=it(_b,[["__scopeId","data-v-cab67db2"]]),xb=q({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(o,{expose:t,emit:e}){const s=o,r=e;let n,a,i;const l=R();St(l,()=>{n||!l.value||(n=new os(l.value,!1),n.on("resize",(u,f)=>{r("resize",u,f),a=new Pf(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return se(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,f)=>(L(),V("div",{class:"svg",ref_key:"svgRef",ref:l,style:M({backgroundColor:s.bgColor})},null,4))}}),j2="",Ed=it(xb,[["__scopeId","data-v-132e642b"]]),wb='<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>',kb={class:"btns"},Cb={class:"btns"},Tb={class:"btns sub-btns"},Sb={class:"btns sub-btns"},Eb={style:{width:"100%"}},Pb={style:{width:"100%"}},Ob={style:{height:"400px"}},Rb={style:{height:"400px"}},Ib=q({customOptions:{Button:ne,InputRange:xo,SVG:Ed,Canvas:Ue},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:xt.Easing.Linear.None}},setup(o,{expose:t}){const e=o,s=R();let r=0,n=0;St(s,()=>{s.value&&s.value.getSVG().then(I=>{r=I.app.width,n=I.app.height,I.app.on("resize",($,N)=>{r=$,n=N})})});const a=R(),i=R(),l=R(),c=R(""),u=R("");let f;function d(I){switch(u.value=I,c.value){case"AnimateToTweenCSS":U();break}}const p=new my({svg:wb,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),h=new oe({d:"M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"}),w=+h.getTotalLength().toFixed(0),_=R(w),x=R(Math.floor(w/2));function v(I){_.value=I,h.setAttr("strokeDasharray",`${_.value} ${_.value}`)}function g(I){x.value=I,h.setAttr("strokeDashoffset",`${x.value}`)}const m=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new Ao({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Ft.random().toString()},enableDrag:!0});I.clear(),f=le(()=>($.ctx.clearRect(),I.path([N]),$.draw([N]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!s.value||!a.value)return;f?.();const I=new xe({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),$=new xe({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),N=Jt(0,r-100),D=Jt(0,n-100),A=new xe({attrs:{stroke:"#666666"}});A.x=N,A.y=D,A.toX=N+100,A.toY=D+100;const X=new xe({attrs:{stroke:"#666666"}});X.x=N+100,X.y=D,X.toX=N,X.toY=D+100;const rt=A.intersection(X),Q=new re({x:0,y:0,radius:10,attrs:{fill:Ft.random().toString()}});rt&&(Q.x=rt.x,Q.y=rt.y);const Z=new Ln({x:Jt(0,r),y:Jt(0,n),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),at=new Ee({x:Jt(0,r),y:Jt(0,n),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new gy({x:Jt(0,r),y:Jt(0,n),scalar:.99,degree:-1,attrs:{fill:Ft.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),H=new yy({x:Jt(0,r),y:Jt(0,n),scalar:.99,degree:-1,attrs:{fill:Ft.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),gt=new vy({x:Jt(0,r),y:Jt(0,n),scalar:1,degree:0,attrs:{fill:Ft.random().toString()},enableDrag:!0}),ht=new zi({x:Jt(0,r),y:Jt(0,n),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new by({x:Jt(0,r),y:Jt(0,n),scalar:1,degree:0,attrs:{fill:Ft.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),P=new _y({x:Jt(0,r),y:Jt(0,n),scalar:1,degree:0,attrs:{fill:Ft.random().toString()},enableDrag:!0}),Yt=new xy({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Ft.random().toString(),fill:"none"},enableDrag:!0}),Mt=new Cy({x:Jt(0,r),y:Jt(0,n),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Ft.random().toString()},enableDrag:!0}),Et=new Ao({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Ft.random().toString()},enableDrag:!0}),te=new Ff({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});te.on("change",Fe=>{console.log(`slider change: ${Fe}`)});const Xt=new Vi({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ft.random().toString(),enableDrag:!0}),j=new Df({x:Jt(0,r),y:Jt(0,n),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),Me=new Rf({x:Jt(0,r),y:Jt(0,n),rx:50,ry:10,enableDrag:!0,attrs:{fill:Ft.random().toString()}}),je=[I,$,A,X,Q,Z,at,G,H,gt,ht,B,P,Yt,Mt,Et,te,Xt,j,Me];s.value.getSVG().then(Fe=>{a.value.getCanvas().then(S=>{Fe.clear(),f=le(()=>(Fe.path(je),S.ctx.clearRect(),S.draw(je),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new Ln({scalar:.5,followMouse:!0,attrs:{fill:Ft.random().toString()}}),D=N.clone(),A=new xe({x:I.app.width/2,y:I.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),X=A.clone();I.clear(),f=le(()=>($.ctx.clearRect(),A.toX=N.x,A.toY=N.y,X.toX=D.x,X.toY=D.y,I.path([A,N]),$.draw([X,D]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new re({x:I.app.width/2,y:I.app.height/2,radius:30,attrs:{fill:Ft.random().toString()}});N.enableDrag=!0,N.targetToAfterDragFree={targetX:I.app.width/2,targetY:I.app.height/2};const D=N.clone();I.clear(),f=le(()=>(I.path(N),$.ctx.clearRect(),$.draw(D),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new re({x:50,y:I.app.height/2,radius:30,attrs:{fill:Ft.random().toString()}});N.mass=2,N.vx=2;const D=new re({x:I.app.width-50,y:I.app.height/2,radius:30,attrs:{fill:Ft.random().toString()}});D.mass=1,D.vx=-2,I.clear(),f=le(()=>(N.checkCollision(D),N.run(),D.run(),I.path([N,D]),$.ctx.clearRect(),$.draw([N,D]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const D=[];for(let rt=0;rt<15;rt++){const Q=Math.random()*20+15,Z=new re({x:Math.random()*I.app.width,y:Math.random()*I.app.height,radius:Q,attrs:{fill:Ft.random().toString()}});Z.mass=Q,Z.vx=Math.random()*10-5,Z.vy=Math.random()*10-5,D.push(Z)}const A=new Ee({x:0,y:0,width:I.app.width,height:I.app.height}),X=new Ge(D);I.clear(),f=le(()=>(X.run({wall:A}),I.path(D),$.ctx.clearRect(),$.draw(D),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const D=[];for(let X=0;X<30;X++){const rt=Math.random()*25+5,Q=new re({x:Math.random()*I.app.width,y:Math.random()*I.app.height,radius:rt,attrs:{fill:Ft.random().toString()}});Q.mass=rt,D.push(Q)}const A=new Ge(D);I.clear(),f=le(()=>(A.gravitate(),I.path(D),$.ctx.clearRect(),$.draw(D),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new re({x:I.app.width*.5,y:I.app.height*.5,radius:50,attrs:{fill:Ft.random().toString()}});N.mass=1e4;const D=new re({x:I.app.width*.5+200,y:I.app.height*.5,radius:10,attrs:{fill:Ft.random().toString()}});D.mass=1,D.vy=7;const A=[N,D],X=new Ge(A);I.clear(),f=le(()=>(X.gravitate(),I.path(A),$.ctx.clearRect(),$.draw(A),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=[];for(let Z=0;Z<30;Z++){const at=Math.random()*10+2,G=new re({x:Math.random()*$.app.width,y:Math.random()*$.app.height,radius:at,attrs:{fill:Ft.random().toString()}});G.vx=Math.random()*6-3,G.vy=Math.random()*6-3,G.mass=at,N.push(G)}const A=new Ge(N),X=new Ee({x:0,y:0,width:$.app.width,height:$.app.height}),rt=new Ft("#666666");let Q=[];I.clear(),f=le(()=>(I.delete(Q),Q=[],A.springMass(X,{spring:5e-4}).forEach(([Z,at,G,H,gt])=>{gt>0&&Q.push(new xe({x:Z,y:at,toX:G,toY:H,attrs:{strokeWidth:"1",stroke:rt.setAlpha(gt).toString()}}))}),I.path(Q),I.path(N),$.ctx.clearRect(),$.draw(Q),$.draw(N),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new re({x:0,y:0,radius:8,attrs:{fill:Ft.random().toString()}}),D=new re({x:0,y:0,radius:5,attrs:{fill:Ft.random().toString()}});let A=[p,N,D],X,rt;p.on("clicked",H=>{rt&&I.delete(rt),X&&X.restore(),X=H,H.save(),H.setAttr({fill:"pink",stroke:"green"}),A=[p,N,D];const gt=H.getBoundingClientRect();gt&&(rt=new Ee(gt),rt.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),A.push(rt))});let Q=0,Z=p.shapes[Q].getTotalLength(),at=0;const G=.01;I.clear(),f=le(()=>{at>1&&(Q++,at=0,Q>p.shapes.length-1&&(Q=0),Z=p.shapes[Q].getTotalLength()),$.ctx.clearRect();let{x:H,y:gt}=p.shapes[Q].interpolate(at);N.x=H,N.y=gt;let{x:ht,y:B}=p.shapes[Q].getPointAtLength(at*Z);return D.x=ht,D.y=B,I.path(A),$.draw(A),at+=G,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new Ao({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new Ao({width:50,height:10,attrs:{stroke:"#666666"}}),A=new Ao({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new Ao({width:50,height:10,attrs:{stroke:"#666666"}});let rt=0,Q=0;function Z(){Q+=.2,N.x+=rt,N.y+=Q,A.x+=rt,A.y+=Q}const at=-Math.PI/2;function G(B,P,Yt){const Mt=Math.sin(Yt)*45+90,Et=Math.sin(Yt+at)*45+45,te=P.getPin();B.degree=Mt,P.degree=B.degree+Et,P.x=B.getPin().x,P.y=B.getPin().y,P.vx=P.getPin().x-te.x,P.vy=P.getPin().y-te.y}function H(B){const P=B.getPin().y+B.height/2;if(P>$.app.height){const Yt=P-$.app.height;N.y-=Yt,D.y-=Yt,A.y-=Yt,X.y-=Yt,rt-=B.vx,Q-=B.vy}}function gt(){const B=$.app.width+200;N.x>$.app.width+100?(N.x-=B,D.x-=B,A.x-=B,X.x-=B):N.x<-100&&(N.x+=B,D.x+=B,A.x+=B,X.x+=B)}let ht=0;I.clear(),f=le(()=>($.ctx.clearRect(),ht+=.06,Z(),G(N,D,ht),G(A,X,ht+Math.PI),H(D),H(X),gt(),I.path([N,D,A,X]),$.draw([N,D,A,X]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!s.value||!a.value)return;f?.();function I(X){return new Ee({x:Math.random()*X,y:0,width:50,height:50,attrs:{fill:Ft.random().toString()},enableDrag:!0})}const $=.2,N=[];function D(){const X=I(r);return N.push(X),X}let A=D();s.value.getSVG().then(X=>{a.value.getCanvas().then(rt=>{X.clear(),f=le(()=>(rt.ctx.clearRect(),X.isMouseDown||rt.isMouseDown?(X.path(N),rt.draw(N)):(A&&A.run({gravity:$}),A&&A.y+A.height>=rt.ctx.canvas.height&&(A.y=rt.ctx.canvas.height-A.height,A=D()),N.forEach(Q=>(A&&A!==Q&&A.isIntersectRect(Q)&&(A.y=Q.y-A.height,A.y>=A.height?A=D():A=null),Q)),X.path(N),rt.draw(N)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=[];for(let D=0;D<80;D++){const A=new re({x:I.app.width/2,y:I.app.height,radius:2,attrs:{fill:Ft.random().toString()}});A.vx=Math.random()*2-1,A.vy=Math.random()*-10-10,N.push(A)}I.clear(),f=le(()=>(N.forEach(D=>{D.run({gravity:.5}),(D.x-D.radius>I.app.width||D.x+D.radius<0||D.y-D.radius>I.app.height||D.y+D.radius<0)&&(D.x=I.app.width/2,D.y=I.app.height,D.vx=Math.random()*2-1,D.vy=Math.random()*-10-10)}),I.path(N),$.ctx.clearRect(),$.draw(N),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!s.value||!a.value)return;f?.();function I(D,A){const X=[];for(let rt=0;rt<3;rt++)X.push(new re({x:D,y:A,radius:20,attrs:{fill:Ft.random().toString()}}));return X}function $(){const D=[];for(let A=0;A<3;A++)D.push(new xe({attrs:{"stroke-width":"1",stroke:"#666666"}}));return D}const N={spring:.03,friction:.9,gravity:2};s.value.getSVG().then(D=>{a.value.getCanvas().then(A=>{const X=$(),rt=I(D.app.width/2,D.app.height/2),Q=new re({x:0,y:0}),Z=$(),at=I(A.app.width/2,A.app.height/2),G=new re({x:0,y:0}),H=new Ge([Q,...rt]),gt=new Ge([G,...at]);D.clear(),f=le(()=>(A.ctx.clearRect(),Q.x=D.app.mousePoint.x,Q.y=D.app.mousePoint.y,H.springChain(N),rt.forEach((ht,B)=>{if(B===0)X[B].x=D.app.mousePoint.x,X[B].y=D.app.mousePoint.y,X[B].toX=ht.x,X[B].toY=ht.y;else{const P=rt[B-1];X[B].x=P.x,X[B].y=P.y,X[B].toX=ht.x,X[B].toY=ht.y}}),D.path(X),D.path(rt),G.x=A.app.mousePoint.x,G.y=A.app.mousePoint.y,gt.springChain(N),at.forEach((ht,B)=>{if(B===0)Z[B].x=A.app.mousePoint.x,Z[B].y=A.app.mousePoint.y,Z[B].toX=ht.x,Z[B].toY=ht.y;else{const P=at[B-1];Z[B].x=P.x,Z[B].y=P.y,Z[B].toX=ht.x,Z[B].toY=ht.y}}),A.draw(Z),A.draw(at),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=[new xe({attrs:{stroke:"#666666"}}),new xe({attrs:{stroke:"#666666"}}),new xe({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new re({x:Math.random()*I.app.width,y:Math.random()*I.app.height,radius:10,attrs:{fill:Ft.random().toString()},enableDrag:!0}));const A=new re({radius:20,attrs:{fill:"#ff0000"}});I.clear(),f=le(()=>($.ctx.clearRect(),A.runSpringTo(D,{spring:.03}),D.forEach((X,rt)=>{N[rt].x=A.x,N[rt].y=A.y,N[rt].toX=X.x,N[rt].toY=X.y}),I.path([...N,...D,A]),$.draw([...N,...D,A]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=[new xe({attrs:{stroke:"#666666"}}),new xe({attrs:{stroke:"#666666"}}),new xe({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new re({x:Math.random()*I.app.width,y:Math.random()*I.app.height,radius:10,attrs:{fill:Ft.random().toString()},enableDrag:!0}));const A=new Ge(D);I.clear(),f=le(()=>(A.springConnect({springLength:120}),N[0].x=D[0].x,N[0].y=D[0].y,N[0].toX=D[1].x,N[0].toY=D[1].y,N[1].x=D[1].x,N[1].y=D[1].y,N[1].toX=D[2].x,N[1].toY=D[2].y,N[2].x=D[2].x,N[2].y=D[2].y,N[2].toX=D[0].x,N[2].toY=D[0].y,I.path([...N,...D]),$.ctx.clearRect(),$.draw([...N,...D]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const D=new $n({x:50,y:I.app.height-50,toX:I.app.width-50,toY:I.app.height-50,cx:I.app.mousePoint.x,cy:I.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),A=new $n({x:50,y:I.app.height-50,toX:I.app.width-50,toY:I.app.height-50,cx:I.app.mousePoint.x,cy:I.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),X=new $n({x:50,y:$.ctx.canvas.height-50,toX:$.ctx.canvas.width-50,toY:$.ctx.canvas.height-50,cx:$.app.mousePoint.x,cy:$.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),rt=new $n({x:50,y:$.ctx.canvas.height-50,toX:$.ctx.canvas.width-50,toY:$.ctx.canvas.height-50,cx:$.app.mousePoint.x,cy:$.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});I.clear(),f=le(()=>($.ctx.clearRect(),A.cx=D.cx=I.app.mousePoint.x,A.cy=D.cy=I.app.mousePoint.y,I.path(D),I.path(A),rt.cx=X.cx=$.app.mousePoint.x,rt.cy=X.cy=$.app.mousePoint.y,$.draw([X,rt]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{I.clear(),$.ctx.clearRect();const N=[];for(let X=0;X<10;X++)N.push({x:Math.random()*I.app.width,y:Math.random()*I.app.height});const D=N.map((X,rt)=>new Ee({x:X.x,y:X.y,width:6,height:6,attrs:{fill:rt==0?"#ff0000":rt==N.length-1?"#00ff00":"#666666"}})),A=new Of({points:N,attrs:{stroke:"#ff0000"},isStraight:!0});A.isStraight=!0,I.path(D),I.path(A),A.isStraight=!1,$.draw([...D,A])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!s.value||!a.value)return;f?.();const I=new If({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),$=new If({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});s.value.getSVG().then(N=>{a.value.getCanvas().then(D=>{N.clear(),f=le(()=>(D.ctx.clearRect(),N.path(I),D.draw($),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!s.value||!a.value)&&(f?.(),h.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${_.value} ${_.value}`,strokeDashoffset:`${x.value}`}),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{I.clear(),f=le(()=>($.ctx.clearRect(),I.path(h),$.draw(h),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!s.value||!a.value)&&(f?.(),h.setAttr({stroke:"#ff0000",strokeWidth:"4"}),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{I.clear(),h.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{I.path(h),$.ctx.clearRect(),$.draw(h)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{I.clear(),$.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Ft.random().toString()})},onGroupUpdate:()=>{I.path(p),$.ctx.clearRect(),$.draw(p)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{I.clear(),$.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Ft.random().toString()})},onGroupUpdate:()=>{I.path(p),$.ctx.clearRect(),$.draw(p)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!s.value||!a.value)return;f?.();const I=new Ln({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),$=new Ee({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),N=new zi({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=Ge.generatePointsShape(100,100,100,3);D.x=100,D.y=100,D.setAttr({stroke:"#666666"});const A=Ge.generatePointsShape(100,100,100,6);A.x=50,A.y=50,A.setAttr({stroke:"#7EEDFF"});const X=new Ge([D,A,I,$,N]);s.value.getSVG().then(rt=>{a.value.getCanvas().then(Q=>{rt.clear(),X.polymorphTween(6e3,{draw:Z=>{rt.path(Z),Q.ctx.clearRect(),Q.draw(Z)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!s.value||!a.value)return;f?.();const I=new Ln({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),$=new Ee({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),N=new zi({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=new Ge([I,$,p,N]);s.value.getSVG().then(A=>{a.value.getCanvas().then(X=>{A.clear(),D.polymorphTween(6e3,{draw:rt=>{A.path(rt),X.ctx.clearRect(),X.draw(rt)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!s.value||!a.value)&&(f?.(),zf(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=Ge.generateRosettaShape(120,120,55,35,6);N.setAttr({stroke:"none",fill:"none"});const D=new Ee({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),A=new oe({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});I.clear(),$.ctx.clearRect();const X=new Ie({frameDuration:15e3});X.addTween({progress:0},{progress:1},{onUpdate:rt=>{const Q=N.trailPath(A,rt.progress);D.x=Q.x,D.y=Q.y,D.degree=Q.alpha+90,I.path([A,D]),$.ctx.clearRect(),$.draw([A,D])}}),X.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!s.value||!a.value)&&(f?.(),s.value.getSVG().then(I=>{a.value.getCanvas().then($=>{const N=new Ty($.app.width,$.app.height,{angle:Jt(55,125),spread:Jt(50,70),particleCount:Jt(50,100)});I.clear(),f=le(()=>($.ctx.clearRect(),I.path(N),$.draw(N),!0))})}))}}],b=[{type:"translateTo",onClick:()=>d("translateTo")},{type:"translateXTo",onClick:()=>d("translateXTo")},{type:"translateYTo",onClick:()=>d("translateYTo")},{type:"translateZTo",onClick:()=>d("translateZTo")},{type:"translate3dTo",onClick:()=>d("translate3dTo")},{type:"rotateTo",onClick:()=>d("rotateTo")},{type:"rotateXTo",onClick:()=>d("rotateXTo")},{type:"rotateYTo",onClick:()=>d("rotateYTo")},{type:"rotateZTo",onClick:()=>d("rotateZTo")},{type:"rotate3dTo",onClick:()=>d("rotate3dTo")},{type:"scaleTo",onClick:()=>d("scaleTo")},{type:"scaleXTo",onClick:()=>d("scaleXTo")},{type:"scaleYTo",onClick:()=>d("scaleYTo")},{type:"scaleZTo",onClick:()=>d("scaleZTo")},{type:"scale3dTo",onClick:()=>d("scale3dTo")},{type:"skewTo",onClick:()=>d("skewTo")},{type:"skewXTo",onClick:()=>d("skewXTo")},{type:"skewYTo",onClick:()=>d("skewYTo")},{type:"perspective",onClick:()=>d("perspective")}];let C;function U(){C||(C=new os(i.value));const I=50,$=0,N=0,D=0,A=C.width-I,X=C.height-I,rt=C.height-I,Q=C.width/2-I/2,Z=C.height/2-I/2,at={},G={};switch(u.value){case"translateTo":Object.assign(at,{translateTo:[$,N]}),Object.assign(G,{translateTo:[A,X]});break;case"translateXTo":Object.assign(at,{translateXTo:$}),Object.assign(G,{translateXTo:A});break;case"translateYTo":Object.assign(at,{translateYTo:N}),Object.assign(G,{translateYTo:X});break;case"translateZTo":Object.assign(at,{translateTo:[Q,Z],translateZTo:D}),Object.assign(G,{translateTo:[Q,Z],translateZTo:rt});break;case"translate3dTo":Object.assign(at,{translate3dTo:[Q-50,Z-50,D]}),Object.assign(G,{translate3dTo:[Q+50,Z+50,rt]});break;case"rotateTo":Object.assign(at,{translateTo:[Q,Z],rotateTo:0}),Object.assign(G,{translateTo:[Q,Z],rotateTo:360});break;case"rotateXTo":Object.assign(at,{translateTo:[Q,Z],rotateXTo:0}),Object.assign(G,{translateTo:[Q,Z],rotateXTo:180});break;case"rotateYTo":Object.assign(at,{translateTo:[Q,Z],rotateYTo:0}),Object.assign(G,{translateTo:[Q,Z],rotateYTo:180});break;case"rotateZTo":Object.assign(at,{translateTo:[Q,Z],rotateZTo:0}),Object.assign(G,{translateTo:[Q,Z],rotateZTo:360});break;case"rotate3dTo":Object.assign(at,{translateTo:[Q,Z],rotate3dTo:[0,0,0]}),Object.assign(G,{translateTo:[Q,Z],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(at,{translateTo:[Q,Z],scaleTo:1}),Object.assign(G,{translateTo:[Q,Z],scaleTo:3});break;case"scaleXTo":Object.assign(at,{translateTo:[Q,Z],scaleXTo:1}),Object.assign(G,{translateTo:[Q,Z],scaleXTo:3});break;case"scaleYTo":Object.assign(at,{translateTo:[Q,Z],scaleYTo:1}),Object.assign(G,{translateTo:[Q,Z],scaleYTo:3});break;case"scaleZTo":Object.assign(at,{translateTo:[Q,Z],scaleZTo:1}),Object.assign(G,{translateTo:[Q,Z],scaleZTo:3});break;case"scale3dTo":Object.assign(at,{translateTo:[Q,Z],scale3dTo:[1,1,1]}),Object.assign(G,{translateTo:[Q,Z],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(at,{translateTo:[Q,Z],skewTo:0}),Object.assign(G,{translateTo:[Q,Z],skewTo:30});break;case"skewXTo":Object.assign(at,{translateTo:[Q,Z],skewXTo:0}),Object.assign(G,{translateTo:[Q,Z],skewXTo:30});break;case"skewYTo":Object.assign(at,{translateTo:[Q,Z],skewYTo:0}),Object.assign(G,{translateTo:[Q,Z],skewYTo:30});break;case"perspective":Object.assign(at,{translateTo:[Q,Z],perspective:0}),Object.assign(G,{translateTo:[Q,Z],perspective:1e3});break}const H=new Ie({frameDuration:2e3});H.addTween(at,G,{easeFunction:e.easeFunction,onUpdate:gt=>{zf(l.value,Ry(l.value,gt))}}),H.play()}function K(){return new Promise(I=>{a.value.getCanvas().then($=>{pe.downloadFromSVGString($.ctx.toRawSVG().raw,"CanvasToSVG"),I()})})}return se(()=>{}),t({}),(I,$)=>(L(),V(Vt,null,[E("div",kb,[ct(ne,{asyncClick:K},{default:bt(()=>$[0]||($[0]=[jt(" downloadFromCanvasToSVG ")])),_:1})]),E("div",Cb,[(L(),V(Vt,null,_e(m,N=>ct(ne,{key:N.type,item:N,onClick:N.onClick,stylePattern:c.value==N.type?"fullfilled":"outline"},{default:bt(()=>[jt(yt(N.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),co(E("div",null," 当前缓动函数:"+yt(e.easeName),513),[[Ws,c.value=="AnimateToTweenCSS"]]),co(E("div",Tb,[(L(),V(Vt,null,_e(b,N=>ct(ne,{key:N.type,item:N,onClick:N.onClick,stylePattern:u.value==N.type?"fullfilled":"outline"},{default:bt(()=>[jt(yt(N.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Ws,c.value=="AnimateToTweenCSS"]]),co(E("div",Sb,[E("div",Eb,[E("div",null,"stroke-dasharray: "+yt(_.value)+","+yt(_.value),1),ct(xo,{max:988,defaultValue:_.value,onChange:v},null,8,["defaultValue"])]),E("div",Pb,[E("div",null,"stroke-dashoffset: "+yt(x.value),1),ct(xo,{max:988,defaultValue:x.value,onChange:g},null,8,["defaultValue"])])],512),[[Ws,c.value=="StrokeDash"]]),co(E("div",Ob,[ct(Ed,{ref_key:"svgRef",ref:s,bgColor:"#ffffff"},null,512)],512),[[Ws,c.value!=="AnimateToTweenCSS"]]),co(E("div",Rb,[ct(Ue,{ref_key:"canvasRef",ref:a,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Ws,c.value!=="AnimateToTweenCSS"]]),co(E("div",{ref_key:"tweenCSSContainerRef",ref:i,style:{height:"400px"},class:"css-area"},[E("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[Ws,c.value=="AnimateToTweenCSS"]])],64))}}),Pd=it(Ib,[["styles",[`.btns[data-v-0155e0d3]{display:flex;flex-wrap:wrap}.btns[data-v-0155e0d3]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-0155e0d3]{padding-top:10px;background-color:#dbffff}.css-area[data-v-0155e0d3]{background-color:#fff}.tween-css-target[data-v-0155e0d3]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
|
|
146
|
-
`]],["__scopeId","data-v-0155e0d3"]]),
|
|
147
|
-
`]],["__scopeId","data-v-8fe3f9fd"]]),
|
|
148
|
-
`]],["__scopeId","data-v-7aebdea0"]]),
|
|
149
|
-
`]],["__scopeId","data-v-8745630f"]]),
|
|
150
|
-
`]],["__scopeId","data-v-0e77f86d"]]),
|
|
151
|
-
`]],["__scopeId","data-v-ba0e36ce"]]),
|
|
152
|
-
`]],["__scopeId","data-v-f7deb691"]]),
|
|
153
|
-
`]],["__scopeId","data-v-945f5b2e"]]),
|
|
161
|
+
`,u=I();return St(u,()=>{u.value&&cs(c,u.value)}),oe(()=>{}),t({}),(d,h)=>(L(),V("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[E("input",{type:"range",max:o.max,min:o.min,step:o.step,value:n.value,autofocus:o.autofocus,onInput:l,style:N({background:`linear-gradient(to right, ${o.color} 0%, ${o.color} ${i.value}%, ${o.barColor} ${i.value}%, ${o.barColor})`})},null,44,$b),kt(d.$slots,"default",{value:n.value},()=>[d.showValue?(L(),V("label",Lb,yt(n.value)+yt(o.unit),1)):Rt("",!0)],!0)],512))}}),lw="",ko=it(Ab,[["__scopeId","data-v-cab67db2"]]),Nb=q({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const o=s,r=e;let n,a,i;const l=I();St(l,()=>{n||!l.value||(n=new rs(l.value,!1),n.on("resize",(u,d)=>{r("resize",u,d),a=new Bd(n),i?.(a),r("ready",a)}),n.start())});function c(){return new Promise(u=>{if(a)return u(a);i=u})}return oe(()=>{n?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,d)=>(L(),V("div",{class:"svg",ref_key:"svgRef",ref:l,style:N({backgroundColor:o.bgColor})},null,4))}}),cw="",Af=it(Nb,[["__scopeId","data-v-132e642b"]]),Mb='<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>',zb={class:"btns"},Vb={class:"btns"},Bb={class:"btns sub-btns"},Yb={class:"btns sub-btns"},Xb={style:{width:"100%"}},Gb={style:{width:"100%"}},Ub={style:{height:"400px"}},jb={style:{height:"400px"}},Hb=q({customOptions:{Button:ae,InputRange:ko,SVG:Af,Canvas:je},inheritAttrs:!0,__name:"SVGAndCanvas.ce",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:xt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,o=I();let r=0,n=0;St(o,()=>{o.value&&o.value.getSVG().then(R=>{r=R.app.width,n=R.app.height,R.app.on("resize",($,A)=>{r=$,n=A})})});const a=I(),i=I(),l=I(),c=I(""),u=I("");let d;function h(R){switch(u.value=R,c.value){case"AnimateToTweenCSS":Z();break}}const p=new $y({svg:Mb,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),f=new re({d:"M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"}),b=+f.getTotalLength().toFixed(0),w=I(b),x=I(Math.floor(b/2));function v(R){w.value=R,f.setAttr("strokeDasharray",`${w.value} ${w.value}`)}function g(R){x.value=R,f.setAttr("strokeDashoffset",`${x.value}`)}const m=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new Vo({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Ft.random().toString()},enableDrag:!0});R.clear(),d=ce(()=>($.ctx.clearRect(),R.path([A]),$.draw([A]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!o.value||!a.value)return;d?.();const R=new we({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),$=new we({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),A=te(0,r-100),D=te(0,n-100),M=new we({attrs:{stroke:"#666666"}});M.x=A,M.y=D,M.toX=A+100,M.toY=D+100;const X=new we({attrs:{stroke:"#666666"}});X.x=A+100,X.y=D,X.toX=A,X.toY=D+100;const rt=M.intersection(X),Q=new ne({x:0,y:0,radius:10,attrs:{fill:Ft.random().toString()}});rt&&(Q.x=rt.x,Q.y=rt.y);const W=new Bn({x:te(0,r),y:te(0,n),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),at=new Pe({x:te(0,r),y:te(0,n),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),G=new Ly({x:te(0,r),y:te(0,n),scalar:.99,degree:-1,attrs:{fill:Ft.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),j=new Ay({x:te(0,r),y:te(0,n),scalar:.99,degree:-1,attrs:{fill:Ft.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),gt=new Ny({x:te(0,r),y:te(0,n),scalar:1,degree:0,attrs:{fill:Ft.random().toString()},enableDrag:!0}),ht=new Gi({x:te(0,r),y:te(0,n),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new My({x:te(0,r),y:te(0,n),scalar:1,degree:0,attrs:{fill:Ft.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),P=new zy({x:te(0,r),y:te(0,n),scalar:1,degree:0,attrs:{fill:Ft.random().toString()},enableDrag:!0}),Yt=new Vy({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Ft.random().toString(),fill:"none"},enableDrag:!0}),At=new Xy({x:te(0,r),y:te(0,n),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Ft.random().toString()},enableDrag:!0}),Et=new Vo({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Ft.random().toString()},enableDrag:!0}),ee=new Ud({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ee.on("change",De=>{console.log(`slider change: ${De}`)});const Xt=new Ui({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ft.random().toString(),enableDrag:!0}),U=new jd({x:te(0,r),y:te(0,n),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),Me=new Xd({x:te(0,r),y:te(0,n),rx:50,ry:10,enableDrag:!0,attrs:{fill:Ft.random().toString()}}),He=[R,$,M,X,Q,W,at,G,j,gt,ht,B,P,Yt,At,Et,ee,Xt,U,Me];o.value.getSVG().then(De=>{a.value.getCanvas().then(S=>{De.clear(),d=ce(()=>(De.path(He),S.ctx.clearRect(),S.draw(He),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new Bn({scalar:.5,followMouse:!0,attrs:{fill:Ft.random().toString()}}),D=A.clone(),M=new we({x:R.app.width/2,y:R.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),X=M.clone();R.clear(),d=ce(()=>($.ctx.clearRect(),M.toX=A.x,M.toY=A.y,X.toX=D.x,X.toY=D.y,R.path([M,A]),$.draw([X,D]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new ne({x:R.app.width/2,y:R.app.height/2,radius:30,attrs:{fill:Ft.random().toString()}});A.enableDrag=!0,A.targetToAfterDragFree={targetX:R.app.width/2,targetY:R.app.height/2};const D=A.clone();R.clear(),d=ce(()=>(R.path(A),$.ctx.clearRect(),$.draw(D),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new ne({x:50,y:R.app.height/2,radius:30,attrs:{fill:Ft.random().toString()}});A.mass=2,A.vx=2;const D=new ne({x:R.app.width-50,y:R.app.height/2,radius:30,attrs:{fill:Ft.random().toString()}});D.mass=1,D.vx=-2,R.clear(),d=ce(()=>(A.checkCollision(D),A.run(),D.run(),R.path([A,D]),$.ctx.clearRect(),$.draw([A,D]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const D=[];for(let rt=0;rt<15;rt++){const Q=Math.random()*20+15,W=new ne({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:Q,attrs:{fill:Ft.random().toString()}});W.mass=Q,W.vx=Math.random()*10-5,W.vy=Math.random()*10-5,D.push(W)}const M=new Pe({x:0,y:0,width:R.app.width,height:R.app.height}),X=new Ue(D);R.clear(),d=ce(()=>(X.run({wall:M}),R.path(D),$.ctx.clearRect(),$.draw(D),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const D=[];for(let X=0;X<30;X++){const rt=Math.random()*25+5,Q=new ne({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:rt,attrs:{fill:Ft.random().toString()}});Q.mass=rt,D.push(Q)}const M=new Ue(D);R.clear(),d=ce(()=>(M.gravitate(),R.path(D),$.ctx.clearRect(),$.draw(D),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new ne({x:R.app.width*.5,y:R.app.height*.5,radius:50,attrs:{fill:Ft.random().toString()}});A.mass=1e4;const D=new ne({x:R.app.width*.5+200,y:R.app.height*.5,radius:10,attrs:{fill:Ft.random().toString()}});D.mass=1,D.vy=7;const M=[A,D],X=new Ue(M);R.clear(),d=ce(()=>(X.gravitate(),R.path(M),$.ctx.clearRect(),$.draw(M),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=[];for(let W=0;W<30;W++){const at=Math.random()*10+2,G=new ne({x:Math.random()*$.app.width,y:Math.random()*$.app.height,radius:at,attrs:{fill:Ft.random().toString()}});G.vx=Math.random()*6-3,G.vy=Math.random()*6-3,G.mass=at,A.push(G)}const M=new Ue(A),X=new Pe({x:0,y:0,width:$.app.width,height:$.app.height}),rt=new Ft("#666666");let Q=[];R.clear(),d=ce(()=>(R.delete(Q),Q=[],M.springMass(X,{spring:5e-4}).forEach(([W,at,G,j,gt])=>{gt>0&&Q.push(new we({x:W,y:at,toX:G,toY:j,attrs:{strokeWidth:"1",stroke:rt.setAlpha(gt).toString()}}))}),R.path(Q),R.path(A),$.ctx.clearRect(),$.draw(Q),$.draw(A),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new ne({x:0,y:0,radius:8,attrs:{fill:Ft.random().toString()}}),D=new ne({x:0,y:0,radius:5,attrs:{fill:Ft.random().toString()}});let M=[p,A,D],X,rt;p.on("clicked",j=>{rt&&R.delete(rt),X&&X.restore(),X=j,j.save(),j.setAttr({fill:"pink",stroke:"green"}),M=[p,A,D];const gt=j.getBoundingClientRect();gt&&(rt=new Pe(gt),rt.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),M.push(rt))});let Q=0,W=p.shapes[Q].getTotalLength(),at=0;const G=.01;R.clear(),d=ce(()=>{at>1&&(Q++,at=0,Q>p.shapes.length-1&&(Q=0),W=p.shapes[Q].getTotalLength()),$.ctx.clearRect();let{x:j,y:gt}=p.shapes[Q].interpolate(at);A.x=j,A.y=gt;let{x:ht,y:B}=p.shapes[Q].getPointAtLength(at*W);return D.x=ht,D.y=B,R.path(M),$.draw(M),at+=G,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new Vo({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new Vo({width:50,height:10,attrs:{stroke:"#666666"}}),M=new Vo({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new Vo({width:50,height:10,attrs:{stroke:"#666666"}});let rt=0,Q=0;function W(){Q+=.2,A.x+=rt,A.y+=Q,M.x+=rt,M.y+=Q}const at=-Math.PI/2;function G(B,P,Yt){const At=Math.sin(Yt)*45+90,Et=Math.sin(Yt+at)*45+45,ee=P.getPin();B.degree=At,P.degree=B.degree+Et,P.x=B.getPin().x,P.y=B.getPin().y,P.vx=P.getPin().x-ee.x,P.vy=P.getPin().y-ee.y}function j(B){const P=B.getPin().y+B.height/2;if(P>$.app.height){const Yt=P-$.app.height;A.y-=Yt,D.y-=Yt,M.y-=Yt,X.y-=Yt,rt-=B.vx,Q-=B.vy}}function gt(){const B=$.app.width+200;A.x>$.app.width+100?(A.x-=B,D.x-=B,M.x-=B,X.x-=B):A.x<-100&&(A.x+=B,D.x+=B,M.x+=B,X.x+=B)}let ht=0;R.clear(),d=ce(()=>($.ctx.clearRect(),ht+=.06,W(),G(A,D,ht),G(M,X,ht+Math.PI),j(D),j(X),gt(),R.path([A,D,M,X]),$.draw([A,D,M,X]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!o.value||!a.value)return;d?.();function R(X){return new Pe({x:Math.random()*X,y:0,width:50,height:50,attrs:{fill:Ft.random().toString()},enableDrag:!0})}const $=.2,A=[];function D(){const X=R(r);return A.push(X),X}let M=D();o.value.getSVG().then(X=>{a.value.getCanvas().then(rt=>{X.clear(),d=ce(()=>(rt.ctx.clearRect(),X.isMouseDown||rt.isMouseDown?(X.path(A),rt.draw(A)):(M&&M.run({gravity:$}),M&&M.y+M.height>=rt.ctx.canvas.height&&(M.y=rt.ctx.canvas.height-M.height,M=D()),A.forEach(Q=>(M&&M!==Q&&M.isIntersectRect(Q)&&(M.y=Q.y-M.height,M.y>=M.height?M=D():M=null),Q)),X.path(A),rt.draw(A)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=[];for(let D=0;D<80;D++){const M=new ne({x:R.app.width/2,y:R.app.height,radius:2,attrs:{fill:Ft.random().toString()}});M.vx=Math.random()*2-1,M.vy=Math.random()*-10-10,A.push(M)}R.clear(),d=ce(()=>(A.forEach(D=>{D.run({gravity:.5}),(D.x-D.radius>R.app.width||D.x+D.radius<0||D.y-D.radius>R.app.height||D.y+D.radius<0)&&(D.x=R.app.width/2,D.y=R.app.height,D.vx=Math.random()*2-1,D.vy=Math.random()*-10-10)}),R.path(A),$.ctx.clearRect(),$.draw(A),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!o.value||!a.value)return;d?.();function R(D,M){const X=[];for(let rt=0;rt<3;rt++)X.push(new ne({x:D,y:M,radius:20,attrs:{fill:Ft.random().toString()}}));return X}function $(){const D=[];for(let M=0;M<3;M++)D.push(new we({attrs:{"stroke-width":"1",stroke:"#666666"}}));return D}const A={spring:.03,friction:.9,gravity:2};o.value.getSVG().then(D=>{a.value.getCanvas().then(M=>{const X=$(),rt=R(D.app.width/2,D.app.height/2),Q=new ne({x:0,y:0}),W=$(),at=R(M.app.width/2,M.app.height/2),G=new ne({x:0,y:0}),j=new Ue([Q,...rt]),gt=new Ue([G,...at]);D.clear(),d=ce(()=>(M.ctx.clearRect(),Q.x=D.app.mousePoint.x,Q.y=D.app.mousePoint.y,j.springChain(A),rt.forEach((ht,B)=>{if(B===0)X[B].x=D.app.mousePoint.x,X[B].y=D.app.mousePoint.y,X[B].toX=ht.x,X[B].toY=ht.y;else{const P=rt[B-1];X[B].x=P.x,X[B].y=P.y,X[B].toX=ht.x,X[B].toY=ht.y}}),D.path(X),D.path(rt),G.x=M.app.mousePoint.x,G.y=M.app.mousePoint.y,gt.springChain(A),at.forEach((ht,B)=>{if(B===0)W[B].x=M.app.mousePoint.x,W[B].y=M.app.mousePoint.y,W[B].toX=ht.x,W[B].toY=ht.y;else{const P=at[B-1];W[B].x=P.x,W[B].y=P.y,W[B].toX=ht.x,W[B].toY=ht.y}}),M.draw(W),M.draw(at),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=[new we({attrs:{stroke:"#666666"}}),new we({attrs:{stroke:"#666666"}}),new we({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new ne({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:10,attrs:{fill:Ft.random().toString()},enableDrag:!0}));const M=new ne({radius:20,attrs:{fill:"#ff0000"}});R.clear(),d=ce(()=>($.ctx.clearRect(),M.runSpringTo(D,{spring:.03}),D.forEach((X,rt)=>{A[rt].x=M.x,A[rt].y=M.y,A[rt].toX=X.x,A[rt].toY=X.y}),R.path([...A,...D,M]),$.draw([...A,...D,M]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=[new we({attrs:{stroke:"#666666"}}),new we({attrs:{stroke:"#666666"}}),new we({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new ne({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:10,attrs:{fill:Ft.random().toString()},enableDrag:!0}));const M=new Ue(D);R.clear(),d=ce(()=>(M.springConnect({springLength:120}),A[0].x=D[0].x,A[0].y=D[0].y,A[0].toX=D[1].x,A[0].toY=D[1].y,A[1].x=D[1].x,A[1].y=D[1].y,A[1].toX=D[2].x,A[1].toY=D[2].y,A[2].x=D[2].x,A[2].y=D[2].y,A[2].toX=D[0].x,A[2].toY=D[0].y,R.path([...A,...D]),$.ctx.clearRect(),$.draw([...A,...D]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const D=new Vn({x:50,y:R.app.height-50,toX:R.app.width-50,toY:R.app.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),M=new Vn({x:50,y:R.app.height-50,toX:R.app.width-50,toY:R.app.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),X=new Vn({x:50,y:$.ctx.canvas.height-50,toX:$.ctx.canvas.width-50,toY:$.ctx.canvas.height-50,cx:$.app.mousePoint.x,cy:$.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),rt=new Vn({x:50,y:$.ctx.canvas.height-50,toX:$.ctx.canvas.width-50,toY:$.ctx.canvas.height-50,cx:$.app.mousePoint.x,cy:$.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});R.clear(),d=ce(()=>($.ctx.clearRect(),M.cx=D.cx=R.app.mousePoint.x,M.cy=D.cy=R.app.mousePoint.y,R.path(D),R.path(M),rt.cx=X.cx=$.app.mousePoint.x,rt.cy=X.cy=$.app.mousePoint.y,$.draw([X,rt]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{R.clear(),$.ctx.clearRect();const A=[];for(let X=0;X<10;X++)A.push({x:Math.random()*R.app.width,y:Math.random()*R.app.height});const D=A.map((X,rt)=>new Pe({x:X.x,y:X.y,width:6,height:6,attrs:{fill:rt==0?"#ff0000":rt==A.length-1?"#00ff00":"#666666"}})),M=new Yd({points:A,attrs:{stroke:"#ff0000"},isStraight:!0});M.isStraight=!0,R.path(D),R.path(M),M.isStraight=!1,$.draw([...D,M])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!o.value||!a.value)return;d?.();const R=new Gd({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),$=new Gd({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});o.value.getSVG().then(A=>{a.value.getCanvas().then(D=>{A.clear(),d=ce(()=>(D.ctx.clearRect(),A.path(R),D.draw($),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!o.value||!a.value)&&(d?.(),f.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${w.value} ${w.value}`,strokeDashoffset:`${x.value}`}),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{R.clear(),d=ce(()=>($.ctx.clearRect(),R.path(f),$.draw(f),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!o.value||!a.value)&&(d?.(),f.setAttr({stroke:"#ff0000",strokeWidth:"4"}),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{R.clear(),f.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{R.path(f),$.ctx.clearRect(),$.draw(f)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{R.clear(),$.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Ft.random().toString()})},onGroupUpdate:()=>{R.path(p),$.ctx.clearRect(),$.draw(p)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{R.clear(),$.ctx.clearRect(),p.setAttrs({stroke:"none"}),p.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{p.setAttrs({stroke:Ft.random().toString()})},onGroupUpdate:()=>{R.path(p),$.ctx.clearRect(),$.draw(p)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!o.value||!a.value)return;d?.();const R=new Bn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),$=new Pe({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),A=new Gi({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=Ue.generatePointsShape(100,100,100,3);D.x=100,D.y=100,D.setAttr({stroke:"#666666"});const M=Ue.generatePointsShape(100,100,100,6);M.x=50,M.y=50,M.setAttr({stroke:"#7EEDFF"});const X=new Ue([D,M,R,$,A]);o.value.getSVG().then(rt=>{a.value.getCanvas().then(Q=>{rt.clear(),X.polymorphTween(6e3,{draw:W=>{rt.path(W),Q.ctx.clearRect(),Q.draw(W)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!o.value||!a.value)return;d?.();const R=new Bn({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),$=new Pe({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),A=new Gi({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=new Ue([R,$,p,A]);o.value.getSVG().then(M=>{a.value.getCanvas().then(X=>{M.clear(),D.polymorphTween(6e3,{draw:rt=>{M.path(rt),X.ctx.clearRect(),X.draw(rt)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!o.value||!a.value)&&(d?.(),Id(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=Ue.generateRosettaShape(120,120,55,35,6);A.setAttr({stroke:"none",fill:"none"});const D=new Pe({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),M=new re({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});R.clear(),$.ctx.clearRect();const X=new Fe({frameDuration:15e3});X.addTween({progress:0},{progress:1},{onUpdate:rt=>{const Q=A.trailPath(M,rt.progress);D.x=Q.x,D.y=Q.y,D.degree=Q.alpha+90,R.path([M,D]),$.ctx.clearRect(),$.draw([M,D])}}),X.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!o.value||!a.value)&&(d?.(),o.value.getSVG().then(R=>{a.value.getCanvas().then($=>{const A=new Gy($.app.width,$.app.height,{angle:te(55,125),spread:te(50,70),particleCount:te(50,100)});R.clear(),d=ce(()=>($.ctx.clearRect(),R.path(A),$.draw(A),!0))})}))}}],_=[{type:"translateTo",onClick:()=>h("translateTo")},{type:"translateXTo",onClick:()=>h("translateXTo")},{type:"translateYTo",onClick:()=>h("translateYTo")},{type:"translateZTo",onClick:()=>h("translateZTo")},{type:"translate3dTo",onClick:()=>h("translate3dTo")},{type:"rotateTo",onClick:()=>h("rotateTo")},{type:"rotateXTo",onClick:()=>h("rotateXTo")},{type:"rotateYTo",onClick:()=>h("rotateYTo")},{type:"rotateZTo",onClick:()=>h("rotateZTo")},{type:"rotate3dTo",onClick:()=>h("rotate3dTo")},{type:"scaleTo",onClick:()=>h("scaleTo")},{type:"scaleXTo",onClick:()=>h("scaleXTo")},{type:"scaleYTo",onClick:()=>h("scaleYTo")},{type:"scaleZTo",onClick:()=>h("scaleZTo")},{type:"scale3dTo",onClick:()=>h("scale3dTo")},{type:"skewTo",onClick:()=>h("skewTo")},{type:"skewXTo",onClick:()=>h("skewXTo")},{type:"skewYTo",onClick:()=>h("skewYTo")},{type:"perspective",onClick:()=>h("perspective")}];let k;function Z(){k||(k=new rs(i.value));const R=50,$=0,A=0,D=0,M=k.width-R,X=k.height-R,rt=k.height-R,Q=k.width/2-R/2,W=k.height/2-R/2,at={},G={};switch(u.value){case"translateTo":Object.assign(at,{translateTo:[$,A]}),Object.assign(G,{translateTo:[M,X]});break;case"translateXTo":Object.assign(at,{translateXTo:$}),Object.assign(G,{translateXTo:M});break;case"translateYTo":Object.assign(at,{translateYTo:A}),Object.assign(G,{translateYTo:X});break;case"translateZTo":Object.assign(at,{translateTo:[Q,W],translateZTo:D}),Object.assign(G,{translateTo:[Q,W],translateZTo:rt});break;case"translate3dTo":Object.assign(at,{translate3dTo:[Q-50,W-50,D]}),Object.assign(G,{translate3dTo:[Q+50,W+50,rt]});break;case"rotateTo":Object.assign(at,{translateTo:[Q,W],rotateTo:0}),Object.assign(G,{translateTo:[Q,W],rotateTo:360});break;case"rotateXTo":Object.assign(at,{translateTo:[Q,W],rotateXTo:0}),Object.assign(G,{translateTo:[Q,W],rotateXTo:180});break;case"rotateYTo":Object.assign(at,{translateTo:[Q,W],rotateYTo:0}),Object.assign(G,{translateTo:[Q,W],rotateYTo:180});break;case"rotateZTo":Object.assign(at,{translateTo:[Q,W],rotateZTo:0}),Object.assign(G,{translateTo:[Q,W],rotateZTo:360});break;case"rotate3dTo":Object.assign(at,{translateTo:[Q,W],rotate3dTo:[0,0,0]}),Object.assign(G,{translateTo:[Q,W],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(at,{translateTo:[Q,W],scaleTo:1}),Object.assign(G,{translateTo:[Q,W],scaleTo:3});break;case"scaleXTo":Object.assign(at,{translateTo:[Q,W],scaleXTo:1}),Object.assign(G,{translateTo:[Q,W],scaleXTo:3});break;case"scaleYTo":Object.assign(at,{translateTo:[Q,W],scaleYTo:1}),Object.assign(G,{translateTo:[Q,W],scaleYTo:3});break;case"scaleZTo":Object.assign(at,{translateTo:[Q,W],scaleZTo:1}),Object.assign(G,{translateTo:[Q,W],scaleZTo:3});break;case"scale3dTo":Object.assign(at,{translateTo:[Q,W],scale3dTo:[1,1,1]}),Object.assign(G,{translateTo:[Q,W],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(at,{translateTo:[Q,W],skewTo:0}),Object.assign(G,{translateTo:[Q,W],skewTo:30});break;case"skewXTo":Object.assign(at,{translateTo:[Q,W],skewXTo:0}),Object.assign(G,{translateTo:[Q,W],skewXTo:30});break;case"skewYTo":Object.assign(at,{translateTo:[Q,W],skewYTo:0}),Object.assign(G,{translateTo:[Q,W],skewYTo:30});break;case"perspective":Object.assign(at,{translateTo:[Q,W],perspective:0}),Object.assign(G,{translateTo:[Q,W],perspective:1e3});break}const j=new Fe({frameDuration:2e3});j.addTween(at,G,{easeFunction:e.easeFunction,onUpdate:gt=>{Id(l.value,by(l.value,gt))}}),j.play()}function ot(){return new Promise(R=>{a.value.getCanvas().then($=>{me.downloadFromSVGString($.ctx.toRawSVG().raw,"CanvasToSVG"),R()})})}return oe(()=>{}),t({}),(R,$)=>(L(),V(Vt,null,[E("div",zb,[ct(ae,{asyncClick:ot},{default:bt(()=>$[0]||($[0]=[Ht(" downloadFromCanvasToSVG ")])),_:1})]),E("div",Vb,[(L(),V(Vt,null,xe(m,A=>ct(ae,{key:A.type,item:A,onClick:A.onClick,stylePattern:c.value==A.type?"fullfilled":"outline"},{default:bt(()=>[Ht(yt(A.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),fo(E("div",null," 当前缓动函数:"+yt(e.easeName),513),[[qs,c.value=="AnimateToTweenCSS"]]),fo(E("div",Bb,[(L(),V(Vt,null,xe(_,A=>ct(ae,{key:A.type,item:A,onClick:A.onClick,stylePattern:u.value==A.type?"fullfilled":"outline"},{default:bt(()=>[Ht(yt(A.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[qs,c.value=="AnimateToTweenCSS"]]),fo(E("div",Yb,[E("div",Xb,[E("div",null,"stroke-dasharray: "+yt(w.value)+","+yt(w.value),1),ct(ko,{max:988,defaultValue:w.value,onChange:v},null,8,["defaultValue"])]),E("div",Gb,[E("div",null,"stroke-dashoffset: "+yt(x.value),1),ct(ko,{max:988,defaultValue:x.value,onChange:g},null,8,["defaultValue"])])],512),[[qs,c.value=="StrokeDash"]]),fo(E("div",Ub,[ct(Af,{ref_key:"svgRef",ref:o,bgColor:"#ffffff"},null,512)],512),[[qs,c.value!=="AnimateToTweenCSS"]]),fo(E("div",jb,[ct(je,{ref_key:"canvasRef",ref:a,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[qs,c.value!=="AnimateToTweenCSS"]]),fo(E("div",{ref_key:"tweenCSSContainerRef",ref:i,style:{height:"400px"},class:"css-area"},[E("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[qs,c.value=="AnimateToTweenCSS"]])],64))}}),Nf=it(Hb,[["styles",[`.btns[data-v-0155e0d3]{display:flex;flex-wrap:wrap}.btns[data-v-0155e0d3]>*{margin-right:10px;margin-bottom:10px}.sub-btns[data-v-0155e0d3]{padding-top:10px;background-color:#dbffff}.css-area[data-v-0155e0d3]{background-color:#fff}.tween-css-target[data-v-0155e0d3]{width:50px;height:50px;background-color:#cfc;background-color:#fcc;background-color:#ccf}
|
|
162
|
+
`]],["__scopeId","data-v-0155e0d3"]]),Wb=["fill"],Zb=["fill"],qb=q({__name:"SVGCheck.ce",props:{width:{default:"10px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("svg",{style:N(["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,Wb),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,Zb)],4))}}),Qb=it(qb,[["styles",[`svg[data-v-8fe3f9fd]{transform-origin:center}
|
|
163
|
+
`]],["__scopeId","data-v-8fe3f9fd"]]),Kb=q({__name:"SVGCleanUp.ce",props:{width:{default:"16px"},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("svg",{style:N(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},o[0]||(o[0]=[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),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),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)]),4))}}),Jb=it(Kb,[["styles",[`svg[data-v-7aebdea0]{transform-origin:center}
|
|
164
|
+
`]],["__scopeId","data-v-7aebdea0"]]),t_=["width","height"],e_=["fill"],s_=q({__name:"SVGDelete.ce",props:{width:{default:"16px"},height:{},color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("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,e_)],8,t_))}}),o_=it(s_,[["styles",[`svg[data-v-8745630f]{transform-origin:center}
|
|
165
|
+
`]],["__scopeId","data-v-8745630f"]]),r_=["width","height"],n_=["fill"],a_=q({__name:"SVGDown.ce",props:{width:{default:"1em"},height:{},color:{default:vt.colorGrayCC}},setup(s){const t=s;return(e,o)=>(L(),V("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[E("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,n_)],8,r_))}}),i_=it(a_,[["styles",[`svg[data-v-0e77f86d]{transform-origin:center}
|
|
166
|
+
`]],["__scopeId","data-v-0e77f86d"]]),l_={class:"svg"},c_=it(q({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin.ce",setup(s){return(t,e)=>(L(),V("svg",l_,e[0]||(e[0]=[Hc('<defs data-v-ba0e36ce><mask id="mask" maskContentUnits="objectBoundingBox" data-v-ba0e36ce><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-ba0e36ce></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-ba0e36ce></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-ba0e36ce></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-ba0e36ce></rect></mask></defs>',1)])))}}),[["styles",[`.svg[data-v-ba0e36ce]{position:absolute;width:0;height:0}
|
|
167
|
+
`]],["__scopeId","data-v-ba0e36ce"]]),u_={class:"loading-1"},d_=q({__name:"Loading1.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),V("div",u_,[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})]))}}),f_=it(d_,[["styles",[`.loading-1[data-v-f7deb691]{position:relative;display:block;overflow:hidden;width:100%;height:100%;text-align:center}.loading-1>div[data-v-f7deb691]{width:6px;height:100%;margin:auto 2px;display:inline-block;animation:stretchdelay-f7deb691 1.2s infinite ease-in-out}.loading-1 .rect2[data-v-f7deb691]{animation-delay:-1.1s}.loading-1 .rect3[data-v-f7deb691]{animation-delay:-1s}.loading-1 .rect4[data-v-f7deb691]{animation-delay:-.9s}.loading-1 .rect5[data-v-f7deb691]{animation-delay:-.8s}@keyframes stretchdelay-f7deb691{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}
|
|
168
|
+
`]],["__scopeId","data-v-f7deb691"]]),h_={class:"loading-2"},p_=q({__name:"Loading2.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),V("div",h_,[E("div",{class:"dot1",style:e}),E("div",{class:"dot2",style:e})]))}}),m_=it(p_,[["styles",[`.loading-2[data-v-945f5b2e]{position:relative;display:block;width:100%;height:100%;text-align:center;animation:rotate-945f5b2e 2s infinite linear}.dot1[data-v-945f5b2e],.dot2[data-v-945f5b2e]{width:60%;height:60%;display:inline-block;position:absolute;top:0;border-radius:100%;animation:bounce-945f5b2e 2s infinite ease-in-out}.dot2[data-v-945f5b2e]{top:auto;bottom:0;animation-delay:-1s}@keyframes rotate-945f5b2e{to{transform:rotate(360deg)}}@keyframes bounce-945f5b2e{0%,to{transform:scale(0)}50%{transform:scale(1)}}
|
|
169
|
+
`]],["__scopeId","data-v-945f5b2e"]]),g_=q({__name:"Loading3.ce",props:{fromColor:{default:vt.colorPrimary},toColor:{default:vt.colorRed}},setup(s){const t=s,e=`
|
|
154
170
|
@keyframes snake {
|
|
155
171
|
0% {
|
|
156
172
|
opacity: 0.3;
|
|
@@ -169,43 +185,43 @@ Expected function or array of functions, received type ${typeof o}.`),ye)}functi
|
|
|
169
185
|
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
170
186
|
}
|
|
171
187
|
}
|
|
172
|
-
`,
|
|
173
|
-
`]],["__scopeId","data-v-edc89186"]]),
|
|
174
|
-
`]],["__scopeId","data-v-b2b74418"]]),
|
|
175
|
-
`]],["__scopeId","data-v-2e49b1eb"]]),
|
|
176
|
-
`]],["__scopeId","data-v-0e771b32"]]),
|
|
188
|
+
`,o={backgroundColor:t.fromColor,width:"20%"},r=I();return St(r,()=>{r.value&&cs(e,r.value)}),vs(()=>{}),oe(()=>{}),(n,a)=>(L(),V("div",{class:"loading-3",ref_key:"loading3",ref:r},[E("div",{class:"dot",style:N({...o,left:"0"})},null,4),E("div",{class:"dot",style:N({...o,left:"20%"})},null,4),E("div",{class:"dot",style:N({...o,left:"40%"})},null,4),E("div",{class:"dot",style:N({...o,left:"60%"})},null,4),E("div",{class:"dot",style:N({...o,left:"80%"})},null,4)],512))}}),y_=it(g_,[["styles",[`.loading-3[data-v-edc89186]{position:relative;display:inline-block;width:100%;height:100%;text-align:center}.dot[data-v-edc89186]{display:inline-block;top:50%;transform:translateY(-50%);position:absolute;aspect-ratio:1 / 1;opacity:.5;border-radius:100%;animation:snake 1s infinite ease-in-out}.loading-3 div[data-v-edc89186]:nth-child(1){animation-delay:0s}.loading-3 div[data-v-edc89186]:nth-child(2){animation-delay:.2s}.loading-3 div[data-v-edc89186]:nth-child(3){animation-delay:.4s}.loading-3 div[data-v-edc89186]:nth-child(4){animation-delay:.6s}.loading-3 div[data-v-edc89186]:nth-child(5){animation-delay:.8s}
|
|
189
|
+
`]],["__scopeId","data-v-edc89186"]]),v_={class:"loading-4"},b_=q({__name:"Loading4.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),V("div",v_,[E("div",{class:"rect",style:e})]))}}),__=it(b_,[["styles",[`.loading-4[data-v-b2b74418]{position:relative;width:100%;height:100%;display:flex;justify-content:center;align-items:center;overflow:hidden;perspective:120px}.rect[data-v-b2b74418]{width:40%;aspect-ratio:1 / 1;animation:rotateplane-b2b74418 1.2s infinite ease-in-out}@keyframes rotateplane-b2b74418{0%{transform:perspective(120px) rotateX(0) rotateY(0)}50%{transform:perspective(120px) rotateX(-180deg) rotateY(0)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-180deg)}}
|
|
190
|
+
`]],["__scopeId","data-v-b2b74418"]]),x_={class:"loading-5"},w_=q({__name:"Loading5.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),V("div",x_,[E("div",{class:"cube1",style:e}),E("div",{class:"cube2",style:e})]))}}),k_=it(w_,[["styles",[`.loading-5[data-v-2e49b1eb]{position:relative;display:block;width:100%;height:100%}.cube1[data-v-2e49b1eb],.cube2[data-v-2e49b1eb]{width:40%;aspect-ratio:1 / 1;display:inline-block;position:absolute;top:10%;left:10%;transform:translate(-10%,-10%);animation:cubemove-2e49b1eb 1.8s infinite ease-in-out;transform-origin:center}.cube2[data-v-2e49b1eb]{animation-delay:-.9s}@keyframes cubemove-2e49b1eb{25%{transform:translate(42px) rotate(-90deg) scale(.5)}50%{transform:translate(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translate(42px) translateY(42px) rotate(-180deg)}75%{transform:translate(0) translateY(42px) rotate(-270deg) scale(.5)}to{transform:rotate(-360deg)}}
|
|
191
|
+
`]],["__scopeId","data-v-2e49b1eb"]]),C_={class:"loading-6"},T_=q({__name:"Loading6.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(o,r)=>(L(),V("div",C_,[E("div",{style:e}),E("div",{style:e}),E("div",{style:e})]))}}),S_=it(T_,[["styles",[`.loading-6[data-v-0e771b32]{position:relative;display:block;width:100%;height:100%}.loading-6>div[data-v-0e771b32]{border-radius:100%}.loading-6>div[data-v-0e771b32]:nth-child(2){animation-delay:-.4s}.loading-6>div[data-v-0e771b32]:nth-child(3){animation-delay:-.2s}.loading-6>div[data-v-0e771b32]{position:absolute;left:20%;top:20%;width:60%;aspect-ratio:1 / 1;opacity:0;margin:0;animation:loading-6-0e771b32 1s 0s linear infinite}@keyframes loading-6-0e771b32{0%{transform:scale(0);opacity:0}5%{opacity:1}to{transform:scale(1);opacity:0}}
|
|
192
|
+
`]],["__scopeId","data-v-0e771b32"]]),E_=q({__name:"Loading7.ce",props:{color:{default:vt.colorPrimary}},setup(s){const t=s,e=`
|
|
177
193
|
:root {
|
|
178
194
|
--loading-7-bg-color: ${t.color}
|
|
179
195
|
}
|
|
180
196
|
:host {
|
|
181
197
|
--loading-7-bg-color: ${t.color}
|
|
182
198
|
}
|
|
183
|
-
`,
|
|
184
|
-
`]],["__scopeId","data-v-bb5e2767"]]),
|
|
185
|
-
`]],["__scopeId","data-v-51a259a7"]]),
|
|
186
|
-
`]],["__scopeId","data-v-ee782ac8"]]),
|
|
187
|
-
`]],["__scopeId","data-v-984ad184"]]),
|
|
188
|
-
`]],["__scopeId","data-v-7fb118c9"]]),
|
|
189
|
-
`]],["__scopeId","data-v-1ee90a6e"]]),
|
|
199
|
+
`,o=I();return St(o,()=>{o.value&&cs(e,o.value)}),vs(()=>{}),oe(()=>{}),(r,n)=>(L(),V("div",{class:"loading-7",ref_key:"loading7",ref:o},n[0]||(n[0]=[E("div",null,null,-1)]),512))}}),P_=it(E_,[["styles",[`.loading-7[data-v-bb5e2767]{position:relative;display:block;width:100%;height:100%}.loading-7>div[data-v-bb5e2767]{width:50%;height:50%;margin:auto;position:absolute;inset:0}.loading-7>div[data-v-bb5e2767]:before{content:"";width:100%;height:5px;box-sizing:border-box;background:#000;opacity:.1;position:absolute;top:calc(100% + 5px);left:0;border-radius:50%;animation:shadow-bb5e2767 .5s linear infinite}.loading-7>div[data-v-bb5e2767]:after{content:"";width:100%;height:100%;animation:animate-bb5e2767 .5s linear infinite;position:absolute;inset:0;border-radius:3px;background-color:var(--loading-7-bg-color)}@keyframes animate-bb5e2767{17%{border-bottom-right-radius:3px}25%{transform:translateY(9px) rotate(22.5deg)}50%{transform:translateY(18px) scaleY(.9) rotate(45deg);border-bottom-right-radius:40px}75%{transform:translateY(9px) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes shadow-bb5e2767{0%,to{transform:scale(1)}50%{transform:scaleX(1.2)}}
|
|
200
|
+
`]],["__scopeId","data-v-bb5e2767"]]),O_={class:"loading-8"},R_={viewBox:"25 25 50 50"},I_=q({__name:"Loading8.ce",props:{color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("div",O_,[(L(),V("svg",R_,[E("circle",{cx:"50",cy:"50",r:"20",style:N(["stroke: "+t.color])},null,4)]))]))}}),Mf=it(I_,[["styles",[`.loading-8[data-v-51a259a7]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-8 svg[data-v-51a259a7]{transform-origin:center;animation:rotate-51a259a7 2s linear infinite;width:50%;aspect-ratio:1 / 1}.loading-8 circle[data-v-51a259a7]{fill:none;stroke-width:3;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round;animation:dash-51a259a7 1.5s ease-in-out infinite}@keyframes rotate-51a259a7{to{transform:rotate(360deg)}}@keyframes dash-51a259a7{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}to{stroke-dashoffset:-125px}}
|
|
201
|
+
`]],["__scopeId","data-v-51a259a7"]]),F_={class:"loading-9"},D_=q({__name:"Loading9.ce",props:{color:{default:vt.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(o,r)=>(L(),V("div",F_,[E("div",{style:e})]))}}),$_=it(D_,[["styles",[`.loading-9[data-v-ee782ac8]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-9 div[data-v-ee782ac8]{width:50%;aspect-ratio:1 / 1;border:3px solid rgba(0,0,0,.1);border-radius:50%;animation:spin-ee782ac8 1s linear infinite}@keyframes spin-ee782ac8{to{transform:rotate(360deg)}}
|
|
202
|
+
`]],["__scopeId","data-v-ee782ac8"]]),L_={class:"loading-10"},A_={viewBox:"0 0 50 50"},N_=q({__name:"Loading10.ce",props:{color:{default:vt.colorPrimary}},setup(s){const t=s;return(e,o)=>(L(),V("div",L_,[(L(),V("svg",A_,[o[0]||(o[0]=E("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:N(["stroke: rgba(0,0,0,0.1)"])},null,-1)),E("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:N(["fill: "+t.color])},null,4)]))]))}}),M_=it(N_,[["styles",[`.loading-10[data-v-984ad184]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-10 svg[data-v-984ad184]{width:50%;aspect-ratio:1 / 1;transform-origin:center;animation:1.5s spin-984ad184 ease infinite}.ring[data-v-984ad184]{fill:none;stroke-width:2}.ball[data-v-984ad184]{stroke:none}@keyframes spin-984ad184{to{transform:rotate(360deg)}}
|
|
203
|
+
`]],["__scopeId","data-v-984ad184"]]),z_={class:"loading-11",ref:"loading11"},V_={class:"container container-1"},B_={class:"container container-2"},Y_={class:"container container-3"},X_=q({__name:"Loading11.ce",props:{color:{default:vt.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,o)=>(L(),V("div",z_,[E("div",{class:"loading-11-inner",style:N({width:t.width,height:t.width})},[E("div",V_,[E("div",{class:"dot dot-1",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:N({backgroundColor:t.color})},null,4)]),E("div",B_,[E("div",{class:"dot dot-1",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:N({backgroundColor:t.color})},null,4)]),E("div",Y_,[E("div",{class:"dot dot-1",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-2",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-3",style:N({backgroundColor:t.color})},null,4),E("div",{class:"dot dot-4",style:N({backgroundColor:t.color})},null,4)])],4)],512))}}),zf=it(X_,[["styles",[`.loading-11[data-v-7fb118c9]{position:relative;display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.loading-11-inner[data-v-7fb118c9]{position:relative}.loading-11-inner .container[data-v-7fb118c9]{position:absolute;width:100%;height:100%}.loading-11-inner .container .dot[data-v-7fb118c9]{width:20%;height:20%;border-radius:100%;position:absolute;animation:bouncedelay-7fb118c9 1.2s infinite ease-in-out;animation-fill-mode:both}.loading-11-inner .container .dot-1[data-v-7fb118c9]{top:0;left:0}.loading-11-inner .container .dot-2[data-v-7fb118c9]{top:0;right:0}.loading-11-inner .container .dot-3[data-v-7fb118c9]{right:0;bottom:0}.loading-11-inner .container .dot-4[data-v-7fb118c9]{left:0;bottom:0}.loading-11-inner .container-1 .dot-2[data-v-7fb118c9]{animation-delay:-.9s}.loading-11-inner .container-1 .dot-3[data-v-7fb118c9]{animation-delay:-.6s}.loading-11-inner .container-1 .dot-4[data-v-7fb118c9]{animation-delay:-.3s}.loading-11-inner .container-2[data-v-7fb118c9]{transform:rotate(45deg)}.loading-11-inner .container-2 .dot-1[data-v-7fb118c9]{animation-delay:-1.1s}.loading-11-inner .container-2 .dot-2[data-v-7fb118c9]{animation-delay:-.8s}.loading-11-inner .container-2 .dot-3[data-v-7fb118c9]{animation-delay:-.5s}.loading-11-inner .container-2 .dot-4[data-v-7fb118c9]{animation-delay:-.2s}.loading-11-inner .container-3[data-v-7fb118c9]{transform:rotate(90deg)}.loading-11-inner .container-3 .dot-1[data-v-7fb118c9]{animation-delay:-1s}.loading-11-inner .container-3 .dot-2[data-v-7fb118c9]{animation-delay:-.7s}.loading-11-inner .container-3 .dot-3[data-v-7fb118c9]{animation-delay:-.4s}.loading-11-inner .container-3 .dot-4[data-v-7fb118c9]{animation-delay:-.1s}@keyframes bouncedelay-7fb118c9{0%,80%,to{transform:scale(.3)}40%{transform:scale(1)}}
|
|
204
|
+
`]],["__scopeId","data-v-7fb118c9"]]),G_={class:"face front"},U_={class:"face back"},j_=it(q({customOptions:{},inheritAttrs:!0,__name:"CardFlip.ce",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=I(!1),a=()=>{n.value=!n.value,r("click",n.value)};return t({}),(i,l)=>(L(),V("div",{class:"card-flip-scene",style:N({perspective:o.perspective})},[E("div",{class:se(["card",[o.type,{flip:n.value}]]),style:N({transition:`transform ${o.dur}ms`}),onClick:a},[E("div",G_,[kt(i.$slots,"front",{},()=>[l[0]||(l[0]=Ht("front"))],!0)]),E("div",U_,[kt(i.$slots,"back",{},()=>[l[1]||(l[1]=Ht("back"))],!0)])],6)],4))}}),[["styles",[`.card-flip-scene[data-v-1ee90a6e]{width:100%;height:100%;cursor:pointer}.card[data-v-1ee90a6e]{width:100%;height:100%;position:relative;transform-style:preserve-3d}.card.slide[data-v-1ee90a6e]{transform-origin:center right}.card.flip[data-v-1ee90a6e]{transform:rotateY(180deg)}.card.slide.flip[data-v-1ee90a6e]{transform:translate(-100%) rotateY(-180deg)}.face[data-v-1ee90a6e]{position:absolute;height:100%;width:100%;backface-visibility:hidden}.face[data-v-1ee90a6e]>:nth-child(1){display:block;width:100%;height:100%}.back[data-v-1ee90a6e]{transform:rotateY(180deg)}
|
|
205
|
+
`]],["__scopeId","data-v-1ee90a6e"]]),H_=q({customOptions:{BooleanBox:eo},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{default:0},isRounded:{type:Boolean,default:!0},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,o=t,r=I([]),n=(l,c)=>{l&&(r.value[c]=l)};let a=I(e.initIndex);const i=(l,c)=>{a.value!==l?(r.value[a.value].toggleValue(),c&&(a.value=l,o("change",e.options[a.value]))):c||r.value[a.value].setValue(!0)};return(l,c)=>(L(!0),V(Vt,null,xe(l.options,(u,d)=>(L(),V("div",{class:"radio-group",key:d,style:N(["margin-left:"+(d>0?e.itemPadding:0)])},[ct(eo,{ref_for:!0,ref:h=>n(h,d),selected:Ct(a)==d,disabled:l.disabledIndexs&&l.disabledIndexs.findIndex(h=>h===d)>=0,isRounded:e.isRounded,label:u,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:h=>i(d,h)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),Rw="",Vf=it(H_,[["__scopeId","data-v-308d559c"]]),W_=q({customOptions:{BooleanBox:eo},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,o=t;let r=Kt(e.initIndexs??[]);const n=(a,i)=>{const l=r.findIndex(u=>u===a);let c=!1;l>=0&&!i?(r.splice(l,1),c=!0):l<0&&i&&(r.push(a),c=!0),c&&o("change",r.map(u=>e.options[u]))};return(a,i)=>(L(!0),V(Vt,null,xe(a.options,(l,c)=>(L(),V("div",{class:"checkbox-group",key:c,style:N(["margin-left:"+(c>0?e.itemPadding:0)])},[ct(eo,{selected:Ct(r).findIndex(u=>u===c)>=0,disabled:a.disabledIndexs&&a.disabledIndexs.findIndex(u=>u===c)>=0,isRounded:e.isRounded,label:l,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:u=>n(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),Iw="",ul=it(W_,[["__scopeId","data-v-4c28fda3"]]),Bf=it(q({customOptions:{RadioGroup:Vf,CheckboxGroup:ul,InputRange:ko},inheritAttrs:!0,__name:"Cube.ce",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const o=s,r=I(Math.floor(o.width/2)),n=`
|
|
190
206
|
:root {
|
|
191
207
|
--spin-cube-z: -${r.value}px;
|
|
192
208
|
}
|
|
193
209
|
:host {
|
|
194
210
|
--spin-cube-z: -${r.value}px;
|
|
195
211
|
}
|
|
196
|
-
`,a=
|
|
197
|
-
`]],["__scopeId","data-v-d77b4117"]]),
|
|
198
|
-
`]],["__scopeId","data-v-57b7fa75"]]),L_={key:0},N_={key:1},wo=10,Yo=4,$d=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"RingText.ce",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(o,{expose:t}){const e=o,s=R(0),r=(n,a)=>{s.value=Math.floor(Math.min(n,a))};return t({}),(n,a)=>(L(),Nt(wt,{onResize:r,type:"full"},{default:bt(()=>[E("div",{class:"ring",style:M({width:s.value+"px",height:s.value+"px",padding:wo+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[E("div",{class:"ring-rotate",style:M({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${s.value/2-wo-Yo}px, #000 ${s.value/2-wo-Yo}px)`})},a[0]||(a[0]=[E("div",{class:"left"},null,-1),E("div",{class:"right"},null,-1)]),4),E("div",{class:"ring-content",style:M({top:wo+Yo+"px",left:wo+Yo+"px",width:s.value-(wo+Yo)*2+"px",height:s.value-(wo+Yo)*2+"px"})},[e.text?(L(),V("div",L_,yt(e.text),1)):Rt("",!0),e.secondText?(L(),V("div",N_,yt(e.secondText),1)):Rt("",!0)],4)],4)]),_:1}))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutRight{to{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipInLeft{0%{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipOutLeft{to{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipInRight{0%{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipOutTop{to{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes flipInBottom{0%{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipOutBottom{to{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipInTop{0%{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes rotateFall{0%{transform:rotate(0)}20%{transform:rotate(10deg);animation-timing-function:ease-out}40%{transform:rotate(17deg)}60%{transform:rotate(16deg)}to{transform:translateY(100%) rotate(17deg)}}@keyframes rotateOutNewspaper{to{transform:translateZ(-3000px) rotate(360deg);opacity:0}}@keyframes rotateInNewspaper{0%{transform:translateZ(-3000px) rotate(-360deg);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}@keyframes rotateRightSideFirst{40%{transform:rotateY(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateLeftSideFirst{40%{transform:rotateY(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateTopSideFirst{40%{transform:rotateX(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateBottomSideFirst{40%{transform:rotateX(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotatePushLeft{to{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePushRight{to{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePushTop{to{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePushBottom{to{opacity:0;transform:rotateX(90deg)}}@keyframes rotatePullRight{0%{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePullLeft{0%{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePullTop{0%{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePullBottom{0%{opacity:0;transform:rotateX(90deg)}}@keyframes rotateFoldRight{to{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateFoldLeft{to{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateFoldTop{to{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateFoldBottom{to{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateUnfoldLeft{0%{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateUnfoldRight{0%{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateUnfoldTop{0%{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateUnfoldBottom{0%{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes moveToLeft{to{transform:translate(-100%)}}@keyframes moveFromLeft{0%{transform:translate(-100%)}}@keyframes moveToRight{to{transform:translate(100%)}}@keyframes moveFromRight{0%{transform:translate(100%)}}@keyframes moveToTop{to{transform:translateY(-100%)}}@keyframes moveFromTop{0%{transform:translateY(-100%)}}@keyframes moveToBottom{to{transform:translateY(100%)}}@keyframes moveFromBottom{0%{transform:translateY(100%)}}@keyframes fade{to{opacity:.3}}@keyframes moveToLeftFade{to{opacity:.3;transform:translate(-100%)}}@keyframes moveFromLeftFade{0%{opacity:.3;transform:translate(-100%)}}@keyframes moveToRightFade{to{opacity:.3;transform:translate(100%)}}@keyframes moveFromRightFade{0%{opacity:.3;transform:translate(100%)}}@keyframes moveToTopFade{to{opacity:.3;transform:translateY(-100%)}}@keyframes moveFromTopFade{0%{opacity:.3;transform:translateY(-100%)}}@keyframes moveToBottomFade{to{opacity:.3;transform:translateY(100%)}}@keyframes moveFromBottomFade{0%{opacity:.3;transform:translateY(100%)}}@keyframes scaleToSmall{to{opacity:0;transform:scale(.8)}}@keyframes scaleFromSmall{0%{opacity:0;transform:scale(.8)}}@keyframes scaleFromLarge{0%{opacity:0;transform:scale(1.2)}}@keyframes scaleToLarge{to{opacity:0;transform:scale(1.2)}}@keyframes scaleToSmallCenter{to{opacity:0;transform:scale(.7)}}@keyframes scaleFromSmallCenter{0%{opacity:0;transform:scale(.7)}}@keyframes rotateRoomLeftOut{to{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightOut{to{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomTopOut{to{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateRoomTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomOut{to{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateCubeLeftOut{50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}to{opacity:.3;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateCubeLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(90deg)}50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}}@keyframes rotateCubeRightOut{50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}to{opacity:.3;transform:translate(100%) rotateY(90deg)}}@keyframes rotateCubeRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(-90deg)}50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}}@keyframes rotateCubeTopOut{50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}to{opacity:.3;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateCubeTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(-90deg)}50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}}@keyframes rotateCubeBottomOut{50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}to{opacity:.3;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateCubeBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(90deg)}50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}}@keyframes rotateCarouselLeftOut{to{opacity:.3;transform:translate(-150%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselLeftIn{0%{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightOut{to{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightIn{0%{opacity:.3;transform:translate(-200%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselTopOut{to{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateCarouselTopIn{0%{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomOut{to{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomIn{0%{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateSidesOut{to{opacity:0;transform:translateZ(-500px) rotateY(90deg)}}@keyframes rotateSidesIn{0%{opacity:0;transform:translateZ(-500px) rotateY(-90deg)}}@keyframes rotateSlideOut{25%{opacity:.5;transform:translateZ(-500px)}75%{opacity:.5;transform:translateZ(-500px) translate(-200%)}to{opacity:.5;transform:translateZ(-500px) translate(-200%)}}@keyframes rotateSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translate(200%)}75%{opacity:.5;transform:translateZ(-500px)}to{opacity:1;transform:translateZ(0) translate(0)}}@keyframes superRainbow{0%{background:red}20%{background:orange}40%{background:yellow}60%{background:green}80%{background:blue}to{background:violet}}.superRainbow{background-position:0 0;background-size:200% 100%;background-image:linear-gradient(90deg,red,orange,yellow,green,blue,violet)}.superRainbow:hover{background-position:-100% 100%}@keyframes statusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}
|
|
212
|
+
`,a=I();St(a,()=>{a.value&&cs(n,a.value)});const i=I(o.perspective+"px"),l=m=>{i.value=m==2e3?"none":m+"px"},c=I("50%"),u=m=>{c.value=m+"%"},d=I("50%"),h=m=>{d.value=m+"%"},p=`translateZ(-${r.value}px)`,f=I(p),b=m=>{switch(m){case"front":f.value=p+" rotateY(0deg)";break;case"right":f.value=p+" rotateY(-90deg)";break;case"back":f.value=p+" rotateY(-180deg)";break;case"left":f.value=p+" rotateY(90deg)";break;case"top":f.value=p+" rotateX(-90deg)";break;case"bottom":f.value=p+" rotateX(90deg)";break;default:f.value=p;break}},w=I(!1),x=m=>{m.length?w.value=!0:w.value=!1},v=I("visible"),g=m=>{m.length?v.value="visible":v.value="hidden"};return t({}),(m,_)=>(L(),V("div",{ref_key:"container",ref:a},[E("div",{class:"cube-scene",style:N({width:`${o.width}px`,height:`${o.height}px`,perspective:`${i.value}`,perspectiveOrigin:`${c.value} ${d.value}`})},[E("div",{class:se(["cube",{spinning:w.value}]),style:N({transformStyle:"preserve-3d",transform:f.value,transition:`transform ${o.dur}ms`})},[E("div",{class:"face front",style:N({transform:`rotateY(0deg) translateZ(${r.value}px)`,backfaceVisibility:v.value})},[kt(m.$slots,"front",{},()=>[_[0]||(_[0]=Ht("front"))],!0)],4),E("div",{class:"face back",style:N({transform:`rotateY(180deg) translateZ(${r.value}px)`,backfaceVisibility:v.value})},[kt(m.$slots,"back",{},()=>[_[1]||(_[1]=Ht("back"))],!0)],4),E("div",{class:"face right",style:N({transform:`rotateY(90deg) translateZ(${r.value}px)`,backfaceVisibility:v.value})},[kt(m.$slots,"right",{},()=>[_[2]||(_[2]=Ht("right"))],!0)],4),E("div",{class:"face left",style:N({transform:`rotateY(-90deg) translateZ(${r.value}px)`,backfaceVisibility:v.value})},[kt(m.$slots,"left",{},()=>[_[3]||(_[3]=Ht("left"))],!0)],4),E("div",{class:"face top",style:N({transform:`rotateX(90deg) translateZ(${r.value}px)`,backfaceVisibility:v.value})},[kt(m.$slots,"top",{},()=>[_[4]||(_[4]=Ht("top"))],!0)],4),E("div",{class:"face bottom",style:N({transform:`rotateX(-90deg) translateZ(${r.value}px)`,backfaceVisibility:v.value})},[kt(m.$slots,"bottom",{},()=>[_[5]||(_[5]=Ht("bottom"))],!0)],4)],6)],4),E("div",null,[ct(Vf,{options:["front","right","back","left","top","bottom"],onChange:b})]),E("div",null,[ct(ul,{options:["Backface visible"],onChange:g})]),E("div",null,[ct(ul,{options:["spin cube"],onChange:x})]),E("div",null,[_[6]||(_[6]=Ht(" perspective: ")),ct(ko,{min:1,max:2e3,defaultValue:o.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),E("div",null,[_[7]||(_[7]=Ht(" perspective-origin x: ")),ct(ko,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),E("div",null,[_[8]||(_[8]=Ht(" perspective-origin y: ")),ct(ko,{min:0,max:100,defaultValue:50,unit:"%",onChange:h})])],512))}}),[["styles",[`.cube[data-v-d77b4117]{position:relative;width:100%;height:100%}.face[data-v-d77b4117]{position:absolute;width:100%;height:100%}.front[data-v-d77b4117]{background:hsla(0,100%,50%,.7)}.right[data-v-d77b4117]{background:hsla(60,100%,50%,.7)}.back[data-v-d77b4117]{background:hsla(120,100%,50%,.7)}.left[data-v-d77b4117]{background:hsla(180,100%,50%,.7)}.top[data-v-d77b4117]{background:hsla(240,100%,50%,.7)}.bottom[data-v-d77b4117]{background:hsla(300,100%,50%,.7)}.spinning[data-v-d77b4117]{animation:spinCube-d77b4117 8s infinite ease-in-out}@keyframes spinCube-d77b4117{0%{transform:translateZ(var(--spin-cube-z)) rotateX(0) rotateY(0)}to{transform:translateZ(var(--spin-cube-z)) rotateX(360deg) rotateY(360deg)}}
|
|
213
|
+
`]],["__scopeId","data-v-d77b4117"]]),Z_={class:"ring-indicator"},q_={class:"ring-text"},Yf=it(q({customOptions:{Canvas:je},inheritAttrs:!0,__name:"RingIndicator.ce",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let o=I(0);const r=qg(()=>{const c=le(Math.floor(e.percent),0,100);return o.value<c?o.value=Math.min(o.value+1,c):o.value>c&&(o.value=Math.max(o.value-1,c)),Te(o.value/100,2)},20),n=I(0),a=I(0),i=(c,u)=>{n.value=c,a.value=u},l=I();return St(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new jd({width:n.value,height:a.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});ce(()=>(c.ctx.clearRect(),u.setPercent(r()),c.draw(u),!0))})}),t({}),(c,u)=>(L(),V("div",Z_,[ct(je,{ref_key:"canvasRef",ref:l,onResize:i},null,512),E("div",q_,[E("span",null,yt(Ct(o)),1),u[0]||(u[0]=E("span",null,"%",-1))])]))}}),[["styles",[`.ring-indicator[data-v-57b7fa75]{position:relative;width:100%;height:100%}.ring-text[data-v-57b7fa75]{position:absolute;bottom:0;left:0;width:100%;text-align:center;font-family:D-DINExp;color:#333;padding-bottom:20px}.ring-text>span[data-v-57b7fa75]:nth-child(1){font-size:64px}.ring-text>span[data-v-57b7fa75]:nth-child(2){font-size:20px}
|
|
214
|
+
`]],["__scopeId","data-v-57b7fa75"]]),Q_={key:0},K_={key:1},Co=10,Go=4,Xf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"RingText.ce",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,o=I(0),r=(n,a)=>{o.value=Math.floor(Math.min(n,a))};return t({}),(n,a)=>(L(),Lt(wt,{onResize:r,type:"full"},{default:bt(()=>[E("div",{class:"ring",style:N({width:o.value+"px",height:o.value+"px",padding:Co+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[E("div",{class:"ring-rotate",style:N({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${o.value/2-Co-Go}px, #000 ${o.value/2-Co-Go}px)`})},a[0]||(a[0]=[E("div",{class:"left"},null,-1),E("div",{class:"right"},null,-1)]),4),E("div",{class:"ring-content",style:N({top:Co+Go+"px",left:Co+Go+"px",width:o.value-(Co+Go)*2+"px",height:o.value-(Co+Go)*2+"px"})},[e.text?(L(),V("div",Q_,yt(e.text),1)):Rt("",!0),e.secondText?(L(),V("div",K_,yt(e.secondText),1)):Rt("",!0)],4)],4)]),_:1}))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutRight{to{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipInLeft{0%{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipOutLeft{to{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipInRight{0%{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipOutTop{to{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes flipInBottom{0%{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipOutBottom{to{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipInTop{0%{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes rotateFall{0%{transform:rotate(0)}20%{transform:rotate(10deg);animation-timing-function:ease-out}40%{transform:rotate(17deg)}60%{transform:rotate(16deg)}to{transform:translateY(100%) rotate(17deg)}}@keyframes rotateOutNewspaper{to{transform:translateZ(-3000px) rotate(360deg);opacity:0}}@keyframes rotateInNewspaper{0%{transform:translateZ(-3000px) rotate(-360deg);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}@keyframes rotateRightSideFirst{40%{transform:rotateY(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateLeftSideFirst{40%{transform:rotateY(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateTopSideFirst{40%{transform:rotateX(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateBottomSideFirst{40%{transform:rotateX(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotatePushLeft{to{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePushRight{to{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePushTop{to{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePushBottom{to{opacity:0;transform:rotateX(90deg)}}@keyframes rotatePullRight{0%{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePullLeft{0%{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePullTop{0%{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePullBottom{0%{opacity:0;transform:rotateX(90deg)}}@keyframes rotateFoldRight{to{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateFoldLeft{to{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateFoldTop{to{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateFoldBottom{to{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateUnfoldLeft{0%{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateUnfoldRight{0%{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateUnfoldTop{0%{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateUnfoldBottom{0%{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes moveToLeft{to{transform:translate(-100%)}}@keyframes moveFromLeft{0%{transform:translate(-100%)}}@keyframes moveToRight{to{transform:translate(100%)}}@keyframes moveFromRight{0%{transform:translate(100%)}}@keyframes moveToTop{to{transform:translateY(-100%)}}@keyframes moveFromTop{0%{transform:translateY(-100%)}}@keyframes moveToBottom{to{transform:translateY(100%)}}@keyframes moveFromBottom{0%{transform:translateY(100%)}}@keyframes fade{to{opacity:.3}}@keyframes moveToLeftFade{to{opacity:.3;transform:translate(-100%)}}@keyframes moveFromLeftFade{0%{opacity:.3;transform:translate(-100%)}}@keyframes moveToRightFade{to{opacity:.3;transform:translate(100%)}}@keyframes moveFromRightFade{0%{opacity:.3;transform:translate(100%)}}@keyframes moveToTopFade{to{opacity:.3;transform:translateY(-100%)}}@keyframes moveFromTopFade{0%{opacity:.3;transform:translateY(-100%)}}@keyframes moveToBottomFade{to{opacity:.3;transform:translateY(100%)}}@keyframes moveFromBottomFade{0%{opacity:.3;transform:translateY(100%)}}@keyframes scaleToSmall{to{opacity:0;transform:scale(.8)}}@keyframes scaleFromSmall{0%{opacity:0;transform:scale(.8)}}@keyframes scaleFromLarge{0%{opacity:0;transform:scale(1.2)}}@keyframes scaleToLarge{to{opacity:0;transform:scale(1.2)}}@keyframes scaleToSmallCenter{to{opacity:0;transform:scale(.7)}}@keyframes scaleFromSmallCenter{0%{opacity:0;transform:scale(.7)}}@keyframes rotateRoomLeftOut{to{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightOut{to{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomTopOut{to{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateRoomTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomOut{to{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateCubeLeftOut{50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}to{opacity:.3;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateCubeLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(90deg)}50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}}@keyframes rotateCubeRightOut{50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}to{opacity:.3;transform:translate(100%) rotateY(90deg)}}@keyframes rotateCubeRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(-90deg)}50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}}@keyframes rotateCubeTopOut{50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}to{opacity:.3;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateCubeTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(-90deg)}50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}}@keyframes rotateCubeBottomOut{50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}to{opacity:.3;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateCubeBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(90deg)}50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}}@keyframes rotateCarouselLeftOut{to{opacity:.3;transform:translate(-150%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselLeftIn{0%{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightOut{to{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightIn{0%{opacity:.3;transform:translate(-200%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselTopOut{to{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateCarouselTopIn{0%{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomOut{to{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomIn{0%{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateSidesOut{to{opacity:0;transform:translateZ(-500px) rotateY(90deg)}}@keyframes rotateSidesIn{0%{opacity:0;transform:translateZ(-500px) rotateY(-90deg)}}@keyframes rotateSlideOut{25%{opacity:.5;transform:translateZ(-500px)}75%{opacity:.5;transform:translateZ(-500px) translate(-200%)}to{opacity:.5;transform:translateZ(-500px) translate(-200%)}}@keyframes rotateSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translate(200%)}75%{opacity:.5;transform:translateZ(-500px)}to{opacity:1;transform:translateZ(0) translate(0)}}@keyframes superRainbow{0%{background:red}20%{background:orange}40%{background:yellow}60%{background:green}80%{background:blue}to{background:violet}}.superRainbow{background-position:0 0;background-size:200% 100%;background-image:linear-gradient(90deg,red,orange,yellow,green,blue,violet)}.superRainbow:hover{background-position:-100% 100%}@keyframes statusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}
|
|
199
215
|
`,`.ring[data-v-8b4a3cb1]{position:relative;display:block;margin:0 auto;border-radius:50%;overflow:hidden;box-sizing:border-box}.ring-rotate[data-v-8b4a3cb1]{width:100%;height:100%;position:relative;overflow:hidden;box-sizing:border-box;border-radius:50%}.ring-content[data-v-8b4a3cb1]{position:absolute;overflow:hidden;box-sizing:border-box;border-radius:50%;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.ring-content>div[data-v-8b4a3cb1]:nth-child(1){font-size:20px;font-weight:700}.ring-content>div[data-v-8b4a3cb1]:nth-child(2){font-size:14px;margin-top:6px}.left[data-v-8b4a3cb1],.right[data-v-8b4a3cb1]{position:absolute;top:0;width:50%;height:100%;z-index:0}.left[data-v-8b4a3cb1]{left:0;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.5))}.right[data-v-8b4a3cb1]{right:0;background:linear-gradient(180deg,rgba(255,255,255,1),rgba(255,255,255,.5))}
|
|
200
|
-
`]],["__scopeId","data-v-8b4a3cb1"]]),
|
|
216
|
+
`]],["__scopeId","data-v-8b4a3cb1"]]),Gf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"ClockFlipper.ce",props:{startTime:{default:"00:00:00"},initStart:{type:Boolean,default:!0},creaseType:{default:"increase"},flipDirection:{default:"down"},dur:{default:800},bgColor:{default:"#5a82f0"},textColor:{default:"#ffffff"},borderRadius:{default:8},gap:{default:1},perspective:{default:400}},setup(s,{expose:t}){const e=s,o=I(),r=I(40),n=I(20),a=I(20),i=(x,v)=>{r.value=Math.floor(x/(6+1)),n.value=Math.floor(v),a.value=Math.max(12,n.value)},l=()=>{e.initStart&&b(e.startTime)};let c;const u=()=>{c?.()},d=Kt([0,0,0,0,0,0]),h=Kt([0,0,0,0,0,0]),p=[0,0,0,0,0,0];let f=0;const b=x=>{x&&(P0(E0(x),p),p.forEach((v,g)=>{d[g]=v,h[g]=v})),u(),f=0,w(pe(),0,!1),c=Zg((v,g,m)=>{w(v,g,m)},1e3)},w=(x,v,g)=>{if(g)f=v;else{if(f>0){p.forEach((_,k)=>{d[k]=_,h[k]=_});const m=f+1;e.creaseType=="increase"?(oi(d,m),oi(h,m+1)):(ri(d,m),ri(h,m+1)),f=0}else e.creaseType=="increase"?oi(h,1):ri(h,1);Ci(()=>{h.forEach((m,_)=>{d[_]=m})},e.dur)}};return t({start:b,pause:u}),(x,v)=>(L(),Lt(wt,{ref_key:"containerRef",ref:o,type:"full",overflow:"visible","style-sheets":{"--yz-clock-flipper-bg-color":e.bgColor,"--yz-clock-flipper-text-color":e.textColor,"--yz-clock-flipper-border-radius":e.borderRadius+"px","--yz-clock-flipper-gap":e.gap+"px","--yz-clock-flipper-gap-double":e.gap*2+"px","--yz-clock-flipper-gap-four":e.gap*4+"px","--yz-clock-flipper-animation-duration":e.dur+"ms","--yz-clock-flipper-perspective":e.perspective+"px"},onResize:i,onReady:l},{default:bt(()=>[E("div",{class:"clock-flipper",style:N({fontSize:a.value+"px",lineHeight:n.value+"px"})},[(L(!0),V(Vt,null,xe(d,(g,m)=>(L(),V(Vt,{key:m},[E("div",{class:se(["flip",[e.flipDirection,h[m]!=g?"go":""]]),style:N({width:r.value+"px"})},[E("div",{class:se(["front digital",[`flipper_${m}`,`number_${g}`]])},null,2),E("div",{class:se(["back digital",[`number_${h[m]}`]])},null,2)],6),m==1||m==3?(L(),V("div",{key:0,class:"gap",style:N({fontSize:Math.floor(a.value*.6)+"px",lineHeight:0})}," : ",4)):Rt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),[["styles",[`@keyframes frontFlipDown{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}}@keyframes backFlipDown{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}}@keyframes frontFlipUp{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}}@keyframes backFlipUp{0%{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}to{transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(0)}}
|
|
201
217
|
`,`.clock-flipper[data-v-0a7bd62f]{position:relative;margin:0 auto;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;align-items:center;text-align:center;height:100%;font-family:D-DINCondensed-number}.flip[data-v-0a7bd62f]{position:relative;height:100%;box-sizing:border-box;color:var(--yz-clock-flipper-text-color)}.flip+.flip[data-v-0a7bd62f]{margin-left:var(--yz-clock-flipper-gap-double)}.flip.down .front[data-v-0a7bd62f]:after,.flip.down .back[data-v-0a7bd62f]:before{z-index:1}.flip.down .front[data-v-0a7bd62f]:before{z-index:3}.flip.down .back[data-v-0a7bd62f]:after{z-index:2;transform-origin:50% 0%;transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(180deg)}.flip.down.go .front[data-v-0a7bd62f]:before{transform-origin:50% 100%;animation:frontFlipDown var(--yz-clock-flipper-animation-duration) ease-in-out both;backface-visibility:hidden;box-shadow:0 -2px 6px #ffffff4d}.flip.down.go .back[data-v-0a7bd62f]:after{animation:backFlipDown var(--yz-clock-flipper-animation-duration) ease-in-out both}.flip.up .front[data-v-0a7bd62f]:before,.flip.up .back[data-v-0a7bd62f]:after{z-index:1}.flip.up .front[data-v-0a7bd62f]:after{z-index:3}.flip.up .back[data-v-0a7bd62f]:before{z-index:2;transform-origin:50% 100%;transform:perspective(var(--yz-clock-flipper-perspective)) rotateX(-180deg)}.flip.up.go .front[data-v-0a7bd62f]:after{transform-origin:50% 0;animation:frontFlipUp var(--yz-clock-flipper-animation-duration) ease-in-out both;backface-visibility:hidden;box-shadow:0 -2px 6px #ffffff4d}.flip.up.go .back[data-v-0a7bd62f]:before{animation:backFlipUp var(--yz-clock-flipper-animation-duration) ease-in-out both}.gap[data-v-0a7bd62f]{margin:0 var(--yz-clock-flipper-gap-four);color:var(--yz-clock-flipper-bg-color)}.digital[data-v-0a7bd62f]:before,.digital[data-v-0a7bd62f]:after{content:"";position:absolute;left:0;right:0;height:50%;box-sizing:border-box;background:var(--yz-clock-flipper-bg-color);overflow:hidden}.digital[data-v-0a7bd62f]:before{top:0;bottom:50%;border-radius:var(--yz-clock-flipper-border-radius) var(--yz-clock-flipper-border-radius) 0 0;border-bottom:solid var(--yz-clock-flipper-gap) var(--yz-clock-flipper-text-color)}.digital[data-v-0a7bd62f]:after{top:50%;bottom:0;border-radius:0 0 var(--yz-clock-flipper-border-radius) var(--yz-clock-flipper-border-radius);border-top:solid var(--yz-clock-flipper-gap) var(--yz-clock-flipper-text-color);line-height:0}.digital.number_0[data-v-0a7bd62f]:before,.digital.number_0[data-v-0a7bd62f]:after{content:"0"}.digital.number_1[data-v-0a7bd62f]:before,.digital.number_1[data-v-0a7bd62f]:after{content:"1"}.digital.number_2[data-v-0a7bd62f]:before,.digital.number_2[data-v-0a7bd62f]:after{content:"2"}.digital.number_3[data-v-0a7bd62f]:before,.digital.number_3[data-v-0a7bd62f]:after{content:"3"}.digital.number_4[data-v-0a7bd62f]:before,.digital.number_4[data-v-0a7bd62f]:after{content:"4"}.digital.number_5[data-v-0a7bd62f]:before,.digital.number_5[data-v-0a7bd62f]:after{content:"5"}.digital.number_6[data-v-0a7bd62f]:before,.digital.number_6[data-v-0a7bd62f]:after{content:"6"}.digital.number_7[data-v-0a7bd62f]:before,.digital.number_7[data-v-0a7bd62f]:after{content:"7"}.digital.number_8[data-v-0a7bd62f]:before,.digital.number_8[data-v-0a7bd62f]:after{content:"8"}.digital.number_9[data-v-0a7bd62f]:before,.digital.number_9[data-v-0a7bd62f]:after{content:"9"}
|
|
202
|
-
`]],["__scopeId","data-v-0a7bd62f"]]),
|
|
203
|
-
`]],["__scopeId","data-v-370e136b"]]),
|
|
204
|
-
`]],["__scopeId","data-v-6065adbb"]]),
|
|
205
|
-
`]],["__scopeId","data-v-f6ff8ebf"]]),
|
|
206
|
-
`]],["__scopeId","data-v-dcf10fee"]]),
|
|
207
|
-
`]],["__scopeId","data-v-e9e9dadd"]]),Hn=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"CSSAnimation.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(o,{expose:t,emit:e}){const s=o,r=e,n=Qt({}),a=Qt({});let i=s.name,l=s.duration,c=s.timingFunction,u=s.delay,f=s.repeat,d=s.direction;function p(){switch(i){case"superRainbow":l=s.duration||15e3;break;case"heartBeat":l=s.duration||1300;break;case"statusProcessing":l=s.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=s.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=s.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=s.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=s.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=s.duration||600;break;default:l=s.duration||500;break}switch(i){case"superRainbow":c=s.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=s.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=s.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=s.timingFunction||"ease-in-out";break;default:c=s.timingFunction||"ease";break}switch(i){default:u=s.delay||0;break}switch(i){case"superRainbow":case"statusProcessing":f=s.repeat||"infinite";break;default:f=s.repeat||1;break}switch(i){case"superRainbow":d=s.direction||"alternate";break;default:d=s.direction||"normal";break}switch(i){case"hinge":case"rotateFall":a.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":a.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":a.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":a.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":a.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":a.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":a.transformOrigin="right bottom";break;default:delete a.transformOrigin;break}switch(i){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":n.overflow="visible";break;default:n.overflow="hidden";break}switch(i){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":a.backfaceVisibility="visible";break;default:delete a.backfaceVisibility;break}}St(()=>s.name,()=>{i=s.name,p()},{immediate:!0});const h=R(),w=R(),_=U=>{n.perspective=s.perspective,U.on("animationstart",K=>{r("cssanimationstart",K.animationName)}),U.on("animationend",K=>{r("cssanimationend",K.animationName)})};function x(){w.value.style.animation="none",w.value.offsetHeight,w.value.style.animation=null}const v=()=>{a.animation="none"},g=()=>{x(),a.animation=`${l}ms ${c} ${u}ms ${f} ${d} ${s.fillMode} ${s.playState} ${i}`};return t({trigger:U=>{U&&(i=U,p()),h.value.startEffect(),d="normal",h.value.endEffect()},triggerReverse:U=>{U&&(i=U,p()),h.value.startEffect(),d="reverse",h.value.endEffect()},clear:()=>{a.animation="none"}}),(U,K)=>(L(),Nt(wt,{class:"css-animation",ref_key:"containerRef",ref:h,type:s.containerType,supportCopyText:s.supportCopyText,effectTriggerTiming:s.effectTriggerTiming,style:M(n),onReady:_,onStart:v,onEnd:g},{default:bt(()=>[E("div",{class:"css-animation-inner",ref_key:"animationRef",ref:w,style:M({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[kt(U.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutRight{to{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipInLeft{0%{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipOutLeft{to{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipInRight{0%{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipOutTop{to{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes flipInBottom{0%{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipOutBottom{to{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipInTop{0%{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes rotateFall{0%{transform:rotate(0)}20%{transform:rotate(10deg);animation-timing-function:ease-out}40%{transform:rotate(17deg)}60%{transform:rotate(16deg)}to{transform:translateY(100%) rotate(17deg)}}@keyframes rotateOutNewspaper{to{transform:translateZ(-3000px) rotate(360deg);opacity:0}}@keyframes rotateInNewspaper{0%{transform:translateZ(-3000px) rotate(-360deg);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}@keyframes rotateRightSideFirst{40%{transform:rotateY(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateLeftSideFirst{40%{transform:rotateY(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateTopSideFirst{40%{transform:rotateX(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateBottomSideFirst{40%{transform:rotateX(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotatePushLeft{to{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePushRight{to{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePushTop{to{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePushBottom{to{opacity:0;transform:rotateX(90deg)}}@keyframes rotatePullRight{0%{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePullLeft{0%{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePullTop{0%{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePullBottom{0%{opacity:0;transform:rotateX(90deg)}}@keyframes rotateFoldRight{to{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateFoldLeft{to{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateFoldTop{to{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateFoldBottom{to{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateUnfoldLeft{0%{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateUnfoldRight{0%{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateUnfoldTop{0%{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateUnfoldBottom{0%{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes moveToLeft{to{transform:translate(-100%)}}@keyframes moveFromLeft{0%{transform:translate(-100%)}}@keyframes moveToRight{to{transform:translate(100%)}}@keyframes moveFromRight{0%{transform:translate(100%)}}@keyframes moveToTop{to{transform:translateY(-100%)}}@keyframes moveFromTop{0%{transform:translateY(-100%)}}@keyframes moveToBottom{to{transform:translateY(100%)}}@keyframes moveFromBottom{0%{transform:translateY(100%)}}@keyframes fade{to{opacity:.3}}@keyframes moveToLeftFade{to{opacity:.3;transform:translate(-100%)}}@keyframes moveFromLeftFade{0%{opacity:.3;transform:translate(-100%)}}@keyframes moveToRightFade{to{opacity:.3;transform:translate(100%)}}@keyframes moveFromRightFade{0%{opacity:.3;transform:translate(100%)}}@keyframes moveToTopFade{to{opacity:.3;transform:translateY(-100%)}}@keyframes moveFromTopFade{0%{opacity:.3;transform:translateY(-100%)}}@keyframes moveToBottomFade{to{opacity:.3;transform:translateY(100%)}}@keyframes moveFromBottomFade{0%{opacity:.3;transform:translateY(100%)}}@keyframes scaleToSmall{to{opacity:0;transform:scale(.8)}}@keyframes scaleFromSmall{0%{opacity:0;transform:scale(.8)}}@keyframes scaleFromLarge{0%{opacity:0;transform:scale(1.2)}}@keyframes scaleToLarge{to{opacity:0;transform:scale(1.2)}}@keyframes scaleToSmallCenter{to{opacity:0;transform:scale(.7)}}@keyframes scaleFromSmallCenter{0%{opacity:0;transform:scale(.7)}}@keyframes rotateRoomLeftOut{to{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightOut{to{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomTopOut{to{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateRoomTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomOut{to{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateCubeLeftOut{50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}to{opacity:.3;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateCubeLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(90deg)}50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}}@keyframes rotateCubeRightOut{50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}to{opacity:.3;transform:translate(100%) rotateY(90deg)}}@keyframes rotateCubeRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(-90deg)}50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}}@keyframes rotateCubeTopOut{50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}to{opacity:.3;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateCubeTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(-90deg)}50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}}@keyframes rotateCubeBottomOut{50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}to{opacity:.3;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateCubeBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(90deg)}50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}}@keyframes rotateCarouselLeftOut{to{opacity:.3;transform:translate(-150%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselLeftIn{0%{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightOut{to{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightIn{0%{opacity:.3;transform:translate(-200%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselTopOut{to{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateCarouselTopIn{0%{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomOut{to{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomIn{0%{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateSidesOut{to{opacity:0;transform:translateZ(-500px) rotateY(90deg)}}@keyframes rotateSidesIn{0%{opacity:0;transform:translateZ(-500px) rotateY(-90deg)}}@keyframes rotateSlideOut{25%{opacity:.5;transform:translateZ(-500px)}75%{opacity:.5;transform:translateZ(-500px) translate(-200%)}to{opacity:.5;transform:translateZ(-500px) translate(-200%)}}@keyframes rotateSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translate(200%)}75%{opacity:.5;transform:translateZ(-500px)}to{opacity:1;transform:translateZ(0) translate(0)}}@keyframes superRainbow{0%{background:red}20%{background:orange}40%{background:yellow}60%{background:green}80%{background:blue}to{background:violet}}.superRainbow{background-position:0 0;background-size:200% 100%;background-image:linear-gradient(90deg,red,orange,yellow,green,blue,violet)}.superRainbow:hover{background-position:-100% 100%}@keyframes statusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}
|
|
208
|
-
`]]]),
|
|
218
|
+
`]],["__scopeId","data-v-0a7bd62f"]]),Uf=q({customOptions:{Container:wt},inheritAttrs:!0,__name:"TextBackgroundClip.ce",props:{text:{default:"文字背景为图片"},bgImageUrl:{default:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/181794/kl-deer.png"}},setup(s,{expose:t}){const e=s;return t({}),(o,r)=>(L(),Lt(wt,null,{default:bt(()=>[E("div",{style:N({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},yt(e.text),5)]),_:1}))}}),J_={class:"slide"},jf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"Slide.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,o=Kt({}),r=()=>{switch(e.direction){case"left":o.transformOrigin="center left",o.transform="scaleX(0)";break;case"right":o.transformOrigin="center right",o.transform="scaleX(0)";break;case"down":o.transformOrigin="center bottom",o.transform="scaleY(0)";break;case"up":o.transformOrigin="center top",o.transform="scaleY(0)";break}},n=()=>{switch(e.direction){case"left":o.transformOrigin="center right",o.transform="scaleX(1)";break;case"right":o.transformOrigin="center left",o.transform="scaleX(1)";break;case"down":o.transformOrigin="center top",o.transform="scaleY(1)";break;case"up":o.transformOrigin="center bottom",o.transform="scaleY(1)";break}};return t({}),(a,i)=>(L(),Lt(wt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n,style:{overflow:"hidden"}},{default:bt(()=>[E("div",{class:"slide-before",style:N({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...o})},null,4),E("div",J_,[kt(a.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.slide-before[data-v-370e136b]{position:absolute;z-index:0;inset:0;width:100%;height:100%}.slide[data-v-370e136b]{position:relative;z-index:1;cursor:pointer}
|
|
219
|
+
`]],["__scopeId","data-v-370e136b"]]),tx={class:"slide-corner"},Hf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"SlideCorner.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,o=Kt({});let r=1,n=r*2;const a=(c,u)=>{r=Math.ceil(Math.max(c,u)/Math.min(c,u)),n=r*2,o.width=o.height=Math.ceil(Math.min(c,u))+"px"},i=()=>{switch(e.direction){case"fromBottomLeft":o.top="100%",o.right="100%",o.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":o.top="100%",o.left="100%",o.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":o.bottom="100%",o.right="100%",o.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":o.bottom="100%",o.left="100%",o.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":o.top="50%",o.left="50%",o.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":o.top="100%",o.right="100%",o.transform=`translate(50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromBottomRight":o.top="100%",o.left="100%",o.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopLeft":o.bottom="100%",o.right="100%",o.transform=`translate(50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromTopRight":o.bottom="100%",o.left="100%",o.transform=`translate(-50%, 50%) scale3d(${n}, ${n}, ${n})`;break;case"fromCenter":o.top="50%",o.left="50%",o.transform=`translate(-50%, -50%) scale3d(${n}, ${n}, ${n})`;break}};return t({}),(c,u)=>(L(),Lt(wt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:l,onResize:a,style:{overflow:"hidden"}},{default:bt(()=>[E("div",{class:"slide-corner-before",style:N({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Ct(r)}ms ease-in-out`,transformOrigin:"center",...o})},null,4),E("div",tx,[kt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.slide-corner-before[data-v-6065adbb]{position:absolute;z-index:0}.slide-corner[data-v-6065adbb]{position:relative;z-index:1;cursor:pointer}
|
|
220
|
+
`]],["__scopeId","data-v-6065adbb"]]),ex={class:"line-single"},Wf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"LineSingle.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"underline"},direction:{default:"right"}},setup(s,{expose:t}){const e=s;let o=1;const r=(l,c)=>{o=Math.ceil(Math.max(l,c)/Math.min(l,c))},n=Kt({});switch(e.location){case"underline":n.bottom="0";break;case"overline":n.top="0";break;case"through":n.top="50%";break}const a=()=>{switch(e.direction){case"right":n.transformOrigin="bottom right",n.transform="scaleX(0)";break;case"left":n.transformOrigin="bottom left",n.transform="scaleX(0)";break;case"fromCenter":n.transformOrigin="center",n.transform="scaleX(0)";break}},i=()=>{switch(e.direction){case"right":n.transformOrigin="bottom left",n.transform="scaleX(1)";break;case"left":n.transformOrigin="bottom right",n.transform="scaleX(1)";break;case"fromCenter":n.transformOrigin="center",n.transform="scaleX(1)";break}};return t({}),(l,c)=>(L(),Lt(wt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:i,onResize:r},{default:bt(()=>[E("div",{class:"line-single-before",style:N({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Ct(o)}ms ease-in-out`,...n})},null,4),E("div",ex,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.line-single-before[data-v-f6ff8ebf]{position:absolute;z-index:0}.line-single[data-v-f6ff8ebf]{position:relative;z-index:1;cursor:pointer}
|
|
221
|
+
`]],["__scopeId","data-v-f6ff8ebf"]]),sx={class:"line-double"},Zf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"LineDouble.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"horizontal"},direction:{default:"toEnd"}},setup(s,{expose:t}){const e=s;let o=1;const r=(u,d)=>{o=Math.ceil(Math.max(u,d)/Math.min(u,d))},n=Kt({}),a=Kt({}),i=Kt({});switch(e.location){case"horizontal":n.width="100%",n.height=e.lineHeight+"px",a.top="0",i.bottom="0";break;case"vertical":n.width=e.lineHeight+"px",n.height="100%",a.left="0",i.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":a.right="0",i.right="0",n.transformOrigin="center right",n.transform="scaleX(0)";break;case"vertical":a.bottom="0",i.bottom="0",n.transformOrigin="center bottom",n.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":a.left="0",i.left="0",n.transformOrigin="center left",n.transform="scaleX(0)";break;case"vertical":a.top="0",i.top="0",n.transformOrigin="center top",n.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":a.right="0",a.transformOrigin="center right",i.left="0",i.transformOrigin="center left",n.transform="scaleX(0)";break;case"vertical":a.bottom="0",a.transformOrigin="center bottom",i.top="0",i.transformOrigin="center top",n.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":a.left="50%",i.left="50%",n.transformOrigin="center",n.transform="translateX(-50%) scaleX(0)";break;case"vertical":a.top="50%",i.top="50%",n.transformOrigin="center",n.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":a.left="0",i.left="0",n.transformOrigin="center left",n.transform="scaleX(1)";break;case"vertical":a.top="0",i.top="0",n.transformOrigin="center top",n.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":a.right="0",i.right="0",n.transformOrigin="center right",n.transform="scaleX(1)";break;case"vertical":a.bottom="0",i.bottom="0",n.transformOrigin="center bottom",n.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":a.left="0",a.transformOrigin="center left",i.right="0",i.transformOrigin="center right",n.transform="scaleX(1)";break;case"vertical":a.top="0",a.transformOrigin="center top",i.bottom="0",i.transformOrigin="center bottom",n.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":a.left="50%",i.left="50%",n.transformOrigin="center",n.transform="translateX(-50%) scaleX(1)";break;case"vertical":a.top="50%",i.top="50%",n.transformOrigin="center",n.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,d)=>(L(),Lt(wt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:r},{default:bt(()=>[E("div",{class:"line-double-before",style:N({backgroundColor:e.color,transition:`transform ${e.timeGap*Ct(o)}ms ease-in-out`,...n,...a})},null,4),E("div",sx,[kt(u.$slots,"default",{},void 0,!0)]),E("div",{class:"line-double-after",style:N({backgroundColor:e.color,transition:`transform ${e.timeGap*Ct(o)}ms ease-in-out`,...n,...i})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.line-double-before[data-v-dcf10fee],.line-double-after[data-v-dcf10fee]{position:absolute;z-index:0}.line-double[data-v-dcf10fee]{position:relative;z-index:1;cursor:pointer}
|
|
222
|
+
`]],["__scopeId","data-v-dcf10fee"]]),qf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"Float.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,o=Kt({willChange:"box-shadow, transform"}),r=()=>{switch(o.boxShadow="none",e.direction){case"left":o.transform="translateX(0)";break;case"right":o.transform="translateX(0)";break;case"down":o.transform="translateY(0)";break;case"up":o.transform="translateY(0)";break}},n=()=>{switch(o.boxShadow=e.boxShadow,e.direction){case"left":o.transform=`translateX(-${e.distance}px)`;break;case"right":o.transform=`translateX(${e.distance}px)`;break;case"down":o.transform=`translateY(${e.distance}px)`;break;case"up":o.transform=`translateY(-${e.distance}px)`;break}};return t({}),(a,i)=>(L(),Lt(wt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n},{default:bt(()=>[E("div",{class:"float",style:N({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...o})},[kt(a.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.float[data-v-e9e9dadd]{position:relative;z-index:1;cursor:pointer}
|
|
223
|
+
`]],["__scopeId","data-v-e9e9dadd"]]),Kn=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"CSSAnimation.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(s,{expose:t,emit:e}){const o=s,r=e,n=Kt({}),a=Kt({});let i=o.name,l=o.duration,c=o.timingFunction,u=o.delay,d=o.repeat,h=o.direction;function p(k){switch(i=k,i){case"superRainbow":l=o.duration||15e3;break;case"heartBeat":l=o.duration||1300;break;case"statusProcessing":l=o.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=o.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=o.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=o.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=o.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=o.duration||600;break;default:l=o.duration||500;break}switch(i){case"superRainbow":c=o.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=o.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=o.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=o.timingFunction||"ease-in-out";break;default:c=o.timingFunction||"ease";break}switch(i){default:u=o.delay||0;break}switch(i){case"superRainbow":case"statusProcessing":d=o.repeat||"infinite";break;default:d=o.repeat||1;break}switch(i){case"superRainbow":h=o.direction||"alternate";break;default:h=o.direction||"normal";break}switch(i){case"hinge":case"rotateFall":a.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":a.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":a.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":a.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":a.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":a.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":a.transformOrigin="right bottom";break;default:delete a.transformOrigin;break}switch(i){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":n.overflow="visible";break;default:n.overflow="hidden";break}switch(i){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":a.backfaceVisibility="visible";break;default:delete a.backfaceVisibility;break}}const f=I(),b=k=>{n.perspective=o.perspective,k.on("animationstart",Z=>{r("cssanimationstart",Z.animationName)}),k.on("animationend",Z=>{r("cssanimationend",Z.animationName)})};function w(){f.value.style.animation="none",f.value.offsetHeight,f.value.style.animation=null}const x=()=>{a.animation="none"},v=()=>{w(),a.animation=`${l}ms ${c} ${u}ms ${d} ${h} ${o.fillMode} ${o.playState} ${i}`},g=k=>{k&&p(k),x(),h="normal",v()},m=k=>{k&&p(k),x(),h="reverse",v()},_=()=>{a.animation="none"};return St(()=>o.name,()=>{p(o.name)},{immediate:!0}),t({trigger:g,triggerReverse:m,clear:_}),(k,Z)=>(L(),Lt(wt,{class:"css-animation",type:o.containerType,supportCopyText:o.supportCopyText,effectTriggerTiming:o.effectTriggerTiming,style:N(n),onReady:b,onStart:x,onEnd:v},{default:bt(()=>[E("div",{class:"css-animation-inner",ref_key:"animationRef",ref:f,style:N({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...a})},[kt(k.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),[["styles",[`@keyframes rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotate-reverse{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes jelly{0%,to{transform:scale(1)}25%{transform:scale(.9,1.1)}50%{transform:scale(1.1,.9)}75%{transform:scale(.95,1.05)}}@keyframes bounce{0%,20%,53%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0)}40%,43%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-30px,0) scaleY(1.1)}70%{animation-timing-function:cubic-bezier(.755,.05,.855,.06);transform:translate3d(0,-15px,0) scaleY(1.05)}80%{transition-timing-function:cubic-bezier(.215,.61,.355,1);transform:translateZ(0) scaleY(.95)}90%{transform:translate3d(0,-4px,0) scaleY(1.02)}}@keyframes flash{0%,50%,to{opacity:1}25%,75%{opacity:0}}@keyframes pulse{0%{transform:scaleZ(1)}50%{transform:scale3d(1.05,1.05,1.05)}to{transform:scaleZ(1)}}@keyframes rubberBand{0%{transform:scaleZ(1)}30%{transform:scale3d(1.25,.75,1)}40%{transform:scale3d(.75,1.25,1)}50%{transform:scale3d(1.15,.85,1)}65%{transform:scale3d(.95,1.05,1)}75%{transform:scale3d(1.05,.95,1)}to{transform:scaleZ(1)}}@keyframes shakeX{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(-10px,0,0)}20%,40%,60%,80%{transform:translate3d(10px,0,0)}}@keyframes shakeY{0%,to{transform:translateZ(0)}10%,30%,50%,70%,90%{transform:translate3d(0,-10px,0)}20%,40%,60%,80%{transform:translate3d(0,10px,0)}}@keyframes headShake{0%{transform:translate(0)}6.5%{transform:translate(-6px) rotateY(-9deg)}18.5%{transform:translate(5px) rotateY(7deg)}31.5%{transform:translate(-3px) rotateY(-5deg)}43.5%{transform:translate(2px) rotateY(3deg)}50%{transform:translate(0)}}@keyframes swing{20%{transform:rotate3d(0,0,1,15deg)}40%{transform:rotate3d(0,0,1,-10deg)}60%{transform:rotate3d(0,0,1,5deg)}80%{transform:rotate3d(0,0,1,-5deg)}to{transform:rotate3d(0,0,1,0)}}@keyframes tada{0%{transform:scaleZ(1)}10%,20%{transform:scale3d(.9,.9,.9) rotate3d(0,0,1,-3deg)}30%,50%,70%,90%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,3deg)}40%,60%,80%{transform:scale3d(1.1,1.1,1.1) rotate3d(0,0,1,-3deg)}to{transform:scaleZ(1)}}@keyframes wobble{0%{transform:translateZ(0)}15%{transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg)}30%{transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg)}45%{transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg)}60%{transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg)}75%{transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg)}to{transform:translateZ(0)}}@keyframes jello{0%,11.1%,to{transform:translateZ(0)}22.2%{transform:skew(-12.5deg) skewY(-12.5deg)}33.3%{transform:skew(6.25deg) skewY(6.25deg)}44.4%{transform:skew(-3.125deg) skewY(-3.125deg)}55.5%{transform:skew(1.5625deg) skewY(1.5625deg)}66.6%{transform:skew(-.78125deg) skewY(-.78125deg)}77.7%{transform:skew(.390625deg) skewY(.390625deg)}88.8%{transform:skew(-.1953125deg) skewY(-.1953125deg)}}@keyframes heartBeat{0%{transform:scale(1)}14%{transform:scale(1.3)}28%{transform:scale(1)}42%{transform:scale(1.3)}70%{transform:scale(1)}}@keyframes backInLeft{0%{transform:translate(-2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInRight{0%{transform:translate(2000px) scale(.7);opacity:.7}80%{transform:translate(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInUp{0%{transform:translateY(1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backInDown{0%{transform:translateY(-1200px) scale(.7);opacity:.7}80%{transform:translateY(0) scale(.7);opacity:.7}to{transform:scale(1);opacity:1}}@keyframes backOutLeft{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(-2000px) scale(.7);opacity:.7}}@keyframes backOutRight{0%{transform:scale(1);opacity:1}20%{transform:translate(0) scale(.7);opacity:.7}to{transform:translate(2000px) scale(.7);opacity:.7}}@keyframes backOutUp{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(-700px) scale(.7);opacity:.7}}@keyframes backOutDown{0%{transform:scale(1);opacity:1}20%{transform:translateY(0) scale(.7);opacity:.7}to{transform:translateY(700px) scale(.7);opacity:.7}}@keyframes bounceIn{0%,20%,40%,60%,80%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:scale3d(.3,.3,.3)}20%{transform:scale3d(1.1,1.1,1.1)}40%{transform:scale3d(.9,.9,.9)}60%{opacity:1;transform:scale3d(1.03,1.03,1.03)}80%{transform:scale3d(.97,.97,.97)}to{opacity:1;transform:scaleZ(1)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(25px,0,0) scaleX(1)}75%{transform:translate3d(-10px,0,0) scaleX(.98)}90%{transform:translate3d(5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0) scaleX(3)}60%{opacity:1;transform:translate3d(-25px,0,0) scaleX(1)}75%{transform:translate3d(10px,0,0) scaleX(.98)}90%{transform:translate3d(-5px,0,0) scaleX(.995)}to{transform:translateZ(0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0) scaleY(5)}60%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}75%{transform:translate3d(0,10px,0) scaleY(.95)}90%{transform:translate3d(0,-5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0) scaleY(3)}60%{opacity:1;transform:translate3d(0,25px,0) scaleY(.9)}75%{transform:translate3d(0,-10px,0) scaleY(.95)}90%{transform:translate3d(0,5px,0) scaleY(.985)}to{transform:translateZ(0)}}@keyframes bounceOut{20%{transform:scale3d(.9,.9,.9)}50%,55%{opacity:1;transform:scale3d(1.1,1.1,1.1)}to{opacity:0;transform:scale3d(.3,.3,.3)}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(-2000px,0,0) scaleX(2)}}@keyframes bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0) scaleX(.9)}to{opacity:0;transform:translate3d(2000px,0,0) scaleX(2)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,-2000px,0) scaleY(3)}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0) scaleY(.985)}40%,45%{opacity:1;transform:translate3d(0,-20px,0) scaleY(.9)}to{opacity:0;transform:translate3d(0,2000px,0) scaleY(3)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInLeftBig{0%{opacity:0;transform:translate3d(-2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRight{0%{opacity:0;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInRightBig{0%{opacity:0;transform:translate3d(2000px,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translate3d(0,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInUpBig{0%{opacity:0;transform:translate3d(0,2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translate3d(0,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInDownBig{0%{opacity:0;transform:translate3d(0,-2000px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopLeft{0%{opacity:0;transform:translate3d(-100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInTopRight{0%{opacity:0;transform:translate3d(100%,-100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomLeft{0%{opacity:0;transform:translate3d(-100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeInBottomRight{0%{opacity:0;transform:translate3d(100%,100%,0)}to{opacity:1;transform:translateZ(0)}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOutLeft{0%{opacity:1}to{opacity:0;transform:translate3d(-100%,0,0)}}@keyframes fadeOutLeftBig{0%{opacity:1}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes fadeOutRight{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0)}}@keyframes fadeOutRightBig{0%{opacity:1}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;transform:translate3d(0,-100%,0)}}@keyframes fadeOutUpBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;transform:translate3d(0,100%,0)}}@keyframes fadeOutDownBig{0%{opacity:1}to{opacity:0;transform:translate3d(0,2000px,0)}}@keyframes fadeOutTopLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,-100%,0)}}@keyframes fadeOutTopRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,-100%,0)}}@keyframes fadeOutBottomRight{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(100%,100%,0)}}@keyframes fadeOutBottomLeft{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(-100%,100%,0)}}@keyframes flip{0%{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(-360deg);animation-timing-function:ease-out}40%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-190deg);animation-timing-function:ease-out}50%{transform:perspective(400px) scaleZ(1) translateZ(150px) rotateY(-170deg);animation-timing-function:ease-in}80%{transform:perspective(400px) scale3d(.95,.95,.95) translateZ(0) rotateY(0);animation-timing-function:ease-in}to{transform:perspective(400px) scaleZ(1) translateZ(0) rotateY(0);animation-timing-function:ease-in}}@keyframes flipInX{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes flipInY{0%{transform:perspective(400px) rotateY(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateY(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateY(10deg);opacity:1}80%{transform:perspective(400px) rotateY(-5deg)}to{transform:perspective(400px)}}@keyframes flipOutX{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}@keyframes flipOutY{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateY(-15deg);opacity:1}to{transform:perspective(400px) rotateY(90deg);opacity:0}}@keyframes flipOutRight{to{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipInLeft{0%{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipOutLeft{to{transform:translateZ(-1000px) rotateY(-90deg);opacity:.2}}@keyframes flipInRight{0%{transform:translateZ(-1000px) rotateY(90deg);opacity:.2}}@keyframes flipOutTop{to{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes flipInBottom{0%{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipOutBottom{to{transform:translateZ(-1000px) rotateX(-90deg);opacity:.2}}@keyframes flipInTop{0%{transform:translateZ(-1000px) rotateX(90deg);opacity:.2}}@keyframes lightSpeedInLeft{0%{transform:translate3d(-100%,0,0) skew(30deg);opacity:0}60%{transform:skew(-20deg);opacity:1}80%{transform:skew(5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedInRight{0%{transform:translate3d(100%,0,0) skew(-30deg);opacity:0}60%{transform:skew(20deg);opacity:1}80%{transform:skew(-5deg)}to{transform:translateZ(0)}}@keyframes lightSpeedOutLeft{0%{opacity:1}to{transform:translate3d(-100%,0,0) skew(-30deg);opacity:0}}@keyframes lightSpeedOutRight{0%{opacity:1}to{transform:translate3d(100%,0,0) skew(30deg);opacity:0}}@keyframes rotateIn{0%{transform:rotate3d(0,0,1,-200deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpLeft{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInUpRight{0%{transform:rotate3d(0,0,1,-90deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownLeft{0%{transform:rotate3d(0,0,1,-45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateInDownRight{0%{transform:rotate3d(0,0,1,45deg);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes rotateOut{0%{opacity:1}to{transform:rotate3d(0,0,1,200deg);opacity:0}}@keyframes rotateOutUpLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes rotateOutUpRight{0%{opacity:1}to{transform:rotate3d(0,0,1,90deg);opacity:0}}@keyframes rotateOutDownLeft{0%{opacity:1}to{transform:rotate3d(0,0,1,45deg);opacity:0}}@keyframes rotateOutDownRight{0%{opacity:1}to{transform:rotate3d(0,0,1,-45deg);opacity:0}}@keyframes hinge{0%{animation-timing-function:ease-in-out}20%,60%{transform:rotate3d(0,0,1,80deg);animation-timing-function:ease-in-out}40%,80%{transform:rotate3d(0,0,1,60deg);animation-timing-function:ease-in-out;opacity:1}to{transform:translate3d(0,700px,0);opacity:0}}@keyframes rotateFall{0%{transform:rotate(0)}20%{transform:rotate(10deg);animation-timing-function:ease-out}40%{transform:rotate(17deg)}60%{transform:rotate(16deg)}to{transform:translateY(100%) rotate(17deg)}}@keyframes rotateOutNewspaper{to{transform:translateZ(-3000px) rotate(360deg);opacity:0}}@keyframes rotateInNewspaper{0%{transform:translateZ(-3000px) rotate(-360deg);opacity:0}}@keyframes jackInTheBox{0%{opacity:0;transform:scale(.1) rotate(30deg);transform-origin:center bottom}50%{transform:rotate(-10deg)}70%{transform:rotate(3deg)}to{opacity:1;transform:scale(1)}}@keyframes rollIn{0%{opacity:0;transform:translate3d(-100%,0,0) rotate3d(0,0,1,-120deg)}to{opacity:1;transform:translateZ(0)}}@keyframes rollOut{0%{opacity:1}to{opacity:0;transform:translate3d(100%,0,0) rotate3d(0,0,1,120deg)}}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes zoomInLeft{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(-1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInRight{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(1000px,0,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-10px,0,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInUp{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomInDown{0%{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-1000px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}60%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}@keyframes zoomOutLeft{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(-2000px,0,0)}}@keyframes zoomOutRight{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(-42px,0,0)}to{opacity:0;transform:scale(.1) translate3d(2000px,0,0)}}@keyframes zoomOutUp{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,-2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes zoomOutDown{40%{opacity:1;transform:scale3d(.475,.475,.475) translate3d(0,-60px,0);animation-timing-function:cubic-bezier(.55,.055,.675,.19)}to{opacity:0;transform:scale3d(.1,.1,.1) translate3d(0,2000px,0);animation-timing-function:cubic-bezier(.175,.885,.32,1)}}@keyframes slideInLeft{0%{transform:translate3d(-100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInRight{0%{transform:translate3d(100%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInUp{0%{transform:translate3d(0,100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-100%,0,0)}}@keyframes slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(100%,0,0)}}@keyframes slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-100%,0)}}@keyframes slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,100%,0)}}@keyframes rotateRightSideFirst{40%{transform:rotateY(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateLeftSideFirst{40%{transform:rotateY(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateTopSideFirst{40%{transform:rotateX(15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotateBottomSideFirst{40%{transform:rotateX(-15deg);opacity:.8;animation-timing-function:ease-out}to{transform:scale(.8) translateZ(-200px);opacity:0}}@keyframes rotatePushLeft{to{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePushRight{to{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePushTop{to{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePushBottom{to{opacity:0;transform:rotateX(90deg)}}@keyframes rotatePullRight{0%{opacity:0;transform:rotateY(-90deg)}}@keyframes rotatePullLeft{0%{opacity:0;transform:rotateY(90deg)}}@keyframes rotatePullTop{0%{opacity:0;transform:rotateX(-90deg)}}@keyframes rotatePullBottom{0%{opacity:0;transform:rotateX(90deg)}}@keyframes rotateFoldRight{to{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateFoldLeft{to{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateFoldTop{to{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateFoldBottom{to{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateUnfoldLeft{0%{opacity:0;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateUnfoldRight{0%{opacity:0;transform:translate(100%) rotateY(90deg)}}@keyframes rotateUnfoldTop{0%{opacity:0;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateUnfoldBottom{0%{opacity:0;transform:translateY(100%) rotateX(-90deg)}}@keyframes moveToLeft{to{transform:translate(-100%)}}@keyframes moveFromLeft{0%{transform:translate(-100%)}}@keyframes moveToRight{to{transform:translate(100%)}}@keyframes moveFromRight{0%{transform:translate(100%)}}@keyframes moveToTop{to{transform:translateY(-100%)}}@keyframes moveFromTop{0%{transform:translateY(-100%)}}@keyframes moveToBottom{to{transform:translateY(100%)}}@keyframes moveFromBottom{0%{transform:translateY(100%)}}@keyframes fade{to{opacity:.3}}@keyframes moveToLeftFade{to{opacity:.3;transform:translate(-100%)}}@keyframes moveFromLeftFade{0%{opacity:.3;transform:translate(-100%)}}@keyframes moveToRightFade{to{opacity:.3;transform:translate(100%)}}@keyframes moveFromRightFade{0%{opacity:.3;transform:translate(100%)}}@keyframes moveToTopFade{to{opacity:.3;transform:translateY(-100%)}}@keyframes moveFromTopFade{0%{opacity:.3;transform:translateY(-100%)}}@keyframes moveToBottomFade{to{opacity:.3;transform:translateY(100%)}}@keyframes moveFromBottomFade{0%{opacity:.3;transform:translateY(100%)}}@keyframes scaleToSmall{to{opacity:0;transform:scale(.8)}}@keyframes scaleFromSmall{0%{opacity:0;transform:scale(.8)}}@keyframes scaleFromLarge{0%{opacity:0;transform:scale(1.2)}}@keyframes scaleToLarge{to{opacity:0;transform:scale(1.2)}}@keyframes scaleToSmallCenter{to{opacity:0;transform:scale(.7)}}@keyframes scaleFromSmallCenter{0%{opacity:0;transform:scale(.7)}}@keyframes rotateRoomLeftOut{to{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightOut{to{opacity:.3;transform:translate(100%) rotateY(-90deg)}}@keyframes rotateRoomRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(90deg)}}@keyframes rotateRoomTopOut{to{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateRoomTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomOut{to{opacity:.3;transform:translateY(100%) rotateX(90deg)}}@keyframes rotateRoomBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(-90deg)}}@keyframes rotateCubeLeftOut{50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}to{opacity:.3;transform:translate(-100%) rotateY(-90deg)}}@keyframes rotateCubeLeftIn{0%{opacity:.3;transform:translate(100%) rotateY(90deg)}50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}}@keyframes rotateCubeRightOut{50%{animation-timing-function:ease-out;transform:translate(50%) translateZ(-200px) rotateY(45deg)}to{opacity:.3;transform:translate(100%) rotateY(90deg)}}@keyframes rotateCubeRightIn{0%{opacity:.3;transform:translate(-100%) rotateY(-90deg)}50%{animation-timing-function:ease-out;transform:translate(-50%) translateZ(-200px) rotateY(-45deg)}}@keyframes rotateCubeTopOut{50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}to{opacity:.3;transform:translateY(-100%) rotateX(90deg)}}@keyframes rotateCubeTopIn{0%{opacity:.3;transform:translateY(100%) rotateX(-90deg)}50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}}@keyframes rotateCubeBottomOut{50%{animation-timing-function:ease-out;transform:translateY(50%) translateZ(-200px) rotateX(-45deg)}to{opacity:.3;transform:translateY(100%) rotateX(-90deg)}}@keyframes rotateCubeBottomIn{0%{opacity:.3;transform:translateY(-100%) rotateX(90deg)}50%{animation-timing-function:ease-out;transform:translateY(-50%) translateZ(-200px) rotateX(45deg)}}@keyframes rotateCarouselLeftOut{to{opacity:.3;transform:translate(-150%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselLeftIn{0%{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightOut{to{opacity:.3;transform:translate(200%) scale(.4) rotateY(65deg)}}@keyframes rotateCarouselRightIn{0%{opacity:.3;transform:translate(-200%) scale(.4) rotateY(-65deg)}}@keyframes rotateCarouselTopOut{to{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateCarouselTopIn{0%{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomOut{to{opacity:.3;transform:translateY(200%) scale(.4) rotateX(-65deg)}}@keyframes rotateCarouselBottomIn{0%{opacity:.3;transform:translateY(-200%) scale(.4) rotateX(65deg)}}@keyframes rotateSidesOut{to{opacity:0;transform:translateZ(-500px) rotateY(90deg)}}@keyframes rotateSidesIn{0%{opacity:0;transform:translateZ(-500px) rotateY(-90deg)}}@keyframes rotateSlideOut{25%{opacity:.5;transform:translateZ(-500px)}75%{opacity:.5;transform:translateZ(-500px) translate(-200%)}to{opacity:.5;transform:translateZ(-500px) translate(-200%)}}@keyframes rotateSlideIn{0%,25%{opacity:.5;transform:translateZ(-500px) translate(200%)}75%{opacity:.5;transform:translateZ(-500px)}to{opacity:1;transform:translateZ(0) translate(0)}}@keyframes superRainbow{0%{background:red}20%{background:orange}40%{background:yellow}60%{background:green}80%{background:blue}to{background:violet}}.superRainbow{background-position:0 0;background-size:200% 100%;background-image:linear-gradient(90deg,red,orange,yellow,green,blue,violet)}.superRainbow:hover{background-position:-100% 100%}@keyframes statusProcessing{0%{transform:scale(.8);opacity:.5}to{transform:scale(2.4);opacity:0}}
|
|
224
|
+
`]]]),ox={class:"circle"},Qf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"Circle.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,o=I(),r=Kt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),n=(l,c)=>{r.width=r.height=Math.ceil(Math.max(l,c))+"px",o.value?.repeatEffect?.()},a=()=>{const l=ge(e.color,.2).toString();r.boxShadow=`
|
|
209
225
|
inset ${r.width} 0 0 ${l},
|
|
210
226
|
inset 0 ${r.width} 0 ${l},
|
|
211
227
|
inset -${r.width} 0 0 ${l},
|
|
@@ -215,7 +231,7 @@ Expected function or array of functions, received type ${typeof o}.`),ye)}functi
|
|
|
215
231
|
inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
|
|
216
232
|
inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
|
|
217
233
|
inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
|
|
218
|
-
`};return t({}),(l,c)=>(L(),
|
|
219
|
-
`]],["__scopeId","data-v-1c3f9baa"]]),
|
|
220
|
-
`]],["__scopeId","data-v-45681ed0"]]),
|
|
234
|
+
`};return t({}),(l,c)=>(L(),Lt(wt,{ref_key:"containerRef",ref:o,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:i,onResize:n},{default:bt(()=>[E("div",{class:"circle-before",style:N(r)},null,4),E("div",ox,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.circle-before[data-v-1c3f9baa]{position:absolute;z-index:2}.circle[data-v-1c3f9baa]{position:relative;z-index:1;cursor:pointer}
|
|
235
|
+
`]],["__scopeId","data-v-1c3f9baa"]]),Kf=it(q({customOptions:{Container:wt},inheritAttrs:!0,__name:"BorderFocusText.ce",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"manual"},text:{default:""},textSize:{default:12},borderColor:{default:"#5a82f0"},borderWidth:{default:2},borderRadius:{default:8}},setup(s,{expose:t}){const e=s,o=I(!0),r=()=>{o.value=!0},n=()=>{o.value=!1};return t({}),(a,i)=>(L(),Lt(wt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:r,onEnd:n},{default:bt(()=>[o.value?(L(),V("div",{key:0,class:"text",style:N({fontSize:`${a.textSize}px`,top:`${-Math.ceil(a.textSize/2)-4}px`,padding:"4px 12px",backgroundColor:a.borderColor,borderRadius:`${a.textSize}px 0 ${a.textSize}px 0`,color:Ct(ge)(a.borderColor).opposite(!0,"#333333","#ffffff").toString()})},yt(e.text),5)):Rt("",!0),E("div",{class:"inner",style:N(o.value?{border:`${a.borderWidth}px solid ${a.borderColor}`,borderRadius:`${a.borderRadius}px`}:{})},[kt(a.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),[["styles",[`.text[data-v-45681ed0]{position:absolute;top:0;left:0;z-index:1}.inner[data-v-45681ed0]{position:relative;overflow:hidden;box-sizing:border-box}
|
|
236
|
+
`]],["__scopeId","data-v-45681ed0"]]),rx={class:"svg"},nx=q({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(L(),V("svg",rx,e[0]||(e[0]=[Hc('<defs data-v-7ee5c19e><mask id="mask" maskContentUnits="objectBoundingBox" data-v-7ee5c19e><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-7ee5c19e></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-7ee5c19e></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-7ee5c19e></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-7ee5c19e></rect></mask></defs>',1)])))}}),r3="",Jf=it(nx,[["__scopeId","data-v-7ee5c19e"]]),th=q({customOptions:{Container:wt,SVGMaskNapkin:Jf},inheritAttrs:!0,__name:"ImageMask.ce",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,o=I(0),r=I(0),n=(a,i)=>{o.value=a,r.value=i};return t({}),(a,i)=>(L(),V("div",{style:N({width:`${o.value}px`,height:`${r.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[kt(a.$slots,"mask",{},()=>[ct(Jf)]),ct(wt,{type:"shrink",onResize:n},{default:bt(()=>[kt(a.$slots,"default")]),_:3})],4))}});class ax extends HTMLElement{constructor(){super(),this.listenedMedia=[],this.reloadQueued=!1}connectedCallback(){this.video=this.querySelector("video"),this.bindMediaListeners()}disconnectedCallback(){this.unbindMediaListeners()}bindMediaListeners(){this.querySelectorAll("source").forEach(t=>{if(t.media){const e=()=>{(t.media===this.video.currentSrc||!this.previousSiblingIsPlaying(t,this.video.currentSrc)&&!this.reloadQueued)&&this.reloadVideo()};this.listenedMedia.push({media:t.media,handler:e}),window.matchMedia(t.media).addEventListener("change",e)}})}unbindMediaListeners(){this.listenedMedia.forEach(t=>{window.matchMedia(t.media).removeEventListener("change",t.handler)})}previousSiblingIsPlaying(t,e){const o=t;for(;t.previousElementSibling;)if(o.src===e)return!0;return!1}reloadVideo(){this.reloadQueued=!0;const t=this.video.currentTime,e=this.video.playState;this.video.load();const o=()=>{this.video.playState=e,this.video.currentTime=t.toString(),this.reloadQueued=!1,this.video.removeEventListener("loadeddata",o)};this.video.addEventListener("loadeddata",o)}}const ix=ax;function lx(s,t="style.css"){for(let e of s){const o=document.querySelector(e)?.shadowRoot;if(o){const r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("href",t),o.appendChild(r)}}}const dl={},fl={},Dt=(s,t,e=!0)=>{const o=s.__name;dl[o]=[];let r=[...s.styles||[]],n=0;for(let a in s.customOptions)dl[o].push(a),`${s.customOptions[a].__scopeId}`,r=[...(dl[a]||[]).reduce((i,l)=>(i.push(...(fl[l]||[]).map(c=>Su(c))),i),[]),...(t[n++]?.styles||[]).map(i=>Su(i)),...r],fl[a]=r;if(e)s.styles=r;else for(let a of s.styles){const i=document.createElement("style");i.innerHTML=a,document.head.insertBefore(i,document.head.childNodes[document.head.childNodes.length-1].nextSibling)}return fl[o]=r,s},cx=()=>{customElements.define("yz-loading-1",pt(f_)),customElements.define("yz-loading-2",pt(m_)),customElements.define("yz-loading-3",pt(y_)),customElements.define("yz-loading-4",pt(__)),customElements.define("yz-loading-5",pt(k_)),customElements.define("yz-loading-6",pt(S_)),customElements.define("yz-loading-7",pt(P_)),customElements.define("yz-loading-8",pt(Mf)),customElements.define("yz-loading-9",pt($_)),customElements.define("yz-loading-10",pt(M_)),customElements.define("yz-loading-11",pt(zf));const s=pt(ef);customElements.define("yz-icon",s),Dt(xo,[zf]);const t=pt(xo);customElements.define("yz-button",t);const e=pt(pv);customElements.define("yz-layout-mobile",e);const o=pt(mv);customElements.define("yz-layout-center",o),Dt(wo,[Wn,de]);const r=pt(wo);customElements.define("yz-pop",r),Dt(Zn,[Wn,wo,ef,xo]);const n=pt(Zn);customElements.define("yz-dialog",n),Dt(pf,[Wn,wo,Zn,Mf]);const a=pt(pf);customElements.define("yz-dialog-loading",a),Dt(mf,[Wn,wo,Zn]);const i=pt(mf);customElements.define("yz-dialog-toast",i);const l=pt(f1);customElements.define("yz-select",l),Dt(sf,[i_]);const c=pt(sf);customElements.define("yz-select-absolute",c);const u=pt(_1);customElements.define("yz-switch",u);const d=pt(qi);customElements.define("yz-boolean-box",d),Dt(Qi,[qi]);const h=pt(Qi);customElements.define("yz-radio-group",h),Dt(Ki,[qi]);const p=pt(Ki);customElements.define("yz-checkbox-group",p),Dt(sl,[wo,xo,de]);const f=pt(sl);customElements.define("yz-popover",f),Dt(Ef,[sl,de]);const b=pt(Ef);customElements.define("yz-color-picker",b);const w=pt(xb);customElements.define("yz-resize-observer",w);const x=pt(wb);customElements.define("yz-map-tianditu",x),Dt(il,[wo,Jb,de]);const v=pt(il);customElements.define("yz-plate-keyboard",v),Dt(Tf,[Qb,il]);const g=pt(Tf);customElements.define("yz-plate-mobile",g),Dt(cf,[o_]);const m=pt(cf);customElements.define("yz-slide-left-item",m);const _=pt(pb);customElements.define("yz-plate-display",_);const k=pt(Bv);customElements.define("yz-tabs",k);const Z=pt(kb);customElements.define("yz-fps-stats",Z),Dt(ll,[xo,Pr]);const ot=pt(ll);customElements.define("yz-ease-graph-display",ot),Dt(Of,[ll]);const R=pt(Of);customElements.define("yz-ease-group-graph-display",R),Dt(cl,[xo,Pr]);const $=pt(cl);customElements.define("yz-interpolation-graph-display",$),Dt(Lf,[cl]);const A=pt(Lf);customElements.define("yz-interpolation-group-graph-display",A);const D=pt(nl);customElements.define("yz-progress-bar",D),Dt(gf,[nl]);const M=pt(gf);customElements.define("yz-page-vertical-scroll-progress-bar",M),Dt(Nf,[xo,Ji,Fb,Pr]);const X=pt(Nf);customElements.define("yz-svg-and-canvas",X),customElements.define("yz-hand-write-panel",pt(Xv)),Dt(uf,[nl]);const rt=pt(uf);customElements.define("yz-video",rt),customElements.define("yz-input",pt(z1)),customElements.define("yz-input-range",pt(Ji)),Dt(nf,[de]);const Q=pt(nf);customElements.define("yz-input-range-box",Q),Dt(rf,[Pr]),customElements.define("yz-input-range-canvas",pt(rf)),Dt(af,[Kn]);const W=pt(af);customElements.define("yz-status",W),customElements.define("yz-input-file-drop",pt(q1)),customElements.define("yz-accordion",pt(ev)),Dt(tl,[de]);const at=pt(tl);customElements.define("yz-image",at);const G=pt(de);customElements.define("yz-container",G),Dt(Kn,[de]);const j=pt(Kn);customElements.define("yz-effect-css-animation",j),Dt(ol,[de,Kn]);const gt=pt(ol);customElements.define("yz-page",gt),Dt(rl,[ol,de]);const ht=pt(rl);customElements.define("yz-routes",ht),Dt(ff,[tl,de,rl]);const B=pt(ff);customElements.define("yz-image-view",B);const P=pt(j_);customElements.define("yz-card-flip",P),Dt(Bf,[Qi,Ki,Ji]);const Yt=pt(Bf);customElements.define("yz-cube",Yt),Dt(Yf,[Pr]);const At=pt(Yf);customElements.define("yz-chat-ring-indicator",At),Dt(Xf,[de]);const Et=pt(Xf);customElements.define("yz-chat-ring-text",Et),Dt(Gf,[de]);const ee=pt(Gf);customElements.define("yz-chat-clock-flipper",ee),Dt(Uf,[de]);const Xt=pt(Uf);customElements.define("yz-effect-text-background-clip",Xt),Dt(jf,[de]);const U=pt(jf);customElements.define("yz-effect-slide",U),Dt(Hf,[de]);const Me=pt(Hf);customElements.define("yz-effect-slide-corner",Me),Dt(Wf,[de]);const He=pt(Wf);customElements.define("yz-effect-line-single",He),Dt(Zf,[de]);const De=pt(Zf);customElements.define("yz-effect-line-double",De),Dt(qf,[de]);const S=pt(qf);customElements.define("yz-effect-float",S),Dt(Qf,[de]);const F=pt(Qf);customElements.define("yz-effect-circle",F),Dt(Kf,[de]);const Y=pt(Kf);customElements.define("yz-effect-border-focus-text",Y),Dt(th,[de,c_]);const K=pt(th);customElements.define("yz-effect-image-mask",K),customElements.define("yz-responsive-video",ix);const H=document.getElementById("teleport")||document.documentElement,J=document.createElement("yz-dialog-toast");J.id="globalDialogToast",H?.appendChild(J);const lt=document.createElement("yz-dialog-loading");lt.id="globalDialogLoading",H?.appendChild(lt);const tt=document.createElement("yz-dialog");tt.id="globalDialog",H?.appendChild(tt);const nt=document.createElement("yz-plate-keyboard");nt.id="globalPlateKeyboard",H?.appendChild(nt)};return fe.dialog=Kv,fe.install=cx,fe.linkChildrenComponentsStyles=lx,fe.loading=Qv,fe.mergeChildComponentCSS=Dt,fe.plateKeyboard=Cf,fe.popAbsolute=kf,fe.popAbsoluteSample=rb,fe.popBottom=vf,fe.popBottomSample=Jv,fe.popCenter=wf,fe.popCenterSample=ob,fe.popLeft=_f,fe.popLeftSample=eb,fe.popRight=xf,fe.popRightSample=sb,fe.popTop=bf,fe.popTopSample=tb,fe.toast=qv,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),fe}({});
|
|
221
237
|
//# sourceMappingURL=yz_custom_element.iife.js.map
|