@fox-js/foxui-pc 4.0.1-117 → 4.0.1-118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,l,Qe,b,Te,Re){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon May 27 2024 10:05:41 GMT+0800 (中国标准时间)
3
- */const Ft=window,Wr=typeof window<"u";function Yr(){return typeof Ft<"u"?Ft.requestAnimationFrame||Ft.webkitRequestAnimationFrame||function(e){Ft.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Gr(e){Wr?cancelAnimationFrame(e):clearTimeout(e)}const _l=Yr();/*!
1
+ (function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,l,tt,v,$e,Le){"use strict";/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Thu Jul 25 2024 13:35:32 GMT+0800 (中国标准时间)
3
+ */const Ft=window,Yr=typeof window<"u";function Gr(){return typeof Ft<"u"?Ft.requestAnimationFrame||Ft.webkitRequestAnimationFrame||function(e){Ft.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ur(e){Yr?cancelAnimationFrame(e):clearTimeout(e)}const ql=Gr();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function Dt(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=$e(e),t=$e(t),[e,t]=fn($e(e),$e(t)),o==1&&(n==1?e=cn(e):t=cn(t));let r=ql(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(cn(r)):$e(r)}function cn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return ql(t,a)}function $e(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 fn(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 ql(e,t){[e,t]=fn(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 me=(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))(me||{});function mt(e,t=0,o=me.HALF_EVEN){if(o===me.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],s=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)+s,u=mt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Pl(r[1],a,n,o)?(n?"-":"")+dn(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");s=r[1].substring(0,t);let i=r[1].substring(t);return i&&Pl(i,s,n,o)&&(s=dn(s),s.length>t)?(n?"-":"")+dn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function Pl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!o&&n===me.FLOOR||o&&n===me.CEILING)return!1;if(n===me.UP||o&&n===me.FLOOR||!o&&n===me.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 me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function dn(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 hn(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=pt(e),t=pt(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=pt(e.replace(".","")),t=pt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let I=t.length-1;I>=f&&I>=0;I--)u[I]>-1&&u[I]<e.length&&(v+=parseInt(e[u[I]--])*parseInt(t[I]));v+=i,i=Math.floor(v/10),c=v%10+c,f--}return c=pt(Ur(c,a)),o==1&&(c="-"+c),c}function Ur(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 pt(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 gn(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=$e(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=$e(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=$e(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=$e(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=$e(e.replace(".","")))}let a=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=f,i="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Dt(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+$e(mt(i,o-2))}function mn(e,t){return e=e.toString(),t=t.toString(),t=pn(t),Dt(e,t)}function pn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function jl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),zl(e),zl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=mn(e,hn(t,mt(gn(e,t),0,me.FLOOR)));return o+n}function zl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Hl(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]=fn(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 ce{value;static RoundingModes=me;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=$e(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+$e(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=ce.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=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var s="",i=a;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<a-o&&i>=0?n:"")+s;return(r?"-":"")+s+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return mt(t,o,n)}round(t=0,o=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Dt(t,o)}add(t){return new ce(Dt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),mn(t,o)}subtract(t){return new ce(mn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),hn(t,o)}multiply(t){return new ce(hn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),gn(t,o,n)}divide(t,o){return new ce(gn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),jl(t,o)}modulus(t){return new ce(jl(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Hl(t,o)}compareTo(t){return Hl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),pn(t)}negate(){return new ce(pn(this.value))}}function Kl(e,t){return ce.multiply(`${e}`,`${t}`)}function yn(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function bn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Wl(e){return ce.negate(e)}function Rt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let i=a,u="",f=a.indexOf(".");f!=-1&&(i=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="",v=i.split("").reverse();for(let I=0;I<v.length;I++)d+=v[I]+((I+1)%n==0&&I+1!=v.length?r:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function Yl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const vn=_l,Xr=Array.isArray,Zr=e=>At(e)==="[object Map]",Jr=e=>At(e)==="[object Set]",Qr=e=>e instanceof Date,wn=e=>typeof e=="function",Gl=e=>typeof e=="string",ea=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",Ul=e=>He(e)&&wn(e.then)&&wn(e.catch),Xl=Object.prototype.toString,At=e=>Xl.call(e),Sn=e=>At(e)==="[object Object]",Zl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ta(e){return e.__esModule||Zl&&e[Symbol.toStringTag]==="Module"}const na=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...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 s in a){let i=t[s],u=a[s];if(i!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=et(r,f,u)}else u!==void 0&&(t[s]=u)}}return t}function xn(e,t,o=!1){if(!o)et(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Sn(s))continue;a=xn(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Sn(s))continue;a=xn(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const Tn=na?Promise.resolve():null;function la(e,...t){Tn!==null?t&&t.length>0?Tn.then(()=>{e(t)}):Tn.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 be(e){return typeof e=="number"?e:Number(e)}const oa={"[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 Lt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):oa[o]||"object"}function Jl(e){return e&&typeof e=="object"&&"setInterval"in e}function Mt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Ql(e){let t=!!e&&"length"in e&&e.length,o=Lt(e);return o==="function"||Jl(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function eo(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 ra(e,t=[]){let o=t;return e!=null&&(Ql(Object(e))?eo(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ke(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Lt(e),n=Lt(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 s=0;s<r.length;s++){let i=r[s],u=e[i],f=t[i];if(!Ke(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],s=t[r];if(!Ke(a,s))return!1}return!0}return!1}const tt=typeof window<"u";function $n(e){return e==null}function to(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function no(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 lo(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 oo(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 ro(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 aa(e,t=!0,o=!0){t?e=ro(e,".",/\./g):e=e.replace(/\./g,""),o?e=ro(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ia(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ke(e,o))return!0}):t.indexOf(e)}function sa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ke(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function yt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ao(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ce(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 ua=(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},pe=Symbol.for("BroadcastKey");class Cn{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="*"):to(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 s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&a.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(t,o){this.callbacks.set(t,o)}}function Bt(e,t,o,n){const r=new Cn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ca(e,t,o){const n=o;if(n[pe])return n[pe];const r=l.inject(pe,null),a=new Cn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[pe]=a,l.provide(pe,a),l.onUnmounted(()=>{a.destroy(),n[pe]=void 0}),a}function bt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[pe]??l.inject(pe,null):l.inject(pe,null)}const nt=e=>e.default??e;class fa{error(t,o){const n=o,r=o||l.hasInjectionContext()?bt(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()?bt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?bt(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()?bt(n):null,s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let vt=new fa;function da(e){vt=e}function ha(e){vt?Object.assign(vt,e):vt=e}function ga(e,t){nt(Qe).setValidator(e,t)}function ma(e){nt(Qe).deleteValidator(e)}let io=["blur","clear"];function pa(e){io=e}function so(){return io}let uo=["focus","change","setValue"];function ya(e){uo=e}function co(){return uo}function ba(e){nt(Qe).messages(e)}function wt(...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 Be=Symbol("ValidateSchemaKey");class fo{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(wt(this.attrRules,this.rules)),n=[];for(let a in t){let s=t[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let u={type:a};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};n.push(u)}}this.attrRules=_t(n);const r=wt(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=vt;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?nt(Qe).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?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return nt(Qe).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=wt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=wt(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=wt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),s={[`${n}`]:a},i=nt(Qe),u=new i(r),f=this.proxy??s;return u.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function qt(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 fo(t,o,e)}const Pt=Symbol.for("EventEmitterKey");class ho{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 St(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function go(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function va(e,t){const o=St((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function wa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function jt(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const f=e();if(i++,f){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(i++,f){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const De=Symbol("DomainKey"),at=Symbol("DataItemsKey");class zt{_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 Sa=new zt;function it(){return Sa}function We(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[De]??l.inject(De,null):l.inject(De,null)}const Nn=Symbol("OriginalDateKey");function En(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(De,null);s===null&&(s=it());const i=e||t.prop||t.name;let u=new zt(i);u.parent=s;const f=I=>{a[Nn]||v(I),u?.set("modelValue",I)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Nn]??null,v=I=>{const g={};et(!0,g,l.toRaw(I)),a[Nn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,I=>{u?.merge(I,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[De]=u,l.provide(De,u),r!==null){const I=l.inject(pe,null),g=Bt(a,I,i,n);u.broadcast=g,a[pe]=g,l.provide(pe,g),a.broadcast=($,w,...E)=>Reflect.apply(g.emit,g,[$,w,...E]);const h=l.inject(Be,null),m=qt(a,h,{componentName:""});u.validateSchema=m,a[Be]=m,l.provide(Be,m),a[at]=new Map,a.validate=($=!0)=>{const w=[];let E=null;const q={deep:!1};if($===!0)E={name:"*"};else if(Array.isArray($)&&$.length>0){const _=$;E={name:A=>A?_.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const _=$;if(Object.assign(q,_),Array.isArray(_.include)&&_.include.length>0){const A=_.include;E={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const A=_.exclude;E={name:L=>L?A.indexOf(L)===-1:!1}}else E={name:"*"}}if(E){const _=g?.emitToChildren(E,"validate",q);_&&Reflect.apply([].push,w,_)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(_=>{let A=[];return _.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,E=!1)=>{if(E===!0){Reflect.ownKeys($).forEach(_=>{let A=String(_);const L={componentName:"",fieldName:A,pureDataValidate:!0};if(u){const M=yo(u,A,L,g,m);a[at].set(A,M);const k=$[A];k&&M.validateSchema.setRule(k)}});return}if(w){const q=Reflect.ownKeys($),_={name:A=>q.includes(A)};g?.emitToChildren(_,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const E=$;w={name:q=>q?E.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const E=$;if(Array.isArray(E.include)&&E.include.length>0){const q=E.include;w={name:_=>_?q.indexOf(_)!==-1:!1}}else if(Array.isArray(E.exclude)&&E.exclude.length>0){const q=E.exclude;w={name:_=>_?q.indexOf(_)===-1:!1}}else w={name:"*"}}w&&g?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=c();if(!w)return;const E={};if(et(!0,E,d()??{}),Array.isArray($))$.forEach(q=>{w[q]=E[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(_=>{w[_]=E[_]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(E).forEach(_=>{q.includes(_)||(w[_]=E[_])})}else Object.assign(w,E);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===i?f($):g?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[Be]=void 0,l.provide(Be,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[pe]=void 0,l.provide(pe,null)),u?.destroy(),a[De]=void 0,l.provide(De,null),a[at]&&(a[at].clear(),a[at]=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 mo(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(De,null);a===null&&(a=it());const s=e||t.prop||t.name;let i=new zt(s);return i.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{i?.merge(u,o)},{immediate:!0}):i.merge(t,o),r[De]=i,l.provide(De,i),l.onUnmounted(()=>{i?.destroy(),r[De]=void 0,l.provide(De,null),i=null,r=null}),i}function po(e,t,o){const r=We(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Se(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(pe,null);let i=Bt(r,s,a,o);r[pe]=i,l.provide(pe,i),r.broadcast=(g,h,...m)=>i?Reflect.apply(i.emit,i,[g,h,...m]):null;const u=l.inject(Be,null);e.fieldName=e.fieldName??a;let f=qt(r,u,e);r[Be]=f,l.provide(Be,f),po(r,f,a),r.validate=(g=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let m=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,m=!0;else if(g&&typeof g=="object"){const w=g,E=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,_=w.ignoreHidden??!0;E===!0&&e.disabled===!0||q===!0&&e.readonly===!0||_===!0&&Mt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),m=w.deep??!1}else typeof g=="boolean"&&(m=g),$=!0;if($){const w=f?.validate();h.push(w)}if(m){let w=null;const E={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;w={name:_=>_?q.indexOf(_)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(Object.assign(E,q),Array.isArray(q.include)&&q.include.length>0){const _=q.include;w={name:A=>A?_.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const _=q.exclude;w={name:A=>A?_.indexOf(A)===-1:!1}}else w={name:"*"}}if(w&&i){const q=i.emitToChildren(w,"validate",E);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let E=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(E=[...E,...q.errors])}),E.length>0?{pass:!1,errors:E}:{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&&i){const $={name:w=>Reflect.ownKeys(g).includes(w)};i.emitToChildren($,"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:$=>$?m.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let c=new ho(r);r[Pt]=c;const d=St((g="validate")=>{f&&(g==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:so()).forEach(g=>{c&&c.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:co()).forEach(g=>{c&&c.on(g,h=>{d("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[pe]=void 0,l.provide(pe,null),i=null,f?.destroy(),r[Be]=void 0,l.provide(Be,null),f=null,c?.destroy(),r[Pt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,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 yo(e,t,o,n,r){const a={},s=t??"",i={getValue(){const c=e.getForSelf("modelValue");return c?c[s]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,s):!1}};o.fieldName=s,o.validateHandler={getValue(c){return i.getValue()}};let u=qt({},r,o);a.validate=(c=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,I=!1;if(Array.isArray(c)&&c.indexOf(s)!==-1)I=!0,v=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),I=!0,v=g.deep??!1}else typeof c=="boolean"&&(v=c),I=!0;if(I&&u){const g=u.validate();d.push(g)}if(v){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:$=>$?m.indexOf($)!==-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 $=m.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;g={name:w=>w?$.indexOf(w)===-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[s];d&&u?.setRule(d)};let f=Bt(null,n,s,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function bo(){let t=l.getCurrentInstance()?.proxy,o=new ho(t);return t[Pt]=o,l.onUnmounted(()=>{o?.destroy(),t[Pt]=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 Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(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(tt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(a=Number(s.substring(0,i)))}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 Xe="PageStateKey";function Pe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function kn(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=fe(o.headerHeight??t.headerHeight??-1),e.headerPadding=Pe(o.headerPadding??t.headerPadding),e.footerHeight=fe(o.footerHeight??t.footerHeight??-1),e.footerPadding=Pe(o.footerPadding??t.footerPadding),e.contentPadding=Pe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(s,a)-fe(i,a),e.width=fe(o.width??t.width??0,r)}}function vo(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=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;kn(n,a,t,!0,s,i,u,f);const c=l.reactive(n),d=e.getForParent(Xe);d&&(n.height=Kt(e,d),n.width=Wt(e,d),l.watch([()=>Kt(e,d),()=>Wt(e,d)],([I,g])=>{c.height=I,c.width=g}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([I,g,h=-1,m=-1,$=0,w=0])=>{kn(c,g,t,v,h,m,$,w)}),e.set(Xe,c),c}function Ht(e){return e.get(Xe)}function xt(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Tt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Kt(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=xt(e,t),n=Tt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Wt(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function xa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ta(e){return!!e.getForParent(Xe)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function In(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,o=1,n){const r=We();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let i=a.length-1;i>=0;i--){const u=a[i];if(In(u,n))return u}const s=e.value;return In(s,n)?s:null}):l.computed(()=>{const a=e.value;return In(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(o){return se(o)})}function Oe(e){return ke(e,"disabled",0,function(o){return se(o)})}function de(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,n&&n("setValue",u))}else i!==s.value&&(s.value=i,n&&n("setValue",i))}),s}const wo=new Map,Yt=new Map;let On=null;function $a(e){On=e}function So(e,t,o){if(o){let n=Yt.get(o);n||(n=new Map,Yt.set(o,n)),n.set(e,t)}else wo.set(e,t)}function _e(e,t,o){!o&&On&&(o=On(e)??void 0);let n=null;if(o){let r=Yt.get(o);r&&(n=r.get(t))}return n||(n=wo.get(t)),n}function Ca(e,t){for(let o in e){const n=e[o];So(o,n,t)}}function Na(e){Yt.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function ka(e=0,t=0){if(tt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-fe(e,n)-fe(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ia{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=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=go(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,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=et({},Ea(),t.safeAreaInset),s=ka(n,r),i=et({},s.pageLayout,t.pageLayout);o=o??it(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){$a(t)}setAPI(t,o,n){So(t,o,n)}getAPI(t,o,n){return _e(t,o,n)}batchSetAPI(t,o){Ca(t,o)}clearScopeAPI(t){Na(t)}getRootDomain(){return it()}}const Oa=[b.ElAffix,b.ElAlert,b.ElAutocomplete,b.ElAutoResizer,b.ElAvatar,b.ElBacktop,b.ElBadge,b.ElBreadcrumb,b.ElBreadcrumbItem,b.ElButton,b.ElButtonGroup,b.ElCalendar,b.ElCard,b.ElCarousel,b.ElCarouselItem,b.ElCascader,b.ElCascaderPanel,b.ElCheckTag,b.ElCheckbox,b.ElCheckboxButton,b.ElCheckboxGroup,b.ElCol,b.ElCollapse,b.ElCollapseItem,b.ElCollapseTransition,b.ElColorPicker,b.ElConfigProvider,b.ElContainer,b.ElAside,b.ElFooter,b.ElHeader,b.ElMain,b.ElDatePicker,b.ElDescriptions,b.ElDescriptionsItem,b.ElDialog,b.ElDivider,b.ElDrawer,b.ElDropdown,b.ElDropdownItem,b.ElDropdownMenu,b.ElEmpty,b.ElForm,b.ElFormItem,b.ElIcon,b.ElImage,b.ElImageViewer,b.ElInput,b.ElInputNumber,b.ElLink,b.ElMenu,b.ElSubMenu,b.ElMenuItem,b.ElMenuItemGroup,b.ElPageHeader,b.ElPagination,b.ElPopconfirm,b.ElPopover,b.ElPopper,b.ElProgress,b.ElRadio,b.ElRadioButton,b.ElRadioGroup,b.ElRate,b.ElResult,b.ElRow,b.ElScrollbar,b.ElSelect,b.ElOption,b.ElOptionGroup,b.ElSelectV2,b.ElSkeleton,b.ElSkeletonItem,b.ElSlider,b.ElSpace,b.ElSteps,b.ElStep,b.ElSwitch,b.ElTable,b.ElTableColumn,b.ElTableV2,b.ElTabs,b.ElTabPane,b.ElTag,b.ElTimePicker,b.ElTimeSelect,b.ElTimeline,b.ElTimelineItem,b.ElTooltip,b.ElTransfer,b.ElTree,b.ElTreeSelect,b.ElTreeV2,b.ElUpload],Va=[b.ElInfiniteScroll,b.ElLoading,b.ElMessage,b.ElMessageBox,b.ElNotification,b.ElPopoverDirective],Fa=e=>{Oa.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Va.forEach(t=>{e.use(t)})};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 xe(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const ve={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}},Ee={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}},xo={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}},To={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}},$o=[];for(const e in To)$o.push(e);const Da=Symbol.for("InnerPageScopeKey"),Ra={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}},Aa=(e,t)=>({inheritAttrs:!0,props:{...ve,...xo,...Ra},setup(o,{slots:n}){const r=En(o.name,o),a=l.inject(Da,!1);if(r){const c=vo(r,o);xe({getPageContentHeight:()=>Kt(r,c),getPageContentWidth:()=>Wt(r,c),getPageHeaderHeight:()=>xt(r,c),getPageFooterHeight:()=>Tt(r,c)}),c&&a&&(c.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[v,I])=>{if(c&&v){const g=l.toRaw(v),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),f(h)}if(d&&I){const g=l.toRaw(I),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),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:s.value,style:i.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:La,create:Ma,scope:yh}=ie("page"),Vn=Ma(Aa(La));function Gt(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Fn(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")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-s}}const Ba=(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 s=We(),i=s?Ht(s):null;i&&(i.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?fe(r.height):null,v=l.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const x=Pe(r.padding??i.headerPadding);return Object.assign(N,x),d&&(i.headerHeight=d),i.headerHeight>0&&(N.height=i.headerHeight),N.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(x.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(d&&(N.height=d),r.padding){const x=Pe(r.padding);Object.assign(N,x)}return N}),I=l.ref(null),g=()=>{if(i&&I.value&&!Mt(I.value)){if(!n){const N=Gt(I.value);i.headerAllHeight=N.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(jt(g,50,5,50,!0),window.ResizeObserver&&I.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(I.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const N={};return v.value.height!==null&&v.value.height!==void 0&&(N.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(N.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(N.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(N.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(N.paddingBottom=`${v.value.bottom}px`),N}),$=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function E(){a.emit("click-title")}function q(){a.emit("click-right")}function _(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const N=[];if(a.slots.left)N.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);N.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);N.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:w},[r.leftText]);N.push(x)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__left"},N)},L=()=>{if(!r.rightShow)return null;const N=[];if(a.slots.right)N.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:_},[r.rightText]);N.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);N.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);N.push(x)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__right"},N)},M=()=>{if(!r.titleShow)return null;const N=[],x=a.slots.default?a.slots.default():null;if(x)N.push(x);else{if(r.title){const z=l.h("view",{class:"title-text"},[r.title]);N.push(z)}if(a.slots.titleIcon){const z=l.h("view",{class:"title-icon",onClick:E},[a.slots.titleIcon()]);N.push(z)}else if(r.titleIcon){const z=l.h("view",{class:"title-icon",onClick:E},[l.h(r.titleIcon)]);N.push(z)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__title"},N)},k=()=>{const N=[],x=a.slots.bottom?a.slots.bottom():null;return x&&N.push(x),N.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!$.value)return null;const N=[];if(a.slots.all)N.push(a.slots.all());else{const z=[],C=A();C&&z.push(C);const O=M();O&&z.push(O);const D=L();if(D&&z.push(D),z.length>0){const Y=l.h("view",{class:c.value},z);N.push(Y)}const G=k();G&&N.push(G)}if(N.length===0)return null;const x={class:f.value,style:m.value,ref:I};return l.h("view",x,N)}}}),{componentName:_a,create:qa,scope:Pa}=ie("header-bar"),Dn=qa(Ba(_a,Pa,Te.ArrowLeft));function ja(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=We(),s=a?Ht(a):null,i=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?fe(n.height):null,f=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=Pe(n.padding??s.footerPadding);return Object.assign(g,h),u&&(s.footerHeight=u),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.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=Pe(n.padding);Object.assign(g,h)}return g}),c=l.ref(null),d=()=>{if(s&&c.value&&!Mt(c.value)){if(!o){const g=Gt(c.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{s&&(jt(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(c.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,v&&(v.disconnect(),v=null))});const I=l.computed(()=>{const g={};return f.value.height!==null&&f.value.height!==void 0&&(g.height=Ne(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(g.paddingTop=Ne(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(g.paddingLeft=Ne(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(g.paddingRight=Ne(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(g.paddingBottom=Ne(f.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:c,class:i.value,style:I.value};return l.h("view",h,g)}}}}const{componentName:za,create:Ha,scope:bh}=ie("footer-bar"),Rn=Ha(ja(za));function Ka(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=We(),r=l.computed(()=>({[e]:!0})),a=n?Ht(n):null,s=l.computed(()=>{const f={};if(n&&a){if(o.padding){const I=Pe(o.padding);Object.assign(a.contentPadding,I)}const c=xt(n,a),d=Tt(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,f.height=v,a.contentPadding.top||c>0){const I=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+I}px`}if(a.contentPadding.bottom||d>0){const I=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+I}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=Pe(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}),i=l.ref(null),u=()=>{if(a&&i.value){const f=Fn(i.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>xt(n),()=>Tt(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Wa,create:Ya,scope:vh}=ie("content"),Ga=Ya(Ka(Wa));function Ua(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 Me=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},An=Me(Ga,[["render",Ua]]),st="GroupStateKey",Co=Symbol.for("GroupScopeKey");function Ut(){return l.inject(Co,!1)}function Xt(e=!0){l.provide(Co,e)}function Xa(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];$n(r)||(e[n]=r)})}function Za(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Xa(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function Ln(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(st);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),s||(s=f.maxItemWidth??-1);const c=fe(a),d=fe(s);i||(i=f.type??"grid");const v=()=>{const I=t===""||t===-1,g=fe(t);let h=be(o);const m=fe(n);if(!I){let E=(g-(h-1)*m)/h;for(;d!==-1&&E>d;)h++,E=(g-(h-1)*m)/h;for(;c!==-1&&h>1&&E<c;)h--,E=(g-(h-1)*m)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==m&&(w.value.gutter=m,$=!0),w.value.type!==i&&(w.value.type=i,$=!0),$&&l.triggerRef(w)};if(r)v();else{const I=++u.passport;setTimeout(()=>{I===u.passport&&v()},50)}}function Zt(e,t=!1){let o;return t?o=e.getForParent(st):o=e.get(st),o.layout}function Jt(e,t=!1){let o;return t?o=e.getForParent(st):o=e.get(st),o.order}function No(e,t=1){if(t==="stretch")return-1;const o=be(t);return o===-1?100:100*o/e}function Qt(e,t,o=1,n=0,r){const a={};let s=0;r?s=fe(r):s=No(t.column,o),s>0&&(a.width=`${s}%`);const i=No(t.column,n);i>0&&(a["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function en(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=be(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=be(n)%t.column;let s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Eo=Symbol("RollingStateKey");function Ja(e){l.provide(Eo,e)}function Qa(){return l.inject(Eo,null)}function Mn(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 ei(e){let t=Mn(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=Mn(o),document.body.removeChild(o)}return t}function ti(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ni={...ve,...xo,...To};function li(e,t,o){return{props:ni,emits:["update:collapse","header-click"],setup(n,r){const a=En(n.name,n,$o),s=Za(a,{type:n.type}),i=Ut();Xt(!0);const u=n.rollingDisplay?Qa():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>i&&a?Zt(a,!0).value:null),v=l.getCurrentInstance(),I=(H,Q=!1)=>{const ee=v?.proxy;ee&&typeof ee.setNameValidateRules=="function"&&ee.setNameValidateRules(H,!0,Q)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,Q],[ee,T])=>{if(H&&ee){const K=l.toRaw(ee),ne=l.toRaw(H),le=ne?Reflect.ownKeys(ne):[];(K?Reflect.ownKeys(K):[]).forEach(oe=>{le.includes(oe)||(ne[oe]=[])}),I(ne)}if(Q&&T){const K=l.toRaw(T),ne=l.toRaw(Q),le=ne?Reflect.ownKeys(ne):[];(K?Reflect.ownKeys(K):[]).forEach(oe=>{le.includes(oe)||(ne[oe]=[])}),I(ne,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=D.value;const Q=i?Jt(a,!0):null;if(d.value&&Q){if(d.value.type==="grid"){const ee=en(Q,d.value,n.span,n.offset);Object.assign(H,ee)}else if(d.value.type==="flow"){const ee=Qt(Q,d.value,n.span,n.offset,n.width);Object.assign(H,ee)}}else if(n.width){const ee=Ne(n.width);H.width=ee}return H}),m=l.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${n.justify}`]:!0,[`${g}--${H}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),$=l.computed(()=>{if(s.layout.value.type==="grid"){let Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const ee=ti(M.value,s.layout.value.column,s.layout.value.gutter);Q=`repeat(${s.layout.value.column}, ${ee})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Q}}}),w=l.toRef(n,"gutter"),E=l.toRef(n,"column"),q=l.computed(()=>i||c.value?!0:se(n.isWrap)),_=[],A=H=>{_.push(H)},L=()=>{let H=_.length;_.splice(0,H)},M=l.ref(-1),k=H=>{const Q=Fn(H).width;Q>0&&Q!==M.value&&(M.value=Q)};Ln(a,M.value,E.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,E,w],([H,Q,ee])=>{s.order.index=0,Ln(a,H,Q,ee,!1,n.minItemWidth,n.maxItemWidth,n.type)});const N=l.computed(()=>G.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),z=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!G.value,"is-collapse":G.value})),C=l.ref(),O=l.ref(),D=l.computed(()=>Y.value||Ne(n.height)||""),G=l.ref(!1),Y=l.ref(""),J=l.ref(!1);let Z=-1;const te=(H,Q=!0)=>{const ee=C.value;if(ee&&G.value!==H){if(Z=Z===-1?ei(ee):Z,J.value=!0,Q)if(ee.style["will-change"]="height",ee.ontransitionend=function(){ee.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",J.value=!1)},H){let T=0;n.collapseHeight?T=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(T=O.value.offsetHeight),Y.value=`${Z}px`,l.nextTick(()=>{Y.value=`${T}px`})}else Y.value=`${Z}px`;else if(H){let T=0;n.collapseHeight?T=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(T=O.value.offsetHeight),Y.value=`${T}px`}else J.value=!1,Y.value=`${Z}px`;G.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{te(H)});const re=H=>{r.emit("header-click",H)},F=()=>{S()},S=H=>{H=H??!G.value,te(H)};xe({toggleCollapse:S,doLayout:()=>{_[0]&&(k(_[0]),Ln(a,M.value,E.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let V=null,y=!0;const W=H=>{if(n.rules){const Q=l.toRaw(n.rules);I(Q)}if(n.pureDataRules){const Q=l.toRaw(n.pureDataRules);I(Q,!0)}if(tt&&(H&&te(se(n.collapse),!1),n.autoLayout&&Array.isArray(_)&&_.length>0)){const Q=_[0];k(Q),window.ResizeObserver&&(V=new window.ResizeObserver(()=>{k(Q)}),V.observe(Q))}},j=()=>{V?.disconnect(),V=null},P=!c.value||u?.acquire();P&&(f.value=c.value?!0:null),l.onMounted(()=>{if(P&&(W(y),y=!1),c.value&&u){let H=null,Q=u.initialHeight;u.observe(C.value,ee=>{if(ee!==f.value)if(ee)f.value=!0,G.value||(Y.value=""),H=setTimeout(()=>{H=null,f.value!==!1&&(W(y),y=!1)},100);else{if(H!==null&&clearTimeout(H),f.value=!1,!G.value)if(y)Y.value=u.initialHeight;else{let T=Mn(C.value);T<=0?Y.value=Q:(Y.value=`${T}px`,Q=Y.value)}y||j()}})}}),l.onUnmounted(()=>{V?.disconnect(),u&&u.unobserve(C.value)});const B=(H="right")=>{const Q=[];if(N.value){const K={class:x.value},ne=l.h("span",K,[N.value]);Q.push(ne)}const ee={class:z.value},T=o(n.collapseIcon,ee);return T&&Q.push(T),Q.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:F},Q):null},U=(H,Q,ee,T)=>{const K={...m.value};return Q===0&&(K[`${g}__first`]=!0),ee>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:A,key:`${Q}`,class:K,style:$.value},H)};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":J.value},style:h.value},[])}s.order.index=0;const H=[];let Q=0;if(r.slots.header){const K={key:`${Q++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},ne=l.h("div",K,[r.slots.header()]);H.push(ne)}else{const K=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const le=B("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 X=l.h("div",le);K.push(X)}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()),!ne&&n.showCollapse){const le=B("right");le&&K.push(le)}if(K.length>0){const le={key:`${Q++}`,ref:O,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},X=l.h("div",le,K);H.push(X)}}L();const ee=r.slots.default?r.slots.default():[],T=s.layout.value.type;if(T==="grid"){const K=U(ee,Q++,0,ee.length);H.push(K)}else if(T==="flow"){const K=U(ee,Q++,0,ee.length);H.push(K)}else for(let K=0;K<ee.length;K++){const ne=ee[K],le=U([ne],Q++,K,ee.length);H.push(le)}if(q.value){const K=n.tag||"div";return l.h(K,{ref:C,prop:n.name,class:{[`${g}`]:!0,"is-collapse":J.value},style:h.value},[H])}else return H}}}}const{componentName:oi,create:ri,scope:ai}=ie("group"),Bn=ri(li(oi,ai,(e,t)=>(e=e??Te.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function ii(e){return e===window}const si=/matrix\((.+)\)/,ko=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ii(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,s=0,i=0,u=0;for(r=t;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=si.exec(f);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(i+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class ui{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 ui,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 Io=new ci,Oo={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:fi,create:di}=ie("price"),hi=di({props:{...Oo},setup(e){const t=l.computed(()=>({[fi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>yt(e.price)==0?"":Rt(e.price,e.decimalLength,!0,be(e.digits),e.separator)),r=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),a=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),gi=["innerHTML"],mi=["innerHTML"];function pi(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,gi)):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,mi)):l.createCommentVNode("",!0)],2)}const tn=Me(hi,[["render",pi]]),{componentName:_n,create:yi}=ie("hint-text"),bi=yi({components:{Price:tn},props:{...Oo,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),s=l.ref(e.placement),i=l.ref(!1),u=l.ref(null),f=(x,z,C,O,D,G)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Z=x.split("-");let te=[];Z[0]==="top"?te=["top","bottom","right","left"]:Z[0]==="bottom"?te=["bottom","top","right","left"]:Z[0]==="left"?te=["left","top","bottom","right"]:Z[0]==="right"&&(te=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},F=[];for(let S=0;S<te.length;S++){const R=te[S];if(F[0]=R,Z[1]&&(F[1]=Z[1]),R==="top"){const V=z.y-G-e.arrowSize-e.offset;if(V>=0){re.top=V;let y=0;Z[1]==="start"?y=z.x:Z[1]==="end"?y=z.x+C-D:y=z.x+C/2-D/2;const W=Y-y-D;W<0?(y+=W,d.value=-W):d.value=0,re.left=y<0?0:y;break}}else if(R==="bottom"){const V=z.y+O+e.arrowSize+e.offset;if(V+G<=J){re.top=V;let y=0;Z[1]==="start"?y=z.x:Z[1]==="end"?y=z.x+C-D:y=z.x+C/2-D/2;const W=Y-y-D;W<0?(y+=W,d.value=-W):d.value=0,re.left=y<0?0:y;break}}else if(R==="left"){const V=z.x-D-e.arrowSize-e.offset;if(V>=0){re.left=V;let y=0;Z[1]==="start"?y=z.y:Z[1]==="end"?y=z.y+O-G:y=z.y+O/2-G/2,re.top=y<0?0:y;break}}else if(R==="right"){const V=z.x+C+e.arrowSize+e.offset;if(V+D<=Y){re.left=V;let y=0;Z[1]==="start"?y=z.y:Z[1]==="end"?y=z.y+O-G:y=z.y+O/2-G/2,re.top=y<0?0:y;break}}}return{bestPlacement:F.join("-"),bestInsetRect:re}},c=(x,z,C=10)=>{if(!tt||z===!1||!x)return;n.value=ko(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:G,bestInsetRect:Y}=f(e.placement,n.value,r.value,a.value,D,O);s.value=G,o.value=Y,i.value=!0},d=l.ref(0),v=St(()=>{c(e.message,e.visible)},10),I=l.ref(e.visible);l.watch(()=>e.visible,x=>{I.value=x});const g=l.computed(()=>I.value&&h.value),h=l.ref(!0),m=St(x=>{const z=x[0];z&&(h.value=z.isIntersecting)},10),$=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([x,z])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Io.watch(e.reference,v),$.observe(e.reference)}),l.onBeforeMount(()=>{Io.unwatch(e.reference,v),$.unobserve(e.reference),$.disconnect()});const w=l.computed(()=>{const x={[_n]:!0};return s.value.startsWith("top")?x["is-top"]=!0:s.value.startsWith("right")?x["is-right"]=!0:s.value.startsWith("bottom")?x["is-bottom"]=!0:s.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}),E=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 z=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${z}px`,i.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}),q=l.computed(()=>{const x=[`${_n}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),_=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),A=l.computed(()=>({[`${_n}__arrow`]:!0})),L=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,s.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):s.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):s.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):s.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):s.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):s.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):s.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):s.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),M=l.computed(()=>g.value&&e.closeOnClick),k=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:u,classes:w,styles:E,textClasses:q,textStyles:_,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:k,onClickOverlay:()=>{I.value=!1,t.emit("update:visible",!1)}}}}),vi=["innerHTML"];function wi(e,t,o,n,r,a){const s=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]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},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(s,{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,vi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const $t=Me(bi,[["render",wi]]);class Vo{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 qn={},Si=new Vo,ut=new Map,nn=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ut.clear()}},xi=e=>{e.unmount=nn;const t=document.getElementById(e.id);if(t){const o=ut.get(e.id);o?e={...qn,...o,...e}:e={...qn,...e},e.transition=!1;const n=l.createVNode($t,e);return l.render(n,t),e.id}},Ti=e=>{e.unmount=nn;let t=e.id??`hinttext_${Si.get()}`;e={...qn,...e},e.id=t,ut.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode($t,e);return l.render(n,o),document.body.appendChild(o),t},$i=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,o={},n=!0){$i(t);const r=o.id;return r&&ut.has(r)?xi({...o,message:t,reference:e}):(n&&nn(),Ti({...o,message:t,reference:e}))},hide(e){nn(e)},install(e){e.config.globalProperties.$hintText=Ve}};function Ci(e,t,o,n=!1){return{inheritAttrs:!0,props:{...ve,...Ee},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;Se({componentName:e,validate:!1},s);const i=We(),u=Ut();Xt(!1);const f=l.computed(()=>u&&i?Zt(i,!1).value:null),c=e,d=l.ref(null),v=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]=!!G.value,T[r.warnMarkClass]=!!O.value,T[r.infoMarkClass]=!!z.value,typeof d.value=="function"){const K=d.value(s);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),I=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ne(r.width));else{const K=u&&i?Jt(i,!1):null;if(f.value&&K){if(f.value.type==="grid"){const ne=en(K,f.value,r.span,r.offset);Object.assign(T,ne)}else if(f.value.type==="flow"){const ne=Qt(K,f.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof I.value=="function"){const K=I.value(s);K&&Object.assign(T,K)}else if(I.value&&typeof I.value=="object"){const K=I.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}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(l.toRef(r,"labelPosition"),"labelPosition",Ae.Near),E=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${E.value}`]:!0})),_=l.computed(()=>({label:!0,[`label--${E.value}`]:!0})),A=ke(l.toRef(r,"labelWidth"),"labelWidth",Ae.Near),L=l.computed(()=>A&&A.value?{width:Ne(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":m.value})),k=l.computed(()=>({content:!0,[r.contentClass]:!0})),N=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({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){I.value=T}});const z=l.computed(()=>r.infoTip||x.infoTip),C=l.computed(()=>r.infoIcon||x.infoIcon),O=l.computed(()=>r.warnTip||x.warnTip),D=l.computed(()=>r.warnIcon||x.warnIcon),G=l.computed(()=>r.errorTip||x.errorTip),Y=l.computed(()=>r.errorIcon||x.errorIcon),J=l.computed(()=>G.value?"error":O.value?"warn":z.value?"info":""),Z=()=>J.value.length>0,te=l.computed(()=>J.value==="error"?G.value:J.value==="warn"?O.value:J.value==="info"?z.value:""),re=l.computed(()=>J.value==="error"?Y.value:J.value==="warn"?D.value:J.value==="info"?C.value:null),F=l.computed(()=>{const T={[`${c}__tip`]:!0,[`${c}__tip--${J.value}`]:!0,[`${c}--animate`]:!0};return J.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),S=l.computed(()=>{const T={};return w&&w.value==="top"||!$()?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=Ne(A.value)),T}),R=l.ref();let V="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,ne,le])=>{R.value&&(T&&!ge(K)?V?o.show(R.value,K,{...le,id:V,type:ne},!0):V=o.show(R.value,K,{...le,type:ne},!0):o.hide(V))});let y=null;const W=()=>{y||!R.value||(y=new IntersectionObserver(T=>{let K=!1;for(let ne of T)if(ne.intersectionRatio>0){K=!0,K&&a.emit("appear",ne);break}K||a.emit("disappear")}),y.observe(R.value))},j=()=>{!y||!R.value||(y.unobserve(R.value),y=null)};l.watch(()=>se(r.appearListen),T=>{T?W():j()}),l.onMounted(()=>{se(r.appearListen)&&W()}),l.onUnmounted(j);const P=()=>{if(!$())return null;const T=[],K=a.slots?.label?.()??r.label,ne={class:M.value},le=l.h("div",ne,[K]);if(T.push(le),a.slots.fixedPreTip){const oe=a.slots.fixedPreTip();T.push(oe)}const X={class:_.value,style:L.value};return l.h("div",X,T)},B=()=>{const T=[];if(a.slots.prepend){const ne=a.slots.prepend();T.push(ne)}if(a.slots.default){const ne=a.slots.default();T.push(ne)}if(a.slots.append){const ne=a.slots.append();T.push(ne)}if(a.slots.fixedTip){const ne={class:[`${c}__fixed-tip`]},le=l.h("div",ne,[a.slots.fixedTip()]);T.push(le)}const K={ref:R,class:k.value,style:N.value};return l.h("div",K,T)},U=()=>{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},H=()=>{const T=te.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},Q=()=>{if(!Z())return null;const T=[],K=U();K&&T.push(K);const ne=H();ne&&T.push(ne);const le={class:F.value,style:S.value};return l.h("div",le,T)},ee=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],ne=P();ne&&K.push(ne);const le=B();le&&K.push(le);const X={class:q.value},oe=l.h("div",X,K);T.push(oe);const ae=Q();ae&&T.push(ae);const ue=ee();ue&&T.push(ue);const ye={class:v.value,style:g.value,prop:r.prop};return l.h("div",ye,T)}}}}const{componentName:Ni,create:Ei,scope:ki}=ie("item"),we=Ei(Ci(Ni,ki,Ve,!1));function Ii(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=We(),a=Ut();Xt(!1);const s=l.computed(()=>a&&r?Zt(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?Jt(r,!1):null;if(s.value&&d)if(s.value.type==="grid"){const v=en(d,s.value,o.span,o.offset);Object.assign(c,v)}else if(s.value.type==="flow"){const v=Qt(d,s.value,o.span,o.offset,o.width);Object.assign(c,v)}else return o.width&&(c.width=Ne(o.width)),c;else o.width&&(c.width=Ne(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:Oi,create:Vi,scope:Sh}=ie("slot-item"),Pn=Vi(Ii(Oi));function Fi(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})),s=We(),i=Ut();Xt(!1);const u=l.computed(()=>{const f={};if(i&&s){const c=Zt(s,!1),d=Jt(s,!1);if(c.value&&d)if(c.value.type==="grid"){const v=en(d,c.value,o.span,o.offset);Object.assign(f,v)}else if(c.value.type==="flow"){const v=Qt(d,c.value,o.span,o.offset,o.width);Object.assign(f,v)}else o.width&&(f.width=Ne(o.width))}else o.width&&(f.width=Ne(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const I=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(I)}f.push(d[v])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:Di,create:Ri,scope:xh}=ie("row-item"),jn=Ri(Fi(Di)),je=(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},Fo={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 Ai(e,t,o){return{props:{...ve,...Ee,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=de(n,"modelValue",null,i),v=e,I=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:s.value})),g=C=>{d.value=C,i("update:modelValue",C),i("input",C)},h=C=>{i("change",C)};let m=de(n,"hintText"),$=l.ref(!1);const w=C=>{let D=C.target.value;c.value=!0,ge(m.value)||($.value=!0),i("focus",D,C)},E=C=>{setTimeout(()=>{$.value&&($.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))),i("blur",D,C)},q=()=>{i("clear","")},_=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&_.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{_.value=!0},150))},M=()=>{A&&(clearTimeout(A),_.value=!1,A=null)},k=l.computed(()=>_.value||$.value),N=l.computed(()=>_.value?d.value:m.value),x=l.computed(()=>yt(n.unit)>0),z=l.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const O={...je(r.attrs),ref:z,class:I.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:g,onFocus:w,onBlur:E,onMouseover:L,onMouseleave:M},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 G=[],Y=l.h(b.ElInput,O,D);G.push(Y);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const te={...Ce(n,Fo),hintText:N.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(o,te,J)}}}}const{componentName:Li,create:Mi,scope:Bi}=ie("input-item"),zn=Mi(Ai(Li,Bi,we));function Ze(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 Do(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function _i(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let qi=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=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Pi(){const e=l.getCurrentInstance();return new qi(e.proxy)}function Ro(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=Ct(e,t),s=Ct(e,o);return a===s}function Ao(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 s of n){const i=Do(e,s);if(Array.isArray(i)&&i.length>0){const u=Ao(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Ze(e,s)===a;else if(o==="item")u=Ro(e,s,a);else{let f=Ct(e,s);f==null&&(f=Ze(e,s)),u=f===a}if(u){r.push(s);break}}}}),r}function ji(e){return{text:e,value:e}}const Lo={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 zi(e,t,o){return{props:{...ve,...Ee,...Lo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(U=>Ze(n,U)).join(" "):""),I=(B,U,H,Q=!0)=>{const ee=Ao(n,B,U,H);if(ee===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Q&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let T=!0;if(ee.length!==d.value.length)T=!1;else for(let K=0;K<ee.length;K++){const ne=ee[K],le=d.value[K];if(!Ro(n,ne,le)){T=!1;break}}if(!T){d.value=ee;let K=[],ne=[],le=[];ee.forEach(ue=>{const ye=Ct(n,ue),he=Ze(n,ue);K.push(ye),le.push(he),n.valueType==="text"?ne.push(he):n.valueType==="item"?ne.push(ue):ne.push(ye)});let X,oe,ae;se(n.multiple)?(c.value=K,X=l.toRaw(ne),oe=le,ae=l.toRaw(ee)):(c.value=K[0]??"",X=l.toRaw(ne[0]??""),oe=le[0]??"",ae=l.toRaw(ee[0])),Q&&(i("update:modelValue",X),i("change",X,ae)),i("update:text",oe)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),$=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,B=>se(B)),w=Pi(),E=async(B,U)=>{if(B){const H=await w.load("select",B,U);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(K=>ji(K));g.value=T}else g.value=H;else g.value=null}};l.watch([()=>n.source,()=>n.params],([B,U])=>{h.value=null,E(B,U)},{immediate:!$.value});let q=!1;const _=()=>{q||(q=!0,E(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([B,U])=>{if(k()&&se(n.multiple)){Ke(U,c.value)||(c.value=U);return}I(U,n.valueType,m.value,!1),i("setValue",U)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async B=>{if(B==null){h.value=null;return}L.value=!0;try{const U=await n.remoteMethod(B);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async B=>{if(B==null){h.value=null;return}L.value=!0;try{const U=await n.filterMethod(B,g.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}L.value=!1});const k=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",N=l.ref(!1),x=e,z=l.computed(()=>({[x]:!0})),C=B=>{n.allowCreate||k()&&se(n.multiple)?(i("update:modelValue",B),i("change",B),i("update:text",B),c.value=B):I(B,"value",m.value,!0)};let O=de(n,"hintText"),D=l.ref(!1);const G=B=>{let H=B.target.value;N.value=!0,ge(O.value)||(D.value=!0),i("focus",H,B)},Y=B=>{setTimeout(()=>{D.value&&(D.value=!1),N.value=!1},0);let H=B.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),V.value||i("blur",H,B)},J=()=>{i("clear","")},Z=l.ref(!1);let te=null;const re=()=>{n.showTooltip&&Z.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{Z.value=!0},150))},F=()=>{te&&(clearTimeout(te),Z.value=!1,te=null)},S=l.computed(()=>Z.value||D.value),R=l.computed(()=>Z.value?v.value:O.value),V=l.ref(!1),y=B=>{V.value=B,i("visible-change",B),B||i("selected")},W=B=>{i("remove-tag",B)},j=(B,U)=>{const H=[];return B.forEach((Q,ee)=>{const T=Do(n,Q);if(Array.isArray(T)&&T.length>0){const K=j(T,U),ne=Ze(n,Q),X={key:`${ne}_${ee}`,label:ne};H.push(l.h(b.ElOptionGroup,X,{default:()=>K}))}else{const K=Ct(n,Q),ne=Ze(n,Q),le=_i(n,Q),oe={key:`${K}_${ee}`,label:ne,disabled:le,value:K};if(typeof U=="function")H.push(l.h(b.ElOption,oe,{default:()=>U(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=l.h("span",ae,[K]),ye={class:{"fox-select-item__option-right":!0}},he=l.h("span",ye,[ne]),gt=l.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);H.push(l.h(b.ElOption,oe,{default:()=>gt}))}else n.optionType==="value"?H.push(l.h(b.ElOption,oe,{default:()=>[K]})):H.push(l.h(b.ElOption,oe))}}),H},P=l.ref();return xe({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()}}),()=>{const U={...je(r.attrs),ref:P,class:z.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:C,onFocus:G,onBlur:Y,onVisibleChange:y,onRemoveTag:W};typeof A=="function"&&(U["remote-method"]=A,U.loading=L.value),typeof M=="function"&&(U["filter-method"]=M,U.loading=L.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>j(m.value,r.slots.option);const Q=[],ee=l.h(b.ElSelect,U,H);Q.push(ee);const T={default:()=>Q};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const ne={...Ce(n,Lo),hintText:R.value,hintVisible:S.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:F};return $.value&&(ne["appear-listen"]=!0,ne.onAppear=_),l.h(o,ne,T)}}}}const{componentName:Hi,create:Ki,scope:Wi}=ie("select-item"),Hn=Ki(zi(Hi,Wi,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",v="quarter",I="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+)?$/,$=/\[([^\]]+)]|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,w={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("_")},E=function(C,O,D){var G=String(C);return!G||G.length>=O?C:""+Array(O+1-G.length).join(D)+C},q={s:E,z:function(C){var O=-C.utcOffset(),D=Math.abs(O),G=Math.floor(D/60),Y=D%60;return(O<=0?"+":"-")+E(G,2,"0")+":"+E(Y,2,"0")},m:function C(O,D){if(O.date()<D.date())return-C(D,O);var G=12*(D.year()-O.year())+(D.month()-O.month()),Y=O.clone().add(G,d),J=D-Y<0,Z=O.clone().add(G+(J?-1:1),d);return+(-(G+(D-Y)/(J?Y-Z:Z-Y))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:d,y:I,w:c,d:f,D:g,h:u,m:i,s,ms:a,Q:v}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},_="en",A={};A[_]=w;var L=function(C){return C instanceof x},M=function C(O,D,G){var Y;if(!O)return _;if(typeof O=="string"){var J=O.toLowerCase();A[J]&&(Y=J),D&&(A[J]=D,Y=J);var Z=O.split("-");if(!Y&&Z.length>1)return C(Z[0])}else{var te=O.name;A[te]=O,Y=te}return!G&&Y&&(_=Y),Y||!G&&_},k=function(C,O){if(L(C))return C.clone();var D=typeof O=="object"?O:{};return D.date=C,D.args=arguments,new x(D)},N=q;N.l=M,N.i=L,N.w=function(C,O){return k(C,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var x=function(){function C(D){this.$L=M(D.locale,null,!0),this.parse(D)}var O=C.prototype;return O.parse=function(D){this.$d=function(G){var Y=G.date,J=G.utc;if(Y===null)return new Date(NaN);if(N.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var Z=Y.match(m);if(Z){var te=Z[2]-1||0,re=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],te,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)):new Date(Z[1],te,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)}}return new Date(Y)}(D),this.$x=D.x||{},this.init()},O.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()},O.$utils=function(){return N},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(D,G){var Y=k(D);return this.startOf(G)<=Y&&Y<=this.endOf(G)},O.isAfter=function(D,G){return k(D)<this.startOf(G)},O.isBefore=function(D,G){return this.endOf(G)<k(D)},O.$g=function(D,G,Y){return N.u(D)?this[G]:this.set(Y,D)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(D,G){var Y=this,J=!!N.u(G)||G,Z=N.p(D),te=function(j,P){var B=N.w(Y.$u?Date.UTC(Y.$y,P,j):new Date(Y.$y,P,j),Y);return J?B:B.endOf(f)},re=function(j,P){return N.w(Y.toDate()[j].apply(Y.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(P)),Y)},F=this.$W,S=this.$M,R=this.$D,V="set"+(this.$u?"UTC":"");switch(Z){case I:return J?te(1,0):te(31,11);case d:return J?te(1,S):te(0,S+1);case c:var y=this.$locale().weekStart||0,W=(F<y?F+7:F)-y;return te(J?R-W:R+(6-W),S);case f:case g:return re(V+"Hours",0);case u:return re(V+"Minutes",1);case i:return re(V+"Seconds",2);case s:return re(V+"Milliseconds",3);default:return this.clone()}},O.endOf=function(D){return this.startOf(D,!1)},O.$set=function(D,G){var Y,J=N.p(D),Z="set"+(this.$u?"UTC":""),te=(Y={},Y[f]=Z+"Date",Y[g]=Z+"Date",Y[d]=Z+"Month",Y[I]=Z+"FullYear",Y[u]=Z+"Hours",Y[i]=Z+"Minutes",Y[s]=Z+"Seconds",Y[a]=Z+"Milliseconds",Y)[J],re=J===f?this.$D+(G-this.$W):G;if(J===d||J===I){var F=this.clone().set(g,1);F.$d[te](re),F.init(),this.$d=F.set(g,Math.min(this.$D,F.daysInMonth())).$d}else te&&this.$d[te](re);return this.init(),this},O.set=function(D,G){return this.clone().$set(D,G)},O.get=function(D){return this[N.p(D)]()},O.add=function(D,G){var Y,J=this;D=Number(D);var Z=N.p(G),te=function(S){var R=k(J);return N.w(R.date(R.date()+Math.round(S*D)),J)};if(Z===d)return this.set(d,this.$M+D);if(Z===I)return this.set(I,this.$y+D);if(Z===f)return te(1);if(Z===c)return te(7);var re=(Y={},Y[i]=n,Y[u]=r,Y[s]=o,Y)[Z]||1,F=this.$d.getTime()+D*re;return N.w(F,this)},O.subtract=function(D,G){return this.add(-1*D,G)},O.format=function(D){var G=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var J=D||"YYYY-MM-DDTHH:mm:ssZ",Z=N.z(this),te=this.$H,re=this.$m,F=this.$M,S=Y.weekdays,R=Y.months,V=function(P,B,U,H){return P&&(P[B]||P(G,J))||U[B].slice(0,H)},y=function(P){return N.s(te%12||12,P,"0")},W=Y.meridiem||function(P,B,U){var H=P<12?"AM":"PM";return U?H.toLowerCase():H},j={YY:String(this.$y).slice(-2),YYYY:this.$y,M:F+1,MM:N.s(F+1,2,"0"),MMM:V(Y.monthsShort,F,R,3),MMMM:V(R,F),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:V(Y.weekdaysMin,this.$W,S,2),ddd:V(Y.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(te),HH:N.s(te,2,"0"),h:y(1),hh:y(2),a:W(te,re,!0),A:W(te,re,!1),m:String(re),mm:N.s(re,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z};return J.replace($,function(P,B){return B||j[P]||Z.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(D,G,Y){var J,Z=N.p(G),te=k(D),re=(te.utcOffset()-this.utcOffset())*n,F=this-te,S=N.m(this,te);return S=(J={},J[I]=S/12,J[d]=S,J[v]=S/3,J[c]=(F-re)/6048e5,J[f]=(F-re)/864e5,J[u]=F/r,J[i]=F/n,J[s]=F/o,J)[Z]||F,Y?S:N.a(S)},O.daysInMonth=function(){return this.endOf(d).$D},O.$locale=function(){return A[this.$L]},O.locale=function(D,G){if(!D)return this.$L;var Y=this.clone(),J=M(D,G,!0);return J&&(Y.$L=J),Y},O.clone=function(){return N.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},C}(),z=x.prototype;return k.prototype=z,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",I],["$D",g]].forEach(function(C){z[C[1]]=function(O){return this.$g(O,C[0],C[1])}}),k.extend=function(C,O){return C.$i||(C(O,x,k),C.$i=!0),k},k.locale=M,k.isDayjs=L,k.unix=function(C){return k(1e3*C)},k.en=A[_],k.Ls=A,k.p={},k})})(Mo);var Yi=Mo.exports;const ze=Ge(Yi);var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,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?/,s=/\d*[^-_:/,()\s\d]+/,i={},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 $=m.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],d=function(h){var m=i[h];return m&&(m.indexOf?m:m.s.concat(m.f))},v=function(h,m){var $,w=i.meridiem;if(w){for(var E=1;E<=24;E+=1)if(h.indexOf(w(E,0,m))>-1){$=E>12;break}}else $=h===(m?"pm":"PM");return $},I={A:[s,function(h){this.afternoon=v(h,!1)}],a:[s,function(h){this.afternoon=v(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:[s,function(h){var m=i.ordinal,$=h.match(/\d+/);if(this.day=$[0],m)for(var w=1;w<=31;w+=1)m(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,f("month")],MM:[r,f("month")],MMM:[s,function(h){var m=d("months"),$=(d("monthsShort")||m.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[s,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,$;m=h,$=i&&i.formats;for(var w=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,N,x){var z=x&&x.toUpperCase();return N||$[x]||o[x]||$[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,O,D){return O||D.slice(1)})})).match(n),E=w.length,q=0;q<E;q+=1){var _=w[q],A=I[_],L=A&&A[0],M=A&&A[1];w[q]=M?{regex:L,parser:M}:_.replace(/^\[|\]$/g,"")}return function(k){for(var N={},x=0,z=0;x<E;x+=1){var C=w[x];if(typeof C=="string")z+=C.length;else{var O=C.regex,D=C.parser,G=k.slice(z),Y=O.exec(G)[0];D.call(N,Y),k=k.replace(Y,"")}}return function(J){var Z=J.afternoon;if(Z!==void 0){var te=J.hours;Z?te<12&&(J.hours+=12):te===12&&(J.hours=0),delete J.afternoon}}(N),N}}return function(h,m,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=m.prototype,E=w.parse;w.parse=function(q){var _=q.date,A=q.utc,L=q.args;this.$u=A;var M=L[1];if(typeof M=="string"){var k=L[2]===!0,N=L[3]===!0,x=k||N,z=L[2];N&&(z=L[2]),i=this.$locale(),!k&&z&&(i=$.Ls[z]),this.$d=function(G,Y,J){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*G);var Z=g(Y)(G),te=Z.year,re=Z.month,F=Z.day,S=Z.hours,R=Z.minutes,V=Z.seconds,y=Z.milliseconds,W=Z.zone,j=new Date,P=F||(te||re?1:j.getDate()),B=te||j.getFullYear(),U=0;te&&!re||(U=re>0?re-1:j.getMonth());var H=S||0,Q=R||0,ee=V||0,T=y||0;return W?new Date(Date.UTC(B,U,P,H,Q,ee,T+60*W.offset*1e3)):J?new Date(Date.UTC(B,U,P,H,Q,ee,T)):new Date(B,U,P,H,Q,ee,T)}catch{return new Date("")}}(_,M,A),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),x&&_!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var C=M.length,O=1;O<=C;O+=1){L[1]=M[O-1];var D=$.apply(this,L);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}O===C&&(this.$d=new Date(""))}else E.call(this,q)}}})})(Bo);var Gi=Bo.exports;const Ui=Ge(Gi);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){var a=n.prototype,s=a.format;r.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){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(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="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 v}});return s.bind(this)(d)}}})})(_o);var Xi=_o.exports;const Zi=Ge(Xi);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){var a=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,v,I,g,h){var m=d.name?d:d.$locale(),$=s(m[v]),w=s(m[I]),E=$||w.map(function(_){return _.slice(0,g)});if(!h)return E;var q=m.weekStart;return E.map(function(_,A){return E[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,v){return d.formats[v]||function(I){return I.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[v.toUpperCase()])},c=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):i(d,"months")},monthsShort:function(v){return v?v.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return f(d.$locale(),v)},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(v){return f(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(d){return i(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(qo);var Ji=qo.exports;const Qi=Ge(Ji);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(o);if(c.isBefore(d))return 1}var v=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),I=this.diff(v,o,!0);return I<0?s(this).startOf("week").week():Math.ceil(I)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Po);var es=Po.exports;const ts=Ge(es);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(jo);var ns=jo.exports;const ls=Ge(ns);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(zo);var os=zo.exports;const rs=Ge(os);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ho);var as=Ho.exports;const is=Ge(as);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Ko);var ss=Ko.exports;const us=Ge(ss);ze.extend(Qi),ze.extend(Zi),ze.extend(Ui),ze.extend(ts),ze.extend(ls),ze.extend(rs),ze.extend(is),ze.extend(us);const Le={format(e,t){return ze(e).format(t)},parser(e,t){return ze(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(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/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),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,f=a+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,f=a+(7-s)*i,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=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(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Wo={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"}},Yo={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:{...ve,...Ee,...Wo,...Yo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=de(n,"modelValue",null,i),v=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),I=l.computed(()=>D.value?"longTermKey":"normalKey"),g=P=>{if(D.value&&n.type==="daterange"){const B=[...d.value];B[0]=P,d.value=B}else d.value=P;i("update:modelValue",d.value),i("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,$=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":s.value,"is-disabled":a.value}));let w=de(n,"hintText"),E=l.ref(!1);const q=P=>{let U=P.target.value;c.value=!0,ge(w.value)||(E.value=!0),i("focus",U,P)},_=P=>{setTimeout(()=>{E.value&&(E.value=!1),c.value=!1},0);let U=P.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),i("blur",U,P)},A=()=>{i("clear","")},L=P=>{i("calendar-change",P)},M=(P,B,U)=>{i("panel-change",P,B,U)},k=P=>{i("visible-change",P)},N=ke(l.computed(()=>n.longTermText),"longTermText",Ae.Near),x=ke(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ae.Near),z=ke(l.computed(()=>n.longTermValue),"longTermValue",Ae.Near),C=ke(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let O=null;const D=l.ref(se(n.longTerm)),G=P=>{if(D.value=P,i("update:longTerm",P),P){if(O=d.value,n.type==="daterange"){const B=[];Array.isArray(z.value)?(B[0]=d.value?d.value[0]??z.value[0]:null,B[1]=z.value[1]??z.value[0]):(B[0]=d.value?d.value[0]??z.value:null,B[1]=D.value),B[0]||(B[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),B[1]||(B[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=B}else Array.isArray(z.value)?d.value=z.value[1]??z.value[0]:d.value=z.value,d.value||(d.value=n.valueFormat?Le.format(new Date,n.valueFormat):new Date);i("update:modelValue",d.value)}else{if(n.type==="daterange"){const B=[];B[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(O)?B[1]=O[1]:B[1]=O,B[0]||(B[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),B[1]||(B[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=B}else d.value=O;i("update:modelValue",d.value),setTimeout(()=>{W()},100)}},Y=se(n.isLongTerm);if(Y){const P=()=>{if(D.value===!0){if(O=d.value,n.type==="daterange"){const B=[d.value[0]];Array.isArray(z.value)?B[1]=z.value[1]??z.value[0]:B[1]=D.value,B[0]||(B[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),B[1]||(B[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),d.value=B}else d.value=z.value;i("update:modelValue",d.value)}else Ke(z.value,d.value)&&(D.value=!0)};P(),l.watch([()=>n.longTerm],([B])=>{D.value!==B&&P()}),l.watch([()=>d.value],([B])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(B))try{let H=B[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=Le.format(H,n.valueFormat));let Q=Array.isArray(z.value)?z.value[1]:z.value;(H===Q||Array.isArray(C.value)&&C.value.findIndex(T=>H==T)!==-1)&&(U=!0)}catch(H){console.error(H)}D.value!==U&&(D.value=U)},{immediate:!0})}const J=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),Z=l.ref(),te=l.ref(),re=/^\d+$/,F=(P,B)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(P,B):re.test(P)&&P.length===n.flashFillThreshold,S=(P,B)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(P,B);else{const Q=n.flashFillFormat??"YYYYMMDD";U=Le.parser(P,Q)}const H=n.valueFormat??"YYYY-MM-DD";return Le.format(U,H)},R=P=>P?P.endsWith("range"):!1,V=P=>{if(!P.target)return;const B=P.target.value??"";if(F(B,n.type)){const U=S(B,n.type);if(R(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=U,g(H)}else g(U)}},y=P=>{if(!P.target)return;const B=P.target.value??"";if(F(B,n.type)){const U=S(B,n.type);if(R(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=U,g(H)}else g(U)}},W=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(R(n.type)){const P=Z.value.$el.querySelectorAll("input.el-range-input");P[0]&&P[0].addEventListener("input",V),P[1]&&P[1].addEventListener("input",y)}else{const P=Z.value.$el.querySelector("input.el-input__inner");P&&P.addEventListener("input",V)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(R(n.type)){const P=Z.value.$el.querySelectorAll("input.el-range-input");P[0]&&P[0].removeEventListener("input",V),P[1]&&P[1].removeEventListener("input",y)}else{const P=Z.value.$el.querySelector("input.el-input__inner");P&&P.removeEventListener("input",V)}};return l.onMounted(W),l.onBeforeUnmount(j),xe({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const B={...r.attrs,key:I.value,type:h.value,ref:te,class:$.value,placeholder:f.placeholder.value,disabled:a.value,readonly:s.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:q,onBlur:_,onCalendarChange:L,onPanelChange:M,onVisibleChange:k},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const H=[],Q=l.h(b.ElDatePicker,B,U);H.push(Q);const ee={default:()=>H};if(r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip),Y){if(D.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=l.h("input",{class:["fox-date-item__long-text"],value:N.value,readonly:!0}),oe={class:J.value},ae=l.h("div",oe,{default:()=>[le,X]});H.push(ae)}if(!s.value&&!a.value){const le={label:x.value||N.value,disabled:s.value||a.value,modelValue:D.value,"onUpdate:modelValue":G},X=l.h(b.ElCheckbox,le),oe=l.h("div",{class:{[`${m}__append`]:!0}},[X]);ee.append=()=>oe}}const K={...Ce(n,Wo,Yo),ref:Z,class:{[`${m}__wrapper`]:!0,"has-append":Y},hintText:w.value,hintVisible:E.value,prop:`${n.prop}_item`};return l.h(o,K,ee)}}}}const{componentName:fs,create:ds,scope:hs}=ie("date-item"),Kn=ds(cs(fs,hs,we)),Go={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function gs(e,t,o){return{props:{...ve,...Ee,...Go},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=de(n,"modelValue",null,i),v=e,I=l.computed(()=>({[v]:!0})),g=A=>{d.value=A,i("update:modelValue",A),i("change",A)};let h=de(n,"hintText"),m=l.ref(!1);const $=A=>{let M=A.target.value;c.value=!0,ge(h.value)||(m.value=!0),i("focus",M,A)},w=A=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),i("blur",M,A)},E=()=>{i("clear","")},q=A=>{i("visible-change",A)},_=l.ref();return xe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()}}),()=>{const L={...r.attrs,ref:_,class:I.value,placeholder:f.placeholder.value,disabled:a.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:E,onFocus:$,onBlur:w,onVisibleChange:q},M={},k=[],N=l.h(b.ElTimePicker,L,M);k.push(N);const x={default:()=>k};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const C={...Ce(n,Go),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,C,x)}}}}const{componentName:ms,create:ps,scope:ys}=ie("time-item"),Wn=ps(gs(ms,ys,we)),Uo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function bs(e,t,o){return{props:{...ve,...Ee,...Uo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=de(n,"modelValue",null,i),v=e,I=l.computed(()=>({[v]:!0})),g=_=>{d.value=_,i("update:modelValue",_),i("change",_)};let h=de(n,"hintText"),m=l.ref(!1);const $=_=>{let L=_.target.value;c.value=!0,ge(h.value)||(m.value=!0),i("focus",L,_)},w=_=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,_)},E=()=>{i("clear","")},q=l.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:I.value,placeholder:f.placeholder.value,disabled:a.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:E,onFocus:$,onBlur:w},L={},M=[],k=l.h(b.ElTimeSelect,A,L);M.push(k);const N={default:()=>M};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const z={...Ce(n,Uo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,z,N)}}}}const{componentName:vs,create:ws,scope:Ss}=ie("time-select-item"),Yn=ws(bs(vs,Ss,we));function Xo(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 Zo(e,t,o=20){if(typeof t=="string"&&(t=be(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Kl(`${e}`,`${t}`);return Xo(n)}else{let n=yn(`${e}`,Wl(`${t}`),20);return Xo(n)}}function xs(e,t=-1,o=!1,n=3,r=","){return Rt(e,t,o,n,r)}function Jo(e,t,o,n,r=!0){if(e=="")return"";if(e=Yl(e),t=be(t),t==1)return e;if(n)e=Zo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(be(o)+2,"0"):e=yn(e,1,be(o)));else{let a=-1*t;e=Zo(e,a)}return e}function Qo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=bn(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=bn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const er={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 Ts(e,t,o){return{props:{...ve,...Ee,...er},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=de(n,"modelValue",null,i),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([C,O,D])=>{if(ge(C)){c.value="";return}const G=Jo(C,O,D,!1);c.value!==G&&(c.value=G)},{immediate:!0});const d=l.computed(()=>{let C="";return u.value&&(C=c.value),C}),{t:v}=Re.useFoxI18n(t),I=l.computed(()=>{let C=n.placeholder??"";return!u.value&&!ge(c.value)?C=xs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=v(["placeholder",C]),C}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),m=ke(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const $=l.ref(""),w=l.computed(()=>{let C=$.value;return ge(C)&&(C=n.errorTip??""),C}),E=l.ref(""),q=l.ref(!1),_=(C,O)=>{if(C=`${C}`,ge(C)){c.value="",f.value="",O.forEach(D=>{i(D,"")}),se(n.showTip)&&q.value&&(q.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(!no(C)){l.triggerRef(c);return}if(n.integerLength!=-1&&lo(C)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&oo(C)>Number(n.decimalLength)){l.triggerRef(c);return}let D=Qo(C,n);if(D.maxValid===!1){$.value=D.message,l.triggerRef(c);return}}else if(n.min!=null&&be(n.min)>=0){l.triggerRef(c);return}E.value=C,se(n.showTip)&&(q.value=C.length>0),c.value=C,f.value=Jo(C,n.rates,n.precision,!0),O.forEach(D=>{i(D,f.value)})},A=C=>{_(C,["update:modelValue","input"])},L=C=>{_(C,["update:modelValue","change"])},M=C=>{if(u.value=!0,se(n.showTip)){let O=c.value;ge(O)&&(O=n.hintText),ge(O)||(E.value=O,q.value=!0)}$.value="",i("focus",f.value,C)},k=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&q.value===!0&&(q.value=!1)},0),!ge(c.value)){let O=Qo(c.value,n);if(O.minValid===!1||O.maxValid===!1){$.value=O.message;return}}i("update:modelValue",f.value,C),i("blur",f.value,C)},N=()=>{i("clear","")},x=l.computed(()=>yt(n.unit)>0),z=l.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const O={...je(r.attrs),ref:z,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:I.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onInput:A,onChange:L,onFocus:M,onBlur:k},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 G=[],Y=l.h(b.ElInput,O,D);G.push(Y);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const te={...Ce(n,er),errorTip:w.value,hintText:E.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,te,J)}}}}const{componentName:$s,create:Cs,scope:Ns}=ie("money-item"),Gn=Cs(Ts($s,Ns,we)),tr={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 Es(e,t,o){return{props:{...ve,...Ee,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=de(n,"modelValue",null,i),v=e,I=l.computed(()=>({[v]:!0,[`${v}__append`]:A.value})),g=l.computed(()=>({[`${v}__unit`]:!0})),h=M=>{d.value=M,i("update:modelValue",M),i("input",M)},m=M=>{i("change",M)};let $=de(n,"hintText"),w=l.ref(!1);const E=M=>{let N=M.target.value;c.value=!0,ge($.value)||(w.value=!0),i("focus",N,M)},q=M=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let N=M.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,M)},_=()=>{i("clear","")},A=l.computed(()=>yt(n.unit)>0),L=l.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const k={...je(r.attrs),ref:L,class:I.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onChange:m,onInput:h,onFocus:E,onBlur:q},N={},x=[],z=l.h(b.ElInputNumber,k,N);x.push(z);const C={default:()=>x};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const D={...Ce(n,tr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(A.value){const Y={class:g.value},J=l.h("div",Y,[n.unit]);C.append=()=>J}return l.h(o,D,C)}}}}const{componentName:ks,create:Is,scope:Os}=ie("input-number-item"),Un=Is(Es(ks,Os,we));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function lt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Fs=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=_e(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ds(){const e=l.getCurrentInstance();return new Fs(e.proxy)}function Xn(e,t,o){const n=Ue(e,t),r=Ue(e,o);if(n!==r)return!1;const a=lt(e,t),s=lt(e,o);return a===s}function nr(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 s=0;Array.isArray(a)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=nr(e,i,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ue(e,f)===i;else if(o==="item")u=Xn(e,f,i);else{let c=lt(e,f);c==null&&(c=Ue(e,f)),u=c===i}if(u){r.push(f),a=Vs(e,f);break}}if(!u)break}}return r}function Rs(e){return{text:e,value:e}}const lr={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:[Function],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function As(e,t,o){return{props:{...ve,...Ee,...lr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(P=>Array.isArray(P)?P.map(U=>Ue(n,U)).join(" "):Ue(n,P)).join(" "):""),I=(j,P,B,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===j)return;c.value=j;const T=l.toRaw(j);if(U){const K=W?.value.getCheckedNodes();if(K)if(n.multiple){const ne=[];K.forEach(le=>{const oe=(le.pathNodes??[]).map(ae=>ae.data);ne.push(oe)}),i("update:pathNodes",ne)}else{const le=(K[0]?.pathNodes??[]).map(X=>X.data);i("update:pathNodes",le)}i("update:modelValue",T),i("change",T)}return}const H=nr(n,j,P,B);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,U&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const Q=H[H.length-1];if(N.value.checkStrictly!==!0&&Q&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const T=[];H.forEach(K=>{const ne=`${Ue(n,K)}`;T.push(ne)}),T.length>0&&(M.value=T.join(n.separator))}else M.value=null;let ee=!0;if(H.length!==d.value.length)ee=!1;else for(let T=0;T<H.length;T++){const K=H[T],ne=d.value[T];if(Array.isArray(K)){if(!Array.isArray(ne)||K.length!==ne.length)ee=!1;else for(let le=0;le<K.length;le++)if(!Xn(n,K[le],ne[le])){ee=!1;break}}else Xn(n,K,ne)||(ee=!1);if(!ee)break}if(!ee){d.value=H;let T=[],K=[];H.forEach(le=>{if(Array.isArray(le)){let X=[],oe=[];for(let ae of le)X.push(lt(n,ae)),n.valueType==="text"?oe.push(Ue(n,ae)):n.valueType==="item"?oe.push(ae):oe.push(lt(n,ae));T.push(X),K.push(oe)}else T.push(lt(n,le)),n.valueType==="text"?K.push(Ue(n,le)):n.valueType==="item"?K.push(le):K.push(lt(n,le))}),c.value=T;const ne=l.toRaw(K);U&&(i("update:pathNodes",H),i("update:modelValue",ne),i("change",ne))}},g=l.ref([]),h=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,j=>se(j)),m=Ds(),$=async(j,P)=>{if(j){const B=await m.load("cascader",j,P);if(B.length>0)if(typeof B[0]=="string"){let Q=B.map(ee=>Rs(ee));g.value=Q}else g.value=B}};l.watch([()=>n.source,()=>n.params],async([j,P])=>{$(j,P)},{immediate:!(h.value||n.lazy)});let w=!1;const E=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([j,P])=>{I(P,n.valueType,j,!1),i("setValue",P)}),n.lazy&&I(n.modelValue,"value",[],!1);let q=null,_=l.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){_.value=!0;try{const P=await n.remoteMethod(j);g.value=P}catch(P){console.error(P)}_.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),k=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),N=l.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),n.lazy&&(j.lazy=!0,typeof n.lazyLoad=="function"?j.lazyLoad=n.lazyLoad:j.lazyLoad=async(P,B)=>{const U=await m.load("cascader",n.source,P,!0);if(P?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===P.level){const H=P.pathLabels??[];let Q=[];H.forEach(ee=>{ee&&Q.push(ee)}),Q.length>0&&(M.value=Q.join(n.separator))}else M.value=null;B(U)}),j}),x=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),c.value=j):I(j,"value",g.value,!0)};let z=de(n,"hintText"),C=l.ref(!1);const O=j=>{let B=j.target.value;A.value=!0,ge(z.value)||(C.value=!0),i("focus",B,j)},D=j=>{setTimeout(()=>{C.value&&(C.value=!1),A.value=!1},0);let B=j.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),S.value||i("blur",B,j)},G=()=>{i("clear","")},Y=l.ref(!1);let J=null;const Z=()=>{n.showTooltip&&Y.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{Y.value=!0},150))},te=()=>{J&&(clearTimeout(J),Y.value=!1,J=null)},re=l.computed(()=>Y.value||C.value),F=l.computed(()=>Y.value?v.value:z.value),S=l.ref(!1),R=j=>{S.value=j,i("visible-change",j),j||i("selected")},V=j=>{i("remove-tag",j)},y=j=>{i("expand-change",j)},W=l.ref();return xe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},getCheckedNodes:()=>W?.value.getCheckedNodes()}),()=>{const P={...r.attrs,ref:W,class:k.value,props:N.value,clearable:n.clearable,placeholder:M.value||f.placeholder.value,disabled:a.value||s.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:G,onChange:x,onFocus:O,onBlur:D,onVisibleChange:R,onRemoveTag:V,expandChange:y};typeof q=="function"&&(P["remote-method"]=q,P.loading=_.value);const B={};r.slots.option&&(B.default=r.slots.option),r.slots.empty&&(B.empty=r.slots.empty);const U=[],H=l.h(b.ElCascader,P,B);U.push(H);const Q={default:()=>U};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const T={...Ce(n,lr),hintText:F.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:te};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=E),l.h(o,T,Q)}}}}const{componentName:Ls,create:Ms,scope:Bs}=ie("cascader-item"),Zn=Ms(As(Ls,Bs,we)),or={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function _s(e,t,o){return{props:{...ve,...Ee,...or},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=de(n,"modelValue",null,i),v=e,I=l.computed(()=>({[v]:!0})),g=L=>{d.value=L,i("update:modelValue",L),i("input",L)},h=L=>{i("change",L)},m=L=>{i("select",L)};let $=de(n,"hintText"),w=l.ref(!1);const E=L=>{let k=L.target.value;c.value=!0,ge($.value)||(w.value=!0),i("focus",k,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let k=L.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,L)},_=()=>{i("clear","")},A=l.ref();return xe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:I.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:d.value,onClear:_,onChange:h,onInput:g,onFocus:E,onBlur:q,onSelect:m},k={};r.slots.prepend&&(k.prepend=r.slots.prepend),r.slots.append&&(k.append=r.slots.append),r.slots.prefix&&(k.prefix=r.slots.prefix),r.slots.suffix&&(k.suffix=r.slots.suffix),r.slots.option&&(k.default=r.slots.option);const N=[],x=l.h(b.ElAutocomplete,M,k);N.push(x);const z={default:()=>N};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const O={...Ce(n,or),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,O,z)}}}}const{componentName:qs,create:Ps,scope:js}=ie("autocomplete-item"),Jn=Ps(_s(qs,js,we));function zs(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;s.push(d[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(v=>v[n]===c);if(!d)break;s.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;s.push(d[o]),u=d[r]}}return s}let Hs=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=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}const rr={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 Ws(e,t){return{props:{...rr},setup(o,{attrs:n,slots:r}){const a=Ks(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await a.load(o.sourceType,f,c)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=zs(o.modelValue,s.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:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,f,{default:()=>i.value}):l.h(u,f,i.value)}}}}const{componentName:Th,create:Ys,scope:$h}=ie("mapping"),Nt=Ys(Ws());function Gs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=a.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=a.substring(0,i);n=n[d][c]}else n=n[c];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Us(e,t){return{props:{...rr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Gs(s.row,s.column.property);return r.default?l.h(Nt,{...o,modelValue:i},{default:r.default}):l.h(Nt,{...o,modelValue:i})}};return l.h(b.ElTableColumn,{...n},a)}}}}const{componentName:Ch,create:Xs,scope:Nh}=ie("table-mapping-column"),Qn=Xs(Us()),Zs=Symbol.for("TableStateKey");function ar(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=a.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=a.substring(0,i);n=n[d][c]}else n=n[c];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Js(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Zs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ar(i.row,i.column.property),f=a?ar(a,i.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),I={class:{"el-radio":!0,"is-checked":c}};return l.h("label",I,[v])}};return l.h(b.ElTableColumn,{...n},s)}}}}const{componentName:Eh,create:Qs,scope:kh}=ie("table-radio-column"),el=Qs(Js()),eu={},tu={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"},nu=[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)];function lu(e,t){return l.openBlock(),l.createElementBlock("svg",tu,nu)}const ou=Me(eu,[["render",lu]]),{componentName:Oh,create:ru,scope:Vh}=ie("table-setting"),au={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:"不固定"}},iu=ru({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:ou,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...au},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed===""||y.fixed===!0||y.fixed==="left")),s=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed==="right")),i=l.computed(()=>r.value.filter(y=>!(y.label===""||y.type||y.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>s.value.length>0),d=y=>y.length>1,v=(y,W)=>{Array.isArray(y)&&Array.isArray(W)&&y.forEach(B=>{W.some(U=>U.prop===B.prop?(B.label=U.label,!0):!1)});const j=[];r.value=y.map((B,U)=>(!(B.label===""||B.type)&&B.visible!==!1&&j.push(B.prop),{...B,sortIndex:U})),i.value.length+a.value.length+s.value.length===j.length?w.value=!0:j.length>0&&(E.value=!0),A.value=j},I=y=>y?y.type?y.type:y.label?y.prop:"":"",g=(y,W)=>{if(y.length!==W.length)return!1;const j=y.map(P=>I(P));for(let P of W){const B=I(P);if(j.indexOf(B)===-1)return!1}return!0},h=y=>{if(!y){const W=e.tableRef.getColumnSetting(),j=W.srcColumnPropertyList;n=j.map((P,B)=>({...P,sortIndex:B})),y=W.columnPropertyList,y&&y.length>0&&g(j,y)||(y=j)}v(y,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),E=l.ref(!1),q=y=>{const W=[];r.value.forEach(P=>{y&&!(P.label===""||P.type)&&W.push(P.prop),P.visible=y}),w.value=!1,E.value=!1,i.value.length+a.value.length+s.value.length===W.length?w.value=!0:W.length>0&&(E.value=!0),A.value=W,m()},_=()=>{h(n),m()},A=l.ref([]),L=y=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const P=y.indexOf(j.prop)!==-1;j.visible=P}),w.value=!1,E.value=!1;const W=i.value.length+a.value.length+s.value.length;y.length===W?w.value=!0:y.length>0&&(E.value=!0),m()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const k={currentRow:null,index:null,roleType:null},N=y=>y?y.dataset&&y.dataset.role==="row"?y:y.tagName.toLowerCase()!=="body"?(y=y.parentElement,N(y)):null:null,x=y=>{const W=y.currentTarget;W&&W.dataset&&(k.roleType=W.dataset.roleType,k.index=W.dataset.index)},z=y=>{k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null),k.index=null,k.roleType=null},C=y=>{const W=y.currentTarget;y.relatedTarget;const j=N(W);if(!j)return;const P=j.dataset&&j.dataset.roleType;k.roleType===P&&(y.preventDefault(),k.currentRow&&k.currentRow!==j&&k.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),k.currentRow=j)},O=y=>{y.preventDefault(),k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null)},D=y=>{const W=y.currentTarget,j=N(W);if(!j)return;const P=j.dataset&&j.dataset.roleType;if(k.roleType!==P)return;y.preventDefault();const B=Number(k.index),U=Number(j.dataset.index);if(B!==U){if(B<U){const H=r.value[B];r.value.splice(B,1),r.value.splice(U,0,H)}else{const H=r.value[B];r.value.splice(B,1),r.value.splice(U+1,0,H)}v(r.value,n),m()}},G=y=>{const W=r.value[y];W.fixed="left",m()},Y=y=>{const W=r.value[y];W.fixed="right",m()},J=y=>{const W=r.value[y];W.fixed=void 0,m()},Z=new Map;let te=null;function re(y){const W=document.createRange();return W.setStart(y,0),W.setEnd(y,y.childNodes.length),W.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:w,isIndeterminate:E,handleCheckAllChange:q,handleReset:_,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:x,onDragEnd:z,onDragOver:C,onDragLeave:O,onDrop:D,toLeftFixed:G,toRightFixed:Y,toUnFixed:J,checkboxLabelStyle:$,onMouseOverForOverflowText:(y,W,j)=>{const P=y.currentTarget;if(P){const B=Math.floor(P.offsetWidth);if(Math.floor(re(P))>B){let H=Z.get(W);if(H){if(H===te)return;Ve.hide(H)}H=Ve.show(P,j,{type:"text",placement:"top",closeOnClick:!1}),Z.set(W,H),te=H}}},onMouseLeaveForOverflowText:(y,W)=>{const j=Z.get(W);j&&(Ve.hide(j),j===te&&(te=null))},onMouseOverForTip:(y,W)=>{const j=y.currentTarget;j&&(te&&Ve.hide(te),te=Ve.show(j,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:y=>{te&&(Ve.hide(te),te=null)}}}}),su={class:"fox-table-setting"},uu={class:"fox-table-setting__header"},cu={class:"fox-table-setting__body"},fu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},du={key:0,class:"fox-table-setting__body-title"},hu=["data-index","draggable"],gu=["onMouseover","onMouseleave"],mu={class:"tools-item"},pu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},yu={key:0,class:"fox-table-setting__body-title"},bu=["data-index","draggable"],vu=["onMouseover","onMouseleave"],wu={class:"tools-item"},Su={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},xu={key:0,class:"fox-table-setting__body-title"},Tu=["data-index","draggable"],$u=["onMouseover","onMouseleave"],Cu={class:"tools-item"};function Nu(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),I=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",su,[l.createElementVNode("div",uu,[l.createVNode(s,{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(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",cu,[l.createVNode(I,{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",fu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",du,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(s,{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,gu)]),_:2},1032,["label"]),l.createElementVNode("div",mu,[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,hu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",pu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",yu,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(s,{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,vu)]),_:2},1032,["label"]),l.createElementVNode("div",wu,[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,bu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Su,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",xu,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(v,{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,$u)]),_:2},1032,["label"]),l.createElementVNode("div",Cu,[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,Tu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ln=Me(iu,[["render",Nu]]);let Eu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){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,s,i]);const u=_e(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(He(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function ku(){const e=l.getCurrentInstance();return new Eu(e.proxy)}class Iu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=_e(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=_e(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=_e(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function ir(){const e=l.getCurrentInstance();return new Iu(e.proxy)}const Ou=Symbol.for("TableStateKey"),sr={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"}},ur={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}},tl={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:"不固定"}},Vu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Fu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=a.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=a.substring(0,i);n=n[d][c]}else n=n[c];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function nl(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Fu(n,r);if(a!==s)return!1}return!0})}function Du(e,t,o){return{inheritAttrs:!1,props:{...ve,...Ee,...sr,...ur,...tl,...Vu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Re.useFoxI18n(t),{emitEvent:s}=Se({componentName:e,validateHandler:{getValue(...X){return A.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),f=l.computed(()=>({[`${i}__setting`]:!0})),c=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),v=l.shallowRef({}),I=l.computed(()=>({...v.value,...n.params??{},...n.baseParams??{}})),g=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),m=se(n.infiniteLoad);m||(l.watch(()=>n.pageIndex,X=>{g.value=X}),l.watch(()=>n.pageSize,X=>{h.value=X}),l.watch([g,h],([X,oe],[ae,ue])=>{oe!==ue&&(g.value=1,X=1),N(n.data,X,oe,I.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&l.watch([()=>n.data,I],async([X,oe],[ae,ue])=>{$()&&(X!==ae&&(M=!0),!(!Array.isArray(X)&&Ke(X,ae)&&Ke(oe,ue))&&(m?(g.value=0,q.value=!0,A.value=[],z()):g.value===1?N(X,g.value,h.value,oe):g.value=1))},{deep:!0});const w=X=>{g.value=X,s("page-index-change",X)},E=X=>{h.value=X,s("page-size-change",X)},q=l.ref(!0),_=l.ref(0),A=l.ref(),L=ku();let M=!0;const k=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,X=>se(X)),N=async(X,oe,ae,ue,ye)=>{M=!1;try{if(ye===!0){if(!q.value)return!1;const he=await L.load("table",X,oe,ae,ue,M,a.value);return _.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,A.value,he.page),setTimeout(()=>{s("loaded-data")},250),(A.value?.length??0)>=_.value)||he.page.length<ae?(q.value=!1,!1):!0}else{const he=await L.load("table",X,oe,ae,ue,M,a.value);return _.value=he.totalSize,A.value=he.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),_.value=0,A.value=[]}return!1};let x=!1;const z=async()=>{if(!x){if(x=!0,!q.value){x=!1;return}g.value+=1,await N(n.data,g.value,h.value,I.value,!0),x=!1}},C=(X={},oe=!1)=>new Promise(async ae=>{v.value={...l.toRaw(X??{})},oe||(g.value=n.pageIndex??1),m===!0?(g.value=0,A.value=[],q.value=!0,await z()):await N(n.data,g.value,h.value,I.value),ae()}),O=()=>{_.value=0,A.value=[],m===!0&&(g.value=0,q.value=!0)};let D=!1;const G=()=>{D||(D=!0,C())},Y=l.ref(null);if(m===!0){let X=null;const oe=()=>{Y.value&&(X=new IntersectionObserver(ue=>{let ye=!1;for(let he of ue)if(he.intersectionRatio>0){ye=!0;break}ye&&z()}),X.observe(Y.value))},ae=()=>{!X||!Y.value||(X.unobserve(Y.value),X=null)};l.onMounted(oe),l.onBeforeUnmount(ae)}$()&&!k.value&&C();const J=l.ref(null);l.provide(Ou,{currentRow:J});const Z=(X,oe)=>{J.value=X,s("current-change",X,oe)},te=(X,oe,ae)=>{s("row-click",X,oe,ae),se(n.rowClickSelectable)===!0&&le?.value.toggleRowSelection(X)},re=[],F=(X,oe)=>{if(s("expand-change",X,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==X&&le?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,X)}},S=r.attrs.id??n.prop??r.attrs.name,R=ir(),V=l.ref([]);let y=[];const W=()=>({srcColumnPropertyList:y.map(oe=>({...oe})),columnPropertyList:V.value}),j=X=>{V.value=[...X],B()},P=async()=>{const X=await R.load(S);X&&(V.value=X)},B=()=>{R.save(S,V.value)},U=()=>{R.remove(S)};P();const H=X=>X?X.type?X.type:X.label?X.prop:"":"",Q=l.computed(()=>{if(typeof r.slots.default=="function"){const X=r.slots.default(),oe=new Map;if(y=[],X.forEach(ae=>{const ue=ae;if(!ue.props)return;const ye=H(ue.props);oe.set(ye,ae);const he={label:"",prop:""};Object.assign(he,ue.props),y.push(he)}),V.value.length===y.length){const ae=[];for(let ue of V.value){const ye=H(ue),he=oe.get(ye);if(!he)return X;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return X}return[]}),ee=l.shallowRef(new Map),T=({column:X,rowIndex:oe})=>{const ae=`${oe}_${X.property}`;return ee.value.get(ae)??""},K=X=>typeof X=="function"?oe=>{const ae=[];let ue=T(oe);return ue&&ae.push(ue),ue=X(oe),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:T,ne=(X,oe,ae)=>{const ue=`${X}_${oe}`;ae?ee.value.set(ue,ae):ee.value.delete(ue),l.triggerRef(ee)},le=l.ref();return xe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(X,oe)=>{le?.value.toggleRowSelection(X,oe)},toggleRowSelectionByProp:(X,oe)=>{if(!A.value)return;const ae=nl(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(X,oe)=>{le?.value.toggleRowExpansion(X,oe)},toggleRowExpansionByProp:(X,oe)=>{if(!A.value)return;const ae=nl(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:X=>{le?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!A.value)return;const oe=nl(A.value,X);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:X=>{le?.value.clearFilter(X)},doLayout:()=>{le?.value.doLayout()},sort:(X,oe)=>{le?.value.sort(X,oe)},scrollTo:(X,oe)=>{le?.value.scrollTo(X,oe)},setScrollTop:X=>{le?.value.setScrollTop(X)},setScrollLeft:X=>{le?.value.setScrollLeft(X)},loadData:C,clearData:O,getData(){return A.value},getTotalSize(){return _.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:W,setColumnSetting:j,removeColumnSetting:U,setCellClassName:ne}),()=>{const oe={...je(r.attrs),onCurrentChange:Z,onRowClick:te,onExpandChange:F,data:A.value,ref:le,class:u.value,"cell-class-name":K(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),m===!0){const qe=[];if(q.value){const Vt=l.h(Te.Loading,{class:`${i}__infinite-icon`});qe.push(Vt);const Bl=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);qe.push(Bl)}else{const Vt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);qe.push(Vt)}const rt={ref:Y,class:`${i}__infinite`},Ml=l.h("div",rt,qe);ae.append=()=>Ml}const ue=l.h(b.ElTable,oe,ae),ye=[];if(ye.push(ue),!m){let qe=null;if(typeof r.slots.pagination=="function")qe=r.slots.pagination();else if(n.showPagination){const rt={class:d.value,total:_.value,pageSize:h.value,"onUpdate:pageSize":E,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};qe=l.h(b.ElPagination,rt)}if(n.showSetting){const rt=[];qe&&rt.push(qe);const Ml=l.h(b.ElIcon,{class:f.value},{default:()=>l.h(Te.Setting)}),Vt=ao(n,tl),Bl=l.h(ln,{...Vt,tableRef:{getColumnSetting:W,setColumnSetting:j,removeColumnSetting:U}},{default:()=>Ml});rt.push(Bl);const ph=l.h("div",{class:c.value},rt);ye.push(ph)}else qe&&ye.push(qe)}const he={default:()=>ye},Ot={...Ce(n,sr,ur,tl),prop:`${n.prop}_item`};return Ot.contentClass=`${i}__wrap`,Ot.errorMarkClass="is-table-error",k.value&&$()&&(Ot["appear-listen"]=!0,Ot.onAppear=G),l.h(o,Ot,he)}}}}const{componentName:Ru,create:Au,scope:Lu}=ie("table-item"),ll=Au(Du(Ru,Lu,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Bu=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=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function _u(){const e=l.getCurrentInstance();return new Bu(e.proxy)}function cr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ct(e,t),r=ct(e,o);if(n!==r)return!1;const a=Et(e,t),s=Et(e,o);return a===s}function qu(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 s=!1;if(o==="text")s=ct(e,a)===t;else if(o==="item")s=cr(e,a,t);else{let i=Et(e,a);i==null&&(i=ct(e,a)),s=i===t}if(s){r=a;break}}return r}function Pu(e){return{text:e,value:e}}function ju(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const fr={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 zu(e,t,o){return{inheritAttrs:!0,props:{...ve,...Ee,...fr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(L,M,k,N=!0)=>{const x=qu(n,L,M,k);if(x===null){if(f.value===null)return;f.value=null,u.value=null,N&&(i("update:modelValue",null),i("change",null));return}if(!cr(n,x,f.value)){u.value=L;const C=l.toRaw(x);f.value=C;let O=null;n.valueType==="text"?O=ct(n,C):n.valueType==="item"?O=C:O=Et(n,C),N&&(i("update:modelValue",O),i("change",O))}},d=l.ref([]),v=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,L=>se(L)),I=_u(),g=async(L,M)=>{if(L){const k=await I.load("radio",L,M);if(k.length>0)if(typeof k[0]=="string"){let z=k.map(C=>Pu(C));d.value=z}else d.value=k}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!v.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([L,M])=>{c(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),E=L=>{c(L,"value",d.value,!0)};let q=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,M)=>{const k=[];return L.forEach((N,x)=>{const z=Et(n,N),C=ct(n,N);let O=Mu(n,N);a.value===!0&&(O=a.value),s.value===!0&&(O=s.value);const D=ju(n,N,x)??{},G=`${z}_${x}`,Y={...D,key:G,label:z,size:n.size,border:se(n.border)};O&&(Y.disabled=O),n.itemType==="button"?k.push(l.h(b.ElRadioButton,Y,{default:()=>[C]})):typeof M=="function"?k.push(l.h(b.ElRadio,Y,{default:()=>M(N)})):k.push(l.h(b.ElRadio,Y,{default:()=>[C]}))}),k};return()=>{const M={...je(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:E},k=[],N={};r.slots.options?N.default=r.slots.options:N.default=()=>A(d.value,r.slots.text);const x=l.h(b.ElRadioGroup,M,N);k.push(x);const z={default:()=>k};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const O={...Ce(n,fr),hintText:q.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(O["appear-listen"]=!0,O.onAppear=m),l.h(o,O,z)}}}}const{componentName:Hu,create:Ku,scope:Wu}=ie("radio-item"),ol=Ku(zu(Hu,Wu,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Yu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Gu=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=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Uu(){const e=l.getCurrentInstance();return new Gu(e.proxy)}function dr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ft(e,t),r=ft(e,o);if(n!==r)return!1;const a=dt(e,t),s=dt(e,o);return a===s}function Xu(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 s of n){let i=!1;if(o==="text")i=ft(e,s)===a;else if(o==="item")i=dr(e,s,a);else{let u=dt(e,s);u==null&&(u=ft(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function Zu(e){return{text:e,value:e}}function Ju(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const hr={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 Qu(e,t,o){return{inheritAttrs:!0,props:{...ve,...Ee,...hr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(L,M,k,N=!0)=>{const x=Xu(n,L,M,k);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],N&&(i("update:modelValue",[]),i("change",[]));return}let z=!0;if(x.length!==f.value.length)z=!1;else for(let C=0;C<x.length;C++){const O=x[C],D=f.value[C];if(!dr(n,O,D)){z=!1;break}}if(!z){f.value=x;let C=[],O=[];x.forEach(G=>{C.push(dt(n,G)),n.valueType==="text"?O.push(ft(n,G)):n.valueType==="item"?O.push(G):O.push(dt(n,G))}),u.value=C;const D=l.toRaw(O);N&&(i("update:modelValue",D),i("change",D))}},d=l.ref([]),v=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,L=>se(L)),I=Uu(),g=async(L,M)=>{if(L){const k=await I.load("checkbox",L,M);if(k.length>0)if(typeof k[0]=="string"){let z=k.map(C=>Zu(C));d.value=z}else d.value=k}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!v.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([L,M])=>{c(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),E=L=>{c(L,"value",d.value,!0)};let q=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,M)=>{const k=[];return L.forEach((N,x)=>{const z=dt(n,N),C=ft(n,N);let O=Yu(n,N);a.value===!0&&(O=a.value),s.value===!0&&(O=s.value);const D=Ju(n,N,x)??{},G=`${z}_${x}`,Y={...D,key:G,class:n.itemClass,label:z,size:n.size,border:se(n.border)};O&&(Y.disabled=O),n.itemType==="button"?k.push(l.h(b.ElCheckboxButton,Y,{default:()=>[C]})):typeof M=="function"?k.push(l.h(b.ElCheckbox,Y,{default:()=>M(N)})):k.push(l.h(b.ElCheckbox,Y,{default:()=>[C]}))}),k};return()=>{const M={...je(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:be(n.max),min:be(n.min),onChange:E},k=[],N={};r.slots.options?N.default=r.slots.options:N.default=()=>A(d.value,r.slots.text);const x=l.h(b.ElCheckboxGroup,M,N);k.push(x);const z={default:()=>k};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const O={...Ce(n,hr),hintText:q.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(O["appear-listen"]=!0,O.onAppear=m),l.h(o,O,z)}}}}const{componentName:ec,create:tc,scope:nc}=ie("checkbox-item"),rl=tc(Qu(ec,nc,we)),gr={modelValue:{type:[Number,String],required:!1}};function lc(e,t,o){return{props:{...ve,...Ee,...gr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>be(h),i),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let v=de(n,"hintText"),I=l.ref(!1);const g=l.ref();return xe({}),()=>{const m={...je(r.attrs),ref:g,class:c.value,readonly:s.value||a.value,modelValue:u.value,onChange:d},$={},w=[],E=l.h(b.ElRate,m,$);w.push(E);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,gr),hintText:v.value,hintVisible:I.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:oc,create:rc,scope:ac}=ie("rate-item"),al=rc(lc(oc,ac,we)),mr={modelValue:{type:[Boolean,String,Number],required:!1}};function ic(e,t,o){return{props:{...ve,...Ee,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",null,i),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let v=de(n,"hintText"),I=de(n,"hintVisible");const g=l.ref();return xe({}),()=>{const m={...je(r.attrs),ref:g,class:c.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:d},$={},w=[],E=l.h(b.ElSwitch,m,$);w.push(E);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,mr),hintText:v.value,hintVisible:I.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:sc,create:uc,scope:cc}=ie("switch-item"),il=uc(ic(sc,cc,we)),pr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function fc(e,t,o){return{props:{...ve,...Ee,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=de(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),v=_=>{u("update:modelValue",_),u("change",_)};let I=de(n,"hintText"),g=l.ref(!1);const h=_=>{let L=_.target.value;i.value=!0,ge(I.value)||(g.value=!0),u("focus",L,_)},m=_=>{setTimeout(()=>{g.value&&(g.value=!1),i.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,_)},$=()=>{u("clear","")},w=l.ref(!1),E=_=>{w.value=_,u("visible-change",_),_||u("selected")},q=l.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...je(r.attrs),ref:q,class:d.value,disabled:a.value||s.value,modelValue:f.value,"onUpdate:modelValue":v,onClear:$,onFocus:h,onBlur:m,onVisibleChange:E},L={};r.slots.option&&(L.default=r.slots.option);const M=[],k=l.h(b.ElTreeSelect,A,L);M.push(k);const N={default:()=>M};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const z={...Ce(n,pr),hintText:I.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,z,N)}}}}const{componentName:dc,create:hc,scope:gc}=ie("tree-select-item"),sl=hc(fc(dc,gc,we)),mc={},pc={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"},yc=[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)];function bc(e,t){return l.openBlock(),l.createElementBlock("svg",pc,yc)}const vc=Me(mc,[["render",bc]]),{componentName:Dh,create:wc,scope:Rh}=ie("group-setting"),Sc={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:"到底部"}},xc=wc({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:vc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...Sc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=ir(),i=F=>F.length>1,u=()=>{const F=[],S=[...a.value];a.value=S.map((V,y)=>(V.visible!==!1&&F.push(V.prop),{...V,sortIndex:y})),a.value.length===F.length?h.value=!0:F.length>0&&(m.value=!0),E.value=F},f=F=>{let S=null;if(typeof F=="string")S=document.querySelectorAll(`.fox-group[prop="${F}"] > div > .fox-item[prop]`);else if(F&&typeof F=="object"){const V=F.$el??F;typeof V.querySelectorAll=="function"&&(S=V.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const R=[];return S.forEach(V=>{const y=V.querySelector(".label--string");let W="";y&&(W=y.textContent??"");const j=V.getAttribute("prop")??"",B=window.getComputedStyle(V,null).getPropertyValue("display");R.push({label:W,prop:j,sortIndex:0,visible:B!=="none"})}),R},c=()=>{if(!r){const F=f(e.groupRef??e.groupProp);if(F.length===0)return!1;r=F}return!0},d=async(F=!1)=>{const S=await s.load(e.groupProp),R=V=>{if(!V||!r)return;const y=r.map(W=>({...W}));Array.isArray(S)&&S.forEach(W=>{y.some(j=>{if(j.prop===W.prop){const P=j.label;return Object.assign(j,W),j.label=P,!0}return!1})}),a.value=y.sort((W,j)=>W.sortIndex-j.sortIndex),u(),F&&I(!1)};r?R(!0):jt(c,e.initDelay,5,50,!1,R)},v=()=>{const F=r??[];a.value=F.map(S=>({...S})),u(),I()},I=(F=!0)=>{F&&s.save(e.groupProp,a.value);const S=a.value.map(R=>({...R}));t("change",S)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),$=F=>{const S=[];a.value.forEach(V=>{F&&S.push(V.prop),V.visible=F}),h.value=!1,m.value=!1,a.value.length===S.length?h.value=!0:S.length>0&&(m.value=!0),E.value=S,I()},w=()=>{v()},E=l.ref([]),q=F=>{a.value.forEach(R=>{const V=F.indexOf(R.prop)!==-1;R.visible=V}),h.value=!1,m.value=!1;const S=a.value.length;F.length===S?h.value=!0:F.length>0&&(m.value=!0),I()},_=()=>{d()};l.onMounted(()=>{d(!0)});const A={currentRow:null,index:null},L=F=>F?F.dataset&&F.dataset.role==="row"?F:F.tagName.toLowerCase()!=="body"?(F=F.parentElement,L(F)):null:null,M=F=>{const S=F.currentTarget;S&&S.dataset&&(A.index=S.dataset.index)},k=F=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},N=F=>{const S=F.currentTarget;F.relatedTarget;const R=L(S);R&&(F.preventDefault(),A.currentRow&&A.currentRow!==R&&A.currentRow.classList.remove("is-dragover"),R.classList.add("is-dragover"),A.currentRow=R)},x=F=>{F.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},z=F=>{const S=F.currentTarget,R=L(S);if(!R)return;F.preventDefault();const V=Number(A.index),y=Number(R.dataset.index);if(V!==y){if(V<y){const W=a.value[V];a.value.splice(V,1),a.value.splice(y,0,W)}else{const W=a.value[V];a.value.splice(V,1),a.value.splice(y+1,0,W)}u(),I()}},C=F=>{const S=a.value[F];a.value.splice(F,1),a.value.splice(0,0,S),u(),I()},O=F=>{const S=a.value[F];a.value.splice(F,1),a.value.push(S),u(),I()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let G=null;function Y(F){const S=document.createRange();return S.setStart(F,0),S.setEnd(F,F.childNodes.length),S.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:$,handleReset:w,checkedValue:E,handleCheckChange:q,onShow:_,onDragStart:M,onDragEnd:k,onDragOver:N,onDragLeave:x,onDrop:z,checkboxLabelStyle:g,toTop:C,toBottom:O,onMouseOverForOverflowText:(F,S,R)=>{const V=F.currentTarget;if(V){const y=Math.floor(V.offsetWidth);if(Math.floor(Y(V))>y){let j=D.get(S);if(j){if(j===G)return;Ve.hide(j)}j=Ve.show(V,R,{type:"text",placement:"top",closeOnClick:!1}),D.set(S,j),G=j}}},onMouseLeaveForOverflowText:(F,S)=>{const R=D.get(S);R&&(Ve.hide(R),R===G&&(G=null))},onMouseOverForTip:(F,S)=>{const R=F.currentTarget;R&&(G&&Ve.hide(G),G=Ve.show(R,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:F=>{G&&(Ve.hide(G),G=null)}}}}),Tc={class:"fox-group-setting"},$c={class:"fox-group-setting__header"},Cc={class:"fox-group-setting__body"},Nc={class:"fox-group-setting__body-list","data-role":"container"},Ec=["data-index","draggable"],kc=["onMouseover","onMouseleave"],Ic={class:"tools-item"};function Oc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,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",Tc,[l.createElementVNode("div",$c,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=I=>e.isCheckAll=I),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Cc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=I=>e.checkedValue=I),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Nc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,I=>(l.openBlock(),l.createElementBlock("div",{key:I.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":I.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(s,{class:"checkbox-item",label:I.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,I.prop,I.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,I.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(I.label),45,kc)]),_:2},1032,["label"]),l.createElementVNode("div",Ic,[l.createVNode(c,{onClick:g=>e.toTop(I.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(I.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,Ec))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ul=Me(xc,[["render",Oc]]),Vc=["aria-labelledby"],Fc=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),Dc=[Fc],Rc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Dc,14,Vc))}}),Ac=["aria-labelledby"],Lc=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),Mc=[Lc],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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mc,14,Ac))}}),Bc=["aria-labelledby"],_c=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),qc=[_c],Pc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},qc,14,Bc))}}),jc=["aria-labelledby"],zc=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),Hc=[zc],Kc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Hc,14,jc))}}),Wc=["aria-labelledby"],Yc=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),Gc=[Yc],Uc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Wc))}}),Xc={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}},yr=(e,t)=>t[e.textKey],kt=(e,t)=>t[e.valueKey],Zc=(e,t)=>t[e.visibleKey],br=(e,t)=>t[e.disabledKey],Jc=(e,t)=>{const o=t[e.doitKey];return se(o)},Qc=(e,t)=>{const o=t[e.numKey];return o==null?null:be(t[o])},vr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function ef(e,t,o,n=!1){return{props:{...Xc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const F={};return F[`${e}`]=!0,F}),u=l.computed(()=>{const F={};return F[`${e}__titles`]=!0,F[`${r.direction}`]=!0,r.align==="left"&&(F.left=!0),r.scroll===!0&&(F.scrollable=!0),r.shape&&(F[`${r.shape}`]=!0),F}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const F=fe(r.gutter);return F<=0?0:F}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,F=>{d.value!==F&&(d.value=F,Y(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),I=l.computed(()=>{const F={};return h.value||(F.display="none"),F}),g=l.ref(),h=l.ref(!1),m=()=>{const F=!h.value;$(F)},$=F=>{const S=F;S?(h.value=S,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),E=l.ref([]),q=(F,S)=>{E.value[S]=F},_=F=>S=>{q(S,F)},A=(F,S)=>{const R=w.value,V=E.value;if(!R||!V||!V[F])return;const y=V[F];let W=0;r.direction==="vertical"?W=y.offsetTop-(R.offsetHeight-y.offsetHeight)/2:W=y.offsetLeft-(R.offsetWidth-y.offsetWidth)/2,L(R,W,S?0:.3,r.direction)},L=(F,S,R,V)=>{let y=0;const W=V==="horizontal"?F.scrollLeft:F.scrollTop,j=R===0?1:Math.round(R*1e3/16);function P(){V==="horizontal"?F.scrollLeft+=(S-W)/j:F.scrollTop+=(S-W)/j,++y<j&&vn(P)}P()},M=(F,S)=>{const R=kt(r,F),V={};return V[`${e}__titles-item`]=!0,V.disabled=br(r,F),V.active=R===d.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),S&&(S.class&&(V[`${S.class}`]=!0),S.disabled===!0&&(V.disabled=S.disabled)),V},k=(F,S)=>{const R={};if(c.value>0){const V=Math.abs(c.value/2);r.direction==="vertical"?(R["margin-top"]=`${V}px`,R["margin-bottom"]=`${V}px`):(R["margin-left"]=`${V}px`,R["margin-right"]=`${V}px`)}return S&&S.style&&Object.assign(R,S.style),R},N=(F,S)=>`${kt(r,F)??S}`,x=(F,S)=>{const R=kt(r,F),V={};V[`${e}__popup-item`]=!0,V.disabled=br(r,F),V.active=R===d.value,r.shape&&(V[`${r.shape}`]=!0);const y=vr(r,F,S);return y&&y.disabled===!0&&(V.disabled=y.disabled),V},z=l.computed(()=>(r.data??[]).filter(S=>Zc(r,S)!==!1)),C=(F,S)=>{const R=kt(r,F);if(d.value==R)return;const V=()=>{d.value=R,r.scroll&&A(S,!1),s("update:modelValue",R),s("change",F,S)};if(typeof r.beforeChange=="function"){const y=r.beforeChange(F,S);Ul(y)?y.then(W=>{W!==!1&&V()}).catch(()=>{V()}):y!==!1&&V()}else V()},O=(F,S)=>function(){C(F,S)},D=(F,S)=>{C(F,S),$(!1)},G=(F,S)=>function(){D(F,S)},Y=F=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(R=>kt(r,R)===d.value);S!==-1&&A(S,F)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const J=(F,S)=>{if(a.item)return a.item({item:F,index:S});const R=vr(r,F,S),V=[];if(a.text){const P=a.text({item:F,index:S});V.push(P)}else{const P=[];if(R?.doit===!0||Jc(r,F)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ee=l.h("view",Q);P.push(ee)}const B=R?.num??Qc(r,F);if(B){let Q="";const ee=be(B);ee>=100?Q="99+":Q=`${ee}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Q]);P.push(K)}const U={class:`${e}__titles-item-text`};P.push(yr(r,F));const H=l.h("view",U,P);V.push(H)}const y={class:`${e}__titles-item-line`},W=l.h("view",y);V.push(W);const j={ref:_(S),class:M(F,R),style:k(F,R),key:N(F,S),onClick:O(F,S)};return l.h("view",j,V)},Z=()=>{const F=a.default?a.default():[];if(F.length===0)for(let R=0;R<z.value.length;R++){const V=z.value[R],y=J(V,R);F.push(y)}const S={ref:w,class:u.value,style:f.value};return l.h("view",S,F)},te=()=>{let F=null;a.navigation?F=a.navigation():F=l.h(o);const S={class:`${e}__navigation`,onClick:m};return l.h("view",S,[F])},re=()=>{const F=[];for(let R=0;R<z.value.length;R++){const V=z.value[R];let y=null;a.popupItem?y=a.popupItem({item:V,index:R}):y=yr(r,V);const W={class:x(V,R),key:N(V,R),onClick:G(V,R)},j=l.h("view",W,[y]);F.push(j)}const S={class:v.value,style:I.value};return l.h("view",S,F)};return()=>{const F=[],S=Z();if(F.push(S),r.showQuickNavigation){const V=te();F.push(V);const y=re();F.push(y)}const R={class:i.value};return l.h("view",R,F)}}}}const{create:tf,componentName:nf,scope:lf}=ie("tabs-bar"),fl=tf(ef(nf,lf,Rc,!1)),wr=Symbol("TabsStatesKey"),of={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function rf(e,t,o=!1){return{props:{...of},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};i.current.value===h&&(m.loaded=!0),s.value.push(m),l.triggerRef(s)},remove:h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&s.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=s.value.findIndex($=>$.name===h);return m!==-1?i.current.value?s.value[m].loaded??!1:m===0:!1}};l.provide(wr,i);const u=h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&(s.value[m].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==m&&(i.direction.value=m)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const I=l.computed(()=>{const h={},m=s.value.length;if(m<=0)return h;const $=s.value.findIndex(w=>w.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${m*i.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${m*i.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const m=Gt(f.value);i.tabWidth.value=m.width,i.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:I.value,ref:c},m=l.h("view",h,[a?.default?.()]),$={class:d.value,ref:f};return l.h("view",$,[m])}}}}const{create:af,componentName:sf,scope:uf}=ie("tabs-container"),dl=af(rf(sf,uf,!1)),cf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function ff(e,t,o){return{props:{...cf},setup(n,{emit:r,slots:a}){const s=l.inject(wr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const f={};return s.direction.value==="vertical"&&s.tabHeight.value>0?f.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(f.width=`${s.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?se(n.loaded):s.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`},v=n.emptyIcon??o,I=l.h(v,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),$={class:`${e}__empty`},w=l.h("view",$,[I,m]);f.push(w)}const c={class:`${e}`,style:i.value};return l.h("view",c,f)}}}}const{create:df,componentName:hf,scope:gf}=ie("tabs-pane"),hl=df(ff(hf,gf,cl)),mf={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 Sr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function xr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function yf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function gl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Tr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function $r(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function ml(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class bf{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=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function vf(){const e=l.getCurrentInstance();return new bf(e.proxy)}function wf(e,t,o,n){return{props:{...mf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=vf(),f=l.ref([]),c=l.computed(()=>f.value.filter(S=>yf(r,S)!==!1)),d=l.ref(-1),v=()=>{const S=r.modelValue,R=c.value.findIndex(V=>Sr(r,V)===S);d.value!==R&&(d.value=R,r.scroll&&re(R,!1))};l.watch([()=>r.modelValue,c],()=>{v()});const I=S=>d.value===S,g=S=>{if(S<0&&S>=c.value.length)return!1;const R=c.value[S],y=(ml(r,R,S)??{}).status??gl(r,R);return I(S)||y},h=l.computed(()=>{const S={[i]:!0};return r.mode?S[`is-${r.mode}`]=!0:r.direction&&(S[`is-${r.direction}`]=!0),r.scroll&&(S["is-scroll"]=!0),S}),m=l.computed(()=>({})),$=(S,R,V,y,W)=>{const j={[`${i}__step`]:!0};return W&&(j[`${W}`]=!0),j[`${w.value}`]=!0,y&&(j["is-doit"]=!0),S===d.value?j["is-active"]=!0:R==="done"?j["is-done"]=!0:R==="error"?j["is-error"]=!0:R==="half"?j["is-half"]=!0:V?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=l.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),E=(S,R={})=>{const V={...R};return w.value==="start"&&S===c.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},q=(S,R)=>{let V={};if(R<c.value.length-1){const y=R+1;g(R)&&g(y)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},_=S=>c.value.length-1===S,A=(S,R)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&R>d.value||d.value===R)return;const V=d.value,y=R;d.value=R,r.scroll&&re(R,!1);const W=Sr(r,S);s("update:modelValue",W);const j={fromIndex:V,currentIndex:y,item:S,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",W,j)},L=l.ref(!0),M=async(S,R)=>{try{const V=await u.load("stesbar",S,R);Array.isArray(V)&&(f.value=V),L.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([S,R])=>{S&&M(S,R)},{immediate:!0});const k=(S,R,V,y,W)=>{let j=null;if(a.icon)j=a.icon({item:S,index:R,status:y});else if(y==="done"){const B={};r.iconSize&&(B.width=r.iconSize,B.height=r.iconSize);const U=r.icon??o;j=l.h(U,B)}else{const B=V??`${R+1}`;j=l.h("span",{},[B])}const P={class:"fox-steps-bar__icon",onClick:()=>{W||A(S,R)}};return l.h("view",P,[j])},N=(S,R,V)=>{const y=l.h("i",{class:"fox-steps-bar__line-inner",style:q(S,R)});return l.h("view",{class:"fox-steps-bar__line"},[y])},x=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const y=r.markIcon??n;S=l.h(y,V)}return l.h("view",{class:"fox-steps-bar__mark"},[S])},z=(S,R,V,y,W)=>{const j=[];if(!_(R)){const U=N(S,R);j.push(U)}const P=k(S,R,V,y,W);j.push(P);const B={class:"fox-steps-bar__head"};return l.h("view",B,j)},C=(S,R,V,y)=>{let W=null;a.main?W=a.main({item:S,index:R,status:V}):W=pf(r,S);const j={class:"fox-steps-bar__main",onClick:()=>{y||A(S,R)}};return l.h("view",j,[W])},O=(S,R,V)=>{let y=null;if(a.sub){y=a.sub({item:S,index:R,status:V});const W={class:"fox-steps-bar__sub"};return l.h("view",W,[y])}return null},D=(S,R)=>{const V=ml(r,S,R)??{},y=V.status??gl(r,S);let W=xr(r,S);V.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const j=V.label??$r(r,S),P=[],B=k(S,R,j,y,W);B&&P.push(B);const U=C(S,R,y,W);if(U&&P.push(U),!_(R)){const ne=N(S,R);ne&&P.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},P),Q=V.class,ee=V.style??{};let T=Tr(r,S);V.doit===!0&&(T=!0);const K={ref:te(R),class:$(R,y,W,T,Q),style:E(R,ee)};return l.h("view",K,[H])},G=(S,R)=>{const V=ml(r,S,R)??{},y=V.status??gl(r,S);let W=xr(r,S);V.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const j=V.label??$r(r,S),P=[],B=r.layout;for(let T of B)if(T==="head"){const K=z(S,R,j,y,W);P.push(K)}else if(T==="main"){const K=C(S,R,y,W);P.push(K)}else if(T==="sub"){const K=O(S,R,y);P.push(K)}else if(T==="mark"){const K=x();P.push(K)}const U=V.class,H=V.style??{};let Q=Tr(r,S);V.doit===!0&&(Q=!0);const ee={ref:te(R),class:$(R,y,W,Q,U),style:E(R,H)};return l.h("view",ee,P)},Y=l.ref(),J=l.ref([]),Z=(S,R)=>{J.value[R]=S},te=S=>R=>{Z(R,S)},re=(S,R)=>{const V=Y.value,y=J.value;if(!V||!y||!y[S])return;const W=y[S];let j=0;r.direction==="vertical"?j=W.offsetTop-(V.offsetHeight-W.offsetHeight)/2:j=W.offsetLeft-(V.offsetWidth-W.offsetWidth)/2,F(V,j,R?0:.3,r.direction)},F=(S,R,V,y)=>{let W=0;const j=y==="horizontal"?S.scrollLeft:S.scrollTop,P=V===0?1:Math.round(V*1e3/16);function B(){y==="horizontal"?S.scrollLeft+=(R-j)/P:S.scrollTop+=(R-j)/P,++W<P&&vn(B)}B()};return()=>{const S=[];if(r.mode==="simple")for(let V=0;V<c.value.length;V++){const y=c.value[V],W=D(y,V);S.push(W)}else for(let V=0;V<c.value.length;V++){const y=c.value[V],W=G(y,V);S.push(W)}const R={ref:Y,class:h.value,style:m.value};return l.h("view",R,S)}}}}const{componentName:Sf,create:xf,scope:Tf}=ie("steps-bar"),pl=xf(wf(Sf,Tf,Kc,Uc)),$f=Symbol.for("InnerPageScopeKey"),Cf=Symbol.for("PageWrapperKey");function Nf(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(Cf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"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(b.ElDialog,f,c)}}}}const{componentName:Ah,create:Ef,scope:Lh}=ie("dialog-item"),yl=Ef(Nf());let It=0;const Cr="fox-overflow-hidden",Nr=()=>tt?document.body:{classList:[]},kf=e=>[()=>{if(e())try{!It&&Nr().classList.add(Cr),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&Nr().classList.remove(Cr)}catch{}}],If={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:Of,create:Vf}=ie("overlay"),Ff=Vf({props:{...If},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=kf(()=>e.lockScroll),r=l.computed(()=>({[Of]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,i=>{i?o():n()}),{classes:r,style:a,onClick:i=>{t("click",i),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Df(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((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const on=Me(Ff,[["render",Df]]),Rf={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:{}}},Er=2e3;let kr=Er;const Af=(e,t)=>({components:t,props:{...Rf},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})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Er&&(kr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++kr,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)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},I=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:s,transitionName:i,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:v,onOpened:I,onClosed:g}}}),{componentName:Lf,create:Mf}=ie("popup"),Bf=Mf(Af(Lf,{FoxOverLay:on,Close:Pc}));function _f(e,t,o,n,r,a){const s=l.resolveComponent("FoxOverLay"),i=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,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(i)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const bl=Me(Bf,[["render",_f]]),{create:qf}=ie("toast"),Pf=qf({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},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},i=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&s(),l.watch(()=>e.duration,I=>{I&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const I=fe(e.iconSize);return l.h(e.icon,{width:I,height:I,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:i,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),jf={key:1,class:"fox-toast-title"},zf=["innerHTML"];function Hf(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]=(...s)=>e.clickCover&&e.clickCover(...s))},[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",jf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,zf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const vl=Me(Pf,[["render",Hf]]),Kf={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"}},Wf=(e,t,o)=>({props:{...Kf},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}=bo(),{toLocaleRefs:s}=Re.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=k=>{let x=k.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,k),a("change",x,k)},v=l.ref({}),I=k=>{let x=k.target.value;u.active=!0,v.value=n.focusStyle,a("focus",x,k)},g=k=>{setTimeout(()=>{u.active=!1},0);let x=k.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),v.value={},a("blur",x,k)},h=k=>{a("update:modelValue","",k),a("change","",k),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const k={};return m.value||(k.display="none"),k}),w=()=>{a("search",n.modelValue)},E=k=>{a("keyup-input",k),k.key.toLocaleUpperCase()==="ENTER"&&w()},q=k=>{a("click-input",k)},_=k=>{a("click-left-icon",n.modelValue,k)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const k=[];if(r.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},D=l.h("view",O,[r.leftin()]);k.push(D)}const N={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:d,onFocus:I,onBlur:g,onkeyup:E},x=l.h("input",N);k.push(x);const z=[];if(n.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,G=l.h("view",O,[l.h(D)]);z.push(G)}if(r.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",O,[r.rightin()]);z.push(D)}if(z.length>0){const O={class:`${e}__input-inner-right`},D=l.h("view",O,z);k.push(D)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...v.value}};return l.h("view",C,k)};return()=>{const k=[];if(n.label){const z={class:`${e}__search-label`},C=l.h("span",z,[n.label]);k.push(C)}if(r.leftout){const z={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=l.h("view",z,[r.leftout()]);k.push(C)}const N=M();if(k.push(N),r.rightout){const z={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=l.h("view",z,[r.rightout()]);k.push(C)}const x={class:`${e}`,style:f.value};return l.h("view",x,k)}}}),{componentName:Yf,create:Gf,scope:Uf}=ie("searchbar"),wl=Gf(Wf(Yf,Uf,Te.CircleClose)),Xf=/scroll|auto|overlay/i,Ir=window;function Zf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Jf(e,t=Ir){let o=e;for(;o&&o!==t&&Zf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Xf.test(n))return o;o=o.parentNode}return t}function Or(e,t=Ir){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Jf(e.value,t))}),o}const Vr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Qf={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 ed(e,t,o){return{props:{...Qf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Re.useFoxI18n(t),i=s(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Or(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,I=()=>{let w=0,E=0,q="down";if(f.value==window){const _=Vr();u.value&&(w=v(u.value)+u.value.offsetHeight-_-window.innerHeight),E=_}else{const{scrollHeight:_,clientHeight:A,scrollTop:L}=f.value;w=_-A-L,E=L}return c.beforeScrollTop>E?q="up":q="down",c.beforeScrollTop=E,r("scroll-change",E),w<=n.threshold&&q=="down"},g=()=>{_l(()=>{if(!I()||!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 $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,m()}),l.watch(()=>n.modelValue,w=>{w||(c.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},E=l.h("view",w,[a?.default?.()]),q=[];if(c.isInfiniting){let M=a?.loading?.()??null;if(!M){let x=a?.loadingIcon?.()??null;if(!x){const O={class:["fox-infinite__bottom-box__img"]};x=l.h(o,O)}const z={class:"fox-infinite__bottom-box__text"},C=l.h("view",z,[i.loadText.value]);M=[x,C]}const k={class:"fox-infinite__bottom-box"},N=l.h("view",k,M);q.push(N)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const k={class:"fox-infinite__bottom-tips"};M=l.h("view",k,[i.loadMoreText.value]),q.push(M)}}const _={class:"fox-infinite__bottom"},A=l.h("view",_,q),L={class:d.value,ref:u};return l.h("view",L,[E,A])}}}}const{componentName:td,create:nd,scope:ld}=ie("infinite-loading"),Sl=nd(ed(td,ld,cl)),Fr=10;function Dr(e,t){return e>t&&e>Fr?"horizontal":t>e&&t>Fr?"vertical":""}function xl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Tl(){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:s=>{if(s.touches){const f=s.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=s;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=Dr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const f=s.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function od(){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),s=l.ref(0),i=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",v=()=>c.value==="horizontal",I=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:m=>{if(m.touches){const E=m.touches[0];s.value=E.clientX-e.value,i.value=E.clientY-t.value,r.value=E.clientX,a.value=E.clientY}else{const w=m;s.value=w.clientX-e.value,i.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=Dr(u.value,f.value))},start:m=>{if(I(),m.touches){const E=m.touches[0];e.value=E.clientX,t.value=E.clientY}else{const w=m;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:I,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:v}}const rd={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}},ad=(e,t,o)=>({props:{...rd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Re.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=Tl(),f=l.ref(),c=Or(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),I=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ne(n.headHeight)),L}),m=L=>{const M=+(n.pullDistance||n.headHeight);let k=L;return L>M&&(L<M*2?k=(L+M)/2:k=M+L/4),Math.round(k)},$=(L,M)=>{const k=+(n.pullDistance||n.headHeight);d.distance=L,M?d.status="loading":L===0?d.status="normal":L<k?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:L})},w=()=>d.status!=="loading"&&d.status!=="complete",E=()=>c.value==window?Vr()==0:c.value&&c.value.scrollTop==0,q=L=>{w()&&(E()?(u.start(L),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},_=L=>{w()&&d.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(m(u.state.deltaY))))},A=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(d.status==="loading"){if(M=a?.loading?.()??null,!M){const G={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,G)}}else d.status==="pulling"?M=a?.pulling?.()??null:d.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const k={class:["fox-pull-refresh-container-topbox-text"]},N=l.h("dive",k,[I.value]);L.push(N);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},z=l.h("div",x,L),C={class:"fox-pull-refresh-container",style:g.value},O=l.h("div",C,[z,a?.default?.()]),D={ref:f,class:v.value};return xl()?Object.assign(D,{onTouchstart:q,onTouchmove:_,onTouchend:A}):Object.assign(D,{onMousedown:q,onMousemove:_,onMouseup:A}),l.h("div",D,[O])}}}),{componentName:id,create:sd,scope:ud}=ie("pull-refresh"),$l=sd(ad(id,ud,cl));function cd(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})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),i=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:s.value,style:i.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},v=n.default?n.default():[],I=l.h("div",d,v),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[c,I]):l.h("div",g,[I,c])}}}}const{componentName:fd,create:dd,scope:Mh}=ie("indicator"),Cl=dd(cd(fd));function hd(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 gd={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 md(e,t,o,n=!1){return{props:{...gd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const E={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(E[`${e}--${r.type??"default"}`]=!0),r.size&&(E[`${e}--${r.size}`]=!0),E}),u=l.computed(()=>{const E={},q=r.textColor??r.color;return q&&(E.color=q),E}),f=(E,q)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(E.indexOf(A)!==-1){const M=E.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,_=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(E);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,_=l.h(r.tag,q))}return _},c=E=>{a.emit("click",E)};let d="";const v=()=>{const E=s.value;if(!E)return;const q=E.clientWidth;hd(E,_=>{const A=E.innerHTML??"";ge(A)||_<q||(d?o?.show(E,A,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(E,A,{type:"text",showArrow:r.showArrow},!0)??"")})},I=()=>{d&&o?.hide(d)};let g=null;const h=E=>{g||(g=setTimeout(()=>{v(),g=null},r.showAfter??0))},m=E=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{I()},r.hideAfter??0)},$=()=>{const E=s.value;E&&(E.addEventListener("mouseover",h),E.addEventListener("mouseleave",m))},w=()=>{const E=s.value;E&&(E.removeEventListener("mouseover",h),E.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||w()}),()=>{const E={onClick:c,class:i.value,style:u.value,ref:s};let q=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const k=M[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const N=be(r.digits),x=be(r.decimalLength),z=se(r.autoPadding);let C=`${M[0].children}`,O=C.split("").reverse().join("");O=Rt(O,x,z,N,r.separator),C=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=f(C,E)),q||(E.innerHTML=C,q=l.h(r.tag,E))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const k=M[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const N=`${M[0].children}`;q=f(N,E),q||(E.innerHTML=N,q=l.h(r.tag,E))}}}q||(q=l.h(r.tag,E,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const k={},N=r.color;N&&(k.color=N);const x={class:M,style:k};A=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const k={},N=r.color;N&&(k.color=N);const x={class:M,style:k};A=l.h("view",x,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const k={},N=r.color;N&&(k["background-color"]=N);const x={class:M,style:k};A=l.h("view",x)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,q])}}}}const{componentName:pd,create:yd,scope:bd}=ie("text"),Nl=yd(md(pd,bd,Ve,!1)),vd={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:Te.ArrowUp}};function wd(e,t,o){return{props:{...vd},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}),s=de(n,"modelValue"),i=l.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{r("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const h={class:u.value},m=l.h("span",h,[i.value]);d.push(m)}const v={class:f.value},I=o(n.icon,v);return I&&d.push(I),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Sd,create:xd,scope:Td}=ie("more-button"),El=xd(wd(Sd,Td,(e,t)=>(e=e??Te.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function $d(e){return e===window}const Rr=e=>{const t=l.unref(e);if($d(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:Cd,create:Nd,scope:_h}=ie("tour"),Ed=Nd({components:{Close:Te.Close,ElPopover:b.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=Cd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:$,height:w,left:E,top:q}=r.value,_=e.steps[n.active].offset??g,A=[E+$/2,q+w/2],L=Number(h||$),M=Number(m||w);return{width:`${L+ +_.left+_.right}px`,height:`${M+_.top+_.bottom}px`,top:`${A[1]-M/2-+_.top}px`,left:`${A[0]-L/2-+_.left}px`}}),i=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=Rr(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)},v=()=>{e.closeOnClickOverlay&&d()},I=(g,h=0)=>{g&&c(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{I(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{I(g)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:v}}}),kd={key:0,class:"fox-tour__content"},Id={key:0,class:"fox-tour__content-top"},Od={class:"fox-tour__content-inner"},Vd={class:"fox-tour__content-bottom"},Fd={class:"fox-tour__content-bottom-init"},Dd={class:"fox-tour__content-bottom-operate"},Rd={key:1,class:"fox-tour__content fox-tour__content-tile"},Ad={class:"fox-tour__content-inner"};function Ld(e,t,o,n,r,a){const s=l.resolveComponent("Close"),i=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",Id,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Od,l.toDisplayString(f.content),1),l.createElementVNode("div",Vd,[l.createElementVNode("div",Fd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Dd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(i,{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(i,{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(i,{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",Rd,[l.createElementVNode("div",Ad,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const kl=Me(Ed,[["render",Ld]]),Fe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ot=e=>e==null;class Md{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=xl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Tl(),n=(r,a,s,i)=>{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 Ar(e,t){return new Md(e,t)}var Lr;const Il=typeof window<"u";Il&&((Lr=window?.navigator)!=null&&Lr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Mr=e=>{const t=e;t.key==="Escape"&&ht.forEach(o=>o(t))},Bd=e=>{l.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Mr),Il&&ht.push(e)}),l.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&Il&&document.removeEventListener("keydown",Mr)})},Ol="fox-focus-trap.focus-after-trapped",Vl="fox-focus-trap.focus-after-released",_d="fox-focus-trap.focusout-prevented",Br={cancelable:!0,bubbles:!1},qd={cancelable:!0,bubbles:!1},_r="foxFocusAfterTrapped",qr="foxFocusAfterReleased",Pd=Symbol("foxFocusTrap"),Fl=l.ref(),rn=l.ref(0),Dl=l.ref(0);let an=0;const Pr=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},jd=(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},jr=(e,t)=>{for(const o of e)if(!jd(o,t))return o},zd=e=>{const t=Pr(e),o=jr(t,e),n=jr(t.reverse(),e);return[o,n]},Hd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Dl.value=window.performance.now(),e!==o&&Hd(e)&&t&&e.select()}};function zr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Kd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=zr(e,n),e.unshift(n)},remove:n=>{e=zr(e,n),e[0]?.resume?.()}}},Wd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==o)return},Hr=Kd(),Yd=()=>rn.value>Dl.value,sn=()=>{Fl.value="pointer",rn.value=window.performance.now()},Kr=()=>{Fl.value="keyboard",rn.value=window.performance.now()},Gd=()=>(l.onMounted(()=>{an===0&&(document.addEventListener("mousedown",sn),document.addEventListener("touchstart",sn),document.addEventListener("keydown",Kr)),an++}),l.onBeforeUnmount(()=>{an--,an<=0&&(document.removeEventListener("mousedown",sn),document.removeEventListener("touchstart",sn),document.removeEventListener("keydown",Kr))}),{focusReason:Fl,lastUserFocusTimestamp:rn,lastAutomatedFocusTimestamp:Dl}),un=e=>new CustomEvent(_d,{...qd,detail:e}),{componentName:qh,create:Ud,scope:Ph}=ie("focus-trap"),Xd=Ud({props:{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"}},emits:[_r,qr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=Gd();Bd(h=>{se(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||i.paused)return;const{key:m,altKey:$,ctrlKey:w,metaKey:E,currentTarget:q,shiftKey:_}=h,{loop:A}=e,L=m==="Tab"&&!$&&!w&&!E,M=document.activeElement;if(L&&M){const k=q,[N,x]=zd(k);if(N&&x){if(!_&&M===x){const C=un({focusReason:s.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(N,!0))}else if(_&&[N,k].includes(M)){const C=un({focusReason:s.value});o("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(x,!0))}}else if(M===k){const C=un({focusReason:s.value});o("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};l.provide(Pd,{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",v)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",v))});const f=h=>{o(_r,h)},c=h=>o(qr,h),d=h=>{const m=l.unref(n);if(!m)return;const $=h.target,w=h.relatedTarget,E=$&&m.contains($);se(e.trapped)||w&&m.contains(w)||(r=w),E&&o("focusin",h),!i.paused&&se(e.trapped)&&(E?a=$:Je(a,!0))},v=h=>{const m=l.unref(n);if(!(i.paused||!m))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!$n($)&&!m.contains($)&&setTimeout(()=>{if(!i.paused&&se(e.trapped)){const w=un({focusReason:s.value});o("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&m.contains($)||o("focusout",h)}};async function I(){await l.nextTick();const h=l.unref(n);if(h){Hr.push(i);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const w=new Event(Ol,Br);h.addEventListener(Ol,f),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let E=e.focusStartEl;Gl(E)||(Je(E),document.activeElement!==E&&(E="first")),E==="first"&&Wd(Pr(h),!0),(document.activeElement===m||E==="container")&&Je(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Ol,f);const m=new CustomEvent(Vl,{...Br,detail:{focusReason:s.value}});h.addEventListener(Vl,c),h.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!Yd())&&Je(r??document.body,!0),h.removeEventListener(Vl,f),Hr.remove(i)}}return l.onMounted(()=>{se(e.trapped)&&I(),l.watch(()=>e.trapped,h=>{se(h)?I():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Zd,create:Jd,scope:zh}=ie("floating-window"),Qd=Symbol.for("InnerPageScopeKey"),eh=Symbol.for("PageWrapperKey"),th={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}},nh=Jd({inheritAttrs:!1,components:{FoxIcon:b.ElIcon,FocusTrap:Xd},props:{...th},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Zd,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:!M.value),s=l.ref(e.left),i=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 ot(s.value)?T.left="auto":T.left=Fe(s.value),ot(i.value)?T.top="auto":T.top=Fe(i.value),ot(u.value)?T.right="auto":T.right=Fe(u.value),ot(f.value)?T.bottom="auto":T.bottom=Fe(f.value),ot(e.zIndex)||(T["z-index"]=Fe(e.zIndex)),ot(A.value)||(T.height=A.value),ot(L.value)||(T.width=L.value),T}),v=l.computed(()=>e.closeIcon??Te.Close),I=l.computed(()=>e.collapseIcon??Te.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),E=l.ref(),q=l.ref(null),_=l.ref(null),A=l.computed(()=>Fe(e.height)||""),L=l.computed(()=>Fe(e.width)||""),M=l.ref(se(e.collapse)),k=(T,K=!0)=>{M.value!==T&&(M.value=T,T?S():R(),t("update:collapse",T),T&&typeof z.onHide=="function"?z.onHide():!T&&typeof z.onShow=="function"&&z.onShow())};l.watch(()=>e.collapse,T=>{k(T)});const N=()=>{x()},x=T=>{T=T??!M.value,k(T)};l.provide(Qd,!0);const z={setCollapse:k,setFixedNavVisible:T=>{te.value=T}};l.provide(eh,z);const C=()=>{typeof z.beforeClose=="function"?z.beforeClose(()=>{n.value=!1}):n.value=!1},O=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),G=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}),Y=l.ref(""),J=l.computed(()=>{const T={};return Y.value?T.top=Y.value:e.collapseTop&&(T.top=e.collapseTop),T}),Z=l.ref(M.value),te=l.computed({set:T=>{Z.value=T},get:()=>n.value===!1?!1:Z.value});let re=null;const F=()=>{typeof re=="function"&&(re(),re=null)},S=()=>{O.value&&O.value.classList.add("slide-in"),te.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},R=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),te.value=!1}},V=()=>{s.value=null,i.value=null,u.value=null,f.value=null},y={x:0,y:0},P=Ar(T=>{if(!E.value)return;const K=E.value;if(V(),e.origin==="left-top")s.value=K.offsetLeft,i.value=K.offsetTop,y.x=s.value,y.y=i.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=K.offsetLeft,f.value=ne-(K.offsetTop+K.offsetHeight),y.x=s.value,y.y=f.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(K.offsetLeft+K.offsetWidth),f.value=le-(K.offsetTop+K.offsetHeight),y.x=u.value,y.y=f.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(K.offsetLeft+K.offsetWidth),i.value=K.offsetTop,y.x=u.value,y.y=i.value}},T=>{if(!E.value)return;const K=E.value;V(),e.origin==="left-top"?(s.value=y.x+T.x,i.value=y.y+T.y,K.style.left=Fe(s.value),K.style.top=Fe(i.value)):e.origin==="left-bottom"?(s.value=y.x+T.x,f.value=y.y-T.y,K.style.left=Fe(s.value),K.style.bottom=Fe(f.value)):e.origin==="right-bottom"?(u.value=y.x-T.x,f.value=y.y-T.y,K.style.right=Fe(u.value),K.style.bottom=Fe(f.value)):(u.value=y.x-T.x,i.value=y.y+T.y,K.style.right=Fe(u.value),K.style.top=Fe(i.value))}),B={x:0,y:0},Q=Ar(T=>{O.value&&(B.x=O.value.offsetLeft,B.y=O.value.offsetTop)},T=>{if(!O.value)return;const K=B.y+T.y;Y.value=`${K}px`}),ee=()=>{if(E.value){const T=E.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=T}};return l.onMounted(()=>{if(e.draggable&&E.value){const T=[];q.value&&T.push(q.value),e.footerDraggable&&(ee(),_.value&&T.push(_.value)),P.open(T)}e.collapse===!0&&k(e.collapse,!1),O.value&&Q.open(O.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&P.close(),O.value&&Q.close()}),{classes:c,styles:d,isShow:a,closeIcon:v,onClose:C,dialogRef:E,headerRef:q,onClickToggle:N,collapseIcon:I,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:m,isShowFixedNav:te,fixedNavRef:O,fixedNavClasses:G,fixedNavStyles:J,onAnimationEnd:F,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),lh={ref:"headerRef",class:"fox-floating-window__header"},oh={class:"fox-floating-window__title"},rh={class:"fox-floating-window__tools"},ah={class:"fox-floating-window__body"},ih={class:"fox-floating-window__fixednav__text"};function sh(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=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(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",lh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",oh,l.toDisplayString(e.title),1),l.createElementVNode("div",rh,[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(s,{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(s,{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",ah,[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(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",ih,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Rl=Me(nh,[["render",sh]]);function uh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return mo(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Hh,create:ch,scope:Kh}=ie("domain-provider"),Al=ch(uh()),fh={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 dh(e,t){return{inheritAttrs:!1,props:fh,setup(o,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(v,I)=>{if(c===null){a.set(v,{visible:null,callback:I});return}r.has(v)&&c.unobserve(v),r.set(v,{visible:null,callback:I}),c.observe(v)},i=v=>{if(c===null){a.delete(v);return}r.has(v)&&(r.delete(v),c.unobserve(v))};let u=o.initialVisibleObserverSize;Ja({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let c=null;const d=(v,I,g)=>{c=new IntersectionObserver(h=>{for(let m of h){let $=!1;m.intersectionRatio>0&&($=!0);const w=r.get(m.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(E){console.error(E)}}},{root:v,rootMargin:I,threshold:g}),a.forEach((h,m)=>{r.set(m,h),c?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,I])=>{if(I||!v||c)return;let g=null;typeof v=="string"?g=document.querySelector(v):g=v,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:Wh,create:hh,scope:Yh}=ie("rolling-provider"),Ll=hh(dh()),gh=[Vn,Dn,Rn,An,Bn,we,Pn,jn,$t,zn,Hn,Kn,Wn,Yn,Gn,Un,Zn,Jn,Qn,el,ln,ll,ol,rl,al,il,sl,ul,fl,dl,hl,pl,yl,on,bl,vl,wl,Sl,$l,Nt,tn,Cl,Nl,El,kl,Rl,Al,Ll],mh=new Ia(gh,[Fa],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>b.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>b.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>b.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>b.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>b.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>b.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>b.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>b.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>b.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>b.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>b.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>b.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>b.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>b.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>b.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>b.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>b.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>b.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>b.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>b.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>b.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>b.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>b.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>b.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>b.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>b.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>b.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>b.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>b.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>b.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>b.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>b.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>b.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>b.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>b.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>b.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>b.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>b.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>b.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>b.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>b.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>b.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>b.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>b.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>b.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>b.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>b.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>b.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>b.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>b.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>b.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>b.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>b.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>b.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>b.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>b.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>b.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>b.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>b.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>b.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>b.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>b.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>b.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>b.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>b.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>b.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>b.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>b.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>b.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>b.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>b.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>b.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>b.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>b.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>b.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>b.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>b.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>b.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>b.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>b.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>b.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>b.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>b.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>b.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>b.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>b.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>b.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>b.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>b.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>b.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>b.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>b.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>b.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>b.ElUpload}),p.AutocompleteItem=Jn,p.Broadcast=Cn,p.BroadcastKey=pe,p.CascaderItem=Zn,p.CheckboxItem=rl,p.Content=An,p.DataItemsKey=at,p.DateItem=Kn,p.DateUtils=Le,p.DialogItem=yl,p.Domain=zt,p.DomainKey=De,p.DomainProvider=Al,p.FloatingWindow=Rl,p.FooterBar=Rn,p.FoxAutocompleteItem=Jn,p.FoxCascaderItem=Zn,p.FoxCheckboxItem=rl,p.FoxContent=An,p.FoxDateItem=Kn,p.FoxDialogItem=yl,p.FoxDomainProvider=Al,p.FoxFloatingWindow=Rl,p.FoxFooterBar=Rn,p.FoxGroup=Bn,p.FoxGroupSetting=ul,p.FoxHeaderBar=Dn,p.FoxHintText=$t,p.FoxIndicator=Cl,p.FoxInfiniteLoading=Sl,p.FoxInputItem=zn,p.FoxInputNumberItem=Un,p.FoxItem=we,p.FoxMapping=Nt,p.FoxMoneyItem=Gn,p.FoxMoreButton=El,p.FoxOverLay=on,p.FoxPage=Vn,p.FoxPopup=bl,p.FoxPrice=tn,p.FoxPullRefresh=$l,p.FoxRadioItem=ol,p.FoxRateItem=al,p.FoxRollingProvider=Ll,p.FoxRowItem=jn,p.FoxSearchBar=wl,p.FoxSelectItem=Hn,p.FoxSlotItem=Pn,p.FoxStepsBar=pl,p.FoxSwitchItem=il,p.FoxTableItem=ll,p.FoxTableMappingColumn=Qn,p.FoxTableRadioColumn=el,p.FoxTableSetting=ln,p.FoxTabsBar=fl,p.FoxTabsContainer=dl,p.FoxTabsPane=hl,p.FoxText=Nl,p.FoxTimeItem=Wn,p.FoxTimeSelectItem=Yn,p.FoxToast=vl,p.FoxTour=kl,p.FoxTreeSelectItem=sl,p.Group=Bn,p.GroupSetting=ul,p.HeaderBar=Dn,p.HintText=$t,p.Indicator=Cl,p.InfiniteLoading=Sl,p.InputItem=zn,p.InputNumberItem=Un,p.Item=we,p.Mapping=Nt,p.MoneyItem=Gn,p.MoreButton=El,p.OverLay=on,p.Page=Vn,p.Popup=bl,p.Price=tn,p.PriorityPolicy=Ae,p.PullRefresh=$l,p.RadioItem=ol,p.RateItem=al,p.RollingProvider=Ll,p.RowItem=jn,p.SearchBar=wl,p.SelectItem=Hn,p.SlotItem=Pn,p.StepsBar=pl,p.SwitchItem=il,p.TableItem=ll,p.TableMappingColumn=Qn,p.TableRadioColumn=el,p.TableSetting=ln,p.TabsBar=fl,p.TabsContainer=dl,p.TabsPane=hl,p.Text=Nl,p.TimeItem=Wn,p.TimeSelectItem=Yn,p.Toast=vl,p.Tour=kl,p.TreeSelectItem=sl,p.UniqueID=Vo,p.ValidateSchema=fo,p.ValidateSchemaKey=Be,p.cancelRaf=Gr,p.clearNonNumber=aa,p.clone=xn,p.compareTo=bn,p.createBroadcast=Bt,p.createValidateSchema=qt,p.debounce=St,p.debounceRef=va,p.decimalLength=oo,p.default=mh,p.defineBroadcast=ca,p.defineConfigDomain=mo,p.defineDataItem=yo,p.defineDomain=En,p.defineItem=Se,p.definePageState=vo,p.defineSimpleItem=bo,p.deleteGlobalValidator=ma,p.disabledProperty=Oe,p.divide=yn,p.excludeProps=Ce,p.extend=et,p.floatData=ua,p.getGlobalValidateCheckEvents=so,p.getGlobalValidateResetEvents=co,p.getPageContentAreaHeight=Kt,p.getPageContentAreaWidth=Wt,p.getPageFooterAreaHeight=Tt,p.getPageHeaderAreaHeight=xt,p.getRootDomain=it,p.hasSymbol=Zl,p.includeProps=ao,p.indexOf=ia,p.installRules=po,p.integerLength=lo,p.isArray=Xr,p.isArrayLike=Ql,p.isBrowser=tt,p.isDate=Qr,p.isESModule=ta,p.isEmptyString=ge,p.isEqual=Ke,p.isFunction=wn,p.isHidden=Mt,p.isInnerPage=xa,p.isMap=Zr,p.isNil=$n,p.isNumberString=no,p.isObject=He,p.isPlainObject=Sn,p.isPromise=Ul,p.isRegExp=to,p.isSet=Jr,p.isString=Gl,p.isSubPage=Ta,p.isSymbol=ea,p.isTouch=xl,p.isWindow=Jl,p.lastIndexOf=sa,p.makeArray=ra,p.merge=eo,p.multiply=Kl,p.negate=Wl,p.nextTick=la,p.numberFormat=Rt,p.objectToString=Xl,p.once=wa,p.overrideGlobalValidateHandler=ha,p.property=ke,p.raf=vn,p.readonlyProperty=Ie,p.setGlobalValidateCheckEvents=pa,p.setGlobalValidateHandler=da,p.setGlobalValidateMessages=ba,p.setGlobalValidateResetEvents=ya,p.setGlobalValidator=ga,p.throttle=go,p.toBoolean=se,p.toNumber=be,p.toPadding=Pe,p.toPx=fe,p.toPxDesc=Ne,p.toTypeString=At,p.toValue=de,p.tryTimes=jt,p.typeOf=Lt,p.unNumberFormat=Yl,p.updatePageState=kn,p.useBroadcast=bt,p.useDomain=We,p.useExpose=xe,p.useInnerSize=Fn,p.usePageState=Ht,p.usePosition=ko,p.useRawTouch=Tl,p.useRect=Rr,p.useSize=Gt,p.useTouch=od,p.valueLength=yt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function Rt(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=Ce(e),t=Ce(t),[e,t]=hn(Ce(e),Ce(t)),o==1&&(n==1?e=dn(e):t=dn(t));let r=Pl(e,t);return o?o==2?"-"+Ce(r):e.length<r.length?Ce(r.substring(1)):"-"+Ce(dn(r)):Ce(r)}function dn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Pl(t,a)}function Ce(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 hn(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 Pl(e,t){[e,t]=hn(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 pe=(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))(pe||{});function pt(e,t=0,o=pe.HALF_EVEN){if(o===pe.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],s=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)+s,u=pt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,jl(r[1],a,n,o)?(n?"-":"")+gn(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");s=r[1].substring(0,t);let i=r[1].substring(t);return i&&jl(i,s,n,o)&&(s=gn(s),s.length>t)?(n?"-":"")+gn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function jl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===pe.DOWN||!o&&n===pe.FLOOR||o&&n===pe.CEILING)return!1;if(n===pe.UP||o&&n===pe.FLOOR||!o&&n===pe.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 pe.HALF_DOWN:return!1;case pe.HALF_UP:return!0;case pe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gn(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 mn(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=yt(e),t=yt(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=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,f="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let S=0;for(let k=t.length-1;k>=d&&k>=0;k--)u[k]>-1&&u[k]<e.length&&(S+=parseInt(e[u[k]--])*parseInt(t[k]));S+=i,i=Math.floor(S/10),f=S%10+f,d--}return f=yt(Xr(f,a)),o==1&&(f="-"+f),f}function Xr(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 yt(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 pn(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=Ce(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Ce(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Ce(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=Ce(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=Ce(e.replace(".","")))}let a=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=d,i="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Rt(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+Ce(pt(i,o-2))}function yn(e,t){return e=e.toString(),t=t.toString(),t=bn(t),Rt(e,t)}function bn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function zl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Hl(e),Hl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=yn(e,mn(t,pt(pn(e,t),0,pe.FLOOR)));return o+n}function Hl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Kl(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]=hn(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 fe{value;static RoundingModes=pe;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=Ce(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+Ce(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=fe.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=fe.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var s="",i=a;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<a-o&&i>=0?n:"")+s;return(r?"-":"")+s+t.substring(a)}getPrettyValue(t,o){return fe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=pe.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return pt(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe(pt(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,pe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,pe.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),Rt(t,o)}add(t){return new fe(Rt(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),yn(t,o)}subtract(t){return new fe(yn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),mn(t,o)}multiply(t){return new fe(mn(this.value,t.getValue()))}static divide(t,o,n){return t=fe.validate(t),o=fe.validate(o),pn(t,o,n)}divide(t,o){return new fe(pn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),zl(t,o)}modulus(t){return new fe(zl(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),Kl(t,o)}compareTo(t){return Kl(this.value,t.getValue())}static negate(t){return t=fe.validate(t),bn(t)}negate(){return new fe(bn(this.value))}}function Wl(e,t){return fe.multiply(`${e}`,`${t}`)}function vn(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function wn(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function Yl(e){return fe.negate(e)}function At(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let i=a,u="",d=a.indexOf(".");d!=-1&&(i=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",S=i.split("").reverse();for(let k=0;k<S.length;k++)c+=S[k]+((k+1)%n==0&&k+1!=S.length?r:"");u.length==0?f=`${s}${c.split("").reverse().join("")}`:f=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function Gl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Sn=ql,Zr=Array.isArray,Jr=e=>Lt(e)==="[object Map]",Qr=e=>Lt(e)==="[object Set]",ea=e=>e instanceof Date,xn=e=>typeof e=="function",Ul=e=>typeof e=="string",ta=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Xl=e=>We(e)&&xn(e.then)&&xn(e.catch),Zl=Object.prototype.toString,Lt=e=>Zl.call(e),Tn=e=>Lt(e)==="[object Object]",Jl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function na(e){return e.__esModule||Jl&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...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 s in a){let i=t[s],u=a[s];if(i!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=nt(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function $n(e,t,o=!1){if(!o)nt(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Tn(s))continue;a=$n(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const Cn=la?Promise.resolve():null;function oa(e,...t){Cn!==null?t&&t.length>0?Cn.then(()=>{e(t)}):Cn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}const ra={"[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 Mt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ra[o]||"object"}function Ql(e){return e&&typeof e=="object"&&"setInterval"in e}function Bt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function eo(e){let t=!!e&&"length"in e&&e.length,o=Mt(e);return o==="function"||Ql(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function to(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 aa(e,t=[]){let o=t;return e!=null&&(eo(Object(e))?to(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Mt(e),n=Mt(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 s=0;s<r.length;s++){let i=r[s],u=e[i],d=t[i];if(!Ye(u,d))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],s=t[r];if(!Ye(a,s))return!1}return!0}return!1}const lt=typeof window<"u";function Nn(e){return e==null}function no(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function lo(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function oo(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 ro(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 ao(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 ia(e,t=!0,o=!0){t?e=ao(e,".",/\./g):e=e.replace(/\./g,""),o?e=ao(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ye(e,o))return!0}):t.indexOf(e)}function ua(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ye(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function bt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function io(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ne(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 ca=(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 kn{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="*"):no(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 s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&a.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(t,o){this.callbacks.set(t,o)}}function _t(e,t,o,n){const r=new kn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function fa(e,t,o){const n=o;if(n[ye])return n[ye];const r=l.inject(ye,null),a=new kn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[ye]=a,l.provide(ye,a),l.onUnmounted(()=>{a.destroy(),n[ye]=void 0}),a}function vt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ye]??l.inject(ye,null):l.inject(ye,null)}const ot=e=>e.default??e;class da{error(t,o){const n=o,r=o||l.hasInjectionContext()?vt(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()?vt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?vt(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()?vt(n):null,s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let wt=new da;function ha(e){wt=e}function ga(e){wt?Object.assign(wt,e):wt=e}function ma(e,t){ot(tt).setValidator(e,t)}function pa(e){ot(tt).deleteValidator(e)}let so=["blur","clear"];function ya(e){so=e}function uo(){return so}let co=["focus","change","setValue"];function ba(e){co=e}function fo(){return co}function va(e){ot(tt).messages(e)}function St(...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 qt(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 qe=Symbol("ValidateSchemaKey");class ho{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=qt(St(this.attrRules,this.rules)),n=[];for(let a in t){let s=t[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let u={type:a};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};n.push(u)}}this.attrRules=qt(n);const r=St(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=wt;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?ot(tt).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?ot(tt).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ot(tt).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=St(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=qt(t):this.rules=qt([t]);const n=St(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=St(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),s={[`${n}`]:a},i=ot(tt),u=new i(r),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let S="error";Array.isArray(c.errors)&&c.errors.length>0&&(S=c.errors[0].message??S,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(S)}return c}).catch(c=>{const S=c.message??`${c}`;return this.error(S),c})}}return Promise.resolve({pass:!0})}}function Pt(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 ho(t,o,e)}const jt=Symbol.for("EventEmitterKey");class go{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 xt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function mo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function wa(e,t){const o=xt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Sa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function zt(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const Ae=Symbol("DomainKey"),st=Symbol("DataItemsKey");class Ht{_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 xa=new Ht;function ut(){return xa}function Ge(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const En=Symbol("OriginalDateKey");function In(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(Ae,null);s===null&&(s=ut());const i=e||t.prop||t.name;let u=new Ht(i);u.parent=s;const d=k=>{a[En]||S(k),u?.set("modelValue",k)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[En]??null,S=k=>{const g={};nt(!0,g,l.toRaw(k)),a[En]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,k=>{u?.merge(k,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&S(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const k=l.inject(ye,null),g=_t(a,k,i,n);u.broadcast=g,a[ye]=g,l.provide(ye,g),a.broadcast=($,w,...C)=>Reflect.apply(g.emit,g,[$,w,...C]);const h=l.inject(qe,null),m=Pt(a,h,{componentName:""});u.validateSchema=m,a[qe]=m,l.provide(qe,m),a[st]=new Map,a.validate=($=!0)=>{const w=[];let C=null;const q={deep:!1};if($===!0)C={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;C={name:A=>A?B.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(Object.assign(q,B),Array.isArray(B.include)&&B.include.length>0){const A=B.include;C={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;C={name:L=>L?A.indexOf(L)===-1:!1}}else C={name:"*"}}if(C){const B=g?.emitToChildren(C,"validate",q);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let A=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,C=!1)=>{if(C===!0){Reflect.ownKeys($).forEach(B=>{let A=String(B);const L={componentName:"",fieldName:A,pureDataValidate:!0};if(u){const M=bo(u,A,L,g,m);a[st].set(A,M);const V=$[A];V&&M.validateSchema.setRule(V)}});return}if(w){const q=Reflect.ownKeys($),B={name:A=>q.includes(A)};g?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const C=$;w={name:q=>q?C.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const C=$;if(Array.isArray(C.include)&&C.include.length>0){const q=C.include;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;w={name:B=>B?q.indexOf(B)===-1:!1}}else w={name:"*"}}w&&g?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const C={};if(nt(!0,C,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=C[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=C[B]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(C).forEach(B=>{q.includes(B)||(w[B]=C[B])})}else Object.assign(w,C);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===i?d($):g?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[qe]=void 0,l.provide(qe,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[st]&&(a[st].clear(),a[st]=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 po(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=ut());const s=e||t.prop||t.name;let i=new Ht(s);return i.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{i?.merge(u,o)},{immediate:!0}):i.merge(t,o),r[Ae]=i,l.provide(Ae,i),l.onUnmounted(()=>{i?.destroy(),r[Ae]=void 0,l.provide(Ae,null),i=null,r=null}),i}function yo(e,t,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function xe(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(ye,null);let i=_t(r,s,a,o);r[ye]=i,l.provide(ye,i),r.broadcast=(g,h,...m)=>i?Reflect.apply(i.emit,i,[g,h,...m]):null;const u=l.inject(qe,null);e.fieldName=e.fieldName??a;let d=Pt(r,u,e);r[qe]=d,l.provide(qe,d),yo(r,d,a),r.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let m=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,m=!0;else if(g&&typeof g=="object"){const w=g,C=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||B===!0&&Bt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),m=w.deep??!1}else typeof g=="boolean"&&(m=g),$=!0;if($){const w=d?.validate();h.push(w)}if(m){let w=null;const C={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const B=q.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const B=q.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w&&i){const q=i.emitToChildren(w,"validate",C);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let C=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(C=[...C,...q.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&d?.setRule(m),h&&i){const $={name:w=>Reflect.ownKeys(g).includes(w)};i.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:$=>$?m.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new go(r);r[jt]=f;const c=xt((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:uo()).forEach(g=>{f&&f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:fo()).forEach(g=>{f&&f.on(g,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[ye]=void 0,l.provide(ye,null),i=null,d?.destroy(),r[qe]=void 0,l.provide(qe,null),d=null,f?.destroy(),r[jt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function bo(e,t,o,n,r){const a={},s=t??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};o.fieldName=s,o.validateHandler={getValue(f){return i.getValue()}};let u=Pt({},r,o);a.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let S=!1,k=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)k=!0,S=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),k=!0,S=g.deep??!1}else typeof f=="boolean"&&(S=f),k=!0;if(k&&u){const g=u.validate();c.push(g)}if(S){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const m=f;g={name:$=>$?m.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const m=f;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const $=m.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g&&d){const m=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,m)}}return c.length==1?c[0]:c.length>1?Promise.all(c).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=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[s];c&&u?.setRule(c)};let d=_t(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function vo(){let t=l.getCurrentInstance()?.proxy,o=new go(t);return t[jt]=o,l.onUnmounted(()=>{o?.destroy(),t[jt]=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 ke=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(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(lt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(a=Number(s.substring(0,i)))}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 Je="PageStateKey";function ze(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function On(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=ze(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=ze(o.footerPadding??t.footerPadding),e.contentPadding=ze(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(s,a)-he(i,a),e.width=he(o.width??t.width??0,r)}}function wo(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=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;On(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Je);c&&(n.height=Wt(e,c),n.width=Yt(e,c),l.watch([()=>Wt(e,c),()=>Yt(e,c)],([k,g])=>{f.height=k,f.width=g}));const S=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,g,h=-1,m=-1,$=0,w=0])=>{On(f,g,t,S,h,m,$,w)}),e.set(Je,f),f}function Kt(e){return e.get(Je)}function Tt(e,t){if(t=t??e.get(Je),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function $t(e,t){if(t=t??e.get(Je),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Wt(e,t){if(t=t??e.get(Je),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Tt(e,t),n=$t(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Yt(e,t){return t=t??e.get(Je),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ta(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function $a(e){return!!e.getForParent(Je)}var Me=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Me||{});function Vn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ie(e,t,o=1,n){const r=Ge();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let i=a.length-1;i>=0;i--){const u=a[i];if(Vn(u,n))return u}const s=e.value;return Vn(s,n)?s:null}):l.computed(()=>{const a=e.value;return Vn(a,n)?a:r?.get(t)})}function Oe(e){return Ie(e,"readonly",0,function(o){return ue(o)})}function Ve(e){return Ie(e,"disabled",0,function(o){return ue(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,n&&n("setValue",u))}else i!==s.value&&(s.value=i,n&&n("setValue",i))}),s}const So=new Map,Gt=new Map;let Dn=null;function Ca(e){Dn=e}function xo(e,t,o){if(o){let n=Gt.get(o);n||(n=new Map,Gt.set(o,n)),n.set(e,t)}else So.set(e,t)}function Pe(e,t,o){!o&&Dn&&(o=Dn(e)??void 0);let n=null;if(o){let r=Gt.get(o);r&&(n=r.get(t))}return n||(n=So.get(t)),n}function Na(e,t){for(let o in e){const n=e[o];xo(o,n,t)}}function ka(e){Gt.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,t=0){if(lt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Oa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Va{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 s=Oa(a.name,o);t.component(s,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ut();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=mo(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,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=nt({},Ea(),t.safeAreaInset),s=Ia(n,r),i=nt({},s.pageLayout,t.pageLayout);o=o??ut(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ca(t)}setAPI(t,o,n){xo(t,o,n)}getAPI(t,o,n){return Pe(t,o,n)}batchSetAPI(t,o){Na(t,o)}clearScopeAPI(t){ka(t)}getRootDomain(){return ut()}}const Da=[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],Fa=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],Ra=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Da.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Fa.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 Te(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={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}},Ee={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}},To={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}},$o={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}},Co=[];for(const e in $o)Co.push(e);const Aa=Symbol.for("InnerPageScopeKey"),La={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}},Ma=(e,t)=>({inheritAttrs:!0,props:{...we,...To,...La},setup(o,{slots:n}){const r=In(o.name,o),a=l.inject(Aa,!1);if(r){const f=wo(r,o);Te({getPageContentHeight:()=>Wt(r,f),getPageContentWidth:()=>Yt(r,f),getPageHeaderHeight:()=>Tt(r,f),getPageFooterHeight:()=>$t(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const S=u?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[S,k])=>{if(f&&S){const g=l.toRaw(S),h=l.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h)}if(c&&k){const g=l.toRaw(k),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:s.value,style:i.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ba,create:_a,scope:vh}=ie("page"),Fn=_a(Ma(Ba));function Ut(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Rn(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")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-s}}const qa=(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 s=Ge(),i=s?Kt(s):null;i&&(i.headerMounted=!0);const u=e,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?he(r.height):null,S=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const y=ze(r.padding??i.headerPadding);return Object.assign(E,y),c&&(i.headerHeight=c),i.headerHeight>0&&(E.height=i.headerHeight),E.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(y.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(c&&(E.height=c),r.padding){const y=ze(r.padding);Object.assign(E,y)}return E}),k=l.ref(null),g=()=>{if(i&&k.value&&!Bt(k.value)){if(!n){const E=Ut(k.value);i.headerAllHeight=E.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(zt(g,50,5,50,!0),window.ResizeObserver&&k.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(k.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return S.value.height!==null&&S.value.height!==void 0&&(E.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(E.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(E.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(E.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(E.paddingBottom=`${S.value.bottom}px`),E}),$=l.computed(()=>!(S.value.height!==null&&S.value.height!==void 0&&S.value.height<=0));function w(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function B(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const y=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);E.push(y)}else if(r.leftIcon){const y=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);E.push(y)}if(r.leftText){const y=l.h("view",{class:"left-text",onClick:w},[r.leftText]);E.push(y)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},L=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const y=l.h("view",{class:"right-text",onClick:B},[r.rightText]);E.push(y)}if(a.slots.rightIcon){const y=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);E.push(y)}else if(r.rightIcon){const y=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);E.push(y)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},M=()=>{if(!r.titleShow)return null;const E=[],y=a.slots.default?a.slots.default():null;if(y)E.push(y);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);E.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);E.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);E.push(j)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},V=()=>{const E=[],y=a.slots.bottom?a.slots.bottom():null;return y&&E.push(y),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!$.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const j=[],_=A();_&&j.push(_);const R=M();R&&j.push(R);const D=L();if(D&&j.push(D),j.length>0){const G=l.h("view",{class:f.value},j);E.push(G)}const K=V();K&&E.push(K)}if(E.length===0)return null;const y={class:d.value,style:m.value,ref:k};return l.h("view",y,E)}}}),{componentName:Pa,create:ja,scope:za}=ie("header-bar"),An=ja(qa(Pa,za,$e.ArrowLeft));function Ha(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=Ge(),s=a?Kt(a):null,i=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?he(n.height):null,d=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=ze(n.padding??s.footerPadding);return Object.assign(g,h),u&&(s.footerHeight=u),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.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=ze(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),c=()=>{if(s&&f.value&&!Bt(f.value)){if(!o){const g=Ut(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let S=null;l.onMounted(()=>{s&&(zt(c,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(()=>{c()}),S.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const k=l.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=ke(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=ke(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=ke(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=ke(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=ke(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:k.value};return l.h("view",h,g)}}}}const{componentName:Ka,create:Wa,scope:wh}=ie("footer-bar"),Ln=Wa(Ha(Ka));function Ya(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ge(),r=l.computed(()=>({[e]:!0})),a=n?Kt(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const k=ze(o.padding);Object.assign(a.contentPadding,k)}const f=Tt(n,a),c=$t(n,a);let S="";if(a.contentHeight?S=`${a.contentHeight}`:S=`${a.height}px`,a.contentPadding,d.height=S,a.contentPadding.top||f>0){const k=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+k}px`}if(a.contentPadding.bottom||c>0){const k=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+k}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=ze(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=l.ref(null),u=()=>{if(a&&i.value){const d=Rn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Tt(n),()=>$t(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Ga,create:Ua,scope:Sh}=ie("content"),Xa=Ua(Ya(Ga));function Za(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},Mn=_e(Xa,[["render",Za]]),ct="GroupStateKey",No=Symbol.for("GroupScopeKey");function Xt(){return l.inject(No,!1)}function Zt(e=!0){l.provide(No,e)}function Ja(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Nn(r)||(e[n]=r)})}function Qa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ja(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(ct,a),a}function Bn(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(ct);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=he(a),c=he(s);i||(i=d.type??"grid");const S=()=>{const k=t===""||t===-1,g=he(t);let h=ve(o);const m=he(n);if(!k){let C=(g-(h-1)*m)/h;for(;c!==-1&&C>c;)h++,C=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&C<f;)h--,C=(g-(h-1)*m)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==m&&(w.value.gutter=m,$=!0),w.value.type!==i&&(w.value.type=i,$=!0),$&&l.triggerRef(w)};if(r)S();else{const k=++u.passport;setTimeout(()=>{k===u.passport&&S()},50)}}function Jt(e,t=!1){let o;return t?o=e.getForParent(ct):o=e.get(ct),o.layout}function Qt(e,t=!1){let o;return t?o=e.getForParent(ct):o=e.get(ct),o.order}function ko(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function en(e,t,o=1,n=0,r){const a={};let s=0;r?s=he(r):s=ko(t.column,o),s>0&&(a.width=`${s}%`);const i=ko(t.column,n);i>0&&(a["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function tn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=ve(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=ve(n)%t.column;let s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Eo=Symbol("RollingStateKey");function ei(e){l.provide(Eo,e)}function ti(){return l.inject(Eo,null)}function _n(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 ni(e){let t=_n(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=_n(o),document.body.removeChild(o)}return t}function li(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const oi={...we,...To,...$o};function ri(e,t,o){return{props:oi,emits:["update:collapse","header-click"],setup(n,r){const a=In(n.name,n,Co),s=Qa(a,{type:n.type}),i=Xt();Zt(!0);const u=n.rollingDisplay?ti():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?Jt(a,!0).value:null),S=l.getCurrentInstance(),k=(H,J=!1)=>{const te=S?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[te,T])=>{if(H&&te){const W=l.toRaw(te),ne=l.toRaw(H),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),k(ne)}if(J&&T){const W=l.toRaw(T),ne=l.toRaw(J),oe=ne?Reflect.ownKeys(ne):[];(W?Reflect.ownKeys(W):[]).forEach(se=>{oe.includes(se)||(ne[se]=[])}),k(ne,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=D.value;const J=i?Qt(a,!0):null;if(c.value&&J){if(c.value.type==="grid"){const te=tn(J,c.value,n.span,n.offset);Object.assign(H,te)}else if(c.value.type==="flow"){const te=en(J,c.value,n.span,n.offset,n.width);Object.assign(H,te)}}else if(n.width){const te=ke(n.width);H.width=te}return H}),m=l.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${n.justify}`]:!0,[`${g}--${H}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),$=l.computed(()=>{if(s.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const te=li(M.value,s.layout.value.column,s.layout.value.gutter);J=`repeat(${s.layout.value.column}, ${te})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),C=l.toRef(n,"column"),q=l.computed(()=>i||f.value?!0:ue(n.isWrap)),B=[],A=H=>{B.push(H)},L=()=>{let H=B.length;B.splice(0,H)},M=l.ref(-1),V=H=>{const J=Rn(H).width;J>0&&J!==M.value&&(M.value=J)};Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,C,w],([H,J,te])=>{s.order.index=0,Bn(a,H,J,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>K.value?n.expandText??"":n.collapseText??""),y=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),_=l.ref(),R=l.ref(),D=l.computed(()=>G.value||ke(n.height)||""),K=l.ref(!1),G=l.ref(""),U=l.ref(!1);let Z=-1;const ee=(H,J=!0)=>{const te=_.value;if(te&&K.value!==H){if(Z=Z===-1?ni(te):Z,U.value=!0,J)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",H||(G.value="",U.value=!1)},H){let T=0;n.collapseHeight?T=n.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(T=R.value.offsetHeight),G.value=`${Z}px`,l.nextTick(()=>{G.value=`${T}px`})}else G.value=`${Z}px`;else if(H){let T=0;n.collapseHeight?T=n.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(T=R.value.offsetHeight),G.value=`${T}px`}else U.value=!1,G.value=`${Z}px`;K.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{ee(H)});const le=H=>{r.emit("header-click",H)},O=()=>{x()},x=H=>{H=H??!K.value,ee(H)};Te({toggleCollapse:x,doLayout:()=>{B[0]&&(V(B[0]),Bn(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let N=null,b=!0;const Y=H=>{if(n.rules){const J=l.toRaw(n.rules);k(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);k(J,!0)}if(lt&&(H&&ee(ue(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];V(J),window.ResizeObserver&&(N=new window.ResizeObserver(()=>{V(J)}),N.observe(J))}},P=()=>{N?.disconnect(),N=null},z=!f.value||u?.acquire();z&&(d.value=f.value?!0:null),l.onMounted(()=>{if(z&&(Y(b),b=!1),f.value&&u){let H=null,J=u.initialHeight;u.observe(_.value,te=>{if(te!==d.value)if(te)d.value=!0,K.value||(G.value=""),H=setTimeout(()=>{H=null,d.value!==!1&&(Y(b),b=!1)},100);else{if(H!==null&&clearTimeout(H),d.value=!1,!K.value)if(b)G.value=u.initialHeight;else{let T=_n(_.value);T<=0?G.value=J:(G.value=`${T}px`,J=G.value)}b||P()}})}}),l.onUnmounted(()=>{N?.disconnect(),u&&u.unobserve(_.value)});const F=(H="right")=>{const J=[];if(E.value){const W={class:y.value},ne=l.h("span",W,[E.value]);J.push(ne)}const te={class:j.value},T=o(n.collapseIcon,te);return T&&J.push(T),J.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},X=(H,J,te,T)=>{const W={...m.value};return J===0&&(W[`${g}__first`]=!0),te>=T-1&&(W[`${g}__last`]=!0),l.h("div",{ref:A,key:`${J}`,class:W,style:$.value},H)};return()=>{if(f.value&&d.value!==!0){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[])}s.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:R,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},ne=l.h("div",W,[r.slots.header()]);H.push(ne)}else{const W=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const oe=F("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${g}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ne&&n.showCollapse){const oe=F("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:R,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},de=l.h("div",oe,W);H.push(de)}}L();const te=r.slots.default?r.slots.default():[],T=s.layout.value.type;if(T==="grid"){const W=X(te,J++,0,te.length);H.push(W)}else if(T==="flow"){const W=X(te,J++,0,te.length);H.push(W)}else for(let W=0;W<te.length;W++){const ne=te[W],oe=X([ne],J++,W,te.length);H.push(oe)}if(q.value){const W=n.tag||"div";return l.h(W,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[H])}else return H}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),qn=ii(ri(ai,si,(e,t)=>(e=e??$e.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]}))));function ui(e){return e===window}const ci=/matrix\((.+)\)/,Io=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ui(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,s=0,i=0,u=0;for(r=t;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ci.exec(d);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class fi{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 di{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 fi,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 Oo=new di,Vo={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:hi,create:gi}=ie("price"),mi=gi({props:{...Vo},setup(e){const t=l.computed(()=>({[hi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>bt(e.price)==0?"":At(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),r=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),a=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),pi=["innerHTML"],yi=["innerHTML"];function bi(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,pi)):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,yi)):l.createCommentVNode("",!0)],2)}const nn=_e(mi,[["render",bi]]),{componentName:Pn,create:vi}=ie("hint-text"),wi=vi({components:{Price:nn},props:{...Vo,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),s=l.ref(e.placement),i=l.ref(!1),u=l.ref(null),d=(y,j,_,R,D,K)=>{const G=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,Z=y.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},O=[];for(let x=0;x<ee.length;x++){const I=ee[x];if(O[0]=I,Z[1]&&(O[1]=Z[1]),I==="top"){const N=j.y-K-e.arrowSize-e.offset;if(N>=0){le.top=N;let b=0;Z[1]==="start"?b=j.x:Z[1]==="end"?b=j.x+_-D:b=j.x+_/2-D/2;const Y=G-b-D;Y<0?(b+=Y,c.value=-Y):c.value=0,le.left=b<0?0:b;break}}else if(I==="bottom"){const N=j.y+R+e.arrowSize+e.offset;if(N+K<=U){le.top=N;let b=0;Z[1]==="start"?b=j.x:Z[1]==="end"?b=j.x+_-D:b=j.x+_/2-D/2;const Y=G-b-D;Y<0?(b+=Y,c.value=-Y):c.value=0,le.left=b<0?0:b;break}}else if(I==="left"){const N=j.x-D-e.arrowSize-e.offset;if(N>=0){le.left=N;let b=0;Z[1]==="start"?b=j.y:Z[1]==="end"?b=j.y+R-K:b=j.y+R/2-K/2,le.top=b<0?0:b;break}}else if(I==="right"){const N=j.x+_+e.arrowSize+e.offset;if(N+D<=G){le.left=N;let b=0;Z[1]==="start"?b=j.y:Z[1]==="end"?b=j.y+R-K:b=j.y+R/2-K/2,le.top=b<0?0:b;break}}}return{bestPlacement:O.join("-"),bestInsetRect:le}},f=(y,j,_=10)=>{if(!lt||j===!1||!y)return;n.value=Io(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const R=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:K,bestInsetRect:G}=d(e.placement,n.value,r.value,a.value,D,R);s.value=K,o.value=G,i.value=!0},c=l.ref(0),S=xt(()=>{f(e.message,e.visible)},10),k=l.ref(e.visible);l.watch(()=>e.visible,y=>{k.value=y});const g=l.computed(()=>k.value&&h.value),h=l.ref(!0),m=xt(y=>{const j=y[0];j&&(h.value=j.isIntersecting)},10),$=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([y,j])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Oo.watch(e.reference,S),$.observe(e.reference)}),l.onBeforeMount(()=>{Oo.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const w=l.computed(()=>{const y={[Pn]:!0};return s.value.startsWith("top")?y["is-top"]=!0:s.value.startsWith("right")?y["is-right"]=!0:s.value.startsWith("bottom")?y["is-bottom"]=!0:s.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),C=l.computed(()=>{const y={};o.value.top!==null&&(y.top=`${o.value.top}px`),o.value.right!==null&&(y.right=`${o.value.right}px`),o.value.bottom!==null&&(y.bottom=`${o.value.bottom}px`),o.value.left!==null&&(y.left=`${o.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${j}px`,i.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=l.computed(()=>{const y=[`${Pn}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),B=l.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),A=l.computed(()=>({[`${Pn}__arrow`]:!0})),L=l.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,s.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):s.value==="top-start"?(y.left=`${e.arrowOffset+c.value}px`,y.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(y.right=`${e.arrowOffset-c.value}px`,y.bottom=`-${e.arrowSize}px`):s.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):s.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):s.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(y.left=`${e.arrowOffset+c.value}px`,y.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(y.right=`${e.arrowOffset-c.value}px`,y.top=`-${e.arrowSize}px`):s.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):s.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):s.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),M=l.computed(()=>g.value&&e.closeOnClick),V=l.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:g,tipRef:u,classes:w,styles:C,textClasses:q,textStyles:B,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:V,onClickOverlay:()=>{k.value=!1,t.emit("update:visible",!1)}}}}),Si=["innerHTML"];function xi(e,t,o,n,r,a){const s=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]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},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(s,{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,Si))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Ct=_e(wi,[["render",xi]]);class Do{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 jn={},Ti=new Do,ft=new Map,ln=e=>{if(e){const t=document.getElementById(e);ft.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ft.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ft.clear()}},$i=e=>{e.unmount=ln;const t=document.getElementById(e.id);if(t){const o=ft.get(e.id);o?e={...jn,...o,...e}:e={...jn,...e},e.transition=!1;const n=l.createVNode(Ct,e);return l.render(n,t),e.id}},Ci=e=>{e.unmount=ln;let t=e.id??`hinttext_${Ti.get()}`;e={...jn,...e},e.id=t,ft.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Ct,e);return l.render(n,o),document.body.appendChild(o),t},Ni=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},De={show(e,t,o={},n=!0){Ni(t);const r=o.id;return r&&ft.has(r)?$i({...o,message:t,reference:e}):(n&&ln(),Ci({...o,message:t,reference:e}))},hide(e){ln(e)},install(e){e.config.globalProperties.$hintText=De}};function ki(e,t,o,n=!1){return{inheritAttrs:!0,props:{...we,...Ee},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;xe({componentName:e,validate:!1},s);const i=Ge(),u=Xt();Zt(!1);const d=l.computed(()=>u&&i?Jt(i,!1).value:null),f=e,c=l.ref(null),S=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:ue(r.hasBorder)};if(T[r.errorMarkClass]=!!K.value,T[r.warnMarkClass]=!!R.value,T[r.infoMarkClass]=!!j.value,typeof c.value=="function"){const W=c.value(s);T[W]=!0}else if(typeof c.value=="string"){const W=c.value;T[W]=!0}return T}),k=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=ke(r.width));else{const W=u&&i?Qt(i,!1):null;if(d.value&&W){if(d.value.type==="grid"){const ne=tn(W,d.value,r.span,r.offset);Object.assign(T,ne)}else if(d.value.type==="flow"){const ne=en(W,d.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof k.value=="function"){const W=k.value(s);W&&Object.assign(T,W)}else if(k.value&&typeof k.value=="object"){const W=k.value;Object.assign(T,W)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??ue(r.isRequired),set:T=>{h.value=T}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Ie(l.toRef(r,"labelPosition"),"labelPosition",Me.Near),C=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${C.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),A=Ie(l.toRef(r,"labelWidth"),"labelWidth",Me.Near),L=l.computed(()=>A&&A.value?{width:ke(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":m.value})),V=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),y=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(T){m.value=T},setErrorTip(T){y.errorTip=T},setErrorIcon(T){y.errorIcon=T},setWarnTip(T){y.warnTip=T},setWarnIcon(T){y.warnIcon=T},setInfoTip(T){y.infoTip=T},setInfoIcon(T){y.infoIcon=T},setCustomClassName(T){c.value=T},setCustomStyle(T){k.value=T}});const j=l.computed(()=>r.infoTip||y.infoTip),_=l.computed(()=>r.infoIcon||y.infoIcon),R=l.computed(()=>r.warnTip||y.warnTip),D=l.computed(()=>r.warnIcon||y.warnIcon),K=l.computed(()=>r.errorTip||y.errorTip),G=l.computed(()=>r.errorIcon||y.errorIcon),U=l.computed(()=>K.value?"error":R.value?"warn":j.value?"info":""),Z=()=>U.value.length>0,ee=l.computed(()=>U.value==="error"?K.value:U.value==="warn"?R.value:U.value==="info"?j.value:""),le=l.computed(()=>U.value==="error"?G.value:U.value==="warn"?D.value:U.value==="info"?_.value:null),O=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${U.value}`]:!0,[`${f}--animate`]:!0};return U.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return w&&w.value==="top"||!$()?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=ke(A.value)),T}),I=l.ref();let N="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,W,ne,oe])=>{I.value&&(T&&!me(W)?N?o.show(I.value,W,{...oe,id:N,type:ne},!0):N=o.show(I.value,W,{...oe,type:ne},!0):o.hide(N))});let b=null;const Y=()=>{b||!I.value||(b=new IntersectionObserver(T=>{let W=!1;for(let ne of T)if(ne.intersectionRatio>0){W=!0,W&&a.emit("appear",ne);break}W||a.emit("disappear")}),b.observe(I.value))},P=()=>{!b||!I.value||(b.unobserve(I.value),b=null)};l.watch(()=>ue(r.appearListen),T=>{T?Y():P()}),l.onMounted(()=>{ue(r.appearListen)&&Y()}),l.onUnmounted(P);const z=()=>{if(!$())return null;const T=[],W=a.slots?.label?.()??r.label,ne={class:M.value},oe=l.h("div",ne,[W]);if(T.push(oe),a.slots.fixedPreTip){const se=a.slots.fixedPreTip();T.push(se)}const de={class:B.value,style:L.value};return l.h("div",de,T)},F=()=>{const T=[];if(a.slots.prepend){const ne=a.slots.prepend();T.push(ne)}if(a.slots.default){const ne=a.slots.default();T.push(ne)}if(a.slots.append){const ne=a.slots.append();T.push(ne)}if(a.slots.fixedTip){const ne={class:[`${f}__fixed-tip`]},oe=l.h("div",ne,[a.slots.fixedTip()]);T.push(oe)}const W={ref:I,class:V.value,style:E.value};return l.h("div",W,T)},X=()=>{const T=le.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},H=()=>{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},J=()=>{if(!Z())return null;const T=[],W=X();W&&T.push(W);const ne=H();ne&&T.push(ne);const oe={class:O.value,style:x.value};return l.h("div",oe,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],W=[],ne=z();ne&&W.push(ne);const oe=F();oe&&W.push(oe);const de={class:q.value},se=l.h("div",de,W);T.push(se);const Q=J();Q&&T.push(Q);const re=te();re&&T.push(re);const ae={class:S.value,style:g.value,prop:r.prop};return l.h("div",ae,T)}}}}const{componentName:Ei,create:Ii,scope:Oi}=ie("item"),Se=Ii(ki(Ei,Oi,De,!1));function Vi(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=Ge(),a=Xt();Zt(!1);const s=l.computed(()=>a&&r?Jt(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),d=l.computed(()=>{const f={},c=a&&r?Qt(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const S=tn(c,s.value,o.span,o.offset);Object.assign(f,S)}else if(s.value.type==="flow"){const S=en(c,s.value,o.span,o.offset,o.width);Object.assign(f,S)}else return o.width&&(f.width=ke(o.width)),f;else o.width&&(f.width=ke(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Di,create:Fi,scope:Th}=ie("slot-item"),zn=Fi(Vi(Di));function Ri(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})),s=Ge(),i=Xt();Zt(!1);const u=l.computed(()=>{const d={};if(i&&s){const f=Jt(s,!1),c=Qt(s,!1);if(f.value&&c)if(f.value.type==="grid"){const S=tn(c,f.value,o.span,o.offset);Object.assign(d,S)}else if(f.value.type==="flow"){const S=en(c,f.value,o.span,o.offset,o.width);Object.assign(d,S)}else o.width&&(d.width=ke(o.width))}else o.width&&(d.width=ke(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let S=0;S<c.length;S++){if(S>0){const k=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(k)}d.push(c[S])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Ai,create:Li,scope:$h}=ie("row-item"),Hn=Li(Ri(Ai)),He=(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},Fo={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 Mi(e,t,o){return{props:{...we,...Ee,...Fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0,[`${S}__disabled`]:a.value,[`${S}__readonly`]:s.value})),g=_=>{c.value=_,i("update:modelValue",_),i("input",_)},h=_=>{i("change",_)};let m=ge(n,"hintText"),$=l.ref(!1);const w=_=>{let D=_.target.value;f.value=!0,me(m.value)||($.value=!0),i("focus",D,_)},C=_=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let D=_.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),i("blur",D,_)},q=()=>{i("clear","")},B=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&B.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{B.value=!0},150))},M=()=>{A&&(clearTimeout(A),B.value=!1,A=null)},V=l.computed(()=>B.value||$.value),E=l.computed(()=>B.value?c.value:m.value),y=l.computed(()=>bt(n.unit)>0),j=l.ref();return Te({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const R={...He(r.attrs),ref:j,class:k.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:g,onFocus:w,onBlur:C,onMouseover:L,onMouseleave:M},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:y.value&&(D.suffix=()=>[n.unit]);const K=[],G=l.h(v.ElInput,R,D);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.default&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,Fo),hintText:E.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,ee,U)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("input-item"),Kn=_i(Mi(Bi,qi,Se));function Qe(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Nt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ro(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Pi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ji=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=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function zi(){const e=l.getCurrentInstance();return new ji(e.proxy)}function Ao(e,t,o){const n=Qe(e,t),r=Qe(e,o);if(n!==r)return!1;const a=Nt(e,t),s=Nt(e,o);return a===s}function Lo(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 s of n){const i=Ro(e,s);if(Array.isArray(i)&&i.length>0){const u=Lo(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Qe(e,s)===a;else if(o==="item")u=Ao(e,s,a);else{let d=Nt(e,s);d==null&&(d=Qe(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function Hi(e){return{text:e,value:e}}const Mo={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 Ki(e,t,o){return{props:{...we,...Ee,...Mo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(X=>Qe(n,X)).join(" "):""),k=(F,X,H,J=!0)=>{const te=Lo(n,F,X,H);if(te===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],J&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let T=!0;if(te.length!==c.value.length)T=!1;else for(let W=0;W<te.length;W++){const ne=te[W],oe=c.value[W];if(!Ao(n,ne,oe)){T=!1;break}}if(!T){c.value=te;let W=[],ne=[],oe=[];te.forEach(re=>{const ae=Nt(n,re),ce=Qe(n,re);W.push(ae),oe.push(ce),n.valueType==="text"?ne.push(ce):n.valueType==="item"?ne.push(re):ne.push(ae)});let de,se,Q;ue(n.multiple)?(f.value=W,de=l.toRaw(ne),se=oe,Q=l.toRaw(te)):(f.value=W[0]??"",de=l.toRaw(ne[0]??""),se=oe[0]??"",Q=l.toRaw(te[0])),J&&(i("update:modelValue",de),i("change",de,Q)),i("update:text",se)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),$=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,F=>ue(F)),w=zi(),C=async(F,X)=>{if(F){const H=await w.load("select",F,X);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(W=>Hi(W));g.value=T}else g.value=H;else g.value=null}};l.watch([()=>n.source,()=>n.params],([F,X])=>{h.value=null,C(F,X)},{immediate:!$.value});let q=!1;const B=()=>{q||(q=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([F,X])=>{if(V()&&ue(n.multiple)){Ye(X,f.value)||(f.value=X);return}k(X,n.valueType,m.value,!1),i("setValue",X)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async F=>{if(F==null){h.value=null;return}L.value=!0;try{const X=await n.remoteMethod(F);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async F=>{if(F==null){h.value=null;return}L.value=!0;try{const X=await n.filterMethod(F,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});const V=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),y=e,j=l.computed(()=>({[y]:!0})),_=F=>{n.allowCreate||V()&&ue(n.multiple)?(i("update:modelValue",F),i("change",F),i("update:text",F),f.value=F):k(F,"value",m.value,!0)};let R=ge(n,"hintText"),D=l.ref(!1);const K=F=>{let H=F.target.value;E.value=!0,me(R.value)||(D.value=!0),i("focus",H,F)},G=F=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let H=F.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),N.value||i("blur",H,F)},U=()=>{i("clear","")},Z=l.ref(!1);let ee=null;const le=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=l.computed(()=>Z.value||D.value),I=l.computed(()=>Z.value?S.value:R.value),N=l.ref(!1),b=F=>{N.value=F,i("visible-change",F),F||i("selected")},Y=F=>{i("remove-tag",F)},P=(F,X)=>{const H=[];return F.forEach((J,te)=>{const T=Ro(n,J);if(Array.isArray(T)&&T.length>0){const W=P(T,X),ne=Qe(n,J),de={key:`${ne}_${te}`,label:ne};H.push(l.h(v.ElOptionGroup,de,{default:()=>W}))}else{const W=Nt(n,J),ne=Qe(n,J),oe=Pi(n,J),se={key:`${W}_${te}`,label:ne,disabled:oe,value:W};if(typeof X=="function")H.push(l.h(v.ElOption,se,{default:()=>X(J)}));else if(n.optionType==="item"){const Q={class:{"fox-select-item__option-left":!0}},re=l.h("span",Q,[W]),ae={class:{"fox-select-item__option-right":!0}},ce=l.h("span",ae,[ne]),Re=l.h("div",{class:{"fox-select-item__option":!0}},[re,ce]);H.push(l.h(v.ElOption,se,{default:()=>Re}))}else n.optionType==="value"?H.push(l.h(v.ElOption,se,{default:()=>[W]})):H.push(l.h(v.ElOption,se))}}),H},z=l.ref();return Te({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const X={...He(r.attrs),ref:z,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:U,onChange:_,onFocus:K,onBlur:G,onVisibleChange:b,onRemoveTag:Y};typeof A=="function"&&(X["remote-method"]=A,X.loading=L.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=L.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(m.value,r.slots.option);const J=[],te=l.h(v.ElSelect,X,H);J.push(te);const T={default:()=>J};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const ne={...Ne(n,Mo),hintText:I.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:le,onMouseleave:O};return $.value&&(ne["appear-listen"]=!0,ne.onAppear=B),l.h(o,ne,T)}}}}const{componentName:Wi,create:Yi,scope:Gi}=ie("select-item"),Wn=Yi(Ki(Wi,Gi,Se));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",d="day",f="week",c="month",S="quarter",k="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+)?$/,$=/\[([^\]]+)]|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,w={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("_"),ordinal:function(R){var D=["th","st","nd","rd"],K=R%100;return"["+R+(D[(K-20)%10]||D[K]||D[0])+"]"}},C=function(R,D,K){var G=String(R);return!G||G.length>=D?R:""+Array(D+1-G.length).join(K)+R},q={s:C,z:function(R){var D=-R.utcOffset(),K=Math.abs(D),G=Math.floor(K/60),U=K%60;return(D<=0?"+":"-")+C(G,2,"0")+":"+C(U,2,"0")},m:function R(D,K){if(D.date()<K.date())return-R(K,D);var G=12*(K.year()-D.year())+(K.month()-D.month()),U=D.clone().add(G,c),Z=K-U<0,ee=D.clone().add(G+(Z?-1:1),c);return+(-(G+(K-U)/(Z?U-ee:ee-U))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:c,y:k,w:f,d,D:g,h:u,m:i,s,ms:a,Q:S}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},B="en",A={};A[B]=w;var L="$isDayjsObject",M=function(R){return R instanceof j||!(!R||!R[L])},V=function R(D,K,G){var U;if(!D)return B;if(typeof D=="string"){var Z=D.toLowerCase();A[Z]&&(U=Z),K&&(A[Z]=K,U=Z);var ee=D.split("-");if(!U&&ee.length>1)return R(ee[0])}else{var le=D.name;A[le]=D,U=le}return!G&&U&&(B=U),U||!G&&B},E=function(R,D){if(M(R))return R.clone();var K=typeof D=="object"?D:{};return K.date=R,K.args=arguments,new j(K)},y=q;y.l=V,y.i=M,y.w=function(R,D){return E(R,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var j=function(){function R(K){this.$L=V(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[L]=!0}var D=R.prototype;return D.parse=function(K){this.$d=function(G){var U=G.date,Z=G.utc;if(U===null)return new Date(NaN);if(y.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ee=U.match(m);if(ee){var le=ee[2]-1||0,O=(ee[7]||"0").substring(0,3);return Z?new Date(Date.UTC(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)):new Date(ee[1],le,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)}}return new Date(U)}(K),this.init()},D.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},D.$utils=function(){return y},D.isValid=function(){return this.$d.toString()!==h},D.isSame=function(K,G){var U=E(K);return this.startOf(G)<=U&&U<=this.endOf(G)},D.isAfter=function(K,G){return E(K)<this.startOf(G)},D.isBefore=function(K,G){return this.endOf(G)<E(K)},D.$g=function(K,G,U){return y.u(K)?this[G]:this.set(U,K)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(K,G){var U=this,Z=!!y.u(G)||G,ee=y.p(K),le=function(z,F){var X=y.w(U.$u?Date.UTC(U.$y,F,z):new Date(U.$y,F,z),U);return Z?X:X.endOf(d)},O=function(z,F){return y.w(U.toDate()[z].apply(U.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(F)),U)},x=this.$W,I=this.$M,N=this.$D,b="set"+(this.$u?"UTC":"");switch(ee){case k:return Z?le(1,0):le(31,11);case c:return Z?le(1,I):le(0,I+1);case f:var Y=this.$locale().weekStart||0,P=(x<Y?x+7:x)-Y;return le(Z?N-P:N+(6-P),I);case d:case g:return O(b+"Hours",0);case u:return O(b+"Minutes",1);case i:return O(b+"Seconds",2);case s:return O(b+"Milliseconds",3);default:return this.clone()}},D.endOf=function(K){return this.startOf(K,!1)},D.$set=function(K,G){var U,Z=y.p(K),ee="set"+(this.$u?"UTC":""),le=(U={},U[d]=ee+"Date",U[g]=ee+"Date",U[c]=ee+"Month",U[k]=ee+"FullYear",U[u]=ee+"Hours",U[i]=ee+"Minutes",U[s]=ee+"Seconds",U[a]=ee+"Milliseconds",U)[Z],O=Z===d?this.$D+(G-this.$W):G;if(Z===c||Z===k){var x=this.clone().set(g,1);x.$d[le](O),x.init(),this.$d=x.set(g,Math.min(this.$D,x.daysInMonth())).$d}else le&&this.$d[le](O);return this.init(),this},D.set=function(K,G){return this.clone().$set(K,G)},D.get=function(K){return this[y.p(K)]()},D.add=function(K,G){var U,Z=this;K=Number(K);var ee=y.p(G),le=function(I){var N=E(Z);return y.w(N.date(N.date()+Math.round(I*K)),Z)};if(ee===c)return this.set(c,this.$M+K);if(ee===k)return this.set(k,this.$y+K);if(ee===d)return le(1);if(ee===f)return le(7);var O=(U={},U[i]=n,U[u]=r,U[s]=o,U)[ee]||1,x=this.$d.getTime()+K*O;return y.w(x,this)},D.subtract=function(K,G){return this.add(-1*K,G)},D.format=function(K){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var Z=K||"YYYY-MM-DDTHH:mm:ssZ",ee=y.z(this),le=this.$H,O=this.$m,x=this.$M,I=U.weekdays,N=U.months,b=U.meridiem,Y=function(F,X,H,J){return F&&(F[X]||F(G,Z))||H[X].slice(0,J)},P=function(F){return y.s(le%12||12,F,"0")},z=b||function(F,X,H){var J=F<12?"AM":"PM";return H?J.toLowerCase():J};return Z.replace($,function(F,X){return X||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return y.s(G.$y,4,"0");case"M":return x+1;case"MM":return y.s(x+1,2,"0");case"MMM":return Y(U.monthsShort,x,N,3);case"MMMM":return Y(N,x);case"D":return G.$D;case"DD":return y.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return Y(U.weekdaysMin,G.$W,I,2);case"ddd":return Y(U.weekdaysShort,G.$W,I,3);case"dddd":return I[G.$W];case"H":return String(le);case"HH":return y.s(le,2,"0");case"h":return P(1);case"hh":return P(2);case"a":return z(le,O,!0);case"A":return z(le,O,!1);case"m":return String(O);case"mm":return y.s(O,2,"0");case"s":return String(G.$s);case"ss":return y.s(G.$s,2,"0");case"SSS":return y.s(G.$ms,3,"0");case"Z":return ee}return null}(F)||ee.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(K,G,U){var Z,ee=this,le=y.p(G),O=E(K),x=(O.utcOffset()-this.utcOffset())*n,I=this-O,N=function(){return y.m(ee,O)};switch(le){case k:Z=N()/12;break;case c:Z=N();break;case S:Z=N()/3;break;case f:Z=(I-x)/6048e5;break;case d:Z=(I-x)/864e5;break;case u:Z=I/r;break;case i:Z=I/n;break;case s:Z=I/o;break;default:Z=I}return U?Z:y.a(Z)},D.daysInMonth=function(){return this.endOf(c).$D},D.$locale=function(){return A[this.$L]},D.locale=function(K,G){if(!K)return this.$L;var U=this.clone(),Z=V(K,G,!0);return Z&&(U.$L=Z),U},D.clone=function(){return y.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},R}(),_=j.prototype;return E.prototype=_,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",k],["$D",g]].forEach(function(R){_[R[1]]=function(D){return this.$g(D,R[0],R[1])}}),E.extend=function(R,D){return R.$i||(R(D,j,E),R.$i=!0),E},E.locale=V,E.isDayjs=M,E.unix=function(R){return E(1e3*R)},E.en=A[B],E.Ls=A,E.p={},E})})(Bo);var Ui=Bo.exports;const Ke=Xe(Ui);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,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?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(m){this[h]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var $=m.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var m=i[h];return m&&(m.indexOf?m:m.s.concat(m.f))},S=function(h,m){var $,w=i.meridiem;if(w){for(var C=1;C<=24;C+=1)if(h.indexOf(w(C,0,m))>-1){$=C>12;break}}else $=h===(m?"pm":"PM");return $},k={A:[s,function(h){this.afternoon=S(h,!1)}],a:[s,function(h){this.afternoon=S(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,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[s,function(h){var m=i.ordinal,$=h.match(/\d+/);if(this.day=$[0],m)for(var w=1;w<=31;w+=1)m(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var m=c("months"),$=(c("monthsShort")||m.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[s,function(h){var m=c("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var m,$;m=h,$=i&&i.formats;for(var w=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,E,y){var j=y&&y.toUpperCase();return E||$[y]||o[y]||$[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,R,D){return R||D.slice(1)})})).match(n),C=w.length,q=0;q<C;q+=1){var B=w[q],A=k[B],L=A&&A[0],M=A&&A[1];w[q]=M?{regex:L,parser:M}:B.replace(/^\[|\]$/g,"")}return function(V){for(var E={},y=0,j=0;y<C;y+=1){var _=w[y];if(typeof _=="string")j+=_.length;else{var R=_.regex,D=_.parser,K=V.slice(j),G=R.exec(K)[0];D.call(E,G),V=V.replace(G,"")}}return function(U){var Z=U.afternoon;if(Z!==void 0){var ee=U.hours;Z?ee<12&&(U.hours+=12):ee===12&&(U.hours=0),delete U.afternoon}}(E),E}}return function(h,m,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=m.prototype,C=w.parse;w.parse=function(q){var B=q.date,A=q.utc,L=q.args;this.$u=A;var M=L[1];if(typeof M=="string"){var V=L[2]===!0,E=L[3]===!0,y=V||E,j=L[2];E&&(j=L[2]),i=this.$locale(),!V&&j&&(i=$.Ls[j]),this.$d=function(K,G,U){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*K);var Z=g(G)(K),ee=Z.year,le=Z.month,O=Z.day,x=Z.hours,I=Z.minutes,N=Z.seconds,b=Z.milliseconds,Y=Z.zone,P=new Date,z=O||(ee||le?1:P.getDate()),F=ee||P.getFullYear(),X=0;ee&&!le||(X=le>0?le-1:P.getMonth());var H=x||0,J=I||0,te=N||0,T=b||0;return Y?new Date(Date.UTC(F,X,z,H,J,te,T+60*Y.offset*1e3)):U?new Date(Date.UTC(F,X,z,H,J,te,T)):new Date(F,X,z,H,J,te,T)}catch{return new Date("")}}(B,M,A),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),y&&B!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var _=M.length,R=1;R<=_;R+=1){L[1]=M[R-1];var D=$.apply(this,L);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}R===_&&(this.$d=new Date(""))}else C.call(this,q)}}})})(_o);var Xi=_o.exports;const Zi=Xe(Xi);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(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(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="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 c}});return a.bind(this)(f)}}})})(qo);var Ji=qo.exports;const Qi=Xe(Ji);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){var a=n.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,S,k,g,h){var m=c.name?c:c.$locale(),$=s(m[S]),w=s(m[k]),C=$||w.map(function(B){return B.slice(0,g)});if(!h)return C;var q=m.weekStart;return C.map(function(B,A){return C[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,S){return c.formats[S]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(c.formats[S.toUpperCase()])},f=function(){var c=this;return{months:function(S){return S?S.format("MMMM"):i(c,"months")},monthsShort:function(S){return S?S.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(c,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return d(c.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.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(S){return d(c,S)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(c){return i(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}})})(Po);var es=Po.exports;const ts=Xe(es);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),c=s(this).endOf(o);if(f.isBefore(c))return 1}var S=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),k=this.diff(S,o,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(jo);var ns=jo.exports;const ls=Xe(ns);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(zo);var os=zo.exports;const rs=Xe(os);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(Ho);var as=Ho.exports;const is=Xe(as);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Ko);var ss=Ko.exports;const us=Xe(ss);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Wo);var cs=Wo.exports;const fs=Xe(cs);Ke.extend(ts),Ke.extend(Qi),Ke.extend(Zi),Ke.extend(ls),Ke.extend(rs),Ke.extend(is),Ke.extend(us),Ke.extend(fs);const Be={format(e,t){return Ke(e).format(t)},parser(e,t){return Ke(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(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/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),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,d=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,d=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Be.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Be.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(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Yo={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"}},Go={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 ds(e,t,o){return{props:{...we,...Ee,...Yo,...Go},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=l.computed(()=>D.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),k=l.computed(()=>D.value?"longTermKey":"normalKey"),g=z=>{if(D.value&&n.type==="daterange"){const F=[...c.value];F[0]=z,c.value=F}else c.value=z;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,$=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":s.value,"is-disabled":a.value}));let w=ge(n,"hintText"),C=l.ref(!1);const q=z=>{let X=z.target.value;f.value=!0,me(w.value)||(C.value=!0),i("focus",X,z)},B=z=>{setTimeout(()=>{C.value&&(C.value=!1),f.value=!1},0);let X=z.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),i("blur",X,z)},A=()=>{i("clear","")},L=z=>{i("calendar-change",z)},M=(z,F,X)=>{i("panel-change",z,F,X)},V=z=>{i("visible-change",z)},E=Ie(l.computed(()=>n.longTermText),"longTermText",Me.Near),y=Ie(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Me.Near),j=Ie(l.computed(()=>n.longTermValue),"longTermValue",Me.Near),_=Ie(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Me.Near);let R=null;const D=l.ref(ue(n.longTerm)),K=z=>{if(D.value=z,i("update:longTerm",z),z){if(R=c.value,n.type==="daterange"){const F=[];Array.isArray(j.value)?(F[0]=c.value?c.value[0]??j.value[0]:null,F[1]=j.value[1]??j.value[0]):(F[0]=c.value?c.value[0]??j.value:null,F[1]=D.value),F[0]||(F[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=F}else Array.isArray(j.value)?c.value=j.value[1]??j.value[0]:c.value=j.value,c.value||(c.value=n.valueFormat?Be.format(new Date,n.valueFormat):new Date);i("update:modelValue",c.value)}else{if(n.type==="daterange"){const F=[];F[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(R)?F[1]=R[1]:F[1]=R,F[0]||(F[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=F}else c.value=R;i("update:modelValue",c.value),setTimeout(()=>{Y()},100)}},G=ue(n.isLongTerm);if(G){const z=()=>{if(D.value===!0){if(R=c.value,n.type==="daterange"){const F=[c.value[0]];Array.isArray(j.value)?F[1]=j.value[1]??j.value[0]:F[1]=D.value,F[0]||(F[0]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Be.format(new Date,n.valueFormat):new Date),c.value=F}else c.value=j.value;i("update:modelValue",c.value)}else Ye(j.value,c.value)&&(D.value=!0)};z(),l.watch([()=>n.longTerm],([F])=>{D.value!==F&&z()}),l.watch([()=>c.value],([F])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(F))try{let H=F[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=Be.format(H,n.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray(_.value)&&_.value.findIndex(T=>H==T)!==-1)&&(X=!0)}catch(H){console.error(H)}D.value!==X&&(D.value=X)},{immediate:!0})}const U=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=l.ref(),ee=l.ref(),le=/^\d+$/,O=(z,F)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,F):le.test(z)&&z.length===n.flashFillThreshold,x=(z,F)=>{let X;if(typeof n.flashFillFormat=="function")X=n.flashFillFormat(z,F);else{const J=n.flashFillFormat??"YYYYMMDD";X=Be.parser(z,J)}const H=n.valueFormat??"YYYY-MM-DD";return Be.format(X,H)},I=z=>z?z.endsWith("range"):!1,N=z=>{if(!z.target)return;const F=z.target.value??"";if(O(F,n.type)){const X=x(F,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[0]=X,g(H)}else g(X)}},b=z=>{if(!z.target)return;const F=z.target.value??"";if(O(F,n.type)){const X=x(F,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[1]=X,g(H)}else g(X)}},Y=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",N),z[1]&&z[1].addEventListener("input",b)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",N)}},P=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(I(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",N),z[1]&&z[1].removeEventListener("input",b)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",N)}};return l.onMounted(Y),l.onBeforeUnmount(P),Te({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const F={...r.attrs,key:k.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:S.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:q,onBlur:B,onCalendarChange:L,onPanelChange:M,onVisibleChange:V},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],J=l.h(v.ElDatePicker,F,X);H.push(J);const te={default:()=>H};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),G){if(D.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),se={class:U.value},Q=l.h("div",se,{default:()=>[oe,de]});H.push(Q)}if(!s.value&&!a.value){const oe={label:y.value||E.value,disabled:s.value||a.value,modelValue:D.value,"onUpdate:modelValue":K},de=l.h(v.ElCheckbox,oe),se=l.h("div",{class:{[`${m}__append`]:!0}},[de]);te.append=()=>se}}const W={...Ne(n,Yo,Go),ref:Z,class:{[`${m}__wrapper`]:!0,"has-append":G},hintText:w.value,hintVisible:C.value,prop:`${n.prop}_item`};return l.h(o,W,te)}}}}const{componentName:hs,create:gs,scope:ms}=ie("date-item"),Yn=gs(ds(hs,ms,Se)),Uo={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:{...we,...Ee,...Uo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0})),g=A=>{c.value=A,i("update:modelValue",A),i("change",A)};let h=ge(n,"hintText"),m=l.ref(!1);const $=A=>{let M=A.target.value;f.value=!0,me(h.value)||(m.value=!0),i("focus",M,A)},w=A=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),i("blur",M,A)},C=()=>{i("clear","")},q=A=>{i("visible-change",A)},B=l.ref();return Te({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:k.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w,onVisibleChange:q},M={},V=[],E=l.h(v.ElTimePicker,L,M);V.push(E);const y={default:()=>V};r.slots.default&&(y.label=r.slots.default),r.slots.fixedTip&&(y.fixedTip=r.slots.fixedTip);const _={...Ne(n,Uo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,_,y)}}}}const{componentName:ys,create:bs,scope:vs}=ie("time-item"),Gn=bs(ps(ys,vs,Se)),Xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,t,o){return{props:{...we,...Ee,...Xo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0})),g=B=>{c.value=B,i("update:modelValue",B),i("change",B)};let h=ge(n,"hintText"),m=l.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,me(h.value)||(m.value=!0),i("focus",L,B)},w=B=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,B)},C=()=>{i("clear","")},q=l.ref();return Te({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:k.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w},L={},M=[],V=l.h(v.ElTimeSelect,A,L);M.push(V);const E={default:()=>M};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const j={...Ne(n,Xo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,j,E)}}}}const{componentName:Ss,create:xs,scope:Ts}=ie("time-select-item"),Un=xs(ws(Ss,Ts,Se));function Zo(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 Jo(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Wl(`${e}`,`${t}`);return Zo(n)}else{let n=vn(`${e}`,Yl(`${t}`),20);return Zo(n)}}function $s(e,t=-1,o=!1,n=3,r=","){return At(e,t,o,n,r)}function Qo(e,t,o,n,r=!0){if(e==="")return"";if(e=Gl(e),t=ve(t),t==1)return e;if(n)e=Jo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(ve(o)+2,"0"):e=vn(e,1,ve(o)));else{let a=-1*t;e=Jo(e,a)}return e}function er(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=wn(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=ue(t.maxInclude),r=wn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const tr={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 Cs(e,t,o){return{props:{...we,...Ee,...tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=ge(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([_,R,D])=>{if(me(_)){f.value="";return}const K=Qo(_,R,D,!1);f.value!==K&&(f.value=K)},{immediate:!0});const c=l.computed(()=>{let _="";return u.value&&(_=f.value),_}),{t:S}=Le.useFoxI18n(t),k=l.computed(()=>{let _=n.placeholder??"";return!u.value&&!me(f.value)?_=$s(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):_=S(["placeholder",_]),_}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=Ie(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const $=l.ref(""),w=l.computed(()=>{let _=$.value;return me(_)&&(_=n.errorTip??""),_}),C=l.ref(""),q=l.ref(!1),B=(_,R)=>{if(_=`${_}`,me(_)){f.value="",d.value="",R.forEach(D=>{i(D,"")}),ue(n.showTip)&&q.value&&(q.value=!1);return}if(_.length>=2){let D=_;if(D.charAt(0)=="-"&&(D=D.substring(1)),D.length>=2&&D.charAt(0)=="0"&&D.charAt(1)!="."){l.triggerRef(f);return}}if(_!="-"){if(!lo(_)){l.triggerRef(f);return}if(n.integerLength!=-1&&oo(_)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ro(_)>Number(n.decimalLength)){l.triggerRef(f);return}let D=er(_,n);if(D.maxValid===!1){$.value=D.message,l.triggerRef(f);return}}else if(n.min!=null&&ve(n.min)>=0){l.triggerRef(f);return}C.value=_,ue(n.showTip)&&(q.value=_.length>0),f.value=_,d.value=Qo(_,n.rates,n.precision,!0),R.forEach(D=>{i(D,d.value)})},A=_=>{B(_,["update:modelValue","input"])},L=_=>{B(_,["update:modelValue","change"])},M=_=>{if(u.value=!0,ue(n.showTip)){let R=f.value;me(R)&&(R=n.hintText),me(R)||(C.value=R,q.value=!0)}$.value="",i("focus",d.value,_)},V=_=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&q.value===!0&&(q.value=!1)},0),!me(f.value)){let R=er(f.value,n);if(R.minValid===!1||R.maxValid===!1){$.value=R.message;return}}i("update:modelValue",d.value,_),i("blur",d.value,_)},E=()=>{i("clear","")},y=l.computed(()=>bt(n.unit)>0),j=l.ref();return Te({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const R={...He(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:k.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:A,onChange:L,onFocus:M,onBlur:V},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:y.value&&(D.suffix=()=>[n.unit]);const K=[],G=l.h(v.ElInput,R,D);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const ee={...Ne(n,tr),errorTip:w.value,hintText:C.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,U)}}}}const{componentName:Ns,create:ks,scope:Es}=ie("money-item"),Xn=ks(Cs(Ns,Es,Se)),nr={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 Is(e,t,o){return{props:{...we,...Ee,...nr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0,[`${S}__append`]:A.value})),g=l.computed(()=>({[`${S}__unit`]:!0})),h=M=>{c.value=M,i("update:modelValue",M),i("input",M)},m=M=>{i("change",M)};let $=ge(n,"hintText"),w=l.ref(!1);const C=M=>{let E=M.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",E,M)},q=M=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=M.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,M)},B=()=>{i("clear","")},A=l.computed(()=>bt(n.unit)>0),L=l.ref();return Te({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const V={...He(r.attrs),ref:L,class:k.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:m,onInput:h,onFocus:C,onBlur:q},E={},y=[],j=l.h(v.ElInputNumber,V,E);y.push(j);const _={default:()=>y};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const D={...Ne(n,nr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)_.append=r.slots.append;else if(A.value){const G={class:g.value},U=l.h("div",G,[n.unit]);_.append=()=>U}return l.h(o,D,_)}}}}const{componentName:Os,create:Vs,scope:Ds}=ie("input-number-item"),Zn=Vs(Is(Os,Ds,Se));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Fs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Rs=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=Pe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function As(){const e=l.getCurrentInstance();return new Rs(e.proxy)}function Jn(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=rt(e,t),s=rt(e,o);return a===s}function lr(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 s=0;Array.isArray(a)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=lr(e,i,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ze(e,d)===i;else if(o==="item")u=Jn(e,d,i);else{let f=rt(e,d);f==null&&(f=Ze(e,d)),u=f===i}if(u){r.push(d),a=Fs(e,d);break}}if(!u)break}}return r}function Ls(e){return{text:e,value:e}}const or={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 Ms(e,t,o){return{props:{...we,...Ee,...or},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(X=>Ze(n,X)).join(" "):Ze(n,z)).join(" "):""),k=(P,z,F,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===P)return;f.value=P;const T=l.toRaw(P);if(X){const W=Y?.value.getCheckedNodes();if(W)if(n.multiple){const ne=[];W.forEach(oe=>{const se=(oe.pathNodes??[]).map(Q=>Q.data);ne.push(se)}),i("update:pathNodes",ne)}else{const oe=(W[0]?.pathNodes??[]).map(de=>de.data);i("update:pathNodes",oe)}i("update:modelValue",T),i("change",T)}return}const H=lr(n,P,z,F);if(H===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,X&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const J=H[H.length-1];if(E.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const T=[];H.forEach(W=>{const ne=`${Ze(n,W)}`;T.push(ne)}),T.length>0&&(M.value=T.join(n.separator))}else M.value=null;let te=!0;if(H.length!==c.value.length)te=!1;else for(let T=0;T<H.length;T++){const W=H[T],ne=c.value[T];if(Array.isArray(W)){if(!Array.isArray(ne)||W.length!==ne.length)te=!1;else for(let oe=0;oe<W.length;oe++)if(!Jn(n,W[oe],ne[oe])){te=!1;break}}else Jn(n,W,ne)||(te=!1);if(!te)break}if(!te){c.value=H;let T=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],se=[];for(let Q of oe)de.push(rt(n,Q)),n.valueType==="text"?se.push(Ze(n,Q)):n.valueType==="item"?se.push(Q):se.push(rt(n,Q));T.push(de),W.push(se)}else T.push(rt(n,oe)),n.valueType==="text"?W.push(Ze(n,oe)):n.valueType==="item"?W.push(oe):W.push(rt(n,oe))}),f.value=T;const ne=l.toRaw(W);X&&(i("update:pathNodes",H),i("update:modelValue",ne),i("change",ne))}},g=l.ref([]),h=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,P=>ue(P)),m=As(),$=async(P,z)=>{if(P){const F=await m.load("cascader",P,z);if(F.length>0)if(typeof F[0]=="string"){let J=F.map(te=>Ls(te));g.value=J}else g.value=F}};l.watch([()=>n.source,()=>n.params],async([P,z])=>{$(P,z)},{immediate:!(h.value||n.lazy)});let w=!1;const C=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([P,z])=>{k(z,n.valueType,P,!1),i("setValue",z)}),n.lazy&&k(n.modelValue,"value",[],!1);let q=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(q=async P=>{if(P!=null){B.value=!0;try{const z=await n.remoteMethod(P);g.value=z}catch(z){console.error(z)}B.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),V=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),E=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(z,F)=>{const X=await m.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const H=z.pathLabels??[];let J=[];H.forEach(te=>{te&&J.push(te)}),J.length>0&&(M.value=J.join(n.separator))}else M.value=null;F(X)}),P}),y=P=>{n.allowCreate?(i("update:modelValue",P),i("change",P),f.value=P):k(P,"value",g.value,!0)};let j=ge(n,"hintText"),_=l.ref(!1);const R=P=>{let F=P.target.value;A.value=!0,me(j.value)||(_.value=!0),i("focus",F,P)},D=P=>{setTimeout(()=>{_.value&&(_.value=!1),A.value=!1},0);let F=P.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),x.value||i("blur",F,P)},K=()=>{i("clear","")},G=l.ref(!1);let U=null;const Z=()=>{n.showTooltip&&G.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{G.value=!0},150))},ee=()=>{U&&(clearTimeout(U),G.value=!1,U=null)},le=l.computed(()=>G.value||_.value),O=l.computed(()=>G.value?S.value:j.value),x=l.ref(!1),I=P=>{x.value=P,i("visible-change",P),P||i("selected")},N=P=>{i("remove-tag",P)},b=P=>{i("expand-change",P)},Y=l.ref();return Te({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},getCheckedNodes:()=>Y?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:Y,class:V.value,props:E.value,clearable:n.clearable,placeholder:M.value||d.placeholder.value,disabled:a.value||s.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:K,onChange:y,onFocus:R,onBlur:D,onVisibleChange:I,onRemoveTag:N,expandChange:b};typeof q=="function"&&(z["remote-method"]=q,z.loading=B.value);const F={};r.slots.option&&(F.default=r.slots.option),r.slots.empty&&(F.empty=r.slots.empty);const X=[],H=l.h(v.ElCascader,z,F);X.push(H);const J={default:()=>X};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const T={...Ne(n,or),hintText:O.value,hintVisible:le.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,J)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),Qn=_s(Ms(Bs,qs,Se)),rr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ps(e,t,o){return{props:{...we,...Ee,...rr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=ge(n,"modelValue",null,i),S=e,k=l.computed(()=>({[S]:!0})),g=L=>{c.value=L,i("update:modelValue",L),i("input",L)},h=L=>{i("change",L)},m=L=>{i("select",L)};let $=ge(n,"hintText"),w=l.ref(!1);const C=L=>{let V=L.target.value;f.value=!0,me($.value)||(w.value=!0),i("focus",V,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let V=L.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,L)},B=()=>{i("clear","")},A=l.ref();return Te({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:k.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:C,onBlur:q,onSelect:m},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix&&(V.suffix=r.slots.suffix),r.slots.option&&(V.default=r.slots.option);const E=[],y=l.h(v.ElAutocomplete,M,V);E.push(y);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ne(n,rr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,R,j)}}}}const{componentName:js,create:zs,scope:Hs}=ie("autocomplete-item"),el=zs(Ps(js,Hs,Se));function Ks(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(S=>S[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Ws=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=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ys(){const e=l.getCurrentInstance();return new Ws(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:"/"},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 Gs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){const a=Ys(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{s.value=await a.load(o.sourceType,d,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Ks(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,d,{default:()=>i.value}):l.h(u,d,i.value)}}}}const{componentName:Ch,create:Us,scope:Nh}=ie("mapping"),kt=Us(Gs());function Xs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Zs(e,t){return{props:{...ar},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Xs(s.row,s.column.property);return r.default?l.h(kt,{...o,modelValue:i},{default:r.default}):l.h(kt,{...o,modelValue:i})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:kh,create:Js,scope:Eh}=ie("table-mapping-column"),tl=Js(Zs()),Qs=Symbol.for("TableStateKey");function ir(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function eu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Qs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ir(i.row,i.column.property),d=a?ir(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},S=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),k={class:{"el-radio":!0,"is-checked":f}};return l.h("label",k,[S])}};return l.h(v.ElTableColumn,{...n},s)}}}}const{componentName:Ih,create:tu,scope:Oh}=ie("table-radio-column"),nl=tu(eu()),nu={},lu={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"},ou=[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)];function ru(e,t){return l.openBlock(),l.createElementBlock("svg",lu,ou)}const au=_e(nu,[["render",ru]]),{componentName:Dh,create:iu,scope:Fh}=ie("table-setting"),su={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:"不固定"}},uu=iu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:au,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...su},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed===""||b.fixed===!0||b.fixed==="left")),s=l.computed(()=>r.value.filter(b=>b.label===""||b.type?!1:b.fixed==="right")),i=l.computed(()=>r.value.filter(b=>!(b.label===""||b.type||b.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),d=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=b=>b.length>1,S=(b,Y)=>{Array.isArray(b)&&Array.isArray(Y)&&b.forEach(F=>{Y.some(X=>X.prop===F.prop?(F.label=X.label,!0):!1)});const P=[];r.value=b.map((F,X)=>(!(F.label===""||F.type)&&F.visible!==!1&&P.push(F.prop),{...F,sortIndex:X})),i.value.length+a.value.length+s.value.length===P.length?w.value=!0:P.length>0&&(C.value=!0),A.value=P},k=b=>b?b.type?b.type:b.label?b.prop:"":"",g=(b,Y)=>{if(b.length!==Y.length)return!1;const P=b.map(z=>k(z));for(let z of Y){const F=k(z);if(P.indexOf(F)===-1)return!1}return!0},h=b=>{if(!b){const Y=e.tableRef.getColumnSetting(),P=Y.srcColumnPropertyList;n=P.map((z,F)=>({...z,sortIndex:F})),b=Y.columnPropertyList,b&&b.length>0&&g(P,b)||(b=P)}S(b,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),C=l.ref(!1),q=b=>{const Y=[];r.value.forEach(z=>{b&&!(z.label===""||z.type)&&Y.push(z.prop),z.visible=b}),w.value=!1,C.value=!1,i.value.length+a.value.length+s.value.length===Y.length?w.value=!0:Y.length>0&&(C.value=!0),A.value=Y,m()},B=()=>{h(n),m()},A=l.ref([]),L=b=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const z=b.indexOf(P.prop)!==-1;P.visible=z}),w.value=!1,C.value=!1;const Y=i.value.length+a.value.length+s.value.length;b.length===Y?w.value=!0:b.length>0&&(C.value=!0),m()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const V={currentRow:null,index:null,roleType:null},E=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,E(b)):null:null,y=b=>{const Y=b.currentTarget;Y&&Y.dataset&&(V.roleType=Y.dataset.roleType,V.index=Y.dataset.index)},j=b=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null,V.roleType=null},_=b=>{const Y=b.currentTarget;b.relatedTarget;const P=E(Y);if(!P)return;const z=P.dataset&&P.dataset.roleType;V.roleType===z&&(b.preventDefault(),V.currentRow&&V.currentRow!==P&&V.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),V.currentRow=P)},R=b=>{b.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},D=b=>{const Y=b.currentTarget,P=E(Y);if(!P)return;const z=P.dataset&&P.dataset.roleType;if(V.roleType!==z)return;b.preventDefault();const F=Number(V.index),X=Number(P.dataset.index);if(F!==X){if(F<X){const H=r.value[F];r.value.splice(F,1),r.value.splice(X,0,H)}else{const H=r.value[F];r.value.splice(F,1),r.value.splice(X+1,0,H)}S(r.value,n),m()}},K=b=>{const Y=r.value[b];Y.fixed="left",m()},G=b=>{const Y=r.value[b];Y.fixed="right",m()},U=b=>{const Y=r.value[b];Y.fixed=void 0,m()},Z=new Map;let ee=null;function le(b){const Y=document.createRange();return Y.setStart(b,0),Y.setEnd(b,b.childNodes.length),Y.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:C,handleCheckAllChange:q,handleReset:B,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:y,onDragEnd:j,onDragOver:_,onDragLeave:R,onDrop:D,toLeftFixed:K,toRightFixed:G,toUnFixed:U,checkboxLabelStyle:$,onMouseOverForOverflowText:(b,Y,P)=>{const z=b.currentTarget;if(z){const F=Math.floor(z.offsetWidth);if(Math.floor(le(z))>F){let H=Z.get(Y);if(H){if(H===ee)return;De.hide(H)}H=De.show(z,P,{type:"text",placement:"top",closeOnClick:!1}),Z.set(Y,H),ee=H}}},onMouseLeaveForOverflowText:(b,Y)=>{const P=Z.get(Y);P&&(De.hide(P),P===ee&&(ee=null))},onMouseOverForTip:(b,Y)=>{const P=b.currentTarget;P&&(ee&&De.hide(ee),ee=De.show(P,Y,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:b=>{ee&&(De.hide(ee),ee=null)}}}}),cu={class:"fox-table-setting"},fu={class:"fox-table-setting__header"},du={class:"fox-table-setting__body"},hu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gu={key:0,class:"fox-table-setting__body-title"},mu=["data-index","draggable"],pu=["onMouseover","onMouseleave"],yu={class:"tools-item"},bu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},vu={key:0,class:"fox-table-setting__body-title"},wu=["data-index","draggable"],Su=["onMouseover","onMouseleave"],xu={class:"tools-item"},Tu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},$u={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],Nu=["onMouseover","onMouseleave"],ku={class:"tools-item"};function Eu(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),S=l.resolveComponent("fox-checkbox"),k=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",cu,[l.createElementVNode("div",fu,[l.createVNode(s,{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(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",du,[l.createVNode(k,{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",hu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",gu,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(s,{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,pu)]),_:2},1032,["label"]),l.createElementVNode("div",yu,[l.createVNode(f,{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(d)]),_:2},1032,["onClick"]),l.createVNode(f,{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(c)]),_:2},1032,["onClick"])])],40,mu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",bu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",vu,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(s,{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,Su)]),_:2},1032,["label"]),l.createElementVNode("div",xu,[l.createVNode(f,{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(c)]),_:2},1032,["onClick"]),l.createVNode(f,{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(c)]),_:2},1032,["onClick"])])],40,wu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",$u,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(S,{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,Nu)]),_:2},1032,["label"]),l.createElementVNode("div",ku,[l.createVNode(f,{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(d)]),_:2},1032,["onClick"]),l.createVNode(f,{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(c)]),_:2},1032,["onClick"])])],40,Cu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const on=_e(uu,[["render",Eu]]);let Iu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){if(Array.isArray(o)){let d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,s,i]);const u=Pe(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function Ou(){const e=l.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Pe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Pe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Pe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function sr(){const e=l.getCurrentInstance();return new Vu(e.proxy)}const Du=Symbol.for("TableStateKey"),ur={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"}},cr={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}},ll={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:"不固定"}},Fu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function ol(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Ru(n,r);if(a!==s)return!1}return!0})}function Au(e,t,o){return{inheritAttrs:!1,props:{...we,...Ee,...ur,...cr,...ll,...Fu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Le.useFoxI18n(t),{emitEvent:s}=xe({componentName:e,validateHandler:{getValue(...Q){return A.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),d=l.computed(()=>({[`${i}__setting`]:!0})),f=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=l.shallowRef({}),k=l.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),g=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),m=ue(n.infiniteLoad);m||(l.watch(()=>n.pageIndex,Q=>{g.value=Q}),l.watch(()=>n.pageSize,Q=>{h.value=Q}),l.watch([g,h],([Q,re],[ae,ce])=>{re!==ce&&(g.value=1,Q=1),E(n.data,Q,re,k.value)}));const $=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);$()&&l.watch([()=>n.data,k],async([Q,re],[ae,ce])=>{$()&&(Q!==ae&&(M=!0),!(!Array.isArray(Q)&&Ye(Q,ae)&&Ye(re,ce))&&(m?(g.value=0,q.value=!0,A.value=[],j()):g.value===1?E(Q,g.value,h.value,re):g.value=1))},{deep:!0});const w=Q=>{g.value=Q,s("page-index-change",Q)},C=Q=>{h.value=Q,s("page-size-change",Q)},q=l.ref(!0),B=l.ref(0),A=l.ref(),L=Ou();let M=!0;const V=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,Q=>ue(Q)),E=async(Q,re,ae,ce,Re)=>{M=!1;try{if(Re===!0){if(!q.value)return!1;const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,A.value,be.page),setTimeout(()=>{s("loaded-data")},250),(A.value?.length??0)>=B.value)||be.page.length<ae?(q.value=!1,!1):!0}else{const be=await L.load("table",Q,re,ae,ce,M,a.value);return B.value=be.totalSize,A.value=be.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),B.value=0,A.value=[]}return!1};let y=!1;const j=async()=>{if(!y){if(y=!0,!q.value){y=!1;return}g.value+=1,await E(n.data,g.value,h.value,k.value,!0),y=!1}},_=(Q={},re=!1)=>new Promise(async ae=>{S.value={...l.toRaw(Q??{})},re||(g.value=n.pageIndex??1),m===!0?(g.value=0,A.value=[],q.value=!0,await j()):await E(n.data,g.value,h.value,k.value),ae()}),R=()=>{B.value=0,A.value=[],m===!0&&(g.value=0,q.value=!0)};let D=!1;const K=()=>{D||(D=!0,_())},G=l.ref(null);if(m===!0){let Q=null;const re=()=>{G.value&&(Q=new IntersectionObserver(ce=>{let Re=!1;for(let be of ce)if(be.intersectionRatio>0){Re=!0;break}Re&&j()}),Q.observe(G.value))},ae=()=>{!Q||!G.value||(Q.unobserve(G.value),Q=null)};l.onMounted(re),l.onBeforeUnmount(ae)}$()&&!V.value&&_();const U=l.ref(null);l.provide(Du,{currentRow:U});const Z=(Q,re)=>{U.value=Q,s("current-change",Q,re)},ee=(Q,re,ae)=>{s("row-click",Q,re,ae),ue(n.rowClickSelectable)===!0&&se?.value.toggleRowSelection(Q)},le=[],O=(Q,re)=>{if(s("expand-change",Q,re),ue(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=le.length;le.splice(0,ae)}else{le.forEach(ce=>{ce!==Q&&se?.value.toggleRowExpansion(ce,!1)});const ae=le.length;le.splice(0,ae,Q)}},x=r.attrs.id??n.prop??r.attrs.name,I=sr(),N=l.ref([]);let b=[];const Y=()=>({srcColumnPropertyList:b.map(re=>({...re})),columnPropertyList:N.value}),P=Q=>{N.value=[...Q],F()},z=async()=>{const Q=await I.load(x);Q&&(N.value=Q)},F=()=>{I.save(x,N.value)},X=()=>{I.remove(x)};z();const H=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",J=()=>typeof r.slots.default=="function"?r.slots.default():[],te=(Q,re)=>{for(let ae in re){const ce=re[ae];typeof ce!="function"&&(Q[ae]=ce)}},T=l.computed(()=>{const Q=J(),re=new Map;if(b=[],Q.forEach(ae=>{const ce=ae;if(!ce.props)return;const Re=H(ce.props);re.set(Re,ae);const be={label:"",prop:""};te(be,ce.props),b.push(be)}),N.value.length===b.length){const ae=[];for(let ce of N.value){const Re=H(ce),be=re.get(Re);if(!be)return Q;if(ce.visible===!1)continue;const fn=be;fn.props.fixed=ce.fixed,ae.push(fn)}return ae}return Q}),W=l.shallowRef(new Map),ne=({column:Q,rowIndex:re})=>{const ae=`${re}_${Q.property}`;return W.value.get(ae)??""},oe=Q=>typeof Q=="function"?re=>{const ae=[];let ce=ne(re);return ce&&ae.push(ce),ce=Q(re),ce&&ae.push(ce),ae.length===0?"":ae.join(" ")}:ne,de=(Q,re,ae)=>{const ce=`${Q}_${re}`;ae?W.value.set(ce,ae):W.value.delete(ce),l.triggerRef(W)},se=l.ref();return Te({clearSelection:()=>se?.value.clearSelection(),getSelectionRows:()=>se?.value.getSelectionRows(),toggleRowSelection:(Q,re)=>{se?.value.toggleRowSelection(Q,re)},toggleRowSelectionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowSelection(ce,re)})},toggleAllSelection:()=>{se?.value.toggleAllSelection()},toggleRowExpansion:(Q,re)=>{se?.value.toggleRowExpansion(Q,re)},toggleRowExpansionByProp:(Q,re)=>{if(!A.value)return;const ae=ol(A.value,Q);ae.length!==0&&ae.forEach(ce=>{se?.value.toggleRowExpansion(ce,re)})},setCurrentRow:Q=>{se?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!A.value)return;const re=ol(A.value,Q);re.length!==0&&se?.value.setCurrentRow(re[0])},getCurrentRow:()=>U.value,clearSort:()=>{se?.value.clearSort()},clearFilter:Q=>{se?.value.clearFilter(Q)},doLayout:()=>{se?.value.doLayout()},sort:(Q,re)=>{se?.value.sort(Q,re)},scrollTo:(Q,re)=>{se?.value.scrollTo(Q,re)},setScrollTop:Q=>{se?.value.setScrollTop(Q)},setScrollLeft:Q=>{se?.value.setScrollLeft(Q)},loadData:_,clearData:R,getData(){return A.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:Y,setColumnSetting:P,removeColumnSetting:X,setCellClassName:de}),()=>{const re={...He(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:O,data:A.value,ref:se,class:u.value,"cell-class-name":oe(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>T.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),m===!0){const je=[];if(q.value){const Dt=l.h($e.Loading,{class:`${i}__infinite-icon`});je.push(Dt);const _l=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);je.push(_l)}else{const Dt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);je.push(Dt)}const it={ref:G,class:`${i}__infinite`},Bl=l.h("div",it,je);ae.append=()=>Bl}const ce=l.h(v.ElTable,re,ae),Re=[];if(Re.push(ce),!m){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const it={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":C,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(v.ElPagination,it)}if(n.showSetting){const it=[];je&&it.push(je);const Bl=l.h(v.ElIcon,{class:d.value},{default:()=>l.h($e.Setting)}),Dt=io(n,ll),_l=l.h(on,{...Dt,tableRef:{getColumnSetting:Y,setColumnSetting:P,removeColumnSetting:X}},{default:()=>Bl});it.push(_l);const bh=l.h("div",{class:f.value},it);Re.push(bh)}else je&&Re.push(je)}const be={default:()=>Re},Vt={...Ne(n,ur,cr,ll),prop:`${n.prop}_item`};return Vt.contentClass=`${i}__wrap`,Vt.errorMarkClass="is-table-error",V.value&&$()&&(Vt["appear-listen"]=!0,Vt.onAppear=K),l.h(o,Vt,be)}}}}const{componentName:Lu,create:Mu,scope:Bu}=ie("table-item"),rl=Mu(Au(Lu,Bu,Se));function dt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function _u(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=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Pu(){const e=l.getCurrentInstance();return new qu(e.proxy)}function fr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=dt(e,t),r=dt(e,o);if(n!==r)return!1;const a=Et(e,t),s=Et(e,o);return a===s}function ju(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 s=!1;if(o==="text")s=dt(e,a)===t;else if(o==="item")s=fr(e,a,t);else{let i=Et(e,a);i==null&&(i=dt(e,a)),s=i===t}if(s){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const dr={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 Ku(e,t,o){return{inheritAttrs:!0,props:{...we,...Ee,...dr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),d=l.ref(null),f=(L,M,V,E=!0)=>{const y=ju(n,L,M,V);if(y===null){if(d.value===null)return;d.value=null,u.value=null,E&&(i("update:modelValue",null),i("change",null));return}if(!fr(n,y,d.value)){u.value=L;const _=l.toRaw(y);d.value=_;let R=null;n.valueType==="text"?R=dt(n,_):n.valueType==="item"?R=_:R=Et(n,_),E&&(i("update:modelValue",R),i("change",R))}},c=l.ref([]),S=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),k=Pu(),g=async(L,M)=>{if(L){const V=await k.load("radio",L,M);if(V.length>0)if(typeof V[0]=="string"){let j=V.map(_=>zu(_));c.value=j}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((E,y)=>{const j=Et(n,E),_=dt(n,E);let R=_u(n,E);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const D=Hu(n,E,y)??{},K=`${j}_${y}`,G={...D,key:K,label:j,size:n.size,border:ue(n.border)};R&&(G.disabled=R),n.itemType==="button"?V.push(l.h(v.ElRadioButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(v.ElRadio,G,{default:()=>M(E)})):V.push(l.h(v.ElRadio,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},V=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const y=l.h(v.ElRadioGroup,M,E);V.push(y);const j={default:()=>V};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ne(n,dr),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return S.value&&(R["appear-listen"]=!0,R.onAppear=m),l.h(o,R,j)}}}}const{componentName:Wu,create:Yu,scope:Gu}=ie("radio-item"),al=Yu(Ku(Wu,Gu,Se));function ht(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function gt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Uu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Xu=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=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Zu(){const e=l.getCurrentInstance();return new Xu(e.proxy)}function hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ht(e,t),r=ht(e,o);if(n!==r)return!1;const a=gt(e,t),s=gt(e,o);return a===s}function Ju(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 s of n){let i=!1;if(o==="text")i=ht(e,s)===a;else if(o==="item")i=hr(e,s,a);else{let u=gt(e,s);u==null&&(u=ht(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function Qu(e){return{text:e,value:e}}function ec(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const gr={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 tc(e,t,o){return{inheritAttrs:!0,props:{...we,...Ee,...gr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),d=l.ref([]),f=(L,M,V,E=!0)=>{const y=Ju(n,L,M,V);if(y===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],E&&(i("update:modelValue",[]),i("change",[]));return}let j=!0;if(y.length!==d.value.length)j=!1;else for(let _=0;_<y.length;_++){const R=y[_],D=d.value[_];if(!hr(n,R,D)){j=!1;break}}if(!j){d.value=y;let _=[],R=[];y.forEach(K=>{_.push(gt(n,K)),n.valueType==="text"?R.push(ht(n,K)):n.valueType==="item"?R.push(K):R.push(gt(n,K))}),u.value=_;const D=l.toRaw(R);E&&(i("update:modelValue",D),i("change",D))}},c=l.ref([]),S=Ie(l.computed(()=>n.appearLoad),"appearLoad",Me.Near,L=>ue(L)),k=Zu(),g=async(L,M)=>{if(L){const V=await k.load("checkbox",L,M);if(V.length>0)if(typeof V[0]=="string"){let j=V.map(_=>Qu(_));c.value=j}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=ge(n,"hintText"),B=ge(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((E,y)=>{const j=gt(n,E),_=ht(n,E);let R=Uu(n,E);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const D=ec(n,E,y)??{},K=`${j}_${y}`,G={...D,key:K,class:n.itemClass,label:j,size:n.size,border:ue(n.border)};R&&(G.disabled=R),n.itemType==="button"?V.push(l.h(v.ElCheckboxButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(v.ElCheckbox,G,{default:()=>M(E)})):V.push(l.h(v.ElCheckbox,G,{default:()=>[_]}))}),V};return()=>{const M={...He(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:C},V=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const y=l.h(v.ElCheckboxGroup,M,E);V.push(y);const j={default:()=>V};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ne(n,gr),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return S.value&&(R["appear-listen"]=!0,R.onAppear=m),l.h(o,R,j)}}}}const{componentName:nc,create:lc,scope:oc}=ie("checkbox-item"),il=lc(tc(nc,oc,Se)),mr={modelValue:{type:[Number,String],required:!1}};function rc(e,t,o){return{props:{...we,...Ee,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>ve(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),k=l.ref(!1);const g=l.ref();return Te({}),()=>{const m={...He(r.attrs),ref:g,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(v.ElRate,m,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,mr),hintText:S.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:ac,create:ic,scope:sc}=ie("rate-item"),sl=ic(rc(ac,sc,Se)),pr={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,t,o){return{props:{...we,...Ee,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),{emitEvent:i}=xe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=ge(n,"hintText"),k=ge(n,"hintVisible");const g=l.ref();return Te({}),()=>{const m={...He(r.attrs),ref:g,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(v.ElSwitch,m,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ne(n,pr),hintText:S.value,hintVisible:k.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:cc,create:fc,scope:dc}=ie("switch-item"),ul=fc(uc(cc,dc,Se)),yr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,t,o){return{props:{...we,...Ee,...yr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Ve(l.computed(()=>n.disabled)),s=Oe(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=xe({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),S=B=>{u("update:modelValue",B),u("change",B)};let k=ge(n,"hintText"),g=l.ref(!1);const h=B=>{let L=B.target.value;i.value=!0,me(k.value)||(g.value=!0),u("focus",L,B)},m=B=>{setTimeout(()=>{g.value&&(g.value=!1),i.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=l.ref(!1),C=B=>{w.value=B,u("visible-change",B),B||u("selected")},q=l.ref();return Te({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...He(r.attrs),ref:q,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:$,onFocus:h,onBlur:m,onVisibleChange:C},L={};r.slots.option&&(L.default=r.slots.option);const M=[],V=l.h(v.ElTreeSelect,A,L);M.push(V);const E={default:()=>M};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const j={...Ne(n,yr),hintText:k.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,E)}}}}const{componentName:gc,create:mc,scope:pc}=ie("tree-select-item"),cl=mc(hc(gc,pc,Se)),yc={},bc={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"},vc=[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)];function wc(e,t){return l.openBlock(),l.createElementBlock("svg",bc,vc)}const Sc=_e(yc,[["render",wc]]),{componentName:Ah,create:xc,scope:Lh}=ie("group-setting"),Tc={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:"到底部"}},$c=xc({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Sc,Download:$e.Download,RefreshLeft:$e.RefreshLeft},props:{...Tc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=sr(),i=O=>O.length>1,u=()=>{const O=[],x=[...a.value];a.value=x.map((N,b)=>(N.visible!==!1&&O.push(N.prop),{...N,sortIndex:b})),a.value.length===O.length?h.value=!0:O.length>0&&(m.value=!0),C.value=O},d=O=>{let x=null;if(typeof O=="string")x=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const N=O.$el??O;typeof N.querySelectorAll=="function"&&(x=N.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const I=[];return x.forEach(N=>{const b=N.querySelector(".label--string");let Y="";b&&(Y=b.textContent??"");const P=N.getAttribute("prop")??"",F=window.getComputedStyle(N,null).getPropertyValue("display");I.push({label:Y,prop:P,sortIndex:0,visible:F!=="none"})}),I},f=()=>{if(!r){const O=d(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},c=async(O=!1)=>{const x=await s.load(e.groupProp),I=N=>{if(!N||!r)return;const b=r.map(Y=>({...Y}));Array.isArray(x)&&x.forEach(Y=>{b.some(P=>{if(P.prop===Y.prop){const z=P.label;return Object.assign(P,Y),P.label=z,!0}return!1})}),a.value=b.sort((Y,P)=>Y.sortIndex-P.sortIndex),u(),O&&k(!1)};r?I(!0):zt(f,e.initDelay,5,50,!1,I)},S=()=>{const O=r??[];a.value=O.map(x=>({...x})),u(),k()},k=(O=!0)=>{O&&s.save(e.groupProp,a.value);const x=a.value.map(I=>({...I}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),$=O=>{const x=[];a.value.forEach(N=>{O&&x.push(N.prop),N.visible=O}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),C.value=x,k()},w=()=>{S()},C=l.ref([]),q=O=>{a.value.forEach(I=>{const N=O.indexOf(I.prop)!==-1;I.visible=N}),h.value=!1,m.value=!1;const x=a.value.length;O.length===x?h.value=!0:O.length>0&&(m.value=!0),k()},B=()=>{c()};l.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,L(O)):null:null,M=O=>{const x=O.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},V=O=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},E=O=>{const x=O.currentTarget;O.relatedTarget;const I=L(x);I&&(O.preventDefault(),A.currentRow&&A.currentRow!==I&&A.currentRow.classList.remove("is-dragover"),I.classList.add("is-dragover"),A.currentRow=I)},y=O=>{O.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},j=O=>{const x=O.currentTarget,I=L(x);if(!I)return;O.preventDefault();const N=Number(A.index),b=Number(I.dataset.index);if(N!==b){if(N<b){const Y=a.value[N];a.value.splice(N,1),a.value.splice(b,0,Y)}else{const Y=a.value[N];a.value.splice(N,1),a.value.splice(b+1,0,Y)}u(),k()}},_=O=>{const x=a.value[O];a.value.splice(O,1),a.value.splice(0,0,x),u(),k()},R=O=>{const x=a.value[O];a.value.splice(O,1),a.value.push(x),u(),k()};n({refresh:()=>{r=null,c(!1)}});const D=new Map;let K=null;function G(O){const x=document.createRange();return x.setStart(O,0),x.setEnd(O,O.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:$,handleReset:w,checkedValue:C,handleCheckChange:q,onShow:B,onDragStart:M,onDragEnd:V,onDragOver:E,onDragLeave:y,onDrop:j,checkboxLabelStyle:g,toTop:_,toBottom:R,onMouseOverForOverflowText:(O,x,I)=>{const N=O.currentTarget;if(N){const b=Math.floor(N.offsetWidth);if(Math.floor(G(N))>b){let P=D.get(x);if(P){if(P===K)return;De.hide(P)}P=De.show(N,I,{type:"text",placement:"top",closeOnClick:!1}),D.set(x,P),K=P}}},onMouseLeaveForOverflowText:(O,x)=>{const I=D.get(x);I&&(De.hide(I),I===K&&(K=null))},onMouseOverForTip:(O,x)=>{const I=O.currentTarget;I&&(K&&De.hide(K),K=De.show(I,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{K&&(De.hide(K),K=null)}}}}),Cc={class:"fox-group-setting"},Nc={class:"fox-group-setting__header"},kc={class:"fox-group-setting__body"},Ec={class:"fox-group-setting__body-list","data-role":"container"},Ic=["data-index","draggable"],Oc=["onMouseover","onMouseleave"],Vc={class:"tools-item"};function Dc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),S=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(S,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",Cc,[l.createElementVNode("div",Nc,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=k=>e.isCheckAll=k),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",kc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=k=>e.checkedValue=k),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ec,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,k=>(l.openBlock(),l.createElementBlock("div",{key:k.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":k.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(s,{class:"checkbox-item",label:k.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,k.prop,k.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,k.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(k.label),45,Oc)]),_:2},1032,["label"]),l.createElementVNode("div",Vc,[l.createVNode(f,{onClick:g=>e.toTop(k.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(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(k.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(d)]),_:2},1032,["onClick"])])],40,Ic))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const fl=_e($c,[["render",Dc]]),Fc=["aria-labelledby"],Rc=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),Ac=[Rc],Lc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Fc))}}),Mc=["aria-labelledby"],Bc=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),_c=[Bc],dl=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),qc=["aria-labelledby"],Pc=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),jc=[Pc],zc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=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),Wc=[Kc],Yc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc=["aria-labelledby"],Uc=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),Xc=[Uc],Zc=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"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=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,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}}),Jc={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}},br=(e,t)=>t[e.textKey],It=(e,t)=>t[e.valueKey],Qc=(e,t)=>t[e.visibleKey],vr=(e,t)=>t[e.disabledKey],ef=(e,t)=>{const o=t[e.doitKey];return ue(o)},tf=(e,t)=>{const o=t[e.numKey];return o==null?null:ve(t[o])},wr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function nf(e,t,o,n=!1){return{props:{...Jc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{c.value!==O&&(c.value=O,G(!1))});const S=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),g=l.ref(),h=l.ref(!1),m=()=>{const O=!h.value;$(O)},$=O=>{const x=O;x?(h.value=x,setTimeout(()=>{S.value["fox-tabs-bar__popup--show"]=!0,S.value["fox-tabs-bar__popup--hide"]=!1},0)):(S.value["fox-tabs-bar__popup--show"]=!1,S.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),C=l.ref([]),q=(O,x)=>{C.value[x]=O},B=O=>x=>{q(x,O)},A=(O,x)=>{const I=w.value,N=C.value;if(!I||!N||!N[O])return;const b=N[O];let Y=0;r.direction==="vertical"?Y=b.offsetTop-(I.offsetHeight-b.offsetHeight)/2:Y=b.offsetLeft-(I.offsetWidth-b.offsetWidth)/2,L(I,Y,x?0:.3,r.direction)},L=(O,x,I,N)=>{let b=0;const Y=N==="horizontal"?O.scrollLeft:O.scrollTop,P=I===0?1:Math.round(I*1e3/16);function z(){N==="horizontal"?O.scrollLeft+=(x-Y)/P:O.scrollTop+=(x-Y)/P,++b<P&&Sn(z)}z()},M=(O,x)=>{const I=It(r,O),N={};return N[`${e}__titles-item`]=!0,N.disabled=vr(r,O),N.active=I===c.value,r.shape&&(N[`${r.shape}`]=!0),r.ellipsis&&(N.ellipsis=!0),x&&(x.class&&(N[`${x.class}`]=!0),x.disabled===!0&&(N.disabled=x.disabled)),N},V=(O,x)=>{const I={};if(f.value>0){const N=Math.abs(f.value/2);r.direction==="vertical"?(I["margin-top"]=`${N}px`,I["margin-bottom"]=`${N}px`):(I["margin-left"]=`${N}px`,I["margin-right"]=`${N}px`)}return x&&x.style&&Object.assign(I,x.style),I},E=(O,x)=>`${It(r,O)??x}`,y=(O,x)=>{const I=It(r,O),N={};N[`${e}__popup-item`]=!0,N.disabled=vr(r,O),N.active=I===c.value,r.shape&&(N[`${r.shape}`]=!0);const b=wr(r,O,x);return b&&b.disabled===!0&&(N.disabled=b.disabled),N},j=l.computed(()=>(r.data??[]).filter(x=>Qc(r,x)!==!1)),_=(O,x)=>{const I=It(r,O);if(c.value==I)return;const N=()=>{c.value=I,r.scroll&&A(x,!1),s("update:modelValue",I),s("change",O,x)};if(typeof r.beforeChange=="function"){const b=r.beforeChange(O,x);Xl(b)?b.then(Y=>{Y!==!1&&N()}).catch(()=>{N()}):b!==!1&&N()}else N()},R=(O,x)=>function(){_(O,x)},D=(O,x)=>{_(O,x),$(!1)},K=(O,x)=>function(){D(O,x)},G=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(I=>It(r,I)===c.value);x!==-1&&A(x,O)};l.watch(()=>r.data,()=>{setTimeout(G,0)}),l.onMounted(()=>{G(!0)});const U=(O,x)=>{if(a.item)return a.item({item:O,index:x});const I=wr(r,O,x),N=[];if(a.text){const z=a.text({item:O,index:x});N.push(z)}else{const z=[];if(I?.doit===!0||ef(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",J);z.push(te)}const F=I?.num??tf(r,O);if(F){let J="";const te=ve(F);te>=100?J="99+":J=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",T,[J]);z.push(W)}const X={class:`${e}__titles-item-text`};z.push(br(r,O));const H=l.h("view",X,z);N.push(H)}const b={class:`${e}__titles-item-line`},Y=l.h("view",b);N.push(Y);const P={ref:B(x),class:M(O,I),style:V(O,I),key:E(O,x),onClick:R(O,x)};return l.h("view",P,N)},Z=()=>{const O=a.default?a.default():[];if(O.length===0)for(let I=0;I<j.value.length;I++){const N=j.value[I],b=U(N,I);O.push(b)}const x={ref:w,class:u.value,style:d.value};return l.h("view",x,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const x={class:`${e}__navigation`,onClick:m};return l.h("view",x,[O])},le=()=>{const O=[];for(let I=0;I<j.value.length;I++){const N=j.value[I];let b=null;a.popupItem?b=a.popupItem({item:N,index:I}):b=br(r,N);const Y={class:y(N,I),key:E(N,I),onClick:K(N,I)},P=l.h("view",Y,[b]);O.push(P)}const x={class:S.value,style:k.value};return l.h("view",x,O)};return()=>{const O=[],x=Z();if(O.push(x),r.showQuickNavigation){const N=ee();O.push(N);const b=le();O.push(b)}const I={class:i.value};return l.h("view",I,O)}}}}const{create:lf,componentName:of,scope:rf}=ie("tabs-bar"),hl=lf(nf(of,rf,Lc,!1)),Sr=Symbol("TabsStatesKey"),af={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function sf(e,t,o=!1){return{props:{...af},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};i.current.value===h&&(m.loaded=!0),s.value.push(m),l.triggerRef(s)},remove:h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&s.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=s.value.findIndex($=>$.name===h);return m!==-1?i.current.value?s.value[m].loaded??!1:m===0:!1}};l.provide(Sr,i);const u=h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&(s.value[m].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==m&&(i.direction.value=m)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let S=!0;const k=l.computed(()=>{const h={},m=s.value.length;if(m<=0)return h;const $=s.value.findIndex(w=>w.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${m*i.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${m*i.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const m=Ut(d.value);i.tabWidth.value=m.width,i.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:k.value,ref:f},m=l.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return l.h("view",$,[m])}}}}const{create:uf,componentName:cf,scope:ff}=ie("tabs-container"),gl=uf(sf(cf,ff,!1)),df={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function hf(e,t,o){return{props:{...df},setup(n,{emit:r,slots:a}){const s=l.inject(Sr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},S=n.emptyIcon??o,k=l.h(S,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),$={class:`${e}__empty`},w=l.h("view",$,[k,m]);d.push(w)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:gf,componentName:mf,scope:pf}=ie("tabs-pane"),ml=gf(hf(mf,pf,dl)),yf={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 bf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Tr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function vf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function pl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function $r(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Cr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function yl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class wf{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=Pe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(We(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Sf(){const e=l.getCurrentInstance();return new wf(e.proxy)}function xf(e,t,o,n){return{props:{...yf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=Sf(),d=l.ref([]),f=l.computed(()=>d.value.filter(x=>vf(r,x)!==!1)),c=l.ref(-1),S=()=>{const x=r.modelValue,I=f.value.findIndex(N=>xr(r,N)===x);c.value!==I&&(c.value=I,r.scroll&&le(I,!1))};l.watch([()=>r.modelValue,f],()=>{S()});const k=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const I=f.value[x],b=(yl(r,I,x)??{}).status??pl(r,I);return k(x)||b},h=l.computed(()=>{const x={[i]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=l.computed(()=>({})),$=(x,I,N,b,Y)=>{const P={[`${i}__step`]:!0};return Y&&(P[`${Y}`]=!0),P[`${w.value}`]=!0,b&&(P["is-doit"]=!0),x===c.value?P["is-active"]=!0:I==="done"?P["is-done"]=!0:I==="error"?P["is-error"]=!0:I==="half"?P["is-half"]=!0:N?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),C=(x,I={})=>{const N={...I};return w.value==="start"&&x===f.value.length-1?N.flex="0 0 auto":r.step?r.direction==="vertical"?N.height=r.step:N.width=r.step:N.flex="1 1 100%",N},q=(x,I)=>{let N={};if(I<f.value.length-1){const b=I+1;g(I)&&g(b)?r.direction==="vertical"?N.height="100%":N.width="100%":N.opacity="0"}return N},B=x=>f.value.length-1===x,A=(x,I)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&I>c.value||c.value===I)return;const N=c.value,b=I;c.value=I,r.scroll&&le(I,!1);const Y=xr(r,x);s("update:modelValue",Y);const P={fromIndex:N,currentIndex:b,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",Y,P)},L=l.ref(!0),M=async(x,I)=>{try{const N=await u.load("stesbar",x,I);Array.isArray(N)&&(d.value=N),L.value=!1}catch(N){console.error("[FoxUI] Load StepsBar Data Fail",N),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,I])=>{x&&M(x,I)},{immediate:!0});const V=(x,I,N,b,Y)=>{let P=null;if(a.icon)P=a.icon({item:x,index:I,status:b});else if(b==="done"){const F={};r.iconSize&&(F.width=r.iconSize,F.height=r.iconSize);const X=r.icon??o;P=l.h(X,F)}else{const F=N??`${I+1}`;P=l.h("span",{},[F])}const z={class:"fox-steps-bar__icon",onClick:()=>{Y||A(x,I)}};return l.h("view",z,[P])},E=(x,I,N)=>{const b=l.h("i",{class:"fox-steps-bar__line-inner",style:q(x,I)});return l.h("view",{class:"fox-steps-bar__line"},[b])},y=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const N={};r.iconSize&&(N.width=r.markIconSize,N.height=r.markIconSize);const b=r.markIcon??n;x=l.h(b,N)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},j=(x,I,N,b,Y)=>{const P=[];if(!B(I)){const X=E(x,I);P.push(X)}const z=V(x,I,N,b,Y);P.push(z);const F={class:"fox-steps-bar__head"};return l.h("view",F,P)},_=(x,I,N,b)=>{let Y=null;a.main?Y=a.main({item:x,index:I,status:N}):Y=bf(r,x);const P={class:"fox-steps-bar__main",onClick:()=>{b||A(x,I)}};return l.h("view",P,[Y])},R=(x,I,N)=>{let b=null;if(a.sub){b=a.sub({item:x,index:I,status:N});const Y={class:"fox-steps-bar__sub"};return l.h("view",Y,[b])}return null},D=(x,I)=>{const N=yl(r,x,I)??{},b=N.status??pl(r,x);let Y=Tr(r,x);N.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const P=N.label??Cr(r,x),z=[],F=V(x,I,P,b,Y);F&&z.push(F);const X=_(x,I,b,Y);if(X&&z.push(X),!B(I)){const ne=E(x,I);ne&&z.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},z),J=N.class,te=N.style??{};let T=$r(r,x);N.doit===!0&&(T=!0);const W={ref:ee(I),class:$(I,b,Y,T,J),style:C(I,te)};return l.h("view",W,[H])},K=(x,I)=>{const N=yl(r,x,I)??{},b=N.status??pl(r,x);let Y=Tr(r,x);N.disabled===!0&&(Y=!0),r.disabled===!0&&(Y=!0);const P=N.label??Cr(r,x),z=[],F=r.layout;for(let T of F)if(T==="head"){const W=j(x,I,P,b,Y);z.push(W)}else if(T==="main"){const W=_(x,I,b,Y);z.push(W)}else if(T==="sub"){const W=R(x,I,b);z.push(W)}else if(T==="mark"){const W=y();z.push(W)}const X=N.class,H=N.style??{};let J=$r(r,x);N.doit===!0&&(J=!0);const te={ref:ee(I),class:$(I,b,Y,J,X),style:C(I,H)};return l.h("view",te,z)},G=l.ref(),U=l.ref([]),Z=(x,I)=>{U.value[I]=x},ee=x=>I=>{Z(I,x)},le=(x,I)=>{const N=G.value,b=U.value;if(!N||!b||!b[x])return;const Y=b[x];let P=0;r.direction==="vertical"?P=Y.offsetTop-(N.offsetHeight-Y.offsetHeight)/2:P=Y.offsetLeft-(N.offsetWidth-Y.offsetWidth)/2,O(N,P,I?0:.3,r.direction)},O=(x,I,N,b)=>{let Y=0;const P=b==="horizontal"?x.scrollLeft:x.scrollTop,z=N===0?1:Math.round(N*1e3/16);function F(){b==="horizontal"?x.scrollLeft+=(I-P)/z:x.scrollTop+=(I-P)/z,++Y<z&&Sn(F)}F()};return()=>{const x=[];if(r.mode==="simple")for(let N=0;N<f.value.length;N++){const b=f.value[N],Y=D(b,N);x.push(Y)}else for(let N=0;N<f.value.length;N++){const b=f.value[N],Y=K(b,N);x.push(Y)}const I={ref:G,class:h.value,style:m.value};return l.h("view",I,x)}}}}const{componentName:Tf,create:$f,scope:Cf}=ie("steps-bar"),bl=$f(xf(Tf,Cf,Yc,Zc)),Nf=Symbol.for("InnerPageScopeKey"),kf=Symbol.for("PageWrapperKey");function Ef(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(Nf,!0);const r={};l.provide(kf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return l.h(v.ElDialog,d,f)}}}}const{componentName:Mh,create:If,scope:Bh}=ie("dialog-item"),vl=If(Ef());let Ot=0;const Nr="fox-overflow-hidden",kr=()=>lt?document.body:{classList:[]},Of=e=>[()=>{if(e())try{!Ot&&kr().classList.add(Nr),Ot++}catch{}},()=>{if(e()&&Ot)try{Ot--,!Ot&&kr().classList.remove(Nr)}catch{}}],Vf={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:Df,create:Ff}=ie("overlay"),Rf=Ff({props:{...Vf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Of(()=>e.lockScroll),r=l.computed(()=>({[Df]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,i=>{i?o():n()}),{classes:r,style:a,onClick:i=>{t("click",i),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Af(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((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const rn=_e(Rf,[["render",Af]]),Lf={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:{}}},Er=2e3;let Ir=Er;const Mf=(e,t)=>({components:t,props:{...Lf},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})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Er&&(Ir=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Ir,o.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},S=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},k=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:S,onOpened:k,onClosed:g}}}),{componentName:Bf,create:_f}=ie("popup"),qf=_f(Mf(Bf,{FoxOverLay:rn,Close:zc}));function Pf(e,t,o,n,r,a){const s=l.resolveComponent("FoxOverLay"),i=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,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(i)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const wl=_e(qf,[["render",Pf]]),{create:jf}=ie("toast"),zf=jf({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},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},i=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&s(),l.watch(()=>e.duration,k=>{k&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const k=he(e.iconSize);return l.h(e.icon,{width:k,height:k,color:e.iconColor})},f=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]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Hf={key:1,class:"fox-toast-title"},Kf=["innerHTML"];function Wf(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]=(...s)=>e.clickCover&&e.clickCover(...s))},[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",Hf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Kf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Sl=_e(zf,[["render",Wf]]),Yf={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"}},Gf=(e,t,o)=>({props:{...Yf},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}=vo(),{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=V=>{let y=V.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),a("update:modelValue",y,V),a("change",y,V)},S=l.ref({}),k=V=>{let y=V.target.value;u.active=!0,S.value=n.focusStyle,a("focus",y,V)},g=V=>{setTimeout(()=>{u.active=!1},0);let y=V.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),S.value={},a("blur",y,V)},h=V=>{a("update:modelValue","",V),a("change","",V),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const V={};return m.value||(V.display="none"),V}),w=()=>{a("search",n.modelValue)},C=V=>{a("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&w()},q=V=>{a("click-input",V)},B=V=>{a("click-left-icon",n.modelValue,V)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const V=[];if(r.leftin){const R={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},D=l.h("view",R,[r.leftin()]);V.push(D)}const E={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:k,onBlur:g,onkeyup:C},y=l.h("input",E);V.push(y);const j=[];if(n.clearable){const R={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,K=l.h("view",R,[l.h(D)]);j.push(K)}if(r.rightin){const R={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",R,[r.rightin()]);j.push(D)}if(j.length>0){const R={class:`${e}__input-inner-right`},D=l.h("view",R,j);V.push(D)}const _={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...S.value}};return l.h("view",_,V)};return()=>{const V=[];if(n.label){const j={class:`${e}__search-label`},_=l.h("span",j,[n.label]);V.push(_)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},_=l.h("view",j,[r.leftout()]);V.push(_)}const E=M();if(V.push(E),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},_=l.h("view",j,[r.rightout()]);V.push(_)}const y={class:`${e}`,style:d.value};return l.h("view",y,V)}}}),{componentName:Uf,create:Xf,scope:Zf}=ie("searchbar"),xl=Xf(Gf(Uf,Zf,$e.CircleClose)),Jf=/scroll|auto|overlay/i,Or=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ed(e,t=Or){let o=e;for(;o&&o!==t&&Qf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Jf.test(n))return o;o=o.parentNode}return t}function Vr(e,t=Or){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ed(e.value,t))}),o}const Dr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,td={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 nd(e,t,o){return{props:{...td},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullText","loadText","loadMoreText"]),u=l.ref(),d=Vr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),S=w=>w?w.offsetTop+S(w.offsetParent):0,k=()=>{let w=0,C=0,q="down";if(d.value==window){const B=Dr();u.value&&(w=S(u.value)+u.value.offsetHeight-B-window.innerHeight),C=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:L}=d.value;w=B-A-L,C=L}return f.beforeScrollTop>C?q="up":q="down",f.beforeScrollTop=C,r("scroll-change",C),w<=n.threshold&&q=="down"},g=()=>{ql(()=>{if(!k()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},m=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,m()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},C=l.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let M=a?.loading?.()??null;if(!M){let y=a?.loadingIcon?.()??null;if(!y){const R={class:["fox-infinite__bottom-box__img"]};y=l.h(o,R)}const j={class:"fox-infinite__bottom-box__text"},_=l.h("view",j,[i.loadText.value]);M=[y,_]}const V={class:"fox-infinite__bottom-box"},E=l.h("view",V,M);q.push(E)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const V={class:"fox-infinite__bottom-tips"};M=l.h("view",V,[i.loadMoreText.value]),q.push(M)}}const B={class:"fox-infinite__bottom"},A=l.h("view",B,q),L={class:c.value,ref:u};return l.h("view",L,[C,A])}}}}const{componentName:ld,create:od,scope:rd}=ie("infinite-loading"),Tl=od(nd(ld,rd,dl)),Fr=10;function Rr(e,t){return e>t&&e>Fr?"horizontal":t>e&&t>Fr?"vertical":""}function $l(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Cl(){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:s=>{if(s.touches){const d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=s;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=Rr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function ad(){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),s=l.ref(0),i=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",S=()=>f.value==="horizontal",k=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:m=>{if(m.touches){const C=m.touches[0];s.value=C.clientX-e.value,i.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const w=m;s.value=w.clientX-e.value,i.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=Rr(u.value,d.value))},start:m=>{if(k(),m.touches){const C=m.touches[0];e.value=C.clientX,t.value=C.clientY}else{const w=m;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:k,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:S}}const id={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:{...id},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=Cl(),d=l.ref(),f=Vr(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),S=l.computed(()=>({[e]:!0})),k=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=ke(n.headHeight)),L}),m=L=>{const M=+(n.pullDistance||n.headHeight);let V=L;return L>M&&(L<M*2?V=(L+M)/2:V=M+L/4),Math.round(V)},$=(L,M)=>{const V=+(n.pullDistance||n.headHeight);c.distance=L,M?c.status="loading":L===0?c.status="normal":L<V?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",C=()=>f.value==window?Dr()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(C()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(m(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(c.status==="loading"){if(M=a?.loading?.()??null,!M){const K={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,K)}}else c.status==="pulling"?M=a?.pulling?.()??null:c.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const V={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",V,[k.value]);L.push(E);const y={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",y,L),_={class:"fox-pull-refresh-container",style:g.value},R=l.h("div",_,[j,a?.default?.()]),D={ref:d,class:S.value};return $l()?Object.assign(D,{onTouchstart:q,onTouchmove:B,onTouchend:A}):Object.assign(D,{onMousedown:q,onMousemove:B,onMouseup:A}),l.h("div",D,[R])}}}),{componentName:ud,create:cd,scope:fd}=ie("pull-refresh"),Nl=cd(sd(ud,fd,dl));function dd(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})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),i=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:s.value,style:i.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},S=n.default?n.default():[],k=l.h("div",c,S),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,k]):l.h("div",g,[k,f])}}}}const{componentName:hd,create:gd,scope:_h}=ie("indicator"),kl=gd(dd(hd));function md(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 pd={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 yd(e,t,o,n=!1){return{props:{...pd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),u=l.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),d=(C,q)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(C.indexOf(A)!==-1){const M=C.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,B=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(C);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,B=l.h(r.tag,q))}return B},f=C=>{a.emit("click",C)};let c="";const S=()=>{const C=s.value;if(!C)return;const q=C.clientWidth;md(C,B=>{const A=C.innerHTML??"";me(A)||B<q||(c?o?.show(C,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(C,A,{type:"text",showArrow:r.showArrow},!0)??"")})},k=()=>{c&&o?.hide(c)};let g=null;const h=C=>{g||(g=setTimeout(()=>{S(),g=null},r.showAfter??0))},m=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{k()},r.hideAfter??0)},$=()=>{const C=s.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",m))},w=()=>{const C=s.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const C={onClick:f,class:i.value,style:u.value,ref:s};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=ve(r.digits),y=ve(r.decimalLength),j=ue(r.autoPadding);let _=`${M[0].children}`,R=_.split("").reverse().join("");R=At(R,y,j,E,r.separator),_=R.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(_,C)),q||(C.innerHTML=_,q=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=`${M[0].children}`;q=d(E,C),q||(C.innerHTML=E,q=l.h(r.tag,C))}}}q||(q=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},E=r.color;E&&(V.color=E);const y={class:M,style:V};A=l.h("view",y,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},E=r.color;E&&(V.color=E);const y={class:M,style:V};A=l.h("view",y,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const V={},E=r.color;E&&(V["background-color"]=E);const y={class:M,style:V};A=l.h("view",y)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,q])}}}}const{componentName:bd,create:vd,scope:wd}=ie("text"),El=vd(yd(bd,wd,De,!1)),Sd={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:$e.ArrowUp}};function xd(e,t,o){return{props:{...Sd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),s=ge(n,"modelValue"),i=l.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{r("update:modelValue",!s.value)};return()=>{const c=[];if(i.value){const h={class:u.value},m=l.h("span",h,[i.value]);c.push(m)}const S={class:d.value},k=o(n.icon,S);return k&&c.push(k),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Td,create:$d,scope:Cd}=ie("more-button"),Il=$d(xd(Td,Cd,(e,t)=>(e=e??$e.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]}))));function Nd(e){return e===window}const Ar=e=>{const t=l.unref(e);if(Nd(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:kd,create:Ed,scope:Ph}=ie("tour"),Id=Ed({components:{Close:$e.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=kd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:$,height:w,left:C,top:q}=r.value,B=e.steps[n.active].offset??g,A=[C+$/2,q+w/2],L=Number(h||$),M=Number(m||w);return{width:`${L+ +B.left+B.right}px`,height:`${M+B.top+B.bottom}px`,top:`${A[1]-M/2-+B.top}px`,left:`${A[0]-L/2-+B.left}px`}}),i=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Ar(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&c()},k=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{k(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{k(g)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:S}}}),Od={key:0,class:"fox-tour__content"},Vd={key:0,class:"fox-tour__content-top"},Dd={class:"fox-tour__content-inner"},Fd={class:"fox-tour__content-bottom"},Rd={class:"fox-tour__content-bottom-init"},Ad={class:"fox-tour__content-bottom-operate"},Ld={key:1,class:"fox-tour__content fox-tour__content-tile"},Md={class:"fox-tour__content-inner"};function Bd(e,t,o,n,r,a){const s=l.resolveComponent("Close"),i=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]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{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",Od,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Vd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Dd,l.toDisplayString(d.content),1),l.createElementVNode("div",Fd,[l.createElementVNode("div",Rd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Ad,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>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(i,{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(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>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",Ld,[l.createElementVNode("div",Md,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ol=_e(Id,[["render",Bd]]),Fe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,at=e=>e==null;class _d{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=$l()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Cl(),n=(r,a,s,i)=>{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 Lr(e,t){return new _d(e,t)}const Mr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let mt=[];const Br=e=>{const t=e;t.key==="Escape"&&mt.forEach(o=>o(t))},qd=e=>{l.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",Br),Mr&&mt.push(e)}),l.onBeforeUnmount(()=>{mt=mt.filter(t=>t!==e),mt.length===0&&Mr&&document.removeEventListener("keydown",Br)})},Vl="fox-focus-trap.focus-after-trapped",Dl="fox-focus-trap.focus-after-released",Pd="fox-focus-trap.focusout-prevented",_r={cancelable:!0,bubbles:!1},jd={cancelable:!0,bubbles:!1},qr="foxFocusAfterTrapped",Pr="foxFocusAfterReleased",zd=Symbol("foxFocusTrap"),Fl=l.ref(),an=l.ref(0),Rl=l.ref(0);let sn=0;const jr=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},Hd=(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},zr=(e,t)=>{for(const o of e)if(!Hd(o,t))return o},Kd=e=>{const t=jr(e),o=zr(t,e),n=zr(t.reverse(),e);return[o,n]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,et=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Wd(e)&&t&&e.select()}};function Hr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Yd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Hr(e,n),e.unshift(n)},remove:n=>{e=Hr(e,n),e[0]?.resume?.()}}},Gd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(et(n,t),document.activeElement!==o)return},Kr=Yd(),Ud=()=>an.value>Rl.value,un=()=>{Fl.value="pointer",an.value=window.performance.now()},Wr=()=>{Fl.value="keyboard",an.value=window.performance.now()},Xd=()=>(l.onMounted(()=>{sn===0&&(document.addEventListener("mousedown",un),document.addEventListener("touchstart",un),document.addEventListener("keydown",Wr)),sn++}),l.onBeforeUnmount(()=>{sn--,sn<=0&&(document.removeEventListener("mousedown",un),document.removeEventListener("touchstart",un),document.removeEventListener("keydown",Wr))}),{focusReason:Fl,lastUserFocusTimestamp:an,lastAutomatedFocusTimestamp:Rl}),cn=e=>new CustomEvent(Pd,{...jd,detail:e}),{componentName:jh,create:Zd,scope:zh}=ie("focus-trap"),Jd=Zd({props:{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"}},emits:[qr,Pr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=Xd();qd(h=>{ue(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||i.paused)return;const{key:m,altKey:$,ctrlKey:w,metaKey:C,currentTarget:q,shiftKey:B}=h,{loop:A}=e,L=m==="Tab"&&!$&&!w&&!C,M=document.activeElement;if(L&&M){const V=q,[E,y]=Kd(V);if(E&&y){if(!B&&M===y){const _=cn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(E,!0))}else if(B&&[E,V].includes(M)){const _=cn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&et(y,!0))}}else if(M===V){const _=cn({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};l.provide(zd,{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",c),h.addEventListener("focusout",S)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",c),m.removeEventListener("focusout",S))});const d=h=>{o(qr,h)},f=h=>o(Pr,h),c=h=>{const m=l.unref(n);if(!m)return;const $=h.target,w=h.relatedTarget,C=$&&m.contains($);ue(e.trapped)||w&&m.contains(w)||(r=w),C&&o("focusin",h),!i.paused&&ue(e.trapped)&&(C?a=$:et(a,!0))},S=h=>{const m=l.unref(n);if(!(i.paused||!m))if(!e.escape&&ue(e.trapped)){const $=h.relatedTarget;!Nn($)&&!m.contains($)&&setTimeout(()=>{if(!i.paused&&ue(e.trapped)){const w=cn({focusReason:s.value});o("focusout-prevented",w),w.defaultPrevented||et(a,!0)}},0)}else{const $=h.target;$&&m.contains($)||o("focusout",h)}};async function k(){await l.nextTick();const h=l.unref(n);if(h){Kr.push(i);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const w=new Event(Vl,_r);h.addEventListener(Vl,d),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Ul(C)||(et(C),document.activeElement!==C&&(C="first")),C==="first"&&Gd(jr(h),!0),(document.activeElement===m||C==="container")&&et(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vl,d);const m=new CustomEvent(Dl,{..._r,detail:{focusReason:s.value}});h.addEventListener(Dl,f),h.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!Ud())&&et(r??document.body,!0),h.removeEventListener(Dl,d),Kr.remove(i)}}return l.onMounted(()=>{ue(e.trapped)&&k(),l.watch(()=>e.trapped,h=>{ue(h)?k():g()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Qd,create:eh,scope:Kh}=ie("floating-window"),th=Symbol.for("InnerPageScopeKey"),nh=Symbol.for("PageWrapperKey"),lh={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}},oh=eh({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:Jd},props:{...lh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Qd,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:!M.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=l.computed(()=>{const T={};return at(s.value)?T.left="auto":T.left=Fe(s.value),at(i.value)?T.top="auto":T.top=Fe(i.value),at(u.value)?T.right="auto":T.right=Fe(u.value),at(d.value)?T.bottom="auto":T.bottom=Fe(d.value),at(e.zIndex)||(T["z-index"]=Fe(e.zIndex)),at(A.value)||(T.height=A.value),at(L.value)||(T.width=L.value),T}),S=l.computed(()=>e.closeIcon??$e.Close),k=l.computed(()=>e.collapseIcon??$e.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??$e.ArrowRight:e.expandIcon??$e.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),C=l.ref(),q=l.ref(null),B=l.ref(null),A=l.computed(()=>Fe(e.height)||""),L=l.computed(()=>Fe(e.width)||""),M=l.ref(ue(e.collapse)),V=(T,W=!0)=>{M.value!==T&&(M.value=T,T?x():I(),t("update:collapse",T),T&&typeof j.onHide=="function"?j.onHide():!T&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,T=>{V(T)});const E=()=>{y()},y=T=>{T=T??!M.value,V(T)};l.provide(th,!0);const j={setCollapse:V,setFixedNavVisible:T=>{ee.value=T}};l.provide(nh,j);const _=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},R=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),K=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}),G=l.ref(""),U=l.computed(()=>{const T={};return G.value?T.top=G.value:e.collapseTop&&(T.top=e.collapseTop),T}),Z=l.ref(M.value),ee=l.computed({set:T=>{Z.value=T},get:()=>n.value===!1?!1:Z.value});let le=null;const O=()=>{typeof le=="function"&&(le(),le=null)},x=()=>{R.value&&R.value.classList.add("slide-in"),ee.value=!0,le=()=>{R.value&&R.value.classList.remove("slide-in")}},I=()=>{R.value&&R.value.classList.add("slide-out"),le=()=>{R.value&&R.value.classList.remove("slide-out"),ee.value=!1}},N=()=>{s.value=null,i.value=null,u.value=null,d.value=null},b={x:0,y:0},z=Lr(T=>{if(!C.value)return;const W=C.value;if(N(),e.origin==="left-top")s.value=W.offsetLeft,i.value=W.offsetTop,b.x=s.value,b.y=i.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=W.offsetLeft,d.value=ne-(W.offsetTop+W.offsetHeight),b.x=s.value,b.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(W.offsetLeft+W.offsetWidth),d.value=oe-(W.offsetTop+W.offsetHeight),b.x=u.value,b.y=d.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(W.offsetLeft+W.offsetWidth),i.value=W.offsetTop,b.x=u.value,b.y=i.value}},T=>{if(!C.value)return;const W=C.value;N(),e.origin==="left-top"?(s.value=b.x+T.x,i.value=b.y+T.y,W.style.left=Fe(s.value),W.style.top=Fe(i.value)):e.origin==="left-bottom"?(s.value=b.x+T.x,d.value=b.y-T.y,W.style.left=Fe(s.value),W.style.bottom=Fe(d.value)):e.origin==="right-bottom"?(u.value=b.x-T.x,d.value=b.y-T.y,W.style.right=Fe(u.value),W.style.bottom=Fe(d.value)):(u.value=b.x-T.x,i.value=b.y+T.y,W.style.right=Fe(u.value),W.style.top=Fe(i.value))}),F={x:0,y:0},J=Lr(T=>{R.value&&(F.x=R.value.offsetLeft,F.y=R.value.offsetTop)},T=>{if(!R.value)return;const W=F.y+T.y;G.value=`${W}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];q.value&&T.push(q.value),e.footerDraggable&&(te(),B.value&&T.push(B.value)),z.open(T)}e.collapse===!0&&V(e.collapse,!1),R.value&&J.open(R.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),R.value&&J.close()}),{classes:f,styles:c,isShow:a,closeIcon:S,onClose:_,dialogRef:C,headerRef:q,onClickToggle:E,collapseIcon:k,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:R,fixedNavClasses:K,fixedNavStyles:U,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),rh={ref:"headerRef",class:"fox-floating-window__header"},ah={class:"fox-floating-window__title"},ih={class:"fox-floating-window__tools"},sh={class:"fox-floating-window__body"},uh={class:"fox-floating-window__fixednav__text"};function ch(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=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(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",rh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",ah,l.toDisplayString(e.title),1),l.createElementVNode("div",ih,[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(s,{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(s,{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",sh,[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(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",uh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=_e(oh,[["render",ch]]);function fh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return po(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wh,create:dh,scope:Yh}=ie("domain-provider"),Ll=dh(fh()),hh={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 gh(e,t){return{inheritAttrs:!1,props:hh,setup(o,{slots:n}){if(lt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(S,k)=>{if(f===null){a.set(S,{visible:null,callback:k});return}r.has(S)&&f.unobserve(S),r.set(S,{visible:null,callback:k}),f.observe(S)},i=S=>{if(f===null){a.delete(S);return}r.has(S)&&(r.delete(S),f.unobserve(S))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const S=u>0;return u--,S},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(S,k,g)=>{f=new IntersectionObserver(h=>{for(let m of h){let $=!1;m.intersectionRatio>0&&($=!0);const w=r.get(m.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(C){console.error(C)}}},{root:S,rootMargin:k,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([S,k])=>{if(k||!S||f)return;let g=null;typeof S=="string"?g=document.querySelector(S):g=S,g&&c(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gh,create:mh,scope:Uh}=ie("rolling-provider"),Ml=mh(gh()),ph=[Fn,An,Ln,Mn,qn,Se,zn,Hn,Ct,Kn,Wn,Yn,Gn,Un,Xn,Zn,Qn,el,tl,nl,on,rl,al,il,sl,ul,cl,fl,hl,gl,ml,bl,vl,rn,wl,Sl,xl,Tl,Nl,kt,nn,kl,El,Il,Ol,Al,Ll,Ml],yh=new Va(ph,[Ra],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>v.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>v.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>v.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>v.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>v.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>v.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>v.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>v.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>v.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>v.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>v.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>v.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>v.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>v.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>v.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>v.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>v.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload}),p.AutocompleteItem=el,p.Broadcast=kn,p.BroadcastKey=ye,p.CascaderItem=Qn,p.CheckboxItem=il,p.Content=Mn,p.DataItemsKey=st,p.DateItem=Yn,p.DateUtils=Be,p.DialogItem=vl,p.Domain=Ht,p.DomainKey=Ae,p.DomainProvider=Ll,p.FloatingWindow=Al,p.FooterBar=Ln,p.FoxAutocompleteItem=el,p.FoxCascaderItem=Qn,p.FoxCheckboxItem=il,p.FoxContent=Mn,p.FoxDateItem=Yn,p.FoxDialogItem=vl,p.FoxDomainProvider=Ll,p.FoxFloatingWindow=Al,p.FoxFooterBar=Ln,p.FoxGroup=qn,p.FoxGroupSetting=fl,p.FoxHeaderBar=An,p.FoxHintText=Ct,p.FoxIndicator=kl,p.FoxInfiniteLoading=Tl,p.FoxInputItem=Kn,p.FoxInputNumberItem=Zn,p.FoxItem=Se,p.FoxMapping=kt,p.FoxMoneyItem=Xn,p.FoxMoreButton=Il,p.FoxOverLay=rn,p.FoxPage=Fn,p.FoxPopup=wl,p.FoxPrice=nn,p.FoxPullRefresh=Nl,p.FoxRadioItem=al,p.FoxRateItem=sl,p.FoxRollingProvider=Ml,p.FoxRowItem=Hn,p.FoxSearchBar=xl,p.FoxSelectItem=Wn,p.FoxSlotItem=zn,p.FoxStepsBar=bl,p.FoxSwitchItem=ul,p.FoxTableItem=rl,p.FoxTableMappingColumn=tl,p.FoxTableRadioColumn=nl,p.FoxTableSetting=on,p.FoxTabsBar=hl,p.FoxTabsContainer=gl,p.FoxTabsPane=ml,p.FoxText=El,p.FoxTimeItem=Gn,p.FoxTimeSelectItem=Un,p.FoxToast=Sl,p.FoxTour=Ol,p.FoxTreeSelectItem=cl,p.Group=qn,p.GroupSetting=fl,p.HeaderBar=An,p.HintText=Ct,p.Indicator=kl,p.InfiniteLoading=Tl,p.InputItem=Kn,p.InputNumberItem=Zn,p.Item=Se,p.Mapping=kt,p.MoneyItem=Xn,p.MoreButton=Il,p.OverLay=rn,p.Page=Fn,p.Popup=wl,p.Price=nn,p.PriorityPolicy=Me,p.PullRefresh=Nl,p.RadioItem=al,p.RateItem=sl,p.RollingProvider=Ml,p.RowItem=Hn,p.SearchBar=xl,p.SelectItem=Wn,p.SlotItem=zn,p.StepsBar=bl,p.SwitchItem=ul,p.TableItem=rl,p.TableMappingColumn=tl,p.TableRadioColumn=nl,p.TableSetting=on,p.TabsBar=hl,p.TabsContainer=gl,p.TabsPane=ml,p.Text=El,p.TimeItem=Gn,p.TimeSelectItem=Un,p.Toast=Sl,p.Tour=Ol,p.TreeSelectItem=cl,p.UniqueID=Do,p.ValidateSchema=ho,p.ValidateSchemaKey=qe,p.cancelRaf=Ur,p.clearNonNumber=ia,p.clone=$n,p.compareTo=wn,p.createBroadcast=_t,p.createValidateSchema=Pt,p.debounce=xt,p.debounceRef=wa,p.decimalLength=ro,p.default=yh,p.defineBroadcast=fa,p.defineConfigDomain=po,p.defineDataItem=bo,p.defineDomain=In,p.defineItem=xe,p.definePageState=wo,p.defineSimpleItem=vo,p.deleteGlobalValidator=pa,p.disabledProperty=Ve,p.divide=vn,p.excludeProps=Ne,p.extend=nt,p.floatData=ca,p.getGlobalValidateCheckEvents=uo,p.getGlobalValidateResetEvents=fo,p.getPageContentAreaHeight=Wt,p.getPageContentAreaWidth=Yt,p.getPageFooterAreaHeight=$t,p.getPageHeaderAreaHeight=Tt,p.getRootDomain=ut,p.hasSymbol=Jl,p.includeProps=io,p.indexOf=sa,p.installRules=yo,p.integerLength=oo,p.isArray=Zr,p.isArrayLike=eo,p.isBrowser=lt,p.isDate=ea,p.isESModule=na,p.isEmptyString=me,p.isEqual=Ye,p.isFunction=xn,p.isHidden=Bt,p.isInnerPage=Ta,p.isMap=Jr,p.isNil=Nn,p.isNumberString=lo,p.isObject=We,p.isPlainObject=Tn,p.isPromise=Xl,p.isRegExp=no,p.isSet=Qr,p.isString=Ul,p.isSubPage=$a,p.isSymbol=ta,p.isTouch=$l,p.isWindow=Ql,p.lastIndexOf=ua,p.makeArray=aa,p.merge=to,p.multiply=Wl,p.negate=Yl,p.nextTick=oa,p.numberFormat=At,p.objectToString=Zl,p.once=Sa,p.overrideGlobalValidateHandler=ga,p.property=Ie,p.raf=Sn,p.readonlyProperty=Oe,p.setGlobalValidateCheckEvents=ya,p.setGlobalValidateHandler=ha,p.setGlobalValidateMessages=va,p.setGlobalValidateResetEvents=ba,p.setGlobalValidator=ma,p.throttle=mo,p.toBoolean=ue,p.toNumber=ve,p.toPadding=ze,p.toPx=he,p.toPxDesc=ke,p.toTypeString=Lt,p.toValue=ge,p.tryTimes=zt,p.typeOf=Mt,p.unNumberFormat=Gl,p.updatePageState=On,p.useBroadcast=vt,p.useDomain=Ge,p.useExpose=Te,p.useInnerSize=Rn,p.usePageState=Kt,p.usePosition=Io,p.useRawTouch=Cl,p.useRect=Ar,p.useSize=Ut,p.useTouch=ad,p.valueLength=bt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});