@fox-js/foxui-pc 4.0.1-122 → 4.0.1-124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,l,it,b,Ne,Be){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Mon Jan 13 2025 15:19:55 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-desktop v4.0.0 Wed Mar 26 2025 15:52:04 GMT+0800 (中国标准时间)
3
3
  */const qt=window,ea=typeof window<"u";function ta(){return typeof qt<"u"?qt.requestAnimationFrame||qt.webkitRequestAnimationFrame||function(e){qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function na(e){ea?cancelAnimationFrame(e):clearTimeout(e)}const Ul=ta();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function Pt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ee(e),t=Ee(t),[e,t]=vn(Ee(e),Ee(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Gl(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(bn(r)):Ee(r)}function bn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Gl(t,a)}function Ee(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 o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Gl(e,t){[e,t]=vn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var be=(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))(be||{});function Tt(e,t=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=Tt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Xl(r[1],a,n,o)?(n?"-":"")+wn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Xl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Xl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===be.DOWN||!o&&n===be.FLOOR||o&&n===be.CEILING)return!1;if(n===be.UP||o&&n===be.FLOOR||!o&&n===be.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 be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function Sn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(v+=parseInt(e[u[V]--])*parseInt(t[V]));v+=s,s=Math.floor(v/10),c=v%10+c,f--}return c=Ct(la(c,a)),o==1&&(c="-"+c),c}function la(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function xn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ee(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ee(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ee(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ee(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Pt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ee(Tt(s,o-2))}function Tn(e,t){return e=e.toString(),t=t.toString(),t=Cn(t),Pt(e,t)}function Cn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Zl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Jl(e),Jl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Tn(e,Sn(t,Tt(xn(e,t),0,be.FLOOR)));return o+n}function Jl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ql(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=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]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=be;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ee(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=be.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Tt(t,o,n)}round(t=0,o=be.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(Tt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Pt(t,o)}add(t){return new ce(Pt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),Tn(t,o)}subtract(t){return new ce(Tn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),Sn(t,o)}multiply(t){return new ce(Sn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),xn(t,o,n)}divide(t,o){return new ce(xn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),Zl(t,o)}modulus(t){return new ce(Zl(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Ql(t,o)}compareTo(t){return Ql(this.value,t.getValue())}static negate(t){return t=ce.validate(t),Cn(t)}negate(){return new ce(Cn(this.value))}}function eo(e,t){return ce.multiply(`${e}`,`${t}`)}function $n(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function Nn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function to(e){return ce.negate(e)}function jt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",v=s.split("").reverse();for(let V=0;V<v.length;V++)d+=v[V]+((V+1)%n==0&&V+1!=v.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function no(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const En=Ul,oa=Array.isArray,ra=e=>zt(e)==="[object Map]",aa=e=>zt(e)==="[object Set]",ia=e=>e instanceof Date,kn=e=>typeof e=="function",lo=e=>typeof e=="string",sa=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",oo=e=>Ge(e)&&kn(e.then)&&kn(e.catch),ro=Object.prototype.toString,zt=e=>ro.call(e),In=e=>zt(e)==="[object Object]",ao=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ua(e){return e.__esModule||ao&&e[Symbol.toStringTag]==="Module"}const ca=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function st(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=st(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function On(e,t,o=!1){if(!o)st(!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)&&!In(i))continue;a=On(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!In(i))continue;a=On(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Vn=ca?Promise.resolve():null;function fa(e,...t){Vn!==null?t&&t.length>0?Vn.then(()=>{e(t)}):Vn.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 Se(e){return typeof e=="number"?e:Number(e)}const da={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Ht(e){let o=Object.prototype.toString.call(e);return e==null?String(e):da[o]||"object"}function io(e){return e&&typeof e=="object"&&"setInterval"in e}function Kt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function so(e){let t=!!e&&"length"in e&&e.length,o=Ht(e);return o==="function"||io(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function uo(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function ha(e,t=[]){let o=t;return e!=null&&(so(Object(e))?uo(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Ht(e),n=Ht(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Xe(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Xe(a,i))return!1}return!0}return!1}const ut=typeof window<"u";function Fn(e){return e==null}function Dn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function co(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fo(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function ho(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function go(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ga(e,t=!0,o=!0){t?e=go(e,".",/\./g):e=e.replace(/\./g,""),o?e=go(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ma(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function pa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function $t(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mo(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ya=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ve=Symbol.for("BroadcastKey");class Rn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,o,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:o,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(o=>{t.push(o)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||Dn(o.name)&&t&&o.name.test(t)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[t]):o.name===t&&(n=!0),n}trigger(t,o,n){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const o=t.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.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,o,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const i=t.resolve,s=t.uniqueId??"",u=(...f)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...f)};t.resolve=u}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):Dn(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const a=t.resolve,i=t.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};t.resolve=s}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Wt(e,t,o,n){const r=new Rn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ba(e,t,o){const n=o;if(n[ve])return n[ve];const r=l.inject(ve,null),a=new Rn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),n[ve]=void 0}),a}function Nt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const ct=e=>e.default??e;class va{error(t,o){const n=o,r=o||l.hasInjectionContext()?Nt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Nt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Et=new va;function wa(e){Et=e}function Sa(e){Et?Object.assign(Et,e):Et=e}function xa(e,t){ct(it).setValidator(e,t)}function Ta(e){ct(it).deleteValidator(e)}let po=["blur","clear"];function Ca(e){po=e}function yo(){return po}let bo=["focus","change","setValue"];function $a(e){bo=e}function vo(){return bo}function Na(e){ct(it).messages(e)}function kt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Yt(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 je=Symbol("ValidateSchemaKey");class wo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Yt(kt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Yt(n);const r=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Et;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ct(it).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ct(it).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ct(it).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=kt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Yt(t):this.rules=Yt([t]);const n=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=kt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ct(it),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function Ut(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new wo(t,o,e)}const Gt=Symbol.for("EventEmitterKey");class So{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function It(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function xo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ea(e,t){const o=It((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function ka(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Xt(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class Zt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Ia=new Zt;function mt(){return Ia}function tt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const An=Symbol("OriginalDateKey");function Mn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=mt());const s=e||t.prop||t.name;let u=new Zt(s);u.parent=i;const f=V=>{a[An]||v(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[An]??null,v=V=>{const m={};st(!0,m,l.toRaw(V)),a[An]=m};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Le]=u,l.provide(Le,u),r!==null){const V=l.inject(ve,null),m=Wt(a,V,s,n);u.broadcast=m,a[ve]=m,l.provide(ve,m),a.broadcast=(T,w,...N)=>Reflect.apply(m.emit,m,[T,w,...N]);const h=l.inject(je,null),g=Ut(a,h,{componentName:""});u.validateSchema=g,a[je]=g,l.provide(je,g),a[gt]=new Map,a.validate=(T=!0)=>{const w=[];let N=null;const z={deep:!1};if(T===!0)N={name:"*"};else if(Array.isArray(T)&&T.length>0){const B=T;N={name:_=>_?B.indexOf(_)!==-1:!1}}else if(T!=null&&typeof T=="object"){const B=T;if(Object.assign(z,B),Array.isArray(B.include)&&B.include.length>0){const _=B.include;N={name:F=>F?_.indexOf(F)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const _=B.exclude;N={name:F=>F?_.indexOf(F)===-1:!1}}else N={name:"*"}}if(N){const B=m?.emitToChildren(N,"validate",z);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let _=[];return B.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(_=[..._,...F.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,w=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(T).forEach(B=>{let _=String(B);const F={componentName:"",fieldName:_,pureDataValidate:!0};if(u){const M=Co(u,_,F,m,g);a[gt].set(_,M);const E=T[_];E&&M.validateSchema.setRule(E)}});return}if(w){const z=Reflect.ownKeys(T),B={name:_=>z.includes(_),cachePolicy:"Persistant",uniqueId:"validateRules"};m?.emitToChildren(B,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let w=null;if(T===!0)w={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;w={name:z=>z?N.indexOf(z)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Array.isArray(N.include)&&N.include.length>0){const z=N.include;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const z=N.exclude;w={name:B=>B?z.indexOf(B)===-1:!1}}else w={name:"*"}}w&&m?.emitToChildren(w,"clearValidate",!1)},a.resetFields=T=>{const w=c();if(!w)return;const N={};if(st(!0,N,d()??{}),Array.isArray(T))T.forEach(z=>{w[z]=N[z]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(B=>{w[B]=N[B]});else if(T&&Array.isArray(T.exclude)){let z=T.exclude??[];Reflect.ownKeys(N).forEach(B=>{z.includes(B)||(w[B]=N[B])})}else Object.assign(w,N);a.clearValidate(T)},a.setModelValue=(T,w)=>{!w||w===s?f(T):m?.emitToChildren({name:w,messagingPolicy:"Once"},"setModelValue",T)},a.getModelValue=()=>c(),setTimeout(function(){m?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[je]=void 0,l.provide(je,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[Le]=void 0,l.provide(Le,null),a[gt]&&(a[gt].clear(),a[gt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function To(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=mt());const i=e||t.prop||t.name;let s=new Zt(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Le]=s,l.provide(Le,s),l.onUnmounted(()=>{s?.destroy(),r[Le]=void 0,l.provide(Le,null),s=null,r=null}),s}function Ce(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ve,null);let s=Wt(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(m,h,...g)=>s?Reflect.apply(s.emit,s,[m,h,...g]):null;const u=l.inject(je,null);e.fieldName=e.fieldName??a;let f=Ut(r,u,e);r[je]=f,l.provide(je,f),r.validate=(m=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)T=!0,g=!0;else if(m&&typeof m=="object"){const w=m,N=w.ignoreDisabled??!0,z=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;N===!0&&e.disabled===!0||z===!0&&e.readonly===!0||B===!0&&Kt(r.$el)?T=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),T=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),T=!0;if(T){const w=f?.validate();h.push(w)}if(g){let w=null;const N={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const z=m;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const z=m;if(Object.assign(N,z),Array.isArray(z.include)&&z.include.length>0){const B=z.include;w={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const B=z.exclude;w={name:_=>_?B.indexOf(_)===-1:!1}}else w={name:"*"}}if(w&&s){const z=s.emitToChildren(w,"validate",N);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let N=[];return w.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(N=[...N,...z.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>f?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&f?.setRule(g),h&&s){const T={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren(T,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:w=>w?T.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new So(r);r[Gt]=c;const d=It((m="validate")=>{f&&(m==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:yo()).forEach(m=>{c&&c.on(m,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vo()).forEach(m=>{c&&c.on(m,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,f?.destroy(),r[je]=void 0,l.provide(je,null),f=null,c?.destroy(),r[Gt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(m,...h)=>{c&&Reflect.apply(c.emit,c,[m,...h])},onEvent:(m,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(m,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function Co(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=Ut({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,v=!0;else if(c&&typeof c=="object"){const m=c;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),V=!0,v=m.deep??!1}else typeof c=="boolean"&&(v=c),V=!0;if(V&&u){const m=u.validate();d.push(m)}if(v){let m=null;const h={deep:!1};if(c===!0)m={name:"*"};else if(Array.isArray(c)&&c.length>0){const g=c;m={name:T=>T?g.indexOf(T)!==-1:!1}}else if(c!=null&&typeof c=="object"){const g=c;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;m={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;m={name:w=>w?T.indexOf(w)===-1:!1}}else m={name:"*"}}if(m&&f){const g=f.emitToChildren(m,"validate",h);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=Wt(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function $o(){let t=l.getCurrentInstance()?.proxy,o=new So(t);return t[Gt]=o,l.onUnmounted(()=>{o?.destroy(),t[Gt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ie=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(ut){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const nt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function Ln(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(i,a)-he(s,a),e.width=he(o.width??t.width??0,r)}}function No(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Ln(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(nt);d&&(n.height=Qt(e,d),n.width=en(e,d),l.watch([()=>Qt(e,d),()=>en(e,d)],([V,m])=>{c.height=V,c.width=m}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,m,h=-1,g=-1,T=0,w=0])=>{Ln(c,m,t,v,h,g,T,w)}),e.set(nt,c),c}function Jt(e){return e.get(nt)}function Ot(e,t){if(t=t??e.get(nt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Vt(e,t){if(t=t??e.get(nt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Qt(e,t){if(t=t??e.get(nt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Vt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function en(e,t){return t=t??e.get(nt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Oa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Va(e){return!!e.getForParent(nt)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Bn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ve(e,t,o=1,n){const r=tt();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Bn(u,n))return u}const i=e.value;return Bn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Bn(a,n)?a:r?.get(t)})}function Fe(e){return Ve(e,"readonly",0,function(o){return ue(o)})}function De(e){return Ve(e,"disabled",0,function(o){return ue(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const Eo=new Map,tn=new Map;let _n=null;function Fa(e){_n=e}function ko(e,t,o){if(o){let n=tn.get(o);n||(n=new Map,tn.set(o,n)),n.set(e,t)}else Eo.set(e,t)}function ze(e,t,o){!o&&_n&&(o=_n(e)??void 0);let n=null;if(o){let r=tn.get(o);r&&(n=r.get(t))}return n||(n=Eo.get(t)),n}function Da(e,t){for(let o in e){const n=e[o];ko(o,n,t)}}function Ra(e){tn.delete(e)}function Aa(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(ut){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function La(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Ba{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=La(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=mt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=xo(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=st({},Aa(),t.safeAreaInset),i=Ma(n,r),s=st({},i.pageLayout,t.pageLayout);o=o??mt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){ko(t,o,n)}getAPI(t,o,n){return ze(t,o,n)}batchSetAPI(t,o){Da(t,o)}clearScopeAPI(t){Ra(t)}getRootDomain(){return mt()}}const _a=[b.ElAffix,b.ElAlert,b.ElAutocomplete,b.ElAutoResizer,b.ElAvatar,b.ElBacktop,b.ElBadge,b.ElBreadcrumb,b.ElBreadcrumbItem,b.ElButton,b.ElButtonGroup,b.ElCalendar,b.ElCard,b.ElCarousel,b.ElCarouselItem,b.ElCascader,b.ElCascaderPanel,b.ElCheckTag,b.ElCheckbox,b.ElCheckboxButton,b.ElCheckboxGroup,b.ElCol,b.ElCollapse,b.ElCollapseItem,b.ElCollapseTransition,b.ElColorPicker,b.ElConfigProvider,b.ElContainer,b.ElAside,b.ElFooter,b.ElHeader,b.ElMain,b.ElDatePicker,b.ElDescriptions,b.ElDescriptionsItem,b.ElDialog,b.ElDivider,b.ElDrawer,b.ElDropdown,b.ElDropdownItem,b.ElDropdownMenu,b.ElEmpty,b.ElForm,b.ElFormItem,b.ElIcon,b.ElImage,b.ElImageViewer,b.ElInput,b.ElInputNumber,b.ElLink,b.ElMenu,b.ElSubMenu,b.ElMenuItem,b.ElMenuItemGroup,b.ElPageHeader,b.ElPagination,b.ElPopconfirm,b.ElPopover,b.ElPopper,b.ElProgress,b.ElRadio,b.ElRadioButton,b.ElRadioGroup,b.ElRate,b.ElResult,b.ElRow,b.ElScrollbar,b.ElSelect,b.ElOption,b.ElOptionGroup,b.ElSelectV2,b.ElSkeleton,b.ElSkeletonItem,b.ElSlider,b.ElSpace,b.ElSteps,b.ElStep,b.ElSwitch,b.ElTable,b.ElTableColumn,b.ElTableV2,b.ElTabs,b.ElTabPane,b.ElTag,b.ElTimePicker,b.ElTimeSelect,b.ElTimeline,b.ElTimelineItem,b.ElTooltip,b.ElTransfer,b.ElTree,b.ElTreeSelect,b.ElTreeV2,b.ElUpload],qa=[b.ElInfiniteScroll,b.ElLoading,b.ElMessage,b.ElMessageBox,b.ElNotification,b.ElPopoverDirective],Pa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);_a.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),qa.forEach(r=>{e.use(r)})};function se(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Oe={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}},Io={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}},Oo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Vo=[];for(const e in Oo)Vo.push(e);const ja=Symbol.for("InnerPageScopeKey"),za={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}},Ha=(e,t)=>({inheritAttrs:!0,props:{...xe,...Io,...za},setup(o,{slots:n}){const r=Mn(o.name,o),a=l.inject(ja,!1);if(r){const c=No(r,o);$e({getPageContentHeight:()=>Qt(r,c),getPageContentWidth:()=>en(r,c),getPageHeaderHeight:()=>Ot(r,c),getPageFooterHeight:()=>Vt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[v,V])=>{if(c&&v){const m=l.toRaw(v),h=l.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h)}if(d&&V){const m=l.toRaw(V),h=l.toRaw(d),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ka,create:Wa,scope:Ih}=se("page"),qn=Wa(Ha(Ka));function nn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Pn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ya=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=tt(),s=i?Jt(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?he(r.height):null,v=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=Ke(r.padding??s.headerPadding);return Object.assign(k,x),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(x.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),r.padding){const x=Ke(r.padding);Object.assign(k,x)}return k}),V=l.ref(null),m=()=>{if(s&&V.value&&!Kt(V.value)){if(!n){const k=nn(V.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(Xt(m,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const k={};return v.value.height!==null&&v.value.height!==void 0&&(k.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(k.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(k.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(k.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(k.paddingBottom=`${v.value.bottom}px`),k}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function N(){a.emit("click-title")}function z(){a.emit("click-right")}function B(){a.emit("click-right-text")}const _=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},F=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[l.h(r.rightIcon)]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},M=()=>{if(!r.titleShow)return null;const k=[],x=a.slots.default?a.slots.default():null;if(x)k.push(x);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},E=()=>{const k=[],x=a.slots.bottom?a.slots.bottom():null;return x&&k.push(x),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!T.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const j=[],$=_();$&&j.push($);const I=M();I&&j.push(I);const R=F();if(R&&j.push(R),j.length>0){const Y=l.h("view",{class:c.value},j);k.push(Y)}const U=E();U&&k.push(U)}if(k.length===0)return null;const x={class:f.value,style:g.value,ref:V};return l.h("view",x,k)}}}),{componentName:Ua,create:Ga,scope:Xa}=se("header-bar"),jn=Ga(Ya(Ua,Xa,Ne.ArrowLeft));function Za(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=tt(),i=a?Jt(a):null,s=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,f=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(m,h),u&&(i.footerHeight=u),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),n.padding){const h=Ke(n.padding);Object.assign(m,h)}return m}),c=l.ref(null),d=()=>{if(i&&c.value&&!Kt(c.value)){if(!o){const m=nn(c.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(Xt(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const V=l.computed(()=>{const m={};return f.value.height!==null&&f.value.height!==void 0&&(m.height=Ie(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(m.paddingTop=Ie(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(m.paddingLeft=Ie(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(m.paddingRight=Ie(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(m.paddingBottom=Ie(f.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,m)}}}}const{componentName:Ja,create:Qa,scope:Oh}=se("footer-bar"),zn=Qa(Za(Ja));function ei(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=tt(),r=l.computed(()=>({[e]:!0})),a=n?Jt(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=Ke(o.padding);Object.assign(a.contentPadding,V)}const c=Ot(n,a),d=Vt(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,f.height=v,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=Ke(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=Pn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Vt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ti,create:ni,scope:Vh}=se("content"),li=ni(ei(ti));function oi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Pe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Hn=Pe(li,[["render",oi]]),pt="GroupStateKey",Fo=Symbol.for("GroupScopeKey");function ln(){return l.inject(Fo,!1)}function on(e=!0){l.provide(Fo,e)}function ri(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Fn(r)||(e[n]=r)})}function ai(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ri(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(pt,a),a}function Kn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(pt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=he(a),d=he(i);s||(s=f.type??"grid");const v=()=>{const V=t===""||t===-1,m=he(t);let h=Se(o);const g=he(n);if(!V){let N=(m-(h-1)*g)/h;for(;d!==-1&&N>d;)h++,N=(m-(h-1)*g)/h;for(;c!==-1&&h>1&&N<c;)h--,N=(m-(h-1)*g)/h}let T=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,T=!0),w.value.gutter!==g&&(w.value.gutter=g,T=!0),w.value.type!==s&&(w.value.type=s,T=!0),T&&l.triggerRef(w)};if(r)v();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&v()},50)}}function rn(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.layout}function an(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.order}function Do(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function sn(e,t,o=1,n=0,r){const a={};let i=0;r?i=he(r):i=Do(t.column,o),i>0&&(a.width=`${i}%`);const s=Do(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function un(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=Se(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=Se(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Ro=Symbol("RollingStateKey");function ii(e){l.provide(Ro,e)}function si(){return l.inject(Ro,null)}function Wn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ui(e){let t=Wn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Wn(o),document.body.removeChild(o)}return t}function ci(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const fi={...xe,...Io,...Oo};function di(e,t,o){return{props:fi,emits:["update:collapse","header-click"],setup(n,r){const a=Mn(n.name,n,Vo),i=ai(a,{type:n.type}),s=ln();on(!0);const u=n.rollingDisplay?si():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?rn(a,!0).value:null),v=l.getCurrentInstance(),V=(H,J=!1)=>{const ne=v?.proxy;ne&&typeof ne.setNameValidateRules=="function"&&ne.setNameValidateRules(H,!0,J)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,J],[ne,C])=>{if(H&&ne){const W=l.toRaw(ne),ee=l.toRaw(H),oe=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{oe.includes(fe)||(ee[fe]=[])}),V(ee)}if(J&&C){const W=l.toRaw(C),ee=l.toRaw(J),oe=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{oe.includes(fe)||(ee[fe]=[])}),V(ee,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const H={};H.height=R.value;const J=s?an(a,!0):null;if(d.value&&J){if(d.value.type==="grid"){const ne=un(J,d.value,n.span,n.offset);Object.assign(H,ne)}else if(d.value.type==="flow"){const ne=sn(J,d.value,n.span,n.offset,n.width);Object.assign(H,ne)}}else if(n.width){const ne=Ie(n.width);H.width=ne}return H}),g=l.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${m}--${H}`]:!0,[`${m}--${H}-justify-${n.justify}`]:!0,[`${m}--${H}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${H}`]:!0,[`${m}--gutter`]:!0}}),T=l.computed(()=>{if(i.layout.value.type==="grid"){let J="";if(n.columnWidth)J=`repeat(auto-fill, ${n.columnWidth})`;else{const ne=ci(M.value,i.layout.value.column,i.layout.value.gutter);J=`repeat(${i.layout.value.column}, ${ne})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":J}}}),w=l.toRef(n,"gutter"),N=l.toRef(n,"column"),z=l.computed(()=>s||c.value?!0:ue(n.isWrap)),B=[],_=H=>{B.push(H)},F=()=>{let H=B.length;B.splice(0,H)},M=l.ref(-1),E=H=>{const J=Pn(H).width;J>0&&J!==M.value&&(M.value=J)};Kn(a,M.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,N,w],([H,J,ne])=>{i.order.index=0,Kn(a,H,J,ne,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>U.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),$=l.ref(),I=l.ref(),R=l.computed(()=>Y.value||Ie(n.height)||""),U=l.ref(!1),Y=l.ref(""),Z=l.ref(!1);let X=-1;const te=(H,J=!0)=>{const ne=$.value;if(ne&&U.value!==H){if(X=X===-1?ui(ne):X,Z.value=!0,J)if(ne.style["will-change"]="height",ne.ontransitionend=function(){ne.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",Z.value=!1)},H){let C=0;n.collapseHeight?C=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(C=I.value.offsetHeight),Y.value=`${X}px`,l.nextTick(()=>{Y.value=`${C}px`})}else Y.value=`${X}px`;else if(H){let C=0;n.collapseHeight?C=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(C=I.value.offsetHeight),Y.value=`${C}px`}else Z.value=!1,Y.value=`${X}px`;U.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{te(H)});const ae=H=>{r.emit("header-click",H)},O=()=>{S()},S=H=>{H=H??!U.value,te(H)};$e({toggleCollapse:S,doLayout:()=>{B[0]&&(E(B[0]),Kn(a,M.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,y=!0;const K=H=>{if(n.rules){const J=l.toRaw(n.rules);V(J)}if(n.pureDataRules){const J=l.toRaw(n.pureDataRules);V(J,!0)}if(ut&&(H&&te(ue(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const J=B[0];E(J),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{E(J)}),D.observe(J))}},P=()=>{D?.disconnect(),D=null},q=!c.value||u?.acquire();q&&(f.value=c.value?!0:null),l.onMounted(()=>{if(q&&(K(y),y=!1),c.value&&u){let H=null,J=u.initialHeight;u.observe($.value,ne=>{if(ne!==f.value)if(ne)f.value=!0,U.value||(Y.value=""),H=setTimeout(()=>{H=null,f.value!==!1&&(K(y),y=!1)},100);else{if(H!==null&&clearTimeout(H),f.value=!1,!U.value)if(y)Y.value=u.initialHeight;else{let C=Wn($.value);C<=0?Y.value=J:(Y.value=`${C}px`,J=Y.value)}y||P()}})}}),l.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve($.value)});const L=(H="right")=>{const J=[];if(k.value){const W={class:x.value},ee=l.h("span",W,[k.value]);J.push(ee)}const ne={class:j.value},C=o(n.collapseIcon,ne);return C&&J.push(C),J.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},J):null},G=(H,J,ne,C)=>{const W={...g.value};return J===0&&(W[`${m}__first`]=!0),ne>=C-1&&(W[`${m}__last`]=!0),l.h("div",{ref:_,key:`${J}`,class:W,style:T.value},H)};return()=>{if(c.value&&f.value!==!0){const W=n.tag||"div";return l.h(W,{ref:$,prop:n.name,class:{[`${m}`]:!0,"is-collapse":Z.value},style:h.value},[])}i.order.index=0;const H=[];let J=0;if(r.slots.header){const W={key:`${J++}`,ref:I,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},ee=l.h("div",W,[r.slots.header()]);H.push(ee)}else{const W=[],ee=n.collapsePosition==="left";if(ee&&n.showCollapse){const oe=L("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${m}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ee&&n.showCollapse){const oe=L("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${J++}`,ref:I,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},de=l.h("div",oe,W);H.push(de)}}F();const ne=r.slots.default?r.slots.default():[],C=i.layout.value.type;if(C==="grid"){const W=G(ne,J++,0,ne.length);H.push(W)}else if(C==="flow"){const W=G(ne,J++,0,ne.length);H.push(W)}else for(let W=0;W<ne.length;W++){const ee=ne[W],oe=G([ee],J++,W,ne.length);H.push(oe)}if(z.value){const W=n.tag||"div";return l.h(W,{ref:$,prop:n.name,class:{[`${m}`]:!0,"is-collapse":Z.value},style:h.value},[H])}else return H}}}}const{componentName:hi,create:gi,scope:mi}=se("group"),Yn=gi(di(hi,mi,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function pi(e){return e===window}const yi=/matrix\((.+)\)/,Ao=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(pi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=yi.exec(f);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class bi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class vi{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new bi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Mo=new vi,Lo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:wi,create:Si}=se("price"),xi=Si({props:{...Lo},setup(e){const t=l.computed(()=>({[wi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>$t(e.price)==0?"":jt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ti=["innerHTML"],Ci=["innerHTML"];function $i(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ti)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ci)):l.createCommentVNode("",!0)],2)}const cn=Pe(xi,[["render",$i]]),{componentName:Un,create:Ni}=se("hint-text"),Ei=Ni({components:{Price:cn},props:{...Lo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,j,$,I,R,U)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,Z=document.documentElement.clientHeight||document.body.clientHeight,X=x.split("-");let te=[];X[0]==="top"?te=["top","bottom","right","left"]:X[0]==="bottom"?te=["bottom","top","right","left"]:X[0]==="left"?te=["left","top","bottom","right"]:X[0]==="right"&&(te=["right","top","bottom","left"]);const ae={top:null,right:null,bottom:null,left:null},O=[];for(let S=0;S<te.length;S++){const A=te[S];if(O[0]=A,X[1]&&(O[1]=X[1]),A==="top"){const D=j.y-U-e.arrowSize-e.offset;if(D>=0){ae.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+$-R:y=j.x+$/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,ae.left=y<0?0:y;break}}else if(A==="bottom"){const D=j.y+I+e.arrowSize+e.offset;if(D+U<=Z){ae.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+$-R:y=j.x+$/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,ae.left=y<0?0:y;break}}else if(A==="left"){const D=j.x-R-e.arrowSize-e.offset;if(D>=0){ae.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-U:y=j.y+I/2-U/2,ae.top=y<0?0:y;break}}else if(A==="right"){const D=j.x+$+e.arrowSize+e.offset;if(D+R<=Y){ae.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-U:y=j.y+I/2-U/2,ae.top=y<0?0:y;break}}}return{bestPlacement:O.join("-"),bestInsetRect:ae}},c=(x,j,$=10)=>{if(!ut||j===!1||!x)return;n.value=Ao(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const I=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:Y}=f(e.placement,n.value,r.value,a.value,R,I);i.value=U,o.value=Y,s.value=!0},d=l.ref(0),v=It(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const m=l.computed(()=>V.value&&h.value),h=l.ref(!0),g=It(x=>{const j=x[0];j&&(h.value=j.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([x,j])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Mo.watch(e.reference,v),T.observe(e.reference)}),l.onBeforeMount(()=>{Mo.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const w=l.computed(()=>{const x={[Un]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),N=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${j}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),z=l.computed(()=>{const x=[`${Un}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),B=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),_=l.computed(()=>({[`${Un}__arrow`]:!0})),F=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),M=l.computed(()=>m.value&&e.closeOnClick),E=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:m,tipRef:u,classes:w,styles:N,textClasses:z,textStyles:B,arrowClasses:_,arrowStyles:F,overlayShow:M,overlayStyle:E,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),ki=["innerHTML"];function Ii(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ki))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Ft=Pe(Ei,[["render",Ii]]);class Bo{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 Gn={},Oi=new Bo,yt=new Map,fn=e=>{if(e){const t=document.getElementById(e);yt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of yt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}yt.clear()}},Vi=e=>{e.unmount=fn;const t=document.getElementById(e.id);if(t){const o=yt.get(e.id);o?e={...Gn,...o,...e}:e={...Gn,...e},e.transition=!1;const n=l.createVNode(Ft,e);return l.render(n,t),e.id}},Fi=e=>{e.unmount=fn;let t=e.id??`hinttext_${Oi.get()}`;e={...Gn,...e},e.id=t,yt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Ft,e);return l.render(n,o),document.body.appendChild(o),t},Di=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){Di(t);const r=o.id;return r&&yt.has(r)?Vi({...o,message:t,reference:e}):(n&&fn(),Fi({...o,message:t,reference:e}))},hide(e){fn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Ri(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Oe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ce({componentName:e,validate:!1},i);const s=tt(),u=ln();on(!1);const f=l.computed(()=>u&&s?rn(s,!1).value:null),c=e,d=l.ref(null),v=l.computed(()=>{const C={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:ue(r.hasBorder)};if(C[r.errorMarkClass]=!!U.value,C[r.warnMarkClass]=!!I.value,C[r.infoMarkClass]=!!j.value,typeof d.value=="function"){const W=d.value(i);C[W]=!0}else if(typeof d.value=="string"){const W=d.value;C[W]=!0}return C}),V=l.ref(null),m=l.computed(()=>{const C={};if(r.width)r.width!=="auto"&&(C.width=Ie(r.width));else{const W=u&&s?an(s,!1):null;if(f.value&&W){if(f.value.type==="grid"){const ee=un(W,f.value,r.span,r.offset);Object.assign(C,ee)}else if(f.value.type==="flow"){const ee=sn(W,f.value,r.span,r.offset,r.width);Object.assign(C,ee)}}}if(typeof V.value=="function"){const W=V.value(i);W&&Object.assign(C,W)}else if(V.value&&typeof V.value=="object"){const W=V.value;Object.assign(C,W)}return C}),h=l.ref(null),g=l.computed({get:()=>h.value??ue(r.isRequired),set:C=>{h.value=C}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Ve(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),N=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),z=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${N.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${N.value}`]:!0})),_=Ve(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),F=l.computed(()=>_&&_.value?{width:Ie(_.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":g.value})),E=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(C){g.value=C},setErrorTip(C){x.errorTip=C},setErrorIcon(C){x.errorIcon=C},setWarnTip(C){x.warnTip=C},setWarnIcon(C){x.warnIcon=C},setInfoTip(C){x.infoTip=C},setInfoIcon(C){x.infoIcon=C},setCustomClassName(C){d.value=C},setCustomStyle(C){V.value=C}});const j=l.computed(()=>r.infoTip||x.infoTip),$=l.computed(()=>r.infoIcon||x.infoIcon),I=l.computed(()=>r.warnTip||x.warnTip),R=l.computed(()=>r.warnIcon||x.warnIcon),U=l.computed(()=>r.errorTip||x.errorTip),Y=l.computed(()=>r.errorIcon||x.errorIcon),Z=l.computed(()=>U.value?"error":I.value?"warn":j.value?"info":""),X=()=>Z.value.length>0,te=l.computed(()=>Z.value==="error"?U.value:Z.value==="warn"?I.value:Z.value==="info"?j.value:""),ae=l.computed(()=>Z.value==="error"?Y.value:Z.value==="warn"?R.value:Z.value==="info"?$.value:null),O=l.computed(()=>{const C={[`${c}__tip`]:!0,[`${c}__tip--${Z.value}`]:!0,[`${c}--animate`]:!0};return Z.value==="error"&&r.errorClass?C[`${r.errorClass}`]=!0:Z.value==="warn"&&r.warnClass?C[`${r.warnClass}`]=!0:Z.value==="info"&&r.infoClass&&(C[`${r.infoClass}`]=!0),C}),S=l.computed(()=>{const C={};return w&&w.value==="top"||!T()?C["padding-left"]="0px":_&&_.value&&(C["padding-left"]=Ie(_.value)),C}),A=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([C,W,ee,oe])=>{A.value&&(C&&!pe(W)?D?o.show(A.value,W,{...oe,id:D,type:ee},!0):D=o.show(A.value,W,{...oe,type:ee},!0):o.hide(D))});let y=null;const K=()=>{y||!A.value||(y=new IntersectionObserver(C=>{let W=!1;for(let ee of C)if(ee.intersectionRatio>0){W=!0,W&&a.emit("appear",ee);break}W||a.emit("disappear")}),y.observe(A.value))},P=()=>{!y||!A.value||(y.unobserve(A.value),y=null)};l.watch(()=>ue(r.appearListen),C=>{C?K():P()}),l.onMounted(()=>{ue(r.appearListen)&&K()}),l.onUnmounted(P);const q=()=>{if(!T())return null;const C=[],W=a.slots?.label?.()??r.label,ee={class:M.value},oe=l.h("div",ee,[W]);if(C.push(oe),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();C.push(fe)}const de={class:B.value,style:F.value};return l.h("div",de,C)},L=()=>{const C=[];if(a.slots.prepend){const ee=a.slots.prepend();C.push(ee)}if(a.slots.default){const ee=a.slots.default();C.push(ee)}if(a.slots.append){const ee=a.slots.append();C.push(ee)}if(a.slots.fixedTip){const ee={class:[`${c}__fixed-tip`]},oe=l.h("div",ee,[a.slots.fixedTip()]);C.push(oe)}const W={ref:A,class:E.value,style:k.value};return l.h("div",W,C)},G=()=>{const C=ae.value;return C?typeof C=="function"?l.h("div",{class:"fox-item__tip--icon"},[C()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(C)]):null},H=()=>{const C=te.value;return C?typeof C=="function"?l.h("div",{class:"fox-item__tip--text"},[C()]):l.h("div",{class:"fox-item__tip--text"},[C]):null},J=()=>{if(!X())return null;const C=[],W=G();W&&C.push(W);const ee=H();ee&&C.push(ee);const oe={class:O.value,style:S.value};return l.h("div",oe,C)},ne=()=>a.slots?.hide?.()??null;return()=>{const C=[],W=[],ee=q();ee&&W.push(ee);const oe=L();oe&&W.push(oe);const de={class:z.value},fe=l.h("div",de,W);C.push(fe);const ye=J();ye&&C.push(ye);const Ue=ne();Ue&&C.push(Ue);const rt={class:v.value,style:m.value,prop:r.prop};return l.h("div",rt,C)}}}}const{componentName:Ai,create:Mi,scope:Li}=se("item"),Te=Mi(Ri(Ai,Li,Re,!1));function Bi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=tt(),a=ln();on(!1);const i=l.computed(()=>a&&r?rn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?an(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=un(d,i.value,o.span,o.offset);Object.assign(c,v)}else if(i.value.type==="flow"){const v=sn(d,i.value,o.span,o.offset,o.width);Object.assign(c,v)}else return o.width&&(c.width=Ie(o.width)),c;else o.width&&(c.width=Ie(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:_i,create:qi,scope:Dh}=se("slot-item"),Xn=qi(Bi(_i));function Pi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=tt(),s=ln();on(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=rn(i,!1),d=an(i,!1);if(c.value&&d)if(c.value.type==="grid"){const v=un(d,c.value,o.span,o.offset);Object.assign(f,v)}else if(c.value.type==="flow"){const v=sn(d,c.value,o.span,o.offset,o.width);Object.assign(f,v)}else o.width&&(f.width=Ie(o.width))}else o.width&&(f.width=Ie(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[v])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:ji,create:zi,scope:Rh}=se("row-item"),Zn=zi(Pi(ji)),We=(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},_o={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 Hi(e,t,o){return{props:{...xe,...Oe,..._o},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),m=$=>{d.value=$,s("update:modelValue",$),s("input",$)},h=$=>{s("change",$)};let g=ge(n,"hintText"),T=l.ref(!1);const w=$=>{let R=$.target.value;c.value=!0,pe(g.value)||(T.value=!0),s("focus",R,$)},N=$=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=$.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,$)},z=()=>{s("clear","")},B=l.ref(!1);let _=null;const F=()=>{n.showTooltip&&B.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{B.value=!0},150))},M=()=>{_&&(clearTimeout(_),B.value=!1,_=null)},E=l.computed(()=>B.value||T.value),k=l.computed(()=>B.value?d.value:g.value),x=l.computed(()=>$t(n.unit)>0),j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...We(r.attrs),ref:j,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onChange:h,onInput:m,onFocus:w,onBlur:N,onMouseover:F,onMouseleave:M},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const U=[],Y=l.h(b.ElInput,I,R);U.push(Y);const Z={default:()=>U};r.slots.default&&(Z.label=r.slots.default),r.slots.default&&(Z.fixedTip=r.slots.fixedTip);const te={...ke(n,_o),hintText:k.value,hintVisible:E.value,prop:`${n.prop}_item`};return l.h(o,te,Z)}}}}const{componentName:Ki,create:Wi,scope:Yi}=se("input-item"),Jn=Wi(Hi(Ki,Yi,Te));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function qo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Ui(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Gi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Xi(){const e=l.getCurrentInstance();return new Gi(e.proxy)}function Po(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Dt(e,t),i=Dt(e,o);return a===i}function jo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=qo(e,i);if(Array.isArray(s)&&s.length>0){const u=jo(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=lt(e,i)===a;else if(o==="item")u=Po(e,i,a);else{let f=Dt(e,i);f==null&&(f=lt(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function Zi(e){return{text:e,value:e}}const zo={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Ji(e,t,o){return{props:{...xe,...Oe,...zo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(G=>lt(n,G)).join(" "):""),V=(L,G,H,J=!0)=>{const ne=jo(n,L,G,H);if(ne===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],J&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let C=!0;if(ne.length!==d.value.length)C=!1;else for(let W=0;W<ne.length;W++){const ee=ne[W],oe=d.value[W];if(!Po(n,ee,oe)){C=!1;break}}if(!C){d.value=ne;let W=[],ee=[],oe=[];ne.forEach(Ue=>{const rt=Dt(n,Ue),xt=lt(n,Ue);W.push(rt),oe.push(xt),n.valueType==="text"?ee.push(xt):n.valueType==="item"?ee.push(Ue):ee.push(rt)});let de,fe,ye;ue(n.multiple)?(c.value=W,de=l.toRaw(ee),fe=oe,ye=l.toRaw(ne)):(c.value=W[0]??"",de=l.toRaw(ee[0]??""),fe=oe[0]??"",ye=l.toRaw(ne[0])),J&&(s("update:modelValue",de),s("change",de,ye)),s("update:text",fe)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),T=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,L=>ue(L)),w=Xi(),N=async(L,G)=>{if(L){const H=await w.load("select",L,G);if(H.length>0)if(typeof H[0]=="string"){let C=H.map(W=>Zi(W));m.value=C}else m.value=H;else m.value=null}};l.watch([()=>n.source,()=>n.params],([L,G])=>{h.value=null,N(L,G)},{immediate:!T.value});let z=!1;const B=()=>{z||(z=!0,N(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([L,G])=>{if(E()&&ue(n.multiple)){Xe(G,c.value)||(c.value=G);return}V(G,n.valueType,g.value,!1),s("setValue",G)});let _=null,F=l.ref(!1);typeof n.remoteMethod=="function"&&(_=async L=>{if(L==null){h.value=null;return}F.value=!0;try{const G=await n.remoteMethod(L);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}F.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async L=>{if(L==null){h.value=null;return}F.value=!0;try{const G=await n.filterMethod(L,m.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}F.value=!1});const E=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),x=e,j=l.computed(()=>({[x]:!0})),$=L=>{n.allowCreate||E()&&ue(n.multiple)?(s("update:modelValue",L),s("change",L),s("update:text",L),c.value=L):V(L,"value",g.value,!0)};let I=ge(n,"hintText"),R=l.ref(!1);const U=L=>{let H=L.target.value;k.value=!0,pe(I.value)||(R.value=!0),s("focus",H,L)},Y=L=>{setTimeout(()=>{R.value&&(R.value=!1),k.value=!1},0);let H=L.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),D.value||s("blur",H,L)},Z=()=>{s("clear","")},X=l.ref(!1);let te=null;const ae=()=>{n.showTooltip&&X.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{X.value=!0},150))},O=()=>{te&&(clearTimeout(te),X.value=!1,te=null)},S=l.computed(()=>X.value||R.value),A=l.computed(()=>X.value?v.value:I.value),D=l.ref(!1),y=L=>{D.value=L,s("visible-change",L),L||s("selected")},K=L=>{s("remove-tag",L)},P=(L,G)=>{const H=[];return L.forEach((J,ne)=>{const C=qo(n,J);if(Array.isArray(C)&&C.length>0){const W=P(C,G),ee=lt(n,J),de={key:`${ee}_${ne}`,label:ee};H.push(l.h(b.ElOptionGroup,de,{default:()=>W}))}else{const W=Dt(n,J),ee=lt(n,J),oe=Ui(n,J),fe={key:`${W}_${ne}`,label:ee,disabled:oe,value:W};if(typeof G=="function")H.push(l.h(b.ElOption,fe,{default:()=>G(J)}));else if(n.optionType==="item"){const ye={class:{"fox-select-item__option-left":!0}},Ue=l.h("span",ye,[W]),rt={class:{"fox-select-item__option-right":!0}},xt=l.h("span",rt,[ee]),at=l.h("div",{class:{"fox-select-item__option":!0}},[Ue,xt]);H.push(l.h(b.ElOption,fe,{default:()=>at}))}else n.optionType==="value"?H.push(l.h(b.ElOption,fe,{default:()=>[W]})):H.push(l.h(b.ElOption,fe))}}),H},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const G={...We(r.attrs),ref:q,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:Z,onChange:$,onFocus:U,onBlur:Y,onVisibleChange:y,onRemoveTag:K};typeof _=="function"&&(G["remote-method"]=_,G.loading=F.value),typeof M=="function"&&(G["filter-method"]=M,G.loading=F.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(g.value,r.slots.option);const J=[],ne=l.h(b.ElSelect,G,H);J.push(ne);const C={default:()=>J};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const ee={...ke(n,zo),hintText:A.value,hintVisible:S.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:ae,onMouseleave:O};return T.value&&(ee["appear-listen"]=!0,ee.onAppear=B),l.h(o,ee,C)}}}}const{componentName:Qi,create:es,scope:ts}=se("select-item"),Qn=es(Ji(Qi,ts,Te));var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",v="quarter",V="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},N=function($,I,R){var U=String($);return!U||U.length>=I?$:""+Array(I+1-U.length).join(R)+$},z={s:N,z:function($){var I=-$.utcOffset(),R=Math.abs(I),U=Math.floor(R/60),Y=R%60;return(I<=0?"+":"-")+N(U,2,"0")+":"+N(Y,2,"0")},m:function $(I,R){if(I.date()<R.date())return-$(R,I);var U=12*(R.year()-I.year())+(R.month()-I.month()),Y=I.clone().add(U,d),Z=R-Y<0,X=I.clone().add(U+(Z?-1:1),d);return+(-(U+(R-Y)/(Z?Y-X:X-Y))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:V,w:c,d:f,D:m,h:u,m:s,s:i,ms:a,Q:v}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},B="en",_={};_[B]=w;var F=function($){return $ instanceof x},M=function $(I,R,U){var Y;if(!I)return B;if(typeof I=="string"){var Z=I.toLowerCase();_[Z]&&(Y=Z),R&&(_[Z]=R,Y=Z);var X=I.split("-");if(!Y&&X.length>1)return $(X[0])}else{var te=I.name;_[te]=I,Y=te}return!U&&Y&&(B=Y),Y||!U&&B},E=function($,I){if(F($))return $.clone();var R=typeof I=="object"?I:{};return R.date=$,R.args=arguments,new x(R)},k=z;k.l=M,k.i=F,k.w=function($,I){return E($,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var x=function(){function $(R){this.$L=M(R.locale,null,!0),this.parse(R)}var I=$.prototype;return I.parse=function(R){this.$d=function(U){var Y=U.date,Z=U.utc;if(Y===null)return new Date(NaN);if(k.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var X=Y.match(g);if(X){var te=X[2]-1||0,ae=(X[7]||"0").substring(0,3);return Z?new Date(Date.UTC(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)):new Date(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)}}return new Date(Y)}(R),this.$x=R.x||{},this.init()},I.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},I.$utils=function(){return k},I.isValid=function(){return this.$d.toString()!==h},I.isSame=function(R,U){var Y=E(R);return this.startOf(U)<=Y&&Y<=this.endOf(U)},I.isAfter=function(R,U){return E(R)<this.startOf(U)},I.isBefore=function(R,U){return this.endOf(U)<E(R)},I.$g=function(R,U,Y){return k.u(R)?this[U]:this.set(Y,R)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(R,U){var Y=this,Z=!!k.u(U)||U,X=k.p(R),te=function(P,q){var L=k.w(Y.$u?Date.UTC(Y.$y,q,P):new Date(Y.$y,q,P),Y);return Z?L:L.endOf(f)},ae=function(P,q){return k.w(Y.toDate()[P].apply(Y.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(q)),Y)},O=this.$W,S=this.$M,A=this.$D,D="set"+(this.$u?"UTC":"");switch(X){case V:return Z?te(1,0):te(31,11);case d:return Z?te(1,S):te(0,S+1);case c:var y=this.$locale().weekStart||0,K=(O<y?O+7:O)-y;return te(Z?A-K:A+(6-K),S);case f:case m:return ae(D+"Hours",0);case u:return ae(D+"Minutes",1);case s:return ae(D+"Seconds",2);case i:return ae(D+"Milliseconds",3);default:return this.clone()}},I.endOf=function(R){return this.startOf(R,!1)},I.$set=function(R,U){var Y,Z=k.p(R),X="set"+(this.$u?"UTC":""),te=(Y={},Y[f]=X+"Date",Y[m]=X+"Date",Y[d]=X+"Month",Y[V]=X+"FullYear",Y[u]=X+"Hours",Y[s]=X+"Minutes",Y[i]=X+"Seconds",Y[a]=X+"Milliseconds",Y)[Z],ae=Z===f?this.$D+(U-this.$W):U;if(Z===d||Z===V){var O=this.clone().set(m,1);O.$d[te](ae),O.init(),this.$d=O.set(m,Math.min(this.$D,O.daysInMonth())).$d}else te&&this.$d[te](ae);return this.init(),this},I.set=function(R,U){return this.clone().$set(R,U)},I.get=function(R){return this[k.p(R)]()},I.add=function(R,U){var Y,Z=this;R=Number(R);var X=k.p(U),te=function(S){var A=E(Z);return k.w(A.date(A.date()+Math.round(S*R)),Z)};if(X===d)return this.set(d,this.$M+R);if(X===V)return this.set(V,this.$y+R);if(X===f)return te(1);if(X===c)return te(7);var ae=(Y={},Y[s]=n,Y[u]=r,Y[i]=o,Y)[X]||1,O=this.$d.getTime()+R*ae;return k.w(O,this)},I.subtract=function(R,U){return this.add(-1*R,U)},I.format=function(R){var U=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var Z=R||"YYYY-MM-DDTHH:mm:ssZ",X=k.z(this),te=this.$H,ae=this.$m,O=this.$M,S=Y.weekdays,A=Y.months,D=function(q,L,G,H){return q&&(q[L]||q(U,Z))||G[L].slice(0,H)},y=function(q){return k.s(te%12||12,q,"0")},K=Y.meridiem||function(q,L,G){var H=q<12?"AM":"PM";return G?H.toLowerCase():H},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:O+1,MM:k.s(O+1,2,"0"),MMM:D(Y.monthsShort,O,A,3),MMMM:D(A,O),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:D(Y.weekdaysMin,this.$W,S,2),ddd:D(Y.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(te),HH:k.s(te,2,"0"),h:y(1),hh:y(2),a:K(te,ae,!0),A:K(te,ae,!1),m:String(ae),mm:k.s(ae,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:X};return Z.replace(T,function(q,L){return L||P[q]||X.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(R,U,Y){var Z,X=k.p(U),te=E(R),ae=(te.utcOffset()-this.utcOffset())*n,O=this-te,S=k.m(this,te);return S=(Z={},Z[V]=S/12,Z[d]=S,Z[v]=S/3,Z[c]=(O-ae)/6048e5,Z[f]=(O-ae)/864e5,Z[u]=O/r,Z[s]=O/n,Z[i]=O/o,Z)[X]||O,Y?S:k.a(S)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return _[this.$L]},I.locale=function(R,U){if(!R)return this.$L;var Y=this.clone(),Z=M(R,U,!0);return Z&&(Y.$L=Z),Y},I.clone=function(){return k.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},$}(),j=x.prototype;return E.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",m]].forEach(function($){j[$[1]]=function(I){return this.$g(I,$[0],$[1])}}),E.extend=function($,I){return $.$i||($(I,x,E),$.$i=!0),E},E.locale=M,E.isDayjs=F,E.unix=function($){return E(1e3*$)},E.en=_[B],E.Ls=_,E.p={},E})})(Ho);var ns=Ho.exports;const Ye=Je(ns);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(g){this[h]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w}(h)}],d=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var T,w=s.meridiem;if(w){for(var N=1;N<=24;N+=1)if(h.indexOf(w(N,0,g))>-1){T=N>12;break}}else T=h===(g?"pm":"PM");return T},V={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var g=s.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var g=d("months"),T=(d("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[i,function(h){var g=d("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function m(h){var g,T;g=h,T=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,k,x){var j=x&&x.toUpperCase();return k||T[x]||o[x]||T[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,I,R){return I||R.slice(1)})})).match(n),N=w.length,z=0;z<N;z+=1){var B=w[z],_=V[B],F=_&&_[0],M=_&&_[1];w[z]=M?{regex:F,parser:M}:B.replace(/^\[|\]$/g,"")}return function(E){for(var k={},x=0,j=0;x<N;x+=1){var $=w[x];if(typeof $=="string")j+=$.length;else{var I=$.regex,R=$.parser,U=E.slice(j),Y=I.exec(U)[0];R.call(k,Y),E=E.replace(Y,"")}}return function(Z){var X=Z.afternoon;if(X!==void 0){var te=Z.hours;X?te<12&&(Z.hours+=12):te===12&&(Z.hours=0),delete Z.afternoon}}(k),k}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,N=w.parse;w.parse=function(z){var B=z.date,_=z.utc,F=z.args;this.$u=_;var M=F[1];if(typeof M=="string"){var E=F[2]===!0,k=F[3]===!0,x=E||k,j=F[2];k&&(j=F[2]),s=this.$locale(),!E&&j&&(s=T.Ls[j]),this.$d=function(U,Y,Z){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*U);var X=m(Y)(U),te=X.year,ae=X.month,O=X.day,S=X.hours,A=X.minutes,D=X.seconds,y=X.milliseconds,K=X.zone,P=new Date,q=O||(te||ae?1:P.getDate()),L=te||P.getFullYear(),G=0;te&&!ae||(G=ae>0?ae-1:P.getMonth());var H=S||0,J=A||0,ne=D||0,C=y||0;return K?new Date(Date.UTC(L,G,q,H,J,ne,C+60*K.offset*1e3)):Z?new Date(Date.UTC(L,G,q,H,J,ne,C)):new Date(L,G,q,H,J,ne,C)}catch{return new Date("")}}(B,M,_),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),x&&B!=this.format(M)&&(this.$d=new Date("")),s={}}else if(M instanceof Array)for(var $=M.length,I=1;I<=$;I+=1){F[1]=M[I-1];var R=T.apply(this,F);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}I===$&&(this.$d=new Date(""))}else N.call(this,z)}}})})(Ko);var ls=Ko.exports;const os=Je(ls);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return v}});return i.bind(this)(d)}}})})(Wo);var rs=Wo.exports;const as=Je(rs);var Yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,V,m,h){var g=d.name?d:d.$locale(),T=i(g[v]),w=i(g[V]),N=T||w.map(function(B){return B.slice(0,m)});if(!h)return N;var z=g.weekStart;return N.map(function(B,_){return N[(_+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,v){return d.formats[v]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(d.formats[v.toUpperCase()])},c=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return f(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return f(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Yo);var is=Yo.exports;const ss=Je(is);var Uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var v=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(v,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Uo);var us=Uo.exports;const cs=Je(us);var Go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Go);var fs=Go.exports;const ds=Je(fs);var Xo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Xo);var hs=Xo.exports;const gs=Je(hs);var Zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Zo);var ms=Zo.exports;const ps=Je(ms);var Jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Jo);var ys=Jo.exports;const bs=Je(ys);Ye.extend(ss),Ye.extend(as),Ye.extend(os),Ye.extend(cs),Ye.extend(ds),Ye.extend(gs),Ye.extend(ps),Ye.extend(bs);const qe={format(e,t){return Ye(e).format(t)},parser(e,t){return Ye(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=qe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=qe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Qo={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"}},er={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 vs(e,t,o){return{props:{...xe,...Oe,...Qo,...er},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=l.computed(()=>R.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>R.value?"longTermKey":"normalKey"),m=q=>{if(R.value&&n.type==="daterange"){const L=[...d.value];L[0]=q,d.value=L}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=ge(n,"hintText"),N=l.ref(!1);const z=q=>{let G=q.target.value;c.value=!0,pe(w.value)||(N.value=!0),s("focus",G,q)},B=q=>{setTimeout(()=>{N.value&&(N.value=!1),c.value=!1},0);let G=q.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,q)},_=()=>{s("clear","")},F=q=>{s("calendar-change",q)},M=(q,L,G)=>{s("panel-change",q,L,G)},E=q=>{s("visible-change",q)},k=Ve(l.computed(()=>n.longTermText),"longTermText",_e.Near),x=Ve(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",_e.Near),j=Ve(l.computed(()=>n.longTermValue),"longTermValue",_e.Near),$=Ve(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let I=null;const R=l.ref(ue(n.longTerm)),U=q=>{if(R.value=q,s("update:longTerm",q),q){if(I=d.value,n.type==="daterange"){const L=[];Array.isArray(j.value)?(L[0]=d.value?d.value[0]??j.value[0]:null,L[1]=j.value[1]??j.value[0]):(L[0]=d.value?d.value[0]??j.value:null,L[1]=R.value),L[0]||(L[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),L[1]||(L[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=L}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=n.valueFormat?qe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const L=[];L[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(I)?L[1]=I[1]:L[1]=I,L[0]||(L[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),L[1]||(L[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=L}else d.value=I;s("update:modelValue",d.value),setTimeout(()=>{K()},100)}},Y=ue(n.isLongTerm);if(Y){const q=()=>{if(R.value===!0){if(I=d.value,n.type==="daterange"){const L=[d.value[0]];Array.isArray(j.value)?L[1]=j.value[1]??j.value[0]:L[1]=R.value,L[0]||(L[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),L[1]||(L[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=L}else d.value=j.value;s("update:modelValue",d.value)}else Xe(j.value,d.value)&&(R.value=!0)};q(),l.watch([()=>n.longTerm],([L])=>{R.value!==L&&q()}),l.watch([()=>d.value],([L])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(L))try{let H=L[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=qe.format(H,n.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(H===J||Array.isArray($.value)&&$.value.findIndex(C=>H==C)!==-1)&&(G=!0)}catch(H){console.error(H)}R.value!==G&&(R.value=G)},{immediate:!0})}const Z=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),X=l.ref(),te=l.ref(),ae=/^\d+$/,O=(q,L)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(q,L):ae.test(q)&&q.length===n.flashFillThreshold,S=(q,L)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(q,L);else{const J=n.flashFillFormat??"YYYYMMDD";G=qe.parser(q,J)}const H=n.valueFormat??"YYYY-MM-DD";return qe.format(G,H)},A=q=>q?q.endsWith("range"):!1,D=q=>{if(!q.target)return;const L=q.target.value??"";if(O(L,n.type)){const G=S(L,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=G,m(H)}else m(G)}},y=q=>{if(!q.target)return;const L=q.target.value??"";if(O(L,n.type)){const G=S(L,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=G,m(H)}else m(G)}},K=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].addEventListener("input",D),q[1]&&q[1].addEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.addEventListener("input",D)}},P=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].removeEventListener("input",D),q[1]&&q[1].removeEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.removeEventListener("input",D)}};return l.onMounted(K),l.onBeforeUnmount(P),$e({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const L={...r.attrs,key:V.value,type:h.value,ref:te,class:T.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:_,onFocus:z,onBlur:B,onCalendarChange:F,onPanelChange:M,onVisibleChange:E},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const H=[],J=l.h(b.ElDatePicker,L,G);H.push(J);const ne={default:()=>H};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),Y){if(R.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),fe={class:Z.value},ye=l.h("div",fe,{default:()=>[oe,de]});H.push(ye)}if(!i.value&&!a.value){const oe={label:x.value||k.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":U},de=l.h(b.ElCheckbox,oe),fe=l.h("div",{class:{[`${g}__append`]:!0}},[de]);ne.append=()=>fe}}const W={...ke(n,Qo,er),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:w.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,W,ne)}}}}const{componentName:ws,create:Ss,scope:xs}=se("date-item"),el=Ss(vs(ws,xs,Te)),tr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ts(e,t,o){return{props:{...xe,...Oe,...tr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),m=_=>{d.value=_,s("update:modelValue",_),s("change",_)};let h=ge(n,"hintText"),g=l.ref(!1);const T=_=>{let M=_.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",M,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let M=_.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),s("blur",M,_)},N=()=>{s("clear","")},z=_=>{s("visible-change",_)},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const F={...r.attrs,ref:B,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:N,onFocus:T,onBlur:w,onVisibleChange:z},M={},E=[],k=l.h(b.ElTimePicker,F,M);E.push(k);const x={default:()=>E};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const $={...ke(n,tr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,$,x)}}}}const{componentName:Cs,create:$s,scope:Ns}=se("time-item"),tl=$s(Ts(Cs,Ns,Te)),nr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Es(e,t,o){return{props:{...xe,...Oe,...nr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),m=B=>{d.value=B,s("update:modelValue",B),s("change",B)};let h=ge(n,"hintText"),g=l.ref(!1);const T=B=>{let F=B.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",F,B)},w=B=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,B)},N=()=>{s("clear","")},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const _={...r.attrs,ref:z,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:N,onFocus:T,onBlur:w},F={},M=[],E=l.h(b.ElTimeSelect,_,F);M.push(E);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,nr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:ks,create:Is,scope:Os}=se("time-select-item"),nl=Is(Es(ks,Os,Te));function lr(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function or(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=eo(`${e}`,`${t}`);return lr(n)}else{let n=$n(`${e}`,to(`${t}`),20);return lr(n)}}function Vs(e,t=-1,o=!1,n=3,r=","){return jt(e,t,o,n,r)}function rr(e,t,o,n,r=!0){if(e==="")return"";if(e=no(e),t=Se(t),t==1)return e;if(n)e=or(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=$n(e,1,Se(o)));else{let a=-1*t;e=or(e,a)}return e}function ar(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=Nn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=Nn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const ir={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 Fs(e,t,o){return{props:{...xe,...Oe,...ir},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=ge(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,I,R])=>{if(pe($)){c.value="";return}const U=rr($,I,R,!1);c.value!==U&&(c.value=U)},{immediate:!0});const d=l.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:v}=Be.useFoxI18n(t),V=l.computed(()=>{let $=n.placeholder??"";return!u.value&&!pe(c.value)?$=Vs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=v(["placeholder",$]),$}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:c.value.length>0})),g=Ve(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),w=l.computed(()=>{let $=T.value;return pe($)&&($=n.errorTip??""),$}),N=l.ref(""),z=l.ref(!1),B=($,I)=>{if($=`${$}`,pe($)){c.value="",f.value="",I.forEach(R=>{s(R,"")}),ue(n.showTip)&&z.value&&(z.value=!1);return}if($.length>=2){let R=$;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){l.triggerRef(c);return}}if($!="-"){if(!co($)){l.triggerRef(c);return}if(n.integerLength!=-1&&fo($)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&ho($)>Number(n.decimalLength)){l.triggerRef(c);return}let R=ar($,n);if(R.maxValid===!1){T.value=R.message,l.triggerRef(c);return}}else if(n.min!=null&&Se(n.min)>=0){l.triggerRef(c);return}N.value=$,ue(n.showTip)&&(z.value=$.length>0),c.value=$,f.value=rr($,n.rates,n.precision,!0),I.forEach(R=>{s(R,f.value)})},_=$=>{B($,["update:modelValue","input"])},F=$=>{B($,["update:modelValue","change"])},M=$=>{if(u.value=!0,ue(n.showTip)){let I=c.value;pe(I)&&(I=n.hintText),pe(I)||(N.value=I,z.value=!0)}T.value="",s("focus",f.value,$)},E=$=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&z.value===!0&&(z.value=!1)},0),!pe(c.value)){let I=ar(c.value,n);if(I.minValid===!1||I.maxValid===!1){T.value=I.message;return}}s("update:modelValue",f.value,$),s("blur",f.value,$)},k=()=>{s("clear","")},x=l.computed(()=>$t(n.unit)>0),j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...We(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:_,onChange:F,onFocus:M,onBlur:E},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const U=[],Y=l.h(b.ElInput,I,R);U.push(Y);const Z={default:()=>U};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const te={...ke(n,ir),errorTip:w.value,hintText:N.value,hintVisible:z.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,te,Z)}}}}const{componentName:Ds,create:Rs,scope:As}=se("money-item"),ll=Rs(Fs(Ds,As,Te)),sr={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 Ms(e,t,o){return{props:{...xe,...Oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__append`]:_.value})),m=l.computed(()=>({[`${v}__unit`]:!0})),h=M=>{d.value=M,s("update:modelValue",M),s("input",M)},g=M=>{s("change",M)};let T=ge(n,"hintText"),w=l.ref(!1);const N=M=>{let k=M.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",k,M)},z=M=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let k=M.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,M)},B=()=>{s("clear","")},_=l.computed(()=>$t(n.unit)>0),F=l.ref();return $e({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...We(r.attrs),ref:F,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:g,onInput:h,onFocus:N,onBlur:z},k={},x=[],j=l.h(b.ElInputNumber,E,k);x.push(j);const $={default:()=>x};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const R={...ke(n,sr),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)$.append=r.slots.append;else if(_.value){const Y={class:m.value},Z=l.h("div",Y,[n.unit]);$.append=()=>Z}return l.h(o,R,$)}}}}const{componentName:Ls,create:Bs,scope:_s}=se("input-number-item"),ol=Bs(Ms(Ls,_s,Te));function Qe(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 qs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ps=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function js(){const e=l.getCurrentInstance();return new Ps(e.proxy)}function rl(e,t,o){const n=Qe(e,t),r=Qe(e,o);if(n!==r)return!1;const a=ft(e,t),i=ft(e,o);return a===i}function ur(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=ur(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Qe(e,f)===s;else if(o==="item")u=rl(e,f,s);else{let c=ft(e,f);c==null&&(c=Qe(e,f)),u=c===s}if(u){r.push(f),a=qs(e,f);break}}if(!u)break}}return r}function zs(e){return{text:e,value:e}}const cr={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 Hs(e,t,o){return{props:{...xe,...Oe,...cr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(q=>Array.isArray(q)?q.map(G=>Qe(n,G)).join(" "):Qe(n,q)).join(" "):""),V=(P,q,L,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===P)return;c.value=P;const C=l.toRaw(P);if(G){const W=K?.value.getCheckedNodes();if(W)if(n.multiple){const ee=[];W.forEach(oe=>{const fe=(oe.pathNodes??[]).map(ye=>ye.data);ee.push(fe)}),s("update:pathNodes",ee)}else{const oe=(W[0]?.pathNodes??[]).map(de=>de.data);s("update:pathNodes",oe)}s("update:modelValue",C),s("change",C)}return}const H=ur(n,P,q,L);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const J=H[H.length-1];if(k.value.checkStrictly!==!0&&J&&!Array.isArray(J)&&Array.isArray(J.children)&&J.children.length>0){const C=[];H.forEach(W=>{const ee=`${Qe(n,W)}`;C.push(ee)}),C.length>0&&(M.value=C.join(n.separator))}else M.value=null;let ne=!0;if(H.length!==d.value.length)ne=!1;else for(let C=0;C<H.length;C++){const W=H[C],ee=d.value[C];if(Array.isArray(W)){if(!Array.isArray(ee)||W.length!==ee.length)ne=!1;else for(let oe=0;oe<W.length;oe++)if(!rl(n,W[oe],ee[oe])){ne=!1;break}}else rl(n,W,ee)||(ne=!1);if(!ne)break}if(!ne){d.value=H;let C=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],fe=[];for(let ye of oe)de.push(ft(n,ye)),n.valueType==="text"?fe.push(Qe(n,ye)):n.valueType==="item"?fe.push(ye):fe.push(ft(n,ye));C.push(de),W.push(fe)}else C.push(ft(n,oe)),n.valueType==="text"?W.push(Qe(n,oe)):n.valueType==="item"?W.push(oe):W.push(ft(n,oe))}),c.value=C;const ee=l.toRaw(W);G&&(s("update:pathNodes",H),s("update:modelValue",ee),s("change",ee))}},m=l.ref([]),h=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,P=>ue(P)),g=js(),T=async(P,q)=>{if(P){const L=await g.load("cascader",P,q);if(L.length>0)if(typeof L[0]=="string"){let J=L.map(ne=>zs(ne));m.value=J}else m.value=L}};l.watch([()=>n.source,()=>n.params],async([P,q])=>{T(P,q)},{immediate:!(h.value||n.lazy)});let w=!1;const N=()=>{w||(w=!0,T(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([P,q])=>{V(q,n.valueType,P,!1),s("setValue",q)}),n.lazy&&V(n.modelValue,"value",[],!1);let z=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(z=async P=>{if(P!=null){B.value=!0;try{const q=await n.remoteMethod(P);m.value=q}catch(q){console.error(q)}B.value=!1}});const _=l.ref(!1),F=e,M=l.ref(null),E=l.computed(()=>({[F]:!0,"is-incomplete":M.value&&M.value.length>0})),k=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(q,L)=>{const G=await g.load("cascader",n.source,q,!0);if(q?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===q.level){const H=q.pathLabels??[];let J=[];H.forEach(ne=>{ne&&J.push(ne)}),J.length>0&&(M.value=J.join(n.separator))}else M.value=null;L(G)}),P}),x=P=>{n.allowCreate?(s("update:modelValue",P),s("change",P),c.value=P):V(P,"value",m.value,!0)};let j=ge(n,"hintText"),$=l.ref(!1);const I=P=>{let L=P.target.value;_.value=!0,pe(j.value)||($.value=!0),s("focus",L,P)},R=P=>{setTimeout(()=>{$.value&&($.value=!1),_.value=!1},0);let L=P.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),S.value||s("blur",L,P)},U=()=>{s("clear","")},Y=l.ref(!1);let Z=null;const X=()=>{n.showTooltip&&Y.value===!1&&(Z&&clearTimeout(Z),Z=setTimeout(()=>{Y.value=!0},150))},te=()=>{Z&&(clearTimeout(Z),Y.value=!1,Z=null)},ae=l.computed(()=>Y.value||$.value),O=l.computed(()=>Y.value?v.value:j.value),S=l.ref(!1),A=P=>{S.value=P,s("visible-change",P),P||s("selected")},D=P=>{s("remove-tag",P)},y=P=>{s("expand-change",P)},K=l.ref();return $e({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const q={...r.attrs,ref:K,class:E.value,props:k.value,clearable:n.clearable,placeholder:M.value||f.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:c.value,separator:n.separator,onClear:U,onChange:x,onFocus:I,onBlur:R,onVisibleChange:A,onRemoveTag:D,expandChange:y};typeof z=="function"&&(q["remote-method"]=z,q.loading=B.value);const L={};r.slots.option&&(L.default=r.slots.option),r.slots.empty&&(L.empty=r.slots.empty);const G=[],H=l.h(b.ElCascader,q,L);G.push(H);const J={default:()=>G};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const C={...ke(n,cr),hintText:O.value,hintVisible:ae.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:te};return h.value&&!n.lazy&&(C["appear-listen"]=!0,C.onAppear=N),l.h(o,C,J)}}}}const{componentName:Ks,create:Ws,scope:Ys}=se("cascader-item"),al=Ws(Hs(Ks,Ys,Te)),fr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Us(e,t,o){return{props:{...xe,...Oe,...fr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),m=F=>{d.value=F,s("update:modelValue",F),s("input",F)},h=F=>{s("change",F)},g=F=>{s("select",F)};let T=ge(n,"hintText"),w=l.ref(!1);const N=F=>{let E=F.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",E,F)},z=F=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let E=F.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,F)},B=()=>{s("clear","")},_=l.ref();return $e({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const M={...r.attrs,ref:_,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:B,onChange:h,onInput:m,onFocus:N,onBlur:z,onSelect:g},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const k=[],x=l.h(b.ElAutocomplete,M,E);k.push(x);const j={default:()=>k};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,fr),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,I,j)}}}}const{componentName:Gs,create:Xs,scope:Zs}=se("autocomplete-item"),il=Xs(Us(Gs,Zs,Te));function Js(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(v=>v[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let Qs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function eu(){const e=l.getCurrentInstance();return new Qs(e.proxy)}const dr={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 tu(e,t){return{props:{...dr},setup(o,{attrs:n,slots:r}){const a=eu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Js(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:Ah,create:nu,scope:Mh}=se("mapping"),Rt=nu(tu());function lu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function ou(e,t){return{props:{...dr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=lu(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(b.ElTableColumn,{...n},a)}}}}const{componentName:Lh,create:ru,scope:Bh}=se("table-mapping-column"),sl=ru(ou()),au=Symbol.for("TableStateKey");function hr(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function iu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(au,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=hr(s.row,s.column.property),f=a?hr(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[v])}};return l.h(b.ElTableColumn,{...n},i)}}}}const{componentName:_h,create:su,scope:qh}=se("table-radio-column"),ul=su(iu()),uu={},cu={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"},fu=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function du(e,t){return l.openBlock(),l.createElementBlock("svg",cu,fu)}const hu=Pe(uu,[["render",du]]),{componentName:jh,create:gu,scope:zh}=se("table-setting"),mu={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:"不固定"}},pu=gu({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:hu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...mu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed===""||y.fixed===!0||y.fixed==="left")),i=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed==="right")),s=l.computed(()=>r.value.filter(y=>!(y.label===""||y.type||y.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=y=>y.length>1,v=(y,K)=>{Array.isArray(y)&&Array.isArray(K)&&y.forEach(L=>{K.some(G=>G.prop===L.prop?(L.label=G.label,!0):!1)});const P=[];r.value=y.map((L,G)=>(!(L.label===""||L.type)&&L.visible!==!1&&P.push(L.prop),{...L,sortIndex:G})),s.value.length+a.value.length+i.value.length===P.length?w.value=!0:P.length>0&&(N.value=!0),_.value=P},V=y=>y?y.type?y.type:y.label?y.prop:"":"",m=(y,K)=>{if(y.length!==K.length)return!1;const P=y.map(q=>V(q));for(let q of K){const L=V(q);if(P.indexOf(L)===-1)return!1}return!0},h=y=>{if(!y){const K=e.tableRef.getColumnSetting(),P=K.srcColumnPropertyList;n=P.map((q,L)=>({...q,sortIndex:L})),y=K.columnPropertyList,y&&y.length>0&&m(P,y)||(y=P)}v(y,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),N=l.ref(!1),z=y=>{const K=[];r.value.forEach(q=>{y&&!(q.label===""||q.type)&&K.push(q.prop),q.visible=y}),w.value=!1,N.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(N.value=!0),_.value=K,g()},B=()=>{h(n),g()},_=l.ref([]),F=y=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const q=y.indexOf(P.prop)!==-1;P.visible=q}),w.value=!1,N.value=!1;const K=s.value.length+a.value.length+i.value.length;y.length===K?w.value=!0:y.length>0&&(N.value=!0),g()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const E={currentRow:null,index:null,roleType:null},k=y=>y?y.dataset&&y.dataset.role==="row"?y:y.tagName.toLowerCase()!=="body"?(y=y.parentElement,k(y)):null:null,x=y=>{const K=y.currentTarget;K&&K.dataset&&(E.roleType=K.dataset.roleType,E.index=K.dataset.index)},j=y=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},$=y=>{const K=y.currentTarget;y.relatedTarget;const P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;E.roleType===q&&(y.preventDefault(),E.currentRow&&E.currentRow!==P&&E.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),E.currentRow=P)},I=y=>{y.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},R=y=>{const K=y.currentTarget,P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;if(E.roleType!==q)return;y.preventDefault();const L=Number(E.index),G=Number(P.dataset.index);if(L!==G){if(L<G){const H=r.value[L];r.value.splice(L,1),r.value.splice(G,0,H)}else{const H=r.value[L];r.value.splice(L,1),r.value.splice(G+1,0,H)}v(r.value,n),g()}},U=y=>{const K=r.value[y];K.fixed="left",g()},Y=y=>{const K=r.value[y];K.fixed="right",g()},Z=y=>{const K=r.value[y];K.fixed=void 0,g()},X=new Map;let te=null;function ae(y){const K=document.createRange();return K.setStart(y,0),K.setEnd(y,y.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:w,isIndeterminate:N,handleCheckAllChange:z,handleReset:B,checkedValue:_,handleCheckChange:F,onShow:M,onDragStart:x,onDragEnd:j,onDragOver:$,onDragLeave:I,onDrop:R,toLeftFixed:U,toRightFixed:Y,toUnFixed:Z,checkboxLabelStyle:T,onMouseOverForOverflowText:(y,K,P)=>{const q=y.currentTarget;if(q){const L=Math.floor(q.offsetWidth);if(Math.floor(ae(q))>L){let H=X.get(K);if(H){if(H===te)return;Re.hide(H)}H=Re.show(q,P,{type:"text",placement:"top",closeOnClick:!1}),X.set(K,H),te=H}}},onMouseLeaveForOverflowText:(y,K)=>{const P=X.get(K);P&&(Re.hide(P),P===te&&(te=null))},onMouseOverForTip:(y,K)=>{const P=y.currentTarget;P&&(te&&Re.hide(te),te=Re.show(P,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:y=>{te&&(Re.hide(te),te=null)}}}}),yu={class:"fox-table-setting"},bu={class:"fox-table-setting__header"},vu={class:"fox-table-setting__body"},wu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Su={key:0,class:"fox-table-setting__body-title"},xu=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],Cu={class:"tools-item"},$u={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Nu={key:0,class:"fox-table-setting__body-title"},Eu=["data-index","draggable"],ku=["onMouseover","onMouseleave"],Iu={class:"tools-item"},Ou={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vu={key:0,class:"fox-table-setting__body-title"},Fu=["data-index","draggable"],Du=["onMouseover","onMouseleave"],Ru={class:"tools-item"};function Au(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",yu,[l.createElementVNode("div",bu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",vu,[l.createVNode(V,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",wu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Su,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Tu)]),_:2},1032,["label"]),l.createElementVNode("div",Cu,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,xu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",$u,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Nu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,ku)]),_:2},1032,["label"]),l.createElementVNode("div",Iu,[l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Eu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Vu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Du)]),_:2},1032,["label"]),l.createElementVNode("div",Ru,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Fu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const dn=Pe(pu,[["render",Au]]);let Mu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=ze(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function Lu(){const e=l.getCurrentInstance();return new Mu(e.proxy)}class Bu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=ze(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=ze(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=ze(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function gr(){const e=l.getCurrentInstance();return new Bu(e.proxy)}const _u=Symbol.for("TableStateKey"),mr={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:()=>!1},appearLoad:{type:[String,Boolean],required:!1,default:()=>!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:()=>!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:()=>!1},showSetting:{type:[Boolean],required:!1,default:()=>!1},footerAlign:{type:[String],required:!1,default:()=>"right"}},pr={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}},cl={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:()=>"不固定"}},qu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Pu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function fl(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Pu(n,r);if(a!==i)return!1}return!0})}function ju(e,t,o){return{inheritAttrs:!1,props:{...xe,...Oe,...mr,...pr,...cl,...qu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Ce({componentName:e,validateHandler:{getValue(...Q){return F.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),m=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),g=l.ref(n.pageSize),T=ue(n.infiniteLoad);T||(l.watch(()=>n.pageIndex,Q=>{h.value=Q}),l.watch(()=>n.pageSize,Q=>{g.value=Q}),l.watch([h,g],([Q,le],[re,ie])=>{le!==ie&&(h.value=1,Q=1),x(n.data,Q,le,m.value)}));const w=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);w()&&l.watch([()=>n.data,m],async([Q,le],[re,ie])=>{w()&&(Q!==re&&(E=!0),!(!Array.isArray(Q)&&Xe(Q,re)&&Xe(le,ie))&&(T?(h.value=0,B.value=!0,F.value=[],$()):h.value===1?x(Q,h.value,g.value,le):h.value=1))},{deep:!0});const N=Q=>{h.value=Q,i("page-index-change",Q)},z=Q=>{g.value=Q,i("page-size-change",Q)},B=l.ref(!0),_=l.ref(0),F=l.ref(),M=Lu();let E=!0;const k=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Q=>ue(Q)),x=async(Q,le,re,ie,Me)=>{E=!1;try{if(Me===!0){if(!B.value)return!1;const me=await M.load("table",Q,le,re,ie,E,a.value);return _.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,F.value,me.page),setTimeout(()=>{i("loaded-data")},250),(F.value?.length??0)>=_.value)||me.page.length<re?(B.value=!1,!1):!0}else{const me=await M.load("table",Q,le,re,ie,E,a.value);return _.value=me.totalSize,F.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),_.value=0,F.value=[]}return!1};let j=!1;const $=async()=>{if(!j){if(j=!0,!B.value){j=!1;return}h.value+=1,await x(n.data,h.value,g.value,m.value,!0),j=!1}},I=(Q={},le=!1)=>new Promise(async re=>{V.value={...l.toRaw(Q??{})},le||(h.value=n.pageIndex??1),T===!0?(h.value=0,F.value=[],B.value=!0,await $()):await x(n.data,h.value,g.value,m.value),re()}),R=()=>{_.value=0,F.value=[],T===!0&&(h.value=0,B.value=!0)};let U=!1;const Y=()=>{U||(U=!0,I())},Z=l.ref(null);if(T===!0){let Q=null;const le=()=>{Z.value&&(Q=new IntersectionObserver(ie=>{let Me=!1;for(let me of ie)if(me.intersectionRatio>0){Me=!0;break}Me&&$()}),Q.observe(Z.value))},re=()=>{!Q||!Z.value||(Q.unobserve(Z.value),Q=null)};l.onMounted(le),l.onBeforeUnmount(re)}w()&&!k.value&&I();const X=l.ref(null);l.provide(_u,{currentRow:X});const te=(Q,le)=>{X.value=Q,i("current-change",Q,le)},ae=(Q,le,re)=>{i("row-click",Q,le,re),ue(n.rowClickSelectable)===!0&&we?.value.toggleRowSelection(Q)},O=[],S=(Q,le)=>{if(i("expand-change",Q,le),ue(n.uniqueExpansion))if(Array.isArray(le)&&le.length==0){const re=O.length;O.splice(0,re)}else{O.forEach(ie=>{ie!==Q&&we?.value.toggleRowExpansion(ie,!1)});const re=O.length;O.splice(0,re,Q)}},A=r.attrs.id??n.prop??r.attrs.name,D=gr(),y=l.ref([]);let K=[];const P=()=>({srcColumnPropertyList:K.map(le=>({...le})),columnPropertyList:y.value}),q=Q=>{y.value=[...Q],G()},L=async()=>{const Q=await D.load(A);Q&&(y.value=Q)},G=()=>{D.save(A,y.value)},H=()=>{D.remove(A)};L();const J=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",ne=()=>typeof r.slots.default=="function"?r.slots.default():[],C=(Q,le)=>{for(let re in le){const ie=le[re];typeof ie!="function"&&(Q[re]=ie)}},W=l.computed(()=>{const Q=ne(),le=new Map;if(K=[],Q.forEach(re=>{const ie=re;if(!ie.props)return;const Me=J(ie.props);le.set(Me,re);const me={label:"",prop:""};C(me,ie.props),K.push(me)}),y.value.length===K.length){const re=[];for(let ie of y.value){const Me=J(ie),me=le.get(Me);if(!me)return Q;if(ie.visible===!1)continue;const et=me;et.props.fixed=ie.fixed,re.push(et)}return re}return Q}),ee=l.shallowRef(new Map),oe=({row:Q,column:le,rowIndex:re,columnIndex:ie})=>{const Me=`${re}_${le.property}`,me=`${re}_${ie}`;let et=ee.value.get(Me);return et||(et=ee.value.get(me)),typeof et=="string"?et:""},de=Q=>typeof Q=="function"?le=>{const re=[];let ie=oe(le);return ie&&re.push(ie),ie=Q(le),ie&&re.push(ie),re.length===0?"":re.join(" ")}:oe,fe=(Q=!1)=>{ee.value.forEach((le,re)=>{ye(re,le,Q)})},ye=(Q,le,re=!1)=>{const ie=`${Q}_item`;re?(s.clearPersistantMessage(),Array.isArray(le)?s.emitToChildren({name:Q},"setCellClassNames",[]):s.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(le)?s.emitToChildren({name:Q,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",le):s.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",le)},Ue=(Q,le,re)=>{const ie=`${Q}_${le}`;re?(ee.value.set(ie,re),ye(ie,re)):(ee.value.delete(ie),ye(ie,"",!0)),l.triggerRef(ee)},rt=Q=>{fe(!0),ee.value.clear(),Q.forEach(le=>{const re=`${le.rowIndex}_${le.column}`;Array.isArray(le.children)?ee.value.set(re,le.children):typeof le.cellClassName=="string"&&ee.value.set(re,le.cellClassName)}),fe(),l.triggerRef(ee)},xt=()=>{fe(),ee.value.clear(),l.triggerRef(ee)},at=l.shallowRef(new Map),Qr=({rowIndex:Q})=>{const le=`${Q}`;return at.value.get(le)??""},$h=Q=>typeof Q=="function"?le=>{const re=[];let ie=Qr(le);return ie&&re.push(ie),ie=Q(le),ie&&re.push(ie),re.length===0?"":re.join(" ")}:Qr,Nh=(Q,le)=>{const re=`${Q}`;le?at.value.set(re,le):at.value.delete(re),l.triggerRef(at)},Eh=()=>{at.value.clear(),l.triggerRef(at)},we=l.ref();return $e({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(Q,le)=>{we?.value.toggleRowSelection(Q,le)},toggleRowSelectionByProp:(Q,le)=>{if(!F.value)return;const re=fl(F.value,Q);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowSelection(ie,le)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(Q,le)=>{we?.value.toggleRowExpansion(Q,le)},toggleRowExpansionByProp:(Q,le)=>{if(!F.value)return;const re=fl(F.value,Q);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowExpansion(ie,le)})},setCurrentRow:Q=>{we?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!F.value)return;const le=fl(F.value,Q);le.length!==0&&we?.value.setCurrentRow(le[0])},getCurrentRow:()=>X.value,clearSort:()=>{we?.value.clearSort()},clearFilter:Q=>{we?.value.clearFilter(Q)},doLayout:()=>{we?.value.doLayout()},sort:(Q,le)=>{we?.value.sort(Q,le)},scrollTo:(Q,le)=>{we?.value.scrollTo(Q,le)},setScrollTop:Q=>{we?.value.setScrollTop(Q)},setScrollLeft:Q=>{we?.value.setScrollLeft(Q)},loadData:I,clearData:R,getData(){return F.value},getTotalSize(){return _.value},getPageIndex(){return h.value},getPageSize(){return g.value},getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H,setCellClassName:Ue,setCellClassNames:rt,clearCellClassName:xt,setRowClassName:Nh,clearRowClassName:Eh}),()=>{const le={...We(r.attrs),onCurrentChange:te,onRowClick:ae,onExpandChange:S,data:F.value,ref:we,class:f.value,"cell-class-name":de(n.cellClassName),"row-class-name":$h(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>W.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),T===!0){const He=[];if(B.value){const _t=l.h(Ne.Loading,{class:`${u}__infinite-icon`});He.push(_t);const Yl=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);He.push(Yl)}else{const _t=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);He.push(_t)}const ht={ref:Z,class:`${u}__infinite`},Wl=l.h("div",ht,He);re.append=()=>Wl}const ie=l.h(b.ElTable,le,re),Me=[];if(Me.push(ie),!T){let He=null;if(typeof r.slots.pagination=="function")He=r.slots.pagination();else if(n.showPagination){const ht={class:v.value,total:_.value,pageSize:g.value,"onUpdate:pageSize":z,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":N,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};He=l.h(b.ElPagination,ht)}if(n.showSetting){const ht=[];He&&ht.push(He);const Wl=l.h(b.ElIcon,{class:c.value},{default:()=>l.h(Ne.Setting)}),_t=mo(n,cl),Yl=l.h(dn,{..._t,tableRef:{getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H}},{default:()=>Wl});ht.push(Yl);const kh=l.h("div",{class:d.value},ht);Me.push(kh)}else He&&Me.push(He)}const me={default:()=>Me},Bt={...ke(n,mr,pr,cl),prop:`${n.prop}_item`};return Bt.contentClass=`${u}__wrap`,Bt.errorMarkClass="is-table-error",k.value&&w()&&(Bt["appear-listen"]=!0,Bt.onAppear=Y),l.h(o,Bt,me)}}}}const{componentName:zu,create:Hu,scope:Ku}=se("table-item"),dl=Hu(ju(zu,Ku,Te));function bt(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 Wu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Yu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Uu(){const e=l.getCurrentInstance();return new Yu(e.proxy)}function yr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=bt(e,t),r=bt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function Gu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=bt(e,a)===t;else if(o==="item")i=yr(e,a,t);else{let s=At(e,a);s==null&&(s=bt(e,a)),i=s===t}if(i){r=a;break}}return r}function Xu(e){return{text:e,value:e}}function Zu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const br={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 Ju(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...br},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(F,M,E,k=!0)=>{const x=Gu(n,F,M,E);if(x===null){if(f.value===null)return;f.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!yr(n,x,f.value)){u.value=F;const $=l.toRaw(x);f.value=$;let I=null;n.valueType==="text"?I=bt(n,$):n.valueType==="item"?I=$:I=At(n,$),k&&(s("update:modelValue",I),s("change",I))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>ue(F)),V=Uu(),m=async(F,M)=>{if(F){const E=await V.load("radio",F,M);if(E.length>0)if(typeof E[0]=="string"){let j=E.map($=>Xu($));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,M])=>{m(F,M)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,M])=>{c(M,n.valueType,F,!1),s("setValue",M)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,M)=>{const E=[];return F.forEach((k,x)=>{const j=At(n,k),$=bt(n,k);let I=Wu(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=Zu(n,k,x)??{},U=`${j}_${x}`,Y={...R,key:U,label:j,size:n.size,border:ue(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElRadioButton,Y,{default:()=>[$]})):typeof M=="function"?E.push(l.h(b.ElRadio,Y,{default:()=>M(k)})):E.push(l.h(b.ElRadio,Y,{default:()=>[$]}))}),E};return()=>{const M={...We(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElRadioGroup,M,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,br),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:Qu,create:ec,scope:tc}=se("radio-item"),hl=ec(Ju(Qu,tc,Te));function vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function nc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function oc(){const e=l.getCurrentInstance();return new lc(e.proxy)}function vr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=vt(e,t),r=vt(e,o);if(n!==r)return!1;const a=wt(e,t),i=wt(e,o);return a===i}function rc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=vt(e,i)===a;else if(o==="item")s=vr(e,i,a);else{let u=wt(e,i);u==null&&(u=vt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function ac(e){return{text:e,value:e}}function ic(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const wr={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 sc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...wr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(F,M,E,k=!0)=>{const x=rc(n,F,M,E);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(x.length!==f.value.length)j=!1;else for(let $=0;$<x.length;$++){const I=x[$],R=f.value[$];if(!vr(n,I,R)){j=!1;break}}if(!j){f.value=x;let $=[],I=[];x.forEach(U=>{$.push(wt(n,U)),n.valueType==="text"?I.push(vt(n,U)):n.valueType==="item"?I.push(U):I.push(wt(n,U))}),u.value=$;const R=l.toRaw(I);k&&(s("update:modelValue",R),s("change",R))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>ue(F)),V=oc(),m=async(F,M)=>{if(F){const E=await V.load("checkbox",F,M);if(E.length>0)if(typeof E[0]=="string"){let j=E.map($=>ac($));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,M])=>{m(F,M)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,M])=>{c(M,n.valueType,F,!1),s("setValue",M)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,M)=>{const E=[];return F.forEach((k,x)=>{const j=wt(n,k),$=vt(n,k);let I=nc(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=ic(n,k,x)??{},U=`${j}_${x}`,Y={...R,key:U,class:n.itemClass,label:j,size:n.size,border:ue(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElCheckboxButton,Y,{default:()=>[$]})):typeof M=="function"?E.push(l.h(b.ElCheckbox,Y,{default:()=>M(k)})):E.push(l.h(b.ElCheckbox,Y,{default:()=>[$]}))}),E};return()=>{const M={...We(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElCheckboxGroup,M,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,wr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:uc,create:cc,scope:fc}=se("checkbox-item"),gl=cc(sc(uc,fc,Te)),Sr={modelValue:{type:[Number,String],required:!1}};function dc(e,t,o){return{props:{...xe,...Oe,...Sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>Se(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=l.ref(!1);const m=l.ref();return $e({}),()=>{const g={...We(r.attrs),ref:m,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElRate,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,Sr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:hc,create:gc,scope:mc}=se("rate-item"),ml=gc(dc(hc,mc,Te)),xr={modelValue:{type:[Boolean,String,Number],required:!1}};function pc(e,t,o){return{props:{...xe,...Oe,...xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=ge(n,"hintVisible");const m=l.ref();return $e({}),()=>{const g={...We(r.attrs),ref:m,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElSwitch,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,xr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:yc,create:bc,scope:vc}=se("switch-item"),pl=bc(pc(yc,vc,Te)),Tr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function wc(e,t,o){return{props:{...xe,...Oe,...Tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=ge(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),v=B=>{u("update:modelValue",B),u("change",B)};let V=ge(n,"hintText"),m=l.ref(!1);const h=B=>{let F=B.target.value;s.value=!0,pe(V.value)||(m.value=!0),u("focus",F,B)},g=B=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),w.value||u("blur",F,B)},T=()=>{u("clear","")},w=l.ref(!1),N=B=>{w.value=B,u("visible-change",B),B||u("selected")},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const _={...We(r.attrs),ref:z,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":v,onClear:T,onFocus:h,onBlur:g,onVisibleChange:N},F={};r.slots.option&&(F.default=r.slots.option);const M=[],E=l.h(b.ElTreeSelect,_,F);M.push(E);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,Tr),hintText:V.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:Sc,create:xc,scope:Tc}=se("tree-select-item"),yl=xc(wc(Sc,Tc,Te)),Cc={},$c={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"},Nc=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Ec(e,t){return l.openBlock(),l.createElementBlock("svg",$c,Nc)}const kc=Pe(Cc,[["render",Ec]]),{componentName:Kh,create:Ic,scope:Wh}=se("group-setting"),Oc={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:"到底部"}},Vc=Ic({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:kc,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Oc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=gr(),s=O=>O.length>1,u=()=>{const O=[],S=[...a.value];a.value=S.map((D,y)=>(D.visible!==!1&&O.push(D.prop),{...D,sortIndex:y})),a.value.length===O.length?h.value=!0:O.length>0&&(g.value=!0),N.value=O},f=O=>{let S=null;if(typeof O=="string")S=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const D=O.$el??O;typeof D.querySelectorAll=="function"&&(S=D.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const A=[];return S.forEach(D=>{const y=D.querySelector(".label--string");let K="";y&&(K=y.textContent??"");const P=D.getAttribute("prop")??"",L=window.getComputedStyle(D,null).getPropertyValue("display");A.push({label:K,prop:P,sortIndex:0,visible:L!=="none"})}),A},c=()=>{if(!r){const O=f(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},d=async(O=!1)=>{const S=await i.load(e.groupProp),A=D=>{if(!D||!r)return;const y=r.map(K=>({...K}));Array.isArray(S)&&S.forEach(K=>{y.some(P=>{if(P.prop===K.prop){const q=P.label;return Object.assign(P,K),P.label=q,!0}return!1})}),a.value=y.sort((K,P)=>K.sortIndex-P.sortIndex),u(),O&&V(!1)};r?A(!0):Xt(c,e.initDelay,5,50,!1,A)},v=()=>{const O=r??[];a.value=O.map(S=>({...S})),u(),V()},V=(O=!0)=>{O&&i.save(e.groupProp,a.value);const S=a.value.map(A=>({...A}));t("change",S)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=O=>{const S=[];a.value.forEach(D=>{O&&S.push(D.prop),D.visible=O}),h.value=!1,g.value=!1,a.value.length===S.length?h.value=!0:S.length>0&&(g.value=!0),N.value=S,V()},w=()=>{v()},N=l.ref([]),z=O=>{a.value.forEach(A=>{const D=O.indexOf(A.prop)!==-1;A.visible=D}),h.value=!1,g.value=!1;const S=a.value.length;O.length===S?h.value=!0:O.length>0&&(g.value=!0),V()},B=()=>{d()};l.onMounted(()=>{d(!0)});const _={currentRow:null,index:null},F=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,F(O)):null:null,M=O=>{const S=O.currentTarget;S&&S.dataset&&(_.index=S.dataset.index)},E=O=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},k=O=>{const S=O.currentTarget;O.relatedTarget;const A=F(S);A&&(O.preventDefault(),_.currentRow&&_.currentRow!==A&&_.currentRow.classList.remove("is-dragover"),A.classList.add("is-dragover"),_.currentRow=A)},x=O=>{O.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},j=O=>{const S=O.currentTarget,A=F(S);if(!A)return;O.preventDefault();const D=Number(_.index),y=Number(A.dataset.index);if(D!==y){if(D<y){const K=a.value[D];a.value.splice(D,1),a.value.splice(y,0,K)}else{const K=a.value[D];a.value.splice(D,1),a.value.splice(y+1,0,K)}u(),V()}},$=O=>{const S=a.value[O];a.value.splice(O,1),a.value.splice(0,0,S),u(),V()},I=O=>{const S=a.value[O];a.value.splice(O,1),a.value.push(S),u(),V()};n({refresh:()=>{r=null,d(!1)}});const R=new Map;let U=null;function Y(O){const S=document.createRange();return S.setStart(O,0),S.setEnd(O,O.childNodes.length),S.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:w,checkedValue:N,handleCheckChange:z,onShow:B,onDragStart:M,onDragEnd:E,onDragOver:k,onDragLeave:x,onDrop:j,checkboxLabelStyle:m,toTop:$,toBottom:I,onMouseOverForOverflowText:(O,S,A)=>{const D=O.currentTarget;if(D){const y=Math.floor(D.offsetWidth);if(Math.floor(Y(D))>y){let P=R.get(S);if(P){if(P===U)return;Re.hide(P)}P=Re.show(D,A,{type:"text",placement:"top",closeOnClick:!1}),R.set(S,P),U=P}}},onMouseLeaveForOverflowText:(O,S)=>{const A=R.get(S);A&&(Re.hide(A),A===U&&(U=null))},onMouseOverForTip:(O,S)=>{const A=O.currentTarget;A&&(U&&Re.hide(U),U=Re.show(A,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{U&&(Re.hide(U),U=null)}}}}),Fc={class:"fox-group-setting"},Dc={class:"fox-group-setting__header"},Rc={class:"fox-group-setting__body"},Ac={class:"fox-group-setting__body-list","data-role":"container"},Mc=["data-index","draggable"],Lc=["onMouseover","onMouseleave"],Bc={class:"tools-item"};function _c(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Fc,[l.createElementVNode("div",Dc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Rc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ac,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,V.prop,V.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,Lc)]),_:2},1032,["label"]),l.createElementVNode("div",Bc,[l.createVNode(c,{onClick:m=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,Mc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const bl=Pe(Vc,[["render",_c]]),qc=["aria-labelledby"],Pc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],vl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Yc=["aria-labelledby"],Uc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Gc=[Uc],Xc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Yc))}}),Zc=["aria-labelledby"],Jc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Jc],ef=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),tf=["aria-labelledby"],nf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),lf=[nf],of=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},lf,14,tf))}}),rf={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Cr=(e,t)=>t[e.textKey],Mt=(e,t)=>t[e.valueKey],af=(e,t)=>t[e.visibleKey],$r=(e,t)=>t[e.disabledKey],sf=(e,t)=>{const o=t[e.doitKey];return ue(o)},uf=(e,t)=>{const o=t[e.numKey];return o==null?null:Se(t[o])},Nr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function cf(e,t,o,n=!1){return{props:{...rf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{d.value!==O&&(d.value=O,Y(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),m=l.ref(),h=l.ref(!1),g=()=>{const O=!h.value;T(O)},T=O=>{const S=O;S?(h.value=S,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),N=l.ref([]),z=(O,S)=>{N.value[S]=O},B=O=>S=>{z(S,O)},_=(O,S)=>{const A=w.value,D=N.value;if(!A||!D||!D[O])return;const y=D[O];let K=0;r.direction==="vertical"?K=y.offsetTop-(A.offsetHeight-y.offsetHeight)/2:K=y.offsetLeft-(A.offsetWidth-y.offsetWidth)/2,F(A,K,S?0:.3,r.direction)},F=(O,S,A,D)=>{let y=0;const K=D==="horizontal"?O.scrollLeft:O.scrollTop,P=A===0?1:Math.round(A*1e3/16);function q(){D==="horizontal"?O.scrollLeft+=(S-K)/P:O.scrollTop+=(S-K)/P,++y<P&&En(q)}q()},M=(O,S)=>{const A=Mt(r,O),D={};return D[`${e}__titles-item`]=!0,D.disabled=$r(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),S&&(S.class&&(D[`${S.class}`]=!0),S.disabled===!0&&(D.disabled=S.disabled)),D},E=(O,S)=>{const A={};if(c.value>0){const D=Math.abs(c.value/2);r.direction==="vertical"?(A["margin-top"]=`${D}px`,A["margin-bottom"]=`${D}px`):(A["margin-left"]=`${D}px`,A["margin-right"]=`${D}px`)}return S&&S.style&&Object.assign(A,S.style),A},k=(O,S)=>`${Mt(r,O)??S}`,x=(O,S)=>{const A=Mt(r,O),D={};D[`${e}__popup-item`]=!0,D.disabled=$r(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0);const y=Nr(r,O,S);return y&&y.disabled===!0&&(D.disabled=y.disabled),D},j=l.computed(()=>(r.data??[]).filter(S=>af(r,S)!==!1)),$=(O,S)=>{const A=Mt(r,O);if(d.value==A)return;const D=()=>{d.value=A,r.scroll&&_(S,!1),i("update:modelValue",A),i("change",O,S)};if(typeof r.beforeChange=="function"){const y=r.beforeChange(O,S);oo(y)?y.then(K=>{K!==!1&&D()}).catch(()=>{D()}):y!==!1&&D()}else D()},I=(O,S)=>function(){$(O,S)},R=(O,S)=>{$(O,S),T(!1)},U=(O,S)=>function(){R(O,S)},Y=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(A=>Mt(r,A)===d.value);S!==-1&&_(S,O)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const Z=(O,S)=>{if(a.item)return a.item({item:O,index:S});const A=Nr(r,O,S),D=[];if(a.text){const q=a.text({item:O,index:S});D.push(q)}else{const q=[];if(A?.doit===!0||sf(r,O)){const J={class:[`${e}__titles-item-tip`,"doit"]},ne=l.h("view",J);q.push(ne)}const L=A?.num??uf(r,O);if(L){let J="";const ne=Se(L);ne>=100?J="99+":J=`${ne}`;const C={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",C,[J]);q.push(W)}const G={class:`${e}__titles-item-text`};q.push(Cr(r,O));const H=l.h("view",G,q);D.push(H)}const y={class:`${e}__titles-item-line`},K=l.h("view",y);D.push(K);const P={ref:B(S),class:M(O,A),style:E(O,A),key:k(O,S),onClick:I(O,S)};return l.h("view",P,D)},X=()=>{const O=a.default?a.default():[];if(O.length===0)for(let A=0;A<j.value.length;A++){const D=j.value[A],y=Z(D,A);O.push(y)}const S={ref:w,class:u.value,style:f.value};return l.h("view",S,O)},te=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const S={class:`${e}__navigation`,onClick:g};return l.h("view",S,[O])},ae=()=>{const O=[];for(let A=0;A<j.value.length;A++){const D=j.value[A];let y=null;a.popupItem?y=a.popupItem({item:D,index:A}):y=Cr(r,D);const K={class:x(D,A),key:k(D,A),onClick:U(D,A)},P=l.h("view",K,[y]);O.push(P)}const S={class:v.value,style:V.value};return l.h("view",S,O)};return()=>{const O=[],S=X();if(O.push(S),r.showQuickNavigation){const D=te();O.push(D);const y=ae();O.push(y)}const A={class:s.value};return l.h("view",A,O)}}}}const{create:ff,componentName:df,scope:hf}=se("tabs-bar"),wl=ff(cf(df,hf,zc,!1)),Er=Symbol("TabsStatesKey"),gf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function mf(e,t,o=!1){return{props:{...gf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex(T=>T.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(Er,s);const u=h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const V=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const T=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const g=nn(f.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(f.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},g=l.h("view",h,[a?.default?.()]),T={class:d.value,ref:f};return l.h("view",T,[g])}}}}const{create:pf,componentName:yf,scope:bf}=se("tabs-container"),Sl=pf(mf(yf,bf,!1)),vf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function wf(e,t,o){return{props:{...vf},setup(n,{emit:r,slots:a}){const i=l.inject(Er);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},v=n.emptyIcon??o,V=l.h(v,d),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",m,[h]),T={class:`${e}__empty`},w=l.h("view",T,[V,g]);f.push(w)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:Sf,componentName:xf,scope:Tf}=se("tabs-pane"),xl=Sf(wf(xf,Tf,vl)),Cf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function $f(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function kr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ir(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Nf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Tl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Or(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Vr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Cl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Ef{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function kf(){const e=l.getCurrentInstance();return new Ef(e.proxy)}function If(e,t,o,n){return{props:{...Cf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=kf(),f=l.ref([]),c=l.computed(()=>f.value.filter(S=>Nf(r,S)!==!1)),d=l.ref(-1),v=()=>{const S=r.modelValue,A=c.value.findIndex(D=>kr(r,D)===S);d.value!==A&&(d.value=A,r.scroll&&ae(A,!1))};l.watch([()=>r.modelValue,c],()=>{v()});const V=S=>d.value===S,m=S=>{if(S<0&&S>=c.value.length)return!1;const A=c.value[S],y=(Cl(r,A,S)??{}).status??Tl(r,A);return V(S)||y},h=l.computed(()=>{const S={[s]:!0};return r.mode?S[`is-${r.mode}`]=!0:r.direction&&(S[`is-${r.direction}`]=!0),r.scroll&&(S["is-scroll"]=!0),S}),g=l.computed(()=>({})),T=(S,A,D,y,K)=>{const P={[`${s}__step`]:!0};return K&&(P[`${K}`]=!0),P[`${w.value}`]=!0,y&&(P["is-doit"]=!0),S===d.value?P["is-active"]=!0:A==="done"?P["is-done"]=!0:A==="error"?P["is-error"]=!0:A==="half"?P["is-half"]=!0:D?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),N=(S,A={})=>{const D={...A};return w.value==="start"&&S===c.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},z=(S,A)=>{let D={};if(A<c.value.length-1){const y=A+1;m(A)&&m(y)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},B=S=>c.value.length-1===S,_=(S,A)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&A>d.value||d.value===A)return;const D=d.value,y=A;d.value=A,r.scroll&&ae(A,!1);const K=kr(r,S);i("update:modelValue",K);const P={fromIndex:D,currentIndex:y,item:S,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,P)},F=l.ref(!0),M=async(S,A)=>{try{const D=await u.load("stesbar",S,A);Array.isArray(D)&&(f.value=D),F.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([S,A])=>{S&&M(S,A)},{immediate:!0});const E=(S,A,D,y,K)=>{let P=null;if(a.icon)P=a.icon({item:S,index:A,status:y});else if(y==="done"){const L={};r.iconSize&&(L.width=r.iconSize,L.height=r.iconSize);const G=r.icon??o;P=l.h(G,L)}else{const L=D??`${A+1}`;P=l.h("span",{},[L])}const q={class:"fox-steps-bar__icon",onClick:()=>{K||_(S,A)}};return l.h("view",q,[P])},k=(S,A,D)=>{const y=l.h("i",{class:"fox-steps-bar__line-inner",style:z(S,A)});return l.h("view",{class:"fox-steps-bar__line"},[y])},x=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const y=r.markIcon??n;S=l.h(y,D)}return l.h("view",{class:"fox-steps-bar__mark"},[S])},j=(S,A,D,y,K)=>{const P=[];if(!B(A)){const G=k(S,A);P.push(G)}const q=E(S,A,D,y,K);P.push(q);const L={class:"fox-steps-bar__head"};return l.h("view",L,P)},$=(S,A,D,y)=>{let K=null;a.main?K=a.main({item:S,index:A,status:D}):K=$f(r,S);const P={class:"fox-steps-bar__main",onClick:()=>{y||_(S,A)}};return l.h("view",P,[K])},I=(S,A,D)=>{let y=null;if(a.sub){y=a.sub({item:S,index:A,status:D});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[y])}return null},R=(S,A)=>{const D=Cl(r,S,A)??{},y=D.status??Tl(r,S);let K=Ir(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Vr(r,S),q=[],L=E(S,A,P,y,K);L&&q.push(L);const G=$(S,A,y,K);if(G&&q.push(G),!B(A)){const ee=k(S,A);ee&&q.push(ee)}const H=l.h("view",{class:"fox-steps-bar__head"},q),J=D.class,ne=D.style??{};let C=Or(r,S);D.doit===!0&&(C=!0);const W={ref:te(A),class:T(A,y,K,C,J),style:N(A,ne)};return l.h("view",W,[H])},U=(S,A)=>{const D=Cl(r,S,A)??{},y=D.status??Tl(r,S);let K=Ir(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Vr(r,S),q=[],L=r.layout;for(let C of L)if(C==="head"){const W=j(S,A,P,y,K);q.push(W)}else if(C==="main"){const W=$(S,A,y,K);q.push(W)}else if(C==="sub"){const W=I(S,A,y);q.push(W)}else if(C==="mark"){const W=x();q.push(W)}const G=D.class,H=D.style??{};let J=Or(r,S);D.doit===!0&&(J=!0);const ne={ref:te(A),class:T(A,y,K,J,G),style:N(A,H)};return l.h("view",ne,q)},Y=l.ref(),Z=l.ref([]),X=(S,A)=>{Z.value[A]=S},te=S=>A=>{X(A,S)},ae=(S,A)=>{const D=Y.value,y=Z.value;if(!D||!y||!y[S])return;const K=y[S];let P=0;r.direction==="vertical"?P=K.offsetTop-(D.offsetHeight-K.offsetHeight)/2:P=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,O(D,P,A?0:.3,r.direction)},O=(S,A,D,y)=>{let K=0;const P=y==="horizontal"?S.scrollLeft:S.scrollTop,q=D===0?1:Math.round(D*1e3/16);function L(){y==="horizontal"?S.scrollLeft+=(A-P)/q:S.scrollTop+=(A-P)/q,++K<q&&En(L)}L()};return()=>{const S=[];if(r.mode==="simple")for(let D=0;D<c.value.length;D++){const y=c.value[D],K=R(y,D);S.push(K)}else for(let D=0;D<c.value.length;D++){const y=c.value[D],K=U(y,D);S.push(K)}const A={ref:Y,class:h.value,style:g.value};return l.h("view",A,S)}}}}const{componentName:Of,create:Vf,scope:Ff}=se("steps-bar"),$l=Vf(If(Of,Ff,ef,of)),Df=Symbol.for("InnerPageScopeKey"),Rf=Symbol.for("PageWrapperKey");function Af(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(Df,!0);const r={};l.provide(Rf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(b.ElDialog,f,c)}}}}const{componentName:Yh,create:Mf,scope:Uh}=se("dialog-item"),Nl=Mf(Af());let Lt=0;const Fr="fox-overflow-hidden",Dr=()=>ut?document.body:{classList:[]},Lf=e=>[()=>{if(e())try{!Lt&&Dr().classList.add(Fr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Dr().classList.remove(Fr)}catch{}}],Bf={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:_f,create:qf}=se("overlay"),Pf=qf({props:{...Bf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Lf(()=>e.lockScroll),r=l.computed(()=>({[_f]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function jf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const hn=Pe(Pf,[["render",jf]]),zf={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:{}}},Rr=2e3;let Ar=Rr;const Hf=(e,t)=>({components:t,props:{...zf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Rr&&(Ar=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Ar,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},m=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:v,onOpened:V,onClosed:m}}}),{componentName:Kf,create:Wf}=se("popup"),Yf=Wf(Hf(Kf,{FoxOverLay:hn,Close:Xc}));function Uf(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const El=Pe(Yf,[["render",Uf]]),{create:Gf}=se("toast"),Xf=Gf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=he(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Zf={key:1,class:"fox-toast-title"},Jf=["innerHTML"];function Qf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Zf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Jf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const kl=Pe(Xf,[["render",Qf]]),ed={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"}},td=(e,t,o)=>({props:{...ed},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}=$o(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=E=>{let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,E),a("change",x,E)},v=l.ref({}),V=E=>{let x=E.target.value;u.active=!0,v.value=n.focusStyle,a("focus",x,E)},m=E=>{setTimeout(()=>{u.active=!1},0);let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),v.value={},a("blur",x,E)},h=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),T=l.computed(()=>{const E={};return g.value||(E.display="none"),E}),w=()=>{a("search",n.modelValue)},N=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&w()},z=E=>{a("click-input",E)},B=E=>{a("click-left-icon",n.modelValue,E)},_=l.computed(()=>({textAlign:n.inputAlign})),F=l.ref(null);l.onMounted(()=>{n.autofocus&&F.value.focus()});const M=()=>{const E=[];if(r.leftin){const I={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},R=l.h("view",I,[r.leftin()]);E.push(R)}const k={ref:F,class:[`${e}__input-inner`],style:_.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:d,onFocus:V,onBlur:m,onkeyup:N},x=l.h("input",k);E.push(x);const j=[];if(n.clearable){const I={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},R=r?.clear?.()??n.clearIcon??o,U=l.h("view",I,[l.h(R)]);j.push(U)}if(r.rightin){const I={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=l.h("view",I,[r.rightin()]);j.push(R)}if(j.length>0){const I={class:`${e}__input-inner-right`},R=l.h("view",I,j);E.push(R)}const $={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...v.value}};return l.h("view",$,E)};return()=>{const E=[];if(n.label){const j={class:`${e}__search-label`},$=l.h("span",j,[n.label]);E.push($)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},$=l.h("view",j,[r.leftout()]);E.push($)}const k=M();if(E.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},$=l.h("view",j,[r.rightout()]);E.push($)}const x={class:`${e}`,style:f.value};return l.h("view",x,E)}}}),{componentName:nd,create:ld,scope:od}=se("searchbar"),Il=ld(td(nd,od,Ne.CircleClose)),rd=/scroll|auto|overlay/i,Mr=window;function ad(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function id(e,t=Mr){let o=e;for(;o&&o!==t&&ad(o);){const{overflowY:n}=window.getComputedStyle(o);if(rd.test(n))return o;o=o.parentNode}return t}function Lr(e,t=Mr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=id(e.value,t))}),o}const Br=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,sd={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 ud(e,t,o){return{props:{...sd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Lr(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,V=()=>{let w=0,N=0,z="down";if(f.value==window){const B=Br();u.value&&(w=v(u.value)+u.value.offsetHeight-B-window.innerHeight),N=B}else{const{scrollHeight:B,clientHeight:_,scrollTop:F}=f.value;w=B-_-F,N=F}return c.beforeScrollTop>N?z="up":z="down",c.beforeScrollTop=N,r("scroll-change",N),w<=n.threshold&&z=="down"},m=()=>{Ul(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",m,n.useCapture)},g=()=>{f.value&&f.value.removeEventListener("scroll",m,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&m()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>n.modelValue,w=>{w||(c.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},N=l.h("view",w,[a?.default?.()]),z=[];if(c.isInfiniting){let M=a?.loading?.()??null;if(!M){let x=a?.loadingIcon?.()??null;if(!x){const I={class:["fox-infinite__bottom-box__img"]};x=l.h(o,I)}const j={class:"fox-infinite__bottom-box__text"},$=l.h("view",j,[s.loadText.value]);M=[x,$]}const E={class:"fox-infinite__bottom-box"},k=l.h("view",E,M);z.push(k)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const E={class:"fox-infinite__bottom-tips"};M=l.h("view",E,[s.loadMoreText.value]),z.push(M)}}const B={class:"fox-infinite__bottom"},_=l.h("view",B,z),F={class:d.value,ref:u};return l.h("view",F,[N,_])}}}}const{componentName:cd,create:fd,scope:dd}=se("infinite-loading"),Ol=fd(ud(cd,dd,vl)),_r=10;function qr(e,t){return e>t&&e>_r?"horizontal":t>e&&t>_r?"vertical":""}function Vl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Fl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=qr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function hd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",v=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:g=>{if(g.touches){const N=g.touches[0];i.value=N.clientX-e.value,s.value=N.clientY-t.value,r.value=N.clientX,a.value=N.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=qr(u.value,f.value))},start:g=>{if(V(),g.touches){const N=g.touches[0];e.value=N.clientX,t.value=N.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:v}}const 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}},md=(e,t,o)=>({props:{...gd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Fl(),f=l.ref(),c=Lr(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),m=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const F={};return n.headHeight!=50&&(F.height=Ie(n.headHeight)),F}),g=F=>{const M=+(n.pullDistance||n.headHeight);let E=F;return F>M&&(F<M*2?E=(F+M)/2:E=M+F/4),Math.round(E)},T=(F,M)=>{const E=+(n.pullDistance||n.headHeight);d.distance=F,M?d.status="loading":F===0?d.status="normal":F<E?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:F})},w=()=>d.status!=="loading"&&d.status!=="complete",N=()=>c.value==window?Br()==0:c.value&&c.value.scrollTop==0,z=F=>{w()&&(N()?(u.start(F),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},B=F=>{w()&&d.moving&&(u.move(F),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(F.cancelable&&F.preventDefault(),T(g(u.state.deltaY))))},_=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?(T(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,F=>{F?T(+n.headHeight,!0):T(0)}),()=>{const F=[];let M=null;if(d.status==="loading"){if(M=a?.loading?.()??null,!M){const U={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,U)}}else d.status==="pulling"?M=a?.pulling?.()??null:d.status==="loosing"&&(M=a?.loosing?.()??null);M&&F.push(M);const E={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",E,[V.value]);F.push(k);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",x,F),$={class:"fox-pull-refresh-container",style:m.value},I=l.h("div",$,[j,a?.default?.()]),R={ref:f,class:v.value};return Vl()?Object.assign(R,{onTouchstart:z,onTouchmove:B,onTouchend:_}):Object.assign(R,{onMousedown:z,onMousemove:B,onMouseup:_}),l.h("div",R,[I])}}}),{componentName:pd,create:yd,scope:bd}=se("pull-refresh"),Dl=yd(md(pd,bd,vl));function vd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},v=n.default?n.default():[],V=l.h("div",d,v),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[c,V]):l.h("div",m,[V,c])}}}}const{componentName:wd,create:Sd,scope:Gh}=se("indicator"),Rl=Sd(vd(wd));function xd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const Td={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 Cd(e,t,o,n=!1){return{props:{...Td},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const N={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(N[`${e}--${r.type??"default"}`]=!0),r.size&&(N[`${e}--${r.size}`]=!0),N}),u=l.computed(()=>{const N={},z=r.textColor??r.color;return z&&(N.color=z),N}),f=(N,z)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const _=r.highlightFilter;if(N.indexOf(_)!==-1){const M=N.replace(new RegExp(_,"g"),`<span>${_}</span>`);z.innerHTML=M,z.class["is-highlight"]=!0,B=l.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const _=r.highlightFilter(N);_&&(z.innerHTML=_,z.class["is-highlight"]=!0,B=l.h(r.tag,z))}return B},c=N=>{a.emit("click",N)};let d="";const v=()=>{const N=i.value;if(!N)return;const z=N.clientWidth;xd(N,B=>{const _=N.innerHTML??"";pe(_)||B<z||(d?o?.show(N,_,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(N,_,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let m=null;const h=N=>{m||(m=setTimeout(()=>{v(),m=null},r.showAfter??0))},g=N=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{V()},r.hideAfter??0)},T=()=>{const N=i.value;N&&(N.addEventListener("mouseover",h),N.addEventListener("mouseleave",g))},w=()=>{const N=i.value;N&&(N.removeEventListener("mouseover",h),N.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const N={onClick:c,class:s.value,style:u.value,ref:i};let z=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const E=M[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=Se(r.digits),x=Se(r.decimalLength),j=ue(r.autoPadding);let $=`${M[0].children}`,I=$.split("").reverse().join("");I=jt(I,x,j,k,r.separator),$=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=f($,N)),z||(N.innerHTML=$,z=l.h(r.tag,N))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const E=M[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=`${M[0].children}`;z=f(k,N),z||(N.innerHTML=k,z=l.h(r.tag,N))}}}z||(z=l.h(r.tag,N,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let _=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:M,style:E};_=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:M,style:E};_=l.h("view",x,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const E={},k=r.color;k&&(E["background-color"]=k);const x={class:M,style:E};_=l.h("view",x)}const F={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",F,[_,z])}}}}const{componentName:$d,create:Nd,scope:Ed}=se("text"),Al=Nd(Cd($d,Ed,Re,!1)),kd={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:Ne.ArrowUp}};function Id(e,t,o){return{props:{...kd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ge(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);d.push(g)}const v={class:f.value},V=o(n.icon,v);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Od,create:Vd,scope:Fd}=se("more-button"),Ml=Vd(Id(Od,Fd,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function Dd(e){return e===window}const Pr=e=>{const t=l.unref(e);if(Dd(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Rd,create:Ad,scope:Zh}=se("tour"),Md=Ad({components:{Close:Ne.Close,ElPopover:b.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Rd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:T,height:w,left:N,top:z}=r.value,B=e.steps[n.active].offset??m,_=[N+T/2,z+w/2],F=Number(h||T),M=Number(g||w);return{width:`${F+ +B.left+B.right}px`,height:`${M+B.top+B.bottom}px`,top:`${_[1]-M/2-+B.top}px`,left:`${_[0]-F/2-+B.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,f=m=>m.location??e.location,c=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Pr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},V=(m,h=0)=>{m&&c(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{V(m)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:v}}}),Ld={key:0,class:"fox-tour__content"},Bd={key:0,class:"fox-tour__content-top"},_d={class:"fox-tour__content-inner"},qd={class:"fox-tour__content-bottom"},Pd={class:"fox-tour__content-bottom-init"},jd={class:"fox-tour__content-bottom-operate"},zd={key:1,class:"fox-tour__content fox-tour__content-tile"},Hd={class:"fox-tour__content-inner"};function Kd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Ld,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Bd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",_d,l.toDisplayString(f.content),1),l.createElementVNode("div",qd,[l.createElementVNode("div",Pd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",jd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",zd,[l.createElementVNode("div",Hd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ll=Pe(Md,[["render",Kd]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Wd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Vl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Fl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function jr(e,t){return new Wd(e,t)}var zr;const Bl=typeof window<"u";Bl&&((zr=window?.navigator)!=null&&zr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let St=[];const Hr=e=>{const t=e;t.key==="Escape"&&St.forEach(o=>o(t))},Yd=e=>{l.onMounted(()=>{St.length===0&&document.addEventListener("keydown",Hr),Bl&&St.push(e)}),l.onBeforeUnmount(()=>{St=St.filter(t=>t!==e),St.length===0&&Bl&&document.removeEventListener("keydown",Hr)})},_l="fox-focus-trap.focus-after-trapped",ql="fox-focus-trap.focus-after-released",Ud="fox-focus-trap.focusout-prevented",Kr={cancelable:!0,bubbles:!1},Gd={cancelable:!0,bubbles:!1},Wr="foxFocusAfterTrapped",Yr="foxFocusAfterReleased",Xd=Symbol("foxFocusTrap"),Pl=l.ref(),gn=l.ref(0),jl=l.ref(0);let mn=0;const Ur=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Zd=(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},Gr=(e,t)=>{for(const o of e)if(!Zd(o,t))return o},Jd=e=>{const t=Ur(e),o=Gr(t,e),n=Gr(t.reverse(),e);return[o,n]},Qd=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&Qd(e)&&t&&e.select()}};function Xr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const eh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Xr(e,n),e.unshift(n)},remove:n=>{e=Xr(e,n),e[0]?.resume?.()}}},th=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ot(n,t),document.activeElement!==o)return},Zr=eh(),nh=()=>gn.value>jl.value,pn=()=>{Pl.value="pointer",gn.value=window.performance.now()},Jr=()=>{Pl.value="keyboard",gn.value=window.performance.now()},lh=()=>(l.onMounted(()=>{mn===0&&(document.addEventListener("mousedown",pn),document.addEventListener("touchstart",pn),document.addEventListener("keydown",Jr)),mn++}),l.onBeforeUnmount(()=>{mn--,mn<=0&&(document.removeEventListener("mousedown",pn),document.removeEventListener("touchstart",pn),document.removeEventListener("keydown",Jr))}),{focusReason:Pl,lastUserFocusTimestamp:gn,lastAutomatedFocusTimestamp:jl}),yn=e=>new CustomEvent(Ud,{...Gd,detail:e}),{componentName:Jh,create:oh,scope:Qh}=se("focus-trap"),rh=oh({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:[Wr,Yr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=lh();Yd(h=>{ue(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||s.paused)return;const{key:g,altKey:T,ctrlKey:w,metaKey:N,currentTarget:z,shiftKey:B}=h,{loop:_}=e,F=g==="Tab"&&!T&&!w&&!N,M=document.activeElement;if(F&&M){const E=z,[k,x]=Jd(E);if(k&&x){if(!B&&M===x){const $=yn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),_&&ot(k,!0))}else if(B&&[k,E].includes(M)){const $=yn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),_&&ot(x,!0))}}else if(M===E){const $=yn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};l.provide(Xd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",d),g.removeEventListener("focusout",v))});const f=h=>{o(Wr,h)},c=h=>o(Yr,h),d=h=>{const g=l.unref(n);if(!g)return;const T=h.target,w=h.relatedTarget,N=T&&g.contains(T);ue(e.trapped)||w&&g.contains(w)||(r=w),N&&o("focusin",h),!s.paused&&ue(e.trapped)&&(N?a=T:ot(a,!0))},v=h=>{const g=l.unref(n);if(!(s.paused||!g))if(!e.escape&&ue(e.trapped)){const T=h.relatedTarget;!Fn(T)&&!g.contains(T)&&setTimeout(()=>{if(!s.paused&&ue(e.trapped)){const w=yn({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||ot(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){Zr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(_l,Kr);h.addEventListener(_l,f),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let N=e.focusStartEl;lo(N)||(ot(N),document.activeElement!==N&&(N="first")),N==="first"&&th(Ur(h),!0),(document.activeElement===g||N==="container")&&ot(h)})}}}function m(){const h=l.unref(n);if(h){h.removeEventListener(_l,f);const g=new CustomEvent(ql,{...Kr,detail:{focusReason:i.value}});h.addEventListener(ql,c),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!nh())&&ot(r??document.body,!0),h.removeEventListener(ql,f),Zr.remove(s)}}return l.onMounted(()=>{ue(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{ue(h)?V():m()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:ah,create:ih,scope:tg}=se("floating-window"),sh=Symbol.for("InnerPageScopeKey"),uh=Symbol.for("PageWrapperKey"),ch={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},fh=ih({inheritAttrs:!1,components:{FoxIcon:b.ElIcon,FocusTrap:rh},props:{...ch},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=ah,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,C=>{n.value=C});const a=l.computed(()=>n.value===!1?!1:!M.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const C=["fox-floating-window"];return e.customClass&&C.push(e.customClass),C}),d=l.computed(()=>{const C={};return dt(i.value)?C.left="auto":C.left=Ae(i.value),dt(s.value)?C.top="auto":C.top=Ae(s.value),dt(u.value)?C.right="auto":C.right=Ae(u.value),dt(f.value)?C.bottom="auto":C.bottom=Ae(f.value),dt(e.zIndex)||(C["z-index"]=Ae(e.zIndex)),dt(_.value)||(C.height=_.value),dt(F.value)||(C.width=F.value),C}),v=l.computed(()=>e.closeIcon??Ne.Close),V=l.computed(()=>e.collapseIcon??Ne.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),N=l.ref(),z=l.ref(null),B=l.ref(null),_=l.computed(()=>Ae(e.height)||""),F=l.computed(()=>Ae(e.width)||""),M=l.ref(ue(e.collapse)),E=(C,W=!0)=>{M.value!==C&&(M.value=C,C?S():A(),t("update:collapse",C),C&&typeof j.onHide=="function"?j.onHide():!C&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,C=>{E(C)});const k=()=>{x()},x=C=>{C=C??!M.value,E(C)};l.provide(sh,!0);const j={setCollapse:E,setFixedNavVisible:C=>{te.value=C}};l.provide(uh,j);const $=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},I=l.ref(null),R=l.computed(()=>!e.fixedNavTeleport),U=l.computed(()=>{const C=["fox-floating-window__fixednav"];return e.expandClass&&C.push(e.expandClass),e.collapsePosition==="left"?C.push("is-left"):e.collapsePosition==="right"&&C.push("is-right"),C}),Y=l.ref(""),Z=l.computed(()=>{const C={};return Y.value?C.top=Y.value:e.collapseTop&&(C.top=e.collapseTop),C}),X=l.ref(M.value),te=l.computed({set:C=>{X.value=C},get:()=>n.value===!1?!1:X.value});let ae=null;const O=()=>{typeof ae=="function"&&(ae(),ae=null)},S=()=>{I.value&&I.value.classList.add("slide-in"),te.value=!0,ae=()=>{I.value&&I.value.classList.remove("slide-in")}},A=()=>{I.value&&I.value.classList.add("slide-out"),ae=()=>{I.value&&I.value.classList.remove("slide-out"),te.value=!1}},D=()=>{i.value=null,s.value=null,u.value=null,f.value=null},y={x:0,y:0},q=jr(C=>{if(!N.value)return;const W=N.value;if(D(),e.origin==="left-top")i.value=W.offsetLeft,s.value=W.offsetTop,y.x=i.value,y.y=s.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,f.value=ee-(W.offsetTop+W.offsetHeight),y.x=i.value,y.y=f.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ee-(W.offsetLeft+W.offsetWidth),f.value=oe-(W.offsetTop+W.offsetHeight),y.x=u.value,y.y=f.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;u.value=ee-(W.offsetLeft+W.offsetWidth),s.value=W.offsetTop,y.x=u.value,y.y=s.value}},C=>{if(!N.value)return;const W=N.value;D(),e.origin==="left-top"?(i.value=y.x+C.x,s.value=y.y+C.y,W.style.left=Ae(i.value),W.style.top=Ae(s.value)):e.origin==="left-bottom"?(i.value=y.x+C.x,f.value=y.y-C.y,W.style.left=Ae(i.value),W.style.bottom=Ae(f.value)):e.origin==="right-bottom"?(u.value=y.x-C.x,f.value=y.y-C.y,W.style.right=Ae(u.value),W.style.bottom=Ae(f.value)):(u.value=y.x-C.x,s.value=y.y+C.y,W.style.right=Ae(u.value),W.style.top=Ae(s.value))}),L={x:0,y:0},J=jr(C=>{I.value&&(L.x=I.value.offsetLeft,L.y=I.value.offsetTop)},C=>{if(!I.value)return;const W=L.y+C.y;Y.value=`${W}px`}),ne=()=>{if(N.value){const C=N.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=C}};return l.onMounted(()=>{if(e.draggable&&N.value){const C=[];z.value&&C.push(z.value),e.footerDraggable&&(ne(),B.value&&C.push(B.value)),q.open(C)}e.collapse===!0&&E(e.collapse,!1),I.value&&J.open(I.value)}),l.onBeforeUnmount(()=>{e.draggable&&z.value&&q.close(),I.value&&J.close()}),{classes:c,styles:d,isShow:a,closeIcon:v,onClose:$,dialogRef:N,headerRef:z,onClickToggle:k,collapseIcon:V,collapseText:m,collapseTextClasses:T,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:te,fixedNavRef:I,fixedNavClasses:U,fixedNavStyles:Z,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),dh={ref:"headerRef",class:"fox-floating-window__header"},hh={class:"fox-floating-window__title"},gh={class:"fox-floating-window__tools"},mh={class:"fox-floating-window__body"},ph={class:"fox-floating-window__fixednav__text"};function yh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",dh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",hh,l.toDisplayString(e.title),1),l.createElementVNode("div",gh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",mh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",ph,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=Pe(fh,[["render",yh]]);function bh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return To(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ng,create:vh,scope:lg}=se("domain-provider"),Hl=vh(bh()),wh={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 Sh(e,t){return{inheritAttrs:!1,props:wh,setup(o,{slots:n}){if(ut&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,V)=>{if(c===null){a.set(v,{visible:null,callback:V});return}r.has(v)&&c.unobserve(v),r.set(v,{visible:null,callback:V}),c.observe(v)},s=v=>{if(c===null){a.delete(v);return}r.has(v)&&(r.delete(v),c.unobserve(v))};let u=o.initialVisibleObserverSize;ii({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(v,V,m)=>{c=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!T&&w.visible!==null)return;w.visible=T,w.callback(T)}catch(N){console.error(N)}}},{root:v,rootMargin:V,threshold:m}),a.forEach((h,g)=>{r.set(g,h),c?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,V])=>{if(V||!v||c)return;let m=null;typeof v=="string"?m=document.querySelector(v):m=v,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:og,create:xh,scope:rg}=se("rolling-provider"),Kl=xh(Sh()),Th=[qn,jn,zn,Hn,Yn,Te,Xn,Zn,Ft,Jn,Qn,el,tl,nl,ll,ol,al,il,sl,ul,dn,dl,hl,gl,ml,pl,yl,bl,wl,Sl,xl,$l,Nl,hn,El,kl,Il,Ol,Dl,Rt,cn,Rl,Al,Ml,Ll,zl,Hl,Kl],Ch=new Ba(Th,[Pa],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>b.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>b.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>b.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>b.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>b.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>b.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>b.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>b.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>b.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>b.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>b.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>b.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>b.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>b.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>b.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>b.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>b.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>b.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>b.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>b.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>b.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>b.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>b.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>b.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>b.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>b.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>b.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>b.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>b.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>b.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>b.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>b.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>b.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>b.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>b.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>b.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>b.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>b.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>b.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>b.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>b.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>b.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>b.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>b.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>b.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>b.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>b.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>b.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>b.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>b.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>b.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>b.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>b.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>b.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>b.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>b.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>b.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>b.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>b.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>b.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>b.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>b.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>b.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>b.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>b.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>b.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>b.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>b.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>b.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>b.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>b.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>b.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>b.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>b.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>b.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>b.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>b.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>b.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>b.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>b.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>b.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>b.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>b.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>b.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>b.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>b.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>b.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>b.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>b.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>b.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>b.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>b.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>b.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>b.ElUpload}),p.AutocompleteItem=il,p.Broadcast=Rn,p.BroadcastKey=ve,p.CascaderItem=al,p.CheckboxItem=gl,p.Content=Hn,p.DataItemsKey=gt,p.DateItem=el,p.DateUtils=qe,p.DialogItem=Nl,p.Domain=Zt,p.DomainKey=Le,p.DomainProvider=Hl,p.FloatingWindow=zl,p.FooterBar=zn,p.FoxAutocompleteItem=il,p.FoxCascaderItem=al,p.FoxCheckboxItem=gl,p.FoxContent=Hn,p.FoxDateItem=el,p.FoxDialogItem=Nl,p.FoxDomainProvider=Hl,p.FoxFloatingWindow=zl,p.FoxFooterBar=zn,p.FoxGroup=Yn,p.FoxGroupSetting=bl,p.FoxHeaderBar=jn,p.FoxHintText=Ft,p.FoxIndicator=Rl,p.FoxInfiniteLoading=Ol,p.FoxInputItem=Jn,p.FoxInputNumberItem=ol,p.FoxItem=Te,p.FoxMapping=Rt,p.FoxMoneyItem=ll,p.FoxMoreButton=Ml,p.FoxOverLay=hn,p.FoxPage=qn,p.FoxPopup=El,p.FoxPrice=cn,p.FoxPullRefresh=Dl,p.FoxRadioItem=hl,p.FoxRateItem=ml,p.FoxRollingProvider=Kl,p.FoxRowItem=Zn,p.FoxSearchBar=Il,p.FoxSelectItem=Qn,p.FoxSlotItem=Xn,p.FoxStepsBar=$l,p.FoxSwitchItem=pl,p.FoxTableItem=dl,p.FoxTableMappingColumn=sl,p.FoxTableRadioColumn=ul,p.FoxTableSetting=dn,p.FoxTabsBar=wl,p.FoxTabsContainer=Sl,p.FoxTabsPane=xl,p.FoxText=Al,p.FoxTimeItem=tl,p.FoxTimeSelectItem=nl,p.FoxToast=kl,p.FoxTour=Ll,p.FoxTreeSelectItem=yl,p.Group=Yn,p.GroupSetting=bl,p.HeaderBar=jn,p.HintText=Ft,p.Indicator=Rl,p.InfiniteLoading=Ol,p.InputItem=Jn,p.InputNumberItem=ol,p.Item=Te,p.Mapping=Rt,p.MoneyItem=ll,p.MoreButton=Ml,p.OverLay=hn,p.Page=qn,p.Popup=El,p.Price=cn,p.PriorityPolicy=_e,p.PullRefresh=Dl,p.RadioItem=hl,p.RateItem=ml,p.RollingProvider=Kl,p.RowItem=Zn,p.SearchBar=Il,p.SelectItem=Qn,p.SlotItem=Xn,p.StepsBar=$l,p.SwitchItem=pl,p.TableItem=dl,p.TableMappingColumn=sl,p.TableRadioColumn=ul,p.TableSetting=dn,p.TabsBar=wl,p.TabsContainer=Sl,p.TabsPane=xl,p.Text=Al,p.TimeItem=tl,p.TimeSelectItem=nl,p.Toast=kl,p.Tour=Ll,p.TreeSelectItem=yl,p.UniqueID=Bo,p.ValidateSchema=wo,p.ValidateSchemaKey=je,p.cancelRaf=na,p.clearNonNumber=ga,p.clone=On,p.compareTo=Nn,p.createBroadcast=Wt,p.createValidateSchema=Ut,p.debounce=It,p.debounceRef=Ea,p.decimalLength=ho,p.default=Ch,p.defineBroadcast=ba,p.defineConfigDomain=To,p.defineDataItem=Co,p.defineDomain=Mn,p.defineItem=Ce,p.definePageState=No,p.defineSimpleItem=$o,p.deleteGlobalValidator=Ta,p.disabledProperty=De,p.divide=$n,p.excludeProps=ke,p.extend=st,p.floatData=ya,p.getGlobalValidateCheckEvents=yo,p.getGlobalValidateResetEvents=vo,p.getPageContentAreaHeight=Qt,p.getPageContentAreaWidth=en,p.getPageFooterAreaHeight=Vt,p.getPageHeaderAreaHeight=Ot,p.getRootDomain=mt,p.hasSymbol=ao,p.includeProps=mo,p.indexOf=ma,p.integerLength=fo,p.isArray=oa,p.isArrayLike=so,p.isBrowser=ut,p.isDate=ia,p.isESModule=ua,p.isEmptyString=pe,p.isEqual=Xe,p.isFunction=kn,p.isHidden=Kt,p.isInnerPage=Oa,p.isMap=ra,p.isNil=Fn,p.isNumberString=co,p.isObject=Ge,p.isPlainObject=In,p.isPromise=oo,p.isRegExp=Dn,p.isSet=aa,p.isString=lo,p.isSubPage=Va,p.isSymbol=sa,p.isTouch=Vl,p.isWindow=io,p.lastIndexOf=pa,p.makeArray=ha,p.merge=uo,p.multiply=eo,p.negate=to,p.nextTick=fa,p.numberFormat=jt,p.objectToString=ro,p.once=ka,p.overrideGlobalValidateHandler=Sa,p.property=Ve,p.raf=En,p.readonlyProperty=Fe,p.setGlobalValidateCheckEvents=Ca,p.setGlobalValidateHandler=wa,p.setGlobalValidateMessages=Na,p.setGlobalValidateResetEvents=$a,p.setGlobalValidator=xa,p.throttle=xo,p.toBoolean=ue,p.toNumber=Se,p.toPadding=Ke,p.toPx=he,p.toPxDesc=Ie,p.toTypeString=zt,p.toValue=ge,p.tryTimes=Xt,p.typeOf=Ht,p.unNumberFormat=no,p.updatePageState=Ln,p.useBroadcast=Nt,p.useDomain=tt,p.useExpose=$e,p.useInnerSize=Pn,p.usePageState=Jt,p.usePosition=Ao,p.useRawTouch=Fl,p.useRect=Pr,p.useSize=nn,p.useTouch=hd,p.valueLength=$t,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function Pt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=Ee(e),t=Ee(t),[e,t]=vn(Ee(e),Ee(t)),o==1&&(n==1?e=bn(e):t=bn(t));let r=Gl(e,t);return o?o==2?"-"+Ee(r):e.length<r.length?Ee(r.substring(1)):"-"+Ee(bn(r)):Ee(r)}function bn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Gl(t,a)}function Ee(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 o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Gl(e,t){[e,t]=vn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var be=(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))(be||{});function Tt(e,t=0,o=be.HALF_EVEN){if(o===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=Tt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Xl(r[1],a,n,o)?(n?"-":"")+wn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let s=r[1].substring(t);return s&&Xl(s,i,n,o)&&(i=wn(i),i.length>t)?(n?"-":"")+wn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Xl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===be.DOWN||!o&&n===be.FLOOR||o&&n===be.CEILING)return!1;if(n===be.UP||o&&n===be.FLOOR||!o&&n===be.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 be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function wn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function Sn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=Ct(e),t=Ct(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=Ct(e.replace(".","")),t=Ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let V=t.length-1;V>=f&&V>=0;V--)u[V]>-1&&u[V]<e.length&&(v+=parseInt(e[u[V]--])*parseInt(t[V]));v+=s,s=Math.floor(v/10),c=v%10+c,f--}return c=Ct(la(c,a)),o==1&&(c="-"+c),c}function la(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function Ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function xn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=Ee(t.replace(".","")),r>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Ee(e+new Array(r+1).join("0"));else if(r>f)e=e.replace(".",""),e=Ee(e+new Array(r-f+1).join("0"));else if(r<f){e=e.replace(".","");let c=e.length-f+r;e=Ee(e.substring(0,c)+"."+e.substring(c))}else r==f&&(e=Ee(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Pt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+Ee(Tt(s,o-2))}function Tn(e,t){return e=e.toString(),t=t.toString(),t=Cn(t),Pt(e,t)}function Cn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Zl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Jl(e),Jl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Tn(e,Sn(t,Tt(xn(e,t),0,be.FLOOR)));return o+n}function Jl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ql(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=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]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=be;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=Ee(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+Ee(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=be.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return Tt(t,o,n)}round(t=0,o=be.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(Tt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,be.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Pt(t,o)}add(t){return new ce(Pt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),Tn(t,o)}subtract(t){return new ce(Tn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),Sn(t,o)}multiply(t){return new ce(Sn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),xn(t,o,n)}divide(t,o){return new ce(xn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),Zl(t,o)}modulus(t){return new ce(Zl(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),Ql(t,o)}compareTo(t){return Ql(this.value,t.getValue())}static negate(t){return t=ce.validate(t),Cn(t)}negate(){return new ce(Cn(this.value))}}function eo(e,t){return ce.multiply(`${e}`,`${t}`)}function $n(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function Nn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function to(e){return ce.negate(e)}function jt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",v=s.split("").reverse();for(let V=0;V<v.length;V++)d+=v[V]+((V+1)%n==0&&V+1!=v.length?r:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function no(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const En=Ul,oa=Array.isArray,ra=e=>zt(e)==="[object Map]",aa=e=>zt(e)==="[object Set]",ia=e=>e instanceof Date,kn=e=>typeof e=="function",lo=e=>typeof e=="string",sa=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",oo=e=>Ge(e)&&kn(e.then)&&kn(e.catch),ro=Object.prototype.toString,zt=e=>ro.call(e),In=e=>zt(e)==="[object Object]",ao=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ua(e){return e.__esModule||ao&&e[Symbol.toStringTag]==="Module"}const ca=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function st(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=st(r,f,u)}else u!==void 0&&(t[i]=u)}}return t}function On(e,t,o=!1){if(!o)st(!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)&&!In(i))continue;a=On(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!In(i))continue;a=On(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Vn=ca?Promise.resolve():null;function fa(e,...t){Vn!==null?t&&t.length>0?Vn.then(()=>{e(t)}):Vn.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 Se(e){return typeof e=="number"?e:Number(e)}const da={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Ht(e){let o=Object.prototype.toString.call(e);return e==null?String(e):da[o]||"object"}function io(e){return e&&typeof e=="object"&&"setInterval"in e}function Kt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function so(e){let t=!!e&&"length"in e&&e.length,o=Ht(e);return o==="function"||io(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function uo(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function ha(e,t=[]){let o=t;return e!=null&&(so(Object(e))?uo(o,typeof e=="string"?[e]:e):o.push(e)),o}function Xe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Ht(e),n=Ht(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],f=t[s];if(!Xe(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!Xe(a,i))return!1}return!0}return!1}const ut=typeof window<"u";function Fn(e){return e==null}function Dn(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function co(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function fo(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function ho(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function go(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ga(e,t=!0,o=!0){t?e=go(e,".",/\./g):e=e.replace(/\./g,""),o?e=go(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ma(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Xe(e,o))return!0}):t.indexOf(e)}function pa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Xe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function $t(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function mo(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function ke(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ya=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},ve=Symbol.for("BroadcastKey");class Rn{parent;children=[];callbacks=new Map;proxy=null;name;persistantMessages=new Map;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.persistantMessages.clear(),this.parent=null,this.proxy=null}setPersistantMessage(t,o,n){if(!t.uniqueId)return console.warn("[FoxUI]持久化消息,必须设置uniqueId。"),!1;const r=t.uniqueId,a={matched:t,action:o,args:n};return this.persistantMessages.set(r,a),!0}deletePersistantMessage(t){this.persistantMessages.delete(t)}getPersistantMessages(){const t=[];return this.persistantMessages.forEach(o=>{t.push(o)}),t}clearPersistantMessage(){this.persistantMessages.clear()}isMatched(t,o){if(!o||o.messagingPolicy==="Once"&&o.resolved===!0)return!1;let n=!1;return!o.name||o.name==="*"||o.name==="+"||Dn(o.name)&&t&&o.name.test(t)?n=!0:typeof o.name=="function"?n=Reflect.apply(o.name,null,[t]):o.name===t&&(n=!0),n}trigger(t,o,n){let r=null;const a=this.callbacks.get(o);typeof a=="function"&&(r=Reflect.apply(a,this.proxy,[...n]));const i=this.proxy??{};typeof i[o]=="function"&&(r=Reflect.apply(i[o],i,[...n])),t.resolved=!0,typeof t.resolve=="function"&&t.resolve(r)}pull(){let t=this.parent;for(;t;){const o=t.getPersistantMessages();Array.isArray(o)&&o.length>0&&o.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,o,...n){if(t.messagingPolicy==="Once"&&t.resolved===!0)return[];if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const i=t.resolve,s=t.uniqueId??"",u=(...f)=>{this.deletePersistantMessage(s),typeof i=="function"&&i(...f)};t.resolve=u}t.cachePolicy="None"}let r=!1;!t.name||t.name==="*"?r=!0:t.name==="+"?(r=!1,t.name="*"):Dn(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}if(t.resolved=!0,typeof t.resolve=="function"&&t.resolve(...a),t.messagingPolicy==="Once")return a}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){if(t.cachePolicy==="Persistant")this.setPersistantMessage(t,o,n),t.cachePolicy="None";else if(t.cachePolicy==="Unresolved"){if(this.setPersistantMessage(t,o,n)){const a=t.resolve,i=t.uniqueId??"",s=(...u)=>{this.deletePersistantMessage(i),typeof a=="function"&&a(...u)};t.resolve=s}t.cachePolicy="None"}const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Wt(e,t,o,n){const r=new Rn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ba(e,t,o){const n=o;if(n[ve])return n[ve];const r=l.inject(ve,null),a=new Rn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[ve]=a,l.provide(ve,a),l.onUnmounted(()=>{a.destroy(),n[ve]=void 0}),a}function Nt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[ve]??l.inject(ve,null):l.inject(ve,null)}const ct=e=>e.default??e;class va{error(t,o){const n=o,r=o||l.hasInjectionContext()?Nt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?Nt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?Nt(n):null,i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Et=new va;function wa(e){Et=e}function Sa(e){Et?Object.assign(Et,e):Et=e}function xa(e,t){ct(it).setValidator(e,t)}function Ta(e){ct(it).deleteValidator(e)}let po=["blur","clear"];function Ca(e){po=e}function yo(){return po}let bo=["focus","change","setValue"];function $a(e){bo=e}function vo(){return bo}function Na(e){ct(it).messages(e)}function kt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Yt(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 je=Symbol("ValidateSchemaKey");class wo{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Yt(kt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Yt(n);const r=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Et;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ct(it).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?ct(it).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ct(it).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=kt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Yt(t):this.rules=Yt([t]);const n=kt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=kt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=ct(it),u=new s(r),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function Ut(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new wo(t,o,e)}const Gt=Symbol.for("EventEmitterKey");class So{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function It(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function xo(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function Ea(e,t){const o=It((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function ka(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Xt(e,t,o,n=0,r=!0,a){let i=t,s=0;if(r){const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}}const u=()=>{const f=e();if(s++,f){typeof a=="function"&&a(!0);return}if(s>o){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),gt=Symbol("DataItemsKey");class Zt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Ia=new Zt;function mt(){return Ia}function tt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[Le]??l.inject(Le,null):l.inject(Le,null)}const An=Symbol("OriginalDateKey");function Mn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,i=l.inject(Le,null);i===null&&(i=mt());const s=e||t.prop||t.name;let u=new Zt(s);u.parent=i;const f=V=>{a[An]||v(V),u?.set("modelValue",V)},c=()=>u?.getForSelf("modelValue")??null,d=()=>a[An]??null,v=V=>{const m={};st(!0,m,l.toRaw(V)),a[An]=m};if(l.isReactive(t)||typeof t=="function"?l.watch(t,V=>{u?.merge(V,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Le]=u,l.provide(Le,u),r!==null){const V=l.inject(ve,null),m=Wt(a,V,s,n);u.broadcast=m,a[ve]=m,l.provide(ve,m),a.broadcast=(T,w,...N)=>Reflect.apply(m.emit,m,[T,w,...N]);const h=l.inject(je,null),g=Ut(a,h,{componentName:""});u.validateSchema=g,a[je]=g,l.provide(je,g),a[gt]=new Map,a.validate=(T=!0)=>{const w=[];let N=null;const z={deep:!1};if(T===!0)N={name:"*"};else if(Array.isArray(T)&&T.length>0){const B=T;N={name:_=>_?B.indexOf(_)!==-1:!1}}else if(T!=null&&typeof T=="object"){const B=T;if(Object.assign(z,B),Array.isArray(B.include)&&B.include.length>0){const _=B.include;N={name:F=>F?_.indexOf(F)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const _=B.exclude;N={name:F=>F?_.indexOf(F)===-1:!1}}else N={name:"*"}}if(N){const B=m?.emitToChildren(N,"validate",z);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let _=[];return B.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(_=[..._,...F.errors])}),_.length>0?{pass:!1,errors:_}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,w=!0,N=!1)=>{if(N===!0){Reflect.ownKeys(T).forEach(B=>{let _=String(B);const F={componentName:"",fieldName:_,pureDataValidate:!0};if(u){const L=Co(u,_,F,m,g);a[gt].set(_,L);const E=T[_];E&&L.validateSchema.setRule(E)}});return}if(w){const z=Reflect.ownKeys(T),B={name:_=>z.includes(_),cachePolicy:"Persistant",uniqueId:"validateRules"};m?.emitToChildren(B,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let w=null;if(T===!0)w={name:"*"};else if(Array.isArray(T)&&T.length>0){const N=T;w={name:z=>z?N.indexOf(z)!==-1:!1}}else if(T!=null&&typeof T=="object"){const N=T;if(Array.isArray(N.include)&&N.include.length>0){const z=N.include;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const z=N.exclude;w={name:B=>B?z.indexOf(B)===-1:!1}}else w={name:"*"}}w&&m?.emitToChildren(w,"clearValidate",!1)},a.resetFields=T=>{const w=c();if(!w)return;const N={};if(st(!0,N,d()??{}),Array.isArray(T))T.forEach(z=>{w[z]=N[z]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(B=>{w[B]=N[B]});else if(T&&Array.isArray(T.exclude)){let z=T.exclude??[];Reflect.ownKeys(N).forEach(B=>{z.includes(B)||(w[B]=N[B])})}else Object.assign(w,N);a.clearValidate(T)},a.setModelValue=(T,w)=>{!w||w===s?f(T):m?.emitToChildren({name:w,messagingPolicy:"Once"},"setModelValue",T)},a.getModelValue=()=>c(),setTimeout(function(){m?.pull()},0)}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[je]=void 0,l.provide(je,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[ve]=void 0,l.provide(ve,null)),u?.destroy(),a[Le]=void 0,l.provide(Le,null),a[gt]&&(a[gt].clear(),a[gt]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function To(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(Le,null);a===null&&(a=mt());const i=e||t.prop||t.name;let s=new Zt(i);return s.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{s?.merge(u,o)},{immediate:!0}):s.merge(t,o),r[Le]=s,l.provide(Le,s),l.onUnmounted(()=>{s?.destroy(),r[Le]=void 0,l.provide(Le,null),s=null,r=null}),s}function Ce(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",i=l.inject(ve,null);let s=Wt(r,i,a,o);r[ve]=s,l.provide(ve,s),r.broadcast=(m,h,...g)=>s?Reflect.apply(s.emit,s,[m,h,...g]):null;const u=l.inject(je,null);e.fieldName=e.fieldName??a;let f=Ut(r,u,e);r[je]=f,l.provide(je,f),r.validate=(m=null)=>{if(!f)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)T=!0,g=!0;else if(m&&typeof m=="object"){const w=m,N=w.ignoreDisabled??!0,z=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;N===!0&&e.disabled===!0||z===!0&&e.readonly===!0||B===!0&&Kt(r.$el)?T=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),T=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),T=!0;if(T){const w=f?.validate();h.push(w)}if(g){let w=null;const N={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const z=m;w={name:B=>B?z.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const z=m;if(Object.assign(N,z),Array.isArray(z.include)&&z.include.length>0){const B=z.include;w={name:_=>_?B.indexOf(_)!==-1:!1}}else if(Array.isArray(z.exclude)&&z.exclude.length>0){const B=z.exclude;w={name:_=>_?B.indexOf(_)===-1:!1}}else w={name:"*"}}if(w&&s){const z=s.emitToChildren(w,"validate",N);Reflect.apply([].push,h,z)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let N=[];return w.forEach(z=>{z.pass===!1&&Array.isArray(z.errors)&&(N=[...N,...z.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>f?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&f?.setRule(g),h&&s){const T={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren(T,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:w=>w?T.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s&&s.emitToChildren(h,"clearValidate",!1)};let c=new So(r);r[Gt]=c;const d=It((m="validate")=>{f&&(m==="reset"?f.clear():f.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:yo()).forEach(m=>{c&&c.on(m,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:vo()).forEach(m=>{c&&c.on(m,h=>{d("reset")})}),setTimeout(function(){s?.pull()},0),l.onUnmounted(()=>{s?.destroy(),r[ve]=void 0,l.provide(ve,null),s=null,f?.destroy(),r[je]=void 0,l.provide(je,null),f=null,c?.destroy(),r[Gt]=void 0,c=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:s,validateSchema:f,emitEvent:(m,...h)=>{c&&Reflect.apply(c.emit,c,[m,...h])},onEvent:(m,h)=>{c&&Reflect.apply(c.on,c,[h])},offEvent:(m,h)=>{c&&Reflect.apply(c.off,c,[h])}}}function Co(e,t,o,n,r){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};let u=Ut({},r,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,V=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)V=!0,v=!0;else if(c&&typeof c=="object"){const m=c;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),V=!0,v=m.deep??!1}else typeof c=="boolean"&&(v=c),V=!0;if(V&&u){const m=u.validate();d.push(m)}if(v){let m=null;const h={deep:!1};if(c===!0)m={name:"*"};else if(Array.isArray(c)&&c.length>0){const g=c;m={name:T=>T?g.indexOf(T)!==-1:!1}}else if(c!=null&&typeof c=="object"){const g=c;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;m={name:w=>w?T.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;m={name:w=>w?T.indexOf(w)===-1:!1}}else m={name:"*"}}if(m&&f){const g=f.emitToChildren(m,"validate",h);Reflect.apply([].push,d,g)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};let f=Wt(null,n,i,a);return l.onUnmounted(()=>{u=null,f=null}),{broadcast:f,validateSchema:u}}function $o(){let t=l.getCurrentInstance()?.proxy,o=new So(t);return t[Gt]=o,l.onUnmounted(()=>{o?.destroy(),t[Gt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ie=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${he(e,t)}px`:"";function he(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(ut){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const nt="PageStateKey";function Ke(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function Ln(e,t,o={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ke(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ke(o.footerPadding??t.footerPadding),e.contentPadding=Ke(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=he(u,a):e.height=he(a)-he(i,a)-he(s,a),e.width=he(o.width??t.width??0,r)}}function No(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=he(r.top),n.safeAreaBottom=he(r.bottom),n.safeAreaLeft=he(r.left),n.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;Ln(n,a,t,!0,i,s,u,f);const c=l.reactive(n),d=e.getForParent(nt);d&&(n.height=Qt(e,d),n.width=en(e,d),l.watch([()=>Qt(e,d),()=>en(e,d)],([V,m])=>{c.height=V,c.width=m}));const v=!d;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([V,m,h=-1,g=-1,T=0,w=0])=>{Ln(c,m,t,v,h,g,T,w)}),e.set(nt,c),c}function Jt(e){return e.get(nt)}function Ot(e,t){if(t=t??e.get(nt),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Vt(e,t){if(t=t??e.get(nt),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Qt(e,t){if(t=t??e.get(nt),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Ot(e,t),n=Vt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function en(e,t){return t=t??e.get(nt),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Oa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Va(e){return!!e.getForParent(nt)}var _e=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(_e||{});function Bn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ve(e,t,o=1,n){const r=tt();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(Bn(u,n))return u}const i=e.value;return Bn(i,n)?i:null}):l.computed(()=>{const a=e.value;return Bn(a,n)?a:r?.get(t)})}function Fe(e){return Ve(e,"readonly",0,function(o){return ue(o)})}function De(e){return Ve(e,"disabled",0,function(o){return ue(o)})}function ge(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=l.ref(a);return l.watch(r,s=>{if(typeof o=="function"){const u=o(s);u!==i.value&&(i.value=u,n&&n("setValue",u))}else s!==i.value&&(i.value=s,n&&n("setValue",s))}),i}const Eo=new Map,tn=new Map;let _n=null;function Fa(e){_n=e}function ko(e,t,o){if(o){let n=tn.get(o);n||(n=new Map,tn.set(o,n)),n.set(e,t)}else Eo.set(e,t)}function ze(e,t,o){!o&&_n&&(o=_n(e)??void 0);let n=null;if(o){let r=tn.get(o);r&&(n=r.get(t))}return n||(n=Eo.get(t)),n}function Da(e,t){for(let o in e){const n=e[o];ko(o,n,t)}}function Ra(e){tn.delete(e)}function Aa(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(ut){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-he(e,n)-he(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function La(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Ba{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=La(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=mt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=xo(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=st({},Aa(),t.safeAreaInset),i=Ma(n,r),s=st({},i.pageLayout,t.pageLayout);o=o??mt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Fa(t)}setAPI(t,o,n){ko(t,o,n)}getAPI(t,o,n){return ze(t,o,n)}batchSetAPI(t,o){Da(t,o)}clearScopeAPI(t){Ra(t)}getRootDomain(){return mt()}}const _a=[b.ElAffix,b.ElAlert,b.ElAutocomplete,b.ElAutoResizer,b.ElAvatar,b.ElBacktop,b.ElBadge,b.ElBreadcrumb,b.ElBreadcrumbItem,b.ElButton,b.ElButtonGroup,b.ElCalendar,b.ElCard,b.ElCarousel,b.ElCarouselItem,b.ElCascader,b.ElCascaderPanel,b.ElCheckTag,b.ElCheckbox,b.ElCheckboxButton,b.ElCheckboxGroup,b.ElCol,b.ElCollapse,b.ElCollapseItem,b.ElCollapseTransition,b.ElColorPicker,b.ElConfigProvider,b.ElContainer,b.ElAside,b.ElFooter,b.ElHeader,b.ElMain,b.ElDatePicker,b.ElDescriptions,b.ElDescriptionsItem,b.ElDialog,b.ElDivider,b.ElDrawer,b.ElDropdown,b.ElDropdownItem,b.ElDropdownMenu,b.ElEmpty,b.ElForm,b.ElFormItem,b.ElIcon,b.ElImage,b.ElImageViewer,b.ElInput,b.ElInputNumber,b.ElLink,b.ElMenu,b.ElSubMenu,b.ElMenuItem,b.ElMenuItemGroup,b.ElPageHeader,b.ElPagination,b.ElPopconfirm,b.ElPopover,b.ElPopper,b.ElProgress,b.ElRadio,b.ElRadioButton,b.ElRadioGroup,b.ElRate,b.ElResult,b.ElRow,b.ElScrollbar,b.ElSelect,b.ElOption,b.ElOptionGroup,b.ElSelectV2,b.ElSkeleton,b.ElSkeletonItem,b.ElSlider,b.ElSpace,b.ElSteps,b.ElStep,b.ElSwitch,b.ElTable,b.ElTableColumn,b.ElTableV2,b.ElTabs,b.ElTabPane,b.ElTag,b.ElTimePicker,b.ElTimeSelect,b.ElTimeline,b.ElTimelineItem,b.ElTooltip,b.ElTransfer,b.ElTree,b.ElTreeSelect,b.ElTreeV2,b.ElUpload],qa=[b.ElInfiniteScroll,b.ElLoading,b.ElMessage,b.ElMessageBox,b.ElNotification,b.ElPopoverDirective],Pa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);_a.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),qa.forEach(r=>{e.use(r)})};function se(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function $e(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Oe={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}},Io={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}},Oo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Vo=[];for(const e in Oo)Vo.push(e);const ja=Symbol.for("InnerPageScopeKey"),za={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}},Ha=(e,t)=>({inheritAttrs:!0,props:{...xe,...Io,...za},setup(o,{slots:n}){const r=Mn(o.name,o),a=l.inject(ja,!1);if(r){const c=No(r,o);$e({getPageContentHeight:()=>Qt(r,c),getPageContentWidth:()=>en(r,c),getPageHeaderHeight:()=>Ot(r,c),getPageFooterHeight:()=>Vt(r,c)}),c&&a&&(c.contentHeight="100%")}const i=l.computed(()=>({[e]:!0})),s=l.computed(()=>({})),u=l.getCurrentInstance(),f=(c,d=!1)=>{const v=u?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(c,!0,d)};return l.watch([()=>o.rules,()=>o.pureDataRules],([c,d],[v,V])=>{if(c&&v){const m=l.toRaw(v),h=l.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h)}if(d&&V){const m=l.toRaw(V),h=l.toRaw(d),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),f(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const c=l.toRaw(o.rules);f(c)}if(o.pureDataRules){const c=l.toRaw(o.pureDataRules);f(c,!0)}}),()=>{const c={class:i.value,style:s.value};return l.h("div",c,[n?.default?.()])}}}),{componentName:Ka,create:Wa,scope:Ih}=se("page"),qn=Wa(Ha(Ka));function nn(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Pn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ya=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=tt(),s=i?Jt(i):null;s&&(s.headerMounted=!0);const u=e,f=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),c=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),d=r.height!==null&&r.height!==void 0?he(r.height):null,v=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const x=Ke(r.padding??s.headerPadding);return Object.assign(k,x),d&&(s.headerHeight=d),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(x.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(d&&(k.height=d),r.padding){const x=Ke(r.padding);Object.assign(k,x)}return k}),V=l.ref(null),m=()=>{if(s&&V.value&&!Kt(V.value)){if(!n){const k=nn(V.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{s&&(Xt(m,50,5,50,!0),window.ResizeObserver&&V.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(V.value)))}),l.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const k={};return v.value.height!==null&&v.value.height!==void 0&&(k.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(k.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(k.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(k.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(k.paddingBottom=`${v.value.bottom}px`),k}),T=l.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function w(){a.emit("back")}function N(){a.emit("click-title")}function z(){a.emit("click-right")}function B(){a.emit("click-right-text")}const _=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(x)}else if(r.leftIcon){const x=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(x)}if(r.leftText){const x=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__left"},k)},F=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const x=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(x)}if(a.slots.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[a.slots.rightIcon()]);k.push(x)}else if(r.rightIcon){const x=l.h("view",{class:"right-icon",onClick:z},[l.h(r.rightIcon)]);k.push(x)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},L=()=>{if(!r.titleShow)return null;const k=[],x=a.slots.default?a.slots.default():null;if(x)k.push(x);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:N},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},E=()=>{const k=[],x=a.slots.bottom?a.slots.bottom():null;return x&&k.push(x),k.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!T.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const j=[],$=_();$&&j.push($);const I=L();I&&j.push(I);const R=F();if(R&&j.push(R),j.length>0){const Y=l.h("view",{class:c.value},j);k.push(Y)}const U=E();U&&k.push(U)}if(k.length===0)return null;const x={class:f.value,style:g.value,ref:V};return l.h("view",x,k)}}}),{componentName:Ua,create:Ga,scope:Xa}=se("header-bar"),jn=Ga(Ya(Ua,Xa,Ne.ArrowLeft));function Za(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=tt(),i=a?Jt(a):null,s=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?he(n.height):null,f=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=Ke(n.padding??i.footerPadding);return Object.assign(m,h),u&&(i.footerHeight=u),i.footerHeight>0&&(m.height=i.footerHeight),m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),n.padding){const h=Ke(n.padding);Object.assign(m,h)}return m}),c=l.ref(null),d=()=>{if(i&&c.value&&!Kt(c.value)){if(!o){const m=nn(c.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let v=null;l.onMounted(()=>{i&&(Xt(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(c.value)))}),l.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const V=l.computed(()=>{const m={};return f.value.height!==null&&f.value.height!==void 0&&(m.height=Ie(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(m.paddingTop=Ie(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(m.paddingLeft=Ie(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(m.paddingRight=Ie(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(m.paddingBottom=Ie(f.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:c,class:s.value,style:V.value};return l.h("view",h,m)}}}}const{componentName:Ja,create:Qa,scope:Oh}=se("footer-bar"),zn=Qa(Za(Ja));function ei(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=tt(),r=l.computed(()=>({[e]:!0})),a=n?Jt(n):null,i=l.computed(()=>{const f={};if(n&&a){if(o.padding){const V=Ke(o.padding);Object.assign(a.contentPadding,V)}const c=Ot(n,a),d=Vt(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,f.height=v,a.contentPadding.top||c>0){const V=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+V}px`}if(a.contentPadding.bottom||d>0){const V=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+V}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=Ke(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=l.ref(null),u=()=>{if(a&&s.value){const f=Pn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Ot(n),()=>Vt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:ti,create:ni,scope:Vh}=se("content"),li=ni(ei(ti));function oi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Pe=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Hn=Pe(li,[["render",oi]]),pt="GroupStateKey",Fo=Symbol.for("GroupScopeKey");function ln(){return l.inject(Fo,!1)}function on(e=!0){l.provide(Fo,e)}function ri(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Fn(r)||(e[n]=r)})}function ai(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};ri(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(pt,a),a}function Kn(e,t,o=-1,n=-1,r=!1,a,i,s){const u=e.get(pt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=he(a),d=he(i);s||(s=f.type??"grid");const v=()=>{const V=t===""||t===-1,m=he(t);let h=Se(o);const g=he(n);if(!V){let N=(m-(h-1)*g)/h;for(;d!==-1&&N>d;)h++,N=(m-(h-1)*g)/h;for(;c!==-1&&h>1&&N<c;)h--,N=(m-(h-1)*g)/h}let T=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,T=!0),w.value.gutter!==g&&(w.value.gutter=g,T=!0),w.value.type!==s&&(w.value.type=s,T=!0),T&&l.triggerRef(w)};if(r)v();else{const V=++u.passport;setTimeout(()=>{V===u.passport&&v()},50)}}function rn(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.layout}function an(e,t=!1){let o;return t?o=e.getForParent(pt):o=e.get(pt),o.order}function Do(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function sn(e,t,o=1,n=0,r){const a={};let i=0;r?i=he(r):i=Do(t.column,o),i>0&&(a.width=`${i}%`);const s=Do(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function un(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let r=Se(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=Se(n)%t.column;let i=(e.index+a)%t.column,s=i+r;return s>t.column?(i=0,s=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Ro=Symbol("RollingStateKey");function ii(e){l.provide(Ro,e)}function si(){return l.inject(Ro,null)}function Wn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ui(e){let t=Wn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Wn(o),document.body.removeChild(o)}return t}function ci(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const fi={...xe,...Io,...Oo};function di(e,t,o){return{props:fi,emits:["update:collapse","header-click"],setup(n,r){const a=Mn(n.name,n,Vo),i=ai(a,{type:n.type}),s=ln();on(!0);const u=n.rollingDisplay?si():null,f=l.ref(null),c=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=l.computed(()=>s&&a?rn(a,!0).value:null),v=l.getCurrentInstance(),V=(H,Q=!1)=>{const ne=v?.proxy;ne&&typeof ne.setNameValidateRules=="function"&&ne.setNameValidateRules(H,!0,Q)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,Q],[ne,C])=>{if(H&&ne){const W=l.toRaw(ne),ee=l.toRaw(H),oe=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{oe.includes(fe)||(ee[fe]=[])}),V(ee)}if(Q&&C){const W=l.toRaw(C),ee=l.toRaw(Q),oe=ee?Reflect.ownKeys(ee):[];(W?Reflect.ownKeys(W):[]).forEach(fe=>{oe.includes(fe)||(ee[fe]=[])}),V(ee,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const H={};H.height=R.value;const Q=s?an(a,!0):null;if(d.value&&Q){if(d.value.type==="grid"){const ne=un(Q,d.value,n.span,n.offset);Object.assign(H,ne)}else if(d.value.type==="flow"){const ne=sn(Q,d.value,n.span,n.offset,n.width);Object.assign(H,ne)}}else if(n.width){const ne=Ie(n.width);H.width=ne}return H}),g=l.computed(()=>{const H=i.layout.value.type;return H==="grid"||H==="flow"?{[`${m}--${H}`]:!0,[`${m}--${H}-justify-${n.justify}`]:!0,[`${m}--${H}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${H}`]:!0,[`${m}--gutter`]:!0}}),T=l.computed(()=>{if(i.layout.value.type==="grid"){let Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const ne=ci(L.value,i.layout.value.column,i.layout.value.gutter);Q=`repeat(${i.layout.value.column}, ${ne})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Q}}}),w=l.toRef(n,"gutter"),N=l.toRef(n,"column"),z=l.computed(()=>s||c.value?!0:ue(n.isWrap)),B=[],_=H=>{B.push(H)},F=()=>{let H=B.length;B.splice(0,H)},L=l.ref(-1),E=H=>{const Q=Pn(H).width;Q>0&&Q!==L.value&&(L.value=Q)};Kn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([L,N,w],([H,Q,ne])=>{i.order.index=0,Kn(a,H,Q,ne,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>U.value?n.expandText??"":n.collapseText??""),x=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),$=l.ref(),I=l.ref(),R=l.computed(()=>Y.value||Ie(n.height)||""),U=l.ref(!1),Y=l.ref(""),J=l.ref(!1);let X=-1;const te=(H,Q=!0)=>{const ne=$.value;if(ne&&U.value!==H){if(X=X===-1?ui(ne):X,J.value=!0,Q)if(ne.style["will-change"]="height",ne.ontransitionend=function(){ne.ontransitionend=null,this.style["will-change"]="auto",H||(Y.value="",J.value=!1)},H){let C=0;n.collapseHeight?C=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(C=I.value.offsetHeight),Y.value=`${X}px`,l.nextTick(()=>{Y.value=`${C}px`})}else Y.value=`${X}px`;else if(H){let C=0;n.collapseHeight?C=n.collapseHeight:I.value&&I.value.classList.contains(`${e}__header`)&&(C=I.value.offsetHeight),Y.value=`${C}px`}else J.value=!1,Y.value=`${X}px`;U.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{te(H)});const ae=H=>{r.emit("header-click",H)},O=()=>{S()},S=H=>{H=H??!U.value,te(H)};$e({toggleCollapse:S,doLayout:()=>{B[0]&&(E(B[0]),Kn(a,L.value,N.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let D=null,y=!0;const K=H=>{if(n.rules){const Q=l.toRaw(n.rules);V(Q)}if(n.pureDataRules){const Q=l.toRaw(n.pureDataRules);V(Q,!0)}if(ut&&(H&&te(ue(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const Q=B[0];E(Q),window.ResizeObserver&&(D=new window.ResizeObserver(()=>{E(Q)}),D.observe(Q))}},P=()=>{D?.disconnect(),D=null},q=!c.value||u?.acquire();q&&(f.value=c.value?!0:null),l.onMounted(()=>{if(q&&(K(y),y=!1),c.value&&u){let H=null,Q=u.initialHeight;u.observe($.value,ne=>{if(ne!==f.value)if(ne)f.value=!0,U.value||(Y.value=""),H=setTimeout(()=>{H=null,f.value!==!1&&(K(y),y=!1)},100);else{if(H!==null&&clearTimeout(H),f.value=!1,!U.value)if(y)Y.value=u.initialHeight;else{let C=Wn($.value);C<=0?Y.value=Q:(Y.value=`${C}px`,Q=Y.value)}y||P()}})}}),l.onUnmounted(()=>{D?.disconnect(),u&&u.unobserve($.value)});const M=(H="right")=>{const Q=[];if(k.value){const W={class:x.value},ee=l.h("span",W,[k.value]);Q.push(ee)}const ne={class:j.value},C=o(n.collapseIcon,ne);return C&&Q.push(C),Q.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},Q):null},G=(H,Q,ne,C)=>{const W={...g.value};return Q===0&&(W[`${m}__first`]=!0),ne>=C-1&&(W[`${m}__last`]=!0),l.h("div",{ref:_,key:`${Q}`,class:W,style:T.value},H)};return()=>{if(c.value&&f.value!==!0){const W=n.tag||"div";return l.h(W,{ref:$,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const H=[];let Q=0;if(r.slots.header){const W={key:`${Q++}`,ref:I,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},ee=l.h("div",W,[r.slots.header()]);H.push(ee)}else{const W=[],ee=n.collapsePosition==="left";if(ee&&n.showCollapse){const oe=M("left");oe&&W.push(oe)}if(n.title||r.slots.title){if(n.showMark){const oe={class:{[`${m}__header-mark`]:!0}};n.markColor&&(oe.style={background:n.markColor});const de=l.h("div",oe);W.push(de)}if(r.slots.title){const oe=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);W.push(oe)}else if(n.title){const oe=l.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);W.push(oe)}}if(r.slots.toolbar&&W.push(r.slots.toolbar()),!ee&&n.showCollapse){const oe=M("right");oe&&W.push(oe)}if(W.length>0){const oe={key:`${Q++}`,ref:I,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ae},de=l.h("div",oe,W);H.push(de)}}F();const ne=r.slots.default?r.slots.default():[],C=i.layout.value.type;if(C==="grid"){const W=G(ne,Q++,0,ne.length);H.push(W)}else if(C==="flow"){const W=G(ne,Q++,0,ne.length);H.push(W)}else for(let W=0;W<ne.length;W++){const ee=ne[W],oe=G([ee],Q++,W,ne.length);H.push(oe)}if(z.value){const W=n.tag||"div";return l.h(W,{ref:$,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[H])}else return H}}}}const{componentName:hi,create:gi,scope:mi}=se("group"),Yn=gi(di(hi,mi,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function pi(e){return e===window}const yi=/matrix\((.+)\)/,Ao=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(pi(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:f}=window.getComputedStyle(r);if(f){const c=yi.exec(f);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}r=r.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class bi{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class vi{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new bi,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Mo=new vi,Lo={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:wi,create:Si}=se("price"),xi=Si({props:{...Lo},setup(e){const t=l.computed(()=>({[wi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>$t(e.price)==0?"":jt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),r=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=l.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),Ti=["innerHTML"],Ci=["innerHTML"];function $i(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ti)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ci)):l.createCommentVNode("",!0)],2)}const cn=Pe(xi,[["render",$i]]),{componentName:Un,create:Ni}=se("hint-text"),Ei=Ni({components:{Price:cn},props:{...Lo,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),i=l.ref(e.placement),s=l.ref(!1),u=l.ref(null),f=(x,j,$,I,R,U)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,X=x.split("-");let te=[];X[0]==="top"?te=["top","bottom","right","left"]:X[0]==="bottom"?te=["bottom","top","right","left"]:X[0]==="left"?te=["left","top","bottom","right"]:X[0]==="right"&&(te=["right","top","bottom","left"]);const ae={top:null,right:null,bottom:null,left:null},O=[];for(let S=0;S<te.length;S++){const A=te[S];if(O[0]=A,X[1]&&(O[1]=X[1]),A==="top"){const D=j.y-U-e.arrowSize-e.offset;if(D>=0){ae.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+$-R:y=j.x+$/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,ae.left=y<0?0:y;break}}else if(A==="bottom"){const D=j.y+I+e.arrowSize+e.offset;if(D+U<=J){ae.top=D;let y=0;X[1]==="start"?y=j.x:X[1]==="end"?y=j.x+$-R:y=j.x+$/2-R/2;const K=Y-y-R;K<0?(y+=K,d.value=-K):d.value=0,ae.left=y<0?0:y;break}}else if(A==="left"){const D=j.x-R-e.arrowSize-e.offset;if(D>=0){ae.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-U:y=j.y+I/2-U/2,ae.top=y<0?0:y;break}}else if(A==="right"){const D=j.x+$+e.arrowSize+e.offset;if(D+R<=Y){ae.left=D;let y=0;X[1]==="start"?y=j.y:X[1]==="end"?y=j.y+I-U:y=j.y+I/2-U/2,ae.top=y<0?0:y;break}}}return{bestPlacement:O.join("-"),bestInsetRect:ae}},c=(x,j,$=10)=>{if(!ut||j===!1||!x)return;n.value=Ao(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const I=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:Y}=f(e.placement,n.value,r.value,a.value,R,I);i.value=U,o.value=Y,s.value=!0},d=l.ref(0),v=It(()=>{c(e.message,e.visible)},10),V=l.ref(e.visible);l.watch(()=>e.visible,x=>{V.value=x});const m=l.computed(()=>V.value&&h.value),h=l.ref(!0),g=It(x=>{const j=x[0];j&&(h.value=j.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([x,j])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),Mo.watch(e.reference,v),T.observe(e.reference)}),l.onBeforeMount(()=>{Mo.unwatch(e.reference,v),T.unobserve(e.reference),T.disconnect()});const w=l.computed(()=>{const x={[Un]:!0};return i.value.startsWith("top")?x["is-top"]=!0:i.value.startsWith("right")?x["is-right"]=!0:i.value.startsWith("bottom")?x["is-bottom"]=!0:i.value.startsWith("right")&&(x["is-right"]=!0),e.size==="small"?x["is-small"]=!0:e.size==="large"&&(x["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(x[`${e.customClass}`]=!0),x}),N=l.computed(()=>{const x={};o.value.top!==null&&(x.top=`${o.value.top}px`),o.value.right!==null&&(x.right=`${o.value.right}px`),o.value.bottom!==null&&(x.bottom=`${o.value.bottom}px`),o.value.left!==null&&(x.left=`${o.value.left}px`),e.autoFit&&(x["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return x["max-width"]=`${j}px`,s.value&&(x.opacity="1"),e.transition||(x.transition="none"),e.zIndex&&(x["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(x,e.customStyle),x}),z=l.computed(()=>{const x=[`${Un}__content`];return e.customTextClass&&x.push(e.customTextClass),x}),B=l.computed(()=>{const x={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(x,e.customTextStyle),x}),_=l.computed(()=>({[`${Un}__arrow`]:!0})),F=l.computed(()=>{const x={};return e.showArrow?(x.width=`${e.arrowSize}px`,x.height=`${e.arrowSize}px`,i.value==="top"?(x.left="50%",x.bottom=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="top-start"?(x.left=`${e.arrowOffset+d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(x.right=`${e.arrowOffset-d.value}px`,x.bottom=`-${e.arrowSize}px`):i.value==="right"?(x.left=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="right-start"?(x.left=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="right-end"?(x.left=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(x.left="50%",x.top=`-${e.arrowSize}px`,x.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(x.left=`${e.arrowOffset+d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(x.right=`${e.arrowOffset-d.value}px`,x.top=`-${e.arrowSize}px`):i.value==="left"?(x.right=`-${e.arrowSize}px`,x.top="50%",x.transform=" translate(0%, -50%)"):i.value==="left-start"?(x.right=`-${e.arrowSize}px`,x.top=`${e.arrowOffset}px`):i.value==="left-end"&&(x.right=`-${e.arrowSize}px`,x.bottom=`-${e.arrowOffset}px`),x):{display:"none"}}),L=l.computed(()=>m.value&&e.closeOnClick),E=l.computed(()=>{const x={};return e.zIndex&&(x["z-index"]=`${e.zIndex}`),x});return{show:m,tipRef:u,classes:w,styles:N,textClasses:z,textStyles:B,arrowClasses:_,arrowStyles:F,overlayShow:L,overlayStyle:E,onClickOverlay:()=>{V.value=!1,t.emit("update:visible",!1)}}}}),ki=["innerHTML"];function Ii(e,t,o,n,r,a){const i=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,ki))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Ft=Pe(Ei,[["render",Ii]]);class Bo{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 Gn={},Oi=new Bo,yt=new Map,fn=e=>{if(e){const t=document.getElementById(e);yt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of yt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}yt.clear()}},Vi=e=>{e.unmount=fn;const t=document.getElementById(e.id);if(t){const o=yt.get(e.id);o?e={...Gn,...o,...e}:e={...Gn,...e},e.transition=!1;const n=l.createVNode(Ft,e);return l.render(n,t),e.id}},Fi=e=>{e.unmount=fn;let t=e.id??`hinttext_${Oi.get()}`;e={...Gn,...e},e.id=t,yt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Ft,e);return l.render(n,o),document.body.appendChild(o),t},Di=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Re={show(e,t,o={},n=!0){Di(t);const r=o.id;return r&&yt.has(r)?Vi({...o,message:t,reference:e}):(n&&fn(),Fi({...o,message:t,reference:e}))},hide(e){fn(e)},install(e){e.config.globalProperties.$hintText=Re}};function Ri(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...Oe},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Ce({componentName:e,validate:!1},i);const s=tt(),u=ln();on(!1);const f=l.computed(()=>u&&s?rn(s,!1).value:null),c=e,d=l.ref(null),v=l.computed(()=>{const C={[c]:!0,[`${c}__gutter`]:f.value&&f.value.type!=="flow",[`${c}__stretch`]:r.span==="stretch",[`${c}__input--border`]:ue(r.hasBorder)};if(C[r.errorMarkClass]=!!U.value,C[r.warnMarkClass]=!!I.value,C[r.infoMarkClass]=!!j.value,typeof d.value=="function"){const W=d.value(i);C[W]=!0}else if(typeof d.value=="string"){const W=d.value;C[W]=!0}return C}),V=l.ref(null),m=l.computed(()=>{const C={};if(r.width)r.width!=="auto"&&(C.width=Ie(r.width));else{const W=u&&s?an(s,!1):null;if(f.value&&W){if(f.value.type==="grid"){const ee=un(W,f.value,r.span,r.offset);Object.assign(C,ee)}else if(f.value.type==="flow"){const ee=sn(W,f.value,r.span,r.offset,r.width);Object.assign(C,ee)}}}if(typeof V.value=="function"){const W=V.value(i);W&&Object.assign(C,W)}else if(V.value&&typeof V.value=="object"){const W=V.value;Object.assign(C,W)}return C}),h=l.ref(null),g=l.computed({get:()=>h.value??ue(r.isRequired),set:C=>{h.value=C}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=Ve(l.toRef(r,"labelPosition"),"labelPosition",_e.Near),N=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),z=l.computed(()=>({[`${c}__main`]:!0,[`${c}__main--${N.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${N.value}`]:!0})),_=Ve(l.toRef(r,"labelWidth"),"labelWidth",_e.Near),F=l.computed(()=>_&&_.value?{width:Ie(_.value)}:{}),L=l.computed(()=>({"label--string":!0,"label--required":g.value})),E=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),x=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(C){g.value=C},setErrorTip(C){x.errorTip=C},setErrorIcon(C){x.errorIcon=C},setWarnTip(C){x.warnTip=C},setWarnIcon(C){x.warnIcon=C},setInfoTip(C){x.infoTip=C},setInfoIcon(C){x.infoIcon=C},setCustomClassName(C){d.value=C},setCustomStyle(C){V.value=C}});const j=l.computed(()=>r.infoTip||x.infoTip),$=l.computed(()=>r.infoIcon||x.infoIcon),I=l.computed(()=>r.warnTip||x.warnTip),R=l.computed(()=>r.warnIcon||x.warnIcon),U=l.computed(()=>r.errorTip||x.errorTip),Y=l.computed(()=>r.errorIcon||x.errorIcon),J=l.computed(()=>U.value?"error":I.value?"warn":j.value?"info":""),X=()=>J.value.length>0,te=l.computed(()=>J.value==="error"?U.value:J.value==="warn"?I.value:J.value==="info"?j.value:""),ae=l.computed(()=>J.value==="error"?Y.value:J.value==="warn"?R.value:J.value==="info"?$.value:null),O=l.computed(()=>{const C={[`${c}__tip`]:!0,[`${c}__tip--${J.value}`]:!0,[`${c}--animate`]:!0};return J.value==="error"&&r.errorClass?C[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?C[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(C[`${r.infoClass}`]=!0),C}),S=l.computed(()=>{const C={};return w&&w.value==="top"||!T()?C["padding-left"]="0px":_&&_.value&&(C["padding-left"]=Ie(_.value)),C}),A=l.ref();let D="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([C,W,ee,oe])=>{A.value&&(C&&!pe(W)?D?o.show(A.value,W,{...oe,id:D,type:ee},!0):D=o.show(A.value,W,{...oe,type:ee},!0):o.hide(D))});let y=null;const K=()=>{y||!A.value||(y=new IntersectionObserver(C=>{let W=!1;for(let ee of C)if(ee.intersectionRatio>0){W=!0,W&&a.emit("appear",ee);break}W||a.emit("disappear")}),y.observe(A.value))},P=()=>{!y||!A.value||(y.unobserve(A.value),y=null)};l.watch(()=>ue(r.appearListen),C=>{C?K():P()}),l.onMounted(()=>{ue(r.appearListen)&&K()}),l.onUnmounted(P);const q=()=>{if(!T())return null;const C=[],W=a.slots?.label?.()??r.label,ee={class:L.value},oe=l.h("div",ee,[W]);if(C.push(oe),a.slots.fixedPreTip){const fe=a.slots.fixedPreTip();C.push(fe)}const de={class:B.value,style:F.value};return l.h("div",de,C)},M=()=>{const C=[];if(a.slots.prepend){const ee=a.slots.prepend();C.push(ee)}if(a.slots.default){const ee=a.slots.default();C.push(ee)}if(a.slots.append){const ee=a.slots.append();C.push(ee)}if(a.slots.fixedTip){const ee={class:[`${c}__fixed-tip`]},oe=l.h("div",ee,[a.slots.fixedTip()]);C.push(oe)}const W={ref:A,class:E.value,style:k.value};return l.h("div",W,C)},G=()=>{const C=ae.value;return C?typeof C=="function"?l.h("div",{class:"fox-item__tip--icon"},[C()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(C)]):null},H=()=>{const C=te.value;return C?typeof C=="function"?l.h("div",{class:"fox-item__tip--text"},[C()]):l.h("div",{class:"fox-item__tip--text"},[C]):null},Q=()=>{if(!X())return null;const C=[],W=G();W&&C.push(W);const ee=H();ee&&C.push(ee);const oe={class:O.value,style:S.value};return l.h("div",oe,C)},ne=()=>a.slots?.hide?.()??null;return()=>{const C=[],W=[],ee=q();ee&&W.push(ee);const oe=M();oe&&W.push(oe);const de={class:z.value},fe=l.h("div",de,W);C.push(fe);const ye=Q();ye&&C.push(ye);const Ue=ne();Ue&&C.push(Ue);const rt={class:v.value,style:m.value,prop:r.prop};return l.h("div",rt,C)}}}}const{componentName:Ai,create:Mi,scope:Li}=se("item"),Te=Mi(Ri(Ai,Li,Re,!1));function Bi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=tt(),a=ln();on(!1);const i=l.computed(()=>a&&r?rn(r,!1).value:null),s=e,u=l.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=l.computed(()=>{const c={},d=a&&r?an(r,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=un(d,i.value,o.span,o.offset);Object.assign(c,v)}else if(i.value.type==="flow"){const v=sn(d,i.value,o.span,o.offset,o.width);Object.assign(c,v)}else return o.width&&(c.width=Ie(o.width)),c;else o.width&&(c.width=Ie(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",c,n.slots.default()):l.h("div",c)}}}}const{componentName:_i,create:qi,scope:Dh}=se("slot-item"),Xn=qi(Bi(_i));function Pi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=tt(),s=ln();on(!1);const u=l.computed(()=>{const f={};if(s&&i){const c=rn(i,!1),d=an(i,!1);if(c.value&&d)if(c.value.type==="grid"){const v=un(d,c.value,o.span,o.offset);Object.assign(f,v)}else if(c.value.type==="flow"){const v=sn(d,c.value,o.span,o.offset,o.width);Object.assign(f,v)}else o.width&&(f.width=Ie(o.width))}else o.width&&(f.width=Ie(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const V=l.h("div",{class:{[`${r}__divide`]:!0}});f.push(V)}f.push(d[v])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return l.h("div",c,f)}}}}const{componentName:ji,create:zi,scope:Rh}=se("row-item"),Zn=zi(Pi(ji)),We=(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},_o={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 Hi(e,t,o){return{props:{...xe,...Oe,..._o},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),m=$=>{d.value=$,s("update:modelValue",$),s("input",$)},h=$=>{s("change",$)};let g=ge(n,"hintText"),T=l.ref(!1);const w=$=>{let R=$.target.value;c.value=!0,pe(g.value)||(T.value=!0),s("focus",R,$)},N=$=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=$.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,$)},z=()=>{s("clear","")},B=l.ref(!1);let _=null;const F=()=>{n.showTooltip&&B.value===!1&&(_&&clearTimeout(_),_=setTimeout(()=>{B.value=!0},150))},L=()=>{_&&(clearTimeout(_),B.value=!1,_=null)},E=l.computed(()=>B.value||T.value),k=l.computed(()=>B.value?d.value:g.value),x=l.computed(()=>$t(n.unit)>0),j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...We(r.attrs),ref:j,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:z,onChange:h,onInput:m,onFocus:w,onBlur:N,onMouseover:F,onMouseleave:L},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const U=[],Y=l.h(b.ElInput,I,R);U.push(Y);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const te={...ke(n,_o),hintText:k.value,hintVisible:E.value,prop:`${n.prop}_item`};return l.h(o,te,J)}}}}const{componentName:Ki,create:Wi,scope:Yi}=se("input-item"),Jn=Wi(Hi(Ki,Yi,Te));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function qo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Ui(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Gi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Xi(){const e=l.getCurrentInstance();return new Gi(e.proxy)}function Po(e,t,o){const n=lt(e,t),r=lt(e,o);if(n!==r)return!1;const a=Dt(e,t),i=Dt(e,o);return a===i}function jo(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=qo(e,i);if(Array.isArray(s)&&s.length>0){const u=jo(e,a,o,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=lt(e,i)===a;else if(o==="item")u=Po(e,i,a);else{let f=Dt(e,i);f==null&&(f=lt(e,i)),u=f===a}if(u){r.push(i);break}}}}),r}function Zi(e){return{text:e,value:e}}const zo={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 Ji(e,t,o){return{props:{...xe,...Oe,...zo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(G=>lt(n,G)).join(" "):""),V=(M,G,H,Q=!0)=>{if(H.length==0){Q&&(s("update:modelValue",M),s("change",M)),c.value=M;return}const ne=jo(n,M,G,H);if(ne===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let C=!0;if(ne.length!==d.value.length)C=!1;else for(let W=0;W<ne.length;W++){const ee=ne[W],oe=d.value[W];if(!Po(n,ee,oe)){C=!1;break}}if(!C){d.value=ne;let W=[],ee=[],oe=[];ne.forEach(Ue=>{const rt=Dt(n,Ue),xt=lt(n,Ue);W.push(rt),oe.push(xt),n.valueType==="text"?ee.push(xt):n.valueType==="item"?ee.push(Ue):ee.push(rt)});let de,fe,ye;ue(n.multiple)?(c.value=W,de=l.toRaw(ee),fe=oe,ye=l.toRaw(ne)):(c.value=W[0]??"",de=l.toRaw(ee[0]??""),fe=oe[0]??"",ye=l.toRaw(ne[0])),Q&&(s("update:modelValue",de),s("change",de,ye)),s("update:text",fe)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),T=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,M=>ue(M)),w=Xi(),N=async(M,G)=>{if(M){const H=await w.load("select",M,G);if(H.length>0)if(typeof H[0]=="string"){let C=H.map(W=>Zi(W));m.value=C}else m.value=H;else m.value=null}};l.watch([()=>n.source,()=>n.params],([M,G])=>{h.value=null,N(M,G)},{immediate:!T.value});let z=!1;const B=()=>{z||(z=!0,N(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([M,G])=>{if(E()&&ue(n.multiple)){Xe(G,c.value)||(c.value=G);return}V(G,n.valueType,g.value,!1),s("setValue",G)}),n.source||(c.value=n.modelValue);let _=null,F=l.ref(!1);typeof n.remoteMethod=="function"&&(_=async M=>{if(M==null){h.value=null;return}F.value=!0;try{const G=await n.remoteMethod(M);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}F.value=!1});let L=null;typeof n.filterMethod=="function"&&(L=async M=>{if(M==null){h.value=null;return}F.value=!0;try{const G=await n.filterMethod(M,m.value);G&&(h.value=G)}catch(G){h.value=null,console.error(G)}F.value=!1});const E=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),x=e,j=l.computed(()=>({[x]:!0})),$=M=>{n.allowCreate||E()&&ue(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),c.value=M):V(M,"value",g.value,!0)};let I=ge(n,"hintText"),R=l.ref(!1);const U=M=>{let H=M.target.value;k.value=!0,pe(I.value)||(R.value=!0),s("focus",H,M)},Y=M=>{setTimeout(()=>{R.value&&(R.value=!1),k.value=!1},0);let H=M.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),D.value||s("blur",H,M)},J=()=>{s("clear","")},X=l.ref(!1);let te=null;const ae=()=>{n.showTooltip&&X.value===!1&&(te&&clearTimeout(te),te=setTimeout(()=>{X.value=!0},150))},O=()=>{te&&(clearTimeout(te),X.value=!1,te=null)},S=l.computed(()=>X.value||R.value),A=l.computed(()=>X.value?v.value:I.value),D=l.ref(!1),y=M=>{D.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},P=(M,G)=>{const H=[];return M.forEach((Q,ne)=>{const C=qo(n,Q);if(Array.isArray(C)&&C.length>0){const W=P(C,G),ee=lt(n,Q),de={key:`${ee}_${ne}`,label:ee};H.push(l.h(b.ElOptionGroup,de,{default:()=>W}))}else{const W=Dt(n,Q),ee=lt(n,Q),oe=Ui(n,Q),fe={key:`${W}_${ne}`,label:ee,disabled:oe,value:W};if(typeof G=="function")H.push(l.h(b.ElOption,fe,{default:()=>G(Q)}));else if(n.optionType==="item"){const ye={class:{"fox-select-item__option-left":!0}},Ue=l.h("span",ye,[W]),rt={class:{"fox-select-item__option-right":!0}},xt=l.h("span",rt,[ee]),at=l.h("div",{class:{"fox-select-item__option":!0}},[Ue,xt]);H.push(l.h(b.ElOption,fe,{default:()=>at}))}else n.optionType==="value"?H.push(l.h(b.ElOption,fe,{default:()=>[W]})):H.push(l.h(b.ElOption,fe))}}),H},q=l.ref();return $e({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const G={...We(r.attrs),ref:q,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:$,onFocus:U,onBlur:Y,onVisibleChange:y,onRemoveTag:K};typeof _=="function"&&(G["remote-method"]=_,G.loading=F.value),typeof L=="function"&&(G["filter-method"]=L,G.loading=F.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(g.value,r.slots.option);const Q=[],ne=l.h(b.ElSelect,G,H);Q.push(ne);const C={default:()=>Q};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const ee={...ke(n,zo),hintText:A.value,hintVisible:S.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:ae,onMouseleave:O};return T.value&&(ee["appear-listen"]=!0,ee.onAppear=B),l.h(o,ee,C)}}}}const{componentName:Qi,create:es,scope:ts}=se("select-item"),Qn=es(Ji(Qi,ts,Te));var Ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",v="quarter",V="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},N=function($,I,R){var U=String($);return!U||U.length>=I?$:""+Array(I+1-U.length).join(R)+$},z={s:N,z:function($){var I=-$.utcOffset(),R=Math.abs(I),U=Math.floor(R/60),Y=R%60;return(I<=0?"+":"-")+N(U,2,"0")+":"+N(Y,2,"0")},m:function $(I,R){if(I.date()<R.date())return-$(R,I);var U=12*(R.year()-I.year())+(R.month()-I.month()),Y=I.clone().add(U,d),J=R-Y<0,X=I.clone().add(U+(J?-1:1),d);return+(-(U+(R-Y)/(J?Y-X:X-Y))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:V,w:c,d:f,D:m,h:u,m:s,s:i,ms:a,Q:v}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},B="en",_={};_[B]=w;var F=function($){return $ instanceof x},L=function $(I,R,U){var Y;if(!I)return B;if(typeof I=="string"){var J=I.toLowerCase();_[J]&&(Y=J),R&&(_[J]=R,Y=J);var X=I.split("-");if(!Y&&X.length>1)return $(X[0])}else{var te=I.name;_[te]=I,Y=te}return!U&&Y&&(B=Y),Y||!U&&B},E=function($,I){if(F($))return $.clone();var R=typeof I=="object"?I:{};return R.date=$,R.args=arguments,new x(R)},k=z;k.l=L,k.i=F,k.w=function($,I){return E($,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var x=function(){function $(R){this.$L=L(R.locale,null,!0),this.parse(R)}var I=$.prototype;return I.parse=function(R){this.$d=function(U){var Y=U.date,J=U.utc;if(Y===null)return new Date(NaN);if(k.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var X=Y.match(g);if(X){var te=X[2]-1||0,ae=(X[7]||"0").substring(0,3);return J?new Date(Date.UTC(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)):new Date(X[1],te,X[3]||1,X[4]||0,X[5]||0,X[6]||0,ae)}}return new Date(Y)}(R),this.$x=R.x||{},this.init()},I.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},I.$utils=function(){return k},I.isValid=function(){return this.$d.toString()!==h},I.isSame=function(R,U){var Y=E(R);return this.startOf(U)<=Y&&Y<=this.endOf(U)},I.isAfter=function(R,U){return E(R)<this.startOf(U)},I.isBefore=function(R,U){return this.endOf(U)<E(R)},I.$g=function(R,U,Y){return k.u(R)?this[U]:this.set(Y,R)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(R,U){var Y=this,J=!!k.u(U)||U,X=k.p(R),te=function(P,q){var M=k.w(Y.$u?Date.UTC(Y.$y,q,P):new Date(Y.$y,q,P),Y);return J?M:M.endOf(f)},ae=function(P,q){return k.w(Y.toDate()[P].apply(Y.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(q)),Y)},O=this.$W,S=this.$M,A=this.$D,D="set"+(this.$u?"UTC":"");switch(X){case V:return J?te(1,0):te(31,11);case d:return J?te(1,S):te(0,S+1);case c:var y=this.$locale().weekStart||0,K=(O<y?O+7:O)-y;return te(J?A-K:A+(6-K),S);case f:case m:return ae(D+"Hours",0);case u:return ae(D+"Minutes",1);case s:return ae(D+"Seconds",2);case i:return ae(D+"Milliseconds",3);default:return this.clone()}},I.endOf=function(R){return this.startOf(R,!1)},I.$set=function(R,U){var Y,J=k.p(R),X="set"+(this.$u?"UTC":""),te=(Y={},Y[f]=X+"Date",Y[m]=X+"Date",Y[d]=X+"Month",Y[V]=X+"FullYear",Y[u]=X+"Hours",Y[s]=X+"Minutes",Y[i]=X+"Seconds",Y[a]=X+"Milliseconds",Y)[J],ae=J===f?this.$D+(U-this.$W):U;if(J===d||J===V){var O=this.clone().set(m,1);O.$d[te](ae),O.init(),this.$d=O.set(m,Math.min(this.$D,O.daysInMonth())).$d}else te&&this.$d[te](ae);return this.init(),this},I.set=function(R,U){return this.clone().$set(R,U)},I.get=function(R){return this[k.p(R)]()},I.add=function(R,U){var Y,J=this;R=Number(R);var X=k.p(U),te=function(S){var A=E(J);return k.w(A.date(A.date()+Math.round(S*R)),J)};if(X===d)return this.set(d,this.$M+R);if(X===V)return this.set(V,this.$y+R);if(X===f)return te(1);if(X===c)return te(7);var ae=(Y={},Y[s]=n,Y[u]=r,Y[i]=o,Y)[X]||1,O=this.$d.getTime()+R*ae;return k.w(O,this)},I.subtract=function(R,U){return this.add(-1*R,U)},I.format=function(R){var U=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||h;var J=R||"YYYY-MM-DDTHH:mm:ssZ",X=k.z(this),te=this.$H,ae=this.$m,O=this.$M,S=Y.weekdays,A=Y.months,D=function(q,M,G,H){return q&&(q[M]||q(U,J))||G[M].slice(0,H)},y=function(q){return k.s(te%12||12,q,"0")},K=Y.meridiem||function(q,M,G){var H=q<12?"AM":"PM";return G?H.toLowerCase():H},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:O+1,MM:k.s(O+1,2,"0"),MMM:D(Y.monthsShort,O,A,3),MMMM:D(A,O),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:D(Y.weekdaysMin,this.$W,S,2),ddd:D(Y.weekdaysShort,this.$W,S,3),dddd:S[this.$W],H:String(te),HH:k.s(te,2,"0"),h:y(1),hh:y(2),a:K(te,ae,!0),A:K(te,ae,!1),m:String(ae),mm:k.s(ae,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z:X};return J.replace(T,function(q,M){return M||P[q]||X.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(R,U,Y){var J,X=k.p(U),te=E(R),ae=(te.utcOffset()-this.utcOffset())*n,O=this-te,S=k.m(this,te);return S=(J={},J[V]=S/12,J[d]=S,J[v]=S/3,J[c]=(O-ae)/6048e5,J[f]=(O-ae)/864e5,J[u]=O/r,J[s]=O/n,J[i]=O/o,J)[X]||O,Y?S:k.a(S)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return _[this.$L]},I.locale=function(R,U){if(!R)return this.$L;var Y=this.clone(),J=L(R,U,!0);return J&&(Y.$L=J),Y},I.clone=function(){return k.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},$}(),j=x.prototype;return E.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",V],["$D",m]].forEach(function($){j[$[1]]=function(I){return this.$g(I,$[0],$[1])}}),E.extend=function($,I){return $.$i||($(I,x,E),$.$i=!0),E},E.locale=L,E.isDayjs=F,E.unix=function($){return E(1e3*$)},E.en=_[B],E.Ls=_,E.p={},E})})(Ho);var ns=Ho.exports;const Ye=Je(ns);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(g){this[h]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),w=60*T[1]+(+T[2]||0);return w===0?0:T[0]==="+"?-w:w}(h)}],d=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},v=function(h,g){var T,w=s.meridiem;if(w){for(var N=1;N<=24;N+=1)if(h.indexOf(w(N,0,g))>-1){T=N>12;break}}else T=h===(g?"pm":"PM");return T},V={A:[i,function(h){this.afternoon=v(h,!1)}],a:[i,function(h){this.afternoon=v(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[r,f("day")],Do:[i,function(h){var g=s.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,f("month")],MM:[r,f("month")],MMM:[i,function(h){var g=d("months"),T=(d("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[i,function(h){var g=d("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,f("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function m(h){var g,T;g=h,T=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(E,k,x){var j=x&&x.toUpperCase();return k||T[x]||o[x]||T[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,I,R){return I||R.slice(1)})})).match(n),N=w.length,z=0;z<N;z+=1){var B=w[z],_=V[B],F=_&&_[0],L=_&&_[1];w[z]=L?{regex:F,parser:L}:B.replace(/^\[|\]$/g,"")}return function(E){for(var k={},x=0,j=0;x<N;x+=1){var $=w[x];if(typeof $=="string")j+=$.length;else{var I=$.regex,R=$.parser,U=E.slice(j),Y=I.exec(U)[0];R.call(k,Y),E=E.replace(Y,"")}}return function(J){var X=J.afternoon;if(X!==void 0){var te=J.hours;X?te<12&&(J.hours+=12):te===12&&(J.hours=0),delete J.afternoon}}(k),k}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,N=w.parse;w.parse=function(z){var B=z.date,_=z.utc,F=z.args;this.$u=_;var L=F[1];if(typeof L=="string"){var E=F[2]===!0,k=F[3]===!0,x=E||k,j=F[2];k&&(j=F[2]),s=this.$locale(),!E&&j&&(s=T.Ls[j]),this.$d=function(U,Y,J){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*U);var X=m(Y)(U),te=X.year,ae=X.month,O=X.day,S=X.hours,A=X.minutes,D=X.seconds,y=X.milliseconds,K=X.zone,P=new Date,q=O||(te||ae?1:P.getDate()),M=te||P.getFullYear(),G=0;te&&!ae||(G=ae>0?ae-1:P.getMonth());var H=S||0,Q=A||0,ne=D||0,C=y||0;return K?new Date(Date.UTC(M,G,q,H,Q,ne,C+60*K.offset*1e3)):J?new Date(Date.UTC(M,G,q,H,Q,ne,C)):new Date(M,G,q,H,Q,ne,C)}catch{return new Date("")}}(B,L,_),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),x&&B!=this.format(L)&&(this.$d=new Date("")),s={}}else if(L instanceof Array)for(var $=L.length,I=1;I<=$;I+=1){F[1]=L[I-1];var R=T.apply(this,F);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}I===$&&(this.$d=new Date(""))}else N.call(this,z)}}})})(Ko);var ls=Ko.exports;const os=Je(ls);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return v}});return i.bind(this)(d)}}})})(Wo);var rs=Wo.exports;const as=Je(rs);var Yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n,r){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,V,m,h){var g=d.name?d:d.$locale(),T=i(g[v]),w=i(g[V]),N=T||w.map(function(B){return B.slice(0,m)});if(!h)return N;var z=g.weekStart;return N.map(function(B,_){return N[(_+(z||0))%7]})},u=function(){return r.Ls[r.locale()]},f=function(d,v){return d.formats[v]||function(V){return V.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(d.formats[v.toUpperCase()])},c=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return f(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(v){return f(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(d){return s(u(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Yo);var is=Yo.exports;const ss=Je(is);var Uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){var o="week",n="year";return function(r,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var v=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),V=this.diff(v,o,!0);return V<0?i(this).startOf("week").week():Math.ceil(V)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Uo);var us=Uo.exports;const cs=Je(us);var Go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Go);var fs=Go.exports;const ds=Je(fs);var Xo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Xo);var hs=Xo.exports;const gs=Je(hs);var Zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Zo);var ms=Zo.exports;const ps=Je(ms);var Jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ze,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Jo);var ys=Jo.exports;const bs=Je(ys);Ye.extend(ss),Ye.extend(as),Ye.extend(os),Ye.extend(cs),Ye.extend(ds),Ye.extend(gs),Ye.extend(ps),Ye.extend(bs);const qe={format(e,t){return Ye(e).format(t)},parser(e,t){return Ye(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let s=r.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=qe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=qe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Qo={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"}},er={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 vs(e,t,o){return{props:{...xe,...Oe,...Qo,...er},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=l.computed(()=>R.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),V=l.computed(()=>R.value?"longTermKey":"normalKey"),m=q=>{if(R.value&&n.type==="daterange"){const M=[...d.value];M[0]=q,d.value=M}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},h=l.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=ge(n,"hintText"),N=l.ref(!1);const z=q=>{let G=q.target.value;c.value=!0,pe(w.value)||(N.value=!0),s("focus",G,q)},B=q=>{setTimeout(()=>{N.value&&(N.value=!1),c.value=!1},0);let G=q.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,q)},_=()=>{s("clear","")},F=q=>{s("calendar-change",q)},L=(q,M,G)=>{s("panel-change",q,M,G)},E=q=>{s("visible-change",q)},k=Ve(l.computed(()=>n.longTermText),"longTermText",_e.Near),x=Ve(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",_e.Near),j=Ve(l.computed(()=>n.longTermValue),"longTermValue",_e.Near),$=Ve(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",_e.Near);let I=null;const R=l.ref(ue(n.longTerm)),U=q=>{if(R.value=q,s("update:longTerm",q),q){if(I=d.value,n.type==="daterange"){const M=[];Array.isArray(j.value)?(M[0]=d.value?d.value[0]??j.value[0]:null,M[1]=j.value[1]??j.value[0]):(M[0]=d.value?d.value[0]??j.value:null,M[1]=R.value),M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=n.valueFormat?qe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(I)?M[1]=I[1]:M[1]=I,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=I;s("update:modelValue",d.value),setTimeout(()=>{K()},100)}},Y=ue(n.isLongTerm);if(Y){const q=()=>{if(R.value===!0){if(I=d.value,n.type==="daterange"){const M=[d.value[0]];Array.isArray(j.value)?M[1]=j.value[1]??j.value[0]:M[1]=R.value,M[0]||(M[0]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?qe.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=j.value;s("update:modelValue",d.value)}else Xe(j.value,d.value)&&(R.value=!0)};q(),l.watch([()=>n.longTerm],([M])=>{R.value!==M&&q()}),l.watch([()=>d.value],([M])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(M))try{let H=M[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=qe.format(H,n.valueFormat));let Q=Array.isArray(j.value)?j.value[1]:j.value;(H===Q||Array.isArray($.value)&&$.value.findIndex(C=>H==C)!==-1)&&(G=!0)}catch(H){console.error(H)}R.value!==G&&(R.value=G)},{immediate:!0})}const J=l.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),X=l.ref(),te=l.ref(),ae=/^\d+$/,O=(q,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(q,M):ae.test(q)&&q.length===n.flashFillThreshold,S=(q,M)=>{let G;if(typeof n.flashFillFormat=="function")G=n.flashFillFormat(q,M);else{const Q=n.flashFillFormat??"YYYYMMDD";G=qe.parser(q,Q)}const H=n.valueFormat??"YYYY-MM-DD";return qe.format(G,H)},A=q=>q?q.endsWith("range"):!1,D=q=>{if(!q.target)return;const M=q.target.value??"";if(O(M,n.type)){const G=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[0]=G,m(H)}else m(G)}},y=q=>{if(!q.target)return;const M=q.target.value??"";if(O(M,n.type)){const G=S(M,n.type);if(A(n.type)){const H=Array.isArray(d.value)?[...d.value]:[];H[1]=G,m(H)}else m(G)}},K=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].addEventListener("input",D),q[1]&&q[1].addEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.addEventListener("input",D)}},P=()=>{if(n.flashFill&&X.value&&X.value.$el)if(A(n.type)){const q=X.value.$el.querySelectorAll("input.el-range-input");q[0]&&q[0].removeEventListener("input",D),q[1]&&q[1].removeEventListener("input",y)}else{const q=X.value.$el.querySelector("input.el-input__inner");q&&q.removeEventListener("input",D)}};return l.onMounted(K),l.onBeforeUnmount(P),$e({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},handleOpen:()=>{te?.value.handleOpen()},handleClose:()=>{te?.value.handleClose()}}),()=>{const M={...r.attrs,key:V.value,type:h.value,ref:te,class:T.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:_,onFocus:z,onBlur:B,onCalendarChange:F,onPanelChange:L,onVisibleChange:E},G={};r.slots["range-separator"]&&(G["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(G.default=r.slots.cell);const H=[],Q=l.h(b.ElDatePicker,M,G);H.push(Q);const ne={default:()=>H};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),Y){if(R.value){const oe=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),de=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),fe={class:J.value},ye=l.h("div",fe,{default:()=>[oe,de]});H.push(ye)}if(!i.value&&!a.value){const oe={label:x.value||k.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":U},de=l.h(b.ElCheckbox,oe),fe=l.h("div",{class:{[`${g}__append`]:!0}},[de]);ne.append=()=>fe}}const W={...ke(n,Qo,er),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:w.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,W,ne)}}}}const{componentName:ws,create:Ss,scope:xs}=se("date-item"),el=Ss(vs(ws,xs,Te)),tr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ts(e,t,o){return{props:{...xe,...Oe,...tr},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),m=_=>{d.value=_,s("update:modelValue",_),s("change",_)};let h=ge(n,"hintText"),g=l.ref(!1);const T=_=>{let L=_.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",L,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,_)},N=()=>{s("clear","")},z=_=>{s("visible-change",_)},B=l.ref();return $e({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const F={...r.attrs,ref:B,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:N,onFocus:T,onBlur:w,onVisibleChange:z},L={},E=[],k=l.h(b.ElTimePicker,F,L);E.push(k);const x={default:()=>E};r.slots.default&&(x.label=r.slots.default),r.slots.fixedTip&&(x.fixedTip=r.slots.fixedTip);const $={...ke(n,tr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,$,x)}}}}const{componentName:Cs,create:$s,scope:Ns}=se("time-item"),tl=$s(Ts(Cs,Ns,Te)),nr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Es(e,t,o){return{props:{...xe,...Oe,...nr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),m=B=>{d.value=B,s("update:modelValue",B),s("change",B)};let h=ge(n,"hintText"),g=l.ref(!1);const T=B=>{let F=B.target.value;c.value=!0,pe(h.value)||(g.value=!0),s("focus",F,B)},w=B=>{setTimeout(()=>{g.value&&(g.value=!1),c.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,B)},N=()=>{s("clear","")},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},handleOpen:()=>{z?.value.handleOpen()},handleClose:()=>{z?.value.handleClose()}}),()=>{const _={...r.attrs,ref:z,class:V.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:N,onFocus:T,onBlur:w},F={},L=[],E=l.h(b.ElTimeSelect,_,F);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,nr),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:ks,create:Is,scope:Os}=se("time-select-item"),nl=Is(Es(ks,Os,Te));function lr(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function or(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=eo(`${e}`,`${t}`);return lr(n)}else{let n=$n(`${e}`,to(`${t}`),20);return lr(n)}}function Vs(e,t=-1,o=!1,n=3,r=","){return jt(e,t,o,n,r)}function rr(e,t,o,n,r=!0){if(e==="")return"";if(e=no(e),t=Se(t),t==1)return e;if(n)e=or(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(Se(o)+2,"0"):e=$n(e,1,Se(o)));else{let a=-1*t;e=or(e,a)}return e}function ar(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=ue(t.minInclude),r=Nn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=ue(t.maxInclude),r=Nn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const ir={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 Fs(e,t,o){return{props:{...xe,...Oe,...ir},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),f=ge(n,"modelValue",null,s),c=l.ref("");l.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,I,R])=>{if(pe($)){c.value="";return}const U=rr($,I,R,!1);c.value!==U&&(c.value=U)},{immediate:!0});const d=l.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:v}=Be.useFoxI18n(t),V=l.computed(()=>{let $=n.placeholder??"";return!u.value&&!pe(c.value)?$=Vs(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=v(["placeholder",$]),$}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:c.value.length>0})),g=Ve(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),w=l.computed(()=>{let $=T.value;return pe($)&&($=n.errorTip??""),$}),N=l.ref(""),z=l.ref(!1),B=($,I)=>{if($=`${$}`,pe($)){c.value="",f.value="",I.forEach(R=>{s(R,"")}),ue(n.showTip)&&z.value&&(z.value=!1);return}if($.length>=2){let R=$;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){l.triggerRef(c);return}}if($!="-"){if(!co($)){l.triggerRef(c);return}if(n.integerLength!=-1&&fo($)>Number(n.integerLength)){l.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&ho($)>Number(n.decimalLength)){l.triggerRef(c);return}let R=ar($,n);if(R.maxValid===!1){T.value=R.message,l.triggerRef(c);return}}else if(n.min!=null&&Se(n.min)>=0){l.triggerRef(c);return}N.value=$,ue(n.showTip)&&(z.value=$.length>0),c.value=$,f.value=rr($,n.rates,n.precision,!0),I.forEach(R=>{s(R,f.value)})},_=$=>{B($,["update:modelValue","input"])},F=$=>{B($,["update:modelValue","change"])},L=$=>{if(u.value=!0,ue(n.showTip)){let I=c.value;pe(I)&&(I=n.hintText),pe(I)||(N.value=I,z.value=!0)}T.value="",s("focus",f.value,$)},E=$=>{if(setTimeout(()=>{u.value=!1,ue(n.showTip)&&z.value===!0&&(z.value=!1)},0),!pe(c.value)){let I=ar(c.value,n);if(I.minValid===!1||I.maxValid===!1){T.value=I.message;return}}s("update:modelValue",f.value,$),s("blur",f.value,$)},k=()=>{s("clear","")},x=l.computed(()=>$t(n.unit)>0),j=l.ref();return $e({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const I={...We(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:V.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:_,onChange:F,onFocus:L,onBlur:E},R={};r.slots.prepend&&(R.prepend=r.slots.prepend),r.slots.append&&(R.append=r.slots.append),r.slots.prefix&&(R.prefix=r.slots.prefix),r.slots.suffix?R.suffix=r.slots.suffix:x.value&&(R.suffix=()=>[n.unit]);const U=[],Y=l.h(b.ElInput,I,R);U.push(Y);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const te={...ke(n,ir),errorTip:w.value,hintText:N.value,hintVisible:z.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,te,J)}}}}const{componentName:Ds,create:Rs,scope:As}=se("money-item"),ll=Rs(Fs(Ds,As,Te)),sr={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 Ms(e,t,o){return{props:{...xe,...Oe,...sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0,[`${v}__append`]:_.value})),m=l.computed(()=>({[`${v}__unit`]:!0})),h=L=>{d.value=L,s("update:modelValue",L),s("input",L)},g=L=>{s("change",L)};let T=ge(n,"hintText"),w=l.ref(!1);const N=L=>{let k=L.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",k,L)},z=L=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let k=L.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,L)},B=()=>{s("clear","")},_=l.computed(()=>$t(n.unit)>0),F=l.ref();return $e({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const E={...We(r.attrs),ref:F,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:g,onInput:h,onFocus:N,onBlur:z},k={},x=[],j=l.h(b.ElInputNumber,E,k);x.push(j);const $={default:()=>x};r.slots.default&&($.label=r.slots.default),r.slots.fixedTip&&($.fixedTip=r.slots.fixedTip);const R={...ke(n,sr),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)$.append=r.slots.append;else if(_.value){const Y={class:m.value},J=l.h("div",Y,[n.unit]);$.append=()=>J}return l.h(o,R,$)}}}}const{componentName:Ls,create:Bs,scope:_s}=se("input-number-item"),ol=Bs(Ms(Ls,_s,Te));function Qe(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 qs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Ps=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=ze(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function js(){const e=l.getCurrentInstance();return new Ps(e.proxy)}function rl(e,t,o){const n=Qe(e,t),r=Qe(e,o);if(n!==r)return!1;const a=ft(e,t),i=ft(e,o);return a===i}function ur(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=ur(e,s,o,n);r.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Qe(e,f)===s;else if(o==="item")u=rl(e,f,s);else{let c=ft(e,f);c==null&&(c=Qe(e,f)),u=c===s}if(u){r.push(f),a=qs(e,f);break}}if(!u)break}}return r}function zs(e){return{text:e,value:e}}const cr={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 Hs(e,t,o){return{props:{...xe,...Oe,...cr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(null),d=l.ref([]),v=l.computed(()=>d.value?d.value.map(q=>Array.isArray(q)?q.map(G=>Qe(n,G)).join(" "):Qe(n,q)).join(" "):""),V=(P,q,M,G=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===P)return;c.value=P;const C=l.toRaw(P);if(G){const W=K?.value.getCheckedNodes();if(W)if(n.multiple){const ee=[];W.forEach(oe=>{const fe=(oe.pathNodes??[]).map(ye=>ye.data);ee.push(fe)}),s("update:pathNodes",ee)}else{const oe=(W[0]?.pathNodes??[]).map(de=>de.data);s("update:pathNodes",oe)}s("update:modelValue",C),s("change",C)}return}const H=ur(n,P,q,M);if(H===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,G&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=H[H.length-1];if(k.value.checkStrictly!==!0&&Q&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const C=[];H.forEach(W=>{const ee=`${Qe(n,W)}`;C.push(ee)}),C.length>0&&(L.value=C.join(n.separator))}else L.value=null;let ne=!0;if(H.length!==d.value.length)ne=!1;else for(let C=0;C<H.length;C++){const W=H[C],ee=d.value[C];if(Array.isArray(W)){if(!Array.isArray(ee)||W.length!==ee.length)ne=!1;else for(let oe=0;oe<W.length;oe++)if(!rl(n,W[oe],ee[oe])){ne=!1;break}}else rl(n,W,ee)||(ne=!1);if(!ne)break}if(!ne){d.value=H;let C=[],W=[];H.forEach(oe=>{if(Array.isArray(oe)){let de=[],fe=[];for(let ye of oe)de.push(ft(n,ye)),n.valueType==="text"?fe.push(Qe(n,ye)):n.valueType==="item"?fe.push(ye):fe.push(ft(n,ye));C.push(de),W.push(fe)}else C.push(ft(n,oe)),n.valueType==="text"?W.push(Qe(n,oe)):n.valueType==="item"?W.push(oe):W.push(ft(n,oe))}),c.value=C;const ee=l.toRaw(W);G&&(s("update:pathNodes",H),s("update:modelValue",ee),s("change",ee))}},m=l.ref([]),h=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,P=>ue(P)),g=js(),T=async(P,q)=>{if(P){const M=await g.load("cascader",P,q);if(M.length>0)if(typeof M[0]=="string"){let Q=M.map(ne=>zs(ne));m.value=Q}else m.value=M}};l.watch([()=>n.source,()=>n.params],async([P,q])=>{T(P,q)},{immediate:!(h.value||n.lazy)});let w=!1;const N=()=>{w||(w=!0,T(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([P,q])=>{V(q,n.valueType,P,!1),s("setValue",q)}),n.lazy&&V(n.modelValue,"value",[],!1);let z=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(z=async P=>{if(P!=null){B.value=!0;try{const q=await n.remoteMethod(P);m.value=q}catch(q){console.error(q)}B.value=!1}});const _=l.ref(!1),F=e,L=l.ref(null),E=l.computed(()=>({[F]:!0,"is-incomplete":L.value&&L.value.length>0})),k=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(q,M)=>{const G=await g.load("cascader",n.source,q,!0);if(q?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===q.level){const H=q.pathLabels??[];let Q=[];H.forEach(ne=>{ne&&Q.push(ne)}),Q.length>0&&(L.value=Q.join(n.separator))}else L.value=null;M(G)}),P}),x=P=>{n.allowCreate?(s("update:modelValue",P),s("change",P),c.value=P):V(P,"value",m.value,!0)};let j=ge(n,"hintText"),$=l.ref(!1);const I=P=>{let M=P.target.value;_.value=!0,pe(j.value)||($.value=!0),s("focus",M,P)},R=P=>{setTimeout(()=>{$.value&&($.value=!1),_.value=!1},0);let M=P.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),S.value||s("blur",M,P)},U=()=>{s("clear","")},Y=l.ref(!1);let J=null;const X=()=>{n.showTooltip&&Y.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{Y.value=!0},150))},te=()=>{J&&(clearTimeout(J),Y.value=!1,J=null)},ae=l.computed(()=>Y.value||$.value),O=l.computed(()=>Y.value?v.value:j.value),S=l.ref(!1),A=P=>{S.value=P,s("visible-change",P),P||s("selected")},D=P=>{s("remove-tag",P)},y=P=>{s("expand-change",P)},K=l.ref();return $e({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const q={...r.attrs,ref:K,class:E.value,props:k.value,clearable:n.clearable,placeholder:L.value||f.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:c.value,separator:n.separator,onClear:U,onChange:x,onFocus:I,onBlur:R,onVisibleChange:A,onRemoveTag:D,expandChange:y};typeof z=="function"&&(q["remote-method"]=z,q.loading=B.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const G=[],H=l.h(b.ElCascader,q,M);G.push(H);const Q={default:()=>G};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const C={...ke(n,cr),hintText:O.value,hintVisible:ae.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:X,onMouseleave:te};return h.value&&!n.lazy&&(C["appear-listen"]=!0,C.onAppear=N),l.h(o,C,Q)}}}}const{componentName:Ks,create:Ws,scope:Ys}=se("cascader-item"),al=Ws(Hs(Ks,Ys,Te)),fr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Us(e,t,o){return{props:{...xe,...Oe,...fr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Be.useFoxI18n(t),f=u(n,["placeholder"]),c=l.ref(!1),d=ge(n,"modelValue",null,s),v=e,V=l.computed(()=>({[v]:!0})),m=F=>{d.value=F,s("update:modelValue",F),s("input",F)},h=F=>{s("change",F)},g=F=>{s("select",F)};let T=ge(n,"hintText"),w=l.ref(!1);const N=F=>{let E=F.target.value;c.value=!0,pe(T.value)||(w.value=!0),s("focus",E,F)},z=F=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let E=F.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,F)},B=()=>{s("clear","")},_=l.ref();return $e({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const L={...r.attrs,ref:_,class:V.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:B,onChange:h,onInput:m,onFocus:N,onBlur:z,onSelect:g},E={};r.slots.prepend&&(E.prepend=r.slots.prepend),r.slots.append&&(E.append=r.slots.append),r.slots.prefix&&(E.prefix=r.slots.prefix),r.slots.suffix&&(E.suffix=r.slots.suffix),r.slots.option&&(E.default=r.slots.option);const k=[],x=l.h(b.ElAutocomplete,L,E);k.push(x);const j={default:()=>k};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,fr),hintText:T.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,I,j)}}}}const{componentName:Gs,create:Xs,scope:Zs}=se("autocomplete-item"),il=Xs(Us(Gs,Zs,Te));function Js(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[r]){let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(v=>v[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o]),u=d[r]}}return i}let Qs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function eu(){const e=l.getCurrentInstance();return new Qs(e.proxy)}const dr={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 tu(e,t){return{props:{...dr},setup(o,{attrs:n,slots:r}){const a=eu(),i=l.ref([]);l.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=l.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Js(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return r.default?r.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):l.h(u,f,{default:()=>s.value}):l.h(u,f,s.value)}}}}const{componentName:Ah,create:nu,scope:Mh}=se("mapping"),Rt=nu(tu());function lu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function ou(e,t){return{props:{...dr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=lu(i.row,i.column.property);return r.default?l.h(Rt,{...o,modelValue:s},{default:r.default}):l.h(Rt,{...o,modelValue:s})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return l.h(b.ElTableColumn,{...n},a)}}}}const{componentName:Lh,create:ru,scope:Bh}=se("table-mapping-column"),sl=ru(ou()),au=Symbol.for("TableStateKey");function hr(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function iu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(au,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=hr(s.row,s.column.property),f=a?hr(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},v=l.h("span",d,[l.h("span",{class:{"el-radio__inner":!0}})]),V={class:{"el-radio":!0,"is-checked":c}};return l.h("label",V,[v])}};return l.h(b.ElTableColumn,{...n},i)}}}}const{componentName:_h,create:su,scope:qh}=se("table-radio-column"),ul=su(iu()),uu={},cu={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"},fu=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function du(e,t){return l.openBlock(),l.createElementBlock("svg",cu,fu)}const hu=Pe(uu,[["render",du]]),{componentName:jh,create:gu,scope:zh}=se("table-setting"),mu={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:"不固定"}},pu=gu({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:hu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...mu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed===""||y.fixed===!0||y.fixed==="left")),i=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed==="right")),s=l.computed(()=>r.value.filter(y=>!(y.label===""||y.type||y.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),f=l.computed(()=>a.value.length>0),c=l.computed(()=>i.value.length>0),d=y=>y.length>1,v=(y,K)=>{Array.isArray(y)&&Array.isArray(K)&&y.forEach(M=>{K.some(G=>G.prop===M.prop?(M.label=G.label,!0):!1)});const P=[];r.value=y.map((M,G)=>(!(M.label===""||M.type)&&M.visible!==!1&&P.push(M.prop),{...M,sortIndex:G})),s.value.length+a.value.length+i.value.length===P.length?w.value=!0:P.length>0&&(N.value=!0),_.value=P},V=y=>y?y.type?y.type:y.label?y.prop:"":"",m=(y,K)=>{if(y.length!==K.length)return!1;const P=y.map(q=>V(q));for(let q of K){const M=V(q);if(P.indexOf(M)===-1)return!1}return!0},h=y=>{if(!y){const K=e.tableRef.getColumnSetting(),P=K.srcColumnPropertyList;n=P.map((q,M)=>({...q,sortIndex:M})),y=K.columnPropertyList,y&&y.length>0&&m(P,y)||(y=P)}v(y,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),N=l.ref(!1),z=y=>{const K=[];r.value.forEach(q=>{y&&!(q.label===""||q.type)&&K.push(q.prop),q.visible=y}),w.value=!1,N.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(N.value=!0),_.value=K,g()},B=()=>{h(n),g()},_=l.ref([]),F=y=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const q=y.indexOf(P.prop)!==-1;P.visible=q}),w.value=!1,N.value=!1;const K=s.value.length+a.value.length+i.value.length;y.length===K?w.value=!0:y.length>0&&(N.value=!0),g()},L=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const E={currentRow:null,index:null,roleType:null},k=y=>y?y.dataset&&y.dataset.role==="row"?y:y.tagName.toLowerCase()!=="body"?(y=y.parentElement,k(y)):null:null,x=y=>{const K=y.currentTarget;K&&K.dataset&&(E.roleType=K.dataset.roleType,E.index=K.dataset.index)},j=y=>{E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null),E.index=null,E.roleType=null},$=y=>{const K=y.currentTarget;y.relatedTarget;const P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;E.roleType===q&&(y.preventDefault(),E.currentRow&&E.currentRow!==P&&E.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),E.currentRow=P)},I=y=>{y.preventDefault(),E.currentRow&&(E.currentRow.classList.remove("is-dragover"),E.currentRow=null)},R=y=>{const K=y.currentTarget,P=k(K);if(!P)return;const q=P.dataset&&P.dataset.roleType;if(E.roleType!==q)return;y.preventDefault();const M=Number(E.index),G=Number(P.dataset.index);if(M!==G){if(M<G){const H=r.value[M];r.value.splice(M,1),r.value.splice(G,0,H)}else{const H=r.value[M];r.value.splice(M,1),r.value.splice(G+1,0,H)}v(r.value,n),g()}},U=y=>{const K=r.value[y];K.fixed="left",g()},Y=y=>{const K=r.value[y];K.fixed="right",g()},J=y=>{const K=r.value[y];K.fixed=void 0,g()},X=new Map;let te=null;function ae(y){const K=document.createRange();return K.setStart(y,0),K.setEnd(y,y.childNodes.length),K.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:w,isIndeterminate:N,handleCheckAllChange:z,handleReset:B,checkedValue:_,handleCheckChange:F,onShow:L,onDragStart:x,onDragEnd:j,onDragOver:$,onDragLeave:I,onDrop:R,toLeftFixed:U,toRightFixed:Y,toUnFixed:J,checkboxLabelStyle:T,onMouseOverForOverflowText:(y,K,P)=>{const q=y.currentTarget;if(q){const M=Math.floor(q.offsetWidth);if(Math.floor(ae(q))>M){let H=X.get(K);if(H){if(H===te)return;Re.hide(H)}H=Re.show(q,P,{type:"text",placement:"top",closeOnClick:!1}),X.set(K,H),te=H}}},onMouseLeaveForOverflowText:(y,K)=>{const P=X.get(K);P&&(Re.hide(P),P===te&&(te=null))},onMouseOverForTip:(y,K)=>{const P=y.currentTarget;P&&(te&&Re.hide(te),te=Re.show(P,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:y=>{te&&(Re.hide(te),te=null)}}}}),yu={class:"fox-table-setting"},bu={class:"fox-table-setting__header"},vu={class:"fox-table-setting__body"},wu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Su={key:0,class:"fox-table-setting__body-title"},xu=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],Cu={class:"tools-item"},$u={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Nu={key:0,class:"fox-table-setting__body-title"},Eu=["data-index","draggable"],ku=["onMouseover","onMouseleave"],Iu={class:"tools-item"},Ou={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Vu={key:0,class:"fox-table-setting__body-title"},Fu=["data-index","draggable"],Du=["onMouseover","onMouseleave"],Ru={class:"tools-item"};function Au(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("RefreshLeft"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("Download"),v=l.resolveComponent("fox-checkbox"),V=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",yu,[l.createElementVNode("div",bu,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",vu,[l.createVNode(V,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",wu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",Su,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Tu)]),_:2},1032,["label"]),l.createElementVNode("div",Cu,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,xu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",$u,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",Nu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,ku)]),_:2},1032,["label"]),l.createElementVNode("div",Iu,[l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Eu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Ou,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Vu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(v,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Du)]),_:2},1032,["label"]),l.createElementVNode("div",Ru,[l.createVNode(c,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Fu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const dn=Pe(pu,[["render",Au]]);let Mu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,i,s){if(Array.isArray(o)){let f=(n-1)*r,c=f+r;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,i,s]);const u=ze(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,i,s]))}};function Lu(){const e=l.getCurrentInstance();return new Mu(e.proxy)}class Bu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=ze(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=ze(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=ze(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function gr(){const e=l.getCurrentInstance();return new Bu(e.proxy)}const _u=Symbol.for("TableStateKey"),mr={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"}},pr={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}},cl={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:()=>"不固定"}},qu={infiniteLoad:{type:Boolean,default:()=>!1},loadText:{type:String,default:()=>"加载中..."},loadMoreText:{type:String,default:()=>"无更多数据"}};function Pu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function fl(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Pu(n,r);if(a!==i)return!1}return!0})}function ju(e,t,o){return{inheritAttrs:!1,props:{...xe,...Oe,...mr,...pr,...cl,...qu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Be.useFoxI18n(t),{emitEvent:i,broadcast:s}=Ce({componentName:e,validateHandler:{getValue(...Z){return F.value}}},n.prop??r.attrs.name),u=e,f=l.computed(()=>({[u]:!0})),c=l.computed(()=>({[`${u}__setting`]:!0})),d=l.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${n.footerAlign}`]:!0})),v=l.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${n.paginationAlign}`]:!0})),V=l.shallowRef({}),m=l.computed(()=>({...V.value,...n.params??{},...n.baseParams??{}})),h=l.ref(n.infiniteLoad===!0?0:n.pageIndex),g=l.ref(n.pageSize),T=ue(n.infiniteLoad);T||(l.watch(()=>n.pageIndex,Z=>{h.value=Z}),l.watch(()=>n.pageSize,Z=>{g.value=Z}),l.watch([h,g],([Z,le],[re,ie])=>{le!==ie&&(h.value=1,Z=1),x(n.data,Z,le,m.value)}));const w=()=>Array.isArray(n.data)?!0:ue(n.autoLoad);w()&&l.watch([()=>n.data,m],async([Z,le],[re,ie])=>{w()&&(Z!==re&&(E=!0),!(!Array.isArray(Z)&&Xe(Z,re)&&Xe(le,ie))&&(T?(h.value=0,B.value=!0,F.value=[],$()):h.value===1?x(Z,h.value,g.value,le):h.value=1))},{deep:!0});const N=Z=>{h.value=Z,i("page-index-change",Z)},z=Z=>{g.value=Z,i("page-size-change",Z)},B=l.ref(!0),_=l.ref(0),F=l.ref(),L=Lu();let E=!0;const k=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,Z=>ue(Z)),x=async(Z,le,re,ie,Me)=>{E=!1;try{if(Me===!0){if(!B.value)return!1;const me=await L.load("table",Z,le,re,ie,E,a.value);return _.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,F.value,me.page),setTimeout(()=>{i("loaded-data")},250),(F.value?.length??0)>=_.value)||me.page.length<re?(B.value=!1,!1):!0}else{const me=await L.load("table",Z,le,re,ie,E,a.value);return _.value=me.totalSize,F.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),_.value=0,F.value=[]}return!1};let j=!1;const $=async()=>{if(!j){if(j=!0,!B.value){j=!1;return}h.value+=1,await x(n.data,h.value,g.value,m.value,!0),j=!1}},I=(Z={},le=!1)=>new Promise(async re=>{V.value={...l.toRaw(Z??{})},le||(h.value=n.pageIndex??1),T===!0?(h.value=0,F.value=[],B.value=!0,await $()):await x(n.data,h.value,g.value,m.value),re()}),R=()=>{_.value=0,F.value=[],T===!0&&(h.value=0,B.value=!0)};let U=!1;const Y=()=>{U||(U=!0,I())},J=l.ref(null);if(T===!0){let Z=null;const le=()=>{J.value&&(Z=new IntersectionObserver(ie=>{let Me=!1;for(let me of ie)if(me.intersectionRatio>0){Me=!0;break}Me&&$()}),Z.observe(J.value))},re=()=>{!Z||!J.value||(Z.unobserve(J.value),Z=null)};l.onMounted(le),l.onBeforeUnmount(re)}w()&&!k.value&&I();const X=l.ref(null);l.provide(_u,{currentRow:X});const te=(Z,le)=>{X.value=Z,i("current-change",Z,le)},ae=(Z,le,re)=>{i("row-click",Z,le,re),ue(n.rowClickSelectable)===!0&&we?.value.toggleRowSelection(Z)},O=[],S=(Z,le)=>{if(i("expand-change",Z,le),ue(n.uniqueExpansion))if(Array.isArray(le)&&le.length==0){const re=O.length;O.splice(0,re)}else{O.forEach(ie=>{ie!==Z&&we?.value.toggleRowExpansion(ie,!1)});const re=O.length;O.splice(0,re,Z)}},A=r.attrs.id??n.prop??r.attrs.name,D=gr(),y=l.ref([]);let K=[];const P=()=>({srcColumnPropertyList:K.map(le=>({...le})),columnPropertyList:y.value}),q=Z=>{y.value=[...Z],G()},M=async()=>{const Z=await D.load(A);Z&&(y.value=Z)},G=()=>{D.save(A,y.value)},H=()=>{D.remove(A)};M();const Q=Z=>Z?Z.type?Z.type:Z.label?Z.prop:"":"",ne=()=>typeof r.slots.default=="function"?r.slots.default():[],C=(Z,le)=>{for(let re in le){const ie=le[re];typeof ie!="function"&&(Z[re]=ie)}},W=l.computed(()=>{const Z=ne(),le=new Map;if(K=[],Z.forEach(re=>{const ie=re;if(!ie.props)return;const Me=Q(ie.props);le.set(Me,re);const me={label:"",prop:""};C(me,ie.props),K.push(me)}),y.value.length===K.length){const re=[];for(let ie of y.value){const Me=Q(ie),me=le.get(Me);if(!me)return Z;if(ie.visible===!1)continue;const et=me;et.props.fixed=ie.fixed,re.push(et)}return re}return Z}),ee=l.shallowRef(new Map),oe=({row:Z,column:le,rowIndex:re,columnIndex:ie})=>{const Me=`${re}_${le.property}`,me=`${re}_${ie}`;let et=ee.value.get(Me);return et||(et=ee.value.get(me)),typeof et=="string"?et:""},de=Z=>Z?le=>{const re=[];let ie=oe(le);return ie&&re.push(ie),ie=typeof Z=="function"?Z(le):Z,ie&&re.push(ie),re.length===0?"":re.join(" ")}:oe,fe=(Z=!1)=>{ee.value.forEach((le,re)=>{ye(re,le,Z)})},ye=(Z,le,re=!1)=>{const ie=`${Z}_item`;re?(s.clearPersistantMessage(),Array.isArray(le)?s.emitToChildren({name:Z},"setCellClassNames",[]):s.emitToChildren({name:ie},"setCustomClassName","")):Array.isArray(le)?s.emitToChildren({name:Z,cachePolicy:"Persistant",uniqueId:ie},"setCellClassNames",le):s.emitToChildren({name:ie,cachePolicy:"Persistant",uniqueId:ie},"setCustomClassName",le)},Ue=(Z,le,re)=>{const ie=`${Z}_${le}`;re?(ee.value.set(ie,re),ye(ie,re)):(ee.value.delete(ie),ye(ie,"",!0)),l.triggerRef(ee)},rt=Z=>{fe(!0),ee.value.clear(),Z.forEach(le=>{const re=`${le.rowIndex}_${le.column}`;Array.isArray(le.children)?ee.value.set(re,le.children):typeof le.cellClassName=="string"&&ee.value.set(re,le.cellClassName)}),fe(),l.triggerRef(ee)},xt=()=>{fe(),ee.value.clear(),l.triggerRef(ee)},at=l.shallowRef(new Map),Qr=({rowIndex:Z})=>{const le=`${Z}`;return at.value.get(le)??""},$h=Z=>Z?le=>{const re=[];let ie=Qr(le);return ie&&re.push(ie),ie=typeof Z=="function"?Z(le):Z,ie&&re.push(ie),re.length===0?"":re.join(" ")}:Qr,Nh=(Z,le)=>{const re=`${Z}`;le?at.value.set(re,le):at.value.delete(re),l.triggerRef(at)},Eh=()=>{at.value.clear(),l.triggerRef(at)},we=l.ref();return $e({clearSelection:()=>we?.value.clearSelection(),getSelectionRows:()=>we?.value.getSelectionRows(),toggleRowSelection:(Z,le)=>{we?.value.toggleRowSelection(Z,le)},toggleRowSelectionByProp:(Z,le)=>{if(!F.value)return;const re=fl(F.value,Z);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowSelection(ie,le)})},toggleAllSelection:()=>{we?.value.toggleAllSelection()},toggleRowExpansion:(Z,le)=>{we?.value.toggleRowExpansion(Z,le)},toggleRowExpansionByProp:(Z,le)=>{if(!F.value)return;const re=fl(F.value,Z);re.length!==0&&re.forEach(ie=>{we?.value.toggleRowExpansion(ie,le)})},setCurrentRow:Z=>{we?.value.setCurrentRow(Z)},setCurrentRowByProp:Z=>{if(!F.value)return;const le=fl(F.value,Z);le.length!==0&&we?.value.setCurrentRow(le[0])},getCurrentRow:()=>X.value,clearSort:()=>{we?.value.clearSort()},clearFilter:Z=>{we?.value.clearFilter(Z)},doLayout:()=>{we?.value.doLayout()},sort:(Z,le)=>{we?.value.sort(Z,le)},scrollTo:(Z,le)=>{we?.value.scrollTo(Z,le)},setScrollTop:Z=>{we?.value.setScrollTop(Z)},setScrollLeft:Z=>{we?.value.setScrollLeft(Z)},loadData:I,clearData:R,getData(){return F.value},getTotalSize(){return _.value},getPageIndex(){return h.value},getPageSize(){return g.value},getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H,setCellClassName:Ue,setCellClassNames:rt,clearCellClassName:xt,setRowClassName:Nh,clearRowClassName:Eh}),()=>{const le={...We(r.attrs),onCurrentChange:te,onRowClick:ae,onExpandChange:S,data:F.value,ref:we,class:f.value,"cell-class-name":de(n.cellClassName),"row-class-name":$h(n.rowClassName)},re={};if(r.slots.default&&(re.default=()=>W.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),T===!0){const He=[];if(B.value){const _t=l.h(Ne.Loading,{class:`${u}__infinite-icon`});He.push(_t);const Yl=l.h("span",{class:`${u}__infinite-text`},[n.loadText]);He.push(Yl)}else{const _t=l.h("span",{class:`${u}__infinite-text`},[n.loadMoreText]);He.push(_t)}const ht={ref:J,class:`${u}__infinite`},Wl=l.h("div",ht,He);re.append=()=>Wl}const ie=l.h(b.ElTable,le,re),Me=[];if(Me.push(ie),!T){let He=null;if(typeof r.slots.pagination=="function")He=r.slots.pagination();else if(n.showPagination){const ht={class:v.value,total:_.value,pageSize:g.value,"onUpdate:pageSize":z,pageSizes:n.pageSizes,currentPage:h.value,"onUpdate:currentPage":N,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};He=l.h(b.ElPagination,ht)}if(n.showSetting){const ht=[];He&&ht.push(He);const Wl=l.h(b.ElIcon,{class:c.value},{default:()=>l.h(Ne.Setting)}),_t=mo(n,cl),Yl=l.h(dn,{..._t,tableRef:{getColumnSetting:P,setColumnSetting:q,removeColumnSetting:H}},{default:()=>Wl});ht.push(Yl);const kh=l.h("div",{class:d.value},ht);Me.push(kh)}else He&&Me.push(He)}const me={default:()=>Me},Bt={...ke(n,mr,pr,cl),prop:`${n.prop}_item`};return Bt.contentClass=`${u}__wrap`,Bt.errorMarkClass="is-table-error",k.value&&w()&&(Bt["appear-listen"]=!0,Bt.onAppear=Y),l.h(o,Bt,me)}}}}const{componentName:zu,create:Hu,scope:Ku}=se("table-item"),dl=Hu(ju(zu,Ku,Te));function bt(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 Wu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Yu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Uu(){const e=l.getCurrentInstance();return new Yu(e.proxy)}function yr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=bt(e,t),r=bt(e,o);if(n!==r)return!1;const a=At(e,t),i=At(e,o);return a===i}function Gu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(o==="text")i=bt(e,a)===t;else if(o==="item")i=yr(e,a,t);else{let s=At(e,a);s==null&&(s=bt(e,a)),i=s===t}if(i){r=a;break}}return r}function Xu(e){return{text:e,value:e}}function Zu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const br={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 Ju(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...br},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),f=l.ref(null),c=(F,L,E,k=!0)=>{const x=Gu(n,F,L,E);if(x===null){if(f.value===null)return;f.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!yr(n,x,f.value)){u.value=F;const $=l.toRaw(x);f.value=$;let I=null;n.valueType==="text"?I=bt(n,$):n.valueType==="item"?I=$:I=At(n,$),k&&(s("update:modelValue",I),s("change",I))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>ue(F)),V=Uu(),m=async(F,L)=>{if(F){const E=await V.load("radio",F,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map($=>Xu($));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,L])=>{m(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,L])=>{c(L,n.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,L)=>{const E=[];return F.forEach((k,x)=>{const j=At(n,k),$=bt(n,k);let I=Wu(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=Zu(n,k,x)??{},U=`${j}_${x}`,Y={...R,key:U,label:j,size:n.size,border:ue(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElRadioButton,Y,{default:()=>[$]})):typeof L=="function"?E.push(l.h(b.ElRadio,Y,{default:()=>L(k)})):E.push(l.h(b.ElRadio,Y,{default:()=>[$]}))}),E};return()=>{const L={...We(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElRadioGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,br),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:Qu,create:ec,scope:tc}=se("radio-item"),hl=ec(Ju(Qu,tc,Te));function vt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function nc(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lc=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function oc(){const e=l.getCurrentInstance();return new lc(e.proxy)}function vr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=vt(e,t),r=vt(e,o);if(n!==r)return!1;const a=wt(e,t),i=wt(e,o);return a===i}function rc(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=vt(e,i)===a;else if(o==="item")s=vr(e,i,a);else{let u=wt(e,i);u==null&&(u=vt(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function ac(e){return{text:e,value:e}}function ic(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const wr={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 sc(e,t,o){return{inheritAttrs:!0,props:{...xe,...Oe,...wr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),f=l.ref([]),c=(F,L,E,k=!0)=>{const x=rc(n,F,L,E);if(x===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(x.length!==f.value.length)j=!1;else for(let $=0;$<x.length;$++){const I=x[$],R=f.value[$];if(!vr(n,I,R)){j=!1;break}}if(!j){f.value=x;let $=[],I=[];x.forEach(U=>{$.push(wt(n,U)),n.valueType==="text"?I.push(vt(n,U)):n.valueType==="item"?I.push(U):I.push(wt(n,U))}),u.value=$;const R=l.toRaw(I);k&&(s("update:modelValue",R),s("change",R))}},d=l.ref([]),v=Ve(l.computed(()=>n.appearLoad),"appearLoad",_e.Near,F=>ue(F)),V=oc(),m=async(F,L)=>{if(F){const E=await V.load("checkbox",F,L);if(E.length>0)if(typeof E[0]=="string"){let j=E.map($=>ac($));d.value=j}else d.value=E}};l.watch([()=>n.source,()=>n.params],async([F,L])=>{m(F,L)},{immediate:!v.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>d.value,()=>n.modelValue],([F,L])=>{c(L,n.valueType,F,!1),s("setValue",L)});const T=e,w=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),N=F=>{c(F,"value",d.value,!0)};let z=ge(n,"hintText"),B=ge(n,"hintVisible");const _=(F,L)=>{const E=[];return F.forEach((k,x)=>{const j=wt(n,k),$=vt(n,k);let I=nc(n,k);a.value===!0&&(I=a.value),i.value===!0&&(I=i.value);const R=ic(n,k,x)??{},U=`${j}_${x}`,Y={...R,key:U,class:n.itemClass,label:j,size:n.size,border:ue(n.border)};I&&(Y.disabled=I),n.itemType==="button"?E.push(l.h(b.ElCheckboxButton,Y,{default:()=>[$]})):typeof L=="function"?E.push(l.h(b.ElCheckbox,Y,{default:()=>L(k)})):E.push(l.h(b.ElCheckbox,Y,{default:()=>[$]}))}),E};return()=>{const L={...We(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:N},E=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>_(d.value,r.slots.text);const x=l.h(b.ElCheckboxGroup,L,k);E.push(x);const j={default:()=>E};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const I={...ke(n,wr),hintText:z.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return v.value&&(I["appear-listen"]=!0,I.onAppear=g),l.h(o,I,j)}}}}const{componentName:uc,create:cc,scope:fc}=se("checkbox-item"),gl=cc(sc(uc,fc,Te)),Sr={modelValue:{type:[Number,String],required:!1}};function dc(e,t,o){return{props:{...xe,...Oe,...Sr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",h=>Se(h),s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=l.ref(!1);const m=l.ref();return $e({}),()=>{const g={...We(r.attrs),ref:m,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElRate,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,Sr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:hc,create:gc,scope:mc}=se("rate-item"),ml=gc(dc(hc,mc,Te)),xr={modelValue:{type:[Boolean,String,Number],required:!1}};function pc(e,t,o){return{props:{...xe,...Oe,...xr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),{emitEvent:s}=Ce({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=ge(n,"modelValue",null,s),f=e,c=l.computed(()=>({[f]:!0})),d=h=>{s("update:modelValue",h),s("change",h)};let v=ge(n,"hintText"),V=ge(n,"hintVisible");const m=l.ref();return $e({}),()=>{const g={...We(r.attrs),ref:m,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},T={},w=[],N=l.h(b.ElSwitch,g,T);w.push(N);const z={default:()=>w};r.slots.default&&(z.label=r.slots.default),r.slots.fixedTip&&(z.fixedTip=r.slots.fixedTip);const _={...ke(n,xr),hintText:v.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,_,z)}}}}const{componentName:yc,create:bc,scope:vc}=se("switch-item"),pl=bc(pc(yc,vc,Te)),Tr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function wc(e,t,o){return{props:{...xe,...Oe,...Tr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=De(l.computed(()=>n.disabled)),i=Fe(l.computed(()=>n.readonly)),s=l.ref(!1),{emitEvent:u}=Ce({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),f=ge(n,"modelValue",null,u),c=e,d=l.computed(()=>({[c]:!0})),v=B=>{u("update:modelValue",B),u("change",B)};let V=ge(n,"hintText"),m=l.ref(!1);const h=B=>{let F=B.target.value;s.value=!0,pe(V.value)||(m.value=!0),u("focus",F,B)},g=B=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let F=B.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),w.value||u("blur",F,B)},T=()=>{u("clear","")},w=l.ref(!1),N=B=>{w.value=B,u("visible-change",B),B||u("selected")},z=l.ref();return $e({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const _={...We(r.attrs),ref:z,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":v,onClear:T,onFocus:h,onBlur:g,onVisibleChange:N},F={};r.slots.option&&(F.default=r.slots.option);const L=[],E=l.h(b.ElTreeSelect,_,F);L.push(E);const k={default:()=>L};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...ke(n,Tr),hintText:V.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:Sc,create:xc,scope:Tc}=se("tree-select-item"),yl=xc(wc(Sc,Tc,Te)),Cc={},$c={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"},Nc=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Ec(e,t){return l.openBlock(),l.createElementBlock("svg",$c,Nc)}const kc=Pe(Cc,[["render",Ec]]),{componentName:Kh,create:Ic,scope:Wh}=se("group-setting"),Oc={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:"到底部"}},Vc=Ic({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:kc,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Oc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),i=gr(),s=O=>O.length>1,u=()=>{const O=[],S=[...a.value];a.value=S.map((D,y)=>(D.visible!==!1&&O.push(D.prop),{...D,sortIndex:y})),a.value.length===O.length?h.value=!0:O.length>0&&(g.value=!0),N.value=O},f=O=>{let S=null;if(typeof O=="string")S=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const D=O.$el??O;typeof D.querySelectorAll=="function"&&(S=D.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const A=[];return S.forEach(D=>{const y=D.querySelector(".label--string");let K="";y&&(K=y.textContent??"");const P=D.getAttribute("prop")??"",M=window.getComputedStyle(D,null).getPropertyValue("display");A.push({label:K,prop:P,sortIndex:0,visible:M!=="none"})}),A},c=()=>{if(!r){const O=f(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},d=async(O=!1)=>{const S=await i.load(e.groupProp),A=D=>{if(!D||!r)return;const y=r.map(K=>({...K}));Array.isArray(S)&&S.forEach(K=>{y.some(P=>{if(P.prop===K.prop){const q=P.label;return Object.assign(P,K),P.label=q,!0}return!1})}),a.value=y.sort((K,P)=>K.sortIndex-P.sortIndex),u(),O&&V(!1)};r?A(!0):Xt(c,e.initDelay,5,50,!1,A)},v=()=>{const O=r??[];a.value=O.map(S=>({...S})),u(),V()},V=(O=!0)=>{O&&i.save(e.groupProp,a.value);const S=a.value.map(A=>({...A}));t("change",S)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=O=>{const S=[];a.value.forEach(D=>{O&&S.push(D.prop),D.visible=O}),h.value=!1,g.value=!1,a.value.length===S.length?h.value=!0:S.length>0&&(g.value=!0),N.value=S,V()},w=()=>{v()},N=l.ref([]),z=O=>{a.value.forEach(A=>{const D=O.indexOf(A.prop)!==-1;A.visible=D}),h.value=!1,g.value=!1;const S=a.value.length;O.length===S?h.value=!0:O.length>0&&(g.value=!0),V()},B=()=>{d()};l.onMounted(()=>{d(!0)});const _={currentRow:null,index:null},F=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,F(O)):null:null,L=O=>{const S=O.currentTarget;S&&S.dataset&&(_.index=S.dataset.index)},E=O=>{_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null),_.index=null},k=O=>{const S=O.currentTarget;O.relatedTarget;const A=F(S);A&&(O.preventDefault(),_.currentRow&&_.currentRow!==A&&_.currentRow.classList.remove("is-dragover"),A.classList.add("is-dragover"),_.currentRow=A)},x=O=>{O.preventDefault(),_.currentRow&&(_.currentRow.classList.remove("is-dragover"),_.currentRow=null)},j=O=>{const S=O.currentTarget,A=F(S);if(!A)return;O.preventDefault();const D=Number(_.index),y=Number(A.dataset.index);if(D!==y){if(D<y){const K=a.value[D];a.value.splice(D,1),a.value.splice(y,0,K)}else{const K=a.value[D];a.value.splice(D,1),a.value.splice(y+1,0,K)}u(),V()}},$=O=>{const S=a.value[O];a.value.splice(O,1),a.value.splice(0,0,S),u(),V()},I=O=>{const S=a.value[O];a.value.splice(O,1),a.value.push(S),u(),V()};n({refresh:()=>{r=null,d(!1)}});const R=new Map;let U=null;function Y(O){const S=document.createRange();return S.setStart(O,0),S.setEnd(O,O.childNodes.length),S.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:w,checkedValue:N,handleCheckChange:z,onShow:B,onDragStart:L,onDragEnd:E,onDragOver:k,onDragLeave:x,onDrop:j,checkboxLabelStyle:m,toTop:$,toBottom:I,onMouseOverForOverflowText:(O,S,A)=>{const D=O.currentTarget;if(D){const y=Math.floor(D.offsetWidth);if(Math.floor(Y(D))>y){let P=R.get(S);if(P){if(P===U)return;Re.hide(P)}P=Re.show(D,A,{type:"text",placement:"top",closeOnClick:!1}),R.set(S,P),U=P}}},onMouseLeaveForOverflowText:(O,S)=>{const A=R.get(S);A&&(Re.hide(A),A===U&&(U=null))},onMouseOverForTip:(O,S)=>{const A=O.currentTarget;A&&(U&&Re.hide(U),U=Re.show(A,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{U&&(Re.hide(U),U=null)}}}}),Fc={class:"fox-group-setting"},Dc={class:"fox-group-setting__header"},Rc={class:"fox-group-setting__body"},Ac={class:"fox-group-setting__body-list","data-role":"container"},Mc=["data-index","draggable"],Lc=["onMouseover","onMouseleave"],Bc={class:"tools-item"};function _c(e,t,o,n,r,a){const i=l.resolveComponent("FoxCheckbox"),s=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),f=l.resolveComponent("Download"),c=l.resolveComponent("FoxIcon"),d=l.resolveComponent("FoxCheckboxGroup"),v=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(v,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Fc,[l.createElementVNode("div",Dc,[l.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=V=>e.isCheckAll=V),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Rc,[l.createVNode(d,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=V=>e.checkedValue=V),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ac,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,V=>(l.openBlock(),l.createElementBlock("div",{key:V.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":V.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(i,{class:"checkbox-item",label:V.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,V.prop,V.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,V.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(V.label),45,Lc)]),_:2},1032,["label"]),l.createElementVNode("div",Bc,[l.createVNode(c,{onClick:m=>e.toTop(V.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"]),l.createVNode(c,{onClick:m=>e.toBottom(V.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(f)]),_:2},1032,["onClick"])])],40,Mc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const bl=Pe(Vc,[["render",_c]]),qc=["aria-labelledby"],Pc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,qc))}}),Hc=["aria-labelledby"],Kc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],vl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Yc=["aria-labelledby"],Uc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Gc=[Uc],Xc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Yc))}}),Zc=["aria-labelledby"],Jc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Jc],ef=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),tf=["aria-labelledby"],nf=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),lf=[nf],of=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),s=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,f)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(i.value),style:l.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},lf,14,tf))}}),rf={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Cr=(e,t)=>t[e.textKey],Mt=(e,t)=>t[e.valueKey],af=(e,t)=>t[e.visibleKey],$r=(e,t)=>t[e.disabledKey],sf=(e,t)=>{const o=t[e.doitKey];return ue(o)},uf=(e,t)=>{const o=t[e.numKey];return o==null?null:Se(t[o])},Nr=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function cf(e,t,o,n=!1){return{props:{...rf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),f=l.computed(()=>({})),c=l.computed(()=>{if(!r.gutter)return 0;const O=he(r.gutter);return O<=0?0:O}),d=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{d.value!==O&&(d.value=O,Y(!1))});const v=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),V=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),m=l.ref(),h=l.ref(!1),g=()=>{const O=!h.value;T(O)},T=O=>{const S=O;S?(h.value=S,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),N=l.ref([]),z=(O,S)=>{N.value[S]=O},B=O=>S=>{z(S,O)},_=(O,S)=>{const A=w.value,D=N.value;if(!A||!D||!D[O])return;const y=D[O];let K=0;r.direction==="vertical"?K=y.offsetTop-(A.offsetHeight-y.offsetHeight)/2:K=y.offsetLeft-(A.offsetWidth-y.offsetWidth)/2,F(A,K,S?0:.3,r.direction)},F=(O,S,A,D)=>{let y=0;const K=D==="horizontal"?O.scrollLeft:O.scrollTop,P=A===0?1:Math.round(A*1e3/16);function q(){D==="horizontal"?O.scrollLeft+=(S-K)/P:O.scrollTop+=(S-K)/P,++y<P&&En(q)}q()},L=(O,S)=>{const A=Mt(r,O),D={};return D[`${e}__titles-item`]=!0,D.disabled=$r(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0),r.ellipsis&&(D.ellipsis=!0),S&&(S.class&&(D[`${S.class}`]=!0),S.disabled===!0&&(D.disabled=S.disabled)),D},E=(O,S)=>{const A={};if(c.value>0){const D=Math.abs(c.value/2);r.direction==="vertical"?(A["margin-top"]=`${D}px`,A["margin-bottom"]=`${D}px`):(A["margin-left"]=`${D}px`,A["margin-right"]=`${D}px`)}return S&&S.style&&Object.assign(A,S.style),A},k=(O,S)=>`${Mt(r,O)??S}`,x=(O,S)=>{const A=Mt(r,O),D={};D[`${e}__popup-item`]=!0,D.disabled=$r(r,O),D.active=A===d.value,r.shape&&(D[`${r.shape}`]=!0);const y=Nr(r,O,S);return y&&y.disabled===!0&&(D.disabled=y.disabled),D},j=l.computed(()=>(r.data??[]).filter(S=>af(r,S)!==!1)),$=(O,S)=>{const A=Mt(r,O);if(d.value==A)return;const D=()=>{d.value=A,r.scroll&&_(S,!1),i("update:modelValue",A),i("change",O,S)};if(typeof r.beforeChange=="function"){const y=r.beforeChange(O,S);oo(y)?y.then(K=>{K!==!1&&D()}).catch(()=>{D()}):y!==!1&&D()}else D()},I=(O,S)=>function(){$(O,S)},R=(O,S)=>{$(O,S),T(!1)},U=(O,S)=>function(){R(O,S)},Y=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(A=>Mt(r,A)===d.value);S!==-1&&_(S,O)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const J=(O,S)=>{if(a.item)return a.item({item:O,index:S});const A=Nr(r,O,S),D=[];if(a.text){const q=a.text({item:O,index:S});D.push(q)}else{const q=[];if(A?.doit===!0||sf(r,O)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ne=l.h("view",Q);q.push(ne)}const M=A?.num??uf(r,O);if(M){let Q="";const ne=Se(M);ne>=100?Q="99+":Q=`${ne}`;const C={class:[`${e}__titles-item-tip`,"num"]},W=l.h("view",C,[Q]);q.push(W)}const G={class:`${e}__titles-item-text`};q.push(Cr(r,O));const H=l.h("view",G,q);D.push(H)}const y={class:`${e}__titles-item-line`},K=l.h("view",y);D.push(K);const P={ref:B(S),class:L(O,A),style:E(O,A),key:k(O,S),onClick:I(O,S)};return l.h("view",P,D)},X=()=>{const O=a.default?a.default():[];if(O.length===0)for(let A=0;A<j.value.length;A++){const D=j.value[A],y=J(D,A);O.push(y)}const S={ref:w,class:u.value,style:f.value};return l.h("view",S,O)},te=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const S={class:`${e}__navigation`,onClick:g};return l.h("view",S,[O])},ae=()=>{const O=[];for(let A=0;A<j.value.length;A++){const D=j.value[A];let y=null;a.popupItem?y=a.popupItem({item:D,index:A}):y=Cr(r,D);const K={class:x(D,A),key:k(D,A),onClick:U(D,A)},P=l.h("view",K,[y]);O.push(P)}const S={class:v.value,style:V.value};return l.h("view",S,O)};return()=>{const O=[],S=X();if(O.push(S),r.showQuickNavigation){const D=te();O.push(D);const y=ae();O.push(y)}const A={class:s.value};return l.h("view",A,O)}}}}const{create:ff,componentName:df,scope:hf}=se("tabs-bar"),wl=ff(cf(df,hf,zc,!1)),Er=Symbol("TabsStatesKey"),gf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function mf(e,t,o=!1){return{props:{...gf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=l.shallowRef([]),s={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),l.triggerRef(i)},remove:h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex(T=>T.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};l.provide(Er,s);const u=h=>{const g=i.value.findIndex(T=>T.name===h);g!==-1&&(i.value[g].loaded=!0,l.triggerRef(i))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{s.current.value!==h&&(s.current.value=h??"",u(h??"")),s.direction.value!==g&&(s.direction.value=g)});const f=l.ref(null),c=l.ref(null),d=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let v=!0;const V=l.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const T=i.value.findIndex(w=>w.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(h.height=`${g*s.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*s.tabWidth.value}px, 0)`)),v&&(v=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!f.value)return;const h=()=>{const g=nn(f.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(f.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:V.value,ref:c},g=l.h("view",h,[a?.default?.()]),T={class:d.value,ref:f};return l.h("view",T,[g])}}}}const{create:pf,componentName:yf,scope:bf}=se("tabs-container"),Sl=pf(mf(yf,bf,!1)),vf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function wf(e,t,o){return{props:{...vf},setup(n,{emit:r,slots:a}){const i=l.inject(Er);l.onMounted(()=>{i.add(n.paneKey)}),l.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=l.computed(()=>{const f={};return i.direction.value==="vertical"&&i.tabHeight.value>0?f.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(f.width=`${i.tabWidth.value}px`),f}),u=l.computed(()=>n.loaded!=null?ue(n.loaded):i.isLoaded(n.paneKey));return()=>{let f=[];if(u.value)f=a?.default?.()??[];else if(a.empty)f=a.empty();else{const d={class:`${e}__empty-icon`},v=n.emptyIcon??o,V=l.h(v,d),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",m,[h]),T={class:`${e}__empty`},w=l.h("view",T,[V,g]);f.push(w)}const c={class:`${e}`,style:s.value};return l.h("view",c,f)}}}}const{create:Sf,componentName:xf,scope:Tf}=se("tabs-pane"),xl=Sf(wf(xf,Tf,vl)),Cf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function $f(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function kr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ir(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Nf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Tl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Or(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Vr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Cl(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Ef{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=ze(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function kf(){const e=l.getCurrentInstance();return new Ef(e.proxy)}function If(e,t,o,n){return{props:{...Cf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=kf(),f=l.ref([]),c=l.computed(()=>f.value.filter(S=>Nf(r,S)!==!1)),d=l.ref(-1),v=()=>{const S=r.modelValue,A=c.value.findIndex(D=>kr(r,D)===S);d.value!==A&&(d.value=A,r.scroll&&ae(A,!1))};l.watch([()=>r.modelValue,c],()=>{v()});const V=S=>d.value===S,m=S=>{if(S<0&&S>=c.value.length)return!1;const A=c.value[S],y=(Cl(r,A,S)??{}).status??Tl(r,A);return V(S)||y},h=l.computed(()=>{const S={[s]:!0};return r.mode?S[`is-${r.mode}`]=!0:r.direction&&(S[`is-${r.direction}`]=!0),r.scroll&&(S["is-scroll"]=!0),S}),g=l.computed(()=>({})),T=(S,A,D,y,K)=>{const P={[`${s}__step`]:!0};return K&&(P[`${K}`]=!0),P[`${w.value}`]=!0,y&&(P["is-doit"]=!0),S===d.value?P["is-active"]=!0:A==="done"?P["is-done"]=!0:A==="error"?P["is-error"]=!0:A==="half"?P["is-half"]=!0:D?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),N=(S,A={})=>{const D={...A};return w.value==="start"&&S===c.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},z=(S,A)=>{let D={};if(A<c.value.length-1){const y=A+1;m(A)&&m(y)?r.direction==="vertical"?D.height="100%":D.width="100%":D.opacity="0"}return D},B=S=>c.value.length-1===S,_=(S,A)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&A>d.value||d.value===A)return;const D=d.value,y=A;d.value=A,r.scroll&&ae(A,!1);const K=kr(r,S);i("update:modelValue",K);const P={fromIndex:D,currentIndex:y,item:S,items:c.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,P)},F=l.ref(!0),L=async(S,A)=>{try{const D=await u.load("stesbar",S,A);Array.isArray(D)&&(f.value=D),F.value=!1}catch(D){console.error("[FoxUI] Load StepsBar Data Fail",D),f.value=[]}setTimeout(()=>{i("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([S,A])=>{S&&L(S,A)},{immediate:!0});const E=(S,A,D,y,K)=>{let P=null;if(a.icon)P=a.icon({item:S,index:A,status:y});else if(y==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const G=r.icon??o;P=l.h(G,M)}else{const M=D??`${A+1}`;P=l.h("span",{},[M])}const q={class:"fox-steps-bar__icon",onClick:()=>{K||_(S,A)}};return l.h("view",q,[P])},k=(S,A,D)=>{const y=l.h("i",{class:"fox-steps-bar__line-inner",style:z(S,A)});return l.h("view",{class:"fox-steps-bar__line"},[y])},x=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const D={};r.iconSize&&(D.width=r.markIconSize,D.height=r.markIconSize);const y=r.markIcon??n;S=l.h(y,D)}return l.h("view",{class:"fox-steps-bar__mark"},[S])},j=(S,A,D,y,K)=>{const P=[];if(!B(A)){const G=k(S,A);P.push(G)}const q=E(S,A,D,y,K);P.push(q);const M={class:"fox-steps-bar__head"};return l.h("view",M,P)},$=(S,A,D,y)=>{let K=null;a.main?K=a.main({item:S,index:A,status:D}):K=$f(r,S);const P={class:"fox-steps-bar__main",onClick:()=>{y||_(S,A)}};return l.h("view",P,[K])},I=(S,A,D)=>{let y=null;if(a.sub){y=a.sub({item:S,index:A,status:D});const K={class:"fox-steps-bar__sub"};return l.h("view",K,[y])}return null},R=(S,A)=>{const D=Cl(r,S,A)??{},y=D.status??Tl(r,S);let K=Ir(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Vr(r,S),q=[],M=E(S,A,P,y,K);M&&q.push(M);const G=$(S,A,y,K);if(G&&q.push(G),!B(A)){const ee=k(S,A);ee&&q.push(ee)}const H=l.h("view",{class:"fox-steps-bar__head"},q),Q=D.class,ne=D.style??{};let C=Or(r,S);D.doit===!0&&(C=!0);const W={ref:te(A),class:T(A,y,K,C,Q),style:N(A,ne)};return l.h("view",W,[H])},U=(S,A)=>{const D=Cl(r,S,A)??{},y=D.status??Tl(r,S);let K=Ir(r,S);D.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const P=D.label??Vr(r,S),q=[],M=r.layout;for(let C of M)if(C==="head"){const W=j(S,A,P,y,K);q.push(W)}else if(C==="main"){const W=$(S,A,y,K);q.push(W)}else if(C==="sub"){const W=I(S,A,y);q.push(W)}else if(C==="mark"){const W=x();q.push(W)}const G=D.class,H=D.style??{};let Q=Or(r,S);D.doit===!0&&(Q=!0);const ne={ref:te(A),class:T(A,y,K,Q,G),style:N(A,H)};return l.h("view",ne,q)},Y=l.ref(),J=l.ref([]),X=(S,A)=>{J.value[A]=S},te=S=>A=>{X(A,S)},ae=(S,A)=>{const D=Y.value,y=J.value;if(!D||!y||!y[S])return;const K=y[S];let P=0;r.direction==="vertical"?P=K.offsetTop-(D.offsetHeight-K.offsetHeight)/2:P=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,O(D,P,A?0:.3,r.direction)},O=(S,A,D,y)=>{let K=0;const P=y==="horizontal"?S.scrollLeft:S.scrollTop,q=D===0?1:Math.round(D*1e3/16);function M(){y==="horizontal"?S.scrollLeft+=(A-P)/q:S.scrollTop+=(A-P)/q,++K<q&&En(M)}M()};return()=>{const S=[];if(r.mode==="simple")for(let D=0;D<c.value.length;D++){const y=c.value[D],K=R(y,D);S.push(K)}else for(let D=0;D<c.value.length;D++){const y=c.value[D],K=U(y,D);S.push(K)}const A={ref:Y,class:h.value,style:g.value};return l.h("view",A,S)}}}}const{componentName:Of,create:Vf,scope:Ff}=se("steps-bar"),$l=Vf(If(Of,Ff,ef,of)),Df=Symbol.for("InnerPageScopeKey"),Rf=Symbol.for("PageWrapperKey");function Af(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(Df,!0);const r={};l.provide(Rf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=l.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return l.h(b.ElDialog,f,c)}}}}const{componentName:Yh,create:Mf,scope:Uh}=se("dialog-item"),Nl=Mf(Af());let Lt=0;const Fr="fox-overflow-hidden",Dr=()=>ut?document.body:{classList:[]},Lf=e=>[()=>{if(e())try{!Lt&&Dr().classList.add(Fr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Dr().classList.remove(Fr)}catch{}}],Bf={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:_f,create:qf}=se("overlay"),Pf=qf({props:{...Bf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Lf(()=>e.lockScroll),r=l.computed(()=>({[_f]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,s=>{s?o():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function jf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const hn=Pe(Pf,[["render",jf]]),zf={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:{}}},Rr=2e3;let Ar=Rr;const Hf=(e,t)=>({components:t,props:{...zf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),s=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Rr&&(Ar=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Ar,o.destroyOnClose&&(r.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},c=h=>{n("click-pop",h)},d=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},v=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},V=h=>{n("opend",h)},m=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():f()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:c,onClickCloseIcon:d,onClickOverlay:v,onOpened:V,onClosed:m}}}),{componentName:Kf,create:Wf}=se("popup"),Yf=Wf(Hf(Kf,{FoxOverLay:hn,Close:Xc}));function Uf(e,t,o,n,r,a){const i=l.resolveComponent("FoxOverLay"),s=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(s)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const El=Pe(Yf,[["render",Uf]]),{create:Gf}=se("toast"),Xf=Gf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),l.watch(()=>e.duration,V=>{V&&i()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),f=()=>{const V=he(e.iconSize);return l.h(e.icon,{width:V,height:V,color:e.iconColor})},c=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:f,hasIcon:u,toastBodyClass:c,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Zf={key:1,class:"fox-toast-title"},Jf=["innerHTML"];function Qf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Zf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Jf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const kl=Pe(Xf,[["render",Qf]]),ed={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"}},td=(e,t,o)=>({props:{...ed},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}=$o(),{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["placeholder"]),u=l.reactive({active:!1}),f=l.computed(()=>({background:n.background})),c=l.computed(()=>({background:n.inputBackground})),d=E=>{let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),a("update:modelValue",x,E),a("change",x,E)},v=l.ref({}),V=E=>{let x=E.target.value;u.active=!0,v.value=n.focusStyle,a("focus",x,E)},m=E=>{setTimeout(()=>{u.active=!1},0);let x=E.target.value;n.maxLength&&x.length>Number(n.maxLength)&&(x=x.slice(0,Number(n.maxLength))),v.value={},a("blur",x,E)},h=E=>{a("update:modelValue","",E),a("change","",E),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),T=l.computed(()=>{const E={};return g.value||(E.display="none"),E}),w=()=>{a("search",n.modelValue)},N=E=>{a("keyup-input",E),E.key.toLocaleUpperCase()==="ENTER"&&w()},z=E=>{a("click-input",E)},B=E=>{a("click-left-icon",n.modelValue,E)},_=l.computed(()=>({textAlign:n.inputAlign})),F=l.ref(null);l.onMounted(()=>{n.autofocus&&F.value.focus()});const L=()=>{const E=[];if(r.leftin){const I={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},R=l.h("view",I,[r.leftin()]);E.push(R)}const k={ref:F,class:[`${e}__input-inner`],style:_.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:z,onInput:d,onFocus:V,onBlur:m,onkeyup:N},x=l.h("input",k);E.push(x);const j=[];if(n.clearable){const I={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},R=r?.clear?.()??n.clearIcon??o,U=l.h("view",I,[l.h(R)]);j.push(U)}if(r.rightin){const I={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=l.h("view",I,[r.rightin()]);j.push(R)}if(j.length>0){const I={class:`${e}__input-inner-right`},R=l.h("view",I,j);E.push(R)}const $={class:[`${e}__search-input`,`${n.shape}`],style:{...c.value,...v.value}};return l.h("view",$,E)};return()=>{const E=[];if(n.label){const j={class:`${e}__search-label`},$=l.h("span",j,[n.label]);E.push($)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},$=l.h("view",j,[r.leftout()]);E.push($)}const k=L();if(E.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},$=l.h("view",j,[r.rightout()]);E.push($)}const x={class:`${e}`,style:f.value};return l.h("view",x,E)}}}),{componentName:nd,create:ld,scope:od}=se("searchbar"),Il=ld(td(nd,od,Ne.CircleClose)),rd=/scroll|auto|overlay/i,Mr=window;function ad(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function id(e,t=Mr){let o=e;for(;o&&o!==t&&ad(o);){const{overflowY:n}=window.getComputedStyle(o);if(rd.test(n))return o;o=o.parentNode}return t}function Lr(e,t=Mr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=id(e.value,t))}),o}const Br=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,sd={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 ud(e,t,o){return{props:{...sd},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=l.ref(),f=Lr(u),c=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=l.computed(()=>({[e]:!0})),v=w=>w?w.offsetTop+v(w.offsetParent):0,V=()=>{let w=0,N=0,z="down";if(f.value==window){const B=Br();u.value&&(w=v(u.value)+u.value.offsetHeight-B-window.innerHeight),N=B}else{const{scrollHeight:B,clientHeight:_,scrollTop:F}=f.value;w=B-_-F,N=F}return c.beforeScrollTop>N?z="up":z="down",c.beforeScrollTop=N,r("scroll-change",N),w<=n.threshold&&z=="down"},m=()=>{Ul(()=>{if(!V()||!n.hasMore||c.isInfiniting)return!1;c.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{f.value&&f.value.addEventListener("scroll",m,n.useCapture)},g=()=>{f.value&&f.value.removeEventListener("scroll",m,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&m()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>n.modelValue,w=>{w||(c.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},N=l.h("view",w,[a?.default?.()]),z=[];if(c.isInfiniting){let L=a?.loading?.()??null;if(!L){let x=a?.loadingIcon?.()??null;if(!x){const I={class:["fox-infinite__bottom-box__img"]};x=l.h(o,I)}const j={class:"fox-infinite__bottom-box__text"},$=l.h("view",j,[s.loadText.value]);L=[x,$]}const E={class:"fox-infinite__bottom-box"},k=l.h("view",E,L);z.push(k)}else if(!n.hasMore){let L=a?.finished?.()??null;if(!L){const E={class:"fox-infinite__bottom-tips"};L=l.h("view",E,[s.loadMoreText.value]),z.push(L)}}const B={class:"fox-infinite__bottom"},_=l.h("view",B,z),F={class:d.value,ref:u};return l.h("view",F,[N,_])}}}}const{componentName:cd,create:fd,scope:dd}=se("infinite-loading"),Ol=fd(ud(cd,dd,vl)),_r=10;function qr(e,t){return e>t&&e>_r?"horizontal":t>e&&t>_r?"vertical":""}function Vl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Fl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const f=i.touches[0];e.deltaX=f.clientX-e.startX,e.deltaY=f.clientY-e.startY,e.moveX=f.clientX,e.moveY=f.clientY}else{const u=i;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=qr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const f=i.touches[0];e.startX=f.clientX,e.startY=f.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function hd(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),i=l.ref(0),s=l.ref(0),u=l.ref(0),f=l.ref(0),c=l.ref(""),d=()=>c.value==="vertical",v=()=>c.value==="horizontal",V=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:g=>{if(g.touches){const N=g.touches[0];i.value=N.clientX-e.value,s.value=N.clientY-t.value,r.value=N.clientX,a.value=N.clientY}else{const w=g;i.value=w.clientX-e.value,s.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=qr(u.value,f.value))},start:g=>{if(V(),g.touches){const N=g.touches[0];e.value=N.clientX,t.value=N.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:V,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:v}}const 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}},md=(e,t,o)=>({props:{...gd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Be.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=Fl(),f=l.ref(),c=Lr(f),d=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=l.computed(()=>({[e]:!0})),V=l.computed(()=>{switch(d.status){case"pulling":return a.pulling?"":s.pullingText.value;case"loosing":return a.loosing?"":s.loosingText.value;case"loading":return a.loading?"":s.loadingText.value;default:return""}}),m=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),h=l.computed(()=>{const F={};return n.headHeight!=50&&(F.height=Ie(n.headHeight)),F}),g=F=>{const L=+(n.pullDistance||n.headHeight);let E=F;return F>L&&(F<L*2?E=(F+L)/2:E=L+F/4),Math.round(E)},T=(F,L)=>{const E=+(n.pullDistance||n.headHeight);d.distance=F,L?d.status="loading":F===0?d.status="normal":F<E?d.status="pulling":d.status="loosing",r("change",{status:d.status,distance:F})},w=()=>d.status!=="loading"&&d.status!=="complete",N=()=>c.value==window?Br()==0:c.value&&c.value.scrollTop==0,z=F=>{w()&&(N()?(u.start(F),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},B=F=>{w()&&d.moving&&(u.move(F),u.isVertical()&&u.state.deltaY>0&&d.isPullRefresh&&(F.cancelable&&F.preventDefault(),T(g(u.state.deltaY))))},_=()=>{d.moving=!1,d.isPullRefresh&&w()&&u.state.deltaY&&(d.status==="loosing"?(T(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,F=>{F?T(+n.headHeight,!0):T(0)}),()=>{const F=[];let L=null;if(d.status==="loading"){if(L=a?.loading?.()??null,!L){const U={class:["fox-pull-refresh-container-topbox-icon"]};L=l.h(o,U)}}else d.status==="pulling"?L=a?.pulling?.()??null:d.status==="loosing"&&(L=a?.loosing?.()??null);L&&F.push(L);const E={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",E,[V.value]);F.push(k);const x={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",x,F),$={class:"fox-pull-refresh-container",style:m.value},I=l.h("div",$,[j,a?.default?.()]),R={ref:f,class:v.value};return Vl()?Object.assign(R,{onTouchstart:z,onTouchmove:B,onTouchend:_}):Object.assign(R,{onMousedown:z,onMousemove:B,onMouseup:_}),l.h("div",R,[I])}}}),{componentName:pd,create:yd,scope:bd}=se("pull-refresh"),Dl=yd(md(pd,bd,vl));function vd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),i=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),s=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const c={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=l.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const h={class:i.value,style:s.value};c=l.h(o.icon??"div",h)}const d={class:u.value,style:f.value},v=n.default?n.default():[],V=l.h("div",d,v),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[c,V]):l.h("div",m,[V,c])}}}}const{componentName:wd,create:Sd,scope:Gh}=se("indicator"),Rl=Sd(vd(wd));function xd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const Td={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 Cd(e,t,o,n=!1){return{props:{...Td},emits:["click"],setup(r,a){const i=l.ref(null),s=l.computed(()=>{const N={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(N[`${e}--${r.type??"default"}`]=!0),r.size&&(N[`${e}--${r.size}`]=!0),N}),u=l.computed(()=>{const N={},z=r.textColor??r.color;return z&&(N.color=z),N}),f=(N,z)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const _=r.highlightFilter;if(N.indexOf(_)!==-1){const L=N.replace(new RegExp(_,"g"),`<span>${_}</span>`);z.innerHTML=L,z.class["is-highlight"]=!0,B=l.h(r.tag,z)}}else if(typeof r.highlightFilter=="function"){const _=r.highlightFilter(N);_&&(z.innerHTML=_,z.class["is-highlight"]=!0,B=l.h(r.tag,z))}return B},c=N=>{a.emit("click",N)};let d="";const v=()=>{const N=i.value;if(!N)return;const z=N.clientWidth;xd(N,B=>{const _=N.innerHTML??"";pe(_)||B<z||(d?o?.show(N,_,{type:"text",id:d,showArrow:r.showArrow},!0):d=o?.show(N,_,{type:"text",showArrow:r.showArrow},!0)??"")})},V=()=>{d&&o?.hide(d)};let m=null;const h=N=>{m||(m=setTimeout(()=>{v(),m=null},r.showAfter??0))},g=N=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{V()},r.hideAfter??0)},T=()=>{const N=i.value;N&&(N.addEventListener("mouseover",h),N.addEventListener("mouseleave",g))},w=()=>{const N=i.value;N&&(N.removeEventListener("mouseover",h),N.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||w()}),()=>{const N={onClick:c,class:s.value,style:u.value,ref:i};let z=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=Se(r.digits),x=Se(r.decimalLength),j=ue(r.autoPadding);let $=`${L[0].children}`,I=$.split("").reverse().join("");I=jt(I,x,j,k,r.separator),$=I.split("").reverse().join(""),r.highlightFilter!==void 0&&(z=f($,N)),z||(N.innerHTML=$,z=l.h(r.tag,N))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const L=a.slots.default();if(Array.isArray(L)&&L.length===1){const E=L[0].type.toString();if(E==="Symbol(Text)"||E==="Symbol(v-txt)"){const k=`${L[0].children}`;z=f(k,N),z||(N.innerHTML=k,z=l.h(r.tag,N))}}}z||(z=l.h(r.tag,N,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return z;let _=null;if(r.icon){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,l.h(r.icon))}else if(a.slots.mark){const L={[`${e}__mark-wrap`]:!0};r.type&&(L[`${e}__mark-wrap--${r.type}`]=!0);const E={},k=r.color;k&&(E.color=k);const x={class:L,style:E};_=l.h("view",x,{default:a.slots.mark})}else{const L={[`${e}__mark`]:!0};r.type&&(L[`${e}__mark--${r.type??"default"}`]=!0);const E={},k=r.color;k&&(E["background-color"]=k);const x={class:L,style:E};_=l.h("view",x)}const F={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",F,[_,z])}}}}const{componentName:$d,create:Nd,scope:Ed}=se("text"),Al=Nd(Cd($d,Ed,Re,!1)),kd={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:Ne.ArrowUp}};function Id(e,t,o){return{props:{...kd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ge(n,"modelValue"),s=l.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),f=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{r("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const h={class:u.value},g=l.h("span",h,[s.value]);d.push(g)}const v={class:f.value},V=o(n.icon,v);return V&&d.push(V),l.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:Od,create:Vd,scope:Fd}=se("more-button"),Ml=Vd(Id(Od,Fd,(e,t)=>(e=e??Ne.ArrowUp,l.h(b.ElIcon,t,{default:()=>[l.h(e)]}))));function Dd(e){return e===window}const Pr=e=>{const t=l.unref(e);if(Dd(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Rd,create:Ad,scope:Zh}=se("tour"),Md=Ad({components:{Close:Ne.Close,ElPopover:b.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Rd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),i=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:T,height:w,left:N,top:z}=r.value,B=e.steps[n.active].offset??m,_=[N+T/2,z+w/2],F=Number(h||T),L=Number(g||w);return{width:`${F+ +B.left+B.right}px`,height:`${L+B.top+B.bottom}px`,top:`${_[1]-L/2-+B.top}px`,left:`${_[0]-F/2-+B.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,f=m=>m.location??e.location,c=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Pr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},V=(m,h=0)=>{m&&c(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return l.onMounted(()=>{V(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{V(m)}),{...l.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:v}}}),Ld={key:0,class:"fox-tour__content"},Bd={key:0,class:"fox-tour__content-top"},_d={class:"fox-tour__content-inner"},qd={class:"fox-tour__content-bottom"},Pd={class:"fox-tour__content-bottom-init"},jd={class:"fox-tour__content-bottom-operate"},zd={key:1,class:"fox-tour__content fox-tour__content-tile"},Hd={class:"fox-tour__content-inner"};function Kd(e,t,o,n,r,a){const i=l.resolveComponent("Close"),s=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(f,c)=>(l.openBlock(),l.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Ld,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Bd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[l.createVNode(i,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",_d,l.toDisplayString(f.content),1),l.createElementVNode("div",qd,[l.createElementVNode("div",Pd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",jd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",zd,[l.createElementVNode("div",Hd,l.toDisplayString(f.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Ll=Pe(Md,[["render",Kd]]),Ae=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,dt=e=>e==null;class Wd{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Vl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Fl(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function jr(e,t){return new Wd(e,t)}var zr;const Bl=typeof window<"u";Bl&&((zr=window?.navigator)!=null&&zr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let St=[];const Hr=e=>{const t=e;t.key==="Escape"&&St.forEach(o=>o(t))},Yd=e=>{l.onMounted(()=>{St.length===0&&document.addEventListener("keydown",Hr),Bl&&St.push(e)}),l.onBeforeUnmount(()=>{St=St.filter(t=>t!==e),St.length===0&&Bl&&document.removeEventListener("keydown",Hr)})},_l="fox-focus-trap.focus-after-trapped",ql="fox-focus-trap.focus-after-released",Ud="fox-focus-trap.focusout-prevented",Kr={cancelable:!0,bubbles:!1},Gd={cancelable:!0,bubbles:!1},Wr="foxFocusAfterTrapped",Yr="foxFocusAfterReleased",Xd=Symbol("foxFocusTrap"),Pl=l.ref(),gn=l.ref(0),jl=l.ref(0);let mn=0;const Ur=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Zd=(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},Gr=(e,t)=>{for(const o of e)if(!Zd(o,t))return o},Jd=e=>{const t=Ur(e),o=Gr(t,e),n=Gr(t.reverse(),e);return[o,n]},Qd=e=>e instanceof HTMLInputElement&&"select"in e,ot=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),jl.value=window.performance.now(),e!==o&&Qd(e)&&t&&e.select()}};function Xr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const eh=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Xr(e,n),e.unshift(n)},remove:n=>{e=Xr(e,n),e[0]?.resume?.()}}},th=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ot(n,t),document.activeElement!==o)return},Zr=eh(),nh=()=>gn.value>jl.value,pn=()=>{Pl.value="pointer",gn.value=window.performance.now()},Jr=()=>{Pl.value="keyboard",gn.value=window.performance.now()},lh=()=>(l.onMounted(()=>{mn===0&&(document.addEventListener("mousedown",pn),document.addEventListener("touchstart",pn),document.addEventListener("keydown",Jr)),mn++}),l.onBeforeUnmount(()=>{mn--,mn<=0&&(document.removeEventListener("mousedown",pn),document.removeEventListener("touchstart",pn),document.removeEventListener("keydown",Jr))}),{focusReason:Pl,lastUserFocusTimestamp:gn,lastAutomatedFocusTimestamp:jl}),yn=e=>new CustomEvent(Ud,{...Gd,detail:e}),{componentName:Jh,create:oh,scope:Qh}=se("focus-trap"),rh=oh({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:[Wr,Yr,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:i}=lh();Yd(h=>{ue(e.trapped)&&!s.paused&&o("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!ue(e.trapped)||s.paused)return;const{key:g,altKey:T,ctrlKey:w,metaKey:N,currentTarget:z,shiftKey:B}=h,{loop:_}=e,F=g==="Tab"&&!T&&!w&&!N,L=document.activeElement;if(F&&L){const E=z,[k,x]=Jd(E);if(k&&x){if(!B&&L===x){const $=yn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),_&&ot(k,!0))}else if(B&&[k,E].includes(L)){const $=yn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(h.preventDefault(),_&&ot(x,!0))}}else if(L===E){const $=yn({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||h.preventDefault()}}};l.provide(Xd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",v)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",d),g.removeEventListener("focusout",v))});const f=h=>{o(Wr,h)},c=h=>o(Yr,h),d=h=>{const g=l.unref(n);if(!g)return;const T=h.target,w=h.relatedTarget,N=T&&g.contains(T);ue(e.trapped)||w&&g.contains(w)||(r=w),N&&o("focusin",h),!s.paused&&ue(e.trapped)&&(N?a=T:ot(a,!0))},v=h=>{const g=l.unref(n);if(!(s.paused||!g))if(!e.escape&&ue(e.trapped)){const T=h.relatedTarget;!Fn(T)&&!g.contains(T)&&setTimeout(()=>{if(!s.paused&&ue(e.trapped)){const w=yn({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||ot(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function V(){await l.nextTick();const h=l.unref(n);if(h){Zr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(_l,Kr);h.addEventListener(_l,f),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let N=e.focusStartEl;lo(N)||(ot(N),document.activeElement!==N&&(N="first")),N==="first"&&th(Ur(h),!0),(document.activeElement===g||N==="container")&&ot(h)})}}}function m(){const h=l.unref(n);if(h){h.removeEventListener(_l,f);const g=new CustomEvent(ql,{...Kr,detail:{focusReason:i.value}});h.addEventListener(ql,c),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!nh())&&ot(r??document.body,!0),h.removeEventListener(ql,f),Zr.remove(s)}}return l.onMounted(()=>{ue(e.trapped)&&V(),l.watch(()=>e.trapped,h=>{ue(h)?V():m()})}),l.onBeforeUnmount(()=>{ue(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:ah,create:ih,scope:tg}=se("floating-window"),sh=Symbol.for("InnerPageScopeKey"),uh=Symbol.for("PageWrapperKey"),ch={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},fh=ih({inheritAttrs:!1,components:{FoxIcon:b.ElIcon,FocusTrap:rh},props:{...ch},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=ah,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,C=>{n.value=C});const a=l.computed(()=>n.value===!1?!1:!L.value),i=l.ref(e.left),s=l.ref(e.top),u=l.ref(e.right),f=l.ref(e.bottom),c=l.computed(()=>{const C=["fox-floating-window"];return e.customClass&&C.push(e.customClass),C}),d=l.computed(()=>{const C={};return dt(i.value)?C.left="auto":C.left=Ae(i.value),dt(s.value)?C.top="auto":C.top=Ae(s.value),dt(u.value)?C.right="auto":C.right=Ae(u.value),dt(f.value)?C.bottom="auto":C.bottom=Ae(f.value),dt(e.zIndex)||(C["z-index"]=Ae(e.zIndex)),dt(_.value)||(C.height=_.value),dt(F.value)||(C.width=F.value),C}),v=l.computed(()=>e.closeIcon??Ne.Close),V=l.computed(()=>e.collapseIcon??Ne.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),N=l.ref(),z=l.ref(null),B=l.ref(null),_=l.computed(()=>Ae(e.height)||""),F=l.computed(()=>Ae(e.width)||""),L=l.ref(ue(e.collapse)),E=(C,W=!0)=>{L.value!==C&&(L.value=C,C?S():A(),t("update:collapse",C),C&&typeof j.onHide=="function"?j.onHide():!C&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,C=>{E(C)});const k=()=>{x()},x=C=>{C=C??!L.value,E(C)};l.provide(sh,!0);const j={setCollapse:E,setFixedNavVisible:C=>{te.value=C}};l.provide(uh,j);const $=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},I=l.ref(null),R=l.computed(()=>!e.fixedNavTeleport),U=l.computed(()=>{const C=["fox-floating-window__fixednav"];return e.expandClass&&C.push(e.expandClass),e.collapsePosition==="left"?C.push("is-left"):e.collapsePosition==="right"&&C.push("is-right"),C}),Y=l.ref(""),J=l.computed(()=>{const C={};return Y.value?C.top=Y.value:e.collapseTop&&(C.top=e.collapseTop),C}),X=l.ref(L.value),te=l.computed({set:C=>{X.value=C},get:()=>n.value===!1?!1:X.value});let ae=null;const O=()=>{typeof ae=="function"&&(ae(),ae=null)},S=()=>{I.value&&I.value.classList.add("slide-in"),te.value=!0,ae=()=>{I.value&&I.value.classList.remove("slide-in")}},A=()=>{I.value&&I.value.classList.add("slide-out"),ae=()=>{I.value&&I.value.classList.remove("slide-out"),te.value=!1}},D=()=>{i.value=null,s.value=null,u.value=null,f.value=null},y={x:0,y:0},q=jr(C=>{if(!N.value)return;const W=N.value;if(D(),e.origin==="left-top")i.value=W.offsetLeft,s.value=W.offsetTop,y.x=i.value,y.y=s.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=W.offsetLeft,f.value=ee-(W.offsetTop+W.offsetHeight),y.x=i.value,y.y=f.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,oe=document.documentElement.clientHeight||document.body.clientHeight;u.value=ee-(W.offsetLeft+W.offsetWidth),f.value=oe-(W.offsetTop+W.offsetHeight),y.x=u.value,y.y=f.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;u.value=ee-(W.offsetLeft+W.offsetWidth),s.value=W.offsetTop,y.x=u.value,y.y=s.value}},C=>{if(!N.value)return;const W=N.value;D(),e.origin==="left-top"?(i.value=y.x+C.x,s.value=y.y+C.y,W.style.left=Ae(i.value),W.style.top=Ae(s.value)):e.origin==="left-bottom"?(i.value=y.x+C.x,f.value=y.y-C.y,W.style.left=Ae(i.value),W.style.bottom=Ae(f.value)):e.origin==="right-bottom"?(u.value=y.x-C.x,f.value=y.y-C.y,W.style.right=Ae(u.value),W.style.bottom=Ae(f.value)):(u.value=y.x-C.x,s.value=y.y+C.y,W.style.right=Ae(u.value),W.style.top=Ae(s.value))}),M={x:0,y:0},Q=jr(C=>{I.value&&(M.x=I.value.offsetLeft,M.y=I.value.offsetTop)},C=>{if(!I.value)return;const W=M.y+C.y;Y.value=`${W}px`}),ne=()=>{if(N.value){const C=N.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=C}};return l.onMounted(()=>{if(e.draggable&&N.value){const C=[];z.value&&C.push(z.value),e.footerDraggable&&(ne(),B.value&&C.push(B.value)),q.open(C)}e.collapse===!0&&E(e.collapse,!1),I.value&&Q.open(I.value)}),l.onBeforeUnmount(()=>{e.draggable&&z.value&&q.close(),I.value&&Q.close()}),{classes:c,styles:d,isShow:a,closeIcon:v,onClose:$,dialogRef:N,headerRef:z,onClickToggle:k,collapseIcon:V,collapseText:m,collapseTextClasses:T,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:te,fixedNavRef:I,fixedNavClasses:U,fixedNavStyles:J,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),dh={ref:"headerRef",class:"fox-floating-window__header"},hh={class:"fox-floating-window__title"},gh={class:"fox-floating-window__tools"},mh={class:"fox-floating-window__body"},ph={class:"fox-floating-window__fixednav__text"};function yh(e,t,o,n,r,a){const i=l.resolveComponent("FoxIcon"),s=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",dh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",hh,l.toDisplayString(e.title),1),l.createElementVNode("div",gh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(i,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",mh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",ph,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const zl=Pe(fh,[["render",yh]]);function bh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return To(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ng,create:vh,scope:lg}=se("domain-provider"),Hl=vh(bh()),wh={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 Sh(e,t){return{inheritAttrs:!1,props:wh,setup(o,{slots:n}){if(ut&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,V)=>{if(c===null){a.set(v,{visible:null,callback:V});return}r.has(v)&&c.unobserve(v),r.set(v,{visible:null,callback:V}),c.observe(v)},s=v=>{if(c===null){a.delete(v);return}r.has(v)&&(r.delete(v),c.unobserve(v))};let u=o.initialVisibleObserverSize;ii({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(v,V,m)=>{c=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const w=r.get(g.target);if(w)try{if(o.loadPolicy==="lazy"&&!T&&w.visible!==null)return;w.visible=T,w.callback(T)}catch(N){console.error(N)}}},{root:v,rootMargin:V,threshold:m}),a.forEach((h,g)=>{r.set(g,h),c?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([v,V])=>{if(V||!v||c)return;let m=null;typeof v=="string"?m=document.querySelector(v):m=v,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:og,create:xh,scope:rg}=se("rolling-provider"),Kl=xh(Sh()),Th=[qn,jn,zn,Hn,Yn,Te,Xn,Zn,Ft,Jn,Qn,el,tl,nl,ll,ol,al,il,sl,ul,dn,dl,hl,gl,ml,pl,yl,bl,wl,Sl,xl,$l,Nl,hn,El,kl,Il,Ol,Dl,Rt,cn,Rl,Al,Ml,Ll,zl,Hl,Kl],Ch=new Ba(Th,[Pa],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>b.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>b.ElAlert}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>b.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>b.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>b.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>b.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>b.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>b.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>b.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>b.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>b.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>b.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>b.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>b.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>b.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>b.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>b.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>b.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>b.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>b.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>b.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>b.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>b.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>b.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>b.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>b.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>b.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>b.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>b.ElContainer}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>b.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>b.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>b.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>b.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>b.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>b.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>b.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>b.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>b.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>b.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>b.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>b.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>b.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>b.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>b.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>b.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>b.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>b.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>b.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>b.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>b.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>b.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>b.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>b.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>b.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>b.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>b.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>b.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>b.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>b.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>b.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>b.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>b.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>b.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>b.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>b.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>b.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>b.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>b.ElScrollbar}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>b.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>b.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>b.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>b.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>b.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>b.ElSpace}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>b.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>b.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>b.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>b.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>b.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>b.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>b.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>b.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>b.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>b.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>b.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>b.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>b.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>b.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>b.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>b.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>b.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>b.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>b.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>b.ElUpload}),p.AutocompleteItem=il,p.Broadcast=Rn,p.BroadcastKey=ve,p.CascaderItem=al,p.CheckboxItem=gl,p.Content=Hn,p.DataItemsKey=gt,p.DateItem=el,p.DateUtils=qe,p.DialogItem=Nl,p.Domain=Zt,p.DomainKey=Le,p.DomainProvider=Hl,p.FloatingWindow=zl,p.FooterBar=zn,p.FoxAutocompleteItem=il,p.FoxCascaderItem=al,p.FoxCheckboxItem=gl,p.FoxContent=Hn,p.FoxDateItem=el,p.FoxDialogItem=Nl,p.FoxDomainProvider=Hl,p.FoxFloatingWindow=zl,p.FoxFooterBar=zn,p.FoxGroup=Yn,p.FoxGroupSetting=bl,p.FoxHeaderBar=jn,p.FoxHintText=Ft,p.FoxIndicator=Rl,p.FoxInfiniteLoading=Ol,p.FoxInputItem=Jn,p.FoxInputNumberItem=ol,p.FoxItem=Te,p.FoxMapping=Rt,p.FoxMoneyItem=ll,p.FoxMoreButton=Ml,p.FoxOverLay=hn,p.FoxPage=qn,p.FoxPopup=El,p.FoxPrice=cn,p.FoxPullRefresh=Dl,p.FoxRadioItem=hl,p.FoxRateItem=ml,p.FoxRollingProvider=Kl,p.FoxRowItem=Zn,p.FoxSearchBar=Il,p.FoxSelectItem=Qn,p.FoxSlotItem=Xn,p.FoxStepsBar=$l,p.FoxSwitchItem=pl,p.FoxTableItem=dl,p.FoxTableMappingColumn=sl,p.FoxTableRadioColumn=ul,p.FoxTableSetting=dn,p.FoxTabsBar=wl,p.FoxTabsContainer=Sl,p.FoxTabsPane=xl,p.FoxText=Al,p.FoxTimeItem=tl,p.FoxTimeSelectItem=nl,p.FoxToast=kl,p.FoxTour=Ll,p.FoxTreeSelectItem=yl,p.Group=Yn,p.GroupSetting=bl,p.HeaderBar=jn,p.HintText=Ft,p.Indicator=Rl,p.InfiniteLoading=Ol,p.InputItem=Jn,p.InputNumberItem=ol,p.Item=Te,p.Mapping=Rt,p.MoneyItem=ll,p.MoreButton=Ml,p.OverLay=hn,p.Page=qn,p.Popup=El,p.Price=cn,p.PriorityPolicy=_e,p.PullRefresh=Dl,p.RadioItem=hl,p.RateItem=ml,p.RollingProvider=Kl,p.RowItem=Zn,p.SearchBar=Il,p.SelectItem=Qn,p.SlotItem=Xn,p.StepsBar=$l,p.SwitchItem=pl,p.TableItem=dl,p.TableMappingColumn=sl,p.TableRadioColumn=ul,p.TableSetting=dn,p.TabsBar=wl,p.TabsContainer=Sl,p.TabsPane=xl,p.Text=Al,p.TimeItem=tl,p.TimeSelectItem=nl,p.Toast=kl,p.Tour=Ll,p.TreeSelectItem=yl,p.UniqueID=Bo,p.ValidateSchema=wo,p.ValidateSchemaKey=je,p.cancelRaf=na,p.clearNonNumber=ga,p.clone=On,p.compareTo=Nn,p.createBroadcast=Wt,p.createValidateSchema=Ut,p.debounce=It,p.debounceRef=Ea,p.decimalLength=ho,p.default=Ch,p.defineBroadcast=ba,p.defineConfigDomain=To,p.defineDataItem=Co,p.defineDomain=Mn,p.defineItem=Ce,p.definePageState=No,p.defineSimpleItem=$o,p.deleteGlobalValidator=Ta,p.disabledProperty=De,p.divide=$n,p.excludeProps=ke,p.extend=st,p.floatData=ya,p.getGlobalValidateCheckEvents=yo,p.getGlobalValidateResetEvents=vo,p.getPageContentAreaHeight=Qt,p.getPageContentAreaWidth=en,p.getPageFooterAreaHeight=Vt,p.getPageHeaderAreaHeight=Ot,p.getRootDomain=mt,p.hasSymbol=ao,p.includeProps=mo,p.indexOf=ma,p.integerLength=fo,p.isArray=oa,p.isArrayLike=so,p.isBrowser=ut,p.isDate=ia,p.isESModule=ua,p.isEmptyString=pe,p.isEqual=Xe,p.isFunction=kn,p.isHidden=Kt,p.isInnerPage=Oa,p.isMap=ra,p.isNil=Fn,p.isNumberString=co,p.isObject=Ge,p.isPlainObject=In,p.isPromise=oo,p.isRegExp=Dn,p.isSet=aa,p.isString=lo,p.isSubPage=Va,p.isSymbol=sa,p.isTouch=Vl,p.isWindow=io,p.lastIndexOf=pa,p.makeArray=ha,p.merge=uo,p.multiply=eo,p.negate=to,p.nextTick=fa,p.numberFormat=jt,p.objectToString=ro,p.once=ka,p.overrideGlobalValidateHandler=Sa,p.property=Ve,p.raf=En,p.readonlyProperty=Fe,p.setGlobalValidateCheckEvents=Ca,p.setGlobalValidateHandler=wa,p.setGlobalValidateMessages=Na,p.setGlobalValidateResetEvents=$a,p.setGlobalValidator=xa,p.throttle=xo,p.toBoolean=ue,p.toNumber=Se,p.toPadding=Ke,p.toPx=he,p.toPxDesc=Ie,p.toTypeString=zt,p.toValue=ge,p.tryTimes=Xt,p.typeOf=Ht,p.unNumberFormat=no,p.updatePageState=Ln,p.useBroadcast=Nt,p.useDomain=tt,p.useExpose=$e,p.useInnerSize=Pn,p.usePageState=Jt,p.usePosition=Ao,p.useRawTouch=Fl,p.useRect=Pr,p.useSize=nn,p.useTouch=hd,p.valueLength=$t,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});