@fox-js/foxui-pc 4.0.1-111 → 4.0.1-113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +1042 -1037
- package/dist/index.umd.js +3 -3
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(y,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],o):(y=typeof globalThis<"u"?globalThis:y||self,o(y.FoxUI={},y.Vue,y.FoxValidator,y.ElementPlus,y.ElementPlusIconsVue,y.FoxI18n))})(this,function(y,o,Qe,p,Te,Fe){"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0 Mon
|
|
3
|
-
*/const
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Mon May 06 2024 08:39:46 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Dt=window,Hr=typeof window<"u";function Kr(){return typeof Dt<"u"?Dt.requestAnimationFrame||Dt.webkitRequestAnimationFrame||function(e){Dt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Wr(e){Hr?cancelAnimationFrame(e):clearTimeout(e)}const _o=Kr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Dt(e,t="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=un($e(e),$e(t)),l==1&&(n==1?e=sn(e):t=sn(t));let r=_o(e,t);return l?l==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(sn(r)):$e(r)}function sn(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return _o(t,a)}function $e(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function un(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function _o(e,t){[e,t]=un(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var me=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(me||{});function mt(e,t=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],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=mt(e,0,l),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,qo(r[1],a,n,l)?(n?"-":"")+cn(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&&qo(s,i,n,l)&&(i=cn(i),i.length>t)?(n?"-":"")+cn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function qo(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function cn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function fn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=yt(e),t=yt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,f="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let E=t.length-1;E>=d&&E>=0;E--)u[E]>-1&&u[E]<e.length&&(b+=parseInt(e[u[E]--])*parseInt(t[E]));b+=s,s=Math.floor(b/10),f=b%10+f,d--}return f=yt(Yr(f,a)),l==1&&(f="-"+f),f}function Yr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function yt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function dn(e,t,l=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=$e(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=$e(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=$e(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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(l=l+2;a<=l;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Dt(u,"-"+t),d++;s+=d,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?"-":"")+$e(mt(s,l-2))}function hn(e,t){return e=e.toString(),t=t.toString(),t=gn(t),Dt(e,t)}function gn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Po(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),jo(e),jo(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=hn(e,fn(t,mt(dn(e,t),0,me.FLOOR)));return l+n}function jo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function zo(e,t){let l=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),l=!0),[e,t]=un(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?l?-1:1:l?1:-1;return 0}class ce{value;static RoundingModes=me;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[l,n]=t.split(/[eE]/);l=$e(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+$e(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=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<l?(l=s,s=0):s-=l,i=t.substring(s,s+l)+(s<a-l&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return ce.getPrettyValue(this.value,t,l)}static round(t,l=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return mt(t,l,n)}round(t=0,l=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,l))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,l){return t=ce.validate(t),l=ce.validate(l),Dt(t,l)}add(t){return new ce(Dt(this.value,t.getValue()))}static subtract(t,l){return t=ce.validate(t),l=ce.validate(l),hn(t,l)}subtract(t){return new ce(hn(this.value,t.getValue()))}static multiply(t,l){return t=ce.validate(t),l=ce.validate(l),fn(t,l)}multiply(t){return new ce(fn(this.value,t.getValue()))}static divide(t,l,n){return t=ce.validate(t),l=ce.validate(l),dn(t,l,n)}divide(t,l){return new ce(dn(this.value,t.getValue(),l))}static modulus(t,l){return t=ce.validate(t),l=ce.validate(l),Po(t,l)}modulus(t){return new ce(Po(this.value,t.getValue()))}static compareTo(t,l){return t=ce.validate(t),l=ce.validate(l),zo(t,l)}compareTo(t){return zo(this.value,t.getValue())}static negate(t){return t=ce.validate(t),gn(t)}negate(){return new ce(gn(this.value))}}function Ho(e,t){return ce.multiply(`${e}`,`${t}`)}function mn(e,t,l=8){return ce.divide(`${e}`,`${t}`,l)}function yn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Ko(e){return ce.negate(e)}function Ft(e,t=-1,l=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):l&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",b=s.split("").reverse();for(let E=0;E<b.length;E++)c+=b[E]+((E+1)%n==0&&E+1!=b.length?r:"");u.length==0?f=`${i}${c.split("").reverse().join("")}`:f=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function Wo(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const pn=Bo,Gr=Array.isArray,Ur=e=>Rt(e)==="[object Map]",Xr=e=>Rt(e)==="[object Set]",Zr=e=>e instanceof Date,bn=e=>typeof e=="function",Yo=e=>typeof e=="string",Jr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",Go=e=>ze(e)&&bn(e.then)&&bn(e.catch),Uo=Object.prototype.toString,Rt=e=>Uo.call(e),vn=e=>Rt(e)==="[object Object]",Xo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Qr(e){return e.__esModule||Xo&&e[Symbol.toStringTag]==="Module"}const ea=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=et(r,d,u)}else u!==void 0&&(t[i]=u)}}return t}function wn(e,t,l=!1){if(!l)et(!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)&&!vn(i))continue;a=wn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!vn(i))continue;a=wn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const Sn=ea?Promise.resolve():null;function ta(e,...t){Sn!==null?t&&t.length>0?Sn.then(()=>{e(t)}):Sn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const na={"[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 At(e){let l=Object.prototype.toString.call(e);return e==null?String(e):na[l]||"object"}function Zo(e){return e&&typeof e=="object"&&"setInterval"in e}function Lt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Jo(e){let t=!!e&&"length"in e&&e.length,l=At(e);return l==="function"||Zo(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Qo(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function oa(e,t=[]){let l=t;return e!=null&&(Jo(Object(e))?Qo(l,typeof e=="string"?[e]:e):l.push(e)),l}function He(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=At(e),n=At(t);if(l!==n)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],d=t[s];if(!He(u,d))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!He(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function xn(e){return e==null}function el(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function tl(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function nl(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const l=t.indexOf(".");return l==-1?t.length:l}function ol(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function ll(e,t,l){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function la(e,t=!0,l=!0){t?e=ll(e,".",/\./g):e=e.replace(/\./g,""),l?e=ll(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(He(e,l))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(He(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function pt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function rl(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function Ce(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const ia=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class Tn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,l,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):el(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,l,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Mt(e,t,l,n){const r=new Tn(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function sa(e,t,l){const n=l;if(n[be])return n[be];const r=o.inject(be,null),a=new Tn(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,o.provide(be,a),o.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function bt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[be]??o.inject(be,null):o.inject(be,null)}const nt=e=>e.default??e;class ua{error(t,l){const n=l,r=bt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=bt(n),i=l.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 al=new ua;function ca(e){al=e}function fa(e,t){nt(Qe).setValidator(e,t)}function da(e){nt(Qe).deleteValidator(e)}let il=["blur","clear"];function ha(e){il=e}function sl(){return il}let ul=["focus","change"];function ga(e){ul=e}function cl(){return ul}function ma(e){nt(Qe).messages(e)}function vt(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Bt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ke=Symbol("ValidateSchemaKey");class fl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=o.effectScope(),this.scope.run(()=>{o.watchEffect(()=>{const l=Bt(vt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Bt(n);const r=vt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=al;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,l,n=!1){n?nt(Qe).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return nt(Qe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const l=vt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Bt(t):this.rules=Bt([t]);const n=vt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=vt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},s=nt(Qe),u=new s(r),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function _t(e,t,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new fl(t,l,e)}const dl=Symbol.for("EventEmitterKey");class ya{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function wt(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function hl(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function pa(e,t){const l=wt((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function ba(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function qt(e,t,l,n=0,r=!0,a){let i=t,s=0;if(r){const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),at=Symbol("DataItemsKey");class Pt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const va=new Pt;function it(){return va}function We(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[Le]??o.inject(Le,null):o.inject(Le,null)}const $n=Symbol("OriginalDateKey");function Cn(e,t,l=[],n){const r=o.getCurrentInstance(),a=r?.proxy;let i=o.inject(Le,null);i===null&&(i=it());const s=e||t.prop||t.name,u=new Pt(s);u.parent=i;const d=h=>{a[$n]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,c=()=>a[$n]??null,b=h=>{const g={};et(!0,g,o.toRaw(h)),a[$n]=g};o.isReactive(t)||typeof t=="function"?o.watch(t,h=>{u.merge(h,l)},{immediate:!0}):u.merge(t,l),t.modelValue&&b(t.modelValue),a[Le]=u,o.provide(Le,u);let E=null,m=null;if(r!==null){const h=o.inject(be,null);E=Mt(a,h,s,n),u.broadcast=E,a[be]=E,o.provide(be,E),a.broadcast=($,w,...I)=>Reflect.apply(E.emit,E,[$,w,...I]);const g=o.inject(Ke,null);m=_t(a,g,{componentName:""}),u.validateSchema=m,a[Ke]=m,o.provide(Ke,m),a[at]=new Map,a.validate=($=!0)=>{const w=[];let I=null;const q={deep:!1};if($===!0)I={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;I={name:A=>A?B.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(Object.assign(q,B),Array.isArray(B.include)&&B.include.length>0){const A=B.include;I={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;I={name:L=>L?A.indexOf(L)===-1:!1}}else I={name:"*"}}if(I){const B=E?.emitToChildren(I,"validate",q);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let A=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,I=!1)=>{if(I===!0){Reflect.ownKeys($).forEach(B=>{let A=String(B);const _=yl(u,A,{componentName:"",fieldName:A,pureDataValidate:!0},E,m);a[at].set(A,_);const C=$[A];C&&_.validateSchema.setRule(C)});return}if(w){const q=Reflect.ownKeys($),B={name:A=>q.includes(A)};E?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const I=$;w={name:q=>q?I.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const I=$;if(Array.isArray(I.include)&&I.include.length>0){const q=I.include;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const q=I.exclude;w={name:B=>B?q.indexOf(B)===-1:!1}}else w={name:"*"}}w&&E?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const I={};if(et(!0,I,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=I[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=I[B]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(I).forEach(B=>{q.includes(B)||(w[B]=I[B])})}else Object.assign(w,I);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===s?d($):E?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return o.onUnmounted(()=>{u.destroy(),a[Le]=void 0,a[at]&&(a[at].clear(),a[at]=void 0),E!==null&&(E.destroy(),a[be]=void 0),m!==null&&(m.destroy(),a[Ke]=void 0)}),u}function gl(e,t,l=[]){const r=o.getCurrentInstance()?.proxy;let a=o.inject(Le,null);a===null&&(a=it());const i=e||t.prop||t.name,s=new Pt(i);return s.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,u=>{s.merge(u,l)},{immediate:!0}):s.merge(t,l),r[Le]=s,o.provide(Le,s),o.onUnmounted(()=>{s.destroy(),r[Le]=void 0}),s}function ml(e,t,l){const r=We(e)?.get("rules");if(!r)return;let a=r[l];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Se(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(be,null),s=Mt(r,i,a,l);r[be]=s,o.provide(be,s),r.broadcast=(m,h,...g)=>Reflect.apply(s.emit,s,[m,h,...g]);const u=o.inject(Ke,null);e.fieldName=e.fieldName??a;const d=_t(r,u,e);r[Ke]=d,o.provide(Ke,d),ml(r,d,a),r.validate=(m=null)=>{const h=[];let g=!1,$=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)$=!0,g=!0;else if(m&&typeof m=="object"){const w=m,I=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;I===!0&&e.disabled===!0||q===!0&&e.readonly===!0||B===!0&&Lt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),$=!0;if($){const w=d?.validate();h.push(w)}if(g){let w=null;const I={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const q=m;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(m!=null&&typeof m=="object"){const q=m;if(Object.assign(I,q),Array.isArray(q.include)&&q.include.length>0){const B=q.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const B=q.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const q=s.emitToChildren(w,"validate",I);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let I=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(I=[...I,...q.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>d?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&d?.setRule(g),h){const $={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren($,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:$=>$?g.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const $=g.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new ya(r);r[dl]=f;const c=wt((m="validate")=>{m==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sl()).forEach(m=>{f.on(m,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cl()).forEach(m=>{f.on(m,h=>{c("reset")})}),o.onUnmounted(()=>{s.destroy(),r[be]=void 0,d.destroy(),r[Ke]=void 0,f.destroy(),r[dl]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(m,...h)=>{Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{Reflect.apply(f.off,f,[h])}}}function yl(e,t,l,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};l.fieldName=i,l.validateHandler={getValue(f){return s.getValue()}};const u=_t({},r,l);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,E=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)E=!0,b=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),E=!0,b=m.deep??!1}else typeof f=="boolean"&&(b=f),E=!0;if(E){const m=u?.validate();c.push(m)}if(b){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:$=>$?g.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const $=g.include;m={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;m={name:w=>w?$.indexOf(w)===-1:!1}}else m={name:"*"}}if(m){const g=d.emitToChildren(m,"validate",h);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[i];c&&u?.setRule(c)};const d=Mt(null,n,i,a);return{broadcast:d,validateSchema:u}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(tt){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(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*t;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function Nn(e,t,l={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=fe(l.headerHeight??t.headerHeight??-1),e.headerPadding=qe(l.headerPadding??t.headerPadding),e.footerHeight=fe(l.footerHeight??t.footerHeight??-1),e.footerPadding=qe(l.footerPadding??t.footerPadding),e.contentPadding=qe(l.contentPadding??t.contentPadding),n){const u=l.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(i,a)-fe(s,a),e.width=fe(l.width??t.width??0,r)}}function pl(e,t={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Nn(n,a,t,!0,i,s,u,d);const f=o.reactive(n),c=e.getForParent(Xe);c&&(n.height=zt(e,c),n.width=Ht(e,c),o.watch([()=>zt(e,c),()=>Ht(e,c)],([E,m])=>{f.height=E,f.width=m}));const b=!c;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,m,h=-1,g=-1,$=0,w=0])=>{Nn(f,m,t,b,h,g,$,w)}),e.set(Xe,f),f}function jt(e){return e.get(Xe)}function St(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function xt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function zt(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=St(e,t),n=xt(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ht(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function wa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function Sa(e){return!!e.getForParent(Xe)}var Re=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Re||{});function En(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,l=1,n){const r=We();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(En(u,n))return u}const i=e.value;return En(i,n)?i:null}):o.computed(()=>{const a=e.value;return En(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(l){return se(l)})}function Oe(e){return ke(e,"disabled",0,function(l){return se(l)})}function de(e,t="modelValue",l){const n=o.toRef(e,t);let r=n.value;typeof l=="function"&&(r=l(n.value));const a=o.ref(r);return o.watch(n,i=>{if(typeof l=="function"){const s=l(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const bl=new Map,Kt=new Map;let kn=null;function xa(e){kn=e}function vl(e,t,l){if(l){let n=Kt.get(l);n||(n=new Map,Kt.set(l,n)),n.set(e,t)}else bl.set(e,t)}function Be(e,t,l){!l&&kn&&(l=kn(e)??void 0);let n=null;if(l){let r=Kt.get(l);r&&(n=r.get(t))}return n||(n=bl.get(t)),n}function Ta(e,t){for(let l in e){const n=e[l];vl(l,n,t)}}function $a(e){Kt.delete(e)}function Ca(){return{top:0,left:0,bottom:0,right:0}}function Na(e=0,t=0){if(tt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:n-fe(e,n)-fe(t,n)};return{rootWidth:l,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Ea{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hl(()=>{const s={...l},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=et({},Ca(),t.safeAreaInset),i=Na(n,r),s=et({},i.pageLayout,t.pageLayout);l=l??it(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){xa(t)}setAPI(t,l,n){vl(t,l,n)}getAPI(t,l,n){return Be(t,l,n)}batchSetAPI(t,l){Ta(t,l)}clearScopeAPI(t){$a(t)}getRootDomain(){return it()}}const ka=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Ia=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Oa=e=>{ka.forEach(t=>{let l=t.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,t)):e.use(t)}),Ia.forEach(t=>{e.use(t)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function xe(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.proxy;Object.assign(l,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ee={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},wl={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}},Sl={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}},xl=[];for(const e in Sl)xl.push(e);const Va=Symbol.for("InnerPageScopeKey"),Da={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}},Fa=(e,t)=>({inheritAttrs:!0,props:{...ve,...wl,...Da},setup(l,{slots:n}){const r=Cn(l.name,l),a=o.inject(Va,!1);if(r){const f=pl(r,l);xe({getPageContentHeight:()=>zt(r,f),getPageContentWidth:()=>Ht(r,f),getPageHeaderHeight:()=>St(r,f),getPageFooterHeight:()=>xt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),s=o.computed(()=>({})),u=o.getCurrentInstance(),d=(f,c=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(f,!0,c)};return o.watch([()=>l.rules,()=>l.pureDataRules],([f,c],[b,E])=>{if(f&&b){const m=o.toRaw(b),h=o.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h)}if(c&&E){const m=o.toRaw(E),h=o.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const f=o.toRaw(l.rules);d(f)}if(l.pureDataRules){const f=o.toRaw(l.pureDataRules);d(f,!0)}}),()=>{const f={class:i.value,style:s.value};return o.h("div",f,[n?.default?.()])}}}),{componentName:Ra,create:Aa,scope:mh}=ie("page"),In=Aa(Fa(Ra));function Wt(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function On(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const La=(e,t,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=We(),s=i?jt(i):null;s&&(s.headerMounted=!0);const u=e,d=o.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=o.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?fe(r.height):null,b=o.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=qe(r.padding??s.headerPadding);return Object.assign(k,T),c&&(s.headerHeight=c),s.headerHeight>0&&(k.height=s.headerHeight),k.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(T.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const T=qe(r.padding);Object.assign(k,T)}return k}),E=o.ref(null),m=()=>{if(s&&E.value&&!Lt(E.value)){if(!n){const k=Wt(E.value);s.headerAllHeight=k.height}return s.headerMounted=!0,!0}return!1};let h=null;o.onMounted(()=>{s&&(qt(m,50,5,50,!0),window.ResizeObserver&&E.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(E.value)))}),o.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=o.computed(()=>{const k={};return b.value.height!==null&&b.value.height!==void 0&&(k.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(k.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(k.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(k.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(k.paddingBottom=`${b.value.bottom}px`),k}),$=o.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function I(){a.emit("click-title")}function q(){a.emit("click-right")}function B(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(T)}else if(r.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[o.h(r.leftIcon)]);k.push(T)}if(r.leftText){const T=o.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(T)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__left"},k)},L=()=>{if(!r.rightShow)return null;const k=[];if(a.slots.right)k.push(a.slots.right());else{if(r.rightText){const T=o.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(T)}if(a.slots.rightIcon){const T=o.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);k.push(T)}else if(r.rightIcon){const T=o.h("view",{class:"right-icon",onClick:q},[o.h(r.rightIcon)]);k.push(T)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__right"},k)},_=()=>{if(!r.titleShow)return null;const k=[],T=a.slots.default?a.slots.default():null;if(T)k.push(T);else{if(r.title){const H=o.h("view",{class:"title-text"},[r.title]);k.push(H)}if(a.slots.titleIcon){const H=o.h("view",{class:"title-icon",onClick:I},[a.slots.titleIcon()]);k.push(H)}else if(r.titleIcon){const H=o.h("view",{class:"title-icon",onClick:I},[o.h(r.titleIcon)]);k.push(H)}}return k.length===0?null:o.h("view",{class:"fox-header-bar__title"},k)},C=()=>{const k=[],T=a.slots.bottom?a.slots.bottom():null;return T&&k.push(T),k.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},k)};return()=>{if(!$.value)return null;const k=[];if(a.slots.all)k.push(a.slots.all());else{const H=[],N=A();N&&H.push(N);const O=_();O&&H.push(O);const R=L();if(R&&H.push(R),H.length>0){const W=o.h("view",{class:f.value},H);k.push(W)}const U=C();U&&k.push(U)}if(k.length===0)return null;const T={class:d.value,style:g.value,ref:E};return o.h("view",T,k)}}}),{componentName:Ma,create:Ba,scope:_a}=ie("header-bar"),Vn=Ba(La(Ma,_a,Te.ArrowLeft));function qa(e,t,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=We(),i=a?jt(a):null,s=o.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?fe(n.height):null,d=o.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=qe(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=qe(n.padding);Object.assign(m,h)}return m}),f=o.ref(null),c=()=>{if(i&&f.value&&!Lt(f.value)){if(!l){const m=Wt(f.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let b=null;o.onMounted(()=>{i&&(qt(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(f.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const E=o.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=Ne(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=Ne(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=Ne(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=Ne(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=Ne(d.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:E.value};return o.h("view",h,m)}}}}const{componentName:Pa,create:ja,scope:yh}=ie("footer-bar"),Dn=ja(qa(Pa));function za(e,t){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=We(),r=o.computed(()=>({[e]:!0})),a=n?jt(n):null,i=o.computed(()=>{const d={};if(n&&a){if(l.padding){const E=qe(l.padding);Object.assign(a.contentPadding,E)}const f=St(n,a),c=xt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,d.height=b,a.contentPadding.top||f>0){const E=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+E}px`}if(a.contentPadding.bottom||c>0){const E=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+E}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(l.padding){const f=qe(l.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),s=o.ref(null),u=()=>{if(a&&s.value){const d=On(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return o.onMounted(()=>{u()}),n&&a&&o.watch([()=>St(n),()=>xt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ha,create:Ka,scope:ph}=ie("content"),Wa=Ka(za(Ha));function Ya(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("div",{ref:"contentRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Fn=Me(Wa,[["render",Ya]]),st="GroupStateKey",Tl=Symbol.for("GroupScopeKey");function Yt(){return o.inject(Tl,!1)}function Gt(e=!0){o.provide(Tl,e)}function Ga(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];xn(r)||(e[n]=r)})}function Ua(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ga(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function Rn(e,t,l=-1,n=-1,r=!1,a,i,s){const u=e.get(st);if(!u)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const f=fe(a),c=fe(i);s||(s=d.type??"grid");const b=()=>{const E=t===""||t===-1,m=fe(t);let h=pe(l);const g=fe(n);if(!E){let I=(m-(h-1)*g)/h;for(;c!==-1&&I>c;)h++,I=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&I<f;)h--,I=(m-(h-1)*g)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==g&&(w.value.gutter=g,$=!0),w.value.type!==s&&(w.value.type=s,$=!0),$&&o.triggerRef(w)};if(r)b();else{const E=++u.passport;setTimeout(()=>{E===u.passport&&b()},50)}}function Ut(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.layout}function Xt(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.order}function $l(e,t=1){if(t==="stretch")return-1;const l=pe(t);return l===-1?100:100*l/e}function Zt(e,t,l=1,n=0,r){const a={};let i=0;r?i=fe(r):i=$l(t.column,l),i>0&&(a.width=`${i}%`);const s=$l(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 Jt(e,t,l=1,n=0){if(l==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=pe(l);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=pe(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 Cl=Symbol("RollingStateKey");function Xa(e){o.provide(Cl,e)}function Za(){return o.inject(Cl,null)}function An(e){let t=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function Ja(e){let t=An(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=An(l),document.body.removeChild(l)}return t}function Qa(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const ei={...ve,...wl,...Sl};function ti(e,t,l){return{props:ei,emits:["update:collapse"],setup(n,r){const a=Cn(n.name,n,xl),i=Ua(a,{type:n.type}),s=Yt();Gt(!0);const u=n.rollingDisplay?Za():null,d=o.ref(null),f=o.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=o.computed(()=>s&&a?Ut(a,!0).value:null),b=o.getCurrentInstance(),E=(P,Y=!1)=>{const Q=b?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(P,!0,Y)};o.watch([()=>n.rules,()=>n.pureDataRules],([P,Y],[Q,ne])=>{if(P&&Q){const S=o.toRaw(Q),G=o.toRaw(P),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),E(G)}if(Y&&ne){const S=o.toRaw(ne),G=o.toRaw(Y),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),E(G,!0)}},{deep:!0});const m=e,h=o.computed(()=>{const P={};P.height=R.value;const Y=s?Xt(a,!0):null;if(c.value&&Y){if(c.value.type==="grid"){const Q=Jt(Y,c.value,n.span,n.offset);Object.assign(P,Q)}else if(c.value.type==="flow"){const Q=Zt(Y,c.value,n.span,n.offset,n.width);Object.assign(P,Q)}}else if(n.width){const Q=Ne(n.width);P.width=Q}return P}),g=o.computed(()=>{const P=i.layout.value.type;return P==="grid"||P==="flow"?{[`${m}--${P}`]:!0,[`${m}--${P}-justify-${n.justify}`]:!0,[`${m}--${P}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${P}`]:!0,[`${m}--gutter`]:!0}}),$=o.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=Qa(_.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),w=o.toRef(n,"gutter"),I=o.toRef(n,"column"),q=o.computed(()=>s||f.value?!0:se(n.isWrap)),B=[],A=P=>{B.push(P)},L=()=>{let P=B.length;B.splice(0,P)},_=o.ref(-1),C=P=>{const Y=On(P).width;Y>0&&Y!==_.value&&(_.value=Y)};Rn(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([_,I,w],([P,Y,Q])=>{i.order.index=0,Rn(a,P,Y,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=o.computed(()=>U.value?n.expandText??"":n.collapseText??""),T=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),H=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),N=o.ref(),O=o.ref(),R=o.computed(()=>W.value||Ne(n.height)||""),U=o.ref(!1),W=o.ref(""),J=o.ref(!1);let Z=-1;const ee=(P,Y=!0)=>{const Q=N.value;if(Q&&U.value!==P){if(Z=Z===-1?Ja(Q):Z,J.value=!0,Y)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",P||(W.value="",J.value=!1)},P){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${Z}px`,o.nextTick(()=>{W.value=`${ne}px`})}else W.value=`${Z}px`;else if(P){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${ne}px`}else J.value=!1,W.value=`${Z}px`;U.value=P,r.emit("update:collapse",P)}};o.watch(()=>n.collapse,P=>{ee(P)});const re=()=>{D()},D=P=>{P=P??!U.value,ee(P)};xe({toggleCollapse:D,doLayout:()=>{B[0]&&(C(B[0]),Rn(a,_.value,I.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let F=null,V=!0;const v=P=>{if(n.rules){const Y=o.toRaw(n.rules);E(Y)}if(n.pureDataRules){const Y=o.toRaw(n.pureDataRules);E(Y,!0)}if(tt&&(P&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const Y=B[0];C(Y),window.ResizeObserver&&(F=new window.ResizeObserver(()=>{C(Y)}),F.observe(Y))}},K=()=>{F?.disconnect(),F=null},j=!f.value||u?.acquire();j&&(d.value=f.value?!0:null),o.onMounted(()=>{if(j&&(v(V),V=!1),f.value&&u){let P=null,Y=u.initialHeight;u.observe(N.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(W.value=""),P=setTimeout(()=>{P=null,d.value!==!1&&(v(V),V=!1)},100);else{if(P!==null&&clearTimeout(P),d.value=!1,!U.value)if(V)W.value=u.initialHeight;else{let ne=An(N.value);ne<=0?W.value=Y:(W.value=`${ne}px`,Y=W.value)}V||K()}})}}),o.onUnmounted(()=>{F?.disconnect(),u&&u.unobserve(N.value)});const z=(P="right")=>{const Y=[];if(k.value){const S={class:T.value},G=o.h("span",S,[k.value]);Y.push(G)}const Q={class:H.value},ne=l(n.collapseIcon,Q);return ne&&Y.push(ne),Y.length>0?o.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${P}`]:!0},onClick:re},Y):null},M=(P,Y,Q,ne)=>{const S={...g.value};return Y===0&&(S[`${m}__first`]=!0),Q>=ne-1&&(S[`${m}__last`]=!0),o.h("div",{ref:A,key:`${Y}`,class:S,style:$.value},P)};return()=>{if(f.value&&d.value!==!0){const S=n.tag||"div";return o.h(S,{ref:N,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const P=[];let Y=0;if(r.slots.header){const S={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},G=o.h("div",S,[r.slots.header()]);P.push(G)}else{const S=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=z("left");te&&S.push(te)}if(n.title||r.slots.title){if(n.showMark){const te={class:{[`${m}__header-mark`]:!0}};n.markColor&&(te.style={background:n.markColor});const le=o.h("div",te);S.push(le)}if(r.slots.title){const te=o.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);S.push(te)}else if(n.title){const te=o.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);S.push(te)}}if(r.slots.toolbar&&S.push(r.slots.toolbar()),!G&&n.showCollapse){const te=z("right");te&&S.push(te)}if(S.length>0){const te={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},le=o.h("div",te,S);P.push(le)}}L();const Q=r.slots.default?r.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const S=M(Q,Y++,0,Q.length);P.push(S)}else if(ne==="flow"){const S=M(Q,Y++,0,Q.length);P.push(S)}else for(let S=0;S<Q.length;S++){const G=Q[S],te=M([G],Y++,S,Q.length);P.push(te)}if(q.value){const S=n.tag||"div";return o.h(S,{ref:N,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[P])}else return P}}}}const{componentName:ni,create:oi,scope:li}=ie("group"),Ln=oi(ti(ni,li,(e,t)=>(e=e??Te.ArrowUp,o.h(p.ElIcon,t,{default:()=>[o.h(e)]}))));function ri(e){return e===window}const ai=/matrix\((.+)\)/,Nl=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(ri(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ai.exec(d);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}r=r.parentNode}return l-=a,n-=i,l+=s,n+=u,{x:l,y:n}};class ii{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class si{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new ii,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const El=new si,kl={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ui,create:ci}=ie("price"),fi=ci({props:{...kl},setup(e){const t=o.computed(()=>({[ui]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>pt(e.price)==0?"":Ft(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),di=["innerHTML"],hi=["innerHTML"];function gi(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,di)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,hi)):o.createCommentVNode("",!0)],2)}const Qt=Me(fi,[["render",gi]]),{componentName:Mn,create:mi}=ie("hint-text"),yi=mi({components:{Price:Qt},props:{...kl,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const l=o.ref({top:null,right:null,bottom:null,left:null}),n=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),s=o.ref(!1),u=o.ref(null),d=(T,H,N,O,R,U)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Z=T.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},D=[];for(let x=0;x<ee.length;x++){const F=ee[x];if(D[0]=F,Z[1]&&(D[1]=Z[1]),F==="top"){const V=H.y-U-e.arrowSize-e.offset;if(V>=0){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+N-R:v=H.x+N/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="bottom"){const V=H.y+O+e.arrowSize+e.offset;if(V+U<=J){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+N-R:v=H.x+N/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="left"){const V=H.x-R-e.arrowSize-e.offset;if(V>=0){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}else if(F==="right"){const V=H.x+N+e.arrowSize+e.offset;if(V+R<=W){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:D.join("-"),bestInsetRect:re}},f=(T,H,N=10)=>{if(!tt||H===!1||!T)return;n.value=Nl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:W}=d(e.placement,n.value,r.value,a.value,R,O);i.value=U,l.value=W,s.value=!0},c=o.ref(0),b=wt(()=>{f(e.message,e.visible)},10),E=o.ref(e.visible);o.watch(()=>e.visible,T=>{E.value=T});const m=o.computed(()=>E.value&&h.value),h=o.ref(!0),g=wt(T=>{const H=T[0];H&&(h.value=H.isIntersecting)},10),$=new IntersectionObserver(g);o.watch([()=>e.message,()=>e.visible],([T,H])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),El.watch(e.reference,b),$.observe(e.reference)}),o.onBeforeMount(()=>{El.unwatch(e.reference,b),$.unobserve(e.reference),$.disconnect()});const w=o.computed(()=>{const T={[Mn]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),I=o.computed(()=>{const T={};l.value.top!==null&&(T.top=`${l.value.top}px`),l.value.right!==null&&(T.right=`${l.value.right}px`),l.value.bottom!==null&&(T.bottom=`${l.value.bottom}px`),l.value.left!==null&&(T.left=`${l.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const H=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${H}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),q=o.computed(()=>{const T=[`${Mn}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),B=o.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),A=o.computed(()=>({[`${Mn}__arrow`]:!0})),L=o.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),_=o.computed(()=>m.value&&e.closeOnClick),C=o.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:m,tipRef:u,classes:w,styles:I,textClasses:q,textStyles:B,arrowClasses:A,arrowStyles:L,overlayShow:_,overlayStyle:C,onClickOverlay:()=>{E.value=!1,t.emit("update:visible",!1)}}}}),pi=["innerHTML"];function bi(e,t,l,n,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,pi))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const Tt=Me(yi,[["render",bi]]);class Il{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 Bn={},vi=new Il,ut=new Map,en=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}ut.clear()}},wi=e=>{e.unmount=en;const t=document.getElementById(e.id);if(t){const l=ut.get(e.id);l?e={...Bn,...l,...e}:e={...Bn,...e},e.transition=!1;const n=o.createVNode(Tt,e);return o.render(n,t),e.id}},Si=e=>{e.unmount=en;let t=e.id??`hinttext_${vi.get()}`;e={...Bn,...e},e.id=t,ut.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode(Tt,e);return o.render(n,l),document.body.appendChild(l),t},xi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,l={},n=!0){xi(t);const r=l.id;return r&&ut.has(r)?wi({...l,message:t,reference:e}):(n&&en(),Si({...l,message:t,reference:e}))},hide(e){en(e)},install(e){e.config.globalProperties.$hintText=Ve}};function Ti(e,t,l,n=!1){return{inheritAttrs:!0,props:{...ve,...Ee},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Se({componentName:e,validate:!1},i);const s=We(),u=Yt();Gt(!1);const d=o.computed(()=>u&&s?Ut(s,!1).value:null),f=e,c=o.ref(null),b=o.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!U.value,S[r.warnMarkClass]=!!O.value,S[r.infoMarkClass]=!!H.value,typeof c.value=="function"){const G=c.value(i);S[G]=!0}else if(typeof c.value=="string"){const G=c.value;S[G]=!0}return S}),E=o.ref(null),m=o.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=Ne(r.width));else{const G=u&&s?Xt(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const te=Jt(G,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=Zt(G,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof E.value=="function"){const G=E.value(i);G&&Object.assign(S,G)}else if(E.value&&typeof E.value=="object"){const G=E.value;Object.assign(S,G)}return S}),h=o.ref(null),g=o.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(o.toRef(r,"labelPosition"),"labelPosition",Re.Near),I=o.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=o.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${I.value}`]:!0})),B=o.computed(()=>({label:!0,[`label--${I.value}`]:!0})),A=ke(o.toRef(r,"labelWidth"),"labelWidth",Re.Near),L=o.computed(()=>A&&A.value?{width:Ne(A.value)}:{}),_=o.computed(()=>({"label--string":!0,"label--required":g.value})),C=o.computed(()=>({content:!0,[r.contentClass]:!0})),k=o.computed(()=>({...r.contentStyle})),T=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(S){g.value=S},setErrorTip(S){T.errorTip=S},setErrorIcon(S){T.errorIcon=S},setWarnTip(S){T.warnTip=S},setWarnIcon(S){T.warnIcon=S},setInfoTip(S){T.infoTip=S},setInfoIcon(S){T.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){E.value=S}});const H=o.computed(()=>r.infoTip||T.infoTip),N=o.computed(()=>r.infoIcon||T.infoIcon),O=o.computed(()=>r.warnTip||T.warnTip),R=o.computed(()=>r.warnIcon||T.warnIcon),U=o.computed(()=>r.errorTip||T.errorTip),W=o.computed(()=>r.errorIcon||T.errorIcon),J=o.computed(()=>U.value?"error":O.value?"warn":H.value?"info":""),Z=()=>J.value.length>0,ee=o.computed(()=>J.value==="error"?U.value:J.value==="warn"?O.value:J.value==="info"?H.value:""),re=o.computed(()=>J.value==="error"?W.value:J.value==="warn"?R.value:J.value==="info"?N.value:null),D=o.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),x=o.computed(()=>{const S={};return w&&w.value==="top"||!$()?S["padding-left"]="0px":A&&A.value&&(S["padding-left"]=Ne(A.value)),S}),F=o.ref();let V="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,G,te,le])=>{F.value&&(S&&!ge(G)?V?l.show(F.value,G,{...le,id:V,type:te},!0):V=l.show(F.value,G,{...le,type:te},!0):l.hide(V))});let v=null;const K=()=>{v||!F.value||(v=new IntersectionObserver(S=>{let G=!1;for(let te of S)if(te.intersectionRatio>0){G=!0,G&&a.emit("appear",te);break}G||a.emit("disappear")}),v.observe(F.value))},j=()=>{!v||!F.value||(v.unobserve(F.value),v=null)};o.watch(()=>se(r.appearListen),S=>{S?K():j()}),o.onMounted(()=>{se(r.appearListen)&&K()}),o.onUnmounted(j);const z=()=>{if(!$())return null;const S=[],G=a.slots?.label?.()??r.label,te={class:_.value},le=o.h("div",te,[G]);if(S.push(le),a.slots.fixedPreTip){const oe=a.slots.fixedPreTip();S.push(oe)}const X={class:B.value,style:L.value};return o.h("div",X,S)},M=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},le=o.h("div",te,[a.slots.fixedTip()]);S.push(le)}const G={ref:F,class:C.value,style:k.value};return o.h("div",G,S)},P=()=>{const S=re.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--icon"},[S()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(S)]):null},Y=()=>{const S=ee.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--text"},[S()]):o.h("div",{class:"fox-item__tip--text"},[S]):null},Q=()=>{if(!Z())return null;const S=[],G=P();G&&S.push(G);const te=Y();te&&S.push(te);const le={class:D.value,style:x.value};return o.h("div",le,S)},ne=()=>a.slots?.hide?.()??null;return()=>{const S=[],G=[],te=z();te&&G.push(te);const le=M();le&&G.push(le);const X={class:q.value},oe=o.h("div",X,G);S.push(oe);const ae=Q();ae&&S.push(ae);const ue=ne();ue&&S.push(ue);const ye={class:b.value,style:m.value,prop:r.prop};return o.h("div",ye,S)}}}}const{componentName:$i,create:Ci,scope:Ni}=ie("item"),we=Ci(Ti($i,Ni,Ve,!1));function Ei(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const r=We(),a=Yt();Gt(!1);const i=o.computed(()=>a&&r?Ut(r,!1).value:null),s=e,u=o.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),d=o.computed(()=>{const f={},c=a&&r?Xt(r,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=Jt(c,i.value,l.span,l.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=Zt(c,i.value,l.span,l.offset,l.width);Object.assign(f,b)}else return l.width&&(f.width=Ne(l.width)),f;else l.width&&(f.width=Ne(l.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",f,n.slots.default()):o.h("div",f)}}}}const{componentName:ki,create:Ii,scope:vh}=ie("slot-item"),_n=Ii(Ei(ki));function Oi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=We(),s=Yt();Gt(!1);const u=o.computed(()=>{const d={};if(s&&i){const f=Ut(i,!1),c=Xt(i,!1);if(f.value&&c)if(f.value.type==="grid"){const b=Jt(c,f.value,l.span,l.offset);Object.assign(d,b)}else if(f.value.type==="flow"){const b=Zt(c,f.value,l.span,l.offset,l.width);Object.assign(d,b)}else l.width&&(d.width=Ne(l.width))}else l.width&&(d.width=Ne(l.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(l.divide)for(let b=0;b<c.length;b++){if(b>0){const E=o.h("div",{class:{[`${r}__divide`]:!0}});d.push(E)}d.push(c[b])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return o.h("div",f,d)}}}}const{componentName:Vi,create:Di,scope:wh}=ie("row-item"),qn=Di(Oi(Vi)),Pe=(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},Ol={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 Fi(e,t,l){return{props:{...ve,...Ee,...Ol},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),m=N=>{c.value=N,s("update:modelValue",N),s("input",N)},h=N=>{s("change",N)};let g=de(n,"hintText"),$=o.ref(!1);const w=N=>{let R=N.target.value;f.value=!0,ge(g.value)||($.value=!0),s("focus",R,N)},I=N=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let R=N.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,N)},q=()=>{s("clear","")},B=o.ref(!1);let A=null;const L=()=>{n.showTooltip&&B.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{B.value=!0},150))},_=()=>{A&&(clearTimeout(A),B.value=!1,A=null)},C=o.computed(()=>B.value||$.value),k=o.computed(()=>B.value?c.value:g.value),T=o.computed(()=>pt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:m,onFocus:w,onBlur:I,onMouseover:L,onMouseleave:_},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:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=o.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Ol),hintText:k.value,hintVisible:C.value,prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:Ri,create:Ai,scope:Li}=ie("input-item"),Pn=Ai(Fi(Ri,Li,we));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function $t(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Mi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Bi=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function _i(){const e=o.getCurrentInstance();return new Bi(e.proxy)}function Dl(e,t,l){const n=Ze(e,t),r=Ze(e,l);if(n!==r)return!1;const a=$t(e,t),i=$t(e,l);return a===i}function Fl(e,t,l,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Vl(e,i);if(Array.isArray(s)&&s.length>0){const u=Fl(e,a,l,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(l==="text")u=Ze(e,i)===a;else if(l==="item")u=Dl(e,i,a);else{let d=$t(e,i);d==null&&(d=Ze(e,i)),u=d===a}if(u){r.push(i);break}}}}),r}function qi(e){return{text:e,value:e}}const Rl={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},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Pi(e,t,l){return{props:{...ve,...Ee,...Rl},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(P=>Ze(n,P)).join(" "):""),E=(M,P,Y,Q=!0)=>{const ne=Fl(n,M,P,Y);if(ne===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let S=!0;if(ne.length!==c.value.length)S=!1;else for(let G=0;G<ne.length;G++){const te=ne[G],le=c.value[G];if(!Dl(n,te,le)){S=!1;break}}if(!S){c.value=ne;let G=[],te=[],le=[];ne.forEach(ue=>{const ye=$t(n,ue),he=Ze(n,ue);G.push(ye),le.push(he),n.valueType==="text"?te.push(he):n.valueType==="item"?te.push(ue):te.push(ye)});let X,oe,ae;se(n.multiple)?(f.value=G,X=o.toRaw(te),oe=le,ae=o.toRaw(ne)):(f.value=G[0]??"",X=o.toRaw(te[0]??""),oe=le[0]??"",ae=o.toRaw(ne[0])),Q&&(s("update:modelValue",X),s("change",X,ae)),s("update:text",oe)}},m=o.ref(null),h=o.ref(null),g=o.computed(()=>h.value??m.value??[]),$=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,M=>se(M)),w=_i(),I=async(M,P)=>{if(M){const Y=await w.load("select",M,P);if(Y.length>0)if(typeof Y[0]=="string"){let S=Y.map(G=>qi(G));m.value=S}else m.value=Y;else m.value=null}};o.watch([()=>n.source,()=>n.params],([M,P])=>{h.value=null,I(M,P)},{immediate:!$.value});let q=!1;const B=()=>{q||(q=!0,I(n.source,n.params))};o.watch([()=>m.value,()=>n.modelValue],([M,P])=>{if(C()&&se(n.multiple)){He(P,f.value)||(f.value=P);return}E(P,n.valueType,g.value,!1)});let A=null,L=o.ref(!1);typeof n.remoteMethod=="function"&&(A=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const P=await n.remoteMethod(M);P&&(h.value=P)}catch(P){h.value=null,console.error(P)}L.value=!1});let _=null;typeof n.filterMethod=="function"&&(_=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const P=await n.filterMethod(M,m.value);P&&(h.value=P)}catch(P){h.value=null,console.error(P)}L.value=!1});const C=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=o.ref(!1),T=e,H=o.computed(()=>({[T]:!0})),N=M=>{n.allowCreate||C()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):E(M,"value",g.value,!0)};let O=de(n,"hintText"),R=o.ref(!1);const U=M=>{let Y=M.target.value;k.value=!0,ge(O.value)||(R.value=!0),s("focus",Y,M)},W=M=>{setTimeout(()=>{R.value&&(R.value=!1),k.value=!1},0);let Y=M.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),V.value||s("blur",Y,M)},J=()=>{s("clear","")},Z=o.ref(!1);let ee=null;const re=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},D=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=o.computed(()=>Z.value||R.value),F=o.computed(()=>Z.value?b.value:O.value),V=o.ref(!1),v=M=>{V.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},j=(M,P)=>{const Y=[];return M.forEach((Q,ne)=>{const S=Vl(n,Q);if(Array.isArray(S)&&S.length>0){const G=j(S,P),te=Ze(n,Q),X={key:`${te}_${ne}`,label:te};Y.push(o.h(p.ElOptionGroup,X,{default:()=>G}))}else{const G=$t(n,Q),te=Ze(n,Q),le=Mi(n,Q),oe={key:`${G}_${ne}`,label:te,disabled:le,value:G};if(typeof P=="function")Y.push(o.h(p.ElOption,oe,{default:()=>P(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=o.h("span",ae,[G]),ye={class:{"fox-select-item__option-right":!0}},he=o.h("span",ye,[te]),gt=o.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);Y.push(o.h(p.ElOption,oe,{default:()=>gt}))}else n.optionType==="value"?Y.push(o.h(p.ElOption,oe,{default:()=>[G]})):Y.push(o.h(p.ElOption,oe))}}),Y},z=o.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const P={...Pe(r.attrs),ref:z,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:N,onFocus:U,onBlur:W,onVisibleChange:v,onRemoveTag:K};typeof A=="function"&&(P["remote-method"]=A,P.loading=L.value),typeof _=="function"&&(P["filter-method"]=_,P.loading=L.value);const Y={};r.slots.prefix&&(Y.prefix=r.slots.prefix),r.slots.empty&&(Y.empty=r.slots.empty),r.slots.options?Y.default=r.slots.options:Y.default=()=>j(g.value,r.slots.option);const Q=[],ne=o.h(p.ElSelect,P,Y);Q.push(ne);const S={default:()=>Q};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ce(n,Rl),hintText:F.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:D};return $.value&&(te["appear-listen"]=!0,te.onAppear=B),o.h(l,te,S)}}}}const{componentName:ji,create:zi,scope:Hi}=ie("select-item"),jn=zi(Pi(ji,Hi,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Al={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",f="week",c="month",b="quarter",E="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+)?$/,$=/\[([^\]]+)]|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("_")},I=function(N,O,R){var U=String(N);return!U||U.length>=O?N:""+Array(O+1-U.length).join(R)+N},q={s:I,z:function(N){var O=-N.utcOffset(),R=Math.abs(O),U=Math.floor(R/60),W=R%60;return(O<=0?"+":"-")+I(U,2,"0")+":"+I(W,2,"0")},m:function N(O,R){if(O.date()<R.date())return-N(R,O);var U=12*(R.year()-O.year())+(R.month()-O.month()),W=O.clone().add(U,c),J=R-W<0,Z=O.clone().add(U+(J?-1:1),c);return+(-(U+(R-W)/(J?W-Z:Z-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:c,y:E,w:f,d,D:m,h:u,m:s,s:i,ms:a,Q:b}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},B="en",A={};A[B]=w;var L=function(N){return N instanceof T},_=function N(O,R,U){var W;if(!O)return B;if(typeof O=="string"){var J=O.toLowerCase();A[J]&&(W=J),R&&(A[J]=R,W=J);var Z=O.split("-");if(!W&&Z.length>1)return N(Z[0])}else{var ee=O.name;A[ee]=O,W=ee}return!U&&W&&(B=W),W||!U&&B},C=function(N,O){if(L(N))return N.clone();var R=typeof O=="object"?O:{};return R.date=N,R.args=arguments,new T(R)},k=q;k.l=_,k.i=L,k.w=function(N,O){return C(N,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function N(R){this.$L=_(R.locale,null,!0),this.parse(R)}var O=N.prototype;return O.parse=function(R){this.$d=function(U){var W=U.date,J=U.utc;if(W===null)return new Date(NaN);if(k.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(g);if(Z){var ee=Z[2]-1||0,re=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)):new Date(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)}}return new Date(W)}(R),this.$x=R.x||{},this.init()},O.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()},O.$utils=function(){return k},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(R,U){var W=C(R);return this.startOf(U)<=W&&W<=this.endOf(U)},O.isAfter=function(R,U){return C(R)<this.startOf(U)},O.isBefore=function(R,U){return this.endOf(U)<C(R)},O.$g=function(R,U,W){return k.u(R)?this[U]:this.set(W,R)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(R,U){var W=this,J=!!k.u(U)||U,Z=k.p(R),ee=function(j,z){var M=k.w(W.$u?Date.UTC(W.$y,z,j):new Date(W.$y,z,j),W);return J?M:M.endOf(d)},re=function(j,z){return k.w(W.toDate()[j].apply(W.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(z)),W)},D=this.$W,x=this.$M,F=this.$D,V="set"+(this.$u?"UTC":"");switch(Z){case E:return J?ee(1,0):ee(31,11);case c:return J?ee(1,x):ee(0,x+1);case f:var v=this.$locale().weekStart||0,K=(D<v?D+7:D)-v;return ee(J?F-K:F+(6-K),x);case d:case m:return re(V+"Hours",0);case u:return re(V+"Minutes",1);case s:return re(V+"Seconds",2);case i:return re(V+"Milliseconds",3);default:return this.clone()}},O.endOf=function(R){return this.startOf(R,!1)},O.$set=function(R,U){var W,J=k.p(R),Z="set"+(this.$u?"UTC":""),ee=(W={},W[d]=Z+"Date",W[m]=Z+"Date",W[c]=Z+"Month",W[E]=Z+"FullYear",W[u]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[a]=Z+"Milliseconds",W)[J],re=J===d?this.$D+(U-this.$W):U;if(J===c||J===E){var D=this.clone().set(m,1);D.$d[ee](re),D.init(),this.$d=D.set(m,Math.min(this.$D,D.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},O.set=function(R,U){return this.clone().$set(R,U)},O.get=function(R){return this[k.p(R)]()},O.add=function(R,U){var W,J=this;R=Number(R);var Z=k.p(U),ee=function(x){var F=C(J);return k.w(F.date(F.date()+Math.round(x*R)),J)};if(Z===c)return this.set(c,this.$M+R);if(Z===E)return this.set(E,this.$y+R);if(Z===d)return ee(1);if(Z===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=l,W)[Z]||1,D=this.$d.getTime()+R*re;return k.w(D,this)},O.subtract=function(R,U){return this.add(-1*R,U)},O.format=function(R){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var J=R||"YYYY-MM-DDTHH:mm:ssZ",Z=k.z(this),ee=this.$H,re=this.$m,D=this.$M,x=W.weekdays,F=W.months,V=function(z,M,P,Y){return z&&(z[M]||z(U,J))||P[M].slice(0,Y)},v=function(z){return k.s(ee%12||12,z,"0")},K=W.meridiem||function(z,M,P){var Y=z<12?"AM":"PM";return P?Y.toLowerCase():Y},j={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:k.s(D+1,2,"0"),MMM:V(W.monthsShort,D,F,3),MMMM:V(F,D),D:this.$D,DD:k.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:k.s(ee,2,"0"),h:v(1),hh:v(2),a:K(ee,re,!0),A:K(ee,re,!1),m:String(re),mm:k.s(re,2,"0"),s:String(this.$s),ss:k.s(this.$s,2,"0"),SSS:k.s(this.$ms,3,"0"),Z};return J.replace($,function(z,M){return M||j[z]||Z.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(R,U,W){var J,Z=k.p(U),ee=C(R),re=(ee.utcOffset()-this.utcOffset())*n,D=this-ee,x=k.m(this,ee);return x=(J={},J[E]=x/12,J[c]=x,J[b]=x/3,J[f]=(D-re)/6048e5,J[d]=(D-re)/864e5,J[u]=D/r,J[s]=D/n,J[i]=D/l,J)[Z]||D,W?x:k.a(x)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return A[this.$L]},O.locale=function(R,U){if(!R)return this.$L;var W=this.clone(),J=_(R,U,!0);return J&&(W.$L=J),W},O.clone=function(){return k.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},N}(),H=T.prototype;return C.prototype=H,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",E],["$D",m]].forEach(function(N){H[N[1]]=function(O){return this.$g(O,N[0],N[1])}}),C.extend=function(N,O){return N.$i||(N(O,T,C),N.$i=!0),C},C.locale=_,C.isDayjs=L,C.unix=function(N){return C(1e3*N)},C.en=A[B],C.Ls=A,C.p={},C})})(Al);var Ki=Al.exports;const je=Ge(Ki);var Ll={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var $=g.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},b=function(h,g){var $,w=s.meridiem;if(w){for(var I=1;I<=24;I+=1)if(h.indexOf(w(I,0,g))>-1){$=I>12;break}}else $=h===(g?"pm":"PM");return $},E={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[i,function(h){var g=s.ordinal,$=h.match(/\d+/);if(this.day=$[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[i,function(h){var g=c("months"),$=(c("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[i,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(h){var g,$;g=h,$=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,k,T){var H=T&&T.toUpperCase();return k||$[T]||l[T]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,O,R){return O||R.slice(1)})})).match(n),I=w.length,q=0;q<I;q+=1){var B=w[q],A=E[B],L=A&&A[0],_=A&&A[1];w[q]=_?{regex:L,parser:_}:B.replace(/^\[|\]$/g,"")}return function(C){for(var k={},T=0,H=0;T<I;T+=1){var N=w[T];if(typeof N=="string")H+=N.length;else{var O=N.regex,R=N.parser,U=C.slice(H),W=O.exec(U)[0];R.call(k,W),C=C.replace(W,"")}}return function(J){var Z=J.afternoon;if(Z!==void 0){var ee=J.hours;Z?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}}(k),k}}return function(h,g,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,I=w.parse;w.parse=function(q){var B=q.date,A=q.utc,L=q.args;this.$u=A;var _=L[1];if(typeof _=="string"){var C=L[2]===!0,k=L[3]===!0,T=C||k,H=L[2];k&&(H=L[2]),s=this.$locale(),!C&&H&&(s=$.Ls[H]),this.$d=function(U,W,J){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*U);var Z=m(W)(U),ee=Z.year,re=Z.month,D=Z.day,x=Z.hours,F=Z.minutes,V=Z.seconds,v=Z.milliseconds,K=Z.zone,j=new Date,z=D||(ee||re?1:j.getDate()),M=ee||j.getFullYear(),P=0;ee&&!re||(P=re>0?re-1:j.getMonth());var Y=x||0,Q=F||0,ne=V||0,S=v||0;return K?new Date(Date.UTC(M,P,z,Y,Q,ne,S+60*K.offset*1e3)):J?new Date(Date.UTC(M,P,z,Y,Q,ne,S)):new Date(M,P,z,Y,Q,ne,S)}catch{return new Date("")}}(B,_,A),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),T&&B!=this.format(_)&&(this.$d=new Date("")),s={}}else if(_ instanceof Array)for(var N=_.length,O=1;O<=N;O+=1){L[1]=_[O-1];var R=$.apply(this,L);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}O===N&&(this.$d=new Date(""))}else I.call(this,q)}}})})(Ll);var Wi=Ll.exports;const Yi=Ge(Wi);var Ml={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),c=(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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="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 b}});return i.bind(this)(c)}}})})(Ml);var Gi=Ml.exports;const Ui=Ge(Gi);var Bl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,b,E,m,h){var g=c.name?c:c.$locale(),$=i(g[b]),w=i(g[E]),I=$||w.map(function(B){return B.slice(0,m)});if(!h)return I;var q=g.weekStart;return I.map(function(B,A){return I[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,b){return c.formats[b]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(c.formats[b.toUpperCase()])},f=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):s(c,"months")},monthsShort:function(b){return b?b.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(c){return s(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(Bl);var Xi=Bl.exports;const Zi=Ge(Xi);var _l={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l="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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(d),c=i(this).endOf(l);if(f.isBefore(c))return 1}var b=i(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),E=this.diff(b,l,!0);return E<0?i(this).startOf("week").week():Math.ceil(E)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(_l);var Ji=_l.exports;const Qi=Ge(Ji);var ql={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(ql);var es=ql.exports;const ts=Ge(es);var Pl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Pl);var ns=Pl.exports;const os=Ge(ns);var jl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(jl);var ls=jl.exports;const rs=Ge(ls);var zl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(zl);var as=zl.exports;const is=Ge(as);je.extend(Zi),je.extend(Ui),je.extend(Yi),je.extend(Qi),je.extend(ts),je.extend(os),je.extend(rs),je.extend(is);const Ae={format(e,t){return je(e).format(t)},parser(e,t){return je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t){e=e||0;let l=t??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let 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,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Ae.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Ae.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Hl={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"}},Kl={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function ss(e,t,l){return{props:{...ve,...Ee,...Hl,...Kl},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=o.computed(()=>R.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),E=o.computed(()=>R.value?"longTermKey":"normalKey"),m=z=>{if(R.value&&n.type==="daterange"){const M=[...c.value];M[0]=z,c.value=M}else c.value=z;s("update:modelValue",c.value),s("change",c.value)},h=o.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,$=o.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=de(n,"hintText"),I=o.ref(!1);const q=z=>{let P=z.target.value;f.value=!0,ge(w.value)||(I.value=!0),s("focus",P,z)},B=z=>{setTimeout(()=>{I.value&&(I.value=!1),f.value=!1},0);let P=z.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),s("blur",P,z)},A=()=>{s("clear","")},L=z=>{s("calendar-change",z)},_=(z,M,P)=>{s("panel-change",z,M,P)},C=z=>{s("visible-change",z)},k=ke(o.computed(()=>n.longTermText),"longTermText",Re.Near),T=ke(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",Re.Near),H=ke(o.computed(()=>n.longTermValue),"longTermValue",Re.Near),N=ke(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Re.Near);let O=null;const R=o.ref(se(n.longTerm)),U=z=>{if(R.value=z,s("update:longTerm",z),z){if(O=c.value,n.type==="daterange"){const M=[];Array.isArray(H.value)?(M[0]=c.value?c.value[0]??H.value[0]:null,M[1]=H.value[1]??H.value[0]):(M[0]=c.value?c.value[0]??H.value:null,M[1]=R.value),M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else Array.isArray(H.value)?c.value=H.value[1]??H.value[0]:c.value=H.value,c.value||(c.value=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date);s("update:modelValue",c.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(O)?M[1]=O[1]:M[1]=O,M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=O;s("update:modelValue",c.value),setTimeout(()=>{K()},100)}},W=se(n.isLongTerm);if(W){const z=()=>{if(R.value===!0){if(O=c.value,n.type==="daterange"){const M=[c.value[0]];Array.isArray(H.value)?M[1]=H.value[1]??H.value[0]:M[1]=R.value,M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=H.value;s("update:modelValue",c.value)}else He(H.value,c.value)&&(R.value=!0)};z(),o.watch([()=>n.longTerm],([M])=>{R.value!==M&&z()}),o.watch([()=>c.value],([M])=>{let P=!1;if(n.type==="daterange"&&Array.isArray(M))try{let Y=M[1];if(!Y)return;typeof Y!="string"&&n.valueFormat&&(Y=Ae.format(Y,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(Y===Q||Array.isArray(N.value)&&N.value.findIndex(S=>Y==S)!==-1)&&(P=!0)}catch(Y){console.error(Y)}R.value!==P&&(R.value=P)},{immediate:!0})}const J=o.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=o.ref(),ee=o.ref(),re=/^\d+$/,D=(z,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,M):re.test(z)&&z.length===n.flashFillThreshold,x=(z,M)=>{let P;if(typeof n.flashFillFormat=="function")P=n.flashFillFormat(z,M);else{const Q=n.flashFillFormat??"YYYYMMDD";P=Ae.parser(z,Q)}const Y=n.valueFormat??"YYYY-MM-DD";return Ae.format(P,Y)},F=z=>z?z.endsWith("range"):!1,V=z=>{if(!z.target)return;const M=z.target.value??"";if(D(M,n.type)){const P=x(M,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[0]=P,m(Y)}else m(P)}},v=z=>{if(!z.target)return;const M=z.target.value??"";if(D(M,n.type)){const P=x(M,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[1]=P,m(Y)}else m(P)}},K=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",V),z[1]&&z[1].addEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",V)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",V),z[1]&&z[1].removeEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",V)}};return o.onMounted(K),o.onBeforeUnmount(j),xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const M={...r.attrs,key:E.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:A,onFocus:q,onBlur:B,onCalendarChange:L,onPanelChange:_,onVisibleChange:C},P={};r.slots["range-separator"]&&(P["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(P.default=r.slots.cell);const Y=[],Q=o.h(p.ElDatePicker,M,P);Y.push(Q);const ne={default:()=>Y};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),W){if(R.value){const le=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=o.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),oe={class:J.value},ae=o.h("div",oe,{default:()=>[le,X]});Y.push(ae)}if(!i.value&&!a.value){const le={label:T.value||k.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":U},X=o.h(p.ElCheckbox,le),oe=o.h("div",{class:{[`${g}__append`]:!0}},[X]);ne.append=()=>oe}}const G={...Ce(n,Hl,Kl),ref:Z,class:{[`${g}__wrapper`]:!0,"has-append":W},hintText:w.value,hintVisible:I.value,prop:`${n.prop}_item`};return o.h(l,G,ne)}}}}const{componentName:us,create:cs,scope:fs}=ie("date-item"),zn=cs(ss(us,fs,we)),Wl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ds(e,t,l){return{props:{...ve,...Ee,...Wl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),m=A=>{c.value=A,s("update:modelValue",A),s("change",A)};let h=de(n,"hintText"),g=o.ref(!1);const $=A=>{let _=A.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",_,A)},w=A=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let _=A.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),s("blur",_,A)},I=()=>{s("clear","")},q=A=>{s("visible-change",A)},B=o.ref();return xe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:I,onFocus:$,onBlur:w,onVisibleChange:q},_={},C=[],k=o.h(p.ElTimePicker,L,_);C.push(k);const T={default:()=>C};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const N={...Ce(n,Wl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,N,T)}}}}const{componentName:hs,create:gs,scope:ms}=ie("time-item"),Hn=gs(ds(hs,ms,we)),Yl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ys(e,t,l){return{props:{...ve,...Ee,...Yl},emits:["change","update:modelValue","blur","focus","clear"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),m=B=>{c.value=B,s("update:modelValue",B),s("change",B)};let h=de(n,"hintText"),g=o.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",L,B)},w=B=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,B)},I=()=>{s("clear","")},q=o.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:I,onFocus:$,onBlur:w},L={},_=[],C=o.h(p.ElTimeSelect,A,L);_.push(C);const k={default:()=>_};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const H={...Ce(n,Yl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,H,k)}}}}const{componentName:ps,create:bs,scope:vs}=ie("time-select-item"),Kn=bs(ys(ps,vs,we));function Gl(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function Ul(e,t,l=20){if(typeof t=="string"&&(t=pe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ho(`${e}`,`${t}`);return Gl(n)}else{let n=mn(`${e}`,Ko(`${t}`),20);return Gl(n)}}function ws(e,t=-1,l=!1,n=3,r=","){return Ft(e,t,l,n,r)}function Xl(e,t,l,n,r=!0){if(e=="")return"";if(e=Wo(e),t=pe(t),t==1)return e;if(n)e=Ul(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(pe(l)+2,"0"):e=mn(e,1,pe(l)));else{let a=-1*t;e=Ul(e,a)}return e}function Zl(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=yn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=yn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const Jl={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 Ss(e,t,l){return{props:{...ve,...Ee,...Jl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref(!1),d=de(n,"modelValue"),f=o.ref("");o.watch([()=>d.value,()=>n.rates,()=>n.precision],([N,O,R])=>{if(ge(N)){f.value="";return}const U=Xl(N,O,R,!1);f.value!==U&&(f.value=U)},{immediate:!0});const c=o.computed(()=>{let N="";return u.value&&(N=f.value),N}),{t:b}=Fe.useFoxI18n(t),E=o.computed(()=>{let N=n.placeholder??"";return!u.value&&!ge(f.value)?N=ws(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):N=b(["placeholder",N]),N}),m=e,h=o.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=ke(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const $=o.ref(""),w=o.computed(()=>{let N=$.value;return ge(N)&&(N=n.errorTip??""),N}),I=o.ref(""),q=o.ref(!1),B=(N,O)=>{if(N=`${N}`,ge(N)){f.value="",d.value="",O.forEach(R=>{s(R,"")}),se(n.showTip)&&q.value&&(q.value=!1);return}if(N.length>=2){let R=N;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){o.triggerRef(f);return}}if(N!="-"){if(!tl(N)){o.triggerRef(f);return}if(n.integerLength!=-1&&nl(N)>Number(n.integerLength)){o.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ol(N)>Number(n.decimalLength)){o.triggerRef(f);return}let R=Zl(N,n);if(R.maxValid===!1){$.value=R.message,o.triggerRef(f);return}}else if(n.min!=null&&pe(n.min)>=0){o.triggerRef(f);return}I.value=N,se(n.showTip)&&(q.value=N.length>0),f.value=N,d.value=Xl(N,n.rates,n.precision,!0),O.forEach(R=>{s(R,d.value)})},A=N=>{B(N,["update:modelValue","input"])},L=N=>{B(N,["update:modelValue","change"])},_=N=>{if(u.value=!0,se(n.showTip)){let O=f.value;ge(O)&&(O=n.hintText),ge(O)||(I.value=O,q.value=!0)}$.value="",s("focus",d.value,N)},C=N=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&q.value===!0&&(q.value=!1)},0),!ge(f.value)){let O=Zl(f.value,n);if(O.minValid===!1||O.maxValid===!1){$.value=O.message;return}}s("update:modelValue",d.value,N),s("blur",d.value,N)},k=()=>{s("clear","")},T=o.computed(()=>pt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:E.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:A,onChange:L,onFocus:_,onBlur:C},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:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=o.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Jl),errorTip:w.value,hintText:I.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:xs,create:Ts,scope:$s}=ie("money-item"),Wn=Ts(Ss(xs,$s,we)),Ql={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 Cs(e,t,l){return{props:{...ve,...Ee,...Ql},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0,[`${b}__append`]:A.value})),m=o.computed(()=>({[`${b}__unit`]:!0})),h=_=>{c.value=_,s("update:modelValue",_),s("input",_)},g=_=>{s("change",_)};let $=de(n,"hintText"),w=o.ref(!1);const I=_=>{let k=_.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",k,_)},q=_=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=_.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,_)},B=()=>{s("clear","")},A=o.computed(()=>pt(n.unit)>0),L=o.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const C={...Pe(r.attrs),ref:L,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:g,onInput:h,onFocus:I,onBlur:q},k={},T=[],H=o.h(p.ElInputNumber,C,k);T.push(H);const N={default:()=>T};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const R={...Ce(n,Ql),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)N.append=r.slots.append;else if(A.value){const W={class:m.value},J=o.h("div",W,[n.unit]);N.append=()=>J}return o.h(l,R,N)}}}}const{componentName:Ns,create:Es,scope:ks}=ie("input-number-item"),Yn=Es(Cs(Ns,ks,we));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Is(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Os=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function Vs(){const e=o.getCurrentInstance();return new Os(e.proxy)}function Gn(e,t,l){const n=Ue(e,t),r=Ue(e,l);if(n!==r)return!1;const a=ot(e,t),i=ot(e,l);return a===i}function er(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=er(e,s,l,n);r.push(u)}else{let u=!1;for(let d of a){if(l==="text")u=Ue(e,d)===s;else if(l==="item")u=Gn(e,d,s);else{let f=ot(e,d);f==null&&(f=Ue(e,d)),u=f===s}if(u){r.push(d),a=Is(e,d);break}}if(!u)break}}return r}function Ds(e){return{text:e,value:e}}const tr={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Fs(e,t,l){return{props:{...ve,...Ee,...tr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(P=>Ue(n,P)).join(" "):Ue(n,z)).join(" "):""),E=(j,z,M,P=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===j)return;f.value=j;const S=o.toRaw(j);if(P){const G=K?.value.getCheckedNodes();if(G)if(n.multiple){const te=[];G.forEach(le=>{const oe=(le.pathNodes??[]).map(ae=>ae.data);te.push(oe)}),s("update:pathNodes",te)}else{const le=(G[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",le)}s("update:modelValue",S),s("change",S)}return}const Y=er(n,j,z,M);if(Y===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,P&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=Y[Y.length-1];if(k.value.checkStrictly!==!0&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const S=[];Y.forEach(G=>{const te=`${Ue(n,G)}`;S.push(te)}),S.length>0&&(C.value=S.join(n.separator))}else C.value=null;let ne=!0;if(Y.length!==c.value.length)ne=!1;else for(let S=0;S<Y.length;S++){const G=Y[S],te=c.value[S];if(Array.isArray(G)){if(!Array.isArray(te)||G.length!==te.length)ne=!1;else for(let le=0;le<G.length;le++)if(!Gn(n,G[le],te[le])){ne=!1;break}}else Gn(n,G,te)||(ne=!1);if(!ne)break}if(!ne){c.value=Y;let S=[],G=[];Y.forEach(le=>{if(Array.isArray(le)){let X=[],oe=[];for(let ae of le)X.push(ot(n,ae)),n.valueType==="text"?oe.push(Ue(n,ae)):n.valueType==="item"?oe.push(ae):oe.push(ot(n,ae));S.push(X),G.push(oe)}else S.push(ot(n,le)),n.valueType==="text"?G.push(Ue(n,le)):n.valueType==="item"?G.push(le):G.push(ot(n,le))}),f.value=S;const te=o.toRaw(G);P&&(s("update:pathNodes",Y),s("update:modelValue",te),s("change",te))}},m=o.ref([]),h=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,j=>se(j)),g=Vs(),$=async(j,z)=>{if(j){const M=await g.load("cascader",j,z);if(M.length>0)if(typeof M[0]=="string"){let Q=M.map(ne=>Ds(ne));m.value=Q}else m.value=M}};o.watch([()=>n.source,()=>n.params],async([j,z])=>{$(j,z)},{immediate:!(h.value||n.lazy)});let w=!1;const I=()=>{w||(w=!0,$(n.source,n.params))};o.watch([()=>m.value,()=>n.modelValue],([j,z])=>{E(z,n.valueType,j,!1)}),n.lazy&&E(n.modelValue,"value",[],!1);let q=null,B=o.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){B.value=!0;try{const z=await n.remoteMethod(j);m.value=z}catch(z){console.error(z)}B.value=!1}});const A=o.ref(!1),L=e,_=o.computed(()=>({[L]:!0})),C=o.ref(null),k=o.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),n.lazy&&(j.lazy=!0,j.lazyLoad=async(z,M)=>{const P=await g.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const Y=z.pathLabels??[];let Q=[];Y.forEach(ne=>{ne&&Q.push(ne)}),Q.length>0&&(C.value=Q.join(n.separator))}else C.value=null;M(P)}),j}),T=j=>{n.allowCreate?(s("update:modelValue",j),s("change",j),f.value=j):E(j,"value",m.value,!0)};let H=de(n,"hintText"),N=o.ref(!1);const O=j=>{let M=j.target.value;A.value=!0,ge(H.value)||(N.value=!0),s("focus",M,j)},R=j=>{setTimeout(()=>{N.value&&(N.value=!1),A.value=!1},0);let M=j.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),x.value||s("blur",M,j)},U=()=>{s("clear","")},W=o.ref(!1);let J=null;const Z=()=>{n.showTooltip&&W.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{W.value=!0},150))},ee=()=>{J&&(clearTimeout(J),W.value=!1,J=null)},re=o.computed(()=>W.value||N.value),D=o.computed(()=>W.value?b.value:H.value),x=o.ref(!1),F=j=>{x.value=j,s("visible-change",j),j||s("selected")},V=j=>{s("remove-tag",j)},v=j=>{s("expand-change",j)},K=o.ref();return xe({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:K,class:_.value,props:k.value,clearable:n.clearable,placeholder:C.value||d.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:f.value,separator:n.separator,onClear:U,onChange:T,onFocus:O,onBlur:R,onVisibleChange:F,onRemoveTag:V,expandChange:v};typeof q=="function"&&(z["remote-method"]=q,z.loading=B.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const P=[],Y=o.h(p.ElCascader,z,M);P.push(Y);const Q={default:()=>P};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const S={...Ce(n,tr),hintText:D.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=I),o.h(l,S,Q)}}}}const{componentName:Rs,create:As,scope:Ls}=ie("cascader-item"),Un=As(Fs(Rs,Ls,we)),nr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ms(e,t,l){return{props:{...ve,...Ee,...nr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,E=o.computed(()=>({[b]:!0})),m=L=>{c.value=L,s("update:modelValue",L),s("input",L)},h=L=>{s("change",L)},g=L=>{s("select",L)};let $=de(n,"hintText"),w=o.ref(!1);const I=L=>{let C=L.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",C,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let C=L.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),s("blur",C,L)},B=()=>{s("clear","")},A=o.ref();return xe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const _={...r.attrs,ref:A,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,onClear:B,onChange:h,onInput:m,onFocus:I,onBlur:q,onSelect:g},C={};r.slots.prepend&&(C.prepend=r.slots.prepend),r.slots.append&&(C.append=r.slots.append),r.slots.prefix&&(C.prefix=r.slots.prefix),r.slots.suffix&&(C.suffix=r.slots.suffix),r.slots.option&&(C.default=r.slots.option);const k=[],T=o.h(p.ElAutocomplete,_,C);k.push(T);const H={default:()=>k};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,nr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return o.h(l,O,H)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("autocomplete-item"),Xn=_s(Ms(Bs,qs,we));function Ps(e,t,l,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 d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(b=>b[n]===f);if(!c)break;i.push(c[l])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l]),u=c[r]}}return i}let js=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function zs(){const e=o.getCurrentInstance();return new js(e.proxy)}const or={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 Hs(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){const a=zs(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([d,f])=>{i.value=await a.load(l.sourceType,d,f)},{immediate:!0});const s=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=Ps(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)}),u=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const d={...n};return r.default?r.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},s.value):o.h(u,d,{default:()=>s.value}):o.h(u,d,s.value)}}}}const{componentName:Sh,create:Ks,scope:xh}=ie("mapping"),Ct=Ks(Hs());function Ws(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Ys(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=Ws(i.row,i.column.property);return r.default?o.h(Ct,{...l,modelValue:s},{default:r.default}):o.h(Ct,{...l,modelValue:s})}};return o.h(p.ElTableColumn,{...n},a)}}}}const{componentName:Th,create:Gs,scope:$h}=ie("table-mapping-column"),Zn=Gs(Ys()),Us=Symbol.for("TableStateKey");function lr(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Xs(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Us,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=lr(s.row,s.column.property),d=a?lr(a,s.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},b=o.h("span",c,[o.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":f}};return o.h("label",E,[b])}};return o.h(p.ElTableColumn,{...n},i)}}}}const{componentName:Ch,create:Zs,scope:Nh}=ie("table-radio-column"),Jn=Zs(Xs()),Js={},Qs={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"},eu=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function tu(e,t){return o.openBlock(),o.createElementBlock("svg",Qs,eu)}const nu=Me(Js,[["render",tu]]),{componentName:kh,create:ou,scope:Ih}=ie("table-setting"),lu={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:"不固定"}},ru=ou({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:nu,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...lu},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=o.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=o.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=o.computed(()=>a.value.length>0),f=o.computed(()=>i.value.length>0),c=v=>v.length>1,b=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(M=>{K.some(P=>P.prop===M.prop?(M.label=P.label,!0):!1)});const j=[];r.value=v.map((M,P)=>(!(M.label===""||M.type)&&M.visible!==!1&&j.push(M.prop),{...M,sortIndex:P})),s.value.length+a.value.length+i.value.length===j.length?w.value=!0:j.length>0&&(I.value=!0),A.value=j},E=v=>v?v.type?v.type:v.label?v.prop:"":"",m=(v,K)=>{if(v.length!==K.length)return!1;const j=v.map(z=>E(z));for(let z of K){const M=E(z);if(j.indexOf(M)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),j=K.srcColumnPropertyList;n=j.map((z,M)=>({...z,sortIndex:M})),v=K.columnPropertyList,v&&v.length>0&&m(j,v)||(v=j)}b(v,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},$=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=o.ref(!1),I=o.ref(!1),q=v=>{const K=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&K.push(z.prop),z.visible=v}),w.value=!1,I.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(I.value=!0),A.value=K,g()},B=()=>{h(n),g()},A=o.ref([]),L=v=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const z=v.indexOf(j.prop)!==-1;j.visible=z}),w.value=!1,I.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?w.value=!0:v.length>0&&(I.value=!0),g()},_=()=>{h()};o.onMounted(()=>{setTimeout(()=>{h()},50)});const C={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(C.roleType=K.dataset.roleType,C.index=K.dataset.index)},H=v=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},N=v=>{const K=v.currentTarget;v.relatedTarget;const j=k(K);if(!j)return;const z=j.dataset&&j.dataset.roleType;C.roleType===z&&(v.preventDefault(),C.currentRow&&C.currentRow!==j&&C.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),C.currentRow=j)},O=v=>{v.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},R=v=>{const K=v.currentTarget,j=k(K);if(!j)return;const z=j.dataset&&j.dataset.roleType;if(C.roleType!==z)return;v.preventDefault();const M=Number(C.index),P=Number(j.dataset.index);if(M!==P){if(M<P){const Y=r.value[M];r.value.splice(M,1),r.value.splice(P,0,Y)}else{const Y=r.value[M];r.value.splice(M,1),r.value.splice(P+1,0,Y)}b(r.value,n),g()}},U=v=>{const K=r.value[v];K.fixed="left",g()},W=v=>{const K=r.value[v];K.fixed="right",g()},J=v=>{const K=r.value[v];K.fixed=void 0,g()},Z=new Map;let ee=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:I,handleCheckAllChange:q,handleReset:B,checkedValue:A,handleCheckChange:L,onShow:_,onDragStart:T,onDragEnd:H,onDragOver:N,onDragLeave:O,onDrop:R,toLeftFixed:U,toRightFixed:W,toUnFixed:J,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,K,j)=>{const z=v.currentTarget;if(z){const M=Math.floor(z.offsetWidth);if(Math.floor(re(z))>M){let Y=Z.get(K);if(Y){if(Y===ee)return;Ve.hide(Y)}Y=Ve.show(z,j,{type:"text",placement:"top",closeOnClick:!1}),Z.set(K,Y),ee=Y}}},onMouseLeaveForOverflowText:(v,K)=>{const j=Z.get(K);j&&(Ve.hide(j),j===ee&&(ee=null))},onMouseOverForTip:(v,K)=>{const j=v.currentTarget;j&&(ee&&Ve.hide(ee),ee=Ve.show(j,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(Ve.hide(ee),ee=null)}}}}),au={class:"fox-table-setting"},iu={class:"fox-table-setting__header"},su={class:"fox-table-setting__body"},uu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},cu={key:0,class:"fox-table-setting__body-title"},fu=["data-index","draggable"],du=["onMouseover","onMouseleave"],hu={class:"tools-item"},gu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},mu={key:0,class:"fox-table-setting__body-title"},yu=["data-index","draggable"],pu=["onMouseover","onMouseleave"],bu={class:"tools-item"},vu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},wu={key:0,class:"fox-table-setting__body-title"},Su=["data-index","draggable"],xu=["onMouseover","onMouseleave"],Tu={class:"tools-item"};function $u(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("RefreshLeft"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("Download"),b=o.resolveComponent("fox-checkbox"),E=o.resolveComponent("FoxCheckboxGroup"),m=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(m,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",au,[o.createElementVNode("div",iu,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",su,[o.createVNode(E,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",uu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",cu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,h=>(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,du)]),_:2},1032,["label"]),o.createElementVNode("div",hu,[o.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,fu))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",gu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",mu,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,h=>(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,pu)]),_:2},1032,["label"]),o.createElementVNode("div",bu,[o.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,yu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",vu,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",wu,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,h=>(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(b,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,xu)]),_:2},1032,["label"]),o.createElementVNode("div",Tu,[o.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,Su))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const tn=Me(ru,[["render",$u]]);let Cu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,s){if(Array.isArray(l)){let d=(n-1)*r,f=d+r;f>l.length&&(f=l.length);const c=l.slice(d,f);return{totalSize:l.length,page:c}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(u,null,[l,n,r,a,i,s]))}};function Nu(){const e=o.getCurrentInstance();return new Cu(e.proxy)}class Eu{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function rr(){const e=o.getCurrentInstance();return new Eu(e.proxy)}const ku=Symbol.for("TableStateKey"),ar={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{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"}},ir={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}},Qn={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:"不固定"}},Iu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ou(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function eo(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Ou(n,r);if(a!==i)return!1}return!0})}function Vu(e,t,l){return{inheritAttrs:!1,props:{...ve,...Ee,...ar,...ir,...Qn,...Iu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Fe.useFoxI18n(t),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...X){return A.value}}},n.prop??r.attrs.name),s=e,u=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),f=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),c=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=o.shallowRef({}),E=o.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),m=o.ref(n.infiniteLoad===!0?0:n.pageIndex),h=o.ref(n.pageSize),g=se(n.infiniteLoad);g||(o.watch(()=>n.pageIndex,X=>{m.value=X}),o.watch(()=>n.pageSize,X=>{h.value=X}),o.watch([m,h],([X,oe],[ae,ue])=>{oe!==ue&&(m.value=1,X=1),k(n.data,X,oe,E.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&o.watch([()=>n.data,E],async([X,oe],[ae,ue])=>{$()&&(X!==ae&&(_=!0),!(!Array.isArray(X)&&He(X,ae)&&He(oe,ue))&&(g?(m.value=0,q.value=!0,A.value=[],H()):m.value===1?k(X,m.value,h.value,oe):m.value=1))},{deep:!0});const w=X=>{m.value=X,i("page-index-change",X)},I=X=>{h.value=X,i("page-size-change",X)},q=o.ref(!0),B=o.ref(0),A=o.ref(),L=Nu();let _=!0;const C=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,X=>se(X)),k=async(X,oe,ae,ue,ye)=>{_=!1;try{if(ye===!0){if(!q.value)return!1;const he=await L.load("table",X,oe,ae,ue,_,a.value);return B.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,A.value,he.page),setTimeout(()=>{i("loaded-data")},250),(A.value?.length??0)>=B.value)||he.page.length<ae?(q.value=!1,!1):!0}else{const he=await L.load("table",X,oe,ae,ue,_,a.value);return B.value=he.totalSize,A.value=he.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),B.value=0,A.value=[]}return!1};let T=!1;const H=async()=>{if(!T){if(T=!0,!q.value){T=!1;return}m.value+=1,await k(n.data,m.value,h.value,E.value,!0),T=!1}},N=(X={},oe=!1)=>new Promise(async ae=>{b.value={...o.toRaw(X??{})},oe||(m.value=n.pageIndex??1),g===!0?(m.value=0,A.value=[],q.value=!0,await H()):await k(n.data,m.value,h.value,E.value),ae()}),O=()=>{B.value=0,A.value=[],g===!0&&(m.value=0,q.value=!0)};let R=!1;const U=()=>{R||(R=!0,N())},W=o.ref(null);if(g===!0){let X=null;const oe=()=>{W.value&&(X=new IntersectionObserver(ue=>{let ye=!1;for(let he of ue)if(he.intersectionRatio>0){ye=!0;break}ye&&H()}),X.observe(W.value))},ae=()=>{!X||!W.value||(X.unobserve(W.value),X=null)};o.onMounted(oe),o.onBeforeUnmount(ae)}$()&&!C.value&&N();const J=o.ref(null);o.provide(ku,{currentRow:J});const Z=(X,oe)=>{J.value=X,i("current-change",X,oe)},ee=(X,oe,ae)=>{i("row-click",X,oe,ae),se(n.rowClickSelectable)===!0&&le?.value.toggleRowSelection(X)},re=[],D=(X,oe)=>{if(i("expand-change",X,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==X&&le?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,X)}},x=r.attrs.id??n.prop??r.attrs.name,F=rr(),V=o.ref([]);let v=[];const K=()=>({srcColumnPropertyList:v.map(oe=>({...oe})),columnPropertyList:V.value}),j=X=>{V.value=[...X],M()},z=async()=>{const X=await F.load(x);X&&(V.value=X)},M=()=>{F.save(x,V.value)},P=()=>{F.remove(x)};z();const Y=X=>X?X.type?X.type:X.label?X.prop:"":"",Q=o.computed(()=>{if(typeof r.slots.default=="function"){const X=r.slots.default(),oe=new Map;if(v=[],X.forEach(ae=>{const ue=ae;if(!ue.props)return;const ye=Y(ue.props);oe.set(ye,ae);const he={label:"",prop:""};Object.assign(he,ue.props),v.push(he)}),V.value.length===v.length){const ae=[];for(let ue of V.value){const ye=Y(ue),he=oe.get(ye);if(!he)return X;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return X}return[]}),ne=o.shallowRef(new Map),S=({column:X,rowIndex:oe})=>{const ae=`${oe}_${X.property}`;return ne.value.get(ae)??""},G=X=>typeof X=="function"?oe=>{const ae=[];let ue=S(oe);return ue&&ae.push(ue),ue=X(oe),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:S,te=(X,oe,ae)=>{const ue=`${X}_${oe}`;ae?ne.value.set(ue,ae):ne.value.delete(ue),o.triggerRef(ne)},le=o.ref();return xe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(X,oe)=>{le?.value.toggleRowSelection(X,oe)},toggleRowSelectionByProp:(X,oe)=>{if(!A.value)return;const ae=eo(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(X,oe)=>{le?.value.toggleRowExpansion(X,oe)},toggleRowExpansionByProp:(X,oe)=>{if(!A.value)return;const ae=eo(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:X=>{le?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!A.value)return;const oe=eo(A.value,X);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:X=>{le?.value.clearFilter(X)},doLayout:()=>{le?.value.doLayout()},sort:(X,oe)=>{le?.value.sort(X,oe)},scrollTo:(X,oe)=>{le?.value.scrollTo(X,oe)},setScrollTop:X=>{le?.value.setScrollTop(X)},setScrollLeft:X=>{le?.value.setScrollLeft(X)},loadData:N,clearData:O,getData(){return A.value},getTotalSize(){return B.value},getPageIndex(){return m.value},getPageSize(){return h.value},getColumnSetting:K,setColumnSetting:j,removeColumnSetting:P,setCellClassName:te}),()=>{const oe={...Pe(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:D,data:A.value,ref:le,class:u.value,"cell-class-name":G(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),g===!0){const _e=[];if(q.value){const Ot=o.h(Te.Loading,{class:`${s}__infinite-icon`});_e.push(Ot);const Mo=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);_e.push(Mo)}else{const Ot=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);_e.push(Ot)}const rt={ref:W,class:`${s}__infinite`},Lo=o.h("div",rt,_e);ae.append=()=>Lo}const ue=o.h(p.ElTable,oe,ae),ye=[];if(ye.push(ue),!g){let _e=null;if(typeof r.slots.pagination=="function")_e=r.slots.pagination();else if(n.showPagination){const rt={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":I,pageSizes:n.pageSizes,currentPage:m.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};_e=o.h(p.ElPagination,rt)}if(n.showSetting){const rt=[];_e&&rt.push(_e);const Lo=o.h(p.ElIcon,{class:d.value},{default:()=>o.h(Te.Setting)}),Ot=rl(n,Qn),Mo=o.h(tn,{...Ot,tableRef:{getColumnSetting:K,setColumnSetting:j,removeColumnSetting:P}},{default:()=>Lo});rt.push(Mo);const gh=o.h("div",{class:f.value},rt);ye.push(gh)}else _e&&ye.push(_e)}const he={default:()=>ye},It={...Ce(n,ar,ir,Qn),prop:`${n.prop}_item`};return It.contentClass=`${s}__wrap`,It.errorMarkClass="is-table-error",C.value&&$()&&(It["appear-listen"]=!0,It.onAppear=U),o.h(l,It,he)}}}}const{componentName:Du,create:Fu,scope:Ru}=ie("table-item"),to=Fu(Vu(Du,Ru,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Nt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Lu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Mu(){const e=o.getCurrentInstance();return new Lu(e.proxy)}function sr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ct(e,t),r=ct(e,l);if(n!==r)return!1;const a=Nt(e,t),i=Nt(e,l);return a===i}function Bu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(l==="text")i=ct(e,a)===t;else if(l==="item")i=sr(e,a,t);else{let s=Nt(e,a);s==null&&(s=ct(e,a)),i=s===t}if(i){r=a;break}}return r}function _u(e){return{text:e,value:e}}function qu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const ur={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"},lazyLoad:{type:[Boolean,String],default:!1}};function Pu(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...ur},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref(null),d=o.ref(null),f=(L,_,C,k=!0)=>{const T=Bu(n,L,_,C);if(T===null){if(d.value===null)return;d.value=null,u.value=null,k&&(s("update:modelValue",null),s("change",null));return}if(!sr(n,T,d.value)){u.value=L;const N=o.toRaw(T);d.value=N;let O=null;n.valueType==="text"?O=ct(n,N):n.valueType==="item"?O=N:O=Nt(n,N),k&&(s("update:modelValue",O),s("change",O))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),E=Mu(),m=async(L,_)=>{if(L){const C=await E.load("radio",L,_);if(C.length>0)if(typeof C[0]=="string"){let H=C.map(N=>_u(N));c.value=H}else c.value=C}};o.watch([()=>n.source,()=>n.params],async([L,_])=>{m(L,_)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,_])=>{f(_,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),I=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),B=de(n,"hintVisible");const A=(L,_)=>{const C=[];return L.forEach((k,T)=>{const H=Nt(n,k),N=ct(n,k);let O=Au(n,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=qu(n,k,T)??{},U=`${H}_${T}`,W={...R,key:U,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?C.push(o.h(p.ElRadioButton,W,{default:()=>[N]})):typeof _=="function"?C.push(o.h(p.ElRadio,W,{default:()=>_(k)})):C.push(o.h(p.ElRadio,W,{default:()=>[N]}))}),C};return()=>{const _={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},C=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const T=o.h(p.ElRadioGroup,_,k);C.push(T);const H={default:()=>C};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,ur),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),o.h(l,O,H)}}}}const{componentName:ju,create:zu,scope:Hu}=ie("radio-item"),no=zu(Pu(ju,Hu,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ku(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Wu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Yu(){const e=o.getCurrentInstance();return new Wu(e.proxy)}function cr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ft(e,t),r=ft(e,l);if(n!==r)return!1;const a=dt(e,t),i=dt(e,l);return a===i}function Gu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(l==="text")s=ft(e,i)===a;else if(l==="item")s=cr(e,i,a);else{let u=dt(e,i);u==null&&(u=ft(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function Uu(e){return{text:e,value:e}}function Xu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const fr={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"},lazyLoad:{type:[Boolean,String],default:!1}};function Zu(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...fr},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref([]),d=o.ref([]),f=(L,_,C,k=!0)=>{const T=Gu(n,L,_,C);if(T===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(T.length!==d.value.length)H=!1;else for(let N=0;N<T.length;N++){const O=T[N],R=d.value[N];if(!cr(n,O,R)){H=!1;break}}if(!H){d.value=T;let N=[],O=[];T.forEach(U=>{N.push(dt(n,U)),n.valueType==="text"?O.push(ft(n,U)):n.valueType==="item"?O.push(U):O.push(dt(n,U))}),u.value=N;const R=o.toRaw(O);k&&(s("update:modelValue",R),s("change",R))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),E=Yu(),m=async(L,_)=>{if(L){const C=await E.load("checkbox",L,_);if(C.length>0)if(typeof C[0]=="string"){let H=C.map(N=>Uu(N));c.value=H}else c.value=C}};o.watch([()=>n.source,()=>n.params],async([L,_])=>{m(L,_)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,_])=>{f(_,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),I=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),B=de(n,"hintVisible");const A=(L,_)=>{const C=[];return L.forEach((k,T)=>{const H=dt(n,k),N=ft(n,k);let O=Ku(n,k);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=Xu(n,k,T)??{},U=`${H}_${T}`,W={...R,key:U,class:n.itemClass,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?C.push(o.h(p.ElCheckboxButton,W,{default:()=>[N]})):typeof _=="function"?C.push(o.h(p.ElCheckbox,W,{default:()=>_(k)})):C.push(o.h(p.ElCheckbox,W,{default:()=>[N]}))}),C};return()=>{const _={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:pe(n.max),min:pe(n.min),onChange:I},C=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const T=o.h(p.ElCheckboxGroup,_,k);C.push(T);const H={default:()=>C};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,fr),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),o.h(l,O,H)}}}}const{componentName:Ju,create:Qu,scope:ec}=ie("checkbox-item"),oo=Qu(Zu(Ju,ec,we)),dr={modelValue:{type:[Number,String],required:!1}};function tc(e,t,l){return{props:{...ve,...Ee,...dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>pe(h)),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),E=o.ref(!1);const m=o.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:c},$={},w=[],I=o.h(p.ElRate,g,$);w.push(I);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,dr),hintText:b.value,hintVisible:E.value,prop:`${n.prop}_item`};return o.h(l,A,q)}}}}const{componentName:nc,create:oc,scope:lc}=ie("rate-item"),lo=oc(tc(nc,lc,we)),hr={modelValue:{type:[Boolean,String,Number],required:!1}};function rc(e,t,l){return{props:{...ve,...Ee,...hr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue"),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),E=de(n,"hintVisible");const m=o.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],I=o.h(p.ElSwitch,g,$);w.push(I);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,hr),hintText:b.value,hintVisible:E.value,prop:`${n.prop}_item`};return o.h(l,A,q)}}}}const{componentName:ac,create:ic,scope:sc}=ie("switch-item"),ro=ic(rc(ac,sc,we)),gr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function uc(e,t,l){return{props:{...ve,...Ee,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),s=o.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=de(n,"modelValue"),f=e,c=o.computed(()=>({[f]:!0})),b=B=>{u("update:modelValue",B),u("change",B)};let E=de(n,"hintText"),m=o.ref(!1);const h=B=>{let L=B.target.value;s.value=!0,ge(E.value)||(m.value=!0),u("focus",L,B)},g=B=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=o.ref(!1),I=B=>{w.value=B,u("visible-change",B),B||u("selected")},q=o.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...Pe(r.attrs),ref:q,class:c.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:$,onFocus:h,onBlur:g,onVisibleChange:I},L={};r.slots.option&&(L.default=r.slots.option);const _=[],C=o.h(p.ElTreeSelect,A,L);_.push(C);const k={default:()=>_};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const H={...Ce(n,gr),hintText:E.value,hintVisible:m.value,prop:`${n.prop}_item`};return o.h(l,H,k)}}}}const{componentName:cc,create:fc,scope:dc}=ie("tree-select-item"),ao=fc(uc(cc,dc,we)),hc={},gc={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"},mc=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function yc(e,t){return o.openBlock(),o.createElementBlock("svg",gc,mc)}const pc=Me(hc,[["render",yc]]),{componentName:Vh,create:bc,scope:Dh}=ie("group-setting"),vc={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:"到底部"}},wc=bc({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:pc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...vc},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=rr(),s=D=>D.length>1,u=()=>{const D=[],x=[...a.value];a.value=x.map((V,v)=>(V.visible!==!1&&D.push(V.prop),{...V,sortIndex:v})),a.value.length===D.length?h.value=!0:D.length>0&&(g.value=!0),I.value=D},d=D=>{let x=null;if(typeof D=="string")x=document.querySelectorAll(`.fox-group[prop="${D}"] > div > .fox-item[prop]`);else if(D&&typeof D=="object"){const V=D.$el??D;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const F=[];return x.forEach(V=>{const v=V.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const j=V.getAttribute("prop")??"",M=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:K,prop:j,sortIndex:0,visible:M!=="none"})}),F},f=()=>{if(!r){const D=d(e.groupRef??e.groupProp);if(D.length===0)return!1;r=D}return!0},c=async(D=!1)=>{const x=await i.load(e.groupProp),F=V=>{if(!V||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(j=>{if(j.prop===K.prop){const z=j.label;return Object.assign(j,K),j.label=z,!0}return!1})}),a.value=v.sort((K,j)=>K.sortIndex-j.sortIndex),u(),D&&E(!1)};r?F(!0):qt(f,e.initDelay,5,50,!1,F)},b=()=>{const D=r??[];a.value=D.map(x=>({...x})),u(),E()},E=(D=!0)=>{D&&i.save(e.groupProp,a.value);const x=a.value.map(F=>({...F}));t("change",x)},m=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=o.ref(!1),g=o.ref(!1),$=D=>{const x=[];a.value.forEach(V=>{D&&x.push(V.prop),V.visible=D}),h.value=!1,g.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(g.value=!0),I.value=x,E()},w=()=>{b()},I=o.ref([]),q=D=>{a.value.forEach(F=>{const V=D.indexOf(F.prop)!==-1;F.visible=V}),h.value=!1,g.value=!1;const x=a.value.length;D.length===x?h.value=!0:D.length>0&&(g.value=!0),E()},B=()=>{c()};o.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=D=>D?D.dataset&&D.dataset.role==="row"?D:D.tagName.toLowerCase()!=="body"?(D=D.parentElement,L(D)):null:null,_=D=>{const x=D.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},C=D=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},k=D=>{const x=D.currentTarget;D.relatedTarget;const F=L(x);F&&(D.preventDefault(),A.currentRow&&A.currentRow!==F&&A.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),A.currentRow=F)},T=D=>{D.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},H=D=>{const x=D.currentTarget,F=L(x);if(!F)return;D.preventDefault();const V=Number(A.index),v=Number(F.dataset.index);if(V!==v){if(V<v){const K=a.value[V];a.value.splice(V,1),a.value.splice(v,0,K)}else{const K=a.value[V];a.value.splice(V,1),a.value.splice(v+1,0,K)}u(),E()}},N=D=>{const x=a.value[D];a.value.splice(D,1),a.value.splice(0,0,x),u(),E()},O=D=>{const x=a.value[D];a.value.splice(D,1),a.value.push(x),u(),E()};n({refresh:()=>{r=null,c(!1)}});const R=new Map;let U=null;function W(D){const x=document.createRange();return x.setStart(D,0),x.setEnd(D,D.childNodes.length),x.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:$,handleReset:w,checkedValue:I,handleCheckChange:q,onShow:B,onDragStart:_,onDragEnd:C,onDragOver:k,onDragLeave:T,onDrop:H,checkboxLabelStyle:m,toTop:N,toBottom:O,onMouseOverForOverflowText:(D,x,F)=>{const V=D.currentTarget;if(V){const v=Math.floor(V.offsetWidth);if(Math.floor(W(V))>v){let j=R.get(x);if(j){if(j===U)return;Ve.hide(j)}j=Ve.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),R.set(x,j),U=j}}},onMouseLeaveForOverflowText:(D,x)=>{const F=R.get(x);F&&(Ve.hide(F),F===U&&(U=null))},onMouseOverForTip:(D,x)=>{const F=D.currentTarget;F&&(U&&Ve.hide(U),U=Ve.show(F,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:D=>{U&&(Ve.hide(U),U=null)}}}}),Sc={class:"fox-group-setting"},xc={class:"fox-group-setting__header"},Tc={class:"fox-group-setting__body"},$c={class:"fox-group-setting__body-list","data-role":"container"},Cc=["data-index","draggable"],Nc=["onMouseover","onMouseleave"],Ec={class:"tools-item"};function kc(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("Download"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("FoxCheckboxGroup"),b=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(b,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",Sc,[o.createElementVNode("div",xc,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=E=>e.isCheckAll=E),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",Tc,[o.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=E=>e.checkedValue=E),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",$c,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,E=>(o.openBlock(),o.createElementBlock("div",{key:E.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":E.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)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:E.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,E.prop,E.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,E.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(E.label),45,Nc)]),_:2},1032,["label"]),o.createElementVNode("div",Ec,[o.createVNode(f,{onClick:m=>e.toTop(E.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:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toBottom(E.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"])])],40,Cc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const io=Me(wc,[["render",kc]]),Ic=["aria-labelledby"],Oc=o.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Vc=[Oc],Dc=o.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Vc,14,Ic))}}),Fc=["aria-labelledby"],Rc=o.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ac=[Rc],so=o.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ac,14,Fc))}}),Lc=["aria-labelledby"],Mc=o.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Bc=[Mc],_c=o.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Bc,14,Lc))}}),qc=["aria-labelledby"],Pc=o.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[Pc],zc=o.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.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=o.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Wc=[Kc],Yc=o.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.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))}}),Gc={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}},mr=(e,t)=>t[e.textKey],Et=(e,t)=>t[e.valueKey],Uc=(e,t)=>t[e.visibleKey],yr=(e,t)=>t[e.disabledKey],Xc=(e,t)=>{const l=t[e.doitKey];return se(l)},Zc=(e,t)=>{const l=t[e.numKey];return l==null?null:pe(t[l])},pr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function Jc(e,t,l,n=!1){return{props:{...Gc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=o.computed(()=>{const D={};return D[`${e}`]=!0,D}),u=o.computed(()=>{const D={};return D[`${e}__titles`]=!0,D[`${r.direction}`]=!0,r.align==="left"&&(D.left=!0),r.scroll===!0&&(D.scrollable=!0),r.shape&&(D[`${r.shape}`]=!0),D}),d=o.computed(()=>({})),f=o.computed(()=>{if(!r.gutter)return 0;const D=fe(r.gutter);return D<=0?0:D}),c=o.ref(r.modelValue);o.watch(()=>r.modelValue,D=>{c.value!==D&&(c.value=D,W(!1))});const b=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),E=o.computed(()=>{const D={};return h.value||(D.display="none"),D}),m=o.ref(),h=o.ref(!1),g=()=>{const D=!h.value;$(D)},$=D=>{const x=D;x?(h.value=x,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=o.ref(),I=o.ref([]),q=(D,x)=>{I.value[x]=D},B=D=>x=>{q(x,D)},A=(D,x)=>{const F=w.value,V=I.value;if(!F||!V||!V[D])return;const v=V[D];let K=0;r.direction==="vertical"?K=v.offsetTop-(F.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(F.offsetWidth-v.offsetWidth)/2,L(F,K,x?0:.3,r.direction)},L=(D,x,F,V)=>{let v=0;const K=V==="horizontal"?D.scrollLeft:D.scrollTop,j=F===0?1:Math.round(F*1e3/16);function z(){V==="horizontal"?D.scrollLeft+=(x-K)/j:D.scrollTop+=(x-K)/j,++v<j&&pn(z)}z()},_=(D,x)=>{const F=Et(r,D),V={};return V[`${e}__titles-item`]=!0,V.disabled=yr(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),x&&(x.class&&(V[`${x.class}`]=!0),x.disabled===!0&&(V.disabled=x.disabled)),V},C=(D,x)=>{const F={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(F,x.style),F},k=(D,x)=>`${Et(r,D)??x}`,T=(D,x)=>{const F=Et(r,D),V={};V[`${e}__popup-item`]=!0,V.disabled=yr(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0);const v=pr(r,D,x);return v&&v.disabled===!0&&(V.disabled=v.disabled),V},H=o.computed(()=>(r.data??[]).filter(x=>Uc(r,x)!==!1)),N=(D,x)=>{const F=Et(r,D);if(c.value==F)return;const V=()=>{c.value=F,r.scroll&&A(x,!1),i("update:modelValue",F),i("change",D,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(D,x);Go(v)?v.then(K=>{K!==!1&&V()}).catch(()=>{V()}):v!==!1&&V()}else V()},O=(D,x)=>function(){N(D,x)},R=(D,x)=>{N(D,x),$(!1)},U=(D,x)=>function(){R(D,x)},W=D=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(F=>Et(r,F)===c.value);x!==-1&&A(x,D)};o.watch(()=>r.data,()=>{setTimeout(W,0)}),o.onMounted(()=>{W(!0)});const J=(D,x)=>{if(a.item)return a.item({item:D,index:x});const F=pr(r,D,x),V=[];if(a.text){const z=a.text({item:D,index:x});V.push(z)}else{const z=[];if(F?.doit===!0||Xc(r,D)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ne=o.h("view",Q);z.push(ne)}const M=F?.num??Zc(r,D);if(M){let Q="";const ne=pe(M);ne>=100?Q="99+":Q=`${ne}`;const S={class:[`${e}__titles-item-tip`,"num"]},G=o.h("view",S,[Q]);z.push(G)}const P={class:`${e}__titles-item-text`};z.push(mr(r,D));const Y=o.h("view",P,z);V.push(Y)}const v={class:`${e}__titles-item-line`},K=o.h("view",v);V.push(K);const j={ref:B(x),class:_(D,F),style:C(D,F),key:k(D,x),onClick:O(D,x)};return o.h("view",j,V)},Z=()=>{const D=a.default?a.default():[];if(D.length===0)for(let F=0;F<H.value.length;F++){const V=H.value[F],v=J(V,F);D.push(v)}const x={ref:w,class:u.value,style:d.value};return o.h("view",x,D)},ee=()=>{let D=null;a.navigation?D=a.navigation():D=o.h(l);const x={class:`${e}__navigation`,onClick:g};return o.h("view",x,[D])},re=()=>{const D=[];for(let F=0;F<H.value.length;F++){const V=H.value[F];let v=null;a.popupItem?v=a.popupItem({item:V,index:F}):v=mr(r,V);const K={class:T(V,F),key:k(V,F),onClick:U(V,F)},j=o.h("view",K,[v]);D.push(j)}const x={class:b.value,style:E.value};return o.h("view",x,D)};return()=>{const D=[],x=Z();if(D.push(x),r.showQuickNavigation){const V=ee();D.push(V);const v=re();D.push(v)}const F={class:s.value};return o.h("view",F,D)}}}}const{create:Qc,componentName:ef,scope:tf}=ie("tabs-bar"),uo=Qc(Jc(ef,tf,Dc,!1)),br=Symbol("TabsStatesKey"),nf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function of(e,t,l=!1){return{props:{...nf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),s={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),o.triggerRef(i)},remove:h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex($=>$.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};o.provide(br,s);const u=h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&(i.value[g].loaded=!0,o.triggerRef(i))};o.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 d=o.ref(null),f=o.ref(null),c=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let b=!0;const E=o.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const $=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`,$!==-1&&(h.transform=`translate(0, -${$*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*s.tabWidth.value}px, 0)`)),b&&(b=!1,h.transition="transform 0s ease"),h});let m=null;return o.onMounted(()=>{if(!d.value)return;const h=()=>{const g=Wt(d.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(d.value)),h()}),o.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:E.value,ref:f},g=o.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return o.h("view",$,[g])}}}}const{create:lf,componentName:rf,scope:af}=ie("tabs-container"),co=lf(of(rf,af,!1)),sf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function uf(e,t,l){return{props:{...sf},setup(n,{emit:r,slots:a}){const i=o.inject(br);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=o.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=o.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},b=n.emptyIcon??l,E=o.h(b,c),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=o.h("view",m,[h]),$={class:`${e}__empty`},w=o.h("view",$,[E,g]);d.push(w)}const f={class:`${e}`,style:s.value};return o.h("view",f,d)}}}}const{create:cf,componentName:ff,scope:df}=ie("tabs-pane"),fo=cf(uf(ff,df,so)),hf={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 gf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function wr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function mf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function ho(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Sr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function xr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function go(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class yf{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function pf(){const e=o.getCurrentInstance();return new yf(e.proxy)}function bf(e,t,l,n){return{props:{...hf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=pf(),d=o.ref([]),f=o.computed(()=>d.value.filter(x=>mf(r,x)!==!1)),c=o.ref(-1),b=()=>{const x=r.modelValue,F=f.value.findIndex(V=>vr(r,V)===x);c.value!==F&&(c.value=F,r.scroll&&re(F,!1))};o.watch([()=>r.modelValue,f],()=>{b()});const E=x=>c.value===x,m=x=>{if(x<0&&x>=f.value.length)return!1;const F=f.value[x],v=(go(r,F,x)??{}).status??ho(r,F);return E(x)||v},h=o.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),g=o.computed(()=>({})),$=(x,F,V,v,K)=>{const j={[`${s}__step`]:!0};return K&&(j[`${K}`]=!0),j[`${w.value}`]=!0,v&&(j["is-doit"]=!0),x===c.value?j["is-active"]=!0:F==="done"?j["is-done"]=!0:F==="error"?j["is-error"]=!0:F==="half"?j["is-half"]=!0:V?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=o.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),I=(x,F={})=>{const V={...F};return w.value==="start"&&x===f.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},q=(x,F)=>{let V={};if(F<f.value.length-1){const v=F+1;m(F)&&m(v)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},B=x=>f.value.length-1===x,A=(x,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>c.value||c.value===F)return;const V=c.value,v=F;c.value=F,r.scroll&&re(F,!1);const K=vr(r,x);i("update:modelValue",K);const j={fromIndex:V,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,j)},L=o.ref(!0),_=async(x,F)=>{try{const V=await u.load("stesbar",x,F);Array.isArray(V)&&(d.value=V),L.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([x,F])=>{x&&_(x,F)},{immediate:!0});const C=(x,F,V,v,K)=>{let j=null;if(a.icon)j=a.icon({item:x,index:F,status:v});else if(v==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const P=r.icon??l;j=o.h(P,M)}else{const M=V??`${F+1}`;j=o.h("span",{},[M])}const z={class:"fox-steps-bar__icon",onClick:()=>{K||A(x,F)}};return o.h("view",z,[j])},k=(x,F,V)=>{const v=o.h("i",{class:"fox-steps-bar__line-inner",style:q(x,F)});return o.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const v=r.markIcon??n;x=o.h(v,V)}return o.h("view",{class:"fox-steps-bar__mark"},[x])},H=(x,F,V,v,K)=>{const j=[];if(!B(F)){const P=k(x,F);j.push(P)}const z=C(x,F,V,v,K);j.push(z);const M={class:"fox-steps-bar__head"};return o.h("view",M,j)},N=(x,F,V,v)=>{let K=null;a.main?K=a.main({item:x,index:F,status:V}):K=gf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{v||A(x,F)}};return o.h("view",j,[K])},O=(x,F,V)=>{let v=null;if(a.sub){v=a.sub({item:x,index:F,status:V});const K={class:"fox-steps-bar__sub"};return o.h("view",K,[v])}return null},R=(x,F)=>{const V=go(r,x,F)??{},v=V.status??ho(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const j=V.label??xr(r,x),z=[],M=C(x,F,j,v,K);M&&z.push(M);const P=N(x,F,v,K);if(P&&z.push(P),!B(F)){const te=k(x,F);te&&z.push(te)}const Y=o.h("view",{class:"fox-steps-bar__head"},z),Q=V.class,ne=V.style??{};let S=Sr(r,x);V.doit===!0&&(S=!0);const G={ref:ee(F),class:$(F,v,K,S,Q),style:I(F,ne)};return o.h("view",G,[Y])},U=(x,F)=>{const V=go(r,x,F)??{},v=V.status??ho(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const j=V.label??xr(r,x),z=[],M=r.layout;for(let S of M)if(S==="head"){const G=H(x,F,j,v,K);z.push(G)}else if(S==="main"){const G=N(x,F,v,K);z.push(G)}else if(S==="sub"){const G=O(x,F,v);z.push(G)}else if(S==="mark"){const G=T();z.push(G)}const P=V.class,Y=V.style??{};let Q=Sr(r,x);V.doit===!0&&(Q=!0);const ne={ref:ee(F),class:$(F,v,K,Q,P),style:I(F,Y)};return o.h("view",ne,z)},W=o.ref(),J=o.ref([]),Z=(x,F)=>{J.value[F]=x},ee=x=>F=>{Z(F,x)},re=(x,F)=>{const V=W.value,v=J.value;if(!V||!v||!v[x])return;const K=v[x];let j=0;r.direction==="vertical"?j=K.offsetTop-(V.offsetHeight-K.offsetHeight)/2:j=K.offsetLeft-(V.offsetWidth-K.offsetWidth)/2,D(V,j,F?0:.3,r.direction)},D=(x,F,V,v)=>{let K=0;const j=v==="horizontal"?x.scrollLeft:x.scrollTop,z=V===0?1:Math.round(V*1e3/16);function M(){v==="horizontal"?x.scrollLeft+=(F-j)/z:x.scrollTop+=(F-j)/z,++K<z&&pn(M)}M()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const v=f.value[V],K=R(v,V);x.push(K)}else for(let V=0;V<f.value.length;V++){const v=f.value[V],K=U(v,V);x.push(K)}const F={ref:W,class:h.value,style:g.value};return o.h("view",F,x)}}}}const{componentName:vf,create:wf,scope:Sf}=ie("steps-bar"),mo=wf(bf(vf,Sf,zc,Yc)),xf=Symbol.for("InnerPageScopeKey"),Tf=Symbol.for("PageWrapperKey");function $f(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(l,n){o.provide(xf,!0);const r={};o.provide(Tf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return o.h(p.ElDialog,d,f)}}}}const{componentName:Fh,create:Cf,scope:Rh}=ie("dialog-item"),yo=Cf($f());let kt=0;const Tr="fox-overflow-hidden",$r=()=>tt?document.body:{classList:[]},Nf=e=>[()=>{if(e())try{!kt&&$r().classList.add(Tr),kt++}catch{}},()=>{if(e()&&kt)try{kt--,!kt&&$r().classList.remove(Tr)}catch{}}],Ef={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:kf,create:If}=ie("overlay"),Of=If({props:{...Ef},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=Nf(()=>e.lockScroll),r=o.computed(()=>({[kf]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,s=>{s?l():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Vf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:t[0]||(t[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const nn=Me(Of,[["render",Vf]]),Df={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:{}}},Cr=2e3;let Nr=Cr;const Ff=(e,t)=>({components:t,props:{...Df},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),u=()=>{l.zIndex!==Cr&&(Nr=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Nr,l.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},b=h=>{n("click-overlay",h),l.closeOnClickOverlay&&n("update:visible",!1)},E=h=>{n("opend",h)},m=h=>{n("closed",h)};return o.watch(()=>l.visible,h=>{l.visible?u():d()}),o.watch(()=>l.closeable,h=>{r.closed=h}),{...o.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:b,onOpened:E,onClosed:m}}}),{componentName:Rf,create:Af}=ie("popup"),Lf=Af(Ff(Rf,{FoxOverLay:nn,Close:_c}));function Mf(e,t,l,n,r,a){const i=o.resolveComponent("FoxOverLay"),s=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(s)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const po=Me(Lf,[["render",Mf]]),{create:Bf}=ie("toast"),_f=Bf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,E=>{E&&i()});const u=o.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const E=fe(e.iconSize);return o.h(e.icon,{width:E,height:E,color:e.iconColor})},f=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),qf={key:1,class:"fox-toast-title"},Pf=["innerHTML"];function jf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",qf,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Pf)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const bo=Me(_f,[["render",jf]]),zf={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"}},Hf=(e,t,l)=>({props:{...zf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["placeholder"]),u=o.reactive({active:!1}),d=o.computed(()=>({background:n.background})),f=o.computed(()=>({background:n.inputBackground})),c=C=>{let T=C.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),r("update:modelValue",T,C),r("change",T,C)},b=o.ref({}),E=C=>{let T=C.target.value;u.active=!0,b.value=n.focusStyle,r("focus",T,C)},m=C=>{setTimeout(()=>{u.active=!1},0);let T=C.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),b.value={},r("blur",T,C)},h=C=>{r("update:modelValue","",C),r("change","",C),r("clear","")},g=o.computed(()=>String(n.modelValue).length>0),$=o.computed(()=>{const C={};return g.value||(C.display="none"),C}),w=()=>{r("search",n.modelValue)},I=C=>{r("keyup-input",C),C.key.toLocaleUpperCase()==="ENTER"&&w()},q=C=>{r("click-input",C)},B=C=>{r("click-left-icon",n.modelValue,C)},A=o.computed(()=>({textAlign:n.inputAlign})),L=o.ref(null);o.onMounted(()=>{n.autofocus&&L.value.focus()});const _=()=>{const C=[];if(a.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},R=o.h("view",O,[a.leftin()]);C.push(R)}const k={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:E,onBlur:m,onkeyup:I},T=o.h("input",k);C.push(T);const H=[];if(n.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},R=a?.clear?.()??n.clearIcon??l,U=o.h("view",O,[o.h(R)]);H.push(U)}if(a.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=o.h("view",O,[a.rightin()]);H.push(R)}if(H.length>0){const O={class:`${e}__input-inner-right`},R=o.h("view",O,H);C.push(R)}const N={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...b.value}};return o.h("view",N,C)};return()=>{const C=[];if(n.label){const H={class:`${e}__search-label`},N=o.h("span",H,[n.label]);C.push(N)}if(a.leftout){const H={class:[`${e}__search-icon`,`${e}__left-search-icon`]},N=o.h("view",H,[a.leftout()]);C.push(N)}const k=_();if(C.push(k),a.rightout){const H={class:[`${e}__search-icon`,`${e}__right-search-icon`]},N=o.h("view",H,[a.rightout()]);C.push(N)}const T={class:`${e}`,style:d.value};return o.h("view",T,C)}}}),{componentName:Kf,create:Wf,scope:Yf}=ie("searchbar"),vo=Wf(Hf(Kf,Yf,Te.CircleClose)),Gf=/scroll|auto|overlay/i,Er=window;function Uf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Xf(e,t=Er){let l=e;for(;l&&l!==t&&Uf(l);){const{overflowY:n}=window.getComputedStyle(l);if(Gf.test(n))return l;l=l.parentNode}return t}function kr(e,t=Er){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=Xf(e.value,t))}),l}const Ir=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Zf={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 Jf(e,t,l){return{props:{...Zf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=o.ref(),d=kr(u),f=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=o.computed(()=>({[e]:!0})),b=w=>w?w.offsetTop+b(w.offsetParent):0,E=()=>{let w=0,I=0,q="down";if(d.value==window){const B=Ir();u.value&&(w=b(u.value)+u.value.offsetHeight-B-window.innerHeight),I=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:L}=d.value;w=B-A-L,I=L}return f.beforeScrollTop>I?q="up":q="down",f.beforeScrollTop=I,r("scroll-change",I),w<=n.threshold&&q=="down"},m=()=>{Bo(()=>{if(!E()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",m,n.useCapture)},g=()=>{d.value&&d.value.removeEventListener("scroll",m,n.useCapture)};o.onMounted(()=>{h(),n.immediate&&m()}),o.onUnmounted(()=>{g()});const $=o.ref(!1);return o.onActivated(()=>{$.value&&($.value=!1,h())}),o.onDeactivated(()=>{$.value=!0,g()}),o.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},I=o.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let _=a?.loading?.()??null;if(!_){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=o.h(l,O)}const H={class:"fox-infinite__bottom-box__text"},N=o.h("view",H,[s.loadText.value]);_=[T,N]}const C={class:"fox-infinite__bottom-box"},k=o.h("view",C,_);q.push(k)}else if(!n.hasMore){let _=a?.finished?.()??null;if(!_){const C={class:"fox-infinite__bottom-tips"};_=o.h("view",C,[s.loadMoreText.value]),q.push(_)}}const B={class:"fox-infinite__bottom"},A=o.h("view",B,q),L={class:c.value,ref:u};return o.h("view",L,[I,A])}}}}const{componentName:Qf,create:ed,scope:td}=ie("infinite-loading"),wo=ed(Jf(Qf,td,so)),Or=10;function Vr(e,t){return e>t&&e>Or?"horizontal":t>e&&t>Or?"vertical":""}function So(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function xo(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=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=Vr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:l,state:e}}function nd(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),s=o.ref(0),u=o.ref(0),d=o.ref(0),f=o.ref(""),c=()=>f.value==="vertical",b=()=>f.value==="horizontal",E=()=>{i.value=0,s.value=0,u.value=0,d.value=0,f.value="",l.value=0};return{move:g=>{if(g.touches){const I=g.touches[0];i.value=I.clientX-e.value,s.value=I.clientY-t.value,r.value=I.clientX,a.value=I.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),d.value=Math.abs(s.value),n.value=Date.now()-l.value,f.value||(f.value=Vr(u.value,d.value))},start:g=>{if(E(),g.touches){const I=g.touches[0];e.value=I.clientX,t.value=I.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}l.value=Date.now()},reset:E,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:b}}const od={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}},ld=(e,t,l)=>({props:{...od},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=xo(),d=o.ref(),f=kr(d),c=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=o.computed(()=>({[e]:!0})),E=o.computed(()=>{switch(c.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=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=o.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ne(n.headHeight)),L}),g=L=>{const _=+(n.pullDistance||n.headHeight);let C=L;return L>_&&(L<_*2?C=(L+_)/2:C=_+L/4),Math.round(C)},$=(L,_)=>{const C=+(n.pullDistance||n.headHeight);c.distance=L,_?c.status="loading":L===0?c.status="normal":L<C?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",I=()=>f.value==window?Ir()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(I()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(g(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return o.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let _=null;if(c.status==="loading"){if(_=a?.loading?.()??null,!_){const U={class:["fox-pull-refresh-container-topbox-icon"]};_=o.h(l,U)}}else c.status==="pulling"?_=a?.pulling?.()??null:c.status==="loosing"&&(_=a?.loosing?.()??null);_&&L.push(_);const C={class:["fox-pull-refresh-container-topbox-text"]},k=o.h("dive",C,[E.value]);L.push(k);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},H=o.h("div",T,L),N={class:"fox-pull-refresh-container",style:m.value},O=o.h("div",N,[H,a?.default?.()]),R={ref:d,class:b.value};return So()?Object.assign(R,{onTouchstart:q,onTouchmove:B,onTouchend:A}):Object.assign(R,{onMousedown:q,onMousemove:B,onMouseup:A}),o.h("div",R,[O])}}}),{componentName:rd,create:ad,scope:id}=ie("pull-refresh"),To=ad(ld(rd,id,so));function sd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(l,{slots:n}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),s=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),u=o.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=o.computed(()=>l.color?{color:l.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=o.h(l.icon??"div",h)}const c={class:u.value,style:d.value},b=n.default?n.default():[],E=o.h("div",c,b),m={class:a.value};return l.textPosition==="right"?o.h("div",m,[f,E]):o.h("div",m,[E,f])}}}}const{componentName:ud,create:cd,scope:Ah}=ie("indicator"),$o=cd(sd(ud));function fd(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const dd={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 hd(e,t,l,n=!1){return{props:{...dd},emits:["click"],setup(r,a){const i=o.ref(null),s=o.computed(()=>{const I={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(I[`${e}--${r.type??"default"}`]=!0),r.size&&(I[`${e}--${r.size}`]=!0),I}),u=o.computed(()=>{const I={},q=r.textColor??r.color;return q&&(I.color=q),I}),d=(I,q)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(I.indexOf(A)!==-1){const _=I.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=_,q.class["is-highlight"]=!0,B=o.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(I);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,B=o.h(r.tag,q))}return B},f=I=>{a.emit("click",I)};let c="";const b=()=>{const I=i.value;if(!I)return;const q=I.clientWidth;fd(I,B=>{const A=I.innerHTML??"";ge(A)||B<q||(c?l?.show(I,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=l?.show(I,A,{type:"text",showArrow:r.showArrow},!0)??"")})},E=()=>{c&&l?.hide(c)};let m=null;const h=I=>{m||(m=setTimeout(()=>{b(),m=null},r.showAfter??0))},g=I=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{E()},r.hideAfter??0)},$=()=>{const I=i.value;I&&(I.addEventListener("mouseover",h),I.addEventListener("mouseleave",g))},w=()=>{const I=i.value;I&&(I.removeEventListener("mouseover",h),I.removeEventListener("mouseleave",g))};return o.onMounted(()=>{!se(r.showOverflowTooltip)||!l||$()}),o.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!l||w()}),()=>{const I={onClick:f,class:s.value,style:u.value,ref:i};let q=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const C=_[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const k=pe(r.digits),T=pe(r.decimalLength),H=se(r.autoPadding);let N=`${_[0].children}`,O=N.split("").reverse().join("");O=Ft(O,T,H,k,r.separator),N=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(N,I)),q||(I.innerHTML=N,q=o.h(r.tag,I))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const _=a.slots.default();if(Array.isArray(_)&&_.length===1){const C=_[0].type.toString();if(C==="Symbol(Text)"||C==="Symbol(v-txt)"){const k=`${_[0].children}`;q=d(k,I),q||(I.innerHTML=k,q=o.h(r.tag,I))}}}q||(q=o.h(r.tag,I,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const C={},k=r.color;k&&(C.color=k);const T={class:_,style:C};A=o.h("view",T,o.h(r.icon))}else if(a.slots.mark){const _={[`${e}__mark-wrap`]:!0};r.type&&(_[`${e}__mark-wrap--${r.type}`]=!0);const C={},k=r.color;k&&(C.color=k);const T={class:_,style:C};A=o.h("view",T,{default:a.slots.mark})}else{const _={[`${e}__mark`]:!0};r.type&&(_[`${e}__mark--${r.type??"default"}`]=!0);const C={},k=r.color;k&&(C["background-color"]=k);const T={class:_,style:C};A=o.h("view",T)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",L,[A,q])}}}}const{componentName:gd,create:md,scope:yd}=ie("text"),Co=md(hd(gd,yd,Ve,!1)),pd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Te.ArrowUp}};function bd(e,t,l){return{props:{...pd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),i=de(n,"modelValue"),s=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=o.computed(()=>({[`${e}__text`]:!0})),d=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const h={class:u.value},g=o.h("span",h,[s.value]);c.push(g)}const b={class:d.value},E=l(n.icon,b);return E&&c.push(E),o.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:vd,create:wd,scope:Sd}=ie("more-button"),No=wd(bd(vd,Sd,(e,t)=>(e=e??Te.ArrowUp,o.h(p.ElIcon,t,{default:()=>[o.h(e)]}))));function xd(e){return e===window}const Dr=e=>{const t=o.unref(e);if(xd(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Td,create:$d,scope:Mh}=ie("tour"),Cd=$d({components:{Close:Te.Close,ElPopover:p.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const l=Td,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:$,height:w,left:I,top:q}=r.value,B=e.steps[n.active].offset??m,A=[I+$/2,q+w/2],L=Number(h||$),_=Number(g||w);return{width:`${L+ +B.left+B.right}px`,height:`${_+B.top+B.bottom}px`,top:`${A[1]-_/2-+B.top}px`,left:`${A[0]-L/2-+B.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Dr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},E=(m,h=0)=>{m&&f(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return o.onMounted(()=>{E(e.modelValue,e.current)}),o.watch(()=>e.modelValue,m=>{E(m)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:b}}}),Nd={key:0,class:"fox-tour__content"},Ed={key:0,class:"fox-tour__content-top"},kd={class:"fox-tour__content-inner"},Id={class:"fox-tour__content-bottom"},Od={class:"fox-tour__content-bottom-init"},Vd={class:"fox-tour__content-bottom-operate"},Dd={key:1,class:"fox-tour__content fox-tour__content-tile"},Fd={class:"fox-tour__content-inner"};function Rd(e,t,l,n,r,a){const i=o.resolveComponent("Close"),s=o.resolveComponent("fox-button"),u=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(d,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(o.openBlock(),o.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",Nd,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",Ed,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",kd,o.toDisplayString(d.content),1),o.createElementVNode("div",Id,[o.createElementVNode("div",Od,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Vd,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Dd,[o.createElementVNode("div",Fd,o.toDisplayString(d.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const Eo=Me(Cd,[["render",Rd]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class Ad{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=So()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=xo(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(l.move(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Fr(e,t){return new Ad(e,t)}var Rr;const ko=typeof window<"u";ko&&((Rr=window?.navigator)!=null&&Rr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Ar=e=>{const t=e;t.key==="Escape"&&ht.forEach(l=>l(t))},Ld=e=>{o.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Ar),ko&&ht.push(e)}),o.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&ko&&document.removeEventListener("keydown",Ar)})},Io="fox-focus-trap.focus-after-trapped",Oo="fox-focus-trap.focus-after-released",Md="fox-focus-trap.focusout-prevented",Lr={cancelable:!0,bubbles:!1},Bd={cancelable:!0,bubbles:!1},Mr="foxFocusAfterTrapped",Br="foxFocusAfterReleased",_d=Symbol("foxFocusTrap"),Vo=o.ref(),on=o.ref(0),Do=o.ref(0);let ln=0;const _r=e=>{const t=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)t.push(l.currentNode);return t},qd=(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},qr=(e,t)=>{for(const l of e)if(!qd(l,t))return l},Pd=e=>{const t=_r(e),l=qr(t,e),n=qr(t.reverse(),e);return[l,n]},jd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Do.value=window.performance.now(),e!==l&&jd(e)&&t&&e.select()}};function Pr(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const zd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Pr(e,n),e.unshift(n)},remove:n=>{e=Pr(e,n),e[0]?.resume?.()}}},Hd=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==l)return},jr=zd(),Kd=()=>on.value>Do.value,rn=()=>{Vo.value="pointer",on.value=window.performance.now()},zr=()=>{Vo.value="keyboard",on.value=window.performance.now()},Wd=()=>(o.onMounted(()=>{ln===0&&(document.addEventListener("mousedown",rn),document.addEventListener("touchstart",rn),document.addEventListener("keydown",zr)),ln++}),o.onBeforeUnmount(()=>{ln--,ln<=0&&(document.removeEventListener("mousedown",rn),document.removeEventListener("touchstart",rn),document.removeEventListener("keydown",zr))}),{focusReason:Vo,lastUserFocusTimestamp:on,lastAutomatedFocusTimestamp:Do}),an=e=>new CustomEvent(Md,{...Bd,detail:e}),{componentName:Bh,create:Yd,scope:_h}=ie("focus-trap"),Gd=Yd({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:[Mr,Br,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Wd();Ld(h=>{se(e.trapped)&&!s.paused&&l("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:g,altKey:$,ctrlKey:w,metaKey:I,currentTarget:q,shiftKey:B}=h,{loop:A}=e,L=g==="Tab"&&!$&&!w&&!I,_=document.activeElement;if(L&&_){const C=q,[k,T]=Pd(C);if(k&&T){if(!B&&_===T){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),A&&Je(k,!0))}else if(B&&[k,C].includes(_)){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),A&&Je(T,!0))}}else if(_===C){const N=an({focusReason:i.value});l("focusout-prevented",N),N.defaultPrevented||h.preventDefault()}}};o.provide(_d,{focusTrapRef:n,onKeydown:u}),o.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),o.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",b)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",c),g.removeEventListener("focusout",b))});const d=h=>{l(Mr,h)},f=h=>l(Br,h),c=h=>{const g=o.unref(n);if(!g)return;const $=h.target,w=h.relatedTarget,I=$&&g.contains($);se(e.trapped)||w&&g.contains(w)||(r=w),I&&l("focusin",h),!s.paused&&se(e.trapped)&&(I?a=$:Je(a,!0))},b=h=>{const g=o.unref(n);if(!(s.paused||!g))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!xn($)&&!g.contains($)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=an({focusReason:i.value});l("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&g.contains($)||l("focusout",h)}};async function E(){await o.nextTick();const h=o.unref(n);if(h){jr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Io,Lr);h.addEventListener(Io,d),h.dispatchEvent(w),w.defaultPrevented||o.nextTick(()=>{let I=e.focusStartEl;Yo(I)||(Je(I),document.activeElement!==I&&(I="first")),I==="first"&&Hd(_r(h),!0),(document.activeElement===g||I==="container")&&Je(h)})}}}function m(){const h=o.unref(n);if(h){h.removeEventListener(Io,d);const g=new CustomEvent(Oo,{...Lr,detail:{focusReason:i.value}});h.addEventListener(Oo,f),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Kd())&&Je(r??document.body,!0),h.removeEventListener(Oo,d),jr.remove(s)}}return o.onMounted(()=>{se(e.trapped)&&E(),o.watch(()=>e.trapped,h=>{se(h)?E():m()})}),o.onBeforeUnmount(()=>{se(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Ud,create:Xd,scope:Ph}=ie("floating-window"),Zd=Symbol.for("InnerPageScopeKey"),Jd=Symbol.for("PageWrapperKey"),Qd={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}},eh=Xd({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Gd},props:{...Qd},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Ud,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,S=>{n.value=S});const a=o.computed(()=>n.value===!1?!1:!_.value),i=o.ref(e.left),s=o.ref(e.top),u=o.ref(e.right),d=o.ref(e.bottom),f=o.computed(()=>{const S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=o.computed(()=>{const S={};return lt(i.value)?S.left="auto":S.left=De(i.value),lt(s.value)?S.top="auto":S.top=De(s.value),lt(u.value)?S.right="auto":S.right=De(u.value),lt(d.value)?S.bottom="auto":S.bottom=De(d.value),lt(e.zIndex)||(S["z-index"]=De(e.zIndex)),lt(A.value)||(S.height=A.value),lt(L.value)||(S.width=L.value),S}),b=o.computed(()=>e.closeIcon??Te.Close),E=o.computed(()=>e.collapseIcon??Te.ArrowUp),m=o.computed(()=>e.collapseText??""),h=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),g=o.computed(()=>e.expandText??e.title??"展开"),$=o.computed(()=>({[`${l}__collapse-text`]:!0})),w=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!_.value,"is-collapse":_.value})),I=o.ref(),q=o.ref(null),B=o.ref(null),A=o.computed(()=>De(e.height)||""),L=o.computed(()=>De(e.width)||""),_=o.ref(se(e.collapse)),C=(S,G=!0)=>{_.value!==S&&(_.value=S,S?x():F(),t("update:collapse",S),S&&typeof H.onHide=="function"?H.onHide():!S&&typeof H.onShow=="function"&&H.onShow())};o.watch(()=>e.collapse,S=>{C(S)});const k=()=>{T()},T=S=>{S=S??!_.value,C(S)};o.provide(Zd,!0);const H={setCollapse:C,setFixedNavVisible:S=>{ee.value=S}};o.provide(Jd,H);const N=()=>{typeof H.beforeClose=="function"?H.beforeClose(()=>{n.value=!1}):n.value=!1},O=o.ref(null),R=o.computed(()=>!e.fixedNavTeleport),U=o.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),W=o.ref(""),J=o.computed(()=>{const S={};return W.value?S.top=W.value:e.collapseTop&&(S.top=e.collapseTop),S}),Z=o.ref(_.value),ee=o.computed({set:S=>{Z.value=S},get:()=>n.value===!1?!1:Z.value});let re=null;const D=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),ee.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},F=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,d.value=null},v={x:0,y:0},z=Fr(S=>{if(!I.value)return;const G=I.value;if(V(),e.origin==="left-top")i.value=G.offsetLeft,s.value=G.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=G.offsetLeft,d.value=te-(G.offsetTop+G.offsetHeight),v.x=i.value,v.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(G.offsetLeft+G.offsetWidth),d.value=le-(G.offsetTop+G.offsetHeight),v.x=u.value,v.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(G.offsetLeft+G.offsetWidth),s.value=G.offsetTop,v.x=u.value,v.y=s.value}},S=>{if(!I.value)return;const G=I.value;V(),e.origin==="left-top"?(i.value=v.x+S.x,s.value=v.y+S.y,G.style.left=De(i.value),G.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=v.x+S.x,d.value=v.y-S.y,G.style.left=De(i.value),G.style.bottom=De(d.value)):e.origin==="right-bottom"?(u.value=v.x-S.x,d.value=v.y-S.y,G.style.right=De(u.value),G.style.bottom=De(d.value)):(u.value=v.x-S.x,s.value=v.y+S.y,G.style.right=De(u.value),G.style.top=De(s.value))}),M={x:0,y:0},Q=Fr(S=>{O.value&&(M.x=O.value.offsetLeft,M.y=O.value.offsetTop)},S=>{if(!O.value)return;const G=M.y+S.y;W.value=`${G}px`}),ne=()=>{if(I.value){const S=I.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=S}};return o.onMounted(()=>{if(e.draggable&&I.value){const S=[];q.value&&S.push(q.value),e.footerDraggable&&(ne(),B.value&&S.push(B.value)),z.open(S)}e.collapse===!0&&C(e.collapse,!1),O.value&&Q.open(O.value)}),o.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),O.value&&Q.close()}),{classes:f,styles:c,isShow:a,closeIcon:b,onClose:N,dialogRef:I,headerRef:q,onClickToggle:k,collapseIcon:E,collapseText:m,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:ee,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:J,onAnimationEnd:D,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),th={ref:"headerRef",class:"fox-floating-window__header"},nh={class:"fox-floating-window__title"},oh={class:"fox-floating-window__tools"},lh={class:"fox-floating-window__body"},rh={class:"fox-floating-window__fixednav__text"};function ah(e,t,l,n,r,a){const i=o.resolveComponent("FoxIcon"),s=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",th,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",nh,o.toDisplayString(e.title),1),o.createElementVNode("div",oh,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",lh,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",rh,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Fo=Me(eh,[["render",ah]]);function ih(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return gl(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:jh,create:sh,scope:zh}=ie("domain-provider"),Ro=sh(ih()),uh={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 ch(e,t){return{inheritAttrs:!1,props:uh,setup(l,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,E)=>{if(f===null){a.set(b,{visible:null,callback:E});return}r.has(b)&&f.unobserve(b),r.set(b,{visible:null,callback:E}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}r.has(b)&&(r.delete(b),f.unobserve(b))};let u=l.initialVisibleObserverSize;Xa({acquire:()=>{const b=u>0;return u--,b},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const c=(b,E,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let $=!1;g.intersectionRatio>0&&($=!0);const w=r.get(g.target);if(w)try{if(l.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(I){console.error(I)}}},{root:b,rootMargin:E,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([b,E])=>{if(E||!b||f)return;let m=null;typeof b=="string"?m=document.querySelector(b):m=b,m&&c(m,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Hh,create:fh,scope:Kh}=ie("rolling-provider"),Ao=fh(ch()),dh=[In,Vn,Dn,Fn,Ln,we,_n,qn,Tt,Pn,jn,zn,Hn,Kn,Wn,Yn,Un,Xn,Zn,Jn,tn,to,no,oo,lo,ro,ao,io,uo,co,fo,mo,yo,nn,po,bo,vo,wo,To,Ct,Qt,$o,Co,No,Eo,Fo,Ro,Ao],hh=new Ea(dh,[Oa],"4.0.0");Object.defineProperty(y,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(y,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(y,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(y,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(y,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(y,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(y,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(y,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(y,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(y,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(y,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(y,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(y,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(y,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(y,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(y,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(y,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(y,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(y,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(y,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(y,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(y,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(y,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(y,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(y,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(y,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(y,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(y,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(y,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(y,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(y,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(y,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(y,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(y,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(y,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(y,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(y,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(y,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(y,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(y,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(y,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(y,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(y,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(y,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(y,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(y,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(y,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(y,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(y,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(y,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(y,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(y,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(y,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(y,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(y,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(y,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(y,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(y,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(y,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(y,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(y,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(y,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(y,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(y,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(y,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(y,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(y,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(y,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(y,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(y,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(y,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(y,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(y,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(y,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(y,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(y,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(y,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(y,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(y,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(y,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(y,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(y,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(y,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(y,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(y,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(y,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(y,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(y,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(y,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(y,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(y,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(y,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(y,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(y,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),y.AutocompleteItem=Xn,y.Broadcast=Tn,y.BroadcastKey=be,y.CascaderItem=Un,y.CheckboxItem=oo,y.Content=Fn,y.DataItemsKey=at,y.DateItem=zn,y.DateUtils=Ae,y.DialogItem=yo,y.Domain=Pt,y.DomainKey=Le,y.DomainProvider=Ro,y.FloatingWindow=Fo,y.FooterBar=Dn,y.FoxAutocompleteItem=Xn,y.FoxCascaderItem=Un,y.FoxCheckboxItem=oo,y.FoxContent=Fn,y.FoxDateItem=zn,y.FoxDialogItem=yo,y.FoxDomainProvider=Ro,y.FoxFloatingWindow=Fo,y.FoxFooterBar=Dn,y.FoxGroup=Ln,y.FoxGroupSetting=io,y.FoxHeaderBar=Vn,y.FoxHintText=Tt,y.FoxIndicator=$o,y.FoxInfiniteLoading=wo,y.FoxInputItem=Pn,y.FoxInputNumberItem=Yn,y.FoxItem=we,y.FoxMapping=Ct,y.FoxMoneyItem=Wn,y.FoxMoreButton=No,y.FoxOverLay=nn,y.FoxPage=In,y.FoxPopup=po,y.FoxPrice=Qt,y.FoxPullRefresh=To,y.FoxRadioItem=no,y.FoxRateItem=lo,y.FoxRollingProvider=Ao,y.FoxRowItem=qn,y.FoxSearchBar=vo,y.FoxSelectItem=jn,y.FoxSlotItem=_n,y.FoxStepsBar=mo,y.FoxSwitchItem=ro,y.FoxTableItem=to,y.FoxTableMappingColumn=Zn,y.FoxTableRadioColumn=Jn,y.FoxTableSetting=tn,y.FoxTabsBar=uo,y.FoxTabsContainer=co,y.FoxTabsPane=fo,y.FoxText=Co,y.FoxTimeItem=Hn,y.FoxTimeSelectItem=Kn,y.FoxToast=bo,y.FoxTour=Eo,y.FoxTreeSelectItem=ao,y.Group=Ln,y.GroupSetting=io,y.HeaderBar=Vn,y.HintText=Tt,y.Indicator=$o,y.InfiniteLoading=wo,y.InputItem=Pn,y.InputNumberItem=Yn,y.Item=we,y.Mapping=Ct,y.MoneyItem=Wn,y.MoreButton=No,y.OverLay=nn,y.Page=In,y.Popup=po,y.Price=Qt,y.PriorityPolicy=Re,y.PullRefresh=To,y.RadioItem=no,y.RateItem=lo,y.RollingProvider=Ao,y.RowItem=qn,y.SearchBar=vo,y.SelectItem=jn,y.SlotItem=_n,y.StepsBar=mo,y.SwitchItem=ro,y.TableItem=to,y.TableMappingColumn=Zn,y.TableRadioColumn=Jn,y.TableSetting=tn,y.TabsBar=uo,y.TabsContainer=co,y.TabsPane=fo,y.Text=Co,y.TimeItem=Hn,y.TimeSelectItem=Kn,y.Toast=bo,y.Tour=Eo,y.TreeSelectItem=ao,y.UniqueID=Il,y.ValidateSchema=fl,y.ValidateSchemaKey=Ke,y.cancelRaf=Wr,y.clearNonNumber=la,y.clone=wn,y.compareTo=yn,y.createBroadcast=Mt,y.createValidateSchema=_t,y.debounce=wt,y.debounceRef=pa,y.decimalLength=ol,y.default=hh,y.defineBroadcast=sa,y.defineConfigDomain=gl,y.defineDataItem=yl,y.defineDomain=Cn,y.defineItem=Se,y.definePageState=pl,y.deleteGlobalValidator=da,y.disabledProperty=Oe,y.divide=mn,y.excludeProps=Ce,y.extend=et,y.floatData=ia,y.getGlobalValidateCheckEvents=sl,y.getGlobalValidateResetEvents=cl,y.getPageContentAreaHeight=zt,y.getPageContentAreaWidth=Ht,y.getPageFooterAreaHeight=xt,y.getPageHeaderAreaHeight=St,y.getRootDomain=it,y.hasSymbol=Xo,y.includeProps=rl,y.indexOf=ra,y.installRules=ml,y.integerLength=nl,y.isArray=Gr,y.isArrayLike=Jo,y.isBrowser=tt,y.isDate=Zr,y.isESModule=Qr,y.isEmptyString=ge,y.isEqual=He,y.isFunction=bn,y.isHidden=Lt,y.isInnerPage=wa,y.isMap=Ur,y.isNil=xn,y.isNumberString=tl,y.isObject=ze,y.isPlainObject=vn,y.isPromise=Go,y.isRegExp=el,y.isSet=Xr,y.isString=Yo,y.isSubPage=Sa,y.isSymbol=Jr,y.isTouch=So,y.isWindow=Zo,y.lastIndexOf=aa,y.makeArray=oa,y.merge=Qo,y.multiply=Ho,y.negate=Ko,y.nextTick=ta,y.numberFormat=Ft,y.objectToString=Uo,y.once=ba,y.property=ke,y.raf=pn,y.readonlyProperty=Ie,y.setGlobalValidateCheckEvents=ha,y.setGlobalValidateHandler=ca,y.setGlobalValidateMessages=ma,y.setGlobalValidateResetEvents=ga,y.setGlobalValidator=fa,y.throttle=hl,y.toBoolean=se,y.toNumber=pe,y.toPadding=qe,y.toPx=fe,y.toPxDesc=Ne,y.toTypeString=Rt,y.toValue=de,y.tryTimes=qt,y.typeOf=At,y.unNumberFormat=Wo,y.updatePageState=Nn,y.useBroadcast=bt,y.useDomain=We,y.useExpose=xe,y.useInnerSize=On,y.usePageState=jt,y.usePosition=Nl,y.useRawTouch=xo,y.useRect=Dr,y.useSize=Wt,y.useTouch=nd,y.valueLength=pt,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function Ft(e,t="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(l++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=cn($e(e),$e(t)),l==1&&(n==1?e=un(e):t=un(t));let r=qo(e,t);return l?l==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(un(r)):$e(r)}function un(e){let t="",l=e.length,n=e.split(".")[1],r=n?n.length:0;for(let i=0;i<l;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return qo(t,a)}function $e(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function cn(e,t){let l=e.split("."),n=t.split("."),r=l[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""),r=l[1]?l[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function qo(e,t){[e,t]=cn(e,t);let l="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){l="."+l;continue}let a=parseInt(e[r])+parseInt(t[r])+n;l=a%10+l,n=Math.floor(a/10)}return n?n.toString()+l:l}var me=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(me||{});function mt(e,t=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],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=mt(e,0,l),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Po(r[1],a,n,l)?(n?"-":"")+fn(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&&Po(s,i,n,l)&&(i=fn(i),i.length>t)?(n?"-":"")+fn(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function Po(e,t,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function fn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let r=l;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function dn(e,t){e=e.toString(),t=t.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),t[0]=="-"&&(l++,t=t.substr(1)),e=yt(e),t=yt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,f="";for(let c=0;c<i;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let b=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(b+=parseInt(e[u[N]--])*parseInt(t[N]));b+=s,s=Math.floor(b/10),f=b%10+f,d--}return f=yt(Yr(f,a)),l==1&&(f="-"+f),f}function Yr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function yt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function hn(e,t,l=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=$e(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=$e(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=$e(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 d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(l=l+2;a<=l;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Ft(u,"-"+t),d++;s+=d,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?"-":"")+$e(mt(s,l-2))}function gn(e,t){return e=e.toString(),t=t.toString(),t=mn(t),Ft(e,t)}function mn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function jo(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),zo(e),zo(t);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=gn(e,dn(t,mt(hn(e,t),0,me.FLOOR)));return l+n}function zo(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ho(e,t){let l=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),l=!0),[e,t]=cn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?l?-1:1:l?1:-1;return 0}class ce{value;static RoundingModes=me;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[l,n]=t.split(/[eE]/);l=$e(l);let r="";l[0]=="-"&&(r="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?t=r+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?t=r+$e(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+l}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=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<l?(l=s,s=0):s-=l,i=t.substring(s,s+l)+(s<a-l&&s>=0?n:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,l){return ce.getPrettyValue(this.value,t,l)}static round(t,l=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(l))throw Error("Precision is not a number: "+l);return mt(t,l,n)}round(t=0,l=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,l))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,l){return t=ce.validate(t),l=ce.validate(l),Ft(t,l)}add(t){return new ce(Ft(this.value,t.getValue()))}static subtract(t,l){return t=ce.validate(t),l=ce.validate(l),gn(t,l)}subtract(t){return new ce(gn(this.value,t.getValue()))}static multiply(t,l){return t=ce.validate(t),l=ce.validate(l),dn(t,l)}multiply(t){return new ce(dn(this.value,t.getValue()))}static divide(t,l,n){return t=ce.validate(t),l=ce.validate(l),hn(t,l,n)}divide(t,l){return new ce(hn(this.value,t.getValue(),l))}static modulus(t,l){return t=ce.validate(t),l=ce.validate(l),jo(t,l)}modulus(t){return new ce(jo(this.value,t.getValue()))}static compareTo(t,l){return t=ce.validate(t),l=ce.validate(l),Ho(t,l)}compareTo(t){return Ho(this.value,t.getValue())}static negate(t){return t=ce.validate(t),mn(t)}negate(){return new ce(mn(this.value))}}function Ko(e,t){return ce.multiply(`${e}`,`${t}`)}function yn(e,t,l=8){return ce.divide(`${e}`,`${t}`,l)}function pn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Wo(e){return ce.negate(e)}function Rt(e,t=-1,l=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):l&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",b=s.split("").reverse();for(let N=0;N<b.length;N++)c+=b[N]+((N+1)%n==0&&N+1!=b.length?r:"");u.length==0?f=`${i}${c.split("").reverse().join("")}`:f=`${i}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${i}${s}`:f=`${i}${s}.${u}`;return f}function Yo(e){let t=`${e}`,l=t.charAt(0);l=="-"?t=t.substring(1):l="";let n=t.replace(/[^\d\.-]/g,"");return`${l}${n}`}const bn=_o,Gr=Array.isArray,Ur=e=>At(e)==="[object Map]",Xr=e=>At(e)==="[object Set]",Zr=e=>e instanceof Date,vn=e=>typeof e=="function",Go=e=>typeof e=="string",Jr=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",Uo=e=>ze(e)&&vn(e.then)&&vn(e.catch),Xo=Object.prototype.toString,At=e=>Xo.call(e),wn=e=>At(e)==="[object Object]",Zo=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Qr(e){return e.__esModule||Zo&&e[Symbol.toStringTag]==="Module"}const ea=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[l]??{},l++),typeof t!="object"&&(t={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let a=e[l];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=et(r,d,u)}else u!==void 0&&(t[i]=u)}}return t}function Sn(e,t,l=!1){if(!l)et(!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)&&!wn(i))continue;a=Sn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!wn(i))continue;a=Sn(a,i,l),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const xn=ea?Promise.resolve():null;function ta(e,...t){xn!==null?t&&t.length>0?xn.then(()=>{e(t)}):xn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const na={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):na[l]||"object"}function Jo(e){return e&&typeof e=="object"&&"setInterval"in e}function Mt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Qo(e){let t=!!e&&"length"in e&&e.length,l=Lt(e);return l==="function"||Jo(e)?!1:l==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function el(e,t){let l=+t.length,n=0,r=e.length;for(;n<l;n++)e[r++]=t[n];return e.length=r,e}function oa(e,t=[]){let l=t;return e!=null&&(Qo(Object(e))?el(l,typeof e=="string"?[e]:e):l.push(e)),l}function He(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let l=Lt(e),n=Lt(t);if(l!==n)return!1;if(l==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let s=r[i],u=e[s],d=t[s];if(!He(u,d))return!1}return!0}else if(l==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],i=t[r];if(!He(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function Tn(e){return e==null}function tl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function nl(e){return ge(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ge(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function ol(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const l=t.indexOf(".");return l==-1?t.length:l}function ll(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const l=t.indexOf(".");return l==-1?0:t.length-(l+1)}function rl(e,t,l){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function la(e,t=!0,l=!0){t?e=rl(e,".",/\./g):e=e.replace(/\./g,""),l?e=rl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ra(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(l=>{if(He(e,l))return!0}):t.indexOf(e)}function aa(e,t){if(typeof e=="object"||Array.isArray(e)){let l=t.reverse().findIndex(n=>{if(He(e,n))return!0});return l!==-1&&(l=t.length-1-l),l}return t.lastIndexOf(e)}function pt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function al(e,...t){const l={};return t.forEach(n=>{for(const r in n)l[r]=e[r]}),l}function Ce(e,...t){const l=[];t.forEach(r=>{Reflect.apply([].push,l,Reflect.ownKeys(r))});const n={};for(const r in e)l.includes(r)||(n[r]=e[r]);return n}const ia=(e,t,l)=>{const n=Object.assign({},e),r=Object.assign({},l);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},be=Symbol.for("BroadcastKey");class $n{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,l,n){this.parent=t,this.proxy=l,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const l=this.children.findIndex(n=>t===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,l,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):tl(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(l);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[l]=="function"){const u=Reflect.apply(s[l],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,l,...n){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,l){this.callbacks.set(t,l)}}function Bt(e,t,l,n){const r=new $n(t,e,l);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function sa(e,t,l){const n=l;if(n[be])return n[be];const r=o.inject(be,null),a=new $n(r,l,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[be]=a,o.provide(be,a),o.onUnmounted(()=>{a.destroy(),n[be]=void 0}),a}function bt(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[be]??o.inject(be,null):o.inject(be,null)}const nt=e=>e.default??e;class ua{error(t,l){const n=l,r=bt(l);r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(t){const l=t,n=bt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(t,l,n){Array.isArray(t)||(t=[t]);const r=n,a=bt(n),i=l.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 vt=new ua;function ca(e){vt=e}function fa(e){vt?Object.assign(vt,e):vt=e}function da(e,t){nt(Qe).setValidator(e,t)}function ha(e){nt(Qe).deleteValidator(e)}let il=["blur","clear"];function ga(e){il=e}function sl(){return il}let ul=["focus","change"];function ma(e){ul=e}function cl(){return ul}function ya(e){nt(Qe).messages(e)}function wt(...e){const t=[];return e.forEach(l=>{l.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Ke=Symbol("ValidateSchemaKey");class fl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,l,n){this.parent=t,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=o.effectScope(),this.scope.run(()=>{o.watchEffect(()=>{const l=_t(wt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=_t(n);const r=wt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(r,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...l]);const r=vt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...l]):null}decorate(t,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,l,n=!1){n?nt(Qe).setValidator(t,l):this.validators[t]=l}getValidator(t){let l=this.validators[t]??null;return l||(l=this.parent?.getValidator(t)??null),l}deleteValidator(t,l=!1){l?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,l=!1){if(l)return nt(Qe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const l=wt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=wt(this.attrRules,this.rules);o.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=wt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const r={[`${n}`]:l},a=this.getValue(),i={[`${n}`]:a},s=nt(Qe),u=new s(r),d=this.proxy??i;return u.validate(i,{context:d}).then(c=>{if(c.pass)this.success();else{let b="error";Array.isArray(c.errors)&&c.errors.length>0&&(b=c.errors[0].message??b,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(b)}return c}).catch(c=>{const b=c.message??`${c}`;return this.error(b),c})}}return Promise.resolve({pass:!0})}}function qt(e,t,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const r=l.valueName;l.validateHandler={getValue(a){return a[r]}}}return new fl(t,l,e)}const dl=Symbol.for("EventEmitterKey");class pa{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,l){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===l);r!==-1&&n.splice(r,1)}}on(t,l){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(l)}emit(t,...l){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...l])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...l])}}function St(e,t){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},t)}}function hl(e,t){let l=0;return function(...n){const r=new Date().getTime();r-l<t||(l=r,Reflect.apply(e,null,[...n]))}}function ba(e,t){const l=St((n,r)=>{e=n,r()},t);return o.customRef((n,r)=>({get(){return n(),e},set(a){l(a,r)}}))}function va(e){let t=!1;return function(...l){t||(t=!0,Reflect.apply(e,null,[...l]))}}function Pt(e,t,l,n=0,r=!0,a){let i=t,s=0;if(r){const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(s++,d){typeof a=="function"&&a(!0);return}if(s>l){typeof a=="function"&&a(!1);return}i+=n,setTimeout(u,i)};setTimeout(u,i)}const Le=Symbol("DomainKey"),at=Symbol("DataItemsKey");class jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=o.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,l=[]){for(const n in t){const r=t[n];l.length>0&&l.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const l=this._props[t];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,l){this._props[t]=l}get(t,l){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?l:this.parent.get(t,l)}getForParent(t,l){return this.parent==null?l:this.parent.get(t,l)}getForSelf(t){return this._props[t]}getAll(t){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];l.push(r)}n=n._parent}return l}}const wa=new jt;function it(){return wa}function We(e=null){return e||(e=o.getCurrentInstance()?.proxy??null),e?e[Le]??o.inject(Le,null):o.inject(Le,null)}const Cn=Symbol("OriginalDateKey");function Nn(e,t,l=[],n){const r=o.getCurrentInstance(),a=r?.proxy;let i=o.inject(Le,null);i===null&&(i=it());const s=e||t.prop||t.name,u=new jt(s);u.parent=i;const d=h=>{a[Cn]||b(h),u.set("modelValue",h)},f=()=>u.getForSelf("modelValue")??null,c=()=>a[Cn]??null,b=h=>{const g={};et(!0,g,o.toRaw(h)),a[Cn]=g};o.isReactive(t)||typeof t=="function"?o.watch(t,h=>{u.merge(h,l)},{immediate:!0}):u.merge(t,l),t.modelValue&&b(t.modelValue),a[Le]=u,o.provide(Le,u);let N=null,m=null;if(r!==null){const h=o.inject(be,null);N=Bt(a,h,s,n),u.broadcast=N,a[be]=N,o.provide(be,N),a.broadcast=($,w,...k)=>Reflect.apply(N.emit,N,[$,w,...k]);const g=o.inject(Ke,null);m=qt(a,g,{componentName:""}),u.validateSchema=m,a[Ke]=m,o.provide(Ke,m),a[at]=new Map,a.validate=($=!0)=>{const w=[];let k=null;const q={deep:!1};if($===!0)k={name:"*"};else if(Array.isArray($)&&$.length>0){const _=$;k={name:A=>A?_.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const _=$;if(Object.assign(q,_),Array.isArray(_.include)&&_.include.length>0){const A=_.include;k={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(_.exclude)&&_.exclude.length>0){const A=_.exclude;k={name:L=>L?A.indexOf(L)===-1:!1}}else k={name:"*"}}if(k){const _=N?.emitToChildren(k,"validate",q);_&&Reflect.apply([].push,w,_)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(_=>{let A=[];return _.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,k=!1)=>{if(k===!0){Reflect.ownKeys($).forEach(_=>{let A=String(_);const B=yl(u,A,{componentName:"",fieldName:A,pureDataValidate:!0},N,m);a[at].set(A,B);const I=$[A];I&&B.validateSchema.setRule(I)});return}if(w){const q=Reflect.ownKeys($),_={name:A=>q.includes(A)};N?.emitToChildren(_,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const k=$;w={name:q=>q?k.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const k=$;if(Array.isArray(k.include)&&k.include.length>0){const q=k.include;w={name:_=>_?q.indexOf(_)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const q=k.exclude;w={name:_=>_?q.indexOf(_)===-1:!1}}else w={name:"*"}}w&&N?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const k={};if(et(!0,k,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=k[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(_=>{w[_]=k[_]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(k).forEach(_=>{q.includes(_)||(w[_]=k[_])})}else Object.assign(w,k);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===s?d($):N?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return o.onUnmounted(()=>{u.destroy(),a[Le]=void 0,a[at]&&(a[at].clear(),a[at]=void 0),N!==null&&(N.destroy(),a[be]=void 0),m!==null&&(m.destroy(),a[Ke]=void 0)}),u}function gl(e,t,l=[]){const r=o.getCurrentInstance()?.proxy;let a=o.inject(Le,null);a===null&&(a=it());const i=e||t.prop||t.name,s=new jt(i);return s.parent=a,o.isReactive(t)||typeof t=="function"?o.watch(t,u=>{s.merge(u,l)},{immediate:!0}):s.merge(t,l),r[Le]=s,o.provide(Le,s),o.onUnmounted(()=>{s.destroy(),r[Le]=void 0}),s}function ml(e,t,l){const r=We(e)?.get("rules");if(!r)return;let a=r[l];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Se(e,t,l){const r=o.getCurrentInstance()?.proxy,a=t??"",i=o.inject(be,null),s=Bt(r,i,a,l);r[be]=s,o.provide(be,s),r.broadcast=(m,h,...g)=>Reflect.apply(s.emit,s,[m,h,...g]);const u=o.inject(Ke,null);e.fieldName=e.fieldName??a;const d=qt(r,u,e);r[Ke]=d,o.provide(Ke,d),ml(r,d,a),r.validate=(m=null)=>{const h=[];let g=!1,$=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)$=!0,g=!0;else if(m&&typeof m=="object"){const w=m,k=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,_=w.ignoreHidden??!0;k===!0&&e.disabled===!0||q===!0&&e.readonly===!0||_===!0&&Mt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),g=w.deep??!1}else typeof m=="boolean"&&(g=m),$=!0;if($){const w=d?.validate();h.push(w)}if(g){let w=null;const k={deep:!1};if(m===!0)w={name:"*"};else if(Array.isArray(m)&&m.length>0){const q=m;w={name:_=>_?q.indexOf(_)!==-1:!1}}else if(m!=null&&typeof m=="object"){const q=m;if(Object.assign(k,q),Array.isArray(q.include)&&q.include.length>0){const _=q.include;w={name:A=>A?_.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const _=q.exclude;w={name:A=>A?_.indexOf(A)===-1:!1}}else w={name:"*"}}if(w){const q=s.emitToChildren(w,"validate",k);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let k=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(k=[...k,...q.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>d?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&d?.setRule(g),h){const $={name:w=>Reflect.ownKeys(m).includes(w)};s.emitToChildren($,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:$=>$?g.indexOf($)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const $=g.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const f=new pa(r);r[dl]=f;const c=St((m="validate")=>{m==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:sl()).forEach(m=>{f.on(m,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:cl()).forEach(m=>{f.on(m,h=>{c("reset")})}),o.onUnmounted(()=>{s.destroy(),r[be]=void 0,d.destroy(),r[Ke]=void 0,f.destroy(),r[dl]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(m,...h)=>{Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{Reflect.apply(f.off,f,[h])}}}function yl(e,t,l,n,r){const a={},i=t??"",s={getValue(){const f=e.getForSelf("modelValue");return f?f[i]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,i):!1}};l.fieldName=i,l.validateHandler={getValue(f){return s.getValue()}};const u=qt({},r,l);a.validate=(f=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const c=[];let b=!1,N=!1;if(Array.isArray(f)&&f.indexOf(i)!==-1)N=!0,b=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),N=!0,b=m.deep??!1}else typeof f=="boolean"&&(b=f),N=!0;if(N){const m=u?.validate();c.push(m)}if(b){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:$=>$?g.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const $=g.include;m={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const $=g.exclude;m={name:w=>w?$.indexOf(w)===-1:!1}}else m={name:"*"}}if(m){const g=d.emitToChildren(m,"validate",h);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[i];c&&u?.setRule(c)};const d=Bt(null,n,i,a);return{broadcast:d,validateSchema:u}}const Ne=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let r=Number(e.substring(0,l)),a=1;if(tt){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(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))/100*t;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function qe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function En(e,t,l={},n=!0,r=-1,a=-1,i=0,s=0){if(e.headerHeight=fe(l.headerHeight??t.headerHeight??-1),e.headerPadding=qe(l.headerPadding??t.headerPadding),e.footerHeight=fe(l.footerHeight??t.footerHeight??-1),e.footerPadding=qe(l.footerPadding??t.footerPadding),e.contentPadding=qe(l.contentPadding??t.contentPadding),n){const u=l.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(i,a)-fe(s,a),e.width=fe(l.width??t.width??0,r)}}function pl(e,t={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;En(n,a,t,!0,i,s,u,d);const f=o.reactive(n),c=e.getForParent(Xe);c&&(n.height=Ht(e,c),n.width=Kt(e,c),o.watch([()=>Ht(e,c),()=>Kt(e,c)],([N,m])=>{f.height=N,f.width=m}));const b=!c;return o.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,m,h=-1,g=-1,$=0,w=0])=>{En(f,m,t,b,h,g,$,w)}),e.set(Xe,f),f}function zt(e){return e.get(Xe)}function xt(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const l=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+l}return 0}function Tt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const l=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+l}return 0}function Ht(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const l=xt(e,t),n=Tt(e,t);return t.height-l-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Kt(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Sa(e,t){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[t,e]):!1}function xa(e){return!!e.getForParent(Xe)}var Re=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Re||{});function kn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,l=1,n){const r=We();return r==null?e:l===0?o.computed(()=>{const a=r.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(kn(u,n))return u}const i=e.value;return kn(i,n)?i:null}):o.computed(()=>{const a=e.value;return kn(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(l){return se(l)})}function Oe(e){return ke(e,"disabled",0,function(l){return se(l)})}function de(e,t="modelValue",l){const n=o.toRef(e,t);let r=n.value;typeof l=="function"&&(r=l(n.value));const a=o.ref(r);return o.watch(n,i=>{if(typeof l=="function"){const s=l(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const bl=new Map,Wt=new Map;let In=null;function Ta(e){In=e}function vl(e,t,l){if(l){let n=Wt.get(l);n||(n=new Map,Wt.set(l,n)),n.set(e,t)}else bl.set(e,t)}function Be(e,t,l){!l&&In&&(l=In(e)??void 0);let n=null;if(l){let r=Wt.get(l);r&&(n=r.get(t))}return n||(n=bl.get(t)),n}function $a(e,t){for(let l in e){const n=e[l];vl(l,n,t)}}function Ca(e){Wt.delete(e)}function Na(){return{top:0,left:0,bottom:0,right:0}}function Ea(e=0,t=0){if(tt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:l,height:n-fe(e,n)-fe(t,n)};return{rootWidth:l,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class ka{packages;installers;_version;get version(){return this._version}constructor(t,l,n){this.packages=t,this.installers=l,this._version=n}install(t,l={}){l?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(l,r),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=hl(()=>{const s={...l},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in l)n.indexOf(a)===-1&&r.set(a,l[a])}initPageLayout(t,l){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=et({},Na(),t.safeAreaInset),i=Ea(n,r),s=et({},i.pageLayout,t.pageLayout);l=l??it(),l.set("safeAreaInset",a),l.set("headerBarHeight",n),l.set("footerBarHeight",r),l.set("pageLayout",s),l.set("rootWidth",i.rootWidth),l.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ta(t)}setAPI(t,l,n){vl(t,l,n)}getAPI(t,l,n){return Be(t,l,n)}batchSetAPI(t,l){$a(t,l)}clearScopeAPI(t){Ca(t)}getRootDomain(){return it()}}const Ia=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Oa=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Va=e=>{Ia.forEach(t=>{let l=t.name;typeof l=="string"?(l=`Fox${l.slice(2)}`,e.component(l,t)):e.use(t)}),Oa.forEach(t=>{e.use(t)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=t,l.install=n=>{n.component(l.name,l)},o.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,o.defineComponent(l)}}}function xe(e,t=null){if(t||(t=o.getCurrentInstance()),t&&t.proxy){let l=t.proxy;Object.assign(l,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ee={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},wl={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}},Sl={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}},xl=[];for(const e in Sl)xl.push(e);const Da=Symbol.for("InnerPageScopeKey"),Fa={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}},Ra=(e,t)=>({inheritAttrs:!0,props:{...ve,...wl,...Fa},setup(l,{slots:n}){const r=Nn(l.name,l),a=o.inject(Da,!1);if(r){const f=pl(r,l);xe({getPageContentHeight:()=>Ht(r,f),getPageContentWidth:()=>Kt(r,f),getPageHeaderHeight:()=>xt(r,f),getPageFooterHeight:()=>Tt(r,f)}),f&&a&&(f.contentHeight="100%")}const i=o.computed(()=>({[e]:!0})),s=o.computed(()=>({})),u=o.getCurrentInstance(),d=(f,c=!1)=>{const b=u?.proxy;b&&typeof b.setNameValidateRules=="function"&&b.setNameValidateRules(f,!0,c)};return o.watch([()=>l.rules,()=>l.pureDataRules],([f,c],[b,N])=>{if(f&&b){const m=o.toRaw(b),h=o.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h)}if(c&&N){const m=o.toRaw(N),h=o.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(w=>{g.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),o.onMounted(()=>{if(l.rules){const f=o.toRaw(l.rules);d(f)}if(l.pureDataRules){const f=o.toRaw(l.pureDataRules);d(f,!0)}}),()=>{const f={class:i.value,style:s.value};return o.h("div",f,[n?.default?.()])}}}),{componentName:Aa,create:La,scope:yh}=ie("page"),On=La(Ra(Aa));function Yt(e){const t=o.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Vn(e){const t=o.unref(e),l=window.getComputedStyle(t,null),n=parseFloat(l.getPropertyValue("padding-left")),r=parseFloat(l.getPropertyValue("padding-right")),a=parseFloat(l.getPropertyValue("padding-top")),i=parseFloat(l.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-i}}const Ma=(e,t,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const i=We(),s=i?zt(i):null;s&&(s.headerMounted=!0);const u=e,d=o.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=o.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?fe(r.height):null,b=o.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const T=qe(r.padding??s.headerPadding);return Object.assign(E,T),c&&(s.headerHeight=c),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(T.top??0),E.height&&E.height>0&&(E.height=E.height+E.safeAreaTop)),E}if(c&&(E.height=c),r.padding){const T=qe(r.padding);Object.assign(E,T)}return E}),N=o.ref(null),m=()=>{if(s&&N.value&&!Mt(N.value)){if(!n){const E=Yt(N.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let h=null;o.onMounted(()=>{s&&(Pt(m,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(N.value)))}),o.onUnmounted(()=>{s&&(s.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=o.computed(()=>{const E={};return b.value.height!==null&&b.value.height!==void 0&&(E.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(E.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(E.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(E.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(E.paddingBottom=`${b.value.bottom}px`),E}),$=o.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function w(){a.emit("back")}function k(){a.emit("click-title")}function q(){a.emit("click-right")}function _(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);E.push(T)}else if(r.leftIcon){const T=o.h("view",{class:"left-icon",onClick:w},[o.h(r.leftIcon)]);E.push(T)}if(r.leftText){const T=o.h("view",{class:"left-text",onClick:w},[r.leftText]);E.push(T)}}return E.length===0?null:o.h("view",{class:"fox-header-bar__left"},E)},L=()=>{if(!r.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(r.rightText){const T=o.h("view",{class:"right-text",onClick:_},[r.rightText]);E.push(T)}if(a.slots.rightIcon){const T=o.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);E.push(T)}else if(r.rightIcon){const T=o.h("view",{class:"right-icon",onClick:q},[o.h(r.rightIcon)]);E.push(T)}}return E.length===0?null:o.h("view",{class:"fox-header-bar__right"},E)},B=()=>{if(!r.titleShow)return null;const E=[],T=a.slots.default?a.slots.default():null;if(T)E.push(T);else{if(r.title){const H=o.h("view",{class:"title-text"},[r.title]);E.push(H)}if(a.slots.titleIcon){const H=o.h("view",{class:"title-icon",onClick:k},[a.slots.titleIcon()]);E.push(H)}else if(r.titleIcon){const H=o.h("view",{class:"title-icon",onClick:k},[o.h(r.titleIcon)]);E.push(H)}}return E.length===0?null:o.h("view",{class:"fox-header-bar__title"},E)},I=()=>{const E=[],T=a.slots.bottom?a.slots.bottom():null;return T&&E.push(T),E.length===0?null:o.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!$.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const H=[],C=A();C&&H.push(C);const O=B();O&&H.push(O);const R=L();if(R&&H.push(R),H.length>0){const W=o.h("view",{class:f.value},H);E.push(W)}const U=I();U&&E.push(U)}if(E.length===0)return null;const T={class:d.value,style:g.value,ref:N};return o.h("view",T,E)}}}),{componentName:Ba,create:_a,scope:qa}=ie("header-bar"),Dn=_a(Ma(Ba,qa,Te.ArrowLeft));function Pa(e,t,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=We(),i=a?zt(a):null,s=o.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?fe(n.height):null,d=o.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const h=qe(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=qe(n.padding);Object.assign(m,h)}return m}),f=o.ref(null),c=()=>{if(i&&f.value&&!Mt(f.value)){if(!l){const m=Yt(f.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let b=null;o.onMounted(()=>{i&&(Pt(c,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{c()}),b.observe(f.value)))}),o.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const N=o.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=Ne(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=Ne(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=Ne(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=Ne(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=Ne(d.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:s.value,style:N.value};return o.h("view",h,m)}}}}const{componentName:ja,create:za,scope:ph}=ie("footer-bar"),Fn=za(Pa(ja));function Ha(e,t){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=We(),r=o.computed(()=>({[e]:!0})),a=n?zt(n):null,i=o.computed(()=>{const d={};if(n&&a){if(l.padding){const N=qe(l.padding);Object.assign(a.contentPadding,N)}const f=xt(n,a),c=Tt(n,a);let b="";if(a.contentHeight?b=`${a.contentHeight}`:b=`${a.height}px`,a.contentPadding,d.height=b,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(l.padding){const f=qe(l.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),s=o.ref(null),u=()=>{if(a&&s.value){const d=Vn(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return o.onMounted(()=>{u()}),n&&a&&o.watch([()=>xt(n),()=>Tt(n)],([])=>{u()}),{contentRef:s,classes:r,styles:i}}}}const{componentName:Ka,create:Wa,scope:bh}=ie("content"),Ya=Wa(Ha(Ka));function Ga(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("div",{ref:"contentRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const l=e.__vccOpts||e;for(const[n,r]of t)l[n]=r;return l},Rn=Me(Ya,[["render",Ga]]),st="GroupStateKey",Tl=Symbol.for("GroupScopeKey");function Gt(){return o.inject(Tl,!1)}function Ut(e=!0){o.provide(Tl,e)}function Ua(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];Tn(r)||(e[n]=r)})}function Xa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ua(n,t);const r=o.shallowRef(n),a=o.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function An(e,t,l=-1,n=-1,r=!1,a,i,s){const u=e.get(st);if(!u)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const f=fe(a),c=fe(i);s||(s=d.type??"grid");const b=()=>{const N=t===""||t===-1,m=fe(t);let h=pe(l);const g=fe(n);if(!N){let k=(m-(h-1)*g)/h;for(;c!==-1&&k>c;)h++,k=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&k<f;)h--,k=(m-(h-1)*g)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==g&&(w.value.gutter=g,$=!0),w.value.type!==s&&(w.value.type=s,$=!0),$&&o.triggerRef(w)};if(r)b();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&b()},50)}}function Xt(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.layout}function Zt(e,t=!1){let l;return t?l=e.getForParent(st):l=e.get(st),l.order}function $l(e,t=1){if(t==="stretch")return-1;const l=pe(t);return l===-1?100:100*l/e}function Jt(e,t,l=1,n=0,r){const a={};let i=0;r?i=fe(r):i=$l(t.column,l),i>0&&(a.width=`${i}%`);const s=$l(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 Qt(e,t,l=1,n=0){if(l==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=pe(l);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=pe(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 Cl=Symbol("RollingStateKey");function Za(e){o.provide(Cl,e)}function Ja(){return o.inject(Cl,null)}function Ln(e){let t=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(l.getPropertyValue("padding-top")),a=parseFloat(l.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function Qa(e){let t=Ln(e);if(t<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),t=Ln(l),document.body.removeChild(l)}return t}function ei(e,t,l){if(e<=0)return"1fr";const n=(e-(t-1)*l)/t;return n>0?`${n}px`:"1fr"}const ti={...ve,...wl,...Sl};function ni(e,t,l){return{props:ti,emits:["update:collapse"],setup(n,r){const a=Nn(n.name,n,xl),i=Xa(a,{type:n.type}),s=Gt();Ut(!0);const u=n.rollingDisplay?Ja():null,d=o.ref(null),f=o.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=o.computed(()=>s&&a?Xt(a,!0).value:null),b=o.getCurrentInstance(),N=(P,Y=!1)=>{const Q=b?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(P,!0,Y)};o.watch([()=>n.rules,()=>n.pureDataRules],([P,Y],[Q,ne])=>{if(P&&Q){const S=o.toRaw(Q),G=o.toRaw(P),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),N(G)}if(Y&&ne){const S=o.toRaw(ne),G=o.toRaw(Y),te=G?Reflect.ownKeys(G):[];(S?Reflect.ownKeys(S):[]).forEach(X=>{te.includes(X)||(G[X]=[])}),N(G,!0)}},{deep:!0});const m=e,h=o.computed(()=>{const P={};P.height=R.value;const Y=s?Zt(a,!0):null;if(c.value&&Y){if(c.value.type==="grid"){const Q=Qt(Y,c.value,n.span,n.offset);Object.assign(P,Q)}else if(c.value.type==="flow"){const Q=Jt(Y,c.value,n.span,n.offset,n.width);Object.assign(P,Q)}}else if(n.width){const Q=Ne(n.width);P.width=Q}return P}),g=o.computed(()=>{const P=i.layout.value.type;return P==="grid"||P==="flow"?{[`${m}--${P}`]:!0,[`${m}--${P}-justify-${n.justify}`]:!0,[`${m}--${P}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${P}`]:!0,[`${m}--gutter`]:!0}}),$=o.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=ei(B.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),w=o.toRef(n,"gutter"),k=o.toRef(n,"column"),q=o.computed(()=>s||f.value?!0:se(n.isWrap)),_=[],A=P=>{_.push(P)},L=()=>{let P=_.length;_.splice(0,P)},B=o.ref(-1),I=P=>{const Y=Vn(P).width;Y>0&&Y!==B.value&&(B.value=Y)};An(a,B.value,k.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&o.watch([B,k,w],([P,Y,Q])=>{i.order.index=0,An(a,P,Y,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const E=o.computed(()=>U.value?n.expandText??"":n.collapseText??""),T=o.computed(()=>({[`${e}__header-collapse-text`]:!0})),H=o.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),C=o.ref(),O=o.ref(),R=o.computed(()=>W.value||Ne(n.height)||""),U=o.ref(!1),W=o.ref(""),J=o.ref(!1);let Z=-1;const ee=(P,Y=!0)=>{const Q=C.value;if(Q&&U.value!==P){if(Z=Z===-1?Qa(Q):Z,J.value=!0,Y)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",P||(W.value="",J.value=!1)},P){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${Z}px`,o.nextTick(()=>{W.value=`${ne}px`})}else W.value=`${Z}px`;else if(P){let ne=0;n.collapseHeight?ne=n.collapseHeight:O.value&&O.value.classList.contains(`${e}__header`)&&(ne=O.value.offsetHeight),W.value=`${ne}px`}else J.value=!1,W.value=`${Z}px`;U.value=P,r.emit("update:collapse",P)}};o.watch(()=>n.collapse,P=>{ee(P)});const re=()=>{D()},D=P=>{P=P??!U.value,ee(P)};xe({toggleCollapse:D,doLayout:()=>{_[0]&&(I(_[0]),An(a,B.value,k.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let F=null,V=!0;const v=P=>{if(n.rules){const Y=o.toRaw(n.rules);N(Y)}if(n.pureDataRules){const Y=o.toRaw(n.pureDataRules);N(Y,!0)}if(tt&&(P&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(_)&&_.length>0)){const Y=_[0];I(Y),window.ResizeObserver&&(F=new window.ResizeObserver(()=>{I(Y)}),F.observe(Y))}},K=()=>{F?.disconnect(),F=null},j=!f.value||u?.acquire();j&&(d.value=f.value?!0:null),o.onMounted(()=>{if(j&&(v(V),V=!1),f.value&&u){let P=null,Y=u.initialHeight;u.observe(C.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(W.value=""),P=setTimeout(()=>{P=null,d.value!==!1&&(v(V),V=!1)},100);else{if(P!==null&&clearTimeout(P),d.value=!1,!U.value)if(V)W.value=u.initialHeight;else{let ne=Ln(C.value);ne<=0?W.value=Y:(W.value=`${ne}px`,Y=W.value)}V||K()}})}}),o.onUnmounted(()=>{F?.disconnect(),u&&u.unobserve(C.value)});const z=(P="right")=>{const Y=[];if(E.value){const S={class:T.value},G=o.h("span",S,[E.value]);Y.push(G)}const Q={class:H.value},ne=l(n.collapseIcon,Q);return ne&&Y.push(ne),Y.length>0?o.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${P}`]:!0},onClick:re},Y):null},M=(P,Y,Q,ne)=>{const S={...g.value};return Y===0&&(S[`${m}__first`]=!0),Q>=ne-1&&(S[`${m}__last`]=!0),o.h("div",{ref:A,key:`${Y}`,class:S,style:$.value},P)};return()=>{if(f.value&&d.value!==!0){const S=n.tag||"div";return o.h(S,{ref:C,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[])}i.order.index=0;const P=[];let Y=0;if(r.slots.header){const S={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},G=o.h("div",S,[r.slots.header()]);P.push(G)}else{const S=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=z("left");te&&S.push(te)}if(n.title||r.slots.title){if(n.showMark){const te={class:{[`${m}__header-mark`]:!0}};n.markColor&&(te.style={background:n.markColor});const le=o.h("div",te);S.push(le)}if(r.slots.title){const te=o.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);S.push(te)}else if(n.title){const te=o.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);S.push(te)}}if(r.slots.toolbar&&S.push(r.slots.toolbar()),!G&&n.showCollapse){const te=z("right");te&&S.push(te)}if(S.length>0){const te={key:`${Y++}`,ref:O,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},le=o.h("div",te,S);P.push(le)}}L();const Q=r.slots.default?r.slots.default():[],ne=i.layout.value.type;if(ne==="grid"){const S=M(Q,Y++,0,Q.length);P.push(S)}else if(ne==="flow"){const S=M(Q,Y++,0,Q.length);P.push(S)}else for(let S=0;S<Q.length;S++){const G=Q[S],te=M([G],Y++,S,Q.length);P.push(te)}if(q.value){const S=n.tag||"div";return o.h(S,{ref:C,prop:n.name,class:{[`${m}`]:!0,"is-collapse":J.value},style:h.value},[P])}else return P}}}}const{componentName:oi,create:li,scope:ri}=ie("group"),Mn=li(ni(oi,ri,(e,t)=>(e=e??Te.ArrowUp,o.h(p.ElIcon,t,{default:()=>[o.h(e)]}))));function ai(e){return e===window}const ii=/matrix\((.+)\)/,Nl=e=>{const t=o.unref(e);if(!t)return{x:0,y:0};if(ai(t))return{x:0,y:0};let l=0,n=0,r=t;for(;r!==null;)l+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,i=0,s=0,u=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=ii.exec(d);if(f){let b=f[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}r=r.parentNode}return l-=a,n-=i,l+=s,n+=u,{x:l,y:n}};class si{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const l=this.watchedListeners.indexOf(t);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ui{monitorRegister=new WeakMap;watch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new si,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(l),n=n.parentNode}}unwatch(t,l){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(l),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const El=new ui,kl={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:ci,create:fi}=ie("price"),di=fi({props:{...kl},setup(e){const t=o.computed(()=>({[ci]:!0})),l=o.computed(()=>e.needSymbol?e.symbol:""),n=o.computed(()=>pt(e.price)==0?"":Rt(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),r=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=o.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:l,intText:r,decimalText:a}}}),hi=["innerHTML"],gi=["innerHTML"];function mi(e,t,l,n,r,a){return o.openBlock(),o.createElementBlock("view",{class:o.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,hi)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--${e.size}`)},o.toDisplayString(e.intText),3),e.decimalText.length!=0?(o.openBlock(),o.createElementBlock("view",{key:1,class:o.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:o.normalizeClass(`fox-price--decimal-${e.size}`)},o.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(o.openBlock(),o.createElementBlock("view",{key:2,class:o.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,gi)):o.createCommentVNode("",!0)],2)}const en=Me(di,[["render",mi]]),{componentName:Bn,create:yi}=ie("hint-text"),pi=yi({components:{Price:en},props:{...kl,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const l=o.ref({top:null,right:null,bottom:null,left:null}),n=o.ref({x:0,y:0}),r=o.ref(0),a=o.ref(0),i=o.ref(e.placement),s=o.ref(!1),u=o.ref(null),d=(T,H,C,O,R,U)=>{const W=document.documentElement.clientWidth||document.body.clientWidth,J=document.documentElement.clientHeight||document.body.clientHeight,Z=T.split("-");let ee=[];Z[0]==="top"?ee=["top","bottom","right","left"]:Z[0]==="bottom"?ee=["bottom","top","right","left"]:Z[0]==="left"?ee=["left","top","bottom","right"]:Z[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},D=[];for(let x=0;x<ee.length;x++){const F=ee[x];if(D[0]=F,Z[1]&&(D[1]=Z[1]),F==="top"){const V=H.y-U-e.arrowSize-e.offset;if(V>=0){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+C-R:v=H.x+C/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="bottom"){const V=H.y+O+e.arrowSize+e.offset;if(V+U<=J){re.top=V;let v=0;Z[1]==="start"?v=H.x:Z[1]==="end"?v=H.x+C-R:v=H.x+C/2-R/2;const K=W-v-R;K<0?(v+=K,c.value=-K):c.value=0,re.left=v<0?0:v;break}}else if(F==="left"){const V=H.x-R-e.arrowSize-e.offset;if(V>=0){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}else if(F==="right"){const V=H.x+C+e.arrowSize+e.offset;if(V+R<=W){re.left=V;let v=0;Z[1]==="start"?v=H.y:Z[1]==="end"?v=H.y+O-U:v=H.y+O/2-U/2,re.top=v<0?0:v;break}}}return{bestPlacement:D.join("-"),bestInsetRect:re}},f=(T,H,C=10)=>{if(!tt||H===!1||!T)return;n.value=Nl(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const O=u.value.offsetHeight,R=u.value.offsetWidth,{bestPlacement:U,bestInsetRect:W}=d(e.placement,n.value,r.value,a.value,R,O);i.value=U,l.value=W,s.value=!0},c=o.ref(0),b=St(()=>{f(e.message,e.visible)},10),N=o.ref(e.visible);o.watch(()=>e.visible,T=>{N.value=T});const m=o.computed(()=>N.value&&h.value),h=o.ref(!0),g=St(T=>{const H=T[0];H&&(h.value=H.isIntersecting)},10),$=new IntersectionObserver(g);o.watch([()=>e.message,()=>e.visible],([T,H])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),o.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),El.watch(e.reference,b),$.observe(e.reference)}),o.onBeforeMount(()=>{El.unwatch(e.reference,b),$.unobserve(e.reference),$.disconnect()});const w=o.computed(()=>{const T={[Bn]:!0};return i.value.startsWith("top")?T["is-top"]=!0:i.value.startsWith("right")?T["is-right"]=!0:i.value.startsWith("bottom")?T["is-bottom"]=!0:i.value.startsWith("right")&&(T["is-right"]=!0),e.size==="small"?T["is-small"]=!0:e.size==="large"&&(T["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(T[`${e.customClass}`]=!0),T}),k=o.computed(()=>{const T={};l.value.top!==null&&(T.top=`${l.value.top}px`),l.value.right!==null&&(T.right=`${l.value.right}px`),l.value.bottom!==null&&(T.bottom=`${l.value.bottom}px`),l.value.left!==null&&(T.left=`${l.value.left}px`),e.autoFit&&(T["min-width"]=`${r.value}px`);const H=document.documentElement.clientWidth||document.body.clientWidth;return T["max-width"]=`${H}px`,s.value&&(T.opacity="1"),e.transition||(T.transition="none"),e.zIndex&&(T["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(T,e.customStyle),T}),q=o.computed(()=>{const T=[`${Bn}__content`];return e.customTextClass&&T.push(e.customTextClass),T}),_=o.computed(()=>{const T={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(T,e.customTextStyle),T}),A=o.computed(()=>({[`${Bn}__arrow`]:!0})),L=o.computed(()=>{const T={};return e.showArrow?(T.width=`${e.arrowSize}px`,T.height=`${e.arrowSize}px`,i.value==="top"?(T.left="50%",T.bottom=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="top-start"?(T.left=`${e.arrowOffset+c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(T.right=`${e.arrowOffset-c.value}px`,T.bottom=`-${e.arrowSize}px`):i.value==="right"?(T.left=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="right-start"?(T.left=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="right-end"?(T.left=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(T.left="50%",T.top=`-${e.arrowSize}px`,T.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(T.left=`${e.arrowOffset+c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(T.right=`${e.arrowOffset-c.value}px`,T.top=`-${e.arrowSize}px`):i.value==="left"?(T.right=`-${e.arrowSize}px`,T.top="50%",T.transform=" translate(0%, -50%)"):i.value==="left-start"?(T.right=`-${e.arrowSize}px`,T.top=`${e.arrowOffset}px`):i.value==="left-end"&&(T.right=`-${e.arrowSize}px`,T.bottom=`-${e.arrowOffset}px`),T):{display:"none"}}),B=o.computed(()=>m.value&&e.closeOnClick),I=o.computed(()=>{const T={};return e.zIndex&&(T["z-index"]=`${e.zIndex}`),T});return{show:m,tipRef:u,classes:w,styles:k,textClasses:q,textStyles:_,arrowClasses:A,arrowStyles:L,overlayShow:B,overlayStyle:I,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}}),bi=["innerHTML"];function vi(e,t,l,n,r,a){const i=o.resolveComponent("Price");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.overlayShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:o.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):o.createCommentVNode("",!0),o.withDirectives(o.createElementVNode("div",{ref:"tipRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles)},[o.createElementVNode("div",{class:o.normalizeClass(e.textClasses),style:o.normalizeStyle(e.textStyles)},[e.type=="number"?(o.openBlock(),o.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(o.openBlock(),o.createElementBlock("span",{key:1,innerHTML:e.message},null,8,bi))],6),o.createElementVNode("div",{class:o.normalizeClass(e.arrowClasses),style:o.normalizeStyle(e.arrowStyles)},null,6)],6),[[o.vShow,e.show]])],64)}const $t=Me(pi,[["render",vi]]);class Il{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 _n={},wi=new Il,ut=new Map,tn=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const l=document.getElementById(t);l&&l.parentNode?.removeChild(l)}ut.clear()}},Si=e=>{e.unmount=tn;const t=document.getElementById(e.id);if(t){const l=ut.get(e.id);l?e={..._n,...l,...e}:e={..._n,...e},e.transition=!1;const n=o.createVNode($t,e);return o.render(n,t),e.id}},xi=e=>{e.unmount=tn;let t=e.id??`hinttext_${wi.get()}`;e={..._n,...e},e.id=t,ut.set(t,e);const l=document.createElement("div");l.id=e.id;const n=o.createVNode($t,e);return o.render(n,l),document.body.appendChild(l),t},Ti=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,l={},n=!0){Ti(t);const r=l.id;return r&&ut.has(r)?Si({...l,message:t,reference:e}):(n&&tn(),xi({...l,message:t,reference:e}))},hide(e){tn(e)},install(e){e.config.globalProperties.$hintText=Ve}};function $i(e,t,l,n=!1){return{inheritAttrs:!0,props:{...ve,...Ee},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Se({componentName:e,validate:!1},i);const s=We(),u=Gt();Ut(!1);const d=o.computed(()=>u&&s?Xt(s,!1).value:null),f=e,c=o.ref(null),b=o.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!U.value,S[r.warnMarkClass]=!!O.value,S[r.infoMarkClass]=!!H.value,typeof c.value=="function"){const G=c.value(i);S[G]=!0}else if(typeof c.value=="string"){const G=c.value;S[G]=!0}return S}),N=o.ref(null),m=o.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=Ne(r.width));else{const G=u&&s?Zt(s,!1):null;if(d.value&&G){if(d.value.type==="grid"){const te=Qt(G,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=Jt(G,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof N.value=="function"){const G=N.value(i);G&&Object.assign(S,G)}else if(N.value&&typeof N.value=="object"){const G=N.value;Object.assign(S,G)}return S}),h=o.ref(null),g=o.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(o.toRef(r,"labelPosition"),"labelPosition",Re.Near),k=o.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=o.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${k.value}`]:!0})),_=o.computed(()=>({label:!0,[`label--${k.value}`]:!0})),A=ke(o.toRef(r,"labelWidth"),"labelWidth",Re.Near),L=o.computed(()=>A&&A.value?{width:Ne(A.value)}:{}),B=o.computed(()=>({"label--string":!0,"label--required":g.value})),I=o.computed(()=>({content:!0,[r.contentClass]:!0})),E=o.computed(()=>({...r.contentStyle})),T=o.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(S){g.value=S},setErrorTip(S){T.errorTip=S},setErrorIcon(S){T.errorIcon=S},setWarnTip(S){T.warnTip=S},setWarnIcon(S){T.warnIcon=S},setInfoTip(S){T.infoTip=S},setInfoIcon(S){T.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){N.value=S}});const H=o.computed(()=>r.infoTip||T.infoTip),C=o.computed(()=>r.infoIcon||T.infoIcon),O=o.computed(()=>r.warnTip||T.warnTip),R=o.computed(()=>r.warnIcon||T.warnIcon),U=o.computed(()=>r.errorTip||T.errorTip),W=o.computed(()=>r.errorIcon||T.errorIcon),J=o.computed(()=>U.value?"error":O.value?"warn":H.value?"info":""),Z=()=>J.value.length>0,ee=o.computed(()=>J.value==="error"?U.value:J.value==="warn"?O.value:J.value==="info"?H.value:""),re=o.computed(()=>J.value==="error"?W.value:J.value==="warn"?R.value:J.value==="info"?C.value:null),D=o.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${J.value}`]:!0,[`${f}--animate`]:!0};return J.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:J.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:J.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),x=o.computed(()=>{const S={};return w&&w.value==="top"||!$()?S["padding-left"]="0px":A&&A.value&&(S["padding-left"]=Ne(A.value)),S}),F=o.ref();let V="";o.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,G,te,le])=>{F.value&&(S&&!ge(G)?V?l.show(F.value,G,{...le,id:V,type:te},!0):V=l.show(F.value,G,{...le,type:te},!0):l.hide(V))});let v=null;const K=()=>{v||!F.value||(v=new IntersectionObserver(S=>{let G=!1;for(let te of S)if(te.intersectionRatio>0){G=!0,G&&a.emit("appear",te);break}G||a.emit("disappear")}),v.observe(F.value))},j=()=>{!v||!F.value||(v.unobserve(F.value),v=null)};o.watch(()=>se(r.appearListen),S=>{S?K():j()}),o.onMounted(()=>{se(r.appearListen)&&K()}),o.onUnmounted(j);const z=()=>{if(!$())return null;const S=[],G=a.slots?.label?.()??r.label,te={class:B.value},le=o.h("div",te,[G]);if(S.push(le),a.slots.fixedPreTip){const oe=a.slots.fixedPreTip();S.push(oe)}const X={class:_.value,style:L.value};return o.h("div",X,S)},M=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},le=o.h("div",te,[a.slots.fixedTip()]);S.push(le)}const G={ref:F,class:I.value,style:E.value};return o.h("div",G,S)},P=()=>{const S=re.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--icon"},[S()]):o.h("div",{class:"fox-item__tip--icon"},[o.h(S)]):null},Y=()=>{const S=ee.value;return S?typeof S=="function"?o.h("div",{class:"fox-item__tip--text"},[S()]):o.h("div",{class:"fox-item__tip--text"},[S]):null},Q=()=>{if(!Z())return null;const S=[],G=P();G&&S.push(G);const te=Y();te&&S.push(te);const le={class:D.value,style:x.value};return o.h("div",le,S)},ne=()=>a.slots?.hide?.()??null;return()=>{const S=[],G=[],te=z();te&&G.push(te);const le=M();le&&G.push(le);const X={class:q.value},oe=o.h("div",X,G);S.push(oe);const ae=Q();ae&&S.push(ae);const ue=ne();ue&&S.push(ue);const ye={class:b.value,style:m.value,prop:r.prop};return o.h("div",ye,S)}}}}const{componentName:Ci,create:Ni,scope:Ei}=ie("item"),we=Ni($i(Ci,Ei,Ve,!1));function ki(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const r=We(),a=Gt();Ut(!1);const i=o.computed(()=>a&&r?Xt(r,!1).value:null),s=e,u=o.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:l.span==="stretch"})),d=o.computed(()=>{const f={},c=a&&r?Zt(r,!1):null;if(i.value&&c)if(i.value.type==="grid"){const b=Qt(c,i.value,l.span,l.offset);Object.assign(f,b)}else if(i.value.type==="flow"){const b=Jt(c,i.value,l.span,l.offset,l.width);Object.assign(f,b)}else return l.width&&(f.width=Ne(l.width)),f;else l.width&&(f.width=Ne(l.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?o.h("div",f,n.slots.default()):o.h("div",f)}}}}const{componentName:Ii,create:Oi,scope:wh}=ie("slot-item"),qn=Oi(ki(Ii));function Vi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,n){const r=e,a=o.computed(()=>({[r]:!0,[`${r}__stretch`]:l.span==="stretch",[`${r}__${l.align}`]:!0})),i=We(),s=Gt();Ut(!1);const u=o.computed(()=>{const d={};if(s&&i){const f=Xt(i,!1),c=Zt(i,!1);if(f.value&&c)if(f.value.type==="grid"){const b=Qt(c,f.value,l.span,l.offset);Object.assign(d,b)}else if(f.value.type==="flow"){const b=Jt(c,f.value,l.span,l.offset,l.width);Object.assign(d,b)}else l.width&&(d.width=Ne(l.width))}else l.width&&(d.width=Ne(l.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(l.divide)for(let b=0;b<c.length;b++){if(b>0){const N=o.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[b])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return o.h("div",f,d)}}}}const{componentName:Di,create:Fi,scope:Sh}=ie("row-item"),Pn=Fi(Vi(Di)),Pe=(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},Ol={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 Ri(e,t,l){return{props:{...ve,...Ee,...Ol},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0,[`${b}__disabled`]:a.value,[`${b}__readonly`]:i.value})),m=C=>{c.value=C,s("update:modelValue",C),s("input",C)},h=C=>{s("change",C)};let g=de(n,"hintText"),$=o.ref(!1);const w=C=>{let R=C.target.value;f.value=!0,ge(g.value)||($.value=!0),s("focus",R,C)},k=C=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let R=C.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,C)},q=()=>{s("clear","")},_=o.ref(!1);let A=null;const L=()=>{n.showTooltip&&_.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{_.value=!0},150))},B=()=>{A&&(clearTimeout(A),_.value=!1,A=null)},I=o.computed(()=>_.value||$.value),E=o.computed(()=>_.value?c.value:g.value),T=o.computed(()=>pt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:m,onFocus:w,onBlur:k,onMouseover:L,onMouseleave:B},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:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=o.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Ol),hintText:E.value,hintVisible:I.value,prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:Ai,create:Li,scope:Mi}=ie("input-item"),jn=Li(Ri(Ai,Mi,we));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vl(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function Bi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let _i=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function qi(){const e=o.getCurrentInstance();return new _i(e.proxy)}function Dl(e,t,l){const n=Ze(e,t),r=Ze(e,l);if(n!==r)return!1;const a=Ct(e,t),i=Ct(e,l);return a===i}function Fl(e,t,l,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){const s=Vl(e,i);if(Array.isArray(s)&&s.length>0){const u=Fl(e,a,l,s)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(l==="text")u=Ze(e,i)===a;else if(l==="item")u=Dl(e,i,a);else{let d=Ct(e,i);d==null&&(d=Ze(e,i)),u=d===a}if(u){r.push(i);break}}}}),r}function Pi(e){return{text:e,value:e}}const Rl={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},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function ji(e,t,l){return{props:{...ve,...Ee,...Rl},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(P=>Ze(n,P)).join(" "):""),N=(M,P,Y,Q=!0)=>{const ne=Fl(n,M,P,Y);if(ne===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Q&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let S=!0;if(ne.length!==c.value.length)S=!1;else for(let G=0;G<ne.length;G++){const te=ne[G],le=c.value[G];if(!Dl(n,te,le)){S=!1;break}}if(!S){c.value=ne;let G=[],te=[],le=[];ne.forEach(ue=>{const ye=Ct(n,ue),he=Ze(n,ue);G.push(ye),le.push(he),n.valueType==="text"?te.push(he):n.valueType==="item"?te.push(ue):te.push(ye)});let X,oe,ae;se(n.multiple)?(f.value=G,X=o.toRaw(te),oe=le,ae=o.toRaw(ne)):(f.value=G[0]??"",X=o.toRaw(te[0]??""),oe=le[0]??"",ae=o.toRaw(ne[0])),Q&&(s("update:modelValue",X),s("change",X,ae)),s("update:text",oe)}},m=o.ref(null),h=o.ref(null),g=o.computed(()=>h.value??m.value??[]),$=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,M=>se(M)),w=qi(),k=async(M,P)=>{if(M){const Y=await w.load("select",M,P);if(Y.length>0)if(typeof Y[0]=="string"){let S=Y.map(G=>Pi(G));m.value=S}else m.value=Y;else m.value=null}};o.watch([()=>n.source,()=>n.params],([M,P])=>{h.value=null,k(M,P)},{immediate:!$.value});let q=!1;const _=()=>{q||(q=!0,k(n.source,n.params))};o.watch([()=>m.value,()=>n.modelValue],([M,P])=>{if(I()&&se(n.multiple)){He(P,f.value)||(f.value=P);return}N(P,n.valueType,g.value,!1)});let A=null,L=o.ref(!1);typeof n.remoteMethod=="function"&&(A=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const P=await n.remoteMethod(M);P&&(h.value=P)}catch(P){h.value=null,console.error(P)}L.value=!1});let B=null;typeof n.filterMethod=="function"&&(B=async M=>{if(M==null){h.value=null;return}L.value=!0;try{const P=await n.filterMethod(M,m.value);P&&(h.value=P)}catch(P){h.value=null,console.error(P)}L.value=!1});const I=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=o.ref(!1),T=e,H=o.computed(()=>({[T]:!0})),C=M=>{n.allowCreate||I()&&se(n.multiple)?(s("update:modelValue",M),s("change",M),s("update:text",M),f.value=M):N(M,"value",g.value,!0)};let O=de(n,"hintText"),R=o.ref(!1);const U=M=>{let Y=M.target.value;E.value=!0,ge(O.value)||(R.value=!0),s("focus",Y,M)},W=M=>{setTimeout(()=>{R.value&&(R.value=!1),E.value=!1},0);let Y=M.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),V.value||s("blur",Y,M)},J=()=>{s("clear","")},Z=o.ref(!1);let ee=null;const re=()=>{n.showTooltip&&Z.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{Z.value=!0},150))},D=()=>{ee&&(clearTimeout(ee),Z.value=!1,ee=null)},x=o.computed(()=>Z.value||R.value),F=o.computed(()=>Z.value?b.value:O.value),V=o.ref(!1),v=M=>{V.value=M,s("visible-change",M),M||s("selected")},K=M=>{s("remove-tag",M)},j=(M,P)=>{const Y=[];return M.forEach((Q,ne)=>{const S=Vl(n,Q);if(Array.isArray(S)&&S.length>0){const G=j(S,P),te=Ze(n,Q),X={key:`${te}_${ne}`,label:te};Y.push(o.h(p.ElOptionGroup,X,{default:()=>G}))}else{const G=Ct(n,Q),te=Ze(n,Q),le=Bi(n,Q),oe={key:`${G}_${ne}`,label:te,disabled:le,value:G};if(typeof P=="function")Y.push(o.h(p.ElOption,oe,{default:()=>P(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=o.h("span",ae,[G]),ye={class:{"fox-select-item__option-right":!0}},he=o.h("span",ye,[te]),gt=o.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);Y.push(o.h(p.ElOption,oe,{default:()=>gt}))}else n.optionType==="value"?Y.push(o.h(p.ElOption,oe,{default:()=>[G]})):Y.push(o.h(p.ElOption,oe))}}),Y},z=o.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const P={...Pe(r.attrs),ref:z,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:J,onChange:C,onFocus:U,onBlur:W,onVisibleChange:v,onRemoveTag:K};typeof A=="function"&&(P["remote-method"]=A,P.loading=L.value),typeof B=="function"&&(P["filter-method"]=B,P.loading=L.value);const Y={};r.slots.prefix&&(Y.prefix=r.slots.prefix),r.slots.empty&&(Y.empty=r.slots.empty),r.slots.options?Y.default=r.slots.options:Y.default=()=>j(g.value,r.slots.option);const Q=[],ne=o.h(p.ElSelect,P,Y);Q.push(ne);const S={default:()=>Q};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ce(n,Rl),hintText:F.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:D};return $.value&&(te["appear-listen"]=!0,te.onAppear=_),o.h(l,te,S)}}}}const{componentName:zi,create:Hi,scope:Ki}=ie("select-item"),zn=Hi(ji(zi,Ki,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Al={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l=1e3,n=6e4,r=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",f="week",c="month",b="quarter",N="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|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("_")},k=function(C,O,R){var U=String(C);return!U||U.length>=O?C:""+Array(O+1-U.length).join(R)+C},q={s:k,z:function(C){var O=-C.utcOffset(),R=Math.abs(O),U=Math.floor(R/60),W=R%60;return(O<=0?"+":"-")+k(U,2,"0")+":"+k(W,2,"0")},m:function C(O,R){if(O.date()<R.date())return-C(R,O);var U=12*(R.year()-O.year())+(R.month()-O.month()),W=O.clone().add(U,c),J=R-W<0,Z=O.clone().add(U+(J?-1:1),c);return+(-(U+(R-W)/(J?W-Z:Z-W))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:c,y:N,w:f,d,D:m,h:u,m:s,s:i,ms:a,Q:b}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},_="en",A={};A[_]=w;var L=function(C){return C instanceof T},B=function C(O,R,U){var W;if(!O)return _;if(typeof O=="string"){var J=O.toLowerCase();A[J]&&(W=J),R&&(A[J]=R,W=J);var Z=O.split("-");if(!W&&Z.length>1)return C(Z[0])}else{var ee=O.name;A[ee]=O,W=ee}return!U&&W&&(_=W),W||!U&&_},I=function(C,O){if(L(C))return C.clone();var R=typeof O=="object"?O:{};return R.date=C,R.args=arguments,new T(R)},E=q;E.l=B,E.i=L,E.w=function(C,O){return I(C,{locale:O.$L,utc:O.$u,x:O.$x,$offset:O.$offset})};var T=function(){function C(R){this.$L=B(R.locale,null,!0),this.parse(R)}var O=C.prototype;return O.parse=function(R){this.$d=function(U){var W=U.date,J=U.utc;if(W===null)return new Date(NaN);if(E.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Z=W.match(g);if(Z){var ee=Z[2]-1||0,re=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)):new Date(Z[1],ee,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,re)}}return new Date(W)}(R),this.$x=R.x||{},this.init()},O.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()},O.$utils=function(){return E},O.isValid=function(){return this.$d.toString()!==h},O.isSame=function(R,U){var W=I(R);return this.startOf(U)<=W&&W<=this.endOf(U)},O.isAfter=function(R,U){return I(R)<this.startOf(U)},O.isBefore=function(R,U){return this.endOf(U)<I(R)},O.$g=function(R,U,W){return E.u(R)?this[U]:this.set(W,R)},O.unix=function(){return Math.floor(this.valueOf()/1e3)},O.valueOf=function(){return this.$d.getTime()},O.startOf=function(R,U){var W=this,J=!!E.u(U)||U,Z=E.p(R),ee=function(j,z){var M=E.w(W.$u?Date.UTC(W.$y,z,j):new Date(W.$y,z,j),W);return J?M:M.endOf(d)},re=function(j,z){return E.w(W.toDate()[j].apply(W.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(z)),W)},D=this.$W,x=this.$M,F=this.$D,V="set"+(this.$u?"UTC":"");switch(Z){case N:return J?ee(1,0):ee(31,11);case c:return J?ee(1,x):ee(0,x+1);case f:var v=this.$locale().weekStart||0,K=(D<v?D+7:D)-v;return ee(J?F-K:F+(6-K),x);case d:case m:return re(V+"Hours",0);case u:return re(V+"Minutes",1);case s:return re(V+"Seconds",2);case i:return re(V+"Milliseconds",3);default:return this.clone()}},O.endOf=function(R){return this.startOf(R,!1)},O.$set=function(R,U){var W,J=E.p(R),Z="set"+(this.$u?"UTC":""),ee=(W={},W[d]=Z+"Date",W[m]=Z+"Date",W[c]=Z+"Month",W[N]=Z+"FullYear",W[u]=Z+"Hours",W[s]=Z+"Minutes",W[i]=Z+"Seconds",W[a]=Z+"Milliseconds",W)[J],re=J===d?this.$D+(U-this.$W):U;if(J===c||J===N){var D=this.clone().set(m,1);D.$d[ee](re),D.init(),this.$d=D.set(m,Math.min(this.$D,D.daysInMonth())).$d}else ee&&this.$d[ee](re);return this.init(),this},O.set=function(R,U){return this.clone().$set(R,U)},O.get=function(R){return this[E.p(R)]()},O.add=function(R,U){var W,J=this;R=Number(R);var Z=E.p(U),ee=function(x){var F=I(J);return E.w(F.date(F.date()+Math.round(x*R)),J)};if(Z===c)return this.set(c,this.$M+R);if(Z===N)return this.set(N,this.$y+R);if(Z===d)return ee(1);if(Z===f)return ee(7);var re=(W={},W[s]=n,W[u]=r,W[i]=l,W)[Z]||1,D=this.$d.getTime()+R*re;return E.w(D,this)},O.subtract=function(R,U){return this.add(-1*R,U)},O.format=function(R){var U=this,W=this.$locale();if(!this.isValid())return W.invalidDate||h;var J=R||"YYYY-MM-DDTHH:mm:ssZ",Z=E.z(this),ee=this.$H,re=this.$m,D=this.$M,x=W.weekdays,F=W.months,V=function(z,M,P,Y){return z&&(z[M]||z(U,J))||P[M].slice(0,Y)},v=function(z){return E.s(ee%12||12,z,"0")},K=W.meridiem||function(z,M,P){var Y=z<12?"AM":"PM";return P?Y.toLowerCase():Y},j={YY:String(this.$y).slice(-2),YYYY:this.$y,M:D+1,MM:E.s(D+1,2,"0"),MMM:V(W.monthsShort,D,F,3),MMMM:V(F,D),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:V(W.weekdaysMin,this.$W,x,2),ddd:V(W.weekdaysShort,this.$W,x,3),dddd:x[this.$W],H:String(ee),HH:E.s(ee,2,"0"),h:v(1),hh:v(2),a:K(ee,re,!0),A:K(ee,re,!1),m:String(re),mm:E.s(re,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z};return J.replace($,function(z,M){return M||j[z]||Z.replace(":","")})},O.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},O.diff=function(R,U,W){var J,Z=E.p(U),ee=I(R),re=(ee.utcOffset()-this.utcOffset())*n,D=this-ee,x=E.m(this,ee);return x=(J={},J[N]=x/12,J[c]=x,J[b]=x/3,J[f]=(D-re)/6048e5,J[d]=(D-re)/864e5,J[u]=D/r,J[s]=D/n,J[i]=D/l,J)[Z]||D,W?x:E.a(x)},O.daysInMonth=function(){return this.endOf(c).$D},O.$locale=function(){return A[this.$L]},O.locale=function(R,U){if(!R)return this.$L;var W=this.clone(),J=B(R,U,!0);return J&&(W.$L=J),W},O.clone=function(){return E.w(this.$d,this)},O.toDate=function(){return new Date(this.valueOf())},O.toJSON=function(){return this.isValid()?this.toISOString():null},O.toISOString=function(){return this.$d.toISOString()},O.toString=function(){return this.$d.toUTCString()},C}(),H=T.prototype;return I.prototype=H,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",c],["$y",N],["$D",m]].forEach(function(C){H[C[1]]=function(O){return this.$g(O,C[0],C[1])}}),I.extend=function(C,O){return C.$i||(C(O,T,I),C.$i=!0),I},I.locale=B,I.isDayjs=L,I.unix=function(C){return I(1e3*C)},I.en=A[_],I.Ls=A,I.p={},I})})(Al);var Wi=Al.exports;const je=Ge(Wi);var Ll={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var $=g.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var g=s[h];return g&&(g.indexOf?g:g.s.concat(g.f))},b=function(h,g){var $,w=s.meridiem;if(w){for(var k=1;k<=24;k+=1)if(h.indexOf(w(k,0,g))>-1){$=k>12;break}}else $=h===(g?"pm":"PM");return $},N={A:[i,function(h){this.afternoon=b(h,!1)}],a:[i,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[i,function(h){var g=s.ordinal,$=h.match(/\d+/);if(this.day=$[0],g)for(var w=1;w<=31;w+=1)g(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[i,function(h){var g=c("months"),$=(c("monthsShort")||g.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[i,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(h){var g,$;g=h,$=s&&s.formats;for(var w=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,E,T){var H=T&&T.toUpperCase();return E||$[T]||l[T]||$[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(C,O,R){return O||R.slice(1)})})).match(n),k=w.length,q=0;q<k;q+=1){var _=w[q],A=N[_],L=A&&A[0],B=A&&A[1];w[q]=B?{regex:L,parser:B}:_.replace(/^\[|\]$/g,"")}return function(I){for(var E={},T=0,H=0;T<k;T+=1){var C=w[T];if(typeof C=="string")H+=C.length;else{var O=C.regex,R=C.parser,U=I.slice(H),W=O.exec(U)[0];R.call(E,W),I=I.replace(W,"")}}return function(J){var Z=J.afternoon;if(Z!==void 0){var ee=J.hours;Z?ee<12&&(J.hours+=12):ee===12&&(J.hours=0),delete J.afternoon}}(E),E}}return function(h,g,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=g.prototype,k=w.parse;w.parse=function(q){var _=q.date,A=q.utc,L=q.args;this.$u=A;var B=L[1];if(typeof B=="string"){var I=L[2]===!0,E=L[3]===!0,T=I||E,H=L[2];E&&(H=L[2]),s=this.$locale(),!I&&H&&(s=$.Ls[H]),this.$d=function(U,W,J){try{if(["x","X"].indexOf(W)>-1)return new Date((W==="X"?1e3:1)*U);var Z=m(W)(U),ee=Z.year,re=Z.month,D=Z.day,x=Z.hours,F=Z.minutes,V=Z.seconds,v=Z.milliseconds,K=Z.zone,j=new Date,z=D||(ee||re?1:j.getDate()),M=ee||j.getFullYear(),P=0;ee&&!re||(P=re>0?re-1:j.getMonth());var Y=x||0,Q=F||0,ne=V||0,S=v||0;return K?new Date(Date.UTC(M,P,z,Y,Q,ne,S+60*K.offset*1e3)):J?new Date(Date.UTC(M,P,z,Y,Q,ne,S)):new Date(M,P,z,Y,Q,ne,S)}catch{return new Date("")}}(_,B,A),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),T&&_!=this.format(B)&&(this.$d=new Date("")),s={}}else if(B instanceof Array)for(var C=B.length,O=1;O<=C;O+=1){L[1]=B[O-1];var R=$.apply(this,L);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}O===C&&(this.$d=new Date(""))}else k.call(this,q)}}})})(Ll);var Yi=Ll.exports;const Gi=Ge(Yi);var Ml={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=a.format;r.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var f=this.$utils(),c=(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(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return f.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return f.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return f.s(String(u.$H===0?24:u.$H),b==="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 b}});return i.bind(this)(c)}}})})(Ml);var Ui=Ml.exports;const Xi=Ge(Ui);var Bl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){var a=n.prototype,i=function(c){return c&&(c.indexOf?c:c.s)},s=function(c,b,N,m,h){var g=c.name?c:c.$locale(),$=i(g[b]),w=i(g[N]),k=$||w.map(function(_){return _.slice(0,m)});if(!h)return k;var q=g.weekStart;return k.map(function(_,A){return k[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,b){return c.formats[b]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(c.formats[b.toUpperCase()])},f=function(){var c=this;return{months:function(b){return b?b.format("MMMM"):s(c,"months")},monthsShort:function(b){return b?b.format("MMM"):s(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(c,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(c,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return d(c.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(b){return d(c,b)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return s(u(),"months")},r.monthsShort=function(){return s(u(),"monthsShort","months",3)},r.weekdays=function(c){return s(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return s(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return s(u(),"weekdaysMin","weekdays",2,c)}}})})(Bl);var Zi=Bl.exports;const Ji=Ge(Zi);var _l={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){var l="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 d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=i(this).startOf(n).add(1,n).date(d),c=i(this).endOf(l);if(f.isBefore(c))return 1}var b=i(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),N=this.diff(b,l,!0);return N<0?i(this).startOf("week").week():Math.ceil(N)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(_l);var Qi=_l.exports;const es=Ge(Qi);var ql={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(ql);var ts=ql.exports;const ns=Ge(ts);var Pl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n,r){n.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Pl);var os=Pl.exports;const ls=Ge(os);var jl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(jl);var rs=jl.exports;const as=Ge(rs);var zl={exports:{}};(function(e,t){(function(l,n){e.exports=n()})(Ye,function(){return function(l,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(zl);var is=zl.exports;const ss=Ge(is);je.extend(Ji),je.extend(Xi),je.extend(Gi),je.extend(es),je.extend(ns),je.extend(ls),je.extend(as),je.extend(ss);const Ae={format(e,t){return je(e).format(t)},parser(e,t){return je(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,l){const r=new Date(e+"/"+t+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[l,n,r].join(t)},getDay(e,t){e=e||0;let l=t??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,t){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(l>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,l==n},getMonthWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l));let a=r.getDay(),i=r.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let 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,l,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(l)),a=r.getTime();let i=r.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Ae.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Ae.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,l){const n=new Date(new Date(t).setDate(t.getDate()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,l){const n=new Date(new Date(t).setMonth(t.getMonth()+l)),r=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Hl={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"}},Kl={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 us(e,t,l){return{props:{...ve,...Ee,...Hl,...Kl},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=o.computed(()=>R.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=o.computed(()=>R.value?"longTermKey":"normalKey"),m=z=>{if(R.value&&n.type==="daterange"){const M=[...c.value];M[0]=z,c.value=M}else c.value=z;s("update:modelValue",c.value),s("change",c.value)},h=o.computed(()=>R.value&&n.type==="daterange"?"date":n.type),g=e,$=o.computed(()=>({[`${g}`]:!0,"is-long":R.value,"is-readonly":i.value,"is-disabled":a.value}));let w=de(n,"hintText"),k=o.ref(!1);const q=z=>{let P=z.target.value;f.value=!0,ge(w.value)||(k.value=!0),s("focus",P,z)},_=z=>{setTimeout(()=>{k.value&&(k.value=!1),f.value=!1},0);let P=z.target.value;n.maxLength&&P.length>Number(n.maxLength)&&(P=P.slice(0,Number(n.maxLength))),s("blur",P,z)},A=()=>{s("clear","")},L=z=>{s("calendar-change",z)},B=(z,M,P)=>{s("panel-change",z,M,P)},I=z=>{s("visible-change",z)},E=ke(o.computed(()=>n.longTermText),"longTermText",Re.Near),T=ke(o.computed(()=>n.longTermActionLabel),"longTermActionLabel",Re.Near),H=ke(o.computed(()=>n.longTermValue),"longTermValue",Re.Near),C=ke(o.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Re.Near);let O=null;const R=o.ref(se(n.longTerm)),U=z=>{if(R.value=z,s("update:longTerm",z),z){if(O=c.value,n.type==="daterange"){const M=[];Array.isArray(H.value)?(M[0]=c.value?c.value[0]??H.value[0]:null,M[1]=H.value[1]??H.value[0]):(M[0]=c.value?c.value[0]??H.value:null,M[1]=R.value),M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else Array.isArray(H.value)?c.value=H.value[1]??H.value[0]:c.value=H.value,c.value||(c.value=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date);s("update:modelValue",c.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(O)?M[1]=O[1]:M[1]=O,M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=O;s("update:modelValue",c.value),setTimeout(()=>{K()},100)}},W=se(n.isLongTerm);if(W){const z=()=>{if(R.value===!0){if(O=c.value,n.type==="daterange"){const M=[c.value[0]];Array.isArray(H.value)?M[1]=H.value[1]??H.value[0]:M[1]=R.value,M[0]||(M[0]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ae.format(new Date,n.valueFormat):new Date),c.value=M}else c.value=H.value;s("update:modelValue",c.value)}else He(H.value,c.value)&&(R.value=!0)};z(),o.watch([()=>n.longTerm],([M])=>{R.value!==M&&z()}),o.watch([()=>c.value],([M])=>{let P=!1;if(n.type==="daterange"&&Array.isArray(M))try{let Y=M[1];if(!Y)return;typeof Y!="string"&&n.valueFormat&&(Y=Ae.format(Y,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(Y===Q||Array.isArray(C.value)&&C.value.findIndex(S=>Y==S)!==-1)&&(P=!0)}catch(Y){console.error(Y)}R.value!==P&&(R.value=P)},{immediate:!0})}const J=o.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),Z=o.ref(),ee=o.ref(),re=/^\d+$/,D=(z,M)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,M):re.test(z)&&z.length===n.flashFillThreshold,x=(z,M)=>{let P;if(typeof n.flashFillFormat=="function")P=n.flashFillFormat(z,M);else{const Q=n.flashFillFormat??"YYYYMMDD";P=Ae.parser(z,Q)}const Y=n.valueFormat??"YYYY-MM-DD";return Ae.format(P,Y)},F=z=>z?z.endsWith("range"):!1,V=z=>{if(!z.target)return;const M=z.target.value??"";if(D(M,n.type)){const P=x(M,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[0]=P,m(Y)}else m(P)}},v=z=>{if(!z.target)return;const M=z.target.value??"";if(D(M,n.type)){const P=x(M,n.type);if(F(n.type)){const Y=Array.isArray(c.value)?[...c.value]:[];Y[1]=P,m(Y)}else m(P)}},K=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",V),z[1]&&z[1].addEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",V)}},j=()=>{if(n.flashFill&&Z.value&&Z.value.$el)if(F(n.type)){const z=Z.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",V),z[1]&&z[1].removeEventListener("input",v)}else{const z=Z.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",V)}};return o.onMounted(K),o.onBeforeUnmount(j),xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const M={...r.attrs,key:N.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:A,onFocus:q,onBlur:_,onCalendarChange:L,onPanelChange:B,onVisibleChange:I},P={};r.slots["range-separator"]&&(P["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(P.default=r.slots.cell);const Y=[],Q=o.h(p.ElDatePicker,M,P);Y.push(Q);const ne={default:()=>Y};if(r.slots.default&&(ne.label=r.slots.default),r.slots.fixedTip&&(ne.fixedTip=r.slots.fixedTip),W){if(R.value){const le=o.h("span",{class:["fox-date-item__long-splitor"]},["-"]),X=o.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),oe={class:J.value},ae=o.h("div",oe,{default:()=>[le,X]});Y.push(ae)}if(!i.value&&!a.value){const le={label:T.value||E.value,disabled:i.value||a.value,modelValue:R.value,"onUpdate:modelValue":U},X=o.h(p.ElCheckbox,le),oe=o.h("div",{class:{[`${g}__append`]:!0}},[X]);ne.append=()=>oe}}const G={...Ce(n,Hl,Kl),ref:Z,class:{[`${g}__wrapper`]:!0,"has-append":W},hintText:w.value,hintVisible:k.value,prop:`${n.prop}_item`};return o.h(l,G,ne)}}}}const{componentName:cs,create:fs,scope:ds}=ie("date-item"),Hn=fs(us(cs,ds,we)),Wl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function hs(e,t,l){return{props:{...ve,...Ee,...Wl},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0})),m=A=>{c.value=A,s("update:modelValue",A),s("change",A)};let h=de(n,"hintText"),g=o.ref(!1);const $=A=>{let B=A.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",B,A)},w=A=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let B=A.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),s("blur",B,A)},k=()=>{s("clear","")},q=A=>{s("visible-change",A)},_=o.ref();return xe({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},handleOpen:()=>{_?.value.handleOpen()},handleClose:()=>{_?.value.handleClose()}}),()=>{const L={...r.attrs,ref:_,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:k,onFocus:$,onBlur:w,onVisibleChange:q},B={},I=[],E=o.h(p.ElTimePicker,L,B);I.push(E);const T={default:()=>I};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const C={...Ce(n,Wl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,C,T)}}}}const{componentName:gs,create:ms,scope:ys}=ie("time-item"),Kn=ms(hs(gs,ys,we)),Yl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ps(e,t,l){return{props:{...ve,...Ee,...Yl},emits:["change","update:modelValue","blur","focus","clear"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0})),m=_=>{c.value=_,s("update:modelValue",_),s("change",_)};let h=de(n,"hintText"),g=o.ref(!1);const $=_=>{let L=_.target.value;f.value=!0,ge(h.value)||(g.value=!0),s("focus",L,_)},w=_=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),s("blur",L,_)},k=()=>{s("clear","")},q=o.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const A={...r.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:k,onFocus:$,onBlur:w},L={},B=[],I=o.h(p.ElTimeSelect,A,L);B.push(I);const E={default:()=>B};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const H={...Ce(n,Yl),hintText:h.value,hintVisible:g.value,prop:`${n.prop}_item`};return o.h(l,H,E)}}}}const{componentName:bs,create:vs,scope:ws}=ie("time-select-item"),Wn=vs(ps(bs,ws,we));function Gl(e,t=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let r=n;for(let a=l.length-1;a>=n;a--)if(l.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>l.length?l=l.padEnd(r,"0"):l=l.substring(0,r),l}function Ul(e,t,l=20){if(typeof t=="string"&&(t=pe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ko(`${e}`,`${t}`);return Gl(n)}else{let n=yn(`${e}`,Wo(`${t}`),20);return Gl(n)}}function Ss(e,t=-1,l=!1,n=3,r=","){return Rt(e,t,l,n,r)}function Xl(e,t,l,n,r=!0){if(e=="")return"";if(e=Yo(e),t=pe(t),t==1)return e;if(n)e=Ul(e,t),l&&(e=="0"&&r?e=`${e}.`.padEnd(pe(l)+2,"0"):e=yn(e,1,pe(l)));else{let a=-1*t;e=Ul(e,a)}return e}function Zl(e,t){let l={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=pn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";l.message=a.replace("{0}",t.min),l.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=pn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(l.maxValid=!1)}return l}const Jl={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 xs(e,t,l){return{props:{...ve,...Ee,...Jl},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref(!1),d=de(n,"modelValue"),f=o.ref("");o.watch([()=>d.value,()=>n.rates,()=>n.precision],([C,O,R])=>{if(ge(C)){f.value="";return}const U=Xl(C,O,R,!1);f.value!==U&&(f.value=U)},{immediate:!0});const c=o.computed(()=>{let C="";return u.value&&(C=f.value),C}),{t:b}=Fe.useFoxI18n(t),N=o.computed(()=>{let C=n.placeholder??"";return!u.value&&!ge(f.value)?C=Ss(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):C=b(["placeholder",C]),C}),m=e,h=o.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=ke(o.computed(()=>n.textAlign),"textAlign");o.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const $=o.ref(""),w=o.computed(()=>{let C=$.value;return ge(C)&&(C=n.errorTip??""),C}),k=o.ref(""),q=o.ref(!1),_=(C,O)=>{if(C=`${C}`,ge(C)){f.value="",d.value="",O.forEach(R=>{s(R,"")}),se(n.showTip)&&q.value&&(q.value=!1);return}if(C.length>=2){let R=C;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){o.triggerRef(f);return}}if(C!="-"){if(!nl(C)){o.triggerRef(f);return}if(n.integerLength!=-1&&ol(C)>Number(n.integerLength)){o.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&ll(C)>Number(n.decimalLength)){o.triggerRef(f);return}let R=Zl(C,n);if(R.maxValid===!1){$.value=R.message,o.triggerRef(f);return}}else if(n.min!=null&&pe(n.min)>=0){o.triggerRef(f);return}k.value=C,se(n.showTip)&&(q.value=C.length>0),f.value=C,d.value=Xl(C,n.rates,n.precision,!0),O.forEach(R=>{s(R,d.value)})},A=C=>{_(C,["update:modelValue","input"])},L=C=>{_(C,["update:modelValue","change"])},B=C=>{if(u.value=!0,se(n.showTip)){let O=f.value;ge(O)&&(O=n.hintText),ge(O)||(k.value=O,q.value=!0)}$.value="",s("focus",d.value,C)},I=C=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&q.value===!0&&(q.value=!1)},0),!ge(f.value)){let O=Zl(f.value,n);if(O.minValid===!1||O.maxValid===!1){$.value=O.message;return}}s("update:modelValue",d.value,C),s("blur",d.value,C)},E=()=>{s("clear","")},T=o.computed(()=>pt(n.unit)>0),H=o.ref();return xe({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const O={...Pe(r.attrs),ref:H,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:A,onChange:L,onFocus:B,onBlur:I},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:T.value&&(R.suffix=()=>[n.unit]);const U=[],W=o.h(p.ElInput,O,R);U.push(W);const J={default:()=>U};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Jl),errorTip:w.value,hintText:k.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return o.h(l,ee,J)}}}}const{componentName:Ts,create:$s,scope:Cs}=ie("money-item"),Yn=$s(xs(Ts,Cs,we)),Ql={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 Ns(e,t,l){return{props:{...ve,...Ee,...Ql},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0,[`${b}__append`]:A.value})),m=o.computed(()=>({[`${b}__unit`]:!0})),h=B=>{c.value=B,s("update:modelValue",B),s("input",B)},g=B=>{s("change",B)};let $=de(n,"hintText"),w=o.ref(!1);const k=B=>{let E=B.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",E,B)},q=B=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let E=B.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,B)},_=()=>{s("clear","")},A=o.computed(()=>pt(n.unit)>0),L=o.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const I={...Pe(r.attrs),ref:L,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:_,onChange:g,onInput:h,onFocus:k,onBlur:q},E={},T=[],H=o.h(p.ElInputNumber,I,E);T.push(H);const C={default:()=>T};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const R={...Ce(n,Ql),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)C.append=r.slots.append;else if(A.value){const W={class:m.value},J=o.h("div",W,[n.unit]);C.append=()=>J}return o.h(l,R,C)}}}}const{componentName:Es,create:ks,scope:Is}=ie("input-number-item"),Gn=ks(Ns(Es,Is,we));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Os(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Vs=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n,r);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await a(l,n,r))}};function Ds(){const e=o.getCurrentInstance();return new Vs(e.proxy)}function Un(e,t,l){const n=Ue(e,t),r=Ue(e,l);if(n!==r)return!1;const a=ot(e,t),i=ot(e,l);return a===i}function er(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=er(e,s,l,n);r.push(u)}else{let u=!1;for(let d of a){if(l==="text")u=Ue(e,d)===s;else if(l==="item")u=Un(e,d,s);else{let f=ot(e,d);f==null&&(f=Ue(e,d)),u=f===s}if(u){r.push(d),a=Os(e,d);break}}if(!u)break}}return r}function Fs(e){return{text:e,value:e}}const tr={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},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Rs(e,t,l){return{props:{...ve,...Ee,...tr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(null),c=o.ref([]),b=o.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(P=>Ue(n,P)).join(" "):Ue(n,z)).join(" "):""),N=(j,z,M,P=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===j)return;f.value=j;const S=o.toRaw(j);if(P){const G=K?.value.getCheckedNodes();if(G)if(n.multiple){const te=[];G.forEach(le=>{const oe=(le.pathNodes??[]).map(ae=>ae.data);te.push(oe)}),s("update:pathNodes",te)}else{const le=(G[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",le)}s("update:modelValue",S),s("change",S)}return}const Y=er(n,j,z,M);if(Y===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,P&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Q=Y[Y.length-1];if(E.value.checkStrictly!==!0&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const S=[];Y.forEach(G=>{const te=`${Ue(n,G)}`;S.push(te)}),S.length>0&&(B.value=S.join(n.separator))}else B.value=null;let ne=!0;if(Y.length!==c.value.length)ne=!1;else for(let S=0;S<Y.length;S++){const G=Y[S],te=c.value[S];if(Array.isArray(G)){if(!Array.isArray(te)||G.length!==te.length)ne=!1;else for(let le=0;le<G.length;le++)if(!Un(n,G[le],te[le])){ne=!1;break}}else Un(n,G,te)||(ne=!1);if(!ne)break}if(!ne){c.value=Y;let S=[],G=[];Y.forEach(le=>{if(Array.isArray(le)){let X=[],oe=[];for(let ae of le)X.push(ot(n,ae)),n.valueType==="text"?oe.push(Ue(n,ae)):n.valueType==="item"?oe.push(ae):oe.push(ot(n,ae));S.push(X),G.push(oe)}else S.push(ot(n,le)),n.valueType==="text"?G.push(Ue(n,le)):n.valueType==="item"?G.push(le):G.push(ot(n,le))}),f.value=S;const te=o.toRaw(G);P&&(s("update:pathNodes",Y),s("update:modelValue",te),s("change",te))}},m=o.ref([]),h=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,j=>se(j)),g=Ds(),$=async(j,z)=>{if(j){const M=await g.load("cascader",j,z);if(M.length>0)if(typeof M[0]=="string"){let Q=M.map(ne=>Fs(ne));m.value=Q}else m.value=M}};o.watch([()=>n.source,()=>n.params],async([j,z])=>{$(j,z)},{immediate:!(h.value||n.lazy)});let w=!1;const k=()=>{w||(w=!0,$(n.source,n.params))};o.watch([()=>m.value,()=>n.modelValue],([j,z])=>{N(z,n.valueType,j,!1)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,_=o.ref(!1);typeof n.remoteMethod=="function"&&(q=async j=>{if(j!=null){_.value=!0;try{const z=await n.remoteMethod(j);m.value=z}catch(z){console.error(z)}_.value=!1}});const A=o.ref(!1),L=e,B=o.ref(null),I=o.computed(()=>({[L]:!0,"is-incomplete":B.value&&B.value.length>0})),E=o.computed(()=>{let j={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(j.multiple=!0),n.props&&Object.assign(j,n.props),n.lazy&&(j.lazy=!0,j.lazyLoad=async(z,M)=>{const P=await g.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const Y=z.pathLabels??[];let Q=[];Y.forEach(ne=>{ne&&Q.push(ne)}),Q.length>0&&(B.value=Q.join(n.separator))}else B.value=null;M(P)}),j}),T=j=>{n.allowCreate?(s("update:modelValue",j),s("change",j),f.value=j):N(j,"value",m.value,!0)};let H=de(n,"hintText"),C=o.ref(!1);const O=j=>{let M=j.target.value;A.value=!0,ge(H.value)||(C.value=!0),s("focus",M,j)},R=j=>{setTimeout(()=>{C.value&&(C.value=!1),A.value=!1},0);let M=j.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),x.value||s("blur",M,j)},U=()=>{s("clear","")},W=o.ref(!1);let J=null;const Z=()=>{n.showTooltip&&W.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{W.value=!0},150))},ee=()=>{J&&(clearTimeout(J),W.value=!1,J=null)},re=o.computed(()=>W.value||C.value),D=o.computed(()=>W.value?b.value:H.value),x=o.ref(!1),F=j=>{x.value=j,s("visible-change",j),j||s("selected")},V=j=>{s("remove-tag",j)},v=j=>{s("expand-change",j)},K=o.ref();return xe({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},getCheckedNodes:()=>K?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:K,class:I.value,props:E.value,clearable:n.clearable,placeholder:B.value||d.placeholder.value,disabled:a.value||i.value,options:m.value,modelValue:f.value,separator:n.separator,onClear:U,onChange:T,onFocus:O,onBlur:R,onVisibleChange:F,onRemoveTag:V,expandChange:v};typeof q=="function"&&(z["remote-method"]=q,z.loading=_.value);const M={};r.slots.option&&(M.default=r.slots.option),r.slots.empty&&(M.empty=r.slots.empty);const P=[],Y=o.h(p.ElCascader,z,M);P.push(Y);const Q={default:()=>P};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const S={...Ce(n,tr),hintText:D.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:Z,onMouseleave:ee};return h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=k),o.h(l,S,Q)}}}}const{componentName:As,create:Ls,scope:Ms}=ie("cascader-item"),Xn=Ls(Rs(As,Ms,we)),nr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Bs(e,t,l){return{props:{...ve,...Ee,...nr},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),f=o.ref(!1),c=de(n,"modelValue"),b=e,N=o.computed(()=>({[b]:!0})),m=L=>{c.value=L,s("update:modelValue",L),s("input",L)},h=L=>{s("change",L)},g=L=>{s("select",L)};let $=de(n,"hintText"),w=o.ref(!1);const k=L=>{let I=L.target.value;f.value=!0,ge($.value)||(w.value=!0),s("focus",I,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let I=L.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),s("blur",I,L)},_=()=>{s("clear","")},A=o.ref();return xe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const B={...r.attrs,ref:A,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:c.value,onClear:_,onChange:h,onInput:m,onFocus:k,onBlur:q,onSelect:g},I={};r.slots.prepend&&(I.prepend=r.slots.prepend),r.slots.append&&(I.append=r.slots.append),r.slots.prefix&&(I.prefix=r.slots.prefix),r.slots.suffix&&(I.suffix=r.slots.suffix),r.slots.option&&(I.default=r.slots.option);const E=[],T=o.h(p.ElAutocomplete,B,I);E.push(T);const H={default:()=>E};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,nr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return o.h(l,O,H)}}}}const{componentName:_s,create:qs,scope:Ps}=ie("autocomplete-item"),Zn=qs(Bs(_s,Ps,we));function js(e,t,l,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 d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(b=>b[n]===f);if(!c)break;i.push(c[l])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(b=>b[n]===f);if(!c)break;i.push(c[l]),u=c[r]}}return i}let zs=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Hs(){const e=o.getCurrentInstance();return new zs(e.proxy)}const or={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 Ks(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){const a=Hs(),i=o.ref([]);o.watch([()=>l.source,()=>l.params],async([d,f])=>{i.value=await a.load(l.sourceType,d,f)},{immediate:!0});const s=o.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=js(l.modelValue,i.value,l.textKey,l.valueKey,l.childrenKey);return d.length==0?l.emptyText??"":d.length===1?l.optionType=="item"?`${l.modelValue}${l.separator}${d[0]}`:d[0]:d.join(l.separator)}),u=l.resolveTag?o.resolveComponent(l.tag):l.tag;return()=>{const d={...n};return r.default?r.default({text:s.value,value:l.modelValue}):l.resolveTag?l.emptyText!==void 0&&l.emptyText===s.value?o.h(l.emptyTag??"span",{...n,class:l.emptyClass},s.value):o.h(u,d,{default:()=>s.value}):o.h(u,d,s.value)}}}}const{componentName:xh,create:Ws,scope:Th}=ie("mapping"),Nt=Ws(Ks());function Ys(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Gs(e,t){return{props:{...or},setup(l,{attrs:n,slots:r}){return()=>{const a={default:i=>{const s=Ys(i.row,i.column.property);return r.default?o.h(Nt,{...l,modelValue:s},{default:r.default}):o.h(Nt,{...l,modelValue:s})}};return o.h(p.ElTableColumn,{...n},a)}}}}const{componentName:$h,create:Us,scope:Ch}=ie("table-mapping-column"),Jn=Us(Gs()),Xs=Symbol.for("TableStateKey");function lr(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Zs(e,t){return{props:{},setup(l,{attrs:n}){const r=o.inject(Xs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:s=>{const u=lr(s.row,s.column.property),d=a?lr(a,s.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},b=o.h("span",c,[o.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return o.h("label",N,[b])}};return o.h(p.ElTableColumn,{...n},i)}}}}const{componentName:Nh,create:Js,scope:Eh}=ie("table-radio-column"),Qn=Js(Zs()),Qs={},eu={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"},tu=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function nu(e,t){return o.openBlock(),o.createElementBlock("svg",eu,tu)}const ou=Me(Qs,[["render",nu]]),{componentName:Ih,create:lu,scope:Oh}=ie("table-setting"),ru={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:"不固定"}},au=lu({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:ou,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...ru},setup(e,{emit:t,attrs:l}){let n=[];const r=o.ref([]),a=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),i=o.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),s=o.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=o.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=o.computed(()=>a.value.length>0),f=o.computed(()=>i.value.length>0),c=v=>v.length>1,b=(v,K)=>{Array.isArray(v)&&Array.isArray(K)&&v.forEach(M=>{K.some(P=>P.prop===M.prop?(M.label=P.label,!0):!1)});const j=[];r.value=v.map((M,P)=>(!(M.label===""||M.type)&&M.visible!==!1&&j.push(M.prop),{...M,sortIndex:P})),s.value.length+a.value.length+i.value.length===j.length?w.value=!0:j.length>0&&(k.value=!0),A.value=j},N=v=>v?v.type?v.type:v.label?v.prop:"":"",m=(v,K)=>{if(v.length!==K.length)return!1;const j=v.map(z=>N(z));for(let z of K){const M=N(z);if(j.indexOf(M)===-1)return!1}return!0},h=v=>{if(!v){const K=e.tableRef.getColumnSetting(),j=K.srcColumnPropertyList;n=j.map((z,M)=>({...z,sortIndex:M})),v=K.columnPropertyList,v&&v.length>0&&m(j,v)||(v=j)}b(v,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},$=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=o.ref(!1),k=o.ref(!1),q=v=>{const K=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&K.push(z.prop),z.visible=v}),w.value=!1,k.value=!1,s.value.length+a.value.length+i.value.length===K.length?w.value=!0:K.length>0&&(k.value=!0),A.value=K,g()},_=()=>{h(n),g()},A=o.ref([]),L=v=>{r.value.forEach(j=>{if(j.label===""||j.type)return;const z=v.indexOf(j.prop)!==-1;j.visible=z}),w.value=!1,k.value=!1;const K=s.value.length+a.value.length+i.value.length;v.length===K?w.value=!0:v.length>0&&(k.value=!0),g()},B=()=>{h()};o.onMounted(()=>{setTimeout(()=>{h()},50)});const I={currentRow:null,index:null,roleType:null},E=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,E(v)):null:null,T=v=>{const K=v.currentTarget;K&&K.dataset&&(I.roleType=K.dataset.roleType,I.index=K.dataset.index)},H=v=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null,I.roleType=null},C=v=>{const K=v.currentTarget;v.relatedTarget;const j=E(K);if(!j)return;const z=j.dataset&&j.dataset.roleType;I.roleType===z&&(v.preventDefault(),I.currentRow&&I.currentRow!==j&&I.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),I.currentRow=j)},O=v=>{v.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},R=v=>{const K=v.currentTarget,j=E(K);if(!j)return;const z=j.dataset&&j.dataset.roleType;if(I.roleType!==z)return;v.preventDefault();const M=Number(I.index),P=Number(j.dataset.index);if(M!==P){if(M<P){const Y=r.value[M];r.value.splice(M,1),r.value.splice(P,0,Y)}else{const Y=r.value[M];r.value.splice(M,1),r.value.splice(P+1,0,Y)}b(r.value,n),g()}},U=v=>{const K=r.value[v];K.fixed="left",g()},W=v=>{const K=r.value[v];K.fixed="right",g()},J=v=>{const K=r.value[v];K.fixed=void 0,g()},Z=new Map;let ee=null;function re(v){const K=document.createRange();return K.setStart(v,0),K.setEnd(v,v.childNodes.length),K.getBoundingClientRect().width}return{attrs:l,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:k,handleCheckAllChange:q,handleReset:_,checkedValue:A,handleCheckChange:L,onShow:B,onDragStart:T,onDragEnd:H,onDragOver:C,onDragLeave:O,onDrop:R,toLeftFixed:U,toRightFixed:W,toUnFixed:J,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,K,j)=>{const z=v.currentTarget;if(z){const M=Math.floor(z.offsetWidth);if(Math.floor(re(z))>M){let Y=Z.get(K);if(Y){if(Y===ee)return;Ve.hide(Y)}Y=Ve.show(z,j,{type:"text",placement:"top",closeOnClick:!1}),Z.set(K,Y),ee=Y}}},onMouseLeaveForOverflowText:(v,K)=>{const j=Z.get(K);j&&(Ve.hide(j),j===ee&&(ee=null))},onMouseOverForTip:(v,K)=>{const j=v.currentTarget;j&&(ee&&Ve.hide(ee),ee=Ve.show(j,K,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(Ve.hide(ee),ee=null)}}}}),iu={class:"fox-table-setting"},su={class:"fox-table-setting__header"},uu={class:"fox-table-setting__body"},cu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},fu={key:0,class:"fox-table-setting__body-title"},du=["data-index","draggable"],hu=["onMouseover","onMouseleave"],gu={class:"tools-item"},mu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},yu={key:0,class:"fox-table-setting__body-title"},pu=["data-index","draggable"],bu=["onMouseover","onMouseleave"],vu={class:"tools-item"},wu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Su={key:0,class:"fox-table-setting__body-title"},xu=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],$u={class:"tools-item"};function Cu(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("RefreshLeft"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("Download"),b=o.resolveComponent("fox-checkbox"),N=o.resolveComponent("FoxCheckboxGroup"),m=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(m,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",iu,[o.createElementVNode("div",su,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",uu,[o.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:o.withCtx(()=>[e.leftFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",cu,[e.isShowLeftFixedTitle?(o.openBlock(),o.createElementBlock("div",fu,o.toDisplayString(e.leftFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.leftFixedColumns,h=>(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,hu)]),_:2},1032,["label"]),o.createElementVNode("div",gu,[o.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,du))),128))])):o.createCommentVNode("",!0),e.unFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",mu,[e.isShowNotFixedTitle?(o.openBlock(),o.createElementBlock("div",yu,o.toDisplayString(e.unFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.unFixedColumns,h=>(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,bu)]),_:2},1032,["label"]),o.createElementVNode("div",vu,[o.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,pu))),128))])):o.createCommentVNode("",!0),e.rightFixedColumns.length>0?(o.openBlock(),o.createElementBlock("div",wu,[e.isShowRightFixedTitle?(o.openBlock(),o.createElementBlock("div",Su,o.toDisplayString(e.rightFixedTitle),1)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rightFixedColumns,h=>(o.openBlock(),o.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)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(b,{class:"checkbox-item",label:h.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(h.label),45,Tu)]),_:2},1032,["label"]),o.createElementVNode("div",$u,[o.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(c)]),_:2},1032,["onClick"])])],40,xu))),128))])):o.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const nn=Me(au,[["render",Cu]]);let Nu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n,r,a,i,s){if(Array.isArray(l)){let d=(n-1)*r,f=d+r;f>l.length&&(f=l.length);const c=l.slice(d,f);return{totalSize:l.length,page:c}}if(typeof l=="function")return await Reflect.apply(l,null,[n,r,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(a)&&o.isReactive(a)&&(a=o.toRaw(a)),await Reflect.apply(u,null,[l,n,r,a,i,s]))}};function Eu(){const e=o.getCurrentInstance();return new Nu(e.proxy)}class ku{proxy;constructor(t){this.proxy=t}async load(t){let l=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(l=await Reflect.apply(n,null,["load",t])),l}save(t,l){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,l])}remove(t){const l=Be(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["remove",t])}}function rr(){const e=o.getCurrentInstance();return new ku(e.proxy)}const Iu=Symbol.for("TableStateKey"),ar={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{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"}},ir={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}},eo={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:"不固定"}},Ou={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Vu(e,t){let l=t.split("."),n=e;for(let r=0;r<l.length;r++){let a=l[r],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(i==0){let c=a.substring(0,s);n=n[c][f]}else n=n[f];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function to(e,t){return e.filter(n=>{for(let r in t){const a=t[r],i=Vu(n,r);if(a!==i)return!1}return!0})}function Du(e,t,l){return{inheritAttrs:!1,props:{...ve,...Ee,...ar,...ir,...eo,...Ou},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Fe.useFoxI18n(t),{emitEvent:i}=Se({componentName:e,validateHandler:{getValue(...X){return A.value}}},n.prop??r.attrs.name),s=e,u=o.computed(()=>({[s]:!0})),d=o.computed(()=>({[`${s}__setting`]:!0})),f=o.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),c=o.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=o.shallowRef({}),N=o.computed(()=>({...b.value,...n.params??{},...n.baseParams??{}})),m=o.ref(n.infiniteLoad===!0?0:n.pageIndex),h=o.ref(n.pageSize),g=se(n.infiniteLoad);g||(o.watch(()=>n.pageIndex,X=>{m.value=X}),o.watch(()=>n.pageSize,X=>{h.value=X}),o.watch([m,h],([X,oe],[ae,ue])=>{oe!==ue&&(m.value=1,X=1),E(n.data,X,oe,N.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&o.watch([()=>n.data,N],async([X,oe],[ae,ue])=>{$()&&(X!==ae&&(B=!0),!(!Array.isArray(X)&&He(X,ae)&&He(oe,ue))&&(g?(m.value=0,q.value=!0,A.value=[],H()):m.value===1?E(X,m.value,h.value,oe):m.value=1))},{deep:!0});const w=X=>{m.value=X,i("page-index-change",X)},k=X=>{h.value=X,i("page-size-change",X)},q=o.ref(!0),_=o.ref(0),A=o.ref(),L=Eu();let B=!0;const I=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,X=>se(X)),E=async(X,oe,ae,ue,ye)=>{B=!1;try{if(ye===!0){if(!q.value)return!1;const he=await L.load("table",X,oe,ae,ue,B,a.value);return _.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,A.value,he.page),setTimeout(()=>{i("loaded-data")},250),(A.value?.length??0)>=_.value)||he.page.length<ae?(q.value=!1,!1):!0}else{const he=await L.load("table",X,oe,ae,ue,B,a.value);return _.value=he.totalSize,A.value=he.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),_.value=0,A.value=[]}return!1};let T=!1;const H=async()=>{if(!T){if(T=!0,!q.value){T=!1;return}m.value+=1,await E(n.data,m.value,h.value,N.value,!0),T=!1}},C=(X={},oe=!1)=>new Promise(async ae=>{b.value={...o.toRaw(X??{})},oe||(m.value=n.pageIndex??1),g===!0?(m.value=0,A.value=[],q.value=!0,await H()):await E(n.data,m.value,h.value,N.value),ae()}),O=()=>{_.value=0,A.value=[],g===!0&&(m.value=0,q.value=!0)};let R=!1;const U=()=>{R||(R=!0,C())},W=o.ref(null);if(g===!0){let X=null;const oe=()=>{W.value&&(X=new IntersectionObserver(ue=>{let ye=!1;for(let he of ue)if(he.intersectionRatio>0){ye=!0;break}ye&&H()}),X.observe(W.value))},ae=()=>{!X||!W.value||(X.unobserve(W.value),X=null)};o.onMounted(oe),o.onBeforeUnmount(ae)}$()&&!I.value&&C();const J=o.ref(null);o.provide(Iu,{currentRow:J});const Z=(X,oe)=>{J.value=X,i("current-change",X,oe)},ee=(X,oe,ae)=>{i("row-click",X,oe,ae),se(n.rowClickSelectable)===!0&&le?.value.toggleRowSelection(X)},re=[],D=(X,oe)=>{if(i("expand-change",X,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==X&&le?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,X)}},x=r.attrs.id??n.prop??r.attrs.name,F=rr(),V=o.ref([]);let v=[];const K=()=>({srcColumnPropertyList:v.map(oe=>({...oe})),columnPropertyList:V.value}),j=X=>{V.value=[...X],M()},z=async()=>{const X=await F.load(x);X&&(V.value=X)},M=()=>{F.save(x,V.value)},P=()=>{F.remove(x)};z();const Y=X=>X?X.type?X.type:X.label?X.prop:"":"",Q=o.computed(()=>{if(typeof r.slots.default=="function"){const X=r.slots.default(),oe=new Map;if(v=[],X.forEach(ae=>{const ue=ae;if(!ue.props)return;const ye=Y(ue.props);oe.set(ye,ae);const he={label:"",prop:""};Object.assign(he,ue.props),v.push(he)}),V.value.length===v.length){const ae=[];for(let ue of V.value){const ye=Y(ue),he=oe.get(ye);if(!he)return X;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return X}return[]}),ne=o.shallowRef(new Map),S=({column:X,rowIndex:oe})=>{const ae=`${oe}_${X.property}`;return ne.value.get(ae)??""},G=X=>typeof X=="function"?oe=>{const ae=[];let ue=S(oe);return ue&&ae.push(ue),ue=X(oe),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:S,te=(X,oe,ae)=>{const ue=`${X}_${oe}`;ae?ne.value.set(ue,ae):ne.value.delete(ue),o.triggerRef(ne)},le=o.ref();return xe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(X,oe)=>{le?.value.toggleRowSelection(X,oe)},toggleRowSelectionByProp:(X,oe)=>{if(!A.value)return;const ae=to(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(X,oe)=>{le?.value.toggleRowExpansion(X,oe)},toggleRowExpansionByProp:(X,oe)=>{if(!A.value)return;const ae=to(A.value,X);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:X=>{le?.value.setCurrentRow(X)},setCurrentRowByProp:X=>{if(!A.value)return;const oe=to(A.value,X);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>J.value,clearSort:()=>{le?.value.clearSort()},clearFilter:X=>{le?.value.clearFilter(X)},doLayout:()=>{le?.value.doLayout()},sort:(X,oe)=>{le?.value.sort(X,oe)},scrollTo:(X,oe)=>{le?.value.scrollTo(X,oe)},setScrollTop:X=>{le?.value.setScrollTop(X)},setScrollLeft:X=>{le?.value.setScrollLeft(X)},loadData:C,clearData:O,getData(){return A.value},getTotalSize(){return _.value},getPageIndex(){return m.value},getPageSize(){return h.value},getColumnSetting:K,setColumnSetting:j,removeColumnSetting:P,setCellClassName:te}),()=>{const oe={...Pe(r.attrs),onCurrentChange:Z,onRowClick:ee,onExpandChange:D,data:A.value,ref:le,class:u.value,"cell-class-name":G(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),g===!0){const _e=[];if(q.value){const Vt=o.h(Te.Loading,{class:`${s}__infinite-icon`});_e.push(Vt);const Bo=o.h("span",{class:`${s}__infinite-text`},[n.loadText]);_e.push(Bo)}else{const Vt=o.h("span",{class:`${s}__infinite-text`},[n.loadMoreText]);_e.push(Vt)}const rt={ref:W,class:`${s}__infinite`},Mo=o.h("div",rt,_e);ae.append=()=>Mo}const ue=o.h(p.ElTable,oe,ae),ye=[];if(ye.push(ue),!g){let _e=null;if(typeof r.slots.pagination=="function")_e=r.slots.pagination();else if(n.showPagination){const rt={class:c.value,total:_.value,pageSize:h.value,"onUpdate:pageSize":k,pageSizes:n.pageSizes,currentPage:m.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};_e=o.h(p.ElPagination,rt)}if(n.showSetting){const rt=[];_e&&rt.push(_e);const Mo=o.h(p.ElIcon,{class:d.value},{default:()=>o.h(Te.Setting)}),Vt=al(n,eo),Bo=o.h(nn,{...Vt,tableRef:{getColumnSetting:K,setColumnSetting:j,removeColumnSetting:P}},{default:()=>Mo});rt.push(Bo);const mh=o.h("div",{class:f.value},rt);ye.push(mh)}else _e&&ye.push(_e)}const he={default:()=>ye},Ot={...Ce(n,ar,ir,eo),prop:`${n.prop}_item`};return Ot.contentClass=`${s}__wrap`,Ot.errorMarkClass="is-table-error",I.value&&$()&&(Ot["appear-listen"]=!0,Ot.onAppear=U),o.h(l,Ot,he)}}}}const{componentName:Fu,create:Ru,scope:Au}=ie("table-item"),no=Ru(Du(Fu,Au,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Et(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Lu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Mu=class{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Bu(){const e=o.getCurrentInstance();return new Mu(e.proxy)}function sr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ct(e,t),r=ct(e,l);if(n!==r)return!1;const a=Et(e,t),i=Et(e,l);return a===i}function _u(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let i=!1;if(l==="text")i=ct(e,a)===t;else if(l==="item")i=sr(e,a,t);else{let s=Et(e,a);s==null&&(s=ct(e,a)),i=s===t}if(i){r=a;break}}return r}function qu(e){return{text:e,value:e}}function Pu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const ur={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"},lazyLoad:{type:[Boolean,String],default:!1}};function ju(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...ur},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref(null),d=o.ref(null),f=(L,B,I,E=!0)=>{const T=_u(n,L,B,I);if(T===null){if(d.value===null)return;d.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!sr(n,T,d.value)){u.value=L;const C=o.toRaw(T);d.value=C;let O=null;n.valueType==="text"?O=ct(n,C):n.valueType==="item"?O=C:O=Et(n,C),E&&(s("update:modelValue",O),s("change",O))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),N=Bu(),m=async(L,B)=>{if(L){const I=await N.load("radio",L,B);if(I.length>0)if(typeof I[0]=="string"){let H=I.map(C=>qu(C));c.value=H}else c.value=I}};o.watch([()=>n.source,()=>n.params],async([L,B])=>{m(L,B)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,B])=>{f(B,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),k=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,B)=>{const I=[];return L.forEach((E,T)=>{const H=Et(n,E),C=ct(n,E);let O=Lu(n,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=Pu(n,E,T)??{},U=`${H}_${T}`,W={...R,key:U,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?I.push(o.h(p.ElRadioButton,W,{default:()=>[C]})):typeof B=="function"?I.push(o.h(p.ElRadio,W,{default:()=>B(E)})):I.push(o.h(p.ElRadio,W,{default:()=>[C]}))}),I};return()=>{const B={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:k},I=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const T=o.h(p.ElRadioGroup,B,E);I.push(T);const H={default:()=>I};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,ur),hintText:q.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),o.h(l,O,H)}}}}const{componentName:zu,create:Hu,scope:Ku}=ie("radio-item"),oo=Hu(ju(zu,Ku,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function 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,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await r(l,n))}};function Gu(){const e=o.getCurrentInstance();return new Yu(e.proxy)}function cr(e,t,l){if(t===l)return!0;if(t===null||l===null)return!1;const n=ft(e,t),r=ft(e,l);if(n!==r)return!1;const a=dt(e,t),i=dt(e,l);return a===i}function Uu(e,t,l,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of n){let s=!1;if(l==="text")s=ft(e,i)===a;else if(l==="item")s=cr(e,i,a);else{let u=dt(e,i);u==null&&(u=ft(e,i)),s=u===a}if(s){r.push(i);break}}}),r}function Xu(e){return{text:e,value:e}}function Zu(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}const fr={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"},lazyLoad:{type:[Boolean,String],default:!1}};function Ju(e,t,l){return{inheritAttrs:!0,props:{...ve,...Ee,...fr},emits:["change","update:modelValue"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=o.ref([]),d=o.ref([]),f=(L,B,I,E=!0)=>{const T=Uu(n,L,B,I);if(T===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(T.length!==d.value.length)H=!1;else for(let C=0;C<T.length;C++){const O=T[C],R=d.value[C];if(!cr(n,O,R)){H=!1;break}}if(!H){d.value=T;let C=[],O=[];T.forEach(U=>{C.push(dt(n,U)),n.valueType==="text"?O.push(ft(n,U)):n.valueType==="item"?O.push(U):O.push(dt(n,U))}),u.value=C;const R=o.toRaw(O);E&&(s("update:modelValue",R),s("change",R))}},c=o.ref([]),b=ke(o.computed(()=>n.lazyLoad),"lazyLoad",Re.Near,L=>se(L)),N=Gu(),m=async(L,B)=>{if(L){const I=await N.load("checkbox",L,B);if(I.length>0)if(typeof I[0]=="string"){let H=I.map(C=>Xu(C));c.value=H}else c.value=I}};o.watch([()=>n.source,()=>n.params],async([L,B])=>{m(L,B)},{immediate:!b.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};o.watch([()=>c.value,()=>n.modelValue],([L,B])=>{f(B,n.valueType,L,!1)});const $=e,w=o.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),k=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),_=de(n,"hintVisible");const A=(L,B)=>{const I=[];return L.forEach((E,T)=>{const H=dt(n,E),C=ft(n,E);let O=Wu(n,E);a.value===!0&&(O=a.value),i.value===!0&&(O=i.value);const R=Zu(n,E,T)??{},U=`${H}_${T}`,W={...R,key:U,class:n.itemClass,label:H,size:n.size,border:se(n.border)};O&&(W.disabled=O),n.itemType==="button"?I.push(o.h(p.ElCheckboxButton,W,{default:()=>[C]})):typeof B=="function"?I.push(o.h(p.ElCheckbox,W,{default:()=>B(E)})):I.push(o.h(p.ElCheckbox,W,{default:()=>[C]}))}),I};return()=>{const B={...Pe(r.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:pe(n.max),min:pe(n.min),onChange:k},I=[],E={};r.slots.options?E.default=r.slots.options:E.default=()=>A(c.value,r.slots.text);const T=o.h(p.ElCheckboxGroup,B,E);I.push(T);const H={default:()=>I};r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip);const O={...Ce(n,fr),hintText:q.value,hintVisible:_.value,prop:`${n.prop??r.attrs.name}_item`};return b.value&&(O["appear-listen"]=!0,O.onAppear=g),o.h(l,O,H)}}}}const{componentName:Qu,create:ec,scope:tc}=ie("checkbox-item"),lo=ec(Ju(Qu,tc,we)),dr={modelValue:{type:[Number,String],required:!1}};function nc(e,t,l){return{props:{...ve,...Ee,...dr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>pe(h)),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),N=o.ref(!1);const m=o.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value||a.value,modelValue:u.value,onChange:c},$={},w=[],k=o.h(p.ElRate,g,$);w.push(k);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,dr),hintText:b.value,hintVisible:N.value,prop:`${n.prop}_item`};return o.h(l,A,q)}}}}const{componentName:oc,create:lc,scope:rc}=ie("rate-item"),ro=lc(nc(oc,rc,we)),hr={modelValue:{type:[Boolean,String,Number],required:!1}};function ac(e,t,l){return{props:{...ve,...Ee,...hr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),{emitEvent:s}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue"),d=e,f=o.computed(()=>({[d]:!0})),c=h=>{s("update:modelValue",h),s("change",h)};let b=de(n,"hintText"),N=de(n,"hintVisible");const m=o.ref();return xe({}),()=>{const g={...Pe(r.attrs),ref:m,class:f.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],k=o.h(p.ElSwitch,g,$);w.push(k);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,hr),hintText:b.value,hintVisible:N.value,prop:`${n.prop}_item`};return o.h(l,A,q)}}}}const{componentName:ic,create:sc,scope:uc}=ie("switch-item"),ao=sc(ac(ic,uc,we)),gr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function cc(e,t,l){return{props:{...ve,...Ee,...gr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,r){const a=Oe(o.computed(()=>n.disabled)),i=Ie(o.computed(()=>n.readonly)),s=o.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return i.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=de(n,"modelValue"),f=e,c=o.computed(()=>({[f]:!0})),b=_=>{u("update:modelValue",_),u("change",_)};let N=de(n,"hintText"),m=o.ref(!1);const h=_=>{let L=_.target.value;s.value=!0,ge(N.value)||(m.value=!0),u("focus",L,_)},g=_=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let L=_.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,_)},$=()=>{u("clear","")},w=o.ref(!1),k=_=>{w.value=_,u("visible-change",_),_||u("selected")},q=o.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...Pe(r.attrs),ref:q,class:c.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":b,onClear:$,onFocus:h,onBlur:g,onVisibleChange:k},L={};r.slots.option&&(L.default=r.slots.option);const B=[],I=o.h(p.ElTreeSelect,A,L);B.push(I);const E={default:()=>B};r.slots.default&&(E.label=r.slots.default),r.slots.fixedTip&&(E.fixedTip=r.slots.fixedTip);const H={...Ce(n,gr),hintText:N.value,hintVisible:m.value,prop:`${n.prop}_item`};return o.h(l,H,E)}}}}const{componentName:fc,create:dc,scope:hc}=ie("tree-select-item"),io=dc(cc(fc,hc,we)),gc={},mc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},yc=[o.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function pc(e,t){return o.openBlock(),o.createElementBlock("svg",mc,yc)}const bc=Me(gc,[["render",pc]]),{componentName:Dh,create:vc,scope:Fh}=ie("group-setting"),wc={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:"到底部"}},Sc=vc({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:bc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...wc},emits:["change"],setup(e,{emit:t,attrs:l,expose:n}){let r=null;const a=o.ref([]),i=rr(),s=D=>D.length>1,u=()=>{const D=[],x=[...a.value];a.value=x.map((V,v)=>(V.visible!==!1&&D.push(V.prop),{...V,sortIndex:v})),a.value.length===D.length?h.value=!0:D.length>0&&(g.value=!0),k.value=D},d=D=>{let x=null;if(typeof D=="string")x=document.querySelectorAll(`.fox-group[prop="${D}"] > div > .fox-item[prop]`);else if(D&&typeof D=="object"){const V=D.$el??D;typeof V.querySelectorAll=="function"&&(x=V.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const F=[];return x.forEach(V=>{const v=V.querySelector(".label--string");let K="";v&&(K=v.textContent??"");const j=V.getAttribute("prop")??"",M=window.getComputedStyle(V,null).getPropertyValue("display");F.push({label:K,prop:j,sortIndex:0,visible:M!=="none"})}),F},f=()=>{if(!r){const D=d(e.groupRef??e.groupProp);if(D.length===0)return!1;r=D}return!0},c=async(D=!1)=>{const x=await i.load(e.groupProp),F=V=>{if(!V||!r)return;const v=r.map(K=>({...K}));Array.isArray(x)&&x.forEach(K=>{v.some(j=>{if(j.prop===K.prop){const z=j.label;return Object.assign(j,K),j.label=z,!0}return!1})}),a.value=v.sort((K,j)=>K.sortIndex-j.sortIndex),u(),D&&N(!1)};r?F(!0):Pt(f,e.initDelay,5,50,!1,F)},b=()=>{const D=r??[];a.value=D.map(x=>({...x})),u(),N()},N=(D=!0)=>{D&&i.save(e.groupProp,a.value);const x=a.value.map(F=>({...F}));t("change",x)},m=o.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=o.ref(!1),g=o.ref(!1),$=D=>{const x=[];a.value.forEach(V=>{D&&x.push(V.prop),V.visible=D}),h.value=!1,g.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(g.value=!0),k.value=x,N()},w=()=>{b()},k=o.ref([]),q=D=>{a.value.forEach(F=>{const V=D.indexOf(F.prop)!==-1;F.visible=V}),h.value=!1,g.value=!1;const x=a.value.length;D.length===x?h.value=!0:D.length>0&&(g.value=!0),N()},_=()=>{c()};o.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=D=>D?D.dataset&&D.dataset.role==="row"?D:D.tagName.toLowerCase()!=="body"?(D=D.parentElement,L(D)):null:null,B=D=>{const x=D.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},I=D=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},E=D=>{const x=D.currentTarget;D.relatedTarget;const F=L(x);F&&(D.preventDefault(),A.currentRow&&A.currentRow!==F&&A.currentRow.classList.remove("is-dragover"),F.classList.add("is-dragover"),A.currentRow=F)},T=D=>{D.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},H=D=>{const x=D.currentTarget,F=L(x);if(!F)return;D.preventDefault();const V=Number(A.index),v=Number(F.dataset.index);if(V!==v){if(V<v){const K=a.value[V];a.value.splice(V,1),a.value.splice(v,0,K)}else{const K=a.value[V];a.value.splice(V,1),a.value.splice(v+1,0,K)}u(),N()}},C=D=>{const x=a.value[D];a.value.splice(D,1),a.value.splice(0,0,x),u(),N()},O=D=>{const x=a.value[D];a.value.splice(D,1),a.value.push(x),u(),N()};n({refresh:()=>{r=null,c(!1)}});const R=new Map;let U=null;function W(D){const x=document.createRange();return x.setStart(D,0),x.setEnd(D,D.childNodes.length),x.getBoundingClientRect().width}return{attrs:l,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:$,handleReset:w,checkedValue:k,handleCheckChange:q,onShow:_,onDragStart:B,onDragEnd:I,onDragOver:E,onDragLeave:T,onDrop:H,checkboxLabelStyle:m,toTop:C,toBottom:O,onMouseOverForOverflowText:(D,x,F)=>{const V=D.currentTarget;if(V){const v=Math.floor(V.offsetWidth);if(Math.floor(W(V))>v){let j=R.get(x);if(j){if(j===U)return;Ve.hide(j)}j=Ve.show(V,F,{type:"text",placement:"top",closeOnClick:!1}),R.set(x,j),U=j}}},onMouseLeaveForOverflowText:(D,x)=>{const F=R.get(x);F&&(Ve.hide(F),F===U&&(U=null))},onMouseOverForTip:(D,x)=>{const F=D.currentTarget;F&&(U&&Ve.hide(U),U=Ve.show(F,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:D=>{U&&(Ve.hide(U),U=null)}}}}),xc={class:"fox-group-setting"},Tc={class:"fox-group-setting__header"},$c={class:"fox-group-setting__body"},Cc={class:"fox-group-setting__body-list","data-role":"container"},Nc=["data-index","draggable"],Ec=["onMouseover","onMouseleave"],kc={class:"tools-item"};function Ic(e,t,l,n,r,a){const i=o.resolveComponent("FoxCheckbox"),s=o.resolveComponent("FoxButton"),u=o.resolveComponent("DragIcon"),d=o.resolveComponent("Download"),f=o.resolveComponent("FoxIcon"),c=o.resolveComponent("FoxCheckboxGroup"),b=o.resolveComponent("FoxPopover");return o.openBlock(),o.createBlock(b,o.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:o.withCtx(()=>[o.renderSlot(e.$slots,"default")]),default:o.withCtx(()=>[o.createElementVNode("div",xc,[o.createElementVNode("div",Tc,[o.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),o.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),o.createElementVNode("div",$c,[o.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:o.withCtx(()=>[o.createElementVNode("div",Cc,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.itemPropertyList,N=>(o.openBlock(),o.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(o.openBlock(),o.createBlock(u,{key:0,class:"icon-item"})):o.createCommentVNode("",!0),o.createVNode(i,{class:"checkbox-item",label:N.prop},{default:o.withCtx(()=>[o.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,N.prop,N.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,N.prop),class:"checkbox-item__label",style:o.normalizeStyle(e.checkboxLabelStyle)},o.toDisplayString(N.label),45,Ec)]),_:2},1032,["label"]),o.createElementVNode("div",kc,[o.createVNode(f,{onClick:m=>e.toTop(N.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"]),o.createVNode(f,{onClick:m=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:o.withCtx(()=>[o.createVNode(d)]),_:2},1032,["onClick"])])],40,Nc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const so=Me(Sc,[["render",Ic]]),Oc=["aria-labelledby"],Vc=o.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Dc=[Vc],Fc=o.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Dc,14,Oc))}}),Rc=["aria-labelledby"],Ac=o.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Lc=[Ac],uo=o.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Lc,14,Rc))}}),Mc=["aria-labelledby"],Bc=o.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),_c=[Bc],qc=o.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},_c,14,Mc))}}),Pc=["aria-labelledby"],jc=o.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),zc=[jc],Hc=o.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},zc,14,Pc))}}),Kc=["aria-labelledby"],Wc=o.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Yc=[Wc],Gc=o.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const l=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},i=o.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+l.name]:l.name,[l.class]:!!l.class}}),s=o.computed(()=>{const u={};return u.height=a(l.height)??a(l.size),u.width=a(l.width)??a(l.size),u.color=l.color,u});return(u,d)=>(o.openBlock(),o.createElementBlock("svg",{class:o.normalizeClass(i.value),style:o.normalizeStyle(s.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Yc,14,Kc))}}),Uc={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}},mr=(e,t)=>t[e.textKey],kt=(e,t)=>t[e.valueKey],Xc=(e,t)=>t[e.visibleKey],yr=(e,t)=>t[e.disabledKey],Zc=(e,t)=>{const l=t[e.doitKey];return se(l)},Jc=(e,t)=>{const l=t[e.numKey];return l==null?null:pe(t[l])},pr=(e,t,l)=>{const n=e.itemOptions;return typeof n=="function"?n(t,l):n||null};function Qc(e,t,l,n=!1){return{props:{...Uc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const s=o.computed(()=>{const D={};return D[`${e}`]=!0,D}),u=o.computed(()=>{const D={};return D[`${e}__titles`]=!0,D[`${r.direction}`]=!0,r.align==="left"&&(D.left=!0),r.scroll===!0&&(D.scrollable=!0),r.shape&&(D[`${r.shape}`]=!0),D}),d=o.computed(()=>({})),f=o.computed(()=>{if(!r.gutter)return 0;const D=fe(r.gutter);return D<=0?0:D}),c=o.ref(r.modelValue);o.watch(()=>r.modelValue,D=>{c.value!==D&&(c.value=D,W(!1))});const b=o.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=o.computed(()=>{const D={};return h.value||(D.display="none"),D}),m=o.ref(),h=o.ref(!1),g=()=>{const D=!h.value;$(D)},$=D=>{const x=D;x?(h.value=x,setTimeout(()=>{b.value["fox-tabs-bar__popup--show"]=!0,b.value["fox-tabs-bar__popup--hide"]=!1},0)):(b.value["fox-tabs-bar__popup--show"]=!1,b.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=o.ref(),k=o.ref([]),q=(D,x)=>{k.value[x]=D},_=D=>x=>{q(x,D)},A=(D,x)=>{const F=w.value,V=k.value;if(!F||!V||!V[D])return;const v=V[D];let K=0;r.direction==="vertical"?K=v.offsetTop-(F.offsetHeight-v.offsetHeight)/2:K=v.offsetLeft-(F.offsetWidth-v.offsetWidth)/2,L(F,K,x?0:.3,r.direction)},L=(D,x,F,V)=>{let v=0;const K=V==="horizontal"?D.scrollLeft:D.scrollTop,j=F===0?1:Math.round(F*1e3/16);function z(){V==="horizontal"?D.scrollLeft+=(x-K)/j:D.scrollTop+=(x-K)/j,++v<j&&bn(z)}z()},B=(D,x)=>{const F=kt(r,D),V={};return V[`${e}__titles-item`]=!0,V.disabled=yr(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0),r.ellipsis&&(V.ellipsis=!0),x&&(x.class&&(V[`${x.class}`]=!0),x.disabled===!0&&(V.disabled=x.disabled)),V},I=(D,x)=>{const F={};if(f.value>0){const V=Math.abs(f.value/2);r.direction==="vertical"?(F["margin-top"]=`${V}px`,F["margin-bottom"]=`${V}px`):(F["margin-left"]=`${V}px`,F["margin-right"]=`${V}px`)}return x&&x.style&&Object.assign(F,x.style),F},E=(D,x)=>`${kt(r,D)??x}`,T=(D,x)=>{const F=kt(r,D),V={};V[`${e}__popup-item`]=!0,V.disabled=yr(r,D),V.active=F===c.value,r.shape&&(V[`${r.shape}`]=!0);const v=pr(r,D,x);return v&&v.disabled===!0&&(V.disabled=v.disabled),V},H=o.computed(()=>(r.data??[]).filter(x=>Xc(r,x)!==!1)),C=(D,x)=>{const F=kt(r,D);if(c.value==F)return;const V=()=>{c.value=F,r.scroll&&A(x,!1),i("update:modelValue",F),i("change",D,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(D,x);Uo(v)?v.then(K=>{K!==!1&&V()}).catch(()=>{V()}):v!==!1&&V()}else V()},O=(D,x)=>function(){C(D,x)},R=(D,x)=>{C(D,x),$(!1)},U=(D,x)=>function(){R(D,x)},W=D=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(F=>kt(r,F)===c.value);x!==-1&&A(x,D)};o.watch(()=>r.data,()=>{setTimeout(W,0)}),o.onMounted(()=>{W(!0)});const J=(D,x)=>{if(a.item)return a.item({item:D,index:x});const F=pr(r,D,x),V=[];if(a.text){const z=a.text({item:D,index:x});V.push(z)}else{const z=[];if(F?.doit===!0||Zc(r,D)){const Q={class:[`${e}__titles-item-tip`,"doit"]},ne=o.h("view",Q);z.push(ne)}const M=F?.num??Jc(r,D);if(M){let Q="";const ne=pe(M);ne>=100?Q="99+":Q=`${ne}`;const S={class:[`${e}__titles-item-tip`,"num"]},G=o.h("view",S,[Q]);z.push(G)}const P={class:`${e}__titles-item-text`};z.push(mr(r,D));const Y=o.h("view",P,z);V.push(Y)}const v={class:`${e}__titles-item-line`},K=o.h("view",v);V.push(K);const j={ref:_(x),class:B(D,F),style:I(D,F),key:E(D,x),onClick:O(D,x)};return o.h("view",j,V)},Z=()=>{const D=a.default?a.default():[];if(D.length===0)for(let F=0;F<H.value.length;F++){const V=H.value[F],v=J(V,F);D.push(v)}const x={ref:w,class:u.value,style:d.value};return o.h("view",x,D)},ee=()=>{let D=null;a.navigation?D=a.navigation():D=o.h(l);const x={class:`${e}__navigation`,onClick:g};return o.h("view",x,[D])},re=()=>{const D=[];for(let F=0;F<H.value.length;F++){const V=H.value[F];let v=null;a.popupItem?v=a.popupItem({item:V,index:F}):v=mr(r,V);const K={class:T(V,F),key:E(V,F),onClick:U(V,F)},j=o.h("view",K,[v]);D.push(j)}const x={class:b.value,style:N.value};return o.h("view",x,D)};return()=>{const D=[],x=Z();if(D.push(x),r.showQuickNavigation){const V=ee();D.push(V);const v=re();D.push(v)}const F={class:s.value};return o.h("view",F,D)}}}}const{create:ef,componentName:tf,scope:nf}=ie("tabs-bar"),co=ef(Qc(tf,nf,Fc,!1)),br=Symbol("TabsStatesKey"),of={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function lf(e,t,l=!1){return{props:{...of},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const i=o.shallowRef([]),s={current:o.ref(n.modelValue??""),direction:o.ref(n.direction),tabWidth:o.ref(-1),tabHeight:o.ref(-1),add:h=>{const g={name:h};s.current.value===h&&(g.loaded=!0),i.value.push(g),o.triggerRef(i)},remove:h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&i.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=i.value.findIndex($=>$.name===h);return g!==-1?s.current.value?i.value[g].loaded??!1:g===0:!1}};o.provide(br,s);const u=h=>{const g=i.value.findIndex($=>$.name===h);g!==-1&&(i.value[g].loaded=!0,o.triggerRef(i))};o.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 d=o.ref(null),f=o.ref(null),c=o.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let b=!0;const N=o.computed(()=>{const h={},g=i.value.length;if(g<=0)return h;const $=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`,$!==-1&&(h.transform=`translate(0, -${$*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(h.width=`${g*s.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*s.tabWidth.value}px, 0)`)),b&&(b=!1,h.transition="transform 0s ease"),h});let m=null;return o.onMounted(()=>{if(!d.value)return;const h=()=>{const g=Yt(d.value);s.tabWidth.value=g.width,s.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(d.value)),h()}),o.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},g=o.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return o.h("view",$,[g])}}}}const{create:rf,componentName:af,scope:sf}=ie("tabs-container"),fo=rf(lf(af,sf,!1)),uf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function cf(e,t,l){return{props:{...uf},setup(n,{emit:r,slots:a}){const i=o.inject(br);o.onMounted(()=>{i.add(n.paneKey)}),o.onBeforeUnmount(()=>{i.remove(n.paneKey)});const s=o.computed(()=>{const d={};return i.direction.value==="vertical"&&i.tabHeight.value>0?d.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(d.width=`${i.tabWidth.value}px`),d}),u=o.computed(()=>n.loaded!=null?se(n.loaded):i.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},b=n.emptyIcon??l,N=o.h(b,c),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=o.h("view",m,[h]),$={class:`${e}__empty`},w=o.h("view",$,[N,g]);d.push(w)}const f={class:`${e}`,style:s.value};return o.h("view",f,d)}}}}const{create:ff,componentName:df,scope:hf}=ie("tabs-pane"),ho=ff(cf(df,hf,uo)),gf={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 mf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function wr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function yf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function go(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function Sr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function xr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function mo(e,t,l){return typeof e.itemOptions=="function"?e.itemOptions(t,l):e.itemOptions}class pf{proxy;constructor(t){this.proxy=t}async load(t,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const r=Be(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&o.isReactive(n)&&(n=o.toRaw(n)),await Reflect.apply(r,null,[l,n]))}}function bf(){const e=o.getCurrentInstance();return new pf(e.proxy)}function vf(e,t,l,n){return{props:{...gf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const s=e,u=bf(),d=o.ref([]),f=o.computed(()=>d.value.filter(x=>yf(r,x)!==!1)),c=o.ref(-1),b=()=>{const x=r.modelValue,F=f.value.findIndex(V=>vr(r,V)===x);c.value!==F&&(c.value=F,r.scroll&&re(F,!1))};o.watch([()=>r.modelValue,f],()=>{b()});const N=x=>c.value===x,m=x=>{if(x<0&&x>=f.value.length)return!1;const F=f.value[x],v=(mo(r,F,x)??{}).status??go(r,F);return N(x)||v},h=o.computed(()=>{const x={[s]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),g=o.computed(()=>({})),$=(x,F,V,v,K)=>{const j={[`${s}__step`]:!0};return K&&(j[`${K}`]=!0),j[`${w.value}`]=!0,v&&(j["is-doit"]=!0),x===c.value?j["is-active"]=!0:F==="done"?j["is-done"]=!0:F==="error"?j["is-error"]=!0:F==="half"?j["is-half"]=!0:V?j["is-disabled"]=!0:j["is-normal"]=!0,j},w=o.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),k=(x,F={})=>{const V={...F};return w.value==="start"&&x===f.value.length-1?V.flex="0 0 auto":r.step?r.direction==="vertical"?V.height=r.step:V.width=r.step:V.flex="1 1 100%",V},q=(x,F)=>{let V={};if(F<f.value.length-1){const v=F+1;m(F)&&m(v)?r.direction==="vertical"?V.height="100%":V.width="100%":V.opacity="0"}return V},_=x=>f.value.length-1===x,A=(x,F)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&F>c.value||c.value===F)return;const V=c.value,v=F;c.value=F,r.scroll&&re(F,!1);const K=vr(r,x);i("update:modelValue",K);const j={fromIndex:V,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",K,j)},L=o.ref(!0),B=async(x,F)=>{try{const V=await u.load("stesbar",x,F);Array.isArray(V)&&(d.value=V),L.value=!1}catch(V){console.error("[FoxUI] Load StepsBar Data Fail",V),d.value=[]}setTimeout(()=>{i("loaded-data")},250)};o.watch([()=>r.data,()=>r.params],async([x,F])=>{x&&B(x,F)},{immediate:!0});const I=(x,F,V,v,K)=>{let j=null;if(a.icon)j=a.icon({item:x,index:F,status:v});else if(v==="done"){const M={};r.iconSize&&(M.width=r.iconSize,M.height=r.iconSize);const P=r.icon??l;j=o.h(P,M)}else{const M=V??`${F+1}`;j=o.h("span",{},[M])}const z={class:"fox-steps-bar__icon",onClick:()=>{K||A(x,F)}};return o.h("view",z,[j])},E=(x,F,V)=>{const v=o.h("i",{class:"fox-steps-bar__line-inner",style:q(x,F)});return o.h("view",{class:"fox-steps-bar__line"},[v])},T=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const V={};r.iconSize&&(V.width=r.markIconSize,V.height=r.markIconSize);const v=r.markIcon??n;x=o.h(v,V)}return o.h("view",{class:"fox-steps-bar__mark"},[x])},H=(x,F,V,v,K)=>{const j=[];if(!_(F)){const P=E(x,F);j.push(P)}const z=I(x,F,V,v,K);j.push(z);const M={class:"fox-steps-bar__head"};return o.h("view",M,j)},C=(x,F,V,v)=>{let K=null;a.main?K=a.main({item:x,index:F,status:V}):K=mf(r,x);const j={class:"fox-steps-bar__main",onClick:()=>{v||A(x,F)}};return o.h("view",j,[K])},O=(x,F,V)=>{let v=null;if(a.sub){v=a.sub({item:x,index:F,status:V});const K={class:"fox-steps-bar__sub"};return o.h("view",K,[v])}return null},R=(x,F)=>{const V=mo(r,x,F)??{},v=V.status??go(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const j=V.label??xr(r,x),z=[],M=I(x,F,j,v,K);M&&z.push(M);const P=C(x,F,v,K);if(P&&z.push(P),!_(F)){const te=E(x,F);te&&z.push(te)}const Y=o.h("view",{class:"fox-steps-bar__head"},z),Q=V.class,ne=V.style??{};let S=Sr(r,x);V.doit===!0&&(S=!0);const G={ref:ee(F),class:$(F,v,K,S,Q),style:k(F,ne)};return o.h("view",G,[Y])},U=(x,F)=>{const V=mo(r,x,F)??{},v=V.status??go(r,x);let K=wr(r,x);V.disabled===!0&&(K=!0),r.disabled===!0&&(K=!0);const j=V.label??xr(r,x),z=[],M=r.layout;for(let S of M)if(S==="head"){const G=H(x,F,j,v,K);z.push(G)}else if(S==="main"){const G=C(x,F,v,K);z.push(G)}else if(S==="sub"){const G=O(x,F,v);z.push(G)}else if(S==="mark"){const G=T();z.push(G)}const P=V.class,Y=V.style??{};let Q=Sr(r,x);V.doit===!0&&(Q=!0);const ne={ref:ee(F),class:$(F,v,K,Q,P),style:k(F,Y)};return o.h("view",ne,z)},W=o.ref(),J=o.ref([]),Z=(x,F)=>{J.value[F]=x},ee=x=>F=>{Z(F,x)},re=(x,F)=>{const V=W.value,v=J.value;if(!V||!v||!v[x])return;const K=v[x];let j=0;r.direction==="vertical"?j=K.offsetTop-(V.offsetHeight-K.offsetHeight)/2:j=K.offsetLeft-(V.offsetWidth-K.offsetWidth)/2,D(V,j,F?0:.3,r.direction)},D=(x,F,V,v)=>{let K=0;const j=v==="horizontal"?x.scrollLeft:x.scrollTop,z=V===0?1:Math.round(V*1e3/16);function M(){v==="horizontal"?x.scrollLeft+=(F-j)/z:x.scrollTop+=(F-j)/z,++K<z&&bn(M)}M()};return()=>{const x=[];if(r.mode==="simple")for(let V=0;V<f.value.length;V++){const v=f.value[V],K=R(v,V);x.push(K)}else for(let V=0;V<f.value.length;V++){const v=f.value[V],K=U(v,V);x.push(K)}const F={ref:W,class:h.value,style:g.value};return o.h("view",F,x)}}}}const{componentName:wf,create:Sf,scope:xf}=ie("steps-bar"),yo=Sf(vf(wf,xf,Hc,Gc)),Tf=Symbol.for("InnerPageScopeKey"),$f=Symbol.for("PageWrapperKey");function Cf(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(l,n){o.provide(Tf,!0);const r={};o.provide($f,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=o.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:l.title,draggable:l.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":l.appendToBody,"close-on-click-modal":l.closeOnClickModal,"close-on-press-escape":l.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return o.h(p.ElDialog,d,f)}}}}const{componentName:Rh,create:Nf,scope:Ah}=ie("dialog-item"),po=Nf(Cf());let It=0;const Tr="fox-overflow-hidden",$r=()=>tt?document.body:{classList:[]},Ef=e=>[()=>{if(e())try{!It&&$r().classList.add(Tr),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&$r().classList.remove(Tr)}catch{}}],kf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:If,create:Of}=ie("overlay"),Vf=Of({props:{...kf},emits:["click","update:visible"],setup(e,{emit:t}){const[l,n]=Ef(()=>e.lockScroll),r=o.computed(()=>({[If]:!0,[e.overlayClass]:!0})),a=o.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return o.watch(()=>e.visible,s=>{s?l():n()}),{classes:r,style:a,onClick:s=>{t("click",s),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Df(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"overlay-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),onClick:t[0]||(t[0]=o.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:o.normalizeStyle(e.style)},[o.renderSlot(e.$slots,"default")],6),[[o.vShow,e.visible]])]),_:3})}const on=Me(Vf,[["render",Df]]),Ff={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:{}}},Cr=2e3;let Nr=Cr;const Rf=(e,t)=>({components:t,props:{...Ff},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const r=o.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),a=o.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),i=o.computed(()=>({zIndex:r.zIndex,transitionDuration:`${l.duration}s`,...l.style})),s=o.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),u=()=>{l.zIndex!==Cr&&(Nr=Number(l.zIndex)),n("update:visible",!0),r.zIndex=++Nr,l.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+l.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},b=h=>{n("click-overlay",h),l.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},m=h=>{n("closed",h)};return o.watch(()=>l.visible,h=>{l.visible?u():d()}),o.watch(()=>l.closeable,h=>{r.closed=h}),{...o.toRefs(r),popStyle:i,transitionName:s,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:b,onOpened:N,onClosed:m}}}),{componentName:Af,create:Lf}=ie("popup"),Mf=Lf(Rf(Af,{FoxOverLay:on,Close:qc}));function Bf(e,t,l,n,r,a){const i=o.resolveComponent("FoxOverLay"),s=o.resolveComponent("Close");return o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(o.openBlock(),o.createBlock(i,o.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):o.createCommentVNode("",!0),o.createVNode(o.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?o.renderSlot(e.$slots,"default",{key:0}):o.createCommentVNode("",!0),e.closed?(o.openBlock(),o.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:o.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[o.renderSlot(e.$slots,"close-icon",{},()=>[o.createVNode(s)])],2)):o.createCommentVNode("",!0)],6),[[o.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const bo=Me(Mf,[["render",Bf]]),{create:_f}=ie("toast"),qf=_f({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let l=null;const n=o.reactive({mounted:!1});o.onMounted(()=>{n.mounted=!0});const r=()=>{l&&(clearTimeout(l),l=null)},a=()=>{n.mounted=!1},i=()=>{r(),e.duration&&(l=setTimeout(()=>{a()},e.duration))},s=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),o.watch(()=>e.duration,N=>{N&&i()});const u=o.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=fe(e.iconSize);return o.h(e.icon,{width:N,height:N,color:e.iconColor})},f=o.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=o.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:s,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Pf={key:1,class:"fox-toast-title"},jf=["innerHTML"];function zf(e,t,l,n,r,a){return o.openBlock(),o.createBlock(o.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("view",{class:o.normalizeClass(e.toastBodyClass),style:o.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[o.createElementVNode("view",{class:"fox-toast-inner",style:o.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(o.openBlock(),o.createElementBlock("view",{key:0,class:o.normalizeClass(e.toastIconWrapperClass)},[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.renderIcon())))],2)):o.createCommentVNode("",!0),e.title?(o.openBlock(),o.createElementBlock("div",Pf,o.toDisplayString(e.title),1)):o.createCommentVNode("",!0),o.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,jf)],4)],6),[[o.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const vo=Me(qf,[["render",zf]]),Hf={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"}},Kf=(e,t,l)=>({props:{...Hf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["placeholder"]),u=o.reactive({active:!1}),d=o.computed(()=>({background:n.background})),f=o.computed(()=>({background:n.inputBackground})),c=I=>{let T=I.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),r("update:modelValue",T,I),r("change",T,I)},b=o.ref({}),N=I=>{let T=I.target.value;u.active=!0,b.value=n.focusStyle,r("focus",T,I)},m=I=>{setTimeout(()=>{u.active=!1},0);let T=I.target.value;n.maxLength&&T.length>Number(n.maxLength)&&(T=T.slice(0,Number(n.maxLength))),b.value={},r("blur",T,I)},h=I=>{r("update:modelValue","",I),r("change","",I),r("clear","")},g=o.computed(()=>String(n.modelValue).length>0),$=o.computed(()=>{const I={};return g.value||(I.display="none"),I}),w=()=>{r("search",n.modelValue)},k=I=>{r("keyup-input",I),I.key.toLocaleUpperCase()==="ENTER"&&w()},q=I=>{r("click-input",I)},_=I=>{r("click-left-icon",n.modelValue,I)},A=o.computed(()=>({textAlign:n.inputAlign})),L=o.ref(null);o.onMounted(()=>{n.autofocus&&L.value.focus()});const B=()=>{const I=[];if(a.leftin){const O={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:_},R=o.h("view",O,[a.leftin()]);I.push(R)}const E={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:s.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:N,onBlur:m,onkeyup:k},T=o.h("input",E);I.push(T);const H=[];if(n.clearable){const O={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},R=a?.clear?.()??n.clearIcon??l,U=o.h("view",O,[o.h(R)]);H.push(U)}if(a.rightin){const O={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},R=o.h("view",O,[a.rightin()]);H.push(R)}if(H.length>0){const O={class:`${e}__input-inner-right`},R=o.h("view",O,H);I.push(R)}const C={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...b.value}};return o.h("view",C,I)};return()=>{const I=[];if(n.label){const H={class:`${e}__search-label`},C=o.h("span",H,[n.label]);I.push(C)}if(a.leftout){const H={class:[`${e}__search-icon`,`${e}__left-search-icon`]},C=o.h("view",H,[a.leftout()]);I.push(C)}const E=B();if(I.push(E),a.rightout){const H={class:[`${e}__search-icon`,`${e}__right-search-icon`]},C=o.h("view",H,[a.rightout()]);I.push(C)}const T={class:`${e}`,style:d.value};return o.h("view",T,I)}}}),{componentName:Wf,create:Yf,scope:Gf}=ie("searchbar"),wo=Yf(Kf(Wf,Gf,Te.CircleClose)),Uf=/scroll|auto|overlay/i,Er=window;function Xf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Zf(e,t=Er){let l=e;for(;l&&l!==t&&Xf(l);){const{overflowY:n}=window.getComputedStyle(l);if(Uf.test(n))return l;l=l.parentNode}return t}function kr(e,t=Er){const l=o.ref();return o.onMounted(()=>{e.value&&(l.value=Zf(e.value,t))}),l}const Ir=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Jf={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 Qf(e,t,l){return{props:{...Jf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullText","loadText","loadMoreText"]),u=o.ref(),d=kr(u),f=o.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=o.computed(()=>({[e]:!0})),b=w=>w?w.offsetTop+b(w.offsetParent):0,N=()=>{let w=0,k=0,q="down";if(d.value==window){const _=Ir();u.value&&(w=b(u.value)+u.value.offsetHeight-_-window.innerHeight),k=_}else{const{scrollHeight:_,clientHeight:A,scrollTop:L}=d.value;w=_-A-L,k=L}return f.beforeScrollTop>k?q="up":q="down",f.beforeScrollTop=k,r("scroll-change",k),w<=n.threshold&&q=="down"},m=()=>{_o(()=>{if(!N()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),o.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",m,n.useCapture)},g=()=>{d.value&&d.value.removeEventListener("scroll",m,n.useCapture)};o.onMounted(()=>{h(),n.immediate&&m()}),o.onUnmounted(()=>{g()});const $=o.ref(!1);return o.onActivated(()=>{$.value&&($.value=!1,h())}),o.onDeactivated(()=>{$.value=!0,g()}),o.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},k=o.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let B=a?.loading?.()??null;if(!B){let T=a?.loadingIcon?.()??null;if(!T){const O={class:["fox-infinite__bottom-box__img"]};T=o.h(l,O)}const H={class:"fox-infinite__bottom-box__text"},C=o.h("view",H,[s.loadText.value]);B=[T,C]}const I={class:"fox-infinite__bottom-box"},E=o.h("view",I,B);q.push(E)}else if(!n.hasMore){let B=a?.finished?.()??null;if(!B){const I={class:"fox-infinite__bottom-tips"};B=o.h("view",I,[s.loadMoreText.value]),q.push(B)}}const _={class:"fox-infinite__bottom"},A=o.h("view",_,q),L={class:c.value,ref:u};return o.h("view",L,[k,A])}}}}const{componentName:ed,create:td,scope:nd}=ie("infinite-loading"),So=td(Qf(ed,nd,uo)),Or=10;function Vr(e,t){return e>t&&e>Or?"horizontal":t>e&&t>Or?"vertical":""}function xo(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function To(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const d=i.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=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=Vr(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const d=i.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=i;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:l,state:e}}function od(){const e=o.ref(0),t=o.ref(0),l=o.ref(0),n=o.ref(0),r=o.ref(0),a=o.ref(0),i=o.ref(0),s=o.ref(0),u=o.ref(0),d=o.ref(0),f=o.ref(""),c=()=>f.value==="vertical",b=()=>f.value==="horizontal",N=()=>{i.value=0,s.value=0,u.value=0,d.value=0,f.value="",l.value=0};return{move:g=>{if(g.touches){const k=g.touches[0];i.value=k.clientX-e.value,s.value=k.clientY-t.value,r.value=k.clientX,a.value=k.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),d.value=Math.abs(s.value),n.value=Date.now()-l.value,f.value||(f.value=Vr(u.value,d.value))},start:g=>{if(N(),g.touches){const k=g.touches[0];e.value=k.clientX,t.value=k.clientY}else{const w=g;e.value=w.clientX,t.value=w.clientY}l.value=Date.now()},reset:N,startX:e,startY:t,startTime:l,duration:n,moveX:r,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:b}}const ld={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}},rd=(e,t,l)=>({props:{...ld},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:i}=Fe.useFoxI18n(t),s=i(n,["pullingText","loosingText","loadingText"]),u=To(),d=o.ref(),f=kr(d),c=o.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),b=o.computed(()=>({[e]:!0})),N=o.computed(()=>{switch(c.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=o.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=o.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ne(n.headHeight)),L}),g=L=>{const B=+(n.pullDistance||n.headHeight);let I=L;return L>B&&(L<B*2?I=(L+B)/2:I=B+L/4),Math.round(I)},$=(L,B)=>{const I=+(n.pullDistance||n.headHeight);c.distance=L,B?c.status="loading":L===0?c.status="normal":L<I?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",k=()=>f.value==window?Ir()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(k()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},_=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(g(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),o.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return o.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let B=null;if(c.status==="loading"){if(B=a?.loading?.()??null,!B){const U={class:["fox-pull-refresh-container-topbox-icon"]};B=o.h(l,U)}}else c.status==="pulling"?B=a?.pulling?.()??null:c.status==="loosing"&&(B=a?.loosing?.()??null);B&&L.push(B);const I={class:["fox-pull-refresh-container-topbox-text"]},E=o.h("dive",I,[N.value]);L.push(E);const T={class:["fox-pull-refresh-container-topbox"],style:h.value},H=o.h("div",T,L),C={class:"fox-pull-refresh-container",style:m.value},O=o.h("div",C,[H,a?.default?.()]),R={ref:d,class:b.value};return xo()?Object.assign(R,{onTouchstart:q,onTouchmove:_,onTouchend:A}):Object.assign(R,{onMousedown:q,onMousemove:_,onMouseup:A}),o.h("div",R,[O])}}}),{componentName:ad,create:id,scope:sd}=ie("pull-refresh"),$o=id(rd(ad,sd,uo));function ud(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(l,{slots:n}){const r=e,a=o.computed(()=>({[r]:!0})),i=o.computed(()=>l.icon?{[`${r}__icon`]:!0,[`${r}__icon-${l.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${l.type}`]:!0}),s=o.computed(()=>l.color?l.icon?{color:l.color}:{background:l.color}:null),u=o.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${l.type}`]:!0};return l.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=o.computed(()=>l.color?{color:l.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:i.value,style:s.value};f=o.h(l.icon??"div",h)}const c={class:u.value,style:d.value},b=n.default?n.default():[],N=o.h("div",c,b),m={class:a.value};return l.textPosition==="right"?o.h("div",m,[f,N]):o.h("div",m,[N,f])}}}}const{componentName:cd,create:fd,scope:Lh}=ie("indicator"),Co=fd(ud(cd));function dd(e,t){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const r=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const hd={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 gd(e,t,l,n=!1){return{props:{...hd},emits:["click"],setup(r,a){const i=o.ref(null),s=o.computed(()=>{const k={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(k[`${e}--${r.type??"default"}`]=!0),r.size&&(k[`${e}--${r.size}`]=!0),k}),u=o.computed(()=>{const k={},q=r.textColor??r.color;return q&&(k.color=q),k}),d=(k,q)=>{let _=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(k.indexOf(A)!==-1){const B=k.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=B,q.class["is-highlight"]=!0,_=o.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(k);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,_=o.h(r.tag,q))}return _},f=k=>{a.emit("click",k)};let c="";const b=()=>{const k=i.value;if(!k)return;const q=k.clientWidth;dd(k,_=>{const A=k.innerHTML??"";ge(A)||_<q||(c?l?.show(k,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=l?.show(k,A,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&l?.hide(c)};let m=null;const h=k=>{m||(m=setTimeout(()=>{b(),m=null},r.showAfter??0))},g=k=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{N()},r.hideAfter??0)},$=()=>{const k=i.value;k&&(k.addEventListener("mouseover",h),k.addEventListener("mouseleave",g))},w=()=>{const k=i.value;k&&(k.removeEventListener("mouseover",h),k.removeEventListener("mouseleave",g))};return o.onMounted(()=>{!se(r.showOverflowTooltip)||!l||$()}),o.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!l||w()}),()=>{const k={onClick:f,class:s.value,style:u.value,ref:i};let q=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const B=a.slots.default();if(Array.isArray(B)&&B.length===1){const I=B[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const E=pe(r.digits),T=pe(r.decimalLength),H=se(r.autoPadding);let C=`${B[0].children}`,O=C.split("").reverse().join("");O=Rt(O,T,H,E,r.separator),C=O.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(C,k)),q||(k.innerHTML=C,q=o.h(r.tag,k))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const B=a.slots.default();if(Array.isArray(B)&&B.length===1){const I=B[0].type.toString();if(I==="Symbol(Text)"||I==="Symbol(v-txt)"){const E=`${B[0].children}`;q=d(E,k),q||(k.innerHTML=E,q=o.h(r.tag,k))}}}q||(q=o.h(r.tag,k,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const B={[`${e}__mark-wrap`]:!0};r.type&&(B[`${e}__mark-wrap--${r.type}`]=!0);const I={},E=r.color;E&&(I.color=E);const T={class:B,style:I};A=o.h("view",T,o.h(r.icon))}else if(a.slots.mark){const B={[`${e}__mark-wrap`]:!0};r.type&&(B[`${e}__mark-wrap--${r.type}`]=!0);const I={},E=r.color;E&&(I.color=E);const T={class:B,style:I};A=o.h("view",T,{default:a.slots.mark})}else{const B={[`${e}__mark`]:!0};r.type&&(B[`${e}__mark--${r.type??"default"}`]=!0);const I={},E=r.color;E&&(I["background-color"]=E);const T={class:B,style:I};A=o.h("view",T)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return o.h("view",L,[A,q])}}}}const{componentName:md,create:yd,scope:pd}=ie("text"),No=yd(gd(md,pd,Ve,!1)),bd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Te.ArrowUp}};function vd(e,t,l){return{props:{...bd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=o.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),i=de(n,"modelValue"),s=o.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=o.computed(()=>({[`${e}__text`]:!0})),d=o.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),f=()=>{r("update:modelValue",!i.value)};return()=>{const c=[];if(s.value){const h={class:u.value},g=o.h("span",h,[s.value]);c.push(g)}const b={class:d.value},N=l(n.icon,b);return N&&c.push(N),o.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:wd,create:Sd,scope:xd}=ie("more-button"),Eo=Sd(vd(wd,xd,(e,t)=>(e=e??Te.ArrowUp,o.h(p.ElIcon,t,{default:()=>[o.h(e)]}))));function Td(e){return e===window}const Dr=e=>{const t=o.unref(e);if(Td(t)){const l=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:$d,create:Cd,scope:Bh}=ie("tour"),Nd=Cd({components:{Close:Te.Close,ElPopover:p.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const l=$d,n=o.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=o.ref({}),a=o.computed(()=>`${l}`),i=o.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:$,height:w,left:k,top:q}=r.value,_=e.steps[n.active].offset??m,A=[k+$/2,q+w/2],L=Number(h||$),B=Number(g||w);return{width:`${L+ +_.left+_.right}px`,height:`${B+_.top+_.bottom}px`,top:`${A[1]-B/2-+_.top}px`,left:`${A[0]-L/2-+_.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,o.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Dr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&c()},N=(m,h=0)=>{m&&f(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return o.onMounted(()=>{N(e.modelValue,e.current)}),o.watch(()=>e.modelValue,m=>{N(m)}),{...o.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:b}}}),Ed={key:0,class:"fox-tour__content"},kd={key:0,class:"fox-tour__content-top"},Id={class:"fox-tour__content-inner"},Od={class:"fox-tour__content-bottom"},Vd={class:"fox-tour__content-bottom-init"},Dd={class:"fox-tour__content-bottom-operate"},Fd={key:1,class:"fox-tour__content fox-tour__content-tile"},Rd={class:"fox-tour__content-inner"};function Ad(e,t,l,n,r,a){const i=o.resolveComponent("Close"),s=o.resolveComponent("fox-button"),u=o.resolveComponent("ElPopover");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(e.classes)},[o.withDirectives(o.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[o.vShow,e.showTour]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.steps,(d,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(o.openBlock(),o.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:o.withCtx(()=>[e.showTour?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:o.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):o.createCommentVNode("",!0)]),default:o.withCtx(()=>[o.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(o.openBlock(),o.createElementBlock("div",Ed,[e.showTitleBar?(o.openBlock(),o.createElementBlock("div",kd,[o.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[o.createVNode(i,{class:"fox-tour__content-top-close"})])])):o.createCommentVNode("",!0),o.createElementVNode("div",Id,o.toDisplayString(d.content),1),o.createElementVNode("div",Od,[o.createElementVNode("div",Vd,o.toDisplayString(e.active+1)+"/"+o.toDisplayString(e.steps.length),1),o.createElementVNode("div",Dd,[o.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(o.openBlock(),o.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.prevStepText),1)]),_:1})):o.createCommentVNode("",!0)]),e.steps.length-1==e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):o.createCommentVNode("",!0),o.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(o.openBlock(),o.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(e.nextStepText),1)]),_:1})):o.createCommentVNode("",!0)])])])])):o.createCommentVNode("",!0),e.type=="tile"?(o.openBlock(),o.createElementBlock("div",Fd,[o.createElementVNode("div",Rd,o.toDisplayString(d.content),1)])):o.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):o.createCommentVNode("",!0)]))),128))],2)}const ko=Me(Nd,[["render",Ad]]),De=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,lt=e=>e==null;class Ld{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,l){this.startMove=t,this.updateMove=l,this.isTouch=xo()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const l=To(),n=(r,a,i,s)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(l.start(r),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(l.move(r),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Fr(e,t){return new Ld(e,t)}var Rr;const Io=typeof window<"u";Io&&((Rr=window?.navigator)!=null&&Rr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ht=[];const Ar=e=>{const t=e;t.key==="Escape"&&ht.forEach(l=>l(t))},Md=e=>{o.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Ar),Io&&ht.push(e)}),o.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&Io&&document.removeEventListener("keydown",Ar)})},Oo="fox-focus-trap.focus-after-trapped",Vo="fox-focus-trap.focus-after-released",Bd="fox-focus-trap.focusout-prevented",Lr={cancelable:!0,bubbles:!1},_d={cancelable:!0,bubbles:!1},Mr="foxFocusAfterTrapped",Br="foxFocusAfterReleased",qd=Symbol("foxFocusTrap"),Do=o.ref(),ln=o.ref(0),Fo=o.ref(0);let rn=0;const _r=e=>{const t=[],l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;l.nextNode();)t.push(l.currentNode);return t},Pd=(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},qr=(e,t)=>{for(const l of e)if(!Pd(l,t))return l},jd=e=>{const t=_r(e),l=qr(t,e),n=qr(t.reverse(),e);return[l,n]},zd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const l=document.activeElement;e.focus({preventScroll:!0}),Fo.value=window.performance.now(),e!==l&&zd(e)&&t&&e.select()}};function Pr(e,t){const l=[...e],n=e.indexOf(t);return n!==-1&&l.splice(n,1),l}const Hd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Pr(e,n),e.unshift(n)},remove:n=>{e=Pr(e,n),e[0]?.resume?.()}}},Kd=(e,t=!1)=>{const l=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==l)return},jr=Hd(),Wd=()=>ln.value>Fo.value,an=()=>{Do.value="pointer",ln.value=window.performance.now()},zr=()=>{Do.value="keyboard",ln.value=window.performance.now()},Yd=()=>(o.onMounted(()=>{rn===0&&(document.addEventListener("mousedown",an),document.addEventListener("touchstart",an),document.addEventListener("keydown",zr)),rn++}),o.onBeforeUnmount(()=>{rn--,rn<=0&&(document.removeEventListener("mousedown",an),document.removeEventListener("touchstart",an),document.removeEventListener("keydown",zr))}),{focusReason:Do,lastUserFocusTimestamp:ln,lastAutomatedFocusTimestamp:Fo}),sn=e=>new CustomEvent(Bd,{..._d,detail:e}),{componentName:_h,create:Gd,scope:qh}=ie("focus-trap"),Ud=Gd({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:[Mr,Br,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:l}){const n=o.ref();let r,a;const{focusReason:i}=Yd();Md(h=>{se(e.trapped)&&!s.paused&&l("release-requested",h)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||s.paused)return;const{key:g,altKey:$,ctrlKey:w,metaKey:k,currentTarget:q,shiftKey:_}=h,{loop:A}=e,L=g==="Tab"&&!$&&!w&&!k,B=document.activeElement;if(L&&B){const I=q,[E,T]=jd(I);if(E&&T){if(!_&&B===T){const C=sn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(E,!0))}else if(_&&[E,I].includes(B)){const C=sn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||(h.preventDefault(),A&&Je(T,!0))}}else if(B===I){const C=sn({focusReason:i.value});l("focusout-prevented",C),C.defaultPrevented||h.preventDefault()}}};o.provide(qd,{focusTrapRef:n,onKeydown:u}),o.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),o.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",b)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",c),g.removeEventListener("focusout",b))});const d=h=>{l(Mr,h)},f=h=>l(Br,h),c=h=>{const g=o.unref(n);if(!g)return;const $=h.target,w=h.relatedTarget,k=$&&g.contains($);se(e.trapped)||w&&g.contains(w)||(r=w),k&&l("focusin",h),!s.paused&&se(e.trapped)&&(k?a=$:Je(a,!0))},b=h=>{const g=o.unref(n);if(!(s.paused||!g))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!Tn($)&&!g.contains($)&&setTimeout(()=>{if(!s.paused&&se(e.trapped)){const w=sn({focusReason:i.value});l("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&g.contains($)||l("focusout",h)}};async function N(){await o.nextTick();const h=o.unref(n);if(h){jr.push(s);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const w=new Event(Oo,Lr);h.addEventListener(Oo,d),h.dispatchEvent(w),w.defaultPrevented||o.nextTick(()=>{let k=e.focusStartEl;Go(k)||(Je(k),document.activeElement!==k&&(k="first")),k==="first"&&Kd(_r(h),!0),(document.activeElement===g||k==="container")&&Je(h)})}}}function m(){const h=o.unref(n);if(h){h.removeEventListener(Oo,d);const g=new CustomEvent(Vo,{...Lr,detail:{focusReason:i.value}});h.addEventListener(Vo,f),h.dispatchEvent(g),!g.defaultPrevented&&(i.value=="keyboard"||!Wd())&&Je(r??document.body,!0),h.removeEventListener(Vo,d),jr.remove(s)}}return o.onMounted(()=>{se(e.trapped)&&N(),o.watch(()=>e.trapped,h=>{se(h)?N():m()})}),o.onBeforeUnmount(()=>{se(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Xd,create:Zd,scope:jh}=ie("floating-window"),Jd=Symbol.for("InnerPageScopeKey"),Qd=Symbol.for("PageWrapperKey"),eh={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}},th=Zd({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Ud},props:{...eh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const l=Xd,n=o.ref(e.modelValue),r=o.computed(()=>!e.teleport);o.watch(()=>e.modelValue,S=>{n.value=S});const a=o.computed(()=>n.value===!1?!1:!B.value),i=o.ref(e.left),s=o.ref(e.top),u=o.ref(e.right),d=o.ref(e.bottom),f=o.computed(()=>{const S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=o.computed(()=>{const S={};return lt(i.value)?S.left="auto":S.left=De(i.value),lt(s.value)?S.top="auto":S.top=De(s.value),lt(u.value)?S.right="auto":S.right=De(u.value),lt(d.value)?S.bottom="auto":S.bottom=De(d.value),lt(e.zIndex)||(S["z-index"]=De(e.zIndex)),lt(A.value)||(S.height=A.value),lt(L.value)||(S.width=L.value),S}),b=o.computed(()=>e.closeIcon??Te.Close),N=o.computed(()=>e.collapseIcon??Te.ArrowUp),m=o.computed(()=>e.collapseText??""),h=o.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),g=o.computed(()=>e.expandText??e.title??"展开"),$=o.computed(()=>({[`${l}__collapse-text`]:!0})),w=o.computed(()=>({[`${l}__collapse-icon`]:!0,"is-expand":!B.value,"is-collapse":B.value})),k=o.ref(),q=o.ref(null),_=o.ref(null),A=o.computed(()=>De(e.height)||""),L=o.computed(()=>De(e.width)||""),B=o.ref(se(e.collapse)),I=(S,G=!0)=>{B.value!==S&&(B.value=S,S?x():F(),t("update:collapse",S),S&&typeof H.onHide=="function"?H.onHide():!S&&typeof H.onShow=="function"&&H.onShow())};o.watch(()=>e.collapse,S=>{I(S)});const E=()=>{T()},T=S=>{S=S??!B.value,I(S)};o.provide(Jd,!0);const H={setCollapse:I,setFixedNavVisible:S=>{ee.value=S}};o.provide(Qd,H);const C=()=>{typeof H.beforeClose=="function"?H.beforeClose(()=>{n.value=!1}):n.value=!1},O=o.ref(null),R=o.computed(()=>!e.fixedNavTeleport),U=o.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),W=o.ref(""),J=o.computed(()=>{const S={};return W.value?S.top=W.value:e.collapseTop&&(S.top=e.collapseTop),S}),Z=o.ref(B.value),ee=o.computed({set:S=>{Z.value=S},get:()=>n.value===!1?!1:Z.value});let re=null;const D=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{O.value&&O.value.classList.add("slide-in"),ee.value=!0,re=()=>{O.value&&O.value.classList.remove("slide-in")}},F=()=>{O.value&&O.value.classList.add("slide-out"),re=()=>{O.value&&O.value.classList.remove("slide-out"),ee.value=!1}},V=()=>{i.value=null,s.value=null,u.value=null,d.value=null},v={x:0,y:0},z=Fr(S=>{if(!k.value)return;const G=k.value;if(V(),e.origin==="left-top")i.value=G.offsetLeft,s.value=G.offsetTop,v.x=i.value,v.y=s.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;i.value=G.offsetLeft,d.value=te-(G.offsetTop+G.offsetHeight),v.x=i.value,v.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(G.offsetLeft+G.offsetWidth),d.value=le-(G.offsetTop+G.offsetHeight),v.x=u.value,v.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(G.offsetLeft+G.offsetWidth),s.value=G.offsetTop,v.x=u.value,v.y=s.value}},S=>{if(!k.value)return;const G=k.value;V(),e.origin==="left-top"?(i.value=v.x+S.x,s.value=v.y+S.y,G.style.left=De(i.value),G.style.top=De(s.value)):e.origin==="left-bottom"?(i.value=v.x+S.x,d.value=v.y-S.y,G.style.left=De(i.value),G.style.bottom=De(d.value)):e.origin==="right-bottom"?(u.value=v.x-S.x,d.value=v.y-S.y,G.style.right=De(u.value),G.style.bottom=De(d.value)):(u.value=v.x-S.x,s.value=v.y+S.y,G.style.right=De(u.value),G.style.top=De(s.value))}),M={x:0,y:0},Q=Fr(S=>{O.value&&(M.x=O.value.offsetLeft,M.y=O.value.offsetTop)},S=>{if(!O.value)return;const G=M.y+S.y;W.value=`${G}px`}),ne=()=>{if(k.value){const S=k.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");_.value=S}};return o.onMounted(()=>{if(e.draggable&&k.value){const S=[];q.value&&S.push(q.value),e.footerDraggable&&(ne(),_.value&&S.push(_.value)),z.open(S)}e.collapse===!0&&I(e.collapse,!1),O.value&&Q.open(O.value)}),o.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),O.value&&Q.close()}),{classes:f,styles:c,isShow:a,closeIcon:b,onClose:C,dialogRef:k,headerRef:q,onClickToggle:E,collapseIcon:N,collapseText:m,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:g,isShowFixedNav:ee,fixedNavRef:O,fixedNavClasses:U,fixedNavStyles:J,onAnimationEnd:D,teleportDisabled:r,fixedNavTeleportDisabled:R}}}),nh={ref:"headerRef",class:"fox-floating-window__header"},oh={class:"fox-floating-window__title"},lh={class:"fox-floating-window__tools"},rh={class:"fox-floating-window__body"},ah={class:"fox-floating-window__fixednav__text"};function ih(e,t,l,n,r,a){const i=o.resolveComponent("FoxIcon"),s=o.resolveComponent("FocusTrap");return o.openBlock(),o.createElementBlock(o.Fragment,null,[(o.openBlock(),o.createBlock(o.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[o.createVNode(o.Transition,{name:"fox-floating-window-fade"},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",{ref:"dialogRef",class:o.normalizeClass(e.classes),style:o.normalizeStyle(e.styles),tabindex:"-1"},[o.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:o.withCtx(()=>[o.createElementVNode("div",nh,[o.renderSlot(e.$slots,"header",{},()=>[o.createElementVNode("span",oh,o.toDisplayString(e.title),1),o.createElementVNode("div",lh,[e.showCollapse?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createElementVNode("span",{class:o.normalizeClass(e.collapseTextClasses)},o.toDisplayString(e.collapseText),3),o.createVNode(i,{class:o.normalizeClass(e.collapseIconClasses)},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):o.createCommentVNode("",!0),e.showClose?(o.openBlock(),o.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):o.createCommentVNode("",!0)])])],512),o.createElementVNode("div",rh,[o.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[o.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(o.openBlock(),o.createBlock(o.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[o.withDirectives(o.createElementVNode("div",{ref:"fixedNavRef",class:o.normalizeClass(e.fixedNavClasses),style:o.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[o.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[o.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.expandIcon)))]),_:1}),o.createElementVNode("div",ah,o.toDisplayString(e.expandText),1)])],38),[[o.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ro=Me(th,[["render",ih]]);function sh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return gl(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:zh,create:uh,scope:Hh}=ie("domain-provider"),Ao=uh(sh()),ch={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 fh(e,t){return{inheritAttrs:!1,props:ch,setup(l,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(b,N)=>{if(f===null){a.set(b,{visible:null,callback:N});return}r.has(b)&&f.unobserve(b),r.set(b,{visible:null,callback:N}),f.observe(b)},s=b=>{if(f===null){a.delete(b);return}r.has(b)&&(r.delete(b),f.unobserve(b))};let u=l.initialVisibleObserverSize;Za({acquire:()=>{const b=u>0;return u--,b},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:i,unobserve:s});let f=null;const c=(b,N,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let $=!1;g.intersectionRatio>0&&($=!0);const w=r.get(g.target);if(w)try{if(l.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(k){console.error(k)}}},{root:b,rootMargin:N,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};o.watch([()=>l.root,()=>l.disabled],([b,N])=>{if(N||!b||f)return;let m=null;typeof b=="string"?m=document.querySelector(b):m=b,m&&c(m,l.rootMargin,l.threshold)},{immediate:!0}),o.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Kh,create:dh,scope:Wh}=ie("rolling-provider"),Lo=dh(fh()),hh=[On,Dn,Fn,Rn,Mn,we,qn,Pn,$t,jn,zn,Hn,Kn,Wn,Yn,Gn,Xn,Zn,Jn,Qn,nn,no,oo,lo,ro,ao,io,so,co,fo,ho,yo,po,on,bo,vo,wo,So,$o,Nt,en,Co,No,Eo,ko,Ro,Ao,Lo],gh=new ka(hh,[Va],"4.0.0");Object.defineProperty(y,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(y,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(y,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(y,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(y,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(y,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(y,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(y,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(y,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(y,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(y,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(y,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(y,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(y,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(y,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(y,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(y,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(y,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(y,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(y,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(y,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(y,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(y,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(y,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(y,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(y,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(y,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(y,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(y,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(y,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(y,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(y,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(y,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(y,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(y,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(y,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(y,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(y,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(y,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(y,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(y,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(y,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(y,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(y,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(y,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(y,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(y,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(y,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(y,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(y,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(y,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(y,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(y,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(y,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(y,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(y,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(y,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(y,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(y,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(y,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(y,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(y,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(y,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(y,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(y,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(y,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(y,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(y,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(y,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(y,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(y,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(y,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(y,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(y,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(y,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(y,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(y,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(y,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(y,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(y,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(y,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(y,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(y,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(y,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(y,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(y,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(y,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(y,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(y,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(y,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(y,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(y,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(y,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(y,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),y.AutocompleteItem=Zn,y.Broadcast=$n,y.BroadcastKey=be,y.CascaderItem=Xn,y.CheckboxItem=lo,y.Content=Rn,y.DataItemsKey=at,y.DateItem=Hn,y.DateUtils=Ae,y.DialogItem=po,y.Domain=jt,y.DomainKey=Le,y.DomainProvider=Ao,y.FloatingWindow=Ro,y.FooterBar=Fn,y.FoxAutocompleteItem=Zn,y.FoxCascaderItem=Xn,y.FoxCheckboxItem=lo,y.FoxContent=Rn,y.FoxDateItem=Hn,y.FoxDialogItem=po,y.FoxDomainProvider=Ao,y.FoxFloatingWindow=Ro,y.FoxFooterBar=Fn,y.FoxGroup=Mn,y.FoxGroupSetting=so,y.FoxHeaderBar=Dn,y.FoxHintText=$t,y.FoxIndicator=Co,y.FoxInfiniteLoading=So,y.FoxInputItem=jn,y.FoxInputNumberItem=Gn,y.FoxItem=we,y.FoxMapping=Nt,y.FoxMoneyItem=Yn,y.FoxMoreButton=Eo,y.FoxOverLay=on,y.FoxPage=On,y.FoxPopup=bo,y.FoxPrice=en,y.FoxPullRefresh=$o,y.FoxRadioItem=oo,y.FoxRateItem=ro,y.FoxRollingProvider=Lo,y.FoxRowItem=Pn,y.FoxSearchBar=wo,y.FoxSelectItem=zn,y.FoxSlotItem=qn,y.FoxStepsBar=yo,y.FoxSwitchItem=ao,y.FoxTableItem=no,y.FoxTableMappingColumn=Jn,y.FoxTableRadioColumn=Qn,y.FoxTableSetting=nn,y.FoxTabsBar=co,y.FoxTabsContainer=fo,y.FoxTabsPane=ho,y.FoxText=No,y.FoxTimeItem=Kn,y.FoxTimeSelectItem=Wn,y.FoxToast=vo,y.FoxTour=ko,y.FoxTreeSelectItem=io,y.Group=Mn,y.GroupSetting=so,y.HeaderBar=Dn,y.HintText=$t,y.Indicator=Co,y.InfiniteLoading=So,y.InputItem=jn,y.InputNumberItem=Gn,y.Item=we,y.Mapping=Nt,y.MoneyItem=Yn,y.MoreButton=Eo,y.OverLay=on,y.Page=On,y.Popup=bo,y.Price=en,y.PriorityPolicy=Re,y.PullRefresh=$o,y.RadioItem=oo,y.RateItem=ro,y.RollingProvider=Lo,y.RowItem=Pn,y.SearchBar=wo,y.SelectItem=zn,y.SlotItem=qn,y.StepsBar=yo,y.SwitchItem=ao,y.TableItem=no,y.TableMappingColumn=Jn,y.TableRadioColumn=Qn,y.TableSetting=nn,y.TabsBar=co,y.TabsContainer=fo,y.TabsPane=ho,y.Text=No,y.TimeItem=Kn,y.TimeSelectItem=Wn,y.Toast=vo,y.Tour=ko,y.TreeSelectItem=io,y.UniqueID=Il,y.ValidateSchema=fl,y.ValidateSchemaKey=Ke,y.cancelRaf=Wr,y.clearNonNumber=la,y.clone=Sn,y.compareTo=pn,y.createBroadcast=Bt,y.createValidateSchema=qt,y.debounce=St,y.debounceRef=ba,y.decimalLength=ll,y.default=gh,y.defineBroadcast=sa,y.defineConfigDomain=gl,y.defineDataItem=yl,y.defineDomain=Nn,y.defineItem=Se,y.definePageState=pl,y.deleteGlobalValidator=ha,y.disabledProperty=Oe,y.divide=yn,y.excludeProps=Ce,y.extend=et,y.floatData=ia,y.getGlobalValidateCheckEvents=sl,y.getGlobalValidateResetEvents=cl,y.getPageContentAreaHeight=Ht,y.getPageContentAreaWidth=Kt,y.getPageFooterAreaHeight=Tt,y.getPageHeaderAreaHeight=xt,y.getRootDomain=it,y.hasSymbol=Zo,y.includeProps=al,y.indexOf=ra,y.installRules=ml,y.integerLength=ol,y.isArray=Gr,y.isArrayLike=Qo,y.isBrowser=tt,y.isDate=Zr,y.isESModule=Qr,y.isEmptyString=ge,y.isEqual=He,y.isFunction=vn,y.isHidden=Mt,y.isInnerPage=Sa,y.isMap=Ur,y.isNil=Tn,y.isNumberString=nl,y.isObject=ze,y.isPlainObject=wn,y.isPromise=Uo,y.isRegExp=tl,y.isSet=Xr,y.isString=Go,y.isSubPage=xa,y.isSymbol=Jr,y.isTouch=xo,y.isWindow=Jo,y.lastIndexOf=aa,y.makeArray=oa,y.merge=el,y.multiply=Ko,y.negate=Wo,y.nextTick=ta,y.numberFormat=Rt,y.objectToString=Xo,y.once=va,y.overrideGlobalValidateHandler=fa,y.property=ke,y.raf=bn,y.readonlyProperty=Ie,y.setGlobalValidateCheckEvents=ga,y.setGlobalValidateHandler=ca,y.setGlobalValidateMessages=ya,y.setGlobalValidateResetEvents=ma,y.setGlobalValidator=da,y.throttle=hl,y.toBoolean=se,y.toNumber=pe,y.toPadding=qe,y.toPx=fe,y.toPxDesc=Ne,y.toTypeString=At,y.toValue=de,y.tryTimes=Pt,y.typeOf=Lt,y.unNumberFormat=Yo,y.updatePageState=En,y.useBroadcast=bt,y.useDomain=We,y.useExpose=xe,y.useInnerSize=Vn,y.usePageState=zt,y.usePosition=Nl,y.useRawTouch=To,y.useRect=Dr,y.useSize=Yt,y.useTouch=od,y.valueLength=pt,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|