@fox-js/foxui-pc 4.1.1-33 → 4.1.1-34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +5224 -5209
- package/dist/index.umd.js +1 -1
- package/dist/style.js +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Vo=Object.create,Jr=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,Po=Object.getOwnPropertyNames,Ao=Object.getPrototypeOf,Io=Object.prototype.hasOwnProperty,nt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lo=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=Po(t),o=0,s=n.length,u;o<s;o++)u=n[o],!Io.call(e,u)&&u!==r&&Jr(e,u,{get:(i=>t[i]).bind(null,u),enumerable:!(a=Mo(t,u))||a.enumerable});return e},rt=(e,t,r)=>(r=e!=null?Vo(Ao(e)):{},Lo(t||!e||!e.__esModule?Jr(r,"default",{value:e,enumerable:!0}):r,e));let l=require("vue"),pt=require("@fox-js/validator"),w=require("element-plus"),Ve=require("@element-plus/icons-vue"),Ie=require("@fox-js/i18n");var Qt=window,Fo=typeof window<"u";function Ro(){return typeof Qt<"u"?Qt.requestAnimationFrame||Qt.webkitRequestAnimationFrame||function(e){Qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Do(e){Fo?cancelAnimationFrame(e):clearTimeout(e)}var Qr=Ro();function ol(e,t="0"){let r=0,a=-1;e[0]=="-"&&(r++,a=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,a=2,t=t.substring(1),t.length),e=Ae(e),t=Ae(t),[e,t]=pn(Ae(e),Ae(t)),r==1&&(a==1?e=Ol(e):t=Ol(t));let n=ea(e,t);return r?r==2?"-"+Ae(n):e.length<n.length?Ae(n.substring(1)):"-"+Ae(Ol(n)):Ae(n)}function Ol(e){let t="",r=e.length,a=e.split(".")[1],n=a?a.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=n>0?"0."+new Array(n).join("0")+"1":"1";return ea(t,o)}function Ae(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function pn(e,t){let r=e.split("."),a=t.split("."),n=r[0].length,o=a[0].length;return n>o?a[0]=new Array(Math.abs(n-o)+1).join("0")+(a[0]?a[0]:""):r[0]=new Array(Math.abs(n-o)+1).join("0")+(r[0]?r[0]:""),n=r[1]?r[1].length:0,o=a[1]?a[1].length:0,(n||o)&&(n>o?a[1]=(a[1]?a[1]:"")+new Array(Math.abs(n-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(n-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=a[0]+(a[1]?"."+a[1]:""),[e,t]}function ea(e,t){[e,t]=pn(e,t);let r="",a=0;for(let n=e.length-1;n>=0;n--){if(e[n]==="."){r="."+r;continue}let o=parseInt(e[n])+parseInt(t[n])+a;r=o%10+r,a=Math.floor(o/10)}return a?a.toString()+r:r}var Ce=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function Ot(e,t=0,r=Ce.HALF_EVEN){if(r===Ce.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let a=!1;e[0]==="-"&&(a=!0,e=e.substring(1));let n=e.split("."),o=n[0],s=n[1];if(t<0){if(t=-t,o.length<=t)return"0";{let i=o.substr(0,o.length-t);return e=i+"."+o.substr(o.length-t)+s,i=Ot(e,0,r),(a?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,br(n[1],o,a,r)?(a?"-":"")+ql(o):(a?"-":"")+o;if(n[1]){if(n[1].length<t)return(a?"-":"")+o+"."+n[1]+new Array(t-n[1].length+1).join("0")}else return(a?"-":"")+o+"."+new Array(t+1).join("0");s=n[1].substring(0,t);let u=n[1].substring(t);return u&&br(u,s,a,r)&&(s=ql(s),s.length>t)?(a?"-":"")+ql(o,parseInt(s[0]))+"."+s.substring(1):(a?"-":"")+o+"."+s}function br(e,t,r,a){if(!e||e===new Array(e.length+1).join("0")||a===Ce.DOWN||!r&&a===Ce.FLOOR||r&&a===Ce.CEILING)return!1;if(a===Ce.UP||r&&a===Ce.FLOOR||!r&&a===Ce.CEILING)return!0;let n="5"+new Array(e.length).join("0");if(e>n)return!0;if(e<n)return!1;switch(a){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function ql(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,a="";for(let n=r;n>=0;n--){let o=parseInt(e[n])+t;o==10?(t=1,o=0):t=0,a+=o}return t&&(a+=t),a.split("").reverse().join("")}function Jl(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=Bt(e),t=Bt(t);let a=0,n=0;e.indexOf(".")!=-1&&(a=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(n=t.length-t.indexOf(".")-1);let o=a+n;if(e=Bt(e.replace(".","")),t=Bt(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let s=t.length,u=0,i=[],m=s-1,p="";for(let f=0;f<s;f++)i[f]=e.length-1;for(let f=0;f<2*e.length;f++){let d=0;for(let T=t.length-1;T>=m&&T>=0;T--)i[T]>-1&&i[T]<e.length&&(d+=parseInt(e[i[T]--])*parseInt(t[T]));d+=u,u=Math.floor(d/10),p=d%10+p,m--}return p=Bt(Oo(p,o)),r==1&&(p="-"+p),p}function Oo(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Bt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Ql(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let a=0;t[0]=="-"&&(t=t.substring(1),a++),e[0]=="-"&&(e=e.substring(1),a++);var n=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ae(t.replace(".","")),n>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=Ae(e+new Array(n+1).join("0"));else if(n>m)e=e.replace(".",""),e=Ae(e+new Array(n-m+1).join("0"));else if(n<m){e=e.replace(".","");let p=e.length-m+n;e=Ae(e.substring(0,p)+"."+e.substring(p))}else n==m&&(e=Ae(e.replace(".","")))}let o=0,s=t.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let m=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(m+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=m,u="0."+new Array(m).join("0")}for(r=r+2;o<=r;){let m=0;for(;parseInt(i)>=parseInt(t);)i=ol(i,"-"+t),m++;u+=m,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,i=i+"0")}return(a==1?"-":"")+Ae(Ot(u,r-2))}function en(e,t){return e=e.toString(),t=t.toString(),t=tn(t),ol(e,t)}function tn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Sr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),wr(e),wr(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let a=en(e,Jl(t,Ot(Ql(e,t),0,Ce.FLOOR)));return r+a}function wr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function xr(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=pn(e,t),e.localeCompare(t)==0)return 0;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return e[a]>t[a]?r?-1:1:r?1:-1;return 0}var Kt=class ge{value;static RoundingModes=Ce;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,a]=t.split(/[eE]/);r=Ae(r);let n="";r[0]=="-"&&(n="-",r=r.substring(1)),r.indexOf(".")>=0?(a=parseInt(a)+r.indexOf("."),r=r.replace(".","")):a=parseInt(a)+r.length,r.length<a?t=n+r+new Array(a-r.length+1).join("0"):r.length>=a&&a>0?t=n+Ae(r.substring(0,a))+(r.length>a?"."+r.substring(a):""):t=n+"0."+new Array(-a+1).join("0")+r}return t}constructor(t="0"){this.value=ge.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,a){if(!(r||a))r=3,a=",";else if(!(r&&a))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ge.validate(t);let n=t.charAt(0)=="-";n&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",u=o;u>0;)u<r?(r=u,u=0):u-=r,s=t.substring(u,u+r)+(u<o-r&&u>=0?a:"")+s;return(n?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return ge.getPrettyValue(this.value,t,r)}static round(t,r=0,a=Ce.HALF_EVEN){if(t=ge.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Ot(t,r,a)}round(t=0,r=Ce.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ge(Ot(this.value,t,r))}static floor(t){return t=ge.validate(t),t.indexOf(".")===-1?t:ge.round(t,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,Ce.FLOOR)}static ceil(t){return t=ge.validate(t),t.indexOf(".")===-1?t:ge.round(t,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,Ce.CEILING)}static add(t,r){return t=ge.validate(t),r=ge.validate(r),ol(t,r)}add(t){return new ge(ol(this.value,t.getValue()))}static subtract(t,r){return t=ge.validate(t),r=ge.validate(r),en(t,r)}subtract(t){return new ge(en(this.value,t.getValue()))}static multiply(t,r){return t=ge.validate(t),r=ge.validate(r),Jl(t,r)}multiply(t){return new ge(Jl(this.value,t.getValue()))}static divide(t,r,a){return t=ge.validate(t),r=ge.validate(r),Ql(t,r,a)}divide(t,r){return new ge(Ql(this.value,t.getValue(),r))}static modulus(t,r){return t=ge.validate(t),r=ge.validate(r),Sr(t,r)}modulus(t){return new ge(Sr(this.value,t.getValue()))}static compareTo(t,r){return t=ge.validate(t),r=ge.validate(r),xr(t,r)}compareTo(t){return xr(this.value,t.getValue())}static negate(t){return t=ge.validate(t),tn(t)}negate(){return new ge(tn(this.value))}};function ta(e,t){return Kt.multiply(`${e}`,`${t}`)}function hn(e,t,r=8){return Kt.divide(`${e}`,`${t}`,r)}var D5=Kt.RoundingModes;function ln(e,t){return e=`${e}`,t=`${t}`,Kt.compareTo(e,t)}function la(e){return Kt.negate(e)}function ml(e,t=-1,r=!1,a=3,n=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let u=o,i="",m=o.indexOf(".");m!=-1&&(u=o.substring(0,m),i=o.substring(m+1)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let p;if(a>0){let f="",d=u.split("").reverse();for(let T=0;T<d.length;T++)f+=d[T]+((T+1)%a==0&&T+1!=d.length?n:"");i.length==0?p=`${s}${f.split("").reverse().join("")}`:p=`${s}${f.split("").reverse().join("")}.${i}`}else i.length==0?p=`${s}${u}`:p=`${s}${u}.${i}`;return p}function na(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let a=t.replace(/[^\d\.-]/g,"");return`${r}${a}`}var gn=Qr,qo=Array.isArray,Ho=e=>pl(e)==="[object Map]",jo=e=>pl(e)==="[object Set]",Ko=e=>e instanceof Date,nn=e=>typeof e=="function",ra=e=>typeof e=="string",Wo=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",aa=e=>We(e)&&nn(e.then)&&nn(e.catch),oa=Object.prototype.toString,pl=e=>oa.call(e),Yo=e=>pl(e)==="[object Object]",ia=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Uo(e){return e.__esModule||ia&&e[Symbol.toStringTag]==="Module"}var Go=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function xt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,a=e.length,n=!1;for(typeof t=="boolean"&&(n=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<a;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let s in o){let u=t[s],i=o[s];if(u!==i)if(n===!0&&i&&typeof i=="object"){let m;Array.isArray(i)?m=u&&Array.isArray(u)?u:[]:m=u&&typeof u=="object"?u:{},t[s]=xt(n,m,i)}else i!==void 0&&(t[s]=i)}}return t}var Hl=Go?Promise.resolve():null;function Xo(e,...t){Hl!==null?t&&t.length>0?Hl.then(()=>{e(t)}):Hl.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function de(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ze(e){return typeof e=="number"?e:Number(e)}var Zo={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function il(e){let t=Object.prototype.toString.call(e);return e==null?String(e):Zo[t]||"object"}function rn(e){if(!e||e.nodeType!==1)return!0;let t=e;for(;t;){if(t.hidden)return!0;const r=window.getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!0;t=t.parentElement}return!1}function vn(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let t=e.parentElement;for(;t;){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function sa(e){return e&&typeof e=="object"&&"setInterval"in e}function ua(e){let t=!!e&&"length"in e&&e.length,r=il(e);return r==="function"||sa(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function ca(e,t){let r=+t.length,a=0,n=e.length;for(;a<r;a++)e[n++]=t[a];return e.length=n,e}function Jo(e,t=[]){let r=t;return e!=null&&(ua(Object(e))?ca(r,typeof e=="string"?[e]:e):r.push(e)),r}function Je(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=il(e);if(r!==il(t))return!1;if(r==="object"){let a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(let o=0;o<a.length;o++){let s=a[o],u=e[s],i=t[s];if(!Je(u,i))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let n=e[a],o=t[a];if(!Je(n,o))return!1}return!0}return!1}var dt=typeof window<"u";function _e(e){return e==null}function an(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function yn(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function da(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function fa(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Nr(e,t,r){const a=e.indexOf(t);return a===-1?e:t==="-"&&a!==0?e.slice(0,a):e.slice(0,a+1)+e.slice(a).replace(r,"")}function Qo(e,t=!0,r=!0){t?e=Nr(e,".",/\./g):e=e.replace(/\./g,""),r?e=Nr(e,"-",/-/g):e=e.replace(/-/,"");const a=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(a,"")}function ei(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Je(e,r))return!0}):t.indexOf(e)}function ti(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(a=>{if(Je(e,a))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function Wt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function gt(e,...t){const r={};return t.forEach(a=>{for(const n in a)r[n]=e[n]}),r}function Le(e,...t){const r=[];t.forEach(n=>{Reflect.apply([].push,r,Reflect.ownKeys(n))});const a={};for(const n in e)r.includes(n)||(a[n]=e[n]);return a}var li=(e,t,r)=>{const a=Object.assign({},e),n=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(a).forEach(o=>{n.hasOwnProperty(o)?typeof n[o]=="string"&&(a[o]=t[n[o]]):t[o]&&(a[o]=t[o])}),a):e};function ni(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&e.stopPropagation()}var ri=(e,t=2)=>{for(e+="";e.length<t;)e="0"+e;return e.toString()},ai=(e,t,r)=>Math.min(Math.max(e,t),r);function qt(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}function ma(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var lt=Symbol.for("BroadcastKey"),pa=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,t,r){this.parent=e,this.exposed=t,this.name=r,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const t=this.children.findIndex(r=>e===r);t!==-1&&this.children.splice(t,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,t,r){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const a=e.uniqueId,n={matched:e,action:t,args:r};return this.persistantMessages.set(a,n),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(t=>{e.push(t)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,t){if(!t||t.messagingPolicy==="Once"&&t.resolved===!0)return!1;let r=!1;return!t.name||t.name==="*"||t.name==="+"||an(t.name)&&e&&t.name.test(e)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[e]):t.name===e&&(r=!0),r}trigger(e,t,r){let a=null;const n=this.callbacks.get(t);typeof n=="function"&&(a=Reflect.apply(n,null,[...r])),this.exposed&&typeof this.exposed[t]=="function"&&(a=Reflect.apply(this.exposed[t],this.exposed,[...r])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(a)}pull(){let e=this.parent;for(;e;){const t=e.getPersistantMessages();Array.isArray(t)&&t.length>0&&t.forEach(r=>{if(this.isMatched(this.name,r.matched))try{this.trigger(r.matched,r.action,r.args)}catch(a){console.error(a)}}),e=e.parent}}emit(e,t,...r){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,r)){const o=e.resolve,s=e.uniqueId??"",u=(...i)=>{this.deletePersistantMessage(s),typeof o=="function"&&o(...i)};e.resolve=u}e.cachePolicy="None"}let a=!1;!e.name||e.name==="*"?a=!0:e.name==="+"?(a=!1,e.name="*"):an(e.name)&&this.name&&e.name.test(this.name)?a=!0:typeof e.name=="function"?a=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(a=!0);const n=[];if(a){const o=this.callbacks.get(t);if(typeof o=="function"){const s=Reflect.apply(o,null,[...r]);_e(s)||n.push(s)}if(this.exposed&&typeof this.exposed[t]=="function"){const s=Reflect.apply(this.exposed[t],this.exposed,[...r]);_e(s)||n.push(s)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...n),e.messagingPolicy==="Once")return n}return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...e},t,...r]);Array.isArray(s)&&s.length>0&&Reflect.apply([].push,n,[...s])}),n}emitToChildren(e,t,...r){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,r)){const n=e.resolve,o=e.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(o),typeof n=="function"&&n(...u)};e.resolve=s}e.cachePolicy="None"}const a=[];return this.children.forEach(n=>{const o=Reflect.apply(n.emit,n,[{...e},t,...r]);Array.isArray(o)&&Reflect.apply([].push,a,[...o])}),a}on(e,t){this.callbacks.set(e,t)}};function hl(e,t,r,a){const n=new pa(t,e,r);if(a&&typeof a=="object")for(const o in a)n.on(o,a[o]);return n}function It(e){let t=e?.[lt];return!t&&(0,l.hasInjectionContext)()&&(t=(0,l.inject)(lt,null)),t}var oi=class{error(e,t){const r=It(t.exposed);r?r.emit({name:"*"},"setErrorTip",e):t.exposed&&typeof t.exposed.setErrorTip=="function"&&t.exposed.setErrorTip(e)}reset(e){const t=It(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const t=It(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,t,r){Array.isArray(e)||(e=[e]);const a=It(r.exposed),n=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),o=e.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!n&&o?a?a.emit({name:"*"},"setRequired",!0):r.exposed&&typeof r.exposed.setRequired=="function"&&r.exposed.setRequired(!0):n&&!o&&(a?a.emit({name:"*"},"setRequired",!1):r.exposed&&typeof r.exposed.setRequired=="function"&&r.exposed.setRequired(!1),this.reset(r))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Ft=new oi;function ii(e){Ft=e}function si(e){Ft?Object.assign(Ft,e):Ft=e}function ui(e,t){pt.Schema.setValidator(e,t)}function ci(e){pt.Schema.deleteValidator(e)}var ha=["blur","clear"];function di(e){ha=e}function ga(){return ha}var va=["focus","change","setValue"];function fi(e){va=e}function ya(){return va}function mi(e){pt.Schema.messages(e)}function Vt(...e){const t=[];return e.forEach(r=>{r.forEach(a=>{const n=t.findIndex(o=>o.type===a.type);n!==-1&&t.splice(n,1),t.push(a)})}),t}function el(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}var it=Symbol("ValidateSchemaKey"),ba=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,t,r){this.parent=e,this.descriptor=t,this.proxy=r,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,l.effectScope)(!0),this.scope.run(()=>{(0,l.watchEffect)(()=>{const e=el(Vt(this.attrRules,this.rules)),t=[],r=this.descriptor.context?.attrs??{};for(let n in r){let o=r[n];if(this.hasValidator(n,!0)){if(o===!1)continue;let u={type:n};o!==null&&typeof o=="object"&&Object.assign(u,o),t.push(u);continue}let s=this.getValidator(n);if(s!==null){let u={type:n,validator:s};t.push(u)}}this.attrRules=el(t);const a=Vt(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(a,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...t){const r=this.descriptor.validateHandler;if(r&&typeof r[e]=="function")return Reflect.apply(r[e],r,[...t]);const a=Ft;return a&&typeof a[e]=="function"?Reflect.apply(a[e],a,[...t]):null}decorate(e,t){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,t,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,t,r=!1){r?pt.Schema.setValidator(e,t):this.validators[e]=t}getValidator(e){let t=this.validators[e]??null;return t||(t=this.parent?.getValidator(e)??null),t}deleteValidator(e,t=!1){t?pt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,t=!1){if(t)return pt.Schema.hasValidator(e);{let r=Reflect.has(this.validators,e);return!r&&this.parent!==null&&(r=this.parent.hasValidator(e,!1)),r}}setRule(e){const t=Vt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=el(e):this.rules=el([e]);const r=Vt(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(r,t)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Vt(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(e.length>0){const r={[`${t}`]:e},a=this.getValue(),n={[`${t}`]:a},o=new pt.Schema(r),s=this.proxy??n;return o.validate(n,{context:s}).then(u=>{if(u.pass)this.success();else{let i="error";Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors[0].message??i,u.errors=[u.errors[0]],u.errors[0].ref=s),this.error(i)}return u}).catch(u=>{const i=u.message??`${u}`;return this.error(i),u})}}return Promise.resolve({pass:!0})}};function gl(e,t,r){r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string";const a={exposed:e,get $el(){return r.templateRefProxy?.$el},get props(){return r.props},get attrs(){return r.context?.attrs}};if(!r.validateHandler&&r.valueName!=="modelValue"){const n=r.valueName;r.validateHandler={getValue(o){return o.props?.[n]??o.exposed[n]}}}return new ba(t,r,a)}var sl=Symbol.for("EventEmitterKey"),Sa=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,t){let r=this.register.get(e);if(r&&Array.isArray(r)){let a=r.findIndex(n=>n===t);a!==-1&&r.splice(a,1)}}on(e,t){let r=this.register.get(e);r||(r=new Array,this.register.set(e,r)),r.push(t)}emit(e,...t){const r=this.register.get(e);r&&r.forEach(a=>{try{Reflect.apply(a,null,[e,...t])}catch(n){console.error(n.message,n)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...t])}};function Ke(e,t){let r=null;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...a])},t)}}function wa(e,t){let r=0;return function(...a){const n=new Date().getTime();n-r<t||(r=n,Reflect.apply(e,null,[...a]))}}function pi(e,t){const r=Ke((a,n)=>{e=a,n()},t);return(0,l.customRef)((a,n)=>({get(){return a(),e},set(o){r(o,n)}}))}function hi(e){let t=!1;return function(...r){t||(t=!0,Reflect.apply(e,null,[...r]))}}function vl(e,t,r,a=0,n=!0,o){let s=t,u=0;if(n){const m=e();if(u++,m){typeof o=="function"&&o(!0);return}if(u>r){typeof o=="function"&&o(!1);return}}const i=()=>{const m=e();if(u++,m){typeof o=="function"&&o(!0);return}if(u>r){typeof o=="function"&&o(!1);return}s+=a,setTimeout(i,s)};setTimeout(i,s)}var ut=Symbol("DomainKey"),Lt=Symbol("DataItemsKey"),yl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,l.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,t){this._datas[e]=t}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,t=[]){for(const r in e){const a=e[r];t.length>0&&t.indexOf(a)!==-1||(this._props[r]=a)}}has(e){if(Reflect.has(this._props,e)){const t=this._props[e];if(t!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,t){this._props[e]=t}get(e,t){if(Reflect.has(this._props,e)){const r=this._props[e];if(r!=null)return r}return this.parent==null?t:this.parent.get(e,t)}getForParent(e,t){return this.parent==null?t:this.parent.get(e,t)}getForSelf(e){return this._props[e]}getAll(e){const t=[];let r=this;for(;r!=null;){if(Reflect.has(r._props,e)){const a=r._props[e];t.push(a)}r=r._parent}return t}},gi=new yl;function bt(){return gi}function ft(){return(0,l.inject)(ut,null)}var jl=Symbol("OriginalDateKey");function bn(e,t,r){const a=(0,l.hasInjectionContext)(),n=a?(0,l.getCurrentScope)():null;let o=a?(0,l.inject)(ut,null):null;o===null&&(o=bt());const s=t;let u=new yl(s);u.parent=o;const i=g=>{u?.hasData(jl)||f(g),u?.set("modelValue",g)},m=()=>u?.getForSelf("modelValue")??null,p=()=>u?.getData(jl)??null,f=g=>{const v={};xt(!0,v,(0,l.toRaw)(g)),u.setData(jl,v)},d=e.props,T=e.ignorePropKeys;(0,l.isReactive)(d)||typeof d=="function"?(0,l.watch)(d,g=>{u?.merge(g,T),g.modelValue&&f(g.modelValue)},{immediate:!0}):(u.merge(d,T),d.modelValue&&f(d.modelValue));const z=(g,v)=>{u?.set(g,v)},h=g=>u?.getForSelf(g)??null;if(u.componentPublicExposed[ut]=u,(0,l.provide)(ut,u),n!==null){const g=(0,l.inject)(lt,null),v=hl(u.componentPublicExposed,g,s,r);u.broadcast=v,u.componentPublicExposed[lt]=v,(0,l.provide)(lt,v),u.componentPublicExposed.broadcast=(M,q,...P)=>{if(v)return Reflect.apply(v.emit,v,[M,q,...P])};const S=(0,l.inject)(it,null),F=gl(u.componentPublicExposed,S,{componentName:"",context:e.context});u.validateSchema=F,u.componentPublicExposed[it]=F,(0,l.provide)(it,F),u.componentPublicExposed[Lt]=new Map,u.componentPublicExposed.validate=async(M=!0)=>{const q=[];let P=null;const D={};let I=!1;if(M===!0)P={name:"*"},I=!0;else if(Array.isArray(M)&&M.length>0){const C=M;P={name:K=>K?C.indexOf(K)!==-1:!1},I=!0}else if(M!=null&&typeof M=="object"){const C=M;if(C.deep!==!1){if(Object.assign(D,C),Array.isArray(C.include)&&C.include.length>0){const K=C.include;P={name:$=>$?K.indexOf($)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const K=C.exclude;P={name:$=>$?K.indexOf($)===-1:!1}}else P={name:"*"};I=!0}}if(I&&P){D.deep=!1;const C=v?.emitToChildren(P,"validate",D);C&&Reflect.apply([].push,q,C)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(C=>{let K=[];return C.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(K=[...K,...$.errors])}),K.length>0?{pass:!1,errors:K}:{pass:!0}}):Promise.resolve({pass:!0})};const L=e.context;u.componentPublicExposed.setNameValidateRules=(M,q=!0,P=!1)=>{if(P===!0){Reflect.ownKeys(M).forEach(D=>{let I=String(D);const C={componentName:"",fieldName:I,pureDataValidate:!0,context:L};if(u){const K=Na(u,I,C,v,F);u.componentPublicExposed[Lt].set(I,K);const $=M[I];$&&K.validateSchema.setRule($)}});return}if(q){const D=Reflect.ownKeys(M);v?.emitToChildren({name:I=>D.includes(I),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",M,!1)}},u.componentPublicExposed.clearValidate=(M=!0)=>{let q=null;const P={};let D=!1;if(M===!0)q={name:"*"},D=!0;else if(Array.isArray(M)&&M.length>0){const I=M;q={name:C=>C?I.indexOf(C)!==-1:!1},D=!0}else if(M!=null&&typeof M=="object"){const I=M;if(I.deep!==!1){if(Array.isArray(I.include)&&I.include.length>0){const C=I.include;q={name:K=>K?C.indexOf(K)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const C=I.exclude;q={name:K=>K?C.indexOf(K)===-1:!1}}else q={name:"*"};Object.assign(P,I),D=!0}}D&&q&&(P.deep=!1,v?.emitToChildren(q,"clearValidate",P))},u.componentPublicExposed.resetFields=M=>{const q=m();if(!q)return;const P={};if(xt(!0,P,p()??{}),Array.isArray(M))M.forEach(D=>{q[D]=P[D]});else if(M&&Array.isArray(M.include))(M.include??[]).forEach(D=>{q[D]=P[D]});else if(M&&Array.isArray(M.exclude)){let D=M.exclude??[];Reflect.ownKeys(P).forEach(I=>{D.includes(I)||(q[I]=P[I])})}else Object.assign(q,P);u?.componentPublicExposed?.clearValidate(M)},u.componentPublicExposed.setModelValue=(M,q)=>{if(!q||q===s)i(M);else{const P={name:q,messagingPolicy:"Once"};v?.emitToChildren(P,"setModelValue",M)}},u.componentPublicExposed.getModelValue=()=>m(),u.componentPublicExposed.setDomainProperty=(M,q)=>{z(M,q)},u.componentPublicExposed.getDomainProperty=M=>h(M),setTimeout(function(){v?.pull()},0)}(0,l.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Lt]&&u.componentPublicExposed[Lt].clear(),u?.destroy(),u=null});const c=e.context?.expose;return{domain:u,exposeApi:(g={})=>{Object.assign(u.componentPublicExposed,g),c?.(u.componentPublicExposed)}}}function xa(e,t){let r=(0,l.inject)(ut,null);r===null&&(r=bt());let a=new yl(t);a.parent=r;const n=e.props,o=e.ignorePropKeys;(0,l.isReactive)(n)||typeof n=="function"?(0,l.watch)(n,u=>{a?.merge(u,o)},{immediate:!0}):a.merge(n,o),a.componentPublicExposed[ut]=a,(0,l.provide)(ut,a),(0,l.onScopeDispose)(()=>{a?.destroy(),a=null});const s=e.context?.expose;return{domain:a,exposeApi:(u={})=>{Object.assign(a.componentPublicExposed,u),s?.(a.componentPublicExposed)}}}function Te(e,t,r){const a={},n=t??e.componentName??"";let o=hl(a,(0,l.inject)(lt,null),n,r);a[lt]=o,(0,l.provide)(lt,o),a.broadcast=(f,d,...T)=>o?Reflect.apply(o.emit,o,[f,d,...T]):null;const s=(0,l.inject)(it,null);e.fieldName=e.fieldName??n;let u=gl(a,s,e);a[it]=u,(0,l.provide)(it,u),a.validate=async(f=null)=>{if(!u)return Promise.resolve({pass:!0});const d=[];let T=null;const z={};let h=!1,c=!1;if(f===!0)T={name:"*"},c=!0,h=!0;else if(Array.isArray(f)&&f.indexOf(n)!==-1){const g=f;T={name:v=>v?g.indexOf(v)!==-1:!1},c=!0,h=!0}else if(f&&typeof f=="object"){const g=f,v=g.ignoreDisabled??!0,S=g.ignoreReadonly??!0,F=g.ignoreHidden??!0;v===!0&&e.disabled===!0||S===!0&&e.readonly===!0||F===!0&&rn(e.templateRefProxy?.$el??e.templateRefProxy)?c=!1:(Array.isArray(g.include)&&g.include.indexOf(n)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(n),c=!0),Object.assign(z,g),h=g.deep??!1}if(c){const g=u?.validate();d.push(g)}if(h&&T){z.deep=!1;const g=o?.emitToChildren(T,"validate",z);g&&Reflect.apply([].push,d,g)}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let v=[];return g.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(v=[...v,...S.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=(f,d=!1)=>{const T=f[n];T&&u?.setRule(T),d&&o&&o.emitToChildren({name:z=>Reflect.ownKeys(f).includes(z)},"setNameValidateRules",f,!1)},a.clearValidate=(f=!0)=>{if(!u)return;let d=null;const T={};let z=!1,h=!1;if(f===!0)d={name:"*"},h=!0,z=!0;else if(Array.isArray(f)&&f.indexOf(n)!==-1){const c=f;d={name:g=>g?c.indexOf(g)!==-1:!1},h=!0,z=!0}else if(f&&typeof f=="object"){const c=f;(c.ignoreHidden??!0)===!0&&rn(e.templateRefProxy?.$el??e.templateRefProxy)?h=!1:(Array.isArray(c.include)&&c.include.indexOf(n)!==-1||Array.isArray(c.exclude)&&c.exclude.indexOf(n),h=!0),Object.assign(T,c),z=c.deep??!1}h&&u?.clear(),z&&d&&(T.deep=!1,o?.emitToChildren(d,"clearValidate",T))};let i=new Sa(e.context?.emit);a[sl]=i;const m=Ke((f="validate")=>{u&&(f==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ga()).forEach(f=>{i&&i.on(f,d=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ya()).forEach(f=>{i&&i.on(f,d=>{m("reset")})}),setTimeout(function(){o?.pull()},0),(0,l.onScopeDispose)(()=>{o?.destroy(),o=null,u?.destroy(),a[it]=null,u=null,i?.destroy(),a[sl]=null,i=null,a.broadcast=null,a.validate=null,a.setValidateRule=null,a.setNameValidateRules=null,a.clearValidate=null});const p=e.context?.expose;return{broadcast:o,validateSchema:u,emitEvent:(f,...d)=>{i&&Reflect.apply(i.emit,i,[f,...d])},onEvent:(f,d)=>{i&&Reflect.apply(i.on,i,[d])},offEvent:(f,d)=>{i&&Reflect.apply(i.off,i,[d])},componentPublicExposed:a,exposeApi:(f={})=>{Object.assign(a,f),p?.(a)}}}function Na(e,t,r,a,n){const o={},s=t??"",u={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};r.fieldName=s,r.validateHandler={getValue(f){return u.getValue()}};let i=gl({},n,r);o.validate=async(f=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let T=!1,z=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)z=!0,T=!0;else if(f&&typeof f=="object"){const h=f;Array.isArray(h.include)&&h.include.indexOf(s)!==-1||Array.isArray(h.exclude)&&h.exclude.indexOf(s),z=!0,T=h.deep??!1}else typeof f=="boolean"&&(T=f),z=!0;if(z&&i){const h=i.validate();d.push(h)}if(T){let h=null;const c={};if(f===!0)h={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;h={name:v=>v?g.indexOf(v)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(c,g),Array.isArray(g.include)&&g.include.length>0){const v=g.include;h={name:S=>S?v.indexOf(S)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const v=g.exclude;h={name:S=>S?v.indexOf(S)===-1:!1}}else h={name:"*"}}if(h&&m){c.deep=!1;const g=m.emitToChildren(h,"validate",c);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(h=>{let c=[];return h.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(c=[...c,...g.errors])}),c.length>0?{pass:!1,errors:c}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=f=>i?.setRule(f),o.setNameValidateRules=f=>{const d=f[s];d&&i?.setRule(d)};let m=hl(o,a,s);(0,l.onScopeDispose)(()=>{i=null,m=null});const p=r.context?.expose;return{broadcast:m,validateSchema:i,componentPublicExposed:o,exposeApi:(f={})=>{Object.assign(o,f),p?.(o)}}}function Ca(e){let t={},r=new Sa(e.context?.emit);t[sl]=r,(0,l.onScopeDispose)(()=>{r?.destroy(),Reflect.deleteProperty(t,sl),t=null,r=null});const a=e.context?.expose;return{emitEvent:(n,...o)=>{r&&Reflect.apply(r.emit,r,[n,...o])},onEvent:(n,o)=>{r&&Reflect.apply(r.on,r,[o])},offEvent:(n,o)=>{r&&Reflect.apply(r.off,r,[o])},componentPublicExposed:t,exposeApi:(n={})=>{Object.assign(t,n),a?.(t)}}}var Se=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${pe(e,t)}px`:"",vi=Se;function pe(e,t=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let n=Number(e.substring(0,r)),o=1;if(dt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return n*=o,n}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const a=Number(e);return isNaN(a)?0:a}var ct="PageStateKey";function Ze(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=pe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=pe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=pe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=pe(e.right))),t}function on(e,t,r={},a=!0,n=-1,o=-1,s=0,u=0){if(e.headerHeight=pe(r.headerHeight??t.headerHeight??-1),e.headerPadding=Ze(r.headerPadding??t.headerPadding),e.footerHeight=pe(r.footerHeight??t.footerHeight??-1),e.footerPadding=Ze(r.footerPadding??t.footerPadding),e.contentPadding=Ze(r.contentPadding??t.contentPadding),a){const i=r.height??t.height;i?e.height=pe(i,o):e.height=pe(o)-pe(s,o)-pe(u,o),e.width=pe(r.width??t.width??0,n)}}function za(e,t={}){const r={top:null,bottom:null,right:null,left:null},a={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},n=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});n&&(a.safeAreaTop=pe(n.top),a.safeAreaBottom=pe(n.bottom),a.safeAreaLeft=pe(n.left),a.safeAreaRight=pe(n.right));const o=e.get("pageLayout");if(!o)return null;on(a,o,t,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,l.reactive)(a),u=e.getForParent(ct);u&&(a.height=ul(e,u),a.width=cl(e,u),(0,l.watch)([()=>ul(e,u),()=>cl(e,u)],([m,p])=>{s.height=m,s.width=p}));const i=!u;return(0,l.watch)([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([m,p,f=-1,d=-1,T=0,z=0])=>{on(s,p,t,i,f,d,T,z)}),e.set(ct,s),s}function bl(e){return e.get(ct)}function Sl(e,t){if(t=t??e.get(ct),t&&t.headerMounted){const r=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+r}return 0}function wl(e,t){if(t=t??e.get(ct),t&&t.footerMounted){const r=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+r}return 0}function ul(e,t){if(t=t??e.get(ct),t){if(t.contentInnerHeight)return t.contentInnerHeight;const r=Sl(e,t),a=wl(e,t),n=pe(t.contentPadding.top??0),o=pe(t.contentPadding.bottom??0);return t.height-r-a-n-o}return 0}function cl(e,t){if(t=t??e.get(ct),t){const r=pe(t.contentPadding.left??0),a=pe(t.contentPadding.right??0);return t.contentInnerWidth??t.width-r-a}return 0}function yi(e){return!!e.getForParent(ct)}var Sn=Symbol.for("InnerPageScopeKey");function wn(e){(0,l.provide)(Sn,e)}function Yt(e=!1){return(0,l.inject)(Sn,e)}var xn=Symbol.for("AbstractPageScopeKey");function ka(e){(0,l.provide)(xn,e)}function Ut(e=!1){return(0,l.inject)(xn,e)}function Ea(e=!1){const t=Ut(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.headerBar??e:e}function _a(e=!1){const t=Ut(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.footerBar??e:e}function Ta(e=!1){const t=Ut(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.content??e:e}var Me=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function tl(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Pe(e,t,r=Me.Near,a){const n=ft();return n==null?e:r===Me.Parent?(0,l.computed)(()=>{const o=n.getAll(t);for(let u=o.length-1;u>=0;u--){const i=o[u];if(tl(i,a))return i}const s=e.value;return tl(s,a)?s:null}):(0,l.computed)(()=>{const o=e.value;if(tl(o,a))return o;const s=n.getAll(t);for(let u=0;u<s.length;u++){const i=s[u];if(tl(i,a))return i}return null})}function $a(e){return Pe(e,"readonly",Me.Near)}function Ba(e){return Pe(e,"disabled",Me.Near)}function Va(e){return Pe(e,"browse",Me.Near)}function Fe(e){const t=(0,l.ref)(null),r=(0,l.ref)(null),a=Ba((0,l.computed)(()=>r.value??e.disabled)),n=(0,l.ref)(null);return{itemTemplateRef:t,innerDisabled:r,disabled:a,innerReadonly:n,readonly:$a((0,l.computed)(()=>n.value??e.readonly)),browse:Va((0,l.computed)(()=>e.browse))}}function ye(e,t="modelValue",r=null,a){const n=(0,l.toRef)(e,t);let o=n.value;typeof r=="function"&&(o=r(n.value));const s=(0,l.ref)(o);return(0,l.watch)(n,u=>{if(typeof r=="function"){const i=r(u);i!==s.value&&(s.value=i,a&&a("setValue",i))}else u!==s.value&&(s.value=u,a&&a("setValue",u))}),s}var Ma=new Map,dl=new Map,Nn=null;function bi(e){Nn=e}function Si(){return Nn}function et(){return Nn?.()??null}function Pa(e,t,r){if(r){let a=dl.get(r);a||(a=new Map,dl.set(r,a)),a.set(e,t)}else Ma.set(e,t)}function je(e,t){let r=null;if(t){let a=dl.get(t);a&&(r=a.get(e))}return r||(r=Ma.get(e)),r}function wi(e,t){for(let r in e){const a=e[r];Pa(r,a,t)}}function xi(e){dl.delete(e)}function Ni(){return{top:0,left:0,bottom:0,right:0}}function Ci(){return dt?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function zi(e,t){let r=e;if(t.componentPrefix){const a=r.indexOf("-");a!==-1?r=`${t.componentPrefix}${r.slice(a)}`:r=`${t.componentPrefix}-${r}`}return qt(r)}var ki=class{packages;installers;_version;get version(){return this._version}constructor(e,t,r){this.packages=e,this.installers=t,this._version=r}install(e,t={}){t?.install!==!1&&(this.packages.forEach(a=>{if(a.install)e.use(a,t);else if(a.name){const n=zi(a.name,t);e.component(n,a)}}),this.installers.forEach(a=>{a(e,t)}));const r=bt();if(t.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a={...t},n=Ke(()=>{const o={...a};this.updateLayout(o,r)},120);new window.ResizeObserver(n).observe(window.document.body)}this.updateLayout(t,r)}updateLayout(e,t){const r=e.headerBarHeight??0,a=e.footerBarHeight??0,n=xt({},Ni(),e.safeAreaInset),o=Ci(),s=xt({},o.pageLayout,e.pageLayout);t=t??bt(),t.set("safeAreaInset",n),t.set("headerBarHeight",r),t.set("footerBarHeight",a),t.set("pageLayout",s),t.set("rootWidth",o.rootWidth),t.set("rootHeight",o.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const i in e)u.indexOf(i)===-1&&t.set(i,e[i])}setScopeGetter(e){bi(e)}getScopeGetter(){return Si()}setAPI(e,t,r){Pa(e,t,r)}getAPI(e,t){return je(e,t)}batchSetAPI(e,t){wi(e,t)}clearScopeAPI(e){xi(e)}getRootDomain(){return bt()}},Ei=[w.ElAffix,w.ElAlert,w.ElAutocomplete,w.ElAutoResizer,w.ElAvatar,w.ElBacktop,w.ElBadge,w.ElBreadcrumb,w.ElBreadcrumbItem,w.ElButton,w.ElButtonGroup,w.ElCalendar,w.ElCard,w.ElCarousel,w.ElCarouselItem,w.ElCascader,w.ElCascaderPanel,w.ElCheckTag,w.ElCheckbox,w.ElCheckboxButton,w.ElCheckboxGroup,w.ElCol,w.ElCollapse,w.ElCollapseItem,w.ElCollapseTransition,w.ElColorPicker,w.ElConfigProvider,w.ElContainer,w.ElAside,w.ElFooter,w.ElHeader,w.ElMain,w.ElDatePicker,w.ElDescriptions,w.ElDescriptionsItem,w.ElDialog,w.ElDivider,w.ElDrawer,w.ElDropdown,w.ElDropdownItem,w.ElDropdownMenu,w.ElEmpty,w.ElForm,w.ElFormItem,w.ElIcon,w.ElImage,w.ElImageViewer,w.ElInput,w.ElInputNumber,w.ElLink,w.ElMenu,w.ElSubMenu,w.ElMenuItem,w.ElMenuItemGroup,w.ElPageHeader,w.ElPagination,w.ElPopconfirm,w.ElPopover,w.ElPopper,w.ElProgress,w.ElRadio,w.ElRadioButton,w.ElRadioGroup,w.ElRate,w.ElResult,w.ElRow,w.ElScrollbar,w.ElSelect,w.ElOption,w.ElOptionGroup,w.ElSelectV2,w.ElSkeleton,w.ElSkeletonItem,w.ElSlider,w.ElSpace,w.ElSteps,w.ElStep,w.ElSwitch,w.ElTable,w.ElTableColumn,w.ElTableV2,w.ElTabs,w.ElTabPane,w.ElTag,w.ElTimePicker,w.ElTimeSelect,w.ElTimeline,w.ElTimelineItem,w.ElTooltip,w.ElTransfer,w.ElTree,w.ElTreeSelect,w.ElTreeV2,w.ElUpload,w.ElStatistic,w.ElCountdown,w.ElSegmented,w.ElAnchor,w.ElAnchorLink,w.ElWatermark,w.ElMessageBox,w.ElMessage,w.ElNotification,w.ElSplitter],_i=[w.ElInfiniteScroll,w.ElLoading,w.ElMessage,w.ElMessageBox,w.ElNotification,w.ElPopoverDirective],Ti=(e,t={})=>{const r=t.componentPrefix??"fox";Ei.forEach(a=>{if(typeof a.name=="string"){let n="";const o=ma(a.name),s=o.indexOf("-");s!==-1?n=`${r}${o.slice(s)}`:n=`${r}-${o}`,n=qt(n),e.component(n,a)}else e.use(a)}),_i.forEach(a=>{e.use(a)})};function se(e){const t=`fox-${e}`,r=qt(t);return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=r,a.install=(n,o)=>{let s=a.name;o?.componentPrefix&&(s=`${o.componentPrefix}-${a.baseName}`,s=qt(s)),n.component(s,a)},(0,l.defineComponent)(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,(0,l.defineComponent)(a)}}}var xe={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},$e={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Aa={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Ia={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},La=[];for(const e in Ia)La.push(e);var $i={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Bi={...xe,...Aa,...$i},Vi=(e,t)=>({inheritAttrs:!0,props:Bi,setup(r,a){const n=!!Ut(!1),o=Yt(!1),{domain:s,exposeApi:u}=bn({props:r,context:a},r.name);if(s){const f=za(s,r);u({getPageContentHeight:()=>ul(s,f),getPageContentWidth:()=>cl(s,f),getPageHeaderHeight:()=>Sl(s,f),getPageFooterHeight:()=>wl(s,f)}),f&&o&&(f.contentHeight="100%")}const i=(0,l.computed)(()=>({[e]:!0,"is-inner":o})),m=(0,l.computed)(()=>({})),p=(f,d=!1)=>{const T=s.componentPublicExposed;T&&typeof T.setNameValidateRules=="function"&&T.setNameValidateRules(f,!0,d)};return(0,l.watch)([()=>r.rules,()=>r.pureDataRules],([f,d],[T,z])=>{if(f&&T){const h=(0,l.toRaw)(T),c=(0,l.toRaw)(f),g=c?Reflect.ownKeys(c):[];(h?Reflect.ownKeys(h):[]).forEach(v=>{g.includes(v)||(c[v]=[])}),p(c)}if(d&&z){const h=(0,l.toRaw)(z),c=(0,l.toRaw)(d),g=c?Reflect.ownKeys(c):[];(h?Reflect.ownKeys(h):[]).forEach(v=>{g.includes(v)||(c[v]=[])}),p(c,!0)}},{deep:!0}),(0,l.onMounted)(()=>{r.rules&&p((0,l.toRaw)(r.rules)),r.pureDataRules&&p((0,l.toRaw)(r.pureDataRules),!0)}),()=>n?a.slots?.default?.():(0,l.h)("div",{class:i.value,style:m.value},[a.slots?.default?.()])}}),{componentName:Mi,create:Pi,scope:Ai}=se("page"),Ii=Pi(Vi(Mi,Ai)),Cn=Ii;function zn(e){const t=(0,l.unref)(e);return{width:t.offsetWidth,height:t.offsetHeight}}function xl(e){const t=(0,l.unref)(e),r=window.getComputedStyle(t,null),a=parseFloat(r.getPropertyValue("padding-left")),n=parseFloat(r.getPropertyValue("padding-right")),o=parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("padding-bottom"));return{width:t.clientWidth-a-n,height:t.clientHeight-o-s}}var Fa={headerbar:{},radio:{},checkbox:{}};function Li(e){Object.assign(Fa,e)}function Ra(){return Fa}var Fi=(e,t,r,a=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:r},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(n,o){const s=Ea(!1),u=Yt(!1),i=s?null:ft(),m=i?bl(i):null;m&&(m.headerMounted=!0);const p=Ra(),f=e,d=(0,l.computed)(()=>{const b={[f]:!0,[`${f}--border`]:n.border,[`${f}--fixed`]:n.fixed};return u||(b[`${f}--safe-area-inset-top`]=n.safeAreaInsetTop),b}),T=(0,l.computed)(()=>({[`${f}__inner`]:!0,[`${f}__inner--${n.align}`]:!0})),z=_e(n.height)?null:pe(n.height),h=(0,l.computed)(()=>{const b={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return b;if(i&&m){const A=Ze(n.padding??m.headerPadding);if(Object.assign(b,A),_e(z)||(m.headerHeight=z),b.height=m.headerHeight,b.safeAreaTop=m.safeAreaTop===-1?0:m.safeAreaTop,b.safeAreaTop>0){const B=pe(A.top??0);b.top=b.safeAreaTop+B,b.height&&b.height>0&&(b.height=b.height+b.safeAreaTop)}return b}if(_e(z)||(b.height=z),n.padding){const A=Ze(n.padding);Object.assign(b,A)}return b}),c=(0,l.ref)(null),g=()=>m&&c.value&&!vn(c.value)?(a||(m.headerAllHeight=zn(c.value).height),m.headerMounted=!0,!0):!1,v=Ke(g,120);let S=null;(0,l.onMounted)(()=>{s||m&&(vl(g,50,5,50,!0),window.ResizeObserver&&c.value&&(S=new window.ResizeObserver(v),S.observe(c.value)))}),(0,l.onUnmounted)(()=>{s||m&&(m.headerMounted=!1,S&&(S.disconnect(),S=null))});const F=(0,l.computed)(()=>{const b={};return s||(h.value.height!==null&&h.value.height!==void 0&&(b.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(b.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(b.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(b.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(b.paddingBottom=`${h.value.bottom}px`)),b}),L=(0,l.computed)(()=>{const b=h.value?.height;return _e(b)||b<0?!0:b>0});function M(){o.emit("back")}function q(){o.emit("click-title")}function P(){o.emit("click-right")}function D(){o.emit("click-right-text")}const I=()=>{if(!n.leftShow)return null;const b=[];if(o.slots.left)b.push(o.slots.left());else{if(o.slots.leftIcon){const A=(0,l.h)("view",{class:"left-icon",onClick:M},[o.slots.leftIcon()]);b.push(A)}else{const A=n.leftIcon??p.headerbar.Left??r,B=(0,l.h)("view",{class:"left-icon",onClick:M},[(0,l.h)(A)]);b.push(B)}if(n.leftText){const A=(0,l.h)("view",{class:"left-text",onClick:M},[n.leftText]);b.push(A)}}return b.length===0?null:(0,l.h)("view",{class:"fox-header-bar__left"},b)},C=()=>{if(!n.rightShow)return null;const b=[];if(o.slots.right)b.push(o.slots.right());else{if(n.rightText){const A=(0,l.h)("view",{class:"right-text",onClick:D},[n.rightText]);b.push(A)}if(o.slots.rightIcon){const A=(0,l.h)("view",{class:"right-icon",onClick:P},[o.slots.rightIcon()]);b.push(A)}else if(n.rightIcon){const A=(0,l.h)("view",{class:"right-icon",onClick:P},[(0,l.h)(n.rightIcon)]);b.push(A)}}return b.length===0?null:(0,l.h)("view",{class:"fox-header-bar__right"},b)},K=()=>{if(!n.titleShow)return null;const b=[],A=o.slots.default?o.slots.default():null;if(A)b.push(A);else{if(n.title){const B=(0,l.h)("view",{class:"title-text"},[n.title]);b.push(B)}if(o.slots.titleIcon){const B=(0,l.h)("view",{class:"title-icon",onClick:q},[o.slots.titleIcon()]);b.push(B)}else if(n.titleIcon){const B=(0,l.h)("view",{class:"title-icon",onClick:q},[(0,l.h)(n.titleIcon)]);b.push(B)}}return b.length===0?null:(0,l.h)("view",{class:"fox-header-bar__title"},b)},$=()=>{const b=[],A=o.slots.bottom?o.slots.bottom():null;return A&&b.push(A),b.length===0?null:(0,l.h)("view",{class:"fox-header-bar__bottom"},b)};return()=>{if(s||!L.value)return null;const b=[];if(o.slots.all)b.push(o.slots.all());else{const A=[],B=I();B&&A.push(B);const H=K();H&&A.push(H);const R=C();if(R&&A.push(R),A.length>0){const _=(0,l.h)("view",{class:T.value},A);b.push(_)}const U=$();U&&b.push(U)}return b.length===0?null:(0,l.h)("view",{class:d.value,style:F.value,ref:c},b)}}}),{componentName:Ri,create:Di,scope:Oi}=se("header-bar"),qi=Di(Fi(Ri,Oi,Ve.ArrowLeft)),kn=qi;function Hi(e,t,r=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(a,n){const o=_a(!1),s=Yt(!1),u=o?null:ft(),i=u?bl(u):null,m=(0,l.computed)(()=>{const v=e,S={[v]:!0,[`${v}--${a.align}`]:!0,[`${v}--border`]:a.border,[`${v}--fixed`]:a.fixed};return s||(S[`${v}--safe-area-inset-bottom`]=a.safeAreaInsetBottom),S}),p=_e(a.height)?null:pe(a.height),f=(0,l.computed)(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return v;if(u&&i){const S=Ze(a.padding??i.footerPadding);if(Object.assign(v,S),_e(p)||(i.footerHeight=p),v.height=i.footerHeight,v.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,v.safeAreaBottom>0){const F=pe(S.bottom??0);v.bottom=v.safeAreaBottom+F,v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)}return v}if(_e(p)||(v.height=p),a.padding){const S=Ze(a.padding);Object.assign(v,S)}return v}),d=(0,l.computed)(()=>{const v=f.value?.height;return _e(v)||v<0?!0:v>0}),T=(0,l.ref)(null),z=()=>i&&T.value&&!vn(T.value)?(r||(i.footerAllHeight=zn(T.value).height),i.footerMounted=!0,!0):!1,h=Ke(z,120);let c=null;(0,l.onMounted)(()=>{o||i&&(vl(z,50,5,50,!0),window.ResizeObserver&&T.value&&(c=new window.ResizeObserver(h),c.observe(T.value)))}),(0,l.onUnmounted)(()=>{o||i&&(i.footerMounted=!1,c&&(c.disconnect(),c=null))});const g=(0,l.computed)(()=>{const v={};return o||(f.value.height!==null&&f.value.height!==void 0&&(v.height=Se(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=Se(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=Se(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=Se(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=Se(f.value.bottom))),v});return()=>{if(o||!d.value)return null;const v=n.slots.default?n.slots.default():[];return(0,l.h)("view",{ref:T,class:m.value,style:g.value},v)}}}}var{componentName:ji,create:Ki,scope:Wi}=se("footer-bar"),Yi=Ki(Hi(ji,Wi)),En=Yi;function Ui(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(r,{slots:a,attrs:n}){const o=Ta(!1),s=Yt(!1),u=o?null:ft(),i=(0,l.computed)(()=>({[e]:!0})),m=u?bl(u):null,p=(0,l.computed)(()=>{const h={};if(o)return h;if(u&&m){if(r.padding){const q=Ze(r.padding);Object.assign(m.contentPadding,q)}const c=Sl(u,m),g=wl(u,m);let v="";m.contentHeight?v=`${m.contentHeight}`:v=`${m.height}px`,h.height=v;let S=pe((m&&m.contentPadding&&m.contentPadding.top)??-1);(S>=0||c>0)&&(S=S<0?0:S,h.paddingTop=`${c+S}px`);let F=pe((m&&m.contentPadding&&m.contentPadding.bottom)??-1);(F>=0||g>0)&&(F=F<0?0:F,h.paddingBottom=`${g+F}px`);const L=pe((m&&m.contentPadding&&m.contentPadding.left)??-1);L>=0&&(h.paddingLeft=`${L}px`);const M=pe((m&&m.contentPadding&&m.contentPadding.right)??-1);return M>=0&&(h.paddingRight=`${M}px`),h}if(r.padding){const c=Ze(r.padding);c.left&&(h.paddingLeft=`${c.left}px`),c.top&&(h.paddingTop=`${c.top}px`),c.right&&(h.paddingRight=`${c.right}px`),c.bottom&&(h.paddingBottom=`${c.bottom}px`)}return h}),f=(0,l.ref)(null),d=()=>{if(m&&f.value){const h=xl(f.value);m.contentInnerHeight=h.height,m.contentInnerWidth=h.width}},T=Ke(d,120);let z=null;return(0,l.onMounted)(()=>{s||o||(requestAnimationFrame(d),window.ResizeObserver&&f.value&&(z=new window.ResizeObserver(T),z.observe(f.value)))}),(0,l.onUnmounted)(()=>{s||o||z&&(z.disconnect(),z=null)}),()=>o?a.default?.():(0,l.h)(r.tag??"view",{...n,ref:f,class:i.value,style:p.value},a)}}}var{componentName:Gi,create:Xi,scope:Zi}=se("content"),Ji=Xi(Ui(Gi,Zi)),_n=Ji,Nt="GroupStateKey",Da=Symbol.for("GroupScopeKey");function Nl(){return(0,l.inject)(Da,!1)}function Cl(e=!0){(0,l.provide)(Da,e)}function Qi(e,t={}){Reflect.ownKeys(t).forEach(r=>{if(typeof r!="string")return;const a=t[r];_e(a)||(e[r]=a)})}function es(e,t={}){const r={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qi(r,t);const a=(0,l.markRaw)({layout:(0,l.shallowRef)(r),passport:0,order:{index:0}});return e.set(Nt,a),a}function Kl(e,t,r=-1,a=-1,n=!1,o,s,u){const i=e.get(Nt);if(!i)return;const m=e.get("groupLayout")??{};r===-1&&(r=m.column??1),a===-1&&(a=m.gutter??0),o||(o=m.minItemWidth??-1),s||(s=m.maxItemWidth??-1);const p=pe(o),f=pe(s);u||(u=m.type??"grid");const d=()=>{const T=t===""||t===-1,z=pe(t);let h=ze(r);const c=pe(a);if(!T){let S=(z-(h-1)*c)/h;for(;f!==-1&&S>f;)h++,S=(z-(h-1)*c)/h;for(;p!==-1&&h>1&&S<p;)h--,S=(z-(h-1)*c)/h}let g=!1;const v=i.layout;v.value.width=t,v.value.column!==h&&(v.value.column=h,g=!0),v.value.gutter!==c&&(v.value.gutter=c,g=!0),v.value.type!==u&&(v.value.type=u,g=!0),g&&(0,l.triggerRef)(v)};if(n)d();else{const T=++i.passport;setTimeout(()=>{T===i.passport&&d()},50)}}function zl(e,t=!1){let r;return t?r=e.getForParent(Nt):r=e.get(Nt),r.layout}function kl(e,t=!1){let r;return t?r=e.getForParent(Nt):r=e.get(Nt),r.order}function Cr(e,t=1){if(t==="stretch")return-1;const r=ze(t);return r===-1?100:100*r/e}function El(e,t,r=1,a=0,n){const o={};let s=0;n?s=pe(n):s=Cr(t.column,r),s>0&&(o.width=`${s}%`);const u=Cr(t.column,a);u>0&&(o["margin-left"]=`${u}%`);const i=pe(t.gutter)/2;return i>0&&(o["padding-left"]=`${i}px`,o["padding-right"]=`${i}px`),o}function _l(e,t,r=1,a=0){if(r==="stretch"){const i=e.index%t.column,m=i+(t.column-i);return e.index=e.index+(m-i),{"grid-column":`${i+1} / -1`}}let n=ze(r);if(n===-1){const i=e.index%t.column;return t.column,i==0?e.index=e.index+t.column:e.index=e.index+(t.column-i)+t.column,{"grid-column":"1 / -1"}}if(n>t.column){const i=e.index%t.column;return t.column,i==0?e.index=e.index+t.column:e.index=e.index+(t.column-i)+t.column,{"grid-column":"1 / -1"}}const o=ze(a)%t.column;let s=(e.index+o)%t.column,u=s+n;return u>t.column?(s=0,u=s+n,e.index=e.index+(t.column-s)+n):e.index=e.index+o+n,o>0?{"grid-column":`${s+1} / span ${n}`}:{"grid-column-start":`span ${n}`}}var Oa=Symbol("RollingStateKey");function ts(e){(0,l.provide)(Oa,e)}function ls(){return(0,l.inject)(Oa,null)}function sn(e){let t=0;const r=window.getComputedStyle(e,null);if(r.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(r.getPropertyValue("padding-top")),n=parseFloat(r.getPropertyValue("padding-bottom"));t=e.clientHeight-a-n}else t=e.offsetHeight;return t}function ns(e){let t=sn(e);if(t<=0){const r=e.cloneNode(!0);r.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),t=sn(r),document.body.removeChild(r)}return t}function rs(e,t,r){const a=typeof e=="number"?e:parseInt(e),n=typeof t=="number"?t:parseInt(t),o=typeof r=="number"?r:parseInt(r);if(a<=0)return"1fr";const s=(a-(n-1)*o)/n;return s>0?`${s}px`:"1fr"}function qa(e){const t=[];return e.forEach(r=>{r.type===l.Fragment&&Array.isArray(r.children)?t.push(...qa(r.children)):t.push(r)}),t}function as(e){return!(e.type===l.Comment||e.type===l.Text&&typeof e.children=="string"&&e.children.trim()==="")}function Tl(e){function t(){return qa(e?.()??[]).filter(as)}return{getChildren:t}}var os={...xe,...Aa,...Ia};function is(e,t,r){return{props:os,emits:["update:collapse","header-click"],setup(a,n){const{domain:o,exposeApi:s}=bn({props:a,ignorePropKeys:La,context:n},a.prop??a.name),u=es(o,{type:a.type}),i=Nl();Cl(!0);const m=a.rollingDisplay?ls():null,p=(0,l.ref)(null),f=(0,l.computed)(()=>a.rollingDisplay?m&&!m.disabled:!1),d=(0,l.computed)(()=>i&&o?zl(o,!0).value:null),T=(Q,re=!1)=>{const V=o?.componentPublicExposed;V&&typeof V.setNameValidateRules=="function"&&V.setNameValidateRules(Q,!0,re)};(0,l.watch)([()=>a.rules,()=>a.pureDataRules],([Q,re],[V,y])=>{if(Q&&V){const N=(0,l.toRaw)(V),x=(0,l.toRaw)(Q),G=x?Reflect.ownKeys(x):[];(N?Reflect.ownKeys(N):[]).forEach(ee=>{G.includes(ee)||(x[ee]=[])}),T(x)}if(re&&y){const N=(0,l.toRaw)(y),x=(0,l.toRaw)(re),G=x?Reflect.ownKeys(x):[];(N?Reflect.ownKeys(N):[]).forEach(ee=>{G.includes(ee)||(x[ee]=[])}),T(x,!0)}},{deep:!0});const z=e,h=(0,l.computed)(()=>{const Q={};Q.height=A.value;const re=i?kl(o,!0):null;if(d.value&&re){if(d.value.type==="grid"){const V=_l(re,d.value,a.span,a.offset);Object.assign(Q,V)}else if(d.value.type==="flow"){const V=El(re,d.value,a.span,a.offset,a.width);Object.assign(Q,V)}}else a.width&&(Q.width=Se(a.width));return Q}),c=(0,l.computed)(()=>{const Q=u.layout.value.type;return Q==="grid"||Q==="flow"?{[`${z}--${Q}`]:!0,[`${z}--${Q}-justify-${a.justify}`]:!0,[`${z}--${Q}-align-${a.align}`]:!0,[`${z}--gutter`]:!0}:{[`${z}--${Q}`]:!0,[`${z}--gutter`]:!0}}),g=(0,l.computed)(()=>{if(u.layout.value.type==="grid"){let Q="";if(a.columnWidth)Q=`repeat(auto-fill, ${a.columnWidth})`;else{const re=rs(P.value,u.layout.value.column,u.layout.value.gutter);Q=`repeat(${u.layout.value.column}, ${re})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":Q}}}),v=(0,l.toRef)(a,"gutter"),S=(0,l.toRef)(a,"column"),F=(0,l.computed)(()=>i||f.value?!0:de(a.isWrap)),L=[],M=Q=>{L.push(Q)},q=()=>{let Q=L.length;L.splice(0,Q)},P=(0,l.ref)(-1),D=Q=>{const re=xl(Q).width;re>0&&re!==P.value&&(P.value=re)};Kl(o,P.value,S.value,v.value,!0,a.minItemWidth,a.maxItemWidth,a.type),a.autoLayout&&(0,l.watch)([P,S,v],([Q,re,V])=>{u.order.index=0,Kl(o,Q,re,V,!1,a.minItemWidth,a.maxItemWidth,a.type)});const I=(0,l.computed)(()=>B.value?a.expandText??"":a.collapseText??""),C=(0,l.computed)(()=>({[`${e}__header-collapse-text`]:!0})),K=(0,l.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),$=(0,l.ref)(),b=(0,l.ref)(),A=(0,l.computed)(()=>H.value||Se(a.height)||""),B=(0,l.ref)(!1),H=(0,l.ref)(""),R=(0,l.ref)(!1);let U=-1;const _=(Q,re=!0)=>{const V=$.value;if(V&&B.value!==Q){if(U=U===-1?ns(V):U,R.value=!0,re)if(V.style["will-change"]="height",V.ontransitionend=function(){V.ontransitionend=null,this.style["will-change"]="auto",Q||(H.value="",R.value=!1)},Q){let y=0;a.collapseHeight?y=pe(a.collapseHeight):b.value&&b.value.classList.contains(`${e}__header`)&&(y=b.value.offsetHeight),H.value=`${U}px`,(0,l.nextTick)(()=>{H.value=`${y}px`})}else H.value=`${U}px`;else if(Q){let y=0;a.collapseHeight?y=pe(a.collapseHeight):b.value&&b.value.classList.contains(`${e}__header`)&&(y=b.value.offsetHeight),H.value=`${y}px`}else R.value=!1,H.value=`${U}px`;B.value=Q,n.emit("update:collapse",Q)}};(0,l.watch)(()=>a.collapse,Q=>{_(de(Q))});const O=Q=>{n.emit("header-click",Q)},W=()=>{E()},E=Q=>{Q=Q??!B.value,_(Q)};s({toggleCollapse:E,doLayout:()=>{L[0]&&(D(L[0]),Kl(o,P.value,S.value,v.value,!0,a.minItemWidth,a.maxItemWidth,a.type))}});let Y=null,k=!0;const X=Q=>{if(a.rules&&T((0,l.toRaw)(a.rules)),a.pureDataRules&&T((0,l.toRaw)(a.pureDataRules),!0),!!dt&&(Q&&_(de(a.collapse),!1),a.autoLayout&&Array.isArray(L)&&L.length>0)){const re=L[0];if(re&&(D(re),window.ResizeObserver)){const V=Ke(()=>D(re),120);Y=new window.ResizeObserver(V),Y.observe(re)}}},Z=()=>{const Q=L[0];Q&&Y?.observe(Q),Y?.disconnect(),Y=null},ne=!f.value||m?.acquire();ne&&(p.value=f.value?!0:null),(0,l.onMounted)(()=>{if(ne&&(X(k),k=!1),f.value&&m){let Q=null,re=m.initialHeight;m.observe($.value,V=>{if(V!==p.value)if(V)p.value=!0,B.value||(H.value=""),Q=setTimeout(()=>{Q=null,p.value!==!1&&(X(k),k=!1)},100);else{if(Q!==null&&clearTimeout(Q),p.value=!1,!B.value)if(k)H.value=m.initialHeight;else{let y=sn($.value);y<=0?H.value=re:(H.value=`${y}px`,re=H.value)}k||Z()}})}}),(0,l.onUnmounted)(()=>{Z(),m&&m.unobserve($.value)});const le=(Q="right")=>{const re=[];if(I.value){const N=(0,l.h)("span",{class:C.value},[I.value]);re.push(N)}const V={class:K.value},y=r(a.collapseIcon,V);return y&&re.push(y),re.length>0?(0,l.h)("div",{class:{[`${z}__header-collapse`]:!0,[`is-${Q}`]:!0},onClick:W},re):null},oe=(Q,re,V,y)=>{const N={...c.value};if(re===0&&(N[`${z}__first`]=!0),V>=y-1&&(N[`${z}__last`]=!0),F.value===!1){const x=n.attrs.class;x&&(N[`${x}`]=!0)}return(0,l.h)("div",{ref:M,key:`${re}`,class:N,style:g.value},Q)};return()=>{const Q=a.prop??a.name;if(f.value&&p.value!==!0)return(0,l.h)(a.tag||"div",{ref:$,prop:Q,class:{[`${z}`]:!0,"is-collapse":R.value},style:h.value},[]);u.order.index=0;const re=[];let V=0;if(n.slots.header){const G=(0,l.h)("div",{key:`${V++}`,ref:b,class:{[`${z}__header`]:!0,[`${z}__first`]:!0},onClick:O},[n.slots.header()]);re.push(G)}else{const G=[],ee=a.collapsePosition==="left";if(ee&&a.showCollapse){const te=le("left");te&&G.push(te)}if(a.title||n.slots.title){if(a.showMark){const te={class:{[`${z}__header-mark`]:!0}};a.markColor&&(te.style={background:a.markColor});const ue=(0,l.h)("div",te);G.push(ue)}if(n.slots.title){const te=(0,l.h)("div",{class:{[`${z}__header-title`]:!0}},[n.slots.title()]);G.push(te)}else if(a.title){const te=(0,l.h)("div",{class:{[`${z}__header-title`]:!0}},[a.title]);G.push(te)}}if(n.slots.toolbar&&G.push(n.slots.toolbar()),!ee&&a.showCollapse){const te=le("right");te&&G.push(te)}if(G.length>0){const te=(0,l.h)("div",{key:`${V++}`,ref:b,class:{[`${z}__header`]:!0,[`${z}__first`]:!0},onClick:O},G);re.push(te)}}q();const{getChildren:y}=Tl(n.slots.default),N=y(),x=u.layout.value.type;if(x==="grid"){const G=oe(N,V++,0,N.length);re.push(G)}else if(x==="flow"){const G=oe(N,V++,0,N.length);re.push(G)}else for(let G=0;G<N.length;G++){const ee=N[G],te=oe([ee],V++,G,N.length);re.push(te)}return F.value?(0,l.h)(a.tag||"div",{ref:$,prop:Q,class:{[`${z}`]:!0,"is-collapse":R.value},style:h.value},[re]):re}}}}var{componentName:ss,create:us,scope:cs}=se("group"),ds=(e,t)=>(e=e??Ve.ArrowUp,(0,l.h)(w.ElIcon,t,{default:()=>[(0,l.h)(e)]})),fs=us(is(ss,cs,ds)),Tn=fs;function ms(e){return e===window}var ps=/matrix\((.+)\)/,$n=e=>{const t=(0,l.unref)(e);if(!t)return{x:0,y:0};if(ms(t))return{x:0,y:0};let r=0,a=0,n=t;for(;n!==null;)r+=n.offsetLeft,a+=n.offsetTop,n=n.offsetParent;let o=0,s=0,u=0,i=0;for(n=t;n!==document;){s+=n.scrollTop,o+=n.scrollLeft;const{transform:m}=window.getComputedStyle(n);if(m){const p=ps.exec(m);if(p){let f=p[1].split(/\s*,\s*/);f.length==6&&(u+=Number(f[4]),i+=Number(f[5]))}}n=n.parentNode}return r-=o,a-=s,r+=u,a+=i,{x:r,y:a}},hs=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const t=this.watchedListeners.indexOf(e);t!==-1&&this.watchedListeners.splice(t,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},gs=class{monitorRegister=new WeakMap;watch(e,t){let r=e.parentNode;const a=document.body.parentNode;for(;r&&r!==a;){let n=this.monitorRegister.get(r);n||(n=new hs,r.addEventListener("scroll",n.listen),r===document.body&&r.addEventListener("resize",n.listen),this.monitorRegister.set(r,n)),n.add(t),r=r.parentNode}}unwatch(e,t){let r=e.parentNode;const a=document.body.parentNode;for(;r&&r!==a;){let n=this.monitorRegister.get(r);n&&(n.remove(t),n.size()===0&&(this.monitorRegister.delete(r),r.removeEventListener("scroll",n.listen),r===document.body&&r.removeEventListener("resize",n.listen))),r=r.parentNode}}},Rt=new gs,Ha={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:vs,create:ys}=se("price"),bs=ys({props:{...Ha},setup(e){const t=(0,l.computed)(()=>({[vs]:!0})),r=(0,l.computed)(()=>e.needSymbol?e.symbol:""),a=(0,l.computed)(()=>Wt(e.price)==0?"":ml(e.price,e.decimalLength,!0,ze(e.digits),e.separator));return{classes:t,showSymbol:r,intText:(0,l.computed)(()=>{let n=a.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(0,o)}),decimalText:(0,l.computed)(()=>{let n=a.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(o+1)})}}}),Ye=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},Ss=["innerHTML"],ws=["innerHTML"];function xs(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createElementBlock)("view",{class:(0,l.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ss)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--${e.size}`)},(0,l.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,l.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:2,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ws)):(0,l.createCommentVNode)("",!0)],2)}var $l=Ye(bs,[["render",xs]]),{componentName:Wl,create:Ns}=se("hint-text"),Cs=Ns({components:{Price:$l},props:{...Ha,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const r=(0,l.ref)({top:null,right:null,bottom:null,left:null}),a=(0,l.ref)({x:0,y:0}),n=(0,l.ref)(0),o=(0,l.ref)(0),s=(0,l.ref)(e.placement),u=(0,l.ref)(!1),i=(0,l.ref)(null),m=(C,K,$,b,A,B)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,R=document.documentElement.clientHeight||document.body.clientHeight,U=C.split("-");let _=[];U[0]==="top"?_=["top","bottom","right","left"]:U[0]==="bottom"?_=["bottom","top","right","left"]:U[0]==="left"?_=["left","top","bottom","right"]:U[0]==="right"&&(_=["right","top","bottom","left"]);const O={top:null,right:null,bottom:null,left:null},W=[];for(let E=0;E<_.length;E++){const j=_[E];if(W[0]=j,U[1]&&(W[1]=U[1]),j==="top"){const Y=K.y-B-e.arrowSize-e.offset;if(Y>=0){O.top=Y;let k=0;U[1]==="start"?k=K.x:U[1]==="end"?k=K.x+$-A:k=K.x+$/2-A/2;const X=H-k-A;X<0?(k+=X,f.value=-X):f.value=0,O.left=k<0?0:k;break}}else if(j==="bottom"){const Y=K.y+b+e.arrowSize+e.offset;if(Y+B<=R){O.top=Y;let k=0;U[1]==="start"?k=K.x:U[1]==="end"?k=K.x+$-A:k=K.x+$/2-A/2;const X=H-k-A;X<0?(k+=X,f.value=-X):f.value=0,O.left=k<0?0:k;break}}else if(j==="left"){const Y=K.x-A-e.arrowSize-e.offset;if(Y>=0){O.left=Y;let k=0;U[1]==="start"?k=K.y:U[1]==="end"?k=K.y+b-B:k=K.y+b/2-B/2,O.top=k<0?0:k;break}}else if(j==="right"){const Y=K.x+$+e.arrowSize+e.offset;if(Y+A<=H){O.left=Y;let k=0;U[1]==="start"?k=K.y:U[1]==="end"?k=K.y+b-B:k=K.y+b/2-B/2,O.top=k<0?0:k;break}}}return{bestPlacement:W.join("-"),bestInsetRect:O}},p=(C,K,$=10)=>{if(!dt||K===!1||!C)return;a.value=$n(e.reference),n.value=e.reference.offsetWidth,o.value=e.reference.offsetHeight;const b=i.value.offsetHeight,A=i.value.offsetWidth,{bestPlacement:B,bestInsetRect:H}=m(e.placement,a.value,n.value,o.value,A,b);s.value=B,r.value=H,u.value=!0},f=(0,l.ref)(0),d=Ke(()=>{p(e.message,e.visible)},10),T=(0,l.ref)(e.visible);(0,l.watch)(()=>e.visible,C=>{T.value=C});const z=(0,l.computed)(()=>T.value&&h.value),h=(0,l.ref)(!0),c=Ke(C=>{const K=C[0];K&&(h.value=K.isIntersecting)},10),g=new IntersectionObserver(c);(0,l.watch)([()=>e.message,()=>e.visible],([C,K])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),(0,l.onMounted)(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Rt.watch(e.reference,d),g.observe(e.reference)}),(0,l.onBeforeUnmount)(()=>{Rt.unwatch(e.reference,d),g.unobserve(e.reference),g.disconnect()});const v=(0,l.computed)(()=>{const C={[Wl]:!0};return s.value.startsWith("top")?C["is-top"]=!0:s.value.startsWith("right")?C["is-right"]=!0:s.value.startsWith("bottom")?C["is-bottom"]=!0:s.value.startsWith("right")&&(C["is-right"]=!0),e.size==="small"?C["is-small"]=!0:e.size==="large"&&(C["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(C[`${e.customClass}`]=!0),C}),S=(0,l.computed)(()=>{const C={};return r.value.top!==null&&(C.top=`${r.value.top}px`),r.value.right!==null&&(C.right=`${r.value.right}px`),r.value.bottom!==null&&(C.bottom=`${r.value.bottom}px`),r.value.left!==null&&(C.left=`${r.value.left}px`),e.autoFit&&(C["min-width"]=`${n.value}px`),C["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(C.opacity="1"),e.transition||(C.transition="none"),e.zIndex&&(C["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(C,e.customStyle),C}),F=(0,l.computed)(()=>{const C=[`${Wl}__content`];return e.customTextClass&&C.push(e.customTextClass),C}),L=(0,l.computed)(()=>{const C={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(C,e.customTextStyle),C}),M=(0,l.computed)(()=>({[`${Wl}__arrow`]:!0})),q=(0,l.computed)(()=>{const C={};return e.showArrow?(C.width=`${e.arrowSize}px`,C.height=`${e.arrowSize}px`,s.value==="top"?(C.left="50%",C.bottom=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):s.value==="top-start"?(C.left=`${e.arrowOffset+f.value}px`,C.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(C.right=`${e.arrowOffset-f.value}px`,C.bottom=`-${e.arrowSize}px`):s.value==="right"?(C.left=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):s.value==="right-start"?(C.left=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):s.value==="right-end"?(C.left=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(C.left="50%",C.top=`-${e.arrowSize}px`,C.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(C.left=`${e.arrowOffset+f.value}px`,C.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(C.right=`${e.arrowOffset-f.value}px`,C.top=`-${e.arrowSize}px`):s.value==="left"?(C.right=`-${e.arrowSize}px`,C.top="50%",C.transform=" translate(0%, -50%)"):s.value==="left-start"?(C.right=`-${e.arrowSize}px`,C.top=`${e.arrowOffset}px`):s.value==="left-end"&&(C.right=`-${e.arrowSize}px`,C.bottom=`-${e.arrowOffset}px`),C):{display:"none"}}),P=(0,l.computed)(()=>z.value&&e.closeOnClick),D=(0,l.computed)(()=>{const C={};return e.zIndex&&(C["z-index"]=`${e.zIndex}`),C});return{show:z,tipRef:i,classes:v,styles:S,textClasses:F,textStyles:L,arrowClasses:M,arrowStyles:q,overlayShow:P,overlayStyle:D,onClickOverlay:()=>{T.value=!1,t.emit("update:visible",!1)}}}}),zs=["innerHTML"];function ks(e,t,r,a,n,o){const s=(0,l.resolveComponent)("Price");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[e.overlayShow?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,l.normalizeStyle)(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,l.createCommentVNode)("",!0),(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"tipRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles)},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.textClasses),style:(0,l.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,l.openBlock)(),(0,l.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,zs))],6),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.arrowClasses),style:(0,l.normalizeStyle)(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}var ja=Ye(Cs,[["render",ks]]),Ka=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},un={},Es=new Ka,St=new Map,fl=e=>{if(e){const t=document.getElementById(e);St.delete(e),t&&((0,l.render)(null,t),t.parentNode?.removeChild(t))}else{for(const t of St.keys()){const r=document.getElementById(t);r&&((0,l.render)(null,r),r.parentNode?.removeChild(r))}St.clear()}},_s=e=>{e.unmount=fl;const t=document.getElementById(e.id);if(t){const r=St.get(e.id);r?e={...un,...r,...e}:e={...un,...e},e.transition=!1,(0,l.render)((0,l.createVNode)(ja,e),t)}return e.id},Ts=e=>{e.unmount=fl;let t=e.id??`hinttext_${Es.get()}`;e={...un,...e},e.id=t,St.set(t,e);const r=document.createElement("div");return r.id=e.id,(0,l.render)((0,l.createVNode)(ja,e),r),document.body.appendChild(r),t},$s=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Ee={show(e,t,r={},a=!0){if(!$s(t))return;const n=r.id;return n&&St.has(n)?_s({...r,message:t,reference:e}):(a&&fl(),Ts({...r,message:t,reference:e}))},hide(e){fl(e)},install(e){e.config.globalProperties.$hintText=Ee}};function Bs(e,t,r,a=!1){return{inheritAttrs:!0,props:{...xe,...$e},emits:["appear","disappear"],setup(n,o){const s=n.prop??o.attrs.name,u=(0,l.ref)(),{exposeApi:i}=Te({componentName:e,validate:!1,get props(){return n},context:o,get templateRefProxy(){return u.value}},s),m=ft(),p=Nl();Cl(!1);const f=(0,l.computed)(()=>p&&m?zl(m,!1).value:null),d=e,T=(0,l.ref)(null),z=(0,l.computed)(()=>{const x={[d]:!0,[`${d}__gutter`]:f.value&&f.value.type!=="flow",[`${d}__stretch`]:n.span==="stretch",[`${d}__input--border`]:de(n.hasBorder)};if(x[n.errorMarkClass]=!!R.value,x[n.warnMarkClass]=!!B.value,x[n.infoMarkClass]=!!b.value,typeof T.value=="function"){const G=T.value(s);x[G]=!0}else if(typeof T.value=="string"){const G=T.value;x[G]=!0}return x}),h=(0,l.ref)(null),c=(0,l.computed)(()=>{const x={};if(n.width)n.width!=="auto"&&(x.width=Se(n.width));else{const G=p&&m?kl(m,!1):null;if(f.value&&G){if(f.value.type==="grid"){const ee=_l(G,f.value,n.span,n.offset);Object.assign(x,ee)}else if(f.value.type==="flow"){const ee=El(G,f.value,n.span,n.offset,n.width);Object.assign(x,ee)}}}if(typeof h.value=="function"){const G=h.value(s);G&&Object.assign(x,G)}else if(h.value&&typeof h.value=="object"){const G=h.value;Object.assign(x,G)}return x}),g=(0,l.ref)(null),v=(0,l.computed)({get:()=>g.value??de(n.isRequired),set:x=>{g.value=x}}),S=()=>typeof n.label=="string"&&n.label.length>0||typeof o.slots.label=="function",F=Pe((0,l.toRef)(n,"labelPosition"),"labelPosition",Me.Near),L=(0,l.computed)(()=>F&&F.value==="top"?"top":F&&F.value==="right"?"right":"left"),M=(0,l.computed)(()=>({[`${d}__main`]:!0,[`${d}__main--${L.value}`]:!0})),q=(0,l.computed)(()=>({label:!0,[`label--${L.value}`]:!0})),P=Pe((0,l.toRef)(n,"labelWidth"),"labelWidth",Me.Near),D=(0,l.computed)(()=>P&&P.value?{width:Se(P.value)}:{}),I=(0,l.computed)(()=>({"label--string":!0,"label--required":v.value})),C=(0,l.computed)(()=>({content:!0,[n.contentClass]:!0})),K=(0,l.computed)(()=>({...n.contentStyle})),$=(0,l.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});i({setRequired(x){v.value=x},setErrorTip(x){$.errorTip=x},setErrorIcon(x){$.errorIcon=x},setWarnTip(x){$.warnTip=x},setWarnIcon(x){$.warnIcon=x},setInfoTip(x){$.infoTip=x},setInfoIcon(x){$.infoIcon=x},setCustomClassName(x){T.value=x},setCustomStyle(x){h.value=x}});const b=(0,l.computed)(()=>n.infoTip||$.infoTip),A=(0,l.computed)(()=>n.infoIcon||$.infoIcon),B=(0,l.computed)(()=>n.warnTip||$.warnTip),H=(0,l.computed)(()=>n.warnIcon||$.warnIcon),R=(0,l.computed)(()=>n.errorTip||$.errorTip),U=(0,l.computed)(()=>n.errorIcon||$.errorIcon),_=(0,l.computed)(()=>R.value?"error":B.value?"warn":b.value?"info":""),O=()=>_.value.length>0,W=(0,l.computed)(()=>_.value==="error"?R.value:_.value==="warn"?B.value:_.value==="info"?b.value:""),E=(0,l.computed)(()=>_.value==="error"?U.value:_.value==="warn"?H.value:_.value==="info"?A.value:null),j=(0,l.computed)(()=>{const x={[`${d}__tip`]:!0,[`${d}__tip--${_.value}`]:!0,[`${d}--animate`]:!0};return _.value==="error"&&n.errorClass?x[`${n.errorClass}`]=!0:_.value==="warn"&&n.warnClass?x[`${n.warnClass}`]=!0:_.value==="info"&&n.infoClass&&(x[`${n.infoClass}`]=!0),x}),Y=(0,l.computed)(()=>{const x={};return F&&F.value==="top"||!S()?x["padding-left"]="0px":P&&P.value&&(x["padding-left"]=Se(P.value)),x}),k=(0,l.ref)();let X="";(0,l.watch)([()=>n.hintVisible,()=>n.hintText,()=>n.hintType,()=>n.hintProps],([x,G,ee,te])=>{k.value&&(x&&!he(G)?X?r.show(k.value,G,{...te,id:X,type:ee},!0):X=r.show(k.value,G,{...te,type:ee},!0):r.hide(X))});let Z=null;const ne=()=>{Z||!k.value||(Z=new IntersectionObserver(x=>{let G=!1;for(let ee of x)if(ee.intersectionRatio>0){G=!0,G&&o.emit("appear",ee);break}G||o.emit("disappear")}),Z.observe(k.value))},le=()=>{!Z||!k.value||(Z.unobserve(k.value),Z=null)};(0,l.watch)(()=>de(n.appearListen),x=>{x?ne():le()}),(0,l.onMounted)(()=>{de(n.appearListen)&&ne()}),(0,l.onUnmounted)(le);const oe=()=>{if(!S())return null;const x=[],G=o.slots?.label?.()??n.label,ee=(0,l.h)("div",{class:I.value},[G]);if(x.push(ee),o.slots.fixedPreTip){const te=o.slots.fixedPreTip();x.push(te)}return(0,l.h)("div",{class:q.value,style:D.value},x)},Q=()=>{const x=[];if(o.slots.prepend){const G=o.slots.prepend();x.push(G)}if(o.slots.default){const G=o.slots.default();x.push(G)}if(o.slots.append){const G=o.slots.append();x.push(G)}if(o.slots.fixedTip){const G=(0,l.h)("div",{class:[`${d}__fixed-tip`]},[o.slots.fixedTip()]);x.push(G)}return(0,l.h)("div",{ref:k,class:C.value,style:K.value},x)},re=()=>{const x=E.value;return x?typeof x=="function"?(0,l.h)("div",{class:"fox-item__tip--icon"},[x()]):(0,l.h)("div",{class:"fox-item__tip--icon"},[(0,l.h)(x)]):null},V=()=>{const x=W.value;return x?typeof x=="function"?(0,l.h)("div",{class:"fox-item__tip--text"},[x()]):(0,l.h)("div",{class:"fox-item__tip--text"},[x]):null},y=()=>{if(!O())return null;const x=[],G=re();G&&x.push(G);const ee=V();return ee&&x.push(ee),(0,l.h)("div",{class:j.value,style:Y.value},x)},N=()=>o.slots?.hide?.()??null;return()=>{const x=[],G=[],ee=oe();ee&&G.push(ee);const te=Q();te&&G.push(te);const ue=(0,l.h)("div",{class:M.value},G);x.push(ue);const fe=y();fe&&x.push(fe);const me=N();return me&&x.push(me),(0,l.h)("div",{class:z.value,style:c.value,prop:n.prop,ref:u},x)}}}}var{componentName:Vs,create:Ms,scope:Ps}=se("item"),As=Ms(Bs(Vs,Ps,Ee,!1)),Gt=As,Bn={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Is(e,t){return{props:Bn,setup(r,a){const n=ft(),o=Nl();Cl(!1);const s=(0,l.computed)(()=>o&&n?zl(n,!1).value:null),u=e,i=(0,l.computed)(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),m=(0,l.computed)(()=>{const p={};if(r.width)r.width!=="auto"&&(p.width=Se(r.width));else{const f=o&&n?kl(n,!1):null;if(s.value&&f)if(s.value.type==="grid"){const d=_l(f,s.value,r.span,r.offset);Object.assign(p,d)}else if(s.value.type==="flow"){const d=El(f,s.value,r.span,r.offset,r.width);Object.assign(p,d)}else return r.width&&(p.width=Se(r.width)),p}return p});return()=>{const p={class:i.value,style:m.value};return a.slots&&typeof a.slots.default=="function"?(0,l.h)("div",p,a.slots.default()):(0,l.h)("div",p)}}}}var{componentName:Ls,create:Fs,scope:Rs}=se("slot-item"),Ds=Fs(Is(Ls,Rs)),Bl=Ds,cn={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Os(e,t){return{props:cn,setup(r,a){const n=e,o=(0,l.computed)(()=>({[n]:!0,[`${n}__stretch`]:r.span==="stretch",[`${n}__${r.align}`]:!0})),s=ft(),u=Nl();Cl(!1);const i=(0,l.computed)(()=>{const m={};if(r.width)r.width!=="auto"&&(m.width=Se(r.width));else if(u&&s){const p=zl(s,!1),f=kl(s,!1);if(p.value&&f)if(p.value.type==="grid"){const d=_l(f,p.value,r.span,r.offset);Object.assign(m,d)}else if(p.value.type==="flow"){const d=El(f,p.value,r.span,r.offset,r.width);Object.assign(m,d)}else r.width&&(m.width=Se(r.width))}return r.gutter&&(m.gap=Se(r.gutter)),m});return()=>{const m=[];if(a.slots.default){const p=a.slots.default();if(r.divide)for(let f=0;f<p.length;f++){if(f>0){const d=(0,l.h)("div",{class:{[`${n}__divide`]:!0}});m.push(d)}m.push(p[f])}else Reflect.apply([].push,m,p)}return(0,l.h)("div",{class:o.value,style:i.value},m)}}}}var{componentName:qs,create:Hs,scope:js}=se("row-item"),Ks=Hs(Os(qs,js)),Vl=Ks;function Ws(e,t){const r=document.createRange();r.setStart(e,0),r.setEnd(e,e.childNodes.length);const a=r.getBoundingClientRect().width;if(a>0){t(a);return}e.classList.add("is-selectable"),setTimeout(()=>{r.setStart(e,0),r.setEnd(e,e.childNodes.length);const n=r.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(n)},500)}var Ys={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Us(e,t,r,a=!1){return{props:{...Ys},emits:["click"],setup(n,o){const s=(0,l.ref)(null),u=(0,l.computed)(()=>{const S={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(S[`${e}--${n.type??"default"}`]=!0),n.size&&(S[`${e}--${n.size}`]=!0),S}),i=(0,l.computed)(()=>{const S={},F=n.textColor??n.color;return F&&(S.color=F),S}),m=(S,F)=>{let L=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const M=n.highlightFilter;S.indexOf(M)!==-1&&(F.innerHTML=S.replace(new RegExp(M,"g"),`<span>${M}</span>`),F.class["is-highlight"]=!0,L=(0,l.h)(n.tag,F))}else if(typeof n.highlightFilter=="function"){const M=n.highlightFilter(S);M&&(F.innerHTML=M,F.class["is-highlight"]=!0,L=(0,l.h)(n.tag,F))}return L},p=S=>{o.emit("click",S)};let f="";const d=()=>{const S=s.value;if(!S)return;const F=S.clientWidth;Ws(S,L=>{const M=S.innerHTML??"";he(M)||L<F||(f?r?.show(S,M,{type:"text",id:f,showArrow:n.showArrow},!0):f=r?.show(S,M,{type:"text",showArrow:n.showArrow},!0)??"")})},T=()=>{f&&r?.hide(f)};let z=null;const h=S=>{z||(z=setTimeout(()=>{d(),z=null},n.showAfter??0))},c=S=>{z&&(clearTimeout(z),z=null),setTimeout(()=>{T()},n.hideAfter??0)},g=()=>{const S=s.value;S&&(S.addEventListener("mouseover",h),S.addEventListener("mouseleave",c))},v=()=>{const S=s.value;S&&(S.removeEventListener("mouseover",h),S.removeEventListener("mouseleave",c))};return(0,l.onMounted)(()=>{!de(n.showOverflowTooltip)||!r||g()}),(0,l.onBeforeUnmount)(()=>{!de(n.showOverflowTooltip)||!r||v()}),()=>{const S={onClick:p,class:u.value,style:i.value,ref:s};let F=null;if(de(n.numberFormat)&&typeof o.slots.default=="function"){const M=o.slots.default();if(Array.isArray(M)&&M.length===1){const q=M[0].type.toString();if(q==="Symbol(Text)"||q==="Symbol(v-txt)"){const P=ze(n.digits),D=ze(n.decimalLength),I=de(n.autoPadding);let C=`${M[0].children}`,K=C.split("").reverse().join("");K=ml(K,D,I,P,n.separator),C=K.split("").reverse().join(""),n.highlightFilter!==void 0&&(F=m(C,S)),F||(S.innerHTML=C,F=(0,l.h)(n.tag,S))}}}else{if(n.highlightFilter!==void 0&&typeof o.slots.default=="function"){const M=o.slots.default();if(Array.isArray(M)&&M.length===1){const q=M[0].type.toString();if(q==="Symbol(Text)"||q==="Symbol(v-txt)"){const P=`${M[0].children}`;F=m(P,S),F||(S.innerHTML=P,F=(0,l.h)(n.tag,S))}}}F||(F=(0,l.h)(n.tag,S,{default:o.slots.default}))}if(!n.mark&&!o.slots.mark)return F;const L=[];if(o.slots.mark){const M={[`${e}__mark-wrap`]:!0};n.type&&(M[`${e}__mark-wrap--${n.type}`]=!0);const q={},P=n.color;P&&(q.color=P);const D=(0,l.h)("view",{onClick:p,class:M,style:q},{default:o.slots.mark});L.push(D)}else{const M={[`${e}__mark`]:!0};n.type&&(M[`${e}__mark--${n.type??"default"}`]=!0);const q={},P=n.color;P&&(q["background-color"]=P);const D=(0,l.h)("view",{onClick:p,class:M,style:q});L.push(D)}if(n.divide){const M=(0,l.h)("div",{class:{[`${e}__divide`]:!0}});L.push(M)}return L.push(F),(0,l.h)("view",{class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}},L)}}}}var{componentName:Gs,create:Xs,scope:Zs}=se("text"),Js=Xs(Us(Gs,Zs,Ee,!1)),Ct=Js,Qs={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function eu(e,t,r=!1){return{props:{...Qs},emits:["update:visible"],setup(a,{emit:n,slots:o,expose:s}){const u=(0,l.ref)({top:null,right:null,bottom:null,left:null}),i=(0,l.ref)(0),m=(0,l.ref)(0),p=(0,l.ref)(0),f=(0,l.ref)(0),d=(0,l.ref)(a.placement),T=(0,l.ref)(!1),z=(0,l.ref)(!1),h=(0,l.ref)(null),c=()=>typeof a.reference=="string"?document.querySelector(a.reference):a.reference,g=(_,O,W,E,j,Y,k,X=!0)=>{const Z=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight,le=_.split("-");let oe=[];X?le[0]==="top"?oe=["top","bottom","right","left"]:le[0]==="bottom"?oe=["bottom","top","right","left"]:le[0]==="left"?oe=["left","top","bottom","right"]:le[0]==="right"&&(oe=["right","top","bottom","left"]):oe=[_[0]];const Q={top:null,right:null,bottom:null,left:null},re=[];for(let V=0;V<oe.length;V++){const y=oe[V];if(re[0]=y,le[1]&&(re[1]=le[1]),y==="top"){const N=W-k-a.arrowSize/2-a.offset;if(N>=0){Q.top=N;let x=0;le[1]==="start"?x=O:le[1]==="end"?x=O+E-Y:x=O+E/2-Y/2;const G=Z-x-Y;G<0?(x+=G,S.value=-G):S.value=0,Q.left=x<0?0:x;break}}else if(y==="bottom"){const N=W+j+a.arrowSize/2+a.offset;if(N+k<=ne){Q.top=N;let x=0;le[1]==="start"?x=O:le[1]==="end"?x=O+E-Y:x=O+E/2-Y/2;const G=Z-x-Y;G<0?(x+=G,S.value=-G):S.value=0,Q.left=x<0?0:x;break}}else if(y==="left"){const N=O-Y-a.arrowSize/2-a.offset;if(N>=0){Q.left=N;let x=0;le[1]==="start"?x=W:le[1]==="end"?x=W+j-k:x=W+j/2-k/2,Q.top=x<0?0:x;break}}else if(y==="right"){const N=O+E+a.arrowSize/2+a.offset;if(N+Y<=Z){Q.left=N;let x=0;le[1]==="start"?x=W:le[1]==="end"?x=W+j-k:x=W+j/2-k/2,Q.top=x<0?0:x;break}}}return{bestPlacement:re.join("-"),bestInsetRect:Q}},v=()=>{const _=a.visible,O=a.autoFit;if(!dt||_===!1)return;if(a.reference){const k=c(),X=$n(k);i.value=X.x,m.value=X.y,p.value=k.offsetWidth,f.value=k.offsetHeight}else a.referenceInset&&(i.value=a.referenceInset.left,m.value=a.referenceInset.top,p.value=a.referenceInset.right-a.referenceInset.left,f.value=a.referenceInset.bottom-a.referenceInset.top);const W=h.value.offsetWidth,E=h.value.offsetHeight,{bestPlacement:j,bestInsetRect:Y}=g(a.placement,i.value,m.value,p.value,f.value,W,E,O);d.value=j,u.value=Y},S=(0,l.ref)(0),F=Ke(()=>{v()},10),L=(0,l.ref)(a.visible);(0,l.watch)([()=>a.visible],([_])=>{L.value=_,_?(T.value=_,setTimeout(()=>{v(),z.value=!0},0)):z.value=!1});const M=(0,l.computed)(()=>L.value&&q.value),q=(0,l.ref)(!0),P=Ke(_=>{const O=_[0];O&&(q.value=O.isIntersecting)},10),D=new IntersectionObserver(P);(0,l.watch)([()=>a.reference,()=>a.referenceInset],([_,O],[W,E])=>{!_&&!O||(setTimeout(()=>{v()},0),a.autoFit&&(W&&(Rt.unwatch(W,F),D.unobserve(W)),_&&(Rt.watch(_,F),D.observe(_))))},{immediate:!0}),(0,l.onBeforeUnmount)(()=>{a.reference&&(Rt.unwatch(a.reference,F),D.unobserve(a.reference),D.disconnect())});const I=(0,l.computed)(()=>{const _={[e]:!0};return d.value.startsWith("top")?_["is-top"]=!0:d.value.startsWith("right")?_["is-right"]=!0:d.value.startsWith("bottom")?_["is-bottom"]=!0:d.value.startsWith("left")&&(_["is-left"]=!0),_[`is-${a.effect}`]=!0,!z.value&&M.value&&(_["is-opacity"]=!0),z.value&&M.value&&(_["is-show"]=!0),M.value||(_["is-hide"]=!0),a.customClass&&typeof a.customClass=="string"&&(_[`${a.customClass}`]=!0),_}),C=(0,l.computed)(()=>{const _={};return u.value.top!==null&&(_.top=`${u.value.top}px`),u.value.right!==null&&(_.right=`${u.value.right}px`),u.value.bottom!==null&&(_.bottom=`${u.value.bottom}px`),u.value.left!==null&&(_.left=`${u.value.left}px`),a.width&&(_.width=a.width),a.zIndex&&(_["z-index"]=`${a.zIndex}`),a.customStyle&&typeof a.customStyle=="object"&&Object.assign(_,a.customStyle),_}),K=()=>{L.value=!1,n("update:visible",!1)},$=()=>a.showOverlay?(0,l.h)("div",{class:`${e}__overlay`,onClick:K}):null,b=()=>{let _=null;return o.title?_=(0,l.h)("div",{class:`${e}__title`},{default:o.title}):a.title&&(_=(0,l.h)("div",{class:`${e}__title`},[a.title])),_},A=(0,l.computed)(()=>({[`${e}__arrow`]:!0})),B=(0,l.computed)(()=>{const _={};return a.showArrow?(_.width=`${a.arrowSize}px`,_.height=`${a.arrowSize}px`,d.value==="top"?(_.left="50%",_.bottom="0",_.transform="translate(-50%, 50%)"):d.value==="top-start"?(_.left=`${a.arrowOffset+S.value}px`,_.bottom="0",_.transform="translate(-50%, 50%)"):d.value==="top-end"?(_.right=`${a.arrowOffset-S.value}px`,_.bottom="0",_.transform="translate(-50%, 50%)"):d.value==="right"?(_.left="0",_.top="50%",_.transform="translate(-50%, -50%)"):d.value==="right-start"?(_.left="0",_.top=`${a.arrowOffset}px`,_.transform="translate(-50%, 50%)"):d.value==="right-end"?(_.left="0",_.bottom=`-${a.arrowOffset}px`,_.transform="translate(-50%, 50%)"):d.value==="bottom"?(_.left="50%",_.top="0",_.transform="translate(-50%, -50%)"):d.value==="bottom-start"?(_.left=`${a.arrowOffset+S.value}px`,_.top="0",_.transform="translate(-50%, -50%)"):d.value==="bottom-end"?(_.right=`${a.arrowOffset-S.value}px`,_.top="0",_.transform="translate(-50%, -50%)"):d.value==="left"?(_.right="0",_.top="50%",_.transform="translate(50%, -50%)"):d.value==="left-start"?(_.right="0",_.top=`${a.arrowOffset}px`,_.transform="translate(50%, -50%)"):d.value==="left-end"&&(_.right="0",_.bottom=`-${a.arrowOffset}px`,_.transform="translate(50%, -50%)"),_):{display:"none"}}),H=()=>(0,l.h)("div",{class:A.value,style:B.value}),R=()=>{L.value===!1&&(T.value=!1)},U=_=>{if(!h.value||L.value===!1)return;const{relatedTarget:O}=_;h.value.contains(O)||(L.value=!1,n("update:visible",!1))};return s({doLayout:v}),()=>{if(!T.value)return null;const _=[],O=$();O&&_.push(O);const W=[],E=b();if(E&&W.push(E),o.default){const X=o.default();W.push(X)}const j=H();j&&W.push(j);const Y={ref:h,class:I.value,style:C.value,onAnimationend:R};a.leaveHide&&(Y.onMouseleave=U);const k=(0,l.h)("div",Y,{default:()=>W});return _.push(k),(0,l.h)(l.Teleport,{to:a.teleport,disabled:a.teleportDisable},{default:()=>_})}}}}var{componentName:tu,create:lu,scope:nu}=se("popover-dialog"),ru=lu(eu(tu,nu,!1)),Ml=ru,au={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function ou(e,t,r){return{props:{...cn,...au},emits:["click"],setup(a,{slots:n,attrs:o}){const{toLocaleRefs:s}=(0,Ie.useFoxI18n)(t),u=s(a,["moreText"]),i=e,m=(0,l.computed)(()=>({[i]:!0}));function p(L){return L.props||{}}function f(L){return!!p(L).disabled}function d(L){return L.children??[]}const T=(0,l.ref)(),z=(0,l.computed)(()=>T.value?.$el??null),h=(0,l.ref)(!1),c=L=>{h.value=L},g=()=>{h.value=!h.value};function v(L,M){return()=>{M||(h.value=!1,p(L)?.onClick?.())}}function S(L,M){const q=d(L),P=f(L),D=v(L,P),I=[`${i}__dropdown-item`];return P&&I.push("is-disabled"),(0,l.h)("span",{class:I,onClick:D},q)}const F=L=>{const M=a.maxDisplayCount??L.length;if(M>=L.length)return L;const q=[],P=M-1;for(let $=0;$<P;$++)q.push(L[$]);const D=(n.moreIcon&&n.moreIcon())??(a.moreIcon&&(0,l.h)(a.moreIcon))??(0,l.h)(r),I=(0,l.h)(Ct,{ref:$=>T.value=$,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:a.type,onClick:g},{default:()=>u.moreText.value,mark:()=>D});q.push(I);const C=[];for(let $=P;$<L.length;$++){const b=S(L[$],$);C.push(b)}const K=(0,l.h)(Ml,{placement:a.dropdownPlacement,"onUpdate:visible":c,visible:h.value,reference:z.value,"custom-class":`${i}__popover`},{default:()=>C});return q.push(K),q};return()=>{const{getChildren:L}=Tl(n?.default),M=F(L()),q=gt(a,cn);return Object.assign(q,o??{}),q.class=m.value,(0,l.h)(Vl,q,{default:()=>M})}}}}var{componentName:iu,create:su,scope:uu}=se("buttons-item"),cu=su(ou(iu,uu,Ve.ArrowDown)),Vn=cu;function Re(e,t={}){return(0,l.h)(Gt,e,t)}function du(e,t,r,a,n){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[n]){let i=t;for(let m=0;i&&m<o.length;m++){let p=o[m],f=i.find(d=>d[a]===p);if(!f)break;s.push(f[r])}return s}if(Array.isArray(u))for(let i=0;i<t.length&&i<o.length;i++){let m=t[i],p=o[i];const f=m.find(d=>d[a]===p);if(!f)break;s.push(f[r])}else{let i=t;for(let m=0;i&&m<o.length;m++){let p=o[m],f=i.find(d=>d[a]===p);if(!f)break;s.push(f[r]),i=f[n]}}return s}var fu=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function mu(){return new fu(et())}var Wa={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function pu(e,t){return{props:Wa,setup(r,{attrs:a,slots:n}){const o=mu(),s=(0,l.ref)([]);(0,l.watch)([()=>r.source,()=>r.params],async([i,m])=>{s.value=await o.load(r.sourceType,i,m)},{immediate:!0});const u=(0,l.computed)(()=>{if(!Array.isArray(s.value)||s.value.length===0)return r.emptyText;let i=du(r.modelValue,s.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?r.emptyText??"":i.length===1?r.optionType=="item"?`${r.modelValue}${r.separator}${i[0]}`:i[0]:i.join(r.separator)});return()=>{const i={...a};if(n.default)return n.default({text:u.value,value:r.modelValue});const m=r.tag??"span";return typeof m=="object"?(0,l.h)(m,i,{default:()=>u.value}):(0,l.h)(m,i,[u.value])}}}}var{componentName:hu,create:gu,scope:vu}=se("mapping"),yu=gu(pu(hu,vu)),zt=yu;function He(e,t,r,a){const n="fox-browse-item";let o=null;r?o=(0,l.h)(zt,{class:[`${n}__mapping`],source:r,modelValue:e,separator:a},{default:u=>(0,l.h)(Ct,{class:[`${n}__text`]},{default:()=>u.text})}):o=(0,l.h)(Ct,{class:[`${n}__text`]},{default:()=>e});const s={label:t.default,default:()=>o};return(0,l.h)(Gt,{class:[n]},s)}var Ue=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(r=>{typeof r=="string"&&r.indexOf("data-fox")!==0&&(t[r]=e[r])}),t},Ya={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:()=>!0},alwaysSystem:{type:[Boolean],default:()=>!1},showTooltip:{type:[Boolean],default:()=>!1},maxLength:{type:[String,Number]}},bu={...xe,...$e,...Ya};function Su(e,t,r,a){return{props:bu,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(!1),g=ye(n,"modelValue",null,d),v=e,S=(0,l.computed)(()=>({[v]:!0,[`${v}__disabled`]:i.value,[`${v}__readonly`]:p.value})),F=U=>{g.value=U,d("update:modelValue",U),d("input",U)},L=U=>{d("change",U)};let M=ye(n,"hintText"),q=(0,l.ref)(!1);const P=U=>{let _=U.target.value;c.value=!0,he(M.value)||(q.value=!0),d("focus",_,U)},D=U=>{setTimeout(()=>{q.value&&(q.value=!1),c.value=!1},0);let _=U.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),d("blur",_,U)},I=()=>{d("clear","")},C=(0,l.ref)(!1);let K=null;const $=()=>{n.showTooltip&&C.value===!1&&(K&&clearTimeout(K),K=setTimeout(()=>{C.value=!0},150))},b=()=>{K&&(clearTimeout(K),C.value=!1,K=null)},A=(0,l.computed)(()=>C.value||q.value),B=(0,l.computed)(()=>C.value?g.value:M.value),H=(0,l.computed)(()=>Wt(n.unit)>0),R=(0,l.ref)();return T({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:U=>{u.value=U},setReadonly:U=>{m.value=U}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(g.value,o.slots);const U={...Ue(o.attrs),ref:R,class:S.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:p.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:L,onInput:F,onFocus:P,onBlur:D,onMouseover:$,onMouseleave:b},_={};o.slots.prepend&&(_.prepend=o.slots.prepend),o.slots.append&&(_.append=o.slots.append),o.slots.prefix&&(_.prefix=o.slots.prefix),o.slots.suffix?_.suffix=o.slots.suffix:H.value&&(_.suffix=()=>[n.unit]);const O=[],W=(0,l.h)(w.ElInput,U,_);O.push(W);const E={default:()=>O};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const j={...Le(n,Ya),ref:s,hintText:B.value,hintVisible:A.value};return n.prop&&(j.prop=`${n.prop}_item`),r(j,E)}}}}var{componentName:wu,create:xu,scope:Nu}=se("input-item"),Cu=xu(Su(wu,Nu,Re,He)),Mn=Cu;function st(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ht(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ua(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function zu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var ku=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function Eu(){return new ku(et())}function Ga(e,t,r){return!(st(e,t)!==st(e,r)||Ht(e,t)!==Ht(e,r))}function Xa(e,t,r,a){if(a.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(o=>{for(let s of a){const u=Ua(e,s);if(Array.isArray(u)&&u.length>0){const i=Xa(e,o,r,u)??[];Reflect.apply([].push,n,i)}else{let i=!1;if(r==="text")i=st(e,s)===o;else if(r==="item")i=Ga(e,s,o);else{let m=Ht(e,s);m==null&&(m=st(e,s)),i=m===o}if(i){n.push(s);break}}}}),n}function _u(e){return{text:e,value:e}}var Za={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},sourceFilter:{type:[Function]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:[Boolean],default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:[Boolean],default:!1}},Tu={...xe,...$e,...Za};function $u(e,t,r,a){return{props:Tu,emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(null),g=(0,l.ref)([]),v=(0,l.computed)(()=>g.value?g.value.map(N=>st(n,N)).join(" "):""),S=(N,x,G,ee=!0)=>{if(!G||G.length==0){c.value=N,ee&&(d("update:modelValue",N),d("change",N));return}const te=Xa(n,N,x,G);if(te===null){if(g.value===null||g.value.length===0)return;c.value=null,g.value=[],ee&&(d("update:modelValue",null),d("update:text",null),d("change",null));return}let ue=!0;if(te.length!==g.value.length)ue=!1;else for(let fe=0;fe<te.length;fe++){const me=te[fe],ve=g.value[fe];if(!Ga(n,me,ve)){ue=!1;break}}if(!ue){g.value=te;let fe=[],me=[],ve=[];te.forEach(Xe=>{const Tt=Ht(n,Xe),Jt=st(n,Xe);fe.push(Tt),ve.push(Jt),n.valueType==="text"?me.push(Jt):n.valueType==="item"?me.push(Xe):me.push(Tt)});let ke,Oe,Ge;de(n.multiple)?(c.value=fe,ke=(0,l.toRaw)(me),Oe=ve,Ge=(0,l.toRaw)(te)):(c.value=fe[0]??"",ke=(0,l.toRaw)(me[0]??""),Oe=ve[0]??"",Ge=(0,l.toRaw)(te[0])),ee&&(d("update:modelValue",ke),d("change",ke,Ge)),d("update:text",Oe)}},F=(0,l.ref)(null),L=(0,l.ref)(null),M=(0,l.computed)(()=>{let N=L.value??F.value??[];return Array.isArray(N)&&typeof n.sourceFilter=="function"&&(N=N.filter(n.sourceFilter)),N}),q=Pe((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,N=>de(N)),P=Eu(),D=async(N,x)=>{if(N){const G=await P.load("select",N,x);G.length>0?typeof G[0]=="string"?F.value=G.map(ee=>_u(ee)):F.value=G:F.value=null}};(0,l.watch)([()=>n.source,()=>n.params],([N,x])=>{L.value=null,D(N,x)},{immediate:!q.value});let I=!1;const C=()=>{I||(I=!0,D(n.source,n.params))};(0,l.watch)([()=>F.value,()=>n.modelValue],([N,x])=>{if(A()&&de(n.multiple)){Je(x,c.value)||(c.value=x);return}S(x,n.valueType,M.value,!1),d("setValue",x)}),n.source||(c.value=n.modelValue);let K=null,$=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(K=async N=>{if(N==null){L.value=null;return}$.value=!0;try{const x=await n.remoteMethod(N);x&&(L.value=x)}catch(x){L.value=null,console.error(x)}$.value=!1});let b=null;typeof n.filterMethod=="function"&&(b=async N=>{if(N==null){L.value=null;return}$.value=!0;try{const x=await n.filterMethod(N,F.value);x&&(L.value=x)}catch(x){L.value=null,console.error(x)}$.value=!1});const A=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",B=(0,l.ref)(!1),H=e,R=(0,l.computed)(()=>({[H]:!0})),U=N=>{n.allowCreate||A()&&de(n.multiple)?(d("update:modelValue",N),d("change",N),d("update:text",N),c.value=N):S(N,"value",M.value,!0)};let _=ye(n,"hintText"),O=(0,l.ref)(!1);const W=N=>{let x=N.target.value;B.value=!0,he(_.value)||(O.value=!0),d("focus",x,N)},E=N=>{setTimeout(()=>{O.value&&(O.value=!1),B.value=!1},0);const x=N.target.value;oe.value||d("blur",x,N)},j=()=>{d("clear","")},Y=(0,l.ref)(!1);let k=null;const X=()=>{n.showTooltip&&Y.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{Y.value=!0},150))},Z=()=>{k&&(clearTimeout(k),Y.value=!1,k=null)},ne=(0,l.computed)(()=>Y.value||O.value),le=(0,l.computed)(()=>Y.value?v.value:_.value),oe=(0,l.ref)(!1),Q=N=>{oe.value=N,d("visible-change",N),N||d("selected")},re=N=>{d("remove-tag",N)},V=(N,x)=>{const G=[];return N.forEach((ee,te)=>{const ue=Ua(n,ee);if(Array.isArray(ue)&&ue.length>0){const fe=V(ue,x),me=st(n,ee),ve={key:`${me}_${te}`,label:me};G.push((0,l.h)(w.ElOptionGroup,ve,{default:()=>fe}))}else{const fe=Ht(n,ee),me=st(n,ee),ve=zu(n,ee),ke={key:`${fe}_${te}`,label:me,disabled:ve,value:fe};if(typeof x=="function")G.push((0,l.h)(w.ElOption,ke,{default:()=>x(ee)}));else if(n.optionType==="item"){const Oe=(0,l.h)("div",{class:{"fox-select-item__option":!0}},[(0,l.h)("span",{class:{"fox-select-item__option-left":!0}},[fe]),(0,l.h)("span",{class:{"fox-select-item__option-right":!0}},[me])]);G.push((0,l.h)(w.ElOption,ke,{default:()=>Oe}))}else n.optionType==="value"?G.push((0,l.h)(w.ElOption,ke,{default:()=>[fe]})):G.push((0,l.h)(w.ElOption,ke))}}),G},y=(0,l.ref)();return T({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},setDisabled:N=>{u.value=N},setReadonly:N=>{m.value=N}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(c.value,o.slots,M.value);const N={...Ue(o.attrs),ref:y,class:R.value,clearable:n.clearable,multiple:n.multiple,placeholder:h.placeholder.value,disabled:i.value||p.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:j,onChange:U,onFocus:W,onBlur:E,onVisibleChange:Q,onRemoveTag:re};typeof K=="function"&&(N["remote-method"]=K,N.loading=$.value),typeof b=="function"&&(N["filter-method"]=b,N.loading=$.value);const x={};o.slots.prefix&&(x.prefix=o.slots.prefix),o.slots.empty&&(x.empty=o.slots.empty),o.slots.options?x.default=o.slots.options:x.default=()=>V(M.value,o.slots.option);const G=[],ee=(0,l.h)(w.ElSelect,N,x);G.push(ee);const te={default:()=>G};te.label=o.slots.default,te.fixedPreTip=o.slots.fixedPreTip,te.fixedTip=o.slots.fixedTip;const ue={...Le(n,Za),ref:s,hintText:le.value,hintVisible:ne.value,onMouseover:X,onMouseleave:Z};return n.prop&&(ue.prop=`${n.prop}_item`),q.value&&(ue["appear-listen"]=!0,ue.onAppear=C),r(ue,te)}}}}var{componentName:Bu,create:Vu,scope:Mu}=se("select-item"),Pu=Vu($u(Bu,Mu,Re,He)),Pn=Pu,Au=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=a()})(e,(function(){"use strict";var r=1e3,a=6e4,n=36e5,o="millisecond",s="second",u="minute",i="hour",m="day",p="week",f="month",d="quarter",T="year",z="date",h="Invalid Date",c=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var A=["th","st","nd","rd"],B=b%100;return"["+b+(A[(B-20)%10]||A[B]||A[0])+"]"}},S=function(b,A,B){var H=String(b);return!H||H.length>=A?b:""+Array(A+1-H.length).join(B)+b},F={s:S,z:function(b){var A=-b.utcOffset(),B=Math.abs(A),H=Math.floor(B/60),R=B%60;return(A<=0?"+":"-")+S(H,2,"0")+":"+S(R,2,"0")},m:function b(A,B){if(A.date()<B.date())return-b(B,A);var H=12*(B.year()-A.year())+(B.month()-A.month()),R=A.clone().add(H,f),U=B-R<0,_=A.clone().add(H+(U?-1:1),f);return+(-(H+(B-R)/(U?R-_:_-R))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:f,y:T,w:p,d:m,D:z,h:i,m:u,s,ms:o,Q:d}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},L="en",M={};M[L]=v;var q="$isDayjsObject",P=function(b){return b instanceof K||!(!b||!b[q])},D=function b(A,B,H){var R;if(!A)return L;if(typeof A=="string"){var U=A.toLowerCase();M[U]&&(R=U),B&&(M[U]=B,R=U);var _=A.split("-");if(!R&&_.length>1)return b(_[0])}else{var O=A.name;M[O]=A,R=O}return!H&&R&&(L=R),R||!H&&L},I=function(b,A){if(P(b))return b.clone();var B=typeof A=="object"?A:{};return B.date=b,B.args=arguments,new K(B)},C=F;C.l=D,C.i=P,C.w=function(b,A){return I(b,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var K=(function(){function b(B){this.$L=D(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[q]=!0}var A=b.prototype;return A.parse=function(B){this.$d=(function(H){var R=H.date,U=H.utc;if(R===null)return new Date(NaN);if(C.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var _=R.match(c);if(_){var O=_[2]-1||0,W=(_[7]||"0").substring(0,3);return U?new Date(Date.UTC(_[1],O,_[3]||1,_[4]||0,_[5]||0,_[6]||0,W)):new Date(_[1],O,_[3]||1,_[4]||0,_[5]||0,_[6]||0,W)}}return new Date(R)})(B),this.init()},A.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},A.$utils=function(){return C},A.isValid=function(){return this.$d.toString()!==h},A.isSame=function(B,H){var R=I(B);return this.startOf(H)<=R&&R<=this.endOf(H)},A.isAfter=function(B,H){return I(B)<this.startOf(H)},A.isBefore=function(B,H){return this.endOf(H)<I(B)},A.$g=function(B,H,R){return C.u(B)?this[H]:this.set(R,B)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(B,H){var R=this,U=!!C.u(H)||H,_=C.p(B),O=function(ne,le){var oe=C.w(R.$u?Date.UTC(R.$y,le,ne):new Date(R.$y,le,ne),R);return U?oe:oe.endOf(m)},W=function(ne,le){return C.w(R.toDate()[ne].apply(R.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(le)),R)},E=this.$W,j=this.$M,Y=this.$D,k="set"+(this.$u?"UTC":"");switch(_){case T:return U?O(1,0):O(31,11);case f:return U?O(1,j):O(0,j+1);case p:var X=this.$locale().weekStart||0,Z=(E<X?E+7:E)-X;return O(U?Y-Z:Y+(6-Z),j);case m:case z:return W(k+"Hours",0);case i:return W(k+"Minutes",1);case u:return W(k+"Seconds",2);case s:return W(k+"Milliseconds",3);default:return this.clone()}},A.endOf=function(B){return this.startOf(B,!1)},A.$set=function(B,H){var R,U=C.p(B),_="set"+(this.$u?"UTC":""),O=(R={},R[m]=_+"Date",R[z]=_+"Date",R[f]=_+"Month",R[T]=_+"FullYear",R[i]=_+"Hours",R[u]=_+"Minutes",R[s]=_+"Seconds",R[o]=_+"Milliseconds",R)[U],W=U===m?this.$D+(H-this.$W):H;if(U===f||U===T){var E=this.clone().set(z,1);E.$d[O](W),E.init(),this.$d=E.set(z,Math.min(this.$D,E.daysInMonth())).$d}else O&&this.$d[O](W);return this.init(),this},A.set=function(B,H){return this.clone().$set(B,H)},A.get=function(B){return this[C.p(B)]()},A.add=function(B,H){var R,U=this;B=Number(B);var _=C.p(H),O=function(j){var Y=I(U);return C.w(Y.date(Y.date()+Math.round(j*B)),U)};if(_===f)return this.set(f,this.$M+B);if(_===T)return this.set(T,this.$y+B);if(_===m)return O(1);if(_===p)return O(7);var W=(R={},R[u]=a,R[i]=n,R[s]=r,R)[_]||1,E=this.$d.getTime()+B*W;return C.w(E,this)},A.subtract=function(B,H){return this.add(-1*B,H)},A.format=function(B){var H=this,R=this.$locale();if(!this.isValid())return R.invalidDate||h;var U=B||"YYYY-MM-DDTHH:mm:ssZ",_=C.z(this),O=this.$H,W=this.$m,E=this.$M,j=R.weekdays,Y=R.months,k=R.meridiem,X=function(le,oe,Q,re){return le&&(le[oe]||le(H,U))||Q[oe].slice(0,re)},Z=function(le){return C.s(O%12||12,le,"0")},ne=k||function(le,oe,Q){var re=le<12?"AM":"PM";return Q?re.toLowerCase():re};return U.replace(g,(function(le,oe){return oe||(function(Q){switch(Q){case"YY":return String(H.$y).slice(-2);case"YYYY":return C.s(H.$y,4,"0");case"M":return E+1;case"MM":return C.s(E+1,2,"0");case"MMM":return X(R.monthsShort,E,Y,3);case"MMMM":return X(Y,E);case"D":return H.$D;case"DD":return C.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return X(R.weekdaysMin,H.$W,j,2);case"ddd":return X(R.weekdaysShort,H.$W,j,3);case"dddd":return j[H.$W];case"H":return String(O);case"HH":return C.s(O,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return ne(O,W,!0);case"A":return ne(O,W,!1);case"m":return String(W);case"mm":return C.s(W,2,"0");case"s":return String(H.$s);case"ss":return C.s(H.$s,2,"0");case"SSS":return C.s(H.$ms,3,"0");case"Z":return _}return null})(le)||_.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(B,H,R){var U,_=this,O=C.p(H),W=I(B),E=(W.utcOffset()-this.utcOffset())*a,j=this-W,Y=function(){return C.m(_,W)};switch(O){case T:U=Y()/12;break;case f:U=Y();break;case d:U=Y()/3;break;case p:U=(j-E)/6048e5;break;case m:U=(j-E)/864e5;break;case i:U=j/n;break;case u:U=j/a;break;case s:U=j/r;break;default:U=j}return R?U:C.a(U)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return M[this.$L]},A.locale=function(B,H){if(!B)return this.$L;var R=this.clone(),U=D(B,H,!0);return U&&(R.$L=U),R},A.clone=function(){return C.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},b})(),$=K.prototype;return I.prototype=$,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",m],["$M",f],["$y",T],["$D",z]].forEach((function(b){$[b[1]]=function(A){return this.$g(A,b[0],b[1])}})),I.extend=function(b,A){return b.$i||(b(A,K,I),b.$i=!0),I},I.locale=D,I.isDayjs=P,I.unix=function(b){return I(1e3*b)},I.en=M[L],I.Ls=M,I.p={},I}))})),Iu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=a()})(e,(function(){"use strict";var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,i={},m=function(c){return(c=+c)+(c>68?1900:2e3)},p=function(c){return function(g){this[c]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(c){(this.zone||(this.zone={})).offset=(function(g){if(!g||g==="Z")return 0;var v=g.match(/([+-]|\d\d)/g),S=60*v[1]+(+v[2]||0);return S===0?0:v[0]==="+"?-S:S})(c)}],d=function(c){var g=i[c];return g&&(g.indexOf?g:g.s.concat(g.f))},T=function(c,g){var v,S=i.meridiem;if(S){for(var F=1;F<=24;F+=1)if(c.indexOf(S(F,0,g))>-1){v=F>12;break}}else v=c===(g?"pm":"PM");return v},z={A:[u,function(c){this.afternoon=T(c,!1)}],a:[u,function(c){this.afternoon=T(c,!0)}],Q:[n,function(c){this.month=3*(c-1)+1}],S:[n,function(c){this.milliseconds=100*+c}],SS:[o,function(c){this.milliseconds=10*+c}],SSS:[/\d{3}/,function(c){this.milliseconds=+c}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[o,p("day")],Do:[u,function(c){var g=i.ordinal;if(this.day=c.match(/\d+/)[0],g)for(var v=1;v<=31;v+=1)g(v).replace(/\[|\]/g,"")===c&&(this.day=v)}],w:[s,p("week")],ww:[o,p("week")],M:[s,p("month")],MM:[o,p("month")],MMM:[u,function(c){var g=d("months"),v=(d("monthsShort")||g.map((function(S){return S.slice(0,3)}))).indexOf(c)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[u,function(c){var g=d("months").indexOf(c)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,p("year")],YY:[o,function(c){this.year=m(c)}],YYYY:[/\d{4}/,p("year")],Z:f,ZZ:f};function h(c){for(var g=c,v=i&&i.formats,S=(c=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,C,K){var $=K&&K.toUpperCase();return C||v[K]||r[K]||v[$].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,A,B){return A||B.slice(1)}))}))).match(a),F=S.length,L=0;L<F;L+=1){var M=S[L],q=z[M],P=q&&q[0],D=q&&q[1];S[L]=D?{regex:P,parser:D}:M.replace(/^\[|\]$/g,"")}return function(I){for(var C={},K=0,$=0;K<F;K+=1){var b=S[K];if(typeof b=="string")$+=b.length;else{var A=b.regex,B=b.parser,H=I.slice($),R=A.exec(H)[0];B.call(C,R),I=I.replace(R,"")}}return(function(U){var _=U.afternoon;if(_!==void 0){var O=U.hours;_?O<12&&(U.hours+=12):O===12&&(U.hours=0),delete U.afternoon}})(C),C}}return function(c,g,v){v.p.customParseFormat=!0,c&&c.parseTwoDigitYear&&(m=c.parseTwoDigitYear);var S=g.prototype,F=S.parse;S.parse=function(L){var M=L.date,q=L.utc,P=L.args;this.$u=q;var D=P[1];if(typeof D=="string"){var I=P[2]===!0,C=P[3]===!0,K=I||C,$=P[2];C&&($=P[2]),i=this.$locale(),!I&&$&&(i=v.Ls[$]),this.$d=(function(H,R,U,_){try{if(["x","X"].indexOf(R)>-1)return new Date((R==="X"?1e3:1)*H);var O=h(R)(H),W=O.year,E=O.month,j=O.day,Y=O.hours,k=O.minutes,X=O.seconds,Z=O.milliseconds,ne=O.zone,le=O.week,oe=new Date,Q=j||(W||E?1:oe.getDate()),re=W||oe.getFullYear(),V=0;W&&!E||(V=E>0?E-1:oe.getMonth());var y,N=Y||0,x=k||0,G=X||0,ee=Z||0;return ne?new Date(Date.UTC(re,V,Q,N,x,G,ee+60*ne.offset*1e3)):U?new Date(Date.UTC(re,V,Q,N,x,G,ee)):(y=new Date(re,V,Q,N,x,G,ee),le&&(y=_(y).week(le).toDate()),y)}catch{return new Date("")}})(M,D,q,v),this.init(),$&&$!==!0&&(this.$L=this.locale($).$L),K&&M!=this.format(D)&&(this.$d=new Date("")),i={}}else if(D instanceof Array)for(var b=D.length,A=1;A<=b;A+=1){P[1]=D[A-1];var B=v.apply(this,P);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}A===b&&(this.$d=new Date(""))}else F.call(this,L)}}}))})),Lu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=a()})(e,(function(){"use strict";return function(r,a){var n=a.prototype,o=n.format;n.format=function(s){var u=this,i=this.$locale();if(!this.isValid())return o.bind(this)(s);var m=this.$utils(),p=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(f){switch(f){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return i.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return i.ordinal(u.week(),"W");case"w":case"ww":return m.s(u.week(),f==="w"?1:2,"0");case"W":case"WW":return m.s(u.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return m.s(String(u.$H===0?24:u.$H),f==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return f}}));return o.bind(this)(p)}}}))})),Fu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_localeData=a()})(e,(function(){"use strict";return function(r,a,n){var o=a.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},u=function(f,d,T,z,h){var c=f.name?f:f.$locale(),g=s(c[d]),v=s(c[T]),S=g||v.map((function(L){return L.slice(0,z)}));if(!h)return S;var F=c.weekStart;return S.map((function(L,M){return S[(M+(F||0))%7]}))},i=function(){return n.Ls[n.locale()]},m=function(f,d){return f.formats[d]||(function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,h,c){return h||c.slice(1)}))})(f.formats[d.toUpperCase()])},p=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):u(f,"months")},monthsShort:function(d){return d?d.format("MMM"):u(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):u(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):u(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):u(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return m(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return p.bind(this)()},n.localeData=function(){var f=i();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(d){return m(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},n.months=function(){return u(i(),"months")},n.monthsShort=function(){return u(i(),"monthsShort","months",3)},n.weekdays=function(f){return u(i(),"weekdays",null,null,f)},n.weekdaysShort=function(f){return u(i(),"weekdaysShort","weekdays",3,f)},n.weekdaysMin=function(f){return u(i(),"weekdaysMin","weekdays",2,f)}}}))})),Ru=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekOfYear=a()})(e,(function(){"use strict";var r="week",a="year";return function(n,o,s){var u=o.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(a).add(1,a).date(m),f=s(this).endOf(r);if(p.isBefore(f))return 1}var d=s(this).startOf(a).date(m).startOf(r).subtract(1,"millisecond"),T=this.diff(d,r,!0);return T<0?s(this).startOf("week").week():Math.ceil(T)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})),Du=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekYear=a()})(e,(function(){"use strict";return function(r,a){a.prototype.weekYear=function(){var n=this.month(),o=this.week(),s=this.year();return o===1&&n===11?s+1:n===0&&o>=52?s-1:s}}}))})),Ou=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_dayOfYear=a()})(e,(function(){"use strict";return function(r,a,n){a.prototype.dayOfYear=function(o){var s=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}}))})),qu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrAfter=a()})(e,(function(){"use strict";return function(r,a){a.prototype.isSameOrAfter=function(n,o){return this.isSame(n,o)||this.isAfter(n,o)}}}))})),Hu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrBefore=a()})(e,(function(){"use strict";return function(r,a){a.prototype.isSameOrBefore=function(n,o){return this.isSame(n,o)||this.isBefore(n,o)}}}))})),Qe=rt(Au(),1),ju=rt(Iu(),1),Ku=rt(Lu(),1),Wu=rt(Fu(),1),Yu=rt(Ru(),1),Uu=rt(Du(),1),Gu=rt(Ou(),1),Xu=rt(qu(),1),Zu=rt(Hu(),1);Qe.default.extend(Wu.default);Qe.default.extend(Ku.default);Qe.default.extend(ju.default);Qe.default.extend(Yu.default);Qe.default.extend(Uu.default);Qe.default.extend(Gu.default);Qe.default.extend(Xu.default);Qe.default.extend(Zu.default);var qe={format(e,t="YYYY-MM-DD"){return(0,Qe.default)(e).format(t)},parser(e,t){return(0,Qe.default)(e,t).toDate()},getDay(e,t,r){let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),r=r??"YYYY-MM-DD",this.format(a,r)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,r){let a=new Date(e+"/"+t+"/"+r).getDay();return a==0&&(a=7),a},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){return t=t||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(t)},compare(e,t,r){const a=typeof e=="string"?this.parser(e,r):e,n=typeof t=="string"?this.parser(t,r):t,o=a.getTime(),s=n.getTime();return o==s?0:o>s?1:-1},between(e,t,r,a){let n;a==="year"?n=new Date(new Date(t).setFullYear(t.getFullYear()+r)):a==="month"?n=new Date(new Date(t).setMonth(t.getMonth()+r)):n=new Date(new Date(t).setDate(t.getDate()+r));const o=e.getTime(),s=n.getTime(),u=t.getTime();return s>u?o>=u&&o<=s:o>=s&&o<=u},inScope4Day(e,t,r){return this.between(e,t,r,"day")},inScope4Month(e,t,r){return this.between(e,t,r,"month")},inScope4Year(e,t,r){return this.between(e,t,r,"year")}},Ja={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},Qa={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}},Ju={...xe,...$e,...Ja,...Qa};function Qu(e,t,r,a){return{props:Ju,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(!1),g=ye(n,"modelValue",null,d),v=(0,l.computed)(()=>O.value&&Array.isArray(g.value)&&g.value.length==2?g.value[0]:g.value),S=(0,l.computed)(()=>O.value?"longTermKey":"normalKey"),F=y=>{if(O.value&&n.type==="daterange"){const N=[...g.value];N[0]=y,g.value=N}else g.value=y;d("update:modelValue",g.value),d("change",g.value)},L=(0,l.computed)(()=>O.value&&n.type==="daterange"?"date":n.type),M=e,q=(0,l.computed)(()=>({[`${M}`]:!0,"is-long":O.value,"is-readonly":p.value,"is-disabled":i.value}));let P=ye(n,"hintText"),D=(0,l.ref)(!1);const I=y=>{let N=y.target.value;c.value=!0,he(P.value)||(D.value=!0),d("focus",N,y)},C=y=>{setTimeout(()=>{D.value&&(D.value=!1),c.value=!1},0);let N=y.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),d("blur",N,y)},K=()=>{d("clear","")},$=y=>{d("calendar-change",y)},b=(y,N,x)=>{d("panel-change",y,N,x)},A=y=>{d("visible-change",y)},B=Pe((0,l.computed)(()=>n.longTermText),"longTermText",Me.Near),H=Pe((0,l.computed)(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),R=Pe((0,l.computed)(()=>n.longTermValue),"longTermValue",Me.Near),U=Pe((0,l.computed)(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let _=null;const O=(0,l.ref)(de(n.longTerm)),W=y=>{if(O.value=y,d("update:longTerm",y),y){if(_=g.value,n.type==="daterange"){const N=[];Array.isArray(R.value)?(N[0]=g.value?g.value[0]??R.value[0]:null,N[1]=R.value[1]??R.value[0]):(N[0]=g.value?g.value[0]??R.value:null,N[1]=O.value),N[0]||(N[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),g.value=N}else Array.isArray(R.value)?g.value=R.value[1]??R.value[0]:g.value=R.value,g.value||(g.value=n.valueFormat?qe.format(new Date,n.valueFormat):new Date);d("update:modelValue",g.value)}else{if(n.type==="daterange"){const N=[];N[0]=Array.isArray(g.value)?g.value[0]:g.value,Array.isArray(_)?N[1]=_[1]:N[1]=_,N[0]||(N[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),g.value=N}else g.value=_;d("update:modelValue",g.value),setTimeout(()=>{Q()},100)}},E=de(n.isLongTerm);if(E){const y=()=>{if(O.value===!0){if(_=g.value,n.type==="daterange"){const N=[g.value[0]];Array.isArray(R.value)?N[1]=R.value[1]??R.value[0]:N[1]=O.value,N[0]||(N[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),N[1]||(N[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),g.value=N}else g.value=R.value;d("update:modelValue",g.value)}else Je(R.value,g.value)&&(O.value=!0)};y(),(0,l.watch)([()=>n.longTerm],([N])=>{O.value!==N&&y()}),(0,l.watch)([()=>g.value],([N])=>{let x=!1;if(n.type==="daterange"&&Array.isArray(N))try{let G=N[1];if(!G)return;if(N[0]==null){d("update:modelValue",[]);return}typeof G!="string"&&n.valueFormat&&(G=qe.format(G,n.valueFormat));let ee=Array.isArray(R.value)?R.value[1]:R.value;(G===ee||Array.isArray(U.value)&&U.value.findIndex(te=>G==te)!==-1)&&(x=!0)}catch(G){console.error(G)}O.value!==x&&(O.value=x)},{immediate:!0})}const j=(0,l.computed)(()=>({"fox-date-item__long":!0,"is-active":c.value})),Y=(0,l.ref)(),k=/^\d+$/,X=(y,N)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(y,N):k.test(y)&&y.length===n.flashFillThreshold,Z=(y,N)=>{let x;if(typeof n.flashFillFormat=="function")x=n.flashFillFormat(y,N);else{const ee=n.flashFillFormat??"YYYYMMDD";x=qe.parser(y,ee)}const G=n.valueFormat??"YYYY-MM-DD";return qe.format(x,G)},ne=y=>y?y.endsWith("range"):!1,le=y=>{if(!y.target)return;const N=y.target.value??"";if(X(N,n.type)){const x=Z(N,n.type);if(ne(n.type)){const G=Array.isArray(g.value)?[...g.value]:[];G[0]=x,F(G)}else F(x)}},oe=y=>{if(!y.target)return;const N=y.target.value??"";if(X(N,n.type)){const x=Z(N,n.type);if(ne(n.type)){const G=Array.isArray(g.value)?[...g.value]:[];G[1]=x,F(G)}else F(x)}},Q=()=>{if(n.flashFill&&s.value&&s.value.$el)if(ne(n.type)){const y=s.value.$el.querySelectorAll("input.el-range-input");y[0]&&y[0].addEventListener("input",le),y[1]&&y[1].addEventListener("input",oe)}else{const y=s.value.$el.querySelector("input.el-input__inner");y&&y.addEventListener("input",le)}},re=()=>{if(n.flashFill&&s.value&&s.value.$el)if(ne(n.type)){const y=s.value.$el.querySelectorAll("input.el-range-input");y[0]&&y[0].removeEventListener("input",le),y[1]&&y[1].removeEventListener("input",oe)}else{const y=s.value.$el.querySelector("input.el-input__inner");y&&y.removeEventListener("input",le)}};(0,l.onMounted)(Q),(0,l.onBeforeUnmount)(re),T({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},handleOpen:()=>{Y?.value.handleOpen()},handleClose:()=>{Y?.value.handleClose()},setDisabled:y=>{u.value=y},setReadonly:y=>{m.value=y}});const V=(0,l.computed)(()=>{if(_e(v.value))return"";const y=n.rangeSeparator??" - ",N=Array.isArray(v.value)?v.value:[v.value];E&&O.value&&(N[1]=B.value);const x=[];for(let ee=0;ee<N.length;ee++){const te=N[ee];if(te==="string"&&x.push(te),te instanceof Date){const ue=qe.format(te,n.format);x.push(ue)}}const G=` ${y} `;return x.join(G)});return()=>{if(f.value==="on"&&(p.value||i.value))return a(V.value,o.slots);const y={...o.attrs,key:S.value,type:L.value,ref:Y,class:q.value,placeholder:h.placeholder.value,rangeSeparator:n.rangeSeparator,disabled:i.value,readonly:p.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":F,onClear:K,onFocus:I,onBlur:C,onCalendarChange:$,onPanelChange:b,onVisibleChange:A},N={};o.slots["range-separator"]&&(N["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(N.default=o.slots.cell);const x=[],G=(0,l.h)(w.ElDatePicker,y,N);x.push(G);const ee={default:()=>x};if(ee.label=o.slots.default,ee.fixedPreTip=o.slots.fixedPreTip,ee.fixedTip=o.slots.fixedTip,E){if(O.value){const ue=(0,l.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=(0,l.h)("input",{class:["fox-date-item__long-text"],value:B.value,readonly:!0}),me=(0,l.h)("div",{class:j.value},{default:()=>[ue,fe]});x.push(me)}if(!p.value&&!i.value){const ue=(0,l.h)(w.ElCheckbox,{label:H.value||B.value,disabled:p.value||i.value,modelValue:O.value,"onUpdate:modelValue":W}),fe=(0,l.h)("div",{class:{[`${M}__append`]:!0}},[ue]);ee.append=()=>fe}}const te={...Le(n,Ja,Qa),ref:s,class:{[`${M}__wrapper`]:!0,"has-append":E},hintText:P.value,hintVisible:D.value};return n.prop&&(te.prop=`${n.prop}_item`),r(te,ee)}}}}var{componentName:e1,create:t1,scope:l1}=se("date-item"),n1=t1(Qu(e1,l1,Re,He)),An=n1,eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},format:{type:[String],required:!1},maxLength:{type:[String,Number]}},r1={...xe,...$e,...eo};function a1(e,t,r,a){return{props:r1,emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(!1),g=ye(n,"modelValue",null,d),v=e,S=(0,l.computed)(()=>({[v]:!0})),F=$=>{g.value=$,d("update:modelValue",$),d("change",$)};let L=ye(n,"hintText"),M=(0,l.ref)(!1);const q=$=>{let b=$.target.value;c.value=!0,he(L.value)||(M.value=!0),d("focus",b,$)},P=$=>{setTimeout(()=>{M.value&&(M.value=!1),c.value=!1},0);let b=$.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),d("blur",b,$)},D=()=>{d("clear","")},I=$=>{d("visible-change",$)},C=(0,l.ref)();T({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},handleOpen:()=>{C?.value.handleOpen()},handleClose:()=>{C?.value.handleClose()},setDisabled:$=>{u.value=$},setReadonly:$=>{m.value=$}});const K=(0,l.computed)(()=>{if(_e(g.value))return"";const $=n.rangeSeparator??" - ",b=Array.isArray(g.value)?g.value:[g.value],A=[];for(let H=0;H<b.length;H++){const R=b[H];if(R==="string"&&A.push(R),R instanceof Date){const U=qe.format(R,n.format);A.push(U)}}const B=` ${$} `;return A.join(B)});return()=>{if(f.value==="on"&&(p.value||i.value))return a(K.value,o.slots);const $={...o.attrs,ref:C,class:S.value,placeholder:h.placeholder.value,rangeSeparator:n.rangeSeparator,format:n.format,disabled:i.value,readonly:p.value,modelValue:g.value,"onUpdate:modelValue":F,onClear:D,onFocus:q,onBlur:P,onVisibleChange:I},b={},A=[],B=(0,l.h)(w.ElTimePicker,$,b);A.push(B);const H={default:()=>A};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const R={...Le(n,eo),ref:s,hintText:L.value,hintVisible:M.value};return n.prop&&(R.prop=`${n.prop}_item`),r(R,H)}}}}var{componentName:o1,create:i1,scope:s1}=se("time-item"),u1=i1(a1(o1,s1,Re,He)),In=u1,to={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},format:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},c1={...xe,...$e,...to};function d1(e,t,r,a){return{props:c1,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(!1),g=ye(n,"modelValue",null,d),v=e,S=(0,l.computed)(()=>({[v]:!0})),F=K=>{g.value=K,d("update:modelValue",K),d("change",K)};let L=ye(n,"hintText"),M=(0,l.ref)(!1);const q=K=>{let $=K.target.value;c.value=!0,he(L.value)||(M.value=!0),d("focus",$,K)},P=K=>{setTimeout(()=>{M.value&&(M.value=!1),c.value=!1},0);let $=K.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),d("blur",$,K)},D=()=>{d("clear","")},I=(0,l.ref)();T({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:K=>{u.value=K},setReadonly:K=>{m.value=K}});const C=(0,l.computed)(()=>{if(_e(g.value))return"";const K=n.rangeSeparator??" - ",$=Array.isArray(g.value)?g.value:[g.value],b=[];for(let B=0;B<$.length;B++){const H=$[B];if(H==="string"&&b.push(H),H instanceof Date){const R=qe.format(H,n.format);b.push(R)}}const A=` ${K} `;return b.join(A)});return()=>{if(f.value==="on"&&(p.value||i.value))return a(C.value,o.slots);const K={...o.attrs,ref:I,class:S.value,placeholder:h.placeholder.value,rangeSeparator:n.rangeSeparator,foramt:n.format,disabled:i.value,readonly:p.value,modelValue:g.value,"onUpdate:modelValue":F,onClear:D,onFocus:q,onBlur:P},$={},b=[],A=(0,l.h)(w.ElTimeSelect,K,$);b.push(A);const B={default:()=>b};B.label=o.slots.default,B.fixedPreTip=o.slots.fixedPreTip,B.fixedTip=o.slots.fixedTip;const H={...Le(n,to),ref:s,hintText:L.value,hintVisible:M.value};return n.prop&&(H.prop=`${n.prop}_item`),r(H,B)}}}}var{componentName:f1,create:m1,scope:p1}=se("time-select-item"),h1=m1(d1(f1,p1,Re,He)),Ln=h1;function zr(e,t=0){let r=`${e}`,a=r.indexOf(".");if(a==-1)return r;let n=a;for(let o=r.length-1;o>=a;o--)if(r.charAt(o)!="0"){n=o;break}return n-a<t?n=a+t+1:n!=a&&(n+=1),n>r.length?r=r.padEnd(n,"0"):r=r.substring(0,n),r}function kr(e,t,r=20){return typeof t=="string"&&(t=ze(t)),t==1||t==-1?`${e}`:t==0?"0":t>0?zr(ta(`${e}`,`${t}`)):zr(hn(`${e}`,la(`${t}`),20))}function g1(e,t=-1,r=!1,a=3,n=","){return ml(e,ze(t),r,a,n)}function Er(e,t,r,a,n=!0){if(e==="")return"";if(e=na(e),t=ze(t),t==1)return e;if(a)e=kr(e,t),r&&(e=="0"&&n?e=`${e}.`.padEnd(ze(r)+2,"0"):e=hn(e,1,ze(r)));else{let o=-1*t;e=kr(e,o)}return e}function _r(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let a=de(t.minInclude),n=ln(e,t.min);(a&&n==-1||!a&&(n==0||n==-1))&&(r.message="请输入不小于 {0} 的数值".replace("{0}",t.min),r.minValid=!1)}if(t.max!=null){let a=de(t.maxInclude),n=ln(e,t.max);(a&&n==1||!a&&(n==0||n==1))&&(r.maxValid=!1)}return r}var lo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:[String],required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:[Boolean],required:!1,default:!0},digits:{type:[Number],required:!1,default:3},separator:{type:[String],required:!1,default:","},placeholder:{type:[String],required:!1},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},v1={...xe,...$e,...lo};function y1(e,t,r,a){return{props:v1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)(!1),h=ye(n,"modelValue",null,d),c=(0,l.ref)("");(0,l.watch)([()=>h.value,()=>n.rates,()=>n.precision],([O,W,E])=>{if(he(O)){c.value="";return}const j=Er(O,W,E,!1);c.value!==j&&(c.value=j)},{immediate:!0});const g=(0,l.computed)(()=>{let O="";return z.value&&(O=c.value),O}),{t:v}=(0,Ie.useFoxI18n)(t),S=(0,l.computed)(()=>{let O=n.placeholder??"";return!z.value&&!he(c.value)?O=g1(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):O=v(["placeholder",O]),O}),F=e,L=(0,l.computed)(()=>({[F]:!0,[`${F}__disabled`]:i.value,[`${F}__placeholder`]:c.value.length>0})),M=Pe((0,l.computed)(()=>n.textAlign),"textAlign"),q=(0,l.computed)(()=>z.value?{textAlign:"left"}:{textAlign:M.value??"right"}),P=(0,l.ref)(""),D=(0,l.computed)(()=>{let O=P.value;return he(O)&&(O=n.errorTip??""),O}),I=(0,l.ref)(""),C=(0,l.ref)(!1),K=(O,W)=>{if(O=`${O}`,he(O)){c.value="",h.value="",W.forEach(E=>{d(E,"")}),de(n.showTip)&&C.value&&(C.value=!1);return}if(O.length>=2){let E=O;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){(0,l.triggerRef)(c);return}}if(O!="-"){if(!yn(O)){(0,l.triggerRef)(c);return}if(n.integerLength!=-1&&da(O)>Number(n.integerLength)){(0,l.triggerRef)(c);return}if(n.decimalLength&&n.decimalLength!=-1&&fa(O)>Number(n.decimalLength)){(0,l.triggerRef)(c);return}let E=_r(O,n);if(E.maxValid===!1){P.value=E.message,(0,l.triggerRef)(c);return}}else if(n.min!=null&&ze(n.min)>=0){(0,l.triggerRef)(c);return}I.value=O,de(n.showTip)&&(C.value=O.length>0),c.value=O,h.value=Er(O,n.rates,n.precision,!0),W.forEach(E=>{d(E,h.value)})},$=O=>{K(O,["update:modelValue","input"])},b=O=>{K(O,["update:modelValue","change"])},A=O=>{if(z.value=!0,de(n.showTip)){let W=c.value;he(W)&&(W=n.hintText),he(W)||(I.value=W,C.value=!0)}P.value="",d("focus",h.value,O)},B=O=>{if(setTimeout(()=>{z.value=!1,de(n.showTip)&&C.value===!0&&(C.value=!1)},0),!he(c.value)){let W=_r(c.value,n);if(W.minValid===!1||W.maxValid===!1){P.value=W.message;return}}d("update:modelValue",h.value,O),d("blur",h.value,O)},H=()=>{d("clear","")},R=(0,l.computed)(()=>Wt(n.unit)>0),U=(0,l.ref)();T({focus:()=>{U?.value.focus()},blur:()=>{U?.value.blur()},select:()=>{U?.value.select()},setDisabled:O=>{u.value=O},setReadonly:O=>{m.value=O}});const _=()=>h.value?S.value:h.value;return()=>{if(f.value==="on"&&(p.value||i.value))return a(_(),o.slots);const O={...Ue(o.attrs),ref:U,class:L.value,style:q.value,type:"digit",maxlength:n.maxLength,placeholder:S.value,clearable:n.clearable,disabled:i.value,readonly:p.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:H,onInput:$,onChange:b,onFocus:A,onBlur:B},W={};o.slots.prepend&&(W.prepend=o.slots.prepend),o.slots.append&&(W.append=o.slots.append),o.slots.prefix&&(W.prefix=o.slots.prefix),o.slots.suffix?W.suffix=o.slots.suffix:R.value&&(W.suffix=()=>[n.unit]);const E=[],j=(0,l.h)(w.ElInput,O,W);E.push(j);const Y={default:()=>E};Y.label=o.slots.default,Y.fixedPreTip=o.slots.fixedPreTip,Y.fixedTip=o.slots.fixedTip;const k={...Le(n,lo),ref:s,errorTip:D.value,hintText:I.value,hintVisible:C.value,hintType:"number"};return n.prop&&(k.prop=`${n.prop}_item`),r(k,Y)}}}}var{componentName:b1,create:S1,scope:w1}=se("money-item"),x1=S1(y1(b1,w1,Re,He)),Fn=x1,no={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},N1={...xe,...$e,...no};function C1(e,t,r,a){return{props:N1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(!1),g=ye(n,"modelValue",null,d),v=e,S=(0,l.computed)(()=>({[v]:!0,[`${v}__append`]:K.value})),F=(0,l.computed)(()=>({[`${v}__unit`]:!0})),L=b=>{g.value=b,d("update:modelValue",b),d("input",b)},M=b=>{d("change",b)};let q=ye(n,"hintText"),P=(0,l.ref)(!1);const D=b=>{let A=b.target.value;c.value=!0,he(q.value)||(P.value=!0),d("focus",A,b)},I=b=>{setTimeout(()=>{P.value&&(P.value=!1),c.value=!1},0);let A=b.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),d("blur",A,b)},C=()=>{d("clear","")},K=(0,l.computed)(()=>Wt(n.unit)>0),$=(0,l.ref)();return T({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},setDisabled:b=>{u.value=b},setReadonly:b=>{m.value=b}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(g.value,o.slots);const b={...Ue(o.attrs),ref:$,class:S.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:p.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:C,onChange:M,onInput:L,onFocus:D,onBlur:I},A={},B=[],H=(0,l.h)(w.ElInputNumber,b,A);B.push(H);const R={default:()=>B};R.label=o.slots.default,R.fixedPreTip=o.slots.fixedPreTip,R.fixedTip=o.slots.fixedTip;const U={...Le(n,no),ref:s,hintText:q.value,hintVisible:P.value};if(n.prop&&(U.prop=`${n.prop}_item`),o.slots.append)R.append=o.slots.append;else if(K.value){const _=(0,l.h)("div",{class:F.value},[n.unit]);R.append=()=>_}return r(U,R)}}}}var{componentName:z1,create:k1,scope:E1}=se("input-number-item"),_1=k1(C1(z1,E1,Re,He)),Rn=_1;function tt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ht(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function T1(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}var $1=class{scope;constructor(e){this.scope=e}async load(e,t,r,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const n=je(e,this.scope);return n===null?(console.error(`[FoxUI] ${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await n(t,r,a))}};function B1(){return new $1(et())}function dn(e,t,r){return!(tt(e,t)!==tt(e,r)||ht(e,t)!==ht(e,r))}function ro(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];let o=a;for(let s=0;Array.isArray(o)&&s<t.length;s++){const u=t[s];if(Array.isArray(u)){const i=ro(e,u,r,a);n.push(i)}else{let i=!1;for(let m of o){if(r==="text")i=tt(e,m)===u;else if(r==="item")i=dn(e,m,u);else{let p=ht(e,m);p==null&&(p=tt(e,m)),i=p===u}if(i){n.push(m),o=T1(e,m);break}}if(!i)break}}return n}function V1(e){return{text:e,value:e}}var ao={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:()=>!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:()=>!1},allowCreate:{type:[Boolean]},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]}},M1={...xe,...$e,...ao};function P1(e,t,r,a){return{props:M1,emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(null),g=(0,l.ref)([]),v=(0,l.computed)(()=>g.value?g.value.map(V=>Array.isArray(V)?V.map(y=>tt(n,y)).join(" "):tt(n,V)).join(" "):""),S=(V,y,N,x=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===V)return;c.value=V;const ue=(0,l.toRaw)(V);if(x){const fe=re?.value.getCheckedNodes();if(fe)if(n.multiple){const me=[];fe.forEach(ve=>{const ke=(ve.pathNodes??[]).map(Oe=>Oe.data);me.push(ke)}),d("update:pathNodes",me)}else d("update:pathNodes",(fe[0]?.pathNodes??[]).map(me=>me.data));d("update:modelValue",ue),d("change",ue)}return}const G=ro(n,V,y,N);if(G===null){if(g.value.length===0||g.value===null)return;g.value=[],c.value=null,x&&(d("update:pathNodes",[]),d("update:modelValue",null),d("change",null));return}const ee=G[G.length-1];if(B.value.checkStrictly!==!0&&ee&&!Array.isArray(ee)&&Array.isArray(ee.children)&&ee.children.length>0){const ue=[];G.forEach(fe=>{const me=`${tt(n,fe)}`;ue.push(me)}),ue.length>0&&(b.value=ue.join(n.separator))}else b.value=null;let te=!0;if(G.length!==g.value.length)te=!1;else for(let ue=0;ue<G.length;ue++){const fe=G[ue],me=g.value[ue];if(Array.isArray(fe)){if(!Array.isArray(me)||fe.length!==me.length)te=!1;else for(let ve=0;ve<fe.length;ve++)if(!dn(n,fe[ve],me[ve])){te=!1;break}}else dn(n,fe,me)||(te=!1);if(!te)break}if(!te){g.value=G;let ue=[],fe=[];G.forEach(ve=>{if(Array.isArray(ve)){let ke=[],Oe=[];for(let Ge of ve)ke.push(ht(n,Ge)),n.valueType==="text"?Oe.push(tt(n,Ge)):n.valueType==="item"?Oe.push(Ge):Oe.push(ht(n,Ge));ue.push(ke),fe.push(Oe)}else ue.push(ht(n,ve)),n.valueType==="text"?fe.push(tt(n,ve)):n.valueType==="item"?fe.push(ve):fe.push(ht(n,ve))}),c.value=ue;const me=(0,l.toRaw)(fe);x&&(d("update:pathNodes",G),d("update:modelValue",me),d("change",me))}},F=(0,l.ref)([]),L=Pe((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,V=>de(V)),M=B1(),q=async(V,y)=>{if(V){const N=await M.load("cascader",V,y);N.length>0&&(typeof N[0]=="string"?F.value=N.map(x=>V1(x)):F.value=N)}};(0,l.watch)([()=>n.source,()=>n.params],async([V,y])=>{q(V,y)},{immediate:!(L.value||n.lazy)});let P=!1;const D=()=>{P||(P=!0,q(n.source,n.params))};(0,l.watch)([()=>F.value,()=>n.modelValue],([V,y])=>{S(y,n.valueType,V,!1),d("setValue",y)}),n.lazy&&S(n.modelValue,"value",[],!1);let I=null,C=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(I=async V=>{if(V!=null){C.value=!0;try{F.value=await n.remoteMethod(V)}catch(y){console.error(y)}C.value=!1}});const K=(0,l.ref)(!1),$=e,b=(0,l.ref)(null),A=(0,l.computed)(()=>({[$]:!0,"is-incomplete":b.value&&b.value.length>0})),B=(0,l.computed)(()=>{let V={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(V.multiple=!0),n.props&&Object.assign(V,n.props),n.lazy&&(V.lazy=!0,typeof n.lazyLoad=="function"?V.lazyLoad=n.lazyLoad:V.lazyLoad=async(y,N)=>{let x={};n.params&&Object.assign(x,n.params),y&&Object.assign(x,y);const G=await M.load("cascader",n.source,x,!0);if(y?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===y.level){const ee=y.pathLabels??[];let te=[];ee.forEach(ue=>{ue&&te.push(ue)}),te.length>0&&(b.value=te.join(n.separator))}else b.value=null;N(G)}),V}),H=V=>{n.allowCreate?(d("update:modelValue",V),d("change",V),c.value=V):S(V,"value",F.value,!0)};let R=ye(n,"hintText"),U=(0,l.ref)(!1);const _=V=>{let y=V.target.value;K.value=!0,he(R.value)||(U.value=!0),d("focus",y,V)},O=V=>{setTimeout(()=>{U.value&&(U.value=!1),K.value=!1},0);let y=V.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),ne.value||d("blur",y,V)},W=()=>{d("clear","")},E=(0,l.ref)(!1);let j=null;const Y=()=>{n.showTooltip&&E.value===!1&&(j&&clearTimeout(j),j=setTimeout(()=>{E.value=!0},150))},k=()=>{j&&(clearTimeout(j),E.value=!1,j=null)},X=(0,l.computed)(()=>E.value||U.value),Z=(0,l.computed)(()=>E.value?v.value:R.value),ne=(0,l.ref)(!1),le=V=>{ne.value=V,d("visible-change",V),V||d("selected")},oe=V=>{d("remove-tag",V)},Q=V=>{d("expand-change",V)},re=(0,l.ref)();return T({focus:()=>{re?.value.focus()},blur:()=>{re?.value.blur()},getCheckedNodes:()=>re?.value.getCheckedNodes(),setDisabled:V=>{u.value=V},setReadonly:V=>{m.value=V}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(c.value,o.slots,F.value,n.separator);const V={...o.attrs,ref:re,class:A.value,props:B.value,clearable:n.clearable,placeholder:b.value||h.placeholder.value,disabled:i.value||p.value,options:F.value,modelValue:c.value,separator:n.separator,onClear:W,onChange:H,onFocus:_,onBlur:O,onVisibleChange:le,onRemoveTag:oe,expandChange:Q};typeof I=="function"&&(V["remote-method"]=I,V.loading=C.value);const y={};o.slots.option&&(y.default=o.slots.option),o.slots.empty&&(y.empty=o.slots.empty);const N=[],x=(0,l.h)(w.ElCascader,V,y);N.push(x);const G={default:()=>N};G.label=o.slots.default,G.fixedPreTip=o.slots.fixedPreTip,G.fixedTip=o.slots.fixedTip;const ee={...Le(n,ao),ref:s,hintText:Z.value,hintVisible:X.value,onMouseover:Y,onMouseleave:k};return n.prop&&(ee.prop=`${n.prop}_item`),L.value&&!n.lazy&&(ee["appear-listen"]=!0,ee.onAppear=D),r(ee,G)}}}}var{componentName:A1,create:I1,scope:L1}=se("cascader-item"),F1=I1(P1(A1,L1,Re,He)),Dn=F1,oo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]}},R1={...xe,...$e,...oo};function D1(e,t,r,a){return{props:R1,emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Ie.useFoxI18n)(t),h=z(n,["placeholder"]),c=(0,l.ref)(!1),g=ye(n,"modelValue",null,d),v=e,S=(0,l.computed)(()=>({[v]:!0})),F=$=>{g.value=$,d("update:modelValue",$),d("input",$)},L=$=>{d("change",$)},M=$=>{d("select",$)};let q=ye(n,"hintText"),P=(0,l.ref)(!1);const D=$=>{let b=$.target.value;c.value=!0,he(q.value)||(P.value=!0),d("focus",b,$)},I=$=>{setTimeout(()=>{P.value&&(P.value=!1),c.value=!1},0);let b=$.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),d("blur",b,$)},C=()=>{d("clear","")},K=(0,l.ref)();return T({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},select:()=>{K?.value.select()},setDisabled:$=>{u.value=$},setReadonly:$=>{m.value=$}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(g.value,o.slots);const $={...o.attrs,ref:K,class:S.value,placeholder:h.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:p.value,modelValue:g.value,onClear:C,onChange:L,onInput:F,onFocus:D,onBlur:I,onSelect:M},b={};o.slots.prepend&&(b.prepend=o.slots.prepend),o.slots.append&&(b.append=o.slots.append),o.slots.prefix&&(b.prefix=o.slots.prefix),o.slots.suffix&&(b.suffix=o.slots.suffix),o.slots.option&&(b.default=o.slots.option);const A=[],B=(0,l.h)(w.ElAutocomplete,$,b);A.push(B);const H={default:()=>A};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const R={...Le(n,oo),ref:s,hintText:q.value,hintVisible:P.value};return n.prop&&(R.prop=`${n.prop}_item`),r(n,H)}}}}var{componentName:O1,create:q1,scope:H1}=se("autocomplete-item"),j1=q1(D1(O1,H1,Re,He)),On=j1;function K1(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let m=o.substring(u+1,i);if(/^\d+$/.test(m)){let p=parseInt(m);if(s==0){let f=o.substring(0,u);a=a[f][p]}else a=a[p];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(a=a[o])}return a}function W1(e,t){return{props:{...Wa},setup(r,{attrs:a,slots:n}){return()=>{const o={default:s=>{const u=K1(s.row,s.column.property);return n.default?(0,l.h)(zt,{...r,modelValue:u},{default:n.default}):(0,l.h)(zt,{...r,modelValue:u})}};for(let s in n)s!=="default"&&(o[s]=n[s]);return(0,l.h)(w.ElTableColumn,{...a},o)}}}}var{componentName:Y1,create:U1,scope:G1}=se("table-mapping-column"),X1=U1(W1(Y1,G1)),qn=X1,Z1=Symbol.for("TableStateKey");function Tr(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let m=o.substring(u+1,i);if(/^\d+$/.test(m)){let p=parseInt(m);if(s==0){let f=o.substring(0,u);a=a[f][p]}else a=a[p];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(a=a[o])}return a}function J1(e,t){return{props:{prop:{type:[String],require:!1}},setup(r,{attrs:a}){const n=(0,l.inject)(Z1,{});let o=null;return()=>{const s={default:u=>{const i=n.currentRow?n.currentRow.value:null;u.$index!==-1&&(o=u.row);const m=u.$index!==-1?u.row:o;let p=!1;if(m){const d=r.prop??u.column.property;d?p=Tr(m,d)===(i?Tr(i,d):null):p=Je(m,i)}const f=(0,l.h)("span",{class:{"el-radio__input":!0,"is-checked":p}},[(0,l.h)("span",{class:{"el-radio__inner":!0}})]);return(0,l.h)("label",{class:{"el-radio":!0,"is-checked":p}},[f])}};return(0,l.h)(w.ElTableColumn,{...a},s)}}}}var{componentName:Q1,create:e0,scope:t0}=se("table-radio-column"),l0=e0(J1(Q1,t0)),Hn=l0,n0={},r0={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function a0(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",r0,[...t[0]||(t[0]=[(0,l.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var o0=Ye(n0,[["render",a0]]),{componentName:O5,create:i0,scope:q5}=se("table-setting"),s0={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},u0=i0({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:o0,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...s0},setup(e,{emit:t,attrs:r}){let a=[];const n=(0,l.ref)([]),o=(0,l.computed)(()=>n.value.filter(k=>k.label===""||k.type?!1:k.fixed===""||k.fixed===!0||k.fixed==="left")),s=(0,l.computed)(()=>n.value.filter(k=>k.label===""||k.type?!1:k.fixed==="right")),u=(0,l.computed)(()=>n.value.filter(k=>!(k.label===""||k.type||k.fixed!==void 0))),i=(0,l.computed)(()=>(o.value.length>0||s.value.length>0)&&u.value.length>0),m=(0,l.computed)(()=>o.value.length>0),p=(0,l.computed)(()=>s.value.length>0),f=k=>k.length>1,d=(k,X)=>{Array.isArray(k)&&Array.isArray(X)&&k.forEach(ne=>{X.some(le=>le.prop===ne.prop?(ne.label=le.label,!0):!1)});const Z=[];n.value=k.map((ne,le)=>(!(ne.label===""||ne.type)&&ne.visible!==!1&&Z.push(ne.prop),{...ne,sortIndex:le})),u.value.length+o.value.length+s.value.length===Z.length?v.value=!0:Z.length>0&&(S.value=!0),M.value=Z},T=k=>k?k.type?k.type:k.label?k.prop:"":"",z=(k,X)=>{if(k.length!==X.length)return!1;const Z=k.map(ne=>T(ne));for(let ne of X){const le=T(ne);if(Z.indexOf(le)===-1)return!1}return!0},h=k=>{if(!k){const X=e.tableRef.getColumnSetting(),Z=X.srcColumnPropertyList;a=Z.map((ne,le)=>({...ne,sortIndex:le})),k=X.columnPropertyList,k&&k.length>0&&z(Z,k)||(k=Z)}d(k,a)},c=()=>{e.tableRef.setColumnSetting(n.value)},g=(0,l.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),v=(0,l.ref)(!1),S=(0,l.ref)(!1),F=k=>{const X=[];n.value.forEach(Z=>{k&&!(Z.label===""||Z.type)&&X.push(Z.prop),Z.visible=k}),v.value=!1,S.value=!1,u.value.length+o.value.length+s.value.length===X.length?v.value=!0:X.length>0&&(S.value=!0),M.value=X,c()},L=()=>{h(a),c()},M=(0,l.ref)([]),q=k=>{n.value.forEach(Z=>{Z.label===""||Z.type||(Z.visible=k.indexOf(Z.prop)!==-1)}),v.value=!1,S.value=!1;const X=u.value.length+o.value.length+s.value.length;k.length===X?v.value=!0:k.length>0&&(S.value=!0),c()},P=()=>{h()};(0,l.onMounted)(()=>{setTimeout(()=>{h()},50)});const D={currentRow:null,index:null,roleType:null},I=k=>k?k.dataset&&k.dataset.role==="row"?k:k.tagName.toLowerCase()!=="body"?(k=k.parentElement,I(k)):null:null,C=k=>{const X=k.currentTarget;X&&X.dataset&&(D.roleType=X.dataset.roleType,D.index=X.dataset.index)},K=k=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null,D.roleType=null},$=k=>{const X=k.currentTarget;k.relatedTarget;const Z=I(X);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;D.roleType===ne&&(k.preventDefault(),D.currentRow&&D.currentRow!==Z&&D.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),D.currentRow=Z)},b=k=>{k.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},A=k=>{const X=k.currentTarget,Z=I(X);if(!Z)return;const ne=Z.dataset&&Z.dataset.roleType;if(D.roleType!==ne)return;k.preventDefault();const le=Number(D.index),oe=Number(Z.dataset.index);if(le!==oe){if(le<oe){const Q=n.value[le];n.value.splice(le,1),n.value.splice(oe,0,Q)}else{const Q=n.value[le];n.value.splice(le,1),n.value.splice(oe+1,0,Q)}d(n.value,a),c()}},B=k=>{const X=n.value[k];X.fixed="left",c()},H=k=>{const X=n.value[k];X.fixed="right",c()},R=k=>{const X=n.value[k];X.fixed=void 0,c()},U=new Map;let _=null;function O(k){const X=document.createRange();return X.setStart(k,0),X.setEnd(k,k.childNodes.length),X.getBoundingClientRect().width}return{attrs:r,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:u,isShowNotFixedTitle:i,isShowLeftFixedTitle:m,isShowRightFixedTitle:p,isDraggble:f,isCheckAll:v,isIndeterminate:S,handleCheckAllChange:F,handleReset:L,checkedValue:M,handleCheckChange:q,onShow:P,onDragStart:C,onDragEnd:K,onDragOver:$,onDragLeave:b,onDrop:A,toLeftFixed:B,toRightFixed:H,toUnFixed:R,checkboxLabelStyle:g,onMouseOverForOverflowText:(k,X,Z)=>{const ne=k.currentTarget;if(ne){const le=Math.floor(ne.offsetWidth);if(Math.floor(O(ne))>le){let oe=U.get(X);if(oe){if(oe===_)return;Ee.hide(oe)}oe=Ee.show(ne,Z,{type:"text",placement:"top",closeOnClick:!1}),oe&&(U.set(X,oe),_=oe)}}},onMouseLeaveForOverflowText:(k,X)=>{const Z=U.get(X);Z&&(Ee.hide(Z),Z===_&&(_=null))},onMouseOverForTip:(k,X)=>{const Z=k.currentTarget;Z&&(_&&Ee.hide(_),_=Ee.show(Z,X,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:k=>{_&&(Ee.hide(_),_=null)}}}}),c0={class:"fox-table-setting"},d0={class:"fox-table-setting__header"},f0={class:"fox-table-setting__body"},m0={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},p0={key:0,class:"fox-table-setting__body-title"},h0=["data-index","draggable"],g0=["onMouseover","onMouseleave"],v0={class:"tools-item"},y0={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},b0={key:0,class:"fox-table-setting__body-title"},S0=["data-index","draggable"],w0=["onMouseover","onMouseleave"],x0={class:"tools-item"},N0={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},C0={key:0,class:"fox-table-setting__body-title"},z0=["data-index","draggable"],k0=["onMouseover","onMouseleave"],E0={class:"tools-item"};function _0(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),i=(0,l.resolveComponent)("DragIcon"),m=(0,l.resolveComponent)("RefreshLeft"),p=(0,l.resolveComponent)("FoxIcon"),f=(0,l.resolveComponent)("Download"),d=(0,l.resolveComponent)("fox-checkbox"),T=(0,l.resolveComponent)("FoxCheckboxGroup"),z=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(z,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",c0,[(0,l.createElementVNode)("div",d0,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",f0,[(0,l.createVNode)(T,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[e.leftFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",m0,[e.isShowLeftFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",p0,(0,l.toDisplayString)(e.leftFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.leftFixedColumns,h=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...c)=>e.onDragStart&&e.onDragStart(...c)),onDragend:t[6]||(t[6]=(...c)=>e.onDragEnd&&e.onDragEnd(...c)),onDrop:t[7]||(t[7]=(...c)=>e.onDrop&&e.onDrop(...c)),onDragover:t[8]||(t[8]=(...c)=>e.onDragOver&&e.onDragOver(...c)),onDragleave:t[9]||(t[9]=(...c)=>e.onDragLeave&&e.onDragLeave(...c))},[e.isDraggble(e.leftFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:h.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:c=>e.onMouseOverForOverflowText(c,h.prop,h.label),onMouseleave:c=>e.onMouseLeaveForOverflowText(c,h.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(h.label),45,g0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",v0,[(0,l.createVNode)(p,{onClick:c=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=c=>e.onMouseOverForTip(c,e.unFixedText)),onMouseleave:t[2]||(t[2]=c=>e.onMouseLeaveForTip(c))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"]),(0,l.createVNode)(p,{onClick:c=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=c=>e.onMouseOverForTip(c,e.fixedRightText)),onMouseleave:t[4]||(t[4]=c=>e.onMouseLeaveForTip(c))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"])])],40,h0))),128))])):(0,l.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",y0,[e.isShowNotFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",b0,(0,l.toDisplayString)(e.unFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unFixedColumns,h=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...c)=>e.onDragStart&&e.onDragStart(...c)),onDragend:t[15]||(t[15]=(...c)=>e.onDragEnd&&e.onDragEnd(...c)),onDrop:t[16]||(t[16]=(...c)=>e.onDrop&&e.onDrop(...c)),onDragover:t[17]||(t[17]=(...c)=>e.onDragOver&&e.onDragOver(...c)),onDragleave:t[18]||(t[18]=(...c)=>e.onDragLeave&&e.onDragLeave(...c))},[e.isDraggble(e.unFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:h.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:c=>e.onMouseOverForOverflowText(c,h.prop,h.label),onMouseleave:c=>e.onMouseLeaveForOverflowText(c,h.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(h.label),45,w0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",x0,[(0,l.createVNode)(p,{onClick:c=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=c=>e.onMouseOverForTip(c,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=c=>e.onMouseLeaveForTip(c)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"]),(0,l.createVNode)(p,{onClick:c=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=c=>e.onMouseOverForTip(c,e.fixedRightText)),onMouseleave:t[13]||(t[13]=c=>e.onMouseLeaveForTip(c))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"])])],40,S0))),128))])):(0,l.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",N0,[e.isShowRightFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",C0,(0,l.toDisplayString)(e.rightFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.rightFixedColumns,h=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...c)=>e.onDragStart&&e.onDragStart(...c)),onDragend:t[24]||(t[24]=(...c)=>e.onDragEnd&&e.onDragEnd(...c)),onDrop:t[25]||(t[25]=(...c)=>e.onDrop&&e.onDrop(...c)),onDragover:t[26]||(t[26]=(...c)=>e.onDragOver&&e.onDragOver(...c)),onDragleave:t[27]||(t[27]=(...c)=>e.onDragLeave&&e.onDragLeave(...c))},[e.isDraggble(e.rightFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(d,{class:"checkbox-item",label:h.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:c=>e.onMouseOverForOverflowText(c,h.prop,h.label),onMouseleave:c=>e.onMouseLeaveForOverflowText(c,h.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(h.label),45,k0)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",E0,[(0,l.createVNode)(p,{onClick:c=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=c=>e.onMouseOverForTip(c,e.unFixedText)),onMouseleave:t[20]||(t[20]=c=>e.onMouseLeaveForTip(c))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"]),(0,l.createVNode)(p,{onClick:c=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=c=>e.onMouseOverForTip(c,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=c=>e.onMouseLeaveForTip(c)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"])])],40,z0))),128))])):(0,l.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Pl=Ye(u0,[["render",_0]]),T0=class{scope;constructor(e){this.scope=e}async load(e,t,r,a,n,o,s){if(!t)return{totalSize:0,page:[]};if(Array.isArray(t)){let i=(r-1)*a,m=i+a;m>t.length&&(m=t.length);const p=t.slice(i,m);return{totalSize:t.length,page:p}}if(typeof t=="function")return await Reflect.apply(t,null,[r,a,n,o,s]);const u=je(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(We(n)&&(0,l.isReactive)(n)&&(n=(0,l.toRaw)(n)),await Reflect.apply(u,null,[t,r,a,n,o,s]))}};function $0(){return new T0(et())}var B0=class{scope;constructor(e){this.scope=e}async load(e){let t=null;const r=je("tableSetting",this.scope);return typeof r=="function"&&(t=await Reflect.apply(r,null,["load",e])),t}save(e,t){const r=je("tableSetting",this.scope);typeof r=="function"&&Reflect.apply(r,null,["save",e,t])}remove(e){const t=je("tableSetting",this.scope);typeof t=="function"&&Reflect.apply(t,null,["remove",e])}};function io(){return new B0(et())}var V0=Symbol.for("TableStateKey"),so={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},uo={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},fn={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},M0={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function P0(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let m=o.substring(u+1,i);if(/^\d+$/.test(m)){let p=parseInt(m);if(s==0){let f=o.substring(0,u);a=a[f][p]}else a=a[p];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(a=a[o])}return a}function Yl(e,t){return e.filter(r=>{for(let a in t)if(t[a]!==P0(r,a))return!1;return!0})}var A0={...xe,...$e,...so,...uo,...fn,...M0};function I0(e,t,r){return{props:A0,emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(a,n){const{locale:o,toLocaleRefs:s}=(0,Ie.useFoxI18n)(t),u=s(a,["loadText","noMoreText"]),i=(0,l.ref)(),{emitEvent:m,broadcast:p,exposeApi:f}=Te({componentName:e,validateHandler:{getValue(...J){return C.value}},get props(){return a},context:n,get templateRefProxy(){return i.value}},a.prop??n.attrs.name),d=e,T=(0,l.computed)(()=>({[d]:!0})),z=(0,l.computed)(()=>({[`${d}__setting`]:!0})),h=(0,l.computed)(()=>({[`${d}__footer`]:!0,[`${d}__footer__${a.footerAlign}`]:!0})),c=(0,l.computed)(()=>({[`${d}__pagination`]:!0,[`${d}__pagination__${a.paginationAlign}`]:!0})),g=(0,l.shallowRef)({}),v=(0,l.computed)(()=>({...g.value,...a.params??{},...a.baseParams??{}})),S=(0,l.ref)(a.infiniteLoad===!0?0:a.pageIndex),F=(0,l.ref)(a.pageSize),L=de(a.infiniteLoad);L||((0,l.watch)(()=>a.pageIndex,J=>{S.value=J}),(0,l.watch)(()=>a.pageSize,J=>{F.value=J}),(0,l.watch)([S,F],([J,ae],[ie,ce])=>{ae!==ce&&(S.value=1,J=1),A(a.data,J,ae,v.value)}));const M=()=>Array.isArray(a.data)?!0:de(a.autoLoad);M()&&(0,l.watch)([()=>a.data,v],async([J,ae],[ie,ce])=>{M()&&(J!==ie&&($=!0),!(!Array.isArray(J)&&Je(J,ie)&&Je(ae,ce))&&(L?(S.value=0,D.value=!0,C.value=[],H()):S.value===1?A(J,S.value,F.value,ae):S.value=1))},{deep:!0});const q=J=>{S.value=J,m("page-index-change",J)},P=J=>{F.value=J,m("page-size-change",J)},D=(0,l.ref)(!0),I=(0,l.ref)(0),C=(0,l.ref)(),K=$0();let $=!0;const b=Pe((0,l.computed)(()=>a.appearLoad),"appearLoad",Me.Near,J=>de(J)),A=async(J,ae,ie,ce,Be)=>{try{if(Be===!0){if(!D.value)return!1;const be=await K.load("table",J,ae,ie,ce,$,o.value);return I.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,C.value,be.page),setTimeout(()=>{m("loaded-data")},250),(C.value?.length??0)>=I.value)||be.page.length<ie?(D.value=!1,!1):!0}else{const be=await K.load("table",J,ae,ie,ce,$,o.value);return I.value=be.totalSize,C.value=be.page??[],setTimeout(()=>{m("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),I.value=0,C.value=[]}finally{$=!1}return!1};let B=!1;const H=async()=>{if(!B){if(B=!0,!D.value){B=!1;return}S.value+=1,await A(a.data,S.value,F.value,v.value,!0),B=!1}},R=(J={},ae=!1)=>new Promise(async ie=>{g.value={...(0,l.toRaw)(J??{})},ae||(S.value=a.pageIndex??1),L===!0?(S.value=0,C.value=[],D.value=!0,await H()):await A(a.data,S.value,F.value,v.value),ie()}),U=()=>{I.value=0,C.value=[],L===!0&&(S.value=0,D.value=!0)};let _=!1;const O=()=>{_||(_=!0,R())},W=(0,l.ref)(null);if(L===!0){let J=null;const ae=()=>{W.value&&(J=new IntersectionObserver(ce=>{let Be=!1;for(let be of ce)if(be.intersectionRatio>0){Be=!0;break}Be&&H()}),J.observe(W.value))},ie=()=>{!J||!W.value||(J.unobserve(W.value),J=null)};(0,l.onMounted)(ae),(0,l.onBeforeUnmount)(ie)}M()&&!b.value&&R();const E=(0,l.ref)(null);(0,l.provide)(V0,{currentRow:E});const j=(J,ae)=>{E.value=J,m("current-change",J,ae)},Y=(J,ae,ie)=>{m("row-click",J,ae,ie),de(a.rowClickSelectable)===!0&&Ne?.value.toggleRowSelection(J)},k=[],X=(J,ae)=>{if(m("expand-change",J,ae),de(a.uniqueExpansion))if(Array.isArray(ae)&&ae.length==0){const ie=k.length;k.splice(0,ie)}else{k.forEach(ce=>{ce!==J&&Ne?.value.toggleRowExpansion(ce,!1)});const ie=k.length;k.splice(0,ie,J)}},Z=n.attrs.id??a.prop??n.attrs.name,ne=io(),le=(0,l.ref)([]);let oe=[];const Q=()=>({srcColumnPropertyList:oe.map(J=>({...J})),columnPropertyList:le.value}),re=J=>{le.value=[...J],y()},V=async()=>{const J=await ne.load(Z);J&&(le.value=J)},y=()=>{ne.save(Z,le.value)},N=()=>{ne.remove(Z)};V();const x=J=>J?J.type?J.type:J.label?J.prop:"":"",G=(J,ae={})=>{for(let ie in ae){const ce=ae[ie];typeof ce!="function"&&(J[ie]=ce)}},ee=J=>{const ae=J?J():[],ie=new Map;if(oe=[],ae.forEach(ce=>{const Be=ce;if(!Be.props)return;const be=x(Be.props);ie.set(be,Be);const we={label:"",prop:""};G(we,Be.props),oe.push(we)}),le.value.length===oe.length){const ce=[];for(let Be of le.value){const be=x(Be),we=ie.get(be);if(!we)return ae;if(Be.visible===!1)continue;const at=we;at.props.fixed=Be.fixed,ce.push(at)}return ce}return ae},te=(0,l.shallowRef)(new Map),ue=({row:J,column:ae,rowIndex:ie,columnIndex:ce})=>{const Be=`${ie}_${ae.property}`,be=`${ie}_${ce}`;let we=te.value.get(Be);return we||(we=te.value.get(be)),typeof we=="string"?we:""},fe=J=>J?ae=>{const ie=[];let ce=ue(ae);return ce&&ie.push(ce),ce=ce=typeof J=="function"?J(ae):J,ce&&ie.push(ce),ie.length===0?"":ie.join(" ")}:ue,me=(J=!1)=>{te.value.forEach((ae,ie)=>{ve(ie,ae,J)})},ve=(J,ae,ie=!1)=>{const ce=`${J}_item`;ie?(p.clearPersistantMessage(),Array.isArray(ae)?p.emitToChildren({name:J},"setCellClassNames",[]):p.emitToChildren({name:ce},"setCustomClassName","")):Array.isArray(ae)?p.emitToChildren({name:J,cachePolicy:"Persistant",uniqueId:ce},"setCellClassNames",ae):p.emitToChildren({name:ce,cachePolicy:"Persistant",uniqueId:ce},"setCustomClassName",ae)},ke=(J,ae,ie)=>{const ce=`${J}_${ae}`;ie?(te.value.set(ce,ie),ve(ce,ie)):(te.value.delete(ce),ve(ce,"",!0)),(0,l.triggerRef)(te)},Oe=J=>{me(!0),te.value.clear(),J.forEach(ae=>{const ie=`${ae.rowIndex}_${ae.column}`;Array.isArray(ae.children)?te.value.set(ie,ae.children):typeof ae.cellClassName=="string"&&te.value.set(ie,ae.cellClassName)}),me(),(0,l.triggerRef)(te)},Ge=()=>{me(),te.value.clear(),(0,l.triggerRef)(te)},Xe=(0,l.shallowRef)(new Map),Tt=({rowIndex:J})=>{const ae=`${J}`;return Xe.value.get(ae)??""},Jt=J=>J?ae=>{const ie=[];let ce=Tt(ae);return ce&&ie.push(ce),ce=typeof J=="function"?J(ae):J,ce&&ie.push(ce),ie.length===0?"":ie.join(" ")}:Tt,To=(J,ae)=>{const ie=`${J}`;ae?Xe.value.set(ie,ae):Xe.value.delete(ie),(0,l.triggerRef)(Xe)},$o=()=>{Xe.value.clear(),(0,l.triggerRef)(Xe)},Ne=(0,l.ref)();return f({clearSelection:()=>Ne?.value.clearSelection(),getSelectionRows:()=>Ne?.value.getSelectionRows(),toggleRowSelection:(J,ae)=>{Ne?.value.toggleRowSelection(J,ae)},toggleRowSelectionByProp:(J,ae)=>{if(!C.value)return;const ie=Yl(C.value,J);ie.length!==0&&ie.forEach(ce=>{Ne?.value.toggleRowSelection(ce,ae)})},toggleAllSelection:()=>{Ne?.value.toggleAllSelection()},toggleRowExpansion:(J,ae)=>{Ne?.value.toggleRowExpansion(J,ae)},toggleRowExpansionByProp:(J,ae)=>{if(!C.value)return;const ie=Yl(C.value,J);ie.length!==0&&ie.forEach(ce=>{Ne?.value.toggleRowExpansion(ce,ae)})},setCurrentRow:J=>{Ne?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!C.value)return;const ae=Yl(C.value,J);ae.length!==0&&Ne?.value.setCurrentRow(ae[0])},getCurrentRow:()=>E.value,clearSort:()=>{Ne?.value.clearSort()},clearFilter:J=>{Ne?.value.clearFilter(J)},doLayout:()=>{Ne?.value.doLayout()},sort:(J,ae)=>{Ne?.value.sort(J,ae)},scrollTo:(J,ae)=>{Ne?.value.scrollTo(J,ae)},setScrollTop:J=>{Ne?.value.setScrollTop(J)},setScrollLeft:J=>{Ne?.value.setScrollLeft(J)},loadData:R,clearData:U,getData(){return C.value},getTotalSize(){return I.value},getPageIndex(){return S.value},getPageSize(){return F.value},getColumnSetting:Q,setColumnSetting:re,removeColumnSetting:N,setCellClassName:ke,setCellClassNames:Oe,clearCellClassName:Ge,setRowClassName:To,clearRowClassName:$o}),()=>{const J={...Ue(n.attrs),onCurrentChange:j,onRowClick:Y,onExpandChange:X,data:C.value,ref:Ne,class:T.value,"cell-class-name":fe(a.cellClassName),"row-class-name":Jt(a.rowClassName)},ae={};if(n.slots.default&&(ae.default=()=>ee(n.slots.default)),n.slots.append&&(ae.append=n.slots.append),n.slots.empty&&(ae.empty=n.slots.empty),L===!0){const we=[];if(D.value){const $t=(0,l.h)(Ve.Loading,{class:`${d}__infinite-icon`});we.push($t);const Dl=(0,l.h)("span",{class:`${d}__infinite-text`},[u.loadText.value]);we.push(Dl)}else{const $t=(0,l.h)("span",{class:`${d}__infinite-text`},[u.noMoreText.value]);we.push($t)}const at=(0,l.h)("div",{ref:W,class:`${d}__infinite`},we);ae.append=()=>at}const ie=(0,l.h)(w.ElTable,J,ae),ce=[];if(ce.push(ie),!L){let we=null;if(typeof n.slots.pagination=="function"?we=n.slots.pagination():a.showPagination&&(we=(0,l.h)(w.ElPagination,{class:c.value,total:I.value,pageSize:F.value,"onUpdate:pageSize":P,pageSizes:a.pageSizes,currentPage:S.value,"onUpdate:currentPage":q,hideOnSinglePage:a.hideOnSinglePage,layout:a.paginationLayout,size:a.paginationSize,background:a.paginationBackground,appendSizeTo:a.paginationAppendSizeTo,teleported:a.paginationTeleported,popperClass:a.paginationPopperClass,prevText:a.paginationpPrevText,prevIcos:a.paginationPrevIcon,nextText:a.paginationNextText,pnextIcon:a.paginationNextIcon,disabled:a.paginationDisabled})),a.showSetting){const at=[];we&&at.push(we);const $t=(0,l.h)(w.ElIcon,{class:z.value},{default:()=>(0,l.h)(Ve.Setting)}),Dl=(0,l.h)(Pl,{...gt(a,fn),tableRef:{getColumnSetting:Q,setColumnSetting:re,removeColumnSetting:N}},{default:()=>$t});at.push(Dl);const Bo=(0,l.h)("div",{class:h.value},at);ce.push(Bo)}else we&&ce.push(we)}const Be={default:()=>ce},be={...Le(a,so,uo,fn),ref:i};return a.prop&&(be.prop=`${a.prop}_item`),be.contentClass=`${d}__wrap`,be.errorMarkClass="is-table-error",b.value&&M()&&(be["appear-listen"]=!0,be.onAppear=O),r(be,Be)}}}}var{componentName:L0,create:F0,scope:R0}=se("table-item"),D0=F0(I0(L0,R0,Re)),jn=D0;function kt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function jt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function O0(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var q0=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function H0(){return new q0(et())}function co(e,t,r){return t===r?!0:!(t===null||r===null||kt(e,t)!==kt(e,r)||jt(e,t)!==jt(e,r))}function j0(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;let n=null;for(let o of a){let s=!1;if(r==="text")s=kt(e,o)===t;else if(r==="item")s=co(e,o,t);else{let u=jt(e,o);u==null&&(u=kt(e,o)),s=u===t}if(s){n=o;break}}return n}function K0(e){return{text:e,value:e}}function W0(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var fo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}},Y0={...xe,...$e,...fo};function U0(e,t,r,a){return{inheritAttrs:!0,props:Y0,emits:["change","update:modelValue","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)(null),h=(0,l.ref)(null),c=($,b,A,B=!0)=>{const H=j0(n,$,b,A);if(H===null){if(h.value===null)return;h.value=null,z.value=null,B&&(d("update:modelValue",null),d("change",null));return}if(!co(n,H,h.value)){z.value=$;const R=(0,l.toRaw)(H);h.value=R;let U=null;n.valueType==="text"?U=kt(n,R):n.valueType==="item"?U=R:U=jt(n,R),B&&(d("update:modelValue",U),d("change",U))}},g=(0,l.ref)([]),v=Pe((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,$=>de($)),S=H0(),F=async($,b)=>{if($){const A=await S.load("radio",$,b);A.length>0&&(typeof A[0]=="string"?g.value=A.map(B=>K0(B)):g.value=A)}};(0,l.watch)([()=>n.source,()=>n.params],async([$,b])=>{F($,b)},{immediate:!v.value});let L=!1;const M=()=>{L||(L=!0,F(n.source,n.params))};(0,l.watch)([()=>g.value,()=>n.modelValue],([$,b])=>{c(b,n.valueType,$,!1),d("setValue",b)});const q=e,P=(0,l.computed)(()=>({[q]:!0,[`is-${n.direction}`]:!0})),D=$=>{c($,"value",g.value,!0)};let I=ye(n,"hintText"),C=ye(n,"hintVisible");const K=($,b)=>{typeof n.sourceFilter=="function"&&($=$.filter(n.sourceFilter));const A=[];return $.forEach((B,H)=>{const R=jt(n,B),U=kt(n,B);let _=O0(n,B);i.value===!0&&(_=i.value),p.value===!0&&(_=p.value);const O=W0(n,B,H)??{},W=`${R}_${H}`,E={...O,key:W,value:R,size:n.size,border:de(n.border)};_&&(E.disabled=_),n.itemType==="button"?A.push((0,l.h)(w.ElRadioButton,E,{default:()=>[U]})):typeof b=="function"?A.push((0,l.h)(w.ElRadio,E,{default:()=>b(B)})):A.push((0,l.h)(w.ElRadio,E,{default:()=>[U]}))}),A};return T({setDisabled:$=>{u.value=$},setReadonly:$=>{m.value=$}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(z.value,o.slots,g.value);const $={...Ue(o.attrs),class:P.value,disabled:i.value||p.value,modelValue:z.value,"text-color":n.textColor,fill:n.fill,onChange:D},b=[],A={};o.slots.options?A.default=o.slots.options:A.default=()=>K(g.value,o.slots.text);const B=(0,l.h)(w.ElRadioGroup,$,A);b.push(B);const H={default:()=>b};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const R={...Le(n,fo),ref:s,hintText:I.value,hintVisible:C.value};return n.prop&&(R.prop=`${n.prop}_item`),v.value&&(R["appear-listen"]=!0,R.onAppear=M),r(R,H)}}}}var{componentName:G0,create:X0,scope:Z0}=se("radio-item"),J0=X0(U0(G0,Z0,Re,He)),Kn=J0;function Et(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Q0(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var ec=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function tc(){return new ec(et())}function mo(e,t,r){return t===r?!0:!(t===null||r===null||Et(e,t)!==Et(e,r)||wt(e,t)!==wt(e,r))}function lc(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(o=>{for(let s of a){let u=!1;if(r==="text")u=Et(e,s)===o;else if(r==="item")u=mo(e,s,o);else{let i=wt(e,s);i==null&&(i=Et(e,s)),u=i===o}if(u){n.push(s);break}}}),n}function nc(e){return{text:e,value:e}}function rc(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var po={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1},separator:{type:[String],required:!1,default:", "}},ac={...xe,...$e,...po};function oc(e,t,r,a){return{inheritAttrs:!0,props:ac,emits:["change","update:modelValue","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)([]),h=(0,l.ref)([]),c=($,b,A,B=!0)=>{const H=lc(n,$,b,A);if(H===null){if(h.value===null||h.value.length===0)return;z.value=[],h.value=[],B&&(d("update:modelValue",[]),d("change",[]));return}let R=!0;if(H.length!==h.value.length)R=!1;else for(let U=0;U<H.length;U++){const _=H[U],O=h.value[U];if(!mo(n,_,O)){R=!1;break}}if(!R){h.value=H;let U=[],_=[];H.forEach(W=>{U.push(wt(n,W)),n.valueType==="text"?_.push(Et(n,W)):n.valueType==="item"?_.push(W):_.push(wt(n,W))}),z.value=U;const O=(0,l.toRaw)(_);B&&(d("update:modelValue",O),d("change",O))}},g=(0,l.ref)([]),v=Pe((0,l.computed)(()=>n.appearLoad),"appearLoad",Me.Near,$=>de($)),S=tc(),F=async($,b)=>{if($){const A=await S.load("checkbox",$,b);A.length>0&&(typeof A[0]=="string"?g.value=A.map(B=>nc(B)):g.value=A)}};(0,l.watch)([()=>n.source,()=>n.params],async([$,b])=>{F($,b)},{immediate:!v.value});let L=!1;const M=()=>{L||(L=!0,F(n.source,n.params))};(0,l.watch)([()=>g.value,()=>n.modelValue],([$,b])=>{c(b,n.valueType,$,!1),d("setValue",b)});const q=e,P=(0,l.computed)(()=>({[q]:!0,[`is-${n.direction}`]:!0})),D=$=>{c($,"value",g.value,!0)};let I=ye(n,"hintText"),C=ye(n,"hintVisible");const K=($,b)=>{typeof n.sourceFilter=="function"&&($=$.filter(n.sourceFilter));const A=[];return $.forEach((B,H)=>{const R=wt(n,B),U=Et(n,B);let _=Q0(n,B);i.value===!0&&(_=i.value),p.value===!0&&(_=p.value);const O=rc(n,B,H)??{},W=`${R}_${H}`,E={...O,key:W,value:R,size:n.size,border:de(n.border)};_&&(E.disabled=_),n.itemType==="button"?A.push((0,l.h)(w.ElCheckboxButton,E,{default:()=>[U]})):typeof b=="function"?A.push((0,l.h)(w.ElCheckbox,E,{default:()=>b(B)})):A.push((0,l.h)(w.ElCheckbox,E,{default:()=>[U]}))}),A};return T({setDisabled:$=>{u.value=$},setReadonly:$=>{m.value=$}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(z.value,o.slots,g.value,n.separator);const $={...Ue(o.attrs),class:P.value,disabled:i.value||p.value,modelValue:z.value,"text-color":n.textColor,fill:n.fill,max:ze(n.max),min:ze(n.min),onChange:D},b=[],A={};o.slots.options?A.default=o.slots.options:A.default=()=>K(g.value,o.slots.text);const B=(0,l.h)(w.ElCheckboxGroup,$,A);b.push(B);const H={default:()=>b};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const R={...Le(n,po),ref:s,hintText:I.value,hintVisible:C.value};return n.prop&&(R.prop=`${n.prop}_item`),v.value&&(R["appear-listen"]=!0,R.onAppear=M),r(R,H)}}}}var{componentName:ic,create:sc,scope:uc}=se("checkbox-item"),cc=sc(oc(ic,uc,Re,He)),Wn=cc,ho={modelValue:{type:[Number,String],required:!1}},dc={...xe,...$e,...ho};function fc(e,t,r,a){return{props:dc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=ye(n,"modelValue",L=>ze(L),d),h=e,c=(0,l.computed)(()=>({[h]:!0})),g=L=>{d("update:modelValue",L),d("change",L)};let v=ye(n,"hintText"),S=(0,l.ref)(!1);const F=(0,l.ref)();return T({setDisabled:L=>{u.value=L},setReadonly:L=>{m.value=L}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(z.value,o.slots);const L={...Ue(o.attrs),ref:F,class:c.value,readonly:p.value||i.value,modelValue:z.value,onChange:g},M={},q=[],P=(0,l.h)(w.ElRate,L,M);q.push(P);const D={default:()=>q};D.label=o.slots.default,D.fixedPreTip=o.slots.fixedPreTip,D.fixedTip=o.slots.fixedTip;const I={...Le(n,ho),ref:s,hintText:v.value,hintVisible:S.value};return n.prop&&(I.prop=`${n.prop}_item`),r(I,D)}}}}var{componentName:mc,create:pc,scope:hc}=se("rate-item"),gc=pc(fc(mc,hc,Re,He)),Yn=gc,go={modelValue:{type:[Boolean,String,Number],required:!1},activeValue:{type:[Boolean,String,Number],required:!1,default:()=>!0},inactiveValue:{type:[Boolean,String,Number],required:!1,default:()=>!1},activeText:{type:[String],required:!1},inactiveText:{type:[String],required:!1}};({...xe,...$e,...go});function vc(e,t,r,a){return{props:{},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),{emitEvent:d,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,M=>{z.value!==M&&(z.value=M)});const h=e,c=(0,l.computed)(()=>({[h]:!0})),g=M=>{z.value=M,d("update:modelValue",M),d("change",M)};let v=ye(n,"hintText"),S=ye(n,"hintVisible");const F=(0,l.ref)();T({setDisabled:M=>{u.value=M},setReadonly:M=>{m.value=M}});const L=(0,l.computed)(()=>{let M=`${z.value}`;return n.inactiveText&&z.value===n.inactiveValue?M=n.inactiveText:n.activeText&&z.value===n.activeValue&&(M=n.activeText),M});return()=>{if(f.value==="on"&&(p.value||i.value))return a(L.value,o.slots);const M={...Ue(o.attrs),ref:F,class:c.value,readonly:p.value,disabled:i.value,"active-value":n.activeValue,"inactive-value":n.inactiveValue,"active-text":n.activeText,"inactive-text":n.inactiveText,modelValue:z.value,"onUpdate:modelValue":g},q={},P=[],D=(0,l.h)(w.ElSwitch,M,q);P.push(D);const I={default:()=>P};I.label=o.slots.default,I.fixedPreTip=o.slots.fixedPreTip,I.fixedTip=o.slots.fixedTip;const C={...Le(n,go),ref:s,hintText:v.value,hintVisible:S.value};return n.prop&&(C.prop=`${n.prop}_item`),r(C,I)}}}}var{componentName:yc,create:bc,scope:Sc}=se("switch-item"),wc=bc(vc(yc,Sc,Re,He)),Un=wc,vo={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},xc=class{scope;constructor(e){this.scope=e}async load(e,t,r,a,n){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const o=je(e,this.scope);return o===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await o(t,r,a))}};function Nc(){return new xc(et())}var yo={modelValue:{type:[String,Number,Boolean,Array],required:!1},maxLength:{type:[String,Number]}},Cc={...xe,...$e,...yo,...vo};function zc(e,t,r,a){return{props:Cc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:m,readonly:p,browse:f}=Fe(n),d=(0,l.ref)(!1),{emitEvent:T,exposeApi:z}=Te({componentName:e,get readonly(){return p.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),h=ye(n,"modelValue",null,T),c=e,g=(0,l.computed)(()=>({[c]:!0})),v=B=>{h.value=B,T("update:modelValue",B),T("change",B)};let S=ye(n,"hintText"),F=(0,l.ref)(!1);const L=B=>{let H=B.target.value;d.value=!0,he(S.value)||(F.value=!0),T("focus",H,B)},M=B=>{setTimeout(()=>{F.value&&(F.value=!1),d.value=!1},0);let H=B.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),P.value||T("blur",H,B)},q=()=>{T("clear","")},P=(0,l.ref)(!1),D=B=>{P.value=B,T("visible-change",B),B||T("selected")},I=(0,l.ref)([]),C=Nc(),K=async(B,H)=>{try{I.value=await C.load("treeselect",B,H)}catch(R){console.error(R)}};(0,l.watch)([()=>n.data,()=>n.params,()=>n.lazy],([B,H,R])=>{!B||R||K(B,H)},{immediate:!0});let $=null;n.lazy&&(typeof n.load=="function"?$=n.load:$=async(B,H)=>{let R={};n.params&&Object.assign(R,n.params),B&&Object.assign(R,B),H(await C.load("treeselect",n.data,R,!0))});let b={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const A=(0,l.ref)();return z({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},setDisabled:B=>{u.value=B},setReadonly:B=>{m.value=B}}),()=>{if(f.value==="on"&&(p.value||i.value))return a(h.value,o.slots);const B={...Ue(o.attrs),ref:A,class:g.value,disabled:i.value||p.value,modelValue:h.value,"onUpdate:modelValue":v,lazy:n.lazy,props:b,onClear:q,onFocus:L,onBlur:M,onVisibleChange:D};$?B.load=$:B.data=I.value;const H={};o.slots.option&&(H.default=o.slots.option);const R=[],U=(0,l.h)(w.ElTreeSelect,B,H);R.push(U);const _={default:()=>R};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const O={...Le(n,yo,vo),ref:s,hintText:S.value,hintVisible:F.value};return n.prop&&(O.prop=`${n.prop}_item`),r(O,_)}}}}var{componentName:kc,create:Ec,scope:_c}=se("tree-select-item"),Tc=Ec(zc(kc,_c,Re,He)),Gn=Tc,$c={},Bc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Vc(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",Bc,[...t[0]||(t[0]=[(0,l.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var Mc=Ye($c,[["render",Vc]]),{componentName:H5,create:Pc,scope:j5}=se("group-setting"),Ac={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Ic=Pc({components:{FoxPopover:w.ElPopover,FoxCheckbox:w.ElCheckbox,FoxCheckboxGroup:w.ElCheckboxGroup,FoxButton:w.ElButton,FoxIcon:w.ElIcon,DragIcon:Mc,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...Ac},emits:["change"],setup(e,{emit:t,attrs:r,expose:a}){let n=null;const o=(0,l.ref)([]),s=io(),u=W=>W.length>1,i=()=>{const W=[];o.value=[...o.value].map((E,j)=>(E.visible!==!1&&W.push(E.prop),{...E,sortIndex:j})),o.value.length===W.length?h.value=!0:W.length>0&&(c.value=!0),S.value=W},m=W=>{let E=null;if(typeof W=="string")E=document.querySelectorAll(`.fox-group[prop="${W}"] > div > .fox-item[prop]`);else if(W&&typeof W=="object"){const Y=W.$el??W;typeof Y.querySelectorAll=="function"&&(E=Y.querySelectorAll(".fox-item[prop]"))}if(!E)return[];const j=[];return E.forEach(Y=>{const k=Y.querySelector(".label--string");let X="";k&&(X=k.textContent??"");const Z=Y.getAttribute("prop")??"",ne=window.getComputedStyle(Y,null).getPropertyValue("display");j.push({label:X,prop:Z,sortIndex:0,visible:ne!=="none"})}),j},p=()=>{if(!n){const W=m(e.groupRef??e.groupProp);if(W.length===0)return!1;n=W}return!0},f=async(W=!1)=>{const E=await s.load(e.groupProp),j=Y=>{if(!Y||!n)return;const k=n.map(X=>({...X}));Array.isArray(E)&&E.forEach(X=>{k.some(Z=>{if(Z.prop===X.prop){const ne=Z.label;return Object.assign(Z,X),Z.label=ne,!0}return!1})}),o.value=k.sort((X,Z)=>X.sortIndex-Z.sortIndex),i(),W&&T(!1)};n?j(!0):vl(p,e.initDelay,5,50,!1,j)},d=()=>{o.value=(n??[]).map(W=>({...W})),i(),T()},T=(W=!0)=>{W&&s.save(e.groupProp,o.value),t("change",o.value.map(E=>({...E})))},z=(0,l.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),h=(0,l.ref)(!1),c=(0,l.ref)(!1),g=W=>{const E=[];o.value.forEach(j=>{W&&E.push(j.prop),j.visible=W}),h.value=!1,c.value=!1,o.value.length===E.length?h.value=!0:E.length>0&&(c.value=!0),S.value=E,T()},v=()=>{d()},S=(0,l.ref)([]),F=W=>{o.value.forEach(j=>{j.visible=W.indexOf(j.prop)!==-1}),h.value=!1,c.value=!1;const E=o.value.length;W.length===E?h.value=!0:W.length>0&&(c.value=!0),T()},L=()=>{f()};(0,l.onMounted)(()=>{f(!0)});const M={currentRow:null,index:null},q=W=>W?W.dataset&&W.dataset.role==="row"?W:W.tagName.toLowerCase()!=="body"?(W=W.parentElement,q(W)):null:null,P=W=>{const E=W.currentTarget;E&&E.dataset&&(M.index=E.dataset.index)},D=W=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},I=W=>{const E=W.currentTarget;W.relatedTarget;const j=q(E);j&&(W.preventDefault(),M.currentRow&&M.currentRow!==j&&M.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),M.currentRow=j)},C=W=>{W.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},K=W=>{const E=W.currentTarget,j=q(E);if(!j)return;W.preventDefault();const Y=Number(M.index),k=Number(j.dataset.index);if(Y!==k){if(Y<k){const X=o.value[Y];o.value.splice(Y,1),o.value.splice(k,0,X)}else{const X=o.value[Y];o.value.splice(Y,1),o.value.splice(k+1,0,X)}i(),T()}},$=W=>{const E=o.value[W];o.value.splice(W,1),o.value.splice(0,0,E),i(),T()},b=W=>{const E=o.value[W];o.value.splice(W,1),o.value.push(E),i(),T()};a({refresh:()=>{n=null,f(!1)}});const A=new Map;let B=null;function H(W){const E=document.createRange();return E.setStart(W,0),E.setEnd(W,W.childNodes.length),E.getBoundingClientRect().width}return{attrs:r,itemPropertyList:o,isDraggble:u,isCheckAll:h,isIndeterminate:c,handleCheckAllChange:g,handleReset:v,checkedValue:S,handleCheckChange:F,onShow:L,onDragStart:P,onDragEnd:D,onDragOver:I,onDragLeave:C,onDrop:K,checkboxLabelStyle:z,toTop:$,toBottom:b,onMouseOverForOverflowText:(W,E,j)=>{const Y=W.currentTarget;if(Y){const k=Math.floor(Y.offsetWidth);if(Math.floor(H(Y))>k){let X=A.get(E);if(X){if(X===B)return;Ee.hide(X)}X=Ee.show(Y,j,{type:"text",placement:"top",closeOnClick:!1}),A.set(E,X),B=X}}},onMouseLeaveForOverflowText:(W,E)=>{const j=A.get(E);j&&(Ee.hide(j),j===B&&(B=null))},onMouseOverForTip:(W,E)=>{const j=W.currentTarget;j&&(B&&Ee.hide(B),B=Ee.show(j,E,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:W=>{B&&(Ee.hide(B),B=null)}}}}),Lc={class:"fox-group-setting"},Fc={class:"fox-group-setting__header"},Rc={class:"fox-group-setting__body"},Dc={class:"fox-group-setting__body-list","data-role":"container"},Oc=["data-index","draggable"],qc=["onMouseover","onMouseleave"],Hc={class:"tools-item"};function jc(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),i=(0,l.resolveComponent)("DragIcon"),m=(0,l.resolveComponent)("Download"),p=(0,l.resolveComponent)("FoxIcon"),f=(0,l.resolveComponent)("FoxCheckboxGroup"),d=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(d,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Lc,[(0,l.createElementVNode)("div",Fc,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=T=>e.isCheckAll=T),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",Rc,[(0,l.createVNode)(f,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=T=>e.checkedValue=T),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Dc,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.itemPropertyList,T=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:T.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":T.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...z)=>e.onDragStart&&e.onDragStart(...z)),onDragend:t[6]||(t[6]=(...z)=>e.onDragEnd&&e.onDragEnd(...z)),onDrop:t[7]||(t[7]=(...z)=>e.onDrop&&e.onDrop(...z)),onDragover:t[8]||(t[8]=(...z)=>e.onDragOver&&e.onDragOver(...z)),onDragleave:t[9]||(t[9]=(...z)=>e.onDragLeave&&e.onDragLeave(...z))},[e.isDraggble(e.itemPropertyList)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",label:T.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:z=>e.onMouseOverForOverflowText(z,T.prop,T.label),onMouseleave:z=>e.onMouseLeaveForOverflowText(z,T.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(T.label),45,qc)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",Hc,[(0,l.createVNode)(p,{onClick:z=>e.toTop(T.sortIndex),onMouseover:t[1]||(t[1]=z=>e.onMouseOverForTip(z,e.toTopText)),onMouseleave:t[2]||(t[2]=z=>e.onMouseLeaveForTip(z)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"]),(0,l.createVNode)(p,{onClick:z=>e.toBottom(T.sortIndex),onMouseover:t[3]||(t[3]=z=>e.onMouseOverForTip(z,e.toBottomText)),onMouseleave:t[4]||(t[4]=z=>e.onMouseLeaveForTip(z))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(m)]),_:1},8,["onClick"])])],40,Oc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Xn=Ye(Ic,[["render",jc]]),Kc={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},Wc=class{scope;constructor(e){this.scope=e}async load(e,t,r,a,n){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const o=je(e,this.scope);return o===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await o(t,r,a))}};function Yc(){return new Wc(et())}var Uc={...Bn,...Kc};function Gc(e,t,r){return{props:Uc,setup(a,n){const o=e,s=(0,l.computed)(()=>({[o]:!0})),u=(0,l.ref)([]),i=Yc(),m=async(S,F)=>{try{u.value=await i.load("tree",S,F)}catch(L){console.error(L)}},p=(0,l.shallowRef)({}),f=(0,l.computed)(()=>({...p.value,...a.params??{}}));(Array.isArray(a.data)?!0:a.lazy?!1:de(a.autoLoad))&&(0,l.watch)([()=>a.data,()=>f.value],([S,F])=>{S&&m(S,F)},{immediate:!0,deep:!0});let T=null;a.lazy&&(typeof a.load=="function"?T=a.load:T=async(S,F)=>{let L={};a.params&&Object.assign(L,a.params),S&&Object.assign(L,S),F(await i.load("treeselect",a.data,L,!0))});const z={label:a.textKey,value:a.valueKey,children:a.childrenKey,isLeaf:a.leafKey,class:a.classKey,disabled:a.disabledKey,...a.props??{}},h=(S={})=>new Promise(async F=>{p.value={...(0,l.toRaw)(S??{})},await m(a.data,f.value),F()}),c=function(S,F){if(typeof a.filterNodeMethod=="function")return a.filterNodeMethod(S,F);if(!a.filterKeyword)return!0;const L=`${F[z.label]}`,M=`${S}`;return L.includes(M)},g=(0,l.ref)();(0,l.watch)(()=>a.filterKeyword,S=>{g.value.filter(S)});const v=S=>(...F)=>{const L=g.value[S];return Reflect.apply(L,g.value,[...F])};return n.expose({loadData:h,filter:v("filter"),updateKeyChildren:v("updateKeyChildren"),getCheckedNodes:v("getCheckedNodes"),setCheckedNodes:v("setCheckedNodes"),getCheckedKeys:v("getCheckedKeys"),setCheckedKeys:v("setCheckedKeys"),setChecked:v("setChecked"),getHalfCheckedNodes:v("getHalfCheckedNodes"),getHalfCheckedKeys:v("getHalfCheckedKeys"),getCurrentKey:v("getCurrentKey"),getCurrentNode:v("getCurrentNode"),setCurrentKey:v("setCurrentKey"),setCurrentNode:v("setCurrentNode"),getNode:v("getNode"),remove:v("remove"),append:v("append"),insertBefore:v("insertBefore"),insertAfter:v("insertAfter")}),()=>{const S={...Ue(n.attrs),class:s.value,lazy:a.lazy,props:z,ref:q=>g.value=q};T?S.load=T:S.data=u.value,S["filter-node-method"]=c;const F=[],L=(0,l.h)(w.ElTree,S,n.slots);F.push(L);const M={default:()=>F};return(0,l.h)(r,{...gt(a,Bn)},M)}}}}var{componentName:Xc,create:Zc,scope:Jc}=se("tree-item"),Qc=Zc(Gc(Xc,Jc,Bl)),Zn=Qc,e2={...xe,...$e,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1}};function t2(e,t,r,a){return{props:e2,emits:["click","focus","blur","change"],setup(n,o){const{itemTemplateRef:s,disabled:u,readonly:i}=Fe(n),{emitEvent:m,exposeApi:p}=Te({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return u.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:f}=(0,Ie.useFoxI18n)(t),d=f(n,["placeholder"]),T=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,$=>{T.value=$,m("change",$)});const z=(0,l.computed)(()=>({[`${e}`]:!0})),h=(0,l.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!u.value&&he(T.value),"is-disabled":u.value,"is-readonly":i.value})),c=Pe((0,l.computed)(()=>n.textAlign),"textAlign"),g=(0,l.computed)(()=>{const $={};return c.value&&($["text-align"]=c.value),$}),v=(0,l.computed)(()=>!he(n.modelValue)||o.slots.main?!0:!!he(n.desc)),S=(0,l.computed)(()=>he(T.value)?d.placeholder.value:T.value),F=(0,l.computed)(()=>!he(n.desc)||o.slots.sub),L=(0,l.computed)(()=>({[`${e}__sub`]:!0})),M=(0,l.computed)(()=>{const $={};return c.value&&($["text-align"]=c.value),$}),q=()=>{m("focus",T.value)},P=()=>{m("blur",T.value)},D=(0,l.computed)(()=>({[`${e}__append`]:!0,"is-disabled":u.value,"is-readonly":i.value})),I=$=>{u.value==!0||i.value==!0||m("click")},C=(0,l.computed)(()=>n.icon??r),K=(0,l.computed)(()=>({action:!0}));return p(),()=>{const $=[];if(typeof o.slots.content=="function"){const O=o.slots.content();$.push(O)}else{const O=[];if(v.value){const E={tabIndex:0,class:h.value,style:g.value,onFocus:q,onBlur:P};let j=null;o.slots.main?j=(0,l.h)("view",E,[o.slots.main(S.value)]):j=(0,l.h)("view",E,[S.value]),O.push(j)}if(F.value){const E={tabIndex:0,class:L.value,style:M.value,onFocus:q,onBlur:P};let j=null;o.slots.sub?j=(0,l.h)("view",E,[o.slots.sub(n.desc)]):j=(0,l.h)("view",E,[n.desc]),O.push(j)}const W=(0,l.h)("view",{class:z.value,onClick:I},O);$.push(W)}const b=[],A=pe(n.iconSize);let B=o.slots.icon;if(!B){const O={width:A,height:A,class:["action-icon"]};B=(0,l.h)(C.value,O)}const H=(0,l.h)("view",{class:K.value,onClick:I},{default:()=>[B]});b.push(H);const R=(0,l.h)("view",{class:D.value},{default:()=>b});$.push(R);const U={default:()=>$};U.label=o.slots.default,U.prepend=o.slots.prepend,U.append=o.slots.append,U.fixedPreTip=o.slots.fixedPreTip,U.fixedTip=o.slots.fixedTip;const _={...gt(n,$e,xe),ref:s};return n.prop&&(_.prop=`${n.prop}_item`),a(_,U)}}}}var{componentName:l2,create:n2,scope:r2}=se("link-item"),a2=n2(t2(l2,r2,Ve.ArrowRight,Re)),Jn=a2;var o2=["aria-labelledby"],i2=[(0,l.createElementVNode)("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],s2=(0,l.defineComponent)({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},i2,14,o2))}});var u2=["aria-labelledby"],c2=[(0,l.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512zm0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333zM448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6zm51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067zm8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],d2=(0,l.defineComponent)({__name:"Tips",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},c2,14,u2))}});var f2=["aria-labelledby"],m2=[(0,l.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],p2=(0,l.defineComponent)({__name:"Success",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},m2,14,f2))}});var h2=["aria-labelledby"],g2=[(0,l.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)],v2=(0,l.defineComponent)({__name:"Right",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},g2,14,h2))}});var y2=["aria-labelledby"],b2=[(0,l.createElementVNode)("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],S2=(0,l.defineComponent)({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},b2,14,y2))}});var w2=["aria-labelledby"],x2=[(0,l.createElementVNode)("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Al=(0,l.defineComponent)({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},x2,14,w2))}});var N2=["aria-labelledby"],C2=[(0,l.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)],z2=(0,l.defineComponent)({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},C2,14,N2))}});var k2=["aria-labelledby"],E2=[(0,l.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938l111.502-111.502z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],_2=(0,l.defineComponent)({__name:"Failure",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},E2,14,k2))}});var T2=["aria-labelledby"],$2=[(0,l.createElementVNode)("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],B2=(0,l.defineComponent)({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},$2,14,T2))}});var V2=["aria-labelledby"],M2=[(0,l.createElementVNode)("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],P2=(0,l.defineComponent)({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},M2,14,V2))}});var A2=["aria-labelledby"],I2=[(0,l.createElementVNode)("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1)],L2=(0,l.defineComponent)({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,m)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},I2,14,A2))}});var Qn={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},$r=(e,t)=>t[e.textKey],Mt=(e,t)=>t[e.valueKey],F2=(e,t)=>t[e.visibleKey],Br=(e,t)=>t[e.disabledKey],R2=(e,t)=>{const r=t[e.doitKey];return de(r)},D2=(e,t)=>{const r=t[e.numKey];return r==null?null:ze(t[r])},Vr=(e,t,r)=>{const a=e.itemOptions;return typeof a=="function"?a(t,r):a||null};function O2(e,t,r,a,n,o=!1){return{props:Qn,emits:["update:modelValue","change","click"],setup(s,{slots:u,emit:i}){const m=(0,l.computed)(()=>{const V={};return V[`${e}`]=!0,V}),p=(0,l.computed)(()=>{const V={};return V[`${e}__titles`]=!0,V[`${s.direction}`]=!0,s.align&&(V[`${s.align}`]=!0),s.scroll===!0&&(V.scrollable=!0),s.shape&&(V[`${s.shape}`]=!0),s.showScrollArrow?(k.value===!0&&(V["has-left-scroll-arrow "]=!0),X.value===!0&&(V["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(V["has-navigation"]=!0),V}),f=(0,l.computed)(()=>({})),d=(0,l.computed)(()=>{if(!s.gutter)return 0;const V=pe(s.gutter);return V<=0?0:V}),T=(0,l.ref)(s.modelValue);(0,l.watch)(()=>s.modelValue,V=>{T.value!==V&&(T.value=V,U(!1))});const z=(0,l.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),h=(0,l.computed)(()=>{const V={};return g.value||(V.display="none"),V}),c=(0,l.ref)(),g=(0,l.ref)(!1),v=()=>{S(!g.value)},S=V=>{const y=V;y?(g.value=y,setTimeout(()=>{z.value["fox-tabs-bar__popup--show"]=!0,z.value["fox-tabs-bar__popup--hide"]=!1},0)):(z.value["fox-tabs-bar__popup--show"]=!1,z.value["fox-tabs-bar__popup--hide"]=!0,c.value?c.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},F=(0,l.ref)(),L=(0,l.ref)([]),M=(V,y)=>{L.value[y]=V},q=V=>y=>{M(y,V)},P=(V,y)=>{const N=F.value,x=L.value;if(!N||!x||!x[V])return;const G=x[V];let ee=0;s.direction==="vertical"?ee=G.offsetTop-(N.offsetHeight-G.offsetHeight)/2:ee=G.offsetLeft-(N.offsetWidth-G.offsetWidth)/2,D(N,ee,y?0:.3,s.direction)},D=(V,y,N,x)=>{let G=0;const ee=x==="horizontal"?V.scrollLeft:V.scrollTop,te=N===0?1:Math.round(N*1e3/16);function ue(){x==="horizontal"?V.scrollLeft+=(y-ee)/te:V.scrollTop+=(y-ee)/te,++G<te&&gn(ue)}ue()},I=(V,y)=>{const N=Mt(s,V),x={};return x[`${e}__titles-item`]=!0,x.disabled=Br(s,V),x.active=N===T.value,s.shape&&(x[`${s.shape}`]=!0),s.ellipsis&&(x.ellipsis=!0),y&&(y.class&&(x[`${y.class}`]=!0),y.disabled===!0&&(x.disabled=y.disabled)),x},C=(V,y)=>{const N={};if(d.value>0){const x=Math.abs(d.value/2);s.direction==="vertical"?(N["margin-top"]=`${x}px`,N["margin-bottom"]=`${x}px`):(N["margin-left"]=`${x}px`,N["margin-right"]=`${x}px`)}return y&&y.style&&Object.assign(N,y.style),N},K=(V,y)=>`${Mt(s,V)??y}`,$=(V,y)=>{const N=Mt(s,V),x={};x[`${e}__popup-item`]=!0,x.disabled=Br(s,V),x.active=N===T.value,s.shape&&(x[`${s.shape}`]=!0);const G=Vr(s,V,y);return G&&G.disabled===!0&&(x.disabled=G.disabled),x},b=(0,l.computed)(()=>(s.data??[]).filter(V=>F2(s,V)!==!1)),A=(V,y)=>{const N=Mt(s,V);if(i("click",V,y),T.value==N)return;const x=()=>{T.value=N,s.scroll&&P(y,!1),i("update:modelValue",N),i("change",V,y)};if(typeof s.beforeChange=="function"){const G=s.beforeChange(V,y);aa(G)?G.then(ee=>{ee!==!1&&x()}).catch(()=>{x()}):G!==!1&&x()}else x()},B=(V,y)=>function(){A(V,y)},H=(V,y)=>{A(V,y),S(!1)},R=(V,y)=>function(){H(V,y)},U=V=>{if(!Array.isArray(s.data)||!s.scroll)return;Y()&&oe();const y=s.data.findIndex(N=>Mt(s,N)===T.value);y!==-1&&P(y,V)},_=()=>{Y()||Q()};(0,l.watch)(()=>s.data,()=>{setTimeout(U,0)}),(0,l.onMounted)(()=>{U(!0)}),(0,l.onBeforeUnmount)(()=>{_()});const O=(V,y)=>{if(u.item)return u.item({item:V,index:y});const N=Vr(s,V,y),x=[];if(u.text){const ee=u.text({item:V,index:y});x.push(ee)}else{const ee=[];if(N?.doit===!0||R2(s,V)){const me=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});ee.push(me)}const te=N?.num??D2(s,V);if(te){let me="";const ve=ze(te);ve>=100?me="99+":me=`${ve}`;const ke=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[me]);ee.push(ke)}const ue={class:`${e}__titles-item-text`};ee.push($r(s,V));const fe=(0,l.h)("view",ue,ee);x.push(fe)}const G=(0,l.h)("view",{class:`${e}__titles-item-line`});return x.push(G),(0,l.h)("view",{ref:q(y),class:I(V,N),style:C(V,N),key:K(V,y),onClick:B(V,y)},x)},W=()=>{const V=u.default?u.default():[];if(V.length===0)for(let y=0;y<b.value.length;y++){const N=b.value[y],x=O(N,y);V.push(x)}return(0,l.h)("view",{ref:F,class:p.value,style:f.value},V)},E=()=>{let V=null;return u.navigation?V=u.navigation():V=(0,l.h)(r),(0,l.h)("view",{class:`${e}__navigation`,onClick:v},[V])},j=()=>{const V=[];for(let y=0;y<b.value.length;y++){const N=b.value[y];let x=null;u.popupItem?x=u.popupItem({item:N,index:y}):x=$r(s,N);const G=(0,l.h)("view",{class:$(N,y),key:K(N,y),onClick:R(N,y)},[x]);V.push(G)}return(0,l.h)("view",{class:z.value,style:h.value},V)},Y=()=>s.showScrollArrow&&s.direction=="horizontal",k=(0,l.ref)(!1),X=(0,l.ref)(!1),Z=V=>{const y=F.value,N=L.value;if(!(!y||!N))if(V==="left"){const x=y.scrollLeft;let G=x;for(let ee=0;ee<N.length;ee++){const te=N[ee].offsetLeft;if(x-te<0)break;G=te}D(y,G,.3,"horizontal")}else{const x=y.scrollLeft;let G=x,ee=y.offsetWidth;for(let te=N.length-1;te>=0;te--){const ue=N[te].offsetLeft+N[te].offsetWidth;if(ue-x<y.offsetWidth){G+=ee-ue;break}ee=ue}D(y,G,.3,"horizontal")}},ne=Ke(()=>{const V=F.value;if(!V)return;let y=V.scrollLeft>0;y!==k.value&&(k.value=y);let N=V.scrollWidth-V.scrollLeft>V.offsetWidth;N!==X.value&&(X.value=N)},50),le=V=>{ne()},oe=()=>{const V=F.value;V&&(ne(),V.addEventListener("scroll",le))},Q=()=>{const V=F.value;V&&V.removeEventListener("scroll",le)},re=V=>{if(V==="left"&&k.value!==!0||V==="right"&&X.value!==!0)return null;let y=null;return V==="left"?u.leftArrow?y=u.leftArrow():y=(0,l.h)(a):u.rightArrow?y=u.rightArrow():y=(0,l.h)(n),(0,l.h)("view",{class:[`${e}__scroll-arrow`,V],onClick:()=>{Z(V)}},[y])};return()=>{const V=[],y=W();if(V.push(y),Y()){const N=re("left");N&&V.push(N);const x=re("right");x&&V.push(x)}else if(s.showQuickNavigation){const N=E();V.push(N);const x=j();V.push(x)}return(0,l.h)("view",{class:m.value},V)}}}}var{create:q2,componentName:H2,scope:j2}=se("tabs-bar"),K2=q2(O2(H2,j2,S2,z2,v2,!1)),Il=K2,bo=Symbol("TabsStatesKey"),er={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},Mr=10;function So(e,t){return e>t&&e>Mr?"horizontal":t>e&&t>Mr?"vertical":""}function Xt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Zt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",r=()=>e.direction==="horizontal",a=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=So(e.offsetX,e.offsetY))}),start:(s=>{if(a(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:a,isVertical:t,isHorizontal:r,state:e}}function W2(){const e=(0,l.ref)(0),t=(0,l.ref)(0),r=(0,l.ref)(0),a=(0,l.ref)(0),n=(0,l.ref)(0),o=(0,l.ref)(0),s=(0,l.ref)(0),u=(0,l.ref)(0),i=(0,l.ref)(0),m=(0,l.ref)(0),p=(0,l.ref)(""),f=()=>p.value==="vertical",d=()=>p.value==="horizontal",T=()=>{s.value=0,u.value=0,i.value=0,m.value=0,p.value="",r.value=0};return{move:(c=>{if(c.touches){const g=c.touches[0];s.value=g.clientX-e.value,u.value=g.clientY-t.value,n.value=g.clientX,o.value=g.clientY}else{const g=c;s.value=g.clientX-e.value,u.value=g.clientY-t.value,n.value=g.clientX,o.value=g.clientY}i.value=Math.abs(s.value),m.value=Math.abs(u.value),a.value=Date.now()-r.value,p.value||(p.value=So(i.value,m.value))}),start:(c=>{if(T(),c.touches){const g=c.touches[0];e.value=g.clientX,t.value=g.clientY}else{const g=c;e.value=g.clientX,t.value=g.clientY}r.value=Date.now()}),reset:T,startX:e,startY:t,startTime:r,duration:a,moveX:n,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:m,direction:p,isVertical:f,isHorizontal:d}}var Y2=15,U2=300,G2=200;function X2(e,t,r=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*r}function Pr(e,t=0,r,a,n=G2){r==="end"?e.style.transition=`transform ${n}ms linear`:e.style.transition="transform 0ms linear",a==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}var Z2=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,t,r,a=1){this.onStart=e,this.onMove=t,this.onEnd=r,this.momentumReduceRatio=a,this.isTouch=Xt()}open(e){this.el=e;const t=Zt(),r=(a,n,o)=>{const s={delta:a,direction:n,type:o};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=a=>{if(this.moving)return;t.start(a),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const n={delta:0,type:"start",direction:this.direction};this.onStart(n)},this.touchmove=a=>{if(!this.moving)return;t.move(a);let n=0;if(this.direction==="horizontal"){if(t.isVertical())return;n=t.state.deltaX}else{if(t.isHorizontal())return;n=t.state.deltaY}r(n,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let a=0;if(this.direction==="horizontal"){if(t.isVertical()){this.moving=!1;return}a=t.state.deltaX}else{if(t.isHorizontal()){this.moving=!1;return}a=t.state.deltaY}const n=t.state.duration;n<U2&&Math.abs(a)>Y2?(a=X2(a,n,this.momentumReduceRatio),r(a,this.direction,"end")):r(a,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function J2(e,t,r,a=1){return new Z2(e,t,r,a)}function Q2(e,t,r=!1){return{props:er,emits:["update:modelValue","change"],setup(a,{emit:n,slots:o,expose:s}){const u=(0,l.shallowRef)([]),i={current:(0,l.ref)(a.modelValue??""),direction:(0,l.ref)(a.direction),transition:a.transition,tabWidth:(0,l.ref)(-1),tabHeight:(0,l.ref)(-1),add:P=>{const D={name:P};i.current.value===P&&(D.loaded=!0),u.value.push(D),(0,l.triggerRef)(u)},remove:P=>{const D=u.value.findIndex(I=>I.name===P);D!==-1&&u.value.splice(D,1)},isLoaded:P=>{if(!a.lazy)return!0;const D=u.value.findIndex(I=>I.name===P);return D!==-1?i.current.value?u.value[D].loaded??!1:D===0:!1}};(0,l.provide)(bo,i);const m=P=>{const D=u.value.findIndex(I=>I.name===P);D!==-1&&(u.value[D].loaded=!0,(0,l.triggerRef)(u))};(0,l.watch)([()=>a.modelValue,()=>a.direction],([P,D])=>{i.current.value!==P&&(i.current.value=P??"",m(P??"")),i.direction.value!==D&&(i.direction.value=D)});const p=(0,l.ref)(null),f=(0,l.ref)(null),d=(0,l.computed)(()=>({[e]:!0,[`${a.direction}`]:!0})),T=(0,l.computed)(()=>{const P={};if(a.width){const D=Se(a.width);D&&(P.width=D)}if(a.height){const D=Se(a.height);D&&(P.height=D)}return P});let z=!0;const h=(0,l.computed)(()=>{const P={};if(a.transition===!1)return P;const D=u.value.length;if(D<=0)return P;const I=u.value.findIndex(C=>C.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(P.height=`${D*i.tabHeight.value}px`,I!==-1&&(P.transform=`translate(0, -${I*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(P.width=`${D*i.tabWidth.value}px`,I!==-1&&(P.transform=`translate(-${I*i.tabWidth.value}px, 0)`)),z&&(z=!1,P.transition="transform 0s ease"),P}),c={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},g=P=>{const D=u.value.length,I=u.value.findIndex(C=>C.name===i.current.value);c.moved=0,P.direction==="vertical"?(c.min=-1*(i.tabHeight.value*(D-1)+i.tabHeight.value/4),c.max=i.tabHeight.value/4,c.start=-I*i.tabHeight.value,c.itemDistance=i.tabHeight.value):(c.min=-1*(i.tabWidth.value*(D-1)+i.tabWidth.value/4),c.max=i.tabWidth.value/4,c.start=-I*i.tabWidth.value,c.itemDistance=i.tabWidth.value)},v=P=>{const D=f.value;if(!D)return;let I=c.start+P.delta;if(I>c.max?I=c.max:I<c.min&&(I=c.min),P.type==="move")Pr(D,I,"move",P.direction,300);else if(P.type==="end"){let C=Math.floor(Math.abs(I)*1/c.itemDistance);const K=Math.abs(I)%c.itemDistance;c.start>I?K>=c.itemDistance*c.triggerAutoMoveRatio&&(C+=1):K>c.itemDistance-c.itemDistance*c.triggerAutoMoveRatio&&(C+=1),I=-1*C*c.itemDistance,Pr(D,I,"end",P.direction,300),c.moved=I;const $=u.value[C].name;i.current.value=$??"",m($??""),n("update:modelValue",$)}},S=()=>{},F=()=>{if(!p.value)return;const P=xl(p.value);i.tabWidth.value=P.width,i.tabHeight.value=P.height},L=wa(F,250);let M=null,q=null;return(0,l.onMounted)(()=>{a.transition!==!1&&p.value&&(F(),window.ResizeObserver&&(q=new window.ResizeObserver(L),q.observe(p.value)),a.draggle&&(M=J2(g,v,S),M.open(f.value)))}),(0,l.onBeforeUnmount)(()=>{q&&(q.disconnect(),q=null),M&&M.close()}),s({doLayout(){F()}}),()=>{const P=(0,l.h)("view",{class:`${e}__panes`,style:h.value,ref:f},[o?.default?.()]);return(0,l.h)("view",{class:d.value,style:T.value,ref:p},[P])}}}}var{create:e3,componentName:t3,scope:l3}=se("tabs-container"),n3=e3(Q2(t3,l3,!1)),Ll=n3,r3={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function a3(e,t,r){return{props:r3,setup(a,{emit:n,slots:o}){const s=(0,l.inject)(bo);(0,l.onMounted)(()=>{s.add(a.paneKey)}),(0,l.onBeforeUnmount)(()=>{s.remove(a.paneKey)});const u=(0,l.computed)(()=>{const p=[e];return s.direction.value==="vertical"?p.push("is-vertical"):p.push("is-horizontal"),s.transition===!1?p.push("is-no-transition"):p.push("is-transition"),p}),i=(0,l.computed)(()=>{const p={};return s.transition===!1?(s.current.value!==a.paneKey&&(p.display="none"),p):(s.direction.value==="vertical"&&s.tabHeight.value>0?p.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(p.width=`${s.tabWidth.value}px`),p)}),m=(0,l.computed)(()=>a.loaded!=null?de(a.loaded):s.isLoaded(a.paneKey));return()=>{let p=[];if(m.value)p=o?.default?.()??[];else if(o.empty)p=o.empty();else{const f={class:`${e}__empty-icon`},d=(0,l.h)(a.emptyIcon??r,f),T=(0,l.h)("view",{class:`${e}__empty-text`},[a.emptyText??"Loading"]),z=(0,l.h)("view",{class:`${e}__empty`},[d,T]);p.push(z)}return(0,l.h)("view",{class:u.value,style:i.value,prop:a.paneKey},p)}}}}var{create:o3,componentName:i3,scope:s3}=se("tabs-pane"),u3=o3(a3(i3,s3,Al)),tr=u3,c3={...Qn,...er,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function d3(e,t,r,a){return{props:c3,emits:["update:modelValue","change"],setup(n,{emit:o,slots:s}){const u=e,i=(0,l.computed)(()=>{const h=[`${u}`];return n.direction==="vertical"?h.push("vertical-tabbar"):h.push("horizontal-tabbar"),h}),m=(0,l.computed)(()=>{const h={};if(n.width){const c=Se(n.width);c&&(h.width=c)}if(n.height){const c=Se(n.height);c&&(h.height=c)}return h}),p=(0,l.computed)(()=>[`${u}__bar`]),f=(0,l.computed)(()=>[`${u}__container`]),d=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,h=>{d.value!==h&&(d.value=h)});const T=h=>{o("change",h)},z=h=>{d.value!==h&&(d.value=h,o("update:modelValue",h))};return()=>{const{getChildren:h}=Tl(s.default),c=h(),g=[];if(Array.isArray(n.data))g.push(...n.data);else for(let P=0;P<c.length;P++){const D=c[P].props??{},I={text:D.label??"",value:D["pane-key"]??D.paneKey??""};g.push(I)}const v={};for(let P in s)P!=="default"&&(v[P]=s[P]);const S=gt(n,Qn);Object.assign(S,{data:g,class:p.value,modelValue:d.value,direction:n.direction,onChange:T,"onUpdate:modelValue":z});const F=(0,l.h)(r,S,v),L={default:()=>c},M=gt(n,er);Object.assign(M,{class:f.value,modelValue:d.value,onChange:T,"onUpdate:modelValue":z});const q=(0,l.h)(a,M,L);return(0,l.h)("view",{class:i.value,style:m.value},[F,q])}}}}var{create:f3,componentName:m3,scope:p3}=se("tabs-frame"),h3=f3(d3(m3,p3,Il,Ll)),lr=h3,g3={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function v3(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ar(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ir(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function y3(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Ul(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Lr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Fr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Gl(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var b3=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(Array.isArray(t))return t;if(typeof t=="function")return await Reflect.apply(t,null,[r]);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(We(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await Reflect.apply(a,null,[t,r]))}};function S3(){return new b3(et())}function w3(e,t,r,a){return{props:{...g3},emits:["update:modelValue","change","loaded-data"],setup(n,{slots:o,emit:s}){const u=e,i=S3(),m=(0,l.ref)([]),p=(0,l.computed)(()=>m.value.filter(E=>y3(n,E)!==!1)),f=(0,l.ref)(-1),d=()=>{const E=n.modelValue,j=p.value.findIndex(Y=>Ar(n,Y)===E);f.value!==j&&(f.value=j,n.scroll&&O(j,!1))};(0,l.watch)([()=>n.modelValue,p],()=>{d()});const T=E=>f.value===E,z=E=>{if(E<0&&E>=p.value.length)return!1;const j=p.value[E],Y=(Gl(n,j,E)??{}).status??Ul(n,j);return T(E)||Y},h=(0,l.computed)(()=>{const E={[u]:!0};return n.mode?E[`is-${n.mode}`]=!0:n.direction&&(E[`is-${n.direction}`]=!0),n.scroll&&(E["is-scroll"]=!0),E}),c=(0,l.computed)(()=>({})),g=(E,j,Y,k,X)=>{const Z={[`${u}__step`]:!0};return X&&(Z[`${X}`]=!0),Z[`${v.value}`]=!0,k&&(Z["is-doit"]=!0),E===f.value?Z["is-active"]=!0:j==="done"?Z["is-done"]=!0:j==="error"?Z["is-error"]=!0:j==="half"?Z["is-half"]=!0:Y?Z["is-disabled"]=!0:Z["is-normal"]=!0,Z},v=(0,l.computed)(()=>{let E=n.align;if(!E){if(n.mode==="simple")return"start";n.direction==="vertical"?E="start":E="center"}return E}),S=(E,j={})=>{const Y={...j};if(v.value==="start"&&E===p.value.length-1)Y.flex="0 0 auto";else if(n.step){const k=typeof n.step=="number"||yn(n.step)?Se(n.step):n.step;n.direction==="vertical"?Y.height=k:Y.width=k}else Y.flex="1 1 100%";return Y},F=(E,j)=>{let Y={};if(j<p.value.length-1){const k=j+1;z(j)&&z(k)?n.direction==="vertical"?Y.height="100%":Y.width="100%":Y.opacity="0"}return Y},L=E=>p.value.length-1===E,M=(E,j)=>{if(n.clickNavigatePolicy==="disabled"||(n.clickNavigatePolicy==="only-back"||n.clickNavigatePolicy==="only-back-reset")&&j>f.value||f.value===j)return;const Y=f.value,k=j;f.value=j,n.scroll&&O(j,!1);const X=Ar(n,E);s("update:modelValue",X),s("change",X,{fromIndex:Y,currentIndex:k,item:E,items:p.value,clickNavigatePolicy:n.clickNavigatePolicy})},q=(0,l.ref)(!0),P=async(E,j)=>{try{const Y=await i.load("stesbar",E,j);Array.isArray(Y)&&(m.value=Y),q.value=!1}catch(Y){console.error("[FoxUI] Load StepsBar Data Fail",Y),m.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,l.watch)([()=>n.data,()=>n.params],async([E,j])=>{E&&P(E,j)},{immediate:!0});const D=(E,j,Y,k,X)=>{let Z=null;if(o.icon)Z=o.icon({item:E,index:j,status:k});else if(k==="done"){const ne={};n.iconSize&&(ne.width=n.iconSize,ne.height=n.iconSize),Z=(0,l.h)(n.icon??r,ne)}else Z=(0,l.h)("span",{},[Y??`${j+1}`]);return(0,l.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{X||M(E,j)}},[Z])},I=(E,j,Y)=>(0,l.h)("view",{class:"fox-steps-bar__line"},[(0,l.h)("i",{class:"fox-steps-bar__line-inner",style:F(E,j)})]),C=()=>{let E=null;if(o.markIcon)E=o.markIcon();else{const j={};n.iconSize&&(j.width=n.markIconSize,j.height=n.markIconSize),E=(0,l.h)(n.markIcon??a,j)}return(0,l.h)("view",{class:"fox-steps-bar__mark"},[E])},K=(E,j,Y,k,X)=>{const Z=[];if(!L(j)){const le=I(E,j,k);Z.push(le)}const ne=D(E,j,Y,k,X);return Z.push(ne),(0,l.h)("view",{class:"fox-steps-bar__head"},Z)},$=(E,j,Y,k)=>{let X=null;return o.main?X=o.main({item:E,index:j,status:Y}):X=v3(n,E),(0,l.h)("view",{class:"fox-steps-bar__main",onClick:()=>{k||M(E,j)}},[X])},b=(E,j,Y)=>{let k=null;return o.sub?(k=o.sub({item:E,index:j,status:Y}),(0,l.h)("view",{class:"fox-steps-bar__sub"},[k])):null},A=(E,j)=>{const Y=Gl(n,E,j)??{},k=Y.status??Ul(n,E);let X=Ir(n,E);Y.disabled===!0&&(X=!0),n.disabled===!0&&(X=!0);const Z=Y.label??Fr(n,E),ne=[],le=D(E,j,Z,k,X);le&&ne.push(le);const oe=$(E,j,k,X);if(oe&&ne.push(oe),!L(j)){const N=I(E,j,k);N&&ne.push(N)}const Q=(0,l.h)("view",{class:"fox-steps-bar__head"},ne),re=Y.class,V=Y.style??{};let y=Lr(n,E);return Y.doit===!0&&(y=!0),(0,l.h)("view",{ref:_(j),class:g(j,k,X,y,re),style:S(j,V)},[Q])},B=(E,j)=>{const Y=Gl(n,E,j)??{},k=Y.status??Ul(n,E);let X=Ir(n,E);Y.disabled===!0&&(X=!0),n.disabled===!0&&(X=!0);const Z=Y.label??Fr(n,E),ne=[],le=n.layout;for(let V of le)if(V==="head"){const y=K(E,j,Z,k,X);ne.push(y)}else if(V==="main"){const y=$(E,j,k,X);ne.push(y)}else if(V==="sub"){const y=b(E,j,k);ne.push(y)}else if(V==="mark"){const y=C();ne.push(y)}const oe=Y.class,Q=Y.style??{};let re=Lr(n,E);return Y.doit===!0&&(re=!0),(0,l.h)("view",{ref:_(j),class:g(j,k,X,re,oe),style:S(j,Q)},ne)},H=(0,l.ref)(),R=(0,l.ref)([]),U=(E,j)=>{R.value[j]=E},_=E=>j=>{U(j,E)},O=(E,j)=>{const Y=H.value,k=R.value;if(!Y||!k||!k[E])return;const X=k[E];let Z=0;n.direction==="vertical"?Z=X.offsetTop-(Y.offsetHeight-X.offsetHeight)/2:Z=X.offsetLeft-(Y.offsetWidth-X.offsetWidth)/2,W(Y,Z,j?0:.3,n.direction)},W=(E,j,Y,k)=>{let X=0;const Z=k==="horizontal"?E.scrollLeft:E.scrollTop,ne=Y===0?1:Math.round(Y*1e3/16);function le(){k==="horizontal"?E.scrollLeft+=(j-Z)/ne:E.scrollTop+=(j-Z)/ne,++X<ne&&gn(le)}le()};return()=>{let E=[];if(n.mode==="simple")for(let Y=0;Y<p.value.length;Y++){const k=p.value[Y],X=A(k,Y);E.push(X)}else for(let Y=0;Y<p.value.length;Y++){const k=p.value[Y],X=B(k,Y);E.push(X)}const j={ref:H,class:h.value,style:c.value};return E.length===0&&typeof o.default=="function"&&(E=o.default()),(0,l.h)("view",j,E)}}}}var{componentName:x3,create:N3,scope:C3}=se("steps-bar"),z3=N3(w3(x3,C3,P2,L2)),nr=z3,k3=Symbol.for("PageWrapperKey");function E3(e,t){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(r,a){wn(!0);const n={};(0,l.provide)(k3,n);const o=m=>{typeof n.beforeClose=="function"&&n.beforeClose()},s=(0,l.ref)(!0),u=m=>{s.value=m},i=(0,l.computed)(()=>{const m={};return r.height&&(m["--fox-dialog-item-body-height"]=Se(r.height)),m});return()=>{const m={...a.attrs,style:i.value,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},p=["fox-dialog-item "];r.hideHeader&&p.push("hide-header"),r.class&&p.push(r.class),m.class=p.join(" ");const f={};return typeof a.slots.default=="function"&&(f.default=a.slots.default),(0,l.h)(w.ElDialog,m,f)}}}}var{componentName:_3,create:T3,scope:$3}=se("dialog-item"),B3=T3(E3(_3,$3)),rr=B3,Pt=0,Rr="fox-overflow-hidden",Dr=()=>dt?document.body:{classList:[]},V3=e=>[()=>{if(e())try{!Pt&&Dr().classList.add(Rr),Pt++}catch{}},()=>{if(e()&&Pt)try{Pt--,!Pt&&Dr().classList.remove(Rr)}catch{}}],M3={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:P3,create:A3}=se("overlay"),I3=A3({props:{...M3},emits:["click","update:visible"],setup(e,{emit:t}){const[r,a]=V3(()=>e.lockScroll),n=(0,l.computed)(()=>({[P3]:!0,[e.overlayClass]:!0})),o=(0,l.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,l.watch)(()=>e.visible,u=>{u?r():a()}),{classes:n,style:o,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function L3(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"overlay-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),onClick:t[0]||(t[0]=(0,l.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,l.normalizeStyle)(e.style)},[(0,l.renderSlot)(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}var Fl=Ye(I3,[["render",L3]]),F3={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},wo=2e3,Or=wo,R3=(e,t)=>({components:t,props:{...F3},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(r,{emit:a}){const n=(0,l.reactive)({zIndex:r.zIndex,showSlot:!0,closed:r.closeable}),o=(0,l.computed)(()=>({[e]:!0,round:r.round,[`fox-popup--${r.position}`]:!0,[`fox-popup--${r.position}--safebottom`]:r.position==="bottom"&&r.safeAreaInsetBottom,[r.popClass]:!0})),s=(0,l.computed)(()=>({zIndex:n.zIndex,transitionDuration:`${r.duration}s`,...r.style})),u=(0,l.computed)(()=>r.transition?r.transition:`fox-popup-slide-${r.position}`),i=()=>{r.zIndex!==wo&&(Or=Number(r.zIndex)),a("update:visible",!0),n.zIndex=++Or,r.destroyOnClose&&(n.showSlot=!0),a("open")},m=()=>{a("update:visible",!1),a("close"),r.destroyOnClose&&setTimeout(()=>{n.showSlot=!1},+r.duration*1e3)},p=h=>{a("click-pop",h)},f=h=>{h.stopPropagation(),a("click-close-icon",h),a("update:visible",!1)},d=h=>{a("click-overlay",h),r.closeOnClickOverlay&&a("update:visible",!1)},T=h=>{a("opend",h)},z=h=>{a("closed",h)};return(0,l.watch)(()=>r.visible,h=>{r.visible?i():m()}),(0,l.watch)(()=>r.closeable,h=>{n.closed=h}),{...(0,l.toRefs)(n),popStyle:s,transitionName:u,classes:o,onClick:p,onClickCloseIcon:f,onClickOverlay:d,onOpened:T,onClosed:z}}}),{componentName:D3,create:O3}=se("popup"),q3=O3(R3(D3,{FoxOverLay:Fl,Close:B2}));function H3(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxOverLay"),u=(0,l.resolveComponent)("Close");return(0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,l.openBlock)(),(0,l.createBlock)(s,(0,l.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.popStyle),onClick:t[1]||(t[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?(0,l.renderSlot)(e.$slots,"default",{key:0}):(0,l.createCommentVNode)("",!0),e.closed?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,onClick:t[0]||(t[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:(0,l.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,l.renderSlot)(e.$slots,"close-icon",{},()=>[(0,l.createVNode)(u)])],2)):(0,l.createCommentVNode)("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var ar=Ye(q3,[["render",H3]]),{create:j3}=se("toast"),K3=j3({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let r=null;const a=(0,l.reactive)({mounted:!1});(0,l.onMounted)(()=>{a.mounted=!0});const n=()=>{r&&(clearTimeout(r),r=null)},o=()=>{a.mounted=!1},s=()=>{n(),e.duration&&(r=setTimeout(()=>{o()},e.duration))},u=()=>{e.closeOnClickOverlay&&(o(),t("close"))};e.duration&&s(),(0,l.watch)(()=>e.duration,T=>{T&&s()});const i=(0,l.computed)(()=>e.type!=="text"?!0:!!e.icon),m=()=>{const T=pe(e.iconSize);return(0,l.h)(e.icon,{width:T,height:T,color:e.iconColor})},p=(0,l.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=(0,l.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:a,hide:o,clickCover:u,renderIcon:m,hasIcon:i,toastBodyClass:p,toastIconWrapperClass:f,onAfterLeave:()=>{n(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),W3={key:1,class:"fox-toast-title"},Y3=["innerHTML"];function U3(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.toastBodyClass),style:(0,l.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,l.createElementVNode)("view",{class:"fox-toast-inner",style:(0,l.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(e.toastIconWrapperClass)},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.renderIcon())))],2)):(0,l.createCommentVNode)("",!0),e.title?((0,l.openBlock)(),(0,l.createElementBlock)("div",W3,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Y3)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var or=Ye(K3,[["render",U3]]),mn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},yt=[],Dt=[],xo=e=>{if(e){const t=document.getElementById(e);Dt=Dt.filter(r=>r.id!==e),yt=yt.filter(r=>r!==e),t&&((0,l.render)(null,t),document.body.removeChild(t))}else yt.forEach(t=>{const r=document.getElementById(t);r&&((0,l.render)(null,r),document.body.removeChild(r))}),Dt=[],yt=[]},G3=e=>{const t=document.getElementById(e.id);if(t){const r=Dt.find(n=>n.id===e.id);r?e={...mn,...r,...e}:e={...mn,...e};const a=(0,l.createVNode)(or,e);return(0,l.render)(null,t),(0,l.render)(a,t),_t}},At=e=>{e.unmount=xo;let t;if(e.id){if(t=e.id,yt.find(a=>a===e.id))return G3(e)}else t=new Date().getTime()+"";e={...mn,...e},e.id=t,yt.push(e.id),Dt.push(e);const r=document.createElement("div");return r.id=e.id,(0,l.render)((0,l.createVNode)(or,e),r),document.body.appendChild(r),_t},ll=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),_t={text(e,t={}){if(ll(e))return At({...t,type:"text",msg:e})},success(e,t={}){if(ll(e))return At({icon:p2,...t,msg:e,type:"success"})},fail(e,t={}){if(ll(e))return At({icon:_2,...t,msg:e,type:"fail"})},warn(e,t={}){if(ll(e))return At({icon:d2,...t,msg:e,type:"warn"})},loading(e,t={}){return At({icon:Al,...t,msg:e,type:"loading"})},hide(e){xo(e)},install(e){e.use(or),e.config.globalProperties.$toast=_t}},X3={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Z3=(e,t,r)=>({props:{...X3},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(a,n){const{emitEvent:o}=Ca({context:n}),{toLocaleRefs:s}=(0,Ie.useFoxI18n)(t),u=s(a,["placeholder"]),{slots:i}=n,m=(0,l.reactive)({active:!1}),p=(0,l.computed)(()=>({background:a.background})),f=(0,l.computed)(()=>({background:a.inputBackground})),d=I=>{let C=I.target.value;a.maxLength&&C.length>Number(a.maxLength)&&(C=C.slice(0,Number(a.maxLength))),o("update:modelValue",C,I),o("change",C,I)},T=(0,l.ref)({}),z=I=>{let C=I.target.value;m.active=!0,T.value=a.focusStyle,o("focus",C,I)},h=I=>{setTimeout(()=>{m.active=!1},0);let C=I.target.value;a.maxLength&&C.length>Number(a.maxLength)&&(C=C.slice(0,Number(a.maxLength))),T.value={},o("blur",C,I)},c=I=>{o("update:modelValue","",I),o("change","",I),o("clear","")},g=(0,l.computed)(()=>String(a.modelValue).length>0),v=(0,l.computed)(()=>{const I={};return g.value||(I.display="none"),I}),S=()=>{o("search",a.modelValue)},F=I=>{o("keyup-input",I),I.key.toLocaleUpperCase()==="ENTER"&&S()},L=I=>{o("click-input",I)},M=I=>{o("click-left-icon",a.modelValue,I)},q=(0,l.computed)(()=>({textAlign:a.inputAlign})),P=(0,l.ref)(null);(0,l.onMounted)(()=>{a.autofocus&&P.value.focus()});const D=()=>{const I=[];if(i.leftin){const $=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:M},[i.leftin()]);I.push($)}const C=(0,l.h)("input",{ref:P,class:[`${e}__input-inner`],style:q.value,type:a.inputType,maxlengt:a.maxLength,placeholder:u.placeholder.value,value:a.modelValue,disabled:a.disabled,readonly:a.readonly,onClick:L,onInput:d,onFocus:z,onBlur:h,onkeyup:F});I.push(C);const K=[];if(a.clearable){const $=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:v.value,onClick:c},[(0,l.h)(i?.clear?.()??a.clearIcon??r)]);K.push($)}if(i.rightin){const $=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[i.rightin()]);K.push($)}if(K.length>0){const $=(0,l.h)("view",{class:`${e}__input-inner-right`},K);I.push($)}return(0,l.h)("view",{class:[`${e}__search-input`,`${a.shape}`],style:{...f.value,...T.value}},I)};return()=>{const I=[];if(a.label){const K=(0,l.h)("span",{class:`${e}__search-label`},[a.label]);I.push(K)}if(i.leftout){const K=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[i.leftout()]);I.push(K)}const C=D();if(I.push(C),i.rightout){const K=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[i.rightout()]);I.push(K)}return(0,l.h)("view",{class:`${e}`,style:p.value},I)}}}),{componentName:J3,create:Q3,scope:e4}=se("searchbar"),t4=Q3(Z3(J3,e4,Ve.CircleClose)),ir=t4,l4=/scroll|auto|overlay/i,No=window;function n4(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function r4(e,t=No){let r=e;for(;r&&r!==t&&n4(r);){const{overflowY:a}=window.getComputedStyle(r);if(l4.test(a))return r;r=r.parentNode}return t}function Co(e,t=No){const r=(0,l.ref)();return(0,l.onMounted)(()=>{e.value&&(r.value=r4(e.value,t))}),r}var zo=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a4={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function o4(e,t,r){return{props:{...a4},emits:["scroll-change","load-more","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Ie.useFoxI18n)(t),u=s(a,["pullText","loadText","noMoreText"]),i=(0,l.ref)(),m=Co(i),p=(0,l.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),f=(0,l.computed)(()=>({[e]:!0})),d=v=>v?v.offsetTop+d(v.offsetParent):0,T=()=>{let v=0,S=0,F="down";if(m.value==window){const L=zo();i.value&&(v=d(i.value)+i.value.offsetHeight-L-window.innerHeight),S=L}else{const{scrollHeight:L,clientHeight:M,scrollTop:q}=m.value;v=L-M-q,S=q}return p.beforeScrollTop>S?F="up":F="down",p.beforeScrollTop=S,n("scroll-change",S),v<=a.threshold&&F=="down"},z=()=>{Qr(()=>{if(!T()||!a.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,n("update:modelValue",!0),(0,l.nextTick)(()=>n("load-more"))})},h=()=>{m.value&&m.value.addEventListener("scroll",z,a.useCapture)},c=()=>{m.value&&m.value.removeEventListener("scroll",z,a.useCapture)};(0,l.onMounted)(()=>{h(),a.immediate&&z()}),(0,l.onUnmounted)(()=>{c()});const g=(0,l.ref)(!1);return(0,l.onActivated)(()=>{g.value&&(g.value=!1,h())}),(0,l.onDeactivated)(()=>{g.value=!0,c()}),(0,l.watch)(()=>a.modelValue,v=>{v||(p.isInfiniting=!1)}),()=>{const v=(0,l.h)("view",{class:"fox-infinite__container"},[o?.default?.()]),S=[];if(p.isInfiniting){let L=o?.loading?.()??null;if(!L){let q=o?.loadingIcon?.()??null;q||(q=(0,l.h)(r,{class:["fox-infinite__bottom-box__img"]}));const P=(0,l.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);L=[q,P]}const M=(0,l.h)("view",{class:"fox-infinite__bottom-box"},L);S.push(M)}else if(!a.hasMore){let L=o?.finished?.()??null;L||(L=(0,l.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),S.push(L))}const F=(0,l.h)("view",{class:"fox-infinite__bottom"},S);return(0,l.h)("view",{class:f.value,ref:i},[v,F])}}}}var{componentName:i4,create:s4,scope:u4}=se("infinite-loading"),c4=s4(o4(i4,u4,Al)),sr=c4,d4={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},f4=(e,t,r)=>({props:{...d4},emits:["change","refresh","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Ie.useFoxI18n)(t),u=s(a,["pullingText","loosingText","loadingText"]),i=Zt(),m=(0,l.ref)(),p=Co(m),f=(0,l.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),d=(0,l.computed)(()=>({[e]:!0})),T=(0,l.computed)(()=>{switch(f.status){case"pulling":return o.pulling?"":u.pullingText.value;case"loosing":return o.loosing?"":u.loosingText.value;case"loading":return o.loading?"":u.loadingText.value;default:return""}}),z=(0,l.computed)(()=>({transitionDuration:`${a.duration}s`,transform:f.distance?`translate3d(0,${f.distance}px, 0)`:""})),h=(0,l.computed)(()=>{const q={};return a.headHeight!=50&&(q.height=Se(a.headHeight)),q}),c=q=>{const P=+(a.pullDistance||a.headHeight);let D=q;return q>P&&(q<P*2?D=(q+P)/2:D=P+q/4),Math.round(D)},g=(q,P)=>{const D=+(a.pullDistance||a.headHeight);f.distance=q,P?f.status="loading":q===0?f.status="normal":q<D?f.status="pulling":f.status="loosing",n("change",{status:f.status,distance:q})},v=()=>f.status!=="loading"&&f.status!=="complete",S=()=>p.value==window?zo()==0:p.value&&p.value.scrollTop==0,F=q=>{v()&&(S()?(i.start(q),f.isPullRefresh=!0,f.moving=!0):(f.distance=0,f.isPullRefresh=!1))},L=q=>{v()&&f.moving&&(i.move(q),i.isVertical()&&i.state.deltaY>0&&f.isPullRefresh&&(q.cancelable&&q.preventDefault(),g(c(i.state.deltaY))))},M=()=>{f.moving=!1,f.isPullRefresh&&v()&&i.state.deltaY&&(f.status==="loosing"?(g(+a.headHeight,!0),n("update:modelValue",!0),(0,l.nextTick)(()=>n("refresh"))):g(0)),setTimeout(()=>{i.reset()},0)};return(0,l.watch)(()=>a.modelValue,q=>{q?g(+a.headHeight,!0):g(0)}),()=>{const q=[];let P=null;f.status==="loading"?(P=o?.loading?.()??null,P||(P=(0,l.h)(r,{class:["fox-pull-refresh-container-topbox-icon"]}))):f.status==="pulling"?P=o?.pulling?.()??null:f.status==="loosing"&&(P=o?.loosing?.()??null),P&&q.push(P);const D=(0,l.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[T.value]);q.push(D);const I=(0,l.h)("div",{class:["fox-pull-refresh-container-topbox"],style:h.value},q),C=(0,l.h)("div",{class:"fox-pull-refresh-container",style:z.value},[I,o?.default?.()]),K={ref:m,class:d.value};return Xt()?Object.assign(K,{onTouchstart:F,onTouchmove:L,onTouchend:M}):Object.assign(K,{onMousedown:F,onMousemove:L,onMouseup:M}),(0,l.h)("div",K,[C])}}}),{componentName:m4,create:p4,scope:h4}=se("pull-refresh"),g4=p4(f4(m4,h4,Al)),ur=g4,v4={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function y4(e,t,r){return{props:{...v4},emits:["click","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Ie.useFoxI18n)(t),u=s(a,["collapseText","expandText"]),i=(0,l.computed)(()=>{const z={[`${e}`]:!0};return a.disabled?z[`${e}--disabled`]=!0:z[`${e}--${a.type}`]=!0,z}),m=ye(a,"modelValue"),p=(0,l.computed)(()=>m.value?u.expandText.value??"":u.collapseText.value??""),f=(0,l.computed)(()=>({[`${e}__text`]:!0})),d=(0,l.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!m.value,"is-collapse":m.value})),T=()=>{n("update:modelValue",!m.value)};return()=>{const z=[];if(p.value){const g=(0,l.h)("span",{class:f.value},[p.value]);z.push(g)}const h={class:d.value},c=(o.icon&&o.icon())??(a.icon&&(0,l.h)(a.icon))??(0,l.h)(r);if(c){const g=(0,l.h)("div",h,[c]);z.push(g)}return a.textPosition==="right"&&z.reverse(),(0,l.h)("div",{class:i.value,onClick:T},z)}}}}var{componentName:b4,create:S4,scope:w4}=se("more-button"),x4=S4(y4(b4,w4,Ve.ArrowUp)),cr=x4;function N4(e){e.stopPropagation()}var C4=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=Xt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=Zt(),r=(a,n,o,s)=>{this.updateMove({x:a,y:n})};this.touchstart=a=>{this.moving||(t.start(a),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(t.move(a),N4(a),r(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{r(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function z4(e,t){return new C4(e,t)}var k4={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},E4=(e,t,r,a=!1)=>({props:{...k4},emits:["click"],setup(n,{slots:o,emit:s}){const u=(0,l.reactive)({top:n.top,right:n.right,bottom:n.bottom,left:n.left}),i=(0,l.computed)(()=>{const v=[`${e}`];return n.customClass&&v.push(n.customClass),v}),m=(0,l.computed)(()=>{const v={};return he(u.top)||(v.top=u.top),he(u.right)||(v.right=u.right),he(u.bottom)||(v.bottom=u.bottom),he(u.left)||(v.left=u.left),he(n.width)||(v.width=n.width),he(n.height)||(v.height=n.height),he(n.color)||(v.color=n.color),he(n.background)||(v.background=n.background),he(n.borderRadius)||(v["border-radius"]=n.borderRadius),he(n.zIndex)||(v["z-index"]=n.zIndex),v}),p=(0,l.computed)(()=>({[`${e}__icon`]:!0})),f=()=>{s("click")},d=(0,l.ref)(null),T=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},z={x:0,y:0},g=z4(v=>{if(!d.value)return;const S=d.value;T(),u.left=S.offsetLeft,u.top=S.offsetTop,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`,S.style.right=null,S.style.bottom=null,z.x=u.left,z.y=u.top},v=>{if(!d.value)return;const S=d.value;T(),u.left=z.x+v.x,u.top=z.y+v.y,S.style.left=`${u.left}px`,S.style.top=`${u.top}px`});return(0,l.onMounted)(()=>{if(n.draggable&&d.value){const v=[d.value];g.open(v)}}),(0,l.onBeforeUnmount)(()=>{n.draggable&&d.value&&g.close()}),()=>{let v=[];const S=typeof o.default=="function"?o.default():[];if(S&&S.length>0)v=S;else{const F=(0,l.h)(r,{class:p.value});v.push(F)}return(0,l.h)("view",{ref:F=>{d.value=F},class:i.value,style:m.value,onClick:f},v)}}}),{componentName:_4,create:T4,scope:$4}=se("floating-button"),B4=T4(E4(_4,$4,s2,!1)),dr=B4,De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,mt=e=>e==null,V4=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=Xt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=Zt(),r=(a,n,o,s)=>{this.updateMove({x:a,y:n})};this.touchstart=a=>{this.moving||(t.start(a),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(t.move(a),r(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{r(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function qr(e,t){return new V4(e,t)}var Hr=typeof window<"u"&&typeof document<"u",K5=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function ko(e){const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))}var M4=/\B([A-Z])/g,W5=ko(e=>e.replace(M4,"-$1").toLowerCase()),P4=/-(\w)/g,Y5=ko(e=>e.replace(P4,(t,r)=>r?r.toUpperCase():"")),vt=[],jr=e=>{const t=e;t.key==="Escape"&&vt.forEach(r=>r(t))},A4=e=>{(0,l.onMounted)(()=>{vt.length===0&&document.addEventListener("keydown",jr),Hr&&vt.push(e)}),(0,l.onBeforeUnmount)(()=>{vt=vt.filter(t=>t!==e),vt.length===0&&Hr&&document.removeEventListener("keydown",jr)})},Xl="fox-focus-trap.focus-after-trapped",Zl="fox-focus-trap.focus-after-released",I4="fox-focus-trap.focusout-prevented",Kr={cancelable:!0,bubbles:!1},L4={cancelable:!0,bubbles:!1},Wr="foxFocusAfterTrapped",Yr="foxFocusAfterReleased",F4=Symbol("foxFocusTrap"),fr=(0,l.ref)(),Rl=(0,l.ref)(0),mr=(0,l.ref)(0),nl=0,Eo=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},R4=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Ur=(e,t)=>{for(const r of e)if(!R4(r,t))return r},D4=e=>{const t=Eo(e);return[Ur(t,e),Ur(t.reverse(),e)]},O4=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),mr.value=window.performance.now(),e!==r&&O4(e)&&t&&e.select()}};function Gr(e,t){const r=[...e],a=e.indexOf(t);return a!==-1&&r.splice(a,1),r}var q4=()=>{let e=[];return{push:a=>{const n=e[0];n&&a!==n&&n.pause(),e=Gr(e,a),e.unshift(a)},remove:a=>{e=Gr(e,a),e[0]?.resume?.()}}},H4=(e,t=!1)=>{const r=document.activeElement;for(const a of e)if(ot(a,t),document.activeElement!==r)return},Xr=q4(),j4=()=>Rl.value>mr.value,rl=()=>{fr.value="pointer",Rl.value=window.performance.now()},Zr=()=>{fr.value="keyboard",Rl.value=window.performance.now()},K4=()=>((0,l.onMounted)(()=>{nl===0&&(document.addEventListener("mousedown",rl),document.addEventListener("touchstart",rl),document.addEventListener("keydown",Zr)),nl++}),(0,l.onBeforeUnmount)(()=>{nl--,nl<=0&&(document.removeEventListener("mousedown",rl),document.removeEventListener("touchstart",rl),document.removeEventListener("keydown",Zr))}),{focusReason:fr,lastUserFocusTimestamp:Rl,lastAutomatedFocusTimestamp:mr}),al=e=>new CustomEvent(I4,{...L4,detail:e}),{componentName:U5,create:W4,scope:G5}=se("focus-trap"),Y4={loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},U4=W4({props:Y4,emits:[Wr,Yr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:r}){const a=(0,l.ref)();let n,o;const{focusReason:s}=K4();A4(h=>{de(e.trapped)&&!u.paused&&r("release-requested",h)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=h=>{if(!e.loop&&!de(e.trapped)||u.paused)return;const{key:c,altKey:g,ctrlKey:v,metaKey:S,currentTarget:F,shiftKey:L}=h,{loop:M}=e,q=c==="Tab"&&!g&&!v&&!S,P=document.activeElement;if(q&&P){const D=F,[I,C]=D4(D);if(I&&C){if(!L&&P===C){const K=al({focusReason:s.value});r("focusout-prevented",K),K.defaultPrevented||(h.preventDefault(),M&&ot(I,!0))}else if(L&&[I,D].includes(P)){const K=al({focusReason:s.value});r("focusout-prevented",K),K.defaultPrevented||(h.preventDefault(),M&&ot(C,!0))}}else if(P===D){const K=al({focusReason:s.value});r("focusout-prevented",K),K.defaultPrevented||h.preventDefault()}}};(0,l.provide)(F4,{focusTrapRef:a,onKeydown:i}),(0,l.watch)(()=>e.focusTrapEl,h=>{h&&(a.value=h)},{immediate:!0}),(0,l.watch)([a],([h],[c])=>{h&&(h.addEventListener("keydown",i),h.addEventListener("focusin",f),h.addEventListener("focusout",d)),c&&(c.removeEventListener("keydown",i),c.removeEventListener("focusin",f),c.removeEventListener("focusout",d))});const m=h=>{r(Wr,h)},p=h=>r(Yr,h),f=h=>{const c=(0,l.unref)(a);if(!c)return;const g=h.target,v=h.relatedTarget,S=g&&c.contains(g);de(e.trapped)||v&&c.contains(v)||(n=v),S&&r("focusin",h),!u.paused&&de(e.trapped)&&(S?o=g:ot(o,!0))},d=h=>{const c=(0,l.unref)(a);if(!(u.paused||!c))if(!e.escape&&de(e.trapped)){const g=h.relatedTarget;!_e(g)&&!c.contains(g)&&setTimeout(()=>{if(!u.paused&&de(e.trapped)){const v=al({focusReason:s.value});r("focusout-prevented",v),v.defaultPrevented||ot(o,!0)}},0)}else{const g=h.target;g&&c.contains(g)||r("focusout",h)}};async function T(){await(0,l.nextTick)();const h=(0,l.unref)(a);if(h){Xr.push(u);const c=h.contains(document.activeElement)?n:document.activeElement;if(n=c,!h.contains(c)){const g=new Event(Xl,Kr);h.addEventListener(Xl,m),h.dispatchEvent(g),g.defaultPrevented||(0,l.nextTick)(()=>{let v=e.focusStartEl;ra(v)||(ot(v),document.activeElement!==v&&(v="first")),v==="first"&&H4(Eo(h),!0),(document.activeElement===c||v==="container")&&ot(h)})}}}function z(){const h=(0,l.unref)(a);if(h){h.removeEventListener(Xl,m);const c=new CustomEvent(Zl,{...Kr,detail:{focusReason:s.value}});h.addEventListener(Zl,p),h.dispatchEvent(c),!c.defaultPrevented&&(s.value=="keyboard"||!j4())&&ot(n??document.body,!0),h.removeEventListener(Zl,m),Xr.remove(u)}}return(0,l.onMounted)(()=>{de(e.trapped)&&T(),(0,l.watch)(()=>e.trapped,h=>{de(h)?T():z()})}),(0,l.onBeforeUnmount)(()=>{de(e.trapped)&&z()}),()=>typeof t.default=="function"?t.default({"handle-keydown":i}):null}}),G4=U4,{componentName:X4,create:Z4,scope:X5}=se("floating-window"),J4=Symbol.for("InnerPageScopeKey"),Q4=Symbol.for("PageWrapperKey"),e5={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},t5=Z4({inheritAttrs:!1,components:{FoxIcon:w.ElIcon,FocusTrap:G4},props:{...e5},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const r=X4,a=(0,l.ref)(e.modelValue),n=(0,l.computed)(()=>!e.teleport);(0,l.watch)(()=>e.modelValue,y=>{a.value=y});const o=(0,l.computed)(()=>a.value===!1?!1:!P.value),s=(0,l.ref)(e.left),u=(0,l.ref)(e.top),i=(0,l.ref)(e.right),m=(0,l.ref)(e.bottom),p=(0,l.computed)(()=>{const y=["fox-floating-window"];return e.customClass&&y.push(e.customClass),y}),f=(0,l.computed)(()=>{const y={};return mt(s.value)?y.left="auto":y.left=De(s.value),mt(u.value)?y.top="auto":y.top=De(u.value),mt(i.value)?y.right="auto":y.right=De(i.value),mt(m.value)?y.bottom="auto":y.bottom=De(m.value),mt(e.zIndex)||(y["z-index"]=De(e.zIndex)),mt(M.value)||(y.height=M.value),mt(q.value)||(y.width=q.value),y}),d=(0,l.computed)(()=>e.closeIcon??Ve.Close),T=(0,l.computed)(()=>e.collapseIcon??Ve.ArrowUp),z=(0,l.computed)(()=>e.collapseText??""),h=(0,l.computed)(()=>e.collapsePosition==="left"?e.expandIcon??Ve.ArrowRight:e.expandIcon??Ve.ArrowLeft),c=(0,l.computed)(()=>e.expandText??e.title??"展开"),g=(0,l.computed)(()=>({[`${r}__collapse-text`]:!0})),v=(0,l.computed)(()=>({[`${r}__collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),S=(0,l.ref)(),F=(0,l.ref)(null),L=(0,l.ref)(null),M=(0,l.computed)(()=>De(e.height)||""),q=(0,l.computed)(()=>De(e.width)||""),P=(0,l.ref)(de(e.collapse)),D=(y,N=!0)=>{P.value!==y&&(P.value=y,y?E():j(),t("update:collapse",y),y&&typeof K.onHide=="function"?K.onHide():!y&&typeof K.onShow=="function"&&K.onShow())};(0,l.watch)(()=>e.collapse,y=>{D(y)});const I=()=>{C()},C=y=>{y=y??!P.value,D(y)};(0,l.provide)(J4,!0);const K={setCollapse:D,setFixedNavVisible:y=>{_.value=y}};(0,l.provide)(Q4,K);const $=()=>{typeof K.beforeClose=="function"?K.beforeClose(()=>{a.value=!1}):a.value=!1},b=(0,l.ref)(null),A=(0,l.computed)(()=>!e.fixedNavTeleport),B=(0,l.computed)(()=>{const y=["fox-floating-window__fixednav"];return e.expandClass&&y.push(e.expandClass),e.collapsePosition==="left"?y.push("is-left"):e.collapsePosition==="right"&&y.push("is-right"),y}),H=(0,l.ref)(""),R=(0,l.computed)(()=>{const y={};return H.value?y.top=H.value:e.collapseTop&&(y.top=e.collapseTop),y}),U=(0,l.ref)(P.value),_=(0,l.computed)({set:y=>{U.value=y},get:()=>a.value===!1?!1:U.value});let O=null;const W=()=>{typeof O=="function"&&(O(),O=null)},E=()=>{b.value&&b.value.classList.add("slide-in"),_.value=!0,O=()=>{b.value&&b.value.classList.remove("slide-in")}},j=()=>{b.value&&b.value.classList.add("slide-out"),O=()=>{b.value&&b.value.classList.remove("slide-out"),_.value=!1}},Y=()=>{s.value=null,u.value=null,i.value=null,m.value=null},k={x:0,y:0},ne=qr(y=>{if(!S.value)return;const N=S.value;if(Y(),e.origin==="left-top")s.value=N.offsetLeft,u.value=N.offsetTop,k.x=s.value,k.y=u.value;else if(e.origin==="left-bottom"){const x=document.documentElement.clientHeight||document.body.clientHeight;s.value=N.offsetLeft,m.value=x-(N.offsetTop+N.offsetHeight),k.x=s.value,k.y=m.value}else if(e.origin==="right-bottom"){const x=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight;i.value=x-(N.offsetLeft+N.offsetWidth),m.value=G-(N.offsetTop+N.offsetHeight),k.x=i.value,k.y=m.value}else i.value=(document.documentElement.clientWidth||document.body.clientWidth)-(N.offsetLeft+N.offsetWidth),u.value=N.offsetTop,k.x=i.value,k.y=u.value},y=>{if(!S.value)return;const N=S.value;Y(),e.origin==="left-top"?(s.value=k.x+y.x,u.value=k.y+y.y,N.style.left=De(s.value),N.style.top=De(u.value)):e.origin==="left-bottom"?(s.value=k.x+y.x,m.value=k.y-y.y,N.style.left=De(s.value),N.style.bottom=De(m.value)):e.origin==="right-bottom"?(i.value=k.x-y.x,m.value=k.y-y.y,N.style.right=De(i.value),N.style.bottom=De(m.value)):(i.value=k.x-y.x,u.value=k.y+y.y,N.style.right=De(i.value),N.style.top=De(u.value))}),le={x:0,y:0},re=qr(y=>{b.value&&(le.x=b.value.offsetLeft,le.y=b.value.offsetTop)},y=>{b.value&&(H.value=`${le.y+y.y}px`)}),V=()=>{S.value&&(L.value=S.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar"))};return(0,l.onMounted)(()=>{if(e.draggable&&S.value){const y=[];F.value&&y.push(F.value),e.footerDraggable&&(V(),L.value&&y.push(L.value)),ne.open(y)}e.collapse===!0&&D(e.collapse,!1),b.value&&re.open(b.value)}),(0,l.onBeforeUnmount)(()=>{e.draggable&&F.value&&ne.close(),b.value&&re.close()}),{classes:p,styles:f,isShow:o,closeIcon:d,onClose:$,dialogRef:S,headerRef:F,onClickToggle:I,collapseIcon:T,collapseText:z,collapseTextClasses:g,collapseIconClasses:v,expandIcon:h,expandText:c,isShowFixedNav:_,fixedNavRef:b,fixedNavClasses:B,fixedNavStyles:R,onAnimationEnd:W,teleportDisabled:n,fixedNavTeleportDisabled:A}}}),l5={ref:"headerRef",class:"fox-floating-window__header"},n5={class:"fox-floating-window__title"},r5={class:"fox-floating-window__tools"},a5={class:"fox-floating-window__body"},o5={class:"fox-floating-window__fixednav__text"};function i5(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxIcon"),u=(0,l.resolveComponent)("FocusTrap");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,l.createVNode)(l.Transition,{name:"fox-floating-window-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"dialogRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles),tabindex:"-1"},[(0,l.createVNode)(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",l5,[(0,l.renderSlot)(e.$slots,"header",{},()=>[(0,l.createElementVNode)("span",n5,(0,l.toDisplayString)(e.title),1),(0,l.createElementVNode)("div",r5,[e.showCollapse?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(e.collapseTextClasses)},(0,l.toDisplayString)(e.collapseText),3),(0,l.createVNode)(s,{class:(0,l.normalizeClass)(e.collapseIconClasses)},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,l.createCommentVNode)("",!0),e.showClose?((0,l.openBlock)(),(0,l.createBlock)(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0)])])],512),(0,l.createElementVNode)("div",a5,[(0,l.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"fixedNavRef",class:(0,l.normalizeClass)(e.fixedNavClasses),style:(0,l.normalizeStyle)(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[(0,l.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,l.createVNode)(s,{class:"fox-floating-window__fixednav__icon"},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,l.createElementVNode)("div",o5,(0,l.toDisplayString)(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var pr=Ye(t5,[["render",i5]]);function s5(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(r,{slots:a}){const n=e,o=(0,l.computed)(()=>({[n]:!0})),s=(0,l.computed)(()=>r.icon?{[`${n}__icon`]:!0,[`${n}__icon-${r.type}`]:!0}:{[`${n}__mark`]:!0,[`${n}__mark-${r.type}`]:!0}),u=(0,l.computed)(()=>r.color?r.icon?{color:r.color}:{background:r.color}:null),i=(0,l.computed)(()=>{const p={[`${n}__text`]:!0,[`${n}__text-${r.type}`]:!0};return r.textPosition==="left"?p["is-left"]=!0:p["is-right"]=!0,p}),m=(0,l.computed)(()=>r.color?{color:r.color}:null);return()=>{let p=null;if(a.mark)p=a.mark()[0];else{const T={class:s.value,style:u.value};p=(0,l.h)(r.icon??"div",T)}const f=(0,l.h)("div",{class:i.value,style:m.value},a.default?a.default():[]),d={class:o.value};return r.textPosition==="right"?(0,l.h)("div",d,[p,f]):(0,l.h)("div",d,[f,p])}}}}var{componentName:u5,create:c5,scope:d5}=se("indicator"),f5=c5(s5(u5,d5)),hr=f5;function m5(e){return e===window}var _o=e=>{const t=(0,l.unref)(e);if(m5(t)){const r=t.innerWidth,a=t.innerHeight;return{top:0,left:0,right:r,bottom:a,width:r,height:a}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:p5,create:h5,scope:Z5}=se("tour"),g5=h5({components:{Close:Ve.Close,ElPopover:w.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const r=p5,a=(0,l.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),n=(0,l.ref)({}),o=(0,l.computed)(()=>`${r}`),s=(0,l.computed)(()=>{const{offset:z,maskWidth:h,maskHeight:c}=e,{width:g,height:v,left:S,top:F}=n.value,L=e.steps[a.active].offset??z,M=[S+g/2,F+v/2],q=Number(h||g),P=Number(c||v);return{width:`${q+ +L.left+L.right}px`,height:`${P+L.top+L.bottom}px`,top:`${M[1]-P/2-+L.top}px`,left:`${M[0]-q/2-+L.left}px`}}),u=z=>{z=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,l.nextTick)(()=>{a.showPopup=!0,p()}),t("change",a.active)},i=z=>z.popoverWidth??e.width,m=z=>z.location??e.location,p=()=>{const z=_o(document.querySelector(`${e.steps[a.active].target}`));n.value={x:z.left,y:z.top,top:z.top,left:z.left,width:z.width,height:z.height}},f=()=>{a.showTour=!1,a.showPopup=!1,t("close",a.active),t("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&f()},T=(z,h=0)=>{z&&p(),e.steps,a.active=h,a.showTour=z,a.showPopup=z};return(0,l.onMounted)(()=>{T(e.modelValue,e.current)}),(0,l.watch)(()=>e.modelValue,z=>{T(z)}),{...(0,l.toRefs)(a),classes:o,maskStyle:s,changeStep:u,popoverWidth:i,popoverLocation:m,close:f,handleClickMask:d}}}),v5={key:0,class:"fox-tour__content"},y5={key:0,class:"fox-tour__content-top"},b5={class:"fox-tour__content-inner"},S5={class:"fox-tour__content-bottom"},w5={class:"fox-tour__content-bottom-init"},x5={class:"fox-tour__content-bottom-operate"},N5={key:1,class:"fox-tour__content fox-tour__content-tile"},C5={class:"fox-tour__content-inner"};function z5(e,t,r,a,n,o){const s=(0,l.resolveComponent)("Close"),u=(0,l.resolveComponent)("fox-button"),i=(0,l.resolveComponent)("ElPopover");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(e.classes)},[(0,l.withDirectives)((0,l.createElementVNode)("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...m)=>e.handleClickMask&&e.handleClickMask(...m))},null,512),[[l.vShow,e.showTour]]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.steps,(m,p)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:p,style:{height:"0"}},[p==e.active?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(m),width:e.popoverWidth(m)},{reference:(0,l.withCtx)(()=>[e.showTour?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,l.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,l.createCommentVNode)("",!0)]),default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,l.openBlock)(),(0,l.createElementBlock)("div",v5,[e.showTitleBar?((0,l.openBlock)(),(0,l.createElementBlock)("div",y5,[(0,l.createElementVNode)("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[(0,l.createVNode)(s,{class:"fox-tour__content-top-close"})])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",b5,(0,l.toDisplayString)(m.content),1),(0,l.createElementVNode)("div",S5,[(0,l.createElementVNode)("div",w5,(0,l.toDisplayString)(e.active+1)+"/"+(0,l.toDisplayString)(e.steps.length),1),(0,l.createElementVNode)("div",x5,[(0,l.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.prevStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0),(0,l.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>e.changeStep("next"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.nextStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)])])])])):(0,l.createCommentVNode)("",!0),e.type=="tile"?((0,l.openBlock)(),(0,l.createElementBlock)("div",N5,[(0,l.createElementVNode)("div",C5,(0,l.toDisplayString)(m.content),1)])):(0,l.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,l.createCommentVNode)("",!0)]))),128))],2)}var gr=Ye(g5,[["render",z5]]),k5={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function E5(e,t){return{inheritAttrs:!1,props:k5,setup(r,a){const{exposeApi:n}=xa({context:a,props:()=>r.config},r.name);return _e(r.innerPageScope)||wn(r.innerPageScope),_e(r.abstractPageScope)||ka(r.abstractPageScope),n(),()=>typeof a.slots.default=="function"?a.slots.default():null}}}var{componentName:_5,create:T5,scope:$5}=se("domain-provider"),B5=T5(E5(_5,$5)),vr=B5,V5={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:()=>"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:()=>"rolling"},rootMargin:{type:[String],required:!1,default:()=>"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:()=>[0,.25]},root:{type:[Object,String]}};function M5(e,t){return{inheritAttrs:!1,props:V5,emits:["change"],setup(r,{slots:a,emit:n}){if(dt&&window.IntersectionObserver){const o=new WeakMap;let s=new Map;const u=(d,T)=>{if(p===null){s.set(d,{visible:null,callback:T});return}o.has(d)&&p.unobserve(d),o.set(d,{visible:null,callback:T}),p.observe(d)},i=d=>{if(p===null){s.delete(d);return}o.has(d)&&(o.delete(d),p.unobserve(d))};let m=r.initialVisibleObserverSize;ts({acquire:()=>{if(r.loadPolicy==="always")return!0;const d=m>0;return m--,d},get disabled(){return r.disabled},get initialHeight(){return r.initialInvisibleObserverHeight},observe:u,unobserve:i});let p=null;const f=(d,T,z)=>{p=new IntersectionObserver(h=>{if(n("change",h),r.loadPolicy!=="always")for(let c of h){let g=!1;c.intersectionRatio>0&&(g=!0);const v=o.get(c.target);if(v)try{if(r.loadPolicy==="lazy"&&!g&&v.visible!==null)return;v.visible=g,v.callback(g)}catch(S){console.error(S)}}},{root:d,rootMargin:T,threshold:z}),s.forEach((h,c)=>{o.set(c,h),p?.observe(c)}),s.clear()};(0,l.watch)([()=>r.root,()=>r.disabled],([d,T])=>{if(T||!d||p)return;let z=null;typeof d=="string"?z=document.querySelector(d):z=d,z&&f(z,r.rootMargin,r.threshold)},{immediate:!0}),(0,l.onUnmounted)(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof a.default=="function"?a.default():null}}}var{componentName:P5,create:A5,scope:I5}=se("rolling-provider"),L5=A5(M5(P5,I5)),yr=L5,F5=[Cn,kn,En,_n,Tn,Gt,Bl,Vl,Vn,Ee,Mn,Pn,An,In,Ln,Fn,Rn,Dn,On,qn,Hn,Pl,jn,Kn,Wn,Yn,Un,Gn,Xn,Zn,Jn,Il,Ll,tr,lr,nr,rr,Fl,ar,_t,ir,sr,ur,cr,dr,pr,Ml,zt,$l,hr,Ct,gr,vr,yr],R5=new ki(F5,[Ti],"4.0.0");exports.AbstractPageScopeKey=xn;exports.AutocompleteItem=On;exports.FoxAutocompleteItem=On;exports.Broadcast=pa;exports.BroadcastKey=lt;exports.ButtonsItem=Vn;exports.FoxButtonsItem=Vn;exports.CascaderItem=Dn;exports.FoxCascaderItem=Dn;exports.CheckboxItem=Wn;exports.FoxCheckboxItem=Wn;exports.Content=_n;exports.FoxContent=_n;exports.DataItemsKey=Lt;exports.DateItem=An;exports.FoxDateItem=An;exports.DateUtils=qe;exports.DialogItem=rr;exports.FoxDialogItem=rr;exports.Domain=yl;exports.DomainKey=ut;exports.DomainProvider=vr;exports.FoxDomainProvider=vr;exports.FloatingButton=dr;exports.FoxFloatingButton=dr;exports.FloatingWindow=pr;exports.FoxFloatingWindow=pr;exports.FooterBar=En;exports.FoxFooterBar=En;exports.FoxAffix=w.ElAffix;exports.FoxAlert=w.ElAlert;exports.FoxAnchor=w.ElAnchor;exports.FoxAnchorLink=w.ElAnchorLink;exports.FoxAside=w.ElAside;exports.FoxAutoResizer=w.ElAutoResizer;exports.FoxAutocomplete=w.ElAutocomplete;exports.FoxAvatar=w.ElAvatar;exports.FoxBacktop=w.ElBacktop;exports.FoxBadge=w.ElBadge;exports.FoxBreadcrumb=w.ElBreadcrumb;exports.FoxBreadcrumbItem=w.ElBreadcrumbItem;exports.FoxButton=w.ElButton;exports.FoxButtonGroup=w.ElButtonGroup;exports.FoxCalendar=w.ElCalendar;exports.FoxCard=w.ElCard;exports.FoxCarousel=w.ElCarousel;exports.FoxCarouselItem=w.ElCarouselItem;exports.FoxCascader=w.ElCascader;exports.FoxCascaderPanel=w.ElCascaderPanel;exports.FoxCheckTag=w.ElCheckTag;exports.FoxCheckbox=w.ElCheckbox;exports.FoxCheckboxButton=w.ElCheckboxButton;exports.FoxCheckboxGroup=w.ElCheckboxGroup;exports.FoxCol=w.ElCol;exports.FoxCollapse=w.ElCollapse;exports.FoxCollapseItem=w.ElCollapseItem;exports.FoxCollapseTransition=w.ElCollapseTransition;exports.FoxColorPicker=w.ElColorPicker;exports.FoxConfigProvider=w.ElConfigProvider;exports.FoxContainer=w.ElContainer;exports.FoxCountdown=w.ElCountdown;exports.FoxDatePicker=w.ElDatePicker;exports.FoxDescriptions=w.ElDescriptions;exports.FoxDescriptionsItem=w.ElDescriptionsItem;exports.FoxDialog=w.ElDialog;exports.FoxDivider=w.ElDivider;exports.FoxDrawer=w.ElDrawer;exports.FoxDropdown=w.ElDropdown;exports.FoxDropdownItem=w.ElDropdownItem;exports.FoxDropdownMenu=w.ElDropdownMenu;exports.FoxEmpty=w.ElEmpty;exports.FoxFooter=w.ElFooter;exports.FoxForm=w.ElForm;exports.FoxFormItem=w.ElFormItem;exports.FoxGroup=Tn;exports.Group=Tn;exports.FoxGroupSetting=Xn;exports.GroupSetting=Xn;exports.FoxHeader=w.ElHeader;exports.FoxHeaderBar=kn;exports.HeaderBar=kn;exports.FoxHintText=Ee;exports.HintText=Ee;exports.FoxIcon=w.ElIcon;exports.FoxImage=w.ElImage;exports.FoxImageViewer=w.ElImageViewer;exports.FoxIndicator=hr;exports.Indicator=hr;exports.FoxInfiniteLoading=sr;exports.InfiniteLoading=sr;exports.FoxInput=w.ElInput;exports.FoxInputItem=Mn;exports.InputItem=Mn;exports.FoxInputNumber=w.ElInputNumber;exports.FoxInputNumberItem=Rn;exports.InputNumberItem=Rn;exports.FoxInputTag=w.ElInputTag;exports.FoxItem=Gt;exports.Item=Gt;exports.FoxLink=w.ElLink;exports.FoxLinkItem=Jn;exports.LinkItem=Jn;exports.FoxMain=w.ElMain;exports.FoxMapping=zt;exports.Mapping=zt;exports.FoxMention=w.ElMention;exports.FoxMenu=w.ElMenu;exports.FoxMenuItem=w.ElMenuItem;exports.FoxMenuItemGroup=w.ElMenuItemGroup;exports.FoxMessage=w.ElMessage;exports.FoxMessageBox=w.ElMessageBox;exports.FoxMoneyItem=Fn;exports.MoneyItem=Fn;exports.FoxMoreButton=cr;exports.MoreButton=cr;exports.FoxNotification=w.ElNotification;exports.FoxOption=w.ElOption;exports.FoxOptionGroup=w.ElOptionGroup;exports.FoxOverLay=Fl;exports.OverLay=Fl;exports.FoxPage=Cn;exports.Page=Cn;exports.FoxPageHeader=w.ElPageHeader;exports.FoxPagination=w.ElPagination;exports.FoxPopconfirm=w.ElPopconfirm;exports.FoxPopover=w.ElPopover;exports.FoxPopoverDialog=Ml;exports.PopoverDialog=Ml;exports.FoxPopper=w.ElPopper;exports.FoxPopup=ar;exports.Popup=ar;exports.FoxPrice=$l;exports.Price=$l;exports.FoxProgress=w.ElProgress;exports.FoxPullRefresh=ur;exports.PullRefresh=ur;exports.FoxRadio=w.ElRadio;exports.FoxRadioButton=w.ElRadioButton;exports.FoxRadioGroup=w.ElRadioGroup;exports.FoxRadioItem=Kn;exports.RadioItem=Kn;exports.FoxRate=w.ElRate;exports.FoxRateItem=Yn;exports.RateItem=Yn;exports.FoxResult=w.ElResult;exports.FoxRollingProvider=yr;exports.RollingProvider=yr;exports.FoxRow=w.ElRow;exports.FoxRowItem=Vl;exports.RowItem=Vl;exports.FoxScrollbar=w.ElScrollbar;exports.FoxSearchBar=ir;exports.SearchBar=ir;exports.FoxSegmented=w.ElSegmented;exports.FoxSelect=w.ElSelect;exports.FoxSelectItem=Pn;exports.SelectItem=Pn;exports.FoxSelectV2=w.ElSelectV2;exports.FoxSkeleton=w.ElSkeleton;exports.FoxSkeletonItem=w.ElSkeletonItem;exports.FoxSlider=w.ElSlider;exports.FoxSlotItem=Bl;exports.SlotItem=Bl;exports.FoxSpace=w.ElSpace;exports.FoxStatistic=w.ElStatistic;exports.FoxStep=w.ElStep;exports.FoxSteps=w.ElSteps;exports.FoxStepsBar=nr;exports.StepsBar=nr;exports.FoxSubMenu=w.ElSubMenu;exports.FoxSwitch=w.ElSwitch;exports.FoxSwitchItem=Un;exports.SwitchItem=Un;exports.FoxTabPane=w.ElTabPane;exports.FoxTable=w.ElTable;exports.FoxTableColumn=w.ElTableColumn;exports.FoxTableItem=jn;exports.TableItem=jn;exports.FoxTableMappingColumn=qn;exports.TableMappingColumn=qn;exports.FoxTableRadioColumn=Hn;exports.TableRadioColumn=Hn;exports.FoxTableSetting=Pl;exports.TableSetting=Pl;exports.FoxTableV2=w.ElTableV2;exports.FoxTabs=w.ElTabs;exports.FoxTabsBar=Il;exports.TabsBar=Il;exports.FoxTabsContainer=Ll;exports.TabsContainer=Ll;exports.FoxTabsFrame=lr;exports.TabsFrame=lr;exports.FoxTabsPane=tr;exports.TabsPane=tr;exports.FoxTag=w.ElTag;exports.FoxText=Ct;exports.Text=Ct;exports.FoxTimeItem=In;exports.TimeItem=In;exports.FoxTimePicker=w.ElTimePicker;exports.FoxTimeSelect=w.ElTimeSelect;exports.FoxTimeSelectItem=Ln;exports.TimeSelectItem=Ln;exports.FoxTimeline=w.ElTimeline;exports.FoxTimelineItem=w.ElTimelineItem;exports.FoxToast=_t;exports.Toast=_t;exports.FoxTooltip=w.ElTooltip;exports.FoxTour=gr;exports.Tour=gr;exports.FoxTransfer=w.ElTransfer;exports.FoxTree=w.ElTree;exports.FoxTreeItem=Zn;exports.TreeItem=Zn;exports.FoxTreeSelect=w.ElTreeSelect;exports.FoxTreeSelectItem=Gn;exports.TreeSelectItem=Gn;exports.FoxTreeV2=w.ElTreeV2;exports.FoxUpload=w.ElUpload;exports.FoxWatermark=w.ElWatermark;exports.InnerPageScopeKey=Sn;exports.PriorityPolicy=Me;exports.UniqueID=Ka;exports.ValidateSchema=ba;exports.ValidateSchemaKey=it;exports.browseProperty=Va;exports.cancelRaf=Do;exports.clamp=ai;exports.clearNonNumber=Qo;exports.compareTo=ln;exports.createBroadcast=hl;exports.createValidateSchema=gl;exports.debounce=Ke;exports.debounceRef=pi;exports.decimalLength=fa;exports.default=R5;exports.defineConfigDomain=xa;exports.defineDataItem=Na;exports.defineDomain=bn;exports.defineDomainItemProperty=Fe;exports.defineItem=Te;exports.definePageState=za;exports.defineSimpleItem=Ca;exports.deleteGlobalValidator=ci;exports.disabledProperty=Ba;exports.divide=hn;exports.excludeProps=Le;exports.extend=xt;exports.floatData=li;exports.getGlobalIcons=Ra;exports.getGlobalValidateCheckEvents=ga;exports.getGlobalValidateResetEvents=ya;exports.getPageContentAreaHeight=ul;exports.getPageContentAreaWidth=cl;exports.getPageFooterAreaHeight=wl;exports.getPageHeaderAreaHeight=Sl;exports.getRootDomain=bt;exports.hasSymbol=ia;exports.includeProps=gt;exports.indexOf=ei;exports.injectAbstractPageScope=Ut;exports.injectAbstractPageScopeForContent=Ta;exports.injectAbstractPageScopeForFooterBar=_a;exports.injectAbstractPageScopeForHeaderBar=Ea;exports.injectInnerPageScope=Yt;exports.integerLength=da;exports.isArray=qo;exports.isArrayLike=ua;exports.isBrowser=dt;exports.isDate=Ko;exports.isDisplayNone=vn;exports.isESModule=Uo;exports.isEmptyString=he;exports.isEqual=Je;exports.isFunction=nn;exports.isHidden=rn;exports.isMap=Ho;exports.isNil=_e;exports.isNumberString=yn;exports.isObject=We;exports.isPlainObject=Yo;exports.isPromise=aa;exports.isRegExp=an;exports.isSet=jo;exports.isString=ra;exports.isSubPage=yi;exports.isSymbol=Wo;exports.isTouch=Xt;exports.isWindow=sa;exports.kebabToPascal=qt;exports.lastIndexOf=ti;exports.makeArray=Jo;exports.merge=ca;exports.multiply=ta;exports.negate=la;exports.nextTick=Xo;exports.numberFormat=ml;exports.objectToString=oa;exports.once=hi;exports.overrideGlobalIcons=Li;exports.overrideGlobalValidateHandler=si;exports.padZero=ri;exports.pascalToKebab=ma;exports.preventDefault=ni;exports.property=Pe;exports.provideAbstractPageScope=ka;exports.provideInnerPageScope=wn;exports.raf=gn;exports.readonlyProperty=$a;exports.setGlobalValidateCheckEvents=di;exports.setGlobalValidateHandler=ii;exports.setGlobalValidateMessages=mi;exports.setGlobalValidateResetEvents=fi;exports.setGlobalValidator=ui;exports.throttle=wa;exports.toBoolean=de;exports.toNumber=ze;exports.toPadding=Ze;exports.toPx=pe;exports.toPxDesc=vi;exports.toPxString=Se;exports.toTypeString=pl;exports.toValue=ye;exports.tryTimes=vl;exports.typeOf=il;exports.unNumberFormat=na;exports.updatePageState=on;exports.useBroadcast=It;exports.useDomain=ft;exports.useInnerSize=xl;exports.usePageState=bl;exports.usePosition=$n;exports.useRawTouch=Zt;exports.useRect=_o;exports.useSize=zn;exports.useSlotChildren=Tl;exports.useTouch=W2;exports.valueLength=Wt;
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var Vo=Object.create,Qr=Object.defineProperty,Mo=Object.getOwnPropertyDescriptor,Po=Object.getOwnPropertyNames,Ao=Object.getPrototypeOf,Io=Object.prototype.hasOwnProperty,nt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Lo=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(var n=Po(t),o=0,s=n.length,u;o<s;o++)u=n[o],!Io.call(e,u)&&u!==r&&Qr(e,u,{get:(i=>t[i]).bind(null,u),enumerable:!(a=Mo(t,u))||a.enumerable});return e},rt=(e,t,r)=>(r=e!=null?Vo(Ao(e)):{},Lo(t||!e||!e.__esModule?Qr(r,"default",{value:e,enumerable:!0}):r,e));let l=require("vue"),pt=require("@fox-js/validator"),C=require("element-plus"),Me=require("@element-plus/icons-vue"),Le=require("@fox-js/i18n");var tl=window,Fo=typeof window<"u";function Ro(){return typeof tl<"u"?tl.requestAnimationFrame||tl.webkitRequestAnimationFrame||function(e){tl.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Do(e){Fo?cancelAnimationFrame(e):clearTimeout(e)}var ea=Ro();function sl(e,t="0"){let r=0,a=-1;e[0]=="-"&&(r++,a=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,a=2,t=t.substring(1),t.length),e=Ie(e),t=Ie(t),[e,t]=hn(Ie(e),Ie(t)),r==1&&(a==1?e=ql(e):t=ql(t));let n=ta(e,t);return r?r==2?"-"+Ie(n):e.length<n.length?Ie(n.substring(1)):"-"+Ie(ql(n)):Ie(n)}function ql(e){let t="",r=e.length,a=e.split(".")[1],n=a?a.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=n>0?"0."+new Array(n).join("0")+"1":"1";return ta(t,o)}function Ie(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function hn(e,t){let r=e.split("."),a=t.split("."),n=r[0].length,o=a[0].length;return n>o?a[0]=new Array(Math.abs(n-o)+1).join("0")+(a[0]?a[0]:""):r[0]=new Array(Math.abs(n-o)+1).join("0")+(r[0]?r[0]:""),n=r[1]?r[1].length:0,o=a[1]?a[1].length:0,(n||o)&&(n>o?a[1]=(a[1]?a[1]:"")+new Array(Math.abs(n-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(n-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=a[0]+(a[1]?"."+a[1]:""),[e,t]}function ta(e,t){[e,t]=hn(e,t);let r="",a=0;for(let n=e.length-1;n>=0;n--){if(e[n]==="."){r="."+r;continue}let o=parseInt(e[n])+parseInt(t[n])+a;r=o%10+r,a=Math.floor(o/10)}return a?a.toString()+r:r}var ze=(function(e){return e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e})({});function qt(e,t=0,r=ze.HALF_EVEN){if(r===ze.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let a=!1;e[0]==="-"&&(a=!0,e=e.substring(1));let n=e.split("."),o=n[0],s=n[1];if(t<0){if(t=-t,o.length<=t)return"0";{let i=o.substr(0,o.length-t);return e=i+"."+o.substr(o.length-t)+s,i=qt(e,0,r),(a?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,Sr(n[1],o,a,r)?(a?"-":"")+Hl(o):(a?"-":"")+o;if(n[1]){if(n[1].length<t)return(a?"-":"")+o+"."+n[1]+new Array(t-n[1].length+1).join("0")}else return(a?"-":"")+o+"."+new Array(t+1).join("0");s=n[1].substring(0,t);let u=n[1].substring(t);return u&&Sr(u,s,a,r)&&(s=Hl(s),s.length>t)?(a?"-":"")+Hl(o,parseInt(s[0]))+"."+s.substring(1):(a?"-":"")+o+"."+s}function Sr(e,t,r,a){if(!e||e===new Array(e.length+1).join("0")||a===ze.DOWN||!r&&a===ze.FLOOR||r&&a===ze.CEILING)return!1;if(a===ze.UP||r&&a===ze.FLOOR||!r&&a===ze.CEILING)return!0;let n="5"+new Array(e.length).join("0");if(e>n)return!0;if(e<n)return!1;switch(a){case ze.HALF_DOWN:return!1;case ze.HALF_UP:return!0;case ze.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Hl(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,a="";for(let n=r;n>=0;n--){let o=parseInt(e[n])+t;o==10?(t=1,o=0):t=0,a+=o}return t&&(a+=t),a.split("").reverse().join("")}function Ql(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=Vt(e),t=Vt(t);let a=0,n=0;e.indexOf(".")!=-1&&(a=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(n=t.length-t.indexOf(".")-1);let o=a+n;if(e=Vt(e.replace(".","")),t=Vt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,u=0,i=[],f=s-1,h="";for(let d=0;d<s;d++)i[d]=e.length-1;for(let d=0;d<2*e.length;d++){let c=0;for(let T=t.length-1;T>=f&&T>=0;T--)i[T]>-1&&i[T]<e.length&&(c+=parseInt(e[i[T]--])*parseInt(t[T]));c+=u,u=Math.floor(c/10),h=c%10+h,f--}return h=Vt(Oo(h,o)),r==1&&(h="-"+h),h}function Oo(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Vt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function en(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let a=0;t[0]=="-"&&(t=t.substring(1),a++),e[0]=="-"&&(e=e.substring(1),a++);var n=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ie(t.replace(".","")),n>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ie(e+new Array(n+1).join("0"));else if(n>f)e=e.replace(".",""),e=Ie(e+new Array(n-f+1).join("0"));else if(n<f){e=e.replace(".","");let h=e.length-f+n;e=Ie(e.substring(0,h)+"."+e.substring(h))}else n==f&&(e=Ie(e.replace(".","")))}let o=0,s=t.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let f=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(f+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=f,u="0."+new Array(f).join("0")}for(r=r+2;o<=r;){let f=0;for(;parseInt(i)>=parseInt(t);)i=sl(i,"-"+t),f++;u+=f,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,i=i+"0")}return(a==1?"-":"")+Ie(qt(u,r-2))}function tn(e,t){return e=e.toString(),t=t.toString(),t=ln(t),sl(e,t)}function ln(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function wr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),xr(e),xr(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let a=tn(e,Ql(t,qt(en(e,t),0,ze.FLOOR)));return r+a}function xr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Nr(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=hn(e,t),e.localeCompare(t)==0)return 0;for(let a=0;a<e.length;a++)if(e[a]!=t[a])return e[a]>t[a]?r?-1:1:r?1:-1;return 0}var Wt=class ge{value;static RoundingModes=ze;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,a]=t.split(/[eE]/);r=Ie(r);let n="";r[0]=="-"&&(n="-",r=r.substring(1)),r.indexOf(".")>=0?(a=parseInt(a)+r.indexOf("."),r=r.replace(".","")):a=parseInt(a)+r.length,r.length<a?t=n+r+new Array(a-r.length+1).join("0"):r.length>=a&&a>0?t=n+Ie(r.substring(0,a))+(r.length>a?"."+r.substring(a):""):t=n+"0."+new Array(-a+1).join("0")+r}return t}constructor(t="0"){this.value=ge.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,a){if(!(r||a))r=3,a=",";else if(!(r&&a))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ge.validate(t);let n=t.charAt(0)=="-";n&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",u=o;u>0;)u<r?(r=u,u=0):u-=r,s=t.substring(u,u+r)+(u<o-r&&u>=0?a:"")+s;return(n?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return ge.getPrettyValue(this.value,t,r)}static round(t,r=0,a=ze.HALF_EVEN){if(t=ge.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return qt(t,r,a)}round(t=0,r=ze.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ge(qt(this.value,t,r))}static floor(t){return t=ge.validate(t),t.indexOf(".")===-1?t:ge.round(t,0,ze.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,ze.FLOOR)}static ceil(t){return t=ge.validate(t),t.indexOf(".")===-1?t:ge.round(t,0,ze.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ge(this.value):new ge(this.value).round(0,ze.CEILING)}static add(t,r){return t=ge.validate(t),r=ge.validate(r),sl(t,r)}add(t){return new ge(sl(this.value,t.getValue()))}static subtract(t,r){return t=ge.validate(t),r=ge.validate(r),tn(t,r)}subtract(t){return new ge(tn(this.value,t.getValue()))}static multiply(t,r){return t=ge.validate(t),r=ge.validate(r),Ql(t,r)}multiply(t){return new ge(Ql(this.value,t.getValue()))}static divide(t,r,a){return t=ge.validate(t),r=ge.validate(r),en(t,r,a)}divide(t,r){return new ge(en(this.value,t.getValue(),r))}static modulus(t,r){return t=ge.validate(t),r=ge.validate(r),wr(t,r)}modulus(t){return new ge(wr(this.value,t.getValue()))}static compareTo(t,r){return t=ge.validate(t),r=ge.validate(r),Nr(t,r)}compareTo(t){return Nr(this.value,t.getValue())}static negate(t){return t=ge.validate(t),ln(t)}negate(){return new ge(ln(this.value))}};function la(e,t){return Wt.multiply(`${e}`,`${t}`)}function gn(e,t,r=8){return Wt.divide(`${e}`,`${t}`,r)}var D5=Wt.RoundingModes;function nn(e,t){return e=`${e}`,t=`${t}`,Wt.compareTo(e,t)}function na(e){return Wt.negate(e)}function hl(e,t=-1,r=!1,a=3,n=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let u=o,i="",f=o.indexOf(".");f!=-1&&(u=o.substring(0,f),i=o.substring(f+1)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let h;if(a>0){let d="",c=u.split("").reverse();for(let T=0;T<c.length;T++)d+=c[T]+((T+1)%a==0&&T+1!=c.length?n:"");i.length==0?h=`${s}${d.split("").reverse().join("")}`:h=`${s}${d.split("").reverse().join("")}.${i}`}else i.length==0?h=`${s}${u}`:h=`${s}${u}.${i}`;return h}function ra(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let a=t.replace(/[^\d\.-]/g,"");return`${r}${a}`}var vn=ea,qo=Array.isArray,Ho=e=>gl(e)==="[object Map]",jo=e=>gl(e)==="[object Set]",Ko=e=>e instanceof Date,rn=e=>typeof e=="function",aa=e=>typeof e=="string",Wo=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",oa=e=>Ue(e)&&rn(e.then)&&rn(e.catch),ia=Object.prototype.toString,gl=e=>ia.call(e),Yo=e=>gl(e)==="[object Object]",sa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Uo(e){return e.__esModule||sa&&e[Symbol.toStringTag]==="Module"}var Go=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function xt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,a=e.length,n=!1;for(typeof t=="boolean"&&(n=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<a;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let s in o){let u=t[s],i=o[s];if(u!==i)if(n===!0&&i&&typeof i=="object"){let f;Array.isArray(i)?f=u&&Array.isArray(u)?u:[]:f=u&&typeof u=="object"?u:{},t[s]=xt(n,f,i)}else i!==void 0&&(t[s]=i)}}return t}var jl=Go?Promise.resolve():null;function Xo(e,...t){jl!==null?t&&t.length>0?jl.then(()=>{e(t)}):jl.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function fe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ke(e){return typeof e=="number"?e:Number(e)}var Zo={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function ul(e){let t=Object.prototype.toString.call(e);return e==null?String(e):Zo[t]||"object"}function an(e){if(!e||e.nodeType!==1)return!0;let t=e;for(;t;){if(t.hidden)return!0;const r=window.getComputedStyle(t);if(r.display==="none"||r.visibility==="hidden"||r.visibility==="collapse")return!0;t=t.parentElement}return!1}function yn(e){if(!e)return!0;if(e.offsetParent!==null)return!1;if(getComputedStyle(e).position!=="fixed")return!0;let t=e.parentElement;for(;t;){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function ua(e){return e&&typeof e=="object"&&"setInterval"in e}function ca(e){let t=!!e&&"length"in e&&e.length,r=ul(e);return r==="function"||ua(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function da(e,t){let r=+t.length,a=0,n=e.length;for(;a<r;a++)e[n++]=t[a];return e.length=n,e}function Jo(e,t=[]){let r=t;return e!=null&&(ca(Object(e))?da(r,typeof e=="string"?[e]:e):r.push(e)),r}function Qe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=ul(e);if(r!==ul(t))return!1;if(r==="object"){let a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(let o=0;o<a.length;o++){let s=a[o],u=e[s],i=t[s];if(!Qe(u,i))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let n=e[a],o=t[a];if(!Qe(n,o))return!1}return!0}return!1}var dt=typeof window<"u";function _e(e){return e==null}function on(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function bn(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fa(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function ma(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Cr(e,t,r){const a=e.indexOf(t);return a===-1?e:t==="-"&&a!==0?e.slice(0,a):e.slice(0,a+1)+e.slice(a).replace(r,"")}function Qo(e,t=!0,r=!0){t?e=Cr(e,".",/\./g):e=e.replace(/\./g,""),r?e=Cr(e,"-",/-/g):e=e.replace(/-/,"");const a=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(a,"")}function ei(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(Qe(e,r))return!0}):t.indexOf(e)}function ti(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(a=>{if(Qe(e,a))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function Yt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function gt(e,...t){const r={};return t.forEach(a=>{for(const n in a)r[n]=e[n]}),r}function Fe(e,...t){const r=[];t.forEach(n=>{Reflect.apply([].push,r,Reflect.ownKeys(n))});const a={};for(const n in e)r.includes(n)||(a[n]=e[n]);return a}var li=(e,t,r)=>{const a=Object.assign({},e),n=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(a).forEach(o=>{n.hasOwnProperty(o)?typeof n[o]=="string"&&(a[o]=t[n[o]]):t[o]&&(a[o]=t[o])}),a):e};function ni(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&e.stopPropagation()}var ri=(e,t=2)=>{for(e+="";e.length<t;)e="0"+e;return e.toString()},ai=(e,t,r)=>Math.min(Math.max(e,t),r);function Ht(e){return e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join("")}function pa(e){return e.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}var Ye=Symbol.for("BroadcastKey"),ha=class{parent;children=[];callbacks=new Map;exposed=null;name;persistantMessages=new Map;constructor(e,t,r){this.parent=e,this.exposed=t,this.name=r,e!==null&&e.addChild(this)}addChild(e){this.children.push(e)}removeChild(e){const t=this.children.findIndex(r=>e===r);t!==-1&&this.children.splice(t,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.callbacks=null,this.exposed=null}setPersistantMessage(e,t,r){if(!e.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const a=e.uniqueId,n={matched:e,action:t,args:r};return this.persistantMessages.set(a,n),!0}deletePersistantMessage(e){this.persistantMessages.delete(e)}getPersistantMessages(){const e=[];return this.persistantMessages.forEach(t=>{e.push(t)}),e}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(e,t){if(!t||t.messagingPolicy==="Once"&&t.resolved===!0)return!1;let r=!1;return!t.name||t.name==="*"||t.name==="+"||on(t.name)&&e&&t.name.test(e)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[e]):t.name===e&&(r=!0),r}trigger(e,t,r){let a=null;const n=this.callbacks.get(t);typeof n=="function"&&(a=Reflect.apply(n,null,[...r])),this.exposed&&typeof this.exposed[t]=="function"&&(a=Reflect.apply(this.exposed[t],this.exposed,[...r])),e.resolved=!0,typeof e.resolve=="function"&&e.resolve(a)}pull(){let e=this.parent;for(;e;){const t=e.getPersistantMessages();Array.isArray(t)&&t.length>0&&t.forEach(r=>{if(this.isMatched(this.name,r.matched))try{this.trigger(r.matched,r.action,r.args)}catch(a){console.error(a)}}),e=e.parent}}emit(e,t,...r){if(e.messagingPolicy==="Once"&&e.resolved===!0)return[];if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,r)){const o=e.resolve,s=e.uniqueId??"",u=(...i)=>{this.deletePersistantMessage(s),typeof o=="function"&&o(...i)};e.resolve=u}e.cachePolicy="None"}let a=!1;!e.name||e.name==="*"?a=!0:e.name==="+"?(a=!1,e.name="*"):on(e.name)&&this.name&&e.name.test(this.name)?a=!0:typeof e.name=="function"?a=Reflect.apply(e.name,null,[this.name]):e.name===this.name&&(a=!0);const n=[];if(a){const o=this.callbacks.get(t);if(typeof o=="function"){const s=Reflect.apply(o,null,[...r]);_e(s)||n.push(s)}if(this.exposed&&typeof this.exposed[t]=="function"){const s=Reflect.apply(this.exposed[t],this.exposed,[...r]);_e(s)||n.push(s)}if(e.resolved=!0,typeof e.resolve=="function"&&e.resolve(...n),e.messagingPolicy==="Once")return n}return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...e},t,...r]);Array.isArray(s)&&s.length>0&&Reflect.apply([].push,n,[...s])}),n}emitToChildren(e,t,...r){if(e.cachePolicy==="Persistant")this.setPersistantMessage(e,t,r),e.cachePolicy="None";else if(e.cachePolicy==="Unresolved"){if(this.setPersistantMessage(e,t,r)){const n=e.resolve,o=e.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(o),typeof n=="function"&&n(...u)};e.resolve=s}e.cachePolicy="None"}const a=[];return this.children.forEach(n=>{const o=Reflect.apply(n.emit,n,[{...e},t,...r]);Array.isArray(o)&&Reflect.apply([].push,a,[...o])}),a}on(e,t){this.callbacks.set(e,t)}};function Ut(e,t,r,a){const n=new ha(t,e,r);if(a&&typeof a=="object")for(const o in a)n.on(o,a[o]);return n}function Lt(e){let t=e?.[Ye];return!t&&(0,l.hasInjectionContext)()&&(t=(0,l.inject)(Ye,null)),t}var oi=class{error(e,t){const r=Lt(t.exposed);r?r.emit({name:"*"},"setErrorTip",e):t.exposed&&typeof t.exposed.setErrorTip=="function"&&t.exposed.setErrorTip(e)}reset(e){const t=Lt(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}success(e){const t=Lt(e.exposed);t?t.emit({name:"*"},"setErrorTip",""):e.exposed&&typeof e.exposed.setErrorTip=="function"&&e.exposed.setErrorTip("")}decorate(e,t,r){Array.isArray(e)||(e=[e]);const a=Lt(r.exposed),n=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),o=e.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!n&&o?a?a.emit({name:"*"},"setRequired",!0):r.exposed&&typeof r.exposed.setRequired=="function"&&r.exposed.setRequired(!0):n&&!o&&(a?a.emit({name:"*"},"setRequired",!1):r.exposed&&typeof r.exposed.setRequired=="function"&&r.exposed.setRequired(!1),this.reset(r))}getValue(e){return e.props.modelValue??e.exposed.modelValue}},Rt=new oi;function ii(e){Rt=e}function si(e){Rt?Object.assign(Rt,e):Rt=e}function ui(e,t){pt.Schema.setValidator(e,t)}function ci(e){pt.Schema.deleteValidator(e)}var ga=["blur","clear"];function di(e){ga=e}function va(){return ga}var ya=["focus","change","setValue"];function fi(e){ya=e}function ba(){return ya}function mi(e){pt.Schema.messages(e)}function Mt(...e){const t=[];return e.forEach(r=>{r.forEach(a=>{const n=t.findIndex(o=>o.type===a.type);n!==-1&&t.splice(n,1),t.push(a)})}),t}function ll(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}var it=Symbol("ValidateSchemaKey"),Sa=class{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(e,t,r){this.parent=e,this.descriptor=t,this.proxy=r,(this.descriptor.validate??!0)&&this.init()}init(){this.descriptor.pureDataValidate!==!0&&this.descriptor.valueName&&this.descriptor.context?.attrs&&(this.scope=(0,l.effectScope)(!0),this.scope.run(()=>{(0,l.watchEffect)(()=>{const e=ll(Mt(this.attrRules,this.rules)),t=[],r=this.descriptor.context?.attrs??{};for(let n in r){let o=r[n];if(this.hasValidator(n,!0)){if(o===!1)continue;let u={type:n};o!==null&&typeof o=="object"&&Object.assign(u,o),t.push(u);continue}let s=this.getValidator(n);if(s!==null){let u={type:n,validator:s};t.push(u)}}this.attrRules=ll(t);const a=Mt(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(a,e)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(e,...t){const r=this.descriptor.validateHandler;if(r&&typeof r[e]=="function")return Reflect.apply(r[e],r,[...t]);const a=Rt;return a&&typeof a[e]=="function"?Reflect.apply(a[e],a,[...t]):null}decorate(e,t){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",e,t,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(e){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",e,this.proxy)}getValue(){return this.execHandler("getValue",this.proxy)}setValidator(e,t,r=!1){r?pt.Schema.setValidator(e,t):this.validators[e]=t}getValidator(e){let t=this.validators[e]??null;return t||(t=this.parent?.getValidator(e)??null),t}deleteValidator(e,t=!1){t?pt.Schema.deleteValidator(e):Reflect.deleteProperty(this.validators,e)}hasValidator(e,t=!1){if(t)return pt.Schema.hasValidator(e);{let r=Reflect.has(this.validators,e);return!r&&this.parent!==null&&(r=this.parent.hasValidator(e,!1)),r}}setRule(e){const t=Mt(this.attrRules,this.rules);e===null?this.rules=[]:Array.isArray(e)?this.rules=ll(e):this.rules=ll([e]);const r=Mt(this.attrRules,this.rules);(0,l.nextTick)(()=>{this.decorate(r,t)})}clear(){this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let e=Mt(this.attrRules,this.rules);const t=this.descriptor.fieldName??"value";if(e.length>0){const r={[`${t}`]:e},a=this.getValue(),n={[`${t}`]:a},o=new pt.Schema(r),s=this.proxy??n;return o.validate(n,{context:s}).then(u=>{if(u.pass)this.success();else{let i="error";Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors[0].message??i,u.errors=[u.errors[0]],u.errors[0].ref=s),this.error(i)}return u}).catch(u=>{const i=u.message??`${u}`;return this.error(i),u})}}return Promise.resolve({pass:!0})}};function vl(e,t,r){r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string";const a={exposed:e,get $el(){return r.templateRefProxy?.$el},get props(){return r.props},get attrs(){return r.context?.attrs}};if(!r.validateHandler&&r.valueName!=="modelValue"){const n=r.valueName;r.validateHandler={getValue(o){return o.props?.[n]??o.exposed[n]}}}return new Sa(t,r,a)}var cl=Symbol.for("EventEmitterKey"),wa=class{register=new Map;emitFn;constructor(e){this.emitFn=e??null}destroy(){this.emitFn=null,this.register.clear()}off(e,t){let r=this.register.get(e);if(r&&Array.isArray(r)){let a=r.findIndex(n=>n===t);a!==-1&&r.splice(a,1)}}on(e,t){let r=this.register.get(e);r||(r=new Array,this.register.set(e,r)),r.push(t)}emit(e,...t){const r=this.register.get(e);r&&r.forEach(a=>{try{Reflect.apply(a,null,[e,...t])}catch(n){console.error(n.message,n)}}),this.emitFn&&Reflect.apply(this.emitFn,null,[e,...t])}};function Ke(e,t){let r=null;return function(...a){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...a])},t)}}function xa(e,t){let r=0;return function(...a){const n=new Date().getTime();n-r<t||(r=n,Reflect.apply(e,null,[...a]))}}function pi(e,t){const r=Ke((a,n)=>{e=a,n()},t);return(0,l.customRef)((a,n)=>({get(){return a(),e},set(o){r(o,n)}}))}function hi(e){let t=!1;return function(...r){t||(t=!0,Reflect.apply(e,null,[...r]))}}function yl(e,t,r,a=0,n=!0,o){let s=t,u=0;if(n){const f=e();if(u++,f){typeof o=="function"&&o(!0);return}if(u>r){typeof o=="function"&&o(!1);return}}const i=()=>{const f=e();if(u++,f){typeof o=="function"&&o(!0);return}if(u>r){typeof o=="function"&&o(!1);return}s+=a,setTimeout(i,s)};setTimeout(i,s)}var ut=Symbol("DomainKey"),Ft=Symbol("DataItemsKey"),bl=class{_parent=null;get parent(){return this._parent}set parent(e){this._parent=e}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(e){this._broadcast=e}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(e){this._validateSchema=e}componentPublicExposed={};_props=(0,l.reactive)({});_datas={};constructor(e=null){this._name=e}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={},this._datas={},this.componentPublicExposed={}}setData(e,t){this._datas[e]=t}getData(e){return this._datas[e]}hasData(e){return Reflect.has(this._datas,e)}deleteData(e){return Reflect.deleteProperty(this._datas,e)}merge(e,t=[]){for(const r in e){const a=e[r];t.length>0&&t.indexOf(a)!==-1||(this._props[r]=a)}}has(e){if(Reflect.has(this._props,e)){const t=this._props[e];if(t!=null)return!0}return this.parent==null?!1:this.parent.has(e)}delete(e){Reflect.deleteProperty(this._props,e)}set(e,t){this._props[e]=t}get(e,t){if(Reflect.has(this._props,e)){const r=this._props[e];if(r!=null)return r}return this.parent==null?t:this.parent.get(e,t)}getForParent(e,t){return this.parent==null?t:this.parent.get(e,t)}getForSelf(e){return this._props[e]}getAll(e){const t=[];let r=this;for(;r!=null;){if(Reflect.has(r._props,e)){const a=r._props[e];t.push(a)}r=r._parent}return t}},gi=new bl;function bt(){return gi}function ft(){return(0,l.inject)(ut,null)}var Kl=Symbol("OriginalDateKey");function Sn(e,t,r){const a=(0,l.hasInjectionContext)(),n=a?(0,l.getCurrentScope)():null;let o=a?(0,l.inject)(ut,null):null;o===null&&(o=bt());const s=t;let u=new bl(s);u.parent=o;const i=p=>{u?.hasData(Kl)||d(p),u?.set("modelValue",p)},f=()=>u?.getForSelf("modelValue")??null,h=()=>u?.getData(Kl)??null,d=p=>{const y={};xt(!0,y,(0,l.toRaw)(p)),u.setData(Kl,y)},c=e.props,T=e.ignorePropKeys;(0,l.isReactive)(c)||typeof c=="function"?(0,l.watch)(c,p=>{u?.merge(p,T),p.modelValue&&d(p.modelValue)},{immediate:!0}):(u.merge(c,T),c.modelValue&&d(c.modelValue));const z=(p,y)=>{u?.set(p,y)},v=p=>u?.getForSelf(p)??null;if(u.componentPublicExposed[ut]=u,(0,l.provide)(ut,u),n!==null){const p=(0,l.inject)(Ye,null),y=Ut(u.componentPublicExposed,p,s,r);u.broadcast=y,u.componentPublicExposed[Ye]=y,(0,l.provide)(Ye,y),u.componentPublicExposed.broadcast=($,q,...j)=>{if(y)return Reflect.apply(y.emit,y,[$,q,...j])};const x=(0,l.inject)(it,null),R=vl(u.componentPublicExposed,x,{componentName:"",context:e.context});u.validateSchema=R,u.componentPublicExposed[it]=R,(0,l.provide)(it,R),u.componentPublicExposed[Ft]=new Map,u.componentPublicExposed.validate=async($=!0)=>{const q=[];let j=null;const A={};let D=!1;if($===!0)j={name:"*"},D=!0;else if(Array.isArray($)&&$.length>0){const b=$;j={name:L=>L?b.indexOf(L)!==-1:!1},D=!0}else if($!=null&&typeof $=="object"){const b=$;if(b.deep!==!1){if(Object.assign(A,b),Array.isArray(b.include)&&b.include.length>0){const L=b.include;j={name:k=>k?L.indexOf(k)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const L=b.exclude;j={name:k=>k?L.indexOf(k)===-1:!1}}else j={name:"*"};D=!0}}if(D&&j){A.deep=!1;const b=y?.emitToChildren(j,"validate",A);b&&Reflect.apply([].push,q,b)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(b=>{let L=[];return b.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(L=[...L,...k.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})};const M=e.context;u.componentPublicExposed.setNameValidateRules=($,q=!0,j=!1)=>{if(j===!0){Reflect.ownKeys($).forEach(A=>{let D=String(A);const b={componentName:"",fieldName:D,pureDataValidate:!0,context:M};if(u){const L=Ca(u,D,b,y,R);u.componentPublicExposed[Ft].set(D,L);const k=$[D];k&&L.validateSchema.setRule(k)}});return}if(q){const A=Reflect.ownKeys($);y?.emitToChildren({name:D=>A.includes(D),cachePolicy:"Persistant",uniqueId:"validateRules"},"setNameValidateRules",$,!1)}},u.componentPublicExposed.clearValidate=($=!0)=>{let q=null;const j={};let A=!1;if($===!0)q={name:"*"},A=!0;else if(Array.isArray($)&&$.length>0){const D=$;q={name:b=>b?D.indexOf(b)!==-1:!1},A=!0}else if($!=null&&typeof $=="object"){const D=$;if(D.deep!==!1){if(Array.isArray(D.include)&&D.include.length>0){const b=D.include;q={name:L=>L?b.indexOf(L)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const b=D.exclude;q={name:L=>L?b.indexOf(L)===-1:!1}}else q={name:"*"};Object.assign(j,D),A=!0}}A&&q&&(j.deep=!1,y?.emitToChildren(q,"clearValidate",j))},u.componentPublicExposed.resetFields=$=>{const q=f();if(!q)return;const j={};if(xt(!0,j,h()??{}),Array.isArray($))$.forEach(A=>{q[A]=j[A]});else if($&&Array.isArray($.include))($.include??[]).forEach(A=>{q[A]=j[A]});else if($&&Array.isArray($.exclude)){let A=$.exclude??[];Reflect.ownKeys(j).forEach(D=>{A.includes(D)||(q[D]=j[D])})}else Object.assign(q,j);u?.componentPublicExposed?.clearValidate($)},u.componentPublicExposed.setModelValue=($,q)=>{if(!q||q===s)i($);else{const j={name:q,messagingPolicy:"Once"};y?.emitToChildren(j,"setModelValue",$)}},u.componentPublicExposed.getModelValue=()=>f(),u.componentPublicExposed.setDomainProperty=($,q)=>{z($,q)},u.componentPublicExposed.getDomainProperty=$=>v($),setTimeout(function(){y?.pull()},0)}(0,l.onScopeDispose)(function(){u?.validateSchema&&u.validateSchema.destroy(),u?.broadcast&&u?.broadcast?.destroy(),u.componentPublicExposed[Ft]&&u.componentPublicExposed[Ft].clear(),u?.destroy(),u=null});const m=e.context?.expose;return{domain:u,exposeApi:(p={})=>{Object.assign(u.componentPublicExposed,p),m?.(u.componentPublicExposed)}}}function Na(e,t){let r=(0,l.inject)(ut,null);r===null&&(r=bt());let a=new bl(t);a.parent=r;const n=e.props,o=e.ignorePropKeys;(0,l.isReactive)(n)||typeof n=="function"?(0,l.watch)(n,u=>{a?.merge(u,o)},{immediate:!0}):a.merge(n,o),a.componentPublicExposed[ut]=a,(0,l.provide)(ut,a),(0,l.onScopeDispose)(()=>{a?.destroy(),a=null});const s=e.context?.expose;return{domain:a,exposeApi:(u={})=>{Object.assign(a.componentPublicExposed,u),s?.(a.componentPublicExposed)}}}function Te(e,t,r){const a={},n=t??e.componentName??"";let o=Ut(a,(0,l.inject)(Ye,null),n,r);a[Ye]=o,(0,l.provide)(Ye,o),a.broadcast=(d,c,...T)=>o?Reflect.apply(o.emit,o,[d,c,...T]):null;const s=(0,l.inject)(it,null);e.fieldName=e.fieldName??n;let u=vl(a,s,e);a[it]=u,(0,l.provide)(it,u),a.validate=async(d=null)=>{if(!u)return Promise.resolve({pass:!0});const c=[];let T=null;const z={};let v=!1,m=!1;if(d===!0)T={name:"*"},m=!0,v=!0;else if(Array.isArray(d)&&d.indexOf(n)!==-1){const p=d;T={name:y=>y?p.indexOf(y)!==-1:!1},m=!0,v=!0}else if(d&&typeof d=="object"){const p=d,y=p.ignoreDisabled??!0,x=p.ignoreReadonly??!0,R=p.ignoreHidden??!0;y===!0&&e.disabled===!0||x===!0&&e.readonly===!0||R===!0&&an(e.templateRefProxy?.$el??e.templateRefProxy)?m=!1:(Array.isArray(p.include)&&p.include.indexOf(n)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(n),m=!0),Object.assign(z,p),v=p.deep??!1}if(m){const p=u?.validate();c.push(p)}if(v&&T){z.deep=!1;const p=o?.emitToChildren(T,"validate",z);p&&Reflect.apply([].push,c,p)}return c.length==1?c[0]:c.length>1?Promise.all(c).then(p=>{let y=[];return p.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(y=[...y,...x.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>u?.setRule(d),a.setNameValidateRules=(d,c=!1)=>{const T=d[n];T&&u?.setRule(T),c&&o&&o.emitToChildren({name:z=>Reflect.ownKeys(d).includes(z)},"setNameValidateRules",d,!1)},a.clearValidate=(d=!0)=>{if(!u)return;let c=null;const T={};let z=!1,v=!1;if(d===!0)c={name:"*"},v=!0,z=!0;else if(Array.isArray(d)&&d.indexOf(n)!==-1){const m=d;c={name:p=>p?m.indexOf(p)!==-1:!1},v=!0,z=!0}else if(d&&typeof d=="object"){const m=d;(m.ignoreHidden??!0)===!0&&an(e.templateRefProxy?.$el??e.templateRefProxy)?v=!1:(Array.isArray(m.include)&&m.include.indexOf(n)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(n),v=!0),Object.assign(T,m),z=m.deep??!1}v&&u?.clear(),z&&c&&(T.deep=!1,o?.emitToChildren(c,"clearValidate",T))};let i=new wa(e.context?.emit);a[cl]=i,a.triggerEvent=(d,...c)=>{i.emit(d,...c)};const f=Ke((d="validate")=>{u&&(d==="reset"?u.clear():u.validate())},60);(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:va()).forEach(d=>{i&&i.on(d,c=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ba()).forEach(d=>{i&&i.on(d,c=>{f("reset")})}),setTimeout(function(){o?.pull()},0),(0,l.onScopeDispose)(()=>{o?.destroy(),o=null,u?.destroy(),a[it]=null,u=null,i?.destroy(),a[cl]=null,i=null,a.broadcast=null,a.validate=null,a.setValidateRule=null,a.setNameValidateRules=null,a.clearValidate=null});const h=e.context?.expose;return{broadcast:o,validateSchema:u,emitEvent:(d,...c)=>{i&&Reflect.apply(i.emit,i,[d,...c])},onEvent:(d,c)=>{i&&Reflect.apply(i.on,i,[c])},offEvent:(d,c)=>{i&&Reflect.apply(i.off,i,[c])},componentPublicExposed:a,exposeApi:(d={})=>{Object.assign(a,d),h?.(a)}}}function Ca(e,t,r,a,n){const o={},s=t??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[s]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,s):!1}};r.fieldName=s,r.validateHandler={getValue(d){return u.getValue()}};let i=vl({},n,r);o.validate=async(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let T=!1,z=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)z=!0,T=!0;else if(d&&typeof d=="object"){const v=d;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),z=!0,T=v.deep??!1}else typeof d=="boolean"&&(T=d),z=!0;if(z&&i){const v=i.validate();c.push(v)}if(T){let v=null;const m={};if(d===!0)v={name:"*"};else if(Array.isArray(d)&&d.length>0){const p=d;v={name:y=>y?p.indexOf(y)!==-1:!1}}else if(d!=null&&typeof d=="object"){const p=d;if(Object.assign(m,p),Array.isArray(p.include)&&p.include.length>0){const y=p.include;v={name:x=>x?y.indexOf(x)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const y=p.exclude;v={name:x=>x?y.indexOf(x)===-1:!1}}else v={name:"*"}}if(v&&f){m.deep=!1;const p=f.emitToChildren(v,"validate",m);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let m=[];return v.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(m=[...m,...p.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>i?.setRule(d),o.setNameValidateRules=d=>{const c=d[s];c&&i?.setRule(c)};let f=Ut(o,a,s);(0,l.onScopeDispose)(()=>{i=null,f=null});const h=r.context?.expose;return{broadcast:f,validateSchema:i,componentPublicExposed:o,exposeApi:(d={})=>{Object.assign(o,d),h?.(o)}}}function _t(e,t){let r={};if(t){const o=(0,l.inject)(Ye,null),s=Ut(r,o,t,{});r[Ye]=s,(0,l.provide)(Ye,s)}let a=new wa(e.context?.emit);r[cl]=a,r.triggerEvent=(o,...s)=>{a.emit(o,...s)},(0,l.onScopeDispose)(()=>{a?.destroy(),Reflect.deleteProperty(r,cl),r=null,a=null});const n=e.context?.expose;return{emitEvent:(o,...s)=>{a&&Reflect.apply(a.emit,a,[o,...s])},onEvent:(o,s)=>{a&&Reflect.apply(a.on,a,[s])},offEvent:(o,s)=>{a&&Reflect.apply(a.off,a,[s])},componentPublicExposed:r,exposeApi:(o={})=>{Object.assign(r,o),n?.(r)}}}var Se=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${pe(e,t)}px`:"",vi=Se;function pe(e,t=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let n=Number(e.substring(0,r)),o=1;if(dt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return n*=o,n}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const a=Number(e);return isNaN(a)?0:a}var ct="PageStateKey";function Je(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=pe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=pe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=pe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=pe(e.right))),t}function sn(e,t,r={},a=!0,n=-1,o=-1,s=0,u=0){if(e.headerHeight=pe(r.headerHeight??t.headerHeight??-1),e.headerPadding=Je(r.headerPadding??t.headerPadding),e.footerHeight=pe(r.footerHeight??t.footerHeight??-1),e.footerPadding=Je(r.footerPadding??t.footerPadding),e.contentPadding=Je(r.contentPadding??t.contentPadding),a){const i=r.height??t.height;i?e.height=pe(i,o):e.height=pe(o)-pe(s,o)-pe(u,o),e.width=pe(r.width??t.width??0,n)}}function za(e,t={}){const r={top:null,bottom:null,right:null,left:null},a={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},n=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});n&&(a.safeAreaTop=pe(n.top),a.safeAreaBottom=pe(n.bottom),a.safeAreaLeft=pe(n.left),a.safeAreaRight=pe(n.right));const o=e.get("pageLayout");if(!o)return null;sn(a,o,t,!0,e.get("rootWidth")??-1,e.get("rootHeight")??-1,e.get("headerBarHeight")??0,e.get("footerBarHeight")??0);const s=(0,l.reactive)(a),u=e.getForParent(ct);u&&(a.height=dl(e,u),a.width=fl(e,u),(0,l.watch)([()=>dl(e,u),()=>fl(e,u)],([f,h])=>{s.height=f,s.width=h}));const i=!u;return(0,l.watch)([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([f,h,d=-1,c=-1,T=0,z=0])=>{sn(s,h,t,i,d,c,T,z)}),e.set(ct,s),s}function Sl(e){return e.get(ct)}function wl(e,t){if(t=t??e.get(ct),t&&t.headerMounted){const r=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+r}return 0}function xl(e,t){if(t=t??e.get(ct),t&&t.footerMounted){const r=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+r}return 0}function dl(e,t){if(t=t??e.get(ct),t){if(t.contentInnerHeight)return t.contentInnerHeight;const r=wl(e,t),a=xl(e,t),n=pe(t.contentPadding.top??0),o=pe(t.contentPadding.bottom??0);return t.height-r-a-n-o}return 0}function fl(e,t){if(t=t??e.get(ct),t){const r=pe(t.contentPadding.left??0),a=pe(t.contentPadding.right??0);return t.contentInnerWidth??t.width-r-a}return 0}function yi(e){return!!e.getForParent(ct)}var wn=Symbol.for("InnerPageScopeKey");function xn(e){(0,l.provide)(wn,e)}function Gt(e=!1){return(0,l.inject)(wn,e)}var Nn=Symbol.for("AbstractPageScopeKey");function ka(e){(0,l.provide)(Nn,e)}function Xt(e=!1){return(0,l.inject)(Nn,e)}function Ea(e=!1){const t=Xt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.headerBar??e:e}function _a(e=!1){const t=Xt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.footerBar??e:e}function Ta(e=!1){const t=Xt(e);return typeof t=="boolean"?t:t&&typeof t=="object"?t.content??e:e}var Pe=(function(e){return e[e.Parent=0]="Parent",e[e.Near=1]="Near",e})({});function nl(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ae(e,t,r=Pe.Near,a){const n=ft();return n==null?e:r===Pe.Parent?(0,l.computed)(()=>{const o=n.getAll(t);for(let u=o.length-1;u>=0;u--){const i=o[u];if(nl(i,a))return i}const s=e.value;return nl(s,a)?s:null}):(0,l.computed)(()=>{const o=e.value;if(nl(o,a))return o;const s=n.getAll(t);for(let u=0;u<s.length;u++){const i=s[u];if(nl(i,a))return i}return null})}function $a(e){return Ae(e,"readonly",Pe.Near)}function Ba(e){return Ae(e,"disabled",Pe.Near)}function Va(e){return Ae(e,"browse",Pe.Near)}function Re(e){const t=(0,l.ref)(null),r=(0,l.ref)(null),a=Ba((0,l.computed)(()=>r.value??e.disabled)),n=(0,l.ref)(null);return{itemTemplateRef:t,innerDisabled:r,disabled:a,innerReadonly:n,readonly:$a((0,l.computed)(()=>n.value??e.readonly)),browse:Va((0,l.computed)(()=>e.browse))}}function ye(e,t="modelValue",r=null,a){const n=(0,l.toRef)(e,t);let o=n.value;typeof r=="function"&&(o=r(n.value));const s=(0,l.ref)(o);return(0,l.watch)(n,u=>{if(typeof r=="function"){const i=r(u);i!==s.value&&(s.value=i,a&&a("setValue",i))}else u!==s.value&&(s.value=u,a&&a("setValue",u))}),s}var Ma=new Map,ml=new Map,Cn=null;function bi(e){Cn=e}function Si(){return Cn}function tt(){return Cn?.()??null}function Pa(e,t,r){if(r){let a=ml.get(r);a||(a=new Map,ml.set(r,a)),a.set(e,t)}else Ma.set(e,t)}function je(e,t){let r=null;if(t){let a=ml.get(t);a&&(r=a.get(e))}return r||(r=Ma.get(e)),r}function wi(e,t){for(let r in e){const a=e[r];Pa(r,a,t)}}function xi(e){ml.delete(e)}function Ni(){return{top:0,left:0,bottom:0,right:0}}function Ci(){return dt?{rootWidth:document.documentElement.clientWidth||document.body.clientWidth,rootHeight:document.documentElement.clientHeight||document.body.clientHeight,pageLayout:{}}:{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function zi(e,t){let r=e;if(t.componentPrefix){const a=r.indexOf("-");a!==-1?r=`${t.componentPrefix}${r.slice(a)}`:r=`${t.componentPrefix}-${r}`}return Ht(r)}var ki=class{packages;installers;_version;get version(){return this._version}constructor(e,t,r){this.packages=e,this.installers=t,this._version=r}install(e,t={}){t?.install!==!1&&(this.packages.forEach(a=>{if(a.install)e.use(a,t);else if(a.name){const n=zi(a.name,t);e.component(n,a)}}),this.installers.forEach(a=>{a(e,t)}));const r=bt();if(t.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a={...t},n=Ke(()=>{const o={...a};this.updateLayout(o,r)},120);new window.ResizeObserver(n).observe(window.document.body)}this.updateLayout(t,r)}updateLayout(e,t){const r=e.headerBarHeight??0,a=e.footerBarHeight??0,n=xt({},Ni(),e.safeAreaInset),o=Ci(),s=xt({},o.pageLayout,e.pageLayout);t=t??bt(),t.set("safeAreaInset",n),t.set("headerBarHeight",r),t.set("footerBarHeight",a),t.set("pageLayout",s),t.set("rootWidth",o.rootWidth),t.set("rootHeight",o.rootHeight);const u=["install","componentPrefix","safeAreaInset","headerBarHeight","footerBarHeight","pageLayout","rootWidth","rootHeight"];for(const i in e)u.indexOf(i)===-1&&t.set(i,e[i])}setScopeGetter(e){bi(e)}getScopeGetter(){return Si()}setAPI(e,t,r){Pa(e,t,r)}getAPI(e,t){return je(e,t)}batchSetAPI(e,t){wi(e,t)}clearScopeAPI(e){xi(e)}getRootDomain(){return bt()}},Ei=[C.ElAffix,C.ElAlert,C.ElAutocomplete,C.ElAutoResizer,C.ElAvatar,C.ElBacktop,C.ElBadge,C.ElBreadcrumb,C.ElBreadcrumbItem,C.ElButton,C.ElButtonGroup,C.ElCalendar,C.ElCard,C.ElCarousel,C.ElCarouselItem,C.ElCascader,C.ElCascaderPanel,C.ElCheckTag,C.ElCheckbox,C.ElCheckboxButton,C.ElCheckboxGroup,C.ElCol,C.ElCollapse,C.ElCollapseItem,C.ElCollapseTransition,C.ElColorPicker,C.ElConfigProvider,C.ElContainer,C.ElAside,C.ElFooter,C.ElHeader,C.ElMain,C.ElDatePicker,C.ElDescriptions,C.ElDescriptionsItem,C.ElDialog,C.ElDivider,C.ElDrawer,C.ElDropdown,C.ElDropdownItem,C.ElDropdownMenu,C.ElEmpty,C.ElForm,C.ElFormItem,C.ElIcon,C.ElImage,C.ElImageViewer,C.ElInput,C.ElInputNumber,C.ElLink,C.ElMenu,C.ElSubMenu,C.ElMenuItem,C.ElMenuItemGroup,C.ElPageHeader,C.ElPagination,C.ElPopconfirm,C.ElPopover,C.ElPopper,C.ElProgress,C.ElRadio,C.ElRadioButton,C.ElRadioGroup,C.ElRate,C.ElResult,C.ElRow,C.ElScrollbar,C.ElSelect,C.ElOption,C.ElOptionGroup,C.ElSelectV2,C.ElSkeleton,C.ElSkeletonItem,C.ElSlider,C.ElSpace,C.ElSteps,C.ElStep,C.ElSwitch,C.ElTable,C.ElTableColumn,C.ElTableV2,C.ElTabs,C.ElTabPane,C.ElTag,C.ElTimePicker,C.ElTimeSelect,C.ElTimeline,C.ElTimelineItem,C.ElTooltip,C.ElTransfer,C.ElTree,C.ElTreeSelect,C.ElTreeV2,C.ElUpload,C.ElStatistic,C.ElCountdown,C.ElSegmented,C.ElAnchor,C.ElAnchorLink,C.ElWatermark,C.ElMessageBox,C.ElMessage,C.ElNotification,C.ElSplitter],_i=[C.ElInfiniteScroll,C.ElLoading,C.ElMessage,C.ElMessageBox,C.ElNotification,C.ElPopoverDirective],Ti=(e,t={})=>{const r=t.componentPrefix??"fox";Ei.forEach(a=>{if(typeof a.name=="string"){let n="";const o=pa(a.name),s=o.indexOf("-");s!==-1?n=`${r}${o.slice(s)}`:n=`${r}-${o}`,n=Ht(n),e.component(n,a)}else e.use(a)}),_i.forEach(a=>{e.use(a)})};function ce(e){const t=`fox-${e}`,r=Ht(t);return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=r,a.install=(n,o)=>{let s=a.name;o?.componentPrefix&&(s=`${o.componentPrefix}-${a.baseName}`,s=Ht(s)),n.component(s,a)},(0,l.defineComponent)(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,(0,l.defineComponent)(a)}}}var Ne={browse:{type:[String],required:!1,default:()=>null},disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},$e={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Aa={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Ia={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!0},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},La=[];for(const e in Ia)La.push(e);var $i={name:{type:String,required:!1,default:()=>""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Bi={...Ne,...Aa,...$i},Vi=(e,t)=>({inheritAttrs:!0,props:Bi,setup(r,a){const n=!!Xt(!1),o=Gt(!1),{domain:s,exposeApi:u}=Sn({props:r,context:a},r.name);if(s){const d=za(s,r);u({getPageContentHeight:()=>dl(s,d),getPageContentWidth:()=>fl(s,d),getPageHeaderHeight:()=>wl(s,d),getPageFooterHeight:()=>xl(s,d)}),d&&o&&(d.contentHeight="100%")}const i=(0,l.computed)(()=>({[e]:!0,"is-inner":o})),f=(0,l.computed)(()=>({})),h=(d,c=!1)=>{const T=s.componentPublicExposed;T&&typeof T.setNameValidateRules=="function"&&T.setNameValidateRules(d,!0,c)};return(0,l.watch)([()=>r.rules,()=>r.pureDataRules],([d,c],[T,z])=>{if(d&&T){const v=(0,l.toRaw)(T),m=(0,l.toRaw)(d),p=m?Reflect.ownKeys(m):[];(v?Reflect.ownKeys(v):[]).forEach(y=>{p.includes(y)||(m[y]=[])}),h(m)}if(c&&z){const v=(0,l.toRaw)(z),m=(0,l.toRaw)(c),p=m?Reflect.ownKeys(m):[];(v?Reflect.ownKeys(v):[]).forEach(y=>{p.includes(y)||(m[y]=[])}),h(m,!0)}},{deep:!0}),(0,l.onMounted)(()=>{r.rules&&h((0,l.toRaw)(r.rules)),r.pureDataRules&&h((0,l.toRaw)(r.pureDataRules),!0)}),()=>n?a.slots?.default?.():(0,l.h)("div",{class:i.value,style:f.value},[a.slots?.default?.()])}}),{componentName:Mi,create:Pi,scope:Ai}=ce("page"),Ii=Pi(Vi(Mi,Ai)),zn=Ii;function kn(e){const t=(0,l.unref)(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Nl(e){const t=(0,l.unref)(e),r=window.getComputedStyle(t,null),a=parseFloat(r.getPropertyValue("padding-left")),n=parseFloat(r.getPropertyValue("padding-right")),o=parseFloat(r.getPropertyValue("padding-top")),s=parseFloat(r.getPropertyValue("padding-bottom"));return{width:t.clientWidth-a-n,height:t.clientHeight-o-s}}var Fa={headerbar:{},radio:{},checkbox:{}};function Li(e){Object.assign(Fa,e)}function Ra(){return Fa}var Fi=(e,t,r,a=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:r},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(n,o){const s=Ea(!1),u=Gt(!1),i=s?null:ft(),f=i?Sl(i):null;f&&(f.headerMounted=!0);const h=Ra(),d=e,c=(0,l.computed)(()=>{const S={[d]:!0,[`${d}--border`]:n.border,[`${d}--fixed`]:n.fixed};return u||(S[`${d}--safe-area-inset-top`]=n.safeAreaInsetTop),S}),T=(0,l.computed)(()=>({[`${d}__inner`]:!0,[`${d}__inner--${n.align}`]:!0})),z=_e(n.height)?null:pe(n.height),v=(0,l.computed)(()=>{const S={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s)return S;if(i&&f){const B=Je(n.padding??f.headerPadding);if(Object.assign(S,B),_e(z)||(f.headerHeight=z),S.height=f.headerHeight,S.safeAreaTop=f.safeAreaTop===-1?0:f.safeAreaTop,S.safeAreaTop>0){const _=pe(B.top??0);S.top=S.safeAreaTop+_,S.height&&S.height>0&&(S.height=S.height+S.safeAreaTop)}return S}if(_e(z)||(S.height=z),n.padding){const B=Je(n.padding);Object.assign(S,B)}return S}),m=(0,l.ref)(null),p=()=>f&&m.value&&!yn(m.value)?(a||(f.headerAllHeight=kn(m.value).height),f.headerMounted=!0,!0):!1,y=Ke(p,120);let x=null;(0,l.onMounted)(()=>{s||f&&(yl(p,50,5,50,!0),window.ResizeObserver&&m.value&&(x=new window.ResizeObserver(y),x.observe(m.value)))}),(0,l.onUnmounted)(()=>{s||f&&(f.headerMounted=!1,x&&(x.disconnect(),x=null))});const R=(0,l.computed)(()=>{const S={};return s||(v.value.height!==null&&v.value.height!==void 0&&(S.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(S.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(S.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(S.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(S.paddingBottom=`${v.value.bottom}px`)),S}),M=(0,l.computed)(()=>{const S=v.value?.height;return _e(S)||S<0?!0:S>0});function $(){o.emit("back")}function q(){o.emit("click-title")}function j(){o.emit("click-right")}function A(){o.emit("click-right-text")}const D=()=>{if(!n.leftShow)return null;const S=[];if(o.slots.left)S.push(o.slots.left());else{if(o.slots.leftIcon){const B=(0,l.h)("view",{class:"left-icon",onClick:$},[o.slots.leftIcon()]);S.push(B)}else{const B=n.leftIcon??h.headerbar.Left??r,_=(0,l.h)("view",{class:"left-icon",onClick:$},[(0,l.h)(B)]);S.push(_)}if(n.leftText){const B=(0,l.h)("view",{class:"left-text",onClick:$},[n.leftText]);S.push(B)}}return S.length===0?null:(0,l.h)("view",{class:"fox-header-bar__left"},S)},b=()=>{if(!n.rightShow)return null;const S=[];if(o.slots.right)S.push(o.slots.right());else{if(n.rightText){const B=(0,l.h)("view",{class:"right-text",onClick:A},[n.rightText]);S.push(B)}if(o.slots.rightIcon){const B=(0,l.h)("view",{class:"right-icon",onClick:j},[o.slots.rightIcon()]);S.push(B)}else if(n.rightIcon){const B=(0,l.h)("view",{class:"right-icon",onClick:j},[(0,l.h)(n.rightIcon)]);S.push(B)}}return S.length===0?null:(0,l.h)("view",{class:"fox-header-bar__right"},S)},L=()=>{if(!n.titleShow)return null;const S=[],B=o.slots.default?o.slots.default():null;if(B)S.push(B);else{if(n.title){const _=(0,l.h)("view",{class:"title-text"},[n.title]);S.push(_)}if(o.slots.titleIcon){const _=(0,l.h)("view",{class:"title-icon",onClick:q},[o.slots.titleIcon()]);S.push(_)}else if(n.titleIcon){const _=(0,l.h)("view",{class:"title-icon",onClick:q},[(0,l.h)(n.titleIcon)]);S.push(_)}}return S.length===0?null:(0,l.h)("view",{class:"fox-header-bar__title"},S)},k=()=>{const S=[],B=o.slots.bottom?o.slots.bottom():null;return B&&S.push(B),S.length===0?null:(0,l.h)("view",{class:"fox-header-bar__bottom"},S)};return()=>{if(s||!M.value)return null;const S=[];if(o.slots.all)S.push(o.slots.all());else{const B=[],_=D();_&&B.push(_);const H=L();H&&B.push(H);const I=b();if(I&&B.push(I),B.length>0){const E=(0,l.h)("view",{class:T.value},B);S.push(E)}const Y=k();Y&&S.push(Y)}return S.length===0?null:(0,l.h)("view",{class:c.value,style:R.value,ref:m},S)}}}),{componentName:Ri,create:Di,scope:Oi}=ce("header-bar"),qi=Di(Fi(Ri,Oi,Me.ArrowLeft)),En=qi;function Hi(e,t,r=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(a,n){const o=_a(!1),s=Gt(!1),u=o?null:ft(),i=u?Sl(u):null,f=(0,l.computed)(()=>{const y=e,x={[y]:!0,[`${y}--${a.align}`]:!0,[`${y}--border`]:a.border,[`${y}--fixed`]:a.fixed};return s||(x[`${y}--safe-area-inset-bottom`]=a.safeAreaInsetBottom),x}),h=_e(a.height)?null:pe(a.height),d=(0,l.computed)(()=>{const y={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o)return y;if(u&&i){const x=Je(a.padding??i.footerPadding);if(Object.assign(y,x),_e(h)||(i.footerHeight=h),y.height=i.footerHeight,y.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,y.safeAreaBottom>0){const R=pe(x.bottom??0);y.bottom=y.safeAreaBottom+R,y.height&&y.height>0&&(y.height=y.height+y.safeAreaBottom)}return y}if(_e(h)||(y.height=h),a.padding){const x=Je(a.padding);Object.assign(y,x)}return y}),c=(0,l.computed)(()=>{const y=d.value?.height;return _e(y)||y<0?!0:y>0}),T=(0,l.ref)(null),z=()=>i&&T.value&&!yn(T.value)?(r||(i.footerAllHeight=kn(T.value).height),i.footerMounted=!0,!0):!1,v=Ke(z,120);let m=null;(0,l.onMounted)(()=>{o||i&&(yl(z,50,5,50,!0),window.ResizeObserver&&T.value&&(m=new window.ResizeObserver(v),m.observe(T.value)))}),(0,l.onUnmounted)(()=>{o||i&&(i.footerMounted=!1,m&&(m.disconnect(),m=null))});const p=(0,l.computed)(()=>{const y={};return o||(d.value.height!==null&&d.value.height!==void 0&&(y.height=Se(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(y.paddingTop=Se(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(y.paddingLeft=Se(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(y.paddingRight=Se(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(y.paddingBottom=Se(d.value.bottom))),y});return()=>{if(o||!c.value)return null;const y=n.slots.default?n.slots.default():[];return(0,l.h)("view",{ref:T,class:f.value,style:p.value},y)}}}}var{componentName:ji,create:Ki,scope:Wi}=ce("footer-bar"),Yi=Ki(Hi(ji,Wi)),_n=Yi;function Ui(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(r,{slots:a,attrs:n}){const o=Ta(!1),s=Gt(!1),u=o?null:ft(),i=(0,l.computed)(()=>({[e]:!0})),f=u?Sl(u):null,h=(0,l.computed)(()=>{const v={};if(o)return v;if(u&&f){if(r.padding){const q=Je(r.padding);Object.assign(f.contentPadding,q)}const m=wl(u,f),p=xl(u,f);let y="";f.contentHeight?y=`${f.contentHeight}`:y=`${f.height}px`,v.height=y;let x=pe((f&&f.contentPadding&&f.contentPadding.top)??-1);(x>=0||m>0)&&(x=x<0?0:x,v.paddingTop=`${m+x}px`);let R=pe((f&&f.contentPadding&&f.contentPadding.bottom)??-1);(R>=0||p>0)&&(R=R<0?0:R,v.paddingBottom=`${p+R}px`);const M=pe((f&&f.contentPadding&&f.contentPadding.left)??-1);M>=0&&(v.paddingLeft=`${M}px`);const $=pe((f&&f.contentPadding&&f.contentPadding.right)??-1);return $>=0&&(v.paddingRight=`${$}px`),v}if(r.padding){const m=Je(r.padding);m.left&&(v.paddingLeft=`${m.left}px`),m.top&&(v.paddingTop=`${m.top}px`),m.right&&(v.paddingRight=`${m.right}px`),m.bottom&&(v.paddingBottom=`${m.bottom}px`)}return v}),d=(0,l.ref)(null),c=()=>{if(f&&d.value){const v=Nl(d.value);f.contentInnerHeight=v.height,f.contentInnerWidth=v.width}},T=Ke(c,120);let z=null;return(0,l.onMounted)(()=>{s||o||(requestAnimationFrame(c),window.ResizeObserver&&d.value&&(z=new window.ResizeObserver(T),z.observe(d.value)))}),(0,l.onUnmounted)(()=>{s||o||z&&(z.disconnect(),z=null)}),()=>o?a.default?.():(0,l.h)(r.tag??"view",{...n,ref:d,class:i.value,style:h.value},a)}}}var{componentName:Gi,create:Xi,scope:Zi}=ce("content"),Ji=Xi(Ui(Gi,Zi)),Tn=Ji,Nt="GroupStateKey",Da=Symbol.for("GroupScopeKey");function Cl(){return(0,l.inject)(Da,!1)}function zl(e=!0){(0,l.provide)(Da,e)}function Qi(e,t={}){Reflect.ownKeys(t).forEach(r=>{if(typeof r!="string")return;const a=t[r];_e(a)||(e[r]=a)})}function es(e,t={}){const r={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qi(r,t);const a=(0,l.markRaw)({layout:(0,l.shallowRef)(r),passport:0,order:{index:0}});return e.set(Nt,a),a}function Wl(e,t,r=-1,a=-1,n=!1,o,s,u){const i=e.get(Nt);if(!i)return;const f=e.get("groupLayout")??{};r===-1&&(r=f.column??1),a===-1&&(a=f.gutter??0),o||(o=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const h=pe(o),d=pe(s);u||(u=f.type??"grid");const c=()=>{const T=t===""||t===-1,z=pe(t);let v=ke(r);const m=pe(a);if(!T){let x=(z-(v-1)*m)/v;for(;d!==-1&&x>d;)v++,x=(z-(v-1)*m)/v;for(;h!==-1&&v>1&&x<h;)v--,x=(z-(v-1)*m)/v}let p=!1;const y=i.layout;y.value.width=t,y.value.column!==v&&(y.value.column=v,p=!0),y.value.gutter!==m&&(y.value.gutter=m,p=!0),y.value.type!==u&&(y.value.type=u,p=!0),p&&(0,l.triggerRef)(y)};if(n)c();else{const T=++i.passport;setTimeout(()=>{T===i.passport&&c()},50)}}function kl(e,t=!1){let r;return t?r=e.getForParent(Nt):r=e.get(Nt),r.layout}function El(e,t=!1){let r;return t?r=e.getForParent(Nt):r=e.get(Nt),r.order}function zr(e,t=1){if(t==="stretch")return-1;const r=ke(t);return r===-1?100:100*r/e}function _l(e,t,r=1,a=0,n){const o={};let s=0;n?s=pe(n):s=zr(t.column,r),s>0&&(o.width=`${s}%`);const u=zr(t.column,a);u>0&&(o["margin-left"]=`${u}%`);const i=pe(t.gutter)/2;return i>0&&(o["padding-left"]=`${i}px`,o["padding-right"]=`${i}px`),o}function Tl(e,t,r=1,a=0){if(r==="stretch"){const i=e.index%t.column,f=i+(t.column-i);return e.index=e.index+(f-i),{"grid-column":`${i+1} / -1`}}let n=ke(r);if(n===-1){const i=e.index%t.column;return t.column,i==0?e.index=e.index+t.column:e.index=e.index+(t.column-i)+t.column,{"grid-column":"1 / -1"}}if(n>t.column){const i=e.index%t.column;return t.column,i==0?e.index=e.index+t.column:e.index=e.index+(t.column-i)+t.column,{"grid-column":"1 / -1"}}const o=ke(a)%t.column;let s=(e.index+o)%t.column,u=s+n;return u>t.column?(s=0,u=s+n,e.index=e.index+(t.column-s)+n):e.index=e.index+o+n,o>0?{"grid-column":`${s+1} / span ${n}`}:{"grid-column-start":`span ${n}`}}var Oa=Symbol("RollingStateKey");function ts(e){(0,l.provide)(Oa,e)}function ls(){return(0,l.inject)(Oa,null)}function un(e){let t=0;const r=window.getComputedStyle(e,null);if(r.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(r.getPropertyValue("padding-top")),n=parseFloat(r.getPropertyValue("padding-bottom"));t=e.clientHeight-a-n}else t=e.offsetHeight;return t}function ns(e){let t=un(e);if(t<=0){const r=e.cloneNode(!0);r.style=`width: ${e.offsetWidth}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),t=un(r),document.body.removeChild(r)}return t}function rs(e,t,r){const a=typeof e=="number"?e:parseInt(e),n=typeof t=="number"?t:parseInt(t),o=typeof r=="number"?r:parseInt(r);if(a<=0)return"1fr";const s=(a-(n-1)*o)/n;return s>0?`${s}px`:"1fr"}function qa(e){const t=[];return e.forEach(r=>{r.type===l.Fragment&&Array.isArray(r.children)?t.push(...qa(r.children)):t.push(r)}),t}function as(e){return!(e.type===l.Comment||e.type===l.Text&&typeof e.children=="string"&&e.children.trim()==="")}function $l(e){function t(){return qa(e?.()??[]).filter(as)}return{getChildren:t}}var os={...Ne,...Aa,...Ia};function is(e,t,r){return{props:os,emits:["update:collapse","header-click"],setup(a,n){const{domain:o,exposeApi:s}=Sn({props:a,ignorePropKeys:La,context:n},a.prop??a.name),u=es(o,{type:a.type}),i=Cl();zl(!0);const f=a.rollingDisplay?ls():null,h=(0,l.ref)(null),d=(0,l.computed)(()=>a.rollingDisplay?f&&!f.disabled:!1),c=(0,l.computed)(()=>i&&o?kl(o,!0).value:null),T=(ee,re=!1)=>{const J=o?.componentPublicExposed;J&&typeof J.setNameValidateRules=="function"&&J.setNameValidateRules(ee,!0,re)};(0,l.watch)([()=>a.rules,()=>a.pureDataRules],([ee,re],[J,V])=>{if(ee&&J){const g=(0,l.toRaw)(J),w=(0,l.toRaw)(ee),F=w?Reflect.ownKeys(w):[];(g?Reflect.ownKeys(g):[]).forEach(X=>{F.includes(X)||(w[X]=[])}),T(w)}if(re&&V){const g=(0,l.toRaw)(V),w=(0,l.toRaw)(re),F=w?Reflect.ownKeys(w):[];(g?Reflect.ownKeys(g):[]).forEach(X=>{F.includes(X)||(w[X]=[])}),T(w,!0)}},{deep:!0});const z=e,v=(0,l.computed)(()=>{const ee={};ee.height=B.value;const re=i?El(o,!0):null;if(c.value&&re){if(c.value.type==="grid"){const J=Tl(re,c.value,a.span,a.offset);Object.assign(ee,J)}else if(c.value.type==="flow"){const J=_l(re,c.value,a.span,a.offset,a.width);Object.assign(ee,J)}}else a.width&&(ee.width=Se(a.width));return ee}),m=(0,l.computed)(()=>{const ee=u.layout.value.type;return ee==="grid"||ee==="flow"?{[`${z}--${ee}`]:!0,[`${z}--${ee}-justify-${a.justify}`]:!0,[`${z}--${ee}-align-${a.align}`]:!0,[`${z}--gutter`]:!0}:{[`${z}--${ee}`]:!0,[`${z}--gutter`]:!0}}),p=(0,l.computed)(()=>{if(u.layout.value.type==="grid"){let ee="";if(a.columnWidth)ee=`repeat(auto-fill, ${a.columnWidth})`;else{const re=rs(j.value,u.layout.value.column,u.layout.value.gutter);ee=`repeat(${u.layout.value.column}, ${re})`}return{"column-gap":`${u.layout.value.gutter}px`,"grid-template-columns":ee}}}),y=(0,l.toRef)(a,"gutter"),x=(0,l.toRef)(a,"column"),R=(0,l.computed)(()=>i||d.value?!0:fe(a.isWrap)),M=[],$=ee=>{M.push(ee)},q=()=>{let ee=M.length;M.splice(0,ee)},j=(0,l.ref)(-1),A=ee=>{const re=Nl(ee).width;re>0&&re!==j.value&&(j.value=re)};Wl(o,j.value,x.value,y.value,!0,a.minItemWidth,a.maxItemWidth,a.type),a.autoLayout&&(0,l.watch)([j,x,y],([ee,re,J])=>{u.order.index=0,Wl(o,ee,re,J,!1,a.minItemWidth,a.maxItemWidth,a.type)});const D=(0,l.computed)(()=>_.value?a.expandText??"":a.collapseText??""),b=(0,l.computed)(()=>({[`${e}__header-collapse-text`]:!0})),L=(0,l.computed)(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),k=(0,l.ref)(),S=(0,l.ref)(),B=(0,l.computed)(()=>H.value||Se(a.height)||""),_=(0,l.ref)(!1),H=(0,l.ref)(""),I=(0,l.ref)(!1);let Y=-1;const E=(ee,re=!0)=>{const J=k.value;if(J&&_.value!==ee){if(Y=Y===-1?ns(J):Y,I.value=!0,re)if(J.style["will-change"]="height",J.ontransitionend=function(){J.ontransitionend=null,this.style["will-change"]="auto",ee||(H.value="",I.value=!1)},ee){let V=0;a.collapseHeight?V=pe(a.collapseHeight):S.value&&S.value.classList.contains(`${e}__header`)&&(V=S.value.offsetHeight),H.value=`${Y}px`,(0,l.nextTick)(()=>{H.value=`${V}px`})}else H.value=`${Y}px`;else if(ee){let V=0;a.collapseHeight?V=pe(a.collapseHeight):S.value&&S.value.classList.contains(`${e}__header`)&&(V=S.value.offsetHeight),H.value=`${V}px`}else I.value=!1,H.value=`${Y}px`;_.value=ee,n.emit("update:collapse",ee)}};(0,l.watch)(()=>a.collapse,ee=>{E(fe(ee))});const O=ee=>{n.emit("header-click",ee)},K=()=>{U()},U=ee=>{ee=ee??!_.value,E(ee)};s({toggleCollapse:U,doLayout:()=>{M[0]&&(A(M[0]),Wl(o,j.value,x.value,y.value,!0,a.minItemWidth,a.maxItemWidth,a.type))}});let W=null,N=!0;const G=ee=>{if(a.rules&&T((0,l.toRaw)(a.rules)),a.pureDataRules&&T((0,l.toRaw)(a.pureDataRules),!0),!!dt&&(ee&&E(fe(a.collapse),!1),a.autoLayout&&Array.isArray(M)&&M.length>0)){const re=M[0];if(re&&(A(re),window.ResizeObserver)){const J=Ke(()=>A(re),120);W=new window.ResizeObserver(J),W.observe(re)}}},Z=()=>{const ee=M[0];ee&&W?.observe(ee),W?.disconnect(),W=null},le=!d.value||f?.acquire();le&&(h.value=d.value?!0:null),(0,l.onMounted)(()=>{if(le&&(G(N),N=!1),d.value&&f){let ee=null,re=f.initialHeight;f.observe(k.value,J=>{if(J!==h.value)if(J)h.value=!0,_.value||(H.value=""),ee=setTimeout(()=>{ee=null,h.value!==!1&&(G(N),N=!1)},100);else{if(ee!==null&&clearTimeout(ee),h.value=!1,!_.value)if(N)H.value=f.initialHeight;else{let V=un(k.value);V<=0?H.value=re:(H.value=`${V}px`,re=H.value)}N||Z()}})}}),(0,l.onUnmounted)(()=>{Z(),f&&f.unobserve(k.value)});const ne=(ee="right")=>{const re=[];if(D.value){const g=(0,l.h)("span",{class:b.value},[D.value]);re.push(g)}const J={class:L.value},V=r(a.collapseIcon,J);return V&&re.push(V),re.length>0?(0,l.h)("div",{class:{[`${z}__header-collapse`]:!0,[`is-${ee}`]:!0},onClick:K},re):null},ie=(ee,re,J,V)=>{const g={...m.value};if(re===0&&(g[`${z}__first`]=!0),J>=V-1&&(g[`${z}__last`]=!0),R.value===!1){const w=n.attrs.class;w&&(g[`${w}`]=!0)}return(0,l.h)("div",{ref:$,key:`${re}`,class:g,style:p.value},ee)};return()=>{const ee=a.prop??a.name;if(d.value&&h.value!==!0)return(0,l.h)(a.tag||"div",{ref:k,prop:ee,class:{[`${z}`]:!0,"is-collapse":I.value},style:v.value},[]);u.order.index=0;const re=[];let J=0;if(n.slots.header){const F=(0,l.h)("div",{key:`${J++}`,ref:S,class:{[`${z}__header`]:!0,[`${z}__first`]:!0},onClick:O},[n.slots.header()]);re.push(F)}else{const F=[],X=a.collapsePosition==="left";if(X&&a.showCollapse){const te=ne("left");te&&F.push(te)}if(a.title||n.slots.title){if(a.showMark){const te={class:{[`${z}__header-mark`]:!0}};a.markColor&&(te.style={background:a.markColor});const oe=(0,l.h)("div",te);F.push(oe)}if(n.slots.title){const te=(0,l.h)("div",{class:{[`${z}__header-title`]:!0}},[n.slots.title()]);F.push(te)}else if(a.title){const te=(0,l.h)("div",{class:{[`${z}__header-title`]:!0}},[a.title]);F.push(te)}}if(n.slots.toolbar&&F.push(n.slots.toolbar()),!X&&a.showCollapse){const te=ne("right");te&&F.push(te)}if(F.length>0){const te=(0,l.h)("div",{key:`${J++}`,ref:S,class:{[`${z}__header`]:!0,[`${z}__first`]:!0},onClick:O},F);re.push(te)}}q();const{getChildren:V}=$l(n.slots.default),g=V(),w=u.layout.value.type;if(w==="grid"){const F=ie(g,J++,0,g.length);re.push(F)}else if(w==="flow"){const F=ie(g,J++,0,g.length);re.push(F)}else for(let F=0;F<g.length;F++){const X=g[F],te=ie([X],J++,F,g.length);re.push(te)}return R.value?(0,l.h)(a.tag||"div",{ref:k,prop:ee,class:{[`${z}`]:!0,"is-collapse":I.value},style:v.value},[re]):re}}}}var{componentName:ss,create:us,scope:cs}=ce("group"),ds=(e,t)=>(e=e??Me.ArrowUp,(0,l.h)(C.ElIcon,t,{default:()=>[(0,l.h)(e)]})),fs=us(is(ss,cs,ds)),$n=fs;function ms(e){return e===window}var ps=/matrix\((.+)\)/,Bn=e=>{const t=(0,l.unref)(e);if(!t)return{x:0,y:0};if(ms(t))return{x:0,y:0};let r=0,a=0,n=t;for(;n!==null;)r+=n.offsetLeft,a+=n.offsetTop,n=n.offsetParent;let o=0,s=0,u=0,i=0;for(n=t;n!==document;){s+=n.scrollTop,o+=n.scrollLeft;const{transform:f}=window.getComputedStyle(n);if(f){const h=ps.exec(f);if(h){let d=h[1].split(/\s*,\s*/);d.length==6&&(u+=Number(d[4]),i+=Number(d[5]))}}n=n.parentNode}return r-=o,a-=s,r+=u,a+=i,{x:r,y:a}},hs=class{watchedListeners=[];add(e){this.watchedListeners.push(e)}remove(e){const t=this.watchedListeners.indexOf(e);t!==-1&&this.watchedListeners.splice(t,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(e=>{try{e()}catch{}})}},gs=class{monitorRegister=new WeakMap;watch(e,t){let r=e.parentNode;const a=document.body.parentNode;for(;r&&r!==a;){let n=this.monitorRegister.get(r);n||(n=new hs,r.addEventListener("scroll",n.listen),r===document.body&&r.addEventListener("resize",n.listen),this.monitorRegister.set(r,n)),n.add(t),r=r.parentNode}}unwatch(e,t){let r=e.parentNode;const a=document.body.parentNode;for(;r&&r!==a;){let n=this.monitorRegister.get(r);n&&(n.remove(t),n.size()===0&&(this.monitorRegister.delete(r),r.removeEventListener("scroll",n.listen),r===document.body&&r.removeEventListener("resize",n.listen))),r=r.parentNode}}},Dt=new gs,Ha={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:vs,create:ys}=ce("price"),bs=ys({props:{...Ha},setup(e){const t=(0,l.computed)(()=>({[vs]:!0})),r=(0,l.computed)(()=>e.needSymbol?e.symbol:""),a=(0,l.computed)(()=>Yt(e.price)==0?"":hl(e.price,e.decimalLength,!0,ke(e.digits),e.separator));return{classes:t,showSymbol:r,intText:(0,l.computed)(()=>{let n=a.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(0,o)}),decimalText:(0,l.computed)(()=>{let n=a.value;if(n.length==0)return"";let o=n.indexOf(".");return n.substring(o+1)})}}}),Ge=(e,t)=>{const r=e.__vccOpts||e;for(const[a,n]of t)r[a]=n;return r},Ss=["innerHTML"],ws=["innerHTML"];function xs(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createElementBlock)("view",{class:(0,l.normalizeClass)(e.classes)},[e.needSymbol&&e.position=="before"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ss)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--${e.size}`)},(0,l.toDisplayString)(e.intText),3),e.decimalText.length!=0?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},".",2)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(`fox-price--decimal-${e.size}`)},(0,l.toDisplayString)(e.decimalText),3),e.needSymbol&&e.position=="after"?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:2,class:(0,l.normalizeClass)(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ws)):(0,l.createCommentVNode)("",!0)],2)}var Bl=Ge(bs,[["render",xs]]),{componentName:Yl,create:Ns}=ce("hint-text"),Cs=Ns({components:{Price:Bl},props:{...Ha,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const r=(0,l.ref)({top:null,right:null,bottom:null,left:null}),a=(0,l.ref)({x:0,y:0}),n=(0,l.ref)(0),o=(0,l.ref)(0),s=(0,l.ref)(e.placement),u=(0,l.ref)(!1),i=(0,l.ref)(null),f=(b,L,k,S,B,_)=>{const H=document.documentElement.clientWidth||document.body.clientWidth,I=document.documentElement.clientHeight||document.body.clientHeight,Y=b.split("-");let E=[];Y[0]==="top"?E=["top","bottom","right","left"]:Y[0]==="bottom"?E=["bottom","top","right","left"]:Y[0]==="left"?E=["left","top","bottom","right"]:Y[0]==="right"&&(E=["right","top","bottom","left"]);const O={top:null,right:null,bottom:null,left:null},K=[];for(let U=0;U<E.length;U++){const P=E[U];if(K[0]=P,Y[1]&&(K[1]=Y[1]),P==="top"){const W=L.y-_-e.arrowSize-e.offset;if(W>=0){O.top=W;let N=0;Y[1]==="start"?N=L.x:Y[1]==="end"?N=L.x+k-B:N=L.x+k/2-B/2;const G=H-N-B;G<0?(N+=G,d.value=-G):d.value=0,O.left=N<0?0:N;break}}else if(P==="bottom"){const W=L.y+S+e.arrowSize+e.offset;if(W+_<=I){O.top=W;let N=0;Y[1]==="start"?N=L.x:Y[1]==="end"?N=L.x+k-B:N=L.x+k/2-B/2;const G=H-N-B;G<0?(N+=G,d.value=-G):d.value=0,O.left=N<0?0:N;break}}else if(P==="left"){const W=L.x-B-e.arrowSize-e.offset;if(W>=0){O.left=W;let N=0;Y[1]==="start"?N=L.y:Y[1]==="end"?N=L.y+S-_:N=L.y+S/2-_/2,O.top=N<0?0:N;break}}else if(P==="right"){const W=L.x+k+e.arrowSize+e.offset;if(W+B<=H){O.left=W;let N=0;Y[1]==="start"?N=L.y:Y[1]==="end"?N=L.y+S-_:N=L.y+S/2-_/2,O.top=N<0?0:N;break}}}return{bestPlacement:K.join("-"),bestInsetRect:O}},h=(b,L,k=10)=>{if(!dt||L===!1||!b)return;a.value=Bn(e.reference),n.value=e.reference.offsetWidth,o.value=e.reference.offsetHeight;const S=i.value.offsetHeight,B=i.value.offsetWidth,{bestPlacement:_,bestInsetRect:H}=f(e.placement,a.value,n.value,o.value,B,S);s.value=_,r.value=H,u.value=!0},d=(0,l.ref)(0),c=Ke(()=>{h(e.message,e.visible)},10),T=(0,l.ref)(e.visible);(0,l.watch)(()=>e.visible,b=>{T.value=b});const z=(0,l.computed)(()=>T.value&&v.value),v=(0,l.ref)(!0),m=Ke(b=>{const L=b[0];L&&(v.value=L.isIntersecting)},10),p=new IntersectionObserver(m);(0,l.watch)([()=>e.message,()=>e.visible],([b,L])=>{setTimeout(()=>{h(e.message,e.visible)},0)}),(0,l.onMounted)(()=>{setTimeout(()=>{h(e.message,e.visible)},0),Dt.watch(e.reference,c),p.observe(e.reference)}),(0,l.onBeforeUnmount)(()=>{Dt.unwatch(e.reference,c),p.unobserve(e.reference),p.disconnect()});const y=(0,l.computed)(()=>{const b={[Yl]:!0};return s.value.startsWith("top")?b["is-top"]=!0:s.value.startsWith("right")?b["is-right"]=!0:s.value.startsWith("bottom")?b["is-bottom"]=!0:s.value.startsWith("right")&&(b["is-right"]=!0),e.size==="small"?b["is-small"]=!0:e.size==="large"&&(b["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(b[`${e.customClass}`]=!0),b}),x=(0,l.computed)(()=>{const b={};return r.value.top!==null&&(b.top=`${r.value.top}px`),r.value.right!==null&&(b.right=`${r.value.right}px`),r.value.bottom!==null&&(b.bottom=`${r.value.bottom}px`),r.value.left!==null&&(b.left=`${r.value.left}px`),e.autoFit&&(b["min-width"]=`${n.value}px`),b["max-width"]=`${document.documentElement.clientWidth||document.body.clientWidth}px`,u.value&&(b.opacity="1"),e.transition||(b.transition="none"),e.zIndex&&(b["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(b,e.customStyle),b}),R=(0,l.computed)(()=>{const b=[`${Yl}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),M=(0,l.computed)(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),$=(0,l.computed)(()=>({[`${Yl}__arrow`]:!0})),q=(0,l.computed)(()=>{const b={};return e.showArrow?(b.width=`${e.arrowSize}px`,b.height=`${e.arrowSize}px`,s.value==="top"?(b.left="50%",b.bottom=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="top-start"?(b.left=`${e.arrowOffset+d.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(b.right=`${e.arrowOffset-d.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="right"?(b.left=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="right-start"?(b.left=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="right-end"?(b.left=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(b.left="50%",b.top=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(b.left=`${e.arrowOffset+d.value}px`,b.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(b.right=`${e.arrowOffset-d.value}px`,b.top=`-${e.arrowSize}px`):s.value==="left"?(b.right=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="left-start"?(b.right=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="left-end"&&(b.right=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`),b):{display:"none"}}),j=(0,l.computed)(()=>z.value&&e.closeOnClick),A=(0,l.computed)(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:z,tipRef:i,classes:y,styles:x,textClasses:R,textStyles:M,arrowClasses:$,arrowStyles:q,overlayShow:j,overlayStyle:A,onClickOverlay:()=>{T.value=!1,t.emit("update:visible",!1)}}}}),zs=["innerHTML"];function ks(e,t,r,a,n,o){const s=(0,l.resolveComponent)("Price");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[e.overlayShow?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-hint-text__overlay",style:(0,l.normalizeStyle)(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):(0,l.createCommentVNode)("",!0),(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"tipRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles)},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.textClasses),style:(0,l.normalizeStyle)(e.textStyles)},[e.type=="number"?((0,l.openBlock)(),(0,l.createBlock)(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):((0,l.openBlock)(),(0,l.createElementBlock)("span",{key:1,innerHTML:e.message},null,8,zs))],6),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(e.arrowClasses),style:(0,l.normalizeStyle)(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}var ja=Ge(Cs,[["render",ks]]),Ka=class{seed=new Date().getTime();constructor(e){this.seed=e??new Date().getTime()}get(){let e=this.seed++;return this.seed<0&&(this.seed=0),e}},cn={},Es=new Ka,St=new Map,pl=e=>{if(e){const t=document.getElementById(e);St.delete(e),t&&((0,l.render)(null,t),t.parentNode?.removeChild(t))}else{for(const t of St.keys()){const r=document.getElementById(t);r&&((0,l.render)(null,r),r.parentNode?.removeChild(r))}St.clear()}},_s=e=>{e.unmount=pl;const t=document.getElementById(e.id);if(t){const r=St.get(e.id);r?e={...cn,...r,...e}:e={...cn,...e},e.transition=!1,(0,l.render)((0,l.createVNode)(ja,e),t)}return e.id},Ts=e=>{e.unmount=pl;let t=e.id??`hinttext_${Es.get()}`;e={...cn,...e},e.id=t,St.set(t,e);const r=document.createElement("div");return r.id=e.id,(0,l.render)((0,l.createVNode)(ja,e),r),document.body.appendChild(r),t},$s=e=>e?!0:(console.warn("[FoxUI HintText]: msg不能为空"),!1),Ee={show(e,t,r={},a=!0){if(!$s(t))return;const n=r.id;return n&&St.has(n)?_s({...r,message:t,reference:e}):(a&&pl(),Ts({...r,message:t,reference:e}))},hide(e){pl(e)},install(e){e.config.globalProperties.$hintText=Ee}};function Bs(e,t,r,a=!1){return{inheritAttrs:!0,props:{...Ne,...$e},emits:["appear","disappear"],setup(n,o){const s=n.prop??o.attrs.name,u=(0,l.ref)(),{exposeApi:i}=Te({componentName:e,validate:!1,get props(){return n},context:o,get templateRefProxy(){return u.value}},s),f=ft(),h=Cl();zl(!1);const d=(0,l.computed)(()=>h&&f?kl(f,!1).value:null),c=e,T=(0,l.ref)(null),z=(0,l.computed)(()=>{const w={[c]:!0,[`${c}__gutter`]:d.value&&d.value.type!=="flow",[`${c}__stretch`]:n.span==="stretch",[`${c}__input--border`]:fe(n.hasBorder)};if(w[n.errorMarkClass]=!!I.value,w[n.warnMarkClass]=!!_.value,w[n.infoMarkClass]=!!S.value,typeof T.value=="function"){const F=T.value(s);w[F]=!0}else if(typeof T.value=="string"){const F=T.value;w[F]=!0}return w}),v=(0,l.ref)(null),m=(0,l.computed)(()=>{const w={};if(n.width)n.width!=="auto"&&(w.width=Se(n.width));else{const F=h&&f?El(f,!1):null;if(d.value&&F){if(d.value.type==="grid"){const X=Tl(F,d.value,n.span,n.offset);Object.assign(w,X)}else if(d.value.type==="flow"){const X=_l(F,d.value,n.span,n.offset,n.width);Object.assign(w,X)}}}if(typeof v.value=="function"){const F=v.value(s);F&&Object.assign(w,F)}else if(v.value&&typeof v.value=="object"){const F=v.value;Object.assign(w,F)}return w}),p=(0,l.ref)(null),y=(0,l.computed)({get:()=>p.value??fe(n.isRequired),set:w=>{p.value=w}}),x=()=>typeof n.label=="string"&&n.label.length>0||typeof o.slots.label=="function",R=Ae((0,l.toRef)(n,"labelPosition"),"labelPosition",Pe.Near),M=(0,l.computed)(()=>R&&R.value==="top"?"top":R&&R.value==="right"?"right":"left"),$=(0,l.computed)(()=>({[`${c}__main`]:!0,[`${c}__main--${M.value}`]:!0})),q=(0,l.computed)(()=>({label:!0,[`label--${M.value}`]:!0})),j=Ae((0,l.toRef)(n,"labelWidth"),"labelWidth",Pe.Near),A=(0,l.computed)(()=>j&&j.value?{width:Se(j.value)}:{}),D=(0,l.computed)(()=>({"label--string":!0,"label--required":y.value})),b=(0,l.computed)(()=>({content:!0,[n.contentClass]:!0})),L=(0,l.computed)(()=>({...n.contentStyle})),k=(0,l.shallowReactive)({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});i({setRequired(w){y.value=w},setErrorTip(w){k.errorTip=w},setErrorIcon(w){k.errorIcon=w},setWarnTip(w){k.warnTip=w},setWarnIcon(w){k.warnIcon=w},setInfoTip(w){k.infoTip=w},setInfoIcon(w){k.infoIcon=w},setCustomClassName(w){T.value=w},setCustomStyle(w){v.value=w}});const S=(0,l.computed)(()=>n.infoTip||k.infoTip),B=(0,l.computed)(()=>n.infoIcon||k.infoIcon),_=(0,l.computed)(()=>n.warnTip||k.warnTip),H=(0,l.computed)(()=>n.warnIcon||k.warnIcon),I=(0,l.computed)(()=>n.errorTip||k.errorTip),Y=(0,l.computed)(()=>n.errorIcon||k.errorIcon),E=(0,l.computed)(()=>I.value?"error":_.value?"warn":S.value?"info":""),O=()=>E.value.length>0,K=(0,l.computed)(()=>E.value==="error"?I.value:E.value==="warn"?_.value:E.value==="info"?S.value:""),U=(0,l.computed)(()=>E.value==="error"?Y.value:E.value==="warn"?H.value:E.value==="info"?B.value:null),P=(0,l.computed)(()=>{const w={[`${c}__tip`]:!0,[`${c}__tip--${E.value}`]:!0,[`${c}--animate`]:!0};return E.value==="error"&&n.errorClass?w[`${n.errorClass}`]=!0:E.value==="warn"&&n.warnClass?w[`${n.warnClass}`]=!0:E.value==="info"&&n.infoClass&&(w[`${n.infoClass}`]=!0),w}),W=(0,l.computed)(()=>{const w={};return R&&R.value==="top"||!x()?w["padding-left"]="0px":j&&j.value&&(w["padding-left"]=Se(j.value)),w}),N=(0,l.ref)();let G="";(0,l.watch)([()=>n.hintVisible,()=>n.hintText,()=>n.hintType,()=>n.hintProps],([w,F,X,te])=>{N.value&&(w&&!he(F)?G?r.show(N.value,F,{...te,id:G,type:X},!0):G=r.show(N.value,F,{...te,type:X},!0):r.hide(G))});let Z=null;const le=()=>{Z||!N.value||(Z=new IntersectionObserver(w=>{let F=!1;for(let X of w)if(X.intersectionRatio>0){F=!0,F&&o.emit("appear",X);break}F||o.emit("disappear")}),Z.observe(N.value))},ne=()=>{!Z||!N.value||(Z.unobserve(N.value),Z=null)};(0,l.watch)(()=>fe(n.appearListen),w=>{w?le():ne()}),(0,l.onMounted)(()=>{fe(n.appearListen)&&le()}),(0,l.onUnmounted)(ne);const ie=()=>{if(!x())return null;const w=[],F=o.slots?.label?.()??n.label,X=(0,l.h)("div",{class:D.value},[F]);if(w.push(X),o.slots.fixedPreTip){const te=o.slots.fixedPreTip();w.push(te)}return(0,l.h)("div",{class:q.value,style:A.value},w)},ee=()=>{const w=[];if(o.slots.prepend){const F=o.slots.prepend();w.push(F)}if(o.slots.default){const F=o.slots.default();w.push(F)}if(o.slots.append){const F=o.slots.append();w.push(F)}if(o.slots.fixedTip){const F=(0,l.h)("div",{class:[`${c}__fixed-tip`]},[o.slots.fixedTip()]);w.push(F)}return(0,l.h)("div",{ref:N,class:b.value,style:L.value},w)},re=()=>{const w=U.value;return w?typeof w=="function"?(0,l.h)("div",{class:"fox-item__tip--icon"},[w()]):(0,l.h)("div",{class:"fox-item__tip--icon"},[(0,l.h)(w)]):null},J=()=>{const w=K.value;return w?typeof w=="function"?(0,l.h)("div",{class:"fox-item__tip--text"},[w()]):(0,l.h)("div",{class:"fox-item__tip--text"},[w]):null},V=()=>{if(!O())return null;const w=[],F=re();F&&w.push(F);const X=J();return X&&w.push(X),(0,l.h)("div",{class:P.value,style:W.value},w)},g=()=>o.slots?.hide?.()??null;return()=>{const w=[],F=[],X=ie();X&&F.push(X);const te=ee();te&&F.push(te);const oe=(0,l.h)("div",{class:$.value},F);w.push(oe);const ue=V();ue&&w.push(ue);const me=g();return me&&w.push(me),(0,l.h)("div",{class:z.value,style:m.value,prop:n.prop,ref:u},w)}}}}var{componentName:Vs,create:Ms,scope:Ps}=ce("item"),As=Ms(Bs(Vs,Ps,Ee,!1)),Zt=As,Vn={span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}};function Is(e,t){return{props:Vn,setup(r,a){const n=ft(),o=Cl();zl(!1);const s=(0,l.computed)(()=>o&&n?kl(n,!1).value:null),u=e,i=(0,l.computed)(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),f=(0,l.computed)(()=>{const h={};if(r.width)r.width!=="auto"&&(h.width=Se(r.width));else{const d=o&&n?El(n,!1):null;if(s.value&&d)if(s.value.type==="grid"){const c=Tl(d,s.value,r.span,r.offset);Object.assign(h,c)}else if(s.value.type==="flow"){const c=_l(d,s.value,r.span,r.offset,r.width);Object.assign(h,c)}else return r.width&&(h.width=Se(r.width)),h}return h});return()=>{const h={class:i.value,style:f.value};return a.slots&&typeof a.slots.default=="function"?(0,l.h)("div",h,a.slots.default()):(0,l.h)("div",h)}}}}var{componentName:Ls,create:Fs,scope:Rs}=ce("slot-item"),Ds=Fs(Is(Ls,Rs)),Vl=Ds,dn={span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},divide:{type:[Boolean,String],required:!1,default:!1},gutter:{type:[String,Number],required:!1}};function Os(e,t){return{props:dn,setup(r,a){const n=e,o=(0,l.computed)(()=>({[n]:!0,[`${n}__stretch`]:r.span==="stretch",[`${n}__${r.align}`]:!0})),s=ft(),u=Cl();zl(!1);const i=(0,l.computed)(()=>{const f={};if(r.width)r.width!=="auto"&&(f.width=Se(r.width));else if(u&&s){const h=kl(s,!1),d=El(s,!1);if(h.value&&d)if(h.value.type==="grid"){const c=Tl(d,h.value,r.span,r.offset);Object.assign(f,c)}else if(h.value.type==="flow"){const c=_l(d,h.value,r.span,r.offset,r.width);Object.assign(f,c)}else r.width&&(f.width=Se(r.width))}return r.gutter&&(f.gap=Se(r.gutter)),f});return()=>{const f=[];if(a.slots.default){const h=a.slots.default();if(r.divide)for(let d=0;d<h.length;d++){if(d>0){const c=(0,l.h)("div",{class:{[`${n}__divide`]:!0}});f.push(c)}f.push(h[d])}else Reflect.apply([].push,f,h)}return(0,l.h)("div",{class:o.value,style:i.value},f)}}}}var{componentName:qs,create:Hs,scope:js}=ce("row-item"),Ks=Hs(Os(qs,js)),Ml=Ks;function Ws(e,t){const r=document.createRange();r.setStart(e,0),r.setEnd(e,e.childNodes.length);const a=r.getBoundingClientRect().width;if(a>0){t(a);return}e.classList.add("is-selectable"),setTimeout(()=>{r.setStart(e,0),r.setEnd(e,e.childNodes.length);const n=r.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(n)},500)}var Ys={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String},divide:{type:[Boolean],required:!1}};function Us(e,t,r,a=!1){return{props:{...Ys},emits:["click"],setup(n,o){const s=(0,l.ref)(null),u=(0,l.computed)(()=>{const x={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(x[`${e}--${n.type??"default"}`]=!0),n.size&&(x[`${e}--${n.size}`]=!0),x}),i=(0,l.computed)(()=>{const x={},R=n.textColor??n.color;return R&&(x.color=R),x}),f=(x,R)=>{let M=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const $=n.highlightFilter;x.indexOf($)!==-1&&(R.innerHTML=x.replace(new RegExp($,"g"),`<span>${$}</span>`),R.class["is-highlight"]=!0,M=(0,l.h)(n.tag,R))}else if(typeof n.highlightFilter=="function"){const $=n.highlightFilter(x);$&&(R.innerHTML=$,R.class["is-highlight"]=!0,M=(0,l.h)(n.tag,R))}return M},h=x=>{o.emit("click",x)};let d="";const c=()=>{const x=s.value;if(!x)return;const R=x.clientWidth;Ws(x,M=>{const $=x.innerHTML??"";he($)||M<R||(d?r?.show(x,$,{type:"text",id:d,showArrow:n.showArrow},!0):d=r?.show(x,$,{type:"text",showArrow:n.showArrow},!0)??"")})},T=()=>{d&&r?.hide(d)};let z=null;const v=x=>{z||(z=setTimeout(()=>{c(),z=null},n.showAfter??0))},m=x=>{z&&(clearTimeout(z),z=null),setTimeout(()=>{T()},n.hideAfter??0)},p=()=>{const x=s.value;x&&(x.addEventListener("mouseover",v),x.addEventListener("mouseleave",m))},y=()=>{const x=s.value;x&&(x.removeEventListener("mouseover",v),x.removeEventListener("mouseleave",m))};return(0,l.onMounted)(()=>{!fe(n.showOverflowTooltip)||!r||p()}),(0,l.onBeforeUnmount)(()=>{!fe(n.showOverflowTooltip)||!r||y()}),()=>{const x={onClick:h,class:u.value,style:i.value,ref:s};let R=null;if(fe(n.numberFormat)&&typeof o.slots.default=="function"){const $=o.slots.default();if(Array.isArray($)&&$.length===1){const q=$[0].type.toString();if(q==="Symbol(Text)"||q==="Symbol(v-txt)"){const j=ke(n.digits),A=ke(n.decimalLength),D=fe(n.autoPadding);let b=`${$[0].children}`,L=b.split("").reverse().join("");L=hl(L,A,D,j,n.separator),b=L.split("").reverse().join(""),n.highlightFilter!==void 0&&(R=f(b,x)),R||(x.innerHTML=b,R=(0,l.h)(n.tag,x))}}}else{if(n.highlightFilter!==void 0&&typeof o.slots.default=="function"){const $=o.slots.default();if(Array.isArray($)&&$.length===1){const q=$[0].type.toString();if(q==="Symbol(Text)"||q==="Symbol(v-txt)"){const j=`${$[0].children}`;R=f(j,x),R||(x.innerHTML=j,R=(0,l.h)(n.tag,x))}}}R||(R=(0,l.h)(n.tag,x,{default:o.slots.default}))}if(!n.mark&&!o.slots.mark)return R;const M=[];if(o.slots.mark){const $={[`${e}__mark-wrap`]:!0};n.type&&($[`${e}__mark-wrap--${n.type}`]=!0);const q={},j=n.color;j&&(q.color=j);const A=(0,l.h)("view",{onClick:h,class:$,style:q},{default:o.slots.mark});M.push(A)}else{const $={[`${e}__mark`]:!0};n.type&&($[`${e}__mark--${n.type??"default"}`]=!0);const q={},j=n.color;j&&(q["background-color"]=j);const A=(0,l.h)("view",{onClick:h,class:$,style:q});M.push(A)}if(n.divide){const $=(0,l.h)("div",{class:{[`${e}__divide`]:!0}});M.push($)}return M.push(R),(0,l.h)("view",{class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}},M)}}}}var{componentName:Gs,create:Xs,scope:Zs}=ce("text"),Js=Xs(Us(Gs,Zs,Ee,!1)),Ct=Js,Qs={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},teleportDisable:{type:Boolean,default:()=>!1}};function eu(e,t,r=!1){return{props:{...Qs},emits:["update:visible"],setup(a,{emit:n,slots:o,expose:s}){const u=(0,l.ref)({top:null,right:null,bottom:null,left:null}),i=(0,l.ref)(0),f=(0,l.ref)(0),h=(0,l.ref)(0),d=(0,l.ref)(0),c=(0,l.ref)(a.placement),T=(0,l.ref)(!1),z=(0,l.ref)(!1),v=(0,l.ref)(null),m=()=>typeof a.reference=="string"?document.querySelector(a.reference):a.reference,p=(E,O,K,U,P,W,N,G=!0)=>{const Z=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight,ne=E.split("-");let ie=[];G?ne[0]==="top"?ie=["top","bottom","right","left"]:ne[0]==="bottom"?ie=["bottom","top","right","left"]:ne[0]==="left"?ie=["left","top","bottom","right"]:ne[0]==="right"&&(ie=["right","top","bottom","left"]):ie=[E[0]];const ee={top:null,right:null,bottom:null,left:null},re=[];for(let J=0;J<ie.length;J++){const V=ie[J];if(re[0]=V,ne[1]&&(re[1]=ne[1]),V==="top"){const g=K-N-a.arrowSize/2-a.offset;if(g>=0){ee.top=g;let w=0;ne[1]==="start"?w=O:ne[1]==="end"?w=O+U-W:w=O+U/2-W/2;const F=Z-w-W;F<0?(w+=F,x.value=-F):x.value=0,ee.left=w<0?0:w;break}}else if(V==="bottom"){const g=K+P+a.arrowSize/2+a.offset;if(g+N<=le){ee.top=g;let w=0;ne[1]==="start"?w=O:ne[1]==="end"?w=O+U-W:w=O+U/2-W/2;const F=Z-w-W;F<0?(w+=F,x.value=-F):x.value=0,ee.left=w<0?0:w;break}}else if(V==="left"){const g=O-W-a.arrowSize/2-a.offset;if(g>=0){ee.left=g;let w=0;ne[1]==="start"?w=K:ne[1]==="end"?w=K+P-N:w=K+P/2-N/2,ee.top=w<0?0:w;break}}else if(V==="right"){const g=O+U+a.arrowSize/2+a.offset;if(g+W<=Z){ee.left=g;let w=0;ne[1]==="start"?w=K:ne[1]==="end"?w=K+P-N:w=K+P/2-N/2,ee.top=w<0?0:w;break}}}return{bestPlacement:re.join("-"),bestInsetRect:ee}},y=()=>{const E=a.visible,O=a.autoFit;if(!dt||E===!1)return;if(a.reference){const N=m(),G=Bn(N);i.value=G.x,f.value=G.y,h.value=N.offsetWidth,d.value=N.offsetHeight}else a.referenceInset&&(i.value=a.referenceInset.left,f.value=a.referenceInset.top,h.value=a.referenceInset.right-a.referenceInset.left,d.value=a.referenceInset.bottom-a.referenceInset.top);const K=v.value.offsetWidth,U=v.value.offsetHeight,{bestPlacement:P,bestInsetRect:W}=p(a.placement,i.value,f.value,h.value,d.value,K,U,O);c.value=P,u.value=W},x=(0,l.ref)(0),R=Ke(()=>{y()},10),M=(0,l.ref)(a.visible);(0,l.watch)([()=>a.visible],([E])=>{M.value=E,E?(T.value=E,setTimeout(()=>{y(),z.value=!0},0)):z.value=!1});const $=(0,l.computed)(()=>M.value&&q.value),q=(0,l.ref)(!0),j=Ke(E=>{const O=E[0];O&&(q.value=O.isIntersecting)},10),A=new IntersectionObserver(j);(0,l.watch)([()=>a.reference,()=>a.referenceInset],([E,O],[K,U])=>{!E&&!O||(setTimeout(()=>{y()},0),a.autoFit&&(K&&(Dt.unwatch(K,R),A.unobserve(K)),E&&(Dt.watch(E,R),A.observe(E))))},{immediate:!0}),(0,l.onBeforeUnmount)(()=>{a.reference&&(Dt.unwatch(a.reference,R),A.unobserve(a.reference),A.disconnect())});const D=(0,l.computed)(()=>{const E={[e]:!0};return c.value.startsWith("top")?E["is-top"]=!0:c.value.startsWith("right")?E["is-right"]=!0:c.value.startsWith("bottom")?E["is-bottom"]=!0:c.value.startsWith("left")&&(E["is-left"]=!0),E[`is-${a.effect}`]=!0,!z.value&&$.value&&(E["is-opacity"]=!0),z.value&&$.value&&(E["is-show"]=!0),$.value||(E["is-hide"]=!0),a.customClass&&typeof a.customClass=="string"&&(E[`${a.customClass}`]=!0),E}),b=(0,l.computed)(()=>{const E={};return u.value.top!==null&&(E.top=`${u.value.top}px`),u.value.right!==null&&(E.right=`${u.value.right}px`),u.value.bottom!==null&&(E.bottom=`${u.value.bottom}px`),u.value.left!==null&&(E.left=`${u.value.left}px`),a.width&&(E.width=a.width),a.zIndex&&(E["z-index"]=`${a.zIndex}`),a.customStyle&&typeof a.customStyle=="object"&&Object.assign(E,a.customStyle),E}),L=()=>{M.value=!1,n("update:visible",!1)},k=()=>a.showOverlay?(0,l.h)("div",{class:`${e}__overlay`,onClick:L}):null,S=()=>{let E=null;return o.title?E=(0,l.h)("div",{class:`${e}__title`},{default:o.title}):a.title&&(E=(0,l.h)("div",{class:`${e}__title`},[a.title])),E},B=(0,l.computed)(()=>({[`${e}__arrow`]:!0})),_=(0,l.computed)(()=>{const E={};return a.showArrow?(E.width=`${a.arrowSize}px`,E.height=`${a.arrowSize}px`,c.value==="top"?(E.left="50%",E.bottom="0",E.transform="translate(-50%, 50%)"):c.value==="top-start"?(E.left=`${a.arrowOffset+x.value}px`,E.bottom="0",E.transform="translate(-50%, 50%)"):c.value==="top-end"?(E.right=`${a.arrowOffset-x.value}px`,E.bottom="0",E.transform="translate(-50%, 50%)"):c.value==="right"?(E.left="0",E.top="50%",E.transform="translate(-50%, -50%)"):c.value==="right-start"?(E.left="0",E.top=`${a.arrowOffset}px`,E.transform="translate(-50%, 50%)"):c.value==="right-end"?(E.left="0",E.bottom=`-${a.arrowOffset}px`,E.transform="translate(-50%, 50%)"):c.value==="bottom"?(E.left="50%",E.top="0",E.transform="translate(-50%, -50%)"):c.value==="bottom-start"?(E.left=`${a.arrowOffset+x.value}px`,E.top="0",E.transform="translate(-50%, -50%)"):c.value==="bottom-end"?(E.right=`${a.arrowOffset-x.value}px`,E.top="0",E.transform="translate(-50%, -50%)"):c.value==="left"?(E.right="0",E.top="50%",E.transform="translate(50%, -50%)"):c.value==="left-start"?(E.right="0",E.top=`${a.arrowOffset}px`,E.transform="translate(50%, -50%)"):c.value==="left-end"&&(E.right="0",E.bottom=`-${a.arrowOffset}px`,E.transform="translate(50%, -50%)"),E):{display:"none"}}),H=()=>(0,l.h)("div",{class:B.value,style:_.value}),I=()=>{M.value===!1&&(T.value=!1)},Y=E=>{if(!v.value||M.value===!1)return;const{relatedTarget:O}=E;v.value.contains(O)||(M.value=!1,n("update:visible",!1))};return s({doLayout:y}),()=>{if(!T.value)return null;const E=[],O=k();O&&E.push(O);const K=[],U=S();if(U&&K.push(U),o.default){const G=o.default();K.push(G)}const P=H();P&&K.push(P);const W={ref:v,class:D.value,style:b.value,onAnimationend:I};a.leaveHide&&(W.onMouseleave=Y);const N=(0,l.h)("div",W,{default:()=>K});return E.push(N),(0,l.h)(l.Teleport,{to:a.teleport,disabled:a.teleportDisable},{default:()=>E})}}}}var{componentName:tu,create:lu,scope:nu}=ce("popover-dialog"),ru=lu(eu(tu,nu,!1)),Pl=ru,au={type:{type:[String],required:!1,default:()=>"primary"},dropdownPlacement:{type:[String],required:!1,default:()=>"bottom"},maxDisplayCount:{type:[Number],required:!1},moreText:{type:[String],required:!1},moreIcon:{type:[Object],required:!1}};function ou(e,t,r){return{props:{...dn,...au},emits:["click"],setup(a,{slots:n,attrs:o}){const{toLocaleRefs:s}=(0,Le.useFoxI18n)(t),u=s(a,["moreText"]),i=e,f=(0,l.computed)(()=>({[i]:!0}));function h(M){return M.props||{}}function d(M){return!!h(M).disabled}function c(M){return M.children??[]}const T=(0,l.ref)(),z=(0,l.computed)(()=>T.value?.$el??null),v=(0,l.ref)(!1),m=M=>{v.value=M},p=()=>{v.value=!v.value};function y(M,$){return()=>{$||(v.value=!1,h(M)?.onClick?.())}}function x(M,$){const q=c(M),j=d(M),A=y(M,j),D=[`${i}__dropdown-item`];return j&&D.push("is-disabled"),(0,l.h)("span",{class:D,onClick:A},q)}const R=M=>{const $=a.maxDisplayCount??M.length;if($>=M.length)return M;const q=[],j=$-1;for(let k=0;k<j;k++)q.push(M[k]);const A=(n.moreIcon&&n.moreIcon())??(a.moreIcon&&(0,l.h)(a.moreIcon))??(0,l.h)(r),D=(0,l.h)(Ct,{ref:k=>T.value=k,class:`${i}__dropdown-link`,"text-position":"left","show-overflow-tooltip":!1,type:a.type,onClick:p},{default:()=>u.moreText.value,mark:()=>A});q.push(D);const b=[];for(let k=j;k<M.length;k++){const S=x(M[k],k);b.push(S)}const L=(0,l.h)(Pl,{placement:a.dropdownPlacement,"onUpdate:visible":m,visible:v.value,reference:z.value,"custom-class":`${i}__popover`},{default:()=>b});return q.push(L),q};return()=>{const{getChildren:M}=$l(n?.default),$=R(M()),q=gt(a,dn);return Object.assign(q,o??{}),q.class=f.value,(0,l.h)(Ml,q,{default:()=>$})}}}}var{componentName:iu,create:su,scope:uu}=ce("buttons-item"),cu=su(ou(iu,uu,Me.ArrowDown)),Mn=cu;function De(e,t={}){return(0,l.h)(Zt,e,t)}function du(e,t,r,a,n){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[n]){let i=t;for(let f=0;i&&f<o.length;f++){let h=o[f],d=i.find(c=>c[a]===h);if(!d)break;s.push(d[r])}return s}if(Array.isArray(u))for(let i=0;i<t.length&&i<o.length;i++){let f=t[i],h=o[i];const d=f.find(c=>c[a]===h);if(!d)break;s.push(d[r])}else{let i=t;for(let f=0;i&&f<o.length;f++){let h=o[f],d=i.find(c=>c[a]===h);if(!d)break;s.push(d[r]),i=d[n]}}return s}var fu=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function mu(){return new fu(tt())}var Wa={tag:{type:[String,Object],required:!1,default:"span"},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1}};function pu(e,t){return{props:Wa,setup(r,{attrs:a,slots:n}){const o=mu(),s=(0,l.ref)([]);(0,l.watch)([()=>r.source,()=>r.params],async([i,f])=>{s.value=await o.load(r.sourceType,i,f)},{immediate:!0});const u=(0,l.computed)(()=>{if(!Array.isArray(s.value)||s.value.length===0)return r.emptyText;let i=du(r.modelValue,s.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?r.emptyText??"":i.length===1?r.optionType=="item"?`${r.modelValue}${r.separator}${i[0]}`:i[0]:i.join(r.separator)});return()=>{const i={...a};if(n.default)return n.default({text:u.value,value:r.modelValue});const f=r.tag??"span";return typeof f=="object"?(0,l.h)(f,i,{default:()=>u.value}):(0,l.h)(f,i,[u.value])}}}}var{componentName:hu,create:gu,scope:vu}=ce("mapping"),yu=gu(pu(hu,vu)),zt=yu;function He(e,t,r,a){const n="fox-browse-item";let o=null;r?o=(0,l.h)(zt,{class:[`${n}__mapping`],source:r,modelValue:e,separator:a},{default:u=>(0,l.h)(Ct,{class:[`${n}__text`]},{default:()=>u.text})}):o=(0,l.h)(Ct,{class:[`${n}__text`]},{default:()=>e});const s={label:t.default,default:()=>o};return(0,l.h)(Zt,{class:[n]},s)}var Xe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(r=>{typeof r=="string"&&r.indexOf("data-fox")!==0&&(t[r]=e[r])}),t},Ya={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:()=>!0},alwaysSystem:{type:[Boolean],default:()=>!1},showTooltip:{type:[Boolean],default:()=>!1},maxLength:{type:[String,Number]}},bu={...Ne,...$e,...Ya};function Su(e,t,r,a){return{props:bu,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(!1),p=ye(n,"modelValue",null,c),y=e,x=(0,l.computed)(()=>({[y]:!0,[`${y}__disabled`]:i.value,[`${y}__readonly`]:h.value})),R=Y=>{p.value=Y,c("update:modelValue",Y),c("input",Y)},M=Y=>{c("change",Y)};let $=ye(n,"hintText"),q=(0,l.ref)(!1);const j=Y=>{let E=Y.target.value;m.value=!0,he($.value)||(q.value=!0),c("focus",E,Y)},A=Y=>{setTimeout(()=>{q.value&&(q.value=!1),m.value=!1},0);let E=Y.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),c("blur",E,Y)},D=()=>{c("clear","")},b=(0,l.ref)(!1);let L=null;const k=()=>{n.showTooltip&&b.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{b.value=!0},150))},S=()=>{L&&(clearTimeout(L),b.value=!1,L=null)},B=(0,l.computed)(()=>b.value||q.value),_=(0,l.computed)(()=>b.value?p.value:$.value),H=(0,l.computed)(()=>Yt(n.unit)>0),I=(0,l.ref)();return T({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},select:()=>{I?.value.select()},setDisabled:Y=>{u.value=Y},setReadonly:Y=>{f.value=Y}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(p.value,o.slots);const Y={...Xe(o.attrs),ref:I,class:x.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:h.value,modelValue:p.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onChange:M,onInput:R,onFocus:j,onBlur:A,onMouseover:k,onMouseleave:S},E={};o.slots.prepend&&(E.prepend=o.slots.prepend),o.slots.append&&(E.append=o.slots.append),o.slots.prefix&&(E.prefix=o.slots.prefix),o.slots.suffix?E.suffix=o.slots.suffix:H.value&&(E.suffix=()=>[n.unit]);const O=[],K=(0,l.h)(C.ElInput,Y,E);O.push(K);const U={default:()=>O};U.label=o.slots.default,U.fixedPreTip=o.slots.fixedPreTip,U.fixedTip=o.slots.fixedTip;const P={...Fe(n,Ya),ref:s,hintText:_.value,hintVisible:B.value};return n.prop&&(P.prop=`${n.prop}_item`),r(P,U)}}}}var{componentName:wu,create:xu,scope:Nu}=ce("input-item"),Cu=xu(Su(wu,Nu,De,He)),Pn=Cu;function st(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function jt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ua(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function zu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var ku=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function Eu(){return new ku(tt())}function Ga(e,t,r){return!(st(e,t)!==st(e,r)||jt(e,t)!==jt(e,r))}function Xa(e,t,r,a){if(a.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(o=>{for(let s of a){const u=Ua(e,s);if(Array.isArray(u)&&u.length>0){const i=Xa(e,o,r,u)??[];Reflect.apply([].push,n,i)}else{let i=!1;if(r==="text")i=st(e,s)===o;else if(r==="item")i=Ga(e,s,o);else{let f=jt(e,s);f==null&&(f=st(e,s)),i=f===o}if(i){n.push(s);break}}}}),n}function _u(e){return{text:e,value:e}}var Za={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},sourceFilter:{type:[Function]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:[Boolean],default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:[Boolean],default:!1}},Tu={...Ne,...$e,...Za};function $u(e,t,r,a){return{props:Tu,emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(null),p=(0,l.ref)([]),y=(0,l.computed)(()=>p.value?p.value.map(g=>st(n,g)).join(" "):""),x=(g,w,F,X=!0)=>{if(!F||F.length==0){m.value=g,X&&(c("update:modelValue",g),c("change",g));return}const te=Xa(n,g,w,F);if(te===null){if(p.value===null||p.value.length===0)return;m.value=null,p.value=[],X&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let oe=!0;if(te.length!==p.value.length)oe=!1;else for(let ue=0;ue<te.length;ue++){const me=te[ue],ve=p.value[ue];if(!Ga(n,me,ve)){oe=!1;break}}if(!oe){p.value=te;let ue=[],me=[],ve=[];te.forEach(Ze=>{const $t=jt(n,Ze),el=st(n,Ze);ue.push($t),ve.push(el),n.valueType==="text"?me.push(el):n.valueType==="item"?me.push(Ze):me.push($t)});let we,Be,We;fe(n.multiple)?(m.value=ue,we=(0,l.toRaw)(me),Be=ve,We=(0,l.toRaw)(te)):(m.value=ue[0]??"",we=(0,l.toRaw)(me[0]??""),Be=ve[0]??"",We=(0,l.toRaw)(te[0])),X&&(c("update:modelValue",we),c("change",we,We)),c("update:text",Be)}},R=(0,l.ref)(null),M=(0,l.ref)(null),$=(0,l.computed)(()=>{let g=M.value??R.value??[];return Array.isArray(g)&&typeof n.sourceFilter=="function"&&(g=g.filter(n.sourceFilter)),g}),q=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",Pe.Near,g=>fe(g)),j=Eu(),A=async(g,w)=>{if(g){const F=await j.load("select",g,w);F.length>0?typeof F[0]=="string"?R.value=F.map(X=>_u(X)):R.value=F:R.value=null}};(0,l.watch)([()=>n.source,()=>n.params],([g,w])=>{M.value=null,A(g,w)},{immediate:!q.value});let D=!1;const b=()=>{D||(D=!0,A(n.source,n.params))};(0,l.watch)([()=>R.value,()=>n.modelValue],([g,w])=>{if(B()&&fe(n.multiple)){Qe(w,m.value)||(m.value=w);return}x(w,n.valueType,$.value,!1),c("setValue",w)}),n.source||(m.value=n.modelValue);let L=null,k=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(L=async g=>{if(g==null){M.value=null;return}k.value=!0;try{const w=await n.remoteMethod(g);w&&(M.value=w)}catch(w){M.value=null,console.error(w)}k.value=!1});let S=null;typeof n.filterMethod=="function"&&(S=async g=>{if(g==null){M.value=null;return}k.value=!0;try{const w=await n.filterMethod(g,R.value);w&&(M.value=w)}catch(w){M.value=null,console.error(w)}k.value=!1});const B=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",_=(0,l.ref)(!1),H=e,I=(0,l.computed)(()=>({[H]:!0})),Y=g=>{n.allowCreate||B()&&fe(n.multiple)?(c("update:modelValue",g),c("change",g),c("update:text",g),m.value=g):x(g,"value",$.value,!0)};let E=ye(n,"hintText"),O=(0,l.ref)(!1);const K=g=>{let w=g.target.value;_.value=!0,he(E.value)||(O.value=!0),c("focus",w,g)},U=g=>{setTimeout(()=>{O.value&&(O.value=!1),_.value=!1},0);const w=g.target.value;ie.value||c("blur",w,g)},P=()=>{c("clear","")},W=(0,l.ref)(!1);let N=null;const G=()=>{n.showTooltip&&W.value===!1&&(N&&clearTimeout(N),N=setTimeout(()=>{W.value=!0},150))},Z=()=>{N&&(clearTimeout(N),W.value=!1,N=null)},le=(0,l.computed)(()=>W.value||O.value),ne=(0,l.computed)(()=>W.value?y.value:E.value),ie=(0,l.ref)(!1),ee=g=>{ie.value=g,c("visible-change",g),g||c("selected")},re=g=>{c("remove-tag",g)},J=(g,w)=>{const F=[];return g.forEach((X,te)=>{const oe=Ua(n,X);if(Array.isArray(oe)&&oe.length>0){const ue=J(oe,w),me=st(n,X),ve={key:`${me}_${te}`,label:me};F.push((0,l.h)(C.ElOptionGroup,ve,{default:()=>ue}))}else{const ue=jt(n,X),me=st(n,X),ve=zu(n,X),we={key:`${ue}_${te}`,label:me,disabled:ve,value:ue};if(typeof w=="function")F.push((0,l.h)(C.ElOption,we,{default:()=>w(X)}));else if(n.optionType==="item"){const Be=(0,l.h)("div",{class:{"fox-select-item__option":!0}},[(0,l.h)("span",{class:{"fox-select-item__option-left":!0}},[ue]),(0,l.h)("span",{class:{"fox-select-item__option-right":!0}},[me])]);F.push((0,l.h)(C.ElOption,we,{default:()=>Be}))}else n.optionType==="value"?F.push((0,l.h)(C.ElOption,we,{default:()=>[ue]})):F.push((0,l.h)(C.ElOption,we))}}),F},V=(0,l.ref)();return T({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},setDisabled:g=>{u.value=g},setReadonly:g=>{f.value=g}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(m.value,o.slots,$.value);const g={...Xe(o.attrs),ref:V,class:I.value,clearable:n.clearable,multiple:n.multiple,placeholder:v.placeholder.value,disabled:i.value||h.value,modelValue:m.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:P,onChange:Y,onFocus:K,onBlur:U,onVisibleChange:ee,onRemoveTag:re};typeof L=="function"&&(g["remote-method"]=L,g.loading=k.value),typeof S=="function"&&(g["filter-method"]=S,g.loading=k.value);const w={};o.slots.prefix&&(w.prefix=o.slots.prefix),o.slots.empty&&(w.empty=o.slots.empty),o.slots.options?w.default=o.slots.options:w.default=()=>J($.value,o.slots.option);const F=[],X=(0,l.h)(C.ElSelect,g,w);F.push(X);const te={default:()=>F};te.label=o.slots.default,te.fixedPreTip=o.slots.fixedPreTip,te.fixedTip=o.slots.fixedTip;const oe={...Fe(n,Za),ref:s,hintText:ne.value,hintVisible:le.value,onMouseover:G,onMouseleave:Z};return n.prop&&(oe.prop=`${n.prop}_item`),q.value&&(oe["appear-listen"]=!0,oe.onAppear=b),r(oe,te)}}}}var{componentName:Bu,create:Vu,scope:Mu}=ce("select-item"),Pu=Vu($u(Bu,Mu,De,He)),An=Pu,Au=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs=a()})(e,(function(){"use strict";var r=1e3,a=6e4,n=36e5,o="millisecond",s="second",u="minute",i="hour",f="day",h="week",d="month",c="quarter",T="year",z="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var B=["th","st","nd","rd"],_=S%100;return"["+S+(B[(_-20)%10]||B[_]||B[0])+"]"}},x=function(S,B,_){var H=String(S);return!H||H.length>=B?S:""+Array(B+1-H.length).join(_)+S},R={s:x,z:function(S){var B=-S.utcOffset(),_=Math.abs(B),H=Math.floor(_/60),I=_%60;return(B<=0?"+":"-")+x(H,2,"0")+":"+x(I,2,"0")},m:function S(B,_){if(B.date()<_.date())return-S(_,B);var H=12*(_.year()-B.year())+(_.month()-B.month()),I=B.clone().add(H,d),Y=_-I<0,E=B.clone().add(H+(Y?-1:1),d);return+(-(H+(_-I)/(Y?I-E:E-I))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:T,w:h,d:f,D:z,h:i,m:u,s,ms:o,Q:c}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},M="en",$={};$[M]=y;var q="$isDayjsObject",j=function(S){return S instanceof L||!(!S||!S[q])},A=function S(B,_,H){var I;if(!B)return M;if(typeof B=="string"){var Y=B.toLowerCase();$[Y]&&(I=Y),_&&($[Y]=_,I=Y);var E=B.split("-");if(!I&&E.length>1)return S(E[0])}else{var O=B.name;$[O]=B,I=O}return!H&&I&&(M=I),I||!H&&M},D=function(S,B){if(j(S))return S.clone();var _=typeof B=="object"?B:{};return _.date=S,_.args=arguments,new L(_)},b=R;b.l=A,b.i=j,b.w=function(S,B){return D(S,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var L=(function(){function S(_){this.$L=A(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[q]=!0}var B=S.prototype;return B.parse=function(_){this.$d=(function(H){var I=H.date,Y=H.utc;if(I===null)return new Date(NaN);if(b.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var E=I.match(m);if(E){var O=E[2]-1||0,K=(E[7]||"0").substring(0,3);return Y?new Date(Date.UTC(E[1],O,E[3]||1,E[4]||0,E[5]||0,E[6]||0,K)):new Date(E[1],O,E[3]||1,E[4]||0,E[5]||0,E[6]||0,K)}}return new Date(I)})(_),this.init()},B.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},B.$utils=function(){return b},B.isValid=function(){return this.$d.toString()!==v},B.isSame=function(_,H){var I=D(_);return this.startOf(H)<=I&&I<=this.endOf(H)},B.isAfter=function(_,H){return D(_)<this.startOf(H)},B.isBefore=function(_,H){return this.endOf(H)<D(_)},B.$g=function(_,H,I){return b.u(_)?this[H]:this.set(I,_)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(_,H){var I=this,Y=!!b.u(H)||H,E=b.p(_),O=function(le,ne){var ie=b.w(I.$u?Date.UTC(I.$y,ne,le):new Date(I.$y,ne,le),I);return Y?ie:ie.endOf(f)},K=function(le,ne){return b.w(I.toDate()[le].apply(I.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(ne)),I)},U=this.$W,P=this.$M,W=this.$D,N="set"+(this.$u?"UTC":"");switch(E){case T:return Y?O(1,0):O(31,11);case d:return Y?O(1,P):O(0,P+1);case h:var G=this.$locale().weekStart||0,Z=(U<G?U+7:U)-G;return O(Y?W-Z:W+(6-Z),P);case f:case z:return K(N+"Hours",0);case i:return K(N+"Minutes",1);case u:return K(N+"Seconds",2);case s:return K(N+"Milliseconds",3);default:return this.clone()}},B.endOf=function(_){return this.startOf(_,!1)},B.$set=function(_,H){var I,Y=b.p(_),E="set"+(this.$u?"UTC":""),O=(I={},I[f]=E+"Date",I[z]=E+"Date",I[d]=E+"Month",I[T]=E+"FullYear",I[i]=E+"Hours",I[u]=E+"Minutes",I[s]=E+"Seconds",I[o]=E+"Milliseconds",I)[Y],K=Y===f?this.$D+(H-this.$W):H;if(Y===d||Y===T){var U=this.clone().set(z,1);U.$d[O](K),U.init(),this.$d=U.set(z,Math.min(this.$D,U.daysInMonth())).$d}else O&&this.$d[O](K);return this.init(),this},B.set=function(_,H){return this.clone().$set(_,H)},B.get=function(_){return this[b.p(_)]()},B.add=function(_,H){var I,Y=this;_=Number(_);var E=b.p(H),O=function(P){var W=D(Y);return b.w(W.date(W.date()+Math.round(P*_)),Y)};if(E===d)return this.set(d,this.$M+_);if(E===T)return this.set(T,this.$y+_);if(E===f)return O(1);if(E===h)return O(7);var K=(I={},I[u]=a,I[i]=n,I[s]=r,I)[E]||1,U=this.$d.getTime()+_*K;return b.w(U,this)},B.subtract=function(_,H){return this.add(-1*_,H)},B.format=function(_){var H=this,I=this.$locale();if(!this.isValid())return I.invalidDate||v;var Y=_||"YYYY-MM-DDTHH:mm:ssZ",E=b.z(this),O=this.$H,K=this.$m,U=this.$M,P=I.weekdays,W=I.months,N=I.meridiem,G=function(ne,ie,ee,re){return ne&&(ne[ie]||ne(H,Y))||ee[ie].slice(0,re)},Z=function(ne){return b.s(O%12||12,ne,"0")},le=N||function(ne,ie,ee){var re=ne<12?"AM":"PM";return ee?re.toLowerCase():re};return Y.replace(p,(function(ne,ie){return ie||(function(ee){switch(ee){case"YY":return String(H.$y).slice(-2);case"YYYY":return b.s(H.$y,4,"0");case"M":return U+1;case"MM":return b.s(U+1,2,"0");case"MMM":return G(I.monthsShort,U,W,3);case"MMMM":return G(W,U);case"D":return H.$D;case"DD":return b.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return G(I.weekdaysMin,H.$W,P,2);case"ddd":return G(I.weekdaysShort,H.$W,P,3);case"dddd":return P[H.$W];case"H":return String(O);case"HH":return b.s(O,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return le(O,K,!0);case"A":return le(O,K,!1);case"m":return String(K);case"mm":return b.s(K,2,"0");case"s":return String(H.$s);case"ss":return b.s(H.$s,2,"0");case"SSS":return b.s(H.$ms,3,"0");case"Z":return E}return null})(ne)||E.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(_,H,I){var Y,E=this,O=b.p(H),K=D(_),U=(K.utcOffset()-this.utcOffset())*a,P=this-K,W=function(){return b.m(E,K)};switch(O){case T:Y=W()/12;break;case d:Y=W();break;case c:Y=W()/3;break;case h:Y=(P-U)/6048e5;break;case f:Y=(P-U)/864e5;break;case i:Y=P/n;break;case u:Y=P/a;break;case s:Y=P/r;break;default:Y=P}return I?Y:b.a(Y)},B.daysInMonth=function(){return this.endOf(d).$D},B.$locale=function(){return $[this.$L]},B.locale=function(_,H){if(!_)return this.$L;var I=this.clone(),Y=A(_,H,!0);return Y&&(I.$L=Y),I},B.clone=function(){return b.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},S})(),k=L.prototype;return D.prototype=k,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",f],["$M",d],["$y",T],["$D",z]].forEach((function(S){k[S[1]]=function(B){return this.$g(B,S[0],S[1])}})),D.extend=function(S,B){return S.$i||(S(B,L,D),S.$i=!0),D},D.locale=A,D.isDayjs=j,D.unix=function(S){return D(1e3*S)},D.en=$[M],D.Ls=$,D.p={},D}))})),Iu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=a()})(e,(function(){"use strict";var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,i={},f=function(m){return(m=+m)+(m>68?1900:2e3)},h=function(m){return function(p){this[m]=+p}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=(function(p){if(!p||p==="Z")return 0;var y=p.match(/([+-]|\d\d)/g),x=60*y[1]+(+y[2]||0);return x===0?0:y[0]==="+"?-x:x})(m)}],c=function(m){var p=i[m];return p&&(p.indexOf?p:p.s.concat(p.f))},T=function(m,p){var y,x=i.meridiem;if(x){for(var R=1;R<=24;R+=1)if(m.indexOf(x(R,0,p))>-1){y=R>12;break}}else y=m===(p?"pm":"PM");return y},z={A:[u,function(m){this.afternoon=T(m,!1)}],a:[u,function(m){this.afternoon=T(m,!0)}],Q:[n,function(m){this.month=3*(m-1)+1}],S:[n,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[o,h("day")],Do:[u,function(m){var p=i.ordinal;if(this.day=m.match(/\d+/)[0],p)for(var y=1;y<=31;y+=1)p(y).replace(/\[|\]/g,"")===m&&(this.day=y)}],w:[s,h("week")],ww:[o,h("week")],M:[s,h("month")],MM:[o,h("month")],MMM:[u,function(m){var p=c("months"),y=(c("monthsShort")||p.map((function(x){return x.slice(0,3)}))).indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[u,function(m){var p=c("months").indexOf(m)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,h("year")],YY:[o,function(m){this.year=f(m)}],YYYY:[/\d{4}/,h("year")],Z:d,ZZ:d};function v(m){for(var p=m,y=i&&i.formats,x=(m=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(D,b,L){var k=L&&L.toUpperCase();return b||y[L]||r[L]||y[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(S,B,_){return B||_.slice(1)}))}))).match(a),R=x.length,M=0;M<R;M+=1){var $=x[M],q=z[$],j=q&&q[0],A=q&&q[1];x[M]=A?{regex:j,parser:A}:$.replace(/^\[|\]$/g,"")}return function(D){for(var b={},L=0,k=0;L<R;L+=1){var S=x[L];if(typeof S=="string")k+=S.length;else{var B=S.regex,_=S.parser,H=D.slice(k),I=B.exec(H)[0];_.call(b,I),D=D.replace(I,"")}}return(function(Y){var E=Y.afternoon;if(E!==void 0){var O=Y.hours;E?O<12&&(Y.hours+=12):O===12&&(Y.hours=0),delete Y.afternoon}})(b),b}}return function(m,p,y){y.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(f=m.parseTwoDigitYear);var x=p.prototype,R=x.parse;x.parse=function(M){var $=M.date,q=M.utc,j=M.args;this.$u=q;var A=j[1];if(typeof A=="string"){var D=j[2]===!0,b=j[3]===!0,L=D||b,k=j[2];b&&(k=j[2]),i=this.$locale(),!D&&k&&(i=y.Ls[k]),this.$d=(function(H,I,Y,E){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*H);var O=v(I)(H),K=O.year,U=O.month,P=O.day,W=O.hours,N=O.minutes,G=O.seconds,Z=O.milliseconds,le=O.zone,ne=O.week,ie=new Date,ee=P||(K||U?1:ie.getDate()),re=K||ie.getFullYear(),J=0;K&&!U||(J=U>0?U-1:ie.getMonth());var V,g=W||0,w=N||0,F=G||0,X=Z||0;return le?new Date(Date.UTC(re,J,ee,g,w,F,X+60*le.offset*1e3)):Y?new Date(Date.UTC(re,J,ee,g,w,F,X)):(V=new Date(re,J,ee,g,w,F,X),ne&&(V=E(V).week(ne).toDate()),V)}catch{return new Date("")}})($,A,q,y),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),L&&$!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var S=A.length,B=1;B<=S;B+=1){j[1]=A[B-1];var _=y.apply(this,j);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}B===S&&(this.$d=new Date(""))}else R.call(this,M)}}}))})),Lu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_advancedFormat=a()})(e,(function(){"use strict";return function(r,a){var n=a.prototype,o=n.format;n.format=function(s){var u=this,i=this.$locale();if(!this.isValid())return o.bind(this)(s);var f=this.$utils(),h=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return i.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return i.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),d==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),d==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return d}}));return o.bind(this)(h)}}}))})),Fu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_localeData=a()})(e,(function(){"use strict";return function(r,a,n){var o=a.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},u=function(d,c,T,z,v){var m=d.name?d:d.$locale(),p=s(m[c]),y=s(m[T]),x=p||y.map((function(M){return M.slice(0,z)}));if(!v)return x;var R=m.weekStart;return x.map((function(M,$){return x[($+(R||0))%7]}))},i=function(){return n.Ls[n.locale()]},f=function(d,c){return d.formats[c]||(function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,v,m){return v||m.slice(1)}))})(d.formats[c.toUpperCase()])},h=function(){var d=this;return{months:function(c){return c?c.format("MMMM"):u(d,"months")},monthsShort:function(c){return c?c.format("MMM"):u(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(c){return c?c.format("dddd"):u(d,"weekdays")},weekdaysMin:function(c){return c?c.format("dd"):u(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(c){return c?c.format("ddd"):u(d,"weekdaysShort","weekdays",3)},longDateFormat:function(c){return f(d.$locale(),c)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return h.bind(this)()},n.localeData=function(){var d=i();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(c){return f(d,c)},meridiem:d.meridiem,ordinal:d.ordinal}},n.months=function(){return u(i(),"months")},n.monthsShort=function(){return u(i(),"monthsShort","months",3)},n.weekdays=function(d){return u(i(),"weekdays",null,null,d)},n.weekdaysShort=function(d){return u(i(),"weekdaysShort","weekdays",3,d)},n.weekdaysMin=function(d){return u(i(),"weekdaysMin","weekdays",2,d)}}}))})),Ru=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekOfYear=a()})(e,(function(){"use strict";var r="week",a="year";return function(n,o,s){var u=o.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(a).add(1,a).date(f),d=s(this).endOf(r);if(h.isBefore(d))return 1}var c=s(this).startOf(a).date(f).startOf(r).subtract(1,"millisecond"),T=this.diff(c,r,!0);return T<0?s(this).startOf("week").week():Math.ceil(T)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}}))})),Du=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_weekYear=a()})(e,(function(){"use strict";return function(r,a){a.prototype.weekYear=function(){var n=this.month(),o=this.week(),s=this.year();return o===1&&n===11?s+1:n===0&&o>=52?s-1:s}}}))})),Ou=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_dayOfYear=a()})(e,(function(){"use strict";return function(r,a,n){a.prototype.dayOfYear=function(o){var s=Math.round((n(this).startOf("day")-n(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}}))})),qu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrAfter=a()})(e,(function(){"use strict";return function(r,a){a.prototype.isSameOrAfter=function(n,o){return this.isSame(n,o)||this.isAfter(n,o)}}}))})),Hu=nt(((e,t)=>{(function(r,a){typeof e=="object"&&typeof t<"u"?t.exports=a():typeof define=="function"&&define.amd?define(a):(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_isSameOrBefore=a()})(e,(function(){"use strict";return function(r,a){a.prototype.isSameOrBefore=function(n,o){return this.isSame(n,o)||this.isBefore(n,o)}}}))})),et=rt(Au(),1),ju=rt(Iu(),1),Ku=rt(Lu(),1),Wu=rt(Fu(),1),Yu=rt(Ru(),1),Uu=rt(Du(),1),Gu=rt(Ou(),1),Xu=rt(qu(),1),Zu=rt(Hu(),1);et.default.extend(Wu.default);et.default.extend(Ku.default);et.default.extend(ju.default);et.default.extend(Yu.default);et.default.extend(Uu.default);et.default.extend(Gu.default);et.default.extend(Xu.default);et.default.extend(Zu.default);var qe={format(e,t="YYYY-MM-DD"){return(0,et.default)(e).format(t)},parser(e,t){return(0,et.default)(e,t).toDate()},getDay(e,t,r){let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),r=r??"YYYY-MM-DD",this.format(a,r)},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,r){let a=new Date(e+"/"+t+"/"+r).getDay();return a==0&&(a=7),a},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){return t=t||"-",[e.getFullYear(),this.getNumTwoBit(e.getMonth()+1),this.getNumTwoBit(e.getDate())].join(t)},compare(e,t,r){const a=typeof e=="string"?this.parser(e,r):e,n=typeof t=="string"?this.parser(t,r):t,o=a.getTime(),s=n.getTime();return o==s?0:o>s?1:-1},between(e,t,r,a){let n;a==="year"?n=new Date(new Date(t).setFullYear(t.getFullYear()+r)):a==="month"?n=new Date(new Date(t).setMonth(t.getMonth()+r)):n=new Date(new Date(t).setDate(t.getDate()+r));const o=e.getTime(),s=n.getTime(),u=t.getTime();return s>u?o>=u&&o<=s:o>=s&&o<=u},inScope4Day(e,t,r){return this.between(e,t,r,"day")},inScope4Month(e,t,r){return this.between(e,t,r,"month")},inScope4Year(e,t,r){return this.between(e,t,r,"year")}},Ja={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},Qa={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}},Ju={...Ne,...$e,...Ja,...Qa};function Qu(e,t,r,a){return{props:Ju,emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(!1),p=ye(n,"modelValue",null,c),y=(0,l.computed)(()=>O.value&&Array.isArray(p.value)&&p.value.length==2?p.value[0]:p.value),x=(0,l.computed)(()=>O.value?"longTermKey":"normalKey"),R=V=>{if(O.value&&n.type==="daterange"){const g=[...p.value];g[0]=V,p.value=g}else p.value=V;c("update:modelValue",p.value),c("change",p.value)},M=(0,l.computed)(()=>O.value&&n.type==="daterange"?"date":n.type),$=e,q=(0,l.computed)(()=>({[`${$}`]:!0,"is-long":O.value,"is-readonly":h.value,"is-disabled":i.value}));let j=ye(n,"hintText"),A=(0,l.ref)(!1);const D=V=>{let g=V.target.value;m.value=!0,he(j.value)||(A.value=!0),c("focus",g,V)},b=V=>{setTimeout(()=>{A.value&&(A.value=!1),m.value=!1},0);let g=V.target.value;n.maxLength&&g.length>Number(n.maxLength)&&(g=g.slice(0,Number(n.maxLength))),c("blur",g,V)},L=()=>{c("clear","")},k=V=>{c("calendar-change",V)},S=(V,g,w)=>{c("panel-change",V,g,w)},B=V=>{c("visible-change",V)},_=Ae((0,l.computed)(()=>n.longTermText),"longTermText",Pe.Near),H=Ae((0,l.computed)(()=>n.longTermActionLabel),"longTermActionLabel",Pe.Near),I=Ae((0,l.computed)(()=>n.longTermValue),"longTermValue",Pe.Near),Y=Ae((0,l.computed)(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Pe.Near);let E=null;const O=(0,l.ref)(fe(n.longTerm)),K=V=>{if(O.value=V,c("update:longTerm",V),V){if(E=p.value,n.type==="daterange"){const g=[];Array.isArray(I.value)?(g[0]=p.value?p.value[0]??I.value[0]:null,g[1]=I.value[1]??I.value[0]):(g[0]=p.value?p.value[0]??I.value:null,g[1]=O.value),g[0]||(g[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),g[1]||(g[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),p.value=g}else Array.isArray(I.value)?p.value=I.value[1]??I.value[0]:p.value=I.value,p.value||(p.value=n.valueFormat?qe.format(new Date,n.valueFormat):new Date);c("update:modelValue",p.value)}else{if(n.type==="daterange"){const g=[];g[0]=Array.isArray(p.value)?p.value[0]:p.value,Array.isArray(E)?g[1]=E[1]:g[1]=E,g[0]||(g[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),g[1]||(g[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),p.value=g}else p.value=E;c("update:modelValue",p.value),setTimeout(()=>{ee()},100)}},U=fe(n.isLongTerm);if(U){const V=()=>{if(O.value===!0){if(E=p.value,n.type==="daterange"){const g=[p.value[0]];Array.isArray(I.value)?g[1]=I.value[1]??I.value[0]:g[1]=O.value,g[0]||(g[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),g[1]||(g[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),p.value=g}else p.value=I.value;c("update:modelValue",p.value)}else Qe(I.value,p.value)&&(O.value=!0)};V(),(0,l.watch)([()=>n.longTerm],([g])=>{O.value!==g&&V()}),(0,l.watch)([()=>p.value],([g])=>{let w=!1;if(n.type==="daterange"&&Array.isArray(g))try{let F=g[1];if(!F)return;if(g[0]==null){c("update:modelValue",[]);return}typeof F!="string"&&n.valueFormat&&(F=qe.format(F,n.valueFormat));let X=Array.isArray(I.value)?I.value[1]:I.value;(F===X||Array.isArray(Y.value)&&Y.value.findIndex(te=>F==te)!==-1)&&(w=!0)}catch(F){console.error(F)}O.value!==w&&(O.value=w)},{immediate:!0})}const P=(0,l.computed)(()=>({"fox-date-item__long":!0,"is-active":m.value})),W=(0,l.ref)(),N=/^\d+$/,G=(V,g)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(V,g):N.test(V)&&V.length===n.flashFillThreshold,Z=(V,g)=>{let w;if(typeof n.flashFillFormat=="function")w=n.flashFillFormat(V,g);else{const X=n.flashFillFormat??"YYYYMMDD";w=qe.parser(V,X)}const F=n.valueFormat??"YYYY-MM-DD";return qe.format(w,F)},le=V=>V?V.endsWith("range"):!1,ne=V=>{if(!V.target)return;const g=V.target.value??"";if(G(g,n.type)){const w=Z(g,n.type);if(le(n.type)){const F=Array.isArray(p.value)?[...p.value]:[];F[0]=w,R(F)}else R(w)}},ie=V=>{if(!V.target)return;const g=V.target.value??"";if(G(g,n.type)){const w=Z(g,n.type);if(le(n.type)){const F=Array.isArray(p.value)?[...p.value]:[];F[1]=w,R(F)}else R(w)}},ee=()=>{if(n.flashFill&&s.value&&s.value.$el)if(le(n.type)){const V=s.value.$el.querySelectorAll("input.el-range-input");V[0]&&V[0].addEventListener("input",ne),V[1]&&V[1].addEventListener("input",ie)}else{const V=s.value.$el.querySelector("input.el-input__inner");V&&V.addEventListener("input",ne)}},re=()=>{if(n.flashFill&&s.value&&s.value.$el)if(le(n.type)){const V=s.value.$el.querySelectorAll("input.el-range-input");V[0]&&V[0].removeEventListener("input",ne),V[1]&&V[1].removeEventListener("input",ie)}else{const V=s.value.$el.querySelector("input.el-input__inner");V&&V.removeEventListener("input",ne)}};(0,l.onMounted)(ee),(0,l.onBeforeUnmount)(re),T({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},handleOpen:()=>{W?.value.handleOpen()},handleClose:()=>{W?.value.handleClose()},setDisabled:V=>{u.value=V},setReadonly:V=>{f.value=V}});const J=(0,l.computed)(()=>{if(_e(y.value))return"";const V=n.rangeSeparator??" - ",g=Array.isArray(y.value)?y.value:[y.value];U&&O.value&&(g[1]=_.value);const w=[];for(let X=0;X<g.length;X++){const te=g[X];if(typeof te=="string"&&w.push(te),te instanceof Date){const oe=qe.format(te,n.format);w.push(oe)}}const F=` ${V} `;return w.join(F)});return()=>{if(d.value==="on"&&(h.value||i.value))return a(J.value,o.slots);const V={...o.attrs,key:x.value,type:M.value,ref:W,class:q.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,disabled:i.value,readonly:h.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":R,onClear:L,onFocus:D,onBlur:b,onCalendarChange:k,onPanelChange:S,onVisibleChange:B},g={};o.slots["range-separator"]&&(g["range-separator"]=o.slots["range-separator"]),o.slots.cell&&(g.default=o.slots.cell);const w=[],F=(0,l.h)(C.ElDatePicker,V,g);w.push(F);const X={default:()=>w};if(X.label=o.slots.default,X.fixedPreTip=o.slots.fixedPreTip,X.fixedTip=o.slots.fixedTip,U){if(O.value){const oe=(0,l.h)("span",{class:["fox-date-item__long-splitor"]},["-"]),ue=(0,l.h)("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),me=(0,l.h)("div",{class:P.value},{default:()=>[oe,ue]});w.push(me)}if(!h.value&&!i.value){const oe=(0,l.h)(C.ElCheckbox,{label:H.value||_.value,disabled:h.value||i.value,modelValue:O.value,"onUpdate:modelValue":K}),ue=(0,l.h)("div",{class:{[`${$}__append`]:!0}},[oe]);X.append=()=>ue}}const te={...Fe(n,Ja,Qa),ref:s,class:{[`${$}__wrapper`]:!0,"has-append":U},hintText:j.value,hintVisible:A.value};return n.prop&&(te.prop=`${n.prop}_item`),r(te,X)}}}}var{componentName:e1,create:t1,scope:l1}=ce("date-item"),n1=t1(Qu(e1,l1,De,He)),In=n1,eo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},format:{type:[String],required:!1},maxLength:{type:[String,Number]}},r1={...Ne,...$e,...eo};function a1(e,t,r,a){return{props:r1,emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(!1),p=ye(n,"modelValue",null,c),y=e,x=(0,l.computed)(()=>({[y]:!0})),R=k=>{p.value=k,c("update:modelValue",k),c("change",k)};let M=ye(n,"hintText"),$=(0,l.ref)(!1);const q=k=>{let S=k.target.value;m.value=!0,he(M.value)||($.value=!0),c("focus",S,k)},j=k=>{setTimeout(()=>{$.value&&($.value=!1),m.value=!1},0);let S=k.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),c("blur",S,k)},A=()=>{c("clear","")},D=k=>{c("visible-change",k)},b=(0,l.ref)();T({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},handleOpen:()=>{b?.value.handleOpen()},handleClose:()=>{b?.value.handleClose()},setDisabled:k=>{u.value=k},setReadonly:k=>{f.value=k}});const L=(0,l.computed)(()=>{if(_e(p.value))return"";const k=n.rangeSeparator??" - ",S=Array.isArray(p.value)?p.value:[p.value],B=[];for(let H=0;H<S.length;H++){const I=S[H];if(I==="string"&&B.push(I),I instanceof Date){const Y=qe.format(I,n.format);B.push(Y)}}const _=` ${k} `;return B.join(_)});return()=>{if(d.value==="on"&&(h.value||i.value))return a(L.value,o.slots);const k={...o.attrs,ref:b,class:x.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,format:n.format,disabled:i.value,readonly:h.value,modelValue:p.value,"onUpdate:modelValue":R,onClear:A,onFocus:q,onBlur:j,onVisibleChange:D},S={},B=[],_=(0,l.h)(C.ElTimePicker,k,S);B.push(_);const H={default:()=>B};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const I={...Fe(n,eo),ref:s,hintText:M.value,hintVisible:$.value};return n.prop&&(I.prop=`${n.prop}_item`),r(I,H)}}}}var{componentName:o1,create:i1,scope:s1}=ce("time-item"),u1=i1(a1(o1,s1,De,He)),Ln=u1,to={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},format:{type:[String],required:!1},rangeSeparator:{type:[String],required:!1},maxLength:{type:[String,Number]}},c1={...Ne,...$e,...to};function d1(e,t,r,a){return{props:c1,emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(!1),p=ye(n,"modelValue",null,c),y=e,x=(0,l.computed)(()=>({[y]:!0})),R=L=>{p.value=L,c("update:modelValue",L),c("change",L)};let M=ye(n,"hintText"),$=(0,l.ref)(!1);const q=L=>{let k=L.target.value;m.value=!0,he(M.value)||($.value=!0),c("focus",k,L)},j=L=>{setTimeout(()=>{$.value&&($.value=!1),m.value=!1},0);let k=L.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),c("blur",k,L)},A=()=>{c("clear","")},D=(0,l.ref)();T({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()},setDisabled:L=>{u.value=L},setReadonly:L=>{f.value=L}});const b=(0,l.computed)(()=>{if(_e(p.value))return"";const L=n.rangeSeparator??" - ",k=Array.isArray(p.value)?p.value:[p.value],S=[];for(let _=0;_<k.length;_++){const H=k[_];if(H==="string"&&S.push(H),H instanceof Date){const I=qe.format(H,n.format);S.push(I)}}const B=` ${L} `;return S.join(B)});return()=>{if(d.value==="on"&&(h.value||i.value))return a(b.value,o.slots);const L={...o.attrs,ref:D,class:x.value,placeholder:v.placeholder.value,rangeSeparator:n.rangeSeparator,foramt:n.format,disabled:i.value,readonly:h.value,modelValue:p.value,"onUpdate:modelValue":R,onClear:A,onFocus:q,onBlur:j},k={},S=[],B=(0,l.h)(C.ElTimeSelect,L,k);S.push(B);const _={default:()=>S};_.label=o.slots.default,_.fixedPreTip=o.slots.fixedPreTip,_.fixedTip=o.slots.fixedTip;const H={...Fe(n,to),ref:s,hintText:M.value,hintVisible:$.value};return n.prop&&(H.prop=`${n.prop}_item`),r(H,_)}}}}var{componentName:f1,create:m1,scope:p1}=ce("time-select-item"),h1=m1(d1(f1,p1,De,He)),Fn=h1;function kr(e,t=0){let r=`${e}`,a=r.indexOf(".");if(a==-1)return r;let n=a;for(let o=r.length-1;o>=a;o--)if(r.charAt(o)!="0"){n=o;break}return n-a<t?n=a+t+1:n!=a&&(n+=1),n>r.length?r=r.padEnd(n,"0"):r=r.substring(0,n),r}function Er(e,t,r=20){return typeof t=="string"&&(t=ke(t)),t==1||t==-1?`${e}`:t==0?"0":t>0?kr(la(`${e}`,`${t}`)):kr(gn(`${e}`,na(`${t}`),20))}function g1(e,t=-1,r=!1,a=3,n=","){return hl(e,ke(t),r,a,n)}function _r(e,t,r,a,n=!0){if(e==="")return"";if(e=ra(e),t=ke(t),t==1)return e;if(a)e=Er(e,t),r&&(e=="0"&&n?e=`${e}.`.padEnd(ke(r)+2,"0"):e=gn(e,1,ke(r)));else{let o=-1*t;e=Er(e,o)}return e}function Tr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let a=fe(t.minInclude),n=nn(e,t.min);(a&&n==-1||!a&&(n==0||n==-1))&&(r.message="请输入不小于 {0} 的数值".replace("{0}",t.min),r.minValid=!1)}if(t.max!=null){let a=fe(t.maxInclude),n=nn(e,t.max);(a&&n==1||!a&&(n==0||n==1))&&(r.maxValid=!1)}return r}var lo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean],default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:[String],required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:[Boolean],required:!1,default:!0},digits:{type:[Number],required:!1,default:3},separator:{type:[String],required:!1,default:","},placeholder:{type:[String],required:!1},textAlign:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},v1={...Ne,...$e,...lo};function y1(e,t,r,a){return{props:v1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)(!1),v=ye(n,"modelValue",null,c),m=(0,l.ref)("");(0,l.watch)([()=>v.value,()=>n.rates,()=>n.precision],([O,K,U])=>{if(he(O)){m.value="";return}const P=_r(O,K,U,!1);m.value!==P&&(m.value=P)},{immediate:!0});const p=(0,l.computed)(()=>{let O="";return z.value&&(O=m.value),O}),{t:y}=(0,Le.useFoxI18n)(t),x=(0,l.computed)(()=>{let O=n.placeholder??"";return!z.value&&!he(m.value)?O=g1(m.value,n.decimalLength,n.autoPadding,n.digits,n.separator):O=y(["placeholder",O]),O}),R=e,M=(0,l.computed)(()=>({[R]:!0,[`${R}__disabled`]:i.value,[`${R}__placeholder`]:m.value.length>0})),$=Ae((0,l.computed)(()=>n.textAlign),"textAlign"),q=(0,l.computed)(()=>z.value?{textAlign:"left"}:{textAlign:$.value??"right"}),j=(0,l.ref)(""),A=(0,l.computed)(()=>{let O=j.value;return he(O)&&(O=n.errorTip??""),O}),D=(0,l.ref)(""),b=(0,l.ref)(!1),L=(O,K)=>{if(O=`${O}`,he(O)){m.value="",v.value="",K.forEach(U=>{c(U,"")}),fe(n.showTip)&&b.value&&(b.value=!1);return}if(O.length>=2){let U=O;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){(0,l.triggerRef)(m);return}}if(O!="-"){if(!bn(O)){(0,l.triggerRef)(m);return}if(n.integerLength!=-1&&fa(O)>Number(n.integerLength)){(0,l.triggerRef)(m);return}if(n.decimalLength&&n.decimalLength!=-1&&ma(O)>Number(n.decimalLength)){(0,l.triggerRef)(m);return}let U=Tr(O,n);if(U.maxValid===!1){j.value=U.message,(0,l.triggerRef)(m);return}}else if(n.min!=null&&ke(n.min)>=0){(0,l.triggerRef)(m);return}D.value=O,fe(n.showTip)&&(b.value=O.length>0),m.value=O,v.value=_r(O,n.rates,n.precision,!0),K.forEach(U=>{c(U,v.value)})},k=O=>{L(O,["update:modelValue","input"])},S=O=>{L(O,["update:modelValue","change"])},B=O=>{if(z.value=!0,fe(n.showTip)){let K=m.value;he(K)&&(K=n.hintText),he(K)||(D.value=K,b.value=!0)}j.value="",c("focus",v.value,O)},_=O=>{if(setTimeout(()=>{z.value=!1,fe(n.showTip)&&b.value===!0&&(b.value=!1)},0),!he(m.value)){let K=Tr(m.value,n);if(K.minValid===!1||K.maxValid===!1){j.value=K.message;return}}c("update:modelValue",v.value,O),c("blur",v.value,O)},H=()=>{c("clear","")},I=(0,l.computed)(()=>Yt(n.unit)>0),Y=(0,l.ref)();T({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},select:()=>{Y?.value.select()},setDisabled:O=>{u.value=O},setReadonly:O=>{f.value=O}});const E=()=>v.value?x.value:v.value;return()=>{if(d.value==="on"&&(h.value||i.value))return a(E(),o.slots);const O={...Xe(o.attrs),ref:Y,class:M.value,style:q.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:i.value,readonly:h.value,modelValue:p.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:H,onInput:k,onChange:S,onFocus:B,onBlur:_},K={};o.slots.prepend&&(K.prepend=o.slots.prepend),o.slots.append&&(K.append=o.slots.append),o.slots.prefix&&(K.prefix=o.slots.prefix),o.slots.suffix?K.suffix=o.slots.suffix:I.value&&(K.suffix=()=>[n.unit]);const U=[],P=(0,l.h)(C.ElInput,O,K);U.push(P);const W={default:()=>U};W.label=o.slots.default,W.fixedPreTip=o.slots.fixedPreTip,W.fixedTip=o.slots.fixedTip;const N={...Fe(n,lo),ref:s,errorTip:A.value,hintText:D.value,hintVisible:b.value,hintType:"number"};return n.prop&&(N.prop=`${n.prop}_item`),r(N,W)}}}}var{componentName:b1,create:S1,scope:w1}=ce("money-item"),x1=S1(y1(b1,w1,De,He)),Rn=x1,no={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:[Boolean],default:!0},alwaysSystem:{type:[Boolean],default:!1},maxLength:{type:[String,Number]}},N1={...Ne,...$e,...no};function C1(e,t,r,a){return{props:N1,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(!1),p=ye(n,"modelValue",null,c),y=e,x=(0,l.computed)(()=>({[y]:!0,[`${y}__append`]:L.value})),R=(0,l.computed)(()=>({[`${y}__unit`]:!0})),M=S=>{p.value=S,c("update:modelValue",S),c("input",S)},$=S=>{c("change",S)};let q=ye(n,"hintText"),j=(0,l.ref)(!1);const A=S=>{let B=S.target.value;m.value=!0,he(q.value)||(j.value=!0),c("focus",B,S)},D=S=>{setTimeout(()=>{j.value&&(j.value=!1),m.value=!1},0);let B=S.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),c("blur",B,S)},b=()=>{c("clear","")},L=(0,l.computed)(()=>Yt(n.unit)>0),k=(0,l.ref)();return T({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},setDisabled:S=>{u.value=S},setReadonly:S=>{f.value=S}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(p.value,o.slots);const S={...Xe(o.attrs),ref:k,class:x.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:h.value,modelValue:p.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:b,onChange:$,onInput:M,onFocus:A,onBlur:D},B={},_=[],H=(0,l.h)(C.ElInputNumber,S,B);_.push(H);const I={default:()=>_};I.label=o.slots.default,I.fixedPreTip=o.slots.fixedPreTip,I.fixedTip=o.slots.fixedTip;const Y={...Fe(n,no),ref:s,hintText:q.value,hintVisible:j.value};if(n.prop&&(Y.prop=`${n.prop}_item`),o.slots.append)I.append=o.slots.append;else if(L.value){const E=(0,l.h)("div",{class:R.value},[n.unit]);I.append=()=>E}return r(Y,I)}}}}var{componentName:z1,create:k1,scope:E1}=ce("input-number-item"),_1=k1(C1(z1,E1,De,He)),Dn=_1;function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ht(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function T1(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}var $1=class{scope;constructor(e){this.scope=e}async load(e,t,r,a){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const n=je(e,this.scope);return n===null?(console.error(`[FoxUI] ${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await n(t,r,a))}};function B1(){return new $1(tt())}function fn(e,t,r){return!(lt(e,t)!==lt(e,r)||ht(e,t)!==ht(e,r))}function ro(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];let o=a;for(let s=0;Array.isArray(o)&&s<t.length;s++){const u=t[s];if(Array.isArray(u)){const i=ro(e,u,r,a);n.push(i)}else{let i=!1;for(let f of o){if(r==="text")i=lt(e,f)===u;else if(r==="item")i=fn(e,f,u);else{let h=ht(e,f);h==null&&(h=lt(e,f)),i=h===u}if(i){n.push(f),o=T1(e,f);break}}if(!i)break}}return n}function V1(e){return{text:e,value:e}}var ao={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:()=>!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:()=>!1},allowCreate:{type:[Boolean]},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]}},M1={...Ne,...$e,...ao};function P1(e,t,r,a){return{props:M1,emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(null),p=(0,l.ref)([]),y=(0,l.computed)(()=>p.value?p.value.map(J=>Array.isArray(J)?J.map(V=>lt(n,V)).join(" "):lt(n,J)).join(" "):""),x=(J,V,g,w=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(m.value===J)return;m.value=J;const oe=(0,l.toRaw)(J);if(w){const ue=re?.value.getCheckedNodes();if(ue)if(n.multiple){const me=[];ue.forEach(ve=>{const we=(ve.pathNodes??[]).map(Be=>Be.data);me.push(we)}),c("update:pathNodes",me)}else c("update:pathNodes",(ue[0]?.pathNodes??[]).map(me=>me.data));c("update:modelValue",oe),c("change",oe)}return}const F=ro(n,J,V,g);if(F===null){if(p.value.length===0||p.value===null)return;p.value=[],m.value=null,w&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const X=F[F.length-1];if(_.value.checkStrictly!==!0&&X&&!Array.isArray(X)&&Array.isArray(X.children)&&X.children.length>0){const oe=[];F.forEach(ue=>{const me=`${lt(n,ue)}`;oe.push(me)}),oe.length>0&&(S.value=oe.join(n.separator))}else S.value=null;let te=!0;if(F.length!==p.value.length)te=!1;else for(let oe=0;oe<F.length;oe++){const ue=F[oe],me=p.value[oe];if(Array.isArray(ue)){if(!Array.isArray(me)||ue.length!==me.length)te=!1;else for(let ve=0;ve<ue.length;ve++)if(!fn(n,ue[ve],me[ve])){te=!1;break}}else fn(n,ue,me)||(te=!1);if(!te)break}if(!te){p.value=F;let oe=[],ue=[];F.forEach(ve=>{if(Array.isArray(ve)){let we=[],Be=[];for(let We of ve)we.push(ht(n,We)),n.valueType==="text"?Be.push(lt(n,We)):n.valueType==="item"?Be.push(We):Be.push(ht(n,We));oe.push(we),ue.push(Be)}else oe.push(ht(n,ve)),n.valueType==="text"?ue.push(lt(n,ve)):n.valueType==="item"?ue.push(ve):ue.push(ht(n,ve))}),m.value=oe;const me=(0,l.toRaw)(ue);w&&(c("update:pathNodes",F),c("update:modelValue",me),c("change",me))}},R=(0,l.ref)([]),M=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",Pe.Near,J=>fe(J)),$=B1(),q=async(J,V)=>{if(J){const g=await $.load("cascader",J,V);g.length>0&&(typeof g[0]=="string"?R.value=g.map(w=>V1(w)):R.value=g)}};(0,l.watch)([()=>n.source,()=>n.params],async([J,V])=>{q(J,V)},{immediate:!(M.value||n.lazy)});let j=!1;const A=()=>{j||(j=!0,q(n.source,n.params))};(0,l.watch)([()=>R.value,()=>n.modelValue],([J,V])=>{x(V,n.valueType,J,!1),c("setValue",V)}),n.lazy&&x(n.modelValue,"value",[],!1);let D=null,b=(0,l.ref)(!1);typeof n.remoteMethod=="function"&&(D=async J=>{if(J!=null){b.value=!0;try{R.value=await n.remoteMethod(J)}catch(V){console.error(V)}b.value=!1}});const L=(0,l.ref)(!1),k=e,S=(0,l.ref)(null),B=(0,l.computed)(()=>({[k]:!0,"is-incomplete":S.value&&S.value.length>0})),_=(0,l.computed)(()=>{let J={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(J.multiple=!0),n.props&&Object.assign(J,n.props),n.lazy&&(J.lazy=!0,typeof n.lazyLoad=="function"?J.lazyLoad=n.lazyLoad:J.lazyLoad=async(V,g)=>{let w={};n.params&&Object.assign(w,n.params),V&&Object.assign(w,V);const F=await $.load("cascader",n.source,w,!0);if(V?.config?.checkStrictly!==!0&&Array.isArray(m.value)&&m.value.length===V.level){const X=V.pathLabels??[];let te=[];X.forEach(oe=>{oe&&te.push(oe)}),te.length>0&&(S.value=te.join(n.separator))}else S.value=null;g(F)}),J}),H=J=>{n.allowCreate?(c("update:modelValue",J),c("change",J),m.value=J):x(J,"value",R.value,!0)};let I=ye(n,"hintText"),Y=(0,l.ref)(!1);const E=J=>{let V=J.target.value;L.value=!0,he(I.value)||(Y.value=!0),c("focus",V,J)},O=J=>{setTimeout(()=>{Y.value&&(Y.value=!1),L.value=!1},0);let V=J.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),le.value||c("blur",V,J)},K=()=>{c("clear","")},U=(0,l.ref)(!1);let P=null;const W=()=>{n.showTooltip&&U.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{U.value=!0},150))},N=()=>{P&&(clearTimeout(P),U.value=!1,P=null)},G=(0,l.computed)(()=>U.value||Y.value),Z=(0,l.computed)(()=>U.value?y.value:I.value),le=(0,l.ref)(!1),ne=J=>{le.value=J,c("visible-change",J),J||c("selected")},ie=J=>{c("remove-tag",J)},ee=J=>{c("expand-change",J)},re=(0,l.ref)();return T({focus:()=>{re?.value.focus()},blur:()=>{re?.value.blur()},getCheckedNodes:()=>re?.value.getCheckedNodes(),setDisabled:J=>{u.value=J},setReadonly:J=>{f.value=J}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(m.value,o.slots,R.value,n.separator);const J={...o.attrs,ref:re,class:B.value,props:_.value,clearable:n.clearable,placeholder:S.value||v.placeholder.value,disabled:i.value||h.value,options:R.value,modelValue:m.value,separator:n.separator,onClear:K,onChange:H,onFocus:E,onBlur:O,onVisibleChange:ne,onRemoveTag:ie,expandChange:ee};typeof D=="function"&&(J["remote-method"]=D,J.loading=b.value);const V={};o.slots.option&&(V.default=o.slots.option),o.slots.empty&&(V.empty=o.slots.empty);const g=[],w=(0,l.h)(C.ElCascader,J,V);g.push(w);const F={default:()=>g};F.label=o.slots.default,F.fixedPreTip=o.slots.fixedPreTip,F.fixedTip=o.slots.fixedTip;const X={...Fe(n,ao),ref:s,hintText:Z.value,hintVisible:G.value,onMouseover:W,onMouseleave:N};return n.prop&&(X.prop=`${n.prop}_item`),M.value&&!n.lazy&&(X["appear-listen"]=!0,X.onAppear=A),r(X,F)}}}}var{componentName:A1,create:I1,scope:L1}=ce("cascader-item"),F1=I1(P1(A1,L1,De,He)),On=F1,oo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},maxLength:{type:[String,Number]}},R1={...Ne,...$e,...oo};function D1(e,t,r,a){return{props:R1,emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:z}=(0,Le.useFoxI18n)(t),v=z(n,["placeholder"]),m=(0,l.ref)(!1),p=ye(n,"modelValue",null,c),y=e,x=(0,l.computed)(()=>({[y]:!0})),R=k=>{p.value=k,c("update:modelValue",k),c("input",k)},M=k=>{c("change",k)},$=k=>{c("select",k)};let q=ye(n,"hintText"),j=(0,l.ref)(!1);const A=k=>{let S=k.target.value;m.value=!0,he(q.value)||(j.value=!0),c("focus",S,k)},D=k=>{setTimeout(()=>{j.value&&(j.value=!1),m.value=!1},0);let S=k.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),c("blur",S,k)},b=()=>{c("clear","")},L=(0,l.ref)();return T({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:k=>{u.value=k},setReadonly:k=>{f.value=k}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(p.value,o.slots);const k={...o.attrs,ref:L,class:x.value,placeholder:v.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:h.value,modelValue:p.value,onClear:b,onChange:M,onInput:R,onFocus:A,onBlur:D,onSelect:$},S={};o.slots.prepend&&(S.prepend=o.slots.prepend),o.slots.append&&(S.append=o.slots.append),o.slots.prefix&&(S.prefix=o.slots.prefix),o.slots.suffix&&(S.suffix=o.slots.suffix),o.slots.option&&(S.default=o.slots.option);const B=[],_=(0,l.h)(C.ElAutocomplete,k,S);B.push(_);const H={default:()=>B};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const I={...Fe(n,oo),ref:s,hintText:q.value,hintVisible:j.value};return n.prop&&(I.prop=`${n.prop}_item`),r(n,H)}}}}var{componentName:O1,create:q1,scope:H1}=ce("autocomplete-item"),j1=q1(D1(O1,H1,De,He)),qn=j1;function K1(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let f=o.substring(u+1,i);if(/^\d+$/.test(f)){let h=parseInt(f);if(s==0){let d=o.substring(0,u);a=a[d][h]}else a=a[h];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(a=a[o])}return a}function W1(e,t){return{props:{...Wa},setup(r,{attrs:a,slots:n}){return()=>{const o={default:s=>{const u=K1(s.row,s.column.property);return n.default?(0,l.h)(zt,{...r,modelValue:u},{default:n.default}):(0,l.h)(zt,{...r,modelValue:u})}};for(let s in n)s!=="default"&&(o[s]=n[s]);return(0,l.h)(C.ElTableColumn,{...a},o)}}}}var{componentName:Y1,create:U1,scope:G1}=ce("table-mapping-column"),X1=U1(W1(Y1,G1)),Hn=X1,Z1=Symbol.for("TableStateKey");function $r(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let f=o.substring(u+1,i);if(/^\d+$/.test(f)){let h=parseInt(f);if(s==0){let d=o.substring(0,u);a=a[d][h]}else a=a[h];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(a=a[o])}return a}function J1(e,t){return{props:{prop:{type:[String],require:!1}},setup(r,{attrs:a}){const n=(0,l.inject)(Z1,{});let o=null;return()=>{const s={default:u=>{const i=n.currentRow?n.currentRow.value:null;u.$index!==-1&&(o=u.row);const f=u.$index!==-1?u.row:o;let h=!1;if(f){const c=r.prop??u.column.property;c?h=$r(f,c)===(i?$r(i,c):null):h=Qe(f,i)}const d=(0,l.h)("span",{class:{"el-radio__input":!0,"is-checked":h}},[(0,l.h)("span",{class:{"el-radio__inner":!0}})]);return(0,l.h)("label",{class:{"el-radio":!0,"is-checked":h}},[d])}};return(0,l.h)(C.ElTableColumn,{...a},s)}}}}var{componentName:Q1,create:e0,scope:t0}=ce("table-radio-column"),l0=e0(J1(Q1,t0)),jn=l0,n0={},r0={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function a0(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",r0,[...t[0]||(t[0]=[(0,l.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var o0=Ge(n0,[["render",a0]]),{componentName:O5,create:i0,scope:q5}=ce("table-setting"),s0={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},u0=i0({components:{FoxPopover:C.ElPopover,FoxCheckbox:C.ElCheckbox,FoxCheckboxGroup:C.ElCheckboxGroup,FoxButton:C.ElButton,FoxIcon:C.ElIcon,DragIcon:o0,Download:Me.Download,RefreshLeft:Me.RefreshLeft},props:{...s0},setup(e,{emit:t,attrs:r}){let a=[];const n=(0,l.ref)([]),o=(0,l.computed)(()=>n.value.filter(N=>N.label===""||N.type?!1:N.fixed===""||N.fixed===!0||N.fixed==="left")),s=(0,l.computed)(()=>n.value.filter(N=>N.label===""||N.type?!1:N.fixed==="right")),u=(0,l.computed)(()=>n.value.filter(N=>!(N.label===""||N.type||N.fixed!==void 0))),i=(0,l.computed)(()=>(o.value.length>0||s.value.length>0)&&u.value.length>0),f=(0,l.computed)(()=>o.value.length>0),h=(0,l.computed)(()=>s.value.length>0),d=N=>N.length>1,c=(N,G)=>{Array.isArray(N)&&Array.isArray(G)&&N.forEach(le=>{G.some(ne=>ne.prop===le.prop?(le.label=ne.label,!0):!1)});const Z=[];n.value=N.map((le,ne)=>(!(le.label===""||le.type)&&le.visible!==!1&&Z.push(le.prop),{...le,sortIndex:ne})),u.value.length+o.value.length+s.value.length===Z.length?y.value=!0:Z.length>0&&(x.value=!0),$.value=Z},T=N=>N?N.type?N.type:N.label?N.prop:"":"",z=(N,G)=>{if(N.length!==G.length)return!1;const Z=N.map(le=>T(le));for(let le of G){const ne=T(le);if(Z.indexOf(ne)===-1)return!1}return!0},v=N=>{if(!N){const G=e.tableRef.getColumnSetting(),Z=G.srcColumnPropertyList;a=Z.map((le,ne)=>({...le,sortIndex:ne})),N=G.columnPropertyList,N&&N.length>0&&z(Z,N)||(N=Z)}c(N,a)},m=()=>{e.tableRef.setColumnSetting(n.value)},p=(0,l.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),y=(0,l.ref)(!1),x=(0,l.ref)(!1),R=N=>{const G=[];n.value.forEach(Z=>{N&&!(Z.label===""||Z.type)&&G.push(Z.prop),Z.visible=N}),y.value=!1,x.value=!1,u.value.length+o.value.length+s.value.length===G.length?y.value=!0:G.length>0&&(x.value=!0),$.value=G,m()},M=()=>{v(a),m()},$=(0,l.ref)([]),q=N=>{n.value.forEach(Z=>{Z.label===""||Z.type||(Z.visible=N.indexOf(Z.prop)!==-1)}),y.value=!1,x.value=!1;const G=u.value.length+o.value.length+s.value.length;N.length===G?y.value=!0:N.length>0&&(x.value=!0),m()},j=()=>{v()};(0,l.onMounted)(()=>{setTimeout(()=>{v()},50)});const A={currentRow:null,index:null,roleType:null},D=N=>N?N.dataset&&N.dataset.role==="row"?N:N.tagName.toLowerCase()!=="body"?(N=N.parentElement,D(N)):null:null,b=N=>{const G=N.currentTarget;G&&G.dataset&&(A.roleType=G.dataset.roleType,A.index=G.dataset.index)},L=N=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null,A.roleType=null},k=N=>{const G=N.currentTarget;N.relatedTarget;const Z=D(G);if(!Z)return;const le=Z.dataset&&Z.dataset.roleType;A.roleType===le&&(N.preventDefault(),A.currentRow&&A.currentRow!==Z&&A.currentRow.classList.remove("is-dragover"),Z.classList.add("is-dragover"),A.currentRow=Z)},S=N=>{N.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},B=N=>{const G=N.currentTarget,Z=D(G);if(!Z)return;const le=Z.dataset&&Z.dataset.roleType;if(A.roleType!==le)return;N.preventDefault();const ne=Number(A.index),ie=Number(Z.dataset.index);if(ne!==ie){if(ne<ie){const ee=n.value[ne];n.value.splice(ne,1),n.value.splice(ie,0,ee)}else{const ee=n.value[ne];n.value.splice(ne,1),n.value.splice(ie+1,0,ee)}c(n.value,a),m()}},_=N=>{const G=n.value[N];G.fixed="left",m()},H=N=>{const G=n.value[N];G.fixed="right",m()},I=N=>{const G=n.value[N];G.fixed=void 0,m()},Y=new Map;let E=null;function O(N){const G=document.createRange();return G.setStart(N,0),G.setEnd(N,N.childNodes.length),G.getBoundingClientRect().width}return{attrs:r,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:u,isShowNotFixedTitle:i,isShowLeftFixedTitle:f,isShowRightFixedTitle:h,isDraggble:d,isCheckAll:y,isIndeterminate:x,handleCheckAllChange:R,handleReset:M,checkedValue:$,handleCheckChange:q,onShow:j,onDragStart:b,onDragEnd:L,onDragOver:k,onDragLeave:S,onDrop:B,toLeftFixed:_,toRightFixed:H,toUnFixed:I,checkboxLabelStyle:p,onMouseOverForOverflowText:(N,G,Z)=>{const le=N.currentTarget;if(le){const ne=Math.floor(le.offsetWidth);if(Math.floor(O(le))>ne){let ie=Y.get(G);if(ie){if(ie===E)return;Ee.hide(ie)}ie=Ee.show(le,Z,{type:"text",placement:"top",closeOnClick:!1}),ie&&(Y.set(G,ie),E=ie)}}},onMouseLeaveForOverflowText:(N,G)=>{const Z=Y.get(G);Z&&(Ee.hide(Z),Z===E&&(E=null))},onMouseOverForTip:(N,G)=>{const Z=N.currentTarget;Z&&(E&&Ee.hide(E),E=Ee.show(Z,G,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:N=>{E&&(Ee.hide(E),E=null)}}}}),c0={class:"fox-table-setting"},d0={class:"fox-table-setting__header"},f0={class:"fox-table-setting__body"},m0={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},p0={key:0,class:"fox-table-setting__body-title"},h0=["data-index","draggable"],g0=["onMouseover","onMouseleave"],v0={class:"tools-item"},y0={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},b0={key:0,class:"fox-table-setting__body-title"},S0=["data-index","draggable"],w0=["onMouseover","onMouseleave"],x0={class:"tools-item"},N0={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},C0={key:0,class:"fox-table-setting__body-title"},z0=["data-index","draggable"],k0=["onMouseover","onMouseleave"],E0={class:"tools-item"};function _0(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),i=(0,l.resolveComponent)("DragIcon"),f=(0,l.resolveComponent)("RefreshLeft"),h=(0,l.resolveComponent)("FoxIcon"),d=(0,l.resolveComponent)("Download"),c=(0,l.resolveComponent)("fox-checkbox"),T=(0,l.resolveComponent)("FoxCheckboxGroup"),z=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(z,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",c0,[(0,l.createElementVNode)("div",d0,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",f0,[(0,l.createVNode)(T,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[e.leftFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",m0,[e.isShowLeftFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",p0,(0,l.toDisplayString)(e.leftFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.leftFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,v.prop,v.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,g0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",v0,[(0,l.createVNode)(h,{onClick:m=>e.toUnFixed(v.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"]),(0,l.createVNode)(h,{onClick:m=>e.toRightFixed(v.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(d)]),_:1},8,["onClick"])])],40,h0))),128))])):(0,l.createCommentVNode)("",!0),e.unFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",y0,[e.isShowNotFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",b0,(0,l.toDisplayString)(e.unFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.unFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",value:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,v.prop,v.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,w0)]),_:2},1032,["value"]),(0,l.createElementVNode)("div",x0,[(0,l.createVNode)(h,{onClick:m=>e.toLeftFixed(v.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(d)]),_:1},8,["onClick"]),(0,l.createVNode)(h,{onClick:m=>e.toRightFixed(v.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(d)]),_:1},8,["onClick"])])],40,S0))),128))])):(0,l.createCommentVNode)("",!0),e.rightFixedColumns.length>0?((0,l.openBlock)(),(0,l.createElementBlock)("div",N0,[e.isShowRightFixedTitle?((0,l.openBlock)(),(0,l.createElementBlock)("div",C0,(0,l.toDisplayString)(e.rightFixedTitle),1)):(0,l.createCommentVNode)("",!0),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.rightFixedColumns,v=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(c,{class:"checkbox-item",label:v.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,v.prop,v.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,v.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(v.label),45,k0)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",E0,[(0,l.createVNode)(h,{onClick:m=>e.toUnFixed(v.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"]),(0,l.createVNode)(h,{onClick:m=>e.toLeftFixed(v.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(d)]),_:1},8,["onClick"])])],40,z0))),128))])):(0,l.createCommentVNode)("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Al=Ge(u0,[["render",_0]]),T0=class{scope;constructor(e){this.scope=e}async load(e,t,r,a,n,o,s){if(!t)return{totalSize:0,page:[]};if(Array.isArray(t)){let i=(r-1)*a,f=i+a;f>t.length&&(f=t.length);const h=t.slice(i,f);return{totalSize:t.length,page:h}}if(typeof t=="function")return await Reflect.apply(t,null,[r,a,n,o,s]);const u=je(e,this.scope);return u===null?(console.error(`[FoxUI]${e} component not found api function`),{totalSize:0,page:[]}):(Ue(n)&&(0,l.isReactive)(n)&&(n=(0,l.toRaw)(n)),await Reflect.apply(u,null,[t,r,a,n,o,s]))}};function $0(){return new T0(tt())}var B0=class{scope;constructor(e){this.scope=e}async load(e){let t=null;const r=je("tableSetting",this.scope);return typeof r=="function"&&(t=await Reflect.apply(r,null,["load",e])),t}save(e,t){const r=je("tableSetting",this.scope);typeof r=="function"&&Reflect.apply(r,null,["save",e,t])}remove(e){const t=je("tableSetting",this.scope);typeof t=="function"&&Reflect.apply(t,null,["remove",e])}};function io(){return new B0(tt())}var V0=Symbol.for("TableStateKey"),so={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},uo={showPagination:{type:[Boolean],required:!1,default:()=>!0},pageIndex:{type:[Number],required:!1,default:()=>1},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSize:{type:[String],required:!1,default:()=>"default"},paginationAppendSizeTo:{type:[String],required:!1},paginationTeleported:{type:[Boolean],required:!1,default:()=>!0},paginationPopperClass:{type:[String],required:!1},paginationpPrevText:{type:[String],required:!1},paginationPrevIcon:{type:[Object,String],required:!1},paginationNextText:{type:[String],required:!1},paginationNextIcon:{type:[Object,String],required:!1},paginationDisabled:{type:[Boolean],required:!1}},mn={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},M0={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String},noMoreText:{type:String}};function P0(e,t){let r=t.split("."),a=e;for(let n=0;n<r.length;n++){let o=r[n],s=0,u=o.indexOf("["),i=u==-1?-1:o.indexOf("]",u);for(;u!==-1&&i!==-1;){let f=o.substring(u+1,i);if(/^\d+$/.test(f)){let h=parseInt(f);if(s==0){let d=o.substring(0,u);a=a[d][h]}else a=a[h];s++}u=o.indexOf("[",i),i=u==-1?-1:o.indexOf("]",u)}s===0&&(a=a[o])}return a}function Ul(e,t){return e.filter(r=>{for(let a in t)if(t[a]!==P0(r,a))return!1;return!0})}var A0={...Ne,...$e,...so,...uo,...mn,...M0};function I0(e,t,r){return{props:A0,emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(a,n){const{locale:o,toLocaleRefs:s}=(0,Le.useFoxI18n)(t),u=s(a,["loadText","noMoreText"]),i=(0,l.ref)(),{emitEvent:f,broadcast:h,exposeApi:d}=Te({componentName:e,validateHandler:{getValue(...Q){return b.value}},get props(){return a},context:n,get templateRefProxy(){return i.value}},a.prop??n.attrs.name),c=e,T=(0,l.computed)(()=>({[c]:!0})),z=(0,l.computed)(()=>({[`${c}__setting`]:!0})),v=(0,l.computed)(()=>({[`${c}__footer`]:!0,[`${c}__footer__${a.footerAlign}`]:!0})),m=(0,l.computed)(()=>({[`${c}__pagination`]:!0,[`${c}__pagination__${a.paginationAlign}`]:!0})),p=(0,l.shallowRef)({}),y=(0,l.computed)(()=>({...p.value,...a.params??{},...a.baseParams??{}})),x=(0,l.ref)(a.infiniteLoad===!0?0:a.pageIndex),R=(0,l.ref)(a.pageSize),M=fe(a.infiniteLoad);M||((0,l.watch)(()=>a.pageIndex,Q=>{x.value=Q}),(0,l.watch)(()=>a.pageSize,Q=>{R.value=Q}),(0,l.watch)([x,R],([Q,ae],[se,de])=>{ae!==de&&(x.value=1,Q=1),B(a.data,Q,ae,y.value)}));const $=()=>Array.isArray(a.data)?!0:fe(a.autoLoad);$()&&(0,l.watch)([()=>a.data,y],async([Q,ae],[se,de])=>{$()&&(Q!==se&&(k=!0),!(!Array.isArray(Q)&&Qe(Q,se)&&Qe(ae,de))&&(M?(x.value=0,A.value=!0,b.value=[],H()):x.value===1?B(Q,x.value,R.value,ae):x.value=1))},{deep:!0});const q=Q=>{x.value=Q,f("page-index-change",Q)},j=Q=>{R.value=Q,f("page-size-change",Q)},A=(0,l.ref)(!0),D=(0,l.ref)(0),b=(0,l.ref)(),L=$0();let k=!0;const S=Ae((0,l.computed)(()=>a.appearLoad),"appearLoad",Pe.Near,Q=>fe(Q)),B=async(Q,ae,se,de,Ve)=>{try{if(Ve===!0){if(!A.value)return!1;const be=await L.load("table",Q,ae,se,de,k,o.value);return D.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,b.value,be.page),setTimeout(()=>{f("loaded-data")},250),(b.value?.length??0)>=D.value)||be.page.length<se?(A.value=!1,!1):!0}else{const be=await L.load("table",Q,ae,se,de,k,o.value);return D.value=be.totalSize,b.value=be.page??[],setTimeout(()=>{f("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),D.value=0,b.value=[]}finally{k=!1}return!1};let _=!1;const H=async()=>{if(!_){if(_=!0,!A.value){_=!1;return}x.value+=1,await B(a.data,x.value,R.value,y.value,!0),_=!1}},I=(Q={},ae=!1)=>new Promise(async se=>{p.value={...(0,l.toRaw)(Q??{})},ae||(x.value=a.pageIndex??1),M===!0?(x.value=0,b.value=[],A.value=!0,await H()):await B(a.data,x.value,R.value,y.value),se()}),Y=()=>{D.value=0,b.value=[],M===!0&&(x.value=0,A.value=!0)};let E=!1;const O=()=>{E||(E=!0,I())},K=(0,l.ref)(null);if(M===!0){let Q=null;const ae=()=>{K.value&&(Q=new IntersectionObserver(de=>{let Ve=!1;for(let be of de)if(be.intersectionRatio>0){Ve=!0;break}Ve&&H()}),Q.observe(K.value))},se=()=>{!Q||!K.value||(Q.unobserve(K.value),Q=null)};(0,l.onMounted)(ae),(0,l.onBeforeUnmount)(se)}$()&&!S.value&&I();const U=(0,l.ref)(null);(0,l.provide)(V0,{currentRow:U});const P=(Q,ae)=>{U.value=Q,f("current-change",Q,ae)},W=(Q,ae,se)=>{f("row-click",Q,ae,se),fe(a.rowClickSelectable)===!0&&Ce?.value.toggleRowSelection(Q)},N=[],G=(Q,ae)=>{if(f("expand-change",Q,ae),fe(a.uniqueExpansion))if(Array.isArray(ae)&&ae.length==0){const se=N.length;N.splice(0,se)}else{N.forEach(de=>{de!==Q&&Ce?.value.toggleRowExpansion(de,!1)});const se=N.length;N.splice(0,se,Q)}},Z=n.attrs.id??a.prop??n.attrs.name,le=io(),ne=(0,l.ref)([]);let ie=[];const ee=()=>({srcColumnPropertyList:ie.map(Q=>({...Q})),columnPropertyList:ne.value}),re=Q=>{ne.value=[...Q],V()},J=async()=>{const Q=await le.load(Z);Q&&(ne.value=Q)},V=()=>{le.save(Z,ne.value)},g=()=>{le.remove(Z)};J();const w=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",F=(Q,ae={})=>{for(let se in ae){const de=ae[se];typeof de!="function"&&(Q[se]=de)}},X=Q=>{const ae=Q?Q():[],se=new Map;if(ie=[],ae.forEach(de=>{const Ve=de;if(!Ve.props)return;const be=w(Ve.props);se.set(be,Ve);const xe={label:"",prop:""};F(xe,Ve.props),ie.push(xe)}),ne.value.length===ie.length){const de=[];for(let Ve of ne.value){const be=w(Ve),xe=se.get(be);if(!xe)return ae;if(Ve.visible===!1)continue;const at=xe;at.props.fixed=Ve.fixed,de.push(at)}return de}return ae},te=(0,l.shallowRef)(new Map),oe=({row:Q,column:ae,rowIndex:se,columnIndex:de})=>{const Ve=`${se}_${ae.property}`,be=`${se}_${de}`;let xe=te.value.get(Ve);return xe||(xe=te.value.get(be)),typeof xe=="string"?xe:""},ue=Q=>Q?ae=>{const se=[];let de=oe(ae);return de&&se.push(de),de=de=typeof Q=="function"?Q(ae):Q,de&&se.push(de),se.length===0?"":se.join(" ")}:oe,me=(Q=!1)=>{te.value.forEach((ae,se)=>{ve(se,ae,Q)})},ve=(Q,ae,se=!1)=>{const de=`${Q}_item`;se?(h.clearPersistantMessage(),Array.isArray(ae)?h.emitToChildren({name:Q},"setCellClassNames",[]):h.emitToChildren({name:de},"setCustomClassName","")):Array.isArray(ae)?h.emitToChildren({name:Q,cachePolicy:"Persistant",uniqueId:de},"setCellClassNames",ae):h.emitToChildren({name:de,cachePolicy:"Persistant",uniqueId:de},"setCustomClassName",ae)},we=(Q,ae,se)=>{const de=`${Q}_${ae}`;se?(te.value.set(de,se),ve(de,se)):(te.value.delete(de),ve(de,"",!0)),(0,l.triggerRef)(te)},Be=Q=>{me(!0),te.value.clear(),Q.forEach(ae=>{const se=`${ae.rowIndex}_${ae.column}`;Array.isArray(ae.children)?te.value.set(se,ae.children):typeof ae.cellClassName=="string"&&te.value.set(se,ae.cellClassName)}),me(),(0,l.triggerRef)(te)},We=()=>{me(),te.value.clear(),(0,l.triggerRef)(te)},Ze=(0,l.shallowRef)(new Map),$t=({rowIndex:Q})=>{const ae=`${Q}`;return Ze.value.get(ae)??""},el=Q=>Q?ae=>{const se=[];let de=$t(ae);return de&&se.push(de),de=typeof Q=="function"?Q(ae):Q,de&&se.push(de),se.length===0?"":se.join(" ")}:$t,To=(Q,ae)=>{const se=`${Q}`;ae?Ze.value.set(se,ae):Ze.value.delete(se),(0,l.triggerRef)(Ze)},$o=()=>{Ze.value.clear(),(0,l.triggerRef)(Ze)},Ce=(0,l.ref)();return d({clearSelection:()=>Ce?.value.clearSelection(),getSelectionRows:()=>Ce?.value.getSelectionRows(),toggleRowSelection:(Q,ae)=>{Ce?.value.toggleRowSelection(Q,ae)},toggleRowSelectionByProp:(Q,ae)=>{if(!b.value)return;const se=Ul(b.value,Q);se.length!==0&&se.forEach(de=>{Ce?.value.toggleRowSelection(de,ae)})},toggleAllSelection:()=>{Ce?.value.toggleAllSelection()},toggleRowExpansion:(Q,ae)=>{Ce?.value.toggleRowExpansion(Q,ae)},toggleRowExpansionByProp:(Q,ae)=>{if(!b.value)return;const se=Ul(b.value,Q);se.length!==0&&se.forEach(de=>{Ce?.value.toggleRowExpansion(de,ae)})},setCurrentRow:Q=>{Ce?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!b.value)return;const ae=Ul(b.value,Q);ae.length!==0&&Ce?.value.setCurrentRow(ae[0])},getCurrentRow:()=>U.value,clearSort:()=>{Ce?.value.clearSort()},clearFilter:Q=>{Ce?.value.clearFilter(Q)},doLayout:()=>{Ce?.value.doLayout()},sort:(Q,ae)=>{Ce?.value.sort(Q,ae)},scrollTo:(Q,ae)=>{Ce?.value.scrollTo(Q,ae)},setScrollTop:Q=>{Ce?.value.setScrollTop(Q)},setScrollLeft:Q=>{Ce?.value.setScrollLeft(Q)},loadData:I,clearData:Y,getData(){return b.value},getTotalSize(){return D.value},getPageIndex(){return x.value},getPageSize(){return R.value},getColumnSetting:ee,setColumnSetting:re,removeColumnSetting:g,setCellClassName:we,setCellClassNames:Be,clearCellClassName:We,setRowClassName:To,clearRowClassName:$o}),()=>{const Q={...Xe(n.attrs),onCurrentChange:P,onRowClick:W,onExpandChange:G,data:b.value,ref:Ce,class:T.value,"cell-class-name":ue(a.cellClassName),"row-class-name":el(a.rowClassName)},ae={};if(n.slots.default&&(ae.default=()=>X(n.slots.default)),n.slots.append&&(ae.append=n.slots.append),n.slots.empty&&(ae.empty=n.slots.empty),M===!0){const xe=[];if(A.value){const Bt=(0,l.h)(Me.Loading,{class:`${c}__infinite-icon`});xe.push(Bt);const Ol=(0,l.h)("span",{class:`${c}__infinite-text`},[u.loadText.value]);xe.push(Ol)}else{const Bt=(0,l.h)("span",{class:`${c}__infinite-text`},[u.noMoreText.value]);xe.push(Bt)}const at=(0,l.h)("div",{ref:K,class:`${c}__infinite`},xe);ae.append=()=>at}const se=(0,l.h)(C.ElTable,Q,ae),de=[];if(de.push(se),!M){let xe=null;if(typeof n.slots.pagination=="function"?xe=n.slots.pagination():a.showPagination&&(xe=(0,l.h)(C.ElPagination,{class:m.value,total:D.value,pageSize:R.value,"onUpdate:pageSize":j,pageSizes:a.pageSizes,currentPage:x.value,"onUpdate:currentPage":q,hideOnSinglePage:a.hideOnSinglePage,layout:a.paginationLayout,size:a.paginationSize,background:a.paginationBackground,appendSizeTo:a.paginationAppendSizeTo,teleported:a.paginationTeleported,popperClass:a.paginationPopperClass,prevText:a.paginationpPrevText,prevIcos:a.paginationPrevIcon,nextText:a.paginationNextText,pnextIcon:a.paginationNextIcon,disabled:a.paginationDisabled})),a.showSetting){const at=[];xe&&at.push(xe);const Bt=(0,l.h)(C.ElIcon,{class:z.value},{default:()=>(0,l.h)(Me.Setting)}),Ol=(0,l.h)(Al,{...gt(a,mn),tableRef:{getColumnSetting:ee,setColumnSetting:re,removeColumnSetting:g}},{default:()=>Bt});at.push(Ol);const Bo=(0,l.h)("div",{class:v.value},at);de.push(Bo)}else xe&&de.push(xe)}const Ve={default:()=>de},be={...Fe(a,so,uo,mn),ref:i};return a.prop&&(be.prop=`${a.prop}_item`),be.contentClass=`${c}__wrap`,be.errorMarkClass="is-table-error",S.value&&$()&&(be["appear-listen"]=!0,be.onAppear=O),r(be,Ve)}}}}var{componentName:L0,create:F0,scope:R0}=ce("table-item"),D0=F0(I0(L0,R0,De)),Kn=D0;function kt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Kt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function O0(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var q0=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function H0(){return new q0(tt())}function co(e,t,r){return t===r?!0:!(t===null||r===null||kt(e,t)!==kt(e,r)||Kt(e,t)!==Kt(e,r))}function j0(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;let n=null;for(let o of a){let s=!1;if(r==="text")s=kt(e,o)===t;else if(r==="item")s=co(e,o,t);else{let u=Kt(e,o);u==null&&(u=kt(e,o)),s=u===t}if(s){n=o;break}}return n}function K0(e){return{text:e,value:e}}function W0(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var fo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}},Y0={...Ne,...$e,...fo};function U0(e,t,r,a){return{inheritAttrs:!0,props:Y0,emits:["change","update:modelValue","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)(null),v=(0,l.ref)(null),m=(k,S,B,_=!0)=>{const H=j0(n,k,S,B);if(H===null){if(v.value===null)return;v.value=null,z.value=null,_&&(c("update:modelValue",null),c("change",null));return}if(!co(n,H,v.value)){z.value=k;const I=(0,l.toRaw)(H);v.value=I;let Y=null;n.valueType==="text"?Y=kt(n,I):n.valueType==="item"?Y=I:Y=Kt(n,I),_&&(c("update:modelValue",Y),c("change",Y))}},p=(0,l.ref)([]),y=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",Pe.Near,k=>fe(k)),x=H0(),R=async(k,S)=>{if(k){const B=await x.load("radio",k,S);B.length>0&&(typeof B[0]=="string"?p.value=B.map(_=>K0(_)):p.value=B)}};(0,l.watch)([()=>n.source,()=>n.params],async([k,S])=>{R(k,S)},{immediate:!y.value});let M=!1;const $=()=>{M||(M=!0,R(n.source,n.params))};(0,l.watch)([()=>p.value,()=>n.modelValue],([k,S])=>{m(S,n.valueType,k,!1),c("setValue",S)});const q=e,j=(0,l.computed)(()=>({[q]:!0,[`is-${n.direction}`]:!0})),A=k=>{m(k,"value",p.value,!0)};let D=ye(n,"hintText"),b=ye(n,"hintVisible");const L=(k,S)=>{typeof n.sourceFilter=="function"&&(k=k.filter(n.sourceFilter));const B=[];return k.forEach((_,H)=>{const I=Kt(n,_),Y=kt(n,_);let E=O0(n,_);i.value===!0&&(E=i.value),h.value===!0&&(E=h.value);const O=W0(n,_,H)??{},K=`${I}_${H}`,U={...O,key:K,value:I,size:n.size,border:fe(n.border)};E&&(U.disabled=E),n.itemType==="button"?B.push((0,l.h)(C.ElRadioButton,U,{default:()=>[Y]})):typeof S=="function"?B.push((0,l.h)(C.ElRadio,U,{default:()=>S(_)})):B.push((0,l.h)(C.ElRadio,U,{default:()=>[Y]}))}),B};return T({setDisabled:k=>{u.value=k},setReadonly:k=>{f.value=k}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(z.value,o.slots,p.value);const k={...Xe(o.attrs),class:j.value,disabled:i.value||h.value,modelValue:z.value,"text-color":n.textColor,fill:n.fill,onChange:A},S=[],B={};o.slots.options?B.default=o.slots.options:B.default=()=>L(p.value,o.slots.text);const _=(0,l.h)(C.ElRadioGroup,k,B);S.push(_);const H={default:()=>S};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const I={...Fe(n,fo),ref:s,hintText:D.value,hintVisible:b.value};return n.prop&&(I.prop=`${n.prop}_item`),y.value&&(I["appear-listen"]=!0,I.onAppear=$),r(I,H)}}}}var{componentName:G0,create:X0,scope:Z0}=ce("radio-item"),J0=X0(U0(G0,Z0,De,He)),Wn=J0;function Et(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Q0(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}var ec=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await a(t,r))}};function tc(){return new ec(tt())}function mo(e,t,r){return t===r?!0:!(t===null||r===null||Et(e,t)!==Et(e,r)||wt(e,t)!==wt(e,r))}function lc(e,t,r,a){if(a.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const n=[];return t.forEach(o=>{for(let s of a){let u=!1;if(r==="text")u=Et(e,s)===o;else if(r==="item")u=mo(e,s,o);else{let i=wt(e,s);i==null&&(i=Et(e,s)),u=i===o}if(u){n.push(s);break}}}),n}function nc(e){return{text:e,value:e}}function rc(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var po={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},sourceFilter:{type:[Function]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1},separator:{type:[String],required:!1,default:", "}},ac={...Ne,...$e,...po};function oc(e,t,r,a){return{inheritAttrs:!0,props:ac,emits:["change","update:modelValue","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)([]),v=(0,l.ref)([]),m=(k,S,B,_=!0)=>{const H=lc(n,k,S,B);if(H===null){if(v.value===null||v.value.length===0)return;z.value=[],v.value=[],_&&(c("update:modelValue",[]),c("change",[]));return}let I=!0;if(H.length!==v.value.length)I=!1;else for(let Y=0;Y<H.length;Y++){const E=H[Y],O=v.value[Y];if(!mo(n,E,O)){I=!1;break}}if(!I){v.value=H;let Y=[],E=[];H.forEach(K=>{Y.push(wt(n,K)),n.valueType==="text"?E.push(Et(n,K)):n.valueType==="item"?E.push(K):E.push(wt(n,K))}),z.value=Y;const O=(0,l.toRaw)(E);_&&(c("update:modelValue",O),c("change",O))}},p=(0,l.ref)([]),y=Ae((0,l.computed)(()=>n.appearLoad),"appearLoad",Pe.Near,k=>fe(k)),x=tc(),R=async(k,S)=>{if(k){const B=await x.load("checkbox",k,S);B.length>0&&(typeof B[0]=="string"?p.value=B.map(_=>nc(_)):p.value=B)}};(0,l.watch)([()=>n.source,()=>n.params],async([k,S])=>{R(k,S)},{immediate:!y.value});let M=!1;const $=()=>{M||(M=!0,R(n.source,n.params))};(0,l.watch)([()=>p.value,()=>n.modelValue],([k,S])=>{m(S,n.valueType,k,!1),c("setValue",S)});const q=e,j=(0,l.computed)(()=>({[q]:!0,[`is-${n.direction}`]:!0})),A=k=>{m(k,"value",p.value,!0)};let D=ye(n,"hintText"),b=ye(n,"hintVisible");const L=(k,S)=>{typeof n.sourceFilter=="function"&&(k=k.filter(n.sourceFilter));const B=[];return k.forEach((_,H)=>{const I=wt(n,_),Y=Et(n,_);let E=Q0(n,_);i.value===!0&&(E=i.value),h.value===!0&&(E=h.value);const O=rc(n,_,H)??{},K=`${I}_${H}`,U={...O,key:K,value:I,size:n.size,border:fe(n.border)};E&&(U.disabled=E),n.itemType==="button"?B.push((0,l.h)(C.ElCheckboxButton,U,{default:()=>[Y]})):typeof S=="function"?B.push((0,l.h)(C.ElCheckbox,U,{default:()=>S(_)})):B.push((0,l.h)(C.ElCheckbox,U,{default:()=>[Y]}))}),B};return T({setDisabled:k=>{u.value=k},setReadonly:k=>{f.value=k}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(z.value,o.slots,p.value,n.separator);const k={...Xe(o.attrs),class:j.value,disabled:i.value||h.value,modelValue:z.value,"text-color":n.textColor,fill:n.fill,max:ke(n.max),min:ke(n.min),onChange:A},S=[],B={};o.slots.options?B.default=o.slots.options:B.default=()=>L(p.value,o.slots.text);const _=(0,l.h)(C.ElCheckboxGroup,k,B);S.push(_);const H={default:()=>S};H.label=o.slots.default,H.fixedPreTip=o.slots.fixedPreTip,H.fixedTip=o.slots.fixedTip;const I={...Fe(n,po),ref:s,hintText:D.value,hintVisible:b.value};return n.prop&&(I.prop=`${n.prop}_item`),y.value&&(I["appear-listen"]=!0,I.onAppear=$),r(I,H)}}}}var{componentName:ic,create:sc,scope:uc}=ce("checkbox-item"),cc=sc(oc(ic,uc,De,He)),Yn=cc,ho={modelValue:{type:[Number,String],required:!1}},dc={...Ne,...$e,...ho};function fc(e,t,r,a){return{props:dc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=ye(n,"modelValue",M=>ke(M),c),v=e,m=(0,l.computed)(()=>({[v]:!0})),p=M=>{c("update:modelValue",M),c("change",M)};let y=ye(n,"hintText"),x=(0,l.ref)(!1);const R=(0,l.ref)();return T({setDisabled:M=>{u.value=M},setReadonly:M=>{f.value=M}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(z.value,o.slots);const M={...Xe(o.attrs),ref:R,class:m.value,readonly:h.value||i.value,modelValue:z.value,onChange:p},$={},q=[],j=(0,l.h)(C.ElRate,M,$);q.push(j);const A={default:()=>q};A.label=o.slots.default,A.fixedPreTip=o.slots.fixedPreTip,A.fixedTip=o.slots.fixedTip;const D={...Fe(n,ho),ref:s,hintText:y.value,hintVisible:x.value};return n.prop&&(D.prop=`${n.prop}_item`),r(D,A)}}}}var{componentName:mc,create:pc,scope:hc}=ce("rate-item"),gc=pc(fc(mc,hc,De,He)),Un=gc,go={modelValue:{type:[Boolean,String,Number],required:!1},activeValue:{type:[Boolean,String,Number],required:!1,default:()=>!0},inactiveValue:{type:[Boolean,String,Number],required:!1,default:()=>!1},activeText:{type:[String],required:!1},inactiveText:{type:[String],required:!1}};({...Ne,...$e,...go});function vc(e,t,r,a){return{props:{},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),{emitEvent:c,exposeApi:T}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),z=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,$=>{z.value!==$&&(z.value=$)});const v=e,m=(0,l.computed)(()=>({[v]:!0})),p=$=>{z.value=$,c("update:modelValue",$),c("change",$)};let y=ye(n,"hintText"),x=ye(n,"hintVisible");const R=(0,l.ref)();T({setDisabled:$=>{u.value=$},setReadonly:$=>{f.value=$}});const M=(0,l.computed)(()=>{let $=`${z.value}`;return n.inactiveText&&z.value===n.inactiveValue?$=n.inactiveText:n.activeText&&z.value===n.activeValue&&($=n.activeText),$});return()=>{if(d.value==="on"&&(h.value||i.value))return a(M.value,o.slots);const $={...Xe(o.attrs),ref:R,class:m.value,readonly:h.value,disabled:i.value,"active-value":n.activeValue,"inactive-value":n.inactiveValue,"active-text":n.activeText,"inactive-text":n.inactiveText,modelValue:z.value,"onUpdate:modelValue":p},q={},j=[],A=(0,l.h)(C.ElSwitch,$,q);j.push(A);const D={default:()=>j};D.label=o.slots.default,D.fixedPreTip=o.slots.fixedPreTip,D.fixedTip=o.slots.fixedTip;const b={...Fe(n,go),ref:s,hintText:y.value,hintVisible:x.value};return n.prop&&(b.prop=`${n.prop}_item`),r(b,D)}}}}var{componentName:yc,create:bc,scope:Sc}=ce("switch-item"),wc=bc(vc(yc,Sc,De,He)),Gn=wc,vo={modelValue:{type:[String,Number,Boolean,Object]},data:{type:[String,Function,Array],required:!0},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},classKey:{type:[String],required:!1,default:"class"},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},xc=class{scope;constructor(e){this.scope=e}async load(e,t,r,a,n){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const o=je(e,this.scope);return o===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await o(t,r,a))}};function Nc(){return new xc(tt())}var yo={modelValue:{type:[String,Number,Boolean,Array],required:!1},maxLength:{type:[String,Number]}},Cc={...Ne,...$e,...yo,...vo};function zc(e,t,r,a){return{props:Cc,emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,o){const{itemTemplateRef:s,innerDisabled:u,disabled:i,innerReadonly:f,readonly:h,browse:d}=Re(n),c=(0,l.ref)(!1),{emitEvent:T,exposeApi:z}=Te({componentName:e,get readonly(){return h.value},get disabled(){return i.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),v=ye(n,"modelValue",null,T),m=e,p=(0,l.computed)(()=>({[m]:!0})),y=_=>{v.value=_,T("update:modelValue",_),T("change",_)};let x=ye(n,"hintText"),R=(0,l.ref)(!1);const M=_=>{let H=_.target.value;c.value=!0,he(x.value)||(R.value=!0),T("focus",H,_)},$=_=>{setTimeout(()=>{R.value&&(R.value=!1),c.value=!1},0);let H=_.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),j.value||T("blur",H,_)},q=()=>{T("clear","")},j=(0,l.ref)(!1),A=_=>{j.value=_,T("visible-change",_),_||T("selected")},D=(0,l.ref)([]),b=Nc(),L=async(_,H)=>{try{D.value=await b.load("treeselect",_,H)}catch(I){console.error(I)}};(0,l.watch)([()=>n.data,()=>n.params,()=>n.lazy],([_,H,I])=>{!_||I||L(_,H)},{immediate:!0});let k=null;n.lazy&&(typeof n.load=="function"?k=n.load:k=async(_,H)=>{let I={};n.params&&Object.assign(I,n.params),_&&Object.assign(I,_),H(await b.load("treeselect",n.data,I,!0))});let S={label:n.textKey,value:n.valueKey,children:n.childrenKey,isLeaf:n.leafKey,class:n.classKey};const B=(0,l.ref)();return z({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},setDisabled:_=>{u.value=_},setReadonly:_=>{f.value=_}}),()=>{if(d.value==="on"&&(h.value||i.value))return a(v.value,o.slots);const _={...Xe(o.attrs),ref:B,class:p.value,disabled:i.value||h.value,modelValue:v.value,"onUpdate:modelValue":y,lazy:n.lazy,props:S,onClear:q,onFocus:M,onBlur:$,onVisibleChange:A};k?_.load=k:_.data=D.value;const H={};o.slots.option&&(H.default=o.slots.option);const I=[],Y=(0,l.h)(C.ElTreeSelect,_,H);I.push(Y);const E={default:()=>I};E.label=o.slots.default,E.fixedPreTip=o.slots.fixedPreTip,E.fixedTip=o.slots.fixedTip;const O={...Fe(n,yo,vo),ref:s,hintText:x.value,hintVisible:R.value};return n.prop&&(O.prop=`${n.prop}_item`),r(O,E)}}}}var{componentName:kc,create:Ec,scope:_c}=ce("tree-select-item"),Tc=Ec(zc(kc,_c,De,He)),Xn=Tc,$c={},Bc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Vc(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("svg",Bc,[...t[0]||(t[0]=[(0,l.createElementVNode)("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)])])}var Mc=Ge($c,[["render",Vc]]),{componentName:H5,create:Pc,scope:j5}=ce("group-setting"),Ac={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Ic=Pc({components:{FoxPopover:C.ElPopover,FoxCheckbox:C.ElCheckbox,FoxCheckboxGroup:C.ElCheckboxGroup,FoxButton:C.ElButton,FoxIcon:C.ElIcon,DragIcon:Mc,Download:Me.Download,RefreshLeft:Me.RefreshLeft},props:{...Ac},emits:["change"],setup(e,{emit:t,attrs:r,expose:a}){let n=null;const o=(0,l.ref)([]),s=io(),u=K=>K.length>1,i=()=>{const K=[];o.value=[...o.value].map((U,P)=>(U.visible!==!1&&K.push(U.prop),{...U,sortIndex:P})),o.value.length===K.length?v.value=!0:K.length>0&&(m.value=!0),x.value=K},f=K=>{let U=null;if(typeof K=="string")U=document.querySelectorAll(`.fox-group[prop="${K}"] > div > .fox-item[prop]`);else if(K&&typeof K=="object"){const W=K.$el??K;typeof W.querySelectorAll=="function"&&(U=W.querySelectorAll(".fox-item[prop]"))}if(!U)return[];const P=[];return U.forEach(W=>{const N=W.querySelector(".label--string");let G="";N&&(G=N.textContent??"");const Z=W.getAttribute("prop")??"",le=window.getComputedStyle(W,null).getPropertyValue("display");P.push({label:G,prop:Z,sortIndex:0,visible:le!=="none"})}),P},h=()=>{if(!n){const K=f(e.groupRef??e.groupProp);if(K.length===0)return!1;n=K}return!0},d=async(K=!1)=>{const U=await s.load(e.groupProp),P=W=>{if(!W||!n)return;const N=n.map(G=>({...G}));Array.isArray(U)&&U.forEach(G=>{N.some(Z=>{if(Z.prop===G.prop){const le=Z.label;return Object.assign(Z,G),Z.label=le,!0}return!1})}),o.value=N.sort((G,Z)=>G.sortIndex-Z.sortIndex),i(),K&&T(!1)};n?P(!0):yl(h,e.initDelay,5,50,!1,P)},c=()=>{o.value=(n??[]).map(K=>({...K})),i(),T()},T=(K=!0)=>{K&&s.save(e.groupProp,o.value),t("change",o.value.map(U=>({...U})))},z=(0,l.computed)(()=>({"max-width":`${e.popoverWidth-125}px`})),v=(0,l.ref)(!1),m=(0,l.ref)(!1),p=K=>{const U=[];o.value.forEach(P=>{K&&U.push(P.prop),P.visible=K}),v.value=!1,m.value=!1,o.value.length===U.length?v.value=!0:U.length>0&&(m.value=!0),x.value=U,T()},y=()=>{c()},x=(0,l.ref)([]),R=K=>{o.value.forEach(P=>{P.visible=K.indexOf(P.prop)!==-1}),v.value=!1,m.value=!1;const U=o.value.length;K.length===U?v.value=!0:K.length>0&&(m.value=!0),T()},M=()=>{d()};(0,l.onMounted)(()=>{d(!0)});const $={currentRow:null,index:null},q=K=>K?K.dataset&&K.dataset.role==="row"?K:K.tagName.toLowerCase()!=="body"?(K=K.parentElement,q(K)):null:null,j=K=>{const U=K.currentTarget;U&&U.dataset&&($.index=U.dataset.index)},A=K=>{$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null),$.index=null},D=K=>{const U=K.currentTarget;K.relatedTarget;const P=q(U);P&&(K.preventDefault(),$.currentRow&&$.currentRow!==P&&$.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),$.currentRow=P)},b=K=>{K.preventDefault(),$.currentRow&&($.currentRow.classList.remove("is-dragover"),$.currentRow=null)},L=K=>{const U=K.currentTarget,P=q(U);if(!P)return;K.preventDefault();const W=Number($.index),N=Number(P.dataset.index);if(W!==N){if(W<N){const G=o.value[W];o.value.splice(W,1),o.value.splice(N,0,G)}else{const G=o.value[W];o.value.splice(W,1),o.value.splice(N+1,0,G)}i(),T()}},k=K=>{const U=o.value[K];o.value.splice(K,1),o.value.splice(0,0,U),i(),T()},S=K=>{const U=o.value[K];o.value.splice(K,1),o.value.push(U),i(),T()};a({refresh:()=>{n=null,d(!1)}});const B=new Map;let _=null;function H(K){const U=document.createRange();return U.setStart(K,0),U.setEnd(K,K.childNodes.length),U.getBoundingClientRect().width}return{attrs:r,itemPropertyList:o,isDraggble:u,isCheckAll:v,isIndeterminate:m,handleCheckAllChange:p,handleReset:y,checkedValue:x,handleCheckChange:R,onShow:M,onDragStart:j,onDragEnd:A,onDragOver:D,onDragLeave:b,onDrop:L,checkboxLabelStyle:z,toTop:k,toBottom:S,onMouseOverForOverflowText:(K,U,P)=>{const W=K.currentTarget;if(W){const N=Math.floor(W.offsetWidth);if(Math.floor(H(W))>N){let G=B.get(U);if(G){if(G===_)return;Ee.hide(G)}G=Ee.show(W,P,{type:"text",placement:"top",closeOnClick:!1}),B.set(U,G),_=G}}},onMouseLeaveForOverflowText:(K,U)=>{const P=B.get(U);P&&(Ee.hide(P),P===_&&(_=null))},onMouseOverForTip:(K,U)=>{const P=K.currentTarget;P&&(_&&Ee.hide(_),_=Ee.show(P,U,{type:"text",placement:"top",closeOnClick:!1},!0))},onMouseLeaveForTip:K=>{_&&(Ee.hide(_),_=null)}}}}),Lc={class:"fox-group-setting"},Fc={class:"fox-group-setting__header"},Rc={class:"fox-group-setting__body"},Dc={class:"fox-group-setting__body-list","data-role":"container"},Oc=["data-index","draggable"],qc=["onMouseover","onMouseleave"],Hc={class:"tools-item"};function jc(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxCheckbox"),u=(0,l.resolveComponent)("FoxButton"),i=(0,l.resolveComponent)("DragIcon"),f=(0,l.resolveComponent)("Download"),h=(0,l.resolveComponent)("FoxIcon"),d=(0,l.resolveComponent)("FoxCheckboxGroup"),c=(0,l.resolveComponent)("FoxPopover");return(0,l.openBlock)(),(0,l.createBlock)(c,(0,l.mergeProps)(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default")]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Lc,[(0,l.createElementVNode)("div",Fc,[(0,l.createVNode)(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=T=>e.isCheckAll=T),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),(0,l.createVNode)(u,{onClick:e.handleReset,link:"",type:"primary"},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.resetText),1)]),_:1},8,["onClick"])]),(0,l.createElementVNode)("div",Rc,[(0,l.createVNode)(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=T=>e.checkedValue=T),onChange:e.handleCheckChange},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",Dc,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.itemPropertyList,T=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:T.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":T.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...z)=>e.onDragStart&&e.onDragStart(...z)),onDragend:t[6]||(t[6]=(...z)=>e.onDragEnd&&e.onDragEnd(...z)),onDrop:t[7]||(t[7]=(...z)=>e.onDrop&&e.onDrop(...z)),onDragover:t[8]||(t[8]=(...z)=>e.onDragOver&&e.onDragOver(...z)),onDragleave:t[9]||(t[9]=(...z)=>e.onDragLeave&&e.onDragLeave(...z))},[e.isDraggble(e.itemPropertyList)?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,class:"icon-item"})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(s,{class:"checkbox-item",label:T.prop},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("span",{onMouseover:z=>e.onMouseOverForOverflowText(z,T.prop,T.label),onMouseleave:z=>e.onMouseLeaveForOverflowText(z,T.prop),class:"checkbox-item__label",style:(0,l.normalizeStyle)(e.checkboxLabelStyle)},(0,l.toDisplayString)(T.label),45,qc)]),_:2},1032,["label"]),(0,l.createElementVNode)("div",Hc,[(0,l.createVNode)(h,{onClick:z=>e.toTop(T.sortIndex),onMouseover:t[1]||(t[1]=z=>e.onMouseOverForTip(z,e.toTopText)),onMouseleave:t[2]||(t[2]=z=>e.onMouseLeaveForTip(z)),class:"is-reverse"},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"]),(0,l.createVNode)(h,{onClick:z=>e.toBottom(T.sortIndex),onMouseover:t[3]||(t[3]=z=>e.onMouseOverForTip(z,e.toBottomText)),onMouseleave:t[4]||(t[4]=z=>e.onMouseLeaveForTip(z))},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(f)]),_:1},8,["onClick"])])],40,Oc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}var Zn=Ge(Ic,[["render",jc]]),Kc={data:{type:[String,Function,Array],required:!1},params:{type:[Object],required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},leafKey:{type:[String],required:!1,default:"leaf"},disabledKey:{type:[String],required:!1,default:"disabled"},classKey:{type:[String],required:!1,default:"class"},autoLoad:{type:[Boolean],required:!1,default:()=>!0},props:{type:[Object],required:!1},filterKeyword:{type:[String,Boolean,Number,Object],required:!1},filterNodeMethod:{type:[Function],required:!1},lazy:{type:[Boolean],required:!1},load:{type:[Function],required:!1}},Wc=class{scope;constructor(e){this.scope=e}async load(e,t,r,a,n){if(Array.isArray(t))return t;if(typeof t=="function")return await t(r,a);const o=je(e,this.scope);return o===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await o(t,r,a))}};function Yc(){return new Wc(tt())}var Uc={...Vn,...Kc};function Gc(e,t,r){return{props:Uc,setup(a,n){const o=e,s=(0,l.computed)(()=>({[o]:!0})),u=(0,l.ref)([]),i=Yc(),f=async(x,R)=>{try{u.value=await i.load("tree",x,R)}catch(M){console.error(M)}},h=(0,l.shallowRef)({}),d=(0,l.computed)(()=>({...h.value,...a.params??{}}));(Array.isArray(a.data)?!0:a.lazy?!1:fe(a.autoLoad))&&(0,l.watch)([()=>a.data,()=>d.value],([x,R])=>{x&&f(x,R)},{immediate:!0,deep:!0});let T=null;a.lazy&&(typeof a.load=="function"?T=a.load:T=async(x,R)=>{let M={};a.params&&Object.assign(M,a.params),x&&Object.assign(M,x),R(await i.load("treeselect",a.data,M,!0))});const z={label:a.textKey,value:a.valueKey,children:a.childrenKey,isLeaf:a.leafKey,class:a.classKey,disabled:a.disabledKey,...a.props??{}},v=(x={})=>new Promise(async R=>{h.value={...(0,l.toRaw)(x??{})},await f(a.data,d.value),R()}),m=function(x,R){if(typeof a.filterNodeMethod=="function")return a.filterNodeMethod(x,R);if(!a.filterKeyword)return!0;const M=`${R[z.label]}`,$=`${x}`;return M.includes($)},p=(0,l.ref)();(0,l.watch)(()=>a.filterKeyword,x=>{p.value.filter(x)});const y=x=>(...R)=>{const M=p.value[x];return Reflect.apply(M,p.value,[...R])};return n.expose({loadData:v,filter:y("filter"),updateKeyChildren:y("updateKeyChildren"),getCheckedNodes:y("getCheckedNodes"),setCheckedNodes:y("setCheckedNodes"),getCheckedKeys:y("getCheckedKeys"),setCheckedKeys:y("setCheckedKeys"),setChecked:y("setChecked"),getHalfCheckedNodes:y("getHalfCheckedNodes"),getHalfCheckedKeys:y("getHalfCheckedKeys"),getCurrentKey:y("getCurrentKey"),getCurrentNode:y("getCurrentNode"),setCurrentKey:y("setCurrentKey"),setCurrentNode:y("setCurrentNode"),getNode:y("getNode"),remove:y("remove"),append:y("append"),insertBefore:y("insertBefore"),insertAfter:y("insertAfter")}),()=>{const x={...Xe(n.attrs),class:s.value,lazy:a.lazy,props:z,ref:q=>p.value=q};T?x.load=T:x.data=u.value,x["filter-node-method"]=m;const R=[],M=(0,l.h)(C.ElTree,x,n.slots);R.push(M);const $={default:()=>R};return(0,l.h)(r,{...gt(a,Vn)},$)}}}}var{componentName:Xc,create:Zc,scope:Jc}=ce("tree-item"),Qc=Zc(Gc(Xc,Jc,Vl)),Jn=Qc,e2={...Ne,...$e,placeholder:{type:[String]},textAlign:{type:[String]},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1}};function t2(e,t,r,a){return{props:e2,emits:["click","focus","blur","change"],setup(n,o){const{itemTemplateRef:s,disabled:u,readonly:i}=Re(n),{emitEvent:f,exposeApi:h}=Te({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return u.value},get props(){return n},context:o,get templateRefProxy(){return s.value}},n.prop??o.attrs.name),{toLocaleRefs:d}=(0,Le.useFoxI18n)(t),c=d(n,["placeholder"]),T=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,k=>{T.value=k,f("change",k)});const z=(0,l.computed)(()=>({[`${e}`]:!0})),v=(0,l.computed)(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!u.value&&he(T.value),"is-disabled":u.value,"is-readonly":i.value})),m=Ae((0,l.computed)(()=>n.textAlign),"textAlign"),p=(0,l.computed)(()=>{const k={};return m.value&&(k["text-align"]=m.value),k}),y=(0,l.computed)(()=>!he(n.modelValue)||o.slots.main?!0:!!he(n.desc)),x=(0,l.computed)(()=>he(T.value)?c.placeholder.value:T.value),R=(0,l.computed)(()=>!he(n.desc)||o.slots.sub),M=(0,l.computed)(()=>({[`${e}__sub`]:!0})),$=(0,l.computed)(()=>{const k={};return m.value&&(k["text-align"]=m.value),k}),q=()=>{f("focus",T.value)},j=()=>{f("blur",T.value)},A=(0,l.computed)(()=>({[`${e}__append`]:!0,"is-disabled":u.value,"is-readonly":i.value})),D=k=>{u.value==!0||i.value==!0||f("click")},b=(0,l.computed)(()=>n.icon??r),L=(0,l.computed)(()=>({action:!0}));return h(),()=>{const k=[];if(typeof o.slots.content=="function"){const O=o.slots.content();k.push(O)}else{const O=[];if(y.value){const U={tabIndex:0,class:v.value,style:p.value,onFocus:q,onBlur:j};let P=null;o.slots.main?P=(0,l.h)("view",U,[o.slots.main(x.value)]):P=(0,l.h)("view",U,[x.value]),O.push(P)}if(R.value){const U={tabIndex:0,class:M.value,style:$.value,onFocus:q,onBlur:j};let P=null;o.slots.sub?P=(0,l.h)("view",U,[o.slots.sub(n.desc)]):P=(0,l.h)("view",U,[n.desc]),O.push(P)}const K=(0,l.h)("view",{class:z.value,onClick:D},O);k.push(K)}const S=[],B=pe(n.iconSize);let _=o.slots.icon;if(!_){const O={width:B,height:B,class:["action-icon"]};_=(0,l.h)(b.value,O)}const H=(0,l.h)("view",{class:L.value,onClick:D},{default:()=>[_]});S.push(H);const I=(0,l.h)("view",{class:A.value},{default:()=>S});k.push(I);const Y={default:()=>k};Y.label=o.slots.default,Y.prepend=o.slots.prepend,Y.append=o.slots.append,Y.fixedPreTip=o.slots.fixedPreTip,Y.fixedTip=o.slots.fixedTip;const E={...gt(n,$e,Ne),ref:s};return n.prop&&(E.prop=`${n.prop}_item`),a(E,Y)}}}}var{componentName:l2,create:n2,scope:r2}=ce("link-item"),a2=n2(t2(l2,r2,Me.ArrowRight,De)),Qn=a2;var o2=["aria-labelledby"],i2=[(0,l.createElementVNode)("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],s2=(0,l.defineComponent)({__name:"Uploader",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},i2,14,o2))}});var u2=["aria-labelledby"],c2=[(0,l.createElementVNode)("path",{d:"M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512zm0-938.667c-234.667 0-426.667 192-426.667 426.667s192 426.667 426.667 426.667 426.667-192 426.667-426.667S746.667 85.333 512 85.333zM448 320a64 64 0 1 0 128 0 64 64 0 1 0-128 0zm-17.067 149.333h51.2c12.8 0 21.334 8.534 21.334 21.334v8.533c0 12.8-8.534 21.333-21.334 21.333h-51.2c-12.8 0-25.6-12.8-25.6-25.6s12.8-25.6 25.6-25.6zm51.2 0H524.8c25.6 0 51.2 21.334 51.2 51.2v8.534L537.6 755.2c0 8.533-8.533 17.067-21.333 17.067H473.6c-25.6 0-51.2-21.334-51.2-51.2v-8.534L460.8 486.4c4.267-8.533 12.8-17.067 21.333-17.067zm8.534 251.734h76.8c12.8 0 25.6 12.8 25.6 25.6s-12.8 25.6-25.6 25.6h-76.8c-12.8 0-21.334-8.534-21.334-21.334v-12.8c4.267-12.8 12.8-17.066 21.334-17.066z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],d2=(0,l.defineComponent)({__name:"Tips",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},c2,14,u2))}});var f2=["aria-labelledby"],m2=[(0,l.createElementVNode)("path",{d:"M762.311 391.396C655.36 466.489 566.613 552.96 491.52 659.91c-20.48 27.307-61.44 27.307-79.644-2.275-34.134-52.338-72.818-91.023-125.156-125.156-25.031-15.929-9.102-54.613 20.48-50.062 56.889 11.378 100.124 34.133 143.36 72.818 77.369-93.298 175.218-166.116 286.72-213.903 27.307-9.102 50.062 31.858 25.031 50.063M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],p2=(0,l.defineComponent)({__name:"Success",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},m2,14,f2))}});var h2=["aria-labelledby"],g2=[(0,l.createElementVNode)("path",{d:"M381.262 1005.563c-16.132 21.51-45.708 24.198-67.216 8.066-21.51-16.132-24.198-45.708-8.066-67.217C413.526 806.602 518.384 666.79 625.932 529.67c8.066-10.755 8.066-24.198 0-34.953C518.384 354.905 413.526 215.093 305.98 77.972c-16.132-21.51-10.755-51.085 8.066-67.217C335.556-5.377 365.13 0 381.262 18.82c107.547 142.5 212.405 282.31 319.952 419.433 34.952 43.019 34.952 104.858 0 150.565C593.667 728.63 488.81 868.44 381.262 1005.562",fill:"currentColor","fill-opacity":"0.9"},null,-1)],v2=(0,l.defineComponent)({__name:"Right",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},g2,14,h2))}});var y2=["aria-labelledby"],b2=[(0,l.createElementVNode)("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],S2=(0,l.defineComponent)({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},b2,14,y2))}});var w2=["aria-labelledby"],x2=[(0,l.createElementVNode)("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],Il=(0,l.defineComponent)({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},x2,14,w2))}});var N2=["aria-labelledby"],C2=[(0,l.createElementVNode)("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1)],z2=(0,l.defineComponent)({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},C2,14,N2))}});var k2=["aria-labelledby"],E2=[(0,l.createElementVNode)("path",{d:"M512 1024C229.831 1024 0 794.169 0 512S229.831 0 512 0s512 229.831 512 512-229.831 512-512 512zm0-955.733C266.24 68.267 68.267 266.24 68.267 512S266.24 955.733 512 955.733 955.733 757.76 955.733 512 757.76 68.267 512 68.267zm111.502 282.169c13.654-13.654 34.134-13.654 47.787 0 11.378 11.377 13.653 31.857 2.275 45.51l-2.275 2.276-111.502 111.502 111.502 111.503c13.653 13.653 13.653 34.133 0 47.786-13.653 13.654-34.133 13.654-47.787 0L512 557.511 400.498 669.013c-11.378 11.378-31.858 13.654-45.511 2.276l-2.276-2.276c-11.378-11.377-13.653-31.857-2.275-45.51l2.275-2.276 111.502-111.503-111.502-111.502c-13.653-13.653-13.653-34.133 0-47.786s34.133-13.654 47.787 0L512 461.938l111.502-111.502z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],_2=(0,l.defineComponent)({__name:"Failure",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},E2,14,k2))}});var T2=["aria-labelledby"],$2=[(0,l.createElementVNode)("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],B2=(0,l.defineComponent)({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},$2,14,T2))}});var V2=["aria-labelledby"],M2=[(0,l.createElementVNode)("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1)],P2=(0,l.defineComponent)({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},M2,14,V2))}});var A2=["aria-labelledby"],I2=[(0,l.createElementVNode)("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1)],L2=(0,l.defineComponent)({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const r=e,a=t,n=i=>{a("click",i)},o=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},s=(0,l.computed)(()=>{const i="fox-icon";return{[i]:!0,[i+"-"+r.name]:r.name,[r.class]:!!r.class}}),u=(0,l.computed)(()=>{const i={};return i.height=o(r.height)??o(r.size),i.width=o(r.width)??o(r.size),i.color=r.color,i});return(i,f)=>((0,l.openBlock)(),(0,l.createElementBlock)("svg",{class:(0,l.normalizeClass)(s.value),style:(0,l.normalizeStyle)(u.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},I2,14,A2))}});var er={prop:{type:[String]},modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},showScrollArrow:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Br=(e,t)=>t[e.textKey],Pt=(e,t)=>t[e.valueKey],F2=(e,t)=>t[e.visibleKey],Vr=(e,t)=>t[e.disabledKey],R2=(e,t)=>{const r=t[e.doitKey];return fe(r)},D2=(e,t)=>{const r=t[e.numKey];return r==null?null:ke(t[r])},Mr=(e,t,r)=>{const a=e.itemOptions;return typeof a=="function"?a(t,r):a||null};function O2(e,t,r,a,n,o=!1){return{props:er,emits:["update:modelValue","change","click"],setup(s,u){const{emitEvent:i,exposeApi:f}=_t({context:u},s.prop),{slots:h}=u,d=(0,l.computed)(()=>{const g={};return g[`${e}`]=!0,g}),c=(0,l.computed)(()=>{const g={};return g[`${e}__titles`]=!0,g[`${s.direction}`]=!0,s.align&&(g[`${s.align}`]=!0),s.scroll===!0&&(g.scrollable=!0),s.shape&&(g[`${s.shape}`]=!0),s.showScrollArrow?(Z.value===!0&&(g["has-left-scroll-arrow "]=!0),le.value===!0&&(g["has-right-scroll-arrow "]=!0)):s.showQuickNavigation&&(g["has-navigation"]=!0),g}),T=(0,l.computed)(()=>({})),z=(0,l.computed)(()=>{if(!s.gutter)return 0;const g=pe(s.gutter);return g<=0?0:g}),v=(0,l.ref)(s.modelValue);(0,l.watch)(()=>s.modelValue,g=>{v.value!==g&&(v.value=g,O(!1))});const m=(0,l.ref)({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),p=(0,l.computed)(()=>{const g={};return x.value||(g.display="none"),g}),y=(0,l.ref)(),x=(0,l.ref)(!1),R=()=>{M(!x.value)},M=g=>{const w=g;w?(x.value=w,setTimeout(()=>{m.value["fox-tabs-bar__popup--show"]=!0,m.value["fox-tabs-bar__popup--hide"]=!1},0)):(m.value["fox-tabs-bar__popup--show"]=!1,m.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{x.value=!1},{once:!0}):setTimeout(()=>{x.value=!1},0))},$=(0,l.ref)(),q=(0,l.ref)([]),j=(g,w)=>{q.value[w]=g},A=g=>w=>{j(w,g)},D=(g,w)=>{const F=$.value,X=q.value;if(!F||!X||!X[g])return;const te=X[g];let oe=0;s.direction==="vertical"?oe=te.offsetTop-(F.offsetHeight-te.offsetHeight)/2:oe=te.offsetLeft-(F.offsetWidth-te.offsetWidth)/2,b(F,oe,w?0:.3,s.direction)},b=(g,w,F,X)=>{let te=0;const oe=X==="horizontal"?g.scrollLeft:g.scrollTop,ue=F===0?1:Math.round(F*1e3/16);function me(){X==="horizontal"?g.scrollLeft+=(w-oe)/ue:g.scrollTop+=(w-oe)/ue,++te<ue&&vn(me)}me()},L=(g,w)=>{const F=Pt(s,g),X={};return X[`${e}__titles-item`]=!0,X.disabled=Vr(s,g),X.active=F===v.value,s.shape&&(X[`${s.shape}`]=!0),s.ellipsis&&(X.ellipsis=!0),w&&(w.class&&(X[`${w.class}`]=!0),w.disabled===!0&&(X.disabled=w.disabled)),X},k=(g,w)=>{const F={};if(z.value>0){const X=Math.abs(z.value/2);s.direction==="vertical"?(F["margin-top"]=`${X}px`,F["margin-bottom"]=`${X}px`):(F["margin-left"]=`${X}px`,F["margin-right"]=`${X}px`)}return w&&w.style&&Object.assign(F,w.style),F},S=(g,w)=>`${Pt(s,g)??w}`,B=(g,w)=>{const F=Pt(s,g),X={};X[`${e}__popup-item`]=!0,X.disabled=Vr(s,g),X.active=F===v.value,s.shape&&(X[`${s.shape}`]=!0);const te=Mr(s,g,w);return te&&te.disabled===!0&&(X.disabled=te.disabled),X},_=(0,l.computed)(()=>(s.data??[]).filter(g=>F2(s,g)!==!1)),H=(g,w)=>{const F=Pt(s,g);if(i("click",g,w),v.value==F)return;const X=()=>{v.value=F,s.scroll&&D(w,!1),i("update:modelValue",F),i("change",g,w)};if(typeof s.beforeChange=="function"){const te=s.beforeChange(g,w);oa(te)?te.then(oe=>{oe!==!1&&X()}).catch(()=>{X()}):te!==!1&&X()}else X()},I=(g,w)=>function(){H(g,w)},Y=(g,w)=>{H(g,w),M(!1)},E=(g,w)=>function(){Y(g,w)},O=g=>{if(!Array.isArray(s.data)||!s.scroll)return;G()&&re();const w=s.data.findIndex(F=>Pt(s,F)===v.value);w!==-1&&D(w,g)},K=()=>{G()||J()};(0,l.watch)(()=>s.data,()=>{setTimeout(O,0)}),(0,l.onMounted)(()=>{O(!0)}),(0,l.onBeforeUnmount)(()=>{K()}),f({});const U=(g,w)=>{if(h.item)return h.item({item:g,index:w});const F=Mr(s,g,w),X=[];if(h.text){const oe=h.text({item:g,index:w});X.push(oe)}else{const oe=[];if(F?.doit===!0||R2(s,g)){const we=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"doit"]});oe.push(we)}const ue=F?.num??D2(s,g);if(ue){let we="";const Be=ke(ue);Be>=100?we="99+":we=`${Be}`;const We=(0,l.h)("view",{class:[`${e}__titles-item-tip`,"num"]},[we]);oe.push(We)}const me={class:`${e}__titles-item-text`};oe.push(Br(s,g));const ve=(0,l.h)("view",me,oe);X.push(ve)}const te=(0,l.h)("view",{class:`${e}__titles-item-line`});return X.push(te),(0,l.h)("view",{ref:A(w),class:L(g,F),style:k(g,F),key:S(g,w),onClick:I(g,w)},X)},P=()=>{const g=h.default?h.default():[];if(g.length===0)for(let w=0;w<_.value.length;w++){const F=_.value[w],X=U(F,w);g.push(X)}return(0,l.h)("view",{ref:$,class:c.value,style:T.value},g)},W=()=>{let g=null;return h.navigation?g=h.navigation():g=(0,l.h)(r),(0,l.h)("view",{class:`${e}__navigation`,onClick:R},[g])},N=()=>{const g=[];for(let w=0;w<_.value.length;w++){const F=_.value[w];let X=null;h.popupItem?X=h.popupItem({item:F,index:w}):X=Br(s,F);const te=(0,l.h)("view",{class:B(F,w),key:S(F,w),onClick:E(F,w)},[X]);g.push(te)}return(0,l.h)("view",{class:m.value,style:p.value},g)},G=()=>s.showScrollArrow&&s.direction=="horizontal",Z=(0,l.ref)(!1),le=(0,l.ref)(!1),ne=g=>{const w=$.value,F=q.value;if(!(!w||!F))if(g==="left"){const X=w.scrollLeft;let te=X;for(let oe=0;oe<F.length;oe++){const ue=F[oe].offsetLeft;if(X-ue<0)break;te=ue}b(w,te,.3,"horizontal")}else{const X=w.scrollLeft;let te=X,oe=w.offsetWidth;for(let ue=F.length-1;ue>=0;ue--){const me=F[ue].offsetLeft+F[ue].offsetWidth;if(me-X<w.offsetWidth){te+=oe-me;break}oe=me}b(w,te,.3,"horizontal")}},ie=Ke(()=>{const g=$.value;if(!g)return;let w=g.scrollLeft>0;w!==Z.value&&(Z.value=w);let F=g.scrollWidth-g.scrollLeft>g.offsetWidth;F!==le.value&&(le.value=F)},50),ee=g=>{ie()},re=()=>{const g=$.value;g&&(ie(),g.addEventListener("scroll",ee))},J=()=>{const g=$.value;g&&g.removeEventListener("scroll",ee)},V=g=>{if(g==="left"&&Z.value!==!0||g==="right"&&le.value!==!0)return null;let w=null;return g==="left"?h.leftArrow?w=h.leftArrow():w=(0,l.h)(a):h.rightArrow?w=h.rightArrow():w=(0,l.h)(n),(0,l.h)("view",{class:[`${e}__scroll-arrow`,g],onClick:()=>{ne(g)}},[w])};return()=>{const g=[],w=P();if(g.push(w),G()){const F=V("left");F&&g.push(F);const X=V("right");X&&g.push(X)}else if(s.showQuickNavigation){const F=W();g.push(F);const X=N();g.push(X)}return(0,l.h)("view",{class:d.value},g)}}}}var{create:q2,componentName:H2,scope:j2}=ce("tabs-bar"),K2=q2(O2(H2,j2,S2,z2,v2,!1)),Ll=K2,bo=Symbol("TabsStatesKey"),tr={prop:{type:[String]},modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1},transition:{type:[Boolean],default:()=>!0},height:{type:[String,Number]},width:{type:[String,Number]}},Pr=10;function So(e,t){return e>t&&e>Pr?"horizontal":t>e&&t>Pr?"vertical":""}function Jt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Qt(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",r=()=>e.direction==="horizontal",a=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:(s=>{if(s.touches){const u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=So(e.offsetX,e.offsetY))}),start:(s=>{if(a(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()}),reset:a,isVertical:t,isHorizontal:r,state:e}}function W2(){const e=(0,l.ref)(0),t=(0,l.ref)(0),r=(0,l.ref)(0),a=(0,l.ref)(0),n=(0,l.ref)(0),o=(0,l.ref)(0),s=(0,l.ref)(0),u=(0,l.ref)(0),i=(0,l.ref)(0),f=(0,l.ref)(0),h=(0,l.ref)(""),d=()=>h.value==="vertical",c=()=>h.value==="horizontal",T=()=>{s.value=0,u.value=0,i.value=0,f.value=0,h.value="",r.value=0};return{move:(m=>{if(m.touches){const p=m.touches[0];s.value=p.clientX-e.value,u.value=p.clientY-t.value,n.value=p.clientX,o.value=p.clientY}else{const p=m;s.value=p.clientX-e.value,u.value=p.clientY-t.value,n.value=p.clientX,o.value=p.clientY}i.value=Math.abs(s.value),f.value=Math.abs(u.value),a.value=Date.now()-r.value,h.value||(h.value=So(i.value,f.value))}),start:(m=>{if(T(),m.touches){const p=m.touches[0];e.value=p.clientX,t.value=p.clientY}else{const p=m;e.value=p.clientX,t.value=p.clientY}r.value=Date.now()}),reset:T,startX:e,startY:t,startTime:r,duration:a,moveX:n,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:f,direction:h,isVertical:d,isHorizontal:c}}var Y2=15,U2=300,G2=200;function X2(e,t,r=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*r}function Ar(e,t=0,r,a,n=G2){r==="end"?e.style.transition=`transform ${n}ms linear`:e.style.transition="transform 0ms linear",a==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}var Z2=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(e,t,r,a=1){this.onStart=e,this.onMove=t,this.onEnd=r,this.momentumReduceRatio=a,this.isTouch=Jt()}open(e){this.el=e;const t=Qt(),r=(a,n,o)=>{const s={delta:a,direction:n,type:o};this.onMove(s)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=a=>{if(this.moving)return;t.start(a),this.transitionEndTrigger=()=>{e.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,e.removeEventListener("transitionend",this.transitionend),e.addEventListener("transitionend",this.transitionend),e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.addEventListener("touchcancel",this.touchend);const n={delta:0,type:"start",direction:this.direction};this.onStart(n)},this.touchmove=a=>{if(!this.moving)return;t.move(a);let n=0;if(this.direction==="horizontal"){if(t.isVertical())return;n=t.state.deltaX}else{if(t.isHorizontal())return;n=t.state.deltaY}r(n,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;e.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),e.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&e.removeEventListener("touchcancel",this.touchend);let a=0;if(this.direction==="horizontal"){if(t.isVertical()){this.moving=!1;return}a=t.state.deltaX}else{if(t.isHorizontal()){this.moving=!1;return}a=t.state.deltaY}const n=t.state.duration;n<U2&&Math.abs(a)>Y2?(a=X2(a,n,this.momentumReduceRatio),r(a,this.direction,"end")):r(a,this.direction,"end")},e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const e=this.el;this.transitionend&&e.addEventListener("transitionend",this.transitionend),this.touchstart&&e.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&e.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&e.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&e.addEventListener("touchcancel",this.touchcancel),this.el=null}};function J2(e,t,r,a=1){return new Z2(e,t,r,a)}function Q2(e,t,r=!1){return{props:tr,emits:["update:modelValue","change"],setup(a,n){const{emitEvent:o,exposeApi:s}=_t({context:n},a.prop),{slots:u}=n,i=(0,l.shallowRef)([]),f={current:(0,l.ref)(a.modelValue??""),direction:(0,l.ref)(a.direction),transition:a.transition,tabWidth:(0,l.ref)(-1),tabHeight:(0,l.ref)(-1),add:A=>{const D={name:A};f.current.value===A&&(D.loaded=!0),i.value.push(D),(0,l.triggerRef)(i)},remove:A=>{const D=i.value.findIndex(b=>b.name===A);D!==-1&&i.value.splice(D,1)},isLoaded:A=>{if(!a.lazy)return!0;const D=i.value.findIndex(b=>b.name===A);return D!==-1?f.current.value?i.value[D].loaded??!1:D===0:!1}};(0,l.provide)(bo,f);const h=A=>{const D=i.value.findIndex(b=>b.name===A);D!==-1&&(i.value[D].loaded=!0,(0,l.triggerRef)(i))};(0,l.watch)([()=>a.modelValue,()=>a.direction],([A,D])=>{f.current.value!==A&&(f.current.value=A??"",h(A??"")),f.direction.value!==D&&(f.direction.value=D)});const d=(0,l.ref)(null),c=(0,l.ref)(null),T=(0,l.computed)(()=>({[e]:!0,[`${a.direction}`]:!0})),z=(0,l.computed)(()=>{const A={};if(a.width){const D=Se(a.width);D&&(A.width=D)}if(a.height){const D=Se(a.height);D&&(A.height=D)}return A});let v=!0;const m=(0,l.computed)(()=>{const A={};if(a.transition===!1)return A;const D=i.value.length;if(D<=0)return A;const b=i.value.findIndex(L=>L.name===f.current.value);return f.direction.value==="vertical"?f.tabHeight.value>0&&(A.height=`${D*f.tabHeight.value}px`,b!==-1&&(A.transform=`translate(0, -${b*f.tabHeight.value}px)`)):f.tabWidth.value>0&&(A.width=`${D*f.tabWidth.value}px`,b!==-1&&(A.transform=`translate(-${b*f.tabWidth.value}px, 0)`)),v&&(v=!1,A.transition="transform 0s ease"),A}),p={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},y=A=>{const D=i.value.length,b=i.value.findIndex(L=>L.name===f.current.value);p.moved=0,A.direction==="vertical"?(p.min=-1*(f.tabHeight.value*(D-1)+f.tabHeight.value/4),p.max=f.tabHeight.value/4,p.start=-b*f.tabHeight.value,p.itemDistance=f.tabHeight.value):(p.min=-1*(f.tabWidth.value*(D-1)+f.tabWidth.value/4),p.max=f.tabWidth.value/4,p.start=-b*f.tabWidth.value,p.itemDistance=f.tabWidth.value)},x=A=>{const D=c.value;if(!D)return;let b=p.start+A.delta;if(b>p.max?b=p.max:b<p.min&&(b=p.min),A.type==="move")Ar(D,b,"move",A.direction,300);else if(A.type==="end"){let L=Math.floor(Math.abs(b)*1/p.itemDistance);const k=Math.abs(b)%p.itemDistance;p.start>b?k>=p.itemDistance*p.triggerAutoMoveRatio&&(L+=1):k>p.itemDistance-p.itemDistance*p.triggerAutoMoveRatio&&(L+=1),b=-1*L*p.itemDistance,Ar(D,b,"end",A.direction,300),p.moved=b;const S=i.value[L].name;f.current.value=S??"",h(S??""),o("update:modelValue",S)}},R=()=>{},M=()=>{if(!d.value)return;const A=Nl(d.value);f.tabWidth.value=A.width,f.tabHeight.value=A.height},$=xa(M,250);let q=null,j=null;return(0,l.onMounted)(()=>{a.transition!==!1&&d.value&&(M(),window.ResizeObserver&&(j=new window.ResizeObserver($),j.observe(d.value)),a.draggle&&(q=J2(y,x,R),q.open(c.value)))}),(0,l.onBeforeUnmount)(()=>{j&&(j.disconnect(),j=null),q&&q.close()}),s({doLayout(){M()}}),()=>{const A=(0,l.h)("view",{class:`${e}__panes`,style:m.value,ref:c},[u?.default?.()]);return(0,l.h)("view",{class:T.value,style:z.value,ref:d},[A])}}}}var{create:e3,componentName:t3,scope:l3}=ce("tabs-container"),n3=e3(Q2(t3,l3,!1)),Fl=n3,r3={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1},label:{type:[String],required:!1}};function a3(e,t,r){return{props:r3,setup(a,{emit:n,slots:o}){const s=(0,l.inject)(bo);(0,l.onMounted)(()=>{s.add(a.paneKey)}),(0,l.onBeforeUnmount)(()=>{s.remove(a.paneKey)});const u=(0,l.computed)(()=>{const h=[e];return s.direction.value==="vertical"?h.push("is-vertical"):h.push("is-horizontal"),s.transition===!1?h.push("is-no-transition"):h.push("is-transition"),h}),i=(0,l.computed)(()=>{const h={};return s.transition===!1?(s.current.value!==a.paneKey&&(h.display="none"),h):(s.direction.value==="vertical"&&s.tabHeight.value>0?h.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(h.width=`${s.tabWidth.value}px`),h)}),f=(0,l.computed)(()=>a.loaded!=null?fe(a.loaded):s.isLoaded(a.paneKey));return()=>{let h=[];if(f.value)h=o?.default?.()??[];else if(o.empty)h=o.empty();else{const d={class:`${e}__empty-icon`},c=(0,l.h)(a.emptyIcon??r,d),T=(0,l.h)("view",{class:`${e}__empty-text`},[a.emptyText??"Loading"]),z=(0,l.h)("view",{class:`${e}__empty`},[c,T]);h.push(z)}return(0,l.h)("view",{class:u.value,style:i.value,prop:a.paneKey},h)}}}}var{create:o3,componentName:i3,scope:s3}=ce("tabs-pane"),u3=o3(a3(i3,s3,Il)),lr=u3,c3={...er,...tr,modelValue:{type:[String,Number],default:0},direction:{type:[String]},height:{type:[String,Number]},width:{type:[String]}};function d3(e,t,r,a){return{props:c3,emits:["update:modelValue","change"],setup(n,o){const{emitEvent:s,exposeApi:u}=_t({context:o},n.prop),{slots:i}=o,f=e,h=(0,l.computed)(()=>{const p=[`${f}`];return n.direction==="vertical"?p.push("vertical-tabbar"):p.push("horizontal-tabbar"),p}),d=(0,l.computed)(()=>{const p={};if(n.width){const y=Se(n.width);y&&(p.width=y)}if(n.height){const y=Se(n.height);y&&(p.height=y)}return p}),c=(0,l.computed)(()=>[`${f}__bar`]),T=(0,l.computed)(()=>[`${f}__container`]),z=(0,l.ref)(n.modelValue);(0,l.watch)(()=>n.modelValue,p=>{z.value!==p&&(z.value=p)});const v=p=>{s("change",p)},m=p=>{z.value!==p&&(z.value=p,s("update:modelValue",p))};return u({}),()=>{const{getChildren:p}=$l(i.default),y=p(),x=[];if(Array.isArray(n.data))x.push(...n.data);else for(let D=0;D<y.length;D++){const b=y[D].props??{},L={text:b.label??"",value:b["pane-key"]??b.paneKey??""};x.push(L)}const R={};for(let D in i)D!=="default"&&(R[D]=i[D]);const M=gt(n,er);Object.assign(M,{prop:null,data:x,class:c.value,modelValue:z.value,direction:n.direction,onChange:v,"onUpdate:modelValue":m});const $=(0,l.h)(r,M,R),q={default:()=>y},j=gt(n,tr);Object.assign(j,{prop:null,class:T.value,modelValue:z.value,onChange:v,"onUpdate:modelValue":m});const A=(0,l.h)(a,j,q);return(0,l.h)("view",{class:h.value,style:d.value},[$,A])}}}}var{create:f3,componentName:m3,scope:p3}=ce("tabs-frame"),h3=f3(d3(m3,p3,Ll,Fl)),nr=h3,g3={prop:{type:[String]},direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[String,Number]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function v3(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ir(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Lr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function y3(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Gl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Fr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Rr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Xl(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}var b3=class{scope;constructor(e){this.scope=e}async load(e,t,r){if(Array.isArray(t))return t;if(typeof t=="function")return await Reflect.apply(t,null,[r]);const a=je(e,this.scope);return a===null?(console.error(`[FoxUI]${e} component not found api function`),[]):(Ue(r)&&(0,l.isReactive)(r)&&(r=(0,l.toRaw)(r)),await Reflect.apply(a,null,[t,r]))}};function S3(){return new b3(tt())}function w3(e,t,r,a){return{props:g3,emits:["update:modelValue","change","loaded-data"],setup(n,o){const{emitEvent:s,exposeApi:u}=_t({context:o},n.prop),i=e,f=S3(),h=(0,l.ref)([]),d=(0,l.computed)(()=>h.value.filter(P=>y3(n,P)!==!1)),c=(0,l.ref)(-1),T=()=>{const P=n.modelValue,W=d.value.findIndex(N=>Ir(n,N)===P);c.value!==W&&(c.value=W,n.scroll&&K(W,!1))};(0,l.watch)([()=>n.modelValue,d],()=>{T()});const z=P=>c.value===P,v=P=>{if(P<0&&P>=d.value.length)return!1;const W=d.value[P],N=(Xl(n,W,P)??{}).status??Gl(n,W);return z(P)||N},m=(0,l.computed)(()=>{const P={[i]:!0};return n.mode?P[`is-${n.mode}`]=!0:n.direction&&(P[`is-${n.direction}`]=!0),n.scroll&&(P["is-scroll"]=!0),P}),p=(0,l.computed)(()=>({})),y=(P,W,N,G,Z)=>{const le={[`${i}__step`]:!0};return Z&&(le[`${Z}`]=!0),le[`${x.value}`]=!0,G&&(le["is-doit"]=!0),P===c.value?le["is-active"]=!0:W==="done"?le["is-done"]=!0:W==="error"?le["is-error"]=!0:W==="half"?le["is-half"]=!0:N?le["is-disabled"]=!0:le["is-normal"]=!0,le},x=(0,l.computed)(()=>{let P=n.align;if(!P){if(n.mode==="simple")return"start";n.direction==="vertical"?P="start":P="center"}return P}),R=(P,W={})=>{const N={...W};if(x.value==="start"&&P===d.value.length-1)N.flex="0 0 auto";else if(n.step){const G=typeof n.step=="number"||bn(n.step)?Se(n.step):n.step;n.direction==="vertical"?N.height=G:N.width=G}else N.flex="1 1 100%";return N},M=(P,W)=>{let N={};if(W<d.value.length-1){const G=W+1;v(W)&&v(G)?n.direction==="vertical"?N.height="100%":N.width="100%":N.opacity="0"}return N},$=P=>d.value.length-1===P,q=(P,W)=>{if(n.clickNavigatePolicy==="disabled"||(n.clickNavigatePolicy==="only-back"||n.clickNavigatePolicy==="only-back-reset")&&W>c.value||c.value===W)return;const N=c.value,G=W;c.value=W,n.scroll&&K(W,!1);const Z=Ir(n,P);s("update:modelValue",Z),s("change",Z,{fromIndex:N,currentIndex:G,item:P,items:d.value,clickNavigatePolicy:n.clickNavigatePolicy})},j=(0,l.ref)(!0),A=async(P,W)=>{try{const N=await f.load("stesbar",P,W);Array.isArray(N)&&(h.value=N),j.value=!1}catch(N){console.error("[FoxUI] Load StepsBar Data Fail",N),h.value=[]}setTimeout(()=>{s("loaded-data")},250)};(0,l.watch)([()=>n.data,()=>n.params],async([P,W])=>{P&&A(P,W)},{immediate:!0}),u({});const D=(P,W,N,G,Z)=>{let le=null;if(o.slots.icon)le=o.slots.icon({item:P,index:W,status:G});else if(G==="done"){const ne={};n.iconSize&&(ne.width=n.iconSize,ne.height=n.iconSize),le=(0,l.h)(n.icon??r,ne)}else le=(0,l.h)("span",{},[N??`${W+1}`]);return(0,l.h)("view",{class:"fox-steps-bar__icon",onClick:()=>{Z||q(P,W)}},[le])},b=(P,W,N)=>(0,l.h)("view",{class:"fox-steps-bar__line"},[(0,l.h)("i",{class:"fox-steps-bar__line-inner",style:M(P,W)})]),L=()=>{let P=null;if(o.slots.markIcon)P=o.slots.markIcon();else{const W={};n.iconSize&&(W.width=n.markIconSize,W.height=n.markIconSize),P=(0,l.h)(n.markIcon??a,W)}return(0,l.h)("view",{class:"fox-steps-bar__mark"},[P])},k=(P,W,N,G,Z)=>{const le=[];if(!$(W)){const ie=b(P,W,G);le.push(ie)}const ne=D(P,W,N,G,Z);return le.push(ne),(0,l.h)("view",{class:"fox-steps-bar__head"},le)},S=(P,W,N,G)=>{let Z=null;return o.slots.main?Z=o.slots.main({item:P,index:W,status:N}):Z=v3(n,P),(0,l.h)("view",{class:"fox-steps-bar__main",onClick:()=>{G||q(P,W)}},[Z])},B=(P,W,N)=>{let G=null;return o.slots.sub?(G=o.slots.sub({item:P,index:W,status:N}),(0,l.h)("view",{class:"fox-steps-bar__sub"},[G])):null},_=(P,W)=>{const N=Xl(n,P,W)??{},G=N.status??Gl(n,P);let Z=Lr(n,P);N.disabled===!0&&(Z=!0),n.disabled===!0&&(Z=!0);const le=N.label??Rr(n,P),ne=[],ie=D(P,W,le,G,Z);ie&&ne.push(ie);const ee=S(P,W,G,Z);if(ee&&ne.push(ee),!$(W)){const w=b(P,W,G);w&&ne.push(w)}const re=(0,l.h)("view",{class:"fox-steps-bar__head"},ne),J=N.class,V=N.style??{};let g=Fr(n,P);return N.doit===!0&&(g=!0),(0,l.h)("view",{ref:O(W),class:y(W,G,Z,g,J),style:R(W,V)},[re])},H=(P,W)=>{const N=Xl(n,P,W)??{},G=N.status??Gl(n,P);let Z=Lr(n,P);N.disabled===!0&&(Z=!0),n.disabled===!0&&(Z=!0);const le=N.label??Rr(n,P),ne=[],ie=n.layout;for(let V of ie)if(V==="head"){const g=k(P,W,le,G,Z);ne.push(g)}else if(V==="main"){const g=S(P,W,G,Z);ne.push(g)}else if(V==="sub"){const g=B(P,W,G);ne.push(g)}else if(V==="mark"){const g=L();ne.push(g)}const ee=N.class,re=N.style??{};let J=Fr(n,P);return N.doit===!0&&(J=!0),(0,l.h)("view",{ref:O(W),class:y(W,G,Z,J,ee),style:R(W,re)},ne)},I=(0,l.ref)(),Y=(0,l.ref)([]),E=(P,W)=>{Y.value[W]=P},O=P=>W=>{E(W,P)},K=(P,W)=>{const N=I.value,G=Y.value;if(!N||!G||!G[P])return;const Z=G[P];let le=0;n.direction==="vertical"?le=Z.offsetTop-(N.offsetHeight-Z.offsetHeight)/2:le=Z.offsetLeft-(N.offsetWidth-Z.offsetWidth)/2,U(N,le,W?0:.3,n.direction)},U=(P,W,N,G)=>{let Z=0;const le=G==="horizontal"?P.scrollLeft:P.scrollTop,ne=N===0?1:Math.round(N*1e3/16);function ie(){G==="horizontal"?P.scrollLeft+=(W-le)/ne:P.scrollTop+=(W-le)/ne,++Z<ne&&vn(ie)}ie()};return()=>{let P=[];if(n.mode==="simple")for(let N=0;N<d.value.length;N++){const G=d.value[N],Z=_(G,N);P.push(Z)}else for(let N=0;N<d.value.length;N++){const G=d.value[N],Z=H(G,N);P.push(Z)}const W={ref:I,class:m.value,style:p.value};return P.length===0&&typeof o.slots.default=="function"&&(P=o.slots.default()),(0,l.h)("view",W,P)}}}}var{componentName:x3,create:N3,scope:C3}=ce("steps-bar"),z3=N3(w3(x3,C3,P2,L2)),rr=z3,k3=Symbol.for("PageWrapperKey");function E3(e,t){return{props:{class:{type:[String]},title:{type:[String]},height:{type:[String,Number]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(r,a){xn(!0);const n={};(0,l.provide)(k3,n);const o=f=>{typeof n.beforeClose=="function"&&n.beforeClose()},s=(0,l.ref)(!0),u=f=>{s.value=f},i=(0,l.computed)(()=>{const f={};return r.height&&(f["--fox-dialog-item-body-height"]=Se(r.height)),f});return()=>{const f={...a.attrs,style:i.value,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},h=["fox-dialog-item "];r.hideHeader&&h.push("hide-header"),r.class&&h.push(r.class),f.class=h.join(" ");const d={};return typeof a.slots.default=="function"&&(d.default=a.slots.default),(0,l.h)(C.ElDialog,f,d)}}}}var{componentName:_3,create:T3,scope:$3}=ce("dialog-item"),B3=T3(E3(_3,$3)),ar=B3,At=0,Dr="fox-overflow-hidden",Or=()=>dt?document.body:{classList:[]},V3=e=>[()=>{if(e())try{!At&&Or().classList.add(Dr),At++}catch{}},()=>{if(e()&&At)try{At--,!At&&Or().classList.remove(Dr)}catch{}}],M3={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:P3,create:A3}=ce("overlay"),I3=A3({props:{...M3},emits:["click","update:visible"],setup(e,{emit:t}){const[r,a]=V3(()=>e.lockScroll),n=(0,l.computed)(()=>({[P3]:!0,[e.overlayClass]:!0})),o=(0,l.computed)(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return(0,l.watch)(()=>e.visible,u=>{u?r():a()}),{classes:n,style:o,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function L3(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"overlay-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),onClick:t[0]||(t[0]=(0,l.withModifiers)((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:(0,l.normalizeStyle)(e.style)},[(0,l.renderSlot)(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}var Rl=Ge(I3,[["render",L3]]),F3={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},wo=2e3,qr=wo,R3=(e,t)=>({components:t,props:{...F3},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(r,{emit:a}){const n=(0,l.reactive)({zIndex:r.zIndex,showSlot:!0,closed:r.closeable}),o=(0,l.computed)(()=>({[e]:!0,round:r.round,[`fox-popup--${r.position}`]:!0,[`fox-popup--${r.position}--safebottom`]:r.position==="bottom"&&r.safeAreaInsetBottom,[r.popClass]:!0})),s=(0,l.computed)(()=>({zIndex:n.zIndex,transitionDuration:`${r.duration}s`,...r.style})),u=(0,l.computed)(()=>r.transition?r.transition:`fox-popup-slide-${r.position}`),i=()=>{r.zIndex!==wo&&(qr=Number(r.zIndex)),a("update:visible",!0),n.zIndex=++qr,r.destroyOnClose&&(n.showSlot=!0),a("open")},f=()=>{a("update:visible",!1),a("close"),r.destroyOnClose&&setTimeout(()=>{n.showSlot=!1},+r.duration*1e3)},h=v=>{a("click-pop",v)},d=v=>{v.stopPropagation(),a("click-close-icon",v),a("update:visible",!1)},c=v=>{a("click-overlay",v),r.closeOnClickOverlay&&a("update:visible",!1)},T=v=>{a("opend",v)},z=v=>{a("closed",v)};return(0,l.watch)(()=>r.visible,v=>{r.visible?i():f()}),(0,l.watch)(()=>r.closeable,v=>{n.closed=v}),{...(0,l.toRefs)(n),popStyle:s,transitionName:u,classes:o,onClick:h,onClickCloseIcon:d,onClickOverlay:c,onOpened:T,onClosed:z}}}),{componentName:D3,create:O3}=ce("popup"),q3=O3(R3(D3,{FoxOverLay:Rl,Close:B2}));function H3(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxOverLay"),u=(0,l.resolveComponent)("Close");return(0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?((0,l.openBlock)(),(0,l.createBlock)(s,(0,l.mergeProps)({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.popStyle),onClick:t[1]||(t[1]=(...i)=>e.onClick&&e.onClick(...i))},[e.showSlot?(0,l.renderSlot)(e.$slots,"default",{key:0}):(0,l.createCommentVNode)("",!0),e.closed?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:1,onClick:t[0]||(t[0]=(...i)=>e.onClickCloseIcon&&e.onClickCloseIcon(...i)),class:(0,l.normalizeClass)(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[(0,l.renderSlot)(e.$slots,"close-icon",{},()=>[(0,l.createVNode)(u)])],2)):(0,l.createCommentVNode)("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}var or=Ge(q3,[["render",H3]]),{create:j3}=ce("toast"),K3=j3({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let r=null;const a=(0,l.reactive)({mounted:!1});(0,l.onMounted)(()=>{a.mounted=!0});const n=()=>{r&&(clearTimeout(r),r=null)},o=()=>{a.mounted=!1},s=()=>{n(),e.duration&&(r=setTimeout(()=>{o()},e.duration))},u=()=>{e.closeOnClickOverlay&&(o(),t("close"))};e.duration&&s(),(0,l.watch)(()=>e.duration,T=>{T&&s()});const i=(0,l.computed)(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const T=pe(e.iconSize);return(0,l.h)(e.icon,{width:T,height:T,color:e.iconColor})},h=(0,l.computed)(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":i.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=(0,l.computed)(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:a,hide:o,clickCover:u,renderIcon:f,hasIcon:i,toastBodyClass:h,toastIconWrapperClass:d,onAfterLeave:()=>{n(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),W3={key:1,class:"fox-toast-title"},Y3=["innerHTML"];function U3(e,t,r,a,n,o){return(0,l.openBlock)(),(0,l.createBlock)(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("view",{class:(0,l.normalizeClass)(e.toastBodyClass),style:(0,l.normalizeStyle)({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[(0,l.createElementVNode)("view",{class:"fox-toast-inner",style:(0,l.normalizeStyle)({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?((0,l.openBlock)(),(0,l.createElementBlock)("view",{key:0,class:(0,l.normalizeClass)(e.toastIconWrapperClass)},[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.renderIcon())))],2)):(0,l.createCommentVNode)("",!0),e.title?((0,l.openBlock)(),(0,l.createElementBlock)("div",W3,(0,l.toDisplayString)(e.title),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Y3)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}var ir=Ge(K3,[["render",U3]]),pn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1},yt=[],Ot=[],xo=e=>{if(e){const t=document.getElementById(e);Ot=Ot.filter(r=>r.id!==e),yt=yt.filter(r=>r!==e),t&&((0,l.render)(null,t),document.body.removeChild(t))}else yt.forEach(t=>{const r=document.getElementById(t);r&&((0,l.render)(null,r),document.body.removeChild(r))}),Ot=[],yt=[]},G3=e=>{const t=document.getElementById(e.id);if(t){const r=Ot.find(n=>n.id===e.id);r?e={...pn,...r,...e}:e={...pn,...e};const a=(0,l.createVNode)(ir,e);return(0,l.render)(null,t),(0,l.render)(a,t),Tt}},It=e=>{e.unmount=xo;let t;if(e.id){if(t=e.id,yt.find(a=>a===e.id))return G3(e)}else t=new Date().getTime()+"";e={...pn,...e},e.id=t,yt.push(e.id),Ot.push(e);const r=document.createElement("div");return r.id=e.id,(0,l.render)((0,l.createVNode)(ir,e),r),document.body.appendChild(r),Tt},rl=e=>e?!0:(console.warn("[FoxUI Toast]: msg不能为空"),!1),Tt={text(e,t={}){if(rl(e))return It({...t,type:"text",msg:e})},success(e,t={}){if(rl(e))return It({icon:p2,...t,msg:e,type:"success"})},fail(e,t={}){if(rl(e))return It({icon:_2,...t,msg:e,type:"fail"})},warn(e,t={}){if(rl(e))return It({icon:d2,...t,msg:e,type:"warn"})},loading(e,t={}){return It({icon:Il,...t,msg:e,type:"loading"})},hide(e){xo(e)},install(e){e.use(ir),e.config.globalProperties.$toast=Tt}},X3={prop:{type:[String]},modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Z3=(e,t,r)=>({props:X3,emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(a,n){const{emitEvent:o,exposeApi:s}=_t({context:n},a.prop),{toLocaleRefs:u}=(0,Le.useFoxI18n)(t),i=u(a,["placeholder"]),{slots:f}=n,h=(0,l.reactive)({active:!1}),d=(0,l.computed)(()=>({background:a.background})),c=(0,l.computed)(()=>({background:a.inputBackground})),T=b=>{let L=b.target.value;a.maxLength&&L.length>Number(a.maxLength)&&(L=L.slice(0,Number(a.maxLength))),o("update:modelValue",L,b),o("change",L,b)},z=(0,l.ref)({}),v=b=>{let L=b.target.value;h.active=!0,z.value=a.focusStyle,o("focus",L,b)},m=b=>{setTimeout(()=>{h.active=!1},0);let L=b.target.value;a.maxLength&&L.length>Number(a.maxLength)&&(L=L.slice(0,Number(a.maxLength))),z.value={},o("blur",L,b)},p=b=>{o("update:modelValue","",b),o("change","",b),o("clear","")},y=(0,l.computed)(()=>String(a.modelValue).length>0),x=(0,l.computed)(()=>{const b={};return y.value||(b.display="none"),b}),R=()=>{o("search",a.modelValue)},M=b=>{o("keyup-input",b),b.key.toLocaleUpperCase()==="ENTER"&&R()},$=b=>{o("click-input",b)},q=b=>{o("click-left-icon",a.modelValue,b)},j=(0,l.computed)(()=>({textAlign:a.inputAlign})),A=(0,l.ref)(null);(0,l.onMounted)(()=>{a.autofocus&&A.value.focus()});const D=()=>{const b=[];if(f.leftin){const S=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:q},[f.leftin()]);b.push(S)}const L=(0,l.h)("input",{ref:A,class:[`${e}__input-inner`],style:j.value,type:a.inputType,maxlengt:a.maxLength,placeholder:i.placeholder.value,value:a.modelValue,disabled:a.disabled,readonly:a.readonly,onClick:$,onInput:T,onFocus:v,onBlur:m,onkeyup:M});b.push(L);const k=[];if(a.clearable){const S=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:x.value,onClick:p},[(0,l.h)(f?.clear?.()??a.clearIcon??r)]);k.push(S)}if(f.rightin){const S=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},[f.rightin()]);k.push(S)}if(k.length>0){const S=(0,l.h)("view",{class:`${e}__input-inner-right`},k);b.push(S)}return(0,l.h)("view",{class:[`${e}__search-input`,`${a.shape}`],style:{...c.value,...z.value}},b)};return()=>{const b=[];if(a.label){const k=(0,l.h)("span",{class:`${e}__search-label`},[a.label]);b.push(k)}if(f.leftout){const k=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__left-search-icon`]},[f.leftout()]);b.push(k)}const L=D();if(b.push(L),f.rightout){const k=(0,l.h)("view",{class:[`${e}__search-icon`,`${e}__right-search-icon`]},[f.rightout()]);b.push(k)}return(0,l.h)("view",{class:`${e}`,style:d.value},b)}}}),{componentName:J3,create:Q3,scope:e4}=ce("searchbar"),t4=Q3(Z3(J3,e4,Me.CircleClose)),sr=t4,l4=/scroll|auto|overlay/i,No=window;function n4(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function r4(e,t=No){let r=e;for(;r&&r!==t&&n4(r);){const{overflowY:a}=window.getComputedStyle(r);if(l4.test(a))return r;r=r.parentNode}return t}function Co(e,t=No){const r=(0,l.ref)();return(0,l.onMounted)(()=>{e.value&&(r.value=r4(e.value,t))}),r}var zo=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,a4={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},noMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function o4(e,t,r){return{props:{...a4},emits:["scroll-change","load-more","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Le.useFoxI18n)(t),u=s(a,["pullText","loadText","noMoreText"]),i=(0,l.ref)(),f=Co(i),h=(0,l.reactive)({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=(0,l.computed)(()=>({[e]:!0})),c=y=>y?y.offsetTop+c(y.offsetParent):0,T=()=>{let y=0,x=0,R="down";if(f.value==window){const M=zo();i.value&&(y=c(i.value)+i.value.offsetHeight-M-window.innerHeight),x=M}else{const{scrollHeight:M,clientHeight:$,scrollTop:q}=f.value;y=M-$-q,x=q}return h.beforeScrollTop>x?R="up":R="down",h.beforeScrollTop=x,n("scroll-change",x),y<=a.threshold&&R=="down"},z=()=>{ea(()=>{if(!T()||!a.hasMore||h.isInfiniting)return!1;h.isInfiniting=!0,n("update:modelValue",!0),(0,l.nextTick)(()=>n("load-more"))})},v=()=>{f.value&&f.value.addEventListener("scroll",z,a.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",z,a.useCapture)};(0,l.onMounted)(()=>{v(),a.immediate&&z()}),(0,l.onUnmounted)(()=>{m()});const p=(0,l.ref)(!1);return(0,l.onActivated)(()=>{p.value&&(p.value=!1,v())}),(0,l.onDeactivated)(()=>{p.value=!0,m()}),(0,l.watch)(()=>a.modelValue,y=>{y||(h.isInfiniting=!1)}),()=>{const y=(0,l.h)("view",{class:"fox-infinite__container"},[o?.default?.()]),x=[];if(h.isInfiniting){let M=o?.loading?.()??null;if(!M){let q=o?.loadingIcon?.()??null;q||(q=(0,l.h)(r,{class:["fox-infinite__bottom-box__img"]}));const j=(0,l.h)("view",{class:"fox-infinite__bottom-box__text"},[u.loadText.value]);M=[q,j]}const $=(0,l.h)("view",{class:"fox-infinite__bottom-box"},M);x.push($)}else if(!a.hasMore){let M=o?.finished?.()??null;M||(M=(0,l.h)("view",{class:"fox-infinite__bottom-tips"},[u.noMoreText.value]),x.push(M))}const R=(0,l.h)("view",{class:"fox-infinite__bottom"},x);return(0,l.h)("view",{class:d.value,ref:i},[y,R])}}}}var{componentName:i4,create:s4,scope:u4}=ce("infinite-loading"),c4=s4(o4(i4,u4,Il)),ur=c4,d4={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},f4=(e,t,r)=>({props:{...d4},emits:["change","refresh","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Le.useFoxI18n)(t),u=s(a,["pullingText","loosingText","loadingText"]),i=Qt(),f=(0,l.ref)(),h=Co(f),d=(0,l.reactive)({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),c=(0,l.computed)(()=>({[e]:!0})),T=(0,l.computed)(()=>{switch(d.status){case"pulling":return o.pulling?"":u.pullingText.value;case"loosing":return o.loosing?"":u.loosingText.value;case"loading":return o.loading?"":u.loadingText.value;default:return""}}),z=(0,l.computed)(()=>({transitionDuration:`${a.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),v=(0,l.computed)(()=>{const q={};return a.headHeight!=50&&(q.height=Se(a.headHeight)),q}),m=q=>{const j=+(a.pullDistance||a.headHeight);let A=q;return q>j&&(q<j*2?A=(q+j)/2:A=j+q/4),Math.round(A)},p=(q,j)=>{const A=+(a.pullDistance||a.headHeight);d.distance=q,j?d.status="loading":q===0?d.status="normal":q<A?d.status="pulling":d.status="loosing",n("change",{status:d.status,distance:q})},y=()=>d.status!=="loading"&&d.status!=="complete",x=()=>h.value==window?zo()==0:h.value&&h.value.scrollTop==0,R=q=>{y()&&(x()?(i.start(q),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},M=q=>{y()&&d.moving&&(i.move(q),i.isVertical()&&i.state.deltaY>0&&d.isPullRefresh&&(q.cancelable&&q.preventDefault(),p(m(i.state.deltaY))))},$=()=>{d.moving=!1,d.isPullRefresh&&y()&&i.state.deltaY&&(d.status==="loosing"?(p(+a.headHeight,!0),n("update:modelValue",!0),(0,l.nextTick)(()=>n("refresh"))):p(0)),setTimeout(()=>{i.reset()},0)};return(0,l.watch)(()=>a.modelValue,q=>{q?p(+a.headHeight,!0):p(0)}),()=>{const q=[];let j=null;d.status==="loading"?(j=o?.loading?.()??null,j||(j=(0,l.h)(r,{class:["fox-pull-refresh-container-topbox-icon"]}))):d.status==="pulling"?j=o?.pulling?.()??null:d.status==="loosing"&&(j=o?.loosing?.()??null),j&&q.push(j);const A=(0,l.h)("dive",{class:["fox-pull-refresh-container-topbox-text"]},[T.value]);q.push(A);const D=(0,l.h)("div",{class:["fox-pull-refresh-container-topbox"],style:v.value},q),b=(0,l.h)("div",{class:"fox-pull-refresh-container",style:z.value},[D,o?.default?.()]),L={ref:f,class:c.value};return Jt()?Object.assign(L,{onTouchstart:R,onTouchmove:M,onTouchend:$}):Object.assign(L,{onMousedown:R,onMousemove:M,onMouseup:$}),(0,l.h)("div",L,[b])}}}),{componentName:m4,create:p4,scope:h4}=ce("pull-refresh"),g4=p4(f4(m4,h4,Il)),cr=g4,v4={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},icon:{type:[Object],requried:!1}};function y4(e,t,r){return{props:{...v4},emits:["click","update:modelValue"],setup(a,{emit:n,slots:o}){const{toLocaleRefs:s}=(0,Le.useFoxI18n)(t),u=s(a,["collapseText","expandText"]),i=(0,l.computed)(()=>{const z={[`${e}`]:!0};return a.disabled?z[`${e}--disabled`]=!0:z[`${e}--${a.type}`]=!0,z}),f=ye(a,"modelValue"),h=(0,l.computed)(()=>f.value?u.expandText.value??"":u.collapseText.value??""),d=(0,l.computed)(()=>({[`${e}__text`]:!0})),c=(0,l.computed)(()=>({[`${e}__icon`]:!0,"is-expand":!f.value,"is-collapse":f.value})),T=()=>{n("update:modelValue",!f.value)};return()=>{const z=[];if(h.value){const p=(0,l.h)("span",{class:d.value},[h.value]);z.push(p)}const v={class:c.value},m=(o.icon&&o.icon())??(a.icon&&(0,l.h)(a.icon))??(0,l.h)(r);if(m){const p=(0,l.h)("div",v,[m]);z.push(p)}return a.textPosition==="right"&&z.reverse(),(0,l.h)("div",{class:i.value,onClick:T},z)}}}}var{componentName:b4,create:S4,scope:w4}=ce("more-button"),x4=S4(y4(b4,w4,Me.ArrowUp)),dr=x4;function N4(e){e.stopPropagation()}var C4=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=Jt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=Qt(),r=(a,n,o,s)=>{this.updateMove({x:a,y:n})};this.touchstart=a=>{this.moving||(t.start(a),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(t.move(a),N4(a),r(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{r(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function z4(e,t){return new C4(e,t)}var k4={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},E4=(e,t,r,a=!1)=>({props:{...k4},emits:["click"],setup(n,{slots:o,emit:s}){const u=(0,l.reactive)({top:n.top,right:n.right,bottom:n.bottom,left:n.left}),i=(0,l.computed)(()=>{const y=[`${e}`];return n.customClass&&y.push(n.customClass),y}),f=(0,l.computed)(()=>{const y={};return he(u.top)||(y.top=u.top),he(u.right)||(y.right=u.right),he(u.bottom)||(y.bottom=u.bottom),he(u.left)||(y.left=u.left),he(n.width)||(y.width=n.width),he(n.height)||(y.height=n.height),he(n.color)||(y.color=n.color),he(n.background)||(y.background=n.background),he(n.borderRadius)||(y["border-radius"]=n.borderRadius),he(n.zIndex)||(y["z-index"]=n.zIndex),y}),h=(0,l.computed)(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},c=(0,l.ref)(null),T=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},z={x:0,y:0},p=z4(y=>{if(!c.value)return;const x=c.value;T(),u.left=x.offsetLeft,u.top=x.offsetTop,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`,x.style.right=null,x.style.bottom=null,z.x=u.left,z.y=u.top},y=>{if(!c.value)return;const x=c.value;T(),u.left=z.x+y.x,u.top=z.y+y.y,x.style.left=`${u.left}px`,x.style.top=`${u.top}px`});return(0,l.onMounted)(()=>{if(n.draggable&&c.value){const y=[c.value];p.open(y)}}),(0,l.onBeforeUnmount)(()=>{n.draggable&&c.value&&p.close()}),()=>{let y=[];const x=typeof o.default=="function"?o.default():[];if(x&&x.length>0)y=x;else{const R=(0,l.h)(r,{class:h.value});y.push(R)}return(0,l.h)("view",{ref:R=>{c.value=R},class:i.value,style:f.value,onClick:d},y)}}}),{componentName:_4,create:T4,scope:$4}=ce("floating-button"),B4=T4(E4(_4,$4,s2,!1)),fr=B4,Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,mt=e=>e==null,V4=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(e,t){this.startMove=e,this.updateMove=t,this.isTouch=Jt()}open(e){Array.isArray(e)||(e=[e]),this.els=e;const t=Qt(),r=(a,n,o,s)=>{this.updateMove({x:a,y:n})};this.touchstart=a=>{this.moving||(t.start(a),this.startMove({x:t.state.startX,y:t.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(t.move(a),r(t.state.deltaX,t.state.deltaY,"",0))},this.touchend=()=>{r(t.state.deltaX,t.state.deltaY,"end"),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),t.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(e=>{this.touchstart&&e.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}};function Hr(e,t){return new V4(e,t)}var jr=typeof window<"u"&&typeof document<"u",K5=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function ko(e){const t=Object.create(null);return(r=>t[r]||(t[r]=e(r)))}var M4=/\B([A-Z])/g,W5=ko(e=>e.replace(M4,"-$1").toLowerCase()),P4=/-(\w)/g,Y5=ko(e=>e.replace(P4,(t,r)=>r?r.toUpperCase():"")),vt=[],Kr=e=>{const t=e;t.key==="Escape"&&vt.forEach(r=>r(t))},A4=e=>{(0,l.onMounted)(()=>{vt.length===0&&document.addEventListener("keydown",Kr),jr&&vt.push(e)}),(0,l.onBeforeUnmount)(()=>{vt=vt.filter(t=>t!==e),vt.length===0&&jr&&document.removeEventListener("keydown",Kr)})},Zl="fox-focus-trap.focus-after-trapped",Jl="fox-focus-trap.focus-after-released",I4="fox-focus-trap.focusout-prevented",Wr={cancelable:!0,bubbles:!1},L4={cancelable:!0,bubbles:!1},Yr="foxFocusAfterTrapped",Ur="foxFocusAfterReleased",F4=Symbol("foxFocusTrap"),mr=(0,l.ref)(),Dl=(0,l.ref)(0),pr=(0,l.ref)(0),al=0,Eo=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const n=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||n?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},R4=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Gr=(e,t)=>{for(const r of e)if(!R4(r,t))return r},D4=e=>{const t=Eo(e);return[Gr(t,e),Gr(t.reverse(),e)]},O4=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),pr.value=window.performance.now(),e!==r&&O4(e)&&t&&e.select()}};function Xr(e,t){const r=[...e],a=e.indexOf(t);return a!==-1&&r.splice(a,1),r}var q4=()=>{let e=[];return{push:a=>{const n=e[0];n&&a!==n&&n.pause(),e=Xr(e,a),e.unshift(a)},remove:a=>{e=Xr(e,a),e[0]?.resume?.()}}},H4=(e,t=!1)=>{const r=document.activeElement;for(const a of e)if(ot(a,t),document.activeElement!==r)return},Zr=q4(),j4=()=>Dl.value>pr.value,ol=()=>{mr.value="pointer",Dl.value=window.performance.now()},Jr=()=>{mr.value="keyboard",Dl.value=window.performance.now()},K4=()=>((0,l.onMounted)(()=>{al===0&&(document.addEventListener("mousedown",ol),document.addEventListener("touchstart",ol),document.addEventListener("keydown",Jr)),al++}),(0,l.onBeforeUnmount)(()=>{al--,al<=0&&(document.removeEventListener("mousedown",ol),document.removeEventListener("touchstart",ol),document.removeEventListener("keydown",Jr))}),{focusReason:mr,lastUserFocusTimestamp:Dl,lastAutomatedFocusTimestamp:pr}),il=e=>new CustomEvent(I4,{...L4,detail:e}),{componentName:U5,create:W4,scope:G5}=ce("focus-trap"),Y4={loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},U4=W4({props:Y4,emits:[Yr,Ur,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:r}){const a=(0,l.ref)();let n,o;const{focusReason:s}=K4();A4(v=>{fe(e.trapped)&&!u.paused&&r("release-requested",v)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=v=>{if(!e.loop&&!fe(e.trapped)||u.paused)return;const{key:m,altKey:p,ctrlKey:y,metaKey:x,currentTarget:R,shiftKey:M}=v,{loop:$}=e,q=m==="Tab"&&!p&&!y&&!x,j=document.activeElement;if(q&&j){const A=R,[D,b]=D4(A);if(D&&b){if(!M&&j===b){const L=il({focusReason:s.value});r("focusout-prevented",L),L.defaultPrevented||(v.preventDefault(),$&&ot(D,!0))}else if(M&&[D,A].includes(j)){const L=il({focusReason:s.value});r("focusout-prevented",L),L.defaultPrevented||(v.preventDefault(),$&&ot(b,!0))}}else if(j===A){const L=il({focusReason:s.value});r("focusout-prevented",L),L.defaultPrevented||v.preventDefault()}}};(0,l.provide)(F4,{focusTrapRef:a,onKeydown:i}),(0,l.watch)(()=>e.focusTrapEl,v=>{v&&(a.value=v)},{immediate:!0}),(0,l.watch)([a],([v],[m])=>{v&&(v.addEventListener("keydown",i),v.addEventListener("focusin",d),v.addEventListener("focusout",c)),m&&(m.removeEventListener("keydown",i),m.removeEventListener("focusin",d),m.removeEventListener("focusout",c))});const f=v=>{r(Yr,v)},h=v=>r(Ur,v),d=v=>{const m=(0,l.unref)(a);if(!m)return;const p=v.target,y=v.relatedTarget,x=p&&m.contains(p);fe(e.trapped)||y&&m.contains(y)||(n=y),x&&r("focusin",v),!u.paused&&fe(e.trapped)&&(x?o=p:ot(o,!0))},c=v=>{const m=(0,l.unref)(a);if(!(u.paused||!m))if(!e.escape&&fe(e.trapped)){const p=v.relatedTarget;!_e(p)&&!m.contains(p)&&setTimeout(()=>{if(!u.paused&&fe(e.trapped)){const y=il({focusReason:s.value});r("focusout-prevented",y),y.defaultPrevented||ot(o,!0)}},0)}else{const p=v.target;p&&m.contains(p)||r("focusout",v)}};async function T(){await(0,l.nextTick)();const v=(0,l.unref)(a);if(v){Zr.push(u);const m=v.contains(document.activeElement)?n:document.activeElement;if(n=m,!v.contains(m)){const p=new Event(Zl,Wr);v.addEventListener(Zl,f),v.dispatchEvent(p),p.defaultPrevented||(0,l.nextTick)(()=>{let y=e.focusStartEl;aa(y)||(ot(y),document.activeElement!==y&&(y="first")),y==="first"&&H4(Eo(v),!0),(document.activeElement===m||y==="container")&&ot(v)})}}}function z(){const v=(0,l.unref)(a);if(v){v.removeEventListener(Zl,f);const m=new CustomEvent(Jl,{...Wr,detail:{focusReason:s.value}});v.addEventListener(Jl,h),v.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!j4())&&ot(n??document.body,!0),v.removeEventListener(Jl,f),Zr.remove(u)}}return(0,l.onMounted)(()=>{fe(e.trapped)&&T(),(0,l.watch)(()=>e.trapped,v=>{fe(v)?T():z()})}),(0,l.onBeforeUnmount)(()=>{fe(e.trapped)&&z()}),()=>typeof t.default=="function"?t.default({"handle-keydown":i}):null}}),G4=U4,{componentName:X4,create:Z4,scope:X5}=ce("floating-window"),J4=Symbol.for("InnerPageScopeKey"),Q4=Symbol.for("PageWrapperKey"),e5={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},t5=Z4({inheritAttrs:!1,components:{FoxIcon:C.ElIcon,FocusTrap:G4},props:{...e5},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const r=X4,a=(0,l.ref)(e.modelValue),n=(0,l.computed)(()=>!e.teleport);(0,l.watch)(()=>e.modelValue,V=>{a.value=V});const o=(0,l.computed)(()=>a.value===!1?!1:!j.value),s=(0,l.ref)(e.left),u=(0,l.ref)(e.top),i=(0,l.ref)(e.right),f=(0,l.ref)(e.bottom),h=(0,l.computed)(()=>{const V=["fox-floating-window"];return e.customClass&&V.push(e.customClass),V}),d=(0,l.computed)(()=>{const V={};return mt(s.value)?V.left="auto":V.left=Oe(s.value),mt(u.value)?V.top="auto":V.top=Oe(u.value),mt(i.value)?V.right="auto":V.right=Oe(i.value),mt(f.value)?V.bottom="auto":V.bottom=Oe(f.value),mt(e.zIndex)||(V["z-index"]=Oe(e.zIndex)),mt($.value)||(V.height=$.value),mt(q.value)||(V.width=q.value),V}),c=(0,l.computed)(()=>e.closeIcon??Me.Close),T=(0,l.computed)(()=>e.collapseIcon??Me.ArrowUp),z=(0,l.computed)(()=>e.collapseText??""),v=(0,l.computed)(()=>e.collapsePosition==="left"?e.expandIcon??Me.ArrowRight:e.expandIcon??Me.ArrowLeft),m=(0,l.computed)(()=>e.expandText??e.title??"展开"),p=(0,l.computed)(()=>({[`${r}__collapse-text`]:!0})),y=(0,l.computed)(()=>({[`${r}__collapse-icon`]:!0,"is-expand":!j.value,"is-collapse":j.value})),x=(0,l.ref)(),R=(0,l.ref)(null),M=(0,l.ref)(null),$=(0,l.computed)(()=>Oe(e.height)||""),q=(0,l.computed)(()=>Oe(e.width)||""),j=(0,l.ref)(fe(e.collapse)),A=(V,g=!0)=>{j.value!==V&&(j.value=V,V?U():P(),t("update:collapse",V),V&&typeof L.onHide=="function"?L.onHide():!V&&typeof L.onShow=="function"&&L.onShow())};(0,l.watch)(()=>e.collapse,V=>{A(V)});const D=()=>{b()},b=V=>{V=V??!j.value,A(V)};(0,l.provide)(J4,!0);const L={setCollapse:A,setFixedNavVisible:V=>{E.value=V}};(0,l.provide)(Q4,L);const k=()=>{typeof L.beforeClose=="function"?L.beforeClose(()=>{a.value=!1}):a.value=!1},S=(0,l.ref)(null),B=(0,l.computed)(()=>!e.fixedNavTeleport),_=(0,l.computed)(()=>{const V=["fox-floating-window__fixednav"];return e.expandClass&&V.push(e.expandClass),e.collapsePosition==="left"?V.push("is-left"):e.collapsePosition==="right"&&V.push("is-right"),V}),H=(0,l.ref)(""),I=(0,l.computed)(()=>{const V={};return H.value?V.top=H.value:e.collapseTop&&(V.top=e.collapseTop),V}),Y=(0,l.ref)(j.value),E=(0,l.computed)({set:V=>{Y.value=V},get:()=>a.value===!1?!1:Y.value});let O=null;const K=()=>{typeof O=="function"&&(O(),O=null)},U=()=>{S.value&&S.value.classList.add("slide-in"),E.value=!0,O=()=>{S.value&&S.value.classList.remove("slide-in")}},P=()=>{S.value&&S.value.classList.add("slide-out"),O=()=>{S.value&&S.value.classList.remove("slide-out"),E.value=!1}},W=()=>{s.value=null,u.value=null,i.value=null,f.value=null},N={x:0,y:0},le=Hr(V=>{if(!x.value)return;const g=x.value;if(W(),e.origin==="left-top")s.value=g.offsetLeft,u.value=g.offsetTop,N.x=s.value,N.y=u.value;else if(e.origin==="left-bottom"){const w=document.documentElement.clientHeight||document.body.clientHeight;s.value=g.offsetLeft,f.value=w-(g.offsetTop+g.offsetHeight),N.x=s.value,N.y=f.value}else if(e.origin==="right-bottom"){const w=document.documentElement.clientWidth||document.body.clientWidth,F=document.documentElement.clientHeight||document.body.clientHeight;i.value=w-(g.offsetLeft+g.offsetWidth),f.value=F-(g.offsetTop+g.offsetHeight),N.x=i.value,N.y=f.value}else i.value=(document.documentElement.clientWidth||document.body.clientWidth)-(g.offsetLeft+g.offsetWidth),u.value=g.offsetTop,N.x=i.value,N.y=u.value},V=>{if(!x.value)return;const g=x.value;W(),e.origin==="left-top"?(s.value=N.x+V.x,u.value=N.y+V.y,g.style.left=Oe(s.value),g.style.top=Oe(u.value)):e.origin==="left-bottom"?(s.value=N.x+V.x,f.value=N.y-V.y,g.style.left=Oe(s.value),g.style.bottom=Oe(f.value)):e.origin==="right-bottom"?(i.value=N.x-V.x,f.value=N.y-V.y,g.style.right=Oe(i.value),g.style.bottom=Oe(f.value)):(i.value=N.x-V.x,u.value=N.y+V.y,g.style.right=Oe(i.value),g.style.top=Oe(u.value))}),ne={x:0,y:0},re=Hr(V=>{S.value&&(ne.x=S.value.offsetLeft,ne.y=S.value.offsetTop)},V=>{S.value&&(H.value=`${ne.y+V.y}px`)}),J=()=>{x.value&&(M.value=x.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar"))};return(0,l.onMounted)(()=>{if(e.draggable&&x.value){const V=[];R.value&&V.push(R.value),e.footerDraggable&&(J(),M.value&&V.push(M.value)),le.open(V)}e.collapse===!0&&A(e.collapse,!1),S.value&&re.open(S.value)}),(0,l.onBeforeUnmount)(()=>{e.draggable&&R.value&&le.close(),S.value&&re.close()}),{classes:h,styles:d,isShow:o,closeIcon:c,onClose:k,dialogRef:x,headerRef:R,onClickToggle:D,collapseIcon:T,collapseText:z,collapseTextClasses:p,collapseIconClasses:y,expandIcon:v,expandText:m,isShowFixedNav:E,fixedNavRef:S,fixedNavClasses:_,fixedNavStyles:I,onAnimationEnd:K,teleportDisabled:n,fixedNavTeleportDisabled:B}}}),l5={ref:"headerRef",class:"fox-floating-window__header"},n5={class:"fox-floating-window__title"},r5={class:"fox-floating-window__tools"},a5={class:"fox-floating-window__body"},o5={class:"fox-floating-window__fixednav__text"};function i5(e,t,r,a,n,o){const s=(0,l.resolveComponent)("FoxIcon"),u=(0,l.resolveComponent)("FocusTrap");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[(0,l.createVNode)(l.Transition,{name:"fox-floating-window-fade"},{default:(0,l.withCtx)(()=>[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"dialogRef",class:(0,l.normalizeClass)(e.classes),style:(0,l.normalizeStyle)(e.styles),tabindex:"-1"},[(0,l.createVNode)(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",l5,[(0,l.renderSlot)(e.$slots,"header",{},()=>[(0,l.createElementVNode)("span",n5,(0,l.toDisplayString)(e.title),1),(0,l.createElementVNode)("div",r5,[e.showCollapse?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,l.createElementVNode)("span",{class:(0,l.normalizeClass)(e.collapseTextClasses)},(0,l.toDisplayString)(e.collapseText),3),(0,l.createVNode)(s,{class:(0,l.normalizeClass)(e.collapseIconClasses)},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.collapseIcon)))]),_:1},8,["class"])])):(0,l.createCommentVNode)("",!0),e.showClose?((0,l.openBlock)(),(0,l.createBlock)(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.closeIcon)))]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0)])])],512),(0,l.createElementVNode)("div",a5,[(0,l.renderSlot)(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[(0,l.withDirectives)((0,l.createElementVNode)("div",{ref:"fixedNavRef",class:(0,l.normalizeClass)(e.fixedNavClasses),style:(0,l.normalizeStyle)(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...i)=>e.onAnimationEnd&&e.onAnimationEnd(...i))},[(0,l.createElementVNode)("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...i)=>e.onClickToggle&&e.onClickToggle(...i))},[(0,l.createVNode)(s,{class:"fox-floating-window__fixednav__icon"},{default:(0,l.withCtx)(()=>[((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(e.expandIcon)))]),_:1}),(0,l.createElementVNode)("div",o5,(0,l.toDisplayString)(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}var hr=Ge(t5,[["render",i5]]);function s5(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(r,{slots:a}){const n=e,o=(0,l.computed)(()=>({[n]:!0})),s=(0,l.computed)(()=>r.icon?{[`${n}__icon`]:!0,[`${n}__icon-${r.type}`]:!0}:{[`${n}__mark`]:!0,[`${n}__mark-${r.type}`]:!0}),u=(0,l.computed)(()=>r.color?r.icon?{color:r.color}:{background:r.color}:null),i=(0,l.computed)(()=>{const h={[`${n}__text`]:!0,[`${n}__text-${r.type}`]:!0};return r.textPosition==="left"?h["is-left"]=!0:h["is-right"]=!0,h}),f=(0,l.computed)(()=>r.color?{color:r.color}:null);return()=>{let h=null;if(a.mark)h=a.mark()[0];else{const T={class:s.value,style:u.value};h=(0,l.h)(r.icon??"div",T)}const d=(0,l.h)("div",{class:i.value,style:f.value},a.default?a.default():[]),c={class:o.value};return r.textPosition==="right"?(0,l.h)("div",c,[h,d]):(0,l.h)("div",c,[d,h])}}}}var{componentName:u5,create:c5,scope:d5}=ce("indicator"),f5=c5(s5(u5,d5)),gr=f5;function m5(e){return e===window}var _o=e=>{const t=(0,l.unref)(e);if(m5(t)){const r=t.innerWidth,a=t.innerHeight;return{top:0,left:0,right:r,bottom:a,width:r,height:a}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:p5,create:h5,scope:Z5}=ce("tour"),g5=h5({components:{Close:Me.Close,ElPopover:C.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const r=p5,a=(0,l.reactive)({showTour:e.modelValue,showPopup:!1,active:0}),n=(0,l.ref)({}),o=(0,l.computed)(()=>`${r}`),s=(0,l.computed)(()=>{const{offset:z,maskWidth:v,maskHeight:m}=e,{width:p,height:y,left:x,top:R}=n.value,M=e.steps[a.active].offset??z,$=[x+p/2,R+y/2],q=Number(v||p),j=Number(m||y);return{width:`${q+ +M.left+M.right}px`,height:`${j+M.top+M.bottom}px`,top:`${$[1]-j/2-+M.top}px`,left:`${$[0]-q/2-+M.left}px`}}),u=z=>{z=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,(0,l.nextTick)(()=>{a.showPopup=!0,h()}),t("change",a.active)},i=z=>z.popoverWidth??e.width,f=z=>z.location??e.location,h=()=>{const z=_o(document.querySelector(`${e.steps[a.active].target}`));n.value={x:z.left,y:z.top,top:z.top,left:z.left,width:z.width,height:z.height}},d=()=>{a.showTour=!1,a.showPopup=!1,t("close",a.active),t("update:modelValue",!1)},c=()=>{e.closeOnClickOverlay&&d()},T=(z,v=0)=>{z&&h(),e.steps,a.active=v,a.showTour=z,a.showPopup=z};return(0,l.onMounted)(()=>{T(e.modelValue,e.current)}),(0,l.watch)(()=>e.modelValue,z=>{T(z)}),{...(0,l.toRefs)(a),classes:o,maskStyle:s,changeStep:u,popoverWidth:i,popoverLocation:f,close:d,handleClickMask:c}}}),v5={key:0,class:"fox-tour__content"},y5={key:0,class:"fox-tour__content-top"},b5={class:"fox-tour__content-inner"},S5={class:"fox-tour__content-bottom"},w5={class:"fox-tour__content-bottom-init"},x5={class:"fox-tour__content-bottom-operate"},N5={key:1,class:"fox-tour__content fox-tour__content-tile"},C5={class:"fox-tour__content-inner"};function z5(e,t,r,a,n,o){const s=(0,l.resolveComponent)("Close"),u=(0,l.resolveComponent)("fox-button"),i=(0,l.resolveComponent)("ElPopover");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(e.classes)},[(0,l.withDirectives)((0,l.createElementVNode)("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.steps,(f,h)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:h,style:{height:"0"}},[h==e.active?((0,l.openBlock)(),(0,l.createBlock)(i,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:(0,l.withCtx)(()=>[e.showTour?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:(0,l.normalizeClass)(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:(0,l.normalizeStyle)(e.maskStyle),id:"fox-tour-popid"},null,6)):(0,l.createCommentVNode)("",!0)]),default:(0,l.withCtx)(()=>[(0,l.renderSlot)(e.$slots,"default",{},()=>[e.type=="step"?((0,l.openBlock)(),(0,l.createElementBlock)("div",v5,[e.showTitleBar?((0,l.openBlock)(),(0,l.createElementBlock)("div",y5,[(0,l.createElementVNode)("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[(0,l.createVNode)(s,{class:"fox-tour__content-top-close"})])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",b5,(0,l.toDisplayString)(f.content),1),(0,l.createElementVNode)("div",S5,[(0,l.createElementVNode)("div",w5,(0,l.toDisplayString)(e.active+1)+"/"+(0,l.toDisplayString)(e.steps.length),1),(0,l.createElementVNode)("div",x5,[(0,l.renderSlot)(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.prevStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)]),e.steps.length-1==e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.completeText),1)]),_:1},8,["onClick"])):(0,l.createCommentVNode)("",!0),(0,l.renderSlot)(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?((0,l.openBlock)(),(0,l.createBlock)(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:(0,l.withCtx)(()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.nextStepText),1)]),_:1})):(0,l.createCommentVNode)("",!0)])])])])):(0,l.createCommentVNode)("",!0),e.type=="tile"?((0,l.openBlock)(),(0,l.createElementBlock)("div",N5,[(0,l.createElementVNode)("div",C5,(0,l.toDisplayString)(f.content),1)])):(0,l.createCommentVNode)("",!0)])]),_:2},1032,["visible","placement","width"])):(0,l.createCommentVNode)("",!0)]))),128))],2)}var vr=Ge(g5,[["render",z5]]),k5={name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:()=>{}},innerPageScope:{type:[Boolean],required:!1},abstractPageScope:{type:[Boolean,Object],required:!1}};function E5(e,t){return{inheritAttrs:!1,props:k5,setup(r,a){const{exposeApi:n}=Na({context:a,props:()=>r.config},r.name);return _e(r.innerPageScope)||xn(r.innerPageScope),_e(r.abstractPageScope)||ka(r.abstractPageScope),n(),()=>typeof a.slots.default=="function"?a.slots.default():null}}}var{componentName:_5,create:T5,scope:$5}=ce("domain-provider"),B5=T5(E5(_5,$5)),yr=B5,V5={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:()=>"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:()=>"rolling"},rootMargin:{type:[String],required:!1,default:()=>"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:()=>[0,.25]},root:{type:[Object,String]}};function M5(e,t){return{inheritAttrs:!1,props:V5,emits:["change"],setup(r,{slots:a,emit:n}){if(dt&&window.IntersectionObserver){const o=new WeakMap;let s=new Map;const u=(c,T)=>{if(h===null){s.set(c,{visible:null,callback:T});return}o.has(c)&&h.unobserve(c),o.set(c,{visible:null,callback:T}),h.observe(c)},i=c=>{if(h===null){s.delete(c);return}o.has(c)&&(o.delete(c),h.unobserve(c))};let f=r.initialVisibleObserverSize;ts({acquire:()=>{if(r.loadPolicy==="always")return!0;const c=f>0;return f--,c},get disabled(){return r.disabled},get initialHeight(){return r.initialInvisibleObserverHeight},observe:u,unobserve:i});let h=null;const d=(c,T,z)=>{h=new IntersectionObserver(v=>{if(n("change",v),r.loadPolicy!=="always")for(let m of v){let p=!1;m.intersectionRatio>0&&(p=!0);const y=o.get(m.target);if(y)try{if(r.loadPolicy==="lazy"&&!p&&y.visible!==null)return;y.visible=p,y.callback(p)}catch(x){console.error(x)}}},{root:c,rootMargin:T,threshold:z}),s.forEach((v,m)=>{o.set(m,v),h?.observe(m)}),s.clear()};(0,l.watch)([()=>r.root,()=>r.disabled],([c,T])=>{if(T||!c||h)return;let z=null;typeof c=="string"?z=document.querySelector(c):z=c,z&&d(z,r.rootMargin,r.threshold)},{immediate:!0}),(0,l.onUnmounted)(()=>{h&&(h.disconnect(),h=null)})}return()=>typeof a.default=="function"?a.default():null}}}var{componentName:P5,create:A5,scope:I5}=ce("rolling-provider"),L5=A5(M5(P5,I5)),br=L5,F5=[zn,En,_n,Tn,$n,Zt,Vl,Ml,Mn,Ee,Pn,An,In,Ln,Fn,Rn,Dn,On,qn,Hn,jn,Al,Kn,Wn,Yn,Un,Gn,Xn,Zn,Jn,Qn,Ll,Fl,lr,nr,rr,ar,Rl,or,Tt,sr,ur,cr,dr,fr,hr,Pl,zt,Bl,gr,Ct,vr,yr,br],R5=new ki(F5,[Ti],"4.0.0");exports.AbstractPageScopeKey=Nn;exports.AutocompleteItem=qn;exports.FoxAutocompleteItem=qn;exports.Broadcast=ha;exports.BroadcastKey=Ye;exports.ButtonsItem=Mn;exports.FoxButtonsItem=Mn;exports.CascaderItem=On;exports.FoxCascaderItem=On;exports.CheckboxItem=Yn;exports.FoxCheckboxItem=Yn;exports.Content=Tn;exports.FoxContent=Tn;exports.DataItemsKey=Ft;exports.DateItem=In;exports.FoxDateItem=In;exports.DateUtils=qe;exports.DialogItem=ar;exports.FoxDialogItem=ar;exports.Domain=bl;exports.DomainKey=ut;exports.DomainProvider=yr;exports.FoxDomainProvider=yr;exports.FloatingButton=fr;exports.FoxFloatingButton=fr;exports.FloatingWindow=hr;exports.FoxFloatingWindow=hr;exports.FooterBar=_n;exports.FoxFooterBar=_n;exports.FoxAffix=C.ElAffix;exports.FoxAlert=C.ElAlert;exports.FoxAnchor=C.ElAnchor;exports.FoxAnchorLink=C.ElAnchorLink;exports.FoxAside=C.ElAside;exports.FoxAutoResizer=C.ElAutoResizer;exports.FoxAutocomplete=C.ElAutocomplete;exports.FoxAvatar=C.ElAvatar;exports.FoxBacktop=C.ElBacktop;exports.FoxBadge=C.ElBadge;exports.FoxBreadcrumb=C.ElBreadcrumb;exports.FoxBreadcrumbItem=C.ElBreadcrumbItem;exports.FoxButton=C.ElButton;exports.FoxButtonGroup=C.ElButtonGroup;exports.FoxCalendar=C.ElCalendar;exports.FoxCard=C.ElCard;exports.FoxCarousel=C.ElCarousel;exports.FoxCarouselItem=C.ElCarouselItem;exports.FoxCascader=C.ElCascader;exports.FoxCascaderPanel=C.ElCascaderPanel;exports.FoxCheckTag=C.ElCheckTag;exports.FoxCheckbox=C.ElCheckbox;exports.FoxCheckboxButton=C.ElCheckboxButton;exports.FoxCheckboxGroup=C.ElCheckboxGroup;exports.FoxCol=C.ElCol;exports.FoxCollapse=C.ElCollapse;exports.FoxCollapseItem=C.ElCollapseItem;exports.FoxCollapseTransition=C.ElCollapseTransition;exports.FoxColorPicker=C.ElColorPicker;exports.FoxConfigProvider=C.ElConfigProvider;exports.FoxContainer=C.ElContainer;exports.FoxCountdown=C.ElCountdown;exports.FoxDatePicker=C.ElDatePicker;exports.FoxDescriptions=C.ElDescriptions;exports.FoxDescriptionsItem=C.ElDescriptionsItem;exports.FoxDialog=C.ElDialog;exports.FoxDivider=C.ElDivider;exports.FoxDrawer=C.ElDrawer;exports.FoxDropdown=C.ElDropdown;exports.FoxDropdownItem=C.ElDropdownItem;exports.FoxDropdownMenu=C.ElDropdownMenu;exports.FoxEmpty=C.ElEmpty;exports.FoxFooter=C.ElFooter;exports.FoxForm=C.ElForm;exports.FoxFormItem=C.ElFormItem;exports.FoxGroup=$n;exports.Group=$n;exports.FoxGroupSetting=Zn;exports.GroupSetting=Zn;exports.FoxHeader=C.ElHeader;exports.FoxHeaderBar=En;exports.HeaderBar=En;exports.FoxHintText=Ee;exports.HintText=Ee;exports.FoxIcon=C.ElIcon;exports.FoxImage=C.ElImage;exports.FoxImageViewer=C.ElImageViewer;exports.FoxIndicator=gr;exports.Indicator=gr;exports.FoxInfiniteLoading=ur;exports.InfiniteLoading=ur;exports.FoxInput=C.ElInput;exports.FoxInputItem=Pn;exports.InputItem=Pn;exports.FoxInputNumber=C.ElInputNumber;exports.FoxInputNumberItem=Dn;exports.InputNumberItem=Dn;exports.FoxInputTag=C.ElInputTag;exports.FoxItem=Zt;exports.Item=Zt;exports.FoxLink=C.ElLink;exports.FoxLinkItem=Qn;exports.LinkItem=Qn;exports.FoxMain=C.ElMain;exports.FoxMapping=zt;exports.Mapping=zt;exports.FoxMention=C.ElMention;exports.FoxMenu=C.ElMenu;exports.FoxMenuItem=C.ElMenuItem;exports.FoxMenuItemGroup=C.ElMenuItemGroup;exports.FoxMessage=C.ElMessage;exports.FoxMessageBox=C.ElMessageBox;exports.FoxMoneyItem=Rn;exports.MoneyItem=Rn;exports.FoxMoreButton=dr;exports.MoreButton=dr;exports.FoxNotification=C.ElNotification;exports.FoxOption=C.ElOption;exports.FoxOptionGroup=C.ElOptionGroup;exports.FoxOverLay=Rl;exports.OverLay=Rl;exports.FoxPage=zn;exports.Page=zn;exports.FoxPageHeader=C.ElPageHeader;exports.FoxPagination=C.ElPagination;exports.FoxPopconfirm=C.ElPopconfirm;exports.FoxPopover=C.ElPopover;exports.FoxPopoverDialog=Pl;exports.PopoverDialog=Pl;exports.FoxPopper=C.ElPopper;exports.FoxPopup=or;exports.Popup=or;exports.FoxPrice=Bl;exports.Price=Bl;exports.FoxProgress=C.ElProgress;exports.FoxPullRefresh=cr;exports.PullRefresh=cr;exports.FoxRadio=C.ElRadio;exports.FoxRadioButton=C.ElRadioButton;exports.FoxRadioGroup=C.ElRadioGroup;exports.FoxRadioItem=Wn;exports.RadioItem=Wn;exports.FoxRate=C.ElRate;exports.FoxRateItem=Un;exports.RateItem=Un;exports.FoxResult=C.ElResult;exports.FoxRollingProvider=br;exports.RollingProvider=br;exports.FoxRow=C.ElRow;exports.FoxRowItem=Ml;exports.RowItem=Ml;exports.FoxScrollbar=C.ElScrollbar;exports.FoxSearchBar=sr;exports.SearchBar=sr;exports.FoxSegmented=C.ElSegmented;exports.FoxSelect=C.ElSelect;exports.FoxSelectItem=An;exports.SelectItem=An;exports.FoxSelectV2=C.ElSelectV2;exports.FoxSkeleton=C.ElSkeleton;exports.FoxSkeletonItem=C.ElSkeletonItem;exports.FoxSlider=C.ElSlider;exports.FoxSlotItem=Vl;exports.SlotItem=Vl;exports.FoxSpace=C.ElSpace;exports.FoxStatistic=C.ElStatistic;exports.FoxStep=C.ElStep;exports.FoxSteps=C.ElSteps;exports.FoxStepsBar=rr;exports.StepsBar=rr;exports.FoxSubMenu=C.ElSubMenu;exports.FoxSwitch=C.ElSwitch;exports.FoxSwitchItem=Gn;exports.SwitchItem=Gn;exports.FoxTabPane=C.ElTabPane;exports.FoxTable=C.ElTable;exports.FoxTableColumn=C.ElTableColumn;exports.FoxTableItem=Kn;exports.TableItem=Kn;exports.FoxTableMappingColumn=Hn;exports.TableMappingColumn=Hn;exports.FoxTableRadioColumn=jn;exports.TableRadioColumn=jn;exports.FoxTableSetting=Al;exports.TableSetting=Al;exports.FoxTableV2=C.ElTableV2;exports.FoxTabs=C.ElTabs;exports.FoxTabsBar=Ll;exports.TabsBar=Ll;exports.FoxTabsContainer=Fl;exports.TabsContainer=Fl;exports.FoxTabsFrame=nr;exports.TabsFrame=nr;exports.FoxTabsPane=lr;exports.TabsPane=lr;exports.FoxTag=C.ElTag;exports.FoxText=Ct;exports.Text=Ct;exports.FoxTimeItem=Ln;exports.TimeItem=Ln;exports.FoxTimePicker=C.ElTimePicker;exports.FoxTimeSelect=C.ElTimeSelect;exports.FoxTimeSelectItem=Fn;exports.TimeSelectItem=Fn;exports.FoxTimeline=C.ElTimeline;exports.FoxTimelineItem=C.ElTimelineItem;exports.FoxToast=Tt;exports.Toast=Tt;exports.FoxTooltip=C.ElTooltip;exports.FoxTour=vr;exports.Tour=vr;exports.FoxTransfer=C.ElTransfer;exports.FoxTree=C.ElTree;exports.FoxTreeItem=Jn;exports.TreeItem=Jn;exports.FoxTreeSelect=C.ElTreeSelect;exports.FoxTreeSelectItem=Xn;exports.TreeSelectItem=Xn;exports.FoxTreeV2=C.ElTreeV2;exports.FoxUpload=C.ElUpload;exports.FoxWatermark=C.ElWatermark;exports.InnerPageScopeKey=wn;exports.PriorityPolicy=Pe;exports.UniqueID=Ka;exports.ValidateSchema=Sa;exports.ValidateSchemaKey=it;exports.browseProperty=Va;exports.cancelRaf=Do;exports.clamp=ai;exports.clearNonNumber=Qo;exports.compareTo=nn;exports.createBroadcast=Ut;exports.createValidateSchema=vl;exports.debounce=Ke;exports.debounceRef=pi;exports.decimalLength=ma;exports.default=R5;exports.defineConfigDomain=Na;exports.defineDataItem=Ca;exports.defineDomain=Sn;exports.defineDomainItemProperty=Re;exports.defineItem=Te;exports.definePageState=za;exports.defineSimpleItem=_t;exports.deleteGlobalValidator=ci;exports.disabledProperty=Ba;exports.divide=gn;exports.excludeProps=Fe;exports.extend=xt;exports.floatData=li;exports.getGlobalIcons=Ra;exports.getGlobalValidateCheckEvents=va;exports.getGlobalValidateResetEvents=ba;exports.getPageContentAreaHeight=dl;exports.getPageContentAreaWidth=fl;exports.getPageFooterAreaHeight=xl;exports.getPageHeaderAreaHeight=wl;exports.getRootDomain=bt;exports.hasSymbol=sa;exports.includeProps=gt;exports.indexOf=ei;exports.injectAbstractPageScope=Xt;exports.injectAbstractPageScopeForContent=Ta;exports.injectAbstractPageScopeForFooterBar=_a;exports.injectAbstractPageScopeForHeaderBar=Ea;exports.injectInnerPageScope=Gt;exports.integerLength=fa;exports.isArray=qo;exports.isArrayLike=ca;exports.isBrowser=dt;exports.isDate=Ko;exports.isDisplayNone=yn;exports.isESModule=Uo;exports.isEmptyString=he;exports.isEqual=Qe;exports.isFunction=rn;exports.isHidden=an;exports.isMap=Ho;exports.isNil=_e;exports.isNumberString=bn;exports.isObject=Ue;exports.isPlainObject=Yo;exports.isPromise=oa;exports.isRegExp=on;exports.isSet=jo;exports.isString=aa;exports.isSubPage=yi;exports.isSymbol=Wo;exports.isTouch=Jt;exports.isWindow=ua;exports.kebabToPascal=Ht;exports.lastIndexOf=ti;exports.makeArray=Jo;exports.merge=da;exports.multiply=la;exports.negate=na;exports.nextTick=Xo;exports.numberFormat=hl;exports.objectToString=ia;exports.once=hi;exports.overrideGlobalIcons=Li;exports.overrideGlobalValidateHandler=si;exports.padZero=ri;exports.pascalToKebab=pa;exports.preventDefault=ni;exports.property=Ae;exports.provideAbstractPageScope=ka;exports.provideInnerPageScope=xn;exports.raf=vn;exports.readonlyProperty=$a;exports.setGlobalValidateCheckEvents=di;exports.setGlobalValidateHandler=ii;exports.setGlobalValidateMessages=mi;exports.setGlobalValidateResetEvents=fi;exports.setGlobalValidator=ui;exports.throttle=xa;exports.toBoolean=fe;exports.toNumber=ke;exports.toPadding=Je;exports.toPx=pe;exports.toPxDesc=vi;exports.toPxString=Se;exports.toTypeString=gl;exports.toValue=ye;exports.tryTimes=yl;exports.typeOf=ul;exports.unNumberFormat=ra;exports.updatePageState=sn;exports.useBroadcast=Lt;exports.useDomain=ft;exports.useInnerSize=Nl;exports.usePageState=Sl;exports.usePosition=Bn;exports.useRawTouch=Qt;exports.useRect=_o;exports.useSize=kn;exports.useSlotChildren=$l;exports.useTouch=W2;exports.valueLength=Yt;
|