@fox-js/foxui-pc 4.0.1-4 → 4.0.1-41

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(d,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("@fox-js/fox"),require("@fox-js/validator"),require("element-plus"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/fox","@fox-js/validator","element-plus","@fox-js/i18n"],i):(d=typeof globalThis<"u"?globalThis:d||self,i(d.FoxUI={},d.Vue,d.fox,d.Schema,d.elementPlus,d.i18n))})(this,function(d,i,L,$r,f,me){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Nov 17 2022 23:44:40 GMT+0800 (中国标准时间)
3
- */const xe=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})($r);/*!
4
- * @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
5
- */function Ge(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=te(e),t=te(t),[e,t]=ht(te(e),te(t)),r==1&&(n==1?e=dt(e):t=dt(t));let a=qt(e,t);return r?r==2?"-"+te(a):e.length<a.length?te(a.substring(1)):"-"+te(dt(a)):te(a)}function dt(e){let t="",r=e.length,n=e.split(".")[1],a=n?n.length:0;for(let u=0;u<r;u++)e[u]>="0"&&e[u]<="9"?t+=9-parseInt(e[u]):t+=e[u];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return qt(t,l)}function te(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 ht(e,t){let r=e.split("."),n=t.split("."),a=r[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(a-l)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function qt(e,t){[e,t]=ht(e,t);let r="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let l=parseInt(e[a])+parseInt(t[a])+n;r=l%10+r,n=Math.floor(l/10)}return n?n.toString()+r:r}var U=(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))(U||{});function qe(e,t=0,r=U.HALF_EVEN){if(r===U.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 a=e.split("."),l=a[0],u=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let c=l.substr(0,l.length-t);return e=c+"."+l.substr(l.length-t)+u,c=qe(e,0,r),(n?"-":"")+c+new Array(t+1).join("0")}}if(t==0)return l.length,Bt(a[1],l,n,r)?(n?"-":"")+gt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");u=a[1].substring(0,t);let s=a[1].substring(t);return s&&Bt(s,u,n,r)&&(u=gt(u),u.length>t)?(n?"-":"")+gt(l,parseInt(u[0]))+"."+u.substring(1):(n?"-":"")+l+"."+u}function Bt(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===U.DOWN||!r&&n===U.FLOOR||r&&n===U.CEILING)return!1;if(n===U.UP||r&&n===U.FLOOR||!r&&n===U.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case U.HALF_DOWN:return!1;case U.HALF_UP:return!0;case U.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let a=r;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function mt(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=Be(e),t=Be(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=Be(e.replace(".","")),t=Be(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let u=t.length,s=0,c=[],o=u-1,h="";for(let g=0;g<u;g++)c[g]=e.length-1;for(let g=0;g<2*e.length;g++){let w=0;for(let D=t.length-1;D>=o&&D>=0;D--)c[D]>-1&&c[D]<e.length&&(w+=parseInt(e[c[D]--])*parseInt(t[D]));w+=s,s=Math.floor(w/10),h=w%10+h,o--}return h=Be(Sr(h,l)),r==1&&(h="-"+h),h}function Sr(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 Be(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 yt(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=te(t.replace(".","")),a>=0){let o=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(o==-1)e=te(e+new Array(a+1).join("0"));else if(a>o)e=e.replace(".",""),e=te(e+new Array(a-o+1).join("0"));else if(a<o){e=e.replace(".","");let h=e.length-o+a;e=te(e.substring(0,h)+"."+e.substring(h))}else a==o&&(e=te(e.replace(".","")))}let l=0,u=t.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(0,u+1):e.substring(0,u);if(e=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(u+1):e.substring(u),c.indexOf(".")>-1){let o=c.length-c.indexOf(".")-1;c=c.replace(".",""),u>c.length&&(o+=u-c.length,c=c+new Array(u-c.length+1).join("0")),l=o,s="0."+new Array(o).join("0")}for(r=r+2;l<=r;){let o=0;for(;parseInt(c)>=parseInt(t);)c=Ge(c,"-"+t),o++;s+=o,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,c=c+"0")}return(n==1?"-":"")+te(qe(s,r-2))}function pt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),Ge(e,t)}function bt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Pt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),_t(e),_t(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=pt(e,mt(t,qe(yt(e,t),0,U.FLOOR)));return r+n}function _t(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Lt(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=ht(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]?r?-1:1:r?1:-1;return 0}class K{value;static RoundingModes=U;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,n]=t.split(/[eE]/);r=te(r);let a="";r[0]=="-"&&(a="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=a+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=a+te(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=K.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=K.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var u="",s=l;s>0;)s<r?(r=s,s=0):s-=r,u=t.substring(s,s+r)+(s<l-r&&s>=0?n:"")+u;return(a?"-":"")+u+t.substring(l)}getPrettyValue(t,r){return K.getPrettyValue(this.value,t,r)}static round(t,r=0,n=U.HALF_EVEN){if(t=K.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return qe(t,r,n)}round(t=0,r=U.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(qe(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,U.FLOOR)}floor(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,U.FLOOR)}static ceil(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,U.CEILING)}ceil(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,U.CEILING)}static add(t,r){return t=K.validate(t),r=K.validate(r),Ge(t,r)}add(t){return new K(Ge(this.value,t.getValue()))}static subtract(t,r){return t=K.validate(t),r=K.validate(r),pt(t,r)}subtract(t){return new K(pt(this.value,t.getValue()))}static multiply(t,r){return t=K.validate(t),r=K.validate(r),mt(t,r)}multiply(t){return new K(mt(this.value,t.getValue()))}static divide(t,r,n){return t=K.validate(t),r=K.validate(r),yt(t,r,n)}divide(t,r){return new K(yt(this.value,t.getValue(),r))}static modulus(t,r){return t=K.validate(t),r=K.validate(r),Pt(t,r)}modulus(t){return new K(Pt(this.value,t.getValue()))}static compareTo(t,r){return t=K.validate(t),r=K.validate(r),Lt(t,r)}compareTo(t){return Lt(this.value,t.getValue())}static negate(t){return t=K.validate(t),bt(t)}negate(){return new K(bt(this.value))}}function Ht(e,t){return K.multiply(`${e}`,`${t}`)}function wt(e,t,r=8){return K.divide(`${e}`,`${t}`,r)}function $t(e,t){return e=`${e}`,t=`${t}`,K.compareTo(e,t)}function Kt(e){return K.negate(e)}function St(e,t=-1,r=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let u=l.charAt(0);u=="-"?l=l.substring(1):u="";let s=l,c="",o=l.indexOf(".");o!=-1&&(s=l.substring(0,o),c=l.substring(o+1)),t!=-1&&(t<c.length?c=c.substring(0,t):r&&t>c.length&&(c=c.padEnd(t,"0")));let h;if(n>0){let g="",w=s.split("").reverse();for(let D=0;D<w.length;D++)g+=w[D]+((D+1)%n==0&&D+1!=w.length?a:"");c.length==0?h=`${u}${g.split("").reverse().join("")}`:h=`${u}${g.split("").reverse().join("")}.${c}`}else c.length==0?h=`${u}${s}`:h=`${u}${s}.${c}`;return h}function zt(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Pe=typeof window<"u",Er=Pe&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Gt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Z=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Wt(e){return Z(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Z(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Yt(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Ut(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Zt(e,t,r){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(r,"")}function vr(e,t=!0,r=!0){t?e=Zt(e,".",/\./g):e=e.replace(/\./g,""),r?e=Zt(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Or(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(L.isEqual(e,r))return!0}):t.indexOf(e)}function xr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(L.isEqual(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function We(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Cr(e,...t){const r={};return t.forEach(n=>{for(const a in n)r[a]=e[a]}),r}function le(e,...t){const r=[];t.forEach(a=>{Reflect.apply([].push,r,Reflect.ownKeys(a))});const n={};for(const a in e)r.includes(a)||(n[a]=e[a]);return n}const Vr=(e,t,r)=>{const n=Object.assign({},e),a=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?(typeof a[l]=="function"&&(n[l]=a[l](t)),typeof a[l]=="string"&&(n[l]=t[a[l]])):t[l]&&(n[l]=t[l])}),n):e},X=Symbol("BroadcastKey");class Et{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...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 a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Gt(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const u=this.callbacks.get(r);if(typeof u=="function"){const c=Reflect.apply(u,this.proxy,[...n]);c!=null&&l.push(c)}const s=this.proxy??{};if(typeof s[r]=="function"){const c=Reflect.apply(s[r],s,[...n]);c!=null&&l.push(c)}}return this.children.forEach(u=>{const s=Reflect.apply(u.emit,u,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}emitToChildren(t,r,...n){const a=[];return this.children.forEach(l=>{const u=Reflect.apply(l.emit,l,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}on(t,r){this.callbacks.set(t,r)}}function Ye(e,t,r,n){const a=new Et(t,e,r);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function Nr(e,t,r){const n=r;if(n[X])return n[X];const a=i.inject(X,null),l=new Et(a,r,e);if(t&&typeof t=="object")for(const u in t)l.on(u,t[u]);return n[X]=l,i.provide(X,l),i.onUnmounted(()=>{l.destroy(),n[X]=void 0}),l}function _e(e=null){return e||(e=i.getCurrentInstance()?.proxy??null),e?e[X]??i.inject(X,null):i.inject(X,null)}class Tr{error(t,r){const n=r,a=_e(r);a?a.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=_e(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=_e(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const a=n,l=_e(n),u=r.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=t.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!u&&s?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):u&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Xt=new Tr;function Ar(e){Xt=e}function Ir(e,t){xe.default.setValidator(e,t)}function Rr(e){xe.default.deleteValidator(e)}let Jt=["blur","clear"];function jr(e){Jt=e}function Qt(){return Jt}let en=["focus","change"];function Mr(e){en=e}function tn(){return en}function Dr(e){xe.default.messages(e)}function Le(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Ue(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 ye=Symbol("ValidateSchemaKey");class nn{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;!t||(this.scope=i.effectScope(),this.scope.run(()=>{i.watchEffect(()=>{const r=Ue(Le(this.attrRules,this.rules)),n=[];for(let l in t){let u=t[l];if(this.hasValidator(l,!0)){if(u===!1)continue;let c={type:l};u!==null&&typeof u=="object"&&Object.assign(c,u),n.push(c);continue}let s=this.getValidator(l);if(s!==null){let c={type:l,validator:s};n.push(c)}}this.attrRules=Ue(n);const a=Le(this.attrRules,this.rules);i.nextTick(()=>{this.decorate(a,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const a=Xt;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,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,r,n=!1){n?xe.default.setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?xe.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return xe.default.hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const r=Le(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ue(t):this.rules=Ue([t]);const n=Le(this.attrRules,this.rules);i.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=Le(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const a={[`${n}`]:r},l=this.getValue(),u={[`${n}`]:l},s=new xe.default(a),c=this.proxy??u;return s.validate(u,{context:c}).then(h=>{if(h.pass)this.success();else{let g="error";Array.isArray(h.errors)&&h.errors.length>0&&(g=h.errors[0].message??g,h.errors=[h.errors[0]],h.errors[0].ref=c),this.error(g)}return h}).catch(h=>{const g=h.message??`${h}`;return this.error(g),h})}}return Promise.resolve({pass:!0})}}function Ze(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const a=r.valueName;r.validateHandler={getValue(l){return l[a]}}}return new nn(t,r,e)}const rn=Symbol("EventEmitterKey");class Fr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===r);a!==-1&&n.splice(a,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...r])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function kr(e,t){let r=0;return function(...n){const a=Date.now();a-r>t&&(Reflect.apply(e,{},[...n]),r=a)}}function vt(e,t){let r,n=null;return function(...a){n=a,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const be=Symbol("DomainKey"),Ae=Symbol("DataItemsKey");class Ot{_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=i.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const a=t[n];r.length>0&&r.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];r.push(a)}n=n._parent}return r}}const qr=new Ot;function He(){return qr}function we(e=null){e||(e=i.getCurrentInstance());const t=e?.proxy;return t?t[be]??i.inject(be,null):i.inject(be,null)}const xt=Symbol("OriginalDateKey");function Ct(e,t,r=[],n){const a=i.getCurrentInstance(),l=a?.proxy;let u=i.inject(be,null);u===null&&(u=He());const s=e||t.prop||t.name,c=new Ot(s);c.parent=u;const o=A=>{if(!l[xt]){const x={};L.extend(!0,x,i.toRaw(t.modelValue)),l[xt]=x}c.set("modelValue",A)},h=()=>c.getForSelf("modelValue")??null,g=()=>l[xt]??null;i.isReactive(t)?i.watchEffect(()=>{c.merge(t,r)}):c.merge(t,r),l[be]=c,i.provide(be,c);let w=null,D=null;if(a!==null){const A=i.inject(X,null);w=Ye(l,A,s,n),c.broadcast=w,l[X]=w,i.provide(X,w),l.broadcast=(b,I,...M)=>Reflect.apply(w.emit,w,[b,I,...M]);const x=i.inject(ye,null);D=Ze(l,x,{componentName:""}),c.validateSchema=D,l[ye]=D,i.provide(ye,D),l[Ae]=new Map,l.validate=(b=!0)=>{const I=[];let M=null;if(b===!0)M={name:"*"};else if(Array.isArray(b)&&b.length>0){const S=b;M={name:p=>p?S.indexOf(p)!==-1:!1}}else if(b!=null&&typeof b=="object"){const S=b;if(Array.isArray(S.include)&&S.include.length>0){const p=S.include;M={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const p=S.exclude;M={name:$=>$?p.indexOf($)===-1:!1}}}if(M){const S=w?.emitToChildren(M,"validate",!1);S&&Reflect.apply([].push,I,S)}return I.length==1?I[0]:I.length>1?Promise.all(I).then(S=>{let p=[];return S.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(p=[...p,...$.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(b,I=!0)=>{if(I){const M=Reflect.ownKeys(b),S=[...M],p={name:$=>{const E=M.includes($);if(E){const R=S.findIndex(N=>$===N);R!==-1&&S.splice(R,1)}return E}};w?.emitToChildren(p,"setNameValidateRules",b,!1),S.length>0&&S.forEach($=>{let E=String($);const N=an(c,E,{componentName:"",fieldName:E,pureDataValidate:!0},w,D);l[Ae].set(E,N);const C=b[E];C&&N.validateSchema.setRule(C)})}},l.clearValidate=(b=!0)=>{let I=null;if(b===!0)I={name:"*"};else if(Array.isArray(b)&&b.length>0){const M=b;I={name:S=>S?M.indexOf(S)!==-1:!1}}else if(b!=null&&typeof b=="object"){const M=b;if(Array.isArray(M.include)&&M.include.length>0){const S=M.include;I={name:p=>p?S.indexOf(p)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const S=M.exclude;I={name:p=>p?S.indexOf(p)===-1:!1}}}I&&w?.emitToChildren(I,"clearValidate",!1)},l.resetFields=b=>{const I=h();if(!I)return;const M={};if(L.extend(!0,M,g()??{}),Array.isArray(b))b.forEach(S=>{I[S]=M[S]});else if(b&&Array.isArray(b.include))(b.include??[]).forEach(p=>{I[p]=M[p]});else if(b&&Array.isArray(b.exclude)){let S=b.exclude??[];Reflect.ownKeys(M).forEach(p=>{S.includes(p)||(I[p]=M[p])})}else Object.assign(I,M);l.clearValidate(b)},l.setModelValue=(b,I)=>{!I||I===s?o(b):w?.emitToChildren({name:I},"setModelValue",b)},l.getModelValue=()=>h()}return i.onUnmounted(()=>{c.destroy(),l[be]=void 0,l[Ae]&&(l[Ae].clear(),l[Ae]=void 0),w!==null&&(w.destroy(),l[X]=void 0),D!==null&&(D.destroy(),l[ye]=void 0)}),c}function re(e,t,r){const a=i.getCurrentInstance()?.proxy,l=t??"",u=i.inject(X,null),s=Ye(a,u,l,r);a[X]=s,i.provide(X,s),a.broadcast=(A,x,...b)=>Reflect.apply(s.emit,s,[A,x,...b]);const c=i.inject(ye,null);e.fieldName=e.fieldName??l;const o=Ze(a,c,e);a[ye]=o,i.provide(ye,o),a.validate=(A=null)=>{const x=[];if(!Array.isArray(A)||A.indexOf(l)!==-1){const I=o?.validate();x.push(I)}let b=null;if(A===!0)b={name:"*"};else if(Array.isArray(A)&&A.length>0){const I=A;b={name:M=>M?I.indexOf(M)!==-1:!1}}else if(A!=null&&typeof A=="object"){const I=A;if(Array.isArray(I.include)&&I.include.length>0){const M=I.include;b={name:S=>S?M.indexOf(S)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const M=I.exclude;b={name:S=>S?M.indexOf(S)===-1:!1}}}if(b){const I=s.emitToChildren(b,"validate",!1);Reflect.apply([].push,x,I)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(I=>{let M=[];return I.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(M=[...M,...S.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=A=>o?.setRule(A),a.setNameValidateRules=(A,x=!1)=>{const b=A[l];if(b&&o?.setRule(b),x){const I={name:M=>Reflect.ownKeys(A).includes(M)};s.emitToChildren(I,"setNameValidateRules",A,!1)}},a.clearValidate=(A=null)=>{(!Array.isArray(A)||A.indexOf(t??"")!==-1)&&o?.clear();let x=null;if(A===!0)x={name:"*"};else if(Array.isArray(A)&&A.length>0){const b=A;x={name:I=>I?b.indexOf(I)!==-1:!1}}else if(A!=null&&typeof A=="object"){const b=A;if(Array.isArray(b.include)&&b.include.length>0){const I=b.include;x={name:M=>M?I.indexOf(M)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const I=b.exclude;x={name:M=>M?I.indexOf(M)===-1:!1}}}x&&s.emitToChildren(x,"clearValidate",!1)};const h=new Fr(a);a[rn]=h;const g=vt((A="validate")=>{A==="reset"?o.clear():o.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Qt()).forEach(A=>{h.on(A,x=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:tn()).forEach(A=>{h.on(A,x=>{g("reset")})}),i.onUnmounted(()=>{s.destroy(),a[X]=void 0,o.destroy(),a[ye]=void 0,h.destroy(),a[rn]=void 0}),{broadcast:s,validateSchema:o,emitEvent:(A,...x)=>{Reflect.apply(h.emit,h,[A,...x])},onEvent:(A,x)=>{Reflect.apply(h.on,h,[x])},offEvent:(A,x)=>{Reflect.apply(h.off,h,[x])}}}function an(e,t,r,n,a){const l={},u=t??"";r.fieldName=u,r.validateHandler={getValue(o){const h=e.getForSelf("modelValue");return h?h[u]:null}};const s=Ze({},a,r);l.validate=(o=null)=>{const h=[];if(!Array.isArray(o)||o.indexOf(u)!==-1){const w=s?.validate();h.push(w)}let g=null;if(o===!0)g={name:"*"};else if(Array.isArray(o)&&o.length>0){const w=o;g={name:D=>D?w.indexOf(D)!==-1:!1}}else if(o!=null&&typeof o=="object"){const w=o;if(Array.isArray(w.include)&&w.include.length>0){const D=w.include;g={name:A=>A?D.indexOf(A)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const D=w.exclude;g={name:A=>A?D.indexOf(A)===-1:!1}}}if(g){const w=c.emitToChildren(g,"validate",!1);Reflect.apply([].push,h,w)}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let D=[];return w.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(D=[...D,...A.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=o=>s?.setRule(o),l.setNameValidateRules=o=>{const h=o[u];h&&s?.setRule(h)};const c=Ye(null,n,u,l);return{broadcast:c,validateSchema:s}}const J=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${Q(e,t)}px`:"";function Q(e,t=-1){if(typeof e=="number")return e<1?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let a=Number(e.substring(0,r)),l=1;if(Pe){const{fontSize:u}=window.getComputedStyle(document.documentElement,null),s=u.indexOf("px");s>0&&(l=Number(u.substring(0,s)))}return a*=l,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))*t;const n=Number(e);return isNaN(n)?0:n}const $e="PageStateKey";function he(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=Q(e.top)),e.left!==null&&e.left!==void 0&&(t.left=Q(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=Q(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=Q(e.right))),t}function Vt(e,t,r={},n=!0,a=-1,l=-1,u=0,s=0){e.headerHeight=Q(r.headerHeight??t.headerHeight),e.headerPadding=he(r.headerPadding??t.headerPadding),e.footerHeight=Q(r.footerHeight??t.footerHeight),e.footerPadding=he(r.footerPadding??t.footerPadding),e.contentPadding=he(r.contentPadding??t.contentPadding),n&&(e.height=Q(r.height??t.height,l)-Q(u,l)-Q(s,l),e.width=Q(r.width??t.width,a))}function ln(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=Q(a.top),n.safeAreaBottom=Q(a.bottom),n.safeAreaLeft=Q(a.left),n.safeAreaRight=Q(a.right));const l=e.get("pageLayout");if(!l)return null;const u=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,o=e.get("footerBarHeight")??0;Vt(n,l,t,!0,u,s,c,o);const h=i.reactive(n),g=e.getForParent($e);g&&(n.height=et(e,g),n.width=tt(e,g),i.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{h.height=et(e,g),h.width=tt(e,g)}));const w=!g;return i.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([D,A=-1,x=-1,b=0,I=0])=>{Vt(h,D,t,w,A,x,b,I)}),e.set($e,h),h}function Xe(e){return e.get($e)}function Je(e,t){return t=t??e.get($e),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function Qe(e,t){return t=t??e.get($e),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function et(e,t){if(t=t??e.get($e),t){const r=Je(e,t),n=Qe(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function tt(e,t){return t=t??e.get($e),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Br(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Pr(e){return!!e.getForParent($e)}var nt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(nt||{});function Nt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ie(e,t,r=1,n){const a=we();return a==null?e:r===0?i.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const c=l[s];if(Nt(c,n))return c}const u=e.value;return Nt(u,n)?u:null}):i.computed(()=>{const l=e.value;return Nt(l,n)?l:a?.get(t)})}function ue(e){return Ie(e,"readonly",0,function(r){return L.toBoolean(r)})}function ce(e){return Ie(e,"disabled",0,function(r){return L.toBoolean(r)})}function Y(e,t="modelValue",r){const n=i.toRef(e,t);let a=n.value;typeof r=="function"&&(a=r(n.value));const l=i.ref(a);return i.watch(n,u=>{if(typeof r=="function"){const s=r(u);s!==l.value&&(l.value=s)}else u!==l.value&&(l.value=u)}),l}const on=new Map,rt=new Map;let Tt=null;function _r(e){Tt=e}function sn(e,t,r){if(r){let n=rt.get(r);n||(n=new Map,rt.set(r,n)),n.set(e,t)}else on.set(e,t)}function Ce(e,t,r){!r&&Tt&&(r=Tt(e)??void 0);let n=null;if(r){let a=rt.get(r);a&&(n=a.get(t))}return n||(n=on.get(t)),n}function Lr(e,t){for(let r in e){const n=e[r];sn(r,n,t)}}function Hr(e){rt.delete(e)}function Kr(){return{top:0,left:0,bottom:0,right:0}}function zr(){if(Pe){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{width:e,height:t,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class Gr{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=He();if(this.initPageLayout(r,a),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=vt(()=>{const s={...r},c=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=o,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in r)n.indexOf(l)===-1&&a.set(l,r[l])}initPageLayout(t,r){const n=L.extend({},Kr(),t.safeAreaInset),a=L.extend({},zr(),t.pageLayout);r=r??He(),r.set("safeAreaInset",n),r.set("headerBarHeight",t.headerBarHeight??0),r.set("footerBarHeight",t.footerBarHeight??0),r.set("pageLayout",a),r.set("rootWidth",a.width),r.set("rootHeight",a.height)}setScopeGetter(t){_r(t)}setAPI(t,r,n){sn(t,r,n)}getAPI(t,r,n){return Ce(t,r,n)}batchSetAPI(t,r){Lr(t,r)}clearScopeAPI(t){Hr(t)}getRootDomain(){return He()}}const Wr=[f.ElAffix,f.ElAlert,f.ElAutocomplete,f.ElAutoResizer,f.ElAvatar,f.ElBacktop,f.ElBadge,f.ElBreadcrumb,f.ElBreadcrumbItem,f.ElButton,f.ElButtonGroup,f.ElCalendar,f.ElCard,f.ElCarousel,f.ElCarouselItem,f.ElCascader,f.ElCascaderPanel,f.ElCheckTag,f.ElCheckbox,f.ElCheckboxButton,f.ElCheckboxGroup,f.ElCol,f.ElCollapse,f.ElCollapseItem,f.ElCollapseTransition,f.ElColorPicker,f.ElConfigProvider,f.ElContainer,f.ElAside,f.ElFooter,f.ElHeader,f.ElMain,f.ElDatePicker,f.ElDescriptions,f.ElDescriptionsItem,f.ElDialog,f.ElDivider,f.ElDrawer,f.ElDropdown,f.ElDropdownItem,f.ElDropdownMenu,f.ElEmpty,f.ElForm,f.ElFormItem,f.ElIcon,f.ElImage,f.ElImageViewer,f.ElInput,f.ElInputNumber,f.ElLink,f.ElMenu,f.ElSubMenu,f.ElMenuItem,f.ElMenuItemGroup,f.ElPageHeader,f.ElPagination,f.ElPopconfirm,f.ElPopover,f.ElPopper,f.ElProgress,f.ElRadio,f.ElRadioButton,f.ElRadioGroup,f.ElRate,f.ElResult,f.ElRow,f.ElScrollbar,f.ElSelect,f.ElOption,f.ElOptionGroup,f.ElSelectV2,f.ElSkeleton,f.ElSkeletonItem,f.ElSlider,f.ElSpace,f.ElSteps,f.ElStep,f.ElSwitch,f.ElTable,f.ElTableColumn,f.ElTableV2,f.ElTabs,f.ElTabPane,f.ElTag,f.ElTimePicker,f.ElTimeSelect,f.ElTimeline,f.ElTimelineItem,f.ElTooltip,f.ElTransfer,f.ElTree,f.ElTreeSelect,f.ElTreeV2,f.ElUpload],Yr=[f.ElInfiniteScroll,f.ElLoading,f.ElMessage,f.ElMessageBox,f.ElNotification,f.ElPopoverDirective],Ur=e=>{Wr.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Yr.forEach(t=>{e.use(t)})};function W(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},i.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,i.defineComponent(r)}}}const ne={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}},oe={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},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:{}},hasBorder:{type:Boolean,default:!0}},un={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},cn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0}},fn=[];for(const e in cn)fn.push(e);function se(e,t=null){if(t||(t=i.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Zr=Symbol.for("InnerPageScopeKey"),Xr=(e,t)=>({inheritAttrs:!1,props:{...ne,...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(r,n){const a=Ct(r.name,r);if(a){const o=ln(a,r);se({getPageContentHeight:()=>et(a,o),getPageContentWidth:()=>tt(a,o),getPageHeaderHeight:()=>Je(a,o),getPageFooterHeight:()=>Qe(a,o)});const h=i.inject(Zr,!1);o&&h&&(o.contentHeight="100%")}const l=i.computed(()=>({[e]:!0})),u=i.computed(()=>({})),s=i.getCurrentInstance(),c=o=>{const h=s?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(o,!0)};return i.watch(()=>r.rules,(o,h)=>{if(!o&&!h)return;const g=i.toRaw(h),w=i.toRaw(o),D=w?Reflect.ownKeys(w):[];(g?Reflect.ownKeys(g):[]).forEach(x=>{D.includes(x)||(w[x]=[])}),c(w)},{deep:!0}),i.onMounted(()=>{if(r.rules){const o=i.toRaw(r.rules);c(o)}}),{classes:l,styles:u}}}),{componentName:Jr,create:Qr,scope:Ml}=W("page"),ea=Qr(Xr(Jr));function ta(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const Ve=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},dn=Ve(ea,[["render",ta]]),na=(e,t)=>({props:{padding:{type:[Object],required:!1}},emits:[],setup(r,n){const a=we(),l=a?Xe(a):null;l&&(l.headerMounted=!0);const u=i.computed(()=>({[e]:!0})),s=i.computed(()=>{const o={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&l){const h=he(r.padding??l.footerPadding);return Object.assign(o,h),o.height=l.headerHeight,o.safeAreaTop=l.safeAreaTop,o.safeAreaTop&&(o.top=o.safeAreaTop+(h.top??0),o.height=o.height+l.safeAreaTop),o.height,o.safeAreaTop,o}if(r.padding){const h=he(r.padding);Object.assign(o,h)}return o});i.onUnmounted(()=>{l&&(l.headerMounted=!1)});const c=i.computed(()=>{const o={};return s.value.height&&(o.height=`${s.value.height}px`),s.value.top&&(o.paddingTop=`${s.value.top}px`),s.value.left&&(o.paddingLeft=`${s.value.left}px`),s.value.right&&(o.paddingRight=`${s.value.right}px`),s.value.bottom&&(o.paddingBottom=`${s.value.bottom}px`),o});return{classes:u,styles:c}}}),{componentName:ra,create:aa,scope:Dl}=W("header-bar"),ia=aa(na(ra));function la(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const hn=Ve(ia,[["render",la]]);function oa(e,t){return{props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const a=we(),l=a?Xe(a):null;l&&(l.footerMounted=!0);const u=i.computed(()=>{const o=e;let h=e;return r.align==="left"?h=`${h}__left`:r.align==="right"?h=`${h}__right`:h=`${h}__center`,{[o]:!0,[h]:!0}}),s=i.computed(()=>{const o={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&l){const h=he(r.padding??l.footerPadding);return Object.assign(o,h),o.safeAreaBottom=l.safeAreaBottom,o.safeAreaBottom&&(o.height=l.footerHeight+l.safeAreaBottom,o.bottom=o.safeAreaBottom+(h.bottom??0)),o.height,o.safeAreaBottom,o}if(r.padding){const h=he(r.padding);Object.assign(o,h)}return o});i.onUnmounted(()=>{l&&(l.footerMounted=!1)});const c=i.computed(()=>{const o={};return s.value&&(o.height=`${s.value.height}px`),s.value&&(o.paddingTop=`${s.value.top}px`),s.value&&(o.paddingLeft=`${s.value.left}px`),s.value&&(o.paddingRight=`${s.value.right}px`),s.value&&(o.paddingBottom=`${s.value.bottom}px`),o});return{classes:u,styles:c}}}}const{componentName:sa,create:ua,scope:Fl}=W("footer-bar"),ca=ua(oa(sa));function fa(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const gn=Ve(ca,[["render",fa]]);function da(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=we(),a=i.computed(()=>({[e]:!0})),l=i.computed(()=>{const u={};if(n){const s=Xe(n);if(s){if(r.padding){const g=he(r.padding);Object.assign(s.contentPadding,g)}const c=Je(n,s),o=Qe(n,s);let h="";if(s.contentHeight?h=`${s.contentHeight}`:h=`${s.height}px`,s.contentPadding,u.height=h,s.contentPadding.top||c>0){const g=(s&&s.contentPadding&&s.contentPadding.top)??0;u.paddingTop=`${c+g}px`}if(s.contentPadding.bottom||o>0){const g=(s&&s.contentPadding&&s.contentPadding.bottom)??0;u.paddingBottom=`${o+g}px`}return s.contentPadding.left&&(u.paddingLeft=`${s.contentPadding.left}px`),s.contentPadding.right&&(u.paddingRight=`${s.contentPadding.right}px`),u}}if(r.padding){const s=he(r.padding);s.left&&(u.paddingLeft=`${s.left}px`),s.top&&(u.paddingTop=`${s.top}px`),s.right&&(u.paddingRight=`${s.right}px`),s.bottom&&(u.paddingBottom=`${s.bottom}px`)}return u});return{classes:a,styles:l}}}}const{componentName:ha,create:ga,scope:kl}=W("content"),ma=ga(da(ha));function ya(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.renderSlot(e.$slots,"default")],6)}const mn=Ve(ma,[["render",ya]]),at="GroupStateKey",yn=Symbol.for("GroupScopeKey");function it(){return i.inject(yn,!1)}function lt(e=!0){i.provide(yn,e)}function pa(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,column:-1,gutter:-1};Object.assign(n,t);const a=i.shallowRef(n),l=i.markRaw({layout:a,passport:0});return e.set(at,l),l}function pn(e,t,r=-1,n=-1,a=!1){const l=e.get(at);if(!l)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0);const s=u.minItemWidth??-1,c=()=>{const o=t===""||t===-1,h=Q(t);let g=L.toNumber(r);const w=Q(n);if(!o){let x=(h-(g-1)*w)/g;for(;s!==-1&&g>1&&x<s;)g--,x=(h-(g-1)*w)/g}let D=!1;const A=l.layout;A.value.width=t,A.value.column!==g&&(A.value.column=g,D=!0),A.value.gutter!==w&&(A.value.gutter=w,D=!0),D&&i.triggerRef(A)};if(a)c();else{const o=++l.passport;setTimeout(()=>{o===l.passport&&c()},50)}}function ot(e,t=!1){let r;return t?r=e.getForParent(at):r=e.get(at),r.layout}function Se(e,t=1){return t==="stretch"?-1:(t=L.toNumber(t),t===-1?100:100*t/e)}function ba(e){return e===window}const st=e=>{const t=i.unref(e);if(ba(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Ke=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,wa=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},$a=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=L.toNumber(e.props.offset);return t<0?0:t};function Sa(e,t){return{props:{...ne,...un,...cn},setup(r,n){const a=Ct(r.name,r,fn),l=pa(a,{type:r.type}),u=it();lt(!0);const s=i.getCurrentInstance(),c=p=>{const $=s?.proxy;$&&typeof $.setNameValidateRules=="function"&&$.setNameValidateRules(p,!0)};i.watch(()=>r.rules,(p,$)=>{if(!p&&!$)return;const E=i.toRaw($),R=i.toRaw(p),N=R?Reflect.ownKeys(R):[];(E?Reflect.ownKeys(E):[]).forEach(m=>{N.includes(m)||(R[m]=[])}),c(R)},{deep:!0}),i.onMounted(()=>{if(r.rules){const p=i.toRaw(r.rules);c(p)}});const o=e,h=i.computed(()=>{const p={};if(u&&a){const $=ot(a,!0);if($.value.type!=="flex")return{};if(r.width){const N=J(r.width);p.width=N}else{const N=Se($.value.column,r.span);N>0&&(p.width=`${N}%`)}if(r.height){const N=J(r.height);p.height=N}const E=Se($.value.column,r.offset);E>0&&(p["margin-left"]=`${E}%`);const R=$.value.gutter/2;R>0&&(p["padding-left"]=`${R}px`,p["padding-right"]=`${R}px`)}else{if(r.width){const $=J(r.width);p.width=$}if(r.height){const $=J(r.height);p.height=$}}return p}),g=i.computed(()=>r.type==="flex"?{[`${Ke("",r.type)}`]:!0,[`${Ke("justify",r.justify)}`]:!0,[`${Ke("align",r.align)}`]:!0,[`${Ke("flex",r.flexWrap)}`]:!0,[`${o}__gutter`]:!0}:{[`${Ke("",r.type)}`]:!0,[`${o}__gutter`]:!0}),w=i.toRef(r,"title"),D=i.toRef(r,"gutter"),A=i.toRef(r,"column"),x=i.computed(()=>u?!0:r.isWrap),b=i.ref([]),I=p=>{b.value.push(p)},M=i.ref(-1);if(pn(a,M.value,A.value,D.value,!0),r.autoLayout){i.watch([M,A,D],([$,E,R])=>{pn(a,$,E,R,!1)});let p=null;i.onMounted(()=>{if(Pe&&b.value&&b.value.length>0){const $=b.value[0];M.value=st($).width,window.ResizeObserver&&(p=new window.ResizeObserver(()=>{const E=st($).width;E>0&&E!==M.value&&(M.value=E)}),p.observe($))}}),i.onUnmounted(()=>{p?.disconnect()})}const S=(p,$,E,R)=>{const N={...g.value};return $===0&&(N[`${o}__first`]=!0),E>=R-1&&(N[`${o}__last`]=!0),i.h("div",{ref:I,key:`${$}`,class:N},p)};return()=>{const p=[];let $=0;if(n.slots.title){const C={key:`${$++}`,class:{[`${o}__title`]:!0,[`${o}__first`]:!0}},m=i.h("div",C,[n.slots.title()]);p.push(m)}else if(w.value){const C={key:`${$++}`,class:{[`${o}__title`]:!0,[`${o}__first`]:!0}},m=[];if(r.showMark){const V=i.h("div",{class:{[`${o}__title-mark`]:!0}});m.push(V)}const k=i.h("div",{class:{[`${o}__title-text`]:!0}},[w.value]);m.push(k);const _=i.h("div",C,m);p.push(_)}const E=n.slots.default?n.slots.default():[];let R=[],N=0;if(r.type==="flex"){for(let C=0;C<E.length;C++){const m=E[C],k=wa(m),_=$a(m);if(k==="stretch"){if(N<l.layout.value.column){R.push(m);const y=S([...R],$++,C,E.length);p.push(y)}else{const y=S([...R],$++,C-1,E.length);p.push(y);const v=S([m],$++,C,E.length);p.push(v)}N=0,R=[];continue}let V=L.toNumber(k);if(V===-1){if(R.length>0){const v=S([...R],$++,C-1,E.length);p.push(v)}const y=S([m],$++,C,E.length);p.push(y),N=0,R=[];continue}V>l.layout.value.column?V=l.layout.value.column:V<=0&&(V=1);const j=N+V+_;if(j>l.layout.value.column){const y=S([...R],$++,C-1,E.length);p.push(y),N=V+_,R=[m]}else R.push(m),N=j}if(R.length>0){const C=S([...R],$++,E.length,E.length);p.push(C)}}else for(let C=0;C<E.length;C++){const m=E[C],k=S([m],$++,C,E.length);p.push(k)}return x.value?i.h("div",{class:{[`${o}`]:!0},style:h.value},[p]):p}}}}const{componentName:Ea,create:va,scope:ql}=W("group"),bn=va(Sa(Ea)),wn={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,required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Oa,create:xa}=W("price"),Ca=xa({props:{...wn},setup(e){const t=i.computed(()=>({[Oa]:!0})),r=i.computed(()=>e.needSymbol?e.symbol:""),n=i.computed(()=>We(e.price)==0?"":St(e.price,e.decimalLength,!0,e.digits,e.separator)),a=i.computed(()=>{let u=n.value;if(u.length==0)return"";let s=u.indexOf(".");return u.substring(0,s)}),l=i.computed(()=>{let u=n.value;if(u.length==0)return"";let s=u.indexOf(".");return u.substring(s+1)});return{classes:t,showSymbol:r,intText:a,decimalText:l}}}),Va=["innerHTML"],Na=["innerHTML"];function Ta(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("view",{class:i.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(i.openBlock(),i.createElementBlock("view",{key:0,class:i.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Va)):i.createCommentVNode("",!0),i.createElementVNode("view",{class:i.normalizeClass(`fox-price--${e.size}`)},i.toDisplayString(e.intText),3),e.decimalText.length!=0?(i.openBlock(),i.createElementBlock("view",{key:1,class:i.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):i.createCommentVNode("",!0),i.createElementVNode("view",{class:i.normalizeClass(`fox-price--decimal-${e.size}`)},i.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(i.openBlock(),i.createElementBlock("view",{key:2,class:i.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Na)):i.createCommentVNode("",!0)],2)}const ut=Ve(Ca,[["render",Ta]]),{componentName:At,create:Aa}=W("hint-text"),Ia=Aa({components:{[ut.name]:ut},props:{...wn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=i.computed(()=>({[At]:!0})),l=i.computed(()=>({left:J(e.startPoint.x),top:J(e.startPoint.y-e.height-10-4),height:J(e.height),width:J(e.width)})),u=i.computed(()=>({[`${At}__content`]:!0})),s=i.computed(()=>({})),c=i.computed(()=>({[`${At}__arrow`]:!0})),o=i.computed(()=>({top:J(e.height)}));return{classes:a,styles:l,textClasses:u,textStyles:s,arrowClasses:c,arrowStyles:o}}}),Ra={key:1,class:"text"};function ja(e,t,r,n,a,l){const u=i.resolveComponent("fox-price");return i.openBlock(),i.createBlock(i.Transition,{name:"hint-text-fade"},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.createElementVNode("div",{class:i.normalizeClass(e.textClasses),style:i.normalizeStyle(e.textStyles)},[e.type=="number"?(i.openBlock(),i.createBlock(u,{key:0,price:e.message,position:"before"},null,8,["price"])):(i.openBlock(),i.createElementBlock("span",Ra,i.toDisplayString(e.message),1))],6),i.createElementVNode("div",{class:i.normalizeClass(e.arrowClasses),style:i.normalizeStyle(e.arrowStyles)},null,6)],6),[[i.vShow,e.visible]])]),_:1})}const ct=Ve(Ia,[["render",ja]]);class $n{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}}function Ma(e){return e===window}const Sn=e=>{const t=i.unref(e);if(!t)return{x:0,y:0};if(Ma(t))return{x:0,y:0};let r=0,n=0,a=t;for(;a!==null;)n+=a.scrollTop,r+=a.scrollLeft,a=a.parentElement;const l=t.getBoundingClientRect(),u=l.x+r,s=l.y+n;return{x:u,y:s}},It={},Da=new $n,Re=new Map,Rt=e=>{if(e){const t=document.getElementById(e);Re.delete(e),t&&document.body.removeChild(t)}else{for(const t of Re.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Re.clear()}},Fa=e=>{const t=document.getElementById(e.id);if(t){const r=Re.get(e.id);r?e={...It,...r,...e}:e={...It,...e};const n=i.createVNode(ct,e);return i.render(n,t),e.id}},ka=e=>{e.unmount=Rt;let t;if(e.id){if(t=e.id,Re.has(t))return Fa(e)}else t=`hinttext_${Da.get()}`;e={...It,...e},e.id=t,Re.set(t,e);const r=document.createElement("div");r.id=e.id;const n=i.createVNode(ct,e);return i.render(n,r),document.body.appendChild(r),t},qa=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&Rt(),qa(t);const a=Sn(e),l={x:a.x,y:a.y},s=st(e).width;return ka({...r,message:t,startPoint:l,width:s})},hide(e){Rt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:En,create:Ba}=W("item"),Pa=Ba({inheritAttrs:!0,props:{...ne,...oe},setup(e,t){re({componentName:En,validate:!1},e.prop??e.name);const r=we(),n=it();lt(!1);const a=En,l=i.computed(()=>({[a]:!0,[`${a}__gutter`]:!0,[`${a}__stretch`]:e.span==="stretch",[`${a}__input--border`]:e.hasBorder,"is-error":!!N.value,"is-warn":!!E.value,"is-info":!!p.value})),u=i.computed(()=>{const T={};if(n&&r){const F=ot(r,!1);if(F.value.type!=="flex")return e.width&&(T.width=J(e.width)),T;if(e.width)T.width=J(e.width);else{const P=Se(F.value.column,e.span);P>0&&(T.width=`${P}%`)}const q=Se(F.value.column,e.offset);q>0&&(T["margin-left"]=`${q}%`);const B=F.value.gutter/2;B>0&&(T["padding-left"]=`${B}px`,T["padding-right"]=`${B}px`)}else e.width&&(T.width=J(e.width));return T}),s=i.ref(null),c=i.computed({get:()=>s.value??L.toBoolean(e.isRequired),set:T=>{s.value=T}}),o=i.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),h=Ie(i.toRef(e,"labelPosition"),"labelPosition",nt.Near),g=i.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),w=i.computed(()=>({[`${a}__main`]:!0,[`${a}__main--${g.value}`]:!0})),D=i.computed(()=>({label:!0,[`label--${g.value}`]:!0})),A=Ie(i.toRef(e,"labelWidth"),"labelWidth",nt.Near),x=i.computed(()=>A&&A.value?{width:J(A.value)}:{}),b=i.computed(()=>({["label--string"]:!0,["label--required"]:c.value})),I=i.computed(()=>({content:!0,[e.contentClass]:!0})),M=i.computed(()=>({...e.contentStyle})),S=i.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});se({setRequired(T){c.value=T},setErrorTip(T){S.errorTip=T},setErrorIcon(T){S.errorIcon=T},setWarnTip(T){S.warnTip=T},setWarnIcon(T){S.warnIcon=T},setInfoTip(T){S.infoTip=T},setInfoIcon(T){S.infoIcon=T}});const p=i.computed(()=>e.infoTip||S.infoTip),$=i.computed(()=>e.infoIcon||S.infoIcon),E=i.computed(()=>e.warnTip||S.warnTip),R=i.computed(()=>e.warnIcon||S.warnIcon),N=i.computed(()=>e.errorTip||S.errorTip),C=i.computed(()=>e.errorIcon||S.errorIcon),m=i.computed(()=>N.value?"error":E.value?"warn":p.value?"info":""),k=i.computed(()=>m.value.length>0),_=i.computed(()=>m.value==="error"?N.value:m.value==="warn"?E.value:m.value==="info"?p.value:""),V=i.computed(()=>m.value==="error"?C.value:m.value==="warn"?R.value:m.value==="info"?$.value:null),j=i.computed(()=>{let T={[`${a}__tip`]:!0,[`${a}__tip--${m.value}`]:!0};return m.value==="error"&&e.errorClass?T[`${e.errorClass}`]=!0:m.value==="warn"&&e.warnClass?T[`${e.warnClass}`]=!0:m.value==="info"&&e.infoClass&&(T[`${e.infoClass}`]=!0),T}),y=i.computed(()=>{let T={};return h&&h.value==="top"?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=J(A.value)),T}),v=i.ref();let O="";return i.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([T,F,q,B])=>{!v.value||(T&&!Z(F)?O?ft.show(v.value,F,{...B,id:O,type:q}):O=ft.show(v.value,F,{...B,type:q}):ft.hide(O))}),{classes:l,styles:u,mainClasses:w,hasLabel:o,labelClasses:D,labelStyles:x,labelStringClasses:b,contentClasses:I,contentStyles:M,contentRef:v,hasTip:k,mTip:_,mIcon:V,tipClasses:j,tipStyles:y}}}),_a={key:0,class:"fox-item__tip-icon"},La={class:"fox-item__tip-text"};function Ha(e,t,r,n,a,l){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(e.classes),style:i.normalizeStyle(e.styles)},[i.createElementVNode("div",{class:i.normalizeClass(e.mainClasses)},[e.hasLabel?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.labelClasses),style:i.normalizeStyle(e.labelStyles)},[i.createElementVNode("div",{class:i.normalizeClass(e.labelStringClasses)},[i.renderSlot(e.$slots,"label",{},()=>[i.createTextVNode(i.toDisplayString(e.label),1)])],2)],6)):i.createCommentVNode("",!0),i.createElementVNode("div",{ref:"contentRef",class:i.normalizeClass(e.contentClasses),style:i.normalizeStyle(e.contentStyles)},[i.renderSlot(e.$slots,"prepend"),i.renderSlot(e.$slots,"default"),i.renderSlot(e.$slots,"append")],6)],2),i.createVNode(i.Transition,{name:"fox-item__animate"},{default:i.withCtx(()=>[e.hasTip?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(e.tipClasses),style:i.normalizeStyle(e.tipStyles)},[e.mIcon?(i.openBlock(),i.createElementBlock("div",_a,i.toDisplayString(e.mIcon),1)):i.createCommentVNode("",!0),i.createElementVNode("div",La,i.toDisplayString(e.mTip),1)],6)):i.createCommentVNode("",!0)]),_:1}),i.renderSlot(e.$slots,"hide")],6)}const ae=Ve(Pa,[["render",Ha]]);function Ka(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const a=e,l=i.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch"})),u=we(),s=it();lt(!1);const c=i.computed(()=>{const o={};if(s&&u){const h=ot(u,!1);if(h.value.type!=="flex")return r.width&&(o.width=toPxDesc(r.width)),o;if(r.width)o.width=toPxDesc(r.width);else{const D=Se(h.value.column,r.span);D>0&&(o.width=`${D}%`)}const g=Se(h.value.column,r.offset);g>0&&(o["margin-left"]=`${g}%`);const w=h.value.gutter/2;w>0&&(o["padding-left"]=`${w}px`,o["padding-right"]=`${w}px`)}else r.width&&(o.width=toPxDesc(r.width));return o});return()=>{const o={class:l.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?i.h("div",o,n.slots.default()):i.h("div",o)}}}}const{componentName:za,create:Ga,scope:Bl}=W("slot-item"),vn=Ga(Ka(za));function Wa(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]}},setup(r,n){const a=e,l=i.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),u=we(),s=it();lt(!1);const c=i.computed(()=>{const h={};if(s&&u){const g=ot(u,!1);if(g.value.type!=="flex")return r.width&&(h.width=J(r.width)),h;if(r.width)h.width=J(r.width);else{const A=Se(g.value.column,r.span);A>0&&(h.width=`${A}%`)}const w=Se(g.value.column,r.offset);w>0&&(h["margin-left"]=`${w}%`);const D=g.value.gutter/2;D>0&&(h["padding-left"]=`${D}px`,h["padding-right"]=`${D}px`)}else r.width&&(h.width=J(r.width));return h}),o=i.computed(()=>({[`${a}__content`]:!0}));return()=>{const h=[];n.slots.default&&h.push(n.slots.default());const g={class:o.value},w=i.h("div",g,h),D={class:l.value,style:c.value};return i.h("div",D,[w])}}}}const{componentName:Ya,create:Ua,scope:Pl}=W("row-item"),On=Ua(Wa(Ya)),xn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Za(e,t,r){return{props:{...ne,...oe,...xn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=R=>{g.value=R,l("update:modelValue",R),l("input",R)},x=R=>{l("change",R)};let b=Y(n,"hintText"),I=i.ref(!1);const M=R=>{let C=R.target.value;c.value=!0,Z(b.value)||(I.value=!0),l("focus",C,R)},S=R=>{setTimeout(()=>{I.value&&(I.value=!1),c.value=!1},0);let C=R.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),l("blur",C,R)},p=()=>{l("clear","")},$=i.computed(()=>We(n.unit)>0),E=i.ref();return se({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},select:()=>{E?.value.select()}}),()=>{const N={...a.attrs,ref:E,class:D.value,placeholder:s.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:h.value,modelValue:g.value,onClear:p,onChange:x,onInput:A,onFocus:M,onBlur:S},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix?C.suffix=a.slots.suffix:$.value&&(C.suffix=()=>[n.unit]);const m=[],k=i.h(f.ElInput,N,C);m.push(k);const _={default:()=>m};if(a.slots.default){const v=a.slots.default();_.label=()=>v}const j={...le(n,xn),hintText:b.value,hintVisible:I.value,prop:`${n.prop}_item`};return i.h(r,j,_)}}}}const{componentName:Xa,create:Ja,scope:Qa}=W("input-item"),Cn=Ja(Za(Xa,Qa,ae));function Ne(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 Vn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class ei{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function ti(){const e=i.getCurrentInstance();return new ei(e.proxy)}function Nn(e,t,r){const n=Ne(e,t),a=Ne(e,r);if(n!==a)return!1;const l=je(e,t),u=je(e,r);return l===u}function Tn(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let u of n){const s=Vn(e,u);if(Array.isArray(s)&&s.length>0){const c=Tn(e,l,r,s)??[];Reflect.apply([].push,a,c)}else{let c=!1;if(r==="text")c=Ne(e,u)===l;else if(r==="item")c=Nn(e,u,l);else{let o=je(e,u);o==null&&(o=Ne(e,u)),c=o===l}if(c){a.push(u);break}}}}),a}function ni(e){return{text:e,value:e}}const An={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"},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},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1}};function ri(e,t,r){return{props:{...ne,...oe,...An},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(null),o=i.ref([]),h=(y,v,O,T=!0)=>{const F=Tn(n,y,v,O);if(F===null){if(o.value===null||o.value.length===0)return;c.value=null,o.value=[],T&&(l("update:modelValue",null),l("change",null));return}let q=!0;if(F.length!==o.value.length)q=!1;else for(let B=0;B<F.length;B++){const P=F[B],H=o.value[B];if(!Nn(n,P,H)){q=!1;break}}if(!q){o.value=F;let B=[],P=[];F.forEach(z=>{B.push(je(n,z)),n.valueType==="text"?P.push(Ne(n,z)):n.valueType==="item"?P.push(z):P.push(je(n,z))});let H;n.multiple?(c.value=B,H=i.toRaw(P)):(c.value=B[0]??"",H=i.toRaw(P[0]??"")),T&&(l("update:modelValue",H),l("change",H))}},g=i.ref([]),w=ti();i.watch([()=>n.source,()=>n.params],async([y,v])=>{if(y){const O=await w.load("select",y,v);if(O.length>0)if(typeof O[0]=="string"){let q=O.map(B=>ni(B));g.value=q}else g.value=O}},{immediate:!0}),i.watch([()=>g.value,()=>n.modelValue],([y,v])=>{h(v,n.valueType,y,!1)});let D=null,A=i.ref(!1);typeof n.remoteMethod=="function"&&(D=async y=>{if(y!=null){A.value=!0;try{const v=await n.remoteMethod(y);g.value=v}catch(v){console.error(v)}A.value=!1}});const x=i.ref(!1),b=ce(i.computed(()=>n.disabled)),I=ue(i.computed(()=>n.readonly)),M=e,S=i.computed(()=>({[M]:!0})),p=y=>{n.allowCreate?(l("update:modelValue",y),l("change",y),c.value=y):h(y,"value",g.value,!0)};let $=Y(n,"hintText"),E=i.ref(!1);const R=y=>{let O=y.target.value;x.value=!0,Z($.value)||(E.value=!0),l("focus",O,y)},N=y=>{setTimeout(()=>{E.value&&(E.value=!1),x.value=!1},0);let O=y.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),m.value?setTimeout(()=>{l("blur",O,y)},50):l("blur",O,y)},C=()=>{l("clear","")},m=i.ref(!1),k=y=>{m.value=y,l("visible-change",y)},_=y=>{l("remove-tag",y)},V=(y,v)=>{const O=[];return y.forEach((T,F)=>{const q=Vn(n,T);if(Array.isArray(q)&&q.length>0){const B=V(q,v),P=Ne(n,T),z={key:`${P}_${F}`,label:P};O.push(i.h(f.ElOptionGroup,z,{default:()=>B}))}else{const B=je(n,T),P=Ne(n,T),H=L.toBoolean(T.disabled),G={key:`${B}_${F}`,label:P,disabled:H,value:B};typeof v=="function"?O.push(i.h(f.ElOption,G,{default:v})):O.push(i.h(f.ElOption,G))}}),O},j=i.ref();return se({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const v={...a.attrs,ref:j,class:S.value,clearable:n.clearable,multiple:n.multiple,placeholder:s.placeholder.value,disabled:b.value||I.value,modelValue:c.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:C,onChange:p,onFocus:R,onBlur:N,onVisibleChange:k,onRemoveTag:_};typeof D=="function"&&(v["remote-method"]=D,v.loading=A.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),O.default=()=>V(g.value,a.slots.option);const T=[],F=i.h(f.ElSelect,v,O);T.push(F);const q={default:()=>T};if(a.slots.default){const z=a.slots.default();q.label=()=>z}const P={...le(n,An),hintText:$.value,hintVisible:E.value,prop:`${n.prop??n.name}_item`};return i.h(r,P,q)}}}}const{componentName:ai,create:ii,scope:li}=W("select-item"),In=ii(ri(ai,li,ae)),Rn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function oi(e,t,r){return{props:{...ne,...oe,...Rn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=N=>{g.value=N,l("update:modelValue",N),l("change",N)};let x=Y(n,"hintText"),b=i.ref(!1);const I=N=>{let m=N.target.value;c.value=!0,Z(x.value)||(b.value=!0),l("focus",m,N)},M=N=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let m=N.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),l("blur",m,N)},S=()=>{l("clear","")},p=N=>{l("calendar-change",N)},$=(N,C,m)=>{l("panel-change",N,C,m)},E=N=>{l("visible-change",N)},R=i.ref();return se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},handleOpen:()=>{R?.value.handleOpen()},handleClose:()=>{R?.value.handleClose()}}),()=>{const C={...a.attrs,ref:R,class:D.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:A,onClear:S,onFocus:I,onBlur:M,onCalendarChange:p,onPanelChange:$,onVisibleChange:E},m={};a.slots["range-separator"]&&(m["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(m.default=a.slots.cell);const k=[],_=i.h(f.ElDatePicker,C,m);k.push(_);const V={default:()=>k};if(a.slots.default){const O=a.slots.default();V.label=()=>O}const y={...le(n,Rn),hintText:x.value,hintVisible:b.value,prop:`${n.prop}_item`};return i.h(r,y,V)}}}}const{componentName:si,create:ui,scope:ci}=W("date-item"),jn=ui(oi(si,ci,ae)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function fi(e,t,r){return{props:{...ne,...oe,...Mn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=E=>{g.value=E,l("update:modelValue",E),l("change",E)};let x=Y(n,"hintText"),b=i.ref(!1);const I=E=>{let N=E.target.value;c.value=!0,Z(x.value)||(b.value=!0),l("focus",N,E)},M=E=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=E.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),l("blur",N,E)},S=()=>{l("clear","")},p=E=>{l("visible-change",E)},$=i.ref();return se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},handleOpen:()=>{$?.value.handleOpen()},handleClose:()=>{$?.value.handleClose()}}),()=>{const R={...a.attrs,ref:$,class:D.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:A,onClear:S,onFocus:I,onBlur:M,onVisibleChange:p},N={},C=[],m=i.h(f.ElTimePicker,R,N);C.push(m);const k={default:()=>C};if(a.slots.default){const y=a.slots.default();k.label=()=>y}const V={...le(n,Mn),hintText:x.value,hintVisible:b.value,prop:`${n.prop}_item`};return i.h(r,V,k)}}}}const{componentName:di,create:hi,scope:gi}=W("time-item"),Dn=hi(fi(di,gi,ae)),Fn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function mi(e,t,r){return{props:{...ne,...oe,...Fn},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=$=>{g.value=$,l("update:modelValue",$),l("change",$)};let x=Y(n,"hintText"),b=i.ref(!1);const I=$=>{let R=$.target.value;c.value=!0,Z(x.value)||(b.value=!0),l("focus",R,$)},M=$=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let R=$.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),l("blur",R,$)},S=()=>{l("clear","")},p=i.ref();return se({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},handleOpen:()=>{p?.value.handleOpen()},handleClose:()=>{p?.value.handleClose()}}),()=>{const E={...a.attrs,ref:p,class:D.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:A,onClear:S,onFocus:I,onBlur:M},R={},N=[],C=i.h(f.ElTimeSelect,E,R);N.push(C);const m={default:()=>N};if(a.slots.default){const j=a.slots.default();m.label=()=>j}const _={...le(n,Fn),hintText:x.value,hintVisible:b.value,prop:`${n.prop}_item`};return i.h(r,_,m)}}}}const{componentName:yi,create:pi,scope:bi}=W("time-select-item"),kn=pi(mi(yi,bi,ae));function qn(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let a=n;for(let l=r.length-1;l>=n;l--)if(r.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>r.length?r=r.padEnd(a,"0"):r=r.substring(0,a),r}function Bn(e,t,r=20){if(typeof t=="string"&&(t=L.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ht(`${e}`,`${t}`);return qn(n)}else{let n=wt(`${e}`,Kt(`${t}`),20);return qn(n)}}function wi(e,t=-1,r=!1,n=3,a=","){return St(e,t,r,n,a)}function Pn(e,t,r,n,a=!0){if(e=="")return"";if(e=zt(e),t=L.toNumber(t),t==1)return e;if(n)e=Bn(e,t),r&&(e=="0"&&a?e=`${e}.`.padEnd(L.toNumber(r)+2,"0"):e=wt(e,1,L.toNumber(r)));else{let l=-1*t;e=Bn(e,l)}return e}function _n(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=L.toBoolean(t.minInclude),a=$t(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=l.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=L.toBoolean(t.maxInclude),a=$t(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(r.maxValid=!1)}return r}const Ln={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}};function $i(e,t,r){return{props:{...ne,...oe,...Ln},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=i.ref(!1),s=ce(i.computed(()=>n.disabled)),c=ue(i.computed(()=>n.readonly)),o=Y(n,"modelValue"),h=i.ref("");i.watch([()=>o.value,()=>n.rates,()=>n.precision],([V,j,y])=>{if(Z(V))return"";const v=Pn(V,j,y,!1);h.value!==v&&(h.value=v)},{immediate:!0});const g=i.computed(()=>{let V="";return u.value&&(V=h.value),V}),{t:w}=me.useFoxI18n(t),D=i.computed(()=>{let V=n.placeholder??"";return!u.value&&!Z(h.value)?V=wi(h.value,n.decimalLength,n.autoPadding,n.digits,n.separator):V=w(["placeholder",V]),V}),A=e,x=i.computed(()=>({[A]:!0,[`${A}__disabled`]:s.value,[`${A}__placeholder`]:h.value.length>0})),b=Ie(i.computed(()=>n.textAlign),"textAlign");i.computed(()=>u.value?{textAlign:"left"}:{textAlign:b.value??"right"});const I=i.ref(""),M=i.computed(()=>{let V=I.value;return Z(V)&&(V=n.errorTip??""),V}),S=i.ref(""),p=i.ref(!1),$=(V,j)=>{if(V=`${V}`,Z(V)){h.value="",o.value="",j.forEach(y=>{l(y,"")}),L.toBoolean(n.showTip)&&p.value&&(p.value=!1);return}if(V.length>=2){let y=V;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){i.triggerRef(h);return}}if(V!="-"){if(!Wt(V)){i.triggerRef(h);return}if(n.integerLength!=-1&&Yt(V)>Number(n.integerLength)){i.triggerRef(h);return}if(n.decimalLength&&n.decimalLength!=-1&&Ut(V)>Number(n.decimalLength)){i.triggerRef(h);return}let y=_n(V,n);if(y.maxValid===!1){I.value=y.message,i.triggerRef(h);return}}else if(n.min!=null&&L.toNumber(n.min)>=0){i.triggerRef(h);return}S.value=V,L.toBoolean(n.showTip)&&(p.value=V.length>0),h.value=V,o.value=Pn(V,n.rates,n.precision,!0),j.forEach(y=>{l(y,o.value)})},E=V=>{$(V,["update:modelValue","input"])},R=V=>{$(V,["update:modelValue","change"])},N=V=>{if(u.value=!0,L.toBoolean(n.showTip)){let j=h.value;Z(j)&&(j=n.hintText),Z(j)||(S.value=j,p.value=!0)}I.value="",l("focus",o.value,V)},C=V=>{if(setTimeout(()=>{u.value=!1,L.toBoolean(n.showTip)&&p.value===!0&&(p.value=!1)},0),!Z(h.value)){let j=_n(h.value,n);if(j.minValid===!1||j.maxValid){I.value=j.message;return}}l("update:modelValue",o.value,V),l("blur",o.value,V)},m=()=>{l("clear","")},k=i.computed(()=>We(n.unit)>0),_=i.ref();return se({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const j={...a.attrs,ref:_,class:x.value,type:"digit",maxlength:n.maxLength,placeholder:D.value,clearable:n.clearable,disabled:s.value,readonly:c.value,modelValue:g.value,onClear:m,onInput:E,onChange:R,onFocus:N,onBlur:C},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:k.value&&(y.suffix=()=>[n.unit]);const v=[],O=i.h(f.ElInput,j,y);v.push(O);const T={default:()=>v};if(a.slots.default){const P=a.slots.default();T.label=()=>P}const q={...le(n,Ln),errorTip:M.value,hintText:S.value,hintVisible:p.value,hintType:"number",prop:`${n.prop}_item`};return i.h(r,q,T)}}}}const{componentName:Si,create:Ei,scope:vi}=W("money-item"),Hn=Ei($i(Si,vi,ae));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Te(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Oi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class xi{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function Ci(){const e=i.getCurrentInstance();return new xi(e.proxy)}function jt(e,t,r){const n=Me(e,t),a=Me(e,r);if(n!==a)return!1;const l=Te(e,t),u=Te(e,r);return l===u}function Kn(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let u=0;Array.isArray(l)&&u<t.length;u++){const s=t[u];if(Array.isArray(s)){const c=Kn(e,s,r,n);a.push(c)}else{let c=!1;for(let o of l){if(r==="text")c=Me(e,o)===s;else if(r==="item")c=jt(e,o,s);else{let h=Te(e,o);h==null&&(h=Me(e,o)),c=h===s}if(c){a.push(o),l=Oi(e,o);break}}if(!c)break}}return a}function Vi(e){return{text:e,value:e}}const zn={modelValue:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1}};function Ni(e,t,r){return{props:{...ne,...oe,...zn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(null),o=i.ref([]),h=(v,O,T,F=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===v)return;c.value=v;const P=i.toRaw(v);F&&(l("update:modelValue",P),l("change",P))}const q=Kn(n,v,O,T);if(q===null){if(o.value.length===0||o.value===null)return;o.value=[],c.value=null,F&&(l("update:modelValue",null),l("change",null));return}let B=!0;if(q.length!==o.value.length)B=!1;else for(let P=0;P<q.length;P++){const H=q[P],z=o.value[P];if(Array.isArray(H)){if(!Array.isArray(z)||H.length!==z.length)B=!1;else for(let G=0;G<H.length;G++)if(!jt(n,H[G],z[G])){B=!1;break}}else jt(n,H,z)||(B=!1);if(!B)break}if(!B){o.value=q;let P=[],H=[];q.forEach(G=>{if(Array.isArray(G)){let ge=[],fe=[];for(let ie of G)ge.push(Te(n,ie)),n.valueType==="text"?fe.push(Me(n,ie)):n.valueType==="item"?fe.push(ie):fe.push(Te(n,ie));P.push(ge),H.push(fe)}else P.push(Te(n,G)),n.valueType==="text"?H.push(Me(n,G)):n.valueType==="item"?H.push(G):H.push(Te(n,G))}),c.value=P;const z=i.toRaw(H);F&&(l("update:modelValue",z),l("change",z))}},g=i.ref([]),w=Ci();i.watch([()=>n.source,()=>n.params],async([v,O])=>{if(v){const T=await w.load("cascader",v,O);if(T.length>0)if(typeof T[0]=="string"){let B=T.map(P=>Vi(P));g.value=B}else g.value=T}},{immediate:!0}),i.watch([()=>g.value,()=>n.modelValue],([v,O])=>{h(O,n.valueType,v,!1)});let D=null,A=i.ref(!1);typeof n.remoteMethod=="function"&&(D=async v=>{if(v!=null){A.value=!0;try{const O=await n.remoteMethod(v);g.value=O}catch(O){console.error(O)}A.value=!1}});const x=i.ref(!1),b=ce(i.computed(()=>n.disabled)),I=ue(i.computed(()=>n.readonly)),M=e,S=i.computed(()=>({[M]:!0})),p=i.computed(()=>{let v={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(v.multiple=!0),n.props&&Object.assign(v,n.props),v}),$=v=>{n.allowCreate?(l("update:modelValue",v),l("change",v),c.value=v):h(v,"value",g.value,!0)};let E=Y(n,"hintText"),R=i.ref(!1);const N=v=>{let T=v.target.value;x.value=!0,Z(E.value)||(R.value=!0),l("focus",T,v)},C=v=>{setTimeout(()=>{R.value&&(R.value=!1),x.value=!1},0);let T=v.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),k.value?setTimeout(()=>{l("blur",T,v)},50):l("blur",T,v)},m=()=>{l("clear","")},k=i.ref(!1),_=v=>{k.value=v,l("visible-change",v)},V=v=>{l("remove-tag",v)},j=v=>{l("expand-change",v)},y=i.ref();return se({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},getCheckedNodes:()=>y?.value.getCheckedNodes()}),()=>{const O={...a.attrs,ref:y,class:S.value,props:p.value,clearable:n.clearable,placeholder:s.placeholder.value,disabled:b.value||I.value,options:g.value,modelValue:c.value,onClear:m,onChange:$,onFocus:N,onBlur:C,onVisibleChange:_,onRemoveTag:V,expandChange:j};typeof D=="function"&&(O["remote-method"]=D,O.loading=A.value);const T={};a.slots.option&&(T.default=a.slots.option),a.slots.empty&&(T.empty=a.slots.empty);const F=[],q=i.h(f.ElCascader,O,T);F.push(q);const B={default:()=>F};if(a.slots.default){const G=a.slots.default();B.label=()=>G}const H={...le(n,zn),hintText:E.value,hintVisible:R.value,prop:`${n.prop??n.name}_item`};return i.h(r,H,B)}}}}const{componentName:Ti,create:Ai,scope:Ii}=W("cascader-item"),Gn=Ai(Ni(Ti,Ii,ae)),Wn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ri(e,t,r){return{props:{...ne,...oe,...Wn},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=i.ref(!1),o=ce(i.computed(()=>n.disabled)),h=ue(i.computed(()=>n.readonly)),g=Y(n,"modelValue"),w=e,D=i.computed(()=>({[w]:!0})),A=E=>{g.value=E,l("update:modelValue",E),l("input",E)},x=E=>{l("change",E)};let b=Y(n,"hintText"),I=i.ref(!1);const M=E=>{let N=E.target.value;c.value=!0,Z(b.value)||(I.value=!0),l("focus",N,E)},S=E=>{setTimeout(()=>{I.value&&(I.value=!1),c.value=!1},0);let N=E.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),l("blur",N,E)},p=()=>{l("clear","")},$=i.ref();return se({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const R={...a.attrs,ref:$,class:D.value,placeholder:s.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:h.value,modelValue:g.value,onClear:p,onChange:x,onInput:A,onFocus:M,onBlur:S},N={};a.slots.prepend&&(N.prepend=a.slots.prepend),a.slots.append&&(N.append=a.slots.append),a.slots.prefix&&(N.prefix=a.slots.prefix),a.slots.suffix&&(N.suffix=a.slots.suffix),a.slots.option&&(N.default=a.slots.option);const C=[],m=i.h(f.ElAutocomplete,R,N);C.push(m);const k={default:()=>C};if(a.slots.default){const y=a.slots.default();k.label=()=>y}const V={...le(n,Wn),hintText:b.value,hintVisible:I.value,prop:`${n.prop}_item`};return i.h(r,V,k)}}}}const{componentName:ji,create:Mi,scope:Di}=W("autocomplete-item"),Yn=Mi(Ri(ji,Di,ae));function Fi(e,t,r,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const u=[],s=t[0];if(Array.isArray(s))for(let c=0;c<t.length&&c<l.length;c++){let o=t[c],h=l[c];const g=o.find(w=>w[n]===h);if(!g)break;u.push(g[r])}else{let c=t;for(let o=0;c&&o<l.length;o++){let h=l[o],g=c.find(w=>w[n]===h);if(!g)break;u.push(g[r]),c=g[a]}}return u}class ki{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function qi(){const e=i.getCurrentInstance();return new ki(e.proxy)}const Un={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:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Bi(e,t){return{props:{...Un},setup(r,{attrs:n}){const a=qi(),l=i.ref([]);i.watch([()=>r.source,()=>r.params],async([c,o])=>{l.value=await a.load(r.sourceType,c,o)},{immediate:!0});const u=i.computed(()=>{if(!Array.isArray(l.value)||l.value.length===0)return"";let c=Fi(r.modelValue,l.value,r.textKey,r.valueKey,r.childrenKey);return c.length==0?"":c.length===1?c[0]:c.join(r.separator)}),s=r.resolveTag?i.resolveComponent(r.tag):r.tag;return()=>{const c={...n};return r.resolveTag?i.h(s,c,{default:()=>u.value}):i.h(s,c,u.value)}}}}const{componentName:_l,create:Pi,scope:Ll}=W("mapping"),Mt=Pi(Bi());function _i(e,t){return{props:{...Un},setup(r,{attrs:n}){return()=>{const a={default:l=>{const u=l.row[l.column.property];return i.h(Mt,{...r,modelValue:u})}};return i.h(f.ElTableColumn,{...n},a)}}}}const{componentName:Hl,create:Li,scope:Kl}=W("table-mapping-column"),Zn=Li(_i());class Hi{proxy;constructor(t){this.proxy=t}async load(t,r,n,a,l,u,s){if(Array.isArray(r)){let o=(n-1)*a,h=o+a;h>r.length&&(h=r.length);const g=r.slice(o,h);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,a,l,u,s]);const c=Ce(this.proxy,t);return c===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(L.isObject(l)&&i.isReactive(l)&&(l=i.toRaw(l)),await await Reflect.apply(c,null,[r,n,a,l,u,s]))}}function Ki(){const e=i.getCurrentInstance();return new Hi(e.proxy)}const Xn={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Jn={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"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function zi(e,t,r){return{inheritAttrs:!1,props:{...ne,...oe,...Xn,...Jn},emits:["change","page-size-change","page-index-change","current-change"],setup(n,a){const{locale:l}=me.useFoxI18n(t),{emitEvent:u}=re({componentName:e},n.prop??n.name),s=e,c=i.computed(()=>({[s]:!0})),o=i.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),h=i.ref(n.pageIndex);i.watch(()=>n.pageIndex,m=>{h.value=m});const g=m=>{h.value=m,u("page-index-change",m)},w=i.ref(n.pageSize);i.watch(()=>n.pageSize,m=>{w.value=m});const D=m=>{w.value=m,u("page-size-change",m)},A=i.shallowRef({}),x=i.computed(()=>({...A.value,...n.params??{},...n.baseParams??{}})),b=i.ref(0),I=i.ref(),M=Ki();let S=!0;const p=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:L.toBoolean(n.autoLoad),$=async(m,k,_,V)=>{try{const j=await M.load("table",m,k,_,V,S,l.value);b.value=j.totalSize,I.value=j.page}catch(j){console.error("[FoxUI] Load Table Data Fail",j),b.value=0,I.value=[]}S=!1};i.watch([h,w],([m,k],[_,V])=>{k!==V&&(h.value=1,m=1),$(n.data,m,k,x.value)}),i.watch([()=>n.data,x],([m,k],[_,V])=>{!p()||(m!==_&&(S=!0),$(m,h.value,w.value,k))});const E=(m={})=>{A.value=i.toRaw(m??{}),i.triggerRef(A),i.nextTick(()=>{$(n.data,h.value,w.value,x.value)})};p()&&E();let R=null;const N=(m,k)=>{R=m,u("current-change",m,k)},C=i.ref();return se({clearSelection:()=>C?.value.clearSelection(),getSelectionRows:()=>C?.value.getSelectionRows(),toggleRowSelection:(m,k)=>{C?.value.toggleRowSelection(m,k)},toggleAllSelection:()=>{C?.value.toggleAllSelection()},toggleRowExpansion:(m,k)=>{C?.value.toggleRowExpansion(m,k)},setCurrentRow:m=>{C?.value.setCurrentRow(m)},getCurrentRow:()=>R,clearSort:()=>{C?.value.clearSort()},clearFilter:m=>{C?.value.clearFilter(m)},doLayout:()=>{C?.value.doLayout()},sort:(m,k)=>{C?.value.sort(m,k)},scrollTo:(m,k)=>{C?.value.scrollTo(m,k)},setScrollTop:m=>{C?.value.setScrollTop(m)},setScrollLeft:m=>{C?.value.setScrollLeft(m)},loadData:E}),()=>{const k={...a.attrs,onCurrentChange:N,data:I.value,ref:C,class:c.value},_={};a.slots.default&&(_.default=a.slots.default),a.slots.append&&(_.append=a.slots.append),a.slots.empty&&(_.empty=a.slots.empty);const V=[],j=i.h(f.ElTable,k,_);if(V.push(j),typeof a.slots.pagination=="function"){const F=a.slots.pagination();V.push(F)}else if(n.paginationVisible){const F={class:o.value,total:b.value,pageSize:w.value,["onUpdate:pageSize"]:D,pageSizes:n.pageSizes,currentPage:h.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},q=i.h(f.ElPagination,F);V.push(q)}const y={default:()=>V},O={...le(n,Xn,Jn),prop:`${n.prop}_item`};return O.contentClass=`${s}__wrap`,i.h(r,O,y)}}}}const{componentName:Gi,create:Wi,scope:Yi}=W("table-item"),Qn=Wi(zi(Gi,Yi,ae));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ze(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class Ui{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function Zi(){const e=i.getCurrentInstance();return new Ui(e.proxy)}function er(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=De(e,t),a=De(e,r);if(n!==a)return!1;const l=ze(e,t),u=ze(e,r);return l===u}function Xi(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let u=!1;if(r==="text")u=De(e,l)===t;else if(r==="item")u=er(e,l,t);else{let s=ze(e,l);s==null&&(s=De(e,l)),u=s===t}if(u){a=l;break}}return a}function Ji(e){return{text:e,value:e}}const tr={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"},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"},itemClass:{type:[String],required:!1}};function Qi(e,t,r){return{inheritAttrs:!0,props:{...ne,...oe,...tr},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=i.ref(null),s=i.ref(null),c=(S,p,$,E=!0)=>{const R=Xi(n,S,p,$);if(R===null){if(s.value===null)return;s.value=null,u.value=null,E&&(l("update:modelValue",null),l("change",null));return}if(!er(n,R,s.value)){u.value=S;const C=i.toRaw(R);s.value=C;let m=null;n.valueType==="text"?m=De(n,C):n.valueType==="item"?m=C:m=ze(n,C),E&&(l("update:modelValue",m),l("change",m))}},o=i.ref([]),h=Zi();i.watch([()=>n.source,()=>n.params],async([S,p])=>{if(S){const $=await h.load("radio",S,p);if($.length>0)if(typeof $[0]=="string"){let N=$.map(C=>Ji(C));o.value=N}else o.value=$}},{immediate:!0}),i.watch([()=>o.value,()=>n.modelValue],([S,p])=>{c(p,n.valueType,S,!1)});const g=ce(i.computed(()=>n.disabled)),w=ue(i.computed(()=>n.readonly)),D=e,A=i.computed(()=>({[D]:!0})),x=S=>{c(S,"value",o.value,!0)};let b=Y(n,"hintText"),I=Y(n,"hintVisible");const M=S=>{const p=[];return S.forEach(($,E)=>{const R=ze(n,$),N=De(n,$),C=L.toBoolean($.disabled),k={key:`${R}_${E}`,class:n.itemClass,label:R,disabled:C,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?p.push(i.h(f.ElRadioButton,k,{default:()=>[N]})):p.push(i.h(f.ElRadio,k,{default:()=>[N]}))}),p};return()=>{const p={...a.attrs,class:A.value,disabled:g.value||w.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:x},$=[],E={};a.slots.options?E.default=a.slots.options:E.default=()=>M(o.value);const R=i.h(f.ElRadioGroup,p,E);$.push(R);const N={default:()=>$};if(a.slots.default){const _=a.slots.default();N.label=()=>_}const m={...le(n,tr),hintText:b.value,hintVisible:I.value,prop:`${n.prop??n.name}_item`};return i.h(r,m,N)}}}}const{componentName:el,create:tl,scope:nl}=W("radio-item"),nr=tl(Qi(el,nl,ae));function Fe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ke(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class rl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ce(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&i.isReactive(n)&&(n=i.toRaw(n)),await a(r,n))}}function al(){const e=i.getCurrentInstance();return new rl(e.proxy)}function rr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Fe(e,t),a=Fe(e,r);if(n!==a)return!1;const l=ke(e,t),u=ke(e,r);return l===u}function il(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let u of n){let s=!1;if(r==="text")s=Fe(e,u)===l;else if(r==="item")s=rr(e,u,l);else{let c=ke(e,u);c==null&&(c=Fe(e,u)),s=c===l}if(s){a.push(u);break}}}),a}function ll(e){return{text:e,value:e}}const ar={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"},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"},itemClass:{type:[String],required:!1}};function ol(e,t,r){return{inheritAttrs:!1,props:{...ne,...oe,...ar},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=i.ref([]),s=i.ref([]),c=(S,p,$,E=!0)=>{const R=il(n,S,p,$);if(R===null){if(s.value===null||s.value.length===0)return;u.value=[],s.value=[],E&&(l("update:modelValue",[]),l("change",[]));return}let N=!0;if(R.length!==s.value.length)N=!1;else for(let C=0;C<R.length;C++){const m=R[C],k=s.value[C];if(!rr(n,m,k)){N=!1;break}}if(!N){s.value=R;let C=[],m=[];R.forEach(_=>{C.push(ke(n,_)),n.valueType==="text"?m.push(Fe(n,_)):n.valueType==="item"?m.push(_):m.push(ke(n,_))}),u.value=C;const k=i.toRaw(m);E&&(l("update:modelValue",k),l("change",k))}},o=i.ref([]),h=al();i.watch([()=>n.source,()=>n.params],async([S,p])=>{if(S){const $=await h.load("checkbox",S,p);if($.length>0)if(typeof $[0]=="string"){let N=$.map(C=>ll(C));o.value=N}else o.value=$}},{immediate:!0}),i.watch([()=>o.value,()=>n.modelValue],([S,p])=>{c(p,n.valueType,S,!1)});const g=ce(i.computed(()=>n.disabled)),w=ue(i.computed(()=>n.readonly)),D=e,A=i.computed(()=>({[D]:!0})),x=S=>{c(S,"value",o.value,!0)};let b=Y(n,"hintText"),I=Y(n,"hintVisible");const M=S=>{const p=[];return S.forEach(($,E)=>{const R=ke(n,$),N=Fe(n,$),C=L.toBoolean($.disabled),k={key:`${R}_${E}`,class:n.itemClass,label:R,disabled:C,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?p.push(i.h(f.ElCheckboxButton,k,{default:()=>[N]})):p.push(i.h(f.ElCheckbox,k,{default:()=>[N]}))}),p};return()=>{const p={...a.attrs,class:A.value,disabled:g.value||w.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,max:L.toNumber(n.max),min:L.toNumber(n.min),onChange:x},$=[],E={};a.slots.options?E.default=a.slots.options:E.default=()=>M(o.value);const R=i.h(f.ElCheckboxGroup,p,E);$.push(R);const N={default:()=>$};if(a.slots.default){const _=a.slots.default();N.label=()=>_}const m={...le(n,ar),hintText:b.value,hintVisible:I.value,prop:`${n.prop??n.name}_item`};return i.h(r,m,N)}}}}const{componentName:sl,create:ul,scope:cl}=W("checkbox-item"),ir=ul(ol(sl,cl,ae)),lr={modelValue:{type:[Number,String],required:!1}};function fl(e,t,r){return{props:{...ne,...oe,...lr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=ce(i.computed(()=>n.disabled)),s=ue(i.computed(()=>n.readonly)),c=Y(n,"modelValue"),o=e,h=i.computed(()=>({[o]:!0})),g=x=>{l("update:modelValue",x),l("change",x)};let w=Y(n,"hintText"),D=i.ref(!1);const A=i.ref();return se({}),()=>{const b={...a.attrs,ref:A,class:h.value,readonly:s.value||u.value,modelValue:c.value,onChange:g},I={},M=[],S=i.h(f.ElRate,b,I);M.push(S);const p={default:()=>M};if(a.slots.default){const N=a.slots.default();p.label=()=>N}const E={...le(n,lr),hintText:w.value,hintVisible:D.value,prop:`${n.prop}_item`};return i.h(r,E,p)}}}}const{componentName:dl,create:hl,scope:gl}=W("rate-item"),or=hl(fl(dl,gl,ae)),sr={modelValue:{type:[Boolean,String,Number],required:!1}};function ml(e,t,r){return{props:{...ne,...oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:l}=re({componentName:e},n.prop??n.name),u=ce(i.computed(()=>n.disabled)),s=ue(i.computed(()=>n.readonly)),c=Y(n,"modelValue"),o=e,h=i.computed(()=>({[o]:!0})),g=x=>{l("update:modelValue",x),l("change",x)};let w=Y(n,"hintText"),D=Y(n,"hintVisible");const A=i.ref();return se({}),()=>{const b={...a.attrs,ref:A,class:h.value,readonly:s.value,disabled:u.value,modelValue:c.value,onChange:g},I={},M=[],S=i.h(f.ElSwitch,b,I);M.push(S);const p={default:()=>M};if(a.slots.default){const N=a.slots.default();p.label=()=>N}const E={...le(n,sr),hintText:w.value,hintVisible:D.value,prop:`${n.prop}_item`};return i.h(r,E,p)}}}}const{componentName:yl,create:pl,scope:bl}=W("switch-item"),ur=pl(ml(yl,bl,ae)),wl=Symbol.for("InnerPageScopeKey"),$l=Symbol.for("DialogItemStateKey");function Sl(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(r,n){i.provide(wl,!0);const a={};i.provide($l,a);const l=c=>{typeof a.beforeClose=="function"&&a.beforeClose(c)},u=i.ref(!0),s=c=>{u.value=c};return()=>{const o={...n.attrs,title:r.title,draggable:r.draggable,modelValue:u.value,"onUpdate:modelValue":s,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":l},h={};if(typeof n.slots.default=="function"){const g=n.slots.default();h.default=()=>g}return i.h(f.ElDialog,o,h)}}}}const{componentName:zl,create:El,scope:Gl}=W("dialog-item"),cr=El(Sl());var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r=1e3,n=6e4,a=36e5,l="millisecond",u="second",s="minute",c="hour",o="day",h="week",g="month",w="quarter",D="year",A="date",x="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,M={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("_")},S=function(V,j,y){var v=String(V);return!v||v.length>=j?V:""+Array(j+1-v.length).join(y)+V},p={s:S,z:function(V){var j=-V.utcOffset(),y=Math.abs(j),v=Math.floor(y/60),O=y%60;return(j<=0?"+":"-")+S(v,2,"0")+":"+S(O,2,"0")},m:function V(j,y){if(j.date()<y.date())return-V(y,j);var v=12*(y.year()-j.year())+(y.month()-j.month()),O=j.clone().add(v,g),T=y-O<0,F=j.clone().add(v+(T?-1:1),g);return+(-(v+(y-O)/(T?O-F:F-O))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:g,y:D,w:h,d:o,D:A,h:c,m:s,s:u,ms:l,Q:w}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},$="en",E={};E[$]=M;var R=function(V){return V instanceof k},N=function V(j,y,v){var O;if(!j)return $;if(typeof j=="string"){var T=j.toLowerCase();E[T]&&(O=T),y&&(E[T]=y,O=T);var F=j.split("-");if(!O&&F.length>1)return V(F[0])}else{var q=j.name;E[q]=j,O=q}return!v&&O&&($=O),O||!v&&$},C=function(V,j){if(R(V))return V.clone();var y=typeof j=="object"?j:{};return y.date=V,y.args=arguments,new k(y)},m=p;m.l=N,m.i=R,m.w=function(V,j){return C(V,{locale:j.$L,utc:j.$u,x:j.$x,$offset:j.$offset})};var k=function(){function V(y){this.$L=N(y.locale,null,!0),this.parse(y)}var j=V.prototype;return j.parse=function(y){this.$d=function(v){var O=v.date,T=v.utc;if(O===null)return new Date(NaN);if(m.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var F=O.match(b);if(F){var q=F[2]-1||0,B=(F[7]||"0").substring(0,3);return T?new Date(Date.UTC(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date(O)}(y),this.$x=y.x||{},this.init()},j.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},j.$utils=function(){return m},j.isValid=function(){return this.$d.toString()!==x},j.isSame=function(y,v){var O=C(y);return this.startOf(v)<=O&&O<=this.endOf(v)},j.isAfter=function(y,v){return C(y)<this.startOf(v)},j.isBefore=function(y,v){return this.endOf(v)<C(y)},j.$g=function(y,v,O){return m.u(y)?this[v]:this.set(O,y)},j.unix=function(){return Math.floor(this.valueOf()/1e3)},j.valueOf=function(){return this.$d.getTime()},j.startOf=function(y,v){var O=this,T=!!m.u(v)||v,F=m.p(y),q=function(ie,ee){var de=m.w(O.$u?Date.UTC(O.$y,ee,ie):new Date(O.$y,ee,ie),O);return T?de:de.endOf(o)},B=function(ie,ee){return m.w(O.toDate()[ie].apply(O.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(ee)),O)},P=this.$W,H=this.$M,z=this.$D,G="set"+(this.$u?"UTC":"");switch(F){case D:return T?q(1,0):q(31,11);case g:return T?q(1,H):q(0,H+1);case h:var ge=this.$locale().weekStart||0,fe=(P<ge?P+7:P)-ge;return q(T?z-fe:z+(6-fe),H);case o:case A:return B(G+"Hours",0);case c:return B(G+"Minutes",1);case s:return B(G+"Seconds",2);case u:return B(G+"Milliseconds",3);default:return this.clone()}},j.endOf=function(y){return this.startOf(y,!1)},j.$set=function(y,v){var O,T=m.p(y),F="set"+(this.$u?"UTC":""),q=(O={},O[o]=F+"Date",O[A]=F+"Date",O[g]=F+"Month",O[D]=F+"FullYear",O[c]=F+"Hours",O[s]=F+"Minutes",O[u]=F+"Seconds",O[l]=F+"Milliseconds",O)[T],B=T===o?this.$D+(v-this.$W):v;if(T===g||T===D){var P=this.clone().set(A,1);P.$d[q](B),P.init(),this.$d=P.set(A,Math.min(this.$D,P.daysInMonth())).$d}else q&&this.$d[q](B);return this.init(),this},j.set=function(y,v){return this.clone().$set(y,v)},j.get=function(y){return this[m.p(y)]()},j.add=function(y,v){var O,T=this;y=Number(y);var F=m.p(v),q=function(H){var z=C(T);return m.w(z.date(z.date()+Math.round(H*y)),T)};if(F===g)return this.set(g,this.$M+y);if(F===D)return this.set(D,this.$y+y);if(F===o)return q(1);if(F===h)return q(7);var B=(O={},O[s]=n,O[c]=a,O[u]=r,O)[F]||1,P=this.$d.getTime()+y*B;return m.w(P,this)},j.subtract=function(y,v){return this.add(-1*y,v)},j.format=function(y){var v=this,O=this.$locale();if(!this.isValid())return O.invalidDate||x;var T=y||"YYYY-MM-DDTHH:mm:ssZ",F=m.z(this),q=this.$H,B=this.$m,P=this.$M,H=O.weekdays,z=O.months,G=function(ee,de,ve,Oe){return ee&&(ee[de]||ee(v,T))||ve[de].slice(0,Oe)},ge=function(ee){return m.s(q%12||12,ee,"0")},fe=O.meridiem||function(ee,de,ve){var Oe=ee<12?"AM":"PM";return ve?Oe.toLowerCase():Oe},ie={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:m.s(P+1,2,"0"),MMM:G(O.monthsShort,P,z,3),MMMM:G(z,P),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:G(O.weekdaysMin,this.$W,H,2),ddd:G(O.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(q),HH:m.s(q,2,"0"),h:ge(1),hh:ge(2),a:fe(q,B,!0),A:fe(q,B,!1),m:String(B),mm:m.s(B,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:F};return T.replace(I,function(ee,de){return de||ie[ee]||F.replace(":","")})},j.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},j.diff=function(y,v,O){var T,F=m.p(v),q=C(y),B=(q.utcOffset()-this.utcOffset())*n,P=this-q,H=m.m(this,q);return H=(T={},T[D]=H/12,T[g]=H,T[w]=H/3,T[h]=(P-B)/6048e5,T[o]=(P-B)/864e5,T[c]=P/a,T[s]=P/n,T[u]=P/r,T)[F]||P,O?H:m.a(H)},j.daysInMonth=function(){return this.endOf(g).$D},j.$locale=function(){return E[this.$L]},j.locale=function(y,v){if(!y)return this.$L;var O=this.clone(),T=N(y,v,!0);return T&&(O.$L=T),O},j.clone=function(){return m.w(this.$d,this)},j.toDate=function(){return new Date(this.valueOf())},j.toJSON=function(){return this.isValid()?this.toISOString():null},j.toISOString=function(){return this.$d.toISOString()},j.toString=function(){return this.$d.toUTCString()},V}(),_=k.prototype;return C.prototype=_,[["$ms",l],["$s",u],["$m",s],["$H",c],["$W",o],["$M",g],["$y",D],["$D",A]].forEach(function(V){_[V[1]]=function(j){return this.$g(j,V[0],V[1])}}),C.extend=function(V,j){return V.$i||(V(j,k,C),V.$i=!0),C},C.locale=N,C.isDayjs=R,C.unix=function(V){return C(1e3*V)},C.en=E[$],C.Ls=E,C.p={},C})})(fr);const Ee=fr.exports;var dr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},c=function(x){return(x=+x)+(x>68?1900:2e3)},o=function(x){return function(b){this[x]=+b}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var I=b.match(/([+-]|\d\d)/g),M=60*I[1]+(+I[2]||0);return M===0?0:I[0]==="+"?-M:M}(x)}],g=function(x){var b=s[x];return b&&(b.indexOf?b:b.s.concat(b.f))},w=function(x,b){var I,M=s.meridiem;if(M){for(var S=1;S<=24;S+=1)if(x.indexOf(M(S,0,b))>-1){I=S>12;break}}else I=x===(b?"pm":"PM");return I},D={A:[u,function(x){this.afternoon=w(x,!1)}],a:[u,function(x){this.afternoon=w(x,!0)}],S:[/\d/,function(x){this.milliseconds=100*+x}],SS:[a,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[l,o("seconds")],ss:[l,o("seconds")],m:[l,o("minutes")],mm:[l,o("minutes")],H:[l,o("hours")],h:[l,o("hours")],HH:[l,o("hours")],hh:[l,o("hours")],D:[l,o("day")],DD:[a,o("day")],Do:[u,function(x){var b=s.ordinal,I=x.match(/\d+/);if(this.day=I[0],b)for(var M=1;M<=31;M+=1)b(M).replace(/\[|\]/g,"")===x&&(this.day=M)}],M:[l,o("month")],MM:[a,o("month")],MMM:[u,function(x){var b=g("months"),I=(g("monthsShort")||b.map(function(M){return M.slice(0,3)})).indexOf(x)+1;if(I<1)throw new Error;this.month=I%12||I}],MMMM:[u,function(x){var b=g("months").indexOf(x)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,o("year")],YY:[a,function(x){this.year=c(x)}],YYYY:[/\d{4}/,o("year")],Z:h,ZZ:h};function A(x){var b,I;b=x,I=s&&s.formats;for(var M=(x=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,m,k){var _=k&&k.toUpperCase();return m||I[k]||r[k]||I[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(V,j,y){return j||y.slice(1)})})).match(n),S=M.length,p=0;p<S;p+=1){var $=M[p],E=D[$],R=E&&E[0],N=E&&E[1];M[p]=N?{regex:R,parser:N}:$.replace(/^\[|\]$/g,"")}return function(C){for(var m={},k=0,_=0;k<S;k+=1){var V=M[k];if(typeof V=="string")_+=V.length;else{var j=V.regex,y=V.parser,v=C.slice(_),O=j.exec(v)[0];y.call(m,O),C=C.replace(O,"")}}return function(T){var F=T.afternoon;if(F!==void 0){var q=T.hours;F?q<12&&(T.hours+=12):q===12&&(T.hours=0),delete T.afternoon}}(m),m}}return function(x,b,I){I.p.customParseFormat=!0,x&&x.parseTwoDigitYear&&(c=x.parseTwoDigitYear);var M=b.prototype,S=M.parse;M.parse=function(p){var $=p.date,E=p.utc,R=p.args;this.$u=E;var N=R[1];if(typeof N=="string"){var C=R[2]===!0,m=R[3]===!0,k=C||m,_=R[2];m&&(_=R[2]),s=this.$locale(),!C&&_&&(s=I.Ls[_]),this.$d=function(v,O,T){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*v);var F=A(O)(v),q=F.year,B=F.month,P=F.day,H=F.hours,z=F.minutes,G=F.seconds,ge=F.milliseconds,fe=F.zone,ie=new Date,ee=P||(q||B?1:ie.getDate()),de=q||ie.getFullYear(),ve=0;q&&!B||(ve=B>0?B-1:ie.getMonth());var Oe=H||0,Dt=z||0,Ft=G||0,kt=ge||0;return fe?new Date(Date.UTC(de,ve,ee,Oe,Dt,Ft,kt+60*fe.offset*1e3)):T?new Date(Date.UTC(de,ve,ee,Oe,Dt,Ft,kt)):new Date(de,ve,ee,Oe,Dt,Ft,kt)}catch{return new Date("")}}($,N,E),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),k&&$!=this.format(N)&&(this.$d=new Date("")),s={}}else if(N instanceof Array)for(var V=N.length,j=1;j<=V;j+=1){R[1]=N[j-1];var y=I.apply(this,R);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}j===V&&(this.$d=new Date(""))}else S.call(this,p)}}})})(dr);const vl=dr.exports;var hr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,a){var l=n.prototype,u=l.format;a.en.ordinal=function(s){var c=["th","st","nd","rd"],o=s%100;return"["+s+(c[(o-20)%10]||c[o]||c[0])+"]"},l.format=function(s){var c=this,o=this.$locale();if(!this.isValid())return u.bind(this)(s);var h=this.$utils(),g=(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((c.$M+1)/3);case"Do":return o.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return o.ordinal(c.week(),"W");case"w":case"ww":return h.s(c.week(),w==="w"?1:2,"0");case"W":case"WW":return h.s(c.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return h.s(String(c.$H===0?24:c.$H),w==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return w}});return u.bind(this)(g)}}})})(hr);const Ol=hr.exports;var gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,a){var l=n.prototype,u=function(g){return g&&(g.indexOf?g:g.s)},s=function(g,w,D,A,x){var b=g.name?g:g.$locale(),I=u(b[w]),M=u(b[D]),S=I||M.map(function($){return $.slice(0,A)});if(!x)return S;var p=b.weekStart;return S.map(function($,E){return S[(E+(p||0))%7]})},c=function(){return a.Ls[a.locale()]},o=function(g,w){return g.formats[w]||function(D){return D.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,x,b){return x||b.slice(1)})}(g.formats[w.toUpperCase()])},h=function(){var g=this;return{months:function(w){return w?w.format("MMMM"):s(g,"months")},monthsShort:function(w){return w?w.format("MMM"):s(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):s(g,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):s(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):s(g,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return o(g.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return h.bind(this)()},a.localeData=function(){var g=c();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(w){return o(g,w)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return s(c(),"months")},a.monthsShort=function(){return s(c(),"monthsShort","months",3)},a.weekdays=function(g){return s(c(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return s(c(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return s(c(),"weekdaysMin","weekdays",2,g)}}})})(gr);const xl=gr.exports;var mr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r="week",n="year";return function(a,l,u){var s=l.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var o=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=u(this).startOf(n).add(1,n).date(o),g=u(this).endOf(r);if(h.isBefore(g))return 1}var w=u(this).startOf(n).date(o).startOf(r).subtract(1,"millisecond"),D=this.diff(w,r,!0);return D<0?u(this).startOf("week").week():Math.ceil(D)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(mr);const Cl=mr.exports;var yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),u=this.year();return l===1&&a===11?u+1:a===0&&l>=52?u-1:u}}})})(yr);const Vl=yr.exports;var pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,a){n.prototype.dayOfYear=function(l){var u=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?u:this.add(l-u,"day")}}})})(pr);const Nl=pr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(br);const Tl=br.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(wr);const Al=wr.exports;Ee.extend(xl),Ee.extend(Ol),Ee.extend(vl),Ee.extend(Cl),Ee.extend(Vl),Ee.extend(Nl),Ee.extend(Tl),Ee.extend(Al);const Il=[dn,hn,gn,mn,bn,ae,vn,On,ct,Cn,In,jn,Dn,kn,Hn,Gn,Yn,Zn,Qn,nr,ir,or,ur,cr,ut,Mt],Rl=new Gr(Il,[Ur],"4.0.0");Object.defineProperty(d,"clone",{enumerable:!0,get:()=>L.clone}),Object.defineProperty(d,"extend",{enumerable:!0,get:()=>L.extend}),Object.defineProperty(d,"isArray",{enumerable:!0,get:()=>L.isArray}),Object.defineProperty(d,"isDate",{enumerable:!0,get:()=>L.isDate}),Object.defineProperty(d,"isESModule",{enumerable:!0,get:()=>L.isESModule}),Object.defineProperty(d,"isEqual",{enumerable:!0,get:()=>L.isEqual}),Object.defineProperty(d,"isFunction",{enumerable:!0,get:()=>L.isFunction}),Object.defineProperty(d,"isMap",{enumerable:!0,get:()=>L.isMap}),Object.defineProperty(d,"isObject",{enumerable:!0,get:()=>L.isObject}),Object.defineProperty(d,"isPlainObject",{enumerable:!0,get:()=>L.isPlainObject}),Object.defineProperty(d,"isPromise",{enumerable:!0,get:()=>L.isPromise}),Object.defineProperty(d,"isSet",{enumerable:!0,get:()=>L.isSet}),Object.defineProperty(d,"isString",{enumerable:!0,get:()=>L.isString}),Object.defineProperty(d,"isSymbol",{enumerable:!0,get:()=>L.isSymbol}),Object.defineProperty(d,"toBoolean",{enumerable:!0,get:()=>L.toBoolean}),Object.defineProperty(d,"toNumber",{enumerable:!0,get:()=>L.toNumber}),Object.defineProperty(d,"toTypeString",{enumerable:!0,get:()=>L.toTypeString}),Object.defineProperty(d,"FoxAffix",{enumerable:!0,get:()=>f.ElAffix}),Object.defineProperty(d,"FoxAlert",{enumerable:!0,get:()=>f.ElAlert}),Object.defineProperty(d,"FoxAside",{enumerable:!0,get:()=>f.ElAside}),Object.defineProperty(d,"FoxAutoResizer",{enumerable:!0,get:()=>f.ElAutoResizer}),Object.defineProperty(d,"FoxAutocomplete",{enumerable:!0,get:()=>f.ElAutocomplete}),Object.defineProperty(d,"FoxAvatar",{enumerable:!0,get:()=>f.ElAvatar}),Object.defineProperty(d,"FoxBacktop",{enumerable:!0,get:()=>f.ElBacktop}),Object.defineProperty(d,"FoxBadge",{enumerable:!0,get:()=>f.ElBadge}),Object.defineProperty(d,"FoxBreadcrumb",{enumerable:!0,get:()=>f.ElBreadcrumb}),Object.defineProperty(d,"FoxBreadcrumbItem",{enumerable:!0,get:()=>f.ElBreadcrumbItem}),Object.defineProperty(d,"FoxButton",{enumerable:!0,get:()=>f.ElButton}),Object.defineProperty(d,"FoxButtonGroup",{enumerable:!0,get:()=>f.ElButtonGroup}),Object.defineProperty(d,"FoxCalendar",{enumerable:!0,get:()=>f.ElCalendar}),Object.defineProperty(d,"FoxCard",{enumerable:!0,get:()=>f.ElCard}),Object.defineProperty(d,"FoxCarousel",{enumerable:!0,get:()=>f.ElCarousel}),Object.defineProperty(d,"FoxCarouselItem",{enumerable:!0,get:()=>f.ElCarouselItem}),Object.defineProperty(d,"FoxCascader",{enumerable:!0,get:()=>f.ElCascader}),Object.defineProperty(d,"FoxCascaderPanel",{enumerable:!0,get:()=>f.ElCascaderPanel}),Object.defineProperty(d,"FoxCheckTag",{enumerable:!0,get:()=>f.ElCheckTag}),Object.defineProperty(d,"FoxCheckbox",{enumerable:!0,get:()=>f.ElCheckbox}),Object.defineProperty(d,"FoxCheckboxButton",{enumerable:!0,get:()=>f.ElCheckboxButton}),Object.defineProperty(d,"FoxCheckboxGroup",{enumerable:!0,get:()=>f.ElCheckboxGroup}),Object.defineProperty(d,"FoxCol",{enumerable:!0,get:()=>f.ElCol}),Object.defineProperty(d,"FoxCollapse",{enumerable:!0,get:()=>f.ElCollapse}),Object.defineProperty(d,"FoxCollapseItem",{enumerable:!0,get:()=>f.ElCollapseItem}),Object.defineProperty(d,"FoxCollapseTransition",{enumerable:!0,get:()=>f.ElCollapseTransition}),Object.defineProperty(d,"FoxColorPicker",{enumerable:!0,get:()=>f.ElColorPicker}),Object.defineProperty(d,"FoxConfigProvider",{enumerable:!0,get:()=>f.ElConfigProvider}),Object.defineProperty(d,"FoxContainer",{enumerable:!0,get:()=>f.ElContainer}),Object.defineProperty(d,"FoxDatePicker",{enumerable:!0,get:()=>f.ElDatePicker}),Object.defineProperty(d,"FoxDescriptions",{enumerable:!0,get:()=>f.ElDescriptions}),Object.defineProperty(d,"FoxDescriptionsItem",{enumerable:!0,get:()=>f.ElDescriptionsItem}),Object.defineProperty(d,"FoxDialog",{enumerable:!0,get:()=>f.ElDialog}),Object.defineProperty(d,"FoxDivider",{enumerable:!0,get:()=>f.ElDivider}),Object.defineProperty(d,"FoxDrawer",{enumerable:!0,get:()=>f.ElDrawer}),Object.defineProperty(d,"FoxDropdown",{enumerable:!0,get:()=>f.ElDropdown}),Object.defineProperty(d,"FoxDropdownItem",{enumerable:!0,get:()=>f.ElDropdownItem}),Object.defineProperty(d,"FoxDropdownMenu",{enumerable:!0,get:()=>f.ElDropdownMenu}),Object.defineProperty(d,"FoxEmpty",{enumerable:!0,get:()=>f.ElEmpty}),Object.defineProperty(d,"FoxFooter",{enumerable:!0,get:()=>f.ElFooter}),Object.defineProperty(d,"FoxForm",{enumerable:!0,get:()=>f.ElForm}),Object.defineProperty(d,"FoxFormItem",{enumerable:!0,get:()=>f.ElFormItem}),Object.defineProperty(d,"FoxHeader",{enumerable:!0,get:()=>f.ElHeader}),Object.defineProperty(d,"FoxIcon",{enumerable:!0,get:()=>f.ElIcon}),Object.defineProperty(d,"FoxImage",{enumerable:!0,get:()=>f.ElImage}),Object.defineProperty(d,"FoxImageViewer",{enumerable:!0,get:()=>f.ElImageViewer}),Object.defineProperty(d,"FoxInput",{enumerable:!0,get:()=>f.ElInput}),Object.defineProperty(d,"FoxInputNumber",{enumerable:!0,get:()=>f.ElInputNumber}),Object.defineProperty(d,"FoxLink",{enumerable:!0,get:()=>f.ElLink}),Object.defineProperty(d,"FoxMain",{enumerable:!0,get:()=>f.ElMain}),Object.defineProperty(d,"FoxMenu",{enumerable:!0,get:()=>f.ElMenu}),Object.defineProperty(d,"FoxMenuItem",{enumerable:!0,get:()=>f.ElMenuItem}),Object.defineProperty(d,"FoxMenuItemGroup",{enumerable:!0,get:()=>f.ElMenuItemGroup}),Object.defineProperty(d,"FoxOption",{enumerable:!0,get:()=>f.ElOption}),Object.defineProperty(d,"FoxOptionGroup",{enumerable:!0,get:()=>f.ElOptionGroup}),Object.defineProperty(d,"FoxPageHeader",{enumerable:!0,get:()=>f.ElPageHeader}),Object.defineProperty(d,"FoxPagination",{enumerable:!0,get:()=>f.ElPagination}),Object.defineProperty(d,"FoxPopconfirm",{enumerable:!0,get:()=>f.ElPopconfirm}),Object.defineProperty(d,"FoxPopover",{enumerable:!0,get:()=>f.ElPopover}),Object.defineProperty(d,"FoxPopper",{enumerable:!0,get:()=>f.ElPopper}),Object.defineProperty(d,"FoxProgress",{enumerable:!0,get:()=>f.ElProgress}),Object.defineProperty(d,"FoxRadio",{enumerable:!0,get:()=>f.ElRadio}),Object.defineProperty(d,"FoxRadioButton",{enumerable:!0,get:()=>f.ElRadioButton}),Object.defineProperty(d,"FoxRadioGroup",{enumerable:!0,get:()=>f.ElRadioGroup}),Object.defineProperty(d,"FoxRate",{enumerable:!0,get:()=>f.ElRate}),Object.defineProperty(d,"FoxResult",{enumerable:!0,get:()=>f.ElResult}),Object.defineProperty(d,"FoxRow",{enumerable:!0,get:()=>f.ElRow}),Object.defineProperty(d,"FoxScrollbar",{enumerable:!0,get:()=>f.ElScrollbar}),Object.defineProperty(d,"FoxSelect",{enumerable:!0,get:()=>f.ElSelect}),Object.defineProperty(d,"FoxSelectV2",{enumerable:!0,get:()=>f.ElSelectV2}),Object.defineProperty(d,"FoxSkeleton",{enumerable:!0,get:()=>f.ElSkeleton}),Object.defineProperty(d,"FoxSkeletonItem",{enumerable:!0,get:()=>f.ElSkeletonItem}),Object.defineProperty(d,"FoxSlider",{enumerable:!0,get:()=>f.ElSlider}),Object.defineProperty(d,"FoxSpace",{enumerable:!0,get:()=>f.ElSpace}),Object.defineProperty(d,"FoxStep",{enumerable:!0,get:()=>f.ElStep}),Object.defineProperty(d,"FoxSteps",{enumerable:!0,get:()=>f.ElSteps}),Object.defineProperty(d,"FoxSubMenu",{enumerable:!0,get:()=>f.ElSubMenu}),Object.defineProperty(d,"FoxSwitch",{enumerable:!0,get:()=>f.ElSwitch}),Object.defineProperty(d,"FoxTabPane",{enumerable:!0,get:()=>f.ElTabPane}),Object.defineProperty(d,"FoxTable",{enumerable:!0,get:()=>f.ElTable}),Object.defineProperty(d,"FoxTableColumn",{enumerable:!0,get:()=>f.ElTableColumn}),Object.defineProperty(d,"FoxTableV2",{enumerable:!0,get:()=>f.ElTableV2}),Object.defineProperty(d,"FoxTabs",{enumerable:!0,get:()=>f.ElTabs}),Object.defineProperty(d,"FoxTag",{enumerable:!0,get:()=>f.ElTag}),Object.defineProperty(d,"FoxTimePicker",{enumerable:!0,get:()=>f.ElTimePicker}),Object.defineProperty(d,"FoxTimeSelect",{enumerable:!0,get:()=>f.ElTimeSelect}),Object.defineProperty(d,"FoxTimeline",{enumerable:!0,get:()=>f.ElTimeline}),Object.defineProperty(d,"FoxTimelineItem",{enumerable:!0,get:()=>f.ElTimelineItem}),Object.defineProperty(d,"FoxTooltip",{enumerable:!0,get:()=>f.ElTooltip}),Object.defineProperty(d,"FoxTransfer",{enumerable:!0,get:()=>f.ElTransfer}),Object.defineProperty(d,"FoxTree",{enumerable:!0,get:()=>f.ElTree}),Object.defineProperty(d,"FoxTreeSelect",{enumerable:!0,get:()=>f.ElTreeSelect}),Object.defineProperty(d,"FoxTreeV2",{enumerable:!0,get:()=>f.ElTreeV2}),Object.defineProperty(d,"FoxUpload",{enumerable:!0,get:()=>f.ElUpload}),d.AutocompleteItem=Yn,d.Broadcast=Et,d.BroadcastKey=X,d.CascaderItem=Gn,d.CheckboxItem=ir,d.Content=mn,d.DataItemsKey=Ae,d.DateItem=jn,d.DialogItem=cr,d.Domain=Ot,d.DomainKey=be,d.FooterBar=gn,d.Group=bn,d.HeaderBar=hn,d.HintText=ct,d.InputItem=Cn,d.Item=ae,d.Mapping=Mt,d.MoneyItem=Hn,d.Page=dn,d.Price=ut,d.PriorityPolicy=nt,d.RadioItem=nr,d.RateItem=or,d.RowItem=On,d.SelectItem=In,d.SlotItem=vn,d.SwitchItem=ur,d.TableItem=Qn,d.TableMappingColumn=Zn,d.TimeItem=Dn,d.TimeSelectItem=kn,d.UniqueID=$n,d.ValidateSchema=nn,d.ValidateSchemaKey=ye,d.clearNonNumber=vr,d.compareTo=$t,d.createBroadcast=Ye,d.createValidateSchema=Ze,d.debounce=kr,d.decimalLength=Ut,d.default=Rl,d.defineBroadcast=Nr,d.defineDataItem=an,d.defineDomain=Ct,d.defineItem=re,d.definePageState=ln,d.deleteGlobalValidator=Rr,d.disabledProperty=ce,d.divide=wt,d.excludeProps=le,d.floatData=Vr,d.getGlobalValidateCheckEvents=Qt,d.getGlobalValidateResetEvents=tn,d.getPageContentAreaHeight=et,d.getPageContentAreaWidth=tt,d.getPageFooterAreaHeight=Qe,d.getPageHeaderAreaHeight=Je,d.getRootDomain=He,d.includeProps=Cr,d.indexOf=Or,d.integerLength=Yt,d.isBrowser=Pe,d.isEmptyString=Z,d.isInnerPage=Br,d.isNumberString=Wt,d.isRegExp=Gt,d.isSubPage=Pr,d.lastIndexOf=xr,d.multiply=Ht,d.negate=Kt,d.numberFormat=St,d.property=Ie,d.raf=Er,d.readonlyProperty=ue,d.setGlobalValidateCheckEvents=jr,d.setGlobalValidateHandler=Ar,d.setGlobalValidateMessages=Dr,d.setGlobalValidateResetEvents=Mr,d.setGlobalValidator=Ir,d.throttle=vt,d.toPadding=he,d.toPx=Q,d.toPxDesc=J,d.toValue=Y,d.unNumberFormat=zt,d.updatePageState=Vt,d.useBroadcast=_e,d.useDomain=we,d.useExpose=se,d.usePageState=Xe,d.usePosition=Sn,d.useRect=st,d.valueLength=We,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(h,a){typeof exports=="object"&&typeof module<"u"?a(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"],a):(h=typeof globalThis<"u"?globalThis:h||self,a(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,a,Be,g,st,ve){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Thu May 18 2023 15:10:00 GMT+0800 (中国标准时间)
3
+ *//*!
4
+ * @fox-js/big-decimal v4.0.1-5 Mon Jan 30 2023 14:39:30 GMT+0800 (中国标准时间)
5
+ */function ut(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=he(e),t=he(t),[e,t]=Vt(he(e),he(t)),r==1&&(n==1?e=Nt(e):t=Nt(t));let l=nn(e,t);return r?r==2?"-"+he(l):e.length<l.length?he(l.substring(1)):"-"+he(Nt(l)):he(l)}function Nt(e){let t="",r=e.length,n=e.split(".")[1],l=n?n.length:0;for(let s=0;s<r;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let o=l>0?"0."+new Array(l).join("0")+"1":"1";return nn(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 Vt(e,t){let r=e.split("."),n=t.split("."),l=r[0].length,o=n[0].length;return l>o?n[0]=new Array(Math.abs(l-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(l-o)+1).join("0")+(r[0]?r[0]:""),l=r[1]?r[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"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(l-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function nn(e,t){[e,t]=Vt(e,t);let r="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){r="."+r;continue}let o=parseInt(e[l])+parseInt(t[l])+n;r=o%10+r,n=Math.floor(o/10)}return n?n.toString()+r:r}var le=(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))(le||{});function Qe(e,t=0,r=le.HALF_EVEN){if(r===le.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=Qe(e,0,r),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return o.length,rn(l[1],o,n,r)?(n?"-":"")+kt(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&&rn(i,s,n,r)&&(s=kt(s),s.length>t)?(n?"-":"")+kt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function rn(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===le.DOWN||!r&&n===le.FLOOR||r&&n===le.CEILING)return!1;if(n===le.UP||r&&n===le.FLOOR||!r&&n===le.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 le.HALF_DOWN:return!1;case le.HALF_UP:return!0;case le.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function kt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let r=e.length-1,n="";for(let l=r;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 It(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=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 f=e;e=t,t=f}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,c="";for(let f=0;f<s;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let w=0;for(let E=t.length-1;E>=d&&E>=0;E--)u[E]>-1&&u[E]<e.length&&(w+=parseInt(e[u[E]--])*parseInt(t[E]));w+=i,i=Math.floor(w/10),c=w%10+c,d--}return c=et(ia(c,o)),r==1&&(c="-"+c),c}function ia(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 At(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let 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 d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=he(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=he(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let c=e.length-d+l;e=he(e.substring(0,c)+"."+e.substring(c))}else l==d&&(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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),o=d,i="0."+new Array(d).join("0")}for(r=r+2;o<=r;){let d=0;for(;parseInt(u)>=parseInt(t);)u=ut(u,"-"+t),d++;i+=d,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(Qe(i,r-2))}function Rt(e,t){return e=e.toString(),t=t.toString(),t=jt(t),ut(e,t)}function jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function an(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),ln(e),ln(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Rt(e,It(t,Qe(At(e,t),0,le.FLOOR)));return r+n}function ln(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function on(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=Vt(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]?r?-1:1:r?1:-1;return 0}class X{value;static RoundingModes=le;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[r,n]=t.split(/[eE]/);r=he(r);let l="";r[0]=="-"&&(l="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=l+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=l+he(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=X.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=X.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<r?(r=i,i=0):i-=r,s=t.substring(i,i+r)+(i<o-r&&i>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return X.getPrettyValue(this.value,t,r)}static round(t,r=0,n=le.HALF_EVEN){if(t=X.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Qe(t,r,n)}round(t=0,r=le.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new X(Qe(this.value,t,r))}static floor(t){return t=X.validate(t),t.indexOf(".")===-1?t:X.round(t,0,le.FLOOR)}floor(){return this.value.indexOf(".")===-1?new X(this.value):new X(this.value).round(0,le.FLOOR)}static ceil(t){return t=X.validate(t),t.indexOf(".")===-1?t:X.round(t,0,le.CEILING)}ceil(){return this.value.indexOf(".")===-1?new X(this.value):new X(this.value).round(0,le.CEILING)}static add(t,r){return t=X.validate(t),r=X.validate(r),ut(t,r)}add(t){return new X(ut(this.value,t.getValue()))}static subtract(t,r){return t=X.validate(t),r=X.validate(r),Rt(t,r)}subtract(t){return new X(Rt(this.value,t.getValue()))}static multiply(t,r){return t=X.validate(t),r=X.validate(r),It(t,r)}multiply(t){return new X(It(this.value,t.getValue()))}static divide(t,r,n){return t=X.validate(t),r=X.validate(r),At(t,r,n)}divide(t,r){return new X(At(this.value,t.getValue(),r))}static modulus(t,r){return t=X.validate(t),r=X.validate(r),an(t,r)}modulus(t){return new X(an(this.value,t.getValue()))}static compareTo(t,r){return t=X.validate(t),r=X.validate(r),on(t,r)}compareTo(t){return on(this.value,t.getValue())}static negate(t){return t=X.validate(t),jt(t)}negate(){return new X(jt(this.value))}}function sn(e,t){return X.multiply(`${e}`,`${t}`)}function qt(e,t,r=8){return X.divide(`${e}`,`${t}`,r)}function Bt(e,t){return e=`${e}`,t=`${t}`,X.compareTo(e,t)}function un(e){return X.negate(e)}function ct(e,t=-1,r=!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="",d=o.indexOf(".");d!=-1&&(i=o.substring(0,d),u=o.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):r&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let f="",w=i.split("").reverse();for(let E=0;E<w.length;E++)f+=w[E]+((E+1)%n==0&&E+1!=w.length?l:"");u.length==0?c=`${s}${f.split("").reverse().join("")}`:c=`${s}${f.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function cn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const sa=Array.isArray,ua=e=>ft(e)==="[object Map]",ca=e=>ft(e)==="[object Set]",fa=e=>e instanceof Date,Mt=e=>typeof e=="function",da=e=>typeof e=="string",ha=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",ga=e=>ke(e)&&Mt(e.then)&&Mt(e.catch),fn=Object.prototype.toString,ft=e=>fn.call(e),Dt=e=>ft(e)==="[object Object]",dn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ma(e){return e.__esModule||dn&&e[Symbol.toStringTag]==="Module"}const pa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Me(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},r=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[r]??{},r++),typeof t!="object"&&(t={});r<n;r++)if(e[r]!==null&&e[r]!==void 0){let o=e[r];for(let s in o){let i=t[s],u=o[s];if(i!==u)if(l===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=Me(l,d,u)}else u!==void 0&&(t[s]=u)}}return t}function Lt(e,t,r=!1){if(!r)Me(!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)&&!Dt(s))continue;o=Lt(o,s,r),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)&&!Dt(s))continue;o=Lt(o,s,r),e[l]=o}else{if(typeof s=="function")continue;e[l]=s}}}return e}const _t=pa?Promise.resolve():null;function ya(e,...t){_t!==null?t&&t.length>0?_t.then(()=>{e(t)}):_t.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ee(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function ae(e){return typeof e=="number"?e:Number(e)}const ba={"[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 dt(e){let r=Object.prototype.toString.call(e);return e==null?String(e):ba[r]||"object"}function hn(e){return e&&typeof e=="object"&&"setInterval"in e}function gn(e){return!e||e.offsetParent===null}function mn(e){let t=!!e&&"length"in e&&e.length,r=dt(e);return r==="function"||hn(e)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function pn(e,t){let r=+t.length,n=0,l=e.length;for(;n<r;n++)e[l++]=t[n];return e.length=l,e}function wa(e,t=[]){let r=t;return e!=null&&(mn(Object(e))?pn(r,typeof e=="string"?[e]:e):r.push(e)),r}function De(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let r=dt(e),n=dt(t);if(r!==n)return!1;if(r==="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],d=t[i];if(!De(u,d))return!1}return!0}else if(r==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let o=e[l],s=t[l];if(!De(o,s))return!1}return!0}return!1}const He=typeof window<"u",Sa=He&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function yn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const oe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function bn(e){return oe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),oe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function wn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Sn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function $n(e,t,r){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(r,"")}function $a(e,t=!0,r=!0){t?e=$n(e,".",/\./g):e=e.replace(/\./g,""),r?e=$n(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function va(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(De(e,r))return!0}):t.indexOf(e)}function Ea(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(De(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function tt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function xa(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function ge(e,...t){const r=[];t.forEach(l=>{Reflect.apply([].push,r,Reflect.ownKeys(l))});const n={};for(const l in e)r.includes(l)||(n[l]=e[l]);return n}const Ca=(e,t,r)=>{const n=Object.assign({},e),l=Object.assign({},r);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},se=Symbol.for("BroadcastKey");class Ft{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...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="*"):yn(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(r);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&o.push(u)}const i=this.proxy??{};if(typeof i[r]=="function"){const u=Reflect.apply(i[r],i,[...n]);u!=null&&o.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},r,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,o,[...i])}),o}emitToChildren(t,r,...n){const l=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(t,r){this.callbacks.set(t,r)}}function ht(e,t,r,n){const l=new Ft(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Ta(e,t,r){const n=r;if(n[se])return n[se];const l=a.inject(se,null),o=new Ft(l,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[se]=o,a.provide(se,o),a.onUnmounted(()=>{o.destroy(),n[se]=void 0}),o}function nt(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[se]??a.inject(se,null):a.inject(se,null)}const Le=e=>e.default??e;class Oa{error(t,r){const n=r,l=nt(r);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=nt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=nt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const l=n,o=nt(n),s=r.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 vn=new Oa;function Na(e){vn=e}function Va(e,t){Le(Be).setValidator(e,t)}function ka(e){Le(Be).deleteValidator(e)}let En=["blur","clear"];function Ia(e){En=e}function xn(){return En}let Cn=["focus","change"];function Aa(e){Cn=e}function Tn(){return Cn}function Ra(e){Le(Be).messages(e)}function rt(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const l=t.findIndex(o=>o.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function gt(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 xe=Symbol("ValidateSchemaKey");class On{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,r,n){this.parent=t,this.descriptor=r,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=a.effectScope(),this.scope.run(()=>{a.watchEffect(()=>{const r=gt(rt(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=gt(n);const l=rt(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(l,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const l=vn;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,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,r,n=!1){n?Le(Be).setValidator(t,r):this.validators[t]=r}getValidator(t){let r=this.validators[t]??null;return r||(r=this.parent?.getValidator(t)??null),r}deleteValidator(t,r=!1){r?Le(Be).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)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 r=rt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=gt(t):this.rules=gt([t]);const n=rt(this.attrRules,this.rules);a.nextTick(()=>{this.decorate(n,r)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let r=rt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},i=Le(Be),u=new i(l),d=this.proxy??s;return u.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let w="error";Array.isArray(f.errors)&&f.errors.length>0&&(w=f.errors[0].message??w,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(w)}return f}).catch(f=>{const w=f.message??`${f}`;return this.error(w),f})}}return Promise.resolve({pass:!0})}}function mt(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const l=r.valueName;r.validateHandler={getValue(o){return o[l]}}}return new On(t,r,e)}const Nn=Symbol.for("EventEmitterKey");class ja{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let l=n.findIndex(o=>o===r);l!==-1&&n.splice(l,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(l=>{try{Reflect.apply(l,null,[t,...r])}catch(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function at(e,t){let r=null;return function(...n){r&&clearTimeout(r),r=setTimeout(()=>{r=null,Reflect.apply(e,null,[...n])},t)}}function Vn(e,t){let r=0;return function(...n){const l=new Date().getTime();l-r<t||(r=l,Reflect.apply(e,null,[...n]))}}function qa(e,t){const r=at((n,l)=>{e=n,l()},t);return a.customRef((n,l)=>({get(){return n(),e},set(o){r(o,l)}}))}const Se=Symbol("DomainKey"),ze=Symbol("DataItemsKey");class pt{_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=a.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const l=t[n];r.length>0&&r.indexOf(l)!==-1||(this._props[n]=l)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const l=n._props[t];r.push(l)}n=n._parent}return r}}const Ba=new pt;function Ke(){return Ba}function Ce(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[Se]??a.inject(Se,null):a.inject(Se,null)}const Pt=Symbol("OriginalDateKey");function Ht(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(Se,null);s===null&&(s=Ke());const i=e||t.prop||t.name,u=new pt(i);u.parent=s;const d=p=>{o[Pt]||w(p),u.set("modelValue",p)},c=()=>u.getForSelf("modelValue")??null,f=()=>o[Pt]??null,w=p=>{const T={};Me(!0,T,a.toRaw(p)),o[Pt]=T};a.isReactive(t)?a.watchEffect(()=>{u.merge(t,r)}):u.merge(t,r),t.modelValue&&w(t.modelValue),o[Se]=u,a.provide(Se,u);let E=null,y=null;if(l!==null){const p=a.inject(se,null);E=ht(o,p,i,n),u.broadcast=E,o[se]=E,a.provide(se,E),o.broadcast=(v,O,...B)=>Reflect.apply(E.emit,E,[v,O,...B]);const T=a.inject(xe,null);y=mt(o,T,{componentName:""}),u.validateSchema=y,o[xe]=y,a.provide(xe,y),o[ze]=new Map,o.validate=(v=!0)=>{const O=[];let B=null;const I={deep:!1};if(v===!0)B={name:"*"};else if(Array.isArray(v)&&v.length>0){const N=v;B={name:k=>k?N.indexOf(k)!==-1:!1}}else if(v!=null&&typeof v=="object"){const N=v;if(I.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const k=N.include;B={name:b=>b?k.indexOf(b)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const k=N.exclude;B={name:b=>b?k.indexOf(b)===-1:!1}}else B={name:"*"}}if(B){const N=E?.emitToChildren(B,"validate",I);N&&Reflect.apply([].push,O,N)}return O.length==1?O[0]:O.length>1?Promise.all(O).then(N=>{let k=[];return N.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(k=[...k,...b.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(v,O=!0)=>{if(O){const B=Reflect.ownKeys(v),I=[...B],N={name:k=>{const b=B.includes(k);if(b){const V=I.findIndex(M=>k===M);V!==-1&&I.splice(V,1)}return b}};E?.emitToChildren(N,"setNameValidateRules",v,!1),I.length>0&&I.forEach(k=>{let b=String(k);const M=An(u,b,{componentName:"",fieldName:b,pureDataValidate:!0},E,y);o[ze].set(b,M);const R=v[b];R&&M.validateSchema.setRule(R)})}},o.clearValidate=(v=!0)=>{let O=null;if(v===!0)O={name:"*"};else if(Array.isArray(v)&&v.length>0){const B=v;O={name:I=>I?B.indexOf(I)!==-1:!1}}else if(v!=null&&typeof v=="object"){const B=v;if(Array.isArray(B.include)&&B.include.length>0){const I=B.include;O={name:N=>N?I.indexOf(N)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const I=B.exclude;O={name:N=>N?I.indexOf(N)===-1:!1}}else O={name:"*"}}O&&E?.emitToChildren(O,"clearValidate",!1)},o.resetFields=v=>{const O=c();if(!O)return;const B={};if(Me(!0,B,f()??{}),Array.isArray(v))v.forEach(I=>{O[I]=B[I]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(N=>{O[N]=B[N]});else if(v&&Array.isArray(v.exclude)){let I=v.exclude??[];Reflect.ownKeys(B).forEach(N=>{I.includes(N)||(O[N]=B[N])})}else Object.assign(O,B);o.clearValidate(v)},o.setModelValue=(v,O)=>{!O||O===i?d(v):E?.emitToChildren({name:O},"setModelValue",v)},o.getModelValue=()=>c()}return a.onUnmounted(()=>{u.destroy(),o[Se]=void 0,o[ze]&&(o[ze].clear(),o[ze]=void 0),E!==null&&(E.destroy(),o[se]=void 0),y!==null&&(y.destroy(),o[xe]=void 0)}),u}function kn(e,t,r=[]){const l=a.getCurrentInstance()?.proxy;let o=a.inject(Se,null);o===null&&(o=Ke());const s=e||t.prop||t.name,i=new pt(s);return i.parent=o,a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),l[Se]=i,a.provide(Se,i),a.onUnmounted(()=>{i.destroy(),l[Se]=void 0}),i}function In(e,t,r){const l=Ce(e)?.get("rules");if(!l)return;let o=l[r];o&&(Array.isArray(o)||(o=[o]),o.forEach(s=>{t.setRule(s)}))}function ce(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",s=a.inject(se,null),i=ht(l,s,o,r);l[se]=i,a.provide(se,i),l.broadcast=(y,p,...T)=>Reflect.apply(i.emit,i,[y,p,...T]);const u=a.inject(xe,null);e.fieldName=e.fieldName??o;const d=mt(l,u,e);l[xe]=d,a.provide(xe,d),In(l,d,o),l.validate=(y=null)=>{const p=[];let T=!1,v=!1;if(Array.isArray(y)&&y.indexOf(o)!==-1)v=!0,T=!0;else if(y&&typeof y=="object"){const O=y;O.ignoreHidden===!0&&gn(l.$el)?v=!1:(Array.isArray(O.include)&&O.include.indexOf(o)!==-1||Array.isArray(O.exclude)&&O.exclude.indexOf(o),v=!0),T=O.deep??!1}else typeof y=="boolean"&&(T=y),v=!0;if(v){const O=d?.validate();p.push(O)}if(T){let O=null;const B={deep:!1};if(y===!0)O={name:"*"};else if(Array.isArray(y)&&y.length>0){const I=y;O={name:N=>N?I.indexOf(N)!==-1:!1}}else if(y!=null&&typeof y=="object"){const I=y;if(B.ignoreHidden=I.ignoreHidden,Array.isArray(I.include)&&I.include.length>0){const N=I.include;O={name:k=>k?N.indexOf(k)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const N=I.exclude;O={name:k=>k?N.indexOf(k)===-1:!1}}else O={name:"*"}}if(O){const I=i.emitToChildren(O,"validate",B);Reflect.apply([].push,p,I)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(O=>{let B=[];return O.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(B=[...B,...I.errors])}),B.length>0?{pass:!1,errors:B}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>d?.setRule(y),l.setNameValidateRules=(y,p=!1)=>{const T=y[o];if(T&&d?.setRule(T),p){const v={name:O=>Reflect.ownKeys(y).includes(O)};i.emitToChildren(v,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(t??"")!==-1)&&d?.clear();let p=null;if(y===!0)p={name:"*"};else if(Array.isArray(y)&&y.length>0){const T=y;p={name:v=>v?T.indexOf(v)!==-1:!1}}else if(y!=null&&typeof y=="object"){const T=y;if(Array.isArray(T.include)&&T.include.length>0){const v=T.include;p={name:O=>O?v.indexOf(O)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const v=T.exclude;p={name:O=>O?v.indexOf(O)===-1:!1}}else p={name:"*"}}p&&i.emitToChildren(p,"clearValidate",!1)};const c=new ja(l);l[Nn]=c;const f=at((y="validate")=>{y==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:xn()).forEach(y=>{c.on(y,p=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Tn()).forEach(y=>{c.on(y,p=>{f("reset")})}),a.onUnmounted(()=>{i.destroy(),l[se]=void 0,d.destroy(),l[xe]=void 0,c.destroy(),l[Nn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(y,...p)=>{Reflect.apply(c.emit,c,[y,...p])},onEvent:(y,p)=>{Reflect.apply(c.on,c,[p])},offEvent:(y,p)=>{Reflect.apply(c.off,c,[p])}}}function An(e,t,r,n,l){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(d){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=mt({},l,r);o.validate=(d=null)=>{const c=[];let f=!1,w=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)w=!0,f=!0;else if(d&&typeof d=="object"){const E=d;Array.isArray(E.include)&&E.include.indexOf(s)!==-1||Array.isArray(E.exclude)&&E.exclude.indexOf(s),w=!0,f=E.deep??!1}else typeof d=="boolean"&&(f=d),w=!0;if(w){const E=i?.validate();c.push(E)}if(f){let E=null;const y={deep:!1};if(d===!0)E={name:"*"};else if(Array.isArray(d)&&d.length>0){const p=d;E={name:T=>T?p.indexOf(T)!==-1:!1}}else if(d!=null&&typeof d=="object"){const p=d;if(Array.isArray(p.include)&&p.include.length>0){const T=p.include;E={name:v=>v?T.indexOf(v)!==-1:!1}}else if(Array.isArray(p.exclude)&&p.exclude.length>0){const T=p.exclude;E={name:v=>v?T.indexOf(v)===-1:!1}}else E={name:"*"}}if(E){const p=u.emitToChildren(E,"validate",y);Reflect.apply([].push,c,p)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(E=>{let y=[];return E.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(y=[...y,...p.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>i?.setRule(d),o.setNameValidateRules=d=>{const c=d[s];c&&i?.setRule(c)};const u=ht(null,n,s,o);return{broadcast:u,validateSchema:i}}const Q=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ne(e,t)}px`:"";function ne(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 r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let l=Number(e.substring(0,r)),o=1;if(He){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(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ie="PageStateKey";function Ee(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ne(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ne(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ne(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ne(e.right))),t}function zt(e,t,r={},n=!0,l=-1,o=-1,s=0,i=0){if(e.headerHeight=ne(r.headerHeight??t.headerHeight),e.headerPadding=Ee(r.headerPadding??t.headerPadding),e.footerHeight=ne(r.footerHeight??t.footerHeight),e.footerPadding=Ee(r.footerPadding??t.footerPadding),e.contentPadding=Ee(r.contentPadding??t.contentPadding),n){const u=r.height??t.height;u?e.height=ne(u,o):e.height=ne(o)-ne(s,o)-ne(i,o),e.width=ne(r.width??t.width??0,l)}}function Rn(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=ne(l.top),n.safeAreaBottom=ne(l.bottom),n.safeAreaLeft=ne(l.left),n.safeAreaRight=ne(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,d=e.get("footerBarHeight")??0;zt(n,o,t,!0,s,i,u,d);const c=a.reactive(n),f=e.getForParent(Ie);f&&(n.height=St(e,f),n.width=$t(e,f),a.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{c.height=St(e,f),c.width=$t(e,f)}));const w=!f;return a.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,y,p=-1,T=-1,v=0,O=0])=>{zt(c,y,t,w,p,T,v,O)}),e.set(Ie,c),c}function yt(e){return e.get(Ie)}function bt(e,t){return t=t??e.get(Ie),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function wt(e,t){return t=t??e.get(Ie),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function St(e,t){if(t=t??e.get(Ie),t){const r=bt(e,t),n=wt(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function $t(e,t){return t=t??e.get(Ie),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ma(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Da(e){return!!e.getForParent(Ie)}var Te=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Te||{});function Kt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,r=1,n){const l=Ce();return l==null?e:r===0?a.computed(()=>{const o=l.getAll(t);for(let i=o.length-1;i>=0;i--){const u=o[i];if(Kt(u,n))return u}const s=e.value;return Kt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Kt(o,n)?o:l?.get(t)})}function pe(e){return $e(e,"readonly",0,function(r){return ee(r)})}function ye(e){return $e(e,"disabled",0,function(r){return ee(r)})}function re(e,t="modelValue",r){const n=a.toRef(e,t);let l=n.value;typeof r=="function"&&(l=r(n.value));const o=a.ref(l);return a.watch(n,s=>{if(typeof r=="function"){const i=r(s);i!==o.value&&(o.value=i)}else s!==o.value&&(o.value=s)}),o}const jn=new Map,vt=new Map;let Wt=null;function La(e){Wt=e}function qn(e,t,r){if(r){let n=vt.get(r);n||(n=new Map,vt.set(r,n)),n.set(e,t)}else jn.set(e,t)}function _e(e,t,r){!r&&Wt&&(r=Wt(e)??void 0);let n=null;if(r){let l=vt.get(r);l&&(n=l.get(t))}return n||(n=jn.get(t)),n}function _a(e,t){for(let r in e){const n=e[r];qn(r,n,t)}}function Fa(e){vt.delete(e)}function Pa(){return{top:0,left:0,bottom:0,right:0}}function Ha(e=0,t=0){if(He){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:r,height:n-ne(e,n)-ne(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class za{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){r?.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=Ke();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Vn(()=>{const i={...r},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,l)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&l.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,o=Me({},Pa(),t.safeAreaInset),s=Ha(n,l),i=Me({},s.pageLayout,t.pageLayout);r=r??Ke(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",l),r.set("pageLayout",i),r.set("rootWidth",s.rootWidth),r.set("rootHeight",s.rootHeight)}setScopeGetter(t){La(t)}setAPI(t,r,n){qn(t,r,n)}getAPI(t,r,n){return _e(t,r,n)}batchSetAPI(t,r){_a(t,r)}clearScopeAPI(t){Fa(t)}getRootDomain(){return Ke()}}const Ka=[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],Wa=[g.ElInfiniteScroll,g.ElLoading,g.ElMessage,g.ElMessageBox,g.ElNotification,g.ElPopoverDirective],Ga=e=>{Ka.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Wa.forEach(t=>{e.use(t)})};function J(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},a.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,a.defineComponent(r)}}}const ue={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}},me={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}},Bn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Mn={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:"flex"},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}},Dn=[];for(const e in Mn)Dn.push(e);function fe(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Ya=Symbol.for("InnerPageScopeKey"),Ua=(e,t)=>({inheritAttrs:!0,props:{...ue,...Bn,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(r,n){const l=Ht(r.name,r);if(l){const d=Rn(l,r);fe({getPageContentHeight:()=>St(l,d),getPageContentWidth:()=>$t(l,d),getPageHeaderHeight:()=>bt(l,d),getPageFooterHeight:()=>wt(l,d)});const c=a.inject(Ya,!1);d&&c&&(d.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),s=a.computed(()=>({})),i=a.getCurrentInstance(),u=d=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(d,!0)};return a.watch(()=>r.rules,(d,c)=>{if(!d&&!c)return;const f=a.toRaw(c),w=a.toRaw(d),E=w?Reflect.ownKeys(w):[];(f?Reflect.ownKeys(f):[]).forEach(p=>{E.includes(p)||(w[p]=[])}),u(w)},{deep:!0}),a.onMounted(()=>{if(r.rules){const d=a.toRaw(r.rules);u(d)}}),a.onBeforeUnmount(()=>{}),{classes:o,styles:s}}}),{componentName:Xa,create:Za,scope:_s}=J("page"),Ja=Za(Ua(Xa));function Qa(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles),title:""},[a.renderSlot(e.$slots,"default")],6)}const Ae=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},Ln=Ae(Ja,[["render",Qa]]),el=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const l=Ce(),o=l?yt(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),i=r.height!==null&&r.height!==void 0?ne(r.height):null,u=a.computed(()=>{const b={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const V=Ee(r.padding??o.footerPadding);return Object.assign(b,V),i&&(o.headerHeight=i),b.height=o.headerHeight,b.safeAreaTop=o.safeAreaTop,b.safeAreaTop&&(b.top=b.safeAreaTop+(V.top??0),b.height=b.height+o.safeAreaTop),b.height,b.safeAreaTop,b}if(i&&(b.height=i),r.padding){const V=Ee(r.padding);Object.assign(b,V)}return b});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=a.computed(()=>{const b={};return u.value.height!==null&&u.value.height!==void 0&&(b.height=`${u.value.height}px`),u.value.top!==null&&u.value.top!==void 0&&(b.paddingTop=`${u.value.top}px`),u.value.left!==null&&u.value.left!==void 0&&(b.paddingLeft=`${u.value.left}px`),u.value.right!==null&&u.value.right!==void 0&&(b.paddingRight=`${u.value.right}px`),u.value.bottom!==null&&u.value.bottom!==void 0&&(b.paddingBottom=`${u.value.bottom}px`),b}),c=a.computed(()=>{const b={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(b.top=`${u.value.safeAreaTop}px`),b}),f=a.computed(()=>{const b={};return u.value.safeAreaTop!==null&&u.value.safeAreaTop!==void 0&&(b.top=`${u.value.safeAreaTop}px`),b}),w=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),E=a.computed(()=>!(u.value.height!==null&&u.value.height!==void 0&&u.value.height<=0)),y=a.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),p=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),T=a.computed(()=>{let b={};return typeof r.leftIcon=="object"?Object.assign(b,r.leftIcon):b.name=r.leftIcon,b}),v=a.computed(()=>{let b={};return typeof r.titleIcon=="object"?Object.assign(b,r.titleIcon):b.name=r.titleIcon,b}),O=a.computed(()=>{let b={};return typeof r.rightIcon=="object"?Object.assign(b,r.rightIcon):b.name=r.rightIcon,b});function B(){n.emit("back")}function I(){n.emit("click-title")}function N(){n.emit("click-right")}function k(){n.emit("click-right-text")}return{classes:s,styles:d,mHeaderShow:E,leftStyles:c,rightStyles:f,mLeftShow:w,mTitleShow:y,mRightShow:p,mLeftIcon:T,mTitleIcon:v,mRightIcon:O,handleLeft:B,handleCenter:I,handleRight:N,handleRightText:k}}}),{componentName:tl,create:nl,scope:Fs}=J("header-bar"),rl=nl(el(tl)),al={key:1,class:"fox-header-bar__title"};function ll(e,t,r,n,l,o){const s=a.resolveComponent("fox-ext-icon");return e.mHeaderShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(a.openBlock(),a.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:a.normalizeStyle(e.leftStyles)},[a.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(a.openBlock(),a.createBlock(s,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):a.createCommentVNode("",!0),e.leftText?(a.openBlock(),a.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},a.toDisplayString(e.leftText),1)):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0),e.mTitleShow?(a.openBlock(),a.createElementBlock("view",al,[a.renderSlot(e.$slots,"default",{},()=>[e.title?(a.openBlock(),a.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...i)=>e.handleTitle&&e.handleTitle(...i))},a.toDisplayString(e.title),1)):a.createCommentVNode("",!0),e.titleIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])])):a.createCommentVNode("",!0),e.mRightShow?(a.openBlock(),a.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:a.normalizeStyle(e.rightStyles)},[a.renderSlot(e.$slots,"right",{},()=>[e.rightText?(a.openBlock(),a.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...i)=>e.handleRightText&&e.handleRightText(...i))},a.toDisplayString(e.rightText),1)):a.createCommentVNode("",!0),e.rightIcon?(a.openBlock(),a.createBlock(s,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0)])],6)):a.createCommentVNode("",!0)}const _n=Ae(rl,[["render",ll]]);function ol(e,t){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const l=Ce(),o=l?yt(l):null;o&&(o.footerMounted=!0);const s=a.computed(()=>{const c=e;let f=e;return r.align==="left"?f=`${f}__left`:r.align==="right"?f=`${f}__right`:f=`${f}__center`,{[c]:!0,[f]:!0}}),i=r.height!==null&&r.height!==void 0?ne(r.height):null,u=a.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const f=Ee(r.padding??o.footerPadding);return Object.assign(c,f),i&&(o.footerHeight=i),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(f.bottom??0)),c}if(i&&(c.height=i),r.padding){const f=Ee(r.padding);Object.assign(c,f)}return c});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const d=a.computed(()=>{const c={};return u.value.height!==null&&u.value.height!==void 0&&(c.height=Q(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(c.paddingTop=Q(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(c.paddingLeft=Q(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(c.paddingRight=Q(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(c.paddingBottom=Q(u.value.bottom)),c});return{classes:s,styles:d}}}}const{componentName:il,create:sl,scope:Ps}=J("footer-bar"),ul=sl(ol(il));function cl(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Fn=Ae(ul,[["render",cl]]);function fl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Ce(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const i=yt(n);if(i){if(r.padding){const f=Ee(r.padding);Object.assign(i.contentPadding,f)}const u=bt(n,i),d=wt(n,i);let c="";if(i.contentHeight?c=`${i.contentHeight}`:c=`${i.height}px`,i.contentPadding,s.height=c,i.contentPadding.top!==null&&i.contentPadding.top!==void 0||u>0){const f=(i&&i.contentPadding&&i.contentPadding.top)??0;s.paddingTop=`${u+f}px`}if(i.contentPadding.bottom!==null&&i.contentPadding.bottom!==void 0||d>0){const f=(i&&i.contentPadding&&i.contentPadding.bottom)??0;s.paddingBottom=`${d+f}px`}return i.contentPadding.left!==null&&i.contentPadding.left!==void 0&&(s.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right!==null&&i.contentPadding.right!==void 0&&(s.paddingRight=`${i.contentPadding.right}px`),s}}if(r.padding){const i=Ee(r.padding);i.left!==null&&i.left!==void 0&&(s.paddingLeft=`${i.left}px`),i.top!==null&&i.top!==void 0&&(s.paddingTop=`${i.top}px`),i.right!==null&&i.right!==void 0&&(s.paddingRight=`${i.right}px`),i.bottom!==null&&i.bottom!==void 0&&(s.paddingBottom=`${i.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:dl,create:hl,scope:Hs}=J("content"),gl=hl(fl(dl));function ml(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.renderSlot(e.$slots,"default")],6)}const Pn=Ae(gl,[["render",ml]]),We="GroupStateKey",Hn=Symbol.for("GroupScopeKey");function Et(){return a.inject(Hn,!1)}function xt(e=!0){a.provide(Hn,e)}function pl(e,t={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,t);const l=a.shallowRef(n),o=a.markRaw({layout:l,passport:0,order:{index:0}});return e.set(We,o),o}function zn(e,t,r=-1,n=-1,l=!1,o){const s=e.get(We);if(!s)return;const i=e.get("groupLayout")??{};r===-1&&(r=i.column??1),n===-1&&(n=i.gutter??0),o||(o=i.minItemWidth??-1),o=ne(o);const u=()=>{const d=t===""||t===-1,c=ne(t);let f=ae(r);const w=ne(n);if(!d){let p=(c-(f-1)*w)/f;for(;o!==-1&&f>1&&p<o;)f--,p=(c-(f-1)*w)/f}let E=!1;const y=s.layout;y.value.width=t,y.value.column!==f&&(y.value.column=f,E=!0),y.value.gutter!==w&&(y.value.gutter=w,E=!0),E&&a.triggerRef(y)};if(l)u();else{const d=++s.passport;setTimeout(()=>{d===s.passport&&u()},50)}}function lt(e,t=!1){let r;return t?r=e.getForParent(We):r=e.get(We),r.layout}function Gt(e,t=!1){let r;return t?r=e.getForParent(We):r=e.get(We),r.order}function we(e,t=1){return t==="stretch"?-1:(t=ae(t),t===-1?100:100*t/e)}function yl(e){return e===window}const ot=e=>{const t=a.unref(e);if(yl(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Re=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,bl=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},wl=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=ae(e.props.offset);return t<0?0:t},Sl=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const t=e.type,r=(t.props&&t.props.foxItemType&&t.props.foxItemType.default)??"Item";return typeof r=="function"?r():r}return e.props.foxItemType??"Item"},$l=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const r=e.type,n=(r.props&&r.props.foxSubItemCount&&r.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const t=ae(e.props.foxSubItemCount);return t<0?1:t};function Yt(e){let t=e.offsetHeight;if(t<=0){const r=e.cloneNode(!0),n=e.offsetWidth;r.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(r),t=r.offsetHeight,document.body.removeChild(r)}return t}function vl(e,t,r){return{props:{...ue,...Bn,...Mn},emits:["update:collapse"],setup(n,l){const o=Ht(n.name,n,Dn),s=pl(o,{type:n.type}),i=Et();xt(!0);const u=a.computed(()=>i&&o?lt(o,!0).value:null),d=a.getCurrentInstance(),c=m=>{const A=d?.proxy;A&&typeof A.setNameValidateRules=="function"&&A.setNameValidateRules(m,!0)};a.watch(()=>n.rules,(m,A)=>{if(!m&&!A)return;const q=a.toRaw(A),F=a.toRaw(m),P=F?Reflect.ownKeys(F):[];(q?Reflect.ownKeys(q):[]).forEach(Y=>{P.includes(Y)||(F[Y]=[])}),c(F)},{deep:!0});const f=e,w=a.computed(()=>{const m={};if(m.height=H.value,u.value){const A=lt(o,!0);if(A.value.type==="flex"){if(n.width){const P=Q(n.width);m.width=P}else{const P=we(A.value.column,n.span);P>0&&(m.width=`${P}%`)}const q=we(A.value.column,n.offset);q>0&&(m["margin-left"]=`${q}%`);const F=A.value.gutter/2;F>0&&(m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`)}else if(A.value.type==="flow"){if(n.width){const P=Q(n.width);m.width=P}else{const P=we(A.value.column,n.span);P>0&&(m.width=`${P}%`)}const q=we(A.value.column,n.offset);q>0&&(m["margin-left"]=`${q}%`);const F=A.value.gutter/2;if(F>0){const P=o?Gt(o,!0):null;if(P){let z=ae(n.offset)+ae(n.span);(z===-1||z>A.value.column)&&(z=A.value.column);const Y=Math.ceil((P.index+1)/A.value.column),K=Math.ceil((P.index+z)/A.value.column);if(Y===K){const U=(P.index+1)%A.value.column,Z=(P.index+z)%A.value.column,te=U===1?0:F,be=Z===0?0:F;m["padding-left"]=`${te}px`,m["padding-right"]=`${be}px`}else{const U=z%A.value.column,Z=0,te=U===0?0:F;m["padding-left"]=`${Z}px`,m["padding-right"]=`${te}px`}P.index+=z}else m["padding-left"]=`${F}px`,m["padding-right"]=`${F}px`}}}else if(n.width){const A=Q(n.width);m.width=A}return m}),E=a.computed(()=>n.type==="flex"?{[`${Re("",n.type)}`]:!0,[`${Re("justify",n.justify)}`]:!0,[`${Re("align",n.align)}`]:!0,[`${Re("flex",n.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:n.type==="flow"?{[`${Re("",n.type)}`]:!0,[`${Re("justify",n.justify)}`]:!0,[`${Re("align",n.align)}`]:!0}:{[`${Re("",n.type)}`]:!0,[`${f}__gutter`]:!0}),y=a.toRef(n,"title"),p=a.toRef(n,"gutter"),T=a.toRef(n,"column"),v=a.computed(()=>i?!0:ee(n.isWrap)),O=[],B=m=>{O.push(m)},I=()=>{let m=O.length;O.splice(0,m)},N=a.ref(-1);zn(o,N.value,T.value,p.value,!0,n.minItemWidth),n.autoLayout&&a.watch([N,T,p],([m,A,q])=>{s.order.index=0,zn(o,m,A,q,!1,n.minItemWidth)});const k=a.computed(()=>C.value?n.expandText??"":n.collapseText??""),b=a.computed(()=>({[`${e}__header-collapse-text`]:!0})),V=a.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!C.value,["is-collapse"]:C.value})),M=a.ref(),R=a.ref(),H=a.computed(()=>$.value||Q(n.height)||""),W=a.ref(!1),$=a.ref(""),C=a.ref(!1);let x=-1;const L=(m,A=!0)=>{const q=M.value;if(q&&W.value!==m){if(x=x===-1?Yt(q):x,C.value=!0,A)if(q.style["will-change"]="height",q.ontransitionend=function(){q.ontransitionend=null,this.style["will-change"]="auto",m||($.value="",C.value=!1)},m){let F=0;R.value&&R.value.classList.contains(`${e}__header`)&&(F=Yt(R.value)),$.value=`${x}px`,a.nextTick(()=>{$.value=`${F}px`})}else $.value=`${x}px`;else if(m){let F=0;R.value&&R.value.classList.contains(`${e}__header`)&&(F=Yt(R.value)),$.value=`${F}px`}else C.value=!1,$.value=`${x}px`;W.value=m,l.emit("update:collapse",m)}};a.watch(()=>n.collapse,m=>{L(m)});const S=()=>{D()},D=m=>{m=m??!W.value,L(m)};fe({toggleCollapse:D});let _=null;a.onMounted(()=>{if(n.rules){const m=a.toRaw(n.rules);c(m)}if(He&&(L(ee(n.collapse),!1),n.autoLayout&&Array.isArray(O)&&O.length>0)){const m=O[0];N.value=ot(m).width,window.ResizeObserver&&(_=new window.ResizeObserver(()=>{const A=ot(m).width;A>0&&A!==N.value&&(N.value=A)}),_.observe(m))}}),a.onUnmounted(()=>{_?.disconnect()});const j=(m,A,q,F)=>{const P={...E.value};return A===0&&(P[`${f}__first`]=!0),q>=F-1&&(P[`${f}__last`]=!0),a.h("div",{ref:B,key:`${A}`,class:P},m)},G=m=>{if(typeof m.type=="symbol"){if(Array.isArray(m.children)){const A=[...m.children];for(let q=A.length-1;q>=0;q--){const F=A[q],P=G(F);P===null?A.splice(q,1):P.length>0&&Reflect.apply([].splice,A,[q,1,...P])}return A}return null}return[]};return()=>{s.order.index=0;const m=[];let A=0;if(l.slots.header){const z={key:`${A++}`,ref:R,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},Y=a.h("div",z,[l.slots.header()]);m.push(Y)}else{const z=[];if(y.value){if(n.showMark){const K={class:{[`${f}__header-mark`]:!0}};n.markColor&&(K.style={background:n.markColor});const U=a.h("div",K);z.push(U)}const Y=a.h("div",{class:{[`${f}__header-title`]:!0}},[y.value]);z.push(Y)}if(l.slots.toolbar&&z.push(l.slots.toolbar()),n.showCollapse){const Y=[];if(k.value){const Z={class:b.value},te=a.h("span",Z,[k.value]);Y.push(te)}const K={class:V.value},U=r(n.collapseIcon,K);if(U&&Y.push(U),Y.length>0){const Z=a.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:S},Y);z.push(Z)}}if(z.length>0){const Y={key:`${A++}`,ref:R,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},K=a.h("div",Y,z);m.push(K)}}I();const q=l.slots.default?l.slots.default():[];let F=[],P=0;if(n.type==="flex"){for(let z=0;z<q.length;z++){const Y=G(q[z]);if(Y===null)continue;Y.length>0&&Reflect.apply([].splice,q,[z,1,...Y]);const K=q[z];if(Sl(K)==="fragment"){let ie=$l(K);ie>s.layout.value.column?ie=s.layout.value.column:ie<=0&&(ie=1);const Ve=P+ie;if(Ve>s.layout.value.column){const tn=j([...F],A++,z-1,q.length);m.push(tn),P=ie,F=[K]}else F.push(K),P=Ve;continue}const Z=bl(K),te=wl(K);if(Z==="stretch"){if(P<s.layout.value.column){F.push(K);const ie=j([...F],A++,z,q.length);m.push(ie)}else{const ie=j([...F],A++,z-1,q.length);m.push(ie);const Ve=j([K],A++,z,q.length);m.push(Ve)}P=0,F=[];continue}let be=ae(Z);if(be===-1){if(F.length>0){const Ve=j([...F],A++,z-1,q.length);m.push(Ve)}const ie=j([K],A++,z,q.length);m.push(ie),P=0,F=[];continue}be>s.layout.value.column?be=s.layout.value.column:be<=0&&(be=1);const qe=P+be+te;if(qe>s.layout.value.column){const ie=j([...F],A++,z-1,q.length);m.push(ie),P=be+te,F=[K]}else F.push(K),P=qe}if(F.length>0){const z=j([...F],A++,q.length,q.length);m.push(z)}}else if(n.type==="flow"){const z=j(q,A++,0,q.length);m.push(z)}else for(let z=0;z<q.length;z++){const Y=q[z],K=j([Y],A++,z,q.length);m.push(K)}if(v.value){const z=n.tag||"div";return a.h(z,{ref:M,class:{[`${f}`]:!0,"is-collapse":C.value},style:w.value},[m])}else return m}}}}const{componentName:El,create:xl,scope:Cl}=J("group"),Kn=xl(vl(El,Cl,(e,t)=>(e=e??st.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]}))));function Tl(e){return e===window}const Ol=/matrix\((.+)\)/,Wn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Tl(t))return{x:0,y:0};let r=0,n=0,l=t;for(;l!==null;)r+=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:d}=window.getComputedStyle(l);if(d){const c=Ol.exec(d);if(c){let w=c[1].split(/\s*,\s*/);w.length==6&&(i+=Number(w[4]),u+=Number(w[5]))}}l=l.parentNode}return r-=o,n-=s,r+=i,n+=u,{x:r,y:n}};class Nl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const r=this.watchedListeners.indexOf(t);r!==-1&&this.watchedListeners.splice(r,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Vl{monitorRegister=new WeakMap;watch(t,r){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o||(o=new Nl,n.addEventListener("scroll",o.listen),n===document.body&&n.addEventListener("resize",o.listen),this.monitorRegister.set(n,o)),o.add(r),n=n.parentNode}}unwatch(t,r){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let o=this.monitorRegister.get(n);o&&(o.remove(r),o.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",o.listen),n===document.body&&n.removeEventListener("resize",o.listen))),n=n.parentNode}}}const Gn=new Vl,Yn={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:kl,create:Il}=J("price"),Al=Il({props:{...Yn},setup(e){const t=a.computed(()=>({[kl]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>tt(e.price)==0?"":ct(e.price,e.decimalLength,!0,ae(e.digits),e.separator)),l=a.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),o=a.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),Rl=["innerHTML"],jl=["innerHTML"];function ql(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("view",{class:a.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(a.openBlock(),a.createElementBlock("view",{key:0,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Rl)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--${e.size}`)},a.toDisplayString(e.intText),3),e.decimalText.length!=0?(a.openBlock(),a.createElementBlock("view",{key:1,class:a.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):a.createCommentVNode("",!0),a.createElementVNode("view",{class:a.normalizeClass(`fox-price--decimal-${e.size}`)},a.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(a.openBlock(),a.createElementBlock("view",{key:2,class:a.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,jl)):a.createCommentVNode("",!0)],2)}const Ut=Ae(Al,[["render",ql]]),{componentName:Ct,create:Bl}=J("hint-text"),Ml=Bl({components:{Price:Ut},props:{...Yn,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},popupHeight:{type:Boolean,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const r=a.ref({x:0,y:0}),n=a.ref(0),l=a.ref(0),o=a.ref(e.placement),s=10,i=4,u=a.ref(0),d=a.computed(()=>({[Ct]:!0})),c=a.ref(null),f=(k,b,V=10)=>{if(!He||!e.autoFit||b===!1||!k)return;const M=Wn(e.reference);r.value=M,M.y<e.reference.offsetHeight&&(o.value="bottom");const R=ot(e.reference);n.value=R.width,l.value=R.height,setTimeout(()=>{if(!c.value)return;const H=document.documentElement.clientWidth||document.body.clientWidth,W=c.value.offsetWidth;let $=H-(W+ne(r.value.x));$<0?u.value=$:u.value=0},V)},w=at(()=>{f(e.message,e.visible)},10),E=a.computed(()=>e.visible&&y.value),y=a.ref(!0),p=at(k=>{const b=k[0];b&&(y.value=b.isIntersecting)},10),T=new IntersectionObserver(p);a.watch([()=>e.message,()=>e.visible],([k,b])=>{f(k,b)}),a.onMounted(()=>{f(e.message,e.visible),Gn.watch(e.reference,w),T.observe(e.reference)}),a.onBeforeMount(()=>{Gn.unwatch(e.reference,w),T.unobserve(e.reference),T.disconnect()});const v=a.computed(()=>{const k={left:`${ne(r.value.x)+u.value}px`,height:Q(e.popupHeight)};return e.placement==="bottom"?k.top=Q(r.value.y+l.value+s):k.top=Q(r.value.y-e.popupHeight-s-i),e.autoFit?k["min-width"]=Q(n.value):k.width=Q(n.value),k}),O=a.computed(()=>({[`${Ct}__content`]:!0})),B=a.computed(()=>({})),I=a.computed(()=>({[`${Ct}__arrow`]:!0,[`${Ct}__arrow-${e.placement}`]:!0})),N=a.computed(()=>e.placement==="bottom"?{top:`${-s}px`,left:`${ne(-u.value+20)}px`}:{top:"100%",left:`${ne(-u.value+20)}px`});return{show:E,tipRef:c,classes:d,styles:v,textClasses:O,textStyles:B,arrowClasses:I,arrowStyles:N}}}),Dl={key:1,class:"text"};function Ll(e,t,r,n,l,o){const s=a.resolveComponent("Price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{ref:"tipRef",class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.textClasses),style:a.normalizeStyle(e.textStyles)},[e.type=="number"?(a.openBlock(),a.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(a.openBlock(),a.createElementBlock("span",Dl,a.toDisplayString(e.message),1))],6),a.createElementVNode("div",{class:a.normalizeClass(e.arrowClasses),style:a.normalizeStyle(e.arrowStyles)},null,6)],6),[[a.vShow,e.show]])]),_:1})}const Tt=Ae(Ml,[["render",Ll]]);class Un{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 Xt={},_l=new Un,Ge=new Map,Zt=e=>{if(e){const t=document.getElementById(e);Ge.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of Ge.keys()){const r=document.getElementById(t);r&&r.parentNode?.removeChild(r)}Ge.clear()}},Fl=e=>{const t=document.getElementById(e.id);if(t){const r=Ge.get(e.id);r?e={...Xt,...r,...e}:e={...Xt,...e};const n=a.createVNode(Tt,e);return a.render(n,t),e.id}},Pl=e=>{e.unmount=Zt;let t;if(e.id){if(t=e.id,Ge.has(t))return Fl(e)}else t=`hinttext_${_l.get()}`;e={...Xt,...e},e.id=t,Ge.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(Tt,e);return a.render(n,r),document.body.appendChild(r),t},Hl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ot={show(e,t,r={},n=!0){return n&&Zt(),Hl(t),Pl({...r,message:t,reference:e})},hide(e){Zt(e)},install(e){e.config.globalProperties.$hintText=Ot}},{componentName:Xn,create:zl}=J("item"),Kl=zl({inheritAttrs:!0,props:{...ue,...me},emits:["appear","disappear"],setup(e,t){ce({componentName:Xn,validate:!1},e.prop??t.attrs.name);const r=Ce(),n=Et();xt(!1);const l=a.computed(()=>n&&r?lt(r,!1).value:null),o=Xn,s=a.computed(()=>{const m={[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder};return m[e.errorMarkClass]=!!M.value,m[e.warnMarkClass]=!!b.value,m[e.infoMarkClass]=!!N.value,m}),i=a.computed(()=>{const m={};if(l.value)if(l.value.type==="flex"){if(e.width)m.width=Q(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const A=we(l.value.column,e.offset);A>0&&(m["margin-left"]=`${A}%`);const q=l.value.gutter/2;q>0&&(m["padding-left"]=`${q}px`,m["padding-right"]=`${q}px`)}else if(l.value.type==="flow"){if(e.width)m.width=Q(e.width);else{const F=we(l.value.column,e.span);F>0&&(m.width=`${F}%`)}const A=we(l.value.column,e.offset);A>0&&(m["margin-left"]=`${A}%`);const q=l.value.gutter/2;if(q>0){const F=r?Gt(r,!1):null;if(F){let P=ae(e.offset)+ae(e.span);(P===-1||P>l.value.column)&&(P=l.value.column);const z=Math.ceil((F.index+1)/l.value.column),Y=Math.ceil((F.index+P)/l.value.column);if(z===Y){const K=(F.index+1)%l.value.column,U=(F.index+P)%l.value.column,Z=K===1?0:q,te=U===0?0:q;m["padding-left"]=`${Z}px`,m["padding-right"]=`${te}px`}else{const K=P%l.value.column,U=0,Z=K===0?0:q;m["padding-left"]=`${U}px`,m["padding-right"]=`${Z}px`}F.index+=P}else m["padding-left"]=`${q}px`,m["padding-right"]=`${q}px`}}else return e.width&&(m.width=Q(e.width)),m;else e.width&&(m.width=Q(e.width));return m}),u=a.ref(null),d=a.computed({get:()=>u.value??ee(e.isRequired),set:m=>{u.value=m}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),f=$e(a.toRef(e,"labelPosition"),"labelPosition",Te.Near),w=a.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),E=a.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${w.value}`]:!0})),y=a.computed(()=>({label:!0,[`label--${w.value}`]:!0})),p=$e(a.toRef(e,"labelWidth"),"labelWidth",Te.Near),T=a.computed(()=>p&&p.value?{width:Q(p.value)}:{}),v=a.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),O=a.computed(()=>({content:!0,[e.contentClass]:!0})),B=a.computed(()=>({...e.contentStyle})),I=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});fe({setRequired(m){d.value=m},setErrorTip(m){I.errorTip=m},setErrorIcon(m){I.errorIcon=m},setWarnTip(m){I.warnTip=m},setWarnIcon(m){I.warnIcon=m},setInfoTip(m){I.infoTip=m},setInfoIcon(m){I.infoIcon=m}});const N=a.computed(()=>e.infoTip||I.infoTip),k=a.computed(()=>e.infoIcon||I.infoIcon),b=a.computed(()=>e.warnTip||I.warnTip),V=a.computed(()=>e.warnIcon||I.warnIcon),M=a.computed(()=>e.errorTip||I.errorTip),R=a.computed(()=>e.errorIcon||I.errorIcon),H=a.computed(()=>M.value?"error":b.value?"warn":N.value?"info":""),W=a.computed(()=>H.value.length>0),$=a.computed(()=>H.value==="error"?M.value:H.value==="warn"?b.value:H.value==="info"?N.value:""),C=a.computed(()=>H.value==="error"?R.value:H.value==="warn"?V.value:H.value==="info"?k.value:null),x=a.computed(()=>{let m={[`${o}__tip`]:!0,[`${o}__tip--${H.value}`]:!0};return H.value==="error"&&e.errorClass?m[`${e.errorClass}`]=!0:H.value==="warn"&&e.warnClass?m[`${e.warnClass}`]=!0:H.value==="info"&&e.infoClass&&(m[`${e.infoClass}`]=!0),m}),L=a.computed(()=>{let m={};return f&&f.value==="top"||!c.value?m["padding-left"]="0px":p&&p.value&&(m["padding-left"]=Q(p.value)),m}),S=a.ref();let D="";a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([m,A,q,F])=>{S.value&&(m&&!oe(A)?D?Ot.show(S.value,A,{...F,id:D,type:q},!0):D=Ot.show(S.value,A,{...F,type:q},!0):Ot.hide(D))});let _=null;const j=()=>{_||!S.value||(_=new IntersectionObserver(m=>{let A=!1;for(let q of m)if(q.intersectionRatio>0){A=!0,A&&t.emit("appear",q);break}A||t.emit("disappear")}),_.observe(S.value))},G=()=>{!_||!S.value||(_.unobserve(S.value),_=null)};return a.watch(()=>ee(e.appearListen),m=>{m?j():G()}),a.onMounted(()=>{ee(e.appearListen)&&j()}),a.onUnmounted(G),{classes:s,styles:i,mainClasses:E,hasLabel:c,labelClasses:y,labelStyles:T,labelStringClasses:v,contentClasses:O,contentStyles:B,contentRef:S,hasTip:W,mTip:$,mIcon:C,tipClasses:x,tipStyles:L}}}),Wl={key:0,class:"fox-item__tip--icon"},Gl={class:"fox-item__tip--text"};function Yl(e,t,r,n,l,o){return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes),style:a.normalizeStyle(e.styles)},[a.createElementVNode("div",{class:a.normalizeClass(e.mainClasses)},[e.hasLabel?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.labelClasses),style:a.normalizeStyle(e.labelStyles)},[a.createElementVNode("div",{class:a.normalizeClass(e.labelStringClasses)},[a.renderSlot(e.$slots,"label",{},()=>[a.createTextVNode(a.toDisplayString(e.label),1)])],2)],6)):a.createCommentVNode("",!0),a.createElementVNode("div",{ref:"contentRef",class:a.normalizeClass(e.contentClasses),style:a.normalizeStyle(e.contentStyles)},[a.renderSlot(e.$slots,"prepend"),a.renderSlot(e.$slots,"default"),a.renderSlot(e.$slots,"append")],6)],2),a.createVNode(a.Transition,{name:"fox-item__animate"},{default:a.withCtx(()=>[e.hasTip?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(e.tipClasses),style:a.normalizeStyle(e.tipStyles)},[e.mIcon?(a.openBlock(),a.createElementBlock("div",Wl,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Gl,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const de=Ae(Kl,[["render",Yl]]);function Ul(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const l=Ce(),o=Et();xt(!1);const s=a.computed(()=>o&&l?lt(l,!1).value:null),i=e,u=a.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:r.span==="stretch"})),d=a.computed(()=>{const c={};if(s.value)if(s.value.type==="flex"){if(r.width)c.width=Q(r.width);else{const E=we(s.value.column,r.span);E>0&&(c.width=`${E}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const w=s.value.gutter/2;w>0&&(c["padding-left"]=`${w}px`,c["padding-right"]=`${w}px`)}else if(s.value.type==="flow"){if(r.width)c.width=Q(r.width);else{const E=we(s.value.column,r.span);E>0&&(c.width=`${E}%`)}const f=we(s.value.column,r.offset);f>0&&(c["margin-left"]=`${f}%`);const w=s.value.gutter/2;if(w>0){const E=l?Gt(l,!1):null;if(E){let y=ae(r.offset)+ae(r.span);(y===-1||y>s.value.column)&&(y=s.value.column);const p=Math.ceil((E.index+1)/s.value.column),T=Math.ceil((E.index+y)/s.value.column);if(p===T){const v=(E.index+1)%s.value.column,O=(E.index+y)%s.value.column,B=v===1?0:w,I=O===0?0:w;c["padding-left"]=`${B}px`,c["padding-right"]=`${I}px`}else{const v=y%s.value.column,O=0,B=v===0?0:w;c["padding-left"]=`${O}px`,c["padding-right"]=`${B}px`}E.index+=y}else c["padding-left"]=`${w}px`,c["padding-right"]=`${w}px`}}else return r.width&&(c.width=Q(r.width)),c;else r.width&&(c.width=Q(r.width));return c});return()=>{const c={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?a.h("div",c,n.slots.default()):a.h("div",c)}}}}const{componentName:Xl,create:Zl,scope:Ks}=J("slot-item"),Zn=Zl(Ul(Xl));function Jl(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(r,n){const l=e,o=a.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch",[`${l}__${r.align}`]:!0})),s=Ce(),i=Et();xt(!1);const u=a.computed(()=>{const c={};if(i&&s){const f=lt(s,!1);if(f.value.type!=="flex")return r.width&&(c.width=Q(r.width)),c;if(r.width)c.width=Q(r.width);else{const y=we(f.value.column,r.span);y>0&&(c.width=`${y}%`)}const w=we(f.value.column,r.offset);w>0&&(c["margin-left"]=`${w}%`);const E=f.value.gutter/2;E>0&&(c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`)}else r.width&&(c.width=Q(r.width));return c}),d=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const y=n.slots.default();if(r.divide)for(let p=0;p<y.length;p++){if(p>0){const T=a.h("div",{class:{[`${l}__divide`]:!0}});c.push(T)}c.push(y[p])}else Reflect.apply([].push,c,y)}const f={class:d.value},w=a.h("div",f,c),E={class:o.value,style:u.value};return a.h("div",E,[w])}}}}const{componentName:Ql,create:eo,scope:Ws}=J("row-item"),Jn=eo(Jl(Ql)),Qn={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 to(e,t,r){return{props:{...ue,...me,...Qn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),w=e,E=a.computed(()=>({[w]:!0,[`${w}__disabled`]:o.value,[`${w}__readonly`]:s.value})),y=$=>{f.value=$,i("update:modelValue",$),i("input",$)},p=$=>{i("change",$)};let T=re(n,"hintText"),v=a.ref(!1);const O=$=>{let x=$.target.value;c.value=!0,oe(T.value)||(v.value=!0),i("focus",x,$)},B=$=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let x=$.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),i("blur",x,$)},I=()=>{i("clear","")},N=a.ref(!1);let k=null;const b=()=>{n.showTooltip&&N.value===!1&&(k=setTimeout(()=>{N.value=!0},150))},V=()=>{k&&(clearTimeout(k),N.value=!1,k=null)},M=a.computed(()=>N.value||v.value),R=a.computed(()=>N.value?f.value:T.value),H=a.computed(()=>tt(n.unit)>0),W=a.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const C={...l.attrs,ref:W,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:p,onInput:y,onFocus:O,onBlur:B,onMouseover:b,onMouseleave:V},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:H.value&&(x.suffix=()=>[n.unit]);const L=[],S=a.h(g.ElInput,C,x);L.push(S);const D={default:()=>L};l.slots.default&&(D.label=l.slots.default);const j={...ge(n,Qn),hintText:R.value,hintVisible:M.value,prop:`${n.prop}_item`};return a.h(r,j,D)}}}}const{componentName:no,create:ro,scope:ao}=J("input-item"),er=ro(to(no,ao,de));function Fe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ye(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function tr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let lo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function oo(){const e=a.getCurrentInstance();return new lo(e.proxy)}function nr(e,t,r){const n=Fe(e,t),l=Fe(e,r);if(n!==l)return!1;const o=Ye(e,t),s=Ye(e,r);return o===s}function rr(e,t,r,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=tr(e,s);if(Array.isArray(i)&&i.length>0){const u=rr(e,o,r,i)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(r==="text")u=Fe(e,s)===o;else if(r==="item")u=nr(e,s,o);else{let d=Ye(e,s);d==null&&(d=Fe(e,s)),u=d===o}if(u){l.push(s);break}}}}),l}function io(e){return{text:e,value:e}}const ar={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"},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 so(e,t,r){return{props:{...ue,...me,...ar},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),w=(m,A,q,F=!0)=>{const P=rr(n,m,A,q);if(P===null){if(f.value===null||f.value.length===0)return;c.value=null,f.value=[],F&&(i("update:modelValue",null),i("change",null));return}let z=!0;if(P.length!==f.value.length)z=!1;else for(let Y=0;Y<P.length;Y++){const K=P[Y],U=f.value[Y];if(!nr(n,K,U)){z=!1;break}}if(!z){f.value=P;let Y=[],K=[];P.forEach(Z=>{Y.push(Ye(n,Z)),n.valueType==="text"?K.push(Fe(n,Z)):n.valueType==="item"?K.push(Z):K.push(Ye(n,Z))});let U;n.multiple?(c.value=Y,U=a.toRaw(K)):(c.value=Y[0]??"",U=a.toRaw(K[0]??"")),F&&(i("update:modelValue",U),i("change",U))}},E=a.ref(null),y=a.ref(null),p=a.computed(()=>y.value??E.value??[]),T=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,m=>ee(m)),v=oo(),O=async(m,A)=>{if(m){const q=await v.load("select",m,A);if(q.length>0)if(typeof q[0]=="string"){let z=q.map(Y=>io(Y));E.value=z}else E.value=q;else E.value=null}};a.watch([()=>n.source,()=>n.params],([m,A])=>{O(m,A)},{immediate:!T.value});let B=!1;const I=()=>{B||(B=!0,O(n.source,n.params))};a.watch([()=>p.value,()=>n.modelValue],([m,A])=>{w(A,n.valueType,m,!1)});let N=null,k=a.ref(!1);typeof n.remoteMethod=="function"&&(N=async m=>{if(m==null){y.value=null;return}k.value=!0;try{const A=await n.remoteMethod(m);y.value=A}catch(A){y.value=null,console.error(A)}k.value=!1});let b=null;typeof n.filterMethod=="function"&&(b=async m=>{if(m==null){y.value=null;return}k.value=!0;try{const A=await n.filterMethod(m,E.value);y.value=A}catch(A){y.value=null,console.error(A)}k.value=!1});const V=a.ref(!1),M=e,R=a.computed(()=>({[M]:!0})),H=m=>{n.allowCreate?(i("update:modelValue",m),i("change",m),c.value=m):w(m,"value",p.value,!0)};let W=re(n,"hintText"),$=a.ref(!1);const C=m=>{let q=m.target.value;V.value=!0,oe(W.value)||($.value=!0),i("focus",q,m)},x=m=>{setTimeout(()=>{$.value&&($.value=!1),V.value=!1},0);let q=m.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),S.value||i("blur",q,m)},L=()=>{i("clear","")},S=a.ref(!1),D=m=>{S.value=m,i("visible-change",m),m||i("selected")},_=m=>{i("remove-tag",m)},j=(m,A)=>{const q=[];return m.forEach((F,P)=>{const z=tr(n,F);if(Array.isArray(z)&&z.length>0){const Y=j(z,A),K=Fe(n,F),Z={key:`${K}_${P}`,label:K};q.push(a.h(g.ElOptionGroup,Z,{default:()=>Y}))}else{const Y=Ye(n,F),K=Fe(n,F),U=ee(F.disabled),te={key:`${Y}_${P}`,label:K,disabled:U,value:Y};if(typeof A=="function")q.push(a.h(g.ElOption,te,{default:()=>A(F)}));else if(n.optionType==="item"){const be={class:{"fox-select-item__option-left":!0}},qe=a.h("span",be,[Y]),ie={class:{"fox-select-item__option-right":!0}},Ve=a.h("span",ie,[K]),tn=a.h("div",{class:{"fox-select-item__option":!0}},[qe,Ve]);q.push(a.h(g.ElOption,te,{default:()=>tn}))}else n.optionType==="value"?q.push(a.h(g.ElOption,te,{default:()=>[Y]})):q.push(a.h(g.ElOption,te))}}),q},G=a.ref();return fe({focus:()=>{G?.value.focus()},blur:()=>{G?.value.blur()}}),()=>{const A={...l.attrs,ref:G,class:R.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:o.value||s.value,modelValue:c.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:L,onChange:H,onFocus:C,onBlur:x,onVisibleChange:D,onRemoveTag:_};typeof N=="function"&&(A["remote-method"]=N,A.loading=k.value),typeof b=="function"&&(A["filter-method"]=b,A.loading=k.value);const q={};l.slots.prefix&&(q.prefix=l.slots.prefix),l.slots.empty&&(q.empty=l.slots.empty),l.slots.options?q.default=l.slots.options:q.default=()=>j(p.value,l.slots.option);const F=[],P=a.h(g.ElSelect,A,q);F.push(P);const z={default:()=>F};l.slots.default&&(z.label=l.slots.default);const K={...ge(n,ar),hintText:W.value,hintVisible:$.value,prop:`${n.prop??l.attrs.name}_item`};return T.value&&(K["appear-listen"]=!0,K.onAppear=I),a.h(r,K,z)}}}}const{componentName:uo,create:co,scope:fo}=J("select-item"),lr=co(so(uo,fo,de)),or={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ho(e,t,r){return{props:{...ue,...me,...or},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),w=e,E=a.computed(()=>({[w]:!0})),y=V=>{f.value=V,i("update:modelValue",V),i("change",V)};let p=re(n,"hintText"),T=a.ref(!1);const v=V=>{let R=V.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",R,V)},O=V=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),i("blur",R,V)},B=()=>{i("clear","")},I=V=>{i("calendar-change",V)},N=(V,M,R)=>{i("panel-change",V,M,R)},k=V=>{i("visible-change",V)},b=a.ref();return fe({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},handleOpen:()=>{b?.value.handleOpen()},handleClose:()=>{b?.value.handleClose()}}),()=>{const M={...l.attrs,ref:b,class:E.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:O,onCalendarChange:I,onPanelChange:N,onVisibleChange:k},R={};l.slots["range-separator"]&&(R["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(R.default=l.slots.cell);const H=[],W=a.h(g.ElDatePicker,M,R);H.push(W);const $={default:()=>H};if(l.slots.default){const S=l.slots.default();$.label=()=>S}const x={...ge(n,or),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,x,$)}}}}const{componentName:go,create:mo,scope:po}=J("date-item"),ir=mo(ho(go,po,de)),sr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yo(e,t,r){return{props:{...ue,...me,...sr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),w=e,E=a.computed(()=>({[w]:!0})),y=k=>{f.value=k,i("update:modelValue",k),i("change",k)};let p=re(n,"hintText"),T=a.ref(!1);const v=k=>{let V=k.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",V,k)},O=k=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let V=k.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,k)},B=()=>{i("clear","")},I=k=>{i("visible-change",k)},N=a.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const b={...l.attrs,ref:N,class:E.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:O,onVisibleChange:I},V={},M=[],R=a.h(g.ElTimePicker,b,V);M.push(R);const H={default:()=>M};if(l.slots.default){const x=l.slots.default();H.label=()=>x}const $={...ge(n,sr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,$,H)}}}}const{componentName:bo,create:wo,scope:So}=J("time-item"),ur=wo(yo(bo,So,de)),cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $o(e,t,r){return{props:{...ue,...me,...cr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),w=e,E=a.computed(()=>({[w]:!0})),y=N=>{f.value=N,i("update:modelValue",N),i("change",N)};let p=re(n,"hintText"),T=a.ref(!1);const v=N=>{let b=N.target.value;c.value=!0,oe(p.value)||(T.value=!0),i("focus",b,N)},O=N=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let b=N.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),i("blur",b,N)},B=()=>{i("clear","")},I=a.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()}}),()=>{const k={...l.attrs,ref:I,class:E.value,placeholder:d.placeholder.value,disabled:o.value,readonly:s.value,modelValue:f.value,["onUpdate:modelValue"]:y,onClear:B,onFocus:v,onBlur:O},b={},V=[],M=a.h(g.ElTimeSelect,k,b);V.push(M);const R={default:()=>V};if(l.slots.default){const C=l.slots.default();R.label=()=>C}const W={...ge(n,cr),hintText:p.value,hintVisible:T.value,prop:`${n.prop}_item`};return a.h(r,W,R)}}}}const{componentName:vo,create:Eo,scope:xo}=J("time-select-item"),fr=Eo($o(vo,xo,de));function dr(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let l=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){l=o;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>r.length?r=r.padEnd(l,"0"):r=r.substring(0,l),r}function hr(e,t,r=20){if(typeof t=="string"&&(t=ae(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=sn(`${e}`,`${t}`);return dr(n)}else{let n=qt(`${e}`,un(`${t}`),20);return dr(n)}}function Co(e,t=-1,r=!1,n=3,l=","){return ct(e,t,r,n,l)}function gr(e,t,r,n,l=!0){if(e=="")return"";if(e=cn(e),t=ae(t),t==1)return e;if(n)e=hr(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(ae(r)+2,"0"):e=qt(e,1,ae(r)));else{let o=-1*t;e=hr(e,o)}return e}function mr(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ee(t.minInclude),l=Bt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="请输入不小于 {0} 的数值";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=ee(t.maxInclude),l=Bt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const pr={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 To(e,t,r){return{props:{...ue,...me,...pr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref(!1),d=re(n,"modelValue"),c=a.ref("");a.watch([()=>d.value,()=>n.rates,()=>n.precision],([$,C,x])=>{if(oe($)){c.value="";return}const L=gr($,C,x,!1);c.value!==L&&(c.value=L)},{immediate:!0});const f=a.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:w}=ve.useFoxI18n(t),E=a.computed(()=>{let $=n.placeholder??"";return!u.value&&!oe(c.value)?$=Co(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=w(["placeholder",$]),$}),y=e,p=a.computed(()=>({[y]:!0,[`${y}__disabled`]:o.value,[`${y}__placeholder`]:c.value.length>0})),T=$e(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>u.value?{textAlign:"left"}:{textAlign:T.value??"right"});const v=a.ref(""),O=a.computed(()=>{let $=v.value;return oe($)&&($=n.errorTip??""),$}),B=a.ref(""),I=a.ref(!1),N=($,C)=>{if($=`${$}`,oe($)){c.value="",d.value="",C.forEach(x=>{i(x,"")}),ee(n.showTip)&&I.value&&(I.value=!1);return}if($.length>=2){let x=$;if(x.charAt(0)=="-"&&(x=x.substring(1)),x.length>=2&&x.charAt(0)=="0"&&x.charAt(1)!="."){a.triggerRef(c);return}}if($!="-"){if(!bn($)){a.triggerRef(c);return}if(n.integerLength!=-1&&wn($)>Number(n.integerLength)){a.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Sn($)>Number(n.decimalLength)){a.triggerRef(c);return}let x=mr($,n);if(x.maxValid===!1){v.value=x.message,a.triggerRef(c);return}}else if(n.min!=null&&ae(n.min)>=0){a.triggerRef(c);return}B.value=$,ee(n.showTip)&&(I.value=$.length>0),c.value=$,d.value=gr($,n.rates,n.precision,!0),C.forEach(x=>{i(x,d.value)})},k=$=>{N($,["update:modelValue","input"])},b=$=>{N($,["update:modelValue","change"])},V=$=>{if(u.value=!0,ee(n.showTip)){let C=c.value;oe(C)&&(C=n.hintText),oe(C)||(B.value=C,I.value=!0)}v.value="",i("focus",d.value,$)},M=$=>{if(setTimeout(()=>{u.value=!1,ee(n.showTip)&&I.value===!0&&(I.value=!1)},0),!oe(c.value)){let C=mr(c.value,n);if(C.minValid===!1||C.maxValid){v.value=C.message;return}}i("update:modelValue",d.value,$),i("blur",d.value,$)},R=()=>{i("clear","")},H=a.computed(()=>tt(n.unit)>0),W=a.ref();return fe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},select:()=>{W?.value.select()}}),()=>{const C={...l.attrs,ref:W,class:p.value,type:"digit",maxlength:n.maxLength,placeholder:E.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:R,onInput:k,onChange:b,onFocus:V,onBlur:M},x={};l.slots.prepend&&(x.prepend=l.slots.prepend),l.slots.append&&(x.append=l.slots.append),l.slots.prefix&&(x.prefix=l.slots.prefix),l.slots.suffix?x.suffix=l.slots.suffix:H.value&&(x.suffix=()=>[n.unit]);const L=[],S=a.h(g.ElInput,C,x);L.push(S);const D={default:()=>L};if(l.slots.default){const m=l.slots.default();D.label=()=>m}const j={...ge(n,pr),errorTip:O.value,hintText:B.value,hintVisible:I.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,j,D)}}}}const{componentName:Oo,create:No,scope:Vo}=J("money-item"),yr=No(To(Oo,Vo,de)),br={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 ko(e,t,r){return{props:{...ue,...me,...br},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),w=e,E=a.computed(()=>({[w]:!0,[`${w}__append`]:k.value})),y=a.computed(()=>({[`${w}__unit`]:!0})),p=V=>{f.value=V,i("update:modelValue",V),i("input",V)},T=V=>{i("change",V)};let v=re(n,"hintText"),O=a.ref(!1);const B=V=>{let R=V.target.value;c.value=!0,oe(v.value)||(O.value=!0),i("focus",R,V)},I=V=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),i("blur",R,V)},N=()=>{i("clear","")},k=a.computed(()=>tt(n.unit)>0),b=a.ref();return fe({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()}}),()=>{const M={...l.attrs,ref:b,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:T,onInput:p,onFocus:B,onBlur:I},R={},H=[],W=a.h(g.ElInputNumber,M,R);H.push(W);const $={default:()=>H};if(l.slots.default){const S=l.slots.default();$.label=()=>S}const x={...ge(n,br),hintText:v.value,hintVisible:O.value,prop:`${n.prop}_item`};if(l.slots.append)$.append=l.slots.append;else if(k.value){const S={class:y.value},D=a.h("div",S,[n.unit]);$.append=()=>D}return a.h(r,x,$)}}}}const{componentName:Io,create:Ao,scope:Ro}=J("input-number-item"),wr=Ao(ko(Io,Ro,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 jo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let qo=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Bo(){const e=a.getCurrentInstance();return new qo(e.proxy)}function Jt(e,t,r){const n=Ue(e,t),l=Ue(e,r);if(n!==l)return!1;const o=Pe(e,t),s=Pe(e,r);return o===s}function Sr(e,t,r,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=Sr(e,i,r,n);l.push(u)}else{let u=!1;for(let d of o){if(r==="text")u=Ue(e,d)===i;else if(r==="item")u=Jt(e,d,i);else{let c=Pe(e,d);c==null&&(c=Ue(e,d)),u=c===i}if(u){l.push(d),o=jo(e,d);break}}if(!u)break}}return l}function Mo(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}};function Do(e,t,r){return{props:{...ue,...me,...$r},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(null),f=a.ref([]),w=(j,G,m,A=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===j)return;c.value=j;const P=a.toRaw(j);A&&(i("update:modelValue",P),i("change",P))}const q=Sr(n,j,G,m);if(q===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,A&&(i("update:modelValue",null),i("change",null));return}let F=!0;if(q.length!==f.value.length)F=!1;else for(let P=0;P<q.length;P++){const z=q[P],Y=f.value[P];if(Array.isArray(z)){if(!Array.isArray(Y)||z.length!==Y.length)F=!1;else for(let K=0;K<z.length;K++)if(!Jt(n,z[K],Y[K])){F=!1;break}}else Jt(n,z,Y)||(F=!1);if(!F)break}if(!F){f.value=q;let P=[],z=[];q.forEach(K=>{if(Array.isArray(K)){let U=[],Z=[];for(let te of K)U.push(Pe(n,te)),n.valueType==="text"?Z.push(Ue(n,te)):n.valueType==="item"?Z.push(te):Z.push(Pe(n,te));P.push(U),z.push(Z)}else P.push(Pe(n,K)),n.valueType==="text"?z.push(Ue(n,K)):n.valueType==="item"?z.push(K):z.push(Pe(n,K))}),c.value=P;const Y=a.toRaw(z);A&&(i("update:modelValue",Y),i("change",Y))}},E=a.ref([]),y=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,j=>ee(j)),p=Bo(),T=async(j,G)=>{if(j){const m=await p.load("cascader",j,G);if(m.length>0)if(typeof m[0]=="string"){let F=m.map(P=>Mo(P));E.value=F}else E.value=m}};a.watch([()=>n.source,()=>n.params],async([j,G])=>{T(j,G)},{immediate:!y.value});let v=!1;const O=()=>{v||(v=!0,T(n.source,n.params))};a.watch([()=>E.value,()=>n.modelValue],([j,G])=>{w(G,n.valueType,j,!1)});let B=null,I=a.ref(!1);typeof n.remoteMethod=="function"&&(B=async j=>{if(j!=null){I.value=!0;try{const G=await n.remoteMethod(j);E.value=G}catch(G){console.error(G)}I.value=!1}});const N=a.ref(!1),k=e,b=a.computed(()=>({[k]:!0})),V=a.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),j}),M=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),c.value=j):w(j,"value",E.value,!0)};let R=re(n,"hintText"),H=a.ref(!1);const W=j=>{let m=j.target.value;N.value=!0,oe(R.value)||(H.value=!0),i("focus",m,j)},$=j=>{setTimeout(()=>{H.value&&(H.value=!1),N.value=!1},0);let m=j.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),x.value||i("blur",m,j)},C=()=>{i("clear","")},x=a.ref(!1),L=j=>{x.value=j,i("visible-change",j),j||i("selected")},S=j=>{i("remove-tag",j)},D=j=>{i("expand-change",j)},_=a.ref();return fe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},getCheckedNodes:()=>_?.value.getCheckedNodes()}),()=>{const G={...l.attrs,ref:_,class:b.value,props:V.value,clearable:n.clearable,placeholder:d.placeholder.value,disabled:o.value||s.value,options:E.value,modelValue:c.value,onClear:C,onChange:M,onFocus:W,onBlur:$,onVisibleChange:L,onRemoveTag:S,expandChange:D};typeof B=="function"&&(G["remote-method"]=B,G.loading=I.value);const m={};l.slots.option&&(m.default=l.slots.option),l.slots.empty&&(m.empty=l.slots.empty);const A=[],q=a.h(g.ElCascader,G,m);A.push(q);const F={default:()=>A};l.slots.default&&(F.label=l.slots.default);const z={...ge(n,$r),hintText:R.value,hintVisible:H.value,prop:`${n.prop??l.attrs.name}_item`};return y.value&&(z["appear-listen"]=!0,z.onAppear=O),a.h(r,z,F)}}}}const{componentName:Lo,create:_o,scope:Fo}=J("cascader-item"),vr=_o(Do(Lo,Fo,de)),Er={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Po(e,t,r){return{props:{...ue,...me,...Er},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=ve.useFoxI18n(t),d=u(n,["placeholder"]),c=a.ref(!1),f=re(n,"modelValue"),w=e,E=a.computed(()=>({[w]:!0})),y=k=>{f.value=k,i("update:modelValue",k),i("input",k)},p=k=>{i("change",k)};let T=re(n,"hintText"),v=a.ref(!1);const O=k=>{let V=k.target.value;c.value=!0,oe(T.value)||(v.value=!0),i("focus",V,k)},B=k=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let V=k.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,k)},I=()=>{i("clear","")},N=a.ref();return fe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},select:()=>{N?.value.select()}}),()=>{const b={...l.attrs,ref:N,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:s.value,modelValue:f.value,onClear:I,onChange:p,onInput:y,onFocus:O,onBlur:B},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 M=[],R=a.h(g.ElAutocomplete,b,V);M.push(R);const H={default:()=>M};if(l.slots.default){const x=l.slots.default();H.label=()=>x}const $={...ge(n,Er),hintText:T.value,hintVisible:v.value,prop:`${n.prop}_item`};return a.h(r,$,H)}}}}const{componentName:Ho,create:zo,scope:Ko}=J("autocomplete-item"),xr=zo(Po(Ho,Ko,de));function Wo(e,t,r,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 d=t[u],c=o[u];const f=d.find(w=>w[n]===c);if(!f)break;s.push(f[r])}else{let u=t;for(let d=0;u&&d<o.length;d++){let c=o[d],f=u.find(w=>w[n]===c);if(!f)break;s.push(f[r]),u=f[l]}}return s}let Go=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function Yo(){const e=a.getCurrentInstance();return new Go(e.proxy)}const Cr={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:"/"},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 Uo(e,t){return{props:{...Cr},setup(r,{attrs:n}){const l=Yo(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([u,d])=>{o.value=await l.load(r.sourceType,u,d)},{immediate:!0});const s=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let u=Wo(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return u.length==0?r.emptyText??"":u.length===1?u[0]:u.join(r.separator)}),i=r.resolveTag?a.resolveComponent(r.tag):r.tag;return()=>{const u={...n};return r.resolveTag?r.emptyText!==void 0&&r.emptyText===s.value?a.h(r.emptyTag??"span",{...n,class:r.emptyClass},s.value):a.h(i,u,{default:()=>s.value}):a.h(i,u,s.value)}}}}const{componentName:Gs,create:Xo,scope:Ys}=J("mapping"),Qt=Xo(Uo());function Zo(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][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 Jo(e,t){return{props:{...Cr},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=Zo(o.row,o.column.property);return a.h(Qt,{...r,modelValue:s})}};return a.h(g.ElTableColumn,{...n},l)}}}}const{componentName:Us,create:Qo,scope:Xs}=J("table-mapping-column"),Tr=Qo(Jo()),ei=Symbol.for("TableStateKey");function Or(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][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 ti(e,t){return{props:{},setup(r,{attrs:n}){const l=a.inject(ei,{});return()=>{const o=l.currentRow?l.currentRow.value:null,s={default:i=>{const u=Or(i.row,i.column.property),d=o?Or(o,i.column.property):null,c=u===d,f={class:{"el-radio__input":!0,"is-checked":c}},w=a.h("span",f,[a.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":c}};return a.h("label",E,[w])}};return a.h(g.ElTableColumn,{...n},s)}}}}const{componentName:Zs,create:ni,scope:Js}=J("table-radio-column"),Nr=ni(ti());let ri=class{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,s,i){if(Array.isArray(r)){let d=(n-1)*l,c=d+l;c>r.length&&(c=r.length);const f=r.slice(d,c);return{totalSize:r.length,page:f}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,s,i]);const u=_e(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ke(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await Reflect.apply(u,null,[r,n,l,o,s,i]))}};function ai(){const e=a.getCurrentInstance();return new ri(e.proxy)}const li=Symbol.for("TableStateKey");function oi(e,t){let r=t.split("."),n=e;for(let l=0;l<r.length;l++){let o=r[l],s=0,i=o.indexOf("["),u=i==-1?-1:o.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=o.substring(i+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(s==0){let f=o.substring(0,i);n=n[f][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 en(e,t){return e.filter(n=>{for(let l in t){const o=t[l],s=oi(n,l);if(o!==s)return!1}return!0})}const Vr={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}},kr={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"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function ii(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Vr,...kr},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:o}=ve.useFoxI18n(t),{emitEvent:s}=ce({componentName:e,validateHandler:{getValue(...S){return v.value}}},n.prop??l.attrs.name),i=e,u=a.computed(()=>({[i]:!0})),d=a.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),c=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,S=>{c.value=S});const f=S=>{c.value=S,s("page-index-change",S)},w=a.ref(n.pageSize);a.watch(()=>n.pageSize,S=>{w.value=S});const E=S=>{w.value=S,s("page-size-change",S)},y=a.shallowRef({}),p=a.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),T=a.ref(0),v=a.ref(),O=ai();let B=!0;const I=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:ee(n.autoLoad),N=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,S=>ee(S)),k=async(S,D,_,j)=>{try{const G=await O.load("table",S,D,_,j,B,o.value);T.value=G.totalSize,v.value=G.page}catch(G){console.error("[FoxUI] Load Table Data Fail",G),T.value=0,v.value=[]}B=!1,setTimeout(()=>{s("loaded-data")},250)};a.watch([c,w],([S,D],[_,j])=>{D!==j&&(c.value=1,S=1),k(n.data,S,D,p.value)}),a.watch([()=>n.data,p],([S,D],[_,j])=>{I()&&(S!==_&&(B=!0),!(!Array.isArray(S)&&De(S,_)&&De(D,j))&&k(S,c.value,w.value,D))},{deep:!0});const b=(S={},D=!1)=>new Promise(_=>{y.value=a.toRaw(S??{}),a.triggerRef(y),D||(c.value=n.pageIndex??1),a.nextTick(async()=>{await k(n.data,c.value,w.value,p.value),_()})}),V=()=>{T.value=0,v.value=[]};let M=!1;const R=()=>{M||(M=!0,b())};I()&&!N.value&&b();const H=a.ref(null);a.provide(li,{currentRow:H});const W=(S,D)=>{H.value=S,s("current-change",S,D)},$=(S,D,_)=>{s("row-click",S,D,_),ee(n.rowClickSelectable)===!0&&L?.value.toggleRowSelection(S)},C=[],x=(S,D)=>{if(s("expand-change",S,D),ee(n.uniqueExpansion))if(Array.isArray(D)&&D.length==0){const _=C.length;C.splice(0,_)}else{C.forEach(j=>{j!==S&&L?.value.toggleRowExpansion(j,!1)});const _=C.length;C.splice(0,_,S)}},L=a.ref();return fe({clearSelection:()=>L?.value.clearSelection(),getSelectionRows:()=>L?.value.getSelectionRows(),toggleRowSelection:(S,D)=>{L?.value.toggleRowSelection(S,D)},toggleRowSelectionByProp:(S,D)=>{if(!v.value)return;const _=en(v.value,S);_.length!==0&&_.forEach(j=>{L?.value.toggleRowSelection(j,D)})},toggleAllSelection:()=>{L?.value.toggleAllSelection()},toggleRowExpansion:(S,D)=>{L?.value.toggleRowExpansion(S,D)},toggleRowExpansionByProp:(S,D)=>{if(!v.value)return;const _=en(v.value,S);_.length!==0&&_.forEach(j=>{L?.value.toggleRowExpansion(j,D)})},setCurrentRow:S=>{L?.value.setCurrentRow(S)},setCurrentRowByProp:S=>{if(!v.value)return;const D=en(v.value,S);D.length!==0&&L?.value.setCurrentRow(D[0])},getCurrentRow:()=>H.value,clearSort:()=>{L?.value.clearSort()},clearFilter:S=>{L?.value.clearFilter(S)},doLayout:()=>{L?.value.doLayout()},sort:(S,D)=>{L?.value.sort(S,D)},scrollTo:(S,D)=>{L?.value.scrollTo(S,D)},setScrollTop:S=>{L?.value.setScrollTop(S)},setScrollLeft:S=>{L?.value.setScrollLeft(S)},loadData:b,clearData:V,getData(){return v.value},getTotalSize(){return T.value},getPageIndex(){return c.value},getPageSize(){return w.value}}),()=>{const D={...l.attrs,onCurrentChange:W,onRowClick:$,onExpandChange:x,data:v.value,ref:L,class:u.value},_={};l.slots.default&&(_.default=l.slots.default),l.slots.append&&(_.append=l.slots.append),l.slots.empty&&(_.empty=l.slots.empty);const j=[],G=a.h(g.ElTable,D,_);if(j.push(G),typeof l.slots.pagination=="function"){const P=l.slots.pagination();j.push(P)}else if(n.paginationVisible){const P={class:d.value,total:T.value,pageSize:w.value,["onUpdate:pageSize"]:E,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:f,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},z=a.h(g.ElPagination,P);j.push(z)}const m={default:()=>j},q={...ge(n,Vr,kr),prop:`${n.prop}_item`};return q.contentClass=`${i}__wrap`,q.errorMarkClass="is-table-error",N.value&&I()&&(q["appear-listen"]=!0,q.onAppear=R),a.h(r,q,m)}}}}const{componentName:si,create:ui,scope:ci}=J("table-item"),Ir=ui(ii(si,ci,de));function Xe(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}let fi=class{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}};function di(){const e=a.getCurrentInstance();return new fi(e.proxy)}function Ar(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Xe(e,t),l=Xe(e,r);if(n!==l)return!1;const o=it(e,t),s=it(e,r);return o===s}function hi(e,t,r,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(r==="text")s=Xe(e,o)===t;else if(r==="item")s=Ar(e,o,t);else{let i=it(e,o);i==null&&(i=Xe(e,o)),s=i===t}if(s){l=o;break}}return l}function gi(e){return{text:e,value:e}}function mi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Rr={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function pi(e,t,r){return{inheritAttrs:!0,props:{...ue,...me,...Rr},emits:["change","update:modelValue"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref(null),d=a.ref(null),c=(b,V,M,R=!0)=>{const H=hi(n,b,V,M);if(H===null){if(d.value===null)return;d.value=null,u.value=null,R&&(i("update:modelValue",null),i("change",null));return}if(!Ar(n,H,d.value)){u.value=b;const $=a.toRaw(H);d.value=$;let C=null;n.valueType==="text"?C=Xe(n,$):n.valueType==="item"?C=$:C=it(n,$),R&&(i("update:modelValue",C),i("change",C))}},f=a.ref([]),w=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,b=>ee(b)),E=di(),y=async(b,V)=>{if(b){const M=await E.load("radio",b,V);if(M.length>0)if(typeof M[0]=="string"){let W=M.map($=>gi($));f.value=W}else f.value=M}};a.watch([()=>n.source,()=>n.params],async([b,V])=>{y(b,V)},{immediate:!w.value});let p=!1;const T=()=>{p||(p=!0,y(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([b,V])=>{c(V,n.valueType,b,!1)});const v=e,O=a.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),B=b=>{c(b,"value",f.value,!0)};let I=re(n,"hintText"),N=re(n,"hintVisible");const k=(b,V)=>{const M=[];return b.forEach((R,H)=>{const W=it(n,R),$=Xe(n,R),C=mi(n,R,H)??{};let x=C.disabled;o.value===!0&&(x=o.value);const L=`${W}_${H}`,S={...C,key:L,label:W,disabled:x,size:n.size,border:ee(n.border)};n.itemType==="button"?M.push(a.h(g.ElRadioButton,S,{default:()=>[$]})):typeof V=="function"?M.push(a.h(g.ElRadio,S,{default:()=>V(R)})):M.push(a.h(g.ElRadio,S,{default:()=>[$]}))}),M};return()=>{const V={...l.attrs,class:O.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:B},M=[],R={};l.slots.options?R.default=l.slots.options:R.default=()=>k(f.value,l.slots.text);const H=a.h(g.ElRadioGroup,V,R);M.push(H);const W={default:()=>M};l.slots.default&&(W.label=l.slots.default);const C={...ge(n,Rr),hintText:I.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(C["appear-listen"]=!0,C.onAppear=T),a.h(r,C,W)}}}}const{componentName:yi,create:bi,scope:wi}=J("radio-item"),jr=bi(pi(yi,wi,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}class Si{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const l=_e(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ke(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function $i(){const e=a.getCurrentInstance();return new Si(e.proxy)}function qr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Ze(e,t),l=Ze(e,r);if(n!==l)return!1;const o=Je(e,t),s=Je(e,r);return o===s}function vi(e,t,r,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(r==="text")i=Ze(e,s)===o;else if(r==="item")i=qr(e,s,o);else{let u=Je(e,s);u==null&&(u=Ze(e,s)),i=u===o}if(i){l.push(s);break}}}),l}function Ei(e){return{text:e,value:e}}function xi(e,t,r){return typeof e.itemOptions=="function"?e.itemOptions(t,r):e.itemOptions}const Br={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"},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],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function Ci(e,t,r){return{inheritAttrs:!1,props:{...ue,...me,...Br},emits:["change","update:modelValue"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=a.ref([]),d=a.ref([]),c=(b,V,M,R=!0)=>{const H=vi(n,b,V,M);if(H===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],R&&(i("update:modelValue",[]),i("change",[]));return}let W=!0;if(H.length!==d.value.length)W=!1;else for(let $=0;$<H.length;$++){const C=H[$],x=d.value[$];if(!qr(n,C,x)){W=!1;break}}if(!W){d.value=H;let $=[],C=[];H.forEach(L=>{$.push(Je(n,L)),n.valueType==="text"?C.push(Ze(n,L)):n.valueType==="item"?C.push(L):C.push(Je(n,L))}),u.value=$;const x=a.toRaw(C);R&&(i("update:modelValue",x),i("change",x))}},f=a.ref([]),w=$e(a.computed(()=>n.lazyLoad),"lazyLoad",Te.Near,b=>ee(b)),E=$i(),y=async(b,V)=>{if(b){const M=await E.load("checkbox",b,V);if(M.length>0)if(typeof M[0]=="string"){let W=M.map($=>Ei($));f.value=W}else f.value=M}};a.watch([()=>n.source,()=>n.params],async([b,V])=>{y(b,V)},{immediate:!w.value});let p=!1;const T=()=>{p||(p=!0,y(n.source,n.params))};a.watch([()=>f.value,()=>n.modelValue],([b,V])=>{c(V,n.valueType,b,!1)});const v=e,O=a.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),B=b=>{c(b,"value",f.value,!0)};let I=re(n,"hintText"),N=re(n,"hintVisible");const k=(b,V)=>{const M=[];return b.forEach((R,H)=>{const W=Je(n,R),$=Ze(n,R),C=xi(n,R,H)??{};let x=C.disabled;o.value===!0&&(x=o.value);const L=`${W}_${H}`,S={...C,key:L,class:n.itemClass,label:W,disabled:x,size:n.size,border:ee(n.border)};n.itemType==="button"?M.push(a.h(g.ElCheckboxButton,S,{default:()=>[$]})):typeof V=="function"?M.push(a.h(g.ElCheckbox,S,{default:()=>V(R)})):M.push(a.h(g.ElCheckbox,S,{default:()=>[$]}))}),M};return()=>{const V={...l.attrs,class:O.value,disabled:o.value||s.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,max:ae(n.max),min:ae(n.min),onChange:B},M=[],R={};l.slots.options?R.default=l.slots.options:R.default=()=>k(f.value,l.slots.text);const H=a.h(g.ElCheckboxGroup,V,R);M.push(H);const W={default:()=>M};l.slots.default&&(W.label=l.slots.default);const C={...ge(n,Br),hintText:I.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return w.value&&(C["appear-listen"]=!0,C.onAppear=T),a.h(r,C,W)}}}}const{componentName:Ti,create:Oi,scope:Ni}=J("checkbox-item"),Mr=Oi(Ci(Ti,Ni,de)),Dr={modelValue:{type:[Number,String],required:!1}};function Vi(e,t,r){return{props:{...ue,...me,...Dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=re(n,"modelValue",p=>ae(p)),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let w=re(n,"hintText"),E=a.ref(!1);const y=a.ref();return fe({}),()=>{const T={...l.attrs,ref:y,class:c.value,readonly:s.value||o.value,modelValue:u.value,onChange:f},v={},O=[],B=a.h(g.ElRate,T,v);O.push(B);const I={default:()=>O};if(l.slots.default){const V=l.slots.default();I.label=()=>V}const k={...ge(n,Dr),hintText:w.value,hintVisible:E.value,prop:`${n.prop}_item`};return a.h(r,k,I)}}}}const{componentName:ki,create:Ii,scope:Ai}=J("rate-item"),Lr=Ii(Vi(ki,Ai,de)),_r={modelValue:{type:[Boolean,String,Number],required:!1}};function Ri(e,t,r){return{props:{...ue,...me,..._r},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),{emitEvent:i}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),u=re(n,"modelValue"),d=e,c=a.computed(()=>({[d]:!0})),f=p=>{i("update:modelValue",p),i("change",p)};let w=re(n,"hintText"),E=re(n,"hintVisible");const y=a.ref();return fe({}),()=>{const T={...l.attrs,ref:y,class:c.value,readonly:s.value,disabled:o.value,modelValue:u.value,onChange:f},v={},O=[],B=a.h(g.ElSwitch,T,v);O.push(B);const I={default:()=>O};if(l.slots.default){const V=l.slots.default();I.label=()=>V}const k={...ge(n,_r),hintText:w.value,hintVisible:E.value,prop:`${n.prop}_item`};return a.h(r,k,I)}}}}const{componentName:ji,create:qi,scope:Bi}=J("switch-item"),Fr=qi(Ri(ji,Bi,de)),Pr={modelValue:{type:[String,Number,Boolean],required:!1}};function Mi(e,t,r){return{props:{...ue,...me,...Pr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const o=ye(a.computed(()=>n.disabled)),s=pe(a.computed(()=>n.readonly)),i=a.ref(!1),{emitEvent:u}=ce({componentName:e,get validate(){return!o.value&&!s.value}},n.prop??l.attrs.name),d=re(n,"modelValue"),c=e,f=a.computed(()=>({[c]:!0})),w=N=>{u("update:modelValue",N),u("change",N)};let E=re(n,"hintText"),y=a.ref(!1);const p=N=>{let b=N.target.value;i.value=!0,oe(E.value)||(y.value=!0),u("focus",b,N)},T=N=>{setTimeout(()=>{y.value&&(y.value=!1),i.value=!1},0);let b=N.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),O.value||u("blur",b,N)},v=()=>{u("clear","")},O=a.ref(!1),B=N=>{O.value=N,u("visible-change",N),N||u("selected")},I=a.ref();return fe({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()}}),()=>{const k={...l.attrs,ref:I,class:f.value,disabled:o.value||s.value,modelValue:d.value,["onUpdate:modelValue"]:w,onClear:v,onFocus:p,onBlur:T,onVisibleChange:B},b={};l.slots.option&&(b.default=l.slots.option);const V=[],M=a.h(g.ElTreeSelect,k,b);V.push(M);const R={default:()=>V};if(l.slots.default){const C=l.slots.default();R.label=()=>C}const W={...ge(n,Pr),hintText:E.value,hintVisible:y.value,prop:`${n.prop}_item`};return a.h(r,W,R)}}}}const{componentName:Di,create:Li,scope:_i}=J("tree-select-item"),Hr=Li(Mi(Di,_i,de)),Fi=Symbol.for("InnerPageScopeKey"),Pi=Symbol.for("PageWrapperKey");function Hi(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(r,n){a.provide(Fi,!0);const l={};a.provide(Pi,l);const o=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},s=a.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const f=n.slots.default();c.default=()=>f}return a.h(g.ElDialog,d,c)}}}}const{componentName:Qs,create:zi,scope:eu}=J("dialog-item"),zr=zi(Hi()),{componentName:tu,create:Ki}=J("ext-icon"),Kr=Ki({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=s=>{t("click",s)},l=a.computed(()=>e.name?e.name.indexOf("/")!==-1:!1),o="fox-icon";return()=>{const s=l.value;return a.h(s?"img":e.tag,{class:s?`${o}__img`:`${e.fontClassName} ${o} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:Q(e.size),width:Q(e.size),height:Q(e.size)},onClick:n,src:s?e.name:""},r.default?.())}}});function Wi(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""}},setup(r,{slots:n}){const l=e,o=a.computed(()=>({[l]:!0})),s=a.computed(()=>({[`${l}__mark`]:!0,[`${l}__mark-${r.type}`]:!0})),i=a.computed(()=>r.color?{background:r.color}:null),u=a.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),d=a.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const p={class:s.value,style:i.value};c=a.h("div",p)}const f={class:u.value,style:d.value},w=n.default?n.default():[],E=a.h("div",f,w),y={class:o.value};return a.h("div",y,[c,E])}}}}const{componentName:Gi,create:Yi,scope:nu}=J("indicator"),Wr=Yi(Wi(Gi));function Ui(e){const t=document.createRange();return t.setStart(e,0),t.setEnd(e,e.childNodes.length),t.getBoundingClientRect().width}const Xi={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:" "}};function Zi(e,t){return{props:{...Xi},setup(r,n){const l=a.ref(!0),o=a.ref(null),s=a.computed(()=>{const d={[`${e}`]:!0,["is-truncated"]:r.truncated};return r.type&&(d[`${e}__${r.type}`]=!0),r.size&&(d[`${e}__${r.size}`]=!0),d}),i=d=>{if(d&&ee(r.showOverflowTooltip)){const c=d.clientWidth,f=Ui(d);l.value=f<=c}};let u=null;return a.onMounted(()=>{if(!ee(r.showOverflowTooltip))return;const d=o.value;i(d),d&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(d)}),u.observe(d))}),a.onUnmounted(()=>{u?.disconnect()}),()=>{const d={},c={class:s.value,ref:o,...n.attrs};if(ee(r.numberFormat)&&typeof n.slots.default=="function"){const y=n.slots.default();if(Array.isArray(y)&&y.length===1&&y[0].type.toString()==="Symbol(Text)"){const T=ae(r.digits),v=ae(r.decimalLength),O=ee(r.autoPadding);let B=`${y[0].children}`,I=B.split("").reverse().join("");I=ct(I,v,O,T,r.separator),B=I.split("").reverse().join("");const N=a.h(r.tag,c,{default:()=>[B]});d.default=()=>N}}else{const y=a.h(r.tag,c,{default:n.slots.default});d.default=()=>y}const w={disabled:l.value};return d.content=n.slots.default,a.h(g.ElTooltip,w,d)}}}}const{componentName:Ji,create:Qi,scope:ru}=J("text"),Gr=Qi(Zi(Ji)),es={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:st.ArrowUp}};function ts(e,t,r){return{props:{...es},emits:["click","update:modelValue"],setup(n,{emit:l}){const o=a.computed(()=>{const f={[`${e}`]:!0};return n.disabled?f[`${e}__disabled`]=!0:f[`${e}__${n.type}`]=!0,f}),s=re(n,"modelValue"),i=a.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=a.computed(()=>({[`${e}__text`]:!0})),d=a.computed(()=>({[`${e}__icon`]:!0,["is-expand"]:!s.value,["is-collapse"]:s.value})),c=()=>{l("update:modelValue",!s.value)};return()=>{const f=[];if(i.value){const p={class:u.value},T=a.h("span",p,[i.value]);f.push(T)}const w={class:d.value},E=r(n.icon,w);return E&&f.push(E),a.h("div",{class:o.value,onClick:c},f)}}}}const{componentName:ns,create:rs,scope:as}=J("more-button"),Yr=rs(ts(ns,as,(e,t)=>(e=e??st.ArrowUp,a.h(g.ElIcon,t,{default:()=>[a.h(e)]})))),{componentName:ls,create:os,scope:lu}=J("tour"),is=os({components:{Close:st.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 r=ls,n=a.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=a.ref({}),o=a.computed(()=>`${r}`),s=a.computed(()=>{const{offset:y,maskWidth:p,maskHeight:T}=e,{width:v,height:O,left:B,top:I}=l.value,N=e.steps[n.active].offset??y,k=[B+v/2,I+O/2],b=Number(p||v),V=Number(T||O);return{width:`${b+ +N.left+N.right}px`,height:`${V+N.top+N.bottom}px`,top:`${k[1]-V/2-+N.top}px`,left:`${k[0]-b/2-+N.left}px`}}),i=y=>{y=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,a.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=y=>y.popoverWidth??e.width,d=y=>y.location??e.location,c=()=>{const y=document.querySelector(`${e.steps[n.active].target}`),p=ot(y);l.value={x:p.left,y:p.top,top:p.top,left:p.left,width:p.width,height:p.height}},f=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},w=()=>{e.closeOnClickOverlay&&f()},E=(y,p=0)=>{y&&c(),e.steps,n.active=p,n.showTour=y,n.showPopup=y};return a.onMounted(()=>{E(e.modelValue,e.current)}),a.watch(()=>e.modelValue,y=>{E(y)}),{...a.toRefs(n),classes:o,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:w}}}),ss={key:0,class:"fox-tour__content"},us={key:0,class:"fox-tour__content-top"},cs={class:"fox-tour__content-inner"},fs={class:"fox-tour__content-bottom"},ds={class:"fox-tour__content-bottom-init"},hs={class:"fox-tour__content-bottom-operate"},gs={key:1,class:"fox-tour__content fox-tour__content-tile"},ms={class:"fox-tour__content-inner"};function ps(e,t,r,n,l,o){const s=a.resolveComponent("Close"),i=a.resolveComponent("fox-button"),u=a.resolveComponent("ElPopover");return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(e.classes)},[a.withDirectives(a.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[a.vShow,e.showTour]]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.steps,(d,c)=>(a.openBlock(),a.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(a.openBlock(),a.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:a.withCtx(()=>[e.showTour?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:a.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):a.createCommentVNode("",!0)]),default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(a.openBlock(),a.createElementBlock("div",ss,[e.showTitleBar?(a.openBlock(),a.createElementBlock("div",us,[a.createElementVNode("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[a.createVNode(s,{class:"fox-tour__content-top-close"})])])):a.createCommentVNode("",!0),a.createElementVNode("div",cs,a.toDisplayString(d.content),1),a.createElementVNode("div",fs,[a.createElementVNode("div",ds,a.toDisplayString(e.active+1)+"/"+a.toDisplayString(e.steps.length),1),a.createElementVNode("div",hs,[a.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(a.openBlock(),a.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.prevStepText),1)]),_:1})):a.createCommentVNode("",!0)]),e.steps.length-1==e.active?(a.openBlock(),a.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):a.createCommentVNode("",!0),a.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(a.openBlock(),a.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>e.changeStep("next"))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(e.nextStepText),1)]),_:1})):a.createCommentVNode("",!0)])])])])):a.createCommentVNode("",!0),e.type=="tile"?(a.openBlock(),a.createElementBlock("div",gs,[a.createElementVNode("div",ms,a.toDisplayString(d.content),1)])):a.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):a.createCommentVNode("",!0)]))),128))],2)}const Ur=Ae(is,[["render",ps]]);function ys(e,t){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(r,{slots:n}){return kn(r.name,r.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ou,create:bs,scope:iu}=J("domain-provider"),Xr=bs(ys());var Oe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",i="minute",u="hour",d="day",c="week",f="month",w="quarter",E="year",y="date",p="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,O={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("_")},B=function($,C,x){var L=String($);return!L||L.length>=C?$:""+Array(C+1-L.length).join(x)+$},I={s:B,z:function($){var C=-$.utcOffset(),x=Math.abs(C),L=Math.floor(x/60),S=x%60;return(C<=0?"+":"-")+B(L,2,"0")+":"+B(S,2,"0")},m:function $(C,x){if(C.date()<x.date())return-$(x,C);var L=12*(x.year()-C.year())+(x.month()-C.month()),S=C.clone().add(L,f),D=x-S<0,_=C.clone().add(L+(D?-1:1),f);return+(-(L+(x-S)/(D?S-_:_-S))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:E,w:c,d,D:y,h:u,m:i,s,ms:o,Q:w}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},N="en",k={};k[N]=O;var b=function($){return $ instanceof H},V=function $(C,x,L){var S;if(!C)return N;if(typeof C=="string"){var D=C.toLowerCase();k[D]&&(S=D),x&&(k[D]=x,S=D);var _=C.split("-");if(!S&&_.length>1)return $(_[0])}else{var j=C.name;k[j]=C,S=j}return!L&&S&&(N=S),S||!L&&N},M=function($,C){if(b($))return $.clone();var x=typeof C=="object"?C:{};return x.date=$,x.args=arguments,new H(x)},R=I;R.l=V,R.i=b,R.w=function($,C){return M($,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var H=function(){function $(x){this.$L=V(x.locale,null,!0),this.parse(x)}var C=$.prototype;return C.parse=function(x){this.$d=function(L){var S=L.date,D=L.utc;if(S===null)return new Date(NaN);if(R.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var _=S.match(T);if(_){var j=_[2]-1||0,G=(_[7]||"0").substring(0,3);return D?new Date(Date.UTC(_[1],j,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)):new Date(_[1],j,_[3]||1,_[4]||0,_[5]||0,_[6]||0,G)}}return new Date(S)}(x),this.$x=x.x||{},this.init()},C.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},C.$utils=function(){return R},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(x,L){var S=M(x);return this.startOf(L)<=S&&S<=this.endOf(L)},C.isAfter=function(x,L){return M(x)<this.startOf(L)},C.isBefore=function(x,L){return this.endOf(L)<M(x)},C.$g=function(x,L,S){return R.u(x)?this[L]:this.set(S,x)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(x,L){var S=this,D=!!R.u(L)||L,_=R.p(x),j=function(Y,K){var U=R.w(S.$u?Date.UTC(S.$y,K,Y):new Date(S.$y,K,Y),S);return D?U:U.endOf(d)},G=function(Y,K){return R.w(S.toDate()[Y].apply(S.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(K)),S)},m=this.$W,A=this.$M,q=this.$D,F="set"+(this.$u?"UTC":"");switch(_){case E:return D?j(1,0):j(31,11);case f:return D?j(1,A):j(0,A+1);case c:var P=this.$locale().weekStart||0,z=(m<P?m+7:m)-P;return j(D?q-z:q+(6-z),A);case d:case y:return G(F+"Hours",0);case u:return G(F+"Minutes",1);case i:return G(F+"Seconds",2);case s:return G(F+"Milliseconds",3);default:return this.clone()}},C.endOf=function(x){return this.startOf(x,!1)},C.$set=function(x,L){var S,D=R.p(x),_="set"+(this.$u?"UTC":""),j=(S={},S[d]=_+"Date",S[y]=_+"Date",S[f]=_+"Month",S[E]=_+"FullYear",S[u]=_+"Hours",S[i]=_+"Minutes",S[s]=_+"Seconds",S[o]=_+"Milliseconds",S)[D],G=D===d?this.$D+(L-this.$W):L;if(D===f||D===E){var m=this.clone().set(y,1);m.$d[j](G),m.init(),this.$d=m.set(y,Math.min(this.$D,m.daysInMonth())).$d}else j&&this.$d[j](G);return this.init(),this},C.set=function(x,L){return this.clone().$set(x,L)},C.get=function(x){return this[R.p(x)]()},C.add=function(x,L){var S,D=this;x=Number(x);var _=R.p(L),j=function(A){var q=M(D);return R.w(q.date(q.date()+Math.round(A*x)),D)};if(_===f)return this.set(f,this.$M+x);if(_===E)return this.set(E,this.$y+x);if(_===d)return j(1);if(_===c)return j(7);var G=(S={},S[i]=n,S[u]=l,S[s]=r,S)[_]||1,m=this.$d.getTime()+x*G;return R.w(m,this)},C.subtract=function(x,L){return this.add(-1*x,L)},C.format=function(x){var L=this,S=this.$locale();if(!this.isValid())return S.invalidDate||p;var D=x||"YYYY-MM-DDTHH:mm:ssZ",_=R.z(this),j=this.$H,G=this.$m,m=this.$M,A=S.weekdays,q=S.months,F=function(K,U,Z,te){return K&&(K[U]||K(L,D))||Z[U].slice(0,te)},P=function(K){return R.s(j%12||12,K,"0")},z=S.meridiem||function(K,U,Z){var te=K<12?"AM":"PM";return Z?te.toLowerCase():te},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:m+1,MM:R.s(m+1,2,"0"),MMM:F(S.monthsShort,m,q,3),MMMM:F(q,m),D:this.$D,DD:R.s(this.$D,2,"0"),d:String(this.$W),dd:F(S.weekdaysMin,this.$W,A,2),ddd:F(S.weekdaysShort,this.$W,A,3),dddd:A[this.$W],H:String(j),HH:R.s(j,2,"0"),h:P(1),hh:P(2),a:z(j,G,!0),A:z(j,G,!1),m:String(G),mm:R.s(G,2,"0"),s:String(this.$s),ss:R.s(this.$s,2,"0"),SSS:R.s(this.$ms,3,"0"),Z:_};return D.replace(v,function(K,U){return U||Y[K]||_.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(x,L,S){var D,_=R.p(L),j=M(x),G=(j.utcOffset()-this.utcOffset())*n,m=this-j,A=R.m(this,j);return A=(D={},D[E]=A/12,D[f]=A,D[w]=A/3,D[c]=(m-G)/6048e5,D[d]=(m-G)/864e5,D[u]=m/l,D[i]=m/n,D[s]=m/r,D)[_]||m,S?A:R.a(A)},C.daysInMonth=function(){return this.endOf(f).$D},C.$locale=function(){return k[this.$L]},C.locale=function(x,L){if(!x)return this.$L;var S=this.clone(),D=V(x,L,!0);return D&&(S.$L=D),S},C.clone=function(){return R.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},$}(),W=H.prototype;return M.prototype=W,[["$ms",o],["$s",s],["$m",i],["$H",u],["$W",d],["$M",f],["$y",E],["$D",y]].forEach(function($){W[$[1]]=function(C){return this.$g(C,$[0],$[1])}}),M.extend=function($,C){return $.$i||($(C,H,M),$.$i=!0),M},M.locale=V,M.isDayjs=b,M.unix=function($){return M(1e3*$)},M.en=k[N],M.Ls=k,M.p={},M})})(Zr);var ws=Zr.exports;const je=Ne(ws);var Jr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},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)},d=function(p){return function(T){this[p]=+T}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(T){if(!T||T==="Z")return 0;var v=T.match(/([+-]|\d\d)/g),O=60*v[1]+(+v[2]||0);return O===0?0:v[0]==="+"?-O:O}(p)}],f=function(p){var T=i[p];return T&&(T.indexOf?T:T.s.concat(T.f))},w=function(p,T){var v,O=i.meridiem;if(O){for(var B=1;B<=24;B+=1)if(p.indexOf(O(B,0,T))>-1){v=B>12;break}}else v=p===(T?"pm":"PM");return v},E={A:[s,function(p){this.afternoon=w(p,!1)}],a:[s,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,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[l,d("day")],Do:[s,function(p){var T=i.ordinal,v=p.match(/\d+/);if(this.day=v[0],T)for(var O=1;O<=31;O+=1)T(O).replace(/\[|\]/g,"")===p&&(this.day=O)}],M:[o,d("month")],MM:[l,d("month")],MMM:[s,function(p){var T=f("months"),v=(f("monthsShort")||T.map(function(O){return O.slice(0,3)})).indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(p){var T=f("months").indexOf(p)+1;if(T<1)throw new Error;this.month=T%12||T}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(p){this.year=u(p)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function y(p){var T,v;T=p,v=i&&i.formats;for(var O=(p=T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,R,H){var W=H&&H.toUpperCase();return R||v[H]||r[H]||v[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,C,x){return C||x.slice(1)})})).match(n),B=O.length,I=0;I<B;I+=1){var N=O[I],k=E[N],b=k&&k[0],V=k&&k[1];O[I]=V?{regex:b,parser:V}:N.replace(/^\[|\]$/g,"")}return function(M){for(var R={},H=0,W=0;H<B;H+=1){var $=O[H];if(typeof $=="string")W+=$.length;else{var C=$.regex,x=$.parser,L=M.slice(W),S=C.exec(L)[0];x.call(R,S),M=M.replace(S,"")}}return function(D){var _=D.afternoon;if(_!==void 0){var j=D.hours;_?j<12&&(D.hours+=12):j===12&&(D.hours=0),delete D.afternoon}}(R),R}}return function(p,T,v){v.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(u=p.parseTwoDigitYear);var O=T.prototype,B=O.parse;O.parse=function(I){var N=I.date,k=I.utc,b=I.args;this.$u=k;var V=b[1];if(typeof V=="string"){var M=b[2]===!0,R=b[3]===!0,H=M||R,W=b[2];R&&(W=b[2]),i=this.$locale(),!M&&W&&(i=v.Ls[W]),this.$d=function(L,S,D){try{if(["x","X"].indexOf(S)>-1)return new Date((S==="X"?1e3:1)*L);var _=y(S)(L),j=_.year,G=_.month,m=_.day,A=_.hours,q=_.minutes,F=_.seconds,P=_.milliseconds,z=_.zone,Y=new Date,K=m||(j||G?1:Y.getDate()),U=j||Y.getFullYear(),Z=0;j&&!G||(Z=G>0?G-1:Y.getMonth());var te=A||0,be=q||0,qe=F||0,ie=P||0;return z?new Date(Date.UTC(U,Z,K,te,be,qe,ie+60*z.offset*1e3)):D?new Date(Date.UTC(U,Z,K,te,be,qe,ie)):new Date(U,Z,K,te,be,qe,ie)}catch{return new Date("")}}(N,V,k),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),H&&N!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var $=V.length,C=1;C<=$;C+=1){b[1]=V[C-1];var x=v.apply(this,b);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}C===$&&(this.$d=new Date(""))}else B.call(this,I)}}})})(Jr);var Ss=Jr.exports;const $s=Ne(Ss);var Qr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(i){var u=["th","st","nd","rd"],d=i%100;return"["+i+(u[(d-20)%10]||u[d]||u[0])+"]"},o.format=function(i){var u=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),f=(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(w){switch(w){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.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 s.bind(this)(f)}}})})(Qr);var vs=Qr.exports;const Es=Ne(vs);var ea={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n,l){var o=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,w,E,y,p){var T=f.name?f:f.$locale(),v=s(T[w]),O=s(T[E]),B=v||O.map(function(N){return N.slice(0,y)});if(!p)return B;var I=T.weekStart;return B.map(function(N,k){return B[(k+(I||0))%7]})},u=function(){return l.Ls[l.locale()]},d=function(f,w){return f.formats[w]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,p,T){return p||T.slice(1)})}(f.formats[w.toUpperCase()])},c=function(){var f=this;return{months:function(w){return w?w.format("MMMM"):i(f,"months")},monthsShort:function(w){return w?w.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):i(f,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return d(f.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.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 d(f,w)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(f){return i(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return i(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return i(u(),"weekdaysMin","weekdays",2,f)}}})})(ea);var xs=ea.exports;const Cs=Ne(xs);var ta={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){var r="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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(r);if(c.isBefore(f))return 1}var w=s(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),E=this.diff(w,r,!0);return E<0?s(this).startOf("week").week():Math.ceil(E)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(ta);var Ts=ta.exports;const Os=Ne(Ts);var na={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,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}}})})(na);var Ns=na.exports;const Vs=Ne(Ns);var ra={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,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")}}})})(ra);var ks=ra.exports;const Is=Ne(ks);var aa={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(aa);var As=aa.exports;const Rs=Ne(As);var la={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Oe,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(la);var js=la.exports;const qs=Ne(js);je.extend(Cs),je.extend(Es),je.extend($s),je.extend(Os),je.extend(Vs),je.extend(Is),je.extend(Rs),je.extend(qs);const oa=10;function Bs(e,t){return e>t&&e>oa?"horizontal":t>e&&t>oa?"vertical":""}function Ms(){const e=a.ref(0),t=a.ref(0),r=a.ref(0),n=a.ref(0),l=a.ref(0),o=a.ref(0),s=a.ref(0),i=a.ref(0),u=a.ref(0),d=a.ref(0),c=a.ref(""),f=()=>c.value==="vertical",w=()=>c.value==="horizontal",E=()=>{s.value=0,i.value=0,u.value=0,d.value=0,c.value="",r.value=0};return{move:T=>{const v=T.touches[0];s.value=v.clientX-e.value,i.value=v.clientY-t.value,l.value=v.clientX,o.value=v.clientY,u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-r.value,c.value||(c.value=Bs(u.value,d.value))},start:T=>{E(),e.value=T.touches[0].clientX,t.value=T.touches[0].clientY,r.value=Date.now()},reset:E,startX:e,startY:t,startTime:r,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:c,isVertical:f,isHorizontal:w}}const Ds=[Ln,_n,Fn,Pn,Kn,de,Zn,Jn,Tt,er,lr,ir,ur,fr,yr,wr,vr,xr,Tr,Nr,Ir,jr,Mr,Lr,Fr,Hr,zr,Qt,Ut,Kr,Wr,Gr,Yr,Ur,Xr],Ls=new za(Ds,[Ga],"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=xr,h.Broadcast=Ft,h.BroadcastKey=se,h.CascaderItem=vr,h.CheckboxItem=Mr,h.Content=Pn,h.DataItemsKey=ze,h.DateItem=ir,h.DialogItem=zr,h.Domain=pt,h.DomainKey=Se,h.DomainProvider=Xr,h.ExtIcon=Kr,h.FooterBar=Fn,h.Group=Kn,h.HeaderBar=_n,h.HintText=Tt,h.Indicator=Wr,h.InputItem=er,h.InputNumberItem=wr,h.Item=de,h.Mapping=Qt,h.MoneyItem=yr,h.MoreButton=Yr,h.Page=Ln,h.Price=Ut,h.PriorityPolicy=Te,h.RadioItem=jr,h.RateItem=Lr,h.RowItem=Jn,h.SelectItem=lr,h.SlotItem=Zn,h.SwitchItem=Fr,h.TableItem=Ir,h.TableMappingColumn=Tr,h.TableRadioColumn=Nr,h.Text=Gr,h.TimeItem=ur,h.TimeSelectItem=fr,h.Tour=Ur,h.TreeSelectItem=Hr,h.UniqueID=Un,h.ValidateSchema=On,h.ValidateSchemaKey=xe,h.clearNonNumber=$a,h.clone=Lt,h.compareTo=Bt,h.createBroadcast=ht,h.createValidateSchema=mt,h.debounce=at,h.debounceRef=qa,h.decimalLength=Sn,h.default=Ls,h.defineBroadcast=Ta,h.defineConfigDomain=kn,h.defineDataItem=An,h.defineDomain=Ht,h.defineItem=ce,h.definePageState=Rn,h.deleteGlobalValidator=ka,h.disabledProperty=ye,h.divide=qt,h.excludeProps=ge,h.extend=Me,h.floatData=Ca,h.getGlobalValidateCheckEvents=xn,h.getGlobalValidateResetEvents=Tn,h.getPageContentAreaHeight=St,h.getPageContentAreaWidth=$t,h.getPageFooterAreaHeight=wt,h.getPageHeaderAreaHeight=bt,h.getRootDomain=Ke,h.hasSymbol=dn,h.includeProps=xa,h.indexOf=va,h.installRules=In,h.integerLength=wn,h.isArray=sa,h.isArrayLike=mn,h.isBrowser=He,h.isDate=fa,h.isESModule=ma,h.isEmptyString=oe,h.isEqual=De,h.isFunction=Mt,h.isHidden=gn,h.isInnerPage=Ma,h.isMap=ua,h.isNumberString=bn,h.isObject=ke,h.isPlainObject=Dt,h.isPromise=ga,h.isRegExp=yn,h.isSet=ca,h.isString=da,h.isSubPage=Da,h.isSymbol=ha,h.isWindow=hn,h.lastIndexOf=Ea,h.makeArray=wa,h.merge=pn,h.multiply=sn,h.negate=un,h.nextTick=ya,h.numberFormat=ct,h.objectToString=fn,h.property=$e,h.raf=Sa,h.readonlyProperty=pe,h.setGlobalValidateCheckEvents=Ia,h.setGlobalValidateHandler=Na,h.setGlobalValidateMessages=Ra,h.setGlobalValidateResetEvents=Aa,h.setGlobalValidator=Va,h.throttle=Vn,h.toBoolean=ee,h.toNumber=ae,h.toPadding=Ee,h.toPx=ne,h.toPxDesc=Q,h.toTypeString=ft,h.toValue=re,h.typeOf=dt,h.unNumberFormat=cn,h.updatePageState=zt,h.useBroadcast=nt,h.useDomain=Ce,h.useExpose=fe,h.usePageState=yt,h.usePosition=Wn,h.useRect=ot,h.useTouch=Ms,h.valueLength=tt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});