@fox-js/foxui-pc 4.0.1-118 → 4.0.1-120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +5512 -5519
- package/dist/index.umd.js +5 -5
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),
|
|
4
|
-
* @fox-js/big-decimal v4.0.1-6
|
|
5
|
-
*/function Mt(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=Te(e),t=Te(t),[e,t]=Bn(Te(e),Te(t)),o==1&&(n==1?e=hn(e):t=hn(t));let r=Lo(e,t);return o?o==2?"-"+Te(r):e.length<r.length?Te(r.substring(1)):"-"+Te(hn(r)):Te(r)}function hn(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 Lo(t,a)}function Te(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Bn(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 Lo(e,t){[e,t]=Bn(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 Tt(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=Tt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Bl(r[1],a,n,o)?(n?"-":"")+mn(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&&Bl(i,s,n,o)&&(s=mn(s),s.length>t)?(n?"-":"")+mn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function Bl(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 mn(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 Nn(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=vt(e),t=vt(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=vt(e.replace(".","")),t=vt(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 x=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(x+=parseInt(e[u[N]--])*parseInt(t[N]));x+=i,i=Math.floor(x/10),f=x%10+f,d--}return f=vt(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 vt(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 kn(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=Te(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Te(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=Te(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=Te(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=Te(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=Mt(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?"-":"")+Te(Tt(i,o-2))}function En(e,t){return e=e.toString(),t=t.toString(),t=In(t),Mt(e,t)}function In(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function _l(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),ql(e),ql(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=En(e,Nn(t,Tt(kn(e,t),0,pe.FLOOR)));return o+n}function ql(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function jl(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]=Bn(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=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=Te(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+Te(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=pe.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Tt(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(Tt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,pe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,pe.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,pe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,pe.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Mt(t,o)}add(t){return new ce(Mt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),En(t,o)}subtract(t){return new ce(En(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),Nn(t,o)}multiply(t){return new ce(Nn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),kn(t,o,n)}divide(t,o){return new ce(kn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),_l(t,o)}modulus(t){return new ce(_l(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),jl(t,o)}compareTo(t){return jl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),In(t)}negate(){return new ce(In(this.value))}}function Mo(e,t){return ce.multiply(`${e}`,`${t}`)}function _n(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function Vn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Bo(e){return ce.negate(e)}function Kt(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="",x=i.split("").reverse();for(let N=0;N<x.length;N++)c+=x[N]+((N+1)%n==0&&N+1!=x.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 _o(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const qn=Ao,Zr=Array.isArray,Jr=e=>Wt(e)==="[object Map]",Qr=e=>Wt(e)==="[object Set]",ea=e=>e instanceof Date,On=e=>typeof e=="function",qo=e=>typeof e=="string",ta=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",jo=e=>Ye(e)&&On(e.then)&&On(e.catch),zo=Object.prototype.toString,Wt=e=>zo.call(e),Pn=e=>Wt(e)==="[object Object]",Ho=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function na(e){return e.__esModule||Ho&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function rt(...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]=rt(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function Dn(e,t,o=!1){if(!o)rt(!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)&&!Pn(s))continue;a=Dn(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)&&!Pn(s))continue;a=Dn(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const gn=la?Promise.resolve():null;function oa(e,...t){gn!==null?t&&t.length>0?gn.then(()=>{e(t)}):gn.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 ye(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 Bt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ra[o]||"object"}function Ko(e){return e&&typeof e=="object"&&"setInterval"in e}function Yt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Wo(e){let t=!!e&&"length"in e&&e.length,o=Bt(e);return o==="function"||Ko(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Yo(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&&(Wo(Object(e))?Yo(o,typeof e=="string"?[e]:e):o.push(e)),o}function We(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Bt(e),n=Bt(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(!We(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(!We(a,s))return!1}return!0}return!1}const at=typeof window<"u";function jn(e){return e==null}function Go(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Uo(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 Xo(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 Zo(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function zl(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ia(e,t=!0,o=!0){t?e=zl(e,".",/\./g):e=e.replace(/\./g,""),o?e=zl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(We(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(We(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Vt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Jo(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},ve=Symbol.for("BroadcastKey");class zn{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="*"):Go(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 Gt(e,t,o,n){const r=new zn(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[ve])return n[ve];const r=l.inject(ve,null),a=new zn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),n[ve]=void 0}),a}function wt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const lt=e=>e.default??e;class da{error(t,o){const n=o,r=o||l.hasInjectionContext()?wt(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()?wt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?wt(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()?wt(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 St=new da;function ha(e){St=e}function ma(e){St?Object.assign(St,e):St=e}function ga(e,t){lt(nt).setValidator(e,t)}function pa(e){lt(nt).deleteValidator(e)}let Qo=["blur","clear"];function va(e){Qo=e}function er(){return Qo}let tr=["focus","change","setValue"];function ya(e){tr=e}function nr(){return tr}function ba(e){lt(nt).messages(e)}function yt(...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 Ft(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 _e=Symbol("ValidateSchemaKey");class lr{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=Ft(yt(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=Ft(n);const r=yt(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=St;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?lt(nt).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?lt(nt).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return lt(nt).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=yt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ft(t):this.rules=Ft([t]);const n=yt(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=yt(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=lt(nt),u=new i(r),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let x="error";Array.isArray(c.errors)&&c.errors.length>0&&(x=c.errors[0].message??x,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(x)}return c}).catch(c=>{const x=c.message??`${c}`;return this.error(x),c})}}return Promise.resolve({pass:!0})}}function Ut(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 lr(t,o,e)}const _t=Symbol.for("EventEmitterKey");class or{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 $t(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function rr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function xa(e,t){const o=$t((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 Xt(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 Fe=Symbol("DomainKey"),it=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 ut(){return Sa}function Ge(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Fe]??l.inject(Fe,null):l.inject(Fe,null)}const pn=Symbol("OriginalDateKey");function Hn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(Fe,null);s===null&&(s=ut());const i=e||t.prop||t.name;let u=new Zt(i);u.parent=s;const d=N=>{a[pn]||x(N),u?.set("modelValue",N)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[pn]??null,x=N=>{const m={};rt(!0,m,l.toRaw(N)),a[pn]=m};if(l.isReactive(t)||typeof t=="function"?l.watch(t,N=>{u?.merge(N,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&x(t.modelValue),a[Fe]=u,l.provide(Fe,u),r!==null){const N=l.inject(ve,null),m=Gt(a,N,i,n);u.broadcast=m,a[ve]=m,l.provide(ve,m),a.broadcast=(T,b,...$)=>Reflect.apply(m.emit,m,[T,b,...$]);const h=l.inject(_e,null),g=Ut(a,h,{componentName:""});u.validateSchema=g,a[_e]=g,l.provide(_e,g),a[it]=new Map,a.validate=(T=!0)=>{const b=[];let $=null;const B={deep:!1};if(T===!0)$={name:"*"};else if(Array.isArray(T)&&T.length>0){const L=T;$={name:F=>F?L.indexOf(F)!==-1:!1}}else if(T!=null&&typeof T=="object"){const L=T;if(Object.assign(B,L),Array.isArray(L.include)&&L.include.length>0){const F=L.include;$={name:R=>R?F.indexOf(R)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const F=L.exclude;$={name:R=>R?F.indexOf(R)===-1:!1}}else $={name:"*"}}if($){const L=m?.emitToChildren($,"validate",B);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let F=[];return L.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(F=[...F,...R.errors])}),F.length>0?{pass:!1,errors:F}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(T).forEach(L=>{let F=String(L);const R={componentName:"",fieldName:F,pureDataValidate:!0};if(u){const A=sr(u,F,R,m,g);a[it].set(F,A);const V=T[F];V&&A.validateSchema.setRule(V)}});return}if(b){const B=Reflect.ownKeys(T),L={name:F=>B.includes(F)};m?.emitToChildren(L,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let b=null;if(T===!0)b={name:"*"};else if(Array.isArray(T)&&T.length>0){const $=T;b={name:B=>B?$.indexOf(B)!==-1:!1}}else if(T!=null&&typeof T=="object"){const $=T;if(Array.isArray($.include)&&$.include.length>0){const B=$.include;b={name:L=>L?B.indexOf(L)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const B=$.exclude;b={name:L=>L?B.indexOf(L)===-1:!1}}else b={name:"*"}}b&&m?.emitToChildren(b,"clearValidate",!1)},a.resetFields=T=>{const b=f();if(!b)return;const $={};if(rt(!0,$,c()??{}),Array.isArray(T))T.forEach(B=>{b[B]=$[B]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(L=>{b[L]=$[L]});else if(T&&Array.isArray(T.exclude)){let B=T.exclude??[];Reflect.ownKeys($).forEach(L=>{B.includes(L)||(b[L]=$[L])})}else Object.assign(b,$);a.clearValidate(T)},a.setModelValue=(T,b)=>{!b||b===i?d(T):m?.emitToChildren({name:b},"setModelValue",T)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[_e]=void 0,l.provide(_e,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[Fe]=void 0,l.provide(Fe,null),a[it]&&(a[it].clear(),a[it]=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 ar(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Fe,null);a===null&&(a=ut());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[Fe]=i,l.provide(Fe,i),l.onUnmounted(()=>{i?.destroy(),r[Fe]=void 0,l.provide(Fe,null),i=null,r=null}),i}function ir(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 we(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(ve,null);let i=Gt(r,s,a,o);r[ve]=i,l.provide(ve,i),r.broadcast=(m,h,...g)=>i?Reflect.apply(i.emit,i,[m,h,...g]):null;const u=l.inject(_e,null);e.fieldName=e.fieldName??a;let d=Ut(r,u,e);r[_e]=d,l.provide(_e,d),ir(r,d,a),r.validate=(m=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)T=!0,g=!0;else if(m&&typeof m=="object"){const b=m,$=b.ignoreDisabled??!0,B=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;$===!0&&e.disabled===!0||B===!0&&e.readonly===!0||L===!0&&Yt(r.$el)?T=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),T=!0),g=b.deep??!1}else typeof m=="boolean"&&(g=m),T=!0;if(T){const b=d?.validate();h.push(b)}if(g){let b=null;const $={deep:!1};if(m===!0)b={name:"*"};else if(Array.isArray(m)&&m.length>0){const B=m;b={name:L=>L?B.indexOf(L)!==-1:!1}}else if(m!=null&&typeof m=="object"){const B=m;if(Object.assign($,B),Array.isArray(B.include)&&B.include.length>0){const L=B.include;b={name:F=>F?L.indexOf(F)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const L=B.exclude;b={name:F=>F?L.indexOf(F)===-1:!1}}else b={name:"*"}}if(b&&i){const B=i.emitToChildren(b,"validate",$);Reflect.apply([].push,h,B)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&($=[...$,...B.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>d?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&d?.setRule(g),h&&i){const T={name:b=>Reflect.ownKeys(m).includes(b)};i.emitToChildren(T,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:b=>b?T.indexOf(b)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:b=>b?T.indexOf(b)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new or(r);r[_t]=f;const c=$t((m="validate")=>{d&&(m==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:er()).forEach(m=>{f&&f.on(m,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:nr()).forEach(m=>{f&&f.on(m,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[ve]=void 0,l.provide(ve,null),i=null,d?.destroy(),r[_e]=void 0,l.provide(_e,null),d=null,f?.destroy(),r[_t]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(m,...h)=>{f&&Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function sr(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=Ut({},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 x=!1,N=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)N=!0,x=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(s)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(s),N=!0,x=m.deep??!1}else typeof f=="boolean"&&(x=f),N=!0;if(N&&u){const m=u.validate();c.push(m)}if(x){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:T=>T?g.indexOf(T)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;m={name:b=>b?T.indexOf(b)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;m={name:b=>b?T.indexOf(b)===-1:!1}}else m={name:"*"}}if(m&&d){const g=d.emitToChildren(m,"validate",h);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.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=Gt(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function ur(){let t=l.getCurrentInstance()?.proxy,o=new or(t);return t[_t]=o,l.onUnmounted(()=>{o?.destroy(),t[_t]=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 $e=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(at){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 Qe="PageStateKey";function je(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function Fn(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=je(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=je(o.footerPadding??t.footerPadding),e.contentPadding=je(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(s,a)-de(i,a),e.width=de(o.width??t.width??0,r)}}function cr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Fn(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Qe);c&&(n.height=qt(e,c),n.width=jt(e,c),l.watch([()=>qt(e,c),()=>jt(e,c)],([N,m])=>{f.height=N,f.width=m}));const x=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,m,h=-1,g=-1,T=0,b=0])=>{Fn(f,m,t,x,h,g,T,b)}),e.set(Qe,f),f}function Jt(e){return e.get(Qe)}function Ct(e,t){if(t=t??e.get(Qe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Nt(e,t){if(t=t??e.get(Qe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function qt(e,t){if(t=t??e.get(Qe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ct(e,t),n=Nt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function jt(e,t){return t=t??e.get(Qe),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(Qe)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function vn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Oe(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 Pe(e){return Oe(e,"readonly",0,function(o){return se(o)})}function De(e){return Oe(e,"disabled",0,function(o){return se(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const 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 fr=new Map,zt=new Map;let Rn=null;function Ca(e){Rn=e}function dr(e,t,o){if(o){let n=zt.get(o);n||(n=new Map,zt.set(o,n)),n.set(e,t)}else fr.set(e,t)}function qe(e,t,o){!o&&Rn&&(o=Rn(e)??void 0);let n=null;if(o){let r=zt.get(o);r&&(n=r.get(t))}return n||(n=fr.get(t)),n}function Na(e,t){for(let o in e){const n=e[o];dr(o,n,t)}}function ka(e){zt.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,t=0){if(at){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Va(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Oa{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=Va(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=rr(()=>{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=rt({},Ea(),t.safeAreaInset),s=Ia(n,r),i=rt({},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){dr(t,o,n)}getAPI(t,o,n){return qe(t,o,n)}batchSetAPI(t,o){Na(t,o)}clearScopeAPI(t){ka(t)}getRootDomain(){return ut()}}const Pa=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Da=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Fa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Pa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Da.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 Se(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const be={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}},ke={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}},hr={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}},mr={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}},gr=[];for(const e in mr)gr.push(e);const Ra=Symbol.for("InnerPageScopeKey"),Aa={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}},La=(e,t)=>({inheritAttrs:!0,props:{...be,...hr,...Aa},setup(o,{slots:n}){const r=Hn(o.name,o),a=l.inject(Ra,!1);if(r){const f=cr(r,o);Se({getPageContentHeight:()=>qt(r,f),getPageContentWidth:()=>jt(r,f),getPageHeaderHeight:()=>Ct(r,f),getPageFooterHeight:()=>Nt(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const x=u?.proxy;x&&typeof x.setNameValidateRules=="function"&&x.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[x,N])=>{if(f&&x){const m=l.toRaw(x),h=l.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(b=>{g.includes(b)||(h[b]=[])}),d(h)}if(c&&N){const m=l.toRaw(N),h=l.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(b=>{g.includes(b)||(h[b]=[])}),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:Ma,create:Ba,scope:$h}=ie("page"),Kn=Ba(La(Ma));function Qt(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Wn(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 _a=(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?Jt(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?de(r.height):null,x=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const p=je(r.padding??i.headerPadding);return Object.assign(k,p),c&&(i.headerHeight=c),i.headerHeight>0&&(k.height=i.headerHeight),k.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(p.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const p=je(r.padding);Object.assign(k,p)}return k}),N=l.ref(null),m=()=>{if(i&&N.value&&!Yt(N.value)){if(!n){const k=Qt(N.value);i.headerAllHeight=k.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(Xt(m,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(N.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const k={};return x.value.height!==null&&x.value.height!==void 0&&(k.height=`${x.value.height}px`),x.value.top!==null&&x.value.top!==void 0&&(k.paddingTop=`${x.value.top}px`),x.value.left!==null&&x.value.left!==void 0&&(k.paddingLeft=`${x.value.left}px`),x.value.right!==null&&x.value.right!==void 0&&(k.paddingRight=`${x.value.right}px`),x.value.bottom!==null&&x.value.bottom!==void 0&&(k.paddingBottom=`${x.value.bottom}px`),k}),T=l.computed(()=>!(x.value.height!==null&&x.value.height!==void 0&&x.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function B(){a.emit("click-right")}function L(){a.emit("click-right-text")}const F=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const p=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);k.push(p)}else if(r.leftIcon){const p=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);k.push(p)}if(r.leftText){const p=l.h("view",{class:"left-text",onClick:b},[r.leftText]);k.push(p)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},R=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const p=l.h("view",{class:"right-text",onClick:L},[r.rightText]);k.push(p)}if(a.slots.rightIcon){const p=l.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);k.push(p)}else if(r.rightIcon){const p=l.h("view",{class:"right-icon",onClick:B},[l.h(r.rightIcon)]);k.push(p)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},A=()=>{if(!r.titleShow)return null;const k=[],p=a.slots.default?a.slots.default():null;if(p)k.push(p);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);k.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);k.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);k.push(q)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},V=()=>{const k=[],p=a.slots.bottom?a.slots.bottom():null;return p&&k.push(p),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!T.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const q=[],M=F();M&&q.push(M);const D=A();D&&q.push(D);const O=R();if(O&&q.push(O),q.length>0){const Y=l.h("view",{class:f.value},q);k.push(Y)}const H=V();H&&k.push(H)}if(k.length===0)return null;const p={class:d.value,style:g.value,ref:N};return l.h("view",p,k)}}}),{componentName:qa,create:ja,scope:za}=ie("header-bar"),Yn=ja(_a(qa,za,Ce.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?Jt(a):null,i=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,d=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=je(n.padding??s.footerPadding);return Object.assign(m,h),u&&(s.footerHeight=u),s.footerHeight>0&&(m.height=s.footerHeight),m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),n.padding){const h=je(n.padding);Object.assign(m,h)}return m}),f=l.ref(null),c=()=>{if(s&&f.value&&!Yt(f.value)){if(!o){const m=Qt(f.value);s.footerAllHeight=m.height}return s.footerMounted=!0,!0}return!1};let x=null;l.onMounted(()=>{s&&(Xt(c,50,5,50,!0),window.ResizeObserver&&(x=new window.ResizeObserver(()=>{c()}),x.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,x&&(x.disconnect(),x=null))});const N=l.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=$e(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=$e(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=$e(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=$e(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=$e(d.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:N.value};return l.h("view",h,m)}}}}const{componentName:Ka,create:Wa,scope:Ch}=ie("footer-bar"),Gn=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?Jt(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const N=je(o.padding);Object.assign(a.contentPadding,N)}const f=Ct(n,a),c=Nt(n,a);let x="";if(a.contentHeight?x=`${a.contentHeight}`:x=`${a.height}px`,a.contentPadding,d.height=x,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}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=je(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=Wn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ct(n),()=>Nt(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Ga,create:Ua,scope:Nh}=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 Me=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Un=Me(Xa,[["render",Za]]),dt="GroupStateKey",pr=Symbol.for("GroupScopeKey");function en(){return l.inject(pr,!1)}function tn(e=!0){l.provide(pr,e)}function Ja(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];jn(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(dt,a),a}function yn(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(dt);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=de(a),c=de(s);i||(i=d.type??"grid");const x=()=>{const N=t===""||t===-1,m=de(t);let h=ye(o);const g=de(n);if(!N){let $=(m-(h-1)*g)/h;for(;c!==-1&&$>c;)h++,$=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&$<f;)h--,$=(m-(h-1)*g)/h}let T=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,T=!0),b.value.gutter!==g&&(b.value.gutter=g,T=!0),b.value.type!==i&&(b.value.type=i,T=!0),T&&l.triggerRef(b)};if(r)x();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&x()},50)}}function nn(e,t=!1){let o;return t?o=e.getForParent(dt):o=e.get(dt),o.layout}function ln(e,t=!1){let o;return t?o=e.getForParent(dt):o=e.get(dt),o.order}function Hl(e,t=1){if(t==="stretch")return-1;const o=ye(t);return o===-1?100:100*o/e}function on(e,t,o=1,n=0,r){const a={};let s=0;r?s=de(r):s=Hl(t.column,o),s>0&&(a.width=`${s}%`);const i=Hl(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 rn(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=ye(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=ye(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 vr=Symbol("RollingStateKey");function ei(e){l.provide(vr,e)}function ti(){return l.inject(vr,null)}function An(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=An(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=An(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={...be,...hr,...mr};function ri(e,t,o){return{props:oi,emits:["update:collapse","header-click"],setup(n,r){const a=Hn(n.name,n,gr),s=Qa(a,{type:n.type}),i=en();tn(!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?nn(a,!0).value:null),x=l.getCurrentInstance(),N=(z,Z=!1)=>{const ee=x?.proxy;ee&&typeof ee.setNameValidateRules=="function"&&ee.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[ee,S])=>{if(z&&ee){const K=l.toRaw(ee),te=l.toRaw(z),le=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{le.includes(ae)||(te[ae]=[])}),N(te)}if(Z&&S){const K=l.toRaw(S),te=l.toRaw(Z),le=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{le.includes(ae)||(te[ae]=[])}),N(te,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const z={};z.height=O.value;const Z=i?ln(a,!0):null;if(c.value&&Z){if(c.value.type==="grid"){const ee=rn(Z,c.value,n.span,n.offset);Object.assign(z,ee)}else if(c.value.type==="flow"){const ee=on(Z,c.value,n.span,n.offset,n.width);Object.assign(z,ee)}}else if(n.width){const ee=$e(n.width);z.width=ee}return z}),g=l.computed(()=>{const z=s.layout.value.type;return z==="grid"||z==="flow"?{[`${m}--${z}`]:!0,[`${m}--${z}-justify-${n.justify}`]:!0,[`${m}--${z}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${z}`]:!0,[`${m}--gutter`]:!0}}),T=l.computed(()=>{if(s.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const ee=li(A.value,s.layout.value.column,s.layout.value.gutter);Z=`repeat(${s.layout.value.column}, ${ee})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),B=l.computed(()=>i||f.value?!0:se(n.isWrap)),L=[],F=z=>{L.push(z)},R=()=>{let z=L.length;L.splice(0,z)},A=l.ref(-1),V=z=>{const Z=Wn(z).width;Z>0&&Z!==A.value&&(A.value=Z)};yn(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([A,$,b],([z,Z,ee])=>{s.order.index=0,yn(a,z,Z,ee,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>H.value?n.expandText??"":n.collapseText??""),p=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!H.value,"is-collapse":H.value})),M=l.ref(),D=l.ref(),O=l.computed(()=>Y.value||$e(n.height)||""),H=l.ref(!1),Y=l.ref(""),G=l.ref(!1);let X=-1;const Q=(z,Z=!0)=>{const ee=M.value;if(ee&&H.value!==z){if(X=X===-1?ni(ee):X,G.value=!0,Z)if(ee.style["will-change"]="height",ee.ontransitionend=function(){ee.ontransitionend=null,this.style["will-change"]="auto",z||(Y.value="",G.value=!1)},z){let S=0;n.collapseHeight?S=n.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(S=D.value.offsetHeight),Y.value=`${X}px`,l.nextTick(()=>{Y.value=`${S}px`})}else Y.value=`${X}px`;else if(z){let S=0;n.collapseHeight?S=n.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(S=D.value.offsetHeight),Y.value=`${S}px`}else G.value=!1,Y.value=`${X}px`;H.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{Q(z)});const ne=z=>{r.emit("header-click",z)},I=()=>{w()},w=z=>{z=z??!H.value,Q(z)};Se({toggleCollapse:w,doLayout:()=>{L[0]&&(V(L[0]),yn(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let C=null,v=!0;const W=z=>{if(n.rules){const Z=l.toRaw(n.rules);N(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);N(Z,!0)}if(at&&(z&&Q(se(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const Z=L[0];V(Z),window.ResizeObserver&&(C=new window.ResizeObserver(()=>{V(Z)}),C.observe(Z))}},_=()=>{C?.disconnect(),C=null},j=!f.value||u?.acquire();j&&(d.value=f.value?!0:null),l.onMounted(()=>{if(j&&(W(v),v=!1),f.value&&u){let z=null,Z=u.initialHeight;u.observe(M.value,ee=>{if(ee!==d.value)if(ee)d.value=!0,H.value||(Y.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(W(v),v=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!H.value)if(v)Y.value=u.initialHeight;else{let S=An(M.value);S<=0?Y.value=Z:(Y.value=`${S}px`,Z=Y.value)}v||_()}})}}),l.onUnmounted(()=>{C?.disconnect(),u&&u.unobserve(M.value)});const P=(z="right")=>{const Z=[];if(k.value){const K={class:p.value},te=l.h("span",K,[k.value]);Z.push(te)}const ee={class:q.value},S=o(n.collapseIcon,ee);return S&&Z.push(S),Z.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Z):null},U=(z,Z,ee,S)=>{const K={...g.value};return Z===0&&(K[`${m}__first`]=!0),ee>=S-1&&(K[`${m}__last`]=!0),l.h("div",{ref:F,key:`${Z}`,class:K,style:T.value},z)};return()=>{if(f.value&&d.value!==!0){const K=n.tag||"div";return l.h(K,{ref:M,prop:n.name,class:{[`${m}`]:!0,"is-collapse":G.value},style:h.value},[])}s.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ne},te=l.h("div",K,[r.slots.header()]);z.push(te)}else{const K=[],te=n.collapsePosition==="left";if(te&&n.showCollapse){const le=P("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${m}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!te&&n.showCollapse){const le=P("right");le&&K.push(le)}if(K.length>0){const le={key:`${Z++}`,ref:D,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ne},fe=l.h("div",le,K);z.push(fe)}}R();const ee=r.slots.default?r.slots.default():[],S=s.layout.value.type;if(S==="grid"){const K=U(ee,Z++,0,ee.length);z.push(K)}else if(S==="flow"){const K=U(ee,Z++,0,ee.length);z.push(K)}else for(let K=0;K<ee.length;K++){const te=ee[K],le=U([te],Z++,K,ee.length);z.push(le)}if(B.value){const K=n.tag||"div";return l.h(K,{ref:M,prop:n.name,class:{[`${m}`]:!0,"is-collapse":G.value},style:h.value},[z])}else return z}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),ui=(e,t)=>(e=e??Ce.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]})),Xn=ii(ri(ai,si,ui));function ci(e){return e===window}const fi=/matrix\((.+)\)/,yr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ci(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=fi.exec(d);if(f){let x=f[1].split(/\s*,\s*/);x.length==6&&(i+=Number(x[4]),u+=Number(x[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class di{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 hi{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 di,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 Kl=new hi,br={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:mi,create:gi}=ie("price"),pi=gi({props:{...br},setup(e){const t=l.computed(()=>({[mi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Vt(e.price)==0?"":Kt(e.price,e.decimalLength,!0,ye(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}}}),vi=["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,vi)):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 an=Me(pi,[["render",bi]]),{componentName:bn,create:xi}=ie("hint-text"),wi=xi({components:{Price:an},props:{...br,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=(p,q,M,D,O,H)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,X=p.split("-");let Q=[];X[0]==="top"?Q=["top","bottom","right","left"]:X[0]==="bottom"?Q=["bottom","top","right","left"]:X[0]==="left"?Q=["left","top","bottom","right"]:X[0]==="right"&&(Q=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},I=[];for(let w=0;w<Q.length;w++){const E=Q[w];if(I[0]=E,X[1]&&(I[1]=X[1]),E==="top"){const C=q.y-H-e.arrowSize-e.offset;if(C>=0){ne.top=C;let v=0;X[1]==="start"?v=q.x:X[1]==="end"?v=q.x+M-O:v=q.x+M/2-O/2;const W=Y-v-O;W<0?(v+=W,c.value=-W):c.value=0,ne.left=v<0?0:v;break}}else if(E==="bottom"){const C=q.y+D+e.arrowSize+e.offset;if(C+H<=G){ne.top=C;let v=0;X[1]==="start"?v=q.x:X[1]==="end"?v=q.x+M-O:v=q.x+M/2-O/2;const W=Y-v-O;W<0?(v+=W,c.value=-W):c.value=0,ne.left=v<0?0:v;break}}else if(E==="left"){const C=q.x-O-e.arrowSize-e.offset;if(C>=0){ne.left=C;let v=0;X[1]==="start"?v=q.y:X[1]==="end"?v=q.y+D-H:v=q.y+D/2-H/2,ne.top=v<0?0:v;break}}else if(E==="right"){const C=q.x+M+e.arrowSize+e.offset;if(C+O<=Y){ne.left=C;let v=0;X[1]==="start"?v=q.y:X[1]==="end"?v=q.y+D-H:v=q.y+D/2-H/2,ne.top=v<0?0:v;break}}}return{bestPlacement:I.join("-"),bestInsetRect:ne}},f=(p,q,M=10)=>{if(!at||q===!1||!p)return;n.value=yr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const D=u.value.offsetHeight,O=u.value.offsetWidth,{bestPlacement:H,bestInsetRect:Y}=d(e.placement,n.value,r.value,a.value,O,D);s.value=H,o.value=Y,i.value=!0},c=l.ref(0),x=$t(()=>{f(e.message,e.visible)},10),N=l.ref(e.visible);l.watch(()=>e.visible,p=>{N.value=p});const m=l.computed(()=>N.value&&h.value),h=l.ref(!0),g=$t(p=>{const q=p[0];q&&(h.value=q.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([p,q])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Kl.watch(e.reference,x),T.observe(e.reference)}),l.onBeforeMount(()=>{Kl.unwatch(e.reference,x),T.unobserve(e.reference),T.disconnect()});const b=l.computed(()=>{const p={[bn]:!0};return s.value.startsWith("top")?p["is-top"]=!0:s.value.startsWith("right")?p["is-right"]=!0:s.value.startsWith("bottom")?p["is-bottom"]=!0:s.value.startsWith("right")&&(p["is-right"]=!0),e.size==="small"?p["is-small"]=!0:e.size==="large"&&(p["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(p[`${e.customClass}`]=!0),p}),$=l.computed(()=>{const p={};o.value.top!==null&&(p.top=`${o.value.top}px`),o.value.right!==null&&(p.right=`${o.value.right}px`),o.value.bottom!==null&&(p.bottom=`${o.value.bottom}px`),o.value.left!==null&&(p.left=`${o.value.left}px`),e.autoFit&&(p["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return p["max-width"]=`${q}px`,i.value&&(p.opacity="1"),e.transition||(p.transition="none"),e.zIndex&&(p["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(p,e.customStyle),p}),B=l.computed(()=>{const p=[`${bn}__content`];return e.customTextClass&&p.push(e.customTextClass),p}),L=l.computed(()=>{const p={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(p,e.customTextStyle),p}),F=l.computed(()=>({[`${bn}__arrow`]:!0})),R=l.computed(()=>{const p={};return e.showArrow?(p.width=`${e.arrowSize}px`,p.height=`${e.arrowSize}px`,s.value==="top"?(p.left="50%",p.bottom=`-${e.arrowSize}px`,p.transform=" translate(-50%, 0%)"):s.value==="top-start"?(p.left=`${e.arrowOffset+c.value}px`,p.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(p.right=`${e.arrowOffset-c.value}px`,p.bottom=`-${e.arrowSize}px`):s.value==="right"?(p.left=`-${e.arrowSize}px`,p.top="50%",p.transform=" translate(0%, -50%)"):s.value==="right-start"?(p.left=`-${e.arrowSize}px`,p.top=`${e.arrowOffset}px`):s.value==="right-end"?(p.left=`-${e.arrowSize}px`,p.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(p.left="50%",p.top=`-${e.arrowSize}px`,p.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(p.left=`${e.arrowOffset+c.value}px`,p.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(p.right=`${e.arrowOffset-c.value}px`,p.top=`-${e.arrowSize}px`):s.value==="left"?(p.right=`-${e.arrowSize}px`,p.top="50%",p.transform=" translate(0%, -50%)"):s.value==="left-start"?(p.right=`-${e.arrowSize}px`,p.top=`${e.arrowOffset}px`):s.value==="left-end"&&(p.right=`-${e.arrowSize}px`,p.bottom=`-${e.arrowOffset}px`),p):{display:"none"}}),A=l.computed(()=>m.value&&e.closeOnClick),V=l.computed(()=>{const p={};return e.zIndex&&(p["z-index"]=`${e.zIndex}`),p});return{show:m,tipRef:u,classes:b,styles:$,textClasses:B,textStyles:L,arrowClasses:F,arrowStyles:R,overlayShow:A,overlayStyle:V,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}}),Si=["innerHTML"];function Ti(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 Ot=Me(wi,[["render",Ti]]);class xr{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 Ln={},$i=new xr,ct=new Map,Ht=e=>{if(e){const t=document.getElementById(e);ct.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ct.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ct.clear()}},Ci=e=>{e.unmount=Ht;const t=document.getElementById(e.id);if(t){const o=ct.get(e.id);o?e={...Ln,...o,...e}:e={...Ln,...e},e.transition=!1;const n=l.createVNode(Ot,e);return l.render(n,t),e.id}},Ni=e=>{e.unmount=Ht;let t=e.id??`hinttext_${$i.get()}`;e={...Ln,...e},e.id=t,ct.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Ot,e);return l.render(n,o),document.body.appendChild(o),t},ki=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,o={},n=!0){ki(t);const r=o.id;return r&&ct.has(r)?Ci({...o,message:t,reference:e}):(n&&Ht(),Ni({...o,message:t,reference:e}))},hide(e){Ht(e)},install(e){e.config.globalProperties.$hintText=Ve}};function Ei(e,t,o,n=!1){return{inheritAttrs:!0,props:{...be,...ke},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;we({componentName:e,validate:!1},s);const i=Ge(),u=en();tn(!1);const d=l.computed(()=>u&&i?nn(i,!1).value:null),f=e,c=l.ref(null),x=l.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!H.value,S[r.warnMarkClass]=!!D.value,S[r.infoMarkClass]=!!q.value,typeof c.value=="function"){const K=c.value(s);S[K]=!0}else if(typeof c.value=="string"){const K=c.value;S[K]=!0}return S}),N=l.ref(null),m=l.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=$e(r.width));else{const K=u&&i?ln(i,!1):null;if(d.value&&K){if(d.value.type==="grid"){const te=rn(K,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=on(K,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof N.value=="function"){const K=N.value(s);K&&Object.assign(S,K)}else if(N.value&&typeof N.value=="object"){const K=N.value;Object.assign(S,K)}return S}),h=l.ref(null),g=l.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=Oe(l.toRef(r,"labelPosition"),"labelPosition",Ae.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),B=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${$.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),F=Oe(l.toRef(r,"labelWidth"),"labelWidth",Ae.Near),R=l.computed(()=>F&&F.value?{width:$e(F.value)}:{}),A=l.computed(()=>({"label--string":!0,"label--required":g.value})),V=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),p=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(S){g.value=S},setErrorTip(S){p.errorTip=S},setErrorIcon(S){p.errorIcon=S},setWarnTip(S){p.warnTip=S},setWarnIcon(S){p.warnIcon=S},setInfoTip(S){p.infoTip=S},setInfoIcon(S){p.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){N.value=S}});const q=l.computed(()=>r.infoTip||p.infoTip),M=l.computed(()=>r.infoIcon||p.infoIcon),D=l.computed(()=>r.warnTip||p.warnTip),O=l.computed(()=>r.warnIcon||p.warnIcon),H=l.computed(()=>r.errorTip||p.errorTip),Y=l.computed(()=>r.errorIcon||p.errorIcon),G=l.computed(()=>H.value?"error":D.value?"warn":q.value?"info":""),X=()=>G.value.length>0,Q=l.computed(()=>G.value==="error"?H.value:G.value==="warn"?D.value:G.value==="info"?q.value:""),ne=l.computed(()=>G.value==="error"?Y.value:G.value==="warn"?O.value:G.value==="info"?M.value:null),I=l.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${G.value}`]:!0,[`${f}--animate`]:!0};return G.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),w=l.computed(()=>{const S={};return b&&b.value==="top"||!T()?S["padding-left"]="0px":F&&F.value&&(S["padding-left"]=$e(F.value)),S}),E=l.ref();let C="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,K,te,le])=>{E.value&&(S&&!me(K)?C?o.show(E.value,K,{...le,id:C,type:te},!0):C=o.show(E.value,K,{...le,type:te},!0):o.hide(C))});let v=null;const W=()=>{v||!E.value||(v=new IntersectionObserver(S=>{let K=!1;for(let te of S)if(te.intersectionRatio>0){K=!0,K&&a.emit("appear",te);break}K||a.emit("disappear")}),v.observe(E.value))},_=()=>{!v||!E.value||(v.unobserve(E.value),v=null)};l.watch(()=>se(r.appearListen),S=>{S?W():_()}),l.onMounted(()=>{se(r.appearListen)&&W()}),l.onUnmounted(_);const j=()=>{if(!T())return null;const S=[],K=a.slots?.label?.()??r.label,te={class:A.value},le=l.h("div",te,[K]);if(S.push(le),a.slots.fixedPreTip){const ae=a.slots.fixedPreTip();S.push(ae)}const fe={class:L.value,style:R.value};return l.h("div",fe,S)},P=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},le=l.h("div",te,[a.slots.fixedTip()]);S.push(le)}const K={ref:E,class:V.value,style:k.value};return l.h("div",K,S)},U=()=>{const S=ne.value;return S?typeof S=="function"?l.h("div",{class:"fox-item__tip--icon"},[S()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(S)]):null},z=()=>{const S=Q.value;return S?typeof S=="function"?l.h("div",{class:"fox-item__tip--text"},[S()]):l.h("div",{class:"fox-item__tip--text"},[S]):null},Z=()=>{if(!X())return null;const S=[],K=U();K&&S.push(K);const te=z();te&&S.push(te);const le={class:I.value,style:w.value};return l.h("div",le,S)},ee=()=>a.slots?.hide?.()??null;return()=>{const S=[],K=[],te=j();te&&K.push(te);const le=P();le&&K.push(le);const fe={class:B.value},ae=l.h("div",fe,K);S.push(ae);const J=Z();J&&S.push(J);const oe=ee();oe&&S.push(oe);const re={class:x.value,style:m.value,prop:r.prop};return l.h("div",re,S)}}}}const{componentName:Ii,create:Vi,scope:Oi}=ie("item"),xe=Vi(Ei(Ii,Oi,Ve,!1));function Pi(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=en();tn(!1);const s=l.computed(()=>a&&r?nn(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?ln(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const x=rn(c,s.value,o.span,o.offset);Object.assign(f,x)}else if(s.value.type==="flow"){const x=on(c,s.value,o.span,o.offset,o.width);Object.assign(f,x)}else return o.width&&(f.width=$e(o.width)),f;else o.width&&(f.width=$e(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:kh}=ie("slot-item"),Zn=Fi(Pi(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=en();tn(!1);const u=l.computed(()=>{const d={};if(i&&s){const f=nn(s,!1),c=ln(s,!1);if(f.value&&c)if(f.value.type==="grid"){const x=rn(c,f.value,o.span,o.offset);Object.assign(d,x)}else if(f.value.type==="flow"){const x=on(c,f.value,o.span,o.offset,o.width);Object.assign(d,x)}else o.width&&(d.width=$e(o.width))}else o.width&&(d.width=$e(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let x=0;x<c.length;x++){if(x>0){const N=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[x])}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:Eh}=ie("row-item"),Jn=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},Wl={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:{...be,...ke,...Wl},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",null,i),x=e,N=l.computed(()=>({[x]:!0,[`${x}__disabled`]:a.value,[`${x}__readonly`]:s.value})),m=M=>{c.value=M,i("update:modelValue",M),i("input",M)},h=M=>{i("change",M)};let g=he(n,"hintText"),T=l.ref(!1);const b=M=>{let O=M.target.value;f.value=!0,me(g.value)||(T.value=!0),i("focus",O,M)},$=M=>{setTimeout(()=>{T.value&&(T.value=!1),f.value=!1},0);let O=M.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),i("blur",O,M)},B=()=>{i("clear","")},L=l.ref(!1);let F=null;const R=()=>{n.showTooltip&&L.value===!1&&(F&&clearTimeout(F),F=setTimeout(()=>{L.value=!0},150))},A=()=>{F&&(clearTimeout(F),L.value=!1,F=null)},V=l.computed(()=>L.value||T.value),k=l.computed(()=>L.value?c.value:g.value),p=l.computed(()=>Vt(n.unit)>0),q=l.ref();return Se({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const D={...He(r.attrs),ref:q,class:N.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:h,onInput:m,onFocus:b,onBlur:$,onMouseover:R,onMouseleave:A},O={};r.slots.prepend&&(O.prepend=r.slots.prepend),r.slots.append&&(O.append=r.slots.append),r.slots.prefix&&(O.prefix=r.slots.prefix),r.slots.suffix?O.suffix=r.slots.suffix:p.value&&(O.suffix=()=>[n.unit]);const H=[],Y=l.h(y.ElInput,D,O);H.push(Y);const G={default:()=>H};r.slots.default&&(G.label=r.slots.default),r.slots.default&&(G.fixedTip=r.slots.fixedTip);const Q={...Ne(n,Wl),hintText:k.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,Q,G)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("input-item"),Qn=_i(Mi(Bi,qi,xe));function Je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function kt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function wr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ji(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let zi=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=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Hi(){const e=l.getCurrentInstance();return new zi(e.proxy)}function Sr(e,t,o){const n=Je(e,t),r=Je(e,o);if(n!==r)return!1;const a=kt(e,t),s=kt(e,o);return a===s}function Tr(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=wr(e,s);if(Array.isArray(i)&&i.length>0){const u=Tr(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Je(e,s)===a;else if(o==="item")u=Sr(e,s,a);else{let d=kt(e,s);d==null&&(d=Je(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function Ki(e){return{text:e,value:e}}const Yl={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 Wi(e,t,o){return{props:{...be,...ke,...Yl},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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([]),x=l.computed(()=>c.value?c.value.map(U=>Je(n,U)).join(" "):""),N=(P,U,z,Z=!0)=>{const ee=Tr(n,P,U,z);if(ee===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Z&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let S=!0;if(ee.length!==c.value.length)S=!1;else for(let K=0;K<ee.length;K++){const te=ee[K],le=c.value[K];if(!Sr(n,te,le)){S=!1;break}}if(!S){c.value=ee;let K=[],te=[],le=[];ee.forEach(oe=>{const re=kt(n,oe),ue=Je(n,oe);K.push(re),le.push(ue),n.valueType==="text"?te.push(ue):n.valueType==="item"?te.push(oe):te.push(re)});let fe,ae,J;se(n.multiple)?(f.value=K,fe=l.toRaw(te),ae=le,J=l.toRaw(ee)):(f.value=K[0]??"",fe=l.toRaw(te[0]??""),ae=le[0]??"",J=l.toRaw(ee[0])),Z&&(i("update:modelValue",fe),i("change",fe,J)),i("update:text",ae)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),T=Oe(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,P=>se(P)),b=Hi(),$=async(P,U)=>{if(P){const z=await b.load("select",P,U);if(z.length>0)if(typeof z[0]=="string"){let S=z.map(K=>Ki(K));m.value=S}else m.value=z;else m.value=null}};l.watch([()=>n.source,()=>n.params],([P,U])=>{h.value=null,$(P,U)},{immediate:!T.value});let B=!1;const L=()=>{B||(B=!0,$(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([P,U])=>{if(V()&&se(n.multiple)){We(U,f.value)||(f.value=U);return}N(U,n.valueType,g.value,!1),i("setValue",U)});let F=null,R=l.ref(!1);typeof n.remoteMethod=="function"&&(F=async P=>{if(P==null){h.value=null;return}R.value=!0;try{const U=await n.remoteMethod(P);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}R.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async P=>{if(P==null){h.value=null;return}R.value=!0;try{const U=await n.filterMethod(P,m.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}R.value=!1});const V=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),p=e,q=l.computed(()=>({[p]:!0})),M=P=>{n.allowCreate||V()&&se(n.multiple)?(i("update:modelValue",P),i("change",P),i("update:text",P),f.value=P):N(P,"value",g.value,!0)};let D=he(n,"hintText"),O=l.ref(!1);const H=P=>{let z=P.target.value;k.value=!0,me(D.value)||(O.value=!0),i("focus",z,P)},Y=P=>{setTimeout(()=>{O.value&&(O.value=!1),k.value=!1},0);let z=P.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),C.value||i("blur",z,P)},G=()=>{i("clear","")},X=l.ref(!1);let Q=null;const ne=()=>{n.showTooltip&&X.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{X.value=!0},150))},I=()=>{Q&&(clearTimeout(Q),X.value=!1,Q=null)},w=l.computed(()=>X.value||O.value),E=l.computed(()=>X.value?x.value:D.value),C=l.ref(!1),v=P=>{C.value=P,i("visible-change",P),P||i("selected")},W=P=>{i("remove-tag",P)},_=(P,U)=>{const z=[];return P.forEach((Z,ee)=>{const S=wr(n,Z);if(Array.isArray(S)&&S.length>0){const K=_(S,U),te=Je(n,Z),fe={key:`${te}_${ee}`,label:te};z.push(l.h(y.ElOptionGroup,fe,{default:()=>K}))}else{const K=kt(n,Z),te=Je(n,Z),le=ji(n,Z),ae={key:`${K}_${ee}`,label:te,disabled:le,value:K};if(typeof U=="function")z.push(l.h(y.ElOption,ae,{default:()=>U(Z)}));else if(n.optionType==="item"){const J={class:{"fox-select-item__option-left":!0}},oe=l.h("span",J,[K]),re={class:{"fox-select-item__option-right":!0}},ue=l.h("span",re,[te]),Ee=l.h("div",{class:{"fox-select-item__option":!0}},[oe,ue]);z.push(l.h(y.ElOption,ae,{default:()=>Ee}))}else n.optionType==="value"?z.push(l.h(y.ElOption,ae,{default:()=>[K]})):z.push(l.h(y.ElOption,ae))}}),z},j=l.ref();return Se({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const U={...He(r.attrs),ref:j,class:q.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:G,onChange:M,onFocus:H,onBlur:Y,onVisibleChange:v,onRemoveTag:W};typeof F=="function"&&(U["remote-method"]=F,U.loading=R.value),typeof A=="function"&&(U["filter-method"]=A,U.loading=R.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(g.value,r.slots.option);const Z=[],ee=l.h(y.ElSelect,U,z);Z.push(ee);const S={default:()=>Z};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ne(n,Yl),hintText:E.value,hintVisible:w.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:ne,onMouseleave:I};return T.value&&(te["appear-listen"]=!0,te.onAppear=L),l.h(o,te,S)}}}}const{componentName:Yi,create:Gi,scope:Ui}=ie("select-item"),el=Gi(Wi(Yi,Ui,xe));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 $r={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",x="quarter",N="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var O=["th","st","nd","rd"],H=D%100;return"["+D+(O[(H-20)%10]||O[H]||O[0])+"]"}},$=function(D,O,H){var Y=String(D);return!Y||Y.length>=O?D:""+Array(O+1-Y.length).join(H)+D},B={s:$,z:function(D){var O=-D.utcOffset(),H=Math.abs(O),Y=Math.floor(H/60),G=H%60;return(O<=0?"+":"-")+$(Y,2,"0")+":"+$(G,2,"0")},m:function D(O,H){if(O.date()<H.date())return-D(H,O);var Y=12*(H.year()-O.year())+(H.month()-O.month()),G=O.clone().add(Y,c),X=H-G<0,Q=O.clone().add(Y+(X?-1:1),c);return+(-(Y+(H-G)/(X?G-Q:Q-G))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:c,y:N,w:f,d,D:m,h:u,m:i,s,ms:a,Q:x}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},L="en",F={};F[L]=b;var R="$isDayjsObject",A=function(D){return D instanceof q||!(!D||!D[R])},V=function D(O,H,Y){var G;if(!O)return L;if(typeof O=="string"){var X=O.toLowerCase();F[X]&&(G=X),H&&(F[X]=H,G=X);var Q=O.split("-");if(!G&&Q.length>1)return D(Q[0])}else{var ne=O.name;F[ne]=O,G=ne}return!Y&&G&&(L=G),G||!Y&&L},k=function(D,O){if(A(D))return D.clone();var H=typeof O=="object"?O:{};return H.date=D,H.args=arguments,new q(H)},p=B;p.l=V,p.i=A,p.w=function(D,O){return k(D,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var q=function(){function D(H){this.$L=V(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[R]=!0}var O=D.prototype;return O.parse=function(H){this.$d=function(Y){var G=Y.date,X=Y.utc;if(G===null)return new Date(NaN);if(p.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var Q=G.match(g);if(Q){var ne=Q[2]-1||0,I=(Q[7]||"0").substring(0,3);return X?new Date(Date.UTC(Q[1],ne,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,I)):new Date(Q[1],ne,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,I)}}return new Date(G)}(H),this.init()},O.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},O.$utils=function(){return p},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(H,Y){var G=k(H);return this.startOf(Y)<=G&&G<=this.endOf(Y)},O.isAfter=function(H,Y){return k(H)<this.startOf(Y)},O.isBefore=function(H,Y){return this.endOf(Y)<k(H)},O.$g=function(H,Y,G){return p.u(H)?this[Y]:this.set(G,H)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(H,Y){var G=this,X=!!p.u(Y)||Y,Q=p.p(H),ne=function(j,P){var U=p.w(G.$u?Date.UTC(G.$y,P,j):new Date(G.$y,P,j),G);return X?U:U.endOf(d)},I=function(j,P){return p.w(G.toDate()[j].apply(G.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(P)),G)},w=this.$W,E=this.$M,C=this.$D,v="set"+(this.$u?"UTC":"");switch(Q){case N:return X?ne(1,0):ne(31,11);case c:return X?ne(1,E):ne(0,E+1);case f:var W=this.$locale().weekStart||0,_=(w<W?w+7:w)-W;return ne(X?C-_:C+(6-_),E);case d:case m:return I(v+"Hours",0);case u:return I(v+"Minutes",1);case i:return I(v+"Seconds",2);case s:return I(v+"Milliseconds",3);default:return this.clone()}},O.endOf=function(H){return this.startOf(H,!1)},O.$set=function(H,Y){var G,X=p.p(H),Q="set"+(this.$u?"UTC":""),ne=(G={},G[d]=Q+"Date",G[m]=Q+"Date",G[c]=Q+"Month",G[N]=Q+"FullYear",G[u]=Q+"Hours",G[i]=Q+"Minutes",G[s]=Q+"Seconds",G[a]=Q+"Milliseconds",G)[X],I=X===d?this.$D+(Y-this.$W):Y;if(X===c||X===N){var w=this.clone().set(m,1);w.$d[ne](I),w.init(),this.$d=w.set(m,Math.min(this.$D,w.daysInMonth())).$d}else ne&&this.$d[ne](I);return this.init(),this},O.set=function(H,Y){return this.clone().$set(H,Y)},O.get=function(H){return this[p.p(H)]()},O.add=function(H,Y){var G,X=this;H=Number(H);var Q=p.p(Y),ne=function(E){var C=k(X);return p.w(C.date(C.date()+Math.round(E*H)),X)};if(Q===c)return this.set(c,this.$M+H);if(Q===N)return this.set(N,this.$y+H);if(Q===d)return ne(1);if(Q===f)return ne(7);var I=(G={},G[i]=n,G[u]=r,G[s]=o,G)[Q]||1,w=this.$d.getTime()+H*I;return p.w(w,this)},O.subtract=function(H,Y){return this.add(-1*H,Y)},O.format=function(H){var Y=this,G=this.$locale();if(!this.isValid())return G.invalidDate||h;var X=H||"YYYY-MM-DDTHH:mm:ssZ",Q=p.z(this),ne=this.$H,I=this.$m,w=this.$M,E=G.weekdays,C=G.months,v=G.meridiem,W=function(P,U,z,Z){return P&&(P[U]||P(Y,X))||z[U].slice(0,Z)},_=function(P){return p.s(ne%12||12,P,"0")},j=v||function(P,U,z){var Z=P<12?"AM":"PM";return z?Z.toLowerCase():Z};return X.replace(T,function(P,U){return U||function(z){switch(z){case"YY":return String(Y.$y).slice(-2);case"YYYY":return p.s(Y.$y,4,"0");case"M":return w+1;case"MM":return p.s(w+1,2,"0");case"MMM":return W(G.monthsShort,w,C,3);case"MMMM":return W(C,w);case"D":return Y.$D;case"DD":return p.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return W(G.weekdaysMin,Y.$W,E,2);case"ddd":return W(G.weekdaysShort,Y.$W,E,3);case"dddd":return E[Y.$W];case"H":return String(ne);case"HH":return p.s(ne,2,"0");case"h":return _(1);case"hh":return _(2);case"a":return j(ne,I,!0);case"A":return j(ne,I,!1);case"m":return String(I);case"mm":return p.s(I,2,"0");case"s":return String(Y.$s);case"ss":return p.s(Y.$s,2,"0");case"SSS":return p.s(Y.$ms,3,"0");case"Z":return Q}return null}(P)||Q.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(H,Y,G){var X,Q=this,ne=p.p(Y),I=k(H),w=(I.utcOffset()-this.utcOffset())*n,E=this-I,C=function(){return p.m(Q,I)};switch(ne){case N:X=C()/12;break;case c:X=C();break;case x:X=C()/3;break;case f:X=(E-w)/6048e5;break;case d:X=(E-w)/864e5;break;case u:X=E/r;break;case i:X=E/n;break;case s:X=E/o;break;default:X=E}return G?X:p.a(X)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return F[this.$L]},O.locale=function(H,Y){if(!H)return this.$L;var G=this.clone(),X=V(H,Y,!0);return X&&(G.$L=X),G},O.clone=function(){return p.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()},D}(),M=q.prototype;return k.prototype=M,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",N],["$D",m]].forEach(function(D){M[D[1]]=function(O){return this.$g(O,D[0],D[1])}}),k.extend=function(D,O){return D.$i||(D(O,q,k),D.$i=!0),k},k.locale=V,k.isDayjs=A,k.unix=function(D){return k(1e3*D)},k.en=F[L],k.Ls=F,k.p={},k})})($r);var Xi=$r.exports;const ze=Xe(Xi);var Cr={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(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),b=60*T[1]+(+T[2]||0);return b===0?0:T[0]==="+"?-b:b}(h)}],c=function(h){var g=i[h];return g&&(g.indexOf?g:g.s.concat(g.f))},x=function(h,g){var T,b=i.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,g))>-1){T=$>12;break}}else T=h===(g?"pm":"PM");return T},N={A:[s,function(h){this.afternoon=x(h,!1)}],a:[s,function(h){this.afternoon=x(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 g=i.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var b=1;b<=31;b+=1)g(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var g=c("months"),T=(c("monthsShort")||g.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[s,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(h){var g,T;g=h,T=i&&i.formats;for(var b=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,k,p){var q=p&&p.toUpperCase();return k||T[p]||o[p]||T[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,D,O){return D||O.slice(1)})})).match(n),$=b.length,B=0;B<$;B+=1){var L=b[B],F=N[L],R=F&&F[0],A=F&&F[1];b[B]=A?{regex:R,parser:A}:L.replace(/^\[|\]$/g,"")}return function(V){for(var k={},p=0,q=0;p<$;p+=1){var M=b[p];if(typeof M=="string")q+=M.length;else{var D=M.regex,O=M.parser,H=V.slice(q),Y=D.exec(H)[0];O.call(k,Y),V=V.replace(Y,"")}}return function(G){var X=G.afternoon;if(X!==void 0){var Q=G.hours;X?Q<12&&(G.hours+=12):Q===12&&(G.hours=0),delete G.afternoon}}(k),k}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=g.prototype,$=b.parse;b.parse=function(B){var L=B.date,F=B.utc,R=B.args;this.$u=F;var A=R[1];if(typeof A=="string"){var V=R[2]===!0,k=R[3]===!0,p=V||k,q=R[2];k&&(q=R[2]),i=this.$locale(),!V&&q&&(i=T.Ls[q]),this.$d=function(H,Y,G){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*H);var X=m(Y)(H),Q=X.year,ne=X.month,I=X.day,w=X.hours,E=X.minutes,C=X.seconds,v=X.milliseconds,W=X.zone,_=new Date,j=I||(Q||ne?1:_.getDate()),P=Q||_.getFullYear(),U=0;Q&&!ne||(U=ne>0?ne-1:_.getMonth());var z=w||0,Z=E||0,ee=C||0,S=v||0;return W?new Date(Date.UTC(P,U,j,z,Z,ee,S+60*W.offset*1e3)):G?new Date(Date.UTC(P,U,j,z,Z,ee,S)):new Date(P,U,j,z,Z,ee,S)}catch{return new Date("")}}(L,A,F),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),p&&L!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var M=A.length,D=1;D<=M;D+=1){R[1]=A[D-1];var O=T.apply(this,R);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}D===M&&(this.$d=new Date(""))}else $.call(this,B)}}})})(Cr);var Zi=Cr.exports;const Ji=Xe(Zi);var Nr={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)}}})})(Nr);var Qi=Nr.exports;const es=Xe(Qi);var kr={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,x,N,m,h){var g=c.name?c:c.$locale(),T=s(g[x]),b=s(g[N]),$=T||b.map(function(L){return L.slice(0,m)});if(!h)return $;var B=g.weekStart;return $.map(function(L,F){return $[(F+(B||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,x){return c.formats[x]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(c.formats[x.toUpperCase()])},f=function(){var c=this;return{months:function(x){return x?x.format("MMMM"):i(c,"months")},monthsShort:function(x){return x?x.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(x){return x?x.format("dddd"):i(c,"weekdays")},weekdaysMin:function(x){return x?x.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(x){return x?x.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(x){return d(c.$locale(),x)},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(x){return d(c,x)},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)}}})})(kr);var ts=kr.exports;const ns=Xe(ts);var Er={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 x=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(x,o,!0);return N<0?s(this).startOf("week").week():Math.ceil(N)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Er);var ls=Er.exports;const os=Xe(ls);var Ir={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}}})})(Ir);var rs=Ir.exports;const as=Xe(rs);var Vr={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")}}})})(Vr);var is=Vr.exports;const ss=Xe(is);var Or={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)}}})})(Or);var us=Or.exports;const cs=Xe(us);var Pr={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)}}})})(Pr);var fs=Pr.exports;const ds=Xe(fs);ze.extend(ns);ze.extend(es);ze.extend(Ji);ze.extend(os);ze.extend(as);ze.extend(ss);ze.extend(cs);ze.extend(ds);const Re={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,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]=Re.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Re.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}},Gl={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"}},Ul={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 hs(e,t,o){return{props:{...be,...ke,...Gl,...Ul},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",null,i),x=l.computed(()=>O.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=l.computed(()=>O.value?"longTermKey":"normalKey"),m=j=>{if(O.value&&n.type==="daterange"){const P=[...c.value];P[0]=j,c.value=P}else c.value=j;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>O.value&&n.type==="daterange"?"date":n.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":O.value,"is-readonly":s.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const B=j=>{let U=j.target.value;f.value=!0,me(b.value)||($.value=!0),i("focus",U,j)},L=j=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let U=j.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),i("blur",U,j)},F=()=>{i("clear","")},R=j=>{i("calendar-change",j)},A=(j,P,U)=>{i("panel-change",j,P,U)},V=j=>{i("visible-change",j)},k=Oe(l.computed(()=>n.longTermText),"longTermText",Ae.Near),p=Oe(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ae.Near),q=Oe(l.computed(()=>n.longTermValue),"longTermValue",Ae.Near),M=Oe(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let D=null;const O=l.ref(se(n.longTerm)),H=j=>{if(O.value=j,i("update:longTerm",j),j){if(D=c.value,n.type==="daterange"){const P=[];Array.isArray(q.value)?(P[0]=c.value?c.value[0]??q.value[0]:null,P[1]=q.value[1]??q.value[0]):(P[0]=c.value?c.value[0]??q.value:null,P[1]=O.value),P[0]||(P[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=P}else Array.isArray(q.value)?c.value=q.value[1]??q.value[0]:c.value=q.value,c.value||(c.value=n.valueFormat?Re.format(new Date,n.valueFormat):new Date);i("update:modelValue",c.value)}else{if(n.type==="daterange"){const P=[];P[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(D)?P[1]=D[1]:P[1]=D,P[0]||(P[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=P}else c.value=D;i("update:modelValue",c.value),setTimeout(()=>{W()},100)}},Y=se(n.isLongTerm);if(Y){const j=()=>{if(O.value===!0){if(D=c.value,n.type==="daterange"){const P=[c.value[0]];Array.isArray(q.value)?P[1]=q.value[1]??q.value[0]:P[1]=O.value,P[0]||(P[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=P}else c.value=q.value;i("update:modelValue",c.value)}else We(q.value,c.value)&&(O.value=!0)};j(),l.watch([()=>n.longTerm],([P])=>{O.value!==P&&j()}),l.watch([()=>c.value],([P])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(P))try{let z=P[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Re.format(z,n.valueFormat));let Z=Array.isArray(q.value)?q.value[1]:q.value;(z===Z||Array.isArray(M.value)&&M.value.findIndex(S=>z==S)!==-1)&&(U=!0)}catch(z){console.error(z)}O.value!==U&&(O.value=U)},{immediate:!0})}const G=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),X=l.ref(),Q=l.ref(),ne=/^\d+$/,I=(j,P)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(j,P):ne.test(j)&&j.length===n.flashFillThreshold,w=(j,P)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(j,P);else{const Z=n.flashFillFormat??"YYYYMMDD";U=Re.parser(j,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Re.format(U,z)},E=j=>j?j.endsWith("range"):!1,C=j=>{if(!j.target)return;const P=j.target.value??"";if(I(P,n.type)){const U=w(P,n.type);if(E(n.type)){const z=Array.isArray(c.value)?[...c.value]:[];z[0]=U,m(z)}else m(U)}},v=j=>{if(!j.target)return;const P=j.target.value??"";if(I(P,n.type)){const U=w(P,n.type);if(E(n.type)){const z=Array.isArray(c.value)?[...c.value]:[];z[1]=U,m(z)}else m(U)}},W=()=>{if(n.flashFill&&X.value&&X.value.$el)if(E(n.type)){const j=X.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].addEventListener("input",C),j[1]&&j[1].addEventListener("input",v)}else{const j=X.value.$el.querySelector("input.el-input__inner");j&&j.addEventListener("input",C)}},_=()=>{if(n.flashFill&&X.value&&X.value.$el)if(E(n.type)){const j=X.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].removeEventListener("input",C),j[1]&&j[1].removeEventListener("input",v)}else{const j=X.value.$el.querySelector("input.el-input__inner");j&&j.removeEventListener("input",C)}};return l.onMounted(W),l.onBeforeUnmount(_),Se({focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},handleOpen:()=>{Q?.value.handleOpen()},handleClose:()=>{Q?.value.handleClose()}}),()=>{const P={...r.attrs,key:N.value,type:h.value,ref:Q,class:T.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:x.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:F,onFocus:B,onBlur:L,onCalendarChange:R,onPanelChange:A,onVisibleChange:V},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const z=[],Z=l.h(y.ElDatePicker,P,U);z.push(Z);const ee={default:()=>z};if(r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip),Y){if(O.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),ae={class:G.value},J=l.h("div",ae,{default:()=>[le,fe]});z.push(J)}if(!s.value&&!a.value){const le={label:p.value||k.value,disabled:s.value||a.value,modelValue:O.value,"onUpdate:modelValue":H},fe=l.h(y.ElCheckbox,le),ae=l.h("div",{class:{[`${g}__append`]:!0}},[fe]);ee.append=()=>ae}}const K={...Ne(n,Gl,Ul),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:b.value,hintVisible:$.value,prop:`${n.prop}_item`};return l.h(o,K,ee)}}}}const{componentName:ms,create:gs,scope:ps}=ie("date-item"),tl=gs(hs(ms,ps,xe)),Xl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function vs(e,t,o){return{props:{...be,...ke,...Xl},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",null,i),x=e,N=l.computed(()=>({[x]:!0})),m=F=>{c.value=F,i("update:modelValue",F),i("change",F)};let h=he(n,"hintText"),g=l.ref(!1);const T=F=>{let A=F.target.value;f.value=!0,me(h.value)||(g.value=!0),i("focus",A,F)},b=F=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let A=F.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,F)},$=()=>{i("clear","")},B=F=>{i("visible-change",F)},L=l.ref();return Se({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const R={...r.attrs,ref:L,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:$,onFocus:T,onBlur:b,onVisibleChange:B},A={},V=[],k=l.h(y.ElTimePicker,R,A);V.push(k);const p={default:()=>V};r.slots.default&&(p.label=r.slots.default),r.slots.fixedTip&&(p.fixedTip=r.slots.fixedTip);const M={...Ne(n,Xl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,M,p)}}}}const{componentName:ys,create:bs,scope:xs}=ie("time-item"),nl=bs(vs(ys,xs,xe)),Zl={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:{...be,...ke,...Zl},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",null,i),x=e,N=l.computed(()=>({[x]:!0})),m=L=>{c.value=L,i("update:modelValue",L),i("change",L)};let h=he(n,"hintText"),g=l.ref(!1);const T=L=>{let R=L.target.value;f.value=!0,me(h.value)||(g.value=!0),i("focus",R,L)},b=L=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let R=L.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),i("blur",R,L)},$=()=>{i("clear","")},B=l.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const F={...r.attrs,ref:B,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:$,onFocus:T,onBlur:b},R={},A=[],V=l.h(y.ElTimeSelect,F,R);A.push(V);const k={default:()=>A};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const q={...Ne(n,Zl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,k)}}}}const{componentName:Ss,create:Ts,scope:$s}=ie("time-select-item"),ll=Ts(ws(Ss,$s,xe));function Jl(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 Ql(e,t,o=20){if(typeof t=="string"&&(t=ye(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Mo(`${e}`,`${t}`);return Jl(n)}else{let n=_n(`${e}`,Bo(`${t}`),20);return Jl(n)}}function Cs(e,t=-1,o=!1,n=3,r=","){return Kt(e,t,o,n,r)}function eo(e,t,o,n,r=!0){if(e==="")return"";if(e=_o(e),t=ye(t),t==1)return e;if(n)e=Ql(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(ye(o)+2,"0"):e=_n(e,1,ye(o)));else{let a=-1*t;e=Ql(e,a)}return e}function to(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=Vn(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=Vn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const no={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 Ns(e,t,o){return{props:{...be,...ke,...no},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=he(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([M,D,O])=>{if(me(M)){f.value="";return}const H=eo(M,D,O,!1);f.value!==H&&(f.value=H)},{immediate:!0});const c=l.computed(()=>{let M="";return u.value&&(M=f.value),M}),{t:x}=Le.useFoxI18n(t),N=l.computed(()=>{let M=n.placeholder??"";return!u.value&&!me(f.value)?M=Cs(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):M=x(["placeholder",M]),M}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=Oe(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),b=l.computed(()=>{let M=T.value;return me(M)&&(M=n.errorTip??""),M}),$=l.ref(""),B=l.ref(!1),L=(M,D)=>{if(M=`${M}`,me(M)){f.value="",d.value="",D.forEach(O=>{i(O,"")}),se(n.showTip)&&B.value&&(B.value=!1);return}if(M.length>=2){let O=M;if(O.charAt(0)=="-"&&(O=O.substring(1)),O.length>=2&&O.charAt(0)=="0"&&O.charAt(1)!="."){l.triggerRef(f);return}}if(M!="-"){if(!Uo(M)){l.triggerRef(f);return}if(n.integerLength!=-1&&Xo(M)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Zo(M)>Number(n.decimalLength)){l.triggerRef(f);return}let O=to(M,n);if(O.maxValid===!1){T.value=O.message,l.triggerRef(f);return}}else if(n.min!=null&&ye(n.min)>=0){l.triggerRef(f);return}$.value=M,se(n.showTip)&&(B.value=M.length>0),f.value=M,d.value=eo(M,n.rates,n.precision,!0),D.forEach(O=>{i(O,d.value)})},F=M=>{L(M,["update:modelValue","input"])},R=M=>{L(M,["update:modelValue","change"])},A=M=>{if(u.value=!0,se(n.showTip)){let D=f.value;me(D)&&(D=n.hintText),me(D)||($.value=D,B.value=!0)}T.value="",i("focus",d.value,M)},V=M=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&B.value===!0&&(B.value=!1)},0),!me(f.value)){let D=to(f.value,n);if(D.minValid===!1||D.maxValid===!1){T.value=D.message;return}}i("update:modelValue",d.value,M),i("blur",d.value,M)},k=()=>{i("clear","")},p=l.computed(()=>Vt(n.unit)>0),q=l.ref();return Se({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const D={...He(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:F,onChange:R,onFocus:A,onBlur:V},O={};r.slots.prepend&&(O.prepend=r.slots.prepend),r.slots.append&&(O.append=r.slots.append),r.slots.prefix&&(O.prefix=r.slots.prefix),r.slots.suffix?O.suffix=r.slots.suffix:p.value&&(O.suffix=()=>[n.unit]);const H=[],Y=l.h(y.ElInput,D,O);H.push(Y);const G={default:()=>H};r.slots.default&&(G.label=r.slots.default),r.slots.fixedTip&&(G.fixedTip=r.slots.fixedTip);const Q={...Ne(n,no),errorTip:b.value,hintText:$.value,hintVisible:B.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,Q,G)}}}}const{componentName:ks,create:Es,scope:Is}=ie("money-item"),ol=Es(Ns(ks,Is,xe)),lo={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 Vs(e,t,o){return{props:{...be,...ke,...lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",null,i),x=e,N=l.computed(()=>({[x]:!0,[`${x}__append`]:F.value})),m=l.computed(()=>({[`${x}__unit`]:!0})),h=A=>{c.value=A,i("update:modelValue",A),i("input",A)},g=A=>{i("change",A)};let T=he(n,"hintText"),b=l.ref(!1);const $=A=>{let k=A.target.value;f.value=!0,me(T.value)||(b.value=!0),i("focus",k,A)},B=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let k=A.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,A)},L=()=>{i("clear","")},F=l.computed(()=>Vt(n.unit)>0),R=l.ref();return Se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const V={...He(r.attrs),ref:R,class:N.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:L,onChange:g,onInput:h,onFocus:$,onBlur:B},k={},p=[],q=l.h(y.ElInputNumber,V,k);p.push(q);const M={default:()=>p};r.slots.default&&(M.label=r.slots.default),r.slots.fixedTip&&(M.fixedTip=r.slots.fixedTip);const O={...Ne(n,lo),hintText:T.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)M.append=r.slots.append;else if(F.value){const Y={class:m.value},G=l.h("div",Y,[n.unit]);M.append=()=>G}return l.h(o,O,M)}}}}const{componentName:Os,create:Ps,scope:Ds}=ie("input-number-item"),rl=Ps(Vs(Os,Ds,xe));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(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=qe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ye(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 Mn(e,t,o){const n=Ke(e,t),r=Ke(e,o);if(n!==r)return!1;const a=ot(e,t),s=ot(e,o);return a===s}function Dr(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=Dr(e,i,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ke(e,d)===i;else if(o==="item")u=Mn(e,d,i);else{let f=ot(e,d);f==null&&(f=Ke(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 oo={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:{...be,...ke,...oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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([]),x=l.computed(()=>c.value?c.value.map(j=>Array.isArray(j)?j.map(U=>Ke(n,U)).join(" "):Ke(n,j)).join(" "):""),N=(_,j,P,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===_)return;f.value=_;const S=l.toRaw(_);if(U){const K=W?.value.getCheckedNodes();if(K)if(n.multiple){const te=[];K.forEach(le=>{const ae=(le.pathNodes??[]).map(J=>J.data);te.push(ae)}),i("update:pathNodes",te)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);i("update:pathNodes",le)}i("update:modelValue",S),i("change",S)}return}const z=Dr(n,_,j,P);if(z===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,U&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const Z=z[z.length-1];if(k.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const S=[];z.forEach(K=>{const te=`${Ke(n,K)}`;S.push(te)}),S.length>0&&(A.value=S.join(n.separator))}else A.value=null;let ee=!0;if(z.length!==c.value.length)ee=!1;else for(let S=0;S<z.length;S++){const K=z[S],te=c.value[S];if(Array.isArray(K)){if(!Array.isArray(te)||K.length!==te.length)ee=!1;else for(let le=0;le<K.length;le++)if(!Mn(n,K[le],te[le])){ee=!1;break}}else Mn(n,K,te)||(ee=!1);if(!ee)break}if(!ee){c.value=z;let S=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ae=[];for(let J of le)fe.push(ot(n,J)),n.valueType==="text"?ae.push(Ke(n,J)):n.valueType==="item"?ae.push(J):ae.push(ot(n,J));S.push(fe),K.push(ae)}else S.push(ot(n,le)),n.valueType==="text"?K.push(Ke(n,le)):n.valueType==="item"?K.push(le):K.push(ot(n,le))}),f.value=S;const te=l.toRaw(K);U&&(i("update:pathNodes",z),i("update:modelValue",te),i("change",te))}},m=l.ref([]),h=Oe(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,_=>se(_)),g=As(),T=async(_,j)=>{if(_){const P=await g.load("cascader",_,j);if(P.length>0)if(typeof P[0]=="string"){let Z=P.map(ee=>Ls(ee));m.value=Z}else m.value=P}};l.watch([()=>n.source,()=>n.params],async([_,j])=>{T(_,j)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,T(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([_,j])=>{N(j,n.valueType,_,!1),i("setValue",j)}),n.lazy&&N(n.modelValue,"value",[],!1);let B=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(B=async _=>{if(_!=null){L.value=!0;try{const j=await n.remoteMethod(_);m.value=j}catch(j){console.error(j)}L.value=!1}});const F=l.ref(!1),R=e,A=l.ref(null),V=l.computed(()=>({[R]:!0,"is-incomplete":A.value&&A.value.length>0})),k=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(j,P)=>{const U=await g.load("cascader",n.source,j,!0);if(j?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===j.level){const z=j.pathLabels??[];let Z=[];z.forEach(ee=>{ee&&Z.push(ee)}),Z.length>0&&(A.value=Z.join(n.separator))}else A.value=null;P(U)}),_}),p=_=>{n.allowCreate?(i("update:modelValue",_),i("change",_),f.value=_):N(_,"value",m.value,!0)};let q=he(n,"hintText"),M=l.ref(!1);const D=_=>{let P=_.target.value;F.value=!0,me(q.value)||(M.value=!0),i("focus",P,_)},O=_=>{setTimeout(()=>{M.value&&(M.value=!1),F.value=!1},0);let P=_.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),w.value||i("blur",P,_)},H=()=>{i("clear","")},Y=l.ref(!1);let G=null;const X=()=>{n.showTooltip&&Y.value===!1&&(G&&clearTimeout(G),G=setTimeout(()=>{Y.value=!0},150))},Q=()=>{G&&(clearTimeout(G),Y.value=!1,G=null)},ne=l.computed(()=>Y.value||M.value),I=l.computed(()=>Y.value?x.value:q.value),w=l.ref(!1),E=_=>{w.value=_,i("visible-change",_),_||i("selected")},C=_=>{i("remove-tag",_)},v=_=>{i("expand-change",_)},W=l.ref();return Se({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},getCheckedNodes:()=>W?.value.getCheckedNodes()}),()=>{const j={...r.attrs,ref:W,class:V.value,props:k.value,clearable:n.clearable,placeholder:A.value||d.placeholder.value,disabled:a.value||s.value,options:m.value,modelValue:f.value,separator:n.separator,onClear:H,onChange:p,onFocus:D,onBlur:O,onVisibleChange:E,onRemoveTag:C,expandChange:v};typeof B=="function"&&(j["remote-method"]=B,j.loading=L.value);const P={};r.slots.option&&(P.default=r.slots.option),r.slots.empty&&(P.empty=r.slots.empty);const U=[],z=l.h(y.ElCascader,j,P);U.push(z);const Z={default:()=>U};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const S={...Ne(n,oo),hintText:I.value,hintVisible:ne.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:Q};return h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=$),l.h(o,S,Z)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),al=_s(Ms(Bs,qs,xe)),ro={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function js(e,t,o){return{props:{...be,...ke,...ro},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",null,i),x=e,N=l.computed(()=>({[x]:!0})),m=R=>{c.value=R,i("update:modelValue",R),i("input",R)},h=R=>{i("change",R)},g=R=>{i("select",R)};let T=he(n,"hintText"),b=l.ref(!1);const $=R=>{let V=R.target.value;f.value=!0,me(T.value)||(b.value=!0),i("focus",V,R)},B=R=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let V=R.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,R)},L=()=>{i("clear","")},F=l.ref();return Se({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const A={...r.attrs,ref:F,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:L,onChange:h,onInput:m,onFocus:$,onBlur:B,onSelect:g},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 k=[],p=l.h(y.ElAutocomplete,A,V);k.push(p);const q={default:()=>k};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const D={...Ne(n,ro),hintText:T.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,D,q)}}}}const{componentName:zs,create:Hs,scope:Ks}=ie("autocomplete-item"),il=Hs(js(zs,Ks,xe));function Ws(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(x=>x[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(x=>x[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(x=>x[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Ys=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=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Gs(){const e=l.getCurrentInstance();return new Ys(e.proxy)}const Fr={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 Us(e,t){return{props:{...Fr},setup(o,{attrs:n,slots:r}){const a=Gs(),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=Ws(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:Ph,create:Xs,scope:Dh}=ie("mapping"),Et=Xs(Us());function Zs(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 Js(e,t){return{props:{...Fr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Zs(s.row,s.column.property);return r.default?l.h(Et,{...o,modelValue:i},{default:r.default}):l.h(Et,{...o,modelValue:i})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Fh,create:Qs,scope:Rh}=ie("table-mapping-column"),sl=Qs(Js()),eu=Symbol.for("TableStateKey");function ao(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 tu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(eu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ao(i.row,i.column.property),d=a?ao(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},x=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return l.h("label",N,[x])}};return l.h(y.ElTableColumn,{...n},s)}}}}const{componentName:Ah,create:nu,scope:Lh}=ie("table-radio-column"),ul=nu(tu()),lu={},ou={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"},ru=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),au=[ru];function iu(e,t){return l.openBlock(),l.createElementBlock("svg",ou,au)}const su=Me(lu,[["render",iu]]),{componentName:Mh,create:uu,scope:Bh}=ie("table-setting"),cu={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:"不固定"}},fu=uu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:su,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...cu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),s=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),i=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.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=v=>v.length>1,x=(v,W)=>{Array.isArray(v)&&Array.isArray(W)&&v.forEach(P=>{W.some(U=>U.prop===P.prop?(P.label=U.label,!0):!1)});const _=[];r.value=v.map((P,U)=>(!(P.label===""||P.type)&&P.visible!==!1&&_.push(P.prop),{...P,sortIndex:U})),i.value.length+a.value.length+s.value.length===_.length?b.value=!0:_.length>0&&($.value=!0),F.value=_},N=v=>v?v.type?v.type:v.label?v.prop:"":"",m=(v,W)=>{if(v.length!==W.length)return!1;const _=v.map(j=>N(j));for(let j of W){const P=N(j);if(_.indexOf(P)===-1)return!1}return!0},h=v=>{if(!v){const W=e.tableRef.getColumnSetting(),_=W.srcColumnPropertyList;n=_.map((j,P)=>({...j,sortIndex:P})),v=W.columnPropertyList,v&&v.length>0&&m(_,v)||(v=_)}x(v,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),B=v=>{const W=[];r.value.forEach(j=>{v&&!(j.label===""||j.type)&&W.push(j.prop),j.visible=v}),b.value=!1,$.value=!1,i.value.length+a.value.length+s.value.length===W.length?b.value=!0:W.length>0&&($.value=!0),F.value=W,g()},L=()=>{h(n),g()},F=l.ref([]),R=v=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const j=v.indexOf(_.prop)!==-1;_.visible=j}),b.value=!1,$.value=!1;const W=i.value.length+a.value.length+s.value.length;v.length===W?b.value=!0:v.length>0&&($.value=!0),g()},A=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const V={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,p=v=>{const W=v.currentTarget;W&&W.dataset&&(V.roleType=W.dataset.roleType,V.index=W.dataset.index)},q=v=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null,V.roleType=null},M=v=>{const W=v.currentTarget;v.relatedTarget;const _=k(W);if(!_)return;const j=_.dataset&&_.dataset.roleType;V.roleType===j&&(v.preventDefault(),V.currentRow&&V.currentRow!==_&&V.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),V.currentRow=_)},D=v=>{v.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},O=v=>{const W=v.currentTarget,_=k(W);if(!_)return;const j=_.dataset&&_.dataset.roleType;if(V.roleType!==j)return;v.preventDefault();const P=Number(V.index),U=Number(_.dataset.index);if(P!==U){if(P<U){const z=r.value[P];r.value.splice(P,1),r.value.splice(U,0,z)}else{const z=r.value[P];r.value.splice(P,1),r.value.splice(U+1,0,z)}x(r.value,n),g()}},H=v=>{const W=r.value[v];W.fixed="left",g()},Y=v=>{const W=r.value[v];W.fixed="right",g()},G=v=>{const W=r.value[v];W.fixed=void 0,g()},X=new Map;let Q=null;function ne(v){const W=document.createRange();return W.setStart(v,0),W.setEnd(v,v.childNodes.length),W.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:B,handleReset:L,checkedValue:F,handleCheckChange:R,onShow:A,onDragStart:p,onDragEnd:q,onDragOver:M,onDragLeave:D,onDrop:O,toLeftFixed:H,toRightFixed:Y,toUnFixed:G,checkboxLabelStyle:T,onMouseOverForOverflowText:(v,W,_)=>{const j=v.currentTarget;if(j){const P=Math.floor(j.offsetWidth);if(Math.floor(ne(j))>P){let z=X.get(W);if(z){if(z===Q)return;Ve.hide(z)}z=Ve.show(j,_,{type:"text",placement:"top",closeOnClick:!1}),X.set(W,z),Q=z}}},onMouseLeaveForOverflowText:(v,W)=>{const _=X.get(W);_&&(Ve.hide(_),_===Q&&(Q=null))},onMouseOverForTip:(v,W)=>{const _=v.currentTarget;_&&(Q&&Ve.hide(Q),Q=Ve.show(_,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{Q&&(Ve.hide(Q),Q=null)}}}}),du={class:"fox-table-setting"},hu={class:"fox-table-setting__header"},mu={class:"fox-table-setting__body"},gu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},pu={key:0,class:"fox-table-setting__body-title"},vu=["data-index","draggable"],yu=["onMouseover","onMouseleave"],bu={class:"tools-item"},xu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},wu={key:0,class:"fox-table-setting__body-title"},Su=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],$u={class:"tools-item"},Cu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Nu={key:0,class:"fox-table-setting__body-title"},ku=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],Iu={class:"tools-item"};function Vu(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"),x=l.resolveComponent("fox-checkbox"),N=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,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",du,[l.createElementVNode("div",hu,[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",mu,[l.createVNode(N,{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",gu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",pu,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]=(...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.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:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,yu)]),_:2},1032,["label"]),l.createElementVNode("div",bu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,vu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",xu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",wu,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]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[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:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Tu)]),_:2},1032,["label"]),l.createElementVNode("div",$u,[l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Su))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Cu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Nu,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]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(x,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",Iu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,ku))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const sn=Me(fu,[["render",Vu]]);let Ou=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=qe(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ye(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function Pu(){const e=l.getCurrentInstance();return new Ou(e.proxy)}class Du{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=qe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=qe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=qe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Rr(){const e=l.getCurrentInstance();return new Du(e.proxy)}const Fu=Symbol.for("TableStateKey"),io={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"}},so={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}},xn={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:"不固定"}},Ru={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Au(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 wn(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Au(n,r);if(a!==s)return!1}return!0})}function Lu(e,t,o){return{inheritAttrs:!1,props:{...be,...ke,...io,...so,...xn,...Ru},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}=we({componentName:e,validateHandler:{getValue(...J){return F.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})),x=l.shallowRef({}),N=l.computed(()=>({...x.value,...n.params??{},...n.baseParams??{}})),m=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),g=se(n.infiniteLoad);g||(l.watch(()=>n.pageIndex,J=>{m.value=J}),l.watch(()=>n.pageSize,J=>{h.value=J}),l.watch([m,h],([J,oe],[re,ue])=>{oe!==ue&&(m.value=1,J=1),k(n.data,J,oe,N.value)}));const T=()=>Array.isArray(n.data)?!0:se(n.autoLoad);T()&&l.watch([()=>n.data,N],async([J,oe],[re,ue])=>{T()&&(J!==re&&(A=!0),!(!Array.isArray(J)&&We(J,re)&&We(oe,ue))&&(g?(m.value=0,B.value=!0,F.value=[],q()):m.value===1?k(J,m.value,h.value,oe):m.value=1))},{deep:!0});const b=J=>{m.value=J,s("page-index-change",J)},$=J=>{h.value=J,s("page-size-change",J)},B=l.ref(!0),L=l.ref(0),F=l.ref(),R=Pu();let A=!0;const V=Oe(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,J=>se(J)),k=async(J,oe,re,ue,Ee)=>{A=!1;try{if(Ee===!0){if(!B.value)return!1;const ge=await R.load("table",J,oe,re,ue,A,a.value);return L.value=ge.totalSize,!ge.page||!Array.isArray(ge.page)||(Reflect.apply([].push,F.value,ge.page),setTimeout(()=>{s("loaded-data")},250),(F.value?.length??0)>=L.value)||ge.page.length<re?(B.value=!1,!1):!0}else{const ge=await R.load("table",J,oe,re,ue,A,a.value);return L.value=ge.totalSize,F.value=ge.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(ge){console.error("[FoxUI] Load Table Data Fail",ge),L.value=0,F.value=[]}return!1};let p=!1;const q=async()=>{if(!p){if(p=!0,!B.value){p=!1;return}m.value+=1,await k(n.data,m.value,h.value,N.value,!0),p=!1}},M=(J={},oe=!1)=>new Promise(async re=>{x.value={...l.toRaw(J??{})},oe||(m.value=n.pageIndex??1),g===!0?(m.value=0,F.value=[],B.value=!0,await q()):await k(n.data,m.value,h.value,N.value),re()}),D=()=>{L.value=0,F.value=[],g===!0&&(m.value=0,B.value=!0)};let O=!1;const H=()=>{O||(O=!0,M())},Y=l.ref(null);if(g===!0){let J=null;const oe=()=>{Y.value&&(J=new IntersectionObserver(ue=>{let Ee=!1;for(let ge of ue)if(ge.intersectionRatio>0){Ee=!0;break}Ee&&q()}),J.observe(Y.value))},re=()=>{!J||!Y.value||(J.unobserve(Y.value),J=null)};l.onMounted(oe),l.onBeforeUnmount(re)}T()&&!V.value&&M();const G=l.ref(null);l.provide(Fu,{currentRow:G});const X=(J,oe)=>{G.value=J,s("current-change",J,oe)},Q=(J,oe,re)=>{s("row-click",J,oe,re),se(n.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(J)},ne=[],I=(J,oe)=>{if(s("expand-change",J,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=ne.length;ne.splice(0,re)}else{ne.forEach(ue=>{ue!==J&&ae?.value.toggleRowExpansion(ue,!1)});const re=ne.length;ne.splice(0,re,J)}},w=r.attrs.id??n.prop??r.attrs.name,E=Rr(),C=l.ref([]);let v=[];const W=()=>({srcColumnPropertyList:v.map(oe=>({...oe})),columnPropertyList:C.value}),_=J=>{C.value=[...J],P()},j=async()=>{const J=await E.load(w);J&&(C.value=J)},P=()=>{E.save(w,C.value)},U=()=>{E.remove(w)};j();const z=J=>J?J.type?J.type:J.label?J.prop:"":"",Z=()=>typeof r.slots.default=="function"?r.slots.default():[],ee=(J,oe)=>{for(let re in oe){const ue=oe[re];typeof ue!="function"&&(J[re]=ue)}},S=l.computed(()=>{const J=Z(),oe=new Map;if(v=[],J.forEach(re=>{const ue=re;if(!ue.props)return;const Ee=z(ue.props);oe.set(Ee,re);const ge={label:"",prop:""};ee(ge,ue.props),v.push(ge)}),C.value.length===v.length){const re=[];for(let ue of C.value){const Ee=z(ue),ge=oe.get(Ee);if(!ge)return J;if(ue.visible===!1)continue;const Pt=ge;Pt.props.fixed=ue.fixed,re.push(Pt)}return re}return J}),K=l.shallowRef(new Map),te=({column:J,rowIndex:oe})=>{const re=`${oe}_${J.property}`;return K.value.get(re)??""},le=J=>typeof J=="function"?oe=>{const re=[];let ue=te(oe);return ue&&re.push(ue),ue=J(oe),ue&&re.push(ue),re.length===0?"":re.join(" ")}:te,fe=(J,oe,re)=>{const ue=`${J}_${oe}`;re?K.value.set(ue,re):K.value.delete(ue),l.triggerRef(K)},ae=l.ref();return Se({clearSelection:()=>ae?.value.clearSelection(),getSelectionRows:()=>ae?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{ae?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!F.value)return;const re=wn(F.value,J);re.length!==0&&re.forEach(ue=>{ae?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{ae?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!F.value)return;const re=wn(F.value,J);re.length!==0&&re.forEach(ue=>{ae?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:J=>{ae?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!F.value)return;const oe=wn(F.value,J);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>G.value,clearSort:()=>{ae?.value.clearSort()},clearFilter:J=>{ae?.value.clearFilter(J)},doLayout:()=>{ae?.value.doLayout()},sort:(J,oe)=>{ae?.value.sort(J,oe)},scrollTo:(J,oe)=>{ae?.value.scrollTo(J,oe)},setScrollTop:J=>{ae?.value.setScrollTop(J)},setScrollLeft:J=>{ae?.value.setScrollLeft(J)},loadData:M,clearData:D,getData(){return F.value},getTotalSize(){return L.value},getPageIndex(){return m.value},getPageSize(){return h.value},getColumnSetting:W,setColumnSetting:_,removeColumnSetting:U,setCellClassName:fe}),()=>{const oe={...He(r.attrs),onCurrentChange:X,onRowClick:Q,onExpandChange:I,data:F.value,ref:ae,class:u.value,"cell-class-name":le(n.cellClassName)},re={};if(r.slots.default&&(re.default=()=>S.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),g===!0){const Be=[];if(B.value){const pt=l.h(Ce.Loading,{class:`${i}__infinite-icon`});Be.push(pt);const dn=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);Be.push(dn)}else{const pt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);Be.push(pt)}const et={ref:Y,class:`${i}__infinite`},fn=l.h("div",et,Be);re.append=()=>fn}const ue=l.h(y.ElTable,oe,re),Ee=[];if(Ee.push(ue),!g){let Be=null;if(typeof r.slots.pagination=="function")Be=r.slots.pagination();else if(n.showPagination){const et={class:c.value,total:L.value,pageSize:h.value,"onUpdate:pageSize":$,pageSizes:n.pageSizes,currentPage:m.value,"onUpdate:currentPage":b,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Be=l.h(y.ElPagination,et)}if(n.showSetting){const et=[];Be&&et.push(Be);const fn=l.h(y.ElIcon,{class:d.value},{default:()=>l.h(Ce.Setting)}),pt=Jo(n,xn),dn=l.h(sn,{...pt,tableRef:{getColumnSetting:W,setColumnSetting:_,removeColumnSetting:U}},{default:()=>fn});et.push(dn);const Wr=l.h("div",{class:f.value},et);Ee.push(Wr)}else Be&&Ee.push(Be)}const ge={default:()=>Ee},gt={...Ne(n,io,so,xn),prop:`${n.prop}_item`};return gt.contentClass=`${i}__wrap`,gt.errorMarkClass="is-table-error",V.value&&T()&&(gt["appear-listen"]=!0,gt.onAppear=H),l.h(o,gt,ge)}}}}const{componentName:Mu,create:Bu,scope:_u}=ie("table-item"),cl=Bu(Lu(Mu,_u,xe));function ht(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function It(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function qu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ju=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=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function zu(){const e=l.getCurrentInstance();return new ju(e.proxy)}function Ar(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=It(e,t),s=It(e,o);return a===s}function Hu(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=ht(e,a)===t;else if(o==="item")s=Ar(e,a,t);else{let i=It(e,a);i==null&&(i=ht(e,a)),s=i===t}if(s){r=a;break}}return r}function Ku(e){return{text:e,value:e}}function Wu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const uo={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 Yu(e,t,o){return{inheritAttrs:!0,props:{...be,...ke,...uo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=(R,A,V,k=!0)=>{const p=Hu(n,R,A,V);if(p===null){if(d.value===null)return;d.value=null,u.value=null,k&&(i("update:modelValue",null),i("change",null));return}if(!Ar(n,p,d.value)){u.value=R;const M=l.toRaw(p);d.value=M;let D=null;n.valueType==="text"?D=ht(n,M):n.valueType==="item"?D=M:D=It(n,M),k&&(i("update:modelValue",D),i("change",D))}},c=l.ref([]),x=Oe(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,R=>se(R)),N=zu(),m=async(R,A)=>{if(R){const V=await N.load("radio",R,A);if(V.length>0)if(typeof V[0]=="string"){let q=V.map(M=>Ku(M));c.value=q}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([R,A])=>{m(R,A)},{immediate:!x.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([R,A])=>{f(A,n.valueType,R,!1),i("setValue",A)});const T=e,b=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),$=R=>{f(R,"value",c.value,!0)};let B=he(n,"hintText"),L=he(n,"hintVisible");const F=(R,A)=>{const V=[];return R.forEach((k,p)=>{const q=It(n,k),M=ht(n,k);let D=qu(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const O=Wu(n,k,p)??{},H=`${q}_${p}`,Y={...O,key:H,label:q,size:n.size,border:se(n.border)};D&&(Y.disabled=D),n.itemType==="button"?V.push(l.h(y.ElRadioButton,Y,{default:()=>[M]})):typeof A=="function"?V.push(l.h(y.ElRadio,Y,{default:()=>A(k)})):V.push(l.h(y.ElRadio,Y,{default:()=>[M]}))}),V};return()=>{const A={...He(r.attrs),class:b.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>F(c.value,r.slots.text);const p=l.h(y.ElRadioGroup,A,k);V.push(p);const q={default:()=>V};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const D={...Ne(n,uo),hintText:B.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return x.value&&(D["appear-listen"]=!0,D.onAppear=g),l.h(o,D,q)}}}}const{componentName:Gu,create:Uu,scope:Xu}=ie("radio-item"),fl=Uu(Yu(Gu,Xu,xe));function mt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ft(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Zu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ju=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=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Qu(){const e=l.getCurrentInstance();return new Ju(e.proxy)}function Lr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=mt(e,t),r=mt(e,o);if(n!==r)return!1;const a=ft(e,t),s=ft(e,o);return a===s}function ec(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=mt(e,s)===a;else if(o==="item")i=Lr(e,s,a);else{let u=ft(e,s);u==null&&(u=mt(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function tc(e){return{text:e,value:e}}function nc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const co={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 lc(e,t,o){return{inheritAttrs:!0,props:{...be,...ke,...co},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=(R,A,V,k=!0)=>{const p=ec(n,R,A,V);if(p===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(i("update:modelValue",[]),i("change",[]));return}let q=!0;if(p.length!==d.value.length)q=!1;else for(let M=0;M<p.length;M++){const D=p[M],O=d.value[M];if(!Lr(n,D,O)){q=!1;break}}if(!q){d.value=p;let M=[],D=[];p.forEach(H=>{M.push(ft(n,H)),n.valueType==="text"?D.push(mt(n,H)):n.valueType==="item"?D.push(H):D.push(ft(n,H))}),u.value=M;const O=l.toRaw(D);k&&(i("update:modelValue",O),i("change",O))}},c=l.ref([]),x=Oe(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,R=>se(R)),N=Qu(),m=async(R,A)=>{if(R){const V=await N.load("checkbox",R,A);if(V.length>0)if(typeof V[0]=="string"){let q=V.map(M=>tc(M));c.value=q}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([R,A])=>{m(R,A)},{immediate:!x.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([R,A])=>{f(A,n.valueType,R,!1),i("setValue",A)});const T=e,b=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),$=R=>{f(R,"value",c.value,!0)};let B=he(n,"hintText"),L=he(n,"hintVisible");const F=(R,A)=>{const V=[];return R.forEach((k,p)=>{const q=ft(n,k),M=mt(n,k);let D=Zu(n,k);a.value===!0&&(D=a.value),s.value===!0&&(D=s.value);const O=nc(n,k,p)??{},H=`${q}_${p}`,Y={...O,key:H,class:n.itemClass,label:q,size:n.size,border:se(n.border)};D&&(Y.disabled=D),n.itemType==="button"?V.push(l.h(y.ElCheckboxButton,Y,{default:()=>[M]})):typeof A=="function"?V.push(l.h(y.ElCheckbox,Y,{default:()=>A(k)})):V.push(l.h(y.ElCheckbox,Y,{default:()=>[M]}))}),V};return()=>{const A={...He(r.attrs),class:b.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ye(n.max),min:ye(n.min),onChange:$},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>F(c.value,r.slots.text);const p=l.h(y.ElCheckboxGroup,A,k);V.push(p);const q={default:()=>V};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const D={...Ne(n,co),hintText:B.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return x.value&&(D["appear-listen"]=!0,D.onAppear=g),l.h(o,D,q)}}}}const{componentName:oc,create:rc,scope:ac}=ie("checkbox-item"),dl=rc(lc(oc,ac,xe)),fo={modelValue:{type:[Number,String],required:!1}};function ic(e,t,o){return{props:{...be,...ke,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",h=>ye(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let x=he(n,"hintText"),N=l.ref(!1);const m=l.ref();return Se({}),()=>{const g={...He(r.attrs),ref:m,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},T={},b=[],$=l.h(y.ElRate,g,T);b.push($);const B={default:()=>b};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const F={...Ne(n,fo),hintText:x.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,F,B)}}}}const{componentName:sc,create:uc,scope:cc}=ie("rate-item"),hl=uc(ic(sc,cc,xe)),ho={modelValue:{type:[Boolean,String,Number],required:!1}};function fc(e,t,o){return{props:{...be,...ke,...ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=we({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=he(n,"modelValue",null,i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let x=he(n,"hintText"),N=he(n,"hintVisible");const m=l.ref();return Se({}),()=>{const g={...He(r.attrs),ref:m,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},T={},b=[],$=l.h(y.ElSwitch,g,T);b.push($);const B={default:()=>b};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const F={...Ne(n,ho),hintText:x.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,F,B)}}}}const{componentName:dc,create:hc,scope:mc}=ie("switch-item"),ml=hc(fc(dc,mc,xe)),mo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function gc(e,t,o){return{props:{...be,...ke,...mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=we({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=he(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),x=L=>{u("update:modelValue",L),u("change",L)};let N=he(n,"hintText"),m=l.ref(!1);const h=L=>{let R=L.target.value;i.value=!0,me(N.value)||(m.value=!0),u("focus",R,L)},g=L=>{setTimeout(()=>{m.value&&(m.value=!1),i.value=!1},0);let R=L.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),b.value||u("blur",R,L)},T=()=>{u("clear","")},b=l.ref(!1),$=L=>{b.value=L,u("visible-change",L),L||u("selected")},B=l.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const F={...He(r.attrs),ref:B,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":x,onClear:T,onFocus:h,onBlur:g,onVisibleChange:$},R={};r.slots.option&&(R.default=r.slots.option);const A=[],V=l.h(y.ElTreeSelect,F,R);A.push(V);const k={default:()=>A};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const q={...Ne(n,mo),hintText:N.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,k)}}}}const{componentName:pc,create:vc,scope:yc}=ie("tree-select-item"),gl=vc(gc(pc,yc,xe)),bc={},xc={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"},wc=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),Sc=[wc];function Tc(e,t){return l.openBlock(),l.createElementBlock("svg",xc,Sc)}const $c=Me(bc,[["render",Tc]]),{componentName:zh,create:Cc,scope:Hh}=ie("group-setting"),Nc={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:"到底部"}},kc=Cc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:$c,Download:Ce.Download,RefreshLeft:Ce.RefreshLeft},props:{...Nc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=Rr(),i=I=>I.length>1,u=()=>{const I=[],w=[...a.value];a.value=w.map((C,v)=>(C.visible!==!1&&I.push(C.prop),{...C,sortIndex:v})),a.value.length===I.length?h.value=!0:I.length>0&&(g.value=!0),$.value=I},d=I=>{let w=null;if(typeof I=="string")w=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const C=I.$el??I;typeof C.querySelectorAll=="function"&&(w=C.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const E=[];return w.forEach(C=>{const v=C.querySelector(".label--string");let W="";v&&(W=v.textContent??"");const _=C.getAttribute("prop")??"",P=window.getComputedStyle(C,null).getPropertyValue("display");E.push({label:W,prop:_,sortIndex:0,visible:P!=="none"})}),E},f=()=>{if(!r){const I=d(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},c=async(I=!1)=>{const w=await s.load(e.groupProp),E=C=>{if(!C||!r)return;const v=r.map(W=>({...W}));Array.isArray(w)&&w.forEach(W=>{v.some(_=>{if(_.prop===W.prop){const j=_.label;return Object.assign(_,W),_.label=j,!0}return!1})}),a.value=v.sort((W,_)=>W.sortIndex-_.sortIndex),u(),I&&N(!1)};r?E(!0):Xt(f,e.initDelay,5,50,!1,E)},x=()=>{const I=r??[];a.value=I.map(w=>({...w})),u(),N()},N=(I=!0)=>{I&&s.save(e.groupProp,a.value);const w=a.value.map(E=>({...E}));t("change",w)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=I=>{const w=[];a.value.forEach(C=>{I&&w.push(C.prop),C.visible=I}),h.value=!1,g.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(g.value=!0),$.value=w,N()},b=()=>{x()},$=l.ref([]),B=I=>{a.value.forEach(E=>{const C=I.indexOf(E.prop)!==-1;E.visible=C}),h.value=!1,g.value=!1;const w=a.value.length;I.length===w?h.value=!0:I.length>0&&(g.value=!0),N()},L=()=>{c()};l.onMounted(()=>{c(!0)});const F={currentRow:null,index:null},R=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,R(I)):null:null,A=I=>{const w=I.currentTarget;w&&w.dataset&&(F.index=w.dataset.index)},V=I=>{F.currentRow&&(F.currentRow.classList.remove("is-dragover"),F.currentRow=null),F.index=null},k=I=>{const w=I.currentTarget;I.relatedTarget;const E=R(w);E&&(I.preventDefault(),F.currentRow&&F.currentRow!==E&&F.currentRow.classList.remove("is-dragover"),E.classList.add("is-dragover"),F.currentRow=E)},p=I=>{I.preventDefault(),F.currentRow&&(F.currentRow.classList.remove("is-dragover"),F.currentRow=null)},q=I=>{const w=I.currentTarget,E=R(w);if(!E)return;I.preventDefault();const C=Number(F.index),v=Number(E.dataset.index);if(C!==v){if(C<v){const W=a.value[C];a.value.splice(C,1),a.value.splice(v,0,W)}else{const W=a.value[C];a.value.splice(C,1),a.value.splice(v+1,0,W)}u(),N()}},M=I=>{const w=a.value[I];a.value.splice(I,1),a.value.splice(0,0,w),u(),N()},D=I=>{const w=a.value[I];a.value.splice(I,1),a.value.push(w),u(),N()};n({refresh:()=>{r=null,c(!1)}});const O=new Map;let H=null;function Y(I){const w=document.createRange();return w.setStart(I,0),w.setEnd(I,I.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:b,checkedValue:$,handleCheckChange:B,onShow:L,onDragStart:A,onDragEnd:V,onDragOver:k,onDragLeave:p,onDrop:q,checkboxLabelStyle:m,toTop:M,toBottom:D,onMouseOverForOverflowText:(I,w,E)=>{const C=I.currentTarget;if(C){const v=Math.floor(C.offsetWidth);if(Math.floor(Y(C))>v){let _=O.get(w);if(_){if(_===H)return;Ve.hide(_)}_=Ve.show(C,E,{type:"text",placement:"top",closeOnClick:!1}),O.set(w,_),H=_}}},onMouseLeaveForOverflowText:(I,w)=>{const E=O.get(w);E&&(Ve.hide(E),E===H&&(H=null))},onMouseOverForTip:(I,w)=>{const E=I.currentTarget;E&&(H&&Ve.hide(H),H=Ve.show(E,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{H&&(Ve.hide(H),H=null)}}}}),Ec={class:"fox-group-setting"},Ic={class:"fox-group-setting__header"},Vc={class:"fox-group-setting__body"},Oc={class:"fox-group-setting__body-list","data-role":"container"},Pc=["data-index","draggable"],Dc=["onMouseover","onMouseleave"],Fc={class:"tools-item"};function Rc(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"),x=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(x,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",Ec,[l.createElementVNode("div",Ic,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),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",Vc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Oc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,N=>(l.openBlock(),l.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),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.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:N.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,N.prop,N.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,N.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(N.label),45,Dc)]),_:2},1032,["label"]),l.createElementVNode("div",Fc,[l.createVNode(f,{onClick:m=>e.toTop(N.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Pc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pl=Me(kc,[["render",Rc]]),Ac=["aria-labelledby"],Lc=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),Mc=[Lc],Bc=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"},Mc,14,Ac))}}),_c=["aria-labelledby"],qc=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),jc=[qc],vl=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"},jc,14,_c))}}),zc=["aria-labelledby"],Hc=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),Kc=[Hc],Wc=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"},Kc,14,zc))}}),Yc=["aria-labelledby"],Gc=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),Uc=[Gc],Xc=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"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=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),Qc=[Jc],ef=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"},Qc,14,Zc))}}),tf={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}},go=(e,t)=>t[e.textKey],bt=(e,t)=>t[e.valueKey],nf=(e,t)=>t[e.visibleKey],po=(e,t)=>t[e.disabledKey],lf=(e,t)=>{const o=t[e.doitKey];return se(o)},of=(e,t)=>{const o=t[e.numKey];return o==null?null:ye(t[o])},vo=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function rf(e,t,o,n=!1){return{props:{...tf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{c.value!==I&&(c.value=I,Y(!1))});const x=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),m=l.ref(),h=l.ref(!1),g=()=>{const I=!h.value;T(I)},T=I=>{const w=I;w?(h.value=w,setTimeout(()=>{x.value["fox-tabs-bar__popup--show"]=!0,x.value["fox-tabs-bar__popup--hide"]=!1},0)):(x.value["fox-tabs-bar__popup--show"]=!1,x.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),B=(I,w)=>{$.value[w]=I},L=I=>w=>{B(w,I)},F=(I,w)=>{const E=b.value,C=$.value;if(!E||!C||!C[I])return;const v=C[I];let W=0;r.direction==="vertical"?W=v.offsetTop-(E.offsetHeight-v.offsetHeight)/2:W=v.offsetLeft-(E.offsetWidth-v.offsetWidth)/2,R(E,W,w?0:.3,r.direction)},R=(I,w,E,C)=>{let v=0;const W=C==="horizontal"?I.scrollLeft:I.scrollTop,_=E===0?1:Math.round(E*1e3/16);function j(){C==="horizontal"?I.scrollLeft+=(w-W)/_:I.scrollTop+=(w-W)/_,++v<_&&qn(j)}j()},A=(I,w)=>{const E=bt(r,I),C={};return C[`${e}__titles-item`]=!0,C.disabled=po(r,I),C.active=E===c.value,r.shape&&(C[`${r.shape}`]=!0),r.ellipsis&&(C.ellipsis=!0),w&&(w.class&&(C[`${w.class}`]=!0),w.disabled===!0&&(C.disabled=w.disabled)),C},V=(I,w)=>{const E={};if(f.value>0){const C=Math.abs(f.value/2);r.direction==="vertical"?(E["margin-top"]=`${C}px`,E["margin-bottom"]=`${C}px`):(E["margin-left"]=`${C}px`,E["margin-right"]=`${C}px`)}return w&&w.style&&Object.assign(E,w.style),E},k=(I,w)=>`${bt(r,I)??w}`,p=(I,w)=>{const E=bt(r,I),C={};C[`${e}__popup-item`]=!0,C.disabled=po(r,I),C.active=E===c.value,r.shape&&(C[`${r.shape}`]=!0);const v=vo(r,I,w);return v&&v.disabled===!0&&(C.disabled=v.disabled),C},q=l.computed(()=>(r.data??[]).filter(w=>nf(r,w)!==!1)),M=(I,w)=>{const E=bt(r,I);if(c.value==E)return;const C=()=>{c.value=E,r.scroll&&F(w,!1),s("update:modelValue",E),s("change",I,w)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(I,w);jo(v)?v.then(W=>{W!==!1&&C()}).catch(()=>{C()}):v!==!1&&C()}else C()},D=(I,w)=>function(){M(I,w)},O=(I,w)=>{M(I,w),T(!1)},H=(I,w)=>function(){O(I,w)},Y=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(E=>bt(r,E)===c.value);w!==-1&&F(w,I)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const G=(I,w)=>{if(a.item)return a.item({item:I,index:w});const E=vo(r,I,w),C=[];if(a.text){const j=a.text({item:I,index:w});C.push(j)}else{const j=[];if(E?.doit===!0||lf(r,I)){const Z={class:[`${e}__titles-item-tip`,"doit"]},ee=l.h("view",Z);j.push(ee)}const P=E?.num??of(r,I);if(P){let Z="";const ee=ye(P);ee>=100?Z="99+":Z=`${ee}`;const S={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",S,[Z]);j.push(K)}const U={class:`${e}__titles-item-text`};j.push(go(r,I));const z=l.h("view",U,j);C.push(z)}const v={class:`${e}__titles-item-line`},W=l.h("view",v);C.push(W);const _={ref:L(w),class:A(I,E),style:V(I,E),key:k(I,w),onClick:D(I,w)};return l.h("view",_,C)},X=()=>{const I=a.default?a.default():[];if(I.length===0)for(let E=0;E<q.value.length;E++){const C=q.value[E],v=G(C,E);I.push(v)}const w={ref:b,class:u.value,style:d.value};return l.h("view",w,I)},Q=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const w={class:`${e}__navigation`,onClick:g};return l.h("view",w,[I])},ne=()=>{const I=[];for(let E=0;E<q.value.length;E++){const C=q.value[E];let v=null;a.popupItem?v=a.popupItem({item:C,index:E}):v=go(r,C);const W={class:p(C,E),key:k(C,E),onClick:H(C,E)},_=l.h("view",W,[v]);I.push(_)}const w={class:x.value,style:N.value};return l.h("view",w,I)};return()=>{const I=[],w=X();if(I.push(w),r.showQuickNavigation){const C=Q();I.push(C);const v=ne();I.push(v)}const E={class:i.value};return l.h("view",E,I)}}}}const{create:af,componentName:sf,scope:uf}=ie("tabs-bar"),yl=af(rf(sf,uf,Bc,!1)),Mr=Symbol("TabsStatesKey"),cf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function ff(e,t,o=!1){return{props:{...cf},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 g={name:h};i.current.value===h&&(g.loaded=!0),s.value.push(g),l.triggerRef(s)},remove:h=>{const g=s.value.findIndex(T=>T.name===h);g!==-1&&s.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=s.value.findIndex(T=>T.name===h);return g!==-1?i.current.value?s.value[g].loaded??!1:g===0:!1}};l.provide(Mr,i);const u=h=>{const g=s.value.findIndex(T=>T.name===h);g!==-1&&(s.value[g].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==g&&(i.direction.value=g)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let x=!0;const N=l.computed(()=>{const h={},g=s.value.length;if(g<=0)return h;const T=s.value.findIndex(b=>b.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${g*i.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${g*i.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*i.tabWidth.value}px, 0)`)),x&&(x=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const g=Qt(d.value);i.tabWidth.value=g.width,i.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(d.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},g=l.h("view",h,[a?.default?.()]),T={class:c.value,ref:d};return l.h("view",T,[g])}}}}const{create:df,componentName:hf,scope:mf}=ie("tabs-container"),bl=df(ff(hf,mf,!1)),gf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function pf(e,t,o){return{props:{...gf},setup(n,{emit:r,slots:a}){const s=l.inject(Mr);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?se(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`},x=n.emptyIcon??o,N=l.h(x,c),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",m,[h]),T={class:`${e}__empty`},b=l.h("view",T,[N,g]);d.push(b)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:vf,componentName:yf,scope:bf}=ie("tabs-pane"),xl=vf(pf(yf,bf,vl)),xf={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 wf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yo(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function bo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Sf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Sn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function xo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function wo(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Tn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Tf{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=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function $f(){const e=l.getCurrentInstance();return new Tf(e.proxy)}function Cf(e,t,o,n){return{props:{...xf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=$f(),d=l.ref([]),f=l.computed(()=>d.value.filter(w=>Sf(r,w)!==!1)),c=l.ref(-1),x=()=>{const w=r.modelValue,E=f.value.findIndex(C=>yo(r,C)===w);c.value!==E&&(c.value=E,r.scroll&&ne(E,!1))};l.watch([()=>r.modelValue,f],()=>{x()});const N=w=>c.value===w,m=w=>{if(w<0&&w>=f.value.length)return!1;const E=f.value[w],v=(Tn(r,E,w)??{}).status??Sn(r,E);return N(w)||v},h=l.computed(()=>{const w={[i]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),g=l.computed(()=>({})),T=(w,E,C,v,W)=>{const _={[`${i}__step`]:!0};return W&&(_[`${W}`]=!0),_[`${b.value}`]=!0,v&&(_["is-doit"]=!0),w===c.value?_["is-active"]=!0:E==="done"?_["is-done"]=!0:E==="error"?_["is-error"]=!0:E==="half"?_["is-half"]=!0:C?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),$=(w,E={})=>{const C={...E};return b.value==="start"&&w===f.value.length-1?C.flex="0 0 auto":r.step?r.direction==="vertical"?C.height=r.step:C.width=r.step:C.flex="1 1 100%",C},B=(w,E)=>{let C={};if(E<f.value.length-1){const v=E+1;m(E)&&m(v)?r.direction==="vertical"?C.height="100%":C.width="100%":C.opacity="0"}return C},L=w=>f.value.length-1===w,F=(w,E)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&E>c.value||c.value===E)return;const C=c.value,v=E;c.value=E,r.scroll&&ne(E,!1);const W=yo(r,w);s("update:modelValue",W);const _={fromIndex:C,currentIndex:v,item:w,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",W,_)},R=l.ref(!0),A=async(w,E)=>{try{const C=await u.load("stesbar",w,E);Array.isArray(C)&&(d.value=C),R.value=!1}catch(C){console.error("[FoxUI] Load StepsBar Data Fail",C),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,E])=>{w&&A(w,E)},{immediate:!0});const V=(w,E,C,v,W)=>{let _=null;if(a.icon)_=a.icon({item:w,index:E,status:v});else if(v==="done"){const P={};r.iconSize&&(P.width=r.iconSize,P.height=r.iconSize);const U=r.icon??o;_=l.h(U,P)}else{const P=C??`${E+1}`;_=l.h("span",{},[P])}const j={class:"fox-steps-bar__icon",onClick:()=>{W||F(w,E)}};return l.h("view",j,[_])},k=(w,E,C)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:B(w,E)});return l.h("view",{class:"fox-steps-bar__line"},[v])},p=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const C={};r.iconSize&&(C.width=r.markIconSize,C.height=r.markIconSize);const v=r.markIcon??n;w=l.h(v,C)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},q=(w,E,C,v,W)=>{const _=[];if(!L(E)){const U=k(w,E);_.push(U)}const j=V(w,E,C,v,W);_.push(j);const P={class:"fox-steps-bar__head"};return l.h("view",P,_)},M=(w,E,C,v)=>{let W=null;a.main?W=a.main({item:w,index:E,status:C}):W=wf(r,w);const _={class:"fox-steps-bar__main",onClick:()=>{v||F(w,E)}};return l.h("view",_,[W])},D=(w,E,C)=>{let v=null;if(a.sub){v=a.sub({item:w,index:E,status:C});const W={class:"fox-steps-bar__sub"};return l.h("view",W,[v])}return null},O=(w,E)=>{const C=Tn(r,w,E)??{},v=C.status??Sn(r,w);let W=bo(r,w);C.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const _=C.label??wo(r,w),j=[],P=V(w,E,_,v,W);P&&j.push(P);const U=M(w,E,v,W);if(U&&j.push(U),!L(E)){const te=k(w,E);te&&j.push(te)}const z=l.h("view",{class:"fox-steps-bar__head"},j),Z=C.class,ee=C.style??{};let S=xo(r,w);C.doit===!0&&(S=!0);const K={ref:Q(E),class:T(E,v,W,S,Z),style:$(E,ee)};return l.h("view",K,[z])},H=(w,E)=>{const C=Tn(r,w,E)??{},v=C.status??Sn(r,w);let W=bo(r,w);C.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const _=C.label??wo(r,w),j=[],P=r.layout;for(let S of P)if(S==="head"){const K=q(w,E,_,v,W);j.push(K)}else if(S==="main"){const K=M(w,E,v,W);j.push(K)}else if(S==="sub"){const K=D(w,E,v);j.push(K)}else if(S==="mark"){const K=p();j.push(K)}const U=C.class,z=C.style??{};let Z=xo(r,w);C.doit===!0&&(Z=!0);const ee={ref:Q(E),class:T(E,v,W,Z,U),style:$(E,z)};return l.h("view",ee,j)},Y=l.ref(),G=l.ref([]),X=(w,E)=>{G.value[E]=w},Q=w=>E=>{X(E,w)},ne=(w,E)=>{const C=Y.value,v=G.value;if(!C||!v||!v[w])return;const W=v[w];let _=0;r.direction==="vertical"?_=W.offsetTop-(C.offsetHeight-W.offsetHeight)/2:_=W.offsetLeft-(C.offsetWidth-W.offsetWidth)/2,I(C,_,E?0:.3,r.direction)},I=(w,E,C,v)=>{let W=0;const _=v==="horizontal"?w.scrollLeft:w.scrollTop,j=C===0?1:Math.round(C*1e3/16);function P(){v==="horizontal"?w.scrollLeft+=(E-_)/j:w.scrollTop+=(E-_)/j,++W<j&&qn(P)}P()};return()=>{const w=[];if(r.mode==="simple")for(let C=0;C<f.value.length;C++){const v=f.value[C],W=O(v,C);w.push(W)}else for(let C=0;C<f.value.length;C++){const v=f.value[C],W=H(v,C);w.push(W)}const E={ref:Y,class:h.value,style:g.value};return l.h("view",E,w)}}}}const{componentName:Nf,create:kf,scope:Ef}=ie("steps-bar"),wl=kf(Cf(Nf,Ef,Xc,ef)),If=Symbol.for("InnerPageScopeKey"),Vf=Symbol.for("PageWrapperKey");function Of(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(If,!0);const r={};l.provide(Vf,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(y.ElDialog,d,f)}}}}const{componentName:Kh,create:Pf,scope:Wh}=ie("dialog-item"),Sl=Pf(Of());let xt=0;const So="fox-overflow-hidden",To=()=>at?document.body:{classList:[]},Df=e=>[()=>{if(e())try{!xt&&To().classList.add(So),xt++}catch{}},()=>{if(e()&&xt)try{xt--,!xt&&To().classList.remove(So)}catch{}}],Ff={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:Rf,create:Af}=ie("overlay"),Lf=Af({props:{...Ff},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Df(()=>e.lockScroll),r=l.computed(()=>({[Rf]:!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 Mf(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 un=Me(Lf,[["render",Mf]]),Bf={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:{}}},Br=2e3;let $o=Br;const _f=(e,t)=>({components:t,props:{...Bf},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!==Br&&($o=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++$o,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)},x=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},m=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:x,onOpened:N,onClosed:m}}}),{componentName:qf,create:jf}=ie("popup"),zf=jf(_f(qf,{FoxOverLay:un,Close:Wc}));function Hf(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 Tl=Me(zf,[["render",Hf]]),{create:Kf}=ie("toast"),Wf=Kf({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,N=>{N&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=de(e.iconSize);return l.h(e.icon,{width:N,height:N,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()}}}}),Yf={key:1,class:"fox-toast-title"},Gf=["innerHTML"];function Uf(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",Yf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Gf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const $l=Me(Wf,[["render",Uf]]),Xf={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"}},Zf=(e,t,o)=>({props:{...Xf},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}=ur(),{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 p=V.target.value;n.maxLength&&p.length>Number(n.maxLength)&&(p=p.slice(0,Number(n.maxLength))),a("update:modelValue",p,V),a("change",p,V)},x=l.ref({}),N=V=>{let p=V.target.value;u.active=!0,x.value=n.focusStyle,a("focus",p,V)},m=V=>{setTimeout(()=>{u.active=!1},0);let p=V.target.value;n.maxLength&&p.length>Number(n.maxLength)&&(p=p.slice(0,Number(n.maxLength))),x.value={},a("blur",p,V)},h=V=>{a("update:modelValue","",V),a("change","",V),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),T=l.computed(()=>{const V={};return g.value||(V.display="none"),V}),b=()=>{a("search",n.modelValue)},$=V=>{a("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&b()},B=V=>{a("click-input",V)},L=V=>{a("click-left-icon",n.modelValue,V)},F=l.computed(()=>({textAlign:n.inputAlign})),R=l.ref(null);l.onMounted(()=>{n.autofocus&&R.value.focus()});const A=()=>{const V=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},O=l.h("view",D,[r.leftin()]);V.push(O)}const k={ref:R,class:[`${e}__input-inner`],style:F.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:B,onInput:c,onFocus:N,onBlur:m,onkeyup:$},p=l.h("input",k);V.push(p);const q=[];if(n.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},O=r?.clear?.()??n.clearIcon??o,H=l.h("view",D,[l.h(O)]);q.push(H)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},O=l.h("view",D,[r.rightin()]);q.push(O)}if(q.length>0){const D={class:`${e}__input-inner-right`},O=l.h("view",D,q);V.push(O)}const M={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...x.value}};return l.h("view",M,V)};return()=>{const V=[];if(n.label){const q={class:`${e}__search-label`},M=l.h("span",q,[n.label]);V.push(M)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},M=l.h("view",q,[r.leftout()]);V.push(M)}const k=A();if(V.push(k),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},M=l.h("view",q,[r.rightout()]);V.push(M)}const p={class:`${e}`,style:d.value};return l.h("view",p,V)}}}),{componentName:Jf,create:Qf,scope:ed}=ie("searchbar"),Cl=Qf(Zf(Jf,ed,Ce.CircleClose)),td=/scroll|auto|overlay/i,_r=window;function nd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ld(e,t=_r){let o=e;for(;o&&o!==t&&nd(o);){const{overflowY:n}=window.getComputedStyle(o);if(td.test(n))return o;o=o.parentNode}return t}function qr(e,t=_r){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ld(e.value,t))}),o}const jr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,od={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 rd(e,t,o){return{props:{...od},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=qr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),x=b=>b?b.offsetTop+x(b.offsetParent):0,N=()=>{let b=0,$=0,B="down";if(d.value==window){const L=jr();u.value&&(b=x(u.value)+u.value.offsetHeight-L-window.innerHeight),$=L}else{const{scrollHeight:L,clientHeight:F,scrollTop:R}=d.value;b=L-F-R,$=R}return f.beforeScrollTop>$?B="up":B="down",f.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&B=="down"},m=()=>{Ao(()=>{if(!N()||!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",m,n.useCapture)},g=()=>{d.value&&d.value.removeEventListener("scroll",m,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&m()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>n.modelValue,b=>{b||(f.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),B=[];if(f.isInfiniting){let A=a?.loading?.()??null;if(!A){let p=a?.loadingIcon?.()??null;if(!p){const D={class:["fox-infinite__bottom-box__img"]};p=l.h(o,D)}const q={class:"fox-infinite__bottom-box__text"},M=l.h("view",q,[i.loadText.value]);A=[p,M]}const V={class:"fox-infinite__bottom-box"},k=l.h("view",V,A);B.push(k)}else if(!n.hasMore){let A=a?.finished?.()??null;if(!A){const V={class:"fox-infinite__bottom-tips"};A=l.h("view",V,[i.loadMoreText.value]),B.push(A)}}const L={class:"fox-infinite__bottom"},F=l.h("view",L,B),R={class:c.value,ref:u};return l.h("view",R,[$,F])}}}}const{componentName:ad,create:id,scope:sd}=ie("infinite-loading"),Nl=id(rd(ad,sd,vl)),Co=10;function zr(e,t){return e>t&&e>Co?"horizontal":t>e&&t>Co?"vertical":""}function kl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function El(){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=zr(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 ud(){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",x=()=>f.value==="horizontal",N=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:g=>{if(g.touches){const $=g.touches[0];s.value=$.clientX-e.value,i.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=g;s.value=b.clientX-e.value,i.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=zr(u.value,d.value))},start:g=>{if(N(),g.touches){const $=g.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=g;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:N,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:x}}const cd={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}},fd=(e,t,o)=>({props:{...cd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=El(),d=l.ref(),f=qr(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),x=l.computed(()=>({[e]:!0})),N=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""}}),m=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const R={};return n.headHeight!=50&&(R.height=$e(n.headHeight)),R}),g=R=>{const A=+(n.pullDistance||n.headHeight);let V=R;return R>A&&(R<A*2?V=(R+A)/2:V=A+R/4),Math.round(V)},T=(R,A)=>{const V=+(n.pullDistance||n.headHeight);c.distance=R,A?c.status="loading":R===0?c.status="normal":R<V?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:R})},b=()=>c.status!=="loading"&&c.status!=="complete",$=()=>f.value==window?jr()==0:f.value&&f.value.scrollTop==0,B=R=>{b()&&($()?(u.start(R),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},L=R=>{b()&&c.moving&&(u.move(R),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(R.cancelable&&R.preventDefault(),T(g(u.state.deltaY))))},F=()=>{c.moving=!1,c.isPullRefresh&&b()&&u.state.deltaY&&(c.status==="loosing"?(T(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,R=>{R?T(+n.headHeight,!0):T(0)}),()=>{const R=[];let A=null;if(c.status==="loading"){if(A=a?.loading?.()??null,!A){const H={class:["fox-pull-refresh-container-topbox-icon"]};A=l.h(o,H)}}else c.status==="pulling"?A=a?.pulling?.()??null:c.status==="loosing"&&(A=a?.loosing?.()??null);A&&R.push(A);const V={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",V,[N.value]);R.push(k);const p={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",p,R),M={class:"fox-pull-refresh-container",style:m.value},D=l.h("div",M,[q,a?.default?.()]),O={ref:d,class:x.value};return kl()?Object.assign(O,{onTouchstart:B,onTouchmove:L,onTouchend:F}):Object.assign(O,{onMousedown:B,onMousemove:L,onMouseup:F}),l.h("div",O,[D])}}}),{componentName:dd,create:hd,scope:md}=ie("pull-refresh"),Il=hd(fd(dd,md,vl));function gd(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},x=n.default?n.default():[],N=l.h("div",c,x),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[f,N]):l.h("div",m,[N,f])}}}}const{componentName:pd,create:vd,scope:Yh}=ie("indicator"),Vl=vd(gd(pd));function yd(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 bd={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 xd(e,t,o,n=!1){return{props:{...bd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},B=r.textColor??r.color;return B&&($.color=B),$}),d=($,B)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const F=r.highlightFilter;if($.indexOf(F)!==-1){const A=$.replace(new RegExp(F,"g"),`<span>${F}</span>`);B.innerHTML=A,B.class["is-highlight"]=!0,L=l.h(r.tag,B)}}else if(typeof r.highlightFilter=="function"){const F=r.highlightFilter($);F&&(B.innerHTML=F,B.class["is-highlight"]=!0,L=l.h(r.tag,B))}return L},f=$=>{a.emit("click",$)};let c="";const x=()=>{const $=s.value;if(!$)return;const B=$.clientWidth;yd($,L=>{const F=$.innerHTML??"";me(F)||L<B||(c?o?.show($,F,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show($,F,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&o?.hide(c)};let m=null;const h=$=>{m||(m=setTimeout(()=>{x(),m=null},r.showAfter??0))},g=$=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{N()},r.hideAfter??0)},T=()=>{const $=s.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",g))},b=()=>{const $=s.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||b()}),()=>{const $={onClick:f,class:i.value,style:u.value,ref:s};let B=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const V=A[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=ye(r.digits),p=ye(r.decimalLength),q=se(r.autoPadding);let M=`${A[0].children}`,D=M.split("").reverse().join("");D=Kt(D,p,q,k,r.separator),M=D.split("").reverse().join(""),r.highlightFilter!==void 0&&(B=d(M,$)),B||($.innerHTML=M,B=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const V=A[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=`${A[0].children}`;B=d(k,$),B||($.innerHTML=k,B=l.h(r.tag,$))}}}B||(B=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return B;let F=null;if(r.icon){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const p={class:A,style:V};F=l.h("view",p,l.h(r.icon))}else if(a.slots.mark){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const p={class:A,style:V};F=l.h("view",p,{default:a.slots.mark})}else{const A={[`${e}__mark`]:!0};r.type&&(A[`${e}__mark--${r.type??"default"}`]=!0);const V={},k=r.color;k&&(V["background-color"]=k);const p={class:A,style:V};F=l.h("view",p)}const R={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",R,[F,B])}}}}const{componentName:wd,create:Sd,scope:Td}=ie("text"),Ol=Sd(xd(wd,Td,Ve,!1)),$d={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:Ce.ArrowUp}};function Cd(e,t,o){return{props:{...$d},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=he(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},g=l.h("span",h,[i.value]);c.push(g)}const x={class:d.value},N=o(n.icon,x);return N&&c.push(N),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Nd,create:kd,scope:Ed}=ie("more-button"),Id=(e,t)=>(e=e??Ce.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]})),Pl=kd(Cd(Nd,Ed,Id));function Vd(e){return e===window}const Hr=e=>{const t=l.unref(e);if(Vd(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:Od,create:Pd,scope:Gh}=ie("tour"),Dd=Pd({components:{Close:Ce.Close,ElPopover:y.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=Od,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:T,height:b,left:$,top:B}=r.value,L=e.steps[n.active].offset??m,F=[$+T/2,B+b/2],R=Number(h||T),A=Number(g||b);return{width:`${R+ +L.left+L.right}px`,height:`${A+L.top+L.bottom}px`,top:`${F[1]-A/2-+L.top}px`,left:`${F[0]-R/2-+L.left}px`}}),i=m=>{m=="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=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Hr(m);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)},x=()=>{e.closeOnClickOverlay&&c()},N=(m,h=0)=>{m&&f(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return l.onMounted(()=>{N(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{N(m)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:x}}}),Fd={key:0,class:"fox-tour__content"},Rd={key:0,class:"fox-tour__content-top"},Ad={class:"fox-tour__content-inner"},Ld={class:"fox-tour__content-bottom"},Md={class:"fox-tour__content-bottom-init"},Bd={class:"fox-tour__content-bottom-operate"},_d={key:1,class:"fox-tour__content fox-tour__content-tile"},qd={class:"fox-tour__content-inner"};function jd(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",Fd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Rd,[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",Ad,l.toDisplayString(d.content),1),l.createElementVNode("div",Ld,[l.createElementVNode("div",Md,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Bd,[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",_d,[l.createElementVNode("div",qd,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Dl=Me(Dd,[["render",jd]]),Ie=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,tt=e=>e==null;class zd{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=kl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=El(),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 No(e,t){return new zd(e,t)}const ko=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let st=[];const Eo=e=>{const t=e;t.key==="Escape"&&st.forEach(o=>o(t))},Hd=e=>{l.onMounted(()=>{st.length===0&&document.addEventListener("keydown",Eo),ko&&st.push(e)}),l.onBeforeUnmount(()=>{st=st.filter(t=>t!==e),st.length===0&&ko&&document.removeEventListener("keydown",Eo)})},$n="fox-focus-trap.focus-after-trapped",Cn="fox-focus-trap.focus-after-released",Kd="fox-focus-trap.focusout-prevented",Io={cancelable:!0,bubbles:!1},Wd={cancelable:!0,bubbles:!1},Vo="foxFocusAfterTrapped",Oo="foxFocusAfterReleased",Yd=Symbol("foxFocusTrap"),Fl=l.ref(),cn=l.ref(0),Rl=l.ref(0);let Rt=0;const Kr=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},Gd=(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},Po=(e,t)=>{for(const o of e)if(!Gd(o,t))return o},Ud=e=>{const t=Kr(e),o=Po(t,e),n=Po(t.reverse(),e);return[o,n]},Xd=e=>e instanceof HTMLInputElement&&"select"in e,Ze=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Xd(e)&&t&&e.select()}};function Do(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Zd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Do(e,n),e.unshift(n)},remove:n=>{e=Do(e,n),e[0]?.resume?.()}}},Jd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ze(n,t),document.activeElement!==o)return},Fo=Zd(),Qd=()=>cn.value>Rl.value,At=()=>{Fl.value="pointer",cn.value=window.performance.now()},Ro=()=>{Fl.value="keyboard",cn.value=window.performance.now()},eh=()=>(l.onMounted(()=>{Rt===0&&(document.addEventListener("mousedown",At),document.addEventListener("touchstart",At),document.addEventListener("keydown",Ro)),Rt++}),l.onBeforeUnmount(()=>{Rt--,Rt<=0&&(document.removeEventListener("mousedown",At),document.removeEventListener("touchstart",At),document.removeEventListener("keydown",Ro))}),{focusReason:Fl,lastUserFocusTimestamp:cn,lastAutomatedFocusTimestamp:Rl}),Lt=e=>new CustomEvent(Kd,{...Wd,detail:e}),{componentName:Uh,create:th,scope:Xh}=ie("focus-trap"),nh={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"}},lh=th({props:nh,emits:[Vo,Oo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=eh();Hd(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:g,altKey:T,ctrlKey:b,metaKey:$,currentTarget:B,shiftKey:L}=h,{loop:F}=e,R=g==="Tab"&&!T&&!b&&!$,A=document.activeElement;if(R&&A){const V=B,[k,p]=Ud(V);if(k&&p){if(!L&&A===p){const M=Lt({focusReason:s.value});o("focusout-prevented",M),M.defaultPrevented||(h.preventDefault(),F&&Ze(k,!0))}else if(L&&[k,V].includes(A)){const M=Lt({focusReason:s.value});o("focusout-prevented",M),M.defaultPrevented||(h.preventDefault(),F&&Ze(p,!0))}}else if(A===V){const M=Lt({focusReason:s.value});o("focusout-prevented",M),M.defaultPrevented||h.preventDefault()}}};l.provide(Yd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",x)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",c),g.removeEventListener("focusout",x))});const d=h=>{o(Vo,h)},f=h=>o(Oo,h),c=h=>{const g=l.unref(n);if(!g)return;const T=h.target,b=h.relatedTarget,$=T&&g.contains(T);se(e.trapped)||b&&g.contains(b)||(r=b),$&&o("focusin",h),!i.paused&&se(e.trapped)&&($?a=T:Ze(a,!0))},x=h=>{const g=l.unref(n);if(!(i.paused||!g))if(!e.escape&&se(e.trapped)){const T=h.relatedTarget;!jn(T)&&!g.contains(T)&&setTimeout(()=>{if(!i.paused&&se(e.trapped)){const b=Lt({focusReason:s.value});o("focusout-prevented",b),b.defaultPrevented||Ze(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function N(){await l.nextTick();const h=l.unref(n);if(h){Fo.push(i);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const b=new Event($n,Io);h.addEventListener($n,d),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;qo($)||(Ze($),document.activeElement!==$&&($="first")),$==="first"&&Jd(Kr(h),!0),(document.activeElement===g||$==="container")&&Ze(h)})}}}function m(){const h=l.unref(n);if(h){h.removeEventListener($n,d);const g=new CustomEvent(Cn,{...Io,detail:{focusReason:s.value}});h.addEventListener(Cn,f),h.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!Qd())&&Ze(r??document.body,!0),h.removeEventListener(Cn,d),Fo.remove(i)}}return l.onMounted(()=>{se(e.trapped)&&N(),l.watch(()=>e.trapped,h=>{se(h)?N():m()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:oh,create:rh,scope:Zh}=ie("floating-window"),ah=Symbol.for("InnerPageScopeKey"),ih=Symbol.for("PageWrapperKey"),sh={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}},uh=rh({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:lh},props:{...sh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=oh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,S=>{n.value=S});const a=l.computed(()=>n.value===!1?!1:!A.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 S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=l.computed(()=>{const S={};return tt(s.value)?S.left="auto":S.left=Ie(s.value),tt(i.value)?S.top="auto":S.top=Ie(i.value),tt(u.value)?S.right="auto":S.right=Ie(u.value),tt(d.value)?S.bottom="auto":S.bottom=Ie(d.value),tt(e.zIndex)||(S["z-index"]=Ie(e.zIndex)),tt(F.value)||(S.height=F.value),tt(R.value)||(S.width=R.value),S}),x=l.computed(()=>e.closeIcon??Ce.Close),N=l.computed(()=>e.collapseIcon??Ce.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ce.ArrowRight:e.expandIcon??Ce.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),$=l.ref(),B=l.ref(null),L=l.ref(null),F=l.computed(()=>Ie(e.height)||""),R=l.computed(()=>Ie(e.width)||""),A=l.ref(se(e.collapse)),V=(S,K=!0)=>{A.value!==S&&(A.value=S,S?w():E(),t("update:collapse",S),S&&typeof q.onHide=="function"?q.onHide():!S&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,S=>{V(S)});const k=()=>{p()},p=S=>{S=S??!A.value,V(S)};l.provide(ah,!0);const q={setCollapse:V,setFixedNavVisible:S=>{Q.value=S}};l.provide(ih,q);const M=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},D=l.ref(null),O=l.computed(()=>!e.fixedNavTeleport),H=l.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),Y=l.ref(""),G=l.computed(()=>{const S={};return Y.value?S.top=Y.value:e.collapseTop&&(S.top=e.collapseTop),S}),X=l.ref(A.value),Q=l.computed({set:S=>{X.value=S},get:()=>n.value===!1?!1:X.value});let ne=null;const I=()=>{typeof ne=="function"&&(ne(),ne=null)},w=()=>{D.value&&D.value.classList.add("slide-in"),Q.value=!0,ne=()=>{D.value&&D.value.classList.remove("slide-in")}},E=()=>{D.value&&D.value.classList.add("slide-out"),ne=()=>{D.value&&D.value.classList.remove("slide-out"),Q.value=!1}},C=()=>{s.value=null,i.value=null,u.value=null,d.value=null},v={x:0,y:0},j=No(S=>{if(!$.value)return;const K=$.value;if(C(),e.origin==="left-top")s.value=K.offsetLeft,i.value=K.offsetTop,v.x=s.value,v.y=i.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;s.value=K.offsetLeft,d.value=te-(K.offsetTop+K.offsetHeight),v.x=s.value,v.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(K.offsetLeft+K.offsetWidth),d.value=le-(K.offsetTop+K.offsetHeight),v.x=u.value,v.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(K.offsetLeft+K.offsetWidth),i.value=K.offsetTop,v.x=u.value,v.y=i.value}},S=>{if(!$.value)return;const K=$.value;C(),e.origin==="left-top"?(s.value=v.x+S.x,i.value=v.y+S.y,K.style.left=Ie(s.value),K.style.top=Ie(i.value)):e.origin==="left-bottom"?(s.value=v.x+S.x,d.value=v.y-S.y,K.style.left=Ie(s.value),K.style.bottom=Ie(d.value)):e.origin==="right-bottom"?(u.value=v.x-S.x,d.value=v.y-S.y,K.style.right=Ie(u.value),K.style.bottom=Ie(d.value)):(u.value=v.x-S.x,i.value=v.y+S.y,K.style.right=Ie(u.value),K.style.top=Ie(i.value))}),P={x:0,y:0},Z=No(S=>{D.value&&(P.x=D.value.offsetLeft,P.y=D.value.offsetTop)},S=>{if(!D.value)return;const K=P.y+S.y;Y.value=`${K}px`}),ee=()=>{if($.value){const S=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=S}};return l.onMounted(()=>{if(e.draggable&&$.value){const S=[];B.value&&S.push(B.value),e.footerDraggable&&(ee(),L.value&&S.push(L.value)),j.open(S)}e.collapse===!0&&V(e.collapse,!1),D.value&&Z.open(D.value)}),l.onBeforeUnmount(()=>{e.draggable&&B.value&&j.close(),D.value&&Z.close()}),{classes:f,styles:c,isShow:a,closeIcon:x,onClose:M,dialogRef:$,headerRef:B,onClickToggle:k,collapseIcon:N,collapseText:m,collapseTextClasses:T,collapseIconClasses:b,expandIcon:h,expandText:g,isShowFixedNav:Q,fixedNavRef:D,fixedNavClasses:H,fixedNavStyles:G,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:O}}}),ch={ref:"headerRef",class:"fox-floating-window__header"},fh={class:"fox-floating-window__title"},dh={class:"fox-floating-window__tools"},hh={class:"fox-floating-window__body"},mh={class:"fox-floating-window__fixednav__text"};function gh(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",ch,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",fh,l.toDisplayString(e.title),1),l.createElementVNode("div",dh,[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",hh,[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",mh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=Me(uh,[["render",gh]]);function ph(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return ar(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Jh,create:vh,scope:Qh}=ie("domain-provider"),Ll=vh(ph()),yh={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 bh(e,t){return{inheritAttrs:!1,props:yh,setup(o,{slots:n}){if(at&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(x,N)=>{if(f===null){a.set(x,{visible:null,callback:N});return}r.has(x)&&f.unobserve(x),r.set(x,{visible:null,callback:N}),f.observe(x)},i=x=>{if(f===null){a.delete(x);return}r.has(x)&&(r.delete(x),f.unobserve(x))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const x=u>0;return u--,x},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(x,N,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const b=r.get(g.target);if(b)try{if(o.loadPolicy==="lazy"&&!T&&b.visible!==null)return;b.visible=T,b.callback(T)}catch($){console.error($)}}},{root:x,rootMargin:N,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([x,N])=>{if(N||!x||f)return;let m=null;typeof x=="string"?m=document.querySelector(x):m=x,m&&c(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:em,create:xh,scope:tm}=ie("rolling-provider"),Ml=xh(bh()),wh=[Kn,Yn,Gn,Un,Xn,xe,Zn,Jn,Ot,Qn,el,tl,nl,ll,ol,rl,al,il,sl,ul,sn,cl,fl,dl,hl,ml,gl,pl,yl,bl,xl,wl,Sl,un,Tl,$l,Cl,Nl,Il,Et,an,Vl,Ol,Pl,Dl,Al,Ll,Ml],Sh=new Oa(wh,[Fa],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>y.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>y.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>y.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>y.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>y.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>y.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>y.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>y.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>y.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>y.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>y.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>y.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>y.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>y.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>y.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>y.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>y.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload});exports.AutocompleteItem=il;exports.Broadcast=zn;exports.BroadcastKey=ve;exports.CascaderItem=al;exports.CheckboxItem=dl;exports.Content=Un;exports.DataItemsKey=it;exports.DateItem=tl;exports.DateUtils=Re;exports.DialogItem=Sl;exports.Domain=Zt;exports.DomainKey=Fe;exports.DomainProvider=Ll;exports.FloatingWindow=Al;exports.FooterBar=Gn;exports.FoxAutocompleteItem=il;exports.FoxCascaderItem=al;exports.FoxCheckboxItem=dl;exports.FoxContent=Un;exports.FoxDateItem=tl;exports.FoxDialogItem=Sl;exports.FoxDomainProvider=Ll;exports.FoxFloatingWindow=Al;exports.FoxFooterBar=Gn;exports.FoxGroup=Xn;exports.FoxGroupSetting=pl;exports.FoxHeaderBar=Yn;exports.FoxHintText=Ot;exports.FoxIndicator=Vl;exports.FoxInfiniteLoading=Nl;exports.FoxInputItem=Qn;exports.FoxInputNumberItem=rl;exports.FoxItem=xe;exports.FoxMapping=Et;exports.FoxMoneyItem=ol;exports.FoxMoreButton=Pl;exports.FoxOverLay=un;exports.FoxPage=Kn;exports.FoxPopup=Tl;exports.FoxPrice=an;exports.FoxPullRefresh=Il;exports.FoxRadioItem=fl;exports.FoxRateItem=hl;exports.FoxRollingProvider=Ml;exports.FoxRowItem=Jn;exports.FoxSearchBar=Cl;exports.FoxSelectItem=el;exports.FoxSlotItem=Zn;exports.FoxStepsBar=wl;exports.FoxSwitchItem=ml;exports.FoxTableItem=cl;exports.FoxTableMappingColumn=sl;exports.FoxTableRadioColumn=ul;exports.FoxTableSetting=sn;exports.FoxTabsBar=yl;exports.FoxTabsContainer=bl;exports.FoxTabsPane=xl;exports.FoxText=Ol;exports.FoxTimeItem=nl;exports.FoxTimeSelectItem=ll;exports.FoxToast=$l;exports.FoxTour=Dl;exports.FoxTreeSelectItem=gl;exports.Group=Xn;exports.GroupSetting=pl;exports.HeaderBar=Yn;exports.HintText=Ot;exports.Indicator=Vl;exports.InfiniteLoading=Nl;exports.InputItem=Qn;exports.InputNumberItem=rl;exports.Item=xe;exports.Mapping=Et;exports.MoneyItem=ol;exports.MoreButton=Pl;exports.OverLay=un;exports.Page=Kn;exports.Popup=Tl;exports.Price=an;exports.PriorityPolicy=Ae;exports.PullRefresh=Il;exports.RadioItem=fl;exports.RateItem=hl;exports.RollingProvider=Ml;exports.RowItem=Jn;exports.SearchBar=Cl;exports.SelectItem=el;exports.SlotItem=Zn;exports.StepsBar=wl;exports.SwitchItem=ml;exports.TableItem=cl;exports.TableMappingColumn=sl;exports.TableRadioColumn=ul;exports.TableSetting=sn;exports.TabsBar=yl;exports.TabsContainer=bl;exports.TabsPane=xl;exports.Text=Ol;exports.TimeItem=nl;exports.TimeSelectItem=ll;exports.Toast=$l;exports.Tour=Dl;exports.TreeSelectItem=gl;exports.UniqueID=xr;exports.ValidateSchema=lr;exports.ValidateSchemaKey=_e;exports.cancelRaf=Ur;exports.clearNonNumber=ia;exports.clone=Dn;exports.compareTo=Vn;exports.createBroadcast=Gt;exports.createValidateSchema=Ut;exports.debounce=$t;exports.debounceRef=xa;exports.decimalLength=Zo;exports.default=Sh;exports.defineBroadcast=fa;exports.defineConfigDomain=ar;exports.defineDataItem=sr;exports.defineDomain=Hn;exports.defineItem=we;exports.definePageState=cr;exports.defineSimpleItem=ur;exports.deleteGlobalValidator=pa;exports.disabledProperty=De;exports.divide=_n;exports.excludeProps=Ne;exports.extend=rt;exports.floatData=ca;exports.getGlobalValidateCheckEvents=er;exports.getGlobalValidateResetEvents=nr;exports.getPageContentAreaHeight=qt;exports.getPageContentAreaWidth=jt;exports.getPageFooterAreaHeight=Nt;exports.getPageHeaderAreaHeight=Ct;exports.getRootDomain=ut;exports.hasSymbol=Ho;exports.includeProps=Jo;exports.indexOf=sa;exports.installRules=ir;exports.integerLength=Xo;exports.isArray=Zr;exports.isArrayLike=Wo;exports.isBrowser=at;exports.isDate=ea;exports.isESModule=na;exports.isEmptyString=me;exports.isEqual=We;exports.isFunction=On;exports.isHidden=Yt;exports.isInnerPage=Ta;exports.isMap=Jr;exports.isNil=jn;exports.isNumberString=Uo;exports.isObject=Ye;exports.isPlainObject=Pn;exports.isPromise=jo;exports.isRegExp=Go;exports.isSet=Qr;exports.isString=qo;exports.isSubPage=$a;exports.isSymbol=ta;exports.isTouch=kl;exports.isWindow=Ko;exports.lastIndexOf=ua;exports.makeArray=aa;exports.merge=Yo;exports.multiply=Mo;exports.negate=Bo;exports.nextTick=oa;exports.numberFormat=Kt;exports.objectToString=zo;exports.once=wa;exports.overrideGlobalValidateHandler=ma;exports.property=Oe;exports.raf=qn;exports.readonlyProperty=Pe;exports.setGlobalValidateCheckEvents=va;exports.setGlobalValidateHandler=ha;exports.setGlobalValidateMessages=ba;exports.setGlobalValidateResetEvents=ya;exports.setGlobalValidator=ga;exports.throttle=rr;exports.toBoolean=se;exports.toNumber=ye;exports.toPadding=je;exports.toPx=de;exports.toPxDesc=$e;exports.toTypeString=Wt;exports.toValue=he;exports.tryTimes=Xt;exports.typeOf=Bt;exports.unNumberFormat=_o;exports.updatePageState=Fn;exports.useBroadcast=wt;exports.useDomain=Ge;exports.useExpose=Se;exports.useInnerSize=Wn;exports.usePageState=Jt;exports.usePosition=yr;exports.useRawTouch=El;exports.useRect=Hr;exports.useSize=Qt;exports.useTouch=ud;exports.valueLength=Vt;
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon Dec 09 2024 09:24:03 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),st=require("@fox-js/validator"),v=require("element-plus"),Ee=require("@element-plus/icons-vue"),_e=require("@fox-js/i18n"),Mt=window,na=typeof window<"u";function la(){return typeof Mt<"u"?Mt.requestAnimationFrame||Mt.webkitRequestAnimationFrame||function(e){Mt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function oa(e){na?cancelAnimationFrame(e):clearTimeout(e)}const zo=la();/*!
|
|
4
|
+
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
+
*/function zt(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]=Wn(Ce(e),Ce(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Ho(e,t);return o?o==2?"-"+Ce(r):e.length<r.length?Ce(r.substring(1)):"-"+Ce(bn(r)):Ce(r)}function bn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Ho(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 Wn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Ho(e,t){[e,t]=Wn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var 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 It(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],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=It(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Wl(r[1],a,n,o)?(n?"-":"")+wn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Wl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Wl(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 wn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function Pn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Tt(e),t=Tt(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=Tt(e.replace(".","")),t=Tt(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let y=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(y+=parseInt(e[u[V]--])*parseInt(t[V]));y+=s,s=Math.floor(y/10),c=y%10+c,f--}return c=Tt(ra(c,a)),o==1&&(c="-"+c),c}function ra(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 Tt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Dn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ce(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ce(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ce(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ce(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ce(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=zt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ce(It(s,o-2))}function Fn(e,t){return e=e.toString(),t=t.toString(),t=Rn(t),zt(e,t)}function Rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Yl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Gl(e),Gl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Fn(e,Pn(t,It(Dn(e,t),0,pe.FLOOR)));return o+n}function Gl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ul(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Wn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ue{value;static RoundingModes=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=ue.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ue.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ue.getPrettyValue(this.value,t,o)}static round(t,o=0,n=pe.HALF_EVEN){if(t=ue.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return It(t,o,n)}round(t=0,o=pe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ue(It(this.value,t,o))}static floor(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,pe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,pe.FLOOR)}static ceil(t){return t=ue.validate(t),t.indexOf(".")===-1?t:ue.round(t,0,pe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ue(this.value):new ue(this.value).round(0,pe.CEILING)}static add(t,o){return t=ue.validate(t),o=ue.validate(o),zt(t,o)}add(t){return new ue(zt(this.value,t.getValue()))}static subtract(t,o){return t=ue.validate(t),o=ue.validate(o),Fn(t,o)}subtract(t){return new ue(Fn(this.value,t.getValue()))}static multiply(t,o){return t=ue.validate(t),o=ue.validate(o),Pn(t,o)}multiply(t){return new ue(Pn(this.value,t.getValue()))}static divide(t,o,n){return t=ue.validate(t),o=ue.validate(o),Dn(t,o,n)}divide(t,o){return new ue(Dn(this.value,t.getValue(),o))}static modulus(t,o){return t=ue.validate(t),o=ue.validate(o),Yl(t,o)}modulus(t){return new ue(Yl(this.value,t.getValue()))}static compareTo(t,o){return t=ue.validate(t),o=ue.validate(o),Ul(t,o)}compareTo(t){return Ul(this.value,t.getValue())}static negate(t){return t=ue.validate(t),Rn(t)}negate(){return new ue(Rn(this.value))}}function Ko(e,t){return ue.multiply(`${e}`,`${t}`)}function Yn(e,t,o=8){return ue.divide(`${e}`,`${t}`,o)}function An(e,t){return e=`${e}`,t=`${t}`,ue.compareTo(e,t)}function Wo(e){return ue.negate(e)}function Xt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",y=s.split("").reverse();for(let V=0;V<y.length;V++)d+=y[V]+((V+1)%n==0&&V+1!=y.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function Yo(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const Gn=zo,aa=Array.isArray,ia=e=>Zt(e)==="[object Map]",sa=e=>Zt(e)==="[object Set]",ua=e=>e instanceof Date,Ln=e=>typeof e=="function",Go=e=>typeof e=="string",ca=e=>typeof e=="symbol",Ze=e=>e!==null&&typeof e=="object",Uo=e=>Ze(e)&&Ln(e.then)&&Ln(e.catch),Xo=Object.prototype.toString,Zt=e=>Xo.call(e),Mn=e=>Zt(e)==="[object Object]",Zo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function fa(e){return e.__esModule||Zo&&e[Symbol.toStringTag]==="Module"}const da=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ft(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=ft(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function Bn(e,t,o=!1){if(!o)ft(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Mn(i))continue;a=Bn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=da?Promise.resolve():null;function ha(e,...t){xn!==null?t&&t.length>0?xn.then(()=>{e(t)}):xn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ie(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function we(e){return typeof e=="number"?e:Number(e)}const ma={"[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 Ht(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function Jo(e){return e&&typeof e=="object"&&"setInterval"in e}function Jt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Qo(e){let t=!!e&&"length"in e&&e.length,o=Ht(e);return o==="function"||Jo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function er(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 ga(e,t=[]){let o=t;return e!=null&&(Qo(Object(e))?er(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Ht(e),n=Ht(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Xe(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Xe(a,i))return!1}return!0}return!1}const dt=typeof window<"u";function Un(e){return e==null}function tr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nr(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 lr(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 or(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 Xl(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 pa(e,t=!0,o=!0){t?e=Xl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Xl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function va(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function ya(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function At(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rr(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(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 ba=(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},ve=Symbol.for("BroadcastKey");class Xn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):tr(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Qt(e,t,o,n){const r=new Xn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function wa(e,t,o){const n=o;if(n[ve])return n[ve];const r=l.inject(ve,null),a=new Xn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),n[ve]=void 0}),a}function Et(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const ut=e=>e.default??e;class xa{error(t,o){const n=o,r=o||l.hasInjectionContext()?Et(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()?Et(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Et(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()?Et(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let kt=new xa;function Sa(e){kt=e}function Ta(e){kt?Object.assign(kt,e):kt=e}function $a(e,t){ut(st).setValidator(e,t)}function Ca(e){ut(st).deleteValidator(e)}let ar=["blur","clear"];function Na(e){ar=e}function ir(){return ar}let sr=["focus","change","setValue"];function Ea(e){sr=e}function ur(){return sr}function ka(e){ut(st).messages(e)}function $t(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Bt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const ze=Symbol("ValidateSchemaKey");class cr{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=Bt($t(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Bt(n);const r=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=kt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ut(st).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ut(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ut(st).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=$t(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Bt(t):this.rules=Bt([t]);const n=$t(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=$t(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ut(st),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let y="error";Array.isArray(d.errors)&&d.errors.length>0&&(y=d.errors[0].message??y,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(y)}return d}).catch(d=>{const y=d.message??`${d}`;return this.error(y),d})}}return Promise.resolve({pass:!0})}}function en(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 cr(t,o,e)}const Kt=Symbol.for("EventEmitterKey");class fr{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 Vt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function dr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ia(e,t){const o=Vt((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function Va(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function tn(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Ae=Symbol("DomainKey"),ht=Symbol("DataItemsKey");class nn{_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 Oa=new nn;function gt(){return Oa}function Je(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Ae]??l.inject(Ae,null):l.inject(Ae,null)}const Sn=Symbol("OriginalDateKey");function Zn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Ae,null);i===null&&(i=gt());const s=e||t.prop||t.name;let u=new nn(s);u.parent=i;const f=V=>{a[Sn]||y(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[Sn]??null,y=V=>{const g={};ft(!0,g,l.toRaw(V)),a[Sn]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&y(t.modelValue),a[Ae]=u,l.provide(Ae,u),r!==null){const V=l.inject(ve,null),g=Qt(a,V,s,n);u.broadcast=g,a[ve]=g,l.provide(ve,g),a.broadcast=(S,b,...C)=>Reflect.apply(g.emit,g,[S,b,...C]);const h=l.inject(ze,null),m=en(a,h,{componentName:""});u.validateSchema=m,a[ze]=m,l.provide(ze,m),a[ht]=new Map,a.validate=(S=!0)=>{const b=[];let C=null;const j={deep:!1};if(S===!0)C={name:"*"};else if(Array.isArray(S)&&S.length>0){const L=S;C={name:M=>M?L.indexOf(M)!==-1:!1}}else if(S!=null&&typeof S=="object"){const L=S;if(Object.assign(j,L),Array.isArray(L.include)&&L.include.length>0){const M=L.include;C={name:O=>O?M.indexOf(O)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const M=L.exclude;C={name:O=>O?M.indexOf(O)===-1:!1}}else C={name:"*"}}if(C){const L=g?.emitToChildren(C,"validate",j);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let M=[];return L.forEach(O=>{O.pass===!1&&Array.isArray(O.errors)&&(M=[...M,...O.errors])}),M.length>0?{pass:!1,errors:M}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(S,b=!0,C=!1)=>{if(C===!0){Reflect.ownKeys(S).forEach(L=>{let M=String(L);const O={componentName:"",fieldName:M,pureDataValidate:!0};if(u){const R=gr(u,M,O,g,m);a[ht].set(M,R);const N=S[M];N&&R.validateSchema.setRule(N)}});return}if(b){const j=Reflect.ownKeys(S),L={name:M=>j.includes(M)};g?.emitToChildren(L,"setNameValidateRules",S,!1)}},a.clearValidate=(S=!0)=>{let b=null;if(S===!0)b={name:"*"};else if(Array.isArray(S)&&S.length>0){const C=S;b={name:j=>j?C.indexOf(j)!==-1:!1}}else if(S!=null&&typeof S=="object"){const C=S;if(Array.isArray(C.include)&&C.include.length>0){const j=C.include;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const j=C.exclude;b={name:L=>L?j.indexOf(L)===-1:!1}}else b={name:"*"}}b&&g?.emitToChildren(b,"clearValidate",!1)},a.resetFields=S=>{const b=c();if(!b)return;const C={};if(ft(!0,C,d()??{}),Array.isArray(S))S.forEach(j=>{b[j]=C[j]});else if(S&&Array.isArray(S.include))(S.include??[]).forEach(L=>{b[L]=C[L]});else if(S&&Array.isArray(S.exclude)){let j=S.exclude??[];Reflect.ownKeys(C).forEach(L=>{j.includes(L)||(b[L]=C[L])})}else Object.assign(b,C);a.clearValidate(S)},a.setModelValue=(S,b)=>{!b||b===s?f(S):g?.emitToChildren({name:b},"setModelValue",S)},a.getModelValue=()=>c()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[ze]=void 0,l.provide(ze,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[Ae]=void 0,l.provide(Ae,null),a[ht]&&(a[ht].clear(),a[ht]=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 hr(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Ae,null);a===null&&(a=gt());const i=e||t.prop||t.name;let s=new nn(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Ae]=s,l.provide(Ae,s),l.onUnmounted(()=>{s?.destroy(),r[Ae]=void 0,l.provide(Ae,null),s=null,r=null}),s}function mr(e,t,o){const r=Je(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Te(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ve,null);let s=Qt(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(g,h,...m)=>s?Reflect.apply(s.emit,s,[g,h,...m]):null;const u=l.inject(ze,null);e.fieldName=e.fieldName??a;let f=en(r,u,e);r[ze]=f,l.provide(ze,f),mr(r,f,a),r.validate=(g=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let m=!1,S=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)S=!0,m=!0;else if(g&&typeof g=="object"){const b=g,C=b.ignoreDisabled??!0,j=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;C===!0&&e.disabled===!0||j===!0&&e.readonly===!0||L===!0&&Jt(r.$el)?S=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),S=!0),m=b.deep??!1}else typeof g=="boolean"&&(m=g),S=!0;if(S){const b=f?.validate();h.push(b)}if(m){let b=null;const C={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const j=g;b={name:L=>L?j.indexOf(L)!==-1:!1}}else if(g!=null&&typeof g=="object"){const j=g;if(Object.assign(C,j),Array.isArray(j.include)&&j.include.length>0){const L=j.include;b={name:M=>M?L.indexOf(M)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const L=j.exclude;b={name:M=>M?L.indexOf(M)===-1:!1}}else b={name:"*"}}if(b&&s){const j=s.emitToChildren(b,"validate",C);Reflect.apply([].push,h,j)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let C=[];return b.forEach(j=>{j.pass===!1&&Array.isArray(j.errors)&&(C=[...C,...j.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>f?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&f?.setRule(m),h&&s){const S={name:b=>Reflect.ownKeys(g).includes(b)};s.emitToChildren(S,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:S=>S?m.indexOf(S)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const S=m.include;h={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;h={name:b=>b?S.indexOf(b)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new fr(r);r[Kt]=c;const d=Vt((g="validate")=>{f&&(g==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ir()).forEach(g=>{c&&c.on(g,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ur()).forEach(g=>{c&&c.on(g,h=>{d("reset")})}),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,f?.destroy(),r[ze]=void 0,l.provide(ze,null),f=null,c?.destroy(),r[Kt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(g,...h)=>{c&&Reflect.apply(c.emit,c,[g,...h])},onEvent:(g,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(g,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function gr(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=en({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let y=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,y=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),V=!0,y=g.deep??!1}else typeof c=="boolean"&&(y=c),V=!0;if(V&&u){const g=u.validate();d.push(g)}if(y){let g=null;const h={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const m=c;g={name:S=>S?m.indexOf(S)!==-1:!1}}else if(c!=null&&typeof c=="object"){const m=c;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const S=m.include;g={name:b=>b?S.indexOf(b)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const S=m.exclude;g={name:b=>b?S.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&f){const m=f.emitToChildren(g,"validate",h);Reflect.apply([].push,d,m)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=Qt(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function pr(){let t=l.getCurrentInstance()?.proxy,o=new fr(t);return t[Kt]=o,l.onUnmounted(()=>{o?.destroy(),t[Kt]=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:`${de(e,t)}px`:"";function de(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(dt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const ot="PageStateKey";function We(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function _n(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=We(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=We(o.footerPadding??t.footerPadding),e.contentPadding=We(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(i,a)-de(s,a),e.width=de(o.width??t.width??0,r)}}function vr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;_n(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(ot);d&&(n.height=Wt(e,d),n.width=Yt(e,d),l.watch([()=>Wt(e,d),()=>Yt(e,d)],([V,g])=>{c.height=V,c.width=g}));const y=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,g,h=-1,m=-1,S=0,b=0])=>{_n(c,g,t,y,h,m,S,b)}),e.set(ot,c),c}function ln(e){return e.get(ot)}function Ot(e,t){if(t=t??e.get(ot),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Pt(e,t){if(t=t??e.get(ot),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(ot),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Pt(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(ot),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Pa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(ot)}var Be=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Be||{});function Tn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function De(e,t,o=1,n){const r=Je();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Tn(u,n))return u}const i=e.value;return Tn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Tn(a,n)?a:r?.get(t)})}function Fe(e){return De(e,"readonly",0,function(o){return ie(o)})}function Re(e){return De(e,"disabled",0,function(o){return ie(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const yr=new Map,Gt=new Map;let qn=null;function Fa(e){qn=e}function br(e,t,o){if(o){let n=Gt.get(o);n||(n=new Map,Gt.set(o,n)),n.set(e,t)}else yr.set(e,t)}function He(e,t,o){!o&&qn&&(o=qn(e)??void 0);let n=null;if(o){let r=Gt.get(o);r&&(n=r.get(t))}return n||(n=yr.get(t)),n}function Ra(e,t){for(let o in e){const n=e[o];br(o,n,t)}}function Aa(e){Gt.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(dt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Ba(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class _a{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ba(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=gt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=dr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ft({},La(),t.safeAreaInset),i=Ma(n,r),s=ft({},i.pageLayout,t.pageLayout);o=o??gt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){br(t,o,n)}getAPI(t,o,n){return He(t,o,n)}batchSetAPI(t,o){Ra(t,o)}clearScopeAPI(t){Aa(t)}getRootDomain(){return gt()}}const qa=[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],ja=[v.ElInfiniteScroll,v.ElLoading,v.ElMessage,v.ElMessageBox,v.ElNotification,v.ElPopoverDirective],za=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);qa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),ja.forEach(r=>{e.use(r)})};function ae(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={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}},Ie={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}},wr={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}},xr={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}},Sr=[];for(const e in xr)Sr.push(e);const Ha=Symbol.for("InnerPageScopeKey"),Ka={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}},Wa=(e,t)=>({inheritAttrs:!0,props:{...xe,...wr,...Ka},setup(o,{slots:n}){const r=Zn(o.name,o),a=l.inject(Ha,!1);if(r){const c=vr(r,o);$e({getPageContentHeight:()=>Wt(r,c),getPageContentWidth:()=>Yt(r,c),getPageHeaderHeight:()=>Ot(r,c),getPageFooterHeight:()=>Pt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const y=u?.proxy;y&&typeof y.setNameValidateRules=="function"&&y.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[y,V])=>{if(c&&y){const g=l.toRaw(y),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h)}if(d&&V){const g=l.toRaw(V),h=l.toRaw(d),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ya,create:Ga,scope:Dh}=ae("page"),Jn=Ga(Wa(Ya));function on(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Qn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ua=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=Je(),s=i?ln(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?de(r.height):null,y=l.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=We(r.padding??s.headerPadding);return Object.assign(E,x),d&&(s.headerHeight=d),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(x.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(d&&(E.height=d),r.padding){const x=We(r.padding);Object.assign(E,x)}return E}),V=l.ref(null),g=()=>{if(s&&V.value&&!Jt(V.value)){if(!n){const E=on(V.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(tn(g,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const E={};return y.value.height!==null&&y.value.height!==void 0&&(E.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(E.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(E.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(E.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(E.paddingBottom=`${y.value.bottom}px`),E}),S=l.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){a.emit("back")}function C(){a.emit("click-title")}function j(){a.emit("click-right")}function L(){a.emit("click-right-text")}const M=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);E.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);E.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:b},[r.leftText]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__left"},E)},O=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:L},[r.rightText]);E.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);E.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:j},[l.h(r.rightIcon)]);E.push(x)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__right"},E)},R=()=>{if(!r.titleShow)return null;const E=[],x=a.slots.default?a.slots.default():null;if(x)E.push(x);else{if(r.title){const q=l.h("view",{class:"title-text"},[r.title]);E.push(q)}if(a.slots.titleIcon){const q=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);E.push(q)}else if(r.titleIcon){const q=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);E.push(q)}}return E.length===0?null:l.h("view",{class:"fox-header-bar__title"},E)},N=()=>{const E=[],x=a.slots.bottom?a.slots.bottom():null;return x&&E.push(x),E.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!S.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const q=[],$=M();$&&q.push($);const k=R();k&&q.push(k);const D=O();if(D&&q.push(D),q.length>0){const W=l.h("view",{class:c.value},q);E.push(W)}const Y=N();Y&&E.push(Y)}if(E.length===0)return null;const x={class:f.value,style:m.value,ref:V};return l.h("view",x,E)}}}),{componentName:Xa,create:Za,scope:Ja}=ae("header-bar"),el=Za(Ua(Xa,Ja,Ee.ArrowLeft));function Qa(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=Je(),i=a?ln(a):null,s=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,f=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=We(n.padding??i.footerPadding);return Object.assign(g,h),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=We(n.padding);Object.assign(g,h)}return g}),c=l.ref(null),d=()=>{if(i&&c.value&&!Jt(c.value)){if(!o){const g=on(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let y=null;l.onMounted(()=>{i&&(tn(d,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{d()}),y.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,y&&(y.disconnect(),y=null))});const V=l.computed(()=>{const g={};return f.value.height!==null&&f.value.height!==void 0&&(g.height=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:s.value,style:V.value};return l.h("view",h,g)}}}}const{componentName:ei,create:ti,scope:Fh}=ae("footer-bar"),tl=ti(Qa(ei));function ni(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Je(),r=l.computed(()=>({[e]:!0})),a=n?ln(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=We(o.padding);Object.assign(a.contentPadding,V)}const c=Ot(n,a),d=Pt(n,a);let y="";if(a.contentHeight?y=`${a.contentHeight}`:y=`${a.height}px`,a.contentPadding,f.height=y,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=We(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=Qn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Pt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:li,create:oi,scope:Rh}=ae("content"),ri=oi(ni(li));function ai(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 qe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},nl=qe(ri,[["render",ai]]),yt="GroupStateKey",Tr=Symbol.for("GroupScopeKey");function rn(){return l.inject(Tr,!1)}function an(e=!0){l.provide(Tr,e)}function ii(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Un(r)||(e[n]=r)})}function si(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ii(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(yt,a),a}function $n(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(yt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=de(a),d=de(i);s||(s=f.type??"grid");const y=()=>{const V=t===""||t===-1,g=de(t);let h=we(o);const m=de(n);if(!V){let C=(g-(h-1)*m)/h;for(;d!==-1&&C>d;)h++,C=(g-(h-1)*m)/h;for(;c!==-1&&h>1&&C<c;)h--,C=(g-(h-1)*m)/h}let S=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,S=!0),b.value.gutter!==m&&(b.value.gutter=m,S=!0),b.value.type!==s&&(b.value.type=s,S=!0),S&&l.triggerRef(b)};if(r)y();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&y()},50)}}function sn(e,t=!1){let o;return t?o=e.getForParent(yt):o=e.get(yt),o.layout}function un(e,t=!1){let o;return t?o=e.getForParent(yt):o=e.get(yt),o.order}function Zl(e,t=1){if(t==="stretch")return-1;const o=we(t);return o===-1?100:100*o/e}function cn(e,t,o=1,n=0,r){const a={};let i=0;r?i=de(r):i=Zl(t.column,o),i>0&&(a.width=`${i}%`);const s=Zl(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function fn(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=we(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=we(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const $r=Symbol("RollingStateKey");function ui(e){l.provide($r,e)}function ci(){return l.inject($r,null)}function jn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function fi(e){let t=jn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=jn(o),document.body.removeChild(o)}return t}function di(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const hi={...xe,...wr,...xr};function mi(e,t,o){return{props:hi,emits:["update:collapse","header-click"],setup(n,r){const a=Zn(n.name,n,Sr),i=si(a,{type:n.type}),s=rn();an(!0);const u=n.rollingDisplay?ci():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?sn(a,!0).value:null),y=l.getCurrentInstance(),V=(z,Z=!1)=>{const te=y?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[te,T])=>{if(z&&te){const K=l.toRaw(te),Q=l.toRaw(z),ne=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{ne.includes(ce)||(Q[ce]=[])}),V(Q)}if(Z&&T){const K=l.toRaw(T),Q=l.toRaw(Z),ne=Q?Reflect.ownKeys(Q):[];(K?Reflect.ownKeys(K):[]).forEach(ce=>{ne.includes(ce)||(Q[ce]=[])}),V(Q,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const z={};z.height=D.value;const Z=s?un(a,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const te=fn(Z,d.value,n.span,n.offset);Object.assign(z,te)}else if(d.value.type==="flow"){const te=cn(Z,d.value,n.span,n.offset,n.width);Object.assign(z,te)}}else if(n.width){const te=Ne(n.width);z.width=te}return z}),m=l.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),S=l.computed(()=>{if(i.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const te=di(R.value,i.layout.value.column,i.layout.value.gutter);Z=`repeat(${i.layout.value.column}, ${te})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),C=l.toRef(n,"column"),j=l.computed(()=>s||c.value?!0:ie(n.isWrap)),L=[],M=z=>{L.push(z)},O=()=>{let z=L.length;L.splice(0,z)},R=l.ref(-1),N=z=>{const Z=Qn(z).width;Z>0&&Z!==R.value&&(R.value=Z)};$n(a,R.value,C.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([R,C,b],([z,Z,te])=>{i.order.index=0,$n(a,z,Z,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=l.computed(()=>Y.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),q=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!Y.value,"is-collapse":Y.value})),$=l.ref(),k=l.ref(),D=l.computed(()=>W.value||Ne(n.height)||""),Y=l.ref(!1),W=l.ref(""),X=l.ref(!1);let U=-1;const ee=(z,Z=!0)=>{const te=$.value;if(te&&Y.value!==z){if(U=U===-1?fi(te):U,X.value=!0,Z)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",z||(W.value="",X.value=!1)},z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${U}px`,l.nextTick(()=>{W.value=`${T}px`})}else W.value=`${U}px`;else if(z){let T=0;n.collapseHeight?T=n.collapseHeight:k.value&&k.value.classList.contains(`${e}__header`)&&(T=k.value.offsetHeight),W.value=`${T}px`}else X.value=!1,W.value=`${U}px`;Y.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{ee(z)});const le=z=>{r.emit("header-click",z)},I=()=>{w()},w=z=>{z=z??!Y.value,ee(z)};$e({toggleCollapse:w,doLayout:()=>{L[0]&&(N(L[0]),$n(a,R.value,C.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let P=null,p=!0;const H=z=>{if(n.rules){const Z=l.toRaw(n.rules);V(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);V(Z,!0)}if(dt&&(z&&ee(ie(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const Z=L[0];N(Z),window.ResizeObserver&&(P=new window.ResizeObserver(()=>{N(Z)}),P.observe(Z))}},_=()=>{P?.disconnect(),P=null},B=!c.value||u?.acquire();B&&(f.value=c.value?!0:null),l.onMounted(()=>{if(B&&(H(p),p=!1),c.value&&u){let z=null,Z=u.initialHeight;u.observe($.value,te=>{if(te!==f.value)if(te)f.value=!0,Y.value||(W.value=""),z=setTimeout(()=>{z=null,f.value!==!1&&(H(p),p=!1)},100);else{if(z!==null&&clearTimeout(z),f.value=!1,!Y.value)if(p)W.value=u.initialHeight;else{let T=jn($.value);T<=0?W.value=Z:(W.value=`${T}px`,Z=W.value)}p||_()}})}}),l.onUnmounted(()=>{P?.disconnect(),u&&u.unobserve($.value)});const A=(z="right")=>{const Z=[];if(E.value){const K={class:x.value},Q=l.h("span",K,[E.value]);Z.push(Q)}const te={class:q.value},T=o(n.collapseIcon,te);return T&&Z.push(T),Z.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Z):null},G=(z,Z,te,T)=>{const K={...m.value};return Z===0&&(K[`${g}__first`]=!0),te>=T-1&&(K[`${g}__last`]=!0),l.h("div",{ref:M,key:`${Z}`,class:K,style:S.value},z)};return()=>{if(c.value&&f.value!==!0){const K=n.tag||"div";return l.h(K,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[])}i.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},Q=l.h("div",K,[r.slots.header()]);z.push(Q)}else{const K=[],Q=n.collapsePosition==="left";if(Q&&n.showCollapse){const ne=A("left");ne&&K.push(ne)}if(n.title||r.slots.title){if(n.showMark){const ne={class:{[`${g}__header-mark`]:!0}};n.markColor&&(ne.style={background:n.markColor});const fe=l.h("div",ne);K.push(fe)}if(r.slots.title){const ne=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);K.push(ne)}else if(n.title){const ne=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);K.push(ne)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!Q&&n.showCollapse){const ne=A("right");ne&&K.push(ne)}if(K.length>0){const ne={key:`${Z++}`,ref:k,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:le},fe=l.h("div",ne,K);z.push(fe)}}O();const te=r.slots.default?r.slots.default():[],T=i.layout.value.type;if(T==="grid"){const K=G(te,Z++,0,te.length);z.push(K)}else if(T==="flow"){const K=G(te,Z++,0,te.length);z.push(K)}else for(let K=0;K<te.length;K++){const Q=te[K],ne=G([Q],Z++,K,te.length);z.push(ne)}if(j.value){const K=n.tag||"div";return l.h(K,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":X.value},style:h.value},[z])}else return z}}}}const{componentName:gi,create:pi,scope:vi}=ae("group"),yi=(e,t)=>(e=e??Ee.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),ll=pi(mi(gi,vi,yi));function bi(e){return e===window}const wi=/matrix\((.+)\)/,Cr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(bi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=wi.exec(f);if(c){let y=c[1].split(/\s*,\s*/);y.length==6&&(s+=Number(y[4]),u+=Number(y[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class xi{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 Si{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 xi,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 Jl=new Si,Nr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Ti,create:$i}=ae("price"),Ci=$i({props:{...Nr},setup(e){const t=l.computed(()=>({[Ti]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>At(e.price)==0?"":Xt(e.price,e.decimalLength,!0,we(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ni=["innerHTML"],Ei=["innerHTML"];function ki(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,Ni)):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,Ei)):l.createCommentVNode("",!0)],2)}const dn=qe(Ci,[["render",ki]]),{componentName:Cn,create:Ii}=ae("hint-text"),Vi=Ii({components:{Price:dn},props:{...Nr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,q,$,k,D,Y)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,X=document.documentElement.clientHeight||document.body.clientHeight,U=x.split("-");let ee=[];U[0]==="top"?ee=["top","bottom","right","left"]:U[0]==="bottom"?ee=["bottom","top","right","left"]:U[0]==="left"?ee=["left","top","bottom","right"]:U[0]==="right"&&(ee=["right","top","bottom","left"]);const le={top:null,right:null,bottom:null,left:null},I=[];for(let w=0;w<ee.length;w++){const F=ee[w];if(I[0]=F,U[1]&&(I[1]=U[1]),F==="top"){const P=q.y-Y-e.arrowSize-e.offset;if(P>=0){le.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+$-D:p=q.x+$/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,le.left=p<0?0:p;break}}else if(F==="bottom"){const P=q.y+k+e.arrowSize+e.offset;if(P+Y<=X){le.top=P;let p=0;U[1]==="start"?p=q.x:U[1]==="end"?p=q.x+$-D:p=q.x+$/2-D/2;const H=W-p-D;H<0?(p+=H,d.value=-H):d.value=0,le.left=p<0?0:p;break}}else if(F==="left"){const P=q.x-D-e.arrowSize-e.offset;if(P>=0){le.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,le.top=p<0?0:p;break}}else if(F==="right"){const P=q.x+$+e.arrowSize+e.offset;if(P+D<=W){le.left=P;let p=0;U[1]==="start"?p=q.y:U[1]==="end"?p=q.y+k-Y:p=q.y+k/2-Y/2,le.top=p<0?0:p;break}}}return{bestPlacement:I.join("-"),bestInsetRect:le}},c=(x,q,$=10)=>{if(!dt||q===!1||!x)return;n.value=Cr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const k=u.value.offsetHeight,D=u.value.offsetWidth,{bestPlacement:Y,bestInsetRect:W}=f(e.placement,n.value,r.value,a.value,D,k);i.value=Y,o.value=W,s.value=!0},d=l.ref(0),y=Vt(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const g=l.computed(()=>V.value&&h.value),h=l.ref(!0),m=Vt(x=>{const q=x[0];q&&(h.value=q.isIntersecting)},10),S=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([x,q])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Jl.watch(e.reference,y),S.observe(e.reference)}),l.onBeforeMount(()=>{Jl.unwatch(e.reference,y),S.unobserve(e.reference),S.disconnect()});const b=l.computed(()=>{const x={[Cn]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),C=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const q=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${q}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),j=l.computed(()=>{const x=[`${Cn}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),L=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),M=l.computed(()=>({[`${Cn}__arrow`]:!0})),O=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),R=l.computed(()=>g.value&&e.closeOnClick),N=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:g,tipRef:u,classes:b,styles:C,textClasses:j,textStyles:L,arrowClasses:M,arrowStyles:O,overlayShow:R,overlayStyle:N,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),Oi=["innerHTML"];function Pi(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Oi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Lt=qe(Vi,[["render",Pi]]);class Er{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const zn={},Di=new Er,pt=new Map,Ut=e=>{if(e){const t=document.getElementById(e);pt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of pt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}pt.clear()}},Fi=e=>{e.unmount=Ut;const t=document.getElementById(e.id);if(t){const o=pt.get(e.id);o?e={...zn,...o,...e}:e={...zn,...e},e.transition=!1;const n=l.createVNode(Lt,e);return l.render(n,t),e.id}},Ri=e=>{e.unmount=Ut;let t=e.id??`hinttext_${Di.get()}`;e={...zn,...e},e.id=t,pt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Lt,e);return l.render(n,o),document.body.appendChild(o),t},Ai=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Pe={show(e,t,o={},n=!0){Ai(t);const r=o.id;return r&&pt.has(r)?Fi({...o,message:t,reference:e}):(n&&Ut(),Ri({...o,message:t,reference:e}))},hide(e){Ut(e)},install(e){e.config.globalProperties.$hintText=Pe}};function Li(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Ie},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Te({componentName:e,validate:!1},i);const s=Je(),u=rn();an(!1);const f=l.computed(()=>u&&s?sn(s,!1).value:null),c=e,d=l.ref(null),y=l.computed(()=>{const T={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:ie(r.hasBorder)};if(T[r.errorMarkClass]=!!Y.value,T[r.warnMarkClass]=!!k.value,T[r.infoMarkClass]=!!q.value,typeof d.value=="function"){const K=d.value(i);T[K]=!0}else if(typeof d.value=="string"){const K=d.value;T[K]=!0}return T}),V=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ne(r.width));else{const K=u&&s?un(s,!1):null;if(f.value&&K){if(f.value.type==="grid"){const Q=fn(K,f.value,r.span,r.offset);Object.assign(T,Q)}else if(f.value.type==="flow"){const Q=cn(K,f.value,r.span,r.offset,r.width);Object.assign(T,Q)}}}if(typeof V.value=="function"){const K=V.value(i);K&&Object.assign(T,K)}else if(V.value&&typeof V.value=="object"){const K=V.value;Object.assign(T,K)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??ie(r.isRequired),set:T=>{h.value=T}}),S=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=De(l.toRef(r,"labelPosition"),"labelPosition",Be.Near),C=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),j=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${C.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),M=De(l.toRef(r,"labelWidth"),"labelWidth",Be.Near),O=l.computed(()=>M&&M.value?{width:Ne(M.value)}:{}),R=l.computed(()=>({"label--string":!0,"label--required":m.value})),N=l.computed(()=>({content:!0,[r.contentClass]:!0})),E=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(T){m.value=T},setErrorTip(T){x.errorTip=T},setErrorIcon(T){x.errorIcon=T},setWarnTip(T){x.warnTip=T},setWarnIcon(T){x.warnIcon=T},setInfoTip(T){x.infoTip=T},setInfoIcon(T){x.infoIcon=T},setCustomClassName(T){d.value=T},setCustomStyle(T){V.value=T}});const q=l.computed(()=>r.infoTip||x.infoTip),$=l.computed(()=>r.infoIcon||x.infoIcon),k=l.computed(()=>r.warnTip||x.warnTip),D=l.computed(()=>r.warnIcon||x.warnIcon),Y=l.computed(()=>r.errorTip||x.errorTip),W=l.computed(()=>r.errorIcon||x.errorIcon),X=l.computed(()=>Y.value?"error":k.value?"warn":q.value?"info":""),U=()=>X.value.length>0,ee=l.computed(()=>X.value==="error"?Y.value:X.value==="warn"?k.value:X.value==="info"?q.value:""),le=l.computed(()=>X.value==="error"?W.value:X.value==="warn"?D.value:X.value==="info"?$.value:null),I=l.computed(()=>{const T={[`${c}__tip`]:!0,[`${c}__tip--${X.value}`]:!0,[`${c}--animate`]:!0};return X.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:X.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:X.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),w=l.computed(()=>{const T={};return b&&b.value==="top"||!S()?T["padding-left"]="0px":M&&M.value&&(T["padding-left"]=Ne(M.value)),T}),F=l.ref();let P="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,K,Q,ne])=>{F.value&&(T&&!ge(K)?P?o.show(F.value,K,{...ne,id:P,type:Q},!0):P=o.show(F.value,K,{...ne,type:Q},!0):o.hide(P))});let p=null;const H=()=>{p||!F.value||(p=new IntersectionObserver(T=>{let K=!1;for(let Q of T)if(Q.intersectionRatio>0){K=!0,K&&a.emit("appear",Q);break}K||a.emit("disappear")}),p.observe(F.value))},_=()=>{!p||!F.value||(p.unobserve(F.value),p=null)};l.watch(()=>ie(r.appearListen),T=>{T?H():_()}),l.onMounted(()=>{ie(r.appearListen)&&H()}),l.onUnmounted(_);const B=()=>{if(!S())return null;const T=[],K=a.slots?.label?.()??r.label,Q={class:R.value},ne=l.h("div",Q,[K]);if(T.push(ne),a.slots.fixedPreTip){const ce=a.slots.fixedPreTip();T.push(ce)}const fe={class:L.value,style:O.value};return l.h("div",fe,T)},A=()=>{const T=[];if(a.slots.prepend){const Q=a.slots.prepend();T.push(Q)}if(a.slots.default){const Q=a.slots.default();T.push(Q)}if(a.slots.append){const Q=a.slots.append();T.push(Q)}if(a.slots.fixedTip){const Q={class:[`${c}__fixed-tip`]},ne=l.h("div",Q,[a.slots.fixedTip()]);T.push(ne)}const K={ref:F,class:N.value,style:E.value};return l.h("div",K,T)},G=()=>{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},z=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Z=()=>{if(!U())return null;const T=[],K=G();K&&T.push(K);const Q=z();Q&&T.push(Q);const ne={class:I.value,style:w.value};return l.h("div",ne,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],K=[],Q=B();Q&&K.push(Q);const ne=A();ne&&K.push(ne);const fe={class:j.value},ce=l.h("div",fe,K);T.push(ce);const ye=Z();ye&&T.push(ye);const Ke=te();Ke&&T.push(Ke);const Le={class:y.value,style:g.value,prop:r.prop};return l.h("div",Le,T)}}}}const{componentName:Mi,create:Bi,scope:_i}=ae("item"),Se=Bi(Li(Mi,_i,Pe,!1));function qi(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=Je(),a=rn();an(!1);const i=l.computed(()=>a&&r?sn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?un(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const y=fn(d,i.value,o.span,o.offset);Object.assign(c,y)}else if(i.value.type==="flow"){const y=cn(d,i.value,o.span,o.offset,o.width);Object.assign(c,y)}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:ji,create:zi,scope:Ah}=ae("slot-item"),ol=zi(qi(ji));function Hi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Je(),s=rn();an(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=sn(i,!1),d=un(i,!1);if(c.value&&d)if(c.value.type==="grid"){const y=fn(d,c.value,o.span,o.offset);Object.assign(f,y)}else if(c.value.type==="flow"){const y=cn(d,c.value,o.span,o.offset,o.width);Object.assign(f,y)}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 y=0;y<d.length;y++){if(y>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[y])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:Ki,create:Wi,scope:Lh}=ae("row-item"),rl=Wi(Hi(Ki)),Ge=(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},Ql={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 Yi(e,t,o){return{props:{...xe,...Ie,...Ql},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__disabled`]:a.value,[`${y}__readonly`]:i.value})),g=$=>{d.value=$,s("update:modelValue",$),s("input",$)},h=$=>{s("change",$)};let m=he(n,"hintText"),S=l.ref(!1);const b=$=>{let D=$.target.value;c.value=!0,ge(m.value)||(S.value=!0),s("focus",D,$)},C=$=>{setTimeout(()=>{S.value&&(S.value=!1),c.value=!1},0);let D=$.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,$)},j=()=>{s("clear","")},L=l.ref(!1);let M=null;const O=()=>{n.showTooltip&&L.value===!1&&(M&&clearTimeout(M),M=setTimeout(()=>{L.value=!0},150))},R=()=>{M&&(clearTimeout(M),L.value=!1,M=null)},N=l.computed(()=>L.value||S.value),E=l.computed(()=>L.value?d.value:m.value),x=l.computed(()=>At(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ge(r.attrs),ref:q,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:j,onChange:h,onInput:g,onFocus:b,onBlur:C,onMouseover:O,onMouseleave:R},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.default&&(X.fixedTip=r.slots.fixedTip);const ee={...ke(n,Ql),hintText:E.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:Gi,create:Ui,scope:Xi}=ae("input-item"),al=Ui(Yi(Gi,Xi,Se));function lt(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 kr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Zi(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=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Qi(){const e=l.getCurrentInstance();return new Ji(e.proxy)}function Ir(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Dt(e,t),i=Dt(e,o);return a===i}function Vr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=kr(e,i);if(Array.isArray(s)&&s.length>0){const u=Vr(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=lt(e,i)===a;else if(o==="item")u=Ir(e,i,a);else{let f=Dt(e,i);f==null&&(f=lt(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function es(e){return{text:e,value:e}}const eo={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 ts(e,t,o){return{props:{...xe,...Ie,...eo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(G=>lt(n,G)).join(" "):""),V=(A,G,z,Z=!0)=>{const te=Vr(n,A,G,z);if(te===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Z&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let T=!0;if(te.length!==d.value.length)T=!1;else for(let K=0;K<te.length;K++){const Q=te[K],ne=d.value[K];if(!Ir(n,Q,ne)){T=!1;break}}if(!T){d.value=te;let K=[],Q=[],ne=[];te.forEach(Ke=>{const Le=Dt(n,Ke),rt=lt(n,Ke);K.push(Le),ne.push(rt),n.valueType==="text"?Q.push(rt):n.valueType==="item"?Q.push(Ke):Q.push(Le)});let fe,ce,ye;ie(n.multiple)?(c.value=K,fe=l.toRaw(Q),ce=ne,ye=l.toRaw(te)):(c.value=K[0]??"",fe=l.toRaw(Q[0]??""),ce=ne[0]??"",ye=l.toRaw(te[0])),Z&&(s("update:modelValue",fe),s("change",fe,ye)),s("update:text",ce)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),S=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,A=>ie(A)),b=Qi(),C=async(A,G)=>{if(A){const z=await b.load("select",A,G);if(z.length>0)if(typeof z[0]=="string"){let T=z.map(K=>es(K));g.value=T}else g.value=z;else g.value=null}};l.watch([()=>n.source,()=>n.params],([A,G])=>{h.value=null,C(A,G)},{immediate:!S.value});let j=!1;const L=()=>{j||(j=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([A,G])=>{if(N()&&ie(n.multiple)){Xe(G,c.value)||(c.value=G);return}V(G,n.valueType,m.value,!1),s("setValue",G)});let M=null,O=l.ref(!1);typeof n.remoteMethod=="function"&&(M=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.remoteMethod(A);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});let R=null;typeof n.filterMethod=="function"&&(R=async A=>{if(A==null){h.value=null;return}O.value=!0;try{const G=await n.filterMethod(A,g.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}O.value=!1});const N=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=l.ref(!1),x=e,q=l.computed(()=>({[x]:!0})),$=A=>{n.allowCreate||N()&&ie(n.multiple)?(s("update:modelValue",A),s("change",A),s("update:text",A),c.value=A):V(A,"value",m.value,!0)};let k=he(n,"hintText"),D=l.ref(!1);const Y=A=>{let z=A.target.value;E.value=!0,ge(k.value)||(D.value=!0),s("focus",z,A)},W=A=>{setTimeout(()=>{D.value&&(D.value=!1),E.value=!1},0);let z=A.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),P.value||s("blur",z,A)},X=()=>{s("clear","")},U=l.ref(!1);let ee=null;const le=()=>{n.showTooltip&&U.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{U.value=!0},150))},I=()=>{ee&&(clearTimeout(ee),U.value=!1,ee=null)},w=l.computed(()=>U.value||D.value),F=l.computed(()=>U.value?y.value:k.value),P=l.ref(!1),p=A=>{P.value=A,s("visible-change",A),A||s("selected")},H=A=>{s("remove-tag",A)},_=(A,G)=>{const z=[];return A.forEach((Z,te)=>{const T=kr(n,Z);if(Array.isArray(T)&&T.length>0){const K=_(T,G),Q=lt(n,Z),fe={key:`${Q}_${te}`,label:Q};z.push(l.h(v.ElOptionGroup,fe,{default:()=>K}))}else{const K=Dt(n,Z),Q=lt(n,Z),ne=Zi(n,Z),ce={key:`${K}_${te}`,label:Q,disabled:ne,value:K};if(typeof G=="function")z.push(l.h(v.ElOption,ce,{default:()=>G(Z)}));else if(n.optionType==="item"){const ye={class:{"fox-select-item__option-left":!0}},Ke=l.h("span",ye,[K]),Le={class:{"fox-select-item__option-right":!0}},rt=l.h("span",Le,[Q]),pn=l.h("div",{class:{"fox-select-item__option":!0}},[Ke,rt]);z.push(l.h(v.ElOption,ce,{default:()=>pn}))}else n.optionType==="value"?z.push(l.h(v.ElOption,ce,{default:()=>[K]})):z.push(l.h(v.ElOption,ce))}}),z},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const G={...Ge(r.attrs),ref:B,class:q.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:X,onChange:$,onFocus:Y,onBlur:W,onVisibleChange:p,onRemoveTag:H};typeof M=="function"&&(G["remote-method"]=M,G.loading=O.value),typeof R=="function"&&(G["filter-method"]=R,G.loading=O.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>_(m.value,r.slots.option);const Z=[],te=l.h(v.ElSelect,G,z);Z.push(te);const T={default:()=>Z};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const Q={...ke(n,eo),hintText:F.value,hintVisible:w.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:le,onMouseleave:I};return S.value&&(Q["appear-listen"]=!0,Q.onAppear=L),l.h(o,Q,T)}}}}const{componentName:ns,create:ls,scope:os}=ae("select-item"),il=ls(ts(ns,os,Se));var Qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Or={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",y="quarter",V="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},C=function($,k,D){var Y=String($);return!Y||Y.length>=k?$:""+Array(k+1-Y.length).join(D)+$},j={s:C,z:function($){var k=-$.utcOffset(),D=Math.abs(k),Y=Math.floor(D/60),W=D%60;return(k<=0?"+":"-")+C(Y,2,"0")+":"+C(W,2,"0")},m:function $(k,D){if(k.date()<D.date())return-$(D,k);var Y=12*(D.year()-k.year())+(D.month()-k.month()),W=k.clone().add(Y,d),X=D-W<0,U=k.clone().add(Y+(X?-1:1),d);return+(-(Y+(D-W)/(X?W-U:U-W))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:V,w:c,d:f,D:g,h:u,m:s,s:i,ms:a,Q:y}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},L="en",M={};M[L]=b;var O=function($){return $ instanceof x},R=function $(k,D,Y){var W;if(!k)return L;if(typeof k=="string"){var X=k.toLowerCase();M[X]&&(W=X),D&&(M[X]=D,W=X);var U=k.split("-");if(!W&&U.length>1)return $(U[0])}else{var ee=k.name;M[ee]=k,W=ee}return!Y&&W&&(L=W),W||!Y&&L},N=function($,k){if(O($))return $.clone();var D=typeof k=="object"?k:{};return D.date=$,D.args=arguments,new x(D)},E=j;E.l=R,E.i=O,E.w=function($,k){return N($,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var x=function(){function $(D){this.$L=R(D.locale,null,!0),this.parse(D)}var k=$.prototype;return k.parse=function(D){this.$d=function(Y){var W=Y.date,X=Y.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var U=W.match(m);if(U){var ee=U[2]-1||0,le=(U[7]||"0").substring(0,3);return X?new Date(Date.UTC(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,le)):new Date(U[1],ee,U[3]||1,U[4]||0,U[5]||0,U[6]||0,le)}}return new Date(W)}(D),this.$x=D.x||{},this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return E},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(D,Y){var W=N(D);return this.startOf(Y)<=W&&W<=this.endOf(Y)},k.isAfter=function(D,Y){return N(D)<this.startOf(Y)},k.isBefore=function(D,Y){return this.endOf(Y)<N(D)},k.$g=function(D,Y,W){return E.u(D)?this[Y]:this.set(W,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,Y){var W=this,X=!!E.u(Y)||Y,U=E.p(D),ee=function(_,B){var A=E.w(W.$u?Date.UTC(W.$y,B,_):new Date(W.$y,B,_),W);return X?A:A.endOf(f)},le=function(_,B){return E.w(W.toDate()[_].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(B)),W)},I=this.$W,w=this.$M,F=this.$D,P="set"+(this.$u?"UTC":"");switch(U){case V:return X?ee(1,0):ee(31,11);case d:return X?ee(1,w):ee(0,w+1);case c:var p=this.$locale().weekStart||0,H=(I<p?I+7:I)-p;return ee(X?F-H:F+(6-H),w);case f:case g:return le(P+"Hours",0);case u:return le(P+"Minutes",1);case s:return le(P+"Seconds",2);case i:return le(P+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,Y){var W,X=E.p(D),U="set"+(this.$u?"UTC":""),ee=(W={},W[f]=U+"Date",W[g]=U+"Date",W[d]=U+"Month",W[V]=U+"FullYear",W[u]=U+"Hours",W[s]=U+"Minutes",W[i]=U+"Seconds",W[a]=U+"Milliseconds",W)[X],le=X===f?this.$D+(Y-this.$W):Y;if(X===d||X===V){var I=this.clone().set(g,1);I.$d[ee](le),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else ee&&this.$d[ee](le);return this.init(),this},k.set=function(D,Y){return this.clone().$set(D,Y)},k.get=function(D){return this[E.p(D)]()},k.add=function(D,Y){var W,X=this;D=Number(D);var U=E.p(Y),ee=function(w){var F=N(X);return E.w(F.date(F.date()+Math.round(w*D)),X)};if(U===d)return this.set(d,this.$M+D);if(U===V)return this.set(V,this.$y+D);if(U===f)return ee(1);if(U===c)return ee(7);var le=(W={},W[s]=n,W[u]=r,W[i]=o,W)[U]||1,I=this.$d.getTime()+D*le;return E.w(I,this)},k.subtract=function(D,Y){return this.add(-1*D,Y)},k.format=function(D){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var X=D||"YYYY-MM-DDTHH:mm:ssZ",U=E.z(this),ee=this.$H,le=this.$m,I=this.$M,w=W.weekdays,F=W.months,P=function(B,A,G,z){return B&&(B[A]||B(Y,X))||G[A].slice(0,z)},p=function(B){return E.s(ee%12||12,B,"0")},H=W.meridiem||function(B,A,G){var z=B<12?"AM":"PM";return G?z.toLowerCase():z},_={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:E.s(I+1,2,"0"),MMM:P(W.monthsShort,I,F,3),MMMM:P(F,I),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:P(W.weekdaysMin,this.$W,w,2),ddd:P(W.weekdaysShort,this.$W,w,3),dddd:w[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:p(1),hh:p(2),a:H(ee,le,!0),A:H(ee,le,!1),m:String(le),mm:E.s(le,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:U};return X.replace(S,function(B,A){return A||_[B]||U.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,Y,W){var X,U=E.p(Y),ee=N(D),le=(ee.utcOffset()-this.utcOffset())*n,I=this-ee,w=E.m(this,ee);return w=(X={},X[V]=w/12,X[d]=w,X[y]=w/3,X[c]=(I-le)/6048e5,X[f]=(I-le)/864e5,X[u]=I/r,X[s]=I/n,X[i]=I/o,X)[U]||I,W?w:E.a(w)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return M[this.$L]},k.locale=function(D,Y){if(!D)return this.$L;var W=this.clone(),X=R(D,Y,!0);return X&&(W.$L=X),W},k.clone=function(){return E.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},$}(),q=x.prototype;return N.prototype=q,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",g]].forEach(function($){q[$[1]]=function(k){return this.$g(k,$[0],$[1])}}),N.extend=function($,k){return $.$i||($(k,x,N),$.$i=!0),N},N.locale=R,N.isDayjs=O,N.unix=function($){return N(1e3*$)},N.en=M[L],N.Ls=M,N.p={},N})})(Or);var rs=Or.exports;const Ye=et(rs);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(m){this[h]=+m}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var S=m.match(/([+-]|\d\d)/g),b=60*S[1]+(+S[2]||0);return b===0?0:S[0]==="+"?-b:b}(h)}],d=function(h){var m=s[h];return m&&(m.indexOf?m:m.s.concat(m.f))},y=function(h,m){var S,b=s.meridiem;if(b){for(var C=1;C<=24;C+=1)if(h.indexOf(b(C,0,m))>-1){S=C>12;break}}else S=h===(m?"pm":"PM");return S},V={A:[i,function(h){this.afternoon=y(h,!1)}],a:[i,function(h){this.afternoon=y(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var m=s.ordinal,S=h.match(/\d+/);if(this.day=S[0],m)for(var b=1;b<=31;b+=1)m(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var m=d("months"),S=(d("monthsShort")||m.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[i,function(h){var m=d("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function g(h){var m,S;m=h,S=s&&s.formats;for(var b=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,E,x){var q=x&&x.toUpperCase();return E||S[x]||o[x]||S[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,k,D){return k||D.slice(1)})})).match(n),C=b.length,j=0;j<C;j+=1){var L=b[j],M=V[L],O=M&&M[0],R=M&&M[1];b[j]=R?{regex:O,parser:R}:L.replace(/^\[|\]$/g,"")}return function(N){for(var E={},x=0,q=0;x<C;x+=1){var $=b[x];if(typeof $=="string")q+=$.length;else{var k=$.regex,D=$.parser,Y=N.slice(q),W=k.exec(Y)[0];D.call(E,W),N=N.replace(W,"")}}return function(X){var U=X.afternoon;if(U!==void 0){var ee=X.hours;U?ee<12&&(X.hours+=12):ee===12&&(X.hours=0),delete X.afternoon}}(E),E}}return function(h,m,S){S.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=m.prototype,C=b.parse;b.parse=function(j){var L=j.date,M=j.utc,O=j.args;this.$u=M;var R=O[1];if(typeof R=="string"){var N=O[2]===!0,E=O[3]===!0,x=N||E,q=O[2];E&&(q=O[2]),s=this.$locale(),!N&&q&&(s=S.Ls[q]),this.$d=function(Y,W,X){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*Y);var U=g(W)(Y),ee=U.year,le=U.month,I=U.day,w=U.hours,F=U.minutes,P=U.seconds,p=U.milliseconds,H=U.zone,_=new Date,B=I||(ee||le?1:_.getDate()),A=ee||_.getFullYear(),G=0;ee&&!le||(G=le>0?le-1:_.getMonth());var z=w||0,Z=F||0,te=P||0,T=p||0;return H?new Date(Date.UTC(A,G,B,z,Z,te,T+60*H.offset*1e3)):X?new Date(Date.UTC(A,G,B,z,Z,te,T)):new Date(A,G,B,z,Z,te,T)}catch{return new Date("")}}(L,R,M),this.init(),q&&q!==!0&&(this.$L=this.locale(q).$L),x&&L!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var $=R.length,k=1;k<=$;k+=1){O[1]=R[k-1];var D=S.apply(this,O);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===$&&(this.$d=new Date(""))}else C.call(this,j)}}})})(Pr);var as=Pr.exports;const is=et(as);var Dr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(y){switch(y){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),y==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),y==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),y==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return y}});return i.bind(this)(d)}}})})(Dr);var ss=Dr.exports;const us=et(ss);var Fr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,y,V,g,h){var m=d.name?d:d.$locale(),S=i(m[y]),b=i(m[V]),C=S||b.map(function(L){return L.slice(0,g)});if(!h)return C;var j=m.weekStart;return C.map(function(L,M){return C[(M+(j||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,y){return d.formats[y]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(d.formats[y.toUpperCase()])},c=function(){var d=this;return{months:function(y){return y?y.format("MMMM"):s(d,"months")},monthsShort:function(y){return y?y.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):s(d,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return f(d.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(y){return f(d,y)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Fr);var cs=Fr.exports;const fs=et(cs);var Rr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var y=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(y,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Rr);var ds=Rr.exports;const hs=et(ds);var Ar={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Ar);var ms=Ar.exports;const gs=et(ms);var Lr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Lr);var ps=Lr.exports;const vs=et(ps);var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Mr);var ys=Mr.exports;const bs=et(ys);var Br={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Br);var ws=Br.exports;const xs=et(ws);Ye.extend(fs);Ye.extend(us);Ye.extend(is);Ye.extend(hs);Ye.extend(gs);Ye.extend(vs);Ye.extend(bs);Ye.extend(xs);const Me={format(e,t){return Ye(e).format(t)},parser(e,t){return Ye(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Me.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Me.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},to={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"}},no={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 Ss(e,t,o){return{props:{...xe,...Ie,...to,...no},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=l.computed(()=>D.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>D.value?"longTermKey":"normalKey"),g=B=>{if(D.value&&n.type==="daterange"){const A=[...d.value];A[0]=B,d.value=A}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>D.value&&n.type==="daterange"?"date":n.type),m=e,S=l.computed(()=>({[`${m}`]:!0,"is-long":D.value,"is-readonly":i.value,"is-disabled":a.value}));let b=he(n,"hintText"),C=l.ref(!1);const j=B=>{let G=B.target.value;c.value=!0,ge(b.value)||(C.value=!0),s("focus",G,B)},L=B=>{setTimeout(()=>{C.value&&(C.value=!1),c.value=!1},0);let G=B.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,B)},M=()=>{s("clear","")},O=B=>{s("calendar-change",B)},R=(B,A,G)=>{s("panel-change",B,A,G)},N=B=>{s("visible-change",B)},E=De(l.computed(()=>n.longTermText),"longTermText",Be.Near),x=De(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Be.Near),q=De(l.computed(()=>n.longTermValue),"longTermValue",Be.Near),$=De(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Be.Near);let k=null;const D=l.ref(ie(n.longTerm)),Y=B=>{if(D.value=B,s("update:longTerm",B),B){if(k=d.value,n.type==="daterange"){const A=[];Array.isArray(q.value)?(A[0]=d.value?d.value[0]??q.value[0]:null,A[1]=q.value[1]??q.value[0]):(A[0]=d.value?d.value[0]??q.value:null,A[1]=D.value),A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else Array.isArray(q.value)?d.value=q.value[1]??q.value[0]:d.value=q.value,d.value||(d.value=n.valueFormat?Me.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const A=[];A[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(k)?A[1]=k[1]:A[1]=k,A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=k;s("update:modelValue",d.value),setTimeout(()=>{H()},100)}},W=ie(n.isLongTerm);if(W){const B=()=>{if(D.value===!0){if(k=d.value,n.type==="daterange"){const A=[d.value[0]];Array.isArray(q.value)?A[1]=q.value[1]??q.value[0]:A[1]=D.value,A[0]||(A[0]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),A[1]||(A[1]=n.valueFormat?Me.format(new Date,n.valueFormat):new Date),d.value=A}else d.value=q.value;s("update:modelValue",d.value)}else Xe(q.value,d.value)&&(D.value=!0)};B(),l.watch([()=>n.longTerm],([A])=>{D.value!==A&&B()}),l.watch([()=>d.value],([A])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(A))try{let z=A[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Me.format(z,n.valueFormat));let Z=Array.isArray(q.value)?q.value[1]:q.value;(z===Z||Array.isArray($.value)&&$.value.findIndex(T=>z==T)!==-1)&&(G=!0)}catch(z){console.error(z)}D.value!==G&&(D.value=G)},{immediate:!0})}const X=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),U=l.ref(),ee=l.ref(),le=/^\d+$/,I=(B,A)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(B,A):le.test(B)&&B.length===n.flashFillThreshold,w=(B,A)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(B,A);else{const Z=n.flashFillFormat??"YYYYMMDD";G=Me.parser(B,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Me.format(G,z)},F=B=>B?B.endsWith("range"):!1,P=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[0]=G,g(z)}else g(G)}},p=B=>{if(!B.target)return;const A=B.target.value??"";if(I(A,n.type)){const G=w(A,n.type);if(F(n.type)){const z=Array.isArray(d.value)?[...d.value]:[];z[1]=G,g(z)}else g(G)}},H=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].addEventListener("input",P),B[1]&&B[1].addEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.addEventListener("input",P)}},_=()=>{if(n.flashFill&&U.value&&U.value.$el)if(F(n.type)){const B=U.value.$el.querySelectorAll("input.el-range-input");B[0]&&B[0].removeEventListener("input",P),B[1]&&B[1].removeEventListener("input",p)}else{const B=U.value.$el.querySelector("input.el-input__inner");B&&B.removeEventListener("input",P)}};return l.onMounted(H),l.onBeforeUnmount(_),$e({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const A={...r.attrs,key:V.value,type:h.value,ref:ee,class:S.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:y.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:M,onFocus:j,onBlur:L,onCalendarChange:O,onPanelChange:R,onVisibleChange:N},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const z=[],Z=l.h(v.ElDatePicker,A,G);z.push(Z);const te={default:()=>z};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),W){if(D.value){const ne=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),ce={class:X.value},ye=l.h("div",ce,{default:()=>[ne,fe]});z.push(ye)}if(!i.value&&!a.value){const ne={label:x.value||E.value,disabled:i.value||a.value,modelValue:D.value,"onUpdate:modelValue":Y},fe=l.h(v.ElCheckbox,ne),ce=l.h("div",{class:{[`${m}__append`]:!0}},[fe]);te.append=()=>ce}}const K={...ke(n,to,no),ref:U,class:{[`${m}__wrapper`]:!0,"has-append":W},hintText:b.value,hintVisible:C.value,prop:`${n.prop}_item`};return l.h(o,K,te)}}}}const{componentName:Ts,create:$s,scope:Cs}=ae("date-item"),sl=$s(Ss(Ts,Cs,Se)),lo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ns(e,t,o){return{props:{...xe,...Ie,...lo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=M=>{d.value=M,s("update:modelValue",M),s("change",M)};let h=he(n,"hintText"),m=l.ref(!1);const S=M=>{let R=M.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",R,M)},b=M=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let R=M.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,M)},C=()=>{s("clear","")},j=M=>{s("visible-change",M)},L=l.ref();return $e({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const O={...r.attrs,ref:L,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:C,onFocus:S,onBlur:b,onVisibleChange:j},R={},N=[],E=l.h(v.ElTimePicker,O,R);N.push(E);const x={default:()=>N};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const $={...ke(n,lo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,$,x)}}}}const{componentName:Es,create:ks,scope:Is}=ae("time-item"),ul=ks(Ns(Es,Is,Se)),oo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Vs(e,t,o){return{props:{...xe,...Ie,...oo},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=L=>{d.value=L,s("update:modelValue",L),s("change",L)};let h=he(n,"hintText"),m=l.ref(!1);const S=L=>{let O=L.target.value;c.value=!0,ge(h.value)||(m.value=!0),s("focus",O,L)},b=L=>{setTimeout(()=>{m.value&&(m.value=!1),c.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),s("blur",O,L)},C=()=>{s("clear","")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},handleOpen:()=>{j?.value.handleOpen()},handleClose:()=>{j?.value.handleClose()}}),()=>{const M={...r.attrs,ref:j,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":g,onClear:C,onFocus:S,onBlur:b},O={},R=[],N=l.h(v.ElTimeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,oo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Os,create:Ps,scope:Ds}=ae("time-select-item"),cl=Ps(Vs(Os,Ds,Se));function ro(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 ao(e,t,o=20){if(typeof t=="string"&&(t=we(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ko(`${e}`,`${t}`);return ro(n)}else{let n=Yn(`${e}`,Wo(`${t}`),20);return ro(n)}}function Fs(e,t=-1,o=!1,n=3,r=","){return Xt(e,t,o,n,r)}function io(e,t,o,n,r=!0){if(e==="")return"";if(e=Yo(e),t=we(t),t==1)return e;if(n)e=ao(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(we(o)+2,"0"):e=Yn(e,1,we(o)));else{let a=-1*t;e=ao(e,a)}return e}function so(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ie(t.minInclude),r=An(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ie(t.maxInclude),r=An(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const uo={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 Rs(e,t,o){return{props:{...xe,...Ie,...uo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=he(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,k,D])=>{if(ge($)){c.value="";return}const Y=io($,k,D,!1);c.value!==Y&&(c.value=Y)},{immediate:!0});const d=l.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:y}=_e.useFoxI18n(t),V=l.computed(()=>{let $=n.placeholder??"";return!u.value&&!ge(c.value)?$=Fs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=y(["placeholder",$]),$}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),m=De(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const S=l.ref(""),b=l.computed(()=>{let $=S.value;return ge($)&&($=n.errorTip??""),$}),C=l.ref(""),j=l.ref(!1),L=($,k)=>{if($=`${$}`,ge($)){c.value="",f.value="",k.forEach(D=>{s(D,"")}),ie(n.showTip)&&j.value&&(j.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(c);return}}if($!="-"){if(!nr($)){l.triggerRef(c);return}if(n.integerLength!=-1&&lr($)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&or($)>Number(n.decimalLength)){l.triggerRef(c);return}let D=so($,n);if(D.maxValid===!1){S.value=D.message,l.triggerRef(c);return}}else if(n.min!=null&&we(n.min)>=0){l.triggerRef(c);return}C.value=$,ie(n.showTip)&&(j.value=$.length>0),c.value=$,f.value=io($,n.rates,n.precision,!0),k.forEach(D=>{s(D,f.value)})},M=$=>{L($,["update:modelValue","input"])},O=$=>{L($,["update:modelValue","change"])},R=$=>{if(u.value=!0,ie(n.showTip)){let k=c.value;ge(k)&&(k=n.hintText),ge(k)||(C.value=k,j.value=!0)}S.value="",s("focus",f.value,$)},N=$=>{if(setTimeout(()=>{u.value=!1,ie(n.showTip)&&j.value===!0&&(j.value=!1)},0),!ge(c.value)){let k=so(c.value,n);if(k.minValid===!1||k.maxValid===!1){S.value=k.message;return}}s("update:modelValue",f.value,$),s("blur",f.value,$)},E=()=>{s("clear","")},x=l.computed(()=>At(n.unit)>0),q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},select:()=>{q?.value.select()}}),()=>{const k={...Ge(r.attrs),ref:q,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:M,onChange:O,onFocus:R,onBlur:N},D={};r.slots.prepend&&(D.prepend=r.slots.prepend),r.slots.append&&(D.append=r.slots.append),r.slots.prefix&&(D.prefix=r.slots.prefix),r.slots.suffix?D.suffix=r.slots.suffix:x.value&&(D.suffix=()=>[n.unit]);const Y=[],W=l.h(v.ElInput,k,D);Y.push(W);const X={default:()=>Y};r.slots.default&&(X.label=r.slots.default),r.slots.fixedTip&&(X.fixedTip=r.slots.fixedTip);const ee={...ke(n,uo),errorTip:b.value,hintText:C.value,hintVisible:j.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,X)}}}}const{componentName:As,create:Ls,scope:Ms}=ae("money-item"),fl=Ls(Rs(As,Ms,Se)),co={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 Bs(e,t,o){return{props:{...xe,...Ie,...co},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0,[`${y}__append`]:M.value})),g=l.computed(()=>({[`${y}__unit`]:!0})),h=R=>{d.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)};let S=he(n,"hintText"),b=l.ref(!1);const C=R=>{let E=R.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",E,R)},j=R=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let E=R.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,R)},L=()=>{s("clear","")},M=l.computed(()=>At(n.unit)>0),O=l.ref();return $e({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()}}),()=>{const N={...Ge(r.attrs),ref:O,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onChange:m,onInput:h,onFocus:C,onBlur:j},E={},x=[],q=l.h(v.ElInputNumber,N,E);x.push(q);const $={default:()=>x};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const D={...ke(n,co),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};if(r.slots.append)$.append=r.slots.append;else if(M.value){const W={class:g.value},X=l.h("div",W,[n.unit]);$.append=()=>X}return l.h(o,D,$)}}}}const{componentName:_s,create:qs,scope:js}=ae("input-number-item"),dl=qs(Bs(_s,js,Se));function Ue(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 zs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Hs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=He(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}function Hn(e,t,o){const n=Ue(e,t),r=Ue(e,o);if(n!==r)return!1;const a=ct(e,t),i=ct(e,o);return a===i}function _r(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=_r(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ue(e,f)===s;else if(o==="item")u=Hn(e,f,s);else{let c=ct(e,f);c==null&&(c=Ue(e,f)),u=c===s}if(u){r.push(f),a=zs(e,f);break}}if(!u)break}}return r}function Ws(e){return{text:e,value:e}}const fo={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 Ys(e,t,o){return{props:{...xe,...Ie,...fo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),y=l.computed(()=>d.value?d.value.map(B=>Array.isArray(B)?B.map(G=>Ue(n,G)).join(" "):Ue(n,B)).join(" "):""),V=(_,B,A,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===_)return;c.value=_;const T=l.toRaw(_);if(G){const K=H?.value.getCheckedNodes();if(K)if(n.multiple){const Q=[];K.forEach(ne=>{const ce=(ne.pathNodes??[]).map(ye=>ye.data);Q.push(ce)}),s("update:pathNodes",Q)}else{const ne=(K[0]?.pathNodes??[]).map(fe=>fe.data);s("update:pathNodes",ne)}s("update:modelValue",T),s("change",T)}return}const z=_r(n,_,B,A);if(z===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Z=z[z.length-1];if(E.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const T=[];z.forEach(K=>{const Q=`${Ue(n,K)}`;T.push(Q)}),T.length>0&&(R.value=T.join(n.separator))}else R.value=null;let te=!0;if(z.length!==d.value.length)te=!1;else for(let T=0;T<z.length;T++){const K=z[T],Q=d.value[T];if(Array.isArray(K)){if(!Array.isArray(Q)||K.length!==Q.length)te=!1;else for(let ne=0;ne<K.length;ne++)if(!Hn(n,K[ne],Q[ne])){te=!1;break}}else Hn(n,K,Q)||(te=!1);if(!te)break}if(!te){d.value=z;let T=[],K=[];z.forEach(ne=>{if(Array.isArray(ne)){let fe=[],ce=[];for(let ye of ne)fe.push(ct(n,ye)),n.valueType==="text"?ce.push(Ue(n,ye)):n.valueType==="item"?ce.push(ye):ce.push(ct(n,ye));T.push(fe),K.push(ce)}else T.push(ct(n,ne)),n.valueType==="text"?K.push(Ue(n,ne)):n.valueType==="item"?K.push(ne):K.push(ct(n,ne))}),c.value=T;const Q=l.toRaw(K);G&&(s("update:pathNodes",z),s("update:modelValue",Q),s("change",Q))}},g=l.ref([]),h=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,_=>ie(_)),m=Ks(),S=async(_,B)=>{if(_){const A=await m.load("cascader",_,B);if(A.length>0)if(typeof A[0]=="string"){let Z=A.map(te=>Ws(te));g.value=Z}else g.value=A}};l.watch([()=>n.source,()=>n.params],async([_,B])=>{S(_,B)},{immediate:!(h.value||n.lazy)});let b=!1;const C=()=>{b||(b=!0,S(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([_,B])=>{V(B,n.valueType,_,!1),s("setValue",B)}),n.lazy&&V(n.modelValue,"value",[],!1);let j=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(j=async _=>{if(_!=null){L.value=!0;try{const B=await n.remoteMethod(_);g.value=B}catch(B){console.error(B)}L.value=!1}});const M=l.ref(!1),O=e,R=l.ref(null),N=l.computed(()=>({[O]:!0,"is-incomplete":R.value&&R.value.length>0})),E=l.computed(()=>{let _={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(_.multiple=!0),n.props&&Object.assign(_,n.props),n.lazy&&(_.lazy=!0,typeof n.lazyLoad=="function"?_.lazyLoad=n.lazyLoad:_.lazyLoad=async(B,A)=>{const G=await m.load("cascader",n.source,B,!0);if(B?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===B.level){const z=B.pathLabels??[];let Z=[];z.forEach(te=>{te&&Z.push(te)}),Z.length>0&&(R.value=Z.join(n.separator))}else R.value=null;A(G)}),_}),x=_=>{n.allowCreate?(s("update:modelValue",_),s("change",_),c.value=_):V(_,"value",g.value,!0)};let q=he(n,"hintText"),$=l.ref(!1);const k=_=>{let A=_.target.value;M.value=!0,ge(q.value)||($.value=!0),s("focus",A,_)},D=_=>{setTimeout(()=>{$.value&&($.value=!1),M.value=!1},0);let A=_.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),w.value||s("blur",A,_)},Y=()=>{s("clear","")},W=l.ref(!1);let X=null;const U=()=>{n.showTooltip&&W.value===!1&&(X&&clearTimeout(X),X=setTimeout(()=>{W.value=!0},150))},ee=()=>{X&&(clearTimeout(X),W.value=!1,X=null)},le=l.computed(()=>W.value||$.value),I=l.computed(()=>W.value?y.value:q.value),w=l.ref(!1),F=_=>{w.value=_,s("visible-change",_),_||s("selected")},P=_=>{s("remove-tag",_)},p=_=>{s("expand-change",_)},H=l.ref();return $e({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},getCheckedNodes:()=>H?.value.getCheckedNodes()}),()=>{const B={...r.attrs,ref:H,class:N.value,props:E.value,clearable:n.clearable,placeholder:R.value||f.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:Y,onChange:x,onFocus:k,onBlur:D,onVisibleChange:F,onRemoveTag:P,expandChange:p};typeof j=="function"&&(B["remote-method"]=j,B.loading=L.value);const A={};r.slots.option&&(A.default=r.slots.option),r.slots.empty&&(A.empty=r.slots.empty);const G=[],z=l.h(v.ElCascader,B,A);G.push(z);const Z={default:()=>G};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const T={...ke(n,fo),hintText:I.value,hintVisible:le.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:U,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,Z)}}}}const{componentName:Gs,create:Us,scope:Xs}=ae("cascader-item"),hl=Us(Ys(Gs,Xs,Se)),ho={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Zs(e,t,o){return{props:{...xe,...Ie,...ho},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=_e.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=he(n,"modelValue",null,s),y=e,V=l.computed(()=>({[y]:!0})),g=O=>{d.value=O,s("update:modelValue",O),s("input",O)},h=O=>{s("change",O)},m=O=>{s("select",O)};let S=he(n,"hintText"),b=l.ref(!1);const C=O=>{let N=O.target.value;c.value=!0,ge(S.value)||(b.value=!0),s("focus",N,O)},j=O=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let N=O.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),s("blur",N,O)},L=()=>{s("clear","")},M=l.ref();return $e({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},select:()=>{M?.value.select()}}),()=>{const R={...r.attrs,ref:M,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:L,onChange:h,onInput:g,onFocus:C,onBlur:j,onSelect:m},N={};r.slots.prepend&&(N.prepend=r.slots.prepend),r.slots.append&&(N.append=r.slots.append),r.slots.prefix&&(N.prefix=r.slots.prefix),r.slots.suffix&&(N.suffix=r.slots.suffix),r.slots.option&&(N.default=r.slots.option);const E=[],x=l.h(v.ElAutocomplete,R,N);E.push(x);const q={default:()=>E};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,ho),hintText:S.value,hintVisible:b.value,prop:`${n.prop}_item`};return l.h(o,k,q)}}}}const{componentName:Js,create:Qs,scope:eu}=ae("autocomplete-item"),ml=Qs(Zs(Js,eu,Se));function tu(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(y=>y[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(y=>y[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let nu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function lu(){const e=l.getCurrentInstance();return new nu(e.proxy)}const qr={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 ou(e,t){return{props:{...qr},setup(o,{attrs:n,slots:r}){const a=lu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=tu(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:qh,create:ru,scope:jh}=ae("mapping"),Ft=ru(ou());function au(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function iu(e,t){return{props:{...qr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=au(i.row,i.column.property);return r.default?l.h(Ft,{...o,modelValue:s},{default:r.default}):l.h(Ft,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(v.ElTableColumn,{...n},a)}}}}const{componentName:zh,create:su,scope:Hh}=ae("table-mapping-column"),gl=su(iu()),uu=Symbol.for("TableStateKey");function mo(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function cu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(uu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=mo(s.row,s.column.property),f=a?mo(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},y=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[y])}};return l.h(v.ElTableColumn,{...n},i)}}}}const{componentName:Kh,create:fu,scope:Wh}=ae("table-radio-column"),pl=fu(cu()),du={},hu={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"},mu=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),gu=[mu];function pu(e,t){return l.openBlock(),l.createElementBlock("svg",hu,gu)}const vu=qe(du,[["render",pu]]),{componentName:Yh,create:yu,scope:Gh}=ae("table-setting"),bu={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:"不固定"}},wu=yu({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:vu,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...bu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed===""||p.fixed===!0||p.fixed==="left")),i=l.computed(()=>r.value.filter(p=>p.label===""||p.type?!1:p.fixed==="right")),s=l.computed(()=>r.value.filter(p=>!(p.label===""||p.type||p.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=p=>p.length>1,y=(p,H)=>{Array.isArray(p)&&Array.isArray(H)&&p.forEach(A=>{H.some(G=>G.prop===A.prop?(A.label=G.label,!0):!1)});const _=[];r.value=p.map((A,G)=>(!(A.label===""||A.type)&&A.visible!==!1&&_.push(A.prop),{...A,sortIndex:G})),s.value.length+a.value.length+i.value.length===_.length?b.value=!0:_.length>0&&(C.value=!0),M.value=_},V=p=>p?p.type?p.type:p.label?p.prop:"":"",g=(p,H)=>{if(p.length!==H.length)return!1;const _=p.map(B=>V(B));for(let B of H){const A=V(B);if(_.indexOf(A)===-1)return!1}return!0},h=p=>{if(!p){const H=e.tableRef.getColumnSetting(),_=H.srcColumnPropertyList;n=_.map((B,A)=>({...B,sortIndex:A})),p=H.columnPropertyList,p&&p.length>0&&g(_,p)||(p=_)}y(p,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},S=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),C=l.ref(!1),j=p=>{const H=[];r.value.forEach(B=>{p&&!(B.label===""||B.type)&&H.push(B.prop),B.visible=p}),b.value=!1,C.value=!1,s.value.length+a.value.length+i.value.length===H.length?b.value=!0:H.length>0&&(C.value=!0),M.value=H,m()},L=()=>{h(n),m()},M=l.ref([]),O=p=>{r.value.forEach(_=>{if(_.label===""||_.type)return;const B=p.indexOf(_.prop)!==-1;_.visible=B}),b.value=!1,C.value=!1;const H=s.value.length+a.value.length+i.value.length;p.length===H?b.value=!0:p.length>0&&(C.value=!0),m()},R=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const N={currentRow:null,index:null,roleType:null},E=p=>p?p.dataset&&p.dataset.role==="row"?p:p.tagName.toLowerCase()!=="body"?(p=p.parentElement,E(p)):null:null,x=p=>{const H=p.currentTarget;H&&H.dataset&&(N.roleType=H.dataset.roleType,N.index=H.dataset.index)},q=p=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null,N.roleType=null},$=p=>{const H=p.currentTarget;p.relatedTarget;const _=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;N.roleType===B&&(p.preventDefault(),N.currentRow&&N.currentRow!==_&&N.currentRow.classList.remove("is-dragover"),_.classList.add("is-dragover"),N.currentRow=_)},k=p=>{p.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},D=p=>{const H=p.currentTarget,_=E(H);if(!_)return;const B=_.dataset&&_.dataset.roleType;if(N.roleType!==B)return;p.preventDefault();const A=Number(N.index),G=Number(_.dataset.index);if(A!==G){if(A<G){const z=r.value[A];r.value.splice(A,1),r.value.splice(G,0,z)}else{const z=r.value[A];r.value.splice(A,1),r.value.splice(G+1,0,z)}y(r.value,n),m()}},Y=p=>{const H=r.value[p];H.fixed="left",m()},W=p=>{const H=r.value[p];H.fixed="right",m()},X=p=>{const H=r.value[p];H.fixed=void 0,m()},U=new Map;let ee=null;function le(p){const H=document.createRange();return H.setStart(p,0),H.setEnd(p,p.childNodes.length),H.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:b,isIndeterminate:C,handleCheckAllChange:j,handleReset:L,checkedValue:M,handleCheckChange:O,onShow:R,onDragStart:x,onDragEnd:q,onDragOver:$,onDragLeave:k,onDrop:D,toLeftFixed:Y,toRightFixed:W,toUnFixed:X,checkboxLabelStyle:S,onMouseOverForOverflowText:(p,H,_)=>{const B=p.currentTarget;if(B){const A=Math.floor(B.offsetWidth);if(Math.floor(le(B))>A){let z=U.get(H);if(z){if(z===ee)return;Pe.hide(z)}z=Pe.show(B,_,{type:"text",placement:"top",closeOnClick:!1}),U.set(H,z),ee=z}}},onMouseLeaveForOverflowText:(p,H)=>{const _=U.get(H);_&&(Pe.hide(_),_===ee&&(ee=null))},onMouseOverForTip:(p,H)=>{const _=p.currentTarget;_&&(ee&&Pe.hide(ee),ee=Pe.show(_,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:p=>{ee&&(Pe.hide(ee),ee=null)}}}}),xu={class:"fox-table-setting"},Su={class:"fox-table-setting__header"},Tu={class:"fox-table-setting__body"},$u={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Cu={key:0,class:"fox-table-setting__body-title"},Nu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],ku={class:"tools-item"},Iu={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"},Ou=["data-index","draggable"],Pu=["onMouseover","onMouseleave"],Du={class:"tools-item"},Fu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ru={key:0,class:"fox-table-setting__body-title"},Au=["data-index","draggable"],Lu=["onMouseover","onMouseleave"],Mu={class:"tools-item"};function Bu(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),y=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",xu,[l.createElementVNode("div",Su,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Tu,[l.createVNode(V,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",$u,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Cu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Eu)]),_:2},1032,["label"]),l.createElementVNode("div",ku,[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,Nu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Iu,[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(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Pu)]),_:2},1032,["label"]),l.createElementVNode("div",Du,[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,Ou))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Fu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Ru,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(y,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Lu)]),_:2},1032,["label"]),l.createElementVNode("div",Mu,[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,Au))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const hn=qe(wu,[["render",Bu]]);let _u=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=He(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ze(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function qu(){const e=l.getCurrentInstance();return new _u(e.proxy)}class ju{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=He(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=He(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=He(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function jr(){const e=l.getCurrentInstance();return new ju(e.proxy)}const zu=Symbol.for("TableStateKey"),go={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"}},po={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Nn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Hu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ku(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function En(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Ku(n,r);if(a!==i)return!1}return!0})}function Wu(e,t,o){return{inheritAttrs:!1,props:{...xe,...Ie,...go,...po,...Nn,...Hu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=_e.useFoxI18n(t),{emitEvent:i,broadcast:s}=Te({componentName:e,validateHandler:{getValue(...J){return O.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),y=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),g=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),m=l.ref(n.pageSize),S=ie(n.infiniteLoad);S||(l.watch(()=>n.pageIndex,J=>{h.value=J}),l.watch(()=>n.pageSize,J=>{m.value=J}),l.watch([h,m],([J,oe],[re,se])=>{oe!==se&&(h.value=1,J=1),x(n.data,J,oe,g.value)}));const b=()=>Array.isArray(n.data)?!0:ie(n.autoLoad);b()&&l.watch([()=>n.data,g],async([J,oe],[re,se])=>{b()&&(J!==re&&(N=!0),!(!Array.isArray(J)&&Xe(J,re)&&Xe(oe,se))&&(S?(h.value=0,L.value=!0,O.value=[],$()):h.value===1?x(J,h.value,m.value,oe):h.value=1))},{deep:!0});const C=J=>{h.value=J,i("page-index-change",J)},j=J=>{m.value=J,i("page-size-change",J)},L=l.ref(!0),M=l.ref(0),O=l.ref(),R=qu();let N=!0;const E=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,J=>ie(J)),x=async(J,oe,re,se,Ve)=>{N=!1;try{if(Ve===!0){if(!L.value)return!1;const me=await R.load("table",J,oe,re,se,N,a.value);return M.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,O.value,me.page),setTimeout(()=>{i("loaded-data")},250),(O.value?.length??0)>=M.value)||me.page.length<re?(L.value=!1,!1):!0}else{const me=await R.load("table",J,oe,re,se,N,a.value);return M.value=me.totalSize,O.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),M.value=0,O.value=[]}return!1};let q=!1;const $=async()=>{if(!q){if(q=!0,!L.value){q=!1;return}h.value+=1,await x(n.data,h.value,m.value,g.value,!0),q=!1}},k=(J={},oe=!1)=>new Promise(async re=>{V.value={...l.toRaw(J??{})},oe||(h.value=n.pageIndex??1),S===!0?(h.value=0,O.value=[],L.value=!0,await $()):await x(n.data,h.value,m.value,g.value),re()}),D=()=>{M.value=0,O.value=[],S===!0&&(h.value=0,L.value=!0)};let Y=!1;const W=()=>{Y||(Y=!0,k())},X=l.ref(null);if(S===!0){let J=null;const oe=()=>{X.value&&(J=new IntersectionObserver(se=>{let Ve=!1;for(let me of se)if(me.intersectionRatio>0){Ve=!0;break}Ve&&$()}),J.observe(X.value))},re=()=>{!J||!X.value||(J.unobserve(X.value),J=null)};l.onMounted(oe),l.onBeforeUnmount(re)}b()&&!E.value&&k();const U=l.ref(null);l.provide(zu,{currentRow:U});const ee=(J,oe)=>{U.value=J,i("current-change",J,oe)},le=(J,oe,re)=>{i("row-click",J,oe,re),ie(n.rowClickSelectable)===!0&&be?.value.toggleRowSelection(J)},I=[],w=(J,oe)=>{if(i("expand-change",J,oe),ie(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=I.length;I.splice(0,re)}else{I.forEach(se=>{se!==J&&be?.value.toggleRowExpansion(se,!1)});const re=I.length;I.splice(0,re,J)}setTimeout(ce,0)},F=r.attrs.id??n.prop??r.attrs.name,P=jr(),p=l.ref([]);let H=[];const _=()=>({srcColumnPropertyList:H.map(oe=>({...oe})),columnPropertyList:p.value}),B=J=>{p.value=[...J],G()},A=async()=>{const J=await P.load(F);J&&(p.value=J)},G=()=>{P.save(F,p.value)},z=()=>{P.remove(F)};A();const Z=J=>J?J.type?J.type:J.label?J.prop:"":"",te=()=>typeof r.slots.default=="function"?r.slots.default():[],T=(J,oe)=>{for(let re in oe){const se=oe[re];typeof se!="function"&&(J[re]=se)}},K=l.computed(()=>{const J=te(),oe=new Map;if(H=[],J.forEach(re=>{const se=re;if(!se.props)return;const Ve=Z(se.props);oe.set(Ve,re);const me={label:"",prop:""};T(me,se.props),H.push(me)}),p.value.length===H.length){const re=[];for(let se of p.value){const Ve=Z(se),me=oe.get(Ve);if(!me)return J;if(se.visible===!1)continue;const tt=me;tt.props.fixed=se.fixed,re.push(tt)}return re}return J}),Q=l.shallowRef(new Map),ne=({row:J,column:oe,rowIndex:re,columnIndex:se})=>{const Ve=`${re}_${oe.property}`,me=`${re}_${se}`;let tt=Q.value.get(Ve);return tt||(tt=Q.value.get(me)),tt??""},fe=J=>typeof J=="function"?oe=>{const re=[];let se=ne(oe);return se&&re.push(se),se=J(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:ne,ce=()=>{Q.value.entries().forEach(([J,oe])=>{const re=`${J}_item`;s.emitToChildren({name:re},"setCustomClassName",oe)})},ye=(J,oe,re)=>{const se=`${J}_${oe}`;re?Q.value.set(se,re):Q.value.delete(se),l.triggerRef(Q)},Ke=()=>{Q.value.clear(),l.triggerRef(Q)},Le=l.shallowRef(new Map),rt=({rowIndex:J})=>{const oe=`${J}`;return Le.value.get(oe)??""},pn=J=>typeof J=="function"?oe=>{const re=[];let se=rt(oe);return se&&re.push(se),se=J(oe),se&&re.push(se),re.length===0?"":re.join(" ")}:rt,Qr=(J,oe)=>{const re=`${J}`;oe?Le.value.set(re,oe):Le.value.delete(re),l.triggerRef(Le)},ea=()=>{Le.value.clear(),l.triggerRef(Le)},be=l.ref();return $e({clearSelection:()=>be?.value.clearSelection(),getSelectionRows:()=>be?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{be?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!O.value)return;const re=En(O.value,J);re.length!==0&&re.forEach(se=>{be?.value.toggleRowSelection(se,oe)})},toggleAllSelection:()=>{be?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{be?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!O.value)return;const re=En(O.value,J);re.length!==0&&re.forEach(se=>{be?.value.toggleRowExpansion(se,oe)})},setCurrentRow:J=>{be?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!O.value)return;const oe=En(O.value,J);oe.length!==0&&be?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{be?.value.clearSort()},clearFilter:J=>{be?.value.clearFilter(J)},doLayout:()=>{be?.value.doLayout()},sort:(J,oe)=>{be?.value.sort(J,oe)},scrollTo:(J,oe)=>{be?.value.scrollTo(J,oe)},setScrollTop:J=>{be?.value.setScrollTop(J)},setScrollLeft:J=>{be?.value.setScrollLeft(J)},loadData:k,clearData:D,getData(){return O.value},getTotalSize(){return M.value},getPageIndex(){return h.value},getPageSize(){return m.value},getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z,setCellClassName:ye,clearCellClassName:Ke,setRowClassName:Qr,clearRowClassName:ea}),()=>{const oe={...Ge(r.attrs),onCurrentChange:ee,onRowClick:le,onExpandChange:w,data:O.value,ref:be,class:f.value,"cell-class-name":fe(n.cellClassName),"row-class-name":pn(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>K.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),S===!0){const je=[];if(L.value){const St=l.h(Ee.Loading,{class:`${u}__infinite-icon`});je.push(St);const yn=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);je.push(yn)}else{const St=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);je.push(St)}const at={ref:X,class:`${u}__infinite`},vn=l.h("div",at,je);re.append=()=>vn}const se=l.h(v.ElTable,oe,re),Ve=[];if(Ve.push(se),!S){let je=null;if(typeof r.slots.pagination=="function")je=r.slots.pagination();else if(n.showPagination){const at={class:y.value,total:M.value,pageSize:m.value,"onUpdate:pageSize":j,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":C,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};je=l.h(v.ElPagination,at)}if(n.showSetting){const at=[];je&&at.push(je);const vn=l.h(v.ElIcon,{class:c.value},{default:()=>l.h(Ee.Setting)}),St=rr(n,Nn),yn=l.h(hn,{...St,tableRef:{getColumnSetting:_,setColumnSetting:B,removeColumnSetting:z}},{default:()=>vn});at.push(yn);const ta=l.h("div",{class:d.value},at);Ve.push(ta)}else je&&Ve.push(je)}const me={default:()=>Ve},xt={...ke(n,go,po,Nn),prop:`${n.prop}_item`};return xt.contentClass=`${u}__wrap`,xt.errorMarkClass="is-table-error",E.value&&b()&&(xt["appear-listen"]=!0,xt.onAppear=W),l.h(o,xt,me)}}}}const{componentName:Yu,create:Gu,scope:Uu}=ae("table-item"),vl=Gu(Wu(Yu,Uu,Se));function bt(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 Xu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Zu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ju(){const e=l.getCurrentInstance();return new Zu(e.proxy)}function zr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=bt(e,t),r=bt(e,o);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,o);return a===i}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 i=!1;if(o==="text")i=bt(e,a)===t;else if(o==="item")i=zr(e,a,t);else{let s=Rt(e,a);s==null&&(s=bt(e,a)),i=s===t}if(i){r=a;break}}return r}function ec(e){return{text:e,value:e}}function tc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const vo={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 nc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Ie,...vo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(O,R,N,E=!0)=>{const x=Qu(n,O,R,N);if(x===null){if(f.value===null)return;f.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!zr(n,x,f.value)){u.value=O;const $=l.toRaw(x);f.value=$;let k=null;n.valueType==="text"?k=bt(n,$):n.valueType==="item"?k=$:k=Rt(n,$),E&&(s("update:modelValue",k),s("change",k))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,O=>ie(O)),V=Ju(),g=async(O,R)=>{if(O){const N=await V.load("radio",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map($=>ec($));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),C=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=Rt(n,E),$=bt(n,E);let k=Xu(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=tc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,label:q,size:n.size,border:ie(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElRadioButton,W,{default:()=>[$]})):typeof R=="function"?N.push(l.h(v.ElRadio,W,{default:()=>R(E)})):N.push(l.h(v.ElRadio,W,{default:()=>[$]}))}),N};return()=>{const R={...Ge(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElRadioGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,vo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:lc,create:oc,scope:rc}=ae("radio-item"),yl=oc(nc(lc,rc,Se));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ac(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ic=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function sc(){const e=l.getCurrentInstance();return new ic(e.proxy)}function Hr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=wt(e,t),r=wt(e,o);if(n!==r)return!1;const a=vt(e,t),i=vt(e,o);return a===i}function uc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=wt(e,i)===a;else if(o==="item")s=Hr(e,i,a);else{let u=vt(e,i);u==null&&(u=wt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function cc(e){return{text:e,value:e}}function fc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const yo={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 dc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Ie,...yo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(O,R,N,E=!0)=>{const x=uc(n,O,R,N);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let q=!0;if(x.length!==f.value.length)q=!1;else for(let $=0;$<x.length;$++){const k=x[$],D=f.value[$];if(!Hr(n,k,D)){q=!1;break}}if(!q){f.value=x;let $=[],k=[];x.forEach(Y=>{$.push(vt(n,Y)),n.valueType==="text"?k.push(wt(n,Y)):n.valueType==="item"?k.push(Y):k.push(vt(n,Y))}),u.value=$;const D=l.toRaw(k);E&&(s("update:modelValue",D),s("change",D))}},d=l.ref([]),y=De(l.computed(()=>n.appearLoad),"appearLoad",Be.Near,O=>ie(O)),V=sc(),g=async(O,R)=>{if(O){const N=await V.load("checkbox",O,R);if(N.length>0)if(typeof N[0]=="string"){let q=N.map($=>cc($));d.value=q}else d.value=N}};l.watch([()=>n.source,()=>n.params],async([O,R])=>{g(O,R)},{immediate:!y.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([O,R])=>{c(R,n.valueType,O,!1),s("setValue",R)});const S=e,b=l.computed(()=>({[S]:!0,[`is-${n.direction}`]:!0})),C=O=>{c(O,"value",d.value,!0)};let j=he(n,"hintText"),L=he(n,"hintVisible");const M=(O,R)=>{const N=[];return O.forEach((E,x)=>{const q=vt(n,E),$=wt(n,E);let k=ac(n,E);a.value===!0&&(k=a.value),i.value===!0&&(k=i.value);const D=fc(n,E,x)??{},Y=`${q}_${x}`,W={...D,key:Y,class:n.itemClass,label:q,size:n.size,border:ie(n.border)};k&&(W.disabled=k),n.itemType==="button"?N.push(l.h(v.ElCheckboxButton,W,{default:()=>[$]})):typeof R=="function"?N.push(l.h(v.ElCheckbox,W,{default:()=>R(E)})):N.push(l.h(v.ElCheckbox,W,{default:()=>[$]}))}),N};return()=>{const R={...Ge(r.attrs),class:b.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:we(n.max),min:we(n.min),onChange:C},N=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>M(d.value,r.slots.text);const x=l.h(v.ElCheckboxGroup,R,E);N.push(x);const q={default:()=>N};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const k={...ke(n,yo),hintText:j.value,hintVisible:L.value,prop:`${n.prop??r.attrs.name}_item`};return y.value&&(k["appear-listen"]=!0,k.onAppear=m),l.h(o,k,q)}}}}const{componentName:hc,create:mc,scope:gc}=ae("checkbox-item"),bl=mc(dc(hc,gc,Se)),bo={modelValue:{type:[Number,String],required:!1}};function pc(e,t,o){return{props:{...xe,...Ie,...bo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",h=>we(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=l.ref(!1);const g=l.ref();return $e({}),()=>{const m={...Ge(r.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},S={},b=[],C=l.h(v.ElRate,m,S);b.push(C);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...ke(n,bo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:vc,create:yc,scope:bc}=ae("rate-item"),wl=yc(pc(vc,bc,Se)),wo={modelValue:{type:[Boolean,String,Number],required:!1}};function wc(e,t,o){return{props:{...xe,...Ie,...wo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let y=he(n,"hintText"),V=he(n,"hintVisible");const g=l.ref();return $e({}),()=>{const m={...Ge(r.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},S={},b=[],C=l.h(v.ElSwitch,m,S);b.push(C);const j={default:()=>b};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const M={...ke(n,wo),hintText:y.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,M,j)}}}}const{componentName:xc,create:Sc,scope:Tc}=ae("switch-item"),xl=Sc(wc(xc,Tc,Se)),xo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function $c(e,t,o){return{props:{...xe,...Ie,...xo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Re(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Te({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=he(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),y=L=>{u("update:modelValue",L),u("change",L)};let V=he(n,"hintText"),g=l.ref(!1);const h=L=>{let O=L.target.value;s.value=!0,ge(V.value)||(g.value=!0),u("focus",O,L)},m=L=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let O=L.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),b.value||u("blur",O,L)},S=()=>{u("clear","")},b=l.ref(!1),C=L=>{b.value=L,u("visible-change",L),L||u("selected")},j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const M={...Ge(r.attrs),ref:j,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":y,onClear:S,onFocus:h,onBlur:m,onVisibleChange:C},O={};r.slots.option&&(O.default=r.slots.option);const R=[],N=l.h(v.ElTreeSelect,M,O);R.push(N);const E={default:()=>R};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const q={...ke(n,xo),hintText:V.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,q,E)}}}}const{componentName:Cc,create:Nc,scope:Ec}=ae("tree-select-item"),Sl=Nc($c(Cc,Ec,Se)),kc={},Ic={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),Oc=[Vc];function Pc(e,t){return l.openBlock(),l.createElementBlock("svg",Ic,Oc)}const Dc=qe(kc,[["render",Pc]]),{componentName:Jh,create:Fc,scope:Qh}=ae("group-setting"),Rc={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:"到底部"}},Ac=Fc({components:{FoxPopover:v.ElPopover,FoxCheckbox:v.ElCheckbox,FoxCheckboxGroup:v.ElCheckboxGroup,FoxButton:v.ElButton,FoxIcon:v.ElIcon,DragIcon:Dc,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Rc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=jr(),s=I=>I.length>1,u=()=>{const I=[],w=[...a.value];a.value=w.map((P,p)=>(P.visible!==!1&&I.push(P.prop),{...P,sortIndex:p})),a.value.length===I.length?h.value=!0:I.length>0&&(m.value=!0),C.value=I},f=I=>{let w=null;if(typeof I=="string")w=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const P=I.$el??I;typeof P.querySelectorAll=="function"&&(w=P.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const F=[];return w.forEach(P=>{const p=P.querySelector(".label--string");let H="";p&&(H=p.textContent??"");const _=P.getAttribute("prop")??"",A=window.getComputedStyle(P,null).getPropertyValue("display");F.push({label:H,prop:_,sortIndex:0,visible:A!=="none"})}),F},c=()=>{if(!r){const I=f(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},d=async(I=!1)=>{const w=await i.load(e.groupProp),F=P=>{if(!P||!r)return;const p=r.map(H=>({...H}));Array.isArray(w)&&w.forEach(H=>{p.some(_=>{if(_.prop===H.prop){const B=_.label;return Object.assign(_,H),_.label=B,!0}return!1})}),a.value=p.sort((H,_)=>H.sortIndex-_.sortIndex),u(),I&&V(!1)};r?F(!0):tn(c,e.initDelay,5,50,!1,F)},y=()=>{const I=r??[];a.value=I.map(w=>({...w})),u(),V()},V=(I=!0)=>{I&&i.save(e.groupProp,a.value);const w=a.value.map(F=>({...F}));t("change",w)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),S=I=>{const w=[];a.value.forEach(P=>{I&&w.push(P.prop),P.visible=I}),h.value=!1,m.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(m.value=!0),C.value=w,V()},b=()=>{y()},C=l.ref([]),j=I=>{a.value.forEach(F=>{const P=I.indexOf(F.prop)!==-1;F.visible=P}),h.value=!1,m.value=!1;const w=a.value.length;I.length===w?h.value=!0:I.length>0&&(m.value=!0),V()},L=()=>{d()};l.onMounted(()=>{d(!0)});const M={currentRow:null,index:null},O=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,O(I)):null:null,R=I=>{const w=I.currentTarget;w&&w.dataset&&(M.index=w.dataset.index)},N=I=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},E=I=>{const w=I.currentTarget;I.relatedTarget;const F=O(w);F&&(I.preventDefault(),M.currentRow&&M.currentRow!==F&&M.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),M.currentRow=F)},x=I=>{I.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},q=I=>{const w=I.currentTarget,F=O(w);if(!F)return;I.preventDefault();const P=Number(M.index),p=Number(F.dataset.index);if(P!==p){if(P<p){const H=a.value[P];a.value.splice(P,1),a.value.splice(p,0,H)}else{const H=a.value[P];a.value.splice(P,1),a.value.splice(p+1,0,H)}u(),V()}},$=I=>{const w=a.value[I];a.value.splice(I,1),a.value.splice(0,0,w),u(),V()},k=I=>{const w=a.value[I];a.value.splice(I,1),a.value.push(w),u(),V()};n({refresh:()=>{r=null,d(!1)}});const D=new Map;let Y=null;function W(I){const w=document.createRange();return w.setStart(I,0),w.setEnd(I,I.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:S,handleReset:b,checkedValue:C,handleCheckChange:j,onShow:L,onDragStart:R,onDragEnd:N,onDragOver:E,onDragLeave:x,onDrop:q,checkboxLabelStyle:g,toTop:$,toBottom:k,onMouseOverForOverflowText:(I,w,F)=>{const P=I.currentTarget;if(P){const p=Math.floor(P.offsetWidth);if(Math.floor(W(P))>p){let _=D.get(w);if(_){if(_===Y)return;Pe.hide(_)}_=Pe.show(P,F,{type:"text",placement:"top",closeOnClick:!1}),D.set(w,_),Y=_}}},onMouseLeaveForOverflowText:(I,w)=>{const F=D.get(w);F&&(Pe.hide(F),F===Y&&(Y=null))},onMouseOverForTip:(I,w)=>{const F=I.currentTarget;F&&(Y&&Pe.hide(Y),Y=Pe.show(F,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{Y&&(Pe.hide(Y),Y=null)}}}}),Lc={class:"fox-group-setting"},Mc={class:"fox-group-setting__header"},Bc={class:"fox-group-setting__body"},_c={class:"fox-group-setting__body-list","data-role":"container"},qc=["data-index","draggable"],jc=["onMouseover","onMouseleave"],zc={class:"tools-item"};function Hc(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),y=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(y,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Lc,[l.createElementVNode("div",Mc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Bc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",_c,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,V.prop,V.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,jc)]),_:2},1032,["label"]),l.createElementVNode("div",zc,[l.createVNode(c,{onClick:g=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,qc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tl=qe(Ac,[["render",Hc]]),Kc=["aria-labelledby"],Wc=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),Yc=[Wc],Gc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Yc,14,Kc))}}),Uc=["aria-labelledby"],Xc=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),Zc=[Xc],$l=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Zc,14,Uc))}}),Jc=["aria-labelledby"],Qc=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),ef=[Qc],tf=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},ef,14,Jc))}}),nf=["aria-labelledby"],lf=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),of=[lf],rf=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},of,14,nf))}}),af=["aria-labelledby"],sf=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),uf=[sf],cf=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},uf,14,af))}}),ff={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}},So=(e,t)=>t[e.textKey],Ct=(e,t)=>t[e.valueKey],df=(e,t)=>t[e.visibleKey],To=(e,t)=>t[e.disabledKey],hf=(e,t)=>{const o=t[e.doitKey];return ie(o)},mf=(e,t)=>{const o=t[e.numKey];return o==null?null:we(t[o])},$o=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function gf(e,t,o,n=!1){return{props:{...ff},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{d.value!==I&&(d.value=I,W(!1))});const y=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),g=l.ref(),h=l.ref(!1),m=()=>{const I=!h.value;S(I)},S=I=>{const w=I;w?(h.value=w,setTimeout(()=>{y.value["fox-tabs-bar__popup--show"]=!0,y.value["fox-tabs-bar__popup--hide"]=!1},0)):(y.value["fox-tabs-bar__popup--show"]=!1,y.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),C=l.ref([]),j=(I,w)=>{C.value[w]=I},L=I=>w=>{j(w,I)},M=(I,w)=>{const F=b.value,P=C.value;if(!F||!P||!P[I])return;const p=P[I];let H=0;r.direction==="vertical"?H=p.offsetTop-(F.offsetHeight-p.offsetHeight)/2:H=p.offsetLeft-(F.offsetWidth-p.offsetWidth)/2,O(F,H,w?0:.3,r.direction)},O=(I,w,F,P)=>{let p=0;const H=P==="horizontal"?I.scrollLeft:I.scrollTop,_=F===0?1:Math.round(F*1e3/16);function B(){P==="horizontal"?I.scrollLeft+=(w-H)/_:I.scrollTop+=(w-H)/_,++p<_&&Gn(B)}B()},R=(I,w)=>{const F=Ct(r,I),P={};return P[`${e}__titles-item`]=!0,P.disabled=To(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0),r.ellipsis&&(P.ellipsis=!0),w&&(w.class&&(P[`${w.class}`]=!0),w.disabled===!0&&(P.disabled=w.disabled)),P},N=(I,w)=>{const F={};if(c.value>0){const P=Math.abs(c.value/2);r.direction==="vertical"?(F["margin-top"]=`${P}px`,F["margin-bottom"]=`${P}px`):(F["margin-left"]=`${P}px`,F["margin-right"]=`${P}px`)}return w&&w.style&&Object.assign(F,w.style),F},E=(I,w)=>`${Ct(r,I)??w}`,x=(I,w)=>{const F=Ct(r,I),P={};P[`${e}__popup-item`]=!0,P.disabled=To(r,I),P.active=F===d.value,r.shape&&(P[`${r.shape}`]=!0);const p=$o(r,I,w);return p&&p.disabled===!0&&(P.disabled=p.disabled),P},q=l.computed(()=>(r.data??[]).filter(w=>df(r,w)!==!1)),$=(I,w)=>{const F=Ct(r,I);if(d.value==F)return;const P=()=>{d.value=F,r.scroll&&M(w,!1),i("update:modelValue",F),i("change",I,w)};if(typeof r.beforeChange=="function"){const p=r.beforeChange(I,w);Uo(p)?p.then(H=>{H!==!1&&P()}).catch(()=>{P()}):p!==!1&&P()}else P()},k=(I,w)=>function(){$(I,w)},D=(I,w)=>{$(I,w),S(!1)},Y=(I,w)=>function(){D(I,w)},W=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(F=>Ct(r,F)===d.value);w!==-1&&M(w,I)};l.watch(()=>r.data,()=>{setTimeout(W,0)}),l.onMounted(()=>{W(!0)});const X=(I,w)=>{if(a.item)return a.item({item:I,index:w});const F=$o(r,I,w),P=[];if(a.text){const B=a.text({item:I,index:w});P.push(B)}else{const B=[];if(F?.doit===!0||hf(r,I)){const Z={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Z);B.push(te)}const A=F?.num??mf(r,I);if(A){let Z="";const te=we(A);te>=100?Z="99+":Z=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",T,[Z]);B.push(K)}const G={class:`${e}__titles-item-text`};B.push(So(r,I));const z=l.h("view",G,B);P.push(z)}const p={class:`${e}__titles-item-line`},H=l.h("view",p);P.push(H);const _={ref:L(w),class:R(I,F),style:N(I,F),key:E(I,w),onClick:k(I,w)};return l.h("view",_,P)},U=()=>{const I=a.default?a.default():[];if(I.length===0)for(let F=0;F<q.value.length;F++){const P=q.value[F],p=X(P,F);I.push(p)}const w={ref:b,class:u.value,style:f.value};return l.h("view",w,I)},ee=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const w={class:`${e}__navigation`,onClick:m};return l.h("view",w,[I])},le=()=>{const I=[];for(let F=0;F<q.value.length;F++){const P=q.value[F];let p=null;a.popupItem?p=a.popupItem({item:P,index:F}):p=So(r,P);const H={class:x(P,F),key:E(P,F),onClick:Y(P,F)},_=l.h("view",H,[p]);I.push(_)}const w={class:y.value,style:V.value};return l.h("view",w,I)};return()=>{const I=[],w=U();if(I.push(w),r.showQuickNavigation){const P=ee();I.push(P);const p=le();I.push(p)}const F={class:s.value};return l.h("view",F,I)}}}}const{create:pf,componentName:vf,scope:yf}=ae("tabs-bar"),Cl=pf(gf(vf,yf,Gc,!1)),Kr=Symbol("TabsStatesKey"),bf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function wf(e,t,o=!1){return{props:{...bf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};s.current.value===h&&(m.loaded=!0),i.value.push(m),l.triggerRef(i)},remove:h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&i.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=i.value.findIndex(S=>S.name===h);return m!==-1?s.current.value?i.value[m].loaded??!1:m===0:!1}};l.provide(Kr,s);const u=h=>{const m=i.value.findIndex(S=>S.name===h);m!==-1&&(i.value[m].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==m&&(s.direction.value=m)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let y=!0;const V=l.computed(()=>{const h={},m=i.value.length;if(m<=0)return h;const S=i.value.findIndex(b=>b.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${m*s.tabHeight.value}px`,S!==-1&&(h.transform=`translate(0, -${S*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${m*s.tabWidth.value}px`,S!==-1&&(h.transform=`translate(-${S*s.tabWidth.value}px, 0)`)),y&&(y=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const m=on(f.value);s.tabWidth.value=m.width,s.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(f.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},m=l.h("view",h,[a?.default?.()]),S={class:d.value,ref:f};return l.h("view",S,[m])}}}}const{create:xf,componentName:Sf,scope:Tf}=ae("tabs-container"),Nl=xf(wf(Sf,Tf,!1)),$f={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Cf(e,t,o){return{props:{...$f},setup(n,{emit:r,slots:a}){const i=l.inject(Kr);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?ie(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},y=n.emptyIcon??o,V=l.h(y,d),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),S={class:`${e}__empty`},b=l.h("view",S,[V,m]);f.push(b)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:Nf,componentName:Ef,scope:kf}=ae("tabs-pane"),El=Nf(Cf(Ef,kf,$l)),If={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 Vf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Co(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function No(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Of(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function kn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Eo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function ko(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function In(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Pf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=He(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ze(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function Df(){const e=l.getCurrentInstance();return new Pf(e.proxy)}function Ff(e,t,o,n){return{props:{...If},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=Df(),f=l.ref([]),c=l.computed(()=>f.value.filter(w=>Of(r,w)!==!1)),d=l.ref(-1),y=()=>{const w=r.modelValue,F=c.value.findIndex(P=>Co(r,P)===w);d.value!==F&&(d.value=F,r.scroll&&le(F,!1))};l.watch([()=>r.modelValue,c],()=>{y()});const V=w=>d.value===w,g=w=>{if(w<0&&w>=c.value.length)return!1;const F=c.value[w],p=(In(r,F,w)??{}).status??kn(r,F);return V(w)||p},h=l.computed(()=>{const w={[s]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),m=l.computed(()=>({})),S=(w,F,P,p,H)=>{const _={[`${s}__step`]:!0};return H&&(_[`${H}`]=!0),_[`${b.value}`]=!0,p&&(_["is-doit"]=!0),w===d.value?_["is-active"]=!0:F==="done"?_["is-done"]=!0:F==="error"?_["is-error"]=!0:F==="half"?_["is-half"]=!0:P?_["is-disabled"]=!0:_["is-normal"]=!0,_},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),C=(w,F={})=>{const P={...F};return b.value==="start"&&w===c.value.length-1?P.flex="0 0 auto":r.step?r.direction==="vertical"?P.height=r.step:P.width=r.step:P.flex="1 1 100%",P},j=(w,F)=>{let P={};if(F<c.value.length-1){const p=F+1;g(F)&&g(p)?r.direction==="vertical"?P.height="100%":P.width="100%":P.opacity="0"}return P},L=w=>c.value.length-1===w,M=(w,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>d.value||d.value===F)return;const P=d.value,p=F;d.value=F,r.scroll&&le(F,!1);const H=Co(r,w);i("update:modelValue",H);const _={fromIndex:P,currentIndex:p,item:w,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,_)},O=l.ref(!0),R=async(w,F)=>{try{const P=await u.load("stesbar",w,F);Array.isArray(P)&&(f.value=P),O.value=!1}catch(P){console.error("[FoxUI] Load StepsBar Data Fail",P),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,F])=>{w&&R(w,F)},{immediate:!0});const N=(w,F,P,p,H)=>{let _=null;if(a.icon)_=a.icon({item:w,index:F,status:p});else if(p==="done"){const A={};r.iconSize&&(A.width=r.iconSize,A.height=r.iconSize);const G=r.icon??o;_=l.h(G,A)}else{const A=P??`${F+1}`;_=l.h("span",{},[A])}const B={class:"fox-steps-bar__icon",onClick:()=>{H||M(w,F)}};return l.h("view",B,[_])},E=(w,F,P)=>{const p=l.h("i",{class:"fox-steps-bar__line-inner",style:j(w,F)});return l.h("view",{class:"fox-steps-bar__line"},[p])},x=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const P={};r.iconSize&&(P.width=r.markIconSize,P.height=r.markIconSize);const p=r.markIcon??n;w=l.h(p,P)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},q=(w,F,P,p,H)=>{const _=[];if(!L(F)){const G=E(w,F);_.push(G)}const B=N(w,F,P,p,H);_.push(B);const A={class:"fox-steps-bar__head"};return l.h("view",A,_)},$=(w,F,P,p)=>{let H=null;a.main?H=a.main({item:w,index:F,status:P}):H=Vf(r,w);const _={class:"fox-steps-bar__main",onClick:()=>{p||M(w,F)}};return l.h("view",_,[H])},k=(w,F,P)=>{let p=null;if(a.sub){p=a.sub({item:w,index:F,status:P});const H={class:"fox-steps-bar__sub"};return l.h("view",H,[p])}return null},D=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=No(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??ko(r,w),B=[],A=N(w,F,_,p,H);A&&B.push(A);const G=$(w,F,p,H);if(G&&B.push(G),!L(F)){const Q=E(w,F);Q&&B.push(Q)}const z=l.h("view",{class:"fox-steps-bar__head"},B),Z=P.class,te=P.style??{};let T=Eo(r,w);P.doit===!0&&(T=!0);const K={ref:ee(F),class:S(F,p,H,T,Z),style:C(F,te)};return l.h("view",K,[z])},Y=(w,F)=>{const P=In(r,w,F)??{},p=P.status??kn(r,w);let H=No(r,w);P.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const _=P.label??ko(r,w),B=[],A=r.layout;for(let T of A)if(T==="head"){const K=q(w,F,_,p,H);B.push(K)}else if(T==="main"){const K=$(w,F,p,H);B.push(K)}else if(T==="sub"){const K=k(w,F,p);B.push(K)}else if(T==="mark"){const K=x();B.push(K)}const G=P.class,z=P.style??{};let Z=Eo(r,w);P.doit===!0&&(Z=!0);const te={ref:ee(F),class:S(F,p,H,Z,G),style:C(F,z)};return l.h("view",te,B)},W=l.ref(),X=l.ref([]),U=(w,F)=>{X.value[F]=w},ee=w=>F=>{U(F,w)},le=(w,F)=>{const P=W.value,p=X.value;if(!P||!p||!p[w])return;const H=p[w];let _=0;r.direction==="vertical"?_=H.offsetTop-(P.offsetHeight-H.offsetHeight)/2:_=H.offsetLeft-(P.offsetWidth-H.offsetWidth)/2,I(P,_,F?0:.3,r.direction)},I=(w,F,P,p)=>{let H=0;const _=p==="horizontal"?w.scrollLeft:w.scrollTop,B=P===0?1:Math.round(P*1e3/16);function A(){p==="horizontal"?w.scrollLeft+=(F-_)/B:w.scrollTop+=(F-_)/B,++H<B&&Gn(A)}A()};return()=>{const w=[];if(r.mode==="simple")for(let P=0;P<c.value.length;P++){const p=c.value[P],H=D(p,P);w.push(H)}else for(let P=0;P<c.value.length;P++){const p=c.value[P],H=Y(p,P);w.push(H)}const F={ref:W,class:h.value,style:m.value};return l.h("view",F,w)}}}}const{componentName:Rf,create:Af,scope:Lf}=ae("steps-bar"),kl=Af(Ff(Rf,Lf,rf,cf)),Mf=Symbol.for("InnerPageScopeKey"),Bf=Symbol.for("PageWrapperKey");function _f(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(Mf,!0);const r={};l.provide(Bf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(v.ElDialog,f,c)}}}}const{componentName:em,create:qf,scope:tm}=ae("dialog-item"),Il=qf(_f());let Nt=0;const Io="fox-overflow-hidden",Vo=()=>dt?document.body:{classList:[]},jf=e=>[()=>{if(e())try{!Nt&&Vo().classList.add(Io),Nt++}catch{}},()=>{if(e()&&Nt)try{Nt--,!Nt&&Vo().classList.remove(Io)}catch{}}],zf={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:Hf,create:Kf}=ae("overlay"),Wf=Kf({props:{...zf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=jf(()=>e.lockScroll),r=l.computed(()=>({[Hf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Yf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const mn=qe(Wf,[["render",Yf]]),Gf={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:{}}},Wr=2e3;let Oo=Wr;const Uf=(e,t)=>({components:t,props:{...Gf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Wr&&(Oo=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Oo,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},y=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:y,onOpened:V,onClosed:g}}}),{componentName:Xf,create:Zf}=ae("popup"),Jf=Zf(Uf(Xf,{FoxOverLay:mn,Close:tf}));function Qf(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Vl=qe(Jf,[["render",Qf]]),{create:ed}=ae("toast"),td=ed({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=de(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),nd={key:1,class:"fox-toast-title"},ld=["innerHTML"];function od(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",nd,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,ld)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ol=qe(td,[["render",od]]),rd={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"}},ad=(e,t,o)=>({props:{...rd},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}=pr(),{toLocaleRefs:i}=_e.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=N=>{let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,N),a("change",x,N)},y=l.ref({}),V=N=>{let x=N.target.value;u.active=!0,y.value=n.focusStyle,a("focus",x,N)},g=N=>{setTimeout(()=>{u.active=!1},0);let x=N.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),y.value={},a("blur",x,N)},h=N=>{a("update:modelValue","",N),a("change","",N),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),S=l.computed(()=>{const N={};return m.value||(N.display="none"),N}),b=()=>{a("search",n.modelValue)},C=N=>{a("keyup-input",N),N.key.toLocaleUpperCase()==="ENTER"&&b()},j=N=>{a("click-input",N)},L=N=>{a("click-left-icon",n.modelValue,N)},M=l.computed(()=>({textAlign:n.inputAlign})),O=l.ref(null);l.onMounted(()=>{n.autofocus&&O.value.focus()});const R=()=>{const N=[];if(r.leftin){const k={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},D=l.h("view",k,[r.leftin()]);N.push(D)}const E={ref:O,class:[`${e}__input-inner`],style:M.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:j,onInput:d,onFocus:V,onBlur:g,onkeyup:C},x=l.h("input",E);N.push(x);const q=[];if(n.clearable){const k={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:S.value,onClick:h},D=r?.clear?.()??n.clearIcon??o,Y=l.h("view",k,[l.h(D)]);q.push(Y)}if(r.rightin){const k={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},D=l.h("view",k,[r.rightin()]);q.push(D)}if(q.length>0){const k={class:`${e}__input-inner-right`},D=l.h("view",k,q);N.push(D)}const $={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...y.value}};return l.h("view",$,N)};return()=>{const N=[];if(n.label){const q={class:`${e}__search-label`},$=l.h("span",q,[n.label]);N.push($)}if(r.leftout){const q={class:[`${e}__search-icon`,`${e}__left-search-icon`]},$=l.h("view",q,[r.leftout()]);N.push($)}const E=R();if(N.push(E),r.rightout){const q={class:[`${e}__search-icon`,`${e}__right-search-icon`]},$=l.h("view",q,[r.rightout()]);N.push($)}const x={class:`${e}`,style:f.value};return l.h("view",x,N)}}}),{componentName:id,create:sd,scope:ud}=ae("searchbar"),Pl=sd(ad(id,ud,Ee.CircleClose)),cd=/scroll|auto|overlay/i,Yr=window;function fd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function dd(e,t=Yr){let o=e;for(;o&&o!==t&&fd(o);){const{overflowY:n}=window.getComputedStyle(o);if(cd.test(n))return o;o=o.parentNode}return t}function Gr(e,t=Yr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=dd(e.value,t))}),o}const Ur=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,hd={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 md(e,t,o){return{props:{...hd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=_e.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Gr(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),y=b=>b?b.offsetTop+y(b.offsetParent):0,V=()=>{let b=0,C=0,j="down";if(f.value==window){const L=Ur();u.value&&(b=y(u.value)+u.value.offsetHeight-L-window.innerHeight),C=L}else{const{scrollHeight:L,clientHeight:M,scrollTop:O}=f.value;b=L-M-O,C=O}return c.beforeScrollTop>C?j="up":j="down",c.beforeScrollTop=C,r("scroll-change",C),b<=n.threshold&&j=="down"},g=()=>{zo(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",g,n.useCapture)},m=()=>{f.value&&f.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const S=l.ref(!1);return l.onActivated(()=>{S.value&&(S.value=!1,h())}),l.onDeactivated(()=>{S.value=!0,m()}),l.watch(()=>n.modelValue,b=>{b||(c.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},C=l.h("view",b,[a?.default?.()]),j=[];if(c.isInfiniting){let R=a?.loading?.()??null;if(!R){let x=a?.loadingIcon?.()??null;if(!x){const k={class:["fox-infinite__bottom-box__img"]};x=l.h(o,k)}const q={class:"fox-infinite__bottom-box__text"},$=l.h("view",q,[s.loadText.value]);R=[x,$]}const N={class:"fox-infinite__bottom-box"},E=l.h("view",N,R);j.push(E)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const N={class:"fox-infinite__bottom-tips"};R=l.h("view",N,[s.loadMoreText.value]),j.push(R)}}const L={class:"fox-infinite__bottom"},M=l.h("view",L,j),O={class:d.value,ref:u};return l.h("view",O,[C,M])}}}}const{componentName:gd,create:pd,scope:vd}=ae("infinite-loading"),Dl=pd(md(gd,vd,$l)),Po=10;function Xr(e,t){return e>t&&e>Po?"horizontal":t>e&&t>Po?"vertical":""}function Fl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Xr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function yd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",y=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:m=>{if(m.touches){const C=m.touches[0];i.value=C.clientX-e.value,s.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const b=m;i.value=b.clientX-e.value,s.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Xr(u.value,f.value))},start:m=>{if(V(),m.touches){const C=m.touches[0];e.value=C.clientX,t.value=C.clientY}else{const b=m;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:y}}const bd={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}},wd=(e,t,o)=>({props:{...bd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=_e.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Rl(),f=l.ref(),c=Gr(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),y=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const O={};return n.headHeight!=50&&(O.height=Ne(n.headHeight)),O}),m=O=>{const R=+(n.pullDistance||n.headHeight);let N=O;return O>R&&(O<R*2?N=(O+R)/2:N=R+O/4),Math.round(N)},S=(O,R)=>{const N=+(n.pullDistance||n.headHeight);d.distance=O,R?d.status="loading":O===0?d.status="normal":O<N?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:O})},b=()=>d.status!=="loading"&&d.status!=="complete",C=()=>c.value==window?Ur()==0:c.value&&c.value.scrollTop==0,j=O=>{b()&&(C()?(u.start(O),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},L=O=>{b()&&d.moving&&(u.move(O),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(O.cancelable&&O.preventDefault(),S(m(u.state.deltaY))))},M=()=>{d.moving=!1,d.isPullRefresh&&b()&&u.state.deltaY&&(d.status==="loosing"?(S(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):S(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,O=>{O?S(+n.headHeight,!0):S(0)}),()=>{const O=[];let R=null;if(d.status==="loading"){if(R=a?.loading?.()??null,!R){const Y={class:["fox-pull-refresh-container-topbox-icon"]};R=l.h(o,Y)}}else d.status==="pulling"?R=a?.pulling?.()??null:d.status==="loosing"&&(R=a?.loosing?.()??null);R&&O.push(R);const N={class:["fox-pull-refresh-container-topbox-text"]},E=l.h("dive",N,[V.value]);O.push(E);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},q=l.h("div",x,O),$={class:"fox-pull-refresh-container",style:g.value},k=l.h("div",$,[q,a?.default?.()]),D={ref:f,class:y.value};return Fl()?Object.assign(D,{onTouchstart:j,onTouchmove:L,onTouchend:M}):Object.assign(D,{onMousedown:j,onMousemove:L,onMouseup:M}),l.h("div",D,[k])}}}),{componentName:xd,create:Sd,scope:Td}=ae("pull-refresh"),Al=Sd(wd(xd,Td,$l));function $d(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},y=n.default?n.default():[],V=l.h("div",d,y),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[c,V]):l.h("div",g,[V,c])}}}}const{componentName:Cd,create:Nd,scope:nm}=ae("indicator"),Ll=Nd($d(Cd));function Ed(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 kd={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 Id(e,t,o,n=!1){return{props:{...kd},emits:["click"],setup(r,a){const i=l.ref(null),s=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={},j=r.textColor??r.color;return j&&(C.color=j),C}),f=(C,j)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const M=r.highlightFilter;if(C.indexOf(M)!==-1){const R=C.replace(new RegExp(M,"g"),`<span>${M}</span>`);j.innerHTML=R,j.class["is-highlight"]=!0,L=l.h(r.tag,j)}}else if(typeof r.highlightFilter=="function"){const M=r.highlightFilter(C);M&&(j.innerHTML=M,j.class["is-highlight"]=!0,L=l.h(r.tag,j))}return L},c=C=>{a.emit("click",C)};let d="";const y=()=>{const C=i.value;if(!C)return;const j=C.clientWidth;Ed(C,L=>{const M=C.innerHTML??"";ge(M)||L<j||(d?o?.show(C,M,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(C,M,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let g=null;const h=C=>{g||(g=setTimeout(()=>{y(),g=null},r.showAfter??0))},m=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{V()},r.hideAfter??0)},S=()=>{const C=i.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",m))},b=()=>{const C=i.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!ie(r.showOverflowTooltip)||!o||S()}),l.onBeforeUnmount(()=>{!ie(r.showOverflowTooltip)||!o||b()}),()=>{const C={onClick:c,class:s.value,style:u.value,ref:i};let j=null;if(ie(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=we(r.digits),x=we(r.decimalLength),q=ie(r.autoPadding);let $=`${R[0].children}`,k=$.split("").reverse().join("");k=Xt(k,x,q,E,r.separator),$=k.split("").reverse().join(""),r.highlightFilter!==void 0&&(j=f($,C)),j||(C.innerHTML=$,j=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const N=R[0].type.toString();if(N==="Symbol(Text)"||N==="Symbol(v-txt)"){const E=`${R[0].children}`;j=f(E,C),j||(C.innerHTML=E,j=l.h(r.tag,C))}}}j||(j=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return j;let M=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const N={},E=r.color;E&&(N.color=E);const x={class:R,style:N};M=l.h("view",x,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const N={},E=r.color;E&&(N["background-color"]=E);const x={class:R,style:N};M=l.h("view",x)}const O={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",O,[M,j])}}}}const{componentName:Vd,create:Od,scope:Pd}=ae("text"),Ml=Od(Id(Vd,Pd,Pe,!1)),Dd={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:Ee.ArrowUp}};function Fd(e,t,o){return{props:{...Dd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=he(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},m=l.h("span",h,[s.value]);d.push(m)}const y={class:f.value},V=o(n.icon,y);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Rd,create:Ad,scope:Ld}=ae("more-button"),Md=(e,t)=>(e=e??Ee.ArrowUp,l.h(v.ElIcon,t,{default:()=>[l.h(e)]})),Bl=Ad(Fd(Rd,Ld,Md));function Bd(e){return e===window}const Zr=e=>{const t=l.unref(e);if(Bd(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:_d,create:qd,scope:lm}=ae("tour"),jd=qd({components:{Close:Ee.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=_d,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:S,height:b,left:C,top:j}=r.value,L=e.steps[n.active].offset??g,M=[C+S/2,j+b/2],O=Number(h||S),R=Number(m||b);return{width:`${O+ +L.left+L.right}px`,height:`${R+L.top+L.bottom}px`,top:`${M[1]-R/2-+L.top}px`,left:`${M[0]-O/2-+L.left}px`}}),s=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,f=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Zr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},y=()=>{e.closeOnClickOverlay&&d()},V=(g,h=0)=>{g&&c(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{V(g)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:y}}}),zd={key:0,class:"fox-tour__content"},Hd={key:0,class:"fox-tour__content-top"},Kd={class:"fox-tour__content-inner"},Wd={class:"fox-tour__content-bottom"},Yd={class:"fox-tour__content-bottom-init"},Gd={class:"fox-tour__content-bottom-operate"},Ud={key:1,class:"fox-tour__content fox-tour__content-tile"},Xd={class:"fox-tour__content-inner"};function Zd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",zd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Hd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Kd,l.toDisplayString(f.content),1),l.createElementVNode("div",Wd,[l.createElementVNode("div",Yd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Gd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Ud,[l.createElementVNode("div",Xd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const _l=qe(jd,[["render",Zd]]),Oe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,it=e=>e==null;class Jd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Fl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Rl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Do(e,t){return new Jd(e,t)}var Fo;const Kn=typeof window<"u";Kn&&((Fo=window?.navigator)!=null&&Fo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let mt=[];const Ro=e=>{const t=e;t.key==="Escape"&&mt.forEach(o=>o(t))},Qd=e=>{l.onMounted(()=>{mt.length===0&&document.addEventListener("keydown",Ro),Kn&&mt.push(e)}),l.onBeforeUnmount(()=>{mt=mt.filter(t=>t!==e),mt.length===0&&Kn&&document.removeEventListener("keydown",Ro)})},Vn="fox-focus-trap.focus-after-trapped",On="fox-focus-trap.focus-after-released",eh="fox-focus-trap.focusout-prevented",Ao={cancelable:!0,bubbles:!1},th={cancelable:!0,bubbles:!1},Lo="foxFocusAfterTrapped",Mo="foxFocusAfterReleased",nh=Symbol("foxFocusTrap"),ql=l.ref(),gn=l.ref(0),jl=l.ref(0);let _t=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},lh=(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},Bo=(e,t)=>{for(const o of e)if(!lh(o,t))return o},oh=e=>{const t=Jr(e),o=Bo(t,e),n=Bo(t.reverse(),e);return[o,n]},rh=e=>e instanceof HTMLInputElement&&"select"in e,nt=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&rh(e)&&t&&e.select()}};function _o(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const ah=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=_o(e,n),e.unshift(n)},remove:n=>{e=_o(e,n),e[0]?.resume?.()}}},ih=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(nt(n,t),document.activeElement!==o)return},qo=ah(),sh=()=>gn.value>jl.value,qt=()=>{ql.value="pointer",gn.value=window.performance.now()},jo=()=>{ql.value="keyboard",gn.value=window.performance.now()},uh=()=>(l.onMounted(()=>{_t===0&&(document.addEventListener("mousedown",qt),document.addEventListener("touchstart",qt),document.addEventListener("keydown",jo)),_t++}),l.onBeforeUnmount(()=>{_t--,_t<=0&&(document.removeEventListener("mousedown",qt),document.removeEventListener("touchstart",qt),document.removeEventListener("keydown",jo))}),{focusReason:ql,lastUserFocusTimestamp:gn,lastAutomatedFocusTimestamp:jl}),jt=e=>new CustomEvent(eh,{...th,detail:e}),{componentName:om,create:ch,scope:rm}=ae("focus-trap"),fh={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"}},dh=ch({props:fh,emits:[Lo,Mo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=uh();Qd(h=>{ie(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ie(e.trapped)||s.paused)return;const{key:m,altKey:S,ctrlKey:b,metaKey:C,currentTarget:j,shiftKey:L}=h,{loop:M}=e,O=m==="Tab"&&!S&&!b&&!C,R=document.activeElement;if(O&&R){const N=j,[E,x]=oh(N);if(E&&x){if(!L&&R===x){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),M&&nt(E,!0))}else if(L&&[E,N].includes(R)){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),M&&nt(x,!0))}}else if(R===N){const $=jt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};l.provide(nh,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",y)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",d),m.removeEventListener("focusout",y))});const f=h=>{o(Lo,h)},c=h=>o(Mo,h),d=h=>{const m=l.unref(n);if(!m)return;const S=h.target,b=h.relatedTarget,C=S&&m.contains(S);ie(e.trapped)||b&&m.contains(b)||(r=b),C&&o("focusin",h),!s.paused&&ie(e.trapped)&&(C?a=S:nt(a,!0))},y=h=>{const m=l.unref(n);if(!(s.paused||!m))if(!e.escape&&ie(e.trapped)){const S=h.relatedTarget;!Un(S)&&!m.contains(S)&&setTimeout(()=>{if(!s.paused&&ie(e.trapped)){const b=jt({focusReason:i.value});o("focusout-prevented",b),b.defaultPrevented||nt(a,!0)}},0)}else{const S=h.target;S&&m.contains(S)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){qo.push(s);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const b=new Event(Vn,Ao);h.addEventListener(Vn,f),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Go(C)||(nt(C),document.activeElement!==C&&(C="first")),C==="first"&&ih(Jr(h),!0),(document.activeElement===m||C==="container")&&nt(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Vn,f);const m=new CustomEvent(On,{...Ao,detail:{focusReason:i.value}});h.addEventListener(On,c),h.dispatchEvent(m),!m.defaultPrevented&&(i.value=="keyboard"||!sh())&&nt(r??document.body,!0),h.removeEventListener(On,f),qo.remove(s)}}return l.onMounted(()=>{ie(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{ie(h)?V():g()})}),l.onBeforeUnmount(()=>{ie(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:hh,create:mh,scope:am}=ae("floating-window"),gh=Symbol.for("InnerPageScopeKey"),ph=Symbol.for("PageWrapperKey"),vh={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}},yh=mh({inheritAttrs:!1,components:{FoxIcon:v.ElIcon,FocusTrap:dh},props:{...vh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=hh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!R.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),d=l.computed(()=>{const T={};return it(i.value)?T.left="auto":T.left=Oe(i.value),it(s.value)?T.top="auto":T.top=Oe(s.value),it(u.value)?T.right="auto":T.right=Oe(u.value),it(f.value)?T.bottom="auto":T.bottom=Oe(f.value),it(e.zIndex)||(T["z-index"]=Oe(e.zIndex)),it(M.value)||(T.height=M.value),it(O.value)||(T.width=O.value),T}),y=l.computed(()=>e.closeIcon??Ee.Close),V=l.computed(()=>e.collapseIcon??Ee.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),S=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),C=l.ref(),j=l.ref(null),L=l.ref(null),M=l.computed(()=>Oe(e.height)||""),O=l.computed(()=>Oe(e.width)||""),R=l.ref(ie(e.collapse)),N=(T,K=!0)=>{R.value!==T&&(R.value=T,T?w():F(),t("update:collapse",T),T&&typeof q.onHide=="function"?q.onHide():!T&&typeof q.onShow=="function"&&q.onShow())};l.watch(()=>e.collapse,T=>{N(T)});const E=()=>{x()},x=T=>{T=T??!R.value,N(T)};l.provide(gh,!0);const q={setCollapse:N,setFixedNavVisible:T=>{ee.value=T}};l.provide(ph,q);const $=()=>{typeof q.beforeClose=="function"?q.beforeClose(()=>{n.value=!1}):n.value=!1},k=l.ref(null),D=l.computed(()=>!e.fixedNavTeleport),Y=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),W=l.ref(""),X=l.computed(()=>{const T={};return W.value?T.top=W.value:e.collapseTop&&(T.top=e.collapseTop),T}),U=l.ref(R.value),ee=l.computed({set:T=>{U.value=T},get:()=>n.value===!1?!1:U.value});let le=null;const I=()=>{typeof le=="function"&&(le(),le=null)},w=()=>{k.value&&k.value.classList.add("slide-in"),ee.value=!0,le=()=>{k.value&&k.value.classList.remove("slide-in")}},F=()=>{k.value&&k.value.classList.add("slide-out"),le=()=>{k.value&&k.value.classList.remove("slide-out"),ee.value=!1}},P=()=>{i.value=null,s.value=null,u.value=null,f.value=null},p={x:0,y:0},B=Do(T=>{if(!C.value)return;const K=C.value;if(P(),e.origin==="left-top")i.value=K.offsetLeft,s.value=K.offsetTop,p.x=i.value,p.y=s.value;else if(e.origin==="left-bottom"){const Q=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,f.value=Q-(K.offsetTop+K.offsetHeight),p.x=i.value,p.y=f.value}else if(e.origin==="right-bottom"){const Q=document.documentElement.clientWidth||document.body.clientWidth,ne=document.documentElement.clientHeight||document.body.clientHeight;u.value=Q-(K.offsetLeft+K.offsetWidth),f.value=ne-(K.offsetTop+K.offsetHeight),p.x=u.value,p.y=f.value}else{const Q=document.documentElement.clientWidth||document.body.clientWidth;u.value=Q-(K.offsetLeft+K.offsetWidth),s.value=K.offsetTop,p.x=u.value,p.y=s.value}},T=>{if(!C.value)return;const K=C.value;P(),e.origin==="left-top"?(i.value=p.x+T.x,s.value=p.y+T.y,K.style.left=Oe(i.value),K.style.top=Oe(s.value)):e.origin==="left-bottom"?(i.value=p.x+T.x,f.value=p.y-T.y,K.style.left=Oe(i.value),K.style.bottom=Oe(f.value)):e.origin==="right-bottom"?(u.value=p.x-T.x,f.value=p.y-T.y,K.style.right=Oe(u.value),K.style.bottom=Oe(f.value)):(u.value=p.x-T.x,s.value=p.y+T.y,K.style.right=Oe(u.value),K.style.top=Oe(s.value))}),A={x:0,y:0},Z=Do(T=>{k.value&&(A.x=k.value.offsetLeft,A.y=k.value.offsetTop)},T=>{if(!k.value)return;const K=A.y+T.y;W.value=`${K}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];j.value&&T.push(j.value),e.footerDraggable&&(te(),L.value&&T.push(L.value)),B.open(T)}e.collapse===!0&&N(e.collapse,!1),k.value&&Z.open(k.value)}),l.onBeforeUnmount(()=>{e.draggable&&j.value&&B.close(),k.value&&Z.close()}),{classes:c,styles:d,isShow:a,closeIcon:y,onClose:$,dialogRef:C,headerRef:j,onClickToggle:E,collapseIcon:V,collapseText:g,collapseTextClasses:S,collapseIconClasses:b,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:k,fixedNavClasses:Y,fixedNavStyles:X,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:D}}}),bh={ref:"headerRef",class:"fox-floating-window__header"},wh={class:"fox-floating-window__title"},xh={class:"fox-floating-window__tools"},Sh={class:"fox-floating-window__body"},Th={class:"fox-floating-window__fixednav__text"};function $h(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",bh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",wh,l.toDisplayString(e.title),1),l.createElementVNode("div",xh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",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(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",Th,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=qe(yh,[["render",$h]]);function Ch(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return hr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:im,create:Nh,scope:sm}=ae("domain-provider"),Hl=Nh(Ch()),Eh={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 kh(e,t){return{inheritAttrs:!1,props:Eh,setup(o,{slots:n}){if(dt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(y,V)=>{if(c===null){a.set(y,{visible:null,callback:V});return}r.has(y)&&c.unobserve(y),r.set(y,{visible:null,callback:V}),c.observe(y)},s=y=>{if(c===null){a.delete(y);return}r.has(y)&&(r.delete(y),c.unobserve(y))};let u=o.initialVisibleObserverSize;ui({acquire:()=>{const y=u>0;return u--,y},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(y,V,g)=>{c=new IntersectionObserver(h=>{for(let m of h){let S=!1;m.intersectionRatio>0&&(S=!0);const b=r.get(m.target);if(b)try{if(o.loadPolicy==="lazy"&&!S&&b.visible!==null)return;b.visible=S,b.callback(S)}catch(C){console.error(C)}}},{root:y,rootMargin:V,threshold:g}),a.forEach((h,m)=>{r.set(m,h),c?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([y,V])=>{if(V||!y||c)return;let g=null;typeof y=="string"?g=document.querySelector(y):g=y,g&&d(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:um,create:Ih,scope:cm}=ae("rolling-provider"),Kl=Ih(kh()),Vh=[Jn,el,tl,nl,ll,Se,ol,rl,Lt,al,il,sl,ul,cl,fl,dl,hl,ml,gl,pl,hn,vl,yl,bl,wl,xl,Sl,Tl,Cl,Nl,El,kl,Il,mn,Vl,Ol,Pl,Dl,Al,Ft,dn,Ll,Ml,Bl,_l,zl,Hl,Kl],Oh=new _a(Vh,[za],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>v.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>v.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>v.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>v.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>v.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>v.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>v.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>v.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>v.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>v.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>v.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>v.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>v.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>v.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>v.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>v.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>v.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>v.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>v.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>v.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>v.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>v.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>v.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>v.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>v.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>v.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>v.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>v.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>v.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>v.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>v.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>v.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>v.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>v.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>v.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>v.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>v.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>v.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>v.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>v.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>v.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>v.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>v.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>v.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>v.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>v.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>v.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>v.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>v.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>v.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>v.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>v.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>v.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>v.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>v.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>v.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>v.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>v.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>v.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>v.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>v.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>v.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>v.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>v.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>v.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>v.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>v.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>v.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>v.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>v.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>v.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>v.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>v.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>v.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>v.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>v.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>v.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>v.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>v.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>v.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>v.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>v.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>v.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>v.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>v.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>v.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>v.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>v.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>v.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>v.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>v.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>v.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>v.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>v.ElUpload});exports.AutocompleteItem=ml;exports.Broadcast=Xn;exports.BroadcastKey=ve;exports.CascaderItem=hl;exports.CheckboxItem=bl;exports.Content=nl;exports.DataItemsKey=ht;exports.DateItem=sl;exports.DateUtils=Me;exports.DialogItem=Il;exports.Domain=nn;exports.DomainKey=Ae;exports.DomainProvider=Hl;exports.FloatingWindow=zl;exports.FooterBar=tl;exports.FoxAutocompleteItem=ml;exports.FoxCascaderItem=hl;exports.FoxCheckboxItem=bl;exports.FoxContent=nl;exports.FoxDateItem=sl;exports.FoxDialogItem=Il;exports.FoxDomainProvider=Hl;exports.FoxFloatingWindow=zl;exports.FoxFooterBar=tl;exports.FoxGroup=ll;exports.FoxGroupSetting=Tl;exports.FoxHeaderBar=el;exports.FoxHintText=Lt;exports.FoxIndicator=Ll;exports.FoxInfiniteLoading=Dl;exports.FoxInputItem=al;exports.FoxInputNumberItem=dl;exports.FoxItem=Se;exports.FoxMapping=Ft;exports.FoxMoneyItem=fl;exports.FoxMoreButton=Bl;exports.FoxOverLay=mn;exports.FoxPage=Jn;exports.FoxPopup=Vl;exports.FoxPrice=dn;exports.FoxPullRefresh=Al;exports.FoxRadioItem=yl;exports.FoxRateItem=wl;exports.FoxRollingProvider=Kl;exports.FoxRowItem=rl;exports.FoxSearchBar=Pl;exports.FoxSelectItem=il;exports.FoxSlotItem=ol;exports.FoxStepsBar=kl;exports.FoxSwitchItem=xl;exports.FoxTableItem=vl;exports.FoxTableMappingColumn=gl;exports.FoxTableRadioColumn=pl;exports.FoxTableSetting=hn;exports.FoxTabsBar=Cl;exports.FoxTabsContainer=Nl;exports.FoxTabsPane=El;exports.FoxText=Ml;exports.FoxTimeItem=ul;exports.FoxTimeSelectItem=cl;exports.FoxToast=Ol;exports.FoxTour=_l;exports.FoxTreeSelectItem=Sl;exports.Group=ll;exports.GroupSetting=Tl;exports.HeaderBar=el;exports.HintText=Lt;exports.Indicator=Ll;exports.InfiniteLoading=Dl;exports.InputItem=al;exports.InputNumberItem=dl;exports.Item=Se;exports.Mapping=Ft;exports.MoneyItem=fl;exports.MoreButton=Bl;exports.OverLay=mn;exports.Page=Jn;exports.Popup=Vl;exports.Price=dn;exports.PriorityPolicy=Be;exports.PullRefresh=Al;exports.RadioItem=yl;exports.RateItem=wl;exports.RollingProvider=Kl;exports.RowItem=rl;exports.SearchBar=Pl;exports.SelectItem=il;exports.SlotItem=ol;exports.StepsBar=kl;exports.SwitchItem=xl;exports.TableItem=vl;exports.TableMappingColumn=gl;exports.TableRadioColumn=pl;exports.TableSetting=hn;exports.TabsBar=Cl;exports.TabsContainer=Nl;exports.TabsPane=El;exports.Text=Ml;exports.TimeItem=ul;exports.TimeSelectItem=cl;exports.Toast=Ol;exports.Tour=_l;exports.TreeSelectItem=Sl;exports.UniqueID=Er;exports.ValidateSchema=cr;exports.ValidateSchemaKey=ze;exports.cancelRaf=oa;exports.clearNonNumber=pa;exports.clone=Bn;exports.compareTo=An;exports.createBroadcast=Qt;exports.createValidateSchema=en;exports.debounce=Vt;exports.debounceRef=Ia;exports.decimalLength=or;exports.default=Oh;exports.defineBroadcast=wa;exports.defineConfigDomain=hr;exports.defineDataItem=gr;exports.defineDomain=Zn;exports.defineItem=Te;exports.definePageState=vr;exports.defineSimpleItem=pr;exports.deleteGlobalValidator=Ca;exports.disabledProperty=Re;exports.divide=Yn;exports.excludeProps=ke;exports.extend=ft;exports.floatData=ba;exports.getGlobalValidateCheckEvents=ir;exports.getGlobalValidateResetEvents=ur;exports.getPageContentAreaHeight=Wt;exports.getPageContentAreaWidth=Yt;exports.getPageFooterAreaHeight=Pt;exports.getPageHeaderAreaHeight=Ot;exports.getRootDomain=gt;exports.hasSymbol=Zo;exports.includeProps=rr;exports.indexOf=va;exports.installRules=mr;exports.integerLength=lr;exports.isArray=aa;exports.isArrayLike=Qo;exports.isBrowser=dt;exports.isDate=ua;exports.isESModule=fa;exports.isEmptyString=ge;exports.isEqual=Xe;exports.isFunction=Ln;exports.isHidden=Jt;exports.isInnerPage=Pa;exports.isMap=ia;exports.isNil=Un;exports.isNumberString=nr;exports.isObject=Ze;exports.isPlainObject=Mn;exports.isPromise=Uo;exports.isRegExp=tr;exports.isSet=sa;exports.isString=Go;exports.isSubPage=Da;exports.isSymbol=ca;exports.isTouch=Fl;exports.isWindow=Jo;exports.lastIndexOf=ya;exports.makeArray=ga;exports.merge=er;exports.multiply=Ko;exports.negate=Wo;exports.nextTick=ha;exports.numberFormat=Xt;exports.objectToString=Xo;exports.once=Va;exports.overrideGlobalValidateHandler=Ta;exports.property=De;exports.raf=Gn;exports.readonlyProperty=Fe;exports.setGlobalValidateCheckEvents=Na;exports.setGlobalValidateHandler=Sa;exports.setGlobalValidateMessages=ka;exports.setGlobalValidateResetEvents=Ea;exports.setGlobalValidator=$a;exports.throttle=dr;exports.toBoolean=ie;exports.toNumber=we;exports.toPadding=We;exports.toPx=de;exports.toPxDesc=Ne;exports.toTypeString=Zt;exports.toValue=he;exports.tryTimes=tn;exports.typeOf=Ht;exports.unNumberFormat=Yo;exports.updatePageState=_n;exports.useBroadcast=Et;exports.useDomain=Je;exports.useExpose=$e;exports.useInnerSize=Qn;exports.usePageState=ln;exports.usePosition=Cr;exports.useRawTouch=Rl;exports.useRect=Zr;exports.useSize=on;exports.useTouch=yd;exports.valueLength=At;
|