@fox-js/foxui-pc 4.0.1-98 → 4.1.0
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 +8396 -5590
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +151 -24
- package/package.json +4 -3
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/const
|
|
1
|
+
(function(p,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("@fox-js/validator"),require("element-plus"),require("@element-plus/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","element-plus","@element-plus/icons-vue","@fox-js/i18n"],l):(p=typeof globalThis<"u"?globalThis:p||self,l(p.FoxUI={},p.Vue,p.FoxValidator,p.ElementPlus,p.ElementPlusIconsVue,p.FoxI18n))})(this,function(p,l,Qe,y,Te,Re){"use strict";/*!
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Wed Jun 26 2024 22:10:18 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const Ft=window,Kr=typeof window<"u";function Wr(){return typeof Ft<"u"?Ft.requestAnimationFrame||Ft.webkitRequestAnimationFrame||function(e){Ft.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Yr(e){Kr?cancelAnimationFrame(e):clearTimeout(e)}const Bl=Wr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function xt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=we(e),t=we(t),[e,t]=Zt(we(e),we(t)),o==1&&(n==1?e=Xt(e):t=Xt(t));let a=hr(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Xt(a)):we(a)}function Xt(e){let t="",o=e.length,n=e.split(".")[1],a=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let l=a>0?"0."+new Array(a).join("0")+"1":"1";return hr(t,l)}function we(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 Zt(e,t){let o=e.split("."),n=t.split("."),a=o[0].length,l=n[0].length;return a>l?n[0]=new Array(Math.abs(a-l)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(a-l)+1).join("0")+(o[0]?o[0]:""),a=o[1]?o[1].length:0,l=n[1]?n[1].length:0,(a||l)&&(a>l?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-l)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-l)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function hr(e,t){[e,t]=Zt(e,t);let o="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){o="."+o;continue}let l=parseInt(e[a])+parseInt(t[a])+n;o=l%10+o,n=Math.floor(l/10)}return n?n.toString()+o:o}var fe=(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))(fe||{});function ct(e,t=0,o=fe.HALF_EVEN){if(o===fe.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 a=e.split("."),l=a[0],i=a[1];if(t<0){if(t=-t,l.length<=t)return"0";{let u=l.substr(0,l.length-t);return e=u+"."+l.substr(l.length-t)+i,u=ct(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,gr(a[1],l,n,o)?(n?"-":"")+Jt(l):(n?"-":"")+l;if(a[1]){if(a[1].length<t)return(n?"-":"")+l+"."+a[1]+new Array(t-a[1].length+1).join("0")}else return(n?"-":"")+l+"."+new Array(t+1).join("0");i=a[1].substring(0,t);let s=a[1].substring(t);return s&&gr(s,i,n,o)&&(i=Jt(i),i.length>t)?(n?"-":"")+Jt(l,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+l+"."+i}function gr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===fe.DOWN||!o&&n===fe.FLOOR||o&&n===fe.CEILING)return!1;if(n===fe.UP||o&&n===fe.FLOOR||!o&&n===fe.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Jt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let a=o;a>=0;a--){let l=parseInt(e[a])+t;l==10?(t=1,l=0):t=0,n+=l}return t&&(n+=t),n.split("").reverse().join("")}function Qt(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=ft(e),t=ft(t);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(a=t.length-t.indexOf(".")-1);let l=n+a;if(e=ft(e.replace(".","")),t=ft(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let x=t.length-1;x>=f&&x>=0;x--)u[x]>-1&&u[x]<e.length&&(b+=parseInt(e[u[x]--])*parseInt(t[x]));b+=s,s=Math.floor(b/10),c=b%10+c,f--}return c=ft(sa(c,l)),o==1&&(c="-"+c),c}function sa(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 ft(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 en(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=we(t.replace(".","")),a>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=we(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=we(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let c=e.length-f+a;e=we(e.substring(0,c)+"."+e.substring(c))}else a==f&&(e=we(e.replace(".","")))}let l=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),l=f,s="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=xt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(s+="."),l++,u=u+"0")}return(n==1?"-":"")+we(ct(s,o-2))}function tn(e,t){return e=e.toString(),t=t.toString(),t=nn(t),xt(e,t)}function nn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),pr(e),pr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=tn(e,Qt(t,ct(en(e,t),0,fe.FLOOR)));return o+n}function pr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function yr(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Zt(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ae{value;static RoundingModes=fe;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=we(o);let a="";o[0]=="-"&&(a="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=a+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=a+we(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=a+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ae.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ae.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var i="",s=l;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<l-o&&s>=0?n:"")+i;return(a?"-":"")+i+t.substring(l)}getPrettyValue(t,o){return ae.getPrettyValue(this.value,t,o)}static round(t,o=0,n=fe.HALF_EVEN){if(t=ae.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ct(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ae(ct(this.value,t,o))}static floor(t){return t=ae.validate(t),t.indexOf(".")===-1?t:ae.round(t,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.FLOOR)}static ceil(t){return t=ae.validate(t),t.indexOf(".")===-1?t:ae.round(t,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,fe.CEILING)}static add(t,o){return t=ae.validate(t),o=ae.validate(o),xt(t,o)}add(t){return new ae(xt(this.value,t.getValue()))}static subtract(t,o){return t=ae.validate(t),o=ae.validate(o),tn(t,o)}subtract(t){return new ae(tn(this.value,t.getValue()))}static multiply(t,o){return t=ae.validate(t),o=ae.validate(o),Qt(t,o)}multiply(t){return new ae(Qt(this.value,t.getValue()))}static divide(t,o,n){return t=ae.validate(t),o=ae.validate(o),en(t,o,n)}divide(t,o){return new ae(en(this.value,t.getValue(),o))}static modulus(t,o){return t=ae.validate(t),o=ae.validate(o),mr(t,o)}modulus(t){return new ae(mr(this.value,t.getValue()))}static compareTo(t,o){return t=ae.validate(t),o=ae.validate(o),yr(t,o)}compareTo(t){return yr(this.value,t.getValue())}static negate(t){return t=ae.validate(t),nn(t)}negate(){return new ae(nn(this.value))}}function br(e,t){return ae.multiply(`${e}`,`${t}`)}function rn(e,t,o=8){return ae.divide(`${e}`,`${t}`,o)}function on(e,t){return e=`${e}`,t=`${t}`,ae.compareTo(e,t)}function wr(e){return ae.negate(e)}function Ct(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let i=l.charAt(0);i=="-"?l=l.substring(1):i="";let s=l,u="",f=l.indexOf(".");f!=-1&&(s=l.substring(0,f),u=l.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",b=s.split("").reverse();for(let x=0;x<b.length;x++)d+=b[x]+((x+1)%n==0&&x+1!=b.length?a:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function vr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ua=ia,ca=Array.isArray,fa=e=>Et(e)==="[object Map]",da=e=>Et(e)==="[object Set]",ha=e=>e instanceof Date,an=e=>typeof e=="function",Sr=e=>typeof e=="string",ga=e=>typeof e=="symbol",ze=e=>e!==null&&typeof e=="object",ma=e=>ze(e)&&an(e.then)&&an(e.catch),Tr=Object.prototype.toString,Et=e=>Tr.call(e),ln=e=>Et(e)==="[object Object]",$r=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function pa(e){return e.__esModule||$r&&e[Symbol.toStringTag]==="Module"}const ya=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ue(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,a=!1;for(typeof t=="boolean"&&(a=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let l=e[o];for(let i in l){let s=t[i],u=l[i];if(s!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=Ue(a,f,u)}else u!==void 0&&(t[i]=u)}}return t}function sn(e,t,o=!1){if(!o)Ue(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ln(i))continue;l=sn(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],i=t[a];if(l!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!ln(i))continue;l=sn(l,i,o),e[a]=l}else{if(typeof i=="function")continue;e[a]=i}}}return e}const un=ya?Promise.resolve():null;function ba(e,...t){un!==null?t&&t.length>0?un.then(()=>{e(t)}):un.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ve(e){return typeof e=="number"?e:Number(e)}const wa={"[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 Nt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):wa[o]||"object"}function xr(e){return e&&typeof e=="object"&&"setInterval"in e}function Cr(e){return!e||e.offsetParent===null}function Er(e){let t=!!e&&"length"in e&&e.length,o=Nt(e);return o==="function"||xr(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Nr(e,t){let o=+t.length,n=0,a=e.length;for(;n<o;n++)e[a++]=t[n];return e.length=a,e}function va(e,t=[]){let o=t;return e!=null&&(Er(Object(e))?Nr(o,typeof e=="string"?[e]:e):o.push(e)),o}function Me(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Nt(e),n=Nt(t);if(o!==n)return!1;if(o==="object"){let a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let i=0;i<a.length;i++){let s=a[i],u=e[s],f=t[s];if(!Me(u,f))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++){let l=e[a],i=t[a];if(!Me(l,i))return!1}return!0}return!1}const et=typeof window<"u";function cn(e){return e==null}function kr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Vr(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ir(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function Or(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Rr(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function Sa(e,t=!0,o=!0){t?e=Rr(e,".",/\./g):e=e.replace(/\./g,""),o?e=Rr(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ta(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Me(e,o))return!0}):t.indexOf(e)}function $a(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Me(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function dt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Dr(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function Se(e,...t){const o=[];t.forEach(a=>{Reflect.apply([].push,o,Reflect.ownKeys(a))});const n={};for(const a in e)o.includes(a)||(n[a]=e[a]);return n}const xa=(e,t,o)=>{const n=Object.assign({},e),a=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(l=>{a.hasOwnProperty(l)?typeof a[l]=="string"&&(n[l]=t[a[l]]):t[l]&&(n[l]=t[l])}),n):e},he=Symbol.for("BroadcastKey");class fn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let a=!1;!t.name||t.name==="*"?a=!0:!t.name||t.name==="+"?(a=!1,t.name="*"):kr(t.name)&&this.name&&t.name.test(this.name)?a=!0:typeof t.name=="function"?a=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(a=!0);const l=[];if(a){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&l.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&l.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const i=Reflect.apply(l.emit,l,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}on(t,o){this.callbacks.set(t,o)}}function kt(e,t,o,n){const a=new fn(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function Ca(e,t,o){const n=o;if(n[he])return n[he];const a=r.inject(he,null),l=new fn(a,o,e);if(t&&typeof t=="object")for(const i in t)l.on(i,t[i]);return n[he]=l,r.provide(he,l),r.onUnmounted(()=>{l.destroy(),n[he]=void 0}),l}function ht(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Xe=e=>e.default??e;class Ea{error(t,o){const n=o,a=ht(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const a=n,l=ht(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):i&&!s&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Fr=new Ea;function Na(e){Fr=e}function ka(e,t){Xe(Ge).setValidator(e,t)}function Va(e){Xe(Ge).deleteValidator(e)}let Ar=["blur","clear"];function Ia(e){Ar=e}function Br(){return Ar}let Lr=["focus","change"];function Oa(e){Lr=e}function qr(){return Lr}function Ra(e){Xe(Ge).messages(e)}function gt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const a=t.findIndex(l=>l.type===n.type);a!==-1&&t.splice(a,1),t.push(n)})}),t}function Vt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const _e=Symbol("ValidateSchemaKey");class Mr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=r.effectScope(),this.scope.run(()=>{r.watchEffect(()=>{const o=Vt(gt(this.attrRules,this.rules)),n=[];for(let l in t){let i=t[l];if(this.hasValidator(l,!0)){if(i===!1)continue;let u={type:l};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(l);if(s!==null){let u={type:l,validator:s};n.push(u)}}this.attrRules=Vt(n);const a=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(a,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const a=Fr;return a&&typeof a[t]=="function"?Reflect.apply(a[t],a,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?Xe(Ge).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?Xe(Ge).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Xe(Ge).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=gt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Vt(t):this.rules=Vt([t]);const n=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=gt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),i={[`${n}`]:l},s=Xe(Ge),u=new s(a),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let b="error";Array.isArray(d.errors)&&d.errors.length>0&&(b=d.errors[0].message??b,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(b)}return d}).catch(d=>{const b=d.message??`${d}`;return this.error(b),d})}}return Promise.resolve({pass:!0})}}function It(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const a=o.valueName;o.validateHandler={getValue(l){return l[a]}}}return new Mr(t,o,e)}const _r=Symbol.for("EventEmitterKey");class Da{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let a=n.findIndex(l=>l===o);a!==-1&&n.splice(a,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(a=>{try{Reflect.apply(a,null,[t,...o])}catch(l){console.error(l.message,l)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function mt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Pr(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Fa(e,t){const o=mt((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Aa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function dn(e,t,o,n=0,a=!0){let l=t,i=0;if(a){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(l+=n,setTimeout(s,l))};setTimeout(s,l)}const Ie=Symbol("DomainKey"),tt=Symbol("DataItemsKey");class Ot{_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=r.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const a=t[n];o.length>0&&o.indexOf(a)!==-1||(this._props[n]=a)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const a=n._props[t];o.push(a)}n=n._parent}return o}}const Ba=new Ot;function nt(){return Ba}function Pe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ie]??r.inject(Ie,null):r.inject(Ie,null)}const hn=Symbol("OriginalDateKey");function gn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let i=r.inject(Ie,null);i===null&&(i=nt());const s=e||t.prop||t.name,u=new Ot(s);u.parent=i;const f=g=>{l[hn]||b(g),u.set("modelValue",g)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[hn]??null,b=g=>{const w={};Ue(!0,w,r.toRaw(g)),l[hn]=w};r.isReactive(t)||typeof t=="function"?r.watch(t,g=>{u.merge(g,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&b(t.modelValue),l[Ie]=u,r.provide(Ie,u);let x=null,m=null;if(a!==null){const g=r.inject(he,null);x=kt(l,g,s,n),u.broadcast=x,l[he]=x,r.provide(he,x),l.broadcast=(v,T,...I)=>Reflect.apply(x.emit,x,[v,T,...I]);const w=r.inject(_e,null);m=It(l,w,{componentName:""}),u.validateSchema=m,l[_e]=m,r.provide(_e,m),l[tt]=new Map,l.validate=(v=!0)=>{const T=[];let I=null;const A={deep:!1};if(v===!0)I={name:"*"};else if(Array.isArray(v)&&v.length>0){const k=v;I={name:D=>D?k.indexOf(D)!==-1:!1}}else if(v!=null&&typeof v=="object"){const k=v;if(A.ignoreHidden=k.ignoreHidden,Array.isArray(k.include)&&k.include.length>0){const D=k.include;I={name:V=>V?D.indexOf(V)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const D=k.exclude;I={name:V=>V?D.indexOf(V)===-1:!1}}else I={name:"*"}}if(I){const k=x?.emitToChildren(I,"validate",A);k&&Reflect.apply([].push,T,k)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(k=>{let D=[];return k.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(D=[...D,...V.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(v,T=!0,I=!1)=>{if(I===!0){Reflect.ownKeys(v).forEach(k=>{let D=String(k);const F=zr(u,D,{componentName:"",fieldName:D,pureDataValidate:!0},x,m);l[tt].set(D,F);const R=v[D];R&&F.validateSchema.setRule(R)});return}if(T){const A=Reflect.ownKeys(v),k={name:D=>A.includes(D)};x?.emitToChildren(k,"setNameValidateRules",v,!1)}},l.clearValidate=(v=!0)=>{let T=null;if(v===!0)T={name:"*"};else if(Array.isArray(v)&&v.length>0){const I=v;T={name:A=>A?I.indexOf(A)!==-1:!1}}else if(v!=null&&typeof v=="object"){const I=v;if(Array.isArray(I.include)&&I.include.length>0){const A=I.include;T={name:k=>k?A.indexOf(k)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const A=I.exclude;T={name:k=>k?A.indexOf(k)===-1:!1}}else T={name:"*"}}T&&x?.emitToChildren(T,"clearValidate",!1)},l.resetFields=v=>{const T=c();if(!T)return;const I={};if(Ue(!0,I,d()??{}),Array.isArray(v))v.forEach(A=>{T[A]=I[A]});else if(v&&Array.isArray(v.include))(v.include??[]).forEach(k=>{T[k]=I[k]});else if(v&&Array.isArray(v.exclude)){let A=v.exclude??[];Reflect.ownKeys(I).forEach(k=>{A.includes(k)||(T[k]=I[k])})}else Object.assign(T,I);l.clearValidate(v)},l.setModelValue=(v,T)=>{!T||T===s?f(v):x?.emitToChildren({name:T},"setModelValue",v)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Ie]=void 0,l[tt]&&(l[tt].clear(),l[tt]=void 0),x!==null&&(x.destroy(),l[he]=void 0),m!==null&&(m.destroy(),l[_e]=void 0)}),u}function jr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Ie,null);l===null&&(l=nt());const i=e||t.prop||t.name,s=new Ot(i);return s.parent=l,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),a[Ie]=s,r.provide(Ie,s),r.onUnmounted(()=>{s.destroy(),a[Ie]=void 0}),s}function Hr(e,t,o){const a=Pe(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",i=r.inject(he,null),s=kt(a,i,l,o);a[he]=s,r.provide(he,s),a.broadcast=(m,g,...w)=>Reflect.apply(s.emit,s,[m,g,...w]);const u=r.inject(_e,null);e.fieldName=e.fieldName??l;const f=It(a,u,e);a[_e]=f,r.provide(_e,f),Hr(a,f,l),a.validate=(m=null)=>{const g=[];let w=!1,v=!1;if(Array.isArray(m)&&m.indexOf(l)!==-1)v=!0,w=!0;else if(m&&typeof m=="object"){const T=m;T.ignoreHidden===!0&&Cr(a.$el)?v=!1:(Array.isArray(T.include)&&T.include.indexOf(l)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(l),v=!0),w=T.deep??!1}else typeof m=="boolean"&&(w=m),v=!0;if(v){const T=f?.validate();g.push(T)}if(w){let T=null;const I={deep:!1};if(m===!0)T={name:"*"};else if(Array.isArray(m)&&m.length>0){const A=m;T={name:k=>k?A.indexOf(k)!==-1:!1}}else if(m!=null&&typeof m=="object"){const A=m;if(I.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const k=A.include;T={name:D=>D?k.indexOf(D)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const k=A.exclude;T={name:D=>D?k.indexOf(D)===-1:!1}}else T={name:"*"}}if(T){const A=s.emitToChildren(T,"validate",I);Reflect.apply([].push,g,A)}}return g.length==1?g[0]:g.length>1?Promise.all(g).then(T=>{let I=[];return T.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(I=[...I,...A.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=m=>f?.setRule(m),a.setNameValidateRules=(m,g=!1)=>{const w=m[l];if(w&&f?.setRule(w),g){const v={name:T=>Reflect.ownKeys(m).includes(T)};s.emitToChildren(v,"setNameValidateRules",m,!1)}},a.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&f?.clear();let g=null;if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const w=m;g={name:v=>v?w.indexOf(v)!==-1:!1}}else if(m!=null&&typeof m=="object"){const w=m;if(Array.isArray(w.include)&&w.include.length>0){const v=w.include;g={name:T=>T?v.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const v=w.exclude;g={name:T=>T?v.indexOf(T)===-1:!1}}else g={name:"*"}}g&&s.emitToChildren(g,"clearValidate",!1)};const c=new Da(a);a[_r]=c;const d=mt((m="validate")=>{m==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Br()).forEach(m=>{c.on(m,g=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:qr()).forEach(m=>{c.on(m,g=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),a[he]=void 0,f.destroy(),a[_e]=void 0,c.destroy(),a[_r]=void 0}),{broadcast:s,validateSchema:f,emitEvent:(m,...g)=>{Reflect.apply(c.emit,c,[m,...g])},onEvent:(m,g)=>{Reflect.apply(c.on,c,[g])},offEvent:(m,g)=>{Reflect.apply(c.off,c,[g])}}}function zr(e,t,o,n,a){const l={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};const u=It({},a,o);l.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let b=!1,x=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)x=!0,b=!0;else if(c&&typeof c=="object"){const m=c;Array.isArray(m.include)&&m.include.indexOf(i)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(i),x=!0,b=m.deep??!1}else typeof c=="boolean"&&(b=c),x=!0;if(x){const m=u?.validate();d.push(m)}if(b){let m=null;const g={deep:!1};if(c===!0)m={name:"*"};else if(Array.isArray(c)&&c.length>0){const w=c;m={name:v=>v?w.indexOf(v)!==-1:!1}}else if(c!=null&&typeof c=="object"){const w=c;if(Array.isArray(w.include)&&w.include.length>0){const v=w.include;m={name:T=>T?v.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const v=w.exclude;m={name:T=>T?v.indexOf(T)===-1:!1}}else m={name:"*"}}if(m){const w=f.emitToChildren(m,"validate",g);Reflect.apply([].push,d,w)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(m=>{let g=[];return m.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(g=[...g,...w.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=c=>u?.setRule(c),l.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};const f=kt(null,n,i,l);return{broadcast:f,validateSchema:u}}const ye=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ue(e,t)}px`:"";function ue(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let a=Number(e.substring(0,o)),l=1;if(et){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(l=Number(i.substring(0,s)))}return a*=l,a}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ke="PageStateKey";function Fe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ue(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ue(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ue(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ue(e.right))),t}function mn(e,t,o={},n=!0,a=-1,l=-1,i=0,s=0){if(e.headerHeight=ue(o.headerHeight??t.headerHeight),e.headerPadding=Fe(o.headerPadding??t.headerPadding),e.footerHeight=ue(o.footerHeight??t.footerHeight),e.footerPadding=Fe(o.footerPadding??t.footerPadding),e.contentPadding=Fe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ue(u,l):e.height=ue(l)-ue(i,l)-ue(s,l),e.width=ue(o.width??t.width??0,a)}}function Kr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});a&&(n.safeAreaTop=ue(a.top),n.safeAreaBottom=ue(a.bottom),n.safeAreaLeft=ue(a.left),n.safeAreaRight=ue(a.right));const l=e.get("pageLayout");if(!l)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;mn(n,l,t,!0,i,s,u,f);const c=r.reactive(n),d=e.getForParent(Ke);d&&(n.height=Dt(e,d),n.width=Ft(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Dt(e,d),c.width=Ft(e,d)}));const b=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([x,m,g=-1,w=-1,v=0,T=0])=>{mn(c,m,t,b,g,w,v,T)}),e.set(Ke,c),c}function Rt(e){return e.get(Ke)}function pt(e,t){if(t=t??e.get(Ke),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function yt(e,t){if(t=t??e.get(Ke),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Dt(e,t){if(t=t??e.get(Ke),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pt(e,t),n=yt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ft(e,t){return t=t??e.get(Ke),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function La(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function qa(e){return!!e.getForParent(Ke)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function pn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function $e(e,t,o=1,n){const a=Pe();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let s=l.length-1;s>=0;s--){const u=l[s];if(pn(u,n))return u}const i=e.value;return pn(i,n)?i:null}):r.computed(()=>{const l=e.value;return pn(l,n)?l:a?.get(t)})}function xe(e){return $e(e,"readonly",0,function(o){return te(o)})}function Ce(e){return $e(e,"disabled",0,function(o){return te(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let a=n.value;typeof o=="function"&&(a=o(n.value));const l=r.ref(a);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==l.value&&(l.value=s)}else i!==l.value&&(l.value=i)}),l}const Wr=new Map,At=new Map;let yn=null;function Ma(e){yn=e}function Yr(e,t,o){if(o){let n=At.get(o);n||(n=new Map,At.set(o,n)),n.set(e,t)}else Wr.set(e,t)}function Ae(e,t,o){!o&&yn&&(o=yn(e)??void 0);let n=null;if(o){let a=At.get(o);a&&(n=a.get(t))}return n||(n=Wr.get(t)),n}function _a(e,t){for(let o in e){const n=e[o];Yr(o,n,t)}}function Pa(e){At.delete(e)}function ja(){return{top:0,left:0,bottom:0,right:0}}function Ha(e=0,t=0){if(et){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ue(e,n)-ue(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class za{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(l=>{l.install?t.use(l):l.name&&t.component(l.name,l)}),this.installers.forEach(l=>{l(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=nt();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=Pr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,a)},150);new window.ResizeObserver(l).observe(window.document.body)}for(const l in o)n.indexOf(l)===-1&&a.set(l,o[l])}initPageLayout(t,o){const n=t.headerBarHeight??0,a=t.footerBarHeight??0,l=Ue({},ja(),t.safeAreaInset),i=Ha(n,a),s=Ue({},i.pageLayout,t.pageLayout);o=o??nt(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ma(t)}setAPI(t,o,n){Yr(t,o,n)}getAPI(t,o,n){return Ae(t,o,n)}batchSetAPI(t,o){_a(t,o)}clearScopeAPI(t){Pa(t)}getRootDomain(){return nt()}}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],Wa=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Ya=e=>{Ka.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Wa.forEach(t=>{e.use(t)})};function oe(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Te={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},Gr={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}},Ur={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}},Xr=[];for(const e in Ur)Xr.push(e);function be(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Ga=Symbol.for("InnerPageScopeKey"),Ua=(e,t)=>({inheritAttrs:!0,props:{...ge,...Gr,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}},setup(o,n){const a=gn(o.name,o);if(a){const f=Kr(a,o);be({getPageContentHeight:()=>Dt(a,f),getPageContentWidth:()=>Ft(a,f),getPageHeaderHeight:()=>pt(a,f),getPageFooterHeight:()=>yt(a,f)});const c=r.inject(Ga,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(f,c=!1)=>{const d=s?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(f,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[d,b])=>{if(f&&d){const x=r.toRaw(d),m=r.toRaw(f),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(v=>{g.includes(v)||(m[v]=[])}),u(m)}if(c&&b){const x=r.toRaw(b),m=r.toRaw(c),g=m?Reflect.ownKeys(m):[];(x?Reflect.ownKeys(x):[]).forEach(v=>{g.includes(v)||(m[v]=[])}),u(m,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}if(o.pureDataRules){const f=r.toRaw(o.pureDataRules);u(f,!0)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:i}}}),{componentName:Xa,create:Za,scope:gf}=oe("page"),Ja=Za(Ua(Xa));function Qa(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ve=(e,t)=>{const o=e.__vccOpts||e;for(const[n,a]of t)o[n]=a;return o},bn=Ve(Ja,[["render",Qa]]);function wn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function vn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),a=parseFloat(o.getPropertyValue("padding-right")),l=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-i}}const el=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1,default:""},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(a,l){const i=Pe(),s=i?Rt(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const y=e;return{[y]:!0,[`${y}--border`]:a.border,[`${y}--fixed`]:a.fixed,[`${y}--safe-area-inset-top`]:a.safeAreaInsetTop}}),f=a.height!==null&&a.height!==void 0?ue(a.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const L=Fe(a.padding??s.headerPadding);return Object.assign(y,L),f&&(s.headerHeight=f),y.height=s.headerHeight,y.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(L.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),a.padding){const L=Fe(a.padding);Object.assign(y,L)}return y}),d=r.ref(null),b=()=>{if(s&&d.value&&d.value.offsetParent!==null){if(!n){const y=wn(d.value);s.headerAllHeight=y.height}return s.headerMounted=!0,!0}return!1};let x=null;r.onMounted(()=>{s&&(dn(b,50,5,50,!0),window.ResizeObserver&&d.value&&(x=new window.ResizeObserver(()=>{b()}),x.observe(d.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,x&&(x.disconnect(),x=null))});const m=r.computed(()=>{const y={};return c.value.height!==null&&c.value.height!==void 0&&(y.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(y.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(y.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(y.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(y.paddingBottom=`${c.value.bottom}px`),y}),g=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),v=r.computed(()=>!!a.leftShow),T=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),I=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),A=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),k=r.computed(()=>a.leftIcon),D=r.computed(()=>k.value||l.slots.leftIcon),V=r.computed(()=>a.titleIcon),F=r.computed(()=>a.titleIcon||l.slots.titleIcon),R=r.computed(()=>a.rightIcon),B=r.computed(()=>a.rightIcon||l.slots.rightIcon);function Y(){l.emit("back")}function H(){l.emit("click-title")}function $(){l.emit("click-right")}function S(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:m,mHeaderShow:T,leftStyles:g,rightStyles:w,mLeftShow:v,mTitleShow:I,mRightShow:A,mLeftIcon:k,hasLeftIcon:D,mTitleIcon:V,hasTitleIcon:F,mRightIcon:R,hasRightIcon:B,handleLeft:Y,handleCenter:H,handleRight:$,handleRightText:S}}}),{componentName:tl,create:nl,scope:rl}=oe("header-bar"),ol=nl(el(tl,rl,Ne.ArrowLeft)),al={key:1,class:"fox-header-bar__title"},ll={key:0,class:"title-text"};function il(e,t,o,n,a,l){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",al,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",ll,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const Sn=Ve(ol,[["render",il]]);function sl(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,a){const l=Pe(),i=l?Rt(l):null,s=r.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?ue(n.height):null,f=r.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&i){const g=Fe(n.padding??i.footerPadding);return Object.assign(m,g),u&&(i.footerHeight=u),m.height=i.footerHeight,m.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,m.safeAreaBottom>0&&(m.height=m.height+m.safeAreaBottom,m.bottom=m.safeAreaBottom+(g.bottom??0)),m}if(u&&(m.height=u),n.padding){const g=Fe(n.padding);Object.assign(m,g)}return m}),c=r.ref(null),d=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!o){const m=wn(c.value);i.footerAllHeight=m.height}return i.footerMounted=!0,!0}return!1};let b=null;r.onMounted(()=>{i&&(dn(d,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{d()}),b.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const x=r.computed(()=>{const m={};return f.value.height!==null&&f.value.height!==void 0&&(m.height=ye(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(m.paddingTop=ye(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(m.paddingLeft=ye(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(m.paddingRight=ye(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(m.paddingBottom=ye(f.value.bottom)),m});return{footerBarRef:c,classes:s,styles:x}}}}const{componentName:ul,create:cl,scope:mf}=oe("footer-bar"),fl=cl(sl(ul));function dl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const Tn=Ve(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Pe(),a=r.computed(()=>({[e]:!0})),l=n?Rt(n):null,i=r.computed(()=>{const f={};if(n&&l){if(o.padding){const x=Fe(o.padding);Object.assign(l.contentPadding,x)}const c=pt(n,l),d=yt(n,l);let b="";if(l.contentHeight?b=`${l.contentHeight}`:b=`${l.height}px`,l.contentPadding,f.height=b,l.contentPadding.top||c>0){const x=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+x}px`}if(l.contentPadding.bottom||d>0){const x=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+x}px`}return l.contentPadding.left&&(f.paddingLeft=`${l.contentPadding.left}px`),l.contentPadding.right&&(f.paddingRight=`${l.contentPadding.right}px`),f}if(o.padding){const c=Fe(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=r.ref(null),u=()=>{if(l&&s.value){const f=vn(s.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>pt(n),()=>yt(n)],([])=>{u()}),{contentRef:s,classes:a,styles:i}}}}const{componentName:gl,create:ml,scope:pf}=oe("content"),pl=ml(hl(gl));function yl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const $n=Ve(pl,[["render",yl]]),rt="GroupStateKey",Zr=Symbol.for("GroupScopeKey");function Bt(){return r.inject(Zr,!1)}function Lt(e=!0){r.provide(Zr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];cn(a)||(e[n]=a)})}function wl(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};bl(n,t);const a=r.shallowRef(n),l=r.markRaw({layout:a,passport:0,order:{index:0}});return e.set(rt,l),l}function xn(e,t,o=-1,n=-1,a=!1,l,i,s){const u=e.get(rt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),l||(l=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=ue(l),d=ue(i);s||(s=f.type??"grid");const b=()=>{const x=t===""||t===-1,m=ue(t);let g=ve(o);const w=ue(n);if(!x){let I=(m-(g-1)*w)/g;for(;d!==-1&&I>d;)g++,I=(m-(g-1)*w)/g;for(;c!==-1&&g>1&&I<c;)g--,I=(m-(g-1)*w)/g}let v=!1;const T=u.layout;T.value.width=t,T.value.column!==g&&(T.value.column=g,v=!0),T.value.gutter!==w&&(T.value.gutter=w,v=!0),T.value.type!==s&&(T.value.type=s,v=!0),v&&r.triggerRef(T)};if(a)b();else{const x=++u.passport;setTimeout(()=>{x===u.passport&&b()},50)}}function qt(e,t=!1){let o;return t?o=e.getForParent(rt):o=e.get(rt),o.layout}function Mt(e,t=!1){let o;return t?o=e.getForParent(rt):o=e.get(rt),o.order}function Jr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function _t(e,t,o=1,n=0,a){const l={};let i=0;a?i=ue(a):i=Jr(t.column,o),i>0&&(l.width=`${i}%`);const s=Jr(t.column,n);s>0&&(l["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function Pt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let a=ve(o);if(a===-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(a>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 l=ve(n)%t.column;let i=(e.index+l)%t.column,s=i+a;return s>t.column?(i=0,s=i+a,e.index=e.index+(t.column-i)+a):e.index=e.index+l+a,l>0?{"grid-column":`${i+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Qr=Symbol("RollingStateKey");function vl(e){r.provide(Qr,e)}function Sl(){return r.inject(Qr,null)}function Cn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-a-l}else t=e.offsetHeight;return t}function Tl(e){let t=Cn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Cn(o),document.body.removeChild(o)}return t}function $l(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const xl={...ge,...Gr,...Ur};function Cl(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=gn(n.name,n,Xr),i=wl(l,{type:n.type}),s=Bt();Lt(!0);const u=n.rollingDisplay?Sl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>s&&l?qt(l,!0).value:null),b=r.getCurrentInstance(),x=(C,M=!1)=>{const N=b?.proxy;N&&typeof N.setNameValidateRules=="function"&&N.setNameValidateRules(C,!0,M)};r.watch([()=>n.rules,()=>n.pureDataRules],([C,M],[N,K])=>{if(C&&N){const j=r.toRaw(N),X=r.toRaw(C),ne=X?Reflect.ownKeys(X):[];(j?Reflect.ownKeys(j):[]).forEach(ce=>{ne.includes(ce)||(X[ce]=[])}),x(X)}if(M&&K){const j=r.toRaw(K),X=r.toRaw(M),ne=X?Reflect.ownKeys(X):[];(j?Reflect.ownKeys(j):[]).forEach(ce=>{ne.includes(ce)||(X[ce]=[])}),x(X,!0)}},{deep:!0});const m=e,g=r.computed(()=>{const C={};C.height=L.value;const M=s?Mt(l,!0):null;if(d.value&&M){if(d.value.type==="grid"){const N=Pt(M,d.value,n.span,n.offset);Object.assign(C,N)}else if(d.value.type==="flow"){const N=_t(M,d.value,n.span,n.offset,n.width);Object.assign(C,N)}}else if(n.width){const N=ye(n.width);C.width=N}return C}),w=r.computed(()=>{const C=i.layout.value.type;return C==="grid"||C==="flow"?{[`${m}--${C}`]:!0,[`${m}--${C}-justify-${n.justify}`]:!0,[`${m}--${C}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${C}`]:!0,[`${m}--gutter`]:!0}}),v=r.computed(()=>{if(i.layout.value.type==="grid"){let M="";if(n.columnWidth)M=`repeat(auto-fill, ${n.columnWidth})`;else{const N=$l(R.value,i.layout.value.column,i.layout.value.gutter);M=`repeat(${i.layout.value.column}, ${N})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":M}}}),T=r.toRef(n,"title"),I=r.toRef(n,"gutter"),A=r.toRef(n,"column"),k=r.computed(()=>s||c.value?!0:te(n.isWrap)),D=[],V=C=>{D.push(C)},F=()=>{let C=D.length;D.splice(0,C)},R=r.ref(-1),B=C=>{const M=vn(C).width;M>0&&M!==R.value&&(R.value=M)};xn(l,R.value,A.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([R,A,I],([C,M,N])=>{i.order.index=0,xn(l,C,M,N,!1,n.minItemWidth,n.maxItemWidth,n.type)});const Y=r.computed(()=>O.value?n.expandText??"":n.collapseText??""),H=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),$=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!O.value,"is-collapse":O.value})),S=r.ref(),y=r.ref(),L=r.computed(()=>z.value||ye(n.height)||""),O=r.ref(!1),z=r.ref(""),E=r.ref(!1);let q=-1;const P=(C,M=!0)=>{const N=S.value;if(N&&O.value!==C){if(q=q===-1?Tl(N):q,E.value=!0,M)if(N.style["will-change"]="height",N.ontransitionend=function(){N.ontransitionend=null,this.style["will-change"]="auto",C||(z.value="",E.value=!1)},C){let K=0;n.collapseHeight?K=n.collapseHeight:y.value&&y.value.classList.contains(`${e}__header`)&&(K=y.value.offsetHeight),z.value=`${q}px`,r.nextTick(()=>{z.value=`${K}px`})}else z.value=`${q}px`;else if(C){let K=0;n.collapseHeight?K=n.collapseHeight:y.value&&y.value.classList.contains(`${e}__header`)&&(K=y.value.offsetHeight),z.value=`${K}px`}else E.value=!1,z.value=`${q}px`;O.value=C,a.emit("update:collapse",C)}};r.watch(()=>n.collapse,C=>{P(C)});const G=()=>{J()},J=C=>{C=C??!O.value,P(C)};be({toggleCollapse:J,doLayout:()=>{D[0]&&(B(D[0]),xn(l,R.value,A.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let re=null,le=!0;const Z=C=>{if(n.rules){const M=r.toRaw(n.rules);x(M)}if(n.pureDataRules){const M=r.toRaw(n.pureDataRules);x(M,!0)}if(et&&(C&&P(te(n.collapse),!1),n.autoLayout&&Array.isArray(D)&&D.length>0)){const M=D[0];B(M),window.ResizeObserver&&(re=new window.ResizeObserver(()=>{B(M)}),re.observe(M))}},ee=()=>{re?.disconnect(),re=null},_=!c.value||u?.acquire();_&&(f.value=c.value?!0:null),r.onMounted(()=>{if(_&&(Z(le),le=!1),c.value&&u){let C=null,M=u.initialHeight;u.observe(S.value,N=>{if(N!==f.value)if(N)f.value=!0,O.value||(z.value=""),C=setTimeout(()=>{C=null,f.value!==!1&&(Z(le),le=!1)},100);else{if(C!==null&&clearTimeout(C),f.value=!1,!O.value)if(le)z.value=u.initialHeight;else{let K=Cn(S.value);K<=0?z.value=M:(z.value=`${K}px`,M=z.value)}le||ee()}})}}),r.onUnmounted(()=>{re?.disconnect(),u&&u.unobserve(S.value)});const W=(C="right")=>{const M=[];if(Y.value){const j={class:H.value},X=r.h("span",j,[Y.value]);M.push(X)}const N={class:$.value},K=o(n.collapseIcon,N);return K&&M.push(K),M.length>0?r.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${C}`]:!0},onClick:G},M):null},U=(C,M,N,K)=>{const j={...w.value};return M===0&&(j[`${m}__first`]=!0),N>=K-1&&(j[`${m}__last`]=!0),r.h("div",{ref:V,key:`${M}`,class:j,style:v.value},C)};return()=>{if(c.value&&f.value!==!0){const j=n.tag||"div";return r.h(j,{ref:S,prop:n.name,class:{[`${m}`]:!0,"is-collapse":E.value},style:g.value},[])}i.order.index=0;const C=[];let M=0;if(a.slots.header){const j={key:`${M++}`,ref:y,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},X=r.h("div",j,[a.slots.header()]);C.push(X)}else{const j=[],X=n.collapsePosition==="left";if(X&&n.showCollapse){const ne=W("left");ne&&j.push(ne)}if(T.value){if(n.showMark){const ie={class:{[`${m}__header-mark`]:!0}};n.markColor&&(ie.style={background:n.markColor});const ce=r.h("div",ie);j.push(ce)}const ne=r.h("div",{class:{[`${m}__header-title`]:!0}},[T.value]);j.push(ne)}if(a.slots.toolbar&&j.push(a.slots.toolbar()),!X&&n.showCollapse){const ne=W("right");ne&&j.push(ne)}if(j.length>0){const ne={key:`${M++}`,ref:y,class:{[`${m}__header`]:!0,[`${m}__first`]:!0}},ie=r.h("div",ne,j);C.push(ie)}}F();const N=a.slots.default?a.slots.default():[],K=i.layout.value.type;if(K==="grid"){const j=U(N,M++,0,N.length);C.push(j)}else if(K==="flow"){const j=U(N,M++,0,N.length);C.push(j)}else for(let j=0;j<N.length;j++){const X=N[j],ne=U([X],M++,j,N.length);C.push(ne)}if(k.value){const j=n.tag||"div";return r.h(j,{ref:S,prop:n.name,class:{[`${m}`]:!0,"is-collapse":E.value},style:g.value},[C])}else return C}}}}const{componentName:El,create:Nl,scope:kl}=oe("group"),En=Nl(Cl(El,kl,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Il=/matrix\((.+)\)/,eo=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Vl(t))return{x:0,y:0};let o=0,n=0,a=t;for(;a!==null;)o+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let l=0,i=0,s=0,u=0;for(a=t;a!==document;){i+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Il.exec(f);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(s+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=l,n-=i,o+=s,n+=u,{x:o,y:n}};function Ol(e){return e===window}const Nn=e=>{const t=r.unref(e);if(Ol(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Rl{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class Dl{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l||(l=new Rl,n.addEventListener("scroll",l.listen),n===document.body&&n.addEventListener("resize",l.listen),this.monitorRegister.set(n,l)),l.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let l=this.monitorRegister.get(n);l&&(l.remove(o),l.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",l.listen),n===document.body&&n.removeEventListener("resize",l.listen))),n=n.parentNode}}}const to=new Dl,no={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:Fl,create:Al}=oe("price"),Bl=Al({props:{...no},setup(e){const t=r.computed(()=>({[Fl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>dt(e.price)==0?"":Ct(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:a,decimalText:l}}}),Ll=["innerHTML"],ql=["innerHTML"];function Ml(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("view",{class:r.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(r.openBlock(),r.createElementBlock("view",{key:0,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ll)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--${e.size}`)},r.toDisplayString(e.intText),3),e.decimalText.length!=0?(r.openBlock(),r.createElementBlock("view",{key:1,class:r.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):r.createCommentVNode("",!0),r.createElementVNode("view",{class:r.normalizeClass(`fox-price--decimal-${e.size}`)},r.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(r.openBlock(),r.createElementBlock("view",{key:2,class:r.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,ql)):r.createCommentVNode("",!0)],2)}const jt=Ve(Bl,[["render",Ml]]),{componentName:Ht,create:_l}=oe("hint-text"),Pl=_l({components:{Price:jt},props:{...no,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const l=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Ht]:!0})),b=r.ref(null),x=(F,R,B=10)=>{if(!et||R===!1||!F)return;l.value=!0;const Y=Nn(e.reference);u.value=Y.width,f.value=Y.height,setTimeout(()=>{if(!b.value||!e.reference||e.reference.offsetParent===null)return;const H=eo(e.reference),$=document.documentElement.clientWidth||document.body.clientWidth,S=b.value.offsetWidth,y=b.value.offsetHeight;H.y-y>=0?(c.value="top",i.value.y=H.y-y-10-4,s.value.y=y):(c.value="bottom",i.value.y=H.y+f.value+10,s.value.y=-10);const L=H.x+S-$;L<0?(i.value.x=H.x,s.value.x=20):(i.value.x=H.x-L,s.value.x=L+20),l.value=!1},B)},m=mt(()=>{x(e.message,e.visible)},10),g=r.computed(()=>e.visible&&w.value),w=r.ref(!0),v=mt(F=>{const R=F[0];R&&(w.value=R.isIntersecting)},10),T=new IntersectionObserver(v);r.watch([()=>e.message,()=>e.visible],([F,R])=>{x(F,R)}),r.onMounted(()=>{x(e.message,e.visible),to.watch(e.reference,m),T.observe(e.reference)}),r.onBeforeMount(()=>{to.unwatch(e.reference,m),T.unobserve(e.reference),T.disconnect()});const I=r.computed(()=>{const F={"min-width":ye(u.value)};return l.value?F.visibility="hidden":F.transform=`translate(${i.value.x}px, ${i.value.y}px)`,F}),A=r.computed(()=>({[`${Ht}__content`]:!0})),k=r.computed(()=>({})),D=r.computed(()=>({[`${Ht}__arrow`]:!0,[`${Ht}__arrow-${e.placement}`]:!0})),V=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:g,tipRef:b,classes:d,styles:I,textClasses:A,textStyles:k,arrowClasses:D,arrowStyles:V}}}),jl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",jl,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const bt=Ve(Pl,[["render",Hl]]);class ro{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 kn={},zl=new ro,ot=new Map,Vn=e=>{if(e){const t=document.getElementById(e);ot.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ot.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ot.clear()}},Kl=e=>{const t=document.getElementById(e.id);if(t){const o=ot.get(e.id);o?e={...kn,...o,...e}:e={...kn,...e};const n=r.createVNode(bt,e);return r.render(n,t),e.id}},Wl=e=>{e.unmount=Vn;let t;if(e.id){if(t=e.id,ot.has(t))return Kl(e)}else t=`hinttext_${zl.get()}`;e={...kn,...e},e.id=t,ot.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(bt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},zt={show(e,t,o={},n=!0){return n&&Vn(),Yl(t),Wl({...o,message:t,reference:e})},hide(e){Vn(e)},install(e){e.config.globalProperties.$hintText=zt}},{componentName:oo,create:Gl}=oe("item"),Ul=Gl({inheritAttrs:!0,props:{...ge,...Te},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:oo,validate:!1},o);const n=Pe(),a=Bt();Lt(!1);const l=r.computed(()=>a&&n?qt(n,!1).value:null),i=oo,s=r.ref(null),u=r.computed(()=>{const _={[i]:!0,[`${i}__gutter`]:l.value&&l.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(_[e.errorMarkClass]=!!H.value,_[e.warnMarkClass]=!!B.value,_[e.infoMarkClass]=!!F.value,typeof s.value=="function"){const W=s.value(o);_[W]=!0}else if(typeof s.value=="string"){const W=s.value;_[W]=!0}return _}),f=r.ref(null),c=r.computed(()=>{const _={},W=a&&n?Mt(n,!1):null;if(l.value&&W)if(l.value.type==="grid"){const U=Pt(W,l.value,e.span,e.offset);Object.assign(_,U)}else if(l.value.type==="flow"){const U=_t(W,l.value,e.span,e.offset,e.width);Object.assign(_,U)}else return e.width&&(_.width=ye(e.width)),_;else e.width&&(_.width=ye(e.width));if(typeof f.value=="function"){const U=f.value(o);U&&Object.assign(_,U)}else if(f.value&&typeof f.value=="object"){const U=f.value;Object.assign(_,U)}return _}),d=r.ref(null),b=r.computed({get:()=>d.value??te(e.isRequired),set:_=>{d.value=_}}),x=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),m=$e(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),g=r.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),w=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${g.value}`]:!0})),v=r.computed(()=>({label:!0,[`label--${g.value}`]:!0})),T=$e(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),I=r.computed(()=>T&&T.value?{width:ye(T.value)}:{}),A=r.computed(()=>({"label--string":!0,"label--required":b.value})),k=r.computed(()=>({content:!0,[e.contentClass]:!0})),D=r.computed(()=>({...e.contentStyle})),V=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(_){b.value=_},setErrorTip(_){V.errorTip=_},setErrorIcon(_){V.errorIcon=_},setWarnTip(_){V.warnTip=_},setWarnIcon(_){V.warnIcon=_},setInfoTip(_){V.infoTip=_},setInfoIcon(_){V.infoIcon=_},setCustomClassName(_){s.value=_},setCustomStyle(_){f.value=_}});const F=r.computed(()=>e.infoTip||V.infoTip),R=r.computed(()=>e.infoIcon||V.infoIcon),B=r.computed(()=>e.warnTip||V.warnTip),Y=r.computed(()=>e.warnIcon||V.warnIcon),H=r.computed(()=>e.errorTip||V.errorTip),$=r.computed(()=>e.errorIcon||V.errorIcon),S=r.computed(()=>H.value?"error":B.value?"warn":F.value?"info":""),y=r.computed(()=>S.value.length>0),L=r.computed(()=>S.value==="error"?H.value:S.value==="warn"?B.value:S.value==="info"?F.value:""),O=r.computed(()=>S.value==="error"?$.value:S.value==="warn"?Y.value:S.value==="info"?R.value:null),z=r.computed(()=>{let _={[`${i}__tip`]:!0,[`${i}__tip--${S.value}`]:!0};return S.value==="error"&&e.errorClass?_[`${e.errorClass}`]=!0:S.value==="warn"&&e.warnClass?_[`${e.warnClass}`]=!0:S.value==="info"&&e.infoClass&&(_[`${e.infoClass}`]=!0),_}),E=r.computed(()=>{let _={};return m&&m.value==="top"||!x.value?_["padding-left"]="0px":T&&T.value&&(_["padding-left"]=ye(T.value)),_}),q=()=>{const _=O.value;return _?typeof _=="function"?r.h("div",{class:"fox-item__tip--icon"},[_()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(_)]):null},P=()=>{const _=L.value;return _?typeof _=="function"?r.h("div",{class:"fox-item__tip--text"},[_()]):r.h("div",{class:"fox-item__tip--text"},[_]):null},G=r.computed(()=>t.slots.fixedTip),J=r.computed(()=>({[`${i}__fixed-tip`]:!0})),Q=r.ref();let re="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([_,W,U,C])=>{Q.value&&(_&&!de(W)?re?zt.show(Q.value,W,{...C,id:re,type:U},!0):re=zt.show(Q.value,W,{...C,type:U},!0):zt.hide(re))});let le=null;const Z=()=>{le||!Q.value||(le=new IntersectionObserver(_=>{let W=!1;for(let U of _)if(U.intersectionRatio>0){W=!0,W&&t.emit("appear",U);break}W||t.emit("disappear")}),le.observe(Q.value))},ee=()=>{!le||!Q.value||(le.unobserve(Q.value),le=null)};return r.watch(()=>te(e.appearListen),_=>{_?Z():ee()}),r.onMounted(()=>{te(e.appearListen)&&Z()}),r.onUnmounted(ee),{classes:u,styles:c,mainClasses:w,hasLabel:x,labelClasses:v,labelStyles:I,labelStringClasses:A,contentClasses:k,contentStyles:D,contentRef:Q,hasTip:y,mTip:L,mIcon:O,renderIcon:q,renderTip:P,tipClasses:z,tipStyles:E,hasFixedTip:G,fixedTipClasses:J}}}),Xl=["prop"];function Zl(e,t,o,n,a,l){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon()),{key:0})):r.createCommentVNode("",!0),e.mTip?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderTip()),{key:1})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Xl)}const me=Ve(Ul,[["render",Zl]]);function Jl(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const a=Pe(),l=Bt();Lt(!1);const i=r.computed(()=>l&&a?qt(a,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Mt(a,!1):null;if(i.value&&d)if(i.value.type==="grid"){const b=Pt(d,i.value,o.span,o.offset);Object.assign(c,b)}else if(i.value.type==="flow"){const b=_t(d,i.value,o.span,o.offset,o.width);Object.assign(c,b)}else return o.width&&(c.width=ye(o.width)),c;else o.width&&(c.width=ye(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Ql,create:ei,scope:bf}=oe("slot-item"),In=ei(Jl(Ql));function ti(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],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),i=Pe(),s=Bt();Lt(!1);const u=r.computed(()=>{const f={};if(s&&i){const c=qt(i,!1),d=Mt(i,!1);if(c.value&&d)if(c.value.type==="grid"){const b=Pt(d,c.value,o.span,o.offset);Object.assign(f,b)}else if(c.value.type==="flow"){const b=_t(d,c.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=ye(o.width))}else o.width&&(f.width=ye(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let b=0;b<d.length;b++){if(b>0){const x=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(x)}f.push(d[b])}else Reflect.apply([].push,f,d)}const c={class:l.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:ni,create:ri,scope:wf}=oe("row-item"),On=ri(ti(ni)),Be=(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},ao={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 oi(e,t,o){return{props:{...ge,...Te,...ao},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0,[`${b}__disabled`]:l.value,[`${b}__readonly`]:i.value})),m=$=>{d.value=$,s("update:modelValue",$),s("input",$)},g=$=>{s("change",$)};let w=se(n,"hintText"),v=r.ref(!1);const T=$=>{let y=$.target.value;c.value=!0,de(w.value)||(v.value=!0),s("focus",y,$)},I=$=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let y=$.target.value;n.maxLength&&y.length>Number(n.maxLength)&&(y=y.slice(0,Number(n.maxLength))),s("blur",y,$)},A=()=>{s("clear","")},k=r.ref(!1);let D=null;const V=()=>{n.showTooltip&&k.value===!1&&(D&&clearTimeout(D),D=setTimeout(()=>{k.value=!0},150))},F=()=>{D&&(clearTimeout(D),k.value=!1,D=null)},R=r.computed(()=>k.value||v.value),B=r.computed(()=>k.value?d.value:w.value),Y=r.computed(()=>dt(n.unit)>0),H=r.ref();return be({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const S={...Be(a.attrs),ref:H,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:A,onChange:g,onInput:m,onFocus:T,onBlur:I,onMouseover:V,onMouseleave:F},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:Y.value&&(y.suffix=()=>[n.unit]);const L=[],O=r.h(p.ElInput,S,y);L.push(O);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.default&&(z.fixedTip=a.slots.fixedTip);const q={...Se(n,ao),hintText:B.value,hintVisible:R.value,prop:`${n.prop}_item`};return r.h(o,q,z)}}}}const{componentName:ai,create:li,scope:ii}=oe("input-item"),Rn=li(oi(ai,ii,me));function We(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function lo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function si(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ui=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ci(){const e=r.getCurrentInstance();return new ui(e.proxy)}function io(e,t,o){const n=We(e,t),a=We(e,o);if(n!==a)return!1;const l=wt(e,t),i=wt(e,o);return l===i}function so(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){const s=lo(e,i);if(Array.isArray(s)&&s.length>0){const u=so(e,l,o,s)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=We(e,i)===l;else if(o==="item")u=io(e,i,l);else{let f=wt(e,i);f==null&&(f=We(e,i)),u=f===l}if(u){a.push(i);break}}}}),a}function fi(e){return{text:e,value:e}}const uo={modelValue:{type:[String,Object,Boolean,Number],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 di(e,t,o){return{props:{...ge,...Te,...uo},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(U=>We(n,U)).join(" "):""),x=(W,U,C,M=!0)=>{const N=so(n,W,U,C);if(N===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],M&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let K=!0;if(N.length!==d.value.length)K=!1;else for(let j=0;j<N.length;j++){const X=N[j],ne=d.value[j];if(!io(n,X,ne)){K=!1;break}}if(!K){d.value=N;let j=[],X=[],ne=[];N.forEach(Re=>{const Tt=wt(n,Re),qe=We(n,Re);j.push(Tt),ne.push(qe),n.valueType==="text"?X.push(qe):n.valueType==="item"?X.push(Re):X.push(Tt)});let ie,ce,ut;te(n.multiple)?(c.value=j,ie=r.toRaw(X),ce=ne,ut=r.toRaw(N)):(c.value=j[0]??"",ie=r.toRaw(X[0]??""),ce=ne[0]??"",ut=r.toRaw(N[0])),M&&(s("update:modelValue",ie),s("change",ie,ut)),s("update:text",ce)}},m=r.ref(null),g=r.ref(null),w=r.computed(()=>g.value??m.value??[]),v=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,W=>te(W)),T=ci(),I=async(W,U)=>{if(W){const C=await T.load("select",W,U);if(C.length>0)if(typeof C[0]=="string"){let K=C.map(j=>fi(j));m.value=K}else m.value=C;else m.value=null}};r.watch([()=>n.source,()=>n.params],([W,U])=>{g.value=null,I(W,U)},{immediate:!v.value});let A=!1;const k=()=>{A||(A=!0,I(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([W,U])=>{if(R()&&te(n.multiple)){Me(U,c.value)||(c.value=U);return}x(U,n.valueType,w.value,!1)});let D=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(D=async W=>{if(W==null){g.value=null;return}V.value=!0;try{const U=await n.remoteMethod(W);U&&(g.value=U)}catch(U){g.value=null,console.error(U)}V.value=!1});let F=null;typeof n.filterMethod=="function"&&(F=async W=>{if(W==null){g.value=null;return}V.value=!0;try{const U=await n.filterMethod(W,m.value);U&&(g.value=U)}catch(U){g.value=null,console.error(U)}V.value=!1});const R=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",B=r.ref(!1),Y=e,H=r.computed(()=>({[Y]:!0})),$=W=>{n.allowCreate||R()&&te(n.multiple)?(s("update:modelValue",W),s("change",W),s("update:text",W),c.value=W):x(W,"value",w.value,!0)};let S=se(n,"hintText"),y=r.ref(!1);const L=W=>{let C=W.target.value;B.value=!0,de(S.value)||(y.value=!0),s("focus",C,W)},O=W=>{setTimeout(()=>{y.value&&(y.value=!1),B.value=!1},0);let C=W.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),re.value||s("blur",C,W)},z=()=>{s("clear","")},E=r.ref(!1);let q=null;const P=()=>{n.showTooltip&&E.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{E.value=!0},150))},G=()=>{q&&(clearTimeout(q),E.value=!1,q=null)},J=r.computed(()=>E.value||y.value),Q=r.computed(()=>E.value?b.value:S.value),re=r.ref(!1),le=W=>{re.value=W,s("visible-change",W),W||s("selected")},Z=W=>{s("remove-tag",W)},ee=(W,U)=>{const C=[];return W.forEach((M,N)=>{const K=lo(n,M);if(Array.isArray(K)&&K.length>0){const j=ee(K,U),X=We(n,M),ie={key:`${X}_${N}`,label:X};C.push(r.h(p.ElOptionGroup,ie,{default:()=>j}))}else{const j=wt(n,M),X=We(n,M),ne=si(n,M),ce={key:`${j}_${N}`,label:X,disabled:ne,value:j};if(typeof U=="function")C.push(r.h(p.ElOption,ce,{default:()=>U(M)}));else if(n.optionType==="item"){const ut={class:{"fox-select-item__option-left":!0}},Re=r.h("span",ut,[j]),Tt={class:{"fox-select-item__option-right":!0}},qe=r.h("span",Tt,[X]),dr=r.h("div",{class:{"fox-select-item__option":!0}},[Re,qe]);C.push(r.h(p.ElOption,ce,{default:()=>dr}))}else n.optionType==="value"?C.push(r.h(p.ElOption,ce,{default:()=>[j]})):C.push(r.h(p.ElOption,ce))}}),C},_=r.ref();return be({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()}}),()=>{const U={...Be(a.attrs),ref:_,class:H.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:z,onChange:$,onFocus:L,onBlur:O,onVisibleChange:le,onRemoveTag:Z};typeof D=="function"&&(U["remote-method"]=D,U.loading=V.value),typeof F=="function"&&(U["filter-method"]=F,U.loading=V.value);const C={};a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.empty&&(C.empty=a.slots.empty),a.slots.options?C.default=a.slots.options:C.default=()=>ee(w.value,a.slots.option);const M=[],N=r.h(p.ElSelect,U,C);M.push(N);const K={default:()=>M};a.slots.default&&(K.label=a.slots.default),a.slots.fixedTip&&(K.fixedTip=a.slots.fixedTip);const X={...Se(n,uo),hintText:Q.value,hintVisible:J.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:P,onMouseleave:G};return v.value&&(X["appear-listen"]=!0,X.onAppear=k),r.h(o,X,K)}}}}const{componentName:hi,create:gi,scope:mi}=oe("select-item"),Dn=gi(di(hi,mi,me));var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",b="quarter",x="year",m="date",g="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,T={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($,S,y){var L=String($);return!L||L.length>=S?$:""+Array(S+1-L.length).join(y)+$},A={s:I,z:function($){var S=-$.utcOffset(),y=Math.abs(S),L=Math.floor(y/60),O=y%60;return(S<=0?"+":"-")+I(L,2,"0")+":"+I(O,2,"0")},m:function $(S,y){if(S.date()<y.date())return-$(y,S);var L=12*(y.year()-S.year())+(y.month()-S.month()),O=S.clone().add(L,d),z=y-O<0,E=S.clone().add(L+(z?-1:1),d);return+(-(L+(y-O)/(z?O-E:E-O))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:x,w:c,d:f,D:m,h:u,m:s,s:i,ms:l,Q:b}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},k="en",D={};D[k]=T;var V=function($){return $ instanceof Y},F=function $(S,y,L){var O;if(!S)return k;if(typeof S=="string"){var z=S.toLowerCase();D[z]&&(O=z),y&&(D[z]=y,O=z);var E=S.split("-");if(!O&&E.length>1)return $(E[0])}else{var q=S.name;D[q]=S,O=q}return!L&&O&&(k=O),O||!L&&k},R=function($,S){if(V($))return $.clone();var y=typeof S=="object"?S:{};return y.date=$,y.args=arguments,new Y(y)},B=A;B.l=F,B.i=V,B.w=function($,S){return R($,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Y=function(){function $(y){this.$L=F(y.locale,null,!0),this.parse(y)}var S=$.prototype;return S.parse=function(y){this.$d=function(L){var O=L.date,z=L.utc;if(O===null)return new Date(NaN);if(B.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var E=O.match(w);if(E){var q=E[2]-1||0,P=(E[7]||"0").substring(0,3);return z?new Date(Date.UTC(E[1],q,E[3]||1,E[4]||0,E[5]||0,E[6]||0,P)):new Date(E[1],q,E[3]||1,E[4]||0,E[5]||0,E[6]||0,P)}}return new Date(O)}(y),this.$x=y.x||{},this.init()},S.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},S.$utils=function(){return B},S.isValid=function(){return this.$d.toString()!==g},S.isSame=function(y,L){var O=R(y);return this.startOf(L)<=O&&O<=this.endOf(L)},S.isAfter=function(y,L){return R(y)<this.startOf(L)},S.isBefore=function(y,L){return this.endOf(L)<R(y)},S.$g=function(y,L,O){return B.u(y)?this[L]:this.set(O,y)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(y,L){var O=this,z=!!B.u(L)||L,E=B.p(y),q=function(ee,_){var W=B.w(O.$u?Date.UTC(O.$y,_,ee):new Date(O.$y,_,ee),O);return z?W:W.endOf(f)},P=function(ee,_){return B.w(O.toDate()[ee].apply(O.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(_)),O)},G=this.$W,J=this.$M,Q=this.$D,re="set"+(this.$u?"UTC":"");switch(E){case x:return z?q(1,0):q(31,11);case d:return z?q(1,J):q(0,J+1);case c:var le=this.$locale().weekStart||0,Z=(G<le?G+7:G)-le;return q(z?Q-Z:Q+(6-Z),J);case f:case m:return P(re+"Hours",0);case u:return P(re+"Minutes",1);case s:return P(re+"Seconds",2);case i:return P(re+"Milliseconds",3);default:return this.clone()}},S.endOf=function(y){return this.startOf(y,!1)},S.$set=function(y,L){var O,z=B.p(y),E="set"+(this.$u?"UTC":""),q=(O={},O[f]=E+"Date",O[m]=E+"Date",O[d]=E+"Month",O[x]=E+"FullYear",O[u]=E+"Hours",O[s]=E+"Minutes",O[i]=E+"Seconds",O[l]=E+"Milliseconds",O)[z],P=z===f?this.$D+(L-this.$W):L;if(z===d||z===x){var G=this.clone().set(m,1);G.$d[q](P),G.init(),this.$d=G.set(m,Math.min(this.$D,G.daysInMonth())).$d}else q&&this.$d[q](P);return this.init(),this},S.set=function(y,L){return this.clone().$set(y,L)},S.get=function(y){return this[B.p(y)]()},S.add=function(y,L){var O,z=this;y=Number(y);var E=B.p(L),q=function(J){var Q=R(z);return B.w(Q.date(Q.date()+Math.round(J*y)),z)};if(E===d)return this.set(d,this.$M+y);if(E===x)return this.set(x,this.$y+y);if(E===f)return q(1);if(E===c)return q(7);var P=(O={},O[s]=n,O[u]=a,O[i]=o,O)[E]||1,G=this.$d.getTime()+y*P;return B.w(G,this)},S.subtract=function(y,L){return this.add(-1*y,L)},S.format=function(y){var L=this,O=this.$locale();if(!this.isValid())return O.invalidDate||g;var z=y||"YYYY-MM-DDTHH:mm:ssZ",E=B.z(this),q=this.$H,P=this.$m,G=this.$M,J=O.weekdays,Q=O.months,re=function(_,W,U,C){return _&&(_[W]||_(L,z))||U[W].slice(0,C)},le=function(_){return B.s(q%12||12,_,"0")},Z=O.meridiem||function(_,W,U){var C=_<12?"AM":"PM";return U?C.toLowerCase():C},ee={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:B.s(G+1,2,"0"),MMM:re(O.monthsShort,G,Q,3),MMMM:re(Q,G),D:this.$D,DD:B.s(this.$D,2,"0"),d:String(this.$W),dd:re(O.weekdaysMin,this.$W,J,2),ddd:re(O.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(q),HH:B.s(q,2,"0"),h:le(1),hh:le(2),a:Z(q,P,!0),A:Z(q,P,!1),m:String(P),mm:B.s(P,2,"0"),s:String(this.$s),ss:B.s(this.$s,2,"0"),SSS:B.s(this.$ms,3,"0"),Z:E};return z.replace(v,function(_,W){return W||ee[_]||E.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(y,L,O){var z,E=B.p(L),q=R(y),P=(q.utcOffset()-this.utcOffset())*n,G=this-q,J=B.m(this,q);return J=(z={},z[x]=J/12,z[d]=J,z[b]=J/3,z[c]=(G-P)/6048e5,z[f]=(G-P)/864e5,z[u]=G/a,z[s]=G/n,z[i]=G/o,z)[E]||G,O?J:B.a(J)},S.daysInMonth=function(){return this.endOf(d).$D},S.$locale=function(){return D[this.$L]},S.locale=function(y,L){if(!y)return this.$L;var O=this.clone(),z=F(y,L,!0);return z&&(O.$L=z),O},S.clone=function(){return B.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},$}(),H=Y.prototype;return R.prototype=H,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",x],["$D",m]].forEach(function($){H[$[1]]=function(S){return this.$g(S,$[0],$[1])}}),R.extend=function($,S){return $.$i||($(S,Y,R),$.$i=!0),R},R.locale=F,R.isDayjs=V,R.unix=function($){return R(1e3*$)},R.en=D[k],R.Ls=D,R.p={},R})})(co);var pi=co.exports;const Le=He(pi);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(g){return(g=+g)+(g>68?1900:2e3)},f=function(g){return function(w){this[g]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var v=w.match(/([+-]|\d\d)/g),T=60*v[1]+(+v[2]||0);return T===0?0:v[0]==="+"?-T:T}(g)}],d=function(g){var w=s[g];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(g,w){var v,T=s.meridiem;if(T){for(var I=1;I<=24;I+=1)if(g.indexOf(T(I,0,w))>-1){v=I>12;break}}else v=g===(w?"pm":"PM");return v},x={A:[i,function(g){this.afternoon=b(g,!1)}],a:[i,function(g){this.afternoon=b(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[a,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[l,f("seconds")],ss:[l,f("seconds")],m:[l,f("minutes")],mm:[l,f("minutes")],H:[l,f("hours")],h:[l,f("hours")],HH:[l,f("hours")],hh:[l,f("hours")],D:[l,f("day")],DD:[a,f("day")],Do:[i,function(g){var w=s.ordinal,v=g.match(/\d+/);if(this.day=v[0],w)for(var T=1;T<=31;T+=1)w(T).replace(/\[|\]/g,"")===g&&(this.day=T)}],M:[l,f("month")],MM:[a,f("month")],MMM:[i,function(g){var w=d("months"),v=(d("monthsShort")||w.map(function(T){return T.slice(0,3)})).indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[i,function(g){var w=d("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(g){this.year=u(g)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function m(g){var w,v;w=g,v=s&&s.formats;for(var T=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,B,Y){var H=Y&&Y.toUpperCase();return B||v[Y]||o[Y]||v[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,S,y){return S||y.slice(1)})})).match(n),I=T.length,A=0;A<I;A+=1){var k=T[A],D=x[k],V=D&&D[0],F=D&&D[1];T[A]=F?{regex:V,parser:F}:k.replace(/^\[|\]$/g,"")}return function(R){for(var B={},Y=0,H=0;Y<I;Y+=1){var $=T[Y];if(typeof $=="string")H+=$.length;else{var S=$.regex,y=$.parser,L=R.slice(H),O=S.exec(L)[0];y.call(B,O),R=R.replace(O,"")}}return function(z){var E=z.afternoon;if(E!==void 0){var q=z.hours;E?q<12&&(z.hours+=12):q===12&&(z.hours=0),delete z.afternoon}}(B),B}}return function(g,w,v){v.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var T=w.prototype,I=T.parse;T.parse=function(A){var k=A.date,D=A.utc,V=A.args;this.$u=D;var F=V[1];if(typeof F=="string"){var R=V[2]===!0,B=V[3]===!0,Y=R||B,H=V[2];B&&(H=V[2]),s=this.$locale(),!R&&H&&(s=v.Ls[H]),this.$d=function(L,O,z){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*L);var E=m(O)(L),q=E.year,P=E.month,G=E.day,J=E.hours,Q=E.minutes,re=E.seconds,le=E.milliseconds,Z=E.zone,ee=new Date,_=G||(q||P?1:ee.getDate()),W=q||ee.getFullYear(),U=0;q&&!P||(U=P>0?P-1:ee.getMonth());var C=J||0,M=Q||0,N=re||0,K=le||0;return Z?new Date(Date.UTC(W,U,_,C,M,N,K+60*Z.offset*1e3)):z?new Date(Date.UTC(W,U,_,C,M,N,K)):new Date(W,U,_,C,M,N,K)}catch{return new Date("")}}(k,F,D),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),Y&&k!=this.format(F)&&(this.$d=new Date("")),s={}}else if(F instanceof Array)for(var $=F.length,S=1;S<=$;S+=1){V[1]=F[S-1];var y=v.apply(this,V);if(y.isValid()){this.$d=y.$d,this.$L=y.$L,this.init();break}S===$&&(this.$d=new Date(""))}else I.call(this,A)}}})})(fo);var yi=fo.exports;const bi=He(yi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n,a){var l=n.prototype,i=l.format;a.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(b){switch(b){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),b==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),b==="W"?1:2,"0");case"k":case"kk":return c.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)(d)}}})})(ho);var wi=ho.exports;const vi=He(wi);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n,a){var l=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,b,x,m,g){var w=d.name?d:d.$locale(),v=i(w[b]),T=i(w[x]),I=v||T.map(function(k){return k.slice(0,m)});if(!g)return I;var A=w.weekStart;return I.map(function(k,D){return I[(D+(A||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||function(x){return x.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,w){return g||w.slice(1)})}(d.formats[b.toUpperCase()])},c=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):s(d,"months")},monthsShort:function(b){return b?b.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):s(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(b){return f(d.$locale(),b)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return c.bind(this)()},a.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(b){return f(d,b)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(d){return s(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(go);var Si=go.exports;const Ti=He(Si);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){var o="week",n="year";return function(a,l,i){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var b=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),x=this.diff(b,o,!0);return x<0?i(this).startOf("week").week():Math.ceil(x)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(mo);var $i=mo.exports;const xi=He($i);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),i=this.year();return l===1&&a===11?i+1:a===0&&l>=52?i-1:i}}})})(po);var Ci=po.exports;const Ei=He(Ci);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var i=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?i:this.add(l-i,"day")}}})})(yo);var Ni=yo.exports;const ki=He(Ni);var bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(bo);var Vi=bo.exports;const Ii=He(Vi);var wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(je,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(wo);var Oi=wo.exports;const Ri=He(Oi);Le.extend(Ti),Le.extend(vi),Le.extend(bi),Le.extend(xi),Le.extend(Ei),Le.extend(ki),Le.extend(Ii),Le.extend(Ri);const Oe={format(e,t){return Le(e).format(t)},parser(e,t){return Le(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const a=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[o,n,a].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o));let l=a.getDay(),i=a.getDate(),s=6-l;return n!==0&&(l=l==0?7:l,s=7-l),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=new Date(Number(e),0,1),i=Math.round((a.valueOf()-l.valueOf())/864e5);let s=a.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let i=a.getDay();if(n===0){const u=l-i*864e5,f=l+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=l-(i-1)*s,f=l+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Oe.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Oe.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),i=t.getTime();return l>i?a>=i&&a<=l:a>=l&&a<=i}},vo={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}},So={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 Di(e,t,o){return{props:{...ge,...Te,...vo,...So},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=r.computed(()=>y.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),x=r.computed(()=>y.value?"longTermKey":"normalKey"),m=q=>{if(y.value&&n.type==="daterange"){const P=[...d.value];P[0]=q,d.value=P}else d.value=q;s("update:modelValue",d.value),s("change",d.value)},g=r.computed(()=>y.value&&n.type==="daterange"?"date":n.type),w=e,v=r.computed(()=>({[`${w}`]:!0,"is-long":y.value}));let T=se(n,"hintText"),I=r.ref(!1);const A=q=>{let G=q.target.value;c.value=!0,de(T.value)||(I.value=!0),s("focus",G,q)},k=q=>{setTimeout(()=>{I.value&&(I.value=!1),c.value=!1},0);let G=q.target.value;n.maxLength&&G.length>Number(n.maxLength)&&(G=G.slice(0,Number(n.maxLength))),s("blur",G,q)},D=()=>{s("clear","")},V=q=>{s("calendar-change",q)},F=(q,P,G)=>{s("panel-change",q,P,G)},R=q=>{s("visible-change",q)},B=$e(r.computed(()=>n.longTermText),"longTermText",ke.Near),Y=$e(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",ke.Near),H=$e(r.computed(()=>n.longTermValue),"longTermValue",ke.Near),$=$e(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",ke.Near);let S=null;const y=r.ref(te(n.longTerm)),L=q=>{if(y.value=q,s("update:longTerm",q),q){if(S=d.value,n.type==="daterange"){const P=[];Array.isArray(H.value)?(P[0]=d.value?d.value[0]??H.value[0]:null,P[1]=H.value[1]??H.value[0]):(P[0]=d.value?d.value[0]??H.value:null,P[1]=y.value),P[0]||(P[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),d.value=P}else Array.isArray(H.value)?d.value=H.value[1]??H.value[0]:d.value=H.value,d.value||(d.value=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const P=[];P[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(S)?P[1]=S[1]:P[1]=S,P[0]||(P[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),d.value=P}else d.value=S;s("update:modelValue",d.value)}},O=te(n.isLongTerm);if(O){const q=()=>{if(y.value===!0){if(S=d.value,n.type==="daterange"){const P=[d.value[0]];Array.isArray(H.value)?P[1]=H.value[1]??H.value[0]:P[1]=y.value,P[0]||(P[0]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),P[1]||(P[1]=n.valueFormat?Oe.format(new Date,n.valueFormat):new Date),d.value=P}else d.value=H.value;s("update:modelValue",d.value)}else Me(H.value,d.value)&&(y.value=!0)};q(),r.watch([()=>n.longTerm],([P])=>{y.value!==P&&q()}),r.watch([()=>d.value],([P])=>{let G=!1;if(n.type==="daterange"&&Array.isArray(P))try{let J=P[1];if(!J)return;typeof J!="string"&&n.valueFormat&&(J=Oe.format(J,n.valueFormat));let Q=Array.isArray(H.value)?H.value[1]:H.value;(J===Q||Array.isArray($.value)&&$.value.findIndex(le=>J==le)!==-1)&&(G=!0)}catch(J){console.error(J)}y.value!==G&&(y.value=G)},{immediate:!0})}const z=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),E=r.ref();return be({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()}}),()=>{const P={...a.attrs,key:x.value,type:g.value,ref:E,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:b.value,valueFormat:n.valueFormat,"onUpdate:modelValue":m,onClear:D,onFocus:A,onBlur:k,onCalendarChange:V,onPanelChange:F,onVisibleChange:R},G={};a.slots["range-separator"]&&(G["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(G.default=a.slots.cell);const J=[],Q=r.h(p.ElDatePicker,P,G);J.push(Q);const re={default:()=>J};if(a.slots.default&&(re.label=a.slots.default),a.slots.fixedTip&&(re.fixedTip=a.slots.fixedTip),O){if(y.value){const _=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),W=r.h("input",{class:["fox-date-item__long-text"],value:B.value,readonly:!0}),U={class:z.value},C=r.h("div",U,{default:()=>[_,W]});J.push(C)}if(!i.value&&!l.value){const _={label:Y.value||B.value,disabled:i.value||l.value,modelValue:y.value,"onUpdate:modelValue":L},W=r.h(p.ElCheckbox,_),U=r.h("div",{class:{[`${w}__append`]:!0}},[W]);re.append=()=>U}}const Z={...Se(n,vo,So),class:{[`${w}__wrapper`]:!0,"has-append":O},hintText:T.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,Z,re)}}}}const{componentName:Fi,create:Ai,scope:Bi}=oe("date-item"),Fn=Ai(Di(Fi,Bi,me)),To={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Li(e,t,o){return{props:{...ge,...Te,...To},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0})),m=D=>{d.value=D,s("update:modelValue",D),s("change",D)};let g=se(n,"hintText"),w=r.ref(!1);const v=D=>{let F=D.target.value;c.value=!0,de(g.value)||(w.value=!0),s("focus",F,D)},T=D=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let F=D.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,D)},I=()=>{s("clear","")},A=D=>{s("visible-change",D)},k=r.ref();return be({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},handleOpen:()=>{k?.value.handleOpen()},handleClose:()=>{k?.value.handleClose()}}),()=>{const V={...a.attrs,ref:k,class:x.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:I,onFocus:v,onBlur:T,onVisibleChange:A},F={},R=[],B=r.h(p.ElTimePicker,V,F);R.push(B);const Y={default:()=>R};a.slots.default&&(Y.label=a.slots.default),a.slots.fixedTip&&(Y.fixedTip=a.slots.fixedTip);const $={...Se(n,To),hintText:g.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,$,Y)}}}}const{componentName:qi,create:Mi,scope:_i}=oe("time-item"),An=Mi(Li(qi,_i,me)),$o={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Pi(e,t,o){return{props:{...ge,...Te,...$o},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0})),m=k=>{d.value=k,s("update:modelValue",k),s("change",k)};let g=se(n,"hintText"),w=r.ref(!1);const v=k=>{let V=k.target.value;c.value=!0,de(g.value)||(w.value=!0),s("focus",V,k)},T=k=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let V=k.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),s("blur",V,k)},I=()=>{s("clear","")},A=r.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},handleOpen:()=>{A?.value.handleOpen()},handleClose:()=>{A?.value.handleClose()}}),()=>{const D={...a.attrs,ref:A,class:x.value,placeholder:f.placeholder.value,disabled:l.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":m,onClear:I,onFocus:v,onBlur:T},V={},F=[],R=r.h(p.ElTimeSelect,D,V);F.push(R);const B={default:()=>F};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const H={...Se(n,$o),hintText:g.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,H,B)}}}}const{componentName:ji,create:Hi,scope:zi}=oe("time-select-item"),Bn=Hi(Pi(ji,zi,me));function xo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let a=n;for(let l=o.length-1;l>=n;l--)if(o.charAt(l)!="0"){a=l;break}return a-n<t?a=n+t+1:a!=n&&(a+=1),a>o.length?o=o.padEnd(a,"0"):o=o.substring(0,a),o}function Co(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=br(`${e}`,`${t}`);return xo(n)}else{let n=rn(`${e}`,wr(`${t}`),20);return xo(n)}}function Ki(e,t=-1,o=!1,n=3,a=","){return Ct(e,t,o,n,a)}function Eo(e,t,o,n,a=!0){if(e=="")return"";if(e=vr(e),t=ve(t),t==1)return e;if(n)e=Co(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(ve(o)+2,"0"):e=rn(e,1,ve(o)));else{let l=-1*t;e=Co(e,l)}return e}function No(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),a=on(e,t.min);if(n&&a==-1||!n&&(a==0||a==-1)){let l="请输入不小于 {0} 的数值";o.message=l.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=te(t.maxInclude),a=on(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ko={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 Wi(e,t,o){return{props:{...ge,...Te,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(!1),f=se(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([$,S,y])=>{if(de($)){c.value="";return}const L=Eo($,S,y,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:b}=De.useFoxI18n(t),x=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!de(c.value)?$=Ki(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=b(["placeholder",$]),$}),m=e,g=r.computed(()=>({[m]:!0,[`${m}__disabled`]:l.value,[`${m}__placeholder`]:c.value.length>0})),w=$e(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const v=r.ref(""),T=r.computed(()=>{let $=v.value;return de($)&&($=n.errorTip??""),$}),I=r.ref(""),A=r.ref(!1),k=($,S)=>{if($=`${$}`,de($)){c.value="",f.value="",S.forEach(y=>{s(y,"")}),te(n.showTip)&&A.value&&(A.value=!1);return}if($.length>=2){let y=$;if(y.charAt(0)=="-"&&(y=y.substring(1)),y.length>=2&&y.charAt(0)=="0"&&y.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!Vr($)){r.triggerRef(c);return}if(n.integerLength!=-1&&Ir($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Or($)>Number(n.decimalLength)){r.triggerRef(c);return}let y=No($,n);if(y.maxValid===!1){v.value=y.message,r.triggerRef(c);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(c);return}I.value=$,te(n.showTip)&&(A.value=$.length>0),c.value=$,f.value=Eo($,n.rates,n.precision,!0),S.forEach(y=>{s(y,f.value)})},D=$=>{k($,["update:modelValue","input"])},V=$=>{k($,["update:modelValue","change"])},F=$=>{if(u.value=!0,te(n.showTip)){let S=c.value;de(S)&&(S=n.hintText),de(S)||(I.value=S,A.value=!0)}v.value="",s("focus",f.value,$)},R=$=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&A.value===!0&&(A.value=!1)},0),!de(c.value)){let S=No(c.value,n);if(S.minValid===!1||S.maxValid===!1){v.value=S.message;return}}s("update:modelValue",f.value,$),s("blur",f.value,$)},B=()=>{s("clear","")},Y=r.computed(()=>dt(n.unit)>0),H=r.ref();return be({focus:()=>{H?.value.focus()},blur:()=>{H?.value.blur()},select:()=>{H?.value.select()}}),()=>{const S={...Be(a.attrs),ref:H,class:g.value,type:"digit",maxlength:n.maxLength,placeholder:x.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onInput:D,onChange:V,onFocus:F,onBlur:R},y={};a.slots.prepend&&(y.prepend=a.slots.prepend),a.slots.append&&(y.append=a.slots.append),a.slots.prefix&&(y.prefix=a.slots.prefix),a.slots.suffix?y.suffix=a.slots.suffix:Y.value&&(y.suffix=()=>[n.unit]);const L=[],O=r.h(p.ElInput,S,y);L.push(O);const z={default:()=>L};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const q={...Se(n,ko),errorTip:T.value,hintText:I.value,hintVisible:A.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,q,z)}}}}const{componentName:Yi,create:Gi,scope:Ui}=oe("money-item"),Ln=Gi(Wi(Yi,Ui,me)),Vo={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 Xi(e,t,o){return{props:{...ge,...Te,...Vo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0,[`${b}__append`]:D.value})),m=r.computed(()=>({[`${b}__unit`]:!0})),g=F=>{d.value=F,s("update:modelValue",F),s("input",F)},w=F=>{s("change",F)};let v=se(n,"hintText"),T=r.ref(!1);const I=F=>{let B=F.target.value;c.value=!0,de(v.value)||(T.value=!0),s("focus",B,F)},A=F=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let B=F.target.value;n.maxLength&&B.length>Number(n.maxLength)&&(B=B.slice(0,Number(n.maxLength))),s("blur",B,F)},k=()=>{s("clear","")},D=r.computed(()=>dt(n.unit)>0),V=r.ref();return be({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()}}),()=>{const R={...Be(a.attrs),ref:V,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onChange:w,onInput:g,onFocus:I,onBlur:A},B={},Y=[],H=r.h(p.ElInputNumber,R,B);Y.push(H);const $={default:()=>Y};a.slots.default&&($.label=a.slots.default),a.slots.fixedTip&&($.fixedTip=a.slots.fixedTip);const y={...Se(n,Vo),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};if(a.slots.append)$.append=a.slots.append;else if(D.value){const O={class:m.value},z=r.h("div",O,[n.unit]);$.append=()=>z}return r.h(o,y,$)}}}}const{componentName:Zi,create:Ji,scope:Qi}=oe("input-number-item"),qn=Ji(Xi(Zi,Qi,me));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Je(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function es(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let ts=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Ae(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function ns(){const e=r.getCurrentInstance();return new ts(e.proxy)}function Mn(e,t,o){const n=Ze(e,t),a=Ze(e,o);if(n!==a)return!1;const l=Je(e,t),i=Je(e,o);return l===i}function Io(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];let l=n;for(let i=0;Array.isArray(l)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Io(e,s,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ze(e,f)===s;else if(o==="item")u=Mn(e,f,s);else{let c=Je(e,f);c==null&&(c=Ze(e,f)),u=c===s}if(u){a.push(f),l=es(e,f);break}}if(!u)break}}return a}function rs(e){return{text:e,value:e}}const Oo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1}};function os(e,t,o){return{props:{...ge,...Te,...Oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(ee=>Ze(n,ee)).join(" "):""),x=(Z,ee,_,W=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===Z)return;c.value=Z;const M=r.toRaw(Z);if(W){const N=le?.value.getCheckedNodes();if(N)if(n.multiple){const K=[];N.forEach(j=>{const ne=(j.pathNodes??[]).map(ie=>ie.data);K.push(ne)}),s("update:pathNodes",K)}else{const j=(N[0]?.pathNodes??[]).map(X=>X.data);s("update:pathNodes",j)}s("update:modelValue",M),s("change",M)}}const U=Io(n,Z,ee,_);if(U===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,W&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let C=!0;if(U.length!==d.value.length)C=!1;else for(let M=0;M<U.length;M++){const N=U[M],K=d.value[M];if(Array.isArray(N)){if(!Array.isArray(K)||N.length!==K.length)C=!1;else for(let j=0;j<N.length;j++)if(!Mn(n,N[j],K[j])){C=!1;break}}else Mn(n,N,K)||(C=!1);if(!C)break}if(!C){d.value=U;let M=[],N=[];U.forEach(j=>{if(Array.isArray(j)){let X=[],ne=[];for(let ie of j)X.push(Je(n,ie)),n.valueType==="text"?ne.push(Ze(n,ie)):n.valueType==="item"?ne.push(ie):ne.push(Je(n,ie));M.push(X),N.push(ne)}else M.push(Je(n,j)),n.valueType==="text"?N.push(Ze(n,j)):n.valueType==="item"?N.push(j):N.push(Je(n,j))}),c.value=M;const K=r.toRaw(N);W&&(s("update:pathNodes",U),s("update:modelValue",K),s("change",K))}},m=r.ref([]),g=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,Z=>te(Z)),w=ns(),v=async(Z,ee)=>{if(Z){const _=await w.load("cascader",Z,ee);if(_.length>0)if(typeof _[0]=="string"){let C=_.map(M=>rs(M));m.value=C}else m.value=_}};r.watch([()=>n.source,()=>n.params],async([Z,ee])=>{v(Z,ee)},{immediate:!(g.value||n.lazy)});let T=!1;const I=()=>{T||(T=!0,v(n.source,n.params))};r.watch([()=>m.value,()=>n.modelValue],([Z,ee])=>{x(ee,n.valueType,Z,!1)}),n.lazy&&x(n.modelValue,"value",[],!1);let A=null,k=r.ref(!1);typeof n.remoteMethod=="function"&&(A=async Z=>{if(Z!=null){k.value=!0;try{const ee=await n.remoteMethod(Z);m.value=ee}catch(ee){console.error(ee)}k.value=!1}});const D=r.ref(!1),V=e,F=r.computed(()=>({[V]:!0})),R=r.computed(()=>{let Z={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(Z.multiple=!0),n.props&&Object.assign(Z,n.props),n.lazy&&(Z.lazy=!0,Z.lazyLoad=async(ee,_)=>{const W=await w.load("cascader",n.source,ee,!0);_(W)}),Z}),B=Z=>{n.allowCreate?(s("update:modelValue",Z),s("change",Z),c.value=Z):x(Z,"value",m.value,!0)};let Y=se(n,"hintText"),H=r.ref(!1);const $=Z=>{let _=Z.target.value;D.value=!0,de(Y.value)||(H.value=!0),s("focus",_,Z)},S=Z=>{setTimeout(()=>{H.value&&(H.value=!1),D.value=!1},0);let _=Z.target.value;n.maxLength&&_.length>Number(n.maxLength)&&(_=_.slice(0,Number(n.maxLength))),G.value||s("blur",_,Z)},y=()=>{s("clear","")},L=r.ref(!1);let O=null;const z=()=>{n.showTooltip&&L.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{L.value=!0},150))},E=()=>{O&&(clearTimeout(O),L.value=!1,O=null)},q=r.computed(()=>L.value||H.value),P=r.computed(()=>L.value?b.value:Y.value),G=r.ref(!1),J=Z=>{G.value=Z,s("visible-change",Z),Z||s("selected")},Q=Z=>{s("remove-tag",Z)},re=Z=>{s("expand-change",Z)},le=r.ref();return be({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes()}),()=>{const ee={...a.attrs,ref:le,class:F.value,props:R.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||i.value,options:m.value,modelValue:c.value,onClear:y,onChange:B,onFocus:$,onBlur:S,onVisibleChange:J,onRemoveTag:Q,expandChange:re};typeof A=="function"&&(ee["remote-method"]=A,ee.loading=k.value);const _={};a.slots.option&&(_.default=a.slots.option),a.slots.empty&&(_.empty=a.slots.empty);const W=[],U=r.h(p.ElCascader,ee,_);W.push(U);const C={default:()=>W};a.slots.default&&(C.label=a.slots.default),a.slots.fixedTip&&(C.fixedTip=a.slots.fixedTip);const N={...Se(n,Oo),hintText:P.value,hintVisible:q.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:z,onMouseleave:E};return g.value&&!n.lazy&&(N["appear-listen"]=!0,N.onAppear=I),r.h(o,N,C)}}}}const{componentName:as,create:ls,scope:is}=oe("cascader-item"),_n=ls(os(as,is,me)),Ro={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ss(e,t,o){return{props:{...ge,...Te,...Ro},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=De.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=se(n,"modelValue"),b=e,x=r.computed(()=>({[b]:!0})),m=V=>{d.value=V,s("update:modelValue",V),s("input",V)},g=V=>{s("change",V)},w=V=>{s("select",V)};let v=se(n,"hintText"),T=r.ref(!1);const I=V=>{let R=V.target.value;c.value=!0,de(v.value)||(T.value=!0),s("focus",R,V)},A=V=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,V)},k=()=>{s("clear","")},D=r.ref();return be({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const F={...a.attrs,ref:D,class:x.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:i.value,modelValue:d.value,onClear:k,onChange:g,onInput:m,onFocus:I,onBlur:A,onSelect:w},R={};a.slots.prepend&&(R.prepend=a.slots.prepend),a.slots.append&&(R.append=a.slots.append),a.slots.prefix&&(R.prefix=a.slots.prefix),a.slots.suffix&&(R.suffix=a.slots.suffix),a.slots.option&&(R.default=a.slots.option);const B=[],Y=r.h(p.ElAutocomplete,F,R);B.push(Y);const H={default:()=>B};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const S={...Se(n,Ro),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,S,H)}}}}const{componentName:us,create:cs,scope:fs}=oe("autocomplete-item"),Pn=cs(ss(us,fs,me));function ds(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[a]){let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<l.length;u++){let f=t[u],c=l[u];const d=f.find(b=>b[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<l.length;f++){let c=l[f],d=u.find(b=>b[n]===c);if(!d)break;i.push(d[o]),u=d[a]}}return i}let hs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function gs(){const e=r.getCurrentInstance();return new hs(e.proxy)}const Do={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 ms(e,t){return{props:{...Do},setup(o,{attrs:n,slots:a}){const l=gs(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await l.load(o.sourceType,f,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=ds(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return a.default?a.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,f,{default:()=>s.value}):r.h(u,f,s.value)}}}}const{componentName:vf,create:ps,scope:Sf}=oe("mapping"),vt=ps(ms());function ys(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function bs(e,t){return{props:{...Do},setup(o,{attrs:n,slots:a}){return()=>{const l={default:i=>{const s=ys(i.row,i.column.property);return a.default?r.h(vt,{...o,modelValue:s},{default:a.default}):r.h(vt,{...o,modelValue:s})}};return r.h(p.ElTableColumn,{...n},l)}}}}const{componentName:Tf,create:ws,scope:$f}=oe("table-mapping-column"),jn=ws(bs()),vs=Symbol.for("TableStateKey");function Fo(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function Ss(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject(vs,{});return()=>{const l=a.currentRow?a.currentRow.value:null,i={default:s=>{const u=Fo(s.row,s.column.property),f=l?Fo(l,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},b=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),x={class:{"el-radio":!0,"is-checked":c}};return r.h("label",x,[b])}};return r.h(p.ElTableColumn,{...n},i)}}}}const{componentName:xf,create:Ts,scope:Cf}=oe("table-radio-column"),Hn=Ts(Ss()),$s={},xs={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"},Cs=[r.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 Es(e,t){return r.openBlock(),r.createElementBlock("svg",xs,Cs)}const Ns=Ve($s,[["render",Es]]),{componentName:Nf,create:ks,scope:kf}=oe("table-setting"),Vs={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:"不固定"}},Is=ks({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:Ns,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Vs},emits:[],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed===""||E.fixed===!0||E.fixed==="left")),i=r.computed(()=>a.value.filter(E=>E.label===""||E.type?!1:E.fixed==="right")),s=r.computed(()=>a.value.filter(E=>!(E.label===""||E.type||E.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||i.value.length>0)&&s.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>i.value.length>0),d=E=>E.length>1,b=E=>{const q=[];a.value=E.map((G,J)=>(!(G.label===""||G.type)&&G.visible!==!1&&q.push(G.prop),{...G,sortIndex:J})),s.value.length+l.value.length+i.value.length===q.length?T.value=!0:q.length>0&&(I.value=!0),D.value=q},x=E=>E?E.type?E.type:E.label?E.prop:"":"",m=(E,q)=>{if(E.length!==q.length)return!1;const P=E.map(G=>x(G));for(let G of q){const J=x(G);if(P.indexOf(J)===-1)return!1}return!0},g=E=>{if(!E){const q=e.tableRef.getColumnSetting(),P=q.srcColumnPropertyList;n=P.map((G,J)=>({...G,sortIndex:J})),E=q.columnPropertyList,E&&E.length>0&&m(P,E)||(E=P)}b(E)},w=()=>{e.tableRef.setColumnSetting(a.value)},v=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),I=r.ref(!1),A=E=>{const q=[];a.value.forEach(G=>{E&&!(G.label===""||G.type)&&q.push(G.prop),G.visible=E}),T.value=!1,I.value=!1,s.value.length+l.value.length+i.value.length===q.length?T.value=!0:q.length>0&&(I.value=!0),D.value=q,w()},k=()=>{g(n),w()},D=r.ref([]),V=E=>{a.value.forEach(P=>{if(P.label===""||P.type)return;const G=E.indexOf(P.prop)!==-1;P.visible=G}),T.value=!1,I.value=!1;const q=s.value.length+l.value.length+i.value.length;E.length===q?T.value=!0:E.length>0&&(I.value=!0),w()},F=()=>{g()};r.onMounted(()=>{setTimeout(()=>{g()},50)});const R={currentRow:null,index:null,roleType:null},B=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,B(E)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:T,isIndeterminate:I,handleCheckAllChange:A,handleReset:k,checkedValue:D,handleCheckChange:V,onShow:F,onDragStart:E=>{const q=E.currentTarget;q&&q.dataset&&(R.roleType=q.dataset.roleType,R.index=q.dataset.index)},onDragEnd:E=>{R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null),R.index=null,R.roleType=null},onDragOver:E=>{const q=E.currentTarget;E.relatedTarget;const P=B(q);if(!P)return;const G=P.dataset&&P.dataset.roleType;R.roleType===G&&(E.preventDefault(),R.currentRow&&R.currentRow!==P&&R.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),R.currentRow=P)},onDragLeave:E=>{E.preventDefault(),R.currentRow&&(R.currentRow.classList.remove("is-dragover"),R.currentRow=null)},onDrop:E=>{const q=E.currentTarget,P=B(q);if(!P)return;const G=P.dataset&&P.dataset.roleType;if(R.roleType!==G)return;E.preventDefault();const J=Number(R.index),Q=Number(P.dataset.index);if(J!==Q){if(J<Q){const re=a.value[J];a.value.splice(J,1),a.value.splice(Q,0,re)}else{const re=a.value[J];a.value.splice(J,1),a.value.splice(Q+1,0,re)}b(a.value),w()}},toLeftFixed:E=>{const q=a.value[E];q.fixed="left",w()},toRightFixed:E=>{const q=a.value[E];q.fixed="right",w()},toUnFixed:E=>{const q=a.value[E];q.fixed=void 0,w()},checkboxLabelStyle:v}}}),Os={class:"fox-table-setting"},Rs={class:"fox-table-setting__header"},Ds={class:"fox-table-setting__body"},Fs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},As={key:0,class:"fox-table-setting__body-title"},Bs=["data-index","draggable"],Ls={class:"tools-item"},qs={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Ms={key:0,class:"fox-table-setting__body-title"},_s=["data-index","draggable"],Ps={class:"tools-item"},js={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Hs={key:0,class:"fox-table-setting__body-title"},zs=["data-index","draggable"],Ks={class:"tools-item"};function Ws(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("Download"),x=r.resolveComponent("fox-checkbox"),m=r.resolveComponent("FoxCheckboxGroup"),g=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(g,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Os,[r.createElementVNode("div",Rs,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=w=>e.isCheckAll=w),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Ds,[r.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=w=>e.checkedValue=w),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",As,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[2]||(t[2]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[3]||(t[3]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[4]||(t[4]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[5]||(t[5]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ls,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Bs))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",qs,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Ms,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[7]||(t[7]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[8]||(t[8]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[9]||(t[9]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[10]||(t[10]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ps,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,_s))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Hs,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,w=>(r.openBlock(),r.createElementBlock("div",{key:w.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":w.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...v)=>e.onDragStart&&e.onDragStart(...v)),onDragend:t[12]||(t[12]=(...v)=>e.onDragEnd&&e.onDragEnd(...v)),onDrop:t[13]||(t[13]=(...v)=>e.onDrop&&e.onDrop(...v)),onDragover:t[14]||(t[14]=(...v)=>e.onDragOver&&e.onDragOver(...v)),onDragleave:t[15]||(t[15]=(...v)=>e.onDragLeave&&e.onDragLeave(...v))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(x,{class:"checkbox-item",label:w.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(w.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ks,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toUnFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:v=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,zs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Kt=Ve(Is,[["render",Ws]]);let Ys=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,i,s){if(Array.isArray(o)){let f=(n-1)*a,c=f+a;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,a,l,i,s]);const u=Ae(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(ze(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,i,s]))}};function Gs(){const e=r.getCurrentInstance();return new Ys(e.proxy)}class Us{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Ae(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Ae(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Ae(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Ao(){const e=r.getCurrentInstance();return new Us(e.proxy)}const Xs=Symbol.for("TableStateKey");function Zs(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],i=0,s=l.indexOf("["),u=s==-1?-1:l.indexOf("]",s);for(;s!==-1&&u!==-1;){let f=l.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=l.substring(0,s);n=n[d][c]}else n=n[c];i++}s=l.indexOf("[",u),u=s==-1?-1:l.indexOf("]",s)}i===0&&(n=n[l])}return n}function zn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],i=Zs(n,a);if(l!==i)return!1}return!0})}const Bo={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"}},Lo={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"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Kn={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:"不固定"}};function Js(e,t,o){return{inheritAttrs:!1,props:{...ge,...Te,...Bo,...Lo,...Kn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=De.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...N){return I.value}}},n.prop??a.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),f=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,N=>{b.value=N});const x=N=>{b.value=N,i("page-index-change",N)},m=r.ref(n.pageSize);r.watch(()=>n.pageSize,N=>{m.value=N});const g=N=>{m.value=N,i("page-size-change",N)},w=r.shallowRef({}),v=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),I=r.ref(),A=Gs();let k=!0;const D=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),V=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>te(N)),F=async(N,K,j,X)=>{try{const ne=await A.load("table",N,K,j,X,k,l.value);T.value=ne.totalSize,I.value=ne.page}catch(ne){console.error("[FoxUI] Load Table Data Fail",ne),T.value=0,I.value=[]}k=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([b,m],([N,K],[j,X])=>{K!==X&&(b.value=1,N=1),F(n.data,N,K,v.value)}),r.watch([()=>n.data,v],([N,K],[j,X])=>{D()&&(N!==j&&(k=!0),!(!Array.isArray(N)&&Me(N,j)&&Me(K,X))&&F(N,b.value,m.value,K))},{deep:!0});const R=(N={},K=!1)=>new Promise(j=>{w.value=r.toRaw(N??{}),r.triggerRef(w),K||(b.value=n.pageIndex??1),r.nextTick(async()=>{await F(n.data,b.value,m.value,v.value),j()})}),B=()=>{T.value=0,I.value=[]};let Y=!1;const H=()=>{Y||(Y=!0,R())};D()&&!V.value&&R();const $=r.ref(null);r.provide(Xs,{currentRow:$});const S=(N,K)=>{$.value=N,i("current-change",N,K)},y=(N,K,j)=>{i("row-click",N,K,j),te(n.rowClickSelectable)===!0&&M?.value.toggleRowSelection(N)},L=[],O=(N,K)=>{if(i("expand-change",N,K),te(n.uniqueExpansion))if(Array.isArray(K)&&K.length==0){const j=L.length;L.splice(0,j)}else{L.forEach(X=>{X!==N&&M?.value.toggleRowExpansion(X,!1)});const j=L.length;L.splice(0,j,N)}},z=a.attrs.id??n.prop??a.attrs.name,E=Ao(),q=r.ref([]);let P=[];const G=()=>({srcColumnPropertyList:P.map(K=>({...K})),columnPropertyList:q.value}),J=N=>{q.value=[...N],re()},Q=async()=>{const N=await E.load(z);N&&(q.value=N)},re=()=>{E.save(z,q.value)},le=()=>{E.remove(z)};Q();const Z=N=>N?N.type?N.type:N.label?N.prop:"":"",ee=r.computed(()=>{if(typeof a.slots.default=="function"){const N=a.slots.default(),K=new Map;if(P=[],N.forEach(j=>{const X=j;if(!X.props)return;const ne=Z(X.props);K.set(ne,j);const ie={label:"",prop:""};Object.assign(ie,X.props),P.push(ie)}),q.value.length===P.length){const j=[];for(let X of q.value){const ne=Z(X),ie=K.get(ne);if(!ie)return N;if(X.visible===!1)continue;const ce=ie;ce.props.fixed=X.fixed,j.push(ce)}return j}return N}return[]}),_=r.shallowRef(new Map),W=({column:N,rowIndex:K})=>{const j=`${K}_${N.property}`;return _.value.get(j)??""},U=N=>typeof N=="function"?K=>{const j=[];let X=W(K);return X&&j.push(X),X=N(K),X&&j.push(X),j.length===0?"":j.join(" ")}:W,C=(N,K,j)=>{const X=`${N}_${K}`;j?_.value.set(X,j):_.value.delete(X),r.triggerRef(_)},M=r.ref();return be({clearSelection:()=>M?.value.clearSelection(),getSelectionRows:()=>M?.value.getSelectionRows(),toggleRowSelection:(N,K)=>{M?.value.toggleRowSelection(N,K)},toggleRowSelectionByProp:(N,K)=>{if(!I.value)return;const j=zn(I.value,N);j.length!==0&&j.forEach(X=>{M?.value.toggleRowSelection(X,K)})},toggleAllSelection:()=>{M?.value.toggleAllSelection()},toggleRowExpansion:(N,K)=>{M?.value.toggleRowExpansion(N,K)},toggleRowExpansionByProp:(N,K)=>{if(!I.value)return;const j=zn(I.value,N);j.length!==0&&j.forEach(X=>{M?.value.toggleRowExpansion(X,K)})},setCurrentRow:N=>{M?.value.setCurrentRow(N)},setCurrentRowByProp:N=>{if(!I.value)return;const K=zn(I.value,N);K.length!==0&&M?.value.setCurrentRow(K[0])},getCurrentRow:()=>$.value,clearSort:()=>{M?.value.clearSort()},clearFilter:N=>{M?.value.clearFilter(N)},doLayout:()=>{M?.value.doLayout()},sort:(N,K)=>{M?.value.sort(N,K)},scrollTo:(N,K)=>{M?.value.scrollTo(N,K)},setScrollTop:N=>{M?.value.setScrollTop(N)},setScrollLeft:N=>{M?.value.setScrollLeft(N)},loadData:R,clearData:B,getData(){return I.value},getTotalSize(){return T.value},getPageIndex(){return b.value},getPageSize(){return m.value},getColumnSetting:G,setColumnSetting:J,removeColumnSetting:le,setCellClassName:C}),()=>{const K={...Be(a.attrs),onCurrentChange:S,onRowClick:y,onExpandChange:O,data:I.value,ref:M,class:u.value,"cell-class-name":U(n.cellClassName)},j={};a.slots.default&&(j.default=()=>ee.value),a.slots.append&&(j.append=a.slots.append),a.slots.empty&&(j.empty=a.slots.empty);const X=[],ne=r.h(p.ElTable,K,j);X.push(ne);let ie=null;if(typeof a.slots.pagination=="function")ie=a.slots.pagination();else if(n.showPagination){const qe={class:d.value,total:T.value,pageSize:m.value,"onUpdate:pageSize":g,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":x,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ie=r.h(p.ElPagination,qe)}if(n.showSetting){const qe=[];ie&&qe.push(ie);const dr=r.h(p.ElIcon,{class:f.value},{default:()=>r.h(Ne.Setting)}),ff=Dr(n,Kn),df=r.h(Kt,{...ff,tableRef:{getColumnSetting:G,setColumnSetting:J,removeColumnSetting:le}},{default:()=>dr});qe.push(df);const hf=r.h("div",{class:c.value},qe);X.push(hf)}else ie&&X.push(ie);const ce={default:()=>X},Re={...Se(n,Bo,Lo,Kn),prop:`${n.prop}_item`};return Re.contentClass=`${s}__wrap`,Re.errorMarkClass="is-table-error",V.value&&D()&&(Re["appear-listen"]=!0,Re.onAppear=H),r.h(o,Re,ce)}}}}const{componentName:Qs,create:eu,scope:tu}=oe("table-item"),Wn=eu(Js(Qs,tu,me));function at(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function St(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function nu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ru=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ou(){const e=r.getCurrentInstance();return new ru(e.proxy)}function qo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=at(e,t),a=at(e,o);if(n!==a)return!1;const l=St(e,t),i=St(e,o);return l===i}function au(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let a=null;for(let l of n){let i=!1;if(o==="text")i=at(e,l)===t;else if(o==="item")i=qo(e,l,t);else{let s=St(e,l);s==null&&(s=at(e,l)),i=s===t}if(i){a=l;break}}return a}function lu(e){return{text:e,value:e}}function iu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Mo={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 su(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...Mo},emits:["change","update:modelValue"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(V,F,R,B=!0)=>{const Y=au(n,V,F,R);if(Y===null){if(f.value===null)return;f.value=null,u.value=null,B&&(s("update:modelValue",null),s("change",null));return}if(!qo(n,Y,f.value)){u.value=V;const $=r.toRaw(Y);f.value=$;let S=null;n.valueType==="text"?S=at(n,$):n.valueType==="item"?S=$:S=St(n,$),B&&(s("update:modelValue",S),s("change",S))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,V=>te(V)),x=ou(),m=async(V,F)=>{if(V){const R=await x.load("radio",V,F);if(R.length>0)if(typeof R[0]=="string"){let H=R.map($=>lu($));d.value=H}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([V,F])=>{m(V,F)},{immediate:!b.value});let g=!1;const w=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,F])=>{c(F,n.valueType,V,!1)});const v=e,T=r.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let A=se(n,"hintText"),k=se(n,"hintVisible");const D=(V,F)=>{const R=[];return V.forEach((B,Y)=>{const H=St(n,B),$=at(n,B);let S=nu(n,B);l.value===!0&&(S=l.value),i.value===!0&&(S=i.value);const y=iu(n,B,Y)??{},L=`${H}_${Y}`,O={...y,key:L,label:H,size:n.size,border:te(n.border)};S&&(O.disabled=S),n.itemType==="button"?R.push(r.h(p.ElRadioButton,O,{default:()=>[$]})):typeof F=="function"?R.push(r.h(p.ElRadio,O,{default:()=>F(B)})):R.push(r.h(p.ElRadio,O,{default:()=>[$]}))}),R};return()=>{const F={...Be(a.attrs),class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},R=[],B={};a.slots.options?B.default=a.slots.options:B.default=()=>D(d.value,a.slots.text);const Y=r.h(p.ElRadioGroup,F,B);R.push(Y);const H={default:()=>R};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const S={...Se(n,Mo),hintText:A.value,hintVisible:k.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=w),r.h(o,S,H)}}}}const{componentName:uu,create:cu,scope:fu}=oe("radio-item"),Yn=cu(su(uu,fu,me));function lt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function it(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function du(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class hu{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Ae(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(ze(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function gu(){const e=r.getCurrentInstance();return new hu(e.proxy)}function _o(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=lt(e,t),a=lt(e,o);if(n!==a)return!1;const l=it(e,t),i=it(e,o);return l===i}function mu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const a=[];return t.forEach(l=>{for(let i of n){let s=!1;if(o==="text")s=lt(e,i)===l;else if(o==="item")s=_o(e,i,l);else{let u=it(e,i);u==null&&(u=lt(e,i)),s=u===l}if(s){a.push(i);break}}}),a}function pu(e){return{text:e,value:e}}function yu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Po={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 bu(e,t,o){return{inheritAttrs:!0,props:{...ge,...Te,...Po},emits:["change","update:modelValue"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(V,F,R,B=!0)=>{const Y=mu(n,V,F,R);if(Y===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],B&&(s("update:modelValue",[]),s("change",[]));return}let H=!0;if(Y.length!==f.value.length)H=!1;else for(let $=0;$<Y.length;$++){const S=Y[$],y=f.value[$];if(!_o(n,S,y)){H=!1;break}}if(!H){f.value=Y;let $=[],S=[];Y.forEach(L=>{$.push(it(n,L)),n.valueType==="text"?S.push(lt(n,L)):n.valueType==="item"?S.push(L):S.push(it(n,L))}),u.value=$;const y=r.toRaw(S);B&&(s("update:modelValue",y),s("change",y))}},d=r.ref([]),b=$e(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,V=>te(V)),x=gu(),m=async(V,F)=>{if(V){const R=await x.load("checkbox",V,F);if(R.length>0)if(typeof R[0]=="string"){let H=R.map($=>pu($));d.value=H}else d.value=R}};r.watch([()=>n.source,()=>n.params],async([V,F])=>{m(V,F)},{immediate:!b.value});let g=!1;const w=()=>{g||(g=!0,m(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([V,F])=>{c(F,n.valueType,V,!1)});const v=e,T=r.computed(()=>({[v]:!0,[`is-${n.direction}`]:!0})),I=V=>{c(V,"value",d.value,!0)};let A=se(n,"hintText"),k=se(n,"hintVisible");const D=(V,F)=>{const R=[];return V.forEach((B,Y)=>{const H=it(n,B),$=lt(n,B);let S=du(n,B);l.value===!0&&(S=l.value),i.value===!0&&(S=i.value);const y=yu(n,B,Y)??{},L=`${H}_${Y}`,O={...y,key:L,class:n.itemClass,label:H,size:n.size,border:te(n.border)};S&&(O.disabled=S),n.itemType==="button"?R.push(r.h(p.ElCheckboxButton,O,{default:()=>[$]})):typeof F=="function"?R.push(r.h(p.ElCheckbox,O,{default:()=>F(B)})):R.push(r.h(p.ElCheckbox,O,{default:()=>[$]}))}),R};return()=>{const F={...Be(a.attrs),class:T.value,disabled:l.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:I},R=[],B={};a.slots.options?B.default=a.slots.options:B.default=()=>D(d.value,a.slots.text);const Y=r.h(p.ElCheckboxGroup,F,B);R.push(Y);const H={default:()=>R};a.slots.default&&(H.label=a.slots.default),a.slots.fixedTip&&(H.fixedTip=a.slots.fixedTip);const S={...Se(n,Po),hintText:A.value,hintVisible:k.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(S["appear-listen"]=!0,S.onAppear=w),r.h(o,S,H)}}}}const{componentName:wu,create:vu,scope:Su}=oe("checkbox-item"),Gn=vu(bu(wu,Su,me)),jo={modelValue:{type:[Number,String],required:!1}};function Tu(e,t,o){return{props:{...ge,...Te,...jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue",g=>ve(g)),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{s("update:modelValue",g),s("change",g)};let b=se(n,"hintText"),x=r.ref(!1);const m=r.ref();return be({}),()=>{const w={...Be(a.attrs),ref:m,class:c.value,readonly:i.value||l.value,modelValue:u.value,onChange:d},v={},T=[],I=r.h(p.ElRate,w,v);T.push(I);const A={default:()=>T};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const D={...Se(n,jo),hintText:b.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,D,A)}}}}const{componentName:$u,create:xu,scope:Cu}=oe("rate-item"),Un=xu(Tu($u,Cu,me)),Ho={modelValue:{type:[Boolean,String,Number],required:!1}};function Eu(e,t,o){return{props:{...ge,...Te,...Ho},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),u=se(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=g=>{s("update:modelValue",g),s("change",g)};let b=se(n,"hintText"),x=se(n,"hintVisible");const m=r.ref();return be({}),()=>{const w={...Be(a.attrs),ref:m,class:c.value,readonly:i.value,disabled:l.value,modelValue:u.value,onChange:d},v={},T=[],I=r.h(p.ElSwitch,w,v);T.push(I);const A={default:()=>T};a.slots.default&&(A.label=a.slots.default),a.slots.fixedTip&&(A.fixedTip=a.slots.fixedTip);const D={...Se(n,Ho),hintText:b.value,hintVisible:x.value,prop:`${n.prop}_item`};return r.h(o,D,A)}}}}const{componentName:Nu,create:ku,scope:Vu}=oe("switch-item"),Xn=ku(Eu(Nu,Vu,me)),zo={modelValue:{type:[String,Number,Boolean],required:!1}};function Iu(e,t,o){return{props:{...ge,...Te,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=Ce(r.computed(()=>n.disabled)),i=xe(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!l.value&&!i.value}},n.prop??a.attrs.name),f=se(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),b=k=>{u("update:modelValue",k),u("change",k)};let x=se(n,"hintText"),m=r.ref(!1);const g=k=>{let V=k.target.value;s.value=!0,de(x.value)||(m.value=!0),u("focus",V,k)},w=k=>{setTimeout(()=>{m.value&&(m.value=!1),s.value=!1},0);let V=k.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),T.value||u("blur",V,k)},v=()=>{u("clear","")},T=r.ref(!1),I=k=>{T.value=k,u("visible-change",k),k||u("selected")},A=r.ref();return be({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()}}),()=>{const D={...Be(a.attrs),ref:A,class:d.value,disabled:l.value||i.value,modelValue:f.value,"onUpdate:modelValue":b,onClear:v,onFocus:g,onBlur:w,onVisibleChange:I},V={};a.slots.option&&(V.default=a.slots.option);const F=[],R=r.h(p.ElTreeSelect,D,V);F.push(R);const B={default:()=>F};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const H={...Se(n,zo),hintText:x.value,hintVisible:m.value,prop:`${n.prop}_item`};return r.h(o,H,B)}}}}const{componentName:Ou,create:Ru,scope:Du}=oe("tree-select-item"),Zn=Ru(Iu(Ou,Du,me)),Fu={},Au={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"},Bu=[r.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function Lu(e,t){return r.openBlock(),r.createElementBlock("svg",Au,Bu)}const qu=Ve(Fu,[["render",Lu]]),{componentName:If,create:Mu,scope:Of}=oe("group-setting"),_u={groupProp:{type:[String]},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:[String],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Pu=Mu({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:qu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{..._u},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let a=null;const l=r.ref([]),i=Ao(),s=S=>S.length>1,u=()=>{const S=[],y=[...l.value];l.value=y.map((O,z)=>(O.visible!==!1&&S.push(O.prop),{...O,sortIndex:z})),l.value.length===S.length?m.value=!0:S.length>0&&(g.value=!0),T.value=S},f=S=>{const y=document.querySelectorAll(`.fox-group[prop="${S}"] > div > .fox-item[prop]`),L=[];return y.forEach(O=>{const z=O.querySelector(".label--string");let E="";z&&(E=z.textContent??"");const q=O.getAttribute("prop")??"",G=window.getComputedStyle(O,null).getPropertyValue("display");L.push({label:E,prop:q,sortIndex:0,visible:G!=="none"})}),L},c=async(S=!1)=>{a||(a=f(e.groupProp));const y=a.map(O=>({...O})),L=await i.load(e.groupProp);Array.isArray(L)&&L.forEach(O=>{y.some(z=>z.prop===O.prop?(Object.assign(z,O),!0):!1)}),l.value=y.sort((O,z)=>O.sortIndex-z.sortIndex),u(),S&&b(!1)},d=()=>{const S=a??[];l.value=S.map(y=>({...y})),u(),b()},b=(S=!0)=>{S&&i.save(e.groupProp,l.value);const y=l.value.map(L=>({...L}));t("change",y)},x=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),m=r.ref(!1),g=r.ref(!1),w=S=>{const y=[];l.value.forEach(O=>{S&&y.push(O.prop),O.visible=S}),m.value=!1,g.value=!1,l.value.length===y.length?m.value=!0:y.length>0&&(g.value=!0),T.value=y,b()},v=()=>{d()},T=r.ref([]),I=S=>{l.value.forEach(L=>{const O=S.indexOf(L.prop)!==-1;L.visible=O}),m.value=!1,g.value=!1;const y=l.value.length;S.length===y?m.value=!0:S.length>0&&(g.value=!0),b()},A=()=>{c()};r.onMounted(()=>{e.initDelay>0?setTimeout(()=>{c(!0)},e.initDelay):c(!0)});const k={currentRow:null,index:null},D=S=>S?S.dataset&&S.dataset.role==="row"?S:S.tagName.toLowerCase()!=="body"?(S=S.parentElement,D(S)):null:null,V=S=>{const y=S.currentTarget;y&&y.dataset&&(k.index=y.dataset.index)},F=S=>{k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null),k.index=null},R=S=>{const y=S.currentTarget;S.relatedTarget;const L=D(y);L&&(S.preventDefault(),k.currentRow&&k.currentRow!==L&&k.currentRow.classList.remove("is-dragover"),L.classList.add("is-dragover"),k.currentRow=L)},B=S=>{S.preventDefault(),k.currentRow&&(k.currentRow.classList.remove("is-dragover"),k.currentRow=null)},Y=S=>{const y=S.currentTarget,L=D(y);if(!L)return;S.preventDefault();const O=Number(k.index),z=Number(L.dataset.index);if(O!==z){if(O<z){const E=l.value[O];l.value.splice(O,1),l.value.splice(z,0,E)}else{const E=l.value[O];l.value.splice(O,1),l.value.splice(z+1,0,E)}u(),b()}},H=S=>{const y=l.value[S];l.value.splice(S,1),l.value.splice(0,0,y),u(),b()},$=S=>{const y=l.value[S];l.value.splice(S,1),l.value.push(y),u(),b()};return n({refresh:()=>{a=null,c(!1)}}),{attrs:o,itemPropertyList:l,isDraggble:s,isCheckAll:m,isIndeterminate:g,handleCheckAllChange:w,handleReset:v,checkedValue:T,handleCheckChange:I,onShow:A,onDragStart:V,onDragEnd:F,onDragOver:R,onDragLeave:B,onDrop:Y,checkboxLabelStyle:x,toTop:H,toBottom:$}}}),ju={class:"fox-group-setting"},Hu={class:"fox-group-setting__header"},zu={class:"fox-group-setting__body"},Ku={class:"fox-group-setting__body-list","data-role":"container"},Wu=["data-index","draggable"],Yu={class:"tools-item"};function Gu(e,t,o,n,a,l){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("Download"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("FoxCheckboxGroup"),x=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(x,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",ju,[r.createElementVNode("div",Hu,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=m=>e.isCheckAll=m),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",zu,[r.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":t[6]||(t[6]=m=>e.checkedValue=m),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",Ku,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,m=>(r.openBlock(),r.createElementBlock("div",{key:m.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":m.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[1]||(t[1]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[2]||(t[2]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[3]||(t[3]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[4]||(t[4]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[5]||(t[5]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:m.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(m.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Yu,[r.createVNode(d,{content:e.toTopText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:g=>e.toTop(m.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.toBottomText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:g=>e.toBottom(m.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Wu))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Jn=Ve(Pu,[["render",Gu]]),Uu=Symbol.for("InnerPageScopeKey"),Xu=Symbol.for("PageWrapperKey");function Zu(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){r.provide(Uu,!0);const a={};r.provide(Xu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(p.ElDialog,f,c)}}}}const{componentName:Rf,create:Ju,scope:Df}=oe("dialog-item"),Qn=Ju(Zu());function Qu(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const a=e,l=r.computed(()=>({[a]:!0})),i=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${a}__text`]:!0,[`${a}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),f=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const g={class:i.value,style:s.value};c=r.h(o.icon??"div",g)}const d={class:u.value,style:f.value},b=n.default?n.default():[],x=r.h("div",d,b),m={class:l.value};return o.textPosition==="right"?r.h("div",m,[c,x]):r.h("div",m,[x,c])}}}}const{componentName:ec,create:tc,scope:Ff}=oe("indicator"),er=tc(Qu(ec));function nc(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const a=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(a)},500)}const rc={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],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}};function oc(e,t){return{props:{...rc},setup(o,n){const a=r.ref(!0),l=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(b=>{c[b]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),s=c=>{if(c&&te(o.showOverflowTooltip)){const d=c.clientWidth;nc(c,b=>{a.value=b<=d})}};let u=null;r.onMounted(()=>{if(!te(o.showOverflowTooltip))return;const c=l.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const f=(c,d)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const x=o.highlightFilter;if(c.indexOf(x)!==-1){const g=c.replace(new RegExp(x,"g"),`<span>${x}</span>`);d.innerHTML=g,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const x=o.highlightFilter(c);x&&(d.innerHTML=x,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const c={},d={...n.attrs,class:{...i.value},ref:l};if(te(o.numberFormat)&&typeof n.slots.default=="function"){const g=n.slots.default();if(Array.isArray(g)&&g.length===1){const w=g[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const v=ve(o.digits),T=ve(o.decimalLength),I=te(o.autoPadding);let A=`${g[0].children}`,k=A.split("").reverse().join("");k=Ct(k,T,I,v,o.separator),A=k.split("").reverse().join("");let D=null;o.highlightFilter!==void 0&&(D=f(A,d)),D||(d.innerHTML=A,D=r.h(o.tag,d)),c.default=()=>D}}}else{let g=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const v=w[0].type.toString();if(v==="Symbol(Text)"||v==="Symbol(v-txt)"){const T=`${w[0].children}`;g=f(T,d),g||(d.innerHTML=T,g=r.h(o.tag,d))}}}g||(g=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>g}const x={disabled:a.value};return c.content=n.slots.default,r.h(p.ElTooltip,x,c)}}}}const{componentName:ac,create:lc,scope:Af}=oe("text"),tr=lc(oc(ac)),ic={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ne.ArrowUp}};function sc(e,t,o){return{props:{...ic},emits:["click","update:modelValue"],setup(n,{emit:a}){const l=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{a("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const g={class:u.value},w=r.h("span",g,[s.value]);d.push(w)}const b={class:f.value},x=o(n.icon,b);return x&&d.push(x),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:uc,create:cc,scope:fc}=oe("more-button"),nr=cc(sc(uc,fc,(e,t)=>(e=e??Ne.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:dc,create:hc,scope:Lf}=oe("tour"),gc=hc({components:{Close:Ne.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 o=dc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:m,maskWidth:g,maskHeight:w}=e,{width:v,height:T,left:I,top:A}=a.value,k=e.steps[n.active].offset??m,D=[I+v/2,A+T/2],V=Number(g||v),F=Number(w||T);return{width:`${V+ +k.left+k.right}px`,height:`${F+k.top+k.bottom}px`,top:`${D[1]-F/2-+k.top}px`,left:`${D[0]-V/2-+k.left}px`}}),s=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,r.nextTick(()=>{n.showPopup=!0,c()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,f=m=>m.location??e.location,c=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),g=Nn(m);a.value={x:g.left,y:g.top,top:g.top,left:g.left,width:g.width,height:g.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},x=(m,g=0)=>{m&&c(),e.steps,n.active=g,n.showTour=m,n.showPopup=m};return r.onMounted(()=>{x(e.modelValue,e.current)}),r.watch(()=>e.modelValue,m=>{x(m)}),{...r.toRefs(n),classes:l,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:b}}}),mc={key:0,class:"fox-tour__content"},pc={key:0,class:"fox-tour__content-top"},yc={class:"fox-tour__content-inner"},bc={class:"fox-tour__content-bottom"},wc={class:"fox-tour__content-bottom-init"},vc={class:"fox-tour__content-bottom-operate"},Sc={key:1,class:"fox-tour__content fox-tour__content-tile"},Tc={class:"fox-tour__content-inner"};function $c(e,t,o,n,a,l){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",mc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",pc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",yc,r.toDisplayString(f.content),1),r.createElementVNode("div",bc,[r.createElementVNode("div",wc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",vc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",Sc,[r.createElementVNode("div",Tc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const rr=Ve(gc,[["render",$c]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Qe=e=>e==null,Ko=10;function xc(e,t){return e>t&&e>Ko?"horizontal":t>e&&t>Ko?"vertical":""}function Cc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=xc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function Ec(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Nc(e){e.stopPropagation()}function kc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Nc(e)}class Vc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Ec()}open(t){this.el=t;const o=Cc(),n=(a,l,i,s,u)=>{this.updateMove({x:l,y:i})};this.touchstart=a=>{this.moving||(o.start(a),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(o.move(a),o.isHorizontal()&&kc(a,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function Wo(e,t){return new Vc(e,t)}var Yo;const or=typeof window<"u";or&&((Yo=window?.navigator)!=null&&Yo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let st=[];const Go=e=>{const t=e;t.key==="Escape"&&st.forEach(o=>o(t))},Ic=e=>{r.onMounted(()=>{st.length===0&&document.addEventListener("keydown",Go),or&&st.push(e)}),r.onBeforeUnmount(()=>{st=st.filter(t=>t!==e),st.length===0&&or&&document.removeEventListener("keydown",Go)})},ar="fox-focus-trap.focus-after-trapped",lr="fox-focus-trap.focus-after-released",Oc="fox-focus-trap.focusout-prevented",Uo={cancelable:!0,bubbles:!1},Rc={cancelable:!0,bubbles:!1},Xo="foxFocusAfterTrapped",Zo="foxFocusAfterReleased",Dc=Symbol("foxFocusTrap"),ir=r.ref(),Wt=r.ref(0),sr=r.ref(0);let Yt=0;const Jo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Fc=(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},Qo=(e,t)=>{for(const o of e)if(!Fc(o,t))return o},Ac=e=>{const t=Jo(e),o=Qo(t,e),n=Qo(t.reverse(),e);return[o,n]},Bc=e=>e instanceof HTMLInputElement&&"select"in e,Ye=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&Bc(e)&&t&&e.select()}};function ea(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Lc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=ea(e,n),e.unshift(n)},remove:n=>{e=ea(e,n),e[0]?.resume?.()}}},qc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ye(n,t),document.activeElement!==o)return},ta=Lc(),Mc=()=>Wt.value>sr.value,Gt=()=>{ir.value="pointer",Wt.value=window.performance.now()},na=()=>{ir.value="keyboard",Wt.value=window.performance.now()},_c=()=>(r.onMounted(()=>{Yt===0&&(document.addEventListener("mousedown",Gt),document.addEventListener("touchstart",Gt),document.addEventListener("keydown",na)),Yt++}),r.onBeforeUnmount(()=>{Yt--,Yt<=0&&(document.removeEventListener("mousedown",Gt),document.removeEventListener("touchstart",Gt),document.removeEventListener("keydown",na))}),{focusReason:ir,lastUserFocusTimestamp:Wt,lastAutomatedFocusTimestamp:sr}),Ut=e=>new CustomEvent(Oc,{...Rc,detail:e}),{componentName:qf,create:Pc,scope:Mf}=oe("focus-trap"),jc=Pc({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:[Xo,Zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:i}=_c();Ic(g=>{te(e.trapped)&&!s.paused&&o("release-requested",g)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=g=>{if(!e.loop&&!te(e.trapped)||s.paused)return;const{key:w,altKey:v,ctrlKey:T,metaKey:I,currentTarget:A,shiftKey:k}=g,{loop:D}=e,V=w==="Tab"&&!v&&!T&&!I,F=document.activeElement;if(V&&F){const R=A,[B,Y]=Ac(R);if(B&&Y){if(!k&&F===Y){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),D&&Ye(B,!0))}else if(k&&[B,R].includes(F)){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(g.preventDefault(),D&&Ye(Y,!0))}}else if(F===R){const $=Ut({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||g.preventDefault()}}};r.provide(Dc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),r.watch([n],([g],[w])=>{g&&(g.addEventListener("keydown",u),g.addEventListener("focusin",d),g.addEventListener("focusout",b)),w&&(w.removeEventListener("keydown",u),w.removeEventListener("focusin",d),w.removeEventListener("focusout",b))});const f=g=>{o(Xo,g)},c=g=>o(Zo,g),d=g=>{const w=r.unref(n);if(!w)return;const v=g.target,T=g.relatedTarget,I=v&&w.contains(v);te(e.trapped)||T&&w.contains(T)||(a=T),I&&o("focusin",g),!s.paused&&te(e.trapped)&&(I?l=v:Ye(l,!0))},b=g=>{const w=r.unref(n);if(!(s.paused||!w))if(!e.escape&&te(e.trapped)){const v=g.relatedTarget;!cn(v)&&!w.contains(v)&&setTimeout(()=>{if(!s.paused&&te(e.trapped)){const T=Ut({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||Ye(l,!0)}},0)}else{const v=g.target;v&&w.contains(v)||o("focusout",g)}};async function x(){await r.nextTick();const g=r.unref(n);if(g){ta.push(s);const w=g.contains(document.activeElement)?a:document.activeElement;if(a=w,!g.contains(w)){const T=new Event(ar,Uo);g.addEventListener(ar,f),g.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;Sr(I)||(Ye(I),document.activeElement!==I&&(I="first")),I==="first"&&qc(Jo(g),!0),(document.activeElement===w||I==="container")&&Ye(g)})}}}function m(){const g=r.unref(n);if(g){g.removeEventListener(ar,f);const w=new CustomEvent(lr,{...Uo,detail:{focusReason:i.value}});g.addEventListener(lr,c),g.dispatchEvent(w),!w.defaultPrevented&&(i.value=="keyboard"||!Mc())&&Ye(a??document.body,!0),g.removeEventListener(lr,f),ta.remove(s)}}return r.onMounted(()=>{te(e.trapped)&&x(),r.watch(()=>e.trapped,g=>{te(g)?x():m()})}),r.onBeforeUnmount(()=>{te(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Hc,create:zc,scope:Pf}=oe("floating-window"),Kc=Symbol.for("InnerPageScopeKey"),Wc=Symbol.for("PageWrapperKey"),Yc={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},customClass:{type:[String],required:!1}},Gc=zc({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:jc},props:{...Yc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Hc,n=r.ref(e.modelValue),a=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,C=>{n.value=C});const l=r.computed(()=>n.value===!1?!1:!V.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),f=r.ref(e.bottom),c=r.computed(()=>{const C=["fox-floating-window"];return e.customClass&&C.push(e.customClass),C}),d=r.computed(()=>{const C={};return Qe(i.value)?C.left="auto":C.left=Ee(i.value),Qe(s.value)?C.top="auto":C.top=Ee(s.value),Qe(u.value)?C.right="auto":C.right=Ee(u.value),Qe(f.value)?C.bottom="auto":C.bottom=Ee(f.value),Qe(e.zIndex)||(C["z-index"]=Ee(e.zIndex)),Qe(k.value)||(C.height=k.value),Qe(D.value)||(C.width=D.value),C}),b=r.computed(()=>e.closeIcon??Ne.Close),x=r.computed(()=>e.collapseIcon??Ne.ArrowUp),m=r.computed(()=>e.collapseText??""),g=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),w=r.computed(()=>e.expandText??e.title??"展开"),v=r.computed(()=>({[`${o}__collapse-text`]:!0})),T=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),I=r.ref(),A=r.ref(),k=r.computed(()=>Ee(e.height)||""),D=r.computed(()=>Ee(e.width)||""),V=r.ref(te(e.collapse)),F=(C,M=!0)=>{V.value!==C&&(V.value=C,C?P():G(),t("update:collapse",C))};r.watch(()=>e.collapse,C=>{F(C)});const R=()=>{B()},B=C=>{C=C??!V.value,F(C)};r.provide(Kc,!0);const Y={setCollapse:F,setFixedNavVisible:C=>{z.value=C}};r.provide(Wc,Y);const H=()=>{typeof Y.beforeClose=="function"?Y.beforeClose(()=>{n.value=!1}):n.value=!1},$=r.ref(null),S=r.computed(()=>!e.fixedNavTeleport),y=r.computed(()=>{const C=["fox-floating-window__fixednav"];return e.expandClass&&C.push(e.expandClass),e.collapsePosition==="left"?C.push("is-left"):e.collapsePosition==="right"&&C.push("is-right"),C}),L=r.ref(""),O=r.computed(()=>{const C={};return L.value?C.top=L.value:e.collapseTop&&(C.top=e.collapseTop),C}),z=r.ref(V.value);let E=null;const q=()=>{typeof E=="function"&&(E(),E=null)},P=()=>{$.value&&$.value.classList.add("slide-in"),z.value=!0,E=()=>{$.value&&$.value.classList.remove("slide-in")}},G=()=>{$.value&&$.value.classList.add("slide-out"),E=()=>{$.value&&$.value.classList.remove("slide-out"),z.value=!1}},J=()=>{i.value=null,s.value=null,u.value=null,f.value=null},Q={x:0,y:0},Z=Wo(C=>{if(!I.value)return;const M=I.value;if(J(),e.origin==="left-top")i.value=M.offsetLeft,s.value=M.offsetTop,Q.x=i.value,Q.y=s.value;else if(e.origin==="left-bottom"){const N=document.documentElement.clientHeight||document.body.clientHeight;i.value=M.offsetLeft,f.value=N-(M.offsetTop+M.offsetHeight),Q.x=i.value,Q.y=f.value}else if(e.origin==="right-bottom"){const N=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;u.value=N-(M.offsetLeft+M.offsetWidth),f.value=K-(M.offsetTop+M.offsetHeight),Q.x=u.value,Q.y=f.value}else{const N=document.documentElement.clientWidth||document.body.clientWidth;u.value=N-(M.offsetLeft+M.offsetWidth),s.value=M.offsetTop,Q.x=u.value,Q.y=s.value}},C=>{if(!I.value)return;const M=I.value;J(),e.origin==="left-top"?(i.value=Q.x+C.x,s.value=Q.y+C.y,M.style.left=Ee(i.value),M.style.top=Ee(s.value)):e.origin==="left-bottom"?(i.value=Q.x+C.x,f.value=Q.y-C.y,M.style.left=Ee(i.value),M.style.bottom=Ee(f.value)):e.origin==="right-bottom"?(u.value=Q.x-C.x,f.value=Q.y-C.y,M.style.right=Ee(u.value),M.style.bottom=Ee(f.value)):(u.value=Q.x-C.x,s.value=Q.y+C.y,M.style.right=Ee(u.value),M.style.top=Ee(s.value))}),ee={x:0,y:0},U=Wo(C=>{$.value&&(ee.x=$.value.offsetLeft,ee.y=$.value.offsetTop)},C=>{if(!$.value)return;const M=ee.y+C.y;L.value=`${M}px`});return r.onMounted(()=>{e.draggable&&A.value&&I.value&&Z.open(A.value),e.collapse===!0&&F(e.collapse,!1),$.value&&U.open($.value)}),r.onBeforeUnmount(()=>{e.draggable&&A.value&&Z.close(),$.value&&U.close()}),{classes:c,styles:d,isShow:l,closeIcon:b,onClose:H,dialogRef:I,headerRef:A,onClickToggle:R,collapseIcon:x,collapseText:m,collapseTextClasses:v,collapseIconClasses:T,expandIcon:g,expandText:w,isShowFixedNav:z,fixedNavRef:$,fixedNavClasses:y,fixedNavStyles:O,onAnimationEnd:q,teleportDisabled:a,fixedNavTeleportDisabled:S}}}),Uc={ref:"headerRef",class:"fox-floating-window__header"},Xc={class:"fox-floating-window__title"},Zc={class:"fox-floating-window__tools"},Jc={class:"fox-floating-window__body"},Qc={class:"fox-floating-window__fixednav__text"};function ef(e,t,o,n,a,l){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[r.createVNode(r.Transition,{name:"fox-floating-window-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Uc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Xc,r.toDisplayString(e.title),1),r.createElementVNode("div",Zc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.collapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",Jc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(r.openBlock(),r.createBlock(r.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[r.withDirectives(r.createElementVNode("div",{ref:"fixedNavRef",class:r.normalizeClass(e.fixedNavClasses),style:r.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[r.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",Qc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=Ve(Gc,[["render",ef]]);function tf(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return jr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:jf,create:nf,scope:Hf}=oe("domain-provider"),cr=nf(tf()),rf={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 of(e,t){return{inheritAttrs:!1,props:rf,setup(o,{slots:n}){if(et&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const i=(b,x)=>{if(c===null){l.set(b,{visible:null,callback:x});return}a.has(b)&&c.unobserve(b),a.set(b,{visible:null,callback:x}),c.observe(b)},s=b=>{if(c===null){l.delete(b);return}a.has(b)&&(a.delete(b),c.unobserve(b))};let u=o.initialVisibleObserverSize;vl({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(b,x,m)=>{c=new IntersectionObserver(g=>{for(let w of g){let v=!1;w.intersectionRatio>0&&(v=!0);const T=a.get(w.target);if(T)try{if(o.loadPolicy==="lazy"&&!v&&T.visible!==null)return;T.visible=v,T.callback(v)}catch(I){console.error(I)}}},{root:b,rootMargin:x,threshold:m}),l.forEach((g,w)=>{a.set(w,g),c?.observe(w)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([b,x])=>{if(x||!b||c)return;let m=null;typeof b=="string"?m=document.querySelector(b):m=b,m&&d(m,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:zf,create:af,scope:Kf}=oe("rolling-provider"),fr=af(of()),ra=10;function lf(e,t){return e>t&&e>ra?"horizontal":t>e&&t>ra?"vertical":""}function sf(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),a=r.ref(0),l=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",b=()=>c.value==="horizontal",x=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:w=>{const v=w.touches[0];i.value=v.clientX-e.value,s.value=v.clientY-t.value,a.value=v.clientX,l.value=v.clientY,u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=lf(u.value,f.value))},start:w=>{x(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,o.value=Date.now()},reset:x,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:b}}const uf=[bn,Sn,Tn,$n,En,me,In,On,bt,Rn,Dn,Fn,An,Bn,Ln,qn,_n,Pn,jn,Hn,Kt,Wn,Yn,Gn,Un,Xn,Zn,Jn,Qn,vt,jt,er,tr,nr,rr,ur,cr,fr],cf=new za(uf,[Ya],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>p.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>p.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>p.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>p.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>p.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>p.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>p.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>p.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>p.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>p.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>p.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>p.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>p.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>p.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>p.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>p.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>p.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload}),h.AutocompleteItem=Pn,h.Broadcast=fn,h.BroadcastKey=he,h.CascaderItem=_n,h.CheckboxItem=Gn,h.Content=$n,h.DataItemsKey=tt,h.DateItem=Fn,h.DateUtils=Oe,h.DialogItem=Qn,h.Domain=Ot,h.DomainKey=Ie,h.DomainProvider=cr,h.FloatingWindow=ur,h.FooterBar=Tn,h.FoxAutocompleteItem=Pn,h.FoxCascaderItem=_n,h.FoxCheckboxItem=Gn,h.FoxContent=$n,h.FoxDateItem=Fn,h.FoxDialogItem=Qn,h.FoxDomainProvider=cr,h.FoxFloatingWindow=ur,h.FoxFooterBar=Tn,h.FoxGroup=En,h.FoxGroupSetting=Jn,h.FoxHeaderBar=Sn,h.FoxHintText=bt,h.FoxIndicator=er,h.FoxInputItem=Rn,h.FoxInputNumberItem=qn,h.FoxItem=me,h.FoxMapping=vt,h.FoxMoneyItem=Ln,h.FoxMoreButton=nr,h.FoxPage=bn,h.FoxPrice=jt,h.FoxRadioItem=Yn,h.FoxRateItem=Un,h.FoxRollingProvider=fr,h.FoxRowItem=On,h.FoxSelectItem=Dn,h.FoxSlotItem=In,h.FoxSwitchItem=Xn,h.FoxTableItem=Wn,h.FoxTableMappingColumn=jn,h.FoxTableRadioColumn=Hn,h.FoxTableSetting=Kt,h.FoxText=tr,h.FoxTimeItem=An,h.FoxTimeSelectItem=Bn,h.FoxTour=rr,h.FoxTreeSelectItem=Zn,h.Group=En,h.GroupSetting=Jn,h.HeaderBar=Sn,h.HintText=bt,h.Indicator=er,h.InputItem=Rn,h.InputNumberItem=qn,h.Item=me,h.Mapping=vt,h.MoneyItem=Ln,h.MoreButton=nr,h.Page=bn,h.Price=jt,h.PriorityPolicy=ke,h.RadioItem=Yn,h.RateItem=Un,h.RollingProvider=fr,h.RowItem=On,h.SelectItem=Dn,h.SlotItem=In,h.SwitchItem=Xn,h.TableItem=Wn,h.TableMappingColumn=jn,h.TableRadioColumn=Hn,h.TableSetting=Kt,h.Text=tr,h.TimeItem=An,h.TimeSelectItem=Bn,h.Tour=rr,h.TreeSelectItem=Zn,h.UniqueID=ro,h.ValidateSchema=Mr,h.ValidateSchemaKey=_e,h.cancelRaf=la,h.clearNonNumber=Sa,h.clone=sn,h.compareTo=on,h.createBroadcast=kt,h.createValidateSchema=It,h.debounce=mt,h.debounceRef=Fa,h.decimalLength=Or,h.default=cf,h.defineBroadcast=Ca,h.defineConfigDomain=jr,h.defineDataItem=zr,h.defineDomain=gn,h.defineItem=pe,h.definePageState=Kr,h.deleteGlobalValidator=Va,h.disabledProperty=Ce,h.divide=rn,h.excludeProps=Se,h.extend=Ue,h.floatData=xa,h.getGlobalValidateCheckEvents=Br,h.getGlobalValidateResetEvents=qr,h.getPageContentAreaHeight=Dt,h.getPageContentAreaWidth=Ft,h.getPageFooterAreaHeight=yt,h.getPageHeaderAreaHeight=pt,h.getRootDomain=nt,h.hasSymbol=$r,h.includeProps=Dr,h.indexOf=Ta,h.installRules=Hr,h.integerLength=Ir,h.isArray=ca,h.isArrayLike=Er,h.isBrowser=et,h.isDate=ha,h.isESModule=pa,h.isEmptyString=de,h.isEqual=Me,h.isFunction=an,h.isHidden=Cr,h.isInnerPage=La,h.isMap=fa,h.isNil=cn,h.isNumberString=Vr,h.isObject=ze,h.isPlainObject=ln,h.isPromise=ma,h.isRegExp=kr,h.isSet=da,h.isString=Sr,h.isSubPage=qa,h.isSymbol=ga,h.isWindow=xr,h.lastIndexOf=$a,h.makeArray=va,h.merge=Nr,h.multiply=br,h.negate=wr,h.nextTick=ba,h.numberFormat=Ct,h.objectToString=Tr,h.once=Aa,h.property=$e,h.raf=ua,h.readonlyProperty=xe,h.setGlobalValidateCheckEvents=Ia,h.setGlobalValidateHandler=Na,h.setGlobalValidateMessages=Ra,h.setGlobalValidateResetEvents=Oa,h.setGlobalValidator=ka,h.throttle=Pr,h.toBoolean=te,h.toNumber=ve,h.toPadding=Fe,h.toPx=ue,h.toPxDesc=ye,h.toTypeString=Et,h.toValue=se,h.tryTimes=dn,h.typeOf=Nt,h.unNumberFormat=vr,h.updatePageState=mn,h.useBroadcast=ht,h.useDomain=Pe,h.useExpose=be,h.useInnerSize=vn,h.usePageState=Rt,h.usePosition=eo,h.useRect=Nn,h.useSize=wn,h.useTouch=sf,h.valueLength=dt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function Dt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=fn($e(e),$e(t)),o==1&&(n==1?e=cn(e):t=cn(t));let r=_l(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(cn(r)):$e(r)}function cn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return _l(t,a)}function $e(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function fn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function _l(e,t){[e,t]=fn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var me=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(me||{});function mt(e,t=0,o=me.HALF_EVEN){if(o===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],s=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+s,u=mt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,ql(r[1],a,n,o)?(n?"-":"")+dn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");s=r[1].substring(0,t);let i=r[1].substring(t);return i&&ql(i,s,n,o)&&(s=dn(s),s.length>t)?(n?"-":"")+dn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function ql(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!o&&n===me.FLOOR||o&&n===me.CEILING)return!1;if(n===me.UP||o&&n===me.FLOOR||!o&&n===me.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function dn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function hn(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=pt(e),t=pt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=pt(e.replace(".","")),t=pt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,f="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let S=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(S+=parseInt(e[u[N]--])*parseInt(t[N]));S+=i,i=Math.floor(S/10),f=S%10+f,d--}return f=pt(Gr(f,a)),o==1&&(f="-"+f),f}function Gr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function pt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function gn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let 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,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=d,i="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Dt(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+$e(mt(i,o-2))}function mn(e,t){return e=e.toString(),t=t.toString(),t=pn(t),Dt(e,t)}function pn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Pl(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),jl(e),jl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=mn(e,hn(t,mt(gn(e,t),0,me.FLOOR)));return o+n}function jl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function zl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=fn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=me;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+$e(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var s="",i=a;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<a-o&&i>=0?n:"")+s;return(r?"-":"")+s+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=me.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return mt(t,o,n)}round(t=0,o=me.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce(mt(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,me.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Dt(t,o)}add(t){return new ce(Dt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),mn(t,o)}subtract(t){return new ce(mn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),hn(t,o)}multiply(t){return new ce(hn(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),gn(t,o,n)}divide(t,o){return new ce(gn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),Pl(t,o)}modulus(t){return new ce(Pl(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),zl(t,o)}compareTo(t){return zl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),pn(t)}negate(){return new ce(pn(this.value))}}function Hl(e,t){return ce.multiply(`${e}`,`${t}`)}function yn(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function bn(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Kl(e){return ce.negate(e)}function Rt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let i=a,u="",d=a.indexOf(".");d!=-1&&(i=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",S=i.split("").reverse();for(let N=0;N<S.length;N++)c+=S[N]+((N+1)%n==0&&N+1!=S.length?r:"");u.length==0?f=`${s}${c.split("").reverse().join("")}`:f=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function Wl(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const vn=Bl,Ur=Array.isArray,Xr=e=>At(e)==="[object Map]",Zr=e=>At(e)==="[object Set]",Jr=e=>e instanceof Date,wn=e=>typeof e=="function",Yl=e=>typeof e=="string",Qr=e=>typeof e=="symbol",He=e=>e!==null&&typeof e=="object",Gl=e=>He(e)&&wn(e.then)&&wn(e.catch),Ul=Object.prototype.toString,At=e=>Ul.call(e),Sn=e=>At(e)==="[object Object]",Xl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ea(e){return e.__esModule||Xl&&e[Symbol.toStringTag]==="Module"}const ta=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function et(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let s in a){let i=t[s],u=a[s];if(i!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=et(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function xn(e,t,o=!1){if(!o)et(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Sn(s))continue;a=xn(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Sn(s))continue;a=xn(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const Tn=ta?Promise.resolve():null;function na(e,...t){Tn!==null?t&&t.length>0?Tn.then(()=>{e(t)}):Tn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function be(e){return typeof e=="number"?e:Number(e)}const la={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Lt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):la[o]||"object"}function Zl(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 Jl(e){let t=!!e&&"length"in e&&e.length,o=Lt(e);return o==="function"||Zl(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Ql(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function oa(e,t=[]){let o=t;return e!=null&&(Jl(Object(e))?Ql(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ke(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Lt(e),n=Lt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++){let i=r[s],u=e[i],d=t[i];if(!Ke(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],s=t[r];if(!Ke(a,s))return!1}return!0}return!1}const tt=typeof window<"u";function $n(e){return e==null}function eo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ge=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function to(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 no(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function lo(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function oo(e,t,o){const n=e.indexOf(t);return n===-1?e:t==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(o,"")}function ra(e,t=!0,o=!0){t?e=oo(e,".",/\./g):e=e.replace(/\./g,""),o?e=oo(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function aa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ke(e,o))return!0}):t.indexOf(e)}function ia(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Ke(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function yt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ro(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ce(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const sa=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},pe=Symbol.for("BroadcastKey");class Cn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):eo(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&a.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(t,o){this.callbacks.set(t,o)}}function Bt(e,t,o,n){const r=new Cn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function ua(e,t,o){const n=o;if(n[pe])return n[pe];const r=l.inject(pe,null),a=new Cn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[pe]=a,l.provide(pe,a),l.onUnmounted(()=>{a.destroy(),n[pe]=void 0}),a}function bt(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[pe]??l.inject(pe,null):l.inject(pe,null)}const nt=e=>e.default??e;class ca{error(t,o){const n=o,r=o||l.hasInjectionContext()?bt(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?bt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?bt(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?bt(n):null,s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let vt=new ca;function fa(e){vt=e}function da(e){vt?Object.assign(vt,e):vt=e}function ha(e,t){nt(Qe).setValidator(e,t)}function ga(e){nt(Qe).deleteValidator(e)}let ao=["blur","clear"];function ma(e){ao=e}function io(){return ao}let so=["focus","change","setValue"];function pa(e){so=e}function uo(){return so}function ya(e){nt(Qe).messages(e)}function wt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function _t(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const Be=Symbol("ValidateSchemaKey");class co{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=_t(wt(this.attrRules,this.rules)),n=[];for(let a in t){let s=t[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let u={type:a};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};n.push(u)}}this.attrRules=_t(n);const r=wt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=vt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?nt(Qe).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?nt(Qe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return nt(Qe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=wt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=_t(t):this.rules=_t([t]);const n=wt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=wt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),s={[`${n}`]:a},i=nt(Qe),u=new i(r),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let S="error";Array.isArray(c.errors)&&c.errors.length>0&&(S=c.errors[0].message??S,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(S)}return c}).catch(c=>{const S=c.message??`${c}`;return this.error(S),c})}}return Promise.resolve({pass:!0})}}function qt(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new co(t,o,e)}const Pt=Symbol.for("EventEmitterKey");class fo{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function St(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function ho(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function ba(e,t){const o=St((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function va(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function jt(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const De=Symbol("DomainKey"),at=Symbol("DataItemsKey");class zt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const wa=new zt;function it(){return wa}function We(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[De]??l.inject(De,null):l.inject(De,null)}const En=Symbol("OriginalDateKey");function Nn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(De,null);s===null&&(s=it());const i=e||t.prop||t.name;let u=new zt(i);u.parent=s;const d=N=>{a[En]||S(N),u?.set("modelValue",N)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[En]??null,S=N=>{const g={};et(!0,g,l.toRaw(N)),a[En]=g};if(l.isReactive(t)||typeof t=="function"?l.watch(t,N=>{u?.merge(N,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&S(t.modelValue),a[De]=u,l.provide(De,u),r!==null){const N=l.inject(pe,null),g=Bt(a,N,i,n);u.broadcast=g,a[pe]=g,l.provide(pe,g),a.broadcast=($,w,...C)=>Reflect.apply(g.emit,g,[$,w,...C]);const h=l.inject(Be,null),m=qt(a,h,{componentName:""});u.validateSchema=m,a[Be]=m,l.provide(Be,m),a[at]=new Map,a.validate=($=!0)=>{const w=[];let C=null;const q={deep:!1};if($===!0)C={name:"*"};else if(Array.isArray($)&&$.length>0){const B=$;C={name:A=>A?B.indexOf(A)!==-1:!1}}else if($!=null&&typeof $=="object"){const B=$;if(Object.assign(q,B),Array.isArray(B.include)&&B.include.length>0){const A=B.include;C={name:L=>L?A.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const A=B.exclude;C={name:L=>L?A.indexOf(L)===-1:!1}}else C={name:"*"}}if(C){const B=g?.emitToChildren(C,"validate",q);B&&Reflect.apply([].push,w,B)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(B=>{let A=[];return B.forEach(L=>{L.pass===!1&&Array.isArray(L.errors)&&(A=[...A,...L.errors])}),A.length>0?{pass:!1,errors:A}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,w=!0,C=!1)=>{if(C===!0){Reflect.ownKeys($).forEach(B=>{let A=String(B);const L={componentName:"",fieldName:A,pureDataValidate:!0};if(u){const M=po(u,A,L,g,m);a[at].set(A,M);const V=$[A];V&&M.validateSchema.setRule(V)}});return}if(w){const q=Reflect.ownKeys($),B={name:A=>q.includes(A)};g?.emitToChildren(B,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let w=null;if($===!0)w={name:"*"};else if(Array.isArray($)&&$.length>0){const C=$;w={name:q=>q?C.indexOf(q)!==-1:!1}}else if($!=null&&typeof $=="object"){const C=$;if(Array.isArray(C.include)&&C.include.length>0){const q=C.include;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const q=C.exclude;w={name:B=>B?q.indexOf(B)===-1:!1}}else w={name:"*"}}w&&g?.emitToChildren(w,"clearValidate",!1)},a.resetFields=$=>{const w=f();if(!w)return;const C={};if(et(!0,C,c()??{}),Array.isArray($))$.forEach(q=>{w[q]=C[q]});else if($&&Array.isArray($.include))($.include??[]).forEach(B=>{w[B]=C[B]});else if($&&Array.isArray($.exclude)){let q=$.exclude??[];Reflect.ownKeys(C).forEach(B=>{q.includes(B)||(w[B]=C[B])})}else Object.assign(w,C);a.clearValidate($)},a.setModelValue=($,w)=>{!w||w===i?d($):g?.emitToChildren({name:w},"setModelValue",$)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[Be]=void 0,l.provide(Be,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[pe]=void 0,l.provide(pe,null)),u?.destroy(),a[De]=void 0,l.provide(De,null),a[at]&&(a[at].clear(),a[at]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function go(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(De,null);a===null&&(a=it());const s=e||t.prop||t.name;let i=new zt(s);return i.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{i?.merge(u,o)},{immediate:!0}):i.merge(t,o),r[De]=i,l.provide(De,i),l.onUnmounted(()=>{i?.destroy(),r[De]=void 0,l.provide(De,null),i=null,r=null}),i}function mo(e,t,o){const r=We(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Se(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(pe,null);let i=Bt(r,s,a,o);r[pe]=i,l.provide(pe,i),r.broadcast=(g,h,...m)=>i?Reflect.apply(i.emit,i,[g,h,...m]):null;const u=l.inject(Be,null);e.fieldName=e.fieldName??a;let d=qt(r,u,e);r[Be]=d,l.provide(Be,d),mo(r,d,a),r.validate=(g=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let m=!1,$=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)$=!0,m=!0;else if(g&&typeof g=="object"){const w=g,C=w.ignoreDisabled??!0,q=w.ignoreReadonly??!0,B=w.ignoreHidden??!0;C===!0&&e.disabled===!0||q===!0&&e.readonly===!0||B===!0&&Mt(r.$el)?$=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),$=!0),m=w.deep??!1}else typeof g=="boolean"&&(m=g),$=!0;if($){const w=d?.validate();h.push(w)}if(m){let w=null;const C={deep:!1};if(g===!0)w={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;w={name:B=>B?q.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(Object.assign(C,q),Array.isArray(q.include)&&q.include.length>0){const B=q.include;w={name:A=>A?B.indexOf(A)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const B=q.exclude;w={name:A=>A?B.indexOf(A)===-1:!1}}else w={name:"*"}}if(w&&i){const q=i.emitToChildren(w,"validate",C);Reflect.apply([].push,h,q)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(w=>{let C=[];return w.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(C=[...C,...q.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>d?.setRule(g),r.setNameValidateRules=(g,h=!1)=>{const m=g[a];if(m&&d?.setRule(m),h&&i){const $={name:w=>Reflect.ownKeys(g).includes(w)};i.emitToChildren($,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(g===!0)h={name:"*"};else if(Array.isArray(g)&&g.length>0){const m=g;h={name:$=>$?m.indexOf($)!==-1:!1}}else if(g!=null&&typeof g=="object"){const m=g;if(Array.isArray(m.include)&&m.include.length>0){const $=m.include;h={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;h={name:w=>w?$.indexOf(w)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new fo(r);r[Pt]=f;const c=St((g="validate")=>{d&&(g==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:io()).forEach(g=>{f&&f.on(g,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:uo()).forEach(g=>{f&&f.on(g,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[pe]=void 0,l.provide(pe,null),i=null,d?.destroy(),r[Be]=void 0,l.provide(Be,null),d=null,f?.destroy(),r[Pt]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(g,...h)=>{f&&Reflect.apply(f.emit,f,[g,...h])},onEvent:(g,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(g,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function po(e,t,o,n,r){const a={},s=t??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};o.fieldName=s,o.validateHandler={getValue(f){return i.getValue()}};let u=qt({},r,o);a.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let S=!1,N=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)N=!0,S=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),N=!0,S=g.deep??!1}else typeof f=="boolean"&&(S=f),N=!0;if(N&&u){const g=u.validate();c.push(g)}if(S){let g=null;const h={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const m=f;g={name:$=>$?m.indexOf($)!==-1:!1}}else if(f!=null&&typeof f=="object"){const m=f;if(Object.assign(h,m),Array.isArray(m.include)&&m.include.length>0){const $=m.include;g={name:w=>w?$.indexOf(w)!==-1:!1}}else if(Array.isArray(m.exclude)&&m.exclude.length>0){const $=m.exclude;g={name:w=>w?$.indexOf(w)===-1:!1}}else g={name:"*"}}if(g&&d){const m=d.emitToChildren(g,"validate",h);Reflect.apply([].push,c,m)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(g=>{let h=[];return g.forEach(m=>{m.pass===!1&&Array.isArray(m.errors)&&(h=[...h,...m.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[s];c&&u?.setRule(c)};let d=Bt(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function yo(){let t=l.getCurrentInstance()?.proxy,o=new fo(t);return t[Pt]=o,l.onUnmounted(()=>{o?.destroy(),t[Pt]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ee=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${fe(e,t)}px`:"";function fe(e,t=-1){if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(tt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(a=Number(s.substring(0,i)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function Pe(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(t.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=fe(e.right))),t}function kn(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=fe(o.headerHeight??t.headerHeight??-1),e.headerPadding=Pe(o.headerPadding??t.headerPadding),e.footerHeight=fe(o.footerHeight??t.footerHeight??-1),e.footerPadding=Pe(o.footerPadding??t.footerPadding),e.contentPadding=Pe(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=fe(u,a):e.height=fe(a)-fe(s,a)-fe(i,a),e.width=fe(o.width??t.width??0,r)}}function bo(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=fe(r.top),n.safeAreaBottom=fe(r.bottom),n.safeAreaLeft=fe(r.left),n.safeAreaRight=fe(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;kn(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Xe);c&&(n.height=Kt(e,c),n.width=Wt(e,c),l.watch([()=>Kt(e,c),()=>Wt(e,c)],([N,g])=>{f.height=N,f.width=g}));const S=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,g,h=-1,m=-1,$=0,w=0])=>{kn(f,g,t,S,h,m,$,w)}),e.set(Xe,f),f}function Ht(e){return e.get(Xe)}function xt(e,t){if(t=t??e.get(Xe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Tt(e,t){if(t=t??e.get(Xe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Kt(e,t){if(t=t??e.get(Xe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=xt(e,t),n=Tt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Wt(e,t){return t=t??e.get(Xe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Sa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function xa(e){return!!e.getForParent(Xe)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function In(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function ke(e,t,o=1,n){const r=We();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let i=a.length-1;i>=0;i--){const u=a[i];if(In(u,n))return u}const s=e.value;return In(s,n)?s:null}):l.computed(()=>{const a=e.value;return In(a,n)?a:r?.get(t)})}function Ie(e){return ke(e,"readonly",0,function(o){return se(o)})}function Oe(e){return ke(e,"disabled",0,function(o){return se(o)})}function de(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,n&&n("setValue",u))}else i!==s.value&&(s.value=i,n&&n("setValue",i))}),s}const vo=new Map,Yt=new Map;let On=null;function Ta(e){On=e}function wo(e,t,o){if(o){let n=Yt.get(o);n||(n=new Map,Yt.set(o,n)),n.set(e,t)}else vo.set(e,t)}function _e(e,t,o){!o&&On&&(o=On(e)??void 0);let n=null;if(o){let r=Yt.get(o);r&&(n=r.get(t))}return n||(n=vo.get(t)),n}function $a(e,t){for(let o in e){const n=e[o];wo(o,n,t)}}function Ca(e){Yt.delete(e)}function Ea(){return{top:0,left:0,bottom:0,right:0}}function Na(e=0,t=0){if(tt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-fe(e,n)-fe(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function ka(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Ia{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const s=ka(a.name,o);t.component(s,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=it();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=ho(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=et({},Ea(),t.safeAreaInset),s=Na(n,r),i=et({},s.pageLayout,t.pageLayout);o=o??it(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ta(t)}setAPI(t,o,n){wo(t,o,n)}getAPI(t,o,n){return _e(t,o,n)}batchSetAPI(t,o){$a(t,o)}clearScopeAPI(t){Ca(t)}getRootDomain(){return it()}}const Oa=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload,y.ElStatistic,y.ElCountdown,y.ElSegmented,y.ElAnchor,y.ElAnchorLink,y.ElWatermark],Va=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Fa=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Oa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Va.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function xe(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const ve={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},Ne={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}},So={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}},xo={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}},To=[];for(const e in xo)To.push(e);const Da=Symbol.for("InnerPageScopeKey"),Ra={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Aa=(e,t)=>({inheritAttrs:!0,props:{...ve,...So,...Ra},setup(o,{slots:n}){const r=Nn(o.name,o),a=l.inject(Da,!1);if(r){const f=bo(r,o);xe({getPageContentHeight:()=>Kt(r,f),getPageContentWidth:()=>Wt(r,f),getPageHeaderHeight:()=>xt(r,f),getPageFooterHeight:()=>Tt(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const S=u?.proxy;S&&typeof S.setNameValidateRules=="function"&&S.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[S,N])=>{if(f&&S){const g=l.toRaw(S),h=l.toRaw(f),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h)}if(c&&N){const g=l.toRaw(N),h=l.toRaw(c),m=h?Reflect.ownKeys(h):[];(g?Reflect.ownKeys(g):[]).forEach(w=>{m.includes(w)||(h[w]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:s.value,style:i.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:La,create:Ma,scope:yh}=ie("page"),Vn=Ma(Aa(La));function Gt(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Fn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-s}}const Ba=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const s=We(),i=s?Ht(s):null;i&&(i.headerMounted=!0);const u=e,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?fe(r.height):null,S=l.computed(()=>{const k={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const b=Pe(r.padding??i.headerPadding);return Object.assign(k,b),c&&(i.headerHeight=c),i.headerHeight>0&&(k.height=i.headerHeight),k.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,k.safeAreaTop>0&&(k.top=k.safeAreaTop+(b.top??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaTop)),k}if(c&&(k.height=c),r.padding){const b=Pe(r.padding);Object.assign(k,b)}return k}),N=l.ref(null),g=()=>{if(i&&N.value&&!Mt(N.value)){if(!n){const k=Gt(N.value);i.headerAllHeight=k.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(jt(g,50,5,50,!0),window.ResizeObserver&&N.value&&(h=new window.ResizeObserver(()=>{g()}),h.observe(N.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const m=l.computed(()=>{const k={};return S.value.height!==null&&S.value.height!==void 0&&(k.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(k.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(k.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(k.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(k.paddingBottom=`${S.value.bottom}px`),k}),$=l.computed(()=>!(S.value.height!==null&&S.value.height!==void 0&&S.value.height<=0));function w(){a.emit("back")}function C(){a.emit("click-title")}function q(){a.emit("click-right")}function B(){a.emit("click-right-text")}const A=()=>{if(!r.leftShow)return null;const k=[];if(a.slots.left)k.push(a.slots.left());else{if(a.slots.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[a.slots.leftIcon()]);k.push(b)}else if(r.leftIcon){const b=l.h("view",{class:"left-icon",onClick:w},[l.h(r.leftIcon)]);k.push(b)}if(r.leftText){const b=l.h("view",{class:"left-text",onClick:w},[r.leftText]);k.push(b)}}return k.length===0?null:l.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 b=l.h("view",{class:"right-text",onClick:B},[r.rightText]);k.push(b)}if(a.slots.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);k.push(b)}else if(r.rightIcon){const b=l.h("view",{class:"right-icon",onClick:q},[l.h(r.rightIcon)]);k.push(b)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__right"},k)},M=()=>{if(!r.titleShow)return null;const k=[],b=a.slots.default?a.slots.default():null;if(b)k.push(b);else{if(r.title){const j=l.h("view",{class:"title-text"},[r.title]);k.push(j)}if(a.slots.titleIcon){const j=l.h("view",{class:"title-icon",onClick:C},[a.slots.titleIcon()]);k.push(j)}else if(r.titleIcon){const j=l.h("view",{class:"title-icon",onClick:C},[l.h(r.titleIcon)]);k.push(j)}}return k.length===0?null:l.h("view",{class:"fox-header-bar__title"},k)},V=()=>{const k=[],b=a.slots.bottom?a.slots.bottom():null;return b&&k.push(b),k.length===0?null:l.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 j=[],_=A();_&&j.push(_);const R=M();R&&j.push(R);const F=L();if(F&&j.push(F),j.length>0){const G=l.h("view",{class:f.value},j);k.push(G)}const K=V();K&&k.push(K)}if(k.length===0)return null;const b={class:d.value,style:m.value,ref:N};return l.h("view",b,k)}}}),{componentName:_a,create:qa,scope:Pa}=ie("header-bar"),Dn=qa(Ba(_a,Pa,Te.ArrowLeft));function ja(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=We(),s=a?Ht(a):null,i=l.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?fe(n.height):null,d=l.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=Pe(n.padding??s.footerPadding);return Object.assign(g,h),u&&(s.footerHeight=u),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(h.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const h=Pe(n.padding);Object.assign(g,h)}return g}),f=l.ref(null),c=()=>{if(s&&f.value&&!Mt(f.value)){if(!o){const g=Gt(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let S=null;l.onMounted(()=>{s&&(jt(c,50,5,50,!0),window.ResizeObserver&&(S=new window.ResizeObserver(()=>{c()}),S.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,S&&(S.disconnect(),S=null))});const N=l.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Ee(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Ee(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Ee(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Ee(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Ee(d.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:N.value};return l.h("view",h,g)}}}}const{componentName:za,create:Ha,scope:bh}=ie("footer-bar"),Rn=Ha(ja(za));function Ka(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=We(),r=l.computed(()=>({[e]:!0})),a=n?Ht(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const N=Pe(o.padding);Object.assign(a.contentPadding,N)}const f=xt(n,a),c=Tt(n,a);let S="";if(a.contentHeight?S=`${a.contentHeight}`:S=`${a.height}px`,a.contentPadding,d.height=S,a.contentPadding.top||f>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+N}px`}if(a.contentPadding.bottom||c>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=Pe(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=l.ref(null),u=()=>{if(a&&i.value){const d=Fn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>xt(n),()=>Tt(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Wa,create:Ya,scope:vh}=ie("content"),Ga=Ya(Ka(Wa));function Ua(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},An=Me(Ga,[["render",Ua]]),st="GroupStateKey",$o=Symbol.for("GroupScopeKey");function Ut(){return l.inject($o,!1)}function Xt(e=!0){l.provide($o,e)}function Xa(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];$n(r)||(e[n]=r)})}function Za(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Xa(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(st,a),a}function Ln(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(st);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=fe(a),c=fe(s);i||(i=d.type??"grid");const S=()=>{const N=t===""||t===-1,g=fe(t);let h=be(o);const m=fe(n);if(!N){let C=(g-(h-1)*m)/h;for(;c!==-1&&C>c;)h++,C=(g-(h-1)*m)/h;for(;f!==-1&&h>1&&C<f;)h--,C=(g-(h-1)*m)/h}let $=!1;const w=u.layout;w.value.width=t,w.value.column!==h&&(w.value.column=h,$=!0),w.value.gutter!==m&&(w.value.gutter=m,$=!0),w.value.type!==i&&(w.value.type=i,$=!0),$&&l.triggerRef(w)};if(r)S();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&S()},50)}}function Zt(e,t=!1){let o;return t?o=e.getForParent(st):o=e.get(st),o.layout}function Jt(e,t=!1){let o;return t?o=e.getForParent(st):o=e.get(st),o.order}function Co(e,t=1){if(t==="stretch")return-1;const o=be(t);return o===-1?100:100*o/e}function Qt(e,t,o=1,n=0,r){const a={};let s=0;r?s=fe(r):s=Co(t.column,o),s>0&&(a.width=`${s}%`);const i=Co(t.column,n);i>0&&(a["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function en(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=be(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=be(n)%t.column;let s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const Eo=Symbol("RollingStateKey");function Ja(e){l.provide(Eo,e)}function Qa(){return l.inject(Eo,null)}function Mn(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ei(e){let t=Mn(e);if(t<=0){const o=e.cloneNode(!0),n=e.offsetWidth;o.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Mn(o),document.body.removeChild(o)}return t}function ti(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ni={...ve,...So,...xo};function li(e,t,o){return{props:ni,emits:["update:collapse","header-click"],setup(n,r){const a=Nn(n.name,n,To),s=Za(a,{type:n.type}),i=Ut();Xt(!0);const u=n.rollingDisplay?Qa():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?Zt(a,!0).value:null),S=l.getCurrentInstance(),N=(H,Q=!1)=>{const te=S?.proxy;te&&typeof te.setNameValidateRules=="function"&&te.setNameValidateRules(H,!0,Q)};l.watch([()=>n.rules,()=>n.pureDataRules],([H,Q],[te,T])=>{if(H&&te){const Y=l.toRaw(te),ne=l.toRaw(H),le=ne?Reflect.ownKeys(ne):[];(Y?Reflect.ownKeys(Y):[]).forEach(oe=>{le.includes(oe)||(ne[oe]=[])}),N(ne)}if(Q&&T){const Y=l.toRaw(T),ne=l.toRaw(Q),le=ne?Reflect.ownKeys(ne):[];(Y?Reflect.ownKeys(Y):[]).forEach(oe=>{le.includes(oe)||(ne[oe]=[])}),N(ne,!0)}},{deep:!0});const g=e,h=l.computed(()=>{const H={};H.height=F.value;const Q=i?Jt(a,!0):null;if(c.value&&Q){if(c.value.type==="grid"){const te=en(Q,c.value,n.span,n.offset);Object.assign(H,te)}else if(c.value.type==="flow"){const te=Qt(Q,c.value,n.span,n.offset,n.width);Object.assign(H,te)}}else if(n.width){const te=Ee(n.width);H.width=te}return H}),m=l.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${g}--${H}`]:!0,[`${g}--${H}-justify-${n.justify}`]:!0,[`${g}--${H}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${H}`]:!0,[`${g}--gutter`]:!0}}),$=l.computed(()=>{if(s.layout.value.type==="grid"){let Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const te=ti(M.value,s.layout.value.column,s.layout.value.gutter);Q=`repeat(${s.layout.value.column}, ${te})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Q}}}),w=l.toRef(n,"gutter"),C=l.toRef(n,"column"),q=l.computed(()=>i||f.value?!0:se(n.isWrap)),B=[],A=H=>{B.push(H)},L=()=>{let H=B.length;B.splice(0,H)},M=l.ref(-1),V=H=>{const Q=Fn(H).width;Q>0&&Q!==M.value&&(M.value=Q)};Ln(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([M,C,w],([H,Q,te])=>{s.order.index=0,Ln(a,H,Q,te,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=l.computed(()=>K.value?n.expandText??"":n.collapseText??""),b=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),j=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),_=l.ref(),R=l.ref(),F=l.computed(()=>G.value||Ee(n.height)||""),K=l.ref(!1),G=l.ref(""),U=l.ref(!1);let J=-1;const ee=(H,Q=!0)=>{const te=_.value;if(te&&K.value!==H){if(J=J===-1?ei(te):J,U.value=!0,Q)if(te.style["will-change"]="height",te.ontransitionend=function(){te.ontransitionend=null,this.style["will-change"]="auto",H||(G.value="",U.value=!1)},H){let T=0;n.collapseHeight?T=n.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(T=R.value.offsetHeight),G.value=`${J}px`,l.nextTick(()=>{G.value=`${T}px`})}else G.value=`${J}px`;else if(H){let T=0;n.collapseHeight?T=n.collapseHeight:R.value&&R.value.classList.contains(`${e}__header`)&&(T=R.value.offsetHeight),G.value=`${T}px`}else U.value=!1,G.value=`${J}px`;K.value=H,r.emit("update:collapse",H)}};l.watch(()=>n.collapse,H=>{ee(H)});const re=H=>{r.emit("header-click",H)},O=()=>{x()},x=H=>{H=H??!K.value,ee(H)};xe({toggleCollapse:x,doLayout:()=>{B[0]&&(V(B[0]),Ln(a,M.value,C.value,w.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let E=null,v=!0;const W=H=>{if(n.rules){const Q=l.toRaw(n.rules);N(Q)}if(n.pureDataRules){const Q=l.toRaw(n.pureDataRules);N(Q,!0)}if(tt&&(H&&ee(se(n.collapse),!1),n.autoLayout&&Array.isArray(B)&&B.length>0)){const Q=B[0];V(Q),window.ResizeObserver&&(E=new window.ResizeObserver(()=>{V(Q)}),E.observe(Q))}},P=()=>{E?.disconnect(),E=null},z=!f.value||u?.acquire();z&&(d.value=f.value?!0:null),l.onMounted(()=>{if(z&&(W(v),v=!1),f.value&&u){let H=null,Q=u.initialHeight;u.observe(_.value,te=>{if(te!==d.value)if(te)d.value=!0,K.value||(G.value=""),H=setTimeout(()=>{H=null,d.value!==!1&&(W(v),v=!1)},100);else{if(H!==null&&clearTimeout(H),d.value=!1,!K.value)if(v)G.value=u.initialHeight;else{let T=Mn(_.value);T<=0?G.value=Q:(G.value=`${T}px`,Q=G.value)}v||P()}})}}),l.onUnmounted(()=>{E?.disconnect(),u&&u.unobserve(_.value)});const D=(H="right")=>{const Q=[];if(k.value){const Y={class:b.value},ne=l.h("span",Y,[k.value]);Q.push(ne)}const te={class:j.value},T=o(n.collapseIcon,te);return T&&Q.push(T),Q.length>0?l.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:O},Q):null},X=(H,Q,te,T)=>{const Y={...m.value};return Q===0&&(Y[`${g}__first`]=!0),te>=T-1&&(Y[`${g}__last`]=!0),l.h("div",{ref:A,key:`${Q}`,class:Y,style:$.value},H)};return()=>{if(f.value&&d.value!==!0){const Y=n.tag||"div";return l.h(Y,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[])}s.order.index=0;const H=[];let Q=0;if(r.slots.header){const Y={key:`${Q++}`,ref:R,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},ne=l.h("div",Y,[r.slots.header()]);H.push(ne)}else{const Y=[],ne=n.collapsePosition==="left";if(ne&&n.showCollapse){const le=D("left");le&&Y.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const Z=l.h("div",le);Y.push(Z)}if(r.slots.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);Y.push(le)}else if(n.title){const le=l.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);Y.push(le)}}if(r.slots.toolbar&&Y.push(r.slots.toolbar()),!ne&&n.showCollapse){const le=D("right");le&&Y.push(le)}if(Y.length>0){const le={key:`${Q++}`,ref:R,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:re},Z=l.h("div",le,Y);H.push(Z)}}L();const te=r.slots.default?r.slots.default():[],T=s.layout.value.type;if(T==="grid"){const Y=X(te,Q++,0,te.length);H.push(Y)}else if(T==="flow"){const Y=X(te,Q++,0,te.length);H.push(Y)}else for(let Y=0;Y<te.length;Y++){const ne=te[Y],le=X([ne],Q++,Y,te.length);H.push(le)}if(q.value){const Y=n.tag||"div";return l.h(Y,{ref:_,prop:n.name,class:{[`${g}`]:!0,"is-collapse":U.value},style:h.value},[H])}else return H}}}}const{componentName:oi,create:ri,scope:ai}=ie("group"),Bn=ri(li(oi,ai,(e,t)=>(e=e??Te.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]}))));function ii(e){return e===window}const si=/matrix\((.+)\)/,No=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ii(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,s=0,i=0,u=0;for(r=t;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=si.exec(d);if(f){let S=f[1].split(/\s*,\s*/);S.length==6&&(i+=Number(S[4]),u+=Number(S[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class ui{watchedListeners=[];add(t){this.watchedListeners.push(t)}remove(t){const o=this.watchedListeners.indexOf(t);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(t=>{try{t()}catch{}})}}class ci{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new ui,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const ko=new ci,Io={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:fi,create:di}=ie("price"),hi=di({props:{...Io},setup(e){const t=l.computed(()=>({[fi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>yt(e.price)==0?"":Rt(e.price,e.decimalLength,!0,be(e.digits),e.separator)),r=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),a=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),gi=["innerHTML"],mi=["innerHTML"];function pi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,gi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,mi)):l.createCommentVNode("",!0)],2)}const tn=Me(hi,[["render",pi]]),{componentName:_n,create:yi}=ie("hint-text"),bi=yi({components:{Price:tn},props:{...Io,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),s=l.ref(e.placement),i=l.ref(!1),u=l.ref(null),d=(b,j,_,R,F,K)=>{const G=document.documentElement.clientWidth||document.body.clientWidth,U=document.documentElement.clientHeight||document.body.clientHeight,J=b.split("-");let ee=[];J[0]==="top"?ee=["top","bottom","right","left"]:J[0]==="bottom"?ee=["bottom","top","right","left"]:J[0]==="left"?ee=["left","top","bottom","right"]:J[0]==="right"&&(ee=["right","top","bottom","left"]);const re={top:null,right:null,bottom:null,left:null},O=[];for(let x=0;x<ee.length;x++){const I=ee[x];if(O[0]=I,J[1]&&(O[1]=J[1]),I==="top"){const E=j.y-K-e.arrowSize-e.offset;if(E>=0){re.top=E;let v=0;J[1]==="start"?v=j.x:J[1]==="end"?v=j.x+_-F:v=j.x+_/2-F/2;const W=G-v-F;W<0?(v+=W,c.value=-W):c.value=0,re.left=v<0?0:v;break}}else if(I==="bottom"){const E=j.y+R+e.arrowSize+e.offset;if(E+K<=U){re.top=E;let v=0;J[1]==="start"?v=j.x:J[1]==="end"?v=j.x+_-F:v=j.x+_/2-F/2;const W=G-v-F;W<0?(v+=W,c.value=-W):c.value=0,re.left=v<0?0:v;break}}else if(I==="left"){const E=j.x-F-e.arrowSize-e.offset;if(E>=0){re.left=E;let v=0;J[1]==="start"?v=j.y:J[1]==="end"?v=j.y+R-K:v=j.y+R/2-K/2,re.top=v<0?0:v;break}}else if(I==="right"){const E=j.x+_+e.arrowSize+e.offset;if(E+F<=G){re.left=E;let v=0;J[1]==="start"?v=j.y:J[1]==="end"?v=j.y+R-K:v=j.y+R/2-K/2,re.top=v<0?0:v;break}}}return{bestPlacement:O.join("-"),bestInsetRect:re}},f=(b,j,_=10)=>{if(!tt||j===!1||!b)return;n.value=No(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const R=u.value.offsetHeight,F=u.value.offsetWidth,{bestPlacement:K,bestInsetRect:G}=d(e.placement,n.value,r.value,a.value,F,R);s.value=K,o.value=G,i.value=!0},c=l.ref(0),S=St(()=>{f(e.message,e.visible)},10),N=l.ref(e.visible);l.watch(()=>e.visible,b=>{N.value=b});const g=l.computed(()=>N.value&&h.value),h=l.ref(!0),m=St(b=>{const j=b[0];j&&(h.value=j.isIntersecting)},10),$=new IntersectionObserver(m);l.watch([()=>e.message,()=>e.visible],([b,j])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),ko.watch(e.reference,S),$.observe(e.reference)}),l.onBeforeMount(()=>{ko.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const w=l.computed(()=>{const b={[_n]:!0};return s.value.startsWith("top")?b["is-top"]=!0:s.value.startsWith("right")?b["is-right"]=!0:s.value.startsWith("bottom")?b["is-bottom"]=!0:s.value.startsWith("right")&&(b["is-right"]=!0),e.size==="small"?b["is-small"]=!0:e.size==="large"&&(b["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(b[`${e.customClass}`]=!0),b}),C=l.computed(()=>{const b={};o.value.top!==null&&(b.top=`${o.value.top}px`),o.value.right!==null&&(b.right=`${o.value.right}px`),o.value.bottom!==null&&(b.bottom=`${o.value.bottom}px`),o.value.left!==null&&(b.left=`${o.value.left}px`),e.autoFit&&(b["min-width"]=`${r.value}px`);const j=document.documentElement.clientWidth||document.body.clientWidth;return b["max-width"]=`${j}px`,i.value&&(b.opacity="1"),e.transition||(b.transition="none"),e.zIndex&&(b["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(b,e.customStyle),b}),q=l.computed(()=>{const b=[`${_n}__content`];return e.customTextClass&&b.push(e.customTextClass),b}),B=l.computed(()=>{const b={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(b,e.customTextStyle),b}),A=l.computed(()=>({[`${_n}__arrow`]:!0})),L=l.computed(()=>{const b={};return e.showArrow?(b.width=`${e.arrowSize}px`,b.height=`${e.arrowSize}px`,s.value==="top"?(b.left="50%",b.bottom=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="top-start"?(b.left=`${e.arrowOffset+c.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(b.right=`${e.arrowOffset-c.value}px`,b.bottom=`-${e.arrowSize}px`):s.value==="right"?(b.left=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="right-start"?(b.left=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="right-end"?(b.left=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(b.left="50%",b.top=`-${e.arrowSize}px`,b.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(b.left=`${e.arrowOffset+c.value}px`,b.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(b.right=`${e.arrowOffset-c.value}px`,b.top=`-${e.arrowSize}px`):s.value==="left"?(b.right=`-${e.arrowSize}px`,b.top="50%",b.transform=" translate(0%, -50%)"):s.value==="left-start"?(b.right=`-${e.arrowSize}px`,b.top=`${e.arrowOffset}px`):s.value==="left-end"&&(b.right=`-${e.arrowSize}px`,b.bottom=`-${e.arrowOffset}px`),b):{display:"none"}}),M=l.computed(()=>g.value&&e.closeOnClick),V=l.computed(()=>{const b={};return e.zIndex&&(b["z-index"]=`${e.zIndex}`),b});return{show:g,tipRef:u,classes:w,styles:C,textClasses:q,textStyles:B,arrowClasses:A,arrowStyles:L,overlayShow:M,overlayStyle:V,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}}),vi=["innerHTML"];function wi(e,t,o,n,r,a){const s=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,vi))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const $t=Me(bi,[["render",wi]]);class Oo{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const qn={},Si=new Oo,ut=new Map,nn=e=>{if(e){const t=document.getElementById(e);ut.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of ut.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}ut.clear()}},xi=e=>{e.unmount=nn;const t=document.getElementById(e.id);if(t){const o=ut.get(e.id);o?e={...qn,...o,...e}:e={...qn,...e},e.transition=!1;const n=l.createVNode($t,e);return l.render(n,t),e.id}},Ti=e=>{e.unmount=nn;let t=e.id??`hinttext_${Si.get()}`;e={...qn,...e},e.id=t,ut.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode($t,e);return l.render(n,o),document.body.appendChild(o),t},$i=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ve={show(e,t,o={},n=!0){$i(t);const r=o.id;return r&&ut.has(r)?xi({...o,message:t,reference:e}):(n&&nn(),Ti({...o,message:t,reference:e}))},hide(e){nn(e)},install(e){e.config.globalProperties.$hintText=Ve}};function Ci(e,t,o,n=!1){return{inheritAttrs:!0,props:{...ve,...Ne},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;Se({componentName:e,validate:!1},s);const i=We(),u=Ut();Xt(!1);const d=l.computed(()=>u&&i?Zt(i,!1).value:null),f=e,c=l.ref(null),S=l.computed(()=>{const T={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(T[r.errorMarkClass]=!!K.value,T[r.warnMarkClass]=!!R.value,T[r.infoMarkClass]=!!j.value,typeof c.value=="function"){const Y=c.value(s);T[Y]=!0}else if(typeof c.value=="string"){const Y=c.value;T[Y]=!0}return T}),N=l.ref(null),g=l.computed(()=>{const T={};if(r.width)r.width!=="auto"&&(T.width=Ee(r.width));else{const Y=u&&i?Jt(i,!1):null;if(d.value&&Y){if(d.value.type==="grid"){const ne=en(Y,d.value,r.span,r.offset);Object.assign(T,ne)}else if(d.value.type==="flow"){const ne=Qt(Y,d.value,r.span,r.offset,r.width);Object.assign(T,ne)}}}if(typeof N.value=="function"){const Y=N.value(s);Y&&Object.assign(T,Y)}else if(N.value&&typeof N.value=="object"){const Y=N.value;Object.assign(T,Y)}return T}),h=l.ref(null),m=l.computed({get:()=>h.value??se(r.isRequired),set:T=>{h.value=T}}),$=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",w=ke(l.toRef(r,"labelPosition"),"labelPosition",Ae.Near),C=l.computed(()=>w&&w.value==="top"?"top":w&&w.value==="right"?"right":"left"),q=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${C.value}`]:!0})),B=l.computed(()=>({label:!0,[`label--${C.value}`]:!0})),A=ke(l.toRef(r,"labelWidth"),"labelWidth",Ae.Near),L=l.computed(()=>A&&A.value?{width:Ee(A.value)}:{}),M=l.computed(()=>({"label--string":!0,"label--required":m.value})),V=l.computed(()=>({content:!0,[r.contentClass]:!0})),k=l.computed(()=>({...r.contentStyle})),b=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});xe({setRequired(T){m.value=T},setErrorTip(T){b.errorTip=T},setErrorIcon(T){b.errorIcon=T},setWarnTip(T){b.warnTip=T},setWarnIcon(T){b.warnIcon=T},setInfoTip(T){b.infoTip=T},setInfoIcon(T){b.infoIcon=T},setCustomClassName(T){c.value=T},setCustomStyle(T){N.value=T}});const j=l.computed(()=>r.infoTip||b.infoTip),_=l.computed(()=>r.infoIcon||b.infoIcon),R=l.computed(()=>r.warnTip||b.warnTip),F=l.computed(()=>r.warnIcon||b.warnIcon),K=l.computed(()=>r.errorTip||b.errorTip),G=l.computed(()=>r.errorIcon||b.errorIcon),U=l.computed(()=>K.value?"error":R.value?"warn":j.value?"info":""),J=()=>U.value.length>0,ee=l.computed(()=>U.value==="error"?K.value:U.value==="warn"?R.value:U.value==="info"?j.value:""),re=l.computed(()=>U.value==="error"?G.value:U.value==="warn"?F.value:U.value==="info"?_.value:null),O=l.computed(()=>{const T={[`${f}__tip`]:!0,[`${f}__tip--${U.value}`]:!0,[`${f}--animate`]:!0};return U.value==="error"&&r.errorClass?T[`${r.errorClass}`]=!0:U.value==="warn"&&r.warnClass?T[`${r.warnClass}`]=!0:U.value==="info"&&r.infoClass&&(T[`${r.infoClass}`]=!0),T}),x=l.computed(()=>{const T={};return w&&w.value==="top"||!$()?T["padding-left"]="0px":A&&A.value&&(T["padding-left"]=Ee(A.value)),T}),I=l.ref();let E="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([T,Y,ne,le])=>{I.value&&(T&&!ge(Y)?E?o.show(I.value,Y,{...le,id:E,type:ne},!0):E=o.show(I.value,Y,{...le,type:ne},!0):o.hide(E))});let v=null;const W=()=>{v||!I.value||(v=new IntersectionObserver(T=>{let Y=!1;for(let ne of T)if(ne.intersectionRatio>0){Y=!0,Y&&a.emit("appear",ne);break}Y||a.emit("disappear")}),v.observe(I.value))},P=()=>{!v||!I.value||(v.unobserve(I.value),v=null)};l.watch(()=>se(r.appearListen),T=>{T?W():P()}),l.onMounted(()=>{se(r.appearListen)&&W()}),l.onUnmounted(P);const z=()=>{if(!$())return null;const T=[],Y=a.slots?.label?.()??r.label,ne={class:M.value},le=l.h("div",ne,[Y]);if(T.push(le),a.slots.fixedPreTip){const oe=a.slots.fixedPreTip();T.push(oe)}const Z={class:B.value,style:L.value};return l.h("div",Z,T)},D=()=>{const T=[];if(a.slots.prepend){const ne=a.slots.prepend();T.push(ne)}if(a.slots.default){const ne=a.slots.default();T.push(ne)}if(a.slots.append){const ne=a.slots.append();T.push(ne)}if(a.slots.fixedTip){const ne={class:[`${f}__fixed-tip`]},le=l.h("div",ne,[a.slots.fixedTip()]);T.push(le)}const Y={ref:I,class:V.value,style:k.value};return l.h("div",Y,T)},X=()=>{const T=re.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--icon"},[T()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(T)]):null},H=()=>{const T=ee.value;return T?typeof T=="function"?l.h("div",{class:"fox-item__tip--text"},[T()]):l.h("div",{class:"fox-item__tip--text"},[T]):null},Q=()=>{if(!J())return null;const T=[],Y=X();Y&&T.push(Y);const ne=H();ne&&T.push(ne);const le={class:O.value,style:x.value};return l.h("div",le,T)},te=()=>a.slots?.hide?.()??null;return()=>{const T=[],Y=[],ne=z();ne&&Y.push(ne);const le=D();le&&Y.push(le);const Z={class:q.value},oe=l.h("div",Z,Y);T.push(oe);const ae=Q();ae&&T.push(ae);const ue=te();ue&&T.push(ue);const ye={class:S.value,style:g.value,prop:r.prop};return l.h("div",ye,T)}}}}const{componentName:Ei,create:Ni,scope:ki}=ie("item"),we=Ni(Ci(Ei,ki,Ve,!1));function Ii(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=We(),a=Ut();Xt(!1);const s=l.computed(()=>a&&r?Zt(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),d=l.computed(()=>{const f={},c=a&&r?Jt(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const S=en(c,s.value,o.span,o.offset);Object.assign(f,S)}else if(s.value.type==="flow"){const S=Qt(c,s.value,o.span,o.offset,o.width);Object.assign(f,S)}else return o.width&&(f.width=Ee(o.width)),f;else o.width&&(f.width=Ee(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Oi,create:Vi,scope:Sh}=ie("slot-item"),Pn=Vi(Ii(Oi));function Fi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),s=We(),i=Ut();Xt(!1);const u=l.computed(()=>{const d={};if(i&&s){const f=Zt(s,!1),c=Jt(s,!1);if(f.value&&c)if(f.value.type==="grid"){const S=en(c,f.value,o.span,o.offset);Object.assign(d,S)}else if(f.value.type==="flow"){const S=Qt(c,f.value,o.span,o.offset,o.width);Object.assign(d,S)}else o.width&&(d.width=Ee(o.width))}else o.width&&(d.width=Ee(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let S=0;S<c.length;S++){if(S>0){const N=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(N)}d.push(c[S])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Di,create:Ri,scope:xh}=ie("row-item"),jn=Ri(Fi(Di)),je=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},Vo={modelValue:{type:[String,Boolean,Number,Object],required:!1},clearable:{type:[Boolean,String],default:!0},placeholder:{type:[String],required:!1},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}};function Ai(e,t,o){return{props:{...ve,...Ne,...Vo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__disabled`]:a.value,[`${S}__readonly`]:s.value})),g=_=>{c.value=_,i("update:modelValue",_),i("input",_)},h=_=>{i("change",_)};let m=de(n,"hintText"),$=l.ref(!1);const w=_=>{let F=_.target.value;f.value=!0,ge(m.value)||($.value=!0),i("focus",F,_)},C=_=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let F=_.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),i("blur",F,_)},q=()=>{i("clear","")},B=l.ref(!1);let A=null;const L=()=>{n.showTooltip&&B.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{B.value=!0},150))},M=()=>{A&&(clearTimeout(A),B.value=!1,A=null)},V=l.computed(()=>B.value||$.value),k=l.computed(()=>B.value?c.value:m.value),b=l.computed(()=>yt(n.unit)>0),j=l.ref();return xe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const R={...je(r.attrs),ref:j,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:h,onInput:g,onFocus:w,onBlur:C,onMouseover:L,onMouseleave:M},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,R,F);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.default&&(U.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Vo),hintText:k.value,hintVisible:V.value,prop:`${n.prop}_item`};return l.h(o,ee,U)}}}}const{componentName:Li,create:Mi,scope:Bi}=ie("input-item"),zn=Mi(Ai(Li,Bi,we));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ct(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Fo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function _i(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let qi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Pi(){const e=l.getCurrentInstance();return new qi(e.proxy)}function Do(e,t,o){const n=Ze(e,t),r=Ze(e,o);if(n!==r)return!1;const a=Ct(e,t),s=Ct(e,o);return a===s}function Ro(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){const i=Fo(e,s);if(Array.isArray(i)&&i.length>0){const u=Ro(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Ze(e,s)===a;else if(o==="item")u=Do(e,s,a);else{let d=Ct(e,s);d==null&&(d=Ze(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function ji(e){return{text:e,value:e}}const Ao={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function zi(e,t,o){return{props:{...ve,...Ne,...Ao},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(X=>Ze(n,X)).join(" "):""),N=(D,X,H,Q=!0)=>{const te=Ro(n,D,X,H);if(te===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Q&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let T=!0;if(te.length!==c.value.length)T=!1;else for(let Y=0;Y<te.length;Y++){const ne=te[Y],le=c.value[Y];if(!Do(n,ne,le)){T=!1;break}}if(!T){c.value=te;let Y=[],ne=[],le=[];te.forEach(ue=>{const ye=Ct(n,ue),he=Ze(n,ue);Y.push(ye),le.push(he),n.valueType==="text"?ne.push(he):n.valueType==="item"?ne.push(ue):ne.push(ye)});let Z,oe,ae;se(n.multiple)?(f.value=Y,Z=l.toRaw(ne),oe=le,ae=l.toRaw(te)):(f.value=Y[0]??"",Z=l.toRaw(ne[0]??""),oe=le[0]??"",ae=l.toRaw(te[0])),Q&&(i("update:modelValue",Z),i("change",Z,ae)),i("update:text",oe)}},g=l.ref(null),h=l.ref(null),m=l.computed(()=>h.value??g.value??[]),$=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,D=>se(D)),w=Pi(),C=async(D,X)=>{if(D){const H=await w.load("select",D,X);if(H.length>0)if(typeof H[0]=="string"){let T=H.map(Y=>ji(Y));g.value=T}else g.value=H;else g.value=null}};l.watch([()=>n.source,()=>n.params],([D,X])=>{h.value=null,C(D,X)},{immediate:!$.value});let q=!1;const B=()=>{q||(q=!0,C(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([D,X])=>{if(V()&&se(n.multiple)){Ke(X,f.value)||(f.value=X);return}N(X,n.valueType,m.value,!1),i("setValue",X)});let A=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(A=async D=>{if(D==null){h.value=null;return}L.value=!0;try{const X=await n.remoteMethod(D);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async D=>{if(D==null){h.value=null;return}L.value=!0;try{const X=await n.filterMethod(D,g.value);X&&(h.value=X)}catch(X){h.value=null,console.error(X)}L.value=!1});const V=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",k=l.ref(!1),b=e,j=l.computed(()=>({[b]:!0})),_=D=>{n.allowCreate||V()&&se(n.multiple)?(i("update:modelValue",D),i("change",D),i("update:text",D),f.value=D):N(D,"value",m.value,!0)};let R=de(n,"hintText"),F=l.ref(!1);const K=D=>{let H=D.target.value;k.value=!0,ge(R.value)||(F.value=!0),i("focus",H,D)},G=D=>{setTimeout(()=>{F.value&&(F.value=!1),k.value=!1},0);let H=D.target.value;n.maxLength&&H.length>Number(n.maxLength)&&(H=H.slice(0,Number(n.maxLength))),E.value||i("blur",H,D)},U=()=>{i("clear","")},J=l.ref(!1);let ee=null;const re=()=>{n.showTooltip&&J.value===!1&&(ee&&clearTimeout(ee),ee=setTimeout(()=>{J.value=!0},150))},O=()=>{ee&&(clearTimeout(ee),J.value=!1,ee=null)},x=l.computed(()=>J.value||F.value),I=l.computed(()=>J.value?S.value:R.value),E=l.ref(!1),v=D=>{E.value=D,i("visible-change",D),D||i("selected")},W=D=>{i("remove-tag",D)},P=(D,X)=>{const H=[];return D.forEach((Q,te)=>{const T=Fo(n,Q);if(Array.isArray(T)&&T.length>0){const Y=P(T,X),ne=Ze(n,Q),Z={key:`${ne}_${te}`,label:ne};H.push(l.h(y.ElOptionGroup,Z,{default:()=>Y}))}else{const Y=Ct(n,Q),ne=Ze(n,Q),le=_i(n,Q),oe={key:`${Y}_${te}`,label:ne,disabled:le,value:Y};if(typeof X=="function")H.push(l.h(y.ElOption,oe,{default:()=>X(Q)}));else if(n.optionType==="item"){const ae={class:{"fox-select-item__option-left":!0}},ue=l.h("span",ae,[Y]),ye={class:{"fox-select-item__option-right":!0}},he=l.h("span",ye,[ne]),gt=l.h("div",{class:{"fox-select-item__option":!0}},[ue,he]);H.push(l.h(y.ElOption,oe,{default:()=>gt}))}else n.optionType==="value"?H.push(l.h(y.ElOption,oe,{default:()=>[Y]})):H.push(l.h(y.ElOption,oe))}}),H},z=l.ref();return xe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()}}),()=>{const X={...je(r.attrs),ref:z,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:U,onChange:_,onFocus:K,onBlur:G,onVisibleChange:v,onRemoveTag:W};typeof A=="function"&&(X["remote-method"]=A,X.loading=L.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=L.value);const H={};r.slots.prefix&&(H.prefix=r.slots.prefix),r.slots.empty&&(H.empty=r.slots.empty),r.slots.options?H.default=r.slots.options:H.default=()=>P(m.value,r.slots.option);const Q=[],te=l.h(y.ElSelect,X,H);Q.push(te);const T={default:()=>Q};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const ne={...Ce(n,Ao),hintText:I.value,hintVisible:x.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:re,onMouseleave:O};return $.value&&(ne["appear-listen"]=!0,ne.onAppear=B),l.h(o,ne,T)}}}}const{componentName:Hi,create:Ki,scope:Wi}=ie("select-item"),Hn=Ki(zi(Hi,Wi,we));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",d="day",f="week",c="month",S="quarter",N="year",g="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var F=["th","st","nd","rd"],K=R%100;return"["+R+(F[(K-20)%10]||F[K]||F[0])+"]"}},C=function(R,F,K){var G=String(R);return!G||G.length>=F?R:""+Array(F+1-G.length).join(K)+R},q={s:C,z:function(R){var F=-R.utcOffset(),K=Math.abs(F),G=Math.floor(K/60),U=K%60;return(F<=0?"+":"-")+C(G,2,"0")+":"+C(U,2,"0")},m:function R(F,K){if(F.date()<K.date())return-R(K,F);var G=12*(K.year()-F.year())+(K.month()-F.month()),U=F.clone().add(G,c),J=K-U<0,ee=F.clone().add(G+(J?-1:1),c);return+(-(G+(K-U)/(J?U-ee:ee-U))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:c,y:N,w:f,d,D:g,h:u,m:i,s,ms:a,Q:S}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},B="en",A={};A[B]=w;var L="$isDayjsObject",M=function(R){return R instanceof j||!(!R||!R[L])},V=function R(F,K,G){var U;if(!F)return B;if(typeof F=="string"){var J=F.toLowerCase();A[J]&&(U=J),K&&(A[J]=K,U=J);var ee=F.split("-");if(!U&&ee.length>1)return R(ee[0])}else{var re=F.name;A[re]=F,U=re}return!G&&U&&(B=U),U||!G&&B},k=function(R,F){if(M(R))return R.clone();var K=typeof F=="object"?F:{};return K.date=R,K.args=arguments,new j(K)},b=q;b.l=V,b.i=M,b.w=function(R,F){return k(R,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var j=function(){function R(K){this.$L=V(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[L]=!0}var F=R.prototype;return F.parse=function(K){this.$d=function(G){var U=G.date,J=G.utc;if(U===null)return new Date(NaN);if(b.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var ee=U.match(m);if(ee){var re=ee[2]-1||0,O=(ee[7]||"0").substring(0,3);return J?new Date(Date.UTC(ee[1],re,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)):new Date(ee[1],re,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,O)}}return new Date(U)}(K),this.init()},F.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},F.$utils=function(){return b},F.isValid=function(){return this.$d.toString()!==h},F.isSame=function(K,G){var U=k(K);return this.startOf(G)<=U&&U<=this.endOf(G)},F.isAfter=function(K,G){return k(K)<this.startOf(G)},F.isBefore=function(K,G){return this.endOf(G)<k(K)},F.$g=function(K,G,U){return b.u(K)?this[G]:this.set(U,K)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(K,G){var U=this,J=!!b.u(G)||G,ee=b.p(K),re=function(z,D){var X=b.w(U.$u?Date.UTC(U.$y,D,z):new Date(U.$y,D,z),U);return J?X:X.endOf(d)},O=function(z,D){return b.w(U.toDate()[z].apply(U.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(D)),U)},x=this.$W,I=this.$M,E=this.$D,v="set"+(this.$u?"UTC":"");switch(ee){case N:return J?re(1,0):re(31,11);case c:return J?re(1,I):re(0,I+1);case f:var W=this.$locale().weekStart||0,P=(x<W?x+7:x)-W;return re(J?E-P:E+(6-P),I);case d:case g:return O(v+"Hours",0);case u:return O(v+"Minutes",1);case i:return O(v+"Seconds",2);case s:return O(v+"Milliseconds",3);default:return this.clone()}},F.endOf=function(K){return this.startOf(K,!1)},F.$set=function(K,G){var U,J=b.p(K),ee="set"+(this.$u?"UTC":""),re=(U={},U[d]=ee+"Date",U[g]=ee+"Date",U[c]=ee+"Month",U[N]=ee+"FullYear",U[u]=ee+"Hours",U[i]=ee+"Minutes",U[s]=ee+"Seconds",U[a]=ee+"Milliseconds",U)[J],O=J===d?this.$D+(G-this.$W):G;if(J===c||J===N){var x=this.clone().set(g,1);x.$d[re](O),x.init(),this.$d=x.set(g,Math.min(this.$D,x.daysInMonth())).$d}else re&&this.$d[re](O);return this.init(),this},F.set=function(K,G){return this.clone().$set(K,G)},F.get=function(K){return this[b.p(K)]()},F.add=function(K,G){var U,J=this;K=Number(K);var ee=b.p(G),re=function(I){var E=k(J);return b.w(E.date(E.date()+Math.round(I*K)),J)};if(ee===c)return this.set(c,this.$M+K);if(ee===N)return this.set(N,this.$y+K);if(ee===d)return re(1);if(ee===f)return re(7);var O=(U={},U[i]=n,U[u]=r,U[s]=o,U)[ee]||1,x=this.$d.getTime()+K*O;return b.w(x,this)},F.subtract=function(K,G){return this.add(-1*K,G)},F.format=function(K){var G=this,U=this.$locale();if(!this.isValid())return U.invalidDate||h;var J=K||"YYYY-MM-DDTHH:mm:ssZ",ee=b.z(this),re=this.$H,O=this.$m,x=this.$M,I=U.weekdays,E=U.months,v=U.meridiem,W=function(D,X,H,Q){return D&&(D[X]||D(G,J))||H[X].slice(0,Q)},P=function(D){return b.s(re%12||12,D,"0")},z=v||function(D,X,H){var Q=D<12?"AM":"PM";return H?Q.toLowerCase():Q};return J.replace($,function(D,X){return X||function(H){switch(H){case"YY":return String(G.$y).slice(-2);case"YYYY":return b.s(G.$y,4,"0");case"M":return x+1;case"MM":return b.s(x+1,2,"0");case"MMM":return W(U.monthsShort,x,E,3);case"MMMM":return W(E,x);case"D":return G.$D;case"DD":return b.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return W(U.weekdaysMin,G.$W,I,2);case"ddd":return W(U.weekdaysShort,G.$W,I,3);case"dddd":return I[G.$W];case"H":return String(re);case"HH":return b.s(re,2,"0");case"h":return P(1);case"hh":return P(2);case"a":return z(re,O,!0);case"A":return z(re,O,!1);case"m":return String(O);case"mm":return b.s(O,2,"0");case"s":return String(G.$s);case"ss":return b.s(G.$s,2,"0");case"SSS":return b.s(G.$ms,3,"0");case"Z":return ee}return null}(D)||ee.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(K,G,U){var J,ee=this,re=b.p(G),O=k(K),x=(O.utcOffset()-this.utcOffset())*n,I=this-O,E=function(){return b.m(ee,O)};switch(re){case N:J=E()/12;break;case c:J=E();break;case S:J=E()/3;break;case f:J=(I-x)/6048e5;break;case d:J=(I-x)/864e5;break;case u:J=I/r;break;case i:J=I/n;break;case s:J=I/o;break;default:J=I}return U?J:b.a(J)},F.daysInMonth=function(){return this.endOf(c).$D},F.$locale=function(){return A[this.$L]},F.locale=function(K,G){if(!K)return this.$L;var U=this.clone(),J=V(K,G,!0);return J&&(U.$L=J),U},F.clone=function(){return b.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},R}(),_=j.prototype;return k.prototype=_,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",N],["$D",g]].forEach(function(R){_[R[1]]=function(F){return this.$g(F,R[0],R[1])}}),k.extend=function(R,F){return R.$i||(R(F,j,k),R.$i=!0),k},k.locale=V,k.isDayjs=M,k.unix=function(R){return k(1e3*R)},k.en=A[B],k.Ls=A,k.p={},k})})(Lo);var Yi=Lo.exports;const ze=Ge(Yi);var Mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(m){this[h]=+m}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var $=m.match(/([+-]|\d\d)/g),w=60*$[1]+(+$[2]||0);return w===0?0:$[0]==="+"?-w:w}(h)}],c=function(h){var m=i[h];return m&&(m.indexOf?m:m.s.concat(m.f))},S=function(h,m){var $,w=i.meridiem;if(w){for(var C=1;C<=24;C+=1)if(h.indexOf(w(C,0,m))>-1){$=C>12;break}}else $=h===(m?"pm":"PM");return $},N={A:[s,function(h){this.afternoon=S(h,!1)}],a:[s,function(h){this.afternoon=S(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[s,function(h){var m=i.ordinal,$=h.match(/\d+/);if(this.day=$[0],m)for(var w=1;w<=31;w+=1)m(w).replace(/\[|\]/g,"")===h&&(this.day=w)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var m=c("months"),$=(c("monthsShort")||m.map(function(w){return w.slice(0,3)})).indexOf(h)+1;if($<1)throw new Error;this.month=$%12||$}],MMMM:[s,function(h){var m=c("months").indexOf(h)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(h){var m,$;m=h,$=i&&i.formats;for(var w=(h=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,k,b){var j=b&&b.toUpperCase();return k||$[b]||o[b]||$[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(_,R,F){return R||F.slice(1)})})).match(n),C=w.length,q=0;q<C;q+=1){var B=w[q],A=N[B],L=A&&A[0],M=A&&A[1];w[q]=M?{regex:L,parser:M}:B.replace(/^\[|\]$/g,"")}return function(V){for(var k={},b=0,j=0;b<C;b+=1){var _=w[b];if(typeof _=="string")j+=_.length;else{var R=_.regex,F=_.parser,K=V.slice(j),G=R.exec(K)[0];F.call(k,G),V=V.replace(G,"")}}return function(U){var J=U.afternoon;if(J!==void 0){var ee=U.hours;J?ee<12&&(U.hours+=12):ee===12&&(U.hours=0),delete U.afternoon}}(k),k}}return function(h,m,$){$.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var w=m.prototype,C=w.parse;w.parse=function(q){var B=q.date,A=q.utc,L=q.args;this.$u=A;var M=L[1];if(typeof M=="string"){var V=L[2]===!0,k=L[3]===!0,b=V||k,j=L[2];k&&(j=L[2]),i=this.$locale(),!V&&j&&(i=$.Ls[j]),this.$d=function(K,G,U){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*K);var J=g(G)(K),ee=J.year,re=J.month,O=J.day,x=J.hours,I=J.minutes,E=J.seconds,v=J.milliseconds,W=J.zone,P=new Date,z=O||(ee||re?1:P.getDate()),D=ee||P.getFullYear(),X=0;ee&&!re||(X=re>0?re-1:P.getMonth());var H=x||0,Q=I||0,te=E||0,T=v||0;return W?new Date(Date.UTC(D,X,z,H,Q,te,T+60*W.offset*1e3)):U?new Date(Date.UTC(D,X,z,H,Q,te,T)):new Date(D,X,z,H,Q,te,T)}catch{return new Date("")}}(B,M,A),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),b&&B!=this.format(M)&&(this.$d=new Date("")),i={}}else if(M instanceof Array)for(var _=M.length,R=1;R<=_;R+=1){L[1]=M[R-1];var F=$.apply(this,L);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}R===_&&(this.$d=new Date(""))}else C.call(this,q)}}})})(Mo);var Gi=Mo.exports;const Ui=Ge(Gi);var Bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return c}});return a.bind(this)(f)}}})})(Bo);var Xi=Bo.exports;const Zi=Ge(Xi);var _o={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){var a=n.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,S,N,g,h){var m=c.name?c:c.$locale(),$=s(m[S]),w=s(m[N]),C=$||w.map(function(B){return B.slice(0,g)});if(!h)return C;var q=m.weekStart;return C.map(function(B,A){return C[(A+(q||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,S){return c.formats[S]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,h,m){return h||m.slice(1)})}(c.formats[S.toUpperCase()])},f=function(){var c=this;return{months:function(S){return S?S.format("MMMM"):i(c,"months")},monthsShort:function(S){return S?S.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(S){return S?S.format("dddd"):i(c,"weekdays")},weekdaysMin:function(S){return S?S.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(S){return S?S.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(S){return d(c.$locale(),S)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(S){return d(c,S)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(c){return i(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}})})(_o);var Ji=_o.exports;const Qi=Ge(Ji);var qo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),c=s(this).endOf(o);if(f.isBefore(c))return 1}var S=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(S,o,!0);return N<0?s(this).startOf("week").week():Math.ceil(N)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(qo);var es=qo.exports;const ts=Ge(es);var Po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(Po);var ns=Po.exports;const ls=Ge(ns);var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(jo);var os=jo.exports;const rs=Ge(os);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(zo);var as=zo.exports;const is=Ge(as);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ye,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Ho);var ss=Ho.exports;const us=Ge(ss);ze.extend(Qi),ze.extend(Zi),ze.extend(Ui),ze.extend(ts),ze.extend(ls),ze.extend(rs),ze.extend(is),ze.extend(us);const Le={format(e,t){return ze(e).format(t)},parser(e,t){return ze(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,d=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,d=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Le.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Le.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Ko={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"}},Wo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function cs(e,t,o){return{props:{...ve,...Ne,...Ko,...Wo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,i),S=l.computed(()=>F.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),N=l.computed(()=>F.value?"longTermKey":"normalKey"),g=z=>{if(F.value&&n.type==="daterange"){const D=[...c.value];D[0]=z,c.value=D}else c.value=z;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>F.value&&n.type==="daterange"?"date":n.type),m=e,$=l.computed(()=>({[`${m}`]:!0,"is-long":F.value,"is-readonly":s.value,"is-disabled":a.value}));let w=de(n,"hintText"),C=l.ref(!1);const q=z=>{let X=z.target.value;f.value=!0,ge(w.value)||(C.value=!0),i("focus",X,z)},B=z=>{setTimeout(()=>{C.value&&(C.value=!1),f.value=!1},0);let X=z.target.value;n.maxLength&&X.length>Number(n.maxLength)&&(X=X.slice(0,Number(n.maxLength))),i("blur",X,z)},A=()=>{i("clear","")},L=z=>{i("calendar-change",z)},M=(z,D,X)=>{i("panel-change",z,D,X)},V=z=>{i("visible-change",z)},k=ke(l.computed(()=>n.longTermText),"longTermText",Ae.Near),b=ke(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ae.Near),j=ke(l.computed(()=>n.longTermValue),"longTermValue",Ae.Near),_=ke(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let R=null;const F=l.ref(se(n.longTerm)),K=z=>{if(F.value=z,i("update:longTerm",z),z){if(R=c.value,n.type==="daterange"){const D=[];Array.isArray(j.value)?(D[0]=c.value?c.value[0]??j.value[0]:null,D[1]=j.value[1]??j.value[0]):(D[0]=c.value?c.value[0]??j.value:null,D[1]=F.value),D[0]||(D[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),D[1]||(D[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),c.value=D}else Array.isArray(j.value)?c.value=j.value[1]??j.value[0]:c.value=j.value,c.value||(c.value=n.valueFormat?Le.format(new Date,n.valueFormat):new Date);i("update:modelValue",c.value)}else{if(n.type==="daterange"){const D=[];D[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(R)?D[1]=R[1]:D[1]=R,D[0]||(D[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),D[1]||(D[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),c.value=D}else c.value=R;i("update:modelValue",c.value),setTimeout(()=>{W()},100)}},G=se(n.isLongTerm);if(G){const z=()=>{if(F.value===!0){if(R=c.value,n.type==="daterange"){const D=[c.value[0]];Array.isArray(j.value)?D[1]=j.value[1]??j.value[0]:D[1]=F.value,D[0]||(D[0]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),D[1]||(D[1]=n.valueFormat?Le.format(new Date,n.valueFormat):new Date),c.value=D}else c.value=j.value;i("update:modelValue",c.value)}else Ke(j.value,c.value)&&(F.value=!0)};z(),l.watch([()=>n.longTerm],([D])=>{F.value!==D&&z()}),l.watch([()=>c.value],([D])=>{let X=!1;if(n.type==="daterange"&&Array.isArray(D))try{let H=D[1];if(!H)return;typeof H!="string"&&n.valueFormat&&(H=Le.format(H,n.valueFormat));let Q=Array.isArray(j.value)?j.value[1]:j.value;(H===Q||Array.isArray(_.value)&&_.value.findIndex(T=>H==T)!==-1)&&(X=!0)}catch(H){console.error(H)}F.value!==X&&(F.value=X)},{immediate:!0})}const U=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),J=l.ref(),ee=l.ref(),re=/^\d+$/,O=(z,D)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(z,D):re.test(z)&&z.length===n.flashFillThreshold,x=(z,D)=>{let X;if(typeof n.flashFillFormat=="function")X=n.flashFillFormat(z,D);else{const Q=n.flashFillFormat??"YYYYMMDD";X=Le.parser(z,Q)}const H=n.valueFormat??"YYYY-MM-DD";return Le.format(X,H)},I=z=>z?z.endsWith("range"):!1,E=z=>{if(!z.target)return;const D=z.target.value??"";if(O(D,n.type)){const X=x(D,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[0]=X,g(H)}else g(X)}},v=z=>{if(!z.target)return;const D=z.target.value??"";if(O(D,n.type)){const X=x(D,n.type);if(I(n.type)){const H=Array.isArray(c.value)?[...c.value]:[];H[1]=X,g(H)}else g(X)}},W=()=>{if(n.flashFill&&J.value&&J.value.$el)if(I(n.type)){const z=J.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].addEventListener("input",E),z[1]&&z[1].addEventListener("input",v)}else{const z=J.value.$el.querySelector("input.el-input__inner");z&&z.addEventListener("input",E)}},P=()=>{if(n.flashFill&&J.value&&J.value.$el)if(I(n.type)){const z=J.value.$el.querySelectorAll("input.el-range-input");z[0]&&z[0].removeEventListener("input",E),z[1]&&z[1].removeEventListener("input",v)}else{const z=J.value.$el.querySelector("input.el-input__inner");z&&z.removeEventListener("input",E)}};return l.onMounted(W),l.onBeforeUnmount(P),xe({focus:()=>{ee?.value.focus()},blur:()=>{ee?.value.blur()},handleOpen:()=>{ee?.value.handleOpen()},handleClose:()=>{ee?.value.handleClose()}}),()=>{const D={...r.attrs,key:N.value,type:h.value,ref:ee,class:$.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:S.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":g,onClear:A,onFocus:q,onBlur:B,onCalendarChange:L,onPanelChange:M,onVisibleChange:V},X={};r.slots["range-separator"]&&(X["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(X.default=r.slots.cell);const H=[],Q=l.h(y.ElDatePicker,D,X);H.push(Q);const te={default:()=>H};if(r.slots.default&&(te.label=r.slots.default),r.slots.fixedTip&&(te.fixedTip=r.slots.fixedTip),G){if(F.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),Z=l.h("input",{class:["fox-date-item__long-text"],value:k.value,readonly:!0}),oe={class:U.value},ae=l.h("div",oe,{default:()=>[le,Z]});H.push(ae)}if(!s.value&&!a.value){const le={label:b.value||k.value,disabled:s.value||a.value,modelValue:F.value,"onUpdate:modelValue":K},Z=l.h(y.ElCheckbox,le),oe=l.h("div",{class:{[`${m}__append`]:!0}},[Z]);te.append=()=>oe}}const Y={...Ce(n,Ko,Wo),ref:J,class:{[`${m}__wrapper`]:!0,"has-append":G},hintText:w.value,hintVisible:C.value,prop:`${n.prop}_item`};return l.h(o,Y,te)}}}}const{componentName:fs,create:ds,scope:hs}=ie("date-item"),Kn=ds(cs(fs,hs,we)),Yo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function gs(e,t,o){return{props:{...ve,...Ne,...Yo},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=A=>{c.value=A,i("update:modelValue",A),i("change",A)};let h=de(n,"hintText"),m=l.ref(!1);const $=A=>{let M=A.target.value;f.value=!0,ge(h.value)||(m.value=!0),i("focus",M,A)},w=A=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let M=A.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),i("blur",M,A)},C=()=>{i("clear","")},q=A=>{i("visible-change",A)},B=l.ref();return xe({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const L={...r.attrs,ref:B,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w,onVisibleChange:q},M={},V=[],k=l.h(y.ElTimePicker,L,M);V.push(k);const b={default:()=>V};r.slots.default&&(b.label=r.slots.default),r.slots.fixedTip&&(b.fixedTip=r.slots.fixedTip);const _={...Ce(n,Yo),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,_,b)}}}}const{componentName:ms,create:ps,scope:ys}=ie("time-item"),Wn=ps(gs(ms,ys,we)),Go={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function bs(e,t,o){return{props:{...ve,...Ne,...Go},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=B=>{c.value=B,i("update:modelValue",B),i("change",B)};let h=de(n,"hintText"),m=l.ref(!1);const $=B=>{let L=B.target.value;f.value=!0,ge(h.value)||(m.value=!0),i("focus",L,B)},w=B=>{setTimeout(()=>{m.value&&(m.value=!1),f.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,B)},C=()=>{i("clear","")},q=l.ref();return 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:s.value,modelValue:c.value,"onUpdate:modelValue":g,onClear:C,onFocus:$,onBlur:w},L={},M=[],V=l.h(y.ElTimeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...Ce(n,Go),hintText:h.value,hintVisible:m.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:vs,create:ws,scope:Ss}=ie("time-select-item"),Yn=ws(bs(vs,Ss,we));function Uo(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Xo(e,t,o=20){if(typeof t=="string"&&(t=be(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Hl(`${e}`,`${t}`);return Uo(n)}else{let n=yn(`${e}`,Kl(`${t}`),20);return Uo(n)}}function xs(e,t=-1,o=!1,n=3,r=","){return Rt(e,t,o,n,r)}function Zo(e,t,o,n,r=!0){if(e==="")return"";if(e=Wl(e),t=be(t),t==1)return e;if(n)e=Xo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(be(o)+2,"0"):e=yn(e,1,be(o)));else{let a=-1*t;e=Xo(e,a)}return e}function Jo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=bn(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=bn(e,t.max);(n&&r==1||!n&&(r==0||r==1))&&(o.maxValid=!1)}return o}const Qo={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Ts(e,t,o){return{props:{...ve,...Ne,...Qo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=de(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([_,R,F])=>{if(ge(_)){f.value="";return}const K=Zo(_,R,F,!1);f.value!==K&&(f.value=K)},{immediate:!0});const c=l.computed(()=>{let _="";return u.value&&(_=f.value),_}),{t:S}=Re.useFoxI18n(t),N=l.computed(()=>{let _=n.placeholder??"";return!u.value&&!ge(f.value)?_=xs(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):_=S(["placeholder",_]),_}),g=e,h=l.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:f.value.length>0})),m=ke(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:m.value??"right"});const $=l.ref(""),w=l.computed(()=>{let _=$.value;return ge(_)&&(_=n.errorTip??""),_}),C=l.ref(""),q=l.ref(!1),B=(_,R)=>{if(_=`${_}`,ge(_)){f.value="",d.value="",R.forEach(F=>{i(F,"")}),se(n.showTip)&&q.value&&(q.value=!1);return}if(_.length>=2){let F=_;if(F.charAt(0)=="-"&&(F=F.substring(1)),F.length>=2&&F.charAt(0)=="0"&&F.charAt(1)!="."){l.triggerRef(f);return}}if(_!="-"){if(!to(_)){l.triggerRef(f);return}if(n.integerLength!=-1&&no(_)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&lo(_)>Number(n.decimalLength)){l.triggerRef(f);return}let F=Jo(_,n);if(F.maxValid===!1){$.value=F.message,l.triggerRef(f);return}}else if(n.min!=null&&be(n.min)>=0){l.triggerRef(f);return}C.value=_,se(n.showTip)&&(q.value=_.length>0),f.value=_,d.value=Zo(_,n.rates,n.precision,!0),R.forEach(F=>{i(F,d.value)})},A=_=>{B(_,["update:modelValue","input"])},L=_=>{B(_,["update:modelValue","change"])},M=_=>{if(u.value=!0,se(n.showTip)){let R=f.value;ge(R)&&(R=n.hintText),ge(R)||(C.value=R,q.value=!0)}$.value="",i("focus",d.value,_)},V=_=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&q.value===!0&&(q.value=!1)},0),!ge(f.value)){let R=Jo(f.value,n);if(R.minValid===!1||R.maxValid===!1){$.value=R.message;return}}i("update:modelValue",d.value,_),i("blur",d.value,_)},k=()=>{i("clear","")},b=l.computed(()=>yt(n.unit)>0),j=l.ref();return xe({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const R={...je(r.attrs),ref:j,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:k,onInput:A,onChange:L,onFocus:M,onBlur:V},F={};r.slots.prepend&&(F.prepend=r.slots.prepend),r.slots.append&&(F.append=r.slots.append),r.slots.prefix&&(F.prefix=r.slots.prefix),r.slots.suffix?F.suffix=r.slots.suffix:b.value&&(F.suffix=()=>[n.unit]);const K=[],G=l.h(y.ElInput,R,F);K.push(G);const U={default:()=>K};r.slots.default&&(U.label=r.slots.default),r.slots.fixedTip&&(U.fixedTip=r.slots.fixedTip);const ee={...Ce(n,Qo),errorTip:w.value,hintText:C.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return l.h(o,ee,U)}}}}const{componentName:$s,create:Cs,scope:Es}=ie("money-item"),Gn=Cs(Ts($s,Es,we)),er={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,o){return{props:{...ve,...Ne,...er},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0,[`${S}__append`]:A.value})),g=l.computed(()=>({[`${S}__unit`]:!0})),h=M=>{c.value=M,i("update:modelValue",M),i("input",M)},m=M=>{i("change",M)};let $=de(n,"hintText"),w=l.ref(!1);const C=M=>{let k=M.target.value;f.value=!0,ge($.value)||(w.value=!0),i("focus",k,M)},q=M=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let k=M.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),i("blur",k,M)},B=()=>{i("clear","")},A=l.computed(()=>yt(n.unit)>0),L=l.ref();return xe({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const V={...je(r.attrs),ref:L,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:m,onInput:h,onFocus:C,onBlur:q},k={},b=[],j=l.h(y.ElInputNumber,V,k);b.push(j);const _={default:()=>b};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ce(n,er),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};if(r.slots.append)_.append=r.slots.append;else if(A.value){const G={class:g.value},U=l.h("div",G,[n.unit]);_.append=()=>U}return l.h(o,F,_)}}}}const{componentName:ks,create:Is,scope:Os}=ie("input-number-item"),Un=Is(Ns(ks,Os,we));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function lt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Vs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Fs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=_e(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function Ds(){const e=l.getCurrentInstance();return new Fs(e.proxy)}function Xn(e,t,o){const n=Ue(e,t),r=Ue(e,o);if(n!==r)return!1;const a=lt(e,t),s=lt(e,o);return a===s}function tr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let s=0;Array.isArray(a)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=tr(e,i,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ue(e,d)===i;else if(o==="item")u=Xn(e,d,i);else{let f=lt(e,d);f==null&&(f=Ue(e,d)),u=f===i}if(u){r.push(d),a=Vs(e,d);break}}if(!u)break}}return r}function Rs(e){return{text:e,value:e}}const nr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function As(e,t,o){return{props:{...ve,...Ne,...nr},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),S=l.computed(()=>c.value?c.value.map(z=>Array.isArray(z)?z.map(X=>Ue(n,X)).join(" "):Ue(n,z)).join(" "):""),N=(P,z,D,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===P)return;f.value=P;const T=l.toRaw(P);if(X){const Y=W?.value.getCheckedNodes();if(Y)if(n.multiple){const ne=[];Y.forEach(le=>{const oe=(le.pathNodes??[]).map(ae=>ae.data);ne.push(oe)}),i("update:pathNodes",ne)}else{const le=(Y[0]?.pathNodes??[]).map(Z=>Z.data);i("update:pathNodes",le)}i("update:modelValue",T),i("change",T)}return}const H=tr(n,P,z,D);if(H===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,X&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const Q=H[H.length-1];if(k.value.checkStrictly!==!0&&Q&&!Array.isArray(Q)&&Array.isArray(Q.children)&&Q.children.length>0){const T=[];H.forEach(Y=>{const ne=`${Ue(n,Y)}`;T.push(ne)}),T.length>0&&(M.value=T.join(n.separator))}else M.value=null;let te=!0;if(H.length!==c.value.length)te=!1;else for(let T=0;T<H.length;T++){const Y=H[T],ne=c.value[T];if(Array.isArray(Y)){if(!Array.isArray(ne)||Y.length!==ne.length)te=!1;else for(let le=0;le<Y.length;le++)if(!Xn(n,Y[le],ne[le])){te=!1;break}}else Xn(n,Y,ne)||(te=!1);if(!te)break}if(!te){c.value=H;let T=[],Y=[];H.forEach(le=>{if(Array.isArray(le)){let Z=[],oe=[];for(let ae of le)Z.push(lt(n,ae)),n.valueType==="text"?oe.push(Ue(n,ae)):n.valueType==="item"?oe.push(ae):oe.push(lt(n,ae));T.push(Z),Y.push(oe)}else T.push(lt(n,le)),n.valueType==="text"?Y.push(Ue(n,le)):n.valueType==="item"?Y.push(le):Y.push(lt(n,le))}),f.value=T;const ne=l.toRaw(Y);X&&(i("update:pathNodes",H),i("update:modelValue",ne),i("change",ne))}},g=l.ref([]),h=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,P=>se(P)),m=Ds(),$=async(P,z)=>{if(P){const D=await m.load("cascader",P,z);if(D.length>0)if(typeof D[0]=="string"){let Q=D.map(te=>Rs(te));g.value=Q}else g.value=D}};l.watch([()=>n.source,()=>n.params],async([P,z])=>{$(P,z)},{immediate:!(h.value||n.lazy)});let w=!1;const C=()=>{w||(w=!0,$(n.source,n.params))};l.watch([()=>g.value,()=>n.modelValue],([P,z])=>{N(z,n.valueType,P,!1),i("setValue",z)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,B=l.ref(!1);typeof n.remoteMethod=="function"&&(q=async P=>{if(P!=null){B.value=!0;try{const z=await n.remoteMethod(P);g.value=z}catch(z){console.error(z)}B.value=!1}});const A=l.ref(!1),L=e,M=l.ref(null),V=l.computed(()=>({[L]:!0,"is-incomplete":M.value&&M.value.length>0})),k=l.computed(()=>{let P={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(P.multiple=!0),n.props&&Object.assign(P,n.props),n.lazy&&(P.lazy=!0,typeof n.lazyLoad=="function"?P.lazyLoad=n.lazyLoad:P.lazyLoad=async(z,D)=>{const X=await m.load("cascader",n.source,z,!0);if(z?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===z.level){const H=z.pathLabels??[];let Q=[];H.forEach(te=>{te&&Q.push(te)}),Q.length>0&&(M.value=Q.join(n.separator))}else M.value=null;D(X)}),P}),b=P=>{n.allowCreate?(i("update:modelValue",P),i("change",P),f.value=P):N(P,"value",g.value,!0)};let j=de(n,"hintText"),_=l.ref(!1);const R=P=>{let D=P.target.value;A.value=!0,ge(j.value)||(_.value=!0),i("focus",D,P)},F=P=>{setTimeout(()=>{_.value&&(_.value=!1),A.value=!1},0);let D=P.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),x.value||i("blur",D,P)},K=()=>{i("clear","")},G=l.ref(!1);let U=null;const J=()=>{n.showTooltip&&G.value===!1&&(U&&clearTimeout(U),U=setTimeout(()=>{G.value=!0},150))},ee=()=>{U&&(clearTimeout(U),G.value=!1,U=null)},re=l.computed(()=>G.value||_.value),O=l.computed(()=>G.value?S.value:j.value),x=l.ref(!1),I=P=>{x.value=P,i("visible-change",P),P||i("selected")},E=P=>{i("remove-tag",P)},v=P=>{i("expand-change",P)},W=l.ref();return xe({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},getCheckedNodes:()=>W?.value.getCheckedNodes()}),()=>{const z={...r.attrs,ref:W,class:V.value,props:k.value,clearable:n.clearable,placeholder:M.value||d.placeholder.value,disabled:a.value||s.value,options:g.value,modelValue:f.value,separator:n.separator,onClear:K,onChange:b,onFocus:R,onBlur:F,onVisibleChange:I,onRemoveTag:E,expandChange:v};typeof q=="function"&&(z["remote-method"]=q,z.loading=B.value);const D={};r.slots.option&&(D.default=r.slots.option),r.slots.empty&&(D.empty=r.slots.empty);const X=[],H=l.h(y.ElCascader,z,D);X.push(H);const Q={default:()=>X};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const T={...Ce(n,nr),hintText:O.value,hintVisible:re.value,prop:`${n.prop??r.attrs.name}_item`,onMouseover:J,onMouseleave:ee};return h.value&&!n.lazy&&(T["appear-listen"]=!0,T.onAppear=C),l.h(o,T,Q)}}}}const{componentName:Ls,create:Ms,scope:Bs}=ie("cascader-item"),Zn=Ms(As(Ls,Bs,we)),lr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function _s(e,t,o){return{props:{...ve,...Ne,...lr},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Re.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=de(n,"modelValue",null,i),S=e,N=l.computed(()=>({[S]:!0})),g=L=>{c.value=L,i("update:modelValue",L),i("input",L)},h=L=>{i("change",L)},m=L=>{i("select",L)};let $=de(n,"hintText"),w=l.ref(!1);const C=L=>{let V=L.target.value;f.value=!0,ge($.value)||(w.value=!0),i("focus",V,L)},q=L=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let V=L.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,L)},B=()=>{i("clear","")},A=l.ref();return xe({focus:()=>{A?.value.focus()},blur:()=>{A?.value.blur()},select:()=>{A?.value.select()}}),()=>{const M={...r.attrs,ref:A,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:B,onChange:h,onInput:g,onFocus:C,onBlur:q,onSelect:m},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix&&(V.suffix=r.slots.suffix),r.slots.option&&(V.default=r.slots.option);const k=[],b=l.h(y.ElAutocomplete,M,V);k.push(b);const j={default:()=>k};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ce(n,lr),hintText:$.value,hintVisible:w.value,prop:`${n.prop}_item`};return l.h(o,R,j)}}}}const{componentName:qs,create:Ps,scope:js}=ie("autocomplete-item"),Jn=Ps(_s(qs,js,we));function zs(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(S=>S[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(S=>S[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Hs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Ks(){const e=l.getCurrentInstance();return new Hs(e.proxy)}const 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 Ws(e,t){return{props:{...or},setup(o,{attrs:n,slots:r}){const a=Ks(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{s.value=await a.load(o.sourceType,d,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=zs(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,d,{default:()=>i.value}):l.h(u,d,i.value)}}}}const{componentName:Th,create:Ys,scope:$h}=ie("mapping"),Et=Ys(Ws());function Gs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Us(e,t){return{props:{...or},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Gs(s.row,s.column.property);return r.default?l.h(Et,{...o,modelValue:i},{default:r.default}):l.h(Et,{...o,modelValue:i})}};return l.h(y.ElTableColumn,{...n},a)}}}}const{componentName:Ch,create:Xs,scope:Eh}=ie("table-mapping-column"),Qn=Xs(Us()),Zs=Symbol.for("TableStateKey");function rr(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Js(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(Zs,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=rr(i.row,i.column.property),d=a?rr(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},S=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":f}};return l.h("label",N,[S])}};return l.h(y.ElTableColumn,{...n},s)}}}}const{componentName:Nh,create:Qs,scope:kh}=ie("table-radio-column"),el=Qs(Js()),eu={},tu={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},nu=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function lu(e,t){return l.openBlock(),l.createElementBlock("svg",tu,nu)}const ou=Me(eu,[["render",lu]]),{componentName:Oh,create:ru,scope:Vh}=ie("table-setting"),au={tableRef:{type:Object},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},iu=ru({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:ou,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...au},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed===""||v.fixed===!0||v.fixed==="left")),s=l.computed(()=>r.value.filter(v=>v.label===""||v.type?!1:v.fixed==="right")),i=l.computed(()=>r.value.filter(v=>!(v.label===""||v.type||v.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),d=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=v=>v.length>1,S=(v,W)=>{Array.isArray(v)&&Array.isArray(W)&&v.forEach(D=>{W.some(X=>X.prop===D.prop?(D.label=X.label,!0):!1)});const P=[];r.value=v.map((D,X)=>(!(D.label===""||D.type)&&D.visible!==!1&&P.push(D.prop),{...D,sortIndex:X})),i.value.length+a.value.length+s.value.length===P.length?w.value=!0:P.length>0&&(C.value=!0),A.value=P},N=v=>v?v.type?v.type:v.label?v.prop:"":"",g=(v,W)=>{if(v.length!==W.length)return!1;const P=v.map(z=>N(z));for(let z of W){const D=N(z);if(P.indexOf(D)===-1)return!1}return!0},h=v=>{if(!v){const W=e.tableRef.getColumnSetting(),P=W.srcColumnPropertyList;n=P.map((z,D)=>({...z,sortIndex:D})),v=W.columnPropertyList,v&&v.length>0&&g(P,v)||(v=P)}S(v,n)},m=()=>{e.tableRef.setColumnSetting(r.value)},$=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=l.ref(!1),C=l.ref(!1),q=v=>{const W=[];r.value.forEach(z=>{v&&!(z.label===""||z.type)&&W.push(z.prop),z.visible=v}),w.value=!1,C.value=!1,i.value.length+a.value.length+s.value.length===W.length?w.value=!0:W.length>0&&(C.value=!0),A.value=W,m()},B=()=>{h(n),m()},A=l.ref([]),L=v=>{r.value.forEach(P=>{if(P.label===""||P.type)return;const z=v.indexOf(P.prop)!==-1;P.visible=z}),w.value=!1,C.value=!1;const W=i.value.length+a.value.length+s.value.length;v.length===W?w.value=!0:v.length>0&&(C.value=!0),m()},M=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const V={currentRow:null,index:null,roleType:null},k=v=>v?v.dataset&&v.dataset.role==="row"?v:v.tagName.toLowerCase()!=="body"?(v=v.parentElement,k(v)):null:null,b=v=>{const W=v.currentTarget;W&&W.dataset&&(V.roleType=W.dataset.roleType,V.index=W.dataset.index)},j=v=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null,V.roleType=null},_=v=>{const W=v.currentTarget;v.relatedTarget;const P=k(W);if(!P)return;const z=P.dataset&&P.dataset.roleType;V.roleType===z&&(v.preventDefault(),V.currentRow&&V.currentRow!==P&&V.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),V.currentRow=P)},R=v=>{v.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},F=v=>{const W=v.currentTarget,P=k(W);if(!P)return;const z=P.dataset&&P.dataset.roleType;if(V.roleType!==z)return;v.preventDefault();const D=Number(V.index),X=Number(P.dataset.index);if(D!==X){if(D<X){const H=r.value[D];r.value.splice(D,1),r.value.splice(X,0,H)}else{const H=r.value[D];r.value.splice(D,1),r.value.splice(X+1,0,H)}S(r.value,n),m()}},K=v=>{const W=r.value[v];W.fixed="left",m()},G=v=>{const W=r.value[v];W.fixed="right",m()},U=v=>{const W=r.value[v];W.fixed=void 0,m()},J=new Map;let ee=null;function re(v){const W=document.createRange();return W.setStart(v,0),W.setEnd(v,v.childNodes.length),W.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:w,isIndeterminate:C,handleCheckAllChange:q,handleReset:B,checkedValue:A,handleCheckChange:L,onShow:M,onDragStart:b,onDragEnd:j,onDragOver:_,onDragLeave:R,onDrop:F,toLeftFixed:K,toRightFixed:G,toUnFixed:U,checkboxLabelStyle:$,onMouseOverForOverflowText:(v,W,P)=>{const z=v.currentTarget;if(z){const D=Math.floor(z.offsetWidth);if(Math.floor(re(z))>D){let H=J.get(W);if(H){if(H===ee)return;Ve.hide(H)}H=Ve.show(z,P,{type:"text",placement:"top",closeOnClick:!1}),J.set(W,H),ee=H}}},onMouseLeaveForOverflowText:(v,W)=>{const P=J.get(W);P&&(Ve.hide(P),P===ee&&(ee=null))},onMouseOverForTip:(v,W)=>{const P=v.currentTarget;P&&(ee&&Ve.hide(ee),ee=Ve.show(P,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:v=>{ee&&(Ve.hide(ee),ee=null)}}}}),su={class:"fox-table-setting"},uu={class:"fox-table-setting__header"},cu={class:"fox-table-setting__body"},fu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},du={key:0,class:"fox-table-setting__body-title"},hu=["data-index","draggable"],gu=["onMouseover","onMouseleave"],mu={class:"tools-item"},pu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},yu={key:0,class:"fox-table-setting__body-title"},bu=["data-index","draggable"],vu=["onMouseover","onMouseleave"],wu={class:"tools-item"},Su={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},xu={key:0,class:"fox-table-setting__body-title"},Tu=["data-index","draggable"],$u=["onMouseover","onMouseleave"],Cu={class:"tools-item"};function Eu(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),S=l.resolveComponent("fox-checkbox"),N=l.resolveComponent("FoxCheckboxGroup"),g=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(g,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",su,[l.createElementVNode("div",uu,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",cu,[l.createVNode(N,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",fu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",du,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,gu)]),_:2},1032,["label"]),l.createElementVNode("div",mu,[l.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,hu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",pu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",yu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[15]||(t[15]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[16]||(t[16]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[17]||(t[17]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[18]||(t[18]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,vu)]),_:2},1032,["label"]),l.createElementVNode("div",wu,[l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=m=>e.onMouseOverForTip(m,e.fixedRightText)),onMouseleave:t[13]||(t[13]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,bu))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Su,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",xu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[24]||(t[24]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[25]||(t[25]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[26]||(t[26]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[27]||(t[27]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(S,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,h.prop,h.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,$u)]),_:2},1032,["label"]),l.createElementVNode("div",Cu,[l.createVNode(f,{onClick:m=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=m=>e.onMouseOverForTip(m,e.unFixedText)),onMouseleave:t[20]||(t[20]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=m=>e.onMouseOverForTip(m,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Tu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ln=Me(iu,[["render",Eu]]);let Nu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){if(Array.isArray(o)){let d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,s,i]);const u=_e(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(He(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function ku(){const e=l.getCurrentInstance();return new Nu(e.proxy)}class Iu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=_e(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=_e(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=_e(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function ar(){const e=l.getCurrentInstance();return new Iu(e.proxy)}const Ou=Symbol.for("TableStateKey"),ir={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},sr={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},tl={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}},Vu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Fu(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function nl(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Fu(n,r);if(a!==s)return!1}return!0})}function Du(e,t,o){return{inheritAttrs:!1,props:{...ve,...Ne,...ir,...sr,...tl,...Vu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Re.useFoxI18n(t),{emitEvent:s}=Se({componentName:e,validateHandler:{getValue(...Z){return A.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),d=l.computed(()=>({[`${i}__setting`]:!0})),f=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),S=l.shallowRef({}),N=l.computed(()=>({...S.value,...n.params??{},...n.baseParams??{}})),g=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),m=se(n.infiniteLoad);m||(l.watch(()=>n.pageIndex,Z=>{g.value=Z}),l.watch(()=>n.pageSize,Z=>{h.value=Z}),l.watch([g,h],([Z,oe],[ae,ue])=>{oe!==ue&&(g.value=1,Z=1),k(n.data,Z,oe,N.value)}));const $=()=>Array.isArray(n.data)?!0:se(n.autoLoad);$()&&l.watch([()=>n.data,N],async([Z,oe],[ae,ue])=>{$()&&(Z!==ae&&(M=!0),!(!Array.isArray(Z)&&Ke(Z,ae)&&Ke(oe,ue))&&(m?(g.value=0,q.value=!0,A.value=[],j()):g.value===1?k(Z,g.value,h.value,oe):g.value=1))},{deep:!0});const w=Z=>{g.value=Z,s("page-index-change",Z)},C=Z=>{h.value=Z,s("page-size-change",Z)},q=l.ref(!0),B=l.ref(0),A=l.ref(),L=ku();let M=!0;const V=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,Z=>se(Z)),k=async(Z,oe,ae,ue,ye)=>{M=!1;try{if(ye===!0){if(!q.value)return!1;const he=await L.load("table",Z,oe,ae,ue,M,a.value);return B.value=he.totalSize,!he.page||!Array.isArray(he.page)||(Reflect.apply([].push,A.value,he.page),setTimeout(()=>{s("loaded-data")},250),(A.value?.length??0)>=B.value)||he.page.length<ae?(q.value=!1,!1):!0}else{const he=await L.load("table",Z,oe,ae,ue,M,a.value);return B.value=he.totalSize,A.value=he.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(he){console.error("[FoxUI] Load Table Data Fail",he),B.value=0,A.value=[]}return!1};let b=!1;const j=async()=>{if(!b){if(b=!0,!q.value){b=!1;return}g.value+=1,await k(n.data,g.value,h.value,N.value,!0),b=!1}},_=(Z={},oe=!1)=>new Promise(async ae=>{S.value={...l.toRaw(Z??{})},oe||(g.value=n.pageIndex??1),m===!0?(g.value=0,A.value=[],q.value=!0,await j()):await k(n.data,g.value,h.value,N.value),ae()}),R=()=>{B.value=0,A.value=[],m===!0&&(g.value=0,q.value=!0)};let F=!1;const K=()=>{F||(F=!0,_())},G=l.ref(null);if(m===!0){let Z=null;const oe=()=>{G.value&&(Z=new IntersectionObserver(ue=>{let ye=!1;for(let he of ue)if(he.intersectionRatio>0){ye=!0;break}ye&&j()}),Z.observe(G.value))},ae=()=>{!Z||!G.value||(Z.unobserve(G.value),Z=null)};l.onMounted(oe),l.onBeforeUnmount(ae)}$()&&!V.value&&_();const U=l.ref(null);l.provide(Ou,{currentRow:U});const J=(Z,oe)=>{U.value=Z,s("current-change",Z,oe)},ee=(Z,oe,ae)=>{s("row-click",Z,oe,ae),se(n.rowClickSelectable)===!0&&le?.value.toggleRowSelection(Z)},re=[],O=(Z,oe)=>{if(s("expand-change",Z,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const ae=re.length;re.splice(0,ae)}else{re.forEach(ue=>{ue!==Z&&le?.value.toggleRowExpansion(ue,!1)});const ae=re.length;re.splice(0,ae,Z)}},x=r.attrs.id??n.prop??r.attrs.name,I=ar(),E=l.ref([]);let v=[];const W=()=>({srcColumnPropertyList:v.map(oe=>({...oe})),columnPropertyList:E.value}),P=Z=>{E.value=[...Z],D()},z=async()=>{const Z=await I.load(x);Z&&(E.value=Z)},D=()=>{I.save(x,E.value)},X=()=>{I.remove(x)};z();const H=Z=>Z?Z.type?Z.type:Z.label?Z.prop:"":"",Q=l.computed(()=>{if(typeof r.slots.default=="function"){const Z=r.slots.default(),oe=new Map;if(v=[],Z.forEach(ae=>{const ue=ae;if(!ue.props)return;const ye=H(ue.props);oe.set(ye,ae);const he={label:"",prop:""};Object.assign(he,ue.props),v.push(he)}),E.value.length===v.length){const ae=[];for(let ue of E.value){const ye=H(ue),he=oe.get(ye);if(!he)return Z;if(ue.visible===!1)continue;const gt=he;gt.props.fixed=ue.fixed,ae.push(gt)}return ae}return Z}return[]}),te=l.shallowRef(new Map),T=({column:Z,rowIndex:oe})=>{const ae=`${oe}_${Z.property}`;return te.value.get(ae)??""},Y=Z=>typeof Z=="function"?oe=>{const ae=[];let ue=T(oe);return ue&&ae.push(ue),ue=Z(oe),ue&&ae.push(ue),ae.length===0?"":ae.join(" ")}:T,ne=(Z,oe,ae)=>{const ue=`${Z}_${oe}`;ae?te.value.set(ue,ae):te.value.delete(ue),l.triggerRef(te)},le=l.ref();return xe({clearSelection:()=>le?.value.clearSelection(),getSelectionRows:()=>le?.value.getSelectionRows(),toggleRowSelection:(Z,oe)=>{le?.value.toggleRowSelection(Z,oe)},toggleRowSelectionByProp:(Z,oe)=>{if(!A.value)return;const ae=nl(A.value,Z);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{le?.value.toggleAllSelection()},toggleRowExpansion:(Z,oe)=>{le?.value.toggleRowExpansion(Z,oe)},toggleRowExpansionByProp:(Z,oe)=>{if(!A.value)return;const ae=nl(A.value,Z);ae.length!==0&&ae.forEach(ue=>{le?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:Z=>{le?.value.setCurrentRow(Z)},setCurrentRowByProp:Z=>{if(!A.value)return;const oe=nl(A.value,Z);oe.length!==0&&le?.value.setCurrentRow(oe[0])},getCurrentRow:()=>U.value,clearSort:()=>{le?.value.clearSort()},clearFilter:Z=>{le?.value.clearFilter(Z)},doLayout:()=>{le?.value.doLayout()},sort:(Z,oe)=>{le?.value.sort(Z,oe)},scrollTo:(Z,oe)=>{le?.value.scrollTo(Z,oe)},setScrollTop:Z=>{le?.value.setScrollTop(Z)},setScrollLeft:Z=>{le?.value.setScrollLeft(Z)},loadData:_,clearData:R,getData(){return A.value},getTotalSize(){return B.value},getPageIndex(){return g.value},getPageSize(){return h.value},getColumnSetting:W,setColumnSetting:P,removeColumnSetting:X,setCellClassName:ne}),()=>{const oe={...je(r.attrs),onCurrentChange:J,onRowClick:ee,onExpandChange:O,data:A.value,ref:le,class:u.value,"cell-class-name":Y(n.cellClassName)},ae={};if(r.slots.default&&(ae.default=()=>Q.value),r.slots.append&&(ae.append=r.slots.append),r.slots.empty&&(ae.empty=r.slots.empty),m===!0){const qe=[];if(q.value){const Vt=l.h(Te.Loading,{class:`${i}__infinite-icon`});qe.push(Vt);const Ml=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);qe.push(Ml)}else{const Vt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);qe.push(Vt)}const rt={ref:G,class:`${i}__infinite`},Ll=l.h("div",rt,qe);ae.append=()=>Ll}const ue=l.h(y.ElTable,oe,ae),ye=[];if(ye.push(ue),!m){let qe=null;if(typeof r.slots.pagination=="function")qe=r.slots.pagination();else if(n.showPagination){const rt={class:c.value,total:B.value,pageSize:h.value,"onUpdate:pageSize":C,pageSizes:n.pageSizes,currentPage:g.value,"onUpdate:currentPage":w,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};qe=l.h(y.ElPagination,rt)}if(n.showSetting){const rt=[];qe&&rt.push(qe);const Ll=l.h(y.ElIcon,{class:d.value},{default:()=>l.h(Te.Setting)}),Vt=ro(n,tl),Ml=l.h(ln,{...Vt,tableRef:{getColumnSetting:W,setColumnSetting:P,removeColumnSetting:X}},{default:()=>Ll});rt.push(Ml);const ph=l.h("div",{class:f.value},rt);ye.push(ph)}else qe&&ye.push(qe)}const he={default:()=>ye},Ot={...Ce(n,ir,sr,tl),prop:`${n.prop}_item`};return Ot.contentClass=`${i}__wrap`,Ot.errorMarkClass="is-table-error",V.value&&$()&&(Ot["appear-listen"]=!0,Ot.onAppear=K),l.h(o,Ot,he)}}}}const{componentName:Ru,create:Au,scope:Lu}=ie("table-item"),ll=Au(Du(Ru,Lu,we));function ct(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Nt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Bu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function _u(){const e=l.getCurrentInstance();return new Bu(e.proxy)}function ur(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ct(e,t),r=ct(e,o);if(n!==r)return!1;const a=Nt(e,t),s=Nt(e,o);return a===s}function qu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let s=!1;if(o==="text")s=ct(e,a)===t;else if(o==="item")s=ur(e,a,t);else{let i=Nt(e,a);i==null&&(i=ct(e,a)),s=i===t}if(s){r=a;break}}return r}function Pu(e){return{text:e,value:e}}function ju(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const cr={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function zu(e,t,o){return{inheritAttrs:!0,props:{...ve,...Ne,...cr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),d=l.ref(null),f=(L,M,V,k=!0)=>{const b=qu(n,L,M,V);if(b===null){if(d.value===null)return;d.value=null,u.value=null,k&&(i("update:modelValue",null),i("change",null));return}if(!ur(n,b,d.value)){u.value=L;const _=l.toRaw(b);d.value=_;let R=null;n.valueType==="text"?R=ct(n,_):n.valueType==="item"?R=_:R=Nt(n,_),k&&(i("update:modelValue",R),i("change",R))}},c=l.ref([]),S=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,L=>se(L)),N=_u(),g=async(L,M)=>{if(L){const V=await N.load("radio",L,M);if(V.length>0)if(typeof V[0]=="string"){let j=V.map(_=>Pu(_));c.value=j}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),B=de(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const j=Nt(n,k),_=ct(n,k);let R=Mu(n,k);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const F=ju(n,k,b)??{},K=`${j}_${b}`,G={...F,key:K,value:j,size:n.size,border:se(n.border)};R&&(G.disabled=R),n.itemType==="button"?V.push(l.h(y.ElRadioButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElRadio,G,{default:()=>M(k)})):V.push(l.h(y.ElRadio,G,{default:()=>[_]}))}),V};return()=>{const M={...je(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElRadioGroup,M,k);V.push(b);const j={default:()=>V};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ce(n,cr),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return S.value&&(R["appear-listen"]=!0,R.onAppear=m),l.h(o,R,j)}}}}const{componentName:Hu,create:Ku,scope:Wu}=ie("radio-item"),ol=Ku(zu(Hu,Wu,we));function ft(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function dt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Yu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Gu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Uu(){const e=l.getCurrentInstance();return new Gu(e.proxy)}function fr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=ft(e,t),r=ft(e,o);if(n!==r)return!1;const a=dt(e,t),s=dt(e,o);return a===s}function Xu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){let i=!1;if(o==="text")i=ft(e,s)===a;else if(o==="item")i=fr(e,s,a);else{let u=dt(e,s);u==null&&(u=ft(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function Zu(e){return{text:e,value:e}}function Ju(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const dr={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Qu(e,t,o){return{inheritAttrs:!0,props:{...ve,...Ne,...dr},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),d=l.ref([]),f=(L,M,V,k=!0)=>{const b=Xu(n,L,M,V);if(b===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],k&&(i("update:modelValue",[]),i("change",[]));return}let j=!0;if(b.length!==d.value.length)j=!1;else for(let _=0;_<b.length;_++){const R=b[_],F=d.value[_];if(!fr(n,R,F)){j=!1;break}}if(!j){d.value=b;let _=[],R=[];b.forEach(K=>{_.push(dt(n,K)),n.valueType==="text"?R.push(ft(n,K)):n.valueType==="item"?R.push(K):R.push(dt(n,K))}),u.value=_;const F=l.toRaw(R);k&&(i("update:modelValue",F),i("change",F))}},c=l.ref([]),S=ke(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,L=>se(L)),N=Uu(),g=async(L,M)=>{if(L){const V=await N.load("checkbox",L,M);if(V.length>0)if(typeof V[0]=="string"){let j=V.map(_=>Zu(_));c.value=j}else c.value=V}};l.watch([()=>n.source,()=>n.params],async([L,M])=>{g(L,M)},{immediate:!S.value});let h=!1;const m=()=>{h||(h=!0,g(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([L,M])=>{f(M,n.valueType,L,!1),i("setValue",M)});const $=e,w=l.computed(()=>({[$]:!0,[`is-${n.direction}`]:!0})),C=L=>{f(L,"value",c.value,!0)};let q=de(n,"hintText"),B=de(n,"hintVisible");const A=(L,M)=>{const V=[];return L.forEach((k,b)=>{const j=dt(n,k),_=ft(n,k);let R=Yu(n,k);a.value===!0&&(R=a.value),s.value===!0&&(R=s.value);const F=Ju(n,k,b)??{},K=`${j}_${b}`,G={...F,key:K,class:n.itemClass,value:j,size:n.size,border:se(n.border)};R&&(G.disabled=R),n.itemType==="button"?V.push(l.h(y.ElCheckboxButton,G,{default:()=>[_]})):typeof M=="function"?V.push(l.h(y.ElCheckbox,G,{default:()=>M(k)})):V.push(l.h(y.ElCheckbox,G,{default:()=>[_]}))}),V};return()=>{const M={...je(r.attrs),class:w.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:be(n.max),min:be(n.min),onChange:C},V=[],k={};r.slots.options?k.default=r.slots.options:k.default=()=>A(c.value,r.slots.text);const b=l.h(y.ElCheckboxGroup,M,k);V.push(b);const j={default:()=>V};r.slots.default&&(j.label=r.slots.default),r.slots.fixedTip&&(j.fixedTip=r.slots.fixedTip);const R={...Ce(n,dr),hintText:q.value,hintVisible:B.value,prop:`${n.prop??r.attrs.name}_item`};return S.value&&(R["appear-listen"]=!0,R.onAppear=m),l.h(o,R,j)}}}}const{componentName:ec,create:tc,scope:nc}=ie("checkbox-item"),rl=tc(Qu(ec,nc,we)),hr={modelValue:{type:[Number,String],required:!1}};function lc(e,t,o){return{props:{...ve,...Ne,...hr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",h=>be(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=de(n,"hintText"),N=l.ref(!1);const g=l.ref();return xe({}),()=>{const m={...je(r.attrs),ref:g,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElRate,m,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,hr),hintText:S.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:oc,create:rc,scope:ac}=ie("rate-item"),al=rc(lc(oc,ac,we)),gr={modelValue:{type:[Boolean,String,Number],required:!1}};function ic(e,t,o){return{props:{...ve,...Ne,...gr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=de(n,"modelValue",null,i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let S=de(n,"hintText"),N=de(n,"hintVisible");const g=l.ref();return xe({}),()=>{const m={...je(r.attrs),ref:g,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},$={},w=[],C=l.h(y.ElSwitch,m,$);w.push(C);const q={default:()=>w};r.slots.default&&(q.label=r.slots.default),r.slots.fixedTip&&(q.fixedTip=r.slots.fixedTip);const A={...Ce(n,gr),hintText:S.value,hintVisible:N.value,prop:`${n.prop}_item`};return l.h(o,A,q)}}}}const{componentName:sc,create:uc,scope:cc}=ie("switch-item"),il=uc(ic(sc,cc,we)),mr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function fc(e,t,o){return{props:{...ve,...Ne,...mr},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Oe(l.computed(()=>n.disabled)),s=Ie(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=de(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),S=B=>{u("update:modelValue",B),u("change",B)};let N=de(n,"hintText"),g=l.ref(!1);const h=B=>{let L=B.target.value;i.value=!0,ge(N.value)||(g.value=!0),u("focus",L,B)},m=B=>{setTimeout(()=>{g.value&&(g.value=!1),i.value=!1},0);let L=B.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),w.value||u("blur",L,B)},$=()=>{u("clear","")},w=l.ref(!1),C=B=>{w.value=B,u("visible-change",B),B||u("selected")},q=l.ref();return xe({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const A={...je(r.attrs),ref:q,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:$,onFocus:h,onBlur:m,onVisibleChange:C},L={};r.slots.option&&(L.default=r.slots.option);const M=[],V=l.h(y.ElTreeSelect,A,L);M.push(V);const k={default:()=>M};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const j={...Ce(n,mr),hintText:N.value,hintVisible:g.value,prop:`${n.prop}_item`};return l.h(o,j,k)}}}}const{componentName:dc,create:hc,scope:gc}=ie("tree-select-item"),sl=hc(fc(dc,gc,we)),mc={},pc={t:"1685254841130",class:"fox-table-setting__drag-icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"721"},yc=[l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1)];function bc(e,t){return l.openBlock(),l.createElementBlock("svg",pc,yc)}const vc=Me(mc,[["render",bc]]),{componentName:Dh,create:wc,scope:Rh}=ie("group-setting"),Sc={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},xc=wc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:vc,Download:Te.Download,RefreshLeft:Te.RefreshLeft},props:{...Sc},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=ar(),i=O=>O.length>1,u=()=>{const O=[],x=[...a.value];a.value=x.map((E,v)=>(E.visible!==!1&&O.push(E.prop),{...E,sortIndex:v})),a.value.length===O.length?h.value=!0:O.length>0&&(m.value=!0),C.value=O},d=O=>{let x=null;if(typeof O=="string")x=document.querySelectorAll(`.fox-group[prop="${O}"] > div > .fox-item[prop]`);else if(O&&typeof O=="object"){const E=O.$el??O;typeof E.querySelectorAll=="function"&&(x=E.querySelectorAll(".fox-item[prop]"))}if(!x)return[];const I=[];return x.forEach(E=>{const v=E.querySelector(".label--string");let W="";v&&(W=v.textContent??"");const P=E.getAttribute("prop")??"",D=window.getComputedStyle(E,null).getPropertyValue("display");I.push({label:W,prop:P,sortIndex:0,visible:D!=="none"})}),I},f=()=>{if(!r){const O=d(e.groupRef??e.groupProp);if(O.length===0)return!1;r=O}return!0},c=async(O=!1)=>{const x=await s.load(e.groupProp),I=E=>{if(!E||!r)return;const v=r.map(W=>({...W}));Array.isArray(x)&&x.forEach(W=>{v.some(P=>{if(P.prop===W.prop){const z=P.label;return Object.assign(P,W),P.label=z,!0}return!1})}),a.value=v.sort((W,P)=>W.sortIndex-P.sortIndex),u(),O&&N(!1)};r?I(!0):jt(f,e.initDelay,5,50,!1,I)},S=()=>{const O=r??[];a.value=O.map(x=>({...x})),u(),N()},N=(O=!0)=>{O&&s.save(e.groupProp,a.value);const x=a.value.map(I=>({...I}));t("change",x)},g=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),m=l.ref(!1),$=O=>{const x=[];a.value.forEach(E=>{O&&x.push(E.prop),E.visible=O}),h.value=!1,m.value=!1,a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),C.value=x,N()},w=()=>{S()},C=l.ref([]),q=O=>{a.value.forEach(I=>{const E=O.indexOf(I.prop)!==-1;I.visible=E}),h.value=!1,m.value=!1;const x=a.value.length;O.length===x?h.value=!0:O.length>0&&(m.value=!0),N()},B=()=>{c()};l.onMounted(()=>{c(!0)});const A={currentRow:null,index:null},L=O=>O?O.dataset&&O.dataset.role==="row"?O:O.tagName.toLowerCase()!=="body"?(O=O.parentElement,L(O)):null:null,M=O=>{const x=O.currentTarget;x&&x.dataset&&(A.index=x.dataset.index)},V=O=>{A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null),A.index=null},k=O=>{const x=O.currentTarget;O.relatedTarget;const I=L(x);I&&(O.preventDefault(),A.currentRow&&A.currentRow!==I&&A.currentRow.classList.remove("is-dragover"),I.classList.add("is-dragover"),A.currentRow=I)},b=O=>{O.preventDefault(),A.currentRow&&(A.currentRow.classList.remove("is-dragover"),A.currentRow=null)},j=O=>{const x=O.currentTarget,I=L(x);if(!I)return;O.preventDefault();const E=Number(A.index),v=Number(I.dataset.index);if(E!==v){if(E<v){const W=a.value[E];a.value.splice(E,1),a.value.splice(v,0,W)}else{const W=a.value[E];a.value.splice(E,1),a.value.splice(v+1,0,W)}u(),N()}},_=O=>{const x=a.value[O];a.value.splice(O,1),a.value.splice(0,0,x),u(),N()},R=O=>{const x=a.value[O];a.value.splice(O,1),a.value.push(x),u(),N()};n({refresh:()=>{r=null,c(!1)}});const F=new Map;let K=null;function G(O){const x=document.createRange();return x.setStart(O,0),x.setEnd(O,O.childNodes.length),x.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:$,handleReset:w,checkedValue:C,handleCheckChange:q,onShow:B,onDragStart:M,onDragEnd:V,onDragOver:k,onDragLeave:b,onDrop:j,checkboxLabelStyle:g,toTop:_,toBottom:R,onMouseOverForOverflowText:(O,x,I)=>{const E=O.currentTarget;if(E){const v=Math.floor(E.offsetWidth);if(Math.floor(G(E))>v){let P=F.get(x);if(P){if(P===K)return;Ve.hide(P)}P=Ve.show(E,I,{type:"text",placement:"top",closeOnClick:!1}),F.set(x,P),K=P}}},onMouseLeaveForOverflowText:(O,x)=>{const I=F.get(x);I&&(Ve.hide(I),I===K&&(K=null))},onMouseOverForTip:(O,x)=>{const I=O.currentTarget;I&&(K&&Ve.hide(K),K=Ve.show(I,x,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:O=>{K&&(Ve.hide(K),K=null)}}}}),Tc={class:"fox-group-setting"},$c={class:"fox-group-setting__header"},Cc={class:"fox-group-setting__body"},Ec={class:"fox-group-setting__body-list","data-role":"container"},Nc=["data-index","draggable"],kc=["onMouseover","onMouseleave"],Ic={class:"tools-item"};function Oc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),S=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(S,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",Tc,[l.createElementVNode("div",$c,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=N=>e.isCheckAll=N),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Cc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=N=>e.checkedValue=N),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Ec,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,N=>(l.openBlock(),l.createElementBlock("div",{key:N.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":N.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:N.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,N.prop,N.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,N.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(N.label),45,kc)]),_:2},1032,["label"]),l.createElementVNode("div",Ic,[l.createVNode(f,{onClick:g=>e.toTop(N.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toBottom(N.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Nc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const ul=Me(xc,[["render",Oc]]),Vc=["aria-labelledby"],Fc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Dc=[Fc],Rc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Dc,14,Vc))}}),Ac=["aria-labelledby"],Lc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mc=[Lc],cl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mc,14,Ac))}}),Bc=["aria-labelledby"],_c=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),qc=[_c],Pc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},qc,14,Bc))}}),jc=["aria-labelledby"],zc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Hc=[zc],Kc=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Hc,14,jc))}}),Wc=["aria-labelledby"],Yc=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Gc=[Yc],Uc=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Gc,14,Wc))}}),Xc={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},pr=(e,t)=>t[e.textKey],kt=(e,t)=>t[e.valueKey],Zc=(e,t)=>t[e.visibleKey],yr=(e,t)=>t[e.disabledKey],Jc=(e,t)=>{const o=t[e.doitKey];return se(o)},Qc=(e,t)=>{const o=t[e.numKey];return o==null?null:be(t[o])},br=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function ef(e,t,o,n=!1){return{props:{...Xc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const O={};return O[`${e}`]=!0,O}),u=l.computed(()=>{const O={};return O[`${e}__titles`]=!0,O[`${r.direction}`]=!0,r.align==="left"&&(O.left=!0),r.scroll===!0&&(O.scrollable=!0),r.shape&&(O[`${r.shape}`]=!0),O}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const O=fe(r.gutter);return O<=0?0:O}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,O=>{c.value!==O&&(c.value=O,G(!1))});const S=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),N=l.computed(()=>{const O={};return h.value||(O.display="none"),O}),g=l.ref(),h=l.ref(!1),m=()=>{const O=!h.value;$(O)},$=O=>{const x=O;x?(h.value=x,setTimeout(()=>{S.value["fox-tabs-bar__popup--show"]=!0,S.value["fox-tabs-bar__popup--hide"]=!1},0)):(S.value["fox-tabs-bar__popup--show"]=!1,S.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},w=l.ref(),C=l.ref([]),q=(O,x)=>{C.value[x]=O},B=O=>x=>{q(x,O)},A=(O,x)=>{const I=w.value,E=C.value;if(!I||!E||!E[O])return;const v=E[O];let W=0;r.direction==="vertical"?W=v.offsetTop-(I.offsetHeight-v.offsetHeight)/2:W=v.offsetLeft-(I.offsetWidth-v.offsetWidth)/2,L(I,W,x?0:.3,r.direction)},L=(O,x,I,E)=>{let v=0;const W=E==="horizontal"?O.scrollLeft:O.scrollTop,P=I===0?1:Math.round(I*1e3/16);function z(){E==="horizontal"?O.scrollLeft+=(x-W)/P:O.scrollTop+=(x-W)/P,++v<P&&vn(z)}z()},M=(O,x)=>{const I=kt(r,O),E={};return E[`${e}__titles-item`]=!0,E.disabled=yr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0),r.ellipsis&&(E.ellipsis=!0),x&&(x.class&&(E[`${x.class}`]=!0),x.disabled===!0&&(E.disabled=x.disabled)),E},V=(O,x)=>{const I={};if(f.value>0){const E=Math.abs(f.value/2);r.direction==="vertical"?(I["margin-top"]=`${E}px`,I["margin-bottom"]=`${E}px`):(I["margin-left"]=`${E}px`,I["margin-right"]=`${E}px`)}return x&&x.style&&Object.assign(I,x.style),I},k=(O,x)=>`${kt(r,O)??x}`,b=(O,x)=>{const I=kt(r,O),E={};E[`${e}__popup-item`]=!0,E.disabled=yr(r,O),E.active=I===c.value,r.shape&&(E[`${r.shape}`]=!0);const v=br(r,O,x);return v&&v.disabled===!0&&(E.disabled=v.disabled),E},j=l.computed(()=>(r.data??[]).filter(x=>Zc(r,x)!==!1)),_=(O,x)=>{const I=kt(r,O);if(c.value==I)return;const E=()=>{c.value=I,r.scroll&&A(x,!1),s("update:modelValue",I),s("change",O,x)};if(typeof r.beforeChange=="function"){const v=r.beforeChange(O,x);Gl(v)?v.then(W=>{W!==!1&&E()}).catch(()=>{E()}):v!==!1&&E()}else E()},R=(O,x)=>function(){_(O,x)},F=(O,x)=>{_(O,x),$(!1)},K=(O,x)=>function(){F(O,x)},G=O=>{if(!Array.isArray(r.data)||!r.scroll)return;const x=r.data.findIndex(I=>kt(r,I)===c.value);x!==-1&&A(x,O)};l.watch(()=>r.data,()=>{setTimeout(G,0)}),l.onMounted(()=>{G(!0)});const U=(O,x)=>{if(a.item)return a.item({item:O,index:x});const I=br(r,O,x),E=[];if(a.text){const z=a.text({item:O,index:x});E.push(z)}else{const z=[];if(I?.doit===!0||Jc(r,O)){const Q={class:[`${e}__titles-item-tip`,"doit"]},te=l.h("view",Q);z.push(te)}const D=I?.num??Qc(r,O);if(D){let Q="";const te=be(D);te>=100?Q="99+":Q=`${te}`;const T={class:[`${e}__titles-item-tip`,"num"]},Y=l.h("view",T,[Q]);z.push(Y)}const X={class:`${e}__titles-item-text`};z.push(pr(r,O));const H=l.h("view",X,z);E.push(H)}const v={class:`${e}__titles-item-line`},W=l.h("view",v);E.push(W);const P={ref:B(x),class:M(O,I),style:V(O,I),key:k(O,x),onClick:R(O,x)};return l.h("view",P,E)},J=()=>{const O=a.default?a.default():[];if(O.length===0)for(let I=0;I<j.value.length;I++){const E=j.value[I],v=U(E,I);O.push(v)}const x={ref:w,class:u.value,style:d.value};return l.h("view",x,O)},ee=()=>{let O=null;a.navigation?O=a.navigation():O=l.h(o);const x={class:`${e}__navigation`,onClick:m};return l.h("view",x,[O])},re=()=>{const O=[];for(let I=0;I<j.value.length;I++){const E=j.value[I];let v=null;a.popupItem?v=a.popupItem({item:E,index:I}):v=pr(r,E);const W={class:b(E,I),key:k(E,I),onClick:K(E,I)},P=l.h("view",W,[v]);O.push(P)}const x={class:S.value,style:N.value};return l.h("view",x,O)};return()=>{const O=[],x=J();if(O.push(x),r.showQuickNavigation){const E=ee();O.push(E);const v=re();O.push(v)}const I={class:i.value};return l.h("view",I,O)}}}}const{create:tf,componentName:nf,scope:lf}=ie("tabs-bar"),fl=tf(ef(nf,lf,Rc,!1)),vr=Symbol("TabsStatesKey"),of={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function rf(e,t,o=!1){return{props:{...of},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const m={name:h};i.current.value===h&&(m.loaded=!0),s.value.push(m),l.triggerRef(s)},remove:h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&s.value.splice(m,1)},isLoaded:h=>{if(!n.lazy)return!0;const m=s.value.findIndex($=>$.name===h);return m!==-1?i.current.value?s.value[m].loaded??!1:m===0:!1}};l.provide(vr,i);const u=h=>{const m=s.value.findIndex($=>$.name===h);m!==-1&&(s.value[m].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,m])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==m&&(i.direction.value=m)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let S=!0;const N=l.computed(()=>{const h={},m=s.value.length;if(m<=0)return h;const $=s.value.findIndex(w=>w.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${m*i.tabHeight.value}px`,$!==-1&&(h.transform=`translate(0, -${$*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${m*i.tabWidth.value}px`,$!==-1&&(h.transform=`translate(-${$*i.tabWidth.value}px, 0)`)),S&&(S=!1,h.transition="transform 0s ease"),h});let g=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const m=Gt(d.value);i.tabWidth.value=m.width,i.tabHeight.value=m.height};window.ResizeObserver&&(g=new window.ResizeObserver(h),g.observe(d.value)),h()}),l.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const h={class:`${e}__panes`,style:N.value,ref:f},m=l.h("view",h,[a?.default?.()]),$={class:c.value,ref:d};return l.h("view",$,[m])}}}}const{create:af,componentName:sf,scope:uf}=ie("tabs-container"),dl=af(rf(sf,uf,!1)),cf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function ff(e,t,o){return{props:{...cf},setup(n,{emit:r,slots:a}){const s=l.inject(vr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?se(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},S=n.emptyIcon??o,N=l.h(S,c),g={class:`${e}__empty-text`},h=n.emptyText??"Loading",m=l.h("view",g,[h]),$={class:`${e}__empty`},w=l.h("view",$,[N,m]);d.push(w)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:df,componentName:hf,scope:gf}=ie("tabs-pane"),hl=df(ff(hf,gf,cl)),mf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function pf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function wr(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Sr(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function yf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function gl(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function xr(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function Tr(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function ml(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class bf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=_e(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(He(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function vf(){const e=l.getCurrentInstance();return new bf(e.proxy)}function wf(e,t,o,n){return{props:{...mf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=vf(),d=l.ref([]),f=l.computed(()=>d.value.filter(x=>yf(r,x)!==!1)),c=l.ref(-1),S=()=>{const x=r.modelValue,I=f.value.findIndex(E=>wr(r,E)===x);c.value!==I&&(c.value=I,r.scroll&&re(I,!1))};l.watch([()=>r.modelValue,f],()=>{S()});const N=x=>c.value===x,g=x=>{if(x<0&&x>=f.value.length)return!1;const I=f.value[x],v=(ml(r,I,x)??{}).status??gl(r,I);return N(x)||v},h=l.computed(()=>{const x={[i]:!0};return r.mode?x[`is-${r.mode}`]=!0:r.direction&&(x[`is-${r.direction}`]=!0),r.scroll&&(x["is-scroll"]=!0),x}),m=l.computed(()=>({})),$=(x,I,E,v,W)=>{const P={[`${i}__step`]:!0};return W&&(P[`${W}`]=!0),P[`${w.value}`]=!0,v&&(P["is-doit"]=!0),x===c.value?P["is-active"]=!0:I==="done"?P["is-done"]=!0:I==="error"?P["is-error"]=!0:I==="half"?P["is-half"]=!0:E?P["is-disabled"]=!0:P["is-normal"]=!0,P},w=l.computed(()=>{if(r.mode==="simple")return"start";let x=r.align;return x||(r.direction==="vertical"?x="start":x="center"),x}),C=(x,I={})=>{const E={...I};return w.value==="start"&&x===f.value.length-1?E.flex="0 0 auto":r.step?r.direction==="vertical"?E.height=r.step:E.width=r.step:E.flex="1 1 100%",E},q=(x,I)=>{let E={};if(I<f.value.length-1){const v=I+1;g(I)&&g(v)?r.direction==="vertical"?E.height="100%":E.width="100%":E.opacity="0"}return E},B=x=>f.value.length-1===x,A=(x,I)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&I>c.value||c.value===I)return;const E=c.value,v=I;c.value=I,r.scroll&&re(I,!1);const W=wr(r,x);s("update:modelValue",W);const P={fromIndex:E,currentIndex:v,item:x,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",W,P)},L=l.ref(!0),M=async(x,I)=>{try{const E=await u.load("stesbar",x,I);Array.isArray(E)&&(d.value=E),L.value=!1}catch(E){console.error("[FoxUI] Load StepsBar Data Fail",E),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([x,I])=>{x&&M(x,I)},{immediate:!0});const V=(x,I,E,v,W)=>{let P=null;if(a.icon)P=a.icon({item:x,index:I,status:v});else if(v==="done"){const D={};r.iconSize&&(D.width=r.iconSize,D.height=r.iconSize);const X=r.icon??o;P=l.h(X,D)}else{const D=E??`${I+1}`;P=l.h("span",{},[D])}const z={class:"fox-steps-bar__icon",onClick:()=>{W||A(x,I)}};return l.h("view",z,[P])},k=(x,I,E)=>{const v=l.h("i",{class:"fox-steps-bar__line-inner",style:q(x,I)});return l.h("view",{class:"fox-steps-bar__line"},[v])},b=()=>{let x=null;if(a.markIcon)x=a.markIcon();else{const E={};r.iconSize&&(E.width=r.markIconSize,E.height=r.markIconSize);const v=r.markIcon??n;x=l.h(v,E)}return l.h("view",{class:"fox-steps-bar__mark"},[x])},j=(x,I,E,v,W)=>{const P=[];if(!B(I)){const X=k(x,I);P.push(X)}const z=V(x,I,E,v,W);P.push(z);const D={class:"fox-steps-bar__head"};return l.h("view",D,P)},_=(x,I,E,v)=>{let W=null;a.main?W=a.main({item:x,index:I,status:E}):W=pf(r,x);const P={class:"fox-steps-bar__main",onClick:()=>{v||A(x,I)}};return l.h("view",P,[W])},R=(x,I,E)=>{let v=null;if(a.sub){v=a.sub({item:x,index:I,status:E});const W={class:"fox-steps-bar__sub"};return l.h("view",W,[v])}return null},F=(x,I)=>{const E=ml(r,x,I)??{},v=E.status??gl(r,x);let W=Sr(r,x);E.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const P=E.label??Tr(r,x),z=[],D=V(x,I,P,v,W);D&&z.push(D);const X=_(x,I,v,W);if(X&&z.push(X),!B(I)){const ne=k(x,I);ne&&z.push(ne)}const H=l.h("view",{class:"fox-steps-bar__head"},z),Q=E.class,te=E.style??{};let T=xr(r,x);E.doit===!0&&(T=!0);const Y={ref:ee(I),class:$(I,v,W,T,Q),style:C(I,te)};return l.h("view",Y,[H])},K=(x,I)=>{const E=ml(r,x,I)??{},v=E.status??gl(r,x);let W=Sr(r,x);E.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const P=E.label??Tr(r,x),z=[],D=r.layout;for(let T of D)if(T==="head"){const Y=j(x,I,P,v,W);z.push(Y)}else if(T==="main"){const Y=_(x,I,v,W);z.push(Y)}else if(T==="sub"){const Y=R(x,I,v);z.push(Y)}else if(T==="mark"){const Y=b();z.push(Y)}const X=E.class,H=E.style??{};let Q=xr(r,x);E.doit===!0&&(Q=!0);const te={ref:ee(I),class:$(I,v,W,Q,X),style:C(I,H)};return l.h("view",te,z)},G=l.ref(),U=l.ref([]),J=(x,I)=>{U.value[I]=x},ee=x=>I=>{J(I,x)},re=(x,I)=>{const E=G.value,v=U.value;if(!E||!v||!v[x])return;const W=v[x];let P=0;r.direction==="vertical"?P=W.offsetTop-(E.offsetHeight-W.offsetHeight)/2:P=W.offsetLeft-(E.offsetWidth-W.offsetWidth)/2,O(E,P,I?0:.3,r.direction)},O=(x,I,E,v)=>{let W=0;const P=v==="horizontal"?x.scrollLeft:x.scrollTop,z=E===0?1:Math.round(E*1e3/16);function D(){v==="horizontal"?x.scrollLeft+=(I-P)/z:x.scrollTop+=(I-P)/z,++W<z&&vn(D)}D()};return()=>{const x=[];if(r.mode==="simple")for(let E=0;E<f.value.length;E++){const v=f.value[E],W=F(v,E);x.push(W)}else for(let E=0;E<f.value.length;E++){const v=f.value[E],W=K(v,E);x.push(W)}const I={ref:G,class:h.value,style:m.value};return l.h("view",I,x)}}}}const{componentName:Sf,create:xf,scope:Tf}=ie("steps-bar"),pl=xf(wf(Sf,Tf,Kc,Uc)),$f=Symbol.for("InnerPageScopeKey"),Cf=Symbol.for("PageWrapperKey");function Ef(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide($f,!0);const r={};l.provide(Cf,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return l.h(y.ElDialog,d,f)}}}}const{componentName:Ah,create:Nf,scope:Lh}=ie("dialog-item"),yl=Nf(Ef());let It=0;const $r="fox-overflow-hidden",Cr=()=>tt?document.body:{classList:[]},kf=e=>[()=>{if(e())try{!It&&Cr().classList.add($r),It++}catch{}},()=>{if(e()&&It)try{It--,!It&&Cr().classList.remove($r)}catch{}}],If={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Of,create:Vf}=ie("overlay"),Ff=Vf({props:{...If},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=kf(()=>e.lockScroll),r=l.computed(()=>({[Of]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,i=>{i?o():n()}),{classes:r,style:a,onClick:i=>{t("click",i),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Df(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const on=Me(Ff,[["render",Df]]),Rf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Er=2e3;let Nr=Er;const Af=(e,t)=>({components:t,props:{...Rf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Er&&(Nr=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++Nr,o.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},S=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},N=h=>{n("opend",h)},g=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:S,onOpened:N,onClosed:g}}}),{componentName:Lf,create:Mf}=ie("popup"),Bf=Mf(Af(Lf,{FoxOverLay:on,Close:Pc}));function _f(e,t,o,n,r,a){const s=l.resolveComponent("FoxOverLay"),i=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(i)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const bl=Me(Bf,[["render",_f]]),{create:qf}=ie("toast"),Pf=qf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},i=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&s(),l.watch(()=>e.duration,N=>{N&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const N=fe(e.iconSize);return l.h(e.icon,{width:N,height:N,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),jf={key:1,class:"fox-toast-title"},zf=["innerHTML"];function Hf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",jf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,zf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const vl=Me(Pf,[["render",Hf]]),Kf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Wf=(e,t,o)=>({props:{...Kf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=yo(),{toLocaleRefs:s}=Re.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=V=>{let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),a("update:modelValue",b,V),a("change",b,V)},S=l.ref({}),N=V=>{let b=V.target.value;u.active=!0,S.value=n.focusStyle,a("focus",b,V)},g=V=>{setTimeout(()=>{u.active=!1},0);let b=V.target.value;n.maxLength&&b.length>Number(n.maxLength)&&(b=b.slice(0,Number(n.maxLength))),S.value={},a("blur",b,V)},h=V=>{a("update:modelValue","",V),a("change","",V),a("clear","")},m=l.computed(()=>String(n.modelValue).length>0),$=l.computed(()=>{const V={};return m.value||(V.display="none"),V}),w=()=>{a("search",n.modelValue)},C=V=>{a("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&w()},q=V=>{a("click-input",V)},B=V=>{a("click-left-icon",n.modelValue,V)},A=l.computed(()=>({textAlign:n.inputAlign})),L=l.ref(null);l.onMounted(()=>{n.autofocus&&L.value.focus()});const M=()=>{const V=[];if(r.leftin){const R={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},F=l.h("view",R,[r.leftin()]);V.push(F)}const k={ref:L,class:[`${e}__input-inner`],style:A.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:q,onInput:c,onFocus:N,onBlur:g,onkeyup:C},b=l.h("input",k);V.push(b);const j=[];if(n.clearable){const R={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:$.value,onClick:h},F=r?.clear?.()??n.clearIcon??o,K=l.h("view",R,[l.h(F)]);j.push(K)}if(r.rightin){const R={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},F=l.h("view",R,[r.rightin()]);j.push(F)}if(j.length>0){const R={class:`${e}__input-inner-right`},F=l.h("view",R,j);V.push(F)}const _={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...S.value}};return l.h("view",_,V)};return()=>{const V=[];if(n.label){const j={class:`${e}__search-label`},_=l.h("span",j,[n.label]);V.push(_)}if(r.leftout){const j={class:[`${e}__search-icon`,`${e}__left-search-icon`]},_=l.h("view",j,[r.leftout()]);V.push(_)}const k=M();if(V.push(k),r.rightout){const j={class:[`${e}__search-icon`,`${e}__right-search-icon`]},_=l.h("view",j,[r.rightout()]);V.push(_)}const b={class:`${e}`,style:d.value};return l.h("view",b,V)}}}),{componentName:Yf,create:Gf,scope:Uf}=ie("searchbar"),wl=Gf(Wf(Yf,Uf,Te.CircleClose)),Xf=/scroll|auto|overlay/i,kr=window;function Zf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Jf(e,t=kr){let o=e;for(;o&&o!==t&&Zf(o);){const{overflowY:n}=window.getComputedStyle(o);if(Xf.test(n))return o;o=o.parentNode}return t}function Ir(e,t=kr){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=Jf(e.value,t))}),o}const Or=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Qf={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function ed(e,t,o){return{props:{...Qf},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Re.useFoxI18n(t),i=s(n,["pullText","loadText","loadMoreText"]),u=l.ref(),d=Ir(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),S=w=>w?w.offsetTop+S(w.offsetParent):0,N=()=>{let w=0,C=0,q="down";if(d.value==window){const B=Or();u.value&&(w=S(u.value)+u.value.offsetHeight-B-window.innerHeight),C=B}else{const{scrollHeight:B,clientHeight:A,scrollTop:L}=d.value;w=B-A-L,C=L}return f.beforeScrollTop>C?q="up":q="down",f.beforeScrollTop=C,r("scroll-change",C),w<=n.threshold&&q=="down"},g=()=>{Bl(()=>{if(!N()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",g,n.useCapture)},m=()=>{d.value&&d.value.removeEventListener("scroll",g,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&g()}),l.onUnmounted(()=>{m()});const $=l.ref(!1);return l.onActivated(()=>{$.value&&($.value=!1,h())}),l.onDeactivated(()=>{$.value=!0,m()}),l.watch(()=>n.modelValue,w=>{w||(f.isInfiniting=!1)}),()=>{const w={class:"fox-infinite__container"},C=l.h("view",w,[a?.default?.()]),q=[];if(f.isInfiniting){let M=a?.loading?.()??null;if(!M){let b=a?.loadingIcon?.()??null;if(!b){const R={class:["fox-infinite__bottom-box__img"]};b=l.h(o,R)}const j={class:"fox-infinite__bottom-box__text"},_=l.h("view",j,[i.loadText.value]);M=[b,_]}const V={class:"fox-infinite__bottom-box"},k=l.h("view",V,M);q.push(k)}else if(!n.hasMore){let M=a?.finished?.()??null;if(!M){const V={class:"fox-infinite__bottom-tips"};M=l.h("view",V,[i.loadMoreText.value]),q.push(M)}}const B={class:"fox-infinite__bottom"},A=l.h("view",B,q),L={class:c.value,ref:u};return l.h("view",L,[C,A])}}}}const{componentName:td,create:nd,scope:ld}=ie("infinite-loading"),Sl=nd(ed(td,ld,cl)),Vr=10;function Fr(e,t){return e>t&&e>Vr?"horizontal":t>e&&t>Vr?"vertical":""}function xl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Tl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Fr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function od(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),s=l.ref(0),i=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",S=()=>f.value==="horizontal",N=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:m=>{if(m.touches){const C=m.touches[0];s.value=C.clientX-e.value,i.value=C.clientY-t.value,r.value=C.clientX,a.value=C.clientY}else{const w=m;s.value=w.clientX-e.value,i.value=w.clientY-t.value,r.value=w.clientX,a.value=w.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=Fr(u.value,d.value))},start:m=>{if(N(),m.touches){const C=m.touches[0];e.value=C.clientX,t.value=C.clientY}else{const w=m;e.value=w.clientX,t.value=w.clientY}o.value=Date.now()},reset:N,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:S}}const rd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},ad=(e,t,o)=>({props:{...rd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Re.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=Tl(),d=l.ref(),f=Ir(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),S=l.computed(()=>({[e]:!0})),N=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),g=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const L={};return n.headHeight!=50&&(L.height=Ee(n.headHeight)),L}),m=L=>{const M=+(n.pullDistance||n.headHeight);let V=L;return L>M&&(L<M*2?V=(L+M)/2:V=M+L/4),Math.round(V)},$=(L,M)=>{const V=+(n.pullDistance||n.headHeight);c.distance=L,M?c.status="loading":L===0?c.status="normal":L<V?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:L})},w=()=>c.status!=="loading"&&c.status!=="complete",C=()=>f.value==window?Or()==0:f.value&&f.value.scrollTop==0,q=L=>{w()&&(C()?(u.start(L),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},B=L=>{w()&&c.moving&&(u.move(L),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(L.cancelable&&L.preventDefault(),$(m(u.state.deltaY))))},A=()=>{c.moving=!1,c.isPullRefresh&&w()&&u.state.deltaY&&(c.status==="loosing"?($(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):$(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,L=>{L?$(+n.headHeight,!0):$(0)}),()=>{const L=[];let M=null;if(c.status==="loading"){if(M=a?.loading?.()??null,!M){const K={class:["fox-pull-refresh-container-topbox-icon"]};M=l.h(o,K)}}else c.status==="pulling"?M=a?.pulling?.()??null:c.status==="loosing"&&(M=a?.loosing?.()??null);M&&L.push(M);const V={class:["fox-pull-refresh-container-topbox-text"]},k=l.h("dive",V,[N.value]);L.push(k);const b={class:["fox-pull-refresh-container-topbox"],style:h.value},j=l.h("div",b,L),_={class:"fox-pull-refresh-container",style:g.value},R=l.h("div",_,[j,a?.default?.()]),F={ref:d,class:S.value};return xl()?Object.assign(F,{onTouchstart:q,onTouchmove:B,onTouchend:A}):Object.assign(F,{onMousedown:q,onMousemove:B,onMouseup:A}),l.h("div",F,[R])}}}),{componentName:id,create:sd,scope:ud}=ie("pull-refresh"),$l=sd(ad(id,ud,cl));function cd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),i=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:s.value,style:i.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},S=n.default?n.default():[],N=l.h("div",c,S),g={class:a.value};return o.textPosition==="right"?l.h("div",g,[f,N]):l.h("div",g,[N,f])}}}}const{componentName:fd,create:dd,scope:Mh}=ie("indicator"),Cl=dd(cd(fd));function hd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const gd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function md(e,t,o,n=!1){return{props:{...gd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const C={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(C[`${e}--${r.type??"default"}`]=!0),r.size&&(C[`${e}--${r.size}`]=!0),C}),u=l.computed(()=>{const C={},q=r.textColor??r.color;return q&&(C.color=q),C}),d=(C,q)=>{let B=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const A=r.highlightFilter;if(C.indexOf(A)!==-1){const M=C.replace(new RegExp(A,"g"),`<span>${A}</span>`);q.innerHTML=M,q.class["is-highlight"]=!0,B=l.h(r.tag,q)}}else if(typeof r.highlightFilter=="function"){const A=r.highlightFilter(C);A&&(q.innerHTML=A,q.class["is-highlight"]=!0,B=l.h(r.tag,q))}return B},f=C=>{a.emit("click",C)};let c="";const S=()=>{const C=s.value;if(!C)return;const q=C.clientWidth;hd(C,B=>{const A=C.innerHTML??"";ge(A)||B<q||(c?o?.show(C,A,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show(C,A,{type:"text",showArrow:r.showArrow},!0)??"")})},N=()=>{c&&o?.hide(c)};let g=null;const h=C=>{g||(g=setTimeout(()=>{S(),g=null},r.showAfter??0))},m=C=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{N()},r.hideAfter??0)},$=()=>{const C=s.value;C&&(C.addEventListener("mouseover",h),C.addEventListener("mouseleave",m))},w=()=>{const C=s.value;C&&(C.removeEventListener("mouseover",h),C.removeEventListener("mouseleave",m))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||$()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||w()}),()=>{const C={onClick:f,class:i.value,style:u.value,ref:s};let q=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=be(r.digits),b=be(r.decimalLength),j=se(r.autoPadding);let _=`${M[0].children}`,R=_.split("").reverse().join("");R=Rt(R,b,j,k,r.separator),_=R.split("").reverse().join(""),r.highlightFilter!==void 0&&(q=d(_,C)),q||(C.innerHTML=_,q=l.h(r.tag,C))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const M=a.slots.default();if(Array.isArray(M)&&M.length===1){const V=M[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const k=`${M[0].children}`;q=d(k,C),q||(C.innerHTML=k,q=l.h(r.tag,C))}}}q||(q=l.h(r.tag,C,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return q;let A=null;if(r.icon){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,l.h(r.icon))}else if(a.slots.mark){const M={[`${e}__mark-wrap`]:!0};r.type&&(M[`${e}__mark-wrap--${r.type}`]=!0);const V={},k=r.color;k&&(V.color=k);const b={class:M,style:V};A=l.h("view",b,{default:a.slots.mark})}else{const M={[`${e}__mark`]:!0};r.type&&(M[`${e}__mark--${r.type??"default"}`]=!0);const V={},k=r.color;k&&(V["background-color"]=k);const b={class:M,style:V};A=l.h("view",b)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",L,[A,q])}}}}const{componentName:pd,create:yd,scope:bd}=ie("text"),El=yd(md(pd,bd,Ve,!1)),vd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Te.ArrowUp}};function wd(e,t,o){return{props:{...vd},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),s=de(n,"modelValue"),i=l.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{r("update:modelValue",!s.value)};return()=>{const c=[];if(i.value){const h={class:u.value},m=l.h("span",h,[i.value]);c.push(m)}const S={class:d.value},N=o(n.icon,S);return N&&c.push(N),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Sd,create:xd,scope:Td}=ie("more-button"),Nl=xd(wd(Sd,Td,(e,t)=>(e=e??Te.ArrowUp,l.h(y.ElIcon,t,{default:()=>[l.h(e)]}))));function $d(e){return e===window}const Dr=e=>{const t=l.unref(e);if($d(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Cd,create:Ed,scope:_h}=ie("tour"),Nd=Ed({components:{Close:Te.Close,ElPopover:y.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Cd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:g,maskWidth:h,maskHeight:m}=e,{width:$,height:w,left:C,top:q}=r.value,B=e.steps[n.active].offset??g,A=[C+$/2,q+w/2],L=Number(h||$),M=Number(m||w);return{width:`${L+ +B.left+B.right}px`,height:`${M+B.top+B.bottom}px`,top:`${A[1]-M/2-+B.top}px`,left:`${A[0]-L/2-+B.left}px`}}),i=g=>{g=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,f=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),h=Dr(g);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},S=()=>{e.closeOnClickOverlay&&c()},N=(g,h=0)=>{g&&f(),e.steps,n.active=h,n.showTour=g,n.showPopup=g};return l.onMounted(()=>{N(e.modelValue,e.current)}),l.watch(()=>e.modelValue,g=>{N(g)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:S}}}),kd={key:0,class:"fox-tour__content"},Id={key:0,class:"fox-tour__content-top"},Od={class:"fox-tour__content-inner"},Vd={class:"fox-tour__content-bottom"},Fd={class:"fox-tour__content-bottom-init"},Dd={class:"fox-tour__content-bottom-operate"},Rd={key:1,class:"fox-tour__content fox-tour__content-tile"},Ad={class:"fox-tour__content-inner"};function Ld(e,t,o,n,r,a){const s=l.resolveComponent("Close"),i=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",kd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Id,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Od,l.toDisplayString(d.content),1),l.createElementVNode("div",Vd,[l.createElementVNode("div",Fd,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Dd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("div",Ad,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const kl=Me(Nd,[["render",Ld]]),Fe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,ot=e=>e==null;class Md{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=xl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=Tl(),n=(r,a,s,i)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Rr(e,t){return new Md(e,t)}const Ar=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let ht=[];const Lr=e=>{const t=e;t.key==="Escape"&&ht.forEach(o=>o(t))},Bd=e=>{l.onMounted(()=>{ht.length===0&&document.addEventListener("keydown",Lr),Ar&&ht.push(e)}),l.onBeforeUnmount(()=>{ht=ht.filter(t=>t!==e),ht.length===0&&Ar&&document.removeEventListener("keydown",Lr)})},Il="fox-focus-trap.focus-after-trapped",Ol="fox-focus-trap.focus-after-released",_d="fox-focus-trap.focusout-prevented",Mr={cancelable:!0,bubbles:!1},qd={cancelable:!0,bubbles:!1},Br="foxFocusAfterTrapped",_r="foxFocusAfterReleased",Pd=Symbol("foxFocusTrap"),Vl=l.ref(),rn=l.ref(0),Fl=l.ref(0);let an=0;const qr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},jd=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Pr=(e,t)=>{for(const o of e)if(!jd(o,t))return o},zd=e=>{const t=qr(e),o=Pr(t,e),n=Pr(t.reverse(),e);return[o,n]},Hd=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Fl.value=window.performance.now(),e!==o&&Hd(e)&&t&&e.select()}};function jr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Kd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=jr(e,n),e.unshift(n)},remove:n=>{e=jr(e,n),e[0]?.resume?.()}}},Wd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Je(n,t),document.activeElement!==o)return},zr=Kd(),Yd=()=>rn.value>Fl.value,sn=()=>{Vl.value="pointer",rn.value=window.performance.now()},Hr=()=>{Vl.value="keyboard",rn.value=window.performance.now()},Gd=()=>(l.onMounted(()=>{an===0&&(document.addEventListener("mousedown",sn),document.addEventListener("touchstart",sn),document.addEventListener("keydown",Hr)),an++}),l.onBeforeUnmount(()=>{an--,an<=0&&(document.removeEventListener("mousedown",sn),document.removeEventListener("touchstart",sn),document.removeEventListener("keydown",Hr))}),{focusReason:Vl,lastUserFocusTimestamp:rn,lastAutomatedFocusTimestamp:Fl}),un=e=>new CustomEvent(_d,{...qd,detail:e}),{componentName:qh,create:Ud,scope:Ph}=ie("focus-trap"),Xd=Ud({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Br,_r,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=Gd();Bd(h=>{se(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||i.paused)return;const{key:m,altKey:$,ctrlKey:w,metaKey:C,currentTarget:q,shiftKey:B}=h,{loop:A}=e,L=m==="Tab"&&!$&&!w&&!C,M=document.activeElement;if(L&&M){const V=q,[k,b]=zd(V);if(k&&b){if(!B&&M===b){const _=un({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&Je(k,!0))}else if(B&&[k,V].includes(M)){const _=un({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||(h.preventDefault(),A&&Je(b,!0))}}else if(M===V){const _=un({focusReason:s.value});o("focusout-prevented",_),_.defaultPrevented||h.preventDefault()}}};l.provide(Pd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[m])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",S)),m&&(m.removeEventListener("keydown",u),m.removeEventListener("focusin",c),m.removeEventListener("focusout",S))});const d=h=>{o(Br,h)},f=h=>o(_r,h),c=h=>{const m=l.unref(n);if(!m)return;const $=h.target,w=h.relatedTarget,C=$&&m.contains($);se(e.trapped)||w&&m.contains(w)||(r=w),C&&o("focusin",h),!i.paused&&se(e.trapped)&&(C?a=$:Je(a,!0))},S=h=>{const m=l.unref(n);if(!(i.paused||!m))if(!e.escape&&se(e.trapped)){const $=h.relatedTarget;!$n($)&&!m.contains($)&&setTimeout(()=>{if(!i.paused&&se(e.trapped)){const w=un({focusReason:s.value});o("focusout-prevented",w),w.defaultPrevented||Je(a,!0)}},0)}else{const $=h.target;$&&m.contains($)||o("focusout",h)}};async function N(){await l.nextTick();const h=l.unref(n);if(h){zr.push(i);const m=h.contains(document.activeElement)?r:document.activeElement;if(r=m,!h.contains(m)){const w=new Event(Il,Mr);h.addEventListener(Il,d),h.dispatchEvent(w),w.defaultPrevented||l.nextTick(()=>{let C=e.focusStartEl;Yl(C)||(Je(C),document.activeElement!==C&&(C="first")),C==="first"&&Wd(qr(h),!0),(document.activeElement===m||C==="container")&&Je(h)})}}}function g(){const h=l.unref(n);if(h){h.removeEventListener(Il,d);const m=new CustomEvent(Ol,{...Mr,detail:{focusReason:s.value}});h.addEventListener(Ol,f),h.dispatchEvent(m),!m.defaultPrevented&&(s.value=="keyboard"||!Yd())&&Je(r??document.body,!0),h.removeEventListener(Ol,d),zr.remove(i)}}return l.onMounted(()=>{se(e.trapped)&&N(),l.watch(()=>e.trapped,h=>{se(h)?N():g()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Zd,create:Jd,scope:zh}=ie("floating-window"),Qd=Symbol.for("InnerPageScopeKey"),eh=Symbol.for("PageWrapperKey"),th={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},nh=Jd({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Xd},props:{...th},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Zd,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,T=>{n.value=T});const a=l.computed(()=>n.value===!1?!1:!M.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const T=["fox-floating-window"];return e.customClass&&T.push(e.customClass),T}),c=l.computed(()=>{const T={};return ot(s.value)?T.left="auto":T.left=Fe(s.value),ot(i.value)?T.top="auto":T.top=Fe(i.value),ot(u.value)?T.right="auto":T.right=Fe(u.value),ot(d.value)?T.bottom="auto":T.bottom=Fe(d.value),ot(e.zIndex)||(T["z-index"]=Fe(e.zIndex)),ot(A.value)||(T.height=A.value),ot(L.value)||(T.width=L.value),T}),S=l.computed(()=>e.closeIcon??Te.Close),N=l.computed(()=>e.collapseIcon??Te.ArrowUp),g=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Te.ArrowRight:e.expandIcon??Te.ArrowLeft),m=l.computed(()=>e.expandText??e.title??"展开"),$=l.computed(()=>({[`${o}__collapse-text`]:!0})),w=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),C=l.ref(),q=l.ref(null),B=l.ref(null),A=l.computed(()=>Fe(e.height)||""),L=l.computed(()=>Fe(e.width)||""),M=l.ref(se(e.collapse)),V=(T,Y=!0)=>{M.value!==T&&(M.value=T,T?x():I(),t("update:collapse",T),T&&typeof j.onHide=="function"?j.onHide():!T&&typeof j.onShow=="function"&&j.onShow())};l.watch(()=>e.collapse,T=>{V(T)});const k=()=>{b()},b=T=>{T=T??!M.value,V(T)};l.provide(Qd,!0);const j={setCollapse:V,setFixedNavVisible:T=>{ee.value=T}};l.provide(eh,j);const _=()=>{typeof j.beforeClose=="function"?j.beforeClose(()=>{n.value=!1}):n.value=!1},R=l.ref(null),F=l.computed(()=>!e.fixedNavTeleport),K=l.computed(()=>{const T=["fox-floating-window__fixednav"];return e.expandClass&&T.push(e.expandClass),e.collapsePosition==="left"?T.push("is-left"):e.collapsePosition==="right"&&T.push("is-right"),T}),G=l.ref(""),U=l.computed(()=>{const T={};return G.value?T.top=G.value:e.collapseTop&&(T.top=e.collapseTop),T}),J=l.ref(M.value),ee=l.computed({set:T=>{J.value=T},get:()=>n.value===!1?!1:J.value});let re=null;const O=()=>{typeof re=="function"&&(re(),re=null)},x=()=>{R.value&&R.value.classList.add("slide-in"),ee.value=!0,re=()=>{R.value&&R.value.classList.remove("slide-in")}},I=()=>{R.value&&R.value.classList.add("slide-out"),re=()=>{R.value&&R.value.classList.remove("slide-out"),ee.value=!1}},E=()=>{s.value=null,i.value=null,u.value=null,d.value=null},v={x:0,y:0},z=Rr(T=>{if(!C.value)return;const Y=C.value;if(E(),e.origin==="left-top")s.value=Y.offsetLeft,i.value=Y.offsetTop,v.x=s.value,v.y=i.value;else if(e.origin==="left-bottom"){const ne=document.documentElement.clientHeight||document.body.clientHeight;s.value=Y.offsetLeft,d.value=ne-(Y.offsetTop+Y.offsetHeight),v.x=s.value,v.y=d.value}else if(e.origin==="right-bottom"){const ne=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=ne-(Y.offsetLeft+Y.offsetWidth),d.value=le-(Y.offsetTop+Y.offsetHeight),v.x=u.value,v.y=d.value}else{const ne=document.documentElement.clientWidth||document.body.clientWidth;u.value=ne-(Y.offsetLeft+Y.offsetWidth),i.value=Y.offsetTop,v.x=u.value,v.y=i.value}},T=>{if(!C.value)return;const Y=C.value;E(),e.origin==="left-top"?(s.value=v.x+T.x,i.value=v.y+T.y,Y.style.left=Fe(s.value),Y.style.top=Fe(i.value)):e.origin==="left-bottom"?(s.value=v.x+T.x,d.value=v.y-T.y,Y.style.left=Fe(s.value),Y.style.bottom=Fe(d.value)):e.origin==="right-bottom"?(u.value=v.x-T.x,d.value=v.y-T.y,Y.style.right=Fe(u.value),Y.style.bottom=Fe(d.value)):(u.value=v.x-T.x,i.value=v.y+T.y,Y.style.right=Fe(u.value),Y.style.top=Fe(i.value))}),D={x:0,y:0},Q=Rr(T=>{R.value&&(D.x=R.value.offsetLeft,D.y=R.value.offsetTop)},T=>{if(!R.value)return;const Y=D.y+T.y;G.value=`${Y}px`}),te=()=>{if(C.value){const T=C.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");B.value=T}};return l.onMounted(()=>{if(e.draggable&&C.value){const T=[];q.value&&T.push(q.value),e.footerDraggable&&(te(),B.value&&T.push(B.value)),z.open(T)}e.collapse===!0&&V(e.collapse,!1),R.value&&Q.open(R.value)}),l.onBeforeUnmount(()=>{e.draggable&&q.value&&z.close(),R.value&&Q.close()}),{classes:f,styles:c,isShow:a,closeIcon:S,onClose:_,dialogRef:C,headerRef:q,onClickToggle:k,collapseIcon:N,collapseText:g,collapseTextClasses:$,collapseIconClasses:w,expandIcon:h,expandText:m,isShowFixedNav:ee,fixedNavRef:R,fixedNavClasses:K,fixedNavStyles:U,onAnimationEnd:O,teleportDisabled:r,fixedNavTeleportDisabled:F}}}),lh={ref:"headerRef",class:"fox-floating-window__header"},oh={class:"fox-floating-window__title"},rh={class:"fox-floating-window__tools"},ah={class:"fox-floating-window__body"},ih={class:"fox-floating-window__fixednav__text"};function sh(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",lh,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",oh,l.toDisplayString(e.title),1),l.createElementVNode("div",rh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(s,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",ah,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",ih,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Dl=Me(nh,[["render",sh]]);function uh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return go(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Hh,create:ch,scope:Kh}=ie("domain-provider"),Rl=ch(uh()),fh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function dh(e,t){return{inheritAttrs:!1,props:fh,setup(o,{slots:n}){if(tt&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(S,N)=>{if(f===null){a.set(S,{visible:null,callback:N});return}r.has(S)&&f.unobserve(S),r.set(S,{visible:null,callback:N}),f.observe(S)},i=S=>{if(f===null){a.delete(S);return}r.has(S)&&(r.delete(S),f.unobserve(S))};let u=o.initialVisibleObserverSize;Ja({acquire:()=>{const S=u>0;return u--,S},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(S,N,g)=>{f=new IntersectionObserver(h=>{for(let m of h){let $=!1;m.intersectionRatio>0&&($=!0);const w=r.get(m.target);if(w)try{if(o.loadPolicy==="lazy"&&!$&&w.visible!==null)return;w.visible=$,w.callback($)}catch(C){console.error(C)}}},{root:S,rootMargin:N,threshold:g}),a.forEach((h,m)=>{r.set(m,h),f?.observe(m)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([S,N])=>{if(N||!S||f)return;let g=null;typeof S=="string"?g=document.querySelector(S):g=S,g&&c(g,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wh,create:hh,scope:Yh}=ie("rolling-provider"),Al=hh(dh()),gh=[Vn,Dn,Rn,An,Bn,we,Pn,jn,$t,zn,Hn,Kn,Wn,Yn,Gn,Un,Zn,Jn,Qn,el,ln,ll,ol,rl,al,il,sl,ul,fl,dl,hl,pl,yl,on,bl,vl,wl,Sl,$l,Et,tn,Cl,El,Nl,kl,Dl,Rl,Al],mh=new Ia(gh,[Fa],"4.0.0");Object.defineProperty(p,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(p,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(p,"FoxAnchor",{enumerable:!0,get:()=>y.ElAnchor}),Object.defineProperty(p,"FoxAnchorLink",{enumerable:!0,get:()=>y.ElAnchorLink}),Object.defineProperty(p,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(p,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(p,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(p,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(p,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(p,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(p,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(p,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(p,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(p,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(p,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(p,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(p,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(p,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(p,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(p,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(p,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(p,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(p,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(p,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(p,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(p,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(p,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(p,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(p,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(p,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(p,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(p,"FoxCountdown",{enumerable:!0,get:()=>y.ElCountdown}),Object.defineProperty(p,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(p,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(p,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(p,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(p,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(p,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(p,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(p,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(p,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(p,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(p,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(p,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(p,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(p,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(p,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(p,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(p,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(p,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(p,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(p,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(p,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(p,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(p,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(p,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(p,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(p,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(p,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(p,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(p,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(p,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(p,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(p,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(p,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(p,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(p,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(p,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(p,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(p,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(p,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(p,"FoxSegmented",{enumerable:!0,get:()=>y.ElSegmented}),Object.defineProperty(p,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(p,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(p,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(p,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(p,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(p,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(p,"FoxStatistic",{enumerable:!0,get:()=>y.ElStatistic}),Object.defineProperty(p,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(p,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(p,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(p,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(p,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(p,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(p,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(p,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(p,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(p,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(p,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(p,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(p,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(p,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(p,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(p,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(p,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(p,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(p,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(p,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),Object.defineProperty(p,"FoxWatermark",{enumerable:!0,get:()=>y.ElWatermark}),p.AutocompleteItem=Jn,p.Broadcast=Cn,p.BroadcastKey=pe,p.CascaderItem=Zn,p.CheckboxItem=rl,p.Content=An,p.DataItemsKey=at,p.DateItem=Kn,p.DateUtils=Le,p.DialogItem=yl,p.Domain=zt,p.DomainKey=De,p.DomainProvider=Rl,p.FloatingWindow=Dl,p.FooterBar=Rn,p.FoxAutocompleteItem=Jn,p.FoxCascaderItem=Zn,p.FoxCheckboxItem=rl,p.FoxContent=An,p.FoxDateItem=Kn,p.FoxDialogItem=yl,p.FoxDomainProvider=Rl,p.FoxFloatingWindow=Dl,p.FoxFooterBar=Rn,p.FoxGroup=Bn,p.FoxGroupSetting=ul,p.FoxHeaderBar=Dn,p.FoxHintText=$t,p.FoxIndicator=Cl,p.FoxInfiniteLoading=Sl,p.FoxInputItem=zn,p.FoxInputNumberItem=Un,p.FoxItem=we,p.FoxMapping=Et,p.FoxMoneyItem=Gn,p.FoxMoreButton=Nl,p.FoxOverLay=on,p.FoxPage=Vn,p.FoxPopup=bl,p.FoxPrice=tn,p.FoxPullRefresh=$l,p.FoxRadioItem=ol,p.FoxRateItem=al,p.FoxRollingProvider=Al,p.FoxRowItem=jn,p.FoxSearchBar=wl,p.FoxSelectItem=Hn,p.FoxSlotItem=Pn,p.FoxStepsBar=pl,p.FoxSwitchItem=il,p.FoxTableItem=ll,p.FoxTableMappingColumn=Qn,p.FoxTableRadioColumn=el,p.FoxTableSetting=ln,p.FoxTabsBar=fl,p.FoxTabsContainer=dl,p.FoxTabsPane=hl,p.FoxText=El,p.FoxTimeItem=Wn,p.FoxTimeSelectItem=Yn,p.FoxToast=vl,p.FoxTour=kl,p.FoxTreeSelectItem=sl,p.Group=Bn,p.GroupSetting=ul,p.HeaderBar=Dn,p.HintText=$t,p.Indicator=Cl,p.InfiniteLoading=Sl,p.InputItem=zn,p.InputNumberItem=Un,p.Item=we,p.Mapping=Et,p.MoneyItem=Gn,p.MoreButton=Nl,p.OverLay=on,p.Page=Vn,p.Popup=bl,p.Price=tn,p.PriorityPolicy=Ae,p.PullRefresh=$l,p.RadioItem=ol,p.RateItem=al,p.RollingProvider=Al,p.RowItem=jn,p.SearchBar=wl,p.SelectItem=Hn,p.SlotItem=Pn,p.StepsBar=pl,p.SwitchItem=il,p.TableItem=ll,p.TableMappingColumn=Qn,p.TableRadioColumn=el,p.TableSetting=ln,p.TabsBar=fl,p.TabsContainer=dl,p.TabsPane=hl,p.Text=El,p.TimeItem=Wn,p.TimeSelectItem=Yn,p.Toast=vl,p.Tour=kl,p.TreeSelectItem=sl,p.UniqueID=Oo,p.ValidateSchema=co,p.ValidateSchemaKey=Be,p.cancelRaf=Yr,p.clearNonNumber=ra,p.clone=xn,p.compareTo=bn,p.createBroadcast=Bt,p.createValidateSchema=qt,p.debounce=St,p.debounceRef=ba,p.decimalLength=lo,p.default=mh,p.defineBroadcast=ua,p.defineConfigDomain=go,p.defineDataItem=po,p.defineDomain=Nn,p.defineItem=Se,p.definePageState=bo,p.defineSimpleItem=yo,p.deleteGlobalValidator=ga,p.disabledProperty=Oe,p.divide=yn,p.excludeProps=Ce,p.extend=et,p.floatData=sa,p.getGlobalValidateCheckEvents=io,p.getGlobalValidateResetEvents=uo,p.getPageContentAreaHeight=Kt,p.getPageContentAreaWidth=Wt,p.getPageFooterAreaHeight=Tt,p.getPageHeaderAreaHeight=xt,p.getRootDomain=it,p.hasSymbol=Xl,p.includeProps=ro,p.indexOf=aa,p.installRules=mo,p.integerLength=no,p.isArray=Ur,p.isArrayLike=Jl,p.isBrowser=tt,p.isDate=Jr,p.isESModule=ea,p.isEmptyString=ge,p.isEqual=Ke,p.isFunction=wn,p.isHidden=Mt,p.isInnerPage=Sa,p.isMap=Xr,p.isNil=$n,p.isNumberString=to,p.isObject=He,p.isPlainObject=Sn,p.isPromise=Gl,p.isRegExp=eo,p.isSet=Zr,p.isString=Yl,p.isSubPage=xa,p.isSymbol=Qr,p.isTouch=xl,p.isWindow=Zl,p.lastIndexOf=ia,p.makeArray=oa,p.merge=Ql,p.multiply=Hl,p.negate=Kl,p.nextTick=na,p.numberFormat=Rt,p.objectToString=Ul,p.once=va,p.overrideGlobalValidateHandler=da,p.property=ke,p.raf=vn,p.readonlyProperty=Ie,p.setGlobalValidateCheckEvents=ma,p.setGlobalValidateHandler=fa,p.setGlobalValidateMessages=ya,p.setGlobalValidateResetEvents=pa,p.setGlobalValidator=ha,p.throttle=ho,p.toBoolean=se,p.toNumber=be,p.toPadding=Pe,p.toPx=fe,p.toPxDesc=Ee,p.toTypeString=At,p.toValue=de,p.tryTimes=jt,p.typeOf=Lt,p.unNumberFormat=Wl,p.updatePageState=kn,p.useBroadcast=bt,p.useDomain=We,p.useExpose=xe,p.useInnerSize=Fn,p.usePageState=Ht,p.usePosition=No,p.useRawTouch=Tl,p.useRect=Dr,p.useSize=Gt,p.useTouch=od,p.valueLength=yt,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|