@fox-js/foxui-pc 4.1.1-1 → 4.1.1-3
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 +3 -3
- package/dist/index.esm.js +4989 -4862
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
- package/dist/style.esm.js +0 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(m,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
1
|
+
(function(m,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],t):(m=typeof globalThis<"u"?globalThis:m||self,t(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,t,nt,v,Ce,Le){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Tue Sep 24 2024 22:41:33 GMT+0800 (中国标准时间)
|
|
3
3
|
*/const Rt=window,Yr=typeof window<"u";function Gr(){return typeof Rt<"u"?Rt.requestAnimationFrame||Rt.webkitRequestAnimationFrame||function(e){Rt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ur(e){Yr?cancelAnimationFrame(e):clearTimeout(e)}const ql=Gr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function At(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ee(e),t=Ee(t),[e,t]=hn(Ee(e),Ee(t)),o==1&&(n==1?e=dn(e):t=dn(t));let r=Pl(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(dn(r)):Ee(r)}function dn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Pl(t,a)}function Ee(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 o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Pl(e,t){[e,t]=hn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var pe=(e=>(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))(pe||{});function bt(e,t=0,o=pe.HALF_EVEN){if(o===pe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],s=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+s,u=bt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,jl(r[1],a,n,o)?(n?"-":"")+gn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");s=r[1].substring(0,t);let i=r[1].substring(t);return i&&jl(i,s,n,o)&&(s=gn(s),s.length>t)?(n?"-":"")+gn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function jl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===pe.DOWN||!o&&n===pe.FLOOR||o&&n===pe.CEILING)return!1;if(n===pe.UP||o&&n===pe.FLOOR||!o&&n===pe.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case pe.HALF_DOWN:return!1;case pe.HALF_UP:return!0;case pe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function mn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=vt(e),t=vt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=vt(e.replace(".","")),t=vt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,f="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let S=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(S+=parseInt(e[u[N]--])*parseInt(t[N]));S+=i,i=Math.floor(S/10),f=S%10+f,d--}return f=vt(Xr(f,a)),o==1&&(f="-"+f),f}function Xr(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 pn(e,t,o=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 n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ee(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ee(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=Ee(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=Ee(e.replace(".","")))}let a=0,s=t.length,i="",u=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),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=d,i="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=At(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+Ee(bt(i,o-2))}function yn(e,t){return e=e.toString(),t=t.toString(),t=bn(t),At(e,t)}function bn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Hl(e),Hl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=yn(e,mn(t,bt(pn(e,t),0,pe.FLOOR)));return o+n}function Hl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Kl(e,t){let o=!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),o=!0),[e,t]=hn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class fe{value;static RoundingModes=pe;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[o,n]=t.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ee(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=fe.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=fe.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var s="",i=a;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<a-o&&i>=0?n:"")+s;return(r?"-":"")+s+t.substring(a)}getPrettyValue(t,o){return fe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=pe.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return bt(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(bt(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),At(t,o)}add(t){return new fe(At(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),yn(t,o)}subtract(t){return new fe(yn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),mn(t,o)}multiply(t){return new fe(mn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),pn(t,o,n)}divide(t,o){return new fe(pn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),zl(t,o)}modulus(t){return new fe(zl(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),Kl(t,o)}compareTo(t){return Kl(this.value,t.getValue())}static negate(t){return t=fe.validate(t),bn(t)}negate(){return new fe(bn(this.value))}}function Wl(e,t){return fe.multiply(`${e}`,`${t}`)}function vn(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function wn(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function Yl(e){return fe.negate(e)}function Lt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let i=a,u="",d=a.indexOf(".");d!=-1&&(i=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",S=i.split("").reverse();for(let N=0;N<S.length;N++)c+=S[N]+((N+1)%n==0&&N+1!=S.length?r:"");u.length==0?f=`${s}${c.split("").reverse().join("")}`:f=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function Gl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Sn=ql,Zr=Array.isArray,Jr=e=>Mt(e)==="[object Map]",Qr=e=>Mt(e)==="[object Set]",ea=e=>e instanceof Date,xn=e=>typeof e=="function",Ul=e=>typeof e=="string",ta=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Xl=e=>We(e)&&xn(e.then)&&xn(e.catch),Zl=Object.prototype.toString,Mt=e=>Zl.call(e),Tn=e=>Mt(e)==="[object Object]",Jl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function na(e){return e.__esModule||Jl&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let s in a){let i=t[s],u=a[s];if(i!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=nt(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function $n(e,t,o=!1){if(!o)nt(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const Cn=la?Promise.resolve():null;function oa(e,...t){Cn!==null?t&&t.length>0?Cn.then(()=>{e(t)}):Cn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}const ra={"[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 Bt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ra[o]||"object"}function Ql(e){return e&&typeof e=="object"&&"setInterval"in e}function _t(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function eo(e){let t=!!e&&"length"in e&&e.length,o=Bt(e);return o==="function"||Ql(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function to(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function aa(e,t=[]){let o=t;return e!=null&&(eo(Object(e))?to(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Bt(e),n=Bt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++){let i=r[s],u=e[i],d=t[i];if(!Ye(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],s=t[r];if(!Ye(a,s))return!1}return!0}return!1}const lt=typeof window<"u";function En(e){return e==null}function no(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lo(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oo(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 o=t.indexOf(".");return o==-1?t.length:o}function ro(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function ao(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ia(e,t=!0,o=!0){t?e=ao(e,".",/\./g):e=e.replace(/\./g,""),o?e=ao(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ye(e,o))return!0}):t.indexOf(e)}function ua(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ye(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function wt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function io(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ne(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ca=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ye=Symbol.for("BroadcastKey");class Nn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):no(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&a.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(t,o){this.callbacks.set(t,o)}}function qt(e,t,o,n){const r=new Nn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function fa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new Nn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function St(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ot=e=>e.default??e;class da{error(t,o){const n=o,r=o||l.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?St(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?St(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?St(n):null,s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let xt=new da;function ha(e){xt=e}function ga(e){xt?Object.assign(xt,e):xt=e}function ma(e,t){ot(tt).setValidator(e,t)}function pa(e){ot(tt).deleteValidator(e)}let so=["blur","clear"];function ya(e){so=e}function uo(){return so}let co=["focus","change","setValue"];function ba(e){co=e}function fo(){return co}function va(e){ot(tt).messages(e)}function Tt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Pt(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}const qe=Symbol("ValidateSchemaKey");class ho{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Pt(Tt(this.attrRules,this.rules)),n=[];for(let a in t){let s=t[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let u={type:a};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};n.push(u)}}this.attrRules=Pt(n);const r=Tt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=xt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ot(tt).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ot(tt).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ot(tt).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=Tt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Pt(t):this.rules=Pt([t]);const n=Tt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Tt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),s={[`${n}`]:a},i=ot(tt),u=new i(r),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let S="error";Array.isArray(c.errors)&&c.errors.length>0&&(S=c.errors[0].message??S,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(S)}return c}).catch(c=>{const S=c.message??`${c}`;return this.error(S),c})}}return Promise.resolve({pass:!0})}}function jt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new ho(t,o,e)}const zt=Symbol.for("EventEmitterKey");class go{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function $t(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function mo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function wa(e,t){const o=$t((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Sa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Ht(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const Ae=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Kt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const xa=new Kt;function ct(){return xa}function Ge(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const kn=Symbol("OriginalDateKey");function In(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(Ae,null);s===null&&(s=ct());const i=e||t.prop||t.name;let u=new Kt(i);u.parent=s;const d=N=>{a[kn]||S(N),u?.set("modelValue",N)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[kn]??null,S=N=>{const g={};nt(!0,g,l.toRaw(N)),a[kn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,N=>{u?.merge(N,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&S(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const N=l.inject(ye,null),g=qt(a,N,i,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=($,w,...C)=>Reflect.apply(g.emit,g,[$,w,...C]);const h=l.inject(qe,null),p=jt(a,h,{componentName:""});u.validateSchema=p,a[qe]=p,l.provide(qe,p),a[ut]=new Map,a.validate=($=!0)=>{const w=[];let C=null;const q={deep:!1};if($===!0)C={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;C={name:A=>A?B.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(Object.assign(q,B),Array.isArray(B.include)&&B.include.length>0){const A=B.include;C={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;C={name:L=>L?A.indexOf(L)===-1:!1}}else C={name:"*"}}if(C){const B=g?.emitToChildren(C,"validate",q);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let A=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,C=!1)=>{if(C===!0){Reflect.ownKeys($).forEach(B=>{let A=String(B);const L={componentName:"",fieldName:A,pureDataValidate:!0};if(u){const M=bo(u,A,L,g,p);a[ut].set(A,M);const V=$[A];V&&M.validateSchema.setRule(V)}});return}if(w){const q=Reflect.ownKeys($),B={name:A=>q.includes(A)};g?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const C=$;w={name:q=>q?C.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const C=$;if(Array.isArray(C.include)&&C.include.length>0){const q=C.include;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;w={name:B=>B?q.indexOf(B)===-1:!1}}else w={name:"*"}}w&&g?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const C={};if(nt(!0,C,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=C[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=C[B]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(C).forEach(B=>{q.includes(B)||(w[B]=C[B])})}else Object.assign(w,C);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===i?d($):g?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[qe]=void 0,l.provide(qe,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[ut]&&(a[ut].clear(),a[ut]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function po(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=ct());const s=e||t.prop||t.name;let i=new Kt(s);return i.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{i?.merge(u,o)},{immediate:!0}):i.merge(t,o),r[Ae]=i,l.provide(Ae,i),l.onUnmounted(()=>{i?.destroy(),r[Ae]=void 0,l.provide(Ae,null),i=null,r=null}),i}function yo(e,t,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(ye,null);let i=qt(r,s,a,o);r[ye]=i,l.provide(ye,i),r.broadcast=(g,h,...p)=>i?Reflect.apply(i.emit,i,[g,h,...p]):null;const u=l.inject(qe,null);e.fieldName=e.fieldName??a;let d=jt(r,u,e);r[qe]=d,l.provide(qe,d),yo(r,d,a),r.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let p=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,p=!0;else if(g&&typeof g=="object"){const w=g,C=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||B===!0&&_t(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),p=w.deep??!1}else typeof g=="boolean"&&(p=g),$=!0;if($){const w=d?.validate();h.push(w)}if(p){let w=null;const C={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const B=q.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const B=q.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w&&i){const q=i.emitToChildren(w,"validate",C);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let C=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(C=[...C,...q.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const p=g[a];if(p&&d?.setRule(p),h&&i){const $={name:w=>Reflect.ownKeys(g).includes(w)};i.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const p=g;h={name:$=>$?p.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const p=g;if(Array.isArray(p.include)&&p.include.length>0){const $=p.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const $=p.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new go(r);r[zt]=f;const c=$t((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(g=>{f&&f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(g=>{f&&f.on(g,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[ye]=void 0,l.provide(ye,null),i=null,d?.destroy(),r[qe]=void 0,l.provide(qe,null),d=null,f?.destroy(),r[zt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function bo(e,t,o,n,r){const a={},s=t??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};o.fieldName=s,o.validateHandler={getValue(f){return i.getValue()}};let u=jt({},r,o);a.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let S=!1,N=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)N=!0,S=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),N=!0,S=g.deep??!1}else typeof f=="boolean"&&(S=f),N=!0;if(N&&u){const g=u.validate();c.push(g)}if(S){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;g={name:$=>$?p.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Object.assign(h,p),Array.isArray(p.include)&&p.include.length>0){const $=p.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const $=p.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g&&d){const p=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let h=[];return g.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(h=[...h,...p.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[s];c&&u?.setRule(c)};let d=qt(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function vo(){let t=l.getCurrentInstance()?.proxy,o=new go(t);return t[zt]=o,l.onUnmounted(()=>{o?.destroy(),t[zt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const ke=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(lt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(a=Number(s.substring(0,i)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Je="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=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function On(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=ze(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=ze(o.footerPadding??t.footerPadding),e.contentPadding=ze(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(s,a)-he(i,a),e.width=he(o.width??t.width??0,r)}}function wo(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;On(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Je);c&&(n.height=Yt(e,c),n.width=Gt(e,c),l.watch([()=>Yt(e,c),()=>Gt(e,c)],([N,g])=>{f.height=N,f.width=g}));const S=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,g,h=-1,p=-1,$=0,w=0])=>{On(f,g,t,S,h,p,$,w)}),e.set(Je,f),f}function Wt(e){return e.get(Je)}function Ct(e,t){if(t=t??e.get(Je),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Et(e,t){if(t=t??e.get(Je),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Yt(e,t){if(t=t??e.get(Je),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ct(e,t),n=Et(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Gt(e,t){return t=t??e.get(Je),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ta(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function $a(e){return!!e.getForParent(Je)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Vn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Oe(e,t,o=1,n){const r=Ge();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let i=a.length-1;i>=0;i--){const u=a[i];if(Vn(u,n))return u}const s=e.value;return Vn(s,n)?s:null}):l.computed(()=>{const a=e.value;return Vn(a,n)?a:r?.get(t)})}function Ve(e){return Oe(e,"readonly",0,function(o){return ue(o)})}function Fe(e){return Oe(e,"disabled",0,function(o){return ue(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,n&&n("setValue",u))}else i!==s.value&&(s.value=i,n&&n("setValue",i))}),s}const So=new Map,Ut=new Map;let Fn=null;function Ca(e){Fn=e}function xo(e,t,o){if(o){let n=Ut.get(o);n||(n=new Map,Ut.set(o,n)),n.set(e,t)}else So.set(e,t)}function Pe(e,t,o){!o&&Fn&&(o=Fn(e)??void 0);let n=null;if(o){let r=Ut.get(o);r&&(n=r.get(t))}return n||(n=So.get(t)),n}function Ea(e,t){for(let o in e){const n=e[o];xo(o,n,t)}}function Na(e){Ut.delete(e)}function ka(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,t=0){if(lt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Oa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Va{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const s=Oa(a.name,o);t.component(s,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ct();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mo(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=nt({},ka(),t.safeAreaInset),s=Ia(n,r),i=nt({},s.pageLayout,t.pageLayout);o=o??ct(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ca(t)}setAPI(t,o,n){xo(t,o,n)}getAPI(t,o,n){return Pe(t,o,n)}batchSetAPI(t,o){Ea(t,o)}clearScopeAPI(t){Na(t)}getRootDomain(){return ct()}}const Fa=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload,y.ElStatistic,y.ElCountdown,y.ElSegmented,y.ElAnchor,y.ElAnchorLink,y.ElWatermark,y.ElMessageBox,y.ElMessage,y.ElNotification],Da=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Ra=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Fa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Da.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ie={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,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},To={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}},$o={name:{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}},Co=[];for(const e in $o)Co.push(e);const Aa=Symbol.for("InnerPageScopeKey"),La={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}},Ma=(e,t)=>({inheritAttrs:!0,props:{...we,...To,...La},setup(o,{slots:n}){const r=In(o.name,o),a=l.inject(Aa,!1);if(r){const f=wo(r,o);$e({getPageContentHeight:()=>Yt(r,f),getPageContentWidth:()=>Gt(r,f),getPageHeaderHeight:()=>Ct(r,f),getPageFooterHeight:()=>Et(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const S=u?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[S,N])=>{if(f&&S){const g=l.toRaw(S),h=l.toRaw(f),p=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{p.includes(w)||(h[w]=[])}),d(h)}if(c&&N){const g=l.toRaw(N),h=l.toRaw(c),p=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{p.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:s.value,style:i.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ba,create:_a,scope:vh}=ie("page"),Dn=_a(Ma(Ba));function Xt(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Rn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-s}}const qa=(e,t,o,n=!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:o},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(r,a){const s=Ge(),i=s?Wt(s):null;i&&(i.headerMounted=!0);const u=e,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?he(r.height):null,S=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const b=ze(r.padding??i.headerPadding);return Object.assign(k,b),c&&(i.headerHeight=c),i.headerHeight>0&&(k.height=i.headerHeight),k.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(b.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const b=ze(r.padding);Object.assign(k,b)}return k}),N=l.ref(null),g=()=>{if(i&&N.value&&!_t(N.value)){if(!n){const k=Xt(N.value);i.headerAllHeight=k.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(Ht(g,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(N.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const p=l.computed(()=>{const k={};return S.value.height!==null&&S.value.height!==void 0&&(k.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(k.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(k.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(k.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(k.paddingBottom=`${S.value.bottom}px`),k}),$=l.computed(()=>!(S.value.height!==null&&S.value.height!==void 0&&S.value.height<=0));function w(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function B(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(b)}else if(r.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(b)}if(r.leftText){const b=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(b)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},L=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const b=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(b)}if(a.slots.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);k.push(b)}else if(r.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);k.push(b)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},M=()=>{if(!r.titleShow)return null;const k=[],b=a.slots.default?a.slots.default():null;if(b)k.push(b);else{if(r.title){const P=l.h("view",{class:"title-text"},[r.title]);k.push(P)}if(a.slots.titleIcon){const P=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);k.push(P)}else if(r.titleIcon){const P=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);k.push(P)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},V=()=>{const k=[],b=a.slots.bottom?a.slots.bottom():null;return b&&k.push(b),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!$.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const P=[],_=A();_&&P.push(_);const D=M();D&&P.push(D);const F=L();if(F&&P.push(F),P.length>0){const G=l.h("view",{class:f.value},P);k.push(G)}const K=V();K&&k.push(K)}if(k.length===0)return null;const b={class:d.value,style:p.value,ref:N};return l.h("view",b,k)}}}),{componentName:Pa,create:ja,scope:za}=ie("header-bar"),An=ja(qa(Pa,za,Ce.ArrowLeft));function Ha(e,t,o=!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(n,r){const a=Ge(),s=a?Wt(a):null,i=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,d=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=ze(n.padding??s.footerPadding);return Object.assign(g,h),u&&(s.footerHeight=u),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=ze(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),c=()=>{if(s&&f.value&&!_t(f.value)){if(!o){const g=Xt(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let S=null;l.onMounted(()=>{s&&(Ht(c,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(()=>{c()}),S.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const N=l.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=ke(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=ke(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=ke(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=ke(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=ke(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:N.value};return l.h("view",h,g)}}}}const{componentName:Ka,create:Wa,scope:wh}=ie("footer-bar"),Ln=Wa(Ha(Ka));function Ya(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ge(),r=l.computed(()=>({[e]:!0})),a=n?Wt(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const N=ze(o.padding);Object.assign(a.contentPadding,N)}const f=Ct(n,a),c=Et(n,a);let S="";if(a.contentHeight?S=`${a.contentHeight}`:S=`${a.height}px`,a.contentPadding,d.height=S,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=ze(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=l.ref(null),u=()=>{if(a&&i.value){const d=Rn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ct(n),()=>Et(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Ga,create:Ua,scope:Sh}=ie("content"),Xa=Ua(Ya(Ga));function Za(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Mn=_e(Xa,[["render",Za]]),ft="GroupStateKey",Eo=Symbol.for("GroupScopeKey");function Zt(){return l.inject(Eo,!1)}function Jt(e=!0){l.provide(Eo,e)}function Ja(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];En(r)||(e[n]=r)})}function Qa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ja(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ft,a),a}function Bn(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(ft);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=he(a),c=he(s);i||(i=d.type??"grid");const S=()=>{const N=t===""||t===-1,g=he(t);let h=ve(o);const p=he(n);if(!N){let C=(g-(h-1)*p)/h;for(;c!==-1&&C>c;)h++,C=(g-(h-1)*p)/h;for(;f!==-1&&h>1&&C<f;)h--,C=(g-(h-1)*p)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==p&&(w.value.gutter=p,$=!0),w.value.type!==i&&(w.value.type=i,$=!0),$&&l.triggerRef(w)};if(r)S();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&S()},50)}}function Qt(e,t=!1){let o;return t?o=e.getForParent(ft):o=e.get(ft),o.layout}function en(e,t=!1){let o;return t?o=e.getForParent(ft):o=e.get(ft),o.order}function No(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function tn(e,t,o=1,n=0,r){const a={};let s=0;r?s=he(r):s=No(t.column,o),s>0&&(a.width=`${s}%`);const i=No(t.column,n);i>0&&(a["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function nn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=ve(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ve(n)%t.column;let s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const ko=Symbol("RollingStateKey");function ei(e){l.provide(ko,e)}function ti(){return l.inject(ko,null)}function _n(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ni(e){let t=_n(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=_n(o),document.body.removeChild(o)}return t}function li(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const oi={...we,...To,...$o};function ri(e,t,o){return{props:oi,emits:["update:collapse","header-click"],setup(n,r){const a=In(n.name,n,Co),s=Qa(a,{type:n.type}),i=Zt();Jt(!0);const u=n.rollingDisplay?ti():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?Qt(a,!0).value:null),S=l.getCurrentInstance(),N=(H,J=!1)=>{const te=S?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[te,T])=>{if(H&&te){const W=l.toRaw(te),ne=l.toRaw(H),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),N(ne)}if(J&&T){const W=l.toRaw(T),ne=l.toRaw(J),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),N(ne,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=F.value;const J=i?en(a,!0):null;if(c.value&&J){if(c.value.type==="grid"){const te=nn(J,c.value,n.span,n.offset);Object.assign(H,te)}else if(c.value.type==="flow"){const te=tn(J,c.value,n.span,n.offset,n.width);Object.assign(H,te)}}else if(n.width){const te=ke(n.width);H.width=te}return H}),p=l.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${n.justify}`]:!0,[`${g}--${H}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),$=l.computed(()=>{if(s.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const te=li(M.value,s.layout.value.column,s.layout.value.gutter);J=`repeat(${s.layout.value.column}, ${te})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),C=l.toRef(n,"column"),q=l.computed(()=>i||f.value?!0:ue(n.isWrap)),B=[],A=H=>{B.push(H)},L=()=>{let H=B.length;B.splice(0,H)},M=l.ref(-1),V=H=>{const J=Rn(H).width;J>0&&J!==M.value&&(M.value=J)};Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,C,w],([H,J,te])=>{s.order.index=0,Bn(a,H,J,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>K.value?n.expandText??"":n.collapseText??""),b=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),_=l.ref(),D=l.ref(),F=l.computed(()=>G.value||ke(n.height)||""),K=l.ref(!1),G=l.ref(""),U=l.ref(!1);let Z=-1;const ee=(H,J=!0)=>{const te=_.value;if(te&&K.value!==H){if(Z=Z===-1?ni(te):Z,U.value=!0,J)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",H||(G.value="",U.value=!1)},H){let T=0;n.collapseHeight?T=n.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(T=D.value.offsetHeight),G.value=`${Z}px`,l.nextTick(()=>{G.value=`${T}px`})}else G.value=`${Z}px`;else if(H){let T=0;n.collapseHeight?T=n.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(T=D.value.offsetHeight),G.value=`${T}px`}else U.value=!1,G.value=`${Z}px`;K.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{ee(H)});const le=H=>{r.emit("header-click",H)},O=()=>{x()},x=H=>{H=H??!K.value,ee(H)};$e({toggleCollapse:x,doLayout:()=>{B[0]&&(V(B[0]),Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let E=null,v=!0;const Y=H=>{if(n.rules){const J=l.toRaw(n.rules);N(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);N(J,!0)}if(lt&&(H&&ee(ue(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];V(J),window.ResizeObserver&&(E=new window.ResizeObserver(()=>{V(J)}),E.observe(J))}},j=()=>{E?.disconnect(),E=null},z=!f.value||u?.acquire();z&&(d.value=f.value?!0:null),l.onMounted(()=>{if(z&&(Y(v),v=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(_.value,te=>{if(te!==d.value)if(te)d.value=!0,K.value||(G.value=""),H=setTimeout(()=>{H=null,d.value!==!1&&(Y(v),v=!1)},100);else{if(H!==null&&clearTimeout(H),d.value=!1,!K.value)if(v)G.value=u.initialHeight;else{let T=_n(_.value);T<=0?G.value=J:(G.value=`${T}px`,J=G.value)}v||j()}})}}),l.onUnmounted(()=>{E?.disconnect(),u&&u.unobserve(_.value)});const R=(H="right")=>{const J=[];if(k.value){const W={class:b.value},ne=l.h("span",W,[k.value]);J.push(ne)}const te={class:P.value},T=o(n.collapseIcon,te);return T&&J.push(T),J.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},X=(H,J,te,T)=>{const W={...p.value};return J===0&&(W[`${g}__first`]=!0),te>=T-1&&(W[`${g}__last`]=!0),l.h("div",{ref:A,key:`${J}`,class:W,style:$.value},H)};return()=>{if(f.value&&d.value!==!0){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[])}s.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},ne=l.h("div",W,[r.slots.header()]);H.push(ne)}else{const W=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const oe=R("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${g}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ne&&n.showCollapse){const oe=R("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:D,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},de=l.h("div",oe,W);H.push(de)}}L();const te=r.slots.default?r.slots.default():[],T=s.layout.value.type;if(T==="grid"){const W=X(te,J++,0,te.length);H.push(W)}else if(T==="flow"){const W=X(te,J++,0,te.length);H.push(W)}else for(let W=0;W<te.length;W++){const ne=te[W],oe=X([ne],J++,W,te.length);H.push(oe)}if(q.value){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[H])}else return H}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),qn=ii(ri(ai,si,(e,t)=>(e=e??Ce.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]}))));function ui(e){return e===window}const ci=/matrix\((.+)\)/,Io=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ui(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,s=0,i=0,u=0;for(r=t;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ci.exec(d);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class fi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class di{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new fi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Oo=new di,Vo={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:hi,create:gi}=ie("price"),mi=gi({props:{...Vo},setup(e){const t=l.computed(()=>({[hi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>wt(e.price)==0?"":Lt(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),r=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),a=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),pi=["innerHTML"],yi=["innerHTML"];function bi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,pi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):l.createCommentVNode("",!0)],2)}const ln=_e(mi,[["render",bi]]),{componentName:Pn,create:vi}=ie("hint-text"),wi=vi({components:{Price:ln},props:{...Vo,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 o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),s=l.ref(e.placement),i=l.ref(!1),u=l.ref(null),d=(b,P,_,D,F,K)=>{const G=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Z=b.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},O=[];for(let x=0;x<ee.length;x++){const I=ee[x];if(O[0]=I,Z[1]&&(O[1]=Z[1]),I==="top"){const E=P.y-K-e.arrowSize-e.offset;if(E>=0){le.top=E;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+_-F:v=P.x+_/2-F/2;const Y=G-v-F;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(I==="bottom"){const E=P.y+D+e.arrowSize+e.offset;if(E+K<=U){le.top=E;let v=0;Z[1]==="start"?v=P.x:Z[1]==="end"?v=P.x+_-F:v=P.x+_/2-F/2;const Y=G-v-F;Y<0?(v+=Y,c.value=-Y):c.value=0,le.left=v<0?0:v;break}}else if(I==="left"){const E=P.x-F-e.arrowSize-e.offset;if(E>=0){le.left=E;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+D-K:v=P.y+D/2-K/2,le.top=v<0?0:v;break}}else if(I==="right"){const E=P.x+_+e.arrowSize+e.offset;if(E+F<=G){le.left=E;let v=0;Z[1]==="start"?v=P.y:Z[1]==="end"?v=P.y+D-K:v=P.y+D/2-K/2,le.top=v<0?0:v;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},f=(b,P,_=10)=>{if(!lt||P===!1||!b)return;n.value=Io(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=u.value.offsetHeight,F=u.value.offsetWidth,{bestPlacement:K,bestInsetRect:G}=d(e.placement,n.value,r.value,a.value,F,D);s.value=K,o.value=G,i.value=!0},c=l.ref(0),S=$t(()=>{f(e.message,e.visible)},10),N=l.ref(e.visible);l.watch(()=>e.visible,b=>{N.value=b});const g=l.computed(()=>N.value&&h.value),h=l.ref(!0),p=$t(b=>{const P=b[0];P&&(h.value=P.isIntersecting)},10),$=new IntersectionObserver(p);l.watch([()=>e.message,()=>e.visible],([b,P])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Oo.watch(e.reference,S),$.observe(e.reference)}),l.onBeforeMount(()=>{Oo.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const w=l.computed(()=>{const b={[Pn]:!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}),C=l.computed(()=>{const b={};o.value.top!==null&&(b.top=`${o.value.top}px`),o.value.right!==null&&(b.right=`${o.value.right}px`),o.value.bottom!==null&&(b.bottom=`${o.value.bottom}px`),o.value.left!==null&&(b.left=`${o.value.left}px`),e.autoFit&&(b["min-width"]=`${r.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return b["max-width"]=`${P}px`,i.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}),q=l.computed(()=>{const b=[`${Pn}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),B=l.computed(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),A=l.computed(()=>({[`${Pn}__arrow`]:!0})),L=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+c.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(b.right=`${e.arrowOffset-c.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+c.value}px`,b.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(b.right=`${e.arrowOffset-c.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"}}),M=l.computed(()=>g.value&&e.closeOnClick),V=l.computed(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:g,tipRef:u,classes:w,styles:C,textClasses:q,textStyles:B,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:V,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}}),Si=["innerHTML"];function xi(e,t,o,n,r,a){const s=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Si))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Nt=_e(wi,[["render",xi]]);class Fo{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const jn={},Ti=new Fo,dt=new Map,on=e=>{if(e){const t=document.getElementById(e);dt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of dt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}dt.clear()}},$i=e=>{e.unmount=on;const t=document.getElementById(e.id);if(t){const o=dt.get(e.id);o?e={...jn,...o,...e}:e={...jn,...e},e.transition=!1;const n=l.createVNode(Nt,e);l.render(n,t)}return e.id},Ci=e=>{e.unmount=on;let t=e.id??`hinttext_${Ti.get()}`;e={...jn,...e},e.id=t,dt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Nt,e);return l.render(n,o),document.body.appendChild(o),t},Ei=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},De={show(e,t,o={},n=!0){Ei(t);const r=o.id;return r&&dt.has(r)?$i({...o,message:t,reference:e}):(n&&on(),Ci({...o,message:t,reference:e}))},hide(e){on(e)},install(e){e.config.globalProperties.$hintText=De}};function Ni(e,t,o,n=!1){return{inheritAttrs:!0,props:{...we,...Ie},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;Te({componentName:e,validate:!1},s);const i=Ge(),u=Zt();Jt(!1);const d=l.computed(()=>u&&i?Qt(i,!1).value:null),f=e,c=l.ref(null),S=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(T[r.errorMarkClass]=!!K.value,T[r.warnMarkClass]=!!D.value,T[r.infoMarkClass]=!!P.value,typeof c.value=="function"){const W=c.value(s);T[W]=!0}else if(typeof c.value=="string"){const W=c.value;T[W]=!0}return T}),N=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=ke(r.width));else{const W=u&&i?en(i,!1):null;if(d.value&&W){if(d.value.type==="grid"){const ne=nn(W,d.value,r.span,r.offset);Object.assign(T,ne)}else if(d.value.type==="flow"){const ne=tn(W,d.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof N.value=="function"){const W=N.value(s);W&&Object.assign(T,W)}else if(N.value&&typeof N.value=="object"){const W=N.value;Object.assign(T,W)}return T}),h=l.ref(null),p=l.computed({get:()=>h.value??ue(r.isRequired),set:T=>{h.value=T}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Oe(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),C=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${C.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),A=Oe(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),L=l.computed(()=>A&&A.value?{width:ke(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":p.value})),V=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),b=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){p.value=T},setErrorTip(T){b.errorTip=T},setErrorIcon(T){b.errorIcon=T},setWarnTip(T){b.warnTip=T},setWarnIcon(T){b.warnIcon=T},setInfoTip(T){b.infoTip=T},setInfoIcon(T){b.infoIcon=T},setCustomClassName(T){c.value=T},setCustomStyle(T){N.value=T}});const P=l.computed(()=>r.infoTip||b.infoTip),_=l.computed(()=>r.infoIcon||b.infoIcon),D=l.computed(()=>r.warnTip||b.warnTip),F=l.computed(()=>r.warnIcon||b.warnIcon),K=l.computed(()=>r.errorTip||b.errorTip),G=l.computed(()=>r.errorIcon||b.errorIcon),U=l.computed(()=>K.value?"error":D.value?"warn":P.value?"info":""),Z=()=>U.value.length>0,ee=l.computed(()=>U.value==="error"?K.value:U.value==="warn"?D.value:U.value==="info"?P.value:""),le=l.computed(()=>U.value==="error"?G.value:U.value==="warn"?F.value:U.value==="info"?_.value:null),O=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${U.value}`]:!0,[`${f}--animate`]:!0};return U.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return w&&w.value==="top"||!$()?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=ke(A.value)),T}),I=l.ref();let E="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,W,ne,oe])=>{I.value&&(T&&!me(W)?E?o.show(I.value,W,{...oe,id:E,type:ne},!0):E=o.show(I.value,W,{...oe,type:ne},!0):o.hide(E))});let v=null;const Y=()=>{v||!I.value||(v=new IntersectionObserver(T=>{let W=!1;for(let ne of T)if(ne.intersectionRatio>0){W=!0,W&&a.emit("appear",ne);break}W||a.emit("disappear")}),v.observe(I.value))},j=()=>{!v||!I.value||(v.unobserve(I.value),v=null)};l.watch(()=>ue(r.appearListen),T=>{T?Y():j()}),l.onMounted(()=>{ue(r.appearListen)&&Y()}),l.onUnmounted(j);const z=()=>{if(!$())return null;const T=[],W=a.slots?.label?.()??r.label,ne={class:M.value},oe=l.h("div",ne,[W]);if(T.push(oe),a.slots.fixedPreTip){const se=a.slots.fixedPreTip();T.push(se)}const de={class:B.value,style:L.value};return l.h("div",de,T)},R=()=>{const T=[];if(a.slots.prepend){const ne=a.slots.prepend();T.push(ne)}if(a.slots.default){const ne=a.slots.default();T.push(ne)}if(a.slots.append){const ne=a.slots.append();T.push(ne)}if(a.slots.fixedTip){const ne={class:[`${f}__fixed-tip`]},oe=l.h("div",ne,[a.slots.fixedTip()]);T.push(oe)}const W={ref:I,class:V.value,style:k.value};return l.h("div",W,T)},X=()=>{const T=le.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},H=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},J=()=>{if(!Z())return null;const T=[],W=X();W&&T.push(W);const ne=H();ne&&T.push(ne);const oe={class:O.value,style:x.value};return l.h("div",oe,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],W=[],ne=z();ne&&W.push(ne);const oe=R();oe&&W.push(oe);const de={class:q.value},se=l.h("div",de,W);T.push(se);const Q=J();Q&&T.push(Q);const re=te();re&&T.push(re);const ae={class:S.value,style:g.value,prop:r.prop};return l.h("div",ae,T)}}}}const{componentName:ki,create:Ii,scope:Oi}=ie("item"),Se=Ii(Ni(ki,Oi,De,!1));function Vi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Ge(),a=Zt();Jt(!1);const s=l.computed(()=>a&&r?Qt(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),d=l.computed(()=>{const f={},c=a&&r?en(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const S=nn(c,s.value,o.span,o.offset);Object.assign(f,S)}else if(s.value.type==="flow"){const S=tn(c,s.value,o.span,o.offset,o.width);Object.assign(f,S)}else return o.width&&(f.width=ke(o.width)),f;else o.width&&(f.width=ke(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Fi,create:Di,scope:Th}=ie("slot-item"),zn=Di(Vi(Fi));function Ri(e,t){return{props:{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"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),s=Ge(),i=Zt();Jt(!1);const u=l.computed(()=>{const d={};if(i&&s){const f=Qt(s,!1),c=en(s,!1);if(f.value&&c)if(f.value.type==="grid"){const S=nn(c,f.value,o.span,o.offset);Object.assign(d,S)}else if(f.value.type==="flow"){const S=tn(c,f.value,o.span,o.offset,o.width);Object.assign(d,S)}else o.width&&(d.width=ke(o.width))}else o.width&&(d.width=ke(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let S=0;S<c.length;S++){if(S>0){const N=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[S])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Ai,create:Li,scope:$h}=ie("row-item"),Hn=Li(Ri(Ai)),He=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Do={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}};function Mi(e,t,o){return{props:{...we,...Ie,...Do},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__disabled`]:a.value,[`${S}__readonly`]:s.value})),g=_=>{c.value=_,i("update:modelValue",_),i("input",_)},h=_=>{i("change",_)};let p=ge(n,"hintText"),$=l.ref(!1);const w=_=>{let F=_.target.value;f.value=!0,me(p.value)||($.value=!0),i("focus",F,_)},C=_=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let F=_.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),i("blur",F,_)},q=()=>{i("clear","")},B=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&B.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{B.value=!0},150))},M=()=>{A&&(clearTimeout(A),B.value=!1,A=null)},V=l.computed(()=>B.value||$.value),k=l.computed(()=>B.value?c.value:p.value),b=l.computed(()=>wt(n.unit)>0),P=l.ref();return $e({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const D={...He(r.attrs),ref:P,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:g,onFocus:w,onBlur:C,onMouseover:L,onMouseleave:M},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,D,F);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.default&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,Do),hintText:k.value,hintVisible:V.value};return n.prop&&(ee.prop=`${n.prop}_item`),l.h(o,ee,U)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("input-item"),Kn=_i(Mi(Bi,qi,Se));function Qe(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 Ro(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Pi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ji=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function zi(){const e=l.getCurrentInstance();return new ji(e.proxy)}function Ao(e,t,o){const n=Qe(e,t),r=Qe(e,o);if(n!==r)return!1;const a=kt(e,t),s=kt(e,o);return a===s}function Lo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){const i=Ro(e,s);if(Array.isArray(i)&&i.length>0){const u=Lo(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Qe(e,s)===a;else if(o==="item")u=Ao(e,s,a);else{let d=kt(e,s);d==null&&(d=Qe(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function Hi(e){return{text:e,value:e}}const Mo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},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}};function Ki(e,t,o){return{props:{...we,...Ie,...Mo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(X=>Qe(n,X)).join(" "):""),N=(R,X,H,J=!0)=>{const te=Lo(n,R,X,H);if(te===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],J&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let T=!0;if(te.length!==c.value.length)T=!1;else for(let W=0;W<te.length;W++){const ne=te[W],oe=c.value[W];if(!Ao(n,ne,oe)){T=!1;break}}if(!T){c.value=te;let W=[],ne=[],oe=[];te.forEach(re=>{const ae=kt(n,re),ce=Qe(n,re);W.push(ae),oe.push(ce),n.valueType==="text"?ne.push(ce):n.valueType==="item"?ne.push(re):ne.push(ae)});let de,se,Q;ue(n.multiple)?(f.value=W,de=l.toRaw(ne),se=oe,Q=l.toRaw(te)):(f.value=W[0]??"",de=l.toRaw(ne[0]??""),se=oe[0]??"",Q=l.toRaw(te[0])),J&&(i("update:modelValue",de),i("change",de,Q)),i("update:text",se)}},g=l.ref(null),h=l.ref(null),p=l.computed(()=>h.value??g.value??[]),$=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,R=>ue(R)),w=zi(),C=async(R,X)=>{if(R){const H=await w.load("select",R,X);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(W=>Hi(W));g.value=T}else g.value=H;else g.value=null}};l.watch([()=>n.source,()=>n.params],([R,X])=>{h.value=null,C(R,X)},{immediate:!$.value});let q=!1;const B=()=>{q||(q=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([R,X])=>{if(V()&&ue(n.multiple)){Ye(X,f.value)||(f.value=X);return}N(X,n.valueType,p.value,!1),i("setValue",X)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async R=>{if(R==null){h.value=null;return}L.value=!0;try{const X=await n.remoteMethod(R);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async R=>{if(R==null){h.value=null;return}L.value=!0;try{const X=await n.filterMethod(R,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});const V=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),b=e,P=l.computed(()=>({[b]:!0})),_=R=>{n.allowCreate||V()&&ue(n.multiple)?(i("update:modelValue",R),i("change",R),i("update:text",R),f.value=R):N(R,"value",p.value,!0)};let D=ge(n,"hintText"),F=l.ref(!1);const K=R=>{let H=R.target.value;k.value=!0,me(D.value)||(F.value=!0),i("focus",H,R)},G=R=>{setTimeout(()=>{F.value&&(F.value=!1),k.value=!1},0);let H=R.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),E.value||i("blur",H,R)},U=()=>{i("clear","")},Z=l.ref(!1);let ee=null;const le=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=l.computed(()=>Z.value||F.value),I=l.computed(()=>Z.value?S.value:D.value),E=l.ref(!1),v=R=>{E.value=R,i("visible-change",R),R||i("selected")},Y=R=>{i("remove-tag",R)},j=(R,X)=>{const H=[];return R.forEach((J,te)=>{const T=Ro(n,J);if(Array.isArray(T)&&T.length>0){const W=j(T,X),ne=Qe(n,J),de={key:`${ne}_${te}`,label:ne};H.push(l.h(y.ElOptionGroup,de,{default:()=>W}))}else{const W=kt(n,J),ne=Qe(n,J),oe=Pi(n,J),se={key:`${W}_${te}`,label:ne,disabled:oe,value:W};if(typeof X=="function")H.push(l.h(y.ElOption,se,{default:()=>X(J)}));else if(n.optionType==="item"){const Q={class:{"fox-select-item__option-left":!0}},re=l.h("span",Q,[W]),ae={class:{"fox-select-item__option-right":!0}},ce=l.h("span",ae,[ne]),xe=l.h("div",{class:{"fox-select-item__option":!0}},[re,ce]);H.push(l.h(y.ElOption,se,{default:()=>xe}))}else n.optionType==="value"?H.push(l.h(y.ElOption,se,{default:()=>[W]})):H.push(l.h(y.ElOption,se))}}),H},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const X={...He(r.attrs),ref:z,class:P.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:U,onChange:_,onFocus:K,onBlur:G,onVisibleChange:v,onRemoveTag:Y};typeof A=="function"&&(X["remote-method"]=A,X.loading=L.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=L.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>j(p.value,r.slots.option);const J=[],te=l.h(y.ElSelect,X,H);J.push(te);const T={default:()=>J};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const ne={...Ne(n,Mo),hintText:I.value,hintVisible:x.value,onMouseover:le,onMouseleave:O};return n.prop&&(ne.prop=`${n.prop}_item`),$.value&&(ne["appear-listen"]=!0,ne.onAppear=B),l.h(o,ne,T)}}}}const{componentName:Wi,create:Yi,scope:Gi}=ie("select-item"),Wn=Yi(Ki(Wi,Gi,Se));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",d="day",f="week",c="month",S="quarter",N="year",g="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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,w={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(D){var F=["th","st","nd","rd"],K=D%100;return"["+D+(F[(K-20)%10]||F[K]||F[0])+"]"}},C=function(D,F,K){var G=String(D);return!G||G.length>=F?D:""+Array(F+1-G.length).join(K)+D},q={s:C,z:function(D){var F=-D.utcOffset(),K=Math.abs(F),G=Math.floor(K/60),U=K%60;return(F<=0?"+":"-")+C(G,2,"0")+":"+C(U,2,"0")},m:function D(F,K){if(F.date()<K.date())return-D(K,F);var G=12*(K.year()-F.year())+(K.month()-F.month()),U=F.clone().add(G,c),Z=K-U<0,ee=F.clone().add(G+(Z?-1:1),c);return+(-(G+(K-U)/(Z?U-ee:ee-U))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:c,y:N,w:f,d,D:g,h:u,m:i,s,ms:a,Q:S}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},B="en",A={};A[B]=w;var L="$isDayjsObject",M=function(D){return D instanceof P||!(!D||!D[L])},V=function D(F,K,G){var U;if(!F)return B;if(typeof F=="string"){var Z=F.toLowerCase();A[Z]&&(U=Z),K&&(A[Z]=K,U=Z);var ee=F.split("-");if(!U&&ee.length>1)return D(ee[0])}else{var le=F.name;A[le]=F,U=le}return!G&&U&&(B=U),U||!G&&B},k=function(D,F){if(M(D))return D.clone();var K=typeof F=="object"?F:{};return K.date=D,K.args=arguments,new P(K)},b=q;b.l=V,b.i=M,b.w=function(D,F){return k(D,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var P=function(){function D(K){this.$L=V(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[L]=!0}var F=D.prototype;return F.parse=function(K){this.$d=function(G){var U=G.date,Z=G.utc;if(U===null)return new Date(NaN);if(b.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ee=U.match(p);if(ee){var le=ee[2]-1||0,O=(ee[7]||"0").substring(0,3);return Z?new Date(Date.UTC(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)):new Date(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)}}return new Date(U)}(K),this.init()},F.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},F.$utils=function(){return b},F.isValid=function(){return this.$d.toString()!==h},F.isSame=function(K,G){var U=k(K);return this.startOf(G)<=U&&U<=this.endOf(G)},F.isAfter=function(K,G){return k(K)<this.startOf(G)},F.isBefore=function(K,G){return this.endOf(G)<k(K)},F.$g=function(K,G,U){return b.u(K)?this[G]:this.set(U,K)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(K,G){var U=this,Z=!!b.u(G)||G,ee=b.p(K),le=function(z,R){var X=b.w(U.$u?Date.UTC(U.$y,R,z):new Date(U.$y,R,z),U);return Z?X:X.endOf(d)},O=function(z,R){return b.w(U.toDate()[z].apply(U.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(R)),U)},x=this.$W,I=this.$M,E=this.$D,v="set"+(this.$u?"UTC":"");switch(ee){case N:return Z?le(1,0):le(31,11);case c:return Z?le(1,I):le(0,I+1);case f:var Y=this.$locale().weekStart||0,j=(x<Y?x+7:x)-Y;return le(Z?E-j:E+(6-j),I);case d:case g:return O(v+"Hours",0);case u:return O(v+"Minutes",1);case i:return O(v+"Seconds",2);case s:return O(v+"Milliseconds",3);default:return this.clone()}},F.endOf=function(K){return this.startOf(K,!1)},F.$set=function(K,G){var U,Z=b.p(K),ee="set"+(this.$u?"UTC":""),le=(U={},U[d]=ee+"Date",U[g]=ee+"Date",U[c]=ee+"Month",U[N]=ee+"FullYear",U[u]=ee+"Hours",U[i]=ee+"Minutes",U[s]=ee+"Seconds",U[a]=ee+"Milliseconds",U)[Z],O=Z===d?this.$D+(G-this.$W):G;if(Z===c||Z===N){var x=this.clone().set(g,1);x.$d[le](O),x.init(),this.$d=x.set(g,Math.min(this.$D,x.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},F.set=function(K,G){return this.clone().$set(K,G)},F.get=function(K){return this[b.p(K)]()},F.add=function(K,G){var U,Z=this;K=Number(K);var ee=b.p(G),le=function(I){var E=k(Z);return b.w(E.date(E.date()+Math.round(I*K)),Z)};if(ee===c)return this.set(c,this.$M+K);if(ee===N)return this.set(N,this.$y+K);if(ee===d)return le(1);if(ee===f)return le(7);var O=(U={},U[i]=n,U[u]=r,U[s]=o,U)[ee]||1,x=this.$d.getTime()+K*O;return b.w(x,this)},F.subtract=function(K,G){return this.add(-1*K,G)},F.format=function(K){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var Z=K||"YYYY-MM-DDTHH:mm:ssZ",ee=b.z(this),le=this.$H,O=this.$m,x=this.$M,I=U.weekdays,E=U.months,v=U.meridiem,Y=function(R,X,H,J){return R&&(R[X]||R(G,Z))||H[X].slice(0,J)},j=function(R){return b.s(le%12||12,R,"0")},z=v||function(R,X,H){var J=R<12?"AM":"PM";return H?J.toLowerCase():J};return Z.replace($,function(R,X){return X||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return b.s(G.$y,4,"0");case"M":return x+1;case"MM":return b.s(x+1,2,"0");case"MMM":return Y(U.monthsShort,x,E,3);case"MMMM":return Y(E,x);case"D":return G.$D;case"DD":return b.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return Y(U.weekdaysMin,G.$W,I,2);case"ddd":return Y(U.weekdaysShort,G.$W,I,3);case"dddd":return I[G.$W];case"H":return String(le);case"HH":return b.s(le,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return z(le,O,!0);case"A":return z(le,O,!1);case"m":return String(O);case"mm":return b.s(O,2,"0");case"s":return String(G.$s);case"ss":return b.s(G.$s,2,"0");case"SSS":return b.s(G.$ms,3,"0");case"Z":return ee}return null}(R)||ee.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(K,G,U){var Z,ee=this,le=b.p(G),O=k(K),x=(O.utcOffset()-this.utcOffset())*n,I=this-O,E=function(){return b.m(ee,O)};switch(le){case N:Z=E()/12;break;case c:Z=E();break;case S:Z=E()/3;break;case f:Z=(I-x)/6048e5;break;case d:Z=(I-x)/864e5;break;case u:Z=I/r;break;case i:Z=I/n;break;case s:Z=I/o;break;default:Z=I}return U?Z:b.a(Z)},F.daysInMonth=function(){return this.endOf(c).$D},F.$locale=function(){return A[this.$L]},F.locale=function(K,G){if(!K)return this.$L;var U=this.clone(),Z=V(K,G,!0);return Z&&(U.$L=Z),U},F.clone=function(){return b.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},D}(),_=P.prototype;return k.prototype=_,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",N],["$D",g]].forEach(function(D){_[D[1]]=function(F){return this.$g(F,D[0],D[1])}}),k.extend=function(D,F){return D.$i||(D(F,P,k),D.$i=!0),k},k.locale=V,k.isDayjs=M,k.unix=function(D){return k(1e3*D)},k.en=A[B],k.Ls=A,k.p={},k})})(Bo);var Ui=Bo.exports;const Ke=Xe(Ui);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(p){this[h]=+p}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(p){if(!p||p==="Z")return 0;var $=p.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var p=i[h];return p&&(p.indexOf?p:p.s.concat(p.f))},S=function(h,p){var $,w=i.meridiem;if(w){for(var C=1;C<=24;C+=1)if(h.indexOf(w(C,0,p))>-1){$=C>12;break}}else $=h===(p?"pm":"PM");return $},N={A:[s,function(h){this.afternoon=S(h,!1)}],a:[s,function(h){this.afternoon=S(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[s,function(h){var p=i.ordinal,$=h.match(/\d+/);if(this.day=$[0],p)for(var w=1;w<=31;w+=1)p(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var p=c("months"),$=(c("monthsShort")||p.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[s,function(h){var p=c("months").indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var p,$;p=h,$=i&&i.formats;for(var w=(h=p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,k,b){var P=b&&b.toUpperCase();return k||$[b]||o[b]||$[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,D,F){return D||F.slice(1)})})).match(n),C=w.length,q=0;q<C;q+=1){var B=w[q],A=N[B],L=A&&A[0],M=A&&A[1];w[q]=M?{regex:L,parser:M}:B.replace(/^\[|\]$/g,"")}return function(V){for(var k={},b=0,P=0;b<C;b+=1){var _=w[b];if(typeof _=="string")P+=_.length;else{var D=_.regex,F=_.parser,K=V.slice(P),G=D.exec(K)[0];F.call(k,G),V=V.replace(G,"")}}return function(U){var Z=U.afternoon;if(Z!==void 0){var ee=U.hours;Z?ee<12&&(U.hours+=12):ee===12&&(U.hours=0),delete U.afternoon}}(k),k}}return function(h,p,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=p.prototype,C=w.parse;w.parse=function(q){var B=q.date,A=q.utc,L=q.args;this.$u=A;var M=L[1];if(typeof M=="string"){var V=L[2]===!0,k=L[3]===!0,b=V||k,P=L[2];k&&(P=L[2]),i=this.$locale(),!V&&P&&(i=$.Ls[P]),this.$d=function(K,G,U){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*K);var Z=g(G)(K),ee=Z.year,le=Z.month,O=Z.day,x=Z.hours,I=Z.minutes,E=Z.seconds,v=Z.milliseconds,Y=Z.zone,j=new Date,z=O||(ee||le?1:j.getDate()),R=ee||j.getFullYear(),X=0;ee&&!le||(X=le>0?le-1:j.getMonth());var H=x||0,J=I||0,te=E||0,T=v||0;return Y?new Date(Date.UTC(R,X,z,H,J,te,T+60*Y.offset*1e3)):U?new Date(Date.UTC(R,X,z,H,J,te,T)):new Date(R,X,z,H,J,te,T)}catch{return new Date("")}}(B,M,A),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),b&&B!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var _=M.length,D=1;D<=_;D+=1){L[1]=M[D-1];var F=$.apply(this,L);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}D===_&&(this.$d=new Date(""))}else C.call(this,q)}}})})(_o);var Xi=_o.exports;const Zi=Xe(Xi);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(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(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return c}});return a.bind(this)(f)}}})})(qo);var Ji=qo.exports;const Qi=Xe(Ji);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){var a=n.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,S,N,g,h){var p=c.name?c:c.$locale(),$=s(p[S]),w=s(p[N]),C=$||w.map(function(B){return B.slice(0,g)});if(!h)return C;var q=p.weekStart;return C.map(function(B,A){return C[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,S){return c.formats[S]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,p){return h||p.slice(1)})}(c.formats[S.toUpperCase()])},f=function(){var c=this;return{months:function(S){return S?S.format("MMMM"):i(c,"months")},monthsShort:function(S){return S?S.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(c,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return d(c.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(S){return d(c,S)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(c){return i(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}})})(Po);var es=Po.exports;const ts=Xe(es);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),c=s(this).endOf(o);if(f.isBefore(c))return 1}var S=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(S,o,!0);return N<0?s(this).startOf("week").week():Math.ceil(N)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(jo);var ns=jo.exports;const ls=Xe(ns);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(zo);var os=zo.exports;const rs=Xe(os);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(Ho);var as=Ho.exports;const is=Xe(as);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ko);var ss=Ko.exports;const us=Xe(ss);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Wo);var cs=Wo.exports;const fs=Xe(cs);Ke.extend(ts),Ke.extend(Qi),Ke.extend(Zi),Ke.extend(ls),Ke.extend(rs),Ke.extend(is),Ke.extend(us),Ke.extend(fs);const Be={format(e,t){return Ke(e).format(t)},parser(e,t){return Ke(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},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){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,d=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,d=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Be.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Be.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Yo={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"}},Go={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}};function ds(e,t,o){return{props:{...we,...Ie,...Yo,...Go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=l.computed(()=>F.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=l.computed(()=>F.value?"longTermKey":"normalKey"),g=z=>{if(F.value&&n.type==="daterange"){const R=[...c.value];R[0]=z,c.value=R}else c.value=z;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>F.value&&n.type==="daterange"?"date":n.type),p=e,$=l.computed(()=>({[`${p}`]:!0,"is-long":F.value,"is-readonly":s.value,"is-disabled":a.value}));let w=ge(n,"hintText"),C=l.ref(!1);const q=z=>{let X=z.target.value;f.value=!0,me(w.value)||(C.value=!0),i("focus",X,z)},B=z=>{setTimeout(()=>{C.value&&(C.value=!1),f.value=!1},0);let X=z.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),i("blur",X,z)},A=()=>{i("clear","")},L=z=>{i("calendar-change",z)},M=(z,R,X)=>{i("panel-change",z,R,X)},V=z=>{i("visible-change",z)},k=Oe(l.computed(()=>n.longTermText),"longTermText",Me.Near),b=Oe(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),P=Oe(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),_=Oe(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let D=null;const F=l.ref(ue(n.longTerm)),K=z=>{if(F.value=z,i("update:longTerm",z),z){if(D=c.value,n.type==="daterange"){const R=[];Array.isArray(P.value)?(R[0]=c.value?c.value[0]??P.value[0]:null,R[1]=P.value[1]??P.value[0]):(R[0]=c.value?c.value[0]??P.value:null,R[1]=F.value),R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else Array.isArray(P.value)?c.value=P.value[1]??P.value[0]:c.value=P.value,c.value||(c.value=n.valueFormat?Be.format(new Date,n.valueFormat):new Date);i("update:modelValue",c.value)}else{if(n.type==="daterange"){const R=[];R[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(D)?R[1]=D[1]:R[1]=D,R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else c.value=D;i("update:modelValue",c.value),setTimeout(()=>{Y()},100)}},G=ue(n.isLongTerm);if(G){const z=()=>{if(F.value===!0){if(D=c.value,n.type==="daterange"){const R=[c.value[0]];Array.isArray(P.value)?R[1]=P.value[1]??P.value[0]:R[1]=F.value,R[0]||(R[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),R[1]||(R[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=R}else c.value=P.value;i("update:modelValue",c.value)}else Ye(P.value,c.value)&&(F.value=!0)};z(),l.watch([()=>n.longTerm],([R])=>{F.value!==R&&z()}),l.watch([()=>c.value],([R])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(R))try{let H=R[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=Be.format(H,n.valueFormat));let J=Array.isArray(P.value)?P.value[1]:P.value;(H===J||Array.isArray(_.value)&&_.value.findIndex(T=>H==T)!==-1)&&(X=!0)}catch(H){console.error(H)}F.value!==X&&(F.value=X)},{immediate:!0})}const U=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=l.ref(),ee=l.ref(),le=/^\d+$/,O=(z,R)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,R):le.test(z)&&z.length===n.flashFillThreshold,x=(z,R)=>{let X;if(typeof n.flashFillFormat=="function")X=n.flashFillFormat(z,R);else{const J=n.flashFillFormat??"YYYYMMDD";X=Be.parser(z,J)}const H=n.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},I=z=>z?z.endsWith("range"):!1,E=z=>{if(!z.target)return;const R=z.target.value??"";if(O(R,n.type)){const X=x(R,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[0]=X,g(H)}else g(X)}},v=z=>{if(!z.target)return;const R=z.target.value??"";if(O(R,n.type)){const X=x(R,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[1]=X,g(H)}else g(X)}},Y=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",E),z[1]&&z[1].addEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",E)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",E),z[1]&&z[1].removeEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",E)}};return l.onMounted(Y),l.onBeforeUnmount(j),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const R={...r.attrs,key:N.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:S.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:q,onBlur:B,onCalendarChange:L,onPanelChange:M,onVisibleChange:V},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],J=l.h(y.ElDatePicker,R,X);H.push(J);const te={default:()=>H};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),G){if(F.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),se={class:U.value},Q=l.h("div",se,{default:()=>[oe,de]});H.push(Q)}if(!s.value&&!a.value){const oe={label:b.value||k.value,disabled:s.value||a.value,modelValue:F.value,"onUpdate:modelValue":K},de=l.h(y.ElCheckbox,oe),se=l.h("div",{class:{[`${p}__append`]:!0}},[de]);te.append=()=>se}}const W={...Ne(n,Yo,Go),ref:Z,class:{[`${p}__wrapper`]:!0,"has-append":G},hintText:w.value,hintVisible:C.value};return n.prop&&(W.prop=`${n.prop}_item`),l.h(o,W,te)}}}}const{componentName:hs,create:gs,scope:ms}=ie("date-item"),Yn=gs(ds(hs,ms,Se)),Uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,t,o){return{props:{...we,...Ie,...Uo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=A=>{c.value=A,i("update:modelValue",A),i("change",A)};let h=ge(n,"hintText"),p=l.ref(!1);const $=A=>{let M=A.target.value;f.value=!0,me(h.value)||(p.value=!0),i("focus",M,A)},w=A=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),i("blur",M,A)},C=()=>{i("clear","")},q=A=>{i("visible-change",A)},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w,onVisibleChange:q},M={},V=[],k=l.h(y.ElTimePicker,L,M);V.push(k);const b={default:()=>V};r.slots.default&&(b.label=r.slots.default),r.slots.fixedTip&&(b.fixedTip=r.slots.fixedTip);const _={...Ne(n,Uo),hintText:h.value,hintVisible:p.value};return n.prop&&(_.prop=`${n.prop}_item`),l.h(o,_,b)}}}}const{componentName:ys,create:bs,scope:vs}=ie("time-item"),Gn=bs(ps(ys,vs,Se)),Xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,t,o){return{props:{...we,...Ie,...Xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=B=>{c.value=B,i("update:modelValue",B),i("change",B)};let h=ge(n,"hintText"),p=l.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,me(h.value)||(p.value=!0),i("focus",L,B)},w=B=>{setTimeout(()=>{p.value&&(p.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,B)},C=()=>{i("clear","")},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w},L={},M=[],V=l.h(y.ElTimeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const P={...Ne(n,Xo),hintText:h.value,hintVisible:p.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,k)}}}}const{componentName:Ss,create:xs,scope:Ts}=ie("time-select-item"),Un=xs(ws(Ss,Ts,Se));function Zo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Jo(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wl(`${e}`,`${t}`);return Zo(n)}else{let n=vn(`${e}`,Yl(`${t}`),20);return Zo(n)}}function $s(e,t=-1,o=!1,n=3,r=","){return Lt(e,t,o,n,r)}function Qo(e,t,o,n,r=!0){if(e==="")return"";if(e=Gl(e),t=ve(t),t==1)return e;if(n)e=Jo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(ve(o)+2,"0"):e=vn(e,1,ve(o)));else{let a=-1*t;e=Jo(e,a)}return e}function er(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=wn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=wn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const tr={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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Cs(e,t,o){return{props:{...we,...Ie,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=ge(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([_,D,F])=>{if(me(_)){f.value="";return}const K=Qo(_,D,F,!1);f.value!==K&&(f.value=K)},{immediate:!0});const c=l.computed(()=>{let _="";return u.value&&(_=f.value),_}),{t:S}=Le.useFoxI18n(t),N=l.computed(()=>{let _=n.placeholder??"";return!u.value&&!me(f.value)?_=$s(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):_=S(["placeholder",_]),_}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),p=Oe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:p.value??"right"});const $=l.ref(""),w=l.computed(()=>{let _=$.value;return me(_)&&(_=n.errorTip??""),_}),C=l.ref(""),q=l.ref(!1),B=(_,D)=>{if(_=`${_}`,me(_)){f.value="",d.value="",D.forEach(F=>{i(F,"")}),ue(n.showTip)&&q.value&&(q.value=!1);return}if(_.length>=2){let F=_;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){l.triggerRef(f);return}}if(_!="-"){if(!lo(_)){l.triggerRef(f);return}if(n.integerLength!=-1&&oo(_)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ro(_)>Number(n.decimalLength)){l.triggerRef(f);return}let F=er(_,n);if(F.maxValid===!1){$.value=F.message,l.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){l.triggerRef(f);return}C.value=_,ue(n.showTip)&&(q.value=_.length>0),f.value=_,d.value=Qo(_,n.rates,n.precision,!0),D.forEach(F=>{i(F,d.value)})},A=_=>{B(_,["update:modelValue","input"])},L=_=>{B(_,["update:modelValue","change"])},M=_=>{if(u.value=!0,ue(n.showTip)){let D=f.value;me(D)&&(D=n.hintText),me(D)||(C.value=D,q.value=!0)}$.value="",i("focus",d.value,_)},V=_=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&q.value===!0&&(q.value=!1)},0),!me(f.value)){let D=er(f.value,n);if(D.minValid===!1||D.maxValid===!1){$.value=D.message;return}}i("update:modelValue",d.value,_),i("blur",d.value,_)},k=()=>{i("clear","")},b=l.computed(()=>wt(n.unit)>0),P=l.ref();return $e({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const D={...He(r.attrs),ref:P,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:A,onChange:L,onFocus:M,onBlur:V},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,D,F);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,tr),errorTip:w.value,hintText:C.value,hintVisible:q.value,hintType:"number"};return n.prop&&(ee.prop=`${n.prop}_item`),l.h(o,ee,U)}}}}const{componentName:Es,create:Ns,scope:ks}=ie("money-item"),Xn=Ns(Cs(Es,ks,Se)),nr={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}};function Is(e,t,o){return{props:{...we,...Ie,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__append`]:A.value})),g=l.computed(()=>({[`${S}__unit`]:!0})),h=M=>{c.value=M,i("update:modelValue",M),i("input",M)},p=M=>{i("change",M)};let $=ge(n,"hintText"),w=l.ref(!1);const C=M=>{let k=M.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",k,M)},q=M=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=M.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,M)},B=()=>{i("clear","")},A=l.computed(()=>wt(n.unit)>0),L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const V={...He(r.attrs),ref:L,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:p,onInput:h,onFocus:C,onBlur:q},k={},b=[],P=l.h(y.ElInputNumber,V,k);b.push(P);const _={default:()=>b};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ne(n,nr),hintText:$.value,hintVisible:w.value};if(n.prop&&(F.prop=`${n.prop}_item`),r.slots.append)_.append=r.slots.append;else if(A.value){const G={class:g.value},U=l.h("div",G,[n.unit]);_.append=()=>U}return l.h(o,F,_)}}}}const{componentName:Os,create:Vs,scope:Fs}=ie("input-number-item"),Zn=Vs(Is(Os,Fs,Se));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ds(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=Pe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function As(){const e=l.getCurrentInstance();return new Rs(e.proxy)}function Jn(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=rt(e,t),s=rt(e,o);return a===s}function lr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let s=0;Array.isArray(a)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=lr(e,i,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ze(e,d)===i;else if(o==="item")u=Jn(e,d,i);else{let f=rt(e,d);f==null&&(f=Ze(e,d)),u=f===i}if(u){r.push(d),a=Ds(e,d);break}}if(!u)break}}return r}function Ls(e){return{text:e,value:e}}const or={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},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}};function Ms(e,t,o){return{props:{...we,...Ie,...or},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(X=>Ze(n,X)).join(" "):Ze(n,z)).join(" "):""),N=(j,z,R,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===j)return;f.value=j;const T=l.toRaw(j);if(X){const W=Y?.value.getCheckedNodes();if(W)if(n.multiple){const ne=[];W.forEach(oe=>{const se=(oe.pathNodes??[]).map(Q=>Q.data);ne.push(se)}),i("update:pathNodes",ne)}else{const oe=(W[0]?.pathNodes??[]).map(de=>de.data);i("update:pathNodes",oe)}i("update:modelValue",T),i("change",T)}return}const H=lr(n,j,z,R);if(H===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,X&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const J=H[H.length-1];if(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const T=[];H.forEach(W=>{const ne=`${Ze(n,W)}`;T.push(ne)}),T.length>0&&(M.value=T.join(n.separator))}else M.value=null;let te=!0;if(H.length!==c.value.length)te=!1;else for(let T=0;T<H.length;T++){const W=H[T],ne=c.value[T];if(Array.isArray(W)){if(!Array.isArray(ne)||W.length!==ne.length)te=!1;else for(let oe=0;oe<W.length;oe++)if(!Jn(n,W[oe],ne[oe])){te=!1;break}}else Jn(n,W,ne)||(te=!1);if(!te)break}if(!te){c.value=H;let T=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],se=[];for(let Q of oe)de.push(rt(n,Q)),n.valueType==="text"?se.push(Ze(n,Q)):n.valueType==="item"?se.push(Q):se.push(rt(n,Q));T.push(de),W.push(se)}else T.push(rt(n,oe)),n.valueType==="text"?W.push(Ze(n,oe)):n.valueType==="item"?W.push(oe):W.push(rt(n,oe))}),f.value=T;const ne=l.toRaw(W);X&&(i("update:pathNodes",H),i("update:modelValue",ne),i("change",ne))}},g=l.ref([]),h=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,j=>ue(j)),p=As(),$=async(j,z)=>{if(j){const R=await p.load("cascader",j,z);if(R.length>0)if(typeof R[0]=="string"){let J=R.map(te=>Ls(te));g.value=J}else g.value=R}};l.watch([()=>n.source,()=>n.params],async([j,z])=>{$(j,z)},{immediate:!(h.value||n.lazy)});let w=!1;const C=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([j,z])=>{N(z,n.valueType,j,!1),i("setValue",z)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){B.value=!0;try{const z=await n.remoteMethod(j);g.value=z}catch(z){console.error(z)}B.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),V=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),k=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(z,R)=>{const X=await p.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const H=z.pathLabels??[];let J=[];H.forEach(te=>{te&&J.push(te)}),J.length>0&&(M.value=J.join(n.separator))}else M.value=null;R(X)}),j}),b=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),f.value=j):N(j,"value",g.value,!0)};let P=ge(n,"hintText"),_=l.ref(!1);const D=j=>{let R=j.target.value;A.value=!0,me(P.value)||(_.value=!0),i("focus",R,j)},F=j=>{setTimeout(()=>{_.value&&(_.value=!1),A.value=!1},0);let R=j.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),x.value||i("blur",R,j)},K=()=>{i("clear","")},G=l.ref(!1);let U=null;const Z=()=>{n.showTooltip&&G.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{G.value=!0},150))},ee=()=>{U&&(clearTimeout(U),G.value=!1,U=null)},le=l.computed(()=>G.value||_.value),O=l.computed(()=>G.value?S.value:P.value),x=l.ref(!1),I=j=>{x.value=j,i("visible-change",j),j||i("selected")},E=j=>{i("remove-tag",j)},v=j=>{i("expand-change",j)},Y=l.ref();return $e({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},getCheckedNodes:()=>Y?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:Y,class:V.value,props:k.value,clearable:n.clearable,placeholder:M.value||d.placeholder.value,disabled:a.value||s.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:K,onChange:b,onFocus:D,onBlur:F,onVisibleChange:I,onRemoveTag:E,expandChange:v};typeof q=="function"&&(z["remote-method"]=q,z.loading=B.value);const R={};r.slots.option&&(R.default=r.slots.option),r.slots.empty&&(R.empty=r.slots.empty);const X=[],H=l.h(y.ElCascader,z,R);X.push(H);const J={default:()=>X};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const T={...Ne(n,or),hintText:O.value,hintVisible:le.value,onMouseover:Z,onMouseleave:ee};return n.prop&&(T.prop=`${n.prop}_item`),h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,J)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),Qn=_s(Ms(Bs,qs,Se)),rr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...we,...Ie,...rr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=L=>{c.value=L,i("update:modelValue",L),i("input",L)},h=L=>{i("change",L)},p=L=>{i("select",L)};let $=ge(n,"hintText"),w=l.ref(!1);const C=L=>{let V=L.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",V,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let V=L.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,L)},B=()=>{i("clear","")},A=l.ref();return $e({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:C,onBlur:q,onSelect:p},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix&&(V.suffix=r.slots.suffix),r.slots.option&&(V.default=r.slots.option);const k=[],b=l.h(y.ElAutocomplete,M,V);k.push(b);const P={default:()=>k};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,rr),hintText:$.value,hintVisible:w.value};return n.prop&&(D.prop=`${n.prop}_item`),l.h(o,D,P)}}}}const{componentName:js,create:zs,scope:Hs}=ie("autocomplete-item"),el=zs(Ps(js,Hs,Se));function Ks(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(S=>S[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Ws=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}const ar={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},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,Boolean,Number,Array],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},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Gs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){const a=Ys(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{s.value=await a.load(o.sourceType,d,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Ks(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,d,{default:()=>i.value}):l.h(u,d,i.value)}}}}const{componentName:Ch,create:Us,scope:Eh}=ie("mapping"),It=Us(Gs());function Xs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Zs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Xs(s.row,s.column.property);return r.default?l.h(It,{...o,modelValue:i},{default:r.default}):l.h(It,{...o,modelValue:i})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Nh,create:Js,scope:kh}=ie("table-mapping-column"),tl=Js(Zs()),Qs=Symbol.for("TableStateKey");function ir(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function eu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Qs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ir(i.row,i.column.property),d=a?ir(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},S=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return l.h("label",N,[S])}};return l.h(y.ElTableColumn,{...n},s)}}}}const{componentName:Ih,create:tu,scope:Oh}=ie("table-radio-column"),nl=tu(eu()),nu={},lu={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"},ou=[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)];function ru(e,t){return l.openBlock(),l.createElementBlock("svg",lu,ou)}const au=_e(nu,[["render",ru]]),{componentName:Fh,create:iu,scope:Dh}=ie("table-setting"),su={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:"不固定"}},uu=iu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:au,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...su},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),s=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),i=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),d=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=v=>v.length>1,S=(v,Y)=>{Array.isArray(v)&&Array.isArray(Y)&&v.forEach(R=>{Y.some(X=>X.prop===R.prop?(R.label=X.label,!0):!1)});const j=[];r.value=v.map((R,X)=>(!(R.label===""||R.type)&&R.visible!==!1&&j.push(R.prop),{...R,sortIndex:X})),i.value.length+a.value.length+s.value.length===j.length?w.value=!0:j.length>0&&(C.value=!0),A.value=j},N=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,Y)=>{if(v.length!==Y.length)return!1;const j=v.map(z=>N(z));for(let z of Y){const R=N(z);if(j.indexOf(R)===-1)return!1}return!0},h=v=>{if(!v){const Y=e.tableRef.getColumnSetting(),j=Y.srcColumnPropertyList;n=j.map((z,R)=>({...z,sortIndex:R})),v=Y.columnPropertyList,v&&v.length>0&&g(j,v)||(v=j)}S(v,n)},p=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),C=l.ref(!1),q=v=>{const Y=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&Y.push(z.prop),z.visible=v}),w.value=!1,C.value=!1,i.value.length+a.value.length+s.value.length===Y.length?w.value=!0:Y.length>0&&(C.value=!0),A.value=Y,p()},B=()=>{h(n),p()},A=l.ref([]),L=v=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const z=v.indexOf(j.prop)!==-1;j.visible=z}),w.value=!1,C.value=!1;const Y=i.value.length+a.value.length+s.value.length;v.length===Y?w.value=!0:v.length>0&&(C.value=!0),p()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const V={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,b=v=>{const Y=v.currentTarget;Y&&Y.dataset&&(V.roleType=Y.dataset.roleType,V.index=Y.dataset.index)},P=v=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null,V.roleType=null},_=v=>{const Y=v.currentTarget;v.relatedTarget;const j=k(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;V.roleType===z&&(v.preventDefault(),V.currentRow&&V.currentRow!==j&&V.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),V.currentRow=j)},D=v=>{v.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},F=v=>{const Y=v.currentTarget,j=k(Y);if(!j)return;const z=j.dataset&&j.dataset.roleType;if(V.roleType!==z)return;v.preventDefault();const R=Number(V.index),X=Number(j.dataset.index);if(R!==X){if(R<X){const H=r.value[R];r.value.splice(R,1),r.value.splice(X,0,H)}else{const H=r.value[R];r.value.splice(R,1),r.value.splice(X+1,0,H)}S(r.value,n),p()}},K=v=>{const Y=r.value[v];Y.fixed="left",p()},G=v=>{const Y=r.value[v];Y.fixed="right",p()},U=v=>{const Y=r.value[v];Y.fixed=void 0,p()},Z=new Map;let ee=null;function le(v){const Y=document.createRange();return Y.setStart(v,0),Y.setEnd(v,v.childNodes.length),Y.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:C,handleCheckAllChange:q,handleReset:B,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:b,onDragEnd:P,onDragOver:_,onDragLeave:D,onDrop:F,toLeftFixed:K,toRightFixed:G,toUnFixed:U,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,Y,j)=>{const z=v.currentTarget;if(z){const R=Math.floor(z.offsetWidth);if(Math.floor(le(z))>R){let H=Z.get(Y);if(H){if(H===ee)return;De.hide(H)}H=De.show(z,j,{type:"text",placement:"top",closeOnClick:!1}),H&&(Z.set(Y,H),ee=H)}}},onMouseLeaveForOverflowText:(v,Y)=>{const j=Z.get(Y);j&&(De.hide(j),j===ee&&(ee=null))},onMouseOverForTip:(v,Y)=>{const j=v.currentTarget;j&&(ee&&De.hide(ee),ee=De.show(j,Y,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(De.hide(ee),ee=null)}}}}),cu={class:"fox-table-setting"},fu={class:"fox-table-setting__header"},du={class:"fox-table-setting__body"},hu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gu={key:0,class:"fox-table-setting__body-title"},mu=["data-index","draggable"],pu=["onMouseover","onMouseleave"],yu={class:"tools-item"},bu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},vu={key:0,class:"fox-table-setting__body-title"},wu=["data-index","draggable"],Su=["onMouseover","onMouseleave"],xu={class:"tools-item"},Tu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},$u={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],Nu={class:"tools-item"};function ku(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),S=l.resolveComponent("fox-checkbox"),N=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",cu,[l.createElementVNode("div",fu,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",du,[l.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",gu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[6]||(t[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[7]||(t[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[8]||(t[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[9]||(t[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,pu)]),_:2},1032,["value"]),l.createElementVNode("div",yu,[l.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[2]||(t[2]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[4]||(t[4]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,mu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",bu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",vu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[15]||(t[15]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[16]||(t[16]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[17]||(t[17]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[18]||(t[18]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Su)]),_:2},1032,["value"]),l.createElementVNode("div",xu,[l.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:p=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=p=>e.onMouseOverForTip(p,e.fixedRightText)),onMouseleave:t[13]||(t[13]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,wu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",$u,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[24]||(t[24]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[25]||(t[25]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[26]||(t[26]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[27]||(t[27]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(S,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,h.prop,h.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",Nu,[l.createVNode(f,{onClick:p=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=p=>e.onMouseOverForTip(p,e.unFixedText)),onMouseleave:t[20]||(t[20]=p=>e.onMouseLeaveForTip(p))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:p=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=p=>e.onMouseOverForTip(p,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Cu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const rn=_e(uu,[["render",ku]]);let Iu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){if(Array.isArray(o)){let d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,s,i]);const u=Pe(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function Ou(){const e=l.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Pe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Pe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function sr(){const e=l.getCurrentInstance();return new Vu(e.proxy)}const Fu=Symbol.for("TableStateKey"),ur={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]},cellClassName:{type:Function},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"}},cr={pageIndex:{type:[Number],required:!1,default:1},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},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},ll={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:"不固定"}},Du={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function ol(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Ru(n,r);if(a!==s)return!1}return!0})}function Au(e,t,o){return{inheritAttrs:!1,props:{...we,...Ie,...ur,...cr,...ll,...Du},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Le.useFoxI18n(t),{emitEvent:s}=Te({componentName:e,validateHandler:{getValue(...Q){return A.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),d=l.computed(()=>({[`${i}__setting`]:!0})),f=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=l.shallowRef({}),N=l.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),g=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),p=ue(n.infiniteLoad);p||(l.watch(()=>n.pageIndex,Q=>{g.value=Q}),l.watch(()=>n.pageSize,Q=>{h.value=Q}),l.watch([g,h],([Q,re],[ae,ce])=>{re!==ce&&(g.value=1,Q=1),k(n.data,Q,re,N.value)}));const $=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);$()&&l.watch([()=>n.data,N],async([Q,re],[ae,ce])=>{$()&&(Q!==ae&&(M=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,ce))&&(p?(g.value=0,q.value=!0,A.value=[],P()):g.value===1?k(Q,g.value,h.value,re):g.value=1))},{deep:!0});const w=Q=>{g.value=Q,s("page-index-change",Q)},C=Q=>{h.value=Q,s("page-size-change",Q)},q=l.ref(!0),B=l.ref(0),A=l.ref(),L=Ou();let M=!0;const V=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),k=async(Q,re,ae,ce,xe)=>{M=!1;try{if(xe===!0){if(!q.value)return!1;const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,A.value,be.page),setTimeout(()=>{s("loaded-data")},250),(A.value?.length??0)>=B.value)||be.page.length<ae?(q.value=!1,!1):!0}else{const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,A.value=be.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),B.value=0,A.value=[]}return!1};let b=!1;const P=async()=>{if(!b){if(b=!0,!q.value){b=!1;return}g.value+=1,await k(n.data,g.value,h.value,N.value,!0),b=!1}},_=(Q={},re=!1)=>new Promise(async ae=>{S.value={...l.toRaw(Q??{})},re||(g.value=n.pageIndex??1),p===!0?(g.value=0,A.value=[],q.value=!0,await P()):await k(n.data,g.value,h.value,N.value),ae()}),D=()=>{B.value=0,A.value=[],p===!0&&(g.value=0,q.value=!0)};let F=!1;const K=()=>{F||(F=!0,_())},G=l.ref(null);if(p===!0){let Q=null;const re=()=>{G.value&&(Q=new IntersectionObserver(ce=>{let xe=!1;for(let be of ce)if(be.intersectionRatio>0){xe=!0;break}xe&&P()}),Q.observe(G.value))},ae=()=>{!Q||!G.value||(Q.unobserve(G.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(ae)}$()&&!V.value&&_();const U=l.ref(null);l.provide(Fu,{currentRow:U});const Z=(Q,re)=>{U.value=Q,s("current-change",Q,re)},ee=(Q,re,ae)=>{s("row-click",Q,re,ae),ue(n.rowClickSelectable)===!0&&se?.value.toggleRowSelection(Q)},le=[],O=(Q,re)=>{if(s("expand-change",Q,re),ue(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=le.length;le.splice(0,ae)}else{le.forEach(ce=>{ce!==Q&&se?.value.toggleRowExpansion(ce,!1)});const ae=le.length;le.splice(0,ae,Q)}},x=r.attrs.id??n.prop??r.attrs.name,I=sr(),E=l.ref([]);let v=[];const Y=()=>({srcColumnPropertyList:v.map(re=>({...re})),columnPropertyList:E.value}),j=Q=>{E.value=[...Q],R()},z=async()=>{const Q=await I.load(x);Q&&(E.value=Q)},R=()=>{I.save(x,E.value)},X=()=>{I.remove(x)};z();const H=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",J=()=>typeof r.slots.default=="function"?r.slots.default():[],te=(Q,re={})=>{for(let ae in re){const ce=re[ae];typeof ce!="function"&&(Q[ae]=ce)}},T=l.computed(()=>{const Q=J(),re=new Map;if(v=[],Q.forEach(ae=>{const xe=ae;if(!xe.props)return;const be=H(xe.props);re.set(be,xe);const it={label:"",prop:""};te(it,xe.props),v.push(it)}),E.value.length===v.length){const ae=[];for(let ce of E.value){const xe=H(ce),be=re.get(xe);if(!be)return Q;if(ce.visible===!1)continue;const it=be;it.props.fixed=ce.fixed,ae.push(it)}return ae}return Q}),W=l.shallowRef(new Map),ne=({column:Q,rowIndex:re})=>{const ae=`${re}_${Q.property}`;return W.value.get(ae)??""},oe=Q=>typeof Q=="function"?re=>{const ae=[];let ce=ne(re);return ce&&ae.push(ce),ce=Q(re),ce&&ae.push(ce),ae.length===0?"":ae.join(" ")}:ne,de=(Q,re,ae)=>{const ce=`${Q}_${re}`;ae?W.value.set(ce,ae):W.value.delete(ce),l.triggerRef(W)},se=l.ref();return $e({clearSelection:()=>se?.value.clearSelection(),getSelectionRows:()=>se?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{se?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowSelection(ce,re)})},toggleAllSelection:()=>{se?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{se?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowExpansion(ce,re)})},setCurrentRow:Q=>{se?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!A.value)return;const re=ol(A.value,Q);re.length!==0&&se?.value.setCurrentRow(re[0])},getCurrentRow:()=>U.value,clearSort:()=>{se?.value.clearSort()},clearFilter:Q=>{se?.value.clearFilter(Q)},doLayout:()=>{se?.value.doLayout()},sort:(Q,re)=>{se?.value.sort(Q,re)},scrollTo:(Q,re)=>{se?.value.scrollTo(Q,re)},setScrollTop:Q=>{se?.value.setScrollTop(Q)},setScrollLeft:Q=>{se?.value.setScrollLeft(Q)},loadData:_,clearData:D,getData(){return A.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:Y,setColumnSetting:j,removeColumnSetting:X,setCellClassName:de}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:A.value,ref:se,class:u.value,"cell-class-name":oe(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>T.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),p===!0){const je=[];if(q.value){const Dt=l.h(Ce.Loading,{class:`${i}__infinite-icon`});je.push(Dt);const _l=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);je.push(_l)}else{const Dt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);je.push(Dt)}const st={ref:G,class:`${i}__infinite`},Bl=l.h("div",st,je);ae.append=()=>Bl}const ce=l.h(y.ElTable,re,ae),xe=[];if(xe.push(ce),!p){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const st={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":C,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(y.ElPagination,st)}if(n.showSetting){const st=[];je&&st.push(je);const Bl=l.h(y.ElIcon,{class:d.value},{default:()=>l.h(Ce.Setting)}),Dt=io(n,ll),_l=l.h(rn,{...Dt,tableRef:{getColumnSetting:Y,setColumnSetting:j,removeColumnSetting:X}},{default:()=>Bl});st.push(_l);const bh=l.h("div",{class:f.value},st);xe.push(bh)}else je&&xe.push(je)}const be={default:()=>xe},yt={...Ne(n,ur,cr,ll)};return n.prop&&(yt.prop=`${n.prop}_item`),yt.contentClass=`${i}__wrap`,yt.errorMarkClass="is-table-error",V.value&&$()&&(yt["appear-listen"]=!0,yt.onAppear=K),l.h(o,yt,be)}}}}const{componentName:Lu,create:Mu,scope:Bu}=ie("table-item"),rl=Mu(Au(Lu,Bu,Se));function ht(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function _u(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let qu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Pu(){const e=l.getCurrentInstance();return new qu(e.proxy)}function fr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ht(e,t),r=ht(e,o);if(n!==r)return!1;const a=Ot(e,t),s=Ot(e,o);return a===s}function ju(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let s=!1;if(o==="text")s=ht(e,a)===t;else if(o==="item")s=fr(e,a,t);else{let i=Ot(e,a);i==null&&(i=ht(e,a)),s=i===t}if(s){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const dr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},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}};function Ku(e,t,o){return{inheritAttrs:!0,props:{...we,...Ie,...dr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),d=l.ref(null),f=(L,M,V,k=!0)=>{const b=ju(n,L,M,V);if(b===null){if(d.value===null)return;d.value=null,u.value=null,k&&(i("update:modelValue",null),i("change",null));return}if(!fr(n,b,d.value)){u.value=L;const _=l.toRaw(b);d.value=_;let D=null;n.valueType==="text"?D=ht(n,_):n.valueType==="item"?D=_:D=Ot(n,_),k&&(i("update:modelValue",D),i("change",D))}},c=l.ref([]),S=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),N=Pu(),g=async(L,M)=>{if(L){const V=await N.load("radio",L,M);if(V.length>0)if(typeof V[0]=="string"){let P=V.map(_=>zu(_));c.value=P}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const P=Ot(n,k),_=ht(n,k);let D=_u(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const F=Hu(n,k,b)??{},K=`${P}_${b}`,G={...F,key:K,value:P,size:n.size,border:ue(n.border)};D&&(G.disabled=D),n.itemType==="button"?V.push(l.h(y.ElRadioButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElRadio,G,{default:()=>M(k)})):V.push(l.h(y.ElRadio,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElRadioGroup,M,k);V.push(b);const P={default:()=>V};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,dr),hintText:q.value,hintVisible:B.value};return n.prop&&(D.prop=`${n.prop}_item`),S.value&&(D["appear-listen"]=!0,D.onAppear=p),l.h(o,D,P)}}}}const{componentName:Wu,create:Yu,scope:Gu}=ie("radio-item"),al=Yu(Ku(Wu,Gu,Se));function gt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function mt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Uu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Xu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Zu(){const e=l.getCurrentInstance();return new Xu(e.proxy)}function hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=gt(e,t),r=gt(e,o);if(n!==r)return!1;const a=mt(e,t),s=mt(e,o);return a===s}function Ju(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){let i=!1;if(o==="text")i=gt(e,s)===a;else if(o==="item")i=hr(e,s,a);else{let u=mt(e,s);u==null&&(u=gt(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function Qu(e){return{text:e,value:e}}function ec(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const gr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},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}};function tc(e,t,o){return{inheritAttrs:!0,props:{...we,...Ie,...gr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),d=l.ref([]),f=(L,M,V,k=!0)=>{const b=Ju(n,L,M,V);if(b===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(b.length!==d.value.length)P=!1;else for(let _=0;_<b.length;_++){const D=b[_],F=d.value[_];if(!hr(n,D,F)){P=!1;break}}if(!P){d.value=b;let _=[],D=[];b.forEach(K=>{_.push(mt(n,K)),n.valueType==="text"?D.push(gt(n,K)):n.valueType==="item"?D.push(K):D.push(mt(n,K))}),u.value=_;const F=l.toRaw(D);k&&(i("update:modelValue",F),i("change",F))}},c=l.ref([]),S=Oe(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),N=Zu(),g=async(L,M)=>{if(L){const V=await N.load("checkbox",L,M);if(V.length>0)if(typeof V[0]=="string"){let P=V.map(_=>Qu(_));c.value=P}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const p=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const P=mt(n,k),_=gt(n,k);let D=Uu(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const F=ec(n,k,b)??{},K=`${P}_${b}`,G={...F,key:K,class:n.itemClass,value:P,size:n.size,border:ue(n.border)};D&&(G.disabled=D),n.itemType==="button"?V.push(l.h(y.ElCheckboxButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElCheckbox,G,{default:()=>M(k)})):V.push(l.h(y.ElCheckbox,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElCheckboxGroup,M,k);V.push(b);const P={default:()=>V};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const D={...Ne(n,gr),hintText:q.value,hintVisible:B.value};return n.prop&&(D.prop=`${n.prop}_item`),S.value&&(D["appear-listen"]=!0,D.onAppear=p),l.h(o,D,P)}}}}const{componentName:nc,create:lc,scope:oc}=ie("checkbox-item"),il=lc(tc(nc,oc,Se)),mr={modelValue:{type:[Number,String],required:!1}};function rc(e,t,o){return{props:{...we,...Ie,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>ve(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),N=l.ref(!1);const g=l.ref();return $e({}),()=>{const p={...He(r.attrs),ref:g,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElRate,p,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,mr),hintText:S.value,hintVisible:N.value};return n.prop&&(A.prop=`${n.prop}_item`),l.h(o,A,q)}}}}const{componentName:ac,create:ic,scope:sc}=ie("rate-item"),sl=ic(rc(ac,sc,Se)),pr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,t,o){return{props:{...we,...Ie,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),{emitEvent:i}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),N=ge(n,"hintVisible");const g=l.ref();return $e({}),()=>{const p={...He(r.attrs),ref:g,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElSwitch,p,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,pr),hintText:S.value,hintVisible:N.value};return n.prop&&(A.prop=`${n.prop}_item`),l.h(o,A,q)}}}}const{componentName:cc,create:fc,scope:dc}=ie("switch-item"),ul=fc(uc(cc,dc,Se)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,t,o){return{props:{...we,...Ie,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Ve(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),S=B=>{u("update:modelValue",B),u("change",B)};let N=ge(n,"hintText"),g=l.ref(!1);const h=B=>{let L=B.target.value;i.value=!0,me(N.value)||(g.value=!0),u("focus",L,B)},p=B=>{setTimeout(()=>{g.value&&(g.value=!1),i.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=l.ref(!1),C=B=>{w.value=B,u("visible-change",B),B||u("selected")},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...He(r.attrs),ref:q,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:$,onFocus:h,onBlur:p,onVisibleChange:C},L={};r.slots.option&&(L.default=r.slots.option);const M=[],V=l.h(y.ElTreeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const P={...Ne(n,yr),hintText:N.value,hintVisible:g.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,k)}}}}const{componentName:gc,create:mc,scope:pc}=ie("tree-select-item"),cl=mc(hc(gc,pc,Se)),yc={},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"},vc=[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)];function wc(e,t){return l.openBlock(),l.createElementBlock("svg",bc,vc)}const Sc=_e(yc,[["render",wc]]),{componentName:Ah,create:xc,scope:Lh}=ie("group-setting"),Tc={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:"到底部"}},$c=xc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Sc,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...Tc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=sr(),i=O=>O.length>1,u=()=>{const O=[],x=[...a.value];a.value=x.map((E,v)=>(E.visible!==!1&&O.push(E.prop),{...E,sortIndex:v})),a.value.length===O.length?h.value=!0:O.length>0&&(p.value=!0),C.value=O},d=O=>{let x=null;if(typeof O=="string")x=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const E=O.$el??O;typeof E.querySelectorAll=="function"&&(x=E.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const I=[];return x.forEach(E=>{const v=E.querySelector(".label--string");let Y="";v&&(Y=v.textContent??"");const j=E.getAttribute("prop")??"",R=window.getComputedStyle(E,null).getPropertyValue("display");I.push({label:Y,prop:j,sortIndex:0,visible:R!=="none"})}),I},f=()=>{if(!r){const O=d(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},c=async(O=!1)=>{const x=await s.load(e.groupProp),I=E=>{if(!E||!r)return;const v=r.map(Y=>({...Y}));Array.isArray(x)&&x.forEach(Y=>{v.some(j=>{if(j.prop===Y.prop){const z=j.label;return Object.assign(j,Y),j.label=z,!0}return!1})}),a.value=v.sort((Y,j)=>Y.sortIndex-j.sortIndex),u(),O&&N(!1)};r?I(!0):Ht(f,e.initDelay,5,50,!1,I)},S=()=>{const O=r??[];a.value=O.map(x=>({...x})),u(),N()},N=(O=!0)=>{O&&s.save(e.groupProp,a.value);const x=a.value.map(I=>({...I}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),p=l.ref(!1),$=O=>{const x=[];a.value.forEach(E=>{O&&x.push(E.prop),E.visible=O}),h.value=!1,p.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(p.value=!0),C.value=x,N()},w=()=>{S()},C=l.ref([]),q=O=>{a.value.forEach(I=>{const E=O.indexOf(I.prop)!==-1;I.visible=E}),h.value=!1,p.value=!1;const x=a.value.length;O.length===x?h.value=!0:O.length>0&&(p.value=!0),N()},B=()=>{c()};l.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,L(O)):null:null,M=O=>{const x=O.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},V=O=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},k=O=>{const x=O.currentTarget;O.relatedTarget;const I=L(x);I&&(O.preventDefault(),A.currentRow&&A.currentRow!==I&&A.currentRow.classList.remove("is-dragover"),I.classList.add("is-dragover"),A.currentRow=I)},b=O=>{O.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},P=O=>{const x=O.currentTarget,I=L(x);if(!I)return;O.preventDefault();const E=Number(A.index),v=Number(I.dataset.index);if(E!==v){if(E<v){const Y=a.value[E];a.value.splice(E,1),a.value.splice(v,0,Y)}else{const Y=a.value[E];a.value.splice(E,1),a.value.splice(v+1,0,Y)}u(),N()}},_=O=>{const x=a.value[O];a.value.splice(O,1),a.value.splice(0,0,x),u(),N()},D=O=>{const x=a.value[O];a.value.splice(O,1),a.value.push(x),u(),N()};n({refresh:()=>{r=null,c(!1)}});const F=new Map;let K=null;function G(O){const x=document.createRange();return x.setStart(O,0),x.setEnd(O,O.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:p,handleCheckAllChange:$,handleReset:w,checkedValue:C,handleCheckChange:q,onShow:B,onDragStart:M,onDragEnd:V,onDragOver:k,onDragLeave:b,onDrop:P,checkboxLabelStyle:g,toTop:_,toBottom:D,onMouseOverForOverflowText:(O,x,I)=>{const E=O.currentTarget;if(E){const v=Math.floor(E.offsetWidth);if(Math.floor(G(E))>v){let j=F.get(x);if(j){if(j===K)return;De.hide(j)}j=De.show(E,I,{type:"text",placement:"top",closeOnClick:!1}),F.set(x,j),K=j}}},onMouseLeaveForOverflowText:(O,x)=>{const I=F.get(x);I&&(De.hide(I),I===K&&(K=null))},onMouseOverForTip:(O,x)=>{const I=O.currentTarget;I&&(K&&De.hide(K),K=De.show(I,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{K&&(De.hide(K),K=null)}}}}),Cc={class:"fox-group-setting"},Ec={class:"fox-group-setting__header"},Nc={class:"fox-group-setting__body"},kc={class:"fox-group-setting__body-list","data-role":"container"},Ic=["data-index","draggable"],Oc=["onMouseover","onMouseleave"],Vc={class:"tools-item"};function Fc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),S=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(S,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Cc,[l.createElementVNode("div",Ec,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Nc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",kc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,N=>(l.openBlock(),l.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:N.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,N.prop,N.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,N.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(N.label),45,Oc)]),_:2},1032,["label"]),l.createElementVNode("div",Vc,[l.createVNode(f,{onClick:g=>e.toTop(N.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",Fc]]),Dc=["aria-labelledby"],Rc=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),Ac=[Rc],Lc=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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Dc))}}),Mc=["aria-labelledby"],Bc=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),_c=[Bc],dl=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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),qc=["aria-labelledby"],Pc=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),jc=[Pc],zc=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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=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),Wc=[Kc],Yc=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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc=["aria-labelledby"],Uc=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),Xc=[Uc],Zc=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 o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}}),Jc={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},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},br=(e,t)=>t[e.textKey],Vt=(e,t)=>t[e.valueKey],Qc=(e,t)=>t[e.visibleKey],vr=(e,t)=>t[e.disabledKey],ef=(e,t)=>{const o=t[e.doitKey];return ue(o)},tf=(e,t)=>{const o=t[e.numKey];return o==null?null:ve(t[o])},wr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function nf(e,t,o,n=!1){return{props:{...Jc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{c.value!==O&&(c.value=O,G(!1))});const S=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),g=l.ref(),h=l.ref(!1),p=()=>{const O=!h.value;$(O)},$=O=>{const x=O;x?(h.value=x,setTimeout(()=>{S.value["fox-tabs-bar__popup--show"]=!0,S.value["fox-tabs-bar__popup--hide"]=!1},0)):(S.value["fox-tabs-bar__popup--show"]=!1,S.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),C=l.ref([]),q=(O,x)=>{C.value[x]=O},B=O=>x=>{q(x,O)},A=(O,x)=>{const I=w.value,E=C.value;if(!I||!E||!E[O])return;const v=E[O];let Y=0;r.direction==="vertical"?Y=v.offsetTop-(I.offsetHeight-v.offsetHeight)/2:Y=v.offsetLeft-(I.offsetWidth-v.offsetWidth)/2,L(I,Y,x?0:.3,r.direction)},L=(O,x,I,E)=>{let v=0;const Y=E==="horizontal"?O.scrollLeft:O.scrollTop,j=I===0?1:Math.round(I*1e3/16);function z(){E==="horizontal"?O.scrollLeft+=(x-Y)/j:O.scrollTop+=(x-Y)/j,++v<j&&Sn(z)}z()},M=(O,x)=>{const I=Vt(r,O),E={};return E[`${e}__titles-item`]=!0,E.disabled=vr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0),r.ellipsis&&(E.ellipsis=!0),x&&(x.class&&(E[`${x.class}`]=!0),x.disabled===!0&&(E.disabled=x.disabled)),E},V=(O,x)=>{const I={};if(f.value>0){const E=Math.abs(f.value/2);r.direction==="vertical"?(I["margin-top"]=`${E}px`,I["margin-bottom"]=`${E}px`):(I["margin-left"]=`${E}px`,I["margin-right"]=`${E}px`)}return x&&x.style&&Object.assign(I,x.style),I},k=(O,x)=>`${Vt(r,O)??x}`,b=(O,x)=>{const I=Vt(r,O),E={};E[`${e}__popup-item`]=!0,E.disabled=vr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0);const v=wr(r,O,x);return v&&v.disabled===!0&&(E.disabled=v.disabled),E},P=l.computed(()=>(r.data??[]).filter(x=>Qc(r,x)!==!1)),_=(O,x)=>{const I=Vt(r,O);if(c.value==I)return;const E=()=>{c.value=I,r.scroll&&A(x,!1),s("update:modelValue",I),s("change",O,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(O,x);Xl(v)?v.then(Y=>{Y!==!1&&E()}).catch(()=>{E()}):v!==!1&&E()}else E()},D=(O,x)=>function(){_(O,x)},F=(O,x)=>{_(O,x),$(!1)},K=(O,x)=>function(){F(O,x)},G=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(I=>Vt(r,I)===c.value);x!==-1&&A(x,O)};l.watch(()=>r.data,()=>{setTimeout(G,0)}),l.onMounted(()=>{G(!0)});const U=(O,x)=>{if(a.item)return a.item({item:O,index:x});const I=wr(r,O,x),E=[];if(a.text){const z=a.text({item:O,index:x});E.push(z)}else{const z=[];if(I?.doit===!0||ef(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",J);z.push(te)}const R=I?.num??tf(r,O);if(R){let J="";const te=ve(R);te>=100?J="99+":J=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",T,[J]);z.push(W)}const X={class:`${e}__titles-item-text`};z.push(br(r,O));const H=l.h("view",X,z);E.push(H)}const v={class:`${e}__titles-item-line`},Y=l.h("view",v);E.push(Y);const j={ref:B(x),class:M(O,I),style:V(O,I),key:k(O,x),onClick:D(O,x)};return l.h("view",j,E)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let I=0;I<P.value.length;I++){const E=P.value[I],v=U(E,I);O.push(v)}const x={ref:w,class:u.value,style:d.value};return l.h("view",x,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const x={class:`${e}__navigation`,onClick:p};return l.h("view",x,[O])},le=()=>{const O=[];for(let I=0;I<P.value.length;I++){const E=P.value[I];let v=null;a.popupItem?v=a.popupItem({item:E,index:I}):v=br(r,E);const Y={class:b(E,I),key:k(E,I),onClick:K(E,I)},j=l.h("view",Y,[v]);O.push(j)}const x={class:S.value,style:N.value};return l.h("view",x,O)};return()=>{const O=[],x=Z();if(O.push(x),r.showQuickNavigation){const E=ee();O.push(E);const v=le();O.push(v)}const I={class:i.value};return l.h("view",I,O)}}}}const{create:lf,componentName:of,scope:rf}=ie("tabs-bar"),hl=lf(nf(of,rf,Lc,!1)),Sr=Symbol("TabsStatesKey"),af={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function sf(e,t,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const p={name:h};i.current.value===h&&(p.loaded=!0),s.value.push(p),l.triggerRef(s)},remove:h=>{const p=s.value.findIndex($=>$.name===h);p!==-1&&s.value.splice(p,1)},isLoaded:h=>{if(!n.lazy)return!0;const p=s.value.findIndex($=>$.name===h);return p!==-1?i.current.value?s.value[p].loaded??!1:p===0:!1}};l.provide(Sr,i);const u=h=>{const p=s.value.findIndex($=>$.name===h);p!==-1&&(s.value[p].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,p])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==p&&(i.direction.value=p)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let S=!0;const N=l.computed(()=>{const h={},p=s.value.length;if(p<=0)return h;const $=s.value.findIndex(w=>w.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${p*i.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${p*i.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const p=Xt(d.value);i.tabWidth.value=p.width,i.tabHeight.value=p.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},p=l.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return l.h("view",$,[p])}}}}const{create:uf,componentName:cf,scope:ff}=ie("tabs-container"),gl=uf(sf(cf,ff,!1)),df={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function hf(e,t,o){return{props:{...df},setup(n,{emit:r,slots:a}){const s=l.inject(Sr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},S=n.emptyIcon??o,N=l.h(S,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",p=l.h("view",g,[h]),$={class:`${e}__empty`},w=l.h("view",$,[N,p]);d.push(w)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:gf,componentName:mf,scope:pf}=ie("tabs-pane"),ml=gf(hf(mf,pf,dl)),yf={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:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function bf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Tr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function vf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function pl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function $r(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Cr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function yl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class wf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Sf(){const e=l.getCurrentInstance();return new wf(e.proxy)}function xf(e,t,o,n){return{props:{...yf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=Sf(),d=l.ref([]),f=l.computed(()=>d.value.filter(x=>vf(r,x)!==!1)),c=l.ref(-1),S=()=>{const x=r.modelValue,I=f.value.findIndex(E=>xr(r,E)===x);c.value!==I&&(c.value=I,r.scroll&&le(I,!1))};l.watch([()=>r.modelValue,f],()=>{S()});const N=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const I=f.value[x],v=(yl(r,I,x)??{}).status??pl(r,I);return N(x)||v},h=l.computed(()=>{const x={[i]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),p=l.computed(()=>({})),$=(x,I,E,v,Y)=>{const j={[`${i}__step`]:!0};return Y&&(j[`${Y}`]=!0),j[`${w.value}`]=!0,v&&(j["is-doit"]=!0),x===c.value?j["is-active"]=!0:I==="done"?j["is-done"]=!0:I==="error"?j["is-error"]=!0:I==="half"?j["is-half"]=!0:E?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),C=(x,I={})=>{const E={...I};return w.value==="start"&&x===f.value.length-1?E.flex="0 0 auto":r.step?r.direction==="vertical"?E.height=r.step:E.width=r.step:E.flex="1 1 100%",E},q=(x,I)=>{let E={};if(I<f.value.length-1){const v=I+1;g(I)&&g(v)?r.direction==="vertical"?E.height="100%":E.width="100%":E.opacity="0"}return E},B=x=>f.value.length-1===x,A=(x,I)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&I>c.value||c.value===I)return;const E=c.value,v=I;c.value=I,r.scroll&&le(I,!1);const Y=xr(r,x);s("update:modelValue",Y);const j={fromIndex:E,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",Y,j)},L=l.ref(!0),M=async(x,I)=>{try{const E=await u.load("stesbar",x,I);Array.isArray(E)&&(d.value=E),L.value=!1}catch(E){console.error("[FoxUI] Load StepsBar Data Fail",E),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,I])=>{x&&M(x,I)},{immediate:!0});const V=(x,I,E,v,Y)=>{let j=null;if(a.icon)j=a.icon({item:x,index:I,status:v});else if(v==="done"){const R={};r.iconSize&&(R.width=r.iconSize,R.height=r.iconSize);const X=r.icon??o;j=l.h(X,R)}else{const R=E??`${I+1}`;j=l.h("span",{},[R])}const z={class:"fox-steps-bar__icon",onClick:()=>{Y||A(x,I)}};return l.h("view",z,[j])},k=(x,I,E)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:q(x,I)});return l.h("view",{class:"fox-steps-bar__line"},[v])},b=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const E={};r.iconSize&&(E.width=r.markIconSize,E.height=r.markIconSize);const v=r.markIcon??n;x=l.h(v,E)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},P=(x,I,E,v,Y)=>{const j=[];if(!B(I)){const X=k(x,I);j.push(X)}const z=V(x,I,E,v,Y);j.push(z);const R={class:"fox-steps-bar__head"};return l.h("view",R,j)},_=(x,I,E,v)=>{let Y=null;a.main?Y=a.main({item:x,index:I,status:E}):Y=bf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{v||A(x,I)}};return l.h("view",j,[Y])},D=(x,I,E)=>{let v=null;if(a.sub){v=a.sub({item:x,index:I,status:E});const Y={class:"fox-steps-bar__sub"};return l.h("view",Y,[v])}return null},F=(x,I)=>{const E=yl(r,x,I)??{},v=E.status??pl(r,x);let Y=Tr(r,x);E.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=E.label??Cr(r,x),z=[],R=V(x,I,j,v,Y);R&&z.push(R);const X=_(x,I,v,Y);if(X&&z.push(X),!B(I)){const ne=k(x,I);ne&&z.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},z),J=E.class,te=E.style??{};let T=$r(r,x);E.doit===!0&&(T=!0);const W={ref:ee(I),class:$(I,v,Y,T,J),style:C(I,te)};return l.h("view",W,[H])},K=(x,I)=>{const E=yl(r,x,I)??{},v=E.status??pl(r,x);let Y=Tr(r,x);E.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const j=E.label??Cr(r,x),z=[],R=r.layout;for(let T of R)if(T==="head"){const W=P(x,I,j,v,Y);z.push(W)}else if(T==="main"){const W=_(x,I,v,Y);z.push(W)}else if(T==="sub"){const W=D(x,I,v);z.push(W)}else if(T==="mark"){const W=b();z.push(W)}const X=E.class,H=E.style??{};let J=$r(r,x);E.doit===!0&&(J=!0);const te={ref:ee(I),class:$(I,v,Y,J,X),style:C(I,H)};return l.h("view",te,z)},G=l.ref(),U=l.ref([]),Z=(x,I)=>{U.value[I]=x},ee=x=>I=>{Z(I,x)},le=(x,I)=>{const E=G.value,v=U.value;if(!E||!v||!v[x])return;const Y=v[x];let j=0;r.direction==="vertical"?j=Y.offsetTop-(E.offsetHeight-Y.offsetHeight)/2:j=Y.offsetLeft-(E.offsetWidth-Y.offsetWidth)/2,O(E,j,I?0:.3,r.direction)},O=(x,I,E,v)=>{let Y=0;const j=v==="horizontal"?x.scrollLeft:x.scrollTop,z=E===0?1:Math.round(E*1e3/16);function R(){v==="horizontal"?x.scrollLeft+=(I-j)/z:x.scrollTop+=(I-j)/z,++Y<z&&Sn(R)}R()};return()=>{const x=[];if(r.mode==="simple")for(let E=0;E<f.value.length;E++){const v=f.value[E],Y=F(v,E);x.push(Y)}else for(let E=0;E<f.value.length;E++){const v=f.value[E],Y=K(v,E);x.push(Y)}const I={ref:G,class:h.value,style:p.value};return l.h("view",I,x)}}}}const{componentName:Tf,create:$f,scope:Cf}=ie("steps-bar"),bl=$f(xf(Tf,Cf,Yc,Zc)),Ef=Symbol.for("InnerPageScopeKey"),Nf=Symbol.for("PageWrapperKey");function kf(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(Ef,!0);const r={};l.provide(Nf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return l.h(y.ElDialog,d,f)}}}}const{componentName:Mh,create:If,scope:Bh}=ie("dialog-item"),vl=If(kf());let Ft=0;const Er="fox-overflow-hidden",Nr=()=>lt?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Ft&&Nr().classList.add(Er),Ft++}catch{}},()=>{if(e()&&Ft)try{Ft--,!Ft&&Nr().classList.remove(Er)}catch{}}],Vf={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:Ff,create:Df}=ie("overlay"),Rf=Df({props:{...Vf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Of(()=>e.lockScroll),r=l.computed(()=>({[Ff]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,i=>{i?o():n()}),{classes:r,style:a,onClick:i=>{t("click",i),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Af(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const an=_e(Rf,[["render",Af]]),Lf={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:{}}},kr=2e3;let Ir=kr;const Mf=(e,t)=>({components:t,props:{...Lf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==kr&&(Ir=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Ir,o.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},S=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:S,onOpened:N,onClosed:g}}}),{componentName:Bf,create:_f}=ie("popup"),qf=_f(Mf(Bf,{FoxOverLay:an,Close:zc}));function Pf(e,t,o,n,r,a){const s=l.resolveComponent("FoxOverLay"),i=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,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"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(i)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const wl=_e(qf,[["render",Pf]]),{create:jf}=ie("toast"),zf=jf({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 o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},i=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&s(),l.watch(()=>e.duration,N=>{N&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=he(e.iconSize);return l.h(e.icon,{width:N,height:N,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Hf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Sl=_e(zf,[["render",Wf]]),Yf={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,default:""},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"}},Gf=(e,t,o)=>({props:{...Yf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=vo(),{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=V=>{let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),a("update:modelValue",b,V),a("change",b,V)},S=l.ref({}),N=V=>{let b=V.target.value;u.active=!0,S.value=n.focusStyle,a("focus",b,V)},g=V=>{setTimeout(()=>{u.active=!1},0);let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),S.value={},a("blur",b,V)},h=V=>{a("update:modelValue","",V),a("change","",V),a("clear","")},p=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const V={};return p.value||(V.display="none"),V}),w=()=>{a("search",n.modelValue)},C=V=>{a("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&w()},q=V=>{a("click-input",V)},B=V=>{a("click-left-icon",n.modelValue,V)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const V=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},F=l.h("view",D,[r.leftin()]);V.push(F)}const k={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:N,onBlur:g,onkeyup:C},b=l.h("input",k);V.push(b);const P=[];if(n.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},F=r?.clear?.()??n.clearIcon??o,K=l.h("view",D,[l.h(F)]);P.push(K)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},F=l.h("view",D,[r.rightin()]);P.push(F)}if(P.length>0){const D={class:`${e}__input-inner-right`},F=l.h("view",D,P);V.push(F)}const _={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...S.value}};return l.h("view",_,V)};return()=>{const V=[];if(n.label){const P={class:`${e}__search-label`},_=l.h("span",P,[n.label]);V.push(_)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},_=l.h("view",P,[r.leftout()]);V.push(_)}const k=M();if(V.push(k),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},_=l.h("view",P,[r.rightout()]);V.push(_)}const b={class:`${e}`,style:d.value};return l.h("view",b,V)}}}),{componentName:Uf,create:Xf,scope:Zf}=ie("searchbar"),xl=Xf(Gf(Uf,Zf,Ce.CircleClose)),Jf=/scroll|auto|overlay/i,Or=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ed(e,t=Or){let o=e;for(;o&&o!==t&&Qf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Jf.test(n))return o;o=o.parentNode}return t}function Vr(e,t=Or){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ed(e.value,t))}),o}const Fr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,td={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function nd(e,t,o){return{props:{...td},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullText","loadText","loadMoreText"]),u=l.ref(),d=Vr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),S=w=>w?w.offsetTop+S(w.offsetParent):0,N=()=>{let w=0,C=0,q="down";if(d.value==window){const B=Fr();u.value&&(w=S(u.value)+u.value.offsetHeight-B-window.innerHeight),C=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:L}=d.value;w=B-A-L,C=L}return f.beforeScrollTop>C?q="up":q="down",f.beforeScrollTop=C,r("scroll-change",C),w<=n.threshold&&q=="down"},g=()=>{ql(()=>{if(!N()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},p=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{p()});const $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,p()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},C=l.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let M=a?.loading?.()??null;if(!M){let b=a?.loadingIcon?.()??null;if(!b){const D={class:["fox-infinite__bottom-box__img"]};b=l.h(o,D)}const P={class:"fox-infinite__bottom-box__text"},_=l.h("view",P,[i.loadText.value]);M=[b,_]}const V={class:"fox-infinite__bottom-box"},k=l.h("view",V,M);q.push(k)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const V={class:"fox-infinite__bottom-tips"};M=l.h("view",V,[i.loadMoreText.value]),q.push(M)}}const B={class:"fox-infinite__bottom"},A=l.h("view",B,q),L={class:c.value,ref:u};return l.h("view",L,[C,A])}}}}const{componentName:ld,create:od,scope:rd}=ie("infinite-loading"),Tl=od(nd(ld,rd,dl)),Dr=10;function Rr(e,t){return e>t&&e>Dr?"horizontal":t>e&&t>Dr?"vertical":""}function $l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Cl(){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",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.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=Rr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function ad(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),s=l.ref(0),i=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",S=()=>f.value==="horizontal",N=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:p=>{if(p.touches){const C=p.touches[0];s.value=C.clientX-e.value,i.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const w=p;s.value=w.clientX-e.value,i.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=Rr(u.value,d.value))},start:p=>{if(N(),p.touches){const C=p.touches[0];e.value=C.clientX,t.value=C.clientY}else{const w=p;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:N,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:S}}const id={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}},sd=(e,t,o)=>({props:{...id},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=Cl(),d=l.ref(),f=Vr(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),S=l.computed(()=>({[e]:!0})),N=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=ke(n.headHeight)),L}),p=L=>{const M=+(n.pullDistance||n.headHeight);let V=L;return L>M&&(L<M*2?V=(L+M)/2:V=M+L/4),Math.round(V)},$=(L,M)=>{const V=+(n.pullDistance||n.headHeight);c.distance=L,M?c.status="loading":L===0?c.status="normal":L<V?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",C=()=>f.value==window?Fr()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(C()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(p(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(c.status==="loading"){if(M=a?.loading?.()??null,!M){const K={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,K)}}else c.status==="pulling"?M=a?.pulling?.()??null:c.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const V={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",V,[N.value]);L.push(k);const b={class:["fox-pull-refresh-container-topbox"],style:h.value},P=l.h("div",b,L),_={class:"fox-pull-refresh-container",style:g.value},D=l.h("div",_,[P,a?.default?.()]),F={ref:d,class:S.value};return $l()?Object.assign(F,{onTouchstart:q,onTouchmove:B,onTouchend:A}):Object.assign(F,{onMousedown:q,onMousemove:B,onMouseup:A}),l.h("div",F,[D])}}}),{componentName:ud,create:cd,scope:fd}=ie("pull-refresh"),El=cd(sd(ud,fd,dl));function dd(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(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),i=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:s.value,style:i.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},S=n.default?n.default():[],N=l.h("div",c,S),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,N]):l.h("div",g,[N,f])}}}}const{componentName:hd,create:gd,scope:_h}=ie("indicator"),Nl=gd(dd(hd));function md(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const pd={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},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function yd(e,t,o,n=!1){return{props:{...pd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),u=l.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),d=(C,q)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(C.indexOf(A)!==-1){const M=C.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,B=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(C);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,B=l.h(r.tag,q))}return B},f=C=>{a.emit("click",C)};let c="";const S=()=>{const C=s.value;if(!C)return;const q=C.clientWidth;md(C,B=>{const A=C.innerHTML??"";me(A)||B<q||(c?o?.show(C,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(C,A,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&o?.hide(c)};let g=null;const h=C=>{g||(g=setTimeout(()=>{S(),g=null},r.showAfter??0))},p=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{N()},r.hideAfter??0)},$=()=>{const C=s.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",p))},w=()=>{const C=s.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",p))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const C={onClick:f,class:i.value,style:u.value,ref:s};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=ve(r.digits),b=ve(r.decimalLength),P=ue(r.autoPadding);let _=`${M[0].children}`,D=_.split("").reverse().join("");D=Lt(D,b,P,k,r.separator),_=D.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(_,C)),q||(C.innerHTML=_,q=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=`${M[0].children}`;q=d(k,C),q||(C.innerHTML=k,q=l.h(r.tag,C))}}}q||(q=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const V={},k=r.color;k&&(V["background-color"]=k);const b={class:M,style:V};A=l.h("view",b)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,q])}}}}const{componentName:bd,create:vd,scope:wd}=ie("text"),kl=vd(yd(bd,wd,De,!1)),Sd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ce.ArrowUp}};function xd(e,t,o){return{props:{...Sd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),s=ge(n,"modelValue"),i=l.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{r("update:modelValue",!s.value)};return()=>{const c=[];if(i.value){const h={class:u.value},p=l.h("span",h,[i.value]);c.push(p)}const S={class:d.value},N=o(n.icon,S);return N&&c.push(N),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Td,create:$d,scope:Cd}=ie("more-button"),Il=$d(xd(Td,Cd,(e,t)=>(e=e??Ce.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]}))));function Ed(e){return e===window}const Ar=e=>{const t=l.unref(e);if(Ed(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Nd,create:kd,scope:Ph}=ie("tour"),Id=kd({components:{Close:Ce.Close,ElPopover:y.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 o=Nd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:p}=e,{width:$,height:w,left:C,top:q}=r.value,B=e.steps[n.active].offset??g,A=[C+$/2,q+w/2],L=Number(h||$),M=Number(p||w);return{width:`${L+ +B.left+B.right}px`,height:`${M+B.top+B.bottom}px`,top:`${A[1]-M/2-+B.top}px`,left:`${A[0]-L/2-+B.left}px`}}),i=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Ar(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&c()},N=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{N(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{N(g)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:S}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},Fd={class:"fox-tour__content-inner"},Dd={class:"fox-tour__content-bottom"},Rd={class:"fox-tour__content-bottom-init"},Ad={class:"fox-tour__content-bottom-operate"},Ld={key:1,class:"fox-tour__content fox-tour__content-tile"},Md={class:"fox-tour__content-inner"};function Bd(e,t,o,n,r,a){const s=l.resolveComponent("Close"),i=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Od,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Vd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Fd,l.toDisplayString(d.content),1),l.createElementVNode("div",Dd,[l.createElementVNode("div",Rd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Ad,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Ld,[l.createElementVNode("div",Md,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ol=_e(Id,[["render",Bd]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,at=e=>e==null;class _d{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=$l()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Cl(),n=(r,a,s,i)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Lr(e,t){return new _d(e,t)}const Mr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const Br=e=>{const t=e;t.key==="Escape"&&pt.forEach(o=>o(t))},qd=e=>{l.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",Br),Mr&&pt.push(e)}),l.onBeforeUnmount(()=>{pt=pt.filter(t=>t!==e),pt.length===0&&Mr&&document.removeEventListener("keydown",Br)})},Vl="fox-focus-trap.focus-after-trapped",Fl="fox-focus-trap.focus-after-released",Pd="fox-focus-trap.focusout-prevented",_r={cancelable:!0,bubbles:!1},jd={cancelable:!0,bubbles:!1},qr="foxFocusAfterTrapped",Pr="foxFocusAfterReleased",zd=Symbol("foxFocusTrap"),Dl=l.ref(),sn=l.ref(0),Rl=l.ref(0);let un=0;const jr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Hd=(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},zr=(e,t)=>{for(const o of e)if(!Hd(o,t))return o},Kd=e=>{const t=jr(e),o=zr(t,e),n=zr(t.reverse(),e);return[o,n]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,et=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Wd(e)&&t&&e.select()}};function Hr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Yd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Hr(e,n),e.unshift(n)},remove:n=>{e=Hr(e,n),e[0]?.resume?.()}}},Gd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(et(n,t),document.activeElement!==o)return},Kr=Yd(),Ud=()=>sn.value>Rl.value,cn=()=>{Dl.value="pointer",sn.value=window.performance.now()},Wr=()=>{Dl.value="keyboard",sn.value=window.performance.now()},Xd=()=>(l.onMounted(()=>{un===0&&(document.addEventListener("mousedown",cn),document.addEventListener("touchstart",cn),document.addEventListener("keydown",Wr)),un++}),l.onBeforeUnmount(()=>{un--,un<=0&&(document.removeEventListener("mousedown",cn),document.removeEventListener("touchstart",cn),document.removeEventListener("keydown",Wr))}),{focusReason:Dl,lastUserFocusTimestamp:sn,lastAutomatedFocusTimestamp:Rl}),fn=e=>new CustomEvent(Pd,{...jd,detail:e}),{componentName:jh,create:Zd,scope:zh}=ie("focus-trap"),Jd=Zd({props:{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"}},emits:[qr,Pr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=Xd();qd(h=>{ue(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||i.paused)return;const{key:p,altKey:$,ctrlKey:w,metaKey:C,currentTarget:q,shiftKey:B}=h,{loop:A}=e,L=p==="Tab"&&!$&&!w&&!C,M=document.activeElement;if(L&&M){const V=q,[k,b]=Kd(V);if(k&&b){if(!B&&M===b){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(k,!0))}else if(B&&[k,V].includes(M)){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(b,!0))}}else if(M===V){const _=fn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};l.provide(zd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[p])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",S)),p&&(p.removeEventListener("keydown",u),p.removeEventListener("focusin",c),p.removeEventListener("focusout",S))});const d=h=>{o(qr,h)},f=h=>o(Pr,h),c=h=>{const p=l.unref(n);if(!p)return;const $=h.target,w=h.relatedTarget,C=$&&p.contains($);ue(e.trapped)||w&&p.contains(w)||(r=w),C&&o("focusin",h),!i.paused&&ue(e.trapped)&&(C?a=$:et(a,!0))},S=h=>{const p=l.unref(n);if(!(i.paused||!p))if(!e.escape&&ue(e.trapped)){const $=h.relatedTarget;!En($)&&!p.contains($)&&setTimeout(()=>{if(!i.paused&&ue(e.trapped)){const w=fn({focusReason:s.value});o("focusout-prevented",w),w.defaultPrevented||et(a,!0)}},0)}else{const $=h.target;$&&p.contains($)||o("focusout",h)}};async function N(){await l.nextTick();const h=l.unref(n);if(h){Kr.push(i);const p=h.contains(document.activeElement)?r:document.activeElement;if(r=p,!h.contains(p)){const w=new Event(Vl,_r);h.addEventListener(Vl,d),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Ul(C)||(et(C),document.activeElement!==C&&(C="first")),C==="first"&&Gd(jr(h),!0),(document.activeElement===p||C==="container")&&et(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vl,d);const p=new CustomEvent(Fl,{..._r,detail:{focusReason:s.value}});h.addEventListener(Fl,f),h.dispatchEvent(p),!p.defaultPrevented&&(s.value=="keyboard"||!Ud())&&et(r??document.body,!0),h.removeEventListener(Fl,d),Kr.remove(i)}}return l.onMounted(()=>{ue(e.trapped)&&N(),l.watch(()=>e.trapped,h=>{ue(h)?N():g()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Qd,create:eh,scope:Kh}=ie("floating-window"),th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),lh={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}},oh=eh({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Jd},props:{...lh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Qd,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!M.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=l.computed(()=>{const T={};return at(s.value)?T.left="auto":T.left=Re(s.value),at(i.value)?T.top="auto":T.top=Re(i.value),at(u.value)?T.right="auto":T.right=Re(u.value),at(d.value)?T.bottom="auto":T.bottom=Re(d.value),at(e.zIndex)||(T["z-index"]=Re(e.zIndex)),at(A.value)||(T.height=A.value),at(L.value)||(T.width=L.value),T}),S=l.computed(()=>e.closeIcon??Ce.Close),N=l.computed(()=>e.collapseIcon??Ce.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),p=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),C=l.ref(),q=l.ref(null),B=l.ref(null),A=l.computed(()=>Re(e.height)||""),L=l.computed(()=>Re(e.width)||""),M=l.ref(ue(e.collapse)),V=(T,W=!0)=>{M.value!==T&&(M.value=T,T?x():I(),t("update:collapse",T),T&&typeof P.onHide=="function"?P.onHide():!T&&typeof P.onShow=="function"&&P.onShow())};l.watch(()=>e.collapse,T=>{V(T)});const k=()=>{b()},b=T=>{T=T??!M.value,V(T)};l.provide(th,!0);const P={setCollapse:V,setFixedNavVisible:T=>{ee.value=T}};l.provide(nh,P);const _=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{n.value=!1}):n.value=!1},D=l.ref(null),F=l.computed(()=>!e.fixedNavTeleport),K=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),G=l.ref(""),U=l.computed(()=>{const T={};return G.value?T.top=G.value:e.collapseTop&&(T.top=e.collapseTop),T}),Z=l.ref(M.value),ee=l.computed({set:T=>{Z.value=T},get:()=>n.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},x=()=>{D.value&&D.value.classList.add("slide-in"),ee.value=!0,le=()=>{D.value&&D.value.classList.remove("slide-in")}},I=()=>{D.value&&D.value.classList.add("slide-out"),le=()=>{D.value&&D.value.classList.remove("slide-out"),ee.value=!1}},E=()=>{s.value=null,i.value=null,u.value=null,d.value=null},v={x:0,y:0},z=Lr(T=>{if(!C.value)return;const W=C.value;if(E(),e.origin==="left-top")s.value=W.offsetLeft,i.value=W.offsetTop,v.x=s.value,v.y=i.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=W.offsetLeft,d.value=ne-(W.offsetTop+W.offsetHeight),v.x=s.value,v.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(W.offsetLeft+W.offsetWidth),d.value=oe-(W.offsetTop+W.offsetHeight),v.x=u.value,v.y=d.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(W.offsetLeft+W.offsetWidth),i.value=W.offsetTop,v.x=u.value,v.y=i.value}},T=>{if(!C.value)return;const W=C.value;E(),e.origin==="left-top"?(s.value=v.x+T.x,i.value=v.y+T.y,W.style.left=Re(s.value),W.style.top=Re(i.value)):e.origin==="left-bottom"?(s.value=v.x+T.x,d.value=v.y-T.y,W.style.left=Re(s.value),W.style.bottom=Re(d.value)):e.origin==="right-bottom"?(u.value=v.x-T.x,d.value=v.y-T.y,W.style.right=Re(u.value),W.style.bottom=Re(d.value)):(u.value=v.x-T.x,i.value=v.y+T.y,W.style.right=Re(u.value),W.style.top=Re(i.value))}),R={x:0,y:0},J=Lr(T=>{D.value&&(R.x=D.value.offsetLeft,R.y=D.value.offsetTop)},T=>{if(!D.value)return;const W=R.y+T.y;G.value=`${W}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];q.value&&T.push(q.value),e.footerDraggable&&(te(),B.value&&T.push(B.value)),z.open(T)}e.collapse===!0&&V(e.collapse,!1),D.value&&J.open(D.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),D.value&&J.close()}),{classes:f,styles:c,isShow:a,closeIcon:S,onClose:_,dialogRef:C,headerRef:q,onClickToggle:k,collapseIcon:N,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:p,isShowFixedNav:ee,fixedNavRef:D,fixedNavClasses:K,fixedNavStyles:U,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:F}}}),rh={ref:"headerRef",class:"fox-floating-window__header"},ah={class:"fox-floating-window__title"},ih={class:"fox-floating-window__tools"},sh={class:"fox-floating-window__body"},uh={class:"fox-floating-window__fixednav__text"};function ch(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",rh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ah,l.toDisplayString(e.title),1),l.createElementVNode("div",ih,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(s,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",sh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",uh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=_e(oh,[["render",ch]]);function fh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return po(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wh,create:dh,scope:Yh}=ie("domain-provider"),Ll=dh(fh()),hh={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 gh(e,t){return{inheritAttrs:!1,props:hh,setup(o,{slots:n}){if(lt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(S,N)=>{if(f===null){a.set(S,{visible:null,callback:N});return}r.has(S)&&f.unobserve(S),r.set(S,{visible:null,callback:N}),f.observe(S)},i=S=>{if(f===null){a.delete(S);return}r.has(S)&&(r.delete(S),f.unobserve(S))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const S=u>0;return u--,S},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(S,N,g)=>{f=new IntersectionObserver(h=>{for(let p of h){let $=!1;p.intersectionRatio>0&&($=!0);const w=r.get(p.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(C){console.error(C)}}},{root:S,rootMargin:N,threshold:g}),a.forEach((h,p)=>{r.set(p,h),f?.observe(p)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([S,N])=>{if(N||!S||f)return;let g=null;typeof S=="string"?g=document.querySelector(S):g=S,g&&c(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gh,create:mh,scope:Uh}=ie("rolling-provider"),Ml=mh(gh()),ph=[Dn,An,Ln,Mn,qn,Se,zn,Hn,Nt,Kn,Wn,Yn,Gn,Un,Xn,Zn,Qn,el,tl,nl,rn,rl,al,il,sl,ul,cl,fl,hl,gl,ml,bl,vl,an,wl,Sl,xl,Tl,El,It,ln,Nl,kl,Il,Ol,Al,Ll,Ml],yh=new Va(ph,[Ra],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>y.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>y.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>y.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>y.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>y.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>y.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>y.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>y.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>y.ElWatermark}),m.AutocompleteItem=el,m.Broadcast=Nn,m.BroadcastKey=ye,m.CascaderItem=Qn,m.CheckboxItem=il,m.Content=Mn,m.DataItemsKey=ut,m.DateItem=Yn,m.DateUtils=Be,m.DialogItem=vl,m.Domain=Kt,m.DomainKey=Ae,m.DomainProvider=Ll,m.FloatingWindow=Al,m.FooterBar=Ln,m.FoxAutocompleteItem=el,m.FoxCascaderItem=Qn,m.FoxCheckboxItem=il,m.FoxContent=Mn,m.FoxDateItem=Yn,m.FoxDialogItem=vl,m.FoxDomainProvider=Ll,m.FoxFloatingWindow=Al,m.FoxFooterBar=Ln,m.FoxGroup=qn,m.FoxGroupSetting=fl,m.FoxHeaderBar=An,m.FoxHintText=Nt,m.FoxIndicator=Nl,m.FoxInfiniteLoading=Tl,m.FoxInputItem=Kn,m.FoxInputNumberItem=Zn,m.FoxItem=Se,m.FoxMapping=It,m.FoxMoneyItem=Xn,m.FoxMoreButton=Il,m.FoxOverLay=an,m.FoxPage=Dn,m.FoxPopup=wl,m.FoxPrice=ln,m.FoxPullRefresh=El,m.FoxRadioItem=al,m.FoxRateItem=sl,m.FoxRollingProvider=Ml,m.FoxRowItem=Hn,m.FoxSearchBar=xl,m.FoxSelectItem=Wn,m.FoxSlotItem=zn,m.FoxStepsBar=bl,m.FoxSwitchItem=ul,m.FoxTableItem=rl,m.FoxTableMappingColumn=tl,m.FoxTableRadioColumn=nl,m.FoxTableSetting=rn,m.FoxTabsBar=hl,m.FoxTabsContainer=gl,m.FoxTabsPane=ml,m.FoxText=kl,m.FoxTimeItem=Gn,m.FoxTimeSelectItem=Un,m.FoxToast=Sl,m.FoxTour=Ol,m.FoxTreeSelectItem=cl,m.Group=qn,m.GroupSetting=fl,m.HeaderBar=An,m.HintText=Nt,m.Indicator=Nl,m.InfiniteLoading=Tl,m.InputItem=Kn,m.InputNumberItem=Zn,m.Item=Se,m.Mapping=It,m.MoneyItem=Xn,m.MoreButton=Il,m.OverLay=an,m.Page=Dn,m.Popup=wl,m.Price=ln,m.PriorityPolicy=Me,m.PullRefresh=El,m.RadioItem=al,m.RateItem=sl,m.RollingProvider=Ml,m.RowItem=Hn,m.SearchBar=xl,m.SelectItem=Wn,m.SlotItem=zn,m.StepsBar=bl,m.SwitchItem=ul,m.TableItem=rl,m.TableMappingColumn=tl,m.TableRadioColumn=nl,m.TableSetting=rn,m.TabsBar=hl,m.TabsContainer=gl,m.TabsPane=ml,m.Text=kl,m.TimeItem=Gn,m.TimeSelectItem=Un,m.Toast=Sl,m.Tour=Ol,m.TreeSelectItem=cl,m.UniqueID=Fo,m.ValidateSchema=ho,m.ValidateSchemaKey=qe,m.cancelRaf=Ur,m.clearNonNumber=ia,m.clone=$n,m.compareTo=wn,m.createBroadcast=qt,m.createValidateSchema=jt,m.debounce=$t,m.debounceRef=wa,m.decimalLength=ro,m.default=yh,m.defineBroadcast=fa,m.defineConfigDomain=po,m.defineDataItem=bo,m.defineDomain=In,m.defineItem=Te,m.definePageState=wo,m.defineSimpleItem=vo,m.deleteGlobalValidator=pa,m.disabledProperty=Fe,m.divide=vn,m.excludeProps=Ne,m.extend=nt,m.floatData=ca,m.getGlobalValidateCheckEvents=uo,m.getGlobalValidateResetEvents=fo,m.getPageContentAreaHeight=Yt,m.getPageContentAreaWidth=Gt,m.getPageFooterAreaHeight=Et,m.getPageHeaderAreaHeight=Ct,m.getRootDomain=ct,m.hasSymbol=Jl,m.includeProps=io,m.indexOf=sa,m.installRules=yo,m.integerLength=oo,m.isArray=Zr,m.isArrayLike=eo,m.isBrowser=lt,m.isDate=ea,m.isESModule=na,m.isEmptyString=me,m.isEqual=Ye,m.isFunction=xn,m.isHidden=_t,m.isInnerPage=Ta,m.isMap=Jr,m.isNil=En,m.isNumberString=lo,m.isObject=We,m.isPlainObject=Tn,m.isPromise=Xl,m.isRegExp=no,m.isSet=Qr,m.isString=Ul,m.isSubPage=$a,m.isSymbol=ta,m.isTouch=$l,m.isWindow=Ql,m.lastIndexOf=ua,m.makeArray=aa,m.merge=to,m.multiply=Wl,m.negate=Yl,m.nextTick=oa,m.numberFormat=Lt,m.objectToString=Zl,m.once=Sa,m.overrideGlobalValidateHandler=ga,m.property=Oe,m.raf=Sn,m.readonlyProperty=Ve,m.setGlobalValidateCheckEvents=ya,m.setGlobalValidateHandler=ha,m.setGlobalValidateMessages=va,m.setGlobalValidateResetEvents=ba,m.setGlobalValidator=ma,m.throttle=mo,m.toBoolean=ue,m.toNumber=ve,m.toPadding=ze,m.toPx=he,m.toPxDesc=ke,m.toTypeString=Mt,m.toValue=ge,m.tryTimes=Ht,m.typeOf=Bt,m.unNumberFormat=Gl,m.updatePageState=On,m.useBroadcast=St,m.useDomain=Ge,m.useExpose=$e,m.useInnerSize=Rn,m.usePageState=Wt,m.usePosition=Io,m.useRawTouch=Cl,m.useRect=Ar,m.useSize=Xt,m.useTouch=ad,m.valueLength=wt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function At(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=Ee(e),n=Ee(n),[e,n]=hn(Ee(e),Ee(n)),o==1&&(l==1?e=dn(e):n=dn(n));let r=Pl(e,n);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(dn(r)):Ee(r)}function dn(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Pl(n,a)}function Ee(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function hn(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,a=l[0].length;return r>a?l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=l[1]?l[1].length:0,(r||a)&&(r>a?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Pl(e,n){[e,n]=hn(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(n[r])+l;o=a%10+o,l=Math.floor(a/10)}return l?l.toString()+o:o}var be=(e=>(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))(be||{});function bt(e,n=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(n<0){if(n=-n,a.length<=n)return"0";{let s=a.substr(0,a.length-n);return e=s+"."+a.substr(a.length-n)+i,s=bt(e,0,o),(l?"-":"")+s+new Array(n+1).join("0")}}if(n==0)return a.length,jl(r[1],a,l,o)?(l?"-":"")+gn(a):(l?"-":"")+a;if(r[1]){if(r[1].length<n)return(l?"-":"")+a+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+a+"."+new Array(n+1).join("0");i=r[1].substring(0,n);let u=r[1].substring(n);return u&&jl(u,i,l,o)&&(i=gn(i),i.length>n)?(l?"-":"")+gn(a,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+a+"."+i}function jl(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===be.DOWN||!o&&l===be.FLOOR||o&&l===be.CEILING)return!1;if(l===be.UP||o&&l===be.FLOOR||!o&&l===be.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function gn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+n;a==10?(n=1,a=0):n=0,l+=a}return n&&(l+=n),l.split("").reverse().join("")}function mn(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=vt(e),n=vt(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let a=l+r;if(e=vt(e.replace(".","")),n=vt(n.replace(".","")),e.length<n.length){let g=e;e=n,n=g}if(n=="0")return"0";let i=n.length,u=0,s=[],c=i-1,d="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let b=0;for(let w=n.length-1;w>=c&&w>=0;w--)s[w]>-1&&s[w]<e.length&&(b+=parseInt(e[s[w]--])*parseInt(n[w]));b+=u,u=Math.floor(b/10),d=b%10+d,c--}return d=vt(Xr(d,a)),o==1&&(d="-"+d),d}function Xr(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}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 pn(e,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ee(n.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Ee(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Ee(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Ee(e.replace(".","")))}let a=0,i=n.length,u="",s=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(n);)s=At(s,"-"+n),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(l==1?"-":"")+Ee(bt(u,o-2))}function yn(e,n){return e=e.toString(),n=n.toString(),n=bn(n),At(e,n)}function bn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zl(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Hl(e),Hl(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=yn(e,mn(n,bt(pn(e,n),0,be.FLOOR)));return o+l}function Hl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Kl(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=hn(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class de{value;static RoundingModes=be;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+Ee(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=de.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=de.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var a=n.indexOf(".");a=a>0?a:n.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=n.substring(u,u+o)+(u<a-o&&u>=0?l:"")+i;return(r?"-":"")+i+n.substring(a)}getPrettyValue(n,o){return de.getPrettyValue(this.value,n,o)}static round(n,o=0,l=be.HALF_EVEN){if(n=de.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return bt(n,o,l)}round(n=0,o=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new de(bt(this.value,n,o))}static floor(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,be.FLOOR)}static ceil(n){return n=de.validate(n),n.indexOf(".")===-1?n:de.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,be.CEILING)}static add(n,o){return n=de.validate(n),o=de.validate(o),At(n,o)}add(n){return new de(At(this.value,n.getValue()))}static subtract(n,o){return n=de.validate(n),o=de.validate(o),yn(n,o)}subtract(n){return new de(yn(this.value,n.getValue()))}static multiply(n,o){return n=de.validate(n),o=de.validate(o),mn(n,o)}multiply(n){return new de(mn(this.value,n.getValue()))}static divide(n,o,l){return n=de.validate(n),o=de.validate(o),pn(n,o,l)}divide(n,o){return new de(pn(this.value,n.getValue(),o))}static modulus(n,o){return n=de.validate(n),o=de.validate(o),zl(n,o)}modulus(n){return new de(zl(this.value,n.getValue()))}static compareTo(n,o){return n=de.validate(n),o=de.validate(o),Kl(n,o)}compareTo(n){return Kl(this.value,n.getValue())}static negate(n){return n=de.validate(n),bn(n)}negate(){return new de(bn(this.value))}}function Wl(e,n){return de.multiply(`${e}`,`${n}`)}function vn(e,n,o=8){return de.divide(`${e}`,`${n}`,o)}function wn(e,n){return e=`${e}`,n=`${n}`,de.compareTo(e,n)}function Yl(e){return de.negate(e)}function Lt(e,n=-1,o=!1,l=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),n!=-1&&(n<s.length?s=s.substring(0,n):o&&n>s.length&&(s=s.padEnd(n,"0")));let d;if(l>0){let g="",b=u.split("").reverse();for(let w=0;w<b.length;w++)g+=b[w]+((w+1)%l==0&&w+1!=b.length?r:"");s.length==0?d=`${i}${g.split("").reverse().join("")}`:d=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function Gl(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const Sn=ql,Zr=Array.isArray,Jr=e=>Mt(e)==="[object Map]",Qr=e=>Mt(e)==="[object Set]",ea=e=>e instanceof Date,xn=e=>typeof e=="function",Ul=e=>typeof e=="string",ta=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Xl=e=>We(e)&&xn(e.then)&&xn(e.catch),Zl=Object.prototype.toString,Mt=e=>Zl.call(e),Tn=e=>Mt(e)==="[object Object]",Jl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function na(e){return e.__esModule||Jl&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=n[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},n[i]=lt(r,c,s)}else s!==void 0&&(n[i]=s)}}return n}function $n(e,n,o=!1){if(!o)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Tn(i))continue;a=$n(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const l=Object.getOwnPropertySymbols(n);for(let r of l){let a=e[r],i=n[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Tn(i))continue;a=$n(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Cn=la?Promise.resolve():null;function oa(e,...n){Cn!==null?n&&n.length>0?Cn.then(()=>{e(n)}):Cn.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const ra={"[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 Bt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ra[o]||"object"}function Ql(e){return e&&typeof e=="object"&&"setInterval"in e}function _t(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function eo(e){let n=!!e&&"length"in e&&e.length,o=Bt(e);return o==="function"||Ql(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function to(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function aa(e,n=[]){let o=n;return e!=null&&(eo(Object(e))?to(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Bt(e),l=Bt(n);if(o!==l)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=n[u];if(!Ye(s,c))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=n[r];if(!Ye(a,i))return!1}return!0}return!1}const ot=typeof window<"u";function En(e){return e==null}function no(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lo(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oo(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function ro(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function ao(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function ia(e,n=!0,o=!0){n?e=ao(e,".",/\./g):e=e.replace(/\./g,""),o?e=ao(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function sa(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ye(e,o))return!0}):n.indexOf(e)}function ua(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ye(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function wt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function io(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ne(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}const ca=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(l[a]=n[r[a]]):n[a]&&(l[a]=n[a])}),l):e},ve=Symbol.for("BroadcastKey");class Nn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let r=!1;!n.name||n.name==="*"?r=!0:!n.name||n.name==="+"?(r=!1,n.name="*"):no(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&a.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...n},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(n,o,...l){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...n},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(n,o){this.callbacks.set(n,o)}}function qt(e,n,o,l){const r=new Nn(n,e,o);if(l&&typeof l=="object")for(const a in l)r.on(a,l[a]);return r}function fa(e,n,o){const l=o;if(l[ve])return l[ve];const r=t.inject(ve,null),a=new Nn(r,o,e);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return l[ve]=a,t.provide(ve,a),t.onUnmounted(()=>{a.destroy(),l[ve]=void 0}),a}function St(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ve]??t.inject(ve,null):t.inject(ve,null)}const rt=e=>e.default??e;class da{error(n,o){const l=o,r=o||t.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=n||t.hasInjectionContext()?St(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=n||t.hasInjectionContext()?St(n):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const r=l,a=l||t.hasInjectionContext()?St(l):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=n.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let xt=new da;function ha(e){xt=e}function ga(e){xt?Object.assign(xt,e):xt=e}function ma(e,n){rt(nt).setValidator(e,n)}function pa(e){rt(nt).deleteValidator(e)}let so=["blur","clear"];function ya(e){so=e}function uo(){return so}let co=["focus","change","setValue"];function ba(e){co=e}function fo(){return co}function va(e){rt(nt).messages(e)}function Tt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(a=>a.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function Pt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const qe=Symbol("ValidateSchemaKey");class ho{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(!0),this.scope.run(()=>{t.watchEffect(()=>{const o=Pt(Tt(this.attrRules,this.rules)),l=[];for(let a in n){let i=n[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};l.push(s)}}this.attrRules=Pt(l);const r=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const r=xt;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,l=!1){l?rt(nt).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?rt(nt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return rt(nt).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Pt(n):this.rules=Pt([n]);const l=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=Tt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${l}`]:o},a=this.getValue(),i={[`${l}`]:a},u=rt(nt),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(g=>{if(g.pass)this.success();else{let b="error";Array.isArray(g.errors)&&g.errors.length>0&&(b=g.errors[0].message??b,g.errors=[g.errors[0]],g.errors[0].ref=c),this.error(b)}return g}).catch(g=>{const b=g.message??`${g}`;return this.error(b),g})}}return Promise.resolve({pass:!0})}}function jt(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new ho(n,o,e)}const zt=Symbol.for("EventEmitterKey");class go{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let r=l.findIndex(a=>a===o);r!==-1&&l.splice(r,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function $t(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function mo(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}function wa(e,n){const o=$t((l,r)=>{e=l,r()},n);return t.customRef((l,r)=>({get(){return l(),e},set(a){o(a,r)}}))}function Sa(e){let n=!1;return function(...o){n||(n=!0,Reflect.apply(e,null,[...o]))}}function Ht(e,n,o,l=0,r=!0,a){let i=n,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Ae=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Kt{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const r=n[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const r=l._props[n];o.push(r)}l=l._parent}return o}}const xa=new Kt;function ct(){return xa}function Ge(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ae]??t.inject(Ae,null):t.inject(Ae,null)}const kn=Symbol("OriginalDateKey");function In(e,n,o=[],l){const r=t.getCurrentInstance();let a=r?.proxy,i=t.inject(Ae,null);i===null&&(i=ct());const u=e||n.prop||n.name;let s=new Kt(u);s.parent=i;const c=f=>{a[kn]||b(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,g=()=>a[kn]??null,b=f=>{const h={};lt(!0,h,t.toRaw(f)),a[kn]=h};t.isReactive(n)||typeof n=="function"?t.watch(n,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(n,o),n.modelValue&&b(n.modelValue);const w=(f,h)=>{s?.set(f,h)},p=f=>s?.getForSelf(f)??null;if(a[Ae]=s,t.provide(Ae,s),r!==null){const f=t.inject(ve,null),h=qt(a,f,u,l);s.broadcast=h,a[ve]=h,t.provide(ve,h),a.broadcast=(C,q,...j)=>Reflect.apply(h.emit,h,[C,q,...j]);const D=t.inject(qe,null),I=jt(a,D,{componentName:""});s.validateSchema=I,a[qe]=I,t.provide(qe,I),a[ut]=new Map,a.validate=(C=!0)=>{const q=[];let j=null;const B={deep:!1};if(C===!0)j={name:"*"};else if(Array.isArray(C)&&C.length>0){const _=C;j={name:L=>L?_.indexOf(L)!==-1:!1}}else if(C!=null&&typeof C=="object"){const _=C;if(Object.assign(B,_),Array.isArray(_.include)&&_.include.length>0){const L=_.include;j={name:x=>x?L.indexOf(x)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const L=_.exclude;j={name:x=>x?L.indexOf(x)===-1:!1}}else j={name:"*"}}if(j){const _=h?.emitToChildren(j,"validate",B);_&&Reflect.apply([].push,q,_)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(_=>{let L=[];return _.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(L=[...L,...x.errors])}),L.length>0?{pass:!1,errors:L}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(C,q=!0,j=!1)=>{if(j===!0){Reflect.ownKeys(C).forEach(_=>{let L=String(_);const x={componentName:"",fieldName:L,pureDataValidate:!0};if(s){const E=bo(s,L,x,h,I);a[ut].set(L,E);const y=C[L];y&&E.validateSchema.setRule(y)}});return}if(q){const B=Reflect.ownKeys(C),_={name:L=>B.includes(L)};h?.emitToChildren(_,"setNameValidateRules",C,!1)}},a.clearValidate=(C=!0)=>{let q=null;if(C===!0)q={name:"*"};else if(Array.isArray(C)&&C.length>0){const j=C;q={name:B=>B?j.indexOf(B)!==-1:!1}}else if(C!=null&&typeof C=="object"){const j=C;if(Array.isArray(j.include)&&j.include.length>0){const B=j.include;q={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const B=j.exclude;q={name:_=>_?B.indexOf(_)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=C=>{const q=d();if(!q)return;const j={};if(lt(!0,j,g()??{}),Array.isArray(C))C.forEach(B=>{q[B]=j[B]});else if(C&&Array.isArray(C.include))(C.include??[]).forEach(_=>{q[_]=j[_]});else if(C&&Array.isArray(C.exclude)){let B=C.exclude??[];Reflect.ownKeys(j).forEach(_=>{B.includes(_)||(q[_]=j[_])})}else Object.assign(q,j);a.clearValidate(C)},a.setModelValue=(C,q)=>{!q||q===u?c(C):h?.emitToChildren({name:q},"setModelValue",C)},a.getModelValue=()=>d(),a.setDomainProperty=(C,q)=>{w(C,q)},a.getDomainProperty=C=>p(C)}return t.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[qe]=void 0,t.provide(qe,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[ve]=void 0,t.provide(ve,null)),s?.destroy(),a[Ae]=void 0,t.provide(Ae,null),a[ut]&&(a[ut].clear(),a[ut]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function po(e,n,o=[]){let r=t.getCurrentInstance()?.proxy,a=t.inject(Ae,null);a===null&&(a=ct());const i=e||n.prop||n.name;let u=new Kt(i);return u.parent=a,t.isReactive(n)||typeof n=="function"?t.watch(n,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(n,o),r[Ae]=u,t.provide(Ae,u),t.onUnmounted(()=>{u?.destroy(),r[Ae]=void 0,t.provide(Ae,null),u=null,r=null}),u}function yo(e,n,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),n.setRule(a))}function $e(e,n,o){const r=t.getCurrentInstance()?.proxy,a=n??"",i=t.inject(ve,null);let u=qt(r,i,a,o);r[ve]=u,t.provide(ve,u),r.broadcast=(p,f,...h)=>u?Reflect.apply(u.emit,u,[p,f,...h]):null;const s=t.inject(qe,null);e.fieldName=e.fieldName??a;let c=jt(r,s,e);r[qe]=c,t.provide(qe,c),yo(r,c,a),r.validate=(p=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,D=!1;if(Array.isArray(p)&&p.indexOf(a)!==-1)D=!0,h=!0;else if(p&&typeof p=="object"){const I=p,C=I.ignoreDisabled??!0,q=I.ignoreReadonly??!0,j=I.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||j===!0&&_t(r.$el)?D=!1:(Array.isArray(I.include)&&I.include.indexOf(a)!==-1||Array.isArray(I.exclude)&&I.exclude.indexOf(a),D=!0),h=I.deep??!1}else typeof p=="boolean"&&(h=p),D=!0;if(D){const I=c?.validate();f.push(I)}if(h){let I=null;const C={deep:!1};if(p===!0)I={name:"*"};else if(Array.isArray(p)&&p.length>0){const q=p;I={name:j=>j?q.indexOf(j)!==-1:!1}}else if(p!=null&&typeof p=="object"){const q=p;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const j=q.include;I={name:B=>B?j.indexOf(B)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const j=q.exclude;I={name:B=>B?j.indexOf(B)===-1:!1}}else I={name:"*"}}if(I&&u){const q=u.emitToChildren(I,"validate",C);Reflect.apply([].push,f,q)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(I=>{let C=[];return I.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(C=[...C,...q.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=(p,f=!1)=>{const h=p[a];if(h&&c?.setRule(h),f&&u){const D={name:I=>Reflect.ownKeys(p).includes(I)};u.emitToChildren(D,"setNameValidateRules",p,!1)}},r.clearValidate=(p=null)=>{(!Array.isArray(p)||p.indexOf(n??"")!==-1)&&c?.clear();let f=null;if(p===!0)f={name:"*"};else if(Array.isArray(p)&&p.length>0){const h=p;f={name:D=>D?h.indexOf(D)!==-1:!1}}else if(p!=null&&typeof p=="object"){const h=p;if(Array.isArray(h.include)&&h.include.length>0){const D=h.include;f={name:I=>I?D.indexOf(I)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;f={name:I=>I?D.indexOf(I)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new go(r);r[zt]=d;const g=$t((p="validate")=>{c&&(p==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(p=>{d&&d.on(p,f=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(p=>{d&&d.on(p,f=>{g("reset")})}),t.onUnmounted(()=>{u?.destroy(),r[ve]=void 0,t.provide(ve,null),u=null,c?.destroy(),r[qe]=void 0,t.provide(qe,null),c=null,d?.destroy(),r[zt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(p,...f)=>{d&&Reflect.apply(d.emit,d,[p,...f])},onEvent:(p,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(p,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function bo(e,n,o,l,r){const a={},i=n??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=jt({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const g=[];let b=!1,w=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)w=!0,b=!0;else if(d&&typeof d=="object"){const p=d;Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),w=!0,b=p.deep??!1}else typeof d=="boolean"&&(b=d),w=!0;if(w&&s){const p=s.validate();g.push(p)}if(b){let p=null;const f={deep:!1};if(d===!0)p={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;p={name:D=>D?h.indexOf(D)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const D=h.include;p={name:I=>I?D.indexOf(I)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const D=h.exclude;p={name:I=>I?D.indexOf(I)===-1:!1}}else p={name:"*"}}if(p&&c){const h=c.emitToChildren(p,"validate",f);Reflect.apply([].push,g,h)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(p=>{let f=[];return p.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const g=d[i];g&&s?.setRule(g)};let c=qt(null,l,i,a);return t.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function vo(){let n=t.getCurrentInstance()?.proxy,o=new go(n);return n[zt]=o,t.onUnmounted(()=>{o?.destroy(),n[zt]=void 0,o=null,n=null}),{emitEvent:(l,...r)=>{o&&Reflect.apply(o.emit,o,[l,...r])},onEvent:(l,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(l,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const ke=(e,n=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&n<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,n)}px`:"";function he(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*n;const l=Number(e);return isNaN(l)?0:l}const Qe="PageStateKey";function ze(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=he(e.top)),e.left!==null&&e.left!==void 0&&(n.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=he(e.right))),n}function On(e,n,o={},l=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=he(o.headerHeight??n.headerHeight??-1),e.headerPadding=ze(o.headerPadding??n.headerPadding),e.footerHeight=he(o.footerHeight??n.footerHeight??-1),e.footerPadding=ze(o.footerPadding??n.footerPadding),e.contentPadding=ze(o.contentPadding??n.contentPadding),l){const s=o.height??n.height;s?e.height=he(s,a):e.height=he(a)-he(i,a)-he(u,a),e.width=he(o.width??n.width??0,r)}}function wo(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=he(r.top),l.safeAreaBottom=he(r.bottom),l.safeAreaLeft=he(r.left),l.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;On(l,a,n,!0,i,u,s,c);const d=t.reactive(l),g=e.getForParent(Qe);g&&(l.height=Yt(e,g),l.width=Gt(e,g),t.watch([()=>Yt(e,g),()=>Gt(e,g)],([w,p])=>{d.height=w,d.width=p}));const b=!g;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([w,p,f=-1,h=-1,D=0,I=0])=>{On(d,p,n,b,f,h,D,I)}),e.set(Qe,d),d}function Wt(e){return e.get(Qe)}function Ct(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const o=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+o}return 0}function Et(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const o=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+o}return 0}function Yt(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const o=Ct(e,n),l=Et(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function Gt(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Ta(e,n){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[n,e]):!1}function $a(e){return!!e.getForParent(Qe)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Vn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Oe(e,n,o=1,l){const r=Ge();return r==null?e:o===0?t.computed(()=>{const a=r.getAll(n);for(let u=a.length-1;u>=0;u--){const s=a[u];if(Vn(s,l))return s}const i=e.value;return Vn(i,l)?i:null}):t.computed(()=>{const a=e.value;return Vn(a,l)?a:r?.get(n)})}function Ve(e){return Oe(e,"readonly",0,function(o){return ue(o)})}function De(e){return Oe(e,"disabled",0,function(o){return ue(o)})}function ge(e,n="modelValue",o=null,l){const r=t.toRef(e,n);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=t.ref(a);return t.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const So=new Map,Ut=new Map;let Dn=null;function Ca(e){Dn=e}function xo(e,n,o){if(o){let l=Ut.get(o);l||(l=new Map,Ut.set(o,l)),l.set(e,n)}else So.set(e,n)}function Pe(e,n,o){!o&&Dn&&(o=Dn(e)??void 0);let l=null;if(o){let r=Ut.get(o);r&&(l=r.get(n))}return l||(l=So.get(n)),l}function Ea(e,n){for(let o in e){const l=e[o];xo(o,l,n)}}function Na(e){Ut.delete(e)}function ka(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,n=0){if(ot){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:l-he(e,l)-he(n,l)};return{rootWidth:o,rootHeight:l,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Oa(e,n){if(n.componentPrefix){const o=e.indexOf("-");return`${n.componentPrefix}${e.slice(o)}`}return e}class Va{packages;installers;_version;get version(){return this._version}constructor(n,o,l){this.packages=n,this.installers=o,this._version=l}install(n,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)n.use(a);else if(a.name){const i=Oa(a.name,o);n.component(i,a)}}),this.installers.forEach(a=>{a(n,o)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ct();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mo(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)l.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(n,o){const l=n.headerBarHeight??0,r=n.footerBarHeight??0,a=lt({},ka(),n.safeAreaInset),i=Ia(l,r),u=lt({},i.pageLayout,n.pageLayout);o=o??ct(),o.set("safeAreaInset",a),o.set("headerBarHeight",l),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(n){Ca(n)}setAPI(n,o,l){xo(n,o,l)}getAPI(n,o,l){return Pe(n,o,l)}batchSetAPI(n,o){Ea(n,o)}clearScopeAPI(n){Na(n)}getRootDomain(){return ct()}}const Da=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload,v.ElStatistic,v.ElCountdown,v.ElSegmented,v.ElAnchor,v.ElAnchorLink,v.ElWatermark,v.ElMessageBox,v.ElMessage,v.ElNotification],Fa=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ra=(e,n={})=>{const o=n.componentPrefix??"fox",l=o[0].toUpperCase()+o.slice(1);Da.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${l}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Fa.forEach(r=>{e.use(r)})};function se(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}function we(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ie={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,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},To={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}},$o={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}},Co=[];for(const e in $o)Co.push(e);const Aa=Symbol.for("InnerPageScopeKey"),La={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}},Ma=(e,n)=>({inheritAttrs:!0,props:{...xe,...To,...La},setup(o,{slots:l}){const r=In(o.name,o),a=t.inject(Aa,!1);if(r){const d=wo(r,o);we({getPageContentHeight:()=>Yt(r,d),getPageContentWidth:()=>Gt(r,d),getPageHeaderHeight:()=>Ct(r,d),getPageFooterHeight:()=>Et(r,d)}),d&&a&&(d.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),u=t.computed(()=>({})),s=t.getCurrentInstance(),c=(d,g=!1)=>{const b=s?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(d,!0,g)};return t.watch([()=>o.rules,()=>o.pureDataRules],([d,g],[b,w])=>{if(d&&b){const p=t.toRaw(b),f=t.toRaw(d),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(I=>{h.includes(I)||(f[I]=[])}),c(f)}if(g&&w){const p=t.toRaw(w),f=t.toRaw(g),h=f?Reflect.ownKeys(f):[];(p?Reflect.ownKeys(p):[]).forEach(I=>{h.includes(I)||(f[I]=[])}),c(f,!0)}},{deep:!0}),t.onMounted(()=>{if(o.rules){const d=t.toRaw(o.rules);c(d)}if(o.pureDataRules){const d=t.toRaw(o.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return t.h("div",d,[l?.default?.()])}}}),{componentName:Ba,create:_a,scope:vh}=se("page"),Fn=_a(Ma(Ba));function Xt(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Rn(e){const n=t.unref(e),o=window.getComputedStyle(n,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:n.clientWidth-l-r,height:n.clientHeight-a-i}}const qa=(e,n,o,l=!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:o},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(r,a){const i=Ge(),u=i?Wt(i):null;u&&(u.headerMounted=!0);const s=e,c=t.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=t.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),g=r.height!==null&&r.height!==void 0?he(r.height):null,b=t.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const y=ze(r.padding??u.headerPadding);return Object.assign(E,y),g&&(u.headerHeight=g),u.headerHeight>0&&(E.height=u.headerHeight),E.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(y.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(g&&(E.height=g),r.padding){const y=ze(r.padding);Object.assign(E,y)}return E}),w=t.ref(null),p=()=>{if(u&&w.value&&!_t(w.value)){if(!l){const E=Xt(w.value);u.headerAllHeight=E.height}return u.headerMounted=!0,!0}return!1};let f=null;t.onMounted(()=>{u&&(Ht(p,50,5,50,!0),window.ResizeObserver&&w.value&&(f=new window.ResizeObserver(()=>{p()}),f.observe(w.value)))}),t.onUnmounted(()=>{u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const h=t.computed(()=>{const E={};return b.value.height!==null&&b.value.height!==void 0&&(E.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(E.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(E.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(E.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(E.paddingBottom=`${b.value.bottom}px`),E}),D=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function I(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function j(){a.emit("click-right-text")}const B=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const y=t.h("view",{class:"left-icon",onClick:I},[a.slots.leftIcon()]);E.push(y)}else if(r.leftIcon){const y=t.h("view",{class:"left-icon",onClick:I},[t.h(r.leftIcon)]);E.push(y)}if(r.leftText){const y=t.h("view",{class:"left-text",onClick:I},[r.leftText]);E.push(y)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__left"},E)},_=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const y=t.h("view",{class:"right-text",onClick:j},[r.rightText]);E.push(y)}if(a.slots.rightIcon){const y=t.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);E.push(y)}else if(r.rightIcon){const y=t.h("view",{class:"right-icon",onClick:q},[t.h(r.rightIcon)]);E.push(y)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__right"},E)},L=()=>{if(!r.titleShow)return null;const E=[],y=a.slots.default?a.slots.default():null;if(y)E.push(y);else{if(r.title){const P=t.h("view",{class:"title-text"},[r.title]);E.push(P)}if(a.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);E.push(P)}else if(r.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[t.h(r.titleIcon)]);E.push(P)}}return E.length===0?null:t.h("view",{class:"fox-header-bar__title"},E)},x=()=>{const E=[],y=a.slots.bottom?a.slots.bottom():null;return y&&E.push(y),E.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!D.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const P=[],J=B();J&&P.push(J);const A=L();A&&P.push(A);const $=_();if($&&P.push($),P.length>0){const M=t.h("view",{class:d.value},P);E.push(M)}const F=x();F&&E.push(F)}if(E.length===0)return null;const y={class:c.value,style:h.value,ref:w};return t.h("view",y,E)}}}),{componentName:Pa,create:ja,scope:za}=se("header-bar"),An=ja(qa(Pa,za,Ce.ArrowLeft));function Ha(e,n,o=!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(l,r){const a=Ge(),i=a?Wt(a):null,u=t.computed(()=>{const p=e;return{[p]:!0,[`${p}--${l.align}`]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed,[`${p}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?he(l.height):null,c=t.computed(()=>{const p={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const f=ze(l.padding??i.footerPadding);return Object.assign(p,f),s&&(i.footerHeight=s),i.footerHeight>0&&(p.height=i.footerHeight),p.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,p.safeAreaBottom>0&&(p.bottom=p.safeAreaBottom+(f.bottom??0),p.height&&p.height>0&&(p.height=p.height+p.safeAreaBottom)),p}if(s&&(p.height=s),l.padding){const f=ze(l.padding);Object.assign(p,f)}return p}),d=t.ref(null),g=()=>{if(i&&d.value&&!_t(d.value)){if(!o){const p=Xt(d.value);i.footerAllHeight=p.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(Ht(g,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{g()}),b.observe(d.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const w=t.computed(()=>{const p={};return c.value.height!==null&&c.value.height!==void 0&&(p.height=ke(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(p.paddingTop=ke(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(p.paddingLeft=ke(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(p.paddingRight=ke(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(p.paddingBottom=ke(c.value.bottom)),p});return()=>{const p=r.slots.default?r.slots.default():[],f={ref:d,class:u.value,style:w.value};return t.h("view",f,p)}}}}const{componentName:Ka,create:Wa,scope:wh}=se("footer-bar"),Ln=Wa(Ha(Ka));function Ya(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ge(),r=t.computed(()=>({[e]:!0})),a=l?Wt(l):null,i=t.computed(()=>{const c={};if(l&&a){if(o.padding){const w=ze(o.padding);Object.assign(a.contentPadding,w)}const d=Ct(l,a),g=Et(l,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,c.height=b,a.contentPadding.top||d>0){const w=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${d+w}px`}if(a.contentPadding.bottom||g>0){const w=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${g+w}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const d=ze(o.padding);d.left&&(c.paddingLeft=`${d.left}px`),d.top&&(c.paddingTop=`${d.top}px`),d.right&&(c.paddingRight=`${d.right}px`),d.bottom&&(c.paddingBottom=`${d.bottom}px`)}return c}),u=t.ref(null),s=()=>{if(a&&u.value){const c=Rn(u.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return t.onMounted(()=>{s()}),l&&a&&t.watch([()=>Ct(l),()=>Et(l)],([])=>{s()}),{contentRef:u,classes:r,styles:i}}}}const{componentName:Ga,create:Ua,scope:Sh}=se("content"),Xa=Ua(Ya(Ga));function Za(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("div",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const _e=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Mn=_e(Xa,[["render",Za]]),ft="GroupStateKey",Eo=Symbol.for("GroupScopeKey");function Zt(){return t.inject(Eo,!1)}function Jt(e=!0){t.provide(Eo,e)}function Ja(e,n={}){Reflect.ownKeys(n).forEach(l=>{if(typeof l!="string")return;const r=n[l];En(r)||(e[l]=r)})}function Qa(e,n={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ja(l,n);const r=t.shallowRef(l),a=t.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ft,a),a}function Bn(e,n,o=-1,l=-1,r=!1,a,i,u){const s=e.get(ft);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),l===-1&&(l=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=he(a),g=he(i);u||(u=c.type??"grid");const b=()=>{const w=n===""||n===-1,p=he(n);let f=Se(o);const h=he(l);if(!w){let C=(p-(f-1)*h)/f;for(;g!==-1&&C>g;)f++,C=(p-(f-1)*h)/f;for(;d!==-1&&f>1&&C<d;)f--,C=(p-(f-1)*h)/f}let D=!1;const I=s.layout;I.value.width=n,I.value.column!==f&&(I.value.column=f,D=!0),I.value.gutter!==h&&(I.value.gutter=h,D=!0),I.value.type!==u&&(I.value.type=u,D=!0),D&&t.triggerRef(I)};if(r)b();else{const w=++s.passport;setTimeout(()=>{w===s.passport&&b()},50)}}function Qt(e,n=!1){let o;return n?o=e.getForParent(ft):o=e.get(ft),o.layout}function en(e,n=!1){let o;return n?o=e.getForParent(ft):o=e.get(ft),o.order}function No(e,n=1){if(n==="stretch")return-1;const o=Se(n);return o===-1?100:100*o/e}function tn(e,n,o=1,l=0,r){const a={};let i=0;r?i=he(r):i=No(n.column,o),i>0&&(a.width=`${i}%`);const u=No(n.column,l);u>0&&(a["margin-left"]=`${u}%`);const s=n.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function nn(e,n,o=1,l=0){if(o==="stretch"){const s=e.index%n.column,c=s+(n.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Se(o);if(r===-1){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}if(r>n.column){const s=e.index%n.column;return n.column,s==0?e.index=e.index+n.column:e.index=e.index+(n.column-s)+n.column,{"grid-column":"1 / -1"}}const a=Se(l)%n.column;let i=(e.index+a)%n.column,u=i+r;return u>n.column?(i=0,u=i+r,e.index=e.index+(n.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const ko=Symbol("RollingStateKey");function ei(e){t.provide(ko,e)}function ti(){return t.inject(ko,null)}function _n(e){let n=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));n=e.clientHeight-r-a}else n=e.offsetHeight;return n}function ni(e){let n=_n(e);if(n<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),n=_n(o),document.body.removeChild(o)}return n}function li(e,n,o){if(e<=0)return"1fr";const l=(e-(n-1)*o)/n;return l>0?`${l}px`:"1fr"}const oi={...xe,...To,...$o};function ri(e,n,o){return{props:oi,emits:["update:collapse","header-click"],setup(l,r){const a=In(l.prop??l.name,l,Co),i=Qa(a,{type:l.type}),u=Zt();Jt(!0);const s=l.rollingDisplay?ti():null,c=t.ref(null),d=t.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),g=t.computed(()=>u&&a?Qt(a,!0).value:null),b=t.getCurrentInstance(),w=(N,H=!1)=>{const X=b?.proxy;X&&typeof X.setNameValidateRules=="function"&&X.setNameValidateRules(N,!0,H)};t.watch([()=>l.rules,()=>l.pureDataRules],([N,H],[X,k])=>{if(N&&X){const K=t.toRaw(X),te=t.toRaw(N),oe=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ie=>{oe.includes(ie)||(te[ie]=[])}),w(te)}if(H&&k){const K=t.toRaw(k),te=t.toRaw(H),oe=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ie=>{oe.includes(ie)||(te[ie]=[])}),w(te,!0)}},{deep:!0});const p=e,f=t.computed(()=>{const N={};N.height=$.value;const H=u?en(a,!0):null;if(g.value&&H){if(g.value.type==="grid"){const X=nn(H,g.value,l.span,l.offset);Object.assign(N,X)}else if(g.value.type==="flow"){const X=tn(H,g.value,l.span,l.offset,l.width);Object.assign(N,X)}}else if(l.width){const X=ke(l.width);N.width=X}return N}),h=t.computed(()=>{const N=i.layout.value.type;return N==="grid"||N==="flow"?{[`${p}--${N}`]:!0,[`${p}--${N}-justify-${l.justify}`]:!0,[`${p}--${N}-align-${l.align}`]:!0,[`${p}--gutter`]:!0}:{[`${p}--${N}`]:!0,[`${p}--gutter`]:!0}}),D=t.computed(()=>{if(i.layout.value.type==="grid"){let H="";if(l.columnWidth)H=`repeat(auto-fill, ${l.columnWidth})`;else{const X=li(L.value,i.layout.value.column,i.layout.value.gutter);H=`repeat(${i.layout.value.column}, ${X})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":H}}}),I=t.toRef(l,"gutter"),C=t.toRef(l,"column"),q=t.computed(()=>u||d.value?!0:ue(l.isWrap)),j=[],B=N=>{j.push(N)},_=()=>{let N=j.length;j.splice(0,N)},L=t.ref(-1),x=N=>{const H=Rn(N).width;H>0&&H!==L.value&&(L.value=H)};Bn(a,L.value,C.value,I.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&t.watch([L,C,I],([N,H,X])=>{i.order.index=0,Bn(a,N,H,X,!1,l.minItemWidth,l.maxItemWidth,l.type)});const E=t.computed(()=>F.value?l.expandText??"":l.collapseText??""),y=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!F.value,"is-collapse":F.value})),J=t.ref(),A=t.ref(),$=t.computed(()=>M.value||ke(l.height)||""),F=t.ref(!1),M=t.ref(""),Y=t.ref(!1);let Z=-1;const ee=(N,H=!0)=>{const X=J.value;if(X&&F.value!==N){if(Z=Z===-1?ni(X):Z,Y.value=!0,H)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",N||(M.value="",Y.value=!1)},N){let k=0;l.collapseHeight?k=l.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(k=A.value.offsetHeight),M.value=`${Z}px`,t.nextTick(()=>{M.value=`${k}px`})}else M.value=`${Z}px`;else if(N){let k=0;l.collapseHeight?k=l.collapseHeight:A.value&&A.value.classList.contains(`${e}__header`)&&(k=A.value.offsetHeight),M.value=`${k}px`}else Y.value=!1,M.value=`${Z}px`;F.value=N,r.emit("update:collapse",N)}};t.watch(()=>l.collapse,N=>{ee(N)});const le=N=>{r.emit("header-click",N)},O=()=>{T()},T=N=>{N=N??!F.value,ee(N)};we({toggleCollapse:T,doLayout:()=>{j[0]&&(x(j[0]),Bn(a,L.value,C.value,I.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let V=null,S=!0;const z=N=>{if(l.rules){const H=t.toRaw(l.rules);w(H)}if(l.pureDataRules){const H=t.toRaw(l.pureDataRules);w(H,!0)}if(ot&&(N&&ee(ue(l.collapse),!1),l.autoLayout&&Array.isArray(j)&&j.length>0)){const H=j[0];x(H),window.ResizeObserver&&(V=new window.ResizeObserver(()=>{x(H)}),V.observe(H))}},U=()=>{V?.disconnect(),V=null},ne=!d.value||s?.acquire();ne&&(c.value=d.value?!0:null),t.onMounted(()=>{if(ne&&(z(S),S=!1),d.value&&s){let N=null,H=s.initialHeight;s.observe(J.value,X=>{if(X!==c.value)if(X)c.value=!0,F.value||(M.value=""),N=setTimeout(()=>{N=null,c.value!==!1&&(z(S),S=!1)},100);else{if(N!==null&&clearTimeout(N),c.value=!1,!F.value)if(S)M.value=s.initialHeight;else{let k=_n(J.value);k<=0?M.value=H:(M.value=`${k}px`,H=M.value)}S||U()}})}}),t.onUnmounted(()=>{V?.disconnect(),s&&s.unobserve(J.value)});const G=(N="right")=>{const H=[];if(E.value){const K={class:y.value},te=t.h("span",K,[E.value]);H.push(te)}const X={class:P.value},k=o(l.collapseIcon,X);return k&&H.push(k),H.length>0?t.h("div",{class:{[`${p}__header-collapse`]:!0,[`is-${N}`]:!0},onClick:O},H):null},W=(N,H,X,k)=>{const K={...h.value};return H===0&&(K[`${p}__first`]=!0),X>=k-1&&(K[`${p}__last`]=!0),t.h("div",{ref:B,key:`${H}`,class:K,style:D.value},N)};return()=>{if(d.value&&c.value!==!0){const K=l.tag||"div";return t.h(K,{ref:J,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Y.value},style:f.value},[])}i.order.index=0;const N=[];let H=0;if(r.slots.header){const K={key:`${H++}`,ref:A,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:le},te=t.h("div",K,[r.slots.header()]);N.push(te)}else{const K=[],te=l.collapsePosition==="left";if(te&&l.showCollapse){const oe=G("left");oe&&K.push(oe)}if(l.title||r.slots.title){if(l.showMark){const oe={class:{[`${p}__header-mark`]:!0}};l.markColor&&(oe.style={background:l.markColor});const ce=t.h("div",oe);K.push(ce)}if(r.slots.title){const oe=t.h("div",{class:{[`${p}__header-title`]:!0}},[r.slots.title()]);K.push(oe)}else if(l.title){const oe=t.h("div",{class:{[`${p}__header-title`]:!0}},[l.title]);K.push(oe)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!te&&l.showCollapse){const oe=G("right");oe&&K.push(oe)}if(K.length>0){const oe={key:`${H++}`,ref:A,class:{[`${p}__header`]:!0,[`${p}__first`]:!0},onClick:le},ce=t.h("div",oe,K);N.push(ce)}}_();const X=r.slots.default?r.slots.default():[],k=i.layout.value.type;if(k==="grid"){const K=W(X,H++,0,X.length);N.push(K)}else if(k==="flow"){const K=W(X,H++,0,X.length);N.push(K)}else for(let K=0;K<X.length;K++){const te=X[K],oe=W([te],H++,K,X.length);N.push(oe)}if(q.value){const K=l.tag||"div";return t.h(K,{ref:J,prop:l.name,class:{[`${p}`]:!0,"is-collapse":Y.value},style:f.value},[N])}else return N}}}}const{componentName:ai,create:ii,scope:si}=se("group"),qn=ii(ri(ai,si,(e,n)=>(e=e??Ce.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]}))));function ui(e){return e===window}const ci=/matrix\((.+)\)/,Io=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(ui(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=n;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=ci.exec(c);if(d){let b=d[1].split(/\s*,\s*/);b.length==6&&(u+=Number(b[4]),s+=Number(b[5]))}}r=r.parentNode}return o-=a,l-=i,o+=u,l+=s,{x:o,y:l}};class fi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class di{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a||(a=new fi,l.addEventListener("scroll",a.listen),l===document.body&&l.addEventListener("resize",a.listen),this.monitorRegister.set(l,a)),a.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",a.listen),l===document.body&&l.removeEventListener("resize",a.listen))),l=l.parentNode}}}const Oo=new di,Vo={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:hi,create:gi}=se("price"),mi=gi({props:{...Vo},setup(e){const n=t.computed(()=>({[hi]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>wt(e.price)==0?"":Lt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=t.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:n,showSymbol:o,intText:r,decimalText:a}}}),pi=["innerHTML"],yi=["innerHTML"];function bi(e,n,o,l,r,a){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,pi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):t.createCommentVNode("",!0)],2)}const ln=_e(mi,[["render",bi]]),{componentName:Pn,create:vi}=se("hint-text"),wi=vi({components:{Price:ln},props:{...Vo,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,n){const o=t.ref({top:null,right:null,bottom:null,left:null}),l=t.ref({x:0,y:0}),r=t.ref(0),a=t.ref(0),i=t.ref(e.placement),u=t.ref(!1),s=t.ref(null),c=(y,P,J,A,$,F)=>{const M=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,Z=y.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},O=[];for(let T=0;T<ee.length;T++){const R=ee[T];if(O[0]=R,Z[1]&&(O[1]=Z[1]),R==="top"){const V=P.y-F-e.arrowSize-e.offset;if(V>=0){le.top=V;let S=0;Z[1]==="start"?S=P.x:Z[1]==="end"?S=P.x+J-$:S=P.x+J/2-$/2;const z=M-S-$;z<0?(S+=z,g.value=-z):g.value=0,le.left=S<0?0:S;break}}else if(R==="bottom"){const V=P.y+A+e.arrowSize+e.offset;if(V+F<=Y){le.top=V;let S=0;Z[1]==="start"?S=P.x:Z[1]==="end"?S=P.x+J-$:S=P.x+J/2-$/2;const z=M-S-$;z<0?(S+=z,g.value=-z):g.value=0,le.left=S<0?0:S;break}}else if(R==="left"){const V=P.x-$-e.arrowSize-e.offset;if(V>=0){le.left=V;let S=0;Z[1]==="start"?S=P.y:Z[1]==="end"?S=P.y+A-F:S=P.y+A/2-F/2,le.top=S<0?0:S;break}}else if(R==="right"){const V=P.x+J+e.arrowSize+e.offset;if(V+$<=M){le.left=V;let S=0;Z[1]==="start"?S=P.y:Z[1]==="end"?S=P.y+A-F:S=P.y+A/2-F/2,le.top=S<0?0:S;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},d=(y,P,J=10)=>{if(!ot||P===!1||!y)return;l.value=Io(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const A=s.value.offsetHeight,$=s.value.offsetWidth,{bestPlacement:F,bestInsetRect:M}=c(e.placement,l.value,r.value,a.value,$,A);i.value=F,o.value=M,u.value=!0},g=t.ref(0),b=$t(()=>{d(e.message,e.visible)},10),w=t.ref(e.visible);t.watch(()=>e.visible,y=>{w.value=y});const p=t.computed(()=>w.value&&f.value),f=t.ref(!0),h=$t(y=>{const P=y[0];P&&(f.value=P.isIntersecting)},10),D=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([y,P])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Oo.watch(e.reference,b),D.observe(e.reference)}),t.onBeforeMount(()=>{Oo.unwatch(e.reference,b),D.unobserve(e.reference),D.disconnect()});const I=t.computed(()=>{const y={[Pn]:!0};return i.value.startsWith("top")?y["is-top"]=!0:i.value.startsWith("right")?y["is-right"]=!0:i.value.startsWith("bottom")?y["is-bottom"]=!0:i.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),C=t.computed(()=>{const y={};o.value.top!==null&&(y.top=`${o.value.top}px`),o.value.right!==null&&(y.right=`${o.value.right}px`),o.value.bottom!==null&&(y.bottom=`${o.value.bottom}px`),o.value.left!==null&&(y.left=`${o.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${P}px`,u.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=t.computed(()=>{const y=[`${Pn}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),j=t.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),B=t.computed(()=>({[`${Pn}__arrow`]:!0})),_=t.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,i.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="top-start"?(y.left=`${e.arrowOffset+g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(y.right=`${e.arrowOffset-g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(y.left=`${e.arrowOffset+g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(y.right=`${e.arrowOffset-g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),L=t.computed(()=>p.value&&e.closeOnClick),x=t.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:p,tipRef:s,classes:I,styles:C,textClasses:q,textStyles:j,arrowClasses:B,arrowStyles:_,overlayShow:L,overlayStyle:x,onClickOverlay:()=>{w.value=!1,n.emit("update:visible",!1)}}}}),Si=["innerHTML"];function xi(e,n,o,l,r,a){const i=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Si))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Nt=_e(wi,[["render",xi]]);class Do{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const jn={},Ti=new Do,dt=new Map,on=e=>{if(e){const n=document.getElementById(e);dt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of dt.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}dt.clear()}},$i=e=>{e.unmount=on;const n=document.getElementById(e.id);if(n){const o=dt.get(e.id);o?e={...jn,...o,...e}:e={...jn,...e},e.transition=!1;const l=t.createVNode(Nt,e);t.render(l,n)}return e.id},Ci=e=>{e.unmount=on;let n=e.id??`hinttext_${Ti.get()}`;e={...jn,...e},e.id=n,dt.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Nt,e);return t.render(l,o),document.body.appendChild(o),n},Ei=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Fe={show(e,n,o={},l=!0){Ei(n);const r=o.id;return r&&dt.has(r)?$i({...o,message:n,reference:e}):(l&&on(),Ci({...o,message:n,reference:e}))},hide(e){on(e)},install(e){e.config.globalProperties.$hintText=Fe}};function Ni(e,n,o,l=!1){return{inheritAttrs:!0,props:{...xe,...Ie},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;$e({componentName:e,validate:!1},i);const u=Ge(),s=Zt();Jt(!1);const c=t.computed(()=>s&&u?Qt(u,!1).value:null),d=e,g=t.ref(null),b=t.computed(()=>{const k={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(k[r.errorMarkClass]=!!F.value,k[r.warnMarkClass]=!!A.value,k[r.infoMarkClass]=!!P.value,typeof g.value=="function"){const K=g.value(i);k[K]=!0}else if(typeof g.value=="string"){const K=g.value;k[K]=!0}return k}),w=t.ref(null),p=t.computed(()=>{const k={};if(r.width)r.width!=="auto"&&(k.width=ke(r.width));else{const K=s&&u?en(u,!1):null;if(c.value&&K){if(c.value.type==="grid"){const te=nn(K,c.value,r.span,r.offset);Object.assign(k,te)}else if(c.value.type==="flow"){const te=tn(K,c.value,r.span,r.offset,r.width);Object.assign(k,te)}}}if(typeof w.value=="function"){const K=w.value(i);K&&Object.assign(k,K)}else if(w.value&&typeof w.value=="object"){const K=w.value;Object.assign(k,K)}return k}),f=t.ref(null),h=t.computed({get:()=>f.value??ue(r.isRequired),set:k=>{f.value=k}}),D=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",I=Oe(t.toRef(r,"labelPosition"),"labelPosition",Me.Near),C=t.computed(()=>I&&I.value==="top"?"top":I&&I.value==="right"?"right":"left"),q=t.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${C.value}`]:!0})),j=t.computed(()=>({label:!0,[`label--${C.value}`]:!0})),B=Oe(t.toRef(r,"labelWidth"),"labelWidth",Me.Near),_=t.computed(()=>B&&B.value?{width:ke(B.value)}:{}),L=t.computed(()=>({"label--string":!0,"label--required":h.value})),x=t.computed(()=>({content:!0,[r.contentClass]:!0})),E=t.computed(()=>({...r.contentStyle})),y=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});we({setRequired(k){h.value=k},setErrorTip(k){y.errorTip=k},setErrorIcon(k){y.errorIcon=k},setWarnTip(k){y.warnTip=k},setWarnIcon(k){y.warnIcon=k},setInfoTip(k){y.infoTip=k},setInfoIcon(k){y.infoIcon=k},setCustomClassName(k){g.value=k},setCustomStyle(k){w.value=k}});const P=t.computed(()=>r.infoTip||y.infoTip),J=t.computed(()=>r.infoIcon||y.infoIcon),A=t.computed(()=>r.warnTip||y.warnTip),$=t.computed(()=>r.warnIcon||y.warnIcon),F=t.computed(()=>r.errorTip||y.errorTip),M=t.computed(()=>r.errorIcon||y.errorIcon),Y=t.computed(()=>F.value?"error":A.value?"warn":P.value?"info":""),Z=()=>Y.value.length>0,ee=t.computed(()=>Y.value==="error"?F.value:Y.value==="warn"?A.value:Y.value==="info"?P.value:""),le=t.computed(()=>Y.value==="error"?M.value:Y.value==="warn"?$.value:Y.value==="info"?J.value:null),O=t.computed(()=>{const k={[`${d}__tip`]:!0,[`${d}__tip--${Y.value}`]:!0,[`${d}--animate`]:!0};return Y.value==="error"&&r.errorClass?k[`${r.errorClass}`]=!0:Y.value==="warn"&&r.warnClass?k[`${r.warnClass}`]=!0:Y.value==="info"&&r.infoClass&&(k[`${r.infoClass}`]=!0),k}),T=t.computed(()=>{const k={};return I&&I.value==="top"||!D()?k["padding-left"]="0px":B&&B.value&&(k["padding-left"]=ke(B.value)),k}),R=t.ref();let V="";t.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([k,K,te,oe])=>{R.value&&(k&&!pe(K)?V?o.show(R.value,K,{...oe,id:V,type:te},!0):V=o.show(R.value,K,{...oe,type:te},!0):o.hide(V))});let S=null;const z=()=>{S||!R.value||(S=new IntersectionObserver(k=>{let K=!1;for(let te of k)if(te.intersectionRatio>0){K=!0,K&&a.emit("appear",te);break}K||a.emit("disappear")}),S.observe(R.value))},U=()=>{!S||!R.value||(S.unobserve(R.value),S=null)};t.watch(()=>ue(r.appearListen),k=>{k?z():U()}),t.onMounted(()=>{ue(r.appearListen)&&z()}),t.onUnmounted(U);const ne=()=>{if(!D())return null;const k=[],K=a.slots?.label?.()??r.label,te={class:L.value},oe=t.h("div",te,[K]);if(k.push(oe),a.slots.fixedPreTip){const ie=a.slots.fixedPreTip();k.push(ie)}const ce={class:j.value,style:_.value};return t.h("div",ce,k)},G=()=>{const k=[];if(a.slots.prepend){const te=a.slots.prepend();k.push(te)}if(a.slots.default){const te=a.slots.default();k.push(te)}if(a.slots.append){const te=a.slots.append();k.push(te)}if(a.slots.fixedTip){const te={class:[`${d}__fixed-tip`]},oe=t.h("div",te,[a.slots.fixedTip()]);k.push(oe)}const K={ref:R,class:x.value,style:E.value};return t.h("div",K,k)},W=()=>{const k=le.value;return k?typeof k=="function"?t.h("div",{class:"fox-item__tip--icon"},[k()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(k)]):null},N=()=>{const k=ee.value;return k?typeof k=="function"?t.h("div",{class:"fox-item__tip--text"},[k()]):t.h("div",{class:"fox-item__tip--text"},[k]):null},H=()=>{if(!Z())return null;const k=[],K=W();K&&k.push(K);const te=N();te&&k.push(te);const oe={class:O.value,style:T.value};return t.h("div",oe,k)},X=()=>a.slots?.hide?.()??null;return()=>{const k=[],K=[],te=ne();te&&K.push(te);const oe=G();oe&&K.push(oe);const ce={class:q.value},ie=t.h("div",ce,K);k.push(ie);const Q=H();Q&&k.push(Q);const re=X();re&&k.push(re);const ae={class:b.value,style:p.value,prop:r.prop};return t.h("div",ae,k)}}}}const{componentName:ki,create:Ii,scope:Oi}=se("item"),Te=Ii(Ni(ki,Oi,Fe,!1));function Vi(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const r=Ge(),a=Zt();Jt(!1);const i=t.computed(()=>a&&r?Qt(r,!1).value:null),u=e,s=t.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=t.computed(()=>{const d={},g=a&&r?en(r,!1):null;if(i.value&&g)if(i.value.type==="grid"){const b=nn(g,i.value,o.span,o.offset);Object.assign(d,b)}else if(i.value.type==="flow"){const b=tn(g,i.value,o.span,o.offset,o.width);Object.assign(d,b)}else return o.width&&(d.width=ke(o.width)),d;else o.width&&(d.width=ke(o.width));return d});return()=>{const d={class:s.value,style:c.value};return l.slots&&typeof l.slots.default=="function"?t.h("div",d,l.slots.default()):t.h("div",d)}}}}const{componentName:Di,create:Fi,scope:Th}=se("slot-item"),zn=Fi(Vi(Di));function Ri(e,n){return{props:{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"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,l){const r=e,a=t.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Ge(),u=Zt();Jt(!1);const s=t.computed(()=>{const c={};if(u&&i){const d=Qt(i,!1),g=en(i,!1);if(d.value&&g)if(d.value.type==="grid"){const b=nn(g,d.value,o.span,o.offset);Object.assign(c,b)}else if(d.value.type==="flow"){const b=tn(g,d.value,o.span,o.offset,o.width);Object.assign(c,b)}else o.width&&(c.width=ke(o.width))}else o.width&&(c.width=ke(o.width));return c});return()=>{const c=[];if(l.slots.default){const g=l.slots.default();if(o.divide)for(let b=0;b<g.length;b++){if(b>0){const w=t.h("div",{class:{[`${r}__divide`]:!0}});c.push(w)}c.push(g[b])}else Reflect.apply([].push,c,g)}const d={class:a.value,style:s.value};return t.h("div",d,c)}}}}const{componentName:Ai,create:Li,scope:$h}=se("row-item"),Hn=Li(Ri(Ai)),He=(e={})=>{if(!e)return{};const n={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(n[l]=e[l])}),n},Fo={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}};function Mi(e,n,o){return{props:{...xe,...Ie,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0,[`${p}__disabled`]:i.value,[`${p}__readonly`]:s.value})),h=$=>{w.value=$,c("update:modelValue",$),c("input",$)},D=$=>{c("change",$)};let I=ge(l,"hintText"),C=t.ref(!1);const q=$=>{let M=$.target.value;b.value=!0,pe(I.value)||(C.value=!0),c("focus",M,$)},j=$=>{setTimeout(()=>{C.value&&(C.value=!1),b.value=!1},0);let M=$.target.value;l.maxLength&&M.length>Number(l.maxLength)&&(M=M.slice(0,Number(l.maxLength))),c("blur",M,$)},B=()=>{c("clear","")},_=t.ref(!1);let L=null;const x=()=>{l.showTooltip&&_.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{_.value=!0},150))},E=()=>{L&&(clearTimeout(L),_.value=!1,L=null)},y=t.computed(()=>_.value||C.value),P=t.computed(()=>_.value?w.value:I.value),J=t.computed(()=>wt(l.unit)>0),A=t.ref();return we({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()},setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const F={...He(r.attrs),ref:A,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:B,onChange:D,onInput:h,onFocus:q,onBlur:j,onMouseover:x,onMouseleave:E},M={};r.slots.prepend&&(M.prepend=r.slots.prepend),r.slots.append&&(M.append=r.slots.append),r.slots.prefix&&(M.prefix=r.slots.prefix),r.slots.suffix?M.suffix=r.slots.suffix:J.value&&(M.suffix=()=>[l.unit]);const Y=[],Z=t.h(v.ElInput,F,M);Y.push(Z);const ee={default:()=>Y};r.slots.default&&(ee.label=r.slots.default),r.slots.default&&(ee.fixedTip=r.slots.fixedTip);const O={...Ne(l,Fo),hintText:P.value,hintVisible:y.value};return l.prop&&(O.prop=`${l.prop}_item`),t.h(o,O,ee)}}}}const{componentName:Bi,create:_i,scope:qi}=se("input-item"),Kn=_i(Mi(Bi,qi,Te));function et(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function kt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ro(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}function Pi(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let ji=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function zi(){const e=t.getCurrentInstance();return new ji(e.proxy)}function Ao(e,n,o){const l=et(e,n),r=et(e,o);if(l!==r)return!1;const a=kt(e,n),i=kt(e,o);return a===i}function Lo(e,n,o,l){if(l.length===0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of l){const u=Ro(e,i);if(Array.isArray(u)&&u.length>0){const s=Lo(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=et(e,i)===a;else if(o==="item")s=Ao(e,i,a);else{let c=kt(e,i);c==null&&(c=et(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function Hi(e){return{text:e,value:e}}const Mo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},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}};function Ki(e,n,o){return{props:{...xe,...Ie,...Mo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(null),w=t.ref([]),p=t.computed(()=>w.value?w.value.map(H=>et(l,H)).join(" "):""),f=(N,H,X,k=!0)=>{const K=Lo(l,N,H,X);if(K===null){if(w.value===null||w.value.length===0)return;b.value=null,w.value=[],k&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let te=!0;if(K.length!==w.value.length)te=!1;else for(let oe=0;oe<K.length;oe++){const ce=K[oe],ie=w.value[oe];if(!Ao(l,ce,ie)){te=!1;break}}if(!te){w.value=K;let oe=[],ce=[],ie=[];K.forEach(fe=>{const ye=kt(l,fe),me=et(l,fe);oe.push(ye),ie.push(me),l.valueType==="text"?ce.push(me):l.valueType==="item"?ce.push(fe):ce.push(ye)});let Q,re,ae;ue(l.multiple)?(b.value=oe,Q=t.toRaw(ce),re=ie,ae=t.toRaw(K)):(b.value=oe[0]??"",Q=t.toRaw(ce[0]??""),re=ie[0]??"",ae=t.toRaw(K[0])),k&&(c("update:modelValue",Q),c("change",Q,ae)),c("update:text",re)}},h=t.ref(null),D=t.ref(null),I=t.computed(()=>D.value??h.value??[]),C=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,N=>ue(N)),q=zi(),j=async(N,H)=>{if(N){const X=await q.load("select",N,H);if(X.length>0)if(typeof X[0]=="string"){let te=X.map(oe=>Hi(oe));h.value=te}else h.value=X;else h.value=null}};t.watch([()=>l.source,()=>l.params],([N,H])=>{D.value=null,j(N,H)},{immediate:!C.value});let B=!1;const _=()=>{B||(B=!0,j(l.source,l.params))};t.watch([()=>h.value,()=>l.modelValue],([N,H])=>{if(y()&&ue(l.multiple)){Ye(H,b.value)||(b.value=H);return}f(H,l.valueType,I.value,!1),c("setValue",H)});let L=null,x=t.ref(!1);typeof l.remoteMethod=="function"&&(L=async N=>{if(N==null){D.value=null;return}x.value=!0;try{const H=await l.remoteMethod(N);H&&(D.value=H)}catch(H){D.value=null,console.error(H)}x.value=!1});let E=null;typeof l.filterMethod=="function"&&(E=async N=>{if(N==null){D.value=null;return}x.value=!0;try{const H=await l.filterMethod(N,h.value);H&&(D.value=H)}catch(H){D.value=null,console.error(H)}x.value=!1});const y=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",P=t.ref(!1),J=e,A=t.computed(()=>({[J]:!0})),$=N=>{l.allowCreate||y()&&ue(l.multiple)?(c("update:modelValue",N),c("change",N),c("update:text",N),b.value=N):f(N,"value",I.value,!0)};let F=ge(l,"hintText"),M=t.ref(!1);const Y=N=>{let X=N.target.value;P.value=!0,pe(F.value)||(M.value=!0),c("focus",X,N)},Z=N=>{setTimeout(()=>{M.value&&(M.value=!1),P.value=!1},0);let X=N.target.value;l.maxLength&&X.length>Number(l.maxLength)&&(X=X.slice(0,Number(l.maxLength))),z.value||c("blur",X,N)},ee=()=>{c("clear","")},le=t.ref(!1);let O=null;const T=()=>{l.showTooltip&&le.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{le.value=!0},150))},R=()=>{O&&(clearTimeout(O),le.value=!1,O=null)},V=t.computed(()=>le.value||M.value),S=t.computed(()=>le.value?p.value:F.value),z=t.ref(!1),U=N=>{z.value=N,c("visible-change",N),N||c("selected")},ne=N=>{c("remove-tag",N)},G=(N,H)=>{const X=[];return N.forEach((k,K)=>{const te=Ro(l,k);if(Array.isArray(te)&&te.length>0){const oe=G(te,H),ce=et(l,k),Q={key:`${ce}_${K}`,label:ce};X.push(t.h(v.ElOptionGroup,Q,{default:()=>oe}))}else{const oe=kt(l,k),ce=et(l,k),ie=Pi(l,k),re={key:`${oe}_${K}`,label:ce,disabled:ie,value:oe};if(typeof H=="function")X.push(t.h(v.ElOption,re,{default:()=>H(k)}));else if(l.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},fe=t.h("span",ae,[oe]),ye={class:{"fox-select-item__option-right":!0}},me=t.h("span",ye,[ce]),Je=t.h("div",{class:{"fox-select-item__option":!0}},[fe,me]);X.push(t.h(v.ElOption,re,{default:()=>Je}))}else l.optionType==="value"?X.push(t.h(v.ElOption,re,{default:()=>[oe]})):X.push(t.h(v.ElOption,re))}}),X},W=t.ref();return we({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const H={...He(r.attrs),ref:W,class:A.value,clearable:l.clearable,multiple:l.multiple,placeholder:g.placeholder.value,disabled:i.value||s.value,modelValue:b.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:ee,onChange:$,onFocus:Y,onBlur:Z,onVisibleChange:U,onRemoveTag:ne};typeof L=="function"&&(H["remote-method"]=L,H.loading=x.value),typeof E=="function"&&(H["filter-method"]=E,H.loading=x.value);const X={};r.slots.prefix&&(X.prefix=r.slots.prefix),r.slots.empty&&(X.empty=r.slots.empty),r.slots.options?X.default=r.slots.options:X.default=()=>G(I.value,r.slots.option);const k=[],K=t.h(v.ElSelect,H,X);k.push(K);const te={default:()=>k};r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip);const ce={...Ne(l,Mo),hintText:S.value,hintVisible:V.value,onMouseover:T,onMouseleave:R};return l.prop&&(ce.prop=`${l.prop}_item`),C.value&&(ce["appear-listen"]=!0,ce.onAppear=_),t.h(o,ce,te)}}}}const{componentName:Wi,create:Yi,scope:Gi}=se("select-item"),Wn=Yi(Ki(Wi,Gi,Te));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o=1e3,l=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",g="month",b="quarter",w="year",p="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|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,I={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(A){var $=["th","st","nd","rd"],F=A%100;return"["+A+($[(F-20)%10]||$[F]||$[0])+"]"}},C=function(A,$,F){var M=String(A);return!M||M.length>=$?A:""+Array($+1-M.length).join(F)+A},q={s:C,z:function(A){var $=-A.utcOffset(),F=Math.abs($),M=Math.floor(F/60),Y=F%60;return($<=0?"+":"-")+C(M,2,"0")+":"+C(Y,2,"0")},m:function A($,F){if($.date()<F.date())return-A(F,$);var M=12*(F.year()-$.year())+(F.month()-$.month()),Y=$.clone().add(M,g),Z=F-Y<0,ee=$.clone().add(M+(Z?-1:1),g);return+(-(M+(F-Y)/(Z?Y-ee:ee-Y))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y:w,w:d,d:c,D:p,h:s,m:u,s:i,ms:a,Q:b}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},j="en",B={};B[j]=I;var _="$isDayjsObject",L=function(A){return A instanceof P||!(!A||!A[_])},x=function A($,F,M){var Y;if(!$)return j;if(typeof $=="string"){var Z=$.toLowerCase();B[Z]&&(Y=Z),F&&(B[Z]=F,Y=Z);var ee=$.split("-");if(!Y&&ee.length>1)return A(ee[0])}else{var le=$.name;B[le]=$,Y=le}return!M&&Y&&(j=Y),Y||!M&&j},E=function(A,$){if(L(A))return A.clone();var F=typeof $=="object"?$:{};return F.date=A,F.args=arguments,new P(F)},y=q;y.l=x,y.i=L,y.w=function(A,$){return E(A,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var P=function(){function A(F){this.$L=x(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[_]=!0}var $=A.prototype;return $.parse=function(F){this.$d=function(M){var Y=M.date,Z=M.utc;if(Y===null)return new Date(NaN);if(y.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var ee=Y.match(h);if(ee){var le=ee[2]-1||0,O=(ee[7]||"0").substring(0,3);return Z?new Date(Date.UTC(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)):new Date(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)}}return new Date(Y)}(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return y},$.isValid=function(){return this.$d.toString()!==f},$.isSame=function(F,M){var Y=E(F);return this.startOf(M)<=Y&&Y<=this.endOf(M)},$.isAfter=function(F,M){return E(F)<this.startOf(M)},$.isBefore=function(F,M){return this.endOf(M)<E(F)},$.$g=function(F,M,Y){return y.u(F)?this[M]:this.set(Y,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,M){var Y=this,Z=!!y.u(M)||M,ee=y.p(F),le=function(ne,G){var W=y.w(Y.$u?Date.UTC(Y.$y,G,ne):new Date(Y.$y,G,ne),Y);return Z?W:W.endOf(c)},O=function(ne,G){return y.w(Y.toDate()[ne].apply(Y.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(G)),Y)},T=this.$W,R=this.$M,V=this.$D,S="set"+(this.$u?"UTC":"");switch(ee){case w:return Z?le(1,0):le(31,11);case g:return Z?le(1,R):le(0,R+1);case d:var z=this.$locale().weekStart||0,U=(T<z?T+7:T)-z;return le(Z?V-U:V+(6-U),R);case c:case p:return O(S+"Hours",0);case s:return O(S+"Minutes",1);case u:return O(S+"Seconds",2);case i:return O(S+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,M){var Y,Z=y.p(F),ee="set"+(this.$u?"UTC":""),le=(Y={},Y[c]=ee+"Date",Y[p]=ee+"Date",Y[g]=ee+"Month",Y[w]=ee+"FullYear",Y[s]=ee+"Hours",Y[u]=ee+"Minutes",Y[i]=ee+"Seconds",Y[a]=ee+"Milliseconds",Y)[Z],O=Z===c?this.$D+(M-this.$W):M;if(Z===g||Z===w){var T=this.clone().set(p,1);T.$d[le](O),T.init(),this.$d=T.set(p,Math.min(this.$D,T.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},$.set=function(F,M){return this.clone().$set(F,M)},$.get=function(F){return this[y.p(F)]()},$.add=function(F,M){var Y,Z=this;F=Number(F);var ee=y.p(M),le=function(R){var V=E(Z);return y.w(V.date(V.date()+Math.round(R*F)),Z)};if(ee===g)return this.set(g,this.$M+F);if(ee===w)return this.set(w,this.$y+F);if(ee===c)return le(1);if(ee===d)return le(7);var O=(Y={},Y[u]=l,Y[s]=r,Y[i]=o,Y)[ee]||1,T=this.$d.getTime()+F*O;return y.w(T,this)},$.subtract=function(F,M){return this.add(-1*F,M)},$.format=function(F){var M=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||f;var Z=F||"YYYY-MM-DDTHH:mm:ssZ",ee=y.z(this),le=this.$H,O=this.$m,T=this.$M,R=Y.weekdays,V=Y.months,S=Y.meridiem,z=function(G,W,N,H){return G&&(G[W]||G(M,Z))||N[W].slice(0,H)},U=function(G){return y.s(le%12||12,G,"0")},ne=S||function(G,W,N){var H=G<12?"AM":"PM";return N?H.toLowerCase():H};return Z.replace(D,function(G,W){return W||function(N){switch(N){case"YY":return String(M.$y).slice(-2);case"YYYY":return y.s(M.$y,4,"0");case"M":return T+1;case"MM":return y.s(T+1,2,"0");case"MMM":return z(Y.monthsShort,T,V,3);case"MMMM":return z(V,T);case"D":return M.$D;case"DD":return y.s(M.$D,2,"0");case"d":return String(M.$W);case"dd":return z(Y.weekdaysMin,M.$W,R,2);case"ddd":return z(Y.weekdaysShort,M.$W,R,3);case"dddd":return R[M.$W];case"H":return String(le);case"HH":return y.s(le,2,"0");case"h":return U(1);case"hh":return U(2);case"a":return ne(le,O,!0);case"A":return ne(le,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(M.$s);case"ss":return y.s(M.$s,2,"0");case"SSS":return y.s(M.$ms,3,"0");case"Z":return ee}return null}(G)||ee.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,M,Y){var Z,ee=this,le=y.p(M),O=E(F),T=(O.utcOffset()-this.utcOffset())*l,R=this-O,V=function(){return y.m(ee,O)};switch(le){case w:Z=V()/12;break;case g:Z=V();break;case b:Z=V()/3;break;case d:Z=(R-T)/6048e5;break;case c:Z=(R-T)/864e5;break;case s:Z=R/r;break;case u:Z=R/l;break;case i:Z=R/o;break;default:Z=R}return Y?Z:y.a(Z)},$.daysInMonth=function(){return this.endOf(g).$D},$.$locale=function(){return B[this.$L]},$.locale=function(F,M){if(!F)return this.$L;var Y=this.clone(),Z=x(F,M,!0);return Z&&(Y.$L=Z),Y},$.clone=function(){return y.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},A}(),J=P.prototype;return E.prototype=J,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",g],["$y",w],["$D",p]].forEach(function(A){J[A[1]]=function($){return this.$g($,A[0],A[1])}}),E.extend=function(A,$){return A.$i||(A($,P,E),A.$i=!0),E},E.locale=x,E.isDayjs=L,E.unix=function(A){return E(1e3*A)},E.en=B[j],E.Ls=B,E.p={},E})})(Bo);var Ui=Bo.exports;const Ke=Xe(Ui);var _o={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var D=h.match(/([+-]|\d\d)/g),I=60*D[1]+(+D[2]||0);return I===0?0:D[0]==="+"?-I:I}(f)}],g=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},b=function(f,h){var D,I=u.meridiem;if(I){for(var C=1;C<=24;C+=1)if(f.indexOf(I(C,0,h))>-1){D=C>12;break}}else D=f===(h?"pm":"PM");return D},w={A:[i,function(f){this.afternoon=b(f,!1)}],a:[i,function(f){this.afternoon=b(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,D=f.match(/\d+/);if(this.day=D[0],h)for(var I=1;I<=31;I+=1)h(I).replace(/\[|\]/g,"")===f&&(this.day=I)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=g("months"),D=(g("monthsShort")||h.map(function(I){return I.slice(0,3)})).indexOf(f)+1;if(D<1)throw new Error;this.month=D%12||D}],MMMM:[i,function(f){var h=g("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function p(f){var h,D;h=f,D=u&&u.formats;for(var I=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,E,y){var P=y&&y.toUpperCase();return E||D[y]||o[y]||D[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(J,A,$){return A||$.slice(1)})})).match(l),C=I.length,q=0;q<C;q+=1){var j=I[q],B=w[j],_=B&&B[0],L=B&&B[1];I[q]=L?{regex:_,parser:L}:j.replace(/^\[|\]$/g,"")}return function(x){for(var E={},y=0,P=0;y<C;y+=1){var J=I[y];if(typeof J=="string")P+=J.length;else{var A=J.regex,$=J.parser,F=x.slice(P),M=A.exec(F)[0];$.call(E,M),x=x.replace(M,"")}}return function(Y){var Z=Y.afternoon;if(Z!==void 0){var ee=Y.hours;Z?ee<12&&(Y.hours+=12):ee===12&&(Y.hours=0),delete Y.afternoon}}(E),E}}return function(f,h,D){D.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var I=h.prototype,C=I.parse;I.parse=function(q){var j=q.date,B=q.utc,_=q.args;this.$u=B;var L=_[1];if(typeof L=="string"){var x=_[2]===!0,E=_[3]===!0,y=x||E,P=_[2];E&&(P=_[2]),u=this.$locale(),!x&&P&&(u=D.Ls[P]),this.$d=function(F,M,Y){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*F);var Z=p(M)(F),ee=Z.year,le=Z.month,O=Z.day,T=Z.hours,R=Z.minutes,V=Z.seconds,S=Z.milliseconds,z=Z.zone,U=new Date,ne=O||(ee||le?1:U.getDate()),G=ee||U.getFullYear(),W=0;ee&&!le||(W=le>0?le-1:U.getMonth());var N=T||0,H=R||0,X=V||0,k=S||0;return z?new Date(Date.UTC(G,W,ne,N,H,X,k+60*z.offset*1e3)):Y?new Date(Date.UTC(G,W,ne,N,H,X,k)):new Date(G,W,ne,N,H,X,k)}catch{return new Date("")}}(j,L,B),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),y&&j!=this.format(L)&&(this.$d=new Date("")),u={}}else if(L instanceof Array)for(var J=L.length,A=1;A<=J;A+=1){_[1]=L[A-1];var $=D.apply(this,_);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}A===J&&(this.$d=new Date(""))}else C.call(this,q)}}})})(_o);var Xi=_o.exports;const Zi=Xe(Xi);var qo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){var r=l.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"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(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),g==="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 g}});return a.bind(this)(d)}}})})(qo);var Ji=qo.exports;const Qi=Xe(Ji);var Po={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,r){var a=l.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,b,w,p,f){var h=g.name?g:g.$locale(),D=i(h[b]),I=i(h[w]),C=D||I.map(function(j){return j.slice(0,p)});if(!f)return C;var q=h.weekStart;return C.map(function(j,B){return C[(B+(q||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(g,b){return g.formats[b]||function(w){return w.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,f,h){return f||h.slice(1)})}(g.formats[b.toUpperCase()])},d=function(){var g=this;return{months:function(b){return b?b.format("MMMM"):u(g,"months")},monthsShort:function(b){return b?b.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):u(g,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return c(g.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return c(g,b)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(g){return u(s(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})})(Po);var es=Po.exports;const ts=Xe(es);var jo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){var o="week",l="year";return function(r,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(l).add(1,l).date(c),g=i(this).endOf(o);if(d.isBefore(g))return 1}var b=i(this).startOf(l).date(c).startOf(o).subtract(1,"millisecond"),w=this.diff(b,o,!0);return w<0?i(this).startOf("week").week():Math.ceil(w)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(jo);var ns=jo.exports;const ls=Xe(ns);var zo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(zo);var os=zo.exports;const rs=Xe(os);var Ho={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l,r){l.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Ho);var as=Ho.exports;const is=Xe(as);var Ko={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ko);var ss=Ko.exports;const us=Xe(ss);var Wo={exports:{}};(function(e,n){(function(o,l){e.exports=l()})(Ue,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Wo);var cs=Wo.exports;const fs=Xe(cs);Ke.extend(ts),Ke.extend(Qi),Ke.extend(Zi),Ke.extend(ls),Ke.extend(rs),Ke.extend(is),Ke.extend(us),Ke.extend(fs);const Be={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(n)},getDay(e,n){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},getMonthWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return l!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,n,o,l=0){const r=new Date(Number(e),parseInt(n)-1,Number(o)),a=r.getTime();let i=r.getDay();if(l===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=Be.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=Be.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),a=l.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),a=l.getTime(),i=n.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Yo={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"}},Go={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}};function ds(e,n,o){return{props:{...xe,...Ie,...Yo,...Go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=t.computed(()=>M.value&&Array.isArray(w.value)&&w.value.length==2?w.value[0]:w.value),f=t.computed(()=>M.value?"longTermKey":"normalKey"),h=W=>{if(M.value&&l.type==="daterange"){const N=[...w.value];N[0]=W,w.value=N}else w.value=W;c("update:modelValue",w.value),c("change",w.value)},D=t.computed(()=>M.value&&l.type==="daterange"?"date":l.type),I=e,C=t.computed(()=>({[`${I}`]:!0,"is-long":M.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(l,"hintText"),j=t.ref(!1);const B=W=>{let H=W.target.value;b.value=!0,pe(q.value)||(j.value=!0),c("focus",H,W)},_=W=>{setTimeout(()=>{j.value&&(j.value=!1),b.value=!1},0);let H=W.target.value;l.maxLength&&H.length>Number(l.maxLength)&&(H=H.slice(0,Number(l.maxLength))),c("blur",H,W)},L=()=>{c("clear","")},x=W=>{c("calendar-change",W)},E=(W,N,H)=>{c("panel-change",W,N,H)},y=W=>{c("visible-change",W)},P=Oe(t.computed(()=>l.longTermText),"longTermText",Me.Near),J=Oe(t.computed(()=>l.longTermActionLabel),"longTermActionLabel",Me.Near),A=Oe(t.computed(()=>l.longTermValue),"longTermValue",Me.Near),$=Oe(t.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let F=null;const M=t.ref(ue(l.longTerm)),Y=W=>{if(M.value=W,c("update:longTerm",W),W){if(F=w.value,l.type==="daterange"){const N=[];Array.isArray(A.value)?(N[0]=w.value?w.value[0]??A.value[0]:null,N[1]=A.value[1]??A.value[0]):(N[0]=w.value?w.value[0]??A.value:null,N[1]=M.value),N[0]||(N[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),N[1]||(N[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),w.value=N}else Array.isArray(A.value)?w.value=A.value[1]??A.value[0]:w.value=A.value,w.value||(w.value=l.valueFormat?Be.format(new Date,l.valueFormat):new Date);c("update:modelValue",w.value)}else{if(l.type==="daterange"){const N=[];N[0]=Array.isArray(w.value)?w.value[0]:w.value,Array.isArray(F)?N[1]=F[1]:N[1]=F,N[0]||(N[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),N[1]||(N[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),w.value=N}else w.value=F;c("update:modelValue",w.value),setTimeout(()=>{ne()},100)}},Z=ue(l.isLongTerm);if(Z){const W=()=>{if(M.value===!0){if(F=w.value,l.type==="daterange"){const N=[w.value[0]];Array.isArray(A.value)?N[1]=A.value[1]??A.value[0]:N[1]=M.value,N[0]||(N[0]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),N[1]||(N[1]=l.valueFormat?Be.format(new Date,l.valueFormat):new Date),w.value=N}else w.value=A.value;c("update:modelValue",w.value)}else Ye(A.value,w.value)&&(M.value=!0)};W(),t.watch([()=>l.longTerm],([N])=>{M.value!==N&&W()}),t.watch([()=>w.value],([N])=>{let H=!1;if(l.type==="daterange"&&Array.isArray(N))try{let X=N[1];if(!X)return;typeof X!="string"&&l.valueFormat&&(X=Be.format(X,l.valueFormat));let k=Array.isArray(A.value)?A.value[1]:A.value;(X===k||Array.isArray($.value)&&$.value.findIndex(te=>X==te)!==-1)&&(H=!0)}catch(X){console.error(X)}M.value!==H&&(M.value=H)},{immediate:!0})}const ee=t.computed(()=>({"fox-date-item__long":!0,"is-active":b.value})),le=t.ref(),O=t.ref(),T=/^\d+$/,R=(W,N)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(W,N):T.test(W)&&W.length===l.flashFillThreshold,V=(W,N)=>{let H;if(typeof l.flashFillFormat=="function")H=l.flashFillFormat(W,N);else{const k=l.flashFillFormat??"YYYYMMDD";H=Be.parser(W,k)}const X=l.valueFormat??"YYYY-MM-DD";return Be.format(H,X)},S=W=>W?W.endsWith("range"):!1,z=W=>{if(!W.target)return;const N=W.target.value??"";if(R(N,l.type)){const H=V(N,l.type);if(S(l.type)){const X=Array.isArray(w.value)?[...w.value]:[];X[0]=H,h(X)}else h(H)}},U=W=>{if(!W.target)return;const N=W.target.value??"";if(R(N,l.type)){const H=V(N,l.type);if(S(l.type)){const X=Array.isArray(w.value)?[...w.value]:[];X[1]=H,h(X)}else h(H)}},ne=()=>{if(l.flashFill&&le.value&&le.value.$el)if(S(l.type)){const W=le.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].addEventListener("input",z),W[1]&&W[1].addEventListener("input",U)}else{const W=le.value.$el.querySelector("input.el-input__inner");W&&W.addEventListener("input",z)}},G=()=>{if(l.flashFill&&le.value&&le.value.$el)if(S(l.type)){const W=le.value.$el.querySelectorAll("input.el-range-input");W[0]&&W[0].removeEventListener("input",z),W[1]&&W[1].removeEventListener("input",U)}else{const W=le.value.$el.querySelector("input.el-input__inner");W&&W.removeEventListener("input",z)}};return t.onMounted(ne),t.onBeforeUnmount(G),we({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},handleOpen:()=>{O?.value.handleOpen()},handleClose:()=>{O?.value.handleClose()},setDisabled:W=>{a.value=W},setReadonly:W=>{u.value=W}}),()=>{const N={...r.attrs,key:f.value,type:D.value,ref:O,class:C.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:p.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":h,onClear:L,onFocus:B,onBlur:_,onCalendarChange:x,onPanelChange:E,onVisibleChange:y},H={};r.slots["range-separator"]&&(H["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(H.default=r.slots.cell);const X=[],k=t.h(v.ElDatePicker,N,H);X.push(k);const K={default:()=>X};if(r.slots.default&&(K.label=r.slots.default),r.slots.fixedTip&&(K.fixedTip=r.slots.fixedTip),Z){if(M.value){const ie=t.h("span",{class:["fox-date-item__long-splitor"]},["-"]),Q=t.h("input",{class:["fox-date-item__long-text"],value:P.value,readonly:!0}),re={class:ee.value},ae=t.h("div",re,{default:()=>[ie,Q]});X.push(ae)}if(!s.value&&!i.value){const ie={label:J.value||P.value,disabled:s.value||i.value,modelValue:M.value,"onUpdate:modelValue":Y},Q=t.h(v.ElCheckbox,ie),re=t.h("div",{class:{[`${I}__append`]:!0}},[Q]);K.append=()=>re}}const oe={...Ne(l,Yo,Go),ref:le,class:{[`${I}__wrapper`]:!0,"has-append":Z},hintText:q.value,hintVisible:j.value};return l.prop&&(oe.prop=`${l.prop}_item`),t.h(o,oe,K)}}}}const{componentName:hs,create:gs,scope:ms}=se("date-item"),Yn=gs(ds(hs,ms,Te)),Uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,n,o){return{props:{...xe,...Ie,...Uo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=L=>{w.value=L,c("update:modelValue",L),c("change",L)};let D=ge(l,"hintText"),I=t.ref(!1);const C=L=>{let E=L.target.value;b.value=!0,pe(D.value)||(I.value=!0),c("focus",E,L)},q=L=>{setTimeout(()=>{I.value&&(I.value=!1),b.value=!1},0);let E=L.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),c("blur",E,L)},j=()=>{c("clear","")},B=L=>{c("visible-change",L)},_=t.ref();return we({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()},setDisabled:L=>{a.value=L},setReadonly:L=>{u.value=L}}),()=>{const x={...r.attrs,ref:_,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:j,onFocus:C,onBlur:q,onVisibleChange:B},E={},y=[],P=t.h(v.ElTimePicker,x,E);y.push(P);const J={default:()=>y};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const $={...Ne(l,Uo),hintText:D.value,hintVisible:I.value};return l.prop&&($.prop=`${l.prop}_item`),t.h(o,$,J)}}}}const{componentName:ys,create:bs,scope:vs}=se("time-item"),Gn=bs(ps(ys,vs,Te)),Xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,n,o){return{props:{...xe,...Ie,...Xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=_=>{w.value=_,c("update:modelValue",_),c("change",_)};let D=ge(l,"hintText"),I=t.ref(!1);const C=_=>{let x=_.target.value;b.value=!0,pe(D.value)||(I.value=!0),c("focus",x,_)},q=_=>{setTimeout(()=>{I.value&&(I.value=!1),b.value=!1},0);let x=_.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,_)},j=()=>{c("clear","")},B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const L={...r.attrs,ref:B,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:w.value,"onUpdate:modelValue":h,onClear:j,onFocus:C,onBlur:q},x={},E=[],y=t.h(v.ElTimeSelect,L,x);E.push(y);const P={default:()=>E};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ne(l,Xo),hintText:D.value,hintVisible:I.value};return l.prop&&(A.prop=`${l.prop}_item`),t.h(o,A,P)}}}}const{componentName:Ss,create:xs,scope:Ts}=se("time-select-item"),Un=xs(ws(Ss,Ts,Te));function Zo(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let a=o.length-1;a>=l;a--)if(o.charAt(a)!="0"){r=a;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Jo(e,n,o=20){if(typeof n=="string"&&(n=Se(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=Wl(`${e}`,`${n}`);return Zo(l)}else{let l=vn(`${e}`,Yl(`${n}`),20);return Zo(l)}}function $s(e,n=-1,o=!1,l=3,r=","){return Lt(e,n,o,l,r)}function Qo(e,n,o,l,r=!0){if(e==="")return"";if(e=Gl(e),n=Se(n),n==1)return e;if(l)e=Jo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=vn(e,1,Se(o)));else{let a=-1*n;e=Jo(e,a)}return e}function er(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ue(n.minInclude),r=wn(e,n.min);if(l&&r==-1||!l&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=ue(n.maxInclude),r=wn(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}const tr={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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Cs(e,n,o){return{props:{...xe,...Ie,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref(!1),g=ge(l,"modelValue",null,c),b=t.ref("");t.watch([()=>g.value,()=>l.rates,()=>l.precision],([$,F,M])=>{if(pe($)){b.value="";return}const Y=Qo($,F,M,!1);b.value!==Y&&(b.value=Y)},{immediate:!0});const w=t.computed(()=>{let $="";return d.value&&($=b.value),$}),{t:p}=Le.useFoxI18n(n),f=t.computed(()=>{let $=l.placeholder??"";return!d.value&&!pe(b.value)?$=$s(b.value,l.decimalLength,l.autoPadding,l.digits,l.separator):$=p(["placeholder",$]),$}),h=e,D=t.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:b.value.length>0})),I=Oe(t.computed(()=>l.textAlign),"textAlign");t.computed(()=>d.value?{textAlign:"left"}:{textAlign:I.value??"right"});const C=t.ref(""),q=t.computed(()=>{let $=C.value;return pe($)&&($=l.errorTip??""),$}),j=t.ref(""),B=t.ref(!1),_=($,F)=>{if($=`${$}`,pe($)){b.value="",g.value="",F.forEach(M=>{c(M,"")}),ue(l.showTip)&&B.value&&(B.value=!1);return}if($.length>=2){let M=$;if(M.charAt(0)=="-"&&(M=M.substring(1)),M.length>=2&&M.charAt(0)=="0"&&M.charAt(1)!="."){t.triggerRef(b);return}}if($!="-"){if(!lo($)){t.triggerRef(b);return}if(l.integerLength!=-1&&oo($)>Number(l.integerLength)){t.triggerRef(b);return}if(l.decimalLength&&l.decimalLength!=-1&&ro($)>Number(l.decimalLength)){t.triggerRef(b);return}let M=er($,l);if(M.maxValid===!1){C.value=M.message,t.triggerRef(b);return}}else if(l.min!=null&&Se(l.min)>=0){t.triggerRef(b);return}j.value=$,ue(l.showTip)&&(B.value=$.length>0),b.value=$,g.value=Qo($,l.rates,l.precision,!0),F.forEach(M=>{c(M,g.value)})},L=$=>{_($,["update:modelValue","input"])},x=$=>{_($,["update:modelValue","change"])},E=$=>{if(d.value=!0,ue(l.showTip)){let F=b.value;pe(F)&&(F=l.hintText),pe(F)||(j.value=F,B.value=!0)}C.value="",c("focus",g.value,$)},y=$=>{if(setTimeout(()=>{d.value=!1,ue(l.showTip)&&B.value===!0&&(B.value=!1)},0),!pe(b.value)){let F=er(b.value,l);if(F.minValid===!1||F.maxValid===!1){C.value=F.message;return}}c("update:modelValue",g.value,$),c("blur",g.value,$)},P=()=>{c("clear","")},J=t.computed(()=>wt(l.unit)>0),A=t.ref();return we({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()},setDisabled:$=>{a.value=$},setReadonly:$=>{u.value=$}}),()=>{const F={...He(r.attrs),ref:A,class:D.value,type:"digit",maxlength:l.maxLength,placeholder:f.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:P,onInput:L,onChange:x,onFocus:E,onBlur:y},M={};r.slots.prepend&&(M.prepend=r.slots.prepend),r.slots.append&&(M.append=r.slots.append),r.slots.prefix&&(M.prefix=r.slots.prefix),r.slots.suffix?M.suffix=r.slots.suffix:J.value&&(M.suffix=()=>[l.unit]);const Y=[],Z=t.h(v.ElInput,F,M);Y.push(Z);const ee={default:()=>Y};r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip);const O={...Ne(l,tr),errorTip:q.value,hintText:j.value,hintVisible:B.value,hintType:"number"};return l.prop&&(O.prop=`${l.prop}_item`),t.h(o,O,ee)}}}}const{componentName:Es,create:Ns,scope:ks}=se("money-item"),Xn=Ns(Cs(Es,ks,Te)),nr={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}};function Is(e,n,o){return{props:{...xe,...Ie,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0,[`${p}__append`]:L.value})),h=t.computed(()=>({[`${p}__unit`]:!0})),D=E=>{w.value=E,c("update:modelValue",E),c("input",E)},I=E=>{c("change",E)};let C=ge(l,"hintText"),q=t.ref(!1);const j=E=>{let P=E.target.value;b.value=!0,pe(C.value)||(q.value=!0),c("focus",P,E)},B=E=>{setTimeout(()=>{q.value&&(q.value=!1),b.value=!1},0);let P=E.target.value;l.maxLength&&P.length>Number(l.maxLength)&&(P=P.slice(0,Number(l.maxLength))),c("blur",P,E)},_=()=>{c("clear","")},L=t.computed(()=>wt(l.unit)>0),x=t.ref();return we({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const y={...He(r.attrs),ref:x,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:_,onChange:I,onInput:D,onFocus:j,onBlur:B},P={},J=[],A=t.h(v.ElInputNumber,y,P);J.push(A);const $={default:()=>J};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const M={...Ne(l,nr),hintText:C.value,hintVisible:q.value};if(l.prop&&(M.prop=`${l.prop}_item`),r.slots.append)$.append=r.slots.append;else if(L.value){const Z={class:h.value},ee=t.h("div",Z,[l.unit]);$.append=()=>ee}return t.h(o,M,$)}}}}const{componentName:Os,create:Vs,scope:Ds}=se("input-number-item"),Zn=Vs(Is(Os,Ds,Te));function Ze(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function at(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fs(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]||null:n.children??null}let Rs=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,r);const a=Pe(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l,r))}};function As(){const e=t.getCurrentInstance();return new Rs(e.proxy)}function Jn(e,n,o){const l=Ze(e,n),r=Ze(e,o);if(l!==r)return!1;const a=at(e,n),i=at(e,o);return a===i}function lr(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];let a=l;for(let i=0;Array.isArray(a)&&i<n.length;i++){const u=n[i];if(Array.isArray(u)){const s=lr(e,u,o,l);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=Ze(e,c)===u;else if(o==="item")s=Jn(e,c,u);else{let d=at(e,c);d==null&&(d=Ze(e,c)),s=d===u}if(s){r.push(c),a=Fs(e,c);break}}if(!s)break}}return r}function Ls(e){return{text:e,value:e}}const or={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},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}};function Ms(e,n,o){return{props:{...xe,...Ie,...or},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(null),w=t.ref([]),p=t.computed(()=>w.value?w.value.map(W=>Array.isArray(W)?W.map(H=>Ze(l,H)).join(" "):Ze(l,W)).join(" "):""),f=(G,W,N,H=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(b.value===G)return;b.value=G;const te=t.toRaw(G);if(H){const oe=ne?.value.getCheckedNodes();if(oe)if(l.multiple){const ce=[];oe.forEach(ie=>{const re=(ie.pathNodes??[]).map(ae=>ae.data);ce.push(re)}),c("update:pathNodes",ce)}else{const ie=(oe[0]?.pathNodes??[]).map(Q=>Q.data);c("update:pathNodes",ie)}c("update:modelValue",te),c("change",te)}return}const X=lr(l,G,W,N);if(X===null){if(w.value.length===0||w.value===null)return;w.value=[],b.value=null,H&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const k=X[X.length-1];if(P.value.checkStrictly!==!0&&k&&!Array.isArray(k)&&Array.isArray(k.children)&&k.children.length>0){const te=[];X.forEach(oe=>{const ce=`${Ze(l,oe)}`;te.push(ce)}),te.length>0&&(E.value=te.join(l.separator))}else E.value=null;let K=!0;if(X.length!==w.value.length)K=!1;else for(let te=0;te<X.length;te++){const oe=X[te],ce=w.value[te];if(Array.isArray(oe)){if(!Array.isArray(ce)||oe.length!==ce.length)K=!1;else for(let ie=0;ie<oe.length;ie++)if(!Jn(l,oe[ie],ce[ie])){K=!1;break}}else Jn(l,oe,ce)||(K=!1);if(!K)break}if(!K){w.value=X;let te=[],oe=[];X.forEach(ie=>{if(Array.isArray(ie)){let Q=[],re=[];for(let ae of ie)Q.push(at(l,ae)),l.valueType==="text"?re.push(Ze(l,ae)):l.valueType==="item"?re.push(ae):re.push(at(l,ae));te.push(Q),oe.push(re)}else te.push(at(l,ie)),l.valueType==="text"?oe.push(Ze(l,ie)):l.valueType==="item"?oe.push(ie):oe.push(at(l,ie))}),b.value=te;const ce=t.toRaw(oe);H&&(c("update:pathNodes",X),c("update:modelValue",ce),c("change",ce))}},h=t.ref([]),D=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,G=>ue(G)),I=As(),C=async(G,W)=>{if(G){const N=await I.load("cascader",G,W);if(N.length>0)if(typeof N[0]=="string"){let k=N.map(K=>Ls(K));h.value=k}else h.value=N}};t.watch([()=>l.source,()=>l.params],async([G,W])=>{C(G,W)},{immediate:!(D.value||l.lazy)});let q=!1;const j=()=>{q||(q=!0,C(l.source,l.params))};t.watch([()=>h.value,()=>l.modelValue],([G,W])=>{f(W,l.valueType,G,!1),c("setValue",W)}),l.lazy&&f(l.modelValue,"value",[],!1);let B=null,_=t.ref(!1);typeof l.remoteMethod=="function"&&(B=async G=>{if(G!=null){_.value=!0;try{const W=await l.remoteMethod(G);h.value=W}catch(W){console.error(W)}_.value=!1}});const L=t.ref(!1),x=e,E=t.ref(null),y=t.computed(()=>({[x]:!0,"is-incomplete":E.value&&E.value.length>0})),P=t.computed(()=>{let G={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(G.multiple=!0),l.props&&Object.assign(G,l.props),l.lazy&&(G.lazy=!0,typeof l.lazyLoad=="function"?G.lazyLoad=l.lazyLoad:G.lazyLoad=async(W,N)=>{const H=await I.load("cascader",l.source,W,!0);if(W?.config?.checkStrictly!==!0&&Array.isArray(b.value)&&b.value.length===W.level){const X=W.pathLabels??[];let k=[];X.forEach(K=>{K&&k.push(K)}),k.length>0&&(E.value=k.join(l.separator))}else E.value=null;N(H)}),G}),J=G=>{l.allowCreate?(c("update:modelValue",G),c("change",G),b.value=G):f(G,"value",h.value,!0)};let A=ge(l,"hintText"),$=t.ref(!1);const F=G=>{let N=G.target.value;L.value=!0,pe(A.value)||($.value=!0),c("focus",N,G)},M=G=>{setTimeout(()=>{$.value&&($.value=!1),L.value=!1},0);let N=G.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),V.value||c("blur",N,G)},Y=()=>{c("clear","")},Z=t.ref(!1);let ee=null;const le=()=>{l.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},T=t.computed(()=>Z.value||$.value),R=t.computed(()=>Z.value?p.value:A.value),V=t.ref(!1),S=G=>{V.value=G,c("visible-change",G),G||c("selected")},z=G=>{c("remove-tag",G)},U=G=>{c("expand-change",G)},ne=t.ref();return we({focus:()=>{ne?.value.focus()},blur:()=>{ne?.value.blur()},getCheckedNodes:()=>ne?.value.getCheckedNodes(),setDisabled:G=>{a.value=G},setReadonly:G=>{u.value=G}}),()=>{const W={...r.attrs,ref:ne,class:y.value,props:P.value,clearable:l.clearable,placeholder:E.value||g.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:b.value,separator:l.separator,onClear:Y,onChange:J,onFocus:F,onBlur:M,onVisibleChange:S,onRemoveTag:z,expandChange:U};typeof B=="function"&&(W["remote-method"]=B,W.loading=_.value);const N={};r.slots.option&&(N.default=r.slots.option),r.slots.empty&&(N.empty=r.slots.empty);const H=[],X=t.h(v.ElCascader,W,N);H.push(X);const k={default:()=>H};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const te={...Ne(l,or),hintText:R.value,hintVisible:T.value,onMouseover:le,onMouseleave:O};return l.prop&&(te.prop=`${l.prop}_item`),D.value&&!l.lazy&&(te["appear-listen"]=!0,te.onAppear=j),t.h(o,te,k)}}}}const{componentName:Bs,create:_s,scope:qs}=se("cascader-item"),Qn=_s(Ms(Bs,qs,Te)),rr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,n,o){return{props:{...xe,...Ie,...rr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(n),g=d(l,["placeholder"]),b=t.ref(!1),w=ge(l,"modelValue",null,c),p=e,f=t.computed(()=>({[p]:!0})),h=x=>{w.value=x,c("update:modelValue",x),c("input",x)},D=x=>{c("change",x)},I=x=>{c("select",x)};let C=ge(l,"hintText"),q=t.ref(!1);const j=x=>{let y=x.target.value;b.value=!0,pe(C.value)||(q.value=!0),c("focus",y,x)},B=x=>{setTimeout(()=>{q.value&&(q.value=!1),b.value=!1},0);let y=x.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),c("blur",y,x)},_=()=>{c("clear","")},L=t.ref();return we({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},select:()=>{L?.value.select()},setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const E={...r.attrs,ref:L,class:f.value,placeholder:g.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:w.value,onClear:_,onChange:D,onInput:h,onFocus:j,onBlur:B,onSelect:I},y={};r.slots.prepend&&(y.prepend=r.slots.prepend),r.slots.append&&(y.append=r.slots.append),r.slots.prefix&&(y.prefix=r.slots.prefix),r.slots.suffix&&(y.suffix=r.slots.suffix),r.slots.option&&(y.default=r.slots.option);const P=[],J=t.h(v.ElAutocomplete,E,y);P.push(J);const A={default:()=>P};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,rr),hintText:C.value,hintVisible:q.value};return l.prop&&(F.prop=`${l.prop}_item`),t.h(o,F,A)}}}}const{componentName:js,create:zs,scope:Hs}=se("autocomplete-item"),el=zs(Ps(js,Hs,Te));function Ks(e,n,o,l,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=n[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(b=>b[l]===d);if(!g)break;i.push(g[o])}return i}if(Array.isArray(u))for(let s=0;s<n.length&&s<a.length;s++){let c=n[s],d=a[s];const g=c.find(b=>b[l]===d);if(!g)break;i.push(g[o])}else{let s=n;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(b=>b[l]===d);if(!g)break;i.push(g[o]),s=g[r]}}return i}let Ws=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Ys(){const e=t.getCurrentInstance();return new Ws(e.proxy)}const ar={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},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,Boolean,Number,Array],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},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Gs(e,n){return{props:{...ar},setup(o,{attrs:l,slots:r}){const a=Ys(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([c,d])=>{i.value=await a.load(o.sourceType,c,d)},{immediate:!0});const u=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Ks(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),s=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const c={...l};return r.default?r.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):t.h(s,c,{default:()=>u.value}):t.h(s,c,u.value)}}}}const{componentName:Ch,create:Us,scope:Eh}=se("mapping"),It=Us(Gs());function Xs(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function Zs(e,n){return{props:{...ar},setup(o,{attrs:l,slots:r}){return()=>{const a={default:i=>{const u=Xs(i.row,i.column.property);return r.default?t.h(It,{...o,modelValue:u},{default:r.default}):t.h(It,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return t.h(v.ElTableColumn,{...l},a)}}}}const{componentName:Nh,create:Js,scope:kh}=se("table-mapping-column"),tl=Js(Zs()),Qs=Symbol.for("TableStateKey");function ir(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function eu(e,n){return{props:{},setup(o,{attrs:l}){const r=t.inject(Qs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=ir(u.row,u.column.property),c=a?ir(a,u.column.property):null,d=s===c,g={class:{"el-radio__input":!0,"is-checked":d}},b=t.h("span",g,[t.h("span",{class:{"el-radio__inner":!0}})]),w={class:{"el-radio":!0,"is-checked":d}};return t.h("label",w,[b])}};return t.h(v.ElTableColumn,{...l},i)}}}}const{componentName:Ih,create:tu,scope:Oh}=se("table-radio-column"),nl=tu(eu()),nu={},lu={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"},ou=[t.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)];function ru(e,n){return t.openBlock(),t.createElementBlock("svg",lu,ou)}const au=_e(nu,[["render",ru]]),{componentName:Dh,create:iu,scope:Fh}=se("table-setting"),su={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:"不固定"}},uu=iu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:au,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...su},setup(e,{emit:n,attrs:o}){let l=[];const r=t.ref([]),a=t.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed===""||S.fixed===!0||S.fixed==="left")),i=t.computed(()=>r.value.filter(S=>S.label===""||S.type?!1:S.fixed==="right")),u=t.computed(()=>r.value.filter(S=>!(S.label===""||S.type||S.fixed!==void 0))),s=t.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=t.computed(()=>a.value.length>0),d=t.computed(()=>i.value.length>0),g=S=>S.length>1,b=(S,z)=>{Array.isArray(S)&&Array.isArray(z)&&S.forEach(G=>{z.some(W=>W.prop===G.prop?(G.label=W.label,!0):!1)});const U=[];r.value=S.map((G,W)=>(!(G.label===""||G.type)&&G.visible!==!1&&U.push(G.prop),{...G,sortIndex:W})),u.value.length+a.value.length+i.value.length===U.length?I.value=!0:U.length>0&&(C.value=!0),B.value=U},w=S=>S?S.type?S.type:S.label?S.prop:"":"",p=(S,z)=>{if(S.length!==z.length)return!1;const U=S.map(ne=>w(ne));for(let ne of z){const G=w(ne);if(U.indexOf(G)===-1)return!1}return!0},f=S=>{if(!S){const z=e.tableRef.getColumnSetting(),U=z.srcColumnPropertyList;l=U.map((ne,G)=>({...ne,sortIndex:G})),S=z.columnPropertyList,S&&S.length>0&&p(U,S)||(S=U)}b(S,l)},h=()=>{e.tableRef.setColumnSetting(r.value)},D=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),I=t.ref(!1),C=t.ref(!1),q=S=>{const z=[];r.value.forEach(ne=>{S&&!(ne.label===""||ne.type)&&z.push(ne.prop),ne.visible=S}),I.value=!1,C.value=!1,u.value.length+a.value.length+i.value.length===z.length?I.value=!0:z.length>0&&(C.value=!0),B.value=z,h()},j=()=>{f(l),h()},B=t.ref([]),_=S=>{r.value.forEach(U=>{if(U.label===""||U.type)return;const ne=S.indexOf(U.prop)!==-1;U.visible=ne}),I.value=!1,C.value=!1;const z=u.value.length+a.value.length+i.value.length;S.length===z?I.value=!0:S.length>0&&(C.value=!0),h()},L=()=>{f()};t.onMounted(()=>{setTimeout(()=>{f()},50)});const x={currentRow:null,index:null,roleType:null},E=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,E(S)):null:null,y=S=>{const z=S.currentTarget;z&&z.dataset&&(x.roleType=z.dataset.roleType,x.index=z.dataset.index)},P=S=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},J=S=>{const z=S.currentTarget;S.relatedTarget;const U=E(z);if(!U)return;const ne=U.dataset&&U.dataset.roleType;x.roleType===ne&&(S.preventDefault(),x.currentRow&&x.currentRow!==U&&x.currentRow.classList.remove("is-dragover"),U.classList.add("is-dragover"),x.currentRow=U)},A=S=>{S.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},$=S=>{const z=S.currentTarget,U=E(z);if(!U)return;const ne=U.dataset&&U.dataset.roleType;if(x.roleType!==ne)return;S.preventDefault();const G=Number(x.index),W=Number(U.dataset.index);if(G!==W){if(G<W){const N=r.value[G];r.value.splice(G,1),r.value.splice(W,0,N)}else{const N=r.value[G];r.value.splice(G,1),r.value.splice(W+1,0,N)}b(r.value,l),h()}},F=S=>{const z=r.value[S];z.fixed="left",h()},M=S=>{const z=r.value[S];z.fixed="right",h()},Y=S=>{const z=r.value[S];z.fixed=void 0,h()},Z=new Map;let ee=null;function le(S){const z=document.createRange();return z.setStart(S,0),z.setEnd(S,S.childNodes.length),z.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:g,isCheckAll:I,isIndeterminate:C,handleCheckAllChange:q,handleReset:j,checkedValue:B,handleCheckChange:_,onShow:L,onDragStart:y,onDragEnd:P,onDragOver:J,onDragLeave:A,onDrop:$,toLeftFixed:F,toRightFixed:M,toUnFixed:Y,checkboxLabelStyle:D,onMouseOverForOverflowText:(S,z,U)=>{const ne=S.currentTarget;if(ne){const G=Math.floor(ne.offsetWidth);if(Math.floor(le(ne))>G){let N=Z.get(z);if(N){if(N===ee)return;Fe.hide(N)}N=Fe.show(ne,U,{type:"text",placement:"top",closeOnClick:!1}),N&&(Z.set(z,N),ee=N)}}},onMouseLeaveForOverflowText:(S,z)=>{const U=Z.get(z);U&&(Fe.hide(U),U===ee&&(ee=null))},onMouseOverForTip:(S,z)=>{const U=S.currentTarget;U&&(ee&&Fe.hide(ee),ee=Fe.show(U,z,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:S=>{ee&&(Fe.hide(ee),ee=null)}}}}),cu={class:"fox-table-setting"},fu={class:"fox-table-setting__header"},du={class:"fox-table-setting__body"},hu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gu={key:0,class:"fox-table-setting__body-title"},mu=["data-index","draggable"],pu=["onMouseover","onMouseleave"],yu={class:"tools-item"},bu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},vu={key:0,class:"fox-table-setting__body-title"},wu=["data-index","draggable"],Su=["onMouseover","onMouseleave"],xu={class:"tools-item"},Tu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},$u={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],Nu={class:"tools-item"};function ku(e,n,o,l,r,a){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("RefreshLeft"),d=t.resolveComponent("FoxIcon"),g=t.resolveComponent("Download"),b=t.resolveComponent("fox-checkbox"),w=t.resolveComponent("FoxCheckboxGroup"),p=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(p,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",cu,[t.createElementVNode("div",fu,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",du,[t.createVNode(w,{modelValue:e.checkedValue,"onUpdate:modelValue":n[28]||(n[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:t.withCtx(()=>[e.leftFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(t.openBlock(),t.createElementBlock("div",gu,t.toDisplayString(e.leftFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.leftFixedColumns,f=>(t.openBlock(),t.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:n[5]||(n[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[6]||(n[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[7]||(n[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[8]||(n[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[9]||(n[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,pu)]),_:2},1032,["value"]),t.createElementVNode("div",yu,[t.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[1]||(n[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[2]||(n[2]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[3]||(n[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[4]||(n[4]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,mu))),128))])):t.createCommentVNode("",!0),e.unFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",bu,[e.isShowNotFixedTitle?(t.openBlock(),t.createElementBlock("div",vu,t.toDisplayString(e.unFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.unFixedColumns,f=>(t.openBlock(),t.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:n[14]||(n[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[15]||(n[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[16]||(n[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[17]||(n[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[18]||(n[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",value:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,Su)]),_:2},1032,["value"]),t.createElementVNode("div",xu,[t.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[10]||(n[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[11]||(n[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:n[12]||(n[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:n[13]||(n[13]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,wu))),128))])):t.createCommentVNode("",!0),e.rightFixedColumns.length>0?(t.openBlock(),t.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(t.openBlock(),t.createElementBlock("div",$u,t.toDisplayString(e.rightFixedTitle),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rightFixedColumns,f=>(t.openBlock(),t.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:n[23]||(n[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:n[24]||(n[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:n[25]||(n[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:n[26]||(n[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:n[27]||(n[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(b,{class:"checkbox-item",label:f.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(f.label),45,Eu)]),_:2},1032,["label"]),t.createElementVNode("div",Nu,[t.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:n[19]||(n[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:n[20]||(n[20]=h=>e.onMouseLeaveForTip(h))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:n[21]||(n[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:n[22]||(n[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(g)]),_:2},1032,["onClick"])])],40,Cu))),128))])):t.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const rn=_e(uu,[["render",ku]]);let Iu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l,r,a,i,u){if(Array.isArray(o)){let c=(l-1)*r,d=c+r;d>o.length&&(d=o.length);const g=o.slice(c,d);return{totalSize:o.length,page:g}}if(typeof o=="function")return await Reflect.apply(o,null,[l,r,a,i,u]);const s=Pe(this.proxy,n);return s===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(We(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await Reflect.apply(s,null,[o,l,r,a,i,u]))}};function Ou(){const e=t.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(n){this.proxy=n}async load(n){let o=null;const l=Pe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",n])),o}save(n,o){const l=Pe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",n,o])}remove(n){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",n])}}function sr(){const e=t.getCurrentInstance();return new Vu(e.proxy)}const Du=Symbol.for("TableStateKey"),ur={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]},cellClassName:{type:Function},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"}},cr={pageIndex:{type:[Number],required:!1,default:1},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},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},ll={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:"不固定"}},Fu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,n){let o=n.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);l=l[g][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function ol(e,n){return e.filter(l=>{for(let r in n){const a=n[r],i=Ru(l,r);if(a!==i)return!1}return!0})}function Au(e,n,o){return{inheritAttrs:!1,props:{...xe,...Ie,...ur,...cr,...ll,...Fu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,r){const{locale:a}=Le.useFoxI18n(n),{emitEvent:i}=$e({componentName:e,validateHandler:{getValue(...Q){return B.value}}},l.prop??r.attrs.name),u=e,s=t.computed(()=>({[u]:!0})),c=t.computed(()=>({[`${u}__setting`]:!0})),d=t.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),g=t.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),b=t.shallowRef({}),w=t.computed(()=>({...b.value,...l.params??{},...l.baseParams??{}})),p=t.ref(l.infiniteLoad===!0?0:l.pageIndex),f=t.ref(l.pageSize),h=ue(l.infiniteLoad);h||(t.watch(()=>l.pageIndex,Q=>{p.value=Q}),t.watch(()=>l.pageSize,Q=>{f.value=Q}),t.watch([p,f],([Q,re],[ae,fe])=>{re!==fe&&(p.value=1,Q=1),E(l.data,Q,re,w.value)}));const D=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);D()&&t.watch([()=>l.data,w],async([Q,re],[ae,fe])=>{D()&&(Q!==ae&&(L=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,fe))&&(h?(p.value=0,q.value=!0,B.value=[],P()):p.value===1?E(Q,p.value,f.value,re):p.value=1))},{deep:!0});const I=Q=>{p.value=Q,i("page-index-change",Q)},C=Q=>{f.value=Q,i("page-size-change",Q)},q=t.ref(!0),j=t.ref(0),B=t.ref(),_=Ou();let L=!0;const x=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),E=async(Q,re,ae,fe,ye)=>{L=!1;try{if(ye===!0){if(!q.value)return!1;const me=await _.load("table",Q,re,ae,fe,L,a.value);return j.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,B.value,me.page),setTimeout(()=>{i("loaded-data")},250),(B.value?.length??0)>=j.value)||me.page.length<ae?(q.value=!1,!1):!0}else{const me=await _.load("table",Q,re,ae,fe,L,a.value);return j.value=me.totalSize,B.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),j.value=0,B.value=[]}return!1};let y=!1;const P=async()=>{if(!y){if(y=!0,!q.value){y=!1;return}p.value+=1,await E(l.data,p.value,f.value,w.value,!0),y=!1}},J=(Q={},re=!1)=>new Promise(async ae=>{b.value={...t.toRaw(Q??{})},re||(p.value=l.pageIndex??1),h===!0?(p.value=0,B.value=[],q.value=!0,await P()):await E(l.data,p.value,f.value,w.value),ae()}),A=()=>{j.value=0,B.value=[],h===!0&&(p.value=0,q.value=!0)};let $=!1;const F=()=>{$||($=!0,J())},M=t.ref(null);if(h===!0){let Q=null;const re=()=>{M.value&&(Q=new IntersectionObserver(fe=>{let ye=!1;for(let me of fe)if(me.intersectionRatio>0){ye=!0;break}ye&&P()}),Q.observe(M.value))},ae=()=>{!Q||!M.value||(Q.unobserve(M.value),Q=null)};t.onMounted(re),t.onBeforeUnmount(ae)}D()&&!x.value&&J();const Y=t.ref(null);t.provide(Du,{currentRow:Y});const Z=(Q,re)=>{Y.value=Q,i("current-change",Q,re)},ee=(Q,re,ae)=>{i("row-click",Q,re,ae),ue(l.rowClickSelectable)===!0&&ie?.value.toggleRowSelection(Q)},le=[],O=(Q,re)=>{if(i("expand-change",Q,re),ue(l.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=le.length;le.splice(0,ae)}else{le.forEach(fe=>{fe!==Q&&ie?.value.toggleRowExpansion(fe,!1)});const ae=le.length;le.splice(0,ae,Q)}},T=r.attrs.id??l.prop??r.attrs.name,R=sr(),V=t.ref([]);let S=[];const z=()=>({srcColumnPropertyList:S.map(re=>({...re})),columnPropertyList:V.value}),U=Q=>{V.value=[...Q],G()},ne=async()=>{const Q=await R.load(T);Q&&(V.value=Q)},G=()=>{R.save(T,V.value)},W=()=>{R.remove(T)};ne();const N=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",H=()=>typeof r.slots.default=="function"?r.slots.default():[],X=(Q,re={})=>{for(let ae in re){const fe=re[ae];typeof fe!="function"&&(Q[ae]=fe)}},k=t.computed(()=>{const Q=H(),re=new Map;if(S=[],Q.forEach(ae=>{const ye=ae;if(!ye.props)return;const me=N(ye.props);re.set(me,ye);const Je={label:"",prop:""};X(Je,ye.props),S.push(Je)}),V.value.length===S.length){const ae=[];for(let fe of V.value){const ye=N(fe),me=re.get(ye);if(!me)return Q;if(fe.visible===!1)continue;const Je=me;Je.props.fixed=fe.fixed,ae.push(Je)}return ae}return Q}),K=t.shallowRef(new Map),te=({column:Q,rowIndex:re})=>{const ae=`${re}_${Q.property}`;return K.value.get(ae)??""},oe=Q=>typeof Q=="function"?re=>{const ae=[];let fe=te(re);return fe&&ae.push(fe),fe=Q(re),fe&&ae.push(fe),ae.length===0?"":ae.join(" ")}:te,ce=(Q,re,ae)=>{const fe=`${Q}_${re}`;ae?K.value.set(fe,ae):K.value.delete(fe),t.triggerRef(K)},ie=t.ref();return we({clearSelection:()=>ie?.value.clearSelection(),getSelectionRows:()=>ie?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{ie?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!B.value)return;const ae=ol(B.value,Q);ae.length!==0&&ae.forEach(fe=>{ie?.value.toggleRowSelection(fe,re)})},toggleAllSelection:()=>{ie?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{ie?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!B.value)return;const ae=ol(B.value,Q);ae.length!==0&&ae.forEach(fe=>{ie?.value.toggleRowExpansion(fe,re)})},setCurrentRow:Q=>{ie?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!B.value)return;const re=ol(B.value,Q);re.length!==0&&ie?.value.setCurrentRow(re[0])},getCurrentRow:()=>Y.value,clearSort:()=>{ie?.value.clearSort()},clearFilter:Q=>{ie?.value.clearFilter(Q)},doLayout:()=>{ie?.value.doLayout()},sort:(Q,re)=>{ie?.value.sort(Q,re)},scrollTo:(Q,re)=>{ie?.value.scrollTo(Q,re)},setScrollTop:Q=>{ie?.value.setScrollTop(Q)},setScrollLeft:Q=>{ie?.value.setScrollLeft(Q)},loadData:J,clearData:A,getData(){return B.value},getTotalSize(){return j.value},getPageIndex(){return p.value},getPageSize(){return f.value},getColumnSetting:z,setColumnSetting:U,removeColumnSetting:W,setCellClassName:ce}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:B.value,ref:ie,class:s.value,"cell-class-name":oe(l.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>k.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),h===!0){const je=[];if(q.value){const Ft=t.h(Ce.Loading,{class:`${u}__infinite-icon`});je.push(Ft);const _l=t.h("span",{class:`${u}__infinite-text`},[l.loadText]);je.push(_l)}else{const Ft=t.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);je.push(Ft)}const st={ref:M,class:`${u}__infinite`},Bl=t.h("div",st,je);ae.append=()=>Bl}const fe=t.h(v.ElTable,re,ae),ye=[];if(ye.push(fe),!h){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(l.showPagination){const st={class:g.value,total:j.value,pageSize:f.value,"onUpdate:pageSize":C,pageSizes:l.pageSizes,currentPage:p.value,"onUpdate:currentPage":I,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};je=t.h(v.ElPagination,st)}if(l.showSetting){const st=[];je&&st.push(je);const Bl=t.h(v.ElIcon,{class:c.value},{default:()=>t.h(Ce.Setting)}),Ft=io(l,ll),_l=t.h(rn,{...Ft,tableRef:{getColumnSetting:z,setColumnSetting:U,removeColumnSetting:W}},{default:()=>Bl});st.push(_l);const bh=t.h("div",{class:d.value},st);ye.push(bh)}else je&&ye.push(je)}const me={default:()=>ye},yt={...Ne(l,ur,cr,ll)};return l.prop&&(yt.prop=`${l.prop}_item`),yt.contentClass=`${u}__wrap`,yt.errorMarkClass="is-table-error",x.value&&D()&&(yt["appear-listen"]=!0,yt.onAppear=F),t.h(o,yt,me)}}}}const{componentName:Lu,create:Mu,scope:Bu}=se("table-item"),rl=Mu(Au(Lu,Bu,Te));function ht(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ot(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _u(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let qu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Pu(){const e=t.getCurrentInstance();return new qu(e.proxy)}function fr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=ht(e,n),r=ht(e,o);if(l!==r)return!1;const a=Ot(e,n),i=Ot(e,o);return a===i}function ju(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;let r=null;for(let a of l){let i=!1;if(o==="text")i=ht(e,a)===n;else if(o==="item")i=fr(e,a,n);else{let u=Ot(e,a);u==null&&(u=ht(e,a)),i=u===n}if(i){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const dr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},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}};function Ku(e,n,o){return{inheritAttrs:!0,props:{...xe,...Ie,...dr},emits:["change","update:modelValue","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref(null),g=t.ref(null),b=(x,E,y,P=!0)=>{const J=ju(l,x,E,y);if(J===null){if(g.value===null)return;g.value=null,d.value=null,P&&(c("update:modelValue",null),c("change",null));return}if(!fr(l,J,g.value)){d.value=x;const $=t.toRaw(J);g.value=$;let F=null;l.valueType==="text"?F=ht(l,$):l.valueType==="item"?F=$:F=Ot(l,$),P&&(c("update:modelValue",F),c("change",F))}},w=t.ref([]),p=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,x=>ue(x)),f=Pu(),h=async(x,E)=>{if(x){const y=await f.load("radio",x,E);if(y.length>0)if(typeof y[0]=="string"){let A=y.map($=>zu($));w.value=A}else w.value=y}};t.watch([()=>l.source,()=>l.params],async([x,E])=>{h(x,E)},{immediate:!p.value});let D=!1;const I=()=>{D||(D=!0,h(l.source,l.params))};t.watch([()=>w.value,()=>l.modelValue],([x,E])=>{b(E,l.valueType,x,!1),c("setValue",E)});const C=e,q=t.computed(()=>({[C]:!0,[`is-${l.direction}`]:!0})),j=x=>{b(x,"value",w.value,!0)};let B=ge(l,"hintText"),_=ge(l,"hintVisible");const L=(x,E)=>{const y=[];return x.forEach((P,J)=>{const A=Ot(l,P),$=ht(l,P);let F=_u(l,P);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const M=Hu(l,P,J)??{},Y=`${A}_${J}`,Z={...M,key:Y,value:A,size:l.size,border:ue(l.border)};F&&(Z.disabled=F),l.itemType==="button"?y.push(t.h(v.ElRadioButton,Z,{default:()=>[$]})):typeof E=="function"?y.push(t.h(v.ElRadio,Z,{default:()=>E(P)})):y.push(t.h(v.ElRadio,Z,{default:()=>[$]}))}),y};return we({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const E={...He(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,onChange:j},y=[],P={};r.slots.options?P.default=r.slots.options:P.default=()=>L(w.value,r.slots.text);const J=t.h(v.ElRadioGroup,E,P);y.push(J);const A={default:()=>y};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,dr),hintText:B.value,hintVisible:_.value};return l.prop&&(F.prop=`${l.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=I),t.h(o,F,A)}}}}const{componentName:Wu,create:Yu,scope:Gu}=se("radio-item"),al=Yu(Ku(Wu,Gu,Te));function gt(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function mt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uu(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}let Xu=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Zu(){const e=t.getCurrentInstance();return new Xu(e.proxy)}function hr(e,n,o){if(n===o)return!0;if(n===null||o===null)return!1;const l=gt(e,n),r=gt(e,o);if(l!==r)return!1;const a=mt(e,n),i=mt(e,o);return a===i}function Ju(e,n,o,l){if(l.length==0||n===""||n===null||n===void 0)return null;Array.isArray(n)||(n=[n]);const r=[];return n.forEach(a=>{for(let i of l){let u=!1;if(o==="text")u=gt(e,i)===a;else if(o==="item")u=hr(e,i,a);else{let s=mt(e,i);s==null&&(s=gt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Qu(e){return{text:e,value:e}}function ec(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}const gr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},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}};function tc(e,n,o){return{inheritAttrs:!0,props:{...xe,...Ie,...gr},emits:["change","update:modelValue","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=t.ref([]),g=t.ref([]),b=(x,E,y,P=!0)=>{const J=Ju(l,x,E,y);if(J===null){if(g.value===null||g.value.length===0)return;d.value=[],g.value=[],P&&(c("update:modelValue",[]),c("change",[]));return}let A=!0;if(J.length!==g.value.length)A=!1;else for(let $=0;$<J.length;$++){const F=J[$],M=g.value[$];if(!hr(l,F,M)){A=!1;break}}if(!A){g.value=J;let $=[],F=[];J.forEach(Y=>{$.push(mt(l,Y)),l.valueType==="text"?F.push(gt(l,Y)):l.valueType==="item"?F.push(Y):F.push(mt(l,Y))}),d.value=$;const M=t.toRaw(F);P&&(c("update:modelValue",M),c("change",M))}},w=t.ref([]),p=Oe(t.computed(()=>l.appearLoad),"appearLoad",Me.Near,x=>ue(x)),f=Zu(),h=async(x,E)=>{if(x){const y=await f.load("checkbox",x,E);if(y.length>0)if(typeof y[0]=="string"){let A=y.map($=>Qu($));w.value=A}else w.value=y}};t.watch([()=>l.source,()=>l.params],async([x,E])=>{h(x,E)},{immediate:!p.value});let D=!1;const I=()=>{D||(D=!0,h(l.source,l.params))};t.watch([()=>w.value,()=>l.modelValue],([x,E])=>{b(E,l.valueType,x,!1),c("setValue",E)});const C=e,q=t.computed(()=>({[C]:!0,[`is-${l.direction}`]:!0})),j=x=>{b(x,"value",w.value,!0)};let B=ge(l,"hintText"),_=ge(l,"hintVisible");const L=(x,E)=>{const y=[];return x.forEach((P,J)=>{const A=mt(l,P),$=gt(l,P);let F=Uu(l,P);i.value===!0&&(F=i.value),s.value===!0&&(F=s.value);const M=ec(l,P,J)??{},Y=`${A}_${J}`,Z={...M,key:Y,class:l.itemClass,value:A,size:l.size,border:ue(l.border)};F&&(Z.disabled=F),l.itemType==="button"?y.push(t.h(v.ElCheckboxButton,Z,{default:()=>[$]})):typeof E=="function"?y.push(t.h(v.ElCheckbox,Z,{default:()=>E(P)})):y.push(t.h(v.ElCheckbox,Z,{default:()=>[$]}))}),y};return we({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const E={...He(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,max:Se(l.max),min:Se(l.min),onChange:j},y=[],P={};r.slots.options?P.default=r.slots.options:P.default=()=>L(w.value,r.slots.text);const J=t.h(v.ElCheckboxGroup,E,P);y.push(J);const A={default:()=>y};r.slots.default&&(A.label=r.slots.default),r.slots.fixedTip&&(A.fixedTip=r.slots.fixedTip);const F={...Ne(l,gr),hintText:B.value,hintVisible:_.value};return l.prop&&(F.prop=`${l.prop}_item`),p.value&&(F["appear-listen"]=!0,F.onAppear=I),t.h(o,F,A)}}}}const{componentName:nc,create:lc,scope:oc}=se("checkbox-item"),il=lc(tc(nc,oc,Te)),mr={modelValue:{type:[Number,String],required:!1}};function rc(e,n,o){return{props:{...xe,...Ie,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=ge(l,"modelValue",D=>Se(D),c),g=e,b=t.computed(()=>({[g]:!0})),w=D=>{c("update:modelValue",D),c("change",D)};let p=ge(l,"hintText"),f=t.ref(!1);const h=t.ref();return we({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const I={...He(r.attrs),ref:h,class:b.value,readonly:s.value||i.value,modelValue:d.value,onChange:w},C={},q=[],j=t.h(v.ElRate,I,C);q.push(j);const B={default:()=>q};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Ne(l,mr),hintText:p.value,hintVisible:f.value};return l.prop&&(L.prop=`${l.prop}_item`),t.h(o,L,B)}}}}const{componentName:ac,create:ic,scope:sc}=se("rate-item"),sl=ic(rc(ac,sc,Te)),pr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,n,o){return{props:{...xe,...Ie,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),{emitEvent:c}=$e({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=ge(l,"modelValue",null,c),g=e,b=t.computed(()=>({[g]:!0})),w=D=>{c("update:modelValue",D),c("change",D)};let p=ge(l,"hintText"),f=ge(l,"hintVisible");const h=t.ref();return we({setDisabled:D=>{a.value=D},setReadonly:D=>{u.value=D}}),()=>{const I={...He(r.attrs),ref:h,class:b.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:w},C={},q=[],j=t.h(v.ElSwitch,I,C);q.push(j);const B={default:()=>q};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const L={...Ne(l,pr),hintText:p.value,hintVisible:f.value};return l.prop&&(L.prop=`${l.prop}_item`),t.h(o,L,B)}}}}const{componentName:cc,create:fc,scope:dc}=se("switch-item"),ul=fc(uc(cc,dc,Te)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,n,o){return{props:{...xe,...Ie,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=t.ref(null),i=De(t.computed(()=>a.value??l.disabled)),u=t.ref(null),s=Ve(t.computed(()=>u.value??l.readonly)),c=t.ref(!1),{emitEvent:d}=$e({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),g=ge(l,"modelValue",null,d),b=e,w=t.computed(()=>({[b]:!0})),p=_=>{d("update:modelValue",_),d("change",_)};let f=ge(l,"hintText"),h=t.ref(!1);const D=_=>{let x=_.target.value;c.value=!0,pe(f.value)||(h.value=!0),d("focus",x,_)},I=_=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let x=_.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),q.value||d("blur",x,_)},C=()=>{d("clear","")},q=t.ref(!1),j=_=>{q.value=_,d("visible-change",_),_||d("selected")},B=t.ref();return we({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},setDisabled:_=>{a.value=_},setReadonly:_=>{u.value=_}}),()=>{const L={...He(r.attrs),ref:B,class:w.value,disabled:i.value||s.value,modelValue:g.value,"onUpdate:modelValue":p,onClear:C,onFocus:D,onBlur:I,onVisibleChange:j},x={};r.slots.option&&(x.default=r.slots.option);const E=[],y=t.h(v.ElTreeSelect,L,x);E.push(y);const P={default:()=>E};r.slots.default&&(P.label=r.slots.default),r.slots.fixedTip&&(P.fixedTip=r.slots.fixedTip);const A={...Ne(l,yr),hintText:f.value,hintVisible:h.value};return l.prop&&(A.prop=`${l.prop}_item`),t.h(o,A,P)}}}}const{componentName:gc,create:mc,scope:pc}=se("tree-select-item"),cl=mc(hc(gc,pc,Te)),yc={},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"},vc=[t.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)];function wc(e,n){return t.openBlock(),t.createElementBlock("svg",bc,vc)}const Sc=_e(yc,[["render",wc]]),{componentName:Ah,create:xc,scope:Lh}=se("group-setting"),Tc={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:"到底部"}},$c=xc({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Sc,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...Tc},emits:["change"],setup(e,{emit:n,attrs:o,expose:l}){let r=null;const a=t.ref([]),i=sr(),u=O=>O.length>1,s=()=>{const O=[],T=[...a.value];a.value=T.map((V,S)=>(V.visible!==!1&&O.push(V.prop),{...V,sortIndex:S})),a.value.length===O.length?f.value=!0:O.length>0&&(h.value=!0),C.value=O},c=O=>{let T=null;if(typeof O=="string")T=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const V=O.$el??O;typeof V.querySelectorAll=="function"&&(T=V.querySelectorAll(".fox-item[prop]"))}if(!T)return[];const R=[];return T.forEach(V=>{const S=V.querySelector(".label--string");let z="";S&&(z=S.textContent??"");const U=V.getAttribute("prop")??"",G=window.getComputedStyle(V,null).getPropertyValue("display");R.push({label:z,prop:U,sortIndex:0,visible:G!=="none"})}),R},d=()=>{if(!r){const O=c(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},g=async(O=!1)=>{const T=await i.load(e.groupProp),R=V=>{if(!V||!r)return;const S=r.map(z=>({...z}));Array.isArray(T)&&T.forEach(z=>{S.some(U=>{if(U.prop===z.prop){const ne=U.label;return Object.assign(U,z),U.label=ne,!0}return!1})}),a.value=S.sort((z,U)=>z.sortIndex-U.sortIndex),s(),O&&w(!1)};r?R(!0):Ht(d,e.initDelay,5,50,!1,R)},b=()=>{const O=r??[];a.value=O.map(T=>({...T})),s(),w()},w=(O=!0)=>{O&&i.save(e.groupProp,a.value);const T=a.value.map(R=>({...R}));n("change",T)},p=t.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=t.ref(!1),h=t.ref(!1),D=O=>{const T=[];a.value.forEach(V=>{O&&T.push(V.prop),V.visible=O}),f.value=!1,h.value=!1,a.value.length===T.length?f.value=!0:T.length>0&&(h.value=!0),C.value=T,w()},I=()=>{b()},C=t.ref([]),q=O=>{a.value.forEach(R=>{const V=O.indexOf(R.prop)!==-1;R.visible=V}),f.value=!1,h.value=!1;const T=a.value.length;O.length===T?f.value=!0:O.length>0&&(h.value=!0),w()},j=()=>{g()};t.onMounted(()=>{g(!0)});const B={currentRow:null,index:null},_=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,_(O)):null:null,L=O=>{const T=O.currentTarget;T&&T.dataset&&(B.index=T.dataset.index)},x=O=>{B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null),B.index=null},E=O=>{const T=O.currentTarget;O.relatedTarget;const R=_(T);R&&(O.preventDefault(),B.currentRow&&B.currentRow!==R&&B.currentRow.classList.remove("is-dragover"),R.classList.add("is-dragover"),B.currentRow=R)},y=O=>{O.preventDefault(),B.currentRow&&(B.currentRow.classList.remove("is-dragover"),B.currentRow=null)},P=O=>{const T=O.currentTarget,R=_(T);if(!R)return;O.preventDefault();const V=Number(B.index),S=Number(R.dataset.index);if(V!==S){if(V<S){const z=a.value[V];a.value.splice(V,1),a.value.splice(S,0,z)}else{const z=a.value[V];a.value.splice(V,1),a.value.splice(S+1,0,z)}s(),w()}},J=O=>{const T=a.value[O];a.value.splice(O,1),a.value.splice(0,0,T),s(),w()},A=O=>{const T=a.value[O];a.value.splice(O,1),a.value.push(T),s(),w()};l({refresh:()=>{r=null,g(!1)}});const $=new Map;let F=null;function M(O){const T=document.createRange();return T.setStart(O,0),T.setEnd(O,O.childNodes.length),T.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:D,handleReset:I,checkedValue:C,handleCheckChange:q,onShow:j,onDragStart:L,onDragEnd:x,onDragOver:E,onDragLeave:y,onDrop:P,checkboxLabelStyle:p,toTop:J,toBottom:A,onMouseOverForOverflowText:(O,T,R)=>{const V=O.currentTarget;if(V){const S=Math.floor(V.offsetWidth);if(Math.floor(M(V))>S){let U=$.get(T);if(U){if(U===F)return;Fe.hide(U)}U=Fe.show(V,R,{type:"text",placement:"top",closeOnClick:!1}),$.set(T,U),F=U}}},onMouseLeaveForOverflowText:(O,T)=>{const R=$.get(T);R&&(Fe.hide(R),R===F&&(F=null))},onMouseOverForTip:(O,T)=>{const R=O.currentTarget;R&&(F&&Fe.hide(F),F=Fe.show(R,T,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{F&&(Fe.hide(F),F=null)}}}}),Cc={class:"fox-group-setting"},Ec={class:"fox-group-setting__header"},Nc={class:"fox-group-setting__body"},kc={class:"fox-group-setting__body-list","data-role":"container"},Ic=["data-index","draggable"],Oc=["onMouseover","onMouseleave"],Vc={class:"tools-item"};function Dc(e,n,o,l,r,a){const i=t.resolveComponent("FoxCheckbox"),u=t.resolveComponent("FoxButton"),s=t.resolveComponent("DragIcon"),c=t.resolveComponent("Download"),d=t.resolveComponent("FoxIcon"),g=t.resolveComponent("FoxCheckboxGroup"),b=t.resolveComponent("FoxPopover");return t.openBlock(),t.createBlock(b,t.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),default:t.withCtx(()=>[t.createElementVNode("div",Cc,[t.createElementVNode("div",Ec,[t.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":n[0]||(n[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),t.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),t.createElementVNode("div",Nc,[t.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":n[10]||(n[10]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:t.withCtx(()=>[t.createElementVNode("div",kc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.itemPropertyList,w=>(t.openBlock(),t.createElementBlock("div",{key:w.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":w.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:n[5]||(n[5]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:n[6]||(n[6]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:n[7]||(n[7]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:n[8]||(n[8]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:n[9]||(n[9]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.itemPropertyList)?(t.openBlock(),t.createBlock(s,{key:0,class:"icon-item"})):t.createCommentVNode("",!0),t.createVNode(i,{class:"checkbox-item",label:w.prop},{default:t.withCtx(()=>[t.createElementVNode("span",{onMouseover:p=>e.onMouseOverForOverflowText(p,w.prop,w.label),onMouseleave:p=>e.onMouseLeaveForOverflowText(p,w.prop),class:"checkbox-item__label",style:t.normalizeStyle(e.checkboxLabelStyle)},t.toDisplayString(w.label),45,Oc)]),_:2},1032,["label"]),t.createElementVNode("div",Vc,[t.createVNode(d,{onClick:p=>e.toTop(w.sortIndex),onMouseover:n[1]||(n[1]=p=>e.onMouseOverForTip(p,e.toTopText)),onMouseleave:n[2]||(n[2]=p=>e.onMouseLeaveForTip(p)),class:"is-reverse"},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"]),t.createVNode(d,{onClick:p=>e.toBottom(w.sortIndex),onMouseover:n[3]||(n[3]=p=>e.onMouseOverForTip(p,e.toBottomText)),onMouseleave:n[4]||(n[4]=p=>e.onMouseLeaveForTip(p))},{default:t.withCtx(()=>[t.createVNode(c)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",Dc]]),Fc=["aria-labelledby"],Rc=t.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),Ac=[Rc],Lc=t.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:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Fc))}}),Mc=["aria-labelledby"],Bc=t.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),_c=[Bc],dl=t.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:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),qc=["aria-labelledby"],Pc=t.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),jc=[Pc],zc=t.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:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=t.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),Wc=[Kc],Yc=t.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:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc=["aria-labelledby"],Uc=t.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),Xc=[Uc],Zc=t.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:n}){const o=e,l=n,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=t.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=t.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass(i.value),style:t.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}}),Jc={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},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},br=(e,n)=>n[e.textKey],Vt=(e,n)=>n[e.valueKey],Qc=(e,n)=>n[e.visibleKey],vr=(e,n)=>n[e.disabledKey],ef=(e,n)=>{const o=n[e.doitKey];return ue(o)},tf=(e,n)=>{const o=n[e.numKey];return o==null?null:Se(n[o])},wr=(e,n,o)=>{const l=e.itemOptions;return typeof l=="function"?l(n,o):l||null};function nf(e,n,o,l=!1){return{props:{...Jc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=t.computed(()=>{const O={};return O[`${e}`]=!0,O}),s=t.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),c=t.computed(()=>({})),d=t.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),g=t.ref(r.modelValue);t.watch(()=>r.modelValue,O=>{g.value!==O&&(g.value=O,M(!1))});const b=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),w=t.computed(()=>{const O={};return f.value||(O.display="none"),O}),p=t.ref(),f=t.ref(!1),h=()=>{const O=!f.value;D(O)},D=O=>{const T=O;T?(f.value=T,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,p.value?p.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},I=t.ref(),C=t.ref([]),q=(O,T)=>{C.value[T]=O},j=O=>T=>{q(T,O)},B=(O,T)=>{const R=I.value,V=C.value;if(!R||!V||!V[O])return;const S=V[O];let z=0;r.direction==="vertical"?z=S.offsetTop-(R.offsetHeight-S.offsetHeight)/2:z=S.offsetLeft-(R.offsetWidth-S.offsetWidth)/2,_(R,z,T?0:.3,r.direction)},_=(O,T,R,V)=>{let S=0;const z=V==="horizontal"?O.scrollLeft:O.scrollTop,U=R===0?1:Math.round(R*1e3/16);function ne(){V==="horizontal"?O.scrollLeft+=(T-z)/U:O.scrollTop+=(T-z)/U,++S<U&&Sn(ne)}ne()},L=(O,T)=>{const R=Vt(r,O),V={};return V[`${e}__titles-item`]=!0,V.disabled=vr(r,O),V.active=R===g.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),T&&(T.class&&(V[`${T.class}`]=!0),T.disabled===!0&&(V.disabled=T.disabled)),V},x=(O,T)=>{const R={};if(d.value>0){const V=Math.abs(d.value/2);r.direction==="vertical"?(R["margin-top"]=`${V}px`,R["margin-bottom"]=`${V}px`):(R["margin-left"]=`${V}px`,R["margin-right"]=`${V}px`)}return T&&T.style&&Object.assign(R,T.style),R},E=(O,T)=>`${Vt(r,O)??T}`,y=(O,T)=>{const R=Vt(r,O),V={};V[`${e}__popup-item`]=!0,V.disabled=vr(r,O),V.active=R===g.value,r.shape&&(V[`${r.shape}`]=!0);const S=wr(r,O,T);return S&&S.disabled===!0&&(V.disabled=S.disabled),V},P=t.computed(()=>(r.data??[]).filter(T=>Qc(r,T)!==!1)),J=(O,T)=>{const R=Vt(r,O);if(g.value==R)return;const V=()=>{g.value=R,r.scroll&&B(T,!1),i("update:modelValue",R),i("change",O,T)};if(typeof r.beforeChange=="function"){const S=r.beforeChange(O,T);Xl(S)?S.then(z=>{z!==!1&&V()}).catch(()=>{V()}):S!==!1&&V()}else V()},A=(O,T)=>function(){J(O,T)},$=(O,T)=>{J(O,T),D(!1)},F=(O,T)=>function(){$(O,T)},M=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const T=r.data.findIndex(R=>Vt(r,R)===g.value);T!==-1&&B(T,O)};t.watch(()=>r.data,()=>{setTimeout(M,0)}),t.onMounted(()=>{M(!0)});const Y=(O,T)=>{if(a.item)return a.item({item:O,index:T});const R=wr(r,O,T),V=[];if(a.text){const ne=a.text({item:O,index:T});V.push(ne)}else{const ne=[];if(R?.doit===!0||ef(r,O)){const H={class:[`${e}__titles-item-tip`,"doit"]},X=t.h("view",H);ne.push(X)}const G=R?.num??tf(r,O);if(G){let H="";const X=Se(G);X>=100?H="99+":H=`${X}`;const k={class:[`${e}__titles-item-tip`,"num"]},K=t.h("view",k,[H]);ne.push(K)}const W={class:`${e}__titles-item-text`};ne.push(br(r,O));const N=t.h("view",W,ne);V.push(N)}const S={class:`${e}__titles-item-line`},z=t.h("view",S);V.push(z);const U={ref:j(T),class:L(O,R),style:x(O,R),key:E(O,T),onClick:A(O,T)};return t.h("view",U,V)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let R=0;R<P.value.length;R++){const V=P.value[R],S=Y(V,R);O.push(S)}const T={ref:I,class:s.value,style:c.value};return t.h("view",T,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=t.h(o);const T={class:`${e}__navigation`,onClick:h};return t.h("view",T,[O])},le=()=>{const O=[];for(let R=0;R<P.value.length;R++){const V=P.value[R];let S=null;a.popupItem?S=a.popupItem({item:V,index:R}):S=br(r,V);const z={class:y(V,R),key:E(V,R),onClick:F(V,R)},U=t.h("view",z,[S]);O.push(U)}const T={class:b.value,style:w.value};return t.h("view",T,O)};return()=>{const O=[],T=Z();if(O.push(T),r.showQuickNavigation){const V=ee();O.push(V);const S=le();O.push(S)}const R={class:u.value};return t.h("view",R,O)}}}}const{create:lf,componentName:of,scope:rf}=se("tabs-bar"),hl=lf(nf(of,rf,Lc,!1)),Sr=Symbol("TabsStatesKey"),af={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function sf(e,n,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(l,{emit:r,slots:a}){const i=t.shallowRef([]),u={current:t.ref(l.modelValue??""),direction:t.ref(l.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:f=>{const h={name:f};u.current.value===f&&(h.loaded=!0),i.value.push(h),t.triggerRef(i)},remove:f=>{const h=i.value.findIndex(D=>D.name===f);h!==-1&&i.value.splice(h,1)},isLoaded:f=>{if(!l.lazy)return!0;const h=i.value.findIndex(D=>D.name===f);return h!==-1?u.current.value?i.value[h].loaded??!1:h===0:!1}};t.provide(Sr,u);const s=f=>{const h=i.value.findIndex(D=>D.name===f);h!==-1&&(i.value[h].loaded=!0,t.triggerRef(i))};t.watch([()=>l.modelValue,()=>l.direction],([f,h])=>{u.current.value!==f&&(u.current.value=f??"",s(f??"")),u.direction.value!==h&&(u.direction.value=h)});const c=t.ref(null),d=t.ref(null),g=t.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let b=!0;const w=t.computed(()=>{const f={},h=i.value.length;if(h<=0)return f;const D=i.value.findIndex(I=>I.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(f.height=`${h*u.tabHeight.value}px`,D!==-1&&(f.transform=`translate(0, -${D*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(f.width=`${h*u.tabWidth.value}px`,D!==-1&&(f.transform=`translate(-${D*u.tabWidth.value}px, 0)`)),b&&(b=!1,f.transition="transform 0s ease"),f});let p=null;return t.onMounted(()=>{if(!c.value)return;const f=()=>{const h=Xt(c.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height};window.ResizeObserver&&(p=new window.ResizeObserver(f),p.observe(c.value)),f()}),t.onBeforeUnmount(()=>{p&&(p.disconnect(),p=null)}),()=>{const f={class:`${e}__panes`,style:w.value,ref:d},h=t.h("view",f,[a?.default?.()]),D={class:g.value,ref:c};return t.h("view",D,[h])}}}}const{create:uf,componentName:cf,scope:ff}=se("tabs-container"),gl=uf(sf(cf,ff,!1)),df={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function hf(e,n,o){return{props:{...df},setup(l,{emit:r,slots:a}){const i=t.inject(Sr);t.onMounted(()=>{i.add(l.paneKey)}),t.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=t.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=t.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const g={class:`${e}__empty-icon`},b=l.emptyIcon??o,w=t.h(b,g),p={class:`${e}__empty-text`},f=l.emptyText??"Loading",h=t.h("view",p,[f]),D={class:`${e}__empty`},I=t.h("view",D,[w,h]);c.push(I)}const d={class:`${e}`,style:u.value};return t.h("view",d,c)}}}}const{create:gf,componentName:mf,scope:pf}=se("tabs-pane"),ml=gf(hf(mf,pf,dl)),yf={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:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function bf(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Tr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function vf(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function pl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function $r(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Cr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function yl(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class wf{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const r=Pe(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(We(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await Reflect.apply(r,null,[o,l]))}}function Sf(){const e=t.getCurrentInstance();return new wf(e.proxy)}function xf(e,n,o,l){return{props:{...yf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=Sf(),c=t.ref([]),d=t.computed(()=>c.value.filter(T=>vf(r,T)!==!1)),g=t.ref(-1),b=()=>{const T=r.modelValue,R=d.value.findIndex(V=>xr(r,V)===T);g.value!==R&&(g.value=R,r.scroll&&le(R))};t.watch([()=>r.modelValue,d],()=>{b()});const w=T=>g.value===T,p=T=>{if(T<0&&T>=d.value.length)return!1;const R=d.value[T],S=(yl(r,R,T)??{}).status??pl(r,R);return w(T)||S},f=t.computed(()=>{const T={[u]:!0};return r.mode?T[`is-${r.mode}`]=!0:r.direction&&(T[`is-${r.direction}`]=!0),r.scroll&&(T["is-scroll"]=!0),T}),h=t.computed(()=>({})),D=(T,R,V,S,z)=>{const U={[`${u}__step`]:!0};return z&&(U[`${z}`]=!0),U[`${I.value}`]=!0,S&&(U["is-doit"]=!0),T===g.value?U["is-active"]=!0:R==="done"?U["is-done"]=!0:R==="error"?U["is-error"]=!0:R==="half"?U["is-half"]=!0:V?U["is-disabled"]=!0:U["is-normal"]=!0,U},I=t.computed(()=>{if(r.mode==="simple")return"start";let T=r.align;return T||(r.direction==="vertical"?T="start":T="center"),T}),C=(T,R={})=>{const V={...R};return I.value==="start"&&T===d.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},q=(T,R)=>{let V={};if(R<d.value.length-1){const S=R+1;p(R)&&p(S)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},j=T=>d.value.length-1===T,B=(T,R)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&R>g.value||g.value===R)return;const V=g.value,S=R;g.value=R,r.scroll&&le(R);const z=xr(r,T);i("update:modelValue",z);const U={fromIndex:V,currentIndex:S,item:T,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",z,U)},_=t.ref(!0),L=async(T,R)=>{try{const V=await s.load("stesbar",T,R);Array.isArray(V)&&(c.value=V),_.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>r.data,()=>r.params],async([T,R])=>{T&&L(T,R)},{immediate:!0});const x=(T,R,V,S,z)=>{let U=null;if(a.icon)U=a.icon({item:T,index:R,status:S});else if(S==="done"){const G={};r.iconSize&&(G.width=r.iconSize,G.height=r.iconSize);const W=r.icon??o;U=t.h(W,G)}else{const G=V??`${R+1}`;U=t.h("span",{},[G])}const ne={class:"fox-steps-bar__icon",onClick:()=>{z||B(T,R)}};return t.h("view",ne,[U])},E=(T,R,V)=>{const S=t.h("i",{class:"fox-steps-bar__line-inner",style:q(T,R)});return t.h("view",{class:"fox-steps-bar__line"},[S])},y=()=>{let T=null;if(a.markIcon)T=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const S=r.markIcon??l;T=t.h(S,V)}return t.h("view",{class:"fox-steps-bar__mark"},[T])},P=(T,R,V,S,z)=>{const U=[];if(!j(R)){const W=E(T,R);U.push(W)}const ne=x(T,R,V,S,z);U.push(ne);const G={class:"fox-steps-bar__head"};return t.h("view",G,U)},J=(T,R,V,S)=>{let z=null;a.main?z=a.main({item:T,index:R,status:V}):z=bf(r,T);const U={class:"fox-steps-bar__main",onClick:()=>{S||B(T,R)}};return t.h("view",U,[z])},A=(T,R,V)=>{let S=null;if(a.sub){S=a.sub({item:T,index:R,status:V});const z={class:"fox-steps-bar__sub"};return t.h("view",z,[S])}return null},$=(T,R)=>{const V=yl(r,T,R)??{},S=V.status??pl(r,T);let z=Tr(r,T);V.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const U=V.label??Cr(r,T),ne=[],G=x(T,R,U,S,z);G&&ne.push(G);const W=J(T,R,S,z);if(W&&ne.push(W),!j(R)){const te=E(T,R);te&&ne.push(te)}const N=t.h("view",{class:"fox-steps-bar__head"},ne),H=V.class,X=V.style??{};let k=$r(r,T);V.doit===!0&&(k=!0);const K={ref:ee(R),class:D(R,S,z,k,H),style:C(R,X)};return t.h("view",K,[N])},F=(T,R)=>{const V=yl(r,T,R)??{},S=V.status??pl(r,T);let z=Tr(r,T);V.disabled===!0&&(z=!0),r.disabled===!0&&(z=!0);const U=V.label??Cr(r,T),ne=[],G=r.layout;for(let k of G)if(k==="head"){const K=P(T,R,U,S,z);ne.push(K)}else if(k==="main"){const K=J(T,R,S,z);ne.push(K)}else if(k==="sub"){const K=A(T,R,S);ne.push(K)}else if(k==="mark"){const K=y();ne.push(K)}const W=V.class,N=V.style??{};let H=$r(r,T);V.doit===!0&&(H=!0);const X={ref:ee(R),class:D(R,S,z,H,W),style:C(R,N)};return t.h("view",X,ne)},M=t.ref(),Y=t.ref([]),Z=(T,R)=>{Y.value[R]=T},ee=T=>R=>{Z(R,T)},le=(T,R)=>{const V=M.value,S=Y.value;if(!V||!S||!S[T])return;const z=S[T];let U=0;r.direction==="vertical"?U=z.offsetTop-(V.offsetHeight-z.offsetHeight)/2:U=z.offsetLeft-(V.offsetWidth-z.offsetWidth)/2,O(V,U,.3,r.direction)},O=(T,R,V,S)=>{let z=0;const U=S==="horizontal"?T.scrollLeft:T.scrollTop,ne=Math.round(V*1e3/16);function G(){S==="horizontal"?T.scrollLeft+=(R-U)/ne:T.scrollTop+=(R-U)/ne,++z<ne&&Sn(G)}G()};return()=>{const T=[];if(r.mode==="simple")for(let V=0;V<d.value.length;V++){const S=d.value[V],z=$(S,V);T.push(z)}else for(let V=0;V<d.value.length;V++){const S=d.value[V],z=F(S,V);T.push(z)}const R={ref:M,class:f.value,style:h.value};return t.h("view",R,T)}}}}const{componentName:Tf,create:$f,scope:Cf}=se("steps-bar"),bl=$f(xf(Tf,Cf,Yc,Zc)),Ef=Symbol.for("InnerPageScopeKey"),Nf=Symbol.for("PageWrapperKey");function kf(e,n){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,l){t.provide(Ef,!0);const r={};t.provide(Nf,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=t.ref(!0),u=s=>{i.value=s};return()=>{const c={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},d={};if(typeof l.slots.default=="function"){const g=l.slots.default();d.default=()=>g}return t.h(v.ElDialog,c,d)}}}}const{componentName:Mh,create:If,scope:Bh}=se("dialog-item"),vl=If(kf());let Dt=0;const Er="fox-overflow-hidden",Nr=()=>ot?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Dt&&Nr().classList.add(Er),Dt++}catch{}},()=>{if(e()&&Dt)try{Dt--,!Dt&&Nr().classList.remove(Er)}catch{}}],Vf={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:Df,create:Ff}=se("overlay"),Rf=Ff({props:{...Vf},emits:["click","update:visible"],setup(e,{emit:n}){const[o,l]=Of(()=>e.lockScroll),r=t.computed(()=>({[Df]:!0,[e.overlayClass]:!0})),a=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,u=>{u?o():l()}),{classes:r,style:a,onClick:u=>{n("click",u),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Af(e,n,o,l,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const an=_e(Rf,[["render",Af]]),Lf={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:{}}},kr=2e3;let Ir=kr;const Mf=(e,n)=>({components:n,props:{...Lf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=t.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=t.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=t.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=t.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==kr&&(Ir=Number(o.zIndex)),l("update:visible",!0),r.zIndex=++Ir,o.destroyOnClose&&(r.showSlot=!0),l("open")},c=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{l("click-pop",f)},g=f=>{f.stopPropagation(),l("click-close-icon",f),l("update:visible",!1)},b=f=>{l("click-overlay",f),o.closeOnClickOverlay&&l("update:visible",!1)},w=f=>{l("opend",f)},p=f=>{l("closed",f)};return t.watch(()=>o.visible,f=>{o.visible?s():c()}),t.watch(()=>o.closeable,f=>{r.closed=f}),{...t.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:g,onClickOverlay:b,onOpened:w,onClosed:p}}}),{componentName:Bf,create:_f}=se("popup"),qf=_f(Mf(Bf,{FoxOverLay:an,Close:zc}));function Pf(e,n,o,l,r,a){const i=t.resolveComponent("FoxOverLay"),u=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,t.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"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(u)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const wl=_e(qf,[["render",Pf]]),{create:jf}=se("toast"),zf=jf({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:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{l.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,w=>{w&&i()});const s=t.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const w=he(e.iconSize);return t.h(e.icon,{width:w,height:w,color:e.iconColor})},d=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),g=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:g,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(e,n,o,l,r,a){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Hf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Sl=_e(zf,[["render",Wf]]),Yf={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,default:""},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"}},Gf=(e,n,o)=>({props:{...Yf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:r}){const{emitEvent:a}=vo(),{toLocaleRefs:i}=Le.useFoxI18n(n),u=i(l,["placeholder"]),s=t.reactive({active:!1}),c=t.computed(()=>({background:l.background})),d=t.computed(()=>({background:l.inputBackground})),g=x=>{let y=x.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),a("update:modelValue",y,x),a("change",y,x)},b=t.ref({}),w=x=>{let y=x.target.value;s.active=!0,b.value=l.focusStyle,a("focus",y,x)},p=x=>{setTimeout(()=>{s.active=!1},0);let y=x.target.value;l.maxLength&&y.length>Number(l.maxLength)&&(y=y.slice(0,Number(l.maxLength))),b.value={},a("blur",y,x)},f=x=>{a("update:modelValue","",x),a("change","",x),a("clear","")},h=t.computed(()=>String(l.modelValue).length>0),D=t.computed(()=>{const x={};return h.value||(x.display="none"),x}),I=()=>{a("search",l.modelValue)},C=x=>{a("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&I()},q=x=>{a("click-input",x)},j=x=>{a("click-left-icon",l.modelValue,x)},B=t.computed(()=>({textAlign:l.inputAlign})),_=t.ref(null);t.onMounted(()=>{l.autofocus&&_.value.focus()});const L=()=>{const x=[];if(r.leftin){const A={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:j},$=t.h("view",A,[r.leftin()]);x.push($)}const E={ref:_,class:[`${e}__input-inner`],style:B.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:q,onInput:g,onFocus:w,onBlur:p,onkeyup:C},y=t.h("input",E);x.push(y);const P=[];if(l.clearable){const A={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:D.value,onClick:f},$=r?.clear?.()??l.clearIcon??o,F=t.h("view",A,[t.h($)]);P.push(F)}if(r.rightin){const A={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},$=t.h("view",A,[r.rightin()]);P.push($)}if(P.length>0){const A={class:`${e}__input-inner-right`},$=t.h("view",A,P);x.push($)}const J={class:[`${e}__search-input`,`${l.shape}`],style:{...d.value,...b.value}};return t.h("view",J,x)};return()=>{const x=[];if(l.label){const P={class:`${e}__search-label`},J=t.h("span",P,[l.label]);x.push(J)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},J=t.h("view",P,[r.leftout()]);x.push(J)}const E=L();if(x.push(E),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},J=t.h("view",P,[r.rightout()]);x.push(J)}const y={class:`${e}`,style:c.value};return t.h("view",y,x)}}}),{componentName:Uf,create:Xf,scope:Zf}=se("searchbar"),xl=Xf(Gf(Uf,Zf,Ce.CircleClose)),Jf=/scroll|auto|overlay/i,Or=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ed(e,n=Or){let o=e;for(;o&&o!==n&&Qf(o);){const{overflowY:l}=window.getComputedStyle(o);if(Jf.test(l))return o;o=o.parentNode}return n}function Vr(e,n=Or){const o=t.ref();return t.onMounted(()=>{e.value&&(o.value=ed(e.value,n))}),o}const Dr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,td={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function nd(e,n,o){return{props:{...td},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Le.useFoxI18n(n),u=i(l,["pullText","loadText","loadMoreText"]),s=t.ref(),c=Vr(s),d=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),g=t.computed(()=>({[e]:!0})),b=I=>I?I.offsetTop+b(I.offsetParent):0,w=()=>{let I=0,C=0,q="down";if(c.value==window){const j=Dr();s.value&&(I=b(s.value)+s.value.offsetHeight-j-window.innerHeight),C=j}else{const{scrollHeight:j,clientHeight:B,scrollTop:_}=c.value;I=j-B-_,C=_}return d.beforeScrollTop>C?q="up":q="down",d.beforeScrollTop=C,r("scroll-change",C),I<=l.threshold&&q=="down"},p=()=>{ql(()=>{if(!w()||!l.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),t.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",p,l.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",p,l.useCapture)};t.onMounted(()=>{f(),l.immediate&&p()}),t.onUnmounted(()=>{h()});const D=t.ref(!1);return t.onActivated(()=>{D.value&&(D.value=!1,f())}),t.onDeactivated(()=>{D.value=!0,h()}),t.watch(()=>l.modelValue,I=>{I||(d.isInfiniting=!1)}),()=>{const I={class:"fox-infinite__container"},C=t.h("view",I,[a?.default?.()]),q=[];if(d.isInfiniting){let L=a?.loading?.()??null;if(!L){let y=a?.loadingIcon?.()??null;if(!y){const A={class:["fox-infinite__bottom-box__img"]};y=t.h(o,A)}const P={class:"fox-infinite__bottom-box__text"},J=t.h("view",P,[u.loadText.value]);L=[y,J]}const x={class:"fox-infinite__bottom-box"},E=t.h("view",x,L);q.push(E)}else if(!l.hasMore){let L=a?.finished?.()??null;if(!L){const x={class:"fox-infinite__bottom-tips"};L=t.h("view",x,[u.loadMoreText.value]),q.push(L)}}const j={class:"fox-infinite__bottom"},B=t.h("view",j,q),_={class:g.value,ref:s};return t.h("view",_,[C,B])}}}}const{componentName:ld,create:od,scope:rd}=se("infinite-loading"),Tl=od(nd(ld,rd,dl)),Fr=10;function Rr(e,n){return e>n&&e>Fr?"horizontal":n>e&&n>Fr?"vertical":""}function $l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Cl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Rr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:n,isHorizontal:o,state:e}}function ad(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),a=t.ref(0),i=t.ref(0),u=t.ref(0),s=t.ref(0),c=t.ref(0),d=t.ref(""),g=()=>d.value==="vertical",b=()=>d.value==="horizontal",w=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const C=h.touches[0];i.value=C.clientX-e.value,u.value=C.clientY-n.value,r.value=C.clientX,a.value=C.clientY}else{const I=h;i.value=I.clientX-e.value,u.value=I.clientY-n.value,r.value=I.clientX,a.value=I.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),l.value=Date.now()-o.value,d.value||(d.value=Rr(s.value,c.value))},start:h=>{if(w(),h.touches){const C=h.touches[0];e.value=C.clientX,n.value=C.clientY}else{const I=h;e.value=I.clientX,n.value=I.clientY}o.value=Date.now()},reset:w,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:g,isHorizontal:b}}const id={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}},sd=(e,n,o)=>({props:{...id},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Le.useFoxI18n(n),u=i(l,["pullingText","loosingText","loadingText"]),s=Cl(),c=t.ref(),d=Vr(c),g=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=t.computed(()=>({[e]:!0})),w=t.computed(()=>{switch(g.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),p=t.computed(()=>({transitionDuration:`${l.duration}s`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""})),f=t.computed(()=>{const _={};return l.headHeight!=50&&(_.height=ke(l.headHeight)),_}),h=_=>{const L=+(l.pullDistance||l.headHeight);let x=_;return _>L&&(_<L*2?x=(_+L)/2:x=L+_/4),Math.round(x)},D=(_,L)=>{const x=+(l.pullDistance||l.headHeight);g.distance=_,L?g.status="loading":_===0?g.status="normal":_<x?g.status="pulling":g.status="loosing",r("change",{status:g.status,distance:_})},I=()=>g.status!=="loading"&&g.status!=="complete",C=()=>d.value==window?Dr()==0:d.value&&d.value.scrollTop==0,q=_=>{I()&&(C()?(s.start(_),g.isPullRefresh=!0,g.moving=!0):(g.distance=0,g.isPullRefresh=!1))},j=_=>{I()&&g.moving&&(s.move(_),s.isVertical()&&s.state.deltaY>0&&g.isPullRefresh&&(_.cancelable&&_.preventDefault(),D(h(s.state.deltaY))))},B=()=>{g.moving=!1,g.isPullRefresh&&I()&&s.state.deltaY&&(g.status==="loosing"?(D(+l.headHeight,!0),r("update:modelValue",!0),t.nextTick(()=>r("refresh"))):D(0)),setTimeout(()=>{s.reset()},0)};return t.watch(()=>l.modelValue,_=>{_?D(+l.headHeight,!0):D(0)}),()=>{const _=[];let L=null;if(g.status==="loading"){if(L=a?.loading?.()??null,!L){const F={class:["fox-pull-refresh-container-topbox-icon"]};L=t.h(o,F)}}else g.status==="pulling"?L=a?.pulling?.()??null:g.status==="loosing"&&(L=a?.loosing?.()??null);L&&_.push(L);const x={class:["fox-pull-refresh-container-topbox-text"]},E=t.h("dive",x,[w.value]);_.push(E);const y={class:["fox-pull-refresh-container-topbox"],style:f.value},P=t.h("div",y,_),J={class:"fox-pull-refresh-container",style:p.value},A=t.h("div",J,[P,a?.default?.()]),$={ref:c,class:b.value};return $l()?Object.assign($,{onTouchstart:q,onTouchmove:j,onTouchend:B}):Object.assign($,{onMousedown:q,onMousemove:j,onMouseup:B}),t.h("div",$,[A])}}}),{componentName:ud,create:cd,scope:fd}=se("pull-refresh"),El=cd(sd(ud,fd,dl));function dd(e,n){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(o,{slots:l}){const r=e,a=t.computed(()=>({[r]:!0})),i=t.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),u=t.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=t.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=t.computed(()=>o.color?{color:o.color}:null);return()=>{let d=null;if(l.mark)d=l.mark()[0];else{const f={class:i.value,style:u.value};d=t.h(o.icon??"div",f)}const g={class:s.value,style:c.value},b=l.default?l.default():[],w=t.h("div",g,b),p={class:a.value};return o.textPosition==="right"?t.h("div",p,[d,w]):t.h("div",p,[w,d])}}}}const{componentName:hd,create:gd,scope:_h}=se("indicator"),Nl=gd(dd(hd));function md(e,n){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){n(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(r)},500)}const pd={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},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function yd(e,n,o,l=!1){return{props:{...pd},emits:["click"],setup(r,a){const i=t.ref(null),u=t.computed(()=>{const C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),s=t.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),c=(C,q)=>{let j=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const B=r.highlightFilter;if(C.indexOf(B)!==-1){const L=C.replace(new RegExp(B,"g"),`<span>${B}</span>`);q.innerHTML=L,q.class["is-highlight"]=!0,j=t.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const B=r.highlightFilter(C);B&&(q.innerHTML=B,q.class["is-highlight"]=!0,j=t.h(r.tag,q))}return j},d=C=>{a.emit("click",C)};let g="";const b=()=>{const C=i.value;if(!C)return;const q=C.clientWidth;md(C,j=>{const B=C.innerHTML??"";pe(B)||j<q||(g?o?.show(C,B,{type:"text",id:g,showArrow:r.showArrow},!0):g=o?.show(C,B,{type:"text",showArrow:r.showArrow},!0)??"")})},w=()=>{g&&o?.hide(g)};let p=null;const f=C=>{p||(p=setTimeout(()=>{b(),p=null},r.showAfter??0))},h=C=>{p&&(clearTimeout(p),p=null),setTimeout(()=>{w()},r.hideAfter??0)},D=()=>{const C=i.value;C&&(C.addEventListener("mouseover",f),C.addEventListener("mouseleave",h))},I=()=>{const C=i.value;C&&(C.removeEventListener("mouseover",f),C.removeEventListener("mouseleave",h))};return t.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||D()}),t.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||I()}),()=>{const C={onClick:d,class:u.value,style:s.value,ref:i};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const x=L[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const E=Se(r.digits),y=Se(r.decimalLength),P=ue(r.autoPadding);let J=`${L[0].children}`,A=J.split("").reverse().join("");A=Lt(A,y,P,E,r.separator),J=A.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(J,C)),q||(C.innerHTML=J,q=t.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const x=L[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const E=`${L[0].children}`;q=c(E,C),q||(C.innerHTML=E,q=t.h(r.tag,C))}}}q||(q=t.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let B=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const x={},E=r.color;E&&(x.color=E);const y={class:L,style:x};B=t.h("view",y,t.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const x={},E=r.color;E&&(x.color=E);const y={class:L,style:x};B=t.h("view",y,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const x={},E=r.color;E&&(x["background-color"]=E);const y={class:L,style:x};B=t.h("view",y)}const _={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return t.h("view",_,[B,q])}}}}const{componentName:bd,create:vd,scope:wd}=se("text"),kl=vd(yd(bd,wd,Fe,!1)),Sd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ce.ArrowUp}};function xd(e,n,o){return{props:{...Sd},emits:["click","update:modelValue"],setup(l,{emit:r}){const a=t.computed(()=>{const g={[`${e}`]:!0};return l.disabled?g[`${e}__disabled`]=!0:g[`${e}__${l.type}`]=!0,g}),i=ge(l,"modelValue"),u=t.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=t.computed(()=>({[`${e}__text`]:!0})),c=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const g=[];if(u.value){const f={class:s.value},h=t.h("span",f,[u.value]);g.push(h)}const b={class:c.value},w=o(l.icon,b);return w&&g.push(w),t.h("div",{class:a.value,onClick:d},g)}}}}const{componentName:Td,create:$d,scope:Cd}=se("more-button"),Il=$d(xd(Td,Cd,(e,n)=>(e=e??Ce.ArrowUp,t.h(v.ElIcon,n,{default:()=>[t.h(e)]}))));function Ed(e){return e===window}const Ar=e=>{const n=t.unref(e);if(Ed(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Nd,create:kd,scope:Ph}=se("tour"),Id=kd({components:{Close:Ce.Close,ElPopover:v.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:n}){const o=Nd,l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=t.ref({}),a=t.computed(()=>`${o}`),i=t.computed(()=>{const{offset:p,maskWidth:f,maskHeight:h}=e,{width:D,height:I,left:C,top:q}=r.value,j=e.steps[l.active].offset??p,B=[C+D/2,q+I/2],_=Number(f||D),L=Number(h||I);return{width:`${_+ +j.left+j.right}px`,height:`${L+j.top+j.bottom}px`,top:`${B[1]-L/2-+j.top}px`,left:`${B[0]-_/2-+j.left}px`}}),u=p=>{p=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,d()}),n("change",l.active)},s=p=>p.popoverWidth??e.width,c=p=>p.location??e.location,d=()=>{const p=document.querySelector(`${e.steps[l.active].target}`),f=Ar(p);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},g=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&g()},w=(p,f=0)=>{p&&d(),e.steps,l.active=f,l.showTour=p,l.showPopup=p};return t.onMounted(()=>{w(e.modelValue,e.current)}),t.watch(()=>e.modelValue,p=>{w(p)}),{...t.toRefs(l),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:g,handleClickMask:b}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},Dd={class:"fox-tour__content-inner"},Fd={class:"fox-tour__content-bottom"},Rd={class:"fox-tour__content-bottom-init"},Ad={class:"fox-tour__content-bottom-operate"},Ld={key:1,class:"fox-tour__content fox-tour__content-tile"},Md={class:"fox-tour__content-inner"};function Bd(e,n,o,l,r,a){const i=t.resolveComponent("Close"),u=t.resolveComponent("fox-button"),s=t.resolveComponent("ElPopover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour__masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:t.withCtx(()=>[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Od,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Vd,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...g)=>e.close&&e.close(...g))},[t.createVNode(i,{class:"fox-tour__content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Dd,t.toDisplayString(c.content),1),t.createElementVNode("div",Fd,[t.createElementVNode("div",Rd,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Ad,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[2]||(n[2]=g=>e.changeStep("prev"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.prevStepText),1)]),_:1})):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:n[3]||(n[3]=g=>e.changeStep("next"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.nextStepText),1)]),_:1})):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",Ld,[t.createElementVNode("div",Md,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):t.createCommentVNode("",!0)]))),128))],2)}const Ol=_e(Id,[["render",Bd]]),Re=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class _d{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,o){this.startMove=n,this.updateMove=o,this.isTouch=$l()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const o=Cl(),l=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Lr(e,n){return new _d(e,n)}const Mr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let pt=[];const Br=e=>{const n=e;n.key==="Escape"&&pt.forEach(o=>o(n))},qd=e=>{t.onMounted(()=>{pt.length===0&&document.addEventListener("keydown",Br),Mr&&pt.push(e)}),t.onBeforeUnmount(()=>{pt=pt.filter(n=>n!==e),pt.length===0&&Mr&&document.removeEventListener("keydown",Br)})},Vl="fox-focus-trap.focus-after-trapped",Dl="fox-focus-trap.focus-after-released",Pd="fox-focus-trap.focusout-prevented",_r={cancelable:!0,bubbles:!1},jd={cancelable:!0,bubbles:!1},qr="foxFocusAfterTrapped",Pr="foxFocusAfterReleased",zd=Symbol("foxFocusTrap"),Fl=t.ref(),sn=t.ref(0),Rl=t.ref(0);let un=0;const jr=e=>{const n=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const r=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||r?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)n.push(o.currentNode);return n},Hd=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},zr=(e,n)=>{for(const o of e)if(!Hd(o,n))return o},Kd=e=>{const n=jr(e),o=zr(n,e),l=zr(n.reverse(),e);return[o,l]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,tt=(e,n)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Wd(e)&&n&&e.select()}};function Hr(e,n){const o=[...e],l=e.indexOf(n);return l!==-1&&o.splice(l,1),o}const Yd=()=>{let e=[];return{push:l=>{const r=e[0];r&&l!==r&&r.pause(),e=Hr(e,l),e.unshift(l)},remove:l=>{e=Hr(e,l),e[0]?.resume?.()}}},Gd=(e,n=!1)=>{const o=document.activeElement;for(const l of e)if(tt(l,n),document.activeElement!==o)return},Kr=Yd(),Ud=()=>sn.value>Rl.value,cn=()=>{Fl.value="pointer",sn.value=window.performance.now()},Wr=()=>{Fl.value="keyboard",sn.value=window.performance.now()},Xd=()=>(t.onMounted(()=>{un===0&&(document.addEventListener("mousedown",cn),document.addEventListener("touchstart",cn),document.addEventListener("keydown",Wr)),un++}),t.onBeforeUnmount(()=>{un--,un<=0&&(document.removeEventListener("mousedown",cn),document.removeEventListener("touchstart",cn),document.removeEventListener("keydown",Wr))}),{focusReason:Fl,lastUserFocusTimestamp:sn,lastAutomatedFocusTimestamp:Rl}),fn=e=>new CustomEvent(Pd,{...jd,detail:e}),{componentName:jh,create:Zd,scope:zh}=se("focus-trap"),Jd=Zd({props:{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"}},emits:[qr,Pr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:n,emit:o}){const l=t.ref();let r,a;const{focusReason:i}=Xd();qd(f=>{ue(e.trapped)&&!u.paused&&o("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:h,altKey:D,ctrlKey:I,metaKey:C,currentTarget:q,shiftKey:j}=f,{loop:B}=e,_=h==="Tab"&&!D&&!I&&!C,L=document.activeElement;if(_&&L){const x=q,[E,y]=Kd(x);if(E&&y){if(!j&&L===y){const J=fn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),B&&tt(E,!0))}else if(j&&[E,x].includes(L)){const J=fn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),B&&tt(y,!0))}}else if(L===x){const J=fn({focusReason:i.value});o("focusout-prevented",J),J.defaultPrevented||f.preventDefault()}}};t.provide(zd,{focusTrapRef:l,onKeydown:s}),t.watch(()=>e.focusTrapEl,f=>{f&&(l.value=f)},{immediate:!0}),t.watch([l],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",g),f.addEventListener("focusout",b)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",g),h.removeEventListener("focusout",b))});const c=f=>{o(qr,f)},d=f=>o(Pr,f),g=f=>{const h=t.unref(l);if(!h)return;const D=f.target,I=f.relatedTarget,C=D&&h.contains(D);ue(e.trapped)||I&&h.contains(I)||(r=I),C&&o("focusin",f),!u.paused&&ue(e.trapped)&&(C?a=D:tt(a,!0))},b=f=>{const h=t.unref(l);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const D=f.relatedTarget;!En(D)&&!h.contains(D)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const I=fn({focusReason:i.value});o("focusout-prevented",I),I.defaultPrevented||tt(a,!0)}},0)}else{const D=f.target;D&&h.contains(D)||o("focusout",f)}};async function w(){await t.nextTick();const f=t.unref(l);if(f){Kr.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const I=new Event(Vl,_r);f.addEventListener(Vl,c),f.dispatchEvent(I),I.defaultPrevented||t.nextTick(()=>{let C=e.focusStartEl;Ul(C)||(tt(C),document.activeElement!==C&&(C="first")),C==="first"&&Gd(jr(f),!0),(document.activeElement===h||C==="container")&&tt(f)})}}}function p(){const f=t.unref(l);if(f){f.removeEventListener(Vl,c);const h=new CustomEvent(Dl,{..._r,detail:{focusReason:i.value}});f.addEventListener(Dl,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Ud())&&tt(r??document.body,!0),f.removeEventListener(Dl,c),Kr.remove(u)}}return t.onMounted(()=>{ue(e.trapped)&&w(),t.watch(()=>e.trapped,f=>{ue(f)?w():p()})}),t.onBeforeUnmount(()=>{ue(e.trapped)&&p()}),()=>typeof n.default=="function"?n.default({"handle-keydown":s}):null}}),{componentName:Qd,create:eh,scope:Kh}=se("floating-window"),th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),lh={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}},oh=eh({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:Jd},props:{...lh},emits:["update:modelValue","update:collapse"],setup(e,{emit:n}){const o=Qd,l=t.ref(e.modelValue),r=t.computed(()=>!e.teleport);t.watch(()=>e.modelValue,k=>{l.value=k});const a=t.computed(()=>l.value===!1?!1:!L.value),i=t.ref(e.left),u=t.ref(e.top),s=t.ref(e.right),c=t.ref(e.bottom),d=t.computed(()=>{const k=["fox-floating-window"];return e.customClass&&k.push(e.customClass),k}),g=t.computed(()=>{const k={};return it(i.value)?k.left="auto":k.left=Re(i.value),it(u.value)?k.top="auto":k.top=Re(u.value),it(s.value)?k.right="auto":k.right=Re(s.value),it(c.value)?k.bottom="auto":k.bottom=Re(c.value),it(e.zIndex)||(k["z-index"]=Re(e.zIndex)),it(B.value)||(k.height=B.value),it(_.value)||(k.width=_.value),k}),b=t.computed(()=>e.closeIcon??Ce.Close),w=t.computed(()=>e.collapseIcon??Ce.ArrowUp),p=t.computed(()=>e.collapseText??""),f=t.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),h=t.computed(()=>e.expandText??e.title??"展开"),D=t.computed(()=>({[`${o}__collapse-text`]:!0})),I=t.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),C=t.ref(),q=t.ref(null),j=t.ref(null),B=t.computed(()=>Re(e.height)||""),_=t.computed(()=>Re(e.width)||""),L=t.ref(ue(e.collapse)),x=(k,K=!0)=>{L.value!==k&&(L.value=k,k?T():R(),n("update:collapse",k),k&&typeof P.onHide=="function"?P.onHide():!k&&typeof P.onShow=="function"&&P.onShow())};t.watch(()=>e.collapse,k=>{x(k)});const E=()=>{y()},y=k=>{k=k??!L.value,x(k)};t.provide(th,!0);const P={setCollapse:x,setFixedNavVisible:k=>{ee.value=k}};t.provide(nh,P);const J=()=>{typeof P.beforeClose=="function"?P.beforeClose(()=>{l.value=!1}):l.value=!1},A=t.ref(null),$=t.computed(()=>!e.fixedNavTeleport),F=t.computed(()=>{const k=["fox-floating-window__fixednav"];return e.expandClass&&k.push(e.expandClass),e.collapsePosition==="left"?k.push("is-left"):e.collapsePosition==="right"&&k.push("is-right"),k}),M=t.ref(""),Y=t.computed(()=>{const k={};return M.value?k.top=M.value:e.collapseTop&&(k.top=e.collapseTop),k}),Z=t.ref(L.value),ee=t.computed({set:k=>{Z.value=k},get:()=>l.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},T=()=>{A.value&&A.value.classList.add("slide-in"),ee.value=!0,le=()=>{A.value&&A.value.classList.remove("slide-in")}},R=()=>{A.value&&A.value.classList.add("slide-out"),le=()=>{A.value&&A.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,u.value=null,s.value=null,c.value=null},S={x:0,y:0},ne=Lr(k=>{if(!C.value)return;const K=C.value;if(V(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,S.x=i.value,S.y=u.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=te-(K.offsetTop+K.offsetHeight),S.x=i.value,S.y=c.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;s.value=te-(K.offsetLeft+K.offsetWidth),c.value=oe-(K.offsetTop+K.offsetHeight),S.x=s.value,S.y=c.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;s.value=te-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,S.x=s.value,S.y=u.value}},k=>{if(!C.value)return;const K=C.value;V(),e.origin==="left-top"?(i.value=S.x+k.x,u.value=S.y+k.y,K.style.left=Re(i.value),K.style.top=Re(u.value)):e.origin==="left-bottom"?(i.value=S.x+k.x,c.value=S.y-k.y,K.style.left=Re(i.value),K.style.bottom=Re(c.value)):e.origin==="right-bottom"?(s.value=S.x-k.x,c.value=S.y-k.y,K.style.right=Re(s.value),K.style.bottom=Re(c.value)):(s.value=S.x-k.x,u.value=S.y+k.y,K.style.right=Re(s.value),K.style.top=Re(u.value))}),G={x:0,y:0},H=Lr(k=>{A.value&&(G.x=A.value.offsetLeft,G.y=A.value.offsetTop)},k=>{if(!A.value)return;const K=G.y+k.y;M.value=`${K}px`}),X=()=>{if(C.value){const k=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");j.value=k}};return t.onMounted(()=>{if(e.draggable&&C.value){const k=[];q.value&&k.push(q.value),e.footerDraggable&&(X(),j.value&&k.push(j.value)),ne.open(k)}e.collapse===!0&&x(e.collapse,!1),A.value&&H.open(A.value)}),t.onBeforeUnmount(()=>{e.draggable&&q.value&&ne.close(),A.value&&H.close()}),{classes:d,styles:g,isShow:a,closeIcon:b,onClose:J,dialogRef:C,headerRef:q,onClickToggle:E,collapseIcon:w,collapseText:p,collapseTextClasses:D,collapseIconClasses:I,expandIcon:f,expandText:h,isShowFixedNav:ee,fixedNavRef:A,fixedNavClasses:F,fixedNavStyles:Y,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:$}}}),rh={ref:"headerRef",class:"fox-floating-window__header"},ah={class:"fox-floating-window__title"},ih={class:"fox-floating-window__tools"},sh={class:"fox-floating-window__body"},uh={class:"fox-floating-window__fixednav__text"};function ch(e,n,o,l,r,a){const i=t.resolveComponent("FoxIcon"),u=t.resolveComponent("FocusTrap");return t.openBlock(),t.createElementBlock(t.Fragment,null,[(t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[t.createVNode(t.Transition,{name:"fox-floating-window-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"dialogRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),tabindex:"-1"},[t.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:t.withCtx(()=>[t.createElementVNode("div",rh,[t.renderSlot(e.$slots,"header",{},()=>[t.createElementVNode("span",ah,t.toDisplayString(e.title),1),t.createElementVNode("div",ih,[e.showCollapse?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:n[0]||(n[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createElementVNode("span",{class:t.normalizeClass(e.collapseTextClasses)},t.toDisplayString(e.collapseText),3),t.createVNode(i,{class:t.normalizeClass(e.collapseIconClasses)},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):t.createCommentVNode("",!0),e.showClose?(t.openBlock(),t.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])])],512),t.createElementVNode("div",sh,[t.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[t.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(t.openBlock(),t.createBlock(t.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[t.withDirectives(t.createElementVNode("div",{ref:"fixedNavRef",class:t.normalizeClass(e.fixedNavClasses),style:t.normalizeStyle(e.fixedNavStyles),onAnimationend:n[2]||(n[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[t.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:n[1]||(n[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[t.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.expandIcon)))]),_:1}),t.createElementVNode("div",uh,t.toDisplayString(e.expandText),1)])],38),[[t.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=_e(oh,[["render",ch]]);function fh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return po(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:Wh,create:dh,scope:Yh}=se("domain-provider"),Ll=dh(fh()),hh={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 gh(e,n){return{inheritAttrs:!1,props:hh,setup(o,{slots:l}){if(ot&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,w)=>{if(d===null){a.set(b,{visible:null,callback:w});return}r.has(b)&&d.unobserve(b),r.set(b,{visible:null,callback:w}),d.observe(b)},u=b=>{if(d===null){a.delete(b);return}r.has(b)&&(r.delete(b),d.unobserve(b))};let s=o.initialVisibleObserverSize;ei({acquire:()=>{const b=s>0;return s--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const g=(b,w,p)=>{d=new IntersectionObserver(f=>{for(let h of f){let D=!1;h.intersectionRatio>0&&(D=!0);const I=r.get(h.target);if(I)try{if(o.loadPolicy==="lazy"&&!D&&I.visible!==null)return;I.visible=D,I.callback(D)}catch(C){console.error(C)}}},{root:b,rootMargin:w,threshold:p}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};t.watch([()=>o.root,()=>o.disabled],([b,w])=>{if(w||!b||d)return;let p=null;typeof b=="string"?p=document.querySelector(b):p=b,p&&g(p,o.rootMargin,o.threshold)},{immediate:!0}),t.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:Gh,create:mh,scope:Uh}=se("rolling-provider"),Ml=mh(gh()),ph=[Fn,An,Ln,Mn,qn,Te,zn,Hn,Nt,Kn,Wn,Yn,Gn,Un,Xn,Zn,Qn,el,tl,nl,rn,rl,al,il,sl,ul,cl,fl,hl,gl,ml,bl,vl,an,wl,Sl,xl,Tl,El,It,ln,Nl,kl,Il,Ol,Al,Ll,Ml],yh=new Va(ph,[Ra],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>v.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>v.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>v.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>v.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>v.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>v.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>v.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>v.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>v.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>v.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>v.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>v.ElMain}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>v.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>v.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>v.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>v.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>v.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>v.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>v.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>v.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>v.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>v.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>v.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>v.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>v.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>v.ElWatermark}),m.AutocompleteItem=el,m.Broadcast=Nn,m.BroadcastKey=ve,m.CascaderItem=Qn,m.CheckboxItem=il,m.Content=Mn,m.DataItemsKey=ut,m.DateItem=Yn,m.DateUtils=Be,m.DialogItem=vl,m.Domain=Kt,m.DomainKey=Ae,m.DomainProvider=Ll,m.FloatingWindow=Al,m.FooterBar=Ln,m.FoxAutocompleteItem=el,m.FoxCascaderItem=Qn,m.FoxCheckboxItem=il,m.FoxContent=Mn,m.FoxDateItem=Yn,m.FoxDialogItem=vl,m.FoxDomainProvider=Ll,m.FoxFloatingWindow=Al,m.FoxFooterBar=Ln,m.FoxGroup=qn,m.FoxGroupSetting=fl,m.FoxHeaderBar=An,m.FoxHintText=Nt,m.FoxIndicator=Nl,m.FoxInfiniteLoading=Tl,m.FoxInputItem=Kn,m.FoxInputNumberItem=Zn,m.FoxItem=Te,m.FoxMapping=It,m.FoxMoneyItem=Xn,m.FoxMoreButton=Il,m.FoxOverLay=an,m.FoxPage=Fn,m.FoxPopup=wl,m.FoxPrice=ln,m.FoxPullRefresh=El,m.FoxRadioItem=al,m.FoxRateItem=sl,m.FoxRollingProvider=Ml,m.FoxRowItem=Hn,m.FoxSearchBar=xl,m.FoxSelectItem=Wn,m.FoxSlotItem=zn,m.FoxStepsBar=bl,m.FoxSwitchItem=ul,m.FoxTableItem=rl,m.FoxTableMappingColumn=tl,m.FoxTableRadioColumn=nl,m.FoxTableSetting=rn,m.FoxTabsBar=hl,m.FoxTabsContainer=gl,m.FoxTabsPane=ml,m.FoxText=kl,m.FoxTimeItem=Gn,m.FoxTimeSelectItem=Un,m.FoxToast=Sl,m.FoxTour=Ol,m.FoxTreeSelectItem=cl,m.Group=qn,m.GroupSetting=fl,m.HeaderBar=An,m.HintText=Nt,m.Indicator=Nl,m.InfiniteLoading=Tl,m.InputItem=Kn,m.InputNumberItem=Zn,m.Item=Te,m.Mapping=It,m.MoneyItem=Xn,m.MoreButton=Il,m.OverLay=an,m.Page=Fn,m.Popup=wl,m.Price=ln,m.PriorityPolicy=Me,m.PullRefresh=El,m.RadioItem=al,m.RateItem=sl,m.RollingProvider=Ml,m.RowItem=Hn,m.SearchBar=xl,m.SelectItem=Wn,m.SlotItem=zn,m.StepsBar=bl,m.SwitchItem=ul,m.TableItem=rl,m.TableMappingColumn=tl,m.TableRadioColumn=nl,m.TableSetting=rn,m.TabsBar=hl,m.TabsContainer=gl,m.TabsPane=ml,m.Text=kl,m.TimeItem=Gn,m.TimeSelectItem=Un,m.Toast=Sl,m.Tour=Ol,m.TreeSelectItem=cl,m.UniqueID=Do,m.ValidateSchema=ho,m.ValidateSchemaKey=qe,m.cancelRaf=Ur,m.clearNonNumber=ia,m.clone=$n,m.compareTo=wn,m.createBroadcast=qt,m.createValidateSchema=jt,m.debounce=$t,m.debounceRef=wa,m.decimalLength=ro,m.default=yh,m.defineBroadcast=fa,m.defineConfigDomain=po,m.defineDataItem=bo,m.defineDomain=In,m.defineItem=$e,m.definePageState=wo,m.defineSimpleItem=vo,m.deleteGlobalValidator=pa,m.disabledProperty=De,m.divide=vn,m.excludeProps=Ne,m.extend=lt,m.floatData=ca,m.getGlobalValidateCheckEvents=uo,m.getGlobalValidateResetEvents=fo,m.getPageContentAreaHeight=Yt,m.getPageContentAreaWidth=Gt,m.getPageFooterAreaHeight=Et,m.getPageHeaderAreaHeight=Ct,m.getRootDomain=ct,m.hasSymbol=Jl,m.includeProps=io,m.indexOf=sa,m.installRules=yo,m.integerLength=oo,m.isArray=Zr,m.isArrayLike=eo,m.isBrowser=ot,m.isDate=ea,m.isESModule=na,m.isEmptyString=pe,m.isEqual=Ye,m.isFunction=xn,m.isHidden=_t,m.isInnerPage=Ta,m.isMap=Jr,m.isNil=En,m.isNumberString=lo,m.isObject=We,m.isPlainObject=Tn,m.isPromise=Xl,m.isRegExp=no,m.isSet=Qr,m.isString=Ul,m.isSubPage=$a,m.isSymbol=ta,m.isTouch=$l,m.isWindow=Ql,m.lastIndexOf=ua,m.makeArray=aa,m.merge=to,m.multiply=Wl,m.negate=Yl,m.nextTick=oa,m.numberFormat=Lt,m.objectToString=Zl,m.once=Sa,m.overrideGlobalValidateHandler=ga,m.property=Oe,m.raf=Sn,m.readonlyProperty=Ve,m.setGlobalValidateCheckEvents=ya,m.setGlobalValidateHandler=ha,m.setGlobalValidateMessages=va,m.setGlobalValidateResetEvents=ba,m.setGlobalValidator=ma,m.throttle=mo,m.toBoolean=ue,m.toNumber=Se,m.toPadding=ze,m.toPx=he,m.toPxDesc=ke,m.toTypeString=Mt,m.toValue=ge,m.tryTimes=Ht,m.typeOf=Bt,m.unNumberFormat=Gl,m.updatePageState=On,m.useBroadcast=St,m.useDomain=Ge,m.useExpose=we,m.useInnerSize=Rn,m.usePageState=Wt,m.usePosition=Io,m.useRawTouch=Cl,m.useRect=Ar,m.useSize=Xt,m.useTouch=ad,m.valueLength=wt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|