@univerjs/ui-adapter-vue3 0.9.1 → 0.9.2-nightly.202507111607
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/lib/cjs/index.js +1 -17
- package/lib/es/index.js +30 -3633
- package/lib/index.js +30 -3633
- package/lib/umd/index.js +1 -20
- package/package.json +5 -5
- package/LICENSE +0 -176
package/lib/umd/index.js
CHANGED
|
@@ -1,20 +1 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @vue/shared v3.5.17
|
|
3
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
-
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function Zt(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const N={},st=[],ae=()=>{},Tr=()=>!1,Tt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Qt=e=>e.startsWith("onUpdate:"),Z=Object.assign,kt=(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,nt=e=>Ct(e)==="[object Map]",Er=e=>Ct(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",Ws=e=>(q(e)||I(e))&&I(e.then)&&I(e.catch),Pr=Object.prototype.toString,Ct=e=>Pr.call(e),Or=e=>Ct(e).slice(8,-1),Ar=e=>Ct(e)==="[object Object]",es=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rt=Zt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Et=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Ir=/-(\w)/g,Re=Et(e=>e.replace(Ir,(t,s)=>s?s.toUpperCase():"")),Rr=/\B([A-Z])/g,Ne=Et(e=>e.replace(Rr,"-$1").toLowerCase()),Bs=Et(e=>e.charAt(0).toUpperCase()+e.slice(1)),ts=Et(e=>e?`on${Bs(e)}`:""),Le=(e,t)=>!Object.is(e,t),ss=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},ns=(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 qs;const Pt=()=>qs||(qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rs(e){if(A(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=J(n)?Hr(n):rs(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 is(e){let t="";if(J(e))t=e;else if(A(e))for(let s=0;s<e.length;s++){const n=is(e[s]);n&&(t+=n+" ")}else if(q(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const Ur=Zt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Gs(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 Nr{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 os=new WeakSet;class Js{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,os.has(this)&&(os.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||zs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,en(this),Xs(this);const t=L,s=ce;L=this,ce=!0;try{return this.fn()}finally{Zs(this),L=t,ce=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)us(t);this.deps=this.depsTail=void 0,en(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?os.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){cs(this)&&this.run()}get dirty(){return cs(this)}}let Ys=0,it,ot;function zs(e,t=!1){if(e.flags|=8,t){e.next=ot,ot=e;return}e.next=it,it=e}function ls(){Ys++}function fs(){if(--Ys>0)return;if(ot){let t=ot;for(ot=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;it;){let t=it;for(it=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 Xs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Zs(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),us(n),$r(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function cs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Qs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Qs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lt)||(e.globalVersion=lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!cs(e))))return;e.flags|=2;const t=e.dep,s=L,n=ce;L=e,ce=!0;try{Xs(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,Zs(e),e.flags&=-3}}function us(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)us(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 ks=[];function de(){ks.push(ce),ce=!1}function he(){const e=ks.pop();ce=e===void 0?!0:e}function en(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=L;L=void 0;try{t()}finally{L=s}}}let lt=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 tn{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,sn(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++,lt++,this.notify(t)}notify(t){ls();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{fs()}}}function sn(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)sn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const as=new WeakMap,$e=Symbol(""),ds=Symbol(""),ft=Symbol("");function Y(e,t,s){if(ce&&L){let n=as.get(e);n||as.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new tn),r.map=n,r.key=s),r.track()}}function Ee(e,t,s,n,r,i){const o=as.get(e);if(!o){lt++;return}const f=u=>{u&&u.trigger()};if(ls(),t==="clear")o.forEach(f);else{const u=A(e),h=u&&es(s);if(u&&s==="length"){const a=Number(n);o.forEach((p,S)=>{(S==="length"||S===ft||!Je(S)&&S>=a)&&f(p)})}else switch((s!==void 0||o.has(void 0))&&f(o.get(s)),h&&f(o.get(ft)),t){case"add":u?h&&f(o.get("length")):(f(o.get($e)),nt(e)&&f(o.get(ds)));break;case"delete":u||(f(o.get($e)),nt(e)&&f(o.get(ds)));break;case"set":nt(e)&&f(o.get($e));break}}fs()}function Ye(e){const t=j(e);return t===e?t:(Y(t,"iterate",ft),pe(e)?t:t.map(ie))}function hs(e){return Y(e=j(e),"iterate",ft),e}const Kr={__proto__:null,[Symbol.iterator](){return ps(this,Symbol.iterator,ie)},concat(...e){return Ye(this).concat(...e.map(t=>A(t)?Ye(t):t))},entries(){return ps(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 gs(this,"includes",e)},indexOf(...e){return gs(this,"indexOf",e)},join(e){return Ye(this).join(e)},lastIndexOf(...e){return gs(this,"lastIndexOf",e)},map(e,t){return Pe(this,"map",e,t,void 0,arguments)},pop(){return ct(this,"pop")},push(...e){return ct(this,"push",e)},reduce(e,...t){return nn(this,"reduce",e,t)},reduceRight(e,...t){return nn(this,"reduceRight",e,t)},shift(){return ct(this,"shift")},some(e,t){return Pe(this,"some",e,t,void 0,arguments)},splice(...e){return ct(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 ct(this,"unshift",e)},values(){return ps(this,"values",ie)}};function ps(e,t,s){const n=hs(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=hs(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 nn(e,t,s,n){const r=hs(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 gs(e,t,s){const n=j(e);Y(n,"iterate",ft);const r=n[t](...s);return(r===-1||r===!1)&&bs(s[0])?(s[0]=j(s[0]),n[t](...s)):r}function ct(e,t,s=[]){de(),ls();const n=j(e)[t].apply(e,s);return fs(),he(),n}const Br=Zt("__proto__,__v_isRef,__isVue"),rn=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 on{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?dn:an:i?un:cn).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)?rn.has(s):Br(s))||(r||Y(t,"get",s),i)?f:z(f)?o&&es(s)?f:f.value:q(f)?r?hn(f):ms(f):f}}class ln extends on{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)&&es(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)||!rn.has(s))&&Y(t,"has",s),n}ownKeys(t){return Y(t,"iterate",A(t)?"length":$e),Reflect.ownKeys(t)}}class fn extends on{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Gr=new ln,Jr=new fn,Yr=new ln(!0),zr=new fn(!0),_s=e=>e,Ot=e=>Reflect.getPrototypeOf(e);function Xr(e,t,s){return function(...n){const r=this.__v_raw,i=j(r),o=nt(i),f=e==="entries"||e===Symbol.iterator&&o,u=e==="keys"&&o,h=r[e](...n),a=s?_s:t?vs:ie;return!t&&Y(i,"iterate",u?ds:$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 At(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}=Ot(o),h=t?_s:e?vs: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?_s:e?vs:ie;return!e&&Y(u,"iterate",$e),f.forEach((a,p)=>r.call(i,h(a),h(p),o))}};return Z(s,e?{add:At("add"),set:At("set"),delete:At("delete"),clear:At("clear")}:{add(r){!t&&!pe(r)&&!ze(r)&&(r=j(r));const i=j(this);return Ot(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}=Ot(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}=Ot(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 It(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:It(!1,!1)},kr={get:It(!1,!0)},ei={get:It(!0,!1)},ti={get:It(!0,!0)},cn=new WeakMap,un=new WeakMap,an=new WeakMap,dn=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 ms(e){return ze(e)?e:Rt(e,!1,Gr,Qr,cn)}function ri(e){return Rt(e,!1,Yr,kr,un)}function hn(e){return Rt(e,!0,Jr,ei,an)}function fl(e){return Rt(e,!0,zr,ti,dn)}function Rt(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 ut(e){return ze(e)?ut(e.__v_raw):!!(e&&e.__v_isReactive)}function ze(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function bs(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)&&ns(e,"__v_skip",!0),e}const ie=e=>q(e)?ms(e):e,vs=e=>q(e)?hn(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 pn(e){return ut(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 tn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lt-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 zs(this,!0),!0}get value(){const t=this.dep.track();return Qs(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 Mt={},Ft=new WeakMap;let Ve;function ui(e,t=!1,s=Ve){if(s){let n=Ft.get(s);n||Ft.set(s,n=[]),n.push(e)}}function ai(e,t,s=N){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)):ut(e)?(p=()=>h(e),F=!0):A(e)?(M=!0,F=e.some(P=>ut(P)||pe(P)),p=()=>e.map(P=>{if(z(P))return P.value;if(ut(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(),U=()=>{a.stop(),X&&X.active&&kt(X.effects,a)};if(i&&t){const P=t;t=(...G)=>{P(...G),U()}}let W=M?new Array(e.length).fill(Mt):Mt;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===Mt?void 0:M&&W[0]===Mt?[]:W,T];W=G,u?u(t,3,xe):t(...xe)}finally{Ve=He}}}else a.run()};return f&&f(B),a=new Js(p),a.scheduler=o?()=>o(B,!1):B,T=P=>ui(P,!1,a),S=a.onStop=()=>{const P=Ft.get(a);if(P){if(u)u(P,4);else for(const G of P)G();Ft.delete(a)}},t?n?B(!0):W=a.run():o?o(B.bind(null,!0),!0):a.run(),U.pause=a.pause.bind(a),U.resume=a.resume.bind(a),U.stop=U,U}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)||nt(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 at=[];let xs=!1;function cl(e,...t){if(xs)return;xs=!0,de();const s=at.length?at[at.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 <${nr(s,i.type)}>`).join(`
|
|
14
|
-
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
|
15
|
-
`,...hi(r)),console.warn(...i)}he(),xs=!1}function di(){let e=at[at.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 <${nr(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(...gn(n,e[n]))}),s.length>3&&t.push(" ..."),t}function gn(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=gn(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){Dt(r,t,s)}}function ge(e,t,s,n){if(I(e)){const r=Xe(e,t,s,n);return r&&Ws(r)&&r.catch(i=>{Dt(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 Dt(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||N;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 _n=Promise.resolve();let jt=null;function mi(e){const t=jt||_n;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=dt(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function ys(e){if(!(e.flags&1)){const t=dt(e),s=Q[Q.length-1];!s||!(e.flags&2)&&t>=dt(s)?Q.push(e):Q.splice(bi(t),0,e),e.flags|=1,mn()}}function mn(){jt||(jt=_n.then(xn))}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),mn()}function bn(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 vn(e){if(Ze.length){const t=[...new Set(Ze)].sort((s,n)=>dt(s)-dt(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 dt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xn(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,vn(),jt=null,(Q.length||Ze.length)&&xn()}}let me=null,yn=null;function Ht(e){const t=me;return me=e,yn=e&&e.type.__scopeId||null,t}function xi(e,t=me,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Zn(-1);const i=Ht(t);let o;try{o=e(...r)}finally{Ht(i),n._d&&Zn(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 ws(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ws(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 wn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ht(e,t,s,n,r=!1){if(A(e)){e.forEach((F,M)=>ht(F,t&&(A(t)?t[M]:t),s,n,r));return}if(pt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&ht(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?Hs(n.component):n.el,o=r?null:i,{i:f,r:u}=e,h=t&&t.r,a=f.refs===N?f.refs={}:f.refs,p=f.setupState,S=j(p),T=p===N?()=>!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 U=F?T(u)?p[u]:a[u]:u.value;r?A(U)&&kt(U,i):A(U)?U.includes(i)||U.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()}}}Pt().requestIdleCallback,Pt().cancelIdleCallback;const pt=e=>!!e.type.__asyncLoader,Sn=e=>e.type.__isKeepAlive;function Si(e,t){Tn(e,"a",t)}function Ti(e,t){Tn(e,"da",t)}function Tn(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;)Sn(r.parent.vnode)&&Ci(n,t,s,r),r=r.parent}}function Ci(e,t,s,n){const r=Ut(t,e,n,!0);Cn(()=>{kt(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=bt(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)=>{(!vt||e==="sp")&&Ut(e,(...n)=>t(...n),s)},Ei=Oe("bm"),Pi=Oe("m"),Oi=Oe("bu"),Ai=Oe("u"),Ii=Oe("bum"),Cn=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"),Ss=e=>e?er(e)?Hs(e):Ss(e.parent):null,gt=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=>Ss(e.parent),$root:e=>Ss(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>An(e),$forceUpdate:e=>e.f||(e.f=()=>{ys(e.update)}),$nextTick:e=>e.n||(e.n=mi.bind(e.proxy)),$watch:e=>no.bind(e)}),Ts=(e,t)=>e!==N&&!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(Ts(n,t))return o[t]=1,n[t];if(r!==N&&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!==N&&D(s,t))return o[t]=4,s[t];Cs&&(o[t]=0)}}const a=gt[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!==N&&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 Ts(r,t)?(r[t]=s,!0):n!==N&&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!==N&&D(e,o)||Ts(t,o)||(f=i[0])&&D(f,o)||D(n,o)||D(gt,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 En(e){return A(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Cs=!0;function Ui(e){const t=An(e),s=e.proxy,n=e.ctx;Cs=!1,t.beforeCreate&&Pn(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:U,beforeUnmount:W,destroyed:B,unmounted:P,render:G,renderTracked:He,renderTriggered:xe,errorCaptured:Ue,serverPrefetch:Gt,expose:Be,inheritAttrs:xt,components:Jt,directives:Yt,filters:$s}=t;if(h&&Ni(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=ms(K))}if(Cs=!0,i)for(const K in i){const $=i[K],qe=I($)?$.bind(s,s):I($.get)?$.get.bind(s,s):ae,zt=!I($)&&I($.set)?$.set.bind(s):ae,Ge=Oo({get:qe,set:zt});Object.defineProperty(n,K,{enumerable:!0,configurable:!0,get:()=>Ge.value,set:ye=>Ge.value=ye})}if(f)for(const K in f)On(f[K],n,s,K);if(u){const K=I(u)?u.call(s):u;Reflect.ownKeys(K).forEach($=>{Bi($,K[$])})}a&&Pn(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,Ue),te(Fi,He),te(Mi,xe),te(Ii,W),te(Cn,P),te(Ri,Gt),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),xt!=null&&(e.inheritAttrs=xt),Jt&&(e.components=Jt),Yt&&(e.directives=Yt),Gt&&wn(e)}function Ni(e,t,s=ae){A(e)&&(e=Es(e));for(const n in e){const r=e[n];let i;q(r)?"default"in r?i=Lt(r.from||n,r.default,!0):i=Lt(r.from||n):i=Lt(r),z(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Pn(e,t,s){ge(A(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function On(e,t,s,n){let r=n.includes(".")?Gn(s,n):()=>s[n];if(J(e)){const i=t[e];I(i)&&Rs(r,i)}else if(I(e))Rs(r,e.bind(s));else if(q(e))if(A(e))e.forEach(i=>On(i,t,s,n));else{const i=I(e.handler)?e.handler.bind(s):t[e.handler];I(i)&&Rs(r,i,e)}}function An(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=>Nt(u,h,o,!0)),Nt(u,t,o)),q(t)&&i.set(t,u),u}function Nt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&Nt(e,i,s,!0),r&&r.forEach(o=>Nt(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:In,props:Rn,emits:Rn,methods:_t,computed:_t,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:_t,directives:_t,watch:Vi,provide:In,inject:$i};function In(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 _t(Es(e),Es(t))}function Es(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 _t(e,t){return e?Z(Object.create(null),e,t):t}function Rn(e,t){return e?A(e)&&A(t)?[...new Set([...e,...t])]:Z(Object.create(null),En(e),En(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 Mn(){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=Mn(),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,Hs(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 Lt(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 Fn={},Dn=()=>Object.create(Fn),jn=e=>Object.getPrototypeOf(e)===Fn;function qi(e,t,s,n=!1){const r={},i=Dn();e.propsDefaults=Object.create(null),Hn(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($t(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]=Ps(u,f,F,T,e,!1)}else T!==i[S]&&(i[S]=T,h=!0)}}}else{Hn(e,t,r,i)&&(h=!0);let a;for(const p in f)(!t||!D(t,p)&&((a=Ne(p))===p||!D(t,a)))&&(u?s&&(s[p]!==void 0||s[a]!==void 0)&&(r[p]=Ps(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 Hn(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,f;if(t)for(let u in t){if(rt(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:$t(e.emitsOptions,u)||(!(u in n)||h!==n[u])&&(n[u]=h,o=!0)}if(i){const u=j(s),h=f||N;for(let a=0;a<i.length;a++){const p=i[a];s[p]=Ps(r,u,p,h[p],e,!D(h,p))}}return o}function Ps(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=bt(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===Ne(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,st),st;if(A(i))for(let a=0;a<i.length;a++){const p=Re(i[a]);Nn(p)&&(o[p]=N)}else if(i)for(const a in i){const p=Re(a);if(Nn(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 U=0;U<F.length;++U){const W=F[U],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 Nn(e){return e[0]!=="$"&&!rt(e)}const Os=e=>e[0]==="_"||e==="$stable",As=e=>A(e)?e.map(be):[be(e)],Yi=(e,t,s)=>{if(t._n)return t;const n=xi((...r)=>As(t(...r)),s);return n._c=!1,n},Ln=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Os(r))continue;const i=e[r];if(I(i))t[r]=Yi(r,i,n);else if(i!=null){const o=As(i);t[r]=()=>o}}},$n=(e,t)=>{const s=As(t);e.slots.default=()=>s},Vn=(e,t,s)=>{for(const n in t)(s||!Os(n))&&(e[n]=t[n])},zi=(e,t,s)=>{const n=e.slots=Dn();if(e.vnode.shapeFlag&32){const r=t.__;r&&ns(n,"__",r,!0);const i=t._;i?(Vn(n,t,s),s&&ns(n,"_",i,!0)):Ln(t,n)}else t&&$n(e,t)},Xi=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=N;if(n.shapeFlag&32){const f=t._;f?s&&f===1?i=!1:Vn(r,t,s):(i=!t.$stable,Ln(t,r)),o=t}else t&&($n(e,t),o={default:1});if(i)for(const f in r)!Os(f)&&o[f]==null&&delete r[f]},oe=uo;function Zi(e){return Qi(e)}function Qi(e,t){const s=Pt();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&&!mt(l,c)&&(m=Xt(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 Vt:X(l,c,d,m);break;case et:U(l,c,d,m);break;case Ms:l==null&&W(c,d,m,y);break;case Ae:Jt(l,c,d,m,g,_,y,x,v);break;default:w&1?G(l,c,d,m,g,_,y,x,v):w&6?Yt(l,c,d,m,g,_,y,x,v):(w&64||w&128)&&b.process(l,c,d,m,g,_,y,x,v,wt)}E!=null&&g?ht(E,l&&l.ref,_,c||l,!c):E==null&&l&&l.ref!=null&&ht(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)}},U=(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):Gt(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&&Ue(l.children,v,null,m,g,Is(l,_),y,x),O&&Ke(l,null,m,"created"),xe(v,l,l.scopeId,y,m),E){for(const V in E)V!=="value"&&!rt(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===_||Xn(_.type)&&(_.ssContent===c||_.ssFallback===c)){const y=g.vnode;xe(l,y,y.scopeId,y.slotScopeIds,g.parent)}}},Ue=(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)}},Gt=(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||N,C=c.props||N;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,Is(c,g),_):y||$(l,c,x,null,d,m,Is(c,g),_,!1),v>0){if(v&16)xt(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&&xt(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||!mt(v,b)||v.shapeFlag&198)?p(v.el):d;M(v,b,E,null,m,g,_,y,!0)}},xt=(l,c,d,m,g)=>{if(c!==d){if(c!==N)for(const _ in c)!rt(_)&&!(_ in d)&&i(l,_,c[_],null,g,m);for(const _ in d){if(rt(_))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)}},Jt=(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),Ue(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)&&Kn(l,c,!0)):$(l,c,d,E,g,_,y,x,v)},Yt=(l,c,d,m,g,_,y,x,v)=>{c.slotScopeIds=x,l==null?c.shapeFlag&512?g.ctx.activate(c,d,m,y,v):$s(c,d,m,g,_,y,v):vr(l,c,v)},$s=(l,c,d,m,g,_,y)=>{const x=l.component=vo(l,m,g);if(Sn(l)&&(x.ctx.renderer=wt),xo(x,!1,y),x.asyncDep){if(g&&g.registerDep(x,te,y),!l.el){const v=x.subTree=ue(et);U(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=Wn(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&&ss(C),(ne=w.props&&w.props.onVnodeBeforeUpdate)&&ve(ne,R,w,V),We(l,!0);const re=Yn(l),we=l.subTree;l.subTree=re,M(we,re,p(we.el),Xt(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=pt(c);We(l,!1),R&&ss(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=Yn(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&&pt(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 Js(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=()=>ys(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(),bn(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){zt(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&&yt(b,g,_),w!==b&&a(d,w)):E&16?O&16?zt(b,w,d,m,g,_,y,x,v):yt(b,g,_,!0):(E&8&&a(d,""),O&16&&Ue(w,d,m,g,_,y,x,v))},qe=(l,c,d,m,g,_,y,x,v)=>{l=l||st,c=c||st;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?yt(l,g,_,!0,!1,w):Ue(c,d,m,g,_,y,x,v,w)},zt=(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(mt(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(mt(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 St=new Array(re);for(b=0;b<re;b++)St[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(St[H-R]===0&&mt(le,c[H])){Te=H;break}Te===void 0?ye(le,g,_,!0):(St[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(St):st;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;St[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,wt);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===Ms){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(),ht(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=!pt(l);let H;if(V&&(H=y&&y.onVnodeBeforeUnmount)&&ve(H,c,l),E&6)ol(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,wt,m):b&&!b.hasOnce&&(_!==Ae||w>0&&w&64)?yt(b,c,d,!1,!0):(_===Ae&&w&384||!g&&E&16)&&yt(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){il(d,m);return}if(c===Ms){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 _()},il=(l,c)=>{let d;for(;l!==c;)d=S(l),r(l),l=d;r(c)},ol=(l,c,d)=>{const{bum:m,scope:g,job:_,subTree:y,um:x,m:v,a:b,parent:E,slots:{__:w}}=l;Bn(v),Bn(b),m&&ss(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())},yt=(l,c,d,m=!1,g=!1,_=0)=>{for(let y=_;y<l.length;y++)ye(l[y],c,d,m,g)},Xt=l=>{if(l.shapeFlag&6)return Xt(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 Vs=!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,Vs||(Vs=!0,bn(),vn(),Vs=!1)},wt={p:M,um:ye,m:Ge,r:xr,mt:$s,mc:Ue,pc:$,pbc:Be,n:Xt,o:e};return{render:yr,hydrate:void 0,createApp:Wi(yr)}}function Is({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 Kn(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&&Kn(o,f)),f.type===Vt&&(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 Wn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Wn(t)}function Bn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const to=Symbol.for("v-scx"),so=()=>Lt(to);function Rs(e,t,s){return qn(e,t,s)}function qn(e,t,s=N){const{immediate:n,deep:r,flush:i,once:o}=s,f=Z({},s),u=t&&n||!t&&i!=="post";let h;if(vt){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():ys(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 vt&&(h?h.push(S):u&&S()),S}function no(e,t,s){const n=this.proxy,r=J(e)?e.includes(".")?Gn(n,e):()=>n[e]:e.bind(n,n);let i;I(t)?i=t:(i=t.handler,s=t);const o=bt(this),f=qn(r,i.bind(n),s);return o(),f}function Gn(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[`${Ne(t)}Modifiers`];function io(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||N;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=ts(t)]||n[f=ts(Re(t))];!u&&i&&(u=n[f=ts(Ne(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 Jn(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=Jn(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 $t(e,t){return!e||!Tt(t)?!1:(t=t.slice(2).replace(/Once$/,""),D(e,t[0].toLowerCase()+t.slice(1))||D(e,Ne(t))||D(e,t))}function ul(){}function Yn(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=Ht(e);let U,W;try{if(s.shapeFlag&4){const P=r||n,G=P;U=be(h.call(G,P,a,p,T,S,F)),W=f}else{const P=t;U=be(P.length>1?P(p,{attrs:f,slots:o,emit:u}):P(p,null)),W=t.props?f:oo(f)}}catch(P){Dt(P,e,1),U=ue(et)}let B=U;if(W&&M!==!1){const P=Object.keys(W),{shapeFlag:G}=B;P.length&&G&7&&(i&&P.some(Qt)&&(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&&ws(B,s.transition),U=B,Ht(X),U}const oo=e=>{let t;for(const s in e)(s==="class"||s==="style"||Tt(s))&&((t||(t={}))[s]=e[s]);return t},lo=(e,t)=>{const s={};for(const n in e)(!Qt(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?zn(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]&&!$t(h,S))return!0}}}else return(r||f)&&(!f||!f.$stable)?!0:n===o?!1:n?o?zn(n,o,h):!0:!!o;return!1}function zn(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]&&!$t(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 Xn=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"),Vt=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),Ms=Symbol.for("v-stc");let De=null,Fs=1;function Zn(e,t=!1){Fs+=e,e<0&&De&&t&&(De.hasOnce=!0)}function Kt(e){return e?e.__v_isVNode===!0:!1}function mt(e,t){return e.type===t.type&&e.key===t.key}const Qn=({key:e})=>e!=null?e:null,Wt=({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&&Qn(t),ref:t&&Wt(t),scopeId:yn,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?(Ds(u,s),i&128&&e.normalize(u)):s&&(u.shapeFlag|=J(s)?8:16),Fs>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),Kt(e)){const f=tt(e,t,!0);return s&&Ds(f,s),Fs>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=is(f)),q(u)&&(bs(u)&&!A(u)&&(u=Z({},u)),t.style=rs(u))}const o=J(e)?1:Xn(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?bs(e)||jn(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&&Qn(h),ref:t&&t.ref?s&&i?A(i)?i.concat(Wt(t)):[i,Wt(t)]:Wt(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&&ws(a,u.clone(a)),a}function go(e=" ",t=0){return ue(Vt,null,e,t)}function be(e){return e==null||typeof e=="boolean"?ue(et):A(e)?ue(Ae,null,e.slice()):Kt(e)?je(e):ue(Vt,null,String(e))}function je(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tt(e)}function Ds(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),Ds(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!jn(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=is([t.class,n.class]));else if(r==="style")t.style=rs([t.style,n.style]);else if(Tt(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=Mn();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 Nr(!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:Jn(n,r),emit:null,emitted:null,propsDefaults:N,inheritAttrs:n.inheritAttrs,ctx:N,data:N,props:N,attrs:N,slots:N,refs:N,setupState:N,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,Bt,js;{const e=Pt(),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)}};Bt=t("__VUE_INSTANCE_SETTERS__",s=>ee=s),js=t("__VUE_SSR_SETTERS__",s=>vt=s)}const bt=e=>{const t=ee;return Bt(e),e.scope.on(),()=>{e.scope.off(),Bt(t)}},kn=()=>{ee&&ee.scope.off(),Bt(null)};function er(e){return e.vnode.shapeFlag&4}let vt=!1;function xo(e,t=!1,s=!1){t&&js(t);const{props:n,children:r}=e.vnode,i=er(e);qi(e,n,i,t),zi(e,r,s||t);const o=i?yo(e,t):void 0;return t&&js(!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=bt(e),o=Xe(n,e,0,[e.props,r]),f=Ws(o);if(he(),i(),(f||e.sp)&&!pt(e)&&wn(e),f){if(o.then(kn,kn),t)return o.then(u=>{tr(e,u)}).catch(u=>{Dt(u,e,0)});e.asyncDep=o}else tr(e,o)}else sr(e)}function tr(e,t,s){I(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:q(t)&&(e.setupState=pn(t)),sr(e)}function sr(e,t,s){const n=e.type;e.render||(e.render=n.render||ae);{const r=bt(e);de();try{Ui(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 Hs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(pn(ii(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in gt)return gt[s](e)},has(t,s){return s in t||s in gt}})):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 nr(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,vt);function Ao(e,t,s){const n=arguments.length;return n===2?q(t)&&!A(t)?Kt(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Kt(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 rr=typeof window<"u"&&window.trustedTypes;if(rr)try{Us=rr.createPolicy("vue",{createHTML:e=>e})}catch{}const ir=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,or=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{or.innerHTML=ir(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const f=or.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 lr=Symbol("_vod"),Ho=Symbol("_vsh"),Uo=Symbol(""),No=/(^|;)\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&&qt(n,f,"")}else for(const o in t)s[o]==null&&qt(n,o,"");for(const o in s)o==="display"&&(i=!0),qt(n,o,s[o])}else if(r){if(t!==s){const o=n[Uo];o&&(s+=";"+o),n.cssText=s,i=No.test(s)}}else t&&e.removeAttribute("style");lr in e&&(e[lr]=i?n.display:"",e[Ho]&&(n.display="none"))}const fr=/\s*!important$/;function qt(e,t,s){if(A(s))s.forEach(n=>qt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=$o(e,t);fr.test(s)?e.setProperty(Ne(n),s.replace(fr,""),"important"):e[n]=s}}const cr=["Webkit","Moz","ms"],Ns={};function $o(e,t){const s=Ns[t];if(s)return s;let n=Re(t);if(n!=="filter"&&n in e)return Ns[t]=n;n=Bs(n);for(let r=0;r<cr.length;r++){const i=cr[r]+n;if(i in e)return Ns[t]=i}return t}const ur="http://www.w3.org/1999/xlink";function ar(e,t,s,n,r,i=Ur(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS(ur,t.slice(6,t.length)):e.setAttributeNS(ur,t,s):s==null||i&&!Gs(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Je(s)?String(s):s)}function dr(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?ir(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=Gs(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 hr=Symbol("_vei");function Wo(e,t,s,n,r=null){const i=e[hr]||(e[hr]={}),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 pr=/(?:Once|Passive|Capture)$/;function Bo(e){let t;if(pr.test(e)){t={};let n;for(;n=e.match(pr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ne(e.slice(2)),t]}let Ls=0;const qo=Promise.resolve(),Go=()=>Ls||(qo.then(()=>Ls=0),Ls=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 gr=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):Tt(t)?Qt(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))?(dr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ar(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!J(n))?dr(e,Re(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ar(e,t,n,o))};function Xo(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&gr(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 gr(t)&&J(s)?!1:t in e}const Zo=Z({patchProp:zo},Fo);let _r;function Qo(){return _r||(_r=Zi(Zo))}const mr=(...e)=>{Qo().render(...e)};var ko=Object.defineProperty,el=Object.getOwnPropertyDescriptor,tl=(e,t,s)=>t in e?ko(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,sl=(e,t,s,n)=>{for(var r=n>1?void 0:n?el(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),nl=(e,t,s)=>tl(e,t+"",s);fe.UniverVue3AdapterPlugin=class extends Ce.Plugin{constructor(t={},s,n){super(),this._config=t,this._injector=s,this._componentManager=n}onStarting(){const{createElement:t,useEffect:s,useRef:n}=this._componentManager.reactUtils;this._componentManager.setHandler("vue3",r=>i=>t(rl,{component:r,props:Object.keys(i).reduce((o,f)=>(f!=="key"&&(o[f]=i[f]),o),{}),reactUtils:{createElement:t,useEffect:s,useRef:n}}))}},nl(fe.UniverVue3AdapterPlugin,"pluginName","UNIVER_UI_ADAPTER_VUE3_PLUGIN"),fe.UniverVue3AdapterPlugin=sl([Ce.DependentOn(Ks.UniverUIPlugin),br(1,Ce.Inject(Ce.Injector)),br(2,Ce.Inject(Ks.ComponentManager))],fe.UniverVue3AdapterPlugin);function rl(e){const{component:t,props:s,reactUtils:n}=e,{createElement:r,useEffect:i,useRef:o}=n,f=o(null);return i(()=>{if(!f.current)return;const u=Ao(t,s);return mr(u,f.current),()=>{f.current&&mr(null,f.current)}},[s]),r("div",{ref:f})}Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(t,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("@univerjs/core"),require("@univerjs/ui"),require("vue")):typeof define=="function"&&define.amd?define(["exports","@univerjs/core","@univerjs/ui","vue"],u):(t=typeof globalThis<"u"?globalThis:t||self,u(t.UniverUiAdapterVue3={},t.UniverCore,t.UniverUi,t.Vue))})(this,function(t,u,f,d){"use strict";var l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,_=(r,e,n)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,U=(r,e,n,i)=>{for(var s=i>1?void 0:i?v(e,n):e,c=r.length-1,a;c>=0;c--)(a=r[c])&&(s=a(s)||s);return s},p=(r,e)=>(n,i)=>e(n,i,r),g=(r,e,n)=>_(r,e+"",n);t.UniverVue3AdapterPlugin=class extends u.Plugin{constructor(e={},n,i){super(),this._config=e,this._injector=n,this._componentManager=i}onStarting(){const{createElement:e,useEffect:n,useRef:i}=this._componentManager.reactUtils;this._componentManager.setHandler("vue3",s=>c=>e(m,{component:s,props:Object.keys(c).reduce((a,o)=>(o!=="key"&&(a[o]=c[o]),a),{}),reactUtils:{createElement:e,useEffect:n,useRef:i}}))}},g(t.UniverVue3AdapterPlugin,"pluginName","UNIVER_UI_ADAPTER_VUE3_PLUGIN"),t.UniverVue3AdapterPlugin=U([u.DependentOn(f.UniverUIPlugin),p(1,u.Inject(u.Injector)),p(2,u.Inject(f.ComponentManager))],t.UniverVue3AdapterPlugin);function m(r){const{component:e,props:n,reactUtils:i}=r,{createElement:s,useEffect:c,useRef:a}=i,o=a(null);return c(()=>{if(!o.current)return;const P=d.h(e,n);return d.render(P,o.current),()=>{o.current&&d.render(null,o.current)}},[n]),s("div",{ref:o})}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/ui-adapter-vue3",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-nightly.202507111607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Vue adapter for Univer UI",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -45,18 +45,18 @@
|
|
|
45
45
|
"lib"
|
|
46
46
|
],
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"
|
|
48
|
+
"vue": ">=3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@univerjs/core": "0.9.
|
|
52
|
-
"@univerjs/ui": "0.9.
|
|
51
|
+
"@univerjs/core": "0.9.2-nightly.202507111607",
|
|
52
|
+
"@univerjs/ui": "0.9.2-nightly.202507111607"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"typescript": "^5.8.3",
|
|
56
56
|
"vite": "^6.3.5",
|
|
57
57
|
"vitest": "^3.2.4",
|
|
58
58
|
"vue": "^3.5.17",
|
|
59
|
-
"@univerjs-infra/shared": "0.9.
|
|
59
|
+
"@univerjs-infra/shared": "0.9.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"test": "vitest run",
|
package/LICENSE
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|