@fox-js/foxui-pc 4.1.1-12 → 4.1.1-13
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 +2 -2
- package/dist/index.esm.js +172 -169
- package/dist/index.umd.js +2 -2
- package/dist/style.esm.js +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(m,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],o):(m=typeof globalThis<"u"?globalThis:m||self,o(m.FoxUI={},m.Vue,m.FoxValidator,m.ElementPlus,m.ElementPlusIconsVue,m.FoxI18n))})(this,function(m,o,st,S,Ie,qe){"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Mar 26 2025 16:14:03 GMT+0800 (中国标准时间)
|
|
3
3
|
*/const Pt=window,ca=typeof window<"u";function fa(){return typeof Pt<"u"?Pt.requestAnimationFrame||Pt.webkitRequestAnimationFrame||function(e){Pt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function da(e){ca?cancelAnimationFrame(e):clearTimeout(e)}const sl=fa();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function jt(e,t="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=Oe(e),t=Oe(t),[e,t]=Vn(Oe(e),Oe(t)),l==1&&(n==1?e=Dn(e):t=Dn(t));let r=ul(e,t);return l?l==2?"-"+Oe(r):e.length<r.length?Oe(r.substring(1)):"-"+Oe(Dn(r)):Oe(r)}function Dn(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;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 ul(t,a)}function Oe(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 Vn(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[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"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function ul(e,t){[e,t]=Vn(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var ve=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ve||{});function Ct(e,t=0,l=ve.HALF_EVEN){if(l===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let s=a.substr(0,a.length-t);return e=s+"."+a.substr(a.length-t)+i,s=Ct(e,0,l),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,cl(r[1],a,n,l)?(n?"-":"")+Rn(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 u=r[1].substring(t);return u&&cl(u,i,n,l)&&(i=Rn(i),i.length>t)?(n?"-":"")+Rn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function cl(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!l&&n===ve.FLOOR||l&&n===ve.CEILING)return!1;if(n===ve.UP||l&&n===ve.FLOOR||!l&&n===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Rn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;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 Fn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=Et(e),t=Et(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=Et(e.replace(".","")),t=Et(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let i=t.length,u=0,s=[],c=i-1,d="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let p=0;for(let v=t.length-1;v>=c&&v>=0;v--)s[v]>-1&&s[v]<e.length&&(p+=parseInt(e[s[v]--])*parseInt(t[v]));p+=u,u=Math.floor(p/10),d=p%10+d,c--}return d=Et(ha(d,a)),l==1&&(d="-"+d),d}function ha(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 Et(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 An(e,t,l=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=Oe(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Oe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Oe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Oe(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Oe(e.replace(".","")))}let a=0,i=t.length,u="",s=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),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(l=l+2;a<=l;){let c=0;for(;parseInt(s)>=parseInt(t);)s=jt(s,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(n==1?"-":"")+Oe(Ct(u,l-2))}function Mn(e,t){return e=e.toString(),t=t.toString(),t=Ln(t),jt(e,t)}function Ln(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function fl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),dl(e),dl(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Mn(e,Fn(t,Ct(An(e,t),0,ve.FLOOR)));return l+n}function dl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function hl(e,t){let l=!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),l=!0),[e,t]=Vn(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]?l?-1:1:l?1:-1;return 0}class de{value;static RoundingModes=ve;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[l,n]=t.split(/[eE]/);l=Oe(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+Oe(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=de.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=de.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="",u=a;u>0;)u<l?(l=u,u=0):u-=l,i=t.substring(u,u+l)+(u<a-l&&u>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return de.getPrettyValue(this.value,t,l)}static round(t,l=0,n=ve.HALF_EVEN){if(t=de.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return Ct(t,l,n)}round(t=0,l=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new de(Ct(this.value,t,l))}static floor(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.FLOOR)}static ceil(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.CEILING)}static add(t,l){return t=de.validate(t),l=de.validate(l),jt(t,l)}add(t){return new de(jt(this.value,t.getValue()))}static subtract(t,l){return t=de.validate(t),l=de.validate(l),Mn(t,l)}subtract(t){return new de(Mn(this.value,t.getValue()))}static multiply(t,l){return t=de.validate(t),l=de.validate(l),Fn(t,l)}multiply(t){return new de(Fn(this.value,t.getValue()))}static divide(t,l,n){return t=de.validate(t),l=de.validate(l),An(t,l,n)}divide(t,l){return new de(An(this.value,t.getValue(),l))}static modulus(t,l){return t=de.validate(t),l=de.validate(l),fl(t,l)}modulus(t){return new de(fl(this.value,t.getValue()))}static compareTo(t,l){return t=de.validate(t),l=de.validate(l),hl(t,l)}compareTo(t){return hl(this.value,t.getValue())}static negate(t){return t=de.validate(t),Ln(t)}negate(){return new de(Ln(this.value))}}function gl(e,t){return de.multiply(`${e}`,`${t}`)}function Bn(e,t,l=8){return de.divide(`${e}`,`${t}`,l)}function _n(e,t){return e=`${e}`,t=`${t}`,de.compareTo(e,t)}function ml(e){return de.negate(e)}function zt(e,t=-1,l=!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 u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),t!=-1&&(t<s.length?s=s.substring(0,t):l&&t>s.length&&(s=s.padEnd(t,"0")));let d;if(n>0){let g="",p=u.split("").reverse();for(let v=0;v<p.length;v++)g+=p[v]+((v+1)%n==0&&v+1!=p.length?r:"");s.length==0?d=`${i}${g.split("").reverse().join("")}`:d=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function yl(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const qn=sl,ga=Array.isArray,ma=e=>Ht(e)==="[object Map]",ya=e=>Ht(e)==="[object Set]",pa=e=>e instanceof Date,Pn=e=>typeof e=="function",pl=e=>typeof e=="string",ba=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",bl=e=>Qe(e)&&Pn(e.then)&&Pn(e.catch),vl=Object.prototype.toString,Ht=e=>vl.call(e),jn=e=>Ht(e)==="[object Object]",wl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function va(e){return e.__esModule||wl&&e[Symbol.toStringTag]==="Module"}const wa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ut(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let u=t[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},t[i]=ut(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function zn(e,t,l=!1){if(!l)ut(!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)&&!jn(i))continue;a=zn(a,i,l),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)&&!jn(i))continue;a=zn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Hn=wa?Promise.resolve():null;function Sa(e,...t){Hn!==null?t&&t.length>0?Hn.then(()=>{e(t)}):Hn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Te(e){return typeof e=="number"?e:Number(e)}const xa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):xa[l]||"object"}function Sl(e){return e&&typeof e=="object"&&"setInterval"in e}function Wt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function xl(e){let t=!!e&&"length"in e&&e.length,l=Kt(e);return l==="function"||Sl(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Tl(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function Ta(e,t=[]){let l=t;return e!=null&&(xl(Object(e))?Tl(l,typeof e=="string"?[e]:e):l.push(e)),l}function et(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=Kt(e),n=Kt(t);if(l!==n)return!1;if(l==="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 u=r[i],s=e[u],c=t[u];if(!et(s,c))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!et(a,i))return!1}return!0}return!1}const ot=typeof window<"u";function Kn(e){return e==null}function Wn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function $l(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Cl(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 l=t.indexOf(".");return l==-1?t.length:l}function El(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function Nl(e,t,l){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(l,"")}function $a(e,t=!0,l=!0){t?e=Nl(e,".",/\./g):e=e.replace(/\./g,""),l?e=Nl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ca(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(et(e,l))return!0}):t.indexOf(e)}function Ea(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(et(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function Nt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function kl(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function De(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const Na=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);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},we=Symbol.for("BroadcastKey");class Yn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,l,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:l,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(l=>{t.push(l)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,l){if(!l||l.messagingPolicy==="Once"&&l.resolved===!0)return!1;let n=!1;return!l.name||l.name==="*"||l.name==="+"||Wn(l.name)&&t&&l.name.test(t)?n=!0:typeof l.name=="function"?n=Reflect.apply(l.name,null,[t]):l.name===t&&(n=!0),n}trigger(t,l,n){let r=null;const a=this.callbacks.get(l);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[l]=="function"&&(r=Reflect.apply(i[l],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const l=t.getPersistantMessages();Array.isArray(l)&&l.length>0&&l.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,l,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,l,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,l,n)){const i=t.resolve,u=t.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};t.resolve=s}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):Wn(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(l);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...n]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[l]=="function"){const s=Reflect.apply(u[l],u,[...n]);s!=null&&a.push(s)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},l,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(t,l,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,l,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,l,n)){const a=t.resolve,i=t.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};t.resolve=u}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Yt(e,t,l,n){const r=new Yn(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ka(e,t,l){const n=l;if(n[we])return n[we];const r=o.inject(we,null),a=new Yn(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[we]=a,o.provide(we,a),o.onUnmounted(()=>{a.destroy(),n[we]=void 0}),a}function kt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[we]??o.inject(we,null):o.inject(we,null)}const ct=e=>e.default??e;class Ia{error(t,l){const n=l,r=l||o.hasInjectionContext()?kt(l):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=t||o.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=t||o.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=n||o.hasInjectionContext()?kt(n):null,i=l.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let It=new Ia;function Oa(e){It=e}function Da(e){It?Object.assign(It,e):It=e}function Va(e,t){ct(st).setValidator(e,t)}function Ra(e){ct(st).deleteValidator(e)}let Il=["blur","clear"];function Fa(e){Il=e}function Ol(){return Il}let Dl=["focus","change","setValue"];function Aa(e){Dl=e}function Vl(){return Dl}function Ma(e){ct(st).messages(e)}function Ot(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Ut(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 Ke=Symbol("ValidateSchemaKey");class Rl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,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=o.effectScope(!0),this.scope.run(()=>{o.watchEffect(()=>{const l=Ut(Ot(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),n.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};n.push(s)}}this.attrRules=Ut(n);const r=Ot(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=It;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,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,l,n=!1){n?ct(st).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?ct(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return ct(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 l=Ot(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ut(t):this.rules=Ut([t]);const n=Ot(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Ot(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},u=ct(st),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(g=>{if(g.pass)this.success();else{let p="error";Array.isArray(g.errors)&&g.errors.length>0&&(p=g.errors[0].message??p,g.errors=[g.errors[0]],g.errors[0].ref=c),this.error(p)}return g}).catch(g=>{const p=g.message??`${g}`;return this.error(p),g})}}return Promise.resolve({pass:!0})}}function Gt(e,t,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new Rl(t,l,e)}const Xt=Symbol.for("EventEmitterKey");class Fl{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function Pe(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function La(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function Ba(e,t){const l=Pe((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function _a(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function Zt(e,t,l,n=0,r=!0,a){let i=t,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>l){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>l){typeof a=="function"&&a(!1);return}i+=n,setTimeout(s,i)};setTimeout(s,i)}const _e=Symbol("DomainKey"),yt=Symbol("DataItemsKey");class Jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const qa=new Jt;function pt(){return qa}function lt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[_e]??o.inject(_e,null):o.inject(_e,null)}const Un=Symbol("OriginalDateKey");function Gn(e,t,l=[],n){const r=o.getCurrentInstance();let a=r?.proxy,i=o.inject(_e,null);i===null&&(i=pt());const u=e||t.prop||t.name;let s=new Jt(u);s.parent=i;const c=f=>{a[Un]||p(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,g=()=>a[Un]??null,p=f=>{const h={};ut(!0,h,o.toRaw(f)),a[Un]=h};o.isReactive(t)||typeof t=="function"?o.watch(t,f=>{s?.merge(f,l)},{immediate:!0}):s.merge(t,l),t.modelValue&&p(t.modelValue);const v=(f,h)=>{s?.set(f,h)},b=f=>s?.getForSelf(f)??null;if(a[_e]=s,o.provide(_e,s),r!==null){const f=o.inject(we,null),h=Yt(a,f,u,n);s.broadcast=h,a[we]=h,o.provide(we,h),a.broadcast=(T,q,...j)=>Reflect.apply(h.emit,h,[T,q,...j]);const A=o.inject(Ke,null),$=Gt(a,A,{componentName:""});s.validateSchema=$,a[Ke]=$,o.provide(Ke,$),a[yt]=new Map,a.validate=(T=!0)=>{const q=[];let j=null;const V={deep:!1};if(T===!0)j={name:"*"};else if(Array.isArray(T)&&T.length>0){const I=T;j={name:R=>R?I.indexOf(R)!==-1:!1}}else if(T!=null&&typeof T=="object"){const I=T;if(Object.assign(V,I),Array.isArray(I.include)&&I.include.length>0){const R=I.include;j={name:x=>x?R.indexOf(x)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const R=I.exclude;j={name:x=>x?R.indexOf(x)===-1:!1}}else j={name:"*"}}if(j){const I=h?.emitToChildren(j,"validate",V);I&&Reflect.apply([].push,q,I)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(I=>{let R=[];return I.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(R=[...R,...x.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,q=!0,j=!1)=>{if(j===!0){Reflect.ownKeys(T).forEach(I=>{let R=String(I);const x={componentName:"",fieldName:R,pureDataValidate:!0};if(s){const z=Ml(s,R,x,h,$);a[yt].set(R,z);const y=T[R];y&&z.validateSchema.setRule(y)}});return}if(q){const V=Reflect.ownKeys(T),I={name:R=>V.includes(R),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(I,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let q=null;if(T===!0)q={name:"*"};else if(Array.isArray(T)&&T.length>0){const j=T;q={name:V=>V?j.indexOf(V)!==-1:!1}}else if(T!=null&&typeof T=="object"){const j=T;if(Array.isArray(j.include)&&j.include.length>0){const V=j.include;q={name:I=>I?V.indexOf(I)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const V=j.exclude;q={name:I=>I?V.indexOf(I)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=T=>{const q=d();if(!q)return;const j={};if(ut(!0,j,g()??{}),Array.isArray(T))T.forEach(V=>{q[V]=j[V]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(I=>{q[I]=j[I]});else if(T&&Array.isArray(T.exclude)){let V=T.exclude??[];Reflect.ownKeys(j).forEach(I=>{V.includes(I)||(q[I]=j[I])})}else Object.assign(q,j);a.clearValidate(T)},a.setModelValue=(T,q)=>{if(!q||q===u)c(T);else{const j={name:q,messagingPolicy:"Once"};h?.emitToChildren(j,"setModelValue",T)}},a.getModelValue=()=>d(),a.setDomainProperty=(T,q)=>{v(T,q)},a.getDomainProperty=T=>b(T),setTimeout(function(){h?.pull()},0)}return o.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ke]=void 0,o.provide(Ke,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[we]=void 0,o.provide(we,null)),s?.destroy(),a[_e]=void 0,o.provide(_e,null),a[yt]&&(a[yt].clear(),a[yt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function Al(e,t,l=[]){let r=o.getCurrentInstance()?.proxy,a=o.inject(_e,null);a===null&&(a=pt());const i=e||t.prop||t.name;let u=new Jt(i);return u.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,s=>{u?.merge(s,l)},{immediate:!0}):u.merge(t,l),r[_e]=u,o.provide(_e,u),o.onUnmounted(()=>{u?.destroy(),r[_e]=void 0,o.provide(_e,null),u=null,r=null}),u}function ke(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(we,null);let u=Yt(r,i,a,l);r[we]=u,o.provide(we,u),r.broadcast=(b,f,...h)=>u?Reflect.apply(u.emit,u,[b,f,...h]):null;const s=o.inject(Ke,null);e.fieldName=e.fieldName??a;let c=Gt(r,s,e);r[Ke]=c,o.provide(Ke,c),r.validate=(b=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,A=!1;if(Array.isArray(b)&&b.indexOf(a)!==-1)A=!0,h=!0;else if(b&&typeof b=="object"){const $=b,T=$.ignoreDisabled??!0,q=$.ignoreReadonly??!0,j=$.ignoreHidden??!0;T===!0&&e.disabled===!0||q===!0&&e.readonly===!0||j===!0&&Wt(r.$el)?A=!1:(Array.isArray($.include)&&$.include.indexOf(a)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(a),A=!0),h=$.deep??!1}else typeof b=="boolean"&&(h=b),A=!0;if(A){const $=c?.validate();f.push($)}if(h){let $=null;const T={deep:!1};if(b===!0)$={name:"*"};else if(Array.isArray(b)&&b.length>0){const q=b;$={name:j=>j?q.indexOf(j)!==-1:!1}}else if(b!=null&&typeof b=="object"){const q=b;if(Object.assign(T,q),Array.isArray(q.include)&&q.include.length>0){const j=q.include;$={name:V=>V?j.indexOf(V)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const j=q.exclude;$={name:V=>V?j.indexOf(V)===-1:!1}}else $={name:"*"}}if($&&u){const q=u.emitToChildren($,"validate",T);Reflect.apply([].push,f,q)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then($=>{let T=[];return $.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(T=[...T,...q.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=b=>c?.setRule(b),r.setNameValidateRules=(b,f=!1)=>{const h=b[a];if(h&&c?.setRule(h),f&&u){const A={name:$=>Reflect.ownKeys(b).includes($)};u.emitToChildren(A,"setNameValidateRules",b,!1)}},r.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(b===!0)f={name:"*"};else if(Array.isArray(b)&&b.length>0){const h=b;f={name:A=>A?h.indexOf(A)!==-1:!1}}else if(b!=null&&typeof b=="object"){const h=b;if(Array.isArray(h.include)&&h.include.length>0){const A=h.include;f={name:$=>$?A.indexOf($)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;f={name:$=>$?A.indexOf($)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Fl(r);r[Xt]=d;const g=Pe((b="validate")=>{c&&(b==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ol()).forEach(b=>{d&&d.on(b,f=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Vl()).forEach(b=>{d&&d.on(b,f=>{g("reset")})}),setTimeout(function(){u?.pull()},0),o.onUnmounted(()=>{u?.destroy(),r[we]=void 0,o.provide(we,null),u=null,c?.destroy(),r[Ke]=void 0,o.provide(Ke,null),c=null,d?.destroy(),r[Xt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(b,...f)=>{d&&Reflect.apply(d.emit,d,[b,...f])},onEvent:(b,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(b,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Ml(e,t,l,n,r){const a={},i=t??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};l.fieldName=i,l.validateHandler={getValue(d){return u.getValue()}};let s=Gt({},r,l);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const g=[];let p=!1,v=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)v=!0,p=!0;else if(d&&typeof d=="object"){const b=d;Array.isArray(b.include)&&b.include.indexOf(i)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(i),v=!0,p=b.deep??!1}else typeof d=="boolean"&&(p=d),v=!0;if(v&&s){const b=s.validate();g.push(b)}if(p){let b=null;const f={deep:!1};if(d===!0)b={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;b={name:A=>A?h.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const A=h.include;b={name:$=>$?A.indexOf($)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;b={name:$=>$?A.indexOf($)===-1:!1}}else b={name:"*"}}if(b&&c){const h=c.emitToChildren(b,"validate",f);Reflect.apply([].push,g,h)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(b=>{let f=[];return b.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const g=d[i];g&&s?.setRule(g)};let c=Yt(null,n,i,a);return o.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Ll(){let t=o.getCurrentInstance()?.proxy,l=new Fl(t);return t[Xt]=l,o.onUnmounted(()=>{l?.destroy(),t[Xt]=void 0,l=null,t=null}),{emitEvent:(n,...r)=>{l&&Reflect.apply(l.emit,l,[n,...r])},onEvent:(n,r)=>{l&&Reflect.apply(l.on,l,[r])},offEvent:(n,r)=>{l&&Reflect.apply(l.off,l,[r])}}}const Ve=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,t)}px`:"";function me(e,t=-1){if(e==null)return 0;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 l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=me(e.top)),e.left!==null&&e.left!==void 0&&(t.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=me(e.right))),t}function Xn(e,t,l={},n=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(l.headerHeight??t.headerHeight??-1),e.headerPadding=Xe(l.headerPadding??t.headerPadding),e.footerHeight=me(l.footerHeight??t.footerHeight??-1),e.footerPadding=Xe(l.footerPadding??t.footerPadding),e.contentPadding=Xe(l.contentPadding??t.contentPadding),n){const s=l.height??t.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(l.width??t.width??0,r)}}function Bl(e,t={}){const l={top:null,bottom:null,right:null,left:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},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=me(r.top),n.safeAreaBottom=me(r.bottom),n.safeAreaLeft=me(r.left),n.safeAreaRight=me(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Xn(n,a,t,!0,i,u,s,c);const d=o.reactive(n),g=e.getForParent(rt);g&&(n.height=nn(e,g),n.width=on(e,g),o.watch([()=>nn(e,g),()=>on(e,g)],([v,b])=>{d.height=v,d.width=b}));const p=!g;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,b,f=-1,h=-1,A=0,$=0])=>{Xn(d,b,t,p,f,h,A,$)}),e.set(rt,d),d}function Qt(e){return e.get(rt)}function en(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function tn(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function nn(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=en(e,t),n=tn(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function on(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Pa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function ja(e){return!!e.getForParent(rt)}var je=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(je||{});function ln(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Fe(e,t,l=1,n){const r=lt();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let u=a.length-1;u>=0;u--){const s=a[u];if(ln(s,n))return s}const i=e.value;return ln(i,n)?i:null}):o.computed(()=>{const a=e.value;if(ln(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(ln(s,n))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function ge(e,t="modelValue",l=null,n){const r=o.toRef(e,t);let a=r.value;typeof l=="function"&&(a=l(r.value));const i=o.ref(a);return o.watch(r,u=>{if(typeof l=="function"){const s=l(u);s!==i.value&&(i.value=s,n&&n("setValue",s))}else u!==i.value&&(i.value=u,n&&n("setValue",u))}),i}const _l=new Map,rn=new Map;let Zn=null;function za(e){Zn=e}function ql(e,t,l){if(l){let n=rn.get(l);n||(n=new Map,rn.set(l,n)),n.set(e,t)}else _l.set(e,t)}function We(e,t,l){!l&&Zn&&(l=Zn(e)??void 0);let n=null;if(l){let r=rn.get(l);r&&(n=r.get(t))}return n||(n=_l.get(t)),n}function Ha(e,t){for(let l in e){const n=e[l];ql(l,n,t)}}function Ka(e){rn.delete(e)}function Wa(){return{top:0,left:0,bottom:0,right:0}}function Ya(){if(ot){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:t,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ua(e,t){if(t.componentPrefix){const l=e.indexOf("-");return`${t.componentPrefix}${e.slice(l)}`}return e}class Ga{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ua(a.name,l);t.component(i,a)}}),this.installers.forEach(a=>{a(t,l)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Pe(()=>{const u={...l},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},120);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ut({},Wa(),t.safeAreaInset),i=Ya(),u=ut({},i.pageLayout,t.pageLayout);l=l??pt(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",u),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){za(t)}setAPI(t,l,n){ql(t,l,n)}getAPI(t,l,n){return We(t,l,n)}batchSetAPI(t,l){Ha(t,l)}clearScopeAPI(t){Ka(t)}getRootDomain(){return pt()}}const Xa=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload,S.ElStatistic,S.ElCountdown,S.ElSegmented,S.ElAnchor,S.ElAnchorLink,S.ElWatermark,S.ElMessageBox,S.ElMessage,S.ElNotification],Za=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],Ja=(e,t={})=>{const l=t.componentPrefix??"fox",n=l[0].toUpperCase()+l.slice(1);Xa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Za.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function Se(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.proxy;Object.assign(l,e)}}const $e={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Re={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}},Pl={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}},jl={name:{type:String,required:!1},prop:{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}},zl=[];for(const e in jl)zl.push(e);const Qa=Symbol.for("InnerPageScopeKey"),ei={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}},ti=(e,t)=>({inheritAttrs:!0,props:{...$e,...Pl,...ei},setup(l,{slots:n}){const r=Gn(l.name,l),a=o.inject(Qa,!1);if(r){const d=Bl(r,l);Se({getPageContentHeight:()=>nn(r,d),getPageContentWidth:()=>on(r,d),getPageHeaderHeight:()=>en(r,d),getPageFooterHeight:()=>tn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),u=o.computed(()=>({})),s=o.getCurrentInstance(),c=(d,g=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(d,!0,g)};return o.watch([()=>l.rules,()=>l.pureDataRules],([d,g],[p,v])=>{if(d&&p){const b=o.toRaw(p),f=o.toRaw(d),h=f?Reflect.ownKeys(f):[];(b?Reflect.ownKeys(b):[]).forEach($=>{h.includes($)||(f[$]=[])}),c(f)}if(g&&v){const b=o.toRaw(v),f=o.toRaw(g),h=f?Reflect.ownKeys(f):[];(b?Reflect.ownKeys(b):[]).forEach($=>{h.includes($)||(f[$]=[])}),c(f,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const d=o.toRaw(l.rules);c(d)}if(l.pureDataRules){const d=o.toRaw(l.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return o.h("div",d,[n?.default?.()])}}}),{componentName:ni,create:oi,scope:xg}=ie("page"),Jn=oi(ti(ni));function Qn(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function an(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const li=(e,t,l,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:l},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=lt(),u=i?Qt(i):null;u&&(u.headerMounted=!0);const s=e,c=o.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=o.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),g=r.height!==null&&r.height!==void 0?me(r.height):null,p=o.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const _=Xe(r.padding??u.headerPadding);return Object.assign(y,_),g&&(u.headerHeight=g),u.headerHeight>0&&(y.height=u.headerHeight),y.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(_.top??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaTop)),y}if(g&&(y.height=g),r.padding){const _=Xe(r.padding);Object.assign(y,_)}return y}),v=o.ref(null),b=()=>{if(u&&v.value&&!Wt(v.value)){if(!n){const y=Qn(v.value);u.headerAllHeight=y.height}return u.headerMounted=!0,!0}return!1},f=Pe(b,120);let h=null;o.onMounted(()=>{u&&(Zt(b,50,5,50,!0),window.ResizeObserver&&v.value&&(h=new window.ResizeObserver(f),h.observe(v.value)))}),o.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const A=o.computed(()=>{const y={};return p.value.height!==null&&p.value.height!==void 0&&(y.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(y.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(y.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(y.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(y.paddingBottom=`${p.value.bottom}px`),y}),$=o.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function T(){a.emit("back")}function q(){a.emit("click-title")}function j(){a.emit("click-right")}function V(){a.emit("click-right-text")}const I=()=>{if(!r.leftShow)return null;const y=[];if(a.slots.left)y.push(a.slots.left());else{if(a.slots.leftIcon){const _=o.h("view",{class:"left-icon",onClick:T},[a.slots.leftIcon()]);y.push(_)}else if(r.leftIcon){const _=o.h("view",{class:"left-icon",onClick:T},[o.h(r.leftIcon)]);y.push(_)}if(r.leftText){const _=o.h("view",{class:"left-text",onClick:T},[r.leftText]);y.push(_)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__left"},y)},R=()=>{if(!r.rightShow)return null;const y=[];if(a.slots.right)y.push(a.slots.right());else{if(r.rightText){const _=o.h("view",{class:"right-text",onClick:V},[r.rightText]);y.push(_)}if(a.slots.rightIcon){const _=o.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);y.push(_)}else if(r.rightIcon){const _=o.h("view",{class:"right-icon",onClick:j},[o.h(r.rightIcon)]);y.push(_)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__right"},y)},x=()=>{if(!r.titleShow)return null;const y=[],_=a.slots.default?a.slots.default():null;if(_)y.push(_);else{if(r.title){const J=o.h("view",{class:"title-text"},[r.title]);y.push(J)}if(a.slots.titleIcon){const J=o.h("view",{class:"title-icon",onClick:q},[a.slots.titleIcon()]);y.push(J)}else if(r.titleIcon){const J=o.h("view",{class:"title-icon",onClick:q},[o.h(r.titleIcon)]);y.push(J)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__title"},y)},z=()=>{const y=[],_=a.slots.bottom?a.slots.bottom():null;return _&&y.push(_),y.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},y)};return()=>{if(!$.value)return null;const y=[];if(a.slots.all)y.push(a.slots.all());else{const J=[],B=I();B&&J.push(B);const N=x();N&&J.push(N);const M=R();if(M&&J.push(M),J.length>0){const G=o.h("view",{class:d.value},J);y.push(G)}const P=z();P&&y.push(P)}if(y.length===0)return null;const _={class:c.value,style:A.value,ref:v};return o.h("view",_,y)}}}),{componentName:ri,create:ai,scope:ii}=ie("header-bar"),eo=ai(li(ri,ii,Ie.ArrowLeft));function si(e,t,l=!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=lt(),i=a?Qt(a):null,u=o.computed(()=>{const f=e;return{[f]:!0,[`${f}--${n.align}`]:!0,[`${f}--border`]:n.border,[`${f}--fixed`]:n.fixed,[`${f}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),s=n.height!==null&&n.height!==void 0?me(n.height):null,c=o.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Xe(n.padding??i.footerPadding);return Object.assign(f,h),s&&(i.footerHeight=s),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(h.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(s&&(f.height=s),n.padding){const h=Xe(n.padding);Object.assign(f,h)}return f}),d=o.ref(null),g=()=>{if(i&&d.value&&!Wt(d.value)){if(!l){const f=Qn(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},p=Pe(g,120);let v=null;o.onMounted(()=>{i&&(Zt(g,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(p),v.observe(d.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const b=o.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=Ve(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=Ve(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=Ve(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=Ve(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=Ve(c.value.bottom)),f});return()=>{const f=r.slots.default?r.slots.default():[],h={ref:d,class:u.value,style:b.value};return o.h("view",h,f)}}}}const{componentName:ui,create:ci,scope:Tg}=ie("footer-bar"),to=ci(si(ui));function fi(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(l,{slots:n,attrs:r}){const a=lt(),i=o.computed(()=>({[e]:!0})),u=a?Qt(a):null,s=o.computed(()=>{const v={};if(a&&u){if(l.padding){const j=Xe(l.padding);Object.assign(u.contentPadding,j)}const b=en(a,u),f=tn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,v.height=h;let A=(u&&u.contentPadding&&u.contentPadding.top)??-1;(A>=0||b>0)&&(A=A<0?0:A,v.paddingTop=`${b+A}px`);let $=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;($>=0||f>0)&&($=$<0?0:$,v.paddingBottom=`${f+$}px`);const T=(u&&u.contentPadding&&u.contentPadding.left)??-1;T>=0&&(v.paddingLeft=`${T}px`);const q=(u&&u.contentPadding&&u.contentPadding.right)??-1;return q>=0&&(v.paddingRight=`${q}px`),v}if(l.padding){const b=Xe(l.padding);b.left&&(v.paddingLeft=`${b.left}px`),b.top&&(v.paddingTop=`${b.top}px`),b.right&&(v.paddingRight=`${b.right}px`),b.bottom&&(v.paddingBottom=`${b.bottom}px`)}return v}),c=o.ref(null),d=()=>{if(u&&c.value){const v=an(c.value);u.contentInnerHeight=v.height,u.contentInnerWidth=v.width}},g=Pe(d,120);let p=null;return o.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(p=new window.ResizeObserver(g),p.observe(c.value))}),o.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const v=l.tag??"view",b={...r,ref:c,class:i.value,style:s.value};return o.h(v,b,n)}}}}const{componentName:di,create:hi,scope:$g}=ie("content"),no=hi(fi(di)),bt="GroupStateKey",Hl=Symbol.for("GroupScopeKey");function sn(){return o.inject(Hl,!1)}function un(e=!0){o.provide(Hl,e)}function gi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Kn(r)||(e[n]=r)})}function mi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gi(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function oo(e,t,l=-1,n=-1,r=!1,a,i,u){const s=e.get(bt);if(!s)return;const c=e.get("groupLayout")??{};l===-1&&(l=c.column??1),n===-1&&(n=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),g=me(i);u||(u=c.type??"grid");const p=()=>{const v=t===""||t===-1,b=me(t);let f=Te(l);const h=me(n);if(!v){let T=(b-(f-1)*h)/f;for(;g!==-1&&T>g;)f++,T=(b-(f-1)*h)/f;for(;d!==-1&&f>1&&T<d;)f--,T=(b-(f-1)*h)/f}let A=!1;const $=s.layout;$.value.width=t,$.value.column!==f&&($.value.column=f,A=!0),$.value.gutter!==h&&($.value.gutter=h,A=!0),$.value.type!==u&&($.value.type=u,A=!0),A&&o.triggerRef($)};if(r)p();else{const v=++s.passport;setTimeout(()=>{v===s.passport&&p()},50)}}function cn(e,t=!1){let l;return t?l=e.getForParent(bt):l=e.get(bt),l.layout}function fn(e,t=!1){let l;return t?l=e.getForParent(bt):l=e.get(bt),l.order}function Kl(e,t=1){if(t==="stretch")return-1;const l=Te(t);return l===-1?100:100*l/e}function dn(e,t,l=1,n=0,r){const a={};let i=0;r?i=me(r):i=Kl(t.column,l),i>0&&(a.width=`${i}%`);const u=Kl(t.column,n);u>0&&(a["margin-left"]=`${u}%`);const s=t.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function hn(e,t,l=1,n=0){if(l==="stretch"){const s=e.index%t.column,c=s+(t.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Te(l);if(r===-1){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}const a=Te(n)%t.column;let i=(e.index+a)%t.column,u=i+r;return u>t.column?(i=0,u=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 Wl=Symbol("RollingStateKey");function yi(e){o.provide(Wl,e)}function pi(){return o.inject(Wl,null)}function lo(e){let t=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function bi(e){let t=lo(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=lo(l),document.body.removeChild(l)}return t}function vi(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const wi={...$e,...Pl,...jl};function Si(e,t,l){return{props:wi,emits:["update:collapse","header-click"],setup(n,r){const a=Gn(n.prop??n.name,n,zl),i=mi(a,{type:n.type}),u=sn();un(!0);const s=n.rollingDisplay?pi():null,c=o.ref(null),d=o.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),g=o.computed(()=>u&&a?cn(a,!0).value:null),p=o.getCurrentInstance(),v=(k,W=!1)=>{const Z=p?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(k,!0,W)};o.watch([()=>n.rules,()=>n.pureDataRules],([k,W],[Z,O])=>{if(k&&Z){const K=o.toRaw(Z),X=o.toRaw(k),le=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{le.includes(fe)||(X[fe]=[])}),v(X)}if(W&&O){const K=o.toRaw(O),X=o.toRaw(W),le=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{le.includes(fe)||(X[fe]=[])}),v(X,!0)}},{deep:!0});const b=e,f=o.computed(()=>{const k={};k.height=N.value;const W=u?fn(a,!0):null;if(g.value&&W){if(g.value.type==="grid"){const Z=hn(W,g.value,n.span,n.offset);Object.assign(k,Z)}else if(g.value.type==="flow"){const Z=dn(W,g.value,n.span,n.offset,n.width);Object.assign(k,Z)}}else if(n.width){const Z=Ve(n.width);k.width=Z}return k}),h=o.computed(()=>{const k=i.layout.value.type;return k==="grid"||k==="flow"?{[`${b}--${k}`]:!0,[`${b}--${k}-justify-${n.justify}`]:!0,[`${b}--${k}-align-${n.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${k}`]:!0,[`${b}--gutter`]:!0}}),A=o.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(n.columnWidth)W=`repeat(auto-fill, ${n.columnWidth})`;else{const Z=vi(R.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),$=o.toRef(n,"gutter"),T=o.toRef(n,"column"),q=o.computed(()=>u||d.value?!0:ue(n.isWrap)),j=[],V=k=>{j.push(k)},I=()=>{let k=j.length;j.splice(0,k)},R=o.ref(-1),x=k=>{const W=an(k).width;W>0&&W!==R.value&&(R.value=W)};oo(a,R.value,T.value,$.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([R,T,$],([k,W,Z])=>{i.order.index=0,oo(a,k,W,Z,!1,n.minItemWidth,n.maxItemWidth,n.type)});const z=o.computed(()=>M.value?n.expandText??"":n.collapseText??""),y=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),J=o.ref(),B=o.ref(),N=o.computed(()=>P.value||Ve(n.height)||""),M=o.ref(!1),P=o.ref(""),G=o.ref(!1);let ee=-1;const L=(k,W=!0)=>{const Z=J.value;if(Z&&M.value!==k){if(ee=ee===-1?bi(Z):ee,G.value=!0,W)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",k||(P.value="",G.value=!1)},k){let O=0;n.collapseHeight?O=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(O=B.value.offsetHeight),P.value=`${ee}px`,o.nextTick(()=>{P.value=`${O}px`})}else P.value=`${ee}px`;else if(k){let O=0;n.collapseHeight?O=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(O=B.value.offsetHeight),P.value=`${O}px`}else G.value=!1,P.value=`${ee}px`;M.value=k,r.emit("update:collapse",k)}};o.watch(()=>n.collapse,k=>{L(k)});const te=k=>{r.emit("header-click",k)},E=()=>{C()},C=k=>{k=k??!M.value,L(k)};Se({toggleCollapse:C,doLayout:()=>{j[0]&&(x(j[0]),oo(a,R.value,T.value,$.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,w=!0;const H=k=>{if(n.rules){const W=o.toRaw(n.rules);v(W)}if(n.pureDataRules){const W=o.toRaw(n.pureDataRules);v(W,!0)}if(ot&&(k&&L(ue(n.collapse),!1),n.autoLayout&&Array.isArray(j)&&j.length>0)){const W=j[0];if(x(W),window.ResizeObserver){const Z=Pe(()=>x(W),120);D=new window.ResizeObserver(Z),D.observe(W)}}},Q=()=>{D?.disconnect(),D=null},oe=!d.value||s?.acquire();oe&&(c.value=d.value?!0:null),o.onMounted(()=>{if(oe&&(H(w),w=!1),d.value&&s){let k=null,W=s.initialHeight;s.observe(J.value,Z=>{if(Z!==c.value)if(Z)c.value=!0,M.value||(P.value=""),k=setTimeout(()=>{k=null,c.value!==!1&&(H(w),w=!1)},100);else{if(k!==null&&clearTimeout(k),c.value=!1,!M.value)if(w)P.value=s.initialHeight;else{let O=lo(J.value);O<=0?P.value=W:(P.value=`${O}px`,W=P.value)}w||Q()}})}}),o.onUnmounted(()=>{D?.disconnect(),s&&s.unobserve(J.value)});const U=(k="right")=>{const W=[];if(z.value){const K={class:y.value},X=o.h("span",K,[z.value]);W.push(X)}const Z={class:_.value},O=l(n.collapseIcon,Z);return O&&W.push(O),W.length>0?o.h("div",{class:{[`${b}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:E},W):null},Y=(k,W,Z,O)=>{const K={...h.value};return W===0&&(K[`${b}__first`]=!0),Z>=O-1&&(K[`${b}__last`]=!0),o.h("div",{ref:V,key:`${W}`,class:K,style:A.value},k)};return()=>{if(d.value&&c.value!==!0){const K=n.tag||"div";return o.h(K,{ref:J,prop:n.name,class:{[`${b}`]:!0,"is-collapse":G.value},style:f.value},[])}i.order.index=0;const k=[];let W=0;if(r.slots.header){const K={key:`${W++}`,ref:B,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:te},X=o.h("div",K,[r.slots.header()]);k.push(X)}else{const K=[],X=n.collapsePosition==="left";if(X&&n.showCollapse){const le=U("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${b}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const ce=o.h("div",le);K.push(ce)}if(r.slots.title){const le=o.h("div",{class:{[`${b}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=o.h("div",{class:{[`${b}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!X&&n.showCollapse){const le=U("right");le&&K.push(le)}if(K.length>0){const le={key:`${W++}`,ref:B,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:te},ce=o.h("div",le,K);k.push(ce)}}I();const Z=r.slots.default?r.slots.default():[],O=i.layout.value.type;if(O==="grid"){const K=Y(Z,W++,0,Z.length);k.push(K)}else if(O==="flow"){const K=Y(Z,W++,0,Z.length);k.push(K)}else for(let K=0;K<Z.length;K++){const X=Z[K],le=Y([X],W++,K,Z.length);k.push(le)}if(q.value){const K=n.tag||"div";return o.h(K,{ref:J,prop:n.name,class:{[`${b}`]:!0,"is-collapse":G.value},style:f.value},[k])}else return k}}}}const{componentName:xi,create:Ti,scope:$i}=ie("group"),ro=Ti(Si(xi,$i,(e,t)=>(e=e??Ie.ArrowUp,o.h(S.ElIcon,t,{default:()=>[o.h(e)]}))));function Ci(e){return e===window}const Ei=/matrix\((.+)\)/,ao=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(Ci(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=Ei.exec(c);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}r=r.parentNode}return l-=a,n-=i,l+=u,n+=s,{x:l,y:n}};class Ni{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ki{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new Ni,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Dt=new ki,Yl={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:Ii,create:Oi}=ie("price"),Di=Oi({props:{...Yl},setup(e){const t=o.computed(()=>({[Ii]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>Nt(e.price)==0?"":zt(e.price,e.decimalLength,!0,Te(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),Ye=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Vi=["innerHTML"],Ri=["innerHTML"];function Fi(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vi)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ri)):o.createCommentVNode("",!0)],2)}const gn=Ye(Di,[["render",Fi]]),{componentName:io,create:Ai}=ie("hint-text"),Mi=Ai({components:{Price:gn},props:{...Yl,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 l=o.ref({top:null,right:null,bottom:null,left:null}),n=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),u=o.ref(!1),s=o.ref(null),c=(y,_,J,B,N,M)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,ee=y.split("-");let L=[];ee[0]==="top"?L=["top","bottom","right","left"]:ee[0]==="bottom"?L=["bottom","top","right","left"]:ee[0]==="left"?L=["left","top","bottom","right"]:ee[0]==="right"&&(L=["right","top","bottom","left"]);const te={top:null,right:null,bottom:null,left:null},E=[];for(let C=0;C<L.length;C++){const F=L[C];if(E[0]=F,ee[1]&&(E[1]=ee[1]),F==="top"){const D=_.y-M-e.arrowSize-e.offset;if(D>=0){te.top=D;let w=0;ee[1]==="start"?w=_.x:ee[1]==="end"?w=_.x+J-N:w=_.x+J/2-N/2;const H=P-w-N;H<0?(w+=H,g.value=-H):g.value=0,te.left=w<0?0:w;break}}else if(F==="bottom"){const D=_.y+B+e.arrowSize+e.offset;if(D+M<=G){te.top=D;let w=0;ee[1]==="start"?w=_.x:ee[1]==="end"?w=_.x+J-N:w=_.x+J/2-N/2;const H=P-w-N;H<0?(w+=H,g.value=-H):g.value=0,te.left=w<0?0:w;break}}else if(F==="left"){const D=_.x-N-e.arrowSize-e.offset;if(D>=0){te.left=D;let w=0;ee[1]==="start"?w=_.y:ee[1]==="end"?w=_.y+B-M:w=_.y+B/2-M/2,te.top=w<0?0:w;break}}else if(F==="right"){const D=_.x+J+e.arrowSize+e.offset;if(D+N<=P){te.left=D;let w=0;ee[1]==="start"?w=_.y:ee[1]==="end"?w=_.y+B-M:w=_.y+B/2-M/2,te.top=w<0?0:w;break}}}return{bestPlacement:E.join("-"),bestInsetRect:te}},d=(y,_,J=10)=>{if(!ot||_===!1||!y)return;n.value=ao(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const B=s.value.offsetHeight,N=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:P}=c(e.placement,n.value,r.value,a.value,N,B);i.value=M,l.value=P,u.value=!0},g=o.ref(0),p=Pe(()=>{d(e.message,e.visible)},10),v=o.ref(e.visible);o.watch(()=>e.visible,y=>{v.value=y});const b=o.computed(()=>v.value&&f.value),f=o.ref(!0),h=Pe(y=>{const _=y[0];_&&(f.value=_.isIntersecting)},10),A=new IntersectionObserver(h);o.watch([()=>e.message,()=>e.visible],([y,_])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Dt.watch(e.reference,p),A.observe(e.reference)}),o.onBeforeUnmount(()=>{Dt.unwatch(e.reference,p),A.unobserve(e.reference),A.disconnect()});const $=o.computed(()=>{const y={[io]:!0};return i.value.startsWith("top")?y["is-top"]=!0:i.value.startsWith("right")?y["is-right"]=!0:i.value.startsWith("bottom")?y["is-bottom"]=!0:i.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),T=o.computed(()=>{const y={};l.value.top!==null&&(y.top=`${l.value.top}px`),l.value.right!==null&&(y.right=`${l.value.right}px`),l.value.bottom!==null&&(y.bottom=`${l.value.bottom}px`),l.value.left!==null&&(y.left=`${l.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const _=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${_}px`,u.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=o.computed(()=>{const y=[`${io}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),j=o.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),V=o.computed(()=>({[`${io}__arrow`]:!0})),I=o.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,i.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="top-start"?(y.left=`${e.arrowOffset+g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(y.right=`${e.arrowOffset-g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(y.left=`${e.arrowOffset+g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(y.right=`${e.arrowOffset-g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),R=o.computed(()=>b.value&&e.closeOnClick),x=o.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:b,tipRef:s,classes:$,styles:T,textClasses:q,textStyles:j,arrowClasses:V,arrowStyles:I,overlayShow:R,overlayStyle:x,onClickOverlay:()=>{v.value=!1,t.emit("update:visible",!1)}}}}),Li=["innerHTML"];function Bi(e,t,l,n,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Li))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const Vt=Ye(Mi,[["render",Bi]]);class Ul{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 so={},_i=new Ul,vt=new Map,mn=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of vt.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}vt.clear()}},qi=e=>{e.unmount=mn;const t=document.getElementById(e.id);if(t){const l=vt.get(e.id);l?e={...so,...l,...e}:e={...so,...e},e.transition=!1;const n=o.createVNode(Vt,e);o.render(n,t)}return e.id},Pi=e=>{e.unmount=mn;let t=e.id??`hinttext_${_i.get()}`;e={...so,...e},e.id=t,vt.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode(Vt,e);return o.render(n,l),document.body.appendChild(l),t},ji=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Le={show(e,t,l={},n=!0){ji(t);const r=l.id;return r&&vt.has(r)?qi({...l,message:t,reference:e}):(n&&mn(),Pi({...l,message:t,reference:e}))},hide(e){mn(e)},install(e){e.config.globalProperties.$hintText=Le}};function zi(e,t,l,n=!1){return{inheritAttrs:!0,props:{...$e,...Re},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=lt(),s=sn();un(!1);const c=o.computed(()=>s&&u?cn(u,!1).value:null),d=e,g=o.ref(null),p=o.computed(()=>{const O={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(O[r.errorMarkClass]=!!M.value,O[r.warnMarkClass]=!!B.value,O[r.infoMarkClass]=!!_.value,typeof g.value=="function"){const K=g.value(i);O[K]=!0}else if(typeof g.value=="string"){const K=g.value;O[K]=!0}return O}),v=o.ref(null),b=o.computed(()=>{const O={};if(r.width)r.width!=="auto"&&(O.width=Ve(r.width));else{const K=s&&u?fn(u,!1):null;if(c.value&&K){if(c.value.type==="grid"){const X=hn(K,c.value,r.span,r.offset);Object.assign(O,X)}else if(c.value.type==="flow"){const X=dn(K,c.value,r.span,r.offset,r.width);Object.assign(O,X)}}}if(typeof v.value=="function"){const K=v.value(i);K&&Object.assign(O,K)}else if(v.value&&typeof v.value=="object"){const K=v.value;Object.assign(O,K)}return O}),f=o.ref(null),h=o.computed({get:()=>f.value??ue(r.isRequired),set:O=>{f.value=O}}),A=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",$=Fe(o.toRef(r,"labelPosition"),"labelPosition",je.Near),T=o.computed(()=>$&&$.value==="top"?"top":$&&$.value==="right"?"right":"left"),q=o.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${T.value}`]:!0})),j=o.computed(()=>({label:!0,[`label--${T.value}`]:!0})),V=Fe(o.toRef(r,"labelWidth"),"labelWidth",je.Near),I=o.computed(()=>V&&V.value?{width:Ve(V.value)}:{}),R=o.computed(()=>({"label--string":!0,"label--required":h.value})),x=o.computed(()=>({content:!0,[r.contentClass]:!0})),z=o.computed(()=>({...r.contentStyle})),y=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(O){h.value=O},setErrorTip(O){y.errorTip=O},setErrorIcon(O){y.errorIcon=O},setWarnTip(O){y.warnTip=O},setWarnIcon(O){y.warnIcon=O},setInfoTip(O){y.infoTip=O},setInfoIcon(O){y.infoIcon=O},setCustomClassName(O){g.value=O},setCustomStyle(O){v.value=O}});const _=o.computed(()=>r.infoTip||y.infoTip),J=o.computed(()=>r.infoIcon||y.infoIcon),B=o.computed(()=>r.warnTip||y.warnTip),N=o.computed(()=>r.warnIcon||y.warnIcon),M=o.computed(()=>r.errorTip||y.errorTip),P=o.computed(()=>r.errorIcon||y.errorIcon),G=o.computed(()=>M.value?"error":B.value?"warn":_.value?"info":""),ee=()=>G.value.length>0,L=o.computed(()=>G.value==="error"?M.value:G.value==="warn"?B.value:G.value==="info"?_.value:""),te=o.computed(()=>G.value==="error"?P.value:G.value==="warn"?N.value:G.value==="info"?J.value:null),E=o.computed(()=>{const O={[`${d}__tip`]:!0,[`${d}__tip--${G.value}`]:!0,[`${d}--animate`]:!0};return G.value==="error"&&r.errorClass?O[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?O[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(O[`${r.infoClass}`]=!0),O}),C=o.computed(()=>{const O={};return $&&$.value==="top"||!A()?O["padding-left"]="0px":V&&V.value&&(O["padding-left"]=Ve(V.value)),O}),F=o.ref();let D="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([O,K,X,le])=>{F.value&&(O&&!he(K)?D?l.show(F.value,K,{...le,id:D,type:X},!0):D=l.show(F.value,K,{...le,type:X},!0):l.hide(D))});let w=null;const H=()=>{w||!F.value||(w=new IntersectionObserver(O=>{let K=!1;for(let X of O)if(X.intersectionRatio>0){K=!0,K&&a.emit("appear",X);break}K||a.emit("disappear")}),w.observe(F.value))},Q=()=>{!w||!F.value||(w.unobserve(F.value),w=null)};o.watch(()=>ue(r.appearListen),O=>{O?H():Q()}),o.onMounted(()=>{ue(r.appearListen)&&H()}),o.onUnmounted(Q);const oe=()=>{if(!A())return null;const O=[],K=a.slots?.label?.()??r.label,X={class:R.value},le=o.h("div",X,[K]);if(O.push(le),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();O.push(fe)}const ce={class:j.value,style:I.value};return o.h("div",ce,O)},U=()=>{const O=[];if(a.slots.prepend){const X=a.slots.prepend();O.push(X)}if(a.slots.default){const X=a.slots.default();O.push(X)}if(a.slots.append){const X=a.slots.append();O.push(X)}if(a.slots.fixedTip){const X={class:[`${d}__fixed-tip`]},le=o.h("div",X,[a.slots.fixedTip()]);O.push(le)}const K={ref:F,class:x.value,style:z.value};return o.h("div",K,O)},Y=()=>{const O=te.value;return O?typeof O=="function"?o.h("div",{class:"fox-item__tip--icon"},[O()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(O)]):null},k=()=>{const O=L.value;return O?typeof O=="function"?o.h("div",{class:"fox-item__tip--text"},[O()]):o.h("div",{class:"fox-item__tip--text"},[O]):null},W=()=>{if(!ee())return null;const O=[],K=Y();K&&O.push(K);const X=k();X&&O.push(X);const le={class:E.value,style:C.value};return o.h("div",le,O)},Z=()=>a.slots?.hide?.()??null;return()=>{const O=[],K=[],X=oe();X&&K.push(X);const le=U();le&&K.push(le);const ce={class:q.value},fe=o.h("div",ce,K);O.push(fe);const ye=W();ye&&O.push(ye);const pe=Z();pe&&O.push(pe);const Ee={class:p.value,style:b.value,prop:r.prop};return o.h("div",Ee,O)}}}}const{componentName:Hi,create:Ki,scope:Wi}=ie("item"),Ce=Ki(zi(Hi,Wi,Le,!1));function Yi(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(l,n){const r=lt(),a=sn();un(!1);const i=o.computed(()=>a&&r?cn(r,!1).value:null),u=e,s=o.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:l.span==="stretch"})),c=o.computed(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=Ve(l.width));else{const g=a&&r?fn(r,!1):null;if(i.value&&g)if(i.value.type==="grid"){const p=hn(g,i.value,l.span,l.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=dn(g,i.value,l.span,l.offset,l.width);Object.assign(d,p)}else return l.width&&(d.width=Ve(l.width)),d}return d});return()=>{const d={class:s.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",d,n.slots.default()):o.h("div",d)}}}}const{componentName:Ui,create:Gi,scope:Eg}=ie("slot-item"),uo=Gi(Yi(Ui));function Xi(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(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=lt(),u=sn();un(!1);const s=o.computed(()=>{const c={};if(u&&i){const d=cn(i,!1),g=fn(i,!1);if(d.value&&g)if(d.value.type==="grid"){const p=hn(g,d.value,l.span,l.offset);Object.assign(c,p)}else if(d.value.type==="flow"){const p=dn(g,d.value,l.span,l.offset,l.width);Object.assign(c,p)}else l.width&&(c.width=Ve(l.width))}else l.width&&(c.width=Ve(l.width));return c});return()=>{const c=[];if(n.slots.default){const g=n.slots.default();if(l.divide)for(let p=0;p<g.length;p++){if(p>0){const v=o.h("div",{class:{[`${r}__divide`]:!0}});c.push(v)}c.push(g[p])}else Reflect.apply([].push,c,g)}const d={class:a.value,style:s.value};return o.h("div",d,c)}}}}const{componentName:Zi,create:Ji,scope:Ng}=ie("row-item"),co=Ji(Xi(Zi)),Ze=(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},Gl={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 Qi(e,t,l){return{props:{...$e,...Re,...Gl},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0,[`${b}__disabled`]:i.value,[`${b}__readonly`]:s.value})),h=N=>{v.value=N,c("update:modelValue",N),c("input",N)},A=N=>{c("change",N)};let $=ge(n,"hintText"),T=o.ref(!1);const q=N=>{let P=N.target.value;p.value=!0,he($.value)||(T.value=!0),c("focus",P,N)},j=N=>{setTimeout(()=>{T.value&&(T.value=!1),p.value=!1},0);let P=N.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),c("blur",P,N)},V=()=>{c("clear","")},I=o.ref(!1);let R=null;const x=()=>{n.showTooltip&&I.value===!1&&(R&&clearTimeout(R),R=setTimeout(()=>{I.value=!0},150))},z=()=>{R&&(clearTimeout(R),I.value=!1,R=null)},y=o.computed(()=>I.value||T.value),_=o.computed(()=>I.value?v.value:$.value),J=o.computed(()=>Nt(n.unit)>0),B=o.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const M={...Ze(r.attrs),ref:B,class:f.value,placeholder:g.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:A,onInput:h,onFocus:q,onBlur:j,onMouseover:x,onMouseleave:z},P={};r.slots.prepend&&(P.prepend=r.slots.prepend),r.slots.append&&(P.append=r.slots.append),r.slots.prefix&&(P.prefix=r.slots.prefix),r.slots.suffix?P.suffix=r.slots.suffix:J.value&&(P.suffix=()=>[n.unit]);const G=[],ee=o.h(S.ElInput,M,P);G.push(ee);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(n,Gl),hintText:_.value,hintVisible:y.value};return n.prop&&(E.prop=`${n.prop}_item`),o.h(l,E,L)}}}}const{componentName:es,create:ts,scope:ns}=ie("input-item"),fo=ts(Qi(es,ns,Ce));function at(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 Xl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function os(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ls=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function rs(){const e=o.getCurrentInstance();return new ls(e.proxy)}function Zl(e,t,l){const n=at(e,t),r=at(e,l);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,l);return a===i}function Jl(e,t,l,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 u=Xl(e,i);if(Array.isArray(u)&&u.length>0){const s=Jl(e,a,l,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(l==="text")s=at(e,i)===a;else if(l==="item")s=Zl(e,i,a);else{let c=Rt(e,i);c==null&&(c=at(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function as(e){return{text:e,value:e}}const Ql={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},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 is(e,t,l){return{props:{...$e,...Re,...Ql},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(null),v=o.ref([]),b=o.computed(()=>v.value?v.value.map(W=>at(n,W)).join(" "):""),f=(k,W,Z,O=!0)=>{if(!Z||Z.length==0){p.value=k,c("update:modelValue",k),c("change",k);return}const K=Jl(n,k,W,Z);if(K===null){if(v.value===null||v.value.length===0)return;p.value=null,v.value=[],O&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let X=!0;if(K.length!==v.value.length)X=!1;else for(let le=0;le<K.length;le++){const ce=K[le],fe=v.value[le];if(!Zl(n,ce,fe)){X=!1;break}}if(!X){v.value=K;let le=[],ce=[],fe=[];K.forEach(ht=>{const Ue=Rt(n,ht),gt=at(n,ht);le.push(Ue),fe.push(gt),n.valueType==="text"?ce.push(gt):n.valueType==="item"?ce.push(ht):ce.push(Ue)});let ye,pe,Ee;ue(n.multiple)?(p.value=le,ye=o.toRaw(ce),pe=fe,Ee=o.toRaw(K)):(p.value=le[0]??"",ye=o.toRaw(ce[0]??""),pe=fe[0]??"",Ee=o.toRaw(K[0])),O&&(c("update:modelValue",ye),c("change",ye,Ee)),c("update:text",pe)}},h=o.ref(null),A=o.ref(null),$=o.computed(()=>A.value??h.value??[]),T=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,k=>ue(k)),q=rs(),j=async(k,W)=>{if(k){const Z=await q.load("select",k,W);if(Z.length>0)if(typeof Z[0]=="string"){let X=Z.map(le=>as(le));h.value=X}else h.value=Z;else h.value=null}};o.watch([()=>n.source,()=>n.params],([k,W])=>{A.value=null,j(k,W)},{immediate:!T.value});let V=!1;const I=()=>{V||(V=!0,j(n.source,n.params))};o.watch([()=>h.value,()=>n.modelValue],([k,W])=>{if(y()&&ue(n.multiple)){et(W,p.value)||(p.value=W);return}f(W,n.valueType,$.value,!1),c("setValue",W)}),n.source||(p.value=n.modelValue);let R=null,x=o.ref(!1);typeof n.remoteMethod=="function"&&(R=async k=>{if(k==null){A.value=null;return}x.value=!0;try{const W=await n.remoteMethod(k);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}x.value=!1});let z=null;typeof n.filterMethod=="function"&&(z=async k=>{if(k==null){A.value=null;return}x.value=!0;try{const W=await n.filterMethod(k,h.value);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}x.value=!1});const y=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",_=o.ref(!1),J=e,B=o.computed(()=>({[J]:!0})),N=k=>{n.allowCreate||y()&&ue(n.multiple)?(c("update:modelValue",k),c("change",k),c("update:text",k),p.value=k):f(k,"value",$.value,!0)};let M=ge(n,"hintText"),P=o.ref(!1);const G=k=>{let Z=k.target.value;_.value=!0,he(M.value)||(P.value=!0),c("focus",Z,k)},ee=k=>{setTimeout(()=>{P.value&&(P.value=!1),_.value=!1},0);let Z=k.target.value;n.maxLength&&Z.length>Number(n.maxLength)&&(Z=Z.slice(0,Number(n.maxLength))),H.value||c("blur",Z,k)},L=()=>{c("clear","")},te=o.ref(!1);let E=null;const C=()=>{n.showTooltip&&te.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{te.value=!0},150))},F=()=>{E&&(clearTimeout(E),te.value=!1,E=null)},D=o.computed(()=>te.value||P.value),w=o.computed(()=>te.value?b.value:M.value),H=o.ref(!1),Q=k=>{H.value=k,c("visible-change",k),k||c("selected")},oe=k=>{c("remove-tag",k)},U=(k,W)=>{const Z=[];return k.forEach((O,K)=>{const X=Xl(n,O);if(Array.isArray(X)&&X.length>0){const le=U(X,W),ce=at(n,O),ye={key:`${ce}_${K}`,label:ce};Z.push(o.h(S.ElOptionGroup,ye,{default:()=>le}))}else{const le=Rt(n,O),ce=at(n,O),fe=os(n,O),pe={key:`${le}_${K}`,label:ce,disabled:fe,value:le};if(typeof W=="function")Z.push(o.h(S.ElOption,pe,{default:()=>W(O)}));else if(n.optionType==="item"){const Ee={class:{"fox-select-item__option-left":!0}},ht=o.h("span",Ee,[le]),Ue={class:{"fox-select-item__option-right":!0}},gt=o.h("span",Ue,[ce]),rl=o.h("div",{class:{"fox-select-item__option":!0}},[ht,gt]);Z.push(o.h(S.ElOption,pe,{default:()=>rl}))}else n.optionType==="value"?Z.push(o.h(S.ElOption,pe,{default:()=>[le]})):Z.push(o.h(S.ElOption,pe))}}),Z},Y=o.ref();return Se({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const W={...Ze(r.attrs),ref:Y,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:g.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:L,onChange:N,onFocus:G,onBlur:ee,onVisibleChange:Q,onRemoveTag:oe};typeof R=="function"&&(W["remote-method"]=R,W.loading=x.value),typeof z=="function"&&(W["filter-method"]=z,W.loading=x.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=()=>U($.value,r.slots.option);const O=[],K=o.h(S.ElSelect,W,Z);O.push(K);const X={default:()=>O};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const ce={...De(n,Ql),hintText:w.value,hintVisible:D.value,onMouseover:C,onMouseleave:F};return n.prop&&(ce.prop=`${n.prop}_item`),T.value&&(ce["appear-listen"]=!0,ce.onAppear=I),o.h(l,ce,X)}}}}const{componentName:ss,create:us,scope:cs}=ie("select-item"),ho=us(is(ss,cs,Ce));function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}},fs=yn.exports,er;function ds(){return er||(er=1,function(e,t){(function(l,n){e.exports=n()})(fs,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",g="month",p="quarter",v="year",b="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,$={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(B){var N=["th","st","nd","rd"],M=B%100;return"["+B+(N[(M-20)%10]||N[M]||N[0])+"]"}},T=function(B,N,M){var P=String(B);return!P||P.length>=N?B:""+Array(N+1-P.length).join(M)+B},q={s:T,z:function(B){var N=-B.utcOffset(),M=Math.abs(N),P=Math.floor(M/60),G=M%60;return(N<=0?"+":"-")+T(P,2,"0")+":"+T(G,2,"0")},m:function B(N,M){if(N.date()<M.date())return-B(M,N);var P=12*(M.year()-N.year())+(M.month()-N.month()),G=N.clone().add(P,g),ee=M-G<0,L=N.clone().add(P+(ee?-1:1),g);return+(-(P+(M-G)/(ee?G-L:L-G))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:g,y:v,w:d,d:c,D:b,h:s,m:u,s:i,ms:a,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},j="en",V={};V[j]=$;var I="$isDayjsObject",R=function(B){return B instanceof _||!(!B||!B[I])},x=function B(N,M,P){var G;if(!N)return j;if(typeof N=="string"){var ee=N.toLowerCase();V[ee]&&(G=ee),M&&(V[ee]=M,G=ee);var L=N.split("-");if(!G&&L.length>1)return B(L[0])}else{var te=N.name;V[te]=N,G=te}return!P&&G&&(j=G),G||!P&&j},z=function(B,N){if(R(B))return B.clone();var M=typeof N=="object"?N:{};return M.date=B,M.args=arguments,new _(M)},y=q;y.l=x,y.i=R,y.w=function(B,N){return z(B,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var _=function(){function B(M){this.$L=x(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[I]=!0}var N=B.prototype;return N.parse=function(M){this.$d=function(P){var G=P.date,ee=P.utc;if(G===null)return new Date(NaN);if(y.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var L=G.match(h);if(L){var te=L[2]-1||0,E=(L[7]||"0").substring(0,3);return ee?new Date(Date.UTC(L[1],te,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)):new Date(L[1],te,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)}}return new Date(G)}(M),this.init()},N.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},N.$utils=function(){return y},N.isValid=function(){return this.$d.toString()!==f},N.isSame=function(M,P){var G=z(M);return this.startOf(P)<=G&&G<=this.endOf(P)},N.isAfter=function(M,P){return z(M)<this.startOf(P)},N.isBefore=function(M,P){return this.endOf(P)<z(M)},N.$g=function(M,P,G){return y.u(M)?this[P]:this.set(G,M)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(M,P){var G=this,ee=!!y.u(P)||P,L=y.p(M),te=function(oe,U){var Y=y.w(G.$u?Date.UTC(G.$y,U,oe):new Date(G.$y,U,oe),G);return ee?Y:Y.endOf(c)},E=function(oe,U){return y.w(G.toDate()[oe].apply(G.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(U)),G)},C=this.$W,F=this.$M,D=this.$D,w="set"+(this.$u?"UTC":"");switch(L){case v:return ee?te(1,0):te(31,11);case g:return ee?te(1,F):te(0,F+1);case d:var H=this.$locale().weekStart||0,Q=(C<H?C+7:C)-H;return te(ee?D-Q:D+(6-Q),F);case c:case b:return E(w+"Hours",0);case s:return E(w+"Minutes",1);case u:return E(w+"Seconds",2);case i:return E(w+"Milliseconds",3);default:return this.clone()}},N.endOf=function(M){return this.startOf(M,!1)},N.$set=function(M,P){var G,ee=y.p(M),L="set"+(this.$u?"UTC":""),te=(G={},G[c]=L+"Date",G[b]=L+"Date",G[g]=L+"Month",G[v]=L+"FullYear",G[s]=L+"Hours",G[u]=L+"Minutes",G[i]=L+"Seconds",G[a]=L+"Milliseconds",G)[ee],E=ee===c?this.$D+(P-this.$W):P;if(ee===g||ee===v){var C=this.clone().set(b,1);C.$d[te](E),C.init(),this.$d=C.set(b,Math.min(this.$D,C.daysInMonth())).$d}else te&&this.$d[te](E);return this.init(),this},N.set=function(M,P){return this.clone().$set(M,P)},N.get=function(M){return this[y.p(M)]()},N.add=function(M,P){var G,ee=this;M=Number(M);var L=y.p(P),te=function(F){var D=z(ee);return y.w(D.date(D.date()+Math.round(F*M)),ee)};if(L===g)return this.set(g,this.$M+M);if(L===v)return this.set(v,this.$y+M);if(L===c)return te(1);if(L===d)return te(7);var E=(G={},G[u]=n,G[s]=r,G[i]=l,G)[L]||1,C=this.$d.getTime()+M*E;return y.w(C,this)},N.subtract=function(M,P){return this.add(-1*M,P)},N.format=function(M){var P=this,G=this.$locale();if(!this.isValid())return G.invalidDate||f;var ee=M||"YYYY-MM-DDTHH:mm:ssZ",L=y.z(this),te=this.$H,E=this.$m,C=this.$M,F=G.weekdays,D=G.months,w=G.meridiem,H=function(U,Y,k,W){return U&&(U[Y]||U(P,ee))||k[Y].slice(0,W)},Q=function(U){return y.s(te%12||12,U,"0")},oe=w||function(U,Y,k){var W=U<12?"AM":"PM";return k?W.toLowerCase():W};return ee.replace(A,function(U,Y){return Y||function(k){switch(k){case"YY":return String(P.$y).slice(-2);case"YYYY":return y.s(P.$y,4,"0");case"M":return C+1;case"MM":return y.s(C+1,2,"0");case"MMM":return H(G.monthsShort,C,D,3);case"MMMM":return H(D,C);case"D":return P.$D;case"DD":return y.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return H(G.weekdaysMin,P.$W,F,2);case"ddd":return H(G.weekdaysShort,P.$W,F,3);case"dddd":return F[P.$W];case"H":return String(te);case"HH":return y.s(te,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return oe(te,E,!0);case"A":return oe(te,E,!1);case"m":return String(E);case"mm":return y.s(E,2,"0");case"s":return String(P.$s);case"ss":return y.s(P.$s,2,"0");case"SSS":return y.s(P.$ms,3,"0");case"Z":return L}return null}(U)||L.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(M,P,G){var ee,L=this,te=y.p(P),E=z(M),C=(E.utcOffset()-this.utcOffset())*n,F=this-E,D=function(){return y.m(L,E)};switch(te){case v:ee=D()/12;break;case g:ee=D();break;case p:ee=D()/3;break;case d:ee=(F-C)/6048e5;break;case c:ee=(F-C)/864e5;break;case s:ee=F/r;break;case u:ee=F/n;break;case i:ee=F/l;break;default:ee=F}return G?ee:y.a(ee)},N.daysInMonth=function(){return this.endOf(g).$D},N.$locale=function(){return V[this.$L]},N.locale=function(M,P){if(!M)return this.$L;var G=this.clone(),ee=x(M,P,!0);return ee&&(G.$L=ee),G},N.clone=function(){return y.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},B}(),J=_.prototype;return z.prototype=J,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",g],["$y",v],["$D",b]].forEach(function(B){J[B[1]]=function(N){return this.$g(N,B[0],B[1])}}),z.extend=function(B,N){return B.$i||(B(N,_,z),B.$i=!0),z},z.locale=x,z.isDayjs=R,z.unix=function(B){return z(1e3*B)},z.en=V[j],z.Ls=V,z.p={},z})}(yn)),yn.exports}var hs=ds();const Je=tt(hs);var pn={exports:{}},gs=pn.exports,tr;function ms(){return tr||(tr=1,function(e,t){(function(l,n){e.exports=n()})(gs,function(){var l={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]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var A=h.match(/([+-]|\d\d)/g),$=60*A[1]+(+A[2]||0);return $===0?0:A[0]==="+"?-$:$}(f)}],g=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},p=function(f,h){var A,$=u.meridiem;if($){for(var T=1;T<=24;T+=1)if(f.indexOf($(T,0,h))>-1){A=T>12;break}}else A=f===(h?"pm":"PM");return A},v={A:[i,function(f){this.afternoon=p(f,!1)}],a:[i,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,A=f.match(/\d+/);if(this.day=A[0],h)for(var $=1;$<=31;$+=1)h($).replace(/\[|\]/g,"")===f&&(this.day=$)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=g("months"),A=(g("monthsShort")||h.map(function($){return $.slice(0,3)})).indexOf(f)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[i,function(f){var h=g("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function b(f){var h,A;h=f,A=u&&u.formats;for(var $=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,z,y){var _=y&&y.toUpperCase();return z||A[y]||l[y]||A[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(J,B,N){return B||N.slice(1)})})).match(n),T=$.length,q=0;q<T;q+=1){var j=$[q],V=v[j],I=V&&V[0],R=V&&V[1];$[q]=R?{regex:I,parser:R}:j.replace(/^\[|\]$/g,"")}return function(x){for(var z={},y=0,_=0;y<T;y+=1){var J=$[y];if(typeof J=="string")_+=J.length;else{var B=J.regex,N=J.parser,M=x.slice(_),P=B.exec(M)[0];N.call(z,P),x=x.replace(P,"")}}return function(G){var ee=G.afternoon;if(ee!==void 0){var L=G.hours;ee?L<12&&(G.hours+=12):L===12&&(G.hours=0),delete G.afternoon}}(z),z}}return function(f,h,A){A.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var $=h.prototype,T=$.parse;$.parse=function(q){var j=q.date,V=q.utc,I=q.args;this.$u=V;var R=I[1];if(typeof R=="string"){var x=I[2]===!0,z=I[3]===!0,y=x||z,_=I[2];z&&(_=I[2]),u=this.$locale(),!x&&_&&(u=A.Ls[_]),this.$d=function(M,P,G){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*M);var ee=b(P)(M),L=ee.year,te=ee.month,E=ee.day,C=ee.hours,F=ee.minutes,D=ee.seconds,w=ee.milliseconds,H=ee.zone,Q=new Date,oe=E||(L||te?1:Q.getDate()),U=L||Q.getFullYear(),Y=0;L&&!te||(Y=te>0?te-1:Q.getMonth());var k=C||0,W=F||0,Z=D||0,O=w||0;return H?new Date(Date.UTC(U,Y,oe,k,W,Z,O+60*H.offset*1e3)):G?new Date(Date.UTC(U,Y,oe,k,W,Z,O)):new Date(U,Y,oe,k,W,Z,O)}catch{return new Date("")}}(j,R,V),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),y&&j!=this.format(R)&&(this.$d=new Date("")),u={}}else if(R instanceof Array)for(var J=R.length,B=1;B<=J;B+=1){I[1]=R[B-1];var N=A.apply(this,I);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}B===J&&(this.$d=new Date(""))}else T.call(this,q)}}})}(pn)),pn.exports}var ys=ms();const ps=tt(ys);var bn={exports:{}},bs=bn.exports,nr;function vs(){return nr||(nr=1,function(e,t){(function(l,n){e.exports=n()})(bs,function(){return function(l,n){var r=n.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),g==="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 g}});return a.bind(this)(d)}}})}(bn)),bn.exports}var ws=vs();const Ss=tt(ws);var vn={exports:{}},xs=vn.exports,or;function Ts(){return or||(or=1,function(e,t){(function(l,n){e.exports=n()})(xs,function(){return function(l,n,r){var a=n.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,v,b,f){var h=g.name?g:g.$locale(),A=i(h[p]),$=i(h[v]),T=A||$.map(function(j){return j.slice(0,b)});if(!f)return T;var q=h.weekStart;return T.map(function(j,V){return T[(V+(q||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(g,p){return g.formats[p]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,f,h){return f||h.slice(1)})}(g.formats[p.toUpperCase()])},d=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.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(p){return c(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(g){return u(s(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})}(vn)),vn.exports}var $s=Ts();const Cs=tt($s);var wn={exports:{}},Es=wn.exports,lr;function Ns(){return lr||(lr=1,function(e,t){(function(l,n){e.exports=n()})(Es,function(){var l="week",n="year";return function(r,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(n).add(1,n).date(c),g=i(this).endOf(l);if(d.isBefore(g))return 1}var p=i(this).startOf(n).date(c).startOf(l).subtract(1,"millisecond"),v=this.diff(p,l,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(wn)),wn.exports}var ks=Ns();const Is=tt(ks);var Sn={exports:{}},Os=Sn.exports,rr;function Ds(){return rr||(rr=1,function(e,t){(function(l,n){e.exports=n()})(Os,function(){return function(l,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}}})}(Sn)),Sn.exports}var Vs=Ds();const Rs=tt(Vs);var xn={exports:{}},Fs=xn.exports,ar;function As(){return ar||(ar=1,function(e,t){(function(l,n){e.exports=n()})(Fs,function(){return function(l,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")}}})}(xn)),xn.exports}var Ms=As();const Ls=tt(Ms);var Tn={exports:{}},Bs=Tn.exports,ir;function _s(){return ir||(ir=1,function(e,t){(function(l,n){e.exports=n()})(Bs,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Tn)),Tn.exports}var qs=_s();const Ps=tt(qs);var $n={exports:{}},js=$n.exports,sr;function zs(){return sr||(sr=1,function(e,t){(function(l,n){e.exports=n()})(js,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}($n)),$n.exports}var Hs=zs();const Ks=tt(Hs);Je.extend(Cs),Je.extend(Ss),Je.extend(ps),Je.extend(Is),Je.extend(Rs),Je.extend(Ls),Je.extend(Ps),Je.extend(Ks);const ze={format(e,t){return Je(e).format(t)},parser(e,t){return Je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).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 l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t,l){e=e||0;let n=t??new Date;const r=e*(1e3*60*60*24);return n=new Date(n.getTime()+r),l=l??"YYYY-MM-DD",this.format(n,l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),u=6-a;return n!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return n!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=ze.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ze.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},ur={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"}},cr={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 Ws(e,t,l){return{props:{...$e,...Re,...ur,...cr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=o.computed(()=>P.value&&Array.isArray(v.value)&&v.value.length==2?v.value[0]:v.value),f=o.computed(()=>P.value?"longTermKey":"normalKey"),h=Y=>{if(P.value&&n.type==="daterange"){const k=[...v.value];k[0]=Y,v.value=k}else v.value=Y;c("update:modelValue",v.value),c("change",v.value)},A=o.computed(()=>P.value&&n.type==="daterange"?"date":n.type),$=e,T=o.computed(()=>({[`${$}`]:!0,"is-long":P.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(n,"hintText"),j=o.ref(!1);const V=Y=>{let W=Y.target.value;p.value=!0,he(q.value)||(j.value=!0),c("focus",W,Y)},I=Y=>{setTimeout(()=>{j.value&&(j.value=!1),p.value=!1},0);let W=Y.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),c("blur",W,Y)},R=()=>{c("clear","")},x=Y=>{c("calendar-change",Y)},z=(Y,k,W)=>{c("panel-change",Y,k,W)},y=Y=>{c("visible-change",Y)},_=Fe(o.computed(()=>n.longTermText),"longTermText",je.Near),J=Fe(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",je.Near),B=Fe(o.computed(()=>n.longTermValue),"longTermValue",je.Near),N=Fe(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",je.Near);let M=null;const P=o.ref(ue(n.longTerm)),G=Y=>{if(P.value=Y,c("update:longTerm",Y),Y){if(M=v.value,n.type==="daterange"){const k=[];Array.isArray(B.value)?(k[0]=v.value?v.value[0]??B.value[0]:null,k[1]=B.value[1]??B.value[0]):(k[0]=v.value?v.value[0]??B.value:null,k[1]=P.value),k[0]||(k[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=k}else Array.isArray(B.value)?v.value=B.value[1]??B.value[0]:v.value=B.value,v.value||(v.value=n.valueFormat?ze.format(new Date,n.valueFormat):new Date);c("update:modelValue",v.value)}else{if(n.type==="daterange"){const k=[];k[0]=Array.isArray(v.value)?v.value[0]:v.value,Array.isArray(M)?k[1]=M[1]:k[1]=M,k[0]||(k[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=k}else v.value=M;c("update:modelValue",v.value),setTimeout(()=>{oe()},100)}},ee=ue(n.isLongTerm);if(ee){const Y=()=>{if(P.value===!0){if(M=v.value,n.type==="daterange"){const k=[v.value[0]];Array.isArray(B.value)?k[1]=B.value[1]??B.value[0]:k[1]=P.value,k[0]||(k[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=k}else v.value=B.value;c("update:modelValue",v.value)}else et(B.value,v.value)&&(P.value=!0)};Y(),o.watch([()=>n.longTerm],([k])=>{P.value!==k&&Y()}),o.watch([()=>v.value],([k])=>{let W=!1;if(n.type==="daterange"&&Array.isArray(k))try{let Z=k[1];if(!Z)return;if(k[0]==null){c("update:modelValue",[]);return}typeof Z!="string"&&n.valueFormat&&(Z=ze.format(Z,n.valueFormat));let O=Array.isArray(B.value)?B.value[1]:B.value;(Z===O||Array.isArray(N.value)&&N.value.findIndex(X=>Z==X)!==-1)&&(W=!0)}catch(Z){console.error(Z)}P.value!==W&&(P.value=W)},{immediate:!0})}const L=o.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),te=o.ref(),E=o.ref(),C=/^\d+$/,F=(Y,k)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(Y,k):C.test(Y)&&Y.length===n.flashFillThreshold,D=(Y,k)=>{let W;if(typeof n.flashFillFormat=="function")W=n.flashFillFormat(Y,k);else{const O=n.flashFillFormat??"YYYYMMDD";W=ze.parser(Y,O)}const Z=n.valueFormat??"YYYY-MM-DD";return ze.format(W,Z)},w=Y=>Y?Y.endsWith("range"):!1,H=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(F(k,n.type)){const W=D(k,n.type);if(w(n.type)){const Z=Array.isArray(v.value)?[...v.value]:[];Z[0]=W,h(Z)}else h(W)}},Q=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(F(k,n.type)){const W=D(k,n.type);if(w(n.type)){const Z=Array.isArray(v.value)?[...v.value]:[];Z[1]=W,h(Z)}else h(W)}},oe=()=>{if(n.flashFill&&te.value&&te.value.$el)if(w(n.type)){const Y=te.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].addEventListener("input",H),Y[1]&&Y[1].addEventListener("input",Q)}else{const Y=te.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",H)}},U=()=>{if(n.flashFill&&te.value&&te.value.$el)if(w(n.type)){const Y=te.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].removeEventListener("input",H),Y[1]&&Y[1].removeEventListener("input",Q)}else{const Y=te.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",H)}};return o.onMounted(oe),o.onBeforeUnmount(U),Se({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const k={...r.attrs,key:f.value,type:A.value,ref:E,class:T.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:R,onFocus:V,onBlur:I,onCalendarChange:x,onPanelChange:z,onVisibleChange:y},W={};r.slots["range-separator"]&&(W["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(W.default=r.slots.cell);const Z=[],O=o.h(S.ElDatePicker,k,W);Z.push(O);const K={default:()=>Z};if(K.label=r.slots.default,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip,ee){if(P.value){const fe=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ye=o.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),pe={class:L.value},Ee=o.h("div",pe,{default:()=>[fe,ye]});Z.push(Ee)}if(!s.value&&!i.value){const fe={label:J.value||_.value,disabled:s.value||i.value,modelValue:P.value,"onUpdate:modelValue":G},ye=o.h(S.ElCheckbox,fe),pe=o.h("div",{class:{[`${$}__append`]:!0}},[ye]);K.append=()=>pe}}const le={...De(n,ur,cr),ref:te,class:{[`${$}__wrapper`]:!0,"has-append":ee},hintText:q.value,hintVisible:j.value};return n.prop&&(le.prop=`${n.prop}_item`),o.h(l,le,K)}}}}const{componentName:Ys,create:Us,scope:Gs}=ie("date-item"),go=Us(Ws(Ys,Gs,Ce)),fr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Xs(e,t,l){return{props:{...$e,...Re,...fr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0})),h=R=>{v.value=R,c("update:modelValue",R),c("change",R)};let A=ge(n,"hintText"),$=o.ref(!1);const T=R=>{let z=R.target.value;p.value=!0,he(A.value)||($.value=!0),c("focus",z,R)},q=R=>{setTimeout(()=>{$.value&&($.value=!1),p.value=!1},0);let z=R.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),c("blur",z,R)},j=()=>{c("clear","")},V=R=>{c("visible-change",R)},I=o.ref();return Se({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const x={...r.attrs,ref:I,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:T,onBlur:q,onVisibleChange:V},z={},y=[],_=o.h(S.ElTimePicker,x,z);y.push(_);const J={default:()=>y};J.label=r.slots.default,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const N={...De(n,fr),hintText:A.value,hintVisible:$.value};return n.prop&&(N.prop=`${n.prop}_item`),o.h(l,N,J)}}}}const{componentName:Zs,create:Js,scope:Qs}=ie("time-item"),mo=Js(Xs(Zs,Qs,Ce)),dr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function eu(e,t,l){return{props:{...$e,...Re,...dr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0})),h=I=>{v.value=I,c("update:modelValue",I),c("change",I)};let A=ge(n,"hintText"),$=o.ref(!1);const T=I=>{let x=I.target.value;p.value=!0,he(A.value)||($.value=!0),c("focus",x,I)},q=I=>{setTimeout(()=>{$.value&&($.value=!1),p.value=!1},0);let x=I.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),c("blur",x,I)},j=()=>{c("clear","")},V=o.ref();return Se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const R={...r.attrs,ref:V,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:T,onBlur:q},x={},z=[],y=o.h(S.ElTimeSelect,R,x);z.push(y);const _={default:()=>z};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const B={...De(n,dr),hintText:A.value,hintVisible:$.value};return n.prop&&(B.prop=`${n.prop}_item`),o.h(l,B,_)}}}}const{componentName:tu,create:nu,scope:ou}=ie("time-select-item"),yo=nu(eu(tu,ou,Ce));function hr(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function gr(e,t,l=20){if(typeof t=="string"&&(t=Te(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=gl(`${e}`,`${t}`);return hr(n)}else{let n=Bn(`${e}`,ml(`${t}`),20);return hr(n)}}function lu(e,t=-1,l=!1,n=3,r=","){return zt(e,t,l,n,r)}function mr(e,t,l,n,r=!0){if(e==="")return"";if(e=yl(e),t=Te(t),t==1)return e;if(n)e=gr(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(Te(l)+2,"0"):e=Bn(e,1,Te(l)));else{let a=-1*t;e=gr(e,a)}return e}function yr(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=_n(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=_n(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const pr={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 ru(e,t,l){return{props:{...$e,...Re,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref(!1),g=ge(n,"modelValue",null,c),p=o.ref("");o.watch([()=>g.value,()=>n.rates,()=>n.precision],([N,M,P])=>{if(he(N)){p.value="";return}const G=mr(N,M,P,!1);p.value!==G&&(p.value=G)},{immediate:!0});const v=o.computed(()=>{let N="";return d.value&&(N=p.value),N}),{t:b}=qe.useFoxI18n(t),f=o.computed(()=>{let N=n.placeholder??"";return!d.value&&!he(p.value)?N=lu(p.value,n.decimalLength,n.autoPadding,n.digits,n.separator):N=b(["placeholder",N]),N}),h=e,A=o.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:p.value.length>0})),$=Fe(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>d.value?{textAlign:"left"}:{textAlign:$.value??"right"});const T=o.ref(""),q=o.computed(()=>{let N=T.value;return he(N)&&(N=n.errorTip??""),N}),j=o.ref(""),V=o.ref(!1),I=(N,M)=>{if(N=`${N}`,he(N)){p.value="",g.value="",M.forEach(P=>{c(P,"")}),ue(n.showTip)&&V.value&&(V.value=!1);return}if(N.length>=2){let P=N;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){o.triggerRef(p);return}}if(N!="-"){if(!$l(N)){o.triggerRef(p);return}if(n.integerLength!=-1&&Cl(N)>Number(n.integerLength)){o.triggerRef(p);return}if(n.decimalLength&&n.decimalLength!=-1&&El(N)>Number(n.decimalLength)){o.triggerRef(p);return}let P=yr(N,n);if(P.maxValid===!1){T.value=P.message,o.triggerRef(p);return}}else if(n.min!=null&&Te(n.min)>=0){o.triggerRef(p);return}j.value=N,ue(n.showTip)&&(V.value=N.length>0),p.value=N,g.value=mr(N,n.rates,n.precision,!0),M.forEach(P=>{c(P,g.value)})},R=N=>{I(N,["update:modelValue","input"])},x=N=>{I(N,["update:modelValue","change"])},z=N=>{if(d.value=!0,ue(n.showTip)){let M=p.value;he(M)&&(M=n.hintText),he(M)||(j.value=M,V.value=!0)}T.value="",c("focus",g.value,N)},y=N=>{if(setTimeout(()=>{d.value=!1,ue(n.showTip)&&V.value===!0&&(V.value=!1)},0),!he(p.value)){let M=yr(p.value,n);if(M.minValid===!1||M.maxValid===!1){T.value=M.message;return}}c("update:modelValue",g.value,N),c("blur",g.value,N)},_=()=>{c("clear","")},J=o.computed(()=>Nt(n.unit)>0),B=o.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const M={...Ze(r.attrs),ref:B,class:A.value,type:"digit",maxlength:n.maxLength,placeholder:f.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onInput:R,onChange:x,onFocus:z,onBlur:y},P={};r.slots.prepend&&(P.prepend=r.slots.prepend),r.slots.append&&(P.append=r.slots.append),r.slots.prefix&&(P.prefix=r.slots.prefix),r.slots.suffix?P.suffix=r.slots.suffix:J.value&&(P.suffix=()=>[n.unit]);const G=[],ee=o.h(S.ElInput,M,P);G.push(ee);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(n,pr),errorTip:q.value,hintText:j.value,hintVisible:V.value,hintType:"number"};return n.prop&&(E.prop=`${n.prop}_item`),o.h(l,E,L)}}}}const{componentName:au,create:iu,scope:su}=ie("money-item"),po=iu(ru(au,su,Ce)),br={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 uu(e,t,l){return{props:{...$e,...Re,...br},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0,[`${b}__append`]:R.value})),h=o.computed(()=>({[`${b}__unit`]:!0})),A=z=>{v.value=z,c("update:modelValue",z),c("input",z)},$=z=>{c("change",z)};let T=ge(n,"hintText"),q=o.ref(!1);const j=z=>{let _=z.target.value;p.value=!0,he(T.value)||(q.value=!0),c("focus",_,z)},V=z=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let _=z.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),c("blur",_,z)},I=()=>{c("clear","")},R=o.computed(()=>Nt(n.unit)>0),x=o.ref();return Se({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:z=>{a.value=z},setReadonly:z=>{u.value=z}}),()=>{const y={...Ze(r.attrs),ref:x,class:f.value,placeholder:g.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:$,onInput:A,onFocus:j,onBlur:V},_={},J=[],B=o.h(S.ElInputNumber,y,_);J.push(B);const N={default:()=>J};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const P={...De(n,br),hintText:T.value,hintVisible:q.value};if(n.prop&&(P.prop=`${n.prop}_item`),r.slots.append)N.append=r.slots.append;else if(R.value){const ee={class:h.value},L=o.h("div",ee,[n.unit]);N.append=()=>L}return o.h(l,P,N)}}}}const{componentName:cu,create:fu,scope:du}=ie("input-number-item"),bo=fu(uu(cu,du,Ce));function nt(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 hu(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let gu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=We(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function mu(){const e=o.getCurrentInstance();return new gu(e.proxy)}function vo(e,t,l){const n=nt(e,t),r=nt(e,l);if(n!==r)return!1;const a=ft(e,t),i=ft(e,l);return a===i}function vr(e,t,l,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 u=t[i];if(Array.isArray(u)){const s=vr(e,u,l,n);r.push(s)}else{let s=!1;for(let c of a){if(l==="text")s=nt(e,c)===u;else if(l==="item")s=vo(e,c,u);else{let d=ft(e,c);d==null&&(d=nt(e,c)),s=d===u}if(s){r.push(c),a=hu(e,c);break}}if(!s)break}}return r}function yu(e){return{text:e,value:e}}const wr={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 pu(e,t,l){return{props:{...$e,...Re,...wr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(null),v=o.ref([]),b=o.computed(()=>v.value?v.value.map(Y=>Array.isArray(Y)?Y.map(W=>nt(n,W)).join(" "):nt(n,Y)).join(" "):""),f=(U,Y,k,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(p.value===U)return;p.value=U;const X=o.toRaw(U);if(W){const le=oe?.value.getCheckedNodes();if(le)if(n.multiple){const ce=[];le.forEach(fe=>{const pe=(fe.pathNodes??[]).map(Ee=>Ee.data);ce.push(pe)}),c("update:pathNodes",ce)}else{const fe=(le[0]?.pathNodes??[]).map(ye=>ye.data);c("update:pathNodes",fe)}c("update:modelValue",X),c("change",X)}return}const Z=vr(n,U,Y,k);if(Z===null){if(v.value.length===0||v.value===null)return;v.value=[],p.value=null,W&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const O=Z[Z.length-1];if(_.value.checkStrictly!==!0&&O&&!Array.isArray(O)&&Array.isArray(O.children)&&O.children.length>0){const X=[];Z.forEach(le=>{const ce=`${nt(n,le)}`;X.push(ce)}),X.length>0&&(z.value=X.join(n.separator))}else z.value=null;let K=!0;if(Z.length!==v.value.length)K=!1;else for(let X=0;X<Z.length;X++){const le=Z[X],ce=v.value[X];if(Array.isArray(le)){if(!Array.isArray(ce)||le.length!==ce.length)K=!1;else for(let fe=0;fe<le.length;fe++)if(!vo(n,le[fe],ce[fe])){K=!1;break}}else vo(n,le,ce)||(K=!1);if(!K)break}if(!K){v.value=Z;let X=[],le=[];Z.forEach(fe=>{if(Array.isArray(fe)){let ye=[],pe=[];for(let Ee of fe)ye.push(ft(n,Ee)),n.valueType==="text"?pe.push(nt(n,Ee)):n.valueType==="item"?pe.push(Ee):pe.push(ft(n,Ee));X.push(ye),le.push(pe)}else X.push(ft(n,fe)),n.valueType==="text"?le.push(nt(n,fe)):n.valueType==="item"?le.push(fe):le.push(ft(n,fe))}),p.value=X;const ce=o.toRaw(le);W&&(c("update:pathNodes",Z),c("update:modelValue",ce),c("change",ce))}},h=o.ref([]),A=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,U=>ue(U)),$=mu(),T=async(U,Y)=>{if(U){const k=await $.load("cascader",U,Y);if(k.length>0)if(typeof k[0]=="string"){let O=k.map(K=>yu(K));h.value=O}else h.value=k}};o.watch([()=>n.source,()=>n.params],async([U,Y])=>{T(U,Y)},{immediate:!(A.value||n.lazy)});let q=!1;const j=()=>{q||(q=!0,T(n.source,n.params))};o.watch([()=>h.value,()=>n.modelValue],([U,Y])=>{f(Y,n.valueType,U,!1),c("setValue",Y)}),n.lazy&&f(n.modelValue,"value",[],!1);let V=null,I=o.ref(!1);typeof n.remoteMethod=="function"&&(V=async U=>{if(U!=null){I.value=!0;try{const Y=await n.remoteMethod(U);h.value=Y}catch(Y){console.error(Y)}I.value=!1}});const R=o.ref(!1),x=e,z=o.ref(null),y=o.computed(()=>({[x]:!0,"is-incomplete":z.value&&z.value.length>0})),_=o.computed(()=>{let U={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(U.multiple=!0),n.props&&Object.assign(U,n.props),n.lazy&&(U.lazy=!0,typeof n.lazyLoad=="function"?U.lazyLoad=n.lazyLoad:U.lazyLoad=async(Y,k)=>{const W=await $.load("cascader",n.source,Y,!0);if(Y?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===Y.level){const Z=Y.pathLabels??[];let O=[];Z.forEach(K=>{K&&O.push(K)}),O.length>0&&(z.value=O.join(n.separator))}else z.value=null;k(W)}),U}),J=U=>{n.allowCreate?(c("update:modelValue",U),c("change",U),p.value=U):f(U,"value",h.value,!0)};let B=ge(n,"hintText"),N=o.ref(!1);const M=U=>{let k=U.target.value;R.value=!0,he(B.value)||(N.value=!0),c("focus",k,U)},P=U=>{setTimeout(()=>{N.value&&(N.value=!1),R.value=!1},0);let k=U.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),D.value||c("blur",k,U)},G=()=>{c("clear","")},ee=o.ref(!1);let L=null;const te=()=>{n.showTooltip&&ee.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{ee.value=!0},150))},E=()=>{L&&(clearTimeout(L),ee.value=!1,L=null)},C=o.computed(()=>ee.value||N.value),F=o.computed(()=>ee.value?b.value:B.value),D=o.ref(!1),w=U=>{D.value=U,c("visible-change",U),U||c("selected")},H=U=>{c("remove-tag",U)},Q=U=>{c("expand-change",U)},oe=o.ref();return Se({focus:()=>{oe?.value.focus()},blur:()=>{oe?.value.blur()},getCheckedNodes:()=>oe?.value.getCheckedNodes(),setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const Y={...r.attrs,ref:oe,class:y.value,props:_.value,clearable:n.clearable,placeholder:z.value||g.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:p.value,separator:n.separator,onClear:G,onChange:J,onFocus:M,onBlur:P,onVisibleChange:w,onRemoveTag:H,expandChange:Q};typeof V=="function"&&(Y["remote-method"]=V,Y.loading=I.value);const k={};r.slots.option&&(k.default=r.slots.option),r.slots.empty&&(k.empty=r.slots.empty);const W=[],Z=o.h(S.ElCascader,Y,k);W.push(Z);const O={default:()=>W};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const X={...De(n,wr),hintText:F.value,hintVisible:C.value,onMouseover:te,onMouseleave:E};return n.prop&&(X.prop=`${n.prop}_item`),A.value&&!n.lazy&&(X["appear-listen"]=!0,X.onAppear=j),o.h(l,X,O)}}}}const{componentName:bu,create:vu,scope:wu}=ie("cascader-item"),wo=vu(pu(bu,wu,Ce)),Sr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Su(e,t,l){return{props:{...$e,...Re,...Sr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0})),h=x=>{v.value=x,c("update:modelValue",x),c("input",x)},A=x=>{c("change",x)},$=x=>{c("select",x)};let T=ge(n,"hintText"),q=o.ref(!1);const j=x=>{let y=x.target.value;p.value=!0,he(T.value)||(q.value=!0),c("focus",y,x)},V=x=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),c("blur",y,x)},I=()=>{c("clear","")},R=o.ref();return Se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...r.attrs,ref:R,class:f.value,placeholder:g.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,onClear:I,onChange:A,onInput:h,onFocus:j,onBlur:V,onSelect:$},y={};r.slots.prepend&&(y.prepend=r.slots.prepend),r.slots.append&&(y.append=r.slots.append),r.slots.prefix&&(y.prefix=r.slots.prefix),r.slots.suffix&&(y.suffix=r.slots.suffix),r.slots.option&&(y.default=r.slots.option);const _=[],J=o.h(S.ElAutocomplete,z,y);_.push(J);const B={default:()=>_};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(n,Sr),hintText:T.value,hintVisible:q.value};return n.prop&&(M.prop=`${n.prop}_item`),o.h(l,M,B)}}}}const{componentName:xu,create:Tu,scope:$u}=ie("autocomplete-item"),So=Tu(Su(xu,$u,Ce));function Cu(e,t,l,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(p=>p[n]===d);if(!g)break;i.push(g[l])}return i}if(Array.isArray(u))for(let s=0;s<t.length&&s<a.length;s++){let c=t[s],d=a[s];const g=c.find(p=>p[n]===d);if(!g)break;i.push(g[l])}else{let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(p=>p[n]===d);if(!g)break;i.push(g[l]),s=g[r]}}return i}let Eu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Nu(){const e=o.getCurrentInstance();return new Eu(e.proxy)}const xr={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 ku(e,t){return{props:{...xr},setup(l,{attrs:n,slots:r}){const a=Nu(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([c,d])=>{i.value=await a.load(l.sourceType,c,d)},{immediate:!0});const u=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Cu(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return c.length==0?l.emptyText??"":c.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${c[0]}`:c[0]:c.join(l.separator)}),s=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const c={...n};return r.default?r.default({text:u.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===u.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},u.value):o.h(s,c,{default:()=>u.value}):o.h(s,c,u.value)}}}}const{componentName:kg,create:Iu,scope:Ig}=ie("mapping"),Ft=Iu(ku());function Ou(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);n=n[g][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Du(e,t){return{props:{...xr},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Ou(i.row,i.column.property);return r.default?o.h(Ft,{...l,modelValue:u},{default:r.default}):o.h(Ft,{...l,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return o.h(S.ElTableColumn,{...n},a)}}}}const{componentName:Og,create:Vu,scope:Dg}=ie("table-mapping-column"),xo=Vu(Du()),Ru=Symbol.for("TableStateKey");function Tr(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);n=n[g][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Fu(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Ru,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Tr(u.row,u.column.property),c=a?Tr(a,u.column.property):null,d=s===c,g={class:{"el-radio__input":!0,"is-checked":d}},p=o.h("span",g,[o.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":d}};return o.h("label",v,[p])}};return o.h(S.ElTableColumn,{...n},i)}}}}const{componentName:Vg,create:Au,scope:Rg}=ie("table-radio-column"),To=Au(Fu()),Mu={},Lu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Bu(e,t){return o.openBlock(),o.createElementBlock("svg",Lu,t[0]||(t[0]=[o.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)]))}const _u=Ye(Mu,[["render",Bu]]),{componentName:Fg,create:qu,scope:Ag}=ie("table-setting"),Pu={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:"不固定"}},ju=qu({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:_u,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Pu},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed===""||w.fixed===!0||w.fixed==="left")),i=o.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed==="right")),u=o.computed(()=>r.value.filter(w=>!(w.label===""||w.type||w.fixed!==void 0))),s=o.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=o.computed(()=>a.value.length>0),d=o.computed(()=>i.value.length>0),g=w=>w.length>1,p=(w,H)=>{Array.isArray(w)&&Array.isArray(H)&&w.forEach(U=>{H.some(Y=>Y.prop===U.prop?(U.label=Y.label,!0):!1)});const Q=[];r.value=w.map((U,Y)=>(!(U.label===""||U.type)&&U.visible!==!1&&Q.push(U.prop),{...U,sortIndex:Y})),u.value.length+a.value.length+i.value.length===Q.length?$.value=!0:Q.length>0&&(T.value=!0),V.value=Q},v=w=>w?w.type?w.type:w.label?w.prop:"":"",b=(w,H)=>{if(w.length!==H.length)return!1;const Q=w.map(oe=>v(oe));for(let oe of H){const U=v(oe);if(Q.indexOf(U)===-1)return!1}return!0},f=w=>{if(!w){const H=e.tableRef.getColumnSetting(),Q=H.srcColumnPropertyList;n=Q.map((oe,U)=>({...oe,sortIndex:U})),w=H.columnPropertyList,w&&w.length>0&&b(Q,w)||(w=Q)}p(w,n)},h=()=>{e.tableRef.setColumnSetting(r.value)},A=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=o.ref(!1),T=o.ref(!1),q=w=>{const H=[];r.value.forEach(oe=>{w&&!(oe.label===""||oe.type)&&H.push(oe.prop),oe.visible=w}),$.value=!1,T.value=!1,u.value.length+a.value.length+i.value.length===H.length?$.value=!0:H.length>0&&(T.value=!0),V.value=H,h()},j=()=>{f(n),h()},V=o.ref([]),I=w=>{r.value.forEach(Q=>{if(Q.label===""||Q.type)return;const oe=w.indexOf(Q.prop)!==-1;Q.visible=oe}),$.value=!1,T.value=!1;const H=u.value.length+a.value.length+i.value.length;w.length===H?$.value=!0:w.length>0&&(T.value=!0),h()},R=()=>{f()};o.onMounted(()=>{setTimeout(()=>{f()},50)});const x={currentRow:null,index:null,roleType:null},z=w=>w?w.dataset&&w.dataset.role==="row"?w:w.tagName.toLowerCase()!=="body"?(w=w.parentElement,z(w)):null:null,y=w=>{const H=w.currentTarget;H&&H.dataset&&(x.roleType=H.dataset.roleType,x.index=H.dataset.index)},_=w=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},J=w=>{const H=w.currentTarget;w.relatedTarget;const Q=z(H);if(!Q)return;const oe=Q.dataset&&Q.dataset.roleType;x.roleType===oe&&(w.preventDefault(),x.currentRow&&x.currentRow!==Q&&x.currentRow.classList.remove("is-dragover"),Q.classList.add("is-dragover"),x.currentRow=Q)},B=w=>{w.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},N=w=>{const H=w.currentTarget,Q=z(H);if(!Q)return;const oe=Q.dataset&&Q.dataset.roleType;if(x.roleType!==oe)return;w.preventDefault();const U=Number(x.index),Y=Number(Q.dataset.index);if(U!==Y){if(U<Y){const k=r.value[U];r.value.splice(U,1),r.value.splice(Y,0,k)}else{const k=r.value[U];r.value.splice(U,1),r.value.splice(Y+1,0,k)}p(r.value,n),h()}},M=w=>{const H=r.value[w];H.fixed="left",h()},P=w=>{const H=r.value[w];H.fixed="right",h()},G=w=>{const H=r.value[w];H.fixed=void 0,h()},ee=new Map;let L=null;function te(w){const H=document.createRange();return H.setStart(w,0),H.setEnd(w,w.childNodes.length),H.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:g,isCheckAll:$,isIndeterminate:T,handleCheckAllChange:q,handleReset:j,checkedValue:V,handleCheckChange:I,onShow:R,onDragStart:y,onDragEnd:_,onDragOver:J,onDragLeave:B,onDrop:N,toLeftFixed:M,toRightFixed:P,toUnFixed:G,checkboxLabelStyle:A,onMouseOverForOverflowText:(w,H,Q)=>{const oe=w.currentTarget;if(oe){const U=Math.floor(oe.offsetWidth);if(Math.floor(te(oe))>U){let k=ee.get(H);if(k){if(k===L)return;Le.hide(k)}k=Le.show(oe,Q,{type:"text",placement:"top",closeOnClick:!1}),k&&(ee.set(H,k),L=k)}}},onMouseLeaveForOverflowText:(w,H)=>{const Q=ee.get(H);Q&&(Le.hide(Q),Q===L&&(L=null))},onMouseOverForTip:(w,H)=>{const Q=w.currentTarget;Q&&(L&&Le.hide(L),L=Le.show(Q,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:w=>{L&&(Le.hide(L),L=null)}}}}),zu={class:"fox-table-setting"},Hu={class:"fox-table-setting__header"},Ku={class:"fox-table-setting__body"},Wu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Yu={key:0,class:"fox-table-setting__body-title"},Uu=["data-index","draggable"],Gu=["onMouseover","onMouseleave"],Xu={class:"tools-item"},Zu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Ju={key:0,class:"fox-table-setting__body-title"},Qu=["data-index","draggable"],ec=["onMouseover","onMouseleave"],tc={class:"tools-item"},nc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},oc={key:0,class:"fox-table-setting__body-title"},lc=["data-index","draggable"],rc=["onMouseover","onMouseleave"],ac={class:"tools-item"};function ic(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("RefreshLeft"),d=o.resolveComponent("FoxIcon"),g=o.resolveComponent("Download"),p=o.resolveComponent("fox-checkbox"),v=o.resolveComponent("FoxCheckboxGroup"),b=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(b,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",zu,[o.createElementVNode("div",Hu,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",Ku,[o.createVNode(v,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Wu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",Yu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[6]||(t[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[7]||(t[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[8]||(t[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[9]||(t[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,Gu)]),_:2},1032,["value"]),o.createElementVNode("div",Xu,[o.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[1]||(t[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[2]||(t[2]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[3]||(t[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[4]||(t[4]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"])])],40,Uu))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Zu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",Ju,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[15]||(t[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[16]||(t[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[17]||(t[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[18]||(t[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,ec)]),_:2},1032,["value"]),o.createElementVNode("div",tc,[o.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[10]||(t[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[12]||(t[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[13]||(t[13]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"])])],40,Qu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",nc,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",oc,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[24]||(t[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[25]||(t[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[26]||(t[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[27]||(t[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(p,{class:"checkbox-item",label:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,rc)]),_:2},1032,["label"]),o.createElementVNode("div",ac,[o.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[19]||(t[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[20]||(t[20]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[21]||(t[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"])])],40,lc))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Cn=Ye(ju,[["render",ic]]);let sc=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,u){if(Array.isArray(l)){let c=(n-1)*r,d=c+r;d>l.length&&(d=l.length);const g=l.slice(c,d);return{totalSize:l.length,page:g}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,u]);const s=We(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Qe(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(s,null,[l,n,r,a,i,u]))}};function uc(){const e=o.getCurrentInstance();return new sc(e.proxy)}class cc{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=We(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=We(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=We(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function $r(){const e=o.getCurrentInstance();return new cc(e.proxy)}const fc=Symbol.for("TableStateKey"),Cr={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]},rowClassName:{type:Function},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"}},Er={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},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}},$o={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:()=>"不固定"}},dc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function hc(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);n=n[g][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Co(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=hc(n,r);if(a!==i)return!1}return!0})}function gc(e,t,l){return{inheritAttrs:!1,props:{...$e,...Re,...Cr,...Er,...$o,...dc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=qe.useFoxI18n(t),{emitEvent:i,broadcast:u}=ke({componentName:e,validateHandler:{getValue(...ne){return I.value}}},n.prop??r.attrs.name),s=e,c=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),g=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),p=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),v=o.shallowRef({}),b=o.computed(()=>({...v.value,...n.params??{},...n.baseParams??{}})),f=o.ref(n.infiniteLoad===!0?0:n.pageIndex),h=o.ref(n.pageSize),A=ue(n.infiniteLoad);A||(o.watch(()=>n.pageIndex,ne=>{f.value=ne}),o.watch(()=>n.pageSize,ne=>{h.value=ne}),o.watch([f,h],([ne,re],[ae,se])=>{re!==se&&(f.value=1,ne=1),y(n.data,ne,re,b.value)}));const $=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);$()&&o.watch([()=>n.data,b],async([ne,re],[ae,se])=>{$()&&(ne!==ae&&(x=!0),!(!Array.isArray(ne)&&et(ne,ae)&&et(re,se))&&(A?(f.value=0,j.value=!0,I.value=[],J()):f.value===1?y(ne,f.value,h.value,re):f.value=1))},{deep:!0});const T=ne=>{f.value=ne,i("page-index-change",ne)},q=ne=>{h.value=ne,i("page-size-change",ne)},j=o.ref(!0),V=o.ref(0),I=o.ref(),R=uc();let x=!0;const z=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,ne=>ue(ne)),y=async(ne,re,ae,se,Ne)=>{x=!1;try{if(Ne===!0){if(!j.value)return!1;const be=await R.load("table",ne,re,ae,se,x,a.value);return V.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,I.value,be.page),setTimeout(()=>{i("loaded-data")},250),(I.value?.length??0)>=V.value)||be.page.length<ae?(j.value=!1,!1):!0}else{const be=await R.load("table",ne,re,ae,se,x,a.value);return V.value=be.totalSize,I.value=be.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),V.value=0,I.value=[]}return!1};let _=!1;const J=async()=>{if(!_){if(_=!0,!j.value){_=!1;return}f.value+=1,await y(n.data,f.value,h.value,b.value,!0),_=!1}},B=(ne={},re=!1)=>new Promise(async ae=>{v.value={...o.toRaw(ne??{})},re||(f.value=n.pageIndex??1),A===!0?(f.value=0,I.value=[],j.value=!0,await J()):await y(n.data,f.value,h.value,b.value),ae()}),N=()=>{V.value=0,I.value=[],A===!0&&(f.value=0,j.value=!0)};let M=!1;const P=()=>{M||(M=!0,B())},G=o.ref(null);if(A===!0){let ne=null;const re=()=>{G.value&&(ne=new IntersectionObserver(se=>{let Ne=!1;for(let be of se)if(be.intersectionRatio>0){Ne=!0;break}Ne&&J()}),ne.observe(G.value))},ae=()=>{!ne||!G.value||(ne.unobserve(G.value),ne=null)};o.onMounted(re),o.onBeforeUnmount(ae)}$()&&!z.value&&B();const ee=o.ref(null);o.provide(fc,{currentRow:ee});const L=(ne,re)=>{ee.value=ne,i("current-change",ne,re)},te=(ne,re,ae)=>{i("row-click",ne,re,ae),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(ne)},E=[],C=(ne,re)=>{if(i("expand-change",ne,re),ue(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=E.length;E.splice(0,ae)}else{E.forEach(se=>{se!==ne&&xe?.value.toggleRowExpansion(se,!1)});const ae=E.length;E.splice(0,ae,ne)}},F=r.attrs.id??n.prop??r.attrs.name,D=$r(),w=o.ref([]);let H=[];const Q=()=>({srcColumnPropertyList:H.map(re=>({...re})),columnPropertyList:w.value}),oe=ne=>{w.value=[...ne],Y()},U=async()=>{const ne=await D.load(F);ne&&(w.value=ne)},Y=()=>{D.save(F,w.value)},k=()=>{D.remove(F)};U();const W=ne=>ne?ne.type?ne.type:ne.label?ne.prop:"":"",Z=()=>typeof r.slots.default=="function"?r.slots.default():[],O=(ne,re={})=>{for(let ae in re){const se=re[ae];typeof se!="function"&&(ne[ae]=se)}},K=o.computed(()=>{const ne=Z(),re=new Map;if(H=[],ne.forEach(ae=>{const Ne=ae;if(!Ne.props)return;const be=W(Ne.props);re.set(be,Ne);const He={label:"",prop:""};O(He,Ne.props),H.push(He)}),w.value.length===H.length){const ae=[];for(let se of w.value){const Ne=W(se),be=re.get(Ne);if(!be)return ne;if(se.visible===!1)continue;const He=be;He.props.fixed=se.fixed,ae.push(He)}return ae}return ne}),X=o.shallowRef(new Map),le=({row:ne,column:re,rowIndex:ae,columnIndex:se})=>{const Ne=`${ae}_${re.property}`,be=`${ae}_${se}`;let He=X.value.get(Ne);return He||(He=X.value.get(be)),typeof He=="string"?He:""},ce=ne=>typeof ne=="function"?re=>{const ae=[];let se=le(re);return se&&ae.push(se),se=ne(re),se&&ae.push(se),ae.length===0?"":ae.join(" ")}:le,fe=(ne=!1)=>{X.value.forEach((re,ae)=>{ye(ae,re,ne)})},ye=(ne,re,ae=!1)=>{const se=`${ne}_item`;ae?(u.clearPersistantMessage(),Array.isArray(re)?u.emitToChildren({name:ne},"setCellClassNames",[]):u.emitToChildren({name:se},"setCustomClassName","")):Array.isArray(re)?u.emitToChildren({name:ne,cachePolicy:"Persistant",uniqueId:se},"setCellClassNames",re):u.emitToChildren({name:se,cachePolicy:"Persistant",uniqueId:se},"setCustomClassName",re)},pe=(ne,re,ae)=>{const se=`${ne}_${re}`;ae?(X.value.set(se,ae),ye(se,ae)):(X.value.delete(se),ye(se,"",!0)),o.triggerRef(X)},Ee=ne=>{fe(!0),X.value.clear(),ne.forEach(re=>{const ae=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?X.value.set(ae,re.children):typeof re.cellClassName=="string"&&X.value.set(ae,re.cellClassName)}),fe(),o.triggerRef(X)},ht=()=>{fe(),X.value.clear(),o.triggerRef(X)},Ue=o.shallowRef(new Map),gt=({rowIndex:ne})=>{const re=`${ne}`;return Ue.value.get(re)??""},rl=ne=>typeof ne=="function"?re=>{const ae=[];let se=gt(re);return se&&ae.push(se),se=ne(re),se&&ae.push(se),ae.length===0?"":ae.join(" ")}:gt,vg=(ne,re)=>{const ae=`${ne}`;re?Ue.value.set(ae,re):Ue.value.delete(ae),o.triggerRef(Ue)},wg=()=>{Ue.value.clear(),o.triggerRef(Ue)},xe=o.ref();return Se({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(ne,re)=>{xe?.value.toggleRowSelection(ne,re)},toggleRowSelectionByProp:(ne,re)=>{if(!I.value)return;const ae=Co(I.value,ne);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowSelection(se,re)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(ne,re)=>{xe?.value.toggleRowExpansion(ne,re)},toggleRowExpansionByProp:(ne,re)=>{if(!I.value)return;const ae=Co(I.value,ne);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowExpansion(se,re)})},setCurrentRow:ne=>{xe?.value.setCurrentRow(ne)},setCurrentRowByProp:ne=>{if(!I.value)return;const re=Co(I.value,ne);re.length!==0&&xe?.value.setCurrentRow(re[0])},getCurrentRow:()=>ee.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:ne=>{xe?.value.clearFilter(ne)},doLayout:()=>{xe?.value.doLayout()},sort:(ne,re)=>{xe?.value.sort(ne,re)},scrollTo:(ne,re)=>{xe?.value.scrollTo(ne,re)},setScrollTop:ne=>{xe?.value.setScrollTop(ne)},setScrollLeft:ne=>{xe?.value.setScrollLeft(ne)},loadData:B,clearData:N,getData(){return I.value},getTotalSize(){return V.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:Q,setColumnSetting:oe,removeColumnSetting:k,setCellClassName:pe,setCellClassNames:Ee,clearCellClassName:ht,setRowClassName:vg,clearRowClassName:wg}),()=>{const re={...Ze(r.attrs),onCurrentChange:L,onRowClick:te,onExpandChange:C,data:I.value,ref:xe,class:c.value,"cell-class-name":ce(n.cellClassName),"row-class-name":rl(n.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>K.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),A===!0){const Ge=[];if(j.value){const qt=o.h(Ie.Loading,{class:`${s}__infinite-icon`});Ge.push(qt);const il=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);Ge.push(il)}else{const qt=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);Ge.push(qt)}const mt={ref:G,class:`${s}__infinite`},al=o.h("div",mt,Ge);ae.append=()=>al}const se=o.h(S.ElTable,re,ae),Ne=[];if(Ne.push(se),!A){let Ge=null;if(typeof r.slots.pagination=="function")Ge=r.slots.pagination();else if(n.showPagination){const mt={class:p.value,total:V.value,pageSize:h.value,"onUpdate:pageSize":q,pageSizes:n.pageSizes,currentPage:f.value,"onUpdate:currentPage":T,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Ge=o.h(S.ElPagination,mt)}if(n.showSetting){const mt=[];Ge&&mt.push(Ge);const al=o.h(S.ElIcon,{class:d.value},{default:()=>o.h(Ie.Setting)}),qt=kl(n,$o),il=o.h(Cn,{...qt,tableRef:{getColumnSetting:Q,setColumnSetting:oe,removeColumnSetting:k}},{default:()=>al});mt.push(il);const Sg=o.h("div",{class:g.value},mt);Ne.push(Sg)}else Ge&&Ne.push(Ge)}const be={default:()=>Ne},$t={...De(n,Cr,Er,$o)};return n.prop&&($t.prop=`${n.prop}_item`),$t.contentClass=`${s}__wrap`,$t.errorMarkClass="is-table-error",z.value&&$()&&($t["appear-listen"]=!0,$t.onAppear=P),o.h(l,$t,be)}}}}const{componentName:mc,create:yc,scope:pc}=ie("table-item"),Eo=yc(gc(mc,pc,Ce));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function bc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let vc=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function wc(){const e=o.getCurrentInstance();return new vc(e.proxy)}function Nr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=wt(e,t),r=wt(e,l);if(n!==r)return!1;const a=At(e,t),i=At(e,l);return a===i}function Sc(e,t,l,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(l==="text")i=wt(e,a)===t;else if(l==="item")i=Nr(e,a,t);else{let u=At(e,a);u==null&&(u=wt(e,a)),i=u===t}if(i){r=a;break}}return r}function xc(e){return{text:e,value:e}}function Tc(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const kr={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 $c(e,t,l){return{inheritAttrs:!0,props:{...$e,...Re,...kr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref(null),g=o.ref(null),p=(x,z,y,_=!0)=>{const J=Sc(n,x,z,y);if(J===null){if(g.value===null)return;g.value=null,d.value=null,_&&(c("update:modelValue",null),c("change",null));return}if(!Nr(n,J,g.value)){d.value=x;const N=o.toRaw(J);g.value=N;let M=null;n.valueType==="text"?M=wt(n,N):n.valueType==="item"?M=N:M=At(n,N),_&&(c("update:modelValue",M),c("change",M))}},v=o.ref([]),b=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,x=>ue(x)),f=wc(),h=async(x,z)=>{if(x){const y=await f.load("radio",x,z);if(y.length>0)if(typeof y[0]=="string"){let B=y.map(N=>xc(N));v.value=B}else v.value=y}};o.watch([()=>n.source,()=>n.params],async([x,z])=>{h(x,z)},{immediate:!b.value});let A=!1;const $=()=>{A||(A=!0,h(n.source,n.params))};o.watch([()=>v.value,()=>n.modelValue],([x,z])=>{p(z,n.valueType,x,!1),c("setValue",z)});const T=e,q=o.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),j=x=>{p(x,"value",v.value,!0)};let V=ge(n,"hintText"),I=ge(n,"hintVisible");const R=(x,z)=>{const y=[];return x.forEach((_,J)=>{const B=At(n,_),N=wt(n,_);let M=bc(n,_);i.value===!0&&(M=i.value),s.value===!0&&(M=s.value);const P=Tc(n,_,J)??{},G=`${B}_${J}`,ee={...P,key:G,value:B,size:n.size,border:ue(n.border)};M&&(ee.disabled=M),n.itemType==="button"?y.push(o.h(S.ElRadioButton,ee,{default:()=>[N]})):typeof z=="function"?y.push(o.h(S.ElRadio,ee,{default:()=>z(_)})):y.push(o.h(S.ElRadio,ee,{default:()=>[N]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Ze(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,onChange:j},y=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(v.value,r.slots.text);const J=o.h(S.ElRadioGroup,z,_);y.push(J);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(n,kr),hintText:V.value,hintVisible:I.value};return n.prop&&(M.prop=`${n.prop}_item`),b.value&&(M["appear-listen"]=!0,M.onAppear=$),o.h(l,M,B)}}}}const{componentName:Cc,create:Ec,scope:Nc}=ie("radio-item"),No=Ec($c(Cc,Nc,Ce));function St(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function kc(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,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Oc(){const e=o.getCurrentInstance();return new Ic(e.proxy)}function Ir(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=St(e,t),r=St(e,l);if(n!==r)return!1;const a=xt(e,t),i=xt(e,l);return a===i}function Dc(e,t,l,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 u=!1;if(l==="text")u=St(e,i)===a;else if(l==="item")u=Ir(e,i,a);else{let s=xt(e,i);s==null&&(s=St(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Vc(e){return{text:e,value:e}}function Rc(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const Or={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},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 Fc(e,t,l){return{inheritAttrs:!0,props:{...$e,...Re,...Or},emits:["change","update:modelValue","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref([]),g=o.ref([]),p=(x,z,y,_=!0)=>{const J=Dc(n,x,z,y);if(J===null){if(g.value===null||g.value.length===0)return;d.value=[],g.value=[],_&&(c("update:modelValue",[]),c("change",[]));return}let B=!0;if(J.length!==g.value.length)B=!1;else for(let N=0;N<J.length;N++){const M=J[N],P=g.value[N];if(!Ir(n,M,P)){B=!1;break}}if(!B){g.value=J;let N=[],M=[];J.forEach(G=>{N.push(xt(n,G)),n.valueType==="text"?M.push(St(n,G)):n.valueType==="item"?M.push(G):M.push(xt(n,G))}),d.value=N;const P=o.toRaw(M);_&&(c("update:modelValue",P),c("change",P))}},v=o.ref([]),b=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,x=>ue(x)),f=Oc(),h=async(x,z)=>{if(x){const y=await f.load("checkbox",x,z);if(y.length>0)if(typeof y[0]=="string"){let B=y.map(N=>Vc(N));v.value=B}else v.value=y}};o.watch([()=>n.source,()=>n.params],async([x,z])=>{h(x,z)},{immediate:!b.value});let A=!1;const $=()=>{A||(A=!0,h(n.source,n.params))};o.watch([()=>v.value,()=>n.modelValue],([x,z])=>{p(z,n.valueType,x,!1),c("setValue",z)});const T=e,q=o.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),j=x=>{p(x,"value",v.value,!0)};let V=ge(n,"hintText"),I=ge(n,"hintVisible");const R=(x,z)=>{const y=[];return x.forEach((_,J)=>{const B=xt(n,_),N=St(n,_);let M=kc(n,_);i.value===!0&&(M=i.value),s.value===!0&&(M=s.value);const P=Rc(n,_,J)??{},G=`${B}_${J}`,ee={...P,key:G,class:n.itemClass,value:B,size:n.size,border:ue(n.border)};M&&(ee.disabled=M),n.itemType==="button"?y.push(o.h(S.ElCheckboxButton,ee,{default:()=>[N]})):typeof z=="function"?y.push(o.h(S.ElCheckbox,ee,{default:()=>z(_)})):y.push(o.h(S.ElCheckbox,ee,{default:()=>[N]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Ze(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,max:Te(n.max),min:Te(n.min),onChange:j},y=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(v.value,r.slots.text);const J=o.h(S.ElCheckboxGroup,z,_);y.push(J);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(n,Or),hintText:V.value,hintVisible:I.value};return n.prop&&(M.prop=`${n.prop}_item`),b.value&&(M["appear-listen"]=!0,M.onAppear=$),o.h(l,M,B)}}}}const{componentName:Ac,create:Mc,scope:Lc}=ie("checkbox-item"),ko=Mc(Fc(Ac,Lc,Ce)),Dr={modelValue:{type:[Number,String],required:!1}};function Bc(e,t,l){return{props:{...$e,...Re,...Dr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",A=>Te(A),c),g=e,p=o.computed(()=>({[g]:!0})),v=A=>{c("update:modelValue",A),c("change",A)};let b=ge(n,"hintText"),f=o.ref(!1);const h=o.ref();return Se({setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const $={...Ze(r.attrs),ref:h,class:p.value,readonly:s.value||i.value,modelValue:d.value,onChange:v},T={},q=[],j=o.h(S.ElRate,$,T);q.push(j);const V={default:()=>q};V.label=r.slots.default,V.fixedPreTip=r.slots.fixedPreTip,V.fixedTip=r.slots.fixedTip;const R={...De(n,Dr),hintText:b.value,hintVisible:f.value};return n.prop&&(R.prop=`${n.prop}_item`),o.h(l,R,V)}}}}const{componentName:_c,create:qc,scope:Pc}=ie("rate-item"),Io=qc(Bc(_c,Pc,Ce)),Vr={modelValue:{type:[Boolean,String,Number],required:!1}};function jc(e,t,l){return{props:{...$e,...Re,...Vr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,c),g=e,p=o.computed(()=>({[g]:!0})),v=A=>{c("update:modelValue",A),c("change",A)};let b=ge(n,"hintText"),f=ge(n,"hintVisible");const h=o.ref();return Se({setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const $={...Ze(r.attrs),ref:h,class:p.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:v},T={},q=[],j=o.h(S.ElSwitch,$,T);q.push(j);const V={default:()=>q};V.label=r.slots.default,V.fixedPreTip=r.slots.fixedPreTip,V.fixedTip=r.slots.fixedTip;const R={...De(n,Vr),hintText:b.value,hintVisible:f.value};return n.prop&&(R.prop=`${n.prop}_item`),o.h(l,R,V)}}}}const{componentName:zc,create:Hc,scope:Kc}=ie("switch-item"),Oo=Hc(jc(zc,Kc,Ce)),Rr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Wc(e,t,l){return{props:{...$e,...Re,...Rr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),c=o.ref(!1),{emitEvent:d}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),g=ge(n,"modelValue",null,d),p=e,v=o.computed(()=>({[p]:!0})),b=I=>{d("update:modelValue",I),d("change",I)};let f=ge(n,"hintText"),h=o.ref(!1);const A=I=>{let x=I.target.value;c.value=!0,he(f.value)||(h.value=!0),d("focus",x,I)},$=I=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let x=I.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),q.value||d("blur",x,I)},T=()=>{d("clear","")},q=o.ref(!1),j=I=>{q.value=I,d("visible-change",I),I||d("selected")},V=o.ref();return Se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const R={...Ze(r.attrs),ref:V,class:v.value,disabled:i.value||s.value,modelValue:g.value,"onUpdate:modelValue":b,onClear:T,onFocus:A,onBlur:$,onVisibleChange:j},x={};r.slots.option&&(x.default=r.slots.option);const z=[],y=o.h(S.ElTreeSelect,R,x);z.push(y);const _={default:()=>z};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const B={...De(n,Rr),hintText:f.value,hintVisible:h.value};return n.prop&&(B.prop=`${n.prop}_item`),o.h(l,B,_)}}}}const{componentName:Yc,create:Uc,scope:Gc}=ie("tree-select-item"),Do=Uc(Wc(Yc,Gc,Ce)),Xc={},Zc={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"};function Jc(e,t){return o.openBlock(),o.createElementBlock("svg",Zc,t[0]||(t[0]=[o.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)]))}const Qc=Ye(Xc,[["render",Jc]]),{componentName:Mg,create:ef,scope:Lg}=ie("group-setting"),tf={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:"到底部"}},nf=ef({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:Qc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...tf},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=$r(),u=E=>E.length>1,s=()=>{const E=[],C=[...a.value];a.value=C.map((D,w)=>(D.visible!==!1&&E.push(D.prop),{...D,sortIndex:w})),a.value.length===E.length?f.value=!0:E.length>0&&(h.value=!0),T.value=E},c=E=>{let C=null;if(typeof E=="string")C=document.querySelectorAll(`.fox-group[prop="${E}"] > div > .fox-item[prop]`);else if(E&&typeof E=="object"){const D=E.$el??E;typeof D.querySelectorAll=="function"&&(C=D.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const F=[];return C.forEach(D=>{const w=D.querySelector(".label--string");let H="";w&&(H=w.textContent??"");const Q=D.getAttribute("prop")??"",U=window.getComputedStyle(D,null).getPropertyValue("display");F.push({label:H,prop:Q,sortIndex:0,visible:U!=="none"})}),F},d=()=>{if(!r){const E=c(e.groupRef??e.groupProp);if(E.length===0)return!1;r=E}return!0},g=async(E=!1)=>{const C=await i.load(e.groupProp),F=D=>{if(!D||!r)return;const w=r.map(H=>({...H}));Array.isArray(C)&&C.forEach(H=>{w.some(Q=>{if(Q.prop===H.prop){const oe=Q.label;return Object.assign(Q,H),Q.label=oe,!0}return!1})}),a.value=w.sort((H,Q)=>H.sortIndex-Q.sortIndex),s(),E&&v(!1)};r?F(!0):Zt(d,e.initDelay,5,50,!1,F)},p=()=>{const E=r??[];a.value=E.map(C=>({...C})),s(),v()},v=(E=!0)=>{E&&i.save(e.groupProp,a.value);const C=a.value.map(F=>({...F}));t("change",C)},b=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=o.ref(!1),h=o.ref(!1),A=E=>{const C=[];a.value.forEach(D=>{E&&C.push(D.prop),D.visible=E}),f.value=!1,h.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),T.value=C,v()},$=()=>{p()},T=o.ref([]),q=E=>{a.value.forEach(F=>{const D=E.indexOf(F.prop)!==-1;F.visible=D}),f.value=!1,h.value=!1;const C=a.value.length;E.length===C?f.value=!0:E.length>0&&(h.value=!0),v()},j=()=>{g()};o.onMounted(()=>{g(!0)});const V={currentRow:null,index:null},I=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,I(E)):null:null,R=E=>{const C=E.currentTarget;C&&C.dataset&&(V.index=C.dataset.index)},x=E=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null},z=E=>{const C=E.currentTarget;E.relatedTarget;const F=I(C);F&&(E.preventDefault(),V.currentRow&&V.currentRow!==F&&V.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),V.currentRow=F)},y=E=>{E.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},_=E=>{const C=E.currentTarget,F=I(C);if(!F)return;E.preventDefault();const D=Number(V.index),w=Number(F.dataset.index);if(D!==w){if(D<w){const H=a.value[D];a.value.splice(D,1),a.value.splice(w,0,H)}else{const H=a.value[D];a.value.splice(D,1),a.value.splice(w+1,0,H)}s(),v()}},J=E=>{const C=a.value[E];a.value.splice(E,1),a.value.splice(0,0,C),s(),v()},B=E=>{const C=a.value[E];a.value.splice(E,1),a.value.push(C),s(),v()};n({refresh:()=>{r=null,g(!1)}});const N=new Map;let M=null;function P(E){const C=document.createRange();return C.setStart(E,0),C.setEnd(E,E.childNodes.length),C.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:A,handleReset:$,checkedValue:T,handleCheckChange:q,onShow:j,onDragStart:R,onDragEnd:x,onDragOver:z,onDragLeave:y,onDrop:_,checkboxLabelStyle:b,toTop:J,toBottom:B,onMouseOverForOverflowText:(E,C,F)=>{const D=E.currentTarget;if(D){const w=Math.floor(D.offsetWidth);if(Math.floor(P(D))>w){let Q=N.get(C);if(Q){if(Q===M)return;Le.hide(Q)}Q=Le.show(D,F,{type:"text",placement:"top",closeOnClick:!1}),N.set(C,Q),M=Q}}},onMouseLeaveForOverflowText:(E,C)=>{const F=N.get(C);F&&(Le.hide(F),F===M&&(M=null))},onMouseOverForTip:(E,C)=>{const F=E.currentTarget;F&&(M&&Le.hide(M),M=Le.show(F,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:E=>{M&&(Le.hide(M),M=null)}}}}),of={class:"fox-group-setting"},lf={class:"fox-group-setting__header"},rf={class:"fox-group-setting__body"},af={class:"fox-group-setting__body-list","data-role":"container"},sf=["data-index","draggable"],uf=["onMouseover","onMouseleave"],cf={class:"tools-item"};function ff(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("Download"),d=o.resolveComponent("FoxIcon"),g=o.resolveComponent("FoxCheckboxGroup"),p=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(p,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",of,[o.createElementVNode("div",lf,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",rf,[o.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",af,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,v=>(o.openBlock(),o.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]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:t[6]||(t[6]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:t[7]||(t[7]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:t[8]||(t[8]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:t[9]||(t[9]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:v.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,v.prop,v.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,v.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(v.label),45,uf)]),_:2},1032,["label"]),o.createElementVNode("div",cf,[o.createVNode(d,{onClick:b=>e.toTop(v.sortIndex),onMouseover:t[1]||(t[1]=b=>e.onMouseOverForTip(b,e.toTopText)),onMouseleave:t[2]||(t[2]=b=>e.onMouseLeaveForTip(b)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:b=>e.toBottom(v.sortIndex),onMouseover:t[3]||(t[3]=b=>e.onMouseOverForTip(b,e.toBottomText)),onMouseleave:t[4]||(t[4]=b=>e.onMouseLeaveForTip(b))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,sf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Vo=Ye(nf,[["render",ff]]),df=["aria-labelledby"],hf=o.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),gf=[hf],mf=o.defineComponent({__name:"Uploader",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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},gf,14,df))}}),yf=["aria-labelledby"],pf=o.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),bf=[pf],vf=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},bf,14,yf))}}),wf=["aria-labelledby"],Sf=o.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),xf=[Sf],Ro=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},xf,14,wf))}}),Tf=["aria-labelledby"],$f=o.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),Cf=[$f],Ef=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Cf,14,Tf))}}),Nf=["aria-labelledby"],kf=o.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),If=[kf],Of=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},If,14,Nf))}}),Df=["aria-labelledby"],Vf=o.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),Rf=[Vf],Ff=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Rf,14,Df))}}),Af={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,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Fr=(e,t)=>t[e.textKey],Mt=(e,t)=>t[e.valueKey],Mf=(e,t)=>t[e.visibleKey],Ar=(e,t)=>t[e.disabledKey],Lf=(e,t)=>{const l=t[e.doitKey];return ue(l)},Bf=(e,t)=>{const l=t[e.numKey];return l==null?null:Te(t[l])},Mr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function _f(e,t,l,n=!1){return{props:{...Af},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=o.computed(()=>{const E={};return E[`${e}`]=!0,E}),s=o.computed(()=>{const E={};return E[`${e}__titles`]=!0,E[`${r.direction}`]=!0,r.align==="left"&&(E.left=!0),r.scroll===!0&&(E.scrollable=!0),r.shape&&(E[`${r.shape}`]=!0),E}),c=o.computed(()=>({})),d=o.computed(()=>{if(!r.gutter)return 0;const E=me(r.gutter);return E<=0?0:E}),g=o.ref(r.modelValue);o.watch(()=>r.modelValue,E=>{g.value!==E&&(g.value=E,P(!1))});const p=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=o.computed(()=>{const E={};return f.value||(E.display="none"),E}),b=o.ref(),f=o.ref(!1),h=()=>{const E=!f.value;A(E)},A=E=>{const C=E;C?(f.value=C,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},$=o.ref(),T=o.ref([]),q=(E,C)=>{T.value[C]=E},j=E=>C=>{q(C,E)},V=(E,C)=>{const F=$.value,D=T.value;if(!F||!D||!D[E])return;const w=D[E];let H=0;r.direction==="vertical"?H=w.offsetTop-(F.offsetHeight-w.offsetHeight)/2:H=w.offsetLeft-(F.offsetWidth-w.offsetWidth)/2,I(F,H,C?0:.3,r.direction)},I=(E,C,F,D)=>{let w=0;const H=D==="horizontal"?E.scrollLeft:E.scrollTop,Q=F===0?1:Math.round(F*1e3/16);function oe(){D==="horizontal"?E.scrollLeft+=(C-H)/Q:E.scrollTop+=(C-H)/Q,++w<Q&&qn(oe)}oe()},R=(E,C)=>{const F=Mt(r,E),D={};return D[`${e}__titles-item`]=!0,D.disabled=Ar(r,E),D.active=F===g.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),C&&(C.class&&(D[`${C.class}`]=!0),C.disabled===!0&&(D.disabled=C.disabled)),D},x=(E,C)=>{const F={};if(d.value>0){const D=Math.abs(d.value/2);r.direction==="vertical"?(F["margin-top"]=`${D}px`,F["margin-bottom"]=`${D}px`):(F["margin-left"]=`${D}px`,F["margin-right"]=`${D}px`)}return C&&C.style&&Object.assign(F,C.style),F},z=(E,C)=>`${Mt(r,E)??C}`,y=(E,C)=>{const F=Mt(r,E),D={};D[`${e}__popup-item`]=!0,D.disabled=Ar(r,E),D.active=F===g.value,r.shape&&(D[`${r.shape}`]=!0);const w=Mr(r,E,C);return w&&w.disabled===!0&&(D.disabled=w.disabled),D},_=o.computed(()=>(r.data??[]).filter(C=>Mf(r,C)!==!1)),J=(E,C)=>{const F=Mt(r,E);if(g.value==F)return;const D=()=>{g.value=F,r.scroll&&V(C,!1),i("update:modelValue",F),i("change",E,C)};if(typeof r.beforeChange=="function"){const w=r.beforeChange(E,C);bl(w)?w.then(H=>{H!==!1&&D()}).catch(()=>{D()}):w!==!1&&D()}else D()},B=(E,C)=>function(){J(E,C)},N=(E,C)=>{J(E,C),A(!1)},M=(E,C)=>function(){N(E,C)},P=E=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(F=>Mt(r,F)===g.value);C!==-1&&V(C,E)};o.watch(()=>r.data,()=>{setTimeout(P,0)}),o.onMounted(()=>{P(!0)});const G=(E,C)=>{if(a.item)return a.item({item:E,index:C});const F=Mr(r,E,C),D=[];if(a.text){const oe=a.text({item:E,index:C});D.push(oe)}else{const oe=[];if(F?.doit===!0||Lf(r,E)){const W={class:[`${e}__titles-item-tip`,"doit"]},Z=o.h("view",W);oe.push(Z)}const U=F?.num??Bf(r,E);if(U){let W="";const Z=Te(U);Z>=100?W="99+":W=`${Z}`;const O={class:[`${e}__titles-item-tip`,"num"]},K=o.h("view",O,[W]);oe.push(K)}const Y={class:`${e}__titles-item-text`};oe.push(Fr(r,E));const k=o.h("view",Y,oe);D.push(k)}const w={class:`${e}__titles-item-line`},H=o.h("view",w);D.push(H);const Q={ref:j(C),class:R(E,F),style:x(E,F),key:z(E,C),onClick:B(E,C)};return o.h("view",Q,D)},ee=()=>{const E=a.default?a.default():[];if(E.length===0)for(let F=0;F<_.value.length;F++){const D=_.value[F],w=G(D,F);E.push(w)}const C={ref:$,class:s.value,style:c.value};return o.h("view",C,E)},L=()=>{let E=null;a.navigation?E=a.navigation():E=o.h(l);const C={class:`${e}__navigation`,onClick:h};return o.h("view",C,[E])},te=()=>{const E=[];for(let F=0;F<_.value.length;F++){const D=_.value[F];let w=null;a.popupItem?w=a.popupItem({item:D,index:F}):w=Fr(r,D);const H={class:y(D,F),key:z(D,F),onClick:M(D,F)},Q=o.h("view",H,[w]);E.push(Q)}const C={class:p.value,style:v.value};return o.h("view",C,E)};return()=>{const E=[],C=ee();if(E.push(C),r.showQuickNavigation){const D=L();E.push(D);const w=te();E.push(w)}const F={class:u.value};return o.h("view",F,E)}}}}const{create:qf,componentName:Pf,scope:jf}=ie("tabs-bar"),Fo=qf(_f(Pf,jf,vf,!1)),Lr=Symbol("TabsStatesKey"),zf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Br=10;function _r(e,t){return e>t&&e>Br?"horizontal":t>e&&t>Br?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){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",l=()=>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 c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=_r(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:l,state:e}}function Hf(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),u=o.ref(0),s=o.ref(0),c=o.ref(0),d=o.ref(""),g=()=>d.value==="vertical",p=()=>d.value==="horizontal",v=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",l.value=0};return{move:h=>{if(h.touches){const T=h.touches[0];i.value=T.clientX-e.value,u.value=T.clientY-t.value,r.value=T.clientX,a.value=T.clientY}else{const $=h;i.value=$.clientX-e.value,u.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),n.value=Date.now()-l.value,d.value||(d.value=_r(s.value,c.value))},start:h=>{if(v(),h.touches){const T=h.touches[0];e.value=T.clientX,t.value=T.clientY}else{const $=h;e.value=$.clientX,t.value=$.clientY}l.value=Date.now()},reset:v,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:g,isHorizontal:p}}const Kf=15,Wf=300,Yf=200;function Uf(e,t,l=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*l}function qr(e,t=0,l,n,r=Yf){l==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",n==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}let Gf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(t,l,n,r=1){this.onStart=t,this.onMove=l,this.onEnd=n,this.momentumReduceRatio=r,this.isTouch=Lt()}open(t){this.el=t;const l=Bt(),n=(r,a,i)=>{const u={delta:r,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;l.start(r),this.transitionEndTrigger=()=>{t.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,t.removeEventListener("transitionend",this.transitionend),t.addEventListener("transitionend",this.transitionend),t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=r=>{if(!this.moving)return;l.move(r);let a=0;if(this.direction==="horizontal"){if(l.isVertical())return;a=l.state.deltaX}else{if(l.isHorizontal())return;a=l.state.deltaY}n(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;t.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(l.isVertical()){this.moving=!1;return}r=l.state.deltaX}else{if(l.isHorizontal()){this.moving=!1;return}r=l.state.deltaY}const a=l.state.duration;a<Wf&&Math.abs(r)>Kf?(r=Uf(r,a,this.momentumReduceRatio),n(r,this.direction,"end")):n(r,this.direction,"end")},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.transitionend&&t.addEventListener("transitionend",this.transitionend),this.touchstart&&t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&t.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Xf(e,t,l,n=1){return new Gf(e,t,l,n)}function Zf(e,t,l=!1){return{props:{...zf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),u={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:V=>{const I={name:V};u.current.value===V&&(I.loaded=!0),i.value.push(I),o.triggerRef(i)},remove:V=>{const I=i.value.findIndex(R=>R.name===V);I!==-1&&i.value.splice(I,1)},isLoaded:V=>{if(!n.lazy)return!0;const I=i.value.findIndex(R=>R.name===V);return I!==-1?u.current.value?i.value[I].loaded??!1:I===0:!1}};o.provide(Lr,u);const s=V=>{const I=i.value.findIndex(R=>R.name===V);I!==-1&&(i.value[I].loaded=!0,o.triggerRef(i))};o.watch([()=>n.modelValue,()=>n.direction],([V,I])=>{u.current.value!==V&&(u.current.value=V??"",s(V??"")),u.direction.value!==I&&(u.direction.value=I)});const c=o.ref(null),d=o.ref(null),g=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let p=!0;const v=o.computed(()=>{const V={},I=i.value.length;if(I<=0)return V;const R=i.value.findIndex(x=>x.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(V.height=`${I*u.tabHeight.value}px`,R!==-1&&(V.transform=`translate(0, -${R*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(V.width=`${I*u.tabWidth.value}px`,R!==-1&&(V.transform=`translate(-${R*u.tabWidth.value}px, 0)`)),p&&(p=!1,V.transition="transform 0s ease"),V}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=V=>{const I=i.value.length,R=i.value.findIndex(x=>x.name===u.current.value);b.moved=0,V.direction==="vertical"?(b.min=-1*(u.tabHeight.value*(I-1)+u.tabHeight.value/4),b.max=u.tabHeight.value/4,b.start=-R*u.tabHeight.value,b.itemDistance=u.tabHeight.value):(b.min=-1*(u.tabWidth.value*(I-1)+u.tabWidth.value/4),b.max=u.tabWidth.value/4,b.start=-R*u.tabWidth.value,b.itemDistance=u.tabWidth.value)},h=V=>{const I=d.value;if(!I)return;let R=b.start+V.delta;if(R>b.max?R=b.max:R<b.min&&(R=b.min),V.type==="move")qr(I,R,"move",V.direction,300);else if(V.type==="end"){let x=Math.floor(Math.abs(R)*1/b.itemDistance);const z=Math.abs(R)%b.itemDistance;b.start>R?z>=b.itemDistance*b.triggerAutoMoveRatio&&(x+=1):z>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(x+=1),R=-1*x*b.itemDistance,qr(I,R,"end",V.direction,300),b.moved=R;const y=i.value[x].name;u.current.value=y??"",s(y??""),r("update:modelValue",y)}},A=()=>{},$=()=>{if(!c.value)return;const V=an(c.value);u.tabWidth.value=V.width,u.tabHeight.value=V.height},T=Pe($,120);let q=null,j=null;return o.onMounted(()=>{c.value&&(window.ResizeObserver&&(j=new window.ResizeObserver(T),j.observe(c.value)),$(),n.draggle&&(q=Xf(f,h,A),q.open(d.value)))}),o.onBeforeUnmount(()=>{j&&(j.disconnect(),j=null),q&&q.close()}),()=>{const V={class:`${e}__panes`,style:v.value,ref:d},I=o.h("view",V,[a?.default?.()]),R={class:g.value,ref:c};return o.h("view",R,[I])}}}}const{create:Jf,componentName:Qf,scope:ed}=ie("tabs-container"),Ao=Jf(Zf(Qf,ed,!1)),td={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function nd(e,t,l){return{props:{...td},setup(n,{emit:r,slots:a}){const i=o.inject(Lr);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.paneKey)});const u=o.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=o.computed(()=>n.loaded!=null?ue(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const g={class:`${e}__empty-icon`},p=n.emptyIcon??l,v=o.h(p,g),b={class:`${e}__empty-text`},f=n.emptyText??"Loading",h=o.h("view",b,[f]),A={class:`${e}__empty`},$=o.h("view",A,[v,h]);c.push($)}const d={class:`${e}`,style:u.value};return o.h("view",d,c)}}}}const{create:od,componentName:ld,scope:rd}=ie("tabs-pane"),Mo=od(nd(ld,rd,Ro)),ad={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function id(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Pr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function jr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function sd(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Lo(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function zr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Hr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Bo(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class ud{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function cd(){const e=o.getCurrentInstance();return new ud(e.proxy)}function fd(e,t,l,n){return{props:{...ad},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=cd(),c=o.ref([]),d=o.computed(()=>c.value.filter(C=>sd(r,C)!==!1)),g=o.ref(-1),p=()=>{const C=r.modelValue,F=d.value.findIndex(D=>Pr(r,D)===C);g.value!==F&&(g.value=F,r.scroll&&te(F))};o.watch([()=>r.modelValue,d],()=>{p()});const v=C=>g.value===C,b=C=>{if(C<0&&C>=d.value.length)return!1;const F=d.value[C],w=(Bo(r,F,C)??{}).status??Lo(r,F);return v(C)||w},f=o.computed(()=>{const C={[u]:!0};return r.mode?C[`is-${r.mode}`]=!0:r.direction&&(C[`is-${r.direction}`]=!0),r.scroll&&(C["is-scroll"]=!0),C}),h=o.computed(()=>({})),A=(C,F,D,w,H)=>{const Q={[`${u}__step`]:!0};return H&&(Q[`${H}`]=!0),Q[`${$.value}`]=!0,w&&(Q["is-doit"]=!0),C===g.value?Q["is-active"]=!0:F==="done"?Q["is-done"]=!0:F==="error"?Q["is-error"]=!0:F==="half"?Q["is-half"]=!0:D?Q["is-disabled"]=!0:Q["is-normal"]=!0,Q},$=o.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),T=(C,F={})=>{const D={...F};return $.value==="start"&&C===d.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},q=(C,F)=>{let D={};if(F<d.value.length-1){const w=F+1;b(F)&&b(w)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},j=C=>d.value.length-1===C,V=(C,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>g.value||g.value===F)return;const D=g.value,w=F;g.value=F,r.scroll&&te(F);const H=Pr(r,C);i("update:modelValue",H);const Q={fromIndex:D,currentIndex:w,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,Q)},I=o.ref(!0),R=async(C,F)=>{try{const D=await s.load("stesbar",C,F);Array.isArray(D)&&(c.value=D),I.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([C,F])=>{C&&R(C,F)},{immediate:!0});const x=(C,F,D,w,H)=>{let Q=null;if(a.icon)Q=a.icon({item:C,index:F,status:w});else if(w==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize);const Y=r.icon??l;Q=o.h(Y,U)}else{const U=D??`${F+1}`;Q=o.h("span",{},[U])}const oe={class:"fox-steps-bar__icon",onClick:()=>{H||V(C,F)}};return o.h("view",oe,[Q])},z=(C,F,D)=>{const w=o.h("i",{class:"fox-steps-bar__line-inner",style:q(C,F)});return o.h("view",{class:"fox-steps-bar__line"},[w])},y=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const w=r.markIcon??n;C=o.h(w,D)}return o.h("view",{class:"fox-steps-bar__mark"},[C])},_=(C,F,D,w,H)=>{const Q=[];if(!j(F)){const Y=z(C,F);Q.push(Y)}const oe=x(C,F,D,w,H);Q.push(oe);const U={class:"fox-steps-bar__head"};return o.h("view",U,Q)},J=(C,F,D,w)=>{let H=null;a.main?H=a.main({item:C,index:F,status:D}):H=id(r,C);const Q={class:"fox-steps-bar__main",onClick:()=>{w||V(C,F)}};return o.h("view",Q,[H])},B=(C,F,D)=>{let w=null;if(a.sub){w=a.sub({item:C,index:F,status:D});const H={class:"fox-steps-bar__sub"};return o.h("view",H,[w])}return null},N=(C,F)=>{const D=Bo(r,C,F)??{},w=D.status??Lo(r,C);let H=jr(r,C);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=D.label??Hr(r,C),oe=[],U=x(C,F,Q,w,H);U&&oe.push(U);const Y=J(C,F,w,H);if(Y&&oe.push(Y),!j(F)){const X=z(C,F);X&&oe.push(X)}const k=o.h("view",{class:"fox-steps-bar__head"},oe),W=D.class,Z=D.style??{};let O=zr(r,C);D.doit===!0&&(O=!0);const K={ref:L(F),class:A(F,w,H,O,W),style:T(F,Z)};return o.h("view",K,[k])},M=(C,F)=>{const D=Bo(r,C,F)??{},w=D.status??Lo(r,C);let H=jr(r,C);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=D.label??Hr(r,C),oe=[],U=r.layout;for(let O of U)if(O==="head"){const K=_(C,F,Q,w,H);oe.push(K)}else if(O==="main"){const K=J(C,F,w,H);oe.push(K)}else if(O==="sub"){const K=B(C,F,w);oe.push(K)}else if(O==="mark"){const K=y();oe.push(K)}const Y=D.class,k=D.style??{};let W=zr(r,C);D.doit===!0&&(W=!0);const Z={ref:L(F),class:A(F,w,H,W,Y),style:T(F,k)};return o.h("view",Z,oe)},P=o.ref(),G=o.ref([]),ee=(C,F)=>{G.value[F]=C},L=C=>F=>{ee(F,C)},te=(C,F)=>{const D=P.value,w=G.value;if(!D||!w||!w[C])return;const H=w[C];let Q=0;r.direction==="vertical"?Q=H.offsetTop-(D.offsetHeight-H.offsetHeight)/2:Q=H.offsetLeft-(D.offsetWidth-H.offsetWidth)/2,E(D,Q,.3,r.direction)},E=(C,F,D,w)=>{let H=0;const Q=w==="horizontal"?C.scrollLeft:C.scrollTop,oe=Math.round(D*1e3/16);function U(){w==="horizontal"?C.scrollLeft+=(F-Q)/oe:C.scrollTop+=(F-Q)/oe,++H<oe&&qn(U)}U()};return()=>{const C=[];if(r.mode==="simple")for(let D=0;D<d.value.length;D++){const w=d.value[D],H=N(w,D);C.push(H)}else for(let D=0;D<d.value.length;D++){const w=d.value[D],H=M(w,D);C.push(H)}const F={ref:P,class:f.value,style:h.value};return o.h("view",F,C)}}}}const{componentName:dd,create:hd,scope:gd}=ie("steps-bar"),_o=hd(fd(dd,gd,Of,Ff)),md=Symbol.for("InnerPageScopeKey"),yd=Symbol.for("PageWrapperKey");function pd(e,t){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(l,n){o.provide(md,!0);const r={};o.provide(yd,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),u=s=>{i.value=s};return()=>{const c={...n.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},d=["fox-dialog-item "];l.hideHeader&&d.push("hide-header"),l.class&&d.push(l.class),c.class=d.join(" ");const g={};return typeof n.slots.default=="function"&&(g.default=n.slots.default),o.h(S.ElDialog,c,g)}}}}const{componentName:Bg,create:bd,scope:_g}=ie("dialog-item"),qo=bd(pd());let _t=0;const Kr="fox-overflow-hidden",Wr=()=>ot?document.body:{classList:[]},vd=e=>[()=>{if(e())try{!_t&&Wr().classList.add(Kr),_t++}catch{}},()=>{if(e()&&_t)try{_t--,!_t&&Wr().classList.remove(Kr)}catch{}}],wd={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:Sd,create:xd}=ie("overlay"),Td=xd({props:{...wd},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=vd(()=>e.lockScroll),r=o.computed(()=>({[Sd]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,u=>{u?l():n()}),{classes:r,style:a,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function $d(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:t[0]||(t[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const En=Ye(Td,[["render",$d]]),Cd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Yr=2e3;let Ur=Yr;const Ed=(e,t)=>({components:t,props:{...Cd},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),u=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),s=()=>{l.zIndex!==Yr&&(Ur=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Ur,l.destroyOnClose&&(r.showSlot=!0),n("open")},c=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},d=f=>{n("click-pop",f)},g=f=>{f.stopPropagation(),n("click-close-icon",f),n("update:visible",!1)},p=f=>{n("click-overlay",f),l.closeOnClickOverlay&&n("update:visible",!1)},v=f=>{n("opend",f)},b=f=>{n("closed",f)};return o.watch(()=>l.visible,f=>{l.visible?s():c()}),o.watch(()=>l.closeable,f=>{r.closed=f}),{...o.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:g,onClickOverlay:p,onOpened:v,onClosed:b}}}),{componentName:Nd,create:kd}=ie("popup"),Id=kd(Ed(Nd,{FoxOverLay:En,Close:Ef}));function Od(e,t,l,n,r,a){const i=o.resolveComponent("FoxOverLay"),u=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.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"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(u)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Po=Ye(Id,[["render",Od]]),{create:Dd}=ie("toast"),Vd=Dd({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 l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,v=>{v&&i()});const s=o.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const v=me(e.iconSize);return o.h(e.icon,{width:v,height:v,color:e.iconColor})},d=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),g=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:g,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Rd={key:1,class:"fox-toast-title"},Fd=["innerHTML"];function Ad(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",Rd,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Fd)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const jo=Ye(Vd,[["render",Ad]]),Md={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"}},Ld=(e,t,l)=>({props:{...Md},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}=Ll(),{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["placeholder"]),s=o.reactive({active:!1}),c=o.computed(()=>({background:n.background})),d=o.computed(()=>({background:n.inputBackground})),g=x=>{let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),a("update:modelValue",y,x),a("change",y,x)},p=o.ref({}),v=x=>{let y=x.target.value;s.active=!0,p.value=n.focusStyle,a("focus",y,x)},b=x=>{setTimeout(()=>{s.active=!1},0);let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),p.value={},a("blur",y,x)},f=x=>{a("update:modelValue","",x),a("change","",x),a("clear","")},h=o.computed(()=>String(n.modelValue).length>0),A=o.computed(()=>{const x={};return h.value||(x.display="none"),x}),$=()=>{a("search",n.modelValue)},T=x=>{a("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&$()},q=x=>{a("click-input",x)},j=x=>{a("click-left-icon",n.modelValue,x)},V=o.computed(()=>({textAlign:n.inputAlign})),I=o.ref(null);o.onMounted(()=>{n.autofocus&&I.value.focus()});const R=()=>{const x=[];if(r.leftin){const B={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:j},N=o.h("view",B,[r.leftin()]);x.push(N)}const z={ref:I,class:[`${e}__input-inner`],style:V.value,type:n.inputType,maxlengt:n.maxLength,placeholder:u.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:g,onFocus:v,onBlur:b,onkeyup:T},y=o.h("input",z);x.push(y);const _=[];if(n.clearable){const B={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:A.value,onClick:f},N=r?.clear?.()??n.clearIcon??l,M=o.h("view",B,[o.h(N)]);_.push(M)}if(r.rightin){const B={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},N=o.h("view",B,[r.rightin()]);_.push(N)}if(_.length>0){const B={class:`${e}__input-inner-right`},N=o.h("view",B,_);x.push(N)}const J={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...p.value}};return o.h("view",J,x)};return()=>{const x=[];if(n.label){const _={class:`${e}__search-label`},J=o.h("span",_,[n.label]);x.push(J)}if(r.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},J=o.h("view",_,[r.leftout()]);x.push(J)}const z=R();if(x.push(z),r.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},J=o.h("view",_,[r.rightout()]);x.push(J)}const y={class:`${e}`,style:c.value};return o.h("view",y,x)}}}),{componentName:Bd,create:_d,scope:qd}=ie("searchbar"),zo=_d(Ld(Bd,qd,Ie.CircleClose)),Pd=/scroll|auto|overlay/i,Gr=window;function jd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function zd(e,t=Gr){let l=e;for(;l&&l!==t&&jd(l);){const{overflowY:n}=window.getComputedStyle(l);if(Pd.test(n))return l;l=l.parentNode}return t}function Xr(e,t=Gr){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=zd(e.value,t))}),l}const Zr=()=>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 Kd(e,t,l){return{props:{...Hd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullText","loadText","loadMoreText"]),s=o.ref(),c=Xr(s),d=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),g=o.computed(()=>({[e]:!0})),p=$=>$?$.offsetTop+p($.offsetParent):0,v=()=>{let $=0,T=0,q="down";if(c.value==window){const j=Zr();s.value&&($=p(s.value)+s.value.offsetHeight-j-window.innerHeight),T=j}else{const{scrollHeight:j,clientHeight:V,scrollTop:I}=c.value;$=j-V-I,T=I}return d.beforeScrollTop>T?q="up":q="down",d.beforeScrollTop=T,r("scroll-change",T),$<=n.threshold&&q=="down"},b=()=>{sl(()=>{if(!v()||!n.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",b,n.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",b,n.useCapture)};o.onMounted(()=>{f(),n.immediate&&b()}),o.onUnmounted(()=>{h()});const A=o.ref(!1);return o.onActivated(()=>{A.value&&(A.value=!1,f())}),o.onDeactivated(()=>{A.value=!0,h()}),o.watch(()=>n.modelValue,$=>{$||(d.isInfiniting=!1)}),()=>{const $={class:"fox-infinite__container"},T=o.h("view",$,[a?.default?.()]),q=[];if(d.isInfiniting){let R=a?.loading?.()??null;if(!R){let y=a?.loadingIcon?.()??null;if(!y){const B={class:["fox-infinite__bottom-box__img"]};y=o.h(l,B)}const _={class:"fox-infinite__bottom-box__text"},J=o.h("view",_,[u.loadText.value]);R=[y,J]}const x={class:"fox-infinite__bottom-box"},z=o.h("view",x,R);q.push(z)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const x={class:"fox-infinite__bottom-tips"};R=o.h("view",x,[u.loadMoreText.value]),q.push(R)}}const j={class:"fox-infinite__bottom"},V=o.h("view",j,q),I={class:g.value,ref:s};return o.h("view",I,[T,V])}}}}const{componentName:Wd,create:Yd,scope:Ud}=ie("infinite-loading"),Ho=Yd(Kd(Wd,Ud,Ro)),Gd={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}},Xd=(e,t,l)=>({props:{...Gd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Bt(),c=o.ref(),d=Xr(c),g=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=o.computed(()=>({[e]:!0})),v=o.computed(()=>{switch(g.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),b=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""})),f=o.computed(()=>{const I={};return n.headHeight!=50&&(I.height=Ve(n.headHeight)),I}),h=I=>{const R=+(n.pullDistance||n.headHeight);let x=I;return I>R&&(I<R*2?x=(I+R)/2:x=R+I/4),Math.round(x)},A=(I,R)=>{const x=+(n.pullDistance||n.headHeight);g.distance=I,R?g.status="loading":I===0?g.status="normal":I<x?g.status="pulling":g.status="loosing",r("change",{status:g.status,distance:I})},$=()=>g.status!=="loading"&&g.status!=="complete",T=()=>d.value==window?Zr()==0:d.value&&d.value.scrollTop==0,q=I=>{$()&&(T()?(s.start(I),g.isPullRefresh=!0,g.moving=!0):(g.distance=0,g.isPullRefresh=!1))},j=I=>{$()&&g.moving&&(s.move(I),s.isVertical()&&s.state.deltaY>0&&g.isPullRefresh&&(I.cancelable&&I.preventDefault(),A(h(s.state.deltaY))))},V=()=>{g.moving=!1,g.isPullRefresh&&$()&&s.state.deltaY&&(g.status==="loosing"?(A(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):A(0)),setTimeout(()=>{s.reset()},0)};return o.watch(()=>n.modelValue,I=>{I?A(+n.headHeight,!0):A(0)}),()=>{const I=[];let R=null;if(g.status==="loading"){if(R=a?.loading?.()??null,!R){const M={class:["fox-pull-refresh-container-topbox-icon"]};R=o.h(l,M)}}else g.status==="pulling"?R=a?.pulling?.()??null:g.status==="loosing"&&(R=a?.loosing?.()??null);R&&I.push(R);const x={class:["fox-pull-refresh-container-topbox-text"]},z=o.h("dive",x,[v.value]);I.push(z);const y={class:["fox-pull-refresh-container-topbox"],style:f.value},_=o.h("div",y,I),J={class:"fox-pull-refresh-container",style:b.value},B=o.h("div",J,[_,a?.default?.()]),N={ref:c,class:p.value};return Lt()?Object.assign(N,{onTouchstart:q,onTouchmove:j,onTouchend:V}):Object.assign(N,{onMousedown:q,onMousemove:j,onMouseup:V}),o.h("div",N,[B])}}}),{componentName:Zd,create:Jd,scope:Qd}=ie("pull-refresh"),Ko=Jd(Xd(Zd,Qd,Ro));function eh(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(l,{slots:n}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),u=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),s=o.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=o.computed(()=>l.color?{color:l.color}:null);return()=>{let d=null;if(n.mark)d=n.mark()[0];else{const f={class:i.value,style:u.value};d=o.h(l.icon??"div",f)}const g={class:s.value,style:c.value},p=n.default?n.default():[],v=o.h("div",g,p),b={class:a.value};return l.textPosition==="right"?o.h("div",b,[d,v]):o.h("div",b,[v,d])}}}}const{componentName:th,create:nh,scope:qg}=ie("indicator"),Wo=nh(eh(th));function oh(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const lh={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 rh(e,t,l,n=!1){return{props:{...lh},emits:["click"],setup(r,a){const i=o.ref(null),u=o.computed(()=>{const T={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(T[`${e}--${r.type??"default"}`]=!0),r.size&&(T[`${e}--${r.size}`]=!0),T}),s=o.computed(()=>{const T={},q=r.textColor??r.color;return q&&(T.color=q),T}),c=(T,q)=>{let j=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const V=r.highlightFilter;if(T.indexOf(V)!==-1){const R=T.replace(new RegExp(V,"g"),`<span>${V}</span>`);q.innerHTML=R,q.class["is-highlight"]=!0,j=o.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const V=r.highlightFilter(T);V&&(q.innerHTML=V,q.class["is-highlight"]=!0,j=o.h(r.tag,q))}return j},d=T=>{a.emit("click",T)};let g="";const p=()=>{const T=i.value;if(!T)return;const q=T.clientWidth;oh(T,j=>{const V=T.innerHTML??"";he(V)||j<q||(g?l?.show(T,V,{type:"text",id:g,showArrow:r.showArrow},!0):g=l?.show(T,V,{type:"text",showArrow:r.showArrow},!0)??"")})},v=()=>{g&&l?.hide(g)};let b=null;const f=T=>{b||(b=setTimeout(()=>{p(),b=null},r.showAfter??0))},h=T=>{b&&(clearTimeout(b),b=null),setTimeout(()=>{v()},r.hideAfter??0)},A=()=>{const T=i.value;T&&(T.addEventListener("mouseover",f),T.addEventListener("mouseleave",h))},$=()=>{const T=i.value;T&&(T.removeEventListener("mouseover",f),T.removeEventListener("mouseleave",h))};return o.onMounted(()=>{!ue(r.showOverflowTooltip)||!l||A()}),o.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!l||$()}),()=>{const T={onClick:d,class:u.value,style:s.value,ref:i};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const x=R[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=Te(r.digits),y=Te(r.decimalLength),_=ue(r.autoPadding);let J=`${R[0].children}`,B=J.split("").reverse().join("");B=zt(B,y,_,z,r.separator),J=B.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(J,T)),q||(T.innerHTML=J,q=o.h(r.tag,T))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const x=R[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=`${R[0].children}`;q=c(z,T),q||(T.innerHTML=z,q=o.h(r.tag,T))}}}q||(q=o.h(r.tag,T,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let V=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const x={},z=r.color;z&&(x.color=z);const y={class:R,style:x};V=o.h("view",y,o.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const x={},z=r.color;z&&(x.color=z);const y={class:R,style:x};V=o.h("view",y,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const x={},z=r.color;z&&(x["background-color"]=z);const y={class:R,style:x};V=o.h("view",y)}const I={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",I,[V,q])}}}}const{componentName:ah,create:ih,scope:sh}=ie("text"),Yo=ih(rh(ah,sh,Le,!1)),uh={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:Ie.ArrowUp}};function ch(e,t,l){return{props:{...uh},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const g={[`${e}`]:!0};return n.disabled?g[`${e}__disabled`]=!0:g[`${e}__${n.type}`]=!0,g}),i=ge(n,"modelValue"),u=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),s=o.computed(()=>({[`${e}__text`]:!0})),c=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const g=[];if(u.value){const f={class:s.value},h=o.h("span",f,[u.value]);g.push(h)}const p={class:c.value},v=l(n.icon,p);return v&&g.push(v),o.h("div",{class:a.value,onClick:d},g)}}}}const{componentName:fh,create:dh,scope:hh}=ie("more-button"),Uo=dh(ch(fh,hh,(e,t)=>(e=e??Ie.ArrowUp,o.h(S.ElIcon,t,{default:()=>[o.h(e)]}))));function gh(e){e.stopPropagation()}let mh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=Bt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),gh(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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 yh(e,t){return new mh(e,t)}const ph={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},bh=(e,t,l,n=!1)=>({props:{...ph},emits:["click"],setup(r,{slots:a,emit:i}){const u=o.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=o.computed(()=>{const $=[`${e}`];return r.customClass&&$.push(r.customClass),$}),c=o.computed(()=>{const $={};return he(u.top)||($.top=u.top),he(u.right)||($.right=u.right),he(u.bottom)||($.bottom=u.bottom),he(u.left)||($.left=u.left),he(r.width)||($.width=r.width),he(r.height)||($.height=r.height),he(r.color)||($.color=r.color),he(r.background)||($.background=r.background),he(r.borderRadius)||($["border-radius"]=r.borderRadius),he(r.zIndex)||($["z-index"]=r.zIndex),$}),d=o.computed(()=>({[`${e}__icon`]:!0})),g=()=>{i("click")},p=o.ref(null),v=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},b={x:0,y:0},A=yh($=>{if(!p.value)return;const T=p.value;v(),u.left=T.offsetLeft,u.top=T.offsetTop,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`,T.style.right=null,T.style.bottom=null,b.x=u.left,b.y=u.top},$=>{if(!p.value)return;const T=p.value;v(),u.left=b.x+$.x,u.top=b.y+$.y,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`});return o.onMounted(()=>{if(r.draggable&&p.value){const $=[p.value];A.open($)}}),o.onBeforeUnmount(()=>{r.draggable&&p.value&&A.close()}),()=>{let $=[];const T=typeof a.default=="function"?a.default():[];if(T&&T.length>0)$=T;else{const j=o.h(l,{class:d.value});$.push(j)}const q={ref:j=>{p.value=j},class:s.value,style:c.value,onClick:g};return o.h("view",q,$)}}}),{componentName:vh,create:wh,scope:Sh}=ie("floating-button"),Go=wh(bh(vh,Sh,mf,!1));function xh(e){return e===window}const Jr=e=>{const t=o.unref(e);if(xh(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Th,create:$h,scope:jg}=ie("tour"),Ch=$h({components:{Close:Ie.Close,ElPopover:S.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 l=Th,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:b,maskWidth:f,maskHeight:h}=e,{width:A,height:$,left:T,top:q}=r.value,j=e.steps[n.active].offset??b,V=[T+A/2,q+$/2],I=Number(f||A),R=Number(h||$);return{width:`${I+ +j.left+j.right}px`,height:`${R+j.top+j.bottom}px`,top:`${V[1]-R/2-+j.top}px`,left:`${V[0]-I/2-+j.left}px`}}),u=b=>{b=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,d()}),t("change",n.active)},s=b=>b.popoverWidth??e.width,c=b=>b.location??e.location,d=()=>{const b=document.querySelector(`${e.steps[n.active].target}`),f=Jr(b);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},g=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&g()},v=(b,f=0)=>{b&&d(),e.steps,n.active=f,n.showTour=b,n.showPopup=b};return o.onMounted(()=>{v(e.modelValue,e.current)}),o.watch(()=>e.modelValue,b=>{v(b)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:g,handleClickMask:p}}}),Eh={key:0,class:"fox-tour__content"},Nh={key:0,class:"fox-tour__content-top"},kh={class:"fox-tour__content-inner"},Ih={class:"fox-tour__content-bottom"},Oh={class:"fox-tour__content-bottom-init"},Dh={class:"fox-tour__content-bottom-operate"},Vh={key:1,class:"fox-tour__content fox-tour__content-tile"},Rh={class:"fox-tour__content-inner"};function Fh(e,t,l,n,r,a){const i=o.resolveComponent("Close"),u=o.resolveComponent("fox-button"),s=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(c,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(o.openBlock(),o.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",Eh,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",Nh,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...g)=>e.close&&e.close(...g))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",kh,o.toDisplayString(c.content),1),o.createElementVNode("div",Ih,[o.createElementVNode("div",Oh,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Dh,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=g=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=g=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Vh,[o.createElementVNode("div",Rh,o.toDisplayString(c.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const Xo=Ye(Ch,[["render",Fh]]),Be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Ah{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=Bt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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 Qr(e,t){return new Ah(e,t)}const ea=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Tt=[];const ta=e=>{const t=e;t.key==="Escape"&&Tt.forEach(l=>l(t))},Mh=e=>{o.onMounted(()=>{Tt.length===0&&document.addEventListener("keydown",ta),ea&&Tt.push(e)}),o.onBeforeUnmount(()=>{Tt=Tt.filter(t=>t!==e),Tt.length===0&&ea&&document.removeEventListener("keydown",ta)})},Zo="fox-focus-trap.focus-after-trapped",Jo="fox-focus-trap.focus-after-released",Lh="fox-focus-trap.focusout-prevented",na={cancelable:!0,bubbles:!1},Bh={cancelable:!0,bubbles:!1},oa="foxFocusAfterTrapped",la="foxFocusAfterReleased",_h=Symbol("foxFocusTrap"),Qo=o.ref(),Nn=o.ref(0),el=o.ref(0);let kn=0;const ra=e=>{const t=[],l=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(;l.nextNode();)t.push(l.currentNode);return t},qh=(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},aa=(e,t)=>{for(const l of e)if(!qh(l,t))return l},Ph=e=>{const t=ra(e),l=aa(t,e),n=aa(t.reverse(),e);return[l,n]},jh=e=>e instanceof HTMLInputElement&&"select"in e,it=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),el.value=window.performance.now(),e!==l&&jh(e)&&t&&e.select()}};function ia(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const zh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=ia(e,n),e.unshift(n)},remove:n=>{e=ia(e,n),e[0]?.resume?.()}}},Hh=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(it(n,t),document.activeElement!==l)return},sa=zh(),Kh=()=>Nn.value>el.value,In=()=>{Qo.value="pointer",Nn.value=window.performance.now()},ua=()=>{Qo.value="keyboard",Nn.value=window.performance.now()},Wh=()=>(o.onMounted(()=>{kn===0&&(document.addEventListener("mousedown",In),document.addEventListener("touchstart",In),document.addEventListener("keydown",ua)),kn++}),o.onBeforeUnmount(()=>{kn--,kn<=0&&(document.removeEventListener("mousedown",In),document.removeEventListener("touchstart",In),document.removeEventListener("keydown",ua))}),{focusReason:Qo,lastUserFocusTimestamp:Nn,lastAutomatedFocusTimestamp:el}),On=e=>new CustomEvent(Lh,{...Bh,detail:e}),{componentName:zg,create:Yh,scope:Hg}=ie("focus-trap"),Uh=Yh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[oa,la,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Wh();Mh(f=>{ue(e.trapped)&&!u.paused&&l("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:h,altKey:A,ctrlKey:$,metaKey:T,currentTarget:q,shiftKey:j}=f,{loop:V}=e,I=h==="Tab"&&!A&&!$&&!T,R=document.activeElement;if(I&&R){const x=q,[z,y]=Ph(x);if(z&&y){if(!j&&R===y){const J=On({focusReason:i.value});l("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),V&&it(z,!0))}else if(j&&[z,x].includes(R)){const J=On({focusReason:i.value});l("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),V&&it(y,!0))}}else if(R===x){const J=On({focusReason:i.value});l("focusout-prevented",J),J.defaultPrevented||f.preventDefault()}}};o.provide(_h,{focusTrapRef:n,onKeydown:s}),o.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),o.watch([n],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",g),f.addEventListener("focusout",p)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",g),h.removeEventListener("focusout",p))});const c=f=>{l(oa,f)},d=f=>l(la,f),g=f=>{const h=o.unref(n);if(!h)return;const A=f.target,$=f.relatedTarget,T=A&&h.contains(A);ue(e.trapped)||$&&h.contains($)||(r=$),T&&l("focusin",f),!u.paused&&ue(e.trapped)&&(T?a=A:it(a,!0))},p=f=>{const h=o.unref(n);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const A=f.relatedTarget;!Kn(A)&&!h.contains(A)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const $=On({focusReason:i.value});l("focusout-prevented",$),$.defaultPrevented||it(a,!0)}},0)}else{const A=f.target;A&&h.contains(A)||l("focusout",f)}};async function v(){await o.nextTick();const f=o.unref(n);if(f){sa.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const $=new Event(Zo,na);f.addEventListener(Zo,c),f.dispatchEvent($),$.defaultPrevented||o.nextTick(()=>{let T=e.focusStartEl;pl(T)||(it(T),document.activeElement!==T&&(T="first")),T==="first"&&Hh(ra(f),!0),(document.activeElement===h||T==="container")&&it(f)})}}}function b(){const f=o.unref(n);if(f){f.removeEventListener(Zo,c);const h=new CustomEvent(Jo,{...na,detail:{focusReason:i.value}});f.addEventListener(Jo,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Kh())&&it(r??document.body,!0),f.removeEventListener(Jo,c),sa.remove(u)}}return o.onMounted(()=>{ue(e.trapped)&&v(),o.watch(()=>e.trapped,f=>{ue(f)?v():b()})}),o.onBeforeUnmount(()=>{ue(e.trapped)&&b()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:Gh,create:Xh,scope:Wg}=ie("floating-window"),Zh=Symbol.for("InnerPageScopeKey"),Jh=Symbol.for("PageWrapperKey"),Qh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{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}},eg=Xh({inheritAttrs:!1,components:{FoxIcon:S.ElIcon,FocusTrap:Uh},props:{...Qh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Gh,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,O=>{n.value=O});const a=o.computed(()=>n.value===!1?!1:!R.value),i=o.ref(e.left),u=o.ref(e.top),s=o.ref(e.right),c=o.ref(e.bottom),d=o.computed(()=>{const O=["fox-floating-window"];return e.customClass&&O.push(e.customClass),O}),g=o.computed(()=>{const O={};return dt(i.value)?O.left="auto":O.left=Be(i.value),dt(u.value)?O.top="auto":O.top=Be(u.value),dt(s.value)?O.right="auto":O.right=Be(s.value),dt(c.value)?O.bottom="auto":O.bottom=Be(c.value),dt(e.zIndex)||(O["z-index"]=Be(e.zIndex)),dt(V.value)||(O.height=V.value),dt(I.value)||(O.width=I.value),O}),p=o.computed(()=>e.closeIcon??Ie.Close),v=o.computed(()=>e.collapseIcon??Ie.ArrowUp),b=o.computed(()=>e.collapseText??""),f=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=o.computed(()=>e.expandText??e.title??"展开"),A=o.computed(()=>({[`${l}__collapse-text`]:!0})),$=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),T=o.ref(),q=o.ref(null),j=o.ref(null),V=o.computed(()=>Be(e.height)||""),I=o.computed(()=>Be(e.width)||""),R=o.ref(ue(e.collapse)),x=(O,K=!0)=>{R.value!==O&&(R.value=O,O?C():F(),t("update:collapse",O),O&&typeof _.onHide=="function"?_.onHide():!O&&typeof _.onShow=="function"&&_.onShow())};o.watch(()=>e.collapse,O=>{x(O)});const z=()=>{y()},y=O=>{O=O??!R.value,x(O)};o.provide(Zh,!0);const _={setCollapse:x,setFixedNavVisible:O=>{L.value=O}};o.provide(Jh,_);const J=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{n.value=!1}):n.value=!1},B=o.ref(null),N=o.computed(()=>!e.fixedNavTeleport),M=o.computed(()=>{const O=["fox-floating-window__fixednav"];return e.expandClass&&O.push(e.expandClass),e.collapsePosition==="left"?O.push("is-left"):e.collapsePosition==="right"&&O.push("is-right"),O}),P=o.ref(""),G=o.computed(()=>{const O={};return P.value?O.top=P.value:e.collapseTop&&(O.top=e.collapseTop),O}),ee=o.ref(R.value),L=o.computed({set:O=>{ee.value=O},get:()=>n.value===!1?!1:ee.value});let te=null;const E=()=>{typeof te=="function"&&(te(),te=null)},C=()=>{B.value&&B.value.classList.add("slide-in"),L.value=!0,te=()=>{B.value&&B.value.classList.remove("slide-in")}},F=()=>{B.value&&B.value.classList.add("slide-out"),te=()=>{B.value&&B.value.classList.remove("slide-out"),L.value=!1}},D=()=>{i.value=null,u.value=null,s.value=null,c.value=null},w={x:0,y:0},oe=Qr(O=>{if(!T.value)return;const K=T.value;if(D(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,w.x=i.value,w.y=u.value;else if(e.origin==="left-bottom"){const X=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=X-(K.offsetTop+K.offsetHeight),w.x=i.value,w.y=c.value}else if(e.origin==="right-bottom"){const X=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=X-(K.offsetLeft+K.offsetWidth),c.value=le-(K.offsetTop+K.offsetHeight),w.x=s.value,w.y=c.value}else{const X=document.documentElement.clientWidth||document.body.clientWidth;s.value=X-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,w.x=s.value,w.y=u.value}},O=>{if(!T.value)return;const K=T.value;D(),e.origin==="left-top"?(i.value=w.x+O.x,u.value=w.y+O.y,K.style.left=Be(i.value),K.style.top=Be(u.value)):e.origin==="left-bottom"?(i.value=w.x+O.x,c.value=w.y-O.y,K.style.left=Be(i.value),K.style.bottom=Be(c.value)):e.origin==="right-bottom"?(s.value=w.x-O.x,c.value=w.y-O.y,K.style.right=Be(s.value),K.style.bottom=Be(c.value)):(s.value=w.x-O.x,u.value=w.y+O.y,K.style.right=Be(s.value),K.style.top=Be(u.value))}),U={x:0,y:0},W=Qr(O=>{B.value&&(U.x=B.value.offsetLeft,U.y=B.value.offsetTop)},O=>{if(!B.value)return;const K=U.y+O.y;P.value=`${K}px`}),Z=()=>{if(T.value){const O=T.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");j.value=O}};return o.onMounted(()=>{if(e.draggable&&T.value){const O=[];q.value&&O.push(q.value),e.footerDraggable&&(Z(),j.value&&O.push(j.value)),oe.open(O)}e.collapse===!0&&x(e.collapse,!1),B.value&&W.open(B.value)}),o.onBeforeUnmount(()=>{e.draggable&&q.value&&oe.close(),B.value&&W.close()}),{classes:d,styles:g,isShow:a,closeIcon:p,onClose:J,dialogRef:T,headerRef:q,onClickToggle:z,collapseIcon:v,collapseText:b,collapseTextClasses:A,collapseIconClasses:$,expandIcon:f,expandText:h,isShowFixedNav:L,fixedNavRef:B,fixedNavClasses:M,fixedNavStyles:G,onAnimationEnd:E,teleportDisabled:r,fixedNavTeleportDisabled:N}}}),tg={ref:"headerRef",class:"fox-floating-window__header"},ng={class:"fox-floating-window__title"},og={class:"fox-floating-window__tools"},lg={class:"fox-floating-window__body"},rg={class:"fox-floating-window__fixednav__text"};function ag(e,t,l,n,r,a){const i=o.resolveComponent("FoxIcon"),u=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",tg,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",ng,o.toDisplayString(e.title),1),o.createElementVNode("div",og,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",lg,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",rg,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const tl=Ye(eg,[["render",ag]]),ig={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function sg(e,t,l=!1){return{props:{...ig},emits:["update:visible"],setup(n,{emit:r,slots:a,expose:i}){const u=o.ref({top:null,right:null,bottom:null,left:null}),s=o.ref(0),c=o.ref(0),d=o.ref(0),g=o.ref(0),p=o.ref(n.placement),v=o.ref(!1),b=o.ref(!1),f=o.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,A=(L,te,E,C,F,D,w,H=!0)=>{const Q=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight,U=L.split("-");let Y=[];H?U[0]==="top"?Y=["top","bottom","right","left"]:U[0]==="bottom"?Y=["bottom","top","right","left"]:U[0]==="left"?Y=["left","top","bottom","right"]:U[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[L[0]];const k={top:null,right:null,bottom:null,left:null},W=[];for(let Z=0;Z<Y.length;Z++){const O=Y[Z];if(W[0]=O,U[1]&&(W[1]=U[1]),O==="top"){const K=E-w-n.arrowSize/2-n.offset;if(K>=0){k.top=K;let X=0;U[1]==="start"?X=te:U[1]==="end"?X=te+C-D:X=te+C/2-D/2;const le=Q-X-D;le<0?(X+=le,T.value=-le):T.value=0,k.left=X<0?0:X;break}}else if(O==="bottom"){const K=E+F+n.arrowSize/2+n.offset;if(K+w<=oe){k.top=K;let X=0;U[1]==="start"?X=te:U[1]==="end"?X=te+C-D:X=te+C/2-D/2;const le=Q-X-D;le<0?(X+=le,T.value=-le):T.value=0,k.left=X<0?0:X;break}}else if(O==="left"){const K=te-D-n.arrowSize/2-n.offset;if(K>=0){k.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+F-w:X=E+F/2-w/2,k.top=X<0?0:X;break}}else if(O==="right"){const K=te+C+n.arrowSize/2+n.offset;if(K+D<=Q){k.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+F-w:X=E+F/2-w/2,k.top=X<0?0:X;break}}}return{bestPlacement:W.join("-"),bestInsetRect:k}},$=()=>{const L=n.visible,te=n.autoFit;if(!ot||L===!1)return;if(n.reference){const w=h(),H=ao(w);s.value=H.x,c.value=H.y,d.value=w.offsetWidth,g.value=w.offsetHeight}else n.referenceInset&&(s.value=n.referenceInset.left,c.value=n.referenceInset.top,d.value=n.referenceInset.right-n.referenceInset.left,g.value=n.referenceInset.bottom-n.referenceInset.top);const E=f.value.offsetWidth,C=f.value.offsetHeight,{bestPlacement:F,bestInsetRect:D}=A(n.placement,s.value,c.value,d.value,g.value,E,C,te);p.value=F,u.value=D},T=o.ref(0),q=Pe(()=>{$()},10),j=o.ref(n.visible);o.watch([()=>n.visible],([L])=>{j.value=L,L?(v.value=L,setTimeout(()=>{$(),b.value=!0},0)):b.value=!1});const V=o.computed(()=>j.value&&I.value),I=o.ref(!0),R=Pe(L=>{const te=L[0];te&&(I.value=te.isIntersecting)},10),x=new IntersectionObserver(R);o.watch([()=>n.reference,()=>n.referenceInset],([L,te],[E,C])=>{!L&&!te||(setTimeout(()=>{$()},0),n.autoFit&&(E&&(Dt.unwatch(E,q),x.unobserve(E)),L&&(Dt.watch(L,q),x.observe(L))))},{immediate:!0}),o.onBeforeUnmount(()=>{n.reference&&(Dt.unwatch(n.reference,q),x.unobserve(n.reference),x.disconnect())});const z=o.computed(()=>{const L={[e]:!0};return p.value.startsWith("top")?L["is-top"]=!0:p.value.startsWith("right")?L["is-right"]=!0:p.value.startsWith("bottom")?L["is-bottom"]=!0:p.value.startsWith("left")&&(L["is-left"]=!0),L[`is-${n.effect}`]=!0,!b.value&&V.value&&(L["is-opacity"]=!0),b.value&&V.value&&(L["is-show"]=!0),V.value||(L["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(L[`${n.customClass}`]=!0),L}),y=o.computed(()=>{const L={};return u.value.top!==null&&(L.top=`${u.value.top}px`),u.value.right!==null&&(L.right=`${u.value.right}px`),u.value.bottom!==null&&(L.bottom=`${u.value.bottom}px`),u.value.left!==null&&(L.left=`${u.value.left}px`),n.width&&(L.width=n.width),n.zIndex&&(L["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(L,n.customStyle),L}),_=()=>{j.value=!1,r("update:visible",!1)},J=()=>{if(!n.showOverlay)return null;const L={class:`${e}__overlay`,onClick:_};return o.h("div",L)},B=()=>{let L=null;return a.title?L=o.h("div",{class:`${e}__title`},{default:a.title}):n.title&&(L=o.h("div",{class:`${e}__title`},[n.title])),L},N=o.computed(()=>({[`${e}__arrow`]:!0})),M=o.computed(()=>{const L={};return n.showArrow?(L.width=`${n.arrowSize}px`,L.height=`${n.arrowSize}px`,p.value==="top"?(L.left="50%",L.bottom="0",L.transform="translate(-50%, 50%)"):p.value==="top-start"?(L.left=`${n.arrowOffset+T.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):p.value==="top-end"?(L.right=`${n.arrowOffset-T.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):p.value==="right"?(L.left="0",L.top="50%",L.transform="translate(-50%, -50%)"):p.value==="right-start"?(L.left="0",L.top=`${n.arrowOffset}px`,L.transform="translate(-50%, 50%)"):p.value==="right-end"?(L.left="0",L.bottom=`-${n.arrowOffset}px`,L.transform="translate(-50%, 50%)"):p.value==="bottom"?(L.left="50%",L.top="0",L.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(L.left=`${n.arrowOffset+T.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(L.right=`${n.arrowOffset-T.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):p.value==="left"?(L.right="0",L.top="50%",L.transform="translate(50%, -50%)"):p.value==="left-start"?(L.right="0",L.top=`${n.arrowOffset}px`,L.transform="translate(50%, -50%)"):p.value==="left-end"&&(L.right="0",L.bottom=`-${n.arrowOffset}px`,L.transform="translate(50%, -50%)"),L):{display:"none"}}),P=()=>{const L={class:N.value,style:M.value};return o.h("div",L)},G=()=>{j.value===!1&&(v.value=!1)},ee=L=>{if(!f.value||j.value===!1)return;const{relatedTarget:te}=L;f.value.contains(te)||(j.value=!1,r("update:visible",!1))};return i({doLayout:$}),()=>{if(!v.value)return null;const L=[],te=J();te&&L.push(te);const E=[],C=B();if(C&&E.push(C),a.default){const H=a.default();E.push(H)}const F=P();F&&E.push(F);const D={ref:f,class:z.value,style:y.value,onAnimationend:G};n.leaveHide&&(D.onMouseleave=ee);const w=o.h("div",D,{default:()=>E});return L.push(w),L}}}}const{componentName:ug,create:cg,scope:fg}=ie("popover-dialog"),nl=cg(sg(ug,fg,!1));function dg(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Al(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Yg,create:hg,scope:Ug}=ie("domain-provider"),ol=hg(dg()),gg={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 mg(e,t){return{inheritAttrs:!1,props:gg,setup(l,{slots:n}){if(ot&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,v)=>{if(d===null){a.set(p,{visible:null,callback:v});return}r.has(p)&&d.unobserve(p),r.set(p,{visible:null,callback:v}),d.observe(p)},u=p=>{if(d===null){a.delete(p);return}r.has(p)&&(r.delete(p),d.unobserve(p))};let s=l.initialVisibleObserverSize;yi({acquire:()=>{const p=s>0;return s--,p},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const g=(p,v,b)=>{d=new IntersectionObserver(f=>{for(let h of f){let A=!1;h.intersectionRatio>0&&(A=!0);const $=r.get(h.target);if($)try{if(l.loadPolicy==="lazy"&&!A&&$.visible!==null)return;$.visible=A,$.callback(A)}catch(T){console.error(T)}}},{root:p,rootMargin:v,threshold:b}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([p,v])=>{if(v||!p||d)return;let b=null;typeof p=="string"?b=document.querySelector(p):b=p,b&&g(b,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gg,create:yg,scope:Xg}=ie("rolling-provider"),ll=yg(mg()),pg=[Jn,eo,to,no,ro,Ce,uo,co,Vt,fo,ho,go,mo,yo,po,bo,wo,So,xo,To,Cn,Eo,No,ko,Io,Oo,Do,Vo,Fo,Ao,Mo,_o,qo,En,Po,jo,zo,Ho,Ko,Ft,gn,Wo,Yo,Uo,Go,Xo,tl,nl,ol,ll],bg=new Ga(pg,[Ja],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>S.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>S.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>S.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>S.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>S.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>S.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>S.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>S.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>S.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>S.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber}),Object.defineProperty(m,"FoxInputTag",{enumerable:!0,get:()=>S.ElInputTag}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>S.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>S.ElMain}),Object.defineProperty(m,"FoxMention",{enumerable:!0,get:()=>S.ElMention}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>S.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>S.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>S.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>S.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>S.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>S.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>S.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>S.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>S.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>S.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>S.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>S.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>S.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>S.ElWatermark}),m.AutocompleteItem=So,m.Broadcast=Yn,m.BroadcastKey=we,m.CascaderItem=wo,m.CheckboxItem=ko,m.Content=no,m.DataItemsKey=yt,m.DateItem=go,m.DateUtils=ze,m.DialogItem=qo,m.Domain=Jt,m.DomainKey=_e,m.DomainProvider=ol,m.FloatingButton=Go,m.FloatingWindow=tl,m.FooterBar=to,m.FoxAutocompleteItem=So,m.FoxCascaderItem=wo,m.FoxCheckboxItem=ko,m.FoxContent=no,m.FoxDateItem=go,m.FoxDialogItem=qo,m.FoxDomainProvider=ol,m.FoxFloatingButton=Go,m.FoxFloatingWindow=tl,m.FoxFooterBar=to,m.FoxGroup=ro,m.FoxGroupSetting=Vo,m.FoxHeaderBar=eo,m.FoxHintText=Vt,m.FoxIndicator=Wo,m.FoxInfiniteLoading=Ho,m.FoxInputItem=fo,m.FoxInputNumberItem=bo,m.FoxItem=Ce,m.FoxMapping=Ft,m.FoxMoneyItem=po,m.FoxMoreButton=Uo,m.FoxOverLay=En,m.FoxPage=Jn,m.FoxPopoverDialog=nl,m.FoxPopup=Po,m.FoxPrice=gn,m.FoxPullRefresh=Ko,m.FoxRadioItem=No,m.FoxRateItem=Io,m.FoxRollingProvider=ll,m.FoxRowItem=co,m.FoxSearchBar=zo,m.FoxSelectItem=ho,m.FoxSlotItem=uo,m.FoxStepsBar=_o,m.FoxSwitchItem=Oo,m.FoxTableItem=Eo,m.FoxTableMappingColumn=xo,m.FoxTableRadioColumn=To,m.FoxTableSetting=Cn,m.FoxTabsBar=Fo,m.FoxTabsContainer=Ao,m.FoxTabsPane=Mo,m.FoxText=Yo,m.FoxTimeItem=mo,m.FoxTimeSelectItem=yo,m.FoxToast=jo,m.FoxTour=Xo,m.FoxTreeSelectItem=Do,m.Group=ro,m.GroupSetting=Vo,m.HeaderBar=eo,m.HintText=Vt,m.Indicator=Wo,m.InfiniteLoading=Ho,m.InputItem=fo,m.InputNumberItem=bo,m.Item=Ce,m.Mapping=Ft,m.MoneyItem=po,m.MoreButton=Uo,m.OverLay=En,m.Page=Jn,m.PopoverDialog=nl,m.Popup=Po,m.Price=gn,m.PriorityPolicy=je,m.PullRefresh=Ko,m.RadioItem=No,m.RateItem=Io,m.RollingProvider=ll,m.RowItem=co,m.SearchBar=zo,m.SelectItem=ho,m.SlotItem=uo,m.StepsBar=_o,m.SwitchItem=Oo,m.TableItem=Eo,m.TableMappingColumn=xo,m.TableRadioColumn=To,m.TableSetting=Cn,m.TabsBar=Fo,m.TabsContainer=Ao,m.TabsPane=Mo,m.Text=Yo,m.TimeItem=mo,m.TimeSelectItem=yo,m.Toast=jo,m.Tour=Xo,m.TreeSelectItem=Do,m.UniqueID=Ul,m.ValidateSchema=Rl,m.ValidateSchemaKey=Ke,m.cancelRaf=da,m.clearNonNumber=$a,m.clone=zn,m.compareTo=_n,m.createBroadcast=Yt,m.createValidateSchema=Gt,m.debounce=Pe,m.debounceRef=Ba,m.decimalLength=El,m.default=bg,m.defineBroadcast=ka,m.defineConfigDomain=Al,m.defineDataItem=Ml,m.defineDomain=Gn,m.defineItem=ke,m.definePageState=Bl,m.defineSimpleItem=Ll,m.deleteGlobalValidator=Ra,m.disabledProperty=Me,m.divide=Bn,m.excludeProps=De,m.extend=ut,m.floatData=Na,m.getGlobalValidateCheckEvents=Ol,m.getGlobalValidateResetEvents=Vl,m.getPageContentAreaHeight=nn,m.getPageContentAreaWidth=on,m.getPageFooterAreaHeight=tn,m.getPageHeaderAreaHeight=en,m.getRootDomain=pt,m.hasSymbol=wl,m.includeProps=kl,m.indexOf=Ca,m.integerLength=Cl,m.isArray=ga,m.isArrayLike=xl,m.isBrowser=ot,m.isDate=pa,m.isESModule=va,m.isEmptyString=he,m.isEqual=et,m.isFunction=Pn,m.isHidden=Wt,m.isInnerPage=Pa,m.isMap=ma,m.isNil=Kn,m.isNumberString=$l,m.isObject=Qe,m.isPlainObject=jn,m.isPromise=bl,m.isRegExp=Wn,m.isSet=ya,m.isString=pl,m.isSubPage=ja,m.isSymbol=ba,m.isTouch=Lt,m.isWindow=Sl,m.lastIndexOf=Ea,m.makeArray=Ta,m.merge=Tl,m.multiply=gl,m.negate=ml,m.nextTick=Sa,m.numberFormat=zt,m.objectToString=vl,m.once=_a,m.overrideGlobalValidateHandler=Da,m.property=Fe,m.raf=qn,m.readonlyProperty=Ae,m.setGlobalValidateCheckEvents=Fa,m.setGlobalValidateHandler=Oa,m.setGlobalValidateMessages=Ma,m.setGlobalValidateResetEvents=Aa,m.setGlobalValidator=Va,m.throttle=La,m.toBoolean=ue,m.toNumber=Te,m.toPadding=Xe,m.toPx=me,m.toPxDesc=Ve,m.toTypeString=Ht,m.toValue=ge,m.tryTimes=Zt,m.typeOf=Kt,m.unNumberFormat=yl,m.updatePageState=Xn,m.useBroadcast=kt,m.useDomain=lt,m.useExpose=Se,m.useInnerSize=an,m.usePageState=Qt,m.usePosition=ao,m.useRawTouch=Bt,m.useRect=Jr,m.useSize=Qn,m.useTouch=Hf,m.valueLength=Nt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function jt(e,t="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=Oe(e),t=Oe(t),[e,t]=Vn(Oe(e),Oe(t)),l==1&&(n==1?e=Dn(e):t=Dn(t));let r=ul(e,t);return l?l==2?"-"+Oe(r):e.length<r.length?Oe(r.substring(1)):"-"+Oe(Dn(r)):Oe(r)}function Dn(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;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 ul(t,a)}function Oe(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 Vn(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[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"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function ul(e,t){[e,t]=Vn(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var ve=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ve||{});function Ct(e,t=0,l=ve.HALF_EVEN){if(l===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let s=a.substr(0,a.length-t);return e=s+"."+a.substr(a.length-t)+i,s=Ct(e,0,l),(n?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,cl(r[1],a,n,l)?(n?"-":"")+Rn(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 u=r[1].substring(t);return u&&cl(u,i,n,l)&&(i=Rn(i),i.length>t)?(n?"-":"")+Rn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function cl(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ve.DOWN||!l&&n===ve.FLOOR||l&&n===ve.CEILING)return!1;if(n===ve.UP||l&&n===ve.FLOOR||!l&&n===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Rn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;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 Fn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=Et(e),t=Et(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=Et(e.replace(".","")),t=Et(t.replace(".","")),e.length<t.length){let g=e;e=t,t=g}if(t=="0")return"0";let i=t.length,u=0,s=[],c=i-1,d="";for(let g=0;g<i;g++)s[g]=e.length-1;for(let g=0;g<2*e.length;g++){let p=0;for(let v=t.length-1;v>=c&&v>=0;v--)s[v]>-1&&s[v]<e.length&&(p+=parseInt(e[s[v]--])*parseInt(t[v]));p+=u,u=Math.floor(p/10),d=p%10+d,c--}return d=Et(ha(d,a)),l==1&&(d="-"+d),d}function ha(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 Et(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 An(e,t,l=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=Oe(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=Oe(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=Oe(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=Oe(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=Oe(e.replace(".","")))}let a=0,i=t.length,u="",s=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),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(l=l+2;a<=l;){let c=0;for(;parseInt(s)>=parseInt(t);)s=jt(s,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(n==1?"-":"")+Oe(Ct(u,l-2))}function Mn(e,t){return e=e.toString(),t=t.toString(),t=Ln(t),jt(e,t)}function Ln(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function fl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),dl(e),dl(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Mn(e,Fn(t,Ct(An(e,t),0,ve.FLOOR)));return l+n}function dl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function hl(e,t){let l=!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),l=!0),[e,t]=Vn(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]?l?-1:1:l?1:-1;return 0}class de{value;static RoundingModes=ve;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[l,n]=t.split(/[eE]/);l=Oe(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+Oe(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=de.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=de.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="",u=a;u>0;)u<l?(l=u,u=0):u-=l,i=t.substring(u,u+l)+(u<a-l&&u>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return de.getPrettyValue(this.value,t,l)}static round(t,l=0,n=ve.HALF_EVEN){if(t=de.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return Ct(t,l,n)}round(t=0,l=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new de(Ct(this.value,t,l))}static floor(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.FLOOR)}static ceil(t){return t=de.validate(t),t.indexOf(".")===-1?t:de.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new de(this.value):new de(this.value).round(0,ve.CEILING)}static add(t,l){return t=de.validate(t),l=de.validate(l),jt(t,l)}add(t){return new de(jt(this.value,t.getValue()))}static subtract(t,l){return t=de.validate(t),l=de.validate(l),Mn(t,l)}subtract(t){return new de(Mn(this.value,t.getValue()))}static multiply(t,l){return t=de.validate(t),l=de.validate(l),Fn(t,l)}multiply(t){return new de(Fn(this.value,t.getValue()))}static divide(t,l,n){return t=de.validate(t),l=de.validate(l),An(t,l,n)}divide(t,l){return new de(An(this.value,t.getValue(),l))}static modulus(t,l){return t=de.validate(t),l=de.validate(l),fl(t,l)}modulus(t){return new de(fl(this.value,t.getValue()))}static compareTo(t,l){return t=de.validate(t),l=de.validate(l),hl(t,l)}compareTo(t){return hl(this.value,t.getValue())}static negate(t){return t=de.validate(t),Ln(t)}negate(){return new de(Ln(this.value))}}function gl(e,t){return de.multiply(`${e}`,`${t}`)}function Bn(e,t,l=8){return de.divide(`${e}`,`${t}`,l)}function _n(e,t){return e=`${e}`,t=`${t}`,de.compareTo(e,t)}function ml(e){return de.negate(e)}function zt(e,t=-1,l=!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 u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),t!=-1&&(t<s.length?s=s.substring(0,t):l&&t>s.length&&(s=s.padEnd(t,"0")));let d;if(n>0){let g="",p=u.split("").reverse();for(let v=0;v<p.length;v++)g+=p[v]+((v+1)%n==0&&v+1!=p.length?r:"");s.length==0?d=`${i}${g.split("").reverse().join("")}`:d=`${i}${g.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function yl(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const qn=sl,ga=Array.isArray,ma=e=>Ht(e)==="[object Map]",ya=e=>Ht(e)==="[object Set]",pa=e=>e instanceof Date,Pn=e=>typeof e=="function",pl=e=>typeof e=="string",ba=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",bl=e=>Qe(e)&&Pn(e.then)&&Pn(e.catch),vl=Object.prototype.toString,Ht=e=>vl.call(e),jn=e=>Ht(e)==="[object Object]",wl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function va(e){return e.__esModule||wl&&e[Symbol.toStringTag]==="Module"}const wa=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ut(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let u=t[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},t[i]=ut(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function zn(e,t,l=!1){if(!l)ut(!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)&&!jn(i))continue;a=zn(a,i,l),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)&&!jn(i))continue;a=zn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Hn=wa?Promise.resolve():null;function Sa(e,...t){Hn!==null?t&&t.length>0?Hn.then(()=>{e(t)}):Hn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Te(e){return typeof e=="number"?e:Number(e)}const xa={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Kt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):xa[l]||"object"}function Sl(e){return e&&typeof e=="object"&&"setInterval"in e}function Wt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function xl(e){let t=!!e&&"length"in e&&e.length,l=Kt(e);return l==="function"||Sl(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Tl(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function Ta(e,t=[]){let l=t;return e!=null&&(xl(Object(e))?Tl(l,typeof e=="string"?[e]:e):l.push(e)),l}function et(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=Kt(e),n=Kt(t);if(l!==n)return!1;if(l==="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 u=r[i],s=e[u],c=t[u];if(!et(s,c))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!et(a,i))return!1}return!0}return!1}const ot=typeof window<"u";function Kn(e){return e==null}function Wn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const he=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function $l(e){return he(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),he(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Cl(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 l=t.indexOf(".");return l==-1?t.length:l}function El(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function Nl(e,t,l){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(l,"")}function $a(e,t=!0,l=!0){t?e=Nl(e,".",/\./g):e=e.replace(/\./g,""),l?e=Nl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ca(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(et(e,l))return!0}):t.indexOf(e)}function Ea(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(et(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function Nt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function kl(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function De(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const Na=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);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},we=Symbol.for("BroadcastKey");class Yn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,l,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:l,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(l=>{t.push(l)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,l){if(!l||l.messagingPolicy==="Once"&&l.resolved===!0)return!1;let n=!1;return!l.name||l.name==="*"||l.name==="+"||Wn(l.name)&&t&&l.name.test(t)?n=!0:typeof l.name=="function"?n=Reflect.apply(l.name,null,[t]):l.name===t&&(n=!0),n}trigger(t,l,n){let r=null;const a=this.callbacks.get(l);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[l]=="function"&&(r=Reflect.apply(i[l],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const l=t.getPersistantMessages();Array.isArray(l)&&l.length>0&&l.forEach(n=>{if(this.isMatched(this.name,n.matched))try{this.trigger(n.matched,n.action,n.args)}catch(r){console.error(r)}}),t=t.parent}}emit(t,l,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,l,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,l,n)){const i=t.resolve,u=t.uniqueId??"",s=(...c)=>{this.deletePersistantMessage(u),typeof i=="function"&&i(...c)};t.resolve=s}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):Wn(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(l);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...n]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[l]=="function"){const s=Reflect.apply(u[l],u,[...n]);s!=null&&a.push(s)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},l,...n]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(t,l,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,l,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,l,n)){const a=t.resolve,i=t.uniqueId??"",u=(...s)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...s)};t.resolve=u}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Yt(e,t,l,n){const r=new Yn(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ka(e,t,l){const n=l;if(n[we])return n[we];const r=o.inject(we,null),a=new Yn(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[we]=a,o.provide(we,a),o.onUnmounted(()=>{a.destroy(),n[we]=void 0}),a}function kt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[we]??o.inject(we,null):o.inject(we,null)}const ct=e=>e.default??e;class Ia{error(t,l){const n=l,r=l||o.hasInjectionContext()?kt(l):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=t||o.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=t||o.hasInjectionContext()?kt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=n||o.hasInjectionContext()?kt(n):null,i=l.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let It=new Ia;function Oa(e){It=e}function Da(e){It?Object.assign(It,e):It=e}function Va(e,t){ct(st).setValidator(e,t)}function Ra(e){ct(st).deleteValidator(e)}let Il=["blur","clear"];function Fa(e){Il=e}function Ol(){return Il}let Dl=["focus","change","setValue"];function Aa(e){Dl=e}function Vl(){return Dl}function Ma(e){ct(st).messages(e)}function Ot(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Ut(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 Ke=Symbol("ValidateSchemaKey");class Rl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,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=o.effectScope(!0),this.scope.run(()=>{o.watchEffect(()=>{const l=Ut(Ot(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),n.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};n.push(s)}}this.attrRules=Ut(n);const r=Ot(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=It;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,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,l,n=!1){n?ct(st).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?ct(st).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return ct(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 l=Ot(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ut(t):this.rules=Ut([t]);const n=Ot(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Ot(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},u=ct(st),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(g=>{if(g.pass)this.success();else{let p="error";Array.isArray(g.errors)&&g.errors.length>0&&(p=g.errors[0].message??p,g.errors=[g.errors[0]],g.errors[0].ref=c),this.error(p)}return g}).catch(g=>{const p=g.message??`${g}`;return this.error(p),g})}}return Promise.resolve({pass:!0})}}function Gt(e,t,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new Rl(t,l,e)}const Xt=Symbol.for("EventEmitterKey");class Fl{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function Pe(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function La(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function Ba(e,t){const l=Pe((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function _a(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function Zt(e,t,l,n=0,r=!0,a){let i=t,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>l){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>l){typeof a=="function"&&a(!1);return}i+=n,setTimeout(s,i)};setTimeout(s,i)}const _e=Symbol("DomainKey"),yt=Symbol("DataItemsKey");class Jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const qa=new Jt;function pt(){return qa}function lt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[_e]??o.inject(_e,null):o.inject(_e,null)}const Un=Symbol("OriginalDateKey");function Gn(e,t,l=[],n){const r=o.getCurrentInstance();let a=r?.proxy,i=o.inject(_e,null);i===null&&(i=pt());const u=e||t.prop||t.name;let s=new Jt(u);s.parent=i;const c=f=>{a[Un]||p(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,g=()=>a[Un]??null,p=f=>{const h={};ut(!0,h,o.toRaw(f)),a[Un]=h};o.isReactive(t)||typeof t=="function"?o.watch(t,f=>{s?.merge(f,l)},{immediate:!0}):s.merge(t,l),t.modelValue&&p(t.modelValue);const v=(f,h)=>{s?.set(f,h)},b=f=>s?.getForSelf(f)??null;if(a[_e]=s,o.provide(_e,s),r!==null){const f=o.inject(we,null),h=Yt(a,f,u,n);s.broadcast=h,a[we]=h,o.provide(we,h),a.broadcast=(T,q,...j)=>Reflect.apply(h.emit,h,[T,q,...j]);const A=o.inject(Ke,null),$=Gt(a,A,{componentName:""});s.validateSchema=$,a[Ke]=$,o.provide(Ke,$),a[yt]=new Map,a.validate=(T=!0)=>{const q=[];let j=null;const V={deep:!1};if(T===!0)j={name:"*"};else if(Array.isArray(T)&&T.length>0){const I=T;j={name:R=>R?I.indexOf(R)!==-1:!1}}else if(T!=null&&typeof T=="object"){const I=T;if(Object.assign(V,I),Array.isArray(I.include)&&I.include.length>0){const R=I.include;j={name:x=>x?R.indexOf(x)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const R=I.exclude;j={name:x=>x?R.indexOf(x)===-1:!1}}else j={name:"*"}}if(j){const I=h?.emitToChildren(j,"validate",V);I&&Reflect.apply([].push,q,I)}return q.length==1?q[0]:q.length>1?Promise.all(q).then(I=>{let R=[];return I.forEach(x=>{x.pass===!1&&Array.isArray(x.errors)&&(R=[...R,...x.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,q=!0,j=!1)=>{if(j===!0){Reflect.ownKeys(T).forEach(I=>{let R=String(I);const x={componentName:"",fieldName:R,pureDataValidate:!0};if(s){const z=Ml(s,R,x,h,$);a[yt].set(R,z);const y=T[R];y&&z.validateSchema.setRule(y)}});return}if(q){const V=Reflect.ownKeys(T),I={name:R=>V.includes(R),cachePolicy:"Persistant",uniqueId:"validateRules"};h?.emitToChildren(I,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let q=null;if(T===!0)q={name:"*"};else if(Array.isArray(T)&&T.length>0){const j=T;q={name:V=>V?j.indexOf(V)!==-1:!1}}else if(T!=null&&typeof T=="object"){const j=T;if(Array.isArray(j.include)&&j.include.length>0){const V=j.include;q={name:I=>I?V.indexOf(I)!==-1:!1}}else if(Array.isArray(j.exclude)&&j.exclude.length>0){const V=j.exclude;q={name:I=>I?V.indexOf(I)===-1:!1}}else q={name:"*"}}q&&h?.emitToChildren(q,"clearValidate",!1)},a.resetFields=T=>{const q=d();if(!q)return;const j={};if(ut(!0,j,g()??{}),Array.isArray(T))T.forEach(V=>{q[V]=j[V]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(I=>{q[I]=j[I]});else if(T&&Array.isArray(T.exclude)){let V=T.exclude??[];Reflect.ownKeys(j).forEach(I=>{V.includes(I)||(q[I]=j[I])})}else Object.assign(q,j);a.clearValidate(T)},a.setModelValue=(T,q)=>{if(!q||q===u)c(T);else{const j={name:q,messagingPolicy:"Once"};h?.emitToChildren(j,"setModelValue",T)}},a.getModelValue=()=>d(),a.setDomainProperty=(T,q)=>{v(T,q)},a.getDomainProperty=T=>b(T),setTimeout(function(){h?.pull()},0)}return o.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[Ke]=void 0,o.provide(Ke,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[we]=void 0,o.provide(we,null)),s?.destroy(),a[_e]=void 0,o.provide(_e,null),a[yt]&&(a[yt].clear(),a[yt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function Al(e,t,l=[]){let r=o.getCurrentInstance()?.proxy,a=o.inject(_e,null);a===null&&(a=pt());const i=e||t.prop||t.name;let u=new Jt(i);return u.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,s=>{u?.merge(s,l)},{immediate:!0}):u.merge(t,l),r[_e]=u,o.provide(_e,u),o.onUnmounted(()=>{u?.destroy(),r[_e]=void 0,o.provide(_e,null),u=null,r=null}),u}function ke(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(we,null);let u=Yt(r,i,a,l);r[we]=u,o.provide(we,u),r.broadcast=(b,f,...h)=>u?Reflect.apply(u.emit,u,[b,f,...h]):null;const s=o.inject(Ke,null);e.fieldName=e.fieldName??a;let c=Gt(r,s,e);r[Ke]=c,o.provide(Ke,c),r.validate=(b=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,A=!1;if(Array.isArray(b)&&b.indexOf(a)!==-1)A=!0,h=!0;else if(b&&typeof b=="object"){const $=b,T=$.ignoreDisabled??!0,q=$.ignoreReadonly??!0,j=$.ignoreHidden??!0;T===!0&&e.disabled===!0||q===!0&&e.readonly===!0||j===!0&&Wt(r.$el)?A=!1:(Array.isArray($.include)&&$.include.indexOf(a)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(a),A=!0),h=$.deep??!1}else typeof b=="boolean"&&(h=b),A=!0;if(A){const $=c?.validate();f.push($)}if(h){let $=null;const T={deep:!1};if(b===!0)$={name:"*"};else if(Array.isArray(b)&&b.length>0){const q=b;$={name:j=>j?q.indexOf(j)!==-1:!1}}else if(b!=null&&typeof b=="object"){const q=b;if(Object.assign(T,q),Array.isArray(q.include)&&q.include.length>0){const j=q.include;$={name:V=>V?j.indexOf(V)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const j=q.exclude;$={name:V=>V?j.indexOf(V)===-1:!1}}else $={name:"*"}}if($&&u){const q=u.emitToChildren($,"validate",T);Reflect.apply([].push,f,q)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then($=>{let T=[];return $.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(T=[...T,...q.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=b=>c?.setRule(b),r.setNameValidateRules=(b,f=!1)=>{const h=b[a];if(h&&c?.setRule(h),f&&u){const A={name:$=>Reflect.ownKeys(b).includes($)};u.emitToChildren(A,"setNameValidateRules",b,!1)}},r.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(b===!0)f={name:"*"};else if(Array.isArray(b)&&b.length>0){const h=b;f={name:A=>A?h.indexOf(A)!==-1:!1}}else if(b!=null&&typeof b=="object"){const h=b;if(Array.isArray(h.include)&&h.include.length>0){const A=h.include;f={name:$=>$?A.indexOf($)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;f={name:$=>$?A.indexOf($)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new Fl(r);r[Xt]=d;const g=Pe((b="validate")=>{c&&(b==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ol()).forEach(b=>{d&&d.on(b,f=>{g("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Vl()).forEach(b=>{d&&d.on(b,f=>{g("reset")})}),setTimeout(function(){u?.pull()},0),o.onUnmounted(()=>{u?.destroy(),r[we]=void 0,o.provide(we,null),u=null,c?.destroy(),r[Ke]=void 0,o.provide(Ke,null),c=null,d?.destroy(),r[Xt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(b,...f)=>{d&&Reflect.apply(d.emit,d,[b,...f])},onEvent:(b,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(b,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function Ml(e,t,l,n,r){const a={},i=t??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};l.fieldName=i,l.validateHandler={getValue(d){return u.getValue()}};let s=Gt({},r,l);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const g=[];let p=!1,v=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)v=!0,p=!0;else if(d&&typeof d=="object"){const b=d;Array.isArray(b.include)&&b.include.indexOf(i)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(i),v=!0,p=b.deep??!1}else typeof d=="boolean"&&(p=d),v=!0;if(v&&s){const b=s.validate();g.push(b)}if(p){let b=null;const f={deep:!1};if(d===!0)b={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;b={name:A=>A?h.indexOf(A)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const A=h.include;b={name:$=>$?A.indexOf($)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const A=h.exclude;b={name:$=>$?A.indexOf($)===-1:!1}}else b={name:"*"}}if(b&&c){const h=c.emitToChildren(b,"validate",f);Reflect.apply([].push,g,h)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(b=>{let f=[];return b.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const g=d[i];g&&s?.setRule(g)};let c=Yt(null,n,i,a);return o.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function Ll(){let t=o.getCurrentInstance()?.proxy,l=new Fl(t);return t[Xt]=l,o.onUnmounted(()=>{l?.destroy(),t[Xt]=void 0,l=null,t=null}),{emitEvent:(n,...r)=>{l&&Reflect.apply(l.emit,l,[n,...r])},onEvent:(n,r)=>{l&&Reflect.apply(l.on,l,[r])},offEvent:(n,r)=>{l&&Reflect.apply(l.off,l,[r])}}}const Ve=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${me(e,t)}px`:"";function me(e,t=-1){if(e==null)return 0;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 l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(ot){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*t;const n=Number(e);return isNaN(n)?0:n}const rt="PageStateKey";function Xe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=me(e.top)),e.left!==null&&e.left!==void 0&&(t.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=me(e.right))),t}function Xn(e,t,l={},n=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(l.headerHeight??t.headerHeight??-1),e.headerPadding=Xe(l.headerPadding??t.headerPadding),e.footerHeight=me(l.footerHeight??t.footerHeight??-1),e.footerPadding=Xe(l.footerPadding??t.footerPadding),e.contentPadding=Xe(l.contentPadding??t.contentPadding),n){const s=l.height??t.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(l.width??t.width??0,r)}}function Bl(e,t={}){const l={top:null,bottom:null,right:null,left:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},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=me(r.top),n.safeAreaBottom=me(r.bottom),n.safeAreaLeft=me(r.left),n.safeAreaRight=me(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Xn(n,a,t,!0,i,u,s,c);const d=o.reactive(n),g=e.getForParent(rt);g&&(n.height=nn(e,g),n.width=on(e,g),o.watch([()=>nn(e,g),()=>on(e,g)],([v,b])=>{d.height=v,d.width=b}));const p=!g;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([v,b,f=-1,h=-1,A=0,$=0])=>{Xn(d,b,t,p,f,h,A,$)}),e.set(rt,d),d}function Qt(e){return e.get(rt)}function en(e,t){if(t=t??e.get(rt),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function tn(e,t){if(t=t??e.get(rt),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function nn(e,t){if(t=t??e.get(rt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=en(e,t),n=tn(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function on(e,t){return t=t??e.get(rt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Pa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function ja(e){return!!e.getForParent(rt)}var je=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(je||{});function ln(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Fe(e,t,l=1,n){const r=lt();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let u=a.length-1;u>=0;u--){const s=a[u];if(ln(s,n))return s}const i=e.value;return ln(i,n)?i:null}):o.computed(()=>{const a=e.value;if(ln(a,n))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(ln(s,n))return s}return null})}function Ae(e){return Fe(e,"readonly",1)}function Me(e){return Fe(e,"disabled",1)}function ge(e,t="modelValue",l=null,n){const r=o.toRef(e,t);let a=r.value;typeof l=="function"&&(a=l(r.value));const i=o.ref(a);return o.watch(r,u=>{if(typeof l=="function"){const s=l(u);s!==i.value&&(i.value=s,n&&n("setValue",s))}else u!==i.value&&(i.value=u,n&&n("setValue",u))}),i}const _l=new Map,rn=new Map;let Zn=null;function za(e){Zn=e}function ql(e,t,l){if(l){let n=rn.get(l);n||(n=new Map,rn.set(l,n)),n.set(e,t)}else _l.set(e,t)}function We(e,t,l){!l&&Zn&&(l=Zn(e)??void 0);let n=null;if(l){let r=rn.get(l);r&&(n=r.get(t))}return n||(n=_l.get(t)),n}function Ha(e,t){for(let l in e){const n=e[l];ql(l,n,t)}}function Ka(e){rn.delete(e)}function Wa(){return{top:0,left:0,bottom:0,right:0}}function Ya(){if(ot){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:t,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Ua(e,t){if(t.componentPrefix){const l=e.indexOf("-");return`${t.componentPrefix}${e.slice(l)}`}return e}class Ga{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Ua(a.name,l);t.component(i,a)}}),this.installers.forEach(a=>{a(t,l)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=pt();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Pe(()=>{const u={...l},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},120);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=ut({},Wa(),t.safeAreaInset),i=Ya(),u=ut({},i.pageLayout,t.pageLayout);l=l??pt(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",u),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){za(t)}setAPI(t,l,n){ql(t,l,n)}getAPI(t,l,n){return We(t,l,n)}batchSetAPI(t,l){Ha(t,l)}clearScopeAPI(t){Ka(t)}getRootDomain(){return pt()}}const Xa=[S.ElAffix,S.ElAlert,S.ElAutocomplete,S.ElAutoResizer,S.ElAvatar,S.ElBacktop,S.ElBadge,S.ElBreadcrumb,S.ElBreadcrumbItem,S.ElButton,S.ElButtonGroup,S.ElCalendar,S.ElCard,S.ElCarousel,S.ElCarouselItem,S.ElCascader,S.ElCascaderPanel,S.ElCheckTag,S.ElCheckbox,S.ElCheckboxButton,S.ElCheckboxGroup,S.ElCol,S.ElCollapse,S.ElCollapseItem,S.ElCollapseTransition,S.ElColorPicker,S.ElConfigProvider,S.ElContainer,S.ElAside,S.ElFooter,S.ElHeader,S.ElMain,S.ElDatePicker,S.ElDescriptions,S.ElDescriptionsItem,S.ElDialog,S.ElDivider,S.ElDrawer,S.ElDropdown,S.ElDropdownItem,S.ElDropdownMenu,S.ElEmpty,S.ElForm,S.ElFormItem,S.ElIcon,S.ElImage,S.ElImageViewer,S.ElInput,S.ElInputNumber,S.ElLink,S.ElMenu,S.ElSubMenu,S.ElMenuItem,S.ElMenuItemGroup,S.ElPageHeader,S.ElPagination,S.ElPopconfirm,S.ElPopover,S.ElPopper,S.ElProgress,S.ElRadio,S.ElRadioButton,S.ElRadioGroup,S.ElRate,S.ElResult,S.ElRow,S.ElScrollbar,S.ElSelect,S.ElOption,S.ElOptionGroup,S.ElSelectV2,S.ElSkeleton,S.ElSkeletonItem,S.ElSlider,S.ElSpace,S.ElSteps,S.ElStep,S.ElSwitch,S.ElTable,S.ElTableColumn,S.ElTableV2,S.ElTabs,S.ElTabPane,S.ElTag,S.ElTimePicker,S.ElTimeSelect,S.ElTimeline,S.ElTimelineItem,S.ElTooltip,S.ElTransfer,S.ElTree,S.ElTreeSelect,S.ElTreeV2,S.ElUpload,S.ElStatistic,S.ElCountdown,S.ElSegmented,S.ElAnchor,S.ElAnchorLink,S.ElWatermark,S.ElMessageBox,S.ElMessage,S.ElNotification],Za=[S.ElInfiniteScroll,S.ElLoading,S.ElMessage,S.ElMessageBox,S.ElNotification,S.ElPopoverDirective],Ja=(e,t={})=>{const l=t.componentPrefix??"fox",n=l[0].toUpperCase()+l.slice(1);Xa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Za.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function Se(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.proxy;Object.assign(l,e)}}const $e={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},Re={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}},Pl={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}},jl={name:{type:String,required:!1},prop:{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}},zl=[];for(const e in jl)zl.push(e);const Qa=Symbol.for("InnerPageScopeKey"),ei={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}},ti=(e,t)=>({inheritAttrs:!0,props:{...$e,...Pl,...ei},setup(l,{slots:n}){const r=Gn(l.name,l),a=o.inject(Qa,!1);if(r){const d=Bl(r,l);Se({getPageContentHeight:()=>nn(r,d),getPageContentWidth:()=>on(r,d),getPageHeaderHeight:()=>en(r,d),getPageFooterHeight:()=>tn(r,d)}),d&&a&&(d.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),u=o.computed(()=>({})),s=o.getCurrentInstance(),c=(d,g=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(d,!0,g)};return o.watch([()=>l.rules,()=>l.pureDataRules],([d,g],[p,v])=>{if(d&&p){const b=o.toRaw(p),f=o.toRaw(d),h=f?Reflect.ownKeys(f):[];(b?Reflect.ownKeys(b):[]).forEach($=>{h.includes($)||(f[$]=[])}),c(f)}if(g&&v){const b=o.toRaw(v),f=o.toRaw(g),h=f?Reflect.ownKeys(f):[];(b?Reflect.ownKeys(b):[]).forEach($=>{h.includes($)||(f[$]=[])}),c(f,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const d=o.toRaw(l.rules);c(d)}if(l.pureDataRules){const d=o.toRaw(l.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return o.h("div",d,[n?.default?.()])}}}),{componentName:ni,create:oi,scope:xg}=ie("page"),Jn=oi(ti(ni));function Qn(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function an(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const li=(e,t,l,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:l},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=lt(),u=i?Qt(i):null;u&&(u.headerMounted=!0);const s=e,c=o.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=o.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),g=r.height!==null&&r.height!==void 0?me(r.height):null,p=o.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const _=Xe(r.padding??u.headerPadding);return Object.assign(y,_),g&&(u.headerHeight=g),u.headerHeight>0&&(y.height=u.headerHeight),y.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(_.top??0),y.height&&y.height>0&&(y.height=y.height+y.safeAreaTop)),y}if(g&&(y.height=g),r.padding){const _=Xe(r.padding);Object.assign(y,_)}return y}),v=o.ref(null),b=()=>{if(u&&v.value&&!Wt(v.value)){if(!n){const y=Qn(v.value);u.headerAllHeight=y.height}return u.headerMounted=!0,!0}return!1},f=Pe(b,120);let h=null;o.onMounted(()=>{u&&(Zt(b,50,5,50,!0),window.ResizeObserver&&v.value&&(h=new window.ResizeObserver(f),h.observe(v.value)))}),o.onUnmounted(()=>{u&&(u.headerMounted=!1,h&&(h.disconnect(),h=null))});const A=o.computed(()=>{const y={};return p.value.height!==null&&p.value.height!==void 0&&(y.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(y.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(y.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(y.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(y.paddingBottom=`${p.value.bottom}px`),y}),$=o.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function T(){a.emit("back")}function q(){a.emit("click-title")}function j(){a.emit("click-right")}function V(){a.emit("click-right-text")}const I=()=>{if(!r.leftShow)return null;const y=[];if(a.slots.left)y.push(a.slots.left());else{if(a.slots.leftIcon){const _=o.h("view",{class:"left-icon",onClick:T},[a.slots.leftIcon()]);y.push(_)}else if(r.leftIcon){const _=o.h("view",{class:"left-icon",onClick:T},[o.h(r.leftIcon)]);y.push(_)}if(r.leftText){const _=o.h("view",{class:"left-text",onClick:T},[r.leftText]);y.push(_)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__left"},y)},R=()=>{if(!r.rightShow)return null;const y=[];if(a.slots.right)y.push(a.slots.right());else{if(r.rightText){const _=o.h("view",{class:"right-text",onClick:V},[r.rightText]);y.push(_)}if(a.slots.rightIcon){const _=o.h("view",{class:"right-icon",onClick:j},[a.slots.rightIcon()]);y.push(_)}else if(r.rightIcon){const _=o.h("view",{class:"right-icon",onClick:j},[o.h(r.rightIcon)]);y.push(_)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__right"},y)},x=()=>{if(!r.titleShow)return null;const y=[],_=a.slots.default?a.slots.default():null;if(_)y.push(_);else{if(r.title){const J=o.h("view",{class:"title-text"},[r.title]);y.push(J)}if(a.slots.titleIcon){const J=o.h("view",{class:"title-icon",onClick:q},[a.slots.titleIcon()]);y.push(J)}else if(r.titleIcon){const J=o.h("view",{class:"title-icon",onClick:q},[o.h(r.titleIcon)]);y.push(J)}}return y.length===0?null:o.h("view",{class:"fox-header-bar__title"},y)},z=()=>{const y=[],_=a.slots.bottom?a.slots.bottom():null;return _&&y.push(_),y.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},y)};return()=>{if(!$.value)return null;const y=[];if(a.slots.all)y.push(a.slots.all());else{const J=[],B=I();B&&J.push(B);const N=x();N&&J.push(N);const M=R();if(M&&J.push(M),J.length>0){const G=o.h("view",{class:d.value},J);y.push(G)}const P=z();P&&y.push(P)}if(y.length===0)return null;const _={class:c.value,style:A.value,ref:v};return o.h("view",_,y)}}}),{componentName:ri,create:ai,scope:ii}=ie("header-bar"),eo=ai(li(ri,ii,Ie.ArrowLeft));function si(e,t,l=!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=lt(),i=a?Qt(a):null,u=o.computed(()=>{const f=e;return{[f]:!0,[`${f}--${n.align}`]:!0,[`${f}--border`]:n.border,[`${f}--fixed`]:n.fixed,[`${f}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),s=n.height!==null&&n.height!==void 0?me(n.height):null,c=o.computed(()=>{const f={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Xe(n.padding??i.footerPadding);return Object.assign(f,h),s&&(i.footerHeight=s),i.footerHeight>0&&(f.height=i.footerHeight),f.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,f.safeAreaBottom>0&&(f.bottom=f.safeAreaBottom+(h.bottom??0),f.height&&f.height>0&&(f.height=f.height+f.safeAreaBottom)),f}if(s&&(f.height=s),n.padding){const h=Xe(n.padding);Object.assign(f,h)}return f}),d=o.ref(null),g=()=>{if(i&&d.value&&!Wt(d.value)){if(!l){const f=Qn(d.value);i.footerAllHeight=f.height}return i.footerMounted=!0,!0}return!1},p=Pe(g,120);let v=null;o.onMounted(()=>{i&&(Zt(g,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(p),v.observe(d.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const b=o.computed(()=>{const f={};return c.value.height!==null&&c.value.height!==void 0&&(f.height=Ve(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(f.paddingTop=Ve(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(f.paddingLeft=Ve(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(f.paddingRight=Ve(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(f.paddingBottom=Ve(c.value.bottom)),f});return()=>{const f=r.slots.default?r.slots.default():[],h={ref:d,class:u.value,style:b.value};return o.h("view",h,f)}}}}const{componentName:ui,create:ci,scope:Tg}=ie("footer-bar"),to=ci(si(ui));function fi(e,t){return{props:{padding:{type:[Object],required:!1},tag:{type:[String],required:!1,default:()=>"div"}},setup(l,{slots:n,attrs:r}){const a=lt(),i=o.computed(()=>({[e]:!0})),u=a?Qt(a):null,s=o.computed(()=>{const v={};if(a&&u){if(l.padding){const j=Xe(l.padding);Object.assign(u.contentPadding,j)}const b=en(a,u),f=tn(a,u);let h="";u.contentHeight?h=`${u.contentHeight}`:h=`${u.height}px`,v.height=h;let A=(u&&u.contentPadding&&u.contentPadding.top)??-1;(A>=0||b>0)&&(A=A<0?0:A,v.paddingTop=`${b+A}px`);let $=(u&&u.contentPadding&&u.contentPadding.bottom)??-1;($>=0||f>0)&&($=$<0?0:$,v.paddingBottom=`${f+$}px`);const T=(u&&u.contentPadding&&u.contentPadding.left)??-1;T>=0&&(v.paddingLeft=`${T}px`);const q=(u&&u.contentPadding&&u.contentPadding.right)??-1;return q>=0&&(v.paddingRight=`${q}px`),v}if(l.padding){const b=Xe(l.padding);b.left&&(v.paddingLeft=`${b.left}px`),b.top&&(v.paddingTop=`${b.top}px`),b.right&&(v.paddingRight=`${b.right}px`),b.bottom&&(v.paddingBottom=`${b.bottom}px`)}return v}),c=o.ref(null),d=()=>{if(u&&c.value){const v=an(c.value);u.contentInnerHeight=v.height,u.contentInnerWidth=v.width}},g=Pe(d,120);let p=null;return o.onMounted(()=>{requestAnimationFrame(d),window.ResizeObserver&&c.value&&(p=new window.ResizeObserver(g),p.observe(c.value))}),o.onUnmounted(()=>{p&&(p.disconnect(),p=null)}),()=>{const v=l.tag??"view",b={...r,ref:c,class:i.value,style:s.value};return o.h(v,b,n)}}}}const{componentName:di,create:hi,scope:$g}=ie("content"),no=hi(fi(di)),bt="GroupStateKey",Hl=Symbol.for("GroupScopeKey");function sn(){return o.inject(Hl,!1)}function un(e=!0){o.provide(Hl,e)}function gi(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Kn(r)||(e[n]=r)})}function mi(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};gi(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(bt,a),a}function oo(e,t,l=-1,n=-1,r=!1,a,i,u){const s=e.get(bt);if(!s)return;const c=e.get("groupLayout")??{};l===-1&&(l=c.column??1),n===-1&&(n=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),g=me(i);u||(u=c.type??"grid");const p=()=>{const v=t===""||t===-1,b=me(t);let f=Te(l);const h=me(n);if(!v){let T=(b-(f-1)*h)/f;for(;g!==-1&&T>g;)f++,T=(b-(f-1)*h)/f;for(;d!==-1&&f>1&&T<d;)f--,T=(b-(f-1)*h)/f}let A=!1;const $=s.layout;$.value.width=t,$.value.column!==f&&($.value.column=f,A=!0),$.value.gutter!==h&&($.value.gutter=h,A=!0),$.value.type!==u&&($.value.type=u,A=!0),A&&o.triggerRef($)};if(r)p();else{const v=++s.passport;setTimeout(()=>{v===s.passport&&p()},50)}}function cn(e,t=!1){let l;return t?l=e.getForParent(bt):l=e.get(bt),l.layout}function fn(e,t=!1){let l;return t?l=e.getForParent(bt):l=e.get(bt),l.order}function Kl(e,t=1){if(t==="stretch")return-1;const l=Te(t);return l===-1?100:100*l/e}function dn(e,t,l=1,n=0,r){const a={};let i=0;r?i=me(r):i=Kl(t.column,l),i>0&&(a.width=`${i}%`);const u=Kl(t.column,n);u>0&&(a["margin-left"]=`${u}%`);const s=t.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function hn(e,t,l=1,n=0){if(l==="stretch"){const s=e.index%t.column,c=s+(t.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=Te(l);if(r===-1){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}const a=Te(n)%t.column;let i=(e.index+a)%t.column,u=i+r;return u>t.column?(i=0,u=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 Wl=Symbol("RollingStateKey");function yi(e){o.provide(Wl,e)}function pi(){return o.inject(Wl,null)}function lo(e){let t=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function bi(e){let t=lo(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=lo(l),document.body.removeChild(l)}return t}function vi(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const wi={...$e,...Pl,...jl};function Si(e,t,l){return{props:wi,emits:["update:collapse","header-click"],setup(n,r){const a=Gn(n.prop??n.name,n,zl),i=mi(a,{type:n.type}),u=sn();un(!0);const s=n.rollingDisplay?pi():null,c=o.ref(null),d=o.computed(()=>n.rollingDisplay?s&&!s.disabled:!1),g=o.computed(()=>u&&a?cn(a,!0).value:null),p=o.getCurrentInstance(),v=(k,W=!1)=>{const Z=p?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(k,!0,W)};o.watch([()=>n.rules,()=>n.pureDataRules],([k,W],[Z,O])=>{if(k&&Z){const K=o.toRaw(Z),X=o.toRaw(k),le=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{le.includes(fe)||(X[fe]=[])}),v(X)}if(W&&O){const K=o.toRaw(O),X=o.toRaw(W),le=X?Reflect.ownKeys(X):[];(K?Reflect.ownKeys(K):[]).forEach(fe=>{le.includes(fe)||(X[fe]=[])}),v(X,!0)}},{deep:!0});const b=e,f=o.computed(()=>{const k={};k.height=N.value;const W=u?fn(a,!0):null;if(g.value&&W){if(g.value.type==="grid"){const Z=hn(W,g.value,n.span,n.offset);Object.assign(k,Z)}else if(g.value.type==="flow"){const Z=dn(W,g.value,n.span,n.offset,n.width);Object.assign(k,Z)}}else if(n.width){const Z=Ve(n.width);k.width=Z}return k}),h=o.computed(()=>{const k=i.layout.value.type;return k==="grid"||k==="flow"?{[`${b}--${k}`]:!0,[`${b}--${k}-justify-${n.justify}`]:!0,[`${b}--${k}-align-${n.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${k}`]:!0,[`${b}--gutter`]:!0}}),A=o.computed(()=>{if(i.layout.value.type==="grid"){let W="";if(n.columnWidth)W=`repeat(auto-fill, ${n.columnWidth})`;else{const Z=vi(R.value,i.layout.value.column,i.layout.value.gutter);W=`repeat(${i.layout.value.column}, ${Z})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":W}}}),$=o.toRef(n,"gutter"),T=o.toRef(n,"column"),q=o.computed(()=>u||d.value?!0:ue(n.isWrap)),j=[],V=k=>{j.push(k)},I=()=>{let k=j.length;j.splice(0,k)},R=o.ref(-1),x=k=>{const W=an(k).width;W>0&&W!==R.value&&(R.value=W)};oo(a,R.value,T.value,$.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([R,T,$],([k,W,Z])=>{i.order.index=0,oo(a,k,W,Z,!1,n.minItemWidth,n.maxItemWidth,n.type)});const z=o.computed(()=>M.value?n.expandText??"":n.collapseText??""),y=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),J=o.ref(),B=o.ref(),N=o.computed(()=>P.value||Ve(n.height)||""),M=o.ref(!1),P=o.ref(""),G=o.ref(!1);let ee=-1;const L=(k,W=!0)=>{const Z=J.value;if(Z&&M.value!==k){if(ee=ee===-1?bi(Z):ee,G.value=!0,W)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.ontransitionend=null,this.style["will-change"]="auto",k||(P.value="",G.value=!1)},k){let O=0;n.collapseHeight?O=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(O=B.value.offsetHeight),P.value=`${ee}px`,o.nextTick(()=>{P.value=`${O}px`})}else P.value=`${ee}px`;else if(k){let O=0;n.collapseHeight?O=n.collapseHeight:B.value&&B.value.classList.contains(`${e}__header`)&&(O=B.value.offsetHeight),P.value=`${O}px`}else G.value=!1,P.value=`${ee}px`;M.value=k,r.emit("update:collapse",k)}};o.watch(()=>n.collapse,k=>{L(k)});const ne=k=>{r.emit("header-click",k)},E=()=>{C()},C=k=>{k=k??!M.value,L(k)};Se({toggleCollapse:C,doLayout:()=>{j[0]&&(x(j[0]),oo(a,R.value,T.value,$.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,w=!0;const H=k=>{if(n.rules){const W=o.toRaw(n.rules);v(W)}if(n.pureDataRules){const W=o.toRaw(n.pureDataRules);v(W,!0)}if(ot&&(k&&L(ue(n.collapse),!1),n.autoLayout&&Array.isArray(j)&&j.length>0)){const W=j[0];if(x(W),window.ResizeObserver){const Z=Pe(()=>x(W),120);D=new window.ResizeObserver(Z),D.observe(W)}}},Q=()=>{D?.disconnect(),D=null},oe=!d.value||s?.acquire();oe&&(c.value=d.value?!0:null),o.onMounted(()=>{if(oe&&(H(w),w=!1),d.value&&s){let k=null,W=s.initialHeight;s.observe(J.value,Z=>{if(Z!==c.value)if(Z)c.value=!0,M.value||(P.value=""),k=setTimeout(()=>{k=null,c.value!==!1&&(H(w),w=!1)},100);else{if(k!==null&&clearTimeout(k),c.value=!1,!M.value)if(w)P.value=s.initialHeight;else{let O=lo(J.value);O<=0?P.value=W:(P.value=`${O}px`,W=P.value)}w||Q()}})}}),o.onUnmounted(()=>{D?.disconnect(),s&&s.unobserve(J.value)});const U=(k="right")=>{const W=[];if(z.value){const K={class:y.value},X=o.h("span",K,[z.value]);W.push(X)}const Z={class:_.value},O=l(n.collapseIcon,Z);return O&&W.push(O),W.length>0?o.h("div",{class:{[`${b}__header-collapse`]:!0,[`is-${k}`]:!0},onClick:E},W):null},Y=(k,W,Z,O)=>{const K={...h.value};return W===0&&(K[`${b}__first`]=!0),Z>=O-1&&(K[`${b}__last`]=!0),o.h("div",{ref:V,key:`${W}`,class:K,style:A.value},k)};return()=>{if(d.value&&c.value!==!0){const K=n.tag||"div";return o.h(K,{ref:J,prop:n.name,class:{[`${b}`]:!0,"is-collapse":G.value},style:f.value},[])}i.order.index=0;const k=[];let W=0;if(r.slots.header){const K={key:`${W++}`,ref:B,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ne},X=o.h("div",K,[r.slots.header()]);k.push(X)}else{const K=[],X=n.collapsePosition==="left";if(X&&n.showCollapse){const le=U("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${b}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const ce=o.h("div",le);K.push(ce)}if(r.slots.title){const le=o.h("div",{class:{[`${b}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=o.h("div",{class:{[`${b}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!X&&n.showCollapse){const le=U("right");le&&K.push(le)}if(K.length>0){const le={key:`${W++}`,ref:B,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ne},ce=o.h("div",le,K);k.push(ce)}}I();const Z=r.slots.default?r.slots.default():[],O=i.layout.value.type;if(O==="grid"){const K=Y(Z,W++,0,Z.length);k.push(K)}else if(O==="flow"){const K=Y(Z,W++,0,Z.length);k.push(K)}else for(let K=0;K<Z.length;K++){const X=Z[K],le=Y([X],W++,K,Z.length);k.push(le)}if(q.value){const K=n.tag||"div";return o.h(K,{ref:J,prop:n.name,class:{[`${b}`]:!0,"is-collapse":G.value},style:f.value},[k])}else return k}}}}const{componentName:xi,create:Ti,scope:$i}=ie("group"),ro=Ti(Si(xi,$i,(e,t)=>(e=e??Ie.ArrowUp,o.h(S.ElIcon,t,{default:()=>[o.h(e)]}))));function Ci(e){return e===window}const Ei=/matrix\((.+)\)/,ao=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(Ci(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=Ei.exec(c);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}r=r.parentNode}return l-=a,n-=i,l+=u,n+=s,{x:l,y:n}};class Ni{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ki{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new Ni,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Dt=new ki,Yl={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:Ii,create:Oi}=ie("price"),Di=Oi({props:{...Yl},setup(e){const t=o.computed(()=>({[Ii]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>Nt(e.price)==0?"":zt(e.price,e.decimalLength,!0,Te(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),Ye=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Vi=["innerHTML"],Ri=["innerHTML"];function Fi(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Vi)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ri)):o.createCommentVNode("",!0)],2)}const gn=Ye(Di,[["render",Fi]]),{componentName:io,create:Ai}=ie("hint-text"),Mi=Ai({components:{Price:gn},props:{...Yl,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 l=o.ref({top:null,right:null,bottom:null,left:null}),n=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),u=o.ref(!1),s=o.ref(null),c=(y,_,J,B,N,M)=>{const P=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,ee=y.split("-");let L=[];ee[0]==="top"?L=["top","bottom","right","left"]:ee[0]==="bottom"?L=["bottom","top","right","left"]:ee[0]==="left"?L=["left","top","bottom","right"]:ee[0]==="right"&&(L=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},E=[];for(let C=0;C<L.length;C++){const F=L[C];if(E[0]=F,ee[1]&&(E[1]=ee[1]),F==="top"){const D=_.y-M-e.arrowSize-e.offset;if(D>=0){ne.top=D;let w=0;ee[1]==="start"?w=_.x:ee[1]==="end"?w=_.x+J-N:w=_.x+J/2-N/2;const H=P-w-N;H<0?(w+=H,g.value=-H):g.value=0,ne.left=w<0?0:w;break}}else if(F==="bottom"){const D=_.y+B+e.arrowSize+e.offset;if(D+M<=G){ne.top=D;let w=0;ee[1]==="start"?w=_.x:ee[1]==="end"?w=_.x+J-N:w=_.x+J/2-N/2;const H=P-w-N;H<0?(w+=H,g.value=-H):g.value=0,ne.left=w<0?0:w;break}}else if(F==="left"){const D=_.x-N-e.arrowSize-e.offset;if(D>=0){ne.left=D;let w=0;ee[1]==="start"?w=_.y:ee[1]==="end"?w=_.y+B-M:w=_.y+B/2-M/2,ne.top=w<0?0:w;break}}else if(F==="right"){const D=_.x+J+e.arrowSize+e.offset;if(D+N<=P){ne.left=D;let w=0;ee[1]==="start"?w=_.y:ee[1]==="end"?w=_.y+B-M:w=_.y+B/2-M/2,ne.top=w<0?0:w;break}}}return{bestPlacement:E.join("-"),bestInsetRect:ne}},d=(y,_,J=10)=>{if(!ot||_===!1||!y)return;n.value=ao(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const B=s.value.offsetHeight,N=s.value.offsetWidth,{bestPlacement:M,bestInsetRect:P}=c(e.placement,n.value,r.value,a.value,N,B);i.value=M,l.value=P,u.value=!0},g=o.ref(0),p=Pe(()=>{d(e.message,e.visible)},10),v=o.ref(e.visible);o.watch(()=>e.visible,y=>{v.value=y});const b=o.computed(()=>v.value&&f.value),f=o.ref(!0),h=Pe(y=>{const _=y[0];_&&(f.value=_.isIntersecting)},10),A=new IntersectionObserver(h);o.watch([()=>e.message,()=>e.visible],([y,_])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Dt.watch(e.reference,p),A.observe(e.reference)}),o.onBeforeUnmount(()=>{Dt.unwatch(e.reference,p),A.unobserve(e.reference),A.disconnect()});const $=o.computed(()=>{const y={[io]:!0};return i.value.startsWith("top")?y["is-top"]=!0:i.value.startsWith("right")?y["is-right"]=!0:i.value.startsWith("bottom")?y["is-bottom"]=!0:i.value.startsWith("right")&&(y["is-right"]=!0),e.size==="small"?y["is-small"]=!0:e.size==="large"&&(y["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(y[`${e.customClass}`]=!0),y}),T=o.computed(()=>{const y={};l.value.top!==null&&(y.top=`${l.value.top}px`),l.value.right!==null&&(y.right=`${l.value.right}px`),l.value.bottom!==null&&(y.bottom=`${l.value.bottom}px`),l.value.left!==null&&(y.left=`${l.value.left}px`),e.autoFit&&(y["min-width"]=`${r.value}px`);const _=document.documentElement.clientWidth||document.body.clientWidth;return y["max-width"]=`${_}px`,u.value&&(y.opacity="1"),e.transition||(y.transition="none"),e.zIndex&&(y["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(y,e.customStyle),y}),q=o.computed(()=>{const y=[`${io}__content`];return e.customTextClass&&y.push(e.customTextClass),y}),j=o.computed(()=>{const y={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(y,e.customTextStyle),y}),V=o.computed(()=>({[`${io}__arrow`]:!0})),I=o.computed(()=>{const y={};return e.showArrow?(y.width=`${e.arrowSize}px`,y.height=`${e.arrowSize}px`,i.value==="top"?(y.left="50%",y.bottom=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="top-start"?(y.left=`${e.arrowOffset+g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(y.right=`${e.arrowOffset-g.value}px`,y.bottom=`-${e.arrowSize}px`):i.value==="right"?(y.left=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="right-start"?(y.left=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="right-end"?(y.left=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(y.left="50%",y.top=`-${e.arrowSize}px`,y.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(y.left=`${e.arrowOffset+g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(y.right=`${e.arrowOffset-g.value}px`,y.top=`-${e.arrowSize}px`):i.value==="left"?(y.right=`-${e.arrowSize}px`,y.top="50%",y.transform=" translate(0%, -50%)"):i.value==="left-start"?(y.right=`-${e.arrowSize}px`,y.top=`${e.arrowOffset}px`):i.value==="left-end"&&(y.right=`-${e.arrowSize}px`,y.bottom=`-${e.arrowOffset}px`),y):{display:"none"}}),R=o.computed(()=>b.value&&e.closeOnClick),x=o.computed(()=>{const y={};return e.zIndex&&(y["z-index"]=`${e.zIndex}`),y});return{show:b,tipRef:s,classes:$,styles:T,textClasses:q,textStyles:j,arrowClasses:V,arrowStyles:I,overlayShow:R,overlayStyle:x,onClickOverlay:()=>{v.value=!1,t.emit("update:visible",!1)}}}}),Li=["innerHTML"];function Bi(e,t,l,n,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Li))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const Vt=Ye(Mi,[["render",Bi]]);class Ul{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 so={},_i=new Ul,vt=new Map,mn=e=>{if(e){const t=document.getElementById(e);vt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of vt.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}vt.clear()}},qi=e=>{e.unmount=mn;const t=document.getElementById(e.id);if(t){const l=vt.get(e.id);l?e={...so,...l,...e}:e={...so,...e},e.transition=!1;const n=o.createVNode(Vt,e);o.render(n,t)}return e.id},Pi=e=>{e.unmount=mn;let t=e.id??`hinttext_${_i.get()}`;e={...so,...e},e.id=t,vt.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode(Vt,e);return o.render(n,l),document.body.appendChild(l),t},ji=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Le={show(e,t,l={},n=!0){ji(t);const r=l.id;return r&&vt.has(r)?qi({...l,message:t,reference:e}):(n&&mn(),Pi({...l,message:t,reference:e}))},hide(e){mn(e)},install(e){e.config.globalProperties.$hintText=Le}};function zi(e,t,l,n=!1){return{inheritAttrs:!0,props:{...$e,...Re},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;ke({componentName:e,validate:!1},i);const u=lt(),s=sn();un(!1);const c=o.computed(()=>s&&u?cn(u,!1).value:null),d=e,g=o.ref(null),p=o.computed(()=>{const O={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(O[r.errorMarkClass]=!!M.value,O[r.warnMarkClass]=!!B.value,O[r.infoMarkClass]=!!_.value,typeof g.value=="function"){const K=g.value(i);O[K]=!0}else if(typeof g.value=="string"){const K=g.value;O[K]=!0}return O}),v=o.ref(null),b=o.computed(()=>{const O={};if(r.width)r.width!=="auto"&&(O.width=Ve(r.width));else{const K=s&&u?fn(u,!1):null;if(c.value&&K){if(c.value.type==="grid"){const X=hn(K,c.value,r.span,r.offset);Object.assign(O,X)}else if(c.value.type==="flow"){const X=dn(K,c.value,r.span,r.offset,r.width);Object.assign(O,X)}}}if(typeof v.value=="function"){const K=v.value(i);K&&Object.assign(O,K)}else if(v.value&&typeof v.value=="object"){const K=v.value;Object.assign(O,K)}return O}),f=o.ref(null),h=o.computed({get:()=>f.value??ue(r.isRequired),set:O=>{f.value=O}}),A=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",$=Fe(o.toRef(r,"labelPosition"),"labelPosition",je.Near),T=o.computed(()=>$&&$.value==="top"?"top":$&&$.value==="right"?"right":"left"),q=o.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${T.value}`]:!0})),j=o.computed(()=>({label:!0,[`label--${T.value}`]:!0})),V=Fe(o.toRef(r,"labelWidth"),"labelWidth",je.Near),I=o.computed(()=>V&&V.value?{width:Ve(V.value)}:{}),R=o.computed(()=>({"label--string":!0,"label--required":h.value})),x=o.computed(()=>({content:!0,[r.contentClass]:!0})),z=o.computed(()=>({...r.contentStyle})),y=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Se({setRequired(O){h.value=O},setErrorTip(O){y.errorTip=O},setErrorIcon(O){y.errorIcon=O},setWarnTip(O){y.warnTip=O},setWarnIcon(O){y.warnIcon=O},setInfoTip(O){y.infoTip=O},setInfoIcon(O){y.infoIcon=O},setCustomClassName(O){g.value=O},setCustomStyle(O){v.value=O}});const _=o.computed(()=>r.infoTip||y.infoTip),J=o.computed(()=>r.infoIcon||y.infoIcon),B=o.computed(()=>r.warnTip||y.warnTip),N=o.computed(()=>r.warnIcon||y.warnIcon),M=o.computed(()=>r.errorTip||y.errorTip),P=o.computed(()=>r.errorIcon||y.errorIcon),G=o.computed(()=>M.value?"error":B.value?"warn":_.value?"info":""),ee=()=>G.value.length>0,L=o.computed(()=>G.value==="error"?M.value:G.value==="warn"?B.value:G.value==="info"?_.value:""),ne=o.computed(()=>G.value==="error"?P.value:G.value==="warn"?N.value:G.value==="info"?J.value:null),E=o.computed(()=>{const O={[`${d}__tip`]:!0,[`${d}__tip--${G.value}`]:!0,[`${d}--animate`]:!0};return G.value==="error"&&r.errorClass?O[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?O[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(O[`${r.infoClass}`]=!0),O}),C=o.computed(()=>{const O={};return $&&$.value==="top"||!A()?O["padding-left"]="0px":V&&V.value&&(O["padding-left"]=Ve(V.value)),O}),F=o.ref();let D="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([O,K,X,le])=>{F.value&&(O&&!he(K)?D?l.show(F.value,K,{...le,id:D,type:X},!0):D=l.show(F.value,K,{...le,type:X},!0):l.hide(D))});let w=null;const H=()=>{w||!F.value||(w=new IntersectionObserver(O=>{let K=!1;for(let X of O)if(X.intersectionRatio>0){K=!0,K&&a.emit("appear",X);break}K||a.emit("disappear")}),w.observe(F.value))},Q=()=>{!w||!F.value||(w.unobserve(F.value),w=null)};o.watch(()=>ue(r.appearListen),O=>{O?H():Q()}),o.onMounted(()=>{ue(r.appearListen)&&H()}),o.onUnmounted(Q);const oe=()=>{if(!A())return null;const O=[],K=a.slots?.label?.()??r.label,X={class:R.value},le=o.h("div",X,[K]);if(O.push(le),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();O.push(fe)}const ce={class:j.value,style:I.value};return o.h("div",ce,O)},U=()=>{const O=[];if(a.slots.prepend){const X=a.slots.prepend();O.push(X)}if(a.slots.default){const X=a.slots.default();O.push(X)}if(a.slots.append){const X=a.slots.append();O.push(X)}if(a.slots.fixedTip){const X={class:[`${d}__fixed-tip`]},le=o.h("div",X,[a.slots.fixedTip()]);O.push(le)}const K={ref:F,class:x.value,style:z.value};return o.h("div",K,O)},Y=()=>{const O=ne.value;return O?typeof O=="function"?o.h("div",{class:"fox-item__tip--icon"},[O()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(O)]):null},k=()=>{const O=L.value;return O?typeof O=="function"?o.h("div",{class:"fox-item__tip--text"},[O()]):o.h("div",{class:"fox-item__tip--text"},[O]):null},W=()=>{if(!ee())return null;const O=[],K=Y();K&&O.push(K);const X=k();X&&O.push(X);const le={class:E.value,style:C.value};return o.h("div",le,O)},Z=()=>a.slots?.hide?.()??null;return()=>{const O=[],K=[],X=oe();X&&K.push(X);const le=U();le&&K.push(le);const ce={class:q.value},fe=o.h("div",ce,K);O.push(fe);const ye=W();ye&&O.push(ye);const pe=Z();pe&&O.push(pe);const Ee={class:p.value,style:b.value,prop:r.prop};return o.h("div",Ee,O)}}}}const{componentName:Hi,create:Ki,scope:Wi}=ie("item"),Ce=Ki(zi(Hi,Wi,Le,!1));function Yi(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(l,n){const r=lt(),a=sn();un(!1);const i=o.computed(()=>a&&r?cn(r,!1).value:null),u=e,s=o.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:l.span==="stretch"})),c=o.computed(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=Ve(l.width));else{const g=a&&r?fn(r,!1):null;if(i.value&&g)if(i.value.type==="grid"){const p=hn(g,i.value,l.span,l.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=dn(g,i.value,l.span,l.offset,l.width);Object.assign(d,p)}else return l.width&&(d.width=Ve(l.width)),d}return d});return()=>{const d={class:s.value,style:c.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",d,n.slots.default()):o.h("div",d)}}}}const{componentName:Ui,create:Gi,scope:Eg}=ie("slot-item"),uo=Gi(Yi(Ui));function Xi(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(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=lt(),u=sn();un(!1);const s=o.computed(()=>{const c={};if(u&&i){const d=cn(i,!1),g=fn(i,!1);if(d.value&&g)if(d.value.type==="grid"){const p=hn(g,d.value,l.span,l.offset);Object.assign(c,p)}else if(d.value.type==="flow"){const p=dn(g,d.value,l.span,l.offset,l.width);Object.assign(c,p)}else l.width&&(c.width=Ve(l.width))}else l.width&&(c.width=Ve(l.width));return c});return()=>{const c=[];if(n.slots.default){const g=n.slots.default();if(l.divide)for(let p=0;p<g.length;p++){if(p>0){const v=o.h("div",{class:{[`${r}__divide`]:!0}});c.push(v)}c.push(g[p])}else Reflect.apply([].push,c,g)}const d={class:a.value,style:s.value};return o.h("div",d,c)}}}}const{componentName:Zi,create:Ji,scope:Ng}=ie("row-item"),co=Ji(Xi(Zi)),Ze=(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},Gl={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 Qi(e,t,l){return{props:{...$e,...Re,...Gl},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0,[`${b}__disabled`]:i.value,[`${b}__readonly`]:s.value})),h=N=>{v.value=N,c("update:modelValue",N),c("input",N)},A=N=>{c("change",N)};let $=ge(n,"hintText"),T=o.ref(!1);const q=N=>{let P=N.target.value;p.value=!0,he($.value)||(T.value=!0),c("focus",P,N)},j=N=>{setTimeout(()=>{T.value&&(T.value=!1),p.value=!1},0);let P=N.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),c("blur",P,N)},V=()=>{c("clear","")},I=o.ref(!1);let R=null;const x=()=>{n.showTooltip&&I.value===!1&&(R&&clearTimeout(R),R=setTimeout(()=>{I.value=!0},150))},z=()=>{R&&(clearTimeout(R),I.value=!1,R=null)},y=o.computed(()=>I.value||T.value),_=o.computed(()=>I.value?v.value:$.value),J=o.computed(()=>Nt(n.unit)>0),B=o.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const M={...Ze(r.attrs),ref:B,class:f.value,placeholder:g.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:A,onInput:h,onFocus:q,onBlur:j,onMouseover:x,onMouseleave:z},P={};r.slots.prepend&&(P.prepend=r.slots.prepend),r.slots.append&&(P.append=r.slots.append),r.slots.prefix&&(P.prefix=r.slots.prefix),r.slots.suffix?P.suffix=r.slots.suffix:J.value&&(P.suffix=()=>[n.unit]);const G=[],ee=o.h(S.ElInput,M,P);G.push(ee);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(n,Gl),hintText:_.value,hintVisible:y.value};return n.prop&&(E.prop=`${n.prop}_item`),o.h(l,E,L)}}}}const{componentName:es,create:ts,scope:ns}=ie("input-item"),fo=ts(Qi(es,ns,Ce));function at(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 Xl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function os(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ls=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function rs(){const e=o.getCurrentInstance();return new ls(e.proxy)}function Zl(e,t,l){const n=at(e,t),r=at(e,l);if(n!==r)return!1;const a=Rt(e,t),i=Rt(e,l);return a===i}function Jl(e,t,l,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 u=Xl(e,i);if(Array.isArray(u)&&u.length>0){const s=Jl(e,a,l,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(l==="text")s=at(e,i)===a;else if(l==="item")s=Zl(e,i,a);else{let c=Rt(e,i);c==null&&(c=at(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function as(e){return{text:e,value:e}}const Ql={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String]},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 is(e,t,l){return{props:{...$e,...Re,...Ql},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(null),v=o.ref([]),b=o.computed(()=>v.value?v.value.map(W=>at(n,W)).join(" "):""),f=(k,W,Z,O=!0)=>{if(!Z||Z.length==0){p.value=k,O&&(c("update:modelValue",k),c("change",k));return}const K=Jl(n,k,W,Z);if(K===null){if(v.value===null||v.value.length===0)return;p.value=null,v.value=[],O&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let X=!0;if(K.length!==v.value.length)X=!1;else for(let le=0;le<K.length;le++){const ce=K[le],fe=v.value[le];if(!Zl(n,ce,fe)){X=!1;break}}if(!X){v.value=K;let le=[],ce=[],fe=[];K.forEach(ht=>{const Ue=Rt(n,ht),gt=at(n,ht);le.push(Ue),fe.push(gt),n.valueType==="text"?ce.push(gt):n.valueType==="item"?ce.push(ht):ce.push(Ue)});let ye,pe,Ee;ue(n.multiple)?(p.value=le,ye=o.toRaw(ce),pe=fe,Ee=o.toRaw(K)):(p.value=le[0]??"",ye=o.toRaw(ce[0]??""),pe=fe[0]??"",Ee=o.toRaw(K[0])),O&&(c("update:modelValue",ye),c("change",ye,Ee)),c("update:text",pe)}},h=o.ref(null),A=o.ref(null),$=o.computed(()=>A.value??h.value??[]),T=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,k=>ue(k)),q=rs(),j=async(k,W)=>{if(k){const Z=await q.load("select",k,W);if(Z.length>0)if(typeof Z[0]=="string"){let X=Z.map(le=>as(le));h.value=X}else h.value=Z;else h.value=null}};o.watch([()=>n.source,()=>n.params],([k,W])=>{A.value=null,j(k,W)},{immediate:!T.value});let V=!1;const I=()=>{V||(V=!0,j(n.source,n.params))};o.watch([()=>h.value,()=>n.modelValue],([k,W])=>{if(y()&&ue(n.multiple)){et(W,p.value)||(p.value=W);return}f(W,n.valueType,$.value,!1),c("setValue",W)}),n.source||(p.value=n.modelValue);let R=null,x=o.ref(!1);typeof n.remoteMethod=="function"&&(R=async k=>{if(k==null){A.value=null;return}x.value=!0;try{const W=await n.remoteMethod(k);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}x.value=!1});let z=null;typeof n.filterMethod=="function"&&(z=async k=>{if(k==null){A.value=null;return}x.value=!0;try{const W=await n.filterMethod(k,h.value);W&&(A.value=W)}catch(W){A.value=null,console.error(W)}x.value=!1});const y=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",_=o.ref(!1),J=e,B=o.computed(()=>({[J]:!0})),N=k=>{n.allowCreate||y()&&ue(n.multiple)?(c("update:modelValue",k),c("change",k),c("update:text",k),p.value=k):f(k,"value",$.value,!0)};let M=ge(n,"hintText"),P=o.ref(!1);const G=k=>{let Z=k.target.value;_.value=!0,he(M.value)||(P.value=!0),c("focus",Z,k)},ee=k=>{setTimeout(()=>{P.value&&(P.value=!1),_.value=!1},0);let Z=k.target.value;n.maxLength&&Z.length>Number(n.maxLength)&&(Z=Z.slice(0,Number(n.maxLength))),H.value||c("blur",Z,k)},L=()=>{c("clear","")},ne=o.ref(!1);let E=null;const C=()=>{n.showTooltip&&ne.value===!1&&(E&&clearTimeout(E),E=setTimeout(()=>{ne.value=!0},150))},F=()=>{E&&(clearTimeout(E),ne.value=!1,E=null)},D=o.computed(()=>ne.value||P.value),w=o.computed(()=>ne.value?b.value:M.value),H=o.ref(!1),Q=k=>{H.value=k,c("visible-change",k),k||c("selected")},oe=k=>{c("remove-tag",k)},U=(k,W)=>{const Z=[];return k.forEach((O,K)=>{const X=Xl(n,O);if(Array.isArray(X)&&X.length>0){const le=U(X,W),ce=at(n,O),ye={key:`${ce}_${K}`,label:ce};Z.push(o.h(S.ElOptionGroup,ye,{default:()=>le}))}else{const le=Rt(n,O),ce=at(n,O),fe=os(n,O),pe={key:`${le}_${K}`,label:ce,disabled:fe,value:le};if(typeof W=="function")Z.push(o.h(S.ElOption,pe,{default:()=>W(O)}));else if(n.optionType==="item"){const Ee={class:{"fox-select-item__option-left":!0}},ht=o.h("span",Ee,[le]),Ue={class:{"fox-select-item__option-right":!0}},gt=o.h("span",Ue,[ce]),rl=o.h("div",{class:{"fox-select-item__option":!0}},[ht,gt]);Z.push(o.h(S.ElOption,pe,{default:()=>rl}))}else n.optionType==="value"?Z.push(o.h(S.ElOption,pe,{default:()=>[le]})):Z.push(o.h(S.ElOption,pe))}}),Z},Y=o.ref();return Se({focus:()=>{Y?.value.focus()},blur:()=>{Y?.value.blur()},setDisabled:k=>{a.value=k},setReadonly:k=>{u.value=k}}),()=>{const W={...Ze(r.attrs),ref:Y,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:g.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:L,onChange:N,onFocus:G,onBlur:ee,onVisibleChange:Q,onRemoveTag:oe};typeof R=="function"&&(W["remote-method"]=R,W.loading=x.value),typeof z=="function"&&(W["filter-method"]=z,W.loading=x.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=()=>U($.value,r.slots.option);const O=[],K=o.h(S.ElSelect,W,Z);O.push(K);const X={default:()=>O};X.label=r.slots.default,X.fixedPreTip=r.slots.fixedPreTip,X.fixedTip=r.slots.fixedTip;const ce={...De(n,Ql),hintText:w.value,hintVisible:D.value,onMouseover:C,onMouseleave:F};return n.prop&&(ce.prop=`${n.prop}_item`),T.value&&(ce["appear-listen"]=!0,ce.onAppear=I),o.h(l,ce,X)}}}}const{componentName:ss,create:us,scope:cs}=ie("select-item"),ho=us(is(ss,cs,Ce));function tt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}},fs=yn.exports,er;function ds(){return er||(er=1,function(e,t){(function(l,n){e.exports=n()})(fs,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",g="month",p="quarter",v="year",b="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|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,$={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(B){var N=["th","st","nd","rd"],M=B%100;return"["+B+(N[(M-20)%10]||N[M]||N[0])+"]"}},T=function(B,N,M){var P=String(B);return!P||P.length>=N?B:""+Array(N+1-P.length).join(M)+B},q={s:T,z:function(B){var N=-B.utcOffset(),M=Math.abs(N),P=Math.floor(M/60),G=M%60;return(N<=0?"+":"-")+T(P,2,"0")+":"+T(G,2,"0")},m:function B(N,M){if(N.date()<M.date())return-B(M,N);var P=12*(M.year()-N.year())+(M.month()-N.month()),G=N.clone().add(P,g),ee=M-G<0,L=N.clone().add(P+(ee?-1:1),g);return+(-(P+(M-G)/(ee?G-L:L-G))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:g,y:v,w:d,d:c,D:b,h:s,m:u,s:i,ms:a,Q:p}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},j="en",V={};V[j]=$;var I="$isDayjsObject",R=function(B){return B instanceof _||!(!B||!B[I])},x=function B(N,M,P){var G;if(!N)return j;if(typeof N=="string"){var ee=N.toLowerCase();V[ee]&&(G=ee),M&&(V[ee]=M,G=ee);var L=N.split("-");if(!G&&L.length>1)return B(L[0])}else{var ne=N.name;V[ne]=N,G=ne}return!P&&G&&(j=G),G||!P&&j},z=function(B,N){if(R(B))return B.clone();var M=typeof N=="object"?N:{};return M.date=B,M.args=arguments,new _(M)},y=q;y.l=x,y.i=R,y.w=function(B,N){return z(B,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var _=function(){function B(M){this.$L=x(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[I]=!0}var N=B.prototype;return N.parse=function(M){this.$d=function(P){var G=P.date,ee=P.utc;if(G===null)return new Date(NaN);if(y.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var L=G.match(h);if(L){var ne=L[2]-1||0,E=(L[7]||"0").substring(0,3);return ee?new Date(Date.UTC(L[1],ne,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)):new Date(L[1],ne,L[3]||1,L[4]||0,L[5]||0,L[6]||0,E)}}return new Date(G)}(M),this.init()},N.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},N.$utils=function(){return y},N.isValid=function(){return this.$d.toString()!==f},N.isSame=function(M,P){var G=z(M);return this.startOf(P)<=G&&G<=this.endOf(P)},N.isAfter=function(M,P){return z(M)<this.startOf(P)},N.isBefore=function(M,P){return this.endOf(P)<z(M)},N.$g=function(M,P,G){return y.u(M)?this[P]:this.set(G,M)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(M,P){var G=this,ee=!!y.u(P)||P,L=y.p(M),ne=function(oe,U){var Y=y.w(G.$u?Date.UTC(G.$y,U,oe):new Date(G.$y,U,oe),G);return ee?Y:Y.endOf(c)},E=function(oe,U){return y.w(G.toDate()[oe].apply(G.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(U)),G)},C=this.$W,F=this.$M,D=this.$D,w="set"+(this.$u?"UTC":"");switch(L){case v:return ee?ne(1,0):ne(31,11);case g:return ee?ne(1,F):ne(0,F+1);case d:var H=this.$locale().weekStart||0,Q=(C<H?C+7:C)-H;return ne(ee?D-Q:D+(6-Q),F);case c:case b:return E(w+"Hours",0);case s:return E(w+"Minutes",1);case u:return E(w+"Seconds",2);case i:return E(w+"Milliseconds",3);default:return this.clone()}},N.endOf=function(M){return this.startOf(M,!1)},N.$set=function(M,P){var G,ee=y.p(M),L="set"+(this.$u?"UTC":""),ne=(G={},G[c]=L+"Date",G[b]=L+"Date",G[g]=L+"Month",G[v]=L+"FullYear",G[s]=L+"Hours",G[u]=L+"Minutes",G[i]=L+"Seconds",G[a]=L+"Milliseconds",G)[ee],E=ee===c?this.$D+(P-this.$W):P;if(ee===g||ee===v){var C=this.clone().set(b,1);C.$d[ne](E),C.init(),this.$d=C.set(b,Math.min(this.$D,C.daysInMonth())).$d}else ne&&this.$d[ne](E);return this.init(),this},N.set=function(M,P){return this.clone().$set(M,P)},N.get=function(M){return this[y.p(M)]()},N.add=function(M,P){var G,ee=this;M=Number(M);var L=y.p(P),ne=function(F){var D=z(ee);return y.w(D.date(D.date()+Math.round(F*M)),ee)};if(L===g)return this.set(g,this.$M+M);if(L===v)return this.set(v,this.$y+M);if(L===c)return ne(1);if(L===d)return ne(7);var E=(G={},G[u]=n,G[s]=r,G[i]=l,G)[L]||1,C=this.$d.getTime()+M*E;return y.w(C,this)},N.subtract=function(M,P){return this.add(-1*M,P)},N.format=function(M){var P=this,G=this.$locale();if(!this.isValid())return G.invalidDate||f;var ee=M||"YYYY-MM-DDTHH:mm:ssZ",L=y.z(this),ne=this.$H,E=this.$m,C=this.$M,F=G.weekdays,D=G.months,w=G.meridiem,H=function(U,Y,k,W){return U&&(U[Y]||U(P,ee))||k[Y].slice(0,W)},Q=function(U){return y.s(ne%12||12,U,"0")},oe=w||function(U,Y,k){var W=U<12?"AM":"PM";return k?W.toLowerCase():W};return ee.replace(A,function(U,Y){return Y||function(k){switch(k){case"YY":return String(P.$y).slice(-2);case"YYYY":return y.s(P.$y,4,"0");case"M":return C+1;case"MM":return y.s(C+1,2,"0");case"MMM":return H(G.monthsShort,C,D,3);case"MMMM":return H(D,C);case"D":return P.$D;case"DD":return y.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return H(G.weekdaysMin,P.$W,F,2);case"ddd":return H(G.weekdaysShort,P.$W,F,3);case"dddd":return F[P.$W];case"H":return String(ne);case"HH":return y.s(ne,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return oe(ne,E,!0);case"A":return oe(ne,E,!1);case"m":return String(E);case"mm":return y.s(E,2,"0");case"s":return String(P.$s);case"ss":return y.s(P.$s,2,"0");case"SSS":return y.s(P.$ms,3,"0");case"Z":return L}return null}(U)||L.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(M,P,G){var ee,L=this,ne=y.p(P),E=z(M),C=(E.utcOffset()-this.utcOffset())*n,F=this-E,D=function(){return y.m(L,E)};switch(ne){case v:ee=D()/12;break;case g:ee=D();break;case p:ee=D()/3;break;case d:ee=(F-C)/6048e5;break;case c:ee=(F-C)/864e5;break;case s:ee=F/r;break;case u:ee=F/n;break;case i:ee=F/l;break;default:ee=F}return G?ee:y.a(ee)},N.daysInMonth=function(){return this.endOf(g).$D},N.$locale=function(){return V[this.$L]},N.locale=function(M,P){if(!M)return this.$L;var G=this.clone(),ee=x(M,P,!0);return ee&&(G.$L=ee),G},N.clone=function(){return y.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},B}(),J=_.prototype;return z.prototype=J,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",g],["$y",v],["$D",b]].forEach(function(B){J[B[1]]=function(N){return this.$g(N,B[0],B[1])}}),z.extend=function(B,N){return B.$i||(B(N,_,z),B.$i=!0),z},z.locale=x,z.isDayjs=R,z.unix=function(B){return z(1e3*B)},z.en=V[j],z.Ls=V,z.p={},z})}(yn)),yn.exports}var hs=ds();const Je=tt(hs);var pn={exports:{}},gs=pn.exports,tr;function ms(){return tr||(tr=1,function(e,t){(function(l,n){e.exports=n()})(gs,function(){var l={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]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var A=h.match(/([+-]|\d\d)/g),$=60*A[1]+(+A[2]||0);return $===0?0:A[0]==="+"?-$:$}(f)}],g=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},p=function(f,h){var A,$=u.meridiem;if($){for(var T=1;T<=24;T+=1)if(f.indexOf($(T,0,h))>-1){A=T>12;break}}else A=f===(h?"pm":"PM");return A},v={A:[i,function(f){this.afternoon=p(f,!1)}],a:[i,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,A=f.match(/\d+/);if(this.day=A[0],h)for(var $=1;$<=31;$+=1)h($).replace(/\[|\]/g,"")===f&&(this.day=$)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=g("months"),A=(g("monthsShort")||h.map(function($){return $.slice(0,3)})).indexOf(f)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[i,function(f){var h=g("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function b(f){var h,A;h=f,A=u&&u.formats;for(var $=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(x,z,y){var _=y&&y.toUpperCase();return z||A[y]||l[y]||A[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(J,B,N){return B||N.slice(1)})})).match(n),T=$.length,q=0;q<T;q+=1){var j=$[q],V=v[j],I=V&&V[0],R=V&&V[1];$[q]=R?{regex:I,parser:R}:j.replace(/^\[|\]$/g,"")}return function(x){for(var z={},y=0,_=0;y<T;y+=1){var J=$[y];if(typeof J=="string")_+=J.length;else{var B=J.regex,N=J.parser,M=x.slice(_),P=B.exec(M)[0];N.call(z,P),x=x.replace(P,"")}}return function(G){var ee=G.afternoon;if(ee!==void 0){var L=G.hours;ee?L<12&&(G.hours+=12):L===12&&(G.hours=0),delete G.afternoon}}(z),z}}return function(f,h,A){A.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var $=h.prototype,T=$.parse;$.parse=function(q){var j=q.date,V=q.utc,I=q.args;this.$u=V;var R=I[1];if(typeof R=="string"){var x=I[2]===!0,z=I[3]===!0,y=x||z,_=I[2];z&&(_=I[2]),u=this.$locale(),!x&&_&&(u=A.Ls[_]),this.$d=function(M,P,G){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*M);var ee=b(P)(M),L=ee.year,ne=ee.month,E=ee.day,C=ee.hours,F=ee.minutes,D=ee.seconds,w=ee.milliseconds,H=ee.zone,Q=new Date,oe=E||(L||ne?1:Q.getDate()),U=L||Q.getFullYear(),Y=0;L&&!ne||(Y=ne>0?ne-1:Q.getMonth());var k=C||0,W=F||0,Z=D||0,O=w||0;return H?new Date(Date.UTC(U,Y,oe,k,W,Z,O+60*H.offset*1e3)):G?new Date(Date.UTC(U,Y,oe,k,W,Z,O)):new Date(U,Y,oe,k,W,Z,O)}catch{return new Date("")}}(j,R,V),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),y&&j!=this.format(R)&&(this.$d=new Date("")),u={}}else if(R instanceof Array)for(var J=R.length,B=1;B<=J;B+=1){I[1]=R[B-1];var N=A.apply(this,I);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}B===J&&(this.$d=new Date(""))}else T.call(this,q)}}})}(pn)),pn.exports}var ys=ms();const ps=tt(ys);var bn={exports:{}},bs=bn.exports,nr;function vs(){return nr||(nr=1,function(e,t){(function(l,n){e.exports=n()})(bs,function(){return function(l,n){var r=n.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),g==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),g==="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 g}});return a.bind(this)(d)}}})}(bn)),bn.exports}var ws=vs();const Ss=tt(ws);var vn={exports:{}},xs=vn.exports,or;function Ts(){return or||(or=1,function(e,t){(function(l,n){e.exports=n()})(xs,function(){return function(l,n,r){var a=n.prototype,i=function(g){return g&&(g.indexOf?g:g.s)},u=function(g,p,v,b,f){var h=g.name?g:g.$locale(),A=i(h[p]),$=i(h[v]),T=A||$.map(function(j){return j.slice(0,b)});if(!f)return T;var q=h.weekStart;return T.map(function(j,V){return T[(V+(q||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(g,p){return g.formats[p]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,f,h){return f||h.slice(1)})}(g.formats[p.toUpperCase()])},d=function(){var g=this;return{months:function(p){return p?p.format("MMMM"):u(g,"months")},monthsShort:function(p){return p?p.format("MMM"):u(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(g,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(g,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(g.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var g=s();return{firstDayOfWeek:function(){return g.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(p){return c(g,p)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(g){return u(s(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return u(s(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return u(s(),"weekdaysMin","weekdays",2,g)}}})}(vn)),vn.exports}var $s=Ts();const Cs=tt($s);var wn={exports:{}},Es=wn.exports,lr;function Ns(){return lr||(lr=1,function(e,t){(function(l,n){e.exports=n()})(Es,function(){var l="week",n="year";return function(r,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(n).add(1,n).date(c),g=i(this).endOf(l);if(d.isBefore(g))return 1}var p=i(this).startOf(n).date(c).startOf(l).subtract(1,"millisecond"),v=this.diff(p,l,!0);return v<0?i(this).startOf("week").week():Math.ceil(v)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})}(wn)),wn.exports}var ks=Ns();const Is=tt(ks);var Sn={exports:{}},Os=Sn.exports,rr;function Ds(){return rr||(rr=1,function(e,t){(function(l,n){e.exports=n()})(Os,function(){return function(l,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}}})}(Sn)),Sn.exports}var Vs=Ds();const Rs=tt(Vs);var xn={exports:{}},Fs=xn.exports,ar;function As(){return ar||(ar=1,function(e,t){(function(l,n){e.exports=n()})(Fs,function(){return function(l,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")}}})}(xn)),xn.exports}var Ms=As();const Ls=tt(Ms);var Tn={exports:{}},Bs=Tn.exports,ir;function _s(){return ir||(ir=1,function(e,t){(function(l,n){e.exports=n()})(Bs,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})}(Tn)),Tn.exports}var qs=_s();const Ps=tt(qs);var $n={exports:{}},js=$n.exports,sr;function zs(){return sr||(sr=1,function(e,t){(function(l,n){e.exports=n()})(js,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})}($n)),$n.exports}var Hs=zs();const Ks=tt(Hs);Je.extend(Cs),Je.extend(Ss),Je.extend(ps),Je.extend(Is),Je.extend(Rs),Je.extend(Ls),Je.extend(Ps),Je.extend(Ks);const ze={format(e,t){return Je(e).format(t)},parser(e,t){return Je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).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 l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t,l){e=e||0;let n=t??new Date;const r=e*(1e3*60*60*24);return n=new Date(n.getTime()+r),l=l??"YYYY-MM-DD",this.format(n,l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),u=6-a;return n!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return n!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),g=this.date2Str(new Date(c));return[d,g]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=ze.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=ze.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},ur={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"}},cr={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 Ws(e,t,l){return{props:{...$e,...Re,...ur,...cr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=o.computed(()=>P.value&&Array.isArray(v.value)&&v.value.length==2?v.value[0]:v.value),f=o.computed(()=>P.value?"longTermKey":"normalKey"),h=Y=>{if(P.value&&n.type==="daterange"){const k=[...v.value];k[0]=Y,v.value=k}else v.value=Y;c("update:modelValue",v.value),c("change",v.value)},A=o.computed(()=>P.value&&n.type==="daterange"?"date":n.type),$=e,T=o.computed(()=>({[`${$}`]:!0,"is-long":P.value,"is-readonly":s.value,"is-disabled":i.value}));let q=ge(n,"hintText"),j=o.ref(!1);const V=Y=>{let W=Y.target.value;p.value=!0,he(q.value)||(j.value=!0),c("focus",W,Y)},I=Y=>{setTimeout(()=>{j.value&&(j.value=!1),p.value=!1},0);let W=Y.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),c("blur",W,Y)},R=()=>{c("clear","")},x=Y=>{c("calendar-change",Y)},z=(Y,k,W)=>{c("panel-change",Y,k,W)},y=Y=>{c("visible-change",Y)},_=Fe(o.computed(()=>n.longTermText),"longTermText",je.Near),J=Fe(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",je.Near),B=Fe(o.computed(()=>n.longTermValue),"longTermValue",je.Near),N=Fe(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",je.Near);let M=null;const P=o.ref(ue(n.longTerm)),G=Y=>{if(P.value=Y,c("update:longTerm",Y),Y){if(M=v.value,n.type==="daterange"){const k=[];Array.isArray(B.value)?(k[0]=v.value?v.value[0]??B.value[0]:null,k[1]=B.value[1]??B.value[0]):(k[0]=v.value?v.value[0]??B.value:null,k[1]=P.value),k[0]||(k[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=k}else Array.isArray(B.value)?v.value=B.value[1]??B.value[0]:v.value=B.value,v.value||(v.value=n.valueFormat?ze.format(new Date,n.valueFormat):new Date);c("update:modelValue",v.value)}else{if(n.type==="daterange"){const k=[];k[0]=Array.isArray(v.value)?v.value[0]:v.value,Array.isArray(M)?k[1]=M[1]:k[1]=M,k[0]||(k[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=k}else v.value=M;c("update:modelValue",v.value),setTimeout(()=>{oe()},100)}},ee=ue(n.isLongTerm);if(ee){const Y=()=>{if(P.value===!0){if(M=v.value,n.type==="daterange"){const k=[v.value[0]];Array.isArray(B.value)?k[1]=B.value[1]??B.value[0]:k[1]=P.value,k[0]||(k[0]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),k[1]||(k[1]=n.valueFormat?ze.format(new Date,n.valueFormat):new Date),v.value=k}else v.value=B.value;c("update:modelValue",v.value)}else et(B.value,v.value)&&(P.value=!0)};Y(),o.watch([()=>n.longTerm],([k])=>{P.value!==k&&Y()}),o.watch([()=>v.value],([k])=>{let W=!1;if(n.type==="daterange"&&Array.isArray(k))try{let Z=k[1];if(!Z)return;if(k[0]==null){c("update:modelValue",[]);return}typeof Z!="string"&&n.valueFormat&&(Z=ze.format(Z,n.valueFormat));let O=Array.isArray(B.value)?B.value[1]:B.value;(Z===O||Array.isArray(N.value)&&N.value.findIndex(X=>Z==X)!==-1)&&(W=!0)}catch(Z){console.error(Z)}P.value!==W&&(P.value=W)},{immediate:!0})}const L=o.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),ne=o.ref(),E=o.ref(),C=/^\d+$/,F=(Y,k)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(Y,k):C.test(Y)&&Y.length===n.flashFillThreshold,D=(Y,k)=>{let W;if(typeof n.flashFillFormat=="function")W=n.flashFillFormat(Y,k);else{const O=n.flashFillFormat??"YYYYMMDD";W=ze.parser(Y,O)}const Z=n.valueFormat??"YYYY-MM-DD";return ze.format(W,Z)},w=Y=>Y?Y.endsWith("range"):!1,H=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(F(k,n.type)){const W=D(k,n.type);if(w(n.type)){const Z=Array.isArray(v.value)?[...v.value]:[];Z[0]=W,h(Z)}else h(W)}},Q=Y=>{if(!Y.target)return;const k=Y.target.value??"";if(F(k,n.type)){const W=D(k,n.type);if(w(n.type)){const Z=Array.isArray(v.value)?[...v.value]:[];Z[1]=W,h(Z)}else h(W)}},oe=()=>{if(n.flashFill&&ne.value&&ne.value.$el)if(w(n.type)){const Y=ne.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].addEventListener("input",H),Y[1]&&Y[1].addEventListener("input",Q)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.addEventListener("input",H)}},U=()=>{if(n.flashFill&&ne.value&&ne.value.$el)if(w(n.type)){const Y=ne.value.$el.querySelectorAll("input.el-range-input");Y[0]&&Y[0].removeEventListener("input",H),Y[1]&&Y[1].removeEventListener("input",Q)}else{const Y=ne.value.$el.querySelector("input.el-input__inner");Y&&Y.removeEventListener("input",H)}};return o.onMounted(oe),o.onBeforeUnmount(U),Se({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()},setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const k={...r.attrs,key:f.value,type:A.value,ref:E,class:T.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":h,onClear:R,onFocus:V,onBlur:I,onCalendarChange:x,onPanelChange:z,onVisibleChange:y},W={};r.slots["range-separator"]&&(W["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(W.default=r.slots.cell);const Z=[],O=o.h(S.ElDatePicker,k,W);Z.push(O);const K={default:()=>Z};if(K.label=r.slots.default,K.fixedPreTip=r.slots.fixedPreTip,K.fixedTip=r.slots.fixedTip,ee){if(P.value){const fe=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),ye=o.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),pe={class:L.value},Ee=o.h("div",pe,{default:()=>[fe,ye]});Z.push(Ee)}if(!s.value&&!i.value){const fe={label:J.value||_.value,disabled:s.value||i.value,modelValue:P.value,"onUpdate:modelValue":G},ye=o.h(S.ElCheckbox,fe),pe=o.h("div",{class:{[`${$}__append`]:!0}},[ye]);K.append=()=>pe}}const le={...De(n,ur,cr),ref:ne,class:{[`${$}__wrapper`]:!0,"has-append":ee},hintText:q.value,hintVisible:j.value};return n.prop&&(le.prop=`${n.prop}_item`),o.h(l,le,K)}}}}const{componentName:Ys,create:Us,scope:Gs}=ie("date-item"),go=Us(Ws(Ys,Gs,Ce)),fr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Xs(e,t,l){return{props:{...$e,...Re,...fr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0})),h=R=>{v.value=R,c("update:modelValue",R),c("change",R)};let A=ge(n,"hintText"),$=o.ref(!1);const T=R=>{let z=R.target.value;p.value=!0,he(A.value)||($.value=!0),c("focus",z,R)},q=R=>{setTimeout(()=>{$.value&&($.value=!1),p.value=!1},0);let z=R.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),c("blur",z,R)},j=()=>{c("clear","")},V=R=>{c("visible-change",R)},I=o.ref();return Se({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const x={...r.attrs,ref:I,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:T,onBlur:q,onVisibleChange:V},z={},y=[],_=o.h(S.ElTimePicker,x,z);y.push(_);const J={default:()=>y};J.label=r.slots.default,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const N={...De(n,fr),hintText:A.value,hintVisible:$.value};return n.prop&&(N.prop=`${n.prop}_item`),o.h(l,N,J)}}}}const{componentName:Zs,create:Js,scope:Qs}=ie("time-item"),mo=Js(Xs(Zs,Qs,Ce)),dr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function eu(e,t,l){return{props:{...$e,...Re,...dr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0})),h=I=>{v.value=I,c("update:modelValue",I),c("change",I)};let A=ge(n,"hintText"),$=o.ref(!1);const T=I=>{let x=I.target.value;p.value=!0,he(A.value)||($.value=!0),c("focus",x,I)},q=I=>{setTimeout(()=>{$.value&&($.value=!1),p.value=!1},0);let x=I.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),c("blur",x,I)},j=()=>{c("clear","")},V=o.ref();return Se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const R={...r.attrs,ref:V,class:f.value,placeholder:g.placeholder.value,disabled:i.value,readonly:s.value,modelValue:v.value,"onUpdate:modelValue":h,onClear:j,onFocus:T,onBlur:q},x={},z=[],y=o.h(S.ElTimeSelect,R,x);z.push(y);const _={default:()=>z};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const B={...De(n,dr),hintText:A.value,hintVisible:$.value};return n.prop&&(B.prop=`${n.prop}_item`),o.h(l,B,_)}}}}const{componentName:tu,create:nu,scope:ou}=ie("time-select-item"),yo=nu(eu(tu,ou,Ce));function hr(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function gr(e,t,l=20){if(typeof t=="string"&&(t=Te(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=gl(`${e}`,`${t}`);return hr(n)}else{let n=Bn(`${e}`,ml(`${t}`),20);return hr(n)}}function lu(e,t=-1,l=!1,n=3,r=","){return zt(e,t,l,n,r)}function mr(e,t,l,n,r=!0){if(e==="")return"";if(e=yl(e),t=Te(t),t==1)return e;if(n)e=gr(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(Te(l)+2,"0"):e=Bn(e,1,Te(l)));else{let a=-1*t;e=gr(e,a)}return e}function yr(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=_n(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=_n(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const pr={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 ru(e,t,l){return{props:{...$e,...Re,...pr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref(!1),g=ge(n,"modelValue",null,c),p=o.ref("");o.watch([()=>g.value,()=>n.rates,()=>n.precision],([N,M,P])=>{if(he(N)){p.value="";return}const G=mr(N,M,P,!1);p.value!==G&&(p.value=G)},{immediate:!0});const v=o.computed(()=>{let N="";return d.value&&(N=p.value),N}),{t:b}=qe.useFoxI18n(t),f=o.computed(()=>{let N=n.placeholder??"";return!d.value&&!he(p.value)?N=lu(p.value,n.decimalLength,n.autoPadding,n.digits,n.separator):N=b(["placeholder",N]),N}),h=e,A=o.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:p.value.length>0})),$=Fe(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>d.value?{textAlign:"left"}:{textAlign:$.value??"right"});const T=o.ref(""),q=o.computed(()=>{let N=T.value;return he(N)&&(N=n.errorTip??""),N}),j=o.ref(""),V=o.ref(!1),I=(N,M)=>{if(N=`${N}`,he(N)){p.value="",g.value="",M.forEach(P=>{c(P,"")}),ue(n.showTip)&&V.value&&(V.value=!1);return}if(N.length>=2){let P=N;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){o.triggerRef(p);return}}if(N!="-"){if(!$l(N)){o.triggerRef(p);return}if(n.integerLength!=-1&&Cl(N)>Number(n.integerLength)){o.triggerRef(p);return}if(n.decimalLength&&n.decimalLength!=-1&&El(N)>Number(n.decimalLength)){o.triggerRef(p);return}let P=yr(N,n);if(P.maxValid===!1){T.value=P.message,o.triggerRef(p);return}}else if(n.min!=null&&Te(n.min)>=0){o.triggerRef(p);return}j.value=N,ue(n.showTip)&&(V.value=N.length>0),p.value=N,g.value=mr(N,n.rates,n.precision,!0),M.forEach(P=>{c(P,g.value)})},R=N=>{I(N,["update:modelValue","input"])},x=N=>{I(N,["update:modelValue","change"])},z=N=>{if(d.value=!0,ue(n.showTip)){let M=p.value;he(M)&&(M=n.hintText),he(M)||(j.value=M,V.value=!0)}T.value="",c("focus",g.value,N)},y=N=>{if(setTimeout(()=>{d.value=!1,ue(n.showTip)&&V.value===!0&&(V.value=!1)},0),!he(p.value)){let M=yr(p.value,n);if(M.minValid===!1||M.maxValid===!1){T.value=M.message;return}}c("update:modelValue",g.value,N),c("blur",g.value,N)},_=()=>{c("clear","")},J=o.computed(()=>Nt(n.unit)>0),B=o.ref();return Se({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const M={...Ze(r.attrs),ref:B,class:A.value,type:"digit",maxlength:n.maxLength,placeholder:f.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onInput:R,onChange:x,onFocus:z,onBlur:y},P={};r.slots.prepend&&(P.prepend=r.slots.prepend),r.slots.append&&(P.append=r.slots.append),r.slots.prefix&&(P.prefix=r.slots.prefix),r.slots.suffix?P.suffix=r.slots.suffix:J.value&&(P.suffix=()=>[n.unit]);const G=[],ee=o.h(S.ElInput,M,P);G.push(ee);const L={default:()=>G};L.label=r.slots.default,L.fixedPreTip=r.slots.fixedPreTip,L.fixedTip=r.slots.fixedTip;const E={...De(n,pr),errorTip:q.value,hintText:j.value,hintVisible:V.value,hintType:"number"};return n.prop&&(E.prop=`${n.prop}_item`),o.h(l,E,L)}}}}const{componentName:au,create:iu,scope:su}=ie("money-item"),po=iu(ru(au,su,Ce)),br={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 uu(e,t,l){return{props:{...$e,...Re,...br},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0,[`${b}__append`]:R.value})),h=o.computed(()=>({[`${b}__unit`]:!0})),A=z=>{v.value=z,c("update:modelValue",z),c("input",z)},$=z=>{c("change",z)};let T=ge(n,"hintText"),q=o.ref(!1);const j=z=>{let _=z.target.value;p.value=!0,he(T.value)||(q.value=!0),c("focus",_,z)},V=z=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let _=z.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),c("blur",_,z)},I=()=>{c("clear","")},R=o.computed(()=>Nt(n.unit)>0),x=o.ref();return Se({focus:()=>{x?.value.focus()},blur:()=>{x?.value.blur()},setDisabled:z=>{a.value=z},setReadonly:z=>{u.value=z}}),()=>{const y={...Ze(r.attrs),ref:x,class:f.value,placeholder:g.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:I,onChange:$,onInput:A,onFocus:j,onBlur:V},_={},J=[],B=o.h(S.ElInputNumber,y,_);J.push(B);const N={default:()=>J};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const P={...De(n,br),hintText:T.value,hintVisible:q.value};if(n.prop&&(P.prop=`${n.prop}_item`),r.slots.append)N.append=r.slots.append;else if(R.value){const ee={class:h.value},L=o.h("div",ee,[n.unit]);N.append=()=>L}return o.h(l,P,N)}}}}const{componentName:cu,create:fu,scope:du}=ie("input-number-item"),bo=fu(uu(cu,du,Ce));function nt(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 hu(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let gu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=We(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function mu(){const e=o.getCurrentInstance();return new gu(e.proxy)}function vo(e,t,l){const n=nt(e,t),r=nt(e,l);if(n!==r)return!1;const a=ft(e,t),i=ft(e,l);return a===i}function vr(e,t,l,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 u=t[i];if(Array.isArray(u)){const s=vr(e,u,l,n);r.push(s)}else{let s=!1;for(let c of a){if(l==="text")s=nt(e,c)===u;else if(l==="item")s=vo(e,c,u);else{let d=ft(e,c);d==null&&(d=nt(e,c)),s=d===u}if(s){r.push(c),a=hu(e,c);break}}if(!s)break}}return r}function yu(e){return{text:e,value:e}}const wr={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 pu(e,t,l){return{props:{...$e,...Re,...wr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(null),v=o.ref([]),b=o.computed(()=>v.value?v.value.map(Y=>Array.isArray(Y)?Y.map(W=>nt(n,W)).join(" "):nt(n,Y)).join(" "):""),f=(U,Y,k,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(p.value===U)return;p.value=U;const X=o.toRaw(U);if(W){const le=oe?.value.getCheckedNodes();if(le)if(n.multiple){const ce=[];le.forEach(fe=>{const pe=(fe.pathNodes??[]).map(Ee=>Ee.data);ce.push(pe)}),c("update:pathNodes",ce)}else{const fe=(le[0]?.pathNodes??[]).map(ye=>ye.data);c("update:pathNodes",fe)}c("update:modelValue",X),c("change",X)}return}const Z=vr(n,U,Y,k);if(Z===null){if(v.value.length===0||v.value===null)return;v.value=[],p.value=null,W&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const O=Z[Z.length-1];if(_.value.checkStrictly!==!0&&O&&!Array.isArray(O)&&Array.isArray(O.children)&&O.children.length>0){const X=[];Z.forEach(le=>{const ce=`${nt(n,le)}`;X.push(ce)}),X.length>0&&(z.value=X.join(n.separator))}else z.value=null;let K=!0;if(Z.length!==v.value.length)K=!1;else for(let X=0;X<Z.length;X++){const le=Z[X],ce=v.value[X];if(Array.isArray(le)){if(!Array.isArray(ce)||le.length!==ce.length)K=!1;else for(let fe=0;fe<le.length;fe++)if(!vo(n,le[fe],ce[fe])){K=!1;break}}else vo(n,le,ce)||(K=!1);if(!K)break}if(!K){v.value=Z;let X=[],le=[];Z.forEach(fe=>{if(Array.isArray(fe)){let ye=[],pe=[];for(let Ee of fe)ye.push(ft(n,Ee)),n.valueType==="text"?pe.push(nt(n,Ee)):n.valueType==="item"?pe.push(Ee):pe.push(ft(n,Ee));X.push(ye),le.push(pe)}else X.push(ft(n,fe)),n.valueType==="text"?le.push(nt(n,fe)):n.valueType==="item"?le.push(fe):le.push(ft(n,fe))}),p.value=X;const ce=o.toRaw(le);W&&(c("update:pathNodes",Z),c("update:modelValue",ce),c("change",ce))}},h=o.ref([]),A=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,U=>ue(U)),$=mu(),T=async(U,Y)=>{if(U){const k=await $.load("cascader",U,Y);if(k.length>0)if(typeof k[0]=="string"){let O=k.map(K=>yu(K));h.value=O}else h.value=k}};o.watch([()=>n.source,()=>n.params],async([U,Y])=>{T(U,Y)},{immediate:!(A.value||n.lazy)});let q=!1;const j=()=>{q||(q=!0,T(n.source,n.params))};o.watch([()=>h.value,()=>n.modelValue],([U,Y])=>{f(Y,n.valueType,U,!1),c("setValue",Y)}),n.lazy&&f(n.modelValue,"value",[],!1);let V=null,I=o.ref(!1);typeof n.remoteMethod=="function"&&(V=async U=>{if(U!=null){I.value=!0;try{const Y=await n.remoteMethod(U);h.value=Y}catch(Y){console.error(Y)}I.value=!1}});const R=o.ref(!1),x=e,z=o.ref(null),y=o.computed(()=>({[x]:!0,"is-incomplete":z.value&&z.value.length>0})),_=o.computed(()=>{let U={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(U.multiple=!0),n.props&&Object.assign(U,n.props),n.lazy&&(U.lazy=!0,typeof n.lazyLoad=="function"?U.lazyLoad=n.lazyLoad:U.lazyLoad=async(Y,k)=>{const W=await $.load("cascader",n.source,Y,!0);if(Y?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===Y.level){const Z=Y.pathLabels??[];let O=[];Z.forEach(K=>{K&&O.push(K)}),O.length>0&&(z.value=O.join(n.separator))}else z.value=null;k(W)}),U}),J=U=>{n.allowCreate?(c("update:modelValue",U),c("change",U),p.value=U):f(U,"value",h.value,!0)};let B=ge(n,"hintText"),N=o.ref(!1);const M=U=>{let k=U.target.value;R.value=!0,he(B.value)||(N.value=!0),c("focus",k,U)},P=U=>{setTimeout(()=>{N.value&&(N.value=!1),R.value=!1},0);let k=U.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),D.value||c("blur",k,U)},G=()=>{c("clear","")},ee=o.ref(!1);let L=null;const ne=()=>{n.showTooltip&&ee.value===!1&&(L&&clearTimeout(L),L=setTimeout(()=>{ee.value=!0},150))},E=()=>{L&&(clearTimeout(L),ee.value=!1,L=null)},C=o.computed(()=>ee.value||N.value),F=o.computed(()=>ee.value?b.value:B.value),D=o.ref(!1),w=U=>{D.value=U,c("visible-change",U),U||c("selected")},H=U=>{c("remove-tag",U)},Q=U=>{c("expand-change",U)},oe=o.ref();return Se({focus:()=>{oe?.value.focus()},blur:()=>{oe?.value.blur()},getCheckedNodes:()=>oe?.value.getCheckedNodes(),setDisabled:U=>{a.value=U},setReadonly:U=>{u.value=U}}),()=>{const Y={...r.attrs,ref:oe,class:y.value,props:_.value,clearable:n.clearable,placeholder:z.value||g.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:p.value,separator:n.separator,onClear:G,onChange:J,onFocus:M,onBlur:P,onVisibleChange:w,onRemoveTag:H,expandChange:Q};typeof V=="function"&&(Y["remote-method"]=V,Y.loading=I.value);const k={};r.slots.option&&(k.default=r.slots.option),r.slots.empty&&(k.empty=r.slots.empty);const W=[],Z=o.h(S.ElCascader,Y,k);W.push(Z);const O={default:()=>W};O.label=r.slots.default,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const X={...De(n,wr),hintText:F.value,hintVisible:C.value,onMouseover:ne,onMouseleave:E};return n.prop&&(X.prop=`${n.prop}_item`),A.value&&!n.lazy&&(X["appear-listen"]=!0,X.onAppear=j),o.h(l,X,O)}}}}const{componentName:bu,create:vu,scope:wu}=ie("cascader-item"),wo=vu(pu(bu,wu,Ce)),Sr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Su(e,t,l){return{props:{...$e,...Re,...Sr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),{toLocaleRefs:d}=qe.useFoxI18n(t),g=d(n,["placeholder"]),p=o.ref(!1),v=ge(n,"modelValue",null,c),b=e,f=o.computed(()=>({[b]:!0})),h=x=>{v.value=x,c("update:modelValue",x),c("input",x)},A=x=>{c("change",x)},$=x=>{c("select",x)};let T=ge(n,"hintText"),q=o.ref(!1);const j=x=>{let y=x.target.value;p.value=!0,he(T.value)||(q.value=!0),c("focus",y,x)},V=x=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),c("blur",y,x)},I=()=>{c("clear","")},R=o.ref();return Se({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...r.attrs,ref:R,class:f.value,placeholder:g.placeholder.value,clearable:n.clearable,disabled:i.value,readonly:s.value,modelValue:v.value,onClear:I,onChange:A,onInput:h,onFocus:j,onBlur:V,onSelect:$},y={};r.slots.prepend&&(y.prepend=r.slots.prepend),r.slots.append&&(y.append=r.slots.append),r.slots.prefix&&(y.prefix=r.slots.prefix),r.slots.suffix&&(y.suffix=r.slots.suffix),r.slots.option&&(y.default=r.slots.option);const _=[],J=o.h(S.ElAutocomplete,z,y);_.push(J);const B={default:()=>_};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(n,Sr),hintText:T.value,hintVisible:q.value};return n.prop&&(M.prop=`${n.prop}_item`),o.h(l,M,B)}}}}const{componentName:xu,create:Tu,scope:$u}=ie("autocomplete-item"),So=Tu(Su(xu,$u,Ce));function Cu(e,t,l,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(p=>p[n]===d);if(!g)break;i.push(g[l])}return i}if(Array.isArray(u))for(let s=0;s<t.length&&s<a.length;s++){let c=t[s],d=a[s];const g=c.find(p=>p[n]===d);if(!g)break;i.push(g[l])}else{let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],g=s.find(p=>p[n]===d);if(!g)break;i.push(g[l]),s=g[r]}}return i}let Eu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Nu(){const e=o.getCurrentInstance();return new Eu(e.proxy)}const xr={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 ku(e,t){return{props:{...xr},setup(l,{attrs:n,slots:r}){const a=Nu(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([c,d])=>{i.value=await a.load(l.sourceType,c,d)},{immediate:!0});const u=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Cu(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return c.length==0?l.emptyText??"":c.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${c[0]}`:c[0]:c.join(l.separator)}),s=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const c={...n};return r.default?r.default({text:u.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===u.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},u.value):o.h(s,c,{default:()=>u.value}):o.h(s,c,u.value)}}}}const{componentName:kg,create:Iu,scope:Ig}=ie("mapping"),Ft=Iu(ku());function Ou(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);n=n[g][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Du(e,t){return{props:{...xr},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const u=Ou(i.row,i.column.property);return r.default?o.h(Ft,{...l,modelValue:u},{default:r.default}):o.h(Ft,{...l,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return o.h(S.ElTableColumn,{...n},a)}}}}const{componentName:Og,create:Vu,scope:Dg}=ie("table-mapping-column"),xo=Vu(Du()),Ru=Symbol.for("TableStateKey");function Tr(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);n=n[g][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Fu(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Ru,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=Tr(u.row,u.column.property),c=a?Tr(a,u.column.property):null,d=s===c,g={class:{"el-radio__input":!0,"is-checked":d}},p=o.h("span",g,[o.h("span",{class:{"el-radio__inner":!0}})]),v={class:{"el-radio":!0,"is-checked":d}};return o.h("label",v,[p])}};return o.h(S.ElTableColumn,{...n},i)}}}}const{componentName:Vg,create:Au,scope:Rg}=ie("table-radio-column"),To=Au(Fu()),Mu={},Lu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"};function Bu(e,t){return o.openBlock(),o.createElementBlock("svg",Lu,t[0]||(t[0]=[o.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)]))}const _u=Ye(Mu,[["render",Bu]]),{componentName:Fg,create:qu,scope:Ag}=ie("table-setting"),Pu={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:"不固定"}},ju=qu({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:_u,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...Pu},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed===""||w.fixed===!0||w.fixed==="left")),i=o.computed(()=>r.value.filter(w=>w.label===""||w.type?!1:w.fixed==="right")),u=o.computed(()=>r.value.filter(w=>!(w.label===""||w.type||w.fixed!==void 0))),s=o.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=o.computed(()=>a.value.length>0),d=o.computed(()=>i.value.length>0),g=w=>w.length>1,p=(w,H)=>{Array.isArray(w)&&Array.isArray(H)&&w.forEach(U=>{H.some(Y=>Y.prop===U.prop?(U.label=Y.label,!0):!1)});const Q=[];r.value=w.map((U,Y)=>(!(U.label===""||U.type)&&U.visible!==!1&&Q.push(U.prop),{...U,sortIndex:Y})),u.value.length+a.value.length+i.value.length===Q.length?$.value=!0:Q.length>0&&(T.value=!0),V.value=Q},v=w=>w?w.type?w.type:w.label?w.prop:"":"",b=(w,H)=>{if(w.length!==H.length)return!1;const Q=w.map(oe=>v(oe));for(let oe of H){const U=v(oe);if(Q.indexOf(U)===-1)return!1}return!0},f=w=>{if(!w){const H=e.tableRef.getColumnSetting(),Q=H.srcColumnPropertyList;n=Q.map((oe,U)=>({...oe,sortIndex:U})),w=H.columnPropertyList,w&&w.length>0&&b(Q,w)||(w=Q)}p(w,n)},h=()=>{e.tableRef.setColumnSetting(r.value)},A=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=o.ref(!1),T=o.ref(!1),q=w=>{const H=[];r.value.forEach(oe=>{w&&!(oe.label===""||oe.type)&&H.push(oe.prop),oe.visible=w}),$.value=!1,T.value=!1,u.value.length+a.value.length+i.value.length===H.length?$.value=!0:H.length>0&&(T.value=!0),V.value=H,h()},j=()=>{f(n),h()},V=o.ref([]),I=w=>{r.value.forEach(Q=>{if(Q.label===""||Q.type)return;const oe=w.indexOf(Q.prop)!==-1;Q.visible=oe}),$.value=!1,T.value=!1;const H=u.value.length+a.value.length+i.value.length;w.length===H?$.value=!0:w.length>0&&(T.value=!0),h()},R=()=>{f()};o.onMounted(()=>{setTimeout(()=>{f()},50)});const x={currentRow:null,index:null,roleType:null},z=w=>w?w.dataset&&w.dataset.role==="row"?w:w.tagName.toLowerCase()!=="body"?(w=w.parentElement,z(w)):null:null,y=w=>{const H=w.currentTarget;H&&H.dataset&&(x.roleType=H.dataset.roleType,x.index=H.dataset.index)},_=w=>{x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null),x.index=null,x.roleType=null},J=w=>{const H=w.currentTarget;w.relatedTarget;const Q=z(H);if(!Q)return;const oe=Q.dataset&&Q.dataset.roleType;x.roleType===oe&&(w.preventDefault(),x.currentRow&&x.currentRow!==Q&&x.currentRow.classList.remove("is-dragover"),Q.classList.add("is-dragover"),x.currentRow=Q)},B=w=>{w.preventDefault(),x.currentRow&&(x.currentRow.classList.remove("is-dragover"),x.currentRow=null)},N=w=>{const H=w.currentTarget,Q=z(H);if(!Q)return;const oe=Q.dataset&&Q.dataset.roleType;if(x.roleType!==oe)return;w.preventDefault();const U=Number(x.index),Y=Number(Q.dataset.index);if(U!==Y){if(U<Y){const k=r.value[U];r.value.splice(U,1),r.value.splice(Y,0,k)}else{const k=r.value[U];r.value.splice(U,1),r.value.splice(Y+1,0,k)}p(r.value,n),h()}},M=w=>{const H=r.value[w];H.fixed="left",h()},P=w=>{const H=r.value[w];H.fixed="right",h()},G=w=>{const H=r.value[w];H.fixed=void 0,h()},ee=new Map;let L=null;function ne(w){const H=document.createRange();return H.setStart(w,0),H.setEnd(w,w.childNodes.length),H.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:g,isCheckAll:$,isIndeterminate:T,handleCheckAllChange:q,handleReset:j,checkedValue:V,handleCheckChange:I,onShow:R,onDragStart:y,onDragEnd:_,onDragOver:J,onDragLeave:B,onDrop:N,toLeftFixed:M,toRightFixed:P,toUnFixed:G,checkboxLabelStyle:A,onMouseOverForOverflowText:(w,H,Q)=>{const oe=w.currentTarget;if(oe){const U=Math.floor(oe.offsetWidth);if(Math.floor(ne(oe))>U){let k=ee.get(H);if(k){if(k===L)return;Le.hide(k)}k=Le.show(oe,Q,{type:"text",placement:"top",closeOnClick:!1}),k&&(ee.set(H,k),L=k)}}},onMouseLeaveForOverflowText:(w,H)=>{const Q=ee.get(H);Q&&(Le.hide(Q),Q===L&&(L=null))},onMouseOverForTip:(w,H)=>{const Q=w.currentTarget;Q&&(L&&Le.hide(L),L=Le.show(Q,H,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:w=>{L&&(Le.hide(L),L=null)}}}}),zu={class:"fox-table-setting"},Hu={class:"fox-table-setting__header"},Ku={class:"fox-table-setting__body"},Wu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Yu={key:0,class:"fox-table-setting__body-title"},Uu=["data-index","draggable"],Gu=["onMouseover","onMouseleave"],Xu={class:"tools-item"},Zu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Ju={key:0,class:"fox-table-setting__body-title"},Qu=["data-index","draggable"],ec=["onMouseover","onMouseleave"],tc={class:"tools-item"},nc={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},oc={key:0,class:"fox-table-setting__body-title"},lc=["data-index","draggable"],rc=["onMouseover","onMouseleave"],ac={class:"tools-item"};function ic(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("RefreshLeft"),d=o.resolveComponent("FoxIcon"),g=o.resolveComponent("Download"),p=o.resolveComponent("fox-checkbox"),v=o.resolveComponent("FoxCheckboxGroup"),b=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(b,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",zu,[o.createElementVNode("div",Hu,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",Ku,[o.createVNode(v,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Wu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",Yu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[6]||(t[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[7]||(t[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[8]||(t[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[9]||(t[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,Gu)]),_:2},1032,["value"]),o.createElementVNode("div",Xu,[o.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[1]||(t[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[2]||(t[2]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[3]||(t[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[4]||(t[4]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"])])],40,Uu))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",Zu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",Ju,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[15]||(t[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[16]||(t[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[17]||(t[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[18]||(t[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",value:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,ec)]),_:2},1032,["value"]),o.createElementVNode("div",tc,[o.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[10]||(t[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[12]||(t[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[13]||(t[13]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"])])],40,Qu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",nc,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",oc,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,f=>(o.openBlock(),o.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[24]||(t[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[25]||(t[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[26]||(t[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[27]||(t[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(p,{class:"checkbox-item",label:f.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(f.label),45,rc)]),_:2},1032,["label"]),o.createElementVNode("div",ac,[o.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[19]||(t[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[20]||(t[20]=h=>e.onMouseLeaveForTip(h))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[21]||(t[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(g)]),_:2},1032,["onClick"])])],40,lc))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Cn=Ye(ju,[["render",ic]]);let sc=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,u){if(Array.isArray(l)){let c=(n-1)*r,d=c+r;d>l.length&&(d=l.length);const g=l.slice(c,d);return{totalSize:l.length,page:g}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,u]);const s=We(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Qe(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(s,null,[l,n,r,a,i,u]))}};function uc(){const e=o.getCurrentInstance();return new sc(e.proxy)}class cc{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=We(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=We(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=We(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function $r(){const e=o.getCurrentInstance();return new cc(e.proxy)}const fc=Symbol.for("TableStateKey"),Cr={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]},rowClassName:{type:[Function,String]},cellClassName:{type:[Function,String]},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"}},Er={pageIndex:{type:[Number],required:!1,default:()=>1},pageSize:{type:[Number],required:!1,default:()=>10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:()=>"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:()=>"right"},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}},$o={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:()=>"不固定"}},dc={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function hc(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let g=a.substring(0,u);n=n[g][d]}else n=n[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(n=n[a])}return n}function Co(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=hc(n,r);if(a!==i)return!1}return!0})}function gc(e,t,l){return{inheritAttrs:!1,props:{...$e,...Re,...Cr,...Er,...$o,...dc},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=qe.useFoxI18n(t),{emitEvent:i,broadcast:u}=ke({componentName:e,validateHandler:{getValue(...te){return I.value}}},n.prop??r.attrs.name),s=e,c=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),g=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),p=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),v=o.shallowRef({}),b=o.computed(()=>({...v.value,...n.params??{},...n.baseParams??{}})),f=o.ref(n.infiniteLoad===!0?0:n.pageIndex),h=o.ref(n.pageSize),A=ue(n.infiniteLoad);A||(o.watch(()=>n.pageIndex,te=>{f.value=te}),o.watch(()=>n.pageSize,te=>{h.value=te}),o.watch([f,h],([te,re],[ae,se])=>{re!==se&&(f.value=1,te=1),y(n.data,te,re,b.value)}));const $=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);$()&&o.watch([()=>n.data,b],async([te,re],[ae,se])=>{$()&&(te!==ae&&(x=!0),!(!Array.isArray(te)&&et(te,ae)&&et(re,se))&&(A?(f.value=0,j.value=!0,I.value=[],J()):f.value===1?y(te,f.value,h.value,re):f.value=1))},{deep:!0});const T=te=>{f.value=te,i("page-index-change",te)},q=te=>{h.value=te,i("page-size-change",te)},j=o.ref(!0),V=o.ref(0),I=o.ref(),R=uc();let x=!0;const z=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,te=>ue(te)),y=async(te,re,ae,se,Ne)=>{x=!1;try{if(Ne===!0){if(!j.value)return!1;const be=await R.load("table",te,re,ae,se,x,a.value);return V.value=be.totalSize,!be.page||!Array.isArray(be.page)||(Reflect.apply([].push,I.value,be.page),setTimeout(()=>{i("loaded-data")},250),(I.value?.length??0)>=V.value)||be.page.length<ae?(j.value=!1,!1):!0}else{const be=await R.load("table",te,re,ae,se,x,a.value);return V.value=be.totalSize,I.value=be.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(be){console.error("[FoxUI] Load Table Data Fail",be),V.value=0,I.value=[]}return!1};let _=!1;const J=async()=>{if(!_){if(_=!0,!j.value){_=!1;return}f.value+=1,await y(n.data,f.value,h.value,b.value,!0),_=!1}},B=(te={},re=!1)=>new Promise(async ae=>{v.value={...o.toRaw(te??{})},re||(f.value=n.pageIndex??1),A===!0?(f.value=0,I.value=[],j.value=!0,await J()):await y(n.data,f.value,h.value,b.value),ae()}),N=()=>{V.value=0,I.value=[],A===!0&&(f.value=0,j.value=!0)};let M=!1;const P=()=>{M||(M=!0,B())},G=o.ref(null);if(A===!0){let te=null;const re=()=>{G.value&&(te=new IntersectionObserver(se=>{let Ne=!1;for(let be of se)if(be.intersectionRatio>0){Ne=!0;break}Ne&&J()}),te.observe(G.value))},ae=()=>{!te||!G.value||(te.unobserve(G.value),te=null)};o.onMounted(re),o.onBeforeUnmount(ae)}$()&&!z.value&&B();const ee=o.ref(null);o.provide(fc,{currentRow:ee});const L=(te,re)=>{ee.value=te,i("current-change",te,re)},ne=(te,re,ae)=>{i("row-click",te,re,ae),ue(n.rowClickSelectable)===!0&&xe?.value.toggleRowSelection(te)},E=[],C=(te,re)=>{if(i("expand-change",te,re),ue(n.uniqueExpansion))if(Array.isArray(re)&&re.length==0){const ae=E.length;E.splice(0,ae)}else{E.forEach(se=>{se!==te&&xe?.value.toggleRowExpansion(se,!1)});const ae=E.length;E.splice(0,ae,te)}},F=r.attrs.id??n.prop??r.attrs.name,D=$r(),w=o.ref([]);let H=[];const Q=()=>({srcColumnPropertyList:H.map(re=>({...re})),columnPropertyList:w.value}),oe=te=>{w.value=[...te],Y()},U=async()=>{const te=await D.load(F);te&&(w.value=te)},Y=()=>{D.save(F,w.value)},k=()=>{D.remove(F)};U();const W=te=>te?te.type?te.type:te.label?te.prop:"":"",Z=()=>typeof r.slots.default=="function"?r.slots.default():[],O=(te,re={})=>{for(let ae in re){const se=re[ae];typeof se!="function"&&(te[ae]=se)}},K=o.computed(()=>{const te=Z(),re=new Map;if(H=[],te.forEach(ae=>{const Ne=ae;if(!Ne.props)return;const be=W(Ne.props);re.set(be,Ne);const He={label:"",prop:""};O(He,Ne.props),H.push(He)}),w.value.length===H.length){const ae=[];for(let se of w.value){const Ne=W(se),be=re.get(Ne);if(!be)return te;if(se.visible===!1)continue;const He=be;He.props.fixed=se.fixed,ae.push(He)}return ae}return te}),X=o.shallowRef(new Map),le=({row:te,column:re,rowIndex:ae,columnIndex:se})=>{const Ne=`${ae}_${re.property}`,be=`${ae}_${se}`;let He=X.value.get(Ne);return He||(He=X.value.get(be)),typeof He=="string"?He:""},ce=te=>te?re=>{const ae=[];let se=le(re);return se&&ae.push(se),se=se=typeof te=="function"?te(re):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:le,fe=(te=!1)=>{X.value.forEach((re,ae)=>{ye(ae,re,te)})},ye=(te,re,ae=!1)=>{const se=`${te}_item`;ae?(u.clearPersistantMessage(),Array.isArray(re)?u.emitToChildren({name:te},"setCellClassNames",[]):u.emitToChildren({name:se},"setCustomClassName","")):Array.isArray(re)?u.emitToChildren({name:te,cachePolicy:"Persistant",uniqueId:se},"setCellClassNames",re):u.emitToChildren({name:se,cachePolicy:"Persistant",uniqueId:se},"setCustomClassName",re)},pe=(te,re,ae)=>{const se=`${te}_${re}`;ae?(X.value.set(se,ae),ye(se,ae)):(X.value.delete(se),ye(se,"",!0)),o.triggerRef(X)},Ee=te=>{fe(!0),X.value.clear(),te.forEach(re=>{const ae=`${re.rowIndex}_${re.column}`;Array.isArray(re.children)?X.value.set(ae,re.children):typeof re.cellClassName=="string"&&X.value.set(ae,re.cellClassName)}),fe(),o.triggerRef(X)},ht=()=>{fe(),X.value.clear(),o.triggerRef(X)},Ue=o.shallowRef(new Map),gt=({rowIndex:te})=>{const re=`${te}`;return Ue.value.get(re)??""},rl=te=>{debugger;return te?re=>{const ae=[];let se=gt(re);return se&&ae.push(se),se=typeof te=="function"?te(re):te,se&&ae.push(se),ae.length===0?"":ae.join(" ")}:gt},vg=(te,re)=>{const ae=`${te}`;re?Ue.value.set(ae,re):Ue.value.delete(ae),o.triggerRef(Ue)},wg=()=>{Ue.value.clear(),o.triggerRef(Ue)},xe=o.ref();return Se({clearSelection:()=>xe?.value.clearSelection(),getSelectionRows:()=>xe?.value.getSelectionRows(),toggleRowSelection:(te,re)=>{xe?.value.toggleRowSelection(te,re)},toggleRowSelectionByProp:(te,re)=>{if(!I.value)return;const ae=Co(I.value,te);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowSelection(se,re)})},toggleAllSelection:()=>{xe?.value.toggleAllSelection()},toggleRowExpansion:(te,re)=>{xe?.value.toggleRowExpansion(te,re)},toggleRowExpansionByProp:(te,re)=>{if(!I.value)return;const ae=Co(I.value,te);ae.length!==0&&ae.forEach(se=>{xe?.value.toggleRowExpansion(se,re)})},setCurrentRow:te=>{xe?.value.setCurrentRow(te)},setCurrentRowByProp:te=>{if(!I.value)return;const re=Co(I.value,te);re.length!==0&&xe?.value.setCurrentRow(re[0])},getCurrentRow:()=>ee.value,clearSort:()=>{xe?.value.clearSort()},clearFilter:te=>{xe?.value.clearFilter(te)},doLayout:()=>{xe?.value.doLayout()},sort:(te,re)=>{xe?.value.sort(te,re)},scrollTo:(te,re)=>{xe?.value.scrollTo(te,re)},setScrollTop:te=>{xe?.value.setScrollTop(te)},setScrollLeft:te=>{xe?.value.setScrollLeft(te)},loadData:B,clearData:N,getData(){return I.value},getTotalSize(){return V.value},getPageIndex(){return f.value},getPageSize(){return h.value},getColumnSetting:Q,setColumnSetting:oe,removeColumnSetting:k,setCellClassName:pe,setCellClassNames:Ee,clearCellClassName:ht,setRowClassName:vg,clearRowClassName:wg}),()=>{const re={...Ze(r.attrs),onCurrentChange:L,onRowClick:ne,onExpandChange:C,data:I.value,ref:xe,class:c.value,"cell-class-name":ce(n.cellClassName),"row-class-name":rl(n.rowClassName)},ae={};if(r.slots.default&&(ae.default=()=>K.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),A===!0){const Ge=[];if(j.value){const qt=o.h(Ie.Loading,{class:`${s}__infinite-icon`});Ge.push(qt);const il=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);Ge.push(il)}else{const qt=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);Ge.push(qt)}const mt={ref:G,class:`${s}__infinite`},al=o.h("div",mt,Ge);ae.append=()=>al}const se=o.h(S.ElTable,re,ae),Ne=[];if(Ne.push(se),!A){let Ge=null;if(typeof r.slots.pagination=="function")Ge=r.slots.pagination();else if(n.showPagination){const mt={class:p.value,total:V.value,pageSize:h.value,"onUpdate:pageSize":q,pageSizes:n.pageSizes,currentPage:f.value,"onUpdate:currentPage":T,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Ge=o.h(S.ElPagination,mt)}if(n.showSetting){const mt=[];Ge&&mt.push(Ge);const al=o.h(S.ElIcon,{class:d.value},{default:()=>o.h(Ie.Setting)}),qt=kl(n,$o),il=o.h(Cn,{...qt,tableRef:{getColumnSetting:Q,setColumnSetting:oe,removeColumnSetting:k}},{default:()=>al});mt.push(il);const Sg=o.h("div",{class:g.value},mt);Ne.push(Sg)}else Ge&&Ne.push(Ge)}const be={default:()=>Ne},$t={...De(n,Cr,Er,$o)};return n.prop&&($t.prop=`${n.prop}_item`),$t.contentClass=`${s}__wrap`,$t.errorMarkClass="is-table-error",z.value&&$()&&($t["appear-listen"]=!0,$t.onAppear=P),o.h(l,$t,be)}}}}const{componentName:mc,create:yc,scope:pc}=ie("table-item"),Eo=yc(gc(mc,pc,Ce));function wt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function At(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function bc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let vc=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function wc(){const e=o.getCurrentInstance();return new vc(e.proxy)}function Nr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=wt(e,t),r=wt(e,l);if(n!==r)return!1;const a=At(e,t),i=At(e,l);return a===i}function Sc(e,t,l,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(l==="text")i=wt(e,a)===t;else if(l==="item")i=Nr(e,a,t);else{let u=At(e,a);u==null&&(u=wt(e,a)),i=u===t}if(i){r=a;break}}return r}function xc(e){return{text:e,value:e}}function Tc(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const kr={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 $c(e,t,l){return{inheritAttrs:!0,props:{...$e,...Re,...kr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref(null),g=o.ref(null),p=(x,z,y,_=!0)=>{const J=Sc(n,x,z,y);if(J===null){if(g.value===null)return;g.value=null,d.value=null,_&&(c("update:modelValue",null),c("change",null));return}if(!Nr(n,J,g.value)){d.value=x;const N=o.toRaw(J);g.value=N;let M=null;n.valueType==="text"?M=wt(n,N):n.valueType==="item"?M=N:M=At(n,N),_&&(c("update:modelValue",M),c("change",M))}},v=o.ref([]),b=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,x=>ue(x)),f=wc(),h=async(x,z)=>{if(x){const y=await f.load("radio",x,z);if(y.length>0)if(typeof y[0]=="string"){let B=y.map(N=>xc(N));v.value=B}else v.value=y}};o.watch([()=>n.source,()=>n.params],async([x,z])=>{h(x,z)},{immediate:!b.value});let A=!1;const $=()=>{A||(A=!0,h(n.source,n.params))};o.watch([()=>v.value,()=>n.modelValue],([x,z])=>{p(z,n.valueType,x,!1),c("setValue",z)});const T=e,q=o.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),j=x=>{p(x,"value",v.value,!0)};let V=ge(n,"hintText"),I=ge(n,"hintVisible");const R=(x,z)=>{const y=[];return x.forEach((_,J)=>{const B=At(n,_),N=wt(n,_);let M=bc(n,_);i.value===!0&&(M=i.value),s.value===!0&&(M=s.value);const P=Tc(n,_,J)??{},G=`${B}_${J}`,ee={...P,key:G,value:B,size:n.size,border:ue(n.border)};M&&(ee.disabled=M),n.itemType==="button"?y.push(o.h(S.ElRadioButton,ee,{default:()=>[N]})):typeof z=="function"?y.push(o.h(S.ElRadio,ee,{default:()=>z(_)})):y.push(o.h(S.ElRadio,ee,{default:()=>[N]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Ze(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,onChange:j},y=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(v.value,r.slots.text);const J=o.h(S.ElRadioGroup,z,_);y.push(J);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(n,kr),hintText:V.value,hintVisible:I.value};return n.prop&&(M.prop=`${n.prop}_item`),b.value&&(M["appear-listen"]=!0,M.onAppear=$),o.h(l,M,B)}}}}const{componentName:Cc,create:Ec,scope:Nc}=ie("radio-item"),No=Ec($c(Cc,Nc,Ce));function St(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function xt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function kc(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,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Oc(){const e=o.getCurrentInstance();return new Ic(e.proxy)}function Ir(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=St(e,t),r=St(e,l);if(n!==r)return!1;const a=xt(e,t),i=xt(e,l);return a===i}function Dc(e,t,l,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 u=!1;if(l==="text")u=St(e,i)===a;else if(l==="item")u=Ir(e,i,a);else{let s=xt(e,i);s==null&&(s=St(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Vc(e){return{text:e,value:e}}function Rc(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const Or={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},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 Fc(e,t,l){return{inheritAttrs:!0,props:{...$e,...Re,...Or},emits:["change","update:modelValue","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=o.ref([]),g=o.ref([]),p=(x,z,y,_=!0)=>{const J=Dc(n,x,z,y);if(J===null){if(g.value===null||g.value.length===0)return;d.value=[],g.value=[],_&&(c("update:modelValue",[]),c("change",[]));return}let B=!0;if(J.length!==g.value.length)B=!1;else for(let N=0;N<J.length;N++){const M=J[N],P=g.value[N];if(!Ir(n,M,P)){B=!1;break}}if(!B){g.value=J;let N=[],M=[];J.forEach(G=>{N.push(xt(n,G)),n.valueType==="text"?M.push(St(n,G)):n.valueType==="item"?M.push(G):M.push(xt(n,G))}),d.value=N;const P=o.toRaw(M);_&&(c("update:modelValue",P),c("change",P))}},v=o.ref([]),b=Fe(o.computed(()=>n.appearLoad),"appearLoad",je.Near,x=>ue(x)),f=Oc(),h=async(x,z)=>{if(x){const y=await f.load("checkbox",x,z);if(y.length>0)if(typeof y[0]=="string"){let B=y.map(N=>Vc(N));v.value=B}else v.value=y}};o.watch([()=>n.source,()=>n.params],async([x,z])=>{h(x,z)},{immediate:!b.value});let A=!1;const $=()=>{A||(A=!0,h(n.source,n.params))};o.watch([()=>v.value,()=>n.modelValue],([x,z])=>{p(z,n.valueType,x,!1),c("setValue",z)});const T=e,q=o.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),j=x=>{p(x,"value",v.value,!0)};let V=ge(n,"hintText"),I=ge(n,"hintVisible");const R=(x,z)=>{const y=[];return x.forEach((_,J)=>{const B=xt(n,_),N=St(n,_);let M=kc(n,_);i.value===!0&&(M=i.value),s.value===!0&&(M=s.value);const P=Rc(n,_,J)??{},G=`${B}_${J}`,ee={...P,key:G,class:n.itemClass,value:B,size:n.size,border:ue(n.border)};M&&(ee.disabled=M),n.itemType==="button"?y.push(o.h(S.ElCheckboxButton,ee,{default:()=>[N]})):typeof z=="function"?y.push(o.h(S.ElCheckbox,ee,{default:()=>z(_)})):y.push(o.h(S.ElCheckbox,ee,{default:()=>[N]}))}),y};return Se({setDisabled:x=>{a.value=x},setReadonly:x=>{u.value=x}}),()=>{const z={...Ze(r.attrs),class:q.value,disabled:i.value||s.value,modelValue:d.value,"text-color":n.textColor,fill:n.fill,max:Te(n.max),min:Te(n.min),onChange:j},y=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(v.value,r.slots.text);const J=o.h(S.ElCheckboxGroup,z,_);y.push(J);const B={default:()=>y};B.label=r.slots.default,B.fixedPreTip=r.slots.fixedPreTip,B.fixedTip=r.slots.fixedTip;const M={...De(n,Or),hintText:V.value,hintVisible:I.value};return n.prop&&(M.prop=`${n.prop}_item`),b.value&&(M["appear-listen"]=!0,M.onAppear=$),o.h(l,M,B)}}}}const{componentName:Ac,create:Mc,scope:Lc}=ie("checkbox-item"),ko=Mc(Fc(Ac,Lc,Ce)),Dr={modelValue:{type:[Number,String],required:!1}};function Bc(e,t,l){return{props:{...$e,...Re,...Dr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",A=>Te(A),c),g=e,p=o.computed(()=>({[g]:!0})),v=A=>{c("update:modelValue",A),c("change",A)};let b=ge(n,"hintText"),f=o.ref(!1);const h=o.ref();return Se({setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const $={...Ze(r.attrs),ref:h,class:p.value,readonly:s.value||i.value,modelValue:d.value,onChange:v},T={},q=[],j=o.h(S.ElRate,$,T);q.push(j);const V={default:()=>q};V.label=r.slots.default,V.fixedPreTip=r.slots.fixedPreTip,V.fixedTip=r.slots.fixedTip;const R={...De(n,Dr),hintText:b.value,hintVisible:f.value};return n.prop&&(R.prop=`${n.prop}_item`),o.h(l,R,V)}}}}const{componentName:_c,create:qc,scope:Pc}=ie("rate-item"),Io=qc(Bc(_c,Pc,Ce)),Vr={modelValue:{type:[Boolean,String,Number],required:!1}};function jc(e,t,l){return{props:{...$e,...Re,...Vr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),{emitEvent:c}=ke({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),d=ge(n,"modelValue",null,c),g=e,p=o.computed(()=>({[g]:!0})),v=A=>{c("update:modelValue",A),c("change",A)};let b=ge(n,"hintText"),f=ge(n,"hintVisible");const h=o.ref();return Se({setDisabled:A=>{a.value=A},setReadonly:A=>{u.value=A}}),()=>{const $={...Ze(r.attrs),ref:h,class:p.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:v},T={},q=[],j=o.h(S.ElSwitch,$,T);q.push(j);const V={default:()=>q};V.label=r.slots.default,V.fixedPreTip=r.slots.fixedPreTip,V.fixedTip=r.slots.fixedTip;const R={...De(n,Vr),hintText:b.value,hintVisible:f.value};return n.prop&&(R.prop=`${n.prop}_item`),o.h(l,R,V)}}}}const{componentName:zc,create:Hc,scope:Kc}=ie("switch-item"),Oo=Hc(jc(zc,Kc,Ce)),Rr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Wc(e,t,l){return{props:{...$e,...Re,...Rr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=o.ref(null),i=Me(o.computed(()=>a.value??n.disabled)),u=o.ref(null),s=Ae(o.computed(()=>u.value??n.readonly)),c=o.ref(!1),{emitEvent:d}=ke({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},n.prop??r.attrs.name),g=ge(n,"modelValue",null,d),p=e,v=o.computed(()=>({[p]:!0})),b=I=>{d("update:modelValue",I),d("change",I)};let f=ge(n,"hintText"),h=o.ref(!1);const A=I=>{let x=I.target.value;c.value=!0,he(f.value)||(h.value=!0),d("focus",x,I)},$=I=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let x=I.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),q.value||d("blur",x,I)},T=()=>{d("clear","")},q=o.ref(!1),j=I=>{q.value=I,d("visible-change",I),I||d("selected")},V=o.ref();return Se({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},setDisabled:I=>{a.value=I},setReadonly:I=>{u.value=I}}),()=>{const R={...Ze(r.attrs),ref:V,class:v.value,disabled:i.value||s.value,modelValue:g.value,"onUpdate:modelValue":b,onClear:T,onFocus:A,onBlur:$,onVisibleChange:j},x={};r.slots.option&&(x.default=r.slots.option);const z=[],y=o.h(S.ElTreeSelect,R,x);z.push(y);const _={default:()=>z};_.label=r.slots.default,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const B={...De(n,Rr),hintText:f.value,hintVisible:h.value};return n.prop&&(B.prop=`${n.prop}_item`),o.h(l,B,_)}}}}const{componentName:Yc,create:Uc,scope:Gc}=ie("tree-select-item"),Do=Uc(Wc(Yc,Gc,Ce)),Xc={},Zc={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"};function Jc(e,t){return o.openBlock(),o.createElementBlock("svg",Zc,t[0]||(t[0]=[o.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)]))}const Qc=Ye(Xc,[["render",Jc]]),{componentName:Mg,create:ef,scope:Lg}=ie("group-setting"),tf={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:"到底部"}},nf=ef({components:{FoxPopover:S.ElPopover,FoxCheckbox:S.ElCheckbox,FoxCheckboxGroup:S.ElCheckboxGroup,FoxButton:S.ElButton,FoxIcon:S.ElIcon,DragIcon:Qc,Download:Ie.Download,RefreshLeft:Ie.RefreshLeft},props:{...tf},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=$r(),u=E=>E.length>1,s=()=>{const E=[],C=[...a.value];a.value=C.map((D,w)=>(D.visible!==!1&&E.push(D.prop),{...D,sortIndex:w})),a.value.length===E.length?f.value=!0:E.length>0&&(h.value=!0),T.value=E},c=E=>{let C=null;if(typeof E=="string")C=document.querySelectorAll(`.fox-group[prop="${E}"] > div > .fox-item[prop]`);else if(E&&typeof E=="object"){const D=E.$el??E;typeof D.querySelectorAll=="function"&&(C=D.querySelectorAll(".fox-item[prop]"))}if(!C)return[];const F=[];return C.forEach(D=>{const w=D.querySelector(".label--string");let H="";w&&(H=w.textContent??"");const Q=D.getAttribute("prop")??"",U=window.getComputedStyle(D,null).getPropertyValue("display");F.push({label:H,prop:Q,sortIndex:0,visible:U!=="none"})}),F},d=()=>{if(!r){const E=c(e.groupRef??e.groupProp);if(E.length===0)return!1;r=E}return!0},g=async(E=!1)=>{const C=await i.load(e.groupProp),F=D=>{if(!D||!r)return;const w=r.map(H=>({...H}));Array.isArray(C)&&C.forEach(H=>{w.some(Q=>{if(Q.prop===H.prop){const oe=Q.label;return Object.assign(Q,H),Q.label=oe,!0}return!1})}),a.value=w.sort((H,Q)=>H.sortIndex-Q.sortIndex),s(),E&&v(!1)};r?F(!0):Zt(d,e.initDelay,5,50,!1,F)},p=()=>{const E=r??[];a.value=E.map(C=>({...C})),s(),v()},v=(E=!0)=>{E&&i.save(e.groupProp,a.value);const C=a.value.map(F=>({...F}));t("change",C)},b=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=o.ref(!1),h=o.ref(!1),A=E=>{const C=[];a.value.forEach(D=>{E&&C.push(D.prop),D.visible=E}),f.value=!1,h.value=!1,a.value.length===C.length?f.value=!0:C.length>0&&(h.value=!0),T.value=C,v()},$=()=>{p()},T=o.ref([]),q=E=>{a.value.forEach(F=>{const D=E.indexOf(F.prop)!==-1;F.visible=D}),f.value=!1,h.value=!1;const C=a.value.length;E.length===C?f.value=!0:E.length>0&&(h.value=!0),v()},j=()=>{g()};o.onMounted(()=>{g(!0)});const V={currentRow:null,index:null},I=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,I(E)):null:null,R=E=>{const C=E.currentTarget;C&&C.dataset&&(V.index=C.dataset.index)},x=E=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null},z=E=>{const C=E.currentTarget;E.relatedTarget;const F=I(C);F&&(E.preventDefault(),V.currentRow&&V.currentRow!==F&&V.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),V.currentRow=F)},y=E=>{E.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},_=E=>{const C=E.currentTarget,F=I(C);if(!F)return;E.preventDefault();const D=Number(V.index),w=Number(F.dataset.index);if(D!==w){if(D<w){const H=a.value[D];a.value.splice(D,1),a.value.splice(w,0,H)}else{const H=a.value[D];a.value.splice(D,1),a.value.splice(w+1,0,H)}s(),v()}},J=E=>{const C=a.value[E];a.value.splice(E,1),a.value.splice(0,0,C),s(),v()},B=E=>{const C=a.value[E];a.value.splice(E,1),a.value.push(C),s(),v()};n({refresh:()=>{r=null,g(!1)}});const N=new Map;let M=null;function P(E){const C=document.createRange();return C.setStart(E,0),C.setEnd(E,E.childNodes.length),C.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:A,handleReset:$,checkedValue:T,handleCheckChange:q,onShow:j,onDragStart:R,onDragEnd:x,onDragOver:z,onDragLeave:y,onDrop:_,checkboxLabelStyle:b,toTop:J,toBottom:B,onMouseOverForOverflowText:(E,C,F)=>{const D=E.currentTarget;if(D){const w=Math.floor(D.offsetWidth);if(Math.floor(P(D))>w){let Q=N.get(C);if(Q){if(Q===M)return;Le.hide(Q)}Q=Le.show(D,F,{type:"text",placement:"top",closeOnClick:!1}),N.set(C,Q),M=Q}}},onMouseLeaveForOverflowText:(E,C)=>{const F=N.get(C);F&&(Le.hide(F),F===M&&(M=null))},onMouseOverForTip:(E,C)=>{const F=E.currentTarget;F&&(M&&Le.hide(M),M=Le.show(F,C,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:E=>{M&&(Le.hide(M),M=null)}}}}),of={class:"fox-group-setting"},lf={class:"fox-group-setting__header"},rf={class:"fox-group-setting__body"},af={class:"fox-group-setting__body-list","data-role":"container"},sf=["data-index","draggable"],uf=["onMouseover","onMouseleave"],cf={class:"tools-item"};function ff(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),u=o.resolveComponent("FoxButton"),s=o.resolveComponent("DragIcon"),c=o.resolveComponent("Download"),d=o.resolveComponent("FoxIcon"),g=o.resolveComponent("FoxCheckboxGroup"),p=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(p,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",of,[o.createElementVNode("div",lf,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",rf,[o.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",af,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,v=>(o.openBlock(),o.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]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:t[6]||(t[6]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:t[7]||(t[7]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:t[8]||(t[8]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:t[9]||(t[9]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(s,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:v.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:b=>e.onMouseOverForOverflowText(b,v.prop,v.label),onMouseleave:b=>e.onMouseLeaveForOverflowText(b,v.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(v.label),45,uf)]),_:2},1032,["label"]),o.createElementVNode("div",cf,[o.createVNode(d,{onClick:b=>e.toTop(v.sortIndex),onMouseover:t[1]||(t[1]=b=>e.onMouseOverForTip(b,e.toTopText)),onMouseleave:t[2]||(t[2]=b=>e.onMouseLeaveForTip(b)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(d,{onClick:b=>e.toBottom(v.sortIndex),onMouseover:t[3]||(t[3]=b=>e.onMouseOverForTip(b,e.toBottomText)),onMouseleave:t[4]||(t[4]=b=>e.onMouseLeaveForTip(b))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,sf))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Vo=Ye(nf,[["render",ff]]),df=["aria-labelledby"],hf=o.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),gf=[hf],mf=o.defineComponent({__name:"Uploader",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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},gf,14,df))}}),yf=["aria-labelledby"],pf=o.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),bf=[pf],vf=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},bf,14,yf))}}),wf=["aria-labelledby"],Sf=o.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),xf=[Sf],Ro=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},xf,14,wf))}}),Tf=["aria-labelledby"],$f=o.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),Cf=[$f],Ef=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Cf,14,Tf))}}),Nf=["aria-labelledby"],kf=o.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),If=[kf],Of=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},If,14,Nf))}}),Df=["aria-labelledby"],Vf=o.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),Rf=[Vf],Ff=o.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 l=e,n=t,r=s=>{n("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=o.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+l.name]:l.name,[l.class]:!!l.class}}),u=o.computed(()=>{const s={};return s.height=a(l.height)??a(l.size),s.width=a(l.width)??a(l.size),s.color=l.color,s});return(s,c)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Rf,14,Df))}}),Af={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,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Fr=(e,t)=>t[e.textKey],Mt=(e,t)=>t[e.valueKey],Mf=(e,t)=>t[e.visibleKey],Ar=(e,t)=>t[e.disabledKey],Lf=(e,t)=>{const l=t[e.doitKey];return ue(l)},Bf=(e,t)=>{const l=t[e.numKey];return l==null?null:Te(t[l])},Mr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function _f(e,t,l,n=!1){return{props:{...Af},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=o.computed(()=>{const E={};return E[`${e}`]=!0,E}),s=o.computed(()=>{const E={};return E[`${e}__titles`]=!0,E[`${r.direction}`]=!0,r.align==="left"&&(E.left=!0),r.scroll===!0&&(E.scrollable=!0),r.shape&&(E[`${r.shape}`]=!0),E}),c=o.computed(()=>({})),d=o.computed(()=>{if(!r.gutter)return 0;const E=me(r.gutter);return E<=0?0:E}),g=o.ref(r.modelValue);o.watch(()=>r.modelValue,E=>{g.value!==E&&(g.value=E,P(!1))});const p=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),v=o.computed(()=>{const E={};return f.value||(E.display="none"),E}),b=o.ref(),f=o.ref(!1),h=()=>{const E=!f.value;A(E)},A=E=>{const C=E;C?(f.value=C,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},$=o.ref(),T=o.ref([]),q=(E,C)=>{T.value[C]=E},j=E=>C=>{q(C,E)},V=(E,C)=>{const F=$.value,D=T.value;if(!F||!D||!D[E])return;const w=D[E];let H=0;r.direction==="vertical"?H=w.offsetTop-(F.offsetHeight-w.offsetHeight)/2:H=w.offsetLeft-(F.offsetWidth-w.offsetWidth)/2,I(F,H,C?0:.3,r.direction)},I=(E,C,F,D)=>{let w=0;const H=D==="horizontal"?E.scrollLeft:E.scrollTop,Q=F===0?1:Math.round(F*1e3/16);function oe(){D==="horizontal"?E.scrollLeft+=(C-H)/Q:E.scrollTop+=(C-H)/Q,++w<Q&&qn(oe)}oe()},R=(E,C)=>{const F=Mt(r,E),D={};return D[`${e}__titles-item`]=!0,D.disabled=Ar(r,E),D.active=F===g.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),C&&(C.class&&(D[`${C.class}`]=!0),C.disabled===!0&&(D.disabled=C.disabled)),D},x=(E,C)=>{const F={};if(d.value>0){const D=Math.abs(d.value/2);r.direction==="vertical"?(F["margin-top"]=`${D}px`,F["margin-bottom"]=`${D}px`):(F["margin-left"]=`${D}px`,F["margin-right"]=`${D}px`)}return C&&C.style&&Object.assign(F,C.style),F},z=(E,C)=>`${Mt(r,E)??C}`,y=(E,C)=>{const F=Mt(r,E),D={};D[`${e}__popup-item`]=!0,D.disabled=Ar(r,E),D.active=F===g.value,r.shape&&(D[`${r.shape}`]=!0);const w=Mr(r,E,C);return w&&w.disabled===!0&&(D.disabled=w.disabled),D},_=o.computed(()=>(r.data??[]).filter(C=>Mf(r,C)!==!1)),J=(E,C)=>{const F=Mt(r,E);if(g.value==F)return;const D=()=>{g.value=F,r.scroll&&V(C,!1),i("update:modelValue",F),i("change",E,C)};if(typeof r.beforeChange=="function"){const w=r.beforeChange(E,C);bl(w)?w.then(H=>{H!==!1&&D()}).catch(()=>{D()}):w!==!1&&D()}else D()},B=(E,C)=>function(){J(E,C)},N=(E,C)=>{J(E,C),A(!1)},M=(E,C)=>function(){N(E,C)},P=E=>{if(!Array.isArray(r.data)||!r.scroll)return;const C=r.data.findIndex(F=>Mt(r,F)===g.value);C!==-1&&V(C,E)};o.watch(()=>r.data,()=>{setTimeout(P,0)}),o.onMounted(()=>{P(!0)});const G=(E,C)=>{if(a.item)return a.item({item:E,index:C});const F=Mr(r,E,C),D=[];if(a.text){const oe=a.text({item:E,index:C});D.push(oe)}else{const oe=[];if(F?.doit===!0||Lf(r,E)){const W={class:[`${e}__titles-item-tip`,"doit"]},Z=o.h("view",W);oe.push(Z)}const U=F?.num??Bf(r,E);if(U){let W="";const Z=Te(U);Z>=100?W="99+":W=`${Z}`;const O={class:[`${e}__titles-item-tip`,"num"]},K=o.h("view",O,[W]);oe.push(K)}const Y={class:`${e}__titles-item-text`};oe.push(Fr(r,E));const k=o.h("view",Y,oe);D.push(k)}const w={class:`${e}__titles-item-line`},H=o.h("view",w);D.push(H);const Q={ref:j(C),class:R(E,F),style:x(E,F),key:z(E,C),onClick:B(E,C)};return o.h("view",Q,D)},ee=()=>{const E=a.default?a.default():[];if(E.length===0)for(let F=0;F<_.value.length;F++){const D=_.value[F],w=G(D,F);E.push(w)}const C={ref:$,class:s.value,style:c.value};return o.h("view",C,E)},L=()=>{let E=null;a.navigation?E=a.navigation():E=o.h(l);const C={class:`${e}__navigation`,onClick:h};return o.h("view",C,[E])},ne=()=>{const E=[];for(let F=0;F<_.value.length;F++){const D=_.value[F];let w=null;a.popupItem?w=a.popupItem({item:D,index:F}):w=Fr(r,D);const H={class:y(D,F),key:z(D,F),onClick:M(D,F)},Q=o.h("view",H,[w]);E.push(Q)}const C={class:p.value,style:v.value};return o.h("view",C,E)};return()=>{const E=[],C=ee();if(E.push(C),r.showQuickNavigation){const D=L();E.push(D);const w=ne();E.push(w)}const F={class:u.value};return o.h("view",F,E)}}}}const{create:qf,componentName:Pf,scope:jf}=ie("tabs-bar"),Fo=qf(_f(Pf,jf,vf,!1)),Lr=Symbol("TabsStatesKey"),zf={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},Br=10;function _r(e,t){return e>t&&e>Br?"horizontal":t>e&&t>Br?"vertical":""}function Lt(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bt(){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",l=()=>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 c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=_r(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:l,state:e}}function Hf(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),u=o.ref(0),s=o.ref(0),c=o.ref(0),d=o.ref(""),g=()=>d.value==="vertical",p=()=>d.value==="horizontal",v=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",l.value=0};return{move:h=>{if(h.touches){const T=h.touches[0];i.value=T.clientX-e.value,u.value=T.clientY-t.value,r.value=T.clientX,a.value=T.clientY}else{const $=h;i.value=$.clientX-e.value,u.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),n.value=Date.now()-l.value,d.value||(d.value=_r(s.value,c.value))},start:h=>{if(v(),h.touches){const T=h.touches[0];e.value=T.clientX,t.value=T.clientY}else{const $=h;e.value=$.clientX,t.value=$.clientY}l.value=Date.now()},reset:v,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:g,isHorizontal:p}}const Kf=15,Wf=300,Yf=200;function Uf(e,t,l=1){return e=Math.abs(e/t)/.003*(e<0?-1:1),e*l}function qr(e,t=0,l,n,r=Yf){l==="end"?e.style.transition=`transform ${r}ms linear`:e.style.transition="transform 0ms linear",n==="horizontal"?e.style.transform=`translate3d(${t}px, 0, 0)`:e.style.transform=`translate3d(0, ${t}px, 0)`}let Gf=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(t,l,n,r=1){this.onStart=t,this.onMove=l,this.onEnd=n,this.momentumReduceRatio=r,this.isTouch=Lt()}open(t){this.el=t;const l=Bt(),n=(r,a,i)=>{const u={delta:r,direction:a,type:i};this.onMove(u)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=r=>{if(this.moving)return;l.start(r),this.transitionEndTrigger=()=>{t.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,t.removeEventListener("transitionend",this.transitionend),t.addEventListener("transitionend",this.transitionend),t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.addEventListener("touchcancel",this.touchend);const a={delta:0,type:"start",direction:this.direction};this.onStart(a)},this.touchmove=r=>{if(!this.moving)return;l.move(r);let a=0;if(this.direction==="horizontal"){if(l.isVertical())return;a=l.state.deltaX}else{if(l.isHorizontal())return;a=l.state.deltaY}n(a,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;t.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),t.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&t.removeEventListener("touchcancel",this.touchend);let r=0;if(this.direction==="horizontal"){if(l.isVertical()){this.moving=!1;return}r=l.state.deltaX}else{if(l.isHorizontal()){this.moving=!1;return}r=l.state.deltaY}const a=l.state.duration;a<Wf&&Math.abs(r)>Kf?(r=Uf(r,a,this.momentumReduceRatio),n(r,this.direction,"end")):n(r,this.direction,"end")},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.transitionend&&t.addEventListener("transitionend",this.transitionend),this.touchstart&&t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&t.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&t.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&t.addEventListener("touchcancel",this.touchcancel),this.el=null}};function Xf(e,t,l,n=1){return new Gf(e,t,l,n)}function Zf(e,t,l=!1){return{props:{...zf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),u={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:V=>{const I={name:V};u.current.value===V&&(I.loaded=!0),i.value.push(I),o.triggerRef(i)},remove:V=>{const I=i.value.findIndex(R=>R.name===V);I!==-1&&i.value.splice(I,1)},isLoaded:V=>{if(!n.lazy)return!0;const I=i.value.findIndex(R=>R.name===V);return I!==-1?u.current.value?i.value[I].loaded??!1:I===0:!1}};o.provide(Lr,u);const s=V=>{const I=i.value.findIndex(R=>R.name===V);I!==-1&&(i.value[I].loaded=!0,o.triggerRef(i))};o.watch([()=>n.modelValue,()=>n.direction],([V,I])=>{u.current.value!==V&&(u.current.value=V??"",s(V??"")),u.direction.value!==I&&(u.direction.value=I)});const c=o.ref(null),d=o.ref(null),g=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let p=!0;const v=o.computed(()=>{const V={},I=i.value.length;if(I<=0)return V;const R=i.value.findIndex(x=>x.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(V.height=`${I*u.tabHeight.value}px`,R!==-1&&(V.transform=`translate(0, -${R*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(V.width=`${I*u.tabWidth.value}px`,R!==-1&&(V.transform=`translate(-${R*u.tabWidth.value}px, 0)`)),p&&(p=!1,V.transition="transform 0s ease"),V}),b={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},f=V=>{const I=i.value.length,R=i.value.findIndex(x=>x.name===u.current.value);b.moved=0,V.direction==="vertical"?(b.min=-1*(u.tabHeight.value*(I-1)+u.tabHeight.value/4),b.max=u.tabHeight.value/4,b.start=-R*u.tabHeight.value,b.itemDistance=u.tabHeight.value):(b.min=-1*(u.tabWidth.value*(I-1)+u.tabWidth.value/4),b.max=u.tabWidth.value/4,b.start=-R*u.tabWidth.value,b.itemDistance=u.tabWidth.value)},h=V=>{const I=d.value;if(!I)return;let R=b.start+V.delta;if(R>b.max?R=b.max:R<b.min&&(R=b.min),V.type==="move")qr(I,R,"move",V.direction,300);else if(V.type==="end"){let x=Math.floor(Math.abs(R)*1/b.itemDistance);const z=Math.abs(R)%b.itemDistance;b.start>R?z>=b.itemDistance*b.triggerAutoMoveRatio&&(x+=1):z>b.itemDistance-b.itemDistance*b.triggerAutoMoveRatio&&(x+=1),R=-1*x*b.itemDistance,qr(I,R,"end",V.direction,300),b.moved=R;const y=i.value[x].name;u.current.value=y??"",s(y??""),r("update:modelValue",y)}},A=()=>{},$=()=>{if(!c.value)return;const V=an(c.value);u.tabWidth.value=V.width,u.tabHeight.value=V.height},T=Pe($,120);let q=null,j=null;return o.onMounted(()=>{c.value&&(window.ResizeObserver&&(j=new window.ResizeObserver(T),j.observe(c.value)),$(),n.draggle&&(q=Xf(f,h,A),q.open(d.value)))}),o.onBeforeUnmount(()=>{j&&(j.disconnect(),j=null),q&&q.close()}),()=>{const V={class:`${e}__panes`,style:v.value,ref:d},I=o.h("view",V,[a?.default?.()]),R={class:g.value,ref:c};return o.h("view",R,[I])}}}}const{create:Jf,componentName:Qf,scope:ed}=ie("tabs-container"),Ao=Jf(Zf(Qf,ed,!1)),td={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function nd(e,t,l){return{props:{...td},setup(n,{emit:r,slots:a}){const i=o.inject(Lr);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.paneKey)});const u=o.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=o.computed(()=>n.loaded!=null?ue(n.loaded):i.isLoaded(n.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const g={class:`${e}__empty-icon`},p=n.emptyIcon??l,v=o.h(p,g),b={class:`${e}__empty-text`},f=n.emptyText??"Loading",h=o.h("view",b,[f]),A={class:`${e}__empty`},$=o.h("view",A,[v,h]);c.push($)}const d={class:`${e}`,style:u.value};return o.h("view",d,c)}}}}const{create:od,componentName:ld,scope:rd}=ie("tabs-pane"),Mo=od(nd(ld,rd,Ro)),ad={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function id(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Pr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function jr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function sd(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Lo(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function zr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Hr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Bo(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class ud{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=We(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Qe(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function cd(){const e=o.getCurrentInstance();return new ud(e.proxy)}function fd(e,t,l,n){return{props:{...ad},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=cd(),c=o.ref([]),d=o.computed(()=>c.value.filter(C=>sd(r,C)!==!1)),g=o.ref(-1),p=()=>{const C=r.modelValue,F=d.value.findIndex(D=>Pr(r,D)===C);g.value!==F&&(g.value=F,r.scroll&&ne(F))};o.watch([()=>r.modelValue,d],()=>{p()});const v=C=>g.value===C,b=C=>{if(C<0&&C>=d.value.length)return!1;const F=d.value[C],w=(Bo(r,F,C)??{}).status??Lo(r,F);return v(C)||w},f=o.computed(()=>{const C={[u]:!0};return r.mode?C[`is-${r.mode}`]=!0:r.direction&&(C[`is-${r.direction}`]=!0),r.scroll&&(C["is-scroll"]=!0),C}),h=o.computed(()=>({})),A=(C,F,D,w,H)=>{const Q={[`${u}__step`]:!0};return H&&(Q[`${H}`]=!0),Q[`${$.value}`]=!0,w&&(Q["is-doit"]=!0),C===g.value?Q["is-active"]=!0:F==="done"?Q["is-done"]=!0:F==="error"?Q["is-error"]=!0:F==="half"?Q["is-half"]=!0:D?Q["is-disabled"]=!0:Q["is-normal"]=!0,Q},$=o.computed(()=>{if(r.mode==="simple")return"start";let C=r.align;return C||(r.direction==="vertical"?C="start":C="center"),C}),T=(C,F={})=>{const D={...F};return $.value==="start"&&C===d.value.length-1?D.flex="0 0 auto":r.step?r.direction==="vertical"?D.height=r.step:D.width=r.step:D.flex="1 1 100%",D},q=(C,F)=>{let D={};if(F<d.value.length-1){const w=F+1;b(F)&&b(w)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},j=C=>d.value.length-1===C,V=(C,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>g.value||g.value===F)return;const D=g.value,w=F;g.value=F,r.scroll&&ne(F);const H=Pr(r,C);i("update:modelValue",H);const Q={fromIndex:D,currentIndex:w,item:C,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",H,Q)},I=o.ref(!0),R=async(C,F)=>{try{const D=await s.load("stesbar",C,F);Array.isArray(D)&&(c.value=D),I.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([C,F])=>{C&&R(C,F)},{immediate:!0});const x=(C,F,D,w,H)=>{let Q=null;if(a.icon)Q=a.icon({item:C,index:F,status:w});else if(w==="done"){const U={};r.iconSize&&(U.width=r.iconSize,U.height=r.iconSize);const Y=r.icon??l;Q=o.h(Y,U)}else{const U=D??`${F+1}`;Q=o.h("span",{},[U])}const oe={class:"fox-steps-bar__icon",onClick:()=>{H||V(C,F)}};return o.h("view",oe,[Q])},z=(C,F,D)=>{const w=o.h("i",{class:"fox-steps-bar__line-inner",style:q(C,F)});return o.h("view",{class:"fox-steps-bar__line"},[w])},y=()=>{let C=null;if(a.markIcon)C=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const w=r.markIcon??n;C=o.h(w,D)}return o.h("view",{class:"fox-steps-bar__mark"},[C])},_=(C,F,D,w,H)=>{const Q=[];if(!j(F)){const Y=z(C,F);Q.push(Y)}const oe=x(C,F,D,w,H);Q.push(oe);const U={class:"fox-steps-bar__head"};return o.h("view",U,Q)},J=(C,F,D,w)=>{let H=null;a.main?H=a.main({item:C,index:F,status:D}):H=id(r,C);const Q={class:"fox-steps-bar__main",onClick:()=>{w||V(C,F)}};return o.h("view",Q,[H])},B=(C,F,D)=>{let w=null;if(a.sub){w=a.sub({item:C,index:F,status:D});const H={class:"fox-steps-bar__sub"};return o.h("view",H,[w])}return null},N=(C,F)=>{const D=Bo(r,C,F)??{},w=D.status??Lo(r,C);let H=jr(r,C);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=D.label??Hr(r,C),oe=[],U=x(C,F,Q,w,H);U&&oe.push(U);const Y=J(C,F,w,H);if(Y&&oe.push(Y),!j(F)){const X=z(C,F);X&&oe.push(X)}const k=o.h("view",{class:"fox-steps-bar__head"},oe),W=D.class,Z=D.style??{};let O=zr(r,C);D.doit===!0&&(O=!0);const K={ref:L(F),class:A(F,w,H,O,W),style:T(F,Z)};return o.h("view",K,[k])},M=(C,F)=>{const D=Bo(r,C,F)??{},w=D.status??Lo(r,C);let H=jr(r,C);D.disabled===!0&&(H=!0),r.disabled===!0&&(H=!0);const Q=D.label??Hr(r,C),oe=[],U=r.layout;for(let O of U)if(O==="head"){const K=_(C,F,Q,w,H);oe.push(K)}else if(O==="main"){const K=J(C,F,w,H);oe.push(K)}else if(O==="sub"){const K=B(C,F,w);oe.push(K)}else if(O==="mark"){const K=y();oe.push(K)}const Y=D.class,k=D.style??{};let W=zr(r,C);D.doit===!0&&(W=!0);const Z={ref:L(F),class:A(F,w,H,W,Y),style:T(F,k)};return o.h("view",Z,oe)},P=o.ref(),G=o.ref([]),ee=(C,F)=>{G.value[F]=C},L=C=>F=>{ee(F,C)},ne=(C,F)=>{const D=P.value,w=G.value;if(!D||!w||!w[C])return;const H=w[C];let Q=0;r.direction==="vertical"?Q=H.offsetTop-(D.offsetHeight-H.offsetHeight)/2:Q=H.offsetLeft-(D.offsetWidth-H.offsetWidth)/2,E(D,Q,.3,r.direction)},E=(C,F,D,w)=>{let H=0;const Q=w==="horizontal"?C.scrollLeft:C.scrollTop,oe=Math.round(D*1e3/16);function U(){w==="horizontal"?C.scrollLeft+=(F-Q)/oe:C.scrollTop+=(F-Q)/oe,++H<oe&&qn(U)}U()};return()=>{const C=[];if(r.mode==="simple")for(let D=0;D<d.value.length;D++){const w=d.value[D],H=N(w,D);C.push(H)}else for(let D=0;D<d.value.length;D++){const w=d.value[D],H=M(w,D);C.push(H)}const F={ref:P,class:f.value,style:h.value};return o.h("view",F,C)}}}}const{componentName:dd,create:hd,scope:gd}=ie("steps-bar"),_o=hd(fd(dd,gd,Of,Ff)),md=Symbol.for("InnerPageScopeKey"),yd=Symbol.for("PageWrapperKey");function pd(e,t){return{props:{class:{type:[String]},title:{type:[String]},hideHeader:{type:[Boolean]},draggable:{type:[Boolean],default:()=>!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:()=>!1},closeOnPressEscape:{type:[Boolean],default:()=>!0}},setup(l,n){o.provide(md,!0);const r={};o.provide(yd,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),u=s=>{i.value=s};return()=>{const c={...n.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},d=["fox-dialog-item "];l.hideHeader&&d.push("hide-header"),l.class&&d.push(l.class),c.class=d.join(" ");const g={};return typeof n.slots.default=="function"&&(g.default=n.slots.default),o.h(S.ElDialog,c,g)}}}}const{componentName:Bg,create:bd,scope:_g}=ie("dialog-item"),qo=bd(pd());let _t=0;const Kr="fox-overflow-hidden",Wr=()=>ot?document.body:{classList:[]},vd=e=>[()=>{if(e())try{!_t&&Wr().classList.add(Kr),_t++}catch{}},()=>{if(e()&&_t)try{_t--,!_t&&Wr().classList.remove(Kr)}catch{}}],wd={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:Sd,create:xd}=ie("overlay"),Td=xd({props:{...wd},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=vd(()=>e.lockScroll),r=o.computed(()=>({[Sd]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,u=>{u?l():n()}),{classes:r,style:a,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function $d(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:t[0]||(t[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const En=Ye(Td,[["render",$d]]),Cd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Yr=2e3;let Ur=Yr;const Ed=(e,t)=>({components:t,props:{...Cd},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),u=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),s=()=>{l.zIndex!==Yr&&(Ur=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Ur,l.destroyOnClose&&(r.showSlot=!0),n("open")},c=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},d=f=>{n("click-pop",f)},g=f=>{f.stopPropagation(),n("click-close-icon",f),n("update:visible",!1)},p=f=>{n("click-overlay",f),l.closeOnClickOverlay&&n("update:visible",!1)},v=f=>{n("opend",f)},b=f=>{n("closed",f)};return o.watch(()=>l.visible,f=>{l.visible?s():c()}),o.watch(()=>l.closeable,f=>{r.closed=f}),{...o.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:g,onClickOverlay:p,onOpened:v,onClosed:b}}}),{componentName:Nd,create:kd}=ie("popup"),Id=kd(Ed(Nd,{FoxOverLay:En,Close:Ef}));function Od(e,t,l,n,r,a){const i=o.resolveComponent("FoxOverLay"),u=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.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"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(u)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Po=Ye(Id,[["render",Od]]),{create:Dd}=ie("toast"),Vd=Dd({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 l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,v=>{v&&i()});const s=o.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const v=me(e.iconSize);return o.h(e.icon,{width:v,height:v,color:e.iconColor})},d=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),g=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:g,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Rd={key:1,class:"fox-toast-title"},Fd=["innerHTML"];function Ad(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",Rd,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Fd)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const jo=Ye(Vd,[["render",Ad]]),Md={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"}},Ld=(e,t,l)=>({props:{...Md},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}=Ll(),{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["placeholder"]),s=o.reactive({active:!1}),c=o.computed(()=>({background:n.background})),d=o.computed(()=>({background:n.inputBackground})),g=x=>{let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),a("update:modelValue",y,x),a("change",y,x)},p=o.ref({}),v=x=>{let y=x.target.value;s.active=!0,p.value=n.focusStyle,a("focus",y,x)},b=x=>{setTimeout(()=>{s.active=!1},0);let y=x.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),p.value={},a("blur",y,x)},f=x=>{a("update:modelValue","",x),a("change","",x),a("clear","")},h=o.computed(()=>String(n.modelValue).length>0),A=o.computed(()=>{const x={};return h.value||(x.display="none"),x}),$=()=>{a("search",n.modelValue)},T=x=>{a("keyup-input",x),x.key.toLocaleUpperCase()==="ENTER"&&$()},q=x=>{a("click-input",x)},j=x=>{a("click-left-icon",n.modelValue,x)},V=o.computed(()=>({textAlign:n.inputAlign})),I=o.ref(null);o.onMounted(()=>{n.autofocus&&I.value.focus()});const R=()=>{const x=[];if(r.leftin){const B={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:j},N=o.h("view",B,[r.leftin()]);x.push(N)}const z={ref:I,class:[`${e}__input-inner`],style:V.value,type:n.inputType,maxlengt:n.maxLength,placeholder:u.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:g,onFocus:v,onBlur:b,onkeyup:T},y=o.h("input",z);x.push(y);const _=[];if(n.clearable){const B={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:A.value,onClick:f},N=r?.clear?.()??n.clearIcon??l,M=o.h("view",B,[o.h(N)]);_.push(M)}if(r.rightin){const B={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},N=o.h("view",B,[r.rightin()]);_.push(N)}if(_.length>0){const B={class:`${e}__input-inner-right`},N=o.h("view",B,_);x.push(N)}const J={class:[`${e}__search-input`,`${n.shape}`],style:{...d.value,...p.value}};return o.h("view",J,x)};return()=>{const x=[];if(n.label){const _={class:`${e}__search-label`},J=o.h("span",_,[n.label]);x.push(J)}if(r.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},J=o.h("view",_,[r.leftout()]);x.push(J)}const z=R();if(x.push(z),r.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},J=o.h("view",_,[r.rightout()]);x.push(J)}const y={class:`${e}`,style:c.value};return o.h("view",y,x)}}}),{componentName:Bd,create:_d,scope:qd}=ie("searchbar"),zo=_d(Ld(Bd,qd,Ie.CircleClose)),Pd=/scroll|auto|overlay/i,Gr=window;function jd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function zd(e,t=Gr){let l=e;for(;l&&l!==t&&jd(l);){const{overflowY:n}=window.getComputedStyle(l);if(Pd.test(n))return l;l=l.parentNode}return t}function Xr(e,t=Gr){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=zd(e.value,t))}),l}const Zr=()=>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 Kd(e,t,l){return{props:{...Hd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullText","loadText","loadMoreText"]),s=o.ref(),c=Xr(s),d=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),g=o.computed(()=>({[e]:!0})),p=$=>$?$.offsetTop+p($.offsetParent):0,v=()=>{let $=0,T=0,q="down";if(c.value==window){const j=Zr();s.value&&($=p(s.value)+s.value.offsetHeight-j-window.innerHeight),T=j}else{const{scrollHeight:j,clientHeight:V,scrollTop:I}=c.value;$=j-V-I,T=I}return d.beforeScrollTop>T?q="up":q="down",d.beforeScrollTop=T,r("scroll-change",T),$<=n.threshold&&q=="down"},b=()=>{sl(()=>{if(!v()||!n.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",b,n.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",b,n.useCapture)};o.onMounted(()=>{f(),n.immediate&&b()}),o.onUnmounted(()=>{h()});const A=o.ref(!1);return o.onActivated(()=>{A.value&&(A.value=!1,f())}),o.onDeactivated(()=>{A.value=!0,h()}),o.watch(()=>n.modelValue,$=>{$||(d.isInfiniting=!1)}),()=>{const $={class:"fox-infinite__container"},T=o.h("view",$,[a?.default?.()]),q=[];if(d.isInfiniting){let R=a?.loading?.()??null;if(!R){let y=a?.loadingIcon?.()??null;if(!y){const B={class:["fox-infinite__bottom-box__img"]};y=o.h(l,B)}const _={class:"fox-infinite__bottom-box__text"},J=o.h("view",_,[u.loadText.value]);R=[y,J]}const x={class:"fox-infinite__bottom-box"},z=o.h("view",x,R);q.push(z)}else if(!n.hasMore){let R=a?.finished?.()??null;if(!R){const x={class:"fox-infinite__bottom-tips"};R=o.h("view",x,[u.loadMoreText.value]),q.push(R)}}const j={class:"fox-infinite__bottom"},V=o.h("view",j,q),I={class:g.value,ref:s};return o.h("view",I,[T,V])}}}}const{componentName:Wd,create:Yd,scope:Ud}=ie("infinite-loading"),Ho=Yd(Kd(Wd,Ud,Ro)),Gd={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}},Xd=(e,t,l)=>({props:{...Gd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=qe.useFoxI18n(t),u=i(n,["pullingText","loosingText","loadingText"]),s=Bt(),c=o.ref(),d=Xr(c),g=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=o.computed(()=>({[e]:!0})),v=o.computed(()=>{switch(g.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),b=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:g.distance?`translate3d(0,${g.distance}px, 0)`:""})),f=o.computed(()=>{const I={};return n.headHeight!=50&&(I.height=Ve(n.headHeight)),I}),h=I=>{const R=+(n.pullDistance||n.headHeight);let x=I;return I>R&&(I<R*2?x=(I+R)/2:x=R+I/4),Math.round(x)},A=(I,R)=>{const x=+(n.pullDistance||n.headHeight);g.distance=I,R?g.status="loading":I===0?g.status="normal":I<x?g.status="pulling":g.status="loosing",r("change",{status:g.status,distance:I})},$=()=>g.status!=="loading"&&g.status!=="complete",T=()=>d.value==window?Zr()==0:d.value&&d.value.scrollTop==0,q=I=>{$()&&(T()?(s.start(I),g.isPullRefresh=!0,g.moving=!0):(g.distance=0,g.isPullRefresh=!1))},j=I=>{$()&&g.moving&&(s.move(I),s.isVertical()&&s.state.deltaY>0&&g.isPullRefresh&&(I.cancelable&&I.preventDefault(),A(h(s.state.deltaY))))},V=()=>{g.moving=!1,g.isPullRefresh&&$()&&s.state.deltaY&&(g.status==="loosing"?(A(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):A(0)),setTimeout(()=>{s.reset()},0)};return o.watch(()=>n.modelValue,I=>{I?A(+n.headHeight,!0):A(0)}),()=>{const I=[];let R=null;if(g.status==="loading"){if(R=a?.loading?.()??null,!R){const M={class:["fox-pull-refresh-container-topbox-icon"]};R=o.h(l,M)}}else g.status==="pulling"?R=a?.pulling?.()??null:g.status==="loosing"&&(R=a?.loosing?.()??null);R&&I.push(R);const x={class:["fox-pull-refresh-container-topbox-text"]},z=o.h("dive",x,[v.value]);I.push(z);const y={class:["fox-pull-refresh-container-topbox"],style:f.value},_=o.h("div",y,I),J={class:"fox-pull-refresh-container",style:b.value},B=o.h("div",J,[_,a?.default?.()]),N={ref:c,class:p.value};return Lt()?Object.assign(N,{onTouchstart:q,onTouchmove:j,onTouchend:V}):Object.assign(N,{onMousedown:q,onMousemove:j,onMouseup:V}),o.h("div",N,[B])}}}),{componentName:Zd,create:Jd,scope:Qd}=ie("pull-refresh"),Ko=Jd(Xd(Zd,Qd,Ro));function eh(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(l,{slots:n}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),u=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),s=o.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=o.computed(()=>l.color?{color:l.color}:null);return()=>{let d=null;if(n.mark)d=n.mark()[0];else{const f={class:i.value,style:u.value};d=o.h(l.icon??"div",f)}const g={class:s.value,style:c.value},p=n.default?n.default():[],v=o.h("div",g,p),b={class:a.value};return l.textPosition==="right"?o.h("div",b,[d,v]):o.h("div",b,[v,d])}}}}const{componentName:th,create:nh,scope:qg}=ie("indicator"),Wo=nh(eh(th));function oh(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const lh={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 rh(e,t,l,n=!1){return{props:{...lh},emits:["click"],setup(r,a){const i=o.ref(null),u=o.computed(()=>{const T={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(T[`${e}--${r.type??"default"}`]=!0),r.size&&(T[`${e}--${r.size}`]=!0),T}),s=o.computed(()=>{const T={},q=r.textColor??r.color;return q&&(T.color=q),T}),c=(T,q)=>{let j=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const V=r.highlightFilter;if(T.indexOf(V)!==-1){const R=T.replace(new RegExp(V,"g"),`<span>${V}</span>`);q.innerHTML=R,q.class["is-highlight"]=!0,j=o.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const V=r.highlightFilter(T);V&&(q.innerHTML=V,q.class["is-highlight"]=!0,j=o.h(r.tag,q))}return j},d=T=>{a.emit("click",T)};let g="";const p=()=>{const T=i.value;if(!T)return;const q=T.clientWidth;oh(T,j=>{const V=T.innerHTML??"";he(V)||j<q||(g?l?.show(T,V,{type:"text",id:g,showArrow:r.showArrow},!0):g=l?.show(T,V,{type:"text",showArrow:r.showArrow},!0)??"")})},v=()=>{g&&l?.hide(g)};let b=null;const f=T=>{b||(b=setTimeout(()=>{p(),b=null},r.showAfter??0))},h=T=>{b&&(clearTimeout(b),b=null),setTimeout(()=>{v()},r.hideAfter??0)},A=()=>{const T=i.value;T&&(T.addEventListener("mouseover",f),T.addEventListener("mouseleave",h))},$=()=>{const T=i.value;T&&(T.removeEventListener("mouseover",f),T.removeEventListener("mouseleave",h))};return o.onMounted(()=>{!ue(r.showOverflowTooltip)||!l||A()}),o.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!l||$()}),()=>{const T={onClick:d,class:u.value,style:s.value,ref:i};let q=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const x=R[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=Te(r.digits),y=Te(r.decimalLength),_=ue(r.autoPadding);let J=`${R[0].children}`,B=J.split("").reverse().join("");B=zt(B,y,_,z,r.separator),J=B.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=c(J,T)),q||(T.innerHTML=J,q=o.h(r.tag,T))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const x=R[0].type.toString();if(x==="Symbol(Text)"||x==="Symbol(v-txt)"){const z=`${R[0].children}`;q=c(z,T),q||(T.innerHTML=z,q=o.h(r.tag,T))}}}q||(q=o.h(r.tag,T,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let V=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const x={},z=r.color;z&&(x.color=z);const y={class:R,style:x};V=o.h("view",y,o.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const x={},z=r.color;z&&(x.color=z);const y={class:R,style:x};V=o.h("view",y,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const x={},z=r.color;z&&(x["background-color"]=z);const y={class:R,style:x};V=o.h("view",y)}const I={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",I,[V,q])}}}}const{componentName:ah,create:ih,scope:sh}=ie("text"),Yo=ih(rh(ah,sh,Le,!1)),uh={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:Ie.ArrowUp}};function ch(e,t,l){return{props:{...uh},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const g={[`${e}`]:!0};return n.disabled?g[`${e}__disabled`]=!0:g[`${e}__${n.type}`]=!0,g}),i=ge(n,"modelValue"),u=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),s=o.computed(()=>({[`${e}__text`]:!0})),c=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const g=[];if(u.value){const f={class:s.value},h=o.h("span",f,[u.value]);g.push(h)}const p={class:c.value},v=l(n.icon,p);return v&&g.push(v),o.h("div",{class:a.value,onClick:d},g)}}}}const{componentName:fh,create:dh,scope:hh}=ie("more-button"),Uo=dh(ch(fh,hh,(e,t)=>(e=e??Ie.ArrowUp,o.h(S.ElIcon,t,{default:()=>[o.h(e)]}))));function gh(e){e.stopPropagation()}let mh=class{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=Bt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),gh(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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 yh(e,t){return new mh(e,t)}const ph={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]},zIndex:{type:[String]}},bh=(e,t,l,n=!1)=>({props:{...ph},emits:["click"],setup(r,{slots:a,emit:i}){const u=o.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=o.computed(()=>{const $=[`${e}`];return r.customClass&&$.push(r.customClass),$}),c=o.computed(()=>{const $={};return he(u.top)||($.top=u.top),he(u.right)||($.right=u.right),he(u.bottom)||($.bottom=u.bottom),he(u.left)||($.left=u.left),he(r.width)||($.width=r.width),he(r.height)||($.height=r.height),he(r.color)||($.color=r.color),he(r.background)||($.background=r.background),he(r.borderRadius)||($["border-radius"]=r.borderRadius),he(r.zIndex)||($["z-index"]=r.zIndex),$}),d=o.computed(()=>({[`${e}__icon`]:!0})),g=()=>{i("click")},p=o.ref(null),v=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},b={x:0,y:0},A=yh($=>{if(!p.value)return;const T=p.value;v(),u.left=T.offsetLeft,u.top=T.offsetTop,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`,T.style.right=null,T.style.bottom=null,b.x=u.left,b.y=u.top},$=>{if(!p.value)return;const T=p.value;v(),u.left=b.x+$.x,u.top=b.y+$.y,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`});return o.onMounted(()=>{if(r.draggable&&p.value){const $=[p.value];A.open($)}}),o.onBeforeUnmount(()=>{r.draggable&&p.value&&A.close()}),()=>{let $=[];const T=typeof a.default=="function"?a.default():[];if(T&&T.length>0)$=T;else{const j=o.h(l,{class:d.value});$.push(j)}const q={ref:j=>{p.value=j},class:s.value,style:c.value,onClick:g};return o.h("view",q,$)}}}),{componentName:vh,create:wh,scope:Sh}=ie("floating-button"),Go=wh(bh(vh,Sh,mf,!1));function xh(e){return e===window}const Jr=e=>{const t=o.unref(e);if(xh(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Th,create:$h,scope:jg}=ie("tour"),Ch=$h({components:{Close:Ie.Close,ElPopover:S.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 l=Th,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:b,maskWidth:f,maskHeight:h}=e,{width:A,height:$,left:T,top:q}=r.value,j=e.steps[n.active].offset??b,V=[T+A/2,q+$/2],I=Number(f||A),R=Number(h||$);return{width:`${I+ +j.left+j.right}px`,height:`${R+j.top+j.bottom}px`,top:`${V[1]-R/2-+j.top}px`,left:`${V[0]-I/2-+j.left}px`}}),u=b=>{b=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,d()}),t("change",n.active)},s=b=>b.popoverWidth??e.width,c=b=>b.location??e.location,d=()=>{const b=document.querySelector(`${e.steps[n.active].target}`),f=Jr(b);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},g=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&g()},v=(b,f=0)=>{b&&d(),e.steps,n.active=f,n.showTour=b,n.showPopup=b};return o.onMounted(()=>{v(e.modelValue,e.current)}),o.watch(()=>e.modelValue,b=>{v(b)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:g,handleClickMask:p}}}),Eh={key:0,class:"fox-tour__content"},Nh={key:0,class:"fox-tour__content-top"},kh={class:"fox-tour__content-inner"},Ih={class:"fox-tour__content-bottom"},Oh={class:"fox-tour__content-bottom-init"},Dh={class:"fox-tour__content-bottom-operate"},Vh={key:1,class:"fox-tour__content fox-tour__content-tile"},Rh={class:"fox-tour__content-inner"};function Fh(e,t,l,n,r,a){const i=o.resolveComponent("Close"),u=o.resolveComponent("fox-button"),s=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(c,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(o.openBlock(),o.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",Eh,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",Nh,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...g)=>e.close&&e.close(...g))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",kh,o.toDisplayString(c.content),1),o.createElementVNode("div",Ih,[o.createElementVNode("div",Oh,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Dh,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=g=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=g=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Vh,[o.createElementVNode("div",Rh,o.toDisplayString(c.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const Xo=Ye(Ch,[["render",Fh]]),Be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Ah{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=Lt()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=Bt(),n=(r,a,i,u)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.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&&(l.move(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.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 Qr(e,t){return new Ah(e,t)}const ea=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let Tt=[];const ta=e=>{const t=e;t.key==="Escape"&&Tt.forEach(l=>l(t))},Mh=e=>{o.onMounted(()=>{Tt.length===0&&document.addEventListener("keydown",ta),ea&&Tt.push(e)}),o.onBeforeUnmount(()=>{Tt=Tt.filter(t=>t!==e),Tt.length===0&&ea&&document.removeEventListener("keydown",ta)})},Zo="fox-focus-trap.focus-after-trapped",Jo="fox-focus-trap.focus-after-released",Lh="fox-focus-trap.focusout-prevented",na={cancelable:!0,bubbles:!1},Bh={cancelable:!0,bubbles:!1},oa="foxFocusAfterTrapped",la="foxFocusAfterReleased",_h=Symbol("foxFocusTrap"),Qo=o.ref(),Nn=o.ref(0),el=o.ref(0);let kn=0;const ra=e=>{const t=[],l=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(;l.nextNode();)t.push(l.currentNode);return t},qh=(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},aa=(e,t)=>{for(const l of e)if(!qh(l,t))return l},Ph=e=>{const t=ra(e),l=aa(t,e),n=aa(t.reverse(),e);return[l,n]},jh=e=>e instanceof HTMLInputElement&&"select"in e,it=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),el.value=window.performance.now(),e!==l&&jh(e)&&t&&e.select()}};function ia(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const zh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=ia(e,n),e.unshift(n)},remove:n=>{e=ia(e,n),e[0]?.resume?.()}}},Hh=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(it(n,t),document.activeElement!==l)return},sa=zh(),Kh=()=>Nn.value>el.value,In=()=>{Qo.value="pointer",Nn.value=window.performance.now()},ua=()=>{Qo.value="keyboard",Nn.value=window.performance.now()},Wh=()=>(o.onMounted(()=>{kn===0&&(document.addEventListener("mousedown",In),document.addEventListener("touchstart",In),document.addEventListener("keydown",ua)),kn++}),o.onBeforeUnmount(()=>{kn--,kn<=0&&(document.removeEventListener("mousedown",In),document.removeEventListener("touchstart",In),document.removeEventListener("keydown",ua))}),{focusReason:Qo,lastUserFocusTimestamp:Nn,lastAutomatedFocusTimestamp:el}),On=e=>new CustomEvent(Lh,{...Bh,detail:e}),{componentName:zg,create:Yh,scope:Hg}=ie("focus-trap"),Uh=Yh({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[oa,la,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Wh();Mh(f=>{ue(e.trapped)&&!u.paused&&l("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:h,altKey:A,ctrlKey:$,metaKey:T,currentTarget:q,shiftKey:j}=f,{loop:V}=e,I=h==="Tab"&&!A&&!$&&!T,R=document.activeElement;if(I&&R){const x=q,[z,y]=Ph(x);if(z&&y){if(!j&&R===y){const J=On({focusReason:i.value});l("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),V&&it(z,!0))}else if(j&&[z,x].includes(R)){const J=On({focusReason:i.value});l("focusout-prevented",J),J.defaultPrevented||(f.preventDefault(),V&&it(y,!0))}}else if(R===x){const J=On({focusReason:i.value});l("focusout-prevented",J),J.defaultPrevented||f.preventDefault()}}};o.provide(_h,{focusTrapRef:n,onKeydown:s}),o.watch(()=>e.focusTrapEl,f=>{f&&(n.value=f)},{immediate:!0}),o.watch([n],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",g),f.addEventListener("focusout",p)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",g),h.removeEventListener("focusout",p))});const c=f=>{l(oa,f)},d=f=>l(la,f),g=f=>{const h=o.unref(n);if(!h)return;const A=f.target,$=f.relatedTarget,T=A&&h.contains(A);ue(e.trapped)||$&&h.contains($)||(r=$),T&&l("focusin",f),!u.paused&&ue(e.trapped)&&(T?a=A:it(a,!0))},p=f=>{const h=o.unref(n);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const A=f.relatedTarget;!Kn(A)&&!h.contains(A)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const $=On({focusReason:i.value});l("focusout-prevented",$),$.defaultPrevented||it(a,!0)}},0)}else{const A=f.target;A&&h.contains(A)||l("focusout",f)}};async function v(){await o.nextTick();const f=o.unref(n);if(f){sa.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const $=new Event(Zo,na);f.addEventListener(Zo,c),f.dispatchEvent($),$.defaultPrevented||o.nextTick(()=>{let T=e.focusStartEl;pl(T)||(it(T),document.activeElement!==T&&(T="first")),T==="first"&&Hh(ra(f),!0),(document.activeElement===h||T==="container")&&it(f)})}}}function b(){const f=o.unref(n);if(f){f.removeEventListener(Zo,c);const h=new CustomEvent(Jo,{...na,detail:{focusReason:i.value}});f.addEventListener(Jo,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Kh())&&it(r??document.body,!0),f.removeEventListener(Jo,c),sa.remove(u)}}return o.onMounted(()=>{ue(e.trapped)&&v(),o.watch(()=>e.trapped,f=>{ue(f)?v():b()})}),o.onBeforeUnmount(()=>{ue(e.trapped)&&b()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:Gh,create:Xh,scope:Wg}=ie("floating-window"),Zh=Symbol.for("InnerPageScopeKey"),Jh=Symbol.for("PageWrapperKey"),Qh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{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}},eg=Xh({inheritAttrs:!1,components:{FoxIcon:S.ElIcon,FocusTrap:Uh},props:{...Qh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Gh,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,O=>{n.value=O});const a=o.computed(()=>n.value===!1?!1:!R.value),i=o.ref(e.left),u=o.ref(e.top),s=o.ref(e.right),c=o.ref(e.bottom),d=o.computed(()=>{const O=["fox-floating-window"];return e.customClass&&O.push(e.customClass),O}),g=o.computed(()=>{const O={};return dt(i.value)?O.left="auto":O.left=Be(i.value),dt(u.value)?O.top="auto":O.top=Be(u.value),dt(s.value)?O.right="auto":O.right=Be(s.value),dt(c.value)?O.bottom="auto":O.bottom=Be(c.value),dt(e.zIndex)||(O["z-index"]=Be(e.zIndex)),dt(V.value)||(O.height=V.value),dt(I.value)||(O.width=I.value),O}),p=o.computed(()=>e.closeIcon??Ie.Close),v=o.computed(()=>e.collapseIcon??Ie.ArrowUp),b=o.computed(()=>e.collapseText??""),f=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ie.ArrowRight:e.expandIcon??Ie.ArrowLeft),h=o.computed(()=>e.expandText??e.title??"展开"),A=o.computed(()=>({[`${l}__collapse-text`]:!0})),$=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),T=o.ref(),q=o.ref(null),j=o.ref(null),V=o.computed(()=>Be(e.height)||""),I=o.computed(()=>Be(e.width)||""),R=o.ref(ue(e.collapse)),x=(O,K=!0)=>{R.value!==O&&(R.value=O,O?C():F(),t("update:collapse",O),O&&typeof _.onHide=="function"?_.onHide():!O&&typeof _.onShow=="function"&&_.onShow())};o.watch(()=>e.collapse,O=>{x(O)});const z=()=>{y()},y=O=>{O=O??!R.value,x(O)};o.provide(Zh,!0);const _={setCollapse:x,setFixedNavVisible:O=>{L.value=O}};o.provide(Jh,_);const J=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{n.value=!1}):n.value=!1},B=o.ref(null),N=o.computed(()=>!e.fixedNavTeleport),M=o.computed(()=>{const O=["fox-floating-window__fixednav"];return e.expandClass&&O.push(e.expandClass),e.collapsePosition==="left"?O.push("is-left"):e.collapsePosition==="right"&&O.push("is-right"),O}),P=o.ref(""),G=o.computed(()=>{const O={};return P.value?O.top=P.value:e.collapseTop&&(O.top=e.collapseTop),O}),ee=o.ref(R.value),L=o.computed({set:O=>{ee.value=O},get:()=>n.value===!1?!1:ee.value});let ne=null;const E=()=>{typeof ne=="function"&&(ne(),ne=null)},C=()=>{B.value&&B.value.classList.add("slide-in"),L.value=!0,ne=()=>{B.value&&B.value.classList.remove("slide-in")}},F=()=>{B.value&&B.value.classList.add("slide-out"),ne=()=>{B.value&&B.value.classList.remove("slide-out"),L.value=!1}},D=()=>{i.value=null,u.value=null,s.value=null,c.value=null},w={x:0,y:0},oe=Qr(O=>{if(!T.value)return;const K=T.value;if(D(),e.origin==="left-top")i.value=K.offsetLeft,u.value=K.offsetTop,w.x=i.value,w.y=u.value;else if(e.origin==="left-bottom"){const X=document.documentElement.clientHeight||document.body.clientHeight;i.value=K.offsetLeft,c.value=X-(K.offsetTop+K.offsetHeight),w.x=i.value,w.y=c.value}else if(e.origin==="right-bottom"){const X=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=X-(K.offsetLeft+K.offsetWidth),c.value=le-(K.offsetTop+K.offsetHeight),w.x=s.value,w.y=c.value}else{const X=document.documentElement.clientWidth||document.body.clientWidth;s.value=X-(K.offsetLeft+K.offsetWidth),u.value=K.offsetTop,w.x=s.value,w.y=u.value}},O=>{if(!T.value)return;const K=T.value;D(),e.origin==="left-top"?(i.value=w.x+O.x,u.value=w.y+O.y,K.style.left=Be(i.value),K.style.top=Be(u.value)):e.origin==="left-bottom"?(i.value=w.x+O.x,c.value=w.y-O.y,K.style.left=Be(i.value),K.style.bottom=Be(c.value)):e.origin==="right-bottom"?(s.value=w.x-O.x,c.value=w.y-O.y,K.style.right=Be(s.value),K.style.bottom=Be(c.value)):(s.value=w.x-O.x,u.value=w.y+O.y,K.style.right=Be(s.value),K.style.top=Be(u.value))}),U={x:0,y:0},W=Qr(O=>{B.value&&(U.x=B.value.offsetLeft,U.y=B.value.offsetTop)},O=>{if(!B.value)return;const K=U.y+O.y;P.value=`${K}px`}),Z=()=>{if(T.value){const O=T.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");j.value=O}};return o.onMounted(()=>{if(e.draggable&&T.value){const O=[];q.value&&O.push(q.value),e.footerDraggable&&(Z(),j.value&&O.push(j.value)),oe.open(O)}e.collapse===!0&&x(e.collapse,!1),B.value&&W.open(B.value)}),o.onBeforeUnmount(()=>{e.draggable&&q.value&&oe.close(),B.value&&W.close()}),{classes:d,styles:g,isShow:a,closeIcon:p,onClose:J,dialogRef:T,headerRef:q,onClickToggle:z,collapseIcon:v,collapseText:b,collapseTextClasses:A,collapseIconClasses:$,expandIcon:f,expandText:h,isShowFixedNav:L,fixedNavRef:B,fixedNavClasses:M,fixedNavStyles:G,onAnimationEnd:E,teleportDisabled:r,fixedNavTeleportDisabled:N}}}),tg={ref:"headerRef",class:"fox-floating-window__header"},ng={class:"fox-floating-window__title"},og={class:"fox-floating-window__tools"},lg={class:"fox-floating-window__body"},rg={class:"fox-floating-window__fixednav__text"};function ag(e,t,l,n,r,a){const i=o.resolveComponent("FoxIcon"),u=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",tg,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",ng,o.toDisplayString(e.title),1),o.createElementVNode("div",og,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",lg,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",rg,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const tl=Ye(eg,[["render",ag]]),ig={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String,default:()=>"light"},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Boolean,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function sg(e,t,l=!1){return{props:{...ig},emits:["update:visible"],setup(n,{emit:r,slots:a,expose:i}){const u=o.ref({top:null,right:null,bottom:null,left:null}),s=o.ref(0),c=o.ref(0),d=o.ref(0),g=o.ref(0),p=o.ref(n.placement),v=o.ref(!1),b=o.ref(!1),f=o.ref(null),h=()=>typeof n.reference=="string"?document.querySelector(n.reference):n.reference,A=(L,ne,E,C,F,D,w,H=!0)=>{const Q=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight,U=L.split("-");let Y=[];H?U[0]==="top"?Y=["top","bottom","right","left"]:U[0]==="bottom"?Y=["bottom","top","right","left"]:U[0]==="left"?Y=["left","top","bottom","right"]:U[0]==="right"&&(Y=["right","top","bottom","left"]):Y=[L[0]];const k={top:null,right:null,bottom:null,left:null},W=[];for(let Z=0;Z<Y.length;Z++){const O=Y[Z];if(W[0]=O,U[1]&&(W[1]=U[1]),O==="top"){const K=E-w-n.arrowSize/2-n.offset;if(K>=0){k.top=K;let X=0;U[1]==="start"?X=ne:U[1]==="end"?X=ne+C-D:X=ne+C/2-D/2;const le=Q-X-D;le<0?(X+=le,T.value=-le):T.value=0,k.left=X<0?0:X;break}}else if(O==="bottom"){const K=E+F+n.arrowSize/2+n.offset;if(K+w<=oe){k.top=K;let X=0;U[1]==="start"?X=ne:U[1]==="end"?X=ne+C-D:X=ne+C/2-D/2;const le=Q-X-D;le<0?(X+=le,T.value=-le):T.value=0,k.left=X<0?0:X;break}}else if(O==="left"){const K=ne-D-n.arrowSize/2-n.offset;if(K>=0){k.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+F-w:X=E+F/2-w/2,k.top=X<0?0:X;break}}else if(O==="right"){const K=ne+C+n.arrowSize/2+n.offset;if(K+D<=Q){k.left=K;let X=0;U[1]==="start"?X=E:U[1]==="end"?X=E+F-w:X=E+F/2-w/2,k.top=X<0?0:X;break}}}return{bestPlacement:W.join("-"),bestInsetRect:k}},$=()=>{const L=n.visible,ne=n.autoFit;if(!ot||L===!1)return;if(n.reference){const w=h(),H=ao(w);s.value=H.x,c.value=H.y,d.value=w.offsetWidth,g.value=w.offsetHeight}else n.referenceInset&&(s.value=n.referenceInset.left,c.value=n.referenceInset.top,d.value=n.referenceInset.right-n.referenceInset.left,g.value=n.referenceInset.bottom-n.referenceInset.top);const E=f.value.offsetWidth,C=f.value.offsetHeight,{bestPlacement:F,bestInsetRect:D}=A(n.placement,s.value,c.value,d.value,g.value,E,C,ne);p.value=F,u.value=D},T=o.ref(0),q=Pe(()=>{$()},10),j=o.ref(n.visible);o.watch([()=>n.visible],([L])=>{j.value=L,L?(v.value=L,setTimeout(()=>{$(),b.value=!0},0)):b.value=!1});const V=o.computed(()=>j.value&&I.value),I=o.ref(!0),R=Pe(L=>{const ne=L[0];ne&&(I.value=ne.isIntersecting)},10),x=new IntersectionObserver(R);o.watch([()=>n.reference,()=>n.referenceInset],([L,ne],[E,C])=>{!L&&!ne||(setTimeout(()=>{$()},0),n.autoFit&&(E&&(Dt.unwatch(E,q),x.unobserve(E)),L&&(Dt.watch(L,q),x.observe(L))))},{immediate:!0}),o.onBeforeUnmount(()=>{n.reference&&(Dt.unwatch(n.reference,q),x.unobserve(n.reference),x.disconnect())});const z=o.computed(()=>{const L={[e]:!0};return p.value.startsWith("top")?L["is-top"]=!0:p.value.startsWith("right")?L["is-right"]=!0:p.value.startsWith("bottom")?L["is-bottom"]=!0:p.value.startsWith("left")&&(L["is-left"]=!0),L[`is-${n.effect}`]=!0,!b.value&&V.value&&(L["is-opacity"]=!0),b.value&&V.value&&(L["is-show"]=!0),V.value||(L["is-hide"]=!0),n.customClass&&typeof n.customClass=="string"&&(L[`${n.customClass}`]=!0),L}),y=o.computed(()=>{const L={};return u.value.top!==null&&(L.top=`${u.value.top}px`),u.value.right!==null&&(L.right=`${u.value.right}px`),u.value.bottom!==null&&(L.bottom=`${u.value.bottom}px`),u.value.left!==null&&(L.left=`${u.value.left}px`),n.width&&(L.width=n.width),n.zIndex&&(L["z-index"]=`${n.zIndex}`),n.customStyle&&typeof n.customStyle=="object"&&Object.assign(L,n.customStyle),L}),_=()=>{j.value=!1,r("update:visible",!1)},J=()=>{if(!n.showOverlay)return null;const L={class:`${e}__overlay`,onClick:_};return o.h("div",L)},B=()=>{let L=null;return a.title?L=o.h("div",{class:`${e}__title`},{default:a.title}):n.title&&(L=o.h("div",{class:`${e}__title`},[n.title])),L},N=o.computed(()=>({[`${e}__arrow`]:!0})),M=o.computed(()=>{const L={};return n.showArrow?(L.width=`${n.arrowSize}px`,L.height=`${n.arrowSize}px`,p.value==="top"?(L.left="50%",L.bottom="0",L.transform="translate(-50%, 50%)"):p.value==="top-start"?(L.left=`${n.arrowOffset+T.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):p.value==="top-end"?(L.right=`${n.arrowOffset-T.value}px`,L.bottom="0",L.transform="translate(-50%, 50%)"):p.value==="right"?(L.left="0",L.top="50%",L.transform="translate(-50%, -50%)"):p.value==="right-start"?(L.left="0",L.top=`${n.arrowOffset}px`,L.transform="translate(-50%, 50%)"):p.value==="right-end"?(L.left="0",L.bottom=`-${n.arrowOffset}px`,L.transform="translate(-50%, 50%)"):p.value==="bottom"?(L.left="50%",L.top="0",L.transform="translate(-50%, -50%)"):p.value==="bottom-start"?(L.left=`${n.arrowOffset+T.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):p.value==="bottom-end"?(L.right=`${n.arrowOffset-T.value}px`,L.top="0",L.transform="translate(-50%, -50%)"):p.value==="left"?(L.right="0",L.top="50%",L.transform="translate(50%, -50%)"):p.value==="left-start"?(L.right="0",L.top=`${n.arrowOffset}px`,L.transform="translate(50%, -50%)"):p.value==="left-end"&&(L.right="0",L.bottom=`-${n.arrowOffset}px`,L.transform="translate(50%, -50%)"),L):{display:"none"}}),P=()=>{const L={class:N.value,style:M.value};return o.h("div",L)},G=()=>{j.value===!1&&(v.value=!1)},ee=L=>{if(!f.value||j.value===!1)return;const{relatedTarget:ne}=L;f.value.contains(ne)||(j.value=!1,r("update:visible",!1))};return i({doLayout:$}),()=>{if(!v.value)return null;const L=[],ne=J();ne&&L.push(ne);const E=[],C=B();if(C&&E.push(C),a.default){const H=a.default();E.push(H)}const F=P();F&&E.push(F);const D={ref:f,class:z.value,style:y.value,onAnimationend:G};n.leaveHide&&(D.onMouseleave=ee);const w=o.h("div",D,{default:()=>E});return L.push(w),L}}}}const{componentName:ug,create:cg,scope:fg}=ie("popover-dialog"),nl=cg(sg(ug,fg,!1));function dg(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Al(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Yg,create:hg,scope:Ug}=ie("domain-provider"),ol=hg(dg()),gg={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 mg(e,t){return{inheritAttrs:!1,props:gg,setup(l,{slots:n}){if(ot&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,v)=>{if(d===null){a.set(p,{visible:null,callback:v});return}r.has(p)&&d.unobserve(p),r.set(p,{visible:null,callback:v}),d.observe(p)},u=p=>{if(d===null){a.delete(p);return}r.has(p)&&(r.delete(p),d.unobserve(p))};let s=l.initialVisibleObserverSize;yi({acquire:()=>{const p=s>0;return s--,p},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const g=(p,v,b)=>{d=new IntersectionObserver(f=>{for(let h of f){let A=!1;h.intersectionRatio>0&&(A=!0);const $=r.get(h.target);if($)try{if(l.loadPolicy==="lazy"&&!A&&$.visible!==null)return;$.visible=A,$.callback(A)}catch(T){console.error(T)}}},{root:p,rootMargin:v,threshold:b}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([p,v])=>{if(v||!p||d)return;let b=null;typeof p=="string"?b=document.querySelector(p):b=p,b&&g(b,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gg,create:yg,scope:Xg}=ie("rolling-provider"),ll=yg(mg()),pg=[Jn,eo,to,no,ro,Ce,uo,co,Vt,fo,ho,go,mo,yo,po,bo,wo,So,xo,To,Cn,Eo,No,ko,Io,Oo,Do,Vo,Fo,Ao,Mo,_o,qo,En,Po,jo,zo,Ho,Ko,Ft,gn,Wo,Yo,Uo,Go,Xo,tl,nl,ol,ll],bg=new Ga(pg,[Ja],"4.0.0");Object.defineProperty(m,"FoxAffix",{enumerable:!0,get:()=>S.ElAffix}),Object.defineProperty(m,"FoxAlert",{enumerable:!0,get:()=>S.ElAlert}),Object.defineProperty(m,"FoxAnchor",{enumerable:!0,get:()=>S.ElAnchor}),Object.defineProperty(m,"FoxAnchorLink",{enumerable:!0,get:()=>S.ElAnchorLink}),Object.defineProperty(m,"FoxAside",{enumerable:!0,get:()=>S.ElAside}),Object.defineProperty(m,"FoxAutoResizer",{enumerable:!0,get:()=>S.ElAutoResizer}),Object.defineProperty(m,"FoxAutocomplete",{enumerable:!0,get:()=>S.ElAutocomplete}),Object.defineProperty(m,"FoxAvatar",{enumerable:!0,get:()=>S.ElAvatar}),Object.defineProperty(m,"FoxBacktop",{enumerable:!0,get:()=>S.ElBacktop}),Object.defineProperty(m,"FoxBadge",{enumerable:!0,get:()=>S.ElBadge}),Object.defineProperty(m,"FoxBreadcrumb",{enumerable:!0,get:()=>S.ElBreadcrumb}),Object.defineProperty(m,"FoxBreadcrumbItem",{enumerable:!0,get:()=>S.ElBreadcrumbItem}),Object.defineProperty(m,"FoxButton",{enumerable:!0,get:()=>S.ElButton}),Object.defineProperty(m,"FoxButtonGroup",{enumerable:!0,get:()=>S.ElButtonGroup}),Object.defineProperty(m,"FoxCalendar",{enumerable:!0,get:()=>S.ElCalendar}),Object.defineProperty(m,"FoxCard",{enumerable:!0,get:()=>S.ElCard}),Object.defineProperty(m,"FoxCarousel",{enumerable:!0,get:()=>S.ElCarousel}),Object.defineProperty(m,"FoxCarouselItem",{enumerable:!0,get:()=>S.ElCarouselItem}),Object.defineProperty(m,"FoxCascader",{enumerable:!0,get:()=>S.ElCascader}),Object.defineProperty(m,"FoxCascaderPanel",{enumerable:!0,get:()=>S.ElCascaderPanel}),Object.defineProperty(m,"FoxCheckTag",{enumerable:!0,get:()=>S.ElCheckTag}),Object.defineProperty(m,"FoxCheckbox",{enumerable:!0,get:()=>S.ElCheckbox}),Object.defineProperty(m,"FoxCheckboxButton",{enumerable:!0,get:()=>S.ElCheckboxButton}),Object.defineProperty(m,"FoxCheckboxGroup",{enumerable:!0,get:()=>S.ElCheckboxGroup}),Object.defineProperty(m,"FoxCol",{enumerable:!0,get:()=>S.ElCol}),Object.defineProperty(m,"FoxCollapse",{enumerable:!0,get:()=>S.ElCollapse}),Object.defineProperty(m,"FoxCollapseItem",{enumerable:!0,get:()=>S.ElCollapseItem}),Object.defineProperty(m,"FoxCollapseTransition",{enumerable:!0,get:()=>S.ElCollapseTransition}),Object.defineProperty(m,"FoxColorPicker",{enumerable:!0,get:()=>S.ElColorPicker}),Object.defineProperty(m,"FoxConfigProvider",{enumerable:!0,get:()=>S.ElConfigProvider}),Object.defineProperty(m,"FoxContainer",{enumerable:!0,get:()=>S.ElContainer}),Object.defineProperty(m,"FoxCountdown",{enumerable:!0,get:()=>S.ElCountdown}),Object.defineProperty(m,"FoxDatePicker",{enumerable:!0,get:()=>S.ElDatePicker}),Object.defineProperty(m,"FoxDescriptions",{enumerable:!0,get:()=>S.ElDescriptions}),Object.defineProperty(m,"FoxDescriptionsItem",{enumerable:!0,get:()=>S.ElDescriptionsItem}),Object.defineProperty(m,"FoxDialog",{enumerable:!0,get:()=>S.ElDialog}),Object.defineProperty(m,"FoxDivider",{enumerable:!0,get:()=>S.ElDivider}),Object.defineProperty(m,"FoxDrawer",{enumerable:!0,get:()=>S.ElDrawer}),Object.defineProperty(m,"FoxDropdown",{enumerable:!0,get:()=>S.ElDropdown}),Object.defineProperty(m,"FoxDropdownItem",{enumerable:!0,get:()=>S.ElDropdownItem}),Object.defineProperty(m,"FoxDropdownMenu",{enumerable:!0,get:()=>S.ElDropdownMenu}),Object.defineProperty(m,"FoxEmpty",{enumerable:!0,get:()=>S.ElEmpty}),Object.defineProperty(m,"FoxFooter",{enumerable:!0,get:()=>S.ElFooter}),Object.defineProperty(m,"FoxForm",{enumerable:!0,get:()=>S.ElForm}),Object.defineProperty(m,"FoxFormItem",{enumerable:!0,get:()=>S.ElFormItem}),Object.defineProperty(m,"FoxHeader",{enumerable:!0,get:()=>S.ElHeader}),Object.defineProperty(m,"FoxIcon",{enumerable:!0,get:()=>S.ElIcon}),Object.defineProperty(m,"FoxImage",{enumerable:!0,get:()=>S.ElImage}),Object.defineProperty(m,"FoxImageViewer",{enumerable:!0,get:()=>S.ElImageViewer}),Object.defineProperty(m,"FoxInput",{enumerable:!0,get:()=>S.ElInput}),Object.defineProperty(m,"FoxInputNumber",{enumerable:!0,get:()=>S.ElInputNumber}),Object.defineProperty(m,"FoxInputTag",{enumerable:!0,get:()=>S.ElInputTag}),Object.defineProperty(m,"FoxLink",{enumerable:!0,get:()=>S.ElLink}),Object.defineProperty(m,"FoxMain",{enumerable:!0,get:()=>S.ElMain}),Object.defineProperty(m,"FoxMention",{enumerable:!0,get:()=>S.ElMention}),Object.defineProperty(m,"FoxMenu",{enumerable:!0,get:()=>S.ElMenu}),Object.defineProperty(m,"FoxMenuItem",{enumerable:!0,get:()=>S.ElMenuItem}),Object.defineProperty(m,"FoxMenuItemGroup",{enumerable:!0,get:()=>S.ElMenuItemGroup}),Object.defineProperty(m,"FoxMessage",{enumerable:!0,get:()=>S.ElMessage}),Object.defineProperty(m,"FoxMessageBox",{enumerable:!0,get:()=>S.ElMessageBox}),Object.defineProperty(m,"FoxNotification",{enumerable:!0,get:()=>S.ElNotification}),Object.defineProperty(m,"FoxOption",{enumerable:!0,get:()=>S.ElOption}),Object.defineProperty(m,"FoxOptionGroup",{enumerable:!0,get:()=>S.ElOptionGroup}),Object.defineProperty(m,"FoxPageHeader",{enumerable:!0,get:()=>S.ElPageHeader}),Object.defineProperty(m,"FoxPagination",{enumerable:!0,get:()=>S.ElPagination}),Object.defineProperty(m,"FoxPopconfirm",{enumerable:!0,get:()=>S.ElPopconfirm}),Object.defineProperty(m,"FoxPopover",{enumerable:!0,get:()=>S.ElPopover}),Object.defineProperty(m,"FoxPopper",{enumerable:!0,get:()=>S.ElPopper}),Object.defineProperty(m,"FoxProgress",{enumerable:!0,get:()=>S.ElProgress}),Object.defineProperty(m,"FoxRadio",{enumerable:!0,get:()=>S.ElRadio}),Object.defineProperty(m,"FoxRadioButton",{enumerable:!0,get:()=>S.ElRadioButton}),Object.defineProperty(m,"FoxRadioGroup",{enumerable:!0,get:()=>S.ElRadioGroup}),Object.defineProperty(m,"FoxRate",{enumerable:!0,get:()=>S.ElRate}),Object.defineProperty(m,"FoxResult",{enumerable:!0,get:()=>S.ElResult}),Object.defineProperty(m,"FoxRow",{enumerable:!0,get:()=>S.ElRow}),Object.defineProperty(m,"FoxScrollbar",{enumerable:!0,get:()=>S.ElScrollbar}),Object.defineProperty(m,"FoxSegmented",{enumerable:!0,get:()=>S.ElSegmented}),Object.defineProperty(m,"FoxSelect",{enumerable:!0,get:()=>S.ElSelect}),Object.defineProperty(m,"FoxSelectV2",{enumerable:!0,get:()=>S.ElSelectV2}),Object.defineProperty(m,"FoxSkeleton",{enumerable:!0,get:()=>S.ElSkeleton}),Object.defineProperty(m,"FoxSkeletonItem",{enumerable:!0,get:()=>S.ElSkeletonItem}),Object.defineProperty(m,"FoxSlider",{enumerable:!0,get:()=>S.ElSlider}),Object.defineProperty(m,"FoxSpace",{enumerable:!0,get:()=>S.ElSpace}),Object.defineProperty(m,"FoxStatistic",{enumerable:!0,get:()=>S.ElStatistic}),Object.defineProperty(m,"FoxStep",{enumerable:!0,get:()=>S.ElStep}),Object.defineProperty(m,"FoxSteps",{enumerable:!0,get:()=>S.ElSteps}),Object.defineProperty(m,"FoxSubMenu",{enumerable:!0,get:()=>S.ElSubMenu}),Object.defineProperty(m,"FoxSwitch",{enumerable:!0,get:()=>S.ElSwitch}),Object.defineProperty(m,"FoxTabPane",{enumerable:!0,get:()=>S.ElTabPane}),Object.defineProperty(m,"FoxTable",{enumerable:!0,get:()=>S.ElTable}),Object.defineProperty(m,"FoxTableColumn",{enumerable:!0,get:()=>S.ElTableColumn}),Object.defineProperty(m,"FoxTableV2",{enumerable:!0,get:()=>S.ElTableV2}),Object.defineProperty(m,"FoxTabs",{enumerable:!0,get:()=>S.ElTabs}),Object.defineProperty(m,"FoxTag",{enumerable:!0,get:()=>S.ElTag}),Object.defineProperty(m,"FoxTimePicker",{enumerable:!0,get:()=>S.ElTimePicker}),Object.defineProperty(m,"FoxTimeSelect",{enumerable:!0,get:()=>S.ElTimeSelect}),Object.defineProperty(m,"FoxTimeline",{enumerable:!0,get:()=>S.ElTimeline}),Object.defineProperty(m,"FoxTimelineItem",{enumerable:!0,get:()=>S.ElTimelineItem}),Object.defineProperty(m,"FoxTooltip",{enumerable:!0,get:()=>S.ElTooltip}),Object.defineProperty(m,"FoxTransfer",{enumerable:!0,get:()=>S.ElTransfer}),Object.defineProperty(m,"FoxTree",{enumerable:!0,get:()=>S.ElTree}),Object.defineProperty(m,"FoxTreeSelect",{enumerable:!0,get:()=>S.ElTreeSelect}),Object.defineProperty(m,"FoxTreeV2",{enumerable:!0,get:()=>S.ElTreeV2}),Object.defineProperty(m,"FoxUpload",{enumerable:!0,get:()=>S.ElUpload}),Object.defineProperty(m,"FoxWatermark",{enumerable:!0,get:()=>S.ElWatermark}),m.AutocompleteItem=So,m.Broadcast=Yn,m.BroadcastKey=we,m.CascaderItem=wo,m.CheckboxItem=ko,m.Content=no,m.DataItemsKey=yt,m.DateItem=go,m.DateUtils=ze,m.DialogItem=qo,m.Domain=Jt,m.DomainKey=_e,m.DomainProvider=ol,m.FloatingButton=Go,m.FloatingWindow=tl,m.FooterBar=to,m.FoxAutocompleteItem=So,m.FoxCascaderItem=wo,m.FoxCheckboxItem=ko,m.FoxContent=no,m.FoxDateItem=go,m.FoxDialogItem=qo,m.FoxDomainProvider=ol,m.FoxFloatingButton=Go,m.FoxFloatingWindow=tl,m.FoxFooterBar=to,m.FoxGroup=ro,m.FoxGroupSetting=Vo,m.FoxHeaderBar=eo,m.FoxHintText=Vt,m.FoxIndicator=Wo,m.FoxInfiniteLoading=Ho,m.FoxInputItem=fo,m.FoxInputNumberItem=bo,m.FoxItem=Ce,m.FoxMapping=Ft,m.FoxMoneyItem=po,m.FoxMoreButton=Uo,m.FoxOverLay=En,m.FoxPage=Jn,m.FoxPopoverDialog=nl,m.FoxPopup=Po,m.FoxPrice=gn,m.FoxPullRefresh=Ko,m.FoxRadioItem=No,m.FoxRateItem=Io,m.FoxRollingProvider=ll,m.FoxRowItem=co,m.FoxSearchBar=zo,m.FoxSelectItem=ho,m.FoxSlotItem=uo,m.FoxStepsBar=_o,m.FoxSwitchItem=Oo,m.FoxTableItem=Eo,m.FoxTableMappingColumn=xo,m.FoxTableRadioColumn=To,m.FoxTableSetting=Cn,m.FoxTabsBar=Fo,m.FoxTabsContainer=Ao,m.FoxTabsPane=Mo,m.FoxText=Yo,m.FoxTimeItem=mo,m.FoxTimeSelectItem=yo,m.FoxToast=jo,m.FoxTour=Xo,m.FoxTreeSelectItem=Do,m.Group=ro,m.GroupSetting=Vo,m.HeaderBar=eo,m.HintText=Vt,m.Indicator=Wo,m.InfiniteLoading=Ho,m.InputItem=fo,m.InputNumberItem=bo,m.Item=Ce,m.Mapping=Ft,m.MoneyItem=po,m.MoreButton=Uo,m.OverLay=En,m.Page=Jn,m.PopoverDialog=nl,m.Popup=Po,m.Price=gn,m.PriorityPolicy=je,m.PullRefresh=Ko,m.RadioItem=No,m.RateItem=Io,m.RollingProvider=ll,m.RowItem=co,m.SearchBar=zo,m.SelectItem=ho,m.SlotItem=uo,m.StepsBar=_o,m.SwitchItem=Oo,m.TableItem=Eo,m.TableMappingColumn=xo,m.TableRadioColumn=To,m.TableSetting=Cn,m.TabsBar=Fo,m.TabsContainer=Ao,m.TabsPane=Mo,m.Text=Yo,m.TimeItem=mo,m.TimeSelectItem=yo,m.Toast=jo,m.Tour=Xo,m.TreeSelectItem=Do,m.UniqueID=Ul,m.ValidateSchema=Rl,m.ValidateSchemaKey=Ke,m.cancelRaf=da,m.clearNonNumber=$a,m.clone=zn,m.compareTo=_n,m.createBroadcast=Yt,m.createValidateSchema=Gt,m.debounce=Pe,m.debounceRef=Ba,m.decimalLength=El,m.default=bg,m.defineBroadcast=ka,m.defineConfigDomain=Al,m.defineDataItem=Ml,m.defineDomain=Gn,m.defineItem=ke,m.definePageState=Bl,m.defineSimpleItem=Ll,m.deleteGlobalValidator=Ra,m.disabledProperty=Me,m.divide=Bn,m.excludeProps=De,m.extend=ut,m.floatData=Na,m.getGlobalValidateCheckEvents=Ol,m.getGlobalValidateResetEvents=Vl,m.getPageContentAreaHeight=nn,m.getPageContentAreaWidth=on,m.getPageFooterAreaHeight=tn,m.getPageHeaderAreaHeight=en,m.getRootDomain=pt,m.hasSymbol=wl,m.includeProps=kl,m.indexOf=Ca,m.integerLength=Cl,m.isArray=ga,m.isArrayLike=xl,m.isBrowser=ot,m.isDate=pa,m.isESModule=va,m.isEmptyString=he,m.isEqual=et,m.isFunction=Pn,m.isHidden=Wt,m.isInnerPage=Pa,m.isMap=ma,m.isNil=Kn,m.isNumberString=$l,m.isObject=Qe,m.isPlainObject=jn,m.isPromise=bl,m.isRegExp=Wn,m.isSet=ya,m.isString=pl,m.isSubPage=ja,m.isSymbol=ba,m.isTouch=Lt,m.isWindow=Sl,m.lastIndexOf=Ea,m.makeArray=Ta,m.merge=Tl,m.multiply=gl,m.negate=ml,m.nextTick=Sa,m.numberFormat=zt,m.objectToString=vl,m.once=_a,m.overrideGlobalValidateHandler=Da,m.property=Fe,m.raf=qn,m.readonlyProperty=Ae,m.setGlobalValidateCheckEvents=Fa,m.setGlobalValidateHandler=Oa,m.setGlobalValidateMessages=Ma,m.setGlobalValidateResetEvents=Aa,m.setGlobalValidator=Va,m.throttle=La,m.toBoolean=ue,m.toNumber=Te,m.toPadding=Xe,m.toPx=me,m.toPxDesc=Ve,m.toTypeString=Ht,m.toValue=ge,m.tryTimes=Zt,m.typeOf=Kt,m.unNumberFormat=yl,m.updatePageState=Xn,m.useBroadcast=kt,m.useDomain=lt,m.useExpose=Se,m.useInnerSize=an,m.usePageState=Qt,m.usePosition=ao,m.useRawTouch=Bt,m.useRect=Jr,m.useSize=Qn,m.useTouch=Hf,m.valueLength=Nt,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|