@fox-js/foxui-pc 4.0.1-6 → 4.0.1-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +2838 -2447
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(d,
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
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,_,Or,h,he){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Dec 08 2022 23:36:25 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Oe=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(Or);/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Ge(e,t="0"){let r=0,n=-1;e[0]=="-"&&(r++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(r++,n=2,t=t.substring(1),t.length),e=te(e),t=te(t),[e,t]=ht(te(e),te(t)),r==1&&(n==1?e=dt(e):t=dt(t));let a=qt(e,t);return r?r==2?"-"+te(a):e.length<a.length?te(a.substring(1)):"-"+te(dt(a)):te(a)}function dt(e){let t="",r=e.length,n=e.split(".")[1],a=n?n.length:0;for(let u=0;u<r;u++)e[u]>="0"&&e[u]<="9"?t+=9-parseInt(e[u]):t+=e[u];let i=a>0?"0."+new Array(a).join("0")+"1":"1";return qt(t,i)}function te(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function ht(e,t){let r=e.split("."),n=t.split("."),a=r[0].length,i=n[0].length;return a>i?n[0]=new Array(Math.abs(a-i)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(a-i)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,i=n[1]?n[1].length:0,(a||i)&&(a>i?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-i)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-i)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function qt(e,t){[e,t]=ht(e,t);let r="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let i=parseInt(e[a])+parseInt(t[a])+n;r=i%10+r,n=Math.floor(i/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 qe(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 a=e.split("."),i=a[0],u=a[1];if(t<0){if(t=-t,i.length<=t)return"0";{let c=i.substr(0,i.length-t);return e=c+"."+i.substr(i.length-t)+u,c=qe(e,0,r),(n?"-":"")+c+new Array(t+1).join("0")}}if(t==0)return i.length,Bt(a[1],i,n,r)?(n?"-":"")+gt(i):(n?"-":"")+i;if(a[1]){if(a[1].length<t)return(n?"-":"")+i+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+i+"."+new Array(t+1).join("0");u=a[1].substring(0,t);let s=a[1].substring(t);return s&&Bt(s,u,n,r)&&(u=gt(u),u.length>t)?(n?"-":"")+gt(i,parseInt(u[0]))+"."+u.substring(1):(n?"-":"")+i+"."+u}function Bt(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 a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)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 a=r;a>=0;a--){let i=parseInt(e[a])+t;i==10?(t=1,i=0):t=0,n+=i}return t&&(n+=t),n.split("").reverse().join("")}function mt(e,t){e=e.toString(),t=t.toString();let r=0;e[0]=="-"&&(r++,e=e.substr(1)),t[0]=="-"&&(r++,t=t.substr(1)),e=Be(e),t=Be(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let i=n+a;if(e=Be(e.replace(".","")),t=Be(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let u=t.length,s=0,c=[],o=u-1,h="";for(let g=0;g<u;g++)c[g]=e.length-1;for(let g=0;g<2*e.length;g++){let x=0;for(let j=t.length-1;j>=o&&j>=0;j--)c[j]>-1&&c[j]<e.length&&(x+=parseInt(e[c[j]--])*parseInt(t[j]));x+=s,s=Math.floor(x/10),h=x%10+h,o--}return h=Be($r(h,i)),r==1&&(h="-"+h),h}function $r(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Be(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function pt(e,t,r=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=te(t.replace(".","")),a>=0){let o=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(o==-1)e=te(e+new Array(a+1).join("0"));else if(a>o)e=e.replace(".",""),e=te(e+new Array(a-o+1).join("0"));else if(a<o){e=e.replace(".","");let h=e.length-o+a;e=te(e.substring(0,h)+"."+e.substring(h))}else a==o&&(e=te(e.replace(".","")))}let i=0,u=t.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(0,u+1):e.substring(0,u);if(e=e.indexOf(".")>-1&&e.indexOf(".")<u?e.substring(u+1):e.substring(u),c.indexOf(".")>-1){let o=c.length-c.indexOf(".")-1;c=c.replace(".",""),u>c.length&&(o+=u-c.length,c=c+new Array(u-c.length+1).join("0")),i=o,s="0."+new Array(o).join("0")}for(r=r+2;i<=r;){let o=0;for(;parseInt(c)>=parseInt(t);)c=Ge(c,"-"+t),o++;s+=o,e?(e[0]=="."&&(s+=".",i++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(i||(s+="."),i++,c=c+"0")}return(n==1?"-":"")+te(qe(s,r-2))}function yt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),Ge(e,t)}function bt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Pt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Lt(e),Lt(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=yt(e,mt(t,qe(pt(e,t),0,Z.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=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=te(r);let a="";r[0]=="-"&&(a="-",r=r.substring(1)),r.indexOf(".")>=0?(n=parseInt(n)+r.indexOf("."),r=r.replace(".","")):n=parseInt(n)+r.length,r.length<n?t=a+r+new Array(n-r.length+1).join("0"):r.length>=n&&n>0?t=a+te(r.substring(0,n))+(r.length>n?"."+r.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+r}return t}constructor(t="0"){this.value=K.validate(t)}getValue(){return this.value}static getPrettyValue(t,r,n){if(!(r||n))r=3,n=",";else if(!(r&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=K.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var i=t.indexOf(".");i=i>0?i:t.length;for(var u="",s=i;s>0;)s<r?(r=s,s=0):s-=r,u=t.substring(s,s+r)+(s<i-r&&s>=0?n:"")+u;return(a?"-":"")+u+t.substring(i)}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 qe(t,r,n)}round(t=0,r=Z.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(qe(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,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),Ge(t,r)}add(t){return new K(Ge(this.value,t.getValue()))}static subtract(t,r){return t=K.validate(t),r=K.validate(r),yt(t,r)}subtract(t){return new K(yt(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),pt(t,r,n)}divide(t,r){return new K(pt(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 wt(e,t,r=8){return K.divide(`${e}`,`${t}`,r)}function St(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,a=","){let i=`${e}`;if(i.length==0||i==="-")return"";let u=i.charAt(0);u=="-"?i=i.substring(1):u="";let s=i,c="",o=i.indexOf(".");o!=-1&&(s=i.substring(0,o),c=i.substring(o+1)),t!=-1&&(t<c.length?c=c.substring(0,t):r&&t>c.length&&(c=c.padEnd(t,"0")));let h;if(n>0){let g="",x=s.split("").reverse();for(let j=0;j<x.length;j++)g+=x[j]+((j+1)%n==0&&j+1!=x.length?a:"");c.length==0?h=`${u}${g.split("").reverse().join("")}`:h=`${u}${g.split("").reverse().join("")}.${c}`}else c.length==0?h=`${u}${s}`:h=`${u}${s}.${c}`;return h}function zt(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Pe=typeof window<"u",Er=Pe&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function Gt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const X=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Wt(e){return X(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),X(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Yt(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Ut(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Zt(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function vr(e,t=!0,r=!0){t?e=Zt(e,".",/\./g):e=e.replace(/\./g,""),r?e=Zt(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Or(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(L.isEqual(e,r))return!0}):t.indexOf(e)}function Cr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(L.isEqual(e,n))return!0});return r!==-1&&(r=t.length-1-r),r}return t.lastIndexOf(e)}function We(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function xr(e,...t){const r={};return t.forEach(n=>{for(const a in n)r[a]=e[a]}),r}function ie(e,...t){const r=[];t.forEach(a=>{Reflect.apply([].push,r,Reflect.ownKeys(a))});const n={};for(const a in e)r.includes(a)||(n[a]=e[a]);return n}const Vr=(e,t,r)=>{const n=Object.assign({},e),a=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(i=>{a.hasOwnProperty(i)?(typeof a[i]=="function"&&(n[i]=a[i](t)),typeof a[i]=="string"&&(n[i]=t[a[i]])):t[i]&&(n[i]=t[i])}),n):e},J=Symbol("BroadcastKey");class Et{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):Gt(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const i=[];if(a){const u=this.callbacks.get(r);if(typeof u=="function"){const c=Reflect.apply(u,this.proxy,[...n]);c!=null&&i.push(c)}const s=this.proxy??{};if(typeof s[r]=="function"){const c=Reflect.apply(s[r],s,[...n]);c!=null&&i.push(c)}}return this.children.forEach(u=>{const s=Reflect.apply(u.emit,u,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,i,[...s])}),i}emitToChildren(t,r,...n){const a=[];return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},r,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}on(t,r){this.callbacks.set(t,r)}}function Ye(e,t,r,n){const a=new Et(t,e,r);if(n&&typeof n=="object")for(const i in n)a.on(i,n[i]);return a}function Tr(e,t,r){const n=r;if(n[J])return n[J];const a=l.inject(J,null),i=new Et(a,r,e);if(t&&typeof t=="object")for(const u in t)i.on(u,t[u]);return n[J]=i,l.provide(J,i),l.onUnmounted(()=>{i.destroy(),n[J]=void 0}),i}function Le(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[J]??l.inject(J,null):l.inject(J,null)}class Nr{error(t,r){const n=r,a=Le(r);a?a.emit({name:"*"},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const r=t,n=Le(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}success(t){const r=t,n=Le(t);n?n.emit({name:"*"},"setErrorTip",""):typeof r.setErrorTip=="function"&&r.setErrorTip("")}decorate(t,r,n){Array.isArray(t)||(t=[t]);const a=n,i=Le(n),u=r.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=t.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!u&&s?i?i.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):u&&!s&&(i?i.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Xt=new Nr;function Ar(e){Xt=e}function Ir(e,t){Ce.default.setValidator(e,t)}function Rr(e){Ce.default.deleteValidator(e)}let Jt=["blur","clear"];function jr(e){Jt=e}function Qt(){return Jt}let en=["focus","change"];function Mr(e){en=e}function tn(){return en}function Dr(e){Ce.default.messages(e)}function _e(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const a=t.findIndex(i=>i.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Ue(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const pe=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=l.effectScope(),this.scope.run(()=>{l.watchEffect(()=>{const r=Ue(_e(this.attrRules,this.rules)),n=[];for(let i in t){let u=t[i];if(this.hasValidator(i,!0)){if(u===!1)continue;let c={type:i};u!==null&&typeof u=="object"&&Object.assign(c,u),n.push(c);continue}let s=this.getValidator(i);if(s!==null){let c={type:i,validator:s};n.push(c)}}this.attrRules=Ue(n);const a=_e(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(a,r)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...r){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...r]);const a=Xt;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...r]):null}decorate(t,r){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,r,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,r,n=!1){n?Ce.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?Ce.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Ce.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=_e(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ue(t):this.rules=Ue([t]);const n=_e(this.attrRules,this.rules);l.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=_e(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const a={[`${n}`]:r},i=this.getValue(),u={[`${n}`]:i},s=new Ce.default(a),c=this.proxy??u;return s.validate(u,{context:c}).then(h=>{if(h.pass)this.success();else{let g="error";Array.isArray(h.errors)&&h.errors.length>0&&(g=h.errors[0].message??g,h.errors=[h.errors[0]],h.errors[0].ref=c),this.error(g)}return h}).catch(h=>{const g=h.message??`${h}`;return this.error(g),h})}}return Promise.resolve({pass:!0})}}function Ze(e,t,r){if(r.valueName=r.valueName??"modelValue",r.valueType=r.valueType??"string",!r.validateHandler&&r.valueName!=="modelValue"){const a=r.valueName;r.validateHandler={getValue(i){return i[a]}}}return new nn(t,r,e)}const rn=Symbol("EventEmitterKey");class Fr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(i=>i===r);a!==-1&&n.splice(a,1)}}on(t,r){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(r)}emit(t,...r){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...r])}catch(i){console.error(i.message,i)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function kr(e,t){let r=0;return function(...n){const a=Date.now();a-r>t&&(Reflect.apply(e,{},[...n]),r=a)}}function vt(e,t){let r,n=null;return function(...a){n=a,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const be=Symbol("DomainKey"),Ae=Symbol("DataItemsKey");class Ot{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,r=[]){for(const n in t){const a=t[n];r.length>0&&r.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const r=this._props[t];if(r!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,r){this._props[t]=r}get(t,r){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?r:this.parent.get(t,r)}getForParent(t,r){return this.parent==null?r:this.parent.get(t,r)}getForSelf(t){return this._props[t]}getAll(t){const r=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];r.push(a)}n=n._parent}return r}}const qr=new Ot;function He(){return qr}function we(e=null){e||(e=l.getCurrentInstance());const t=e?.proxy;return t?t[be]??l.inject(be,null):l.inject(be,null)}const Ct=Symbol("OriginalDateKey");function xt(e,t,r=[],n){const a=l.getCurrentInstance(),i=a?.proxy;let u=l.inject(be,null);u===null&&(u=He());const s=e||t.prop||t.name,c=new Ot(s);c.parent=u;const o=E=>{i[Ct]||x(E),c.set("modelValue",E)},h=()=>c.getForSelf("modelValue")??null,g=()=>i[Ct]??null,x=E=>{const M={};L.extend(!0,M,l.toRaw(E)),i[Ct]=M};l.isReactive(t)?l.watchEffect(()=>{c.merge(t,r)}):c.merge(t,r),t.modelValue&&x(t.modelValue),i[be]=c,l.provide(be,c);let j=null,N=null;if(a!==null){const E=l.inject(J,null);j=Ye(i,E,s,n),c.broadcast=j,i[J]=j,l.provide(J,j),i.broadcast=(C,D,...v)=>Reflect.apply(j.emit,j,[C,D,...v]);const M=l.inject(pe,null);N=Ze(i,M,{componentName:""}),c.validateSchema=N,i[pe]=N,l.provide(pe,N),i[Ae]=new Map,i.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:y=>y?b.indexOf(y)!==-1:!1}}else if(C!=null&&typeof C=="object"){const b=C;if(Array.isArray(b.include)&&b.include.length>0){const y=b.include;v={name:w=>w?y.indexOf(w)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const y=b.exclude;v={name:w=>w?y.indexOf(w)===-1:!1}}}if(v){const b=j?.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 y=[];return b.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(y=[...y,...w.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},i.setNameValidateRules=(C,D=!0)=>{if(D){const v=Reflect.ownKeys(C),b=[...v],y={name:w=>{const V=v.includes(w);if(V){const T=b.findIndex(O=>w===O);T!==-1&&b.splice(T,1)}return V}};j?.emitToChildren(y,"setNameValidateRules",C,!1),b.length>0&&b.forEach(w=>{let V=String(w);const O=an(c,V,{componentName:"",fieldName:V,pureDataValidate:!0},j,N);i[Ae].set(V,O);const m=C[V];m&&O.validateSchema.setRule(m)})}},i.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:y=>y?b.indexOf(y)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const b=v.exclude;D={name:y=>y?b.indexOf(y)===-1:!1}}}D&&j?.emitToChildren(D,"clearValidate",!1)},i.resetFields=C=>{const D=h();if(!D)return;const v={};if(L.extend(!0,v,g()??{}),Array.isArray(C))C.forEach(b=>{D[b]=v[b]});else if(C&&Array.isArray(C.include))(C.include??[]).forEach(y=>{D[y]=v[y]});else if(C&&Array.isArray(C.exclude)){let b=C.exclude??[];Reflect.ownKeys(v).forEach(y=>{b.includes(y)||(D[y]=v[y])})}else Object.assign(D,v);i.clearValidate(C)},i.setModelValue=(C,D)=>{!D||D===s?o(C):j?.emitToChildren({name:D},"setModelValue",C)},i.getModelValue=()=>h()}return l.onUnmounted(()=>{c.destroy(),i[be]=void 0,i[Ae]&&(i[Ae].clear(),i[Ae]=void 0),j!==null&&(j.destroy(),i[J]=void 0),N!==null&&(N.destroy(),i[pe]=void 0)}),c}function re(e,t,r){const a=l.getCurrentInstance()?.proxy,i=t??"",u=l.inject(J,null),s=Ye(a,u,i,r);a[J]=s,l.provide(J,s),a.broadcast=(N,E,...M)=>Reflect.apply(s.emit,s,[N,E,...M]);const c=l.inject(pe,null);e.fieldName=e.fieldName??i;const o=Ze(a,c,e);a[pe]=o,l.provide(pe,o),a.validate=(N=null)=>{const E=[];if(!Array.isArray(N)||N.indexOf(i)!==-1){const C=o?.validate();E.push(C)}let M=null;if(N===!0)M={name:"*"};else if(Array.isArray(N)&&N.length>0){const C=N;M={name:D=>D?C.indexOf(D)!==-1:!1}}else if(N!=null&&typeof N=="object"){const C=N;if(Array.isArray(C.include)&&C.include.length>0){const D=C.include;M={name:v=>v?D.indexOf(v)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const D=C.exclude;M={name:v=>v?D.indexOf(v)===-1:!1}}}if(M){const C=s.emitToChildren(M,"validate",!1);Reflect.apply([].push,E,C)}return E.length==1?E[0]:E.length>1?Promise.all(E).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})},a.setValidateRule=N=>o?.setRule(N),a.setNameValidateRules=(N,E=!1)=>{const M=N[i];if(M&&o?.setRule(M),E){const C={name:D=>Reflect.ownKeys(N).includes(D)};s.emitToChildren(C,"setNameValidateRules",N,!1)}},a.clearValidate=(N=null)=>{(!Array.isArray(N)||N.indexOf(t??"")!==-1)&&o?.clear();let E=null;if(N===!0)E={name:"*"};else if(Array.isArray(N)&&N.length>0){const M=N;E={name:C=>C?M.indexOf(C)!==-1:!1}}else if(N!=null&&typeof N=="object"){const M=N;if(Array.isArray(M.include)&&M.include.length>0){const C=M.include;E={name:D=>D?C.indexOf(D)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const C=M.exclude;E={name:D=>D?C.indexOf(D)===-1:!1}}}E&&s.emitToChildren(E,"clearValidate",!1)};const h=new Fr(a);a[rn]=h;const g=vt((N="validate")=>{N==="reset"?o.clear():o.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Qt()).forEach(N=>{h.on(N,E=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:tn()).forEach(N=>{h.on(N,E=>{g("reset")})}),l.onUnmounted(()=>{s.destroy(),a[J]=void 0,o.destroy(),a[pe]=void 0,h.destroy(),a[rn]=void 0}),{broadcast:s,validateSchema:o,emitEvent:(N,...E)=>{Reflect.apply(h.emit,h,[N,...E])},onEvent:(N,E)=>{Reflect.apply(h.on,h,[E])},offEvent:(N,E)=>{Reflect.apply(h.off,h,[E])}}}function an(e,t,r,n,a){const i={},u=t??"";r.fieldName=u,r.validateHandler={getValue(o){const h=e.getForSelf("modelValue");return h?h[u]:null}};const s=Ze({},a,r);i.validate=(o=null)=>{const h=[];if(!Array.isArray(o)||o.indexOf(u)!==-1){const x=s?.validate();h.push(x)}let g=null;if(o===!0)g={name:"*"};else if(Array.isArray(o)&&o.length>0){const x=o;g={name:j=>j?x.indexOf(j)!==-1:!1}}else if(o!=null&&typeof o=="object"){const x=o;if(Array.isArray(x.include)&&x.include.length>0){const j=x.include;g={name:N=>N?j.indexOf(N)!==-1:!1}}else if(Array.isArray(x.exclude)&&x.exclude.length>0){const j=x.exclude;g={name:N=>N?j.indexOf(N)===-1:!1}}}if(g){const x=c.emitToChildren(g,"validate",!1);Reflect.apply([].push,h,x)}return h.length==1?h[0]:h.length>1?Promise.all(h).then(x=>{let j=[];return x.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(j=[...j,...N.errors])}),j.length>0?{pass:!1,errors:j}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=o=>s?.setRule(o),i.setNameValidateRules=o=>{const h=o[u];h&&s?.setRule(h)};const c=Ye(null,n,u,i);return{broadcast:c,validateSchema:s}}const U=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${Q(e,t)}px`:"";function Q(e,t=-1){if(typeof e=="number")return e<1?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let r=e.indexOf("px");if(r!==-1)return Number(e.substring(0,r));if(r=e.indexOf("rem"),r!==-1){let a=Number(e.substring(0,r)),i=1;if(Pe){const{fontSize:u}=window.getComputedStyle(document.documentElement,null),s=u.indexOf("px");s>0&&(i=Number(u.substring(0,s)))}return a*=i,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))*t;const n=Number(e);return isNaN(n)?0:n}const Se="PageStateKey";function he(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=Q(e.top)),e.left!==null&&e.left!==void 0&&(t.left=Q(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=Q(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=Q(e.right))),t}function Vt(e,t,r={},n=!0,a=-1,i=-1,u=0,s=0){e.headerHeight=Q(r.headerHeight??t.headerHeight),e.headerPadding=he(r.headerPadding??t.headerPadding),e.footerHeight=Q(r.footerHeight??t.footerHeight),e.footerPadding=he(r.footerPadding??t.footerPadding),e.contentPadding=he(r.contentPadding??t.contentPadding),n&&(e.height=Q(r.height??t.height,i)-Q(u,i)-Q(s,i),e.width=Q(r.width??t.width,a))}function ln(e,t={}){const r={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...r},footerHeight:0,footerPadding:{...r},contentPadding:{...r},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=Q(a.top),n.safeAreaBottom=Q(a.bottom),n.safeAreaLeft=Q(a.left),n.safeAreaRight=Q(a.right));const i=e.get("pageLayout");if(!i)return null;const u=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,o=e.get("footerBarHeight")??0;Vt(n,i,t,!0,u,s,c,o);const h=l.reactive(n),g=e.getForParent(Se);g&&(n.height=et(e,g),n.width=tt(e,g),l.watch([()=>g.height,()=>g.width,()=>g.contentPadding,()=>g.headerMounted,()=>g.footerMounted],()=>{h.height=et(e,g),h.width=tt(e,g)}));const x=!g;return l.watch([()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([j,N=-1,E=-1,M=0,C=0])=>{Vt(h,j,t,x,N,E,M,C)}),e.set(Se,h),h}function Xe(e){return e.get(Se)}function Je(e,t){return t=t??e.get(Se),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function Qe(e,t){return t=t??e.get(Se),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function et(e,t){if(t=t??e.get(Se),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(Se),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Br(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Pr(e){return!!e.getForParent(Se)}var nt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(nt||{});function Tt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ie(e,t,r=1,n){const a=we();return a==null?e:r===0?l.computed(()=>{const i=a.getAll(t);for(let s=i.length-1;s>=0;s--){const c=i[s];if(Tt(c,n))return c}const u=e.value;return Tt(u,n)?u:null}):l.computed(()=>{const i=e.value;return Tt(i,n)?i:a?.get(t)})}function ue(e){return Ie(e,"readonly",0,function(r){return L.toBoolean(r)})}function ce(e){return Ie(e,"disabled",0,function(r){return L.toBoolean(r)})}function Y(e,t="modelValue",r){const n=l.toRef(e,t);let a=n.value;typeof r=="function"&&(a=r(n.value));const i=l.ref(a);return l.watch(n,u=>{if(typeof r=="function"){const s=r(u);s!==i.value&&(i.value=s)}else u!==i.value&&(i.value=u)}),i}const on=new Map,rt=new Map;let Nt=null;function Lr(e){Nt=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 xe(e,t,r){!r&&Nt&&(r=Nt(e)??void 0);let n=null;if(r){let a=rt.get(r);a&&(n=a.get(t))}return n||(n=on.get(t)),n}function _r(e,t){for(let r in e){const n=e[r];sn(r,n,t)}}function Hr(e){rt.delete(e)}function Kr(){return{top:0,left:0,bottom:0,right:0}}function zr(){if(Pe){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{width:e,height:t,headerHeight:44,footerHeight:44}}else return{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}class Gr{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(i=>{i.install?t.use(i):i.name&&t.component(i.name,i)}),this.installers.forEach(i=>{i(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=He();if(this.initPageLayout(r,a),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const i=vt(()=>{const s={...r},c=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=o,this.initPageLayout(s,a)},150);new window.ResizeObserver(i).observe(window.document.body)}for(const i in r)n.indexOf(i)===-1&&a.set(i,r[i])}initPageLayout(t,r){const n=L.extend({},Kr(),t.safeAreaInset),a=L.extend({},zr(),t.pageLayout);r=r??He(),r.set("safeAreaInset",n),r.set("headerBarHeight",t.headerBarHeight??0),r.set("footerBarHeight",t.footerBarHeight??0),r.set("pageLayout",a),r.set("rootWidth",a.width),r.set("rootHeight",a.height)}setScopeGetter(t){Lr(t)}setAPI(t,r,n){sn(t,r,n)}getAPI(t,r,n){return xe(t,r,n)}batchSetAPI(t,r){_r(t,r)}clearScopeAPI(t){Hr(t)}getRootDomain(){return He()}}const Wr=[f.ElAffix,f.ElAlert,f.ElAutocomplete,f.ElAutoResizer,f.ElAvatar,f.ElBacktop,f.ElBadge,f.ElBreadcrumb,f.ElBreadcrumbItem,f.ElButton,f.ElButtonGroup,f.ElCalendar,f.ElCard,f.ElCarousel,f.ElCarouselItem,f.ElCascader,f.ElCascaderPanel,f.ElCheckTag,f.ElCheckbox,f.ElCheckboxButton,f.ElCheckboxGroup,f.ElCol,f.ElCollapse,f.ElCollapseItem,f.ElCollapseTransition,f.ElColorPicker,f.ElConfigProvider,f.ElContainer,f.ElAside,f.ElFooter,f.ElHeader,f.ElMain,f.ElDatePicker,f.ElDescriptions,f.ElDescriptionsItem,f.ElDialog,f.ElDivider,f.ElDrawer,f.ElDropdown,f.ElDropdownItem,f.ElDropdownMenu,f.ElEmpty,f.ElForm,f.ElFormItem,f.ElIcon,f.ElImage,f.ElImageViewer,f.ElInput,f.ElInputNumber,f.ElLink,f.ElMenu,f.ElSubMenu,f.ElMenuItem,f.ElMenuItemGroup,f.ElPageHeader,f.ElPagination,f.ElPopconfirm,f.ElPopover,f.ElPopper,f.ElProgress,f.ElRadio,f.ElRadioButton,f.ElRadioGroup,f.ElRate,f.ElResult,f.ElRow,f.ElScrollbar,f.ElSelect,f.ElOption,f.ElOptionGroup,f.ElSelectV2,f.ElSkeleton,f.ElSkeletonItem,f.ElSlider,f.ElSpace,f.ElSteps,f.ElStep,f.ElSwitch,f.ElTable,f.ElTableColumn,f.ElTableV2,f.ElTabs,f.ElTabPane,f.ElTag,f.ElTimePicker,f.ElTimeSelect,f.ElTimeline,f.ElTimelineItem,f.ElTooltip,f.ElTransfer,f.ElTree,f.ElTreeSelect,f.ElTreeV2,f.ElUpload],Yr=[f.ElInfiniteScroll,f.ElLoading,f.ElMessage,f.ElMessageBox,f.ElNotification,f.ElPopoverDirective],Ur=e=>{Wr.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Yr.forEach(t=>{e.use(t)})};function W(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(r){return r.baseName=e,r.name=t,r.install=n=>{n.component(r.name,r)},l.defineComponent(r)},createDemo(r){return r.baseName=e,r.name="demo-"+e,l.defineComponent(r)}}}const ne={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},oe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},hasBorder:{type:Boolean,default:!0}},un={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},cn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0}},fn=[];for(const e in cn)fn.push(e);function se(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const Zr=Symbol.for("InnerPageScopeKey"),Xr=(e,t)=>({inheritAttrs:!0,props:{...ne,...un,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(r,n){const a=xt(r.name,r);if(a){const o=ln(a,r);se({getPageContentHeight:()=>et(a,o),getPageContentWidth:()=>tt(a,o),getPageHeaderHeight:()=>Je(a,o),getPageFooterHeight:()=>Qe(a,o)});const h=l.inject(Zr,!1);o&&h&&(o.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),u=l.computed(()=>({})),s=l.getCurrentInstance(),c=o=>{const h=s?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(o,!0)};return l.watch(()=>r.rules,(o,h)=>{if(!o&&!h)return;const g=l.toRaw(h),x=l.toRaw(o),j=x?Reflect.ownKeys(x):[];(g?Reflect.ownKeys(g):[]).forEach(E=>{j.includes(E)||(x[E]=[])}),c(x)},{deep:!0}),l.onMounted(()=>{if(r.rules){const o=l.toRaw(r.rules);c(o)}}),{classes:i,styles:u}}}),{componentName:Jr,create:Qr,scope:Fi}=W("page"),ea=Qr(Xr(Jr));function ta(e,t,r,n,a,i){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Ve=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},dn=Ve(ea,[["render",ta]]),na=(e,t)=>({props:{padding:{type:[Object],required:!1}},emits:[],setup(r,n){const a=we(),i=a?Xe(a):null;i&&(i.headerMounted=!0);const u=l.computed(()=>({[e]:!0})),s=l.computed(()=>{const o={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=he(r.padding??i.footerPadding);return Object.assign(o,h),o.height=i.headerHeight,o.safeAreaTop=i.safeAreaTop,o.safeAreaTop&&(o.top=o.safeAreaTop+(h.top??0),o.height=o.height+i.safeAreaTop),o.height,o.safeAreaTop,o}if(r.padding){const h=he(r.padding);Object.assign(o,h)}return o});l.onUnmounted(()=>{i&&(i.headerMounted=!1)});const c=l.computed(()=>{const o={};return s.value.height&&(o.height=`${s.value.height}px`),s.value.top&&(o.paddingTop=`${s.value.top}px`),s.value.left&&(o.paddingLeft=`${s.value.left}px`),s.value.right&&(o.paddingRight=`${s.value.right}px`),s.value.bottom&&(o.paddingBottom=`${s.value.bottom}px`),o});return{classes:u,styles:c}}}),{componentName:ra,create:aa,scope:ki}=W("header-bar"),la=aa(na(ra));function ia(e,t,r,n,a,i){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const hn=Ve(la,[["render",ia]]);function oa(e,t){return{props:{padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(r,n){const a=we(),i=a?Xe(a):null;i&&(i.footerMounted=!0);const u=l.computed(()=>{const o=e;let h=e;return r.align==="left"?h=`${h}__left`:r.align==="right"?h=`${h}__right`:h=`${h}__center`,{[o]:!0,[h]:!0}}),s=l.computed(()=>{const o={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=he(r.padding??i.footerPadding);return Object.assign(o,h),o.safeAreaBottom=i.safeAreaBottom,o.safeAreaBottom?(o.height=i.footerHeight+i.safeAreaBottom,o.bottom=o.safeAreaBottom+(h.bottom??0)):o.height=i.footerHeight,o.height,o.safeAreaBottom,o}if(r.padding){const h=he(r.padding);Object.assign(o,h)}return o});l.onUnmounted(()=>{i&&(i.footerMounted=!1)});const c=l.computed(()=>{const o={};return s.value.height&&(o.height=`${s.value.height}px`),s.value.top&&(o.paddingTop=`${s.value.top}px`),s.value.left&&(o.paddingLeft=`${s.value.left}px`),s.value.right&&(o.paddingRight=`${s.value.right}px`),s.value.bottom&&(o.paddingBottom=`${s.value.bottom}px`),o});return{classes:u,styles:c}}}}const{componentName:sa,create:ua,scope:qi}=W("footer-bar"),ca=ua(oa(sa));function fa(e,t,r,n,a,i){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const gn=Ve(ca,[["render",fa]]);function da(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=we(),a=l.computed(()=>({[e]:!0})),i=l.computed(()=>{const u={};if(n){const s=Xe(n);if(s){if(r.padding){const g=he(r.padding);Object.assign(s.contentPadding,g)}const c=Je(n,s),o=Qe(n,s);let h="";if(s.contentHeight?h=`${s.contentHeight}`:h=`${s.height}px`,s.contentPadding,u.height=h,s.contentPadding.top||c>0){const g=(s&&s.contentPadding&&s.contentPadding.top)??0;u.paddingTop=`${c+g}px`}if(s.contentPadding.bottom||o>0){const g=(s&&s.contentPadding&&s.contentPadding.bottom)??0;u.paddingBottom=`${o+g}px`}return s.contentPadding.left&&(u.paddingLeft=`${s.contentPadding.left}px`),s.contentPadding.right&&(u.paddingRight=`${s.contentPadding.right}px`),u}}if(r.padding){const s=he(r.padding);s.left&&(u.paddingLeft=`${s.left}px`),s.top&&(u.paddingTop=`${s.top}px`),s.right&&(u.paddingRight=`${s.right}px`),s.bottom&&(u.paddingBottom=`${s.bottom}px`)}return u});return{classes:a,styles:i}}}}const{componentName:ha,create:ga,scope:Bi}=W("content"),ma=ga(da(ha));function pa(e,t,r,n,a,i){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const mn=Ve(ma,[["render",pa]]),at="GroupStateKey",pn=Symbol.for("GroupScopeKey");function lt(){return l.inject(pn,!1)}function it(e=!0){l.provide(pn,e)}function ya(e,t={}){const r=e.get("width",-1),n={type:"form",width:r,column:-1,gutter:-1};Object.assign(n,t);const a=l.shallowRef(n),i=l.markRaw({layout:a,passport:0});return e.set(at,i),i}function yn(e,t,r=-1,n=-1,a=!1){const i=e.get(at);if(!i)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0);const s=u.minItemWidth??-1,c=()=>{const o=t===""||t===-1,h=Q(t);let g=L.toNumber(r);const x=Q(n);if(!o){let E=(h-(g-1)*x)/g;for(;s!==-1&&g>1&&E<s;)g--,E=(h-(g-1)*x)/g}let j=!1;const N=i.layout;N.value.width=t,N.value.column!==g&&(N.value.column=g,j=!0),N.value.gutter!==x&&(N.value.gutter=x,j=!0),j&&l.triggerRef(N)};if(a)c();else{const o=++i.passport;setTimeout(()=>{o===i.passport&&c()},50)}}function ot(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=L.toNumber(t),t===-1?100:100*t/e)}function ba(e){return e===window}const st=e=>{const t=l.unref(e);if(ba(t)){const r=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},Ke=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,wa=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const t=e.type,r=(t.props&&t.props.span&&t.props.span.default)??1;return typeof r=="function"?r():r}return e.props.span},Sa=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const r=e.type,n=(r.props&&r.props.offset&&r.props.offset.default)??0;return typeof n=="function"?n():n}const t=L.toNumber(e.props.offset);return t<0?0:t},$a=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"},Ea=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=L.toNumber(e.props.foxSubItemCount);return t<0?1:t};function va(e,t){return{props:{...ne,...un,...cn},setup(r,n){const a=xt(r.name,r,fn),i=ya(a,{type:r.type}),u=lt();it(!0);const s=l.getCurrentInstance(),c=b=>{const y=s?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(b,!0)};l.watch(()=>r.rules,(b,y)=>{if(!b&&!y)return;const w=l.toRaw(y),V=l.toRaw(b),T=V?Reflect.ownKeys(V):[];(w?Reflect.ownKeys(w):[]).forEach(m=>{T.includes(m)||(V[m]=[])}),c(V)},{deep:!0}),l.onMounted(()=>{if(r.rules){const b=l.toRaw(r.rules);c(b)}});const o=e,h=l.computed(()=>{const b={};if(u&&a){const y=ot(a,!0);if(y.value.type!=="flex")return{};if(r.width){const T=U(r.width);b.width=T}else{const T=$e(y.value.column,r.span);T>0&&(b.width=`${T}%`)}if(r.height){const T=U(r.height);b.height=T}const w=$e(y.value.column,r.offset);w>0&&(b["margin-left"]=`${w}%`);const V=y.value.gutter/2;V>0&&(b["padding-left"]=`${V}px`,b["padding-right"]=`${V}px`)}else{if(r.width){const y=U(r.width);b.width=y}if(r.height){const y=U(r.height);b.height=y}}return b}),g=l.computed(()=>r.type==="flex"?{[`${Ke("",r.type)}`]:!0,[`${Ke("justify",r.justify)}`]:!0,[`${Ke("align",r.align)}`]:!0,[`${Ke("flex",r.flexWrap)}`]:!0,[`${o}__gutter`]:!0}:{[`${Ke("",r.type)}`]:!0,[`${o}__gutter`]:!0}),x=l.toRef(r,"title"),j=l.toRef(r,"gutter"),N=l.toRef(r,"column"),E=l.computed(()=>u?!0:r.isWrap),M=l.ref([]),C=b=>{M.value.push(b)},D=l.ref(-1);if(yn(a,D.value,N.value,j.value,!0),r.autoLayout){l.watch([D,N,j],([y,w,V])=>{yn(a,y,w,V,!1)});let b=null;l.onMounted(()=>{if(Pe&&M.value&&M.value.length>0){const y=M.value[0];D.value=st(y).width,window.ResizeObserver&&(b=new window.ResizeObserver(()=>{const w=st(y).width;w>0&&w!==D.value&&(D.value=w)}),b.observe(y))}}),l.onUnmounted(()=>{b?.disconnect()})}const v=(b,y,w,V)=>{const T={...g.value};return y===0&&(T[`${o}__first`]=!0),w>=V-1&&(T[`${o}__last`]=!0),l.h("div",{ref:C,key:`${y}`,class:T},b)};return()=>{const b=[];let y=0;if(n.slots.title){const O={key:`${y++}`,class:{[`${o}__title`]:!0,[`${o}__first`]:!0}},m=l.h("div",O,[n.slots.title()]);b.push(m)}else if(x.value){const O={key:`${y++}`,class:{[`${o}__title`]:!0,[`${o}__first`]:!0}},m=[];if(r.showMark){const I=l.h("div",{class:{[`${o}__title-mark`]:!0}});m.push(I)}const k=l.h("div",{class:{[`${o}__title-text`]:!0}},[x.value]);m.push(k);const _=l.h("div",O,m);b.push(_)}const w=n.slots.default?n.slots.default():[];let V=[],T=0;if(r.type==="flex"){for(let O=0;O<w.length;O++){const m=w[O];if($a(m)==="fragment"){let S=Ea(m);S>i.layout.value.column?S=i.layout.value.column:S<=0&&(S=1);const $=T+S;if($>i.layout.value.column){const A=v([...V],y++,O-1,w.length);b.push(A),T=S,V=[m]}else V.push(m),T=$;continue}const _=wa(m),I=Sa(m);if(_==="stretch"){if(T<i.layout.value.column){V.push(m);const S=v([...V],y++,O,w.length);b.push(S)}else{const S=v([...V],y++,O-1,w.length);b.push(S);const $=v([m],y++,O,w.length);b.push($)}T=0,V=[];continue}let R=L.toNumber(_);if(R===-1){if(V.length>0){const $=v([...V],y++,O-1,w.length);b.push($)}const S=v([m],y++,O,w.length);b.push(S),T=0,V=[];continue}R>i.layout.value.column?R=i.layout.value.column:R<=0&&(R=1);const p=T+R+I;if(p>i.layout.value.column){const S=v([...V],y++,O-1,w.length);b.push(S),T=R+I,V=[m]}else V.push(m),T=p}if(V.length>0){const O=v([...V],y++,w.length,w.length);b.push(O)}}else for(let O=0;O<w.length;O++){const m=w[O],k=v([m],y++,O,w.length);b.push(k)}return E.value?l.h("div",{class:{[`${o}`]:!0},style:h.value},[b]):b}}}}const{componentName:Oa,create:Ca,scope:Pi}=W("group"),bn=Ca(va(Oa)),wn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:xa,create:Va}=W("price"),Ta=Va({props:{...wn},setup(e){const t=l.computed(()=>({[xa]:!0})),r=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>We(e.price)==0?"":$t(e.price,e.decimalLength,!0,L.toNumber(e.digits),e.separator)),a=l.computed(()=>{let u=n.value;if(u.length==0)return"";let s=u.indexOf(".");return u.substring(0,s)}),i=l.computed(()=>{let u=n.value;if(u.length==0)return"";let s=u.indexOf(".");return u.substring(s+1)});return{classes:t,showSymbol:r,intText:a,decimalText:i}}}),Na=["innerHTML"],Aa=["innerHTML"];function Ia(e,t,r,n,a,i){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Na)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Aa)):l.createCommentVNode("",!0)],2)}const ut=Ve(Ta,[["render",Ia]]),{componentName:At,create:Ra}=W("hint-text"),ja=Ra({components:{[ut.name]:ut},props:{...wn,type:{type:String,default:"number"},id:{type:String},startPoint:{type:Object},width:{type:Number},height:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=l.computed(()=>({[At]:!0})),i=l.computed(()=>({left:U(e.startPoint.x),top:U(e.startPoint.y-e.height-10-4),height:U(e.height),width:U(e.width)})),u=l.computed(()=>({[`${At}__content`]:!0})),s=l.computed(()=>({})),c=l.computed(()=>({[`${At}__arrow`]:!0})),o=l.computed(()=>({top:U(e.height)}));return{classes:a,styles:i,textClasses:u,textStyles:s,arrowClasses:c,arrowStyles:o}}}),Ma={key:1,class:"text"};function Da(e,t,r,n,a,i){const u=l.resolveComponent("fox-price");return l.openBlock(),l.createBlock(l.Transition,{name:"hint-text-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(u,{key:0,price:e.message,position:"before"},null,8,["price"])):(l.openBlock(),l.createElementBlock("span",Ma,l.toDisplayString(e.message),1))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.visible]])]),_:1})}const ct=Ve(ja,[["render",Da]]);class Sn{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 Fa(e){return e===window}const $n=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(Fa(t))return{x:0,y:0};let r=0,n=0,a=t;for(;a!==null;)r+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let i=0,u=0;for(a=t;a!==document;)u+=a.scrollTop,i+=a.scrollLeft,a=a.parentNode;return r-=i,n-=u,{x:r,y:n}},It={},ka=new Sn,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()}},qa=e=>{const t=document.getElementById(e.id);if(t){const r=Re.get(e.id);r?e={...It,...r,...e}:e={...It,...e};const n=l.createVNode(ct,e);return l.render(n,t),e.id}},Ba=e=>{e.unmount=Rt;let t;if(e.id){if(t=e.id,Re.has(t))return qa(e)}else t=`hinttext_${ka.get()}`;e={...It,...e},e.id=t,Re.set(t,e);const r=document.createElement("div");r.id=e.id;const n=l.createVNode(ct,e);return l.render(n,r),document.body.appendChild(r),t},Pa=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&Rt(),Pa(t);const a=$n(e),i={x:a.x,y:a.y},s=st(e).width;return Ba({...r,message:t,startPoint:i,width:s})},hide(e){Rt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:En,create:La}=W("item"),_a=La({inheritAttrs:!0,props:{...ne,...oe},setup(e,t){re({componentName:En,validate:!1},e.prop??e.name);const r=we(),n=lt();it(!1);const a=En,i=l.computed(()=>({[a]:!0,[`${a}__gutter`]:!0,[`${a}__stretch`]:e.span==="stretch",[`${a}__input--border`]:e.hasBorder,"is-error":!!T.value,"is-warn":!!w.value,"is-info":!!b.value})),u=l.computed(()=>{const A={};if(n&&r){const F=ot(r,!1);if(F.value.type!=="flex")return e.width&&(A.width=U(e.width)),A;if(e.width)A.width=U(e.width);else{const P=$e(F.value.column,e.span);P>0&&(A.width=`${P}%`)}const q=$e(F.value.column,e.offset);q>0&&(A["margin-left"]=`${q}%`);const B=F.value.gutter/2;B>0&&(A["padding-left"]=`${B}px`,A["padding-right"]=`${B}px`)}else e.width&&(A.width=U(e.width));return A}),s=l.ref(null),c=l.computed({get:()=>s.value??L.toBoolean(e.isRequired),set:A=>{s.value=A}}),o=l.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),h=Ie(l.toRef(e,"labelPosition"),"labelPosition",nt.Near),g=l.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),x=l.computed(()=>({[`${a}__main`]:!0,[`${a}__main--${g.value}`]:!0})),j=l.computed(()=>({label:!0,[`label--${g.value}`]:!0})),N=Ie(l.toRef(e,"labelWidth"),"labelWidth",nt.Near),E=l.computed(()=>N&&N.value?{width:U(N.value)}:{}),M=l.computed(()=>({["label--string"]:!0,["label--required"]:c.value})),C=l.computed(()=>({content:!0,[e.contentClass]:!0})),D=l.computed(()=>({...e.contentStyle})),v=l.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});se({setRequired(A){c.value=A},setErrorTip(A){v.errorTip=A},setErrorIcon(A){v.errorIcon=A},setWarnTip(A){v.warnTip=A},setWarnIcon(A){v.warnIcon=A},setInfoTip(A){v.infoTip=A},setInfoIcon(A){v.infoIcon=A}});const b=l.computed(()=>e.infoTip||v.infoTip),y=l.computed(()=>e.infoIcon||v.infoIcon),w=l.computed(()=>e.warnTip||v.warnTip),V=l.computed(()=>e.warnIcon||v.warnIcon),T=l.computed(()=>e.errorTip||v.errorTip),O=l.computed(()=>e.errorIcon||v.errorIcon),m=l.computed(()=>T.value?"error":w.value?"warn":b.value?"info":""),k=l.computed(()=>m.value.length>0),_=l.computed(()=>m.value==="error"?T.value:m.value==="warn"?w.value:m.value==="info"?b.value:""),I=l.computed(()=>m.value==="error"?O.value:m.value==="warn"?V.value:m.value==="info"?y.value:null),R=l.computed(()=>{let A={[`${a}__tip`]:!0,[`${a}__tip--${m.value}`]:!0};return m.value==="error"&&e.errorClass?A[`${e.errorClass}`]=!0:m.value==="warn"&&e.warnClass?A[`${e.warnClass}`]=!0:m.value==="info"&&e.infoClass&&(A[`${e.infoClass}`]=!0),A}),p=l.computed(()=>{let A={};return h&&h.value==="top"?A["padding-left"]="0px":N&&N.value&&(A["padding-left"]=U(N.value)),A}),S=l.ref();let $="";return l.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([A,F,q,B])=>{!S.value||(A&&!X(F)?$?ft.show(S.value,F,{...B,id:$,type:q}):$=ft.show(S.value,F,{...B,type:q}):ft.hide($))}),{classes:i,styles:u,mainClasses:x,hasLabel:o,labelClasses:j,labelStyles:E,labelStringClasses:M,contentClasses:C,contentStyles:D,contentRef:S,hasTip:k,mTip:_,mIcon:I,tipClasses:R,tipStyles:p}}}),Ha={key:0,class:"fox-item__tip-icon"},Ka={class:"fox-item__tip-text"};function za(e,t,r,n,a,i){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.mainClasses)},[e.hasLabel?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.labelClasses),style:l.normalizeStyle(e.labelStyles)},[l.createElementVNode("div",{class:l.normalizeClass(e.labelStringClasses)},[l.renderSlot(e.$slots,"label",{},()=>[l.createTextVNode(l.toDisplayString(e.label),1)])],2)],6)):l.createCommentVNode("",!0),l.createElementVNode("div",{ref:"contentRef",class:l.normalizeClass(e.contentClasses),style:l.normalizeStyle(e.contentStyles)},[l.renderSlot(e.$slots,"prepend"),l.renderSlot(e.$slots,"default"),l.renderSlot(e.$slots,"append")],6)],2),l.createVNode(l.Transition,{name:"fox-item__animate"},{default:l.withCtx(()=>[e.hasTip?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(e.tipClasses),style:l.normalizeStyle(e.tipStyles)},[e.mIcon?(l.openBlock(),l.createElementBlock("div",Ha,l.toDisplayString(e.mIcon),1)):l.createCommentVNode("",!0),l.createElementVNode("div",Ka,l.toDisplayString(e.mTip),1)],6)):l.createCommentVNode("",!0)]),_:1}),l.renderSlot(e.$slots,"hide")],6)}const ae=Ve(_a,[["render",za]]);function Ga(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(r,n){const a=e,i=l.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch"})),u=we(),s=lt();it(!1);const c=l.computed(()=>{const o={};if(s&&u){const h=ot(u,!1);if(h.value.type!=="flex")return r.width&&(o.width=U(r.width)),o;if(r.width)o.width=U(r.width);else{const j=$e(h.value.column,r.span);j>0&&(o.width=`${j}%`)}const g=$e(h.value.column,r.offset);g>0&&(o["margin-left"]=`${g}%`);const x=h.value.gutter/2;x>0&&(o["padding-left"]=`${x}px`,o["padding-right"]=`${x}px`)}else r.width&&(o.width=U(r.width));return o});return()=>{const o={class:i.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",o,n.slots.default()):l.h("div",o)}}}}const{componentName:Wa,create:Ya,scope:Li}=W("slot-item"),vn=Ya(Ga(Wa));function Ua(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]}},setup(r,n){const a=e,i=l.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),u=we(),s=lt();it(!1);const c=l.computed(()=>{const h={};if(s&&u){const g=ot(u,!1);if(g.value.type!=="flex")return r.width&&(h.width=U(r.width)),h;if(r.width)h.width=U(r.width);else{const N=$e(g.value.column,r.span);N>0&&(h.width=`${N}%`)}const x=$e(g.value.column,r.offset);x>0&&(h["margin-left"]=`${x}%`);const j=g.value.gutter/2;j>0&&(h["padding-left"]=`${j}px`,h["padding-right"]=`${j}px`)}else r.width&&(h.width=U(r.width));return h}),o=l.computed(()=>({[`${a}__content`]:!0}));return()=>{const h=[];n.slots.default&&h.push(n.slots.default());const g={class:o.value},x=l.h("div",g,h),j={class:i.value,style:c.value};return l.h("div",j,[x])}}}}const{componentName:Za,create:Xa,scope:_i}=W("row-item"),On=Xa(Ua(Za)),Cn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ja(e,t,r){return{props:{...ne,...oe,...Cn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=l.ref(!1),o=ce(l.computed(()=>n.disabled)),h=ue(l.computed(()=>n.readonly)),g=Y(n,"modelValue"),x=e,j=l.computed(()=>({[x]:!0})),N=V=>{g.value=V,i("update:modelValue",V),i("input",V)},E=V=>{i("change",V)};let M=Y(n,"hintText"),C=l.ref(!1);const D=V=>{let O=V.target.value;c.value=!0,X(M.value)||(C.value=!0),i("focus",O,V)},v=V=>{setTimeout(()=>{C.value&&(C.value=!1),c.value=!1},0);let O=V.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),i("blur",O,V)},b=()=>{i("clear","")},y=l.computed(()=>We(n.unit)>0),w=l.ref();return se({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},select:()=>{w?.value.select()}}),()=>{const T={...a.attrs,ref:w,class:j.value,placeholder:s.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:h.value,modelValue:g.value,onClear:b,onChange:E,onInput:N,onFocus:D,onBlur:v},O={};a.slots.prepend&&(O.prepend=a.slots.prepend),a.slots.append&&(O.append=a.slots.append),a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.suffix?O.suffix=a.slots.suffix:y.value&&(O.suffix=()=>[n.unit]);const m=[],k=l.h(f.ElInput,T,O);m.push(k);const _={default:()=>m};if(a.slots.default){const S=a.slots.default();_.label=()=>S}const R={...ie(n,Cn),hintText:M.value,hintVisible:C.value,prop:`${n.prop}_item`};return l.h(r,R,_)}}}}const{componentName:Qa,create:el,scope:tl}=W("input-item"),xn=el(Ja(Qa,tl,ae));function Te(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class nl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=xe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function rl(){const e=l.getCurrentInstance();return new nl(e.proxy)}function Tn(e,t,r){const n=Te(e,t),a=Te(e,r);if(n!==a)return!1;const i=je(e,t),u=je(e,r);return i===u}function Nn(e,t,r,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(i=>{for(let u of n){const s=Vn(e,u);if(Array.isArray(s)&&s.length>0){const c=Nn(e,i,r,s)??[];Reflect.apply([].push,a,c)}else{let c=!1;if(r==="text")c=Te(e,u)===i;else if(r==="item")c=Tn(e,u,i);else{let o=je(e,u);o==null&&(o=Te(e,u)),c=o===i}if(c){a.push(u);break}}}}),a}function al(e){return{text:e,value:e}}const An={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1}};function ll(e,t,r){return{props:{...ne,...oe,...An},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=l.ref(null),o=l.ref([]),h=(p,S,$,A=!0)=>{const F=Nn(n,p,S,$);if(F===null){if(o.value===null||o.value.length===0)return;c.value=null,o.value=[],A&&(i("update:modelValue",null),i("change",null));return}let q=!0;if(F.length!==o.value.length)q=!1;else for(let B=0;B<F.length;B++){const P=F[B],H=o.value[B];if(!Tn(n,P,H)){q=!1;break}}if(!q){o.value=F;let B=[],P=[];F.forEach(z=>{B.push(je(n,z)),n.valueType==="text"?P.push(Te(n,z)):n.valueType==="item"?P.push(z):P.push(je(n,z))});let H;n.multiple?(c.value=B,H=l.toRaw(P)):(c.value=B[0]??"",H=l.toRaw(P[0]??"")),A&&(i("update:modelValue",H),i("change",H))}},g=l.ref([]),x=rl();l.watch([()=>n.source,()=>n.params],async([p,S])=>{if(p){const $=await x.load("select",p,S);if($.length>0)if(typeof $[0]=="string"){let q=$.map(B=>al(B));g.value=q}else g.value=$}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([p,S])=>{h(S,n.valueType,p,!1)});let j=null,N=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async p=>{if(p!=null){N.value=!0;try{const S=await n.remoteMethod(p);g.value=S}catch(S){console.error(S)}N.value=!1}});const E=l.ref(!1),M=ce(l.computed(()=>n.disabled)),C=ue(l.computed(()=>n.readonly)),D=e,v=l.computed(()=>({[D]:!0})),b=p=>{n.allowCreate?(i("update:modelValue",p),i("change",p),c.value=p):h(p,"value",g.value,!0)};let y=Y(n,"hintText"),w=l.ref(!1);const V=p=>{let $=p.target.value;E.value=!0,X(y.value)||(w.value=!0),i("focus",$,p)},T=p=>{setTimeout(()=>{w.value&&(w.value=!1),E.value=!1},0);let $=p.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),m.value?setTimeout(()=>{i("blur",$,p)},50):i("blur",$,p)},O=()=>{i("clear","")},m=l.ref(!1),k=p=>{m.value=p,i("visible-change",p)},_=p=>{i("remove-tag",p)},I=(p,S)=>{const $=[];return p.forEach((A,F)=>{const q=Vn(n,A);if(Array.isArray(q)&&q.length>0){const B=I(q,S),P=Te(n,A),z={key:`${P}_${F}`,label:P};$.push(l.h(f.ElOptionGroup,z,{default:()=>B}))}else{const B=je(n,A),P=Te(n,A),H=L.toBoolean(A.disabled),G={key:`${B}_${F}`,label:P,disabled:H,value:B};typeof S=="function"?$.push(l.h(f.ElOption,G,{default:S})):$.push(l.h(f.ElOption,G))}}),$},R=l.ref();return se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const S={...a.attrs,ref:R,class:v.value,clearable:n.clearable,multiple:n.multiple,placeholder:s.placeholder.value,disabled:M.value||C.value,modelValue:c.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:O,onChange:b,onFocus:V,onBlur:T,onVisibleChange:k,onRemoveTag:_};typeof j=="function"&&(S["remote-method"]=j,S.loading=N.value);const $={};a.slots.prefix&&($.prefix=a.slots.prefix),a.slots.empty&&($.empty=a.slots.empty),$.default=()=>I(g.value,a.slots.option);const A=[],F=l.h(f.ElSelect,S,$);A.push(F);const q={default:()=>A};if(a.slots.default){const z=a.slots.default();q.label=()=>z}const P={...ie(n,An),hintText:y.value,hintVisible:w.value,prop:`${n.prop??n.name}_item`};return l.h(r,P,q)}}}}const{componentName:il,create:ol,scope:sl}=W("select-item"),In=ol(ll(il,sl,ae)),Rn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function ul(e,t,r){return{props:{...ne,...oe,...Rn},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=l.ref(!1),o=ce(l.computed(()=>n.disabled)),h=ue(l.computed(()=>n.readonly)),g=Y(n,"modelValue"),x=e,j=l.computed(()=>({[x]:!0})),N=T=>{g.value=T,i("update:modelValue",T),i("change",T)};let E=Y(n,"hintText"),M=l.ref(!1);const C=T=>{let m=T.target.value;c.value=!0,X(E.value)||(M.value=!0),i("focus",m,T)},D=T=>{setTimeout(()=>{M.value&&(M.value=!1),c.value=!1},0);let m=T.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),i("blur",m,T)},v=()=>{i("clear","")},b=T=>{i("calendar-change",T)},y=(T,O,m)=>{i("panel-change",T,O,m)},w=T=>{i("visible-change",T)},V=l.ref();return se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const O={...a.attrs,ref:V,class:j.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:N,onClear:v,onFocus:C,onBlur:D,onCalendarChange:b,onPanelChange:y,onVisibleChange:w},m={};a.slots["range-separator"]&&(m["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(m.default=a.slots.cell);const k=[],_=l.h(f.ElDatePicker,O,m);k.push(_);const I={default:()=>k};if(a.slots.default){const $=a.slots.default();I.label=()=>$}const p={...ie(n,Rn),hintText:E.value,hintVisible:M.value,prop:`${n.prop}_item`};return l.h(r,p,I)}}}}const{componentName:cl,create:fl,scope:dl}=W("date-item"),jn=fl(ul(cl,dl,ae)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function hl(e,t,r){return{props:{...ne,...oe,...Mn},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=l.ref(!1),o=ce(l.computed(()=>n.disabled)),h=ue(l.computed(()=>n.readonly)),g=Y(n,"modelValue"),x=e,j=l.computed(()=>({[x]:!0})),N=w=>{g.value=w,i("update:modelValue",w),i("change",w)};let E=Y(n,"hintText"),M=l.ref(!1);const C=w=>{let T=w.target.value;c.value=!0,X(E.value)||(M.value=!0),i("focus",T,w)},D=w=>{setTimeout(()=>{M.value&&(M.value=!1),c.value=!1},0);let T=w.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),i("blur",T,w)},v=()=>{i("clear","")},b=w=>{i("visible-change",w)},y=l.ref();return se({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},handleOpen:()=>{y?.value.handleOpen()},handleClose:()=>{y?.value.handleClose()}}),()=>{const V={...a.attrs,ref:y,class:j.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:N,onClear:v,onFocus:C,onBlur:D,onVisibleChange:b},T={},O=[],m=l.h(f.ElTimePicker,V,T);O.push(m);const k={default:()=>O};if(a.slots.default){const p=a.slots.default();k.label=()=>p}const I={...ie(n,Mn),hintText:E.value,hintVisible:M.value,prop:`${n.prop}_item`};return l.h(r,I,k)}}}}const{componentName:gl,create:ml,scope:pl}=W("time-item"),Dn=ml(hl(gl,pl,ae)),Fn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function yl(e,t,r){return{props:{...ne,...oe,...Fn},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=l.ref(!1),o=ce(l.computed(()=>n.disabled)),h=ue(l.computed(()=>n.readonly)),g=Y(n,"modelValue"),x=e,j=l.computed(()=>({[x]:!0})),N=y=>{g.value=y,i("update:modelValue",y),i("change",y)};let E=Y(n,"hintText"),M=l.ref(!1);const C=y=>{let V=y.target.value;c.value=!0,X(E.value)||(M.value=!0),i("focus",V,y)},D=y=>{setTimeout(()=>{M.value&&(M.value=!1),c.value=!1},0);let V=y.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,y)},v=()=>{i("clear","")},b=l.ref();return se({focus:()=>{b?.value.focus()},blur:()=>{b?.value.blur()},handleOpen:()=>{b?.value.handleOpen()},handleClose:()=>{b?.value.handleClose()}}),()=>{const w={...a.attrs,ref:b,class:j.value,placeholder:s.placeholder.value,disabled:o.value,readonly:h.value,modelValue:g.value,["onUpdate:modelValue"]:N,onClear:v,onFocus:C,onBlur:D},V={},T=[],O=l.h(f.ElTimeSelect,w,V);T.push(O);const m={default:()=>T};if(a.slots.default){const R=a.slots.default();m.label=()=>R}const _={...ie(n,Fn),hintText:E.value,hintVisible:M.value,prop:`${n.prop}_item`};return l.h(r,_,m)}}}}const{componentName:bl,create:wl,scope:Sl}=W("time-select-item"),kn=wl(yl(bl,Sl,ae));function qn(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let a=n;for(let i=r.length-1;i>=n;i--)if(r.charAt(i)!="0"){a=i;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>r.length?r=r.padEnd(a,"0"):r=r.substring(0,a),r}function Bn(e,t,r=20){if(typeof t=="string"&&(t=L.toNumber(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ht(`${e}`,`${t}`);return qn(n)}else{let n=wt(`${e}`,Kt(`${t}`),20);return qn(n)}}function $l(e,t=-1,r=!1,n=3,a=","){return $t(e,t,r,n,a)}function Pn(e,t,r,n,a=!0){if(e=="")return"";if(e=zt(e),t=L.toNumber(t),t==1)return e;if(n)e=Bn(e,t),r&&(e=="0"&&a?e=`${e}.`.padEnd(L.toNumber(r)+2,"0"):e=wt(e,1,L.toNumber(r)));else{let i=-1*t;e=Bn(e,i)}return e}function Ln(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=L.toBoolean(t.minInclude),a=St(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let i="\u8BF7\u8F93\u5165\u4E0D\u5C0F\u4E8E {0} \u7684\u6570\u503C";r.message=i.replace("{0}",t.min),r.minValid=!1}}if(t.max!=null){let n=L.toBoolean(t.maxInclude),a=St(e,t.max);(n&&a==1||!n&&(a==0||a==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}};function El(e,t,r){return{props:{...ne,...oe,..._n},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),u=l.ref(!1),s=ce(l.computed(()=>n.disabled)),c=ue(l.computed(()=>n.readonly)),o=Y(n,"modelValue"),h=l.ref("");l.watch([()=>o.value,()=>n.rates,()=>n.precision],([I,R,p])=>{if(X(I))return"";const S=Pn(I,R,p,!1);h.value!==S&&(h.value=S)},{immediate:!0});const g=l.computed(()=>{let I="";return u.value&&(I=h.value),I}),{t:x}=me.useFoxI18n(t),j=l.computed(()=>{let I=n.placeholder??"";return!u.value&&!X(h.value)?I=$l(h.value,n.decimalLength,n.autoPadding,n.digits,n.separator):I=x(["placeholder",I]),I}),N=e,E=l.computed(()=>({[N]:!0,[`${N}__disabled`]:s.value,[`${N}__placeholder`]:h.value.length>0})),M=Ie(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:M.value??"right"});const C=l.ref(""),D=l.computed(()=>{let I=C.value;return X(I)&&(I=n.errorTip??""),I}),v=l.ref(""),b=l.ref(!1),y=(I,R)=>{if(I=`${I}`,X(I)){h.value="",o.value="",R.forEach(p=>{i(p,"")}),L.toBoolean(n.showTip)&&b.value&&(b.value=!1);return}if(I.length>=2){let p=I;if(p.charAt(0)=="-"&&(p=p.substring(1)),p.length>=2&&p.charAt(0)=="0"&&p.charAt(1)!="."){l.triggerRef(h);return}}if(I!="-"){if(!Wt(I)){l.triggerRef(h);return}if(n.integerLength!=-1&&Yt(I)>Number(n.integerLength)){l.triggerRef(h);return}if(n.decimalLength&&n.decimalLength!=-1&&Ut(I)>Number(n.decimalLength)){l.triggerRef(h);return}let p=Ln(I,n);if(p.maxValid===!1){C.value=p.message,l.triggerRef(h);return}}else if(n.min!=null&&L.toNumber(n.min)>=0){l.triggerRef(h);return}v.value=I,L.toBoolean(n.showTip)&&(b.value=I.length>0),h.value=I,o.value=Pn(I,n.rates,n.precision,!0),R.forEach(p=>{i(p,o.value)})},w=I=>{y(I,["update:modelValue","input"])},V=I=>{y(I,["update:modelValue","change"])},T=I=>{if(u.value=!0,L.toBoolean(n.showTip)){let R=h.value;X(R)&&(R=n.hintText),X(R)||(v.value=R,b.value=!0)}C.value="",i("focus",o.value,I)},O=I=>{if(setTimeout(()=>{u.value=!1,L.toBoolean(n.showTip)&&b.value===!0&&(b.value=!1)},0),!X(h.value)){let R=Ln(h.value,n);if(R.minValid===!1||R.maxValid){C.value=R.message;return}}i("update:modelValue",o.value,I),i("blur",o.value,I)},m=()=>{i("clear","")},k=l.computed(()=>We(n.unit)>0),_=l.ref();return se({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const R={...a.attrs,ref:_,class:E.value,type:"digit",maxlength:n.maxLength,placeholder:j.value,clearable:n.clearable,disabled:s.value,readonly:c.value,modelValue:g.value,onClear:m,onInput:w,onChange:V,onFocus:T,onBlur:O},p={};a.slots.prepend&&(p.prepend=a.slots.prepend),a.slots.append&&(p.append=a.slots.append),a.slots.prefix&&(p.prefix=a.slots.prefix),a.slots.suffix?p.suffix=a.slots.suffix:k.value&&(p.suffix=()=>[n.unit]);const S=[],$=l.h(f.ElInput,R,p);S.push($);const A={default:()=>S};if(a.slots.default){const P=a.slots.default();A.label=()=>P}const q={...ie(n,_n),errorTip:D.value,hintText:v.value,hintVisible:b.value,hintType:"number",prop:`${n.prop}_item`};return l.h(r,q,A)}}}}const{componentName:vl,create:Ol,scope:Cl}=W("money-item"),Hn=Ol(El(vl,Cl,ae));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ne(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function xl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Vl{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=xe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function Tl(){const e=l.getCurrentInstance();return new Vl(e.proxy)}function jt(e,t,r){const n=Me(e,t),a=Me(e,r);if(n!==a)return!1;const i=Ne(e,t),u=Ne(e,r);return i===u}function Kn(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let i=n;for(let u=0;Array.isArray(i)&&u<t.length;u++){const s=t[u];if(Array.isArray(s)){const c=Kn(e,s,r,n);a.push(c)}else{let c=!1;for(let o of i){if(r==="text")c=Me(e,o)===s;else if(r==="item")c=jt(e,o,s);else{let h=Ne(e,o);h==null&&(h=Me(e,o)),c=h===s}if(c){a.push(o),i=xl(e,o);break}}if(!c)break}}return a}function Nl(e){return{text:e,value:e}}const zn={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 Al(e,t,r){return{props:{...ne,...oe,...zn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=l.ref(null),o=l.ref([]),h=(S,$,A,F=!0)=>{if(n.props&&n.props.lazy===!0){if(c.value===S)return;c.value=S;const P=l.toRaw(S);F&&(i("update:modelValue",P),i("change",P))}const q=Kn(n,S,$,A);if(q===null){if(o.value.length===0||o.value===null)return;o.value=[],c.value=null,F&&(i("update:modelValue",null),i("change",null));return}let B=!0;if(q.length!==o.value.length)B=!1;else for(let P=0;P<q.length;P++){const H=q[P],z=o.value[P];if(Array.isArray(H)){if(!Array.isArray(z)||H.length!==z.length)B=!1;else for(let G=0;G<H.length;G++)if(!jt(n,H[G],z[G])){B=!1;break}}else jt(n,H,z)||(B=!1);if(!B)break}if(!B){o.value=q;let P=[],H=[];q.forEach(G=>{if(Array.isArray(G)){let ge=[],fe=[];for(let le of G)ge.push(Ne(n,le)),n.valueType==="text"?fe.push(Me(n,le)):n.valueType==="item"?fe.push(le):fe.push(Ne(n,le));P.push(ge),H.push(fe)}else P.push(Ne(n,G)),n.valueType==="text"?H.push(Me(n,G)):n.valueType==="item"?H.push(G):H.push(Ne(n,G))}),c.value=P;const z=l.toRaw(H);F&&(i("update:modelValue",z),i("change",z))}},g=l.ref([]),x=Tl();l.watch([()=>n.source,()=>n.params],async([S,$])=>{if(S){const A=await x.load("cascader",S,$);if(A.length>0)if(typeof A[0]=="string"){let B=A.map(P=>Nl(P));g.value=B}else g.value=A}},{immediate:!0}),l.watch([()=>g.value,()=>n.modelValue],([S,$])=>{h($,n.valueType,S,!1)});let j=null,N=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async S=>{if(S!=null){N.value=!0;try{const $=await n.remoteMethod(S);g.value=$}catch($){console.error($)}N.value=!1}});const E=l.ref(!1),M=ce(l.computed(()=>n.disabled)),C=ue(l.computed(()=>n.readonly)),D=e,v=l.computed(()=>({[D]:!0})),b=l.computed(()=>{let S={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(S.multiple=!0),n.props&&Object.assign(S,n.props),S}),y=S=>{n.allowCreate?(i("update:modelValue",S),i("change",S),c.value=S):h(S,"value",g.value,!0)};let w=Y(n,"hintText"),V=l.ref(!1);const T=S=>{let A=S.target.value;E.value=!0,X(w.value)||(V.value=!0),i("focus",A,S)},O=S=>{setTimeout(()=>{V.value&&(V.value=!1),E.value=!1},0);let A=S.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),k.value?setTimeout(()=>{i("blur",A,S)},50):i("blur",A,S)},m=()=>{i("clear","")},k=l.ref(!1),_=S=>{k.value=S,i("visible-change",S)},I=S=>{i("remove-tag",S)},R=S=>{i("expand-change",S)},p=l.ref();return se({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},getCheckedNodes:()=>p?.value.getCheckedNodes()}),()=>{const $={...a.attrs,ref:p,class:v.value,props:b.value,clearable:n.clearable,placeholder:s.placeholder.value,disabled:M.value||C.value,options:g.value,modelValue:c.value,onClear:m,onChange:y,onFocus:T,onBlur:O,onVisibleChange:_,onRemoveTag:I,expandChange:R};typeof j=="function"&&($["remote-method"]=j,$.loading=N.value);const A={};a.slots.option&&(A.default=a.slots.option),a.slots.empty&&(A.empty=a.slots.empty);const F=[],q=l.h(f.ElCascader,$,A);F.push(q);const B={default:()=>F};if(a.slots.default){const G=a.slots.default();B.label=()=>G}const H={...ie(n,zn),hintText:w.value,hintVisible:V.value,prop:`${n.prop??n.name}_item`};return l.h(r,H,B)}}}}const{componentName:Il,create:Rl,scope:jl}=W("cascader-item"),Gn=Rl(Al(Il,jl,ae)),Wn={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ml(e,t,r){return{props:{...ne,...oe,...Wn},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),{toLocaleRefs:u}=me.useFoxI18n(t),s=u(n,["placeholder"]),c=l.ref(!1),o=ce(l.computed(()=>n.disabled)),h=ue(l.computed(()=>n.readonly)),g=Y(n,"modelValue"),x=e,j=l.computed(()=>({[x]:!0})),N=w=>{g.value=w,i("update:modelValue",w),i("input",w)},E=w=>{i("change",w)};let M=Y(n,"hintText"),C=l.ref(!1);const D=w=>{let T=w.target.value;c.value=!0,X(M.value)||(C.value=!0),i("focus",T,w)},v=w=>{setTimeout(()=>{C.value&&(C.value=!1),c.value=!1},0);let T=w.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),i("blur",T,w)},b=()=>{i("clear","")},y=l.ref();return se({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},select:()=>{y?.value.select()}}),()=>{const V={...a.attrs,ref:y,class:j.value,placeholder:s.placeholder.value,clearable:n.clearable,disabled:o.value,readonly:h.value,modelValue:g.value,onClear:b,onChange:E,onInput:N,onFocus:D,onBlur:v},T={};a.slots.prepend&&(T.prepend=a.slots.prepend),a.slots.append&&(T.append=a.slots.append),a.slots.prefix&&(T.prefix=a.slots.prefix),a.slots.suffix&&(T.suffix=a.slots.suffix),a.slots.option&&(T.default=a.slots.option);const O=[],m=l.h(f.ElAutocomplete,V,T);O.push(m);const k={default:()=>O};if(a.slots.default){const p=a.slots.default();k.label=()=>p}const I={...ie(n,Wn),hintText:M.value,hintVisible:C.value,prop:`${n.prop}_item`};return l.h(r,I,k)}}}}const{componentName:Dl,create:Fl,scope:kl}=W("autocomplete-item"),Yn=Fl(Ml(Dl,kl,ae));function ql(e,t,r,n,a){let i=[];Array.isArray(e)?i=e:i=[e];const u=[],s=t[0];if(Array.isArray(s))for(let c=0;c<t.length&&c<i.length;c++){let o=t[c],h=i[c];const g=o.find(x=>x[n]===h);if(!g)break;u.push(g[r])}else{let c=t;for(let o=0;c&&o<i.length;o++){let h=i[o],g=c.find(x=>x[n]===h);if(!g)break;u.push(g[r]),c=g[a]}}return u}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 a=xe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function Pl(){const e=l.getCurrentInstance();return new Bl(e.proxy)}const Un={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Ll(e,t){return{props:{...Un},setup(r,{attrs:n}){const a=Pl(),i=l.ref([]);l.watch([()=>r.source,()=>r.params],async([c,o])=>{i.value=await a.load(r.sourceType,c,o)},{immediate:!0});const u=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=ql(r.modelValue,i.value,r.textKey,r.valueKey,r.childrenKey);return c.length==0?"":c.length===1?c[0]:c.join(r.separator)}),s=r.resolveTag?l.resolveComponent(r.tag):r.tag;return()=>{const c={...n};return r.resolveTag?l.h(s,c,{default:()=>u.value}):l.h(s,c,u.value)}}}}const{componentName:Hi,create:_l,scope:Ki}=W("mapping"),Mt=_l(Ll());function Hl(e,t){return{props:{...Un},setup(r,{attrs:n}){return()=>{const a={default:i=>{const u=i.row[i.column.property];return l.h(Mt,{...r,modelValue:u})}};return l.h(f.ElTableColumn,{...n},a)}}}}const{componentName:zi,create:Kl,scope:Gi}=W("table-mapping-column"),Zn=Kl(Hl());class zl{proxy;constructor(t){this.proxy=t}async load(t,r,n,a,i,u,s){if(Array.isArray(r)){let o=(n-1)*a,h=o+a;h>r.length&&(h=r.length);const g=r.slice(o,h);return{totalSize:r.length,page:g}}if(typeof r=="function")return await Reflect.apply(r,null,[n,a,i,u,s]);const c=xe(this.proxy,t);return c===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(L.isObject(i)&&l.isReactive(i)&&(i=l.toRaw(i)),await await Reflect.apply(c,null,[r,n,a,i,u,s]))}}function Gl(){const e=l.getCurrentInstance();return new zl(e.proxy)}const Xn={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},Jn={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function Wl(e,t,r){return{inheritAttrs:!1,props:{...ne,...oe,...Xn,...Jn},emits:["change","page-size-change","page-index-change","current-change"],setup(n,a){const{locale:i}=me.useFoxI18n(t),{emitEvent:u}=re({componentName:e},n.prop??n.name),s=e,c=l.computed(()=>({[s]:!0})),o=l.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),h=l.ref(n.pageIndex);l.watch(()=>n.pageIndex,m=>{h.value=m});const g=m=>{h.value=m,u("page-index-change",m)},x=l.ref(n.pageSize);l.watch(()=>n.pageSize,m=>{x.value=m});const j=m=>{x.value=m,u("page-size-change",m)},N=l.shallowRef({}),E=l.computed(()=>({...N.value,...n.params??{},...n.baseParams??{}})),M=l.ref(0),C=l.ref(),D=Gl();let v=!0;const b=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:L.toBoolean(n.autoLoad),y=async(m,k,_,I)=>{try{const R=await D.load("table",m,k,_,I,v,i.value);M.value=R.totalSize,C.value=R.page}catch(R){console.error("[FoxUI] Load Table Data Fail",R),M.value=0,C.value=[]}v=!1};l.watch([h,x],([m,k],[_,I])=>{k!==I&&(h.value=1,m=1),y(n.data,m,k,E.value)}),l.watch([()=>n.data,E],([m,k],[_,I])=>{!b()||(m!==_&&(v=!0),y(m,h.value,x.value,k))});const w=(m={})=>{N.value=l.toRaw(m??{}),l.triggerRef(N),l.nextTick(()=>{y(n.data,h.value,x.value,E.value)})};b()&&w();let V=null;const T=(m,k)=>{V=m,u("current-change",m,k)},O=l.ref();return se({clearSelection:()=>O?.value.clearSelection(),getSelectionRows:()=>O?.value.getSelectionRows(),toggleRowSelection:(m,k)=>{O?.value.toggleRowSelection(m,k)},toggleAllSelection:()=>{O?.value.toggleAllSelection()},toggleRowExpansion:(m,k)=>{O?.value.toggleRowExpansion(m,k)},setCurrentRow:m=>{O?.value.setCurrentRow(m)},getCurrentRow:()=>V,clearSort:()=>{O?.value.clearSort()},clearFilter:m=>{O?.value.clearFilter(m)},doLayout:()=>{O?.value.doLayout()},sort:(m,k)=>{O?.value.sort(m,k)},scrollTo:(m,k)=>{O?.value.scrollTo(m,k)},setScrollTop:m=>{O?.value.setScrollTop(m)},setScrollLeft:m=>{O?.value.setScrollLeft(m)},loadData:w}),()=>{const k={...a.attrs,onCurrentChange:T,data:C.value,ref:O,class:c.value},_={};a.slots.default&&(_.default=a.slots.default),a.slots.append&&(_.append=a.slots.append),a.slots.empty&&(_.empty=a.slots.empty);const I=[],R=l.h(f.ElTable,k,_);if(I.push(R),typeof a.slots.pagination=="function"){const F=a.slots.pagination();I.push(F)}else if(n.paginationVisible){const F={class:o.value,total:M.value,pageSize:x.value,["onUpdate:pageSize"]:j,pageSizes:n.pageSizes,currentPage:h.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},q=l.h(f.ElPagination,F);I.push(q)}const p={default:()=>I},$={...ie(n,Xn,Jn),prop:`${n.prop}_item`};return $.contentClass=`${s}__wrap`,l.h(r,$,p)}}}}const{componentName:Yl,create:Ul,scope:Zl}=W("table-item"),Qn=Ul(Wl(Yl,Zl,ae));function De(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ze(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class 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 a=xe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function Jl(){const e=l.getCurrentInstance();return new Xl(e.proxy)}function er(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=De(e,t),a=De(e,r);if(n!==a)return!1;const i=ze(e,t),u=ze(e,r);return i===u}function Ql(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let i of n){let u=!1;if(r==="text")u=De(e,i)===t;else if(r==="item")u=er(e,i,t);else{let s=ze(e,i);s==null&&(s=De(e,i)),u=s===t}if(u){a=i;break}}return a}function ei(e){return{text:e,value:e}}const tr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemClass:{type:[String],required:!1}};function ti(e,t,r){return{inheritAttrs:!0,props:{...ne,...oe,...tr},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),u=l.ref(null),s=l.ref(null),c=(v,b,y,w=!0)=>{const V=Ql(n,v,b,y);if(V===null){if(s.value===null)return;s.value=null,u.value=null,w&&(i("update:modelValue",null),i("change",null));return}if(!er(n,V,s.value)){u.value=v;const O=l.toRaw(V);s.value=O;let m=null;n.valueType==="text"?m=De(n,O):n.valueType==="item"?m=O:m=ze(n,O),w&&(i("update:modelValue",m),i("change",m))}},o=l.ref([]),h=Jl();l.watch([()=>n.source,()=>n.params],async([v,b])=>{if(v){const y=await h.load("radio",v,b);if(y.length>0)if(typeof y[0]=="string"){let T=y.map(O=>ei(O));o.value=T}else o.value=y}},{immediate:!0}),l.watch([()=>o.value,()=>n.modelValue],([v,b])=>{c(b,n.valueType,v,!1)});const g=ce(l.computed(()=>n.disabled)),x=ue(l.computed(()=>n.readonly)),j=e,N=l.computed(()=>({[j]:!0})),E=v=>{c(v,"value",o.value,!0)};let M=Y(n,"hintText"),C=Y(n,"hintVisible");const D=v=>{const b=[];return v.forEach((y,w)=>{const V=ze(n,y),T=De(n,y),O=L.toBoolean(y.disabled),k={key:`${V}_${w}`,class:n.itemClass,label:V,disabled:O,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?b.push(l.h(f.ElRadioButton,k,{default:()=>[T]})):b.push(l.h(f.ElRadio,k,{default:()=>[T]}))}),b};return()=>{const b={...a.attrs,class:N.value,disabled:g.value||x.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,onChange:E},y=[],w={};a.slots.options?w.default=a.slots.options:w.default=()=>D(o.value);const V=l.h(f.ElRadioGroup,b,w);y.push(V);const T={default:()=>y};if(a.slots.default){const _=a.slots.default();T.label=()=>_}const m={...ie(n,tr),hintText:M.value,hintVisible:C.value,prop:`${n.prop??n.name}_item`};return l.h(r,m,T)}}}}const{componentName:ni,create:ri,scope:ai}=W("radio-item"),nr=ri(ti(ni,ai,ae));function Fe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ke(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class li{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=xe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(L.isObject(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(r,n))}}function ii(){const e=l.getCurrentInstance();return new li(e.proxy)}function rr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=Fe(e,t),a=Fe(e,r);if(n!==a)return!1;const i=ke(e,t),u=ke(e,r);return i===u}function oi(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(i=>{for(let u of n){let s=!1;if(r==="text")s=Fe(e,u)===i;else if(r==="item")s=rr(e,u,i);else{let c=ke(e,u);c==null&&(c=Fe(e,u)),s=c===i}if(s){a.push(u);break}}}),a}function si(e){return{text:e,value:e}}const ar={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemClass:{type:[String],required:!1}};function ui(e,t,r){return{inheritAttrs:!1,props:{...ne,...oe,...ar},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),u=l.ref([]),s=l.ref([]),c=(v,b,y,w=!0)=>{const V=oi(n,v,b,y);if(V===null){if(s.value===null||s.value.length===0)return;u.value=[],s.value=[],w&&(i("update:modelValue",[]),i("change",[]));return}let T=!0;if(V.length!==s.value.length)T=!1;else for(let O=0;O<V.length;O++){const m=V[O],k=s.value[O];if(!rr(n,m,k)){T=!1;break}}if(!T){s.value=V;let O=[],m=[];V.forEach(_=>{O.push(ke(n,_)),n.valueType==="text"?m.push(Fe(n,_)):n.valueType==="item"?m.push(_):m.push(ke(n,_))}),u.value=O;const k=l.toRaw(m);w&&(i("update:modelValue",k),i("change",k))}},o=l.ref([]),h=ii();l.watch([()=>n.source,()=>n.params],async([v,b])=>{if(v){const y=await h.load("checkbox",v,b);if(y.length>0)if(typeof y[0]=="string"){let T=y.map(O=>si(O));o.value=T}else o.value=y}},{immediate:!0}),l.watch([()=>o.value,()=>n.modelValue],([v,b])=>{c(b,n.valueType,v,!1)});const g=ce(l.computed(()=>n.disabled)),x=ue(l.computed(()=>n.readonly)),j=e,N=l.computed(()=>({[j]:!0})),E=v=>{c(v,"value",o.value,!0)};let M=Y(n,"hintText"),C=Y(n,"hintVisible");const D=v=>{const b=[];return v.forEach((y,w)=>{const V=ke(n,y),T=Fe(n,y),O=L.toBoolean(y.disabled),k={key:`${V}_${w}`,class:n.itemClass,label:V,disabled:O,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?b.push(l.h(f.ElCheckboxButton,k,{default:()=>[T]})):b.push(l.h(f.ElCheckbox,k,{default:()=>[T]}))}),b};return()=>{const b={...a.attrs,class:N.value,disabled:g.value||x.value,modelValue:u.value,["text-color"]:n.textColor,fill:n.fill,max:L.toNumber(n.max),min:L.toNumber(n.min),onChange:E},y=[],w={};a.slots.options?w.default=a.slots.options:w.default=()=>D(o.value);const V=l.h(f.ElCheckboxGroup,b,w);y.push(V);const T={default:()=>y};if(a.slots.default){const _=a.slots.default();T.label=()=>_}const m={...ie(n,ar),hintText:M.value,hintVisible:C.value,prop:`${n.prop??n.name}_item`};return l.h(r,m,T)}}}}const{componentName:ci,create:fi,scope:di}=W("checkbox-item"),lr=fi(ui(ci,di,ae)),ir={modelValue:{type:[Number,String],required:!1}};function hi(e,t,r){return{props:{...ne,...oe,...ir},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),u=ce(l.computed(()=>n.disabled)),s=ue(l.computed(()=>n.readonly)),c=Y(n,"modelValue",E=>L.toNumber(E)),o=e,h=l.computed(()=>({[o]:!0})),g=E=>{i("update:modelValue",E),i("change",E)};let x=Y(n,"hintText"),j=l.ref(!1);const N=l.ref();return se({}),()=>{const M={...a.attrs,ref:N,class:h.value,readonly:s.value||u.value,modelValue:c.value,onChange:g},C={},D=[],v=l.h(f.ElRate,M,C);D.push(v);const b={default:()=>D};if(a.slots.default){const T=a.slots.default();b.label=()=>T}const w={...ie(n,ir),hintText:x.value,hintVisible:j.value,prop:`${n.prop}_item`};return l.h(r,w,b)}}}}const{componentName:gi,create:mi,scope:pi}=W("rate-item"),or=mi(hi(gi,pi,ae)),sr={modelValue:{type:[Boolean,String,Number],required:!1}};function yi(e,t,r){return{props:{...ne,...oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:i}=re({componentName:e},n.prop??n.name),u=ce(l.computed(()=>n.disabled)),s=ue(l.computed(()=>n.readonly)),c=Y(n,"modelValue"),o=e,h=l.computed(()=>({[o]:!0})),g=E=>{i("update:modelValue",E),i("change",E)};let x=Y(n,"hintText"),j=Y(n,"hintVisible");const N=l.ref();return se({}),()=>{const M={...a.attrs,ref:N,class:h.value,readonly:s.value,disabled:u.value,modelValue:c.value,onChange:g},C={},D=[],v=l.h(f.ElSwitch,M,C);D.push(v);const b={default:()=>D};if(a.slots.default){const T=a.slots.default();b.label=()=>T}const w={...ie(n,sr),hintText:x.value,hintVisible:j.value,prop:`${n.prop}_item`};return l.h(r,w,b)}}}}const{componentName:bi,create:wi,scope:Si}=W("switch-item"),ur=wi(yi(bi,Si,ae)),$i=Symbol.for("InnerPageScopeKey"),Ei=Symbol.for("DialogItemStateKey");function vi(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){l.provide($i,!0);const a={};l.provide(Ei,a);const i=c=>{typeof a.beforeClose=="function"&&a.beforeClose(c)},u=l.ref(!0),s=c=>{u.value=c};return()=>{const o={...n.attrs,title:r.title,draggable:r.draggable,modelValue:u.value,"onUpdate:modelValue":s,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":i},h={};if(typeof n.slots.default=="function"){const g=n.slots.default();h.default=()=>g}return l.h(f.ElDialog,o,h)}}}}const{componentName:Wi,create:Oi,scope:Yi}=W("dialog-item"),cr=Oi(vi());var ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",u="second",s="minute",c="hour",o="day",h="week",g="month",x="quarter",j="year",N="date",E="Invalid Date",M=/^(\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(I,R,p){var S=String(I);return!S||S.length>=R?I:""+Array(R+1-S.length).join(p)+I},b={s:v,z:function(I){var R=-I.utcOffset(),p=Math.abs(R),S=Math.floor(p/60),$=p%60;return(R<=0?"+":"-")+v(S,2,"0")+":"+v($,2,"0")},m:function I(R,p){if(R.date()<p.date())return-I(p,R);var S=12*(p.year()-R.year())+(p.month()-R.month()),$=R.clone().add(S,g),A=p-$<0,F=R.clone().add(S+(A?-1:1),g);return+(-(S+(p-$)/(A?$-F:F-$))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:g,y:j,w:h,d:o,D:N,h:c,m:s,s:u,ms:i,Q:x}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},y="en",w={};w[y]=D;var V=function(I){return I instanceof k},T=function I(R,p,S){var $;if(!R)return y;if(typeof R=="string"){var A=R.toLowerCase();w[A]&&($=A),p&&(w[A]=p,$=A);var F=R.split("-");if(!$&&F.length>1)return I(F[0])}else{var q=R.name;w[q]=R,$=q}return!S&&$&&(y=$),$||!S&&y},O=function(I,R){if(V(I))return I.clone();var p=typeof R=="object"?R:{};return p.date=I,p.args=arguments,new k(p)},m=b;m.l=T,m.i=V,m.w=function(I,R){return O(I,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var k=function(){function I(p){this.$L=T(p.locale,null,!0),this.parse(p)}var R=I.prototype;return R.parse=function(p){this.$d=function(S){var $=S.date,A=S.utc;if($===null)return new Date(NaN);if(m.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var F=$.match(M);if(F){var q=F[2]-1||0,B=(F[7]||"0").substring(0,3);return A?new Date(Date.UTC(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)):new Date(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,B)}}return new Date($)}(p),this.$x=p.x||{},this.init()},R.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},R.$utils=function(){return m},R.isValid=function(){return this.$d.toString()!==E},R.isSame=function(p,S){var $=O(p);return this.startOf(S)<=$&&$<=this.endOf(S)},R.isAfter=function(p,S){return O(p)<this.startOf(S)},R.isBefore=function(p,S){return this.endOf(S)<O(p)},R.$g=function(p,S,$){return m.u(p)?this[S]:this.set($,p)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(p,S){var $=this,A=!!m.u(S)||S,F=m.p(p),q=function(le,ee){var de=m.w($.$u?Date.UTC($.$y,ee,le):new Date($.$y,ee,le),$);return A?de:de.endOf(o)},B=function(le,ee){return m.w($.toDate()[le].apply($.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(ee)),$)},P=this.$W,H=this.$M,z=this.$D,G="set"+(this.$u?"UTC":"");switch(F){case j:return A?q(1,0):q(31,11);case g:return A?q(1,H):q(0,H+1);case h:var ge=this.$locale().weekStart||0,fe=(P<ge?P+7:P)-ge;return q(A?z-fe:z+(6-fe),H);case o:case N:return B(G+"Hours",0);case c:return B(G+"Minutes",1);case s:return B(G+"Seconds",2);case u:return B(G+"Milliseconds",3);default:return this.clone()}},R.endOf=function(p){return this.startOf(p,!1)},R.$set=function(p,S){var $,A=m.p(p),F="set"+(this.$u?"UTC":""),q=($={},$[o]=F+"Date",$[N]=F+"Date",$[g]=F+"Month",$[j]=F+"FullYear",$[c]=F+"Hours",$[s]=F+"Minutes",$[u]=F+"Seconds",$[i]=F+"Milliseconds",$)[A],B=A===o?this.$D+(S-this.$W):S;if(A===g||A===j){var P=this.clone().set(N,1);P.$d[q](B),P.init(),this.$d=P.set(N,Math.min(this.$D,P.daysInMonth())).$d}else q&&this.$d[q](B);return this.init(),this},R.set=function(p,S){return this.clone().$set(p,S)},R.get=function(p){return this[m.p(p)]()},R.add=function(p,S){var $,A=this;p=Number(p);var F=m.p(S),q=function(H){var z=O(A);return m.w(z.date(z.date()+Math.round(H*p)),A)};if(F===g)return this.set(g,this.$M+p);if(F===j)return this.set(j,this.$y+p);if(F===o)return q(1);if(F===h)return q(7);var B=($={},$[s]=n,$[c]=a,$[u]=r,$)[F]||1,P=this.$d.getTime()+p*B;return m.w(P,this)},R.subtract=function(p,S){return this.add(-1*p,S)},R.format=function(p){var S=this,$=this.$locale();if(!this.isValid())return $.invalidDate||E;var A=p||"YYYY-MM-DDTHH:mm:ssZ",F=m.z(this),q=this.$H,B=this.$m,P=this.$M,H=$.weekdays,z=$.months,G=function(ee,de,ve,Oe){return ee&&(ee[de]||ee(S,A))||ve[de].slice(0,Oe)},ge=function(ee){return m.s(q%12||12,ee,"0")},fe=$.meridiem||function(ee,de,ve){var Oe=ee<12?"AM":"PM";return ve?Oe.toLowerCase():Oe},le={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:m.s(P+1,2,"0"),MMM:G($.monthsShort,P,z,3),MMMM:G(z,P),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:G($.weekdaysMin,this.$W,H,2),ddd:G($.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(q),HH:m.s(q,2,"0"),h:ge(1),hh:ge(2),a:fe(q,B,!0),A:fe(q,B,!1),m:String(B),mm:m.s(B,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:F};return A.replace(C,function(ee,de){return de||le[ee]||F.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(p,S,$){var A,F=m.p(S),q=O(p),B=(q.utcOffset()-this.utcOffset())*n,P=this-q,H=m.m(this,q);return H=(A={},A[j]=H/12,A[g]=H,A[x]=H/3,A[h]=(P-B)/6048e5,A[o]=(P-B)/864e5,A[c]=P/a,A[s]=P/n,A[u]=P/r,A)[F]||P,$?H:m.a(H)},R.daysInMonth=function(){return this.endOf(g).$D},R.$locale=function(){return w[this.$L]},R.locale=function(p,S){if(!p)return this.$L;var $=this.clone(),A=T(p,S,!0);return A&&($.$L=A),$},R.clone=function(){return m.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},I}(),_=k.prototype;return O.prototype=_,[["$ms",i],["$s",u],["$m",s],["$H",c],["$W",o],["$M",g],["$y",j],["$D",N]].forEach(function(I){_[I[1]]=function(R){return this.$g(R,I[0],I[1])}}),O.extend=function(I,R){return I.$i||(I(R,k,O),I.$i=!0),O},O.locale=T,O.isDayjs=V,O.unix=function(I){return O(1e3*I)},O.en=w[y],O.Ls=w,O.p={},O})})(fr);const Ee=fr.exports;var dr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,s={},c=function(E){return(E=+E)+(E>68?1900:2e3)},o=function(E){return function(M){this[E]=+M}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(E){(this.zone||(this.zone={})).offset=function(M){if(!M||M==="Z")return 0;var C=M.match(/([+-]|\d\d)/g),D=60*C[1]+(+C[2]||0);return D===0?0:C[0]==="+"?-D:D}(E)}],g=function(E){var M=s[E];return M&&(M.indexOf?M:M.s.concat(M.f))},x=function(E,M){var C,D=s.meridiem;if(D){for(var v=1;v<=24;v+=1)if(E.indexOf(D(v,0,M))>-1){C=v>12;break}}else C=E===(M?"pm":"PM");return C},j={A:[u,function(E){this.afternoon=x(E,!1)}],a:[u,function(E){this.afternoon=x(E,!0)}],S:[/\d/,function(E){this.milliseconds=100*+E}],SS:[a,function(E){this.milliseconds=10*+E}],SSS:[/\d{3}/,function(E){this.milliseconds=+E}],s:[i,o("seconds")],ss:[i,o("seconds")],m:[i,o("minutes")],mm:[i,o("minutes")],H:[i,o("hours")],h:[i,o("hours")],HH:[i,o("hours")],hh:[i,o("hours")],D:[i,o("day")],DD:[a,o("day")],Do:[u,function(E){var M=s.ordinal,C=E.match(/\d+/);if(this.day=C[0],M)for(var D=1;D<=31;D+=1)M(D).replace(/\[|\]/g,"")===E&&(this.day=D)}],M:[i,o("month")],MM:[a,o("month")],MMM:[u,function(E){var M=g("months"),C=(g("monthsShort")||M.map(function(D){return D.slice(0,3)})).indexOf(E)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[u,function(E){var M=g("months").indexOf(E)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,o("year")],YY:[a,function(E){this.year=c(E)}],YYYY:[/\d{4}/,o("year")],Z:h,ZZ:h};function N(E){var M,C;M=E,C=s&&s.formats;for(var D=(E=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,m,k){var _=k&&k.toUpperCase();return m||C[k]||r[k]||C[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,R,p){return R||p.slice(1)})})).match(n),v=D.length,b=0;b<v;b+=1){var y=D[b],w=j[y],V=w&&w[0],T=w&&w[1];D[b]=T?{regex:V,parser:T}:y.replace(/^\[|\]$/g,"")}return function(O){for(var m={},k=0,_=0;k<v;k+=1){var I=D[k];if(typeof I=="string")_+=I.length;else{var R=I.regex,p=I.parser,S=O.slice(_),$=R.exec(S)[0];p.call(m,$),O=O.replace($,"")}}return function(A){var F=A.afternoon;if(F!==void 0){var q=A.hours;F?q<12&&(A.hours+=12):q===12&&(A.hours=0),delete A.afternoon}}(m),m}}return function(E,M,C){C.p.customParseFormat=!0,E&&E.parseTwoDigitYear&&(c=E.parseTwoDigitYear);var D=M.prototype,v=D.parse;D.parse=function(b){var y=b.date,w=b.utc,V=b.args;this.$u=w;var T=V[1];if(typeof T=="string"){var O=V[2]===!0,m=V[3]===!0,k=O||m,_=V[2];m&&(_=V[2]),s=this.$locale(),!O&&_&&(s=C.Ls[_]),this.$d=function(S,$,A){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*S);var F=N($)(S),q=F.year,B=F.month,P=F.day,H=F.hours,z=F.minutes,G=F.seconds,ge=F.milliseconds,fe=F.zone,le=new Date,ee=P||(q||B?1:le.getDate()),de=q||le.getFullYear(),ve=0;q&&!B||(ve=B>0?B-1:le.getMonth());var Oe=H||0,Dt=z||0,Ft=G||0,kt=ge||0;return fe?new Date(Date.UTC(de,ve,ee,Oe,Dt,Ft,kt+60*fe.offset*1e3)):A?new Date(Date.UTC(de,ve,ee,Oe,Dt,Ft,kt)):new Date(de,ve,ee,Oe,Dt,Ft,kt)}catch{return new Date("")}}(y,T,w),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),k&&y!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var I=T.length,R=1;R<=I;R+=1){V[1]=T[R-1];var p=C.apply(this,V);if(p.isValid()){this.$d=p.$d,this.$L=p.$L,this.init();break}R===I&&(this.$d=new Date(""))}else v.call(this,b)}}})})(dr);const Ci=dr.exports;var hr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n,a){var i=n.prototype,u=i.format;a.en.ordinal=function(s){var c=["th","st","nd","rd"],o=s%100;return"["+s+(c[(o-20)%10]||c[o]||c[0])+"]"},i.format=function(s){var c=this,o=this.$locale();if(!this.isValid())return u.bind(this)(s);var h=this.$utils(),g=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(x){switch(x){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return o.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return o.ordinal(c.week(),"W");case"w":case"ww":return h.s(c.week(),x==="w"?1:2,"0");case"W":case"WW":return h.s(c.isoWeek(),x==="W"?1:2,"0");case"k":case"kk":return h.s(String(c.$H===0?24:c.$H),x==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return x}});return u.bind(this)(g)}}})})(hr);const xi=hr.exports;var gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n,a){var i=n.prototype,u=function(g){return g&&(g.indexOf?g:g.s)},s=function(g,x,j,N,E){var M=g.name?g:g.$locale(),C=u(M[x]),D=u(M[j]),v=C||D.map(function(y){return y.slice(0,N)});if(!E)return v;var b=M.weekStart;return v.map(function(y,w){return v[(w+(b||0))%7]})},c=function(){return a.Ls[a.locale()]},o=function(g,x){return g.formats[x]||function(j){return j.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,E,M){return E||M.slice(1)})}(g.formats[x.toUpperCase()])},h=function(){var g=this;return{months:function(x){return x?x.format("MMMM"):s(g,"months")},monthsShort:function(x){return x?x.format("MMM"):s(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(x){return x?x.format("dddd"):s(g,"weekdays")},weekdaysMin:function(x){return x?x.format("dd"):s(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(x){return x?x.format("ddd"):s(g,"weekdaysShort","weekdays",3)},longDateFormat:function(x){return o(g.$locale(),x)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return h.bind(this)()},a.localeData=function(){var g=c();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(x){return o(g,x)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return s(c(),"months")},a.monthsShort=function(){return s(c(),"monthsShort","months",3)},a.weekdays=function(g){return s(c(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return s(c(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return s(c(),"weekdaysMin","weekdays",2,g)}}})})(gr);const Vi=gr.exports;var mr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){var r="week",n="year";return function(a,i,u){var s=i.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var o=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=u(this).startOf(n).add(1,n).date(o),g=u(this).endOf(r);if(h.isBefore(g))return 1}var x=u(this).startOf(n).date(o).startOf(r).subtract(1,"millisecond"),j=this.diff(x,r,!0);return j<0?u(this).startOf("week").week():Math.ceil(j)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(mr);const Ti=mr.exports;var pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),i=this.week(),u=this.year();return i===1&&a===11?u+1:a===0&&i>=52?u-1:u}}})})(pr);const Ni=pr.exports;var yr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n,a){n.prototype.dayOfYear=function(i){var u=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?u:this.add(i-u,"day")}}})})(yr);const Ai=yr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(br);const Ii=br.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(wr);const Ri=wr.exports;Ee.extend(Vi),Ee.extend(xi),Ee.extend(Ci),Ee.extend(Ti),Ee.extend(Ni),Ee.extend(Ai),Ee.extend(Ii),Ee.extend(Ri);const ji=[dn,hn,gn,mn,bn,ae,vn,On,ct,xn,In,jn,Dn,kn,Hn,Gn,Yn,Zn,Qn,nr,lr,or,ur,cr,Mt,ut],Mi=new Gr(ji,[Ur],"4.0.0");Object.defineProperty(d,"clone",{enumerable:!0,get:()=>L.clone}),Object.defineProperty(d,"extend",{enumerable:!0,get:()=>L.extend}),Object.defineProperty(d,"isArray",{enumerable:!0,get:()=>L.isArray}),Object.defineProperty(d,"isDate",{enumerable:!0,get:()=>L.isDate}),Object.defineProperty(d,"isESModule",{enumerable:!0,get:()=>L.isESModule}),Object.defineProperty(d,"isEqual",{enumerable:!0,get:()=>L.isEqual}),Object.defineProperty(d,"isFunction",{enumerable:!0,get:()=>L.isFunction}),Object.defineProperty(d,"isMap",{enumerable:!0,get:()=>L.isMap}),Object.defineProperty(d,"isObject",{enumerable:!0,get:()=>L.isObject}),Object.defineProperty(d,"isPlainObject",{enumerable:!0,get:()=>L.isPlainObject}),Object.defineProperty(d,"isPromise",{enumerable:!0,get:()=>L.isPromise}),Object.defineProperty(d,"isSet",{enumerable:!0,get:()=>L.isSet}),Object.defineProperty(d,"isString",{enumerable:!0,get:()=>L.isString}),Object.defineProperty(d,"isSymbol",{enumerable:!0,get:()=>L.isSymbol}),Object.defineProperty(d,"toBoolean",{enumerable:!0,get:()=>L.toBoolean}),Object.defineProperty(d,"toNumber",{enumerable:!0,get:()=>L.toNumber}),Object.defineProperty(d,"toTypeString",{enumerable:!0,get:()=>L.toTypeString}),Object.defineProperty(d,"FoxAffix",{enumerable:!0,get:()=>f.ElAffix}),Object.defineProperty(d,"FoxAlert",{enumerable:!0,get:()=>f.ElAlert}),Object.defineProperty(d,"FoxAside",{enumerable:!0,get:()=>f.ElAside}),Object.defineProperty(d,"FoxAutoResizer",{enumerable:!0,get:()=>f.ElAutoResizer}),Object.defineProperty(d,"FoxAutocomplete",{enumerable:!0,get:()=>f.ElAutocomplete}),Object.defineProperty(d,"FoxAvatar",{enumerable:!0,get:()=>f.ElAvatar}),Object.defineProperty(d,"FoxBacktop",{enumerable:!0,get:()=>f.ElBacktop}),Object.defineProperty(d,"FoxBadge",{enumerable:!0,get:()=>f.ElBadge}),Object.defineProperty(d,"FoxBreadcrumb",{enumerable:!0,get:()=>f.ElBreadcrumb}),Object.defineProperty(d,"FoxBreadcrumbItem",{enumerable:!0,get:()=>f.ElBreadcrumbItem}),Object.defineProperty(d,"FoxButton",{enumerable:!0,get:()=>f.ElButton}),Object.defineProperty(d,"FoxButtonGroup",{enumerable:!0,get:()=>f.ElButtonGroup}),Object.defineProperty(d,"FoxCalendar",{enumerable:!0,get:()=>f.ElCalendar}),Object.defineProperty(d,"FoxCard",{enumerable:!0,get:()=>f.ElCard}),Object.defineProperty(d,"FoxCarousel",{enumerable:!0,get:()=>f.ElCarousel}),Object.defineProperty(d,"FoxCarouselItem",{enumerable:!0,get:()=>f.ElCarouselItem}),Object.defineProperty(d,"FoxCascader",{enumerable:!0,get:()=>f.ElCascader}),Object.defineProperty(d,"FoxCascaderPanel",{enumerable:!0,get:()=>f.ElCascaderPanel}),Object.defineProperty(d,"FoxCheckTag",{enumerable:!0,get:()=>f.ElCheckTag}),Object.defineProperty(d,"FoxCheckbox",{enumerable:!0,get:()=>f.ElCheckbox}),Object.defineProperty(d,"FoxCheckboxButton",{enumerable:!0,get:()=>f.ElCheckboxButton}),Object.defineProperty(d,"FoxCheckboxGroup",{enumerable:!0,get:()=>f.ElCheckboxGroup}),Object.defineProperty(d,"FoxCol",{enumerable:!0,get:()=>f.ElCol}),Object.defineProperty(d,"FoxCollapse",{enumerable:!0,get:()=>f.ElCollapse}),Object.defineProperty(d,"FoxCollapseItem",{enumerable:!0,get:()=>f.ElCollapseItem}),Object.defineProperty(d,"FoxCollapseTransition",{enumerable:!0,get:()=>f.ElCollapseTransition}),Object.defineProperty(d,"FoxColorPicker",{enumerable:!0,get:()=>f.ElColorPicker}),Object.defineProperty(d,"FoxConfigProvider",{enumerable:!0,get:()=>f.ElConfigProvider}),Object.defineProperty(d,"FoxContainer",{enumerable:!0,get:()=>f.ElContainer}),Object.defineProperty(d,"FoxDatePicker",{enumerable:!0,get:()=>f.ElDatePicker}),Object.defineProperty(d,"FoxDescriptions",{enumerable:!0,get:()=>f.ElDescriptions}),Object.defineProperty(d,"FoxDescriptionsItem",{enumerable:!0,get:()=>f.ElDescriptionsItem}),Object.defineProperty(d,"FoxDialog",{enumerable:!0,get:()=>f.ElDialog}),Object.defineProperty(d,"FoxDivider",{enumerable:!0,get:()=>f.ElDivider}),Object.defineProperty(d,"FoxDrawer",{enumerable:!0,get:()=>f.ElDrawer}),Object.defineProperty(d,"FoxDropdown",{enumerable:!0,get:()=>f.ElDropdown}),Object.defineProperty(d,"FoxDropdownItem",{enumerable:!0,get:()=>f.ElDropdownItem}),Object.defineProperty(d,"FoxDropdownMenu",{enumerable:!0,get:()=>f.ElDropdownMenu}),Object.defineProperty(d,"FoxEmpty",{enumerable:!0,get:()=>f.ElEmpty}),Object.defineProperty(d,"FoxFooter",{enumerable:!0,get:()=>f.ElFooter}),Object.defineProperty(d,"FoxForm",{enumerable:!0,get:()=>f.ElForm}),Object.defineProperty(d,"FoxFormItem",{enumerable:!0,get:()=>f.ElFormItem}),Object.defineProperty(d,"FoxHeader",{enumerable:!0,get:()=>f.ElHeader}),Object.defineProperty(d,"FoxIcon",{enumerable:!0,get:()=>f.ElIcon}),Object.defineProperty(d,"FoxImage",{enumerable:!0,get:()=>f.ElImage}),Object.defineProperty(d,"FoxImageViewer",{enumerable:!0,get:()=>f.ElImageViewer}),Object.defineProperty(d,"FoxInput",{enumerable:!0,get:()=>f.ElInput}),Object.defineProperty(d,"FoxInputNumber",{enumerable:!0,get:()=>f.ElInputNumber}),Object.defineProperty(d,"FoxLink",{enumerable:!0,get:()=>f.ElLink}),Object.defineProperty(d,"FoxMain",{enumerable:!0,get:()=>f.ElMain}),Object.defineProperty(d,"FoxMenu",{enumerable:!0,get:()=>f.ElMenu}),Object.defineProperty(d,"FoxMenuItem",{enumerable:!0,get:()=>f.ElMenuItem}),Object.defineProperty(d,"FoxMenuItemGroup",{enumerable:!0,get:()=>f.ElMenuItemGroup}),Object.defineProperty(d,"FoxOption",{enumerable:!0,get:()=>f.ElOption}),Object.defineProperty(d,"FoxOptionGroup",{enumerable:!0,get:()=>f.ElOptionGroup}),Object.defineProperty(d,"FoxPageHeader",{enumerable:!0,get:()=>f.ElPageHeader}),Object.defineProperty(d,"FoxPagination",{enumerable:!0,get:()=>f.ElPagination}),Object.defineProperty(d,"FoxPopconfirm",{enumerable:!0,get:()=>f.ElPopconfirm}),Object.defineProperty(d,"FoxPopover",{enumerable:!0,get:()=>f.ElPopover}),Object.defineProperty(d,"FoxPopper",{enumerable:!0,get:()=>f.ElPopper}),Object.defineProperty(d,"FoxProgress",{enumerable:!0,get:()=>f.ElProgress}),Object.defineProperty(d,"FoxRadio",{enumerable:!0,get:()=>f.ElRadio}),Object.defineProperty(d,"FoxRadioButton",{enumerable:!0,get:()=>f.ElRadioButton}),Object.defineProperty(d,"FoxRadioGroup",{enumerable:!0,get:()=>f.ElRadioGroup}),Object.defineProperty(d,"FoxRate",{enumerable:!0,get:()=>f.ElRate}),Object.defineProperty(d,"FoxResult",{enumerable:!0,get:()=>f.ElResult}),Object.defineProperty(d,"FoxRow",{enumerable:!0,get:()=>f.ElRow}),Object.defineProperty(d,"FoxScrollbar",{enumerable:!0,get:()=>f.ElScrollbar}),Object.defineProperty(d,"FoxSelect",{enumerable:!0,get:()=>f.ElSelect}),Object.defineProperty(d,"FoxSelectV2",{enumerable:!0,get:()=>f.ElSelectV2}),Object.defineProperty(d,"FoxSkeleton",{enumerable:!0,get:()=>f.ElSkeleton}),Object.defineProperty(d,"FoxSkeletonItem",{enumerable:!0,get:()=>f.ElSkeletonItem}),Object.defineProperty(d,"FoxSlider",{enumerable:!0,get:()=>f.ElSlider}),Object.defineProperty(d,"FoxSpace",{enumerable:!0,get:()=>f.ElSpace}),Object.defineProperty(d,"FoxStep",{enumerable:!0,get:()=>f.ElStep}),Object.defineProperty(d,"FoxSteps",{enumerable:!0,get:()=>f.ElSteps}),Object.defineProperty(d,"FoxSubMenu",{enumerable:!0,get:()=>f.ElSubMenu}),Object.defineProperty(d,"FoxSwitch",{enumerable:!0,get:()=>f.ElSwitch}),Object.defineProperty(d,"FoxTabPane",{enumerable:!0,get:()=>f.ElTabPane}),Object.defineProperty(d,"FoxTable",{enumerable:!0,get:()=>f.ElTable}),Object.defineProperty(d,"FoxTableColumn",{enumerable:!0,get:()=>f.ElTableColumn}),Object.defineProperty(d,"FoxTableV2",{enumerable:!0,get:()=>f.ElTableV2}),Object.defineProperty(d,"FoxTabs",{enumerable:!0,get:()=>f.ElTabs}),Object.defineProperty(d,"FoxTag",{enumerable:!0,get:()=>f.ElTag}),Object.defineProperty(d,"FoxTimePicker",{enumerable:!0,get:()=>f.ElTimePicker}),Object.defineProperty(d,"FoxTimeSelect",{enumerable:!0,get:()=>f.ElTimeSelect}),Object.defineProperty(d,"FoxTimeline",{enumerable:!0,get:()=>f.ElTimeline}),Object.defineProperty(d,"FoxTimelineItem",{enumerable:!0,get:()=>f.ElTimelineItem}),Object.defineProperty(d,"FoxTooltip",{enumerable:!0,get:()=>f.ElTooltip}),Object.defineProperty(d,"FoxTransfer",{enumerable:!0,get:()=>f.ElTransfer}),Object.defineProperty(d,"FoxTree",{enumerable:!0,get:()=>f.ElTree}),Object.defineProperty(d,"FoxTreeSelect",{enumerable:!0,get:()=>f.ElTreeSelect}),Object.defineProperty(d,"FoxTreeV2",{enumerable:!0,get:()=>f.ElTreeV2}),Object.defineProperty(d,"FoxUpload",{enumerable:!0,get:()=>f.ElUpload}),d.AutocompleteItem=Yn,d.Broadcast=Et,d.BroadcastKey=J,d.CascaderItem=Gn,d.CheckboxItem=lr,d.Content=mn,d.DataItemsKey=Ae,d.DateItem=jn,d.DialogItem=cr,d.Domain=Ot,d.DomainKey=be,d.FooterBar=gn,d.Group=bn,d.HeaderBar=hn,d.HintText=ct,d.InputItem=xn,d.Item=ae,d.Mapping=Mt,d.MoneyItem=Hn,d.Page=dn,d.Price=ut,d.PriorityPolicy=nt,d.RadioItem=nr,d.RateItem=or,d.RowItem=On,d.SelectItem=In,d.SlotItem=vn,d.SwitchItem=ur,d.TableItem=Qn,d.TableMappingColumn=Zn,d.TimeItem=Dn,d.TimeSelectItem=kn,d.UniqueID=Sn,d.ValidateSchema=nn,d.ValidateSchemaKey=pe,d.clearNonNumber=vr,d.compareTo=St,d.createBroadcast=Ye,d.createValidateSchema=Ze,d.debounce=kr,d.decimalLength=Ut,d.default=Mi,d.defineBroadcast=Tr,d.defineDataItem=an,d.defineDomain=xt,d.defineItem=re,d.definePageState=ln,d.deleteGlobalValidator=Rr,d.disabledProperty=ce,d.divide=wt,d.excludeProps=ie,d.floatData=Vr,d.getGlobalValidateCheckEvents=Qt,d.getGlobalValidateResetEvents=tn,d.getPageContentAreaHeight=et,d.getPageContentAreaWidth=tt,d.getPageFooterAreaHeight=Qe,d.getPageHeaderAreaHeight=Je,d.getRootDomain=He,d.includeProps=xr,d.indexOf=Or,d.integerLength=Yt,d.isBrowser=Pe,d.isEmptyString=X,d.isInnerPage=Br,d.isNumberString=Wt,d.isRegExp=Gt,d.isSubPage=Pr,d.lastIndexOf=Cr,d.multiply=Ht,d.negate=Kt,d.numberFormat=$t,d.property=Ie,d.raf=Er,d.readonlyProperty=ue,d.setGlobalValidateCheckEvents=jr,d.setGlobalValidateHandler=Ar,d.setGlobalValidateMessages=Dr,d.setGlobalValidateResetEvents=Mr,d.setGlobalValidator=Ir,d.throttle=vt,d.toPadding=he,d.toPx=Q,d.toPxDesc=U,d.toValue=Y,d.unNumberFormat=zt,d.updatePageState=Vt,d.useBroadcast=Le,d.useDomain=we,d.useExpose=se,d.usePageState=Xe,d.usePosition=$n,d.useRect=st,d.valueLength=We,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function We(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=qt(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 qt(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 qt(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 qe(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=qe(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===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=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(Tr(f,o)),r==1&&(f="-"+f),f}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 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=We(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(qe(u,r-2))}function pt(e,t){return e=e.toString(),t=t.toString(),t=bt(t),We(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,qe(yt(e,t),0,Z.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=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=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=Z.HALF_EVEN){if(t=K.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return qe(t,r,n)}round(t=0,r=Z.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new K(qe(this.value,t,r))}static floor(t){return t=K.validate(t),t.indexOf(".")===-1?t:K.round(t,0,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),We(t,r)}add(t){return new K(We(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 Wt(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 Yt(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Ut(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function Zt(e,t,r){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(r,"")}function Nr(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 Ir(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(r=>{if(_.isEqual(e,r))return!0}):t.indexOf(e)}function xr(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(_.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 Ar(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 Rr=(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 Et{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,r,n){this.parent=t,this.proxy=r,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const r=this.children.findIndex(n=>t===n);r!==-1&&this.children.splice(r,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,r,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let 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 Ye(e,t,r,n){const l=new Et(t,e,r);if(n&&typeof n=="object")for(const o in n)l.on(o,n[o]);return l}function jr(e,t,r){const n=r;if(n[Q])return n[Q];const l=a.inject(Q,null),o=new Et(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 kr{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 Xt=new kr;function Dr(e){Xt=e}function Mr(e,t){Oe.default.setValidator(e,t)}function Br(e){Oe.default.deleteValidator(e)}let Jt=["blur","clear"];function qr(e){Jt=e}function Qt(){return Jt}let en=["focus","change"];function Fr(e){en=e}function tn(){return en}function Pr(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=Xt;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 Ze(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 Lr{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 _r(e,t){let r=0;return function(...n){const l=Date.now();l-r>t&&(Reflect.apply(e,{},[...n]),r=l)}}function vt(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 Hr=new Ct;function Ke(){return Hr}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=E=>{o[Ot]||O(E),i.set("modelValue",E)},f=()=>i.getForSelf("modelValue")??null,g=()=>o[Ot]??null,O=E=>{const j={};_.extend(!0,j,a.toRaw(E)),o[Ot]=j};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 E=a.inject(Q,null);R=Ye(o,E,u,n),i.broadcast=R,o[Q]=R,a.provide(Q,R),o.broadcast=(N,D,...V)=>Reflect.apply(R.emit,R,[N,D,...V]);const j=a.inject(ye,null);T=Ze(o,j,{componentName:""}),i.validateSchema=T,o[ye]=T,a.provide(ye,T),o[xe]=new Map,o.validate=(N=!0)=>{const D=[];let V=null;if(N===!0)V={name:"*"};else if(Array.isArray(N)&&N.length>0){const b=N;V={name:p=>p?b.indexOf(p)!==-1:!1}}else if(N!=null&&typeof N=="object"){const b=N;if(Array.isArray(b.include)&&b.include.length>0){const p=b.include;V={name:w=>w?p.indexOf(w)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const p=b.exclude;V={name:w=>w?p.indexOf(w)===-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(w=>{w.pass===!1&&Array.isArray(w.errors)&&(p=[...p,...w.errors])}),p.length>0?{pass:!1,errors:p}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(N,D=!0)=>{if(D){const V=Reflect.ownKeys(N),b=[...V],p={name:w=>{const y=V.includes(w);if(y){const $=b.findIndex(I=>w===I);$!==-1&&b.splice($,1)}return y}};R?.emitToChildren(p,"setNameValidateRules",N,!1),b.length>0&&b.forEach(w=>{let y=String(w);const I=an(i,y,{componentName:"",fieldName:y,pureDataValidate:!0},R,T);o[xe].set(y,I);const m=N[y];m&&I.validateSchema.setRule(m)})}},o.clearValidate=(N=!0)=>{let D=null;if(N===!0)D={name:"*"};else if(Array.isArray(N)&&N.length>0){const V=N;D={name:b=>b?V.indexOf(b)!==-1:!1}}else if(N!=null&&typeof N=="object"){const V=N;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=N=>{const D=f();if(!D)return;const V={};if(_.extend(!0,V,g()??{}),Array.isArray(N))N.forEach(b=>{D[b]=V[b]});else if(N&&Array.isArray(N.include))(N.include??[]).forEach(p=>{D[p]=V[p]});else if(N&&Array.isArray(N.exclude)){let b=N.exclude??[];Reflect.ownKeys(V).forEach(p=>{b.includes(p)||(D[p]=V[p])})}else Object.assign(D,V);o.clearValidate(N)},o.setModelValue=(N,D)=>{!D||D===u?c(N):R?.emitToChildren({name:D},"setModelValue",N)},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=Ye(l,s,o,r);l[Q]=u,a.provide(Q,u),l.broadcast=(T,E,...j)=>Reflect.apply(u.emit,u,[T,E,...j]);const i=a.inject(ye,null);e.fieldName=e.fieldName??o;const c=Ze(l,i,e);l[ye]=c,a.provide(ye,c),l.validate=(T=null)=>{const E=[];if(!Array.isArray(T)||T.indexOf(o)!==-1){const N=c?.validate();E.push(N)}let j=null;if(T===!0)j={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;j={name:D=>D?N.indexOf(D)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Array.isArray(N.include)&&N.include.length>0){const D=N.include;j={name:V=>V?D.indexOf(V)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const D=N.exclude;j={name:V=>V?D.indexOf(V)===-1:!1}}}if(j){const N=u.emitToChildren(j,"validate",!1);Reflect.apply([].push,E,N)}return E.length==1?E[0]:E.length>1?Promise.all(E).then(N=>{let D=[];return N.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,E=!1)=>{const j=T[o];if(j&&c?.setRule(j),E){const N={name:D=>Reflect.ownKeys(T).includes(D)};u.emitToChildren(N,"setNameValidateRules",T,!1)}},l.clearValidate=(T=null)=>{(!Array.isArray(T)||T.indexOf(t??"")!==-1)&&c?.clear();let E=null;if(T===!0)E={name:"*"};else if(Array.isArray(T)&&T.length>0){const j=T;E={name:N=>N?j.indexOf(N)!==-1:!1}}else if(T!=null&&typeof T=="object"){const j=T;if(Array.isArray(j.include)&&j.include.length>0){const N=j.include;E={name:D=>D?N.indexOf(D)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const N=j.exclude;E={name:D=>D?N.indexOf(D)===-1:!1}}}E&&u.emitToChildren(E,"clearValidate",!1)};const f=new Lr(l);l[rn]=f;const g=vt((T="validate")=>{T==="reset"?c.clear():c.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Qt()).forEach(T=>{f.on(T,E=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:tn()).forEach(T=>{f.on(T,E=>{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,...E)=>{Reflect.apply(f.emit,f,[T,...E])},onEvent:(T,E)=>{Reflect.apply(f.on,f,[E])},offEvent:(T,E)=>{Reflect.apply(f.off,f,[E])}}}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=Ze({},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=Ye(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(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=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 Vt(e,t,r={},n=!0,l=-1,o=-1,s=0,u=0){e.headerHeight=X(r.headerHeight??t.headerHeight),e.headerPadding=ge(r.headerPadding??t.headerPadding),e.footerHeight=X(r.footerHeight??t.footerHeight),e.footerPadding=ge(r.footerPadding??t.footerPadding),e.contentPadding=ge(r.contentPadding??t.contentPadding),n&&(e.height=X(r.height??t.height,o)-X(s,o)-X(u,o),e.width=X(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=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,c=e.get("footerBarHeight")??0;Vt(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,E=-1,j=0,N=0])=>{Vt(f,R,t,O,T,E,j,N)}),e.set(we,f),f}function Xe(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 Kr(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function zr(e){return!!e.getForParent(we)}var nt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(nt||{});function Nt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function 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(Nt(i,n))return i}const s=e.value;return Nt(s,n)?s:null}):a.computed(()=>{const o=e.value;return Nt(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 Gr(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 Yr(e){rt.delete(e)}function Ur(){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 Xr{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=vt(()=>{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({},Ur(),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){Gr(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){Yr(t)}getRootDomain(){return Ke()}}const Jr=[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],Qr=[h.ElInfiniteScroll,h.ElLoading,h.ElMessage,h.ElMessageBox,h.ElNotification,h.ElPopoverDirective],ea=e=>{Jr.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),Qr.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 ta=Symbol.for("InnerPageScopeKey"),na=(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(ta,!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(E=>{R.includes(E)||(O[E]=[])}),i(O)},{deep:!0}),a.onMounted(()=>{if(r.rules){const c=a.toRaw(r.rules);i(c)}}),{classes:o,styles:s}}}),{componentName:ra,create:aa,scope:Xo}=G("page"),la=aa(na(ra));function oa(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 Ve=(e,t)=>{const r=e.__vccOpts||e;for(const[n,l]of t)r[n]=l;return r},dn=Ve(la,[["render",oa]]),ia=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},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?Xe(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 y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&o){const $=ge(r.padding??o.footerPadding);return Object.assign(y,$),u&&(o.headerHeight=u),y.height=o.headerHeight,y.safeAreaTop=o.safeAreaTop,y.safeAreaTop&&(y.top=y.safeAreaTop+($.top??0),y.height=y.height+o.safeAreaTop),y.height,y.safeAreaTop,y}if(u&&(y.height=u),r.padding){const $=ge(r.padding);Object.assign(y,$)}return y});a.onUnmounted(()=>{o&&(o.headerMounted=!1)});const c=a.computed(()=>{const y={};return i.value.height!==null&&i.value.height!==void 0&&(y.height=`${i.value.height}px`),i.value.top!==null&&i.value.top!==void 0&&(y.paddingTop=`${i.value.top}px`),i.value.left!==null&&i.value.left!==void 0&&(y.paddingLeft=`${i.value.left}px`),i.value.right!==null&&i.value.right!==void 0&&(y.paddingRight=`${i.value.right}px`),i.value.bottom!==null&&i.value.bottom!==void 0&&(y.paddingBottom=`${i.value.bottom}px`),y}),f=a.computed(()=>{const y={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(y.top=`${i.value.safeAreaTop}px`),y}),g=a.computed(()=>{const y={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(y.top=`${i.value.safeAreaTop}px`),y}),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),E=a.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),j=a.computed(()=>{let y={};return typeof r.leftIcon=="object"?Object.assign(y,r.leftIcon):y.name=r.leftIcon,y}),N=a.computed(()=>{let y={};return typeof r.titleIcon=="object"?Object.assign(y,r.titleIcon):y.name=r.titleIcon,y}),D=a.computed(()=>{let y={};return typeof r.rightIcon=="object"?Object.assign(y,r.rightIcon):y.name=r.rightIcon,y});function V(){n.emit("back")}function b(){n.emit("click-title")}function p(){n.emit("click-right")}function w(){n.emit("click-right-text")}return{classes:s,styles:c,mHeaderShow:R,leftStyles:f,rightStyles:g,mLeftShow:O,mTitleShow:T,mRightShow:E,mLeftIcon:j,mTitleIcon:N,mRightIcon:D,handleLeft:V,handleCenter:b,handleRight:p,handleRightText:w}}}),{componentName:sa,create:ua,scope:Jo}=G("header-bar"),ca=ua(ia(sa)),fa={key:1,class:"fox-header-bar__title"};function da(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",fa,[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=Ve(ca,[["render",da]]);function ha(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?Xe(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?X(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:ga,create:ma,scope:Qo}=G("footer-bar"),ya=ma(ha(ga));function pa(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=Ve(ya,[["render",pa]]);function ba(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=Xe(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:Sa,create:wa,scope:ei}=G("content"),$a=wa(ba(Sa));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=Ve($a,[["render",Ea]]),at="GroupStateKey",yn=Symbol.for("GroupScopeKey");function lt(){return a.inject(yn,!1)}function ot(e=!0){a.provide(yn,e)}function va(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=X(t);let g=_.toNumber(r);const O=X(n);if(!c){let E=(f-(g-1)*O)/g;for(;u!==-1&&g>1&&E<u;)g--,E=(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 Ca(e){return e===window}const st=e=>{const t=a.unref(e);if(Ca(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}`,Oa=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"},Na=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 Ia(e,t){return{props:{...te,...un,...cn},setup(r,n){const l=Tt(r.name,r,fn),o=va(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 w=a.toRaw(p),y=a.toRaw(b),$=y?Reflect.ownKeys(y):[];(w?Reflect.ownKeys(w):[]).forEach(m=>{$.includes(m)||(y[m]=[])}),i(y)},{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 $=z(r.width);b.width=$}else{const $=$e(p.value.column,r.span);$>0&&(b.width=`${$}%`)}if(r.height){const $=z(r.height);b.height=$}const w=$e(p.value.column,r.offset);w>0&&(b["margin-left"]=`${w}%`);const y=p.value.gutter/2;y>0&&(b["padding-left"]=`${y}px`,b["padding-right"]=`${y}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"),E=a.computed(()=>s?!0:r.isWrap),j=a.ref([]),N=b=>{j.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,w,y])=>{pn(l,p,w,y,!1)});let b=null;a.onMounted(()=>{if(Pe&&j.value&&j.value.length>0){const p=j.value[0];D.value=st(p).width,window.ResizeObserver&&(b=new window.ResizeObserver(()=>{const w=st(p).width;w>0&&w!==D.value&&(D.value=w)}),b.observe(p))}}),a.onUnmounted(()=>{b?.disconnect()})}const V=(b,p,w,y)=>{const $={...g.value};return p===0&&($[`${c}__first`]=!0),w>=y-1&&($[`${c}__last`]=!0),a.h("div",{ref:N,key:`${p}`,class:$},b)};return()=>{const b=[];let p=0;if(n.slots.title){const I={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},m=a.h("div",I,[n.slots.title()]);b.push(m)}else if(O.value){const I={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},m=[];if(r.showMark){const A=a.h("div",{class:{[`${c}__title-mark`]:!0}});m.push(A)}const B=a.h("div",{class:{[`${c}__title-text`]:!0}},[O.value]);m.push(B);const P=a.h("div",I,m);b.push(P)}const w=n.slots.default?n.slots.default():[];let y=[],$=0;if(r.type==="flex"){for(let I=0;I<w.length;I++){const m=w[I];if(Va(m)==="fragment"){let v=Na(m);v>o.layout.value.column?v=o.layout.value.column:v<=0&&(v=1);const C=$+v;if(C>o.layout.value.column){const x=V([...y],p++,I-1,w.length);b.push(x),$=v,y=[m]}else y.push(m),$=C;continue}const P=Oa(m),A=Ta(m);if(P==="stretch"){if($<o.layout.value.column){y.push(m);const v=V([...y],p++,I,w.length);b.push(v)}else{const v=V([...y],p++,I-1,w.length);b.push(v);const C=V([m],p++,I,w.length);b.push(C)}$=0,y=[];continue}let k=_.toNumber(P);if(k===-1){if(y.length>0){const C=V([...y],p++,I-1,w.length);b.push(C)}const v=V([m],p++,I,w.length);b.push(v),$=0,y=[];continue}k>o.layout.value.column?k=o.layout.value.column:k<=0&&(k=1);const S=$+k+A;if(S>o.layout.value.column){const v=V([...y],p++,I-1,w.length);b.push(v),$=k+A,y=[m]}else y.push(m),$=S}if(y.length>0){const I=V([...y],p++,w.length,w.length);b.push(I)}}else for(let I=0;I<w.length;I++){const m=w[I],B=V([m],p++,I,w.length);b.push(B)}return E.value?a.h("div",{class:{[`${c}`]:!0},style:f.value},[b]):b}}}}const{componentName:xa,create:Aa,scope:ti}=G("group"),bn=Aa(Ia(xa)),Sn={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ra,create:ja}=G("price"),ka=ja({props:{...Sn},setup(e){const t=a.computed(()=>({[Ra]:!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}}}),Da=["innerHTML"],Ma=["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,Da)):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,Ma)):a.createCommentVNode("",!0)],2)}const ut=Ve(ka,[["render",Ba]]),{componentName:xt,create:qa}=G("hint-text"),Fa=qa({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}}}),Pa={key:1,class:"text"};function La(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",Pa,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=Ve(Fa,[["render",La]]);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 _a(e){return e===window}const $n=e=>{const t=a.unref(e);if(!t)return{x:0,y:0};if(_a(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={},Ha=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()}},Ka=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}},za=e=>{e.unmount=Rt;let t;if(e.id){if(t=e.id,Re.has(t))return Ka(e)}else t=`hinttext_${Ha.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},Ga=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},ft={show(e,t,r={},n=!0){n&&Rt(),Ga(t);const l=$n(e),o={x:l.x,y:l.y},u=st(e).width;return za({...r,message:t,startPoint:o,width:u})},hide(e){Rt(e)},install(e){e.config.globalProperties.$hintText=ft}},{componentName:En,create:Wa}=G("item"),Ya=Wa({inheritAttrs:!0,props:{...te,...oe},setup(e,t){re({componentName:En,validate:!1},e.prop??e.name);const r=Se(),n=lt();ot(!1);const l=En,o=a.computed(()=>({[l]:!0,[`${l}__gutter`]:!0,[`${l}__stretch`]:e.span==="stretch",[`${l}__input--border`]:e.hasBorder,"is-error":!!$.value,"is-warn":!!w.value,"is-info":!!b.value})),s=a.computed(()=>{const x={};if(n&&r){const M=it(r,!1);if(M.value.type!=="flex")return e.width&&(x.width=z(e.width)),x;if(e.width)x.width=z(e.width);else{const L=$e(M.value.column,e.span);L>0&&(x.width=`${L}%`)}const q=$e(M.value.column,e.offset);q>0&&(x["margin-left"]=`${q}%`);const F=M.value.gutter/2;F>0&&(x["padding-left"]=`${F}px`,x["padding-right"]=`${F}px`)}else e.width&&(x.width=z(e.width));return x}),u=a.ref(null),i=a.computed({get:()=>u.value??_.toBoolean(e.isRequired),set:x=>{u.value=x}}),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),E=a.computed(()=>T&&T.value?{width:z(T.value)}:{}),j=a.computed(()=>({["label--string"]:!0,["label--required"]:i.value})),N=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(x){i.value=x},setErrorTip(x){V.errorTip=x},setErrorIcon(x){V.errorIcon=x},setWarnTip(x){V.warnTip=x},setWarnIcon(x){V.warnIcon=x},setInfoTip(x){V.infoTip=x},setInfoIcon(x){V.infoIcon=x}});const b=a.computed(()=>e.infoTip||V.infoTip),p=a.computed(()=>e.infoIcon||V.infoIcon),w=a.computed(()=>e.warnTip||V.warnTip),y=a.computed(()=>e.warnIcon||V.warnIcon),$=a.computed(()=>e.errorTip||V.errorTip),I=a.computed(()=>e.errorIcon||V.errorIcon),m=a.computed(()=>$.value?"error":w.value?"warn":b.value?"info":""),B=a.computed(()=>m.value.length>0),P=a.computed(()=>m.value==="error"?$.value:m.value==="warn"?w.value:m.value==="info"?b.value:""),A=a.computed(()=>m.value==="error"?I.value:m.value==="warn"?y.value:m.value==="info"?p.value:null),k=a.computed(()=>{let x={[`${l}__tip`]:!0,[`${l}__tip--${m.value}`]:!0};return m.value==="error"&&e.errorClass?x[`${e.errorClass}`]=!0:m.value==="warn"&&e.warnClass?x[`${e.warnClass}`]=!0:m.value==="info"&&e.infoClass&&(x[`${e.infoClass}`]=!0),x}),S=a.computed(()=>{let x={};return f&&f.value==="top"?x["padding-left"]="0px":T&&T.value&&(x["padding-left"]=z(T.value)),x}),v=a.ref();let C="";return a.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([x,M,q,F])=>{!v.value||(x&&!J(M)?C?ft.show(v.value,M,{...F,id:C,type:q}):C=ft.show(v.value,M,{...F,type:q}):ft.hide(C))}),{classes:o,styles:s,mainClasses:O,hasLabel:c,labelClasses:R,labelStyles:E,labelStringClasses:j,contentClasses:N,contentStyles:D,contentRef:v,hasTip:B,mTip:P,mIcon:A,tipClasses:k,tipStyles:S}}}),Ua={key:0,class:"fox-item__tip-icon"},Za={class:"fox-item__tip-text"};function Xa(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",Ua,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=Ve(Ya,[["render",Xa]]);function Ja(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:Qa,create:el,scope:ni}=G("slot-item"),vn=el(Ja(Qa));function tl(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 E=0;E<T.length;E++){if(E>0){const j=a.h("div",{class:{[`${l}__divide`]:!0}});f.push(j)}f.push(T[E])}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:nl,create:rl,scope:ri}=G("row-item"),Cn=rl(tl(nl)),On={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function al(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=y=>{g.value=y,o("update:modelValue",y),o("input",y)},E=y=>{o("change",y)};let j=U(n,"hintText"),N=a.ref(!1);const D=y=>{let I=y.target.value;i.value=!0,J(j.value)||(N.value=!0),o("focus",I,y)},V=y=>{setTimeout(()=>{N.value&&(N.value=!1),i.value=!1},0);let I=y.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),o("blur",I,y)},b=()=>{o("clear","")},p=a.computed(()=>Le(n.unit)>0),w=a.ref();return ie({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},select:()=>{w?.value.select()}}),()=>{const $={...l.attrs,ref:w,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:E,onInput:T,onFocus:D,onBlur:V},I={};l.slots.prepend&&(I.prepend=l.slots.prepend),l.slots.append&&(I.append=l.slots.append),l.slots.prefix&&(I.prefix=l.slots.prefix),l.slots.suffix?I.suffix=l.slots.suffix:p.value&&(I.suffix=()=>[n.unit]);const m=[],B=a.h(h.ElInput,$,I);m.push(B);const P={default:()=>m};if(l.slots.default){const v=l.slots.default();P.label=()=>v}const k={...le(n,On),hintText:j.value,hintVisible:N.value,prop:`${n.prop}_item`};return a.h(r,k,P)}}}}const{componentName:ll,create:ol,scope:il}=G("input-item"),Tn=ol(al(ll,il,ae));function Ne(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class sl{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 ul(){const e=a.getCurrentInstance();return new sl(e.proxy)}function Nn(e,t,r){const n=Ne(e,t),l=Ne(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=Vn(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=Ne(e,s)===o;else if(r==="item")i=Nn(e,s,o);else{let c=je(e,s);c==null&&(c=Ne(e,s)),i=c===o}if(i){l.push(s);break}}}}),l}function cl(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}};function fl(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=(S,v,C,x=!0)=>{const M=In(n,S,v,C);if(M===null){if(c.value===null||c.value.length===0)return;i.value=null,c.value=[],x&&(o("update:modelValue",null),o("change",null));return}let q=!0;if(M.length!==c.value.length)q=!1;else for(let F=0;F<M.length;F++){const L=M[F],H=c.value[F];if(!Nn(n,L,H)){q=!1;break}}if(!q){c.value=M;let F=[],L=[];M.forEach(W=>{F.push(je(n,W)),n.valueType==="text"?L.push(Ne(n,W)):n.valueType==="item"?L.push(W):L.push(je(n,W))});let H;n.multiple?(i.value=F,H=a.toRaw(L)):(i.value=F[0]??"",H=a.toRaw(L[0]??"")),x&&(o("update:modelValue",H),o("change",H))}},g=a.ref([]),O=ul();a.watch([()=>n.source,()=>n.params],async([S,v])=>{if(S){const C=await O.load("select",S,v);if(C.length>0)if(typeof C[0]=="string"){let q=C.map(F=>cl(F));g.value=q}else g.value=C}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([S,v])=>{f(v,n.valueType,S,!1)});let R=null,T=a.ref(!1);typeof n.remoteMethod=="function"&&(R=async S=>{if(S!=null){T.value=!0;try{const v=await n.remoteMethod(S);g.value=v}catch(v){console.error(v)}T.value=!1}});const E=a.ref(!1),j=ce(a.computed(()=>n.disabled)),N=ue(a.computed(()=>n.readonly)),D=e,V=a.computed(()=>({[D]:!0})),b=S=>{n.allowCreate?(o("update:modelValue",S),o("change",S),i.value=S):f(S,"value",g.value,!0)};let p=U(n,"hintText"),w=a.ref(!1);const y=S=>{let C=S.target.value;E.value=!0,J(p.value)||(w.value=!0),o("focus",C,S)},$=S=>{setTimeout(()=>{w.value&&(w.value=!1),E.value=!1},0);let C=S.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),m.value?setTimeout(()=>{o("blur",C,S)},50):o("blur",C,S)},I=()=>{o("clear","")},m=a.ref(!1),B=S=>{m.value=S,o("visible-change",S)},P=S=>{o("remove-tag",S)},A=(S,v)=>{const C=[];return S.forEach((x,M)=>{const q=Vn(n,x);if(Array.isArray(q)&&q.length>0){const F=A(q,v),L=Ne(n,x),W={key:`${L}_${M}`,label:L};C.push(a.h(h.ElOptionGroup,W,{default:()=>F}))}else{const F=je(n,x),L=Ne(n,x),H=_.toBoolean(x.disabled),Y={key:`${F}_${M}`,label:L,disabled:H,value:F};typeof v=="function"?C.push(a.h(h.ElOption,Y,{default:v})):C.push(a.h(h.ElOption,Y))}}),C},k=a.ref();return ie({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const v={...l.attrs,ref:k,class:V.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:j.value||N.value,modelValue:i.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:I,onChange:b,onFocus:y,onBlur:$,onVisibleChange:B,onRemoveTag:P};typeof R=="function"&&(v["remote-method"]=R,v.loading=T.value);const C={};l.slots.prefix&&(C.prefix=l.slots.prefix),l.slots.empty&&(C.empty=l.slots.empty),C.default=()=>A(g.value,l.slots.option);const x=[],M=a.h(h.ElSelect,v,C);x.push(M);const q={default:()=>x};if(l.slots.default){const W=l.slots.default();q.label=()=>W}const L={...le(n,xn),hintText:p.value,hintVisible:w.value,prop:`${n.prop??n.name}_item`};return a.h(r,L,q)}}}}const{componentName:dl,create:hl,scope:gl}=G("select-item"),An=hl(fl(dl,gl,ae)),Rn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function ml(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=$=>{g.value=$,o("update:modelValue",$),o("change",$)};let E=U(n,"hintText"),j=a.ref(!1);const N=$=>{let m=$.target.value;i.value=!0,J(E.value)||(j.value=!0),o("focus",m,$)},D=$=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let m=$.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,$)},V=()=>{o("clear","")},b=$=>{o("calendar-change",$)},p=($,I,m)=>{o("panel-change",$,I,m)},w=$=>{o("visible-change",$)},y=a.ref();return ie({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},handleOpen:()=>{y?.value.handleOpen()},handleClose:()=>{y?.value.handleClose()}}),()=>{const I={...l.attrs,ref:y,class:R.value,placeholder:u.placeholder.value,disabled:c.value,readonly:f.value,modelValue:g.value,["onUpdate:modelValue"]:T,onClear:V,onFocus:N,onBlur:D,onCalendarChange:b,onPanelChange:p,onVisibleChange:w},m={};l.slots["range-separator"]&&(m["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(m.default=l.slots.cell);const B=[],P=a.h(h.ElDatePicker,I,m);B.push(P);const A={default:()=>B};if(l.slots.default){const C=l.slots.default();A.label=()=>C}const S={...le(n,Rn),hintText:E.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,S,A)}}}}const{componentName:yl,create:pl,scope:bl}=G("date-item"),jn=pl(ml(yl,bl,ae)),kn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function Sl(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=w=>{g.value=w,o("update:modelValue",w),o("change",w)};let E=U(n,"hintText"),j=a.ref(!1);const N=w=>{let $=w.target.value;i.value=!0,J(E.value)||(j.value=!0),o("focus",$,w)},D=w=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let $=w.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),o("blur",$,w)},V=()=>{o("clear","")},b=w=>{o("visible-change",w)},p=a.ref();return ie({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},handleOpen:()=>{p?.value.handleOpen()},handleClose:()=>{p?.value.handleClose()}}),()=>{const y={...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:N,onBlur:D,onVisibleChange:b},$={},I=[],m=a.h(h.ElTimePicker,y,$);I.push(m);const B={default:()=>I};if(l.slots.default){const S=l.slots.default();B.label=()=>S}const A={...le(n,kn),hintText:E.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,A,B)}}}}const{componentName:wl,create:$l,scope:El}=G("time-item"),Dn=$l(Sl(wl,El,ae)),Mn={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1}};function vl(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 E=U(n,"hintText"),j=a.ref(!1);const N=p=>{let y=p.target.value;i.value=!0,J(E.value)||(j.value=!0),o("focus",y,p)},D=p=>{setTimeout(()=>{j.value&&(j.value=!1),i.value=!1},0);let y=p.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),o("blur",y,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 w={...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:N,onBlur:D},y={},$=[],I=a.h(h.ElTimeSelect,w,y);$.push(I);const m={default:()=>$};if(l.slots.default){const k=l.slots.default();m.label=()=>k}const P={...le(n,Mn),hintText:E.value,hintVisible:j.value,prop:`${n.prop}_item`};return a.h(r,P,m)}}}}const{componentName:Cl,create:Ol,scope:Tl}=G("time-select-item"),Bn=Ol(vl(Cl,Tl,ae));function qn(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 qn(n)}else{let n=St(`${e}`,Kt(`${t}`),20);return qn(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 Nl(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],([A,k,S])=>{if(J(A))return"";const v=Pn(A,k,S,!1);f.value!==v&&(f.value=v)},{immediate:!0});const g=a.computed(()=>{let A="";return s.value&&(A=f.value),A}),{t:O}=he.useFoxI18n(t),R=a.computed(()=>{let A=n.placeholder??"";return!s.value&&!J(f.value)?A=Vl(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):A=O(["placeholder",A]),A}),T=e,E=a.computed(()=>({[T]:!0,[`${T}__disabled`]:u.value,[`${T}__placeholder`]:f.value.length>0})),j=Ae(a.computed(()=>n.textAlign),"textAlign");a.computed(()=>s.value?{textAlign:"left"}:{textAlign:j.value??"right"});const N=a.ref(""),D=a.computed(()=>{let A=N.value;return J(A)&&(A=n.errorTip??""),A}),V=a.ref(""),b=a.ref(!1),p=(A,k)=>{if(A=`${A}`,J(A)){f.value="",c.value="",k.forEach(S=>{o(S,"")}),_.toBoolean(n.showTip)&&b.value&&(b.value=!1);return}if(A.length>=2){let S=A;if(S.charAt(0)=="-"&&(S=S.substring(1)),S.length>=2&&S.charAt(0)=="0"&&S.charAt(1)!="."){a.triggerRef(f);return}}if(A!="-"){if(!Wt(A)){a.triggerRef(f);return}if(n.integerLength!=-1&&Yt(A)>Number(n.integerLength)){a.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Ut(A)>Number(n.decimalLength)){a.triggerRef(f);return}let S=Ln(A,n);if(S.maxValid===!1){N.value=S.message,a.triggerRef(f);return}}else if(n.min!=null&&_.toNumber(n.min)>=0){a.triggerRef(f);return}V.value=A,_.toBoolean(n.showTip)&&(b.value=A.length>0),f.value=A,c.value=Pn(A,n.rates,n.precision,!0),k.forEach(S=>{o(S,c.value)})},w=A=>{p(A,["update:modelValue","input"])},y=A=>{p(A,["update:modelValue","change"])},$=A=>{if(s.value=!0,_.toBoolean(n.showTip)){let k=f.value;J(k)&&(k=n.hintText),J(k)||(V.value=k,b.value=!0)}N.value="",o("focus",c.value,A)},I=A=>{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){N.value=k.message;return}}o("update:modelValue",c.value,A),o("blur",c.value,A)},m=()=>{o("clear","")},B=a.computed(()=>Le(n.unit)>0),P=a.ref();return ie({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},select:()=>{P?.value.select()}}),()=>{const k={...l.attrs,ref:P,class:E.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:m,onInput:w,onChange:y,onFocus:$,onBlur:I},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:B.value&&(S.suffix=()=>[n.unit]);const v=[],C=a.h(h.ElInput,k,S);v.push(C);const x={default:()=>v};if(l.slots.default){const L=l.slots.default();x.label=()=>L}const q={...le(n,_n),errorTip:D.value,hintText:V.value,hintVisible:b.value,hintType:"number",prop:`${n.prop}_item`};return a.h(r,q,x)}}}}const{componentName:Il,create:xl,scope:Al}=G("money-item"),Hn=xl(Nl(Il,Al,ae)),Kn={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Rl(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`]:w.value})),T=a.computed(()=>({[`${O}__unit`]:!0})),E=$=>{g.value=$,o("update:modelValue",$),o("input",$)},j=$=>{o("change",$)};let N=U(n,"hintText"),D=a.ref(!1);const V=$=>{let m=$.target.value;i.value=!0,J(N.value)||(D.value=!0),o("focus",m,$)},b=$=>{setTimeout(()=>{D.value&&(D.value=!1),i.value=!1},0);let m=$.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,$)},p=()=>{o("clear","")},w=a.computed(()=>Le(n.unit)>0),y=a.ref();return ie({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()}}),()=>{const I={...l.attrs,ref:y,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:j,onInput:E,onFocus:V,onBlur:b},m={},B=[],P=a.h(h.ElInputNumber,I,m);B.push(P);const A={default:()=>B};if(l.slots.default){const C=l.slots.default();A.label=()=>C}const S={...le(n,Kn),hintText:N.value,hintVisible:D.value,prop:`${n.prop}_item`};if(l.slots.append)A.append=l.slots.append;else if(w.value){const C={class:T.value},x=a.h("div",C,[n.unit]);A.append=()=>x}return a.h(r,S,A)}}}}const{componentName:jl,create:kl,scope:Dl}=G("input-number-item"),zn=kl(Rl(jl,Dl,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 Ml(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 ql(){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=Ml(e,c);break}}if(!i)break}}return l}function Fl(e){return{text:e,value:e}}const Wn={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 Pl(e,t,r){return{props:{...te,...oe,...Wn},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=(v,C,x,M=!0)=>{if(n.props&&n.props.lazy===!0){if(i.value===v)return;i.value=v;const L=a.toRaw(v);M&&(o("update:modelValue",L),o("change",L))}const q=Gn(n,v,C,x);if(q===null){if(c.value.length===0||c.value===null)return;c.value=[],i.value=null,M&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(q.length!==c.value.length)F=!1;else for(let L=0;L<q.length;L++){const H=q[L],W=c.value[L];if(Array.isArray(H)){if(!Array.isArray(W)||H.length!==W.length)F=!1;else for(let Y=0;Y<H.length;Y++)if(!jt(n,H[Y],W[Y])){F=!1;break}}else jt(n,H,W)||(F=!1);if(!F)break}if(!F){c.value=q;let L=[],H=[];q.forEach(Y=>{if(Array.isArray(Y)){let me=[],fe=[];for(let se of Y)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,Y)),n.valueType==="text"?H.push(ke(n,Y)):n.valueType==="item"?H.push(Y):H.push(Ie(n,Y))}),i.value=L;const W=a.toRaw(H);M&&(o("update:modelValue",W),o("change",W))}},g=a.ref([]),O=ql();a.watch([()=>n.source,()=>n.params],async([v,C])=>{if(v){const x=await O.load("cascader",v,C);if(x.length>0)if(typeof x[0]=="string"){let F=x.map(L=>Fl(L));g.value=F}else g.value=x}},{immediate:!0}),a.watch([()=>g.value,()=>n.modelValue],([v,C])=>{f(C,n.valueType,v,!1)});let R=null,T=a.ref(!1);typeof n.remoteMethod=="function"&&(R=async v=>{if(v!=null){T.value=!0;try{const C=await n.remoteMethod(v);g.value=C}catch(C){console.error(C)}T.value=!1}});const E=a.ref(!1),j=ce(a.computed(()=>n.disabled)),N=ue(a.computed(()=>n.readonly)),D=e,V=a.computed(()=>({[D]:!0})),b=a.computed(()=>{let v={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(v.multiple=!0),n.props&&Object.assign(v,n.props),v}),p=v=>{n.allowCreate?(o("update:modelValue",v),o("change",v),i.value=v):f(v,"value",g.value,!0)};let w=U(n,"hintText"),y=a.ref(!1);const $=v=>{let x=v.target.value;E.value=!0,J(w.value)||(y.value=!0),o("focus",x,v)},I=v=>{setTimeout(()=>{y.value&&(y.value=!1),E.value=!1},0);let x=v.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),B.value?setTimeout(()=>{o("blur",x,v)},50):o("blur",x,v)},m=()=>{o("clear","")},B=a.ref(!1),P=v=>{B.value=v,o("visible-change",v)},A=v=>{o("remove-tag",v)},k=v=>{o("expand-change",v)},S=a.ref();return ie({focus:()=>{S?.value.focus()},blur:()=>{S?.value.blur()},getCheckedNodes:()=>S?.value.getCheckedNodes()}),()=>{const C={...l.attrs,ref:S,class:V.value,props:b.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:j.value||N.value,options:g.value,modelValue:i.value,onClear:m,onChange:p,onFocus:$,onBlur:I,onVisibleChange:P,onRemoveTag:A,expandChange:k};typeof R=="function"&&(C["remote-method"]=R,C.loading=T.value);const x={};l.slots.option&&(x.default=l.slots.option),l.slots.empty&&(x.empty=l.slots.empty);const M=[],q=a.h(h.ElCascader,C,x);M.push(q);const F={default:()=>M};if(l.slots.default){const Y=l.slots.default();F.label=()=>Y}const H={...le(n,Wn),hintText:w.value,hintVisible:y.value,prop:`${n.prop??n.name}_item`};return a.h(r,H,F)}}}}const{componentName:Ll,create:_l,scope:Hl}=G("cascader-item"),Yn=_l(Pl(Ll,Hl,ae)),Un={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Kl(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=w=>{g.value=w,o("update:modelValue",w),o("input",w)},E=w=>{o("change",w)};let j=U(n,"hintText"),N=a.ref(!1);const D=w=>{let $=w.target.value;i.value=!0,J(j.value)||(N.value=!0),o("focus",$,w)},V=w=>{setTimeout(()=>{N.value&&(N.value=!1),i.value=!1},0);let $=w.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.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 y={...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:E,onInput:T,onFocus:D,onBlur:V},$={};l.slots.prepend&&($.prepend=l.slots.prepend),l.slots.append&&($.append=l.slots.append),l.slots.prefix&&($.prefix=l.slots.prefix),l.slots.suffix&&($.suffix=l.slots.suffix),l.slots.option&&($.default=l.slots.option);const I=[],m=a.h(h.ElAutocomplete,y,$);I.push(m);const B={default:()=>I};if(l.slots.default){const S=l.slots.default();B.label=()=>S}const A={...le(n,Un),hintText:j.value,hintVisible:N.value,prop:`${n.prop}_item`};return a.h(r,A,B)}}}}const{componentName:zl,create:Gl,scope:Wl}=G("autocomplete-item"),Zn=Gl(Kl(zl,Wl,ae));function Yl(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 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 Zl(){const e=a.getCurrentInstance();return new Ul(e.proxy)}const Xn={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 Xl(e,t){return{props:{...Xn},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=Yl(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:ai,create:Jl,scope:li}=G("mapping"),kt=Jl(Xl());function Ql(e,t){return{props:{...Xn},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:oi,create:eo,scope:ii}=G("table-mapping-column"),Jn=eo(Ql());class to{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 no(){const e=a.getCurrentInstance();return new to(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 ro(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({}),E=a.computed(()=>({...T.value,...n.params??{},...n.baseParams??{}})),j=a.ref(0),N=a.ref(),D=no();let V=!0;const b=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:_.toBoolean(n.autoLoad),p=async(m,B,P,A)=>{try{const k=await D.load("table",m,B,P,A,V,o.value);j.value=k.totalSize,N.value=k.page}catch(k){console.error("[FoxUI] Load Table Data Fail",k),j.value=0,N.value=[]}V=!1};a.watch([f,O],([m,B],[P,A])=>{B!==A&&(f.value=1,m=1),p(n.data,m,B,E.value)}),a.watch([()=>n.data,E],([m,B],[P,A])=>{!b()||(m!==P&&(V=!0),p(m,f.value,O.value,B))});const w=(m={})=>{T.value=a.toRaw(m??{}),a.triggerRef(T),a.nextTick(()=>{p(n.data,f.value,O.value,E.value)})};b()&&w();let y=null;const $=(m,B)=>{y=m,s("current-change",m,B)},I=a.ref();return ie({clearSelection:()=>I?.value.clearSelection(),getSelectionRows:()=>I?.value.getSelectionRows(),toggleRowSelection:(m,B)=>{I?.value.toggleRowSelection(m,B)},toggleAllSelection:()=>{I?.value.toggleAllSelection()},toggleRowExpansion:(m,B)=>{I?.value.toggleRowExpansion(m,B)},setCurrentRow:m=>{I?.value.setCurrentRow(m)},getCurrentRow:()=>y,clearSort:()=>{I?.value.clearSort()},clearFilter:m=>{I?.value.clearFilter(m)},doLayout:()=>{I?.value.doLayout()},sort:(m,B)=>{I?.value.sort(m,B)},scrollTo:(m,B)=>{I?.value.scrollTo(m,B)},setScrollTop:m=>{I?.value.setScrollTop(m)},setScrollLeft:m=>{I?.value.setScrollLeft(m)},loadData:w}),()=>{const B={...l.attrs,onCurrentChange:$,data:N.value,ref:I,class:i.value},P={};l.slots.default&&(P.default=l.slots.default),l.slots.append&&(P.append=l.slots.append),l.slots.empty&&(P.empty=l.slots.empty);const A=[],k=a.h(h.ElTable,B,P);if(A.push(k),typeof l.slots.pagination=="function"){const M=l.slots.pagination();A.push(M)}else if(n.paginationVisible){const M={class:c.value,total:j.value,pageSize:O.value,["onUpdate:pageSize"]:R,pageSizes:n.pageSizes,currentPage:f.value,["onUpdate:currentPage"]:g,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},q=a.h(h.ElPagination,M);A.push(q)}const S={default:()=>A},C={...le(n,Qn,er),prop:`${n.prop}_item`};return C.contentClass=`${u}__wrap`,a.h(r,C,S)}}}}const{componentName:ao,create:lo,scope:oo}=G("table-item"),tr=lo(ro(ao,oo,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 io{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 so(){const e=a.getCurrentInstance();return new io(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 uo(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 co(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 fo(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,w=!0)=>{const y=uo(n,V,b,p);if(y===null){if(u.value===null)return;u.value=null,s.value=null,w&&(o("update:modelValue",null),o("change",null));return}if(!nr(n,y,u.value)){s.value=V;const I=a.toRaw(y);u.value=I;let m=null;n.valueType==="text"?m=De(n,I):n.valueType==="item"?m=I:m=Ge(n,I),w&&(o("update:modelValue",m),o("change",m))}},c=a.ref([]),f=so();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 $=p.map(I=>co(I));c.value=$}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})),E=V=>{i(V,"value",c.value,!0)};let j=U(n,"hintText"),N=U(n,"hintVisible");const D=V=>{const b=[];return V.forEach((p,w)=>{const y=Ge(n,p),$=De(n,p),I=_.toBoolean(p.disabled),B={key:`${y}_${w}`,class:n.itemClass,label:y,disabled:I,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?b.push(a.h(h.ElRadioButton,B,{default:()=>[$]})):b.push(a.h(h.ElRadio,B,{default:()=>[$]}))}),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:E},p=[],w={};l.slots.options?w.default=l.slots.options:w.default=()=>D(c.value);const y=a.h(h.ElRadioGroup,b,w);p.push(y);const $={default:()=>p};if(l.slots.default){const P=l.slots.default();$.label=()=>P}const m={...le(n,rr),hintText:j.value,hintVisible:N.value,prop:`${n.prop??n.name}_item`};return a.h(r,m,$)}}}}const{componentName:ho,create:go,scope:mo}=G("radio-item"),ar=go(fo(ho,mo,ae));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Be(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class yo{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 po(){const e=a.getCurrentInstance();return new yo(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=Be(e,t),s=Be(e,r);return o===s}function bo(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=Be(e,s);i==null&&(i=Me(e,s)),u=i===o}if(u){l.push(s);break}}}),l}function So(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 wo(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,w=!0)=>{const y=bo(n,V,b,p);if(y===null){if(u.value===null||u.value.length===0)return;s.value=[],u.value=[],w&&(o("update:modelValue",[]),o("change",[]));return}let $=!0;if(y.length!==u.value.length)$=!1;else for(let I=0;I<y.length;I++){const m=y[I],B=u.value[I];if(!lr(n,m,B)){$=!1;break}}if(!$){u.value=y;let I=[],m=[];y.forEach(P=>{I.push(Be(n,P)),n.valueType==="text"?m.push(Me(n,P)):n.valueType==="item"?m.push(P):m.push(Be(n,P))}),s.value=I;const B=a.toRaw(m);w&&(o("update:modelValue",B),o("change",B))}},c=a.ref([]),f=po();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 $=p.map(I=>So(I));c.value=$}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})),E=V=>{i(V,"value",c.value,!0)};let j=U(n,"hintText"),N=U(n,"hintVisible");const D=V=>{const b=[];return V.forEach((p,w)=>{const y=Be(n,p),$=Me(n,p),I=_.toBoolean(p.disabled),B={key:`${y}_${w}`,class:n.itemClass,label:y,disabled:I,size:n.size,border:_.toBoolean(n.border)};n.itemType==="button"?b.push(a.h(h.ElCheckboxButton,B,{default:()=>[$]})):b.push(a.h(h.ElCheckbox,B,{default:()=>[$]}))}),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:E},p=[],w={};l.slots.options?w.default=l.slots.options:w.default=()=>D(c.value);const y=a.h(h.ElCheckboxGroup,b,w);p.push(y);const $={default:()=>p};if(l.slots.default){const P=l.slots.default();$.label=()=>P}const m={...le(n,or),hintText:j.value,hintVisible:N.value,prop:`${n.prop??n.name}_item`};return a.h(r,m,$)}}}}const{componentName:$o,create:Eo,scope:vo}=G("checkbox-item"),ir=Eo(wo($o,vo,ae)),sr={modelValue:{type:[Number,String],required:!1}};function Co(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",E=>_.toNumber(E)),c=e,f=a.computed(()=>({[c]:!0})),g=E=>{o("update:modelValue",E),o("change",E)};let O=U(n,"hintText"),R=a.ref(!1);const T=a.ref();return ie({}),()=>{const j={...l.attrs,ref:T,class:f.value,readonly:u.value||s.value,modelValue:i.value,onChange:g},N={},D=[],V=a.h(h.ElRate,j,N);D.push(V);const b={default:()=>D};if(l.slots.default){const $=l.slots.default();b.label=()=>$}const w={...le(n,sr),hintText:O.value,hintVisible:R.value,prop:`${n.prop}_item`};return a.h(r,w,b)}}}}const{componentName:Oo,create:To,scope:Vo}=G("rate-item"),ur=To(Co(Oo,Vo,ae)),cr={modelValue:{type:[Boolean,String,Number],required:!1}};function No(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=E=>{o("update:modelValue",E),o("change",E)};let O=U(n,"hintText"),R=U(n,"hintVisible");const T=a.ref();return ie({}),()=>{const j={...l.attrs,ref:T,class:f.value,readonly:u.value,disabled:s.value,modelValue:i.value,onChange:g},N={},D=[],V=a.h(h.ElSwitch,j,N);D.push(V);const b={default:()=>D};if(l.slots.default){const $=l.slots.default();b.label=()=>$}const w={...le(n,cr),hintText:O.value,hintVisible:R.value,prop:`${n.prop}_item`};return a.h(r,w,b)}}}}const{componentName:Io,create:xo,scope:Ao}=G("switch-item"),fr=xo(No(Io,Ao,ae)),Ro=Symbol.for("InnerPageScopeKey"),jo=Symbol.for("DialogItemStateKey");function ko(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(Ro,!0);const l={};a.provide(jo,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:si,create:Do,scope:ui}=G("dialog-item"),dr=Do(ko()),{componentName:hr,create:Mo}=G("ext-icon"),gr=Mo({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 E={class:s.value,style:u.value};f=a.h("div",E)}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:qo,create:Fo,scope:ci}=G("indicator"),mr=Fo(Bo(qo));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",E="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|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(A,k,S){var v=String(A);return!v||v.length>=k?A:""+Array(k+1-v.length).join(S)+A},b={s:V,z:function(A){var k=-A.utcOffset(),S=Math.abs(k),v=Math.floor(S/60),C=S%60;return(k<=0?"+":"-")+V(v,2,"0")+":"+V(C,2,"0")},m:function A(k,S){if(k.date()<S.date())return-A(S,k);var v=12*(S.year()-k.year())+(S.month()-k.month()),C=k.clone().add(v,g),x=S-C<0,M=k.clone().add(v+(x?-1:1),g);return+(-(v+(S-C)/(x?C-M:M-C))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y:R,w:f,d:c,D:T,h:i,m:u,s,ms:o,Q:O}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},p="en",w={};w[p]=D;var y=function(A){return A instanceof B},$=function A(k,S,v){var C;if(!k)return p;if(typeof k=="string"){var x=k.toLowerCase();w[x]&&(C=x),S&&(w[x]=S,C=x);var M=k.split("-");if(!C&&M.length>1)return A(M[0])}else{var q=k.name;w[q]=k,C=q}return!v&&C&&(p=C),C||!v&&p},I=function(A,k){if(y(A))return A.clone();var S=typeof k=="object"?k:{};return S.date=A,S.args=arguments,new B(S)},m=b;m.l=$,m.i=y,m.w=function(A,k){return I(A,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var B=function(){function A(S){this.$L=$(S.locale,null,!0),this.parse(S)}var k=A.prototype;return k.parse=function(S){this.$d=function(v){var C=v.date,x=v.utc;if(C===null)return new Date(NaN);if(m.u(C))return new Date;if(C instanceof Date)return new Date(C);if(typeof C=="string"&&!/Z$/i.test(C)){var M=C.match(j);if(M){var q=M[2]-1||0,F=(M[7]||"0").substring(0,3);return x?new Date(Date.UTC(M[1],q,M[3]||1,M[4]||0,M[5]||0,M[6]||0,F)):new Date(M[1],q,M[3]||1,M[4]||0,M[5]||0,M[6]||0,F)}}return new Date(C)}(S),this.$x=S.x||{},this.init()},k.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},k.$utils=function(){return m},k.isValid=function(){return this.$d.toString()!==E},k.isSame=function(S,v){var C=I(S);return this.startOf(v)<=C&&C<=this.endOf(v)},k.isAfter=function(S,v){return I(S)<this.startOf(v)},k.isBefore=function(S,v){return this.endOf(v)<I(S)},k.$g=function(S,v,C){return m.u(S)?this[v]:this.set(C,S)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(S,v){var C=this,x=!!m.u(v)||v,M=m.p(S),q=function(se,ee){var de=m.w(C.$u?Date.UTC(C.$y,ee,se):new Date(C.$y,ee,se),C);return x?de:de.endOf(c)},F=function(se,ee){return m.w(C.toDate()[se].apply(C.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(ee)),C)},L=this.$W,H=this.$M,W=this.$D,Y="set"+(this.$u?"UTC":"");switch(M){case R:return x?q(1,0):q(31,11);case g:return x?q(1,H):q(0,H+1);case f:var me=this.$locale().weekStart||0,fe=(L<me?L+7:L)-me;return q(x?W-fe:W+(6-fe),H);case c:case T:return F(Y+"Hours",0);case i:return F(Y+"Minutes",1);case u:return F(Y+"Seconds",2);case s:return F(Y+"Milliseconds",3);default:return this.clone()}},k.endOf=function(S){return this.startOf(S,!1)},k.$set=function(S,v){var C,x=m.p(S),M="set"+(this.$u?"UTC":""),q=(C={},C[c]=M+"Date",C[T]=M+"Date",C[g]=M+"Month",C[R]=M+"FullYear",C[i]=M+"Hours",C[u]=M+"Minutes",C[s]=M+"Seconds",C[o]=M+"Milliseconds",C)[x],F=x===c?this.$D+(v-this.$W):v;if(x===g||x===R){var L=this.clone().set(T,1);L.$d[q](F),L.init(),this.$d=L.set(T,Math.min(this.$D,L.daysInMonth())).$d}else q&&this.$d[q](F);return this.init(),this},k.set=function(S,v){return this.clone().$set(S,v)},k.get=function(S){return this[m.p(S)]()},k.add=function(S,v){var C,x=this;S=Number(S);var M=m.p(v),q=function(H){var W=I(x);return m.w(W.date(W.date()+Math.round(H*S)),x)};if(M===g)return this.set(g,this.$M+S);if(M===R)return this.set(R,this.$y+S);if(M===c)return q(1);if(M===f)return q(7);var F=(C={},C[u]=n,C[i]=l,C[s]=r,C)[M]||1,L=this.$d.getTime()+S*F;return m.w(L,this)},k.subtract=function(S,v){return this.add(-1*S,v)},k.format=function(S){var v=this,C=this.$locale();if(!this.isValid())return C.invalidDate||E;var x=S||"YYYY-MM-DDTHH:mm:ssZ",M=m.z(this),q=this.$H,F=this.$m,L=this.$M,H=C.weekdays,W=C.months,Y=function(ee,de,ve,Ce){return ee&&(ee[de]||ee(v,x))||ve[de].slice(0,Ce)},me=function(ee){return m.s(q%12||12,ee,"0")},fe=C.meridiem||function(ee,de,ve){var Ce=ee<12?"AM":"PM";return ve?Ce.toLowerCase():Ce},se={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:m.s(L+1,2,"0"),MMM:Y(C.monthsShort,L,W,3),MMMM:Y(W,L),D:this.$D,DD:m.s(this.$D,2,"0"),d:String(this.$W),dd:Y(C.weekdaysMin,this.$W,H,2),ddd:Y(C.weekdaysShort,this.$W,H,3),dddd:H[this.$W],H:String(q),HH:m.s(q,2,"0"),h:me(1),hh:me(2),a:fe(q,F,!0),A:fe(q,F,!1),m:String(F),mm:m.s(F,2,"0"),s:String(this.$s),ss:m.s(this.$s,2,"0"),SSS:m.s(this.$ms,3,"0"),Z:M};return x.replace(N,function(ee,de){return de||se[ee]||M.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(S,v,C){var x,M=m.p(v),q=I(S),F=(q.utcOffset()-this.utcOffset())*n,L=this-q,H=m.m(this,q);return H=(x={},x[R]=H/12,x[g]=H,x[O]=H/3,x[f]=(L-F)/6048e5,x[c]=(L-F)/864e5,x[i]=L/l,x[u]=L/n,x[s]=L/r,x)[M]||L,C?H:m.a(H)},k.daysInMonth=function(){return this.endOf(g).$D},k.$locale=function(){return w[this.$L]},k.locale=function(S,v){if(!S)return this.$L;var C=this.clone(),x=$(S,v,!0);return x&&(C.$L=x),C},k.clone=function(){return m.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}(),P=B.prototype;return I.prototype=P,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",c],["$M",g],["$y",R],["$D",T]].forEach(function(A){P[A[1]]=function(k){return this.$g(k,A[0],A[1])}}),I.extend=function(A,k){return A.$i||(A(k,B,I),A.$i=!0),I},I.locale=$,I.isDayjs=y,I.unix=function(A){return I(1e3*A)},I.en=w[p],I.Ls=w,I.p={},I})})(yr);const Ee=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(E){return(E=+E)+(E>68?1900:2e3)},c=function(E){return function(j){this[E]=+j}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(E){(this.zone||(this.zone={})).offset=function(j){if(!j||j==="Z")return 0;var N=j.match(/([+-]|\d\d)/g),D=60*N[1]+(+N[2]||0);return D===0?0:N[0]==="+"?-D:D}(E)}],g=function(E){var j=u[E];return j&&(j.indexOf?j:j.s.concat(j.f))},O=function(E,j){var N,D=u.meridiem;if(D){for(var V=1;V<=24;V+=1)if(E.indexOf(D(V,0,j))>-1){N=V>12;break}}else N=E===(j?"pm":"PM");return N},R={A:[s,function(E){this.afternoon=O(E,!1)}],a:[s,function(E){this.afternoon=O(E,!0)}],S:[/\d/,function(E){this.milliseconds=100*+E}],SS:[l,function(E){this.milliseconds=10*+E}],SSS:[/\d{3}/,function(E){this.milliseconds=+E}],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(E){var j=u.ordinal,N=E.match(/\d+/);if(this.day=N[0],j)for(var D=1;D<=31;D+=1)j(D).replace(/\[|\]/g,"")===E&&(this.day=D)}],M:[o,c("month")],MM:[l,c("month")],MMM:[s,function(E){var j=g("months"),N=(g("monthsShort")||j.map(function(D){return D.slice(0,3)})).indexOf(E)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[s,function(E){var j=g("months").indexOf(E)+1;if(j<1)throw new Error;this.month=j%12||j}],Y:[/[+-]?\d+/,c("year")],YY:[l,function(E){this.year=i(E)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function T(E){var j,N;j=E,N=u&&u.formats;for(var D=(E=j.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,m,B){var P=B&&B.toUpperCase();return m||N[B]||r[B]||N[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,k,S){return k||S.slice(1)})})).match(n),V=D.length,b=0;b<V;b+=1){var p=D[b],w=R[p],y=w&&w[0],$=w&&w[1];D[b]=$?{regex:y,parser:$}:p.replace(/^\[|\]$/g,"")}return function(I){for(var m={},B=0,P=0;B<V;B+=1){var A=D[B];if(typeof A=="string")P+=A.length;else{var k=A.regex,S=A.parser,v=I.slice(P),C=k.exec(v)[0];S.call(m,C),I=I.replace(C,"")}}return function(x){var M=x.afternoon;if(M!==void 0){var q=x.hours;M?q<12&&(x.hours+=12):q===12&&(x.hours=0),delete x.afternoon}}(m),m}}return function(E,j,N){N.p.customParseFormat=!0,E&&E.parseTwoDigitYear&&(i=E.parseTwoDigitYear);var D=j.prototype,V=D.parse;D.parse=function(b){var p=b.date,w=b.utc,y=b.args;this.$u=w;var $=y[1];if(typeof $=="string"){var I=y[2]===!0,m=y[3]===!0,B=I||m,P=y[2];m&&(P=y[2]),u=this.$locale(),!I&&P&&(u=N.Ls[P]),this.$d=function(v,C,x){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*v);var M=T(C)(v),q=M.year,F=M.month,L=M.day,H=M.hours,W=M.minutes,Y=M.seconds,me=M.milliseconds,fe=M.zone,se=new Date,ee=L||(q||F?1:se.getDate()),de=q||se.getFullYear(),ve=0;q&&!F||(ve=F>0?F-1:se.getMonth());var Ce=H||0,Dt=W||0,Mt=Y||0,Bt=me||0;return fe?new Date(Date.UTC(de,ve,ee,Ce,Dt,Mt,Bt+60*fe.offset*1e3)):x?new Date(Date.UTC(de,ve,ee,Ce,Dt,Mt,Bt)):new Date(de,ve,ee,Ce,Dt,Mt,Bt)}catch{return new Date("")}}(p,$,w),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),B&&p!=this.format($)&&(this.$d=new Date("")),u={}}else if($ instanceof Array)for(var A=$.length,k=1;k<=A;k+=1){y[1]=$[k-1];var S=N.apply(this,y);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}k===A&&(this.$d=new Date(""))}else V.call(this,b)}}})})(pr);const Po=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 Lo=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,E){var j=g.name?g:g.$locale(),N=s(j[O]),D=s(j[R]),V=N||D.map(function(p){return p.slice(0,T)});if(!E)return V;var b=j.weekStart;return V.map(function(p,w){return V[(w+(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,E,j){return E||j.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 _o=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 Ho=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 Ko=$r.exports;var Er={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")}}})})(Er);const zo=Er.exports;var vr={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)}}})})(vr);const Go=vr.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;Ee.extend(_o),Ee.extend(Lo),Ee.extend(Po),Ee.extend(Ho),Ee.extend(Ko),Ee.extend(zo),Ee.extend(Go),Ee.extend(Wo);const Yo=[dn,hn,gn,mn,bn,ae,vn,Cn,ct,Tn,An,jn,Dn,Bn,Hn,zn,Yn,Zn,Jn,tr,ar,ir,ur,fr,dr,kt,ut,gr,mr],Uo=new Xr(Yo,[ea],"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=Zn,d.Broadcast=Et,d.BroadcastKey=Q,d.CascaderItem=Yn,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=vn,d.SwitchItem=fr,d.TableItem=tr,d.TableMappingColumn=Jn,d.TimeItem=Dn,d.TimeSelectItem=Bn,d.UniqueID=wn,d.ValidateSchema=nn,d.ValidateSchemaKey=ye,d.clearNonNumber=Nr,d.compareTo=wt,d.createBroadcast=Ye,d.createValidateSchema=Ze,d.debounce=_r,d.decimalLength=Ut,d.default=Uo,d.defineBroadcast=jr,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=Rr,d.getGlobalValidateCheckEvents=Qt,d.getGlobalValidateResetEvents=tn,d.getPageContentAreaHeight=et,d.getPageContentAreaWidth=tt,d.getPageFooterAreaHeight=Qe,d.getPageHeaderAreaHeight=Je,d.getRootDomain=Ke,d.includeProps=Ar,d.indexOf=Ir,d.integerLength=Yt,d.isBrowser=Pe,d.isEmptyString=J,d.isInnerPage=Kr,d.isNumberString=Wt,d.isRegExp=Gt,d.isSubPage=zr,d.lastIndexOf=xr,d.multiply=Ht,d.negate=Kt,d.numberFormat=$t,d.property=Ae,d.raf=Vr,d.readonlyProperty=ue,d.setGlobalValidateCheckEvents=qr,d.setGlobalValidateHandler=Dr,d.setGlobalValidateMessages=Pr,d.setGlobalValidateResetEvents=Fr,d.setGlobalValidator=Mr,d.throttle=vt,d.toPadding=ge,d.toPx=X,d.toPxDesc=z,d.toValue=U,d.unNumberFormat=zt,d.updatePageState=Vt,d.useBroadcast=_e,d.useDomain=Se,d.useExpose=ie,d.usePageState=Xe,d.usePosition=$n,d.useRect=st,d.valueLength=Le,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|