@fox-js/foxui-pc 4.0.1-11 → 4.0.1-12

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,a){typeof exports=="object"&&typeof module<"u"?a(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"],a):(d=typeof globalThis<"u"?globalThis:d||self,a(d.FoxUI={},d.Vue,d.fox,d.Schema,d.elementPlus,d.i18n))})(this,function(d,a,_,Tr,h,he){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Wed Dec 14 2022 14:19:51 GMT+0800 (中国标准时间)
3
- */const Oe=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(Tr);/*!
1
+ (function(f,a){typeof exports=="object"&&typeof module<"u"?a(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"],a):(f=typeof globalThis<"u"?globalThis:f||self,a(f.FoxUI={},f.Vue,f.fox,f.Schema,f.elementPlus,f.i18n))})(this,function(f,a,_,xr,d,me){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Mon Dec 26 2022 11:34:48 GMT+0800 (中国标准时间)
3
+ */const Ne=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(xr);/*!
4
4
  * @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
5
- */function Ye(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=ne(e),t=ne(t),[e,t]=ht(ne(e),ne(t)),r==1&&(n==1?e=dt(e):t=dt(t));let l=Bt(e,t);return r?r==2?"-"+ne(l):e.length<l.length?ne(l.substring(1)):"-"+ne(dt(l)):ne(l)}function dt(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 Bt(t,o)}function ne(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("."),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 Bt(e,t){[e,t]=ht(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 X=(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))(X||{});function Be(e,t=0,r=X.HALF_EVEN){if(r===X.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 i=o.substr(0,o.length-t);return e=i+"."+o.substr(o.length-t)+s,i=Be(e,0,r),(n?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,Ft(l[1],o,n,r)?(n?"-":"")+gt(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 u=l[1].substring(t);return u&&Ft(u,s,n,r)&&(s=gt(s),s.length>t)?(n?"-":"")+gt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function Ft(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===X.DOWN||!r&&n===X.FLOOR||r&&n===X.CEILING)return!1;if(n===X.UP||r&&n===X.FLOOR||!r&&n===X.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 X.HALF_DOWN:return!1;case X.HALF_UP:return!0;case X.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 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 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=Fe(e),t=Fe(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=Fe(e.replace(".","")),t=Fe(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let s=t.length,u=0,i=[],c=s-1,f="";for(let g=0;g<s;g++)i[g]=e.length-1;for(let g=0;g<2*e.length;g++){let O=0;for(let R=t.length-1;R>=c&&R>=0;R--)i[R]>-1&&i[R]<e.length&&(O+=parseInt(e[i[R]--])*parseInt(t[R]));O+=u,u=Math.floor(O/10),f=O%10+f,c--}return f=Fe(Nr(f,o)),r==1&&(f="-"+f),f}function Nr(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 Fe(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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=ne(t.replace(".","")),l>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=ne(e+new Array(l+1).join("0"));else if(l>c)e=e.replace(".",""),e=ne(e+new Array(l-c+1).join("0"));else if(l<c){e=e.replace(".","");let f=e.length-c+l;e=ne(e.substring(0,f)+"."+e.substring(f))}else l==c&&(e=ne(e.replace(".","")))}let o=0,s=t.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let c=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(c+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=c,u="0."+new Array(c).join("0")}for(r=r+2;o<=r;){let c=0;for(;parseInt(i)>=parseInt(t);)i=Ye(i,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,i=i+"0")}return(n==1?"-":"")+ne(Be(u,r-2))}function pt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),Ye(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(),Lt(e),Lt(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=pt(e,mt(t,Be(yt(e,t),0,X.FLOOR)));return r+n}function Lt(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function _t(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=X;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=ne(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+ne(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=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 l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",u=o;u>0;)u<r?(r=u,u=0):u-=r,s=t.substring(u,u+r)+(u<o-r&&u>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return K.getPrettyValue(this.value,t,r)}static round(t,r=0,n=X.HALF_EVEN){if(t=K.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Be(t,r,n)}round(t=0,r=X.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(Be(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,X.FLOOR)}floor(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,X.FLOOR)}static ceil(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,X.CEILING)}ceil(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,X.CEILING)}static add(t,r){return t=K.validate(t),r=K.validate(r),Ye(t,r)}add(t){return new K(Ye(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),_t(t,r)}compareTo(t){return _t(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 St(e,t,r=8){return K.divide(`${e}`,`${t}`,r)}function wt(e,t){return e=`${e}`,t=`${t}`,K.compareTo(e,t)}function Kt(e){return K.negate(e)}function $t(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 u=o,i="",c=o.indexOf(".");c!=-1&&(u=o.substring(0,c),i=o.substring(c+1)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let f;if(n>0){let g="",O=u.split("").reverse();for(let R=0;R<O.length;R++)g+=O[R]+((R+1)%n==0&&R+1!=O.length?l:"");i.length==0?f=`${s}${g.split("").reverse().join("")}`:f=`${s}${g.split("").reverse().join("")}.${i}`}else i.length==0?f=`${s}${u}`:f=`${s}${u}.${i}`;return f}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",Vr=Pe&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Gt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const J=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Yt(e){return J(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),J(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Wt(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 Xt(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 Ir(e,t=!0,r=!0){t?e=Xt(e,".",/\./g):e=e.replace(/\./g,""),r?e=Xt(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function xr(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(_.isEqual(e,r))return!0}):t.indexOf(e)}function Ar(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(_.isEqual(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function Le(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Rr(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function le(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 jr=(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},Q=Symbol("BroadcastKey");class vt{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="*"):Gt(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 i=Reflect.apply(s,this.proxy,[...n]);i!=null&&o.push(i)}const u=this.proxy??{};if(typeof u[r]=="function"){const i=Reflect.apply(u[r],u,[...n]);i!=null&&o.push(i)}}return this.children.forEach(s=>{const u=Reflect.apply(s.emit,s,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),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 We(e,t,r,n){const l=new vt(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function kr(e,t,r){const n=r;if(n[Q])return n[Q];const l=a.inject(Q,null),o=new vt(l,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[Q]=o,a.provide(Q,o),a.onUnmounted(()=>{o.destroy(),n[Q]=void 0}),o}function _e(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[Q]??a.inject(Q,null):a.inject(Q,null)}class Dr{error(t,r){const n=r,l=_e(r);l?l.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 l=n,o=_e(n),s=r.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),u=t.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!s&&u?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Zt=new Dr;function Mr(e){Zt=e}function qr(e,t){Oe.default.setValidator(e,t)}function Br(e){Oe.default.deleteValidator(e)}let Jt=["blur","clear"];function Fr(e){Jt=e}function Qt(){return Jt}let en=["focus","change"];function Pr(e){en=e}function tn(){return en}function Lr(e){Oe.default.messages(e)}function He(...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 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=a.effectScope(),this.scope.run(()=>{a.watchEffect(()=>{const r=Ue(He(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let i={type:o};s!==null&&typeof s=="object"&&Object.assign(i,s),n.push(i);continue}let u=this.getValidator(o);if(u!==null){let i={type:o,validator:u};n.push(i)}}this.attrRules=Ue(n);const l=He(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=Zt;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?Oe.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?Oe.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Oe.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=He(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ue(t):this.rules=Ue([t]);const n=He(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=He(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},u=new Oe.default(l),i=this.proxy??s;return u.validate(s,{context:i}).then(f=>{if(f.pass)this.success();else{let g="error";Array.isArray(f.errors)&&f.errors.length>0&&(g=f.errors[0].message??g,f.errors=[f.errors[0]],f.errors[0].ref=i),this.error(g)}return f}).catch(f=>{const g=f.message??`${f}`;return this.error(g),f})}}return Promise.resolve({pass:!0})}}function Xe(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 nn(t,r,e)}const rn=Symbol("EventEmitterKey");class _r{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 Hr(e,t){let r=0;return function(...n){const l=Date.now();l-r>t&&(Reflect.apply(e,{},[...n]),r=l)}}function Et(e,t){let r,n=null;return function(...l){n=l,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const be=Symbol("DomainKey"),xe=Symbol("DataItemsKey");class Ct{_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 Kr=new Ct;function Ke(){return Kr}function Se(e=null){e||(e=a.getCurrentInstance());const t=e?.proxy;return t?t[be]??a.inject(be,null):a.inject(be,null)}const Ot=Symbol("OriginalDateKey");function Tt(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(be,null);s===null&&(s=Ke());const u=e||t.prop||t.name,i=new Ct(u);i.parent=s;const c=v=>{o[Ot]||O(v),i.set("modelValue",v)},f=()=>i.getForSelf("modelValue")??null,g=()=>o[Ot]??null,O=v=>{const A={};_.extend(!0,A,a.toRaw(v)),o[Ot]=A};a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),t.modelValue&&O(t.modelValue),o[be]=i,a.provide(be,i);let R=null,T=null;if(l!==null){const v=a.inject(Q,null);R=We(o,v,u,n),i.broadcast=R,o[Q]=R,a.provide(Q,R),o.broadcast=(C,D,...V)=>Reflect.apply(R.emit,R,[C,D,...V]);const A=a.inject(ye,null);T=Xe(o,A,{componentName:""}),i.validateSchema=T,o[ye]=T,a.provide(ye,T),o[xe]=new Map,o.validate=(C=!0)=>{const D=[];let V=null;if(C===!0)V={name:"*"};else if(Array.isArray(C)&&C.length>0){const b=C;V={name:p=>p?b.indexOf(p)!==-1:!1}}else if(C!=null&&typeof C=="object"){const b=C;if(Array.isArray(b.include)&&b.include.length>0){const p=b.include;V={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const p=b.exclude;V={name:$=>$?p.indexOf($)===-1:!1}}}if(V){const b=R?.emitToChildren(V,"validate",!1);b&&Reflect.apply([].push,D,b)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(b=>{let p=[];return b.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(p=[...p,...$.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(C,D=!0)=>{if(D){const V=Reflect.ownKeys(C),b=[...V],p={name:$=>{const m=V.includes($);if(m){const w=b.findIndex(j=>$===j);w!==-1&&b.splice(w,1)}return m}};R?.emitToChildren(p,"setNameValidateRules",C,!1),b.length>0&&b.forEach($=>{let m=String($);const j=an(i,m,{componentName:"",fieldName:m,pureDataValidate:!0},R,T);o[xe].set(m,j);const S=C[m];S&&j.validateSchema.setRule(S)})}},o.clearValidate=(C=!0)=>{let D=null;if(C===!0)D={name:"*"};else if(Array.isArray(C)&&C.length>0){const V=C;D={name:b=>b?V.indexOf(b)!==-1:!1}}else if(C!=null&&typeof C=="object"){const V=C;if(Array.isArray(V.include)&&V.include.length>0){const b=V.include;D={name:p=>p?b.indexOf(p)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const b=V.exclude;D={name:p=>p?b.indexOf(p)===-1:!1}}}D&&R?.emitToChildren(D,"clearValidate",!1)},o.resetFields=C=>{const D=f();if(!D)return;const V={};if(_.extend(!0,V,g()??{}),Array.isArray(C))C.forEach(b=>{D[b]=V[b]});else if(C&&Array.isArray(C.include))(C.include??[]).forEach(p=>{D[p]=V[p]});else if(C&&Array.isArray(C.exclude)){let b=C.exclude??[];Reflect.ownKeys(V).forEach(p=>{b.includes(p)||(D[p]=V[p])})}else Object.assign(D,V);o.clearValidate(C)},o.setModelValue=(C,D)=>{!D||D===u?c(C):R?.emitToChildren({name:D},"setModelValue",C)},o.getModelValue=()=>f()}return a.onUnmounted(()=>{i.destroy(),o[be]=void 0,o[xe]&&(o[xe].clear(),o[xe]=void 0),R!==null&&(R.destroy(),o[Q]=void 0),T!==null&&(T.destroy(),o[ye]=void 0)}),i}function re(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",s=a.inject(Q,null),u=We(l,s,o,r);l[Q]=u,a.provide(Q,u),l.broadcast=(T,v,...A)=>Reflect.apply(u.emit,u,[T,v,...A]);const i=a.inject(ye,null);e.fieldName=e.fieldName??o;const c=Xe(l,i,e);l[ye]=c,a.provide(ye,c),l.validate=(T=null)=>{const v=[];if(!Array.isArray(T)||T.indexOf(o)!==-1){const C=c?.validate();v.push(C)}let A=null;if(T===!0)A={name:"*"};else if(Array.isArray(T)&&T.length>0){const C=T;A={name:D=>D?C.indexOf(D)!==-1:!1}}else if(T!=null&&typeof T=="object"){const C=T;if(Array.isArray(C.include)&&C.include.length>0){const D=C.include;A={name:V=>V?D.indexOf(V)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const D=C.exclude;A={name:V=>V?D.indexOf(V)===-1:!1}}}if(A){const C=u.emitToChildren(A,"validate",!1);Reflect.apply([].push,v,C)}return v.length==1?v[0]:v.length>1?Promise.all(v).then(C=>{let D=[];return C.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(D=[...D,...V.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=T=>c?.setRule(T),l.setNameValidateRules=(T,v=!1)=>{const A=T[o];if(A&&c?.setRule(A),v){const C={name:D=>Reflect.ownKeys(T).includes(D)};u.emitToChildren(C,"setNameValidateRules",T,!1)}},l.clearValidate=(T=null)=>{(!Array.isArray(T)||T.indexOf(t??"")!==-1)&&c?.clear();let v=null;if(T===!0)v={name:"*"};else if(Array.isArray(T)&&T.length>0){const A=T;v={name:C=>C?A.indexOf(C)!==-1:!1}}else if(T!=null&&typeof T=="object"){const A=T;if(Array.isArray(A.include)&&A.include.length>0){const C=A.include;v={name:D=>D?C.indexOf(D)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const C=A.exclude;v={name:D=>D?C.indexOf(D)===-1:!1}}}v&&u.emitToChildren(v,"clearValidate",!1)};const f=new _r(l);l[rn]=f;const g=Et((T="validate")=>{T==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Qt()).forEach(T=>{f.on(T,v=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:tn()).forEach(T=>{f.on(T,v=>{g("reset")})}),a.onUnmounted(()=>{u.destroy(),l[Q]=void 0,c.destroy(),l[ye]=void 0,f.destroy(),l[rn]=void 0}),{broadcast:u,validateSchema:c,emitEvent:(T,...v)=>{Reflect.apply(f.emit,f,[T,...v])},onEvent:(T,v)=>{Reflect.apply(f.on,f,[v])},offEvent:(T,v)=>{Reflect.apply(f.off,f,[v])}}}function an(e,t,r,n,l){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(c){const f=e.getForSelf("modelValue");return f?f[s]:null}};const u=Xe({},l,r);o.validate=(c=null)=>{const f=[];if(!Array.isArray(c)||c.indexOf(s)!==-1){const O=u?.validate();f.push(O)}let g=null;if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const O=c;g={name:R=>R?O.indexOf(R)!==-1:!1}}else if(c!=null&&typeof c=="object"){const O=c;if(Array.isArray(O.include)&&O.include.length>0){const R=O.include;g={name:T=>T?R.indexOf(T)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const R=O.exclude;g={name:T=>T?R.indexOf(T)===-1:!1}}}if(g){const O=i.emitToChildren(g,"validate",!1);Reflect.apply([].push,f,O)}return f.length==1?f[0]:f.length>1?Promise.all(f).then(O=>{let R=[];return O.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(R=[...R,...T.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=c=>u?.setRule(c),o.setNameValidateRules=c=>{const f=c[s];f&&u?.setRule(f)};const i=We(null,n,s,o);return{broadcast:i,validateSchema:u}}const z=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${Z(e,t)}px`:"";function Z(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(Pe){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return l*=o,l}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))*t;const n=Number(e);return isNaN(n)?0:n}const we="PageStateKey";function ge(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=Z(e.top)),e.left!==null&&e.left!==void 0&&(t.left=Z(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=Z(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=Z(e.right))),t}function Nt(e,t,r={},n=!0,l=-1,o=-1,s=0,u=0){e.headerHeight=Z(r.headerHeight??t.headerHeight),e.headerPadding=ge(r.headerPadding??t.headerPadding),e.footerHeight=Z(r.footerHeight??t.footerHeight),e.footerPadding=ge(r.footerPadding??t.footerPadding),e.contentPadding=ge(r.contentPadding??t.contentPadding),n&&(e.height=Z(r.height??t.height,o)-Z(s,o)-Z(u,o),e.width=Z(r.width??t.width,l))}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},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=Z(l.top),n.safeAreaBottom=Z(l.bottom),n.safeAreaLeft=Z(l.left),n.safeAreaRight=Z(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,i=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Nt(n,o,t,!0,s,u,i,c);const f=a.reactive(n),g=e.getForParent(we);g&&(n.height=et(e,g),n.width=tt(e,g),a.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{f.height=et(e,g),f.width=tt(e,g)}));const O=!g;return a.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([R,T=-1,v=-1,A=0,C=0])=>{Nt(f,R,t,O,T,v,A,C)}),e.set(we,f),f}function Ze(e){return e.get(we)}function Je(e,t){return t=t??e.get(we),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function Qe(e,t){return t=t??e.get(we),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function et(e,t){if(t=t??e.get(we),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(we),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function zr(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Gr(e){return!!e.getForParent(we)}var nt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(nt||{});function Vt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ae(e,t,r=1,n){const l=Se();return l==null?e:r===0?a.computed(()=>{const o=l.getAll(t);for(let u=o.length-1;u>=0;u--){const i=o[u];if(Vt(i,n))return i}const s=e.value;return Vt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Vt(o,n)?o:l?.get(t)})}function ue(e){return Ae(e,"readonly",0,function(r){return _.toBoolean(r)})}function ce(e){return Ae(e,"disabled",0,function(r){return _.toBoolean(r)})}function U(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 u=r(s);u!==o.value&&(o.value=u)}else s!==o.value&&(o.value=s)}),o}const on=new Map,rt=new Map;let It=null;function Yr(e){It=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 Te(e,t,r){!r&&It&&(r=It(e)??void 0);let n=null;if(r){let l=rt.get(r);l&&(n=l.get(t))}return n||(n=on.get(t)),n}function Wr(e,t){for(let r in e){const n=e[r];sn(r,n,t)}}function Ur(e){rt.delete(e)}function Xr(){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 Jr{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(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=Et(()=>{const u={...r},i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=i,u.height=c,this.initPageLayout(u,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=_.extend({},Xr(),t.safeAreaInset),l=_.extend({},Zr(),t.pageLayout);r=r??Ke(),r.set("safeAreaInset",n),r.set("headerBarHeight",t.headerBarHeight??0),r.set("footerBarHeight",t.footerBarHeight??0),r.set("pageLayout",l),r.set("rootWidth",l.width),r.set("rootHeight",l.height)}setScopeGetter(t){Yr(t)}setAPI(t,r,n){sn(t,r,n)}getAPI(t,r,n){return Te(t,r,n)}batchSetAPI(t,r){Wr(t,r)}clearScopeAPI(t){Ur(t)}getRootDomain(){return Ke()}}const Qr=[h.ElAffix,h.ElAlert,h.ElAutocomplete,h.ElAutoResizer,h.ElAvatar,h.ElBacktop,h.ElBadge,h.ElBreadcrumb,h.ElBreadcrumbItem,h.ElButton,h.ElButtonGroup,h.ElCalendar,h.ElCard,h.ElCarousel,h.ElCarouselItem,h.ElCascader,h.ElCascaderPanel,h.ElCheckTag,h.ElCheckbox,h.ElCheckboxButton,h.ElCheckboxGroup,h.ElCol,h.ElCollapse,h.ElCollapseItem,h.ElCollapseTransition,h.ElColorPicker,h.ElConfigProvider,h.ElContainer,h.ElAside,h.ElFooter,h.ElHeader,h.ElMain,h.ElDatePicker,h.ElDescriptions,h.ElDescriptionsItem,h.ElDialog,h.ElDivider,h.ElDrawer,h.ElDropdown,h.ElDropdownItem,h.ElDropdownMenu,h.ElEmpty,h.ElForm,h.ElFormItem,h.ElIcon,h.ElImage,h.ElImageViewer,h.ElInput,h.ElInputNumber,h.ElLink,h.ElMenu,h.ElSubMenu,h.ElMenuItem,h.ElMenuItemGroup,h.ElPageHeader,h.ElPagination,h.ElPopconfirm,h.ElPopover,h.ElPopper,h.ElProgress,h.ElRadio,h.ElRadioButton,h.ElRadioGroup,h.ElRate,h.ElResult,h.ElRow,h.ElScrollbar,h.ElSelect,h.ElOption,h.ElOptionGroup,h.ElSelectV2,h.ElSkeleton,h.ElSkeletonItem,h.ElSlider,h.ElSpace,h.ElSteps,h.ElStep,h.ElSwitch,h.ElTable,h.ElTableColumn,h.ElTableV2,h.ElTabs,h.ElTabPane,h.ElTag,h.ElTimePicker,h.ElTimeSelect,h.ElTimeline,h.ElTimelineItem,h.ElTooltip,h.ElTransfer,h.ElTree,h.ElTreeSelect,h.ElTreeV2,h.ElUpload],ea=[h.ElInfiniteScroll,h.ElLoading,h.ElMessage,h.ElMessageBox,h.ElNotification,h.ElPopoverDirective],ta=e=>{Qr.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),ea.forEach(t=>{e.use(t)})};function G(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 te={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 ie(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const na=Symbol.for("InnerPageScopeKey"),ra=(e,t)=>({inheritAttrs:!0,props:{...te,...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 l=Tt(r.name,r);if(l){const c=ln(l,r);ie({getPageContentHeight:()=>et(l,c),getPageContentWidth:()=>tt(l,c),getPageHeaderHeight:()=>Je(l,c),getPageFooterHeight:()=>Qe(l,c)});const f=a.inject(na,!1);c&&f&&(c.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),s=a.computed(()=>({})),u=a.getCurrentInstance(),i=c=>{const f=u?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(c,!0)};return a.watch(()=>r.rules,(c,f)=>{if(!c&&!f)return;const g=a.toRaw(f),O=a.toRaw(c),R=O?Reflect.ownKeys(O):[];(g?Reflect.ownKeys(g):[]).forEach(v=>{R.includes(v)||(O[v]=[])}),i(O)},{deep:!0}),a.onMounted(()=>{if(r.rules){const c=a.toRaw(r.rules);i(c)}}),{classes:o,styles:s}}}),{componentName:aa,create:la,scope:ei}=G("page"),oa=la(ra(aa));function ia(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 Ne=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},dn=Ne(oa,[["render",ia]]),sa=(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=Se(),o=l?Ze(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?Z(r.height):null,i=a.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const w=ge(r.padding??o.footerPadding);return Object.assign(m,w),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(w.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const w=ge(r.padding);Object.assign(m,w)}return m});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const c=a.computed(()=>{const m={};return i.value.height!==null&&i.value.height!==void 0&&(m.height=`${i.value.height}px`),i.value.top!==null&&i.value.top!==void 0&&(m.paddingTop=`${i.value.top}px`),i.value.left!==null&&i.value.left!==void 0&&(m.paddingLeft=`${i.value.left}px`),i.value.right!==null&&i.value.right!==void 0&&(m.paddingRight=`${i.value.right}px`),i.value.bottom!==null&&i.value.bottom!==void 0&&(m.paddingBottom=`${i.value.bottom}px`),m}),f=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),g=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),O=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),R=a.computed(()=>!(i.value.height!==null&&i.value.height!==void 0&&i.value.height<=0)),T=a.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),v=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),A=a.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),C=a.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),D=a.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function V(){n.emit("back")}function b(){n.emit("click-title")}function p(){n.emit("click-right")}function $(){n.emit("click-right-text")}return{classes:s,styles:c,mHeaderShow:R,leftStyles:f,rightStyles:g,mLeftShow:O,mTitleShow:T,mRightShow:v,mLeftIcon:A,mTitleIcon:C,mRightIcon:D,handleLeft:V,handleCenter:b,handleRight:p,handleRightText:$}}}),{componentName:ua,create:ca,scope:ti}=G("header-bar"),fa=ca(sa(ua)),da={key:1,class:"fox-header-bar__title"};function ha(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},a.toDisplayString(e.leftText),1)):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0),e.mTitleShow?(a.openBlock(),a.createElementBlock("view",da,[a.renderSlot(e.$slots,"default",{},()=>[e.title?(a.openBlock(),a.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},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]=(...u)=>e.handleRightText&&e.handleRightText(...u))},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 hn=Ne(fa,[["render",ha]]);function ga(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=Se(),o=l?Ze(l):null;o&&(o.footerMounted=!0);const s=a.computed(()=>{const f=e;let g=e;return r.align==="left"?g=`${g}__left`:r.align==="right"?g=`${g}__right`:g=`${g}__center`,{[f]:!0,[g]:!0}}),u=r.height!==null&&r.height!==void 0?Z(r.height):null,i=a.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const g=ge(r.padding??o.footerPadding);return Object.assign(f,g),u&&(o.footerHeight=u),f.height=o.footerHeight,f.safeAreaBottom=o.safeAreaBottom,f.safeAreaBottom&&(f.height=f.height+o.safeAreaBottom,f.bottom=f.safeAreaBottom+(g.bottom??0)),f}if(u&&(f.height=u),r.padding){const g=ge(r.padding);Object.assign(f,g)}return f});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const c=a.computed(()=>{const f={};return i.value.height!==null&&i.value.height!==void 0&&(f.height=z(i.value.height)),i.value.top!==null&&i.value.top!==void 0&&(f.paddingTop=z(i.value.top)),i.value.left!==null&&i.value.left!==void 0&&(f.paddingLeft=z(i.value.left)),i.value.right!==null&&i.value.right!==void 0&&(f.paddingRight=z(i.value.right)),i.value.bottom!==null&&i.value.bottom!==void 0&&(f.paddingBottom=z(i.value.bottom)),f});return{classes:s,styles:c}}}}const{componentName:ma,create:ya,scope:ni}=G("footer-bar"),pa=ya(ga(ma));function ba(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 gn=Ne(pa,[["render",ba]]);function Sa(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=Se(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const u=Ze(n);if(u){if(r.padding){const g=ge(r.padding);Object.assign(u.contentPadding,g)}const i=Je(n,u),c=Qe(n,u);let f="";if(u.contentHeight?f=`${u.contentHeight}`:f=`${u.height}px`,u.contentPadding,s.height=f,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||i>0){const g=(u&&u.contentPadding&&u.contentPadding.top)??0;s.paddingTop=`${i+g}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||c>0){const g=(u&&u.contentPadding&&u.contentPadding.bottom)??0;s.paddingBottom=`${c+g}px`}return u.contentPadding.left!==null&&u.contentPadding.left!==void 0&&(s.paddingLeft=`${u.contentPadding.left}px`),u.contentPadding.right!==null&&u.contentPadding.right!==void 0&&(s.paddingRight=`${u.contentPadding.right}px`),s}}if(r.padding){const u=ge(r.padding);u.left!==null&&u.left!==void 0&&(s.paddingLeft=`${u.left}px`),u.top!==null&&u.top!==void 0&&(s.paddingTop=`${u.top}px`),u.right!==null&&u.right!==void 0&&(s.paddingRight=`${u.right}px`),u.bottom!==null&&u.bottom!==void 0&&(s.paddingBottom=`${u.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:wa,create:$a,scope:ri}=G("content"),va=$a(Sa(wa));function Ea(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 mn=Ne(va,[["render",Ea]]),at="GroupStateKey",yn=Symbol.for("GroupScopeKey");function lt(){return a.inject(yn,!1)}function ot(e=!0){a.provide(yn,e)}function Ca(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,column:-1,gutter:-1};Object.assign(n,t);const l=a.shallowRef(n),o=a.markRaw({layout:l,passport:0});return e.set(at,o),o}function pn(e,t,r=-1,n=-1,l=!1){const o=e.get(at);if(!o)return;const s=e.get("groupLayout")??{};r===-1&&(r=s.column??1),n===-1&&(n=s.gutter??0);const u=s.minItemWidth??-1,i=()=>{const c=t===""||t===-1,f=Z(t);let g=_.toNumber(r);const O=Z(n);if(!c){let v=(f-(g-1)*O)/g;for(;u!==-1&&g>1&&v<u;)g--,v=(f-(g-1)*O)/g}let R=!1;const T=o.layout;T.value.width=t,T.value.column!==g&&(T.value.column=g,R=!0),T.value.gutter!==O&&(T.value.gutter=O,R=!0),R&&a.triggerRef(T)};if(l)i();else{const c=++o.passport;setTimeout(()=>{c===o.passport&&i()},50)}}function it(e,t=!1){let r;return t?r=e.getForParent(at):r=e.get(at),r.layout}function $e(e,t=1){return t==="stretch"?-1:(t=_.toNumber(t),t===-1?100:100*t/e)}function Oa(e){return e===window}const st=e=>{const t=a.unref(e);if(Oa(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}},ze=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Ta=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},Na=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=_.toNumber(e.props.offset);return t<0?0:t},Va=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"},Ia=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=_.toNumber(e.props.foxSubItemCount);return t<0?1:t};function xa(e,t){return{props:{...te,...un,...cn},setup(r,n){const l=Tt(r.name,r,fn),o=Ca(l,{type:r.type}),s=lt();ot(!0);const u=a.getCurrentInstance(),i=b=>{const p=u?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(b,!0)};a.watch(()=>r.rules,(b,p)=>{if(!b&&!p)return;const $=a.toRaw(p),m=a.toRaw(b),w=m?Reflect.ownKeys(m):[];($?Reflect.ownKeys($):[]).forEach(S=>{w.includes(S)||(m[S]=[])}),i(m)},{deep:!0}),a.onMounted(()=>{if(r.rules){const b=a.toRaw(r.rules);i(b)}});const c=e,f=a.computed(()=>{const b={};if(s&&l){const p=it(l,!0);if(p.value.type!=="flex")return{};if(r.width){const w=z(r.width);b.width=w}else{const w=$e(p.value.column,r.span);w>0&&(b.width=`${w}%`)}if(r.height){const w=z(r.height);b.height=w}const $=$e(p.value.column,r.offset);$>0&&(b["margin-left"]=`${$}%`);const m=p.value.gutter/2;m>0&&(b["padding-left"]=`${m}px`,b["padding-right"]=`${m}px`)}else{if(r.width){const p=z(r.width);b.width=p}if(r.height){const p=z(r.height);b.height=p}}return b}),g=a.computed(()=>r.type==="flex"?{[`${ze("",r.type)}`]:!0,[`${ze("justify",r.justify)}`]:!0,[`${ze("align",r.align)}`]:!0,[`${ze("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:{[`${ze("",r.type)}`]:!0,[`${c}__gutter`]:!0}),O=a.toRef(r,"title"),R=a.toRef(r,"gutter"),T=a.toRef(r,"column"),v=a.computed(()=>s?!0:r.isWrap),A=a.ref([]),C=b=>{A.value.push(b)},D=a.ref(-1);if(pn(l,D.value,T.value,R.value,!0),r.autoLayout){a.watch([D,T,R],([p,$,m])=>{pn(l,p,$,m,!1)});let b=null;a.onMounted(()=>{if(Pe&&A.value&&A.value.length>0){const p=A.value[0];D.value=st(p).width,window.ResizeObserver&&(b=new window.ResizeObserver(()=>{const $=st(p).width;$>0&&$!==D.value&&(D.value=$)}),b.observe(p))}}),a.onUnmounted(()=>{b?.disconnect()})}const V=(b,p,$,m)=>{const w={...g.value};return p===0&&(w[`${c}__first`]=!0),$>=m-1&&(w[`${c}__last`]=!0),a.h("div",{ref:C,key:`${p}`,class:w},b)};return()=>{const b=[];let p=0;if(n.slots.title){const j={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},S=a.h("div",j,[n.slots.title()]);b.push(S)}else if(O.value){const j={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},S=[];if(r.showMark){const x=a.h("div",{class:{[`${c}__title-mark`]:!0}});S.push(x)}const M=a.h("div",{class:{[`${c}__title-text`]:!0}},[O.value]);S.push(M);const F=a.h("div",j,S);b.push(F)}const $=n.slots.default?n.slots.default():[];let m=[],w=0;if(r.type==="flex"){for(let j=0;j<$.length;j++){const S=$[j];if(Va(S)==="fragment"){let E=Ia(S);E>o.layout.value.column?E=o.layout.value.column:E<=0&&(E=1);const N=w+E;if(N>o.layout.value.column){const I=V([...m],p++,j-1,$.length);b.push(I),w=E,m=[S]}else m.push(S),w=N;continue}const F=Ta(S),x=Na(S);if(F==="stretch"){if(w<o.layout.value.column){m.push(S);const E=V([...m],p++,j,$.length);b.push(E)}else{const E=V([...m],p++,j-1,$.length);b.push(E);const N=V([S],p++,j,$.length);b.push(N)}w=0,m=[];continue}let k=_.toNumber(F);if(k===-1){if(m.length>0){const N=V([...m],p++,j-1,$.length);b.push(N)}const E=V([S],p++,j,$.length);b.push(E),w=0,m=[];continue}k>o.layout.value.column?k=o.layout.value.column:k<=0&&(k=1);const y=w+k+x;if(y>o.layout.value.column){const E=V([...m],p++,j-1,$.length);b.push(E),w=k+x,m=[S]}else m.push(S),w=y}if(m.length>0){const j=V([...m],p++,$.length,$.length);b.push(j)}}else for(let j=0;j<$.length;j++){const S=$[j],M=V([S],p++,j,$.length);b.push(M)}return v.value?a.h("div",{class:{[`${c}`]:!0},style:f.value},[b]):b}}}}const{componentName:Aa,create:Ra,scope:ai}=G("group"),bn=Ra(xa(Aa)),Sn={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:ja,create:ka}=G("price"),Da=ka({props:{...Sn},setup(e){const t=a.computed(()=>({[ja]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>Le(e.price)==0?"":$t(e.price,e.decimalLength,!0,_.toNumber(e.digits),e.separator)),l=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(0,u)}),o=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(u+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),Ma=["innerHTML"],qa=["innerHTML"];function Ba(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,Ma)):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,qa)):a.createCommentVNode("",!0)],2)}const ut=Ne(Da,[["render",Ba]]),{componentName:xt,create:Fa}=G("hint-text"),Pa=Fa({components:{[ut.name]:ut},props:{...Sn,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 l=a.computed(()=>({[xt]:!0})),o=a.computed(()=>({left:z(e.startPoint.x),top:z(e.startPoint.y-e.height-10-4),height:z(e.height),width:z(e.width)})),s=a.computed(()=>({[`${xt}__content`]:!0})),u=a.computed(()=>({})),i=a.computed(()=>({[`${xt}__arrow`]:!0})),c=a.computed(()=>({top:z(e.height)}));return{classes:l,styles:o,textClasses:s,textStyles:u,arrowClasses:i,arrowStyles:c}}}),La={key:1,class:"text"};function _a(e,t,r,n,l,o){const s=a.resolveComponent("fox-price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{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",La,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.visible]])]),_:1})}const ct=Ne(Pa,[["render",_a]]);class wn{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 Ha(e){return e===window}const $n=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Ha(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;for(l=t;l!==document;)s+=l.scrollTop,o+=l.scrollLeft,l=l.parentNode;return r-=o,n-=s,{x:r,y:n}},At={},Ka=new wn,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()}},za=e=>{const t=document.getElementById(e.id);if(t){const r=Re.get(e.id);r?e={...At,...r,...e}:e={...At,...e};const n=a.createVNode(ct,e);return a.render(n,t),e.id}},Ga=e=>{e.unmount=Rt;let t;if(e.id){if(t=e.id,Re.has(t))return za(e)}else t=`hinttext_${Ka.get()}`;e={...At,...e},e.id=t,Re.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(ct,e);return a.render(n,r),document.body.appendChild(r),t},Ya=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&Rt(),Ya(t);const l=$n(e),o={x:l.x,y:l.y},s=r.width??st(e).width;return Ga({...r,message:t,startPoint:o,width:s})},hide(e){Rt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:vn,create:Wa}=G("item"),Ua=Wa({inheritAttrs:!0,props:{...te,...oe},setup(e,t){re({componentName:vn,validate:!1},e.prop??e.name);const r=Se(),n=lt();ot(!1);const l=vn,o=a.computed(()=>({[l]:!0,[`${l}__gutter`]:!0,[`${l}__stretch`]:e.span==="stretch",[`${l}__input--border`]:e.hasBorder,"is-error":!!w.value,"is-warn":!!$.value,"is-info":!!b.value})),s=a.computed(()=>{const I={};if(n&&r){const q=it(r,!1);if(q.value.type!=="flex")return e.width&&(I.width=z(e.width)),I;if(e.width)I.width=z(e.width);else{const L=$e(q.value.column,e.span);L>0&&(I.width=`${L}%`)}const B=$e(q.value.column,e.offset);B>0&&(I["margin-left"]=`${B}%`);const P=q.value.gutter/2;P>0&&(I["padding-left"]=`${P}px`,I["padding-right"]=`${P}px`)}else e.width&&(I.width=z(e.width));return I}),u=a.ref(null),i=a.computed({get:()=>u.value??_.toBoolean(e.isRequired),set:I=>{u.value=I}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),f=Ae(a.toRef(e,"labelPosition"),"labelPosition",nt.Near),g=a.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),O=a.computed(()=>({[`${l}__main`]:!0,[`${l}__main--${g.value}`]:!0})),R=a.computed(()=>({label:!0,[`label--${g.value}`]:!0})),T=Ae(a.toRef(e,"labelWidth"),"labelWidth",nt.Near),v=a.computed(()=>T&&T.value?{width:z(T.value)}:{}),A=a.computed(()=>({["label--string"]:!0,["label--required"]:i.value})),C=a.computed(()=>({content:!0,[e.contentClass]:!0})),D=a.computed(()=>({...e.contentStyle})),V=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ie({setRequired(I){i.value=I},setErrorTip(I){V.errorTip=I},setErrorIcon(I){V.errorIcon=I},setWarnTip(I){V.warnTip=I},setWarnIcon(I){V.warnIcon=I},setInfoTip(I){V.infoTip=I},setInfoIcon(I){V.infoIcon=I}});const b=a.computed(()=>e.infoTip||V.infoTip),p=a.computed(()=>e.infoIcon||V.infoIcon),$=a.computed(()=>e.warnTip||V.warnTip),m=a.computed(()=>e.warnIcon||V.warnIcon),w=a.computed(()=>e.errorTip||V.errorTip),j=a.computed(()=>e.errorIcon||V.errorIcon),S=a.computed(()=>w.value?"error":$.value?"warn":b.value?"info":""),M=a.computed(()=>S.value.length>0),F=a.computed(()=>S.value==="error"?w.value:S.value==="warn"?$.value:S.value==="info"?b.value:""),x=a.computed(()=>S.value==="error"?j.value:S.value==="warn"?m.value:S.value==="info"?p.value:null),k=a.computed(()=>{let I={[`${l}__tip`]:!0,[`${l}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?I[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?I[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(I[`${e.infoClass}`]=!0),I}),y=a.computed(()=>{let I={};return f&&f.value==="top"?I["padding-left"]="0px":T&&T.value&&(I["padding-left"]=z(T.value)),I}),E=a.ref();let N="";return a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([I,q,B,P])=>{!E.value||(I&&!J(q)?N?ft.show(E.value,q,{...P,id:N,type:B}):N=ft.show(E.value,q,{...P,type:B}):ft.hide(N))}),{classes:o,styles:s,mainClasses:O,hasLabel:c,labelClasses:R,labelStyles:v,labelStringClasses:A,contentClasses:C,contentStyles:D,contentRef:E,hasTip:M,mTip:F,mIcon:x,tipClasses:k,tipStyles:y}}}),Xa={key:0,class:"fox-item__tip-icon"},Za={class:"fox-item__tip-text"};function Ja(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",Xa,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Za,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const ae=Ne(Ua,[["render",Ja]]);function Qa(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=e,o=a.computed(()=>({[l]:!0,[`${l}__stretch`]:r.span==="stretch"})),s=Se(),u=lt();ot(!1);const i=a.computed(()=>{const c={};if(u&&s){const f=it(s,!1);if(f.value.type!=="flex")return r.width&&(c.width=z(r.width)),c;if(r.width)c.width=z(r.width);else{const R=$e(f.value.column,r.span);R>0&&(c.width=`${R}%`)}const g=$e(f.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const O=f.value.gutter/2;O>0&&(c["padding-left"]=`${O}px`,c["padding-right"]=`${O}px`)}else r.width&&(c.width=z(r.width));return c});return()=>{const c={class:o.value,style:i.value};return n.slots&&typeof n.slots.default=="function"?a.h("div",c,n.slots.default()):a.h("div",c)}}}}const{componentName:el,create:tl,scope:li}=G("slot-item"),En=tl(Qa(el));function nl(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=Se(),u=lt();ot(!1);const i=a.computed(()=>{const f={};if(u&&s){const g=it(s,!1);if(g.value.type!=="flex")return r.width&&(f.width=z(r.width)),f;if(r.width)f.width=z(r.width);else{const T=$e(g.value.column,r.span);T>0&&(f.width=`${T}%`)}const O=$e(g.value.column,r.offset);O>0&&(f["margin-left"]=`${O}%`);const R=g.value.gutter/2;R>0&&(f["padding-left"]=`${R}px`,f["padding-right"]=`${R}px`)}else r.width&&(f.width=z(r.width));return f}),c=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const f=[];if(n.slots.default){const T=n.slots.default();if(r.divide)for(let v=0;v<T.length;v++){if(v>0){const A=a.h("div",{class:{[`${l}__divide`]:!0}});f.push(A)}f.push(T[v])}else Reflect.apply([].push,f,T)}const g={class:c.value},O=a.h("div",g,f),R={class:o.value,style:i.value};return a.h("div",R,[O])}}}}const{componentName:rl,create:al,scope:oi}=G("row-item"),Cn=al(nl(rl)),On={modelValue:{type:[String,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}};function ll(e,t,r){return{props:{...te,...oe,...On},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=m=>{g.value=m,o("update:modelValue",m),o("input",m)},v=m=>{o("change",m)};let A=U(n,"hintText"),C=a.ref(!1);const D=m=>{let j=m.target.value;i.value=!0,J(A.value)||(C.value=!0),o("focus",j,m)},V=m=>{setTimeout(()=>{C.value&&(C.value=!1),i.value=!1},0);let j=m.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),o("blur",j,m)},b=()=>{o("clear","")},p=a.computed(()=>Le(n.unit)>0),$=a.ref();return ie({focus:()=>{$?.value.focus()},blur:()=>{$?.value.blur()},select:()=>{$?.value.select()}}),()=>{const w={...l.attrs,ref:$,class:R.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:c.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:b,onChange:v,onInput:T,onFocus:D,onBlur:V},j={};l.slots.prepend&&(j.prepend=l.slots.prepend),l.slots.append&&(j.append=l.slots.append),l.slots.prefix&&(j.prefix=l.slots.prefix),l.slots.suffix?j.suffix=l.slots.suffix:p.value&&(j.suffix=()=>[n.unit]);const S=[],M=a.h(h.ElInput,w,j);S.push(M);const F={default:()=>S};if(l.slots.default){const E=l.slots.default();F.label=()=>E}const k={...le(n,On),hintText:A.value,hintVisible:C.value,prop:`${n.prop}_item`};return a.h(r,k,F)}}}}const{componentName:ol,create:il,scope:sl}=G("input-item"),Tn=il(ll(ol,sl,ae));function Ve(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 Nn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class ul{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=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function cl(){const e=a.getCurrentInstance();return new ul(e.proxy)}function Vn(e,t,r){const n=Ve(e,t),l=Ve(e,r);if(n!==l)return!1;const o=je(e,t),s=je(e,r);return o===s}function In(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 u=Nn(e,s);if(Array.isArray(u)&&u.length>0){const i=In(e,o,r,u)??[];Reflect.apply([].push,l,i)}else{let i=!1;if(r==="text")i=Ve(e,s)===o;else if(r==="item")i=Vn(e,s,o);else{let c=je(e,s);c==null&&(c=Ve(e,s)),i=c===o}if(i){l.push(s);break}}}}),l}function fl(e){return{text:e,value:e}}const xn={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},placeholder:{type:[String],required:!1}};function dl(e,t,r){return{props:{...te,...oe,...xn},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),c=a.ref([]),f=(y,E,N,I=!0)=>{const q=In(n,y,E,N);if(q===null){if(c.value===null||c.value.length===0)return;i.value=null,c.value=[],I&&(o("update:modelValue",null),o("change",null));return}let B=!0;if(q.length!==c.value.length)B=!1;else for(let P=0;P<q.length;P++){const L=q[P],H=c.value[P];if(!Vn(n,L,H)){B=!1;break}}if(!B){c.value=q;let P=[],L=[];q.forEach(Y=>{P.push(je(n,Y)),n.valueType==="text"?L.push(Ve(n,Y)):n.valueType==="item"?L.push(Y):L.push(je(n,Y))});let H;n.multiple?(i.value=P,H=a.toRaw(L)):(i.value=P[0]??"",H=a.toRaw(L[0]??"")),I&&(o("update:modelValue",H),o("change",H))}},g=a.ref([]),O=cl();a.watch([()=>n.source,()=>n.params],async([y,E])=>{if(y){const N=await O.load("select",y,E);if(N.length>0)if(typeof N[0]=="string"){let B=N.map(P=>fl(P));g.value=B}else g.value=N}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([y,E])=>{f(E,n.valueType,y,!1)});let R=null,T=a.ref(!1);typeof n.remoteMethod=="function"&&(R=async y=>{if(y!=null){T.value=!0;try{const E=await n.remoteMethod(y);g.value=E}catch(E){console.error(E)}T.value=!1}});const v=a.ref(!1),A=ce(a.computed(()=>n.disabled)),C=ue(a.computed(()=>n.readonly)),D=e,V=a.computed(()=>({[D]:!0})),b=y=>{n.allowCreate?(o("update:modelValue",y),o("change",y),i.value=y):f(y,"value",g.value,!0)};let p=U(n,"hintText"),$=a.ref(!1);const m=y=>{let N=y.target.value;v.value=!0,J(p.value)||($.value=!0),o("focus",N,y)},w=y=>{setTimeout(()=>{$.value&&($.value=!1),v.value=!1},0);let N=y.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),S.value?setTimeout(()=>{o("blur",N,y)},50):o("blur",N,y)},j=()=>{o("clear","")},S=a.ref(!1),M=y=>{S.value=y,o("visible-change",y)},F=y=>{o("remove-tag",y)},x=(y,E)=>{const N=[];return y.forEach((I,q)=>{const B=Nn(n,I);if(Array.isArray(B)&&B.length>0){const P=x(B,E),L=Ve(n,I),Y={key:`${L}_${q}`,label:L};N.push(a.h(h.ElOptionGroup,Y,{default:()=>P}))}else{const P=je(n,I),L=Ve(n,I),H=_.toBoolean(I.disabled),W={key:`${P}_${q}`,label:L,disabled:H,value:P};typeof E=="function"?N.push(a.h(h.ElOption,W,{default:E})):N.push(a.h(h.ElOption,W))}}),N},k=a.ref();return ie({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const E={...l.attrs,ref:k,class:V.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:A.value||C.value,modelValue:i.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:j,onChange:b,onFocus:m,onBlur:w,onVisibleChange:M,onRemoveTag:F};typeof R=="function"&&(E["remote-method"]=R,E.loading=T.value);const N={};l.slots.prefix&&(N.prefix=l.slots.prefix),l.slots.empty&&(N.empty=l.slots.empty),N.default=()=>x(g.value,l.slots.option);const I=[],q=a.h(h.ElSelect,E,N);I.push(q);const B={default:()=>I};if(l.slots.default){const Y=l.slots.default();B.label=()=>Y}const L={...le(n,xn),hintText:p.value,hintVisible:$.value,prop:`${n.prop??n.name}_item`};return a.h(r,L,B)}}}}const{componentName:hl,create:gl,scope:ml}=G("select-item"),An=gl(dl(hl,ml,ae)),Rn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function yl(e,t,r){return{props:{...te,...oe,...Rn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=w=>{g.value=w,o("update:modelValue",w),o("change",w)};let v=U(n,"hintText"),A=a.ref(!1);const C=w=>{let S=w.target.value;i.value=!0,J(v.value)||(A.value=!0),o("focus",S,w)},D=w=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let S=w.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,w)},V=()=>{o("clear","")},b=w=>{o("calendar-change",w)},p=(w,j,S)=>{o("panel-change",w,j,S)},$=w=>{o("visible-change",w)},m=a.ref();return ie({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const j={...l.attrs,ref:m,class:R.value,placeholder:u.placeholder.value,disabled:c.value,readonly:f.value,modelValue:g.value,["onUpdate:modelValue"]:T,onClear:V,onFocus:C,onBlur:D,onCalendarChange:b,onPanelChange:p,onVisibleChange:$},S={};l.slots["range-separator"]&&(S["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(S.default=l.slots.cell);const M=[],F=a.h(h.ElDatePicker,j,S);M.push(F);const x={default:()=>M};if(l.slots.default){const N=l.slots.default();x.label=()=>N}const y={...le(n,Rn),hintText:v.value,hintVisible:A.value,prop:`${n.prop}_item`};return a.h(r,y,x)}}}}const{componentName:pl,create:bl,scope:Sl}=G("date-item"),jn=bl(yl(pl,Sl,ae)),kn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function wl(e,t,r){return{props:{...te,...oe,...kn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=$=>{g.value=$,o("update:modelValue",$),o("change",$)};let v=U(n,"hintText"),A=a.ref(!1);const C=$=>{let w=$.target.value;i.value=!0,J(v.value)||(A.value=!0),o("focus",w,$)},D=$=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let w=$.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,$)},V=()=>{o("clear","")},b=$=>{o("visible-change",$)},p=a.ref();return ie({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},handleOpen:()=>{p?.value.handleOpen()},handleClose:()=>{p?.value.handleClose()}}),()=>{const m={...l.attrs,ref:p,class:R.value,placeholder:u.placeholder.value,disabled:c.value,readonly:f.value,modelValue:g.value,["onUpdate:modelValue"]:T,onClear:V,onFocus:C,onBlur:D,onVisibleChange:b},w={},j=[],S=a.h(h.ElTimePicker,m,w);j.push(S);const M={default:()=>j};if(l.slots.default){const y=l.slots.default();M.label=()=>y}const x={...le(n,kn),hintText:v.value,hintVisible:A.value,prop:`${n.prop}_item`};return a.h(r,x,M)}}}}const{componentName:$l,create:vl,scope:El}=G("time-item"),Dn=vl(wl($l,El,ae)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Cl(e,t,r){return{props:{...te,...oe,...Mn},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=p=>{g.value=p,o("update:modelValue",p),o("change",p)};let v=U(n,"hintText"),A=a.ref(!1);const C=p=>{let m=p.target.value;i.value=!0,J(v.value)||(A.value=!0),o("focus",m,p)},D=p=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let m=p.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,p)},V=()=>{o("clear","")},b=a.ref();return ie({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},handleOpen:()=>{b?.value.handleOpen()},handleClose:()=>{b?.value.handleClose()}}),()=>{const $={...l.attrs,ref:b,class:R.value,placeholder:u.placeholder.value,disabled:c.value,readonly:f.value,modelValue:g.value,["onUpdate:modelValue"]:T,onClear:V,onFocus:C,onBlur:D},m={},w=[],j=a.h(h.ElTimeSelect,$,m);w.push(j);const S={default:()=>w};if(l.slots.default){const k=l.slots.default();S.label=()=>k}const F={...le(n,Mn),hintText:v.value,hintVisible:A.value,prop:`${n.prop}_item`};return a.h(r,F,S)}}}}const{componentName:Ol,create:Tl,scope:Nl}=G("time-select-item"),qn=Tl(Cl(Ol,Nl,ae));function Bn(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 Fn(e,t,r=20){if(typeof t=="string"&&(t=_.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ht(`${e}`,`${t}`);return Bn(n)}else{let n=St(`${e}`,Kt(`${t}`),20);return Bn(n)}}function Vl(e,t=-1,r=!1,n=3,l=","){return $t(e,t,r,n,l)}function Pn(e,t,r,n,l=!0){if(e=="")return"";if(e=zt(e),t=_.toNumber(t),t==1)return e;if(n)e=Fn(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(_.toNumber(r)+2,"0"):e=St(e,1,_.toNumber(r)));else{let o=-1*t;e=Fn(e,o)}return e}function Ln(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=_.toBoolean(t.minInclude),l=wt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=_.toBoolean(t.maxInclude),l=wt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const _n={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 Il(e,t,r){return{props:{...te,...oe,..._n},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=a.ref(!1),u=ce(a.computed(()=>n.disabled)),i=ue(a.computed(()=>n.readonly)),c=U(n,"modelValue"),f=a.ref("");a.watch([()=>c.value,()=>n.rates,()=>n.precision],([x,k,y])=>{if(J(x))return"";const E=Pn(x,k,y,!1);f.value!==E&&(f.value=E)},{immediate:!0});const g=a.computed(()=>{let x="";return s.value&&(x=f.value),x}),{t:O}=he.useFoxI18n(t),R=a.computed(()=>{let x=n.placeholder??"";return!s.value&&!J(f.value)?x=Vl(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):x=O(["placeholder",x]),x}),T=e,v=a.computed(()=>({[T]:!0,[`${T}__disabled`]:u.value,[`${T}__placeholder`]:f.value.length>0})),A=Ae(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>s.value?{textAlign:"left"}:{textAlign:A.value??"right"});const C=a.ref(""),D=a.computed(()=>{let x=C.value;return J(x)&&(x=n.errorTip??""),x}),V=a.ref(""),b=a.ref(!1),p=(x,k)=>{if(x=`${x}`,J(x)){f.value="",c.value="",k.forEach(y=>{o(y,"")}),_.toBoolean(n.showTip)&&b.value&&(b.value=!1);return}if(x.length>=2){let y=x;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){a.triggerRef(f);return}}if(x!="-"){if(!Yt(x)){a.triggerRef(f);return}if(n.integerLength!=-1&&Wt(x)>Number(n.integerLength)){a.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Ut(x)>Number(n.decimalLength)){a.triggerRef(f);return}let y=Ln(x,n);if(y.maxValid===!1){C.value=y.message,a.triggerRef(f);return}}else if(n.min!=null&&_.toNumber(n.min)>=0){a.triggerRef(f);return}V.value=x,_.toBoolean(n.showTip)&&(b.value=x.length>0),f.value=x,c.value=Pn(x,n.rates,n.precision,!0),k.forEach(y=>{o(y,c.value)})},$=x=>{p(x,["update:modelValue","input"])},m=x=>{p(x,["update:modelValue","change"])},w=x=>{if(s.value=!0,_.toBoolean(n.showTip)){let k=f.value;J(k)&&(k=n.hintText),J(k)||(V.value=k,b.value=!0)}C.value="",o("focus",c.value,x)},j=x=>{if(setTimeout(()=>{s.value=!1,_.toBoolean(n.showTip)&&b.value===!0&&(b.value=!1)},0),!J(f.value)){let k=Ln(f.value,n);if(k.minValid===!1||k.maxValid){C.value=k.message;return}}o("update:modelValue",c.value,x),o("blur",c.value,x)},S=()=>{o("clear","")},M=a.computed(()=>Le(n.unit)>0),F=a.ref();return ie({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const k={...l.attrs,ref:F,class:v.value,type:"digit",maxlength:n.maxLength,placeholder:R.value,clearable:n.clearable,disabled:u.value,readonly:i.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:S,onInput:$,onChange:m,onFocus:w,onBlur:j},y={};l.slots.prepend&&(y.prepend=l.slots.prepend),l.slots.append&&(y.append=l.slots.append),l.slots.prefix&&(y.prefix=l.slots.prefix),l.slots.suffix?y.suffix=l.slots.suffix:M.value&&(y.suffix=()=>[n.unit]);const E=[],N=a.h(h.ElInput,k,y);E.push(N);const I={default:()=>E};if(l.slots.default){const L=l.slots.default();I.label=()=>L}const B={...le(n,_n),errorTip:D.value,hintText:V.value,hintVisible:b.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,B,I)}}}}const{componentName:xl,create:Al,scope:Rl}=G("money-item"),Hn=Al(Il(xl,Rl,ae)),Kn={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 jl(e,t,r){return{props:{...te,...oe,...Kn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0,[`${O}__append`]:$.value})),T=a.computed(()=>({[`${O}__unit`]:!0})),v=w=>{g.value=w,o("update:modelValue",w),o("input",w)},A=w=>{o("change",w)};let C=U(n,"hintText"),D=a.ref(!1);const V=w=>{let S=w.target.value;i.value=!0,J(C.value)||(D.value=!0),o("focus",S,w)},b=w=>{setTimeout(()=>{D.value&&(D.value=!1),i.value=!1},0);let S=w.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,w)},p=()=>{o("clear","")},$=a.computed(()=>Le(n.unit)>0),m=a.ref();return ie({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const j={...l.attrs,ref:m,class:R.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:c.value,readonly:f.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:p,onChange:A,onInput:v,onFocus:V,onBlur:b},S={},M=[],F=a.h(h.ElInputNumber,j,S);M.push(F);const x={default:()=>M};if(l.slots.default){const N=l.slots.default();x.label=()=>N}const y={...le(n,Kn),hintText:C.value,hintVisible:D.value,prop:`${n.prop}_item`};if(l.slots.append)x.append=l.slots.append;else if($.value){const N={class:T.value},I=a.h("div",N,[n.unit]);x.append=()=>I}return a.h(r,y,x)}}}}const{componentName:kl,create:Dl,scope:Ml}=G("input-number-item"),zn=Dl(jl(kl,Ml,ae));function ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ie(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ql(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Bl{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=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Fl(){const e=a.getCurrentInstance();return new Bl(e.proxy)}function jt(e,t,r){const n=ke(e,t),l=ke(e,r);if(n!==l)return!1;const o=Ie(e,t),s=Ie(e,r);return o===s}function Gn(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 u=t[s];if(Array.isArray(u)){const i=Gn(e,u,r,n);l.push(i)}else{let i=!1;for(let c of o){if(r==="text")i=ke(e,c)===u;else if(r==="item")i=jt(e,c,u);else{let f=Ie(e,c);f==null&&(f=ke(e,c)),i=f===u}if(i){l.push(c),o=ql(e,c);break}}if(!i)break}}return l}function Pl(e){return{text:e,value:e}}const Yn={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}};function Ll(e,t,r){return{props:{...te,...oe,...Yn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),c=a.ref([]),f=(E,N,I,q=!0)=>{if(n.props&&n.props.lazy===!0){if(i.value===E)return;i.value=E;const L=a.toRaw(E);q&&(o("update:modelValue",L),o("change",L))}const B=Gn(n,E,N,I);if(B===null){if(c.value.length===0||c.value===null)return;c.value=[],i.value=null,q&&(o("update:modelValue",null),o("change",null));return}let P=!0;if(B.length!==c.value.length)P=!1;else for(let L=0;L<B.length;L++){const H=B[L],Y=c.value[L];if(Array.isArray(H)){if(!Array.isArray(Y)||H.length!==Y.length)P=!1;else for(let W=0;W<H.length;W++)if(!jt(n,H[W],Y[W])){P=!1;break}}else jt(n,H,Y)||(P=!1);if(!P)break}if(!P){c.value=B;let L=[],H=[];B.forEach(W=>{if(Array.isArray(W)){let me=[],fe=[];for(let se of W)me.push(Ie(n,se)),n.valueType==="text"?fe.push(ke(n,se)):n.valueType==="item"?fe.push(se):fe.push(Ie(n,se));L.push(me),H.push(fe)}else L.push(Ie(n,W)),n.valueType==="text"?H.push(ke(n,W)):n.valueType==="item"?H.push(W):H.push(Ie(n,W))}),i.value=L;const Y=a.toRaw(H);q&&(o("update:modelValue",Y),o("change",Y))}},g=a.ref([]),O=Fl();a.watch([()=>n.source,()=>n.params],async([E,N])=>{if(E){const I=await O.load("cascader",E,N);if(I.length>0)if(typeof I[0]=="string"){let P=I.map(L=>Pl(L));g.value=P}else g.value=I}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([E,N])=>{f(N,n.valueType,E,!1)});let R=null,T=a.ref(!1);typeof n.remoteMethod=="function"&&(R=async E=>{if(E!=null){T.value=!0;try{const N=await n.remoteMethod(E);g.value=N}catch(N){console.error(N)}T.value=!1}});const v=a.ref(!1),A=ce(a.computed(()=>n.disabled)),C=ue(a.computed(()=>n.readonly)),D=e,V=a.computed(()=>({[D]:!0})),b=a.computed(()=>{let E={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(E.multiple=!0),n.props&&Object.assign(E,n.props),E}),p=E=>{n.allowCreate?(o("update:modelValue",E),o("change",E),i.value=E):f(E,"value",g.value,!0)};let $=U(n,"hintText"),m=a.ref(!1);const w=E=>{let I=E.target.value;v.value=!0,J($.value)||(m.value=!0),o("focus",I,E)},j=E=>{setTimeout(()=>{m.value&&(m.value=!1),v.value=!1},0);let I=E.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),M.value?setTimeout(()=>{o("blur",I,E)},50):o("blur",I,E)},S=()=>{o("clear","")},M=a.ref(!1),F=E=>{M.value=E,o("visible-change",E)},x=E=>{o("remove-tag",E)},k=E=>{o("expand-change",E)},y=a.ref();return ie({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},getCheckedNodes:()=>y?.value.getCheckedNodes()}),()=>{const N={...l.attrs,ref:y,class:V.value,props:b.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:A.value||C.value,options:g.value,modelValue:i.value,onClear:S,onChange:p,onFocus:w,onBlur:j,onVisibleChange:F,onRemoveTag:x,expandChange:k};typeof R=="function"&&(N["remote-method"]=R,N.loading=T.value);const I={};l.slots.option&&(I.default=l.slots.option),l.slots.empty&&(I.empty=l.slots.empty);const q=[],B=a.h(h.ElCascader,N,I);q.push(B);const P={default:()=>q};if(l.slots.default){const W=l.slots.default();P.label=()=>W}const H={...le(n,Yn),hintText:$.value,hintVisible:m.value,prop:`${n.prop??n.name}_item`};return a.h(r,H,P)}}}}const{componentName:_l,create:Hl,scope:Kl}=G("cascader-item"),Wn=Hl(Ll(_l,Kl,ae)),Un={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function zl(e,t,r){return{props:{...te,...oe,...Un},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),{toLocaleRefs:s}=he.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),c=ce(a.computed(()=>n.disabled)),f=ue(a.computed(()=>n.readonly)),g=U(n,"modelValue"),O=e,R=a.computed(()=>({[O]:!0})),T=$=>{g.value=$,o("update:modelValue",$),o("input",$)},v=$=>{o("change",$)};let A=U(n,"hintText"),C=a.ref(!1);const D=$=>{let w=$.target.value;i.value=!0,J(A.value)||(C.value=!0),o("focus",w,$)},V=$=>{setTimeout(()=>{C.value&&(C.value=!1),i.value=!1},0);let w=$.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,$)},b=()=>{o("clear","")},p=a.ref();return ie({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},select:()=>{p?.value.select()}}),()=>{const m={...l.attrs,ref:p,class:R.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:c.value,readonly:f.value,modelValue:g.value,onClear:b,onChange:v,onInput:T,onFocus:D,onBlur:V},w={};l.slots.prepend&&(w.prepend=l.slots.prepend),l.slots.append&&(w.append=l.slots.append),l.slots.prefix&&(w.prefix=l.slots.prefix),l.slots.suffix&&(w.suffix=l.slots.suffix),l.slots.option&&(w.default=l.slots.option);const j=[],S=a.h(h.ElAutocomplete,m,w);j.push(S);const M={default:()=>j};if(l.slots.default){const y=l.slots.default();M.label=()=>y}const x={...le(n,Un),hintText:A.value,hintVisible:C.value,prop:`${n.prop}_item`};return a.h(r,x,M)}}}}const{componentName:Gl,create:Yl,scope:Wl}=G("autocomplete-item"),Xn=Yl(zl(Gl,Wl,ae));function Ul(e,t,r,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=t[0];if(Array.isArray(u))for(let i=0;i<t.length&&i<o.length;i++){let c=t[i],f=o[i];const g=c.find(O=>O[n]===f);if(!g)break;s.push(g[r])}else{let i=t;for(let c=0;i&&c<o.length;c++){let f=o[c],g=i.find(O=>O[n]===f);if(!g)break;s.push(g[r]),i=g[l]}}return s}class Xl{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=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Zl(){const e=a.getCurrentInstance();return new Xl(e.proxy)}const Zn={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 Jl(e,t){return{props:{...Zn},setup(r,{attrs:n}){const l=Zl(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([i,c])=>{o.value=await l.load(r.sourceType,i,c)},{immediate:!0});const s=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let i=Ul(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?"":i.length===1?i[0]:i.join(r.separator)}),u=r.resolveTag?a.resolveComponent(r.tag):r.tag;return()=>{const i={...n};return r.resolveTag?a.h(u,i,{default:()=>s.value}):a.h(u,i,s.value)}}}}const{componentName:ii,create:Ql,scope:si}=G("mapping"),kt=Ql(Jl());function eo(e,t){return{props:{...Zn},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=o.row[o.column.property];return a.h(kt,{...r,modelValue:s})}};return a.h(h.ElTableColumn,{...n},l)}}}}const{componentName:ui,create:to,scope:ci}=G("table-mapping-column"),Jn=to(eo());class no{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,s,u){if(Array.isArray(r)){let c=(n-1)*l,f=c+l;f>r.length&&(f=r.length);const g=r.slice(c,f);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,s,u]);const i=Te(this.proxy,t);return i===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(_.isObject(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await await Reflect.apply(i,null,[r,n,l,o,s,u]))}}function ro(){const e=a.getCurrentInstance();return new no(e.proxy)}const Qn={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},er={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 ao(e,t,r){return{inheritAttrs:!1,props:{...te,...oe,...Qn,...er},emits:["change","page-size-change","page-index-change","current-change"],setup(n,l){const{locale:o}=he.useFoxI18n(t),{emitEvent:s}=re({componentName:e},n.prop??n.name),u=e,i=a.computed(()=>({[u]:!0})),c=a.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),f=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,M=>{f.value=M});const g=M=>{f.value=M,s("page-index-change",M)},O=a.ref(n.pageSize);a.watch(()=>n.pageSize,M=>{O.value=M});const R=M=>{O.value=M,s("page-size-change",M)},T=a.shallowRef({}),v=a.computed(()=>({...T.value,...n.params??{},...n.baseParams??{}})),A=a.ref(0),C=a.ref(),D=ro();let V=!0;const b=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:_.toBoolean(n.autoLoad),p=async(M,F,x,k)=>{try{const y=await D.load("table",M,F,x,k,V,o.value);A.value=y.totalSize,C.value=y.page}catch(y){console.error("[FoxUI] Load Table Data Fail",y),A.value=0,C.value=[]}V=!1};a.watch([f,O],([M,F],[x,k])=>{F!==k&&(f.value=1,M=1),p(n.data,M,F,v.value)}),a.watch([()=>n.data,v],([M,F],[x,k])=>{!b()||(M!==x&&(V=!0),p(M,f.value,O.value,F))});const $=(M={})=>{T.value=a.toRaw(M??{}),a.triggerRef(T),a.nextTick(()=>{p(n.data,f.value,O.value,v.value)})},m=()=>{A.value=0,C.value=[]};b()&&$();let w=null;const j=(M,F)=>{w=M,s("current-change",M,F)},S=a.ref();return ie({clearSelection:()=>S?.value.clearSelection(),getSelectionRows:()=>S?.value.getSelectionRows(),toggleRowSelection:(M,F)=>{S?.value.toggleRowSelection(M,F)},toggleAllSelection:()=>{S?.value.toggleAllSelection()},toggleRowExpansion:(M,F)=>{S?.value.toggleRowExpansion(M,F)},setCurrentRow:M=>{S?.value.setCurrentRow(M)},getCurrentRow:()=>w,clearSort:()=>{S?.value.clearSort()},clearFilter:M=>{S?.value.clearFilter(M)},doLayout:()=>{S?.value.doLayout()},sort:(M,F)=>{S?.value.sort(M,F)},scrollTo:(M,F)=>{S?.value.scrollTo(M,F)},setScrollTop:M=>{S?.value.setScrollTop(M)},setScrollLeft:M=>{S?.value.setScrollLeft(M)},loadData:$,clearData:m}),()=>{const F={...l.attrs,onCurrentChange:j,data:C.value,ref:S,class:i.value},x={};l.slots.default&&(x.default=l.slots.default),l.slots.append&&(x.append=l.slots.append),l.slots.empty&&(x.empty=l.slots.empty);const k=[],y=a.h(h.ElTable,F,x);if(k.push(y),typeof l.slots.pagination=="function"){const B=l.slots.pagination();k.push(B)}else if(n.paginationVisible){const B={class:c.value,total:A.value,pageSize:O.value,["onUpdate:pageSize"]:R,pageSizes:n.pageSizes,currentPage:f.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},P=a.h(h.ElPagination,B);k.push(P)}const E={default:()=>k},I={...le(n,Qn,er),prop:`${n.prop}_item`};return I.contentClass=`${u}__wrap`,a.h(r,I,E)}}}}const{componentName:lo,create:oo,scope:io}=G("table-item"),tr=oo(ao(lo,io,ae));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class so{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=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function uo(){const e=a.getCurrentInstance();return new so(e.proxy)}function nr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=De(e,t),l=De(e,r);if(n!==l)return!1;const o=Ge(e,t),s=Ge(e,r);return o===s}function co(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=De(e,o)===t;else if(r==="item")s=nr(e,o,t);else{let u=Ge(e,o);u==null&&(u=De(e,o)),s=u===t}if(s){l=o;break}}return l}function fo(e){return{text:e,value:e}}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"},itemClass:{type:[String],required:!1}};function ho(e,t,r){return{inheritAttrs:!0,props:{...te,...oe,...rr},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=a.ref(null),u=a.ref(null),i=(V,b,p,$=!0)=>{const m=co(n,V,b,p);if(m===null){if(u.value===null)return;u.value=null,s.value=null,$&&(o("update:modelValue",null),o("change",null));return}if(!nr(n,m,u.value)){s.value=V;const j=a.toRaw(m);u.value=j;let S=null;n.valueType==="text"?S=De(n,j):n.valueType==="item"?S=j:S=Ge(n,j),$&&(o("update:modelValue",S),o("change",S))}},c=a.ref([]),f=uo();a.watch([()=>n.source,()=>n.params],async([V,b])=>{if(V){const p=await f.load("radio",V,b);if(p.length>0)if(typeof p[0]=="string"){let w=p.map(j=>fo(j));c.value=w}else c.value=p}},{immediate:!0}),a.watch([()=>c.value,()=>n.modelValue],([V,b])=>{i(b,n.valueType,V,!1)});const g=ce(a.computed(()=>n.disabled)),O=ue(a.computed(()=>n.readonly)),R=e,T=a.computed(()=>({[R]:!0})),v=V=>{i(V,"value",c.value,!0)};let A=U(n,"hintText"),C=U(n,"hintVisible");const D=V=>{const b=[];return V.forEach((p,$)=>{const m=Ge(n,p),w=De(n,p),j=_.toBoolean(p.disabled),M={key:`${m}_${$}`,class:n.itemClass,label:m,disabled:j,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?b.push(a.h(h.ElRadioButton,M,{default:()=>[w]})):b.push(a.h(h.ElRadio,M,{default:()=>[w]}))}),b};return()=>{const b={...l.attrs,class:T.value,disabled:g.value||O.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,onChange:v},p=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>D(c.value);const m=a.h(h.ElRadioGroup,b,$);p.push(m);const w={default:()=>p};if(l.slots.default){const F=l.slots.default();w.label=()=>F}const S={...le(n,rr),hintText:A.value,hintVisible:C.value,prop:`${n.prop??n.name}_item`};return a.h(r,S,w)}}}}const{componentName:go,create:mo,scope:yo}=G("radio-item"),ar=mo(ho(go,yo,ae));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class po{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=Te(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function bo(){const e=a.getCurrentInstance();return new po(e.proxy)}function lr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Me(e,t),l=Me(e,r);if(n!==l)return!1;const o=qe(e,t),s=qe(e,r);return o===s}function So(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 u=!1;if(r==="text")u=Me(e,s)===o;else if(r==="item")u=lr(e,s,o);else{let i=qe(e,s);i==null&&(i=Me(e,s)),u=i===o}if(u){l.push(s);break}}}),l}function wo(e){return{text:e,value:e}}const or={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"},itemClass:{type:[String],required:!1}};function $o(e,t,r){return{inheritAttrs:!1,props:{...te,...oe,...or},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=a.ref([]),u=a.ref([]),i=(V,b,p,$=!0)=>{const m=So(n,V,b,p);if(m===null){if(u.value===null||u.value.length===0)return;s.value=[],u.value=[],$&&(o("update:modelValue",[]),o("change",[]));return}let w=!0;if(m.length!==u.value.length)w=!1;else for(let j=0;j<m.length;j++){const S=m[j],M=u.value[j];if(!lr(n,S,M)){w=!1;break}}if(!w){u.value=m;let j=[],S=[];m.forEach(F=>{j.push(qe(n,F)),n.valueType==="text"?S.push(Me(n,F)):n.valueType==="item"?S.push(F):S.push(qe(n,F))}),s.value=j;const M=a.toRaw(S);$&&(o("update:modelValue",M),o("change",M))}},c=a.ref([]),f=bo();a.watch([()=>n.source,()=>n.params],async([V,b])=>{if(V){const p=await f.load("checkbox",V,b);if(p.length>0)if(typeof p[0]=="string"){let w=p.map(j=>wo(j));c.value=w}else c.value=p}},{immediate:!0}),a.watch([()=>c.value,()=>n.modelValue],([V,b])=>{i(b,n.valueType,V,!1)});const g=ce(a.computed(()=>n.disabled)),O=ue(a.computed(()=>n.readonly)),R=e,T=a.computed(()=>({[R]:!0})),v=V=>{i(V,"value",c.value,!0)};let A=U(n,"hintText"),C=U(n,"hintVisible");const D=V=>{const b=[];return V.forEach((p,$)=>{const m=qe(n,p),w=Me(n,p),j=_.toBoolean(p.disabled),M={key:`${m}_${$}`,class:n.itemClass,label:m,disabled:j,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?b.push(a.h(h.ElCheckboxButton,M,{default:()=>[w]})):b.push(a.h(h.ElCheckbox,M,{default:()=>[w]}))}),b};return()=>{const b={...l.attrs,class:T.value,disabled:g.value||O.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,max:_.toNumber(n.max),min:_.toNumber(n.min),onChange:v},p=[],$={};l.slots.options?$.default=l.slots.options:$.default=()=>D(c.value);const m=a.h(h.ElCheckboxGroup,b,$);p.push(m);const w={default:()=>p};if(l.slots.default){const F=l.slots.default();w.label=()=>F}const S={...le(n,or),hintText:A.value,hintVisible:C.value,prop:`${n.prop??n.name}_item`};return a.h(r,S,w)}}}}const{componentName:vo,create:Eo,scope:Co}=G("checkbox-item"),ir=Eo($o(vo,Co,ae)),sr={modelValue:{type:[Number,String],required:!1}};function Oo(e,t,r){return{props:{...te,...oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=ce(a.computed(()=>n.disabled)),u=ue(a.computed(()=>n.readonly)),i=U(n,"modelValue",v=>_.toNumber(v)),c=e,f=a.computed(()=>({[c]:!0})),g=v=>{o("update:modelValue",v),o("change",v)};let O=U(n,"hintText"),R=a.ref(!1);const T=a.ref();return ie({}),()=>{const A={...l.attrs,ref:T,class:f.value,readonly:u.value||s.value,modelValue:i.value,onChange:g},C={},D=[],V=a.h(h.ElRate,A,C);D.push(V);const b={default:()=>D};if(l.slots.default){const w=l.slots.default();b.label=()=>w}const $={...le(n,sr),hintText:O.value,hintVisible:R.value,prop:`${n.prop}_item`};return a.h(r,$,b)}}}}const{componentName:To,create:No,scope:Vo}=G("rate-item"),ur=No(Oo(To,Vo,ae)),cr={modelValue:{type:[Boolean,String,Number],required:!1}};function Io(e,t,r){return{props:{...te,...oe,...cr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=re({componentName:e},n.prop??n.name),s=ce(a.computed(()=>n.disabled)),u=ue(a.computed(()=>n.readonly)),i=U(n,"modelValue"),c=e,f=a.computed(()=>({[c]:!0})),g=v=>{o("update:modelValue",v),o("change",v)};let O=U(n,"hintText"),R=U(n,"hintVisible");const T=a.ref();return ie({}),()=>{const A={...l.attrs,ref:T,class:f.value,readonly:u.value,disabled:s.value,modelValue:i.value,onChange:g},C={},D=[],V=a.h(h.ElSwitch,A,C);D.push(V);const b={default:()=>D};if(l.slots.default){const w=l.slots.default();b.label=()=>w}const $={...le(n,cr),hintText:O.value,hintVisible:R.value,prop:`${n.prop}_item`};return a.h(r,$,b)}}}}const{componentName:xo,create:Ao,scope:Ro}=G("switch-item"),fr=Ao(Io(xo,Ro,ae)),jo=Symbol.for("InnerPageScopeKey"),ko=Symbol.for("DialogItemStateKey");function Do(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(jo,!0);const l={};a.provide(ko,l);const o=i=>{typeof l.beforeClose=="function"&&l.beforeClose(i)},s=a.ref(!0),u=i=>{s.value=i};return()=>{const c={...n.attrs,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},f={};if(typeof n.slots.default=="function"){const g=n.slots.default();f.default=()=>g}return a.h(h.ElDialog,c,f)}}}}const{componentName:fi,create:Mo,scope:di}=G("dialog-item"),dr=Mo(Do()),{componentName:hr,create:qo}=G("ext-icon"),gr=qo({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=o=>{t("click",o)},l=a.computed(()=>e.name?e.name.indexOf("/")!==-1:!1);return()=>{const o=l.value;return a.h(o?"img":e.tag,{class:o?`${hr}__img`:`${e.fontClassName} ${hr} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:z(e.size),width:z(e.size),height:z(e.size)},onClick:n,src:o?e.name:""},r.default?.())}}});function Bo(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})),u=a.computed(()=>r.color?{background:r.color}:null),i=a.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),c=a.computed(()=>r.color?{color:r.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const v={class:s.value,style:u.value};f=a.h("div",v)}const g={class:i.value,style:c.value},O=n.default?n.default():[],R=a.h("div",g,O),T={class:o.value};return a.h("div",T,[f,R])}}}}const{componentName:Fo,create:Po,scope:hi}=G("indicator"),mr=Po(Bo(Fo));var pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",u="minute",i="hour",c="day",f="week",g="month",O="quarter",R="year",T="date",v="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,D={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("_")},V=function(x,k,y){var E=String(x);return!E||E.length>=k?x:""+Array(k+1-E.length).join(y)+x},b={s:V,z:function(x){var k=-x.utcOffset(),y=Math.abs(k),E=Math.floor(y/60),N=y%60;return(k<=0?"+":"-")+V(E,2,"0")+":"+V(N,2,"0")},m:function x(k,y){if(k.date()<y.date())return-x(y,k);var E=12*(y.year()-k.year())+(y.month()-k.month()),N=k.clone().add(E,g),I=y-N<0,q=k.clone().add(E+(I?-1:1),g);return+(-(E+(y-N)/(I?N-q:q-N))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:g,y:R,w:f,d:c,D:T,h:i,m:u,s,ms:o,Q:O}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},p="en",$={};$[p]=D;var m=function(x){return x instanceof M},w=function x(k,y,E){var N;if(!k)return p;if(typeof k=="string"){var I=k.toLowerCase();$[I]&&(N=I),y&&($[I]=y,N=I);var q=k.split("-");if(!N&&q.length>1)return x(q[0])}else{var B=k.name;$[B]=k,N=B}return!E&&N&&(p=N),N||!E&&p},j=function(x,k){if(m(x))return x.clone();var y=typeof k=="object"?k:{};return y.date=x,y.args=arguments,new M(y)},S=b;S.l=w,S.i=m,S.w=function(x,k){return j(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var M=function(){function x(y){this.$L=w(y.locale,null,!0),this.parse(y)}var k=x.prototype;return k.parse=function(y){this.$d=function(E){var N=E.date,I=E.utc;if(N===null)return new Date(NaN);if(S.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var q=N.match(A);if(q){var B=q[2]-1||0,P=(q[7]||"0").substring(0,3);return I?new Date(Date.UTC(q[1],B,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)):new Date(q[1],B,q[3]||1,q[4]||0,q[5]||0,q[6]||0,P)}}return new Date(N)}(y),this.$x=y.x||{},this.init()},k.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()},k.$utils=function(){return S},k.isValid=function(){return this.$d.toString()!==v},k.isSame=function(y,E){var N=j(y);return this.startOf(E)<=N&&N<=this.endOf(E)},k.isAfter=function(y,E){return j(y)<this.startOf(E)},k.isBefore=function(y,E){return this.endOf(E)<j(y)},k.$g=function(y,E,N){return S.u(y)?this[E]:this.set(N,y)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(y,E){var N=this,I=!!S.u(E)||E,q=S.p(y),B=function(se,ee){var de=S.w(N.$u?Date.UTC(N.$y,ee,se):new Date(N.$y,ee,se),N);return I?de:de.endOf(c)},P=function(se,ee){return S.w(N.toDate()[se].apply(N.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(ee)),N)},L=this.$W,H=this.$M,Y=this.$D,W="set"+(this.$u?"UTC":"");switch(q){case R:return I?B(1,0):B(31,11);case g:return I?B(1,H):B(0,H+1);case f:var me=this.$locale().weekStart||0,fe=(L<me?L+7:L)-me;return B(I?Y-fe:Y+(6-fe),H);case c:case T:return P(W+"Hours",0);case i:return P(W+"Minutes",1);case u:return P(W+"Seconds",2);case s:return P(W+"Milliseconds",3);default:return this.clone()}},k.endOf=function(y){return this.startOf(y,!1)},k.$set=function(y,E){var N,I=S.p(y),q="set"+(this.$u?"UTC":""),B=(N={},N[c]=q+"Date",N[T]=q+"Date",N[g]=q+"Month",N[R]=q+"FullYear",N[i]=q+"Hours",N[u]=q+"Minutes",N[s]=q+"Seconds",N[o]=q+"Milliseconds",N)[I],P=I===c?this.$D+(E-this.$W):E;if(I===g||I===R){var L=this.clone().set(T,1);L.$d[B](P),L.init(),this.$d=L.set(T,Math.min(this.$D,L.daysInMonth())).$d}else B&&this.$d[B](P);return this.init(),this},k.set=function(y,E){return this.clone().$set(y,E)},k.get=function(y){return this[S.p(y)]()},k.add=function(y,E){var N,I=this;y=Number(y);var q=S.p(E),B=function(H){var Y=j(I);return S.w(Y.date(Y.date()+Math.round(H*y)),I)};if(q===g)return this.set(g,this.$M+y);if(q===R)return this.set(R,this.$y+y);if(q===c)return B(1);if(q===f)return B(7);var P=(N={},N[u]=n,N[i]=l,N[s]=r,N)[q]||1,L=this.$d.getTime()+y*P;return S.w(L,this)},k.subtract=function(y,E){return this.add(-1*y,E)},k.format=function(y){var E=this,N=this.$locale();if(!this.isValid())return N.invalidDate||v;var I=y||"YYYY-MM-DDTHH:mm:ssZ",q=S.z(this),B=this.$H,P=this.$m,L=this.$M,H=N.weekdays,Y=N.months,W=function(ee,de,Ee,Ce){return ee&&(ee[de]||ee(E,I))||Ee[de].slice(0,Ce)},me=function(ee){return S.s(B%12||12,ee,"0")},fe=N.meridiem||function(ee,de,Ee){var Ce=ee<12?"AM":"PM";return Ee?Ce.toLowerCase():Ce},se={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:S.s(L+1,2,"0"),MMM:W(N.monthsShort,L,Y,3),MMMM:W(Y,L),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:W(N.weekdaysMin,this.$W,H,2),ddd:W(N.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(B),HH:S.s(B,2,"0"),h:me(1),hh:me(2),a:fe(B,P,!0),A:fe(B,P,!1),m:String(P),mm:S.s(P,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:q};return I.replace(C,function(ee,de){return de||se[ee]||q.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(y,E,N){var I,q=S.p(E),B=j(y),P=(B.utcOffset()-this.utcOffset())*n,L=this-B,H=S.m(this,B);return H=(I={},I[R]=H/12,I[g]=H,I[O]=H/3,I[f]=(L-P)/6048e5,I[c]=(L-P)/864e5,I[i]=L/l,I[u]=L/n,I[s]=L/r,I)[q]||L,N?H:S.a(H)},k.daysInMonth=function(){return this.endOf(g).$D},k.$locale=function(){return $[this.$L]},k.locale=function(y,E){if(!y)return this.$L;var N=this.clone(),I=w(y,E,!0);return I&&(N.$L=I),N},k.clone=function(){return S.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},x}(),F=M.prototype;return j.prototype=F,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",c],["$M",g],["$y",R],["$D",T]].forEach(function(x){F[x[1]]=function(k){return this.$g(k,x[0],x[1])}}),j.extend=function(x,k){return x.$i||(x(k,M,j),x.$i=!0),j},j.locale=w,j.isDayjs=m,j.unix=function(x){return j(1e3*x)},j.en=$[p],j.Ls=$,j.p={},j})})(yr);const ve=yr.exports;var pr={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,l=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},i=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(A){this[v]=+A}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(A){if(!A||A==="Z")return 0;var C=A.match(/([+-]|\d\d)/g),D=60*C[1]+(+C[2]||0);return D===0?0:C[0]==="+"?-D:D}(v)}],g=function(v){var A=u[v];return A&&(A.indexOf?A:A.s.concat(A.f))},O=function(v,A){var C,D=u.meridiem;if(D){for(var V=1;V<=24;V+=1)if(v.indexOf(D(V,0,A))>-1){C=V>12;break}}else C=v===(A?"pm":"PM");return C},R={A:[s,function(v){this.afternoon=O(v,!1)}],a:[s,function(v){this.afternoon=O(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[l,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[l,c("day")],Do:[s,function(v){var A=u.ordinal,C=v.match(/\d+/);if(this.day=C[0],A)for(var D=1;D<=31;D+=1)A(D).replace(/\[|\]/g,"")===v&&(this.day=D)}],M:[o,c("month")],MM:[l,c("month")],MMM:[s,function(v){var A=g("months"),C=(g("monthsShort")||A.map(function(D){return D.slice(0,3)})).indexOf(v)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[s,function(v){var A=g("months").indexOf(v)+1;if(A<1)throw new Error;this.month=A%12||A}],Y:[/[+-]?\d+/,c("year")],YY:[l,function(v){this.year=i(v)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function T(v){var A,C;A=v,C=u&&u.formats;for(var D=(v=A.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,S,M){var F=M&&M.toUpperCase();return S||C[M]||r[M]||C[F].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,k,y){return k||y.slice(1)})})).match(n),V=D.length,b=0;b<V;b+=1){var p=D[b],$=R[p],m=$&&$[0],w=$&&$[1];D[b]=w?{regex:m,parser:w}:p.replace(/^\[|\]$/g,"")}return function(j){for(var S={},M=0,F=0;M<V;M+=1){var x=D[M];if(typeof x=="string")F+=x.length;else{var k=x.regex,y=x.parser,E=j.slice(F),N=k.exec(E)[0];y.call(S,N),j=j.replace(N,"")}}return function(I){var q=I.afternoon;if(q!==void 0){var B=I.hours;q?B<12&&(I.hours+=12):B===12&&(I.hours=0),delete I.afternoon}}(S),S}}return function(v,A,C){C.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(i=v.parseTwoDigitYear);var D=A.prototype,V=D.parse;D.parse=function(b){var p=b.date,$=b.utc,m=b.args;this.$u=$;var w=m[1];if(typeof w=="string"){var j=m[2]===!0,S=m[3]===!0,M=j||S,F=m[2];S&&(F=m[2]),u=this.$locale(),!j&&F&&(u=C.Ls[F]),this.$d=function(E,N,I){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*E);var q=T(N)(E),B=q.year,P=q.month,L=q.day,H=q.hours,Y=q.minutes,W=q.seconds,me=q.milliseconds,fe=q.zone,se=new Date,ee=L||(B||P?1:se.getDate()),de=B||se.getFullYear(),Ee=0;B&&!P||(Ee=P>0?P-1:se.getMonth());var Ce=H||0,Dt=Y||0,Mt=W||0,qt=me||0;return fe?new Date(Date.UTC(de,Ee,ee,Ce,Dt,Mt,qt+60*fe.offset*1e3)):I?new Date(Date.UTC(de,Ee,ee,Ce,Dt,Mt,qt)):new Date(de,Ee,ee,Ce,Dt,Mt,qt)}catch{return new Date("")}}(p,w,$),this.init(),F&&F!==!0&&(this.$L=this.locale(F).$L),M&&p!=this.format(w)&&(this.$d=new Date("")),u={}}else if(w instanceof Array)for(var x=w.length,k=1;k<=x;k+=1){m[1]=w[k-1];var y=C.apply(this,m);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}k===x&&(this.$d=new Date(""))}else V.call(this,b)}}})})(pr);const Lo=pr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(u){var i=["th","st","nd","rd"],c=u%100;return"["+u+(i[(c-20)%10]||i[c]||i[0])+"]"},o.format=function(u){var i=this,c=this.$locale();if(!this.isValid())return s.bind(this)(u);var f=this.$utils(),g=(u||"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(O){switch(O){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return c.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return c.ordinal(i.week(),"W");case"w":case"ww":return f.s(i.week(),O==="w"?1:2,"0");case"W":case"WW":return f.s(i.isoWeek(),O==="W"?1:2,"0");case"k":case"kk":return f.s(String(i.$H===0?24:i.$H),O==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return O}});return s.bind(this)(g)}}})})(br);const _o=br.exports;var Sr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n,l){var o=n.prototype,s=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,O,R,T,v){var A=g.name?g:g.$locale(),C=s(A[O]),D=s(A[R]),V=C||D.map(function(p){return p.slice(0,T)});if(!v)return V;var b=A.weekStart;return V.map(function(p,$){return V[($+(b||0))%7]})},i=function(){return l.Ls[l.locale()]},c=function(g,O){return g.formats[O]||function(R){return R.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,v,A){return v||A.slice(1)})}(g.formats[O.toUpperCase()])},f=function(){var g=this;return{months:function(O){return O?O.format("MMMM"):u(g,"months")},monthsShort:function(O){return O?O.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(O){return O?O.format("dddd"):u(g,"weekdays")},weekdaysMin:function(O){return O?O.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(O){return O?O.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(O){return c(g.$locale(),O)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return f.bind(this)()},l.localeData=function(){var g=i();return{firstDayOfWeek:function(){return g.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(O){return c(g,O)},meridiem:g.meridiem,ordinal:g.ordinal}},l.months=function(){return u(i(),"months")},l.monthsShort=function(){return u(i(),"monthsShort","months",3)},l.weekdays=function(g){return u(i(),"weekdays",null,null,g)},l.weekdaysShort=function(g){return u(i(),"weekdaysShort","weekdays",3,g)},l.weekdaysMin=function(g){return u(i(),"weekdaysMin","weekdays",2,g)}}})})(Sr);const Ho=Sr.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){var r="week",n="year";return function(l,o,s){var u=o.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(c),g=s(this).endOf(r);if(f.isBefore(g))return 1}var O=s(this).startOf(n).date(c).startOf(r).subtract(1,"millisecond"),R=this.diff(O,r,!0);return R<0?s(this).startOf("week").week():Math.ceil(R)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}})})(wr);const Ko=wr.exports;var $r={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,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}}})})($r);const zo=$r.exports;var vr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,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")}}})})(vr);const Go=vr.exports;var Er={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Er);const Yo=Er.exports;var Cr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(pe,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Cr);const Wo=Cr.exports;ve.extend(Ho),ve.extend(_o),ve.extend(Lo),ve.extend(Ko),ve.extend(zo),ve.extend(Go),ve.extend(Yo),ve.extend(Wo);const Or=10;function Uo(e,t){return e>t&&e>Or?"horizontal":t>e&&t>Or?"vertical":""}function Xo(){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),u=a.ref(0),i=a.ref(0),c=a.ref(0),f=a.ref(""),g=()=>f.value==="vertical",O=()=>f.value==="horizontal",R=()=>{s.value=0,u.value=0,i.value=0,c.value=0,f.value="",r.value=0};return{move:A=>{const C=A.touches[0];s.value=C.clientX-e.value,u.value=C.clientY-t.value,l.value=C.clientX,o.value=C.clientY,i.value=Math.abs(s.value),c.value=Math.abs(u.value),n.value=Date.now()-r.value,f.value||(f.value=Uo(i.value,c.value))},start:A=>{R(),e.value=A.touches[0].clientX,t.value=A.touches[0].clientY,r.value=Date.now()},reset:R,startX:e,startY:t,startTime:r,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:c,direction:f,isVertical:g,isHorizontal:O}}const Zo=[dn,hn,gn,mn,bn,ae,En,Cn,ct,Tn,An,jn,Dn,qn,Hn,zn,Wn,Xn,Jn,tr,ar,ir,ur,fr,dr,kt,ut,gr,mr],Jo=new Jr(Zo,[ta],"4.0.0");Object.defineProperty(d,"clone",{enumerable:!0,get:()=>_.clone}),Object.defineProperty(d,"extend",{enumerable:!0,get:()=>_.extend}),Object.defineProperty(d,"isArray",{enumerable:!0,get:()=>_.isArray}),Object.defineProperty(d,"isDate",{enumerable:!0,get:()=>_.isDate}),Object.defineProperty(d,"isESModule",{enumerable:!0,get:()=>_.isESModule}),Object.defineProperty(d,"isEqual",{enumerable:!0,get:()=>_.isEqual}),Object.defineProperty(d,"isFunction",{enumerable:!0,get:()=>_.isFunction}),Object.defineProperty(d,"isMap",{enumerable:!0,get:()=>_.isMap}),Object.defineProperty(d,"isObject",{enumerable:!0,get:()=>_.isObject}),Object.defineProperty(d,"isPlainObject",{enumerable:!0,get:()=>_.isPlainObject}),Object.defineProperty(d,"isPromise",{enumerable:!0,get:()=>_.isPromise}),Object.defineProperty(d,"isSet",{enumerable:!0,get:()=>_.isSet}),Object.defineProperty(d,"isString",{enumerable:!0,get:()=>_.isString}),Object.defineProperty(d,"isSymbol",{enumerable:!0,get:()=>_.isSymbol}),Object.defineProperty(d,"toBoolean",{enumerable:!0,get:()=>_.toBoolean}),Object.defineProperty(d,"toNumber",{enumerable:!0,get:()=>_.toNumber}),Object.defineProperty(d,"toTypeString",{enumerable:!0,get:()=>_.toTypeString}),Object.defineProperty(d,"FoxAffix",{enumerable:!0,get:()=>h.ElAffix}),Object.defineProperty(d,"FoxAlert",{enumerable:!0,get:()=>h.ElAlert}),Object.defineProperty(d,"FoxAside",{enumerable:!0,get:()=>h.ElAside}),Object.defineProperty(d,"FoxAutoResizer",{enumerable:!0,get:()=>h.ElAutoResizer}),Object.defineProperty(d,"FoxAutocomplete",{enumerable:!0,get:()=>h.ElAutocomplete}),Object.defineProperty(d,"FoxAvatar",{enumerable:!0,get:()=>h.ElAvatar}),Object.defineProperty(d,"FoxBacktop",{enumerable:!0,get:()=>h.ElBacktop}),Object.defineProperty(d,"FoxBadge",{enumerable:!0,get:()=>h.ElBadge}),Object.defineProperty(d,"FoxBreadcrumb",{enumerable:!0,get:()=>h.ElBreadcrumb}),Object.defineProperty(d,"FoxBreadcrumbItem",{enumerable:!0,get:()=>h.ElBreadcrumbItem}),Object.defineProperty(d,"FoxButton",{enumerable:!0,get:()=>h.ElButton}),Object.defineProperty(d,"FoxButtonGroup",{enumerable:!0,get:()=>h.ElButtonGroup}),Object.defineProperty(d,"FoxCalendar",{enumerable:!0,get:()=>h.ElCalendar}),Object.defineProperty(d,"FoxCard",{enumerable:!0,get:()=>h.ElCard}),Object.defineProperty(d,"FoxCarousel",{enumerable:!0,get:()=>h.ElCarousel}),Object.defineProperty(d,"FoxCarouselItem",{enumerable:!0,get:()=>h.ElCarouselItem}),Object.defineProperty(d,"FoxCascader",{enumerable:!0,get:()=>h.ElCascader}),Object.defineProperty(d,"FoxCascaderPanel",{enumerable:!0,get:()=>h.ElCascaderPanel}),Object.defineProperty(d,"FoxCheckTag",{enumerable:!0,get:()=>h.ElCheckTag}),Object.defineProperty(d,"FoxCheckbox",{enumerable:!0,get:()=>h.ElCheckbox}),Object.defineProperty(d,"FoxCheckboxButton",{enumerable:!0,get:()=>h.ElCheckboxButton}),Object.defineProperty(d,"FoxCheckboxGroup",{enumerable:!0,get:()=>h.ElCheckboxGroup}),Object.defineProperty(d,"FoxCol",{enumerable:!0,get:()=>h.ElCol}),Object.defineProperty(d,"FoxCollapse",{enumerable:!0,get:()=>h.ElCollapse}),Object.defineProperty(d,"FoxCollapseItem",{enumerable:!0,get:()=>h.ElCollapseItem}),Object.defineProperty(d,"FoxCollapseTransition",{enumerable:!0,get:()=>h.ElCollapseTransition}),Object.defineProperty(d,"FoxColorPicker",{enumerable:!0,get:()=>h.ElColorPicker}),Object.defineProperty(d,"FoxConfigProvider",{enumerable:!0,get:()=>h.ElConfigProvider}),Object.defineProperty(d,"FoxContainer",{enumerable:!0,get:()=>h.ElContainer}),Object.defineProperty(d,"FoxDatePicker",{enumerable:!0,get:()=>h.ElDatePicker}),Object.defineProperty(d,"FoxDescriptions",{enumerable:!0,get:()=>h.ElDescriptions}),Object.defineProperty(d,"FoxDescriptionsItem",{enumerable:!0,get:()=>h.ElDescriptionsItem}),Object.defineProperty(d,"FoxDialog",{enumerable:!0,get:()=>h.ElDialog}),Object.defineProperty(d,"FoxDivider",{enumerable:!0,get:()=>h.ElDivider}),Object.defineProperty(d,"FoxDrawer",{enumerable:!0,get:()=>h.ElDrawer}),Object.defineProperty(d,"FoxDropdown",{enumerable:!0,get:()=>h.ElDropdown}),Object.defineProperty(d,"FoxDropdownItem",{enumerable:!0,get:()=>h.ElDropdownItem}),Object.defineProperty(d,"FoxDropdownMenu",{enumerable:!0,get:()=>h.ElDropdownMenu}),Object.defineProperty(d,"FoxEmpty",{enumerable:!0,get:()=>h.ElEmpty}),Object.defineProperty(d,"FoxFooter",{enumerable:!0,get:()=>h.ElFooter}),Object.defineProperty(d,"FoxForm",{enumerable:!0,get:()=>h.ElForm}),Object.defineProperty(d,"FoxFormItem",{enumerable:!0,get:()=>h.ElFormItem}),Object.defineProperty(d,"FoxHeader",{enumerable:!0,get:()=>h.ElHeader}),Object.defineProperty(d,"FoxIcon",{enumerable:!0,get:()=>h.ElIcon}),Object.defineProperty(d,"FoxImage",{enumerable:!0,get:()=>h.ElImage}),Object.defineProperty(d,"FoxImageViewer",{enumerable:!0,get:()=>h.ElImageViewer}),Object.defineProperty(d,"FoxInput",{enumerable:!0,get:()=>h.ElInput}),Object.defineProperty(d,"FoxInputNumber",{enumerable:!0,get:()=>h.ElInputNumber}),Object.defineProperty(d,"FoxLink",{enumerable:!0,get:()=>h.ElLink}),Object.defineProperty(d,"FoxMain",{enumerable:!0,get:()=>h.ElMain}),Object.defineProperty(d,"FoxMenu",{enumerable:!0,get:()=>h.ElMenu}),Object.defineProperty(d,"FoxMenuItem",{enumerable:!0,get:()=>h.ElMenuItem}),Object.defineProperty(d,"FoxMenuItemGroup",{enumerable:!0,get:()=>h.ElMenuItemGroup}),Object.defineProperty(d,"FoxOption",{enumerable:!0,get:()=>h.ElOption}),Object.defineProperty(d,"FoxOptionGroup",{enumerable:!0,get:()=>h.ElOptionGroup}),Object.defineProperty(d,"FoxPageHeader",{enumerable:!0,get:()=>h.ElPageHeader}),Object.defineProperty(d,"FoxPagination",{enumerable:!0,get:()=>h.ElPagination}),Object.defineProperty(d,"FoxPopconfirm",{enumerable:!0,get:()=>h.ElPopconfirm}),Object.defineProperty(d,"FoxPopover",{enumerable:!0,get:()=>h.ElPopover}),Object.defineProperty(d,"FoxPopper",{enumerable:!0,get:()=>h.ElPopper}),Object.defineProperty(d,"FoxProgress",{enumerable:!0,get:()=>h.ElProgress}),Object.defineProperty(d,"FoxRadio",{enumerable:!0,get:()=>h.ElRadio}),Object.defineProperty(d,"FoxRadioButton",{enumerable:!0,get:()=>h.ElRadioButton}),Object.defineProperty(d,"FoxRadioGroup",{enumerable:!0,get:()=>h.ElRadioGroup}),Object.defineProperty(d,"FoxRate",{enumerable:!0,get:()=>h.ElRate}),Object.defineProperty(d,"FoxResult",{enumerable:!0,get:()=>h.ElResult}),Object.defineProperty(d,"FoxRow",{enumerable:!0,get:()=>h.ElRow}),Object.defineProperty(d,"FoxScrollbar",{enumerable:!0,get:()=>h.ElScrollbar}),Object.defineProperty(d,"FoxSelect",{enumerable:!0,get:()=>h.ElSelect}),Object.defineProperty(d,"FoxSelectV2",{enumerable:!0,get:()=>h.ElSelectV2}),Object.defineProperty(d,"FoxSkeleton",{enumerable:!0,get:()=>h.ElSkeleton}),Object.defineProperty(d,"FoxSkeletonItem",{enumerable:!0,get:()=>h.ElSkeletonItem}),Object.defineProperty(d,"FoxSlider",{enumerable:!0,get:()=>h.ElSlider}),Object.defineProperty(d,"FoxSpace",{enumerable:!0,get:()=>h.ElSpace}),Object.defineProperty(d,"FoxStep",{enumerable:!0,get:()=>h.ElStep}),Object.defineProperty(d,"FoxSteps",{enumerable:!0,get:()=>h.ElSteps}),Object.defineProperty(d,"FoxSubMenu",{enumerable:!0,get:()=>h.ElSubMenu}),Object.defineProperty(d,"FoxSwitch",{enumerable:!0,get:()=>h.ElSwitch}),Object.defineProperty(d,"FoxTabPane",{enumerable:!0,get:()=>h.ElTabPane}),Object.defineProperty(d,"FoxTable",{enumerable:!0,get:()=>h.ElTable}),Object.defineProperty(d,"FoxTableColumn",{enumerable:!0,get:()=>h.ElTableColumn}),Object.defineProperty(d,"FoxTableV2",{enumerable:!0,get:()=>h.ElTableV2}),Object.defineProperty(d,"FoxTabs",{enumerable:!0,get:()=>h.ElTabs}),Object.defineProperty(d,"FoxTag",{enumerable:!0,get:()=>h.ElTag}),Object.defineProperty(d,"FoxTimePicker",{enumerable:!0,get:()=>h.ElTimePicker}),Object.defineProperty(d,"FoxTimeSelect",{enumerable:!0,get:()=>h.ElTimeSelect}),Object.defineProperty(d,"FoxTimeline",{enumerable:!0,get:()=>h.ElTimeline}),Object.defineProperty(d,"FoxTimelineItem",{enumerable:!0,get:()=>h.ElTimelineItem}),Object.defineProperty(d,"FoxTooltip",{enumerable:!0,get:()=>h.ElTooltip}),Object.defineProperty(d,"FoxTransfer",{enumerable:!0,get:()=>h.ElTransfer}),Object.defineProperty(d,"FoxTree",{enumerable:!0,get:()=>h.ElTree}),Object.defineProperty(d,"FoxTreeSelect",{enumerable:!0,get:()=>h.ElTreeSelect}),Object.defineProperty(d,"FoxTreeV2",{enumerable:!0,get:()=>h.ElTreeV2}),Object.defineProperty(d,"FoxUpload",{enumerable:!0,get:()=>h.ElUpload}),d.AutocompleteItem=Xn,d.Broadcast=vt,d.BroadcastKey=Q,d.CascaderItem=Wn,d.CheckboxItem=ir,d.Content=mn,d.DataItemsKey=xe,d.DateItem=jn,d.DialogItem=dr,d.Domain=Ct,d.DomainKey=be,d.ExtIcon=gr,d.FooterBar=gn,d.Group=bn,d.HeaderBar=hn,d.HintText=ct,d.Indicator=mr,d.InputItem=Tn,d.InputNumberItem=zn,d.Item=ae,d.Mapping=kt,d.MoneyItem=Hn,d.Page=dn,d.Price=ut,d.PriorityPolicy=nt,d.RadioItem=ar,d.RateItem=ur,d.RowItem=Cn,d.SelectItem=An,d.SlotItem=En,d.SwitchItem=fr,d.TableItem=tr,d.TableMappingColumn=Jn,d.TimeItem=Dn,d.TimeSelectItem=qn,d.UniqueID=wn,d.ValidateSchema=nn,d.ValidateSchemaKey=ye,d.clearNonNumber=Ir,d.compareTo=wt,d.createBroadcast=We,d.createValidateSchema=Xe,d.debounce=Hr,d.decimalLength=Ut,d.default=Jo,d.defineBroadcast=kr,d.defineDataItem=an,d.defineDomain=Tt,d.defineItem=re,d.definePageState=ln,d.deleteGlobalValidator=Br,d.disabledProperty=ce,d.divide=St,d.excludeProps=le,d.floatData=jr,d.getGlobalValidateCheckEvents=Qt,d.getGlobalValidateResetEvents=tn,d.getPageContentAreaHeight=et,d.getPageContentAreaWidth=tt,d.getPageFooterAreaHeight=Qe,d.getPageHeaderAreaHeight=Je,d.getRootDomain=Ke,d.includeProps=Rr,d.indexOf=xr,d.integerLength=Wt,d.isBrowser=Pe,d.isEmptyString=J,d.isInnerPage=zr,d.isNumberString=Yt,d.isRegExp=Gt,d.isSubPage=Gr,d.lastIndexOf=Ar,d.multiply=Ht,d.negate=Kt,d.numberFormat=$t,d.property=Ae,d.raf=Vr,d.readonlyProperty=ue,d.setGlobalValidateCheckEvents=Fr,d.setGlobalValidateHandler=Mr,d.setGlobalValidateMessages=Lr,d.setGlobalValidateResetEvents=Pr,d.setGlobalValidator=qr,d.throttle=Et,d.toPadding=ge,d.toPx=Z,d.toPxDesc=z,d.toValue=U,d.unNumberFormat=zt,d.updatePageState=Nt,d.useBroadcast=_e,d.useDomain=Se,d.useExpose=ie,d.usePageState=Ze,d.usePosition=$n,d.useRect=st,d.useTouch=Xo,d.valueLength=Le,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function Ue(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=ae(e),t=ae(t),[e,t]=ht(ae(e),ae(t)),r==1&&(n==1?e=dt(e):t=dt(t));let l=Ft(e,t);return r?r==2?"-"+ae(l):e.length<l.length?ae(l.substring(1)):"-"+ae(dt(l)):ae(l)}function dt(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 Ft(t,o)}function ae(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function ht(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 Ft(e,t){[e,t]=ht(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 Z=(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))(Z||{});function Pe(e,t=0,r=Z.HALF_EVEN){if(r===Z.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 i=o.substr(0,o.length-t);return e=i+"."+o.substr(o.length-t)+s,i=Pe(e,0,r),(n?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,Pt(l[1],o,n,r)?(n?"-":"")+gt(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 u=l[1].substring(t);return u&&Pt(u,s,n,r)&&(s=gt(s),s.length>t)?(n?"-":"")+gt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function Pt(e,t,r,n){if(!e||e===new Array(e.length+1).join("0")||n===Z.DOWN||!r&&n===Z.FLOOR||r&&n===Z.CEILING)return!1;if(n===Z.UP||r&&n===Z.FLOOR||!r&&n===Z.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 Z.HALF_DOWN:return!1;case Z.HALF_UP:return!0;case Z.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 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 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=Le(e),t=Le(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=Le(e.replace(".","")),t=Le(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let s=t.length,u=0,i=[],h=s-1,c="";for(let g=0;g<s;g++)i[g]=e.length-1;for(let g=0;g<2*e.length;g++){let E=0;for(let I=t.length-1;I>=h&&I>=0;I--)i[I]>-1&&i[I]<e.length&&(E+=parseInt(e[i[I]--])*parseInt(t[I]));E+=u,u=Math.floor(E/10),c=E%10+c,h--}return c=Le(Tr(c,o)),r==1&&(c="-"+c),c}function Tr(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 Le(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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=ae(t.replace(".","")),l>=0){let h=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(h==-1)e=ae(e+new Array(l+1).join("0"));else if(l>h)e=e.replace(".",""),e=ae(e+new Array(l-h+1).join("0"));else if(l<h){e=e.replace(".","");let c=e.length-h+l;e=ae(e.substring(0,c)+"."+e.substring(c))}else l==h&&(e=ae(e.replace(".","")))}let o=0,s=t.length,u="",i=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),i.indexOf(".")>-1){let h=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(h+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=h,u="0."+new Array(h).join("0")}for(r=r+2;o<=r;){let h=0;for(;parseInt(i)>=parseInt(t);)i=Ue(i,"-"+t),h++;u+=h,e?(e[0]=="."&&(u+=".",o++,e=e.substring(1)),i=i+e.substring(0,1),e=e.substring(1)):(o||(u+="."),o++,i=i+"0")}return(n==1?"-":"")+ae(Pe(u,r-2))}function pt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),Ue(e,t)}function bt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Lt(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,Pe(yt(e,t),0,Z.FLOOR)));return r+n}function _t(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ht(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=Z;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=ae(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+ae(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=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 l=t.charAt(0)=="-";l&&(t=t.substring(1));var o=t.indexOf(".");o=o>0?o:t.length;for(var s="",u=o;u>0;)u<r?(r=u,u=0):u-=r,s=t.substring(u,u+r)+(u<o-r&&u>=0?n:"")+s;return(l?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return K.getPrettyValue(this.value,t,r)}static round(t,r=0,n=Z.HALF_EVEN){if(t=K.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return Pe(t,r,n)}round(t=0,r=Z.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(Pe(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,Z.FLOOR)}floor(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,Z.FLOOR)}static ceil(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,Z.CEILING)}ceil(){return this.value.indexOf(".")===-1?new K(this.value):new K(this.value).round(0,Z.CEILING)}static add(t,r){return t=K.validate(t),r=K.validate(r),Ue(t,r)}add(t){return new K(Ue(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),Lt(t,r)}modulus(t){return new K(Lt(this.value,t.getValue()))}static compareTo(t,r){return t=K.validate(t),r=K.validate(r),Ht(t,r)}compareTo(t){return Ht(this.value,t.getValue())}static negate(t){return t=K.validate(t),bt(t)}negate(){return new K(bt(this.value))}}function Kt(e,t){return K.multiply(`${e}`,`${t}`)}function St(e,t,r=8){return K.divide(`${e}`,`${t}`,r)}function wt(e,t){return e=`${e}`,t=`${t}`,K.compareTo(e,t)}function zt(e){return K.negate(e)}function $t(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 u=o,i="",h=o.indexOf(".");h!=-1&&(u=o.substring(0,h),i=o.substring(h+1)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let c;if(n>0){let g="",E=u.split("").reverse();for(let I=0;I<E.length;I++)g+=E[I]+((I+1)%n==0&&I+1!=E.length?l:"");i.length==0?c=`${s}${g.split("").reverse().join("")}`:c=`${s}${g.split("").reverse().join("")}.${i}`}else i.length==0?c=`${s}${u}`:c=`${s}${u}.${i}`;return c}function Gt(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const _e=typeof window<"u",Vr=_e&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Wt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Q=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Yt(e){return Q(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Q(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ut(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 Xt(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 Ir(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 Ar(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(_.isEqual(e,r))return!0}):t.indexOf(e)}function Rr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(_.isEqual(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function He(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function jr(e,...t){const r={};return t.forEach(n=>{for(const l in n)r[l]=e[l]}),r}function ie(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 kr=(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},te=Symbol("BroadcastKey");class vt{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="*"):Wt(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 i=Reflect.apply(s,this.proxy,[...n]);i!=null&&o.push(i)}const u=this.proxy??{};if(typeof u[r]=="function"){const i=Reflect.apply(u[r],u,[...n]);i!=null&&o.push(i)}}return this.children.forEach(s=>{const u=Reflect.apply(s.emit,s,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,o,[...u])}),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 Xe(e,t,r,n){const l=new vt(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function Mr(e,t,r){const n=r;if(n[te])return n[te];const l=a.inject(te,null),o=new vt(l,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[te]=o,a.provide(te,o),a.onUnmounted(()=>{o.destroy(),n[te]=void 0}),o}function Ke(e=null){return e||(e=a.getCurrentInstance()?.proxy??null),e?e[te]??a.inject(te,null):a.inject(te,null)}class Dr{error(t,r){const n=r,l=Ke(r);l?l.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=Ke(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=Ke(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const l=n,o=Ke(n),s=r.find(i=>i.required===!0||i.type==="required"&&i.required!==!1),u=t.find(i=>i.required===!0||i.type==="required"&&i.required!==!1);!s&&u?o?o.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Jt=new Dr;function qr(e){Jt=e}function Br(e,t){Ne.default.setValidator(e,t)}function Fr(e){Ne.default.deleteValidator(e)}let Qt=["blur","clear"];function Pr(e){Qt=e}function en(){return Qt}let tn=["focus","change"];function Lr(e){tn=e}function nn(){return tn}function _r(e){Ne.default.messages(e)}function ze(...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 Ze(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 pe=Symbol("ValidateSchemaKey");class rn{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=a.effectScope(),this.scope.run(()=>{a.watchEffect(()=>{const r=Ze(ze(this.attrRules,this.rules)),n=[];for(let o in t){let s=t[o];if(this.hasValidator(o,!0)){if(s===!1)continue;let i={type:o};s!==null&&typeof s=="object"&&Object.assign(i,s),n.push(i);continue}let u=this.getValidator(o);if(u!==null){let i={type:o,validator:u};n.push(i)}}this.attrRules=Ze(n);const l=ze(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=Jt;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?Ne.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?Ne.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Ne.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=ze(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ze(t):this.rules=Ze([t]);const n=ze(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=ze(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const l={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},u=new Ne.default(l),i=this.proxy??s;return u.validate(s,{context:i}).then(c=>{if(c.pass)this.success();else{let g="error";Array.isArray(c.errors)&&c.errors.length>0&&(g=c.errors[0].message??g,c.errors=[c.errors[0]],c.errors[0].ref=i),this.error(g)}return c}).catch(c=>{const g=c.message??`${c}`;return this.error(g),c})}}return Promise.resolve({pass:!0})}}function Je(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 rn(t,r,e)}const an=Symbol("EventEmitterKey");class Hr{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 Kr(e,t){let r=0;return function(...n){const l=Date.now();l-r>t&&(Reflect.apply(e,{},[...n]),r=l)}}function Et(e,t){let r,n=null;return function(...l){n=l,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const Se=Symbol("DomainKey"),Ae=Symbol("DataItemsKey");class Ct{_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 zr=new Ct;function Ge(){return zr}function we(e=null){e||(e=a.getCurrentInstance());const t=e?.proxy;return t?t[Se]??a.inject(Se,null):a.inject(Se,null)}const Ot=Symbol("OriginalDateKey");function Nt(e,t,r=[],n){const l=a.getCurrentInstance(),o=l?.proxy;let s=a.inject(Se,null);s===null&&(s=Ge());const u=e||t.prop||t.name,i=new Ct(u);i.parent=s;const h=$=>{o[Ot]||E($),i.set("modelValue",$)},c=()=>i.getForSelf("modelValue")??null,g=()=>o[Ot]??null,E=$=>{const j={};_.extend(!0,j,a.toRaw($)),o[Ot]=j};a.isReactive(t)?a.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),t.modelValue&&E(t.modelValue),o[Se]=i,a.provide(Se,i);let I=null,C=null;if(l!==null){const $=a.inject(te,null);I=Xe(o,$,u,n),i.broadcast=I,o[te]=I,a.provide(te,I),o.broadcast=(v,D,...R)=>Reflect.apply(I.emit,I,[v,D,...R]);const j=a.inject(pe,null);C=Je(o,j,{componentName:""}),i.validateSchema=C,o[pe]=C,a.provide(pe,C),o[Ae]=new Map,o.validate=(v=!0)=>{const D=[];let R=null;if(v===!0)R={name:"*"};else if(Array.isArray(v)&&v.length>0){const N=v;R={name:y=>y?N.indexOf(y)!==-1:!1}}else if(v!=null&&typeof v=="object"){const N=v;if(Array.isArray(N.include)&&N.include.length>0){const y=N.include;R={name:p=>p?y.indexOf(p)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const y=N.exclude;R={name:p=>p?y.indexOf(p)===-1:!1}}}if(R){const N=I?.emitToChildren(R,"validate",!1);N&&Reflect.apply([].push,D,N)}return D.length==1?D[0]:D.length>1?Promise.all(D).then(N=>{let y=[];return N.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.setNameValidateRules=(v,D=!0)=>{if(D){const R=Reflect.ownKeys(v),N=[...R],y={name:p=>{const m=R.includes(p);if(m){const S=N.findIndex(O=>p===O);S!==-1&&N.splice(S,1)}return m}};I?.emitToChildren(y,"setNameValidateRules",v,!1),N.length>0&&N.forEach(p=>{let m=String(p);const O=ln(i,m,{componentName:"",fieldName:m,pureDataValidate:!0},I,C);o[Ae].set(m,O);const w=v[m];w&&O.validateSchema.setRule(w)})}},o.clearValidate=(v=!0)=>{let D=null;if(v===!0)D={name:"*"};else if(Array.isArray(v)&&v.length>0){const R=v;D={name:N=>N?R.indexOf(N)!==-1:!1}}else if(v!=null&&typeof v=="object"){const R=v;if(Array.isArray(R.include)&&R.include.length>0){const N=R.include;D={name:y=>y?N.indexOf(y)!==-1:!1}}else if(Array.isArray(R.exclude)&&R.exclude.length>0){const N=R.exclude;D={name:y=>y?N.indexOf(y)===-1:!1}}}D&&I?.emitToChildren(D,"clearValidate",!1)},o.resetFields=v=>{const D=c();if(!D)return;const R={};if(_.extend(!0,R,g()??{}),Array.isArray(v))v.forEach(N=>{D[N]=R[N]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(y=>{D[y]=R[y]});else if(v&&Array.isArray(v.exclude)){let N=v.exclude??[];Reflect.ownKeys(R).forEach(y=>{N.includes(y)||(D[y]=R[y])})}else Object.assign(D,R);o.clearValidate(v)},o.setModelValue=(v,D)=>{!D||D===u?h(v):I?.emitToChildren({name:D},"setModelValue",v)},o.getModelValue=()=>c()}return a.onUnmounted(()=>{i.destroy(),o[Se]=void 0,o[Ae]&&(o[Ae].clear(),o[Ae]=void 0),I!==null&&(I.destroy(),o[te]=void 0),C!==null&&(C.destroy(),o[pe]=void 0)}),i}function le(e,t,r){const l=a.getCurrentInstance()?.proxy,o=t??"",s=a.inject(te,null),u=Xe(l,s,o,r);l[te]=u,a.provide(te,u),l.broadcast=(C,$,...j)=>Reflect.apply(u.emit,u,[C,$,...j]);const i=a.inject(pe,null);e.fieldName=e.fieldName??o;const h=Je(l,i,e);l[pe]=h,a.provide(pe,h),l.validate=(C=null)=>{const $=[];if(!Array.isArray(C)||C.indexOf(o)!==-1){const v=h?.validate();$.push(v)}let j=null;if(C===!0)j={name:"*"};else if(Array.isArray(C)&&C.length>0){const v=C;j={name:D=>D?v.indexOf(D)!==-1:!1}}else if(C!=null&&typeof C=="object"){const v=C;if(Array.isArray(v.include)&&v.include.length>0){const D=v.include;j={name:R=>R?D.indexOf(R)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const D=v.exclude;j={name:R=>R?D.indexOf(R)===-1:!1}}}if(j){const v=u.emitToChildren(j,"validate",!1);Reflect.apply([].push,$,v)}return $.length==1?$[0]:$.length>1?Promise.all($).then(v=>{let D=[];return v.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(D=[...D,...R.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=C=>h?.setRule(C),l.setNameValidateRules=(C,$=!1)=>{const j=C[o];if(j&&h?.setRule(j),$){const v={name:D=>Reflect.ownKeys(C).includes(D)};u.emitToChildren(v,"setNameValidateRules",C,!1)}},l.clearValidate=(C=null)=>{(!Array.isArray(C)||C.indexOf(t??"")!==-1)&&h?.clear();let $=null;if(C===!0)$={name:"*"};else if(Array.isArray(C)&&C.length>0){const j=C;$={name:v=>v?j.indexOf(v)!==-1:!1}}else if(C!=null&&typeof C=="object"){const j=C;if(Array.isArray(j.include)&&j.include.length>0){const v=j.include;$={name:D=>D?v.indexOf(D)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const v=j.exclude;$={name:D=>D?v.indexOf(D)===-1:!1}}}$&&u.emitToChildren($,"clearValidate",!1)};const c=new Hr(l);l[an]=c;const g=Et((C="validate")=>{C==="reset"?h.clear():h.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:en()).forEach(C=>{c.on(C,$=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:nn()).forEach(C=>{c.on(C,$=>{g("reset")})}),a.onUnmounted(()=>{u.destroy(),l[te]=void 0,h.destroy(),l[pe]=void 0,c.destroy(),l[an]=void 0}),{broadcast:u,validateSchema:h,emitEvent:(C,...$)=>{Reflect.apply(c.emit,c,[C,...$])},onEvent:(C,$)=>{Reflect.apply(c.on,c,[$])},offEvent:(C,$)=>{Reflect.apply(c.off,c,[$])}}}function ln(e,t,r,n,l){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(h){const c=e.getForSelf("modelValue");return c?c[s]:null}};const u=Je({},l,r);o.validate=(h=null)=>{const c=[];if(!Array.isArray(h)||h.indexOf(s)!==-1){const E=u?.validate();c.push(E)}let g=null;if(h===!0)g={name:"*"};else if(Array.isArray(h)&&h.length>0){const E=h;g={name:I=>I?E.indexOf(I)!==-1:!1}}else if(h!=null&&typeof h=="object"){const E=h;if(Array.isArray(E.include)&&E.include.length>0){const I=E.include;g={name:C=>C?I.indexOf(C)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const I=E.exclude;g={name:C=>C?I.indexOf(C)===-1:!1}}}if(g){const E=i.emitToChildren(g,"validate",!1);Reflect.apply([].push,c,E)}return c.length==1?c[0]:c.length>1?Promise.all(c).then(E=>{let I=[];return E.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(I=[...I,...C.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=h=>u?.setRule(h),o.setNameValidateRules=h=>{const c=h[s];c&&u?.setRule(c)};const i=Xe(null,n,s,o);return{broadcast:i,validateSchema:u}}const z=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${X(e,t)}px`:"";function X(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(_e){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}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 $e="PageStateKey";function ye(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=X(e.top)),e.left!==null&&e.left!==void 0&&(t.left=X(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=X(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=X(e.right))),t}function xt(e,t,r={},n=!0,l=-1,o=-1,s=0,u=0){if(e.headerHeight=X(r.headerHeight??t.headerHeight),e.headerPadding=ye(r.headerPadding??t.headerPadding),e.footerHeight=X(r.footerHeight??t.footerHeight),e.footerPadding=ye(r.footerPadding??t.footerPadding),e.contentPadding=ye(r.contentPadding??t.contentPadding),n){const i=r.height??t.height;i?e.height=X(i,o):e.height=X(o)-X(s,o)-X(u,o),e.width=X(r.width??t.width,l)}}function on(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=X(l.top),n.safeAreaBottom=X(l.bottom),n.safeAreaLeft=X(l.left),n.safeAreaRight=X(l.right));const o=e.get("pageLayout");if(!o)return null;const s=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,i=e.get("headerBarHeight")??0,h=e.get("footerBarHeight")??0;xt(n,o,t,!0,s,u,i,h);const c=a.reactive(n),g=e.getForParent($e);g&&(n.height=nt(e,g),n.width=rt(e,g),a.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{c.height=nt(e,g),c.width=rt(e,g)}));const E=!g;return a.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([I,C,$=-1,j=-1,v=0,D=0])=>{xt(c,C,t,E,$,j,v,D)}),e.set($e,c),c}function Qe(e){return e.get($e)}function et(e,t){return t=t??e.get($e),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function tt(e,t){return t=t??e.get($e),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function nt(e,t){if(t=t??e.get($e),t){const r=et(e,t),n=tt(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function rt(e,t){return t=t??e.get($e),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Gr(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Wr(e){return!!e.getForParent($e)}var at=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(at||{});function Tt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Re(e,t,r=1,n){const l=we();return l==null?e:r===0?a.computed(()=>{const o=l.getAll(t);for(let u=o.length-1;u>=0;u--){const i=o[u];if(Tt(i,n))return i}const s=e.value;return Tt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Tt(o,n)?o:l?.get(t)})}function ce(e){return Re(e,"readonly",0,function(r){return _.toBoolean(r)})}function fe(e){return Re(e,"disabled",0,function(r){return _.toBoolean(r)})}function U(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 u=r(s);u!==o.value&&(o.value=u)}else s!==o.value&&(o.value=s)}),o}const sn=new Map,lt=new Map;let Vt=null;function Yr(e){Vt=e}function un(e,t,r){if(r){let n=lt.get(r);n||(n=new Map,lt.set(r,n)),n.set(e,t)}else sn.set(e,t)}function xe(e,t,r){!r&&Vt&&(r=Vt(e)??void 0);let n=null;if(r){let l=lt.get(r);l&&(n=l.get(t))}return n||(n=sn.get(t)),n}function Ur(e,t){for(let r in e){const n=e[r];un(r,n,t)}}function Xr(e){lt.delete(e)}function Zr(){return{top:0,left:0,bottom:0,right:0}}function Jr(e=0,t=0){if(_e){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:r,height:n-X(e,n)-X(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 Qr{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(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=Ge();if(this.initPageLayout(r,l),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Et(()=>{const u={...r},i=document.documentElement.clientWidth||document.body.clientWidth,h=document.documentElement.clientHeight||document.body.clientHeight;u.width=i,u.height=h,this.initPageLayout(u,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=_.extend({},Zr(),t.safeAreaInset),s=Jr(n,l),u=_.extend({},s.pageLayout,t.pageLayout);r=r??Ge(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",l),r.set("pageLayout",u),r.set("rootWidth",s.rootWidth),r.set("rootHeight",s.rootHeight)}setScopeGetter(t){Yr(t)}setAPI(t,r,n){un(t,r,n)}getAPI(t,r,n){return xe(t,r,n)}batchSetAPI(t,r){Ur(t,r)}clearScopeAPI(t){Xr(t)}getRootDomain(){return Ge()}}const ea=[d.ElAffix,d.ElAlert,d.ElAutocomplete,d.ElAutoResizer,d.ElAvatar,d.ElBacktop,d.ElBadge,d.ElBreadcrumb,d.ElBreadcrumbItem,d.ElButton,d.ElButtonGroup,d.ElCalendar,d.ElCard,d.ElCarousel,d.ElCarouselItem,d.ElCascader,d.ElCascaderPanel,d.ElCheckTag,d.ElCheckbox,d.ElCheckboxButton,d.ElCheckboxGroup,d.ElCol,d.ElCollapse,d.ElCollapseItem,d.ElCollapseTransition,d.ElColorPicker,d.ElConfigProvider,d.ElContainer,d.ElAside,d.ElFooter,d.ElHeader,d.ElMain,d.ElDatePicker,d.ElDescriptions,d.ElDescriptionsItem,d.ElDialog,d.ElDivider,d.ElDrawer,d.ElDropdown,d.ElDropdownItem,d.ElDropdownMenu,d.ElEmpty,d.ElForm,d.ElFormItem,d.ElIcon,d.ElImage,d.ElImageViewer,d.ElInput,d.ElInputNumber,d.ElLink,d.ElMenu,d.ElSubMenu,d.ElMenuItem,d.ElMenuItemGroup,d.ElPageHeader,d.ElPagination,d.ElPopconfirm,d.ElPopover,d.ElPopper,d.ElProgress,d.ElRadio,d.ElRadioButton,d.ElRadioGroup,d.ElRate,d.ElResult,d.ElRow,d.ElScrollbar,d.ElSelect,d.ElOption,d.ElOptionGroup,d.ElSelectV2,d.ElSkeleton,d.ElSkeletonItem,d.ElSlider,d.ElSpace,d.ElSteps,d.ElStep,d.ElSwitch,d.ElTable,d.ElTableColumn,d.ElTableV2,d.ElTabs,d.ElTabPane,d.ElTag,d.ElTimePicker,d.ElTimeSelect,d.ElTimeline,d.ElTimelineItem,d.ElTooltip,d.ElTransfer,d.ElTree,d.ElTreeSelect,d.ElTreeV2,d.ElUpload],ta=[d.ElInfiniteScroll,d.ElLoading,d.ElMessage,d.ElMessageBox,d.ElNotification,d.ElPopoverDirective],na=e=>{ea.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),ta.forEach(t=>{e.use(t)})};function Y(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 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}},se={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}},cn={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},fn={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,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}},dn=[];for(const e in fn)dn.push(e);function ue(e,t=null){if(t||(t=a.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const ra=Symbol.for("InnerPageScopeKey"),aa=(e,t)=>({inheritAttrs:!0,props:{...ne,...cn,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=Nt(r.name,r);if(l){const h=on(l,r);ue({getPageContentHeight:()=>nt(l,h),getPageContentWidth:()=>rt(l,h),getPageHeaderHeight:()=>et(l,h),getPageFooterHeight:()=>tt(l,h)});const c=a.inject(ra,!1);h&&c&&(h.contentHeight="100%")}const o=a.computed(()=>({[e]:!0})),s=a.computed(()=>({})),u=a.getCurrentInstance(),i=h=>{const c=u?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(h,!0)};return a.watch(()=>r.rules,(h,c)=>{if(!h&&!c)return;const g=a.toRaw(c),E=a.toRaw(h),I=E?Reflect.ownKeys(E):[];(g?Reflect.ownKeys(g):[]).forEach($=>{I.includes($)||(E[$]=[])}),i(E)},{deep:!0}),a.onMounted(()=>{if(r.rules){const h=a.toRaw(r.rules);i(h)}}),{classes:o,styles:s}}}),{componentName:la,create:oa,scope:ti}=Y("page"),ia=oa(aa(la));function sa(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 Te=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},hn=Te(ia,[["render",sa]]),ua=(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=we(),o=l?Qe(l):null;o&&(o.headerMounted=!0);const s=a.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?X(r.height):null,i=a.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const S=ye(r.padding??o.footerPadding);return Object.assign(m,S),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(S.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const S=ye(r.padding);Object.assign(m,S)}return m});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const h=a.computed(()=>{const m={};return i.value.height!==null&&i.value.height!==void 0&&(m.height=`${i.value.height}px`),i.value.top!==null&&i.value.top!==void 0&&(m.paddingTop=`${i.value.top}px`),i.value.left!==null&&i.value.left!==void 0&&(m.paddingLeft=`${i.value.left}px`),i.value.right!==null&&i.value.right!==void 0&&(m.paddingRight=`${i.value.right}px`),i.value.bottom!==null&&i.value.bottom!==void 0&&(m.paddingBottom=`${i.value.bottom}px`),m}),c=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),g=a.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),E=a.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),I=a.computed(()=>!(i.value.height!==null&&i.value.height!==void 0&&i.value.height<=0)),C=a.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),$=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),j=a.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),v=a.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),D=a.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function R(){n.emit("back")}function N(){n.emit("click-title")}function y(){n.emit("click-right")}function p(){n.emit("click-right-text")}return{classes:s,styles:h,mHeaderShow:I,leftStyles:c,rightStyles:g,mLeftShow:E,mTitleShow:C,mRightShow:$,mLeftIcon:j,mTitleIcon:v,mRightIcon:D,handleLeft:R,handleCenter:N,handleRight:y,handleRightText:p}}}),{componentName:ca,create:fa,scope:ni}=Y("header-bar"),da=fa(ua(ca)),ha={key:1,class:"fox-header-bar__title"};function ga(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]=(...u)=>e.handleLeft&&e.handleLeft(...u))},a.toDisplayString(e.leftText),1)):a.createCommentVNode("",!0)])],4)):a.createCommentVNode("",!0),e.mTitleShow?(a.openBlock(),a.createElementBlock("view",ha,[a.renderSlot(e.$slots,"default",{},()=>[e.title?(a.openBlock(),a.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},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]=(...u)=>e.handleRightText&&e.handleRightText(...u))},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 gn=Te(da,[["render",ga]]);function ma(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=we(),o=l?Qe(l):null;o&&(o.footerMounted=!0);const s=a.computed(()=>{const c=e;let g=e;return r.align==="left"?g=`${g}__left`:r.align==="right"?g=`${g}__right`:g=`${g}__center`,{[c]:!0,[g]:!0}}),u=r.height!==null&&r.height!==void 0?X(r.height):null,i=a.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const g=ye(r.padding??o.footerPadding);return Object.assign(c,g),u&&(o.footerHeight=u),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(g.bottom??0)),c}if(u&&(c.height=u),r.padding){const g=ye(r.padding);Object.assign(c,g)}return c});a.onUnmounted(()=>{o&&(o.footerMounted=!1)});const h=a.computed(()=>{const c={};return i.value.height!==null&&i.value.height!==void 0&&(c.height=z(i.value.height)),i.value.top!==null&&i.value.top!==void 0&&(c.paddingTop=z(i.value.top)),i.value.left!==null&&i.value.left!==void 0&&(c.paddingLeft=z(i.value.left)),i.value.right!==null&&i.value.right!==void 0&&(c.paddingRight=z(i.value.right)),i.value.bottom!==null&&i.value.bottom!==void 0&&(c.paddingBottom=z(i.value.bottom)),c});return{classes:s,styles:h}}}}const{componentName:ya,create:pa,scope:ri}=Y("footer-bar"),ba=pa(ma(ya));function Sa(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 mn=Te(ba,[["render",Sa]]);function wa(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=we(),l=a.computed(()=>({[e]:!0})),o=a.computed(()=>{const s={};if(n){const u=Qe(n);if(u){if(r.padding){const g=ye(r.padding);Object.assign(u.contentPadding,g)}const i=et(n,u),h=tt(n,u);let c="";if(u.contentHeight?c=`${u.contentHeight}`:c=`${u.height}px`,u.contentPadding,s.height=c,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||i>0){const g=(u&&u.contentPadding&&u.contentPadding.top)??0;s.paddingTop=`${i+g}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||h>0){const g=(u&&u.contentPadding&&u.contentPadding.bottom)??0;s.paddingBottom=`${h+g}px`}return u.contentPadding.left!==null&&u.contentPadding.left!==void 0&&(s.paddingLeft=`${u.contentPadding.left}px`),u.contentPadding.right!==null&&u.contentPadding.right!==void 0&&(s.paddingRight=`${u.contentPadding.right}px`),s}}if(r.padding){const u=ye(r.padding);u.left!==null&&u.left!==void 0&&(s.paddingLeft=`${u.left}px`),u.top!==null&&u.top!==void 0&&(s.paddingTop=`${u.top}px`),u.right!==null&&u.right!==void 0&&(s.paddingRight=`${u.right}px`),u.bottom!==null&&u.bottom!==void 0&&(s.paddingBottom=`${u.bottom}px`)}return s});return{classes:l,styles:o}}}}const{componentName:$a,create:va,scope:ai}=Y("content"),Ea=va(wa($a));function Ca(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 yn=Te(Ea,[["render",Ca]]),je="GroupStateKey",pn=Symbol.for("GroupScopeKey");function ot(){return a.inject(pn,!1)}function it(e=!0){a.provide(pn,e)}function Oa(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,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(je,o),o}function bn(e,t,r=-1,n=-1,l=!1,o){const s=e.get(je);if(!s)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1);const i=()=>{const h=t===""||t===-1,c=X(t);let g=_.toNumber(r);const E=X(n);if(!h){let $=(c-(g-1)*E)/g;for(;o!==-1&&g>1&&$<o;)g--,$=(c-(g-1)*E)/g}let I=!1;const C=s.layout;C.value.width=t,C.value.column!==g&&(C.value.column=g,I=!0),C.value.gutter!==E&&(C.value.gutter=E,I=!0),I&&a.triggerRef(C)};if(l)i();else{const h=++s.passport;setTimeout(()=>{h===s.passport&&i()},50)}}function We(e,t=!1){let r;return t?r=e.getForParent(je):r=e.get(je),r.layout}function It(e,t=!1){let r;return t?r=e.getForParent(je):r=e.get(je),r.order}function de(e,t=1){return t==="stretch"?-1:(t=_.toNumber(t),t===-1?100:100*t/e)}function Na(e){return e===window}const st=e=>{const t=a.unref(e);if(Na(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}},ve=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,xa=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},Ta=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=_.toNumber(e.props.offset);return t<0?0:t},Va=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"},Ia=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=_.toNumber(e.props.foxSubItemCount);return t<0?1:t};function Aa(e,t){return{props:{...ne,...cn,...fn},setup(r,n){const l=Nt(r.name,r,dn),o=Oa(l,{type:r.type}),s=ot();it(!0);const u=a.computed(()=>s&&l?We(l,!0).value:null),i=a.getCurrentInstance(),h=y=>{const p=i?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(y,!0)};a.watch(()=>r.rules,(y,p)=>{if(!y&&!p)return;const m=a.toRaw(p),S=a.toRaw(y),O=S?Reflect.ownKeys(S):[];(m?Reflect.ownKeys(m):[]).forEach(M=>{O.includes(M)||(S[M]=[])}),h(S)},{deep:!0}),a.onMounted(()=>{if(r.rules){const y=a.toRaw(r.rules);h(y)}});const c=e,g=a.computed(()=>{const y={};if(u.value){const p=We(l,!0);if(p.value.type==="flex"){if(r.width){const O=z(r.width);y.width=O}else{const O=de(p.value.column,r.span);O>0&&(y.width=`${O}%`)}if(r.height){const O=z(r.height);y.height=O}const m=de(p.value.column,r.offset);m>0&&(y["margin-left"]=`${m}%`);const S=p.value.gutter/2;S>0&&(y["padding-left"]=`${S}px`,y["padding-right"]=`${S}px`)}else if(p.value.type==="flow"){if(r.width){const O=z(r.width);y.width=O}else{const O=de(p.value.column,r.span);O>0&&(y.width=`${O}%`)}if(r.height){const O=z(r.height);y.height=O}const m=de(p.value.column,r.offset);m>0&&(y["margin-left"]=`${m}%`);const S=p.value.gutter/2;if(S>0){const O=l?It(l,!0):null;if(O){let w=_.toNumber(r.offset)+_.toNumber(r.span);(w===-1||w>p.value.column)&&(w=p.value.column);const M=Math.ceil((O.index+1)/p.value.column),B=Math.ceil((O.index+w)/p.value.column);if(M===B){const A=(O.index+1)%p.value.column,k=(O.index+w)%p.value.column,b=A===1?0:S,x=k===0?0:S;y["padding-left"]=`${b}px`,y["padding-right"]=`${x}px`}else{const A=w%p.value.column,k=0,b=A===0?0:S;y["padding-left"]=`${k}px`,y["padding-right"]=`${b}px`}O.index+=w}else y["padding-left"]=`${S}px`,y["padding-right"]=`${S}px`}}}else{if(r.width){const p=z(r.width);y.width=p}if(r.height){const p=z(r.height);y.height=p}}return y}),E=a.computed(()=>r.type==="flex"?{[`${ve("",r.type)}`]:!0,[`${ve("justify",r.justify)}`]:!0,[`${ve("align",r.align)}`]:!0,[`${ve("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:r.type==="flow"?{[`${ve("",r.type)}`]:!0,[`${ve("justify",r.justify)}`]:!0,[`${ve("align",r.align)}`]:!0}:{[`${ve("",r.type)}`]:!0,[`${c}__gutter`]:!0}),I=a.toRef(r,"title"),C=a.toRef(r,"gutter"),$=a.toRef(r,"column"),j=a.computed(()=>s?!0:_.toBoolean(r.isWrap)),v=a.ref([]),D=y=>{v.value.push(y)},R=a.ref(-1);if(bn(l,R.value,$.value,C.value,!0,r.minItemWidth),r.autoLayout){a.watch([R,$,C],([p,m,S])=>{o.order.index=0,bn(l,p,m,S,!1,r.minItemWidth)});let y=null;a.onMounted(()=>{if(_e&&v.value&&v.value.length>0){const p=v.value[0];R.value=st(p).width,window.ResizeObserver&&(y=new window.ResizeObserver(()=>{const m=st(p).width;m>0&&m!==R.value&&(R.value=m)}),y.observe(p))}}),a.onUnmounted(()=>{y?.disconnect()})}const N=(y,p,m,S)=>{const O={...E.value};return p===0&&(O[`${c}__first`]=!0),m>=S-1&&(O[`${c}__last`]=!0),a.h("div",{ref:D,key:`${p}`,class:O},y)};return()=>{o.order.index=0;const y=[];let p=0;if(n.slots.title){const w={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},M=a.h("div",w,[n.slots.title()]);y.push(M)}else if(I.value){const w={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},M=[];if(r.showMark){const k=a.h("div",{class:{[`${c}__title-mark`]:!0}});M.push(k)}const B=a.h("div",{class:{[`${c}__title-text`]:!0}},[I.value]);M.push(B);const A=a.h("div",w,M);y.push(A)}const m=n.slots.default?n.slots.default():[];let S=[],O=0;if(r.type==="flex"){for(let w=0;w<m.length;w++){const M=String(m[w].type);if(M==="Symbol(Comment)")continue;if(M==="Symbol(Fragment)")if(Array.isArray(m[w].children)){const q=m[w].children;if(Reflect.apply([].splice,m,[w,1,...q]),q.length===0){w-=1;continue}}else{m.splice(w,1),w-=1;continue}const B=m[w];if(Va(B)==="fragment"){let q=Ia(B);q>o.layout.value.column?q=o.layout.value.column:q<=0&&(q=1);const V=O+q;if(V>o.layout.value.column){const F=N([...S],p++,w-1,m.length);y.push(F),O=q,S=[B]}else S.push(B),O=V;continue}const k=xa(B),b=Ta(B);if(k==="stretch"){if(O<o.layout.value.column){S.push(B);const q=N([...S],p++,w,m.length);y.push(q)}else{const q=N([...S],p++,w-1,m.length);y.push(q);const V=N([B],p++,w,m.length);y.push(V)}O=0,S=[];continue}let x=_.toNumber(k);if(x===-1){if(S.length>0){const V=N([...S],p++,w-1,m.length);y.push(V)}const q=N([B],p++,w,m.length);y.push(q),O=0,S=[];continue}x>o.layout.value.column?x=o.layout.value.column:x<=0&&(x=1);const T=O+x+b;if(T>o.layout.value.column){const q=N([...S],p++,w-1,m.length);y.push(q),O=x+b,S=[B]}else S.push(B),O=T}if(S.length>0){const w=N([...S],p++,m.length,m.length);y.push(w)}}else if(r.type==="flow"){const w=N(m,p++,0,m.length);y.push(w)}else for(let w=0;w<m.length;w++){const M=m[w],B=N([M],p++,w,m.length);y.push(B)}return j.value?a.h("div",{class:{[`${c}`]:!0},style:g.value},[y]):y}}}}const{componentName:Ra,create:ja,scope:li}=Y("group"),Sn=ja(Aa(Ra)),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,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ka,create:Ma}=Y("price"),Da=Ma({props:{...wn},setup(e){const t=a.computed(()=>({[ka]:!0})),r=a.computed(()=>e.needSymbol?e.symbol:""),n=a.computed(()=>He(e.price)==0?"":$t(e.price,e.decimalLength,!0,_.toNumber(e.digits),e.separator)),l=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(0,u)}),o=a.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(u+1)});return{classes:t,showSymbol:r,intText:l,decimalText:o}}}),qa=["innerHTML"],Ba=["innerHTML"];function Fa(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,qa)):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,Ba)):a.createCommentVNode("",!0)],2)}const ut=Te(Da,[["render",Fa]]),{componentName:At,create:Pa}=Y("hint-text"),La=Pa({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 l=a.computed(()=>({[At]:!0})),o=a.computed(()=>({left:z(e.startPoint.x),top:z(e.startPoint.y-e.height-10-4),height:z(e.height),width:z(e.width)})),s=a.computed(()=>({[`${At}__content`]:!0})),u=a.computed(()=>({})),i=a.computed(()=>({[`${At}__arrow`]:!0})),h=a.computed(()=>({top:z(e.height)}));return{classes:l,styles:o,textClasses:s,textStyles:u,arrowClasses:i,arrowStyles:h}}}),_a={key:1,class:"text"};function Ha(e,t,r,n,l,o){const s=a.resolveComponent("fox-price");return a.openBlock(),a.createBlock(a.Transition,{name:"hint-text-fade"},{default:a.withCtx(()=>[a.withDirectives(a.createElementVNode("div",{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",_a,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.visible]])]),_:1})}const ct=Te(La,[["render",Ha]]);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 Ka(e){return e===window}const vn=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(Ka(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;for(l=t;l!==document;)s+=l.scrollTop,o+=l.scrollLeft,l=l.parentNode;return r-=o,n-=s,{x:r,y:n}},Rt={},za=new $n,ke=new Map,jt=e=>{if(e){const t=document.getElementById(e);ke.delete(e),t&&document.body.removeChild(t)}else{for(const t of ke.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}ke.clear()}},Ga=e=>{const t=document.getElementById(e.id);if(t){const r=ke.get(e.id);r?e={...Rt,...r,...e}:e={...Rt,...e};const n=a.createVNode(ct,e);return a.render(n,t),e.id}},Wa=e=>{e.unmount=jt;let t;if(e.id){if(t=e.id,ke.has(t))return Ga(e)}else t=`hinttext_${za.get()}`;e={...Rt,...e},e.id=t,ke.set(t,e);const r=document.createElement("div");r.id=e.id;const n=a.createVNode(ct,e);return a.render(n,r),document.body.appendChild(r),t},Ya=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&jt(),Ya(t);const l=vn(e),o={x:l.x,y:l.y},s=r.width??st(e).width;return Wa({...r,message:t,startPoint:o,width:s})},hide(e){jt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:En,create:Ua}=Y("item"),Xa=Ua({inheritAttrs:!0,props:{...ne,...se},setup(e,t){le({componentName:En,validate:!1},e.prop??e.name);const r=we(),n=ot();it(!1);const l=a.computed(()=>n&&r?We(r,!1).value:null),o=En,s=a.computed(()=>({[o]:!0,[`${o}__gutter`]:l.value&&l.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder,"is-error":!!O.value,"is-warn":!!m.value,"is-info":!!y.value})),u=a.computed(()=>{const V={};if(l.value)if(l.value.type==="flex"){if(e.width)V.width=z(e.width);else{const P=de(l.value.column,e.span);P>0&&(V.width=`${P}%`)}const F=de(l.value.column,e.offset);F>0&&(V["margin-left"]=`${F}%`);const L=l.value.gutter/2;L>0&&(V["padding-left"]=`${L}px`,V["padding-right"]=`${L}px`)}else if(l.value.type==="flow"){if(e.width)V.width=z(e.width);else{const P=de(l.value.column,e.span);P>0&&(V.width=`${P}%`)}const F=de(l.value.column,e.offset);F>0&&(V["margin-left"]=`${F}%`);const L=l.value.gutter/2;if(L>0){const P=r?It(r,!1):null;if(P){let H=_.toNumber(e.offset)+_.toNumber(e.span);(H===-1||H>l.value.column)&&(H=l.value.column);const G=Math.ceil((P.index+1)/l.value.column),W=Math.ceil((P.index+H)/l.value.column);if(G===W){const he=(P.index+1)%l.value.column,re=(P.index+H)%l.value.column,ee=he===1?0:L,J=re===0?0:L;V["padding-left"]=`${ee}px`,V["padding-right"]=`${J}px`}else{const he=H%l.value.column,re=0,ee=he===0?0:L;V["padding-left"]=`${re}px`,V["padding-right"]=`${ee}px`}P.index+=H}else V["padding-left"]=`${L}px`,V["padding-right"]=`${L}px`}}else return e.width&&(V.width=z(e.width)),V;else e.width&&(V.width=z(e.width));return V}),i=a.ref(null),h=a.computed({get:()=>i.value??_.toBoolean(e.isRequired),set:V=>{i.value=V}}),c=a.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=Re(a.toRef(e,"labelPosition"),"labelPosition",at.Near),E=a.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),I=a.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${E.value}`]:!0})),C=a.computed(()=>({label:!0,[`label--${E.value}`]:!0})),$=Re(a.toRef(e,"labelWidth"),"labelWidth",at.Near),j=a.computed(()=>$&&$.value?{width:z($.value)}:{}),v=a.computed(()=>({["label--string"]:!0,["label--required"]:h.value})),D=a.computed(()=>({content:!0,[e.contentClass]:!0})),R=a.computed(()=>({...e.contentStyle})),N=a.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ue({setRequired(V){h.value=V},setErrorTip(V){N.errorTip=V},setErrorIcon(V){N.errorIcon=V},setWarnTip(V){N.warnTip=V},setWarnIcon(V){N.warnIcon=V},setInfoTip(V){N.infoTip=V},setInfoIcon(V){N.infoIcon=V}});const y=a.computed(()=>e.infoTip||N.infoTip),p=a.computed(()=>e.infoIcon||N.infoIcon),m=a.computed(()=>e.warnTip||N.warnTip),S=a.computed(()=>e.warnIcon||N.warnIcon),O=a.computed(()=>e.errorTip||N.errorTip),w=a.computed(()=>e.errorIcon||N.errorIcon),M=a.computed(()=>O.value?"error":m.value?"warn":y.value?"info":""),B=a.computed(()=>M.value.length>0),A=a.computed(()=>M.value==="error"?O.value:M.value==="warn"?m.value:M.value==="info"?y.value:""),k=a.computed(()=>M.value==="error"?w.value:M.value==="warn"?S.value:M.value==="info"?p.value:null),b=a.computed(()=>{let V={[`${o}__tip`]:!0,[`${o}__tip--${M.value}`]:!0};return M.value==="error"&&e.errorClass?V[`${e.errorClass}`]=!0:M.value==="warn"&&e.warnClass?V[`${e.warnClass}`]=!0:M.value==="info"&&e.infoClass&&(V[`${e.infoClass}`]=!0),V}),x=a.computed(()=>{let V={};return g&&g.value==="top"?V["padding-left"]="0px":$&&$.value&&(V["padding-left"]=z($.value)),V}),T=a.ref();let q="";return a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([V,F,L,P])=>{!T.value||(V&&!Q(F)?q?ft.show(T.value,F,{...P,id:q,type:L}):q=ft.show(T.value,F,{...P,type:L}):ft.hide(q))}),{classes:s,styles:u,mainClasses:I,hasLabel:c,labelClasses:C,labelStyles:j,labelStringClasses:v,contentClasses:D,contentStyles:R,contentRef:T,hasTip:B,mTip:A,mIcon:k,tipClasses:b,tipStyles:x}}}),Za={key:0,class:"fox-item__tip-icon"},Ja={class:"fox-item__tip-text"};function Qa(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",Za,a.toDisplayString(e.mIcon),1)):a.createCommentVNode("",!0),a.createElementVNode("div",Ja,a.toDisplayString(e.mTip),1)],6)):a.createCommentVNode("",!0)]),_:1}),a.renderSlot(e.$slots,"hide")],6)}const oe=Te(Xa,[["render",Qa]]);function el(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=we(),o=ot();it(!1);const s=a.computed(()=>o&&l?We(l,!1).value:null),u=e,i=a.computed(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),h=a.computed(()=>{const c={};if(s.value)if(s.value.type==="flex"){if(r.width)c.width=z(r.width);else{const I=de(s.value.column,r.span);I>0&&(c.width=`${I}%`)}const g=de(s.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const E=s.value.gutter/2;E>0&&(c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`)}else if(s.value.type==="flow"){if(r.width)c.width=z(r.width);else{const I=de(s.value.column,r.span);I>0&&(c.width=`${I}%`)}const g=de(s.value.column,r.offset);g>0&&(c["margin-left"]=`${g}%`);const E=s.value.gutter/2;if(E>0){const I=l?It(l,!1):null;if(I){let C=_.toNumber(r.offset)+_.toNumber(r.span);(C===-1||C>s.value.column)&&(C=s.value.column);const $=Math.ceil((I.index+1)/s.value.column),j=Math.ceil((I.index+C)/s.value.column);if($===j){const v=(I.index+1)%s.value.column,D=(I.index+C)%s.value.column,R=v===1?0:E,N=D===0?0:E;c["padding-left"]=`${R}px`,c["padding-right"]=`${N}px`}else{const v=C%s.value.column,D=0,R=v===0?0:E;c["padding-left"]=`${D}px`,c["padding-right"]=`${R}px`}I.index+=C}else c["padding-left"]=`${E}px`,c["padding-right"]=`${E}px`}}else return r.width&&(c.width=z(r.width)),c;else r.width&&(c.width=z(r.width));return c});return()=>{const c={class:i.value,style:h.value};return n.slots&&typeof n.slots.default=="function"?a.h("div",c,n.slots.default()):a.h("div",c)}}}}const{componentName:tl,create:nl,scope:oi}=Y("slot-item"),Cn=nl(el(tl));function rl(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=we(),u=ot();it(!1);const i=a.computed(()=>{const c={};if(u&&s){const g=We(s,!1);if(g.value.type!=="flex")return r.width&&(c.width=z(r.width)),c;if(r.width)c.width=z(r.width);else{const C=de(g.value.column,r.span);C>0&&(c.width=`${C}%`)}const E=de(g.value.column,r.offset);E>0&&(c["margin-left"]=`${E}%`);const I=g.value.gutter/2;I>0&&(c["padding-left"]=`${I}px`,c["padding-right"]=`${I}px`)}else r.width&&(c.width=z(r.width));return c}),h=a.computed(()=>({[`${l}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const C=n.slots.default();if(r.divide)for(let $=0;$<C.length;$++){if($>0){const j=a.h("div",{class:{[`${l}__divide`]:!0}});c.push(j)}c.push(C[$])}else Reflect.apply([].push,c,C)}const g={class:h.value},E=a.h("div",g,c),I={class:o.value,style:i.value};return a.h("div",I,[E])}}}}const{componentName:al,create:ll,scope:ii}=Y("row-item"),On=ll(rl(al)),Nn={modelValue:{type:[String,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}};function ol(e,t,r){return{props:{...ne,...se,...Nn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=m=>{g.value=m,o("update:modelValue",m),o("input",m)},$=m=>{o("change",m)};let j=U(n,"hintText"),v=a.ref(!1);const D=m=>{let O=m.target.value;i.value=!0,Q(j.value)||(v.value=!0),o("focus",O,m)},R=m=>{setTimeout(()=>{v.value&&(v.value=!1),i.value=!1},0);let O=m.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),o("blur",O,m)},N=()=>{o("clear","")},y=a.computed(()=>He(n.unit)>0),p=a.ref();return ue({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},select:()=>{p?.value.select()}}),()=>{const S={...l.attrs,ref:p,class:I.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:h.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:$,onInput:C,onFocus:D,onBlur:R},O={};l.slots.prepend&&(O.prepend=l.slots.prepend),l.slots.append&&(O.append=l.slots.append),l.slots.prefix&&(O.prefix=l.slots.prefix),l.slots.suffix?O.suffix=l.slots.suffix:y.value&&(O.suffix=()=>[n.unit]);const w=[],M=a.h(d.ElInput,S,O);w.push(M);const B={default:()=>w};if(l.slots.default){const x=l.slots.default();B.label=()=>x}const k={...ie(n,Nn),hintText:j.value,hintVisible:v.value,prop:`${n.prop}_item`};return a.h(r,k,B)}}}}const{componentName:il,create:sl,scope:ul}=Y("input-item"),xn=sl(ol(il,ul,oe));function Ve(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Me(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Tn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class cl{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=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function fl(){const e=a.getCurrentInstance();return new cl(e.proxy)}function Vn(e,t,r){const n=Ve(e,t),l=Ve(e,r);if(n!==l)return!1;const o=Me(e,t),s=Me(e,r);return o===s}function In(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 u=Tn(e,s);if(Array.isArray(u)&&u.length>0){const i=In(e,o,r,u)??[];Reflect.apply([].push,l,i)}else{let i=!1;if(r==="text")i=Ve(e,s)===o;else if(r==="item")i=Vn(e,s,o);else{let h=Me(e,s);h==null&&(h=Ve(e,s)),i=h===o}if(i){l.push(s);break}}}}),l}function dl(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},placeholder:{type:[String],required:!1}};function hl(e,t,r){return{props:{...ne,...se,...An},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),h=a.ref([]),c=(b,x,T,q=!0)=>{const V=In(n,b,x,T);if(V===null){if(h.value===null||h.value.length===0)return;i.value=null,h.value=[],q&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(V.length!==h.value.length)F=!1;else for(let L=0;L<V.length;L++){const P=V[L],H=h.value[L];if(!Vn(n,P,H)){F=!1;break}}if(!F){h.value=V;let L=[],P=[];V.forEach(G=>{L.push(Me(n,G)),n.valueType==="text"?P.push(Ve(n,G)):n.valueType==="item"?P.push(G):P.push(Me(n,G))});let H;n.multiple?(i.value=L,H=a.toRaw(P)):(i.value=L[0]??"",H=a.toRaw(P[0]??"")),q&&(o("update:modelValue",H),o("change",H))}},g=a.ref([]),E=fl();a.watch([()=>n.source,()=>n.params],async([b,x])=>{if(b){const T=await E.load("select",b,x);if(T.length>0)if(typeof T[0]=="string"){let F=T.map(L=>dl(L));g.value=F}else g.value=T}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([b,x])=>{c(x,n.valueType,b,!1)});let I=null,C=a.ref(!1);typeof n.remoteMethod=="function"&&(I=async b=>{if(b!=null){C.value=!0;try{const x=await n.remoteMethod(b);g.value=x}catch(x){console.error(x)}C.value=!1}});const $=a.ref(!1),j=fe(a.computed(()=>n.disabled)),v=ce(a.computed(()=>n.readonly)),D=e,R=a.computed(()=>({[D]:!0})),N=b=>{n.allowCreate?(o("update:modelValue",b),o("change",b),i.value=b):c(b,"value",g.value,!0)};let y=U(n,"hintText"),p=a.ref(!1);const m=b=>{let T=b.target.value;$.value=!0,Q(y.value)||(p.value=!0),o("focus",T,b)},S=b=>{setTimeout(()=>{p.value&&(p.value=!1),$.value=!1},0);let T=b.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),w.value?setTimeout(()=>{o("blur",T,b)},50):o("blur",T,b)},O=()=>{o("clear","")},w=a.ref(!1),M=b=>{w.value=b,o("visible-change",b)},B=b=>{o("remove-tag",b)},A=(b,x)=>{const T=[];return b.forEach((q,V)=>{const F=Tn(n,q);if(Array.isArray(F)&&F.length>0){const L=A(F,x),P=Ve(n,q),G={key:`${P}_${V}`,label:P};T.push(a.h(d.ElOptionGroup,G,{default:()=>L}))}else{const L=Me(n,q),P=Ve(n,q),H=_.toBoolean(q.disabled),W={key:`${L}_${V}`,label:P,disabled:H,value:L};typeof x=="function"?T.push(a.h(d.ElOption,W,{default:x})):T.push(a.h(d.ElOption,W))}}),T},k=a.ref();return ue({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const x={...l.attrs,ref:k,class:R.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:j.value||v.value,modelValue:i.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:O,onChange:N,onFocus:m,onBlur:S,onVisibleChange:M,onRemoveTag:B};typeof I=="function"&&(x["remote-method"]=I,x.loading=C.value);const T={};l.slots.prefix&&(T.prefix=l.slots.prefix),l.slots.empty&&(T.empty=l.slots.empty),T.default=()=>A(g.value,l.slots.option);const q=[],V=a.h(d.ElSelect,x,T);q.push(V);const F={default:()=>q};if(l.slots.default){const G=l.slots.default();F.label=()=>G}const P={...ie(n,An),hintText:y.value,hintVisible:p.value,prop:`${n.prop??n.name}_item`};return a.h(r,P,F)}}}}const{componentName:gl,create:ml,scope:yl}=Y("select-item"),Rn=ml(hl(gl,yl,oe)),jn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function pl(e,t,r){return{props:{...ne,...se,...jn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=S=>{g.value=S,o("update:modelValue",S),o("change",S)};let $=U(n,"hintText"),j=a.ref(!1);const v=S=>{let w=S.target.value;i.value=!0,Q($.value)||(j.value=!0),o("focus",w,S)},D=S=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let w=S.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,S)},R=()=>{o("clear","")},N=S=>{o("calendar-change",S)},y=(S,O,w)=>{o("panel-change",S,O,w)},p=S=>{o("visible-change",S)},m=a.ref();return ue({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const O={...l.attrs,ref:m,class:I.value,placeholder:u.placeholder.value,disabled:h.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:C,onClear:R,onFocus:v,onBlur:D,onCalendarChange:N,onPanelChange:y,onVisibleChange:p},w={};l.slots["range-separator"]&&(w["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(w.default=l.slots.cell);const M=[],B=a.h(d.ElDatePicker,O,w);M.push(B);const A={default:()=>M};if(l.slots.default){const T=l.slots.default();A.label=()=>T}const b={...ie(n,jn),hintText:$.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,b,A)}}}}const{componentName:bl,create:Sl,scope:wl}=Y("date-item"),kn=Sl(pl(bl,wl,oe)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function $l(e,t,r){return{props:{...ne,...se,...Mn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=p=>{g.value=p,o("update:modelValue",p),o("change",p)};let $=U(n,"hintText"),j=a.ref(!1);const v=p=>{let S=p.target.value;i.value=!0,Q($.value)||(j.value=!0),o("focus",S,p)},D=p=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let S=p.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,p)},R=()=>{o("clear","")},N=p=>{o("visible-change",p)},y=a.ref();return ue({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},handleOpen:()=>{y?.value.handleOpen()},handleClose:()=>{y?.value.handleClose()}}),()=>{const m={...l.attrs,ref:y,class:I.value,placeholder:u.placeholder.value,disabled:h.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:C,onClear:R,onFocus:v,onBlur:D,onVisibleChange:N},S={},O=[],w=a.h(d.ElTimePicker,m,S);O.push(w);const M={default:()=>O};if(l.slots.default){const b=l.slots.default();M.label=()=>b}const A={...ie(n,Mn),hintText:$.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,A,M)}}}}const{componentName:vl,create:El,scope:Cl}=Y("time-item"),Dn=El($l(vl,Cl,oe)),qn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ol(e,t,r){return{props:{...ne,...se,...qn},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=y=>{g.value=y,o("update:modelValue",y),o("change",y)};let $=U(n,"hintText"),j=a.ref(!1);const v=y=>{let m=y.target.value;i.value=!0,Q($.value)||(j.value=!0),o("focus",m,y)},D=y=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let m=y.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,y)},R=()=>{o("clear","")},N=a.ref();return ue({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const p={...l.attrs,ref:N,class:I.value,placeholder:u.placeholder.value,disabled:h.value,readonly:c.value,modelValue:g.value,["onUpdate:modelValue"]:C,onClear:R,onFocus:v,onBlur:D},m={},S=[],O=a.h(d.ElTimeSelect,p,m);S.push(O);const w={default:()=>S};if(l.slots.default){const k=l.slots.default();w.label=()=>k}const B={...ie(n,qn),hintText:$.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,B,w)}}}}const{componentName:Nl,create:xl,scope:Tl}=Y("time-select-item"),Bn=xl(Ol(Nl,Tl,oe));function Fn(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 Pn(e,t,r=20){if(typeof t=="string"&&(t=_.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Kt(`${e}`,`${t}`);return Fn(n)}else{let n=St(`${e}`,zt(`${t}`),20);return Fn(n)}}function Vl(e,t=-1,r=!1,n=3,l=","){return $t(e,t,r,n,l)}function Ln(e,t,r,n,l=!0){if(e=="")return"";if(e=Gt(e),t=_.toNumber(t),t==1)return e;if(n)e=Pn(e,t),r&&(e=="0"&&l?e=`${e}.`.padEnd(_.toNumber(r)+2,"0"):e=St(e,1,_.toNumber(r)));else{let o=-1*t;e=Pn(e,o)}return e}function _n(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=_.toBoolean(t.minInclude),l=wt(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let o="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=o.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=_.toBoolean(t.maxInclude),l=wt(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(r.maxValid=!1)}return r}const Hn={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 Il(e,t,r){return{props:{...ne,...se,...Hn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=a.ref(!1),u=fe(a.computed(()=>n.disabled)),i=ce(a.computed(()=>n.readonly)),h=U(n,"modelValue"),c=a.ref("");a.watch([()=>h.value,()=>n.rates,()=>n.precision],([A,k,b])=>{if(Q(A))return"";const x=Ln(A,k,b,!1);c.value!==x&&(c.value=x)},{immediate:!0});const g=a.computed(()=>{let A="";return s.value&&(A=c.value),A}),{t:E}=me.useFoxI18n(t),I=a.computed(()=>{let A=n.placeholder??"";return!s.value&&!Q(c.value)?A=Vl(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):A=E(["placeholder",A]),A}),C=e,$=a.computed(()=>({[C]:!0,[`${C}__disabled`]:u.value,[`${C}__placeholder`]:c.value.length>0})),j=Re(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>s.value?{textAlign:"left"}:{textAlign:j.value??"right"});const v=a.ref(""),D=a.computed(()=>{let A=v.value;return Q(A)&&(A=n.errorTip??""),A}),R=a.ref(""),N=a.ref(!1),y=(A,k)=>{if(A=`${A}`,Q(A)){c.value="",h.value="",k.forEach(b=>{o(b,"")}),_.toBoolean(n.showTip)&&N.value&&(N.value=!1);return}if(A.length>=2){let b=A;if(b.charAt(0)=="-"&&(b=b.substring(1)),b.length>=2&&b.charAt(0)=="0"&&b.charAt(1)!="."){a.triggerRef(c);return}}if(A!="-"){if(!Yt(A)){a.triggerRef(c);return}if(n.integerLength!=-1&&Ut(A)>Number(n.integerLength)){a.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Xt(A)>Number(n.decimalLength)){a.triggerRef(c);return}let b=_n(A,n);if(b.maxValid===!1){v.value=b.message,a.triggerRef(c);return}}else if(n.min!=null&&_.toNumber(n.min)>=0){a.triggerRef(c);return}R.value=A,_.toBoolean(n.showTip)&&(N.value=A.length>0),c.value=A,h.value=Ln(A,n.rates,n.precision,!0),k.forEach(b=>{o(b,h.value)})},p=A=>{y(A,["update:modelValue","input"])},m=A=>{y(A,["update:modelValue","change"])},S=A=>{if(s.value=!0,_.toBoolean(n.showTip)){let k=c.value;Q(k)&&(k=n.hintText),Q(k)||(R.value=k,N.value=!0)}v.value="",o("focus",h.value,A)},O=A=>{if(setTimeout(()=>{s.value=!1,_.toBoolean(n.showTip)&&N.value===!0&&(N.value=!1)},0),!Q(c.value)){let k=_n(c.value,n);if(k.minValid===!1||k.maxValid){v.value=k.message;return}}o("update:modelValue",h.value,A),o("blur",h.value,A)},w=()=>{o("clear","")},M=a.computed(()=>He(n.unit)>0),B=a.ref();return ue({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const k={...l.attrs,ref:B,class:$.value,type:"digit",maxlength:n.maxLength,placeholder:I.value,clearable:n.clearable,disabled:u.value,readonly:i.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:w,onInput:p,onChange:m,onFocus:S,onBlur:O},b={};l.slots.prepend&&(b.prepend=l.slots.prepend),l.slots.append&&(b.append=l.slots.append),l.slots.prefix&&(b.prefix=l.slots.prefix),l.slots.suffix?b.suffix=l.slots.suffix:M.value&&(b.suffix=()=>[n.unit]);const x=[],T=a.h(d.ElInput,k,b);x.push(T);const q={default:()=>x};if(l.slots.default){const P=l.slots.default();q.label=()=>P}const F={...ie(n,Hn),errorTip:D.value,hintText:R.value,hintVisible:N.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,F,q)}}}}const{componentName:Al,create:Rl,scope:jl}=Y("money-item"),Kn=Rl(Il(Al,jl,oe)),zn={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 kl(e,t,r){return{props:{...ne,...se,...zn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0,[`${E}__append`]:p.value})),C=a.computed(()=>({[`${E}__unit`]:!0})),$=S=>{g.value=S,o("update:modelValue",S),o("input",S)},j=S=>{o("change",S)};let v=U(n,"hintText"),D=a.ref(!1);const R=S=>{let w=S.target.value;i.value=!0,Q(v.value)||(D.value=!0),o("focus",w,S)},N=S=>{setTimeout(()=>{D.value&&(D.value=!1),i.value=!1},0);let w=S.target.value;n.maxLength&&w.length>Number(n.maxLength)&&(w=w.slice(0,Number(n.maxLength))),o("blur",w,S)},y=()=>{o("clear","")},p=a.computed(()=>He(n.unit)>0),m=a.ref();return ue({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const O={...l.attrs,ref:m,class:I.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:h.value,readonly:c.value,modelValue:g.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:y,onChange:j,onInput:$,onFocus:R,onBlur:N},w={},M=[],B=a.h(d.ElInputNumber,O,w);M.push(B);const A={default:()=>M};if(l.slots.default){const T=l.slots.default();A.label=()=>T}const b={...ie(n,zn),hintText:v.value,hintVisible:D.value,prop:`${n.prop}_item`};if(l.slots.append)A.append=l.slots.append;else if(p.value){const T={class:C.value},q=a.h("div",T,[n.unit]);A.append=()=>q}return a.h(r,b,A)}}}}const{componentName:Ml,create:Dl,scope:ql}=Y("input-number-item"),Gn=Dl(kl(Ml,ql,oe));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ie(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Bl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Fl{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=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Pl(){const e=a.getCurrentInstance();return new Fl(e.proxy)}function kt(e,t,r){const n=De(e,t),l=De(e,r);if(n!==l)return!1;const o=Ie(e,t),s=Ie(e,r);return o===s}function Wn(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 u=t[s];if(Array.isArray(u)){const i=Wn(e,u,r,n);l.push(i)}else{let i=!1;for(let h of o){if(r==="text")i=De(e,h)===u;else if(r==="item")i=kt(e,h,u);else{let c=Ie(e,h);c==null&&(c=De(e,h)),i=c===u}if(i){l.push(h),o=Bl(e,h);break}}if(!i)break}}return l}function Ll(e){return{text:e,value:e}}const Yn={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}};function _l(e,t,r){return{props:{...ne,...se,...Yn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(null),h=a.ref([]),c=(x,T,q,V=!0)=>{if(n.props&&n.props.lazy===!0){if(i.value===x)return;i.value=x;const P=a.toRaw(x);V&&(o("update:modelValue",P),o("change",P))}const F=Wn(n,x,T,q);if(F===null){if(h.value.length===0||h.value===null)return;h.value=[],i.value=null,V&&(o("update:modelValue",null),o("change",null));return}let L=!0;if(F.length!==h.value.length)L=!1;else for(let P=0;P<F.length;P++){const H=F[P],G=h.value[P];if(Array.isArray(H)){if(!Array.isArray(G)||H.length!==G.length)L=!1;else for(let W=0;W<H.length;W++)if(!kt(n,H[W],G[W])){L=!1;break}}else kt(n,H,G)||(L=!1);if(!L)break}if(!L){h.value=F;let P=[],H=[];F.forEach(W=>{if(Array.isArray(W)){let he=[],re=[];for(let ee of W)he.push(Ie(n,ee)),n.valueType==="text"?re.push(De(n,ee)):n.valueType==="item"?re.push(ee):re.push(Ie(n,ee));P.push(he),H.push(re)}else P.push(Ie(n,W)),n.valueType==="text"?H.push(De(n,W)):n.valueType==="item"?H.push(W):H.push(Ie(n,W))}),i.value=P;const G=a.toRaw(H);V&&(o("update:modelValue",G),o("change",G))}},g=a.ref([]),E=Pl();a.watch([()=>n.source,()=>n.params],async([x,T])=>{if(x){const q=await E.load("cascader",x,T);if(q.length>0)if(typeof q[0]=="string"){let L=q.map(P=>Ll(P));g.value=L}else g.value=q}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([x,T])=>{c(T,n.valueType,x,!1)});let I=null,C=a.ref(!1);typeof n.remoteMethod=="function"&&(I=async x=>{if(x!=null){C.value=!0;try{const T=await n.remoteMethod(x);g.value=T}catch(T){console.error(T)}C.value=!1}});const $=a.ref(!1),j=fe(a.computed(()=>n.disabled)),v=ce(a.computed(()=>n.readonly)),D=e,R=a.computed(()=>({[D]:!0})),N=a.computed(()=>{let x={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(x.multiple=!0),n.props&&Object.assign(x,n.props),x}),y=x=>{n.allowCreate?(o("update:modelValue",x),o("change",x),i.value=x):c(x,"value",g.value,!0)};let p=U(n,"hintText"),m=a.ref(!1);const S=x=>{let q=x.target.value;$.value=!0,Q(p.value)||(m.value=!0),o("focus",q,x)},O=x=>{setTimeout(()=>{m.value&&(m.value=!1),$.value=!1},0);let q=x.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),M.value?setTimeout(()=>{o("blur",q,x)},50):o("blur",q,x)},w=()=>{o("clear","")},M=a.ref(!1),B=x=>{M.value=x,o("visible-change",x)},A=x=>{o("remove-tag",x)},k=x=>{o("expand-change",x)},b=a.ref();return ue({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},getCheckedNodes:()=>b?.value.getCheckedNodes()}),()=>{const T={...l.attrs,ref:b,class:R.value,props:N.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:j.value||v.value,options:g.value,modelValue:i.value,onClear:w,onChange:y,onFocus:S,onBlur:O,onVisibleChange:B,onRemoveTag:A,expandChange:k};typeof I=="function"&&(T["remote-method"]=I,T.loading=C.value);const q={};l.slots.option&&(q.default=l.slots.option),l.slots.empty&&(q.empty=l.slots.empty);const V=[],F=a.h(d.ElCascader,T,q);V.push(F);const L={default:()=>V};if(l.slots.default){const W=l.slots.default();L.label=()=>W}const H={...ie(n,Yn),hintText:p.value,hintVisible:m.value,prop:`${n.prop??n.name}_item`};return a.h(r,H,L)}}}}const{componentName:Hl,create:Kl,scope:zl}=Y("cascader-item"),Un=Kl(_l(Hl,zl,oe)),Xn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Gl(e,t,r){return{props:{...ne,...se,...Xn},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=me.useFoxI18n(t),u=s(n,["placeholder"]),i=a.ref(!1),h=fe(a.computed(()=>n.disabled)),c=ce(a.computed(()=>n.readonly)),g=U(n,"modelValue"),E=e,I=a.computed(()=>({[E]:!0})),C=p=>{g.value=p,o("update:modelValue",p),o("input",p)},$=p=>{o("change",p)};let j=U(n,"hintText"),v=a.ref(!1);const D=p=>{let S=p.target.value;i.value=!0,Q(j.value)||(v.value=!0),o("focus",S,p)},R=p=>{setTimeout(()=>{v.value&&(v.value=!1),i.value=!1},0);let S=p.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),o("blur",S,p)},N=()=>{o("clear","")},y=a.ref();return ue({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},select:()=>{y?.value.select()}}),()=>{const m={...l.attrs,ref:y,class:I.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:h.value,readonly:c.value,modelValue:g.value,onClear:N,onChange:$,onInput:C,onFocus:D,onBlur:R},S={};l.slots.prepend&&(S.prepend=l.slots.prepend),l.slots.append&&(S.append=l.slots.append),l.slots.prefix&&(S.prefix=l.slots.prefix),l.slots.suffix&&(S.suffix=l.slots.suffix),l.slots.option&&(S.default=l.slots.option);const O=[],w=a.h(d.ElAutocomplete,m,S);O.push(w);const M={default:()=>O};if(l.slots.default){const b=l.slots.default();M.label=()=>b}const A={...ie(n,Xn),hintText:j.value,hintVisible:v.value,prop:`${n.prop}_item`};return a.h(r,A,M)}}}}const{componentName:Wl,create:Yl,scope:Ul}=Y("autocomplete-item"),Zn=Yl(Gl(Wl,Ul,oe));function Xl(e,t,r,n,l){let o=[];Array.isArray(e)?o=e:o=[e];const s=[],u=t[0];if(Array.isArray(u))for(let i=0;i<t.length&&i<o.length;i++){let h=t[i],c=o[i];const g=h.find(E=>E[n]===c);if(!g)break;s.push(g[r])}else{let i=t;for(let h=0;i&&h<o.length;h++){let c=o[h],g=i.find(E=>E[n]===c);if(!g)break;s.push(g[r]),i=g[l]}}return s}class Zl{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=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function Jl(){const e=a.getCurrentInstance();return new Zl(e.proxy)}const Jn={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 Ql(e,t){return{props:{...Jn},setup(r,{attrs:n}){const l=Jl(),o=a.ref([]);a.watch([()=>r.source,()=>r.params],async([i,h])=>{o.value=await l.load(r.sourceType,i,h)},{immediate:!0});const s=a.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let i=Xl(r.modelValue,o.value,r.textKey,r.valueKey,r.childrenKey);return i.length==0?"":i.length===1?i[0]:i.join(r.separator)}),u=r.resolveTag?a.resolveComponent(r.tag):r.tag;return()=>{const i={...n};return r.resolveTag?a.h(u,i,{default:()=>s.value}):a.h(u,i,s.value)}}}}const{componentName:si,create:eo,scope:ui}=Y("mapping"),Mt=eo(Ql());function to(e,t){return{props:{...Jn},setup(r,{attrs:n}){return()=>{const l={default:o=>{const s=o.row[o.column.property];return a.h(Mt,{...r,modelValue:s})}};return a.h(d.ElTableColumn,{...n},l)}}}}const{componentName:ci,create:no,scope:fi}=Y("table-mapping-column"),Qn=no(to());class ro{proxy;constructor(t){this.proxy=t}async load(t,r,n,l,o,s,u){if(Array.isArray(r)){let h=(n-1)*l,c=h+l;c>r.length&&(c=r.length);const g=r.slice(h,c);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,l,o,s,u]);const i=xe(this.proxy,t);return i===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(_.isObject(o)&&a.isReactive(o)&&(o=a.toRaw(o)),await await Reflect.apply(i,null,[r,n,l,o,s,u]))}}function ao(){const e=a.getCurrentInstance();return new ro(e.proxy)}const er={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},tr={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 lo(e,t,r){return{inheritAttrs:!1,props:{...ne,...se,...er,...tr},emits:["change","page-size-change","page-index-change","current-change"],setup(n,l){const{locale:o}=me.useFoxI18n(t),{emitEvent:s}=le({componentName:e},n.prop??n.name),u=e,i=a.computed(()=>({[u]:!0})),h=a.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),c=a.ref(n.pageIndex);a.watch(()=>n.pageIndex,M=>{c.value=M});const g=M=>{c.value=M,s("page-index-change",M)},E=a.ref(n.pageSize);a.watch(()=>n.pageSize,M=>{E.value=M});const I=M=>{E.value=M,s("page-size-change",M)},C=a.shallowRef({}),$=a.computed(()=>({...C.value,...n.params??{},...n.baseParams??{}})),j=a.ref(0),v=a.ref(),D=ao();let R=!0;const N=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:_.toBoolean(n.autoLoad),y=async(M,B,A,k)=>{try{const b=await D.load("table",M,B,A,k,R,o.value);j.value=b.totalSize,v.value=b.page}catch(b){console.error("[FoxUI] Load Table Data Fail",b),j.value=0,v.value=[]}R=!1};a.watch([c,E],([M,B],[A,k])=>{B!==k&&(c.value=1,M=1),y(n.data,M,B,$.value)}),a.watch([()=>n.data,$],([M,B],[A,k])=>{!N()||(M!==A&&(R=!0),y(M,c.value,E.value,B))});const p=(M={})=>{C.value=a.toRaw(M??{}),a.triggerRef(C),a.nextTick(()=>{y(n.data,c.value,E.value,$.value)})},m=()=>{j.value=0,v.value=[]};N()&&p();let S=null;const O=(M,B)=>{S=M,s("current-change",M,B)},w=a.ref();return ue({clearSelection:()=>w?.value.clearSelection(),getSelectionRows:()=>w?.value.getSelectionRows(),toggleRowSelection:(M,B)=>{w?.value.toggleRowSelection(M,B)},toggleAllSelection:()=>{w?.value.toggleAllSelection()},toggleRowExpansion:(M,B)=>{w?.value.toggleRowExpansion(M,B)},setCurrentRow:M=>{w?.value.setCurrentRow(M)},getCurrentRow:()=>S,clearSort:()=>{w?.value.clearSort()},clearFilter:M=>{w?.value.clearFilter(M)},doLayout:()=>{w?.value.doLayout()},sort:(M,B)=>{w?.value.sort(M,B)},scrollTo:(M,B)=>{w?.value.scrollTo(M,B)},setScrollTop:M=>{w?.value.setScrollTop(M)},setScrollLeft:M=>{w?.value.setScrollLeft(M)},loadData:p,clearData:m}),()=>{const B={...l.attrs,onCurrentChange:O,data:v.value,ref:w,class:i.value},A={};l.slots.default&&(A.default=l.slots.default),l.slots.append&&(A.append=l.slots.append),l.slots.empty&&(A.empty=l.slots.empty);const k=[],b=a.h(d.ElTable,B,A);if(k.push(b),typeof l.slots.pagination=="function"){const F=l.slots.pagination();k.push(F)}else if(n.paginationVisible){const F={class:h.value,total:j.value,pageSize:E.value,["onUpdate:pageSize"]:I,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},L=a.h(d.ElPagination,F);k.push(L)}const x={default:()=>k},q={...ie(n,er,tr),prop:`${n.prop}_item`};return q.contentClass=`${u}__wrap`,a.h(r,q,x)}}}}const{componentName:oo,create:io,scope:so}=Y("table-item"),nr=io(lo(oo,so,oe));function qe(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}class uo{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=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function co(){const e=a.getCurrentInstance();return new uo(e.proxy)}function rr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=qe(e,t),l=qe(e,r);if(n!==l)return!1;const o=Ye(e,t),s=Ye(e,r);return o===s}function fo(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=qe(e,o)===t;else if(r==="item")s=rr(e,o,t);else{let u=Ye(e,o);u==null&&(u=qe(e,o)),s=u===t}if(s){l=o;break}}return l}function ho(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},itemType:{type:[String],required:!1,default:"radio"},itemClass:{type:[String],required:!1}};function go(e,t,r){return{inheritAttrs:!0,props:{...ne,...se,...ar},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=a.ref(null),u=a.ref(null),i=(R,N,y,p=!0)=>{const m=fo(n,R,N,y);if(m===null){if(u.value===null)return;u.value=null,s.value=null,p&&(o("update:modelValue",null),o("change",null));return}if(!rr(n,m,u.value)){s.value=R;const O=a.toRaw(m);u.value=O;let w=null;n.valueType==="text"?w=qe(n,O):n.valueType==="item"?w=O:w=Ye(n,O),p&&(o("update:modelValue",w),o("change",w))}},h=a.ref([]),c=co();a.watch([()=>n.source,()=>n.params],async([R,N])=>{if(R){const y=await c.load("radio",R,N);if(y.length>0)if(typeof y[0]=="string"){let S=y.map(O=>ho(O));h.value=S}else h.value=y}},{immediate:!0}),a.watch([()=>h.value,()=>n.modelValue],([R,N])=>{i(N,n.valueType,R,!1)});const g=fe(a.computed(()=>n.disabled)),E=ce(a.computed(()=>n.readonly)),I=e,C=a.computed(()=>({[I]:!0})),$=R=>{i(R,"value",h.value,!0)};let j=U(n,"hintText"),v=U(n,"hintVisible");const D=R=>{const N=[];return R.forEach((y,p)=>{const m=Ye(n,y),S=qe(n,y),O=_.toBoolean(y.disabled),M={key:`${m}_${p}`,class:n.itemClass,label:m,disabled:O,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?N.push(a.h(d.ElRadioButton,M,{default:()=>[S]})):N.push(a.h(d.ElRadio,M,{default:()=>[S]}))}),N};return()=>{const N={...l.attrs,class:C.value,disabled:g.value||E.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,onChange:$},y=[],p={};l.slots.options?p.default=l.slots.options:p.default=()=>D(h.value);const m=a.h(d.ElRadioGroup,N,p);y.push(m);const S={default:()=>y};if(l.slots.default){const B=l.slots.default();S.label=()=>B}const w={...ie(n,ar),hintText:j.value,hintVisible:v.value,prop:`${n.prop??n.name}_item`};return a.h(r,w,S)}}}}const{componentName:mo,create:yo,scope:po}=Y("radio-item"),lr=yo(go(mo,po,oe));function Be(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Fe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class bo{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=xe(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(_.isObject(n)&&a.isReactive(n)&&(n=a.toRaw(n)),await l(r,n))}}function So(){const e=a.getCurrentInstance();return new bo(e.proxy)}function or(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Be(e,t),l=Be(e,r);if(n!==l)return!1;const o=Fe(e,t),s=Fe(e,r);return o===s}function wo(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 u=!1;if(r==="text")u=Be(e,s)===o;else if(r==="item")u=or(e,s,o);else{let i=Fe(e,s);i==null&&(i=Be(e,s)),u=i===o}if(u){l.push(s);break}}}),l}function $o(e){return{text:e,value:e}}const ir={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"},itemClass:{type:[String],required:!1}};function vo(e,t,r){return{inheritAttrs:!1,props:{...ne,...se,...ir},emits:["change","update:modelValue"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=a.ref([]),u=a.ref([]),i=(R,N,y,p=!0)=>{const m=wo(n,R,N,y);if(m===null){if(u.value===null||u.value.length===0)return;s.value=[],u.value=[],p&&(o("update:modelValue",[]),o("change",[]));return}let S=!0;if(m.length!==u.value.length)S=!1;else for(let O=0;O<m.length;O++){const w=m[O],M=u.value[O];if(!or(n,w,M)){S=!1;break}}if(!S){u.value=m;let O=[],w=[];m.forEach(B=>{O.push(Fe(n,B)),n.valueType==="text"?w.push(Be(n,B)):n.valueType==="item"?w.push(B):w.push(Fe(n,B))}),s.value=O;const M=a.toRaw(w);p&&(o("update:modelValue",M),o("change",M))}},h=a.ref([]),c=So();a.watch([()=>n.source,()=>n.params],async([R,N])=>{if(R){const y=await c.load("checkbox",R,N);if(y.length>0)if(typeof y[0]=="string"){let S=y.map(O=>$o(O));h.value=S}else h.value=y}},{immediate:!0}),a.watch([()=>h.value,()=>n.modelValue],([R,N])=>{i(N,n.valueType,R,!1)});const g=fe(a.computed(()=>n.disabled)),E=ce(a.computed(()=>n.readonly)),I=e,C=a.computed(()=>({[I]:!0})),$=R=>{i(R,"value",h.value,!0)};let j=U(n,"hintText"),v=U(n,"hintVisible");const D=R=>{const N=[];return R.forEach((y,p)=>{const m=Fe(n,y),S=Be(n,y),O=_.toBoolean(y.disabled),M={key:`${m}_${p}`,class:n.itemClass,label:m,disabled:O,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?N.push(a.h(d.ElCheckboxButton,M,{default:()=>[S]})):N.push(a.h(d.ElCheckbox,M,{default:()=>[S]}))}),N};return()=>{const N={...l.attrs,class:C.value,disabled:g.value||E.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,max:_.toNumber(n.max),min:_.toNumber(n.min),onChange:$},y=[],p={};l.slots.options?p.default=l.slots.options:p.default=()=>D(h.value);const m=a.h(d.ElCheckboxGroup,N,p);y.push(m);const S={default:()=>y};if(l.slots.default){const B=l.slots.default();S.label=()=>B}const w={...ie(n,ir),hintText:j.value,hintVisible:v.value,prop:`${n.prop??n.name}_item`};return a.h(r,w,S)}}}}const{componentName:Eo,create:Co,scope:Oo}=Y("checkbox-item"),sr=Co(vo(Eo,Oo,oe)),ur={modelValue:{type:[Number,String],required:!1}};function No(e,t,r){return{props:{...ne,...se,...ur},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=fe(a.computed(()=>n.disabled)),u=ce(a.computed(()=>n.readonly)),i=U(n,"modelValue",$=>_.toNumber($)),h=e,c=a.computed(()=>({[h]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let E=U(n,"hintText"),I=a.ref(!1);const C=a.ref();return ue({}),()=>{const j={...l.attrs,ref:C,class:c.value,readonly:u.value||s.value,modelValue:i.value,onChange:g},v={},D=[],R=a.h(d.ElRate,j,v);D.push(R);const N={default:()=>D};if(l.slots.default){const S=l.slots.default();N.label=()=>S}const p={...ie(n,ur),hintText:E.value,hintVisible:I.value,prop:`${n.prop}_item`};return a.h(r,p,N)}}}}const{componentName:xo,create:To,scope:Vo}=Y("rate-item"),cr=To(No(xo,Vo,oe)),fr={modelValue:{type:[Boolean,String,Number],required:!1}};function Io(e,t,r){return{props:{...ne,...se,...fr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=fe(a.computed(()=>n.disabled)),u=ce(a.computed(()=>n.readonly)),i=U(n,"modelValue"),h=e,c=a.computed(()=>({[h]:!0})),g=$=>{o("update:modelValue",$),o("change",$)};let E=U(n,"hintText"),I=U(n,"hintVisible");const C=a.ref();return ue({}),()=>{const j={...l.attrs,ref:C,class:c.value,readonly:u.value,disabled:s.value,modelValue:i.value,onChange:g},v={},D=[],R=a.h(d.ElSwitch,j,v);D.push(R);const N={default:()=>D};if(l.slots.default){const S=l.slots.default();N.label=()=>S}const p={...ie(n,fr),hintText:E.value,hintVisible:I.value,prop:`${n.prop}_item`};return a.h(r,p,N)}}}}const{componentName:Ao,create:Ro,scope:jo}=Y("switch-item"),dr=Ro(Io(Ao,jo,oe)),ko=Symbol.for("InnerPageScopeKey"),Mo=Symbol.for("DialogItemStateKey");function Do(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(ko,!0);const l={};a.provide(Mo,l);const o=i=>{typeof l.beforeClose=="function"&&l.beforeClose(i)},s=a.ref(!0),u=i=>{s.value=i};return()=>{const h={...n.attrs,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const g=n.slots.default();c.default=()=>g}return a.h(d.ElDialog,h,c)}}}}const{componentName:di,create:qo,scope:hi}=Y("dialog-item"),hr=qo(Do()),{componentName:gr,create:Bo}=Y("ext-icon"),mr=Bo({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=o=>{t("click",o)},l=a.computed(()=>e.name?e.name.indexOf("/")!==-1:!1);return()=>{const o=l.value;return a.h(o?"img":e.tag,{class:o?`${gr}__img`:`${e.fontClassName} ${gr} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:z(e.size),width:z(e.size),height:z(e.size)},onClick:n,src:o?e.name:""},r.default?.())}}});function Fo(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})),u=a.computed(()=>r.color?{background:r.color}:null),i=a.computed(()=>({[`${l}__text`]:!0,[`${l}__text-${r.type}`]:!0})),h=a.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const $={class:s.value,style:u.value};c=a.h("div",$)}const g={class:i.value,style:h.value},E=n.default?n.default():[],I=a.h("div",g,E),C={class:o.value};return a.h("div",C,[c,I])}}}}const{componentName:Po,create:Lo,scope:gi}=Y("indicator"),yr=Lo(Fo(Po));var be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){var r=1e3,n=6e4,l=36e5,o="millisecond",s="second",u="minute",i="hour",h="day",c="week",g="month",E="quarter",I="year",C="date",$="Invalid Date",j=/^(\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,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},R=function(A,k,b){var x=String(A);return!x||x.length>=k?A:""+Array(k+1-x.length).join(b)+A},N={s:R,z:function(A){var k=-A.utcOffset(),b=Math.abs(k),x=Math.floor(b/60),T=b%60;return(k<=0?"+":"-")+R(x,2,"0")+":"+R(T,2,"0")},m:function A(k,b){if(k.date()<b.date())return-A(b,k);var x=12*(b.year()-k.year())+(b.month()-k.month()),T=k.clone().add(x,g),q=b-T<0,V=k.clone().add(x+(q?-1:1),g);return+(-(x+(b-T)/(q?T-V:V-T))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y:I,w:c,d:h,D:C,h:i,m:u,s,ms:o,Q:E}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},y="en",p={};p[y]=D;var m=function(A){return A instanceof M},S=function A(k,b,x){var T;if(!k)return y;if(typeof k=="string"){var q=k.toLowerCase();p[q]&&(T=q),b&&(p[q]=b,T=q);var V=k.split("-");if(!T&&V.length>1)return A(V[0])}else{var F=k.name;p[F]=k,T=F}return!x&&T&&(y=T),T||!x&&y},O=function(A,k){if(m(A))return A.clone();var b=typeof k=="object"?k:{};return b.date=A,b.args=arguments,new M(b)},w=N;w.l=S,w.i=m,w.w=function(A,k){return O(A,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var M=function(){function A(b){this.$L=S(b.locale,null,!0),this.parse(b)}var k=A.prototype;return k.parse=function(b){this.$d=function(x){var T=x.date,q=x.utc;if(T===null)return new Date(NaN);if(w.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var V=T.match(j);if(V){var F=V[2]-1||0,L=(V[7]||"0").substring(0,3);return q?new Date(Date.UTC(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)):new Date(V[1],F,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)}}return new Date(T)}(b),this.$x=b.x||{},this.init()},k.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},k.$utils=function(){return w},k.isValid=function(){return this.$d.toString()!==$},k.isSame=function(b,x){var T=O(b);return this.startOf(x)<=T&&T<=this.endOf(x)},k.isAfter=function(b,x){return O(b)<this.startOf(x)},k.isBefore=function(b,x){return this.endOf(x)<O(b)},k.$g=function(b,x,T){return w.u(b)?this[x]:this.set(T,b)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(b,x){var T=this,q=!!w.u(x)||x,V=w.p(b),F=function(ee,J){var ge=w.w(T.$u?Date.UTC(T.$y,J,ee):new Date(T.$y,J,ee),T);return q?ge:ge.endOf(h)},L=function(ee,J){return w.w(T.toDate()[ee].apply(T.toDate("s"),(q?[0,0,0,0]:[23,59,59,999]).slice(J)),T)},P=this.$W,H=this.$M,G=this.$D,W="set"+(this.$u?"UTC":"");switch(V){case I:return q?F(1,0):F(31,11);case g:return q?F(1,H):F(0,H+1);case c:var he=this.$locale().weekStart||0,re=(P<he?P+7:P)-he;return F(q?G-re:G+(6-re),H);case h:case C:return L(W+"Hours",0);case i:return L(W+"Minutes",1);case u:return L(W+"Seconds",2);case s:return L(W+"Milliseconds",3);default:return this.clone()}},k.endOf=function(b){return this.startOf(b,!1)},k.$set=function(b,x){var T,q=w.p(b),V="set"+(this.$u?"UTC":""),F=(T={},T[h]=V+"Date",T[C]=V+"Date",T[g]=V+"Month",T[I]=V+"FullYear",T[i]=V+"Hours",T[u]=V+"Minutes",T[s]=V+"Seconds",T[o]=V+"Milliseconds",T)[q],L=q===h?this.$D+(x-this.$W):x;if(q===g||q===I){var P=this.clone().set(C,1);P.$d[F](L),P.init(),this.$d=P.set(C,Math.min(this.$D,P.daysInMonth())).$d}else F&&this.$d[F](L);return this.init(),this},k.set=function(b,x){return this.clone().$set(b,x)},k.get=function(b){return this[w.p(b)]()},k.add=function(b,x){var T,q=this;b=Number(b);var V=w.p(x),F=function(H){var G=O(q);return w.w(G.date(G.date()+Math.round(H*b)),q)};if(V===g)return this.set(g,this.$M+b);if(V===I)return this.set(I,this.$y+b);if(V===h)return F(1);if(V===c)return F(7);var L=(T={},T[u]=n,T[i]=l,T[s]=r,T)[V]||1,P=this.$d.getTime()+b*L;return w.w(P,this)},k.subtract=function(b,x){return this.add(-1*b,x)},k.format=function(b){var x=this,T=this.$locale();if(!this.isValid())return T.invalidDate||$;var q=b||"YYYY-MM-DDTHH:mm:ssZ",V=w.z(this),F=this.$H,L=this.$m,P=this.$M,H=T.weekdays,G=T.months,W=function(J,ge,Ce,Oe){return J&&(J[ge]||J(x,q))||Ce[ge].slice(0,Oe)},he=function(J){return w.s(F%12||12,J,"0")},re=T.meridiem||function(J,ge,Ce){var Oe=J<12?"AM":"PM";return Ce?Oe.toLowerCase():Oe},ee={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:w.s(P+1,2,"0"),MMM:W(T.monthsShort,P,G,3),MMMM:W(G,P),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:W(T.weekdaysMin,this.$W,H,2),ddd:W(T.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(F),HH:w.s(F,2,"0"),h:he(1),hh:he(2),a:re(F,L,!0),A:re(F,L,!1),m:String(L),mm:w.s(L,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:V};return q.replace(v,function(J,ge){return ge||ee[J]||V.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(b,x,T){var q,V=w.p(x),F=O(b),L=(F.utcOffset()-this.utcOffset())*n,P=this-F,H=w.m(this,F);return H=(q={},q[I]=H/12,q[g]=H,q[E]=H/3,q[c]=(P-L)/6048e5,q[h]=(P-L)/864e5,q[i]=P/l,q[u]=P/n,q[s]=P/r,q)[V]||P,T?H:w.a(H)},k.daysInMonth=function(){return this.endOf(g).$D},k.$locale=function(){return p[this.$L]},k.locale=function(b,x){if(!b)return this.$L;var T=this.clone(),q=S(b,x,!0);return q&&(T.$L=q),T},k.clone=function(){return w.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},A}(),B=M.prototype;return O.prototype=B,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",h],["$M",g],["$y",I],["$D",C]].forEach(function(A){B[A[1]]=function(k){return this.$g(k,A[0],A[1])}}),O.extend=function(A,k){return A.$i||(A(k,M,O),A.$i=!0),O},O.locale=S,O.isDayjs=m,O.unix=function(A){return O(1e3*A)},O.en=p[y],O.Ls=p,O.p={},O})})(pr);const Ee=pr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,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]+/,u={},i=function($){return($=+$)+($>68?1900:2e3)},h=function($){return function(j){this[$]=+j}},c=[/[+-]\d\d:?(\d\d)?|Z/,function($){(this.zone||(this.zone={})).offset=function(j){if(!j||j==="Z")return 0;var v=j.match(/([+-]|\d\d)/g),D=60*v[1]+(+v[2]||0);return D===0?0:v[0]==="+"?-D:D}($)}],g=function($){var j=u[$];return j&&(j.indexOf?j:j.s.concat(j.f))},E=function($,j){var v,D=u.meridiem;if(D){for(var R=1;R<=24;R+=1)if($.indexOf(D(R,0,j))>-1){v=R>12;break}}else v=$===(j?"pm":"PM");return v},I={A:[s,function($){this.afternoon=E($,!1)}],a:[s,function($){this.afternoon=E($,!0)}],S:[/\d/,function($){this.milliseconds=100*+$}],SS:[l,function($){this.milliseconds=10*+$}],SSS:[/\d{3}/,function($){this.milliseconds=+$}],s:[o,h("seconds")],ss:[o,h("seconds")],m:[o,h("minutes")],mm:[o,h("minutes")],H:[o,h("hours")],h:[o,h("hours")],HH:[o,h("hours")],hh:[o,h("hours")],D:[o,h("day")],DD:[l,h("day")],Do:[s,function($){var j=u.ordinal,v=$.match(/\d+/);if(this.day=v[0],j)for(var D=1;D<=31;D+=1)j(D).replace(/\[|\]/g,"")===$&&(this.day=D)}],M:[o,h("month")],MM:[l,h("month")],MMM:[s,function($){var j=g("months"),v=(g("monthsShort")||j.map(function(D){return D.slice(0,3)})).indexOf($)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function($){var j=g("months").indexOf($)+1;if(j<1)throw new Error;this.month=j%12||j}],Y:[/[+-]?\d+/,h("year")],YY:[l,function($){this.year=i($)}],YYYY:[/\d{4}/,h("year")],Z:c,ZZ:c};function C($){var j,v;j=$,v=u&&u.formats;for(var D=($=j.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,w,M){var B=M&&M.toUpperCase();return w||v[M]||r[M]||v[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,k,b){return k||b.slice(1)})})).match(n),R=D.length,N=0;N<R;N+=1){var y=D[N],p=I[y],m=p&&p[0],S=p&&p[1];D[N]=S?{regex:m,parser:S}:y.replace(/^\[|\]$/g,"")}return function(O){for(var w={},M=0,B=0;M<R;M+=1){var A=D[M];if(typeof A=="string")B+=A.length;else{var k=A.regex,b=A.parser,x=O.slice(B),T=k.exec(x)[0];b.call(w,T),O=O.replace(T,"")}}return function(q){var V=q.afternoon;if(V!==void 0){var F=q.hours;V?F<12&&(q.hours+=12):F===12&&(q.hours=0),delete q.afternoon}}(w),w}}return function($,j,v){v.p.customParseFormat=!0,$&&$.parseTwoDigitYear&&(i=$.parseTwoDigitYear);var D=j.prototype,R=D.parse;D.parse=function(N){var y=N.date,p=N.utc,m=N.args;this.$u=p;var S=m[1];if(typeof S=="string"){var O=m[2]===!0,w=m[3]===!0,M=O||w,B=m[2];w&&(B=m[2]),u=this.$locale(),!O&&B&&(u=v.Ls[B]),this.$d=function(x,T,q){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*x);var V=C(T)(x),F=V.year,L=V.month,P=V.day,H=V.hours,G=V.minutes,W=V.seconds,he=V.milliseconds,re=V.zone,ee=new Date,J=P||(F||L?1:ee.getDate()),ge=F||ee.getFullYear(),Ce=0;F&&!L||(Ce=L>0?L-1:ee.getMonth());var Oe=H||0,Dt=G||0,qt=W||0,Bt=he||0;return re?new Date(Date.UTC(ge,Ce,J,Oe,Dt,qt,Bt+60*re.offset*1e3)):q?new Date(Date.UTC(ge,Ce,J,Oe,Dt,qt,Bt)):new Date(ge,Ce,J,Oe,Dt,qt,Bt)}catch{return new Date("")}}(y,S,p),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),M&&y!=this.format(S)&&(this.$d=new Date("")),u={}}else if(S instanceof Array)for(var A=S.length,k=1;k<=A;k+=1){m[1]=S[k-1];var b=v.apply(this,m);if(b.isValid()){this.$d=b.$d,this.$L=b.$L,this.init();break}k===A&&(this.$d=new Date(""))}else R.call(this,N)}}})})(br);const _o=br.exports;var Sr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n,l){var o=n.prototype,s=o.format;l.en.ordinal=function(u){var i=["th","st","nd","rd"],h=u%100;return"["+u+(i[(h-20)%10]||i[h]||i[0])+"]"},o.format=function(u){var i=this,h=this.$locale();if(!this.isValid())return s.bind(this)(u);var c=this.$utils(),g=(u||"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(E){switch(E){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return h.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return h.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),E==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),E==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),E==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return E}});return s.bind(this)(g)}}})})(Sr);const Ho=Sr.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n,l){var o=n.prototype,s=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,E,I,C,$){var j=g.name?g:g.$locale(),v=s(j[E]),D=s(j[I]),R=v||D.map(function(y){return y.slice(0,C)});if(!$)return R;var N=j.weekStart;return R.map(function(y,p){return R[(p+(N||0))%7]})},i=function(){return l.Ls[l.locale()]},h=function(g,E){return g.formats[E]||function(I){return I.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,$,j){return $||j.slice(1)})}(g.formats[E.toUpperCase()])},c=function(){var g=this;return{months:function(E){return E?E.format("MMMM"):u(g,"months")},monthsShort:function(E){return E?E.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(E){return E?E.format("dddd"):u(g,"weekdays")},weekdaysMin:function(E){return E?E.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(E){return E?E.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(E){return h(g.$locale(),E)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},l.localeData=function(){var g=i();return{firstDayOfWeek:function(){return g.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(E){return h(g,E)},meridiem:g.meridiem,ordinal:g.ordinal}},l.months=function(){return u(i(),"months")},l.monthsShort=function(){return u(i(),"monthsShort","months",3)},l.weekdays=function(g){return u(i(),"weekdays",null,null,g)},l.weekdaysShort=function(g){return u(i(),"weekdaysShort","weekdays",3,g)},l.weekdaysMin=function(g){return u(i(),"weekdaysMin","weekdays",2,g)}}})})(wr);const Ko=wr.exports;var $r={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){var r="week",n="year";return function(l,o,s){var u=o.prototype;u.week=function(i){if(i===void 0&&(i=null),i!==null)return this.add(7*(i-this.week()),"day");var h=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(h),g=s(this).endOf(r);if(c.isBefore(g))return 1}var E=s(this).startOf(n).date(h).startOf(r).subtract(1,"millisecond"),I=this.diff(E,r,!0);return I<0?s(this).startOf("week").week():Math.ceil(I)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}})})($r);const zo=$r.exports;var vr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,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}}})})(vr);const Go=vr.exports;var Er={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,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")}}})})(Er);const Wo=Er.exports;var Cr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n){n.prototype.isSameOrAfter=function(l,o){return this.isSame(l,o)||this.isAfter(l,o)}}})})(Cr);const Yo=Cr.exports;var Or={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(be,function(){return function(r,n){n.prototype.isSameOrBefore=function(l,o){return this.isSame(l,o)||this.isBefore(l,o)}}})})(Or);const Uo=Or.exports;Ee.extend(Ko),Ee.extend(Ho),Ee.extend(_o),Ee.extend(zo),Ee.extend(Go),Ee.extend(Wo),Ee.extend(Yo),Ee.extend(Uo);const Nr=10;function Xo(e,t){return e>t&&e>Nr?"horizontal":t>e&&t>Nr?"vertical":""}function Zo(){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),u=a.ref(0),i=a.ref(0),h=a.ref(0),c=a.ref(""),g=()=>c.value==="vertical",E=()=>c.value==="horizontal",I=()=>{s.value=0,u.value=0,i.value=0,h.value=0,c.value="",r.value=0};return{move:j=>{const v=j.touches[0];s.value=v.clientX-e.value,u.value=v.clientY-t.value,l.value=v.clientX,o.value=v.clientY,i.value=Math.abs(s.value),h.value=Math.abs(u.value),n.value=Date.now()-r.value,c.value||(c.value=Xo(i.value,h.value))},start:j=>{I(),e.value=j.touches[0].clientX,t.value=j.touches[0].clientY,r.value=Date.now()},reset:I,startX:e,startY:t,startTime:r,duration:n,moveX:l,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:h,direction:c,isVertical:g,isHorizontal:E}}const Jo=[hn,gn,mn,yn,Sn,oe,Cn,On,ct,xn,Rn,kn,Dn,Bn,Kn,Gn,Un,Zn,Qn,nr,lr,sr,cr,dr,hr,Mt,ut,mr,yr],Qo=new Qr(Jo,[na],"4.0.0");Object.defineProperty(f,"clone",{enumerable:!0,get:()=>_.clone}),Object.defineProperty(f,"extend",{enumerable:!0,get:()=>_.extend}),Object.defineProperty(f,"isArray",{enumerable:!0,get:()=>_.isArray}),Object.defineProperty(f,"isDate",{enumerable:!0,get:()=>_.isDate}),Object.defineProperty(f,"isESModule",{enumerable:!0,get:()=>_.isESModule}),Object.defineProperty(f,"isEqual",{enumerable:!0,get:()=>_.isEqual}),Object.defineProperty(f,"isFunction",{enumerable:!0,get:()=>_.isFunction}),Object.defineProperty(f,"isMap",{enumerable:!0,get:()=>_.isMap}),Object.defineProperty(f,"isObject",{enumerable:!0,get:()=>_.isObject}),Object.defineProperty(f,"isPlainObject",{enumerable:!0,get:()=>_.isPlainObject}),Object.defineProperty(f,"isPromise",{enumerable:!0,get:()=>_.isPromise}),Object.defineProperty(f,"isSet",{enumerable:!0,get:()=>_.isSet}),Object.defineProperty(f,"isString",{enumerable:!0,get:()=>_.isString}),Object.defineProperty(f,"isSymbol",{enumerable:!0,get:()=>_.isSymbol}),Object.defineProperty(f,"toBoolean",{enumerable:!0,get:()=>_.toBoolean}),Object.defineProperty(f,"toNumber",{enumerable:!0,get:()=>_.toNumber}),Object.defineProperty(f,"toTypeString",{enumerable:!0,get:()=>_.toTypeString}),Object.defineProperty(f,"FoxAffix",{enumerable:!0,get:()=>d.ElAffix}),Object.defineProperty(f,"FoxAlert",{enumerable:!0,get:()=>d.ElAlert}),Object.defineProperty(f,"FoxAside",{enumerable:!0,get:()=>d.ElAside}),Object.defineProperty(f,"FoxAutoResizer",{enumerable:!0,get:()=>d.ElAutoResizer}),Object.defineProperty(f,"FoxAutocomplete",{enumerable:!0,get:()=>d.ElAutocomplete}),Object.defineProperty(f,"FoxAvatar",{enumerable:!0,get:()=>d.ElAvatar}),Object.defineProperty(f,"FoxBacktop",{enumerable:!0,get:()=>d.ElBacktop}),Object.defineProperty(f,"FoxBadge",{enumerable:!0,get:()=>d.ElBadge}),Object.defineProperty(f,"FoxBreadcrumb",{enumerable:!0,get:()=>d.ElBreadcrumb}),Object.defineProperty(f,"FoxBreadcrumbItem",{enumerable:!0,get:()=>d.ElBreadcrumbItem}),Object.defineProperty(f,"FoxButton",{enumerable:!0,get:()=>d.ElButton}),Object.defineProperty(f,"FoxButtonGroup",{enumerable:!0,get:()=>d.ElButtonGroup}),Object.defineProperty(f,"FoxCalendar",{enumerable:!0,get:()=>d.ElCalendar}),Object.defineProperty(f,"FoxCard",{enumerable:!0,get:()=>d.ElCard}),Object.defineProperty(f,"FoxCarousel",{enumerable:!0,get:()=>d.ElCarousel}),Object.defineProperty(f,"FoxCarouselItem",{enumerable:!0,get:()=>d.ElCarouselItem}),Object.defineProperty(f,"FoxCascader",{enumerable:!0,get:()=>d.ElCascader}),Object.defineProperty(f,"FoxCascaderPanel",{enumerable:!0,get:()=>d.ElCascaderPanel}),Object.defineProperty(f,"FoxCheckTag",{enumerable:!0,get:()=>d.ElCheckTag}),Object.defineProperty(f,"FoxCheckbox",{enumerable:!0,get:()=>d.ElCheckbox}),Object.defineProperty(f,"FoxCheckboxButton",{enumerable:!0,get:()=>d.ElCheckboxButton}),Object.defineProperty(f,"FoxCheckboxGroup",{enumerable:!0,get:()=>d.ElCheckboxGroup}),Object.defineProperty(f,"FoxCol",{enumerable:!0,get:()=>d.ElCol}),Object.defineProperty(f,"FoxCollapse",{enumerable:!0,get:()=>d.ElCollapse}),Object.defineProperty(f,"FoxCollapseItem",{enumerable:!0,get:()=>d.ElCollapseItem}),Object.defineProperty(f,"FoxCollapseTransition",{enumerable:!0,get:()=>d.ElCollapseTransition}),Object.defineProperty(f,"FoxColorPicker",{enumerable:!0,get:()=>d.ElColorPicker}),Object.defineProperty(f,"FoxConfigProvider",{enumerable:!0,get:()=>d.ElConfigProvider}),Object.defineProperty(f,"FoxContainer",{enumerable:!0,get:()=>d.ElContainer}),Object.defineProperty(f,"FoxDatePicker",{enumerable:!0,get:()=>d.ElDatePicker}),Object.defineProperty(f,"FoxDescriptions",{enumerable:!0,get:()=>d.ElDescriptions}),Object.defineProperty(f,"FoxDescriptionsItem",{enumerable:!0,get:()=>d.ElDescriptionsItem}),Object.defineProperty(f,"FoxDialog",{enumerable:!0,get:()=>d.ElDialog}),Object.defineProperty(f,"FoxDivider",{enumerable:!0,get:()=>d.ElDivider}),Object.defineProperty(f,"FoxDrawer",{enumerable:!0,get:()=>d.ElDrawer}),Object.defineProperty(f,"FoxDropdown",{enumerable:!0,get:()=>d.ElDropdown}),Object.defineProperty(f,"FoxDropdownItem",{enumerable:!0,get:()=>d.ElDropdownItem}),Object.defineProperty(f,"FoxDropdownMenu",{enumerable:!0,get:()=>d.ElDropdownMenu}),Object.defineProperty(f,"FoxEmpty",{enumerable:!0,get:()=>d.ElEmpty}),Object.defineProperty(f,"FoxFooter",{enumerable:!0,get:()=>d.ElFooter}),Object.defineProperty(f,"FoxForm",{enumerable:!0,get:()=>d.ElForm}),Object.defineProperty(f,"FoxFormItem",{enumerable:!0,get:()=>d.ElFormItem}),Object.defineProperty(f,"FoxHeader",{enumerable:!0,get:()=>d.ElHeader}),Object.defineProperty(f,"FoxIcon",{enumerable:!0,get:()=>d.ElIcon}),Object.defineProperty(f,"FoxImage",{enumerable:!0,get:()=>d.ElImage}),Object.defineProperty(f,"FoxImageViewer",{enumerable:!0,get:()=>d.ElImageViewer}),Object.defineProperty(f,"FoxInput",{enumerable:!0,get:()=>d.ElInput}),Object.defineProperty(f,"FoxInputNumber",{enumerable:!0,get:()=>d.ElInputNumber}),Object.defineProperty(f,"FoxLink",{enumerable:!0,get:()=>d.ElLink}),Object.defineProperty(f,"FoxMain",{enumerable:!0,get:()=>d.ElMain}),Object.defineProperty(f,"FoxMenu",{enumerable:!0,get:()=>d.ElMenu}),Object.defineProperty(f,"FoxMenuItem",{enumerable:!0,get:()=>d.ElMenuItem}),Object.defineProperty(f,"FoxMenuItemGroup",{enumerable:!0,get:()=>d.ElMenuItemGroup}),Object.defineProperty(f,"FoxOption",{enumerable:!0,get:()=>d.ElOption}),Object.defineProperty(f,"FoxOptionGroup",{enumerable:!0,get:()=>d.ElOptionGroup}),Object.defineProperty(f,"FoxPageHeader",{enumerable:!0,get:()=>d.ElPageHeader}),Object.defineProperty(f,"FoxPagination",{enumerable:!0,get:()=>d.ElPagination}),Object.defineProperty(f,"FoxPopconfirm",{enumerable:!0,get:()=>d.ElPopconfirm}),Object.defineProperty(f,"FoxPopover",{enumerable:!0,get:()=>d.ElPopover}),Object.defineProperty(f,"FoxPopper",{enumerable:!0,get:()=>d.ElPopper}),Object.defineProperty(f,"FoxProgress",{enumerable:!0,get:()=>d.ElProgress}),Object.defineProperty(f,"FoxRadio",{enumerable:!0,get:()=>d.ElRadio}),Object.defineProperty(f,"FoxRadioButton",{enumerable:!0,get:()=>d.ElRadioButton}),Object.defineProperty(f,"FoxRadioGroup",{enumerable:!0,get:()=>d.ElRadioGroup}),Object.defineProperty(f,"FoxRate",{enumerable:!0,get:()=>d.ElRate}),Object.defineProperty(f,"FoxResult",{enumerable:!0,get:()=>d.ElResult}),Object.defineProperty(f,"FoxRow",{enumerable:!0,get:()=>d.ElRow}),Object.defineProperty(f,"FoxScrollbar",{enumerable:!0,get:()=>d.ElScrollbar}),Object.defineProperty(f,"FoxSelect",{enumerable:!0,get:()=>d.ElSelect}),Object.defineProperty(f,"FoxSelectV2",{enumerable:!0,get:()=>d.ElSelectV2}),Object.defineProperty(f,"FoxSkeleton",{enumerable:!0,get:()=>d.ElSkeleton}),Object.defineProperty(f,"FoxSkeletonItem",{enumerable:!0,get:()=>d.ElSkeletonItem}),Object.defineProperty(f,"FoxSlider",{enumerable:!0,get:()=>d.ElSlider}),Object.defineProperty(f,"FoxSpace",{enumerable:!0,get:()=>d.ElSpace}),Object.defineProperty(f,"FoxStep",{enumerable:!0,get:()=>d.ElStep}),Object.defineProperty(f,"FoxSteps",{enumerable:!0,get:()=>d.ElSteps}),Object.defineProperty(f,"FoxSubMenu",{enumerable:!0,get:()=>d.ElSubMenu}),Object.defineProperty(f,"FoxSwitch",{enumerable:!0,get:()=>d.ElSwitch}),Object.defineProperty(f,"FoxTabPane",{enumerable:!0,get:()=>d.ElTabPane}),Object.defineProperty(f,"FoxTable",{enumerable:!0,get:()=>d.ElTable}),Object.defineProperty(f,"FoxTableColumn",{enumerable:!0,get:()=>d.ElTableColumn}),Object.defineProperty(f,"FoxTableV2",{enumerable:!0,get:()=>d.ElTableV2}),Object.defineProperty(f,"FoxTabs",{enumerable:!0,get:()=>d.ElTabs}),Object.defineProperty(f,"FoxTag",{enumerable:!0,get:()=>d.ElTag}),Object.defineProperty(f,"FoxTimePicker",{enumerable:!0,get:()=>d.ElTimePicker}),Object.defineProperty(f,"FoxTimeSelect",{enumerable:!0,get:()=>d.ElTimeSelect}),Object.defineProperty(f,"FoxTimeline",{enumerable:!0,get:()=>d.ElTimeline}),Object.defineProperty(f,"FoxTimelineItem",{enumerable:!0,get:()=>d.ElTimelineItem}),Object.defineProperty(f,"FoxTooltip",{enumerable:!0,get:()=>d.ElTooltip}),Object.defineProperty(f,"FoxTransfer",{enumerable:!0,get:()=>d.ElTransfer}),Object.defineProperty(f,"FoxTree",{enumerable:!0,get:()=>d.ElTree}),Object.defineProperty(f,"FoxTreeSelect",{enumerable:!0,get:()=>d.ElTreeSelect}),Object.defineProperty(f,"FoxTreeV2",{enumerable:!0,get:()=>d.ElTreeV2}),Object.defineProperty(f,"FoxUpload",{enumerable:!0,get:()=>d.ElUpload}),f.AutocompleteItem=Zn,f.Broadcast=vt,f.BroadcastKey=te,f.CascaderItem=Un,f.CheckboxItem=sr,f.Content=yn,f.DataItemsKey=Ae,f.DateItem=kn,f.DialogItem=hr,f.Domain=Ct,f.DomainKey=Se,f.ExtIcon=mr,f.FooterBar=mn,f.Group=Sn,f.HeaderBar=gn,f.HintText=ct,f.Indicator=yr,f.InputItem=xn,f.InputNumberItem=Gn,f.Item=oe,f.Mapping=Mt,f.MoneyItem=Kn,f.Page=hn,f.Price=ut,f.PriorityPolicy=at,f.RadioItem=lr,f.RateItem=cr,f.RowItem=On,f.SelectItem=Rn,f.SlotItem=Cn,f.SwitchItem=dr,f.TableItem=nr,f.TableMappingColumn=Qn,f.TimeItem=Dn,f.TimeSelectItem=Bn,f.UniqueID=$n,f.ValidateSchema=rn,f.ValidateSchemaKey=pe,f.clearNonNumber=Ir,f.compareTo=wt,f.createBroadcast=Xe,f.createValidateSchema=Je,f.debounce=Kr,f.decimalLength=Xt,f.default=Qo,f.defineBroadcast=Mr,f.defineDataItem=ln,f.defineDomain=Nt,f.defineItem=le,f.definePageState=on,f.deleteGlobalValidator=Fr,f.disabledProperty=fe,f.divide=St,f.excludeProps=ie,f.floatData=kr,f.getGlobalValidateCheckEvents=en,f.getGlobalValidateResetEvents=nn,f.getPageContentAreaHeight=nt,f.getPageContentAreaWidth=rt,f.getPageFooterAreaHeight=tt,f.getPageHeaderAreaHeight=et,f.getRootDomain=Ge,f.includeProps=jr,f.indexOf=Ar,f.integerLength=Ut,f.isBrowser=_e,f.isEmptyString=Q,f.isInnerPage=Gr,f.isNumberString=Yt,f.isRegExp=Wt,f.isSubPage=Wr,f.lastIndexOf=Rr,f.multiply=Kt,f.negate=zt,f.numberFormat=$t,f.property=Re,f.raf=Vr,f.readonlyProperty=ce,f.setGlobalValidateCheckEvents=Pr,f.setGlobalValidateHandler=qr,f.setGlobalValidateMessages=_r,f.setGlobalValidateResetEvents=Lr,f.setGlobalValidator=Br,f.throttle=Et,f.toPadding=ye,f.toPx=X,f.toPxDesc=z,f.toValue=U,f.unNumberFormat=Gt,f.updatePageState=xt,f.useBroadcast=Ke,f.useDomain=we,f.useExpose=ue,f.usePageState=Qe,f.usePosition=vn,f.useRect=st,f.useTouch=Zo,f.valueLength=He,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});