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

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon Dec 26 2022 11:34:48 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),L=require("@fox-js/fox"),Cr=require("@fox-js/validator"),f=require("element-plus"),ge=require("@fox-js/i18n"),Or=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Pe=Or(Cr);/*!
4
- * @fox-js/big-decimal v4.0.1-3 Wed Nov 02 2022 21:59:56 GMT+0800 (中国标准时间)
5
- */function Xe(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=re(e),t=re(t),[e,t]=Tt(re(e),re(t)),r==1&&(n==1?e=mt(e):t=mt(t));let a=mn(e,t);return r?r==2?"-"+re(a):e.length<a.length?re(a.substring(1)):"-"+re(mt(a)):re(a)}function mt(e){let t="",r=e.length,n=e.split(".")[1],a=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=a>0?"0."+new Array(a).join("0")+"1":"1";return mn(t,o)}function re(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 Tt(e,t){let r=e.split("."),n=t.split("."),a=r[0].length,o=n[0].length;return a>o?n[0]=new Array(Math.abs(a-o)+1).join("0")+(n[0]?n[0]:""):r[0]=new Array(Math.abs(a-o)+1).join("0")+(r[0]?r[0]:""),a=r[1]?r[1].length:0,o=n[1]?n[1].length:0,(a||o)&&(a>o?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-o)+1).join("0"):r[1]=(r[1]?r[1]:"")+new Array(Math.abs(a-o)+1).join("0")),e=r[0]+(r[1]?"."+r[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function mn(e,t){[e,t]=Tt(e,t);let r="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){r="."+r;continue}let o=parseInt(e[a])+parseInt(t[a])+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 He(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("."),o=a[0],s=a[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=He(e,0,r),(n?"-":"")+i+new Array(t+1).join("0")}}if(t==0)return o.length,qt(a[1],o,n,r)?(n?"-":"")+gt(o):(n?"-":"")+o;if(a[1]){if(a[1].length<t)return(n?"-":"")+o+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+o+"."+new Array(t+1).join("0");s=a[1].substring(0,t);let u=a[1].substring(t);return u&&qt(u,s,n,r)&&(s=gt(s),s.length>t)?(n?"-":"")+gt(o,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+o+"."+s}function qt(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 o=parseInt(e[a])+t;o==10?(t=1,o=0):t=0,n+=o}return t&&(n+=t),n.split("").reverse().join("")}function bt(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 o=n+a;if(e=Be(e.replace(".","")),t=Be(t.replace(".","")),e.length<t.length){let h=e;e=t,t=h}if(t=="0")return"0";let s=t.length,u=0,i=[],d=s-1,c="";for(let h=0;h<s;h++)i[h]=e.length-1;for(let h=0;h<2*e.length;h++){let w=0;for(let T=t.length-1;T>=d&&T>=0;T--)i[T]>-1&&i[T]<e.length&&(w+=parseInt(e[i[T]--])*parseInt(t[T]));w+=u,u=Math.floor(w/10),c=w%10+c,d--}return c=Be(Nr(c,o)),r==1&&(c="-"+c),c}function Nr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function 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 xt(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=re(t.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=re(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=re(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let c=e.length-d+a;e=re(e.substring(0,c)+"."+e.substring(c))}else a==d&&(e=re(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 d=i.length-i.indexOf(".")-1;i=i.replace(".",""),s>i.length&&(d+=s-i.length,i=i+new Array(s-i.length+1).join("0")),o=d,u="0."+new Array(d).join("0")}for(r=r+2;o<=r;){let d=0;for(;parseInt(i)>=parseInt(t);)i=Xe(i,"-"+t),d++;u+=d,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?"-":"")+re(He(u,r-2))}function St(e,t){return e=e.toString(),t=t.toString(),t=wt(t),Xe(e,t)}function wt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Bt(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Ft(e),Ft(t);let r="";e[0]=="-"&&(r="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=St(e,bt(t,He(xt(e,t),0,Z.FLOOR)));return r+n}function Ft(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Lt(e,t){let r=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),r=!0),[e,t]=Tt(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 H{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=re(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+re(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=H.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=H.validate(t);let a=t.charAt(0)=="-";a&&(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(a?"-":"")+s+t.substring(o)}getPrettyValue(t,r){return H.getPrettyValue(this.value,t,r)}static round(t,r=0,n=Z.HALF_EVEN){if(t=H.validate(t),isNaN(r))throw Error("Precision is not a number: "+r);return He(t,r,n)}round(t=0,r=Z.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new H(He(this.value,t,r))}static floor(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Z.FLOOR)}floor(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Z.FLOOR)}static ceil(t){return t=H.validate(t),t.indexOf(".")===-1?t:H.round(t,0,Z.CEILING)}ceil(){return this.value.indexOf(".")===-1?new H(this.value):new H(this.value).round(0,Z.CEILING)}static add(t,r){return t=H.validate(t),r=H.validate(r),Xe(t,r)}add(t){return new H(Xe(this.value,t.getValue()))}static subtract(t,r){return t=H.validate(t),r=H.validate(r),St(t,r)}subtract(t){return new H(St(this.value,t.getValue()))}static multiply(t,r){return t=H.validate(t),r=H.validate(r),bt(t,r)}multiply(t){return new H(bt(this.value,t.getValue()))}static divide(t,r,n){return t=H.validate(t),r=H.validate(r),xt(t,r,n)}divide(t,r){return new H(xt(this.value,t.getValue(),r))}static modulus(t,r){return t=H.validate(t),r=H.validate(r),Bt(t,r)}modulus(t){return new H(Bt(this.value,t.getValue()))}static compareTo(t,r){return t=H.validate(t),r=H.validate(r),Lt(t,r)}compareTo(t){return Lt(this.value,t.getValue())}static negate(t){return t=H.validate(t),wt(t)}negate(){return new H(wt(this.value))}}function gn(e,t){return H.multiply(`${e}`,`${t}`)}function Vt(e,t,r=8){return H.divide(`${e}`,`${t}`,r)}function $t(e,t){return e=`${e}`,t=`${t}`,H.compareTo(e,t)}function pn(e){return H.negate(e)}function It(e,t=-1,r=!1,n=3,a=","){let o=`${e}`;if(o.length==0||o==="-")return"";let s=o.charAt(0);s=="-"?o=o.substring(1):s="";let u=o,i="",d=o.indexOf(".");d!=-1&&(u=o.substring(0,d),i=o.substring(d+1)),t!=-1&&(t<i.length?i=i.substring(0,t):r&&t>i.length&&(i=i.padEnd(t,"0")));let c;if(n>0){let h="",w=u.split("").reverse();for(let T=0;T<w.length;T++)h+=w[T]+((T+1)%n==0&&T+1!=w.length?a:"");i.length==0?c=`${s}${h.split("").reverse().join("")}`:c=`${s}${h.split("").reverse().join("")}.${i}`}else i.length==0?c=`${s}${u}`:c=`${s}${u}.${i}`;return c}function yn(e){let t=`${e}`,r=t.charAt(0);r=="-"?t=t.substring(1):r="";let n=t.replace(/[^\d\.-]/g,"");return`${r}${n}`}const Ge=typeof window<"u",Tr=Ge&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function vn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Q=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function bn(e){return Q(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Q(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function xn(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const r=t.indexOf(".");return r==-1?t.length:r}function Sn(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const r=t.indexOf(".");return r==-1?0:t.length-(r+1)}function _t(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=_t(e,".",/\./g):e=e.replace(/\./g,""),r?e=_t(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(L.isEqual(e,r))return!0}):t.indexOf(e)}function Ar(e,t){if(typeof e=="object"||Array.isArray(e)){let r=t.reverse().findIndex(n=>{if(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 Rr(e,...t){const r={};return t.forEach(n=>{for(const a in n)r[a]=e[a]}),r}function oe(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 jr=(e,t,r)=>{const n=Object.assign({},e),a=Object.assign({},r);return Object.keys(t).length>0?(Object.keys(n).forEach(o=>{a.hasOwnProperty(o)?typeof a[o]=="string"&&(n[o]=t[a[o]]):t[o]&&(n[o]=t[o])}),n):e},ee=Symbol("BroadcastKey");class At{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="*"):vn(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 o=[];if(a){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 a=[];return this.children.forEach(o=>{const s=Reflect.apply(o.emit,o,[{...t},r,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,r){this.callbacks.set(t,r)}}function rt(e,t,r,n){const a=new At(t,e,r);if(n&&typeof n=="object")for(const o in n)a.on(o,n[o]);return a}function kr(e,t,r){const n=r;if(n[ee])return n[ee];const a=l.inject(ee,null),o=new At(a,r,e);if(t&&typeof t=="object")for(const s in t)o.on(s,t[s]);return n[ee]=o,l.provide(ee,o),l.onUnmounted(()=>{o.destroy(),n[ee]=void 0}),o}function Le(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ee]??l.inject(ee,null):l.inject(ee,null)}class Mr{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,o=Le(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 a.setRequired=="function"&&a.setRequired(!0):s&&!u&&(o?o.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let wn=new Mr;function Dr(e){wn=e}function qr(e,t){Pe.default.setValidator(e,t)}function Br(e){Pe.default.deleteValidator(e)}let $n=["blur","clear"];function Fr(e){$n=e}function En(){return $n}let Pn=["focus","change"];function Lr(e){Pn=e}function Cn(){return Pn}function _r(e){Pe.default.messages(e)}function Fe(...e){const t=[];return e.forEach(r=>{r.forEach(n=>{const a=t.findIndex(o=>o.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Ye(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 On{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=Ye(Fe(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=Ye(n);const a=Fe(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=wn;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?Pe.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?Pe.default.deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,r=!1){if(r)return Pe.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=Fe(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ye(t):this.rules=Ye([t]);const n=Fe(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=Fe(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(r.length>0){const a={[`${n}`]:r},o=this.getValue(),s={[`${n}`]:o},u=new Pe.default(a),i=this.proxy??s;return u.validate(s,{context:i}).then(c=>{if(c.pass)this.success();else{let h="error";Array.isArray(c.errors)&&c.errors.length>0&&(h=c.errors[0].message??h,c.errors=[c.errors[0]],c.errors[0].ref=i),this.error(h)}return c}).catch(c=>{const h=c.message??`${c}`;return this.error(h),c})}}return Promise.resolve({pass:!0})}}function lt(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(o){return o[a]}}}return new On(t,r,e)}const Ht=Symbol("EventEmitterKey");class Hr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,r){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(o=>o===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(o){console.error(o.message,o)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...r])}}function Kr(e,t){let r=0;return function(...n){const a=Date.now();a-r>t&&(Reflect.apply(e,{},[...n]),r=a)}}function Rt(e,t){let r,n=null;return function(...a){n=a,r||(r=setTimeout(()=>{r=null,Reflect.apply(e,{},[...n??[]])},t))}}const Se=Symbol("DomainKey"),Ve=Symbol("DataItemsKey");class jt{_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 zr=new jt;function _e(){return zr}function $e(e=null){e||(e=l.getCurrentInstance());const t=e?.proxy;return t?t[Se]??l.inject(Se,null):l.inject(Se,null)}const pt=Symbol("OriginalDateKey");function kt(e,t,r=[],n){const a=l.getCurrentInstance(),o=a?.proxy;let s=l.inject(Se,null);s===null&&(s=_e());const u=e||t.prop||t.name,i=new jt(u);i.parent=s;const d=x=>{o[pt]||w(x),i.set("modelValue",x)},c=()=>i.getForSelf("modelValue")??null,h=()=>o[pt]??null,w=x=>{const A={};L.extend(!0,A,l.toRaw(x)),o[pt]=A};l.isReactive(t)?l.watchEffect(()=>{i.merge(t,r)}):i.merge(t,r),t.modelValue&&w(t.modelValue),o[Se]=i,l.provide(Se,i);let T=null,$=null;if(a!==null){const x=l.inject(ee,null);T=rt(o,x,u,n),i.broadcast=T,o[ee]=T,l.provide(ee,T),o.broadcast=(S,k,...I)=>Reflect.apply(T.emit,T,[S,k,...I]);const A=l.inject(pe,null);$=lt(o,A,{componentName:""}),i.validateSchema=$,o[pe]=$,l.provide(pe,$),o[Ve]=new Map,o.validate=(S=!0)=>{const k=[];let I=null;if(S===!0)I={name:"*"};else if(Array.isArray(S)&&S.length>0){const P=S;I={name:g=>g?P.indexOf(g)!==-1:!1}}else if(S!=null&&typeof S=="object"){const P=S;if(Array.isArray(P.include)&&P.include.length>0){const g=P.include;I={name:p=>p?g.indexOf(p)!==-1:!1}}else if(Array.isArray(P.exclude)&&P.exclude.length>0){const g=P.exclude;I={name:p=>p?g.indexOf(p)===-1:!1}}}if(I){const P=T?.emitToChildren(I,"validate",!1);P&&Reflect.apply([].push,k,P)}return k.length==1?k[0]:k.length>1?Promise.all(k).then(P=>{let g=[];return P.forEach(p=>{p.pass===!1&&Array.isArray(p.errors)&&(g=[...g,...p.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},o.setNameValidateRules=(S,k=!0)=>{if(k){const I=Reflect.ownKeys(S),P=[...I],g={name:p=>{const m=I.includes(p);if(m){const v=P.findIndex(E=>p===E);v!==-1&&P.splice(v,1)}return m}};T?.emitToChildren(g,"setNameValidateRules",S,!1),P.length>0&&P.forEach(p=>{let m=String(p);const E=Nn(i,m,{componentName:"",fieldName:m,pureDataValidate:!0},T,$);o[Ve].set(m,E);const b=S[m];b&&E.validateSchema.setRule(b)})}},o.clearValidate=(S=!0)=>{let k=null;if(S===!0)k={name:"*"};else if(Array.isArray(S)&&S.length>0){const I=S;k={name:P=>P?I.indexOf(P)!==-1:!1}}else if(S!=null&&typeof S=="object"){const I=S;if(Array.isArray(I.include)&&I.include.length>0){const P=I.include;k={name:g=>g?P.indexOf(g)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const P=I.exclude;k={name:g=>g?P.indexOf(g)===-1:!1}}}k&&T?.emitToChildren(k,"clearValidate",!1)},o.resetFields=S=>{const k=c();if(!k)return;const I={};if(L.extend(!0,I,h()??{}),Array.isArray(S))S.forEach(P=>{k[P]=I[P]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(g=>{k[g]=I[g]});else if(S&&Array.isArray(S.exclude)){let P=S.exclude??[];Reflect.ownKeys(I).forEach(g=>{P.includes(g)||(k[g]=I[g])})}else Object.assign(k,I);o.clearValidate(S)},o.setModelValue=(S,k)=>{!k||k===u?d(S):T?.emitToChildren({name:k},"setModelValue",S)},o.getModelValue=()=>c()}return l.onUnmounted(()=>{i.destroy(),o[Se]=void 0,o[Ve]&&(o[Ve].clear(),o[Ve]=void 0),T!==null&&(T.destroy(),o[ee]=void 0),$!==null&&($.destroy(),o[pe]=void 0)}),i}function le(e,t,r){const a=l.getCurrentInstance()?.proxy,o=t??"",s=l.inject(ee,null),u=rt(a,s,o,r);a[ee]=u,l.provide(ee,u),a.broadcast=($,x,...A)=>Reflect.apply(u.emit,u,[$,x,...A]);const i=l.inject(pe,null);e.fieldName=e.fieldName??o;const d=lt(a,i,e);a[pe]=d,l.provide(pe,d),a.validate=($=null)=>{const x=[];if(!Array.isArray($)||$.indexOf(o)!==-1){const S=d?.validate();x.push(S)}let A=null;if($===!0)A={name:"*"};else if(Array.isArray($)&&$.length>0){const S=$;A={name:k=>k?S.indexOf(k)!==-1:!1}}else if($!=null&&typeof $=="object"){const S=$;if(Array.isArray(S.include)&&S.include.length>0){const k=S.include;A={name:I=>I?k.indexOf(I)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const k=S.exclude;A={name:I=>I?k.indexOf(I)===-1:!1}}}if(A){const S=u.emitToChildren(A,"validate",!1);Reflect.apply([].push,x,S)}return x.length==1?x[0]:x.length>1?Promise.all(x).then(S=>{let k=[];return S.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(k=[...k,...I.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=$=>d?.setRule($),a.setNameValidateRules=($,x=!1)=>{const A=$[o];if(A&&d?.setRule(A),x){const S={name:k=>Reflect.ownKeys($).includes(k)};u.emitToChildren(S,"setNameValidateRules",$,!1)}},a.clearValidate=($=null)=>{(!Array.isArray($)||$.indexOf(t??"")!==-1)&&d?.clear();let x=null;if($===!0)x={name:"*"};else if(Array.isArray($)&&$.length>0){const A=$;x={name:S=>S?A.indexOf(S)!==-1:!1}}else if($!=null&&typeof $=="object"){const A=$;if(Array.isArray(A.include)&&A.include.length>0){const S=A.include;x={name:k=>k?S.indexOf(k)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const S=A.exclude;x={name:k=>k?S.indexOf(k)===-1:!1}}}x&&u.emitToChildren(x,"clearValidate",!1)};const c=new Hr(a);a[Ht]=c;const h=Rt(($="validate")=>{$==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:En()).forEach($=>{c.on($,x=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Cn()).forEach($=>{c.on($,x=>{h("reset")})}),l.onUnmounted(()=>{u.destroy(),a[ee]=void 0,d.destroy(),a[pe]=void 0,c.destroy(),a[Ht]=void 0}),{broadcast:u,validateSchema:d,emitEvent:($,...x)=>{Reflect.apply(c.emit,c,[$,...x])},onEvent:($,x)=>{Reflect.apply(c.on,c,[x])},offEvent:($,x)=>{Reflect.apply(c.off,c,[x])}}}function Nn(e,t,r,n,a){const o={},s=t??"";r.fieldName=s,r.validateHandler={getValue(d){const c=e.getForSelf("modelValue");return c?c[s]:null}};const u=lt({},a,r);o.validate=(d=null)=>{const c=[];if(!Array.isArray(d)||d.indexOf(s)!==-1){const w=u?.validate();c.push(w)}let h=null;if(d===!0)h={name:"*"};else if(Array.isArray(d)&&d.length>0){const w=d;h={name:T=>T?w.indexOf(T)!==-1:!1}}else if(d!=null&&typeof d=="object"){const w=d;if(Array.isArray(w.include)&&w.include.length>0){const T=w.include;h={name:$=>$?T.indexOf($)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const T=w.exclude;h={name:$=>$?T.indexOf($)===-1:!1}}}if(h){const w=i.emitToChildren(h,"validate",!1);Reflect.apply([].push,c,w)}return c.length==1?c[0]:c.length>1?Promise.all(c).then(w=>{let T=[];return w.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(T=[...T,...$.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},o.setValidateRule=d=>u?.setRule(d),o.setNameValidateRules=d=>{const c=d[s];c&&u?.setRule(c)};const i=rt(null,n,s,o);return{broadcast:i,validateSchema:u}}const K=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${U(e,t)}px`:"";function U(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 a=Number(e.substring(0,r)),o=1;if(Ge){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),u=s.indexOf("px");u>0&&(o=Number(s.substring(0,u)))}return a*=o,a}if(r=e.indexOf("%"),r!==-1)return Number(e.substring(0,r))/100*t;const n=Number(e);return isNaN(n)?0:n}const we="PageStateKey";function me(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=U(e.top)),e.left!==null&&e.left!==void 0&&(t.left=U(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=U(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=U(e.right))),t}function Et(e,t,r={},n=!0,a=-1,o=-1,s=0,u=0){if(e.headerHeight=U(r.headerHeight??t.headerHeight),e.headerPadding=me(r.headerPadding??t.headerPadding),e.footerHeight=U(r.footerHeight??t.footerHeight),e.footerPadding=me(r.footerPadding??t.footerPadding),e.contentPadding=me(r.contentPadding??t.contentPadding),n){const i=r.height??t.height;i?e.height=U(i,o):e.height=U(o)-U(s,o)-U(u,o),e.width=U(r.width??t.width,a)}}function Tn(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=U(a.top),n.safeAreaBottom=U(a.bottom),n.safeAreaLeft=U(a.left),n.safeAreaRight=U(a.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,d=e.get("footerBarHeight")??0;Et(n,o,t,!0,s,u,i,d);const c=l.reactive(n),h=e.getForParent(we);h&&(n.height=Ze(e,h),n.width=Je(e,h),l.watch([()=>h.height,()=>h.width,()=>h.contentPadding,()=>h.headerMounted,()=>h.footerMounted],()=>{c.height=Ze(e,h),c.width=Je(e,h)}));const w=!h;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,$,x=-1,A=-1,S=0,k=0])=>{Et(c,$,t,w,x,A,S,k)}),e.set(we,c),c}function at(e){return e.get(we)}function ot(e,t){return t=t??e.get(we),t&&t.headerMounted?t.headerHeight+t.safeAreaTop:0}function it(e,t){return t=t??e.get(we),t&&t.footerMounted?t.footerHeight+t.safeAreaBottom:0}function Ze(e,t){if(t=t??e.get(we),t){const r=ot(e,t),n=it(e,t);return t.height-r-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Je(e,t){return t=t??e.get(we),t?t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Gr(e,t){const r=e.get("isInnerPage");return typeof r=="function"?Reflect.apply(r,{},[t,e]):!1}function Wr(e){return!!e.getForParent(we)}var Qe=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Qe||{});function yt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function je(e,t,r=1,n){const a=$e();return a==null?e:r===0?l.computed(()=>{const o=a.getAll(t);for(let u=o.length-1;u>=0;u--){const i=o[u];if(yt(i,n))return i}const s=e.value;return yt(s,n)?s:null}):l.computed(()=>{const o=e.value;return yt(o,n)?o:a?.get(t)})}function fe(e){return je(e,"readonly",0,function(r){return L.toBoolean(r)})}function de(e){return je(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 o=l.ref(a);return l.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 Vn=new Map,et=new Map;let Pt=null;function Yr(e){Pt=e}function In(e,t,r){if(r){let n=et.get(r);n||(n=new Map,et.set(r,n)),n.set(e,t)}else Vn.set(e,t)}function Ne(e,t,r){!r&&Pt&&(r=Pt(e)??void 0);let n=null;if(r){let a=et.get(r);a&&(n=a.get(t))}return n||(n=Vn.get(t)),n}function Ur(e,t){for(let r in e){const n=e[r];In(r,n,t)}}function Xr(e){et.delete(e)}function Zr(){return{top:0,left:0,bottom:0,right:0}}function Jr(e=0,t=0){if(Ge){const r=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:r,height:n-U(e,n)-U(t,n),headerHeight:44,footerHeight:44};return{rootWidth:r,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Qr{packages;installers;_version;get version(){return this._version}constructor(t,r,n){this.packages=t,this.installers=r,this._version=n}install(t,r={}){this.packages.forEach(o=>{o.install?t.use(o):o.name&&t.component(o.name,o)}),this.installers.forEach(o=>{o(t)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=_e();if(this.initPageLayout(r,a),r.autoAdjustPageLayout!==!1&&window.ResizeObserver){const o=Rt(()=>{const u={...r},i=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;u.width=i,u.height=d,this.initPageLayout(u,a)},150);new window.ResizeObserver(o).observe(window.document.body)}for(const o in r)n.indexOf(o)===-1&&a.set(o,r[o])}initPageLayout(t,r){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,o=L.extend({},Zr(),t.safeAreaInset),s=Jr(n,a),u=L.extend({},s.pageLayout,t.pageLayout);r=r??_e(),r.set("safeAreaInset",o),r.set("headerBarHeight",n),r.set("footerBarHeight",a),r.set("pageLayout",u),r.set("rootWidth",s.rootWidth),r.set("rootHeight",s.rootHeight)}setScopeGetter(t){Yr(t)}setAPI(t,r,n){In(t,r,n)}getAPI(t,r,n){return Ne(t,r,n)}batchSetAPI(t,r){Ur(t,r)}clearScopeAPI(t){Xr(t)}getRootDomain(){return _e()}}const el=[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],tl=[f.ElInfiniteScroll,f.ElLoading,f.ElMessage,f.ElMessageBox,f.ElNotification,f.ElPopoverDirective],nl=e=>{el.forEach(t=>{let r=t.name;typeof r=="string"?(r=`Fox${r.slice(2)}`,e.component(r,t)):e.use(t)}),tl.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}},ie={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}},An={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Rn={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0}},jn=[];for(const e in Rn)jn.push(e);function se(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let r=t.proxy;Object.assign(r,e)}}const rl=Symbol.for("InnerPageScopeKey"),ll=(e,t)=>({inheritAttrs:!0,props:{...ne,...An,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=kt(r.name,r);if(a){const d=Tn(a,r);se({getPageContentHeight:()=>Ze(a,d),getPageContentWidth:()=>Je(a,d),getPageHeaderHeight:()=>ot(a,d),getPageFooterHeight:()=>it(a,d)});const c=l.inject(rl,!1);d&&c&&(d.contentHeight="100%")}const o=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),i=d=>{const c=u?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(d,!0)};return l.watch(()=>r.rules,(d,c)=>{if(!d&&!c)return;const h=l.toRaw(c),w=l.toRaw(d),T=w?Reflect.ownKeys(w):[];(h?Reflect.ownKeys(h):[]).forEach(x=>{T.includes(x)||(w[x]=[])}),i(w)},{deep:!0}),l.onMounted(()=>{if(r.rules){const d=l.toRaw(r.rules);i(d)}}),{classes:o,styles:s}}}),{componentName:al,create:ol,scope:ti}=W("page"),il=ol(ll(al));function sl(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Te=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},kn=Te(il,[["render",sl]]),ul=(e,t)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!1},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,n){const a=$e(),o=a?at(a):null;o&&(o.headerMounted=!0);const s=l.computed(()=>({[e]:!0})),u=r.height!==null&&r.height!==void 0?U(r.height):null,i=l.computed(()=>{const m={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const v=me(r.padding??o.footerPadding);return Object.assign(m,v),u&&(o.headerHeight=u),m.height=o.headerHeight,m.safeAreaTop=o.safeAreaTop,m.safeAreaTop&&(m.top=m.safeAreaTop+(v.top??0),m.height=m.height+o.safeAreaTop),m.height,m.safeAreaTop,m}if(u&&(m.height=u),r.padding){const v=me(r.padding);Object.assign(m,v)}return m});l.onUnmounted(()=>{o&&(o.headerMounted=!1)});const d=l.computed(()=>{const m={};return i.value.height!==null&&i.value.height!==void 0&&(m.height=`${i.value.height}px`),i.value.top!==null&&i.value.top!==void 0&&(m.paddingTop=`${i.value.top}px`),i.value.left!==null&&i.value.left!==void 0&&(m.paddingLeft=`${i.value.left}px`),i.value.right!==null&&i.value.right!==void 0&&(m.paddingRight=`${i.value.right}px`),i.value.bottom!==null&&i.value.bottom!==void 0&&(m.paddingBottom=`${i.value.bottom}px`),m}),c=l.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),h=l.computed(()=>{const m={};return i.value.safeAreaTop!==null&&i.value.safeAreaTop!==void 0&&(m.top=`${i.value.safeAreaTop}px`),m}),w=l.computed(()=>r.leftShow?r.leftIcon||r.leftText||n.slots.left:!1),T=l.computed(()=>!(i.value.height!==null&&i.value.height!==void 0&&i.value.height<=0)),$=l.computed(()=>r.titleShow?r.title||r.titleIcon||n.slots.default:!1),x=l.computed(()=>r.rightShow?r.rightIcon||r.rightText||n.slots.right:!1),A=l.computed(()=>{let m={};return typeof r.leftIcon=="object"?Object.assign(m,r.leftIcon):m.name=r.leftIcon,m}),S=l.computed(()=>{let m={};return typeof r.titleIcon=="object"?Object.assign(m,r.titleIcon):m.name=r.titleIcon,m}),k=l.computed(()=>{let m={};return typeof r.rightIcon=="object"?Object.assign(m,r.rightIcon):m.name=r.rightIcon,m});function I(){n.emit("back")}function P(){n.emit("click-title")}function g(){n.emit("click-right")}function p(){n.emit("click-right-text")}return{classes:s,styles:d,mHeaderShow:T,leftStyles:c,rightStyles:h,mLeftShow:w,mTitleShow:$,mRightShow:x,mLeftIcon:A,mTitleIcon:S,mRightIcon:k,handleLeft:I,handleCenter:P,handleRight:g,handleRightText:p}}}),{componentName:cl,create:fl,scope:ni}=W("header-bar"),dl=fl(ul(cl)),hl={key:1,class:"fox-header-bar__title"};function ml(e,t,r,n,a,o){const s=l.resolveComponent("fox-ext-icon");return e.mHeaderShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(l.openBlock(),l.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:l.normalizeStyle(e.leftStyles)},[l.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(l.openBlock(),l.createBlock(s,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):l.createCommentVNode("",!0),e.leftText?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.handleLeft&&e.handleLeft(...u))},l.toDisplayString(e.leftText),1)):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0),e.mTitleShow?(l.openBlock(),l.createElementBlock("view",hl,[l.renderSlot(e.$slots,"default",{},()=>[e.title?(l.openBlock(),l.createElementBlock("view",{key:0,class:"text-title",onClick:t[1]||(t[1]=(...u)=>e.handleTitle&&e.handleTitle(...u))},l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),e.titleIcon?(l.openBlock(),l.createBlock(s,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),e.mRightShow?(l.openBlock(),l.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:l.normalizeStyle(e.rightStyles)},[l.renderSlot(e.$slots,"right",{},()=>[e.rightText?(l.openBlock(),l.createElementBlock("view",{key:0,onClick:t[2]||(t[2]=(...u)=>e.handleRightText&&e.handleRightText(...u))},l.toDisplayString(e.rightText),1)):l.createCommentVNode("",!0),e.rightIcon?(l.openBlock(),l.createBlock(s,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):l.createCommentVNode("",!0)])],4)):l.createCommentVNode("",!0)])],6)):l.createCommentVNode("",!0)}const Mn=Te(dl,[["render",ml]]);function gl(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 a=$e(),o=a?at(a):null;o&&(o.footerMounted=!0);const s=l.computed(()=>{const c=e;let h=e;return r.align==="left"?h=`${h}__left`:r.align==="right"?h=`${h}__right`:h=`${h}__center`,{[c]:!0,[h]:!0}}),u=r.height!==null&&r.height!==void 0?U(r.height):null,i=l.computed(()=>{const c={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&o){const h=me(r.padding??o.footerPadding);return Object.assign(c,h),u&&(o.footerHeight=u),c.height=o.footerHeight,c.safeAreaBottom=o.safeAreaBottom,c.safeAreaBottom&&(c.height=c.height+o.safeAreaBottom,c.bottom=c.safeAreaBottom+(h.bottom??0)),c}if(u&&(c.height=u),r.padding){const h=me(r.padding);Object.assign(c,h)}return c});l.onUnmounted(()=>{o&&(o.footerMounted=!1)});const d=l.computed(()=>{const c={};return i.value.height!==null&&i.value.height!==void 0&&(c.height=K(i.value.height)),i.value.top!==null&&i.value.top!==void 0&&(c.paddingTop=K(i.value.top)),i.value.left!==null&&i.value.left!==void 0&&(c.paddingLeft=K(i.value.left)),i.value.right!==null&&i.value.right!==void 0&&(c.paddingRight=K(i.value.right)),i.value.bottom!==null&&i.value.bottom!==void 0&&(c.paddingBottom=K(i.value.bottom)),c});return{classes:s,styles:d}}}}const{componentName:pl,create:yl,scope:ri}=W("footer-bar"),vl=yl(gl(pl));function bl(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Dn=Te(vl,[["render",bl]]);function xl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(r){const n=$e(),a=l.computed(()=>({[e]:!0})),o=l.computed(()=>{const s={};if(n){const u=at(n);if(u){if(r.padding){const h=me(r.padding);Object.assign(u.contentPadding,h)}const i=ot(n,u),d=it(n,u);let c="";if(u.contentHeight?c=`${u.contentHeight}`:c=`${u.height}px`,u.contentPadding,s.height=c,u.contentPadding.top!==null&&u.contentPadding.top!==void 0||i>0){const h=(u&&u.contentPadding&&u.contentPadding.top)??0;s.paddingTop=`${i+h}px`}if(u.contentPadding.bottom!==null&&u.contentPadding.bottom!==void 0||d>0){const h=(u&&u.contentPadding&&u.contentPadding.bottom)??0;s.paddingBottom=`${d+h}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=me(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:a,styles:o}}}}const{componentName:Sl,create:wl,scope:li}=W("content"),$l=wl(xl(Sl));function El(e,t,r,n,a,o){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const qn=Te($l,[["render",El]]),ke="GroupStateKey",Bn=Symbol.for("GroupScopeKey");function st(){return l.inject(Bn,!1)}function ut(e=!0){l.provide(Bn,e)}function Pl(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),o=l.markRaw({layout:a,passport:0,order:{index:0}});return e.set(ke,o),o}function Kt(e,t,r=-1,n=-1,a=!1,o){const s=e.get(ke);if(!s)return;const u=e.get("groupLayout")??{};r===-1&&(r=u.column??1),n===-1&&(n=u.gutter??0),o||(o=u.minItemWidth??-1);const i=()=>{const d=t===""||t===-1,c=U(t);let h=L.toNumber(r);const w=U(n);if(!d){let x=(c-(h-1)*w)/h;for(;o!==-1&&h>1&&x<o;)h--,x=(c-(h-1)*w)/h}let T=!1;const $=s.layout;$.value.width=t,$.value.column!==h&&($.value.column=h,T=!0),$.value.gutter!==w&&($.value.gutter=w,T=!0),T&&l.triggerRef($)};if(a)i();else{const d=++s.passport;setTimeout(()=>{d===s.passport&&i()},50)}}function Ke(e,t=!1){let r;return t?r=e.getForParent(ke):r=e.get(ke),r.layout}function Mt(e,t=!1){let r;return t?r=e.getForParent(ke):r=e.get(ke),r.order}function ce(e,t=1){return t==="stretch"?-1:(t=L.toNumber(t),t===-1?100:100*t/e)}function Cl(e){return e===window}const tt=e=>{const t=l.unref(e);if(Cl(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}},xe=(e,t)=>e?t?`fox-group__${e}-${t}`:"":`fox-group__${t}`,Ol=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},Nl=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},Tl=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"},Vl=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 Il(e,t){return{props:{...ne,...An,...Rn},setup(r,n){const a=kt(r.name,r,jn),o=Pl(a,{type:r.type}),s=st();ut(!0);const u=l.computed(()=>s&&a?Ke(a,!0).value:null),i=l.getCurrentInstance(),d=g=>{const p=i?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(g,!0)};l.watch(()=>r.rules,(g,p)=>{if(!g&&!p)return;const m=l.toRaw(p),v=l.toRaw(g),E=v?Reflect.ownKeys(v):[];(m?Reflect.ownKeys(m):[]).forEach(j=>{E.includes(j)||(v[j]=[])}),d(v)},{deep:!0}),l.onMounted(()=>{if(r.rules){const g=l.toRaw(r.rules);d(g)}});const c=e,h=l.computed(()=>{const g={};if(u.value){const p=Ke(a,!0);if(p.value.type==="flex"){if(r.width){const E=K(r.width);g.width=E}else{const E=ce(p.value.column,r.span);E>0&&(g.width=`${E}%`)}if(r.height){const E=K(r.height);g.height=E}const m=ce(p.value.column,r.offset);m>0&&(g["margin-left"]=`${m}%`);const v=p.value.gutter/2;v>0&&(g["padding-left"]=`${v}px`,g["padding-right"]=`${v}px`)}else if(p.value.type==="flow"){if(r.width){const E=K(r.width);g.width=E}else{const E=ce(p.value.column,r.span);E>0&&(g.width=`${E}%`)}if(r.height){const E=K(r.height);g.height=E}const m=ce(p.value.column,r.offset);m>0&&(g["margin-left"]=`${m}%`);const v=p.value.gutter/2;if(v>0){const E=a?Mt(a,!0):null;if(E){let b=L.toNumber(r.offset)+L.toNumber(r.span);(b===-1||b>p.value.column)&&(b=p.value.column);const j=Math.ceil((E.index+1)/p.value.column),D=Math.ceil((E.index+b)/p.value.column);if(j===D){const V=(E.index+1)%p.value.column,R=(E.index+b)%p.value.column,y=V===1?0:v,C=R===0?0:v;g["padding-left"]=`${y}px`,g["padding-right"]=`${C}px`}else{const V=b%p.value.column,R=0,y=V===0?0:v;g["padding-left"]=`${R}px`,g["padding-right"]=`${y}px`}E.index+=b}else g["padding-left"]=`${v}px`,g["padding-right"]=`${v}px`}}}else{if(r.width){const p=K(r.width);g.width=p}if(r.height){const p=K(r.height);g.height=p}}return g}),w=l.computed(()=>r.type==="flex"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0,[`${xe("flex",r.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:r.type==="flow"?{[`${xe("",r.type)}`]:!0,[`${xe("justify",r.justify)}`]:!0,[`${xe("align",r.align)}`]:!0}:{[`${xe("",r.type)}`]:!0,[`${c}__gutter`]:!0}),T=l.toRef(r,"title"),$=l.toRef(r,"gutter"),x=l.toRef(r,"column"),A=l.computed(()=>s?!0:L.toBoolean(r.isWrap)),S=l.ref([]),k=g=>{S.value.push(g)},I=l.ref(-1);if(Kt(a,I.value,x.value,$.value,!0,r.minItemWidth),r.autoLayout){l.watch([I,x,$],([p,m,v])=>{o.order.index=0,Kt(a,p,m,v,!1,r.minItemWidth)});let g=null;l.onMounted(()=>{if(Ge&&S.value&&S.value.length>0){const p=S.value[0];I.value=tt(p).width,window.ResizeObserver&&(g=new window.ResizeObserver(()=>{const m=tt(p).width;m>0&&m!==I.value&&(I.value=m)}),g.observe(p))}}),l.onUnmounted(()=>{g?.disconnect()})}const P=(g,p,m,v)=>{const E={...w.value};return p===0&&(E[`${c}__first`]=!0),m>=v-1&&(E[`${c}__last`]=!0),l.h("div",{ref:k,key:`${p}`,class:E},g)};return()=>{o.order.index=0;const g=[];let p=0;if(n.slots.title){const b={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},j=l.h("div",b,[n.slots.title()]);g.push(j)}else if(T.value){const b={key:`${p++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},j=[];if(r.showMark){const R=l.h("div",{class:{[`${c}__title-mark`]:!0}});j.push(R)}const D=l.h("div",{class:{[`${c}__title-text`]:!0}},[T.value]);j.push(D);const V=l.h("div",b,j);g.push(V)}const m=n.slots.default?n.slots.default():[];let v=[],E=0;if(r.type==="flex"){for(let b=0;b<m.length;b++){const j=String(m[b].type);if(j==="Symbol(Comment)")continue;if(j==="Symbol(Fragment)")if(Array.isArray(m[b].children)){const M=m[b].children;if(Reflect.apply([].splice,m,[b,1,...M]),M.length===0){b-=1;continue}}else{m.splice(b,1),b-=1;continue}const D=m[b];if(Tl(D)==="fragment"){let M=Vl(D);M>o.layout.value.column?M=o.layout.value.column:M<=0&&(M=1);const N=E+M;if(N>o.layout.value.column){const q=P([...v],p++,b-1,m.length);g.push(q),E=M,v=[D]}else v.push(D),E=N;continue}const R=Ol(D),y=Nl(D);if(R==="stretch"){if(E<o.layout.value.column){v.push(D);const M=P([...v],p++,b,m.length);g.push(M)}else{const M=P([...v],p++,b-1,m.length);g.push(M);const N=P([D],p++,b,m.length);g.push(N)}E=0,v=[];continue}let C=L.toNumber(R);if(C===-1){if(v.length>0){const N=P([...v],p++,b-1,m.length);g.push(N)}const M=P([D],p++,b,m.length);g.push(M),E=0,v=[];continue}C>o.layout.value.column?C=o.layout.value.column:C<=0&&(C=1);const O=E+C+y;if(O>o.layout.value.column){const M=P([...v],p++,b-1,m.length);g.push(M),E=C+y,v=[D]}else v.push(D),E=O}if(v.length>0){const b=P([...v],p++,m.length,m.length);g.push(b)}}else if(r.type==="flow"){const b=P(m,p++,0,m.length);g.push(b)}else for(let b=0;b<m.length;b++){const j=m[b],D=P([j],p++,b,m.length);g.push(D)}return A.value?l.h("div",{class:{[`${c}`]:!0},style:h.value},[g]):g}}}}const{componentName:Al,create:Rl,scope:ai}=W("group"),Fn=Rl(Il(Al)),Ln={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:jl,create:kl}=W("price"),Ml=kl({props:{...Ln},setup(e){const t=l.computed(()=>({[jl]:!0})),r=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>We(e.price)==0?"":It(e.price,e.decimalLength,!0,L.toNumber(e.digits),e.separator)),a=l.computed(()=>{let s=n.value;if(s.length==0)return"";let u=s.indexOf(".");return s.substring(0,u)}),o=l.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:a,decimalText:o}}}),Dl=["innerHTML"],ql=["innerHTML"];function Bl(e,t,r,n,a,o){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,Dl)):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,ql)):l.createCommentVNode("",!0)],2)}const nt=Te(Ml,[["render",Bl]]),{componentName:vt,create:Fl}=W("hint-text"),Ll=Fl({components:{[nt.name]:nt},props:{...Ln,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(()=>({[vt]:!0})),o=l.computed(()=>({left:K(e.startPoint.x),top:K(e.startPoint.y-e.height-10-4),height:K(e.height),width:K(e.width)})),s=l.computed(()=>({[`${vt}__content`]:!0})),u=l.computed(()=>({})),i=l.computed(()=>({[`${vt}__arrow`]:!0})),d=l.computed(()=>({top:K(e.height)}));return{classes:a,styles:o,textClasses:s,textStyles:u,arrowClasses:i,arrowStyles:d}}}),_l={key:1,class:"text"};function Hl(e,t,r,n,a,o){const s=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(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(l.openBlock(),l.createElementBlock("span",_l,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=Te(Ll,[["render",Hl]]);class _n{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}function Kl(e){return e===window}const Hn=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(Kl(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 o=0,s=0;for(a=t;a!==document;)s+=a.scrollTop,o+=a.scrollLeft,a=a.parentNode;return r-=o,n-=s,{x:r,y:n}},Ct={},zl=new _n,Ie=new Map,Ot=e=>{if(e){const t=document.getElementById(e);Ie.delete(e),t&&document.body.removeChild(t)}else{for(const t of Ie.keys()){const r=document.getElementById(t);r&&document.body.removeChild(r)}Ie.clear()}},Gl=e=>{const t=document.getElementById(e.id);if(t){const r=Ie.get(e.id);r?e={...Ct,...r,...e}:e={...Ct,...e};const n=l.createVNode(ct,e);return l.render(n,t),e.id}},Wl=e=>{e.unmount=Ot;let t;if(e.id){if(t=e.id,Ie.has(t))return Gl(e)}else t=`hinttext_${zl.get()}`;e={...Ct,...e},e.id=t,Ie.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},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg\u4E0D\u80FD\u4E3A\u7A7A");return}},Ue={show(e,t,r={},n=!0){n&&Ot(),Yl(t);const a=Hn(e),o={x:a.x,y:a.y},s=r.width??tt(e).width;return Wl({...r,message:t,startPoint:o,width:s})},hide(e){Ot(e)},install(e){e.config.globalProperties.$hintText=Ue}},{componentName:zt,create:Ul}=W("item"),Xl=Ul({inheritAttrs:!0,props:{...ne,...ie},setup(e,t){le({componentName:zt,validate:!1},e.prop??e.name);const r=$e(),n=st();ut(!1);const a=l.computed(()=>n&&r?Ke(r,!1).value:null),o=zt,s=l.computed(()=>({[o]:!0,[`${o}__gutter`]:a.value&&a.value.type!=="flow",[`${o}__stretch`]:e.span==="stretch",[`${o}__input--border`]:e.hasBorder,"is-error":!!E.value,"is-warn":!!m.value,"is-info":!!g.value})),u=l.computed(()=>{const N={};if(a.value)if(a.value.type==="flex"){if(e.width)N.width=K(e.width);else{const B=ce(a.value.column,e.span);B>0&&(N.width=`${B}%`)}const q=ce(a.value.column,e.offset);q>0&&(N["margin-left"]=`${q}%`);const F=a.value.gutter/2;F>0&&(N["padding-left"]=`${F}px`,N["padding-right"]=`${F}px`)}else if(a.value.type==="flow"){if(e.width)N.width=K(e.width);else{const B=ce(a.value.column,e.span);B>0&&(N.width=`${B}%`)}const q=ce(a.value.column,e.offset);q>0&&(N["margin-left"]=`${q}%`);const F=a.value.gutter/2;if(F>0){const B=r?Mt(r,!1):null;if(B){let _=L.toNumber(e.offset)+L.toNumber(e.span);(_===-1||_>a.value.column)&&(_=a.value.column);const z=Math.ceil((B.index+1)/a.value.column),G=Math.ceil((B.index+_)/a.value.column);if(z===G){const ue=(B.index+1)%a.value.column,te=(B.index+_)%a.value.column,J=ue===1?0:F,X=te===0?0:F;N["padding-left"]=`${J}px`,N["padding-right"]=`${X}px`}else{const ue=_%a.value.column,te=0,J=ue===0?0:F;N["padding-left"]=`${te}px`,N["padding-right"]=`${J}px`}B.index+=_}else N["padding-left"]=`${F}px`,N["padding-right"]=`${F}px`}}else return e.width&&(N.width=K(e.width)),N;else e.width&&(N.width=K(e.width));return N}),i=l.ref(null),d=l.computed({get:()=>i.value??L.toBoolean(e.isRequired),set:N=>{i.value=N}}),c=l.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),h=je(l.toRef(e,"labelPosition"),"labelPosition",Qe.Near),w=l.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),T=l.computed(()=>({[`${o}__main`]:!0,[`${o}__main--${w.value}`]:!0})),$=l.computed(()=>({label:!0,[`label--${w.value}`]:!0})),x=je(l.toRef(e,"labelWidth"),"labelWidth",Qe.Near),A=l.computed(()=>x&&x.value?{width:K(x.value)}:{}),S=l.computed(()=>({["label--string"]:!0,["label--required"]:d.value})),k=l.computed(()=>({content:!0,[e.contentClass]:!0})),I=l.computed(()=>({...e.contentStyle})),P=l.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});se({setRequired(N){d.value=N},setErrorTip(N){P.errorTip=N},setErrorIcon(N){P.errorIcon=N},setWarnTip(N){P.warnTip=N},setWarnIcon(N){P.warnIcon=N},setInfoTip(N){P.infoTip=N},setInfoIcon(N){P.infoIcon=N}});const g=l.computed(()=>e.infoTip||P.infoTip),p=l.computed(()=>e.infoIcon||P.infoIcon),m=l.computed(()=>e.warnTip||P.warnTip),v=l.computed(()=>e.warnIcon||P.warnIcon),E=l.computed(()=>e.errorTip||P.errorTip),b=l.computed(()=>e.errorIcon||P.errorIcon),j=l.computed(()=>E.value?"error":m.value?"warn":g.value?"info":""),D=l.computed(()=>j.value.length>0),V=l.computed(()=>j.value==="error"?E.value:j.value==="warn"?m.value:j.value==="info"?g.value:""),R=l.computed(()=>j.value==="error"?b.value:j.value==="warn"?v.value:j.value==="info"?p.value:null),y=l.computed(()=>{let N={[`${o}__tip`]:!0,[`${o}__tip--${j.value}`]:!0};return j.value==="error"&&e.errorClass?N[`${e.errorClass}`]=!0:j.value==="warn"&&e.warnClass?N[`${e.warnClass}`]=!0:j.value==="info"&&e.infoClass&&(N[`${e.infoClass}`]=!0),N}),C=l.computed(()=>{let N={};return h&&h.value==="top"?N["padding-left"]="0px":x&&x.value&&(N["padding-left"]=K(x.value)),N}),O=l.ref();let M="";return l.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([N,q,F,B])=>{!O.value||(N&&!Q(q)?M?Ue.show(O.value,q,{...B,id:M,type:F}):M=Ue.show(O.value,q,{...B,type:F}):Ue.hide(M))}),{classes:s,styles:u,mainClasses:T,hasLabel:c,labelClasses:$,labelStyles:A,labelStringClasses:S,contentClasses:k,contentStyles:I,contentRef:O,hasTip:D,mTip:V,mIcon:R,tipClasses:y,tipStyles:C}}}),Zl={key:0,class:"fox-item__tip-icon"},Jl={class:"fox-item__tip-text"};function Ql(e,t,r,n,a,o){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",Zl,l.toDisplayString(e.mIcon),1)):l.createCommentVNode("",!0),l.createElementVNode("div",Jl,l.toDisplayString(e.mTip),1)],6)):l.createCommentVNode("",!0)]),_:1}),l.renderSlot(e.$slots,"hide")],6)}const ae=Te(Xl,[["render",Ql]]);function ea(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(),o=st();ut(!1);const s=l.computed(()=>o&&a?Ke(a,!1).value:null),u=e,i=l.computed(()=>({[u]:!0,[`${u}__gutter`]:s.value&&s.value.type!=="flow",[`${u}__stretch`]:r.span==="stretch"})),d=l.computed(()=>{const c={};if(s.value)if(s.value.type==="flex"){if(r.width)c.width=K(r.width);else{const T=ce(s.value.column,r.span);T>0&&(c.width=`${T}%`)}const h=ce(s.value.column,r.offset);h>0&&(c["margin-left"]=`${h}%`);const w=s.value.gutter/2;w>0&&(c["padding-left"]=`${w}px`,c["padding-right"]=`${w}px`)}else if(s.value.type==="flow"){if(r.width)c.width=K(r.width);else{const T=ce(s.value.column,r.span);T>0&&(c.width=`${T}%`)}const h=ce(s.value.column,r.offset);h>0&&(c["margin-left"]=`${h}%`);const w=s.value.gutter/2;if(w>0){const T=a?Mt(a,!1):null;if(T){let $=L.toNumber(r.offset)+L.toNumber(r.span);($===-1||$>s.value.column)&&($=s.value.column);const x=Math.ceil((T.index+1)/s.value.column),A=Math.ceil((T.index+$)/s.value.column);if(x===A){const S=(T.index+1)%s.value.column,k=(T.index+$)%s.value.column,I=S===1?0:w,P=k===0?0:w;c["padding-left"]=`${I}px`,c["padding-right"]=`${P}px`}else{const S=$%s.value.column,k=0,I=S===0?0:w;c["padding-left"]=`${k}px`,c["padding-right"]=`${I}px`}T.index+=$}else c["padding-left"]=`${w}px`,c["padding-right"]=`${w}px`}}else return r.width&&(c.width=K(r.width)),c;else r.width&&(c.width=K(r.width));return c});return()=>{const c={class:i.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:ta,create:na,scope:oi}=W("slot-item"),Kn=na(ea(ta));function ra(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 a=e,o=l.computed(()=>({[a]:!0,[`${a}__stretch`]:r.span==="stretch",[`${a}__${r.align}`]:!0})),s=$e(),u=st();ut(!1);const i=l.computed(()=>{const c={};if(u&&s){const h=Ke(s,!1);if(h.value.type!=="flex")return r.width&&(c.width=K(r.width)),c;if(r.width)c.width=K(r.width);else{const $=ce(h.value.column,r.span);$>0&&(c.width=`${$}%`)}const w=ce(h.value.column,r.offset);w>0&&(c["margin-left"]=`${w}%`);const T=h.value.gutter/2;T>0&&(c["padding-left"]=`${T}px`,c["padding-right"]=`${T}px`)}else r.width&&(c.width=K(r.width));return c}),d=l.computed(()=>({[`${a}__content`]:!0}));return()=>{const c=[];if(n.slots.default){const $=n.slots.default();if(r.divide)for(let x=0;x<$.length;x++){if(x>0){const A=l.h("div",{class:{[`${a}__divide`]:!0}});c.push(A)}c.push($[x])}else Reflect.apply([].push,c,$)}const h={class:d.value},w=l.h("div",h,c),T={class:o.value,style:i.value};return l.h("div",T,[w])}}}}const{componentName:la,create:aa,scope:ii}=W("row-item"),zn=aa(ra(la)),Gt={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function oa(e,t,r){return{props:{...ne,...ie,...Gt},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(!1),d=de(l.computed(()=>n.disabled)),c=fe(l.computed(()=>n.readonly)),h=Y(n,"modelValue"),w=e,T=l.computed(()=>({[w]:!0})),$=m=>{h.value=m,o("update:modelValue",m),o("input",m)},x=m=>{o("change",m)};let A=Y(n,"hintText"),S=l.ref(!1);const k=m=>{let E=m.target.value;i.value=!0,Q(A.value)||(S.value=!0),o("focus",E,m)},I=m=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let E=m.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),o("blur",E,m)},P=()=>{o("clear","")},g=l.computed(()=>We(n.unit)>0),p=l.ref();return se({focus:()=>{p?.value.focus()},blur:()=>{p?.value.blur()},select:()=>{p?.value.select()}}),()=>{const v={...a.attrs,ref:p,class:T.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:h.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:P,onChange:x,onInput:$,onFocus:k,onBlur:I},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:g.value&&(E.suffix=()=>[n.unit]);const b=[],j=l.h(f.ElInput,v,E);b.push(j);const D={default:()=>b};if(a.slots.default){const C=a.slots.default();D.label=()=>C}const R={...oe(n,Gt),hintText:A.value,hintVisible:S.value,prop:`${n.prop}_item`};return l.h(r,R,D)}}}}const{componentName:ia,create:sa,scope:ua}=W("input-item"),Gn=sa(oa(ia,ua,ae));function Oe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ae(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wn(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class ca{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=Ne(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 fa(){const e=l.getCurrentInstance();return new ca(e.proxy)}function Yn(e,t,r){const n=Oe(e,t),a=Oe(e,r);if(n!==a)return!1;const o=Ae(e,t),s=Ae(e,r);return o===s}function Un(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(o=>{for(let s of n){const u=Wn(e,s);if(Array.isArray(u)&&u.length>0){const i=Un(e,o,r,u)??[];Reflect.apply([].push,a,i)}else{let i=!1;if(r==="text")i=Oe(e,s)===o;else if(r==="item")i=Yn(e,s,o);else{let d=Ae(e,s);d==null&&(d=Oe(e,s)),i=d===o}if(i){a.push(s);break}}}}),a}function da(e){return{text:e,value:e}}const Wt={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ha(e,t,r){return{props:{...ne,...ie,...Wt},emits:["change","update:modelValue","blur","focus","clear","visible-change","remove-tag"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(null),d=l.ref([]),c=(y,C,O,M=!0)=>{const N=Un(n,y,C,O);if(N===null){if(d.value===null||d.value.length===0)return;i.value=null,d.value=[],M&&(o("update:modelValue",null),o("change",null));return}let q=!0;if(N.length!==d.value.length)q=!1;else for(let F=0;F<N.length;F++){const B=N[F],_=d.value[F];if(!Yn(n,B,_)){q=!1;break}}if(!q){d.value=N;let F=[],B=[];N.forEach(z=>{F.push(Ae(n,z)),n.valueType==="text"?B.push(Oe(n,z)):n.valueType==="item"?B.push(z):B.push(Ae(n,z))});let _;n.multiple?(i.value=F,_=l.toRaw(B)):(i.value=F[0]??"",_=l.toRaw(B[0]??"")),M&&(o("update:modelValue",_),o("change",_))}},h=l.ref([]),w=fa();l.watch([()=>n.source,()=>n.params],async([y,C])=>{if(y){const O=await w.load("select",y,C);if(O.length>0)if(typeof O[0]=="string"){let q=O.map(F=>da(F));h.value=q}else h.value=O}},{immediate:!0}),l.watch([()=>h.value,()=>n.modelValue],([y,C])=>{c(C,n.valueType,y,!1)});let T=null,$=l.ref(!1);typeof n.remoteMethod=="function"&&(T=async y=>{if(y!=null){$.value=!0;try{const C=await n.remoteMethod(y);h.value=C}catch(C){console.error(C)}$.value=!1}});const x=l.ref(!1),A=de(l.computed(()=>n.disabled)),S=fe(l.computed(()=>n.readonly)),k=e,I=l.computed(()=>({[k]:!0})),P=y=>{n.allowCreate?(o("update:modelValue",y),o("change",y),i.value=y):c(y,"value",h.value,!0)};let g=Y(n,"hintText"),p=l.ref(!1);const m=y=>{let O=y.target.value;x.value=!0,Q(g.value)||(p.value=!0),o("focus",O,y)},v=y=>{setTimeout(()=>{p.value&&(p.value=!1),x.value=!1},0);let O=y.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value?setTimeout(()=>{o("blur",O,y)},50):o("blur",O,y)},E=()=>{o("clear","")},b=l.ref(!1),j=y=>{b.value=y,o("visible-change",y)},D=y=>{o("remove-tag",y)},V=(y,C)=>{const O=[];return y.forEach((M,N)=>{const q=Wn(n,M);if(Array.isArray(q)&&q.length>0){const F=V(q,C),B=Oe(n,M),z={key:`${B}_${N}`,label:B};O.push(l.h(f.ElOptionGroup,z,{default:()=>F}))}else{const F=Ae(n,M),B=Oe(n,M),_=L.toBoolean(M.disabled),G={key:`${F}_${N}`,label:B,disabled:_,value:F};typeof C=="function"?O.push(l.h(f.ElOption,G,{default:C})):O.push(l.h(f.ElOption,G))}}),O},R=l.ref();return se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const C={...a.attrs,ref:R,class:I.value,clearable:n.clearable,multiple:n.multiple,placeholder:u.placeholder.value,disabled:A.value||S.value,modelValue:i.value,["value-key"]:n.valueKey,["allow-create"]:n.allowCreate,onClear:E,onChange:P,onFocus:m,onBlur:v,onVisibleChange:j,onRemoveTag:D};typeof T=="function"&&(C["remote-method"]=T,C.loading=$.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),O.default=()=>V(h.value,a.slots.option);const M=[],N=l.h(f.ElSelect,C,O);M.push(N);const q={default:()=>M};if(a.slots.default){const z=a.slots.default();q.label=()=>z}const B={...oe(n,Wt),hintText:g.value,hintVisible:p.value,prop:`${n.prop??n.name}_item`};return l.h(r,B,q)}}}}const{componentName:ma,create:ga,scope:pa}=W("select-item"),Xn=ga(ha(ma,pa,ae)),Yt={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ya(e,t,r){return{props:{...ne,...ie,...Yt},emits:["change","update:modelValue","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(!1),d=de(l.computed(()=>n.disabled)),c=fe(l.computed(()=>n.readonly)),h=Y(n,"modelValue"),w=e,T=l.computed(()=>({[w]:!0})),$=v=>{h.value=v,o("update:modelValue",v),o("change",v)};let x=Y(n,"hintText"),A=l.ref(!1);const S=v=>{let b=v.target.value;i.value=!0,Q(x.value)||(A.value=!0),o("focus",b,v)},k=v=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let b=v.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),o("blur",b,v)},I=()=>{o("clear","")},P=v=>{o("calendar-change",v)},g=(v,E,b)=>{o("panel-change",v,E,b)},p=v=>{o("visible-change",v)},m=l.ref();return se({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()},handleOpen:()=>{m?.value.handleOpen()},handleClose:()=>{m?.value.handleClose()}}),()=>{const E={...a.attrs,ref:m,class:T.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:h.value,["onUpdate:modelValue"]:$,onClear:I,onFocus:S,onBlur:k,onCalendarChange:P,onPanelChange:g,onVisibleChange:p},b={};a.slots["range-separator"]&&(b["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(b.default=a.slots.cell);const j=[],D=l.h(f.ElDatePicker,E,b);j.push(D);const V={default:()=>j};if(a.slots.default){const O=a.slots.default();V.label=()=>O}const y={...oe(n,Yt),hintText:x.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,y,V)}}}}const{componentName:va,create:ba,scope:xa}=W("date-item"),Zn=ba(ya(va,xa,ae)),Ut={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Sa(e,t,r){return{props:{...ne,...ie,...Ut},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(!1),d=de(l.computed(()=>n.disabled)),c=fe(l.computed(()=>n.readonly)),h=Y(n,"modelValue"),w=e,T=l.computed(()=>({[w]:!0})),$=p=>{h.value=p,o("update:modelValue",p),o("change",p)};let x=Y(n,"hintText"),A=l.ref(!1);const S=p=>{let v=p.target.value;i.value=!0,Q(x.value)||(A.value=!0),o("focus",v,p)},k=p=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let v=p.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),o("blur",v,p)},I=()=>{o("clear","")},P=p=>{o("visible-change",p)},g=l.ref();return se({focus:()=>{g?.value.focus()},blur:()=>{g?.value.blur()},handleOpen:()=>{g?.value.handleOpen()},handleClose:()=>{g?.value.handleClose()}}),()=>{const m={...a.attrs,ref:g,class:T.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:h.value,["onUpdate:modelValue"]:$,onClear:I,onFocus:S,onBlur:k,onVisibleChange:P},v={},E=[],b=l.h(f.ElTimePicker,m,v);E.push(b);const j={default:()=>E};if(a.slots.default){const y=a.slots.default();j.label=()=>y}const V={...oe(n,Ut),hintText:x.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,V,j)}}}}const{componentName:wa,create:$a,scope:Ea}=W("time-item"),Jn=$a(Sa(wa,Ea,ae)),Xt={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Pa(e,t,r){return{props:{...ne,...ie,...Xt},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(!1),d=de(l.computed(()=>n.disabled)),c=fe(l.computed(()=>n.readonly)),h=Y(n,"modelValue"),w=e,T=l.computed(()=>({[w]:!0})),$=g=>{h.value=g,o("update:modelValue",g),o("change",g)};let x=Y(n,"hintText"),A=l.ref(!1);const S=g=>{let m=g.target.value;i.value=!0,Q(x.value)||(A.value=!0),o("focus",m,g)},k=g=>{setTimeout(()=>{A.value&&(A.value=!1),i.value=!1},0);let m=g.target.value;n.maxLength&&m.length>Number(n.maxLength)&&(m=m.slice(0,Number(n.maxLength))),o("blur",m,g)},I=()=>{o("clear","")},P=l.ref();return se({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()}}),()=>{const p={...a.attrs,ref:P,class:T.value,placeholder:u.placeholder.value,disabled:d.value,readonly:c.value,modelValue:h.value,["onUpdate:modelValue"]:$,onClear:I,onFocus:S,onBlur:k},m={},v=[],E=l.h(f.ElTimeSelect,p,m);v.push(E);const b={default:()=>v};if(a.slots.default){const R=a.slots.default();b.label=()=>R}const D={...oe(n,Xt),hintText:x.value,hintVisible:A.value,prop:`${n.prop}_item`};return l.h(r,D,b)}}}}const{componentName:Ca,create:Oa,scope:Na}=W("time-select-item"),Qn=Oa(Pa(Ca,Na,ae));function Zt(e,t=0){let r=`${e}`,n=r.indexOf(".");if(n==-1)return r;let a=n;for(let o=r.length-1;o>=n;o--)if(r.charAt(o)!="0"){a=o;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 Jt(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=gn(`${e}`,`${t}`);return Zt(n)}else{let n=Vt(`${e}`,pn(`${t}`),20);return Zt(n)}}function Ta(e,t=-1,r=!1,n=3,a=","){return It(e,t,r,n,a)}function Qt(e,t,r,n,a=!0){if(e=="")return"";if(e=yn(e),t=L.toNumber(t),t==1)return e;if(n)e=Jt(e,t),r&&(e=="0"&&a?e=`${e}.`.padEnd(L.toNumber(r)+2,"0"):e=Vt(e,1,L.toNumber(r)));else{let o=-1*t;e=Jt(e,o)}return e}function en(e,t){let r={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=L.toBoolean(t.minInclude),a=$t(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let 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=L.toBoolean(t.maxInclude),a=$t(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(r.maxValid=!1)}return r}const tn={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 Va(e,t,r){return{props:{...ne,...ie,...tn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=l.ref(!1),u=de(l.computed(()=>n.disabled)),i=fe(l.computed(()=>n.readonly)),d=Y(n,"modelValue"),c=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([V,R,y])=>{if(Q(V))return"";const C=Qt(V,R,y,!1);c.value!==C&&(c.value=C)},{immediate:!0});const h=l.computed(()=>{let V="";return s.value&&(V=c.value),V}),{t:w}=ge.useFoxI18n(t),T=l.computed(()=>{let V=n.placeholder??"";return!s.value&&!Q(c.value)?V=Ta(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):V=w(["placeholder",V]),V}),$=e,x=l.computed(()=>({[$]:!0,[`${$}__disabled`]:u.value,[`${$}__placeholder`]:c.value.length>0})),A=je(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>s.value?{textAlign:"left"}:{textAlign:A.value??"right"});const S=l.ref(""),k=l.computed(()=>{let V=S.value;return Q(V)&&(V=n.errorTip??""),V}),I=l.ref(""),P=l.ref(!1),g=(V,R)=>{if(V=`${V}`,Q(V)){c.value="",d.value="",R.forEach(y=>{o(y,"")}),L.toBoolean(n.showTip)&&P.value&&(P.value=!1);return}if(V.length>=2){let y=V;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){l.triggerRef(c);return}}if(V!="-"){if(!bn(V)){l.triggerRef(c);return}if(n.integerLength!=-1&&xn(V)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Sn(V)>Number(n.decimalLength)){l.triggerRef(c);return}let y=en(V,n);if(y.maxValid===!1){S.value=y.message,l.triggerRef(c);return}}else if(n.min!=null&&L.toNumber(n.min)>=0){l.triggerRef(c);return}I.value=V,L.toBoolean(n.showTip)&&(P.value=V.length>0),c.value=V,d.value=Qt(V,n.rates,n.precision,!0),R.forEach(y=>{o(y,d.value)})},p=V=>{g(V,["update:modelValue","input"])},m=V=>{g(V,["update:modelValue","change"])},v=V=>{if(s.value=!0,L.toBoolean(n.showTip)){let R=c.value;Q(R)&&(R=n.hintText),Q(R)||(I.value=R,P.value=!0)}S.value="",o("focus",d.value,V)},E=V=>{if(setTimeout(()=>{s.value=!1,L.toBoolean(n.showTip)&&P.value===!0&&(P.value=!1)},0),!Q(c.value)){let R=en(c.value,n);if(R.minValid===!1||R.maxValid){S.value=R.message;return}}o("update:modelValue",d.value,V),o("blur",d.value,V)},b=()=>{o("clear","")},j=l.computed(()=>We(n.unit)>0),D=l.ref();return se({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const R={...a.attrs,ref:D,class:x.value,type:"digit",maxlength:n.maxLength,placeholder:T.value,clearable:n.clearable,disabled:u.value,readonly:i.value,modelValue:h.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:b,onInput:p,onChange:m,onFocus:v,onBlur:E},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:j.value&&(y.suffix=()=>[n.unit]);const C=[],O=l.h(f.ElInput,R,y);C.push(O);const M={default:()=>C};if(a.slots.default){const B=a.slots.default();M.label=()=>B}const q={...oe(n,tn),errorTip:k.value,hintText:I.value,hintVisible:P.value,hintType:"number",prop:`${n.prop}_item`};return l.h(r,q,M)}}}}const{componentName:Ia,create:Aa,scope:Ra}=W("money-item"),er=Aa(Va(Ia,Ra,ae)),nn={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function ja(e,t,r){return{props:{...ne,...ie,...nn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(!1),d=de(l.computed(()=>n.disabled)),c=fe(l.computed(()=>n.readonly)),h=Y(n,"modelValue"),w=e,T=l.computed(()=>({[w]:!0,[`${w}__append`]:p.value})),$=l.computed(()=>({[`${w}__unit`]:!0})),x=v=>{h.value=v,o("update:modelValue",v),o("input",v)},A=v=>{o("change",v)};let S=Y(n,"hintText"),k=l.ref(!1);const I=v=>{let b=v.target.value;i.value=!0,Q(S.value)||(k.value=!0),o("focus",b,v)},P=v=>{setTimeout(()=>{k.value&&(k.value=!1),i.value=!1},0);let b=v.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),o("blur",b,v)},g=()=>{o("clear","")},p=l.computed(()=>We(n.unit)>0),m=l.ref();return se({focus:()=>{m?.value.focus()},blur:()=>{m?.value.blur()}}),()=>{const E={...a.attrs,ref:m,class:T.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:h.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:g,onChange:A,onInput:x,onFocus:I,onBlur:P},b={},j=[],D=l.h(f.ElInputNumber,E,b);j.push(D);const V={default:()=>j};if(a.slots.default){const O=a.slots.default();V.label=()=>O}const y={...oe(n,nn),hintText:S.value,hintVisible:k.value,prop:`${n.prop}_item`};if(a.slots.append)V.append=a.slots.append;else if(p.value){const O={class:$.value},M=l.h("div",O,[n.unit]);V.append=()=>M}return l.h(r,y,V)}}}}const{componentName:ka,create:Ma,scope:Da}=W("input-number-item"),tr=Ma(ja(ka,Da,ae));function Me(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ce(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function qa(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}class Ba{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=Ne(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 Fa(){const e=l.getCurrentInstance();return new Ba(e.proxy)}function Nt(e,t,r){const n=Me(e,t),a=Me(e,r);if(n!==a)return!1;const o=Ce(e,t),s=Ce(e,r);return o===s}function nr(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let o=n;for(let s=0;Array.isArray(o)&&s<t.length;s++){const u=t[s];if(Array.isArray(u)){const i=nr(e,u,r,n);a.push(i)}else{let i=!1;for(let d of o){if(r==="text")i=Me(e,d)===u;else if(r==="item")i=Nt(e,d,u);else{let c=Ce(e,d);c==null&&(c=Me(e,d)),i=c===u}if(i){a.push(d),o=qa(e,d);break}}if(!i)break}}return a}function La(e){return{text:e,value:e}}const rn={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 _a(e,t,r){return{props:{...ne,...ie,...rn},emits:["change","update:modelValue","blur","focus","clear","visible-change","expand-change","remove-tag"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(null),d=l.ref([]),c=(C,O,M,N=!0)=>{if(n.props&&n.props.lazy===!0){if(i.value===C)return;i.value=C;const B=l.toRaw(C);N&&(o("update:modelValue",B),o("change",B))}const q=nr(n,C,O,M);if(q===null){if(d.value.length===0||d.value===null)return;d.value=[],i.value=null,N&&(o("update:modelValue",null),o("change",null));return}let F=!0;if(q.length!==d.value.length)F=!1;else for(let B=0;B<q.length;B++){const _=q[B],z=d.value[B];if(Array.isArray(_)){if(!Array.isArray(z)||_.length!==z.length)F=!1;else for(let G=0;G<_.length;G++)if(!Nt(n,_[G],z[G])){F=!1;break}}else Nt(n,_,z)||(F=!1);if(!F)break}if(!F){d.value=q;let B=[],_=[];q.forEach(G=>{if(Array.isArray(G)){let ue=[],te=[];for(let J of G)ue.push(Ce(n,J)),n.valueType==="text"?te.push(Me(n,J)):n.valueType==="item"?te.push(J):te.push(Ce(n,J));B.push(ue),_.push(te)}else B.push(Ce(n,G)),n.valueType==="text"?_.push(Me(n,G)):n.valueType==="item"?_.push(G):_.push(Ce(n,G))}),i.value=B;const z=l.toRaw(_);N&&(o("update:modelValue",z),o("change",z))}},h=l.ref([]),w=Fa();l.watch([()=>n.source,()=>n.params],async([C,O])=>{if(C){const M=await w.load("cascader",C,O);if(M.length>0)if(typeof M[0]=="string"){let F=M.map(B=>La(B));h.value=F}else h.value=M}},{immediate:!0}),l.watch([()=>h.value,()=>n.modelValue],([C,O])=>{c(O,n.valueType,C,!1)});let T=null,$=l.ref(!1);typeof n.remoteMethod=="function"&&(T=async C=>{if(C!=null){$.value=!0;try{const O=await n.remoteMethod(C);h.value=O}catch(O){console.error(O)}$.value=!1}});const x=l.ref(!1),A=de(l.computed(()=>n.disabled)),S=fe(l.computed(()=>n.readonly)),k=e,I=l.computed(()=>({[k]:!0})),P=l.computed(()=>{let C={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(C.multiple=!0),n.props&&Object.assign(C,n.props),C}),g=C=>{n.allowCreate?(o("update:modelValue",C),o("change",C),i.value=C):c(C,"value",h.value,!0)};let p=Y(n,"hintText"),m=l.ref(!1);const v=C=>{let M=C.target.value;x.value=!0,Q(p.value)||(m.value=!0),o("focus",M,C)},E=C=>{setTimeout(()=>{m.value&&(m.value=!1),x.value=!1},0);let M=C.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),j.value?setTimeout(()=>{o("blur",M,C)},50):o("blur",M,C)},b=()=>{o("clear","")},j=l.ref(!1),D=C=>{j.value=C,o("visible-change",C)},V=C=>{o("remove-tag",C)},R=C=>{o("expand-change",C)},y=l.ref();return se({focus:()=>{y?.value.focus()},blur:()=>{y?.value.blur()},getCheckedNodes:()=>y?.value.getCheckedNodes()}),()=>{const O={...a.attrs,ref:y,class:I.value,props:P.value,clearable:n.clearable,placeholder:u.placeholder.value,disabled:A.value||S.value,options:h.value,modelValue:i.value,onClear:b,onChange:g,onFocus:v,onBlur:E,onVisibleChange:D,onRemoveTag:V,expandChange:R};typeof T=="function"&&(O["remote-method"]=T,O.loading=$.value);const M={};a.slots.option&&(M.default=a.slots.option),a.slots.empty&&(M.empty=a.slots.empty);const N=[],q=l.h(f.ElCascader,O,M);N.push(q);const F={default:()=>N};if(a.slots.default){const G=a.slots.default();F.label=()=>G}const _={...oe(n,rn),hintText:p.value,hintVisible:m.value,prop:`${n.prop??n.name}_item`};return l.h(r,_,F)}}}}const{componentName:Ha,create:Ka,scope:za}=W("cascader-item"),rr=Ka(_a(Ha,za,ae)),ln={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1}};function Ga(e,t,r){return{props:{...ne,...ie,...ln},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),{toLocaleRefs:s}=ge.useFoxI18n(t),u=s(n,["placeholder"]),i=l.ref(!1),d=de(l.computed(()=>n.disabled)),c=fe(l.computed(()=>n.readonly)),h=Y(n,"modelValue"),w=e,T=l.computed(()=>({[w]:!0})),$=p=>{h.value=p,o("update:modelValue",p),o("input",p)},x=p=>{o("change",p)};let A=Y(n,"hintText"),S=l.ref(!1);const k=p=>{let v=p.target.value;i.value=!0,Q(A.value)||(S.value=!0),o("focus",v,p)},I=p=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let v=p.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),o("blur",v,p)},P=()=>{o("clear","")},g=l.ref();return se({focus:()=>{g?.value.focus()},blur:()=>{g?.value.blur()},select:()=>{g?.value.select()}}),()=>{const m={...a.attrs,ref:g,class:T.value,placeholder:u.placeholder.value,clearable:n.clearable,disabled:d.value,readonly:c.value,modelValue:h.value,onClear:P,onChange:x,onInput:$,onFocus:k,onBlur:I},v={};a.slots.prepend&&(v.prepend=a.slots.prepend),a.slots.append&&(v.append=a.slots.append),a.slots.prefix&&(v.prefix=a.slots.prefix),a.slots.suffix&&(v.suffix=a.slots.suffix),a.slots.option&&(v.default=a.slots.option);const E=[],b=l.h(f.ElAutocomplete,m,v);E.push(b);const j={default:()=>E};if(a.slots.default){const y=a.slots.default();j.label=()=>y}const V={...oe(n,ln),hintText:A.value,hintVisible:S.value,prop:`${n.prop}_item`};return l.h(r,V,j)}}}}const{componentName:Wa,create:Ya,scope:Ua}=W("autocomplete-item"),lr=Ya(Ga(Wa,Ua,ae));function Xa(e,t,r,n,a){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 d=t[i],c=o[i];const h=d.find(w=>w[n]===c);if(!h)break;s.push(h[r])}else{let i=t;for(let d=0;i&&d<o.length;d++){let c=o[d],h=i.find(w=>w[n]===c);if(!h)break;s.push(h[r]),i=h[a]}}return s}class Za{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=Ne(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 Ja(){const e=l.getCurrentInstance();return new Za(e.proxy)}const ar={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"}};function Qa(e,t){return{props:{...ar},setup(r,{attrs:n}){const a=Ja(),o=l.ref([]);l.watch([()=>r.source,()=>r.params],async([i,d])=>{o.value=await a.load(r.sourceType,i,d)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(o.value)||o.value.length===0)return"";let i=Xa(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?l.resolveComponent(r.tag):r.tag;return()=>{const i={...n};return r.resolveTag?l.h(u,i,{default:()=>s.value}):l.h(u,i,s.value)}}}}const{componentName:si,create:eo,scope:ui}=W("mapping"),Dt=eo(Qa());function to(e,t){return{props:{...ar},setup(r,{attrs:n}){return()=>{const a={default:o=>{const s=o.row[o.column.property];return l.h(Dt,{...r,modelValue:s})}};return l.h(f.ElTableColumn,{...n},a)}}}}const{componentName:ci,create:no,scope:fi}=W("table-mapping-column"),or=no(to());class ro{proxy;constructor(t){this.proxy=t}async load(t,r,n,a,o,s,u){if(Array.isArray(r)){let d=(n-1)*a,c=d+a;c>r.length&&(c=r.length);const h=r.slice(d,c);return{totalSize:r.length,page:h}}if(typeof r=="function")return await Reflect.apply(r,null,[n,a,o,s,u]);const i=Ne(this.proxy,t);return i===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(L.isObject(o)&&l.isReactive(o)&&(o=l.toRaw(o)),await await Reflect.apply(i,null,[r,n,a,o,s,u]))}}function lo(){const e=l.getCurrentInstance();return new ro(e.proxy)}const an={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]}},on={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationVisible:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}};function ao(e,t,r){return{inheritAttrs:!1,props:{...ne,...ie,...an,...on},emits:["change","page-size-change","page-index-change","current-change"],setup(n,a){const{locale:o}=ge.useFoxI18n(t),{emitEvent:s}=le({componentName:e},n.prop??n.name),u=e,i=l.computed(()=>({[u]:!0})),d=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),c=l.ref(n.pageIndex);l.watch(()=>n.pageIndex,j=>{c.value=j});const h=j=>{c.value=j,s("page-index-change",j)},w=l.ref(n.pageSize);l.watch(()=>n.pageSize,j=>{w.value=j});const T=j=>{w.value=j,s("page-size-change",j)},$=l.shallowRef({}),x=l.computed(()=>({...$.value,...n.params??{},...n.baseParams??{}})),A=l.ref(0),S=l.ref(),k=lo();let I=!0;const P=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:L.toBoolean(n.autoLoad),g=async(j,D,V,R)=>{try{const y=await k.load("table",j,D,V,R,I,o.value);A.value=y.totalSize,S.value=y.page}catch(y){console.error("[FoxUI] Load Table Data Fail",y),A.value=0,S.value=[]}I=!1};l.watch([c,w],([j,D],[V,R])=>{D!==R&&(c.value=1,j=1),g(n.data,j,D,x.value)}),l.watch([()=>n.data,x],([j,D],[V,R])=>{!P()||(j!==V&&(I=!0),g(j,c.value,w.value,D))});const p=(j={})=>{$.value=l.toRaw(j??{}),l.triggerRef($),l.nextTick(()=>{g(n.data,c.value,w.value,x.value)})},m=()=>{A.value=0,S.value=[]};P()&&p();let v=null;const E=(j,D)=>{v=j,s("current-change",j,D)},b=l.ref();return se({clearSelection:()=>b?.value.clearSelection(),getSelectionRows:()=>b?.value.getSelectionRows(),toggleRowSelection:(j,D)=>{b?.value.toggleRowSelection(j,D)},toggleAllSelection:()=>{b?.value.toggleAllSelection()},toggleRowExpansion:(j,D)=>{b?.value.toggleRowExpansion(j,D)},setCurrentRow:j=>{b?.value.setCurrentRow(j)},getCurrentRow:()=>v,clearSort:()=>{b?.value.clearSort()},clearFilter:j=>{b?.value.clearFilter(j)},doLayout:()=>{b?.value.doLayout()},sort:(j,D)=>{b?.value.sort(j,D)},scrollTo:(j,D)=>{b?.value.scrollTo(j,D)},setScrollTop:j=>{b?.value.setScrollTop(j)},setScrollLeft:j=>{b?.value.setScrollLeft(j)},loadData:p,clearData:m}),()=>{const D={...a.attrs,onCurrentChange:E,data:S.value,ref:b,class:i.value},V={};a.slots.default&&(V.default=a.slots.default),a.slots.append&&(V.append=a.slots.append),a.slots.empty&&(V.empty=a.slots.empty);const R=[],y=l.h(f.ElTable,D,V);if(R.push(y),typeof a.slots.pagination=="function"){const q=a.slots.pagination();R.push(q)}else if(n.paginationVisible){const q={class:d.value,total:A.value,pageSize:w.value,["onUpdate:pageSize"]:T,pageSizes:n.pageSizes,currentPage:c.value,["onUpdate:currentPage"]:h,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0},F=l.h(f.ElPagination,q);R.push(F)}const C={default:()=>R},M={...oe(n,an,on),prop:`${n.prop}_item`};return M.contentClass=`${u}__wrap`,l.h(r,M,C)}}}}const{componentName:oo,create:io,scope:so}=W("table-item"),ir=io(ao(oo,so,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 uo{proxy;constructor(t){this.proxy=t}async load(t,r,n){if(Array.isArray(r))return r;if(typeof r=="function")return await r(n);const a=Ne(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 co(){const e=l.getCurrentInstance();return new uo(e.proxy)}function sr(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 o=ze(e,t),s=ze(e,r);return o===s}function fo(e,t,r,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let o of n){let s=!1;if(r==="text")s=De(e,o)===t;else if(r==="item")s=sr(e,o,t);else{let u=ze(e,o);u==null&&(u=De(e,o)),s=u===t}if(s){a=o;break}}return a}function ho(e){return{text:e,value:e}}const sn={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 mo(e,t,r){return{inheritAttrs:!0,props:{...ne,...ie,...sn},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=l.ref(null),u=l.ref(null),i=(I,P,g,p=!0)=>{const m=fo(n,I,P,g);if(m===null){if(u.value===null)return;u.value=null,s.value=null,p&&(o("update:modelValue",null),o("change",null));return}if(!sr(n,m,u.value)){s.value=I;const E=l.toRaw(m);u.value=E;let b=null;n.valueType==="text"?b=De(n,E):n.valueType==="item"?b=E:b=ze(n,E),p&&(o("update:modelValue",b),o("change",b))}},d=l.ref([]),c=co();l.watch([()=>n.source,()=>n.params],async([I,P])=>{if(I){const g=await c.load("radio",I,P);if(g.length>0)if(typeof g[0]=="string"){let v=g.map(E=>ho(E));d.value=v}else d.value=g}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([I,P])=>{i(P,n.valueType,I,!1)});const h=de(l.computed(()=>n.disabled)),w=fe(l.computed(()=>n.readonly)),T=e,$=l.computed(()=>({[T]:!0})),x=I=>{i(I,"value",d.value,!0)};let A=Y(n,"hintText"),S=Y(n,"hintVisible");const k=I=>{const P=[];return I.forEach((g,p)=>{const m=ze(n,g),v=De(n,g),E=L.toBoolean(g.disabled),j={key:`${m}_${p}`,class:n.itemClass,label:m,disabled:E,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?P.push(l.h(f.ElRadioButton,j,{default:()=>[v]})):P.push(l.h(f.ElRadio,j,{default:()=>[v]}))}),P};return()=>{const P={...a.attrs,class:$.value,disabled:h.value||w.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,onChange:x},g=[],p={};a.slots.options?p.default=a.slots.options:p.default=()=>k(d.value);const m=l.h(f.ElRadioGroup,P,p);g.push(m);const v={default:()=>g};if(a.slots.default){const D=a.slots.default();v.label=()=>D}const b={...oe(n,sn),hintText:A.value,hintVisible:S.value,prop:`${n.prop??n.name}_item`};return l.h(r,b,v)}}}}const{componentName:go,create:po,scope:yo}=W("radio-item"),ur=po(mo(go,yo,ae));function qe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Re(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}class vo{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=Ne(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 bo(){const e=l.getCurrentInstance();return new vo(e.proxy)}function cr(e,t,r){if(t===r)return!0;if(t===null||r===null)return!1;const n=qe(e,t),a=qe(e,r);if(n!==a)return!1;const o=Re(e,t),s=Re(e,r);return o===s}function xo(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(o=>{for(let s of n){let u=!1;if(r==="text")u=qe(e,s)===o;else if(r==="item")u=cr(e,s,o);else{let i=Re(e,s);i==null&&(i=qe(e,s)),u=i===o}if(u){a.push(s);break}}}),a}function So(e){return{text:e,value:e}}const un={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:{...ne,...ie,...un},emits:["change","update:modelValue"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=l.ref([]),u=l.ref([]),i=(I,P,g,p=!0)=>{const m=xo(n,I,P,g);if(m===null){if(u.value===null||u.value.length===0)return;s.value=[],u.value=[],p&&(o("update:modelValue",[]),o("change",[]));return}let v=!0;if(m.length!==u.value.length)v=!1;else for(let E=0;E<m.length;E++){const b=m[E],j=u.value[E];if(!cr(n,b,j)){v=!1;break}}if(!v){u.value=m;let E=[],b=[];m.forEach(D=>{E.push(Re(n,D)),n.valueType==="text"?b.push(qe(n,D)):n.valueType==="item"?b.push(D):b.push(Re(n,D))}),s.value=E;const j=l.toRaw(b);p&&(o("update:modelValue",j),o("change",j))}},d=l.ref([]),c=bo();l.watch([()=>n.source,()=>n.params],async([I,P])=>{if(I){const g=await c.load("checkbox",I,P);if(g.length>0)if(typeof g[0]=="string"){let v=g.map(E=>So(E));d.value=v}else d.value=g}},{immediate:!0}),l.watch([()=>d.value,()=>n.modelValue],([I,P])=>{i(P,n.valueType,I,!1)});const h=de(l.computed(()=>n.disabled)),w=fe(l.computed(()=>n.readonly)),T=e,$=l.computed(()=>({[T]:!0})),x=I=>{i(I,"value",d.value,!0)};let A=Y(n,"hintText"),S=Y(n,"hintVisible");const k=I=>{const P=[];return I.forEach((g,p)=>{const m=Re(n,g),v=qe(n,g),E=L.toBoolean(g.disabled),j={key:`${m}_${p}`,class:n.itemClass,label:m,disabled:E,size:n.size,border:L.toBoolean(n.border)};n.itemType==="button"?P.push(l.h(f.ElCheckboxButton,j,{default:()=>[v]})):P.push(l.h(f.ElCheckbox,j,{default:()=>[v]}))}),P};return()=>{const P={...a.attrs,class:$.value,disabled:h.value||w.value,modelValue:s.value,["text-color"]:n.textColor,fill:n.fill,max:L.toNumber(n.max),min:L.toNumber(n.min),onChange:x},g=[],p={};a.slots.options?p.default=a.slots.options:p.default=()=>k(d.value);const m=l.h(f.ElCheckboxGroup,P,p);g.push(m);const v={default:()=>g};if(a.slots.default){const D=a.slots.default();v.label=()=>D}const b={...oe(n,un),hintText:A.value,hintVisible:S.value,prop:`${n.prop??n.name}_item`};return l.h(r,b,v)}}}}const{componentName:$o,create:Eo,scope:Po}=W("checkbox-item"),fr=Eo(wo($o,Po,ae)),cn={modelValue:{type:[Number,String],required:!1}};function Co(e,t,r){return{props:{...ne,...ie,...cn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=de(l.computed(()=>n.disabled)),u=fe(l.computed(()=>n.readonly)),i=Y(n,"modelValue",x=>L.toNumber(x)),d=e,c=l.computed(()=>({[d]:!0})),h=x=>{o("update:modelValue",x),o("change",x)};let w=Y(n,"hintText"),T=l.ref(!1);const $=l.ref();return se({}),()=>{const A={...a.attrs,ref:$,class:c.value,readonly:u.value||s.value,modelValue:i.value,onChange:h},S={},k=[],I=l.h(f.ElRate,A,S);k.push(I);const P={default:()=>k};if(a.slots.default){const v=a.slots.default();P.label=()=>v}const p={...oe(n,cn),hintText:w.value,hintVisible:T.value,prop:`${n.prop}_item`};return l.h(r,p,P)}}}}const{componentName:Oo,create:No,scope:To}=W("rate-item"),dr=No(Co(Oo,To,ae)),fn={modelValue:{type:[Boolean,String,Number],required:!1}};function Vo(e,t,r){return{props:{...ne,...ie,...fn},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const{emitEvent:o}=le({componentName:e},n.prop??n.name),s=de(l.computed(()=>n.disabled)),u=fe(l.computed(()=>n.readonly)),i=Y(n,"modelValue"),d=e,c=l.computed(()=>({[d]:!0})),h=x=>{o("update:modelValue",x),o("change",x)};let w=Y(n,"hintText"),T=Y(n,"hintVisible");const $=l.ref();return se({}),()=>{const A={...a.attrs,ref:$,class:c.value,readonly:u.value,disabled:s.value,modelValue:i.value,onChange:h},S={},k=[],I=l.h(f.ElSwitch,A,S);k.push(I);const P={default:()=>k};if(a.slots.default){const v=a.slots.default();P.label=()=>v}const p={...oe(n,fn),hintText:w.value,hintVisible:T.value,prop:`${n.prop}_item`};return l.h(r,p,P)}}}}const{componentName:Io,create:Ao,scope:Ro}=W("switch-item"),hr=Ao(Vo(Io,Ro,ae)),jo=Symbol.for("InnerPageScopeKey"),ko=Symbol.for("DialogItemStateKey");function Mo(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(jo,!0);const a={};l.provide(ko,a);const o=i=>{typeof a.beforeClose=="function"&&a.beforeClose(i)},s=l.ref(!0),u=i=>{s.value=i};return()=>{const d={...n.attrs,title:r.title,draggable:r.draggable,modelValue:s.value,"onUpdate:modelValue":u,"append-to-body":r.appendToBody,"close-on-click-modal":r.closeOnClickModal,"close-on-press-escape":r.closeOnPressEscape,"before-close":o},c={};if(typeof n.slots.default=="function"){const h=n.slots.default();c.default=()=>h}return l.h(f.ElDialog,d,c)}}}}const{componentName:di,create:Do,scope:hi}=W("dialog-item"),mr=Do(Mo()),{componentName:dn,create:qo}=W("ext-icon"),gr=qo({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:t,slots:r}){const n=o=>{t("click",o)},a=l.computed(()=>e.name?e.name.indexOf("/")!==-1:!1);return()=>{const o=a.value;return l.h(o?"img":e.tag,{class:o?`${dn}__img`:`${e.fontClassName} ${dn} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:K(e.size),width:K(e.size),height:K(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 a=e,o=l.computed(()=>({[a]:!0})),s=l.computed(()=>({[`${a}__mark`]:!0,[`${a}__mark-${r.type}`]:!0})),u=l.computed(()=>r.color?{background:r.color}:null),i=l.computed(()=>({[`${a}__text`]:!0,[`${a}__text-${r.type}`]:!0})),d=l.computed(()=>r.color?{color:r.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const x={class:s.value,style:u.value};c=l.h("div",x)}const h={class:i.value,style:d.value},w=n.default?n.default():[],T=l.h("div",h,w),$={class:o.value};return l.h("div",$,[c,T])}}}}const{componentName:Fo,create:Lo,scope:mi}=W("indicator"),pr=Lo(Bo(Fo));var ye=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()})(ye,function(){var r=1e3,n=6e4,a=36e5,o="millisecond",s="second",u="minute",i="hour",d="day",c="week",h="month",w="quarter",T="year",$="date",x="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,k={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("_")},I=function(V,R,y){var C=String(V);return!C||C.length>=R?V:""+Array(R+1-C.length).join(y)+V},P={s:I,z:function(V){var R=-V.utcOffset(),y=Math.abs(R),C=Math.floor(y/60),O=y%60;return(R<=0?"+":"-")+I(C,2,"0")+":"+I(O,2,"0")},m:function V(R,y){if(R.date()<y.date())return-V(y,R);var C=12*(y.year()-R.year())+(y.month()-R.month()),O=R.clone().add(C,h),M=y-O<0,N=R.clone().add(C+(M?-1:1),h);return+(-(C+(y-O)/(M?O-N:N-O))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:h,y:T,w:c,d,D:$,h:i,m:u,s,ms:o,Q:w}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},g="en",p={};p[g]=k;var m=function(V){return V instanceof j},v=function V(R,y,C){var O;if(!R)return g;if(typeof R=="string"){var M=R.toLowerCase();p[M]&&(O=M),y&&(p[M]=y,O=M);var N=R.split("-");if(!O&&N.length>1)return V(N[0])}else{var q=R.name;p[q]=R,O=q}return!C&&O&&(g=O),O||!C&&g},E=function(V,R){if(m(V))return V.clone();var y=typeof R=="object"?R:{};return y.date=V,y.args=arguments,new j(y)},b=P;b.l=v,b.i=m,b.w=function(V,R){return E(V,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var j=function(){function V(y){this.$L=v(y.locale,null,!0),this.parse(y)}var R=V.prototype;return R.parse=function(y){this.$d=function(C){var O=C.date,M=C.utc;if(O===null)return new Date(NaN);if(b.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var N=O.match(A);if(N){var q=N[2]-1||0,F=(N[7]||"0").substring(0,3);return M?new Date(Date.UTC(N[1],q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,F)):new Date(N[1],q,N[3]||1,N[4]||0,N[5]||0,N[6]||0,F)}}return new Date(O)}(y),this.$x=y.x||{},this.init()},R.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},R.$utils=function(){return b},R.isValid=function(){return this.$d.toString()!==x},R.isSame=function(y,C){var O=E(y);return this.startOf(C)<=O&&O<=this.endOf(C)},R.isAfter=function(y,C){return E(y)<this.startOf(C)},R.isBefore=function(y,C){return this.endOf(C)<E(y)},R.$g=function(y,C,O){return b.u(y)?this[C]:this.set(O,y)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(y,C){var O=this,M=!!b.u(C)||C,N=b.p(y),q=function(J,X){var he=b.w(O.$u?Date.UTC(O.$y,X,J):new Date(O.$y,X,J),O);return M?he:he.endOf(d)},F=function(J,X){return b.w(O.toDate()[J].apply(O.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(X)),O)},B=this.$W,_=this.$M,z=this.$D,G="set"+(this.$u?"UTC":"");switch(N){case T:return M?q(1,0):q(31,11);case h:return M?q(1,_):q(0,_+1);case c:var ue=this.$locale().weekStart||0,te=(B<ue?B+7:B)-ue;return q(M?z-te:z+(6-te),_);case d:case $:return F(G+"Hours",0);case i:return F(G+"Minutes",1);case u:return F(G+"Seconds",2);case s:return F(G+"Milliseconds",3);default:return this.clone()}},R.endOf=function(y){return this.startOf(y,!1)},R.$set=function(y,C){var O,M=b.p(y),N="set"+(this.$u?"UTC":""),q=(O={},O[d]=N+"Date",O[$]=N+"Date",O[h]=N+"Month",O[T]=N+"FullYear",O[i]=N+"Hours",O[u]=N+"Minutes",O[s]=N+"Seconds",O[o]=N+"Milliseconds",O)[M],F=M===d?this.$D+(C-this.$W):C;if(M===h||M===T){var B=this.clone().set($,1);B.$d[q](F),B.init(),this.$d=B.set($,Math.min(this.$D,B.daysInMonth())).$d}else q&&this.$d[q](F);return this.init(),this},R.set=function(y,C){return this.clone().$set(y,C)},R.get=function(y){return this[b.p(y)]()},R.add=function(y,C){var O,M=this;y=Number(y);var N=b.p(C),q=function(_){var z=E(M);return b.w(z.date(z.date()+Math.round(_*y)),M)};if(N===h)return this.set(h,this.$M+y);if(N===T)return this.set(T,this.$y+y);if(N===d)return q(1);if(N===c)return q(7);var F=(O={},O[u]=n,O[i]=a,O[s]=r,O)[N]||1,B=this.$d.getTime()+y*F;return b.w(B,this)},R.subtract=function(y,C){return this.add(-1*y,C)},R.format=function(y){var C=this,O=this.$locale();if(!this.isValid())return O.invalidDate||x;var M=y||"YYYY-MM-DDTHH:mm:ssZ",N=b.z(this),q=this.$H,F=this.$m,B=this.$M,_=O.weekdays,z=O.months,G=function(X,he,ve,be){return X&&(X[he]||X(C,M))||ve[he].slice(0,be)},ue=function(X){return b.s(q%12||12,X,"0")},te=O.meridiem||function(X,he,ve){var be=X<12?"AM":"PM";return ve?be.toLowerCase():be},J={YY:String(this.$y).slice(-2),YYYY:this.$y,M:B+1,MM:b.s(B+1,2,"0"),MMM:G(O.monthsShort,B,z,3),MMMM:G(z,B),D:this.$D,DD:b.s(this.$D,2,"0"),d:String(this.$W),dd:G(O.weekdaysMin,this.$W,_,2),ddd:G(O.weekdaysShort,this.$W,_,3),dddd:_[this.$W],H:String(q),HH:b.s(q,2,"0"),h:ue(1),hh:ue(2),a:te(q,F,!0),A:te(q,F,!1),m:String(F),mm:b.s(F,2,"0"),s:String(this.$s),ss:b.s(this.$s,2,"0"),SSS:b.s(this.$ms,3,"0"),Z:N};return M.replace(S,function(X,he){return he||J[X]||N.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(y,C,O){var M,N=b.p(C),q=E(y),F=(q.utcOffset()-this.utcOffset())*n,B=this-q,_=b.m(this,q);return _=(M={},M[T]=_/12,M[h]=_,M[w]=_/3,M[c]=(B-F)/6048e5,M[d]=(B-F)/864e5,M[i]=B/a,M[u]=B/n,M[s]=B/r,M)[N]||B,O?_:b.a(_)},R.daysInMonth=function(){return this.endOf(h).$D},R.$locale=function(){return p[this.$L]},R.locale=function(y,C){if(!y)return this.$L;var O=this.clone(),M=v(y,C,!0);return M&&(O.$L=M),O},R.clone=function(){return b.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()},V}(),D=j.prototype;return E.prototype=D,[["$ms",o],["$s",s],["$m",u],["$H",i],["$W",d],["$M",h],["$y",T],["$D",$]].forEach(function(V){D[V[1]]=function(R){return this.$g(R,V[0],V[1])}}),E.extend=function(V,R){return V.$i||(V(R,j,E),V.$i=!0),E},E.locale=v,E.isDayjs=m,E.unix=function(V){return E(1e3*V)},E.en=p[g],E.Ls=p,E.p={},E})})(yr);const Ee=yr.exports;var vr={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/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},i=function(x){return(x=+x)+(x>68?1900:2e3)},d=function(x){return function(A){this[x]=+A}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(A){if(!A||A==="Z")return 0;var S=A.match(/([+-]|\d\d)/g),k=60*S[1]+(+S[2]||0);return k===0?0:S[0]==="+"?-k:k}(x)}],h=function(x){var A=u[x];return A&&(A.indexOf?A:A.s.concat(A.f))},w=function(x,A){var S,k=u.meridiem;if(k){for(var I=1;I<=24;I+=1)if(x.indexOf(k(I,0,A))>-1){S=I>12;break}}else S=x===(A?"pm":"PM");return S},T={A:[s,function(x){this.afternoon=w(x,!1)}],a:[s,function(x){this.afternoon=w(x,!0)}],S:[/\d/,function(x){this.milliseconds=100*+x}],SS:[a,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[o,d("seconds")],ss:[o,d("seconds")],m:[o,d("minutes")],mm:[o,d("minutes")],H:[o,d("hours")],h:[o,d("hours")],HH:[o,d("hours")],hh:[o,d("hours")],D:[o,d("day")],DD:[a,d("day")],Do:[s,function(x){var A=u.ordinal,S=x.match(/\d+/);if(this.day=S[0],A)for(var k=1;k<=31;k+=1)A(k).replace(/\[|\]/g,"")===x&&(this.day=k)}],M:[o,d("month")],MM:[a,d("month")],MMM:[s,function(x){var A=h("months"),S=(h("monthsShort")||A.map(function(k){return k.slice(0,3)})).indexOf(x)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[s,function(x){var A=h("months").indexOf(x)+1;if(A<1)throw new Error;this.month=A%12||A}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(x){this.year=i(x)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function $(x){var A,S;A=x,S=u&&u.formats;for(var k=(x=A.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,b,j){var D=j&&j.toUpperCase();return b||S[j]||r[j]||S[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(V,R,y){return R||y.slice(1)})})).match(n),I=k.length,P=0;P<I;P+=1){var g=k[P],p=T[g],m=p&&p[0],v=p&&p[1];k[P]=v?{regex:m,parser:v}:g.replace(/^\[|\]$/g,"")}return function(E){for(var b={},j=0,D=0;j<I;j+=1){var V=k[j];if(typeof V=="string")D+=V.length;else{var R=V.regex,y=V.parser,C=E.slice(D),O=R.exec(C)[0];y.call(b,O),E=E.replace(O,"")}}return function(M){var N=M.afternoon;if(N!==void 0){var q=M.hours;N?q<12&&(M.hours+=12):q===12&&(M.hours=0),delete M.afternoon}}(b),b}}return function(x,A,S){S.p.customParseFormat=!0,x&&x.parseTwoDigitYear&&(i=x.parseTwoDigitYear);var k=A.prototype,I=k.parse;k.parse=function(P){var g=P.date,p=P.utc,m=P.args;this.$u=p;var v=m[1];if(typeof v=="string"){var E=m[2]===!0,b=m[3]===!0,j=E||b,D=m[2];b&&(D=m[2]),u=this.$locale(),!E&&D&&(u=S.Ls[D]),this.$d=function(C,O,M){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*C);var N=$(O)(C),q=N.year,F=N.month,B=N.day,_=N.hours,z=N.minutes,G=N.seconds,ue=N.milliseconds,te=N.zone,J=new Date,X=B||(q||F?1:J.getDate()),he=q||J.getFullYear(),ve=0;q&&!F||(ve=F>0?F-1:J.getMonth());var be=_||0,ft=z||0,dt=G||0,ht=ue||0;return te?new Date(Date.UTC(he,ve,X,be,ft,dt,ht+60*te.offset*1e3)):M?new Date(Date.UTC(he,ve,X,be,ft,dt,ht)):new Date(he,ve,X,be,ft,dt,ht)}catch{return new Date("")}}(g,v,p),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),j&&g!=this.format(v)&&(this.$d=new Date("")),u={}}else if(v instanceof Array)for(var V=v.length,R=1;R<=V;R+=1){m[1]=v[R-1];var y=S.apply(this,m);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}R===V&&(this.$d=new Date(""))}else I.call(this,P)}}})})(vr);const _o=vr.exports;var br={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n,a){var o=n.prototype,s=o.format;a.en.ordinal=function(u){var i=["th","st","nd","rd"],d=u%100;return"["+u+(i[(d-20)%10]||i[d]||i[0])+"]"},o.format=function(u){var i=this,d=this.$locale();if(!this.isValid())return s.bind(this)(u);var c=this.$utils(),h=(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(w){switch(w){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return d.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return d.ordinal(i.week(),"W");case"w":case"ww":return c.s(i.week(),w==="w"?1:2,"0");case"W":case"WW":return c.s(i.isoWeek(),w==="W"?1:2,"0");case"k":case"kk":return c.s(String(i.$H===0?24:i.$H),w==="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 w}});return s.bind(this)(h)}}})})(br);const Ho=br.exports;var xr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n,a){var o=n.prototype,s=function(h){return h&&(h.indexOf?h:h.s)},u=function(h,w,T,$,x){var A=h.name?h:h.$locale(),S=s(A[w]),k=s(A[T]),I=S||k.map(function(g){return g.slice(0,$)});if(!x)return I;var P=A.weekStart;return I.map(function(g,p){return I[(p+(P||0))%7]})},i=function(){return a.Ls[a.locale()]},d=function(h,w){return h.formats[w]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,x,A){return x||A.slice(1)})}(h.formats[w.toUpperCase()])},c=function(){var h=this;return{months:function(w){return w?w.format("MMMM"):u(h,"months")},monthsShort:function(w){return w?w.format("MMM"):u(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(w){return w?w.format("dddd"):u(h,"weekdays")},weekdaysMin:function(w){return w?w.format("dd"):u(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(w){return w?w.format("ddd"):u(h,"weekdaysShort","weekdays",3)},longDateFormat:function(w){return d(h.$locale(),w)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},a.localeData=function(){var h=i();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(w){return d(h,w)},meridiem:h.meridiem,ordinal:h.ordinal}},a.months=function(){return u(i(),"months")},a.monthsShort=function(){return u(i(),"monthsShort","months",3)},a.weekdays=function(h){return u(i(),"weekdays",null,null,h)},a.weekdaysShort=function(h){return u(i(),"weekdaysShort","weekdays",3,h)},a.weekdaysMin=function(h){return u(i(),"weekdaysMin","weekdays",2,h)}}})})(xr);const Ko=xr.exports;var Sr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){var r="week",n="year";return function(a,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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(d),h=s(this).endOf(r);if(c.isBefore(h))return 1}var w=s(this).startOf(n).date(d).startOf(r).subtract(1,"millisecond"),T=this.diff(w,r,!0);return T<0?s(this).startOf("week").week():Math.ceil(T)},u.weeks=function(i){return i===void 0&&(i=null),this.week(i)}}})})(Sr);const zo=Sr.exports;var wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),o=this.week(),s=this.year();return o===1&&a===11?s+1:a===0&&o>=52?s-1:s}}})})(wr);const Go=wr.exports;var $r={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n,a){n.prototype.dayOfYear=function(o){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"day")}}})})($r);const Wo=$r.exports;var Er={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n){n.prototype.isSameOrAfter=function(a,o){return this.isSame(a,o)||this.isAfter(a,o)}}})})(Er);const Yo=Er.exports;var Pr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ye,function(){return function(r,n){n.prototype.isSameOrBefore=function(a,o){return this.isSame(a,o)||this.isBefore(a,o)}}})})(Pr);const Uo=Pr.exports;Ee.extend(Ko);Ee.extend(Ho);Ee.extend(_o);Ee.extend(zo);Ee.extend(Go);Ee.extend(Wo);Ee.extend(Yo);Ee.extend(Uo);const hn=10;function Xo(e,t){return e>t&&e>hn?"horizontal":t>e&&t>hn?"vertical":""}function Zo(){const e=l.ref(0),t=l.ref(0),r=l.ref(0),n=l.ref(0),a=l.ref(0),o=l.ref(0),s=l.ref(0),u=l.ref(0),i=l.ref(0),d=l.ref(0),c=l.ref(""),h=()=>c.value==="vertical",w=()=>c.value==="horizontal",T=()=>{s.value=0,u.value=0,i.value=0,d.value=0,c.value="",r.value=0};return{move:A=>{const S=A.touches[0];s.value=S.clientX-e.value,u.value=S.clientY-t.value,a.value=S.clientX,o.value=S.clientY,i.value=Math.abs(s.value),d.value=Math.abs(u.value),n.value=Date.now()-r.value,c.value||(c.value=Xo(i.value,d.value))},start:A=>{T(),e.value=A.touches[0].clientX,t.value=A.touches[0].clientY,r.value=Date.now()},reset:T,startX:e,startY:t,startTime:r,duration:n,moveX:a,moveY:o,deltaX:s,deltaY:u,offsetX:i,offsetY:d,direction:c,isVertical:h,isHorizontal:w}}const Jo=[kn,Mn,Dn,qn,Fn,ae,Kn,zn,ct,Gn,Xn,Zn,Jn,Qn,er,tr,rr,lr,or,ir,ur,fr,dr,hr,mr,Dt,nt,gr,pr],Qo=new Qr(Jo,[nl],"4.0.0");Object.defineProperty(exports,"clone",{enumerable:!0,get:()=>L.clone});Object.defineProperty(exports,"extend",{enumerable:!0,get:()=>L.extend});Object.defineProperty(exports,"isArray",{enumerable:!0,get:()=>L.isArray});Object.defineProperty(exports,"isDate",{enumerable:!0,get:()=>L.isDate});Object.defineProperty(exports,"isESModule",{enumerable:!0,get:()=>L.isESModule});Object.defineProperty(exports,"isEqual",{enumerable:!0,get:()=>L.isEqual});Object.defineProperty(exports,"isFunction",{enumerable:!0,get:()=>L.isFunction});Object.defineProperty(exports,"isMap",{enumerable:!0,get:()=>L.isMap});Object.defineProperty(exports,"isObject",{enumerable:!0,get:()=>L.isObject});Object.defineProperty(exports,"isPlainObject",{enumerable:!0,get:()=>L.isPlainObject});Object.defineProperty(exports,"isPromise",{enumerable:!0,get:()=>L.isPromise});Object.defineProperty(exports,"isSet",{enumerable:!0,get:()=>L.isSet});Object.defineProperty(exports,"isString",{enumerable:!0,get:()=>L.isString});Object.defineProperty(exports,"isSymbol",{enumerable:!0,get:()=>L.isSymbol});Object.defineProperty(exports,"toBoolean",{enumerable:!0,get:()=>L.toBoolean});Object.defineProperty(exports,"toNumber",{enumerable:!0,get:()=>L.toNumber});Object.defineProperty(exports,"toTypeString",{enumerable:!0,get:()=>L.toTypeString});Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>f.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>f.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>f.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>f.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>f.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>f.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>f.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>f.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>f.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>f.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>f.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>f.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>f.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>f.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>f.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>f.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>f.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>f.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>f.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>f.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>f.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>f.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>f.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>f.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>f.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>f.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>f.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>f.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>f.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>f.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>f.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>f.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>f.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>f.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>f.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>f.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>f.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>f.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>f.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>f.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>f.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>f.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>f.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>f.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>f.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>f.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>f.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>f.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>f.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>f.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>f.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>f.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>f.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>f.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>f.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>f.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>f.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>f.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>f.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>f.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>f.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>f.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>f.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>f.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>f.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>f.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>f.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>f.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>f.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>f.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>f.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>f.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>f.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>f.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>f.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>f.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>f.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>f.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>f.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>f.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>f.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>f.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>f.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>f.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>f.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>f.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>f.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>f.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>f.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>f.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>f.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>f.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>f.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>f.ElUpload});exports.AutocompleteItem=lr;exports.Broadcast=At;exports.BroadcastKey=ee;exports.CascaderItem=rr;exports.CheckboxItem=fr;exports.Content=qn;exports.DataItemsKey=Ve;exports.DateItem=Zn;exports.DialogItem=mr;exports.Domain=jt;exports.DomainKey=Se;exports.ExtIcon=gr;exports.FooterBar=Dn;exports.Group=Fn;exports.HeaderBar=Mn;exports.HintText=ct;exports.Indicator=pr;exports.InputItem=Gn;exports.InputNumberItem=tr;exports.Item=ae;exports.Mapping=Dt;exports.MoneyItem=er;exports.Page=kn;exports.Price=nt;exports.PriorityPolicy=Qe;exports.RadioItem=ur;exports.RateItem=dr;exports.RowItem=zn;exports.SelectItem=Xn;exports.SlotItem=Kn;exports.SwitchItem=hr;exports.TableItem=ir;exports.TableMappingColumn=or;exports.TimeItem=Jn;exports.TimeSelectItem=Qn;exports.UniqueID=_n;exports.ValidateSchema=On;exports.ValidateSchemaKey=pe;exports.clearNonNumber=Vr;exports.compareTo=$t;exports.createBroadcast=rt;exports.createValidateSchema=lt;exports.debounce=Kr;exports.decimalLength=Sn;exports.default=Qo;exports.defineBroadcast=kr;exports.defineDataItem=Nn;exports.defineDomain=kt;exports.defineItem=le;exports.definePageState=Tn;exports.deleteGlobalValidator=Br;exports.disabledProperty=de;exports.divide=Vt;exports.excludeProps=oe;exports.floatData=jr;exports.getGlobalValidateCheckEvents=En;exports.getGlobalValidateResetEvents=Cn;exports.getPageContentAreaHeight=Ze;exports.getPageContentAreaWidth=Je;exports.getPageFooterAreaHeight=it;exports.getPageHeaderAreaHeight=ot;exports.getRootDomain=_e;exports.includeProps=Rr;exports.indexOf=Ir;exports.integerLength=xn;exports.isBrowser=Ge;exports.isEmptyString=Q;exports.isInnerPage=Gr;exports.isNumberString=bn;exports.isRegExp=vn;exports.isSubPage=Wr;exports.lastIndexOf=Ar;exports.multiply=gn;exports.negate=pn;exports.numberFormat=It;exports.property=je;exports.raf=Tr;exports.readonlyProperty=fe;exports.setGlobalValidateCheckEvents=Fr;exports.setGlobalValidateHandler=Dr;exports.setGlobalValidateMessages=_r;exports.setGlobalValidateResetEvents=Lr;exports.setGlobalValidator=qr;exports.throttle=Rt;exports.toPadding=me;exports.toPx=U;exports.toPxDesc=K;exports.toValue=Y;exports.unNumberFormat=yn;exports.updatePageState=Et;exports.useBroadcast=Le;exports.useDomain=$e;exports.useExpose=se;exports.usePageState=at;exports.usePosition=Hn;exports.useRect=tt;exports.useTouch=Zo;exports.valueLength=We;
2
+ * @fox-js/foxui-desktop v4.0.0 Wed Dec 11 2024 11:26:10 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),st=require("@fox-js/validator"),v=require("element-plus"),ke=require("@element-plus/icons-vue"),Be=require("@fox-js/i18n"),Bt=window,oa=typeof window<"u";function ra(){return typeof Bt<"u"?Bt.requestAnimationFrame||Bt.webkitRequestAnimationFrame||function(e){Bt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function aa(e){oa?cancelAnimationFrame(e):clearTimeout(e)}const Ho=ra();/*!
4
+ * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
+ */function Ht(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ne(e),t=Ne(t),[e,t]=Wn(Ne(e),Ne(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Ko(e,t);return o?o==2?"-"+Ne(r):e.length<r.length?Ne(r.substring(1)):"-"+Ne(bn(r)):Ne(r)}function bn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Ko(t,a)}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 Wn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Ko(e,t){[e,t]=Wn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ve=(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))(ve||{});function Vt(e,t=0,o=ve.HALF_EVEN){if(o===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=Vt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Yl(r[1],a,n,o)?(n?"-":"")+wn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Yl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Yl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!o&&n===ve.FLOOR||o&&n===ve.CEILING)return!1;if(n===ve.UP||o&&n===ve.FLOOR||!o&&n===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function Pn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(y+=parseInt(e[u[V]--])*parseInt(t[V]));y+=s,s=Math.floor(y/10),c=y%10+c,f--}return c=Ct(ia(c,a)),o==1&&(c="-"+c),c}function ia(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(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 Dn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ne(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ne(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ne(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ne(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ne(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Ht(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ne(Vt(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),Ht(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Gl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Ul(e),Ul(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,Pn(t,Vt(Dn(e,t),0,ve.FLOOR)));return o+n}function Ul(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Xl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Wn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ue{value;static RoundingModes=ve;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=Ne(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ne(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ue.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ue.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ue.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ve.HALF_EVEN){if(t=ue.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Vt(t,o,n)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ue(Vt(this.value,t,o))}static floor(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.FLOOR)}static ceil(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,ve.CEILING)}static add(t,o){return t=ue.validate(t),o=ue.validate(o),Ht(t,o)}add(t){return new ue(Ht(this.value,t.getValue()))}static subtract(t,o){return t=ue.validate(t),o=ue.validate(o),Fn(t,o)}subtract(t){return new ue(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ue.validate(t),o=ue.validate(o),Pn(t,o)}multiply(t){return new ue(Pn(this.value,t.getValue()))}static divide(t,o,n){return t=ue.validate(t),o=ue.validate(o),Dn(t,o,n)}divide(t,o){return new ue(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ue.validate(t),o=ue.validate(o),Gl(t,o)}modulus(t){return new ue(Gl(this.value,t.getValue()))}static compareTo(t,o){return t=ue.validate(t),o=ue.validate(o),Xl(t,o)}compareTo(t){return Xl(this.value,t.getValue())}static negate(t){return t=ue.validate(t),Rn(t)}negate(){return new ue(Rn(this.value))}}function Wo(e,t){return ue.multiply(`${e}`,`${t}`)}function Yn(e,t,o=8){return ue.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,ue.compareTo(e,t)}function Yo(e){return ue.negate(e)}function Zt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",y=s.split("").reverse();for(let V=0;V<y.length;V++)d+=y[V]+((V+1)%n==0&&V+1!=y.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function Go(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Gn=Ho,sa=Array.isArray,ua=e=>Jt(e)==="[object Map]",ca=e=>Jt(e)==="[object Set]",fa=e=>e instanceof Date,Ln=e=>typeof e=="function",Uo=e=>typeof e=="string",da=e=>typeof e=="symbol",Xe=e=>e!==null&&typeof e=="object",Xo=e=>Xe(e)&&Ln(e.then)&&Ln(e.catch),Zo=Object.prototype.toString,Jt=e=>Zo.call(e),Mn=e=>Jt(e)==="[object Object]",Jo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ha(e){return e.__esModule||Jo&&e[Symbol.toStringTag]==="Module"}const ma=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=ft(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)ft(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=ma?Promise.resolve():null;function ga(e,...t){xn!==null?t&&t.length>0?xn.then(()=>{e(t)}):xn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function xe(e){return typeof e=="number"?e:Number(e)}const pa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):pa[o]||"object"}function Qo(e){return e&&typeof e=="object"&&"setInterval"in e}function Qt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function er(e){let t=!!e&&"length"in e&&e.length,o=Kt(e);return o==="function"||Qo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function tr(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function va(e,t=[]){let o=t;return e!=null&&(er(Object(e))?tr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ue(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Kt(e),n=Kt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Ue(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Ue(a,i))return!1}return!0}return!1}const dt=typeof window<"u";function Un(e){return e==null}function nr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lr(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function or(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function rr(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Zl(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ya(e,t=!0,o=!0){t?e=Zl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Zl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ue(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ue(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Lt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ar(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ie(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const xa=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ye=Symbol.for("BroadcastKey");class Xn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):nr(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function en(e,t,o,n){const r=new Xn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function Sa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new Xn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function kt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ut=e=>e.default??e;class Ta{error(t,o){const n=o,r=o||l.hasInjectionContext()?kt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?kt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let It=new Ta;function Ca(e){It=e}function $a(e){It?Object.assign(It,e):It=e}function Na(e,t){ut(st).setValidator(e,t)}function Ea(e){ut(st).deleteValidator(e)}let ir=["blur","clear"];function ka(e){ir=e}function sr(){return ir}let ur=["focus","change","setValue"];function Ia(e){ur=e}function cr(){return ur}function Va(e){ut(st).messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(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 ze=Symbol("ValidateSchemaKey");class fr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=It;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ut(st).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ut(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(st).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ut(st),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function tn(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new fr(t,o,e)}const Wt=Symbol.for("EventEmitterKey");class dr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function Ot(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function hr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=Ot((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Pa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function nn(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ae=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class ln{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Da=new ln;function pt(){return Da}function Ze(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const Sn=Symbol("OriginalDateKey");function Zn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=pt());const s=e||t.prop||t.name;let u=new ln(s);u.parent=i;const f=V=>{a[Sn]||y(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Sn]??null,y=V=>{const g={};ft(!0,g,l.toRaw(V)),a[Sn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&y(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const V=l.inject(ye,null),g=en(a,V,s,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=(S,b,...$)=>Reflect.apply(g.emit,g,[S,b,...$]);const h=l.inject(ze,null),m=tn(a,h,{componentName:""});u.validateSchema=m,a[ze]=m,l.provide(ze,m),a[mt]=new Map,a.validate=(S=!0)=>{const b=[];let $=null;const j={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const L=S;$={name:M=>M?L.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const L=S;if(Object.assign(j,L),Array.isArray(L.include)&&L.include.length>0){const M=L.include;$={name:O=>O?M.indexOf(O)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const M=L.exclude;$={name:O=>O?M.indexOf(O)===-1:!1}}else $={name:"*"}}if($){const L=g?.emitToChildren($,"validate",j);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let M=[];return L.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(M=[...M,...O.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(S).forEach(L=>{let M=String(L);const O={componentName:"",fieldName:M,pureDataValidate:!0};if(u){const R=pr(u,M,O,g,m);a[mt].set(M,R);const N=S[M];N&&R.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),L={name:M=>j.includes(M)};g?.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const $=S;b={name:j=>j?$.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const $=S;if(Array.isArray($.include)&&$.include.length>0){const j=$.include;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const j=$.exclude;b={name:L=>L?j.indexOf(L)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=c();if(!b)return;const $={};if(ft(!0,$,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=$[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(L=>{b[L]=$[L]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys($).forEach(L=>{j.includes(L)||(b[L]=$[L])})}else Object.assign(b,$);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?f(S):g?.emitToChildren({name:b},"setModelValue",S)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[ze]=void 0,l.provide(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ye]=void 0,l.provide(ye,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[mt]&&(a[mt].clear(),a[mt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function mr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=pt());const i=e||t.prop||t.name;let s=new ln(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function gr(e,t,o){const r=Ze(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Ce(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ye,null);let s=en(r,i,a,o);r[ye]=s,l.provide(ye,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(ze,null);e.fieldName=e.fieldName??a;let f=tn(r,u,e);r[ze]=f,l.provide(ze,f),gr(r,f,a),r.validate=(g=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,$=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;$===!0&&e.disabled===!0||j===!0&&e.readonly===!0||L===!0&&Qt(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=f?.validate();h.push(b)}if(m){let b=null;const $={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign($,j),Array.isArray(j.include)&&j.include.length>0){const L=j.include;b={name:M=>M?L.indexOf(M)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const L=j.exclude;b={name:M=>M?L.indexOf(M)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",$);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&($=[...$,...j.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>f?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&f?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new dr(r);r[Wt]=c;const d=Ot((g="validate")=>{f&&(g==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sr()).forEach(g=>{c&&c.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cr()).forEach(g=>{c&&c.on(g,h=>{d("reset")})}),l.onUnmounted(()=>{s?.destroy(),r[ye]=void 0,l.provide(ye,null),s=null,f?.destroy(),r[ze]=void 0,l.provide(ze,null),f=null,c?.destroy(),r[Wt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(g,...h)=>{c&&Reflect.apply(c.emit,c,[g,...h])},onEvent:(g,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(g,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function pr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=tn({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,y=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),V=!0,y=g.deep??!1}else typeof c=="boolean"&&(y=c),V=!0;if(V&&u){const g=u.validate();d.push(g)}if(y){let g=null;const h={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const m=c;g={name:S=>S?m.indexOf(S)!==-1:!1}}else if(c!=null&&typeof c=="object"){const m=c;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&f){const m=f.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=en(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function vr(){let t=l.getCurrentInstance()?.proxy,o=new dr(t);return t[Wt]=o,l.onUnmounted(()=>{o?.destroy(),t[Wt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ee=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(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 o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(dt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function _n(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function yr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;_n(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(rt);d&&(n.height=Yt(e,d),n.width=Gt(e,d),l.watch([()=>Yt(e,d),()=>Gt(e,d)],([V,g])=>{c.height=V,c.width=g}));const y=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,g,h=-1,m=-1,S=0,b=0])=>{_n(c,g,t,y,h,m,S,b)}),e.set(rt,c),c}function on(e){return e.get(rt)}function Pt(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Yt(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Pt(e,t),n=Dt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Gt(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Fa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ra(e){return!!e.getForParent(rt)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Tn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=Ze();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Tn(u,n))return u}const i=e.value;return Tn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Tn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return se(o)})}function Re(e){return De(e,"disabled",0,function(o){return se(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const br=new Map,Ut=new Map;let qn=null;function Aa(e){qn=e}function wr(e,t,o){if(o){let n=Ut.get(o);n||(n=new Map,Ut.set(o,n)),n.set(e,t)}else br.set(e,t)}function He(e,t,o){!o&&qn&&(o=qn(e)??void 0);let n=null;if(o){let r=Ut.get(o);r&&(n=r.get(t))}return n||(n=br.get(t)),n}function La(e,t){for(let o in e){const n=e[o];wr(o,n,t)}}function Ma(e){Ut.delete(e)}function Ba(){return{top:0,left:0,bottom:0,right:0}}function _a(e=0,t=0){if(dt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function qa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class ja{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=qa(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ft({},Ba(),t.safeAreaInset),i=_a(n,r),s=ft({},i.pageLayout,t.pageLayout);o=o??pt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Aa(t)}setAPI(t,o,n){wr(t,o,n)}getAPI(t,o,n){return He(t,o,n)}batchSetAPI(t,o){La(t,o)}clearScopeAPI(t){Ma(t)}getRootDomain(){return pt()}}const za=[v.ElAffix,v.ElAlert,v.ElAutocomplete,v.ElAutoResizer,v.ElAvatar,v.ElBacktop,v.ElBadge,v.ElBreadcrumb,v.ElBreadcrumbItem,v.ElButton,v.ElButtonGroup,v.ElCalendar,v.ElCard,v.ElCarousel,v.ElCarouselItem,v.ElCascader,v.ElCascaderPanel,v.ElCheckTag,v.ElCheckbox,v.ElCheckboxButton,v.ElCheckboxGroup,v.ElCol,v.ElCollapse,v.ElCollapseItem,v.ElCollapseTransition,v.ElColorPicker,v.ElConfigProvider,v.ElContainer,v.ElAside,v.ElFooter,v.ElHeader,v.ElMain,v.ElDatePicker,v.ElDescriptions,v.ElDescriptionsItem,v.ElDialog,v.ElDivider,v.ElDrawer,v.ElDropdown,v.ElDropdownItem,v.ElDropdownMenu,v.ElEmpty,v.ElForm,v.ElFormItem,v.ElIcon,v.ElImage,v.ElImageViewer,v.ElInput,v.ElInputNumber,v.ElLink,v.ElMenu,v.ElSubMenu,v.ElMenuItem,v.ElMenuItemGroup,v.ElPageHeader,v.ElPagination,v.ElPopconfirm,v.ElPopover,v.ElPopper,v.ElProgress,v.ElRadio,v.ElRadioButton,v.ElRadioGroup,v.ElRate,v.ElResult,v.ElRow,v.ElScrollbar,v.ElSelect,v.ElOption,v.ElOptionGroup,v.ElSelectV2,v.ElSkeleton,v.ElSkeletonItem,v.ElSlider,v.ElSpace,v.ElSteps,v.ElStep,v.ElSwitch,v.ElTable,v.ElTableColumn,v.ElTableV2,v.ElTabs,v.ElTabPane,v.ElTag,v.ElTimePicker,v.ElTimeSelect,v.ElTimeline,v.ElTimelineItem,v.ElTooltip,v.ElTransfer,v.ElTree,v.ElTreeSelect,v.ElTreeV2,v.ElUpload],Ha=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ka=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);za.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Ha.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Se={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ve={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},xr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Sr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Tr=[];for(const e in Sr)Tr.push(e);const Wa=Symbol.for("InnerPageScopeKey"),Ya={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Ga=(e,t)=>({inheritAttrs:!0,props:{...Se,...xr,...Ya},setup(o,{slots:n}){const r=Zn(o.name,o),a=l.inject(Wa,!1);if(r){const c=yr(r,o);$e({getPageContentHeight:()=>Yt(r,c),getPageContentWidth:()=>Gt(r,c),getPageHeaderHeight:()=>Pt(r,c),getPageFooterHeight:()=>Dt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[y,V])=>{if(c&&y){const g=l.toRaw(y),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h)}if(d&&V){const g=l.toRaw(V),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ua,create:Xa,scope:Rh}=ie("page"),Jn=Xa(Ga(Ua));function rn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Qn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Za=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=Ze(),s=i?on(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,y=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=Ke(r.padding??s.headerPadding);return Object.assign(E,x),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(x.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const x=Ke(r.padding);Object.assign(E,x)}return E}),V=l.ref(null),g=()=>{if(s&&V.value&&!Qt(V.value)){if(!n){const E=rn(V.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(nn(g,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`),E}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function j(){a.emit("click-right")}function L(){a.emit("click-right-text")}const M=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},O=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:L},[r.rightText]);E.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},R=()=>{if(!r.titleShow)return null;const E=[],x=a.slots.default?a.slots.default():null;if(x)E.push(x);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],x=a.slots.bottom?a.slots.bottom():null;return x&&E.push(x),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],C=M();C&&q.push(C);const k=R();k&&q.push(k);const D=O();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:c.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const x={class:f.value,style:m.value,ref:V};return l.h("view",x,E)}}}),{componentName:Ja,create:Qa,scope:ei}=ie("header-bar"),el=Qa(Za(Ja,ei,ke.ArrowLeft));function ti(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=Ze(),i=a?on(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,f=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Ke(n.padding);Object.assign(g,h)}return g}),c=l.ref(null),d=()=>{if(i&&c.value&&!Qt(c.value)){if(!o){const g=rn(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(nn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const V=l.computed(()=>{const g={};return f.value.height!==null&&f.value.height!==void 0&&(g.height=Ee(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(g.paddingTop=Ee(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(g.paddingLeft=Ee(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(g.paddingRight=Ee(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(g.paddingBottom=Ee(f.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,g)}}}}const{componentName:ni,create:li,scope:Ah}=ie("footer-bar"),tl=li(ti(ni));function oi(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ze(),r=l.computed(()=>({[e]:!0})),a=n?on(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=Ke(o.padding);Object.assign(a.contentPadding,V)}const c=Pt(n,a),d=Dt(n,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,f.height=y,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=Ke(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=Qn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Pt(n),()=>Dt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ri,create:ai,scope:Lh}=ie("content"),ii=ai(oi(ri));function si(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const _e=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},nl=_e(ii,[["render",si]]),bt="GroupStateKey",Cr=Symbol.for("GroupScopeKey");function an(){return l.inject(Cr,!1)}function sn(e=!0){l.provide(Cr,e)}function ui(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Un(r)||(e[n]=r)})}function ci(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ui(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function Cn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(bt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=de(a),d=de(i);s||(s=f.type??"grid");const y=()=>{const V=t===""||t===-1,g=de(t);let h=xe(o);const m=de(n);if(!V){let $=(g-(h-1)*m)/h;for(;d!==-1&&$>d;)h++,$=(g-(h-1)*m)/h;for(;c!==-1&&h>1&&$<c;)h--,$=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&y()},50)}}function un(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.layout}function cn(e,t=!1){let o;return t?o=e.getForParent(bt):o=e.get(bt),o.order}function Jl(e,t=1){if(t==="stretch")return-1;const o=xe(t);return o===-1?100:100*o/e}function fn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Jl(t.column,o),i>0&&(a.width=`${i}%`);const s=Jl(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function dn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=xe(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=xe(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const $r=Symbol("RollingStateKey");function fi(e){l.provide($r,e)}function di(){return l.inject($r,null)}function jn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function hi(e){let t=jn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=jn(o),document.body.removeChild(o)}return t}function mi(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const gi={...Se,...xr,...Sr};function pi(e,t,o){return{props:gi,emits:["update:collapse","header-click"],setup(n,r){const a=Zn(n.name,n,Tr),i=ci(a,{type:n.type}),s=an();sn(!0);const u=n.rollingDisplay?di():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?un(a,!0).value:null),y=l.getCurrentInstance(),V=(z,Z=!1)=>{const te=y?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[te,T])=>{if(z&&te){const K=l.toRaw(te),Q=l.toRaw(z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),V(Q)}if(Z&&T){const K=l.toRaw(T),Q=l.toRaw(Z),le=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{le.includes(ce)||(Q[ce]=[])}),V(Q,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Z=s?cn(a,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const te=dn(Z,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=fn(Z,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ee(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const te=mi(R.value,i.layout.value.column,i.layout.value.gutter);Z=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),j=l.computed(()=>s||c.value?!0:se(n.isWrap)),L=[],M=z=>{L.push(z)},O=()=>{let z=L.length;L.splice(0,z)},R=l.ref(-1),N=z=>{const Z=Qn(z).width;Z>0&&Z!==R.value&&(R.value=Z)};Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([R,$,b],([z,Z,te])=>{i.order.index=0,Cn(a,z,Z,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),C=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ee(n.height)||""),Y=l.ref(!1),W=l.ref(""),X=l.ref(!1);let U=-1;const ee=(z,Z=!0)=>{const te=C.value;if(te&&Y.value!==z){if(U=U===-1?hi(te):U,X.value=!0,Z)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",X.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${U}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${U}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else X.value=!1,W.value=`${U}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const re=z=>{r.emit("header-click",z)},I=()=>{w()},w=z=>{z=z??!Y.value,ee(z)};$e({toggleCollapse:w,doLayout:()=>{L[0]&&(N(L[0]),Cn(a,R.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let P=null,p=!0;const H=z=>{if(n.rules){const Z=l.toRaw(n.rules);V(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);V(Z,!0)}if(dt&&(z&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const Z=L[0];N(Z),window.ResizeObserver&&(P=new window.ResizeObserver(()=>{N(Z)}),P.observe(Z))}},_=()=>{P?.disconnect(),P=null},B=!c.value||u?.acquire();B&&(f.value=c.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),c.value&&u){let z=null,Z=u.initialHeight;u.observe(C.value,te=>{if(te!==f.value)if(te)f.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,f.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),f.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=jn(C.value);T<=0?W.value=Z:(W.value=`${T}px`,Z=W.value)}p||_()}})}}),l.onUnmounted(()=>{P?.disconnect(),u&&u.unobserve(C.value)});const A=(z="right")=>{const Z=[];if(E.value){const K={class:x.value},Q=l.h("span",K,[E.value]);Z.push(Q)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Z.push(T),Z.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Z):null},G=(z,Z,te,T)=>{const K={...m.value};return Z===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:M,key:`${Z}`,class:K,style:S.value},z)};return()=>{if(c.value&&f.value!==!0){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[])}i.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},Q=l.h("div",K,[r.slots.header()]);z.push(Q)}else{const K=[],Q=n.collapsePosition==="left";if(Q&&n.showCollapse){const le=A("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!Q&&n.showCollapse){const le=A("right");le&&K.push(le)}if(K.length>0){const le={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},fe=l.h("div",le,K);z.push(fe)}}O();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=G(te,Z++,0,te.length);z.push(K)}else if(T==="flow"){const K=G(te,Z++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const Q=te[K],le=G([Q],Z++,K,te.length);z.push(le)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[z])}else return z}}}}const{componentName:vi,create:yi,scope:bi}=ie("group"),wi=(e,t)=>(e=e??ke.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),ll=yi(pi(vi,bi,wi));function xi(e){return e===window}const Si=/matrix\((.+)\)/,Nr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(xi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=Si.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Ti{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Ci{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new Ti,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Ql=new Ci,Er={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:$i,create:Ni}=ie("price"),Ei=Ni({props:{...Er},setup(e){const t=l.computed(()=>({[$i]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Lt(e.price)==0?"":Zt(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),ki=["innerHTML"],Ii=["innerHTML"];function Vi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ki)):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,Ii)):l.createCommentVNode("",!0)],2)}const hn=_e(Ei,[["render",Vi]]),{componentName:$n,create:Oi}=ie("hint-text"),Pi=Oi({components:{Price:hn},props:{...Er,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,q,C,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,U=x.split("-");let ee=[];U[0]==="top"?ee=["top","bottom","right","left"]:U[0]==="bottom"?ee=["bottom","top","right","left"]:U[0]==="left"?ee=["left","top","bottom","right"]:U[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},I=[];for(let w=0;w<ee.length;w++){const F=ee[w];if(I[0]=F,U[1]&&(I[1]=U[1]),F==="top"){const P=q.y-Y-e.arrowSize-e.offset;if(P>=0){re.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="bottom"){const P=q.y+k+e.arrowSize+e.offset;if(P+Y<=X){re.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+C-D:p=q.x+C/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,re.left=p<0?0:p;break}}else if(F==="left"){const P=q.x-D-e.arrowSize-e.offset;if(P>=0){re.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}else if(F==="right"){const P=q.x+C+e.arrowSize+e.offset;if(P+D<=W){re.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,re.top=p<0?0:p;break}}}return{bestPlacement:I.join("-"),bestInsetRect:re}},c=(x,q,C=10)=>{if(!dt||q===!1||!x)return;n.value=Nr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:Y,bestInsetRect:W}=f(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0},d=l.ref(0),y=Ot(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const g=l.computed(()=>V.value&&h.value),h=l.ref(!0),m=Ot(x=>{const q=x[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Ql.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeMount(()=>{Ql.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const x={[$n]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),$=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),j=l.computed(()=>{const x=[`${$n}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),L=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),M=l.computed(()=>({[`${$n}__arrow`]:!0})),O=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),R=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:u,classes:b,styles:$,textClasses:j,textStyles:L,arrowClasses:M,arrowStyles:O,overlayShow:R,overlayStyle:N,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),Di=["innerHTML"];function Fi(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Di))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Mt=_e(Pi,[["render",Fi]]);class kr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const zn={},Ri=new kr,vt=new Map,Xt=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of vt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}vt.clear()}},Ai=e=>{e.unmount=Xt;const t=document.getElementById(e.id);if(t){const o=vt.get(e.id);o?e={...zn,...o,...e}:e={...zn,...e},e.transition=!1;const n=l.createVNode(Mt,e);return l.render(n,t),e.id}},Li=e=>{e.unmount=Xt;let t=e.id??`hinttext_${Ri.get()}`;e={...zn,...e},e.id=t,vt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Mt,e);return l.render(n,o),document.body.appendChild(o),t},Mi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,t,o={},n=!0){Mi(t);const r=o.id;return r&&vt.has(r)?Ai({...o,message:t,reference:e}):(n&&Xt(),Li({...o,message:t,reference:e}))},hide(e){Xt(e)},install(e){e.config.globalProperties.$hintText=Pe}};function Bi(e,t,o,n=!1){return{inheritAttrs:!0,props:{...Se,...Ve},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ce({componentName:e,validate:!1},i);const s=Ze(),u=an();sn(!1);const f=l.computed(()=>u&&s?un(s,!1).value:null),c=e,d=l.ref(null),y=l.computed(()=>{const T={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:se(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),V=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ee(r.width));else{const K=u&&s?cn(s,!1):null;if(f.value&&K){if(f.value.type==="grid"){const Q=dn(K,f.value,r.span,r.offset);Object.assign(T,Q)}else if(f.value.type==="flow"){const Q=fn(K,f.value,r.span,r.offset,r.width);Object.assign(T,Q)}}}if(typeof V.value=="function"){const K=V.value(i);K&&Object.assign(T,K)}else if(V.value&&typeof V.value=="object"){const K=V.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${$.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),M=De(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),O=l.computed(()=>M&&M.value?{width:Ee(M.value)}:{}),R=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){m.value=T},setErrorTip(T){x.errorTip=T},setErrorIcon(T){x.errorIcon=T},setWarnTip(T){x.warnTip=T},setWarnIcon(T){x.warnIcon=T},setInfoTip(T){x.infoTip=T},setInfoIcon(T){x.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){V.value=T}});const q=l.computed(()=>r.infoTip||x.infoTip),C=l.computed(()=>r.infoIcon||x.infoIcon),k=l.computed(()=>r.warnTip||x.warnTip),D=l.computed(()=>r.warnIcon||x.warnIcon),Y=l.computed(()=>r.errorTip||x.errorTip),W=l.computed(()=>r.errorIcon||x.errorIcon),X=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),U=()=>X.value.length>0,ee=l.computed(()=>X.value==="error"?Y.value:X.value==="warn"?k.value:X.value==="info"?q.value:""),re=l.computed(()=>X.value==="error"?W.value:X.value==="warn"?D.value:X.value==="info"?C.value:null),I=l.computed(()=>{const T={[`${c}__tip`]:!0,[`${c}__tip--${X.value}`]:!0,[`${c}--animate`]:!0};return X.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:X.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:X.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),w=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":M&&M.value&&(T["padding-left"]=Ee(M.value)),T}),F=l.ref();let P="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,Q,le])=>{F.value&&(T&&!ge(K)?P?o.show(F.value,K,{...le,id:P,type:Q},!0):P=o.show(F.value,K,{...le,type:Q},!0):o.hide(P))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let Q of T)if(Q.intersectionRatio>0){K=!0,K&&a.emit("appear",Q);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{!p||!F.value||(p.unobserve(F.value),p=null)};l.watch(()=>se(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{se(r.appearListen)&&H()}),l.onUnmounted(_);const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,Q={class:R.value},le=l.h("div",Q,[K]);if(T.push(le),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();T.push(ce)}const fe={class:L.value,style:O.value};return l.h("div",fe,T)},A=()=>{const T=[];if(a.slots.prepend){const Q=a.slots.prepend();T.push(Q)}if(a.slots.default){const Q=a.slots.default();T.push(Q)}if(a.slots.append){const Q=a.slots.append();T.push(Q)}if(a.slots.fixedTip){const Q={class:[`${c}__fixed-tip`]},le=l.h("div",Q,[a.slots.fixedTip()]);T.push(le)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},G=()=>{const T=re.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Z=()=>{if(!U())return null;const T=[],K=G();K&&T.push(K);const Q=z();Q&&T.push(Q);const le={class:I.value,style:w.value};return l.h("div",le,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],Q=B();Q&&K.push(Q);const le=A();le&&K.push(le);const fe={class:j.value},ce=l.h("div",fe,K);T.push(ce);const pe=Z();pe&&T.push(pe);const qe=te();qe&&T.push(qe);const et={class:y.value,style:g.value,prop:r.prop};return l.h("div",et,T)}}}}const{componentName:_i,create:qi,scope:ji}=ie("item"),Te=qi(Bi(_i,ji,Pe,!1));function zi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Ze(),a=an();sn(!1);const i=l.computed(()=>a&&r?un(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?cn(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=dn(d,i.value,o.span,o.offset);Object.assign(c,y)}else if(i.value.type==="flow"){const y=fn(d,i.value,o.span,o.offset,o.width);Object.assign(c,y)}else return o.width&&(c.width=Ee(o.width)),c;else o.width&&(c.width=Ee(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:Hi,create:Ki,scope:Mh}=ie("slot-item"),ol=Ki(zi(Hi));function Wi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Ze(),s=an();sn(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=un(i,!1),d=cn(i,!1);if(c.value&&d)if(c.value.type==="grid"){const y=dn(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=fn(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}else o.width&&(f.width=Ee(o.width))}else o.width&&(f.width=Ee(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let y=0;y<d.length;y++){if(y>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:Yi,create:Gi,scope:Bh}=ie("row-item"),rl=Gi(Wi(Yi)),Ye=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},eo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Ui(e,t,o){return{props:{...Se,...Ve,...eo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=C=>{d.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let m=he(n,"hintText"),S=l.ref(!1);const b=C=>{let D=C.target.value;c.value=!0,ge(m.value)||(S.value=!0),s("focus",D,C)},$=C=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let D=C.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,C)},j=()=>{s("clear","")},L=l.ref(!1);let M=null;const O=()=>{n.showTooltip&&L.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{L.value=!0},150))},R=()=>{M&&(clearTimeout(M),L.value=!1,M=null)},N=l.computed(()=>L.value||S.value),E=l.computed(()=>L.value?d.value:m.value),x=l.computed(()=>Lt(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:j,onChange:h,onInput:g,onFocus:b,onBlur:$,onMouseover:O,onMouseleave:R},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.default&&(X.fixedTip=r.slots.fixedTip);const ee={...Ie(n,eo),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Xi,create:Zi,scope:Ji}=ie("input-item"),al=Zi(Ui(Xi,Ji,Te));function ot(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ir(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Qi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let es=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ts(){const e=l.getCurrentInstance();return new es(e.proxy)}function Vr(e,t,o){const n=ot(e,t),r=ot(e,o);if(n!==r)return!1;const a=Ft(e,t),i=Ft(e,o);return a===i}function Or(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Ir(e,i);if(Array.isArray(s)&&s.length>0){const u=Or(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=ot(e,i)===a;else if(o==="item")u=Vr(e,i,a);else{let f=Ft(e,i);f==null&&(f=ot(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function ns(e){return{text:e,value:e}}const to={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ls(e,t,o){return{props:{...Se,...Ve,...to},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(G=>ot(n,G)).join(" "):""),V=(A,G,z,Z=!0)=>{const te=Or(n,A,G,z);if(te===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Z&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const Q=te[K],le=d.value[K];if(!Vr(n,Q,le)){T=!1;break}}if(!T){d.value=te;let K=[],Q=[],le=[];te.forEach(qe=>{const et=Ft(n,qe),ht=ot(n,qe);K.push(et),le.push(ht),n.valueType==="text"?Q.push(ht):n.valueType==="item"?Q.push(qe):Q.push(et)});let fe,ce,pe;se(n.multiple)?(c.value=K,fe=l.toRaw(Q),ce=le,pe=l.toRaw(te)):(c.value=K[0]??"",fe=l.toRaw(Q[0]??""),ce=le[0]??"",pe=l.toRaw(te[0])),Z&&(s("update:modelValue",fe),s("change",fe,pe)),s("update:text",ce)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,A=>se(A)),b=ts(),$=async(A,G)=>{if(A){const z=await b.load("select",A,G);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>ns(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([A,G])=>{h.value=null,$(A,G)},{immediate:!S.value});let j=!1;const L=()=>{j||(j=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([A,G])=>{if(N()&&se(n.multiple)){Ue(G,c.value)||(c.value=G);return}V(G,n.valueType,m.value,!1),s("setValue",G)});let M=null,O=l.ref(!1);typeof n.remoteMethod=="function"&&(M=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.remoteMethod(A);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});let R=null;typeof n.filterMethod=="function"&&(R=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.filterMethod(A,g.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),x=e,q=l.computed(()=>({[x]:!0})),C=A=>{n.allowCreate||N()&&se(n.multiple)?(s("update:modelValue",A),s("change",A),s("update:text",A),c.value=A):V(A,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=A=>{let z=A.target.value;E.value=!0,ge(k.value)||(D.value=!0),s("focus",z,A)},W=A=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=A.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),P.value||s("blur",z,A)},X=()=>{s("clear","")},U=l.ref(!1);let ee=null;const re=()=>{n.showTooltip&&U.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{U.value=!0},150))},I=()=>{ee&&(clearTimeout(ee),U.value=!1,ee=null)},w=l.computed(()=>U.value||D.value),F=l.computed(()=>U.value?y.value:k.value),P=l.ref(!1),p=A=>{P.value=A,s("visible-change",A),A||s("selected")},H=A=>{s("remove-tag",A)},_=(A,G)=>{const z=[];return A.forEach((Z,te)=>{const T=Ir(n,Z);if(Array.isArray(T)&&T.length>0){const K=_(T,G),Q=ot(n,Z),fe={key:`${Q}_${te}`,label:Q};z.push(l.h(v.ElOptionGroup,fe,{default:()=>K}))}else{const K=Ft(n,Z),Q=ot(n,Z),le=Qi(n,Z),ce={key:`${K}_${te}`,label:Q,disabled:le,value:K};if(typeof G=="function")z.push(l.h(v.ElOption,ce,{default:()=>G(Z)}));else if(n.optionType==="item"){const pe={class:{"fox-select-item__option-left":!0}},qe=l.h("span",pe,[K]),et={class:{"fox-select-item__option-right":!0}},ht=l.h("span",et,[Q]),tt=l.h("div",{class:{"fox-select-item__option":!0}},[qe,ht]);z.push(l.h(v.ElOption,ce,{default:()=>tt}))}else n.optionType==="value"?z.push(l.h(v.ElOption,ce,{default:()=>[K]})):z.push(l.h(v.ElOption,ce))}}),z},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const G={...Ye(r.attrs),ref:B,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:X,onChange:C,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof M=="function"&&(G["remote-method"]=M,G.loading=O.value),typeof R=="function"&&(G["filter-method"]=R,G.loading=O.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Z=[],te=l.h(v.ElSelect,G,z);Z.push(te);const T={default:()=>Z};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const Q={...Ie(n,to),hintText:F.value,hintVisible:w.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:I};return S.value&&(Q["appear-listen"]=!0,Q.onAppear=L),l.h(o,Q,T)}}}}const{componentName:os,create:rs,scope:as}=ie("select-item"),il=rs(ls(os,as,Te));var Je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",y="quarter",V="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,b={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("_")},$=function(C,k,D){var Y=String(C);return!Y||Y.length>=k?C:""+Array(k+1-Y.length).join(D)+C},j={s:$,z:function(C){var k=-C.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+$(Y,2,"0")+":"+$(W,2,"0")},m:function C(k,D){if(k.date()<D.date())return-C(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),X=D-W<0,U=k.clone().add(Y+(X?-1:1),d);return+(-(Y+(D-W)/(X?W-U:U-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:V,w:c,d:f,D:g,h:u,m:s,s:i,ms:a,Q:y}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},L="en",M={};M[L]=b;var O=function(C){return C instanceof x},R=function C(k,D,Y){var W;if(!k)return L;if(typeof k=="string"){var X=k.toLowerCase();M[X]&&(W=X),D&&(M[X]=D,W=X);var U=k.split("-");if(!W&&U.length>1)return C(U[0])}else{var ee=k.name;M[ee]=k,W=ee}return!Y&&W&&(L=W),W||!Y&&L},N=function(C,k){if(O(C))return C.clone();var D=typeof k=="object"?k:{};return D.date=C,D.args=arguments,new x(D)},E=j;E.l=R,E.i=O,E.w=function(C,k){return N(C,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var x=function(){function C(D){this.$L=R(D.locale,null,!0),this.parse(D)}var k=C.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,X=Y.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var U=W.match(m);if(U){var ee=U[2]-1||0,re=(U[7]||"0").substring(0,3);return X?new Date(Date.UTC(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)):new Date(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,re)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,X=!!E.u(Y)||Y,U=E.p(D),ee=function(_,B){var A=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return X?A:A.endOf(f)},re=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},I=this.$W,w=this.$M,F=this.$D,P="set"+(this.$u?"UTC":"");switch(U){case V:return X?ee(1,0):ee(31,11);case d:return X?ee(1,w):ee(0,w+1);case c:var p=this.$locale().weekStart||0,H=(I<p?I+7:I)-p;return ee(X?F-H:F+(6-H),w);case f:case g:return re(P+"Hours",0);case u:return re(P+"Minutes",1);case s:return re(P+"Seconds",2);case i:return re(P+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,X=E.p(D),U="set"+(this.$u?"UTC":""),ee=(W={},W[f]=U+"Date",W[g]=U+"Date",W[d]=U+"Month",W[V]=U+"FullYear",W[u]=U+"Hours",W[s]=U+"Minutes",W[i]=U+"Seconds",W[a]=U+"Milliseconds",W)[X],re=X===f?this.$D+(Y-this.$W):Y;if(X===d||X===V){var I=this.clone().set(g,1);I.$d[ee](re),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,X=this;D=Number(D);var U=E.p(Y),ee=function(w){var F=N(X);return E.w(F.date(F.date()+Math.round(w*D)),X)};if(U===d)return this.set(d,this.$M+D);if(U===V)return this.set(V,this.$y+D);if(U===f)return ee(1);if(U===c)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=o,W)[U]||1,I=this.$d.getTime()+D*re;return E.w(I,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var X=D||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),ee=this.$H,re=this.$m,I=this.$M,w=W.weekdays,F=W.months,P=function(B,A,G,z){return B&&(B[A]||B(Y,X))||G[A].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,A,G){var z=B<12?"AM":"PM";return G?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:P(W.monthsShort,I,F,3),MMMM:P(F,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:P(W.weekdaysMin,this.$W,w,2),ddd:P(W.weekdaysShort,this.$W,w,3),dddd:w[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,re,!0),A:H(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:U};return X.replace(S,function(B,A){return A||_[B]||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var X,U=E.p(Y),ee=N(D),re=(ee.utcOffset()-this.utcOffset())*n,I=this-ee,w=E.m(this,ee);return w=(X={},X[V]=w/12,X[d]=w,X[y]=w/3,X[c]=(I-re)/6048e5,X[f]=(I-re)/864e5,X[u]=I/r,X[s]=I/n,X[i]=I/o,X)[U]||I,W?w:E.a(w)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),X=R(D,Y,!0);return X&&(W.$L=X),W},k.clone=function(){return E.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()},C}(),q=x.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",g]].forEach(function(C){q[C[1]]=function(k){return this.$g(k,C[0],C[1])}}),N.extend=function(C,k){return C.$i||(C(k,x,N),C.$i=!0),N},N.locale=R,N.isDayjs=O,N.unix=function(C){return N(1e3*C)},N.en=M[L],N.Ls=M,N.p={},N})})(Pr);var is=Pr.exports;const We=Qe(is);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(m){this[h]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},y=function(h,m){var S,b=s.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,m))>-1){S=$>12;break}}else S=h===(m?"pm":"PM");return S},V={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,x){var q=x&&x.toUpperCase();return E||S[x]||o[x]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,k,D){return k||D.slice(1)})})).match(n),$=b.length,j=0;j<$;j+=1){var L=b[j],M=V[L],O=M&&M[0],R=M&&M[1];b[j]=R?{regex:O,parser:R}:L.replace(/^\[|\]$/g,"")}return function(N){for(var E={},x=0,q=0;x<$;x+=1){var C=b[x];if(typeof C=="string")q+=C.length;else{var k=C.regex,D=C.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(X){var U=X.afternoon;if(U!==void 0){var ee=X.hours;U?ee<12&&(X.hours+=12):ee===12&&(X.hours=0),delete X.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,$=b.parse;b.parse=function(j){var L=j.date,M=j.utc,O=j.args;this.$u=M;var R=O[1];if(typeof R=="string"){var N=O[2]===!0,E=O[3]===!0,x=N||E,q=O[2];E&&(q=O[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,X){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var U=g(W)(Y),ee=U.year,re=U.month,I=U.day,w=U.hours,F=U.minutes,P=U.seconds,p=U.milliseconds,H=U.zone,_=new Date,B=I||(ee||re?1:_.getDate()),A=ee||_.getFullYear(),G=0;ee&&!re||(G=re>0?re-1:_.getMonth());var z=w||0,Z=F||0,te=P||0,T=p||0;return H?new Date(Date.UTC(A,G,B,z,Z,te,T+60*H.offset*1e3)):X?new Date(Date.UTC(A,G,B,z,Z,te,T)):new Date(A,G,B,z,Z,te,T)}catch{return new Date("")}}(L,R,M),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),x&&L!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var C=R.length,k=1;k<=C;k+=1){O[1]=R[k-1];var D=S.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===C&&(this.$d=new Date(""))}else $.call(this,j)}}})})(Dr);var ss=Dr.exports;const us=Qe(ss);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return y}});return i.bind(this)(d)}}})})(Fr);var cs=Fr.exports;const fs=Qe(cs);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,V,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[V]),$=S||b.map(function(L){return L.slice(0,g)});if(!h)return $;var j=m.weekStart;return $.map(function(L,M){return $[(M+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,y){return d.formats[y]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Rr);var ds=Rr.exports;const hs=Qe(ds);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var y=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(y,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Ar);var ms=Ar.exports;const gs=Qe(ms);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Lr);var ps=Lr.exports;const vs=Qe(ps);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Mr);var ys=Mr.exports;const bs=Qe(ys);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Br);var ws=Br.exports;const xs=Qe(ws);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Je,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(_r);var Ss=_r.exports;const Ts=Qe(Ss);We.extend(hs);We.extend(fs);We.extend(us);We.extend(gs);We.extend(vs);We.extend(bs);We.extend(xs);We.extend(Ts);const Le={format(e,t){return We(e).format(t)},parser(e,t){return We(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Le.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Le.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},no={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},lo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Cs(e,t,o){return{props:{...Se,...Ve,...no,...lo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const A=[...d.value];A[0]=B,d.value=A}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const j=B=>{let G=B.target.value;c.value=!0,ge(b.value)||($.value=!0),s("focus",G,B)},L=B=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let G=B.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,B)},M=()=>{s("clear","")},O=B=>{s("calendar-change",B)},R=(B,A,G)=>{s("panel-change",B,A,G)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Me.Near),x=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),C=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let k=null;const D=l.ref(se(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const A=[];Array.isArray(q.value)?(A[0]=d.value?d.value[0]??q.value[0]:null,A[1]=q.value[1]??q.value[0]):(A[0]=d.value?d.value[0]??q.value:null,A[1]=D.value),A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Le.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const A=[];A[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?A[1]=k[1]:A[1]=k,A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=se(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const A=[d.value[0]];Array.isArray(q.value)?A[1]=q.value[1]??q.value[0]:A[1]=D.value,A[0]||(A[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=q.value;s("update:modelValue",d.value)}else Ue(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([A])=>{D.value!==A&&B()}),l.watch([()=>d.value],([A])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(A))try{let z=A[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Le.format(z,n.valueFormat));let Z=Array.isArray(q.value)?q.value[1]:q.value;(z===Z||Array.isArray(C.value)&&C.value.findIndex(T=>z==T)!==-1)&&(G=!0)}catch(z){console.error(z)}D.value!==G&&(D.value=G)},{immediate:!0})}const X=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),U=l.ref(),ee=l.ref(),re=/^\d+$/,I=(B,A)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,A):re.test(B)&&B.length===n.flashFillThreshold,w=(B,A)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(B,A);else{const Z=n.flashFillFormat??"YYYYMMDD";G=Le.parser(B,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Le.format(G,z)},F=B=>B?B.endsWith("range"):!1,P=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=G,g(z)}else g(G)}},p=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=G,g(z)}else g(G)}},H=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",P),B[1]&&B[1].addEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",P)}},_=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",P),B[1]&&B[1].removeEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",P)}};return l.onMounted(H),l.onBeforeUnmount(_),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const A={...r.attrs,key:V.value,type:h.value,ref:ee,class:S.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:M,onFocus:j,onBlur:L,onCalendarChange:O,onPanelChange:R,onVisibleChange:N},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const z=[],Z=l.h(v.ElDatePicker,A,G);z.push(Z);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ce={class:X.value},pe=l.h("div",ce,{default:()=>[le,fe]});z.push(pe)}if(!i.value&&!a.value){const le={label:x.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(v.ElCheckbox,le),ce=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ce}}const K={...Ie(n,no,lo),ref:U,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:$s,create:Ns,scope:Es}=ie("date-item"),sl=Ns(Cs($s,Es,Te)),oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ks(e,t,o){return{props:{...Se,...Ve,...oo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let R=M.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",R,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let R=M.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,M)},$=()=>{s("clear","")},j=M=>{s("visible-change",M)},L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const O={...r.attrs,ref:L,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b,onVisibleChange:j},R={},N=[],E=l.h(v.ElTimePicker,O,R);N.push(E);const x={default:()=>N};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const C={...Ie(n,oo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,C,x)}}}}const{componentName:Is,create:Vs,scope:Os}=ie("time-item"),ul=Vs(ks(Is,Os,Te)),ro={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...Se,...Ve,...ro},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let O=L.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",O,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,L)},$=()=>{s("clear","")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const M={...r.attrs,ref:j,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:$,onFocus:S,onBlur:b},O={},R=[],N=l.h(v.ElTimeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...Ie(n,ro),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Ds,create:Fs,scope:Rs}=ie("time-select-item"),cl=Fs(Ps(Ds,Rs,Te));function ao(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function io(e,t,o=20){if(typeof t=="string"&&(t=xe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wo(`${e}`,`${t}`);return ao(n)}else{let n=Yn(`${e}`,Yo(`${t}`),20);return ao(n)}}function As(e,t=-1,o=!1,n=3,r=","){return Zt(e,t,o,n,r)}function so(e,t,o,n,r=!0){if(e==="")return"";if(e=Go(e),t=xe(t),t==1)return e;if(n)e=io(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=Yn(e,1,xe(o)));else{let a=-1*t;e=io(e,a)}return e}function uo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=An(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const co={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 Ls(e,t,o){return{props:{...Se,...Ve,...co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=he(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([C,k,D])=>{if(ge(C)){c.value="";return}const Y=so(C,k,D,!1);c.value!==Y&&(c.value=Y)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=c.value),C}),{t:y}=Be.useFoxI18n(t),V=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!ge(c.value)?C=As(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=y(["placeholder",C]),C}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let C=S.value;return ge(C)&&(C=n.errorTip??""),C}),$=l.ref(""),j=l.ref(!1),L=(C,k)=>{if(C=`${C}`,ge(C)){c.value="",f.value="",k.forEach(D=>{s(D,"")}),se(n.showTip)&&j.value&&(j.value=!1);return}if(C.length>=2){let D=C;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(c);return}}if(C!="-"){if(!lr(C)){l.triggerRef(c);return}if(n.integerLength!=-1&&or(C)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&rr(C)>Number(n.decimalLength)){l.triggerRef(c);return}let D=uo(C,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(c);return}}else if(n.min!=null&&xe(n.min)>=0){l.triggerRef(c);return}$.value=C,se(n.showTip)&&(j.value=C.length>0),c.value=C,f.value=so(C,n.rates,n.precision,!0),k.forEach(D=>{s(D,f.value)})},M=C=>{L(C,["update:modelValue","input"])},O=C=>{L(C,["update:modelValue","change"])},R=C=>{if(u.value=!0,se(n.showTip)){let k=c.value;ge(k)&&(k=n.hintText),ge(k)||($.value=k,j.value=!0)}S.value="",s("focus",f.value,C)},N=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&j.value===!0&&(j.value=!1)},0),!ge(c.value)){let k=uo(c.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",f.value,C),s("blur",f.value,C)},E=()=>{s("clear","")},x=l.computed(()=>Lt(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ye(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:M,onChange:O,onFocus:R,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.fixedTip&&(X.fixedTip=r.slots.fixedTip);const ee={...Ie(n,co),errorTip:b.value,hintText:$.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Ms,create:Bs,scope:_s}=ie("money-item"),fl=Bs(Ls(Ms,_s,Te)),fo={modelValue:{type:[String,Number],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function qs(e,t,o){return{props:{...Se,...Ve,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__append`]:M.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=R=>{d.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)};let S=he(n,"hintText"),b=l.ref(!1);const $=R=>{let E=R.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",E,R)},j=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let E=R.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,R)},L=()=>{s("clear","")},M=l.computed(()=>Lt(n.unit)>0),O=l.ref();return $e({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const N={...Ye(r.attrs),ref:O,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onChange:m,onInput:h,onFocus:$,onBlur:j},E={},x=[],q=l.h(v.ElInputNumber,N,E);x.push(q);const C={default:()=>x};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const D={...Ie(n,fo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(M.value){const W={class:g.value},X=l.h("div",W,[n.unit]);C.append=()=>X}return l.h(o,D,C)}}}}const{componentName:js,create:zs,scope:Hs}=ie("input-number-item"),dl=zs(qs(js,Hs,Te));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ks(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ws=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=He(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ys(){const e=l.getCurrentInstance();return new Ws(e.proxy)}function Hn(e,t,o){const n=Ge(e,t),r=Ge(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function qr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=qr(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ge(e,f)===s;else if(o==="item")u=Hn(e,f,s);else{let c=ct(e,f);c==null&&(c=Ge(e,f)),u=c===s}if(u){r.push(f),a=Ks(e,f);break}}if(!u)break}}return r}function Gs(e){return{text:e,value:e}}const ho={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Us(e,t,o){return{props:{...Se,...Ve,...ho},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(G=>Ge(n,G)).join(" "):Ge(n,B)).join(" "):""),V=(_,B,A,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===_)return;c.value=_;const T=l.toRaw(_);if(G){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const Q=[];K.forEach(le=>{const ce=(le.pathNodes??[]).map(pe=>pe.data);Q.push(ce)}),s("update:pathNodes",Q)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",le)}s("update:modelValue",T),s("change",T)}return}const z=qr(n,_,B,A);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Z=z[z.length-1];if(E.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const T=[];z.forEach(K=>{const Q=`${Ge(n,K)}`;T.push(Q)}),T.length>0&&(R.value=T.join(n.separator))}else R.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],Q=d.value[T];if(Array.isArray(K)){if(!Array.isArray(Q)||K.length!==Q.length)te=!1;else for(let le=0;le<K.length;le++)if(!Hn(n,K[le],Q[le])){te=!1;break}}else Hn(n,K,Q)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ce=[];for(let pe of le)fe.push(ct(n,pe)),n.valueType==="text"?ce.push(Ge(n,pe)):n.valueType==="item"?ce.push(pe):ce.push(ct(n,pe));T.push(fe),K.push(ce)}else T.push(ct(n,le)),n.valueType==="text"?K.push(Ge(n,le)):n.valueType==="item"?K.push(le):K.push(ct(n,le))}),c.value=T;const Q=l.toRaw(K);G&&(s("update:pathNodes",z),s("update:modelValue",Q),s("change",Q))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,_=>se(_)),m=Ys(),S=async(_,B)=>{if(_){const A=await m.load("cascader",_,B);if(A.length>0)if(typeof A[0]=="string"){let Z=A.map(te=>Gs(te));g.value=Z}else g.value=A}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{V(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&V(n.modelValue,"value",[],!1);let j=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){L.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}L.value=!1}});const M=l.ref(!1),O=e,R=l.ref(null),N=l.computed(()=>({[O]:!0,"is-incomplete":R.value&&R.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,A)=>{const G=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===B.level){const z=B.pathLabels??[];let Z=[];z.forEach(te=>{te&&Z.push(te)}),Z.length>0&&(R.value=Z.join(n.separator))}else R.value=null;A(G)}),_}),x=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),c.value=_):V(_,"value",g.value,!0)};let q=he(n,"hintText"),C=l.ref(!1);const k=_=>{let A=_.target.value;M.value=!0,ge(q.value)||(C.value=!0),s("focus",A,_)},D=_=>{setTimeout(()=>{C.value&&(C.value=!1),M.value=!1},0);let A=_.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),w.value||s("blur",A,_)},Y=()=>{s("clear","")},W=l.ref(!1);let X=null;const U=()=>{n.showTooltip&&W.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{W.value=!0},150))},ee=()=>{X&&(clearTimeout(X),W.value=!1,X=null)},re=l.computed(()=>W.value||C.value),I=l.computed(()=>W.value?y.value:q.value),w=l.ref(!1),F=_=>{w.value=_,s("visible-change",_),_||s("selected")},P=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return $e({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:R.value||f.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:Y,onChange:x,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:P,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=L.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const G=[],z=l.h(v.ElCascader,B,A);G.push(z);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const T={...Ie(n,ho),hintText:I.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:U,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=$),l.h(o,T,Z)}}}}const{componentName:Xs,create:Zs,scope:Js}=ie("cascader-item"),hl=Zs(Us(Xs,Js,Te)),mo={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Qs(e,t,o){return{props:{...Se,...Ve,...mo},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=O=>{d.value=O,s("update:modelValue",O),s("input",O)},h=O=>{s("change",O)},m=O=>{s("select",O)};let S=he(n,"hintText"),b=l.ref(!1);const $=O=>{let N=O.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",N,O)},j=O=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,O)},L=()=>{s("clear","")},M=l.ref();return $e({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const R={...r.attrs,ref:M,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:L,onChange:h,onInput:g,onFocus:$,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],x=l.h(v.ElAutocomplete,R,N);E.push(x);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,mo),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:eu,create:tu,scope:nu}=ie("autocomplete-item"),ml=tu(Qs(eu,nu,Te));function lu(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(y=>y[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let ou=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ru(){const e=l.getCurrentInstance();return new ou(e.proxy)}const jr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function au(e,t){return{props:{...jr},setup(o,{attrs:n,slots:r}){const a=ru(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=lu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:zh,create:iu,scope:Hh}=ie("mapping"),Rt=iu(au());function su(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function uu(e,t){return{props:{...jr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=su(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:Kh,create:cu,scope:Wh}=ie("table-mapping-column"),gl=cu(uu()),fu=Symbol.for("TableStateKey");function go(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function du(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(fu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=go(s.row,s.column.property),f=a?go(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[y])}};return l.h(v.ElTableColumn,{...n},i)}}}}const{componentName:Yh,create:hu,scope:Gh}=ie("table-radio-column"),pl=hu(du()),mu={},gu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},pu=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),vu=[pu];function yu(e,t){return l.openBlock(),l.createElementBlock("svg",gu,vu)}const bu=_e(mu,[["render",yu]]),{componentName:Uh,create:wu,scope:Xh}=ie("table-setting"),xu={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Su=wu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:bu,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...xu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=p=>p.length>1,y=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(A=>{H.some(G=>G.prop===A.prop?(A.label=G.label,!0):!1)});const _=[];r.value=p.map((A,G)=>(!(A.label===""||A.type)&&A.visible!==!1&&_.push(A.prop),{...A,sortIndex:G})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&($.value=!0),M.value=_},V=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>V(B));for(let B of H){const A=V(B);if(_.indexOf(A)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,A)=>({...B,sortIndex:A})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}y(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,$.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&($.value=!0),M.value=H,m()},L=()=>{h(n),m()},M=l.ref([]),O=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,$.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&($.value=!0),m()},R=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,x=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},C=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const A=Number(N.index),G=Number(_.dataset.index);if(A!==G){if(A<G){const z=r.value[A];r.value.splice(A,1),r.value.splice(G,0,z)}else{const z=r.value[A];r.value.splice(A,1),r.value.splice(G+1,0,z)}y(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},X=p=>{const H=r.value[p];H.fixed=void 0,m()},U=new Map;let ee=null;function re(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:j,handleReset:L,checkedValue:M,handleCheckChange:O,onShow:R,onDragStart:x,onDragEnd:q,onDragOver:C,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:X,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const A=Math.floor(B.offsetWidth);if(Math.floor(re(B))>A){let z=U.get(H);if(z){if(z===ee)return;Pe.hide(z)}z=Pe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),U.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=U.get(H);_&&(Pe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Pe.hide(ee),ee=Pe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Pe.hide(ee),ee=null)}}}}),Tu={class:"fox-table-setting"},Cu={class:"fox-table-setting__header"},$u={class:"fox-table-setting__body"},Nu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Eu={key:0,class:"fox-table-setting__body-title"},ku=["data-index","draggable"],Iu=["onMouseover","onMouseleave"],Vu={class:"tools-item"},Ou={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Pu={key:0,class:"fox-table-setting__body-title"},Du=["data-index","draggable"],Fu=["onMouseover","onMouseleave"],Ru={class:"tools-item"},Au={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Lu={key:0,class:"fox-table-setting__body-title"},Mu=["data-index","draggable"],Bu=["onMouseover","onMouseleave"],_u={class:"tools-item"};function qu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),y=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Tu,[l.createElementVNode("div",Cu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",$u,[l.createVNode(V,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Nu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Eu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Iu)]),_:2},1032,["label"]),l.createElementVNode("div",Vu,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,ku))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Pu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Fu)]),_:2},1032,["label"]),l.createElementVNode("div",Ru,[l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Du))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Au,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Lu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Bu)]),_:2},1032,["label"]),l.createElementVNode("div",_u,[l.createVNode(c,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Mu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const mn=_e(Su,[["render",qu]]);let ju=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=He(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Xe(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function zu(){const e=l.getCurrentInstance();return new ju(e.proxy)}class Hu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=He(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=He(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function zr(){const e=l.getCurrentInstance();return new Hu(e.proxy)}const Ku=Symbol.for("TableStateKey"),po={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},vo={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},paginationBackground:{type:[Boolean],required:!1,default:()=>!1},paginationSmall:{type:[Boolean],required:!1,default:()=>!0},showPagination:{type:[Boolean],required:!1,default:()=>!0},hideOnSinglePage:{type:[Boolean],required:!1,default:()=>!0}},Nn={popoverWidth:{type:[String,Number],required:!1,default:()=>280},popoverPlacement:{type:[String],required:!1,default:()=>"top-start"},title:{type:[String],required:!1,default:()=>"列设置"},resetText:{type:[String],required:!1,default:()=>"重置"},leftFixedTitle:{type:[String],required:!1,default:()=>"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:()=>"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:()=>"不固定"},fixedLeftText:{type:[String],required:!1,default:()=>"固定到列头"},fixedRightText:{type:[String],required:!1,default:()=>"固定到列尾"},unFixedText:{type:[String],required:!1,default:()=>"不固定"}},Wu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Yu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function En(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Yu(n,r);if(a!==i)return!1}return!0})}function Gu(e,t,o){return{inheritAttrs:!1,props:{...Se,...Ve,...po,...vo,...Nn,...Wu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Ce({componentName:e,validateHandler:{getValue(...J){return O.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),g=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=se(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,J=>{h.value=J}),l.watch(()=>n.pageSize,J=>{m.value=J}),l.watch([h,m],([J,oe],[ne,ae])=>{oe!==ae&&(h.value=1,J=1),x(n.data,J,oe,g.value)}));const b=()=>Array.isArray(n.data)?!0:se(n.autoLoad);b()&&l.watch([()=>n.data,g],async([J,oe],[ne,ae])=>{b()&&(J!==ne&&(N=!0),!(!Array.isArray(J)&&Ue(J,ne)&&Ue(oe,ae))&&(S?(h.value=0,L.value=!0,O.value=[],C()):h.value===1?x(J,h.value,m.value,oe):h.value=1))},{deep:!0});const $=J=>{h.value=J,i("page-index-change",J)},j=J=>{m.value=J,i("page-size-change",J)},L=l.ref(!0),M=l.ref(0),O=l.ref(),R=zu();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,J=>se(J)),x=async(J,oe,ne,ae,we)=>{N=!1;try{if(we===!0){if(!L.value)return!1;const me=await R.load("table",J,oe,ne,ae,N,a.value);return M.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,O.value,me.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=M.value)||me.page.length<ne?(L.value=!1,!1):!0}else{const me=await R.load("table",J,oe,ne,ae,N,a.value);return M.value=me.totalSize,O.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),M.value=0,O.value=[]}return!1};let q=!1;const C=async()=>{if(!q){if(q=!0,!L.value){q=!1;return}h.value+=1,await x(n.data,h.value,m.value,g.value,!0),q=!1}},k=(J={},oe=!1)=>new Promise(async ne=>{V.value={...l.toRaw(J??{})},oe||(h.value=n.pageIndex??1),S===!0?(h.value=0,O.value=[],L.value=!0,await C()):await x(n.data,h.value,m.value,g.value),ne()}),D=()=>{M.value=0,O.value=[],S===!0&&(h.value=0,L.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},X=l.ref(null);if(S===!0){let J=null;const oe=()=>{X.value&&(J=new IntersectionObserver(ae=>{let we=!1;for(let me of ae)if(me.intersectionRatio>0){we=!0;break}we&&C()}),J.observe(X.value))},ne=()=>{!J||!X.value||(J.unobserve(X.value),J=null)};l.onMounted(oe),l.onBeforeUnmount(ne)}b()&&!E.value&&k();const U=l.ref(null);l.provide(Ku,{currentRow:U});const ee=(J,oe)=>{U.value=J,i("current-change",J,oe)},re=(J,oe,ne)=>{i("row-click",J,oe,ne),se(n.rowClickSelectable)===!0&&be?.value.toggleRowSelection(J)},I=[],w=(J,oe)=>{if(i("expand-change",J,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ne=I.length;I.splice(0,ne)}else{I.forEach(ae=>{ae!==J&&be?.value.toggleRowExpansion(ae,!1)});const ne=I.length;I.splice(0,ne,J)}Array.isArray(oe)&&oe.length>0&&pe(0)},F=r.attrs.id??n.prop??r.attrs.name,P=zr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:p.value}),B=J=>{p.value=[...J],G()},A=async()=>{const J=await P.load(F);J&&(p.value=J)},G=()=>{P.save(F,p.value)},z=()=>{P.remove(F)};A();const Z=J=>J?J.type?J.type:J.label?J.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(J,oe)=>{for(let ne in oe){const ae=oe[ne];typeof ae!="function"&&(J[ne]=ae)}},K=l.computed(()=>{const J=te(),oe=new Map;if(H=[],J.forEach(ne=>{const ae=ne;if(!ae.props)return;const we=Z(ae.props);oe.set(we,ne);const me={label:"",prop:""};T(me,ae.props),H.push(me)}),p.value.length===H.length){const ne=[];for(let ae of p.value){const we=Z(ae),me=oe.get(we);if(!me)return J;if(ae.visible===!1)continue;const nt=me;nt.props.fixed=ae.fixed,ne.push(nt)}return ne}return J}),Q=l.shallowRef(new Map),le=({row:J,column:oe,rowIndex:ne,columnIndex:ae})=>{const we=`${ne}_${oe.property}`,me=`${ne}_${ae}`;let nt=Q.value.get(we);return nt||(nt=Q.value.get(me)),nt??""},fe=J=>typeof J=="function"?oe=>{const ne=[];let ae=le(oe);return ae&&ne.push(ae),ae=J(oe),ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:le;let ce=null;const pe=(J=-1,oe=!1)=>{J>=0?(ce&&clearTimeout(ce),ce=setTimeout(()=>{ce=null,Q.value.forEach((ne,ae)=>{ne=oe?"":ne;const we=`${ae}_item`;s.emitToChildren({name:we},"setCustomClassName",ne)})},J)):Q.value.forEach((ne,ae)=>{ne=oe?"":ne;const we=`${ae}_item`;s.emitToChildren({name:we},"setCustomClassName",ne)})},qe=(J,oe)=>{const ne=`${J}_item`;s.emitToChildren({name:ne},"setCustomClassName",oe)},et=(J,oe,ne)=>{const ae=`${J}_${oe}`;ne?(Q.value.set(ae,ne),qe(ae,ne)):(Q.value.delete(ae),qe(ae,"")),l.triggerRef(Q)},ht=()=>{pe(0,!0),Q.value.clear(),l.triggerRef(Q)},tt=l.shallowRef(new Map),Wl=({rowIndex:J})=>{const oe=`${J}`;return tt.value.get(oe)??""},ea=J=>typeof J=="function"?oe=>{const ne=[];let ae=Wl(oe);return ae&&ne.push(ae),ae=J(oe),ae&&ne.push(ae),ne.length===0?"":ne.join(" ")}:Wl,ta=(J,oe)=>{const ne=`${J}`;oe?tt.value.set(ne,oe):tt.value.delete(ne),l.triggerRef(tt)},na=()=>{tt.value.clear(),l.triggerRef(tt)},be=l.ref();return $e({clearSelection:()=>be?.value.clearSelection(),getSelectionRows:()=>be?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{be?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!O.value)return;const ne=En(O.value,J);ne.length!==0&&ne.forEach(ae=>{be?.value.toggleRowSelection(ae,oe)})},toggleAllSelection:()=>{be?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{be?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!O.value)return;const ne=En(O.value,J);ne.length!==0&&ne.forEach(ae=>{be?.value.toggleRowExpansion(ae,oe)})},setCurrentRow:J=>{be?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!O.value)return;const oe=En(O.value,J);oe.length!==0&&be?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{be?.value.clearSort()},clearFilter:J=>{be?.value.clearFilter(J)},doLayout:()=>{be?.value.doLayout()},sort:(J,oe)=>{be?.value.sort(J,oe)},scrollTo:(J,oe)=>{be?.value.scrollTo(J,oe)},setScrollTop:J=>{be?.value.setScrollTop(J)},setScrollLeft:J=>{be?.value.setScrollLeft(J)},loadData:k,clearData:D,getData(){return O.value},getTotalSize(){return M.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:et,clearCellClassName:ht,setRowClassName:ta,clearRowClassName:na}),()=>{const oe={...Ye(r.attrs),onCurrentChange:ee,onRowClick:re,onExpandChange:w,data:O.value,ref:be,class:f.value,"cell-class-name":fe(n.cellClassName),"row-class-name":ea(n.rowClassName)},ne={};if(r.slots.default&&(ne.default=()=>K.value),r.slots.append&&(ne.append=r.slots.append),r.slots.empty&&(ne.empty=r.slots.empty),S===!0){const je=[];if(L.value){const Tt=l.h(ke.Loading,{class:`${u}__infinite-icon`});je.push(Tt);const yn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);je.push(yn)}else{const Tt=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);je.push(Tt)}const at={ref:X,class:`${u}__infinite`},vn=l.h("div",at,je);ne.append=()=>vn}const ae=l.h(v.ElTable,oe,ne),we=[];if(we.push(ae),!S){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const at={class:y.value,total:M.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":$,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(v.ElPagination,at)}if(n.showSetting){const at=[];je&&at.push(je);const vn=l.h(v.ElIcon,{class:c.value},{default:()=>l.h(ke.Setting)}),Tt=ar(n,Nn),yn=l.h(mn,{...Tt,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>vn});at.push(yn);const la=l.h("div",{class:d.value},at);we.push(la)}else je&&we.push(je)}const me={default:()=>we},St={...Ie(n,po,vo,Nn),prop:`${n.prop}_item`};return St.contentClass=`${u}__wrap`,St.errorMarkClass="is-table-error",E.value&&b()&&(St["appear-listen"]=!0,St.onAppear=W),l.h(o,St,me)}}}}const{componentName:Uu,create:Xu,scope:Zu}=ie("table-item"),vl=Xu(Gu(Uu,Zu,Te));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ju(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Qu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function ec(){const e=l.getCurrentInstance();return new Qu(e.proxy)}function Hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function tc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=wt(e,a)===t;else if(o==="item")i=Hr(e,a,t);else{let s=At(e,a);s==null&&(s=wt(e,a)),i=s===t}if(i){r=a;break}}return r}function nc(e){return{text:e,value:e}}function lc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function oc(e,t,o){return{inheritAttrs:!0,props:{...Se,...Ve,...yo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(O,R,N,E=!0)=>{const x=tc(n,O,R,N);if(x===null){if(f.value===null)return;f.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!Hr(n,x,f.value)){u.value=O;const C=l.toRaw(x);f.value=C;let k=null;n.valueType==="text"?k=wt(n,C):n.valueType==="item"?k=C:k=At(n,C),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,O=>se(O)),V=ec(),g=async(O,R)=>{if(O){const N=await V.load("radio",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>nc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=At(n,E),C=wt(n,E);let k=Ju(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=lc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElRadioButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElRadio,W,{default:()=>R(E)})):N.push(l.h(v.ElRadio,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElRadioGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,yo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:rc,create:ac,scope:ic}=ie("radio-item"),yl=ac(oc(rc,ic,Te));function xt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function sc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let uc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function cc(){const e=l.getCurrentInstance();return new uc(e.proxy)}function Kr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=xt(e,t),r=xt(e,o);if(n!==r)return!1;const a=yt(e,t),i=yt(e,o);return a===i}function fc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=xt(e,i)===a;else if(o==="item")s=Kr(e,i,a);else{let u=yt(e,i);u==null&&(u=xt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function dc(e){return{text:e,value:e}}function hc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const bo={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function mc(e,t,o){return{inheritAttrs:!0,props:{...Se,...Ve,...bo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(O,R,N,E=!0)=>{const x=fc(n,O,R,N);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(x.length!==f.value.length)q=!1;else for(let C=0;C<x.length;C++){const k=x[C],D=f.value[C];if(!Kr(n,k,D)){q=!1;break}}if(!q){f.value=x;let C=[],k=[];x.forEach(Y=>{C.push(yt(n,Y)),n.valueType==="text"?k.push(xt(n,Y)):n.valueType==="item"?k.push(Y):k.push(yt(n,Y))}),u.value=C;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,O=>se(O)),V=cc(),g=async(O,R)=>{if(O){const N=await V.load("checkbox",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map(C=>dc(C));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),$=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=yt(n,E),C=xt(n,E);let k=sc(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=hc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:se(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElCheckboxButton,W,{default:()=>[C]})):typeof R=="function"?N.push(l.h(v.ElCheckbox,W,{default:()=>R(E)})):N.push(l.h(v.ElCheckbox,W,{default:()=>[C]}))}),N};return()=>{const R={...Ye(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:xe(n.max),min:xe(n.min),onChange:$},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElCheckboxGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...Ie(n,bo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:gc,create:pc,scope:vc}=ie("checkbox-item"),bl=pc(mc(gc,vc,Te)),wo={modelValue:{type:[Number,String],required:!1}};function yc(e,t,o){return{props:{...Se,...Ve,...wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",h=>xe(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=l.ref(!1);const g=l.ref();return $e({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElRate,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...Ie(n,wo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:bc,create:wc,scope:xc}=ie("rate-item"),wl=wc(yc(bc,xc,Te)),xo={modelValue:{type:[Boolean,String,Number],required:!1}};function Sc(e,t,o){return{props:{...Se,...Ve,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=he(n,"hintVisible");const g=l.ref();return $e({}),()=>{const m={...Ye(r.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],$=l.h(v.ElSwitch,m,S);b.push($);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...Ie(n,xo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:Tc,create:Cc,scope:$c}=ie("switch-item"),xl=Cc(Sc(Tc,$c,Te)),So={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Nc(e,t,o){return{props:{...Se,...Ve,...So},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=he(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),y=L=>{u("update:modelValue",L),u("change",L)};let V=he(n,"hintText"),g=l.ref(!1);const h=L=>{let O=L.target.value;s.value=!0,ge(V.value)||(g.value=!0),u("focus",O,L)},m=L=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value||u("blur",O,L)},S=()=>{u("clear","")},b=l.ref(!1),$=L=>{b.value=L,u("visible-change",L),L||u("selected")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const M={...Ye(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:$},O={};r.slots.option&&(O.default=r.slots.option);const R=[],N=l.h(v.ElTreeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...Ie(n,So),hintText:V.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Ec,create:kc,scope:Ic}=ie("tree-select-item"),Sl=kc(Nc(Ec,Ic,Te)),Vc={},Oc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},Pc=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),Dc=[Pc];function Fc(e,t){return l.openBlock(),l.createElementBlock("svg",Oc,Dc)}const Rc=_e(Vc,[["render",Fc]]),{componentName:em,create:Ac,scope:tm}=ie("group-setting"),Lc={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Mc=Ac({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Rc,Download:ke.Download,RefreshLeft:ke.RefreshLeft},props:{...Lc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=zr(),s=I=>I.length>1,u=()=>{const I=[],w=[...a.value];a.value=w.map((P,p)=>(P.visible!==!1&&I.push(P.prop),{...P,sortIndex:p})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),$.value=I},f=I=>{let w=null;if(typeof I=="string")w=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const P=I.$el??I;typeof P.querySelectorAll=="function"&&(w=P.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const F=[];return w.forEach(P=>{const p=P.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=P.getAttribute("prop")??"",A=window.getComputedStyle(P,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:A!=="none"})}),F},c=()=>{if(!r){const I=f(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},d=async(I=!1)=>{const w=await i.load(e.groupProp),F=P=>{if(!P||!r)return;const p=r.map(H=>({...H}));Array.isArray(w)&&w.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),I&&V(!1)};r?F(!0):nn(c,e.initDelay,5,50,!1,F)},y=()=>{const I=r??[];a.value=I.map(w=>({...w})),u(),V()},V=(I=!0)=>{I&&i.save(e.groupProp,a.value);const w=a.value.map(F=>({...F}));t("change",w)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=I=>{const w=[];a.value.forEach(P=>{I&&w.push(P.prop),P.visible=I}),h.value=!1,m.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(m.value=!0),$.value=w,V()},b=()=>{y()},$=l.ref([]),j=I=>{a.value.forEach(F=>{const P=I.indexOf(F.prop)!==-1;F.visible=P}),h.value=!1,m.value=!1;const w=a.value.length;I.length===w?h.value=!0:I.length>0&&(m.value=!0),V()},L=()=>{d()};l.onMounted(()=>{d(!0)});const M={currentRow:null,index:null},O=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,O(I)):null:null,R=I=>{const w=I.currentTarget;w&&w.dataset&&(M.index=w.dataset.index)},N=I=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},E=I=>{const w=I.currentTarget;I.relatedTarget;const F=O(w);F&&(I.preventDefault(),M.currentRow&&M.currentRow!==F&&M.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),M.currentRow=F)},x=I=>{I.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},q=I=>{const w=I.currentTarget,F=O(w);if(!F)return;I.preventDefault();const P=Number(M.index),p=Number(F.dataset.index);if(P!==p){if(P<p){const H=a.value[P];a.value.splice(P,1),a.value.splice(p,0,H)}else{const H=a.value[P];a.value.splice(P,1),a.value.splice(p+1,0,H)}u(),V()}},C=I=>{const w=a.value[I];a.value.splice(I,1),a.value.splice(0,0,w),u(),V()},k=I=>{const w=a.value[I];a.value.splice(I,1),a.value.push(w),u(),V()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(I){const w=document.createRange();return w.setStart(I,0),w.setEnd(I,I.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:$,handleCheckChange:j,onShow:L,onDragStart:R,onDragEnd:N,onDragOver:E,onDragLeave:x,onDrop:q,checkboxLabelStyle:g,toTop:C,toBottom:k,onMouseOverForOverflowText:(I,w,F)=>{const P=I.currentTarget;if(P){const p=Math.floor(P.offsetWidth);if(Math.floor(W(P))>p){let _=D.get(w);if(_){if(_===Y)return;Pe.hide(_)}_=Pe.show(P,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(w,_),Y=_}}},onMouseLeaveForOverflowText:(I,w)=>{const F=D.get(w);F&&(Pe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(I,w)=>{const F=I.currentTarget;F&&(Y&&Pe.hide(Y),Y=Pe.show(F,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Y&&(Pe.hide(Y),Y=null)}}}}),Bc={class:"fox-group-setting"},_c={class:"fox-group-setting__header"},qc={class:"fox-group-setting__body"},jc={class:"fox-group-setting__body-list","data-role":"container"},zc=["data-index","draggable"],Hc=["onMouseover","onMouseleave"],Kc={class:"tools-item"};function Wc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Bc,[l.createElementVNode("div",_c,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",qc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",jc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,V.prop,V.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,Hc)]),_:2},1032,["label"]),l.createElementVNode("div",Kc,[l.createVNode(c,{onClick:g=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,zc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tl=_e(Mc,[["render",Wc]]),Yc=["aria-labelledby"],Gc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Uc=[Gc],Xc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Jc],Cl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),ef=["aria-labelledby"],tf=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),nf=[tf],lf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},nf,14,ef))}}),of=["aria-labelledby"],rf=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),af=[rf],sf=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},af,14,of))}}),uf=["aria-labelledby"],cf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),ff=[cf],df=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ff,14,uf))}}),hf={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},To=(e,t)=>t[e.textKey],Nt=(e,t)=>t[e.valueKey],mf=(e,t)=>t[e.visibleKey],Co=(e,t)=>t[e.disabledKey],gf=(e,t)=>{const o=t[e.doitKey];return se(o)},pf=(e,t)=>{const o=t[e.numKey];return o==null?null:xe(t[o])},$o=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function vf(e,t,o,n=!1){return{props:{...hf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,W(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),g=l.ref(),h=l.ref(!1),m=()=>{const I=!h.value;S(I)},S=I=>{const w=I;w?(h.value=w,setTimeout(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),j=(I,w)=>{$.value[w]=I},L=I=>w=>{j(w,I)},M=(I,w)=>{const F=b.value,P=$.value;if(!F||!P||!P[I])return;const p=P[I];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,O(F,H,w?0:.3,r.direction)},O=(I,w,F,P)=>{let p=0;const H=P==="horizontal"?I.scrollLeft:I.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){P==="horizontal"?I.scrollLeft+=(w-H)/_:I.scrollTop+=(w-H)/_,++p<_&&Gn(B)}B()},R=(I,w)=>{const F=Nt(r,I),P={};return P[`${e}__titles-item`]=!0,P.disabled=Co(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0),r.ellipsis&&(P.ellipsis=!0),w&&(w.class&&(P[`${w.class}`]=!0),w.disabled===!0&&(P.disabled=w.disabled)),P},N=(I,w)=>{const F={};if(c.value>0){const P=Math.abs(c.value/2);r.direction==="vertical"?(F["margin-top"]=`${P}px`,F["margin-bottom"]=`${P}px`):(F["margin-left"]=`${P}px`,F["margin-right"]=`${P}px`)}return w&&w.style&&Object.assign(F,w.style),F},E=(I,w)=>`${Nt(r,I)??w}`,x=(I,w)=>{const F=Nt(r,I),P={};P[`${e}__popup-item`]=!0,P.disabled=Co(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0);const p=$o(r,I,w);return p&&p.disabled===!0&&(P.disabled=p.disabled),P},q=l.computed(()=>(r.data??[]).filter(w=>mf(r,w)!==!1)),C=(I,w)=>{const F=Nt(r,I);if(d.value==F)return;const P=()=>{d.value=F,r.scroll&&M(w,!1),i("update:modelValue",F),i("change",I,w)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(I,w);Xo(p)?p.then(H=>{H!==!1&&P()}).catch(()=>{P()}):p!==!1&&P()}else P()},k=(I,w)=>function(){C(I,w)},D=(I,w)=>{C(I,w),S(!1)},Y=(I,w)=>function(){D(I,w)},W=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(F=>Nt(r,F)===d.value);w!==-1&&M(w,I)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const X=(I,w)=>{if(a.item)return a.item({item:I,index:w});const F=$o(r,I,w),P=[];if(a.text){const B=a.text({item:I,index:w});P.push(B)}else{const B=[];if(F?.doit===!0||gf(r,I)){const Z={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Z);B.push(te)}const A=F?.num??pf(r,I);if(A){let Z="";const te=xe(A);te>=100?Z="99+":Z=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Z]);B.push(K)}const G={class:`${e}__titles-item-text`};B.push(To(r,I));const z=l.h("view",G,B);P.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);P.push(H);const _={ref:L(w),class:R(I,F),style:N(I,F),key:E(I,w),onClick:k(I,w)};return l.h("view",_,P)},U=()=>{const I=a.default?a.default():[];if(I.length===0)for(let F=0;F<q.value.length;F++){const P=q.value[F],p=X(P,F);I.push(p)}const w={ref:b,class:u.value,style:f.value};return l.h("view",w,I)},ee=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const w={class:`${e}__navigation`,onClick:m};return l.h("view",w,[I])},re=()=>{const I=[];for(let F=0;F<q.value.length;F++){const P=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:P,index:F}):p=To(r,P);const H={class:x(P,F),key:E(P,F),onClick:Y(P,F)},_=l.h("view",H,[p]);I.push(_)}const w={class:y.value,style:V.value};return l.h("view",w,I)};return()=>{const I=[],w=U();if(I.push(w),r.showQuickNavigation){const P=ee();I.push(P);const p=re();I.push(p)}const F={class:s.value};return l.h("view",F,I)}}}}const{create:yf,componentName:bf,scope:wf}=ie("tabs-bar"),$l=yf(vf(bf,wf,Xc,!1)),Wr=Symbol("TabsStatesKey"),xf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Sf(e,t,o=!1){return{props:{...xf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Wr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let y=!0;const V=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const m=rn(f.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(f.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:f};return l.h("view",S,[m])}}}}const{create:Tf,componentName:Cf,scope:$f}=ie("tabs-container"),Nl=Tf(Sf(Cf,$f,!1)),Nf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Ef(e,t,o){return{props:{...Nf},setup(n,{emit:r,slots:a}){const i=l.inject(Wr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},y=n.emptyIcon??o,V=l.h(y,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[V,m]);f.push(b)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:kf,componentName:If,scope:Vf}=ie("tabs-pane"),El=kf(Ef(If,Vf,Cl)),Of={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Pf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function No(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Eo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Df(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function kn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function ko(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Io(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function In(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Ff{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Xe(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Rf(){const e=l.getCurrentInstance();return new Ff(e.proxy)}function Af(e,t,o,n){return{props:{...Of},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=Rf(),f=l.ref([]),c=l.computed(()=>f.value.filter(w=>Df(r,w)!==!1)),d=l.ref(-1),y=()=>{const w=r.modelValue,F=c.value.findIndex(P=>No(r,P)===w);d.value!==F&&(d.value=F,r.scroll&&re(F,!1))};l.watch([()=>r.modelValue,c],()=>{y()});const V=w=>d.value===w,g=w=>{if(w<0&&w>=c.value.length)return!1;const F=c.value[w],p=(In(r,F,w)??{}).status??kn(r,F);return V(w)||p},h=l.computed(()=>{const w={[s]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),m=l.computed(()=>({})),S=(w,F,P,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),w===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:P?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),$=(w,F={})=>{const P={...F};return b.value==="start"&&w===c.value.length-1?P.flex="0 0 auto":r.step?r.direction==="vertical"?P.height=r.step:P.width=r.step:P.flex="1 1 100%",P},j=(w,F)=>{let P={};if(F<c.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?P.height="100%":P.width="100%":P.opacity="0"}return P},L=w=>c.value.length-1===w,M=(w,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const P=d.value,p=F;d.value=F,r.scroll&&re(F,!1);const H=No(r,w);i("update:modelValue",H);const _={fromIndex:P,currentIndex:p,item:w,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},O=l.ref(!0),R=async(w,F)=>{try{const P=await u.load("stesbar",w,F);Array.isArray(P)&&(f.value=P),O.value=!1}catch(P){console.error("[FoxUI] Load StepsBar Data Fail",P),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,F])=>{w&&R(w,F)},{immediate:!0});const N=(w,F,P,p,H)=>{let _=null;if(a.icon)_=a.icon({item:w,index:F,status:p});else if(p==="done"){const A={};r.iconSize&&(A.width=r.iconSize,A.height=r.iconSize);const G=r.icon??o;_=l.h(G,A)}else{const A=P??`${F+1}`;_=l.h("span",{},[A])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||M(w,F)}};return l.h("view",B,[_])},E=(w,F,P)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(w,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},x=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const P={};r.iconSize&&(P.width=r.markIconSize,P.height=r.markIconSize);const p=r.markIcon??n;w=l.h(p,P)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},q=(w,F,P,p,H)=>{const _=[];if(!L(F)){const G=E(w,F);_.push(G)}const B=N(w,F,P,p,H);_.push(B);const A={class:"fox-steps-bar__head"};return l.h("view",A,_)},C=(w,F,P,p)=>{let H=null;a.main?H=a.main({item:w,index:F,status:P}):H=Pf(r,w);const _={class:"fox-steps-bar__main",onClick:()=>{p||M(w,F)}};return l.h("view",_,[H])},k=(w,F,P)=>{let p=null;if(a.sub){p=a.sub({item:w,index:F,status:P});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=Eo(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??Io(r,w),B=[],A=N(w,F,_,p,H);A&&B.push(A);const G=C(w,F,p,H);if(G&&B.push(G),!L(F)){const Q=E(w,F);Q&&B.push(Q)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Z=P.class,te=P.style??{};let T=ko(r,w);P.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Z),style:$(F,te)};return l.h("view",K,[z])},Y=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=Eo(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??Io(r,w),B=[],A=r.layout;for(let T of A)if(T==="head"){const K=q(w,F,_,p,H);B.push(K)}else if(T==="main"){const K=C(w,F,p,H);B.push(K)}else if(T==="sub"){const K=k(w,F,p);B.push(K)}else if(T==="mark"){const K=x();B.push(K)}const G=P.class,z=P.style??{};let Z=ko(r,w);P.doit===!0&&(Z=!0);const te={ref:ee(F),class:S(F,p,H,Z,G),style:$(F,z)};return l.h("view",te,B)},W=l.ref(),X=l.ref([]),U=(w,F)=>{X.value[F]=w},ee=w=>F=>{U(F,w)},re=(w,F)=>{const P=W.value,p=X.value;if(!P||!p||!p[w])return;const H=p[w];let _=0;r.direction==="vertical"?_=H.offsetTop-(P.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(P.offsetWidth-H.offsetWidth)/2,I(P,_,F?0:.3,r.direction)},I=(w,F,P,p)=>{let H=0;const _=p==="horizontal"?w.scrollLeft:w.scrollTop,B=P===0?1:Math.round(P*1e3/16);function A(){p==="horizontal"?w.scrollLeft+=(F-_)/B:w.scrollTop+=(F-_)/B,++H<B&&Gn(A)}A()};return()=>{const w=[];if(r.mode==="simple")for(let P=0;P<c.value.length;P++){const p=c.value[P],H=D(p,P);w.push(H)}else for(let P=0;P<c.value.length;P++){const p=c.value[P],H=Y(p,P);w.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,w)}}}}const{componentName:Lf,create:Mf,scope:Bf}=ie("steps-bar"),kl=Mf(Af(Lf,Bf,sf,df)),_f=Symbol.for("InnerPageScopeKey"),qf=Symbol.for("PageWrapperKey");function jf(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(_f,!0);const r={};l.provide(qf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(v.ElDialog,f,c)}}}}const{componentName:nm,create:zf,scope:lm}=ie("dialog-item"),Il=zf(jf());let Et=0;const Vo="fox-overflow-hidden",Oo=()=>dt?document.body:{classList:[]},Hf=e=>[()=>{if(e())try{!Et&&Oo().classList.add(Vo),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Oo().classList.remove(Vo)}catch{}}],Kf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Wf,create:Yf}=ie("overlay"),Gf=Yf({props:{...Kf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Hf(()=>e.lockScroll),r=l.computed(()=>({[Wf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Uf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const gn=_e(Gf,[["render",Uf]]),Xf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Yr=2e3;let Po=Yr;const Zf=(e,t)=>({components:t,props:{...Xf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Yr&&(Po=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Po,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},y=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:y,onOpened:V,onClosed:g}}}),{componentName:Jf,create:Qf}=ie("popup"),ed=Qf(Zf(Jf,{FoxOverLay:gn,Close:lf}));function td(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Vl=_e(ed,[["render",td]]),{create:nd}=ie("toast"),ld=nd({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=de(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),od={key:1,class:"fox-toast-title"},rd=["innerHTML"];function ad(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",od,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,rd)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ol=_e(ld,[["render",ad]]),id={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},sd=(e,t,o)=>({props:{...id},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=vr(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=N=>{let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,N),a("change",x,N)},y=l.ref({}),V=N=>{let x=N.target.value;u.active=!0,y.value=n.focusStyle,a("focus",x,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),y.value={},a("blur",x,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},$=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},L=N=>{a("click-left-icon",n.modelValue,N)},M=l.computed(()=>({textAlign:n.inputAlign})),O=l.ref(null);l.onMounted(()=>{n.autofocus&&O.value.focus()});const R=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:O,class:[`${e}__input-inner`],style:M.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:V,onBlur:g,onkeyup:$},x=l.h("input",E);N.push(x);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...y.value}};return l.h("view",C,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},C=l.h("span",q,[n.label]);N.push(C)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",q,[r.leftout()]);N.push(C)}const E=R();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",q,[r.rightout()]);N.push(C)}const x={class:`${e}`,style:f.value};return l.h("view",x,N)}}}),{componentName:ud,create:cd,scope:fd}=ie("searchbar"),Pl=cd(sd(ud,fd,ke.CircleClose)),dd=/scroll|auto|overlay/i,Gr=window;function hd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function md(e,t=Gr){let o=e;for(;o&&o!==t&&hd(o);){const{overflowY:n}=window.getComputedStyle(o);if(dd.test(n))return o;o=o.parentNode}return t}function Ur(e,t=Gr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=md(e.value,t))}),o}const Xr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,gd={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function pd(e,t,o){return{props:{...gd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Ur(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,V=()=>{let b=0,$=0,j="down";if(f.value==window){const L=Xr();u.value&&(b=y(u.value)+u.value.offsetHeight-L-window.innerHeight),$=L}else{const{scrollHeight:L,clientHeight:M,scrollTop:O}=f.value;b=L-M-O,$=O}return c.beforeScrollTop>$?j="up":j="down",c.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&j=="down"},g=()=>{Ho(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",g,n.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(c.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),j=[];if(c.isInfiniting){let R=a?.loading?.()??null;if(!R){let x=a?.loadingIcon?.()??null;if(!x){const k={class:["fox-infinite__bottom-box__img"]};x=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},C=l.h("view",q,[s.loadText.value]);R=[x,C]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,R);j.push(E)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const N={class:"fox-infinite__bottom-tips"};R=l.h("view",N,[s.loadMoreText.value]),j.push(R)}}const L={class:"fox-infinite__bottom"},M=l.h("view",L,j),O={class:d.value,ref:u};return l.h("view",O,[$,M])}}}}const{componentName:vd,create:yd,scope:bd}=ie("infinite-loading"),Dl=yd(pd(vd,bd,Cl)),Do=10;function Zr(e,t){return e>t&&e>Do?"horizontal":t>e&&t>Do?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Zr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function wd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:m=>{if(m.touches){const $=m.touches[0];i.value=$.clientX-e.value,s.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Zr(u.value,f.value))},start:m=>{if(V(),m.touches){const $=m.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const xd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},Sd=(e,t,o)=>({props:{...xd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Rl(),f=l.ref(),c=Ur(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const O={};return n.headHeight!=50&&(O.height=Ee(n.headHeight)),O}),m=O=>{const R=+(n.pullDistance||n.headHeight);let N=O;return O>R&&(O<R*2?N=(O+R)/2:N=R+O/4),Math.round(N)},S=(O,R)=>{const N=+(n.pullDistance||n.headHeight);d.distance=O,R?d.status="loading":O===0?d.status="normal":O<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:O})},b=()=>d.status!=="loading"&&d.status!=="complete",$=()=>c.value==window?Xr()==0:c.value&&c.value.scrollTop==0,j=O=>{b()&&($()?(u.start(O),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},L=O=>{b()&&d.moving&&(u.move(O),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(O.cancelable&&O.preventDefault(),S(m(u.state.deltaY))))},M=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,O=>{O?S(+n.headHeight,!0):S(0)}),()=>{const O=[];let R=null;if(d.status==="loading"){if(R=a?.loading?.()??null,!R){const Y={class:["fox-pull-refresh-container-topbox-icon"]};R=l.h(o,Y)}}else d.status==="pulling"?R=a?.pulling?.()??null:d.status==="loosing"&&(R=a?.loosing?.()??null);R&&O.push(R);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[V.value]);O.push(E);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",x,O),C={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",C,[q,a?.default?.()]),D={ref:f,class:y.value};return Fl()?Object.assign(D,{onTouchstart:j,onTouchmove:L,onTouchend:M}):Object.assign(D,{onMousedown:j,onMousemove:L,onMouseup:M}),l.h("div",D,[k])}}}),{componentName:Td,create:Cd,scope:$d}=ie("pull-refresh"),Al=Cd(Sd(Td,$d,Cl));function Nd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],V=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[c,V]):l.h("div",g,[V,c])}}}}const{componentName:Ed,create:kd,scope:om}=ie("indicator"),Ll=kd(Nd(Ed));function Id(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const Vd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Od(e,t,o,n=!1){return{props:{...Vd},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},j=r.textColor??r.color;return j&&($.color=j),$}),f=($,j)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const M=r.highlightFilter;if($.indexOf(M)!==-1){const R=$.replace(new RegExp(M,"g"),`<span>${M}</span>`);j.innerHTML=R,j.class["is-highlight"]=!0,L=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const M=r.highlightFilter($);M&&(j.innerHTML=M,j.class["is-highlight"]=!0,L=l.h(r.tag,j))}return L},c=$=>{a.emit("click",$)};let d="";const y=()=>{const $=i.value;if(!$)return;const j=$.clientWidth;Id($,L=>{const M=$.innerHTML??"";ge(M)||L<j||(d?o?.show($,M,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show($,M,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let g=null;const h=$=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=$=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{V()},r.hideAfter??0)},S=()=>{const $=i.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",m))},b=()=>{const $=i.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||b()}),()=>{const $={onClick:c,class:s.value,style:u.value,ref:i};let j=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=xe(r.digits),x=xe(r.decimalLength),q=se(r.autoPadding);let C=`${R[0].children}`,k=C.split("").reverse().join("");k=Zt(k,x,q,E,r.separator),C=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=f(C,$)),j||($.innerHTML=C,j=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${R[0].children}`;j=f(E,$),j||($.innerHTML=E,j=l.h(r.tag,$))}}}j||(j=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let M=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const x={class:R,style:N};M=l.h("view",x)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[M,j])}}}}const{componentName:Pd,create:Dd,scope:Fd}=ie("text"),Ml=Dd(Od(Pd,Fd,Pe,!1)),Rd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:ke.ArrowUp}};function Ad(e,t,o){return{props:{...Rd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const y={class:f.value},V=o(n.icon,y);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Ld,create:Md,scope:Bd}=ie("more-button"),_d=(e,t)=>(e=e??ke.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),Bl=Md(Ad(Ld,Bd,_d));function qd(e){return e===window}const Jr=e=>{const t=l.unref(e);if(qd(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:jd,create:zd,scope:rm}=ie("tour"),Hd=zd({components:{Close:ke.Close,ElPopover:v.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=jd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:$,top:j}=r.value,L=e.steps[n.active].offset??g,M=[$+S/2,j+b/2],O=Number(h||S),R=Number(m||b);return{width:`${O+ +L.left+L.right}px`,height:`${R+L.top+L.bottom}px`,top:`${M[1]-R/2-+L.top}px`,left:`${M[0]-O/2-+L.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,f=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Jr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},V=(g,h=0)=>{g&&c(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{V(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),Kd={key:0,class:"fox-tour__content"},Wd={key:0,class:"fox-tour__content-top"},Yd={class:"fox-tour__content-inner"},Gd={class:"fox-tour__content-bottom"},Ud={class:"fox-tour__content-bottom-init"},Xd={class:"fox-tour__content-bottom-operate"},Zd={key:1,class:"fox-tour__content fox-tour__content-tile"},Jd={class:"fox-tour__content-inner"};function Qd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Kd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Wd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Yd,l.toDisplayString(f.content),1),l.createElementVNode("div",Gd,[l.createElementVNode("div",Ud,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Xd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Zd,[l.createElementVNode("div",Jd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const _l=_e(Hd,[["render",Qd]]),Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class eh{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Rl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Fo(e,t){return new eh(e,t)}var Ro;const Kn=typeof window<"u";Kn&&((Ro=window?.navigator)!=null&&Ro.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let gt=[];const Ao=e=>{const t=e;t.key==="Escape"&&gt.forEach(o=>o(t))},th=e=>{l.onMounted(()=>{gt.length===0&&document.addEventListener("keydown",Ao),Kn&&gt.push(e)}),l.onBeforeUnmount(()=>{gt=gt.filter(t=>t!==e),gt.length===0&&Kn&&document.removeEventListener("keydown",Ao)})},Vn="fox-focus-trap.focus-after-trapped",On="fox-focus-trap.focus-after-released",nh="fox-focus-trap.focusout-prevented",Lo={cancelable:!0,bubbles:!1},lh={cancelable:!0,bubbles:!1},Mo="foxFocusAfterTrapped",Bo="foxFocusAfterReleased",oh=Symbol("foxFocusTrap"),ql=l.ref(),pn=l.ref(0),jl=l.ref(0);let qt=0;const Qr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},rh=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},_o=(e,t)=>{for(const o of e)if(!rh(o,t))return o},ah=e=>{const t=Qr(e),o=_o(t,e),n=_o(t.reverse(),e);return[o,n]},ih=e=>e instanceof HTMLInputElement&&"select"in e,lt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&ih(e)&&t&&e.select()}};function qo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const sh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=qo(e,n),e.unshift(n)},remove:n=>{e=qo(e,n),e[0]?.resume?.()}}},uh=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(lt(n,t),document.activeElement!==o)return},jo=sh(),ch=()=>pn.value>jl.value,jt=()=>{ql.value="pointer",pn.value=window.performance.now()},zo=()=>{ql.value="keyboard",pn.value=window.performance.now()},fh=()=>(l.onMounted(()=>{qt===0&&(document.addEventListener("mousedown",jt),document.addEventListener("touchstart",jt),document.addEventListener("keydown",zo)),qt++}),l.onBeforeUnmount(()=>{qt--,qt<=0&&(document.removeEventListener("mousedown",jt),document.removeEventListener("touchstart",jt),document.removeEventListener("keydown",zo))}),{focusReason:ql,lastUserFocusTimestamp:pn,lastAutomatedFocusTimestamp:jl}),zt=e=>new CustomEvent(nh,{...lh,detail:e}),{componentName:am,create:dh,scope:im}=ie("focus-trap"),hh={loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},mh=dh({props:hh,emits:[Mo,Bo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=fh();th(h=>{se(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:m,altKey:S,ctrlKey:b,metaKey:$,currentTarget:j,shiftKey:L}=h,{loop:M}=e,O=m==="Tab"&&!S&&!b&&!$,R=document.activeElement;if(O&&R){const N=j,[E,x]=ah(N);if(E&&x){if(!L&&R===x){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),M&&lt(E,!0))}else if(L&&[E,N].includes(R)){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),M&&lt(x,!0))}}else if(R===N){const C=zt({focusReason:i.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(oh,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const f=h=>{o(Mo,h)},c=h=>o(Bo,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,$=S&&m.contains(S);se(e.trapped)||b&&m.contains(b)||(r=b),$&&o("focusin",h),!s.paused&&se(e.trapped)&&($?a=S:lt(a,!0))},y=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&se(e.trapped)){const S=h.relatedTarget;!Un(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const b=zt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||lt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){jo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Vn,Lo);h.addEventListener(Vn,f),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;Uo($)||(lt($),document.activeElement!==$&&($="first")),$==="first"&&uh(Qr(h),!0),(document.activeElement===m||$==="container")&&lt(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vn,f);const m=new CustomEvent(On,{...Lo,detail:{focusReason:i.value}});h.addEventListener(On,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!ch())&&lt(r??document.body,!0),h.removeEventListener(On,f),jo.remove(s)}}return l.onMounted(()=>{se(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{se(h)?V():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:gh,create:ph,scope:sm}=ie("floating-window"),vh=Symbol.for("InnerPageScopeKey"),yh=Symbol.for("PageWrapperKey"),bh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},wh=ph({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:mh},props:{...bh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=gh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!R.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return it(i.value)?T.left="auto":T.left=Oe(i.value),it(s.value)?T.top="auto":T.top=Oe(s.value),it(u.value)?T.right="auto":T.right=Oe(u.value),it(f.value)?T.bottom="auto":T.bottom=Oe(f.value),it(e.zIndex)||(T["z-index"]=Oe(e.zIndex)),it(M.value)||(T.height=M.value),it(O.value)||(T.width=O.value),T}),y=l.computed(()=>e.closeIcon??ke.Close),V=l.computed(()=>e.collapseIcon??ke.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??ke.ArrowRight:e.expandIcon??ke.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),$=l.ref(),j=l.ref(null),L=l.ref(null),M=l.computed(()=>Oe(e.height)||""),O=l.computed(()=>Oe(e.width)||""),R=l.ref(se(e.collapse)),N=(T,K=!0)=>{R.value!==T&&(R.value=T,T?w():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{x()},x=T=>{T=T??!R.value,N(T)};l.provide(vh,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(yh,q);const C=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),X=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),U=l.ref(R.value),ee=l.computed({set:T=>{U.value=T},get:()=>n.value===!1?!1:U.value});let re=null;const I=()=>{typeof re=="function"&&(re(),re=null)},w=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,re=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),re=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},P=()=>{i.value=null,s.value=null,u.value=null,f.value=null},p={x:0,y:0},B=Fo(T=>{if(!$.value)return;const K=$.value;if(P(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,f.value=Q-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=f.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(K.offsetLeft+K.offsetWidth),f.value=le-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=f.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!$.value)return;const K=$.value;P(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Oe(i.value),K.style.top=Oe(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,f.value=p.y-T.y,K.style.left=Oe(i.value),K.style.bottom=Oe(f.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,f.value=p.y-T.y,K.style.right=Oe(u.value),K.style.bottom=Oe(f.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Oe(u.value),K.style.top=Oe(s.value))}),A={x:0,y:0},Z=Fo(T=>{k.value&&(A.x=k.value.offsetLeft,A.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=A.y+T.y;W.value=`${K}px`}),te=()=>{if($.value){const T=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=T}};return l.onMounted(()=>{if(e.draggable&&$.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),L.value&&T.push(L.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Z.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Z.close()}),{classes:c,styles:d,isShow:a,closeIcon:y,onClose:C,dialogRef:$,headerRef:j,onClickToggle:E,collapseIcon:V,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:X,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),xh={ref:"headerRef",class:"fox-floating-window__header"},Sh={class:"fox-floating-window__title"},Th={class:"fox-floating-window__tools"},Ch={class:"fox-floating-window__body"},$h={class:"fox-floating-window__fixednav__text"};function Nh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",xh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",Sh,l.toDisplayString(e.title),1),l.createElementVNode("div",Th,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",Ch,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",$h,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=_e(wh,[["render",Nh]]);function Eh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return mr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:um,create:kh,scope:cm}=ie("domain-provider"),Hl=kh(Eh()),Ih={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Vh(e,t){return{inheritAttrs:!1,props:Ih,setup(o,{slots:n}){if(dt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,V)=>{if(c===null){a.set(y,{visible:null,callback:V});return}r.has(y)&&c.unobserve(y),r.set(y,{visible:null,callback:V}),c.observe(y)},s=y=>{if(c===null){a.delete(y);return}r.has(y)&&(r.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;fi({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(y,V,g)=>{c=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch($){console.error($)}}},{root:y,rootMargin:V,threshold:g}),a.forEach((h,m)=>{r.set(m,h),c?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,V])=>{if(V||!y||c)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:fm,create:Oh,scope:dm}=ie("rolling-provider"),Kl=Oh(Vh()),Ph=[Jn,el,tl,nl,ll,Te,ol,rl,Mt,al,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,mn,vl,yl,bl,wl,xl,Sl,Tl,$l,Nl,El,kl,Il,gn,Vl,Ol,Pl,Dl,Al,Rt,hn,Ll,Ml,Bl,_l,zl,Hl,Kl],Dh=new ja(Ph,[Ka],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>v.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>v.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>v.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>v.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>v.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>v.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>v.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>v.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>v.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>v.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>v.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>v.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>v.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>v.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>v.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>v.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>v.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload});exports.AutocompleteItem=ml;exports.Broadcast=Xn;exports.BroadcastKey=ye;exports.CascaderItem=hl;exports.CheckboxItem=bl;exports.Content=nl;exports.DataItemsKey=mt;exports.DateItem=sl;exports.DateUtils=Le;exports.DialogItem=Il;exports.Domain=ln;exports.DomainKey=Ae;exports.DomainProvider=Hl;exports.FloatingWindow=zl;exports.FooterBar=tl;exports.FoxAutocompleteItem=ml;exports.FoxCascaderItem=hl;exports.FoxCheckboxItem=bl;exports.FoxContent=nl;exports.FoxDateItem=sl;exports.FoxDialogItem=Il;exports.FoxDomainProvider=Hl;exports.FoxFloatingWindow=zl;exports.FoxFooterBar=tl;exports.FoxGroup=ll;exports.FoxGroupSetting=Tl;exports.FoxHeaderBar=el;exports.FoxHintText=Mt;exports.FoxIndicator=Ll;exports.FoxInfiniteLoading=Dl;exports.FoxInputItem=al;exports.FoxInputNumberItem=dl;exports.FoxItem=Te;exports.FoxMapping=Rt;exports.FoxMoneyItem=fl;exports.FoxMoreButton=Bl;exports.FoxOverLay=gn;exports.FoxPage=Jn;exports.FoxPopup=Vl;exports.FoxPrice=hn;exports.FoxPullRefresh=Al;exports.FoxRadioItem=yl;exports.FoxRateItem=wl;exports.FoxRollingProvider=Kl;exports.FoxRowItem=rl;exports.FoxSearchBar=Pl;exports.FoxSelectItem=il;exports.FoxSlotItem=ol;exports.FoxStepsBar=kl;exports.FoxSwitchItem=xl;exports.FoxTableItem=vl;exports.FoxTableMappingColumn=gl;exports.FoxTableRadioColumn=pl;exports.FoxTableSetting=mn;exports.FoxTabsBar=$l;exports.FoxTabsContainer=Nl;exports.FoxTabsPane=El;exports.FoxText=Ml;exports.FoxTimeItem=ul;exports.FoxTimeSelectItem=cl;exports.FoxToast=Ol;exports.FoxTour=_l;exports.FoxTreeSelectItem=Sl;exports.Group=ll;exports.GroupSetting=Tl;exports.HeaderBar=el;exports.HintText=Mt;exports.Indicator=Ll;exports.InfiniteLoading=Dl;exports.InputItem=al;exports.InputNumberItem=dl;exports.Item=Te;exports.Mapping=Rt;exports.MoneyItem=fl;exports.MoreButton=Bl;exports.OverLay=gn;exports.Page=Jn;exports.Popup=Vl;exports.Price=hn;exports.PriorityPolicy=Me;exports.PullRefresh=Al;exports.RadioItem=yl;exports.RateItem=wl;exports.RollingProvider=Kl;exports.RowItem=rl;exports.SearchBar=Pl;exports.SelectItem=il;exports.SlotItem=ol;exports.StepsBar=kl;exports.SwitchItem=xl;exports.TableItem=vl;exports.TableMappingColumn=gl;exports.TableRadioColumn=pl;exports.TableSetting=mn;exports.TabsBar=$l;exports.TabsContainer=Nl;exports.TabsPane=El;exports.Text=Ml;exports.TimeItem=ul;exports.TimeSelectItem=cl;exports.Toast=Ol;exports.Tour=_l;exports.TreeSelectItem=Sl;exports.UniqueID=kr;exports.ValidateSchema=fr;exports.ValidateSchemaKey=ze;exports.cancelRaf=aa;exports.clearNonNumber=ya;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=en;exports.createValidateSchema=tn;exports.debounce=Ot;exports.debounceRef=Oa;exports.decimalLength=rr;exports.default=Dh;exports.defineBroadcast=Sa;exports.defineConfigDomain=mr;exports.defineDataItem=pr;exports.defineDomain=Zn;exports.defineItem=Ce;exports.definePageState=yr;exports.defineSimpleItem=vr;exports.deleteGlobalValidator=Ea;exports.disabledProperty=Re;exports.divide=Yn;exports.excludeProps=Ie;exports.extend=ft;exports.floatData=xa;exports.getGlobalValidateCheckEvents=sr;exports.getGlobalValidateResetEvents=cr;exports.getPageContentAreaHeight=Yt;exports.getPageContentAreaWidth=Gt;exports.getPageFooterAreaHeight=Dt;exports.getPageHeaderAreaHeight=Pt;exports.getRootDomain=pt;exports.hasSymbol=Jo;exports.includeProps=ar;exports.indexOf=ba;exports.installRules=gr;exports.integerLength=or;exports.isArray=sa;exports.isArrayLike=er;exports.isBrowser=dt;exports.isDate=fa;exports.isESModule=ha;exports.isEmptyString=ge;exports.isEqual=Ue;exports.isFunction=Ln;exports.isHidden=Qt;exports.isInnerPage=Fa;exports.isMap=ua;exports.isNil=Un;exports.isNumberString=lr;exports.isObject=Xe;exports.isPlainObject=Mn;exports.isPromise=Xo;exports.isRegExp=nr;exports.isSet=ca;exports.isString=Uo;exports.isSubPage=Ra;exports.isSymbol=da;exports.isTouch=Fl;exports.isWindow=Qo;exports.lastIndexOf=wa;exports.makeArray=va;exports.merge=tr;exports.multiply=Wo;exports.negate=Yo;exports.nextTick=ga;exports.numberFormat=Zt;exports.objectToString=Zo;exports.once=Pa;exports.overrideGlobalValidateHandler=$a;exports.property=De;exports.raf=Gn;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=ka;exports.setGlobalValidateHandler=Ca;exports.setGlobalValidateMessages=Va;exports.setGlobalValidateResetEvents=Ia;exports.setGlobalValidator=Na;exports.throttle=hr;exports.toBoolean=se;exports.toNumber=xe;exports.toPadding=Ke;exports.toPx=de;exports.toPxDesc=Ee;exports.toTypeString=Jt;exports.toValue=he;exports.tryTimes=nn;exports.typeOf=Kt;exports.unNumberFormat=Go;exports.updatePageState=_n;exports.useBroadcast=kt;exports.useDomain=Ze;exports.useExpose=$e;exports.useInnerSize=Qn;exports.usePageState=on;exports.usePosition=Nr;exports.useRawTouch=Rl;exports.useRect=Jr;exports.useSize=rn;exports.useTouch=wd;exports.valueLength=Lt;