@farris/ui-vue 1.0.0-beta.1

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,8 @@
1
+ (function(Qe,jn){typeof exports=="object"&&typeof module<"u"?module.exports=jn():typeof define=="function"&&define.amd?define(jn):(Qe=typeof globalThis<"u"?globalThis:Qe||self,Qe.FarrisVue=jn())})(this,function(){"use strict";function Qe(e,t){const n=Object.create(null),o=e.split(",");for(let l=0;l<o.length;l++)n[o[l]]=!0;return t?l=>!!n[l.toLowerCase()]:l=>!!n[l]}const vr=Qe("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Wl(e){return!!e||e===""}function Ao(e){if(re(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],l=Be(o)?yr(o):Ao(o);if(l)for(const a in l)t[a]=l[a]}return t}else{if(Be(e))return e;if(Oe(e))return e}}const gr=/;(?![^(]*\))/g,mr=/:(.+)/;function yr(e){const t={};return e.split(gr).forEach(n=>{if(n){const o=n.split(mr);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function ko(e){let t="";if(Be(e))t=e;else if(re(e))for(let n=0;n<e.length;n++){const o=ko(e[n]);o&&(t+=o+" ")}else if(Oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const br="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",wr="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",_r=Qe(br),xr=Qe(wr);function Nr(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=In(e[o],t[o]);return n}function In(e,t){if(e===t)return!0;let n=zl(e),o=zl(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=yn(e),o=yn(t),n||o)return e===t;if(n=re(e),o=re(t),n||o)return n&&o?Nr(e,t):!1;if(n=Oe(e),o=Oe(t),n||o){if(!n||!o)return!1;const l=Object.keys(e).length,a=Object.keys(t).length;if(l!==a)return!1;for(const s in e){const r=e.hasOwnProperty(s),i=t.hasOwnProperty(s);if(r&&!i||!r&&i||!In(e[s],t[s]))return!1}}return String(e)===String(t)}function Ll(e,t){return e.findIndex(n=>In(n,t))}const xe=process.env.NODE_ENV!=="production"?Object.freeze({}):{},gn=process.env.NODE_ENV!=="production"?Object.freeze([]):[],$e=()=>{},Ul=()=>!1,Cr=/^on[^a-z]/,mn=e=>Cr.test(e),Hn=e=>e.startsWith("onUpdate:"),Me=Object.assign,Po=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Er=Object.prototype.hasOwnProperty,ge=(e,t)=>Er.call(e,t),re=Array.isArray,on=e=>bn(e)==="[object Map]",Do=e=>bn(e)==="[object Set]",zl=e=>bn(e)==="[object Date]",ce=e=>typeof e=="function",Be=e=>typeof e=="string",yn=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",Mo=e=>Oe(e)&&ce(e.then)&&ce(e.catch),Or=Object.prototype.toString,bn=e=>Or.call(e),Bo=e=>bn(e).slice(8,-1),Sr=e=>bn(e)==="[object Object]",Vo=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wn=Qe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tr=Qe("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ar=/-(\w)/g,at=Ln(e=>e.replace(Ar,(t,n)=>n?n.toUpperCase():"")),kr=/\B([A-Z])/g,_t=Ln(e=>e.replace(kr,"-$1").toLowerCase()),Ft=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rt=Ln(e=>e?`on${Ft(e)}`:""),wn=(e,t)=>!Object.is(e,t),ln=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Un=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Fo=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Gl;const Kl=()=>Gl||(Gl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ro(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let st;class Pr{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&st&&(this.parent=st,this.index=(st.scopes||(st.scopes=[])).push(this)-1)}run(t){if(this.active){const n=st;try{return st=this,t()}finally{st=n}}else process.env.NODE_ENV!=="production"&&Ro("cannot run an inactive effect scope.")}on(){st=this}off(){st=this.parent}stop(t){if(this.active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.active=!1}}}function Dr(e,t=st){t&&t.active&&t.effects.push(e)}const _n=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Yl=e=>(e.w&xt)>0,ql=e=>(e.n&xt)>0,Mr=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=xt},Br=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const l=t[o];Yl(l)&&!ql(l)?l.delete(e):t[n++]=l,l.w&=~xt,l.n&=~xt}t.length=n}},$o=new WeakMap;let xn=0,xt=1;const jo=30;let He;const $t=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),Io=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");class Ho{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Dr(this,o)}run(){if(!this.active)return this.fn();let t=He,n=Nt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=He,He=this,Nt=!0,xt=1<<++xn,xn<=jo?Mr(this):Ql(this),this.fn()}finally{xn<=jo&&Br(this),xt=1<<--xn,He=this.parent,Nt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){He===this?this.deferStop=!0:this.active&&(Ql(this),this.onStop&&this.onStop(),this.active=!1)}}function Ql(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Nt=!0;const Xl=[];function jt(){Xl.push(Nt),Nt=!1}function It(){const e=Xl.pop();Nt=e===void 0?!0:e}function Le(e,t,n){if(Nt&&He){let o=$o.get(e);o||$o.set(e,o=new Map);let l=o.get(n);l||o.set(n,l=_n());const a=process.env.NODE_ENV!=="production"?{effect:He,target:e,type:t,key:n}:void 0;Wo(l,a)}}function Wo(e,t){let n=!1;xn<=jo?ql(e)||(e.n|=xt,n=!Yl(e)):n=!e.has(He),n&&(e.add(He),He.deps.push(e),process.env.NODE_ENV!=="production"&&He.onTrack&&He.onTrack(Object.assign({effect:He},t)))}function vt(e,t,n,o,l,a){const s=$o.get(e);if(!s)return;let r=[];if(t==="clear")r=[...s.values()];else if(n==="length"&&re(e))s.forEach((c,v)=>{(v==="length"||v>=o)&&r.push(c)});else switch(n!==void 0&&r.push(s.get(n)),t){case"add":re(e)?Vo(n)&&r.push(s.get("length")):(r.push(s.get($t)),on(e)&&r.push(s.get(Io)));break;case"delete":re(e)||(r.push(s.get($t)),on(e)&&r.push(s.get(Io)));break;case"set":on(e)&&r.push(s.get($t));break}const i=process.env.NODE_ENV!=="production"?{target:e,type:t,key:n,newValue:o,oldValue:l,oldTarget:a}:void 0;if(r.length===1)r[0]&&(process.env.NODE_ENV!=="production"?an(r[0],i):an(r[0]));else{const c=[];for(const v of r)v&&c.push(...v);process.env.NODE_ENV!=="production"?an(_n(c),i):an(_n(c))}}function an(e,t){const n=re(e)?e:[...e];for(const o of n)o.computed&&Zl(o,t);for(const o of n)o.computed||Zl(o,t)}function Zl(e,t){(e!==He||e.allowRecurse)&&(process.env.NODE_ENV!=="production"&&e.onTrigger&&e.onTrigger(Me({effect:e},t)),e.scheduler?e.scheduler():e.run())}const Vr=Qe("__proto__,__v_isRef,__isVue"),Jl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yn)),Fr=zn(),Rr=zn(!1,!0),$r=zn(!0),jr=zn(!0,!0),ea=Ir();function Ir(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=he(this);for(let a=0,s=this.length;a<s;a++)Le(o,"get",a+"");const l=o[t](...n);return l===-1||l===!1?o[t](...n.map(he)):l}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){jt();const o=he(this)[t].apply(this,n);return It(),o}}),e}function zn(e=!1,t=!1){return function(o,l,a){if(l==="__v_isReactive")return!e;if(l==="__v_isReadonly")return e;if(l==="__v_isShallow")return t;if(l==="__v_raw"&&a===(e?t?da:fa:t?ca:ua).get(o))return o;const s=re(o);if(!e&&s&&ge(ea,l))return Reflect.get(ea,l,a);const r=Reflect.get(o,l,a);return(yn(l)?Jl.has(l):Vr(l))||(e||Le(o,"get",l),t)?r:Ve(r)?s&&Vo(l)?r:r.value:Oe(r)?e?pa(r):Ue(r):r}}const Hr=ta(),Wr=ta(!0);function ta(e=!1){return function(n,o,l,a){let s=n[o];if(Et(s)&&Ve(s)&&!Ve(l))return!1;if(!e&&(!eo(l)&&!Et(l)&&(s=he(s),l=he(l)),!re(n)&&Ve(s)&&!Ve(l)))return s.value=l,!0;const r=re(n)&&Vo(o)?Number(o)<n.length:ge(n,o),i=Reflect.set(n,o,l,a);return n===he(a)&&(r?wn(l,s)&&vt(n,"set",o,l,s):vt(n,"add",o,l)),i}}function Lr(e,t){const n=ge(e,t),o=e[t],l=Reflect.deleteProperty(e,t);return l&&n&&vt(e,"delete",t,void 0,o),l}function Ur(e,t){const n=Reflect.has(e,t);return(!yn(t)||!Jl.has(t))&&Le(e,"has",t),n}function zr(e){return Le(e,"iterate",re(e)?"length":$t),Reflect.ownKeys(e)}const na={get:Fr,set:Hr,deleteProperty:Lr,has:Ur,ownKeys:zr},oa={get:$r,set(e,t){return process.env.NODE_ENV!=="production"&&Ro(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&Ro(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},Gr=Me({},na,{get:Rr,set:Wr}),Kr=Me({},oa,{get:jr}),Lo=e=>e,Gn=e=>Reflect.getPrototypeOf(e);function Kn(e,t,n=!1,o=!1){e=e.__v_raw;const l=he(e),a=he(t);n||(t!==a&&Le(l,"get",t),Le(l,"get",a));const{has:s}=Gn(l),r=o?Lo:n?Uo:Nn;if(s.call(l,t))return r(e.get(t));if(s.call(l,a))return r(e.get(a));e!==l&&e.get(t)}function Yn(e,t=!1){const n=this.__v_raw,o=he(n),l=he(e);return t||(e!==l&&Le(o,"has",e),Le(o,"has",l)),e===l?n.has(e):n.has(e)||n.has(l)}function qn(e,t=!1){return e=e.__v_raw,!t&&Le(he(e),"iterate",$t),Reflect.get(e,"size",e)}function la(e){e=he(e);const t=he(this);return Gn(t).has.call(t,e)||(t.add(e),vt(t,"add",e,e)),this}function aa(e,t){t=he(t);const n=he(this),{has:o,get:l}=Gn(n);let a=o.call(n,e);a?process.env.NODE_ENV!=="production"&&ia(n,o,e):(e=he(e),a=o.call(n,e));const s=l.call(n,e);return n.set(e,t),a?wn(t,s)&&vt(n,"set",e,t,s):vt(n,"add",e,t),this}function sa(e){const t=he(this),{has:n,get:o}=Gn(t);let l=n.call(t,e);l?process.env.NODE_ENV!=="production"&&ia(t,n,e):(e=he(e),l=n.call(t,e));const a=o?o.call(t,e):void 0,s=t.delete(e);return l&&vt(t,"delete",e,void 0,a),s}function ra(){const e=he(this),t=e.size!==0,n=process.env.NODE_ENV!=="production"?on(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&vt(e,"clear",void 0,void 0,n),o}function Qn(e,t){return function(o,l){const a=this,s=a.__v_raw,r=he(s),i=t?Lo:e?Uo:Nn;return!e&&Le(r,"iterate",$t),s.forEach((c,v)=>o.call(l,i(c),i(v),a))}}function Xn(e,t,n){return function(...o){const l=this.__v_raw,a=he(l),s=on(a),r=e==="entries"||e===Symbol.iterator&&s,i=e==="keys"&&s,c=l[e](...o),v=n?Lo:t?Uo:Nn;return!t&&Le(a,"iterate",i?Io:$t),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:r?[v(f[0]),v(f[1])]:v(f),done:p}},[Symbol.iterator](){return this}}}}function Ct(e){return function(...t){if(process.env.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${Ft(e)} operation ${n}failed: target is readonly.`,he(this))}return e==="delete"?!1:this}}function Yr(){const e={get(a){return Kn(this,a)},get size(){return qn(this)},has:Yn,add:la,set:aa,delete:sa,clear:ra,forEach:Qn(!1,!1)},t={get(a){return Kn(this,a,!1,!0)},get size(){return qn(this)},has:Yn,add:la,set:aa,delete:sa,clear:ra,forEach:Qn(!1,!0)},n={get(a){return Kn(this,a,!0)},get size(){return qn(this,!0)},has(a){return Yn.call(this,a,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Qn(!0,!1)},o={get(a){return Kn(this,a,!0,!0)},get size(){return qn(this,!0)},has(a){return Yn.call(this,a,!0)},add:Ct("add"),set:Ct("set"),delete:Ct("delete"),clear:Ct("clear"),forEach:Qn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=Xn(a,!1,!1),n[a]=Xn(a,!0,!1),t[a]=Xn(a,!1,!0),o[a]=Xn(a,!0,!0)}),[e,n,t,o]}const[qr,Qr,Xr,Zr]=Yr();function Zn(e,t){const n=t?e?Zr:Xr:e?Qr:qr;return(o,l,a)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?o:Reflect.get(ge(n,l)&&l in o?n:o,l,a)}const Jr={get:Zn(!1,!1)},ei={get:Zn(!1,!0)},ti={get:Zn(!0,!1)},ni={get:Zn(!0,!0)};function ia(e,t,n){const o=he(n);if(o!==n&&t.call(e,o)){const l=Bo(e);console.warn(`Reactive ${l} contains both the raw and reactive versions of the same object${l==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const ua=new WeakMap,ca=new WeakMap,fa=new WeakMap,da=new WeakMap;function oi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function li(e){return e.__v_skip||!Object.isExtensible(e)?0:oi(Bo(e))}function Ue(e){return Et(e)?e:Jn(e,!1,na,Jr,ua)}function ai(e){return Jn(e,!1,Gr,ei,ca)}function pa(e){return Jn(e,!0,oa,ti,fa)}function sn(e){return Jn(e,!0,Kr,ni,da)}function Jn(e,t,n,o,l){if(!Oe(e))return process.env.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=l.get(e);if(a)return a;const s=li(e);if(s===0)return e;const r=new Proxy(e,s===2?o:n);return l.set(e,r),r}function Ht(e){return Et(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Et(e){return!!(e&&e.__v_isReadonly)}function eo(e){return!!(e&&e.__v_isShallow)}function to(e){return Ht(e)||Et(e)}function he(e){const t=e&&e.__v_raw;return t?he(t):e}function ha(e){return Un(e,"__v_skip",!0),e}const Nn=e=>Oe(e)?Ue(e):e,Uo=e=>Oe(e)?pa(e):e;function va(e){Nt&&He&&(e=he(e),process.env.NODE_ENV!=="production"?Wo(e.dep||(e.dep=_n()),{target:e,type:"get",key:"value"}):Wo(e.dep||(e.dep=_n())))}function ga(e,t){e=he(e),e.dep&&(process.env.NODE_ENV!=="production"?an(e.dep,{target:e,type:"set",key:"value",newValue:t}):an(e.dep))}function Ve(e){return!!(e&&e.__v_isRef===!0)}function N(e){return ya(e,!1)}function ma(e){return ya(e,!0)}function ya(e,t){return Ve(e)?e:new si(e,t)}class si{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:he(t),this._value=n?t:Nn(t)}get value(){return va(this),this._value}set value(t){const n=this.__v_isShallow||eo(t)||Et(t);t=n?t:he(t),wn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Nn(t),ga(this,t))}}function ri(e){return Ve(e)?e.value:e}const ii={get:(e,t,n)=>ri(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const l=e[t];return Ve(l)&&!Ve(n)?(l.value=n,!0):Reflect.set(e,t,n,o)}};function ba(e){return Ht(e)?e:new Proxy(e,ii)}function wa(e){process.env.NODE_ENV!=="production"&&!to(e)&&console.warn("toRefs() expects a reactive object but received a plain one.");const t=re(e)?new Array(e.length):{};for(const n in e)t[n]=ci(e,n);return t}class ui{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function ci(e,t,n){const o=e[t];return Ve(o)?o:new ui(e,t,n)}var _a;class fi{constructor(t,n,o,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[_a]=!1,this._dirty=!0,this.effect=new Ho(t,()=>{this._dirty||(this._dirty=!0,ga(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=o}get value(){const t=he(this);return va(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}_a="__v_isReadonly";function di(e,t,n=!1){let o,l;const a=ce(e);a?(o=e,l=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:$e):(o=e.get,l=e.set);const s=new fi(o,l,a||!l,n);return process.env.NODE_ENV!=="production"&&t&&!n&&(s.effect.onTrack=t.onTrack,s.effect.onTrigger=t.onTrigger),s}const Wt=[];function no(e){Wt.push(e)}function oo(){Wt.pop()}function J(e,...t){jt();const n=Wt.length?Wt[Wt.length-1].component:null,o=n&&n.appContext.config.warnHandler,l=pi();if(o)gt(o,n,11,[e+t.join(""),n&&n.proxy,l.map(({vnode:a})=>`at <${_o(n,a.type)}>`).join(`
2
+ `),l]);else{const a=[`[Vue warn]: ${e}`,...t];l.length&&a.push(`
3
+ `,...hi(l)),console.warn(...a)}It()}function pi(){let e=Wt[Wt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function hi(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
4
+ `],...vi(n))}),t}function vi({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,l=` at <${_o(e.component,e.type,o)}`,a=">"+n;return e.props?[l,...gi(e.props),a]:[l+a]}function gi(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...xa(o,e[o]))}),n.length>3&&t.push(" ..."),t}function xa(e,t,n){return Be(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ve(t)?(t=xa(e,he(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ce(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=he(t),n?t:[`${e}=`,t])}const zo={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function gt(e,t,n,o){let l;try{l=o?e(...o):e()}catch(a){lo(a,t,n)}return l}function tt(e,t,n,o){if(ce(e)){const a=gt(e,t,n,o);return a&&Mo(a)&&a.catch(s=>{lo(s,t,n)}),a}const l=[];for(let a=0;a<e.length;a++)l.push(tt(e[a],t,n,o));return l}function lo(e,t,n,o=!0){const l=t?t.vnode:null;if(t){let a=t.parent;const s=t.proxy,r=process.env.NODE_ENV!=="production"?zo[n]:n;for(;a;){const c=a.ec;if(c){for(let v=0;v<c.length;v++)if(c[v](e,s,r)===!1)return}a=a.parent}const i=t.appContext.config.errorHandler;if(i){gt(i,null,10,[e,s,r]);return}}mi(e,n,l,o)}function mi(e,t,n,o=!0){if(process.env.NODE_ENV!=="production"){const l=zo[t];if(n&&no(n),J(`Unhandled error${l?` during execution of ${l}`:""}`),n&&oo(),o)throw e;console.error(e)}else console.error(e)}let Cn=!1,Go=!1;const Ie=[];let rt=0;const rn=[];let it=null,Ot=0;const Na=Promise.resolve();let Ko=null;const yi=100;function ut(e){const t=Ko||Na;return e?t.then(this?e.bind(this):e):t}function bi(e){let t=rt+1,n=Ie.length;for(;t<n;){const o=t+n>>>1;En(Ie[o])<e?t=o+1:n=o}return t}function ao(e){(!Ie.length||!Ie.includes(e,Cn&&e.allowRecurse?rt+1:rt))&&(e.id==null?Ie.push(e):Ie.splice(bi(e.id),0,e),Ca())}function Ca(){!Cn&&!Go&&(Go=!0,Ko=Na.then(Ta))}function wi(e){const t=Ie.indexOf(e);t>rt&&Ie.splice(t,1)}function Ea(e){re(e)?rn.push(...e):(!it||!it.includes(e,e.allowRecurse?Ot+1:Ot))&&rn.push(e),Ca()}function Oa(e,t=Cn?rt+1:0){for(process.env.NODE_ENV!=="production"&&(e=e||new Map);t<Ie.length;t++){const n=Ie[t];if(n&&n.pre){if(process.env.NODE_ENV!=="production"&&Yo(e,n))continue;Ie.splice(t,1),t--,n()}}}function Sa(e){if(rn.length){const t=[...new Set(rn)];if(rn.length=0,it){it.push(...t);return}for(it=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),it.sort((n,o)=>En(n)-En(o)),Ot=0;Ot<it.length;Ot++)process.env.NODE_ENV!=="production"&&Yo(e,it[Ot])||it[Ot]();it=null,Ot=0}}const En=e=>e.id==null?1/0:e.id,_i=(e,t)=>{const n=En(e)-En(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ta(e){Go=!1,Cn=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),Ie.sort(_i);const t=process.env.NODE_ENV!=="production"?n=>Yo(e,n):$e;try{for(rt=0;rt<Ie.length;rt++){const n=Ie[rt];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&t(n))continue;gt(n,null,14)}}}finally{rt=0,Ie.length=0,Sa(e),Cn=!1,Ko=null,(Ie.length||rn.length)&&Ta(e)}}function Yo(e,t){if(!e.has(t))e.set(t,1);else{const n=e.get(t);if(n>yi){const o=t.ownerInstance,l=o&&yl(o.type);return J(`Maximum recursive updates exceeded${l?` in component <${l}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,n+1)}}let St=!1;const un=new Set;process.env.NODE_ENV!=="production"&&(Kl().__VUE_HMR_RUNTIME__={createRecord:qo(Aa),rerender:qo(Ci),reload:qo(Ei)});const Lt=new Map;function xi(e){const t=e.type.__hmrId;let n=Lt.get(t);n||(Aa(t,e.type),n=Lt.get(t)),n.instances.add(e)}function Ni(e){Lt.get(e.type.__hmrId).instances.delete(e)}function Aa(e,t){return Lt.has(e)?!1:(Lt.set(e,{initialDef:On(t),instances:new Set}),!0)}function On(e){return gs(e)?e.__vccOpts:e}function Ci(e,t){const n=Lt.get(e);!n||(n.initialDef.render=t,[...n.instances].forEach(o=>{t&&(o.render=t,On(o.type).render=t),o.renderCache=[],St=!0,o.update(),St=!1}))}function Ei(e,t){const n=Lt.get(e);if(!n)return;t=On(t),ka(n.initialDef,t);const o=[...n.instances];for(const l of o){const a=On(l.type);un.has(a)||(a!==n.initialDef&&ka(a,t),un.add(a)),l.appContext.optionsCache.delete(l.type),l.ceReload?(un.add(a),l.ceReload(t.styles),un.delete(a)):l.parent?(ao(l.parent.update),l.parent.type.__asyncLoader&&l.parent.ceReload&&l.parent.ceReload(t.styles)):l.appContext.reload?l.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Ea(()=>{for(const l of o)un.delete(On(l.type))})}function ka(e,t){Me(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function qo(e){return(t,n)=>{try{return e(t,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ut,Sn=[],Qo=!1;function Tn(e,...t){Ut?Ut.emit(e,...t):Qo||Sn.push({event:e,args:t})}function Pa(e,t){var n,o;Ut=e,Ut?(Ut.enabled=!0,Sn.forEach(({event:l,args:a})=>Ut.emit(l,...a)),Sn=[]):typeof window<"u"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{Pa(a,t)}),setTimeout(()=>{Ut||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Qo=!0,Sn=[])},3e3)):(Qo=!0,Sn=[])}function Oi(e,t){Tn("app:init",e,t,{Fragment:Pe,Text:go,Comment:nt,Static:mo})}function Si(e){Tn("app:unmount",e)}const Ti=Xo("component:added"),Da=Xo("component:updated"),Ai=Xo("component:removed");function Xo(e){return t=>{Tn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const ki=Ma("perf:start"),Pi=Ma("perf:end");function Ma(e){return(t,n,o)=>{Tn(e,t.appContext.app,t.uid,t,n,o)}}function Di(e,t,n){Tn("component:emit",e.appContext.app,e,t,n)}function Mi(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||xe;if(process.env.NODE_ENV!=="production"){const{emitsOptions:v,propsOptions:[f]}=e;if(v)if(!(t in v))(!f||!(Rt(t)in f))&&J(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Rt(t)}" prop.`);else{const p=v[t];ce(p)&&(p(...n)||J(`Invalid event arguments: event validation failed for event "${t}".`))}}let l=n;const a=t.startsWith("update:"),s=a&&t.slice(7);if(s&&s in o){const v=`${s==="modelValue"?"model":s}Modifiers`,{number:f,trim:p}=o[v]||xe;p&&(l=n.map(g=>g.trim())),f&&(l=n.map(Fo))}if(process.env.NODE_ENV!=="production"&&Di(e,t,l),process.env.NODE_ENV!=="production"){const v=t.toLowerCase();v!==t&&o[Rt(v)]&&J(`Event "${v}" is emitted in component ${_o(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${_t(t)}" instead of "${t}".`)}let r,i=o[r=Rt(t)]||o[r=Rt(at(t))];!i&&a&&(i=o[r=Rt(_t(t))]),i&&tt(i,e,6,l);const c=o[r+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[r])return;e.emitted[r]=!0,tt(c,e,6,l)}}function Ba(e,t,n=!1){const o=t.emitsCache,l=o.get(e);if(l!==void 0)return l;const a=e.emits;let s={},r=!1;if(!ce(e)){const i=c=>{const v=Ba(c,t,!0);v&&(r=!0,Me(s,v))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!a&&!r?(Oe(e)&&o.set(e,null),null):(re(a)?a.forEach(i=>s[i]=null):Me(s,a),Oe(e)&&o.set(e,s),s)}function so(e,t){return!e||!mn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,_t(t))||ge(e,t))}let Ye=null,Va=null;function ro(e){const t=Ye;return Ye=e,Va=e&&e.type.__scopeId||null,t}function Bi(e,t=Ye,n){if(!t||e._n)return e;const o=(...l)=>{o._d&&is(-1);const a=ro(t),s=e(...l);return ro(a),o._d&&is(1),process.env.NODE_ENV!=="production"&&Da(t),s};return o._n=!0,o._c=!0,o._d=!0,o}let Zo=!1;function io(){Zo=!0}function Jo(e){const{type:t,vnode:n,proxy:o,withProxy:l,props:a,propsOptions:[s],slots:r,attrs:i,emit:c,render:v,renderCache:f,data:p,setupState:g,ctx:E,inheritAttrs:R}=e;let P,T;const b=ro(e);process.env.NODE_ENV!=="production"&&(Zo=!1);try{if(n.shapeFlag&4){const M=l||o;P=ot(v.call(M,M,f,a,g,p,E)),T=i}else{const M=t;process.env.NODE_ENV!=="production"&&i===a&&io(),P=ot(M.length>1?M(a,process.env.NODE_ENV!=="production"?{get attrs(){return io(),i},slots:r,emit:c}:{attrs:i,slots:r,emit:c}):M(a,null)),T=t.props?i:Fi(i)}}catch(M){lo(M,e,1),P=h(nt)}let V=P,D;if(process.env.NODE_ENV!=="production"&&P.patchFlag>0&&P.patchFlag&2048&&([V,D]=Vi(P)),T&&R!==!1){const M=Object.keys(T),{shapeFlag:I}=V;if(M.length){if(I&7)s&&M.some(Hn)&&(T=Ri(T,s)),V=kt(V,T);else if(process.env.NODE_ENV!=="production"&&!Zo&&V.type!==nt){const j=Object.keys(i),u=[],d=[];for(let m=0,w=j.length;m<w;m++){const _=j[m];mn(_)?Hn(_)||u.push(_[2].toLowerCase()+_.slice(3)):d.push(_)}d.length&&J(`Extraneous non-props attributes (${d.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),u.length&&J(`Extraneous non-emits event listeners (${u.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return n.dirs&&(process.env.NODE_ENV!=="production"&&!Ra(V)&&J("Runtime directive used on component with non-element root node. The directives will not function as intended."),V=kt(V),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition&&(process.env.NODE_ENV!=="production"&&!Ra(V)&&J("Component inside <Transition> renders non-element root node that cannot be animated."),V.transition=n.transition),process.env.NODE_ENV!=="production"&&D?D(V):P=V,ro(b),P}const Vi=e=>{const t=e.children,n=e.dynamicChildren,o=Fa(t);if(!o)return[e,void 0];const l=t.indexOf(o),a=n?n.indexOf(o):-1,s=r=>{t[l]=r,n&&(a>-1?n[a]=r:r.patchFlag>0&&(e.dynamicChildren=[...n,r]))};return[ot(o),s]};function Fa(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(hl(o)){if(o.type!==nt||o.children==="v-if"){if(t)return;t=o}}else return}return t}const Fi=e=>{let t;for(const n in e)(n==="class"||n==="style"||mn(n))&&((t||(t={}))[n]=e[n]);return t},Ri=(e,t)=>{const n={};for(const o in e)(!Hn(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n},Ra=e=>e.shapeFlag&7||e.type===nt;function $i(e,t,n){const{props:o,children:l,component:a}=e,{props:s,children:r,patchFlag:i}=t,c=a.emitsOptions;if(process.env.NODE_ENV!=="production"&&(l||r)&&St||t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return o?$a(o,s,c):!!s;if(i&8){const v=t.dynamicProps;for(let f=0;f<v.length;f++){const p=v[f];if(s[p]!==o[p]&&!so(c,p))return!0}}}else return(l||r)&&(!r||!r.$stable)?!0:o===s?!1:o?s?$a(o,s,c):!0:!!s;return!1}function $a(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let l=0;l<o.length;l++){const a=o[l];if(t[a]!==e[a]&&!so(n,a))return!0}return!1}function ji({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ii=e=>e.__isSuspense;function Hi(e,t){t&&t.pendingBranch?re(e)?t.effects.push(...e):t.effects.push(e):Ea(e)}function uo(e,t){if(!Fe)process.env.NODE_ENV!=="production"&&J("provide() can only be used inside setup().");else{let n=Fe.provides;const o=Fe.parent&&Fe.parent.provides;o===n&&(n=Fe.provides=Object.create(o)),n[e]=t}}function Tt(e,t,n=!1){const o=Fe||Ye;if(o){const l=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&ce(t)?t.call(o.proxy):t;process.env.NODE_ENV!=="production"&&J(`injection "${String(e)}" not found.`)}else process.env.NODE_ENV!=="production"&&J("inject() can only be used inside setup() or functional components.")}const ja={};function Ee(e,t,n){return process.env.NODE_ENV!=="production"&&!ce(t)&&J("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Ia(e,t,n)}function Ia(e,t,{immediate:n,deep:o,flush:l,onTrack:a,onTrigger:s}=xe){process.env.NODE_ENV!=="production"&&!t&&(n!==void 0&&J('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&J('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const r=b=>{J("Invalid watch source: ",b,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},i=Fe;let c,v=!1,f=!1;if(Ve(e)?(c=()=>e.value,v=eo(e)):Ht(e)?(c=()=>e,o=!0):re(e)?(f=!0,v=e.some(b=>Ht(b)||eo(b)),c=()=>e.map(b=>{if(Ve(b))return b.value;if(Ht(b))return zt(b);if(ce(b))return gt(b,i,2);process.env.NODE_ENV!=="production"&&r(b)})):ce(e)?t?c=()=>gt(e,i,2):c=()=>{if(!(i&&i.isUnmounted))return p&&p(),tt(e,i,3,[g])}:(c=$e,process.env.NODE_ENV!=="production"&&r(e)),t&&o){const b=c;c=()=>zt(b())}let p,g=b=>{p=T.onStop=()=>{gt(b,i,4)}};if(Bn)return g=$e,t?n&&tt(t,i,3,[c(),f?[]:void 0,g]):c(),$e;let E=f?[]:ja;const R=()=>{if(!!T.active)if(t){const b=T.run();(o||v||(f?b.some((V,D)=>wn(V,E[D])):wn(b,E)))&&(p&&p(),tt(t,i,3,[b,E===ja?void 0:E,g]),E=b)}else T.run()};R.allowRecurse=!!t;let P;l==="sync"?P=R:l==="post"?P=()=>ze(R,i&&i.suspense):(R.pre=!0,i&&(R.id=i.uid),P=()=>ao(R));const T=new Ho(c,P);return process.env.NODE_ENV!=="production"&&(T.onTrack=a,T.onTrigger=s),t?n?R():E=T.run():l==="post"?ze(T.run.bind(T),i&&i.suspense):T.run(),()=>{T.stop(),i&&i.scope&&Po(i.scope.effects,T)}}function Wi(e,t,n){const o=this.proxy,l=Be(e)?e.includes(".")?Ha(o,e):()=>o[e]:e.bind(o,o);let a;ce(t)?a=t:(a=t.handler,n=t);const s=Fe;pn(this);const r=Ia(l,a.bind(o),n);return s?pn(s):Xt(),r}function Ha(e,t){const n=t.split(".");return()=>{let o=e;for(let l=0;l<n.length&&o;l++)o=o[n[l]];return o}}function zt(e,t){if(!Oe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ve(e))zt(e.value,t);else if(re(e))for(let n=0;n<e.length;n++)zt(e[n],t);else if(Do(e)||on(e))e.forEach(n=>{zt(n,t)});else if(Sr(e))for(const n in e)zt(e[n],t);return e}function me(e){return ce(e)?{setup:e,name:e.name}:e}const co=e=>!!e.type.__asyncLoader,el=e=>e.type.__isKeepAlive;function Li(e,t){Wa(e,"a",t)}function Ui(e,t){Wa(e,"da",t)}function Wa(e,t,n=Fe){const o=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(fo(t,o,n),n){let l=n.parent;for(;l&&l.parent;)el(l.parent.vnode)&&zi(o,t,n,l),l=l.parent}}function zi(e,t,n,o){const l=fo(t,e,o,!0);Kt(()=>{Po(o[t],l)},n)}function fo(e,t,n=Fe,o=!1){if(n){const l=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;jt(),pn(n);const r=tt(t,n,e,s);return Xt(),It(),r});return o?l.unshift(a):l.push(a),a}else if(process.env.NODE_ENV!=="production"){const l=Rt(zo[e].replace(/ hook$/,""));J(`${l} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const mt=e=>(t,n=Fe)=>(!Bn||e==="sp")&&fo(e,t,n),Gi=mt("bm"),Gt=mt("m"),Ki=mt("bu"),Yi=mt("u"),qi=mt("bum"),Kt=mt("um"),Qi=mt("sp"),Xi=mt("rtg"),Zi=mt("rtc");function Ji(e,t=Fe){fo("ec",e,t)}function La(e){Tr(e)&&J("Do not use built-in directive ids as custom directive id: "+e)}function An(e,t){const n=Ye;if(n===null)return process.env.NODE_ENV!=="production"&&J("withDirectives can only be used inside render functions."),e;const o=wo(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let a=0;a<t.length;a++){let[s,r,i,c=xe]=t[a];ce(s)&&(s={mounted:s,updated:s}),s.deep&&zt(r),l.push({dir:s,instance:o,value:r,oldValue:void 0,arg:i,modifiers:c})}return e}function Yt(e,t,n,o){const l=e.dirs,a=t&&t.dirs;for(let s=0;s<l.length;s++){const r=l[s];a&&(r.oldValue=a[s].value);let i=r.dir[o];i&&(jt(),tt(i,n,8,[e.el,r,e,t]),It())}}const tl="components";function kn(e,t){return tu(tl,e,!0,t)||e}const eu=Symbol();function tu(e,t,n=!0,o=!1){const l=Ye||Fe;if(l){const a=l.type;if(e===tl){const r=yl(a,!1);if(r&&(r===t||r===at(t)||r===Ft(at(t))))return a}const s=Ua(l[e]||a[e],t)||Ua(l.appContext[e],t);if(!s&&o)return a;if(process.env.NODE_ENV!=="production"&&n&&!s){const r=e===tl?`
5
+ If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";J(`Failed to resolve ${e.slice(0,-1)}: ${t}${r}`)}return s}else process.env.NODE_ENV!=="production"&&J(`resolve${Ft(e.slice(0,-1))} can only be used in render() or setup().`)}function Ua(e,t){return e&&(e[t]||e[at(t)]||e[Ft(at(t))])}const nl=e=>e?ds(e)?wo(e)||e.proxy:nl(e.parent):null,cn=Me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?sn(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?sn(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?sn(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?sn(e.refs):e.refs,$parent:e=>nl(e.parent),$root:e=>nl(e.root),$emit:e=>e.emit,$options:e=>al(e),$forceUpdate:e=>e.f||(e.f=()=>ao(e.update)),$nextTick:e=>e.n||(e.n=ut.bind(e.proxy)),$watch:e=>Wi.bind(e)}),ol=e=>e==="_"||e==="$",za={get({_:e},t){const{ctx:n,setupState:o,data:l,props:a,accessCache:s,type:r,appContext:i}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;if(process.env.NODE_ENV!=="production"&&o!==xe&&o.__isScriptSetup&&ge(o,t))return o[t];let c;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return o[t];case 2:return l[t];case 4:return n[t];case 3:return a[t]}else{if(o!==xe&&ge(o,t))return s[t]=1,o[t];if(l!==xe&&ge(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&ge(c,t))return s[t]=3,a[t];if(n!==xe&&ge(n,t))return s[t]=4,n[t];ll&&(s[t]=0)}}const v=cn[t];let f,p;if(v)return t==="$attrs"&&(Le(e,"get",t),process.env.NODE_ENV!=="production"&&io()),v(e);if((f=r.__cssModules)&&(f=f[t]))return f;if(n!==xe&&ge(n,t))return s[t]=4,n[t];if(p=i.config.globalProperties,ge(p,t))return p[t];process.env.NODE_ENV!=="production"&&Ye&&(!Be(t)||t.indexOf("__v")!==0)&&(l!==xe&&ol(t[0])&&ge(l,t)?J(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Ye&&J(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:o,setupState:l,ctx:a}=e;return l!==xe&&ge(l,t)?(l[t]=n,!0):o!==xe&&ge(o,t)?(o[t]=n,!0):ge(e.props,t)?(process.env.NODE_ENV!=="production"&&J(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&J(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`,e),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(a,t,{enumerable:!0,configurable:!0,value:n}):a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:l,propsOptions:a}},s){let r;return!!n[s]||e!==xe&&ge(e,s)||t!==xe&&ge(t,s)||(r=a[0])&&ge(r,s)||ge(o,s)||ge(cn,s)||ge(l.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};process.env.NODE_ENV!=="production"&&(za.ownKeys=e=>(J("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function nu(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(cn).forEach(n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>cn[n](e),set:$e})}),t}function ou(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach(o=>{Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>e.props[o],set:$e})})}function lu(e){const{ctx:t,setupState:n}=e;Object.keys(he(n)).forEach(o=>{if(!n.__isScriptSetup){if(ol(o[0])){J(`setup() return property ${JSON.stringify(o)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n[o],set:$e})}})}function au(){const e=Object.create(null);return(t,n)=>{e[n]?J(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}let ll=!0;function su(e){const t=al(e),n=e.proxy,o=e.ctx;ll=!1,t.beforeCreate&&Ga(t.beforeCreate,e,"bc");const{data:l,computed:a,methods:s,watch:r,provide:i,inject:c,created:v,beforeMount:f,mounted:p,beforeUpdate:g,updated:E,activated:R,deactivated:P,beforeDestroy:T,beforeUnmount:b,destroyed:V,unmounted:D,render:M,renderTracked:I,renderTriggered:j,errorCaptured:u,serverPrefetch:d,expose:m,inheritAttrs:w,components:_,directives:C,filters:B}=t,A=process.env.NODE_ENV!=="production"?au():null;if(process.env.NODE_ENV!=="production"){const[y]=e.propsOptions;if(y)for(const O in y)A("Props",O)}if(c&&ru(c,o,A,e.appContext.config.unwrapInjectedRef),s)for(const y in s){const O=s[y];ce(O)?(process.env.NODE_ENV!=="production"?Object.defineProperty(o,y,{value:O.bind(n),configurable:!0,enumerable:!0,writable:!0}):o[y]=O.bind(n),process.env.NODE_ENV!=="production"&&A("Methods",y)):process.env.NODE_ENV!=="production"&&J(`Method "${y}" has type "${typeof O}" in the component definition. Did you reference the function correctly?`)}if(l){process.env.NODE_ENV!=="production"&&!ce(l)&&J("The data option must be a function. Plain object usage is no longer supported.");const y=l.call(n,n);if(process.env.NODE_ENV!=="production"&&Mo(y)&&J("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Oe(y))process.env.NODE_ENV!=="production"&&J("data() should return an object.");else if(e.data=Ue(y),process.env.NODE_ENV!=="production")for(const O in y)A("Data",O),ol(O[0])||Object.defineProperty(o,O,{configurable:!0,enumerable:!0,get:()=>y[O],set:$e})}if(ll=!0,a)for(const y in a){const O=a[y],H=ce(O)?O.bind(n,n):ce(O.get)?O.get.bind(n,n):$e;process.env.NODE_ENV!=="production"&&H===$e&&J(`Computed property "${y}" has no getter.`);const q=!ce(O)&&ce(O.set)?O.set.bind(n):process.env.NODE_ENV!=="production"?()=>{J(`Write operation failed: computed property "${y}" is readonly.`)}:$e,Y=F({get:H,set:q});Object.defineProperty(o,y,{enumerable:!0,configurable:!0,get:()=>Y.value,set:te=>Y.value=te}),process.env.NODE_ENV!=="production"&&A("Computed",y)}if(r)for(const y in r)Ka(r[y],o,n,y);if(i){const y=ce(i)?i.call(n):i;Reflect.ownKeys(y).forEach(O=>{uo(O,y[O])})}v&&Ga(v,e,"c");function S(y,O){re(O)?O.forEach(H=>y(H.bind(n))):O&&y(O.bind(n))}if(S(Gi,f),S(Gt,p),S(Ki,g),S(Yi,E),S(Li,R),S(Ui,P),S(Ji,u),S(Zi,I),S(Xi,j),S(qi,b),S(Kt,D),S(Qi,d),re(m))if(m.length){const y=e.exposed||(e.exposed={});m.forEach(O=>{Object.defineProperty(y,O,{get:()=>n[O],set:H=>n[O]=H})})}else e.exposed||(e.exposed={});M&&e.render===$e&&(e.render=M),w!=null&&(e.inheritAttrs=w),_&&(e.components=_),C&&(e.directives=C)}function ru(e,t,n=$e,o=!1){re(e)&&(e=sl(e));for(const l in e){const a=e[l];let s;Oe(a)?"default"in a?s=Tt(a.from||l,a.default,!0):s=Tt(a.from||l):s=Tt(a),Ve(s)?o?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>s.value,set:r=>s.value=r}):(process.env.NODE_ENV!=="production"&&J(`injected property "${l}" is a ref and will be auto-unwrapped and no longer needs \`.value\` in the next minor release. To opt-in to the new behavior now, set \`app.config.unwrapInjectedRef = true\` (this config is temporary and will not be needed in the future.)`),t[l]=s):t[l]=s,process.env.NODE_ENV!=="production"&&n("Inject",l)}}function Ga(e,t,n){tt(re(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ka(e,t,n,o){const l=o.includes(".")?Ha(n,o):()=>n[o];if(Be(e)){const a=t[e];ce(a)?Ee(l,a):process.env.NODE_ENV!=="production"&&J(`Invalid watch handler specified by key "${e}"`,a)}else if(ce(e))Ee(l,e.bind(n));else if(Oe(e))if(re(e))e.forEach(a=>Ka(a,t,n,o));else{const a=ce(e.handler)?e.handler.bind(n):t[e.handler];ce(a)?Ee(l,a,e):process.env.NODE_ENV!=="production"&&J(`Invalid watch handler specified by key "${e.handler}"`,a)}else process.env.NODE_ENV!=="production"&&J(`Invalid watch option: "${o}"`,e)}function al(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:l,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,r=a.get(t);let i;return r?i=r:!l.length&&!n&&!o?i=t:(i={},l.length&&l.forEach(c=>po(i,c,s,!0)),po(i,t,s)),Oe(t)&&a.set(t,i),i}function po(e,t,n,o=!1){const{mixins:l,extends:a}=t;a&&po(e,a,n,!0),l&&l.forEach(s=>po(e,s,n,!0));for(const s in t)if(o&&s==="expose")process.env.NODE_ENV!=="production"&&J('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const r=iu[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}const iu={data:Ya,props:qt,emits:qt,methods:qt,computed:qt,beforeCreate:We,created:We,beforeMount:We,mounted:We,beforeUpdate:We,updated:We,beforeDestroy:We,beforeUnmount:We,destroyed:We,unmounted:We,activated:We,deactivated:We,errorCaptured:We,serverPrefetch:We,components:qt,directives:qt,watch:cu,provide:Ya,inject:uu};function Ya(e,t){return t?e?function(){return Me(ce(e)?e.call(this,this):e,ce(t)?t.call(this,this):t)}:t:e}function uu(e,t){return qt(sl(e),sl(t))}function sl(e){if(re(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function We(e,t){return e?[...new Set([].concat(e,t))]:t}function qt(e,t){return e?Me(Me(Object.create(null),e),t):t}function cu(e,t){if(!e)return t;if(!t)return e;const n=Me(Object.create(null),e);for(const o in t)n[o]=We(e[o],t[o]);return n}function fu(e,t,n,o=!1){const l={},a={};Un(a,yo,1),e.propsDefaults=Object.create(null),qa(e,t,l,a);for(const s in e.propsOptions[0])s in l||(l[s]=void 0);process.env.NODE_ENV!=="production"&&es(t||{},l,e),n?e.props=o?l:ai(l):e.type.props?e.props=l:e.props=a,e.attrs=a}function du(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function pu(e,t,n,o){const{props:l,attrs:a,vnode:{patchFlag:s}}=e,r=he(l),[i]=e.propsOptions;let c=!1;if(!(process.env.NODE_ENV!=="production"&&du(e))&&(o||s>0)&&!(s&16)){if(s&8){const v=e.vnode.dynamicProps;for(let f=0;f<v.length;f++){let p=v[f];if(so(e.emitsOptions,p))continue;const g=t[p];if(i)if(ge(a,p))g!==a[p]&&(a[p]=g,c=!0);else{const E=at(p);l[E]=rl(i,r,E,g,e,!1)}else g!==a[p]&&(a[p]=g,c=!0)}}}else{qa(e,t,l,a)&&(c=!0);let v;for(const f in r)(!t||!ge(t,f)&&((v=_t(f))===f||!ge(t,v)))&&(i?n&&(n[f]!==void 0||n[v]!==void 0)&&(l[f]=rl(i,r,f,void 0,e,!0)):delete l[f]);if(a!==r)for(const f in a)(!t||!ge(t,f)&&!0)&&(delete a[f],c=!0)}c&&vt(e,"set","$attrs"),process.env.NODE_ENV!=="production"&&es(t||{},l,e)}function qa(e,t,n,o){const[l,a]=e.propsOptions;let s=!1,r;if(t)for(let i in t){if(Wn(i))continue;const c=t[i];let v;l&&ge(l,v=at(i))?!a||!a.includes(v)?n[v]=c:(r||(r={}))[v]=c:so(e.emitsOptions,i)||(!(i in o)||c!==o[i])&&(o[i]=c,s=!0)}if(a){const i=he(n),c=r||xe;for(let v=0;v<a.length;v++){const f=a[v];n[f]=rl(l,i,f,c[f],e,!ge(c,f))}}return s}function rl(e,t,n,o,l,a){const s=e[n];if(s!=null){const r=ge(s,"default");if(r&&o===void 0){const i=s.default;if(s.type!==Function&&ce(i)){const{propsDefaults:c}=l;n in c?o=c[n]:(pn(l),o=c[n]=i.call(null,t),Xt())}else o=i}s[0]&&(a&&!r?o=!1:s[1]&&(o===""||o===_t(n))&&(o=!0))}return o}function Qa(e,t,n=!1){const o=t.propsCache,l=o.get(e);if(l)return l;const a=e.props,s={},r=[];let i=!1;if(!ce(e)){const v=f=>{i=!0;const[p,g]=Qa(f,t,!0);Me(s,p),g&&r.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!a&&!i)return Oe(e)&&o.set(e,gn),gn;if(re(a))for(let v=0;v<a.length;v++){process.env.NODE_ENV!=="production"&&!Be(a[v])&&J("props must be strings when using array syntax.",a[v]);const f=at(a[v]);Xa(f)&&(s[f]=xe)}else if(a){process.env.NODE_ENV!=="production"&&!Oe(a)&&J("invalid props options",a);for(const v in a){const f=at(v);if(Xa(f)){const p=a[v],g=s[f]=re(p)||ce(p)?{type:p}:p;if(g){const E=Ja(Boolean,g.type),R=Ja(String,g.type);g[0]=E>-1,g[1]=R<0||E<R,(E>-1||ge(g,"default"))&&r.push(f)}}}}const c=[s,r];return Oe(e)&&o.set(e,c),c}function Xa(e){return e[0]!=="$"?!0:(process.env.NODE_ENV!=="production"&&J(`Invalid prop name: "${e}" is a reserved property.`),!1)}function il(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Za(e,t){return il(e)===il(t)}function Ja(e,t){return re(t)?t.findIndex(n=>Za(n,e)):ce(t)&&Za(t,e)?0:-1}function es(e,t,n){const o=he(t),l=n.propsOptions[0];for(const a in l){let s=l[a];s!=null&&hu(a,o[a],s,!ge(e,a)&&!ge(e,_t(a)))}}function hu(e,t,n,o){const{type:l,required:a,validator:s}=n;if(a&&o){J('Missing required prop: "'+e+'"');return}if(!(t==null&&!n.required)){if(l!=null&&l!==!0){let r=!1;const i=re(l)?l:[l],c=[];for(let v=0;v<i.length&&!r;v++){const{valid:f,expectedType:p}=gu(t,i[v]);c.push(p||""),r=f}if(!r){J(mu(e,t,c));return}}s&&!s(t)&&J('Invalid prop: custom validator check failed for prop "'+e+'".')}}const vu=Qe("String,Number,Boolean,Function,Symbol,BigInt");function gu(e,t){let n;const o=il(t);if(vu(o)){const l=typeof e;n=l===o.toLowerCase(),!n&&l==="object"&&(n=e instanceof t)}else o==="Object"?n=Oe(e):o==="Array"?n=re(e):o==="null"?n=e===null:n=e instanceof t;return{valid:n,expectedType:o}}function mu(e,t,n){let o=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(Ft).join(" | ")}`;const l=n[0],a=Bo(t),s=ts(t,l),r=ts(t,a);return n.length===1&&ns(l)&&!yu(l,a)&&(o+=` with value ${s}`),o+=`, got ${a} `,ns(a)&&(o+=`with value ${r}.`),o}function ts(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function ns(e){return["string","number","boolean"].some(n=>e.toLowerCase()===n)}function yu(...e){return e.some(t=>t.toLowerCase()==="boolean")}const os=e=>e[0]==="_"||e==="$stable",ul=e=>re(e)?e.map(ot):[ot(e)],bu=(e,t,n)=>{if(t._n)return t;const o=Bi((...l)=>(process.env.NODE_ENV!=="production"&&Fe&&J(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),ul(t(...l))),n);return o._c=!1,o},ls=(e,t,n)=>{const o=e._ctx;for(const l in e){if(os(l))continue;const a=e[l];if(ce(a))t[l]=bu(l,a,o);else if(a!=null){process.env.NODE_ENV!=="production"&&J(`Non-function value encountered for slot "${l}". Prefer function slots for better performance.`);const s=ul(a);t[l]=()=>s}}},as=(e,t)=>{process.env.NODE_ENV!=="production"&&!el(e.vnode)&&J("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=ul(t);e.slots.default=()=>n},wu=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=he(t),Un(t,"_",n)):ls(t,e.slots={})}else e.slots={},t&&as(e,t);Un(e.slots,yo,1)},_u=(e,t,n)=>{const{vnode:o,slots:l}=e;let a=!0,s=xe;if(o.shapeFlag&32){const r=t._;r?process.env.NODE_ENV!=="production"&&St?Me(l,t):n&&r===1?a=!1:(Me(l,t),!n&&r===1&&delete l._):(a=!t.$stable,ls(t,l)),s=t}else t&&(as(e,t),s={default:1});if(a)for(const r in l)!os(r)&&!(r in s)&&delete l[r]};function ss(){return{app:null,config:{isNativeTag:Ul,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 xu=0;function Nu(e,t){return function(o,l=null){ce(o)||(o=Object.assign({},o)),l!=null&&!Oe(l)&&(process.env.NODE_ENV!=="production"&&J("root props passed to app.mount() must be an object."),l=null);const a=ss(),s=new Set;let r=!1;const i=a.app={_uid:xu++,_component:o,_props:l,_container:null,_context:a,_instance:null,version:ms,get config(){return a.config},set config(c){process.env.NODE_ENV!=="production"&&J("app.config cannot be replaced. Modify individual options instead.")},use(c,...v){return s.has(c)?process.env.NODE_ENV!=="production"&&J("Plugin has already been applied to target app."):c&&ce(c.install)?(s.add(c),c.install(i,...v)):ce(c)?(s.add(c),c(i,...v)):process.env.NODE_ENV!=="production"&&J('A plugin must either be a function or an object with an "install" function.'),i},mixin(c){return a.mixins.includes(c)?process.env.NODE_ENV!=="production"&&J("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):a.mixins.push(c),i},component(c,v){return process.env.NODE_ENV!=="production"&&gl(c,a.config),v?(process.env.NODE_ENV!=="production"&&a.components[c]&&J(`Component "${c}" has already been registered in target app.`),a.components[c]=v,i):a.components[c]},directive(c,v){return process.env.NODE_ENV!=="production"&&La(c),v?(process.env.NODE_ENV!=="production"&&a.directives[c]&&J(`Directive "${c}" has already been registered in target app.`),a.directives[c]=v,i):a.directives[c]},mount(c,v,f){if(r)process.env.NODE_ENV!=="production"&&J("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{process.env.NODE_ENV!=="production"&&c.__vue_app__&&J("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const p=h(o,l);return p.appContext=a,process.env.NODE_ENV!=="production"&&(a.reload=()=>{e(kt(p),c,f)}),v&&t?t(p,c):e(p,c,f),r=!0,i._container=c,c.__vue_app__=i,process.env.NODE_ENV!=="production"&&(i._instance=p.component,Oi(i,ms)),wo(p.component)||p.component.proxy}},unmount(){r?(e(null,i._container),process.env.NODE_ENV!=="production"&&(i._instance=null,Si(i)),delete i._container.__vue_app__):process.env.NODE_ENV!=="production"&&J("Cannot unmount an app that is not mounted.")},provide(c,v){return process.env.NODE_ENV!=="production"&&c in a.provides&&J(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),a.provides[c]=v,i}};return i}}function cl(e,t,n,o,l=!1){if(re(e)){e.forEach((p,g)=>cl(p,t&&(re(t)?t[g]:t),n,o,l));return}if(co(o)&&!l)return;const a=o.shapeFlag&4?wo(o.component)||o.component.proxy:o.el,s=l?null:a,{i:r,r:i}=e;if(process.env.NODE_ENV!=="production"&&!r){J("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,v=r.refs===xe?r.refs={}:r.refs,f=r.setupState;if(c!=null&&c!==i&&(Be(c)?(v[c]=null,ge(f,c)&&(f[c]=null)):Ve(c)&&(c.value=null)),ce(i))gt(i,r,12,[s,v]);else{const p=Be(i),g=Ve(i);if(p||g){const E=()=>{if(e.f){const R=p?v[i]:i.value;l?re(R)&&Po(R,a):re(R)?R.includes(a)||R.push(a):p?(v[i]=[a],ge(f,i)&&(f[i]=v[i])):(i.value=[a],e.k&&(v[e.k]=i.value))}else p?(v[i]=s,ge(f,i)&&(f[i]=s)):g?(i.value=s,e.k&&(v[e.k]=s)):process.env.NODE_ENV!=="production"&&J("Invalid template ref type:",i,`(${typeof i})`)};s?(E.id=-1,ze(E,n)):E()}else process.env.NODE_ENV!=="production"&&J("Invalid template ref type:",i,`(${typeof i})`)}}let Pn,At;function yt(e,t){e.appContext.config.performance&&ho()&&At.mark(`vue-${t}-${e.uid}`),process.env.NODE_ENV!=="production"&&ki(e,t,ho()?At.now():Date.now())}function bt(e,t){if(e.appContext.config.performance&&ho()){const n=`vue-${t}-${e.uid}`,o=n+":end";At.mark(o),At.measure(`<${_o(e,e.type)}> ${t}`,n,o),At.clearMarks(n),At.clearMarks(o)}process.env.NODE_ENV!=="production"&&Pi(e,t,ho()?At.now():Date.now())}function ho(){return Pn!==void 0||(typeof window<"u"&&window.performance?(Pn=!0,At=window.performance):Pn=!1),Pn}function Cu(){const e=[];if(process.env.NODE_ENV!=="production"&&e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
6
+
7
+ For more details, see https://link.vuejs.org/feature-flags.`)}}const ze=Hi;function Eu(e){return Ou(e)}function Ou(e,t){Cu();const n=Kl();n.__VUE__=!0,process.env.NODE_ENV!=="production"&&Pa(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:l,patchProp:a,createElement:s,createText:r,createComment:i,setText:c,setElementText:v,parentNode:f,nextSibling:p,setScopeId:g=$e,cloneNode:E,insertStaticContent:R}=e,P=(x,k,L,K=null,$=null,U=null,z=!1,G=null,Q=process.env.NODE_ENV!=="production"&&St?!1:!!k.dynamicChildren)=>{if(x===k)return;x&&!Mn(x,k)&&(K=ye(x),fe(x,$,U,!0),x=null),k.patchFlag===-2&&(Q=!1,k.dynamicChildren=null);const{type:W,ref:X,shapeFlag:ee}=k;switch(W){case go:T(x,k,L,K);break;case nt:b(x,k,L,K);break;case mo:x==null?V(k,L,K,z):process.env.NODE_ENV!=="production"&&D(x,k,L,z);break;case Pe:B(x,k,L,K,$,U,z,G,Q);break;default:ee&1?j(x,k,L,K,$,U,z,G,Q):ee&6?A(x,k,L,K,$,U,z,G,Q):ee&64||ee&128?W.process(x,k,L,K,$,U,z,G,Q,pe):process.env.NODE_ENV!=="production"&&J("Invalid VNode type:",W,`(${typeof W})`)}X!=null&&$&&cl(X,x&&x.ref,U,k||x,!k)},T=(x,k,L,K)=>{if(x==null)o(k.el=r(k.children),L,K);else{const $=k.el=x.el;k.children!==x.children&&c($,k.children)}},b=(x,k,L,K)=>{x==null?o(k.el=i(k.children||""),L,K):k.el=x.el},V=(x,k,L,K)=>{[x.el,x.anchor]=R(x.children,k,L,K,x.el,x.anchor)},D=(x,k,L,K)=>{if(k.children!==x.children){const $=p(x.anchor);I(x),[k.el,k.anchor]=R(k.children,L,$,K)}else k.el=x.el,k.anchor=x.anchor},M=({el:x,anchor:k},L,K)=>{let $;for(;x&&x!==k;)$=p(x),o(x,L,K),x=$;o(k,L,K)},I=({el:x,anchor:k})=>{let L;for(;x&&x!==k;)L=p(x),l(x),x=L;l(k)},j=(x,k,L,K,$,U,z,G,Q)=>{z=z||k.type==="svg",x==null?u(k,L,K,$,U,z,G,Q):w(x,k,$,U,z,G,Q)},u=(x,k,L,K,$,U,z,G)=>{let Q,W;const{type:X,props:ee,shapeFlag:ne,transition:ae,patchFlag:be,dirs:Ne}=x;if(process.env.NODE_ENV==="production"&&x.el&&E!==void 0&&be===-1)Q=x.el=E(x.el);else{if(Q=x.el=s(x.type,U,ee&&ee.is,ee),ne&8?v(Q,x.children):ne&16&&m(x.children,Q,null,K,$,U&&X!=="foreignObject",z,G),Ne&&Yt(x,null,K,"created"),ee){for(const Se in ee)Se!=="value"&&!Wn(Se)&&a(Q,Se,null,ee[Se],U,x.children,K,$,ie);"value"in ee&&a(Q,"value",null,ee.value),(W=ee.onVnodeBeforeMount)&&dt(W,K,x)}d(Q,x,x.scopeId,z,K)}process.env.NODE_ENV!=="production"&&(Object.defineProperty(Q,"__vnode",{value:x,enumerable:!1}),Object.defineProperty(Q,"__vueParentComponent",{value:K,enumerable:!1})),Ne&&Yt(x,null,K,"beforeMount");const Ce=(!$||$&&!$.pendingBranch)&&ae&&!ae.persisted;Ce&&ae.beforeEnter(Q),o(Q,k,L),((W=ee&&ee.onVnodeMounted)||Ce||Ne)&&ze(()=>{W&&dt(W,K,x),Ce&&ae.enter(Q),Ne&&Yt(x,null,K,"mounted")},$)},d=(x,k,L,K,$)=>{if(L&&g(x,L),K)for(let U=0;U<K.length;U++)g(x,K[U]);if($){let U=$.subTree;if(process.env.NODE_ENV!=="production"&&U.patchFlag>0&&U.patchFlag&2048&&(U=Fa(U.children)||U),k===U){const z=$.vnode;d(x,z,z.scopeId,z.slotScopeIds,$.parent)}}},m=(x,k,L,K,$,U,z,G,Q=0)=>{for(let W=Q;W<x.length;W++){const X=x[W]=G?Pt(x[W]):ot(x[W]);P(null,X,k,L,K,$,U,z,G)}},w=(x,k,L,K,$,U,z)=>{const G=k.el=x.el;let{patchFlag:Q,dynamicChildren:W,dirs:X}=k;Q|=x.patchFlag&16;const ee=x.props||xe,ne=k.props||xe;let ae;L&&Qt(L,!1),(ae=ne.onVnodeBeforeUpdate)&&dt(ae,L,k,x),X&&Yt(k,x,L,"beforeUpdate"),L&&Qt(L,!0),process.env.NODE_ENV!=="production"&&St&&(Q=0,z=!1,W=null);const be=$&&k.type!=="foreignObject";if(W?(_(x.dynamicChildren,W,G,L,K,be,U),process.env.NODE_ENV!=="production"&&L&&L.type.__hmrId&&Dn(x,k)):z||q(x,k,G,null,L,K,be,U,!1),Q>0){if(Q&16)C(G,k,ee,ne,L,K,$);else if(Q&2&&ee.class!==ne.class&&a(G,"class",null,ne.class,$),Q&4&&a(G,"style",ee.style,ne.style,$),Q&8){const Ne=k.dynamicProps;for(let Ce=0;Ce<Ne.length;Ce++){const Se=Ne[Ce],qe=ee[Se],Bt=ne[Se];(Bt!==qe||Se==="value")&&a(G,Se,qe,Bt,$,x.children,L,K,ie)}}Q&1&&x.children!==k.children&&v(G,k.children)}else!z&&W==null&&C(G,k,ee,ne,L,K,$);((ae=ne.onVnodeUpdated)||X)&&ze(()=>{ae&&dt(ae,L,k,x),X&&Yt(k,x,L,"updated")},K)},_=(x,k,L,K,$,U,z)=>{for(let G=0;G<k.length;G++){const Q=x[G],W=k[G],X=Q.el&&(Q.type===Pe||!Mn(Q,W)||Q.shapeFlag&70)?f(Q.el):L;P(Q,W,X,null,K,$,U,z,!0)}},C=(x,k,L,K,$,U,z)=>{if(L!==K){for(const G in K){if(Wn(G))continue;const Q=K[G],W=L[G];Q!==W&&G!=="value"&&a(x,G,W,Q,z,k.children,$,U,ie)}if(L!==xe)for(const G in L)!Wn(G)&&!(G in K)&&a(x,G,L[G],null,z,k.children,$,U,ie);"value"in K&&a(x,"value",L.value,K.value)}},B=(x,k,L,K,$,U,z,G,Q)=>{const W=k.el=x?x.el:r(""),X=k.anchor=x?x.anchor:r("");let{patchFlag:ee,dynamicChildren:ne,slotScopeIds:ae}=k;process.env.NODE_ENV!=="production"&&(St||ee&2048)&&(ee=0,Q=!1,ne=null),ae&&(G=G?G.concat(ae):ae),x==null?(o(W,L,K),o(X,L,K),m(k.children,L,X,$,U,z,G,Q)):ee>0&&ee&64&&ne&&x.dynamicChildren?(_(x.dynamicChildren,ne,L,$,U,z,G),process.env.NODE_ENV!=="production"&&$&&$.type.__hmrId?Dn(x,k):(k.key!=null||$&&k===$.subTree)&&Dn(x,k,!0)):q(x,k,L,X,$,U,z,G,Q)},A=(x,k,L,K,$,U,z,G,Q)=>{k.slotScopeIds=G,x==null?k.shapeFlag&512?$.ctx.activate(k,L,K,z,Q):S(k,L,K,$,U,z,Q):y(x,k,Q)},S=(x,k,L,K,$,U,z)=>{const G=x.component=Fu(x,K,$);if(process.env.NODE_ENV!=="production"&&G.type.__hmrId&&xi(G),process.env.NODE_ENV!=="production"&&(no(x),yt(G,"mount")),el(x)&&(G.ctx.renderer=pe),process.env.NODE_ENV!=="production"&&yt(G,"init"),$u(G),process.env.NODE_ENV!=="production"&&bt(G,"init"),G.asyncDep){if($&&$.registerDep(G,O),!x.el){const Q=G.subTree=h(nt);b(null,Q,k,L)}return}O(G,x,k,L,$,U,z),process.env.NODE_ENV!=="production"&&(oo(),bt(G,"mount"))},y=(x,k,L)=>{const K=k.component=x.component;if($i(x,k,L))if(K.asyncDep&&!K.asyncResolved){process.env.NODE_ENV!=="production"&&no(k),H(K,k,L),process.env.NODE_ENV!=="production"&&oo();return}else K.next=k,wi(K.update),K.update();else k.el=x.el,K.vnode=k},O=(x,k,L,K,$,U,z)=>{const G=()=>{if(x.isMounted){let{next:X,bu:ee,u:ne,parent:ae,vnode:be}=x,Ne=X,Ce;process.env.NODE_ENV!=="production"&&no(X||x.vnode),Qt(x,!1),X?(X.el=be.el,H(x,X,z)):X=be,ee&&ln(ee),(Ce=X.props&&X.props.onVnodeBeforeUpdate)&&dt(Ce,ae,X,be),Qt(x,!0),process.env.NODE_ENV!=="production"&&yt(x,"render");const Se=Jo(x);process.env.NODE_ENV!=="production"&&bt(x,"render");const qe=x.subTree;x.subTree=Se,process.env.NODE_ENV!=="production"&&yt(x,"patch"),P(qe,Se,f(qe.el),ye(qe),x,$,U),process.env.NODE_ENV!=="production"&&bt(x,"patch"),X.el=Se.el,Ne===null&&ji(x,Se.el),ne&&ze(ne,$),(Ce=X.props&&X.props.onVnodeUpdated)&&ze(()=>dt(Ce,ae,X,be),$),process.env.NODE_ENV!=="production"&&Da(x),process.env.NODE_ENV!=="production"&&oo()}else{let X;const{el:ee,props:ne}=k,{bm:ae,m:be,parent:Ne}=x,Ce=co(k);if(Qt(x,!1),ae&&ln(ae),!Ce&&(X=ne&&ne.onVnodeBeforeMount)&&dt(X,Ne,k),Qt(x,!0),ee&&we){const Se=()=>{process.env.NODE_ENV!=="production"&&yt(x,"render"),x.subTree=Jo(x),process.env.NODE_ENV!=="production"&&bt(x,"render"),process.env.NODE_ENV!=="production"&&yt(x,"hydrate"),we(ee,x.subTree,x,$,null),process.env.NODE_ENV!=="production"&&bt(x,"hydrate")};Ce?k.type.__asyncLoader().then(()=>!x.isUnmounted&&Se()):Se()}else{process.env.NODE_ENV!=="production"&&yt(x,"render");const Se=x.subTree=Jo(x);process.env.NODE_ENV!=="production"&&bt(x,"render"),process.env.NODE_ENV!=="production"&&yt(x,"patch"),P(null,Se,L,K,x,$,U),process.env.NODE_ENV!=="production"&&bt(x,"patch"),k.el=Se.el}if(be&&ze(be,$),!Ce&&(X=ne&&ne.onVnodeMounted)){const Se=k;ze(()=>dt(X,Ne,Se),$)}(k.shapeFlag&256||Ne&&co(Ne.vnode)&&Ne.vnode.shapeFlag&256)&&x.a&&ze(x.a,$),x.isMounted=!0,process.env.NODE_ENV!=="production"&&Ti(x),k=L=K=null}},Q=x.effect=new Ho(G,()=>ao(W),x.scope),W=x.update=()=>Q.run();W.id=x.uid,Qt(x,!0),process.env.NODE_ENV!=="production"&&(Q.onTrack=x.rtc?X=>ln(x.rtc,X):void 0,Q.onTrigger=x.rtg?X=>ln(x.rtg,X):void 0,W.ownerInstance=x),W()},H=(x,k,L)=>{k.component=x;const K=x.vnode.props;x.vnode=k,x.next=null,pu(x,k.props,K,L),_u(x,k.children,L),jt(),Oa(),It()},q=(x,k,L,K,$,U,z,G,Q=!1)=>{const W=x&&x.children,X=x?x.shapeFlag:0,ee=k.children,{patchFlag:ne,shapeFlag:ae}=k;if(ne>0){if(ne&128){te(W,ee,L,K,$,U,z,G,Q);return}else if(ne&256){Y(W,ee,L,K,$,U,z,G,Q);return}}ae&8?(X&16&&ie(W,$,U),ee!==W&&v(L,ee)):X&16?ae&16?te(W,ee,L,K,$,U,z,G,Q):ie(W,$,U,!0):(X&8&&v(L,""),ae&16&&m(ee,L,K,$,U,z,G,Q))},Y=(x,k,L,K,$,U,z,G,Q)=>{x=x||gn,k=k||gn;const W=x.length,X=k.length,ee=Math.min(W,X);let ne;for(ne=0;ne<ee;ne++){const ae=k[ne]=Q?Pt(k[ne]):ot(k[ne]);P(x[ne],ae,L,null,$,U,z,G,Q)}W>X?ie(x,$,U,!0,!1,ee):m(k,L,K,$,U,z,G,Q,ee)},te=(x,k,L,K,$,U,z,G,Q)=>{let W=0;const X=k.length;let ee=x.length-1,ne=X-1;for(;W<=ee&&W<=ne;){const ae=x[W],be=k[W]=Q?Pt(k[W]):ot(k[W]);if(Mn(ae,be))P(ae,be,L,null,$,U,z,G,Q);else break;W++}for(;W<=ee&&W<=ne;){const ae=x[ee],be=k[ne]=Q?Pt(k[ne]):ot(k[ne]);if(Mn(ae,be))P(ae,be,L,null,$,U,z,G,Q);else break;ee--,ne--}if(W>ee){if(W<=ne){const ae=ne+1,be=ae<X?k[ae].el:K;for(;W<=ne;)P(null,k[W]=Q?Pt(k[W]):ot(k[W]),L,be,$,U,z,G,Q),W++}}else if(W>ne)for(;W<=ee;)fe(x[W],$,U,!0),W++;else{const ae=W,be=W,Ne=new Map;for(W=be;W<=ne;W++){const je=k[W]=Q?Pt(k[W]):ot(k[W]);je.key!=null&&(process.env.NODE_ENV!=="production"&&Ne.has(je.key)&&J("Duplicate keys found during update:",JSON.stringify(je.key),"Make sure keys are unique."),Ne.set(je.key,W))}let Ce,Se=0;const qe=ne-be+1;let Bt=!1,So=0;const Vt=new Array(qe);for(W=0;W<qe;W++)Vt[W]=0;for(W=ae;W<=ee;W++){const je=x[W];if(Se>=qe){fe(je,$,U,!0);continue}let et;if(je.key!=null)et=Ne.get(je.key);else for(Ce=be;Ce<=ne;Ce++)if(Vt[Ce-be]===0&&Mn(je,k[Ce])){et=Ce;break}et===void 0?fe(je,$,U,!0):(Vt[et-be]=W+1,et>=So?So=et:Bt=!0,P(je,k[et],L,null,$,U,z,G,Q),Se++)}const $n=Bt?Su(Vt):gn;for(Ce=$n.length-1,W=qe-1;W>=0;W--){const je=be+W,et=k[je],To=je+1<X?k[je+1].el:K;Vt[W]===0?P(null,et,L,To,$,U,z,G,Q):Bt&&(Ce<0||W!==$n[Ce]?le(et,L,To,2):Ce--)}}},le=(x,k,L,K,$=null)=>{const{el:U,type:z,transition:G,children:Q,shapeFlag:W}=x;if(W&6){le(x.component.subTree,k,L,K);return}if(W&128){x.suspense.move(k,L,K);return}if(W&64){z.move(x,k,L,pe);return}if(z===Pe){o(U,k,L);for(let ee=0;ee<Q.length;ee++)le(Q[ee],k,L,K);o(x.anchor,k,L);return}if(z===mo){M(x,k,L);return}if(K!==2&&W&1&&G)if(K===0)G.beforeEnter(U),o(U,k,L),ze(()=>G.enter(U),$);else{const{leave:ee,delayLeave:ne,afterLeave:ae}=G,be=()=>o(U,k,L),Ne=()=>{ee(U,()=>{be(),ae&&ae()})};ne?ne(U,be,Ne):Ne()}else o(U,k,L)},fe=(x,k,L,K=!1,$=!1)=>{const{type:U,props:z,ref:G,children:Q,dynamicChildren:W,shapeFlag:X,patchFlag:ee,dirs:ne}=x;if(G!=null&&cl(G,null,L,x,!0),X&256){k.ctx.deactivate(x);return}const ae=X&1&&ne,be=!co(x);let Ne;if(be&&(Ne=z&&z.onVnodeBeforeUnmount)&&dt(Ne,k,x),X&6)oe(x.component,L,K);else{if(X&128){x.suspense.unmount(L,K);return}ae&&Yt(x,null,k,"beforeUnmount"),X&64?x.type.remove(x,k,L,$,pe,K):W&&(U!==Pe||ee>0&&ee&64)?ie(W,k,L,!1,!0):(U===Pe&&ee&384||!$&&X&16)&&ie(Q,k,L),K&&se(x)}(be&&(Ne=z&&z.onVnodeUnmounted)||ae)&&ze(()=>{Ne&&dt(Ne,k,x),ae&&Yt(x,null,k,"unmounted")},L)},se=x=>{const{type:k,el:L,anchor:K,transition:$}=x;if(k===Pe){process.env.NODE_ENV!=="production"&&x.patchFlag>0&&x.patchFlag&2048&&$&&!$.persisted?x.children.forEach(z=>{z.type===nt?l(z.el):se(z)}):Z(L,K);return}if(k===mo){I(x);return}const U=()=>{l(L),$&&!$.persisted&&$.afterLeave&&$.afterLeave()};if(x.shapeFlag&1&&$&&!$.persisted){const{leave:z,delayLeave:G}=$,Q=()=>z(L,U);G?G(x.el,U,Q):Q()}else U()},Z=(x,k)=>{let L;for(;x!==k;)L=p(x),l(x),x=L;l(k)},oe=(x,k,L)=>{process.env.NODE_ENV!=="production"&&x.type.__hmrId&&Ni(x);const{bum:K,scope:$,update:U,subTree:z,um:G}=x;K&&ln(K),$.stop(),U&&(U.active=!1,fe(z,x,k,L)),G&&ze(G,k),ze(()=>{x.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&x.asyncDep&&!x.asyncResolved&&x.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve()),process.env.NODE_ENV!=="production"&&Ai(x)},ie=(x,k,L,K=!1,$=!1,U=0)=>{for(let z=U;z<x.length;z++)fe(x[z],k,L,K,$)},ye=x=>x.shapeFlag&6?ye(x.component.subTree):x.shapeFlag&128?x.suspense.next():p(x.anchor||x.el),_e=(x,k,L)=>{x==null?k._vnode&&fe(k._vnode,null,null,!0):P(k._vnode||null,x,k,null,null,null,L),Oa(),Sa(),k._vnode=x},pe={p:P,um:fe,m:le,r:se,mt:S,mc:m,pc:q,pbc:_,n:ye,o:e};let Te,we;return t&&([Te,we]=t(pe)),{render:_e,hydrate:Te,createApp:Nu(_e,Te)}}function Qt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Dn(e,t,n=!1){const o=e.children,l=t.children;if(re(o)&&re(l))for(let a=0;a<o.length;a++){const s=o[a];let r=l[a];r.shapeFlag&1&&!r.dynamicChildren&&((r.patchFlag<=0||r.patchFlag===32)&&(r=l[a]=Pt(l[a]),r.el=s.el),n||Dn(s,r)),process.env.NODE_ENV!=="production"&&r.type===nt&&!r.el&&(r.el=s.el)}}function Su(e){const t=e.slice(),n=[0];let o,l,a,s,r;const i=e.length;for(o=0;o<i;o++){const c=e[o];if(c!==0){if(l=n[n.length-1],e[l]<c){t[o]=l,n.push(o);continue}for(a=0,s=n.length-1;a<s;)r=a+s>>1,e[n[r]]<c?a=r+1:s=r;c<e[n[a]]&&(a>0&&(t[o]=n[a-1]),n[a]=o)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}const Tu=e=>e.__isTeleport,fn=e=>e&&(e.disabled||e.disabled===""),rs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,fl=(e,t)=>{const n=e&&e.to;if(Be(n))if(t){const o=t(n);return o||process.env.NODE_ENV!=="production"&&J(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),o}else return process.env.NODE_ENV!=="production"&&J("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return process.env.NODE_ENV!=="production"&&!n&&!fn(e)&&J(`Invalid Teleport target: ${n}`),n},Au={__isTeleport:!0,process(e,t,n,o,l,a,s,r,i,c){const{mc:v,pc:f,pbc:p,o:{insert:g,querySelector:E,createText:R,createComment:P}}=c,T=fn(t.props);let{shapeFlag:b,children:V,dynamicChildren:D}=t;if(process.env.NODE_ENV!=="production"&&St&&(i=!1,D=null),e==null){const M=t.el=process.env.NODE_ENV!=="production"?P("teleport start"):R(""),I=t.anchor=process.env.NODE_ENV!=="production"?P("teleport end"):R("");g(M,n,o),g(I,n,o);const j=t.target=fl(t.props,E),u=t.targetAnchor=R("");j?(g(u,j),s=s||rs(j)):process.env.NODE_ENV!=="production"&&!T&&J("Invalid Teleport target on mount:",j,`(${typeof j})`);const d=(m,w)=>{b&16&&v(V,m,w,l,a,s,r,i)};T?d(n,I):j&&d(j,u)}else{t.el=e.el;const M=t.anchor=e.anchor,I=t.target=e.target,j=t.targetAnchor=e.targetAnchor,u=fn(e.props),d=u?n:I,m=u?M:j;if(s=s||rs(I),D?(p(e.dynamicChildren,D,d,l,a,s,r),Dn(e,t,!0)):i||f(e,t,d,m,l,a,s,r,!1),T)u||vo(t,n,M,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const w=t.target=fl(t.props,E);w?vo(t,w,null,c,0):process.env.NODE_ENV!=="production"&&J("Invalid Teleport target on update:",I,`(${typeof I})`)}else u&&vo(t,I,j,c,1)}},remove(e,t,n,o,{um:l,o:{remove:a}},s){const{shapeFlag:r,children:i,anchor:c,targetAnchor:v,target:f,props:p}=e;if(f&&a(v),(s||!fn(p))&&(a(c),r&16))for(let g=0;g<i.length;g++){const E=i[g];l(E,t,n,!0,!!E.dynamicChildren)}},move:vo,hydrate:ku};function vo(e,t,n,{o:{insert:o},m:l},a=2){a===0&&o(e.targetAnchor,t,n);const{el:s,anchor:r,shapeFlag:i,children:c,props:v}=e,f=a===2;if(f&&o(s,t,n),(!f||fn(v))&&i&16)for(let p=0;p<c.length;p++)l(c[p],t,n,2);f&&o(r,t,n)}function ku(e,t,n,o,l,a,{o:{nextSibling:s,parentNode:r,querySelector:i}},c){const v=t.target=fl(t.props,i);if(v){const f=v._lpa||v.firstChild;if(t.shapeFlag&16)if(fn(t.props))t.anchor=c(s(e),t,r(e),n,o,l,a),t.targetAnchor=f;else{t.anchor=s(e);let p=f;for(;p;)if(p=s(p),p&&p.nodeType===8&&p.data==="teleport anchor"){t.targetAnchor=p,v._lpa=t.targetAnchor&&s(t.targetAnchor);break}c(f,t,v,n,o,l,a)}}return t.anchor&&s(t.anchor)}const dl=Au,Pe=Symbol(process.env.NODE_ENV!=="production"?"Fragment":void 0),go=Symbol(process.env.NODE_ENV!=="production"?"Text":void 0),nt=Symbol(process.env.NODE_ENV!=="production"?"Comment":void 0),mo=Symbol(process.env.NODE_ENV!=="production"?"Static":void 0);let dn=null,pl=1;function is(e){pl+=e}function hl(e){return e?e.__v_isVNode===!0:!1}function Mn(e,t){return process.env.NODE_ENV!=="production"&&t.shapeFlag&6&&un.has(t.type)?!1:e.type===t.type&&e.key===t.key}const Pu=(...e)=>cs(...e),yo="__vInternal",us=({key:e})=>e!=null?e:null,bo=({ref:e,ref_key:t,ref_for:n})=>e!=null?Be(e)||Ve(e)||ce(e)?{i:Ye,r:e,k:t,f:!!n}:e:null;function Du(e,t=null,n=null,o=0,l=null,a=e===Pe?0:1,s=!1,r=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&us(t),ref:t&&bo(t),scopeId:Va,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:o,dynamicProps:l,dynamicChildren:null,appContext:null};return r?(vl(i,n),a&128&&e.normalize(i)):n&&(i.shapeFlag|=Be(n)?8:16),process.env.NODE_ENV!=="production"&&i.key!==i.key&&J("VNode created with invalid key (NaN). VNode type:",i.type),pl>0&&!s&&dn&&(i.patchFlag>0||a&6)&&i.patchFlag!==32&&dn.push(i),i}const h=process.env.NODE_ENV!=="production"?Pu:cs;function cs(e,t=null,n=null,o=0,l=null,a=!1){if((!e||e===eu)&&(process.env.NODE_ENV!=="production"&&!e&&J(`Invalid vnode type when creating vnode: ${e}.`),e=nt),hl(e)){const r=kt(e,t,!0);return n&&vl(r,n),pl>0&&!a&&dn&&(r.shapeFlag&6?dn[dn.indexOf(e)]=r:dn.push(r)),r.patchFlag|=-2,r}if(gs(e)&&(e=e.__vccOpts),t){t=Mu(t);let{class:r,style:i}=t;r&&!Be(r)&&(t.class=ko(r)),Oe(i)&&(to(i)&&!re(i)&&(i=Me({},i)),t.style=Ao(i))}const s=Be(e)?1:Ii(e)?128:Tu(e)?64:Oe(e)?4:ce(e)?2:0;return process.env.NODE_ENV!=="production"&&s&4&&to(e)&&(e=he(e),J("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
8
+ Component that was made reactive: `,e)),Du(e,t,n,o,l,s,a,!0)}function Mu(e){return e?to(e)||yo in e?Me({},e):e:null}function kt(e,t,n=!1){const{props:o,ref:l,patchFlag:a,children:s}=e,r=t?ft(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:r,key:r&&us(r),ref:t&&t.ref?n&&l?re(l)?l.concat(bo(t)):[l,bo(t)]:bo(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&a===-1&&re(s)?s.map(fs):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Pe?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&kt(e.ssContent),ssFallback:e.ssFallback&&kt(e.ssFallback),el:e.el,anchor:e.anchor}}function fs(e){const t=kt(e);return re(e.children)&&(t.children=e.children.map(fs)),t}function ct(e=" ",t=0){return h(go,null,e,t)}function ot(e){return e==null||typeof e=="boolean"?h(nt):re(e)?h(Pe,null,e.slice()):typeof e=="object"?Pt(e):h(go,null,String(e))}function Pt(e){return e.el===null||e.memo?e:kt(e)}function vl(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(re(t))n=16;else if(typeof t=="object")if(o&65){const l=t.default;l&&(l._c&&(l._d=!1),vl(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!(yo in t)?t._ctx=Ye:l===3&&Ye&&(Ye.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ce(t)?(t={default:t,_ctx:Ye},n=32):(t=String(t),o&64?(n=16,t=[ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function ft(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const l in o)if(l==="class")t.class!==o.class&&(t.class=ko([t.class,o.class]));else if(l==="style")t.style=Ao([t.style,o.style]);else if(mn(l)){const a=t[l],s=o[l];s&&a!==s&&!(re(a)&&a.includes(s))&&(t[l]=a?[].concat(a,s):s)}else l!==""&&(t[l]=o[l])}return t}function dt(e,t,n,o=null){tt(e,t,7,[n,o])}const Bu=ss();let Vu=0;function Fu(e,t,n){const o=e.type,l=(t?t.appContext:e.appContext)||Bu,a={uid:Vu++,vnode:e,type:o,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new Pr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qa(o,l),emitsOptions:Ba(o,l),emit:null,emitted:null,propsDefaults:xe,inheritAttrs:o.inheritAttrs,ctx:xe,data:xe,props:xe,attrs:xe,slots:xe,refs:xe,setupState:xe,setupContext:null,suspense:n,suspenseId:n?n.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 process.env.NODE_ENV!=="production"?a.ctx=nu(a):a.ctx={_:a},a.root=t?t.root:a,a.emit=Mi.bind(null,a),e.ce&&e.ce(a),a}let Fe=null;const pn=e=>{Fe=e,e.scope.on()},Xt=()=>{Fe&&Fe.scope.off(),Fe=null},Ru=Qe("slot,component");function gl(e,t){const n=t.isNativeTag||Ul;(Ru(e)||n(e))&&J("Do not use built-in or reserved HTML elements as component id: "+e)}function ds(e){return e.vnode.shapeFlag&4}let Bn=!1;function $u(e,t=!1){Bn=t;const{props:n,children:o}=e.vnode,l=ds(e);fu(e,n,l,t),wu(e,o);const a=l?ju(e,t):void 0;return Bn=!1,a}function ju(e,t){var n;const o=e.type;if(process.env.NODE_ENV!=="production"){if(o.name&&gl(o.name,e.appContext.config),o.components){const a=Object.keys(o.components);for(let s=0;s<a.length;s++)gl(a[s],e.appContext.config)}if(o.directives){const a=Object.keys(o.directives);for(let s=0;s<a.length;s++)La(a[s])}o.compilerOptions&&Iu()&&J('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=ha(new Proxy(e.ctx,za)),process.env.NODE_ENV!=="production"&&ou(e);const{setup:l}=o;if(l){const a=e.setupContext=l.length>1?Hu(e):null;pn(e),jt();const s=gt(l,e,0,[process.env.NODE_ENV!=="production"?sn(e.props):e.props,a]);if(It(),Xt(),Mo(s)){if(s.then(Xt,Xt),t)return s.then(r=>{ps(e,r,t)}).catch(r=>{lo(r,e,0)});if(e.asyncDep=s,process.env.NODE_ENV!=="production"&&!e.suspense){const r=(n=o.name)!==null&&n!==void 0?n:"Anonymous";J(`Component <${r}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else ps(e,s,t)}else hs(e,t)}function ps(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Oe(t)?(process.env.NODE_ENV!=="production"&&hl(t)&&J("setup() should not return VNodes directly - return a render function instead."),process.env.NODE_ENV!=="production"&&(e.devtoolsRawSetupState=t),e.setupState=ba(t),process.env.NODE_ENV!=="production"&&lu(e)):process.env.NODE_ENV!=="production"&&t!==void 0&&J(`setup() should return an object. Received: ${t===null?"null":typeof t}`),hs(e,n)}let ml;const Iu=()=>!ml;function hs(e,t,n){const o=e.type;if(!e.render){if(!t&&ml&&!o.render){const l=o.template||al(e).template;if(l){process.env.NODE_ENV!=="production"&&yt(e,"compile");const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:r,compilerOptions:i}=o,c=Me(Me({isCustomElement:a,delimiters:r},s),i);o.render=ml(l,c),process.env.NODE_ENV!=="production"&&bt(e,"compile")}}e.render=o.render||$e}pn(e),jt(),su(e),It(),Xt(),process.env.NODE_ENV!=="production"&&!o.render&&e.render===$e&&!t&&(o.template?J('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):J("Component is missing template or render function."))}function vs(e){return new Proxy(e.attrs,process.env.NODE_ENV!=="production"?{get(t,n){return io(),Le(e,"get","$attrs"),t[n]},set(){return J("setupContext.attrs is readonly."),!1},deleteProperty(){return J("setupContext.attrs is readonly."),!1}}:{get(t,n){return Le(e,"get","$attrs"),t[n]}})}function Hu(e){const t=o=>{process.env.NODE_ENV!=="production"&&e.exposed&&J("expose() should be called only once per setup()."),e.exposed=o||{}};let n;return process.env.NODE_ENV!=="production"?Object.freeze({get attrs(){return n||(n=vs(e))},get slots(){return sn(e.slots)},get emit(){return(o,...l)=>e.emit(o,...l)},expose:t}):{get attrs(){return n||(n=vs(e))},slots:e.slots,emit:e.emit,expose:t}}function wo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ba(ha(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cn)return cn[n](e)}}))}const Wu=/(?:^|[-_])(\w)/g,Lu=e=>e.replace(Wu,t=>t.toUpperCase()).replace(/[-_]/g,"");function yl(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}function _o(e,t,n=!1){let o=yl(t);if(!o&&t.__file){const l=t.__file.match(/([^/\\]+)\.\w+$/);l&&(o=l[1])}if(!o&&e&&e.parent){const l=a=>{for(const s in a)if(a[s]===t)return s};o=l(e.components||e.parent.type.components)||l(e.appContext.components)}return o?Lu(o):n?"App":"Anonymous"}function gs(e){return ce(e)&&"__vccOpts"in e}const F=(e,t)=>di(e,t,Bn);Symbol(process.env.NODE_ENV!=="production"?"ssrContext":"");function bl(e){return!!(e&&e.__v_isShallow)}function Uu(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},o={style:"color:#9d288c"},l={header(f){return Oe(f)?f.__isVue?["div",e,"VueInstance"]:Ve(f)?["div",{},["span",e,v(f)],"<",r(f.value),">"]:Ht(f)?["div",{},["span",e,bl(f)?"ShallowReactive":"Reactive"],"<",r(f),`>${Et(f)?" (readonly)":""}`]:Et(f)?["div",{},["span",e,bl(f)?"ShallowReadonly":"Readonly"],"<",r(f),">"]:null:null},hasBody(f){return f&&f.__isVue},body(f){if(f&&f.__isVue)return["div",{},...a(f.$)]}};function a(f){const p=[];f.type.props&&f.props&&p.push(s("props",he(f.props))),f.setupState!==xe&&p.push(s("setup",f.setupState)),f.data!==xe&&p.push(s("data",he(f.data)));const g=i(f,"computed");g&&p.push(s("computed",g));const E=i(f,"inject");return E&&p.push(s("injected",E)),p.push(["div",{},["span",{style:o.style+";opacity:0.66"},"$ (internal): "],["object",{object:f}]]),p}function s(f,p){return p=Me({},p),Object.keys(p).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},f],["div",{style:"padding-left:1.25em"},...Object.keys(p).map(g=>["div",{},["span",o,g+": "],r(p[g],!1)])]]:["span",{}]}function r(f,p=!0){return typeof f=="number"?["span",t,f]:typeof f=="string"?["span",n,JSON.stringify(f)]:typeof f=="boolean"?["span",o,f]:Oe(f)?["object",{object:p?he(f):f}]:["span",n,String(f)]}function i(f,p){const g=f.type;if(ce(g))return;const E={};for(const R in f.ctx)c(g,R,p)&&(E[R]=f.ctx[R]);return E}function c(f,p,g){const E=f[g];if(re(E)&&E.includes(p)||Oe(E)&&p in E||f.extends&&c(f.extends,p,g)||f.mixins&&f.mixins.some(R=>c(R,p,g)))return!0}function v(f){return bl(f)?"ShallowRef":f.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(l):window.devtoolsFormatters=[l]}const ms="3.2.39",zu="http://www.w3.org/2000/svg",Zt=typeof document<"u"?document:null,ys=Zt&&Zt.createElement("template"),Gu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const l=t?Zt.createElementNS(zu,e):Zt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&l.setAttribute("multiple",o.multiple),l},createText:e=>Zt.createTextNode(e),createComment:e=>Zt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Zt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o,l,a){const s=n?n.previousSibling:t.lastChild;if(l&&(l===a||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===a||!(l=l.nextSibling)););else{ys.innerHTML=o?`<svg>${e}</svg>`:e;const r=ys.content;if(o){const i=r.firstChild;for(;i.firstChild;)r.appendChild(i.firstChild);r.removeChild(i)}t.insertBefore(r,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Ku(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Yu(e,t,n){const o=e.style,l=Be(n);if(n&&!l){for(const a in n)wl(o,a,n[a]);if(t&&!Be(t))for(const a in t)n[a]==null&&wl(o,a,"")}else{const a=o.display;l?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=a)}}const bs=/\s*!important$/;function wl(e,t,n){if(re(n))n.forEach(o=>wl(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=qu(e,t);bs.test(n)?e.setProperty(_t(o),n.replace(bs,""),"important"):e[o]=n}}const ws=["Webkit","Moz","ms"],_l={};function qu(e,t){const n=_l[t];if(n)return n;let o=at(t);if(o!=="filter"&&o in e)return _l[t]=o;o=Ft(o);for(let l=0;l<ws.length;l++){const a=ws[l]+o;if(a in e)return _l[t]=a}return t}const _s="http://www.w3.org/1999/xlink";function Qu(e,t,n,o,l){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(_s,t.slice(6,t.length)):e.setAttributeNS(_s,t,n);else{const a=vr(t);n==null||a&&!Wl(n)?e.removeAttribute(t):e.setAttribute(t,a?"":n)}}function Xu(e,t,n,o,l,a,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,l,a),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const i=n==null?"":n;(e.value!==i||e.tagName==="OPTION")&&(e.value=i),n==null&&e.removeAttribute(t);return}let r=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=Wl(n):n==null&&i==="string"?(n="",r=!0):i==="number"&&(n=0,r=!0)}try{e[t]=n}catch(i){process.env.NODE_ENV!=="production"&&J(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${n} is invalid.`,i)}r&&e.removeAttribute(t)}const[xs,Zu]=(()=>{let e=Date.now,t=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let xl=0;const Ju=Promise.resolve(),ec=()=>{xl=0},tc=()=>xl||(Ju.then(ec),xl=xs());function Jt(e,t,n,o){e.addEventListener(t,n,o)}function nc(e,t,n,o){e.removeEventListener(t,n,o)}function oc(e,t,n,o,l=null){const a=e._vei||(e._vei={}),s=a[t];if(o&&s)s.value=o;else{const[r,i]=lc(t);if(o){const c=a[t]=ac(o,l);Jt(e,r,c,i)}else s&&(nc(e,r,s,i),a[t]=void 0)}}const Ns=/(?:Once|Passive|Capture)$/;function lc(e){let t;if(Ns.test(e)){t={};let o;for(;o=e.match(Ns);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):_t(e.slice(2)),t]}function ac(e,t){const n=o=>{const l=o.timeStamp||xs();(Zu||l>=n.attached-1)&&tt(sc(o,n.value),t,5,[o])};return n.value=e,n.attached=tc(),n}function sc(e,t){if(re(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>l=>!l._stopped&&o&&o(l))}else return t}const Cs=/^on[a-z]/,rc=(e,t,n,o,l=!1,a,s,r,i)=>{t==="class"?Ku(e,o,l):t==="style"?Yu(e,n,o):mn(t)?Hn(t)||oc(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ic(e,t,o,l))?Xu(e,t,o,a,s,r,i):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Qu(e,t,o,l))};function ic(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Cs.test(t)&&ce(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Cs.test(t)&&Be(n)?!1:t in e}const xo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return re(t)?n=>ln(t,n):t};function uc(e){e.target.composing=!0}function Es(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cc={created(e,{modifiers:{lazy:t,trim:n,number:o}},l){e._assign=xo(l);const a=o||l.props&&l.props.type==="number";Jt(e,t?"change":"input",s=>{if(s.target.composing)return;let r=e.value;n&&(r=r.trim()),a&&(r=Fo(r)),e._assign(r)}),n&&Jt(e,"change",()=>{e.value=e.value.trim()}),t||(Jt(e,"compositionstart",uc),Jt(e,"compositionend",Es),Jt(e,"change",Es))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:l}},a){if(e._assign=xo(a),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(l||e.type==="number")&&Fo(e.value)===t))return;const s=t==null?"":t;e.value!==s&&(e.value=s)}},Os={deep:!0,created(e,t,n){e._assign=xo(n),Jt(e,"change",()=>{const o=e._modelValue,l=fc(e),a=e.checked,s=e._assign;if(re(o)){const r=Ll(o,l),i=r!==-1;if(a&&!i)s(o.concat(l));else if(!a&&i){const c=[...o];c.splice(r,1),s(c)}}else if(Do(o)){const r=new Set(o);a?r.add(l):r.delete(l),s(r)}else s(Ts(e,a))})},mounted:Ss,beforeUpdate(e,t,n){e._assign=xo(n),Ss(e,t,n)}};function Ss(e,{value:t,oldValue:n},o){e._modelValue=t,re(t)?e.checked=Ll(t,o.props.value)>-1:Do(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=In(t,Ts(e,!0)))}function fc(e){return"_value"in e?e._value:e.value}function Ts(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const dc=["ctrl","shift","alt","meta"],pc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>dc.some(n=>e[`${n}Key`]&&!t.includes(n))},As=(e,t)=>(n,...o)=>{for(let l=0;l<t.length;l++){const a=pc[t[l]];if(a&&a(n,t))return}return e(n,...o)},ks={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Vn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Vn(e,!0),o.enter(e)):o.leave(e,()=>{Vn(e,!1)}):Vn(e,t))},beforeUnmount(e,{value:t}){Vn(e,t)}};function Vn(e,t){e.style.display=t?e._vod:"none"}const hc=Me({patchProp:rc},Gu);let Ps;function vc(){return Ps||(Ps=Eu(hc))}const Nl=(...e)=>{const t=vc().createApp(...e);process.env.NODE_ENV!=="production"&&(gc(t),mc(t));const{mount:n}=t;return t.mount=o=>{const l=yc(o);if(!l)return;const a=t._component;!ce(a)&&!a.render&&!a.template&&(a.template=l.innerHTML),l.innerHTML="";const s=n(l,!1,l instanceof SVGElement);return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),s},t};function gc(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>_r(t)||xr(t),writable:!1})}function mc(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){J("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,o='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom';Object.defineProperty(e.config,"compilerOptions",{get(){return J(o),n},set(){J(o)}})}}function yc(e){if(Be(e)){const t=document.querySelector(e);return process.env.NODE_ENV!=="production"&&!t&&J(`Failed to mount app: mount target selector "${e}" returned null.`),t}return process.env.NODE_ENV!=="production"&&window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&J('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}function bc(){Uu()}process.env.NODE_ENV!=="production"&&bc();const wc={customClass:{type:Array,default:[]},height:{type:Number},width:{type:Number},enableFold:{type:Boolean,default:!0},expanded:{type:Boolean,default:!1}},Ld="",Ds=me({name:"FAccordion",props:wc,emits:[],setup(e,t){const n=F(()=>({height:e.height?`${e.height}px`:"",width:e.width?`${e.width}px`:""})),o=F(()=>{const l=e.customClass,a={"farris-panel":!0,accordion:!0};return l.reduce((s,r)=>(s[r]=!0,s),a),a});return()=>h("div",{class:o.value,style:n.value},[t.slots.default&&t.slots.default()])}}),_c={width:{type:Number},height:{type:Number,default:100},title:{type:String,default:""},disable:{type:Boolean,default:!1}},Ud="",Ms=me({name:"FAccordionItem",props:_c,emits:[],setup(e,t){const n=N(e.title),o=N(!1),l=N(!1);function a(){o.value=!o.value}function s(p){a()}const r=F(()=>({"f-state-disable":l.value,card:!0,"farris-panel-item":!0,"f-state-selected":o.value})),i=F(()=>!0),c=F(()=>!1),v=F(()=>({"f-icon":!0,"f-accordion-collapse":!o.value,"f-accordion-expand":o.value})),f=F(()=>{const p={transition:"height 0.36s ease 0s",height:o.value?`${e.height}px`:0};return o.value||(p.overflow="hidden"),p});return()=>h("div",{class:r.value},[h("div",{class:"card-header",onClick:s},[h("div",{class:"panel-item-title"},[i.value&&h("span",null,[n.value]),c.value&&t.slots.head&&t.slots.head(),h("span",{class:v.value},null)]),h("div",{class:"panel-item-tool"},[t.slots.toolbar&&t.slots.toolbar()]),h("div",{class:"panel-item-clear"},null)]),h("div",{style:f.value},[h("div",{class:"card-body"},[t.slots.content&&t.slots.content()])])])}}),xc={install(e){e.component(Ds.name,Ds),e.component(Ms.name,Ms)}},Nc={avatarWidth:{type:Number,default:100},avatarHeight:{type:Number,default:100},cover:{type:String},readonly:{type:Boolean,default:!1},shape:{type:String,default:"circle"},maxSize:{type:Number,default:1},modelValue:{type:String,default:""},tile:{type:String,default:""},type:{type:Array,default:[]}};function Cc(e,t,n,o){const l="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAwICQoJBwwKCQoNDAwOER0TERAQESMZGxUdKiUsKyklKCguNEI4LjE/MigoOk46P0RHSktKLTdRV1FIVkJJSkf/2wBDAQwNDREPESITEyJHMCgwR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0f/wAARCAEsASwDASIAAhEBAxEB/8QAGgABAQEBAQEBAAAAAAAAAAAAAAECAwQFB//EADMQAQEAAQEECAQGAgMBAAAAAAABAhEDITFBBBRRUmFxgaESkcHwEyIysdHhM3IjQvE0/8QAFQEBAQAAAAAAAAAAAAAAAAAAAAH/xAAXEQEBAQEAAAAAAAAAAAAAAAAAEQEh/9oADAMBAAIRAxEAPwD9BBYqCiyAGhougIqyGgEhIui6AyuixdATQ0WQA0BdA4houhoCaGgugMrouhoCaJoum80BNDRdDQGTRbEBNCxdDQGTRUBE0asQGRTQGTT71WxNPP5AugqyACyAC6dpIsgGgshoBISKAiroQDQ0OSyAgoBoaABoaABomigJTRQGV0XRATRGizUGRSwGdEsaqAljLQDOiNWJQZNJ4KffEFIRYAsFkAkFkAJFFkAkNCLIAAAC6AguhoCCl3TW2TzugIHx4S788Z6wmWN4ZY3ysoA1pu+qAgpYCAAaIoDIoCaJZvVAQ03LUBlGqWAzYmimn3vAaRYA1IkWASKKACgirIgAsgBoBdJNbZNN9t3aeIHNw2vSccbZhPxLN27dJ68/Rx222u1/LjbNn8vi/ieHPm58N03SKN5bfa58c7jOzHd78XOyXfd98bqoCaScp8jSdk+SgLjlljdccssfK12w6TlN2cmXjN1/iuAD34Z47Sa43XTjLus82nz5bjl8WNss4WPXsNtNpNLuzk3zlZ2wHUsBBF5CAFgAhouiUGRUBErSAyffFamgKqKCqkUBYcgBpADiuhoAKeYA8fStp8WX4WPCfq8b2eT1bXObPZZZ8bJrJ23lHz5rpvutu+3tvOqAAAAAAAACy3HKZY3Sy6yoA+hs85tMJlN2vGdlaeTomem0+C/9pu849SAKlARQERrkgJUWoCUVKDIqb/ugqxFBVRQFFBFABRAUAHn6bl+XDGc7bfT/ANeV26XddvJ2Yz3tcVAAAAAAAAAAFxy+HKZTjLq+l+z5j6Gzuuywt54z9jRoEQAARSoCCoCIqAIJQaCLzBZxCAKC8wIAChOIAADxdL/+i/6z6uTt0yabfXtxnta4qAAAAAAAAAAD37H/AAbP/WPBwfQ2c02WE7MYaNAIIoAhzCggHMEqaNIDNPviHoAsRqcAFSKC8iIoHNUAUAAAHl6ZPzbPLtln1ed7el467DXu2X0+68SgAAAAAAAAABpru7bo+npy7Po8HR8fi2+M46XW+Ue4ABAAAQAQUvAEvBL6BQS8U3feqpv7fcFnBUUBUUBScQFRUBQAAATKTLG43nLL6vnaWWy8ZdL5x9J4ulY/DtrZwymvrzUcgAAAAAAAANdwPT0LH9Wd8MZ+9elnY4fh7HHG8prfOtIAABQAQAKi1AE5KlBD09hPl7gKjUAVFBeYTiAqKgKAAAA5dKw+PY2ya5Y/mn19nVQfMG9th+HtbjOF3zyrCgAAAAAA6dHw+PbSWfln5r6Ob29Gw+DZS2fmy33y5T6g7cbreaAgAAAAgqAcgqfIBOapQSnr7lPS/IEaScAFVFgKIoKioCgAABgADj0nZ/HstZvyx3zxnN4+T6b52ePw7TLGcJbIoyAAAAADex2f4m1mN1+Gb75Tl9H0PbweboeOmGWXO3T0n/r0AAIAAAACKgHJFpyBEpyARFT74gKnNQVeaRQF5IoKTiigCKAAACZWY4/FlZMZxt3SAvnuna+dnlM8885wyts8nXb9I/Elw2e7G7rleN8J4ePNxUAAAAAAeroeUuFx7LrPKvQ+djlcMpljdLHs2W3x2k0/Tl2W8fLtB1C8ewQAAEUBDmt4oBeJeCAIUARFvBN3gByVAFUIChzWcAOSpGdpnjs5rnlMdeHbfKcwb58x5c+l23TZ7P1y3e0+rldvtcuO0snZjJFHvtmM1ysnjbpHHLpOyx3TK5eGM1eKyW63W3tt1UHfPpeV3YYTGduW+/JwyuWd1zyuVnDXhPKcgAAAAAAAAAAB0w2+0w3TKZTsy3+7tj0vG/rxyxvbN8eUB9DDa7PP9OeNvZrpfdu8OD5mkvGNY55Y/pzyx8ruIPePJj0nazj8OU8ZpfZ1w6Ts8rJlrhfHfPmg7FKgAF4AgVARPW/NanoAsZaBVlZUFVF4g57fbfhY7pLld0l/e+EeO23K5ZW5ZXjb97o1tcvj22WXHS/DPKMqAAAAAAAAAAAAAAAAAAAAAAOux212d0ttwvGdnjHr3ceMfPevo2XxbLTu3T0B1TmHJAZVOYF4p98xPviBFScQGlRZxBdS3TG3slvsibS/8WX+t/YHhx/TPGaqk4TyVQAAAAAAAAAAAAAAAAAAAAAAd+iX82c7ZL9/Nwdui/5b/rfoD00vARAQqAhfvcVNfL3A1WMqDSxmVQVNr/iz4/pv7LDOXLDLGcbNPDeDxTh6DtOjZaafFju816tlf+2Puo4Dv1bPvY+51bLvY+5RwHfq2Xex9zquXex9yjgO/Vcu9j7nVc+9j7lHAd+q597H3Oq597H3BwHfqufex9zqufex9yjgO/Vc+9j7nVc+9j7lHAd+q597H3Oq597H3KOA79Vz72PudVz72PuUcB36rl3sfc6rn3sfco4DvejZd7H3OrZd7H3KOA79Wy72PudWz72PuDg7dG/y3/W/Q6tl3sfdvY7K7PO25S6yzSdoOqWlEBmhaBamt+6J6AnmqaqDQy0CxYyoNCKC6m/VAGhPJdQBOSgKi6+QGu41QBRAF1LUABbUABNdAVOYUC0tE13gIWloCcTXeloFQLQTmffMtT74gixOa6gqysrzBVSVQVdWdQGpRNV1BV10SUlBYIvIF1E1Ne0F5iAKIAohaCmqWgBaapqC2ohqC6pqWoC2paa70tAqCACACa+F+RanyAWJ/a8vkAuqT6fVf7AVOz0X+AXVYh2egNSifx9T+wVWefyX+PqCyrqn807PQFEn0+p/YKH9H37gAc/kC6onL0P5BRP6OV8vqC2of2l/gAOSAuqan9J/AKmon9AUtL9PqnP1oCWl5ehfv5gh635nP1qWg//Z",a=N(e.readonly);function s(g){return g.match(/\.(jpeg|jpg|gif|png|svg|bmp|webp)$/)!=null}function r(g){return g.indexOf("data:image/")>-1}function i(g){return g?"data:image/jpeg;base64,"+g:""}const c=F(()=>{if(!e.type||!e.type.length)return"";const g=e.type.map(E=>(E==="jpg"&&(E="jpeg"),`image/${E}`));return!g||!g.length?"image/*":g.join(",")}),v=F(()=>{const g=o.value||e.cover||l;return s(g)||r(g)?g:i(g)}),f=F(()=>a.value?"":e.tile);function p(){a.value||n&&n.value&&n.value.click()}return{acceptTypes:c,imageSource:v,imageTitle:f,onClickImage:p}}const zd="",Bs=me({name:"FAvatar",props:Nc,emits:["change","update:modelValue"],setup(e,t){const n=F(()=>({"f-avatar":!0,"f-avatar-readonly":e.readonly,"f-avatar-circle":e.shape==="circle","f-avatar-square":e.shape==="square"})),o=N(e.modelValue),l=F(()=>({width:e.avatarWidth+"px",height:e.avatarHeight+"px"})),a=!1;function s(){return""}function r(){}const i=N(null),{acceptTypes:c,imageSource:v,onClickImage:f}=Cc(e,t,i,o);return()=>h("div",{class:n.value,style:l.value,onClick:f},[a,h("img",{title:e.tile,class:"f-avatar-image",src:v.value,onError:s},null),!e.readonly&&h("div",{class:"f-avatar-icon"},[h("span",{class:"f-icon f-icon-camera"},null)]),h("input",{ref:"file",name:"file-input",type:"file",class:"f-avatar-upload",accept:c.value,onChange:r,style:"display: none;"},null)])}}),Ec={install(e){e.component(Bs.name,Bs)}},Oc={id:String,type:{type:String,default:"primary"},disabled:{type:Boolean,default:!1},size:{type:String,default:"small"}};function Sc(e,t){function n(o){o.stopPropagation(),e.disabled||t.emit("click",o)}return{onClickButton:n}}const Vs=me({name:"FButton",props:Oc,emits:["click"],setup(e,t){const{onClickButton:n}=Sc(e,t);return()=>h("button",{class:(e.size==="large"?"btn-lg ":"btn-sm ")+"btn "+(e.type?"btn-"+e.type+" ":""),disabled:e.disabled,onClick:o=>n(o)},[t.slots.default&&t.slots.default()])}}),Tc={id:String,rectifyReferenceH:{type:HTMLElement},rectifyReferenceV:{type:HTMLElement},autoRectify:{type:Boolean,default:!1},realPlacement:{type:String,default:"bottom-right"},rectifyPlacement:{type:String,default:"bottom-right"},data:{type:Array},count:{type:Number,default:2},size:{type:String,default:"small"},type:{type:String,default:"primary"},placement:{type:String,default:"bottom"},showPanel:{type:Boolean,default:!1},dpFlag:{type:Boolean,default:!1}};function Ac(e,t,n,o){let l=0,a=0;const s=N(e.showPanel);let r=N(e.realPlacement),i=!1;function c(){n.value&&document.body.appendChild(n.value)}function v(){s.value=!0}function f(){s.value=!1}function p(){s.value&&!i&&setTimeout(()=>{s.value&&!i&&(f(),i=!1)},1e3)}function g(){setTimeout(()=>{s.value&&(f(),i=!1)},1e3)}function E(){v(),i=!0}function R(){g()}function P(){let j=document.documentElement.clientWidth,u=document.documentElement.clientHeight,d=0,m=0;if(e.rectifyReferenceH){const w=document.querySelector("props.rectifyReferenceH");w&&(j=w.getBoundingClientRect().right,m=w.getBoundingClientRect().left)}if(e.rectifyReferenceV){const w=document.querySelector("props.rectifyReferenceV");w&&(u=w.getBoundingClientRect().bottom,d=w.getBoundingClientRect().top)}return{top:d,left:m,right:j,bottom:u}}function T(j){if(!e.autoRectify)return;const u=P(),d=r;d.value.indexOf("bottom")>-1?a>u.bottom-j.bottom&&(d.value=d.value.replace("bottom","top")):d.value.indexOf("top")>-1&&a>j.top-u.top&&(d.value=d.value.replace("top","bottom")),d.value.indexOf("left")>-1?l>j.left-u.left&&(d.value=d.value.replace("left","right")):d.value.indexOf("right")>-1&&l>u.right-j.right&&(d.value=d.value.replace("right","left")),r=d}function b(j){let u="";e.autoRectify?u=e.rectifyPlacement:u=r.value;let d=0,m=0;u.indexOf("top")>-1?d=j.top-a:u.indexOf("bottom")>-1&&(d=j.bottom),u.indexOf("right")>-1?m=j.right:u.indexOf("left")>-1&&(m=j.left-l),u.indexOf("-top")>-1?d-=j.height:u.indexOf("-bottom")>-1&&(d+=j.height),n.value.style.top=d+"px",n.value.style.left=m+"px"}async function V(){await ut();const j=o.value.getBoundingClientRect(),u=n.value.getBoundingClientRect();a=u.height,l=u.width,e.autoRectify&&T(j),b(j)}function D(j){j.stopPropagation(),s.value=!s.value,s.value&&(c(),V()),t.emit("changeState",s.value)}function M(j,u){j.stopPropagation(),!u.disabled&&(s.value=!1,t.emit("change",u.id),t.emit("click",u))}function I(j){let u="bottom-right";switch(j){case"top":u="top-right";break;case"left":u="left-bottom";break;case"right":u="right-bottom";break;case"bottom":u="bottom-right";break;default:u=j}r.value=u}return{showPanel:s,clickEvent:D,toggle:M,getRealPlacement:I,bindMenuMouseenter:E,unbindMenuMouseleave:p,bindMenuMouseleave:R}}const Fs=me({name:"FButtonGroup",props:Tc,emits:["click","changeState","change","clickMenuOut"],setup(e,t){const n=e.data&&e.data.slice(0,e.count)||[],o=e.data&&e.data.slice(e.count)||[],l=N(),a=N(),{showPanel:s,clickEvent:r,toggle:i,getRealPlacement:c,bindMenuMouseenter:v,unbindMenuMouseleave:f,bindMenuMouseleave:p}=Ac(e,t,l,a);return c(e.placement),()=>h("div",{class:"f-btn-group"},[h("div",{class:(e.size==="large"?"btn-group-lg":"btn-group-sm")+" btn-group f-btn-group-links"},[n.map(g=>h("div",null,[g.icon&&h("button",{type:"button",id:g.id,title:g.id,class:"btn btn-link btn-icontext"+(g.disabled?" disabled":""),onClick:E=>i(E,g)},[h("i",{class:"'f-icon '+ btn.icon?btn.icon:''"},null)]),!g.icon&&h("button",{id:g.id,class:"btn "+(g.type?"btn-"+g.type:"btn-link")+" "+(g.type&&g.type!=="link"?"f-btn-ml":"")+(g.disabled?" disabled":""),onClick:E=>i(E,g)},[g==null?void 0:g.text])]))]),o.length?h("div",{class:"btn-group f-btn-group-dropdown",onMouseleave:g=>f()},[h("button",{title:"button",ref:a,type:"button",class:"f-btn-dropdown",onClick:g=>r(g)},[h("span",{class:"f-icon f-icon-lookup"},null)]),h("div",{ref:l,class:"dropdown-menu f-btn-group-dropdown-menu"+(s.value?" show":""),style:"position:fixed;",onMouseenter:g=>v(),onMouseleave:g=>p()},[o.map(g=>h("div",null,[h("div",null,[g.divider&&h("div",{class:"dropdown-divider"},null),h("li",{id:"dpBtn.id",class:"dropdown-item"+(g.disabled?" disabled":""),onClick:E=>i(E,g)},[g.icon&&h("i",{class:"f-icon dropdown-item-icon"+g.icon},null),h("span",null,[g==null?void 0:g.text])])])]))])]):""])}}),kc={install(e){e.component(Vs.name,Vs),e.component(Fs.name,Fs)}},Pc={id:String,buttonContent:{type:String,default:'<i class="f-icon f-icon-lookup"></i>'},autoComplete:{type:Boolean,default:!1},customClass:{type:String,default:""},disable:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},enableClear:{type:Boolean,default:!1},modelValue:{type:String,default:""},readonly:{type:Boolean,default:!1},textAlign:{type:String,default:"left"},showButtonWhenDisabled:{type:Boolean,default:!1},enableTitle:{type:Boolean,default:!1},inputType:{type:String,default:"text"},forcePlaceholder:{type:Boolean,default:!1},placeholder:{type:String,default:""},minLength:Number,maxLength:Number,tabIndex:Number};function Dc(e,t,n){const o=F(()=>({"input-group-append":!0,"append-force-show":e.showButtonWhenDisabled&&(e.readonly||e.disable)})),l=F(()=>e.showButtonWhenDisabled||(!e.editable||!e.readonly)&&!e.disable);function a(c){l.value&&(n.value=!0,t.emit("clickButton",{origin:c,value:e.modelValue})),c.stopPropagation()}function s(c){t.emit("mouseEnterIcon",c)}function r(c){t.emit("mouseLeaveIcon",c)}function i(){t.emit("mouseOverButton")}return{buttonClass:o,onClickButton:a,onMouseEnterButton:s,onMouseLeaveButton:r,onMouseOverButton:i}}function Rs(e,t,n,o){const l=F(()=>e.enableTitle?n.value:""),a=F(()=>(e.disable||e.readonly)&&!e.forcePlaceholder?"":e.placeholder),s=F(()=>e.readonly||!e.editable);let r=!1;const i=F(()=>!e.disable&&r),c=F(()=>({"text-left":e.textAlign==="left","text-center":e.textAlign==="center","text-right":e.textAlign==="right","form-control":!0,"f-utils-fill":!0}));function v(V,D=!0){n.value!==V&&(n.value=V,D&&t.emit("change",V),t.emit("update:modelValue",V))}Ee(()=>e.modelValue,V=>{n.value=V,t.emit("change",V)});function f(V){r=!1,t.emit("blur",V),V.stopPropagation()}function p(V){t.emit("click",V)}function g(V){if(e.disable){r=!0;return}r=!0,s.value||t.emit("focus",V)}function E(V){t.emit("input",V.target.value);const D=V.target.value;o.value=D,n.value!==D&&v(D,!1)}function R(V){V.target.tagName!=="INPUT"&&V.preventDefault(),V.stopPropagation()}function P(V){t.emit("keydown",V)}function T(V){t.emit("keyup",V)}function b(V){const D=V.target.value;v(D)}return{hasFocusedTextBox:i,isTextBoxReadonly:s,textBoxClass:c,textBoxPlaceholder:a,textBoxTitle:l,changeTextBoxValue:v,onBlurTextBox:f,onClickTextBox:p,onFocusTextBox:g,onInput:E,onKeyDownTextBox:P,onKeyUpTextBox:T,onMouseDownTextBox:R,onTextBoxValueChange:b}}function Mc(e,t,n,o,l){const a=N(!1),s=F(()=>e.enableClear&&!e.readonly&&!e.disable),{changeTextBoxValue:r}=Rs(e,t,n,l);function i(p){a.value=p}Ee(l,()=>{o.value?i(!!l.value):i(!1)});function c(p){const g=!e.readonly&&!e.disable&&e.editable,E=!e.editable;p.stopPropagation(),(g||E)&&(r("",!1),i(!a.value),t.emit("clear"))}function v(p){if(!!s.value){if(!n.value){i(!1);return}(!e.editable||!e.readonly)&&!e.disable&&i(!0)}}function f(p){!s.value||i(!1)}return{enableClearButton:s,showClearButton:a,onClearValue:c,onMouseEnterTextBox:v,onMouseLeaveTextBox:f}}const $s=me({name:"FOverlay",props:{popupContentPosition:{type:Object,default:{left:0,top:0}}},emits:["click"],setup(e,t){const n=N(e.popupContentPosition);function o(a){t.emit("click"),a.preventDefault(),a.stopPropagation()}const l=F(()=>({position:"relative",left:`${n.value.left}px`,top:`${n.value.top}px`}));return()=>h(dl,{to:"body"},{default:()=>{var a,s;return[h("div",{class:"overlay-container",style:"pointer-events: auto;",onClick:r=>o(r)},[h("div",{style:l.value},[(s=(a=t.slots).default)==null?void 0:s.call(a)])])]}})}}),Cl=me({name:"FButtonEdit",props:Pc,emits:["updateExtendInfo","clear","change","click","clickButton","blur","focus","mouseEnterIcon","mouseLeaveIcon","keyup","keydown","inputClick","input","update:modelValue"],setup(e,t){const n=N(),o=N(e.modelValue),l=N(!1),{buttonClass:a,onClickButton:s,onMouseEnterButton:r,onMouseLeaveButton:i}=Dc(e,t,l),c=N(""),{hasFocusedTextBox:v,isTextBoxReadonly:f,textBoxClass:p,textBoxPlaceholder:g,textBoxTitle:E,onBlurTextBox:R,onClickTextBox:P,onFocusTextBox:T,onInput:b,onKeyDownTextBox:V,onKeyUpTextBox:D,onMouseDownTextBox:M,onTextBoxValueChange:I}=Rs(e,t,o,c),{enableClearButton:j,showClearButton:u,onClearValue:d,onMouseEnterTextBox:m,onMouseLeaveTextBox:w}=Mc(e,t,o,v,c),_=F(()=>({"input-group":!0,"f-state-disable":e.disable,"f-state-editable":e.editable&&!e.disable&&!e.readonly,"f-state-readonly":e.readonly&&!e.disable,"f-state-focus":v}));function C(){l.value=!1}const B=F(()=>l.value),A=()=>{if(n.value){const y=n.value.getBoundingClientRect(),{left:O,top:H,height:q}=y;return{left:O,top:H+q}}return{left:0,top:0}};function S(y){l.value=!1}return t.expose({commitValue:S}),()=>h(Pe,null,[h("div",ft(t.attrs,{ref:n,class:"f-cmp-inputgroup",id:e.id}),[h("div",{class:[e.customClass,_.value],onMouseenter:m,onMouseleave:w},[h("input",{name:"input-group-value",autocomplete:""+e.autoComplete,class:p.value,disabled:e.disable,maxlength:e.maxLength,minlength:e.minLength,placeholder:g.value,readonly:f.value,tabindex:e.tabIndex,title:E.value,type:e.inputType,value:o.value,onBlur:R,onChange:I,onClick:P,onFocus:T,onInput:b,onKeydown:V,onKeyup:D,onMousedown:M},null),h("div",{class:a.value},[j.value&&An(h("span",{class:"input-group-text input-group-clear",onClick:d},[h("i",{class:"f-icon modal_close"},null)]),[[ks,u.value]]),e.buttonContent&&h("span",{class:"input-group-text input-group-append-button",onClick:s,onMouseenter:r,onMouseleave:i,innerHTML:e.buttonContent},null)])])]),B.value&&h($s,{"popup-content-position":A(),onClick:C},{default:()=>{var y,O;return[(O=(y=t.slots).default)==null?void 0:O.call(y)]}})])}}),Bc={install(e){e.component(Cl.name,Cl)}},Vc={id:String,name:{type:String,default:""},enumData:{type:Array,default:[]},textField:{type:String,default:"name"},valueField:{type:String,default:"value"},horizontal:{type:Boolean,default:!1},disable:{type:Boolean,default:!1},modelValue:[String,Array],tabIndex:{type:Number,default:0},separator:{type:String,default:","},isStringValue:{type:Boolean,default:!0},loadData:{type:Function}};function Fc(e,t,n){const o=F(()=>!e.disable),l=N(e.enumData);function a(f){return f[e.valueField]}function s(f){return f[e.textField]}function r(f){return f?e.isStringValue?f.split(e.separator):f:[]}function i(f){const g=l.value.map(E=>a(E)).filter(E=>f.some(R=>R===E));return e.isStringValue?g.join(e.separator):g}function c(f){const p=String(a(f));return r(n.value).some(E=>E===p)}function v(f,p){if(o.value){let g=r(n.value)||[];const E=String(a(f));!g||!g.length?g.push(E):g.some(R=>R===E)?g=g.filter(R=>R!==E):g.push(E),n.value=i(g),t.emit("changeValue",n.value),t.emit("update:modelValue",n.value)}p.stopPropagation()}return{enumData:l,getValue:a,getText:s,checked:c,onClickCheckbox:v}}const js=me({name:"FCheckboxGroup",props:Vc,emits:["changeValue","update:modelValue"],setup(e,t){const n=N(e.modelValue),{enumData:o,onClickCheckbox:l,getValue:a,getText:s,checked:r}=Fc(e,t,n),i=F(()=>({"farris-checkradio-hor":e.horizontal}));return()=>h("div",{class:["farris-input-wrap",i.value]},[o.value.map((c,v)=>{const f="checkbox_"+e.name+v;return h("div",{class:"custom-control custom-checkbox"},[h("input",{type:"checkbox",class:"custom-control-input",name:e.name,id:f,value:a(c),checked:r(c),disabled:e.disable,tabindex:e.tabIndex,onClick:p=>l(c,p)},null),h("label",{class:"custom-control-label",for:f,title:s(c)},[s(c)])])})])}}),Rc={install(e){e.component(js.name,js)}};var Is=(e=>(e.Text="text",e.Tag="tag",e))(Is||{}),Dt=(e=>(e.top="top",e.bottom="bottom",e.auto="auto",e))(Dt||{});const $c={id:{type:String},editable:{default:!1,type:Boolean},disabled:{default:!1,type:Boolean},readonly:{default:!1,type:Boolean},maxLength:{type:Number},placeholder:{type:String},forcePlaceholder:{default:!1,type:Boolean},enableClear:{default:!0,type:Boolean},enableTitle:{default:!0,type:Boolean},viewType:{default:Is.Text,type:String},mapFields:{type:Object},data:{type:Array},idField:{default:"id",type:String},valueField:{default:"id",type:String},textField:{default:"label",type:String},multiSelect:{default:!1,type:Boolean},remote:{default:null,type:Object},maxHeight:{default:350,type:Number},remoteSearch:{default:!1,type:Boolean},hidePanelOnClear:{default:!0,type:Boolean},separator:{default:",",type:String},displayText:{type:String,default:""},modelValue:{type:[String,Number]},dropDownIcon:{type:String,default:'<span class="f-icon f-icon-arrow-60-down"></span>'},tabIndex:{type:Number,default:-1},enableSearch:{type:Boolean,default:!1},placement:{type:String,default:Dt.auto}},jc={value:{required:!0,type:[String,Number]},name:{required:!0,type:[String,Number]},disabled:{default:!1,type:Boolean},checked:{default:!1,type:Boolean}},Ic={isPanelVisible:{type:Boolean,default:!1},position:{type:String,default:Dt.bottom}},Hc={options:{type:Array}},No=Symbol("fComboList"),Hs=Symbol("fComboListPanel");var Fn=(e=>(e.clear="clear",e.update="update:modelValue",e))(Fn||{}),hn=(e=>(e.panelShow="panelShow",e.panelHidden="panelHidden",e))(hn||{});function Wc(e,t){const n=N(""),o=N(e.modelValue),l=N(!1),a=N();if(Ee([a],([r])=>{if(e.modelValue){const i=r.find(c=>c[e.valueField]===e.modelValue);i&&(n.value=i[e.textField])}}),e.remote){const{url:r,method:i="GET",headers:c={},body:v=null}=e.remote;fetch(r,{method:i,headers:c,body:v}).then(p=>{if(p.status===200)return p.json();throw new Error(p.statusText)}).then(p=>{a.value=p}).catch(p=>{console.error(p)})}else a.value=e.data;function s(r){o&&(o.value=r.value),n.value=r.name,t.emit("update:modelValue",r.value)}return{displayText:n,modelValue:o,isPanelVisible:l,dataSource:a,onValueChange:s}}function Lc(e){const{isPanelVisible:t,context:n,modelValue:o,props:l}=e,a=f=>{t.value!==!1&&(t.value=!1)},s=f=>{t.value!==!1&&(t.value=!1)};Ee([t],([f])=>{f?(window.addEventListener("resize",a),window.addEventListener("scroll",s)):(window.removeEventListener("resize",a),window.removeEventListener("scroll",s))});function r(f){o.value="",l.hidePanelOnClear&&(t.value=!1),n.emit(Fn.update,""),n.emit(Fn.clear)}function i(f){t.value=!t.value}function c(f){t.value=!1}function v(f){l.editable===!1&&(t.value=!0)}return{onClear:r,onClick:v,onButtonClick:i,onPanelHidden:c}}function Uc(){const e=Tt(No,null);return{idField:e==null?void 0:e.comboListProps.idField,valueField:e==null?void 0:e.comboListProps.valueField,textField:e==null?void 0:e.comboListProps.textField}}function zc(e,t){const n=Tt(No,null),o=Tt(Hs,null),l=N(n==null?void 0:n.dataSource),a=(n==null?void 0:n.comboListProps.valueField)||"id",s=(n==null?void 0:n.comboListProps.textField)||"label",r=F(()=>{var P;return n!=null&&n.modelValue?e.value!==void 0&&((P=n==null?void 0:n.modelValue)==null?void 0:P.toString().split(i).includes(e.value.toString())):!1}),i=(n==null?void 0:n.comboListProps.separator)||",",c=F(()=>(n==null?void 0:n.comboListProps.multiSelect)||!1),v=F(()=>e.name||e.value),f=n==null?void 0:n.defaultOptionSlot,p=P=>{var T,b;if(!e.disabled&&e.value!==void 0)if(c.value){const V=(n==null?void 0:n.modelValue)||null,D=(V==null?void 0:V.toString().split(i))||[],M=D==null?void 0:D.indexOf(e.value.toString());M!==-1?D.splice(M,1):D.push(e.value.toString());const I=(T=l.value)==null?void 0:T.filter(d=>d[a]&&D.includes(d[a].toString())),j=I==null?void 0:I.map(d=>d[a]).join(i),u=I==null?void 0:I.map(d=>d[s]).join(i);n==null||n.onValueChange({value:j,name:u})}else n==null||n.onValueChange({value:e.value,name:e.name}),(b=o==null?void 0:o.onPanelItemClick)==null||b.call(o,P)},g=F(()=>c.value?r.value:(n==null?void 0:n.modelValue)===e.value),E=F(()=>({active:g.value,"list-group-item":!0,"list-group-item-action":!0})),R=F(()=>({cursor:e.disabled?"not-allowed":"default"}));return{name:v,optionClass:E,isChecked:r,rowStyle:R,multiSelect:c,onOptionClick:p,defaultOptionSlot:f}}const Gc=me({name:"FOption",props:jc,emits:[],setup(e,t){const{name:n,optionClass:o,rowStyle:l,multiSelect:a,onOptionClick:s,isChecked:r,defaultOptionSlot:i}=zc(e);return()=>h("li",{style:l.value,class:o.value,onClick:As(s,["prevent","stop"])},[a.value&&h("div",{class:"custom-control custom-checkbox custom-control-inline",style:"margin:0;padding-right:0;float:none;vertical-align: top;"},[An(h("input",{class:"custom-control-input",type:"checkbox",disabled:e.disabled,"onUpdate:modelValue":c=>r.value=c},null),[[Os,r.value]]),h("label",{class:"custom-control-label"},null)]),h("span",{class:"f-datalist-item-text"},[i?i({name:n.value}):n.value])])}}),Kc=me({name:"FOptions",props:Hc,emits:[],setup(e,t){const{valueField:n="id",textField:o="label"}=Uc();return()=>{var l;return h("ul",{class:"list-group list-group-flush"},[(l=e==null?void 0:e.options)==null?void 0:l.map(a=>h(Gc,{value:a[n],name:a[o],disabled:a.disabled},null))])}}});function Yc(e){const{isPanelVisible:t,panelRef:n,context:o}=e,l=Tt(No,null),a=N((l==null?void 0:l.comboListProps.maxHeight)||350),s=(l==null?void 0:l.comboListProps.valueField)||"id",r=(l==null?void 0:l.comboListProps.textField)||"label",i=(l==null?void 0:l.comboListProps.placement)||Dt.bottom,c=N(l==null?void 0:l.dataSource),v=N(l==null?void 0:l.dataSource),f=N(""),p=F(()=>(l==null?void 0:l.comboListProps.enableSearch)||!1),g=F(()=>({"z-index":99999,position:"absolute",background:"#fff",border:"solid 1px #ededed"})),E=F(()=>({"max-height":p.value?a.value-36+"px":a.value+"px",overflow:"auto",border:"none"})),R=F(()=>({comboPanel:!0,"f-area-hide":!t.value,"f-area-show":t.value})),P=(T,b,V=Dt.bottom)=>{var d;const D=((d=T==null?void 0:T.getBoundingClientRect())==null?void 0:d.height)||350,M=b.bottom||0,I=document.body.offsetHeight,j=(b==null?void 0:b.top)||0,u=(b==null?void 0:b.height)||0;if(T.style.left=(b==null?void 0:b.left)+"px",T.style.width=(b==null?void 0:b.width)+"px",V===Dt.bottom||V===Dt.auto){T.style.top=j+u+"px";const m=I-M,w=D<=m?D:m;a.value=w}else if(V===Dt.top){const m=j,w=D<=m?D:m;T.style.top=j-w+"px",a.value=w}};return Ee([n,t],([T,b])=>{var V,D;if(b&&T){const M=l==null?void 0:l.comboListRef,I=(D=(V=M==null?void 0:M.$el)==null?void 0:V.parentNode)==null?void 0:D.querySelector(".input-group");if(p){const u=T.querySelector("input");u&&u.focus()}const j=I==null?void 0:I.getBoundingClientRect();P(T,j,i),o.emit(hn.panelShow)}}),Ee([f],([T])=>{Qc(()=>{var b;if(!T)return c.value=v.value;c.value=(b=v==null?void 0:v.value)==null?void 0:b.filter(V=>{var D,M;return((D=V[s])==null?void 0:D.startsWith(T))||V[s].toString().startsWith(T)||((M=V[r])==null?void 0:M.startsWith(T))})},500)()}),{panelStyle:g,panelClass:R,cardStyle:E,enableSearch:p,keyword:f,items:c}}function qc(e){const{context:t}=e;function n(s){t.emit(hn.panelHidden)}function o(s){t.emit(hn.panelHidden)}function l(s){}function a(s){}return{onPanelContainerClick:n,onPanelItemClick:o,onSearchClick:l,onPanelClick:a}}function Qc(e,t=300){let n;return(...o)=>{clearTimeout(n),n=window.setTimeout(()=>{e(o)},t)}}const Xc=me({name:"FPanel",props:Ic,emits:[hn.panelHidden,hn.panelShow],setup(e,t){const n=N(),{isPanelVisible:o}=wa(e),{panelStyle:l,panelClass:a,cardStyle:s,enableSearch:r,keyword:i,items:c}=Yc({isPanelVisible:o,props:e,panelRef:n,context:t}),{onPanelContainerClick:v,onPanelItemClick:f,onSearchClick:p,onPanelClick:g}=qc({panelRef:n,isPanelVisible:o,context:t}),E=Ue({onPanelItemClick:f});return uo(Hs,E),()=>o.value&&h($s,{onClick:v},{default:()=>[h("div",{class:a.value,ref:n,style:l.value,onClick:As(g,["prevent","stop"])},[r.value&&h(kn("f-button-edit"),{enableClear:!0,style:"padding:5px 10px",buttonContent:"<i class='f-icon f-icon-search'></i>",modelValue:i.value,"onUpdate:modelValue":R=>i.value=R,onClickButton:p},null),h("div",{style:"position: relative;",class:"f-datalist"},[h("div",{class:"card",style:s.value},[h(Kc,{options:c.value},null)])])])]})}}),Ws=me({name:"FComboList",props:$c,emits:[Fn.clear,Fn.update],setup(e,t){const n=N(),{onValueChange:o,displayText:l,modelValue:a,isPanelVisible:s,dataSource:r}=Wc(e,t),{onClear:i,onButtonClick:c,onPanelHidden:v,onClick:f}=Lc({props:e,context:t,isPanelVisible:s,modelValue:a}),p=Ue({comboListRef:n,isPanelVisible:s,comboListProps:e,onValueChange:o,modelValue:a,dataSource:r,defaultOptionSlot:t.slots.default});return uo(No,p),()=>h(Pe,null,[h(kn("f-button-edit"),ft({ref:n,id:e.id,class:{active:s}},t.attrs,{disable:e.disabled,readonly:e.readonly,forcePlaceholder:e.forcePlaceholder,editable:e.editable,buttonContent:e.dropDownIcon,placeholder:e.placeholder,enableClear:e.enableClear,maxLength:e.maxLength,tabIndex:e.tabIndex,enableTitle:e.enableTitle,style:"display:block",modelValue:l.value,"onUpdate:modelValue":g=>l.value=g,onClear:i,onClick:f,onClickButton:c}),null),s.value&&h(Xc,{isPanelVisible:s.value,onPanelHidden:v},null)])}}),Zc={install(e){e.component(Ws.name,Ws)}},Jc={columns:{type:Array,default:[]},columnOption:{type:Object},data:{type:Array,default:[]},disable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},editOption:{type:Object},filter:{type:Object},fit:{type:Boolean,default:!1},group:{type:Object},header:{type:Object},height:{type:Number,default:300},id:{type:String,default:""},idField:{type:String,default:"id",require:!0},mergeCell:{type:Boolean,default:!1},pagination:{type:Object},rowNumber:{type:Object},rowOption:{type:Object},selection:{type:Object},showBorder:{type:Boolean,default:!1},showFooter:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showOptions:{type:Boolean,default:!1},showScrollBar:{type:String,default:"auto"},showStripe:{type:Boolean,default:!0},sort:{type:Object},summary:{type:Object},virtualized:{type:Boolean,default:!1},width:{type:Number,default:800}};var Xe=(e=>(e[e.readonly=0]="readonly",e[e.editable=1]="editable",e[e.editing=2]="editing",e))(Xe||{}),en=(e=>(e[e.data=0]="data",e[e.group=1]="group",e[e.summary=2]="summary",e))(en||{});function ef(e,t,n,o,l,a,s){var T,b;const r=N(e.mergeCell),i=N(e.rowOption),c=((T=i.value)==null?void 0:T.height)||28,v=((b=i.value)==null?void 0:b.wrapContent)||!1,f=N(l-1+a),p=N(0);function g(V,D,M){const I=D&&D.data[M];if(I&&I.data===V.data){const u=I&&I.spannedBy||I;u.rowSpan++,u.spanned=u.spanned||[],u.spanned.push(V),V.colSpan=0,V.rowSpan=0,V.spannedBy=u}}function E(V,D,M,I,j,u){const d=V.__fv_data_index__,m={index:I,dataIndex:d,top:j,layer:-1,type:en.data,pre:D,data:{},setRef:w=>{m.ref=w}};if(!v){m.height=c,V.__fv_data_height__=m.height;const w=m.pre;if(w){const _=(w.__fv_data_position__||0)+(w.__fv_data_height__||0);m.top=_,V.__fv_data_position__=_}}return u.forEach((w,_)=>{const C={colSpan:1,rowSpan:1,index:_,field:w.field,mode:w.readonly?Xe.readonly:Xe.editable,data:V[w.field],parent:m,getEditor(B){return s.getEditor(B,w)},setRef:B=>{if(v&&B){const A=C.parent;C.cellHeight!==B.offsetHeight&&(C.cellHeight=B.offsetHeight),C.cellHeight&&C.cellHeight>(A.height||0)&&(A.height=C.cellHeight,V.__fv_data_height__=A.height);const S=A.pre;if(S){const y=(S.__fv_data_position__||0)+(S.__fv_data_height__||0);A.top=y,V.__fv_data_position__=y}}},update:B=>{B!==void 0&&(V[w.field]=B,C.data=V[w.field])}};r.value&&g(C,M,w.field),m.data[w.field]=C}),m}function R(V,D,M,I){const{dataView:j}=o,u=[],d=I?Date.now().toString():"";for(let m=V,w=0;m<D;m++,w++){const _=j.value[m],C=j.value[m-1]||M,B=u[w-1],A=C?(C.__fv_data_position__||0)+(C.__fv_data_height__||0):0,S=_.__fv_data_grid_group_row__?n.renderGroupRow(_,C,m,A,t.value):_.__fv_data_grid_group_summary__?n.renderSummaryRow(_,C,m,A,t.value):E(_,C,B,m,A,t.value);S.refreshKey=d,u.push(S)}return p.value=u[0].index,f.value=u[u.length-1].index,u}function P(V,D,M){const I=D.groupField||"",{groupValue:j}=D;o[V](I,j);const{dataView:u}=o,d=M[0].index,m=Math.min(d+l+a+1,u.value.length);return R(d,m)}return{getVisualData:R,maxVisibleRowIndex:f,minVisibleRowIndex:p,toggleGroupRow:P}}function tf(e,t){var p;const n=((p=e.rowOption)==null?void 0:p.height)||28,o=N(t.value.primaryColumnsWidth);function l(g){const E={};return g.reduce((R,P,T)=>{const b=T<g.length-1?g[T+1]:null;return T===0&&(R[P.field]={left:0,width:0}),R[P.field].width=P.actualWidth||0,b&&(R[b.field]={left:R[P.field].left+(P.actualWidth||0),width:0}),R},E),E}function a(g,E,R){const P=n*(R+1),b=E[g.field].left-P+E[g.field].width,V=g.parent.height?`${g.parent.height}px`:"";return{left:`${P}px`,width:`${b}px`,height:`${V}`}}function s(g,E,R){const P=g.parent.height?`${g.parent.height}px`:"";return{right:"0px",height:`${P}`}}function r(g,E){const R=g.parent.height?`${g.parent.height}px`:"";return{left:`${E[g.field].left}px`,width:`${E[g.field].width}px`,height:`${R}`}}function i(g,E,R){const T=(E.spanned||[]).reduce((V,D)=>V+(D.parent.height||0),0)+(g.height||0);return{top:`${g.top}px`,left:`${R[E.field].left}px`,width:`${R[E.field].width}px`,height:`${T}px`,padding:`calc(${T/2}px - 1rem) 0`}}function c(g,E){return`${g.type}_r_${g.index}_c_${E}_${g.refreshKey||""}`}function v(g){return`${g.type}_r_${g.index}_${g.refreshKey||""}`}function f(g){const E=g.height?`${g.height}px`:"";return{top:`${g.top}px`,width:`${o.value}px`,height:`${E}`}}return Ee(t,()=>{o.value=t.value.primaryColumnsWidth}),{calculateCellPositionInRow:l,cellKey:c,cellPosition:r,groupCellPosition:a,rowKey:v,rowPosition:f,rowSpanCellPosition:i,summaryCellPosition:s}}function nf(e,t,n,o,l,a,s,r){var Q;const{dataView:i}=t,{getVisualData:c,maxVisibleRowIndex:v,minVisibleRowIndex:f}=l,p=N(o.value.primaryColumnsWidth),g=N(o.value.leftColumnsWidth),E=N(o.value.rightColumnsWidth),R=((Q=e.rowOption)==null?void 0:Q.height)||28,P=N(0),T=N(0);let b=0,V=a-1;const D=N(0),M=N(0),I=N(0),j=R*a,u=F(()=>i.value.length*R),d=F(()=>i.value.length>a+s?Math.floor((a+s)/i.value.length*M.value):M.value),m=F(()=>Math.floor(I.value/p.value*D.value)),w=0,_=0,C=F(()=>D.value-(g.value+p.value+E.value+r.value));function B(){const W=v.value<i.value.length?i.value[v.value]:i.value[i.value.length-1];return(W.__fv_data_position__||0)+(W.__fv_data_height__||0)+Math.max(i.value.length-1-v.value,0)*R}function A(W){const X=i.value.find(ee=>ee.__fv_data_position__>W);return X?X.__fv_index__-1:0}function S(W){const X=Math.max(b-s,0),ee=Math.min(V+s+1,i.value.length),ne=i.value[X-1],ae=c(X,ee,ne,W);ae.length&&(n.value=[...ae])}function y(W){let X=P.value+W;X>w&&(X=w);const ee=X>w,ne=B(),ae=ne>M.value;ae&&X<M.value-ne&&(X=M.value-ne),(!ae||ee)&&(X=w),P.value!==X&&(P.value=X,b=A(Math.abs(P.value)),V=b+a,(b<f.value||V>v.value-s/2)&&S())}function O(W){let X=T.value+W;X>_&&(X=_),X<C.value&&(X=C.value),T.value!==X&&(T.value=X)}Ee(I,()=>{O(0)}),Ee(o,()=>{p.value=o.value.primaryColumnsWidth,g.value=o.value.leftColumnsWidth,E.value=o.value.rightColumnsWidth});function H(W){W.preventDefault(),W.stopPropagation();const X=(W.wheelDeltaY||W.deltaY)/10,ee=(W.wheelDeltaX||W.deltaX)/10;y(X),O(ee)}const q=F(()=>({height:`${i.value.length*R}px`,width:`${g.value}px`,transform:`translateY(${P.value}px)`})),Y=F(()=>({transform:`translateY(${P.value}px)`})),te=F(()=>({height:`${i.value.length*R}px`,width:`${p.value}px`,transform:`translate(${T.value}px, ${P.value}px)`})),le=F(()=>({transform:`translate(${T.value}px, ${P.value}px)`})),fe=F(()=>({height:`${i.value.length*R}px`,width:`${E.value}px`,transform:`translateY(${P.value}px)`})),se=F(()=>({transform:`translateY(${P.value}px)`})),Z=F(()=>({height:`${i.value.length*R}px`,width:`${r.value}px`,transform:`translateY(${P.value}px)`})),oe=F(()=>({width:`${g.value}px`})),ie=F(()=>({transform:`translateX(${T.value}px)`})),ye=F(()=>({width:`${E.value}px`})),_e=F(()=>{const W=B();return P.value/(M.value-W)*(M.value-d.value)}),pe=F(()=>({height:`${d.value}px`,top:`${_e.value}px`})),Te=F(()=>T.value/C.value*(D.value-m.value)),we=F(()=>({width:`${m.value}px`,left:`${Te.value}px`})),x=N(!1),k=N(-1),L=N(-1);let K;function $(W){if(x.value&&L.value!==-1){const X=L.value-W.pageX,ee=D.value-m.value;if(Math.abs(X)<=ee){const ne=X/(I.value-m.value)*(p.value-I.value);O(ne),L.value=W.pageX}}}function U(W){if(x.value&&k.value!==-1){const X=k.value-W.pageY,ee=j-d.value;if(Math.abs(X)<=ee){const ne=X/(j-d.value)*(u.value-j);y(ne),k.value=W.pageY}}}function z(W){x.value=!1,k.value=-1,L.value=-1,document.removeEventListener("mouseup",z),K&&(K.removeEventListener("mousemove",$),K.removeEventListener("mousemove",U)),document.body.style.userSelect=""}function G(W,X,ee){x.value=!0;const ne=ee==="horizontal"?$:U;ee==="vertical"&&(k.value=W.pageY),ee==="horizontal"&&(L.value=W.pageX),X.value&&(X.value.addEventListener("mousemove",ne),K=X.value,document.addEventListener("mouseup",z),document.body.style.userSelect="none")}return{onMouseDownScrollThumb:G,onWheel:H,dataGridWidth:D,gridDataStyle:te,gridHeaderColumnsStyle:ie,gridMergedDataStyle:le,gridSideStyle:Z,viewPortWidth:I,viewPortHeight:M,horizontalScrollThumbStyle:we,leftFixedGridDataStyle:q,leftFixedGridHeaderColumnsStyle:oe,leftFixedGridMergedDataStyle:Y,reCalculateVisualDataRows:S,rightFixedGridDataStyle:fe,rightFixedGridHeaderColumnsStyle:ye,rightFixedGridMergedDataStyle:se,verticalScrollThumbStyle:pe}}function of(e){const t=N(e.idField),n=N(-1),o=N("");function l(i){return{"fv-grid-row":i.type===en.data,"fv-grid-group-row":i.type===en.group,"fv-grid-summary-row":i.type===en.summary,"fv-grid-row-hover":i.index===n.value,"fv-grid-row-selected":i.data[t.value].data===o.value,"fv-grid-row-odd":i.dataIndex%2>0,"fv-grid-row-even":i.dataIndex%2===0}}function a(i,c){o.value=c.data[t.value].data}function s(i,c){n.value=c.index}function r(i){return{"fv-grid-sidebar-row":!0,"fv-grid-sidebar-row-hover":i.index===n.value,"fv-grid-sidebar-row-selected":i.data[t.value].data===o.value,"fv-grid-sidebar-row-odd":i.dataIndex%2>0,"fv-grid-sidebar-row-even":i.dataIndex%2===0}}return{gridRowClass:l,onClickRow:a,onMouseoverRow:s,sidebarRowClass:r}}function lf(e){const n=N({defaultColumnWidth:120,headerDepth:1,leftColumns:[],leftColumnsWidth:0,leftHeaderColumns:[],primaryColumns:[],primaryColumnsWidth:0,primaryHeaderColumns:[],rightColumns:[],rightColumnsWidth:0,rightHeaderColumns:[],summaryColumns:[]}),o=N(e.summary),l=F(()=>{const i=o.value;return(i==null?void 0:i.groupFields)||[]});function a(i){const c=new Map;return l.value&&l.value.reduce((v,f)=>(v.set(f,!0),v),c),i.reduce((v,f)=>(f.fixed==="left"?(n.value.leftColumns.push(f),n.value.leftColumnsWidth+=f.actualWidth||120):f.fixed==="right"?(n.value.rightColumns.push(f),n.value.rightColumnsWidth+=f.actualWidth||120):(n.value.primaryColumns.push(f),n.value.primaryColumnsWidth+=f.actualWidth||120),c.has(f.field)&&n.value.summaryColumns.push(f),v),n),n}a(e.columns);const s=F(()=>n.value.leftColumns.length>0),r=F(()=>n.value.rightColumns.length>0);return{columnContext:n,hasLeftFixedColumn:s,hasRightFixedColumn:r}}function af(e,t){var c;const n=N((c=e.columnOption)==null?void 0:c.groups);function o(v,f,p,g,E){const R={actualWidth:0,children:[],depth:1,field:v.field,layer:1,left:0,parent:p,resizable:!1,title:v.title||""},P=g||R;if(v.group){let T=1;v.group.reduce((b,V)=>{if(typeof V=="string"){const D=f.get(V);D&&(E.fieldToRootMap.set(V,P),b.actualWidth+=D.actualWidth,b.children.push(D))}else{const D=o(V,f,b,P,E);T=Math.max(T,D.depth),b.actualWidth+=D.actualWidth,b.children.push(D)}return b},R),R.depth+=T}return t.value.headerDepth=Math.max(t.value.headerDepth,R.depth),R}function l(v){const f={groupedCells:new Map,fieldToRootMap:new Map};return n.value&&n.value.reduce((p,g)=>{const E=o(g,v,null,null,f);return p.groupedCells.set(g.field,E),p},f),f}function a(v){if(!v||v.length===0)return 0;const f=v[0];return f.children&&f.children.length>0&&(f.left=a(f.children)),f.left}function s(v,f){const p=t.value.headerDepth;v.forEach(g=>{g.layer=f?f.layer+1:1;const E=g.children&&g.children.length===0;g.depth=E?p-(g.layer-1):1,g.left=E?g.left:a(g.children),g.children&&s(g.children,g)})}function r(v,f){const p=new Map;return v.forEach(g=>{const E=f.fieldToRootMap.get(g.field),R=E!=null;R&&!p.has(E.field)&&p.set(E.field,E),R||p.set(g.field,g)}),s(Array.from(p.values())),p}function i(v){let f=new Map,p=0;if(v.reduce((g,E)=>(g.set(E.field,{actualWidth:E.actualWidth||0,children:[],depth:1,layer:1,left:p,field:E.field,parent:null,resizable:E.resizable||!1,title:E.title}),p+=E.actualWidth||0,g),f),n.value){const g=l(f);f=r(f,g)}return f}return{getGridHeaderCells:i}}function sf(e,t){var D,M,I,j,u;const{getGridHeaderCells:n}=af(e,t),o=120,l=32,a=N(((D=e.rowNumber)==null?void 0:D.enable)||!1),s=N(((M=e.selection)==null?void 0:M.multiSelect)||!1),r=N(0+(a.value&&((I=e.rowNumber)==null?void 0:I.width)||0)+(s.value?l:0)),i=N(((j=e.columnOption)==null?void 0:j.fitColumns)||!1),c=N(i.value&&((u=e.columnOption)==null?void 0:u.fitMode)||"none");function v(d,m,w){const _=parseInt(d.width,10)/100;return w*_}function f(d,m,w){return typeof d.width=="string"?v(d,m,w):d.width||o}function p(d,m){const w=[],_=[];let C=0;d.value.primaryColumns.forEach(S=>{typeof S.width=="string"?_.push(S):(S.width=S.width||o,C+=S.width,w.push(S))});const B=m*(w.length/d.value.primaryColumns.length);w.forEach(S=>{const y=B*(S.width/C);S.actualWidth=y,d.value.primaryColumnsWidth+=S.actualWidth});const A=m-B;_.forEach(S=>{const y=v(S,d.value,A);S.actualWidth=y,d.value.primaryColumnsWidth+=S.actualWidth})}function g(d,m){const w=m/(d.value.primaryColumns.length||1);d.value.primaryColumns.forEach(_=>{_.actualWidth=w,d.value.primaryColumnsWidth+=_.actualWidth})}function E(d,m){const w=[],_=[],C=new WeakMap;let B=0,A=0;if(d.value.primaryColumns.forEach(y=>{if(typeof y.width=="string"){const O=v(y,d.value,m);C.set(y,O),B+=O,_.push(y)}else y.width=y.width||o,A+=y.width,w.push(y)}),m-B>A){const y=m-B;_.forEach(O=>{O.actualWidth=C.get(O)||o,d.value.primaryColumnsWidth+=O.actualWidth}),w.forEach(O=>{O.actualWidth=y*(O.width/A),d.value.primaryColumnsWidth+=O.actualWidth})}else p(d,m)}function R(d,m){d.value.primaryColumns.forEach(w=>{w.actualWidth=f(w,d.value,m),d.value.primaryColumnsWidth+=w.actualWidth})}const P={average:g,expand:E,none:R,percentage:p};function T(d){d.value.leftHeaderColumns=Array.from(n(d.value.leftColumns).values()),d.value.primaryHeaderColumns=Array.from(n(d.value.primaryColumns).values()),d.value.rightHeaderColumns=Array.from(n(d.value.rightColumns).values())}function b(d){d.value.leftColumnsWidth=0,d.value.primaryColumnsWidth=0,d.value.rightColumnsWidth=0,d.value.leftColumns.forEach(m=>{d.value.leftColumnsWidth+=m.actualWidth||0}),d.value.primaryColumns.forEach(m=>{d.value.primaryColumnsWidth+=m.actualWidth||0}),d.value.rightColumns.forEach(m=>{d.value.rightColumnsWidth+=m.actualWidth||0}),d.value=Object.assign({},d.value)}function V(d,m,w){if(m){d.value.leftColumnsWidth=0,d.value.primaryColumnsWidth=0,d.value.rightColumnsWidth=0;const _=m.clientWidth-r.value;d.value.leftColumns.forEach(A=>{A.actualWidth=f(A,d.value,_),d.value.leftColumnsWidth+=A.actualWidth}),d.value.rightColumns.forEach(A=>{A.actualWidth=f(A,d.value,_),d.value.rightColumnsWidth+=A.actualWidth});const C=_-d.value.leftColumnsWidth-d.value.rightColumnsWidth,B=P[c.value];B&&B(d,C),w.value=C,T(d),d.value=Object.assign({},d.value)}}return{calculateColumnHeaders:T,calculateColumnsSize:V,calculateColumnsWidth:b}}function rf(e){var c,v,f;const n=N(((c=e.rowNumber)==null?void 0:c.enable)||!1),o=N(((v=e.selection)==null?void 0:v.showCheckbox)||!1),l=N(n.value&&((f=e.rowNumber)==null?void 0:f.width)||0),a=N(o.value?50:0),s=F(()=>a.value+l.value);function r(p){return{top:`${p.top}px`,width:`${s.value}px`,height:`${p.height||""}px`}}const i=F(()=>({width:`${s.value}px`}));return{showRowCheckbox:o,showRowNumer:n,sidebarCellPosition:r,sidebarCornerCellStyle:i,sidebarWidth:s}}function Ls(e){const t=N(e.idField),n=N(e.summary),o=N(e.group),l=F(()=>{const P=n.value;return(P==null?void 0:P.groupFields)||[]}),a=F(()=>{const P=n.value;return P&&P.enable&&P.groupFields&&P.groupFields.length>0}),s=F(()=>{const P=o.value;return P&&P.showSummary}),r=new Map;let i=[],c="";function v(P,T,b,V){const D=V[b];D&&(T.reduce((M,I,j)=>{const u=I[D];let d=M.get(u);if(!d){const m=l.value.reduce((w,_)=>(w.set(_,0),w),new Map);d={field:D,value:u,layer:b,details:[],groupSummaries:m},M.set(u,d)}return l.value&&l.value.forEach(m=>{if(d){const w=d.groupSummaries.get(m)||0;d.groupSummaries.set(m,w+I[m])}}),d.details.push(I),M},P),b<V.length-1&&P.forEach((M,I)=>{M.nestGroup=new Map,v(M.nestGroup,M.details,b+1,V),M.details=[]}))}function f(P){const T=[];return P.forEach(b=>{const V={__fv_data_grid_group_collapse__:!1,__fv_data_grid_group_field__:b.field,__fv_data_grid_group_layer__:b.layer,__fv_data_grid_group_row__:!0,__fv_data_grid_group_value__:b.value};let D=0;if(T.push(V),b.nestGroup){const M=f(b.nestGroup);T.push(...M),D+=M.length}if(b.details&&b.details.length&&(T.push(...b.details),D+=b.details.length),s.value){const M={__fv_data_grid_group_field__:b.field,__fv_data_grid_group_layer__:b.layer,__fv_data_grid_group_summary__:!0};M[t.value]=`summary_of_${b.field}_${b.value}`,M[b.field]=Array.from(b.groupSummaries.entries()).reduce((I,[j,u])=>`${I} ${j} total:${u} `,""),T.push(M)}b.groupSummaries&&b.groupSummaries.size&&b.groupSummaries.forEach((M,I)=>{V[I]=M}),V[t.value]=`group_of_${b.field}_${b.value}`,V[b.field]=`${b.field}:${b.value} (${D})`}),T.forEach((b,V)=>{b.__fv_data_index__=V}),T}function p(P,T){if(!P||P.length===0)return T;const b=P.join(",");return b!==c&&(r.clear(),i=[],c=b,v(r,T,0,P),i=f(r)),i}function g(P,T,b,V,D){const M=P.__fv_data_grid_group_collapse__,I=P.__fv_data_grid_group_field__,j=P.__fv_data_grid_group_value__,u=P.__fv_data_index__,d=P.__fv_data_grid_group_layer__,m={collapse:M,data:{},dataIndex:u,groupField:I,groupValue:j,layer:d,index:b,pre:T,top:V,type:en.group,setRef:C=>{m.ref=C}},w={colSpan:0,rowSpan:0,index:-1,field:t.value,data:P[t.value],parent:m,mode:Xe.readonly,getEditor:C=>C.data,setRef:C=>{if(C){const B=w.parent;w.cellHeight!==C.offsetHeight&&(w.cellHeight=C.offsetHeight),w.cellHeight&&w.cellHeight>(B.height||0)&&(B.height=w.cellHeight,P.__fv_data_height__=B.height);const A=B.pre;if(A){const S=(A.__fv_data_position__||0)+(A.__fv_data_height__||0);B.top=S,P.__fv_data_position__=S}}},update:()=>{}};m.data[t.value]=w;const _={colSpan:D.length,rowSpan:1,index:1,field:I,data:P[I],parent:m,mode:Xe.readonly,getEditor:C=>C.data,setRef:C=>{if(C){const B=_.parent;_.cellHeight!==C.offsetHeight&&(_.cellHeight=C.offsetHeight),_.cellHeight&&_.cellHeight>(B.height||0)&&(B.height=_.cellHeight,P.__fv_data_height__=B.height);const A=B.pre;if(A){const S=(A.__fv_data_position__||0)+(A.__fv_data_height__||0);B.top=S,P.__fv_data_position__=S}}},update:()=>{}};if(m.data[I]=_,a.value){let C=_.colSpan;const B=l.value.reduce((A,S)=>(A.set(S,!0),A),new Map);D.reduce((A,S,y)=>{if(B.has(S.field)){const O={colSpan:1,rowSpan:1,index:y,field:S.field,data:P[S.field],parent:m,mode:Xe.readonly,getEditor:H=>H.data,setRef:H=>{if(H){const q=O.parent;O.cellHeight!==H.offsetHeight&&(O.cellHeight=H.offsetHeight),O.cellHeight&&O.cellHeight>(q.height||0)&&(q.height=O.cellHeight,P.__fv_data_height__=q.height);const Y=q.pre;if(Y){const te=(Y.__fv_data_position__||0)+(Y.__fv_data_height__||0);q.top=te,P.__fv_data_position__=te}}},update:()=>{}};m.data[S.field]=O,C-1>y&&(C=y)}return A},m),_.colSpan=C}return m}function E(P,T,b,V,D){const M=P.__fv_data_grid_group_field__,I=P.__fv_data_index__,j=P.__fv_data_grid_group_layer__,u={data:{},dataIndex:I,groupField:M,groupValue:null,layer:j,index:b,pre:T,top:V,type:en.summary,setRef:w=>{u.ref=w}},d={colSpan:0,rowSpan:0,index:-1,field:t.value,data:P[t.value],parent:u,mode:Xe.readonly,getEditor:w=>w.data,setRef:w=>{if(w){const _=d.parent;d.cellHeight!==w.offsetHeight&&(d.cellHeight=w.offsetHeight),d.cellHeight&&d.cellHeight>(_.height||0)&&(_.height=d.cellHeight,P.__fv_data_height__=_.height);const C=_.pre;if(C){const B=(C.__fv_data_position__||0)+(C.__fv_data_height__||0);_.top=B,P.__fv_data_position__=B}}},update:()=>{}};u.data[t.value]=d;const m={colSpan:D.length,rowSpan:1,index:1,field:M,data:P[M],parent:u,mode:Xe.readonly,getEditor:w=>w.data,setRef:w=>{if(w){const _=m.parent;m.cellHeight!==w.offsetHeight&&(m.cellHeight=w.offsetHeight),m.cellHeight&&m.cellHeight>(_.height||0)&&(_.height=m.cellHeight,P.__fv_data_height__=_.height);const C=_.pre;if(C){const B=(C.__fv_data_position__||0)+(C.__fv_data_height__||0);_.top=B,P.__fv_data_position__=B}}},update:()=>{}};return u.data[M]=m,u}function R(P){return{"f-icon":!0,"f-icon-arrow-chevron-down":!0,"fv-grid-group-row-icon-collapse":P.collapse}}return{collpaseGroupIconClass:R,renderGroupedData:p,renderGroupRow:g,renderSummaryRow:E}}function uf(e){var M,I;const t=new Map,n=new Map,o=N(((M=e.group)==null?void 0:M.groupFields)||[]),l=N(((I=e.group)==null?void 0:I.enable)||!1),a=N(e.data),s=Ls(e),r=N(e.summary),i=F(()=>{const j=r.value;return(j==null?void 0:j.groupFields)||[]}),c=i.value.reduce((j,u)=>(j.set(u,0),j),new Map),v=F(()=>a.value.length),f=N(e.pagination),p=F(()=>{var j;return((j=f.value)==null?void 0:j.size)||a.value.length}),g=N(1);function E(){let j=a.value;l.value&&(j=s.renderGroupedData(o.value,a.value));const u=(g.value-1)*p.value,d=Math.min(u+p.value,v.value);let m=0;const w=[];for(let _=u;_<d;_++){const C=j[_];C.__fv_data_grid_group_row__?(m=0,C.__fv_data_index__=""):C.__fv_data_grid_group_summary__?C.__fv_data_index__="":(m++,C.__fv_data_index__=m),C.__fv_index__=_,i.value.forEach(B=>{const A=c.get(B)||0;c.set(B,A+C[B])}),w.push(C)}return w}const R=N(E());function P(j,u=!1){const d=u?E():R.value;return R.value=d.filter((m,w)=>j.reduce((_,C)=>_&&C(m),!0)).map((m,w)=>{if(m.__fv_data_grid_group_row__){const _=`group_of_${m.__fv_data_grid_group_field__}_${m.__fv_data_grid_group_value__}`;m.__fv_data_grid_group_collapse__=!!t.get(_)}return m.__fv_index__=w,m}),R.value}function T(j,u){const d=`group_of_${j}_${u}`;t.set(d,!0);const m=w=>w[j]!==u;return n.set(`collapse_${j}_${u}`,m),P(Array.from(n.values()))}function b(j,u){const d=`group_of_${j}_${u}`;return t.set(d,!1),n.delete(`collapse_${j}_${u}`),P(Array.from(n.values()),!0)}function V(j,u,d){return(j&&j.length?R.value.filter((w,_)=>j.reduce((C,B)=>C&&B(w),!0)):R.value).slice(u,d)}function D(j){if(j*p.value<v.value){g.value=j;const d=E();R.value=d}}return{collapse:T,dataView:R,expand:b,getRange:V,navigatePageTo:D,summaries:c,totalItems:v}}function cf(e){return h(kn("f-date-picker"),{modelValue:e.data,onDatePicked:t=>e.update(t)},null)}function ff(e){const t=F(()=>({height:"100%",resize:"none"}));return h("textarea",{class:"form-control",name:"text-area-cell-editor",onInput:n=>{var o;return e.update((o=n.target)==null?void 0:o.value)},style:t.value,title:e.data,value:e.data},null)}function Us(e){return h("input",{class:"form-control",name:"text-cell-editor",title:e.data,type:"text",value:e.data,onChange:t=>{var n;return e.update((n=t.target)==null?void 0:n.value)}},null)}function df(e){var v;const t=N(e.editable),n=N(((v=e.rowOption)==null?void 0:v.wrapContent)||!1);Ee(()=>e.editable,()=>{t.value=e.editable});const o=new Map([["boolean","checkbox"],["datetime","date-picker"],["number","text-editor"],["string","text-editor"],["text","text-area"]]),l=new Map([["checkbox",Us],["date-picker",cf],["text-editor",Us],["text-area",ff]]);let a;function s(f){f.mode=Xe.editing,a=f}function r(f){f.mode=Xe.editable}function i(f,p){t.value&&p.mode===Xe.editable&&a!==p&&(a&&r(a),s(p))}function c(f,p){const g=p.dataType;let E=p.editor||o.get(g)||"text-editor";!n.value&&E==="text-area"&&(E="text-editor");const R=l.get(E);return R?R(f):f.data}return{getEditor:c,onClickCell:i}}function pf(e,t,n,o,l,a,s,r,i,c){const{calculateCellPositionInRow:v,cellKey:f,cellPosition:p,rowKey:g,rowPosition:E,rowSpanCellPosition:R,groupCellPosition:P,summaryCellPosition:T}=n,{collpaseGroupIconClass:b}=a,{gridRowClass:V,onClickRow:D,onMouseoverRow:M}=s,{onClickCell:I}=l,{toggleGroupRow:j}=r,{columnContext:u,hasLeftFixedColumn:d,hasRightFixedColumn:m}=o,{onMouseDownScrollThumb:w,onWheel:_,dataGridWidth:C,gridDataStyle:B,gridMergedDataStyle:A,gridSideStyle:S,viewPortHeight:y,viewPortWidth:O,horizontalScrollThumbStyle:H,leftFixedGridDataStyle:q,leftFixedGridMergedDataStyle:Y,rightFixedGridDataStyle:te,rightFixedGridMergedDataStyle:le,verticalScrollThumbStyle:fe}=i;function se($,U){U.collapse=!U.collapse,c.value=j(U.collapse?"collapse":"expand",U,c.value)}function Z($,U){const z=[];if($.groupField&&U[$.groupField]){for(let Q=0;Q<=$.layer;Q++)z.push(h("div",{class:"fv-grid-group-row-icon",onClick:W=>se(W,$)},[h("span",{class:b($)},null)]));const G=$.data[$.groupField];z.push(h("div",{ref:G.setRef,key:f($,$.layer+1),class:"fv-grid-cell",style:P(G,U,$.layer)},[G.data])),Object.values($.data).filter(Q=>Q.field!==$.groupField&&Q.colSpan!==0).forEach(Q=>{z.push(h("div",{ref:Q.setRef,key:f($,Q.index),class:"fv-grid-cell",style:p(Q,U)},[Q.data]))})}return z}function oe($,U){return $.layer>-1&&h("div",{ref:$.setRef,key:g($),class:V($),style:E($),onClick:z=>D(z,$),onMouseover:z=>M(z,$)},[Z($,U)])}function ie($,U){const z=[];if($.groupField&&U[$.groupField]){const G=$.data[$.groupField];z.push(h("div",{ref:G.setRef,key:f($,$.layer+1),class:"fv-grid-cell",style:T(G,U,$.layer)},[G.data]))}return z}function ye($,U){return $.layer>-1&&h("div",{ref:$.setRef,key:g($),class:V($),style:E($),onClick:z=>D(z,$),onMouseover:z=>M(z,$)},[ie($,U)])}function _e($,U){return h("div",{ref:$.setRef,key:g($),class:V($),style:E($),onClick:z=>D(z,$),onMouseover:z=>M(z,$)},[Object.values($.data).filter(z=>U[z.field]&&z.rowSpan===1).map(z=>h("div",{ref:z.setRef,key:f($,z.index),class:"fv-grid-cell",style:p(z,U),onClick:G=>I(G,z)},[z.mode===Xe.editing?z.getEditor(z):z.data]))])}const pe=[_e,oe,ye];function Te($,U){const z=v($);return c.value.map(G=>pe[G.type](G,z))}function we($){const U=v($);return c.value.map(z=>Object.values(z.data).filter(G=>U[G.field]&&G.rowSpan>1).map(G=>h("div",{key:f(z,G.index),class:"fv-grid-cell fv-grid-merged-cell",style:R(z,G,U)},[G.data])))}function x(){return h("div",{class:"fv-grid-content-left-fixed"},[h("div",{class:"fv-grid-data",style:q.value},[Te(u.value.leftColumns)]),h("div",{class:"fv-grid-merge-date",style:Y.value},[we(u.value.leftColumns)])])}function k(){return h("div",{ref:t,class:"fv-grid-content-primary"},[h("div",{class:"fv-grid-data",style:B.value},[Te(u.value.primaryColumns)]),h("div",{class:"fv-grid-merge-date",style:A.value},[we(u.value.primaryColumns)])])}function L(){return h("div",{class:"fv-grid-content-right-fixed"},[h("div",{class:"fv-grid-data",style:te.value},[Te(u.value.rightColumns)]),h("div",{class:"fv-grid-merge-date",style:le.value},[we(u.value.rightColumns)])])}function K(){const $=[];return d.value&&$.push(x()),$.push(k()),m.value&&$.push(L()),$}return{renderDataArea:K}}function hf(e,t,n,o,l,a){const s=N(-1),r=N(0),i=N(!1);let c="";const v=F(()=>({display:i.value?"block":"none",left:`${r.value}px`})),f=F(()=>({display:i.value?"block":"none"}));function p(R){r.value=R.clientX-R.target.parentElement.offsetLeft}function g(R){const P=t.value.primaryColumns.find(T=>T.field===c)||t.value.leftColumns.find(T=>T.field===c)||t.value.rightColumns.find(T=>T.field===c);if(P){const T=R.clientX-R.target.parentElement.offsetLeft;P.actualWidth=(P.actualWidth||0)+(T-s.value),o.calculateColumnHeaders(t),o.calculateColumnsWidth(t)}r.value=0,i.value=!1,l.reCalculateVisualDataRows(),document.removeEventListener("mousemove",p),document.body.style.userSelect="",c=""}function E(R,P){c=P,i.value=!0;const T=R.path.find(b=>b.className.split(" ")[0]==="fv-grid");r.value=R.clientX-T.offsetLeft,s.value=R.clientX-T.offsetLeft,document.addEventListener("mousemove",p),document.addEventListener("mouseup",g),document.body.style.userSelect="none"}return{onClickColumnResizeBar:E,resizeHandleStyle:v,resizeOverlayStyle:f}}function vf(e,t,n,o,l,a,s){const{showRowCheckbox:r,showRowNumer:i,sidebarCornerCellStyle:c}=l,{columnContext:v,hasLeftFixedColumn:f,hasRightFixedColumn:p}=n,{onClickColumnResizeBar:g,resizeHandleStyle:E,resizeOverlayStyle:R}=hf(e,v,t,o,a),{gridHeaderColumnsStyle:P,leftFixedGridHeaderColumnsStyle:T,rightFixedGridHeaderColumnsStyle:b}=a,V=v.value.defaultColumnWidth,D=32,M=new Map([[0,0]]);function I(S,y){const O=M.get(y)||0,H={height:`${S.depth*D}px`,left:`${S.left}px`,top:`${(S.layer-1)*D}px`,width:`${S.actualWidth}px`};return v.value.headerDepth>1&&(H["line-height"]=`${S.depth*D}px`),M.set(y+1,O+(S.actualWidth||V)),H}const j=F(()=>({"fv-grid-header":!0,"fv-grid-header-group-columns":v.value.headerDepth>1})),u=F(()=>({height:`${v.value.headerDepth*D}px`}));function d(S,y){return h("div",{class:"fv-grid-header-cell",style:I(S,y)},[S.title,S.resizable&&h("span",{class:"fv-column-resize-bar",onMousedown:O=>g(O,S.field)},null)])}function m(S){return S.map((y,O)=>{const H=[];if(H.push(d(y,O)),y.children&&y.children.length){const q=m(y.children);H.push(...q)}return H})}function w(){return h("div",{class:"fv-grid-header-left-fixed"},[h("div",{class:"fv-grid-header-columns",style:T.value},[m(v.value.leftHeaderColumns)])])}function _(){return h("div",{class:"fv-grid-header-right-fixed"},[h("div",{class:"fv-grid-header-columns",style:b.value},[m(v.value.rightHeaderColumns)])])}function C(){var S;return h("div",{class:"fv-grid-header-corner",style:c.value},[r.value&&h("div",{class:"custom-control custom-checkbox f-checkradio-single fv-grid-sidebar-row-checkbox"},[h("input",{id:"sidebar_checkall",title:"sidebar_checkall",type:"checkbox",class:"custom-control-input"},null),h("label",{class:"custom-control-label",for:"sidebar_checkall"},null)]),i.value&&((S=e.rowNumber)==null?void 0:S.heading)])}function B(){return h("div",{class:j.value,style:u.value},[(r.value||i.value)&&C(),f.value&&w(),h("div",{class:"fv-grid-header-primary"},[h("div",{class:"fv-grid-header-columns",style:P.value},[m(v.value.primaryHeaderColumns)])]),p.value&&_()])}function A(){return h(Pe,null,[h("div",{class:"fv-datagrid-resize-overlay",style:R.value},null),h("div",{class:"fv-datagrid-resize-proxy",style:E.value},null)])}return{renderGridHeader:B,renderGridColumnResizeOverlay:A}}function gf(e,t){const n=F(()=>1e4);function o(a){t.navigatePageTo(a)}function l(){return h("div",{class:"fv-datagrid-pagination"},[h(kn("f-pagination"),{mode:"default",totalItems:n.value,onPageIndexChanged:o},null)])}return{renderDataGridPagination:l}}function mf(e,t,n,o){const{onMouseoverRow:l,sidebarRowClass:a}=t,{showRowCheckbox:s,showRowNumer:r,sidebarCellPosition:i,sidebarWidth:c}=n,{gridSideStyle:v}=o;function f(R){return h("div",{class:"custom-control custom-checkbox f-checkradio-single fv-grid-sidebar-row-checkbox"},[h("input",{id:`${R.dataIndex}`,title:`${R.dataIndex}`,type:"checkbox",class:"custom-control-input"},null),h("label",{class:"custom-control-label",for:`${R.dataIndex}`},null)])}function p(R){return h("div",{class:"fv-grid-sidebar-row-number",onMouseover:P=>l(P,R)},[R.dataIndex])}function g(R){return(s.value||r.value)&&R.value.map(P=>h("div",{class:a(P),style:i(P)},[s.value&&f(P),r.value&&p(P)]))}function E(R){return h("div",{class:"fv-grid-content-side"},[h("div",{class:"fv-grid-side",style:v.value},[g(R)])])}return{renderDataGridSidebar:E}}function yf(e,t,n){const{columnContext:o}=n,l=N(e.summary),a=F(()=>{const r=l.value;return r&&r.enable&&r.groupFields&&r.groupFields.length>0});function s(){return a.value&&h("div",{class:"fv-datagrid-summary"},[h("div",{class:"fv-datagird-summary-panel"},[h("span",{class:"fv-datagrid-summary-title"},[ct("\u5F53\u9875\u5408\u8BA1")]),h("div",{class:"fv-datagrid-summary-content"},[o.value.summaryColumns.map(r=>h("div",{class:"fv-datagrid-summary-field"},[h("span",{class:"fv-datagrid-summary-field-title"},[`${r.title}:`]),h("span",{class:"fv-datagrid-summary-field-value"},[t.summaries.get(r.field)])]))])])])}return{renderDataGridSummery:s}}function bf(e,t,n){const{horizontalScrollThumbStyle:o,onMouseDownScrollThumb:l}=n;function a(){return h("div",{class:"fv-grid-horizontal-scroll"},[h("div",{class:"fv-grid-horizontal-scroll-thumb",style:o.value,onMousedown:s=>l(s,t,"horizontal")},null)])}return{renderHorizontalScrollbar:a}}function wf(e,t,n){const{verticalScrollThumbStyle:o,onMouseDownScrollThumb:l}=n;function a(){return h("div",{class:"fv-grid-vertical-scroll"},[h("div",{class:"fv-grid-vertical-scroll-thumb",style:o.value,onMousedown:s=>l(s,t,"vertical")},null)])}return{renderVerticalScrollbar:a}}const Kd="",zs=me({name:"FDataGrid",props:Jc,emits:[],setup(e){var le;const t=N(e.columns),n=20,o=0,l=N(),a=N(),s=N(e.showStripe),r=N(!1),i=N(((le=e.rowOption)==null?void 0:le.wrapContent)||!1),c=uf(e),v=lf(e),{columnContext:f}=v,p=sf(e,f),{calculateColumnsSize:g}=p,E=Ls(e),R=df(e),P=ef(e,t,E,c,n,o,R),{getVisualData:T}=P,b=tf(e,f),V=rf(e),{sidebarWidth:D}=V,M=N(T(0,n+o)),I=nf(e,c,M,f,P,n,o,D),{onWheel:j,dataGridWidth:u,viewPortHeight:d,viewPortWidth:m}=I,w=of(e),_=F(()=>({"fv-grid":!0,"fv-datagrid-strip":s.value})),C=F(()=>({"fv-grid-content":!0,"fv-grid-content-hover":r.value,"fv-grid-wrap-content":i.value})),{renderDataArea:B}=pf(e,a,b,v,R,E,w,P,I,M),{renderGridHeader:A,renderGridColumnResizeOverlay:S}=vf(e,l,v,p,V,I),{renderDataGridPagination:y}=gf(e,c),{renderDataGridSidebar:O}=mf(e,w,V,I),{renderDataGridSummery:H}=yf(e,c,v),{renderHorizontalScrollbar:q}=bf(e,l,I),{renderVerticalScrollbar:Y}=wf(e,l,I);function te(fe){var se,Z,oe;d.value=((se=a.value)==null?void 0:se.clientHeight)||0,m.value=((Z=a.value)==null?void 0:Z.clientWidth)||0,u.value=((oe=l.value)==null?void 0:oe.clientWidth)||0}return Gt(()=>{l.value&&(window.addEventListener("resize",te),g(f,l.value,m),ut(()=>{l.value&&(u.value=l.value.clientWidth),a.value&&(m.value=a.value.clientWidth,d.value=a.value.clientHeight)}))}),Kt(()=>{window.removeEventListener("resize",te)}),Ee(m,()=>{l.value&&g(f,l.value,m)}),()=>h("div",{class:_.value,style:"height:600px",onWheel:j},[A(),h("div",{ref:l,class:C.value,onMouseover:()=>{r.value=!0},onMouseleave:()=>{r.value=!1}},[O(M),B(),q(),Y()]),H(),y(),S()])}}),_f={install(e){e.component(zs.name,zs)}},Co=["Sun.","Mon.","Tue.","Wed.","Thur","Fri.","Sat."];var Ge=(e=>(e[e.previous=1]="previous",e[e.current=2]="current",e[e.next=3]="next",e))(Ge||{});const xf={dates:{Type:Array,default:[]},daysInWeek:{Type:Array,default:Co},enableKeyboadNavigate:{Type:Boolean,default:!0},enableMarkCurrent:{Type:Boolean,default:!0},enablePeriod:{Type:Boolean,default:!1},firstDayOfTheWeek:{Type:Boolean,default:"Sun."},selected:{Type:Object,default:null},selectedPeriod:{Type:Object,default:null},selectedWeek:{Type:Object,default:null},selectMode:{Type:String,default:"day"},showWeekNumber:{Type:Boolean,default:!1},weekTitle:{Type:String,default:"Week"}},Yd="";var pt=(e=>(e[e.enter=13]="enter",e[e.esc=27]="esc",e[e.space=32]="space",e[e.leftArrow=37]="leftArrow",e[e.upArrow=38]="upArrow",e[e.rightArrow=39]="rightArrow",e[e.downArrow=40]="downArrow",e[e.tab=9]="tab",e[e.shift=16]="shift",e))(pt||{});function El(){function e(t){const n=t.key||t.keyCode;return n==="Enter"||n===13?13:n==="Escape"||n===27?27:n===" "||n===32?32:n==="ArrowLeft"||n===37?37:n==="ArrowUp"||n===38?38:n==="ArrowRight"||n===39?39:n==="ArrowDown"||n===40?40:n==="Tab"||n===9?9:n==="Shift"||n===16?16:-1}return{getKeyCodeFromEvent:e}}function tn(){function e(){return{year:0,month:0,day:0}}function t(c){return new Date(c.year||0,c.month?c.month-1:0,c.day||0,c.hour?c.hour:0,c.minute?c.minute:0,c.second?c.second:0,0)}function n(c){const v=new Date;return c.year||(c.year=v.getFullYear()),c.month||(c.month=v.getMonth()+1),c.day||(c.day=1),new Date(c.year,c.month-1,c.day,c.hour?c.hour:0,c.minute?c.minute:0,c.second?c.second:0,0)}function o(c){return new Date(c.year||1,(c.month||1)-1,c.day,c.hour?c.hour:0,c.minute?c.minute:0,c.second?c.second:0,0).getDay()}function l(c){return Co.indexOf(c)}function a(c){return t(c).getTime()}function s(c){return Math.round(a(c)/1e3)}function r(c,v,f){const p=a(v),g=a(f),E=a(c);return g-E>E-p?v:f}function i(){const c=new Date;return{year:c.getFullYear(),month:c.getMonth()+1,day:c.getDate(),hour:c.getHours(),minute:c.getMinutes(),second:c.getSeconds()}}return{emptyDate:e,getDate:t,getDate2:n,getDayNumber:o,getEpocTime:s,getNearDate:r,getWeekdayIndex:l,getTimeInMilliseconds:a,getToday:i}}function Rn(){const{getTimeInMilliseconds:e}=tn();function t(f){return f&&f.year!==0&&f.month!==0&&f.day!==0}function n(f){return f&&f.year!==0&&f.month!==0}function o(f){return f&&f.year!==0}function l(f,p){return e(f)<e(p)}function a(f,p){return e(f)<=e(p)}function s(f,p){return e(f)===e(p)}function r(f,p){const g=e(p);return e(f.from)===g||e(f.to)===g}function i(f,p){return!p||!t(p.to)||!t(p.from)?!1:a(p.from,f)&&a(f,p.to)}function c(f,p){return t(p)&&e(f)>=e(p)}function v(f,p){return t(p)&&e(f)<=e(p)}return{isDateEarlier:l,equal:s,inPeriod:i,isPoint:r,equalOrEarlier:a,isInitializedDate:t,isInitializedMonth:n,isInitializedYear:o,isMonthDisabledByDisableSince:c,isMonthDisabledByDisableUntil:v}}const Ol=me({name:"FDatePickerCalendarView",props:xf,emits:["click","clickWeek","keyDown","mouseEnter","mouseLeave"],setup(e,t){const n=N(e.dates),o=N(e.daysInWeek),l=N(e.enableKeyboadNavigate),a=N(e.enableMarkCurrent),s=N(e.enablePeriod),r=N(e.firstDayOfTheWeek),i=N(e.selected),c=N(e.selectedPeriod),v=N(e.selectedWeek),f=N(e.selectMode),p=N(e.showWeekNumber),g=N(e.weekTitle),E=F(()=>p.value&&r.value==="Mon");Ee(()=>e.dates,()=>{n.value=e.dates}),Ee(()=>e.selected,()=>{i.value=e.selected});const{equal:R,inPeriod:P,isInitializedDate:T,equalOrEarlier:b,isPoint:V}=Rn(),{getKeyCodeFromEvent:D}=El(),M=y=>{const O=!!v.value&&y.numberInTheYear===v.value.numberInTheYear&&y.year===v.value.year;return{"f-datepicker-selectWeek":f.value==="week","f-datepicker-selectedWeek":f.value==="week"&&O}},I=F(()=>p.value&&r.value==="Mon");function j(y){return P(y,c.value)}function u(y){return!!c.value&&V(c.value,y)}function d(y){return!!i.value&&R({year:i.value.year,month:i.value.month,day:i.value.day},y)}const m=(y,O,H)=>{const q=f.value!=="week"&&y.tag===Ge.current&&(s.value&&j(y.date)&&!u(y.date)||y.range),Y=y.tag===Ge.previous||y.tag===Ge.next,te={"f-datepicker-range":q,"f-datepicker-no-currmonth":Y,"f-datepicker-disabled":y.disable,"f-datepicker-singledate":!y.disable},le=`d_${O}_${H}`;return te[le]=!0,te},w=y=>{const O=f.value!=="week"&&y.tag===Ge.current&&(!s.value&&d(y.date)||s.value&&u(y.date)),H=y.isCurrent&&a.value,q=y.highlight&&(y.tag===Ge.previous||y.tag===Ge.next||y.disable);return{"f-datepicker-date":!0,"f-datepicker-selected":O,"f-datepicker-current":H,"f-datepicker-opacity":q,"f-datepicker-highlight":y.highlight,"f-datepicker-disabled":y.disable}};function _(y,O){O.disable||f.value==="week"||(y.stopPropagation(),t.emit("click",O.date))}function C(y,O){f.value==="week"&&(y.stopPropagation(),t.emit("clickWeek",O))}function B(y,O){const H=D(y);H!==pt.tab&&(y.preventDefault(),H===pt.enter||H===pt.space?_(y,O):l.value&&t.emit("keyDown",O.date))}function A(y){c.value&&T(c.value.from)&&!T(c.value.to)&&(n.value.forEach(O=>{O.days.forEach(H=>{H.range=!!c.value&&(b(c.value.from,H.date)&&b(H.date,y.date)||b(H.date,c.value.from)&&b(y.date,H.date))})}),t.emit("mouseEnter",y.date))}function S(){n.value.forEach(y=>{y.days.forEach(O=>{O.range=!1})}),t.emit("mouseLeave")}return()=>h(Pe,null,[h("div",{class:"f-datepicker-table-wrapper"},[h("table",{class:"f-datepicker-table",cellpadding:"0"},[h("thead",null,[h("tr",null,[E.value&&h("th",{class:"f-datepicker-weeknbr-title"},[g.value]),o.value&&o.value.map(y=>h("th",{scope:"col",style:"padding-bottom: 8px;padding-top: 4px"},[y]))])]),h("tbody",null,[n.value&&n.value.map((y,O)=>h("tr",{class:M(y),onClick:H=>C(H,y)},[I.value&&h("td",{class:"f-datepicker-weeknbr"},[h("div",{class:"f-datepicker-date"},[y.numberInTheYear])]),y.days&&y.days.map((H,q)=>h("td",{id:`d_${O}_${q}`,tabindex:"0",class:m(H,O,q),onClick:Y=>_(Y,H),onKeydown:Y=>B(Y,H),onMouseenter:()=>A(H),onMouseleave:()=>S()},[H.marked&&H.marked.marked&&h("span",{class:"f-datepicker-markdate",style:{"background-color":H.marked.color}},null),h("div",{class:w(H)},[H.date.day])]))]))])])])])}}),Nf={activeMonth:{type:Object,require:!0},ariaLabelPrevMonth:{type:String,default:""},ariaLabelNextMonth:{type:String,default:""},dateFormat:{type:String,default:"yyyy-MM-dd"},disablePrePage:{type:Boolean,default:!1},disablePreRecord:{type:Boolean,default:!1},disableNextRecord:{type:Boolean,default:!1},disableNextPage:{type:Boolean,default:!1},years:{type:Array,default:[[{}]]},selectingMonth:{type:Boolean,default:!1},selectingYear:{type:Boolean,default:!1},selectMode:{type:String,default:"day"}},qd="",Sl=me({name:"FDatePickerCalendarNavbar",props:Nf,emits:["clickMonth","clickYear","prePage","preRecord","nextRecord","nextPage"],setup(e,t){return()=>{const n=N(e.ariaLabelPrevMonth),o=N(e.ariaLabelNextMonth),l=N(e.dateFormat),a=N(e.disablePrePage),s=N(e.disablePreRecord),r=N(e.disableNextRecord),i=N(e.disableNextPage),c=N(e.activeMonth),v=N(e.years),f=N(e.selectingMonth),p=N(e.selectingYear),g=N(e.selectMode),E=N(!0),R=N(!0);Ee(()=>e.activeMonth,()=>{var y,O,H,q;c.value={month:(y=e.activeMonth)==null?void 0:y.month,year:(O=e.activeMonth)==null?void 0:O.year,displayTextOfMonth:(H=e.activeMonth)==null?void 0:H.displayTextOfMonth,displayTextOfYear:(q=e.activeMonth)==null?void 0:q.displayTextOfMonth}});const P=F(()=>({"f-datepicker-header":!0,monthYearSelBarBorder:f.value||p.value})),T=F(()=>({"f-datepicker-header-btn":!0,"f-datepicker-header-btn-disabled":a.value})),b=F(()=>!f.value&&!p.value),V=F(()=>({"f-datepicker-header-btn":!0,"f-datepicker-header-btn-disabled":s.value})),D=F(()=>({"f-datepicker-header-btn":!0,"f-datepicker-header-btn-disabled":r.value})),M=F(()=>({"f-datepicker-header-btn":!0,"f-datepicker-header-btn-disabled":i.value})),I=F(()=>({"f-datepicker-header-btn":!0,"f-datepicker-yearLabel":E.value,"f-datepicker-labelBtnNotEdit":!E.value})),j=F(()=>({"f-datepicker-header-btn":!0,"f-datepicker-monthLabel":R.value,"f-datepicker-labelBtnNotEdit":!R.value})),u=F(()=>{const y=l.value?l.value.indexOf("yyyy"):0,O=l.value?l.value.indexOf("MM"):0;return y>O?"MM-yyyy":"yyyy-MM"});function d(y){y.stopPropagation(),t.emit("prePage")}function m(y){y.stopPropagation(),t.emit("preRecord")}function w(y){y.stopPropagation(),t.emit("clickYear")}function _(y){y.stopPropagation(),t.emit("clickMonth")}function C(y){y.stopPropagation(),y.stopPropagation(),t.emit("nextRecord")}function B(y){y.stopPropagation(),t.emit("nextPage")}function A(){return h("button",{type:"button",class:I.value,onClick:y=>{E.value&&w(y)},tabindex:E.value?"0":"-1",disabled:g.value==="year"},[p.value?v.value.length>3?v.value[0][1].year+" - "+v.value[3][1].year:"":c.value.displayTextOfYear])}function S(){return!p.value&&g.value!=="month"&&h("button",{type:"button",class:j.value,onClick:y=>{R.value&&_(y)},tabindex:R.value?"0":"-1"},[c.value.displayTextOfMonth])}return h("div",{class:P.value},[h("div",{class:"f-datepicker-prev-btn"},[h("button",{title:"prePage",type:"button",class:T.value,onClick:d},[h("i",{class:"k-icon k-i-arrow-double-60-left"},null)]),b.value&&h("button",{type:"button","aria-label":n.value,class:V.value,onClick:m},[h("i",{class:"k-icon k-i-arrow-chevron-left"},null)])]),h("div",{class:"f-datepicker-monthYearText"},[u.value==="yyyy-MM"?[A(),S()]:[S(),A()]]),h("div",{class:"f-datepicker-next-btn"},[b.value&&h("button",{type:"button","aria-label":o.value,class:D.value,onClick:C},[h("i",{class:"k-icon k-i-arrow-chevron-right"},null)]),h("button",{title:"nextPage",type:"button",class:M.value,onClick:B},[h("i",{class:"k-icon k-i-arrow-double-60-right"},null)])])])}}}),Gs={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},Cf={top:{type:Number,default:0},left:{type:Number,default:0},position:{type:String,default:"bottom"},enablePeriod:{type:Boolean,default:!1},dateFormat:{type:String,default:"MM-dd-yyyy"},dates:{type:Array,default:[]},daysInWeek:{type:Array,default:Co},disableDates:{Type:Array,default:[]},disablePeriod:{Type:Array,default:[]},disableSince:{Type:Object,default:{year:0,month:0,day:0}},disableWeekdays:{Type:Array,default:[]},disableWeekends:{Type:Boolean,default:!1},disableUntil:{Type:Object,default:{year:0,month:0,day:0}},enableKeyboadNavigate:{type:Boolean,default:!0},enableMarkCurrent:{type:Boolean,default:!0},firstDayOfTheWeek:{type:String,default:"Sun."},highlightDates:{Type:Array,default:[]},highlightSaturday:{Type:Boolean,default:!1},highlightSunday:{Type:Boolean,default:!1},maxYear:{Type:Number,default:2500},minYear:{Type:Number,default:1},months:{type:Array,default:[[]]},nameOfMonths:{Type:Object,default:Gs},secondaryDates:{type:Array,default:[]},secondaryMonths:{type:Array,default:[[]]},selectedDate:{type:Object,default:null},selectedMonth:{type:Object,default:null},selectedPeriod:{type:Object,default:null},selectedWeek:{type:Object,default:null},selectMode:{type:String,default:"day"},showWeekNumber:{type:Boolean,default:!1},weekTitle:{type:String,default:"Week"},years:{Type:Array,default:[[]]}},Tl=me({name:"FDatePickerMonthView",props:{months:{Type:Array,default:[[]]},enableMarkCurrent:{Type:Boolean,default:!1},enableKeyboadNavigate:{Type:Boolean,default:!0},enablePeriod:{Type:Boolean,default:!1},selected:{Type:Object,default:null},selectedPeriod:{Type:Object,default:null}},emits:["click","keyDown","mouseEnter","mouseLeave"],setup(e,t){const n=N(e.months),o=N(e.enableMarkCurrent),l=N(e.enableKeyboadNavigate),a=N(e.enablePeriod),s=N(e.selected),r=N(e.selectedPeriod),{equal:i,inPeriod:c,isInitializedDate:v,equalOrEarlier:f}=Rn(),{getKeyCodeFromEvent:p}=El();Ee(()=>e.months,()=>{n.value=e.months}),Ee(()=>e.selected,()=>{s.value=e.selected});function g(M,I){M.stopPropagation(),!I.disable&&t.emit("click",I)}function E(M,I){const j=p(M);j!==pt.tab&&(M.preventDefault(),j===pt.enter||j===pt.space?g(M,I):l.value&&t.emit("keyDown",I))}function R(M){r.value&&v(r.value.from)&&!v(r.value.to)&&(n.value.forEach(I=>{I.forEach(j=>{j.range=!!r.value&&(f(r.value.from,j.date)&&f(j.date,M.date)||f(j.date,r.value.from)&&f(M.date,j.date))})}),t.emit("mouseEnter",M))}function P(){n.value.forEach(M=>{M.forEach(I=>{I.range=!1})}),t.emit("mouseLeave")}function T(M){return!!s.value&&i({year:s.value.year,month:s.value.month},{year:M.year,month:M.month})}function b(M){return!!r.value&&(i({year:r.value.from.month},M)||i({year:r.value.to.month},M))}function V(M){return c(M,r.value)}const D=M=>({"f-datepicker-month-cell":!0,"f-datepicker-current":M.isCurrent&&o,"f-datepicker-selected":!a.value&&T(M.date)||a.value&&b(M.date),"f-datepicker-disabled":M.disable,"f-datepicker-range":V(M.date)||M.range});return()=>h("div",{class:"f-datepicker-table-wrapper"},[h("table",{class:"f-datepicker-table"},[h("tbody",null,[n.value&&n.value.map((M,I)=>h("tr",null,[M.map((j,u)=>h("td",{id:`m_${I}_${u}`,class:`m_${I}_${u}`,onClick:d=>g(d,j),onKeydown:d=>E(d,j),onMouseenter:()=>R(j),onMouseleave:()=>P(),tabindex:"0",style:"width: 33.3%"},[h("div",{class:"f-datepicker-month"},[h("span",{class:D(j)},[j.displayText])])]))]))])])])}}),Al=me({name:"FDatePickerYearView",props:{years:{Type:Array,default:[[]]},enableKeyboadNavigate:{Type:Boolean,default:!0},enableMarkCurrent:{Type:Boolean,default:!0},enablePeriod:{Type:Boolean,default:!1},selected:{Type:Object,default:null},selectedPeriod:{Type:Object,default:null}},emits:["click","keyDown","mouseEnter","mouseLeave"],setup(e,t){const n=N(e.years),o=N(e.enableMarkCurrent),l=N(e.enableKeyboadNavigate),a=N(e.enablePeriod),s=N(e.selected),r=N(e.selectedPeriod),{equal:i,inPeriod:c,isInitializedDate:v,equalOrEarlier:f}=Rn(),{getKeyCodeFromEvent:p}=El();Ee(()=>e.years,()=>{n.value=e.years}),Ee(()=>e.selected,()=>{s.value=e.selected});const g=(I,j)=>{const u=`y_${I}_${j}`,d={"f-datepicker-no-currmonth":I===0&&j===0||I===3&&j===2};return d[u]=!0,d};function E(I){return c(I,r.value)}function R(I){return!!s.value&&i({year:s.value.year},I)}function P(I){return!!r.value&&(i({year:r.value.from.year},I)||i({year:r.value.to.year},I))}const T=I=>({"f-datepicker-year-cell":!0,"f-datepicker-current":I.isCurrent&&o.value,"f-datepicker-selected":!r.value&&R(I.date)||a.value&&P(I.date),"f-datepicker-disabled":I.disable,"f-datepicker-range":E(I.date)||I.range});function b(I,j){I.stopPropagation(),!j.disable&&t.emit("click",j)}function V(I,j){const u=p(I);u!==pt.tab&&(I.preventDefault(),u===pt.enter||u===pt.space?b(I,j):l.value&&t.emit("keyDown",j))}function D(I){r.value&&v(r.value.from)&&!v(r.value.to)&&(n.value.forEach(j=>{j.forEach(u=>{u.range=!!r.value&&(f(r.value.from,u.date)&&f(u.date,I.date)||f(u.date,r.value.from)&&f(I.date,u.date))})}),t.emit("mouseEnter",I))}function M(){n.value.forEach(I=>{I.forEach(j=>{j.range=!1})}),t.emit("mouseLeave")}return()=>h("table",{class:"f-datepicker-table-wrapper"},[h("tbody",{class:"f-datepicker-table"},[n.value&&n.value.map((I,j)=>h("tr",null,[I.map((u,d)=>h("td",{id:"y_{yi}_{i}",class:g(j,d),onClick:m=>b(m,u),onKeydown:m=>V(m,u),onMouseenter:()=>D(u),onMouseleave:()=>M(),tabindex:"0"},[h("div",{class:"f-datepicker-year"},[h("span",{class:T(u)},[u.year])])]))]))])])}});function kl(){function e(l){return new Date(l.year||0,(l.month||1)-1,l.day,l.hour?l.hour:0,l.minute?l.minute:0,l.second?l.second:0,0).getDay()}function t(l){if(!l)return 1;if(!/^\d+$/.test(l.value))return-1;let a=Number(l.value);return(l.format.length===1&&l.value.length!==1&&a<10||l.format.length===1&&l.value.length!==2&&a>=10||l.format.length===2&&l.value.length>2)&&(a=-1),a}function n(l,a){if(l.value){for(let s=1;s<=12;s++)if(l.value.toLowerCase()===a[s].toLowerCase())return s}return-1}function o(l){const a=new Date(l.year||0,(l.month||1)-1,l.day,0,0,0,0);return a.setDate(a.getDate()+(a.getDay()===0?-3:4-a.getDay())),Math.round((a.getTime()-new Date(a.getFullYear(),0,4).getTime())/864e5/7)+1}return{getNumberByValue:t,getDayNumber:e,getMonthNumberByMonthName:n,getWeekNumber:o}}function Ef(e,t,n,o,l,a,s,r){const{getTimeInMilliseconds:i,getWeekdayIndex:c}=tn(),{isInitializedDate:v}=Rn(),{getDayNumber:f}=kl();function p(g){if(g.year&&g.year<e&&g.month===12||g.year&&g.year>t&&g.month===1)return!0;const E=i(g);if(v(o)&&E+24*60*60*1e3-1<i(o)||v(n)&&E>i(n))return!0;if(s){const P=f(g);if(P===0||P===6)return!0}const R=f(g);return!!(r.length>0&&r.find(T=>c(T)===R)||l.length>0&&l.find(T=>(T.year===0||T.year===g.year)&&(T.month===0||T.month===g.month)&&T.day===g.day)||a.length>0&&a.find(T=>v(T.from)&&v(T.to)&&E>=i(T.from)&&E<=i(T.to)))}return{isDisabledDate:p}}function Of(){const{getDayNumber:e}=kl();function t(o,l,a){let s=[];s=l.reduce((i,c)=>{const v=c.dates.map(f=>({date:f,color:c.color}));return[...i,...v]},s);const r=s.find(i=>(i.date.year===0||i.date.year===o.year)&&(i.date.month===0||i.date.month===o.month)&&i.date.day===o.day);if(r)return{marked:!0,color:r.color};if(a&&a.marked){const i=e(o);if(i===0||i===6)return{marked:!0,color:a.color}}return{marked:!1,color:""}}function n(o,l,a,s){const r=e(o);return l&&r===0||a&&r===6?!0:!!s.find(c=>(c.year===0||c.year===o.year)&&(c.month===0||c.month===o.month)&&c.day===o.day)}return{isHighlightedDate:n,isMarkedDate:t}}function Ks(){const{getTimeInMilliseconds:e}=tn(),{isInitializedDate:t}=Rn();function n(l,a){return t(a)&&e(l)<=e(a)}function o(l,a){return t(a)&&e(l)>=e(a)}return{isMonthDisabledByDisableSince:o,isMonthDisabledByDisableUntil:n}}function Pl(){const{getToday:e}=tn(),{isMonthDisabledByDisableSince:t,isMonthDisabledByDisableUntil:n}=Ks();function o(v){const f={displayTextOfMonth:"",month:0,year:0,displayTextOfYear:""};if(v){const p=v.match(/[^0-9]/),g=p&&p.length?p[0]:"",E=v.split(g);f.month=E[0].length===2?Number(E[0]):Number(E[1]),f.year=E[0].length===2?Number(E[1]):Number(E[0])}return f}function l(v,f){return new Date(f,v,0).getDate()}function a(v,f,p){return new Date(v,f-1,p,0,0,0,0)}function s(v,f){const p=a(f,v,1);return p.setMonth(p.getMonth()-1),l(p.getMonth()+1,p.getFullYear())}function r(v,f,p,g){const E=e(),R=[],{year:P}=f,T=3;for(let b=1;b<=12;b+=T){const V=[];for(let D=b;D<b+T;D++){const M=t({year:P,month:D,day:1},p)||n({year:P,month:D,day:l(D,P||0)},g);V.push({month:D,displayText:v[D],isCurrent:D===E.month&&P===E.year,disable:M,date:{year:P,month:D}})}R.push(V)}return R}function i(v,f){const p={year:v===12?f+1:f},g=v===12?1:v+1;return p.month=g,p}function c(v,f){const p={year:v===1?f-1:f},g=v===1?12:v-1;return p.month=g,p}return{daysInMonth:l,daysInPreMonth:s,generateMonths:r,parseDefaultMonth:o,getNextMonth:i,getPreviousMonth:c}}function Sf({isDisabledDate:e}){const{getToday:t}=tn(),{daysInMonth:n,daysInPreMonth:o,getNextMonth:l,getPreviousMonth:a}=Pl(),{isHighlightedDate:s,isMarkedDate:r}=Of(),{getWeekNumber:i}=kl();function c(g){const E=Co.indexOf(g);return E>0?7-E:0}function v(g,E,R){const P=new Date;P.setDate(1),P.setMonth(E-1),P.setFullYear(g);const T=P.getDay()+R;return T>=7?T-7:T}function f(g,E,R,P,T){return g===T.day&&E===T.month&&R===T.year&&P===Ge.current}function p(g,E,R,P,T,b,V,D,M){const I=[],j=t(),u=v(E,g,c(R)),d=n(g,E),m=o(g,E);let w=1,_=Ge.previous;for(let C=1;C<7;C++){const B=[];if(C===1){const S=m-u+1;for(let O=S;O<=m;O++){const H={year:g===1?E-1:E,month:g===1?12:g-1,day:O},q=f(O,g,E,_,j),Y=e(H),te=r(H,P,T),le=s(H,D,V,b);B.push({date:H,tag:_,isCurrent:q,disable:Y,marked:te,highlight:le})}_=Ge.current;const y=7-B.length;for(let O=0;O<y;O++){const H={year:E,month:g,day:w},q=f(w,g,E,_,j),Y=e(H),te=r(H,P,T),le=s(H,D,V,b);B.push({date:H,tag:_,isCurrent:q,disable:Y,marked:te,highlight:le}),w++}}else for(let S=1;S<=7;S++){w>d&&(w=1,_=Ge.next);const y={year:_===Ge.next&&g===12?E+1:E,month:_===Ge.current?g:_===Ge.next&&g<12?g+1:1,day:w},O=f(w,g,E,_,j),H=e(y),q=r(y,P,T),Y=s(y,D,V,b);B.push({date:y,tag:_,isCurrent:O,disable:H,marked:q,highlight:Y}),w++}const A=M&&R==="Mon."?i(B[0].date):0;I.push({days:B,numberInTheYear:A,year:E})}return I}return{generateCalendar:p}}function Tf(){const{getToday:e}=tn(),{daysInMonth:t}=Pl(),{isMonthDisabledByDisableSince:n,isMonthDisabledByDisableUntil:o}=Ks();function l(a,s,r,i,c,v){const f=[],p=a-a%10,{year:g,month:E}=s,R=e(),P=3,T=p+10;for(let b=p-1;b<T;b+=P){const V=[];for(let D=b;D<b+P;D++){const M=n({year:D,month:E,day:1},c)||o({year:D,month:E,day:t(E||0,D)},v),I=D<r||D>i;V.push({year:D,isCurrent:D===R.year,selected:D===g,disable:M||I,date:{year:D}})}f.push(V)}return f}return{generateYears:l}}const Zd="",Ys=me({name:"FDatePickerContainer",props:Cf,emits:["datePicked"],setup(e,t){const n=N(e.top),o=N(e.left),l=N(e.position),a=N(e.enablePeriod),s=N(e.selectMode),r=N(e.dateFormat),i=N(e.nameOfMonths),c=N([]),v=N(!1),f=N(""),p=N(!1),g=N(""),E=N(),R=N(!1),P=N(!1),T=N(!1),b=N(!1),V=N(!1),D=N(!1),M=N(!1),I=N(!1),j=N(e.secondaryDates),u=N(e.daysInWeek),d=N(e.enableKeyboadNavigate),m=N(e.enableMarkCurrent),w=N(e.firstDayOfTheWeek),_=N(e.showWeekNumber),C=N(e.selectedDate),B=N(e.selectedWeek),A=N(e.selectedPeriod),S=N(e.weekTitle),y=N(e.secondaryMonths),O=N(e.selectedMonth),H=N(e.minYear),q=N(e.maxYear),Y=N(e.disableSince),te=N(e.disableUntil),le=N(e.disableDates),fe=N(e.disablePeriod),se=N(e.disableWeekdays),Z=N(e.disableWeekends),oe=Ef(H.value,q.value,Y.value,te.value,le.value,fe.value,Z.value,se.value),{generateCalendar:ie}=Sf(oe),{getToday:ye}=tn(),{generateMonths:_e,getNextMonth:pe,getPreviousMonth:Te}=Pl(),{generateYears:we}=Tf(),x=ye(),k=N({year:x.year||1,month:x.month||1,displayTextOfMonth:i.value[x.month||"1"],displayTextOfYear:`${x.year}`}),L=x.month===12?(x.year||1)+1:x.year,K=(x.month||1)<12?(x.month||1)+1:1,$=N({year:L,month:K,displayTextOfMonth:i.value[x.month||"1"],displayTextOfYear:`${L}`}),U=F(()=>ie(k.value.month,k.value.year,w.value,[],{marked:!0,color:""},[],e.highlightSaturday,e.highlightSunday,_.value)),z=F(()=>_e(i.value,{year:k.value.year,month:k.value.month},Y.value,te.value)),G=F(()=>we(k.value.year,{year:k.value.year,month:k.value.month},H.value,q.value,Y.value,te.value)),Q=F(()=>{const ue={"f-datepicker-container":!0},De=`container-position-${l.value}`;return ue[De]=!0,ue});function W(){return""}const X=F(()=>({top:`${n.value}px`,left:`${o.value}px`,width:W()}));function ee(ue){}function ne(ue){ue.stopPropagation()}function ae(ue,De){const ve=k.value.year-(p.value?10:1),nn={year:ve,month:k.value.month,displayTextOfMonth:i.value[k.value.month||"1"],displayTextOfYear:`${ve}`};k.value=nn}function be(ue,De){const ve=Te(k.value.month,k.value.year),nn={year:ve.year||1,month:ve.month||1,displayTextOfMonth:i.value[ve.month||"1"],displayTextOfYear:`${ve.year}`};k.value=nn}function Ne(ue,De){const ve=pe(k.value.month,k.value.year),nn={year:ve.year||1,month:ve.month||1,displayTextOfMonth:i.value[ve.month||"1"],displayTextOfYear:`${ve.year}`};k.value=nn}function Ce(ue,De){const ve=k.value.year+1,nn={year:ve,month:k.value.month,displayTextOfMonth:i.value[k.value.month||"1"],displayTextOfYear:`${ve}`};k.value=nn}function Se(ue){v.value=!0,p.value=!1}function qe(ue){v.value=!1,p.value=!0}const Bt=F(()=>({"active-month":k.value,"date-format":r.value,"disable-pre-page":R.value,"disable-pre-record":P.value,"disable-next-record":T.value,"disable-next-page":b.value,years:G.value,"selecting-month":v.value,"selecting-year":p.value,"select-mode":s.value})),So=F(()=>({"active-month":$.value,"date-format":r.value,"disable-pre-page":V.value,"disable-pre-record":D.value,"disable-next-record":M.value,"disable-next-page":I.value,years:c.value,"selecting-month":f.value,"selecting-year":g.value,"select-mode":s.value}));function Vt(ue,De){return h(Sl,ft(De,{onPrePage:ve=>ae(),onPreRecord:ve=>be(),onNextRecord:ve=>Ne(),onNextPage:ve=>Ce(),onClickMonth:ve=>Se(),onClickYear:ve=>qe()}),null)}const $n=F(()=>!v.value&&!p.value&&!E.value||a.value&&s.value!=="week"&&!f.value&&!g.value&&!E.value),je=F(()=>v.value&&!p.value),et=F(()=>p.value&&!v.value),To=F(()=>({dates:U.value,daysInWeek:u.value,enableKeyboadNavigate:d.value,enableMarkCurrent:m.value,enablePeriod:a.value,firstDayOfTheWeek:w.value,selected:C.value,selectedPeriod:A.value,selectedWeek:B.value,selectMode:s.value,showWeekNumber:_.value,weekTitle:S.value})),Pd=F(()=>({dates:j,daysInWeek:u.value,enableKeyboadNavigate:d.value,enableMarkCurrent:m.value,enablePeriod:a.value,firstDayOfTheWeek:w.value,selected:C.value,selectedPeriod:A.value,selectMode:_.value,showWeekNumber:_.value,weekTitle:S.value}));function Dd(ue,De){C.value=ue,t.emit("datePicked",`${ue.year}-${ue.month}-${ue.day}`)}function vp(ue){}function gp(ue){}function mp(ue,De){}function yp(ue,De){}function dr(ue,De){return $n.value&&h(Ol,ft(De,{onClick:ve=>Dd(ve),onClickWeek:ve=>void 0,onKeyDown:ve=>void 0,onMouseEnter:ve=>void 0,onMouseLeave:ve=>void 0}),null)}const Md=F(()=>({months:z.value,enableMarkCurrent:m.value,enableKeyboadNavigate:d.value,enablePeriod:a.value,selected:O.value,selectedPeriod:A.value})),Bd=F(()=>({months:y.value,enableMarkCurrent:m.value,enableKeyboadNavigate:d.value,enablePeriod:a.value,selected:O.value,selectedPeriod:A.value}));function Vd(ue,De){v.value=!1,p.value=!1,O.value=ue,k.value={month:ue.month||1,displayTextOfMonth:i.value[k.value.month||"1"],year:k.value.year||1,displayTextOfYear:`${k.value.displayTextOfYear}`}}function bp(ue){}function wp(ue,De){}function _p(ue,De){}function pr(ue,De){return h(Tl,ft(De,{onClick:ve=>Vd(ve),onKeyDownMonthView:ve=>void 0,onMouseEnterMonthView:ve=>void 0,onMouseLeaveMonthView:ve=>void 0}),null)}const Fd=F(()=>({years:G.value,enableKeyboadNavigate:d.value,enableMarkCurrent:m.value,enablePeriod:a.value,selected:C.value,selectedPeriod:A.value})),Rd=F(()=>({years:c.value,enableKeyboadNavigate:d.value,enableMarkCurrent:m.value,enablePeriod:a.value,selected:C.value,selectedPeriod:A.value}));function $d(ue,De){v.value=!0,p.value=!1,k.value={month:k.value.month,displayTextOfMonth:k.value.displayTextOfMonth,year:ue.year||1,displayTextOfYear:`${ue.year}`}}function xp(ue){}function Np(ue,De){}function Cp(ue,De){}function jd(ue){k.value={year:x.year||1,month:x.month||1,displayTextOfMonth:i.value[x.month||"1"],displayTextOfYear:`${x.year}`},C.value=x}function Id(ue){k.value={year:x.year||1,month:x.month||1,displayTextOfMonth:i.value[x.month||"1"],displayTextOfYear:`${x.year}`},C.value=x,O.value={year:x.year,month:x.month}}function Hd(ue){k.value={year:x.year||1,month:x.month||1,displayTextOfMonth:i.value[x.month||"1"],displayTextOfYear:`${x.year}`},C.value=x}const Wd=F(()=>a.value&&s.value!=="week");function hr(ue,De){return h(Al,ft(De,{onClick:ve=>$d(ve),onKeyDownYearView:ve=>void 0,onClickPreRecord:ve=>be(),onClickNextRecord:ve=>Ne(),onMouseEnterYearView:ve=>void 0,onMouseLeaveYearView:ve=>void 0}),null)}return()=>h("div",{class:Q.value,style:X.value,tabindex:"0",onKeyup:ue=>void 0,onClick:ue=>ne(ue)},[h("div",{class:"f-datepicker-content"},[Vt(!1,Bt.value),dr(!1,To.value),v.value&&pr(!1,Md.value),p.value&&hr(!1,Fd.value),h("div",{class:"f-datepicker-footer"},[h("div",{class:"f-datepicker-redirect"},[$n.value&&h("button",{class:"btn btn-link",onClick:jd},[ct("\u4ECA\u5929")]),je.value&&h("button",{class:"btn btn-link",onClick:Id},[ct("\u672C\u6708")]),et.value&&h("button",{class:"btn btn-link",onClick:Hd},[ct("\u4ECA\u5E74")])])])]),Wd.value&&h("div",{class:"f-datepicker-content"},[Vt(!0,So.value),dr(!0,Pd.value),f.value&&pr(!0,Bd.value),g.value&&hr(!0,Rd.value)])])}}),qs=me({name:"FDatePicker",props:{displayFormat:{Type:String,default:"yyyyMMdd"},minYear:{Type:Number,default:1},maxYear:{Type:Number,default:2500},valueFormat:{Type:String,default:"yyyyMMdd"},displayTime:{Type:Boolean,default:!1},selectMode:{Type:String,default:"day"},disableUntil:{Type:Object,default:{year:0,month:0,day:0}},disableSince:{Type:Object,default:{year:0,month:0,day:0}},disableDates:{Type:Array,default:[]},disablePeriod:{Type:Array,default:[]},disableWeekends:{Type:Boolean,default:!1},disableWeekdays:{Type:Array,default:[]},highlightDates:{Type:Array,default:[]},highlightSaturday:{Type:Boolean,default:!1},highlightSunday:{Type:Boolean,default:!1},modelValue:{type:String,default:""},nameOfMonths:{Type:Object,default:Gs},periodDelimiter:{Type:String,default:""}},emits:["update:modelValue","datePicked"],setup(e,t){const n='<span class="f-icon f-icon-date"></span>',o=N(e.modelValue),l=N(null);function a(){}function s(r){var i;o.value=r,t.emit("update:modelValue",r),t.emit("datePicked",r),(i=l.value)==null||i.commitValue(r)}return()=>h(Pe,null,[h(Cl,{ref:l,modelValue:o.value,"onUpdate:modelValue":r=>o.value=r,buttonContent:n,enableClear:!0,onClickButton:()=>void 0},{default:()=>[h(kn("f-date-picker-container"),{onDatePicked:r=>s(r)},null)]})])}}),Af={install(e){e.component(Ol.name,Ol).component(Sl.name,Sl).component(Ys.name,Ys).component(Tl.name,Tl).component(Al.name,Al).component(qs.name,qs)}},kf={data:{type:Array,default:[]},multiSelect:{Type:Boolean,default:!1},cardView:{Type:Boolean,default:!1}},Pf=me({name:"FListViewCheckBox",props:{checked:{Type:Boolean,default:!1},id:{Type:String,default:""},disabled:{Type:Boolean,default:!1}},emits:["change"],setup(e,t){const n=N(e.checked),o=N(e.disabled),l=N(e.id);function a(s){s.stopPropagation(),n.value=!n.value,o.value||t.emit("change",{originalEvent:s,checked:!n.value})}return()=>h("div",{class:"custom-control custom-checkbox custom-control-inline listview-checkbox"},[An(h("input",{title:l.value,type:"checkbox",class:"custom-control-input","onUpdate:modelValue":s=>n.value=s},null),[[Os,n.value]]),h("label",{class:"custom-control-label",onClick:s=>a(s)},null)])}}),tp="",Qs=me({name:"FListView",props:kf,emits:["checkValuesChange","clickItem","selectChange"],setup(e,t){return()=>{const n=N(e.multiSelect),o=N(e.cardView),l=N(""),a=N(!0),s=N({}),r=N("\u6682\u65E0\u6570\u636E"),i=N(!0),c=N(!1),v=[],f=N("id");let p=[];const g=N(e.data),E=N(e.data),R=F(()=>({"f-list-view":!0,"f-list-view-multiple":n.value})),P=F(()=>({"f-list-view-group":!0,"d-flex":o.value,"flex-wrap":o.value})),T=F(()=>!!g.value&&g.value.length>0);function b(w){return!1}const V=w=>{const _={"f-list-view-group-item":!0,"f-un-click":!!w.unClick,"f-un-select":!!w.selectDisable,"f-listview-active":b()};return l.value.split(" ").reduce((B,A)=>(B[A]=!0,B),_),_},D=F(()=>g.value.length===0),M=F(()=>D.value&&!t.slots.empty),I=F(()=>!!t.slots.footer||a.value);function j(w,_){return""}function u(w){t.emit("checkValuesChange",w)}function d(w,_,C,B=!1){const A=typeof event=="boolean";if(!(_.unClick||_.selectDisable)){if(t.emit("selectChange",{listdata:_,index:C}),n.value)if(_.checked){if(!i.value||A){const S=p.findIndex((y,O)=>j()===j());p.splice(S,1),_.checked=!1}}else p.find((y,O)=>j()===j())||(p.unshift(_),_.checked=!0);else p=[],p.push(_);if(B||(s.value=_),t.emit("clickItem",{data:p,index:C,checkChangeEvent:B}),n.value){let S=E.value.filter(y=>!!y.checked).map(y=>y[f.value]);c.value&&(S=v.map(y=>y[f.value])),u(S)}}}function m(w,_,C){const B=w.checked;d(B,_,C,!0)}return h("div",{class:R.value},[t.slots.header&&h("div",{class:"f-list-view-header"},[t.slots.header()]),h("div",{class:"f-list-view-content"},[h("ul",{class:P.value,style:"list-style: none;"},[T.value&&g.value.map((w,_)=>h("li",{class:V(w),id:j(),onClick:C=>d(C,w,_)},[n.value&&h("div",{class:"f-list-select",onClick:C=>C.stopPropagation()},[h(Pf,{id:"list-"+j(),disabled:w.selectDisable||w.unClick,checked:w.checked,onChange:C=>m(C,w,_)},null)]),h("div",{class:"f-list-content"},[t.slots.content&&t.slots.content({item:w,index:_,selectedItem:s})])])),M.value&&h("div",{class:"f-list-view-emptydata"},[h("p",{class:"f-empty-title"},[r.value])]),t.slots.empty&&t.slots.empty()])]),I.value&&h("div",{class:"f-list-view-footer"},[t.slots.footer&&t.slots.footer()])])}}}),Df={install(e){e.component(Qs.name,Qs)}},Mf={type:{Type:String,default:"info"},title:{Type:String,default:""},detail:{Type:String,default:""},okButtonText:{Type:String,default:"\u786E\u5B9A"},cancelButtonText:{Type:String,default:"\u53D6\u6D88"},exceptionInfo:{Type:Object,default:{date:"",message:"",detail:""}}};function Dl(){return new DOMException("The request is not allowed","NotAllowedError")}async function Bf(e){if(!navigator.clipboard)throw Dl();return navigator.clipboard.writeText(e)}async function Vf(e){const t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",t.style.webkitUserSelect="auto",t.style.userSelect="all",document.body.appendChild(t);const n=window.getSelection(),o=window.document.createRange();n==null||n.removeAllRanges(),o.selectNode(t),n==null||n.addRange(o);let l=!1;try{l=window.document.execCommand("copy")}finally{n==null||n.removeAllRanges(),window.document.body.removeChild(t)}if(!l)throw Dl()}async function Ff(e){try{await Bf(e)}catch(t){try{await Vf(e)}catch(n){throw n||t||Dl()}}}function Rf(e,t){async function n(o){await Ff(o)}return{onCopy:n}}const Ml=me({name:"FMessageBox",props:Mf,emits:["accept","reject","close"],setup(e,t){const n=N(e.type),o=N(e.title),l=N(e.detail),a=N(e.exceptionInfo);N("");const s=N(14),r=N(140);N(""),N("");const i=N(!1),c=N(""),v=N(l.value.length),f=N([]),p=N(e.okButtonText),g=N(e.cancelButtonText),E=N(!0),R=N(!0),P=N(!0),T=N("\u590D\u5236\u8BE6\u7EC6\u4FE1\u606F"),b=N(3),V=N(480),D=F(()=>{const $={"modal-tips":!0,"d-flex":!0,"flex-row":!0},U=`messager-type-${n.value}`;return $[U]=!0,$}),M=F(()=>{const $={};return n.value==="prompt"?$.padding="0.5rem 0.5rem 1rem 1.5rem":n.value==="error"&&($.padding="0.5rem 1.5rem 1rem 1.5rem"),$}),I=F(()=>{const $={"f-icon":!0},U=`f-icon-${n.value}`;return $[U]=!0,$}),j=F(()=>o.value||a.value&&a.value.message),u=F(()=>l.value),d=F(()=>!!l.value),m=F(()=>!!a.value),w=F(()=>!!a.value&&!!a.value.date),_=F(()=>`\u53D1\u751F\u65F6\u95F4 : ${a.value&&a.value.date||""}`),C=F(()=>!!a.value&&!!a.value.detail),B=F(()=>{const $=`${V.value}px`;return{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":b.value,"max-height":$}}),A=F(()=>a.value&&a.value.detail||""),S=F(()=>!0),y=N(!1),O=N("\u5C55\u5F00"),H=N("\u6536\u8D77"),q=F(()=>{const $={display:"block",color:"#2A87FF"};return $["text-align"]=y.value?"":"right",$});function Y($,U){y.value=!y.value,b.value=y.value?20:3}function te($){return Y()}function le($){return Y()}const fe=F(()=>({"font-size":`${s.value}px`,height:"100%"}));function se($){if($.currentTarget){const U=$.currentTarget.value||"";v.value=U.length}}F(()=>i.value&&r.value);const Z=F(()=>!(f.value&&f.value.length)&&(p.value||g.value));F(()=>n.value==="prompt"&&E.value);const oe=F(()=>R.value&&g.value),ie=F(()=>P.value&&p.value);function ye($){n.value==="question"&&t.emit("reject"),t.emit("close")}function _e($){n.value==="question"&&t.emit("accept"),t.emit("close")}const pe=F(()=>!!(f.value&&f.value.length)),Te=F(()=>a.value&&a.value.date&&a.value.message&&a.value.detail),{onCopy:we}=Rf(),x=N("\u590D\u5236\u6210\u529F"),k=N(!1);function L($){we(A.value).catch(U=>{x.value="\u590D\u5236\u5931\u8D25"}).finally(()=>{k.value=!0,setTimeout(()=>{k.value=!1},700)})}const K=F(()=>{const $={position:"absolute",left:"50%",top:"50%",width:"100px",height:"40px",background:"#303C53","line-height":"40px","text-align":"center","margin-left":"-30px","margin-top":"-50px","border-radius":"10px","box-shadow":"0px 2px 8px 0px",color:"#fff",transition:"all .3s ease"};return $.opacity=k.value?"0.8":"0",$.display=k.value?"":"none",$});return()=>h("div",{class:"farris-messager"},[n.value!=="prompt"&&h("section",{class:D.value,style:M.value},[h("div",{class:"float-left modal-tips-iconwrap"},[h("span",{class:I.value},null)]),h("div",{class:"modal-tips-content"},[h("p",{class:"toast-msg-title",innerHTML:j.value},null),d.value&&h("p",{class:"toast-msg-detail",innerHTML:u.value},null),m.value&&h("div",{class:"toast-msg-detail"},[w.value&&h("div",null,[_.value]),C.value&&h("div",{id:"exception_error_msg",ref:"exceptionMessageRef",style:B.value},[ct("\u8BE6\u7EC6\u4FE1\u606F : "),h("span",{innerHTML:A.value},null)]),S.value&&h("span",{style:q.value},[y.value&&h("span",{onClick:te,style:"cursor: pointer;"},[H.value]),!y.value&&h("span",{onClick:le,style:"cursor: pointer;"},[O.value])])])])]),n.value==="prompt"&&h(Pe,null,[h("section",{class:D.value,style:M.value},[h("div",{class:"flex-fill fixdiv mb-1 mr-3"},[h("textarea",{title:"promptMessage",name:"promptMessage",class:"form-control",style:fe.value,rows:"4",maxlength:r.value,onInput:$=>se($)},[u.value])])]),h("span",{class:"textarea-wordcount",title:c.value,style:"position: absolute; bottom: 76px; right: 32px; cursor: pointer; text-align: right;"},[v.value+" / "+r.value])]),Z.value&&h("div",{class:"modal-footer"},[Te.value&&h("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[h("span",{onClick:L,style:"cursor: pointer;"},[T.value])]),oe.value&&h("button",{type:"button",class:"btn btn-secondary btn-lg",onClick:ye},[g.value]),ie.value&&h("button",{type:"button",class:"btn btn-primary btn-lg",onClick:_e},[p.value])]),pe.value&&h("div",{class:"modal-footer"},[Te.value&&h("span",{style:"width: 100%;color: #2A87FF;padding-left: 37px;"},[h("span",{onClick:L,style:"cursor: pointer;"},[T.value])]),f.value.length&&f.value.map($=>h("button",{type:"button",onClick:$.handle,class:$.class},[$.iconClass&&h("span",{class:$.iconClass},null),$.text]))]),h("div",{style:K.value},[x.value])])}}),Bl=me({name:"FModal",props:{class:{type:String,default:""},title:{type:String,default:""},width:{type:Number,default:500},height:{type:Number,default:320},buttons:{type:Array,default:[]},modelValue:{type:Boolean,default:!1},showHeader:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,t){const n=N(e.width),o=N(e.height),l=N(e.modelValue),a=N(""),s=N(e.class),r=N(!0),i=N(e.showHeader),c=N(""),v=N(!0),f=N(!1),p=N(!1),g=N(""),E=N(""),R=N(""),P=N(e.showButtons),T=N(e.title);function b(Y,te){l.value=!1,t.emit("update:modelValue",!1)}const V=[{text:"\u53D6\u6D88",class:"btn btn-light",handle:Y=>{b()}},{text:"\u786E\u5B9A",class:"btn btn-primary",handle:Y=>{b()}}],D=N(e.buttons&&e.buttons.length?e.buttons:V),M=F(()=>!!c.value),I=F(()=>!!P.value&&!!D.value);N(),N(),Ee(()=>e.modelValue,()=>{l.value=e.modelValue});const j=N(!1),u=F(()=>l.value),d=F(()=>{const Y={modal:!0,"farris-modal":!0};return Y["f-modal-fitContent"]=r.value,Y}),m=F(()=>({display:u.value?"block":"none !important"})),w=F(()=>{const Y={"modal-dialog":!0};return s.value.split(" ").reduce((le,fe)=>(le[fe]=!0,le),Y),Y}),_=F(()=>({position:"absolute",top:"50%",left:"50%",width:`${n.value}px`,height:r.value?"auto":`${o.value}px`,"margin-left":`${0-n.value/2}px`,"margin-top":r.value?"auto":`${0-o.value/2}px`})),C=F(()=>({"modal-content":!0,"modal-content-has-header":i.value})),B=F(()=>({display:i.value?"":"none"})),A=F(()=>({"f-icon":!0,modal_maximize:!0,modalrevert:j.value})),S=F(()=>({height:"10px","z-index":1,display:i.value?"none":""})),y=F(()=>({"modal-body":!0,"f-utils-flex-column":g.value==="iframe"}));function O(){return{}}const H=F(()=>{const Y={textAlgin:R.value},te=O();return Object.assign(Y,te)});function q(Y){}return()=>h(dl,{to:"body"},{default:()=>{var Y,te;return[h("div",{class:d.value,style:m.value},[h("div",{id:a.value,class:w.value,style:_.value},[h("div",{class:C.value},[h("div",{ref:"modalHeaderRef",class:"modal-header",style:B.value},[h("div",{class:"modal-title"},[M.value&&h("span",{class:c.value,style:"margin-right: 8px"},null),h("span",{class:"modal-title-label"},[T.value])]),h("div",{class:"actions"},[h("ul",null,[p.value&&h("li",{class:"f-btn-icon f-bare"},[h("span",{class:"f-icon modal_minimize"},null)]),f.value&&h("li",{onClick:q,class:"f-btn-icon f-bare"},[h("span",{class:A.value},null)]),v.value&&h("li",{class:"f-btn-icon f-bare",onClick:le=>b()},[h("span",{class:"f-icon modal_close"},null)])])])]),h("div",{ref:"dragableElementRef",class:"f-utils-absolute-all",style:S.value},null),h("div",{class:y.value},[(te=(Y=t.slots).default)==null?void 0:te.call(Y),g.value==="iframe"&&h("iframe",{title:a.value,class:"f-utils-fill",width:"100%",frameborder:"0",src:E.value},null)]),I.value&&h("div",{class:"modal-footer",style:H.value},[D.value&&D.value.map(le=>h("button",{type:"button",class:le.class,onClick:fe=>{le.handle&&le.handle(fe)}},[!!le.iconClass&&h("span",{class:le.iconClass},[le.text]),!le.iconClass&&h("span",null,[le.text])]))])])])])]}})}}),$f={install(e){e.component(Bl.name,Bl)}};function jf(e,t){const n=document.createElement("div");n.style.display="contents";const o=Nl({setup(){Kt(()=>{document.body.removeChild(n)});const l=N(!0),a=e.type==="error"||e.type==="prompt",s=e.type==="error"?"\u9519\u8BEF\u63D0\u793A":e.type==="prompt"?e.title:"",r=e.acceptCallback||(()=>{}),i=e.rejectCallback||(()=>{});return()=>h(Bl,{class:"modal-message modal-message-type-info",title:s,modelValue:l.value,"onUpdate:modelValue":c=>l.value=c,"show-header":a,"show-buttons":!1},{default:()=>[h(Ml,ft(e,{onAccept:r,onReject:i,onClose:o.unmount}),null)]})}});return document.body.appendChild(n),o.mount(n),o}class If{static show(t){const n=Ue({...t});jf(n)}static info(t,n){const o=Ue({type:"info",title:t,detail:n,okButtonText:"\u77E5\u9053\u4E86",cancelButtonText:""});this.show(o)}static warning(t,n){const o=Ue({type:"warning",title:t,detail:n,okButtonText:"\u77E5\u9053\u4E86",cancelButtonText:""});this.show(o)}static success(t,n){const o=Ue({type:"success",title:t,detail:n,okButtonText:"\u5173\u95ED",cancelButtonText:""});this.show(o)}static error(t,n,o){const l=Ue({type:"error",okButtonText:"\u5173\u95ED",cancelButtonText:"",exceptionInfo:{date:o,message:t,detail:n}});this.show(l)}static prompt(t,n){const o=Ue({type:"prompt",title:t,detail:n,okButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"});this.show(o)}static question(t,n,o,l){const a=Ue({type:"question",title:t,detail:n,okButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",acceptCallback:o,rejectCallback:l});this.show(a)}}const Hf={install(e){e.component(Ml.name,Ml),e.provide("MessageBoxService",If)}},Wf={limit:{type:Number,default:5},showCloseButton:{type:Boolean,default:!0},position:{type:String,default:"top-center"},timeout:{type:Number,default:3e3},theme:{type:String,default:"bootstrap"},left:{type:Number},right:{type:Number},top:{type:Number},bottom:{type:Number},id:{type:String},animate:{type:String,default:"fadeIn"},toasts:{type:Array},options:{type:Object}},Lf={animate:{type:String,default:"fadeIn"},options:{type:Object}},op="",Vl=me({name:"Toast",props:Lf,emits:["close","click"],setup:(e,t)=>{const n=N(e.animate),o="fadeOut",l=F(()=>e.options),a=N(!1),s=F(()=>{const T={animated:a.value,toast:!0};return T[e.animate]=!1,T[o]=a.value,T[l.value.type]=!0,l.value.theme&&(T[l.value.theme]=!0),T}),r=F(()=>{const V=`f-icon-${l.value&&l.value.type?l.value.type.replace("toasty-type-",""):"default"}`,D={"f-icon":!0};return D[V]=!0,D}),i=F(()=>l.value.title||l.value.msg),c=F(()=>l.value.title&&l.value.msg),v=F(()=>!l.value.title&&l.value.msg),f=F(()=>!0),p=F(()=>!!l.value.buttons||!!t.slots.default);function g(T){T.stopPropagation(),T.preventDefault(),a.value=!1,setTimeout(()=>{t.emit("close",l.value)},200)}function E(T,b){}function R(T){return`f-preten-link ${T.customClass?T.customClass:""}`}Ee(n,()=>{n.value});const P=()=>{var T;return h(Pe,null,[h("div",{class:"after-toast-msg text-right"},[!t.slots.default&&((T=l.value.buttons)==null?void 0:T.map(b=>h("span",{class:R(b),onClick:V=>void 0},[b.text]))),t.slots.default&&t.slots.default()])])};return()=>h("div",{class:s.value},[f.value&&h("button",{title:"close",class:"toast-close f-btn-icon f-bare",onClick:g},[h("span",{class:"f-icon modal_close"},null)]),i.value&&h("section",{class:"modal-tips"},[h("div",{class:"float-left modal-tips-iconwrap"},[h("span",{class:r},null)]),h("div",{class:"modal-tips-content"},[c.value&&h(Pe,null,[h("h5",{class:"toast-title modal-tips-title",innerHTML:l.value.title},null),h("p",{class:"toast-msg",innerHTML:l.value.msg},null),p.value&&P()]),v.value&&(l.value.buttons?h("div",{class:"toast-title-btns-wrapper d-flex"},[h("h5",{class:"toast-title modal-tips-title only-toast-msg",innerHTML:l.value.msg},null),h("div",{class:"after-toast-title text-right ml-auto"},[P()])]):h("h5",{class:"toast-title modal-tips-title only-toast-msg",innerHTML:l.value.msg},null))])])])}}),Fl=me({name:"Notify",props:Wf,emits:["close","empty"],setup(e,t){const n=F(()=>({"farris-notify":!0})),o={left:12,right:12,top:136,bottom:12},l=N(e.toasts||[]),a=F(()=>{const p={left:e.position.indexOf("left")>-1?`${e.left?e.left:o.left}px`:"",right:e.position.indexOf("right")>-1?`${e.right?e.right:o.right}px`:"",top:e.position.indexOf("top")>-1?`${e.top?e.top:o.top}px`:"",bottom:e.position.indexOf("bottom")>-1?`${e.bottom?e.bottom:o.bottom}px`:""};return e.position.indexOf("center")&&(p.left="50%",p.transform="translate(-50%, -50%)"),p});function s(p){t.emit("close")}function r(p){l.value.length>=e.limit&&l.value.shift(),l.value.push(p)}function i(p){p&&p.onRemove&&p.onRemove.call(p)}function c(p){const g=l.value.findIndex(E=>E.id===p);if(g>-1){const E=l.value[g];i(E),l.value.splice(g,1)}}function v(){l.value.forEach(p=>i(p)),l.value.length=0,t.emit("empty")}t.expose({addToast:r,clear:c,clearAll:v,closeToast:s});function f(p,g){s()}return()=>h("div",{id:e.id,class:n.value,style:a.value},[l.value.map(p=>h(Vl,{options:p,animate:e.animate,onClose:g=>f()},null))])}});function Uf(e,t){const n=document.createElement("div");n.style.display="contents";const o=Nl({setup(){return Kt(()=>{document.body.removeChild(n)}),()=>h(Fl,ft(e,{onClose:o.unmount}),null)}});return document.body.appendChild(n),o.mount(n),o}class zf{static show(t){const n=Ue({...t});Uf(n)}}const Gf={install(e){e.component(Fl.name,Fl),e.component(Vl.name,Vl),e.provide("NotifyService",zf)}},Kf={id:String,disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},formatter:{type:Function},parser:{type:Function},placeholder:{type:String,default:"\u8BF7\u8F93\u5165\u6570\u5B57"},step:{type:Number,default:1},max:{type:String},min:{type:String},bigNumber:{type:Boolean,default:!1},showButton:{type:Boolean,default:!0},useThousands:{type:Boolean,default:!0},textAlign:{type:String,default:"left"},autoDecimal:{type:Boolean,default:!0},canNull:{type:Boolean,default:!1},precision:{type:Number,default:0},prefix:{type:String,default:""},suffix:{type:String,default:""},decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},groupSize:{type:Number,default:3},value:{type:String,default:""},showZero:{type:Boolean,default:!0},beginPlaceHolder:{type:String,default:""},endPlaceHolder:{type:String,default:""},separator:{type:String,default:"~"},beginValue:{type:String,default:"0"},endValue:{type:String,default:"0"}};var Yf=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Rl=Math.ceil,ht=Math.floor,Ke="[BigNumber Error] ",Xs=Ke+"Number primitive has more than 15 significant digits: ",lt=1e14,de=14,$l=9007199254740991,jl=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Mt=1e7,Re=1e9;function Zs(e){var t,n,o,l=b.prototype={constructor:b,toString:null,valueOf:null},a=new b(1),s=20,r=4,i=-7,c=21,v=-1e7,f=1e7,p=!1,g=1,E=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xA0",suffix:""},P="0123456789abcdefghijklmnopqrstuvwxyz",T=!0;function b(u,d){var m,w,_,C,B,A,S,y,O=this;if(!(O instanceof b))return new b(u,d);if(d==null){if(u&&u._isBigNumber===!0){O.s=u.s,!u.c||u.e>f?O.c=O.e=null:u.e<v?O.c=[O.e=0]:(O.e=u.e,O.c=u.c.slice());return}if((A=typeof u=="number")&&u*0==0){if(O.s=1/u<0?(u=-u,-1):1,u===~~u){for(C=0,B=u;B>=10;B/=10,C++);C>f?O.c=O.e=null:(O.e=C,O.c=[u]);return}y=String(u)}else{if(!Yf.test(y=String(u)))return o(O,y,A);O.s=y.charCodeAt(0)==45?(y=y.slice(1),-1):1}(C=y.indexOf("."))>-1&&(y=y.replace(".","")),(B=y.search(/e/i))>0?(C<0&&(C=B),C+=+y.slice(B+1),y=y.substring(0,B)):C<0&&(C=y.length)}else{if(ke(d,2,P.length,"Base"),d==10&&T)return O=new b(u),I(O,s+O.e+1,r);if(y=String(u),A=typeof u=="number"){if(u*0!=0)return o(O,y,A,d);if(O.s=1/u<0?(y=y.slice(1),-1):1,b.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(Xs+u)}else O.s=y.charCodeAt(0)===45?(y=y.slice(1),-1):1;for(m=P.slice(0,d),C=B=0,S=y.length;B<S;B++)if(m.indexOf(w=y.charAt(B))<0){if(w=="."){if(B>C){C=S;continue}}else if(!_&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){_=!0,B=-1,C=0;continue}return o(O,String(u),A,d)}A=!1,y=n(y,d,10,O.s),(C=y.indexOf("."))>-1?y=y.replace(".",""):C=y.length}for(B=0;y.charCodeAt(B)===48;B++);for(S=y.length;y.charCodeAt(--S)===48;);if(y=y.slice(B,++S)){if(S-=B,A&&b.DEBUG&&S>15&&(u>$l||u!==ht(u)))throw Error(Xs+O.s*u);if((C=C-B-1)>f)O.c=O.e=null;else if(C<v)O.c=[O.e=0];else{if(O.e=C,O.c=[],B=(C+1)%de,C<0&&(B+=de),B<S){for(B&&O.c.push(+y.slice(0,B)),S-=de;B<S;)O.c.push(+y.slice(B,B+=de));B=de-(y=y.slice(B)).length}else B-=S;for(;B--;y+="0");O.c.push(+y)}}else O.c=[O.e=0]}b.clone=Zs,b.ROUND_UP=0,b.ROUND_DOWN=1,b.ROUND_CEIL=2,b.ROUND_FLOOR=3,b.ROUND_HALF_UP=4,b.ROUND_HALF_DOWN=5,b.ROUND_HALF_EVEN=6,b.ROUND_HALF_CEIL=7,b.ROUND_HALF_FLOOR=8,b.EUCLID=9,b.config=b.set=function(u){var d,m;if(u!=null)if(typeof u=="object"){if(u.hasOwnProperty(d="DECIMAL_PLACES")&&(m=u[d],ke(m,0,Re,d),s=m),u.hasOwnProperty(d="ROUNDING_MODE")&&(m=u[d],ke(m,0,8,d),r=m),u.hasOwnProperty(d="EXPONENTIAL_AT")&&(m=u[d],m&&m.pop?(ke(m[0],-Re,0,d),ke(m[1],0,Re,d),i=m[0],c=m[1]):(ke(m,-Re,Re,d),i=-(c=m<0?-m:m))),u.hasOwnProperty(d="RANGE"))if(m=u[d],m&&m.pop)ke(m[0],-Re,-1,d),ke(m[1],1,Re,d),v=m[0],f=m[1];else if(ke(m,-Re,Re,d),m)v=-(f=m<0?-m:m);else throw Error(Ke+d+" cannot be zero: "+m);if(u.hasOwnProperty(d="CRYPTO"))if(m=u[d],m===!!m)if(m)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))p=m;else throw p=!m,Error(Ke+"crypto unavailable");else p=m;else throw Error(Ke+d+" not true or false: "+m);if(u.hasOwnProperty(d="MODULO_MODE")&&(m=u[d],ke(m,0,9,d),g=m),u.hasOwnProperty(d="POW_PRECISION")&&(m=u[d],ke(m,0,Re,d),E=m),u.hasOwnProperty(d="FORMAT"))if(m=u[d],typeof m=="object")R=m;else throw Error(Ke+d+" not an object: "+m);if(u.hasOwnProperty(d="ALPHABET"))if(m=u[d],typeof m=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(m))T=m.slice(0,10)=="0123456789",P=m;else throw Error(Ke+d+" invalid: "+m)}else throw Error(Ke+"Object expected: "+u);return{DECIMAL_PLACES:s,ROUNDING_MODE:r,EXPONENTIAL_AT:[i,c],RANGE:[v,f],CRYPTO:p,MODULO_MODE:g,POW_PRECISION:E,FORMAT:R,ALPHABET:P}},b.isBigNumber=function(u){if(!u||u._isBigNumber!==!0)return!1;if(!b.DEBUG)return!0;var d,m,w=u.c,_=u.e,C=u.s;e:if({}.toString.call(w)=="[object Array]"){if((C===1||C===-1)&&_>=-Re&&_<=Re&&_===ht(_)){if(w[0]===0){if(_===0&&w.length===1)return!0;break e}if(d=(_+1)%de,d<1&&(d+=de),String(w[0]).length==d){for(d=0;d<w.length;d++)if(m=w[d],m<0||m>=lt||m!==ht(m))break e;if(m!==0)return!0}}}else if(w===null&&_===null&&(C===null||C===1||C===-1))return!0;throw Error(Ke+"Invalid BigNumber: "+u)},b.maximum=b.max=function(){return D(arguments,l.lt)},b.minimum=b.min=function(){return D(arguments,l.gt)},b.random=function(){var u=9007199254740992,d=Math.random()*u&2097151?function(){return ht(Math.random()*u)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(m){var w,_,C,B,A,S=0,y=[],O=new b(a);if(m==null?m=s:ke(m,0,Re),B=Rl(m/de),p)if(crypto.getRandomValues){for(w=crypto.getRandomValues(new Uint32Array(B*=2));S<B;)A=w[S]*131072+(w[S+1]>>>11),A>=9e15?(_=crypto.getRandomValues(new Uint32Array(2)),w[S]=_[0],w[S+1]=_[1]):(y.push(A%1e14),S+=2);S=B/2}else if(crypto.randomBytes){for(w=crypto.randomBytes(B*=7);S<B;)A=(w[S]&31)*281474976710656+w[S+1]*1099511627776+w[S+2]*4294967296+w[S+3]*16777216+(w[S+4]<<16)+(w[S+5]<<8)+w[S+6],A>=9e15?crypto.randomBytes(7).copy(w,S):(y.push(A%1e14),S+=7);S=B/7}else throw p=!1,Error(Ke+"crypto unavailable");if(!p)for(;S<B;)A=d(),A<9e15&&(y[S++]=A%1e14);for(B=y[--S],m%=de,B&&m&&(A=jl[de-m],y[S]=ht(B/A)*A);y[S]===0;y.pop(),S--);if(S<0)y=[C=0];else{for(C=-1;y[0]===0;y.splice(0,1),C-=de);for(S=1,A=y[0];A>=10;A/=10,S++);S<de&&(C-=de-S)}return O.e=C,O.c=y,O}}(),b.sum=function(){for(var u=1,d=arguments,m=new b(d[0]);u<d.length;)m=m.plus(d[u++]);return m},n=function(){var u="0123456789";function d(m,w,_,C){for(var B,A=[0],S,y=0,O=m.length;y<O;){for(S=A.length;S--;A[S]*=w);for(A[0]+=C.indexOf(m.charAt(y++)),B=0;B<A.length;B++)A[B]>_-1&&(A[B+1]==null&&(A[B+1]=0),A[B+1]+=A[B]/_|0,A[B]%=_)}return A.reverse()}return function(m,w,_,C,B){var A,S,y,O,H,q,Y,te,le=m.indexOf("."),fe=s,se=r;for(le>=0&&(O=E,E=0,m=m.replace(".",""),te=new b(w),q=te.pow(m.length-le),E=O,te.c=d(wt(Je(q.c),q.e,"0"),10,_,u),te.e=te.c.length),Y=d(m,w,_,B?(A=P,u):(A=u,P)),y=O=Y.length;Y[--O]==0;Y.pop());if(!Y[0])return A.charAt(0);if(le<0?--y:(q.c=Y,q.e=y,q.s=C,q=t(q,te,fe,se,_),Y=q.c,H=q.r,y=q.e),S=y+fe+1,le=Y[S],O=_/2,H=H||S<0||Y[S+1]!=null,H=se<4?(le!=null||H)&&(se==0||se==(q.s<0?3:2)):le>O||le==O&&(se==4||H||se==6&&Y[S-1]&1||se==(q.s<0?8:7)),S<1||!Y[0])m=H?wt(A.charAt(1),-fe,A.charAt(0)):A.charAt(0);else{if(Y.length=S,H)for(--_;++Y[--S]>_;)Y[S]=0,S||(++y,Y=[1].concat(Y));for(O=Y.length;!Y[--O];);for(le=0,m="";le<=O;m+=A.charAt(Y[le++]));m=wt(m,y,A.charAt(0))}return m}}(),t=function(){function u(w,_,C){var B,A,S,y,O=0,H=w.length,q=_%Mt,Y=_/Mt|0;for(w=w.slice();H--;)S=w[H]%Mt,y=w[H]/Mt|0,B=Y*S+y*q,A=q*S+B%Mt*Mt+O,O=(A/C|0)+(B/Mt|0)+Y*y,w[H]=A%C;return O&&(w=[O].concat(w)),w}function d(w,_,C,B){var A,S;if(C!=B)S=C>B?1:-1;else for(A=S=0;A<C;A++)if(w[A]!=_[A]){S=w[A]>_[A]?1:-1;break}return S}function m(w,_,C,B){for(var A=0;C--;)w[C]-=A,A=w[C]<_[C]?1:0,w[C]=A*B+w[C]-_[C];for(;!w[0]&&w.length>1;w.splice(0,1));}return function(w,_,C,B,A){var S,y,O,H,q,Y,te,le,fe,se,Z,oe,ie,ye,_e,pe,Te,we=w.s==_.s?1:-1,x=w.c,k=_.c;if(!x||!x[0]||!k||!k[0])return new b(!w.s||!_.s||(x?k&&x[0]==k[0]:!k)?NaN:x&&x[0]==0||!k?we*0:we/0);for(le=new b(we),fe=le.c=[],y=w.e-_.e,we=C+y+1,A||(A=lt,y=Ze(w.e/de)-Ze(_.e/de),we=we/de|0),O=0;k[O]==(x[O]||0);O++);if(k[O]>(x[O]||0)&&y--,we<0)fe.push(1),H=!0;else{for(ye=x.length,pe=k.length,O=0,we+=2,q=ht(A/(k[0]+1)),q>1&&(k=u(k,q,A),x=u(x,q,A),pe=k.length,ye=x.length),ie=pe,se=x.slice(0,pe),Z=se.length;Z<pe;se[Z++]=0);Te=k.slice(),Te=[0].concat(Te),_e=k[0],k[1]>=A/2&&_e++;do{if(q=0,S=d(k,se,pe,Z),S<0){if(oe=se[0],pe!=Z&&(oe=oe*A+(se[1]||0)),q=ht(oe/_e),q>1)for(q>=A&&(q=A-1),Y=u(k,q,A),te=Y.length,Z=se.length;d(Y,se,te,Z)==1;)q--,m(Y,pe<te?Te:k,te,A),te=Y.length,S=1;else q==0&&(S=q=1),Y=k.slice(),te=Y.length;if(te<Z&&(Y=[0].concat(Y)),m(se,Y,Z,A),Z=se.length,S==-1)for(;d(k,se,pe,Z)<1;)q++,m(se,pe<Z?Te:k,Z,A),Z=se.length}else S===0&&(q++,se=[0]);fe[O++]=q,se[0]?se[Z++]=x[ie]||0:(se=[x[ie]],Z=1)}while((ie++<ye||se[0]!=null)&&we--);H=se[0]!=null,fe[0]||fe.splice(0,1)}if(A==lt){for(O=1,we=fe[0];we>=10;we/=10,O++);I(le,C+(le.e=O+y*de-1)+1,B,H)}else le.e=y,le.r=+H;return le}}();function V(u,d,m,w){var _,C,B,A,S;if(m==null?m=r:ke(m,0,8),!u.c)return u.toString();if(_=u.c[0],B=u.e,d==null)S=Je(u.c),S=w==1||w==2&&(B<=i||B>=c)?Oo(S,B):wt(S,B,"0");else if(u=I(new b(u),d,m),C=u.e,S=Je(u.c),A=S.length,w==1||w==2&&(d<=C||C<=i)){for(;A<d;S+="0",A++);S=Oo(S,C)}else if(d-=B,S=wt(S,C,"0"),C+1>A){if(--d>0)for(S+=".";d--;S+="0");}else if(d+=C-A,d>0)for(C+1==A&&(S+=".");d--;S+="0");return u.s<0&&_?"-"+S:S}function D(u,d){for(var m,w=1,_=new b(u[0]);w<u.length;w++)if(m=new b(u[w]),m.s)d.call(_,m)&&(_=m);else{_=m;break}return _}function M(u,d,m){for(var w=1,_=d.length;!d[--_];d.pop());for(_=d[0];_>=10;_/=10,w++);return(m=w+m*de-1)>f?u.c=u.e=null:m<v?u.c=[u.e=0]:(u.e=m,u.c=d),u}o=function(){var u=/^(-?)0([xbo])(?=\w[\w.]*$)/i,d=/^([^.]+)\.$/,m=/^\.([^.]+)$/,w=/^-?(Infinity|NaN)$/,_=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(C,B,A,S){var y,O=A?B:B.replace(_,"");if(w.test(O))C.s=isNaN(O)?null:O<0?-1:1;else{if(!A&&(O=O.replace(u,function(H,q,Y){return y=(Y=Y.toLowerCase())=="x"?16:Y=="b"?2:8,!S||S==y?q:H}),S&&(y=S,O=O.replace(d,"$1").replace(m,"0.$1")),B!=O))return new b(O,y);if(b.DEBUG)throw Error(Ke+"Not a"+(S?" base "+S:"")+" number: "+B);C.s=null}C.c=C.e=null}}();function I(u,d,m,w){var _,C,B,A,S,y,O,H=u.c,q=jl;if(H){e:{for(_=1,A=H[0];A>=10;A/=10,_++);if(C=d-_,C<0)C+=de,B=d,S=H[y=0],O=S/q[_-B-1]%10|0;else if(y=Rl((C+1)/de),y>=H.length)if(w){for(;H.length<=y;H.push(0));S=O=0,_=1,C%=de,B=C-de+1}else break e;else{for(S=A=H[y],_=1;A>=10;A/=10,_++);C%=de,B=C-de+_,O=B<0?0:S/q[_-B-1]%10|0}if(w=w||d<0||H[y+1]!=null||(B<0?S:S%q[_-B-1]),w=m<4?(O||w)&&(m==0||m==(u.s<0?3:2)):O>5||O==5&&(m==4||w||m==6&&(C>0?B>0?S/q[_-B]:0:H[y-1])%10&1||m==(u.s<0?8:7)),d<1||!H[0])return H.length=0,w?(d-=u.e+1,H[0]=q[(de-d%de)%de],u.e=-d||0):H[0]=u.e=0,u;if(C==0?(H.length=y,A=1,y--):(H.length=y+1,A=q[de-C],H[y]=B>0?ht(S/q[_-B]%q[B])*A:0),w)for(;;)if(y==0){for(C=1,B=H[0];B>=10;B/=10,C++);for(B=H[0]+=A,A=1;B>=10;B/=10,A++);C!=A&&(u.e++,H[0]==lt&&(H[0]=1));break}else{if(H[y]+=A,H[y]!=lt)break;H[y--]=0,A=1}for(C=H.length;H[--C]===0;H.pop());}u.e>f?u.c=u.e=null:u.e<v&&(u.c=[u.e=0])}return u}function j(u){var d,m=u.e;return m===null?u.toString():(d=Je(u.c),d=m<=i||m>=c?Oo(d,m):wt(d,m,"0"),u.s<0?"-"+d:d)}return l.absoluteValue=l.abs=function(){var u=new b(this);return u.s<0&&(u.s=1),u},l.comparedTo=function(u,d){return vn(this,new b(u,d))},l.decimalPlaces=l.dp=function(u,d){var m,w,_,C=this;if(u!=null)return ke(u,0,Re),d==null?d=r:ke(d,0,8),I(new b(C),u+C.e+1,d);if(!(m=C.c))return null;if(w=((_=m.length-1)-Ze(this.e/de))*de,_=m[_])for(;_%10==0;_/=10,w--);return w<0&&(w=0),w},l.dividedBy=l.div=function(u,d){return t(this,new b(u,d),s,r)},l.dividedToIntegerBy=l.idiv=function(u,d){return t(this,new b(u,d),0,1)},l.exponentiatedBy=l.pow=function(u,d){var m,w,_,C,B,A,S,y,O,H=this;if(u=new b(u),u.c&&!u.isInteger())throw Error(Ke+"Exponent not an integer: "+j(u));if(d!=null&&(d=new b(d)),A=u.e>14,!H.c||!H.c[0]||H.c[0]==1&&!H.e&&H.c.length==1||!u.c||!u.c[0])return O=new b(Math.pow(+j(H),A?u.s*(2-Eo(u)):+j(u))),d?O.mod(d):O;if(S=u.s<0,d){if(d.c?!d.c[0]:!d.s)return new b(NaN);w=!S&&H.isInteger()&&d.isInteger(),w&&(H=H.mod(d))}else{if(u.e>9&&(H.e>0||H.e<-1||(H.e==0?H.c[0]>1||A&&H.c[1]>=24e7:H.c[0]<8e13||A&&H.c[0]<=9999975e7)))return C=H.s<0&&Eo(u)?-0:0,H.e>-1&&(C=1/C),new b(S?1/C:C);E&&(C=Rl(E/de+2))}for(A?(m=new b(.5),S&&(u.s=1),y=Eo(u)):(_=Math.abs(+j(u)),y=_%2),O=new b(a);;){if(y){if(O=O.times(H),!O.c)break;C?O.c.length>C&&(O.c.length=C):w&&(O=O.mod(d))}if(_){if(_=ht(_/2),_===0)break;y=_%2}else if(u=u.times(m),I(u,u.e+1,1),u.e>14)y=Eo(u);else{if(_=+j(u),_===0)break;y=_%2}H=H.times(H),C?H.c&&H.c.length>C&&(H.c.length=C):w&&(H=H.mod(d))}return w?O:(S&&(O=a.div(O)),d?O.mod(d):C?I(O,E,r,B):O)},l.integerValue=function(u){var d=new b(this);return u==null?u=r:ke(u,0,8),I(d,d.e+1,u)},l.isEqualTo=l.eq=function(u,d){return vn(this,new b(u,d))===0},l.isFinite=function(){return!!this.c},l.isGreaterThan=l.gt=function(u,d){return vn(this,new b(u,d))>0},l.isGreaterThanOrEqualTo=l.gte=function(u,d){return(d=vn(this,new b(u,d)))===1||d===0},l.isInteger=function(){return!!this.c&&Ze(this.e/de)>this.c.length-2},l.isLessThan=l.lt=function(u,d){return vn(this,new b(u,d))<0},l.isLessThanOrEqualTo=l.lte=function(u,d){return(d=vn(this,new b(u,d)))===-1||d===0},l.isNaN=function(){return!this.s},l.isNegative=function(){return this.s<0},l.isPositive=function(){return this.s>0},l.isZero=function(){return!!this.c&&this.c[0]==0},l.minus=function(u,d){var m,w,_,C,B=this,A=B.s;if(u=new b(u,d),d=u.s,!A||!d)return new b(NaN);if(A!=d)return u.s=-d,B.plus(u);var S=B.e/de,y=u.e/de,O=B.c,H=u.c;if(!S||!y){if(!O||!H)return O?(u.s=-d,u):new b(H?B:NaN);if(!O[0]||!H[0])return H[0]?(u.s=-d,u):new b(O[0]?B:r==3?-0:0)}if(S=Ze(S),y=Ze(y),O=O.slice(),A=S-y){for((C=A<0)?(A=-A,_=O):(y=S,_=H),_.reverse(),d=A;d--;_.push(0));_.reverse()}else for(w=(C=(A=O.length)<(d=H.length))?A:d,A=d=0;d<w;d++)if(O[d]!=H[d]){C=O[d]<H[d];break}if(C&&(_=O,O=H,H=_,u.s=-u.s),d=(w=H.length)-(m=O.length),d>0)for(;d--;O[m++]=0);for(d=lt-1;w>A;){if(O[--w]<H[w]){for(m=w;m&&!O[--m];O[m]=d);--O[m],O[w]+=lt}O[w]-=H[w]}for(;O[0]==0;O.splice(0,1),--y);return O[0]?M(u,O,y):(u.s=r==3?-1:1,u.c=[u.e=0],u)},l.modulo=l.mod=function(u,d){var m,w,_=this;return u=new b(u,d),!_.c||!u.s||u.c&&!u.c[0]?new b(NaN):!u.c||_.c&&!_.c[0]?new b(_):(g==9?(w=u.s,u.s=1,m=t(_,u,0,3),u.s=w,m.s*=w):m=t(_,u,0,g),u=_.minus(m.times(u)),!u.c[0]&&g==1&&(u.s=_.s),u)},l.multipliedBy=l.times=function(u,d){var m,w,_,C,B,A,S,y,O,H,q,Y,te,le,fe,se=this,Z=se.c,oe=(u=new b(u,d)).c;if(!Z||!oe||!Z[0]||!oe[0])return!se.s||!u.s||Z&&!Z[0]&&!oe||oe&&!oe[0]&&!Z?u.c=u.e=u.s=null:(u.s*=se.s,!Z||!oe?u.c=u.e=null:(u.c=[0],u.e=0)),u;for(w=Ze(se.e/de)+Ze(u.e/de),u.s*=se.s,S=Z.length,H=oe.length,S<H&&(te=Z,Z=oe,oe=te,_=S,S=H,H=_),_=S+H,te=[];_--;te.push(0));for(le=lt,fe=Mt,_=H;--_>=0;){for(m=0,q=oe[_]%fe,Y=oe[_]/fe|0,B=S,C=_+B;C>_;)y=Z[--B]%fe,O=Z[B]/fe|0,A=Y*y+O*q,y=q*y+A%fe*fe+te[C]+m,m=(y/le|0)+(A/fe|0)+Y*O,te[C--]=y%le;te[C]=m}return m?++w:te.splice(0,1),M(u,te,w)},l.negated=function(){var u=new b(this);return u.s=-u.s||null,u},l.plus=function(u,d){var m,w=this,_=w.s;if(u=new b(u,d),d=u.s,!_||!d)return new b(NaN);if(_!=d)return u.s=-d,w.minus(u);var C=w.e/de,B=u.e/de,A=w.c,S=u.c;if(!C||!B){if(!A||!S)return new b(_/0);if(!A[0]||!S[0])return S[0]?u:new b(A[0]?w:_*0)}if(C=Ze(C),B=Ze(B),A=A.slice(),_=C-B){for(_>0?(B=C,m=S):(_=-_,m=A),m.reverse();_--;m.push(0));m.reverse()}for(_=A.length,d=S.length,_-d<0&&(m=S,S=A,A=m,d=_),_=0;d;)_=(A[--d]=A[d]+S[d]+_)/lt|0,A[d]=lt===A[d]?0:A[d]%lt;return _&&(A=[_].concat(A),++B),M(u,A,B)},l.precision=l.sd=function(u,d){var m,w,_,C=this;if(u!=null&&u!==!!u)return ke(u,1,Re),d==null?d=r:ke(d,0,8),I(new b(C),u,d);if(!(m=C.c))return null;if(_=m.length-1,w=_*de+1,_=m[_]){for(;_%10==0;_/=10,w--);for(_=m[0];_>=10;_/=10,w++);}return u&&C.e+1>w&&(w=C.e+1),w},l.shiftedBy=function(u){return ke(u,-$l,$l),this.times("1e"+u)},l.squareRoot=l.sqrt=function(){var u,d,m,w,_,C=this,B=C.c,A=C.s,S=C.e,y=s+4,O=new b("0.5");if(A!==1||!B||!B[0])return new b(!A||A<0&&(!B||B[0])?NaN:B?C:1/0);if(A=Math.sqrt(+j(C)),A==0||A==1/0?(d=Je(B),(d.length+S)%2==0&&(d+="0"),A=Math.sqrt(+d),S=Ze((S+1)/2)-(S<0||S%2),A==1/0?d="5e"+S:(d=A.toExponential(),d=d.slice(0,d.indexOf("e")+1)+S),m=new b(d)):m=new b(A+""),m.c[0]){for(S=m.e,A=S+y,A<3&&(A=0);;)if(_=m,m=O.times(_.plus(t(C,_,y,1))),Je(_.c).slice(0,A)===(d=Je(m.c)).slice(0,A))if(m.e<S&&--A,d=d.slice(A-3,A+1),d=="9999"||!w&&d=="4999"){if(!w&&(I(_,_.e+s+2,0),_.times(_).eq(C))){m=_;break}y+=4,A+=4,w=1}else{(!+d||!+d.slice(1)&&d.charAt(0)=="5")&&(I(m,m.e+s+2,1),u=!m.times(m).eq(C));break}}return I(m,m.e+s+1,r,u)},l.toExponential=function(u,d){return u!=null&&(ke(u,0,Re),u++),V(this,u,d,1)},l.toFixed=function(u,d){return u!=null&&(ke(u,0,Re),u=u+this.e+1),V(this,u,d)},l.toFormat=function(u,d,m){var w,_=this;if(m==null)u!=null&&d&&typeof d=="object"?(m=d,d=null):u&&typeof u=="object"?(m=u,u=d=null):m=R;else if(typeof m!="object")throw Error(Ke+"Argument not an object: "+m);if(w=_.toFixed(u,d),_.c){var C,B=w.split("."),A=+m.groupSize,S=+m.secondaryGroupSize,y=m.groupSeparator||"",O=B[0],H=B[1],q=_.s<0,Y=q?O.slice(1):O,te=Y.length;if(S&&(C=A,A=S,S=C,te-=C),A>0&&te>0){for(C=te%A||A,O=Y.substr(0,C);C<te;C+=A)O+=y+Y.substr(C,A);S>0&&(O+=y+Y.slice(C)),q&&(O="-"+O)}w=H?O+(m.decimalSeparator||"")+((S=+m.fractionGroupSize)?H.replace(new RegExp("\\d{"+S+"}\\B","g"),"$&"+(m.fractionGroupSeparator||"")):H):O}return(m.prefix||"")+w+(m.suffix||"")},l.toFraction=function(u){var d,m,w,_,C,B,A,S,y,O,H,q,Y=this,te=Y.c;if(u!=null&&(A=new b(u),!A.isInteger()&&(A.c||A.s!==1)||A.lt(a)))throw Error(Ke+"Argument "+(A.isInteger()?"out of range: ":"not an integer: ")+j(A));if(!te)return new b(Y);for(d=new b(a),y=m=new b(a),w=S=new b(a),q=Je(te),C=d.e=q.length-Y.e-1,d.c[0]=jl[(B=C%de)<0?de+B:B],u=!u||A.comparedTo(d)>0?C>0?d:y:A,B=f,f=1/0,A=new b(q),S.c[0]=0;O=t(A,d,0,1),_=m.plus(O.times(w)),_.comparedTo(u)!=1;)m=w,w=_,y=S.plus(O.times(_=y)),S=_,d=A.minus(O.times(_=d)),A=_;return _=t(u.minus(m),w,0,1),S=S.plus(_.times(y)),m=m.plus(_.times(w)),S.s=y.s=Y.s,C=C*2,H=t(y,w,C,r).minus(Y).abs().comparedTo(t(S,m,C,r).minus(Y).abs())<1?[y,w]:[S,m],f=B,H},l.toNumber=function(){return+j(this)},l.toPrecision=function(u,d){return u!=null&&ke(u,1,Re),V(this,u,d,2)},l.toString=function(u){var d,m=this,w=m.s,_=m.e;return _===null?w?(d="Infinity",w<0&&(d="-"+d)):d="NaN":(u==null?d=_<=i||_>=c?Oo(Je(m.c),_):wt(Je(m.c),_,"0"):u===10&&T?(m=I(new b(m),s+_+1,r),d=wt(Je(m.c),m.e,"0")):(ke(u,2,P.length,"Base"),d=n(wt(Je(m.c),_,"0"),10,u,w,!0)),w<0&&m.c[0]&&(d="-"+d)),d},l.valueOf=l.toJSON=function(){return j(this)},l._isBigNumber=!0,l[Symbol.toStringTag]="BigNumber",l[Symbol.for("nodejs.util.inspect.custom")]=l.valueOf,e!=null&&b.set(e),b}function Ze(e){var t=e|0;return e>0||e===t?t:t-1}function Je(e){for(var t,n,o=1,l=e.length,a=e[0]+"";o<l;){for(t=e[o++]+"",n=de-t.length;n--;t="0"+t);a+=t}for(l=a.length;a.charCodeAt(--l)===48;);return a.slice(0,l+1||1)}function vn(e,t){var n,o,l=e.c,a=t.c,s=e.s,r=t.s,i=e.e,c=t.e;if(!s||!r)return null;if(n=l&&!l[0],o=a&&!a[0],n||o)return n?o?0:-r:s;if(s!=r)return s;if(n=s<0,o=i==c,!l||!a)return o?0:!l^n?1:-1;if(!o)return i>c^n?1:-1;for(r=(i=l.length)<(c=a.length)?i:c,s=0;s<r;s++)if(l[s]!=a[s])return l[s]>a[s]^n?1:-1;return i==c?0:i>c^n?1:-1}function ke(e,t,n,o){if(e<t||e>n||e!==ht(e))throw Error(Ke+(o||"Argument")+(typeof e=="number"?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Eo(e){var t=e.c.length-1;return Ze(e.e/de)==t&&e.c[t]%2!=0}function Oo(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function wt(e,t,n){var o,l;if(t<0){for(l=n+".";++t;l+=n);e=l+e}else if(o=e.length,++t>o){for(l=n,t-=o;--t;l+=n);e+=l}else t<o&&(e=e.slice(0,t)+"."+e.slice(t));return e}var Ae=Zs();function Js(e,t,n,o,l,a,s){function r(D){return isNaN(D)||D===null||D===void 0||D===""}function i(D){e.disabled=D}function c(D){return D=D==null||D===""?"":String(D),D=D.replace(new RegExp(e.prefix,"g"),"").replace(new RegExp(e.suffix,"g"),"").replace(/\,/g,""),e.groupSeparator&&e.groupSeparator!==","&&(D=D.replace(new RegExp(`\\${e.groupSeparator}`,"g"),"")),e.decimalSeparator&&e.decimalSeparator!=="."&&(D=D.replace(new RegExp(`\\${e.decimalSeparator}`,"g"),".")),D}function v(){return Number(e.precision||0)}function f(D){return e.precision!==null&&e.precision!==void 0?D.toFixed(v()):D.toFixed()}function p(D){const M=f(D);return e.bigNumber?M:Number(D)}function g(D,M){if(e.parser)return isNaN(Number(D))?e.parser(D):D;let I=T(new Ae(D),M);if(I.isNaN()){if(e.canNull)return null;{const j=new Ae(""+e.min),u=new Ae(""+e.max);if(!j.isNaN())I=j;else if(!u.isNaN())I=u;else return 0}}return p(I)}function E(D,M){return M===void 0&&(M=n.value),M=new Ae(M),!(D==="up"&&e.max&&!new Ae(e.max).isNaN()&&M.gte(new Ae(e.max))||D==="down"&&e.min&&!new Ae(e.min).isNaN()&&M.lte(new Ae(e.min)))}function R(){return{prefix:e.prefix,suffix:e.suffix,decimalSeparator:e.decimalSeparator,groupSeparator:e.useThousands?e.groupSeparator:"",groupSize:e.groupSize}}function P(D,M){M||(M=l.value),M==="beginValue"?(a.value=D,t.emit("beginValueChange",D)):M==="endValue"&&(s.value=D,t.emit("endValueChange",D))}function T(D,M){let I=D;if(!r(e.max)){const j=new Ae(""+e.max);if(D.gt(j)){I=j;const u=p(j);P(u,M)}}if(!r(e.min)){const j=new Ae(""+e.min);if(D.lt(j)){I=j;const u=p(j);P(u,M)}}return I}function b(D){D=c(D);const M=new Ae(D),I=T(M);return I.valueOf()=="0"&&!e.showZero||e.canNull&&M.isNaN()||I.isNaN()?"":e.formatter?e.formatter(I.toNumber()):(Object.keys(o.value).length||(o.value=R()),V(I,o.value))}function V(D,M){return e.precision!==null&&e.precision!==void 0?D.toFormat(v(),M):D.toFormat(M)}return{isEmpty:r,setDisabledState:i,cleanNumString:c,getPrecision:v,toFixed:f,_getRealValue:p,getRealValue:g,isDisableOfBtn:E,buildFormatOptions:R,_modelChanged:P,validInterval:T,format:b,_toFormat:V}}function qf(e,t,n,o,l,a,s,r,i,c,v){const{isDisableOfBtn:f,format:p,getRealValue:g,isEmpty:E,_modelChanged:R}=Js(e,t,n,a,s,r,i);function P(u,d="change"){let m=u;d==="change"&&(m=g(u),R(m))}function T(u,d){if(e.readonly||e.disabled||!e.editable){l.value=!1;return}const m=d==="beginValue"?r.value:i.value;if(f(u,m)){let w;const _=new Ae(m||0);u==="up"?w=_.plus(Number(e.step)):w=_.minus(Number(e.step));const C=w.toFixed();d==="beginValue"?c.value=l.value?C:p(C):d==="endValue"&&(v.value=l.value?C:p(C)),R(g(w,d),d)}}function b(u,d){T("up",d),u.stopPropagation()}function V(u,d){T("down",d),u.stopPropagation()}function D(u,d){if(u.stopPropagation(),e.readonly||e.disabled||!e.editable)return;d==="beginValue"?(c.value=p(r.value),P(r.value,"blur")):d==="endValue"&&(v.value=p(i.value),P(i.value,"blur")),l.value=!1;const m={eventTarget:s.value,event:u,beginValue:r.value,formatBeginValue:p(r.value),endValue:i.value,formatEndValue:p(i.value)};t.emit("focus",m),s.value=""}function M(u,d){if(u.stopPropagation(),e.readonly||e.disabled||!e.editable){l.value=!1,s.value="";return}s.value=d,l.value=!0,d==="beginValue"?c.value=E(r.value)||!e.showZero&&r.value==="0"?"":r.value:d==="endValue"&&(v.value=E(i.value)||!e.showZero&&i.value==="0"?"":i.value);const m={eventTarget:s.value,event:u,beginValue:r.value,formatBeginValue:p(r.value),endValue:i.value,formatEndValue:p(i.value)};t.emit("focus",m)}function I(u){var m;u.stopPropagation();const d=(m=u.target)==null?void 0:m.value;s.value==="beginValue"?c.value=d:s.value==="endValue"&&(v.value=d),P(d,"change")}function j(u){u.key==="ArrowDown"&&(u.preventDefault(),V(u,s.value)),u.key==="ArrowUp"&&(u.preventDefault(),b(u,s.value)),u.stopPropagation()}return{onModelChange:P,up:b,down:V,onBlurTextBox:D,onFocusTextBox:M,onInput:I,onKeyDown:j}}const lp="",er=me({name:"FNumberRange",props:Kf,emits:["valueChange","blur","focus","click","input","beginValueChange","endValueChange"],setup(e,t){const n=N(null),o=N(null),l=N(null),a=N(""),s=N(!1),r=N(""),i=N(""),c=N(""),v=N({}),{isDisableOfBtn:f,format:p,buildFormatOptions:g,getRealValue:E}=Js(e,t,n,v,a,o,l),{onFocusTextBox:R,onBlurTextBox:P,onInput:T,up:b,down:V,onKeyDown:D}=qf(e,t,n,r,s,v,a,o,l,i,c);return Gt(()=>{const M=E(e.beginValue);o.value=M,i.value=p(M);const I=E(e.endValue);l.value=I,c.value=p(I)}),Ee(()=>[e.precision,e.useThousands,e.prefix,e.suffix],([M,I,j,u])=>{v.value=g(),i.value=p(o.value),c.value=p(l.value)}),()=>h("div",null,[h("div",{class:"input-group number-range f-cmp-number-spinner"},[h("div",{class:"form-control input-container"},[h("div",{class:"sub-input-group"},[h("input",{class:"sub-input form-contro",style:{"text-align":e.textAlign},type:"text",value:i.value,onBlur:M=>P(M,"beginValue"),onFocus:M=>R(M,"beginValue"),onInput:M=>T(M,"change"),disabled:e.disabled,readonly:e.readonly||!e.editable,placeholder:e.disabled||e.readonly||!e.editable?"":e.beginPlaceHolder,onKeydown:M=>{D(M)}},null),!e.disabled&&!e.readonly&&e.showButton&&h("div",{class:"input-group-append btn-group btn-group-number sub-btn-group"},[h("button",{title:"up-button",class:"btn btn-secondary btn-number-flag",style:{cursor:f("up",o.value)?"pointer":"not-allowed"},onClick:M=>{b(M,"beginValue")},disabled:!f("up",o.value)},[h("span",{class:"icon k-i-arrow-chevron-up number-arrow-chevron"},null)]),h("button",{title:"down-button",class:"btn btn-secondary btn-number-flag",style:{cursor:f("down",o.value)?"pointer":"not-allowed"},onClick:M=>{V(M,"beginValue")},disabled:!f("down",o.value)},[h("span",{class:"icon k-i-arrow-chevron-down number-arrow-chevron"},null)])])]),h("span",{class:"spliter"},[ct("~")]),h("div",{class:"sub-input-group"},[h("input",{class:"sub-input form-contro",style:{"text-align":e.textAlign},type:"text",value:c.value,onBlur:M=>P(M,"endValue"),onFocus:M=>R(M,"endValue"),onInput:M=>T(M,"change"),disabled:e.disabled,readonly:e.readonly||!e.editable,placeholder:e.disabled||e.readonly||!e.editable?"":e.endPlaceHolder,onKeydown:M=>{D(M)}},null),!e.disabled&&!e.readonly&&e.showButton&&h("div",{class:"input-group-append btn-group btn-group-number sub-btn-group"},[h("button",{title:"up-button",class:"btn btn-secondary btn-number-flag",style:{cursor:f("up",l.value)?"pointer":"not-allowed"},onClick:M=>{b(M,"endValue")},disabled:!f("up",l.value)},[h("span",{class:"icon k-i-arrow-chevron-up number-arrow-chevron"},null)]),h("button",{title:"down-button",class:"btn btn-secondary btn-number-flag",style:{cursor:f("down",l.value)?"pointer":"not-allowed"},onClick:M=>{V(M,"endValue")},disabled:!f("down",l.value)},[h("span",{class:"icon k-i-arrow-chevron-down number-arrow-chevron"},null)])])])])])])}}),Qf={install(e){e.component(er.name,er)}},Xf={id:String,disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},formatter:{type:Function},parser:{type:Function},placeholder:{type:String,default:"\u8BF7\u8F93\u5165\u6570\u5B57"},step:{type:Number,default:1},max:{type:String},min:{type:String},bigNumber:{type:Boolean,default:!1},showButton:{type:Boolean,default:!0},useThousands:{type:Boolean,default:!0},textAlign:{type:String,default:"left"},autoDecimal:{type:Boolean,default:!0},canNull:{type:Boolean,default:!1},precision:{type:Number,default:0},prefix:{type:String,default:""},suffix:{type:String,default:""},decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},groupSize:{type:Number,default:3},value:{type:String,default:""},showZero:{type:Boolean,default:!0}};function tr(e,t,n,o){function l(T){return isNaN(T)||T===null||T===void 0||T===""}function a(T){e.disabled=T}function s(T){return T=T==null||T===""?"":String(T),T=T.replace(new RegExp(e.prefix,"g"),"").replace(new RegExp(e.suffix,"g"),"").replace(/\,/g,""),e.groupSeparator&&e.groupSeparator!==","&&(T=T.replace(new RegExp(`\\${e.groupSeparator}`,"g"),"")),e.decimalSeparator&&e.decimalSeparator!=="."&&(T=T.replace(new RegExp(`\\${e.decimalSeparator}`,"g"),".")),T}function r(){return Number(e.precision||0)}function i(T){return e.precision!==null&&e.precision!==void 0?T.toFixed(r()):T.toFixed()}function c(T){const b=i(T);return e.bigNumber?b:Number(T)}function v(T){let b=T;if(!l(e.max)){const V=new Ae(""+e.max);T.gt(V)&&(b=V)}if(!l(e.min)){const V=new Ae(""+e.min);T.lt(V)&&(b=V)}return b}function f(T){if(e.parser)return isNaN(Number(T))?e.parser(T):T;let b=v(new Ae(T));if(b.isNaN()){if(e.canNull)return null;const V=new Ae(""+e.min),D=new Ae(""+e.max);if(!V.isNaN())b=V;else if(!D.isNaN())b=D;else return 0}return c(b)}function p(T,b){b===void 0&&(b=n.value);const V=new Ae(b);return!(T==="up"&&e.max&&!new Ae(e.max).isNaN()&&V.gte(new Ae(e.max))||T==="down"&&e.min&&!new Ae(e.min).isNaN()&&V.lte(new Ae(e.min)))}function g(){return{prefix:e.prefix,suffix:e.suffix,decimalSeparator:e.decimalSeparator,groupSeparator:e.useThousands?e.groupSeparator:"",groupSize:e.groupSize}}function E(T){n.value=T,t.emit("valueChange",T)}function R(T,b){return e.precision!==null&&e.precision!==void 0?T.toFormat(r(),b):T.toFormat(b)}function P(T){T=s(T);const b=new Ae(T),V=v(b);return V.valueOf()==="0"&&!e.showZero||e.canNull&&b.isNaN()||V.isNaN()?"":e.formatter?e.formatter(V.toNumber()):(Object.keys(o.value).length||(o.value=g()),R(V,o.value))}return{isEmpty:l,setDisabledState:a,cleanNumString:s,getPrecision:r,toFixed:i,_getRealValue:c,getRealValue:f,isDisableOfBtn:p,buildFormatOptions:g,_modelChanged:E,validInterval:v,format:P,_toFormat:R}}function Zf(e,t,n,o,l,a){N(""),N(!1);const{isDisableOfBtn:s,format:r,getRealValue:i,cleanNumString:c,isEmpty:v,_modelChanged:f}=tr(e,t,n,a);function p(D,M="change"){let I=D;M==="change"&&(I=i(D),f(I))}function g(D){if(e.readonly||e.disabled||!e.editable){l.value=!1;return}if(s(D)){let M;const I=new Ae(n.value||0);D==="up"?M=I.plus(Number(e.step)):M=I.minus(Number(e.step));const j=M.toFixed();l.value?o.value=j:o.value=r(j),f(i(M))}}function E(D){g("up"),D.stopPropagation()}function R(D){g("down"),D.stopPropagation()}function P(D){D.stopPropagation(),!(e.readonly||e.disabled)&&(o.value=r(n.value),l.value=!1,p(n.value,"blur"),t.emit("blur",{event:D,formatted:o.value,value:n.value}))}function T(D){if(D.stopPropagation(),e.readonly||e.disabled){l.value=!1;return}o.value=v(n.value)||!e.showZero&&n.value==="0"?"":n.value,l.value=!0,t.emit("focus",{event:D,formatted:o.value,value:n.value})}function b(D){var M;D.stopPropagation(),e.disabled,o.value=(M=D.target)==null?void 0:M.value,p(o.value,"change")}function V(D){D.key==="ArrowDown"&&(D.preventDefault(),R(D)),D.key==="ArrowUp"&&(D.preventDefault(),E(D)),D.stopPropagation()}return{onModelChange:p,up:E,down:R,onBlurTextBox:P,onFocusTextBox:T,onInput:b,onKeyDown:V}}const ap="",nr=me({name:"FNumberSpinner",props:Xf,emits:["valueChange","blur","focus","click","input"],setup(e,t){const n=N(null),o=N(!1),l=N(""),a=N({}),{isDisableOfBtn:s,format:r,buildFormatOptions:i,getRealValue:c}=tr(e,t,n,a),{onFocusTextBox:v,onBlurTextBox:f,onInput:p,up:g,down:E,onKeyDown:R}=Zf(e,t,n,l,o,a);return Gt(()=>{const P=c(e.value);n.value=P,l.value=r(P)}),Ee(()=>[e.precision,e.useThousands,e.prefix,e.suffix],([P,T,b,V])=>{a.value=i(),l.value=r(n.value)}),()=>h("div",null,[h("div",{class:"input-group f-state-hover flex-row"},[h("input",{class:"form-control f-utils-fill",style:{"text-align":e.textAlign},type:"text",value:l.value,onBlur:f,onFocus:v,onInput:P=>p(P,"change"),disabled:e.disabled,readonly:e.readonly||!e.editable,placeholder:e.disabled||e.readonly||!e.editable?"":e.placeholder,onKeydown:P=>{R(P)}},null),!e.disabled&&!e.readonly&&e.showButton&&h("div",{class:"input-group-append btn-group btn-group-number"},[h("button",{title:"upButton",class:"btn btn-secondary btn-number-flag",style:{cursor:s("up")?"pointer":"not-allowed"},onClick:P=>{g(P)},disabled:!s("up")},[h("span",{class:"icon k-i-arrow-chevron-up number-arrow-chevron"},null)]),h("button",{title:"downButton",class:"btn btn-secondary btn-number-flag",style:{cursor:s("down")?"pointer":"not-allowed"},onClick:P=>{E(P)},disabled:!s("down")},[h("span",{class:"icon k-i-arrow-chevron-down number-arrow-chevron"},null)])])])])}}),Jf={install(e){e.component(nr.name,nr)}},ed={currentPage:{type:Number,default:1},mode:{type:String,default:"default"},pageSize:{type:Number,default:20},totalItems:{type:Number,default:0}};function td(e,t){const n=N("\u8DF3\u8F6C\u81F3"),o=N(""),l=N(e.value);function a(){e.value=l.value}function s(c){c.key==="Enter"&&a()}function r(c){l.value=c.target.valueAsNumber}function i(){return h("li",{class:"page-goto-input",style:"padding-left: 10px; white-space: nowrap;"},[h("span",{class:"pg-message-text"},[n.value]),h("input",{class:"form-control farris-gotopagenumber",title:"page-number",value:e.value,type:"number",min:"1",max:t.value,style:"display: inline-block;margin-left:3px;",onChange:()=>a(),onInput:c=>r(c),onKeyup:c=>s(c)},null),o.value])}return{renderGotoButton:i}}function nd(e,t,n){const o=F(()=>({"page-item":!0,disabled:t.value}));function l(i){e.value=e.value<n.value?e.value+1:n.value}function a(i){e.value=n.value}function s(){return h("li",{class:o.value},[!t.value&&h("a",{class:"page-link",tabindex:"0",onClick:i=>l()},[h("span",{class:"f-icon f-page-next"},null)]),t.value&&h("span",{class:"page-link"},[h("span",{class:"f-icon f-page-next"},null)])])}function r(){return h("li",{class:o.value},[!t.value&&h("a",{class:"page-link",tabindex:"0",onClick:i=>a()},[h("span",{class:"f-icon f-page-last"},null)]),t.value&&h("span",{class:"page-link"},[h("span",{class:"f-icon f-page-last"},null)])])}return{renderLastPage:r,renderNextPage:s}}function od(e,t){const n=N("\u5171"),o=N("\u6761"),l=F(()=>({"pagination-message":!0,"text-truncate":!0,"d-flex":!0,"ml-auto":e.value==="right","flex-fill":e.value==="right"}));function a(){return h("li",{class:l.value},[h("div",{class:"text-truncate",style:"line-height: 26px"},[h("span",{class:"pg-message-text"},[n.value]),h("b",{class:"pg-message-total"},[t.value]),h("span",{class:"pg-message-text"},[o.value])])])}return{renderPageInfo:a}}function ld(e,t,n){const o=N(!1),l=N("\u663E\u793A"),a=N("\u6761"),s=F(()=>({dropup:!0,"dropdown-right":!0,"pg-pagelist":!0,"pagelist-disabled":n.value===0,show:o.value})),r=F(()=>({"dropdown-menu":!0,show:o.value})),i=g=>({"dropdown-item":!0,active:e.value===g});function c(g){o.value=!0}function v(g){o.value=!1}function f(g,E){e.value=E,o.value=!1}function p(){return h("li",{class:"pagination-pagelist"},[h("div",{class:s.value,onMouseenter:g=>c(),onMouseleave:g=>v()},[h("div",{class:"pg-pagelist-info"},[h("span",{class:"pagelist-text"},[l.value]),h("b",{class:"cur-pagesize"},[e.value]),h("span",{class:"pagelist-text"},[a.value]),h("i",{class:"f-icon f-icon-dropdown"},null)]),h("div",{class:r.value,style:"margin-bottom: -1px;"},[t.value.map(g=>h("li",{class:i(g),onClick:E=>f(E,g)},[h("span",null,[g])]))])])])}return{renderPageList:p}}function ad(e,t){const n=s=>({"page-item":!0,current:e.value===s.value,ellipsis:s.label==="..."}),o=s=>({"f-icon":!0,"f-icon-arrow-seek-left":s.value<e.value,"f-icon-arrow-seek-right":s.value>e.value});function l(s,r){e.value=r}function a(){return t.value.map(s=>h("li",{class:n(s)},[e.value!==s.value&&h("a",{class:"page-link",tabindex:"0",onClick:r=>l(r,s.value)},[h("span",{class:"page-link-label"},[s.label]),s.label==="..."&&h("i",{class:o(s)},null)]),e.value===s.value&&h("span",{class:"page-link"},[s.label])]))}return{renderPageNumbers:a}}function sd(e,t,n){const o=F(()=>({"page-item":!0,disabled:t.value}));function l(i){e.value=1}function a(i){e.value=e.value>2?e.value-1:1}function s(){return h("li",{class:o.value},[n.value&&h("a",{tabindex:"0",class:"page-link",onClick:i=>l()},[h("span",{class:"f-icon f-page-first"},null)]),t.value&&h("span",{class:"page-link"},[h("span",{class:"f-icon f-page-first"},null)])])}function r(){return h("li",{class:o.value},[n.value&&h("a",{tabindex:"0",class:"page-link",onClick:i=>a()},[h("span",{class:"f-icon f-page-pre"},null)]),t.value&&h("span",{class:"page-link"},[h("span",{class:"f-icon f-page-pre"},null)])])}return{renderFirstPage:s,renderPreviousPage:r}}function rd(e){const t=N([]);function n(l,a,s,r){const i=Math.ceil(s/2);return l===s?r:l===1?l:s<r?r-i<a?r-s+l:i<a?a-i+l:l:l}function o(l,a,s,r){const i=[],c=Math.ceil(s/a),v=Math.ceil(r/2),f=l<=v,p=c-v<l,g=!f&&!p,E=r<c;let R=1;for(;R<=c&&R<=r;){const P=n(R,l,r,c),T=R===2&&(g||p),b=R===r-1&&(g||f),V=E&&(T||b)?"...":""+P;i.push({label:V,value:P}),R++}t.value=i}return{pages:t,updatePages:o}}const sp="",or=me({name:"FPagination",props:ed,emits:["pageIndexChanged"],setup(e,t){const n=N(!1),o=N(e.mode),l=N(""),a=N(!1),s=N(e.pageSize),r=N(e.currentPage),i=N(e.totalItems),{pages:c,updatePages:v}=rd(),f=F(()=>r.value===1),p=F(()=>[20,50,100]),g=F(()=>Math.ceil(i.value/s.value)),E=F(()=>r.value===g.value),R=F(()=>!0),P=F(()=>r.value>1),T=F(()=>!(a.value&&c.value.length<=1)),b=F(()=>!0),V=F(()=>!0),D=F(()=>!0),M=F(()=>!0),{renderFirstPage:I,renderPreviousPage:j}=sd(r,f,P),{renderLastPage:u,renderNextPage:d}=nd(r,E,g),{renderPageInfo:m}=od(l,i),{renderPageList:w}=ld(s,p,i),{renderPageNumbers:_}=ad(r,c),{renderGotoButton:C}=td(r,g);v(r.value,s.value,i.value,7),Ee([r,s],()=>{v(r.value,s.value,i.value,7)}),Ee(r,()=>{t.emit("pageIndexChanged",r.value)});const B=F(()=>({"ngx-pagination":!0,pagination:!0,responsive:n.value,"pager-viewmode-default":o.value==="default","pager-viewmode-simple":o.value==="simple"})),A=F(()=>({position:"relative","justify-content":l.value==="center"?"center":"start"}));function S(){return h(Pe,null,[b.value&&m(),V.value&&w(),M.value&&I(),M.value&&j(),D.value&&_(),M.value&&d(),M.value&&u(),R.value&&C()])}function y(){return h(Pe,null,[h("li",{class:"page-item d-flex flex-fill"},null),M.value&&I(),M.value&&j(),C(),h("li",{class:"page-item page-separator",style:"margin-left: 10px"},[h("span",{style:"font-size: 15px; font-weight: 200;"},[ct(" /")])]),h("li",{class:"page-item page-total",style:"margin-left: 5px"},[h("span",{style:"font-size: 16px; font-weight: 600;"},[ct(" "),g.value])]),M.value&&d(),M.value&&u()])}return()=>h("div",{class:"pagination-container"},[T.value&&h("ul",{role:"navigation",class:B.value,style:A.value},[o.value==="default"?S():y()])])}}),id={install(e){e.component(or.name,or)}},ud={title:{type:String},placement:{type:String,default:"top"},reference:{type:Object}},rp="",lr=me({name:"FPopover",props:ud,emits:[],setup(e,t){let n=0,o=0;typeof window<"u"&&(n=document.documentElement.scrollLeft,o=document.documentElement.scrollTop);const l=N(),a=N(),s=N(e.placement),r=N("0px"),i=N("0px"),c=F(()=>!!e.title),v=N(!1),f=F(()=>{const P=`popover in popover-${s.value}`,T=`bs-popover-${s.value}`,b={};return b[P]=!0,b[T]=!0,b}),p=F(()=>({"popover-content":!0,"popover-body":!0})),g=F(()=>({left:r.value,top:i.value}));async function E(P){var T;if(a.value&&l.value){v.value=!0,await ut();const b=P.getBoundingClientRect(),V=l.value.getBoundingClientRect(),D=(T=a.value)==null?void 0:T.getBoundingClientRect();r.value=`${b.left+b.width/2+n}px`,i.value=`${b.top-(D.height+V.height)+o}px`}}function R(){v.value=!1}return t.expose({hide:R,show:E}),()=>h(Pe,null,[h(dl,{to:"body"},{default:()=>{var P;return[An(h("div",{ref:a,class:f.value,style:g.value},[h("div",{ref:l,class:"popover-arrow arrow"},null),c.value&&h("h3",{class:"popover-title popover-header"},[e.title]),h("div",{class:p.value},[t.slots.default&&((P=t.slots)==null?void 0:P.default())])]),[[ks,v.value]])]}})])}});function Il(e,t,n){e.stopPropagation(),t.value.value.show(n)}function ar(e,t){e.stopPropagation(),t.value.value.hide()}const cd={mounted:(e,t,n)=>{t.modifiers.hover?(e.addEventListener("mouseenter",o=>Il(o,t,e)),e.addEventListener("mouseleave",o=>ar(o,t))):t.modifiers.click?e.addEventListener("click",o=>Il(o,t,e)):(e.addEventListener("mouseenter",o=>Il(o,t,e)),e.addEventListener("mouseleave",o=>ar(o,t)))},unMounted:(e,t,n)=>{}},fd={install(e){e.component(lr.name,lr),e.directive("popover",cd)}},dd={id:String,name:{type:String,default:""},enumData:Array,textField:{type:String,default:"name"},valueField:{type:String,default:"value"},horizontal:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modelValue:{type:String,default:""},tabIndex:Number};function pd(e,t,n){const o=F(()=>!e.disabled),l=F(()=>e.enumData||[]);function a(i){return i[e.valueField]}function s(i){return i[e.textField]}function r(i,c){if(o.value){const v=a(i);n.value!==v&&(n.value=v,t.emit("changeValue",v),t.emit("update:modelValue",v))}c.stopPropagation()}return{enumData:l,getValue:a,getText:s,onClickRadio:r}}const sr=me({name:"FRadioGroup",props:dd,emits:["changeValue","update:modelValue"],setup(e,t){const n=N(e.modelValue),{enumData:o,onClickRadio:l,getValue:a,getText:s}=pd(e,t,n),r=F(()=>({"farris-checkradio-hor":e.horizontal}));return()=>h("div",{class:["farris-input-wrap",r.value]},[o.value.map((i,c)=>{const v="radio_"+e.name+c;return h("div",{class:"custom-control custom-radio"},[h("input",{type:"radio",class:"custom-control-input",name:e.name,id:v,value:a(i),checked:a(i)===n.value,disabled:e.disabled,tabindex:e.tabIndex,onClick:f=>l(i,f)},null),h("label",{class:"custom-control-label",for:v},[s(i)])])})])}}),hd={install(e){e.component(sr.name,sr)}},rr=me({name:"FSection",props:{contentClass:{type:String,default:""},maxStatus:{type:Boolean,default:!1},enableAccording:{type:Boolean,default:!1},enableCollapse:{type:Boolean,default:!0},mainTitle:{type:String,default:""},subTitle:{type:String,default:""},showHeader:{type:Boolean,default:!0},enableMaximize:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},expandStatus:{type:Boolean,default:!0},cotext:{type:Object},index:{type:Number},toolbarPosition:{type:String,default:""},toolbarButtons:{type:Array,default:[]},toolbar:{type:Object,default:{}},showToolbarMoreButton:{type:Boolean,default:!0},clickThrottleTime:{type:Number,default:350},headerClass:{type:String,default:""}},emits:[],setup(e,t){const n=F(()=>!0),o=F(()=>!0),l=F(()=>!0);F(()=>!1),F(()=>!1),F(()=>!1),F(()=>!1),N([]);const a=F(()=>{const f=e.headerClass.split(" "),p={"f-section-header":!0};return f.reduce((g,E)=>(g[E]=!0,g),p),p});F(()=>({"f-section-extend":!0}));const s=F(()=>{const f=e.contentClass.split(" "),p={"f-section-content":!0};return f.reduce((g,E)=>(g[E]=!0,g),p),p}),r=N(e.mainTitle),i=N(e.subTitle);function c(){return n.value&&h("div",{class:a.value},[o.value&&h("div",{class:"f-title"},[h("h4",{class:"f-title-text"},[r.value]),l.value&&h("span",null,[i.value])])])}function v(){return h("div",{class:s.value},[t.slots.default&&t.slots.default()])}return()=>h("div",{class:"f-section"},[c(),v()])}}),vd={install(e){e.component(rr.name,rr)}},ir=me({name:"FSwitch",props:{modelValue:{type:Boolean,default:!1},disable:{type:Boolean},onBackground:{type:String},offBackground:{type:String},onColor:{type:String},offColor:{type:String},onLabel:{type:String},offLabel:{type:String},size:{type:String,default:"medium"}},emits:["update:modelValue"],setup(e,t){const{disable:n,size:o,onLabel:l,offLabel:a}=wa(e),s=N(e.modelValue);function r(){return""}function i(){return""}function c(){return""}const v=F(()=>({switch:!0,"f-cmp-switch":!0,checked:s.value,disabled:n.value,"switch-large":o.value==="large","switch-medium":o.value==="medium","switch-small":o.value==="small"})),f=F(()=>({outline:"none","backgroud-color":r(),"border-color":i()})),p=F(()=>({background:c()})),g=F(()=>(l==null?void 0:l.value)||(a==null?void 0:a.value));function E(P,T=!0){n.value||(s.value=!s.value,t.emit("update:modelValue",s.value))}function R(P){E()}return()=>h("span",{tabindex:"0",role:"button",class:v.value,style:f.value,onClick:R},[g.value&&h("span",{class:"switch-pane"},[h("span",{class:"switch-label-checked"},[l==null?void 0:l.value]),h("span",{class:"switch-label-unchecked"},[a==null?void 0:a.value])]),h("small",{style:p.value},[t.slots.default&&t.slots.default()])])}}),gd={install(e){e.component(ir.name,ir)}},md={tabType:{type:String,default:"default"},autoTitleWidth:{type:Boolean,default:!1},titleLength:{type:Number,default:7},position:{type:String,default:"top"},showDropDwon:{type:Boolean,default:!1},showTooltips:{type:Boolean,default:!1},scrollStep:{type:Number,default:10},autoResize:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},selectedTab:{type:String,default:""},width:{type:Number},height:{type:Number},searchBoxVisible:{type:Boolean,default:!0},titleWidth:{type:Number,default:0},customClass:{type:String,default:""},activeId:{type:String},fill:{type:Boolean,default:!1}},cp="";function yd(e,t,n){function o(v){const f=v.value.findIndex(p=>p.props.show!==!1&&!n.value&&!p.props.disabled);!n.value&&f!==-1&&(n.value=v.value[f].props.id)}function l(v){return{width:`${v.tabWidth}px`}}function a(v){return{"nav-item":!0,"d-none":v.show!==void 0?!v.show:!1,"f-state-active":v.id===n.value,"f-state-disable":v.disabled}}function s(v){return{"nav-link":!0,"tabs-text-truncate":!0,active:v.id===n.value,disabled:v.disabled}}function r(v){return{"st-tab-text":!0,"farris-title-auto":e.autoTitleWidth}}function i(v){var p;if(e.autoTitleWidth)return;const f=(p=v.value)==null?void 0:p.querySelectorAll(".st-tab-text");if(!!f)for(let g=0;g<f.length;g++){const E=f[g].parentNode;f[g].scrollWidth>E.offsetWidth?f[g].classList.contains("farris-title-text-custom")||f[g].classList.add("farris-title-text-custom"):f[g].classList.remove("farris-title-text-custom")}}function c(v,f){const p=n.value;n.value=f,t.emit("tabChange",{prevId:p,nextId:n.value}),v.preventDefault(),v.stopPropagation()}return{setActiveId:o,getTabStyle:l,getTabClass:a,getTabNavLinkClass:s,getTabTextClass:r,changeTitleStyle:i,selectTabByTabId:c}}const ur=me({name:"FTabs",props:md,emits:["tabChange","tabRemove"],setup(e,t){const n=ma(),o=ma(),l=N(!0),a=N(!0),s=N([]),r=N(e.activeId),i=F(()=>{const Z=s.value.find(oe=>oe.props.id===r.value);return Z==null?void 0:Z.slots}),c=F(()=>{const Z=s.value.find(ie=>ie.props.id===r.value);return(Z==null?void 0:Z.props.toolbarPosition)==="inHead"}),v=N("atuo"),f=N(""),{setActiveId:p,getTabStyle:g,getTabClass:E,getTabNavLinkClass:R,getTabTextClass:P,changeTitleStyle:T,selectTabByTabId:b}=yd(e,t,r),V=()=>{var oe;const Z=(oe=o.value)==null?void 0:oe.parentElement;!Z||!o.value||(Z.offsetWidth<o.value.scrollWidth?l.value=!1:l.value=!0)},D=Z=>{Z.preventDefault(),Z.stopPropagation()},M=(Z,oe)=>{if(!o.value)return;const ie=o.value.scrollLeft,ye=o.value.scrollWidth-o.value.offsetWidth;if(oe>0){if(o.value.scrollLeft>=ye)return;o.value.scrollLeft=ie+e.scrollStep+Z}else if(oe<0){if(o.value.scrollLeft<=0)return;o.value.scrollLeft=ie-e.scrollStep-Z}},I=Z=>{if(l.value||!o.value)return;const oe=o.value.querySelectorAll(".nav-item"),{parentElement:ie}=o.value,ye=oe[Z];if(ye&&ie){const _e=ie.getBoundingClientRect().left,pe=ie.getBoundingClientRect().right,Te=ye.getBoundingClientRect().left,we=ye.getBoundingClientRect().right;Te<_e?M(_e-Te,-1):pe<we&&M(we-pe,1)}},j=Z=>{s.value.findIndex(ie=>ie.props.id===Z.props.id)===-1&&s.value.push(Z),ut(()=>{V()})},u=Z=>{s.value.findIndex(ie=>ie.props.id===Z.props.id)!==-1&&(s.value.forEach(ie=>{ie.props.id===Z.props.id&&(ie=Z)}),ut(()=>{T(o),V()}))};function d(Z,oe,ie=!1){s.value.findIndex(ye=>ye.props.id===oe),s.value=s.value.filter(ye=>ye.props.id!==oe),r.value===oe&&(r.value="",p(s)),D(Z),ut(()=>{T(o),V(),ie&&(a.value=!0);const ye=s.value.findIndex(_e=>_e.props.id===r.value);I(ye),t.emit("tabRemove",{removeIndex:ye,removeId:oe,activeId:r.value})})}uo("tabs",{activeId:r,addTab:j,updateTab:u,tabs:s});const m=F(()=>e.fill||e.tabType==="fill"),w=F(()=>e.tabType==="pills"),_=F(()=>({"farris-tabs-header":!0,"farris-tabs-inHead":c.value,"farris-tabs-inContent":!c.value,"farris-tabs-nav-fill":m.value,"farris-tabs-nav-pills":w.value})),C=F(()=>({width:c.value&&e.titleWidth?`${e.titleWidth}%`:""})),B=F(()=>({btn:!0,"sc-nav-btn":!0,"px-1":!0,"sc-nav-lr":!0,"d-none":l.value})),A=F(()=>({"btn-group":!0,"sc-nav-btn":!0,dropdown:!0,"d-none":l.value})),S=F(()=>({"dropdown-menu":!0,"tabs-pt28":e.searchBoxVisible,show:!a.value})),y=F(()=>({btn:!0,"sc-nav-rg":!0,"d-none":l.value})),O=()=>({width:v.value}),H=Z=>({"dropdown-item":!0,"text-truncate":!0,"px-2":!0,disabled:Z.props.disabled,active:Z.props.id===r.value,"d-none":Z.props.show!==!0}),q=(Z,oe)=>{if(oe.disabled)return;b(Z,oe.id);const ie=s.value.findIndex(ye=>ye.props.id===oe.id);a.value=!0,ut(()=>{V(),I(ie)})},Y=F(()=>{var oe,ie;let Z=[];return e.searchBoxVisible?Z=(oe=s.value)==null?void 0:oe.filter(ye=>ye.props.title.includes(f.value)):Z=(ie=s.value)==null?void 0:ie.slice(),Z}),te=F(()=>({spacer:!0,"f-utils-fill":!0,"spacer-sides-dropdown":!l.value})),le=F(()=>({nav:!0,"farris-nav-tabs":!0,"flex-nowrap":!0,"nav-fill":e.fill||e.tabType==="fill","nav-pills":e.tabType==="pills","flex-row":e.position==="top"||e.position==="bottom","flex-column":e.position==="left"||e.position==="right"})),fe=F(()=>({"farris-tabs":!0,"flex-column":e.position==="top","flex-column-reverse":e.position==="bottom","flex-row":e.position==="left","flex-row-reverse":e.position==="right"})),se=(Z,oe)=>{b(Z,oe),ut(()=>{V()})};return Gt(()=>{ut(()=>{T(o),window.addEventListener("click",Z=>{var oe;a.value||(oe=n.value)!=null&&oe.contains(Z.target)||(a.value=!0)}),window.addEventListener("resize",Z=>{V()})})}),()=>{var Z,oe,ie,ye;return h(Pe,null,[h("div",{class:fe.value,ref:n},[h("div",{class:_.value},[h("div",{class:"farris-tabs-title scroll-tabs",style:C.value},[h("button",{title:"left-arrow-button",type:"button",class:B.value,onClick:()=>{M(0,-1)}},null),h("div",{class:te.value,style:"width:100%"},[h("ul",{class:le.value,ref:o},[s.value.map(_e=>{const pe=_e.props,Te=_e.slots.title;return h("li",{class:E(pe),style:g(pe)},[h("a",{class:R(pe),onClick:we=>se(we,pe.id)},[Te?Te():h("span",{class:P(pe),title:pe.title},[pe.title]),pe.removeable&&h("span",{class:"st-drop-close",onClick:we=>d(we,pe.id)},[h("i",{class:"f-icon f-icon-close"},null)])])])})])]),h("div",{class:A.value},[h("button",{title:"right-arrow-button",type:"button",class:y.value,onClick:()=>{M(0,1)}},null),h("button",{title:"toggle-button",class:"btn dropdown-toggle-split dropdown-toggle",onClick:()=>{a.value=!1}},null),h("div",{class:S.value},[e.searchBoxVisible&&h("div",{onClick:_e=>D(_e),class:"pb-1 tabs-li-absolute"},[An(h("input",{title:"search-box",type:"text",class:"form-control k-textbox","onUpdate:modelValue":_e=>f.value=_e},null),[[cc,f.value]]),h("span",{class:"f-icon f-icon-page-title-query tabs-icon-search"},null)]),Y.value.length?h("ul",{class:"tab-dropdown-menu--items",style:O()},[Y.value.map(_e=>h("li",{class:H(_e),onClick:pe=>q(pe,_e.props)},[_e.props.removeable&&h("span",{class:"float-right st-drop-close",onClick:pe=>d(pe,_e.props.id,!0)},[h("i",{class:"f-icon f-icon-close"},null)]),h("a",{class:"dropdown-title"},[_e.props.title])]))]):h("div",{class:"dropdown-no-data"},[ct("\u6CA1\u6709\u76F8\u5173\u6570\u636E")])])])]),i.value&&h("div",{class:"farris-tabs-toolbar"},[(oe=(Z=i.value)==null?void 0:Z.toolbarExtra)==null?void 0:oe.call(Z)])]),h("div",{class:"farris-tabs-content"},[(ye=(ie=t.slots).default)==null?void 0:ye.call(ie)])])])}}}),cr=me({name:"FTabPage",props:{tabWidth:{type:Number,default:-1},id:{type:String,default:""},customTitleClass:{type:String,default:""},titleOverflow:{type:Boolean,default:!1},title:{type:String,default:""},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},removeable:{type:Boolean,default:!1},show:{type:Boolean,default:!0},toolbar:{type:Object},toolbarPosition:{type:String,default:"inContent"}},emits:[],setup(e,t){const n=Tt("tabs"),o=N(!0),l={slots:t.slots,props:e};Gt(()=>{const s=n==null?void 0:n.tabs.value.findIndex(r=>r.props.id===e.id);!s||s===-1?n==null||n.addTab(l):s>-1&&(o.value=!1,console.warn(`\u5DF2\u7ECF\u5B58\u5728id\u4E3A${e.id}\u7684\u9875\u7B7E\u5566`))}),Kt(()=>{});function a(){return{display:(e==null?void 0:e.id)===(n==null?void 0:n.activeId.value)?"":"none"}}return Ee(()=>e,s=>{n==null||n.updateTab({props:s,slots:t.slots})},{immediate:!0,deep:!0}),()=>{var r,i;const s=(i=(r=t.slots).default)==null?void 0:i.call(r);return o.value?h("div",{class:"farris-tab-page",style:a()},[s]):null}}}),bd={install(e){e.component(ur.name,ur),e.component(cr.name,cr)}},fr=me({name:"FText",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,t){const n=N(!0),o=N(!0),l=N(""),a=N(0),s=N(0),r=N(e.modelValue),i=F(()=>({"f-form-control-text":!n.value,"f-form-context-textarea":n,"f-component-text-auto-size":o.value})),c=F(()=>({textalign:l.value,height:!o.value&&a.value>0?`${a.value}px`:"","min-height":!o.value&&a.value>0?`${a.value}px`:"","max-height":!o.value&&s.value>0?`${s.value}px`:""}));return F(()=>""),()=>h("span",{class:i.value,style:c.value},[r.value])}}),wd={install(e){e.component(fr.name,fr)}},_d={content:{type:String},width:{type:Number},customClass:{type:String},placement:{type:String,default:"top"},reference:{type:Object,require:!0},horizontalRelative:{type:String,defatul:""},verticalRelative:{type:String,defatul:""}},pp="";function xd(e,t){const n=new Map([["top","bottom"],["bottom","top"],["left","right"],["right","left"]]),o=new Map([["top","height"],["bottom","height"],["left","width"],["right","width"]]);function l(s,r){const i=n.get(r)||r;return s.replace(r,i)}function a(s,r,i,c,v){let f=s;const p=s.split("-")[0],g=o.get(p),E=c[g]+v[g];return Math.abs(i[p]-r[p])<E&&(f=l(s,p)),f}return{adjustPlacement:a}}function Nd(e,t){function o(a,s,r){let i=!1,c=r;return(s==="left"||s==="top")&&r<=a[s]&&(i=!0,c=a[s]+6),(s==="right"||s==="bottom")&&r>=a[s]&&(i=!0,c=a[s]-6),{overBound:i,fixedValue:c}}function l(a,s,r,i,c,v,f){let p=s.tooltip.left,g=s.tooltip.top,E=s.arrow.left,R=s.arrow.top;const T=a.split("-")[0];if(["top","bottom"].includes(T)){const I=o(r,"left",s.tooltip.left),j=o(r,"right",s.tooltip.left+c.width);p=I.overBound?I.fixedValue:j.overBound?j.fixedValue-c.width:s.tooltip.left,E=I.overBound?c.width-(p+c.width-i.right)-f.width:j.overBound?i.left-p:s.arrow.left}const b=o(r,"top",s.tooltip.top),V=o(r,"bottom",s.tooltip.top+c.height);return g=b.overBound?b.fixedValue:V.overBound?V.fixedValue-c.height:s.tooltip.top,R=b.overBound?s.arrow.top:V.overBound?c.height-(g+c.height-i.top):s.arrow.top,{arrow:{left:E,top:R},tooltip:{left:p,top:g}}}return{adjustPosition:l}}function Cd(e,t){function o(s,r,i,c,v){const f=s.split("-"),p=f[0],g=f[1]||"middle",E=["top","bottom"].includes(p)?g==="middle"?(c.width-v.width)/2:g==="right"?c.width-v.width-6:6:0,R=["left","right"].includes(p)?g==="middle"?(c.height-v.height)/2:g==="bottom"?c.height-v.height-6:6:0,P=p==="left"?c.width+v.width:0,T=p==="top"?c.height+v.height:0;return{left:P+E,top:T+R,right:0}}function l(s,r,i,c,v){const f=s.split("-"),p=f[0],g=f[1]||"middle",E=(i.width-c.width)/2,R=(i.height-c.height)/2,P=p==="right"?r.right:r.left,T=p==="bottom"?r.bottom:r.top,b=p==="top"?0-R-c.height-v.height:p==="bottom"?0-R+v.height:0,V=["left","right"].includes(p)?g==="middle"?(r.height-c.height)/2:g==="bottom"?r.height-c.height:0:0,D=p==="left"?0-E-c.width-v.width:p==="right"?0-E+v.width:0,M=["top","bottom"].includes(p)?g==="middle"?(r.width-c.width)/2:g==="right"?r.width-c.width:0:0,I=T+b+V;return{left:P+D+M,top:I}}function a(s,r,i,c,v){const f=l(s,r,i,c,v);return{arrow:o(s,r,i,c,v),tooltip:f}}return{calculate:a}}function Ed(e,t){const n=N(e.horizontalRelative),o=N(e.verticalRelative);function l(s){return s instanceof HTMLElement?s:typeof s=="string"?document.querySelector(s):s}function a(){let s=document.documentElement.clientWidth,r=document.documentElement.clientHeight,i=0,c=0,v=0,f=0,p=r-i,g=s-c;return n.value&&({left:c,right:s,x:v,width:g}=l(n.value).getBoundingClientRect()),o.value&&({bottom:r,top:i,y:f,height:p}=l(o.value).getBoundingClientRect()),{top:i,left:c,right:s,bottom:r,height:p,width:g,x:v,y:f}}return{getRelativeElementBound:a}}function Od(e,t,n,o,l,a){const s=N(e.placement),{getRelativeElementBound:r}=Ed(e),{calculate:i}=Cd(),{adjustPlacement:c}=xd(),{adjustPosition:v}=Nd(),f=F(()=>s.value.split("-")[0]),p=F(()=>{const g=r();s.value=c(s.value,g,n,o,a);const E=i(s.value,n,o,l,a);return v(s.value,E,g,n,o,l,a)});return{tooltipPlacement:f,tooltipPosition:p}}const Hl=me({name:"FTooltip",props:_d,emits:["click"],setup(e,t){const n=N(!0),o=N(),l=N(),a=N(),s=N(e.placement.split("-")[0]),r=F(()=>{const V={tooltip:!0,show:!0},D=`bs-tooltip-${s.value}`;return V[D]=!0,V}),{scrollLeft:i,scrollTop:c}=document.documentElement,v=F(()=>n.value),f=F(()=>e.content),p=N("0px"),g=N("0px");N("");const E=F(()=>({left:p.value,top:g.value})),R=N(""),P=N(""),T=F(()=>({left:R.value,top:P.value}));Gt(()=>{if(o.value&&l.value&&a.value&&e.reference){const{tooltipPlacement:V,tooltipPosition:D}=Od(e,t,e.reference.getBoundingClientRect(),l.value.getBoundingClientRect(),a.value.getBoundingClientRect(),o.value.getBoundingClientRect());p.value=`${D.value.tooltip.left+i}px`,g.value=`${D.value.tooltip.top+c}px`,R.value=`${D.value.arrow.left}px`,P.value=`${D.value.arrow.top}px`,s.value=V.value}});function b(V){t.emit("click",V)}return()=>h("div",{ref:l,class:r.value,style:E.value,onClick:b},[h("div",{ref:o,class:"arrow",style:T.value},null),h("div",{ref:a,class:"tooltip-inner"},[h("div",{class:"tooltip-tmpl"},[v.value&&h("div",{class:"tooltip-text",innerHTML:f.value},null)])])])}});function Sd(e,t){const n=document.createElement("div"),o=Nl({setup(){return Kt(()=>{document.body.removeChild(n)}),()=>h(Hl,ft(e,{onClick:o.unmount}),null)}});return document.body.appendChild(n),o.mount(n),o}function Td(e){const t=Ue({...e});return Sd(t)}const Ad={mounted:(e,t,n)=>{let o;const l=Object.assign({content:"This is a tooltip",width:100,customClass:"",placement:"top",reference:e},t.value);e.addEventListener("mouseenter",a=>{a.stopPropagation(),o||(o=Td(l))}),e.addEventListener("mouseleave",a=>{a.stopPropagation(),o&&(o.unmount(),o=null)})},unMounted:(e,t,n)=>{}},kd={install(e){e.component(Hl.name,Hl),e.directive("tooltip",Ad)}};return{install(e){e.use(xc).use(Ec).use(kc).use(Bc).use(Rc).use(Zc).use(_f).use(Af).use(Df).use(Hf).use($f).use(Gf).use(Qf).use(Jf).use(id).use(fd).use(hd).use(vd).use(gd).use(bd).use(wd).use(kd)}}});