@fox-js/foxui-pc 4.0.1-64 → 4.0.1-65

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.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(h,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,Be,g,Fe,Te){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Wed Aug 23 2023 19:02:27 GMT+0800 (中国标准时间)
3
- */const ct=window,ba=typeof window<"u";function Sa(){return typeof ct<"u"?ct.requestAnimationFrame||ct.webkitRequestAnimationFrame||function(e){ct.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function wa(e){ba?cancelAnimationFrame(e):clearTimeout(e)}const $a=Sa();/*!
1
+ (function(h,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,Le,g,Ve,xe){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Fri Aug 25 2023 17:57:07 GMT+0800 (中国标准时间)
3
+ */const dt=window,Ta=typeof window<"u";function xa(){return typeof dt<"u"?dt.requestAnimationFrame||dt.webkitRequestAnimationFrame||function(e){dt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ca(e){Ta?cancelAnimationFrame(e):clearTimeout(e)}const Ea=xa();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function ft(e,t="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Dt(he(e),he(t)),a==1&&(n==1?e=At(e):t=At(t));let l=dn(e,t);return a?a==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(At(l)):he(l)}function At(e){let t="",a=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return dn(t,o)}function he(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 Dt(e,t){let a=e.split("."),n=t.split("."),l=a[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function dn(e,t){[e,t]=Dt(e,t);let a="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let o=parseInt(e[l])+parseInt(t[l])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var ae=(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))(ae||{});function Ze(e,t=0,a=ae.HALF_EVEN){if(a===ae.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 l=e.split("."),o=l[0],s=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+s,u=Ze(e,0,a),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,hn(l[1],o,n,a)?(n?"-":"")+Bt(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=l[1].substring(0,t);let i=l[1].substring(t);return i&&hn(i,s,n,a)&&(s=Bt(s),s.length>t)?(n?"-":"")+Bt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function hn(e,t,a,n){if(!e||e===new Array(e.length+1).join("0")||n===ae.DOWN||!a&&n===ae.FLOOR||a&&n===ae.CEILING)return!1;if(n===ae.UP||a&&n===ae.FLOOR||!a&&n===ae.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case ae.HALF_DOWN:return!1;case ae.HALF_UP:return!0;case ae.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Bt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let l=a;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function Ft(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=Je(e),t=Je(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=Je(e.replace(".","")),t=Je(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let S=0;for(let b=t.length-1;b>=f&&b>=0;b--)u[b]>-1&&u[b]<e.length&&(S+=parseInt(e[u[b]--])*parseInt(t[b]));S+=i,i=Math.floor(S/10),c=S%10+c,f--}return c=Je(va(c,o)),a==1&&(c="-"+c),c}function va(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 Je(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 qt(e,t,a=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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=he(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=he(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let c=e.length-f+l;e=he(e.substring(0,c)+"."+e.substring(c))}else l==f&&(e=he(e.replace(".","")))}let o=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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=f,i="0."+new Array(f).join("0")}for(a=a+2;o<=a;){let f=0;for(;parseInt(u)>=parseInt(t);)u=ft(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(i+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Ze(i,a-2))}function Lt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ft(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function gn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),mn(e),mn(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Lt(e,Ft(t,Ze(qt(e,t),0,ae.FLOOR)));return a+n}function mn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function pn(e,t){let a=!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),a=!0),[e,t]=Dt(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]?a?-1:1:a?1:-1;return 0}class J{value;static RoundingModes=ae;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[a,n]=t.split(/[eE]/);a=he(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?t=l+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?t=l+he(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+a}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",i=o;i>0;)i<a?(a=i,i=0):i-=a,s=t.substring(i,i+a)+(i<o-a&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,a){return J.getPrettyValue(this.value,t,a)}static round(t,a=0,n=ae.HALF_EVEN){if(t=J.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Ze(t,a,n)}round(t=0,a=ae.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(Ze(this.value,t,a))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.CEILING)}static add(t,a){return t=J.validate(t),a=J.validate(a),ft(t,a)}add(t){return new J(ft(this.value,t.getValue()))}static subtract(t,a){return t=J.validate(t),a=J.validate(a),Lt(t,a)}subtract(t){return new J(Lt(this.value,t.getValue()))}static multiply(t,a){return t=J.validate(t),a=J.validate(a),Ft(t,a)}multiply(t){return new J(Ft(this.value,t.getValue()))}static divide(t,a,n){return t=J.validate(t),a=J.validate(a),qt(t,a,n)}divide(t,a){return new J(qt(this.value,t.getValue(),a))}static modulus(t,a){return t=J.validate(t),a=J.validate(a),gn(t,a)}modulus(t){return new J(gn(this.value,t.getValue()))}static compareTo(t,a){return t=J.validate(t),a=J.validate(a),pn(t,a)}compareTo(t){return pn(this.value,t.getValue())}static negate(t){return t=J.validate(t),jt(t)}negate(){return new J(jt(this.value))}}function yn(e,t){return J.multiply(`${e}`,`${t}`)}function Mt(e,t,a=8){return J.divide(`${e}`,`${t}`,a)}function _t(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function bn(e){return J.negate(e)}function dt(e,t=-1,a=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let i=o,u="",f=o.indexOf(".");f!=-1&&(i=o.substring(0,f),u=o.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):a&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",S=i.split("").reverse();for(let b=0;b<S.length;b++)d+=S[b]+((b+1)%n==0&&b+1!=S.length?l:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function Sn(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let n=t.replace(/[^\d\.-]/g,"");return`${a}${n}`}const Ta=$a,xa=Array.isArray,Ca=e=>ht(e)==="[object Map]",Ea=e=>ht(e)==="[object Set]",Na=e=>e instanceof Date,Pt=e=>typeof e=="function",ka=e=>typeof e=="string",Va=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",Oa=e=>Re(e)&&Pt(e.then)&&Pt(e.catch),wn=Object.prototype.toString,ht=e=>wn.call(e),Ht=e=>ht(e)==="[object Object]",$n=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ia(e){return e.__esModule||$n&&e[Symbol.toStringTag]==="Module"}const Ra=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function qe(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=qe(l,f,u)}else u!==void 0&&(t[s]=u)}}return t}function zt(e,t,a=!1){if(!a)qe(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],s=t[l];if(o!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ht(s))continue;o=zt(o,s,a),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const Kt=Ra?Promise.resolve():null;function Aa(e,...t){Kt!==null?t&&t.length>0?Kt.then(()=>{e(t)}):Kt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Da={"[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 gt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Da[a]||"object"}function vn(e){return e&&typeof e=="object"&&"setInterval"in e}function Tn(e){return!e||e.offsetParent===null}function xn(e){let t=!!e&&"length"in e&&e.length,a=gt(e);return a==="function"||vn(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Cn(e,t){let a=+t.length,n=0,l=e.length;for(;n<a;n++)e[l++]=t[n];return e.length=l,e}function Ba(e,t=[]){let a=t;return e!=null&&(xn(Object(e))?Cn(a,typeof e=="string"?[e]:e):a.push(e)),a}function Ae(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=gt(e),n=gt(t);if(a!==n)return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],u=e[i],f=t[i];if(!Ae(u,f))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!Ae(o,s))return!1}return!0}return!1}const Qe=typeof window<"u";function En(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const le=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Nn(e){return le(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),le(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function kn(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 a=t.indexOf(".");return a==-1?t.length:a}function Vn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function On(e,t,a){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(a,"")}function Fa(e,t=!0,a=!0){t?e=On(e,".",/\./g):e=e.replace(/\./g,""),a?e=On(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function qa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(Ae(e,a))return!0}):t.indexOf(e)}function La(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(n=>{if(Ae(e,n))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function et(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function In(e,...t){const a={};return t.forEach(n=>{for(const l in n)a[l]=e[l]}),a}function me(e,...t){const a=[];t.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const n={};for(const l in e)a.includes(l)||(n[l]=e[l]);return n}const ja=(e,t,a)=>{const n=Object.assign({},e),l=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},oe=Symbol.for("BroadcastKey");class Wt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,a,n){this.parent=t,this.proxy=a,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const a=this.children.findIndex(n=>t===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,a,...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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):En(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[a]=="function"){const u=Reflect.apply(i[a],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},a,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,a,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,a){this.callbacks.set(t,a)}}function mt(e,t,a,n){const l=new Wt(t,e,a);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Ma(e,t,a){const n=a;if(n[oe])return n[oe];const l=r.inject(oe,null),o=new Wt(l,a,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[oe]=o,r.provide(oe,o),r.onUnmounted(()=>{o.destroy(),n[oe]=void 0}),o}function tt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[oe]??r.inject(oe,null):r.inject(oe,null)}const Le=e=>e.default??e;class _a{error(t,a){const n=a,l=tt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(t){const a=t,n=tt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(t,a,n){Array.isArray(t)||(t=[t]);const l=n,o=tt(n),s=a.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?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Rn=new _a;function Pa(e){Rn=e}function Ha(e,t){Le(Be).setValidator(e,t)}function za(e){Le(Be).deleteValidator(e)}let An=["blur","clear"];function Ka(e){An=e}function Dn(){return An}let Bn=["focus","change"];function Wa(e){Bn=e}function Fn(){return Bn}function Ga(e){Le(Be).messages(e)}function nt(...e){const t=[];return e.forEach(a=>{a.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,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 ke=Symbol("ValidateSchemaKey");class qn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,a,n){this.parent=t,this.descriptor=a,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const a=pt(nt(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let u={type:o};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(o);if(i!==null){let u={type:o,validator:i};n.push(u)}}this.attrRules=pt(n);const l=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...a]);const l=Rn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...a]):null}decorate(t,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,a,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,a,n=!1){n?Le(Be).setValidator(t,a):this.validators[t]=a}getValidator(t){let a=this.validators[t]??null;return a||(a=this.parent?.getValidator(t)??null),a}deleteValidator(t,a=!1){a?Le(Be).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,a=!1){if(a)return Le(Be).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const a=nt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=pt(t):this.rules=pt([t]);const n=nt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${n}`]:a},o=this.getValue(),s={[`${n}`]:o},i=Le(Be),u=new i(l),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let S="error";Array.isArray(d.errors)&&d.errors.length>0&&(S=d.errors[0].message??S,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(S)}return d}).catch(d=>{const S=d.message??`${d}`;return this.error(S),d})}}return Promise.resolve({pass:!0})}}function yt(e,t,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new qn(t,a,e)}const Ln=Symbol.for("EventEmitterKey");class Ya{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,a){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===a);l!==-1&&n.splice(l,1)}}on(t,a){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(a)}emit(t,...a){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...a])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...a])}}function rt(e,t){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},t)}}function jn(e,t){let a=0;return function(...n){const l=new Date().getTime();l-a<t||(a=l,Reflect.apply(e,null,[...n]))}}function Ua(e,t){const a=rt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(o){a(o,l)}}))}function Xa(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}function Gt(e,t,a,n=0,l=!0){let o=t,s=0;if(l){const u=e();if(s++,u||s>a)return}const i=()=>{const u=e();s++,!(u||s>a)&&(o+=n,setTimeout(i,o))};setTimeout(i,o)}const $e=Symbol("DomainKey"),Pe=Symbol("DataItemsKey");class bt{_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=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,a=[]){for(const n in t){const l=t[n];a.length>0&&a.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,a){this._props[t]=a}get(t,a){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?a:this.parent.get(t,a)}getForParent(t,a){return this.parent==null?a:this.parent.get(t,a)}getForSelf(t){return this._props[t]}getAll(t){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];a.push(l)}n=n._parent}return a}}const Za=new bt;function He(){return Za}function Ve(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[$e]??r.inject($e,null):r.inject($e,null)}const Yt=Symbol("OriginalDateKey");function Ut(e,t,a=[],n){const l=r.getCurrentInstance(),o=l?.proxy;let s=r.inject($e,null);s===null&&(s=He());const i=e||t.prop||t.name,u=new bt(i);u.parent=s;const f=p=>{o[Yt]||S(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,d=()=>o[Yt]??null,S=p=>{const w={};qe(!0,w,r.toRaw(p)),o[Yt]=w};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,a)}):u.merge(t,a),t.modelValue&&S(t.modelValue),o[$e]=u,r.provide($e,u);let b=null,$=null;if(l!==null){const p=r.inject(oe,null);b=mt(o,p,i,n),u.broadcast=b,o[oe]=b,r.provide(oe,b),o.broadcast=(m,x,...R)=>Reflect.apply(b.emit,b,[m,x,...R]);const w=r.inject(ke,null);$=yt(o,w,{componentName:""}),u.validateSchema=$,o[ke]=$,r.provide(ke,$),o[Pe]=new Map,o.validate=(m=!0)=>{const x=[];let R=null;const q={deep:!1};if(m===!0)R={name:"*"};else if(Array.isArray(m)&&m.length>0){const N=m;R={name:E=>E?N.indexOf(E)!==-1:!1}}else if(m!=null&&typeof m=="object"){const N=m;if(q.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const E=N.include;R={name:I=>I?E.indexOf(I)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const E=N.exclude;R={name:I=>I?E.indexOf(I)===-1:!1}}else R={name:"*"}}if(R){const N=b?.emitToChildren(R,"validate",q);N&&Reflect.apply([].push,x,N)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(N=>{let E=[];return N.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(E=[...E,...I.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(m,x=!0)=>{if(x){const R=Reflect.ownKeys(m),q=[...R],N={name:E=>{const I=R.includes(E);if(I){const V=q.findIndex(A=>E===A);V!==-1&&q.splice(V,1)}return I}};b?.emitToChildren(N,"setNameValidateRules",m,!1),q.length>0&&q.forEach(E=>{let I=String(E);const A=Pn(u,I,{componentName:"",fieldName:I,pureDataValidate:!0},b,$);o[Pe].set(I,A);const B=m[I];B&&A.validateSchema.setRule(B)})}},o.clearValidate=(m=!0)=>{let x=null;if(m===!0)x={name:"*"};else if(Array.isArray(m)&&m.length>0){const R=m;x={name:q=>q?R.indexOf(q)!==-1:!1}}else if(m!=null&&typeof m=="object"){const R=m;if(Array.isArray(R.include)&&R.include.length>0){const q=R.include;x={name:N=>N?q.indexOf(N)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const q=R.exclude;x={name:N=>N?q.indexOf(N)===-1:!1}}else x={name:"*"}}x&&b?.emitToChildren(x,"clearValidate",!1)},o.resetFields=m=>{const x=c();if(!x)return;const R={};if(qe(!0,R,d()??{}),Array.isArray(m))m.forEach(q=>{x[q]=R[q]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(N=>{x[N]=R[N]});else if(m&&Array.isArray(m.exclude)){let q=m.exclude??[];Reflect.ownKeys(R).forEach(N=>{q.includes(N)||(x[N]=R[N])})}else Object.assign(x,R);o.clearValidate(m)},o.setModelValue=(m,x)=>{!x||x===i?f(m):b?.emitToChildren({name:x},"setModelValue",m)},o.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),o[$e]=void 0,o[Pe]&&(o[Pe].clear(),o[Pe]=void 0),b!==null&&(b.destroy(),o[oe]=void 0),$!==null&&($.destroy(),o[ke]=void 0)}),u}function Mn(e,t,a=[]){const l=r.getCurrentInstance()?.proxy;let o=r.inject($e,null);o===null&&(o=He());const s=e||t.prop||t.name,i=new bt(s);return i.parent=o,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,a)}):i.merge(t,a),l[$e]=i,r.provide($e,i),r.onUnmounted(()=>{i.destroy(),l[$e]=void 0}),i}function _n(e,t,a){const l=Ve(e)?.get("rules");if(!l)return;let o=l[a];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function ue(e,t,a){const l=r.getCurrentInstance()?.proxy,o=t??"",s=r.inject(oe,null),i=mt(l,s,o,a);l[oe]=i,r.provide(oe,i),l.broadcast=($,p,...w)=>Reflect.apply(i.emit,i,[$,p,...w]);const u=r.inject(ke,null);e.fieldName=e.fieldName??o;const f=yt(l,u,e);l[ke]=f,r.provide(ke,f),_n(l,f,o),l.validate=($=null)=>{const p=[];let w=!1,m=!1;if(Array.isArray($)&&$.indexOf(o)!==-1)m=!0,w=!0;else if($&&typeof $=="object"){const x=$;x.ignoreHidden===!0&&Tn(l.$el)?m=!1:(Array.isArray(x.include)&&x.include.indexOf(o)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(o),m=!0),w=x.deep??!1}else typeof $=="boolean"&&(w=$),m=!0;if(m){const x=f?.validate();p.push(x)}if(w){let x=null;const R={deep:!1};if($===!0)x={name:"*"};else if(Array.isArray($)&&$.length>0){const q=$;x={name:N=>N?q.indexOf(N)!==-1:!1}}else if($!=null&&typeof $=="object"){const q=$;if(R.ignoreHidden=q.ignoreHidden,Array.isArray(q.include)&&q.include.length>0){const N=q.include;x={name:E=>E?N.indexOf(E)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const N=q.exclude;x={name:E=>E?N.indexOf(E)===-1:!1}}else x={name:"*"}}if(x){const q=i.emitToChildren(x,"validate",R);Reflect.apply([].push,p,q)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(x=>{let R=[];return x.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(R=[...R,...q.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=$=>f?.setRule($),l.setNameValidateRules=($,p=!1)=>{const w=$[o];if(w&&f?.setRule(w),p){const m={name:x=>Reflect.ownKeys($).includes(x)};i.emitToChildren(m,"setNameValidateRules",$,!1)}},l.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&f?.clear();let p=null;if($===!0)p={name:"*"};else if(Array.isArray($)&&$.length>0){const w=$;p={name:m=>m?w.indexOf(m)!==-1:!1}}else if($!=null&&typeof $=="object"){const w=$;if(Array.isArray(w.include)&&w.include.length>0){const m=w.include;p={name:x=>x?m.indexOf(x)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const m=w.exclude;p={name:x=>x?m.indexOf(x)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new Ya(l);l[Ln]=c;const d=rt(($="validate")=>{$==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Dn()).forEach($=>{c.on($,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Fn()).forEach($=>{c.on($,p=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),l[oe]=void 0,f.destroy(),l[ke]=void 0,c.destroy(),l[Ln]=void 0}),{broadcast:i,validateSchema:f,emitEvent:($,...p)=>{Reflect.apply(c.emit,c,[$,...p])},onEvent:($,p)=>{Reflect.apply(c.on,c,[p])},offEvent:($,p)=>{Reflect.apply(c.off,c,[p])}}}function Pn(e,t,a,n,l){const o={},s=t??"";a.fieldName=s,a.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=yt({},l,a);o.validate=(f=null)=>{const c=[];let d=!1,S=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)S=!0,d=!0;else if(f&&typeof f=="object"){const b=f;Array.isArray(b.include)&&b.include.indexOf(s)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(s),S=!0,d=b.deep??!1}else typeof f=="boolean"&&(d=f),S=!0;if(S){const b=i?.validate();c.push(b)}if(d){let b=null;const $={deep:!1};if(f===!0)b={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;b={name:w=>w?p.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Array.isArray(p.include)&&p.include.length>0){const w=p.include;b={name:m=>m?w.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const w=p.exclude;b={name:m=>m?w.indexOf(m)===-1:!1}}else b={name:"*"}}if(b){const p=u.emitToChildren(b,"validate",$);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(b=>{let $=[];return b.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&($=[...$,...p.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=f=>i?.setRule(f),o.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=mt(null,n,s,o);return{broadcast:u,validateSchema:i}}const ce=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${re(e,t)}px`:"";function re(e,t=-1){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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),o=1;if(Qe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(o=Number(s.substring(0,i)))}return l*=o,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const n=Number(e);return isNaN(n)?0:n}const De="PageStateKey";function xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=re(e.top)),e.left!==null&&e.left!==void 0&&(t.left=re(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=re(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=re(e.right))),t}function Xt(e,t,a={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=re(a.headerHeight??t.headerHeight),e.headerPadding=xe(a.headerPadding??t.headerPadding),e.footerHeight=re(a.footerHeight??t.footerHeight),e.footerPadding=xe(a.footerPadding??t.footerPadding),e.contentPadding=xe(a.contentPadding??t.contentPadding),n){const u=a.height??t.height;u?e.height=re(u,o):e.height=re(o)-re(s,o)-re(i,o),e.width=re(a.width??t.width??0,l)}}function Hn(e,t={}){const a={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=re(l.top),n.safeAreaBottom=re(l.bottom),n.safeAreaLeft=re(l.left),n.safeAreaRight=re(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Xt(n,o,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(De);d&&(n.height=wt(e,d),n.width=$t(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=wt(e,d),c.width=$t(e,d)}));const S=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,$,p=-1,w=-1,m=0,x=0])=>{Xt(c,$,t,S,p,w,m,x)}),e.set(De,c),c}function St(e){return e.get(De)}function at(e,t){if(t=t??e.get(De),t&&t.headerMounted){const a=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+a}return 0}function lt(e,t){if(t=t??e.get(De),t&&t.footerMounted){const a=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+a}return 0}function wt(e,t){if(t=t??e.get(De),t){if(t.contentInnerHeight)return t.contentInnerHeight;const a=at(e,t),n=lt(e,t);return t.height-a-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function $t(e,t){return t=t??e.get(De),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ja(e,t){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[t,e]):!1}function Qa(e){return!!e.getForParent(De)}var ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ve||{});function Zt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function we(e,t,a=1,n){const l=Ve();return l==null?e:a===0?r.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Zt(u,n))return u}const s=e.value;return Zt(s,n)?s:null}):r.computed(()=>{const o=e.value;return Zt(o,n)?o:l?.get(t)})}function be(e){return we(e,"readonly",0,function(a){return te(a)})}function Se(e){return we(e,"disabled",0,function(a){return te(a)})}function ne(e,t="modelValue",a){const n=r.toRef(e,t);let l=n.value;typeof a=="function"&&(l=a(n.value));const o=r.ref(l);return r.watch(n,s=>{if(typeof a=="function"){const i=a(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const zn=new Map,vt=new Map;let Jt=null;function el(e){Jt=e}function Kn(e,t,a){if(a){let n=vt.get(a);n||(n=new Map,vt.set(a,n)),n.set(e,t)}else zn.set(e,t)}function Ce(e,t,a){!a&&Jt&&(a=Jt(e)??void 0);let n=null;if(a){let l=vt.get(a);l&&(n=l.get(t))}return n||(n=zn.get(t)),n}function tl(e,t){for(let a in e){const n=e[a];Kn(a,n,t)}}function nl(e){vt.delete(e)}function rl(){return{top:0,left:0,bottom:0,right:0}}function al(e=0,t=0){if(Qe){const a=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class ll{packages;installers;_version;get version(){return this._version}constructor(t,a,n){this.packages=t,this.installers=a,this._version=n}install(t,a={}){a?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=He();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=jn(()=>{const i={...a},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in a)n.indexOf(o)===-1&&l.set(o,a[o])}initPageLayout(t,a){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=qe({},rl(),t.safeAreaInset),s=al(n,l),i=qe({},s.pageLayout,t.pageLayout);a=a??He(),a.set("safeAreaInset",o),a.set("headerBarHeight",n),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(t){el(t)}setAPI(t,a,n){Kn(t,a,n)}getAPI(t,a,n){return Ce(t,a,n)}batchSetAPI(t,a){tl(t,a)}clearScopeAPI(t){nl(t)}getRootDomain(){return He()}}const ol=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],il=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],sl=e=>{ol.forEach(t=>{let a=t.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,t)):e.use(t)}),il.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=t,a.install=n=>{n.component(a.name,a)},r.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,r.defineComponent(a)}}}const ie={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},pe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},Wn={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}},Gn={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"grid"},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},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},Yn=[];for(const e in Gn)Yn.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let a=t.proxy;Object.assign(a,e)}}const ul=Symbol.for("InnerPageScopeKey"),cl=(e,t)=>({inheritAttrs:!0,props:{...ie,...Wn,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}},setup(a,n){const l=Ut(a.name,a);if(l){const f=Hn(l,a);fe({getPageContentHeight:()=>wt(l,f),getPageContentWidth:()=>$t(l,f),getPageHeaderHeight:()=>at(l,f),getPageFooterHeight:()=>lt(l,f)});const c=r.inject(ul,!1);f&&c&&(f.contentHeight="100%")}const o=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>a.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),S=r.toRaw(f),b=S?Reflect.ownKeys(S):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{b.includes(p)||(S[p]=[])}),u(S)},{deep:!0}),r.onMounted(()=>{if(a.rules){const f=r.toRaw(a.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:fl,create:dl,scope:qu}=Q("page"),hl=dl(cl(fl));function gl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ee=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},Un=Ee(hl,[["render",gl]]),ml=["aria-labelledby"],pl=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),yl=[pl],bl=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const a=e,n=i=>{t("click",i)},l=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},o=r.computed(()=>{const i="fox-icon";return{[a.class]:!!a.class,[i]:!0,[i+"-"+a.name]:a.name}}),s=r.computed(()=>{const i={};return i.height=l(a.height)??l(a.size),i.width=l(a.width)??l(a.size),i.color=a.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(o.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},yl,14,ml))}});function Qt(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function en(e){const t=r.unref(e),a=window.getComputedStyle(t,null),n=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-o-s}}const Sl=(e,t,a,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},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},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(l,o){const s=Ve(),i=s?St(s):null;i&&(i.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:l.border,[`${y}--fixed`]:l.fixed,[`${y}--safe-area-inset-top`]:l.safeAreaInsetTop}}),f=l.height!==null&&l.height!==void 0?re(l.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const T=xe(l.padding??i.headerPadding);return Object.assign(y,T),f&&(i.headerHeight=f),y.height=i.headerHeight,y.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(T.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),l.padding){const T=xe(l.padding);Object.assign(y,T)}return y}),d=r.ref(null),S=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const y=Qt(d.value);i.headerAllHeight=y.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&Gt(S,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const b=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),$=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),p=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>!!l.leftShow),m=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),x=r.computed(()=>l.titleShow?l.title||l.titleIcon||o.slots.titleIcon||o.slots.default:!1),R=r.computed(()=>l.rightShow?l.rightText||l.rightIcon||o.slots.rightIcon||o.slots.right:!1),q=r.computed(()=>l.leftIcon),N=r.computed(()=>q.value||o.slots.leftIcon),E=r.computed(()=>l.titleIcon),I=r.computed(()=>l.titleIcon||o.slots.titleIcon),V=r.computed(()=>l.rightIcon),A=r.computed(()=>l.rightIcon||o.slots.rightIcon);function B(){o.emit("back")}function K(){o.emit("click-title")}function P(){o.emit("click-right")}function v(){o.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:b,mHeaderShow:m,leftStyles:$,rightStyles:p,mLeftShow:w,mTitleShow:x,mRightShow:R,mLeftIcon:q,hasLeftIcon:N,mTitleIcon:E,hasTitleIcon:I,mRightIcon:V,hasRightIcon:A,handleLeft:B,handleCenter:K,handleRight:P,handleRightText:v}}}),{componentName:wl,create:$l,scope:vl}=Q("header-bar"),Tl=$l(Sl(wl,vl,bl)),xl={key:1,class:"fox-header-bar__title"},Cl={key:0,class:"title-text"};function El(e,t,a,n,l,o){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",xl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",Cl,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Xn=Ee(Tl,[["render",El]]);function Nl(e,t,a=!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,l){const o=Ve(),s=o?St(o):null,i=r.computed(()=>{const b=e;return{[b]:!0,[`${b}--${n.align}`]:!0,[`${b}--border`]:n.border,[`${b}--fixed`]:n.fixed,[`${b}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?re(n.height):null,f=r.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o&&s){const $=xe(n.padding??s.footerPadding);return Object.assign(b,$),u&&(s.footerHeight=u),b.height=s.footerHeight,b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.height=b.height+b.safeAreaBottom,b.bottom=b.safeAreaBottom+($.bottom??0)),b}if(u&&(b.height=u),n.padding){const $=xe(n.padding);Object.assign(b,$)}return b}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!a){const b=Qt(c.value);s.footerAllHeight=b.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&Gt(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const S=r.computed(()=>{const b={};return f.value.height!==null&&f.value.height!==void 0&&(b.height=ce(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(b.paddingTop=ce(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(b.paddingLeft=ce(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(b.paddingRight=ce(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(b.paddingBottom=ce(f.value.bottom)),b});return{footerBarRef:c,classes:i,styles:S}}}}const{componentName:kl,create:Vl,scope:Lu}=Q("footer-bar"),Ol=Vl(Nl(kl));function Il(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Zn=Ee(Ol,[["render",Il]]);function Rl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(a){const n=Ve(),l=r.computed(()=>({[e]:!0})),o=n?St(n):null,s=r.computed(()=>{const f={};if(n&&o){if(a.padding){const b=xe(a.padding);Object.assign(o.contentPadding,b)}const c=at(n,o),d=lt(n,o);let S="";if(o.contentHeight?S=`${o.contentHeight}`:S=`${o.height}px`,o.contentPadding,f.height=S,o.contentPadding.top||c>0){const b=(o&&o.contentPadding&&o.contentPadding.top)??0;f.paddingTop=`${c+b}px`}if(o.contentPadding.bottom||d>0){const b=(o&&o.contentPadding&&o.contentPadding.bottom)??0;f.paddingBottom=`${d+b}px`}return o.contentPadding.left&&(f.paddingLeft=`${o.contentPadding.left}px`),o.contentPadding.right&&(f.paddingRight=`${o.contentPadding.right}px`),f}if(a.padding){const c=xe(a.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),i=r.ref(null),u=()=>{if(o&&i.value){const f=en(i.value);o.contentInnerHeight=f.height,o.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&o&&r.watch([()=>at(n),()=>lt(n)],([])=>{u()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Al,create:Dl,scope:ju}=Q("content"),Bl=Dl(Rl(Al));function Fl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Jn=Ee(Bl,[["render",Fl]]),ze="GroupStateKey",Qn=Symbol.for("GroupScopeKey");function Tt(){return r.inject(Qn,!1)}function xt(e=!0){r.provide(Qn,e)}function ql(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=r.shallowRef(n),o=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ze,o),o}function tn(e,t,a=-1,n=-1,l=!1,o,s){const i=e.get(ze);if(!i)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const f=re(o),c=re(s),d=()=>{const S=t===""||t===-1,b=re(t);let $=ge(a);const p=re(n);if(!S){let x=(b-($-1)*p)/$;for(;c!==-1&&x>c;)$++,x=(b-($-1)*p)/$;for(;f!==-1&&$>1&&x<f;)$--,x=(b-($-1)*p)/$}let w=!1;const m=i.layout;m.value.width=t,m.value.column!==$&&(m.value.column=$,w=!0),m.value.gutter!==p&&(m.value.gutter=p,w=!0),w&&r.triggerRef(m)};if(l)d();else{const S=++i.passport;setTimeout(()=>{S===i.passport&&d()},50)}}function Ct(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.layout}function Et(e,t=!1){let a;return t?a=e.getForParent(ze):a=e.get(ze),a.order}function er(e,t=1){if(t==="stretch")return-1;const a=ge(t);return a===-1?100:100*a/e}function Nt(e,t,a=1,n=0,l){const o={};let s=0;l?s=re(l):s=er(t.column,a),s>0&&(o.width=`${s}%`);const i=er(t.column,n);i>0&&(o["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(o["padding-left"]=`${u}px`,o["padding-right"]=`${u}px`),o}function kt(e,t,a=1,n=0){if(a==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let l=ge(a);if(l===-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(l>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 o=ge(n)%t.column;let s=(e.index+o)%t.column,i=s+l;return i>t.column?(s=0,i=s+l,e.index=e.index+(t.column-s)+l):e.index=e.index+o+l,o>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}function nn(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}function Ll(e,t,a){if(e<=0)return"1fr";const n=(e-(t-1)*a)/t;return n>0?`${n}px`:"1fr"}function jl(e,t,a){return{props:{...ie,...Wn,...Gn},emits:["update:collapse"],setup(n,l){const o=Ut(n.name,n,Yn),s=ql(o,{type:n.type}),i=Tt();xt(!0);const u=r.computed(()=>i&&o?Ct(o,!0).value:null),f=r.getCurrentInstance(),c=F=>{const W=f?.proxy;W&&typeof W.setNameValidateRules=="function"&&W.setNameValidateRules(F,!0)};r.watch(()=>n.rules,(F,W)=>{if(!F&&!W)return;const U=r.toRaw(W),O=r.toRaw(F),G=O?Reflect.ownKeys(O):[];(U?Reflect.ownKeys(U):[]).forEach(j=>{G.includes(j)||(O[j]=[])}),c(O)},{deep:!0});const d=e,S=r.computed(()=>{const F={};F.height=v.value;const W=i?Et(o,!0):null;if(u.value&&W){if(u.value.type==="grid"){const U=kt(W,u.value,n.span,n.offset);Object.assign(F,U)}else if(u.value.type==="flow"){const U=Nt(W,u.value,n.span,n.offset,n.width);Object.assign(F,U)}}else if(n.width){const U=ce(n.width);F.width=U}return L.value&&(F["box-sizing"]="content-box"),F}),b=r.computed(()=>n.type==="grid"||n.type==="flow"?{[`${d}--${n.type}`]:!0,[`${d}--${n.type}-justify-${n.justify}`]:!0,[`${d}--${n.type}-align-${n.align}`]:!0,[`${d}--gutter`]:!0}:{[`${d}--${n.type}`]:!0,[`${d}--gutter`]:!0}),$=r.computed(()=>{if(n.type==="grid"){let F="";if(n.columnWidth)F=`repeat(auto-fill, ${n.columnWidth})`;else{const W=Ll(E.value,s.layout.value.column,s.layout.value.gutter);F=`repeat(${s.layout.value.column}, ${W})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":F}}}),p=r.toRef(n,"title"),w=r.toRef(n,"gutter"),m=r.toRef(n,"column"),x=r.computed(()=>i?!0:te(n.isWrap)),R=[],q=F=>{R.push(F)},N=()=>{let F=R.length;R.splice(0,F)},E=r.ref(-1),I=F=>{const W=en(F).width;W>0&&W!==E.value&&(E.value=W)};tn(o,E.value,m.value,w.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&r.watch([E,m,w],([F,W,U])=>{s.order.index=0,tn(o,F,W,U,!1,n.minItemWidth,n.maxItemWidth)});const V=r.computed(()=>L.value?n.expandText??"":n.collapseText??""),A=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),B=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),K=r.ref(),P=r.ref(),v=r.computed(()=>T.value||ce(n.height)||""),y=r.ref(!1),T=r.ref(""),L=r.ref(!1);let M=-1;const Y=(F,W=!0)=>{const U=K.value;if(U&&y.value!==F){if(M=M===-1?nn(U):M,L.value=!0,W)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",F||(T.value="",L.value=!1)},F){let O=0;n.collapseHeight?O=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(O=nn(P.value)),T.value=`${M}px`,r.nextTick(()=>{T.value=`${O}px`})}else T.value=`${M}px`;else if(F){let O=0;n.collapseHeight?O=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(O=nn(P.value)),T.value=`${O}px`}else L.value=!1,T.value=`${M}px`;y.value=F,l.emit("update:collapse",F)}};r.watch(()=>n.collapse,F=>{Y(F)});const C=()=>{k()},k=F=>{F=F??!y.value,Y(F)};fe({toggleCollapse:k,doLayout:()=>{R[0]&&(I(R[0]),tn(o,E.value,m.value,w.value,!0,n.minItemWidth,n.maxItemWidth))}});let D=null;r.onMounted(()=>{if(n.rules){const F=r.toRaw(n.rules);c(F)}if(Qe&&(Y(te(n.collapse),!1),n.autoLayout&&Array.isArray(R)&&R.length>0)){const F=R[0];I(F),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{I(F)}),D.observe(F))}}),r.onUnmounted(()=>{D?.disconnect()});const z=(F,W,U,O)=>{const G={...b.value};return W===0&&(G[`${d}__first`]=!0),U>=O-1&&(G[`${d}__last`]=!0),r.h("div",{ref:q,key:`${W}`,class:G,style:$.value},F)};return()=>{s.order.index=0;const F=[];let W=0;if(l.slots.header){const O={key:`${W++}`,ref:P,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},G=r.h("div",O,[l.slots.header()]);F.push(G)}else{const O=[];if(p.value){if(n.showMark){const _={class:{[`${d}__header-mark`]:!0}};n.markColor&&(_.style={background:n.markColor});const j=r.h("div",_);O.push(j)}const G=r.h("div",{class:{[`${d}__header-title`]:!0}},[p.value]);O.push(G)}if(l.slots.toolbar&&O.push(l.slots.toolbar()),n.showCollapse){const G=[];if(V.value){const X={class:A.value},Z=r.h("span",X,[V.value]);G.push(Z)}const _={class:B.value},j=a(n.collapseIcon,_);if(j&&G.push(j),G.length>0){const X=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:C},G);O.push(X)}}if(O.length>0){const G={key:`${W++}`,ref:P,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},_=r.h("div",G,O);F.push(_)}}N();const U=l.slots.default?l.slots.default():[];if(n.type==="grid"){const O=z(U,W++,0,U.length);F.push(O)}else if(n.type==="flow"){const O=z(U,W++,0,U.length);F.push(O)}else for(let O=0;O<U.length;O++){const G=U[O],_=z([G],W++,O,U.length);F.push(_)}if(x.value){const O=n.tag||"div";return r.h(O,{ref:K,prop:n.name,class:{[`${d}`]:!0,"is-collapse":L.value},style:S.value},[F])}else return F}}}}const{componentName:Ml,create:_l,scope:Pl}=Q("group"),tr=_l(jl(Ml,Pl,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]}))));function Hl(e){return e===window}const zl=/matrix\((.+)\)/,nr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Hl(t))return{x:0,y:0};let a=0,n=0,l=t;for(;l!==null;)a+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,s=0,i=0,u=0;for(l=t;l!==document;){s+=l.scrollTop,o+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const c=zl.exec(f);if(c){let S=c[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}l=l.parentNode}return a-=o,n-=s,a+=i,n+=u,{x:a,y:n}};function Kl(e){return e===window}const rn=e=>{const t=r.unref(e);if(Kl(t)){const a=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Wl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const a=this.watchedListeners.indexOf(t);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Gl{monitorRegister=new WeakMap;watch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Wl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(a),n=n.parentNode}}unwatch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(a),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const rr=new Gl,ar={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},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:Yl,create:Ul}=Q("price"),Xl=Ul({props:{...ar},setup(e){const t=r.computed(()=>({[Yl]:!0})),a=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>et(e.price)==0?"":dt(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),l=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:a,intText:l,decimalText:o}}}),Zl=["innerHTML"],Jl=["innerHTML"];function Ql(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Zl)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Jl)):r.createCommentVNode("",!0)],2)}const an=Ee(Xl,[["render",Ql]]),{componentName:Vt,create:eo}=Q("hint-text"),to=eo({components:{Price:an},props:{...ar,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const o=r.ref(!0),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Vt]:!0})),S=r.ref(null),b=(V,A,B=10)=>{if(!Qe||A===!1||!V)return;o.value=!0;const K=rn(e.reference);u.value=K.width,f.value=K.height,setTimeout(()=>{if(!S.value)return;const P=nr(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,y=S.value.offsetWidth,T=S.value.offsetHeight;P.y-T>=0?(c.value="top",s.value.y=P.y-T-10-4,i.value.y=T):(c.value="bottom",s.value.y=P.y+f.value+10,i.value.y=-10);const L=P.x+y-v;L<0?(s.value.x=P.x,i.value.x=20):(s.value.x=P.x-L,i.value.x=L+20),o.value=!1},B)},$=rt(()=>{b(e.message,e.visible)},10),p=r.computed(()=>e.visible&&w.value),w=r.ref(!0),m=rt(V=>{const A=V[0];A&&(w.value=A.isIntersecting)},10),x=new IntersectionObserver(m);r.watch([()=>e.message,()=>e.visible],([V,A])=>{b(V,A)}),r.onMounted(()=>{b(e.message,e.visible),rr.watch(e.reference,$),x.observe(e.reference)}),r.onBeforeMount(()=>{rr.unwatch(e.reference,$),x.unobserve(e.reference),x.disconnect()});const R=r.computed(()=>{const V={"min-width":ce(u.value)};return o.value?V.visibility="hidden":V.transform=`translate(${s.value.x}px, ${s.value.y}px)`,V}),q=r.computed(()=>({[`${Vt}__content`]:!0})),N=r.computed(()=>({})),E=r.computed(()=>({[`${Vt}__arrow`]:!0,[`${Vt}__arrow-${e.placement}`]:!0})),I=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:p,tipRef:S,classes:d,styles:R,textClasses:q,textStyles:N,arrowClasses:E,arrowStyles:I}}}),no={key:1,class:"text"};function ro(e,t,a,n,l,o){const s=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",no,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Ot=Ee(to,[["render",ro]]);class lr{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 ln={},ao=new lr,Ke=new Map,on=e=>{if(e){const t=document.getElementById(e);Ke.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ke.keys()){const a=document.getElementById(t);a&&a.parentNode?.removeChild(a)}Ke.clear()}},lo=e=>{const t=document.getElementById(e.id);if(t){const a=Ke.get(e.id);a?e={...ln,...a,...e}:e={...ln,...e};const n=r.createVNode(Ot,e);return r.render(n,t),e.id}},oo=e=>{e.unmount=on;let t;if(e.id){if(t=e.id,Ke.has(t))return lo(e)}else t=`hinttext_${ao.get()}`;e={...ln,...e},e.id=t,Ke.set(t,e);const a=document.createElement("div");a.id=e.id;const n=r.createVNode(Ot,e);return r.render(n,a),document.body.appendChild(a),t},io=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},It={show(e,t,a={},n=!0){return n&&on(),io(t),oo({...a,message:t,reference:e})},hide(e){on(e)},install(e){e.config.globalProperties.$hintText=It}},{componentName:or,create:so}=Q("item"),uo=so({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const a=e.prop??t.attrs.name;ue({componentName:or,validate:!1},a);const n=Ve(),l=Tt();xt(!1);const o=r.computed(()=>l&&n?Ct(n,!1).value:null),s=or,i=r.ref(null),u=r.computed(()=>{const O={[s]:!0,[`${s}__gutter`]:o.value&&o.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(O[e.errorMarkClass]=!!K.value,O[e.warnMarkClass]=!!A.value,O[e.infoMarkClass]=!!I.value,typeof i.value=="function"){const G=i.value(a);O[G]=!0}else if(typeof i.value=="string"){const G=i.value;O[G]=!0}return O}),f=r.computed(()=>{const O={},G=l&&n?Et(n,!1):null;if(o.value&&G)if(o.value.type==="grid"){const _=kt(G,o.value,e.span,e.offset);Object.assign(O,_)}else if(o.value.type==="flow"){const _=Nt(G,o.value,e.span,e.offset,e.width);Object.assign(O,_)}else return e.width&&(O.width=ce(e.width)),O;else e.width&&(O.width=ce(e.width));return O}),c=r.ref(null),d=r.computed({get:()=>c.value??te(e.isRequired),set:O=>{c.value=O}}),S=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),b=we(r.toRef(e,"labelPosition"),"labelPosition",ve.Near),$=r.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),p=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${$.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${$.value}`]:!0})),m=we(r.toRef(e,"labelWidth"),"labelWidth",ve.Near),x=r.computed(()=>m&&m.value?{width:ce(m.value)}:{}),R=r.computed(()=>({"label--string":!0,"label--required":d.value})),q=r.computed(()=>({content:!0,[e.contentClass]:!0})),N=r.computed(()=>({...e.contentStyle})),E=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(O){d.value=O},setErrorTip(O){E.errorTip=O},setErrorIcon(O){E.errorIcon=O},setWarnTip(O){E.warnTip=O},setWarnIcon(O){E.warnIcon=O},setInfoTip(O){E.infoTip=O},setInfoIcon(O){E.infoIcon=O},setCustomClassName(O){i.value=O}});const I=r.computed(()=>e.infoTip||E.infoTip),V=r.computed(()=>e.infoIcon||E.infoIcon),A=r.computed(()=>e.warnTip||E.warnTip),B=r.computed(()=>e.warnIcon||E.warnIcon),K=r.computed(()=>e.errorTip||E.errorTip),P=r.computed(()=>e.errorIcon||E.errorIcon),v=r.computed(()=>K.value?"error":A.value?"warn":I.value?"info":""),y=r.computed(()=>v.value.length>0),T=r.computed(()=>v.value==="error"?K.value:v.value==="warn"?A.value:v.value==="info"?I.value:""),L=r.computed(()=>v.value==="error"?P.value:v.value==="warn"?B.value:v.value==="info"?V.value:null),M=r.computed(()=>{let O={[`${s}__tip`]:!0,[`${s}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?O[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?O[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(O[`${e.infoClass}`]=!0),O}),Y=r.computed(()=>{let O={};return b&&b.value==="top"||!S.value?O["padding-left"]="0px":m&&m.value&&(O["padding-left"]=ce(m.value)),O}),C=()=>r.h(L.value,{width:12,height:12}),k=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${s}__fixed-tip`]:!0})),D=r.ref();let z="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,G,_,j])=>{D.value&&(O&&!le(G)?z?It.show(D.value,G,{...j,id:z,type:_},!0):z=It.show(D.value,G,{...j,type:_},!0):It.hide(z))});let F=null;const W=()=>{F||!D.value||(F=new IntersectionObserver(O=>{let G=!1;for(let _ of O)if(_.intersectionRatio>0){G=!0,G&&t.emit("appear",_);break}G||t.emit("disappear")}),F.observe(D.value))},U=()=>{!F||!D.value||(F.unobserve(D.value),F=null)};return r.watch(()=>te(e.appearListen),O=>{O?W():U()}),r.onMounted(()=>{te(e.appearListen)&&W()}),r.onUnmounted(U),{classes:u,styles:f,mainClasses:p,hasLabel:S,labelClasses:w,labelStyles:x,labelStringClasses:R,contentClasses:q,contentStyles:N,contentRef:D,hasTip:y,mTip:T,mIcon:L,renderIcon:C,tipClasses:M,tipStyles:Y,hasFixedTip:k,fixedTipClasses:H}}}),co=["prop"],fo={key:0,class:"fox-item__tip--icon"},ho={class:"fox-item__tip--text"};function go(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",fo,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",ho,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,co)}const de=Ee(uo,[["render",go]]);function mo(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,n){const l=Ve(),o=Tt();xt(!1);const s=r.computed(()=>o&&l?Ct(l,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),f=r.computed(()=>{const c={},d=o&&l?Et(l,!1):null;if(s.value&&d)if(s.value.type==="grid"){const S=kt(d,s.value,a.span,a.offset);Object.assign(c,S)}else if(s.value.type==="flow"){const S=Nt(d,s.value,a.span,a.offset,a.width);Object.assign(c,S)}else return a.width&&(c.width=ce(a.width)),c;else a.width&&(c.width=ce(a.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:po,create:yo,scope:_u}=Q("slot-item"),ir=yo(mo(po));function bo(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],required:!1,default:!1}},setup(a,n){const l=e,o=r.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=Ve(),i=Tt();xt(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Ct(s,!1),d=Et(s,!1);if(c.value&&d)if(c.value.type==="grid"){const S=kt(d,c.value,a.span,a.offset);Object.assign(f,S)}else if(c.value.type==="flow"){const S=Nt(d,c.value,a.span,a.offset,a.width);Object.assign(f,S)}else a.width&&(f.width=ce(a.width))}else a.width&&(f.width=ce(a.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let S=0;S<d.length;S++){if(S>0){const b=r.h("div",{class:{[`${l}__divide`]:!0}});f.push(b)}f.push(d[S])}else Reflect.apply([].push,f,d)}const c={class:o.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:So,create:wo,scope:Pu}=Q("row-item"),sr=wo(bo(So)),ur={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 $o(e,t,a){return{props:{...ie,...pe,...ur},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0,[`${S}__disabled`]:o.value,[`${S}__readonly`]:s.value})),$=v=>{d.value=v,i("update:modelValue",v),i("input",v)},p=v=>{i("change",v)};let w=ne(n,"hintText"),m=r.ref(!1);const x=v=>{let T=v.target.value;c.value=!0,le(w.value)||(m.value=!0),i("focus",T,v)},R=v=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),i("blur",T,v)},q=()=>{i("clear","")},N=r.ref(!1);let E=null;const I=()=>{n.showTooltip&&N.value===!1&&(E=setTimeout(()=>{N.value=!0},150))},V=()=>{E&&(clearTimeout(E),N.value=!1,E=null)},A=r.computed(()=>N.value||m.value),B=r.computed(()=>N.value?d.value:w.value),K=r.computed(()=>et(n.unit)>0),P=r.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const y={...l.attrs,ref:P,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:p,onInput:$,onFocus:x,onBlur:R,onMouseover:I,onMouseleave:V},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:K.value&&(T.suffix=()=>[n.unit]);const L=[],M=r.h(g.ElInput,y,T);L.push(M);const Y={default:()=>L};l.slots.default&&(Y.label=l.slots.default),l.slots.default&&(Y.fixedTip=l.slots.fixedTip);const k={...me(n,ur),hintText:B.value,hintVisible:A.value,prop:`${n.prop}_item`};return r.h(a,k,Y)}}}}const{componentName:vo,create:To,scope:xo}=Q("input-item"),cr=To($o(vo,xo,de));function je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function We(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function fr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Co(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Eo=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function No(){const e=r.getCurrentInstance();return new Eo(e.proxy)}function dr(e,t,a){const n=je(e,t),l=je(e,a);if(n!==l)return!1;const o=We(e,t),s=We(e,a);return o===s}function hr(e,t,a,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){const i=fr(e,s);if(Array.isArray(i)&&i.length>0){const u=hr(e,o,a,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(a==="text")u=je(e,s)===o;else if(a==="item")u=dr(e,s,o);else{let f=We(e,s);f==null&&(f=je(e,s)),u=f===o}if(u){l.push(s);break}}}}),l}function ko(e){return{text:e,value:e}}const gr={modelValue:{type:[String,Object,Boolean,Number],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},lazyLoad:{type:[Boolean,String],default:!1}};function Vo(e,t,a){return{props:{...ie,...pe,...gr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),S=(D,z,F,W=!0)=>{const U=hr(n,D,z,F);if(U===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],W&&(i("update:modelValue",null),i("change",null));return}let O=!0;if(U.length!==d.value.length)O=!1;else for(let G=0;G<U.length;G++){const _=U[G],j=d.value[G];if(!dr(n,_,j)){O=!1;break}}if(!O){d.value=U;let G=[],_=[];U.forEach(X=>{G.push(We(n,X)),n.valueType==="text"?_.push(je(n,X)):n.valueType==="item"?_.push(X):_.push(We(n,X))});let j;n.multiple?(c.value=G,j=r.toRaw(_)):(c.value=G[0]??"",j=r.toRaw(_[0]??"")),W&&(i("update:modelValue",j),i("change",j))}},b=r.ref(null),$=r.ref(null),p=r.computed(()=>$.value??b.value??[]),w=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,D=>te(D)),m=No(),x=async(D,z)=>{if(D){const F=await m.load("select",D,z);if(F.length>0)if(typeof F[0]=="string"){let O=F.map(G=>ko(G));b.value=O}else b.value=F;else b.value=null}};r.watch([()=>n.source,()=>n.params],([D,z])=>{x(D,z)},{immediate:!w.value});let R=!1;const q=()=>{R||(R=!0,x(n.source,n.params))};r.watch([()=>p.value,()=>n.modelValue],([D,z])=>{S(z,n.valueType,D,!1)});let N=null,E=r.ref(!1);typeof n.remoteMethod=="function"&&(N=async D=>{if(D==null){$.value=null;return}E.value=!0;try{const z=await n.remoteMethod(D);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});let I=null;typeof n.filterMethod=="function"&&(I=async D=>{if(D==null){$.value=null;return}E.value=!0;try{const z=await n.filterMethod(D,b.value);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});const V=r.ref(!1),A=e,B=r.computed(()=>({[A]:!0})),K=D=>{n.allowCreate?(i("update:modelValue",D),i("change",D),c.value=D):S(D,"value",p.value,!0)};let P=ne(n,"hintText"),v=r.ref(!1);const y=D=>{let F=D.target.value;V.value=!0,le(P.value)||(v.value=!0),i("focus",F,D)},T=D=>{setTimeout(()=>{v.value&&(v.value=!1),V.value=!1},0);let F=D.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),M.value||i("blur",F,D)},L=()=>{i("clear","")},M=r.ref(!1),Y=D=>{M.value=D,i("visible-change",D),D||i("selected")},C=D=>{i("remove-tag",D)},k=(D,z)=>{const F=[];return D.forEach((W,U)=>{const O=fr(n,W);if(Array.isArray(O)&&O.length>0){const G=k(O,z),_=je(n,W),X={key:`${_}_${U}`,label:_};F.push(r.h(g.ElOptionGroup,X,{default:()=>G}))}else{const G=We(n,W),_=je(n,W),j=Co(n,W),Z={key:`${G}_${U}`,label:_,disabled:j,value:G};if(typeof z=="function")F.push(r.h(g.ElOption,Z,{default:()=>z(W)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[G]),se={class:{"fox-select-item__option-right":!0}},_e=r.h("span",se,[_]),ya=r.h("div",{class:{"fox-select-item__option":!0}},[ye,_e]);F.push(r.h(g.ElOption,Z,{default:()=>ya}))}else n.optionType==="value"?F.push(r.h(g.ElOption,Z,{default:()=>[G]})):F.push(r.h(g.ElOption,Z))}}),F},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const z={...l.attrs,ref:H,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:o.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:L,onChange:K,onFocus:y,onBlur:T,onVisibleChange:Y,onRemoveTag:C};typeof N=="function"&&(z["remote-method"]=N,z.loading=E.value),typeof I=="function"&&(z["filter-method"]=I,z.loading=E.value);const F={};l.slots.prefix&&(F.prefix=l.slots.prefix),l.slots.empty&&(F.empty=l.slots.empty),l.slots.options?F.default=l.slots.options:F.default=()=>k(p.value,l.slots.option);const W=[],U=r.h(g.ElSelect,z,F);W.push(U);const O={default:()=>W};l.slots.default&&(O.label=l.slots.default),l.slots.fixedTip&&(O.fixedTip=l.slots.fixedTip);const _={...me(n,gr),hintText:P.value,hintVisible:v.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(_["appear-listen"]=!0,_.onAppear=q),r.h(a,_,O)}}}}const{componentName:Oo,create:Io,scope:Ro}=Q("select-item"),mr=Io(Vo(Oo,Ro,de));var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",S="quarter",b="year",$="date",p="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,x={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("_")},R=function(v,y,T){var L=String(v);return!L||L.length>=y?v:""+Array(y+1-L.length).join(T)+v},q={s:R,z:function(v){var y=-v.utcOffset(),T=Math.abs(y),L=Math.floor(T/60),M=T%60;return(y<=0?"+":"-")+R(L,2,"0")+":"+R(M,2,"0")},m:function v(y,T){if(y.date()<T.date())return-v(T,y);var L=12*(T.year()-y.year())+(T.month()-y.month()),M=y.clone().add(L,d),Y=T-M<0,C=y.clone().add(L+(Y?-1:1),d);return+(-(L+(T-M)/(Y?M-C:C-M))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:d,y:b,w:c,d:f,D:$,h:u,m:i,s,ms:o,Q:S}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",E={};E[N]=x;var I=function(v){return v instanceof K},V=function v(y,T,L){var M;if(!y)return N;if(typeof y=="string"){var Y=y.toLowerCase();E[Y]&&(M=Y),T&&(E[Y]=T,M=Y);var C=y.split("-");if(!M&&C.length>1)return v(C[0])}else{var k=y.name;E[k]=y,M=k}return!L&&M&&(N=M),M||!L&&N},A=function(v,y){if(I(v))return v.clone();var T=typeof y=="object"?y:{};return T.date=v,T.args=arguments,new K(T)},B=q;B.l=V,B.i=I,B.w=function(v,y){return A(v,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var K=function(){function v(T){this.$L=V(T.locale,null,!0),this.parse(T)}var y=v.prototype;return y.parse=function(T){this.$d=function(L){var M=L.date,Y=L.utc;if(M===null)return new Date(NaN);if(B.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var C=M.match(w);if(C){var k=C[2]-1||0,H=(C[7]||"0").substring(0,3);return Y?new Date(Date.UTC(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],k,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(M)}(T),this.$x=T.x||{},this.init()},y.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},y.$utils=function(){return B},y.isValid=function(){return this.$d.toString()!==p},y.isSame=function(T,L){var M=A(T);return this.startOf(L)<=M&&M<=this.endOf(L)},y.isAfter=function(T,L){return A(T)<this.startOf(L)},y.isBefore=function(T,L){return this.endOf(L)<A(T)},y.$g=function(T,L,M){return B.u(T)?this[L]:this.set(M,T)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(T,L){var M=this,Y=!!B.u(L)||L,C=B.p(T),k=function(G,_){var j=B.w(M.$u?Date.UTC(M.$y,_,G):new Date(M.$y,_,G),M);return Y?j:j.endOf(f)},H=function(G,_){return B.w(M.toDate()[G].apply(M.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(_)),M)},D=this.$W,z=this.$M,F=this.$D,W="set"+(this.$u?"UTC":"");switch(C){case b:return Y?k(1,0):k(31,11);case d:return Y?k(1,z):k(0,z+1);case c:var U=this.$locale().weekStart||0,O=(D<U?D+7:D)-U;return k(Y?F-O:F+(6-O),z);case f:case $:return H(W+"Hours",0);case u:return H(W+"Minutes",1);case i:return H(W+"Seconds",2);case s:return H(W+"Milliseconds",3);default:return this.clone()}},y.endOf=function(T){return this.startOf(T,!1)},y.$set=function(T,L){var M,Y=B.p(T),C="set"+(this.$u?"UTC":""),k=(M={},M[f]=C+"Date",M[$]=C+"Date",M[d]=C+"Month",M[b]=C+"FullYear",M[u]=C+"Hours",M[i]=C+"Minutes",M[s]=C+"Seconds",M[o]=C+"Milliseconds",M)[Y],H=Y===f?this.$D+(L-this.$W):L;if(Y===d||Y===b){var D=this.clone().set($,1);D.$d[k](H),D.init(),this.$d=D.set($,Math.min(this.$D,D.daysInMonth())).$d}else k&&this.$d[k](H);return this.init(),this},y.set=function(T,L){return this.clone().$set(T,L)},y.get=function(T){return this[B.p(T)]()},y.add=function(T,L){var M,Y=this;T=Number(T);var C=B.p(L),k=function(z){var F=A(Y);return B.w(F.date(F.date()+Math.round(z*T)),Y)};if(C===d)return this.set(d,this.$M+T);if(C===b)return this.set(b,this.$y+T);if(C===f)return k(1);if(C===c)return k(7);var H=(M={},M[i]=n,M[u]=l,M[s]=a,M)[C]||1,D=this.$d.getTime()+T*H;return B.w(D,this)},y.subtract=function(T,L){return this.add(-1*T,L)},y.format=function(T){var L=this,M=this.$locale();if(!this.isValid())return M.invalidDate||p;var Y=T||"YYYY-MM-DDTHH:mm:ssZ",C=B.z(this),k=this.$H,H=this.$m,D=this.$M,z=M.weekdays,F=M.months,W=function(_,j,X,Z){return _&&(_[j]||_(L,Y))||X[j].slice(0,Z)},U=function(_){return B.s(k%12||12,_,"0")},O=M.meridiem||function(_,j,X){var Z=_<12?"AM":"PM";return X?Z.toLowerCase():Z},G={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:B.s(D+1,2,"0"),MMM:W(M.monthsShort,D,F,3),MMMM:W(F,D),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:W(M.weekdaysMin,this.$W,z,2),ddd:W(M.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(k),HH:B.s(k,2,"0"),h:U(1),hh:U(2),a:O(k,H,!0),A:O(k,H,!1),m:String(H),mm:B.s(H,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:C};return Y.replace(m,function(_,j){return j||G[_]||C.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(T,L,M){var Y,C=B.p(L),k=A(T),H=(k.utcOffset()-this.utcOffset())*n,D=this-k,z=B.m(this,k);return z=(Y={},Y[b]=z/12,Y[d]=z,Y[S]=z/3,Y[c]=(D-H)/6048e5,Y[f]=(D-H)/864e5,Y[u]=D/l,Y[i]=D/n,Y[s]=D/a,Y)[C]||D,M?z:B.a(z)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return E[this.$L]},y.locale=function(T,L){if(!T)return this.$L;var M=this.clone(),Y=V(T,L,!0);return Y&&(M.$L=Y),M},y.clone=function(){return B.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),P=K.prototype;return A.prototype=P,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",b],["$D",$]].forEach(function(v){P[v[1]]=function(y){return this.$g(y,v[0],v[1])}}),A.extend=function(v,y){return v.$i||(v(y,K,A),v.$i=!0),A},A.locale=V,A.isDayjs=I,A.unix=function(v){return A(1e3*v)},A.en=E[N],A.Ls=E,A.p={},A})})(pr);var Ao=pr.exports;const Ne=Ie(Ao);var yr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a={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,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(p){return(p=+p)+(p>68?1900:2e3)},f=function(p){return function(w){this[p]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var m=w.match(/([+-]|\d\d)/g),x=60*m[1]+(+m[2]||0);return x===0?0:m[0]==="+"?-x:x}(p)}],d=function(p){var w=i[p];return w&&(w.indexOf?w:w.s.concat(w.f))},S=function(p,w){var m,x=i.meridiem;if(x){for(var R=1;R<=24;R+=1)if(p.indexOf(x(R,0,w))>-1){m=R>12;break}}else m=p===(w?"pm":"PM");return m},b={A:[s,function(p){this.afternoon=S(p,!1)}],a:[s,function(p){this.afternoon=S(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,f("seconds")],ss:[o,f("seconds")],m:[o,f("minutes")],mm:[o,f("minutes")],H:[o,f("hours")],h:[o,f("hours")],HH:[o,f("hours")],hh:[o,f("hours")],D:[o,f("day")],DD:[l,f("day")],Do:[s,function(p){var w=i.ordinal,m=p.match(/\d+/);if(this.day=m[0],w)for(var x=1;x<=31;x+=1)w(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],M:[o,f("month")],MM:[l,f("month")],MMM:[s,function(p){var w=d("months"),m=(d("monthsShort")||w.map(function(x){return x.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[s,function(p){var w=d("months").indexOf(p)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function $(p){var w,m;w=p,m=i&&i.formats;for(var x=(p=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,B,K){var P=K&&K.toUpperCase();return B||m[K]||a[K]||m[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,T){return y||T.slice(1)})})).match(n),R=x.length,q=0;q<R;q+=1){var N=x[q],E=b[N],I=E&&E[0],V=E&&E[1];x[q]=V?{regex:I,parser:V}:N.replace(/^\[|\]$/g,"")}return function(A){for(var B={},K=0,P=0;K<R;K+=1){var v=x[K];if(typeof v=="string")P+=v.length;else{var y=v.regex,T=v.parser,L=A.slice(P),M=y.exec(L)[0];T.call(B,M),A=A.replace(M,"")}}return function(Y){var C=Y.afternoon;if(C!==void 0){var k=Y.hours;C?k<12&&(Y.hours+=12):k===12&&(Y.hours=0),delete Y.afternoon}}(B),B}}return function(p,w,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var x=w.prototype,R=x.parse;x.parse=function(q){var N=q.date,E=q.utc,I=q.args;this.$u=E;var V=I[1];if(typeof V=="string"){var A=I[2]===!0,B=I[3]===!0,K=A||B,P=I[2];B&&(P=I[2]),i=this.$locale(),!A&&P&&(i=m.Ls[P]),this.$d=function(L,M,Y){try{if(["x","X"].indexOf(M)>-1)return new Date((M==="X"?1e3:1)*L);var C=$(M)(L),k=C.year,H=C.month,D=C.day,z=C.hours,F=C.minutes,W=C.seconds,U=C.milliseconds,O=C.zone,G=new Date,_=D||(k||H?1:G.getDate()),j=k||G.getFullYear(),X=0;k&&!H||(X=H>0?H-1:G.getMonth());var Z=z||0,ee=F||0,ye=W||0,se=U||0;return O?new Date(Date.UTC(j,X,_,Z,ee,ye,se+60*O.offset*1e3)):Y?new Date(Date.UTC(j,X,_,Z,ee,ye,se)):new Date(j,X,_,Z,ee,ye,se)}catch{return new Date("")}}(N,V,E),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),K&&N!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var v=V.length,y=1;y<=v;y+=1){I[1]=V[y-1];var T=m.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}y===v&&(this.$d=new Date(""))}else R.call(this,q)}}})})(yr);var Do=yr.exports;const Bo=Ie(Do);var br={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},o.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.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(S){switch(S){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),S==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),S==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),S==="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 S}});return s.bind(this)(d)}}})})(br);var Fo=br.exports;const qo=Ie(Fo);var Sr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){var o=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,S,b,$,p){var w=d.name?d:d.$locale(),m=s(w[S]),x=s(w[b]),R=m||x.map(function(N){return N.slice(0,$)});if(!p)return R;var q=w.weekStart;return R.map(function(N,E){return R[(E+(q||0))%7]})},u=function(){return l.Ls[l.locale()]},f=function(d,S){return d.formats[S]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,p,w){return p||w.slice(1)})}(d.formats[S.toUpperCase()])},c=function(){var d=this;return{months:function(S){return S?S.format("MMMM"):i(d,"months")},monthsShort:function(S){return S?S.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(d,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return f(d.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(S){return f(d,S)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(d){return i(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(Sr);var Lo=Sr.exports;const jo=Ie(Lo);var wr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){var a="week",n="year";return function(l,o,s){var i=o.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(a);if(c.isBefore(d))return 1}var S=s(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),b=this.diff(S,a,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(wr);var Mo=wr.exports;const _o=Ie(Mo);var $r={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),s=this.year();return o===1&&l===11?s+1:l===0&&o>=52?s-1:s}}})})($r);var Po=$r.exports;const Ho=Ie(Po);var vr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n,l){n.prototype.dayOfYear=function(o){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})(vr);var zo=vr.exports;const Ko=Ie(zo);var Tr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Tr);var Wo=Tr.exports;const Go=Ie(Wo);var xr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(Oe,function(){return function(a,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(xr);var Yo=xr.exports;const Uo=Ie(Yo);Ne.extend(jo),Ne.extend(qo),Ne.extend(Bo),Ne.extend(_o),Ne.extend(Ho),Ne.extend(Ko),Ne.extend(Go),Ne.extend(Uo);const ot={format(e,t){return Ne(e).format(t)},parser(e,t){return Ne(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){const l=new Date(e+"/"+t+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},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 a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,n,l].join(t)},getDay(e,t){e=e||0;let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),this.date2Str(a)},compareDate(e,t){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(a>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,a==n},getMonthWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a));let o=l.getDay(),s=l.getDate(),i=6-o;return n!==0&&(o=o==0?7:o,i=7-o),Math.ceil((s+i)/7)},getYearWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=new Date(Number(e),0,1),s=Math.round((l.valueOf()-o.valueOf())/864e5);let i=l.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=l.getTime();let s=l.getDay();if(n===0){const u=o-s*864e5,f=o+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=o-(s-1)*i,f=o+(7-s)*i,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=ot.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ot.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,a){const n=new Date(new Date(t).setDate(t.getDate()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s},inScope4Month(e,t,a){const n=new Date(new Date(t).setMonth(t.getMonth()+a)),l=e.getTime(),o=n.getTime(),s=t.getTime();return o>s?l>=s&&l<=o:l>=o&&l<=s}},Cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Er={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Xo(e,t,a){return{props:{...ie,...pe,...Cr,...Er},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[`${S}__input`]:!0})),$=y=>{d.value=y,i("update:modelValue",y),i("change",y)};let p=ne(n,"hintText"),w=r.ref(!1);const m=y=>{let L=y.target.value;c.value=!0,le(p.value)||(w.value=!0),i("focus",L,y)},x=y=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let L=y.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,y)},R=()=>{i("clear","")},q=y=>{i("calendar-change",y)},N=(y,T,L)=>{i("panel-change",y,T,L)},E=y=>{i("visible-change",y)},I=we(r.computed(()=>n.longTermValue),"longTermText",ve.Near),V=we(r.computed(()=>n.longTermValue),"longTermValue",ve.Near);let A=null;const B=r.ref(te(n.longTerm)),K=y=>{if(B.value=y,i("update:longTerm",y),y){let T="";Array.isArray(V.value)?T=V.value.map((L,M)=>L||(Array.isArray(d.value)?d.value[M]:n.valueFormat?ot.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,i("update:modelValue",T)}else i("update:modelValue",A)},P=te(n.isLongTerm);if(P){const y=()=>{if(B.value===!0){let T="";Array.isArray(V.value)?T=V.value.map((L,M)=>L||(Array.isArray(d.value)?d.value[M]:n.valueFormat?ot.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,i("update:modelValue",T)}else Ae(V.value,d.value)&&(B.value=!0)};y(),r.watch([()=>n.longTerm],([T])=>{B.value!==T&&y()})}const v=r.ref();return fe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},handleOpen:()=>{v?.value.handleOpen()},handleClose:()=>{v?.value.handleClose()}}),()=>{const T={...l.attrs,ref:v,class:b.value,placeholder:f.placeholder.value,disabled:o.value||B.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onCalendarChange:q,onPanelChange:N,onVisibleChange:E},L={};l.slots["range-separator"]&&(L["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(L.default=l.slots.cell);const M=[],Y=r.h(g.ElDatePicker,T,L);M.push(Y);const C={default:()=>M};if(l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip),P){const z={label:I.value,disabled:s.value||o.value,modelValue:B.value,"onUpdate:modelValue":K},F=r.h(g.ElCheckbox,z),W=r.h("div",{class:{[`${S}__append`]:!0}},[F]);C.append=()=>W}const H={...me(n,Cr,Er),class:{[`${S}__wrapper`]:!0,"has-append":P},hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,H,C)}}}}const{componentName:Zo,create:Jo,scope:Qo}=Q("date-item"),Nr=Jo(Xo(Zo,Qo,de)),kr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ei(e,t,a){return{props:{...ie,...pe,...kr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=E=>{d.value=E,i("update:modelValue",E),i("change",E)};let p=ne(n,"hintText"),w=r.ref(!1);const m=E=>{let V=E.target.value;c.value=!0,le(p.value)||(w.value=!0),i("focus",V,E)},x=E=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,E)},R=()=>{i("clear","")},q=E=>{i("visible-change",E)},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const I={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onVisibleChange:q},V={},A=[],B=r.h(g.ElTimePicker,I,V);A.push(B);const K={default:()=>A};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const v={...me(n,kr),hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,v,K)}}}}const{componentName:ti,create:ni,scope:ri}=Q("time-item"),Vr=ni(ei(ti,ri,de)),Or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ai(e,t,a){return{props:{...ie,...pe,...Or},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=N=>{d.value=N,i("update:modelValue",N),i("change",N)};let p=ne(n,"hintText"),w=r.ref(!1);const m=N=>{let I=N.target.value;c.value=!0,le(p.value)||(w.value=!0),i("focus",I,N)},x=N=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let I=N.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),i("blur",I,N)},R=()=>{i("clear","")},q=r.ref();return fe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const E={...l.attrs,ref:q,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x},I={},V=[],A=r.h(g.ElTimeSelect,E,I);V.push(A);const B={default:()=>V};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const P={...me(n,Or),hintText:p.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(a,P,B)}}}}const{componentName:li,create:oi,scope:ii}=Q("time-select-item"),Ir=oi(ai(li,ii,de));function Rr(e,t=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let l=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Ar(e,t,a=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=yn(`${e}`,`${t}`);return Rr(n)}else{let n=Mt(`${e}`,bn(`${t}`),20);return Rr(n)}}function si(e,t=-1,a=!1,n=3,l=","){return dt(e,t,a,n,l)}function Dr(e,t,a,n,l=!0){if(e=="")return"";if(e=Sn(e),t=ge(t),t==1)return e;if(n)e=Ar(e,t),a&&(e=="0"&&l?e=`${e}.`.padEnd(ge(a)+2,"0"):e=Mt(e,1,ge(a)));else{let o=-1*t;e=Ar(e,o)}return e}function Br(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),l=_t(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";a.message=o.replace("{0}",t.min),a.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),l=_t(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Fr={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 ui(e,t,a){return{props:{...ie,...pe,...Fr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(!1),f=ne(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([v,y,T])=>{if(le(v)){c.value="";return}const L=Dr(v,y,T,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let v="";return u.value&&(v=c.value),v}),{t:S}=Te.useFoxI18n(t),b=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!le(c.value)?v=si(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=S(["placeholder",v]),v}),$=e,p=r.computed(()=>({[$]:!0,[`${$}__disabled`]:o.value,[`${$}__placeholder`]:c.value.length>0})),w=we(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const m=r.ref(""),x=r.computed(()=>{let v=m.value;return le(v)&&(v=n.errorTip??""),v}),R=r.ref(""),q=r.ref(!1),N=(v,y)=>{if(v=`${v}`,le(v)){c.value="",f.value="",y.forEach(T=>{i(T,"")}),te(n.showTip)&&q.value&&(q.value=!1);return}if(v.length>=2){let T=v;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){r.triggerRef(c);return}}if(v!="-"){if(!Nn(v)){r.triggerRef(c);return}if(n.integerLength!=-1&&kn(v)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Vn(v)>Number(n.decimalLength)){r.triggerRef(c);return}let T=Br(v,n);if(T.maxValid===!1){m.value=T.message,r.triggerRef(c);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(c);return}R.value=v,te(n.showTip)&&(q.value=v.length>0),c.value=v,f.value=Dr(v,n.rates,n.precision,!0),y.forEach(T=>{i(T,f.value)})},E=v=>{N(v,["update:modelValue","input"])},I=v=>{N(v,["update:modelValue","change"])},V=v=>{if(u.value=!0,te(n.showTip)){let y=c.value;le(y)&&(y=n.hintText),le(y)||(R.value=y,q.value=!0)}m.value="",i("focus",f.value,v)},A=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&q.value===!0&&(q.value=!1)},0),!le(c.value)){let y=Br(c.value,n);if(y.minValid===!1||y.maxValid===!1){m.value=y.message;return}}i("update:modelValue",f.value,v),i("blur",f.value,v)},B=()=>{i("clear","")},K=r.computed(()=>et(n.unit)>0),P=r.ref();return fe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const y={...l.attrs,ref:P,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:b.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onInput:E,onChange:I,onFocus:V,onBlur:A},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:K.value&&(T.suffix=()=>[n.unit]);const L=[],M=r.h(g.ElInput,y,T);L.push(M);const Y={default:()=>L};l.slots.default&&(Y.label=l.slots.default),l.slots.fixedTip&&(Y.fixedTip=l.slots.fixedTip);const k={...me(n,Fr),errorTip:x.value,hintText:R.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return r.h(a,k,Y)}}}}const{componentName:ci,create:fi,scope:di}=Q("money-item"),qr=fi(ui(ci,di,de)),Lr={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 hi(e,t,a){return{props:{...ie,...pe,...Lr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0,[`${S}__append`]:E.value})),$=r.computed(()=>({[`${S}__unit`]:!0})),p=V=>{d.value=V,i("update:modelValue",V),i("input",V)},w=V=>{i("change",V)};let m=ne(n,"hintText"),x=r.ref(!1);const R=V=>{let B=V.target.value;c.value=!0,le(m.value)||(x.value=!0),i("focus",B,V)},q=V=>{setTimeout(()=>{x.value&&(x.value=!1),c.value=!1},0);let B=V.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),i("blur",B,V)},N=()=>{i("clear","")},E=r.computed(()=>et(n.unit)>0),I=r.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const A={...l.attrs,ref:I,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:w,onInput:p,onFocus:R,onBlur:q},B={},K=[],P=r.h(g.ElInputNumber,A,B);K.push(P);const v={default:()=>K};l.slots.default&&(v.label=l.slots.default),l.slots.fixedTip&&(v.fixedTip=l.slots.fixedTip);const T={...me(n,Lr),hintText:m.value,hintVisible:x.value,prop:`${n.prop}_item`};if(l.slots.append)v.append=l.slots.append;else if(E.value){const M={class:$.value},Y=r.h("div",M,[n.unit]);v.append=()=>Y}return r.h(a,T,v)}}}}const{componentName:gi,create:mi,scope:pi}=Q("input-number-item"),jr=mi(hi(gi,pi,de));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Me(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function yi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let bi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,l);const o=Ce(this.proxy,t);return o===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await o(a,n,l))}};function Si(){const e=r.getCurrentInstance();return new bi(e.proxy)}function sn(e,t,a){const n=Ge(e,t),l=Ge(e,a);if(n!==l)return!1;const o=Me(e,t),s=Me(e,a);return o===s}function Mr(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=Mr(e,i,a,n);l.push(u)}else{let u=!1;for(let f of o){if(a==="text")u=Ge(e,f)===i;else if(a==="item")u=sn(e,f,i);else{let c=Me(e,f);c==null&&(c=Ge(e,f)),u=c===i}if(u){l.push(f),o=yi(e,f);break}}if(!u)break}}return l}function wi(e){return{text:e,value:e}}const _r={modelValue:{type:[Array,String],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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function $i(e,t,a){return{props:{...ie,...pe,..._r},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),S=(k,H,D,z=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===k)return;c.value=k;const U=r.toRaw(k);if(z){const O=C?.value.getCheckedNodes();if(O)if(n.multiple){const G=[];O.forEach(_=>{const X=(_.pathNodes??[]).map(Z=>Z.data);G.push(X)}),i("update:pathNodes",G)}else{const _=(O[0]?.pathNodes??[]).map(j=>j.data);i("update:pathNodes",_)}i("update:modelValue",U),i("change",U)}}const F=Mr(n,k,H,D);if(F===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,z&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let W=!0;if(F.length!==d.value.length)W=!1;else for(let U=0;U<F.length;U++){const O=F[U],G=d.value[U];if(Array.isArray(O)){if(!Array.isArray(G)||O.length!==G.length)W=!1;else for(let _=0;_<O.length;_++)if(!sn(n,O[_],G[_])){W=!1;break}}else sn(n,O,G)||(W=!1);if(!W)break}if(!W){d.value=F;let U=[],O=[];F.forEach(_=>{if(Array.isArray(_)){let j=[],X=[];for(let Z of _)j.push(Me(n,Z)),n.valueType==="text"?X.push(Ge(n,Z)):n.valueType==="item"?X.push(Z):X.push(Me(n,Z));U.push(j),O.push(X)}else U.push(Me(n,_)),n.valueType==="text"?O.push(Ge(n,_)):n.valueType==="item"?O.push(_):O.push(Me(n,_))}),c.value=U;const G=r.toRaw(O);z&&(i("update:pathNodes",F),i("update:modelValue",G),i("change",G))}},b=r.ref([]),$=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,k=>te(k)),p=Si(),w=async(k,H)=>{if(k){const D=await p.load("cascader",k,H);if(D.length>0)if(typeof D[0]=="string"){let W=D.map(U=>wi(U));b.value=W}else b.value=D}};r.watch([()=>n.source,()=>n.params],async([k,H])=>{w(k,H)},{immediate:!($.value||n.lazy)});let m=!1;const x=()=>{m||(m=!0,w(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([k,H])=>{S(H,n.valueType,k,!1)}),n.lazy&&S(n.modelValue,"value",[],!1);let R=null,q=r.ref(!1);typeof n.remoteMethod=="function"&&(R=async k=>{if(k!=null){q.value=!0;try{const H=await n.remoteMethod(k);b.value=H}catch(H){console.error(H)}q.value=!1}});const N=r.ref(!1),E=e,I=r.computed(()=>({[E]:!0})),V=r.computed(()=>{let k={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(k.multiple=!0),n.props&&Object.assign(k,n.props),n.lazy&&(k.lazy=!0,k.lazyLoad=async(H,D)=>{const z=await p.load("cascader",n.source,H,!0);D(z)}),k}),A=k=>{n.allowCreate?(i("update:modelValue",k),i("change",k),c.value=k):S(k,"value",b.value,!0)};let B=ne(n,"hintText"),K=r.ref(!1);const P=k=>{let D=k.target.value;N.value=!0,le(B.value)||(K.value=!0),i("focus",D,k)},v=k=>{setTimeout(()=>{K.value&&(K.value=!1),N.value=!1},0);let D=k.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),T.value||i("blur",D,k)},y=()=>{i("clear","")},T=r.ref(!1),L=k=>{T.value=k,i("visible-change",k),k||i("selected")},M=k=>{i("remove-tag",k)},Y=k=>{i("expand-change",k)},C=r.ref();return fe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},getCheckedNodes:()=>C?.value.getCheckedNodes()}),()=>{const H={...l.attrs,ref:C,class:I.value,props:V.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:o.value||s.value,options:b.value,modelValue:c.value,onClear:y,onChange:A,onFocus:P,onBlur:v,onVisibleChange:L,onRemoveTag:M,expandChange:Y};typeof R=="function"&&(H["remote-method"]=R,H.loading=q.value);const D={};l.slots.option&&(D.default=l.slots.option),l.slots.empty&&(D.empty=l.slots.empty);const z=[],F=r.h(g.ElCascader,H,D);z.push(F);const W={default:()=>z};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const O={...me(n,_r),hintText:B.value,hintVisible:K.value,prop:`${n.prop??l.attrs.name}_item`};return $.value&&!n.lazy&&(O["appear-listen"]=!0,O.onAppear=x),r.h(a,O,W)}}}}const{componentName:vi,create:Ti,scope:xi}=Q("cascader-item"),Pr=Ti($i(vi,xi,de)),Hr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ci(e,t,a){return{props:{...ie,...pe,...Hr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Te.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),S=e,b=r.computed(()=>({[S]:!0})),$=E=>{d.value=E,i("update:modelValue",E),i("input",E)},p=E=>{i("change",E)};let w=ne(n,"hintText"),m=r.ref(!1);const x=E=>{let V=E.target.value;c.value=!0,le(w.value)||(m.value=!0),i("focus",V,E)},R=E=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,E)},q=()=>{i("clear","")},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const I={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:d.value,onClear:q,onChange:p,onInput:$,onFocus:x,onBlur:R},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix&&(V.prefix=l.slots.prefix),l.slots.suffix&&(V.suffix=l.slots.suffix),l.slots.option&&(V.default=l.slots.option);const A=[],B=r.h(g.ElAutocomplete,I,V);A.push(B);const K={default:()=>A};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const v={...me(n,Hr),hintText:w.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(a,v,K)}}}}const{componentName:Ei,create:Ni,scope:ki}=Q("autocomplete-item"),zr=Ni(Ci(Ei,ki,de));function Vi(e,t,a,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],i=t[0];if(Array.isArray(i))for(let u=0;u<t.length&&u<o.length;u++){let f=t[u],c=o[u];const d=f.find(S=>S[n]===c);if(!d)break;s.push(d[a])}else{let u=t;for(let f=0;u&&f<o.length;f++){let c=o[f],d=u.find(S=>S[n]===c);if(!d)break;s.push(d[a]),u=d[l]}}return s}let Oi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Ii(){const e=r.getCurrentInstance();return new Oi(e.proxy)}const Kr={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 Ri(e,t){return{props:{...Kr},setup(a,{attrs:n,slots:l}){const o=Ii(),s=r.ref([]);r.watch([()=>a.source,()=>a.params],async([f,c])=>{s.value=await o.load(a.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=Vi(a.modelValue,s.value,a.textKey,a.valueKey,a.childrenKey);return f.length==0?a.emptyText??"":f.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${f[0]}`:f[0]:f.join(a.separator)}),u=a.resolveTag?r.resolveComponent(a.tag):a.tag;return()=>{const f={...n};return l.default?l.default({text:i.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===i.value?r.h(a.emptyTag??"span",{...n,class:a.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:Hu,create:Ai,scope:zu}=Q("mapping"),Rt=Ai(Ri());function Di(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Bi(e,t){return{props:{...Kr},setup(a,{attrs:n,slots:l}){return()=>{const o={default:s=>{const i=Di(s.row,s.column.property);return l.default?r.h(Rt,{...a,modelValue:i},{default:l.default}):r.h(Rt,{...a,modelValue:i})}};return r.h(g.ElTableColumn,{...n},o)}}}}const{componentName:Ku,create:Fi,scope:Wu}=Q("table-mapping-column"),Wr=Fi(Bi()),qi=Symbol.for("TableStateKey");function Gr(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function Li(e,t){return{props:{},setup(a,{attrs:n}){const l=r.inject(qi,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Gr(i.row,i.column.property),f=o?Gr(o,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},S=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":c}};return r.h("label",b,[S])}};return r.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Gu,create:ji,scope:Yu}=Q("table-radio-column"),Yr=ji(Li()),Mi={},_i={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"},Pi=[r.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 Hi(e,t){return r.openBlock(),r.createElementBlock("svg",_i,Pi)}const zi=Ee(Mi,[["render",Hi]]),{componentName:Xu,create:Ki,scope:Zu}=Q("table-setting"),Wi={tableRef:{type:Object,required:!0},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:"不固定"}},Gi=Ki({components:{FoxPopover:g.ElPopover,FoxCheckbox:g.ElCheckbox,FoxCheckboxGroup:g.ElCheckboxGroup,FoxButton:g.ElButton,FoxIcon:g.ElIcon,DragIcon:zi,Download:Fe.Download,RefreshLeft:Fe.RefreshLeft},props:{...Wi},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:a}){let n=[];const l=r.ref([]),o=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),s=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),i=r.computed(()=>l.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(o.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>o.value.length>0),c=r.computed(()=>s.value.length>0),d=C=>C.length>1,S=C=>{const k=[];l.value=C.map((D,z)=>(!(D.label===""||D.type)&&D.visible!==!1&&k.push(D.prop),{...D,sortIndex:z})),i.value.length+o.value.length+s.value.length===k.length?x.value=!0:k.length>0&&(R.value=!0),E.value=k},b=C=>C?C.type?C.type:C.label?C.prop:"":"",$=(C,k)=>{if(C.length!==k.length)return!1;const H=C.map(D=>b(D));for(let D of k){const z=b(D);if(H.indexOf(z)===-1)return!1}return!0},p=C=>{if(!C){const k=e.tableRef.getColumnSetting(),H=k.srcColumnPropertyList;n=H.map((D,z)=>({...D,sortIndex:z})),C=k.columnPropertyList,C&&C.length>0&&$(H,C)||(C=H)}S(C)},w=()=>{e.tableRef.setColumnSetting(l.value)},m=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=r.ref(!1),R=r.ref(!1),q=C=>{const k=[];l.value.forEach(D=>{C&&!(D.label===""||D.type)&&k.push(D.prop),D.visible=C}),x.value=!1,R.value=!1,i.value.length+o.value.length+s.value.length===k.length?x.value=!0:k.length>0&&(R.value=!0),E.value=k,w()},N=()=>{p(n),w()},E=r.ref([]),I=C=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const D=C.indexOf(H.prop)!==-1;H.visible=D}),x.value=!1,R.value=!1;const k=i.value.length+o.value.length+s.value.length;C.length===k?x.value=!0:C.length>0&&(R.value=!0),w()},V=()=>{p()};r.onMounted(()=>{setTimeout(()=>{p()},50)});const A={currentRow:null,index:null,roleType:null},B=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,B(C)):null:null;return{attrs:a,leftFixedColumns:o,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:x,isIndeterminate:R,handleCheckAllChange:q,handleReset:N,checkedValue:E,handleCheckChange:I,onShow:V,onDragStart:C=>{const k=C.currentTarget;k&&k.dataset&&(A.roleType=k.dataset.roleType,A.index=k.dataset.index)},onDragEnd:C=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null,A.roleType=null},onDragOver:C=>{const k=C.currentTarget;C.relatedTarget;const H=B(k);if(!H)return;const D=H.dataset&&H.dataset.roleType;A.roleType===D&&(C.preventDefault(),A.currentRow&&A.currentRow!==H&&A.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),A.currentRow=H)},onDragLeave:C=>{C.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},onDrop:C=>{debugger;const k=C.currentTarget,H=B(k);if(!H)return;const D=H.dataset&&H.dataset.roleType;if(A.roleType!==D)return;C.preventDefault();const z=Number(A.index),F=Number(H.dataset.index);if(z!==F){if(z<F){const W=l.value[z];l.value.splice(z,1),l.value.splice(F,0,W)}else{const W=l.value[z];l.value.splice(z,1),l.value.splice(F+1,0,W)}S(l.value),w()}},toLeftFixed:C=>{const k=l.value[C];k.fixed="left",w()},toRightFixed:C=>{const k=l.value[C];k.fixed="right",w()},toUnFixed:C=>{const k=l.value[C];k.fixed=void 0,w()},checkboxLabelStyle:m}}}),Yi={class:"fox-table-setting"},Ui={class:"fox-table-setting__header"},Xi={class:"fox-table-setting__body"},Zi={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ji={key:0,class:"fox-table-setting__body-title"},Qi=["data-index","draggable"],es={class:"tools-item"},ts={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},ns={key:0,class:"fox-table-setting__body-title"},rs=["data-index","draggable"],as={class:"tools-item"},ls={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},os={key:0,class:"fox-table-setting__body-title"},is=["data-index","draggable"],ss={class:"tools-item"};function us(e,t,a,n,l,o){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),S=r.resolveComponent("Download"),b=r.resolveComponent("fox-checkbox"),$=r.resolveComponent("FoxCheckboxGroup"),p=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(p,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Yi,[r.createElementVNode("div",Ui,[r.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Xi,[r.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Zi,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ji,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",es,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Qi))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",ts,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",ns,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[7]||(t[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[8]||(t[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[9]||(t[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[10]||(t[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",as,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,rs))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",ls,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",os,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[12]||(t[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[13]||(t[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[14]||(t[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[15]||(t[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(b,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",ss,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(S)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,is))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const un=Ee(Gi,[["render",us]]);let cs=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l,o,s,i){if(Array.isArray(a)){let f=(n-1)*l,c=f+l;c>a.length&&(c=a.length);const d=a.slice(f,c);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,l,o,s,i]);const u=Ce(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Re(o)&&r.isReactive(o)&&(o=r.toRaw(o)),await Reflect.apply(u,null,[a,n,l,o,s,i]))}};function fs(){const e=r.getCurrentInstance();return new cs(e.proxy)}class ds{proxy;constructor(t){this.proxy=t}async load(t){let a=null;const n=Ce(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",t])),a}save(t,a){const n=Ce(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,a])}remove(t){const a=Ce(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",t])}}function hs(){const e=r.getCurrentInstance();return new ds(e.proxy)}const gs=Symbol.for("TableStateKey");function ms(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=o.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=o.substring(0,i);n=n[d][c]}else n=n[c];s++}i=o.indexOf("[",u),u=i==-1?-1:o.indexOf("]",i)}s===0&&(n=n[o])}return n}function cn(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=ms(n,l);if(o!==s)return!1}return!0})}const Ur={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},Xr={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},fn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function ps(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...Ur,...Xr,...fn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=Te.useFoxI18n(t),{emitEvent:s}=ue({componentName:e,validateHandler:{getValue(...j){return R.value}}},n.prop??l.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,j=>{S.value=j});const b=j=>{S.value=j,s("page-index-change",j)},$=r.ref(n.pageSize);r.watch(()=>n.pageSize,j=>{$.value=j});const p=j=>{$.value=j,s("page-size-change",j)},w=r.shallowRef({}),m=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),x=r.ref(0),R=r.ref(),q=fs();let N=!0;const E=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),I=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,j=>te(j)),V=async(j,X,Z,ee)=>{try{const ye=await q.load("table",j,X,Z,ee,N,o.value);x.value=ye.totalSize,R.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),x.value=0,R.value=[]}N=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([S,$],([j,X],[Z,ee])=>{X!==ee&&(S.value=1,j=1),V(n.data,j,X,m.value)}),r.watch([()=>n.data,m],([j,X],[Z,ee])=>{E()&&(j!==Z&&(N=!0),!(!Array.isArray(j)&&Ae(j,Z)&&Ae(X,ee))&&V(j,S.value,$.value,X))},{deep:!0});const A=(j={},X=!1)=>new Promise(Z=>{w.value=r.toRaw(j??{}),r.triggerRef(w),X||(S.value=n.pageIndex??1),r.nextTick(async()=>{await V(n.data,S.value,$.value,m.value),Z()})}),B=()=>{x.value=0,R.value=[]};let K=!1;const P=()=>{K||(K=!0,A())};E()&&!I.value&&A();const v=r.ref(null);r.provide(gs,{currentRow:v});const y=(j,X)=>{v.value=j,s("current-change",j,X)},T=(j,X,Z)=>{s("row-click",j,X,Z),te(n.rowClickSelectable)===!0&&_?.value.toggleRowSelection(j)},L=[],M=(j,X)=>{if(s("expand-change",j,X),te(n.uniqueExpansion))if(Array.isArray(X)&&X.length==0){const Z=L.length;L.splice(0,Z)}else{L.forEach(ee=>{ee!==j&&_?.value.toggleRowExpansion(ee,!1)});const Z=L.length;L.splice(0,Z,j)}},Y=l.attrs.id??n.prop??l.attrs.name,C=hs(),k=r.ref([]);let H=[];const D=()=>({srcColumnPropertyList:H.map(X=>({...X})),columnPropertyList:k.value}),z=j=>{k.value=[...j],W()},F=async()=>{const j=await C.load(Y);j&&(k.value=j)},W=()=>{C.save(Y,k.value)},U=()=>{C.remove(Y)};F();const O=j=>j?j.type?j.type:j.label?j.prop:"":"",G=r.computed(()=>{if(typeof l.slots.default=="function"){const j=l.slots.default(),X=new Map;if(H=[],j.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=O(ee.props);X.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),k.value.length===H.length){const Z=[];for(let ee of k.value){const ye=O(ee),se=X.get(ye);if(!se)return j;if(ee.visible===!1)continue;const _e=r.cloneVNode(se);_e.props.fixed=ee.fixed,Z.push(_e)}return Z}return j}return[]}),_=r.ref();return fe({clearSelection:()=>_?.value.clearSelection(),getSelectionRows:()=>_?.value.getSelectionRows(),toggleRowSelection:(j,X)=>{_?.value.toggleRowSelection(j,X)},toggleRowSelectionByProp:(j,X)=>{if(!R.value)return;const Z=cn(R.value,j);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowSelection(ee,X)})},toggleAllSelection:()=>{_?.value.toggleAllSelection()},toggleRowExpansion:(j,X)=>{_?.value.toggleRowExpansion(j,X)},toggleRowExpansionByProp:(j,X)=>{if(!R.value)return;const Z=cn(R.value,j);Z.length!==0&&Z.forEach(ee=>{_?.value.toggleRowExpansion(ee,X)})},setCurrentRow:j=>{_?.value.setCurrentRow(j)},setCurrentRowByProp:j=>{if(!R.value)return;const X=cn(R.value,j);X.length!==0&&_?.value.setCurrentRow(X[0])},getCurrentRow:()=>v.value,clearSort:()=>{_?.value.clearSort()},clearFilter:j=>{_?.value.clearFilter(j)},doLayout:()=>{_?.value.doLayout()},sort:(j,X)=>{_?.value.sort(j,X)},scrollTo:(j,X)=>{_?.value.scrollTo(j,X)},setScrollTop:j=>{_?.value.setScrollTop(j)},setScrollLeft:j=>{_?.value.setScrollLeft(j)},loadData:A,clearData:B,getData(){return R.value},getTotalSize(){return x.value},getPageIndex(){return S.value},getPageSize(){return $.value},getColumnSetting:D,setColumnSetting:z,removeColumnSetting:U}),()=>{const X={...l.attrs,onCurrentChange:y,onRowClick:T,onExpandChange:M,data:R.value,ref:_,class:u.value},Z={};l.slots.default&&(Z.default=()=>G.value),l.slots.append&&(Z.append=l.slots.append),l.slots.empty&&(Z.empty=l.slots.empty);const ee=[],ye=r.h(g.ElTable,X,Z);ee.push(ye);let se=null;if(typeof l.slots.pagination=="function")se=l.slots.pagination();else if(n.showPagination){const ut={class:d.value,total:x.value,pageSize:$.value,"onUpdate:pageSize":p,pageSizes:n.pageSizes,currentPage:S.value,"onUpdate:currentPage":b,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(g.ElPagination,ut)}if(n.showSetting){const ut=[];se&&ut.push(se);const Au=r.h(g.ElIcon,{class:f.value},{default:()=>r.h(Fe.Setting)}),Du=In(n,fn),Bu=r.h(un,{...Du,tableRef:{getColumnSetting:D,setColumnSetting:z,removeColumnSetting:U}},{default:()=>Au});ut.push(Bu);const Fu=r.h("div",{class:c.value},ut);ee.push(Fu)}else se&&ee.push(se);const _e={default:()=>ee},st={...me(n,Ur,Xr,fn),prop:`${n.prop}_item`};return st.contentClass=`${i}__wrap`,st.errorMarkClass="is-table-error",I.value&&E()&&(st["appear-listen"]=!0,st.onAppear=P),r.h(a,st,_e)}}}}const{componentName:ys,create:bs,scope:Ss}=Q("table-item"),Zr=bs(ps(ys,Ss,de));function Ye(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function it(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ws(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let $s=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function vs(){const e=r.getCurrentInstance();return new $s(e.proxy)}function Jr(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ye(e,t),l=Ye(e,a);if(n!==l)return!1;const o=it(e,t),s=it(e,a);return o===s}function Ts(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let s=!1;if(a==="text")s=Ye(e,o)===t;else if(a==="item")s=Jr(e,o,t);else{let i=it(e,o);i==null&&(i=Ye(e,o)),s=i===t}if(s){l=o;break}}return l}function xs(e){return{text:e,value:e}}function Cs(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const Qr={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"},lazyLoad:{type:[Boolean,String],default:!1}};function Es(e,t,a){return{inheritAttrs:!0,props:{...ie,...pe,...Qr},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref(null),f=r.ref(null),c=(I,V,A,B=!0)=>{const K=Ts(n,I,V,A);if(K===null){if(f.value===null)return;f.value=null,u.value=null,B&&(i("update:modelValue",null),i("change",null));return}if(!Jr(n,K,f.value)){u.value=I;const v=r.toRaw(K);f.value=v;let y=null;n.valueType==="text"?y=Ye(n,v):n.valueType==="item"?y=v:y=it(n,v),B&&(i("update:modelValue",y),i("change",y))}},d=r.ref([]),S=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),b=vs(),$=async(I,V)=>{if(I){const A=await b.load("radio",I,V);if(A.length>0)if(typeof A[0]=="string"){let P=A.map(v=>xs(v));d.value=P}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([I,V])=>{$(I,V)},{immediate:!S.value});let p=!1;const w=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,V])=>{c(V,n.valueType,I,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=I=>{c(I,"value",d.value,!0)};let q=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(I,V)=>{const A=[];return I.forEach((B,K)=>{const P=it(n,B),v=Ye(n,B);let y=ws(n,B);o.value===!0&&(y=o.value),s.value===!0&&(y=s.value);const T=Cs(n,B,K)??{},L=`${P}_${K}`,M={...T,key:L,label:P,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElRadioButton,M,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElRadio,M,{default:()=>V(B)})):A.push(r.h(g.ElRadio,M,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:R},A=[],B={};l.slots.options?B.default=l.slots.options:B.default=()=>E(d.value,l.slots.text);const K=r.h(g.ElRadioGroup,V,B);A.push(K);const P={default:()=>A};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const y={...me(n,Qr),hintText:q.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(a,y,P)}}}}const{componentName:Ns,create:ks,scope:Vs}=Q("radio-item"),ea=ks(Es(Ns,Vs,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Xe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Os(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class Is{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ce(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Re(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}}function Rs(){const e=r.getCurrentInstance();return new Is(e.proxy)}function ta(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ue(e,t),l=Ue(e,a);if(n!==l)return!1;const o=Xe(e,t),s=Xe(e,a);return o===s}function As(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let s of n){let i=!1;if(a==="text")i=Ue(e,s)===o;else if(a==="item")i=ta(e,s,o);else{let u=Xe(e,s);u==null&&(u=Ue(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function Ds(e){return{text:e,value:e}}function Bs(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const na={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"},lazyLoad:{type:[Boolean,String],default:!1}};function Fs(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...na},emits:["change","update:modelValue"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=r.ref([]),f=r.ref([]),c=(I,V,A,B=!0)=>{const K=As(n,I,V,A);if(K===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],B&&(i("update:modelValue",[]),i("change",[]));return}let P=!0;if(K.length!==f.value.length)P=!1;else for(let v=0;v<K.length;v++){const y=K[v],T=f.value[v];if(!ta(n,y,T)){P=!1;break}}if(!P){f.value=K;let v=[],y=[];K.forEach(L=>{v.push(Xe(n,L)),n.valueType==="text"?y.push(Ue(n,L)):n.valueType==="item"?y.push(L):y.push(Xe(n,L))}),u.value=v;const T=r.toRaw(y);B&&(i("update:modelValue",T),i("change",T))}},d=r.ref([]),S=we(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),b=Rs(),$=async(I,V)=>{if(I){const A=await b.load("checkbox",I,V);if(A.length>0)if(typeof A[0]=="string"){let P=A.map(v=>Ds(v));d.value=P}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([I,V])=>{$(I,V)},{immediate:!S.value});let p=!1;const w=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([I,V])=>{c(V,n.valueType,I,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=I=>{c(I,"value",d.value,!0)};let q=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(I,V)=>{const A=[];return I.forEach((B,K)=>{const P=Xe(n,B),v=Ue(n,B);let y=Os(n,B);o.value===!0&&(y=o.value),s.value===!0&&(y=s.value);const T=Bs(n,B,K)??{},L=`${P}_${K}`,M={...T,key:L,class:n.itemClass,label:P,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElCheckboxButton,M,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElCheckbox,M,{default:()=>V(B)})):A.push(r.h(g.ElCheckbox,M,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:R},A=[],B={};l.slots.options?B.default=l.slots.options:B.default=()=>E(d.value,l.slots.text);const K=r.h(g.ElCheckboxGroup,V,B);A.push(K);const P={default:()=>A};l.slots.default&&(P.label=l.slots.default),l.slots.fixedTip&&(P.fixedTip=l.slots.fixedTip);const y={...me(n,na),hintText:q.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(a,y,P)}}}}const{componentName:qs,create:Ls,scope:js}=Q("checkbox-item"),ra=Ls(Fs(qs,js,de)),aa={modelValue:{type:[Number,String],required:!1}};function Ms(e,t,a){return{props:{...ie,...pe,...aa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue",p=>ge(p)),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let S=ne(n,"hintText"),b=r.ref(!1);const $=r.ref();return fe({}),()=>{const w={...l.attrs,ref:$,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElRate,w,m);x.push(R);const q={default:()=>x};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const E={...me(n,aa),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,q)}}}}const{componentName:_s,create:Ps,scope:Hs}=Q("rate-item"),la=Ps(Ms(_s,Hs,de)),oa={modelValue:{type:[Boolean,String,Number],required:!1}};function zs(e,t,a){return{props:{...ie,...pe,...oa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),{emitEvent:i}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=ne(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{i("update:modelValue",p),i("change",p)};let S=ne(n,"hintText"),b=ne(n,"hintVisible");const $=r.ref();return fe({}),()=>{const w={...l.attrs,ref:$,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElSwitch,w,m);x.push(R);const q={default:()=>x};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const E={...me(n,oa),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,q)}}}}const{componentName:Ks,create:Ws,scope:Gs}=Q("switch-item"),ia=Ws(zs(Ks,Gs,de)),sa={modelValue:{type:[String,Number,Boolean],required:!1}};function Ys(e,t,a){return{props:{...ie,...pe,...sa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=Se(r.computed(()=>n.disabled)),s=be(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),f=ne(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),S=N=>{u("update:modelValue",N),u("change",N)};let b=ne(n,"hintText"),$=r.ref(!1);const p=N=>{let I=N.target.value;i.value=!0,le(b.value)||($.value=!0),u("focus",I,N)},w=N=>{setTimeout(()=>{$.value&&($.value=!1),i.value=!1},0);let I=N.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),x.value||u("blur",I,N)},m=()=>{u("clear","")},x=r.ref(!1),R=N=>{x.value=N,u("visible-change",N),N||u("selected")},q=r.ref();return fe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const E={...l.attrs,ref:q,class:d.value,disabled:o.value||s.value,modelValue:f.value,"onUpdate:modelValue":S,onClear:m,onFocus:p,onBlur:w,onVisibleChange:R},I={};l.slots.option&&(I.default=l.slots.option);const V=[],A=r.h(g.ElTreeSelect,E,I);V.push(A);const B={default:()=>V};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const P={...me(n,sa),hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(a,P,B)}}}}const{componentName:Us,create:Xs,scope:Zs}=Q("tree-select-item"),ua=Xs(Ys(Us,Zs,de)),Js=Symbol.for("InnerPageScopeKey"),Qs=Symbol.for("PageWrapperKey");function eu(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(a,n){r.provide(Js,!0);const l={};r.provide(Qs,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...n.attrs,title:a.title,draggable:a.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(g.ElDialog,f,c)}}}}const{componentName:Ju,create:tu,scope:Qu}=Q("dialog-item"),ca=tu(eu());function nu(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(a,{slots:n}){const l=e,o=r.computed(()=>({[l]:!0})),s=r.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),i=r.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),u=r.computed(()=>{const c={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>a.color?{color:a.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:s.value,style:i.value};c=r.h(a.icon??"div",p)}const d={class:u.value,style:f.value},S=n.default?n.default():[],b=r.h("div",d,S),$={class:o.value};return a.textPosition==="right"?r.h("div",$,[c,b]):r.h("div",$,[b,c])}}}}const{componentName:ru,create:au,scope:ec}=Q("indicator"),fa=au(nu(ru));function lu(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const ou={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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}};function iu(e,t){return{props:{...ou},setup(a,n){const l=r.ref(!0),o=r.ref(null),s=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(S=>{c[S]=!0}),a.type&&(c[`${e}__${a.type}`]=!0),a.size&&(c[`${e}__${a.size}`]=!0),c}),i=c=>{if(c&&te(a.showOverflowTooltip)){const d=c.clientWidth,S=lu(c);l.value=S<=d}};let u=null;r.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const c=o.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let S=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const b=a.highlightFilter;if(c.indexOf(b)!==-1){const p=c.replace(new RegExp(b,"g"),`<span>${b}</span>`);d.innerHTML=p,d.class["is-highlight"]=!0,S=r.h(a.tag,d)}}else if(typeof a.highlightFilter=="function"){const b=a.highlightFilter(c);b&&(d.innerHTML=b,d.class["is-highlight"]=!0,S=r.h(a.tag,d))}return S};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:o};if(te(a.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const w=p[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const m=ge(a.digits),x=ge(a.decimalLength),R=te(a.autoPadding);let q=`${p[0].children}`,N=q.split("").reverse().join("");N=dt(N,x,R,m,a.separator),q=N.split("").reverse().join("");let E=null;a.highlightFilter!==void 0&&(E=f(q,d)),E||(d.innerHTML=q,E=r.h(a.tag,d)),c.default=()=>E}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const m=w[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const x=`${w[0].children}`;p=f(x,d),p||(d.innerHTML=x,p=r.h(a.tag,d))}}}p||(p=r.h(a.tag,d,{default:n.slots.default})),c.default=()=>p}const b={disabled:l.value};return c.content=n.slots.default,r.h(g.ElTooltip,b,c)}}}}const{componentName:su,create:uu,scope:tc}=Q("text"),da=uu(iu(su)),cu={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:Fe.ArrowUp}};function fu(e,t,a){return{props:{...cu},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),s=ne(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const p={class:u.value},w=r.h("span",p,[i.value]);d.push(w)}const S={class:f.value},b=a(n.icon,S);return b&&d.push(b),r.h("div",{class:o.value,onClick:c},d)}}}}const{componentName:du,create:hu,scope:gu}=Q("more-button"),ha=hu(fu(du,gu,(e,t)=>(e=e??Fe.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:mu,create:pu,scope:rc}=Q("tour"),yu=pu({components:{Close:Fe.Close,ElPopover:g.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 a=mu,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),o=r.computed(()=>`${a}`),s=r.computed(()=>{const{offset:$,maskWidth:p,maskHeight:w}=e,{width:m,height:x,left:R,top:q}=l.value,N=e.steps[n.active].offset??$,E=[R+m/2,q+x/2],I=Number(p||m),V=Number(w||x);return{width:`${I+ +N.left+N.right}px`,height:`${V+N.top+N.bottom}px`,top:`${E[1]-V/2-+N.top}px`,left:`${E[0]-I/2-+N.left}px`}}),i=$=>{$=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=$=>$.popoverWidth??e.width,f=$=>$.location??e.location,c=()=>{const $=document.querySelector(`${e.steps[n.active].target}`),p=rn($);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&d()},b=($,p=0)=>{$&&c(),e.steps,n.active=p,n.showTour=$,n.showPopup=$};return r.onMounted(()=>{b(e.modelValue,e.current)}),r.watch(()=>e.modelValue,$=>{b($)}),{...r.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:S}}}),bu={key:0,class:"fox-tour__content"},Su={key:0,class:"fox-tour__content-top"},wu={class:"fox-tour__content-inner"},$u={class:"fox-tour__content-bottom"},vu={class:"fox-tour__content-bottom-init"},Tu={class:"fox-tour__content-bottom-operate"},xu={key:1,class:"fox-tour__content fox-tour__content-tile"},Cu={class:"fox-tour__content-inner"};function Eu(e,t,a,n,l,o){const s=r.resolveComponent("Close"),i=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",bu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",Su,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",wu,r.toDisplayString(f.content),1),r.createElementVNode("div",$u,[r.createElementVNode("div",vu,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",Tu,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",xu,[r.createElementVNode("div",Cu,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const ga=Ee(yu,[["render",Eu]]);function Nu(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:n}){return Mn(a.name,a.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ac,create:ku,scope:lc}=Q("domain-provider"),ma=ku(Nu()),pa=10;function Vu(e,t){return e>t&&e>pa?"horizontal":t>e&&t>pa?"vertical":""}function Ou(){const e=r.ref(0),t=r.ref(0),a=r.ref(0),n=r.ref(0),l=r.ref(0),o=r.ref(0),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",S=()=>c.value==="horizontal",b=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",a.value=0};return{move:w=>{const m=w.touches[0];s.value=m.clientX-e.value,i.value=m.clientY-t.value,l.value=m.clientX,o.value=m.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-a.value,c.value||(c.value=Vu(u.value,f.value))},start:w=>{b(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,a.value=Date.now()},reset:b,startX:e,startY:t,startTime:a,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:S}}const Iu=[Un,Xn,Zn,Jn,tr,de,ir,sr,Ot,cr,mr,Nr,Vr,Ir,qr,jr,Pr,zr,Wr,Yr,un,Zr,ea,ra,la,ia,ua,ca,Rt,an,fa,da,ha,ga,ma],Ru=new ll(Iu,[sl],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=zr,h.Broadcast=Wt,h.BroadcastKey=oe,h.CascaderItem=Pr,h.CheckboxItem=ra,h.Content=Jn,h.DataItemsKey=Pe,h.DateItem=Nr,h.DateUtils=ot,h.DialogItem=ca,h.Domain=bt,h.DomainKey=$e,h.DomainProvider=ma,h.FooterBar=Zn,h.Group=tr,h.HeaderBar=Xn,h.HintText=Ot,h.Indicator=fa,h.InputItem=cr,h.InputNumberItem=jr,h.Item=de,h.Mapping=Rt,h.MoneyItem=qr,h.MoreButton=ha,h.Page=Un,h.Price=an,h.PriorityPolicy=ve,h.RadioItem=ea,h.RateItem=la,h.RowItem=sr,h.SelectItem=mr,h.SlotItem=ir,h.SwitchItem=ia,h.TableItem=Zr,h.TableMappingColumn=Wr,h.TableRadioColumn=Yr,h.TableSetting=un,h.Text=da,h.TimeItem=Vr,h.TimeSelectItem=Ir,h.Tour=ga,h.TreeSelectItem=ua,h.UniqueID=lr,h.ValidateSchema=qn,h.ValidateSchemaKey=ke,h.cancelRaf=wa,h.clearNonNumber=Fa,h.clone=zt,h.compareTo=_t,h.createBroadcast=mt,h.createValidateSchema=yt,h.debounce=rt,h.debounceRef=Ua,h.decimalLength=Vn,h.default=Ru,h.defineBroadcast=Ma,h.defineConfigDomain=Mn,h.defineDataItem=Pn,h.defineDomain=Ut,h.defineItem=ue,h.definePageState=Hn,h.deleteGlobalValidator=za,h.disabledProperty=Se,h.divide=Mt,h.excludeProps=me,h.extend=qe,h.floatData=ja,h.getGlobalValidateCheckEvents=Dn,h.getGlobalValidateResetEvents=Fn,h.getPageContentAreaHeight=wt,h.getPageContentAreaWidth=$t,h.getPageFooterAreaHeight=lt,h.getPageHeaderAreaHeight=at,h.getRootDomain=He,h.hasSymbol=$n,h.includeProps=In,h.indexOf=qa,h.installRules=_n,h.integerLength=kn,h.isArray=xa,h.isArrayLike=xn,h.isBrowser=Qe,h.isDate=Na,h.isESModule=Ia,h.isEmptyString=le,h.isEqual=Ae,h.isFunction=Pt,h.isHidden=Tn,h.isInnerPage=Ja,h.isMap=Ca,h.isNumberString=Nn,h.isObject=Re,h.isPlainObject=Ht,h.isPromise=Oa,h.isRegExp=En,h.isSet=Ea,h.isString=ka,h.isSubPage=Qa,h.isSymbol=Va,h.isWindow=vn,h.lastIndexOf=La,h.makeArray=Ba,h.merge=Cn,h.multiply=yn,h.negate=bn,h.nextTick=Aa,h.numberFormat=dt,h.objectToString=wn,h.once=Xa,h.property=we,h.raf=Ta,h.readonlyProperty=be,h.setGlobalValidateCheckEvents=Ka,h.setGlobalValidateHandler=Pa,h.setGlobalValidateMessages=Ga,h.setGlobalValidateResetEvents=Wa,h.setGlobalValidator=Ha,h.throttle=jn,h.toBoolean=te,h.toNumber=ge,h.toPadding=xe,h.toPx=re,h.toPxDesc=ce,h.toTypeString=ht,h.toValue=ne,h.tryTimes=Gt,h.typeOf=gt,h.unNumberFormat=Sn,h.updatePageState=Xt,h.useBroadcast=tt,h.useDomain=Ve,h.useExpose=fe,h.useInnerSize=en,h.usePageState=St,h.usePosition=nr,h.useRect=rn,h.useSize=Qt,h.useTouch=Ou,h.valueLength=et,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function ht(e,t="0"){let a=0,n=-1;e[0]=="-"&&(a++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(a++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=qt(he(e),he(t)),a==1&&(n==1?e=Bt(e):t=Bt(t));let l=mn(e,t);return a?a==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Bt(l)):he(l)}function Bt(e){let t="",a=e.length,n=e.split(".")[1],l=n?n.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return mn(t,o)}function he(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 qt(e,t){let a=e.split("."),n=t.split("."),l=a[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):a[0]=new Array(Math.abs(l-o)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,o=n[1]?n[1].length:0,(l||o)&&(l>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-o)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function mn(e,t){[e,t]=qt(e,t);let a="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let o=parseInt(e[l])+parseInt(t[l])+n;a=o%10+a,n=Math.floor(o/10)}return n?n.toString()+a:a}var ae=(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))(ae||{});function Qe(e,t=0,a=ae.HALF_EVEN){if(a===ae.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 l=e.split("."),o=l[0],i=l[1];if(t<0){if(t=-t,o.length<=t)return"0";{let u=o.substr(0,o.length-t);return e=u+"."+o.substr(o.length-t)+i,u=Qe(e,0,a),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,pn(l[1],o,n,a)?(n?"-":"")+Ft(o):(n?"-":"")+o;if(l[1]){if(l[1].length<t)return(n?"-":"")+o+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let s=l[1].substring(t);return s&&pn(s,i,n,a)&&(i=Ft(i),i.length>t)?(n?"-":"")+Ft(o,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+o+"."+i}function pn(e,t,a,n){if(!e||e===new Array(e.length+1).join("0")||n===ae.DOWN||!a&&n===ae.FLOOR||a&&n===ae.CEILING)return!1;if(n===ae.UP||a&&n===ae.FLOOR||!a&&n===ae.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case ae.HALF_DOWN:return!1;case ae.HALF_UP:return!0;case ae.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ft(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let a=e.length-1,n="";for(let l=a;l>=0;l--){let o=parseInt(e[l])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function Lt(e,t){e=e.toString(),t=t.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),t[0]=="-"&&(a++,t=t.substr(1)),e=et(e),t=et(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let o=n+l;if(e=et(e.replace(".","")),t=et(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let w=0;for(let b=t.length-1;b>=f&&b>=0;b--)u[b]>-1&&u[b]<e.length&&(w+=parseInt(e[u[b]--])*parseInt(t[b]));w+=s,s=Math.floor(w/10),c=w%10+c,f--}return c=et(Na(c,o)),a==1&&(c="-"+c),c}function Na(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 et(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 Mt(e,t,a=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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=he(t.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=he(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=he(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let c=e.length-f+l;e=he(e.substring(0,c)+"."+e.substring(c))}else l==f&&(e=he(e.replace(".","")))}let o=0,i=t.length,s="",u=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),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),o=f,s="0."+new Array(f).join("0")}for(a=a+2;o<=a;){let f=0;for(;parseInt(u)>=parseInt(t);)u=ht(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",o++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(o||(s+="."),o++,u=u+"0")}return(n==1?"-":"")+he(Qe(s,a-2))}function jt(e,t){return e=e.toString(),t=t.toString(),t=_t(t),ht(e,t)}function _t(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function yn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),bn(e),bn(t);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=jt(e,Lt(t,Qe(Mt(e,t),0,ae.FLOOR)));return a+n}function bn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function wn(e,t){let a=!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),a=!0),[e,t]=qt(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]?a?-1:1:a?1:-1;return 0}class J{value;static RoundingModes=ae;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[a,n]=t.split(/[eE]/);a=he(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(n=parseInt(n)+a.indexOf("."),a=a.replace(".","")):n=parseInt(n)+a.length,a.length<n?t=l+a+new Array(n-a.length+1).join("0"):a.length>=n&&n>0?t=l+he(a.substring(0,n))+(a.length>n?"."+a.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+a}return t}constructor(t="0"){this.value=J.validate(t)}getValue(){return this.value}static getPrettyValue(t,a,n){if(!(a||n))a=3,n=",";else if(!(a&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=J.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var i="",s=o;s>0;)s<a?(a=s,s=0):s-=a,i=t.substring(s,s+a)+(s<o-a&&s>=0?n:"")+i;return(l?"-":"")+i+t.substring(o)}getPrettyValue(t,a){return J.getPrettyValue(this.value,t,a)}static round(t,a=0,n=ae.HALF_EVEN){if(t=J.validate(t),isNaN(a))throw Error("Precision is not a number: "+a);return Qe(t,a,n)}round(t=0,a=ae.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new J(Qe(this.value,t,a))}static floor(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.FLOOR)}static ceil(t){return t=J.validate(t),t.indexOf(".")===-1?t:J.round(t,0,ae.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ae.CEILING)}static add(t,a){return t=J.validate(t),a=J.validate(a),ht(t,a)}add(t){return new J(ht(this.value,t.getValue()))}static subtract(t,a){return t=J.validate(t),a=J.validate(a),jt(t,a)}subtract(t){return new J(jt(this.value,t.getValue()))}static multiply(t,a){return t=J.validate(t),a=J.validate(a),Lt(t,a)}multiply(t){return new J(Lt(this.value,t.getValue()))}static divide(t,a,n){return t=J.validate(t),a=J.validate(a),Mt(t,a,n)}divide(t,a){return new J(Mt(this.value,t.getValue(),a))}static modulus(t,a){return t=J.validate(t),a=J.validate(a),yn(t,a)}modulus(t){return new J(yn(this.value,t.getValue()))}static compareTo(t,a){return t=J.validate(t),a=J.validate(a),wn(t,a)}compareTo(t){return wn(this.value,t.getValue())}static negate(t){return t=J.validate(t),_t(t)}negate(){return new J(_t(this.value))}}function Sn(e,t){return J.multiply(`${e}`,`${t}`)}function Pt(e,t,a=8){return J.divide(`${e}`,`${t}`,a)}function Ht(e,t){return e=`${e}`,t=`${t}`,J.compareTo(e,t)}function $n(e){return J.negate(e)}function gt(e,t=-1,a=!1,n=3,l=","){let o=`${e}`;if(o.length==0||o==="-")return"";let i=o.charAt(0);i=="-"?o=o.substring(1):i="";let s=o,u="",f=o.indexOf(".");f!=-1&&(s=o.substring(0,f),u=o.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):a&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",w=s.split("").reverse();for(let b=0;b<w.length;b++)d+=w[b]+((b+1)%n==0&&b+1!=w.length?l:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function vn(e){let t=`${e}`,a=t.charAt(0);a=="-"?t=t.substring(1):a="";let n=t.replace(/[^\d\.-]/g,"");return`${a}${n}`}const ka=Ea,Va=Array.isArray,Oa=e=>mt(e)==="[object Map]",Ia=e=>mt(e)==="[object Set]",Da=e=>e instanceof Date,zt=e=>typeof e=="function",Ra=e=>typeof e=="string",Aa=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",Ba=e=>Ae(e)&&zt(e.then)&&zt(e.catch),Tn=Object.prototype.toString,mt=e=>Tn.call(e),Wt=e=>mt(e)==="[object Object]",xn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function qa(e){return e.__esModule||xn&&e[Symbol.toStringTag]==="Module"}const Fa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Me(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[a]??{},a++),typeof t!="object"&&(t={});a<n;a++)if(e[a]!==null&&e[a]!==void 0){let o=e[a];for(let i in o){let s=t[i],u=o[i];if(s!==u)if(l===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=Me(l,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Kt(e,t,a=!1){if(!a)Me(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wt(i))continue;o=Kt(o,i,a),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let o=e[l],i=t[l];if(o!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Wt(i))continue;o=Kt(o,i,a),e[l]=o}else{if(typeof i=="function")continue;e[l]=i}}}return e}const Yt=Fa?Promise.resolve():null;function La(e,...t){Yt!==null?t&&t.length>0?Yt.then(()=>{e(t)}):Yt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ge(e){return typeof e=="number"?e:Number(e)}const Ma={"[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 pt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Ma[a]||"object"}function Cn(e){return e&&typeof e=="object"&&"setInterval"in e}function En(e){return!e||e.offsetParent===null}function Nn(e){let t=!!e&&"length"in e&&e.length,a=pt(e);return a==="function"||Cn(e)?!1:a==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function kn(e,t){let a=+t.length,n=0,l=e.length;for(;n<a;n++)e[l++]=t[n];return e.length=l,e}function ja(e,t=[]){let a=t;return e!=null&&(Nn(Object(e))?kn(a,typeof e=="string"?[e]:e):a.push(e)),a}function Be(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let a=pt(e),n=pt(t);if(a!==n)return!1;if(a==="object"){let l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],u=e[s],f=t[s];if(!Be(u,f))return!1}return!0}else if(a==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],i=t[l];if(!Be(o,i))return!1}return!0}return!1}const tt=typeof window<"u";function Vn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const le=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function On(e){return le(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),le(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function In(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 a=t.indexOf(".");return a==-1?t.length:a}function Dn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const a=t.indexOf(".");return a==-1?0:t.length-(a+1)}function Rn(e,t,a){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(a,"")}function _a(e,t=!0,a=!0){t?e=Rn(e,".",/\./g):e=e.replace(/\./g,""),a?e=Rn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Pa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(a=>{if(Be(e,a))return!0}):t.indexOf(e)}function Ha(e,t){if(typeof e=="object"||Array.isArray(e)){let a=t.reverse().findIndex(n=>{if(Be(e,n))return!0});return a!==-1&&(a=t.length-1-a),a}return t.lastIndexOf(e)}function nt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function An(e,...t){const a={};return t.forEach(n=>{for(const l in n)a[l]=e[l]}),a}function me(e,...t){const a=[];t.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const n={};for(const l in e)a.includes(l)||(n[l]=e[l]);return n}const za=(e,t,a)=>{const n=Object.assign({},e),l=Object.assign({},a);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{l.hasOwnProperty(o)?typeof l[o]=="string"&&(n[o]=t[l[o]]):t[o]&&(n[o]=t[o])}),n):e},oe=Symbol.for("BroadcastKey");class Gt{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,a,n){this.parent=t,this.proxy=a,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const a=this.children.findIndex(n=>t===n);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,a,...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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Vn(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const o=[];if(l){const i=this.callbacks.get(a);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&o.push(u)}const s=this.proxy??{};if(typeof s[a]=="function"){const u=Reflect.apply(s[a],s,[...n]);u!=null&&o.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},a,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,o,[...s])}),o}emitToChildren(t,a,...n){const l=[];return this.children.forEach(o=>{const i=Reflect.apply(o.emit,o,[{...t},a,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,a){this.callbacks.set(t,a)}}function yt(e,t,a,n){const l=new Gt(t,e,a);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Wa(e,t,a){const n=a;if(n[oe])return n[oe];const l=r.inject(oe,null),o=new Gt(l,a,e);if(t&&typeof t=="object")for(const i in t)o.on(i,t[i]);return n[oe]=o,r.provide(oe,o),r.onUnmounted(()=>{o.destroy(),n[oe]=void 0}),o}function rt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[oe]??r.inject(oe,null):r.inject(oe,null)}const je=e=>e.default??e;class Ka{error(t,a){const n=a,l=rt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const a=t,n=rt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(t){const a=t,n=rt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(t,a,n){Array.isArray(t)||(t=[t]);const l=n,o=rt(n),i=a.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Bn=new Ka;function Ya(e){Bn=e}function Ga(e,t){je(Le).setValidator(e,t)}function Ua(e){je(Le).deleteValidator(e)}let qn=["blur","clear"];function Xa(e){qn=e}function Fn(){return qn}let Ln=["focus","change"];function Za(e){Ln=e}function Mn(){return Ln}function Ja(e){je(Le).messages(e)}function at(...e){const t=[];return e.forEach(a=>{a.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function bt(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 Oe=Symbol("ValidateSchemaKey");class jn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,a,n){this.parent=t,this.descriptor=a,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const a=bt(at(this.attrRules,this.rules)),n=[];for(let o in t){let i=t[o];if(this.hasValidator(o,!0)){if(i===!1)continue;let u={type:o};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(o);if(s!==null){let u={type:o,validator:s};n.push(u)}}this.attrRules=bt(n);const l=at(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...a){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...a]);const l=Bn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...a]):null}decorate(t,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,a,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,a,n=!1){n?je(Le).setValidator(t,a):this.validators[t]=a}getValidator(t){let a=this.validators[t]??null;return a||(a=this.parent?.getValidator(t)??null),a}deleteValidator(t,a=!1){a?je(Le).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,a=!1){if(a)return je(Le).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const a=at(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=bt(t):this.rules=bt([t]);const n=at(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=at(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${n}`]:a},o=this.getValue(),i={[`${n}`]:o},s=je(Le),u=new s(l),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let w="error";Array.isArray(d.errors)&&d.errors.length>0&&(w=d.errors[0].message??w,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(w)}return d}).catch(d=>{const w=d.message??`${d}`;return this.error(w),d})}}return Promise.resolve({pass:!0})}}function wt(e,t,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(o){return o[l]}}}return new jn(t,a,e)}const _n=Symbol.for("EventEmitterKey");class Qa{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,a){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===a);l!==-1&&n.splice(l,1)}}on(t,a){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(a)}emit(t,...a){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...a])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...a])}}function lt(e,t){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...n])},t)}}function Pn(e,t){let a=0;return function(...n){const l=new Date().getTime();l-a<t||(a=l,Reflect.apply(e,null,[...n]))}}function el(e,t){const a=lt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(o){a(o,l)}}))}function tl(e){let t=!1;return function(...a){t||(t=!0,Reflect.apply(e,null,[...a]))}}function Ut(e,t,a,n=0,l=!0){let o=t,i=0;if(l){const u=e();if(i++,u||i>a)return}const s=()=>{const u=e();i++,!(u||i>a)&&(o+=n,setTimeout(s,o))};setTimeout(s,o)}const $e=Symbol("DomainKey"),ze=Symbol("DataItemsKey");class St{_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=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,a=[]){for(const n in t){const l=t[n];a.length>0&&a.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const a=this._props[t];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,a){this._props[t]=a}get(t,a){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?a:this.parent.get(t,a)}getForParent(t,a){return this.parent==null?a:this.parent.get(t,a)}getForSelf(t){return this._props[t]}getAll(t){const a=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];a.push(l)}n=n._parent}return a}}const nl=new St;function We(){return nl}function Ie(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[$e]??r.inject($e,null):r.inject($e,null)}const Xt=Symbol("OriginalDateKey");function Zt(e,t,a=[],n){const l=r.getCurrentInstance(),o=l?.proxy;let i=r.inject($e,null);i===null&&(i=We());const s=e||t.prop||t.name,u=new St(s);u.parent=i;const f=p=>{o[Xt]||w(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,d=()=>o[Xt]??null,w=p=>{const S={};Me(!0,S,r.toRaw(p)),o[Xt]=S};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,a)}):u.merge(t,a),t.modelValue&&w(t.modelValue),o[$e]=u,r.provide($e,u);let b=null,$=null;if(l!==null){const p=r.inject(oe,null);b=yt(o,p,s,n),u.broadcast=b,o[oe]=b,r.provide(oe,b),o.broadcast=(m,x,...R)=>Reflect.apply(b.emit,b,[m,x,...R]);const S=r.inject(Oe,null);$=wt(o,S,{componentName:""}),u.validateSchema=$,o[Oe]=$,r.provide(Oe,$),o[ze]=new Map,o.validate=(m=!0)=>{const x=[];let R=null;const B={deep:!1};if(m===!0)R={name:"*"};else if(Array.isArray(m)&&m.length>0){const N=m;R={name:E=>E?N.indexOf(E)!==-1:!1}}else if(m!=null&&typeof m=="object"){const N=m;if(B.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const E=N.include;R={name:O=>O?E.indexOf(O)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const E=N.exclude;R={name:O=>O?E.indexOf(O)===-1:!1}}else R={name:"*"}}if(R){const N=b?.emitToChildren(R,"validate",B);N&&Reflect.apply([].push,x,N)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(N=>{let E=[];return N.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(E=[...E,...O.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(m,x=!0)=>{if(x){const R=Reflect.ownKeys(m),B=[...R],N={name:E=>{const O=R.includes(E);if(O){const V=B.findIndex(A=>E===A);V!==-1&&B.splice(V,1)}return O}};b?.emitToChildren(N,"setNameValidateRules",m,!1),B.length>0&&B.forEach(E=>{let O=String(E);const A=Wn(u,O,{componentName:"",fieldName:O,pureDataValidate:!0},b,$);o[ze].set(O,A);const F=m[O];F&&A.validateSchema.setRule(F)})}},o.clearValidate=(m=!0)=>{let x=null;if(m===!0)x={name:"*"};else if(Array.isArray(m)&&m.length>0){const R=m;x={name:B=>B?R.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const R=m;if(Array.isArray(R.include)&&R.include.length>0){const B=R.include;x={name:N=>N?B.indexOf(N)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const B=R.exclude;x={name:N=>N?B.indexOf(N)===-1:!1}}else x={name:"*"}}x&&b?.emitToChildren(x,"clearValidate",!1)},o.resetFields=m=>{const x=c();if(!x)return;const R={};if(Me(!0,R,d()??{}),Array.isArray(m))m.forEach(B=>{x[B]=R[B]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(N=>{x[N]=R[N]});else if(m&&Array.isArray(m.exclude)){let B=m.exclude??[];Reflect.ownKeys(R).forEach(N=>{B.includes(N)||(x[N]=R[N])})}else Object.assign(x,R);o.clearValidate(m)},o.setModelValue=(m,x)=>{!x||x===s?f(m):b?.emitToChildren({name:x},"setModelValue",m)},o.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),o[$e]=void 0,o[ze]&&(o[ze].clear(),o[ze]=void 0),b!==null&&(b.destroy(),o[oe]=void 0),$!==null&&($.destroy(),o[Oe]=void 0)}),u}function Hn(e,t,a=[]){const l=r.getCurrentInstance()?.proxy;let o=r.inject($e,null);o===null&&(o=We());const i=e||t.prop||t.name,s=new St(i);return s.parent=o,r.isReactive(t)?r.watchEffect(()=>{s.merge(t,a)}):s.merge(t,a),l[$e]=s,r.provide($e,s),r.onUnmounted(()=>{s.destroy(),l[$e]=void 0}),s}function zn(e,t,a){const l=Ie(e)?.get("rules");if(!l)return;let o=l[a];o&&(Array.isArray(o)||(o=[o]),o.forEach(i=>{t.setRule(i)}))}function ue(e,t,a){const l=r.getCurrentInstance()?.proxy,o=t??"",i=r.inject(oe,null),s=yt(l,i,o,a);l[oe]=s,r.provide(oe,s),l.broadcast=($,p,...S)=>Reflect.apply(s.emit,s,[$,p,...S]);const u=r.inject(Oe,null);e.fieldName=e.fieldName??o;const f=wt(l,u,e);l[Oe]=f,r.provide(Oe,f),zn(l,f,o),l.validate=($=null)=>{const p=[];let S=!1,m=!1;if(Array.isArray($)&&$.indexOf(o)!==-1)m=!0,S=!0;else if($&&typeof $=="object"){const x=$;x.ignoreHidden===!0&&En(l.$el)?m=!1:(Array.isArray(x.include)&&x.include.indexOf(o)!==-1||Array.isArray(x.exclude)&&x.exclude.indexOf(o),m=!0),S=x.deep??!1}else typeof $=="boolean"&&(S=$),m=!0;if(m){const x=f?.validate();p.push(x)}if(S){let x=null;const R={deep:!1};if($===!0)x={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;x={name:N=>N?B.indexOf(N)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(R.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const N=B.include;x={name:E=>E?N.indexOf(E)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const N=B.exclude;x={name:E=>E?N.indexOf(E)===-1:!1}}else x={name:"*"}}if(x){const B=s.emitToChildren(x,"validate",R);Reflect.apply([].push,p,B)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(x=>{let R=[];return x.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(R=[...R,...B.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=$=>f?.setRule($),l.setNameValidateRules=($,p=!1)=>{const S=$[o];if(S&&f?.setRule(S),p){const m={name:x=>Reflect.ownKeys($).includes(x)};s.emitToChildren(m,"setNameValidateRules",$,!1)}},l.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&f?.clear();let p=null;if($===!0)p={name:"*"};else if(Array.isArray($)&&$.length>0){const S=$;p={name:m=>m?S.indexOf(m)!==-1:!1}}else if($!=null&&typeof $=="object"){const S=$;if(Array.isArray(S.include)&&S.include.length>0){const m=S.include;p={name:x=>x?m.indexOf(x)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const m=S.exclude;p={name:x=>x?m.indexOf(x)===-1:!1}}else p={name:"*"}}p&&s.emitToChildren(p,"clearValidate",!1)};const c=new Qa(l);l[_n]=c;const d=lt(($="validate")=>{$==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Fn()).forEach($=>{c.on($,p=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Mn()).forEach($=>{c.on($,p=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),l[oe]=void 0,f.destroy(),l[Oe]=void 0,c.destroy(),l[_n]=void 0}),{broadcast:s,validateSchema:f,emitEvent:($,...p)=>{Reflect.apply(c.emit,c,[$,...p])},onEvent:($,p)=>{Reflect.apply(c.on,c,[p])},offEvent:($,p)=>{Reflect.apply(c.off,c,[p])}}}function Wn(e,t,a,n,l){const o={},i=t??"";a.fieldName=i,a.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[i]:null}};const s=wt({},l,a);o.validate=(f=null)=>{const c=[];let d=!1,w=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)w=!0,d=!0;else if(f&&typeof f=="object"){const b=f;Array.isArray(b.include)&&b.include.indexOf(i)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(i),w=!0,d=b.deep??!1}else typeof f=="boolean"&&(d=f),w=!0;if(w){const b=s?.validate();c.push(b)}if(d){let b=null;const $={deep:!1};if(f===!0)b={name:"*"};else if(Array.isArray(f)&&f.length>0){const p=f;b={name:S=>S?p.indexOf(S)!==-1:!1}}else if(f!=null&&typeof f=="object"){const p=f;if(Array.isArray(p.include)&&p.include.length>0){const S=p.include;b={name:m=>m?S.indexOf(m)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const S=p.exclude;b={name:m=>m?S.indexOf(m)===-1:!1}}else b={name:"*"}}if(b){const p=u.emitToChildren(b,"validate",$);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(b=>{let $=[];return b.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&($=[...$,...p.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=f=>s?.setRule(f),o.setNameValidateRules=f=>{const c=f[i];c&&s?.setRule(c)};const u=yt(null,n,i,o);return{broadcast:u,validateSchema:s}}const ce=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${re(e,t)}px`:"";function re(e,t=-1){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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),o=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(o=Number(i.substring(0,s)))}return l*=o,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))/100*t;const n=Number(e);return isNaN(n)?0:n}const qe="PageStateKey";function Ce(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=re(e.top)),e.left!==null&&e.left!==void 0&&(t.left=re(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=re(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=re(e.right))),t}function Jt(e,t,a={},n=!0,l=-1,o=-1,i=0,s=0){if(e.headerHeight=re(a.headerHeight??t.headerHeight),e.headerPadding=Ce(a.headerPadding??t.headerPadding),e.footerHeight=re(a.footerHeight??t.footerHeight),e.footerPadding=Ce(a.footerPadding??t.footerPadding),e.contentPadding=Ce(a.contentPadding??t.contentPadding),n){const u=a.height??t.height;u?e.height=re(u,o):e.height=re(o)-re(i,o)-re(s,o),e.width=re(a.width??t.width??0,l)}}function Kn(e,t={}){const a={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=re(l.top),n.safeAreaBottom=re(l.bottom),n.safeAreaLeft=re(l.left),n.safeAreaRight=re(l.right));const o=e.get("pageLayout");if(!o)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Jt(n,o,t,!0,i,s,u,f);const c=r.reactive(n),d=e.getForParent(qe);d&&(n.height=vt(e,d),n.width=Tt(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=vt(e,d),c.width=Tt(e,d)}));const w=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,$,p=-1,S=-1,m=0,x=0])=>{Jt(c,$,t,w,p,S,m,x)}),e.set(qe,c),c}function $t(e){return e.get(qe)}function ot(e,t){if(t=t??e.get(qe),t&&t.headerMounted){const a=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+a}return 0}function it(e,t){if(t=t??e.get(qe),t&&t.footerMounted){const a=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+a}return 0}function vt(e,t){if(t=t??e.get(qe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const a=ot(e,t),n=it(e,t);return t.height-a-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Tt(e,t){return t=t??e.get(qe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function rl(e,t){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[t,e]):!1}function al(e){return!!e.getForParent(qe)}var ve=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ve||{});function Qt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Se(e,t,a=1,n){const l=Ie();return l==null?e:a===0?r.computed(()=>{const o=l.getAll(t);for(let s=o.length-1;s>=0;s--){const u=o[s];if(Qt(u,n))return u}const i=e.value;return Qt(i,n)?i:null}):r.computed(()=>{const o=e.value;return Qt(o,n)?o:l?.get(t)})}function be(e){return Se(e,"readonly",0,function(a){return te(a)})}function we(e){return Se(e,"disabled",0,function(a){return te(a)})}function ne(e,t="modelValue",a){const n=r.toRef(e,t);let l=n.value;typeof a=="function"&&(l=a(n.value));const o=r.ref(l);return r.watch(n,i=>{if(typeof a=="function"){const s=a(i);s!==o.value&&(o.value=s)}else i!==o.value&&(o.value=i)}),o}const Yn=new Map,xt=new Map;let en=null;function ll(e){en=e}function Gn(e,t,a){if(a){let n=xt.get(a);n||(n=new Map,xt.set(a,n)),n.set(e,t)}else Yn.set(e,t)}function Ee(e,t,a){!a&&en&&(a=en(e)??void 0);let n=null;if(a){let l=xt.get(a);l&&(n=l.get(t))}return n||(n=Yn.get(t)),n}function ol(e,t){for(let a in e){const n=e[a];Gn(a,n,t)}}function il(e){xt.delete(e)}function sl(){return{top:0,left:0,bottom:0,right:0}}function ul(e=0,t=0){if(tt){const a=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:n-re(e,n)-re(t,n),headerHeight:44,footerHeight:44};return{rootWidth:a,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class cl{packages;installers;_version;get version(){return this._version}constructor(t,a,n){this.packages=t,this.installers=a,this._version=n}install(t,a={}){a?.install!==!1&&(this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=We();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Pn(()=>{const s={...a},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in a)n.indexOf(o)===-1&&l.set(o,a[o])}initPageLayout(t,a){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=Me({},sl(),t.safeAreaInset),i=ul(n,l),s=Me({},i.pageLayout,t.pageLayout);a=a??We(),a.set("safeAreaInset",o),a.set("headerBarHeight",n),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(t){ll(t)}setAPI(t,a,n){Gn(t,a,n)}getAPI(t,a,n){return Ee(t,a,n)}batchSetAPI(t,a){ol(t,a)}clearScopeAPI(t){il(t)}getRootDomain(){return We()}}const fl=[g.ElAffix,g.ElAlert,g.ElAutocomplete,g.ElAutoResizer,g.ElAvatar,g.ElBacktop,g.ElBadge,g.ElBreadcrumb,g.ElBreadcrumbItem,g.ElButton,g.ElButtonGroup,g.ElCalendar,g.ElCard,g.ElCarousel,g.ElCarouselItem,g.ElCascader,g.ElCascaderPanel,g.ElCheckTag,g.ElCheckbox,g.ElCheckboxButton,g.ElCheckboxGroup,g.ElCol,g.ElCollapse,g.ElCollapseItem,g.ElCollapseTransition,g.ElColorPicker,g.ElConfigProvider,g.ElContainer,g.ElAside,g.ElFooter,g.ElHeader,g.ElMain,g.ElDatePicker,g.ElDescriptions,g.ElDescriptionsItem,g.ElDialog,g.ElDivider,g.ElDrawer,g.ElDropdown,g.ElDropdownItem,g.ElDropdownMenu,g.ElEmpty,g.ElForm,g.ElFormItem,g.ElIcon,g.ElImage,g.ElImageViewer,g.ElInput,g.ElInputNumber,g.ElLink,g.ElMenu,g.ElSubMenu,g.ElMenuItem,g.ElMenuItemGroup,g.ElPageHeader,g.ElPagination,g.ElPopconfirm,g.ElPopover,g.ElPopper,g.ElProgress,g.ElRadio,g.ElRadioButton,g.ElRadioGroup,g.ElRate,g.ElResult,g.ElRow,g.ElScrollbar,g.ElSelect,g.ElOption,g.ElOptionGroup,g.ElSelectV2,g.ElSkeleton,g.ElSkeletonItem,g.ElSlider,g.ElSpace,g.ElSteps,g.ElStep,g.ElSwitch,g.ElTable,g.ElTableColumn,g.ElTableV2,g.ElTabs,g.ElTabPane,g.ElTag,g.ElTimePicker,g.ElTimeSelect,g.ElTimeline,g.ElTimelineItem,g.ElTooltip,g.ElTransfer,g.ElTree,g.ElTreeSelect,g.ElTreeV2,g.ElUpload],dl=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],hl=e=>{fl.forEach(t=>{let a=t.name;typeof a=="string"?(a=`Fox${a.slice(2)}`,e.component(a,t)):e.use(t)}),dl.forEach(t=>{e.use(t)})};function Q(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=t,a.install=n=>{n.component(a.name,a)},r.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,r.defineComponent(a)}}}const ie={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},pe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},Un={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}},Xn={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"grid"},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},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},Zn=[];for(const e in Xn)Zn.push(e);function fe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let a=t.proxy;Object.assign(a,e)}}const gl=Symbol.for("InnerPageScopeKey"),ml=(e,t)=>({inheritAttrs:!0,props:{...ie,...Un,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}},setup(a,n){const l=Zt(a.name,a);if(l){const f=Kn(l,a);fe({getPageContentHeight:()=>vt(l,f),getPageContentWidth:()=>Tt(l,f),getPageHeaderHeight:()=>ot(l,f),getPageFooterHeight:()=>it(l,f)});const c=r.inject(gl,!1);f&&c&&(f.contentHeight="100%")}const o=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=f=>{const c=s?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>a.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),w=r.toRaw(f),b=w?Reflect.ownKeys(w):[];(d?Reflect.ownKeys(d):[]).forEach(p=>{b.includes(p)||(w[p]=[])}),u(w)},{deep:!0}),r.onMounted(()=>{if(a.rules){const f=r.toRaw(a.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:o,styles:i}}}),{componentName:pl,create:yl,scope:lc}=Q("page"),bl=yl(ml(pl));function wl(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Te=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},Jn=Te(bl,[["render",wl]]),Sl=["aria-labelledby"],$l=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),vl=[$l],Tl=r.defineComponent({__name:"Left",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const a=e,n=s=>{t("click",s)},l=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},o=r.computed(()=>{const s="fox-icon";return{[a.class]:!!a.class,[s]:!0,[s+"-"+a.name]:a.name}}),i=r.computed(()=>{const s={};return s.height=l(a.height)??l(a.size),s.width=l(a.width)??l(a.size),s.color=a.color,s});return(s,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(o.value),style:r.normalizeStyle(i.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},vl,14,Sl))}});function tn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function nn(e){const t=r.unref(e),a=window.getComputedStyle(t,null),n=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),o=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-o-i}}const xl=(e,t,a,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},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1,default:""},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(l,o){const i=Ie(),s=i?$t(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:l.border,[`${y}--fixed`]:l.fixed,[`${y}--safe-area-inset-top`]:l.safeAreaInsetTop}}),f=l.height!==null&&l.height!==void 0?re(l.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=Ce(l.padding??s.headerPadding);return Object.assign(y,T),f&&(s.headerHeight=f),y.height=s.headerHeight,y.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(T.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),l.padding){const T=Ce(l.padding);Object.assign(y,T)}return y}),d=r.ref(null),w=()=>{if(s&&d.value&&d.value.offsetParent!==null){if(!n){const y=tn(d.value);s.headerAllHeight=y.height}return s.headerMounted=!0,!0}return!1};r.onMounted(()=>{s&&Ut(w,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.headerMounted=!1)});const b=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),$=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),p=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),S=r.computed(()=>!!l.leftShow),m=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),x=r.computed(()=>l.titleShow?l.title||l.titleIcon||o.slots.titleIcon||o.slots.default:!1),R=r.computed(()=>l.rightShow?l.rightText||l.rightIcon||o.slots.rightIcon||o.slots.right:!1),B=r.computed(()=>l.leftIcon),N=r.computed(()=>B.value||o.slots.leftIcon),E=r.computed(()=>l.titleIcon),O=r.computed(()=>l.titleIcon||o.slots.titleIcon),V=r.computed(()=>l.rightIcon),A=r.computed(()=>l.rightIcon||o.slots.rightIcon);function F(){o.emit("back")}function W(){o.emit("click-title")}function _(){o.emit("click-right")}function v(){o.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:b,mHeaderShow:m,leftStyles:$,rightStyles:p,mLeftShow:S,mTitleShow:x,mRightShow:R,mLeftIcon:B,hasLeftIcon:N,mTitleIcon:E,hasTitleIcon:O,mRightIcon:V,hasRightIcon:A,handleLeft:F,handleCenter:W,handleRight:_,handleRightText:v}}}),{componentName:Cl,create:El,scope:Nl}=Q("header-bar"),kl=El(xl(Cl,Nl,Tl)),Vl={key:1,class:"fox-header-bar__title"},Ol={key:0,class:"title-text"};function Il(e,t,a,n,l,o){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",Vl,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",Ol,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Qn=Te(kl,[["render",Il]]);function Dl(e,t,a=!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,l){const o=Ie(),i=o?$t(o):null,s=r.computed(()=>{const b=e;return{[b]:!0,[`${b}--${n.align}`]:!0,[`${b}--border`]:n.border,[`${b}--fixed`]:n.fixed,[`${b}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?re(n.height):null,f=r.computed(()=>{const b={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(o&&i){const $=Ce(n.padding??i.footerPadding);return Object.assign(b,$),u&&(i.footerHeight=u),b.height=i.footerHeight,b.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,b.safeAreaBottom>0&&(b.height=b.height+b.safeAreaBottom,b.bottom=b.safeAreaBottom+($.bottom??0)),b}if(u&&(b.height=u),n.padding){const $=Ce(n.padding);Object.assign(b,$)}return b}),c=r.ref(null),d=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!a){const b=tn(c.value);i.footerAllHeight=b.height}return i.footerMounted=!0,!0}return!1};r.onMounted(()=>{i&&Ut(d,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.footerMounted=!1)});const w=r.computed(()=>{const b={};return f.value.height!==null&&f.value.height!==void 0&&(b.height=ce(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(b.paddingTop=ce(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(b.paddingLeft=ce(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(b.paddingRight=ce(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(b.paddingBottom=ce(f.value.bottom)),b});return{footerBarRef:c,classes:s,styles:w}}}}const{componentName:Rl,create:Al,scope:oc}=Q("footer-bar"),Bl=Al(Dl(Rl));function ql(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const er=Te(Bl,[["render",ql]]);function Fl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(a){const n=Ie(),l=r.computed(()=>({[e]:!0})),o=n?$t(n):null,i=r.computed(()=>{const f={};if(n&&o){if(a.padding){const b=Ce(a.padding);Object.assign(o.contentPadding,b)}const c=ot(n,o),d=it(n,o);let w="";if(o.contentHeight?w=`${o.contentHeight}`:w=`${o.height}px`,o.contentPadding,f.height=w,o.contentPadding.top||c>0){const b=(o&&o.contentPadding&&o.contentPadding.top)??0;f.paddingTop=`${c+b}px`}if(o.contentPadding.bottom||d>0){const b=(o&&o.contentPadding&&o.contentPadding.bottom)??0;f.paddingBottom=`${d+b}px`}return o.contentPadding.left&&(f.paddingLeft=`${o.contentPadding.left}px`),o.contentPadding.right&&(f.paddingRight=`${o.contentPadding.right}px`),f}if(a.padding){const c=Ce(a.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=r.ref(null),u=()=>{if(o&&s.value){const f=nn(s.value);o.contentInnerHeight=f.height,o.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&o&&r.watch([()=>ot(n),()=>it(n)],([])=>{u()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:Ll,create:Ml,scope:ic}=Q("content"),jl=Ml(Fl(Ll));function _l(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const tr=Te(jl,[["render",_l]]),Ke="GroupStateKey",nr=Symbol.for("GroupScopeKey");function Ct(){return r.inject(nr,!1)}function Et(e=!0){r.provide(nr,e)}function Pl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=r.shallowRef(n),o=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(Ke,o),o}function rn(e,t,a=-1,n=-1,l=!1,o,i){const s=e.get(Ke);if(!s)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1),i||(i=u.maxItemWidth??-1);const f=re(o),c=re(i),d=()=>{const w=t===""||t===-1,b=re(t);let $=ge(a);const p=re(n);if(!w){let x=(b-($-1)*p)/$;for(;c!==-1&&x>c;)$++,x=(b-($-1)*p)/$;for(;f!==-1&&$>1&&x<f;)$--,x=(b-($-1)*p)/$}let S=!1;const m=s.layout;m.value.width=t,m.value.column!==$&&(m.value.column=$,S=!0),m.value.gutter!==p&&(m.value.gutter=p,S=!0),S&&r.triggerRef(m)};if(l)d();else{const w=++s.passport;setTimeout(()=>{w===s.passport&&d()},50)}}function Nt(e,t=!1){let a;return t?a=e.getForParent(Ke):a=e.get(Ke),a.layout}function kt(e,t=!1){let a;return t?a=e.getForParent(Ke):a=e.get(Ke),a.order}function rr(e,t=1){if(t==="stretch")return-1;const a=ge(t);return a===-1?100:100*a/e}function Vt(e,t,a=1,n=0,l){const o={};let i=0;l?i=re(l):i=rr(t.column,a),i>0&&(o.width=`${i}%`);const s=rr(t.column,n);s>0&&(o["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(o["padding-left"]=`${u}px`,o["padding-right"]=`${u}px`),o}function Ot(e,t,a=1,n=0){if(a==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let l=ge(a);if(l===-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(l>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 o=ge(n)%t.column;let i=(e.index+o)%t.column,s=i+l;return s>t.column?(i=0,s=i+l,e.index=e.index+(t.column-i)+l):e.index=e.index+o+l,o>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}function an(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}function Hl(e,t,a){if(e<=0)return"1fr";const n=(e-(t-1)*a)/t;return n>0?`${n}px`:"1fr"}function zl(e,t,a){return{props:{...ie,...Un,...Xn},emits:["update:collapse"],setup(n,l){const o=Zt(n.name,n,Zn),i=Pl(o,{type:n.type}),s=Ct();Et(!0);const u=r.computed(()=>s&&o?Nt(o,!0).value:null),f=r.getCurrentInstance(),c=M=>{const Y=f?.proxy;Y&&typeof Y.setNameValidateRules=="function"&&Y.setNameValidateRules(M,!0)};r.watch(()=>n.rules,(M,Y)=>{if(!M&&!Y)return;const U=r.toRaw(Y),D=r.toRaw(M),G=D?Reflect.ownKeys(D):[];(U?Reflect.ownKeys(U):[]).forEach(j=>{G.includes(j)||(D[j]=[])}),c(D)},{deep:!0});const d=e,w=r.computed(()=>{const M={};M.height=v.value;const Y=s?kt(o,!0):null;if(u.value&&Y){if(u.value.type==="grid"){const U=Ot(Y,u.value,n.span,n.offset);Object.assign(M,U)}else if(u.value.type==="flow"){const U=Vt(Y,u.value,n.span,n.offset,n.width);Object.assign(M,U)}}else if(n.width){const U=ce(n.width);M.width=U}return k.value&&(M["box-sizing"]="content-box"),M}),b=r.computed(()=>n.type==="grid"||n.type==="flow"?{[`${d}--${n.type}`]:!0,[`${d}--${n.type}-justify-${n.justify}`]:!0,[`${d}--${n.type}-align-${n.align}`]:!0,[`${d}--gutter`]:!0}:{[`${d}--${n.type}`]:!0,[`${d}--gutter`]:!0}),$=r.computed(()=>{if(n.type==="grid"){let M="";if(n.columnWidth)M=`repeat(auto-fill, ${n.columnWidth})`;else{const Y=Hl(E.value,i.layout.value.column,i.layout.value.gutter);M=`repeat(${i.layout.value.column}, ${Y})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":M}}}),p=r.toRef(n,"title"),S=r.toRef(n,"gutter"),m=r.toRef(n,"column"),x=r.computed(()=>s?!0:te(n.isWrap)),R=[],B=M=>{R.push(M)},N=()=>{let M=R.length;R.splice(0,M)},E=r.ref(-1),O=M=>{const Y=nn(M).width;Y>0&&Y!==E.value&&(E.value=Y)};rn(o,E.value,m.value,S.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&r.watch([E,m,S],([M,Y,U])=>{i.order.index=0,rn(o,M,Y,U,!1,n.minItemWidth,n.maxItemWidth)});const V=r.computed(()=>y.value?n.expandText??"":n.collapseText??""),A=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),F=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!y.value,"is-collapse":y.value})),W=r.ref(),_=r.ref(),v=r.computed(()=>T.value||ce(n.height)||""),y=r.ref(!1),T=r.ref(""),k=r.ref(!1);let L=-1;const K=(M,Y=!0)=>{const U=W.value;if(U&&y.value!==M){if(L=L===-1?an(U):L,k.value=!0,Y)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",M||(T.value="",k.value=!1)},M){let D=0;n.collapseHeight?D=n.collapseHeight:_.value&&_.value.classList.contains(`${e}__header`)&&(D=an(_.value)),T.value=`${L}px`,r.nextTick(()=>{T.value=`${D}px`})}else T.value=`${L}px`;else if(M){let D=0;n.collapseHeight?D=n.collapseHeight:_.value&&_.value.classList.contains(`${e}__header`)&&(D=an(_.value)),T.value=`${D}px`}else k.value=!1,T.value=`${L}px`;y.value=M,l.emit("update:collapse",M)}};r.watch(()=>n.collapse,M=>{K(M)});const C=()=>{I()},I=M=>{M=M??!y.value,K(M)};fe({toggleCollapse:I,doLayout:()=>{R[0]&&(O(R[0]),rn(o,E.value,m.value,S.value,!0,n.minItemWidth,n.maxItemWidth))}});let q=null;r.onMounted(()=>{if(n.rules){const M=r.toRaw(n.rules);c(M)}if(tt&&(K(te(n.collapse),!1),n.autoLayout&&Array.isArray(R)&&R.length>0)){const M=R[0];O(M),window.ResizeObserver&&(q=new window.ResizeObserver(()=>{O(M)}),q.observe(M))}}),r.onUnmounted(()=>{q?.disconnect()});const z=(M,Y,U,D)=>{const G={...b.value};return Y===0&&(G[`${d}__first`]=!0),U>=D-1&&(G[`${d}__last`]=!0),r.h("div",{ref:B,key:`${Y}`,class:G,style:$.value},M)};return()=>{i.order.index=0;const M=[];let Y=0;if(l.slots.header){const D={key:`${Y++}`,ref:_,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},G=r.h("div",D,[l.slots.header()]);M.push(G)}else{const D=[];if(p.value){if(n.showMark){const P={class:{[`${d}__header-mark`]:!0}};n.markColor&&(P.style={background:n.markColor});const j=r.h("div",P);D.push(j)}const G=r.h("div",{class:{[`${d}__header-title`]:!0}},[p.value]);D.push(G)}if(l.slots.toolbar&&D.push(l.slots.toolbar()),n.showCollapse){const G=[];if(V.value){const X={class:A.value},Z=r.h("span",X,[V.value]);G.push(Z)}const P={class:F.value},j=a(n.collapseIcon,P);if(j&&G.push(j),G.length>0){const X=r.h("div",{class:{[`${d}__header-collapse`]:!0},onClick:C},G);D.push(X)}}if(D.length>0){const G={key:`${Y++}`,ref:_,class:{[`${d}__header`]:!0,[`${d}__first`]:!0}},P=r.h("div",G,D);M.push(P)}}N();const U=l.slots.default?l.slots.default():[];if(n.type==="grid"){const D=z(U,Y++,0,U.length);M.push(D)}else if(n.type==="flow"){const D=z(U,Y++,0,U.length);M.push(D)}else for(let D=0;D<U.length;D++){const G=U[D],P=z([G],Y++,D,U.length);M.push(P)}if(x.value){const D=n.tag||"div";return r.h(D,{ref:W,prop:n.name,class:{[`${d}`]:!0,"is-collapse":k.value},style:w.value},[M])}else return M}}}}const{componentName:Wl,create:Kl,scope:Yl}=Q("group"),ar=Kl(zl(Wl,Yl,(e,t)=>(e=e??Ve.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]}))));function Gl(e){return e===window}const Ul=/matrix\((.+)\)/,lr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Gl(t))return{x:0,y:0};let a=0,n=0,l=t;for(;l!==null;)a+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let o=0,i=0,s=0,u=0;for(l=t;l!==document;){i+=l.scrollTop,o+=l.scrollLeft;const{transform:f}=window.getComputedStyle(l);if(f){const c=Ul.exec(f);if(c){let w=c[1].split(/\s*,\s*/);w.length==6&&(s+=Number(w[4]),u+=Number(w[5]))}}l=l.parentNode}return a-=o,n-=i,a+=s,n+=u,{x:a,y:n}};function Xl(e){return e===window}const ln=e=>{const t=r.unref(e);if(Xl(t)){const a=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:a,bottom:n,width:a,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Zl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const a=this.watchedListeners.indexOf(t);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Jl{monitorRegister=new WeakMap;watch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Zl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(a),n=n.parentNode}}unwatch(t,a){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(a),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const or=new Jl,ir={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},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:Ql,create:eo}=Q("price"),to=eo({props:{...ir},setup(e){const t=r.computed(()=>({[Ql]:!0})),a=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>nt(e.price)==0?"":gt(e.price,e.decimalLength,!0,ge(e.digits),e.separator)),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),o=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:a,intText:l,decimalText:o}}}),no=["innerHTML"],ro=["innerHTML"];function ao(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,no)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ro)):r.createCommentVNode("",!0)],2)}const on=Te(to,[["render",ao]]),{componentName:It,create:lo}=Q("hint-text"),oo=lo({components:{Price:on},props:{...ir,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const o=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[It]:!0})),w=r.ref(null),b=(V,A,F=10)=>{if(!tt||A===!1||!V)return;o.value=!0;const W=ln(e.reference);u.value=W.width,f.value=W.height,setTimeout(()=>{if(!w.value)return;const _=lr(e.reference),v=document.documentElement.clientWidth||document.body.clientWidth,y=w.value.offsetWidth,T=w.value.offsetHeight;_.y-T>=0?(c.value="top",i.value.y=_.y-T-10-4,s.value.y=T):(c.value="bottom",i.value.y=_.y+f.value+10,s.value.y=-10);const k=_.x+y-v;k<0?(i.value.x=_.x,s.value.x=20):(i.value.x=_.x-k,s.value.x=k+20),o.value=!1},F)},$=lt(()=>{b(e.message,e.visible)},10),p=r.computed(()=>e.visible&&S.value),S=r.ref(!0),m=lt(V=>{const A=V[0];A&&(S.value=A.isIntersecting)},10),x=new IntersectionObserver(m);r.watch([()=>e.message,()=>e.visible],([V,A])=>{b(V,A)}),r.onMounted(()=>{b(e.message,e.visible),or.watch(e.reference,$),x.observe(e.reference)}),r.onBeforeMount(()=>{or.unwatch(e.reference,$),x.unobserve(e.reference),x.disconnect()});const R=r.computed(()=>{const V={"min-width":ce(u.value)};return o.value?V.visibility="hidden":V.transform=`translate(${i.value.x}px, ${i.value.y}px)`,V}),B=r.computed(()=>({[`${It}__content`]:!0})),N=r.computed(()=>({})),E=r.computed(()=>({[`${It}__arrow`]:!0,[`${It}__arrow-${e.placement}`]:!0})),O=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:p,tipRef:w,classes:d,styles:R,textClasses:B,textStyles:N,arrowClasses:E,arrowStyles:O}}}),io={key:1,class:"text"};function so(e,t,a,n,l,o){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",io,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const Dt=Te(oo,[["render",so]]);class sr{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 sn={},uo=new sr,Ye=new Map,un=e=>{if(e){const t=document.getElementById(e);Ye.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ye.keys()){const a=document.getElementById(t);a&&a.parentNode?.removeChild(a)}Ye.clear()}},co=e=>{const t=document.getElementById(e.id);if(t){const a=Ye.get(e.id);a?e={...sn,...a,...e}:e={...sn,...e};const n=r.createVNode(Dt,e);return r.render(n,t),e.id}},fo=e=>{e.unmount=un;let t;if(e.id){if(t=e.id,Ye.has(t))return co(e)}else t=`hinttext_${uo.get()}`;e={...sn,...e},e.id=t,Ye.set(t,e);const a=document.createElement("div");a.id=e.id;const n=r.createVNode(Dt,e);return r.render(n,a),document.body.appendChild(a),t},ho=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Rt={show(e,t,a={},n=!0){return n&&un(),ho(t),fo({...a,message:t,reference:e})},hide(e){un(e)},install(e){e.config.globalProperties.$hintText=Rt}},{componentName:ur,create:go}=Q("item"),mo=go({inheritAttrs:!0,props:{...ie,...pe},emits:["appear","disappear"],setup(e,t){const a=e.prop??t.attrs.name;ue({componentName:ur,validate:!1},a);const n=Ie(),l=Ct();Et(!1);const o=r.computed(()=>l&&n?Nt(n,!1).value:null),i=ur,s=r.ref(null),u=r.computed(()=>{const D={[i]:!0,[`${i}__gutter`]:o.value&&o.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(D[e.errorMarkClass]=!!W.value,D[e.warnMarkClass]=!!A.value,D[e.infoMarkClass]=!!O.value,typeof s.value=="function"){const G=s.value(a);D[G]=!0}else if(typeof s.value=="string"){const G=s.value;D[G]=!0}return D}),f=r.computed(()=>{const D={},G=l&&n?kt(n,!1):null;if(o.value&&G)if(o.value.type==="grid"){const P=Ot(G,o.value,e.span,e.offset);Object.assign(D,P)}else if(o.value.type==="flow"){const P=Vt(G,o.value,e.span,e.offset,e.width);Object.assign(D,P)}else return e.width&&(D.width=ce(e.width)),D;else e.width&&(D.width=ce(e.width));return D}),c=r.ref(null),d=r.computed({get:()=>c.value??te(e.isRequired),set:D=>{c.value=D}}),w=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),b=Se(r.toRef(e,"labelPosition"),"labelPosition",ve.Near),$=r.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),p=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${$.value}`]:!0})),S=r.computed(()=>({label:!0,[`label--${$.value}`]:!0})),m=Se(r.toRef(e,"labelWidth"),"labelWidth",ve.Near),x=r.computed(()=>m&&m.value?{width:ce(m.value)}:{}),R=r.computed(()=>({"label--string":!0,"label--required":d.value})),B=r.computed(()=>({content:!0,[e.contentClass]:!0})),N=r.computed(()=>({...e.contentStyle})),E=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(D){d.value=D},setErrorTip(D){E.errorTip=D},setErrorIcon(D){E.errorIcon=D},setWarnTip(D){E.warnTip=D},setWarnIcon(D){E.warnIcon=D},setInfoTip(D){E.infoTip=D},setInfoIcon(D){E.infoIcon=D},setCustomClassName(D){s.value=D}});const O=r.computed(()=>e.infoTip||E.infoTip),V=r.computed(()=>e.infoIcon||E.infoIcon),A=r.computed(()=>e.warnTip||E.warnTip),F=r.computed(()=>e.warnIcon||E.warnIcon),W=r.computed(()=>e.errorTip||E.errorTip),_=r.computed(()=>e.errorIcon||E.errorIcon),v=r.computed(()=>W.value?"error":A.value?"warn":O.value?"info":""),y=r.computed(()=>v.value.length>0),T=r.computed(()=>v.value==="error"?W.value:v.value==="warn"?A.value:v.value==="info"?O.value:""),k=r.computed(()=>v.value==="error"?_.value:v.value==="warn"?F.value:v.value==="info"?V.value:null),L=r.computed(()=>{let D={[`${i}__tip`]:!0,[`${i}__tip--${v.value}`]:!0};return v.value==="error"&&e.errorClass?D[`${e.errorClass}`]=!0:v.value==="warn"&&e.warnClass?D[`${e.warnClass}`]=!0:v.value==="info"&&e.infoClass&&(D[`${e.infoClass}`]=!0),D}),K=r.computed(()=>{let D={};return b&&b.value==="top"||!w.value?D["padding-left"]="0px":m&&m.value&&(D["padding-left"]=ce(m.value)),D}),C=()=>r.h(k.value,{width:12,height:12}),I=r.computed(()=>t.slots.fixedTip),H=r.computed(()=>({[`${i}__fixed-tip`]:!0})),q=r.ref();let z="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([D,G,P,j])=>{q.value&&(D&&!le(G)?z?Rt.show(q.value,G,{...j,id:z,type:P},!0):z=Rt.show(q.value,G,{...j,type:P},!0):Rt.hide(z))});let M=null;const Y=()=>{M||!q.value||(M=new IntersectionObserver(D=>{let G=!1;for(let P of D)if(P.intersectionRatio>0){G=!0,G&&t.emit("appear",P);break}G||t.emit("disappear")}),M.observe(q.value))},U=()=>{!M||!q.value||(M.unobserve(q.value),M=null)};return r.watch(()=>te(e.appearListen),D=>{D?Y():U()}),r.onMounted(()=>{te(e.appearListen)&&Y()}),r.onUnmounted(U),{classes:u,styles:f,mainClasses:p,hasLabel:w,labelClasses:S,labelStyles:x,labelStringClasses:R,contentClasses:B,contentStyles:N,contentRef:q,hasTip:y,mTip:T,mIcon:k,renderIcon:C,tipClasses:L,tipStyles:K,hasFixedTip:I,fixedTipClasses:H}}}),po=["prop"],yo={key:0,class:"fox-item__tip--icon"},bo={class:"fox-item__tip--text"};function wo(e,t,a,n,l,o){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createElementBlock("div",yo,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",bo,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,po)}const de=Te(mo,[["render",wo]]);function So(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(a,n){const l=Ie(),o=Ct();Et(!1);const i=r.computed(()=>o&&l?Nt(l,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),f=r.computed(()=>{const c={},d=o&&l?kt(l,!1):null;if(i.value&&d)if(i.value.type==="grid"){const w=Ot(d,i.value,a.span,a.offset);Object.assign(c,w)}else if(i.value.type==="flow"){const w=Vt(d,i.value,a.span,a.offset,a.width);Object.assign(c,w)}else return a.width&&(c.width=ce(a.width)),c;else a.width&&(c.width=ce(a.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:$o,create:vo,scope:uc}=Q("slot-item"),cr=vo(So($o));function To(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],required:!1,default:!1}},setup(a,n){const l=e,o=r.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),i=Ie(),s=Ct();Et(!1);const u=r.computed(()=>{const f={};if(s&&i){const c=Nt(i,!1),d=kt(i,!1);if(c.value&&d)if(c.value.type==="grid"){const w=Ot(d,c.value,a.span,a.offset);Object.assign(f,w)}else if(c.value.type==="flow"){const w=Vt(d,c.value,a.span,a.offset,a.width);Object.assign(f,w)}else a.width&&(f.width=ce(a.width))}else a.width&&(f.width=ce(a.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(a.divide)for(let w=0;w<d.length;w++){if(w>0){const b=r.h("div",{class:{[`${l}__divide`]:!0}});f.push(b)}f.push(d[w])}else Reflect.apply([].push,f,d)}const c={class:o.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:xo,create:Co,scope:cc}=Q("row-item"),fr=Co(To(xo)),dr={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 Eo(e,t,a){return{props:{...ie,...pe,...dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0,[`${w}__disabled`]:o.value,[`${w}__readonly`]:i.value})),$=v=>{d.value=v,s("update:modelValue",v),s("input",v)},p=v=>{s("change",v)};let S=ne(n,"hintText"),m=r.ref(!1);const x=v=>{let T=v.target.value;c.value=!0,le(S.value)||(m.value=!0),s("focus",T,v)},R=v=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),s("blur",T,v)},B=()=>{s("clear","")},N=r.ref(!1);let E=null;const O=()=>{n.showTooltip&&N.value===!1&&(E=setTimeout(()=>{N.value=!0},150))},V=()=>{E&&(clearTimeout(E),N.value=!1,E=null)},A=r.computed(()=>N.value||m.value),F=r.computed(()=>N.value?d.value:S.value),W=r.computed(()=>nt(n.unit)>0),_=r.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const y={...l.attrs,ref:_,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:p,onInput:$,onFocus:x,onBlur:R,onMouseover:O,onMouseleave:V},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:W.value&&(T.suffix=()=>[n.unit]);const k=[],L=r.h(g.ElInput,y,T);k.push(L);const K={default:()=>k};l.slots.default&&(K.label=l.slots.default),l.slots.default&&(K.fixedTip=l.slots.fixedTip);const I={...me(n,dr),hintText:F.value,hintVisible:A.value,prop:`${n.prop}_item`};return r.h(a,I,K)}}}}const{componentName:No,create:ko,scope:Vo}=Q("input-item"),hr=ko(Eo(No,Vo,de));function _e(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function gr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Oo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Io=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Do(){const e=r.getCurrentInstance();return new Io(e.proxy)}function mr(e,t,a){const n=_e(e,t),l=_e(e,a);if(n!==l)return!1;const o=Ge(e,t),i=Ge(e,a);return o===i}function pr(e,t,a,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let i of n){const s=gr(e,i);if(Array.isArray(s)&&s.length>0){const u=pr(e,o,a,s)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(a==="text")u=_e(e,i)===o;else if(a==="item")u=mr(e,i,o);else{let f=Ge(e,i);f==null&&(f=_e(e,i)),u=f===o}if(u){l.push(i);break}}}}),l}function Ro(e){return{text:e,value:e}}const yr={modelValue:{type:[String,Object,Boolean,Number],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},lazyLoad:{type:[Boolean,String],default:!1}};function Ao(e,t,a){return{props:{...ie,...pe,...yr},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),w=(q,z,M,Y=!0)=>{const U=pr(n,q,z,M);if(U===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Y&&(s("update:modelValue",null),s("change",null));return}let D=!0;if(U.length!==d.value.length)D=!1;else for(let G=0;G<U.length;G++){const P=U[G],j=d.value[G];if(!mr(n,P,j)){D=!1;break}}if(!D){d.value=U;let G=[],P=[];U.forEach(X=>{G.push(Ge(n,X)),n.valueType==="text"?P.push(_e(n,X)):n.valueType==="item"?P.push(X):P.push(Ge(n,X))});let j;n.multiple?(c.value=G,j=r.toRaw(P)):(c.value=G[0]??"",j=r.toRaw(P[0]??"")),Y&&(s("update:modelValue",j),s("change",j))}},b=r.ref(null),$=r.ref(null),p=r.computed(()=>$.value??b.value??[]),S=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,q=>te(q)),m=Do(),x=async(q,z)=>{if(q){const M=await m.load("select",q,z);if(M.length>0)if(typeof M[0]=="string"){let D=M.map(G=>Ro(G));b.value=D}else b.value=M;else b.value=null}};r.watch([()=>n.source,()=>n.params],([q,z])=>{x(q,z)},{immediate:!S.value});let R=!1;const B=()=>{R||(R=!0,x(n.source,n.params))};r.watch([()=>p.value,()=>n.modelValue],([q,z])=>{w(z,n.valueType,q,!1)});let N=null,E=r.ref(!1);typeof n.remoteMethod=="function"&&(N=async q=>{if(q==null){$.value=null;return}E.value=!0;try{const z=await n.remoteMethod(q);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});let O=null;typeof n.filterMethod=="function"&&(O=async q=>{if(q==null){$.value=null;return}E.value=!0;try{const z=await n.filterMethod(q,b.value);z&&($.value=z)}catch(z){$.value=null,console.error(z)}E.value=!1});const V=r.ref(!1),A=e,F=r.computed(()=>({[A]:!0})),W=q=>{n.allowCreate?(s("update:modelValue",q),s("change",q),c.value=q):w(q,"value",p.value,!0)};let _=ne(n,"hintText"),v=r.ref(!1);const y=q=>{let M=q.target.value;V.value=!0,le(_.value)||(v.value=!0),s("focus",M,q)},T=q=>{setTimeout(()=>{v.value&&(v.value=!1),V.value=!1},0);let M=q.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),L.value||s("blur",M,q)},k=()=>{s("clear","")},L=r.ref(!1),K=q=>{L.value=q,s("visible-change",q),q||s("selected")},C=q=>{s("remove-tag",q)},I=(q,z)=>{const M=[];return q.forEach((Y,U)=>{const D=gr(n,Y);if(Array.isArray(D)&&D.length>0){const G=I(D,z),P=_e(n,Y),X={key:`${P}_${U}`,label:P};M.push(r.h(g.ElOptionGroup,X,{default:()=>G}))}else{const G=Ge(n,Y),P=_e(n,Y),j=Oo(n,Y),Z={key:`${G}_${U}`,label:P,disabled:j,value:G};if(typeof z=="function")M.push(r.h(g.ElOption,Z,{default:()=>z(Y)}));else if(n.optionType==="item"){const ee={class:{"fox-select-item__option-left":!0}},ye=r.h("span",ee,[G]),se={class:{"fox-select-item__option-right":!0}},He=r.h("span",se,[P]),va=r.h("div",{class:{"fox-select-item__option":!0}},[ye,He]);M.push(r.h(g.ElOption,Z,{default:()=>va}))}else n.optionType==="value"?M.push(r.h(g.ElOption,Z,{default:()=>[G]})):M.push(r.h(g.ElOption,Z))}}),M},H=r.ref();return fe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()}}),()=>{const z={...l.attrs,ref:H,class:F.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:o.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:k,onChange:W,onFocus:y,onBlur:T,onVisibleChange:K,onRemoveTag:C};typeof N=="function"&&(z["remote-method"]=N,z.loading=E.value),typeof O=="function"&&(z["filter-method"]=O,z.loading=E.value);const M={};l.slots.prefix&&(M.prefix=l.slots.prefix),l.slots.empty&&(M.empty=l.slots.empty),l.slots.options?M.default=l.slots.options:M.default=()=>I(p.value,l.slots.option);const Y=[],U=r.h(g.ElSelect,z,M);Y.push(U);const D={default:()=>Y};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const P={...me(n,yr),hintText:_.value,hintVisible:v.value,prop:`${n.prop??l.attrs.name}_item`};return S.value&&(P["appear-listen"]=!0,P.onAppear=B),r.h(a,P,D)}}}}const{componentName:Bo,create:qo,scope:Fo}=Q("select-item"),br=qo(Ao(Bo,Fo,de));var De=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){var a=1e3,n=6e4,l=36e5,o="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",w="quarter",b="year",$="date",p="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,x={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("_")},R=function(v,y,T){var k=String(v);return!k||k.length>=y?v:""+Array(y+1-k.length).join(T)+v},B={s:R,z:function(v){var y=-v.utcOffset(),T=Math.abs(y),k=Math.floor(T/60),L=T%60;return(y<=0?"+":"-")+R(k,2,"0")+":"+R(L,2,"0")},m:function v(y,T){if(y.date()<T.date())return-v(T,y);var k=12*(T.year()-y.year())+(T.month()-y.month()),L=y.clone().add(k,d),K=T-L<0,C=y.clone().add(k+(K?-1:1),d);return+(-(k+(T-L)/(K?L-C:C-L))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:d,y:b,w:c,d:f,D:$,h:u,m:s,s:i,ms:o,Q:w}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},N="en",E={};E[N]=x;var O=function(v){return v instanceof W},V=function v(y,T,k){var L;if(!y)return N;if(typeof y=="string"){var K=y.toLowerCase();E[K]&&(L=K),T&&(E[K]=T,L=K);var C=y.split("-");if(!L&&C.length>1)return v(C[0])}else{var I=y.name;E[I]=y,L=I}return!k&&L&&(N=L),L||!k&&N},A=function(v,y){if(O(v))return v.clone();var T=typeof y=="object"?y:{};return T.date=v,T.args=arguments,new W(T)},F=B;F.l=V,F.i=O,F.w=function(v,y){return A(v,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var W=function(){function v(T){this.$L=V(T.locale,null,!0),this.parse(T)}var y=v.prototype;return y.parse=function(T){this.$d=function(k){var L=k.date,K=k.utc;if(L===null)return new Date(NaN);if(F.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var C=L.match(S);if(C){var I=C[2]-1||0,H=(C[7]||"0").substring(0,3);return K?new Date(Date.UTC(C[1],I,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)):new Date(C[1],I,C[3]||1,C[4]||0,C[5]||0,C[6]||0,H)}}return new Date(L)}(T),this.$x=T.x||{},this.init()},y.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},y.$utils=function(){return F},y.isValid=function(){return this.$d.toString()!==p},y.isSame=function(T,k){var L=A(T);return this.startOf(k)<=L&&L<=this.endOf(k)},y.isAfter=function(T,k){return A(T)<this.startOf(k)},y.isBefore=function(T,k){return this.endOf(k)<A(T)},y.$g=function(T,k,L){return F.u(T)?this[k]:this.set(L,T)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(T,k){var L=this,K=!!F.u(k)||k,C=F.p(T),I=function(G,P){var j=F.w(L.$u?Date.UTC(L.$y,P,G):new Date(L.$y,P,G),L);return K?j:j.endOf(f)},H=function(G,P){return F.w(L.toDate()[G].apply(L.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(P)),L)},q=this.$W,z=this.$M,M=this.$D,Y="set"+(this.$u?"UTC":"");switch(C){case b:return K?I(1,0):I(31,11);case d:return K?I(1,z):I(0,z+1);case c:var U=this.$locale().weekStart||0,D=(q<U?q+7:q)-U;return I(K?M-D:M+(6-D),z);case f:case $:return H(Y+"Hours",0);case u:return H(Y+"Minutes",1);case s:return H(Y+"Seconds",2);case i:return H(Y+"Milliseconds",3);default:return this.clone()}},y.endOf=function(T){return this.startOf(T,!1)},y.$set=function(T,k){var L,K=F.p(T),C="set"+(this.$u?"UTC":""),I=(L={},L[f]=C+"Date",L[$]=C+"Date",L[d]=C+"Month",L[b]=C+"FullYear",L[u]=C+"Hours",L[s]=C+"Minutes",L[i]=C+"Seconds",L[o]=C+"Milliseconds",L)[K],H=K===f?this.$D+(k-this.$W):k;if(K===d||K===b){var q=this.clone().set($,1);q.$d[I](H),q.init(),this.$d=q.set($,Math.min(this.$D,q.daysInMonth())).$d}else I&&this.$d[I](H);return this.init(),this},y.set=function(T,k){return this.clone().$set(T,k)},y.get=function(T){return this[F.p(T)]()},y.add=function(T,k){var L,K=this;T=Number(T);var C=F.p(k),I=function(z){var M=A(K);return F.w(M.date(M.date()+Math.round(z*T)),K)};if(C===d)return this.set(d,this.$M+T);if(C===b)return this.set(b,this.$y+T);if(C===f)return I(1);if(C===c)return I(7);var H=(L={},L[s]=n,L[u]=l,L[i]=a,L)[C]||1,q=this.$d.getTime()+T*H;return F.w(q,this)},y.subtract=function(T,k){return this.add(-1*T,k)},y.format=function(T){var k=this,L=this.$locale();if(!this.isValid())return L.invalidDate||p;var K=T||"YYYY-MM-DDTHH:mm:ssZ",C=F.z(this),I=this.$H,H=this.$m,q=this.$M,z=L.weekdays,M=L.months,Y=function(P,j,X,Z){return P&&(P[j]||P(k,K))||X[j].slice(0,Z)},U=function(P){return F.s(I%12||12,P,"0")},D=L.meridiem||function(P,j,X){var Z=P<12?"AM":"PM";return X?Z.toLowerCase():Z},G={YY:String(this.$y).slice(-2),YYYY:this.$y,M:q+1,MM:F.s(q+1,2,"0"),MMM:Y(L.monthsShort,q,M,3),MMMM:Y(M,q),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:Y(L.weekdaysMin,this.$W,z,2),ddd:Y(L.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(I),HH:F.s(I,2,"0"),h:U(1),hh:U(2),a:D(I,H,!0),A:D(I,H,!1),m:String(H),mm:F.s(H,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:C};return K.replace(m,function(P,j){return j||G[P]||C.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(T,k,L){var K,C=F.p(k),I=A(T),H=(I.utcOffset()-this.utcOffset())*n,q=this-I,z=F.m(this,I);return z=(K={},K[b]=z/12,K[d]=z,K[w]=z/3,K[c]=(q-H)/6048e5,K[f]=(q-H)/864e5,K[u]=q/l,K[s]=q/n,K[i]=q/a,K)[C]||q,L?z:F.a(z)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return E[this.$L]},y.locale=function(T,k){if(!T)return this.$L;var L=this.clone(),K=V(T,k,!0);return K&&(L.$L=K),L},y.clone=function(){return F.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),_=W.prototype;return A.prototype=_,[["$ms",o],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",b],["$D",$]].forEach(function(v){_[v[1]]=function(y){return this.$g(y,v[0],v[1])}}),A.extend=function(v,y){return v.$i||(v(y,W,A),v.$i=!0),A},A.locale=V,A.isDayjs=O,A.unix=function(v){return A(1e3*v)},A.en=E[N],A.Ls=E,A.p={},A})})(wr);var Lo=wr.exports;const Ne=Re(Lo);var Sr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){var a={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,l=/\d\d/,o=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(p){return(p=+p)+(p>68?1900:2e3)},f=function(p){return function(S){this[p]=+S}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var m=S.match(/([+-]|\d\d)/g),x=60*m[1]+(+m[2]||0);return x===0?0:m[0]==="+"?-x:x}(p)}],d=function(p){var S=s[p];return S&&(S.indexOf?S:S.s.concat(S.f))},w=function(p,S){var m,x=s.meridiem;if(x){for(var R=1;R<=24;R+=1)if(p.indexOf(x(R,0,S))>-1){m=R>12;break}}else m=p===(S?"pm":"PM");return m},b={A:[i,function(p){this.afternoon=w(p,!1)}],a:[i,function(p){this.afternoon=w(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[l,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,f("seconds")],ss:[o,f("seconds")],m:[o,f("minutes")],mm:[o,f("minutes")],H:[o,f("hours")],h:[o,f("hours")],HH:[o,f("hours")],hh:[o,f("hours")],D:[o,f("day")],DD:[l,f("day")],Do:[i,function(p){var S=s.ordinal,m=p.match(/\d+/);if(this.day=m[0],S)for(var x=1;x<=31;x+=1)S(x).replace(/\[|\]/g,"")===p&&(this.day=x)}],M:[o,f("month")],MM:[l,f("month")],MMM:[i,function(p){var S=d("months"),m=(d("monthsShort")||S.map(function(x){return x.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[i,function(p){var S=d("months").indexOf(p)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function $(p){var S,m;S=p,m=s&&s.formats;for(var x=(p=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,F,W){var _=W&&W.toUpperCase();return F||m[W]||a[W]||m[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,T){return y||T.slice(1)})})).match(n),R=x.length,B=0;B<R;B+=1){var N=x[B],E=b[N],O=E&&E[0],V=E&&E[1];x[B]=V?{regex:O,parser:V}:N.replace(/^\[|\]$/g,"")}return function(A){for(var F={},W=0,_=0;W<R;W+=1){var v=x[W];if(typeof v=="string")_+=v.length;else{var y=v.regex,T=v.parser,k=A.slice(_),L=y.exec(k)[0];T.call(F,L),A=A.replace(L,"")}}return function(K){var C=K.afternoon;if(C!==void 0){var I=K.hours;C?I<12&&(K.hours+=12):I===12&&(K.hours=0),delete K.afternoon}}(F),F}}return function(p,S,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var x=S.prototype,R=x.parse;x.parse=function(B){var N=B.date,E=B.utc,O=B.args;this.$u=E;var V=O[1];if(typeof V=="string"){var A=O[2]===!0,F=O[3]===!0,W=A||F,_=O[2];F&&(_=O[2]),s=this.$locale(),!A&&_&&(s=m.Ls[_]),this.$d=function(k,L,K){try{if(["x","X"].indexOf(L)>-1)return new Date((L==="X"?1e3:1)*k);var C=$(L)(k),I=C.year,H=C.month,q=C.day,z=C.hours,M=C.minutes,Y=C.seconds,U=C.milliseconds,D=C.zone,G=new Date,P=q||(I||H?1:G.getDate()),j=I||G.getFullYear(),X=0;I&&!H||(X=H>0?H-1:G.getMonth());var Z=z||0,ee=M||0,ye=Y||0,se=U||0;return D?new Date(Date.UTC(j,X,P,Z,ee,ye,se+60*D.offset*1e3)):K?new Date(Date.UTC(j,X,P,Z,ee,ye,se)):new Date(j,X,P,Z,ee,ye,se)}catch{return new Date("")}}(N,V,E),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),W&&N!=this.format(V)&&(this.$d=new Date("")),s={}}else if(V instanceof Array)for(var v=V.length,y=1;y<=v;y+=1){O[1]=V[y-1];var T=m.apply(this,O);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}y===v&&(this.$d=new Date(""))}else R.call(this,B)}}})})(Sr);var Mo=Sr.exports;const jo=Re(Mo);var $r={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n,l){var o=n.prototype,i=o.format;l.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},o.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(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(w){switch(w){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),w==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),w==="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 w}});return i.bind(this)(d)}}})})($r);var _o=$r.exports;const Po=Re(_o);var vr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n,l){var o=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,w,b,$,p){var S=d.name?d:d.$locale(),m=i(S[w]),x=i(S[b]),R=m||x.map(function(N){return N.slice(0,$)});if(!p)return R;var B=S.weekStart;return R.map(function(N,E){return R[(E+(B||0))%7]})},u=function(){return l.Ls[l.locale()]},f=function(d,w){return d.formats[w]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,p,S){return p||S.slice(1)})}(d.formats[w.toUpperCase()])},c=function(){var d=this;return{months:function(w){return w?w.format("MMMM"):s(d,"months")},monthsShort:function(w){return w?w.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):s(d,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return f(d.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(w){return f(d,w)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(u(),"months")},l.monthsShort=function(){return s(u(),"monthsShort","months",3)},l.weekdays=function(d){return s(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(vr);var Ho=vr.exports;const zo=Re(Ho);var Tr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){var a="week",n="year";return function(l,o,i){var s=o.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(a);if(c.isBefore(d))return 1}var w=i(this).startOf(n).date(f).startOf(a).subtract(1,"millisecond"),b=this.diff(w,a,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Tr);var Wo=Tr.exports;const Ko=Re(Wo);var xr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n){n.prototype.weekYear=function(){var l=this.month(),o=this.week(),i=this.year();return o===1&&l===11?i+1:l===0&&o>=52?i-1:i}}})})(xr);var Yo=xr.exports;const Go=Re(Yo);var Cr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n,l){n.prototype.dayOfYear=function(o){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return o==null?i:this.add(o-i,"day")}}})})(Cr);var Uo=Cr.exports;const Xo=Re(Uo);var Er={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Er);var Zo=Er.exports;const Jo=Re(Zo);var Nr={exports:{}};(function(e,t){(function(a,n){e.exports=n()})(De,function(){return function(a,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Nr);var Qo=Nr.exports;const ei=Re(Qo);Ne.extend(zo),Ne.extend(Po),Ne.extend(jo),Ne.extend(Ko),Ne.extend(Go),Ne.extend(Xo),Ne.extend(Jo),Ne.extend(ei);const st={format(e,t){return Ne(e).format(t)},parser(e,t){return Ne(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,a){const l=new Date(e+"/"+t+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},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 a=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,n,l].join(t)},getDay(e,t){e=e||0;let a=t??new Date;const n=e*(1e3*60*60*24);return a=new Date(a.getTime()+n),this.date2Str(a)},compareDate(e,t){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(a>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,a==n},getMonthWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a));let o=l.getDay(),i=l.getDate(),s=6-o;return n!==0&&(o=o==0?7:o,s=7-o),Math.ceil((i+s)/7)},getYearWeek:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=new Date(Number(e),0,1),i=Math.round((l.valueOf()-o.valueOf())/864e5);let s=l.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,a,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(a)),o=l.getTime();let i=l.getDay();if(n===0){const u=o-i*864e5,f=o+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=o-(i-1)*s,f=o+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=st.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=st.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,a){const n=new Date(new Date(t).setDate(t.getDate()+a)),l=e.getTime(),o=n.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i},inScope4Month(e,t,a){const n=new Date(new Date(t).setMonth(t.getMonth()+a)),l=e.getTime(),o=n.getTime(),i=t.getTime();return o>i?l>=i&&l<=o:l>=o&&l<=i}},kr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Vr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function ti(e,t,a){return{props:{...ie,...pe,...kr,...Vr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[`${w}__input`]:!0})),$=y=>{d.value=y,s("update:modelValue",y),s("change",y)};let p=ne(n,"hintText"),S=r.ref(!1);const m=y=>{let k=y.target.value;c.value=!0,le(p.value)||(S.value=!0),s("focus",k,y)},x=y=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let k=y.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,y)},R=()=>{s("clear","")},B=y=>{s("calendar-change",y)},N=(y,T,k)=>{s("panel-change",y,T,k)},E=y=>{s("visible-change",y)},O=Se(r.computed(()=>n.longTermValue),"longTermText",ve.Near),V=Se(r.computed(()=>n.longTermValue),"longTermValue",ve.Near);let A=null;const F=r.ref(te(n.longTerm)),W=y=>{if(F.value=y,s("update:longTerm",y),y){let T="";Array.isArray(V.value)?T=V.value.map((k,L)=>k||(Array.isArray(d.value)?d.value[L]:n.valueFormat?st.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,s("update:modelValue",T)}else s("update:modelValue",A)},_=te(n.isLongTerm);if(_){const y=()=>{if(F.value===!0){let T="";Array.isArray(V.value)?T=V.value.map((k,L)=>k||(Array.isArray(d.value)?d.value[L]:n.valueFormat?st.format(new Date,n.valueFormat):new Date)):T=V.value,A=d.value,s("update:modelValue",T)}else Be(V.value,d.value)&&(F.value=!0)};y(),r.watch([()=>n.longTerm],([T])=>{F.value!==T&&y()})}const v=r.ref();return fe({focus:()=>{v?.value.focus()},blur:()=>{v?.value.blur()},handleOpen:()=>{v?.value.handleOpen()},handleClose:()=>{v?.value.handleClose()}}),()=>{const T={...l.attrs,ref:v,class:b.value,placeholder:f.placeholder.value,disabled:o.value||F.value,readonly:i.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onCalendarChange:B,onPanelChange:N,onVisibleChange:E},k={};l.slots["range-separator"]&&(k["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(k.default=l.slots.cell);const L=[],K=r.h(g.ElDatePicker,T,k);L.push(K);const C={default:()=>L};if(l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip),_){const z={label:O.value,disabled:i.value||o.value,modelValue:F.value,"onUpdate:modelValue":W},M=r.h(g.ElCheckbox,z),Y=r.h("div",{class:{[`${w}__append`]:!0}},[M]);C.append=()=>Y}const H={...me(n,kr,Vr),class:{[`${w}__wrapper`]:!0,"has-append":_},hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,H,C)}}}}const{componentName:ni,create:ri,scope:ai}=Q("date-item"),Or=ri(ti(ni,ai,de)),Ir={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function li(e,t,a){return{props:{...ie,...pe,...Ir},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0})),$=E=>{d.value=E,s("update:modelValue",E),s("change",E)};let p=ne(n,"hintText"),S=r.ref(!1);const m=E=>{let V=E.target.value;c.value=!0,le(p.value)||(S.value=!0),s("focus",V,E)},x=E=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,E)},R=()=>{s("clear","")},B=E=>{s("visible-change",E)},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const O={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x,onVisibleChange:B},V={},A=[],F=r.h(g.ElTimePicker,O,V);A.push(F);const W={default:()=>A};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const v={...me(n,Ir),hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,v,W)}}}}const{componentName:oi,create:ii,scope:si}=Q("time-item"),Dr=ii(li(oi,si,de)),Rr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ui(e,t,a){return{props:{...ie,...pe,...Rr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0})),$=N=>{d.value=N,s("update:modelValue",N),s("change",N)};let p=ne(n,"hintText"),S=r.ref(!1);const m=N=>{let O=N.target.value;c.value=!0,le(p.value)||(S.value=!0),s("focus",O,N)},x=N=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,N)},R=()=>{s("clear","")},B=r.ref();return fe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const E={...l.attrs,ref:B,class:b.value,placeholder:f.placeholder.value,disabled:o.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":$,onClear:R,onFocus:m,onBlur:x},O={},V=[],A=r.h(g.ElTimeSelect,E,O);V.push(A);const F={default:()=>V};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const _={...me(n,Rr),hintText:p.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(a,_,F)}}}}const{componentName:ci,create:fi,scope:di}=Q("time-select-item"),Ar=fi(ui(ci,di,de));function Br(e,t=0){let a=`${e}`,n=a.indexOf(".");if(n==-1)return a;let l=n;for(let o=a.length-1;o>=n;o--)if(a.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function qr(e,t,a=20){if(typeof t=="string"&&(t=ge(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Sn(`${e}`,`${t}`);return Br(n)}else{let n=Pt(`${e}`,$n(`${t}`),20);return Br(n)}}function hi(e,t=-1,a=!1,n=3,l=","){return gt(e,t,a,n,l)}function Fr(e,t,a,n,l=!0){if(e=="")return"";if(e=vn(e),t=ge(t),t==1)return e;if(n)e=qr(e,t),a&&(e=="0"&&l?e=`${e}.`.padEnd(ge(a)+2,"0"):e=Pt(e,1,ge(a)));else{let o=-1*t;e=qr(e,o)}return e}function Lr(e,t){let a={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),l=Ht(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";a.message=o.replace("{0}",t.min),a.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),l=Ht(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Mr={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 gi(e,t,a){return{props:{...ie,...pe,...Mr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(!1),f=ne(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([v,y,T])=>{if(le(v)){c.value="";return}const k=Fr(v,y,T,!1);c.value!==k&&(c.value=k)},{immediate:!0});const d=r.computed(()=>{let v="";return u.value&&(v=c.value),v}),{t:w}=xe.useFoxI18n(t),b=r.computed(()=>{let v=n.placeholder??"";return!u.value&&!le(c.value)?v=hi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):v=w(["placeholder",v]),v}),$=e,p=r.computed(()=>({[$]:!0,[`${$}__disabled`]:o.value,[`${$}__placeholder`]:c.value.length>0})),S=Se(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:S.value??"right"});const m=r.ref(""),x=r.computed(()=>{let v=m.value;return le(v)&&(v=n.errorTip??""),v}),R=r.ref(""),B=r.ref(!1),N=(v,y)=>{if(v=`${v}`,le(v)){c.value="",f.value="",y.forEach(T=>{s(T,"")}),te(n.showTip)&&B.value&&(B.value=!1);return}if(v.length>=2){let T=v;if(T.charAt(0)=="-"&&(T=T.substring(1)),T.length>=2&&T.charAt(0)=="0"&&T.charAt(1)!="."){r.triggerRef(c);return}}if(v!="-"){if(!On(v)){r.triggerRef(c);return}if(n.integerLength!=-1&&In(v)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Dn(v)>Number(n.decimalLength)){r.triggerRef(c);return}let T=Lr(v,n);if(T.maxValid===!1){m.value=T.message,r.triggerRef(c);return}}else if(n.min!=null&&ge(n.min)>=0){r.triggerRef(c);return}R.value=v,te(n.showTip)&&(B.value=v.length>0),c.value=v,f.value=Fr(v,n.rates,n.precision,!0),y.forEach(T=>{s(T,f.value)})},E=v=>{N(v,["update:modelValue","input"])},O=v=>{N(v,["update:modelValue","change"])},V=v=>{if(u.value=!0,te(n.showTip)){let y=c.value;le(y)&&(y=n.hintText),le(y)||(R.value=y,B.value=!0)}m.value="",s("focus",f.value,v)},A=v=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&B.value===!0&&(B.value=!1)},0),!le(c.value)){let y=Lr(c.value,n);if(y.minValid===!1||y.maxValid===!1){m.value=y.message;return}}s("update:modelValue",f.value,v),s("blur",f.value,v)},F=()=>{s("clear","")},W=r.computed(()=>nt(n.unit)>0),_=r.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const y={...l.attrs,ref:_,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:b.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onInput:E,onChange:O,onFocus:V,onBlur:A},T={};l.slots.prepend&&(T.prepend=l.slots.prepend),l.slots.append&&(T.append=l.slots.append),l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.suffix?T.suffix=l.slots.suffix:W.value&&(T.suffix=()=>[n.unit]);const k=[],L=r.h(g.ElInput,y,T);k.push(L);const K={default:()=>k};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const I={...me(n,Mr),errorTip:x.value,hintText:R.value,hintVisible:B.value,hintType:"number",prop:`${n.prop}_item`};return r.h(a,I,K)}}}}const{componentName:mi,create:pi,scope:yi}=Q("money-item"),jr=pi(gi(mi,yi,de)),_r={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 bi(e,t,a){return{props:{...ie,...pe,..._r},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0,[`${w}__append`]:E.value})),$=r.computed(()=>({[`${w}__unit`]:!0})),p=V=>{d.value=V,s("update:modelValue",V),s("input",V)},S=V=>{s("change",V)};let m=ne(n,"hintText"),x=r.ref(!1);const R=V=>{let F=V.target.value;c.value=!0,le(m.value)||(x.value=!0),s("focus",F,V)},B=V=>{setTimeout(()=>{x.value&&(x.value=!1),c.value=!1},0);let F=V.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,V)},N=()=>{s("clear","")},E=r.computed(()=>nt(n.unit)>0),O=r.ref();return fe({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const A={...l.attrs,ref:O,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:S,onInput:p,onFocus:R,onBlur:B},F={},W=[],_=r.h(g.ElInputNumber,A,F);W.push(_);const v={default:()=>W};l.slots.default&&(v.label=l.slots.default),l.slots.fixedTip&&(v.fixedTip=l.slots.fixedTip);const T={...me(n,_r),hintText:m.value,hintVisible:x.value,prop:`${n.prop}_item`};if(l.slots.append)v.append=l.slots.append;else if(E.value){const L={class:$.value},K=r.h("div",L,[n.unit]);v.append=()=>K}return r.h(a,T,v)}}}}const{componentName:wi,create:Si,scope:$i}=Q("input-number-item"),Pr=Si(bi(wi,$i,de));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Pe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function vi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ti=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n,l);const o=Ee(this.proxy,t);return o===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await o(a,n,l))}};function xi(){const e=r.getCurrentInstance();return new Ti(e.proxy)}function cn(e,t,a){const n=Ue(e,t),l=Ue(e,a);if(n!==l)return!1;const o=Pe(e,t),i=Pe(e,a);return o===i}function Hr(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let o=n;for(let i=0;Array.isArray(o)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Hr(e,s,a,n);l.push(u)}else{let u=!1;for(let f of o){if(a==="text")u=Ue(e,f)===s;else if(a==="item")u=cn(e,f,s);else{let c=Pe(e,f);c==null&&(c=Ue(e,f)),u=c===s}if(u){l.push(f),o=vi(e,f);break}}if(!u)break}}return l}function Ci(e){return{text:e,value:e}}const zr={modelValue:{type:[Array,String],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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"}};function Ei(e,t,a){return{props:{...ie,...pe,...zr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),w=(I,H,q,z=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===I)return;c.value=I;const U=r.toRaw(I);if(z){const D=C?.value.getCheckedNodes();if(D)if(n.multiple){const G=[];D.forEach(P=>{const X=(P.pathNodes??[]).map(Z=>Z.data);G.push(X)}),s("update:pathNodes",G)}else{const P=(D[0]?.pathNodes??[]).map(j=>j.data);s("update:pathNodes",P)}s("update:modelValue",U),s("change",U)}}const M=Hr(n,I,H,q);if(M===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,z&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let Y=!0;if(M.length!==d.value.length)Y=!1;else for(let U=0;U<M.length;U++){const D=M[U],G=d.value[U];if(Array.isArray(D)){if(!Array.isArray(G)||D.length!==G.length)Y=!1;else for(let P=0;P<D.length;P++)if(!cn(n,D[P],G[P])){Y=!1;break}}else cn(n,D,G)||(Y=!1);if(!Y)break}if(!Y){d.value=M;let U=[],D=[];M.forEach(P=>{if(Array.isArray(P)){let j=[],X=[];for(let Z of P)j.push(Pe(n,Z)),n.valueType==="text"?X.push(Ue(n,Z)):n.valueType==="item"?X.push(Z):X.push(Pe(n,Z));U.push(j),D.push(X)}else U.push(Pe(n,P)),n.valueType==="text"?D.push(Ue(n,P)):n.valueType==="item"?D.push(P):D.push(Pe(n,P))}),c.value=U;const G=r.toRaw(D);z&&(s("update:pathNodes",M),s("update:modelValue",G),s("change",G))}},b=r.ref([]),$=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,I=>te(I)),p=xi(),S=async(I,H)=>{if(I){const q=await p.load("cascader",I,H);if(q.length>0)if(typeof q[0]=="string"){let Y=q.map(U=>Ci(U));b.value=Y}else b.value=q}};r.watch([()=>n.source,()=>n.params],async([I,H])=>{S(I,H)},{immediate:!($.value||n.lazy)});let m=!1;const x=()=>{m||(m=!0,S(n.source,n.params))};r.watch([()=>b.value,()=>n.modelValue],([I,H])=>{w(H,n.valueType,I,!1)}),n.lazy&&w(n.modelValue,"value",[],!1);let R=null,B=r.ref(!1);typeof n.remoteMethod=="function"&&(R=async I=>{if(I!=null){B.value=!0;try{const H=await n.remoteMethod(I);b.value=H}catch(H){console.error(H)}B.value=!1}});const N=r.ref(!1),E=e,O=r.computed(()=>({[E]:!0})),V=r.computed(()=>{let I={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(I.multiple=!0),n.props&&Object.assign(I,n.props),n.lazy&&(I.lazy=!0,I.lazyLoad=async(H,q)=>{const z=await p.load("cascader",n.source,H,!0);q(z)}),I}),A=I=>{n.allowCreate?(s("update:modelValue",I),s("change",I),c.value=I):w(I,"value",b.value,!0)};let F=ne(n,"hintText"),W=r.ref(!1);const _=I=>{let q=I.target.value;N.value=!0,le(F.value)||(W.value=!0),s("focus",q,I)},v=I=>{setTimeout(()=>{W.value&&(W.value=!1),N.value=!1},0);let q=I.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),T.value||s("blur",q,I)},y=()=>{s("clear","")},T=r.ref(!1),k=I=>{T.value=I,s("visible-change",I),I||s("selected")},L=I=>{s("remove-tag",I)},K=I=>{s("expand-change",I)},C=r.ref();return fe({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},getCheckedNodes:()=>C?.value.getCheckedNodes()}),()=>{const H={...l.attrs,ref:C,class:O.value,props:V.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:o.value||i.value,options:b.value,modelValue:c.value,onClear:y,onChange:A,onFocus:_,onBlur:v,onVisibleChange:k,onRemoveTag:L,expandChange:K};typeof R=="function"&&(H["remote-method"]=R,H.loading=B.value);const q={};l.slots.option&&(q.default=l.slots.option),l.slots.empty&&(q.empty=l.slots.empty);const z=[],M=r.h(g.ElCascader,H,q);z.push(M);const Y={default:()=>z};l.slots.default&&(Y.label=l.slots.default),l.slots.fixedTip&&(Y.fixedTip=l.slots.fixedTip);const D={...me(n,zr),hintText:F.value,hintVisible:W.value,prop:`${n.prop??l.attrs.name}_item`};return $.value&&!n.lazy&&(D["appear-listen"]=!0,D.onAppear=x),r.h(a,D,Y)}}}}const{componentName:Ni,create:ki,scope:Vi}=Q("cascader-item"),Wr=ki(Ei(Ni,Vi,de)),Kr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Oi(e,t,a){return{props:{...ie,...pe,...Kr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=xe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ne(n,"modelValue"),w=e,b=r.computed(()=>({[w]:!0})),$=E=>{d.value=E,s("update:modelValue",E),s("input",E)},p=E=>{s("change",E)};let S=ne(n,"hintText"),m=r.ref(!1);const x=E=>{let V=E.target.value;c.value=!0,le(S.value)||(m.value=!0),s("focus",V,E)},R=E=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let V=E.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,E)},B=()=>{s("clear","")},N=r.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const O={...l.attrs,ref:N,class:b.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:i.value,modelValue:d.value,onClear:B,onChange:p,onInput:$,onFocus:x,onBlur:R},V={};l.slots.prepend&&(V.prepend=l.slots.prepend),l.slots.append&&(V.append=l.slots.append),l.slots.prefix&&(V.prefix=l.slots.prefix),l.slots.suffix&&(V.suffix=l.slots.suffix),l.slots.option&&(V.default=l.slots.option);const A=[],F=r.h(g.ElAutocomplete,O,V);A.push(F);const W={default:()=>A};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const v={...me(n,Kr),hintText:S.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(a,v,W)}}}}const{componentName:Ii,create:Di,scope:Ri}=Q("autocomplete-item"),Yr=Di(Oi(Ii,Ri,de));function Ai(e,t,a,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const i=[],s=t[0];if(Array.isArray(s))for(let u=0;u<t.length&&u<o.length;u++){let f=t[u],c=o[u];const d=f.find(w=>w[n]===c);if(!d)break;i.push(d[a])}else{let u=t;for(let f=0;u&&f<o.length;f++){let c=o[f],d=u.find(w=>w[n]===c);if(!d)break;i.push(d[a]),u=d[l]}}return i}let Bi=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function qi(){const e=r.getCurrentInstance();return new Bi(e.proxy)}const Gr={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 Fi(e,t){return{props:{...Gr},setup(a,{attrs:n,slots:l}){const o=qi(),i=r.ref([]);r.watch([()=>a.source,()=>a.params],async([f,c])=>{i.value=await o.load(a.sourceType,f,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Ai(a.modelValue,i.value,a.textKey,a.valueKey,a.childrenKey);return f.length==0?a.emptyText??"":f.length===1?a.optionType=="item"?`${a.modelValue}${a.separator}${f[0]}`:f[0]:f.join(a.separator)}),u=a.resolveTag?r.resolveComponent(a.tag):a.tag;return()=>{const f={...n};return l.default?l.default({text:s.value,value:a.modelValue}):a.resolveTag?a.emptyText!==void 0&&a.emptyText===s.value?r.h(a.emptyTag??"span",{...n,class:a.emptyClass},s.value):r.h(u,f,{default:()=>s.value}):r.h(u,f,s.value)}}}}const{componentName:fc,create:Li,scope:dc}=Q("mapping"),At=Li(Fi());function Mi(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],i=0,s=o.indexOf("["),u=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=o.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=o.substring(0,s);n=n[d][c]}else n=n[c];i++}s=o.indexOf("[",u),u=s==-1?-1:o.indexOf("]",s)}i===0&&(n=n[o])}return n}function ji(e,t){return{props:{...Gr},setup(a,{attrs:n,slots:l}){return()=>{const o={default:i=>{const s=Mi(i.row,i.column.property);return l.default?r.h(At,{...a,modelValue:s},{default:l.default}):r.h(At,{...a,modelValue:s})}};return r.h(g.ElTableColumn,{...n},o)}}}}const{componentName:hc,create:_i,scope:gc}=Q("table-mapping-column"),Ur=_i(ji()),Pi=Symbol.for("TableStateKey");function Xr(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],i=0,s=o.indexOf("["),u=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=o.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=o.substring(0,s);n=n[d][c]}else n=n[c];i++}s=o.indexOf("[",u),u=s==-1?-1:o.indexOf("]",s)}i===0&&(n=n[o])}return n}function Hi(e,t){return{props:{},setup(a,{attrs:n}){const l=r.inject(Pi,{});return()=>{const o=l.currentRow?l.currentRow.value:null,i={default:s=>{const u=Xr(s.row,s.column.property),f=o?Xr(o,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},w=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":c}};return r.h("label",b,[w])}};return r.h(g.ElTableColumn,{...n},i)}}}}const{componentName:mc,create:zi,scope:pc}=Q("table-radio-column"),Zr=zi(Hi()),Wi={},Ki={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"},Yi=[r.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 Gi(e,t){return r.openBlock(),r.createElementBlock("svg",Ki,Yi)}const Ui=Te(Wi,[["render",Gi]]),{componentName:bc,create:Xi,scope:wc}=Q("table-setting"),Zi={tableRef:{type:Object,required:!0},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:"不固定"}},Ji=Xi({components:{FoxPopover:g.ElPopover,FoxCheckbox:g.ElCheckbox,FoxCheckboxGroup:g.ElCheckboxGroup,FoxButton:g.ElButton,FoxIcon:g.ElIcon,DragIcon:Ui,Download:Ve.Download,RefreshLeft:Ve.RefreshLeft},props:{...Zi},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:a}){let n=[];const l=r.ref([]),o=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),i=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),s=r.computed(()=>l.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(o.value.length>0||i.value.length>0)&&s.value.length>0),f=r.computed(()=>o.value.length>0),c=r.computed(()=>i.value.length>0),d=C=>C.length>1,w=C=>{const I=[];l.value=C.map((q,z)=>(!(q.label===""||q.type)&&q.visible!==!1&&I.push(q.prop),{...q,sortIndex:z})),s.value.length+o.value.length+i.value.length===I.length?x.value=!0:I.length>0&&(R.value=!0),E.value=I},b=C=>C?C.type?C.type:C.label?C.prop:"":"",$=(C,I)=>{if(C.length!==I.length)return!1;const H=C.map(q=>b(q));for(let q of I){const z=b(q);if(H.indexOf(z)===-1)return!1}return!0},p=C=>{if(!C){const I=e.tableRef.getColumnSetting(),H=I.srcColumnPropertyList;n=H.map((q,z)=>({...q,sortIndex:z})),C=I.columnPropertyList,C&&C.length>0&&$(H,C)||(C=H)}w(C)},S=()=>{e.tableRef.setColumnSetting(l.value)},m=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),x=r.ref(!1),R=r.ref(!1),B=C=>{const I=[];l.value.forEach(q=>{C&&!(q.label===""||q.type)&&I.push(q.prop),q.visible=C}),x.value=!1,R.value=!1,s.value.length+o.value.length+i.value.length===I.length?x.value=!0:I.length>0&&(R.value=!0),E.value=I,S()},N=()=>{p(n),S()},E=r.ref([]),O=C=>{l.value.forEach(H=>{if(H.label===""||H.type)return;const q=C.indexOf(H.prop)!==-1;H.visible=q}),x.value=!1,R.value=!1;const I=s.value.length+o.value.length+i.value.length;C.length===I?x.value=!0:C.length>0&&(R.value=!0),S()},V=()=>{p()};r.onMounted(()=>{setTimeout(()=>{p()},50)});const A={currentRow:null,index:null,roleType:null},F=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,F(C)):null:null;return{attrs:a,leftFixedColumns:o,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:x,isIndeterminate:R,handleCheckAllChange:B,handleReset:N,checkedValue:E,handleCheckChange:O,onShow:V,onDragStart:C=>{const I=C.currentTarget;I&&I.dataset&&(A.roleType=I.dataset.roleType,A.index=I.dataset.index)},onDragEnd:C=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null,A.roleType=null},onDragOver:C=>{const I=C.currentTarget;C.relatedTarget;const H=F(I);if(!H)return;const q=H.dataset&&H.dataset.roleType;A.roleType===q&&(C.preventDefault(),A.currentRow&&A.currentRow!==H&&A.currentRow.classList.remove("is-dragover"),H.classList.add("is-dragover"),A.currentRow=H)},onDragLeave:C=>{C.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},onDrop:C=>{debugger;const I=C.currentTarget,H=F(I);if(!H)return;const q=H.dataset&&H.dataset.roleType;if(A.roleType!==q)return;C.preventDefault();const z=Number(A.index),M=Number(H.dataset.index);if(z!==M){if(z<M){const Y=l.value[z];l.value.splice(z,1),l.value.splice(M,0,Y)}else{const Y=l.value[z];l.value.splice(z,1),l.value.splice(M+1,0,Y)}w(l.value),S()}},toLeftFixed:C=>{const I=l.value[C];I.fixed="left",S()},toRightFixed:C=>{const I=l.value[C];I.fixed="right",S()},toUnFixed:C=>{const I=l.value[C];I.fixed=void 0,S()},checkboxLabelStyle:m}}}),Qi={class:"fox-table-setting"},es={class:"fox-table-setting__header"},ts={class:"fox-table-setting__body"},ns={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},rs={key:0,class:"fox-table-setting__body-title"},as=["data-index","draggable"],ls={class:"tools-item"},os={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},is={key:0,class:"fox-table-setting__body-title"},ss=["data-index","draggable"],us={class:"tools-item"},cs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},fs={key:0,class:"fox-table-setting__body-title"},ds=["data-index","draggable"],hs={class:"tools-item"};function gs(e,t,a,n,l,o){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),w=r.resolveComponent("Download"),b=r.resolveComponent("fox-checkbox"),$=r.resolveComponent("FoxCheckboxGroup"),p=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(p,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Qi,[r.createElementVNode("div",es,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=S=>e.isCheckAll=S),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",ts,[r.createVNode($,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=S=>e.checkedValue=S),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",ns,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",rs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",ls,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,as))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",os,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",is,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[7]||(t[7]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[8]||(t[8]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[9]||(t[9]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[10]||(t[10]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",us,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(S.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toRightFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ss))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",cs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",fs,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,S=>(r.openBlock(),r.createElementBlock("div",{key:S.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":S.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[12]||(t[12]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[13]||(t[13]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[14]||(t[14]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[15]||(t[15]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(b,{class:"checkbox-item",label:S.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(S.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",hs,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toUnFixed(S.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toLeftFixed(S.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(w)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ds))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fn=Te(Ji,[["render",gs]]);let ms=class{proxy;constructor(t){this.proxy=t}async load(t,a,n,l,o,i,s){if(Array.isArray(a)){let f=(n-1)*l,c=f+l;c>a.length&&(c=a.length);const d=a.slice(f,c);return{totalSize:a.length,page:d}}if(typeof a=="function")return await Reflect.apply(a,null,[n,l,o,i,s]);const u=Ee(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ae(o)&&r.isReactive(o)&&(o=r.toRaw(o)),await Reflect.apply(u,null,[a,n,l,o,i,s]))}};function ps(){const e=r.getCurrentInstance();return new ms(e.proxy)}class ys{proxy;constructor(t){this.proxy=t}async load(t){let a=null;const n=Ee(this.proxy,"tableSetting");return typeof n=="function"&&(a=await Reflect.apply(n,null,["load",t])),a}save(t,a){const n=Ee(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,a])}remove(t){const a=Ee(this.proxy,"tableSetting");typeof a=="function"&&Reflect.apply(a,null,["remove",t])}}function bs(){const e=r.getCurrentInstance();return new ys(e.proxy)}const ws=Symbol.for("TableStateKey");function Ss(e,t){let a=t.split("."),n=e;for(let l=0;l<a.length;l++){let o=a[l],i=0,s=o.indexOf("["),u=s==-1?-1:o.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=o.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=o.substring(0,s);n=n[d][c]}else n=n[c];i++}s=o.indexOf("[",u),u=s==-1?-1:o.indexOf("]",s)}i===0&&(n=n[o])}return n}function dn(e,t){return e.filter(n=>{for(let l in t){const o=t[l],i=Ss(n,l);if(o!==i)return!1}return!0})}const Jr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},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"}},Qr={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},hn={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:"不固定"}};function $s(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...Jr,...Qr,...hn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=xe.useFoxI18n(t),{emitEvent:i}=ue({componentName:e,validateHandler:{getValue(...j){return R.value}}},n.prop??l.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),f=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),w=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,j=>{w.value=j});const b=j=>{w.value=j,i("page-index-change",j)},$=r.ref(n.pageSize);r.watch(()=>n.pageSize,j=>{$.value=j});const p=j=>{$.value=j,i("page-size-change",j)},S=r.shallowRef({}),m=r.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),x=r.ref(0),R=r.ref(),B=ps();let N=!0;const E=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),O=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,j=>te(j)),V=async(j,X,Z,ee)=>{try{const ye=await B.load("table",j,X,Z,ee,N,o.value);x.value=ye.totalSize,R.value=ye.page}catch(ye){console.error("[FoxUI] Load Table Data Fail",ye),x.value=0,R.value=[]}N=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([w,$],([j,X],[Z,ee])=>{X!==ee&&(w.value=1,j=1),V(n.data,j,X,m.value)}),r.watch([()=>n.data,m],([j,X],[Z,ee])=>{E()&&(j!==Z&&(N=!0),!(!Array.isArray(j)&&Be(j,Z)&&Be(X,ee))&&V(j,w.value,$.value,X))},{deep:!0});const A=(j={},X=!1)=>new Promise(Z=>{S.value=r.toRaw(j??{}),r.triggerRef(S),X||(w.value=n.pageIndex??1),r.nextTick(async()=>{await V(n.data,w.value,$.value,m.value),Z()})}),F=()=>{x.value=0,R.value=[]};let W=!1;const _=()=>{W||(W=!0,A())};E()&&!O.value&&A();const v=r.ref(null);r.provide(ws,{currentRow:v});const y=(j,X)=>{v.value=j,i("current-change",j,X)},T=(j,X,Z)=>{i("row-click",j,X,Z),te(n.rowClickSelectable)===!0&&P?.value.toggleRowSelection(j)},k=[],L=(j,X)=>{if(i("expand-change",j,X),te(n.uniqueExpansion))if(Array.isArray(X)&&X.length==0){const Z=k.length;k.splice(0,Z)}else{k.forEach(ee=>{ee!==j&&P?.value.toggleRowExpansion(ee,!1)});const Z=k.length;k.splice(0,Z,j)}},K=l.attrs.id??n.prop??l.attrs.name,C=bs(),I=r.ref([]);let H=[];const q=()=>({srcColumnPropertyList:H.map(X=>({...X})),columnPropertyList:I.value}),z=j=>{I.value=[...j],Y()},M=async()=>{const j=await C.load(K);j&&(I.value=j)},Y=()=>{C.save(K,I.value)},U=()=>{C.remove(K)};M();const D=j=>j?j.type?j.type:j.label?j.prop:"":"",G=r.computed(()=>{if(typeof l.slots.default=="function"){const j=l.slots.default(),X=new Map;if(H=[],j.forEach(Z=>{const ee=Z;if(!ee.props)return;const ye=D(ee.props);X.set(ye,Z);const se={label:"",prop:""};Object.assign(se,ee.props),H.push(se)}),I.value.length===H.length){const Z=[];for(let ee of I.value){const ye=D(ee),se=X.get(ye);if(!se)return j;if(ee.visible===!1)continue;const He=r.cloneVNode(se);He.props.fixed=ee.fixed,Z.push(He)}return Z}return j}return[]}),P=r.ref();return fe({clearSelection:()=>P?.value.clearSelection(),getSelectionRows:()=>P?.value.getSelectionRows(),toggleRowSelection:(j,X)=>{P?.value.toggleRowSelection(j,X)},toggleRowSelectionByProp:(j,X)=>{if(!R.value)return;const Z=dn(R.value,j);Z.length!==0&&Z.forEach(ee=>{P?.value.toggleRowSelection(ee,X)})},toggleAllSelection:()=>{P?.value.toggleAllSelection()},toggleRowExpansion:(j,X)=>{P?.value.toggleRowExpansion(j,X)},toggleRowExpansionByProp:(j,X)=>{if(!R.value)return;const Z=dn(R.value,j);Z.length!==0&&Z.forEach(ee=>{P?.value.toggleRowExpansion(ee,X)})},setCurrentRow:j=>{P?.value.setCurrentRow(j)},setCurrentRowByProp:j=>{if(!R.value)return;const X=dn(R.value,j);X.length!==0&&P?.value.setCurrentRow(X[0])},getCurrentRow:()=>v.value,clearSort:()=>{P?.value.clearSort()},clearFilter:j=>{P?.value.clearFilter(j)},doLayout:()=>{P?.value.doLayout()},sort:(j,X)=>{P?.value.sort(j,X)},scrollTo:(j,X)=>{P?.value.scrollTo(j,X)},setScrollTop:j=>{P?.value.setScrollTop(j)},setScrollLeft:j=>{P?.value.setScrollLeft(j)},loadData:A,clearData:F,getData(){return R.value},getTotalSize(){return x.value},getPageIndex(){return w.value},getPageSize(){return $.value},getColumnSetting:q,setColumnSetting:z,removeColumnSetting:U}),()=>{const X={...l.attrs,onCurrentChange:y,onRowClick:T,onExpandChange:L,data:R.value,ref:P,class:u.value},Z={};l.slots.default&&(Z.default=()=>G.value),l.slots.append&&(Z.append=l.slots.append),l.slots.empty&&(Z.empty=l.slots.empty);const ee=[],ye=r.h(g.ElTable,X,Z);ee.push(ye);let se=null;if(typeof l.slots.pagination=="function")se=l.slots.pagination();else if(n.showPagination){const ft={class:d.value,total:x.value,pageSize:$.value,"onUpdate:pageSize":p,pageSizes:n.pageSizes,currentPage:w.value,"onUpdate:currentPage":b,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};se=r.h(g.ElPagination,ft)}if(n.showSetting){const ft=[];se&&ft.push(se);const tc=r.h(g.ElIcon,{class:f.value},{default:()=>r.h(Ve.Setting)}),nc=An(n,hn),rc=r.h(fn,{...nc,tableRef:{getColumnSetting:q,setColumnSetting:z,removeColumnSetting:U}},{default:()=>tc});ft.push(rc);const ac=r.h("div",{class:c.value},ft);ee.push(ac)}else se&&ee.push(se);const He={default:()=>ee},ct={...me(n,Jr,Qr,hn),prop:`${n.prop}_item`};return ct.contentClass=`${s}__wrap`,ct.errorMarkClass="is-table-error",O.value&&E()&&(ct["appear-listen"]=!0,ct.onAppear=_),r.h(a,ct,He)}}}}const{componentName:vs,create:Ts,scope:xs}=Q("table-item"),ea=Ts($s(vs,xs,de));function Xe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ut(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Cs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Es=class{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}};function Ns(){const e=r.getCurrentInstance();return new Es(e.proxy)}function ta(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Xe(e,t),l=Xe(e,a);if(n!==l)return!1;const o=ut(e,t),i=ut(e,a);return o===i}function ks(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let o of n){let i=!1;if(a==="text")i=Xe(e,o)===t;else if(a==="item")i=ta(e,o,t);else{let s=ut(e,o);s==null&&(s=Xe(e,o)),i=s===t}if(i){l=o;break}}return l}function Vs(e){return{text:e,value:e}}function Os(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const na={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"},lazyLoad:{type:[Boolean,String],default:!1}};function Is(e,t,a){return{inheritAttrs:!0,props:{...ie,...pe,...na},emits:["change","update:modelValue"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(null),f=r.ref(null),c=(O,V,A,F=!0)=>{const W=ks(n,O,V,A);if(W===null){if(f.value===null)return;f.value=null,u.value=null,F&&(s("update:modelValue",null),s("change",null));return}if(!ta(n,W,f.value)){u.value=O;const v=r.toRaw(W);f.value=v;let y=null;n.valueType==="text"?y=Xe(n,v):n.valueType==="item"?y=v:y=ut(n,v),F&&(s("update:modelValue",y),s("change",y))}},d=r.ref([]),w=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,O=>te(O)),b=Ns(),$=async(O,V)=>{if(O){const A=await b.load("radio",O,V);if(A.length>0)if(typeof A[0]=="string"){let _=A.map(v=>Vs(v));d.value=_}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([O,V])=>{$(O,V)},{immediate:!w.value});let p=!1;const S=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([O,V])=>{c(V,n.valueType,O,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=O=>{c(O,"value",d.value,!0)};let B=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(O,V)=>{const A=[];return O.forEach((F,W)=>{const _=ut(n,F),v=Xe(n,F);let y=Cs(n,F);o.value===!0&&(y=o.value),i.value===!0&&(y=i.value);const T=Os(n,F,W)??{},k=`${_}_${W}`,L={...T,key:k,label:_,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElRadioButton,L,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElRadio,L,{default:()=>V(F)})):A.push(r.h(g.ElRadio,L,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:R},A=[],F={};l.slots.options?F.default=l.slots.options:F.default=()=>E(d.value,l.slots.text);const W=r.h(g.ElRadioGroup,V,F);A.push(W);const _={default:()=>A};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const y={...me(n,na),hintText:B.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(y["appear-listen"]=!0,y.onAppear=S),r.h(a,y,_)}}}}const{componentName:Ds,create:Rs,scope:As}=Q("radio-item"),ra=Rs(Is(Ds,As,de));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Bs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class qs{proxy;constructor(t){this.proxy=t}async load(t,a,n){if(Array.isArray(a))return a;if(typeof a=="function")return await a(n);const l=Ee(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(Ae(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(a,n))}}function Fs(){const e=r.getCurrentInstance();return new qs(e.proxy)}function aa(e,t,a){if(t===a)return!0;if(t===null||a===null)return!1;const n=Ze(e,t),l=Ze(e,a);if(n!==l)return!1;const o=Je(e,t),i=Je(e,a);return o===i}function Ls(e,t,a,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(o=>{for(let i of n){let s=!1;if(a==="text")s=Ze(e,i)===o;else if(a==="item")s=aa(e,i,o);else{let u=Je(e,i);u==null&&(u=Ze(e,i)),s=u===o}if(s){l.push(i);break}}}),l}function Ms(e){return{text:e,value:e}}function js(e,t,a){return typeof e.itemOptions=="function"?e.itemOptions(t,a):e.itemOptions}const la={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"},lazyLoad:{type:[Boolean,String],default:!1}};function _s(e,t,a){return{inheritAttrs:!1,props:{...ie,...pe,...la},emits:["change","update:modelValue"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=r.ref([]),f=r.ref([]),c=(O,V,A,F=!0)=>{const W=Ls(n,O,V,A);if(W===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],F&&(s("update:modelValue",[]),s("change",[]));return}let _=!0;if(W.length!==f.value.length)_=!1;else for(let v=0;v<W.length;v++){const y=W[v],T=f.value[v];if(!aa(n,y,T)){_=!1;break}}if(!_){f.value=W;let v=[],y=[];W.forEach(k=>{v.push(Je(n,k)),n.valueType==="text"?y.push(Ze(n,k)):n.valueType==="item"?y.push(k):y.push(Je(n,k))}),u.value=v;const T=r.toRaw(y);F&&(s("update:modelValue",T),s("change",T))}},d=r.ref([]),w=Se(r.computed(()=>n.lazyLoad),"lazyLoad",ve.Near,O=>te(O)),b=Fs(),$=async(O,V)=>{if(O){const A=await b.load("checkbox",O,V);if(A.length>0)if(typeof A[0]=="string"){let _=A.map(v=>Ms(v));d.value=_}else d.value=A}};r.watch([()=>n.source,()=>n.params],async([O,V])=>{$(O,V)},{immediate:!w.value});let p=!1;const S=()=>{p||(p=!0,$(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([O,V])=>{c(V,n.valueType,O,!1)});const m=e,x=r.computed(()=>({[m]:!0,[`is-${n.direction}`]:!0})),R=O=>{c(O,"value",d.value,!0)};let B=ne(n,"hintText"),N=ne(n,"hintVisible");const E=(O,V)=>{const A=[];return O.forEach((F,W)=>{const _=Je(n,F),v=Ze(n,F);let y=Bs(n,F);o.value===!0&&(y=o.value),i.value===!0&&(y=i.value);const T=js(n,F,W)??{},k=`${_}_${W}`,L={...T,key:k,class:n.itemClass,label:_,disabled:y,size:n.size,border:te(n.border)};n.itemType==="button"?A.push(r.h(g.ElCheckboxButton,L,{default:()=>[v]})):typeof V=="function"?A.push(r.h(g.ElCheckbox,L,{default:()=>V(F)})):A.push(r.h(g.ElCheckbox,L,{default:()=>[v]}))}),A};return()=>{const V={...l.attrs,class:x.value,disabled:o.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ge(n.max),min:ge(n.min),onChange:R},A=[],F={};l.slots.options?F.default=l.slots.options:F.default=()=>E(d.value,l.slots.text);const W=r.h(g.ElCheckboxGroup,V,F);A.push(W);const _={default:()=>A};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const y={...me(n,la),hintText:B.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(y["appear-listen"]=!0,y.onAppear=S),r.h(a,y,_)}}}}const{componentName:Ps,create:Hs,scope:zs}=Q("checkbox-item"),oa=Hs(_s(Ps,zs,de)),ia={modelValue:{type:[Number,String],required:!1}};function Ws(e,t,a){return{props:{...ie,...pe,...ia},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=ne(n,"modelValue",p=>ge(p)),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{s("update:modelValue",p),s("change",p)};let w=ne(n,"hintText"),b=r.ref(!1);const $=r.ref();return fe({}),()=>{const S={...l.attrs,ref:$,class:c.value,readonly:i.value||o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElRate,S,m);x.push(R);const B={default:()=>x};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const E={...me(n,ia),hintText:w.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,B)}}}}const{componentName:Ks,create:Ys,scope:Gs}=Q("rate-item"),sa=Ys(Ws(Ks,Gs,de)),ua={modelValue:{type:[Boolean,String,Number],required:!1}};function Us(e,t,a){return{props:{...ie,...pe,...ua},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),{emitEvent:s}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),u=ne(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=p=>{s("update:modelValue",p),s("change",p)};let w=ne(n,"hintText"),b=ne(n,"hintVisible");const $=r.ref();return fe({}),()=>{const S={...l.attrs,ref:$,class:c.value,readonly:i.value,disabled:o.value,modelValue:u.value,onChange:d},m={},x=[],R=r.h(g.ElSwitch,S,m);x.push(R);const B={default:()=>x};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const E={...me(n,ua),hintText:w.value,hintVisible:b.value,prop:`${n.prop}_item`};return r.h(a,E,B)}}}}const{componentName:Xs,create:Zs,scope:Js}=Q("switch-item"),ca=Zs(Us(Xs,Js,de)),fa={modelValue:{type:[String,Number,Boolean],required:!1}};function Qs(e,t,a){return{props:{...ie,...pe,...fa},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=we(r.computed(()=>n.disabled)),i=be(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=ue({componentName:e,get validate(){return!o.value&&!i.value}},n.prop??l.attrs.name),f=ne(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),w=N=>{u("update:modelValue",N),u("change",N)};let b=ne(n,"hintText"),$=r.ref(!1);const p=N=>{let O=N.target.value;s.value=!0,le(b.value)||($.value=!0),u("focus",O,N)},S=N=>{setTimeout(()=>{$.value&&($.value=!1),s.value=!1},0);let O=N.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),x.value||u("blur",O,N)},m=()=>{u("clear","")},x=r.ref(!1),R=N=>{x.value=N,u("visible-change",N),N||u("selected")},B=r.ref();return fe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const E={...l.attrs,ref:B,class:d.value,disabled:o.value||i.value,modelValue:f.value,"onUpdate:modelValue":w,onClear:m,onFocus:p,onBlur:S,onVisibleChange:R},O={};l.slots.option&&(O.default=l.slots.option);const V=[],A=r.h(g.ElTreeSelect,E,O);V.push(A);const F={default:()=>V};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const _={...me(n,fa),hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(a,_,F)}}}}const{componentName:eu,create:tu,scope:nu}=Q("tree-select-item"),da=tu(Qs(eu,nu,de)),ru=Symbol.for("InnerPageScopeKey"),au=Symbol.for("PageWrapperKey");function lu(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(a,n){r.provide(ru,!0);const l={};r.provide(au,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:a.title,draggable:a.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":a.appendToBody,"close-on-click-modal":a.closeOnClickModal,"close-on-press-escape":a.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(g.ElDialog,f,c)}}}}const{componentName:Sc,create:ou,scope:$c}=Q("dialog-item"),ha=ou(lu());function iu(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(a,{slots:n}){const l=e,o=r.computed(()=>({[l]:!0})),i=r.computed(()=>a.icon?{[`${l}__icon`]:!0,[`${l}__icon-${a.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${a.type}`]:!0}),s=r.computed(()=>a.color?a.icon?{color:a.color}:{background:a.color}:null),u=r.computed(()=>{const c={[`${l}__text`]:!0,[`${l}__text-${a.type}`]:!0};return a.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>a.color?{color:a.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:i.value,style:s.value};c=r.h(a.icon??"div",p)}const d={class:u.value,style:f.value},w=n.default?n.default():[],b=r.h("div",d,w),$={class:o.value};return a.textPosition==="right"?r.h("div",$,[c,b]):r.h("div",$,[b,c])}}}}const{componentName:su,create:uu,scope:vc}=Q("indicator"),ga=uu(iu(su));function cu(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const fu={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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}};function du(e,t){return{props:{...fu},setup(a,n){const l=r.ref(!0),o=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":a.truncated};return typeof a.class=="string"&&a.class.length>0&&a.class.split(/\s+/).forEach(w=>{c[w]=!0}),a.type&&(c[`${e}__${a.type}`]=!0),a.size&&(c[`${e}__${a.size}`]=!0),c}),s=c=>{if(c&&te(a.showOverflowTooltip)){const d=c.clientWidth,w=cu(c);l.value=w<=d}};let u=null;r.onMounted(()=>{if(!te(a.showOverflowTooltip))return;const c=o.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let w=null;if(typeof a.highlightFilter=="string"&&a.highlightFilter.length>0){const b=a.highlightFilter;if(c.indexOf(b)!==-1){const p=c.replace(new RegExp(b,"g"),`<span>${b}</span>`);d.innerHTML=p,d.class["is-highlight"]=!0,w=r.h(a.tag,d)}}else if(typeof a.highlightFilter=="function"){const b=a.highlightFilter(c);b&&(d.innerHTML=b,d.class["is-highlight"]=!0,w=r.h(a.tag,d))}return w};return()=>{const c={},d={...n.attrs,class:{...i.value},ref:o};if(te(a.numberFormat)&&typeof n.slots.default=="function"){const p=n.slots.default();if(Array.isArray(p)&&p.length===1){const S=p[0].type.toString();if(S==="Symbol(Text)"||S==="Symbol(v-txt)"){const m=ge(a.digits),x=ge(a.decimalLength),R=te(a.autoPadding);let B=`${p[0].children}`,N=B.split("").reverse().join("");N=gt(N,x,R,m,a.separator),B=N.split("").reverse().join("");let E=null;a.highlightFilter!==void 0&&(E=f(B,d)),E||(d.innerHTML=B,E=r.h(a.tag,d)),c.default=()=>E}}}else{let p=null;if(a.highlightFilter!==void 0&&typeof n.slots.default=="function"){const S=n.slots.default();if(Array.isArray(S)&&S.length===1){const m=S[0].type.toString();if(m==="Symbol(Text)"||m==="Symbol(v-txt)"){const x=`${S[0].children}`;p=f(x,d),p||(d.innerHTML=x,p=r.h(a.tag,d))}}}p||(p=r.h(a.tag,d,{default:n.slots.default})),c.default=()=>p}const b={disabled:l.value};return c.content=n.slots.default,r.h(g.ElTooltip,b,c)}}}}const{componentName:hu,create:gu,scope:Tc}=Q("text"),ma=gu(du(hu)),mu={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:Ve.ArrowUp}};function pu(e,t,a){return{props:{...mu},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ne(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{l("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const p={class:u.value},S=r.h("span",p,[s.value]);d.push(S)}const w={class:f.value},b=a(n.icon,w);return b&&d.push(b),r.h("div",{class:o.value,onClick:c},d)}}}}const{componentName:yu,create:bu,scope:wu}=Q("more-button"),pa=bu(pu(yu,wu,(e,t)=>(e=e??Ve.ArrowUp,r.h(g.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:Su,create:$u,scope:Cc}=Q("tour"),vu=$u({components:{Close:Ve.Close,ElPopover:g.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 a=Su,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),o=r.computed(()=>`${a}`),i=r.computed(()=>{const{offset:$,maskWidth:p,maskHeight:S}=e,{width:m,height:x,left:R,top:B}=l.value,N=e.steps[n.active].offset??$,E=[R+m/2,B+x/2],O=Number(p||m),V=Number(S||x);return{width:`${O+ +N.left+N.right}px`,height:`${V+N.top+N.bottom}px`,top:`${E[1]-V/2-+N.top}px`,left:`${E[0]-O/2-+N.left}px`}}),s=$=>{$=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=$=>$.popoverWidth??e.width,f=$=>$.location??e.location,c=()=>{const $=document.querySelector(`${e.steps[n.active].target}`),p=ln($);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&d()},b=($,p=0)=>{$&&c(),e.steps,n.active=p,n.showTour=$,n.showPopup=$};return r.onMounted(()=>{b(e.modelValue,e.current)}),r.watch(()=>e.modelValue,$=>{b($)}),{...r.toRefs(n),classes:o,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:w}}}),Tu={key:0,class:"fox-tour__content"},xu={key:0,class:"fox-tour__content-top"},Cu={class:"fox-tour__content-inner"},Eu={class:"fox-tour__content-bottom"},Nu={class:"fox-tour__content-bottom-init"},ku={class:"fox-tour__content-bottom-operate"},Vu={key:1,class:"fox-tour__content fox-tour__content-tile"},Ou={class:"fox-tour__content-inner"};function Iu(e,t,a,n,l,o){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",Tu,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",xu,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",Cu,r.toDisplayString(f.content),1),r.createElementVNode("div",Eu,[r.createElementVNode("div",Nu,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",ku,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",Vu,[r.createElementVNode("div",Ou,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const ya=Te(vu,[["render",Iu]]);function gn(e){let t=e.offsetHeight;if(t<=0){const a=e.cloneNode(!0),n=e.offsetWidth;a.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),t=a.offsetHeight,document.body.removeChild(a)}return t}const ke=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Fe=e=>e==null,ba=10;function Du(e,t){return e>t&&e>ba?"horizontal":t>e&&t>ba?"vertical":""}function Ru(){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",a=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY,e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Du(e.offsetX,e.offsetY))},start:i=>{n(),e.startX=i.clientX,e.startY=i.clientY,e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:a,state:e}}function Au(e){e.stopPropagation()}function Bu(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Au(e)}class qu{startMove;updateMove;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,a){this.startMove=t,this.updateMove=a}open(t){this.el=t;const a=Ru(),n=(l,o,i,s,u)=>{this.updateMove({x:o,y:i})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener("mousemove",this.touchmove),document.addEventListener("mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),a.isHorizontal()&&Bu(l,!0),n(t,a.state.deltaX,a.state.deltaY))},this.touchend=()=>{n(t,a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener("mousemove",this.touchmove),this.touchend&&document.removeEventListener("mouseup",this.touchend),a.reset(),this.moving=!1},t.addEventListener("mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.addEventListener("mousedown",this.touchstart),this.el=null}}function Fu(e,t){return new qu(e,t)}const{componentName:Lu,create:Mu,scope:Ec}=Q("floating-window"),ju=Symbol.for("InnerPageScopeKey"),_u=Symbol.for("PageWrapperKey"),Pu={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},Hu=Mu({components:{FoxIcon:g.ElIcon},props:{...Pu},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const a=Lu,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,k=>{n.value=k});const l=r.ref(e.left),o=r.ref(e.top),i=r.ref(e.right),s=r.ref(e.bottom),u=r.computed(()=>{const k={};return Fe(l.value)||(k.left=ke(l.value)),Fe(o.value)||(k.top=ke(o.value)),Fe(i.value)||(k.right=ke(i.value)),Fe(s.value)||(k.bottom=ke(s.valu)),Fe(e.zIndex)||(k["z-index"]=ke(e.zIndex)),Fe(x.value)||(k.height=x.value),Fe(R.value)||(k.width=R.value),k}),f=r.computed(()=>e.closeIcon??Ve.Close);r.provide(ju,!0);const c={};r.provide(_u,c);const d=()=>{typeof c.beforeClose=="function"?c.beforeClose(()=>{n.value=!1}):n.value=!1},w=r.computed(()=>e.collapseIcon??Ve.ArrowUp),b=r.computed(()=>B.value?e.expandText??"":e.collapseText??""),$=r.computed(()=>({[`${a}__collapse-text`]:!0})),p=r.computed(()=>({[`${a}__collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),S=r.ref(),m=r.ref(),x=r.computed(()=>N.value||ke(e.height)||""),R=r.computed(()=>E.value||ke(e.width)||""),B=r.ref(!1),N=r.ref(""),E=r.ref(""),O=r.ref(!1);let V=-1;const A=(k,L=!0)=>{const K=S.value;if(K&&B.value!==k){if(V=V===-1?gn(K):V,O.value=!0,L)if(K.style["will-change"]="height",K.ontransitionend=function(){K.ontransitionend=null,this.style["will-change"]="auto",k||(N.value="",O.value=!1)},k){let C=0;e.collapseHeight?C=e.collapseHeight:m.value&&m.value.classList.contains(`${a}__header`)&&(C=gn(m.value)),N.value=`${V}px`,r.nextTick(()=>{N.value=`${C}px`,E.value=Fe(e.collapseWidth)?"":ke(e.collapseWidth)})}else N.value=`${V}px`,E.value="";else if(k){let C=0;e.collapseHeight?C=e.collapseHeight:m.value&&m.value.classList.contains(`${a}__header`)&&(C=gn(m.value)),N.value=`${C}px`}else O.value=!1,N.value=`${V}px`;B.value=k,t("update:collapse",k)}};r.watch(()=>e.collapse,k=>{A(k)});const F=()=>{W()},W=k=>{k=k??!B.value,A(k)},_={x:0,y:0},T=Fu(k=>{if(!S.value)return;const L=S.value;l.value=L.offsetLeft,o.value=L.offsetTop,_.x=l.value,_.y=o.value,i.value=null,s.value=null},k=>{if(!S.value)return;const L=S.value;l.value=_.x+k.x,o.value=_.y+k.y,i.value=null,s.value=null,L.style.left=ke(l.value),L.style.top=ke(o.value)});return r.onMounted(()=>{e.draggable&&m.value&&S.value&&T.open(m.value)}),r.onBeforeUnmount(()=>{e.draggable&&m.value&&T.close()}),{styles:u,visible:n,closeIcon:f,onClose:d,dialogRef:S,headerRef:m,onClickToggle:F,collapseIcon:w,currentCollapseText:b,collapseTextClasses:$,collapseIconClasses:p}}}),zu={ref:"headerRef",class:"fox-floating-window__header"},Wu={class:"fox-floating-window__title"},Ku={class:"fox-floating-window__tools"},Yu={class:"fox-floating-window__body"};function Gu(e,t,a,n,l,o){const i=r.resolveComponent("FoxIcon");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:"fox-floating-window",style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",zu,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Wu,r.toDisplayString(e.title),1),r.createElementVNode("div",Ku,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.currentCollapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Yu,[r.renderSlot(e.$slots,"default")])],4),[[r.vShow,e.visible]])]),_:3})],8,["disabled"])}const wa=Te(Hu,[["render",Gu]]);function Uu(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:n}){return Hn(a.name,a.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Nc,create:Xu,scope:kc}=Q("domain-provider"),Sa=Xu(Uu()),$a=10;function Zu(e,t){return e>t&&e>$a?"horizontal":t>e&&t>$a?"vertical":""}function Ju(){const e=r.ref(0),t=r.ref(0),a=r.ref(0),n=r.ref(0),l=r.ref(0),o=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",w=()=>c.value==="horizontal",b=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",a.value=0};return{move:S=>{const m=S.touches[0];i.value=m.clientX-e.value,s.value=m.clientY-t.value,l.value=m.clientX,o.value=m.clientY,u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-a.value,c.value||(c.value=Zu(u.value,f.value))},start:S=>{b(),e.value=S.touches[0].clientX,t.value=S.touches[0].clientY,a.value=Date.now()},reset:b,startX:e,startY:t,startTime:a,duration:n,moveX:l,moveY:o,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:w}}const Qu=[Jn,Qn,er,tr,ar,de,cr,fr,Dt,hr,br,Or,Dr,Ar,jr,Pr,Wr,Yr,Ur,Zr,fn,ea,ra,oa,sa,ca,da,ha,At,on,ga,ma,pa,ya,wa,Sa],ec=new cl(Qu,[hl],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>g.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>g.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>g.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>g.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>g.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>g.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>g.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>g.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>g.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>g.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>g.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>g.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>g.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>g.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>g.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>g.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>g.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>g.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>g.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>g.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>g.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>g.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>g.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>g.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>g.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>g.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>g.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>g.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>g.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>g.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>g.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>g.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>g.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>g.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>g.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>g.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>g.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>g.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>g.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>g.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>g.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>g.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>g.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>g.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>g.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>g.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>g.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>g.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>g.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>g.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>g.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>g.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>g.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>g.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>g.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>g.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>g.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>g.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>g.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>g.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>g.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>g.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>g.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>g.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>g.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>g.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>g.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>g.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>g.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>g.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>g.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>g.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>g.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>g.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>g.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>g.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>g.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>g.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>g.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>g.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>g.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>g.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>g.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>g.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>g.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>g.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>g.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>g.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>g.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>g.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>g.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>g.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>g.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>g.ElUpload}),h.AutocompleteItem=Yr,h.Broadcast=Gt,h.BroadcastKey=oe,h.CascaderItem=Wr,h.CheckboxItem=oa,h.Content=tr,h.DataItemsKey=ze,h.DateItem=Or,h.DateUtils=st,h.DialogItem=ha,h.Domain=St,h.DomainKey=$e,h.DomainProvider=Sa,h.FloatingWindow=wa,h.FooterBar=er,h.Group=ar,h.HeaderBar=Qn,h.HintText=Dt,h.Indicator=ga,h.InputItem=hr,h.InputNumberItem=Pr,h.Item=de,h.Mapping=At,h.MoneyItem=jr,h.MoreButton=pa,h.Page=Jn,h.Price=on,h.PriorityPolicy=ve,h.RadioItem=ra,h.RateItem=sa,h.RowItem=fr,h.SelectItem=br,h.SlotItem=cr,h.SwitchItem=ca,h.TableItem=ea,h.TableMappingColumn=Ur,h.TableRadioColumn=Zr,h.TableSetting=fn,h.Text=ma,h.TimeItem=Dr,h.TimeSelectItem=Ar,h.Tour=ya,h.TreeSelectItem=da,h.UniqueID=sr,h.ValidateSchema=jn,h.ValidateSchemaKey=Oe,h.cancelRaf=Ca,h.clearNonNumber=_a,h.clone=Kt,h.compareTo=Ht,h.createBroadcast=yt,h.createValidateSchema=wt,h.debounce=lt,h.debounceRef=el,h.decimalLength=Dn,h.default=ec,h.defineBroadcast=Wa,h.defineConfigDomain=Hn,h.defineDataItem=Wn,h.defineDomain=Zt,h.defineItem=ue,h.definePageState=Kn,h.deleteGlobalValidator=Ua,h.disabledProperty=we,h.divide=Pt,h.excludeProps=me,h.extend=Me,h.floatData=za,h.getGlobalValidateCheckEvents=Fn,h.getGlobalValidateResetEvents=Mn,h.getPageContentAreaHeight=vt,h.getPageContentAreaWidth=Tt,h.getPageFooterAreaHeight=it,h.getPageHeaderAreaHeight=ot,h.getRootDomain=We,h.hasSymbol=xn,h.includeProps=An,h.indexOf=Pa,h.installRules=zn,h.integerLength=In,h.isArray=Va,h.isArrayLike=Nn,h.isBrowser=tt,h.isDate=Da,h.isESModule=qa,h.isEmptyString=le,h.isEqual=Be,h.isFunction=zt,h.isHidden=En,h.isInnerPage=rl,h.isMap=Oa,h.isNumberString=On,h.isObject=Ae,h.isPlainObject=Wt,h.isPromise=Ba,h.isRegExp=Vn,h.isSet=Ia,h.isString=Ra,h.isSubPage=al,h.isSymbol=Aa,h.isWindow=Cn,h.lastIndexOf=Ha,h.makeArray=ja,h.merge=kn,h.multiply=Sn,h.negate=$n,h.nextTick=La,h.numberFormat=gt,h.objectToString=Tn,h.once=tl,h.property=Se,h.raf=ka,h.readonlyProperty=be,h.setGlobalValidateCheckEvents=Xa,h.setGlobalValidateHandler=Ya,h.setGlobalValidateMessages=Ja,h.setGlobalValidateResetEvents=Za,h.setGlobalValidator=Ga,h.throttle=Pn,h.toBoolean=te,h.toNumber=ge,h.toPadding=Ce,h.toPx=re,h.toPxDesc=ce,h.toTypeString=mt,h.toValue=ne,h.tryTimes=Ut,h.typeOf=pt,h.unNumberFormat=vn,h.updatePageState=Jt,h.useBroadcast=rt,h.useDomain=Ie,h.useExpose=fe,h.useInnerSize=nn,h.usePageState=$t,h.usePosition=lr,h.useRect=ln,h.useSize=tn,h.useTouch=Ju,h.valueLength=nt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});