@univerjs/ui-adapter-vue3 0.8.3-nightly.202507010644

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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export { UniverVue3AdapterPlugin } from './plugin';
@@ -0,0 +1,18 @@
1
+ import { defineComponent } from 'vue';
2
+ import { Injector, Plugin } from '@univerjs/core';
3
+ import { ComponentManager } from '@univerjs/ui';
4
+ /**
5
+ * The plugin that allows Univer to use web components as UI components.
6
+ */
7
+ export declare class UniverVue3AdapterPlugin extends Plugin {
8
+ private readonly _config;
9
+ protected readonly _injector: Injector;
10
+ protected readonly _componentManager: ComponentManager;
11
+ static pluginName: string;
12
+ constructor(_config: {} | undefined, _injector: Injector, _componentManager: ComponentManager);
13
+ onStarting(): void;
14
+ }
15
+ export declare function VueComponentWrapper(options: {
16
+ component: ReturnType<typeof defineComponent>;
17
+ props: Record<string, any>;
18
+ }): import('react').DetailedReactHTMLElement<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
@@ -0,0 +1,20 @@
1
+ (function(fe,Ce){typeof exports=="object"&&typeof module<"u"?Ce(exports,require("@univerjs/core"),require("@univerjs/ui"),require("react")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/ui","react"],Ce):(fe=typeof globalThis<"u"?globalThis:fe||self,Ce(fe.UniverUiAdapterVue3={},fe.UniverCore,fe.UniverUi,fe.React))})(this,function(fe,Ce,Ws,st){"use strict";/**
2
+ * @vue/shared v3.5.17
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Qt(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const U={},nt=[],ae=()=>{},Tr=()=>!1,Ct=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),kt=e=>e.startsWith("onUpdate:"),Z=Object.assign,es=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Cr=Object.prototype.hasOwnProperty,D=(e,t)=>Cr.call(e,t),A=Array.isArray,rt=e=>Et(e)==="[object Map]",Er=e=>Et(e)==="[object Set]",I=e=>typeof e=="function",J=e=>typeof e=="string",Je=e=>typeof e=="symbol",q=e=>e!==null&&typeof e=="object",Bs=e=>(q(e)||I(e))&&I(e.then)&&I(e.catch),Pr=Object.prototype.toString,Et=e=>Pr.call(e),Or=e=>Et(e).slice(8,-1),Ar=e=>Et(e)==="[object Object]",ts=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,it=Qt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pt=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Ir=/-(\w)/g,Re=Pt(e=>e.replace(Ir,(t,s)=>s?s.toUpperCase():"")),Rr=/\B([A-Z])/g,Ue=Pt(e=>e.replace(Rr,"-$1").toLowerCase()),qs=Pt(e=>e.charAt(0).toUpperCase()+e.slice(1)),ss=Pt(e=>e?`on${qs(e)}`:""),Le=(e,t)=>!Object.is(e,t),ns=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},rs=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Mr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gs;const Ot=()=>Gs||(Gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function is(e){if(A(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=J(n)?Hr(n):is(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(J(e)||q(e))return e}const Fr=/;(?![^(]*\))/g,Dr=/:([^]+)/,jr=/\/\*[^]*?\*\//g;function Hr(e){const t={};return e.replace(jr,"").split(Fr).forEach(s=>{if(s){const n=s.split(Dr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function os(e){let t="";if(J(e))t=e;else if(A(e))for(let s=0;s<e.length;s++){const n=os(e[s]);n&&(t+=n+" ")}else if(q(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Nr=Qt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Js(e){return!!e||e===""}/**
6
+ * @vue/reactivity v3.5.17
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let se;class Ur{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=se,!t&&se&&(this.index=(se.scopes||(se.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].pause();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].resume();for(t=0,s=this.effects.length;t<s;t++)this.effects[t].resume()}}run(t){if(this._active){const s=se;try{return se=this,t()}finally{se=s}}}on(){++this._on===1&&(this.prevScope=se,se=this)}off(){this._on>0&&--this._on===0&&(se=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].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 Lr(){return se}let L;const ls=new WeakSet;class Ys{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,se&&se.active&&se.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ls.has(this)&&(ls.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,tn(this),Zs(this);const t=L,s=ce;L=this,ce=!0;try{return this.fn()}finally{Qs(this),L=t,ce=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)as(t);this.deps=this.depsTail=void 0,tn(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ls.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){us(this)&&this.run()}get dirty(){return us(this)}}let zs=0,ot,lt;function Xs(e,t=!1){if(e.flags|=8,t){e.next=lt,lt=e;return}e.next=ot,ot=e}function fs(){zs++}function cs(){if(--zs>0)return;if(lt){let t=lt;for(lt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ot;){let t=ot;for(ot=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Zs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qs(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),as(n),$r(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function us(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ks(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ks(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ft)||(e.globalVersion=ft,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!us(e))))return;e.flags|=2;const t=e.dep,s=L,n=ce;L=e,ce=!0;try{Zs(e);const r=e.fn(e._value);(t.version===0||Le(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{L=s,ce=n,Qs(e),e.flags&=-3}}function as(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)as(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function $r(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let ce=!0;const en=[];function de(){en.push(ce),ce=!1}function he(){const e=en.pop();ce=e===void 0?!0:e}function tn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=L;L=void 0;try{t()}finally{L=s}}}let ft=0;class Vr{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class sn{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,this.__v_skip=!0}track(t){if(!L||!ce||L===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==L)s=this.activeLink=new Vr(L,this),L.deps?(s.prevDep=L.depsTail,L.depsTail.nextDep=s,L.depsTail=s):L.deps=L.depsTail=s,nn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=L.depsTail,s.nextDep=void 0,L.depsTail.nextDep=s,L.depsTail=s,L.deps===s&&(L.deps=n)}return s}trigger(t){this.version++,ft++,this.notify(t)}notify(t){fs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{cs()}}}function nn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)nn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const ds=new WeakMap,$e=Symbol(""),hs=Symbol(""),ct=Symbol("");function Y(e,t,s){if(ce&&L){let n=ds.get(e);n||ds.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new sn),r.map=n,r.key=s),r.track()}}function Ee(e,t,s,n,r,i){const o=ds.get(e);if(!o){ft++;return}const f=u=>{u&&u.trigger()};if(fs(),t==="clear")o.forEach(f);else{const u=A(e),h=u&&ts(s);if(u&&s==="length"){const a=Number(n);o.forEach((p,S)=>{(S==="length"||S===ct||!Je(S)&&S>=a)&&f(p)})}else switch((s!==void 0||o.has(void 0))&&f(o.get(s)),h&&f(o.get(ct)),t){case"add":u?h&&f(o.get("length")):(f(o.get($e)),rt(e)&&f(o.get(hs)));break;case"delete":u||(f(o.get($e)),rt(e)&&f(o.get(hs)));break;case"set":rt(e)&&f(o.get($e));break}}cs()}function Ye(e){const t=j(e);return t===e?t:(Y(t,"iterate",ct),pe(e)?t:t.map(ie))}function ps(e){return Y(e=j(e),"iterate",ct),e}const Kr={__proto__:null,[Symbol.iterator](){return gs(this,Symbol.iterator,ie)},concat(...e){return Ye(this).concat(...e.map(t=>A(t)?Ye(t):t))},entries(){return gs(this,"entries",e=>(e[1]=ie(e[1]),e))},every(e,t){return Pe(this,"every",e,t,void 0,arguments)},filter(e,t){return Pe(this,"filter",e,t,s=>s.map(ie),arguments)},find(e,t){return Pe(this,"find",e,t,ie,arguments)},findIndex(e,t){return Pe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Pe(this,"findLast",e,t,ie,arguments)},findLastIndex(e,t){return Pe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Pe(this,"forEach",e,t,void 0,arguments)},includes(...e){return _s(this,"includes",e)},indexOf(...e){return _s(this,"indexOf",e)},join(e){return Ye(this).join(e)},lastIndexOf(...e){return _s(this,"lastIndexOf",e)},map(e,t){return Pe(this,"map",e,t,void 0,arguments)},pop(){return ut(this,"pop")},push(...e){return ut(this,"push",e)},reduce(e,...t){return rn(this,"reduce",e,t)},reduceRight(e,...t){return rn(this,"reduceRight",e,t)},shift(){return ut(this,"shift")},some(e,t){return Pe(this,"some",e,t,void 0,arguments)},splice(...e){return ut(this,"splice",e)},toReversed(){return Ye(this).toReversed()},toSorted(e){return Ye(this).toSorted(e)},toSpliced(...e){return Ye(this).toSpliced(...e)},unshift(...e){return ut(this,"unshift",e)},values(){return gs(this,"values",ie)}};function gs(e,t,s){const n=ps(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=s(i.value)),i}),r}const Wr=Array.prototype;function Pe(e,t,s,n,r,i){const o=ps(e),f=o!==e&&!pe(e),u=o[t];if(u!==Wr[t]){const p=u.apply(e,i);return f?ie(p):p}let h=s;o!==e&&(f?h=function(p,S){return s.call(this,ie(p),S,e)}:s.length>2&&(h=function(p,S){return s.call(this,p,S,e)}));const a=u.call(o,h,n);return f&&r?r(a):a}function rn(e,t,s,n){const r=ps(e);let i=s;return r!==e&&(pe(e)?s.length>3&&(i=function(o,f,u){return s.call(this,o,f,u,e)}):i=function(o,f,u){return s.call(this,o,ie(f),u,e)}),r[t](i,...n)}function _s(e,t,s){const n=j(e);Y(n,"iterate",ct);const r=n[t](...s);return(r===-1||r===!1)&&vs(s[0])?(s[0]=j(s[0]),n[t](...s)):r}function ut(e,t,s=[]){de(),fs();const n=j(e)[t].apply(e,s);return cs(),he(),n}const Br=Qt("__proto__,__v_isRef,__isVue"),on=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function qr(e){Je(e)||(e=String(e));const t=j(this);return Y(t,"has",e),t.hasOwnProperty(e)}class ln{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?hn:dn:i?an:un).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=A(t);if(!r){let u;if(o&&(u=Kr[s]))return u;if(s==="hasOwnProperty")return qr}const f=Reflect.get(t,s,z(t)?t:n);return(Je(s)?on.has(s):Br(s))||(r||Y(t,"get",s),i)?f:z(f)?o&&ts(s)?f:f.value:q(f)?r?pn(f):bs(f):f}}class fn extends ln{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];if(!this._isShallow){const u=ze(i);if(!pe(n)&&!ze(n)&&(i=j(i),n=j(n)),!A(t)&&z(i)&&!z(n))return u?!1:(i.value=n,!0)}const o=A(t)&&ts(s)?Number(s)<t.length:D(t,s),f=Reflect.set(t,s,n,z(t)?t:r);return t===j(r)&&(o?Le(n,i)&&Ee(t,"set",s,n):Ee(t,"add",s,n)),f}deleteProperty(t,s){const n=D(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&Ee(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Je(s)||!on.has(s))&&Y(t,"has",s),n}ownKeys(t){return Y(t,"iterate",A(t)?"length":$e),Reflect.ownKeys(t)}}class cn extends ln{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Gr=new fn,Jr=new cn,Yr=new fn(!0),zr=new cn(!0),ms=e=>e,At=e=>Reflect.getPrototypeOf(e);function Xr(e,t,s){return function(...n){const r=this.__v_raw,i=j(r),o=rt(i),f=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,h=r[e](...n),a=s?ms:t?xs:ie;return!t&&Y(i,"iterate",u?hs:$e),{next(){const{value:p,done:S}=h.next();return S?{value:p,done:S}:{value:f?[a(p[0]),a(p[1])]:a(p),done:S}},[Symbol.iterator](){return this}}}}function It(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zr(e,t){const s={get(r){const i=this.__v_raw,o=j(i),f=j(r);e||(Le(r,f)&&Y(o,"get",r),Y(o,"get",f));const{has:u}=At(o),h=t?ms:e?xs:ie;if(u.call(o,r))return h(i.get(r));if(u.call(o,f))return h(i.get(f));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Y(j(r),"iterate",$e),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=j(i),f=j(r);return e||(Le(r,f)&&Y(o,"has",r),Y(o,"has",f)),r===f?i.has(r):i.has(r)||i.has(f)},forEach(r,i){const o=this,f=o.__v_raw,u=j(f),h=t?ms:e?xs:ie;return!e&&Y(u,"iterate",$e),f.forEach((a,p)=>r.call(i,h(a),h(p),o))}};return Z(s,e?{add:It("add"),set:It("set"),delete:It("delete"),clear:It("clear")}:{add(r){!t&&!pe(r)&&!ze(r)&&(r=j(r));const i=j(this);return At(i).has.call(i,r)||(i.add(r),Ee(i,"add",r,r)),this},set(r,i){!t&&!pe(i)&&!ze(i)&&(i=j(i));const o=j(this),{has:f,get:u}=At(o);let h=f.call(o,r);h||(r=j(r),h=f.call(o,r));const a=u.call(o,r);return o.set(r,i),h?Le(i,a)&&Ee(o,"set",r,i):Ee(o,"add",r,i),this},delete(r){const i=j(this),{has:o,get:f}=At(i);let u=o.call(i,r);u||(r=j(r),u=o.call(i,r)),f&&f.call(i,r);const h=i.delete(r);return u&&Ee(i,"delete",r,void 0),h},clear(){const r=j(this),i=r.size!==0,o=r.clear();return i&&Ee(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Xr(r,e,t)}),s}function Rt(e,t){const s=Zr(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(D(s,r)&&r in n?s:n,r,i)}const Qr={get:Rt(!1,!1)},kr={get:Rt(!1,!0)},ei={get:Rt(!0,!1)},ti={get:Rt(!0,!0)},un=new WeakMap,an=new WeakMap,dn=new WeakMap,hn=new WeakMap;function si(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ni(e){return e.__v_skip||!Object.isExtensible(e)?0:si(Or(e))}function bs(e){return ze(e)?e:Mt(e,!1,Gr,Qr,un)}function ri(e){return Mt(e,!1,Yr,kr,an)}function pn(e){return Mt(e,!0,Jr,ei,dn)}function cl(e){return Mt(e,!0,zr,ti,hn)}function Mt(e,t,s,n,r){if(!q(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=ni(e);if(i===0)return e;const o=r.get(e);if(o)return o;const f=new Proxy(e,i===2?n:s);return r.set(e,f),f}function at(e){return ze(e)?at(e.__v_raw):!!(e&&e.__v_isReactive)}function ze(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function vs(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function ii(e){return!D(e,"__v_skip")&&Object.isExtensible(e)&&rs(e,"__v_skip",!0),e}const ie=e=>q(e)?bs(e):e,xs=e=>q(e)?pn(e):e;function z(e){return e?e.__v_isRef===!0:!1}function oi(e){return z(e)?e.value:e}const li={get:(e,t,s)=>t==="__v_raw"?e:oi(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return z(r)&&!z(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function gn(e){return at(e)?e:new Proxy(e,li)}class fi{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new sn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ft-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&L!==this)return Xs(this,!0),!0}get value(){const t=this.dep.track();return ks(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ci(e,t,s=!1){let n,r;return I(e)?n=e:(n=e.get,r=e.set),new fi(n,r,s)}const Ft={},Dt=new WeakMap;let Ve;function ui(e,t=!1,s=Ve){if(s){let n=Dt.get(s);n||Dt.set(s,n=[]),n.push(e)}}function ai(e,t,s=U){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:f,call:u}=s,h=P=>r?P:pe(P)||r===!1||r===0?Me(P,1):Me(P);let a,p,S,T,F=!1,M=!1;if(z(e)?(p=()=>e.value,F=pe(e)):at(e)?(p=()=>h(e),F=!0):A(e)?(M=!0,F=e.some(P=>at(P)||pe(P)),p=()=>e.map(P=>{if(z(P))return P.value;if(at(P))return h(P);if(I(P))return u?u(P,2):P()})):I(e)?t?p=u?()=>u(e,2):e:p=()=>{if(S){de();try{S()}finally{he()}}const P=Ve;Ve=a;try{return u?u(e,3,[T]):e(T)}finally{Ve=P}}:p=ae,t&&r){const P=p,G=r===!0?1/0:r;p=()=>Me(P(),G)}const X=Lr(),N=()=>{a.stop(),X&&X.active&&es(X.effects,a)};if(i&&t){const P=t;t=(...G)=>{P(...G),N()}}let W=M?new Array(e.length).fill(Ft):Ft;const B=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const G=a.run();if(r||F||(M?G.some((He,xe)=>Le(He,W[xe])):Le(G,W))){S&&S();const He=Ve;Ve=a;try{const xe=[G,W===Ft?void 0:M&&W[0]===Ft?[]:W,T];W=G,u?u(t,3,xe):t(...xe)}finally{Ve=He}}}else a.run()};return f&&f(B),a=new Ys(p),a.scheduler=o?()=>o(B,!1):B,T=P=>ui(P,!1,a),S=a.onStop=()=>{const P=Dt.get(a);if(P){if(u)u(P,4);else for(const G of P)G();Dt.delete(a)}},t?n?B(!0):W=a.run():o?o(B.bind(null,!0),!0):a.run(),N.pause=a.pause.bind(a),N.resume=a.resume.bind(a),N.stop=N,N}function Me(e,t=1/0,s){if(t<=0||!q(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,z(e))Me(e.value,t,s);else if(A(e))for(let n=0;n<e.length;n++)Me(e[n],t,s);else if(Er(e)||rt(e))e.forEach(n=>{Me(n,t,s)});else if(Ar(e)){for(const n in e)Me(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Me(e[n],t,s)}return e}/**
10
+ * @vue/runtime-core v3.5.17
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const dt=[];let ys=!1;function ul(e,...t){if(ys)return;ys=!0,de();const s=dt.length?dt[dt.length-1].component:null,n=s&&s.appContext.config.warnHandler,r=di();if(n)Xe(n,s,11,[e+t.map(i=>{var o,f;return(f=(o=i.toString)==null?void 0:o.call(i))!=null?f:JSON.stringify(i)}).join(""),s&&s.proxy,r.map(({vnode:i})=>`at <${rr(s,i.type)}>`).join(`
14
+ `),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
15
+ `,...hi(r)),console.warn(...i)}he(),ys=!1}function di(){let e=dt[dt.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function hi(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[`
16
+ `],...pi(s))}),t}function pi({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${rr(e.component,e.type,n)}`,i=">"+s;return e.props?[r,...gi(e.props),i]:[r+i]}function gi(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(..._n(n,e[n]))}),s.length>3&&t.push(" ..."),t}function _n(e,t,s){return J(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:z(t)?(t=_n(e,j(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):I(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=j(t),s?t:[`${e}=`,t])}function Xe(e,t,s,n){try{return n?e(...n):e()}catch(r){jt(r,t,s)}}function ge(e,t,s,n){if(I(e)){const r=Xe(e,t,s,n);return r&&Bs(r)&&r.catch(i=>{jt(i,t,s)}),r}if(A(e)){const r=[];for(let i=0;i<e.length;i++)r.push(ge(e[i],t,s,n));return r}}function jt(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||U;if(t){let f=t.parent;const u=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${s}`;for(;f;){const a=f.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,u,h)===!1)return}f=f.parent}if(i){de(),Xe(i,null,10,[e,u,h]),he();return}}_i(e,s,r,n,o)}function _i(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const Q=[];let _e=-1;const Ze=[];let Fe=null,Qe=0;const mn=Promise.resolve();let Ht=null;function mi(e){const t=Ht||mn;return e?t.then(this?e.bind(this):e):t}function bi(e){let t=_e+1,s=Q.length;for(;t<s;){const n=t+s>>>1,r=Q[n],i=ht(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function ws(e){if(!(e.flags&1)){const t=ht(e),s=Q[Q.length-1];!s||!(e.flags&2)&&t>=ht(s)?Q.push(e):Q.splice(bi(t),0,e),e.flags|=1,bn()}}function bn(){Ht||(Ht=mn.then(yn))}function vi(e){A(e)?Ze.push(...e):Fe&&e.id===-1?Fe.splice(Qe+1,0,e):e.flags&1||(Ze.push(e),e.flags|=1),bn()}function vn(e,t,s=_e+1){for(;s<Q.length;s++){const n=Q[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Q.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function xn(e){if(Ze.length){const t=[...new Set(Ze)].sort((s,n)=>ht(s)-ht(n));if(Ze.length=0,Fe){Fe.push(...t);return}for(Fe=t,Qe=0;Qe<Fe.length;Qe++){const s=Fe[Qe];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Fe=null,Qe=0}}const ht=e=>e.id==null?e.flags&2?-1:1/0:e.id;function yn(e){try{for(_e=0;_e<Q.length;_e++){const t=Q[_e];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Xe(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_e<Q.length;_e++){const t=Q[_e];t&&(t.flags&=-2)}_e=-1,Q.length=0,xn(),Ht=null,(Q.length||Ze.length)&&yn()}}let me=null,wn=null;function Nt(e){const t=me;return me=e,wn=e&&e.type.__scopeId||null,t}function xi(e,t=me,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Qn(-1);const i=Nt(t);let o;try{o=e(...r)}finally{Nt(i),n._d&&Qn(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ke(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const f=r[o];i&&(f.oldValue=i[o].value);let u=f.dir[n];u&&(de(),ge(u,s,8,[e.el,f,e,t]),he())}}const yi=Symbol("_vte"),wi=e=>e.__isTeleport;function Ss(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ss(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Sn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pt(e,t,s,n,r=!1){if(A(e)){e.forEach((F,M)=>pt(F,t&&(A(t)?t[M]:t),s,n,r));return}if(gt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&pt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Ns(n.component):n.el,o=r?null:i,{i:f,r:u}=e,h=t&&t.r,a=f.refs===U?f.refs={}:f.refs,p=f.setupState,S=j(p),T=p===U?()=>!1:F=>D(S,F);if(h!=null&&h!==u&&(J(h)?(a[h]=null,T(h)&&(p[h]=null)):z(h)&&(h.value=null)),I(u))Xe(u,f,12,[o,a]);else{const F=J(u),M=z(u);if(F||M){const X=()=>{if(e.f){const N=F?T(u)?p[u]:a[u]:u.value;r?A(N)&&es(N,i):A(N)?N.includes(i)||N.push(i):F?(a[u]=[i],T(u)&&(p[u]=a[u])):(u.value=[i],e.k&&(a[e.k]=u.value))}else F?(a[u]=o,T(u)&&(p[u]=o)):M&&(u.value=o,e.k&&(a[e.k]=o))};o?(X.id=-1,oe(X,s)):X()}}}Ot().requestIdleCallback,Ot().cancelIdleCallback;const gt=e=>!!e.type.__asyncLoader,Tn=e=>e.type.__isKeepAlive;function Si(e,t){Cn(e,"a",t)}function Ti(e,t){Cn(e,"da",t)}function Cn(e,t,s=ee){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ut(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Tn(r.parent.vnode)&&Ci(n,t,s,r),r=r.parent}}function Ci(e,t,s,n){const r=Ut(t,e,n,!0);En(()=>{es(n[t],r)},s)}function Ut(e,t,s=ee,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{de();const f=vt(s),u=ge(t,s,e,o);return f(),he(),u});return n?r.unshift(i):r.push(i),i}}const Oe=e=>(t,s=ee)=>{(!xt||e==="sp")&&Ut(e,(...n)=>t(...n),s)},Ei=Oe("bm"),Pi=Oe("m"),Oi=Oe("bu"),Ai=Oe("u"),Ii=Oe("bum"),En=Oe("um"),Ri=Oe("sp"),Mi=Oe("rtg"),Fi=Oe("rtc");function Di(e,t=ee){Ut("ec",e,t)}const ji=Symbol.for("v-ndc"),Ts=e=>e?tr(e)?Ns(e):Ts(e.parent):null,_t=Z(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ts(e.parent),$root:e=>Ts(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>In(e),$forceUpdate:e=>e.f||(e.f=()=>{ws(e.update)}),$nextTick:e=>e.n||(e.n=mi.bind(e.proxy)),$watch:e=>no.bind(e)}),Cs=(e,t)=>e!==U&&!e.__isScriptSetup&&D(e,t),Hi={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:f,appContext:u}=e;let h;if(t[0]!=="$"){const T=o[t];if(T!==void 0)switch(T){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(Cs(n,t))return o[t]=1,n[t];if(r!==U&&D(r,t))return o[t]=2,r[t];if((h=e.propsOptions[0])&&D(h,t))return o[t]=3,i[t];if(s!==U&&D(s,t))return o[t]=4,s[t];Es&&(o[t]=0)}}const a=_t[t];let p,S;if(a)return t==="$attrs"&&Y(e.attrs,"get",""),a(e);if((p=f.__cssModules)&&(p=p[t]))return p;if(s!==U&&D(s,t))return o[t]=4,s[t];if(S=u.config.globalProperties,D(S,t))return S[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return Cs(r,t)?(r[t]=s,!0):n!==U&&D(n,t)?(n[t]=s,!0):D(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,propsOptions:i}},o){let f;return!!s[o]||e!==U&&D(e,o)||Cs(t,o)||(f=i[0])&&D(f,o)||D(n,o)||D(_t,o)||D(r.config.globalProperties,o)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:D(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Pn(e){return A(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Es=!0;function Ni(e){const t=In(e),s=e.proxy,n=e.ctx;Es=!1,t.beforeCreate&&On(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:f,provide:u,inject:h,created:a,beforeMount:p,mounted:S,beforeUpdate:T,updated:F,activated:M,deactivated:X,beforeDestroy:N,beforeUnmount:W,destroyed:B,unmounted:P,render:G,renderTracked:He,renderTriggered:xe,errorCaptured:Ne,serverPrefetch:Jt,expose:Be,inheritAttrs:yt,components:Yt,directives:zt,filters:Vs}=t;if(h&&Ui(h,n,null),o)for(const K in o){const $=o[K];I($)&&(n[K]=$.bind(s))}if(r){const K=r.call(s,s);q(K)&&(e.data=bs(K))}if(Es=!0,i)for(const K in i){const $=i[K],qe=I($)?$.bind(s,s):I($.get)?$.get.bind(s,s):ae,Xt=!I($)&&I($.set)?$.set.bind(s):ae,Ge=Oo({get:qe,set:Xt});Object.defineProperty(n,K,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:ye=>Ge.value=ye})}if(f)for(const K in f)An(f[K],n,s,K);if(u){const K=I(u)?u.call(s):u;Reflect.ownKeys(K).forEach($=>{Bi($,K[$])})}a&&On(a,e,"c");function te(K,$){A($)?$.forEach(qe=>K(qe.bind(s))):$&&K($.bind(s))}if(te(Ei,p),te(Pi,S),te(Oi,T),te(Ai,F),te(Si,M),te(Ti,X),te(Di,Ne),te(Fi,He),te(Mi,xe),te(Ii,W),te(En,P),te(Ri,Jt),A(Be))if(Be.length){const K=e.exposed||(e.exposed={});Be.forEach($=>{Object.defineProperty(K,$,{get:()=>s[$],set:qe=>s[$]=qe})})}else e.exposed||(e.exposed={});G&&e.render===ae&&(e.render=G),yt!=null&&(e.inheritAttrs=yt),Yt&&(e.components=Yt),zt&&(e.directives=zt),Jt&&Sn(e)}function Ui(e,t,s=ae){A(e)&&(e=Ps(e));for(const n in e){const r=e[n];let i;q(r)?"default"in r?i=$t(r.from||n,r.default,!0):i=$t(r.from||n):i=$t(r),z(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function On(e,t,s){ge(A(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function An(e,t,s,n){let r=n.includes(".")?Jn(s,n):()=>s[n];if(J(e)){const i=t[e];I(i)&&Ms(r,i)}else if(I(e))Ms(r,e.bind(s));else if(q(e))if(A(e))e.forEach(i=>An(i,t,s,n));else{const i=I(e.handler)?e.handler.bind(s):t[e.handler];I(i)&&Ms(r,i,e)}}function In(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,f=i.get(t);let u;return f?u=f:!r.length&&!s&&!n?u=t:(u={},r.length&&r.forEach(h=>Lt(u,h,o,!0)),Lt(u,t,o)),q(t)&&i.set(t,u),u}function Lt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&Lt(e,i,s,!0),r&&r.forEach(o=>Lt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const f=Li[o]||s&&s[o];e[o]=f?f(e[o],t[o]):t[o]}return e}const Li={data:Rn,props:Mn,emits:Mn,methods:mt,computed:mt,beforeCreate:k,created:k,beforeMount:k,mounted:k,beforeUpdate:k,updated:k,beforeDestroy:k,beforeUnmount:k,destroyed:k,unmounted:k,activated:k,deactivated:k,errorCaptured:k,serverPrefetch:k,components:mt,directives:mt,watch:Vi,provide:Rn,inject:$i};function Rn(e,t){return t?e?function(){return Z(I(e)?e.call(this,this):e,I(t)?t.call(this,this):t)}:t:e}function $i(e,t){return mt(Ps(e),Ps(t))}function Ps(e){if(A(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function k(e,t){return e?[...new Set([].concat(e,t))]:t}function mt(e,t){return e?Z(Object.create(null),e,t):t}function Mn(e,t){return e?A(e)&&A(t)?[...new Set([...e,...t])]:Z(Object.create(null),Pn(e),Pn(t!=null?t:{})):t}function Vi(e,t){if(!e)return t;if(!t)return e;const s=Z(Object.create(null),e);for(const n in t)s[n]=k(e[n],t[n]);return s}function Fn(){return{app:null,config:{isNativeTag:Tr,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 Ki=0;function Wi(e,t){return function(n,r=null){I(n)||(n=Z({},n)),r!=null&&!q(r)&&(r=null);const i=Fn(),o=new WeakSet,f=[];let u=!1;const h=i.app={_uid:Ki++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Io,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&I(a.install)?(o.add(a),a.install(h,...p)):I(a)&&(o.add(a),a(h,...p))),h},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),h},component(a,p){return p?(i.components[a]=p,h):i.components[a]},directive(a,p){return p?(i.directives[a]=p,h):i.directives[a]},mount(a,p,S){if(!u){const T=h._ceVNode||ue(n,r);return T.appContext=i,S===!0?S="svg":S===!1&&(S=void 0),e(T,a,S),u=!0,h._container=a,a.__vue_app__=h,Ns(T.component)}},onUnmount(a){f.push(a)},unmount(){u&&(ge(f,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(a,p){return i.provides[a]=p,h},runWithContext(a){const p=ke;ke=h;try{return a()}finally{ke=p}}};return h}}let ke=null;function Bi(e,t){if(ee){let s=ee.provides;const n=ee.parent&&ee.parent.provides;n===s&&(s=ee.provides=Object.create(n)),s[e]=t}}function $t(e,t,s=!1){const n=ee||me;if(n||ke){let r=ke?ke._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&I(t)?t.call(n&&n.proxy):t}}const Dn={},jn=()=>Object.create(Dn),Hn=e=>Object.getPrototypeOf(e)===Dn;function qi(e,t,s,n=!1){const r={},i=jn();e.propsDefaults=Object.create(null),Nn(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:ri(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Gi(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,f=j(r),[u]=e.propsOptions;let h=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let S=a[p];if(Vt(e.emitsOptions,S))continue;const T=t[S];if(u)if(D(i,S))T!==i[S]&&(i[S]=T,h=!0);else{const F=Re(S);r[F]=Os(u,f,F,T,e,!1)}else T!==i[S]&&(i[S]=T,h=!0)}}}else{Nn(e,t,r,i)&&(h=!0);let a;for(const p in f)(!t||!D(t,p)&&((a=Ue(p))===p||!D(t,a)))&&(u?s&&(s[p]!==void 0||s[a]!==void 0)&&(r[p]=Os(u,f,p,void 0,e,!0)):delete r[p]);if(i!==f)for(const p in i)(!t||!D(t,p))&&(delete i[p],h=!0)}h&&Ee(e.attrs,"set","")}function Nn(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,f;if(t)for(let u in t){if(it(u))continue;const h=t[u];let a;r&&D(r,a=Re(u))?!i||!i.includes(a)?s[a]=h:(f||(f={}))[a]=h:Vt(e.emitsOptions,u)||(!(u in n)||h!==n[u])&&(n[u]=h,o=!0)}if(i){const u=j(s),h=f||U;for(let a=0;a<i.length;a++){const p=i[a];s[p]=Os(r,u,p,h[p],e,!D(h,p))}}return o}function Os(e,t,s,n,r,i){const o=e[s];if(o!=null){const f=D(o,"default");if(f&&n===void 0){const u=o.default;if(o.type!==Function&&!o.skipFactory&&I(u)){const{propsDefaults:h}=r;if(s in h)n=h[s];else{const a=vt(r);n=h[s]=u.call(null,t),a()}}else n=u;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!f?n=!1:o[1]&&(n===""||n===Ue(s))&&(n=!0))}return n}const Ji=new WeakMap;function Un(e,t,s=!1){const n=s?Ji:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},f=[];let u=!1;if(!I(e)){const a=p=>{u=!0;const[S,T]=Un(p,t,!0);Z(o,S),T&&f.push(...T)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!u)return q(e)&&n.set(e,nt),nt;if(A(i))for(let a=0;a<i.length;a++){const p=Re(i[a]);Ln(p)&&(o[p]=U)}else if(i)for(const a in i){const p=Re(a);if(Ln(p)){const S=i[a],T=o[p]=A(S)||I(S)?{type:S}:Z({},S),F=T.type;let M=!1,X=!0;if(A(F))for(let N=0;N<F.length;++N){const W=F[N],B=I(W)&&W.name;if(B==="Boolean"){M=!0;break}else B==="String"&&(X=!1)}else M=I(F)&&F.name==="Boolean";T[0]=M,T[1]=X,(M||D(T,"default"))&&f.push(p)}}const h=[o,f];return q(e)&&n.set(e,h),h}function Ln(e){return e[0]!=="$"&&!it(e)}const As=e=>e[0]==="_"||e==="$stable",Is=e=>A(e)?e.map(be):[be(e)],Yi=(e,t,s)=>{if(t._n)return t;const n=xi((...r)=>Is(t(...r)),s);return n._c=!1,n},$n=(e,t,s)=>{const n=e._ctx;for(const r in e){if(As(r))continue;const i=e[r];if(I(i))t[r]=Yi(r,i,n);else if(i!=null){const o=Is(i);t[r]=()=>o}}},Vn=(e,t)=>{const s=Is(t);e.slots.default=()=>s},Kn=(e,t,s)=>{for(const n in t)(s||!As(n))&&(e[n]=t[n])},zi=(e,t,s)=>{const n=e.slots=jn();if(e.vnode.shapeFlag&32){const r=t.__;r&&rs(n,"__",r,!0);const i=t._;i?(Kn(n,t,s),s&&rs(n,"_",i,!0)):$n(t,n)}else t&&Vn(e,t)},Xi=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=U;if(n.shapeFlag&32){const f=t._;f?s&&f===1?i=!1:Kn(r,t,s):(i=!t.$stable,$n(t,r)),o=t}else t&&(Vn(e,t),o={default:1});if(i)for(const f in r)!As(f)&&o[f]==null&&delete r[f]},oe=uo;function Zi(e){return Qi(e)}function Qi(e,t){const s=Ot();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:f,createComment:u,setText:h,setElementText:a,parentNode:p,nextSibling:S,setScopeId:T=ae,insertStaticContent:F}=e,M=(l,c,d,m=null,g=null,_=null,y=void 0,x=null,v=!!c.dynamicChildren)=>{if(l===c)return;l&&!bt(l,c)&&(m=Zt(l),ye(l,g,_,!0),l=null),c.patchFlag===-2&&(v=!1,c.dynamicChildren=null);const{type:b,ref:E,shapeFlag:w}=c;switch(b){case Kt:X(l,c,d,m);break;case et:N(l,c,d,m);break;case Fs:l==null&&W(c,d,m,y);break;case Ae:Yt(l,c,d,m,g,_,y,x,v);break;default:w&1?G(l,c,d,m,g,_,y,x,v):w&6?zt(l,c,d,m,g,_,y,x,v):(w&64||w&128)&&b.process(l,c,d,m,g,_,y,x,v,St)}E!=null&&g?pt(E,l&&l.ref,_,c||l,!c):E==null&&l&&l.ref!=null&&pt(l.ref,null,_,l,!0)},X=(l,c,d,m)=>{if(l==null)n(c.el=f(c.children),d,m);else{const g=c.el=l.el;c.children!==l.children&&h(g,c.children)}},N=(l,c,d,m)=>{l==null?n(c.el=u(c.children||""),d,m):c.el=l.el},W=(l,c,d,m)=>{[l.el,l.anchor]=F(l.children,c,d,m,l.el,l.anchor)},B=({el:l,anchor:c},d,m)=>{let g;for(;l&&l!==c;)g=S(l),n(l,d,m),l=g;n(c,d,m)},P=({el:l,anchor:c})=>{let d;for(;l&&l!==c;)d=S(l),r(l),l=d;r(c)},G=(l,c,d,m,g,_,y,x,v)=>{c.type==="svg"?y="svg":c.type==="math"&&(y="mathml"),l==null?He(c,d,m,g,_,y,x,v):Jt(l,c,g,_,y,x,v)},He=(l,c,d,m,g,_,y,x)=>{let v,b;const{props:E,shapeFlag:w,transition:C,dirs:O}=l;if(v=l.el=o(l.type,_,E&&E.is,E),w&8?a(v,l.children):w&16&&Ne(l.children,v,null,m,g,Rs(l,_),y,x),O&&Ke(l,null,m,"created"),xe(v,l,l.scopeId,y,m),E){for(const V in E)V!=="value"&&!it(V)&&i(v,V,null,E[V],_,m);"value"in E&&i(v,"value",null,E.value,_),(b=E.onVnodeBeforeMount)&&ve(b,m,l)}O&&Ke(l,null,m,"beforeMount");const R=ki(g,C);R&&C.beforeEnter(v),n(v,c,d),((b=E&&E.onVnodeMounted)||R||O)&&oe(()=>{b&&ve(b,m,l),R&&C.enter(v),O&&Ke(l,null,m,"mounted")},g)},xe=(l,c,d,m,g)=>{if(d&&T(l,d),m)for(let _=0;_<m.length;_++)T(l,m[_]);if(g){let _=g.subTree;if(c===_||Zn(_.type)&&(_.ssContent===c||_.ssFallback===c)){const y=g.vnode;xe(l,y,y.scopeId,y.slotScopeIds,g.parent)}}},Ne=(l,c,d,m,g,_,y,x,v=0)=>{for(let b=v;b<l.length;b++){const E=l[b]=x?je(l[b]):be(l[b]);M(null,E,c,d,m,g,_,y,x)}},Jt=(l,c,d,m,g,_,y)=>{const x=c.el=l.el;let{patchFlag:v,dynamicChildren:b,dirs:E}=c;v|=l.patchFlag&16;const w=l.props||U,C=c.props||U;let O;if(d&&We(d,!1),(O=C.onVnodeBeforeUpdate)&&ve(O,d,c,l),E&&Ke(c,l,d,"beforeUpdate"),d&&We(d,!0),(w.innerHTML&&C.innerHTML==null||w.textContent&&C.textContent==null)&&a(x,""),b?Be(l.dynamicChildren,b,x,d,m,Rs(c,g),_):y||$(l,c,x,null,d,m,Rs(c,g),_,!1),v>0){if(v&16)yt(x,w,C,d,g);else if(v&2&&w.class!==C.class&&i(x,"class",null,C.class,g),v&4&&i(x,"style",w.style,C.style,g),v&8){const R=c.dynamicProps;for(let V=0;V<R.length;V++){const H=R[V],ne=w[H],re=C[H];(re!==ne||H==="value")&&i(x,H,ne,re,g,d)}}v&1&&l.children!==c.children&&a(x,c.children)}else!y&&b==null&&yt(x,w,C,d,g);((O=C.onVnodeUpdated)||E)&&oe(()=>{O&&ve(O,d,c,l),E&&Ke(c,l,d,"updated")},m)},Be=(l,c,d,m,g,_,y)=>{for(let x=0;x<c.length;x++){const v=l[x],b=c[x],E=v.el&&(v.type===Ae||!bt(v,b)||v.shapeFlag&198)?p(v.el):d;M(v,b,E,null,m,g,_,y,!0)}},yt=(l,c,d,m,g)=>{if(c!==d){if(c!==U)for(const _ in c)!it(_)&&!(_ in d)&&i(l,_,c[_],null,g,m);for(const _ in d){if(it(_))continue;const y=d[_],x=c[_];y!==x&&_!=="value"&&i(l,_,x,y,g,m)}"value"in d&&i(l,"value",c.value,d.value,g)}},Yt=(l,c,d,m,g,_,y,x,v)=>{const b=c.el=l?l.el:f(""),E=c.anchor=l?l.anchor:f("");let{patchFlag:w,dynamicChildren:C,slotScopeIds:O}=c;O&&(x=x?x.concat(O):O),l==null?(n(b,d,m),n(E,d,m),Ne(c.children||[],d,E,g,_,y,x,v)):w>0&&w&64&&C&&l.dynamicChildren?(Be(l.dynamicChildren,C,d,g,_,y,x),(c.key!=null||g&&c===g.subTree)&&Wn(l,c,!0)):$(l,c,d,E,g,_,y,x,v)},zt=(l,c,d,m,g,_,y,x,v)=>{c.slotScopeIds=x,l==null?c.shapeFlag&512?g.ctx.activate(c,d,m,y,v):Vs(c,d,m,g,_,y,v):vr(l,c,v)},Vs=(l,c,d,m,g,_,y)=>{const x=l.component=vo(l,m,g);if(Tn(l)&&(x.ctx.renderer=St),xo(x,!1,y),x.asyncDep){if(g&&g.registerDep(x,te,y),!l.el){const v=x.subTree=ue(et);N(null,v,c,d)}}else te(x,l,c,d,g,_,y)},vr=(l,c,d)=>{const m=c.component=l.component;if(fo(l,c,d))if(m.asyncDep&&!m.asyncResolved){K(m,c,d);return}else m.next=c,m.update();else c.el=l.el,m.vnode=c},te=(l,c,d,m,g,_,y)=>{const x=()=>{if(l.isMounted){let{next:w,bu:C,u:O,parent:R,vnode:V}=l;{const Se=Bn(l);if(Se){w&&(w.el=V.el,K(l,w,y)),Se.asyncDep.then(()=>{l.isUnmounted||x()});return}}let H=w,ne;We(l,!1),w?(w.el=V.el,K(l,w,y)):w=V,C&&ns(C),(ne=w.props&&w.props.onVnodeBeforeUpdate)&&ve(ne,R,w,V),We(l,!0);const re=zn(l),we=l.subTree;l.subTree=re,M(we,re,p(we.el),Zt(we),l,g,_),w.el=re.el,H===null&&co(l,re.el),O&&oe(O,g),(ne=w.props&&w.props.onVnodeUpdated)&&oe(()=>ve(ne,R,w,V),g)}else{let w;const{el:C,props:O}=c,{bm:R,m:V,parent:H,root:ne,type:re}=l,we=gt(c);We(l,!1),R&&ns(R),!we&&(w=O&&O.onVnodeBeforeMount)&&ve(w,H,c),We(l,!0);{ne.ce&&ne.ce._def.shadowRoot!==!1&&ne.ce._injectChildStyle(re);const Se=l.subTree=zn(l);M(null,Se,d,m,l,g,_),c.el=Se.el}if(V&&oe(V,g),!we&&(w=O&&O.onVnodeMounted)){const Se=c;oe(()=>ve(w,H,Se),g)}(c.shapeFlag&256||H&&gt(H.vnode)&&H.vnode.shapeFlag&256)&&l.a&&oe(l.a,g),l.isMounted=!0,c=d=m=null}};l.scope.on();const v=l.effect=new Ys(x);l.scope.off();const b=l.update=v.run.bind(v),E=l.job=v.runIfDirty.bind(v);E.i=l,E.id=l.uid,v.scheduler=()=>ws(E),We(l,!0),b()},K=(l,c,d)=>{c.component=l;const m=l.vnode.props;l.vnode=c,l.next=null,Gi(l,c.props,m,d),Xi(l,c.children,d),de(),vn(l),he()},$=(l,c,d,m,g,_,y,x,v=!1)=>{const b=l&&l.children,E=l?l.shapeFlag:0,w=c.children,{patchFlag:C,shapeFlag:O}=c;if(C>0){if(C&128){Xt(b,w,d,m,g,_,y,x,v);return}else if(C&256){qe(b,w,d,m,g,_,y,x,v);return}}O&8?(E&16&&wt(b,g,_),w!==b&&a(d,w)):E&16?O&16?Xt(b,w,d,m,g,_,y,x,v):wt(b,g,_,!0):(E&8&&a(d,""),O&16&&Ne(w,d,m,g,_,y,x,v))},qe=(l,c,d,m,g,_,y,x,v)=>{l=l||nt,c=c||nt;const b=l.length,E=c.length,w=Math.min(b,E);let C;for(C=0;C<w;C++){const O=c[C]=v?je(c[C]):be(c[C]);M(l[C],O,d,null,g,_,y,x,v)}b>E?wt(l,g,_,!0,!1,w):Ne(c,d,m,g,_,y,x,v,w)},Xt=(l,c,d,m,g,_,y,x,v)=>{let b=0;const E=c.length;let w=l.length-1,C=E-1;for(;b<=w&&b<=C;){const O=l[b],R=c[b]=v?je(c[b]):be(c[b]);if(bt(O,R))M(O,R,d,null,g,_,y,x,v);else break;b++}for(;b<=w&&b<=C;){const O=l[w],R=c[C]=v?je(c[C]):be(c[C]);if(bt(O,R))M(O,R,d,null,g,_,y,x,v);else break;w--,C--}if(b>w){if(b<=C){const O=C+1,R=O<E?c[O].el:m;for(;b<=C;)M(null,c[b]=v?je(c[b]):be(c[b]),d,R,g,_,y,x,v),b++}}else if(b>C)for(;b<=w;)ye(l[b],g,_,!0),b++;else{const O=b,R=b,V=new Map;for(b=R;b<=C;b++){const le=c[b]=v?je(c[b]):be(c[b]);le.key!=null&&V.set(le.key,b)}let H,ne=0;const re=C-R+1;let we=!1,Se=0;const Tt=new Array(re);for(b=0;b<re;b++)Tt[b]=0;for(b=O;b<=w;b++){const le=l[b];if(ne>=re){ye(le,g,_,!0);continue}let Te;if(le.key!=null)Te=V.get(le.key);else for(H=R;H<=C;H++)if(Tt[H-R]===0&&bt(le,c[H])){Te=H;break}Te===void 0?ye(le,g,_,!0):(Tt[Te-R]=b+1,Te>=Se?Se=Te:we=!0,M(le,c[Te],d,null,g,_,y,x,v),ne++)}const wr=we?eo(Tt):nt;for(H=wr.length-1,b=re-1;b>=0;b--){const le=R+b,Te=c[le],Sr=le+1<E?c[le+1].el:m;Tt[b]===0?M(null,Te,d,Sr,g,_,y,x,v):we&&(H<0||b!==wr[H]?Ge(Te,d,Sr,2):H--)}}},Ge=(l,c,d,m,g=null)=>{const{el:_,type:y,transition:x,children:v,shapeFlag:b}=l;if(b&6){Ge(l.component.subTree,c,d,m);return}if(b&128){l.suspense.move(c,d,m);return}if(b&64){y.move(l,c,d,St);return}if(y===Ae){n(_,c,d);for(let w=0;w<v.length;w++)Ge(v[w],c,d,m);n(l.anchor,c,d);return}if(y===Fs){B(l,c,d);return}if(m!==2&&b&1&&x)if(m===0)x.beforeEnter(_),n(_,c,d),oe(()=>x.enter(_),g);else{const{leave:w,delayLeave:C,afterLeave:O}=x,R=()=>{l.ctx.isUnmounted?r(_):n(_,c,d)},V=()=>{w(_,()=>{R(),O&&O()})};C?C(_,R,V):V()}else n(_,c,d)},ye=(l,c,d,m=!1,g=!1)=>{const{type:_,props:y,ref:x,children:v,dynamicChildren:b,shapeFlag:E,patchFlag:w,dirs:C,cacheIndex:O}=l;if(w===-2&&(g=!1),x!=null&&(de(),pt(x,null,d,l,!0),he()),O!=null&&(c.renderCache[O]=void 0),E&256){c.ctx.deactivate(l);return}const R=E&1&&C,V=!gt(l);let H;if(V&&(H=y&&y.onVnodeBeforeUnmount)&&ve(H,c,l),E&6)ll(l.component,d,m);else{if(E&128){l.suspense.unmount(d,m);return}R&&Ke(l,null,c,"beforeUnmount"),E&64?l.type.remove(l,c,d,St,m):b&&!b.hasOnce&&(_!==Ae||w>0&&w&64)?wt(b,c,d,!1,!0):(_===Ae&&w&384||!g&&E&16)&&wt(v,c,d),m&&xr(l)}(V&&(H=y&&y.onVnodeUnmounted)||R)&&oe(()=>{H&&ve(H,c,l),R&&Ke(l,null,c,"unmounted")},d)},xr=l=>{const{type:c,el:d,anchor:m,transition:g}=l;if(c===Ae){ol(d,m);return}if(c===Fs){P(l);return}const _=()=>{r(d),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(l.shapeFlag&1&&g&&!g.persisted){const{leave:y,delayLeave:x}=g,v=()=>y(d,_);x?x(l.el,_,v):v()}else _()},ol=(l,c)=>{let d;for(;l!==c;)d=S(l),r(l),l=d;r(c)},ll=(l,c,d)=>{const{bum:m,scope:g,job:_,subTree:y,um:x,m:v,a:b,parent:E,slots:{__:w}}=l;qn(v),qn(b),m&&ns(m),E&&A(w)&&w.forEach(C=>{E.renderCache[C]=void 0}),g.stop(),_&&(_.flags|=8,ye(y,l,c,d)),x&&oe(x,c),oe(()=>{l.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},wt=(l,c,d,m=!1,g=!1,_=0)=>{for(let y=_;y<l.length;y++)ye(l[y],c,d,m,g)},Zt=l=>{if(l.shapeFlag&6)return Zt(l.component.subTree);if(l.shapeFlag&128)return l.suspense.next();const c=S(l.anchor||l.el),d=c&&c[yi];return d?S(d):c};let Ks=!1;const yr=(l,c,d)=>{l==null?c._vnode&&ye(c._vnode,null,null,!0):M(c._vnode||null,l,c,null,null,null,d),c._vnode=l,Ks||(Ks=!0,vn(),xn(),Ks=!1)},St={p:M,um:ye,m:Ge,r:xr,mt:Vs,mc:Ne,pc:$,pbc:Be,n:Zt,o:e};return{render:yr,hydrate:void 0,createApp:Wi(yr)}}function Rs({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function We({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ki(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wn(e,t,s=!1){const n=e.children,r=t.children;if(A(n)&&A(r))for(let i=0;i<n.length;i++){const o=n[i];let f=r[i];f.shapeFlag&1&&!f.dynamicChildren&&((f.patchFlag<=0||f.patchFlag===32)&&(f=r[i]=je(r[i]),f.el=o.el),!s&&f.patchFlag!==-2&&Wn(o,f)),f.type===Kt&&(f.el=o.el),f.type===et&&!f.el&&(f.el=o.el)}}function eo(e){const t=e.slice(),s=[0];let n,r,i,o,f;const u=e.length;for(n=0;n<u;n++){const h=e[n];if(h!==0){if(r=s[s.length-1],e[r]<h){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)f=i+o>>1,e[s[f]]<h?i=f+1:o=f;h<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Bn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bn(t)}function qn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const to=Symbol.for("v-scx"),so=()=>$t(to);function Ms(e,t,s){return Gn(e,t,s)}function Gn(e,t,s=U){const{immediate:n,deep:r,flush:i,once:o}=s,f=Z({},s),u=t&&n||!t&&i!=="post";let h;if(xt){if(i==="sync"){const T=so();h=T.__watcherHandles||(T.__watcherHandles=[])}else if(!u){const T=()=>{};return T.stop=ae,T.resume=ae,T.pause=ae,T}}const a=ee;f.call=(T,F,M)=>ge(T,a,F,M);let p=!1;i==="post"?f.scheduler=T=>{oe(T,a&&a.suspense)}:i!=="sync"&&(p=!0,f.scheduler=(T,F)=>{F?T():ws(T)}),f.augmentJob=T=>{t&&(T.flags|=4),p&&(T.flags|=2,a&&(T.id=a.uid,T.i=a))};const S=ai(e,t,f);return xt&&(h?h.push(S):u&&S()),S}function no(e,t,s){const n=this.proxy,r=J(e)?e.includes(".")?Jn(n,e):()=>n[e]:e.bind(n,n);let i;I(t)?i=t:(i=t.handler,s=t);const o=vt(this),f=Gn(r,i.bind(n),s);return o(),f}function Jn(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const ro=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Re(t)}Modifiers`]||e[`${Ue(t)}Modifiers`];function io(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||U;let r=s;const i=t.startsWith("update:"),o=i&&ro(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>J(a)?a.trim():a)),o.number&&(r=s.map(Mr)));let f,u=n[f=ss(t)]||n[f=ss(Re(t))];!u&&i&&(u=n[f=ss(Ue(t))]),u&&ge(u,e,6,r);const h=n[f+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[f])return;e.emitted[f]=!0,ge(h,e,6,r)}}function Yn(e,t,s=!1){const n=t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},f=!1;if(!I(e)){const u=h=>{const a=Yn(h,t,!0);a&&(f=!0,Z(o,a))};!s&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!i&&!f?(q(e)&&n.set(e,null),null):(A(i)?i.forEach(u=>o[u]=null):Z(o,i),q(e)&&n.set(e,o),o)}function Vt(e,t){return!e||!Ct(t)?!1:(t=t.slice(2).replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,Ue(t))||D(e,t))}function al(){}function zn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:f,emit:u,render:h,renderCache:a,props:p,data:S,setupState:T,ctx:F,inheritAttrs:M}=e,X=Nt(e);let N,W;try{if(s.shapeFlag&4){const P=r||n,G=P;N=be(h.call(G,P,a,p,T,S,F)),W=f}else{const P=t;N=be(P.length>1?P(p,{attrs:f,slots:o,emit:u}):P(p,null)),W=t.props?f:oo(f)}}catch(P){jt(P,e,1),N=ue(et)}let B=N;if(W&&M!==!1){const P=Object.keys(W),{shapeFlag:G}=B;P.length&&G&7&&(i&&P.some(kt)&&(W=lo(W,i)),B=tt(B,W,!1,!0))}return s.dirs&&(B=tt(B,null,!1,!0),B.dirs=B.dirs?B.dirs.concat(s.dirs):s.dirs),s.transition&&Ss(B,s.transition),N=B,Nt(X),N}const oo=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ct(s))&&((t||(t={}))[s]=e[s]);return t},lo=(e,t)=>{const s={};for(const n in e)(!kt(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function fo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:f,patchFlag:u}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?Xn(n,o,h):!!o;if(u&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const S=a[p];if(o[S]!==n[S]&&!Vt(h,S))return!0}}}else return(r||f)&&(!f||!f.$stable)?!0:n===o?!1:n?o?Xn(n,o,h):!0:!!o;return!1}function Xn(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==e[i]&&!Vt(s,i))return!0}return!1}function co({vnode:e,parent:t},s){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=s,t=t.parent;else break}}const Zn=e=>e.__isSuspense;function uo(e,t){t&&t.pendingBranch?A(e)?t.effects.push(...e):t.effects.push(e):vi(e)}const Ae=Symbol.for("v-fgt"),Kt=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),Fs=Symbol.for("v-stc");let De=null,Ds=1;function Qn(e,t=!1){Ds+=e,e<0&&De&&t&&(De.hasOnce=!0)}function Wt(e){return e?e.__v_isVNode===!0:!1}function bt(e,t){return e.type===t.type&&e.key===t.key}const kn=({key:e})=>e!=null?e:null,Bt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?J(e)||z(e)||I(e)?{i:me,r:e,k:t,f:!!s}:e:null);function ao(e,t=null,s=null,n=0,r=null,i=e===Ae?0:1,o=!1,f=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kn(t),ref:t&&Bt(t),scopeId:wn,slotScopeIds:null,children:s,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:me};return f?(js(u,s),i&128&&e.normalize(u)):s&&(u.shapeFlag|=J(s)?8:16),Ds>0&&!o&&De&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&De.push(u),u}const ue=ho;function ho(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===ji)&&(e=et),Wt(e)){const f=tt(e,t,!0);return s&&js(f,s),Ds>0&&!i&&De&&(f.shapeFlag&6?De[De.indexOf(e)]=f:De.push(f)),f.patchFlag=-2,f}if(Po(e)&&(e=e.__vccOpts),t){t=po(t);let{class:f,style:u}=t;f&&!J(f)&&(t.class=os(f)),q(u)&&(vs(u)&&!A(u)&&(u=Z({},u)),t.style=is(u))}const o=J(e)?1:Zn(e)?128:wi(e)?64:q(e)?4:I(e)?2:0;return ao(e,t,s,n,r,o,i,!0)}function po(e){return e?vs(e)||Hn(e)?Z({},e):e:null}function tt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:f,transition:u}=e,h=t?_o(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&kn(h),ref:t&&t.ref?s&&i?A(i)?i.concat(Bt(t)):[i,Bt(t)]:Bt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:f,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ae?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tt(e.ssContent),ssFallback:e.ssFallback&&tt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&n&&Ss(a,u.clone(a)),a}function go(e=" ",t=0){return ue(Kt,null,e,t)}function be(e){return e==null||typeof e=="boolean"?ue(et):A(e)?ue(Ae,null,e.slice()):Wt(e)?je(e):ue(Kt,null,String(e))}function je(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tt(e)}function js(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(A(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),js(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Hn(t)?t._ctx=me:r===3&&me&&(me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else I(t)?(t={default:t,_ctx:me},s=32):(t=String(t),n&64?(s=16,t=[go(t)]):s=8);e.children=t,e.shapeFlag|=s}function _o(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=os([t.class,n.class]));else if(r==="style")t.style=is([t.style,n.style]);else if(Ct(r)){const i=t[r],o=n[r];o&&i!==o&&!(A(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=n[r])}return t}function ve(e,t,s,n=null){ge(e,t,7,[s,n])}const mo=Fn();let bo=0;function vo(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||mo,i={uid:bo++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ur(!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:Un(n,r),emitsOptions:Yn(n,r),emit:null,emitted:null,propsDefaults:U,inheritAttrs:n.inheritAttrs,ctx:U,data:U,props:U,attrs:U,slots:U,refs:U,setupState:U,setupContext:null,suspense:s,suspenseId:s?s.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 i.ctx={_:i},i.root=t?t.root:i,i.emit=io.bind(null,i),e.ce&&e.ce(i),i}let ee=null,qt,Hs;{const e=Ot(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};qt=t("__VUE_INSTANCE_SETTERS__",s=>ee=s),Hs=t("__VUE_SSR_SETTERS__",s=>xt=s)}const vt=e=>{const t=ee;return qt(e),e.scope.on(),()=>{e.scope.off(),qt(t)}},er=()=>{ee&&ee.scope.off(),qt(null)};function tr(e){return e.vnode.shapeFlag&4}let xt=!1;function xo(e,t=!1,s=!1){t&&Hs(t);const{props:n,children:r}=e.vnode,i=tr(e);qi(e,n,i,t),zi(e,r,s||t);const o=i?yo(e,t):void 0;return t&&Hs(!1),o}function yo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hi);const{setup:n}=s;if(n){de();const r=e.setupContext=n.length>1?So(e):null,i=vt(e),o=Xe(n,e,0,[e.props,r]),f=Bs(o);if(he(),i(),(f||e.sp)&&!gt(e)&&Sn(e),f){if(o.then(er,er),t)return o.then(u=>{sr(e,u)}).catch(u=>{jt(u,e,0)});e.asyncDep=o}else sr(e,o)}else nr(e)}function sr(e,t,s){I(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:q(t)&&(e.setupState=gn(t)),nr(e)}function nr(e,t,s){const n=e.type;e.render||(e.render=n.render||ae);{const r=vt(e);de();try{Ni(e)}finally{he(),r()}}}const wo={get(e,t){return Y(e,"get",""),e[t]}};function So(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,wo),slots:e.slots,emit:e.emit,expose:t}}function Ns(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gn(ii(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in _t)return _t[s](e)},has(t,s){return s in t||s in _t}})):e.proxy}const To=/(?:^|[-_])(\w)/g,Co=e=>e.replace(To,t=>t.toUpperCase()).replace(/[-_]/g,"");function Eo(e,t=!0){return I(e)?e.displayName||e.name:e.name||t&&e.__name}function rr(e,t,s=!1){let n=Eo(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e&&e.parent){const r=i=>{for(const o in i)if(i[o]===t)return o};n=r(e.components||e.parent.type.components)||r(e.appContext.components)}return n?Co(n):s?"App":"Anonymous"}function Po(e){return I(e)&&"__vccOpts"in e}const Oo=(e,t)=>ci(e,t,xt);function Ao(e,t,s){const n=arguments.length;return n===2?q(t)&&!A(t)?Wt(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Wt(s)&&(s=[s]),ue(e,t,s))}const Io="3.5.17";/**
17
+ * @vue/runtime-dom v3.5.17
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/let Us;const ir=typeof window<"u"&&window.trustedTypes;if(ir)try{Us=ir.createPolicy("vue",{createHTML:e=>e})}catch{}const or=Us?e=>Us.createHTML(e):e=>e,Ro="http://www.w3.org/2000/svg",Mo="http://www.w3.org/1998/Math/MathML",Ie=typeof document<"u"?document:null,lr=Ie&&Ie.createElement("template"),Fo={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Ie.createElementNS(Ro,e):t==="mathml"?Ie.createElementNS(Mo,e):s?Ie.createElement(e,{is:s}):Ie.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Ie.createTextNode(e),createComment:e=>Ie.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ie.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{lr.innerHTML=or(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const f=lr.content;if(n==="svg"||n==="mathml"){const u=f.firstChild;for(;u.firstChild;)f.appendChild(u.firstChild);f.removeChild(u)}t.insertBefore(f,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Do=Symbol("_vtc");function jo(e,t,s){const n=e[Do];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const fr=Symbol("_vod"),Ho=Symbol("_vsh"),No=Symbol(""),Uo=/(^|;)\s*display\s*:/;function Lo(e,t,s){const n=e.style,r=J(s);let i=!1;if(s&&!r){if(t)if(J(t))for(const o of t.split(";")){const f=o.slice(0,o.indexOf(":")).trim();s[f]==null&&Gt(n,f,"")}else for(const o in t)s[o]==null&&Gt(n,o,"");for(const o in s)o==="display"&&(i=!0),Gt(n,o,s[o])}else if(r){if(t!==s){const o=n[No];o&&(s+=";"+o),n.cssText=s,i=Uo.test(s)}}else t&&e.removeAttribute("style");fr in e&&(e[fr]=i?n.display:"",e[Ho]&&(n.display="none"))}const cr=/\s*!important$/;function Gt(e,t,s){if(A(s))s.forEach(n=>Gt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=$o(e,t);cr.test(s)?e.setProperty(Ue(n),s.replace(cr,""),"important"):e[n]=s}}const ur=["Webkit","Moz","ms"],Ls={};function $o(e,t){const s=Ls[t];if(s)return s;let n=Re(t);if(n!=="filter"&&n in e)return Ls[t]=n;n=qs(n);for(let r=0;r<ur.length;r++){const i=ur[r]+n;if(i in e)return Ls[t]=i}return t}const ar="http://www.w3.org/1999/xlink";function dr(e,t,s,n,r,i=Nr(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ar,t.slice(6,t.length)):e.setAttributeNS(ar,t,s):s==null||i&&!Js(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(s)?String(s):s)}function hr(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?or(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const f=i==="OPTION"?e.getAttribute("value")||"":e.value,u=s==null?e.type==="checkbox"?"on":"":String(s);(f!==u||!("_value"in e))&&(e.value=u),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const f=typeof e[t];f==="boolean"?s=Js(s):s==null&&f==="string"?(s="",o=!0):f==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function Vo(e,t,s,n){e.addEventListener(t,s,n)}function Ko(e,t,s,n){e.removeEventListener(t,s,n)}const pr=Symbol("_vei");function Wo(e,t,s,n,r=null){const i=e[pr]||(e[pr]={}),o=i[t];if(n&&o)o.value=n;else{const[f,u]=Bo(t);if(n){const h=i[t]=Jo(n,r);Vo(e,f,h,u)}else o&&(Ko(e,f,o,u),i[t]=void 0)}}const gr=/(?:Once|Passive|Capture)$/;function Bo(e){let t;if(gr.test(e)){t={};let n;for(;n=e.match(gr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let $s=0;const qo=Promise.resolve(),Go=()=>$s||(qo.then(()=>$s=0),$s=Date.now());function Jo(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ge(Yo(n,s.value),t,5,[n])};return s.value=e,s.attached=Go(),s}function Yo(e,t){if(A(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const _r=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,zo=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?jo(e,n,o):t==="style"?Lo(e,s,n):Ct(t)?kt(t)||Wo(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Xo(e,t,n,o))?(hr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&dr(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!J(n))?hr(e,Re(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),dr(e,t,n,o))};function Xo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&_r(t)&&I(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return _r(t)&&J(s)?!1:t in e}const Zo=Z({patchProp:zo},Fo);let mr;function Qo(){return mr||(mr=Zi(Zo))}const ko=(...e)=>{Qo().render(...e)};var el=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,sl=(e,t,s)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,nl=(e,t,s,n)=>{for(var r=n>1?void 0:n?tl(t,s):t,i=e.length-1,o;i>=0;i--)(o=e[i])&&(r=o(r)||r);return r},br=(e,t)=>(s,n)=>t(s,n,e),rl=(e,t,s)=>sl(e,t+"",s);fe.UniverVue3AdapterPlugin=class extends Ce.Plugin{constructor(t={},s,n){super(),this._config=t,this._injector=s,this._componentManager=n}onStarting(){this._componentManager.setHandler("vue3",t=>s=>{st.cloneElement(st.createElement(il,{component:t,props:Object.keys(s).filter(n=>s[n]!==void 0&&s[n]!==null).reduce((n,r)=>(n[r]=s[r],n),{})}))})}},rl(fe.UniverVue3AdapterPlugin,"pluginName","UNIVER_UI_ADAPTER_VUE3_PLUGIN"),fe.UniverVue3AdapterPlugin=nl([Ce.DependentOn(Ws.UniverUIPlugin),br(1,Ce.Inject(Ce.Injector)),br(2,Ce.Inject(Ws.ComponentManager))],fe.UniverVue3AdapterPlugin);function il(e){const{component:t,props:s}=e,n=st.useRef(null);return st.useEffect(()=>{if(!n.current)return;const r=Ao(t,s),i=document.createElement("div");return document.body.appendChild(i),ko(r,n.current),()=>{document.body.removeChild(i)}},[s]),st.createElement("div",{ref:n})}Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@univerjs/ui-adapter-vue3",
3
+ "version": "0.8.3-nightly.202507010644",
4
+ "private": false,
5
+ "description": "Vue adapter for Univer UI",
6
+ "author": "DreamNum <developer@univer.ai>",
7
+ "license": "Apache-2.0",
8
+ "funding": {
9
+ "type": "opencollective",
10
+ "url": "https://opencollective.com/univer"
11
+ },
12
+ "homepage": "https://univer.ai",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/dream-num/univer"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/dream-num/univer/issues"
19
+ },
20
+ "keywords": [
21
+ "univer"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "import": "./lib/es/index.js",
26
+ "require": "./lib/cjs/index.js",
27
+ "types": "./lib/types/index.d.ts"
28
+ },
29
+ "./*": {
30
+ "import": "./lib/es/*",
31
+ "require": "./lib/cjs/*",
32
+ "types": "./lib/types/index.d.ts"
33
+ },
34
+ "./lib/*": "./lib/*"
35
+ },
36
+ "main": "./lib/es/index.js",
37
+ "types": "./lib/types/index.d.ts",
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "directories": {
42
+ "lib": "lib"
43
+ },
44
+ "files": [
45
+ "lib"
46
+ ],
47
+ "peerDependencies": {
48
+ "react": "^16.9.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc"
49
+ },
50
+ "dependencies": {
51
+ "@univerjs/core": "0.8.3-nightly.202507010644",
52
+ "@univerjs/ui": "0.8.3-nightly.202507010644"
53
+ },
54
+ "devDependencies": {
55
+ "react": "18.3.1",
56
+ "typescript": "^5.8.3",
57
+ "vite": "^6.3.5",
58
+ "vitest": "^3.2.4",
59
+ "vue": "^3.5.17",
60
+ "@univerjs-infra/shared": "0.8.3"
61
+ },
62
+ "scripts": {
63
+ "test": "vitest run",
64
+ "test:watch": "vitest",
65
+ "coverage": "vitest run --coverage",
66
+ "lint:types": "tsc --noEmit",
67
+ "build": "univer-cli build"
68
+ },
69
+ "module": "./lib/es/index.js"
70
+ }