@fox-js/foxui-pc 4.0.1-74 → 4.0.1-75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  (function(g,r){typeof exports=="object"&&typeof module<"u"?r(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"],r):(g=typeof globalThis<"u"?globalThis:g||self,r(g.FoxUI={},g.Vue,g.FoxValidator,g.ElementPlus,g.ElementPlusIconsVue,g.FoxI18n))})(this,function(g,r,We,m,De,Oe){"use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Thu Sep 14 2023 22:39:47 GMT+0800 (中国标准时间)
2
+ * @fox-js/foxui-desktop v4.0.0 Fri Sep 15 2023 15:14:46 GMT+0800 (中国标准时间)
3
3
  */const wt=window,ea=typeof window<"u";function ta(){return typeof wt<"u"?wt.requestAnimationFrame||wt.webkitRequestAnimationFrame||function(e){wt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function na(e){ea?cancelAnimationFrame(e):clearTimeout(e)}const ra=ta();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function St(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]=Yt(we(e),we(t)),o==1&&(n==1?e=Kt(e):t=Kt(t));let a=An(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Kt(a)):we(a)}function Kt(e){let t="",o=e.length,n=e.split(".")[1],a=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 l=a>0?"0."+new Array(a).join("0")+"1":"1";return An(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 Yt(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 An(e,t){[e,t]=Yt(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 ue=(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))(ue||{});function st(e,t=0,o=ue.HALF_EVEN){if(o===ue.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],s=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)+s,u=st(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,Dn(a[1],l,n,o)?(n?"-":"")+Ut(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");s=a[1].substring(0,t);let i=a[1].substring(t);return i&&Dn(i,s,n,o)&&(s=Ut(s),s.length>t)?(n?"-":"")+Ut(l,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+l+"."+s}function Dn(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ue.DOWN||!o&&n===ue.FLOOR||o&&n===ue.CEILING)return!1;if(n===ue.UP||o&&n===ue.FLOOR||!o&&n===ue.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 ue.HALF_DOWN:return!1;case ue.HALF_UP:return!0;case ue.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ut(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 Gt(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=ut(e),t=ut(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=ut(e.replace(".","")),t=ut(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let v=t.length-1;v>=f&&v>=0;v--)u[v]>-1&&u[v]<e.length&&(b+=parseInt(e[u[v]--])*parseInt(t[v]));b+=i,i=Math.floor(b/10),c=b%10+c,f--}return c=ut(oa(c,l)),o==1&&(c="-"+c),c}function oa(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 ut(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 Xt(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,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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),l=f,i="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=St(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(i+="."),l++,u=u+"0")}return(n==1?"-":"")+we(st(i,o-2))}function Zt(e,t){return e=e.toString(),t=t.toString(),t=Jt(t),St(e,t)}function Jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Bn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Fn(e),Fn(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Zt(e,Gt(t,st(Xt(e,t),0,ue.FLOOR)));return o+n}function Fn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function qn(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]=Yt(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 ee{value;static RoundingModes=ue;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=ee.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=ee.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var s="",i=l;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<l-o&&i>=0?n:"")+s;return(a?"-":"")+s+t.substring(l)}getPrettyValue(t,o){return ee.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ue.HALF_EVEN){if(t=ee.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return st(t,o,n)}round(t=0,o=ue.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ee(st(this.value,t,o))}static floor(t){return t=ee.validate(t),t.indexOf(".")===-1?t:ee.round(t,0,ue.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,ue.FLOOR)}static ceil(t){return t=ee.validate(t),t.indexOf(".")===-1?t:ee.round(t,0,ue.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,ue.CEILING)}static add(t,o){return t=ee.validate(t),o=ee.validate(o),St(t,o)}add(t){return new ee(St(this.value,t.getValue()))}static subtract(t,o){return t=ee.validate(t),o=ee.validate(o),Zt(t,o)}subtract(t){return new ee(Zt(this.value,t.getValue()))}static multiply(t,o){return t=ee.validate(t),o=ee.validate(o),Gt(t,o)}multiply(t){return new ee(Gt(this.value,t.getValue()))}static divide(t,o,n){return t=ee.validate(t),o=ee.validate(o),Xt(t,o,n)}divide(t,o){return new ee(Xt(this.value,t.getValue(),o))}static modulus(t,o){return t=ee.validate(t),o=ee.validate(o),Bn(t,o)}modulus(t){return new ee(Bn(this.value,t.getValue()))}static compareTo(t,o){return t=ee.validate(t),o=ee.validate(o),qn(t,o)}compareTo(t){return qn(this.value,t.getValue())}static negate(t){return t=ee.validate(t),Jt(t)}negate(){return new ee(Jt(this.value))}}function Ln(e,t){return ee.multiply(`${e}`,`${t}`)}function Qt(e,t,o=8){return ee.divide(`${e}`,`${t}`,o)}function en(e,t){return e=`${e}`,t=`${t}`,ee.compareTo(e,t)}function Mn(e){return ee.negate(e)}function vt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let i=l,u="",f=l.indexOf(".");f!=-1&&(i=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=i.split("").reverse();for(let v=0;v<b.length;v++)d+=b[v]+((v+1)%n==0&&v+1!=b.length?a:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function jn(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const aa=ra,la=Array.isArray,ia=e=>$t(e)==="[object Map]",sa=e=>$t(e)==="[object Set]",ua=e=>e instanceof Date,tn=e=>typeof e=="function",_n=e=>typeof e=="string",ca=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",fa=e=>je(e)&&tn(e.then)&&tn(e.catch),Pn=Object.prototype.toString,$t=e=>Pn.call(e),nn=e=>$t(e)==="[object Object]",Hn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||Hn&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ke(...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 s in l){let i=t[s],u=l[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=Ke(a,f,u)}else u!==void 0&&(t[s]=u)}}return t}function rn(e,t,o=!1){if(!o)Ke(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}}return e}const on=ha?Promise.resolve():null;function ga(e,...t){on!==null?t&&t.length>0?on.then(()=>{e(t)}):on.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const ma={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Tt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function zn(e){return e&&typeof e=="object"&&"setInterval"in e}function Wn(e){return!e||e.offsetParent===null}function Kn(e){let t=!!e&&"length"in e&&e.length,o=Tt(e);return o==="function"||zn(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Yn(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 pa(e,t=[]){let o=t;return e!=null&&(Kn(Object(e))?Yn(o,typeof e=="string"?[e]:e):o.push(e)),o}function _e(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Tt(e),n=Tt(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 s=0;s<a.length;s++){let i=a[s],u=e[i],f=t[i];if(!_e(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],s=t[a];if(!_e(l,s))return!1}return!0}return!1}const Ze=typeof window<"u";function an(e){return e==null}function Un(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Gn(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Xn(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 Zn(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 Jn(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 ya(e,t=!0,o=!0){t?e=Jn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Jn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(_e(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(_e(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ct(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Qn(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function ve(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 Sa=(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},de=Symbol.for("BroadcastKey");class ln{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="*"):Un(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 s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&l.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&l.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,l,[...i])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const s=Reflect.apply(l.emit,l,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,o){this.callbacks.set(t,o)}}function xt(e,t,o,n){const a=new ln(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function va(e,t,o){const n=o;if(n[de])return n[de];const a=r.inject(de,null),l=new ln(a,o,e);if(t&&typeof t=="object")for(const s in t)l.on(s,t[s]);return n[de]=l,r.provide(de,l),r.onUnmounted(()=>{l.destroy(),n[de]=void 0}),l}function ft(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[de]??r.inject(de,null):r.inject(de,null)}const Ye=e=>e.default??e;class $a{error(t,o){const n=o,a=ft(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ft(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ft(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=ft(n),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?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let er=new $a;function Ta(e){er=e}function xa(e,t){Ye(We).setValidator(e,t)}function Ea(e){Ye(We).deleteValidator(e)}let tr=["blur","clear"];function Ca(e){tr=e}function nr(){return tr}let rr=["focus","change"];function Na(e){rr=e}function or(){return rr}function ka(e){Ye(We).messages(e)}function dt(...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 Et(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 ar{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=Et(dt(this.attrRules,this.rules)),n=[];for(let l in t){let s=t[l];if(this.hasValidator(l,!0)){if(s===!1)continue;let u={type:l};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(l);if(i!==null){let u={type:l,validator:i};n.push(u)}}this.attrRules=Et(n);const a=dt(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=er;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?Ye(We).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?Ye(We).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ye(We).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=dt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Et(t):this.rules=Et([t]);const n=dt(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=dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),s={[`${n}`]:l},i=Ye(We),u=new i(a),f=this.proxy??s;return u.validate(s,{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 Ct(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 ar(t,o,e)}const lr=Symbol.for("EventEmitterKey");class Va{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 ht(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function ir(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=ht((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function sn(e,t,o,n=0,a=!0){let l=t,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(l+=n,setTimeout(i,l))};setTimeout(i,l)}const Ne=Symbol("DomainKey"),Je=Symbol("DataItemsKey");class Nt{_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 Ra=new Nt;function Qe(){return Ra}function Fe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ne]??r.inject(Ne,null):r.inject(Ne,null)}const un=Symbol("OriginalDateKey");function cn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let s=r.inject(Ne,null);s===null&&(s=Qe());const i=e||t.prop||t.name,u=new Nt(i);u.parent=s;const f=h=>{l[un]||b(h),u.set("modelValue",h)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[un]??null,b=h=>{const w={};Ke(!0,w,r.toRaw(h)),l[un]=w};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&b(t.modelValue),l[Ne]=u,r.provide(Ne,u);let v=null,S=null;if(a!==null){const h=r.inject(de,null);v=xt(l,h,i,n),u.broadcast=v,l[de]=v,r.provide(de,v),l.broadcast=(p,$,...I)=>Reflect.apply(v.emit,v,[p,$,...I]);const w=r.inject(Be,null);S=Ct(l,w,{componentName:""}),u.validateSchema=S,l[Be]=S,r.provide(Be,S),l[Je]=new Map,l.validate=(p=!0)=>{const $=[];let I=null;const F={deep:!1};if(p===!0)I={name:"*"};else if(Array.isArray(p)&&p.length>0){const V=p;I={name:k=>k?V.indexOf(k)!==-1:!1}}else if(p!=null&&typeof p=="object"){const V=p;if(F.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const k=V.include;I={name:N=>N?k.indexOf(N)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const k=V.exclude;I={name:N=>N?k.indexOf(N)===-1:!1}}else I={name:"*"}}if(I){const V=v?.emitToChildren(I,"validate",F);V&&Reflect.apply([].push,$,V)}return $.length==1?$[0]:$.length>1?Promise.all($).then(V=>{let k=[];return V.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(k=[...k,...N.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,$=!0)=>{if($){const I=Reflect.ownKeys(p),F=[...I],V={name:k=>{const N=I.includes(k);if(N){const A=F.findIndex(C=>k===C);A!==-1&&F.splice(A,1)}return N}};v?.emitToChildren(V,"setNameValidateRules",p,!1),F.length>0&&F.forEach(k=>{let N=String(k);const C=cr(u,N,{componentName:"",fieldName:N,pureDataValidate:!0},v,S);l[Je].set(N,C);const D=p[N];D&&C.validateSchema.setRule(D)})}},l.clearValidate=(p=!0)=>{let $=null;if(p===!0)$={name:"*"};else if(Array.isArray(p)&&p.length>0){const I=p;$={name:F=>F?I.indexOf(F)!==-1:!1}}else if(p!=null&&typeof p=="object"){const I=p;if(Array.isArray(I.include)&&I.include.length>0){const F=I.include;$={name:V=>V?F.indexOf(V)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const F=I.exclude;$={name:V=>V?F.indexOf(V)===-1:!1}}else $={name:"*"}}$&&v?.emitToChildren($,"clearValidate",!1)},l.resetFields=p=>{const $=c();if(!$)return;const I={};if(Ke(!0,I,d()??{}),Array.isArray(p))p.forEach(F=>{$[F]=I[F]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(V=>{$[V]=I[V]});else if(p&&Array.isArray(p.exclude)){let F=p.exclude??[];Reflect.ownKeys(I).forEach(V=>{F.includes(V)||($[V]=I[V])})}else Object.assign($,I);l.clearValidate(p)},l.setModelValue=(p,$)=>{!$||$===i?f(p):v?.emitToChildren({name:$},"setModelValue",p)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Ne]=void 0,l[Je]&&(l[Je].clear(),l[Je]=void 0),v!==null&&(v.destroy(),l[de]=void 0),S!==null&&(S.destroy(),l[Be]=void 0)}),u}function sr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Ne,null);l===null&&(l=Qe());const s=e||t.prop||t.name,i=new Nt(s);return i.parent=l,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,o)}):i.merge(t,o),a[Ne]=i,r.provide(Ne,i),r.onUnmounted(()=>{i.destroy(),a[Ne]=void 0}),i}function ur(e,t,o){const a=Fe(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(s=>{t.setRule(s)}))}function ge(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",s=r.inject(de,null),i=xt(a,s,l,o);a[de]=i,r.provide(de,i),a.broadcast=(S,h,...w)=>Reflect.apply(i.emit,i,[S,h,...w]);const u=r.inject(Be,null);e.fieldName=e.fieldName??l;const f=Ct(a,u,e);a[Be]=f,r.provide(Be,f),ur(a,f,l),a.validate=(S=null)=>{const h=[];let w=!1,p=!1;if(Array.isArray(S)&&S.indexOf(l)!==-1)p=!0,w=!0;else if(S&&typeof S=="object"){const $=S;$.ignoreHidden===!0&&Wn(a.$el)?p=!1:(Array.isArray($.include)&&$.include.indexOf(l)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(l),p=!0),w=$.deep??!1}else typeof S=="boolean"&&(w=S),p=!0;if(p){const $=f?.validate();h.push($)}if(w){let $=null;const I={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const F=S;$={name:V=>V?F.indexOf(V)!==-1:!1}}else if(S!=null&&typeof S=="object"){const F=S;if(I.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const V=F.include;$={name:k=>k?V.indexOf(k)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const V=F.exclude;$={name:k=>k?V.indexOf(k)===-1:!1}}else $={name:"*"}}if($){const F=i.emitToChildren($,"validate",I);Reflect.apply([].push,h,F)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then($=>{let I=[];return $.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(I=[...I,...F.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=S=>f?.setRule(S),a.setNameValidateRules=(S,h=!1)=>{const w=S[l];if(w&&f?.setRule(w),h){const p={name:$=>Reflect.ownKeys(S).includes($)};i.emitToChildren(p,"setNameValidateRules",S,!1)}},a.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(S===!0)h={name:"*"};else if(Array.isArray(S)&&S.length>0){const w=S;h={name:p=>p?w.indexOf(p)!==-1:!1}}else if(S!=null&&typeof S=="object"){const w=S;if(Array.isArray(w.include)&&w.include.length>0){const p=w.include;h={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const p=w.exclude;h={name:$=>$?p.indexOf($)===-1:!1}}else h={name:"*"}}h&&i.emitToChildren(h,"clearValidate",!1)};const c=new Va(a);a[lr]=c;const d=ht((S="validate")=>{S==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:nr()).forEach(S=>{c.on(S,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:or()).forEach(S=>{c.on(S,h=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),a[de]=void 0,f.destroy(),a[Be]=void 0,c.destroy(),a[lr]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(S,...h)=>{Reflect.apply(c.emit,c,[S,...h])},onEvent:(S,h)=>{Reflect.apply(c.on,c,[h])},offEvent:(S,h)=>{Reflect.apply(c.off,c,[h])}}}function cr(e,t,o,n,a){const l={},s=t??"";o.fieldName=s,o.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=Ct({},a,o);l.validate=(f=null)=>{const c=[];let d=!1,b=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)b=!0,d=!0;else if(f&&typeof f=="object"){const v=f;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),b=!0,d=v.deep??!1}else typeof f=="boolean"&&(d=f),b=!0;if(b){const v=i?.validate();c.push(v)}if(d){let v=null;const S={deep:!1};if(f===!0)v={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;v={name:w=>w?h.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Array.isArray(h.include)&&h.include.length>0){const w=h.include;v={name:p=>p?w.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const w=h.exclude;v={name:p=>p?w.indexOf(p)===-1:!1}}else v={name:"*"}}if(v){const h=u.emitToChildren(v,"validate",S);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let S=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(S=[...S,...h.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=f=>i?.setRule(f),l.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=xt(null,n,s,l);return{broadcast:u,validateSchema:i}}const me=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ie(e,t)}px`:"";function ie(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(Ze){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(l=Number(s.substring(0,i)))}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 Pe="PageStateKey";function Ie(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ie(e.right))),t}function fn(e,t,o={},n=!0,a=-1,l=-1,s=0,i=0){if(e.headerHeight=ie(o.headerHeight??t.headerHeight),e.headerPadding=Ie(o.headerPadding??t.headerPadding),e.footerHeight=ie(o.footerHeight??t.footerHeight),e.footerPadding=Ie(o.footerPadding??t.footerPadding),e.contentPadding=Ie(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ie(u,l):e.height=ie(l)-ie(s,l)-ie(i,l),e.width=ie(o.width??t.width??0,a)}}function fr(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=ie(a.top),n.safeAreaBottom=ie(a.bottom),n.safeAreaLeft=ie(a.left),n.safeAreaRight=ie(a.right));const l=e.get("pageLayout");if(!l)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;fn(n,l,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(Pe);d&&(n.height=Vt(e,d),n.width=Ot(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Vt(e,d),c.width=Ot(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")],([v,S,h=-1,w=-1,p=0,$=0])=>{fn(c,S,t,b,h,w,p,$)}),e.set(Pe,c),c}function kt(e){return e.get(Pe)}function gt(e,t){if(t=t??e.get(Pe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function mt(e,t){if(t=t??e.get(Pe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Vt(e,t){if(t=t??e.get(Pe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=gt(e,t),n=mt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ot(e,t){return t=t??e.get(Pe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Aa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(Pe)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function dn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ee(e,t,o=1,n){const a=Fe();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let i=l.length-1;i>=0;i--){const u=l[i];if(dn(u,n))return u}const s=e.value;return dn(s,n)?s:null}):r.computed(()=>{const l=e.value;return dn(l,n)?l:a?.get(t)})}function Te(e){return Ee(e,"readonly",0,function(o){return re(o)})}function xe(e){return Ee(e,"disabled",0,function(o){return re(o)})}function oe(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,s=>{if(typeof o=="function"){const i=o(s);i!==l.value&&(l.value=i)}else s!==l.value&&(l.value=s)}),l}const dr=new Map,It=new Map;let hn=null;function Ba(e){hn=e}function hr(e,t,o){if(o){let n=It.get(o);n||(n=new Map,It.set(o,n)),n.set(e,t)}else dr.set(e,t)}function Re(e,t,o){!o&&hn&&(o=hn(e)??void 0);let n=null;if(o){let a=It.get(o);a&&(n=a.get(t))}return n||(n=dr.get(t)),n}function Fa(e,t){for(let o in e){const n=e[o];hr(o,n,t)}}function qa(e){It.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ie(e,n)-ie(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 ja{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=Qe();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=ir(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,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=Ke({},La(),t.safeAreaInset),s=Ma(n,a),i=Ke({},s.pageLayout,t.pageLayout);o=o??Qe(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ba(t)}setAPI(t,o,n){hr(t,o,n)}getAPI(t,o,n){return Re(t,o,n)}batchSetAPI(t,o){Fa(t,o)}clearScopeAPI(t){qa(t)}getRootDomain(){return Qe()}}const _a=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Pa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ha=e=>{_a.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Pa.forEach(t=>{e.use(t)})};function Q(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 he={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}},$e={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}},mr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{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},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}},pr=[];for(const e in mr)pr.push(e);function pe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const za=Symbol.for("InnerPageScopeKey"),Wa=(e,t)=>({inheritAttrs:!0,props:{...he,...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}},setup(o,n){const a=cn(o.name,o);if(a){const f=fr(a,o);pe({getPageContentHeight:()=>Vt(a,f),getPageContentWidth:()=>Ot(a,f),getPageHeaderHeight:()=>gt(a,f),getPageFooterHeight:()=>mt(a,f)});const c=r.inject(za,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>o.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),b=r.toRaw(f),v=b?Reflect.ownKeys(b):[];(d?Reflect.ownKeys(d):[]).forEach(h=>{v.includes(h)||(b[h]=[])}),u(b)},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:s}}}),{componentName:Ka,create:Ya,scope:Jc}=Q("page"),Ua=Ya(Wa(Ka));function Ga(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},yr=Ve(Ua,[["render",Ga]]),Xa=["aria-labelledby"],Za=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ja=[Za],Qa=r.defineComponent({__name:"Left",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=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},l=r.computed(()=>{const i="fox-icon";return{[o.class]:!!o.class,[i]:!0,[i+"-"+o.name]:o.name}}),s=r.computed(()=>{const i={};return i.height=a(o.height)??a(o.size),i.width=a(o.width)??a(o.size),i.color=o.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ja,14,Xa))}});function gn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function mn(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")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-s}}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 s=Fe(),i=s?kt(s):null;i&&(i.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?ie(a.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const E=Ie(a.padding??i.headerPadding);return Object.assign(y,E),f&&(i.headerHeight=f),y.height=i.headerHeight,y.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(E.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),a.padding){const E=Ie(a.padding);Object.assign(y,E)}return y}),d=r.ref(null),b=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const y=gn(d.value);i.headerAllHeight=y.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&sn(b,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const v=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}),S=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),h=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),$=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),I=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),F=r.computed(()=>a.leftIcon),V=r.computed(()=>F.value||l.slots.leftIcon),k=r.computed(()=>a.titleIcon),N=r.computed(()=>a.titleIcon||l.slots.titleIcon),A=r.computed(()=>a.rightIcon),C=r.computed(()=>a.rightIcon||l.slots.rightIcon);function D(){l.emit("back")}function W(){l.emit("click-title")}function z(){l.emit("click-right")}function T(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:v,mHeaderShow:p,leftStyles:S,rightStyles:h,mLeftShow:w,mTitleShow:$,mRightShow:I,mLeftIcon:F,hasLeftIcon:V,mTitleIcon:k,hasTitleIcon:N,mRightIcon:A,hasRightIcon:C,handleLeft:D,handleCenter:W,handleRight:z,handleRightText:T}}}),{componentName:tl,create:nl,scope:rl}=Q("header-bar"),ol=nl(el(tl,rl,Qa)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},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]=(...s)=>e.handleCenter&&e.handleCenter(...s)),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]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),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 br=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=Fe(),s=l?kt(l):null,i=r.computed(()=>{const v=e;return{[v]:!0,[`${v}--${n.align}`]:!0,[`${v}--border`]:n.border,[`${v}--fixed`]:n.fixed,[`${v}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ie(n.height):null,f=r.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&s){const S=Ie(n.padding??s.footerPadding);return Object.assign(v,S),u&&(s.footerHeight=u),v.height=s.footerHeight,v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.height=v.height+v.safeAreaBottom,v.bottom=v.safeAreaBottom+(S.bottom??0)),v}if(u&&(v.height=u),n.padding){const S=Ie(n.padding);Object.assign(v,S)}return v}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!o){const v=gn(c.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&sn(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const b=r.computed(()=>{const v={};return f.value.height!==null&&f.value.height!==void 0&&(v.height=me(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=me(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=me(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=me(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=me(f.value.bottom)),v});return{footerBarRef:c,classes:i,styles:b}}}}const{componentName:ul,create:cl,scope:Qc}=Q("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 wr=Ve(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Fe(),a=r.computed(()=>({[e]:!0})),l=n?kt(n):null,s=r.computed(()=>{const f={};if(n&&l){if(o.padding){const v=Ie(o.padding);Object.assign(l.contentPadding,v)}const c=gt(n,l),d=mt(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 v=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+v}px`}if(l.contentPadding.bottom||d>0){const v=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+v}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=Ie(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}),i=r.ref(null),u=()=>{if(l&&i.value){const f=mn(i.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>gt(n),()=>mt(n)],([])=>{u()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:gl,create:ml,scope:ef}=Q("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 Sr=Ve(pl,[["render",yl]]),et="GroupStateKey",vr=Symbol.for("GroupScopeKey");function Rt(){return r.inject(vr,!1)}function At(e=!0){r.provide(vr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];an(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(et,l),l}function pn(e,t,o=-1,n=-1,a=!1,l,s,i){const u=e.get(et);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),s||(s=f.maxItemWidth??-1);const c=ie(l),d=ie(s);i||(i=f.type??"grid");const b=()=>{const v=t===""||t===-1,S=ie(t);let h=Se(o);const w=ie(n);if(!v){let I=(S-(h-1)*w)/h;for(;d!==-1&&I>d;)h++,I=(S-(h-1)*w)/h;for(;c!==-1&&h>1&&I<c;)h--,I=(S-(h-1)*w)/h}let p=!1;const $=u.layout;$.value.width=t,$.value.column!==h&&($.value.column=h,p=!0),$.value.gutter!==w&&($.value.gutter=w,p=!0),$.value.type!==i&&($.value.type=i,p=!0),p&&r.triggerRef($)};if(a)b();else{const v=++u.passport;setTimeout(()=>{v===u.passport&&b()},50)}}function Dt(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.layout}function Bt(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.order}function $r(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function Ft(e,t,o=1,n=0,a){const l={};let s=0;a?s=ie(a):s=$r(t.column,o),s>0&&(l.width=`${s}%`);const i=$r(t.column,n);i>0&&(l["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function qt(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=Se(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=Se(n)%t.column;let s=(e.index+l)%t.column,i=s+a;return i>t.column?(s=0,i=s+a,e.index=e.index+(t.column-s)+a):e.index=e.index+l+a,l>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Tr=Symbol("RollingStateKey");function Sl(e){r.provide(Tr,e)}function vl(){return r.inject(Tr,null)}function yn(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 $l(e){let t=yn(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=yn(o),document.body.removeChild(o)}return t}function Tl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const xl={...he,...gr,...mr};function El(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=cn(n.name,n,pr),s=wl(l,{type:n.type}),i=Rt();At(!0);const u=n.rollingDisplay?vl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>i&&l?Dt(l,!0).value:null),b=r.getCurrentInstance(),v=O=>{const _=b?.proxy;_&&typeof _.setNameValidateRules=="function"&&_.setNameValidateRules(O,!0)};r.watch(()=>n.rules,(O,_)=>{if(!O&&!_)return;const H=r.toRaw(_),U=r.toRaw(O),Y=U?Reflect.ownKeys(U):[];(H?Reflect.ownKeys(H):[]).forEach(le=>{Y.includes(le)||(U[le]=[])}),v(U)},{deep:!0});const S=e,h=r.computed(()=>{const O={};O.height=L.value;const _=i?Bt(l,!0):null;if(d.value&&_){if(d.value.type==="grid"){const H=qt(_,d.value,n.span,n.offset);Object.assign(O,H)}else if(d.value.type==="flow"){const H=Ft(_,d.value,n.span,n.offset,n.width);Object.assign(O,H)}}else if(n.width){const H=me(n.width);O.width=H}return O}),w=r.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${S}--${O}`]:!0,[`${S}--${O}-justify-${n.justify}`]:!0,[`${S}--${O}-align-${n.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${O}`]:!0,[`${S}--gutter`]:!0}}),p=r.computed(()=>{if(s.layout.value.type==="grid"){let _="";if(n.columnWidth)_=`repeat(auto-fill, ${n.columnWidth})`;else{const H=Tl(C.value,s.layout.value.column,s.layout.value.gutter);_=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":_}}}),$=r.toRef(n,"title"),I=r.toRef(n,"gutter"),F=r.toRef(n,"column"),V=r.computed(()=>i||c.value?!0:re(n.isWrap)),k=[],N=O=>{k.push(O)},A=()=>{let O=k.length;k.splice(0,O)},C=r.ref(-1),D=O=>{const _=mn(O).width;_>0&&_!==C.value&&(C.value=_)};pn(l,C.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([C,F,I],([O,_,H])=>{s.order.index=0,pn(l,O,_,H,!1,n.minItemWidth,n.maxItemWidth,n.type)});const W=r.computed(()=>q.value?n.expandText??"":n.collapseText??""),z=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),T=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),y=r.ref(),E=r.ref(),L=r.computed(()=>B.value||me(n.height)||""),q=r.ref(!1),B=r.ref(""),x=r.ref(!1);let P=-1;const K=(O,_=!0)=>{const H=y.value;if(H&&q.value!==O){if(P=P===-1?$l(H):P,x.value=!0,_)if(H.style["will-change"]="height",H.ontransitionend=function(){H.ontransitionend=null,this.style["will-change"]="auto",O||(B.value="",x.value=!1)},O){let U=0;n.collapseHeight?U=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(U=E.value.offsetHeight),B.value=`${P}px`,r.nextTick(()=>{B.value=`${U}px`})}else B.value=`${P}px`;else if(O){let U=0;n.collapseHeight?U=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(U=E.value.offsetHeight),B.value=`${U}px`}else x.value=!1,B.value=`${P}px`;q.value=O,a.emit("update:collapse",O)}};r.watch(()=>n.collapse,O=>{K(O)});const G=()=>{J()},J=O=>{O=O??!q.value,K(O)};pe({toggleCollapse:J,doLayout:()=>{k[0]&&(D(k[0]),pn(l,C.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let ne=null,ae=!0;const M=O=>{if(n.rules){const _=r.toRaw(n.rules);v(_)}if(Ze&&(O&&K(re(n.collapse),!1),n.autoLayout&&Array.isArray(k)&&k.length>0)){const _=k[0];D(_),window.ResizeObserver&&(ne=new window.ResizeObserver(()=>{D(_)}),ne.observe(_))}},X=()=>{ne?.disconnect(),ne=null},j=!c.value||u?.acquire();j&&(f.value=c.value?!0:null),r.onMounted(()=>{if(j&&(M(ae),ae=!1),c.value&&u){let O=null,_=u.initialHeight;u.observe(y.value,H=>{if(H!==f.value)if(H)f.value=!0,q.value||(B.value=""),O=setTimeout(()=>{O=null,f.value!==!1&&(M(ae),ae=!1)},100);else{if(O!==null&&clearTimeout(O),f.value=!1,!q.value)if(ae)B.value=u.initialHeight;else{let U=yn(y.value);U<=0?B.value=_:(B.value=`${U}px`,_=B.value)}ae||X()}})}}),r.onUnmounted(()=>{ne?.disconnect(),u&&u.unobserve(y.value)});const R=(O,_,H,U)=>{const Y={...w.value};return _===0&&(Y[`${S}__first`]=!0),H>=U-1&&(Y[`${S}__last`]=!0),r.h("div",{ref:N,key:`${_}`,class:Y,style:p.value},O)};return()=>{if(c.value&&f.value!==!0){const Y=n.tag||"div";return r.h(Y,{ref:y,prop:n.name,class:{[`${S}`]:!0,"is-collapse":x.value},style:h.value},[])}s.order.index=0;const O=[];let _=0;if(a.slots.header){const Y={key:`${_++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},Z=r.h("div",Y,[a.slots.header()]);O.push(Z)}else{const Y=[];if($.value){if(n.showMark){const le={class:{[`${S}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const se=r.h("div",le);Y.push(se)}const Z=r.h("div",{class:{[`${S}__header-title`]:!0}},[$.value]);Y.push(Z)}if(a.slots.toolbar&&Y.push(a.slots.toolbar()),n.showCollapse){const Z=[];if(W.value){const fe={class:z.value},Ce=r.h("span",fe,[W.value]);Z.push(Ce)}const le={class:T.value},se=o(n.collapseIcon,le);if(se&&Z.push(se),Z.length>0){const fe=r.h("div",{class:{[`${S}__header-collapse`]:!0},onClick:G},Z);Y.push(fe)}}if(Y.length>0){const Z={key:`${_++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},le=r.h("div",Z,Y);O.push(le)}}A();const H=a.slots.default?a.slots.default():[],U=s.layout.value.type;if(U==="grid"){const Y=R(H,_++,0,H.length);O.push(Y)}else if(U==="flow"){const Y=R(H,_++,0,H.length);O.push(Y)}else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=R([Z],_++,Y,H.length);O.push(le)}if(V.value){const Y=n.tag||"div";return r.h(Y,{ref:y,prop:n.name,class:{[`${S}`]:!0,"is-collapse":x.value},style:h.value},[O])}else return O}}}}const{componentName:Cl,create:Nl,scope:kl}=Q("group"),xr=Nl(El(Cl,kl,(e,t)=>(e=e??De.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Ol=/matrix\((.+)\)/,Er=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,s=0,i=0,u=0;for(a=t;a!==document;){s+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Ol.exec(f);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(i+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=l,n-=s,o+=i,n+=u,{x:o,y:n}};function Il(e){return e===window}const bn=e=>{const t=r.unref(e);if(Il(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 Al{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 Cr=new Al,Nr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Dl,create:Bl}=Q("price"),Fl=Bl({props:{...Nr},setup(e){const t=r.computed(()=>({[Dl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ct(e.price)==0?"":vt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),a=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),l=r.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:a,decimalText:l}}}),ql=["innerHTML"],Ll=["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,ql)):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,Ll)):r.createCommentVNode("",!0)],2)}const wn=Ve(Fl,[["render",Ml]]),{componentName:Lt,create:jl}=Q("hint-text"),_l=jl({components:{Price:wn},props:{...Nr,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),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Lt]:!0})),b=r.ref(null),v=(A,C,D=10)=>{if(!Ze||C===!1||!A)return;l.value=!0;const W=bn(e.reference);u.value=W.width,f.value=W.height,setTimeout(()=>{if(!b.value||!e.reference||e.reference.offsetParent===null)return;const z=Er(e.reference),T=document.documentElement.clientWidth||document.body.clientWidth,y=b.value.offsetWidth,E=b.value.offsetHeight;z.y-E>=0?(c.value="top",s.value.y=z.y-E-10-4,i.value.y=E):(c.value="bottom",s.value.y=z.y+f.value+10,i.value.y=-10);const L=z.x+y-T;L<0?(s.value.x=z.x,i.value.x=20):(s.value.x=z.x-L,i.value.x=L+20),l.value=!1},D)},S=ht(()=>{v(e.message,e.visible)},10),h=r.computed(()=>e.visible&&w.value),w=r.ref(!0),p=ht(A=>{const C=A[0];C&&(w.value=C.isIntersecting)},10),$=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([A,C])=>{v(A,C)}),r.onMounted(()=>{v(e.message,e.visible),Cr.watch(e.reference,S),$.observe(e.reference)}),r.onBeforeMount(()=>{Cr.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const I=r.computed(()=>{const A={"min-width":me(u.value)};return l.value?A.visibility="hidden":A.transform=`translate(${s.value.x}px, ${s.value.y}px)`,A}),F=r.computed(()=>({[`${Lt}__content`]:!0})),V=r.computed(()=>({})),k=r.computed(()=>({[`${Lt}__arrow`]:!0,[`${Lt}__arrow-${e.placement}`]:!0})),N=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:h,tipRef:b,classes:d,styles:I,textClasses:F,textStyles:V,arrowClasses:k,arrowStyles:N}}}),Pl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const s=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(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Pl,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 Mt=Ve(_l,[["render",Hl]]);class kr{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 Sn={},zl=new kr,tt=new Map,vn=e=>{if(e){const t=document.getElementById(e);tt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of tt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}tt.clear()}},Wl=e=>{const t=document.getElementById(e.id);if(t){const o=tt.get(e.id);o?e={...Sn,...o,...e}:e={...Sn,...e};const n=r.createVNode(Mt,e);return r.render(n,t),e.id}},Kl=e=>{e.unmount=vn;let t;if(e.id){if(t=e.id,tt.has(t))return Wl(e)}else t=`hinttext_${zl.get()}`;e={...Sn,...e},e.id=t,tt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(Mt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},jt={show(e,t,o={},n=!0){return n&&vn(),Yl(t),Kl({...o,message:t,reference:e})},hide(e){vn(e)},install(e){e.config.globalProperties.$hintText=jt}},{componentName:Vr,create:Ul}=Q("item"),Gl=Ul({inheritAttrs:!0,props:{...he,...$e},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ge({componentName:Vr,validate:!1},o);const n=Fe(),a=Rt();At(!1);const l=r.computed(()=>a&&n?Dt(n,!1).value:null),s=Vr,i=r.ref(null),u=r.computed(()=>{const M={[s]:!0,[`${s}__gutter`]:l.value&&l.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(M[e.errorMarkClass]=!!W.value,M[e.warnMarkClass]=!!C.value,M[e.infoMarkClass]=!!N.value,typeof i.value=="function"){const X=i.value(o);M[X]=!0}else if(typeof i.value=="string"){const X=i.value;M[X]=!0}return M}),f=r.computed(()=>{const M={},X=a&&n?Bt(n,!1):null;if(l.value&&X)if(l.value.type==="grid"){const j=qt(X,l.value,e.span,e.offset);Object.assign(M,j)}else if(l.value.type==="flow"){const j=Ft(X,l.value,e.span,e.offset,e.width);Object.assign(M,j)}else return e.width&&(M.width=me(e.width)),M;else e.width&&(M.width=me(e.width));return M}),c=r.ref(null),d=r.computed({get:()=>c.value??re(e.isRequired),set:M=>{c.value=M}}),b=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),v=Ee(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),S=r.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),h=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${S.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${S.value}`]:!0})),p=Ee(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),$=r.computed(()=>p&&p.value?{width:me(p.value)}:{}),I=r.computed(()=>({"label--string":!0,"label--required":d.value})),F=r.computed(()=>({content:!0,[e.contentClass]:!0})),V=r.computed(()=>({...e.contentStyle})),k=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(M){d.value=M},setErrorTip(M){k.errorTip=M},setErrorIcon(M){k.errorIcon=M},setWarnTip(M){k.warnTip=M},setWarnIcon(M){k.warnIcon=M},setInfoTip(M){k.infoTip=M},setInfoIcon(M){k.infoIcon=M},setCustomClassName(M){i.value=M}});const N=r.computed(()=>e.infoTip||k.infoTip),A=r.computed(()=>e.infoIcon||k.infoIcon),C=r.computed(()=>e.warnTip||k.warnTip),D=r.computed(()=>e.warnIcon||k.warnIcon),W=r.computed(()=>e.errorTip||k.errorTip),z=r.computed(()=>e.errorIcon||k.errorIcon),T=r.computed(()=>W.value?"error":C.value?"warn":N.value?"info":""),y=r.computed(()=>T.value.length>0),E=r.computed(()=>T.value==="error"?W.value:T.value==="warn"?C.value:T.value==="info"?N.value:""),L=r.computed(()=>T.value==="error"?z.value:T.value==="warn"?D.value:T.value==="info"?A.value:null),q=r.computed(()=>{let M={[`${s}__tip`]:!0,[`${s}__tip--${T.value}`]:!0};return T.value==="error"&&e.errorClass?M[`${e.errorClass}`]=!0:T.value==="warn"&&e.warnClass?M[`${e.warnClass}`]=!0:T.value==="info"&&e.infoClass&&(M[`${e.infoClass}`]=!0),M}),B=r.computed(()=>{let M={};return v&&v.value==="top"||!b.value?M["padding-left"]="0px":p&&p.value&&(M["padding-left"]=me(p.value)),M}),x=()=>r.h(L.value,{width:12,height:12}),P=r.computed(()=>t.slots.fixedTip),K=r.computed(()=>({[`${s}__fixed-tip`]:!0})),G=r.ref();let J="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([M,X,j,R])=>{G.value&&(M&&!ce(X)?J?jt.show(G.value,X,{...R,id:J,type:j},!0):J=jt.show(G.value,X,{...R,type:j},!0):jt.hide(J))});let te=null;const ne=()=>{te||!G.value||(te=new IntersectionObserver(M=>{let X=!1;for(let j of M)if(j.intersectionRatio>0){X=!0,X&&t.emit("appear",j);break}X||t.emit("disappear")}),te.observe(G.value))},ae=()=>{!te||!G.value||(te.unobserve(G.value),te=null)};return r.watch(()=>re(e.appearListen),M=>{M?ne():ae()}),r.onMounted(()=>{re(e.appearListen)&&ne()}),r.onUnmounted(ae),{classes:u,styles:f,mainClasses:h,hasLabel:b,labelClasses:w,labelStyles:$,labelStringClasses:I,contentClasses:F,contentStyles:V,contentRef:G,hasTip:y,mTip:E,mIcon:L,renderIcon:x,tipClasses:q,tipStyles:B,hasFixedTip:P,fixedTipClasses:K}}}),Xl=["prop"],Zl={key:0,class:"fox-item__tip--icon"},Jl={class:"fox-item__tip--text"};function Ql(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.createElementBlock("div",Zl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Jl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Xl)}const ye=Ve(Gl,[["render",Ql]]);function ei(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=Fe(),l=Rt();At(!1);const s=r.computed(()=>l&&a?Dt(a,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Bt(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const b=qt(d,s.value,o.span,o.offset);Object.assign(c,b)}else if(s.value.type==="flow"){const b=Ft(d,s.value,o.span,o.offset,o.width);Object.assign(c,b)}else return o.width&&(c.width=me(o.width)),c;else o.width&&(c.width=me(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:ti,create:ni,scope:nf}=Q("slot-item"),Or=ni(ei(ti));function ri(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Fe(),i=Rt();At(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Dt(s,!1),d=Bt(s,!1);if(c.value&&d)if(c.value.type==="grid"){const b=qt(d,c.value,o.span,o.offset);Object.assign(f,b)}else if(c.value.type==="flow"){const b=Ft(d,c.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=me(o.width))}else o.width&&(f.width=me(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 v=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(v)}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:oi,create:ai,scope:rf}=Q("row-item"),Ir=ai(ri(oi)),Rr={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 li(e,t,o){return{props:{...he,...$e,...Rr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0,[`${b}__disabled`]:l.value,[`${b}__readonly`]:s.value})),S=T=>{d.value=T,i("update:modelValue",T),i("input",T)},h=T=>{i("change",T)};let w=oe(n,"hintText"),p=r.ref(!1);const $=T=>{let E=T.target.value;c.value=!0,ce(w.value)||(p.value=!0),i("focus",E,T)},I=T=>{setTimeout(()=>{p.value&&(p.value=!1),c.value=!1},0);let E=T.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,T)},F=()=>{i("clear","")},V=r.ref(!1);let k=null;const N=()=>{n.showTooltip&&V.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{V.value=!0},150))},A=()=>{k&&(clearTimeout(k),V.value=!1,k=null)},C=r.computed(()=>V.value||p.value),D=r.computed(()=>V.value?d.value:w.value),W=r.computed(()=>ct(n.unit)>0),z=r.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:h,onInput:S,onFocus:$,onBlur:I,onMouseover:N,onMouseleave:A},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:W.value&&(E.suffix=()=>[n.unit]);const L=[],q=r.h(m.ElInput,y,E);L.push(q);const B={default:()=>L};a.slots.default&&(B.label=a.slots.default),a.slots.default&&(B.fixedTip=a.slots.fixedTip);const P={...ve(n,Rr),hintText:D.value,hintVisible:C.value,prop:`${n.prop}_item`};return r.h(o,P,B)}}}}const{componentName:ii,create:si,scope:ui}=Q("input-item"),Ar=si(li(ii,ui,ye));function He(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function pt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Dr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ci(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let fi=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=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function di(){const e=r.getCurrentInstance();return new fi(e.proxy)}function Br(e,t,o){const n=He(e,t),a=He(e,o);if(n!==a)return!1;const l=pt(e,t),s=pt(e,o);return l===s}function Fr(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 s of n){const i=Dr(e,s);if(Array.isArray(i)&&i.length>0){const u=Fr(e,l,o,i)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=He(e,s)===l;else if(o==="item")u=Br(e,s,l);else{let f=pt(e,s);f==null&&(f=He(e,s)),u=f===l}if(u){a.push(s);break}}}}),a}function hi(e){return{text:e,value:e}}const qr={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 gi(e,t,o){return{props:{...he,...$e,...qr},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(R=>He(n,R)).join(" "):""),v=(j,R,O,_=!0)=>{const H=Fr(n,j,R,O);if(H===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],_&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let U=!0;if(H.length!==d.value.length)U=!1;else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=d.value[Y];if(!Br(n,Z,le)){U=!1;break}}if(!U){d.value=H;let Y=[],Z=[],le=[];H.forEach(Xe=>{const lt=pt(n,Xe),it=He(n,Xe);Y.push(lt),le.push(it),n.valueType==="text"?Z.push(it):n.valueType==="item"?Z.push(Xe):Z.push(lt)});let se,fe,Ce;n.multiple?(c.value=Y,se=r.toRaw(Z),fe=le,Ce=r.toRaw(H)):(c.value=Y[0]??"",se=r.toRaw(Z[0]??""),fe=le[0]??"",Ce=r.toRaw(H[0])),_&&(i("update:modelValue",se),i("change",se,Ce)),i("update:text",fe)}},S=r.ref(null),h=r.ref(null),w=r.computed(()=>h.value??S.value??[]),p=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,j=>re(j)),$=di(),I=async(j,R)=>{if(j){const O=await $.load("select",j,R);if(O.length>0)if(typeof O[0]=="string"){let U=O.map(Y=>hi(Y));S.value=U}else S.value=O;else S.value=null}};r.watch([()=>n.source,()=>n.params],([j,R])=>{I(j,R)},{immediate:!p.value});let F=!1;const V=()=>{F||(F=!0,I(n.source,n.params))};r.watch([()=>w.value,()=>n.modelValue],([j,R])=>{v(R,n.valueType,j,!1)});let k=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(k=async j=>{if(j==null){h.value=null;return}N.value=!0;try{const R=await n.remoteMethod(j);R&&(h.value=R)}catch(R){h.value=null,console.error(R)}N.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async j=>{if(j==null){h.value=null;return}N.value=!0;try{const R=await n.filterMethod(j,S.value);R&&(h.value=R)}catch(R){h.value=null,console.error(R)}N.value=!1});const C=r.ref(!1),D=e,W=r.computed(()=>({[D]:!0})),z=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),i("update:text",j),c.value=j):v(j,"value",w.value,!0)};let T=oe(n,"hintText"),y=r.ref(!1);const E=j=>{let O=j.target.value;C.value=!0,ce(T.value)||(y.value=!0),i("focus",O,j)},L=j=>{setTimeout(()=>{y.value&&(y.value=!1),C.value=!1},0);let O=j.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),te.value||i("blur",O,j)},q=()=>{i("clear","")},B=r.ref(!1);let x=null;const P=()=>{n.showTooltip&&B.value===!1&&(x&&clearTimeout(x),x=setTimeout(()=>{B.value=!0},150))},K=()=>{x&&(clearTimeout(x),B.value=!1,x=null)},G=r.computed(()=>B.value||y.value),J=r.computed(()=>B.value?b.value:T.value),te=r.ref(!1),ne=j=>{te.value=j,i("visible-change",j),j||i("selected")},ae=j=>{i("remove-tag",j)},M=(j,R)=>{const O=[];return j.forEach((_,H)=>{const U=Dr(n,_);if(Array.isArray(U)&&U.length>0){const Y=M(U,R),Z=He(n,_),se={key:`${Z}_${H}`,label:Z};O.push(r.h(m.ElOptionGroup,se,{default:()=>Y}))}else{const Y=pt(n,_),Z=He(n,_),le=ci(n,_),fe={key:`${Y}_${H}`,label:Z,disabled:le,value:Y};if(typeof R=="function")O.push(r.h(m.ElOption,fe,{default:()=>R(_)}));else if(n.optionType==="item"){const Ce={class:{"fox-select-item__option-left":!0}},Xe=r.h("span",Ce,[Y]),lt={class:{"fox-select-item__option-right":!0}},it=r.h("span",lt,[Z]),Rn=r.h("div",{class:{"fox-select-item__option":!0}},[Xe,it]);O.push(r.h(m.ElOption,fe,{default:()=>Rn}))}else n.optionType==="value"?O.push(r.h(m.ElOption,fe,{default:()=>[Y]})):O.push(r.h(m.ElOption,fe))}}),O},X=r.ref();return pe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()}}),()=>{const R={...a.attrs,ref:X,class:W.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:q,onChange:z,onFocus:E,onBlur:L,onVisibleChange:ne,onRemoveTag:ae};typeof k=="function"&&(R["remote-method"]=k,R.loading=N.value),typeof A=="function"&&(R["filter-method"]=A,R.loading=N.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),a.slots.options?O.default=a.slots.options:O.default=()=>M(w.value,a.slots.option);const _=[],H=r.h(m.ElSelect,R,O);_.push(H);const U={default:()=>_};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const Z={...ve(n,qr),hintText:J.value,hintVisible:G.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:P,onMouseleave:K};return p.value&&(Z["appear-listen"]=!0,Z.onAppear=V),r.h(o,Z,U)}}}}const{componentName:mi,create:pi,scope:yi}=Q("select-item"),Lr=pi(gi(mi,yi,ye));var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",b="quarter",v="year",S="date",h="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},I=function(T,y,E){var L=String(T);return!L||L.length>=y?T:""+Array(y+1-L.length).join(E)+T},F={s:I,z:function(T){var y=-T.utcOffset(),E=Math.abs(y),L=Math.floor(E/60),q=E%60;return(y<=0?"+":"-")+I(L,2,"0")+":"+I(q,2,"0")},m:function T(y,E){if(y.date()<E.date())return-T(E,y);var L=12*(E.year()-y.year())+(E.month()-y.month()),q=y.clone().add(L,d),B=E-q<0,x=y.clone().add(L+(B?-1:1),d);return+(-(L+(E-q)/(B?q-x:x-q))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:d,y:v,w:c,d:f,D:S,h:u,m:i,s,ms:l,Q:b}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},V="en",k={};k[V]=$;var N=function(T){return T instanceof W},A=function T(y,E,L){var q;if(!y)return V;if(typeof y=="string"){var B=y.toLowerCase();k[B]&&(q=B),E&&(k[B]=E,q=B);var x=y.split("-");if(!q&&x.length>1)return T(x[0])}else{var P=y.name;k[P]=y,q=P}return!L&&q&&(V=q),q||!L&&V},C=function(T,y){if(N(T))return T.clone();var E=typeof y=="object"?y:{};return E.date=T,E.args=arguments,new W(E)},D=F;D.l=A,D.i=N,D.w=function(T,y){return C(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var W=function(){function T(E){this.$L=A(E.locale,null,!0),this.parse(E)}var y=T.prototype;return y.parse=function(E){this.$d=function(L){var q=L.date,B=L.utc;if(q===null)return new Date(NaN);if(D.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var x=q.match(w);if(x){var P=x[2]-1||0,K=(x[7]||"0").substring(0,3);return B?new Date(Date.UTC(x[1],P,x[3]||1,x[4]||0,x[5]||0,x[6]||0,K)):new Date(x[1],P,x[3]||1,x[4]||0,x[5]||0,x[6]||0,K)}}return new Date(q)}(E),this.$x=E.x||{},this.init()},y.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},y.$utils=function(){return D},y.isValid=function(){return this.$d.toString()!==h},y.isSame=function(E,L){var q=C(E);return this.startOf(L)<=q&&q<=this.endOf(L)},y.isAfter=function(E,L){return C(E)<this.startOf(L)},y.isBefore=function(E,L){return this.endOf(L)<C(E)},y.$g=function(E,L,q){return D.u(E)?this[L]:this.set(q,E)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(E,L){var q=this,B=!!D.u(L)||L,x=D.p(E),P=function(X,j){var R=D.w(q.$u?Date.UTC(q.$y,j,X):new Date(q.$y,j,X),q);return B?R:R.endOf(f)},K=function(X,j){return D.w(q.toDate()[X].apply(q.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(j)),q)},G=this.$W,J=this.$M,te=this.$D,ne="set"+(this.$u?"UTC":"");switch(x){case v:return B?P(1,0):P(31,11);case d:return B?P(1,J):P(0,J+1);case c:var ae=this.$locale().weekStart||0,M=(G<ae?G+7:G)-ae;return P(B?te-M:te+(6-M),J);case f:case S:return K(ne+"Hours",0);case u:return K(ne+"Minutes",1);case i:return K(ne+"Seconds",2);case s:return K(ne+"Milliseconds",3);default:return this.clone()}},y.endOf=function(E){return this.startOf(E,!1)},y.$set=function(E,L){var q,B=D.p(E),x="set"+(this.$u?"UTC":""),P=(q={},q[f]=x+"Date",q[S]=x+"Date",q[d]=x+"Month",q[v]=x+"FullYear",q[u]=x+"Hours",q[i]=x+"Minutes",q[s]=x+"Seconds",q[l]=x+"Milliseconds",q)[B],K=B===f?this.$D+(L-this.$W):L;if(B===d||B===v){var G=this.clone().set(S,1);G.$d[P](K),G.init(),this.$d=G.set(S,Math.min(this.$D,G.daysInMonth())).$d}else P&&this.$d[P](K);return this.init(),this},y.set=function(E,L){return this.clone().$set(E,L)},y.get=function(E){return this[D.p(E)]()},y.add=function(E,L){var q,B=this;E=Number(E);var x=D.p(L),P=function(J){var te=C(B);return D.w(te.date(te.date()+Math.round(J*E)),B)};if(x===d)return this.set(d,this.$M+E);if(x===v)return this.set(v,this.$y+E);if(x===f)return P(1);if(x===c)return P(7);var K=(q={},q[i]=n,q[u]=a,q[s]=o,q)[x]||1,G=this.$d.getTime()+E*K;return D.w(G,this)},y.subtract=function(E,L){return this.add(-1*E,L)},y.format=function(E){var L=this,q=this.$locale();if(!this.isValid())return q.invalidDate||h;var B=E||"YYYY-MM-DDTHH:mm:ssZ",x=D.z(this),P=this.$H,K=this.$m,G=this.$M,J=q.weekdays,te=q.months,ne=function(j,R,O,_){return j&&(j[R]||j(L,B))||O[R].slice(0,_)},ae=function(j){return D.s(P%12||12,j,"0")},M=q.meridiem||function(j,R,O){var _=j<12?"AM":"PM";return O?_.toLowerCase():_},X={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:D.s(G+1,2,"0"),MMM:ne(q.monthsShort,G,te,3),MMMM:ne(te,G),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:ne(q.weekdaysMin,this.$W,J,2),ddd:ne(q.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(P),HH:D.s(P,2,"0"),h:ae(1),hh:ae(2),a:M(P,K,!0),A:M(P,K,!1),m:String(K),mm:D.s(K,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:x};return B.replace(p,function(j,R){return R||X[j]||x.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(E,L,q){var B,x=D.p(L),P=C(E),K=(P.utcOffset()-this.utcOffset())*n,G=this-P,J=D.m(this,P);return J=(B={},B[v]=J/12,B[d]=J,B[b]=J/3,B[c]=(G-K)/6048e5,B[f]=(G-K)/864e5,B[u]=G/a,B[i]=G/n,B[s]=G/o,B)[x]||G,q?J:D.a(J)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return k[this.$L]},y.locale=function(E,L){if(!E)return this.$L;var q=this.clone(),B=A(E,L,!0);return B&&(q.$L=B),q},y.clone=function(){return D.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},T}(),z=W.prototype;return C.prototype=z,[["$ms",l],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",v],["$D",S]].forEach(function(T){z[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),C.extend=function(T,y){return T.$i||(T(y,W,C),T.$i=!0),C},C.locale=A,C.isDayjs=N,C.unix=function(T){return C(1e3*T)},C.en=k[V],C.Ls=k,C.p={},C})})(Mr);var bi=Mr.exports;const Ae=Le(bi);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(w){this[h]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var p=w.match(/([+-]|\d\d)/g),$=60*p[1]+(+p[2]||0);return $===0?0:p[0]==="+"?-$:$}(h)}],d=function(h){var w=i[h];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(h,w){var p,$=i.meridiem;if($){for(var I=1;I<=24;I+=1)if(h.indexOf($(I,0,w))>-1){p=I>12;break}}else p=h===(w?"pm":"PM");return p},v={A:[s,function(h){this.afternoon=b(h,!1)}],a:[s,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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:[s,function(h){var w=i.ordinal,p=h.match(/\d+/);if(this.day=p[0],w)for(var $=1;$<=31;$+=1)w($).replace(/\[|\]/g,"")===h&&(this.day=$)}],M:[l,f("month")],MM:[a,f("month")],MMM:[s,function(h){var w=d("months"),p=(d("monthsShort")||w.map(function($){return $.slice(0,3)})).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(h){var w=d("months").indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function S(h){var w,p;w=h,p=i&&i.formats;for(var $=(h=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,D,W){var z=W&&W.toUpperCase();return D||p[W]||o[W]||p[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,y,E){return y||E.slice(1)})})).match(n),I=$.length,F=0;F<I;F+=1){var V=$[F],k=v[V],N=k&&k[0],A=k&&k[1];$[F]=A?{regex:N,parser:A}:V.replace(/^\[|\]$/g,"")}return function(C){for(var D={},W=0,z=0;W<I;W+=1){var T=$[W];if(typeof T=="string")z+=T.length;else{var y=T.regex,E=T.parser,L=C.slice(z),q=y.exec(L)[0];E.call(D,q),C=C.replace(q,"")}}return function(B){var x=B.afternoon;if(x!==void 0){var P=B.hours;x?P<12&&(B.hours+=12):P===12&&(B.hours=0),delete B.afternoon}}(D),D}}return function(h,w,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var $=w.prototype,I=$.parse;$.parse=function(F){var V=F.date,k=F.utc,N=F.args;this.$u=k;var A=N[1];if(typeof A=="string"){var C=N[2]===!0,D=N[3]===!0,W=C||D,z=N[2];D&&(z=N[2]),i=this.$locale(),!C&&z&&(i=p.Ls[z]),this.$d=function(L,q,B){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*L);var x=S(q)(L),P=x.year,K=x.month,G=x.day,J=x.hours,te=x.minutes,ne=x.seconds,ae=x.milliseconds,M=x.zone,X=new Date,j=G||(P||K?1:X.getDate()),R=P||X.getFullYear(),O=0;P&&!K||(O=K>0?K-1:X.getMonth());var _=J||0,H=te||0,U=ne||0,Y=ae||0;return M?new Date(Date.UTC(R,O,j,_,H,U,Y+60*M.offset*1e3)):B?new Date(Date.UTC(R,O,j,_,H,U,Y)):new Date(R,O,j,_,H,U,Y)}catch{return new Date("")}}(V,A,k),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),W&&V!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var T=A.length,y=1;y<=T;y+=1){N[1]=A[y-1];var E=p.apply(this,N);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}y===T&&(this.$d=new Date(""))}else I.call(this,F)}}})})(jr);var wi=jr.exports;const Si=Le(wi);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=l.format;a.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(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 s.bind(this)(d)}}})})(_r);var vi=_r.exports;const $i=Le(vi);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,b,v,S,h){var w=d.name?d:d.$locale(),p=s(w[b]),$=s(w[v]),I=p||$.map(function(V){return V.slice(0,S)});if(!h)return I;var F=w.weekStart;return I.map(function(V,k){return I[(k+(F||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,h,w){return h||w.slice(1)})}(d.formats[b.toUpperCase()])},c=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):i(d,"months")},monthsShort:function(b){return b?b.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):i(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):i(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 i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(d){return i(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(Pr);var Ti=Pr.exports;const xi=Le(Ti);var Hr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o="week",n="year";return function(a,l,s){var i=l.prototype;i.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=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(o);if(c.isBefore(d))return 1}var b=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),v=this.diff(b,o,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Hr);var Ei=Hr.exports;const Ci=Le(Ei);var zr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),s=this.year();return l===1&&a===11?s+1:a===0&&l>=52?s-1:s}}})})(zr);var Ni=zr.exports;const ki=Le(Ni);var Wr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(Wr);var Vi=Wr.exports;const Oi=Le(Vi);var Kr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Kr);var Ii=Kr.exports;const Ri=Le(Ii);var Yr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(Yr);var Ai=Yr.exports;const Di=Le(Ai);Ae.extend(xi),Ae.extend($i),Ae.extend(Si),Ae.extend(Ci),Ae.extend(ki),Ae.extend(Oi),Ae.extend(Ri),Ae.extend(Di);const yt={format(e,t){return Ae(e).format(t)},parser(e,t){return Ae(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(),s=a.getDate(),i=6-l;return n!==0&&(l=l==0?7:l,i=7-l),Math.ceil((s+i)/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),s=Math.round((a.valueOf()-l.valueOf())/864e5);let i=a.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 a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let s=a.getDay();if(n===0){const u=l-s*864e5,f=l+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=l-(s-1)*i,f=l+(7-s)*i,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]=yt.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=yt.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(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s}},Ur={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Gr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Bi(e,t,o){return{props:{...he,...$e,...Ur,...Gr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[`${b}__input`]:!0})),S=y=>{d.value=y,i("update:modelValue",y),i("change",y)};let h=oe(n,"hintText"),w=r.ref(!1);const p=y=>{let L=y.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",L,y)},$=y=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let L=y.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,y)},I=()=>{i("clear","")},F=y=>{i("calendar-change",y)},V=(y,E,L)=>{i("panel-change",y,E,L)},k=y=>{i("visible-change",y)},N=Ee(r.computed(()=>n.longTermValue),"longTermText",ke.Near),A=Ee(r.computed(()=>n.longTermValue),"longTermValue",ke.Near);let C=null;const D=r.ref(re(n.longTerm)),W=y=>{if(D.value=y,i("update:longTerm",y),y){let E="";Array.isArray(A.value)?E=A.value.map((L,q)=>L||(Array.isArray(d.value)?d.value[q]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else i("update:modelValue",C)},z=re(n.isLongTerm);if(z){const y=()=>{if(D.value===!0){let E="";Array.isArray(A.value)?E=A.value.map((L,q)=>L||(Array.isArray(d.value)?d.value[q]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else _e(A.value,d.value)&&(D.value=!0)};y(),r.watch([()=>n.longTerm],([E])=>{D.value!==E&&y()})}const T=r.ref();return pe({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},handleOpen:()=>{T?.value.handleOpen()},handleClose:()=>{T?.value.handleClose()}}),()=>{const E={...a.attrs,ref:T,class:v.value,placeholder:f.placeholder.value,disabled:l.value||D.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$,onCalendarChange:F,onPanelChange:V,onVisibleChange:k},L={};a.slots["range-separator"]&&(L["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(L.default=a.slots.cell);const q=[],B=r.h(m.ElDatePicker,E,L);q.push(B);const x={default:()=>q};if(a.slots.default&&(x.label=a.slots.default),a.slots.fixedTip&&(x.fixedTip=a.slots.fixedTip),z){const J={label:N.value,disabled:s.value||l.value,modelValue:D.value,"onUpdate:modelValue":W},te=r.h(m.ElCheckbox,J),ne=r.h("div",{class:{[`${b}__append`]:!0}},[te]);x.append=()=>ne}const K={...ve(n,Ur,Gr),class:{[`${b}__wrapper`]:!0,"has-append":z},hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,K,x)}}}}const{componentName:Fi,create:qi,scope:Li}=Q("date-item"),Xr=qi(Bi(Fi,Li,ye)),Zr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...he,...$e,...Zr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=k=>{d.value=k,i("update:modelValue",k),i("change",k)};let h=oe(n,"hintText"),w=r.ref(!1);const p=k=>{let A=k.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",A,k)},$=k=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let A=k.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,k)},I=()=>{i("clear","")},F=k=>{i("visible-change",k)},V=r.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const N={...a.attrs,ref:V,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$,onVisibleChange:F},A={},C=[],D=r.h(m.ElTimePicker,N,A);C.push(D);const W={default:()=>C};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const T={...ve(n,Zr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,T,W)}}}}const{componentName:ji,create:_i,scope:Pi}=Q("time-item"),Jr=_i(Mi(ji,Pi,ye)),Qr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hi(e,t,o){return{props:{...he,...$e,...Qr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=V=>{d.value=V,i("update:modelValue",V),i("change",V)};let h=oe(n,"hintText"),w=r.ref(!1);const p=V=>{let N=V.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",N,V)},$=V=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let N=V.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,V)},I=()=>{i("clear","")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const k={...a.attrs,ref:F,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$},N={},A=[],C=r.h(m.ElTimeSelect,k,N);A.push(C);const D={default:()=>A};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const z={...ve(n,Qr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,z,D)}}}}const{componentName:zi,create:Wi,scope:Ki}=Q("time-select-item"),eo=Wi(Hi(zi,Ki,ye));function to(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 no(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ln(`${e}`,`${t}`);return to(n)}else{let n=Qt(`${e}`,Mn(`${t}`),20);return to(n)}}function Yi(e,t=-1,o=!1,n=3,a=","){return vt(e,t,o,n,a)}function ro(e,t,o,n,a=!0){if(e=="")return"";if(e=jn(e),t=Se(t),t==1)return e;if(n)e=no(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(Se(o)+2,"0"):e=Qt(e,1,Se(o)));else{let l=-1*t;e=no(e,l)}return e}function oo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),a=en(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=re(t.maxInclude),a=en(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ao={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 Ui(e,t,o){return{props:{...he,...$e,...ao},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(!1),f=oe(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([T,y,E])=>{if(ce(T)){c.value="";return}const L=ro(T,y,E,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let T="";return u.value&&(T=c.value),T}),{t:b}=Oe.useFoxI18n(t),v=r.computed(()=>{let T=n.placeholder??"";return!u.value&&!ce(c.value)?T=Yi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):T=b(["placeholder",T]),T}),S=e,h=r.computed(()=>({[S]:!0,[`${S}__disabled`]:l.value,[`${S}__placeholder`]:c.value.length>0})),w=Ee(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const p=r.ref(""),$=r.computed(()=>{let T=p.value;return ce(T)&&(T=n.errorTip??""),T}),I=r.ref(""),F=r.ref(!1),V=(T,y)=>{if(T=`${T}`,ce(T)){c.value="",f.value="",y.forEach(E=>{i(E,"")}),re(n.showTip)&&F.value&&(F.value=!1);return}if(T.length>=2){let E=T;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){r.triggerRef(c);return}}if(T!="-"){if(!Gn(T)){r.triggerRef(c);return}if(n.integerLength!=-1&&Xn(T)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Zn(T)>Number(n.decimalLength)){r.triggerRef(c);return}let E=oo(T,n);if(E.maxValid===!1){p.value=E.message,r.triggerRef(c);return}}else if(n.min!=null&&Se(n.min)>=0){r.triggerRef(c);return}I.value=T,re(n.showTip)&&(F.value=T.length>0),c.value=T,f.value=ro(T,n.rates,n.precision,!0),y.forEach(E=>{i(E,f.value)})},k=T=>{V(T,["update:modelValue","input"])},N=T=>{V(T,["update:modelValue","change"])},A=T=>{if(u.value=!0,re(n.showTip)){let y=c.value;ce(y)&&(y=n.hintText),ce(y)||(I.value=y,F.value=!0)}p.value="",i("focus",f.value,T)},C=T=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&F.value===!0&&(F.value=!1)},0),!ce(c.value)){let y=oo(c.value,n);if(y.minValid===!1||y.maxValid===!1){p.value=y.message;return}}i("update:modelValue",f.value,T),i("blur",f.value,T)},D=()=>{i("clear","")},W=r.computed(()=>ct(n.unit)>0),z=r.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:v.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onInput:k,onChange:N,onFocus:A,onBlur:C},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:W.value&&(E.suffix=()=>[n.unit]);const L=[],q=r.h(m.ElInput,y,E);L.push(q);const B={default:()=>L};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const P={...ve(n,ao),errorTip:$.value,hintText:I.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,P,B)}}}}const{componentName:Gi,create:Xi,scope:Zi}=Q("money-item"),lo=Xi(Ui(Gi,Zi,ye)),io={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 Ji(e,t,o){return{props:{...he,...$e,...io},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0,[`${b}__append`]:k.value})),S=r.computed(()=>({[`${b}__unit`]:!0})),h=A=>{d.value=A,i("update:modelValue",A),i("input",A)},w=A=>{i("change",A)};let p=oe(n,"hintText"),$=r.ref(!1);const I=A=>{let D=A.target.value;c.value=!0,ce(p.value)||($.value=!0),i("focus",D,A)},F=A=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let D=A.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),i("blur",D,A)},V=()=>{i("clear","")},k=r.computed(()=>ct(n.unit)>0),N=r.ref();return pe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()}}),()=>{const C={...a.attrs,ref:N,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:w,onInput:h,onFocus:I,onBlur:F},D={},W=[],z=r.h(m.ElInputNumber,C,D);W.push(z);const T={default:()=>W};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const E={...ve(n,io),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};if(a.slots.append)T.append=a.slots.append;else if(k.value){const q={class:S.value},B=r.h("div",q,[n.unit]);T.append=()=>B}return r.h(o,E,T)}}}}const{componentName:Qi,create:es,scope:ts}=Q("input-number-item"),so=es(Ji(Qi,ts,ye));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ns(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Re(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function os(){const e=r.getCurrentInstance();return new rs(e.proxy)}function $n(e,t,o){const n=Ue(e,t),a=Ue(e,o);if(n!==a)return!1;const l=Ge(e,t),s=Ge(e,o);return l===s}function uo(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 s=0;Array.isArray(l)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=uo(e,i,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ue(e,f)===i;else if(o==="item")u=$n(e,f,i);else{let c=Ge(e,f);c==null&&(c=Ue(e,f)),u=c===i}if(u){a.push(f),l=ns(e,f);break}}if(!u)break}}return a}function as(e){return{text:e,value:e}}const co={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 ls(e,t,o){return{props:{...he,...$e,...co},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(X=>Ue(n,X)).join(" "):""),v=(M,X,j,R=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===M)return;c.value=M;const H=r.toRaw(M);if(R){const U=ae?.value.getCheckedNodes();if(U)if(n.multiple){const Y=[];U.forEach(Z=>{const se=(Z.pathNodes??[]).map(fe=>fe.data);Y.push(se)}),i("update:pathNodes",Y)}else{const Z=(U[0]?.pathNodes??[]).map(le=>le.data);i("update:pathNodes",Z)}i("update:modelValue",H),i("change",H)}}const O=uo(n,M,X,j);if(O===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,R&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let _=!0;if(O.length!==d.value.length)_=!1;else for(let H=0;H<O.length;H++){const U=O[H],Y=d.value[H];if(Array.isArray(U)){if(!Array.isArray(Y)||U.length!==Y.length)_=!1;else for(let Z=0;Z<U.length;Z++)if(!$n(n,U[Z],Y[Z])){_=!1;break}}else $n(n,U,Y)||(_=!1);if(!_)break}if(!_){d.value=O;let H=[],U=[];O.forEach(Z=>{if(Array.isArray(Z)){let le=[],se=[];for(let fe of Z)le.push(Ge(n,fe)),n.valueType==="text"?se.push(Ue(n,fe)):n.valueType==="item"?se.push(fe):se.push(Ge(n,fe));H.push(le),U.push(se)}else H.push(Ge(n,Z)),n.valueType==="text"?U.push(Ue(n,Z)):n.valueType==="item"?U.push(Z):U.push(Ge(n,Z))}),c.value=H;const Y=r.toRaw(U);R&&(i("update:pathNodes",O),i("update:modelValue",Y),i("change",Y))}},S=r.ref([]),h=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,M=>re(M)),w=os(),p=async(M,X)=>{if(M){const j=await w.load("cascader",M,X);if(j.length>0)if(typeof j[0]=="string"){let _=j.map(H=>as(H));S.value=_}else S.value=j}};r.watch([()=>n.source,()=>n.params],async([M,X])=>{p(M,X)},{immediate:!(h.value||n.lazy)});let $=!1;const I=()=>{$||($=!0,p(n.source,n.params))};r.watch([()=>S.value,()=>n.modelValue],([M,X])=>{v(X,n.valueType,M,!1)}),n.lazy&&v(n.modelValue,"value",[],!1);let F=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async M=>{if(M!=null){V.value=!0;try{const X=await n.remoteMethod(M);S.value=X}catch(X){console.error(X)}V.value=!1}});const k=r.ref(!1),N=e,A=r.computed(()=>({[N]:!0})),C=r.computed(()=>{let M={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(M.multiple=!0),n.props&&Object.assign(M,n.props),n.lazy&&(M.lazy=!0,M.lazyLoad=async(X,j)=>{const R=await w.load("cascader",n.source,X,!0);j(R)}),M}),D=M=>{n.allowCreate?(i("update:modelValue",M),i("change",M),c.value=M):v(M,"value",S.value,!0)};let W=oe(n,"hintText"),z=r.ref(!1);const T=M=>{let j=M.target.value;k.value=!0,ce(W.value)||(z.value=!0),i("focus",j,M)},y=M=>{setTimeout(()=>{z.value&&(z.value=!1),k.value=!1},0);let j=M.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),G.value||i("blur",j,M)},E=()=>{i("clear","")},L=r.ref(!1);let q=null;const B=()=>{n.showTooltip&&L.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{L.value=!0},150))},x=()=>{q&&(clearTimeout(q),L.value=!1,q=null)},P=r.computed(()=>L.value||z.value),K=r.computed(()=>L.value?b.value:W.value),G=r.ref(!1),J=M=>{G.value=M,i("visible-change",M),M||i("selected")},te=M=>{i("remove-tag",M)},ne=M=>{i("expand-change",M)},ae=r.ref();return pe({focus:()=>{ae?.value.focus()},blur:()=>{ae?.value.blur()},getCheckedNodes:()=>ae?.value.getCheckedNodes()}),()=>{const X={...a.attrs,ref:ae,class:A.value,props:C.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||s.value,options:S.value,modelValue:c.value,onClear:E,onChange:D,onFocus:T,onBlur:y,onVisibleChange:J,onRemoveTag:te,expandChange:ne};typeof F=="function"&&(X["remote-method"]=F,X.loading=V.value);const j={};a.slots.option&&(j.default=a.slots.option),a.slots.empty&&(j.empty=a.slots.empty);const R=[],O=r.h(m.ElCascader,X,j);R.push(O);const _={default:()=>R};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const U={...ve(n,co),hintText:K.value,hintVisible:P.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:B,onMouseleave:x};return h.value&&!n.lazy&&(U["appear-listen"]=!0,U.onAppear=I),r.h(o,U,_)}}}}const{componentName:is,create:ss,scope:us}=Q("cascader-item"),fo=ss(ls(is,us,ye)),ho={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function cs(e,t,o){return{props:{...he,...$e,...ho},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=N=>{d.value=N,i("update:modelValue",N),i("input",N)},h=N=>{i("change",N)},w=N=>{i("select",N)};let p=oe(n,"hintText"),$=r.ref(!1);const I=N=>{let C=N.target.value;c.value=!0,ce(p.value)||($.value=!0),i("focus",C,N)},F=N=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let C=N.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),i("blur",C,N)},V=()=>{i("clear","")},k=r.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const A={...a.attrs,ref:k,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,onClear:V,onChange:h,onInput:S,onFocus:I,onBlur:F,onSelect:w},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix&&(C.suffix=a.slots.suffix),a.slots.option&&(C.default=a.slots.option);const D=[],W=r.h(m.ElAutocomplete,A,C);D.push(W);const z={default:()=>D};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,ho),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(o,y,z)}}}}const{componentName:fs,create:ds,scope:hs}=Q("autocomplete-item"),go=ds(cs(fs,hs,ye));function gs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const s=[],i=t[0];if(Array.isArray(i))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;s.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;s.push(d[o]),u=d[a]}}return s}let ms=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=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ps(){const e=r.getCurrentInstance();return new ms(e.proxy)}const mo={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 ys(e,t){return{props:{...mo},setup(o,{attrs:n,slots:a}){const l=ps(),s=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await l.load(o.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=gs(o.modelValue,s.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:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:of,create:bs,scope:af}=Q("mapping"),_t=bs(ys());function ws(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ss(e,t){return{props:{...mo},setup(o,{attrs:n,slots:a}){return()=>{const l={default:s=>{const i=ws(s.row,s.column.property);return a.default?r.h(_t,{...o,modelValue:i},{default:a.default}):r.h(_t,{...o,modelValue:i})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:lf,create:vs,scope:sf}=Q("table-mapping-column"),po=vs(Ss()),$s=Symbol.for("TableStateKey");function yo(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ts(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject($s,{});return()=>{const l=a.currentRow?a.currentRow.value:null,s={default:i=>{const u=yo(i.row,i.column.property),f=l?yo(l,i.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}})]),v={class:{"el-radio":!0,"is-checked":c}};return r.h("label",v,[b])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:uf,create:xs,scope:cf}=Q("table-radio-column"),bo=xs(Ts()),Es={},Cs={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"},Ns=[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 ks(e,t){return r.openBlock(),r.createElementBlock("svg",Cs,Ns)}const Vs=Ve(Es,[["render",ks]]),{componentName:df,create:Os,scope:hf}=Q("table-setting"),Is={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:"不固定"}},Rs=Os({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:Vs,Download:De.Download,RefreshLeft:De.RefreshLeft},props:{...Is},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed===""||x.fixed===!0||x.fixed==="left")),s=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed==="right")),i=r.computed(()=>a.value.filter(x=>!(x.label===""||x.type||x.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>s.value.length>0),d=x=>x.length>1,b=x=>{const P=[];a.value=x.map((G,J)=>(!(G.label===""||G.type)&&G.visible!==!1&&P.push(G.prop),{...G,sortIndex:J})),i.value.length+l.value.length+s.value.length===P.length?$.value=!0:P.length>0&&(I.value=!0),k.value=P},v=x=>x?x.type?x.type:x.label?x.prop:"":"",S=(x,P)=>{if(x.length!==P.length)return!1;const K=x.map(G=>v(G));for(let G of P){const J=v(G);if(K.indexOf(J)===-1)return!1}return!0},h=x=>{if(!x){const P=e.tableRef.getColumnSetting(),K=P.srcColumnPropertyList;n=K.map((G,J)=>({...G,sortIndex:J})),x=P.columnPropertyList,x&&x.length>0&&S(K,x)||(x=K)}b(x)},w=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=r.ref(!1),I=r.ref(!1),F=x=>{const P=[];a.value.forEach(G=>{x&&!(G.label===""||G.type)&&P.push(G.prop),G.visible=x}),$.value=!1,I.value=!1,i.value.length+l.value.length+s.value.length===P.length?$.value=!0:P.length>0&&(I.value=!0),k.value=P,w()},V=()=>{h(n),w()},k=r.ref([]),N=x=>{a.value.forEach(K=>{if(K.label===""||K.type)return;const G=x.indexOf(K.prop)!==-1;K.visible=G}),$.value=!1,I.value=!1;const P=i.value.length+l.value.length+s.value.length;x.length===P?$.value=!0:x.length>0&&(I.value=!0),w()},A=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const C={currentRow:null,index:null,roleType:null},D=x=>x?x.dataset&&x.dataset.role==="row"?x:x.tagName.toLowerCase()!=="body"?(x=x.parentElement,D(x)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:$,isIndeterminate:I,handleCheckAllChange:F,handleReset:V,checkedValue:k,handleCheckChange:N,onShow:A,onDragStart:x=>{const P=x.currentTarget;P&&P.dataset&&(C.roleType=P.dataset.roleType,C.index=P.dataset.index)},onDragEnd:x=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},onDragOver:x=>{const P=x.currentTarget;x.relatedTarget;const K=D(P);if(!K)return;const G=K.dataset&&K.dataset.roleType;C.roleType===G&&(x.preventDefault(),C.currentRow&&C.currentRow!==K&&C.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),C.currentRow=K)},onDragLeave:x=>{x.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},onDrop:x=>{const P=x.currentTarget,K=D(P);if(!K)return;const G=K.dataset&&K.dataset.roleType;if(C.roleType!==G)return;x.preventDefault();const J=Number(C.index),te=Number(K.dataset.index);if(J!==te){if(J<te){const ne=a.value[J];a.value.splice(J,1),a.value.splice(te,0,ne)}else{const ne=a.value[J];a.value.splice(J,1),a.value.splice(te+1,0,ne)}b(a.value),w()}},toLeftFixed:x=>{const P=a.value[x];P.fixed="left",w()},toRightFixed:x=>{const P=a.value[x];P.fixed="right",w()},toUnFixed:x=>{const P=a.value[x];P.fixed=void 0,w()},checkboxLabelStyle:p}}}),As={class:"fox-table-setting"},Ds={class:"fox-table-setting__header"},Bs={class:"fox-table-setting__body"},Fs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},qs={key:0,class:"fox-table-setting__body-title"},Ls=["data-index","draggable"],Ms={class:"tools-item"},js={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},_s={key:0,class:"fox-table-setting__body-title"},Ps=["data-index","draggable"],Hs={class:"tools-item"},zs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ws={key:0,class:"fox-table-setting__body-title"},Ks=["data-index","draggable"],Ys={class:"tools-item"};function Us(e,t,o,n,a,l){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("Download"),v=r.resolveComponent("fox-checkbox"),S=r.resolveComponent("FoxCheckboxGroup"),h=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(h,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",As,[r.createElementVNode("div",Ds,[r.createVNode(s,{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(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Bs,[r.createVNode(S,{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",qs,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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{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",Ms,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>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:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ls))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",_s,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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{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",Hs,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>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:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ps))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",zs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ws,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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(v,{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",Ys,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>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:p=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ks))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tn=Ve(Rs,[["render",Us]]);let Gs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,s,i){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,s,i]);const u=Re(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(je(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,s,i]))}};function Xs(){const e=r.getCurrentInstance();return new Gs(e.proxy)}class Zs{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Re(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Re(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Js(){const e=r.getCurrentInstance();return new Zs(e.proxy)}const Qs=Symbol.for("TableStateKey");function eu(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function xn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],s=eu(n,a);if(l!==s)return!1}return!0})}const wo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},So={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},En={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 tu(e,t,o){return{inheritAttrs:!1,props:{...he,...$e,...wo,...So,...En},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Oe.useFoxI18n(t),{emitEvent:s}=ge({componentName:e,validateHandler:{getValue(...R){return I.value}}},n.prop??a.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,R=>{b.value=R});const v=R=>{b.value=R,s("page-index-change",R)},S=r.ref(n.pageSize);r.watch(()=>n.pageSize,R=>{S.value=R});const h=R=>{S.value=R,s("page-size-change",R)},w=r.shallowRef({}),p=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),$=r.ref(0),I=r.ref(),F=Xs();let V=!0;const k=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),N=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,R=>re(R)),A=async(R,O,_,H)=>{try{const U=await F.load("table",R,O,_,H,V,l.value);$.value=U.totalSize,I.value=U.page}catch(U){console.error("[FoxUI] Load Table Data Fail",U),$.value=0,I.value=[]}V=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([b,S],([R,O],[_,H])=>{O!==H&&(b.value=1,R=1),A(n.data,R,O,p.value)}),r.watch([()=>n.data,p],([R,O],[_,H])=>{k()&&(R!==_&&(V=!0),!(!Array.isArray(R)&&_e(R,_)&&_e(O,H))&&A(R,b.value,S.value,O))},{deep:!0});const C=(R={},O=!1)=>new Promise(_=>{w.value=r.toRaw(R??{}),r.triggerRef(w),O||(b.value=n.pageIndex??1),r.nextTick(async()=>{await A(n.data,b.value,S.value,p.value),_()})}),D=()=>{$.value=0,I.value=[]};let W=!1;const z=()=>{W||(W=!0,C())};k()&&!N.value&&C();const T=r.ref(null);r.provide(Qs,{currentRow:T});const y=(R,O)=>{T.value=R,s("current-change",R,O)},E=(R,O,_)=>{s("row-click",R,O,_),re(n.rowClickSelectable)===!0&&j?.value.toggleRowSelection(R)},L=[],q=(R,O)=>{if(s("expand-change",R,O),re(n.uniqueExpansion))if(Array.isArray(O)&&O.length==0){const _=L.length;L.splice(0,_)}else{L.forEach(H=>{H!==R&&j?.value.toggleRowExpansion(H,!1)});const _=L.length;L.splice(0,_,R)}},B=a.attrs.id??n.prop??a.attrs.name,x=Js(),P=r.ref([]);let K=[];const G=()=>({srcColumnPropertyList:K.map(O=>({...O})),columnPropertyList:P.value}),J=R=>{P.value=[...R],ne()},te=async()=>{const R=await x.load(B);R&&(P.value=R)},ne=()=>{x.save(B,P.value)},ae=()=>{x.remove(B)};te();const M=R=>R?R.type?R.type:R.label?R.prop:"":"",X=r.computed(()=>{if(typeof a.slots.default=="function"){const R=a.slots.default(),O=new Map;if(K=[],R.forEach(_=>{const H=_;if(!H.props)return;const U=M(H.props);O.set(U,_);const Y={label:"",prop:""};Object.assign(Y,H.props),K.push(Y)}),P.value.length===K.length){const _=[];for(let H of P.value){const U=M(H),Y=O.get(U);if(!Y)return R;if(H.visible===!1)continue;const Z=Y;Z.props.fixed=H.fixed,_.push(Z)}return _}return R}return[]}),j=r.ref();return pe({clearSelection:()=>j?.value.clearSelection(),getSelectionRows:()=>j?.value.getSelectionRows(),toggleRowSelection:(R,O)=>{j?.value.toggleRowSelection(R,O)},toggleRowSelectionByProp:(R,O)=>{if(!I.value)return;const _=xn(I.value,R);_.length!==0&&_.forEach(H=>{j?.value.toggleRowSelection(H,O)})},toggleAllSelection:()=>{j?.value.toggleAllSelection()},toggleRowExpansion:(R,O)=>{j?.value.toggleRowExpansion(R,O)},toggleRowExpansionByProp:(R,O)=>{if(!I.value)return;const _=xn(I.value,R);_.length!==0&&_.forEach(H=>{j?.value.toggleRowExpansion(H,O)})},setCurrentRow:R=>{j?.value.setCurrentRow(R)},setCurrentRowByProp:R=>{if(!I.value)return;const O=xn(I.value,R);O.length!==0&&j?.value.setCurrentRow(O[0])},getCurrentRow:()=>T.value,clearSort:()=>{j?.value.clearSort()},clearFilter:R=>{j?.value.clearFilter(R)},doLayout:()=>{j?.value.doLayout()},sort:(R,O)=>{j?.value.sort(R,O)},scrollTo:(R,O)=>{j?.value.scrollTo(R,O)},setScrollTop:R=>{j?.value.setScrollTop(R)},setScrollLeft:R=>{j?.value.setScrollLeft(R)},loadData:C,clearData:D,getData(){return I.value},getTotalSize(){return $.value},getPageIndex(){return b.value},getPageSize(){return S.value},getColumnSetting:G,setColumnSetting:J,removeColumnSetting:ae}),()=>{const O={...a.attrs,onCurrentChange:y,onRowClick:E,onExpandChange:q,data:I.value,ref:j,class:u.value},_={};a.slots.default&&(_.default=()=>X.value),a.slots.append&&(_.append=a.slots.append),a.slots.empty&&(_.empty=a.slots.empty);const H=[],U=r.h(m.ElTable,O,_);H.push(U);let Y=null;if(typeof a.slots.pagination=="function")Y=a.slots.pagination();else if(n.showPagination){const Ce={class:d.value,total:$.value,pageSize:S.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":v,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};Y=r.h(m.ElPagination,Ce)}if(n.showSetting){const Ce=[];Y&&Ce.push(Y);const Xe=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(De.Setting)}),lt=Qn(n,En),it=r.h(Tn,{...lt,tableRef:{getColumnSetting:G,setColumnSetting:J,removeColumnSetting:ae}},{default:()=>Xe});Ce.push(it);const Rn=r.h("div",{class:c.value},Ce);H.push(Rn)}else Y&&H.push(Y);const Z={default:()=>H},se={...ve(n,wo,So,En),prop:`${n.prop}_item`};return se.contentClass=`${i}__wrap`,se.errorMarkClass="is-table-error",N.value&&k()&&(se["appear-listen"]=!0,se.onAppear=z),r.h(o,se,Z)}}}}const{componentName:nu,create:ru,scope:ou}=Q("table-item"),vo=ru(tu(nu,ou,ye));function nt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function iu(){const e=r.getCurrentInstance();return new lu(e.proxy)}function $o(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=nt(e,t),a=nt(e,o);if(n!==a)return!1;const l=bt(e,t),s=bt(e,o);return l===s}function su(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 s=!1;if(o==="text")s=nt(e,l)===t;else if(o==="item")s=$o(e,l,t);else{let i=bt(e,l);i==null&&(i=nt(e,l)),s=i===t}if(s){a=l;break}}return a}function uu(e){return{text:e,value:e}}function cu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const To={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 fu(e,t,o){return{inheritAttrs:!0,props:{...he,...$e,...To},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(N,A,C,D=!0)=>{const W=su(n,N,A,C);if(W===null){if(f.value===null)return;f.value=null,u.value=null,D&&(i("update:modelValue",null),i("change",null));return}if(!$o(n,W,f.value)){u.value=N;const T=r.toRaw(W);f.value=T;let y=null;n.valueType==="text"?y=nt(n,T):n.valueType==="item"?y=T:y=bt(n,T),D&&(i("update:modelValue",y),i("change",y))}},d=r.ref([]),b=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>re(N)),v=iu(),S=async(N,A)=>{if(N){const C=await v.load("radio",N,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>uu(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([N,A])=>{S(N,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,A])=>{c(A,n.valueType,N,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=N=>{c(N,"value",d.value,!0)};let F=oe(n,"hintText"),V=oe(n,"hintVisible");const k=(N,A)=>{const C=[];return N.forEach((D,W)=>{const z=bt(n,D),T=nt(n,D);let y=au(n,D);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=cu(n,D,W)??{},L=`${z}_${W}`,q={...E,key:L,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElRadioButton,q,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElRadio,q,{default:()=>A(D)})):C.push(r.h(m.ElRadio,q,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},C=[],D={};a.slots.options?D.default=a.slots.options:D.default=()=>k(d.value,a.slots.text);const W=r.h(m.ElRadioGroup,A,D);C.push(W);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,To),hintText:F.value,hintVisible:V.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:du,create:hu,scope:gu}=Q("radio-item"),xo=hu(fu(du,gu,ye));function rt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class pu{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=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function yu(){const e=r.getCurrentInstance();return new pu(e.proxy)}function Eo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=rt(e,t),a=rt(e,o);if(n!==a)return!1;const l=ot(e,t),s=ot(e,o);return l===s}function bu(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 s of n){let i=!1;if(o==="text")i=rt(e,s)===l;else if(o==="item")i=Eo(e,s,l);else{let u=ot(e,s);u==null&&(u=rt(e,s)),i=u===l}if(i){a.push(s);break}}}),a}function wu(e){return{text:e,value:e}}function Su(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Co={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function vu(e,t,o){return{inheritAttrs:!1,props:{...he,...$e,...Co},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(N,A,C,D=!0)=>{const W=bu(n,N,A,C);if(W===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],D&&(i("update:modelValue",[]),i("change",[]));return}let z=!0;if(W.length!==f.value.length)z=!1;else for(let T=0;T<W.length;T++){const y=W[T],E=f.value[T];if(!Eo(n,y,E)){z=!1;break}}if(!z){f.value=W;let T=[],y=[];W.forEach(L=>{T.push(ot(n,L)),n.valueType==="text"?y.push(rt(n,L)):n.valueType==="item"?y.push(L):y.push(ot(n,L))}),u.value=T;const E=r.toRaw(y);D&&(i("update:modelValue",E),i("change",E))}},d=r.ref([]),b=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>re(N)),v=yu(),S=async(N,A)=>{if(N){const C=await v.load("checkbox",N,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>wu(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([N,A])=>{S(N,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,A])=>{c(A,n.valueType,N,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=N=>{c(N,"value",d.value,!0)};let F=oe(n,"hintText"),V=oe(n,"hintVisible");const k=(N,A)=>{const C=[];return N.forEach((D,W)=>{const z=ot(n,D),T=rt(n,D);let y=mu(n,D);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=Su(n,D,W)??{},L=`${z}_${W}`,q={...E,key:L,class:n.itemClass,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElCheckboxButton,q,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElCheckbox,q,{default:()=>A(D)})):C.push(r.h(m.ElCheckbox,q,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:I},C=[],D={};a.slots.options?D.default=a.slots.options:D.default=()=>k(d.value,a.slots.text);const W=r.h(m.ElCheckboxGroup,A,D);C.push(W);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,Co),hintText:F.value,hintVisible:V.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:$u,create:Tu,scope:xu}=Q("checkbox-item"),No=Tu(vu($u,xu,ye)),ko={modelValue:{type:[Number,String],required:!1}};function Eu(e,t,o){return{props:{...he,...$e,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue",h=>Se(h)),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),v=r.ref(!1);const S=r.ref();return pe({}),()=>{const w={...a.attrs,ref:S,class:c.value,readonly:s.value||l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElRate,w,p);$.push(I);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const k={...ve(n,ko),hintText:b.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:Cu,create:Nu,scope:ku}=Q("rate-item"),Vo=Nu(Eu(Cu,ku,ye)),Oo={modelValue:{type:[Boolean,String,Number],required:!1}};function Vu(e,t,o){return{props:{...he,...$e,...Oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),v=oe(n,"hintVisible");const S=r.ref();return pe({}),()=>{const w={...a.attrs,ref:S,class:c.value,readonly:s.value,disabled:l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElSwitch,w,p);$.push(I);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const k={...ve(n,Oo),hintText:b.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:Ou,create:Iu,scope:Ru}=Q("switch-item"),Io=Iu(Vu(Ou,Ru,ye)),Ro={modelValue:{type:[String,Number,Boolean],required:!1}};function Au(e,t,o){return{props:{...he,...$e,...Ro},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),f=oe(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),b=V=>{u("update:modelValue",V),u("change",V)};let v=oe(n,"hintText"),S=r.ref(!1);const h=V=>{let N=V.target.value;i.value=!0,ce(v.value)||(S.value=!0),u("focus",N,V)},w=V=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let N=V.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),$.value||u("blur",N,V)},p=()=>{u("clear","")},$=r.ref(!1),I=V=>{$.value=V,u("visible-change",V),V||u("selected")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const k={...a.attrs,ref:F,class:d.value,disabled:l.value||s.value,modelValue:f.value,"onUpdate:modelValue":b,onClear:p,onFocus:h,onBlur:w,onVisibleChange:I},N={};a.slots.option&&(N.default=a.slots.option);const A=[],C=r.h(m.ElTreeSelect,k,N);A.push(C);const D={default:()=>A};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const z={...ve(n,Ro),hintText:v.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(o,z,D)}}}}const{componentName:Du,create:Bu,scope:Fu}=Q("tree-select-item"),Ao=Bu(Au(Du,Fu,ye)),qu=Symbol.for("InnerPageScopeKey"),Lu=Symbol.for("PageWrapperKey");function Mu(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(qu,!0);const a={};r.provide(Lu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...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":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:gf,create:ju,scope:mf}=Q("dialog-item"),Do=ju(Mu());function _u(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})),s=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),i=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 h={class:s.value,style:i.value};c=r.h(o.icon??"div",h)}const d={class:u.value,style:f.value},b=n.default?n.default():[],v=r.h("div",d,b),S={class:l.value};return o.textPosition==="right"?r.h("div",S,[c,v]):r.h("div",S,[v,c])}}}}const{componentName:Pu,create:Hu,scope:pf}=Q("indicator"),Bo=Hu(_u(Pu));function zu(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 Wu={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 Ku(e,t){return{props:{...Wu},setup(o,n){const a=r.ref(!0),l=r.ref(null),s=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}),i=c=>{if(c&&re(o.showOverflowTooltip)){const d=c.clientWidth;zu(c,b=>{a.value=b<=d})}};let u=null;r.onMounted(()=>{if(!re(o.showOverflowTooltip))return;const c=l.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(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 v=o.highlightFilter;if(c.indexOf(v)!==-1){const h=c.replace(new RegExp(v,"g"),`<span>${v}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const v=o.highlightFilter(c);v&&(d.innerHTML=v,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:l};if(re(o.numberFormat)&&typeof n.slots.default=="function"){const h=n.slots.default();if(Array.isArray(h)&&h.length===1){const w=h[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const p=Se(o.digits),$=Se(o.decimalLength),I=re(o.autoPadding);let F=`${h[0].children}`,V=F.split("").reverse().join("");V=vt(V,$,I,p,o.separator),F=V.split("").reverse().join("");let k=null;o.highlightFilter!==void 0&&(k=f(F,d)),k||(d.innerHTML=F,k=r.h(o.tag,d)),c.default=()=>k}}}else{let h=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const p=w[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const $=`${w[0].children}`;h=f($,d),h||(d.innerHTML=$,h=r.h(o.tag,d))}}}h||(h=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>h}const v={disabled:a.value};return c.content=n.slots.default,r.h(m.ElTooltip,v,c)}}}}const{componentName:Yu,create:Uu,scope:yf}=Q("text"),Fo=Uu(Ku(Yu)),Gu={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:De.ArrowUp}};function Xu(e,t,o){return{props:{...Gu},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}),s=oe(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const h={class:u.value},w=r.h("span",h,[i.value]);d.push(w)}const b={class:f.value},v=o(n.icon,b);return v&&d.push(v),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:Zu,create:Ju,scope:Qu}=Q("more-button"),qo=Ju(Xu(Zu,Qu,(e,t)=>(e=e??De.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:ec,create:tc,scope:wf}=Q("tour"),nc=tc({components:{Close:De.Close,ElPopover:m.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=ec,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),s=r.computed(()=>{const{offset:S,maskWidth:h,maskHeight:w}=e,{width:p,height:$,left:I,top:F}=a.value,V=e.steps[n.active].offset??S,k=[I+p/2,F+$/2],N=Number(h||p),A=Number(w||$);return{width:`${N+ +V.left+V.right}px`,height:`${A+V.top+V.bottom}px`,top:`${k[1]-A/2-+V.top}px`,left:`${k[0]-N/2-+V.left}px`}}),i=S=>{S=="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=S=>S.popoverWidth??e.width,f=S=>S.location??e.location,c=()=>{const S=document.querySelector(`${e.steps[n.active].target}`),h=bn(S);a.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},v=(S,h=0)=>{S&&c(),e.steps,n.active=h,n.showTour=S,n.showPopup=S};return r.onMounted(()=>{v(e.modelValue,e.current)}),r.watch(()=>e.modelValue,S=>{v(S)}),{...r.toRefs(n),classes:l,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:b}}}),rc={key:0,class:"fox-tour__content"},oc={key:0,class:"fox-tour__content-top"},ac={class:"fox-tour__content-inner"},lc={class:"fox-tour__content-bottom"},ic={class:"fox-tour__content-bottom-init"},sc={class:"fox-tour__content-bottom-operate"},uc={key:1,class:"fox-tour__content fox-tour__content-tile"},cc={class:"fox-tour__content-inner"};function fc(e,t,o,n,a,l){const s=r.resolveComponent("Close"),i=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",rc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",oc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",ac,r.toDisplayString(f.content),1),r.createElementVNode("div",lc,[r.createElementVNode("div",ic,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",sc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{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(i,{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(i,{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",uc,[r.createElementVNode("div",cc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Lo=Ve(nc,[["render",fc]]);function Cn(e){let t=e.offsetHeight;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=o.offsetHeight,document.body.removeChild(o)}return t}const be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Me=e=>e==null,Mo=10;function dc(e,t){return e>t&&e>Mo?"horizontal":t>e&&t>Mo?"vertical":""}function hc(){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 i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=dc(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function gc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function mc(e){e.stopPropagation()}function pc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&mc(e)}class yc{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=gc()}open(t){this.el=t;const o=hc(),n=(a,l,s,i,u)=>{this.updateMove({x:l,y:s})};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()&&pc(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 bc(e,t){return new yc(e,t)}var jo;const Nn=typeof window<"u";Nn&&((jo=window?.navigator)!=null&&jo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let at=[];const _o=e=>{const t=e;t.key==="Escape"&&at.forEach(o=>o(t))},wc=e=>{r.onMounted(()=>{at.length===0&&document.addEventListener("keydown",_o),Nn&&at.push(e)}),r.onBeforeUnmount(()=>{at=at.filter(t=>t!==e),at.length===0&&Nn&&document.removeEventListener("keydown",_o)})},kn="fox-focus-trap.focus-after-trapped",Vn="fox-focus-trap.focus-after-released",Sc="fox-focus-trap.focusout-prevented",Po={cancelable:!0,bubbles:!1},vc={cancelable:!0,bubbles:!1},Ho="foxFocusAfterTrapped",zo="foxFocusAfterReleased",$c=Symbol("foxFocusTrap"),On=r.ref(),Pt=r.ref(0),In=r.ref(0);let Ht=0;const Wo=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},Tc=(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},Ko=(e,t)=>{for(const o of e)if(!Tc(o,t))return o},xc=e=>{const t=Wo(e),o=Ko(t,e),n=Ko(t.reverse(),e);return[o,n]},Ec=e=>e instanceof HTMLInputElement&&"select"in e,ze=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),In.value=window.performance.now(),e!==o&&Ec(e)&&t&&e.select()}};function Yo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Cc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Yo(e,n),e.unshift(n)},remove:n=>{e=Yo(e,n),e[0]?.resume?.()}}},Nc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ze(n,t),document.activeElement!==o)return},Uo=Cc(),kc=()=>Pt.value>In.value,zt=()=>{On.value="pointer",Pt.value=window.performance.now()},Go=()=>{On.value="keyboard",Pt.value=window.performance.now()},Vc=()=>(r.onMounted(()=>{Ht===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",Go)),Ht++}),r.onBeforeUnmount(()=>{Ht--,Ht<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",Go))}),{focusReason:On,lastUserFocusTimestamp:Pt,lastAutomatedFocusTimestamp:In}),Wt=e=>new CustomEvent(Sc,{...vc,detail:e}),{componentName:Sf,create:Oc,scope:vf}=Q("focus-trap"),Ic=Oc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean],required:!0},escape:{type:[Boolean],required:!0,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Ho,zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:s}=Vc();wc(h=>{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&&!e.trapped||i.paused)return;const{key:w,altKey:p,ctrlKey:$,metaKey:I,currentTarget:F,shiftKey:V}=h,{loop:k}=e,N=w==="Tab"&&!p&&!$&&!I,A=document.activeElement;if(N&&A){const C=F,[D,W]=xc(C);if(D&&W){if(!V&&A===W){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),k&&ze(D,!0))}else if(V&&[D,C].includes(A)){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),k&&ze(W,!0))}}else if(A===C){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||h.preventDefault()}}};r.provide($c,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[w])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",b)),w&&(w.removeEventListener("keydown",u),w.removeEventListener("focusin",d),w.removeEventListener("focusout",b))});const f=h=>{o(Ho,h)},c=h=>o(zo,h),d=h=>{const w=r.unref(n);if(!w)return;const p=h.target,$=h.relatedTarget,I=p&&w.contains(p);e.trapped||$&&w.contains($)||(a=$),I&&o("focusin",h),!i.paused&&e.trapped&&(I?l=p:ze(l,!0))},b=h=>{const w=r.unref(n);if(!(i.paused||!w))if(!e.escape&&e.trapped){const p=h.relatedTarget;!an(p)&&!w.contains(p)&&setTimeout(()=>{if(!i.paused&&e.trapped){const $=Wt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||ze(l,!0)}},0)}else{const p=h.target;p&&w.contains(p)||o("focusout",h)}};async function v(){await r.nextTick();const h=r.unref(n);if(h){Uo.push(i);const w=h.contains(document.activeElement)?a:document.activeElement;if(a=w,!h.contains(w)){const $=new Event(kn,Po);h.addEventListener(kn,f),h.dispatchEvent($),$.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;_n(I)||(ze(I),document.activeElement!==I&&(I="first")),I==="first"&&Nc(Wo(h),!0),(document.activeElement===w||I==="container")&&ze(h)})}}}function S(){const h=r.unref(n);if(h){h.removeEventListener(kn,f);const w=new CustomEvent(Vn,{...Po,detail:{focusReason:s.value}});h.addEventListener(Vn,c),h.dispatchEvent(w),!w.defaultPrevented&&(s.value=="keyboard"||!kc())&&ze(a??document.body,!0),h.removeEventListener(Vn,f),Uo.remove(i)}}return r.onMounted(()=>{e.trapped&&v(),r.watch(()=>e.trapped,h=>{h?v():S()})}),r.onBeforeUnmount(()=>{e.trapped&&S()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Rc,create:Ac,scope:Tf}=Q("floating-window"),Dc=Symbol.for("InnerPageScopeKey"),Bc=Symbol.for("PageWrapperKey"),Fc={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},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},qc=Ac({inheritAttrs:!1,components:{FoxIcon:m.ElIcon,FocusTrap:Ic},props:{...Fc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Rc,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,B=>{n.value=B});const a=r.ref(e.left),l=r.ref(e.top),s=r.ref(e.right),i=r.ref(e.bottom),u=r.computed(()=>["fox-floating-window"]),f=r.computed(()=>{const B={};return Me(a.value)?B.left="auto":B.left=be(a.value),Me(l.value)?B.top="auto":B.top=be(l.value),Me(s.value)?B.right="auto":B.right=be(s.value),Me(i.value)?B.bottom="auto":B.bottom=be(i.value),Me(e.zIndex)||(B["z-index"]=be(e.zIndex)),Me(I.value)||(B.height=I.value),Me(F.value)||(B.width=F.value),B}),c=r.computed(()=>e.closeIcon??De.Close);r.provide(Dc,!0);const d={};r.provide(Bc,d);const b=()=>{typeof d.beforeClose=="function"?d.beforeClose(()=>{n.value=!1}):n.value=!1},v=r.computed(()=>e.collapseIcon??De.ArrowUp),S=r.computed(()=>V.value?e.expandText??"":e.collapseText??""),h=r.computed(()=>({[`${o}__collapse-text`]:!0})),w=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),p=r.ref(),$=r.ref(),I=r.computed(()=>k.value||be(e.height)||""),F=r.computed(()=>N.value||be(e.width)||""),V=r.ref(!1),k=r.ref(""),N=r.ref(""),A=r.ref(!1);let C=-1;const D=(B,x=!0)=>{const P=p.value;if(P&&V.value!==B){if(C=C===-1?Cn(P):C,A.value=!0,x)if(P.style["will-change"]="height",P.ontransitionend=function(){P.ontransitionend=null,this.style["will-change"]="auto",B||(k.value="",A.value=!1)},B){let K=0;e.collapseHeight?K=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(K=Cn($.value)),k.value=`${C}px`,r.nextTick(()=>{k.value=`${K}px`,N.value=Me(e.collapseWidth)?"":be(e.collapseWidth)})}else k.value=`${C}px`,N.value="";else if(B){let K=0;e.collapseHeight?K=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(K=Cn($.value)),k.value=`${K}px`,N.value=Me(e.collapseWidth)?"":be(e.collapseWidth)}else A.value=!1,k.value=`${C}px`,N.value="";V.value=B,t("update:collapse",B)}};r.watch(()=>e.collapse,B=>{D(B)});const W=()=>{z()},z=B=>{B=B??!V.value,D(B)},T=()=>{a.value=null,l.value=null,s.value=null,i.value=null},y={x:0,y:0},q=bc(B=>{if(!p.value)return;const x=p.value;if(T(),e.origin==="left-top")a.value=x.offsetLeft,l.value=x.offsetTop,y.x=a.value,y.y=l.value;else if(e.origin==="left-bottom"){const P=document.documentElement.clientHeight||document.body.clientHeight;a.value=x.offsetLeft,i.value=P-(x.offsetTop+x.offsetHeight),y.x=a.value,y.y=i.value}else if(e.origin==="right-bottom"){const P=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;s.value=P-(x.offsetLeft+x.offsetWidth),i.value=K-(x.offsetTop+x.offsetHeight),y.x=s.value,y.y=i.value}else{const P=document.documentElement.clientWidth||document.body.clientWidth;s.value=P-(x.offsetLeft+x.offsetWidth),l.value=x.offsetTop,y.x=s.value,y.y=l.value}},B=>{if(!p.value)return;const x=p.value;T(),e.origin==="left-top"?(a.value=y.x+B.x,l.value=y.y+B.y,x.style.left=be(a.value),x.style.top=be(l.value)):e.origin==="left-bottom"?(a.value=y.x+B.x,i.value=y.y-B.y,x.style.left=be(a.value),x.style.bottom=be(i.value)):e.origin==="right-bottom"?(s.value=y.x-B.x,i.value=y.y-B.y,x.style.right=be(s.value),x.style.bottom=be(i.value)):(s.value=y.x-B.x,l.value=y.y+B.y,x.style.right=be(s.value),x.style.top=be(l.value))});return r.onMounted(()=>{e.draggable&&$.value&&p.value&&q.open($.value),e.collapse===!0&&D(e.collapse,!1)}),r.onBeforeUnmount(()=>{e.draggable&&$.value&&q.close()}),{classes:u,styles:f,visible:n,closeIcon:c,onClose:b,dialogRef:p,headerRef:$,onClickToggle:W,collapseIcon:v,currentCollapseText:S,collapseTextClasses:h,collapseIconClasses:w}}}),Lc={ref:"headerRef",class:"fox-floating-window__header"},Mc={class:"fox-floating-window__title"},jc={class:"fox-floating-window__tools"},_c={class:"fox-floating-window__body"};function Pc(e,t,o,n,a,l){const s=r.resolveComponent("FoxIcon"),i=r.resolveComponent("FocusTrap");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-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(i,{loop:!0,escape:!0,trapped:e.visible,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Lc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Mc,r.toDisplayString(e.title),1),r.createElementVNode("div",jc,[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.currentCollapseText),3),r.createVNode(s,{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(s,{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",_c,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.visible]])]),_:3})],8,["disabled"])}const Xo=Ve(qc,[["render",Pc]]);function Hc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return sr(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:xf,create:zc,scope:Ef}=Q("domain-provider"),Zo=zc(Hc()),Wc={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 Kc(e,t){return{inheritAttrs:!1,props:Wc,setup(o,{slots:n}){if(Ze&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const s=(b,v)=>{if(c===null){l.set(b,{visible:null,callback:v});return}a.has(b)&&c.unobserve(b),a.set(b,{visible:null,callback:v}),c.observe(b)},i=b=>{if(c===null){l.delete(b);return}a.has(b)&&(a.delete(b),c.unobserve(b))};let u=o.initialVisibleObserverSize;Sl({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let c=null;const d=(b,v,S)=>{c=new IntersectionObserver(h=>{for(let w of h){let p=!1;w.intersectionRatio>0&&(p=!0);const $=a.get(w.target);if($)try{if(o.loadPolicy==="lazy"&&!p&&$.visible!==null)return;$.visible=p,$.callback(p)}catch(I){console.error(I)}}},{root:b,rootMargin:v,threshold:S}),l.forEach((h,w)=>{a.set(w,h),c?.observe(w)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([b,v])=>{if(v||!b||c)return;let S=null;typeof b=="string"?S=document.querySelector(b):S=b,S&&d(S,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Cf,create:Yc,scope:Nf}=Q("rolling-provider"),Jo=Yc(Kc()),Qo=10;function Uc(e,t){return e>t&&e>Qo?"horizontal":t>e&&t>Qo?"vertical":""}function Gc(){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),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",b=()=>c.value==="horizontal",v=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:w=>{const p=w.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=Uc(u.value,f.value))},start:w=>{v(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,o.value=Date.now()},reset:v,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:b}}const Xc=[yr,br,wr,Sr,xr,ye,Or,Ir,Mt,Ar,Lr,Xr,Jr,eo,lo,so,fo,go,po,bo,Tn,vo,xo,No,Vo,Io,Ao,Do,_t,wn,Bo,Fo,qo,Lo,Xo,Zo,Jo],Zc=new ja(Xc,[Ha],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=go,g.Broadcast=ln,g.BroadcastKey=de,g.CascaderItem=fo,g.CheckboxItem=No,g.Content=Sr,g.DataItemsKey=Je,g.DateItem=Xr,g.DateUtils=yt,g.DialogItem=Do,g.Domain=Nt,g.DomainKey=Ne,g.DomainProvider=Zo,g.FloatingWindow=Xo,g.FooterBar=wr,g.Group=xr,g.HeaderBar=br,g.HintText=Mt,g.Indicator=Bo,g.InputItem=Ar,g.InputNumberItem=so,g.Item=ye,g.Mapping=_t,g.MoneyItem=lo,g.MoreButton=qo,g.Page=yr,g.Price=wn,g.PriorityPolicy=ke,g.RadioItem=xo,g.RateItem=Vo,g.RollingProvider=Jo,g.RowItem=Ir,g.SelectItem=Lr,g.SlotItem=Or,g.SwitchItem=Io,g.TableItem=vo,g.TableMappingColumn=po,g.TableRadioColumn=bo,g.TableSetting=Tn,g.Text=Fo,g.TimeItem=Jr,g.TimeSelectItem=eo,g.Tour=Lo,g.TreeSelectItem=Ao,g.UniqueID=kr,g.ValidateSchema=ar,g.ValidateSchemaKey=Be,g.cancelRaf=na,g.clearNonNumber=ya,g.clone=rn,g.compareTo=en,g.createBroadcast=xt,g.createValidateSchema=Ct,g.debounce=ht,g.debounceRef=Oa,g.decimalLength=Zn,g.default=Zc,g.defineBroadcast=va,g.defineConfigDomain=sr,g.defineDataItem=cr,g.defineDomain=cn,g.defineItem=ge,g.definePageState=fr,g.deleteGlobalValidator=Ea,g.disabledProperty=xe,g.divide=Qt,g.excludeProps=ve,g.extend=Ke,g.floatData=Sa,g.getGlobalValidateCheckEvents=nr,g.getGlobalValidateResetEvents=or,g.getPageContentAreaHeight=Vt,g.getPageContentAreaWidth=Ot,g.getPageFooterAreaHeight=mt,g.getPageHeaderAreaHeight=gt,g.getRootDomain=Qe,g.hasSymbol=Hn,g.includeProps=Qn,g.indexOf=ba,g.installRules=ur,g.integerLength=Xn,g.isArray=la,g.isArrayLike=Kn,g.isBrowser=Ze,g.isDate=ua,g.isESModule=da,g.isEmptyString=ce,g.isEqual=_e,g.isFunction=tn,g.isHidden=Wn,g.isInnerPage=Aa,g.isMap=ia,g.isNil=an,g.isNumberString=Gn,g.isObject=je,g.isPlainObject=nn,g.isPromise=fa,g.isRegExp=Un,g.isSet=sa,g.isString=_n,g.isSubPage=Da,g.isSymbol=ca,g.isWindow=zn,g.lastIndexOf=wa,g.makeArray=pa,g.merge=Yn,g.multiply=Ln,g.negate=Mn,g.nextTick=ga,g.numberFormat=vt,g.objectToString=Pn,g.once=Ia,g.property=Ee,g.raf=aa,g.readonlyProperty=Te,g.setGlobalValidateCheckEvents=Ca,g.setGlobalValidateHandler=Ta,g.setGlobalValidateMessages=ka,g.setGlobalValidateResetEvents=Na,g.setGlobalValidator=xa,g.throttle=ir,g.toBoolean=re,g.toNumber=Se,g.toPadding=Ie,g.toPx=ie,g.toPxDesc=me,g.toTypeString=$t,g.toValue=oe,g.tryTimes=sn,g.typeOf=Tt,g.unNumberFormat=jn,g.updatePageState=fn,g.useBroadcast=ft,g.useDomain=Fe,g.useExpose=pe,g.useInnerSize=mn,g.usePageState=kt,g.usePosition=Er,g.useRect=bn,g.useSize=gn,g.useTouch=Gc,g.valueLength=ct,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
5
+ */function St(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]=Yt(we(e),we(t)),o==1&&(n==1?e=Kt(e):t=Kt(t));let a=An(e,t);return o?o==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Kt(a)):we(a)}function Kt(e){let t="",o=e.length,n=e.split(".")[1],a=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 l=a>0?"0."+new Array(a).join("0")+"1":"1";return An(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 Yt(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 An(e,t){[e,t]=Yt(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 ue=(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))(ue||{});function st(e,t=0,o=ue.HALF_EVEN){if(o===ue.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],s=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)+s,u=st(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return l.length,Dn(a[1],l,n,o)?(n?"-":"")+Ut(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");s=a[1].substring(0,t);let i=a[1].substring(t);return i&&Dn(i,s,n,o)&&(s=Ut(s),s.length>t)?(n?"-":"")+Ut(l,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+l+"."+s}function Dn(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ue.DOWN||!o&&n===ue.FLOOR||o&&n===ue.CEILING)return!1;if(n===ue.UP||o&&n===ue.FLOOR||!o&&n===ue.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 ue.HALF_DOWN:return!1;case ue.HALF_UP:return!0;case ue.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Ut(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 Gt(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=ut(e),t=ut(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=ut(e.replace(".","")),t=ut(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let s=t.length,i=0,u=[],f=s-1,c="";for(let d=0;d<s;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let b=0;for(let v=t.length-1;v>=f&&v>=0;v--)u[v]>-1&&u[v]<e.length&&(b+=parseInt(e[u[v]--])*parseInt(t[v]));b+=i,i=Math.floor(b/10),c=b%10+c,f--}return c=ut(oa(c,l)),o==1&&(c="-"+c),c}function oa(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 ut(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 Xt(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,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 f=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(f+=s-u.length,u=u+new Array(s-u.length+1).join("0")),l=f,i="0."+new Array(f).join("0")}for(o=o+2;l<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=St(u,"-"+t),f++;i+=f,e?(e[0]=="."&&(i+=".",l++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(l||(i+="."),l++,u=u+"0")}return(n==1?"-":"")+we(st(i,o-2))}function Zt(e,t){return e=e.toString(),t=t.toString(),t=Jt(t),St(e,t)}function Jt(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Bn(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),Fn(e),Fn(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=Zt(e,Gt(t,st(Xt(e,t),0,ue.FLOOR)));return o+n}function Fn(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function qn(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]=Yt(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 ee{value;static RoundingModes=ue;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=ee.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=ee.validate(t);let a=t.charAt(0)=="-";a&&(t=t.substring(1));var l=t.indexOf(".");l=l>0?l:t.length;for(var s="",i=l;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<l-o&&i>=0?n:"")+s;return(a?"-":"")+s+t.substring(l)}getPrettyValue(t,o){return ee.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ue.HALF_EVEN){if(t=ee.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return st(t,o,n)}round(t=0,o=ue.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ee(st(this.value,t,o))}static floor(t){return t=ee.validate(t),t.indexOf(".")===-1?t:ee.round(t,0,ue.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,ue.FLOOR)}static ceil(t){return t=ee.validate(t),t.indexOf(".")===-1?t:ee.round(t,0,ue.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ee(this.value):new ee(this.value).round(0,ue.CEILING)}static add(t,o){return t=ee.validate(t),o=ee.validate(o),St(t,o)}add(t){return new ee(St(this.value,t.getValue()))}static subtract(t,o){return t=ee.validate(t),o=ee.validate(o),Zt(t,o)}subtract(t){return new ee(Zt(this.value,t.getValue()))}static multiply(t,o){return t=ee.validate(t),o=ee.validate(o),Gt(t,o)}multiply(t){return new ee(Gt(this.value,t.getValue()))}static divide(t,o,n){return t=ee.validate(t),o=ee.validate(o),Xt(t,o,n)}divide(t,o){return new ee(Xt(this.value,t.getValue(),o))}static modulus(t,o){return t=ee.validate(t),o=ee.validate(o),Bn(t,o)}modulus(t){return new ee(Bn(this.value,t.getValue()))}static compareTo(t,o){return t=ee.validate(t),o=ee.validate(o),qn(t,o)}compareTo(t){return qn(this.value,t.getValue())}static negate(t){return t=ee.validate(t),Jt(t)}negate(){return new ee(Jt(this.value))}}function Ln(e,t){return ee.multiply(`${e}`,`${t}`)}function Qt(e,t,o=8){return ee.divide(`${e}`,`${t}`,o)}function en(e,t){return e=`${e}`,t=`${t}`,ee.compareTo(e,t)}function Mn(e){return ee.negate(e)}function vt(e,t=-1,o=!1,n=3,a=","){let l=`${e}`;if(l.length==0||l==="-")return"";let s=l.charAt(0);s=="-"?l=l.substring(1):s="";let i=l,u="",f=l.indexOf(".");f!=-1&&(i=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=i.split("").reverse();for(let v=0;v<b.length;v++)d+=b[v]+((v+1)%n==0&&v+1!=b.length?a:"");u.length==0?c=`${s}${d.split("").reverse().join("")}`:c=`${s}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${s}${i}`:c=`${s}${i}.${u}`;return c}function jn(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const aa=ra,la=Array.isArray,ia=e=>$t(e)==="[object Map]",sa=e=>$t(e)==="[object Set]",ua=e=>e instanceof Date,tn=e=>typeof e=="function",_n=e=>typeof e=="string",ca=e=>typeof e=="symbol",je=e=>e!==null&&typeof e=="object",fa=e=>je(e)&&tn(e.then)&&tn(e.catch),Pn=Object.prototype.toString,$t=e=>Pn.call(e),nn=e=>$t(e)==="[object Object]",Hn=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function da(e){return e.__esModule||Hn&&e[Symbol.toStringTag]==="Module"}const ha=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ke(...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 s in l){let i=t[s],u=l[s];if(i!==u)if(a===!0&&u&&typeof u=="object"){let f;Array.isArray(u)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},t[s]=Ke(a,f,u)}else u!==void 0&&(t[s]=u)}}return t}function rn(e,t,o=!1){if(!o)Ke(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let a in t){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(t);for(let a of n){let l=e[a],s=t[a];if(l!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!nn(s))continue;l=rn(l,s,o),e[a]=l}else{if(typeof s=="function")continue;e[a]=s}}}return e}const on=ha?Promise.resolve():null;function ga(e,...t){on!==null?t&&t.length>0?on.then(()=>{e(t)}):on.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function re(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function Se(e){return typeof e=="number"?e:Number(e)}const ma={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Tt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ma[o]||"object"}function zn(e){return e&&typeof e=="object"&&"setInterval"in e}function Wn(e){return!e||e.offsetParent===null}function Kn(e){let t=!!e&&"length"in e&&e.length,o=Tt(e);return o==="function"||zn(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Yn(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 pa(e,t=[]){let o=t;return e!=null&&(Kn(Object(e))?Yn(o,typeof e=="string"?[e]:e):o.push(e)),o}function _e(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Tt(e),n=Tt(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 s=0;s<a.length;s++){let i=a[s],u=e[i],f=t[i];if(!_e(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],s=t[a];if(!_e(l,s))return!1}return!0}return!1}const Ze=typeof window<"u";function an(e){return e==null}function Un(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Gn(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Xn(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 Zn(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 Jn(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 ya(e,t=!0,o=!0){t?e=Jn(e,".",/\./g):e=e.replace(/\./g,""),o?e=Jn(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function ba(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(_e(e,o))return!0}):t.indexOf(e)}function wa(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(_e(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function ct(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Qn(e,...t){const o={};return t.forEach(n=>{for(const a in n)o[a]=e[a]}),o}function ve(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 Sa=(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},de=Symbol.for("BroadcastKey");class ln{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="*"):Un(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 s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&l.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&l.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,l,[...i])}),l}emitToChildren(t,o,...n){const a=[];return this.children.forEach(l=>{const s=Reflect.apply(l.emit,l,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(t,o){this.callbacks.set(t,o)}}function xt(e,t,o,n){const a=new ln(t,e,o);if(n&&typeof n=="object")for(const l in n)a.on(l,n[l]);return a}function va(e,t,o){const n=o;if(n[de])return n[de];const a=r.inject(de,null),l=new ln(a,o,e);if(t&&typeof t=="object")for(const s in t)l.on(s,t[s]);return n[de]=l,r.provide(de,l),r.onUnmounted(()=>{l.destroy(),n[de]=void 0}),l}function ft(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[de]??r.inject(de,null):r.inject(de,null)}const Ye=e=>e.default??e;class $a{error(t,o){const n=o,a=ft(o);a?a.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ft(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ft(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=ft(n),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?l?l.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(l?l.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let er=new $a;function Ta(e){er=e}function xa(e,t){Ye(We).setValidator(e,t)}function Ea(e){Ye(We).deleteValidator(e)}let tr=["blur","clear"];function Ca(e){tr=e}function nr(){return tr}let rr=["focus","change"];function Na(e){rr=e}function or(){return rr}function ka(e){Ye(We).messages(e)}function dt(...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 Et(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 ar{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=Et(dt(this.attrRules,this.rules)),n=[];for(let l in t){let s=t[l];if(this.hasValidator(l,!0)){if(s===!1)continue;let u={type:l};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(l);if(i!==null){let u={type:l,validator:i};n.push(u)}}this.attrRules=Et(n);const a=dt(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=er;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?Ye(We).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?Ye(We).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ye(We).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=dt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Et(t):this.rules=Et([t]);const n=dt(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=dt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const a={[`${n}`]:o},l=this.getValue(),s={[`${n}`]:l},i=Ye(We),u=new i(a),f=this.proxy??s;return u.validate(s,{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 Ct(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 ar(t,o,e)}const lr=Symbol.for("EventEmitterKey");class Va{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 ht(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function ir(e,t){let o=0;return function(...n){const a=new Date().getTime();a-o<t||(o=a,Reflect.apply(e,null,[...n]))}}function Oa(e,t){const o=ht((n,a)=>{e=n,a()},t);return r.customRef((n,a)=>({get(){return n(),e},set(l){o(l,a)}}))}function Ia(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function sn(e,t,o,n=0,a=!0){let l=t,s=0;if(a){const u=e();if(s++,u||s>o)return}const i=()=>{const u=e();s++,!(u||s>o)&&(l+=n,setTimeout(i,l))};setTimeout(i,l)}const Ne=Symbol("DomainKey"),Je=Symbol("DataItemsKey");class Nt{_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 Ra=new Nt;function Qe(){return Ra}function Fe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ne]??r.inject(Ne,null):r.inject(Ne,null)}const un=Symbol("OriginalDateKey");function cn(e,t,o=[],n){const a=r.getCurrentInstance(),l=a?.proxy;let s=r.inject(Ne,null);s===null&&(s=Qe());const i=e||t.prop||t.name,u=new Nt(i);u.parent=s;const f=h=>{l[un]||b(h),u.set("modelValue",h)},c=()=>u.getForSelf("modelValue")??null,d=()=>l[un]??null,b=h=>{const w={};Ke(!0,w,r.toRaw(h)),l[un]=w};r.isReactive(t)?r.watchEffect(()=>{u.merge(t,o)}):u.merge(t,o),t.modelValue&&b(t.modelValue),l[Ne]=u,r.provide(Ne,u);let v=null,S=null;if(a!==null){const h=r.inject(de,null);v=xt(l,h,i,n),u.broadcast=v,l[de]=v,r.provide(de,v),l.broadcast=(p,$,...I)=>Reflect.apply(v.emit,v,[p,$,...I]);const w=r.inject(Be,null);S=Ct(l,w,{componentName:""}),u.validateSchema=S,l[Be]=S,r.provide(Be,S),l[Je]=new Map,l.validate=(p=!0)=>{const $=[];let I=null;const F={deep:!1};if(p===!0)I={name:"*"};else if(Array.isArray(p)&&p.length>0){const V=p;I={name:k=>k?V.indexOf(k)!==-1:!1}}else if(p!=null&&typeof p=="object"){const V=p;if(F.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const k=V.include;I={name:N=>N?k.indexOf(N)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const k=V.exclude;I={name:N=>N?k.indexOf(N)===-1:!1}}else I={name:"*"}}if(I){const V=v?.emitToChildren(I,"validate",F);V&&Reflect.apply([].push,$,V)}return $.length==1?$[0]:$.length>1?Promise.all($).then(V=>{let k=[];return V.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(k=[...k,...N.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},l.setNameValidateRules=(p,$=!0)=>{if($){const I=Reflect.ownKeys(p),F=[...I],V={name:k=>{const N=I.includes(k);if(N){const A=F.findIndex(C=>k===C);A!==-1&&F.splice(A,1)}return N}};v?.emitToChildren(V,"setNameValidateRules",p,!1),F.length>0&&F.forEach(k=>{let N=String(k);const C=cr(u,N,{componentName:"",fieldName:N,pureDataValidate:!0},v,S);l[Je].set(N,C);const D=p[N];D&&C.validateSchema.setRule(D)})}},l.clearValidate=(p=!0)=>{let $=null;if(p===!0)$={name:"*"};else if(Array.isArray(p)&&p.length>0){const I=p;$={name:F=>F?I.indexOf(F)!==-1:!1}}else if(p!=null&&typeof p=="object"){const I=p;if(Array.isArray(I.include)&&I.include.length>0){const F=I.include;$={name:V=>V?F.indexOf(V)!==-1:!1}}else if(Array.isArray(I.exclude)&&I.exclude.length>0){const F=I.exclude;$={name:V=>V?F.indexOf(V)===-1:!1}}else $={name:"*"}}$&&v?.emitToChildren($,"clearValidate",!1)},l.resetFields=p=>{const $=c();if(!$)return;const I={};if(Ke(!0,I,d()??{}),Array.isArray(p))p.forEach(F=>{$[F]=I[F]});else if(p&&Array.isArray(p.include))(p.include??[]).forEach(V=>{$[V]=I[V]});else if(p&&Array.isArray(p.exclude)){let F=p.exclude??[];Reflect.ownKeys(I).forEach(V=>{F.includes(V)||($[V]=I[V])})}else Object.assign($,I);l.clearValidate(p)},l.setModelValue=(p,$)=>{!$||$===i?f(p):v?.emitToChildren({name:$},"setModelValue",p)},l.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),l[Ne]=void 0,l[Je]&&(l[Je].clear(),l[Je]=void 0),v!==null&&(v.destroy(),l[de]=void 0),S!==null&&(S.destroy(),l[Be]=void 0)}),u}function sr(e,t,o=[]){const a=r.getCurrentInstance()?.proxy;let l=r.inject(Ne,null);l===null&&(l=Qe());const s=e||t.prop||t.name,i=new Nt(s);return i.parent=l,r.isReactive(t)?r.watchEffect(()=>{i.merge(t,o)}):i.merge(t,o),a[Ne]=i,r.provide(Ne,i),r.onUnmounted(()=>{i.destroy(),a[Ne]=void 0}),i}function ur(e,t,o){const a=Fe(e)?.get("rules");if(!a)return;let l=a[o];l&&(Array.isArray(l)||(l=[l]),l.forEach(s=>{t.setRule(s)}))}function ge(e,t,o){const a=r.getCurrentInstance()?.proxy,l=t??"",s=r.inject(de,null),i=xt(a,s,l,o);a[de]=i,r.provide(de,i),a.broadcast=(S,h,...w)=>Reflect.apply(i.emit,i,[S,h,...w]);const u=r.inject(Be,null);e.fieldName=e.fieldName??l;const f=Ct(a,u,e);a[Be]=f,r.provide(Be,f),ur(a,f,l),a.validate=(S=null)=>{const h=[];let w=!1,p=!1;if(Array.isArray(S)&&S.indexOf(l)!==-1)p=!0,w=!0;else if(S&&typeof S=="object"){const $=S;$.ignoreHidden===!0&&Wn(a.$el)?p=!1:(Array.isArray($.include)&&$.include.indexOf(l)!==-1||Array.isArray($.exclude)&&$.exclude.indexOf(l),p=!0),w=$.deep??!1}else typeof S=="boolean"&&(w=S),p=!0;if(p){const $=f?.validate();h.push($)}if(w){let $=null;const I={deep:!1};if(S===!0)$={name:"*"};else if(Array.isArray(S)&&S.length>0){const F=S;$={name:V=>V?F.indexOf(V)!==-1:!1}}else if(S!=null&&typeof S=="object"){const F=S;if(I.ignoreHidden=F.ignoreHidden,Array.isArray(F.include)&&F.include.length>0){const V=F.include;$={name:k=>k?V.indexOf(k)!==-1:!1}}else if(Array.isArray(F.exclude)&&F.exclude.length>0){const V=F.exclude;$={name:k=>k?V.indexOf(k)===-1:!1}}else $={name:"*"}}if($){const F=i.emitToChildren($,"validate",I);Reflect.apply([].push,h,F)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then($=>{let I=[];return $.forEach(F=>{F.pass===!1&&Array.isArray(F.errors)&&(I=[...I,...F.errors])}),I.length>0?{pass:!1,errors:I}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=S=>f?.setRule(S),a.setNameValidateRules=(S,h=!1)=>{const w=S[l];if(w&&f?.setRule(w),h){const p={name:$=>Reflect.ownKeys(S).includes($)};i.emitToChildren(p,"setNameValidateRules",S,!1)}},a.clearValidate=(S=null)=>{(!Array.isArray(S)||S.indexOf(t??"")!==-1)&&f?.clear();let h=null;if(S===!0)h={name:"*"};else if(Array.isArray(S)&&S.length>0){const w=S;h={name:p=>p?w.indexOf(p)!==-1:!1}}else if(S!=null&&typeof S=="object"){const w=S;if(Array.isArray(w.include)&&w.include.length>0){const p=w.include;h={name:$=>$?p.indexOf($)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const p=w.exclude;h={name:$=>$?p.indexOf($)===-1:!1}}else h={name:"*"}}h&&i.emitToChildren(h,"clearValidate",!1)};const c=new Va(a);a[lr]=c;const d=ht((S="validate")=>{S==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:nr()).forEach(S=>{c.on(S,h=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:or()).forEach(S=>{c.on(S,h=>{d("reset")})}),r.onUnmounted(()=>{i.destroy(),a[de]=void 0,f.destroy(),a[Be]=void 0,c.destroy(),a[lr]=void 0}),{broadcast:i,validateSchema:f,emitEvent:(S,...h)=>{Reflect.apply(c.emit,c,[S,...h])},onEvent:(S,h)=>{Reflect.apply(c.on,c,[h])},offEvent:(S,h)=>{Reflect.apply(c.off,c,[h])}}}function cr(e,t,o,n,a){const l={},s=t??"";o.fieldName=s,o.validateHandler={getValue(f){const c=e.getForSelf("modelValue");return c?c[s]:null}};const i=Ct({},a,o);l.validate=(f=null)=>{const c=[];let d=!1,b=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)b=!0,d=!0;else if(f&&typeof f=="object"){const v=f;Array.isArray(v.include)&&v.include.indexOf(s)!==-1||Array.isArray(v.exclude)&&v.exclude.indexOf(s),b=!0,d=v.deep??!1}else typeof f=="boolean"&&(d=f),b=!0;if(b){const v=i?.validate();c.push(v)}if(d){let v=null;const S={deep:!1};if(f===!0)v={name:"*"};else if(Array.isArray(f)&&f.length>0){const h=f;v={name:w=>w?h.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const h=f;if(Array.isArray(h.include)&&h.include.length>0){const w=h.include;v={name:p=>p?w.indexOf(p)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const w=h.exclude;v={name:p=>p?w.indexOf(p)===-1:!1}}else v={name:"*"}}if(v){const h=u.emitToChildren(v,"validate",S);Reflect.apply([].push,c,h)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(v=>{let S=[];return v.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(S=[...S,...h.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=f=>i?.setRule(f),l.setNameValidateRules=f=>{const c=f[s];c&&i?.setRule(c)};const u=xt(null,n,s,l);return{broadcast:u,validateSchema:i}}const me=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ie(e,t)}px`:"";function ie(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(Ze){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(l=Number(s.substring(0,i)))}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 Pe="PageStateKey";function Ie(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ie(e.right))),t}function fn(e,t,o={},n=!0,a=-1,l=-1,s=0,i=0){if(e.headerHeight=ie(o.headerHeight??t.headerHeight),e.headerPadding=Ie(o.headerPadding??t.headerPadding),e.footerHeight=ie(o.footerHeight??t.footerHeight),e.footerPadding=Ie(o.footerPadding??t.footerPadding),e.contentPadding=Ie(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ie(u,l):e.height=ie(l)-ie(s,l)-ie(i,l),e.width=ie(o.width??t.width??0,a)}}function fr(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=ie(a.top),n.safeAreaBottom=ie(a.bottom),n.safeAreaLeft=ie(a.left),n.safeAreaRight=ie(a.right));const l=e.get("pageLayout");if(!l)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,f=e.get("footerBarHeight")??0;fn(n,l,t,!0,s,i,u,f);const c=r.reactive(n),d=e.getForParent(Pe);d&&(n.height=Vt(e,d),n.width=Ot(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=Vt(e,d),c.width=Ot(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")],([v,S,h=-1,w=-1,p=0,$=0])=>{fn(c,S,t,b,h,w,p,$)}),e.set(Pe,c),c}function kt(e){return e.get(Pe)}function gt(e,t){if(t=t??e.get(Pe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function mt(e,t){if(t=t??e.get(Pe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Vt(e,t){if(t=t??e.get(Pe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=gt(e,t),n=mt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ot(e,t){return t=t??e.get(Pe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Aa(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Da(e){return!!e.getForParent(Pe)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function dn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ee(e,t,o=1,n){const a=Fe();return a==null?e:o===0?r.computed(()=>{const l=a.getAll(t);for(let i=l.length-1;i>=0;i--){const u=l[i];if(dn(u,n))return u}const s=e.value;return dn(s,n)?s:null}):r.computed(()=>{const l=e.value;return dn(l,n)?l:a?.get(t)})}function Te(e){return Ee(e,"readonly",0,function(o){return re(o)})}function xe(e){return Ee(e,"disabled",0,function(o){return re(o)})}function oe(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,s=>{if(typeof o=="function"){const i=o(s);i!==l.value&&(l.value=i)}else s!==l.value&&(l.value=s)}),l}const dr=new Map,It=new Map;let hn=null;function Ba(e){hn=e}function hr(e,t,o){if(o){let n=It.get(o);n||(n=new Map,It.set(o,n)),n.set(e,t)}else dr.set(e,t)}function Re(e,t,o){!o&&hn&&(o=hn(e)??void 0);let n=null;if(o){let a=It.get(o);a&&(n=a.get(t))}return n||(n=dr.get(t)),n}function Fa(e,t){for(let o in e){const n=e[o];hr(o,n,t)}}function qa(e){It.delete(e)}function La(){return{top:0,left:0,bottom:0,right:0}}function Ma(e=0,t=0){if(Ze){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:o,height:n-ie(e,n)-ie(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 ja{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=Qe();if(this.initPageLayout(o,a),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const l=ir(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=f,this.initPageLayout(i,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=Ke({},La(),t.safeAreaInset),s=Ma(n,a),i=Ke({},s.pageLayout,t.pageLayout);o=o??Qe(),o.set("safeAreaInset",l),o.set("headerBarHeight",n),o.set("footerBarHeight",a),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ba(t)}setAPI(t,o,n){hr(t,o,n)}getAPI(t,o,n){return Re(t,o,n)}batchSetAPI(t,o){Fa(t,o)}clearScopeAPI(t){qa(t)}getRootDomain(){return Qe()}}const _a=[m.ElAffix,m.ElAlert,m.ElAutocomplete,m.ElAutoResizer,m.ElAvatar,m.ElBacktop,m.ElBadge,m.ElBreadcrumb,m.ElBreadcrumbItem,m.ElButton,m.ElButtonGroup,m.ElCalendar,m.ElCard,m.ElCarousel,m.ElCarouselItem,m.ElCascader,m.ElCascaderPanel,m.ElCheckTag,m.ElCheckbox,m.ElCheckboxButton,m.ElCheckboxGroup,m.ElCol,m.ElCollapse,m.ElCollapseItem,m.ElCollapseTransition,m.ElColorPicker,m.ElConfigProvider,m.ElContainer,m.ElAside,m.ElFooter,m.ElHeader,m.ElMain,m.ElDatePicker,m.ElDescriptions,m.ElDescriptionsItem,m.ElDialog,m.ElDivider,m.ElDrawer,m.ElDropdown,m.ElDropdownItem,m.ElDropdownMenu,m.ElEmpty,m.ElForm,m.ElFormItem,m.ElIcon,m.ElImage,m.ElImageViewer,m.ElInput,m.ElInputNumber,m.ElLink,m.ElMenu,m.ElSubMenu,m.ElMenuItem,m.ElMenuItemGroup,m.ElPageHeader,m.ElPagination,m.ElPopconfirm,m.ElPopover,m.ElPopper,m.ElProgress,m.ElRadio,m.ElRadioButton,m.ElRadioGroup,m.ElRate,m.ElResult,m.ElRow,m.ElScrollbar,m.ElSelect,m.ElOption,m.ElOptionGroup,m.ElSelectV2,m.ElSkeleton,m.ElSkeletonItem,m.ElSlider,m.ElSpace,m.ElSteps,m.ElStep,m.ElSwitch,m.ElTable,m.ElTableColumn,m.ElTableV2,m.ElTabs,m.ElTabPane,m.ElTag,m.ElTimePicker,m.ElTimeSelect,m.ElTimeline,m.ElTimelineItem,m.ElTooltip,m.ElTransfer,m.ElTree,m.ElTreeSelect,m.ElTreeV2,m.ElUpload],Pa=[m.ElInfiniteScroll,m.ElLoading,m.ElMessage,m.ElMessageBox,m.ElNotification,m.ElPopoverDirective],Ha=e=>{_a.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Pa.forEach(t=>{e.use(t)})};function Q(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 he={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}},$e={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}},mr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{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},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}},pr=[];for(const e in mr)pr.push(e);function pe(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const za=Symbol.for("InnerPageScopeKey"),Wa=(e,t)=>({inheritAttrs:!0,props:{...he,...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}},setup(o,n){const a=cn(o.name,o);if(a){const f=fr(a,o);pe({getPageContentHeight:()=>Vt(a,f),getPageContentWidth:()=>Ot(a,f),getPageHeaderHeight:()=>gt(a,f),getPageFooterHeight:()=>mt(a,f)});const c=r.inject(za,!1);f&&c&&(f.contentHeight="100%")}const l=r.computed(()=>({[e]:!0})),s=r.computed(()=>({})),i=r.getCurrentInstance(),u=f=>{const c=i?.proxy;c&&typeof c.setNameValidateRules=="function"&&c.setNameValidateRules(f,!0)};return r.watch(()=>o.rules,(f,c)=>{if(!f&&!c)return;const d=r.toRaw(c),b=r.toRaw(f),v=b?Reflect.ownKeys(b):[];(d?Reflect.ownKeys(d):[]).forEach(h=>{v.includes(h)||(b[h]=[])}),u(b)},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}}),r.onBeforeUnmount(()=>{}),{classes:l,styles:s}}}),{componentName:Ka,create:Ya,scope:Jc}=Q("page"),Ua=Ya(Wa(Ka));function Ga(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},yr=Ve(Ua,[["render",Ga]]),Xa=["aria-labelledby"],Za=r.createElementVNode("path",{d:"M642.973 1005.542 321.912 587.098a123.278 123.278 0 0 1 0-150.17l321.06-418.443a47.182 47.182 0 0 1 74.83 57.422l-321.088 418.47a28.994 28.994 0 0 0 0 35.3l321.088 418.47a47.155 47.155 0 0 1-74.83 57.395",fill:"currentColor","fill-opacity":"0.9"},null,-1),Ja=[Za],Qa=r.defineComponent({__name:"Left",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=i=>{t("click",i)},a=i=>{if(i)return isNaN(Number(i))?String(i):i+"px"},l=r.computed(()=>{const i="fox-icon";return{[o.class]:!!o.class,[i]:!0,[i+"-"+o.name]:o.name}}),s=r.computed(()=>{const i={};return i.height=a(o.height)??a(o.size),i.width=a(o.width)??a(o.size),i.color=o.color,i});return(i,u)=>(r.openBlock(),r.createElementBlock("svg",{class:r.normalizeClass(l.value),style:r.normalizeStyle(s.value),onClick:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Ja,14,Xa))}});function gn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function mn(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")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-a,height:t.clientHeight-l-s}}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 s=Fe(),i=s?kt(s):null;i&&(i.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?ie(a.height):null,c=r.computed(()=>{const y={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const E=Ie(a.padding??i.headerPadding);return Object.assign(y,E),f&&(i.headerHeight=f),y.height=i.headerHeight,y.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,y.safeAreaTop>0&&(y.top=y.safeAreaTop+(E.top??0),y.height=y.height+y.safeAreaTop),y}if(f&&(y.height=f),a.padding){const E=Ie(a.padding);Object.assign(y,E)}return y}),d=r.ref(null),b=()=>{if(i&&d.value&&d.value.offsetParent!==null){if(!n){const y=gn(d.value);i.headerAllHeight=y.height}return i.headerMounted=!0,!0}return!1};r.onMounted(()=>{i&&sn(b,50,5,50,!0)}),r.onUnmounted(()=>{i&&(i.headerMounted=!1)});const v=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}),S=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),h=r.computed(()=>{const y={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(y.top=`${c.value.safeAreaTop}px`),y}),w=r.computed(()=>!!a.leftShow),p=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),$=r.computed(()=>a.titleShow?a.title||a.titleIcon||l.slots.titleIcon||l.slots.default:!1),I=r.computed(()=>a.rightShow?a.rightText||a.rightIcon||l.slots.rightIcon||l.slots.right:!1),F=r.computed(()=>a.leftIcon),V=r.computed(()=>F.value||l.slots.leftIcon),k=r.computed(()=>a.titleIcon),N=r.computed(()=>a.titleIcon||l.slots.titleIcon),A=r.computed(()=>a.rightIcon),C=r.computed(()=>a.rightIcon||l.slots.rightIcon);function D(){l.emit("back")}function W(){l.emit("click-title")}function z(){l.emit("click-right")}function T(){l.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:v,mHeaderShow:p,leftStyles:S,rightStyles:h,mLeftShow:w,mTitleShow:$,mRightShow:I,mLeftIcon:F,hasLeftIcon:V,mTitleIcon:k,hasTitleIcon:N,mRightIcon:A,hasRightIcon:C,handleLeft:D,handleCenter:W,handleRight:z,handleRightText:T}}}),{componentName:tl,create:nl,scope:rl}=Q("header-bar"),ol=nl(el(tl,rl,Qa)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s)),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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},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]=(...s)=>e.handleCenter&&e.handleCenter(...s)),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]=(...s)=>e.handleRightText&&e.handleRightText(...s))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...s)=>e.handleRight&&e.handleRight(...s)),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 br=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=Fe(),s=l?kt(l):null,i=r.computed(()=>{const v=e;return{[v]:!0,[`${v}--${n.align}`]:!0,[`${v}--border`]:n.border,[`${v}--fixed`]:n.fixed,[`${v}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ie(n.height):null,f=r.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(l&&s){const S=Ie(n.padding??s.footerPadding);return Object.assign(v,S),u&&(s.footerHeight=u),v.height=s.footerHeight,v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.height=v.height+v.safeAreaBottom,v.bottom=v.safeAreaBottom+(S.bottom??0)),v}if(u&&(v.height=u),n.padding){const S=Ie(n.padding);Object.assign(v,S)}return v}),c=r.ref(null),d=()=>{if(s&&c.value&&c.value.offsetParent!==null){if(!o){const v=gn(c.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};r.onMounted(()=>{s&&sn(d,50,5,50,!0)}),r.onUnmounted(()=>{s&&(s.footerMounted=!1)});const b=r.computed(()=>{const v={};return f.value.height!==null&&f.value.height!==void 0&&(v.height=me(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=me(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=me(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=me(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=me(f.value.bottom)),v});return{footerBarRef:c,classes:i,styles:b}}}}const{componentName:ul,create:cl,scope:Qc}=Q("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 wr=Ve(fl,[["render",dl]]);function hl(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Fe(),a=r.computed(()=>({[e]:!0})),l=n?kt(n):null,s=r.computed(()=>{const f={};if(n&&l){if(o.padding){const v=Ie(o.padding);Object.assign(l.contentPadding,v)}const c=gt(n,l),d=mt(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 v=(l&&l.contentPadding&&l.contentPadding.top)??0;f.paddingTop=`${c+v}px`}if(l.contentPadding.bottom||d>0){const v=(l&&l.contentPadding&&l.contentPadding.bottom)??0;f.paddingBottom=`${d+v}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=Ie(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}),i=r.ref(null),u=()=>{if(l&&i.value){const f=mn(i.value);l.contentInnerHeight=f.height,l.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&l&&r.watch([()=>gt(n),()=>mt(n)],([])=>{u()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:gl,create:ml,scope:ef}=Q("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 Sr=Ve(pl,[["render",yl]]),et="GroupStateKey",vr=Symbol.for("GroupScopeKey");function Rt(){return r.inject(vr,!1)}function At(e=!0){r.provide(vr,e)}function bl(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const a=t[n];an(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(et,l),l}function pn(e,t,o=-1,n=-1,a=!1,l,s,i){const u=e.get(et);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),s||(s=f.maxItemWidth??-1);const c=ie(l),d=ie(s);i||(i=f.type??"grid");const b=()=>{const v=t===""||t===-1,S=ie(t);let h=Se(o);const w=ie(n);if(!v){let I=(S-(h-1)*w)/h;for(;d!==-1&&I>d;)h++,I=(S-(h-1)*w)/h;for(;c!==-1&&h>1&&I<c;)h--,I=(S-(h-1)*w)/h}let p=!1;const $=u.layout;$.value.width=t,$.value.column!==h&&($.value.column=h,p=!0),$.value.gutter!==w&&($.value.gutter=w,p=!0),$.value.type!==i&&($.value.type=i,p=!0),p&&r.triggerRef($)};if(a)b();else{const v=++u.passport;setTimeout(()=>{v===u.passport&&b()},50)}}function Dt(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.layout}function Bt(e,t=!1){let o;return t?o=e.getForParent(et):o=e.get(et),o.order}function $r(e,t=1){if(t==="stretch")return-1;const o=Se(t);return o===-1?100:100*o/e}function Ft(e,t,o=1,n=0,a){const l={};let s=0;a?s=ie(a):s=$r(t.column,o),s>0&&(l.width=`${s}%`);const i=$r(t.column,n);i>0&&(l["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(l["padding-left"]=`${u}px`,l["padding-right"]=`${u}px`),l}function qt(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=Se(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=Se(n)%t.column;let s=(e.index+l)%t.column,i=s+a;return i>t.column?(s=0,i=s+a,e.index=e.index+(t.column-s)+a):e.index=e.index+l+a,l>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Tr=Symbol("RollingStateKey");function Sl(e){r.provide(Tr,e)}function vl(){return r.inject(Tr,null)}function yn(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 $l(e){let t=yn(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=yn(o),document.body.removeChild(o)}return t}function Tl(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const xl={...he,...gr,...mr};function El(e,t,o){return{props:xl,emits:["update:collapse"],setup(n,a){const l=cn(n.name,n,pr),s=wl(l,{type:n.type}),i=Rt();At(!0);const u=n.rollingDisplay?vl():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>i&&l?Dt(l,!0).value:null),b=r.getCurrentInstance(),v=O=>{const _=b?.proxy;_&&typeof _.setNameValidateRules=="function"&&_.setNameValidateRules(O,!0)};r.watch(()=>n.rules,(O,_)=>{if(!O&&!_)return;const H=r.toRaw(_),U=r.toRaw(O),Y=U?Reflect.ownKeys(U):[];(H?Reflect.ownKeys(H):[]).forEach(le=>{Y.includes(le)||(U[le]=[])}),v(U)},{deep:!0});const S=e,h=r.computed(()=>{const O={};O.height=L.value;const _=i?Bt(l,!0):null;if(d.value&&_){if(d.value.type==="grid"){const H=qt(_,d.value,n.span,n.offset);Object.assign(O,H)}else if(d.value.type==="flow"){const H=Ft(_,d.value,n.span,n.offset,n.width);Object.assign(O,H)}}else if(n.width){const H=me(n.width);O.width=H}return O}),w=r.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${S}--${O}`]:!0,[`${S}--${O}-justify-${n.justify}`]:!0,[`${S}--${O}-align-${n.align}`]:!0,[`${S}--gutter`]:!0}:{[`${S}--${O}`]:!0,[`${S}--gutter`]:!0}}),p=r.computed(()=>{if(s.layout.value.type==="grid"){let _="";if(n.columnWidth)_=`repeat(auto-fill, ${n.columnWidth})`;else{const H=Tl(C.value,s.layout.value.column,s.layout.value.gutter);_=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":_}}}),$=r.toRef(n,"title"),I=r.toRef(n,"gutter"),F=r.toRef(n,"column"),V=r.computed(()=>i||c.value?!0:re(n.isWrap)),k=[],N=O=>{k.push(O)},A=()=>{let O=k.length;k.splice(0,O)},C=r.ref(-1),D=O=>{const _=mn(O).width;_>0&&_!==C.value&&(C.value=_)};pn(l,C.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([C,F,I],([O,_,H])=>{s.order.index=0,pn(l,O,_,H,!1,n.minItemWidth,n.maxItemWidth,n.type)});const W=r.computed(()=>q.value?n.expandText??"":n.collapseText??""),z=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),T=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!q.value,"is-collapse":q.value})),y=r.ref(),E=r.ref(),L=r.computed(()=>B.value||me(n.height)||""),q=r.ref(!1),B=r.ref(""),x=r.ref(!1);let P=-1;const K=(O,_=!0)=>{const H=y.value;if(H&&q.value!==O){if(P=P===-1?$l(H):P,x.value=!0,_)if(H.style["will-change"]="height",H.ontransitionend=function(){H.ontransitionend=null,this.style["will-change"]="auto",O||(B.value="",x.value=!1)},O){let U=0;n.collapseHeight?U=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(U=E.value.offsetHeight),B.value=`${P}px`,r.nextTick(()=>{B.value=`${U}px`})}else B.value=`${P}px`;else if(O){let U=0;n.collapseHeight?U=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(U=E.value.offsetHeight),B.value=`${U}px`}else x.value=!1,B.value=`${P}px`;q.value=O,a.emit("update:collapse",O)}};r.watch(()=>n.collapse,O=>{K(O)});const G=()=>{J()},J=O=>{O=O??!q.value,K(O)};pe({toggleCollapse:J,doLayout:()=>{k[0]&&(D(k[0]),pn(l,C.value,F.value,I.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let ne=null,ae=!0;const M=O=>{if(n.rules){const _=r.toRaw(n.rules);v(_)}if(Ze&&(O&&K(re(n.collapse),!1),n.autoLayout&&Array.isArray(k)&&k.length>0)){const _=k[0];D(_),window.ResizeObserver&&(ne=new window.ResizeObserver(()=>{D(_)}),ne.observe(_))}},X=()=>{ne?.disconnect(),ne=null},j=!c.value||u?.acquire();j&&(f.value=c.value?!0:null),r.onMounted(()=>{if(j&&(M(ae),ae=!1),c.value&&u){let O=null,_=u.initialHeight;u.observe(y.value,H=>{if(H!==f.value)if(H)f.value=!0,q.value||(B.value=""),O=setTimeout(()=>{O=null,f.value!==!1&&(M(ae),ae=!1)},100);else{if(O!==null&&clearTimeout(O),f.value=!1,!q.value)if(ae)B.value=u.initialHeight;else{let U=yn(y.value);U<=0?B.value=_:(B.value=`${U}px`,_=B.value)}ae||X()}})}}),r.onUnmounted(()=>{ne?.disconnect(),u&&u.unobserve(y.value)});const R=(O,_,H,U)=>{const Y={...w.value};return _===0&&(Y[`${S}__first`]=!0),H>=U-1&&(Y[`${S}__last`]=!0),r.h("div",{ref:N,key:`${_}`,class:Y,style:p.value},O)};return()=>{if(c.value&&f.value!==!0){const Y=n.tag||"div";return r.h(Y,{ref:y,prop:n.name,class:{[`${S}`]:!0,"is-collapse":x.value},style:h.value},[])}s.order.index=0;const O=[];let _=0;if(a.slots.header){const Y={key:`${_++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},Z=r.h("div",Y,[a.slots.header()]);O.push(Z)}else{const Y=[];if($.value){if(n.showMark){const le={class:{[`${S}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const se=r.h("div",le);Y.push(se)}const Z=r.h("div",{class:{[`${S}__header-title`]:!0}},[$.value]);Y.push(Z)}if(a.slots.toolbar&&Y.push(a.slots.toolbar()),n.showCollapse){const Z=[];if(W.value){const fe={class:z.value},Ce=r.h("span",fe,[W.value]);Z.push(Ce)}const le={class:T.value},se=o(n.collapseIcon,le);if(se&&Z.push(se),Z.length>0){const fe=r.h("div",{class:{[`${S}__header-collapse`]:!0},onClick:G},Z);Y.push(fe)}}if(Y.length>0){const Z={key:`${_++}`,ref:E,class:{[`${S}__header`]:!0,[`${S}__first`]:!0}},le=r.h("div",Z,Y);O.push(le)}}A();const H=a.slots.default?a.slots.default():[],U=s.layout.value.type;if(U==="grid"){const Y=R(H,_++,0,H.length);O.push(Y)}else if(U==="flow"){const Y=R(H,_++,0,H.length);O.push(Y)}else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=R([Z],_++,Y,H.length);O.push(le)}if(V.value){const Y=n.tag||"div";return r.h(Y,{ref:y,prop:n.name,class:{[`${S}`]:!0,"is-collapse":x.value},style:h.value},[O])}else return O}}}}const{componentName:Cl,create:Nl,scope:kl}=Q("group"),xr=Nl(El(Cl,kl,(e,t)=>(e=e??De.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]}))));function Vl(e){return e===window}const Ol=/matrix\((.+)\)/,Er=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,s=0,i=0,u=0;for(a=t;a!==document;){s+=a.scrollTop,l+=a.scrollLeft;const{transform:f}=window.getComputedStyle(a);if(f){const c=Ol.exec(f);if(c){let b=c[1].split(/\s*,\s*/);b.length==6&&(i+=Number(b[4]),u+=Number(b[5]))}}a=a.parentNode}return o-=l,n-=s,o+=i,n+=u,{x:o,y:n}};function Il(e){return e===window}const bn=e=>{const t=r.unref(e);if(Il(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 Al{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 Cr=new Al,Nr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Dl,create:Bl}=Q("price"),Fl=Bl({props:{...Nr},setup(e){const t=r.computed(()=>({[Dl]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>ct(e.price)==0?"":vt(e.price,e.decimalLength,!0,Se(e.digits),e.separator)),a=r.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),l=r.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:a,decimalText:l}}}),ql=["innerHTML"],Ll=["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,ql)):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,Ll)):r.createCommentVNode("",!0)],2)}const wn=Ve(Fl,[["render",Ml]]),{componentName:Lt,create:jl}=Q("hint-text"),_l=jl({components:{Price:wn},props:{...Nr,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),s=r.ref({x:0,y:0}),i=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[Lt]:!0})),b=r.ref(null),v=(A,C,D=10)=>{if(!Ze||C===!1||!A)return;l.value=!0;const W=bn(e.reference);u.value=W.width,f.value=W.height,setTimeout(()=>{if(!b.value||!e.reference||e.reference.offsetParent===null)return;const z=Er(e.reference),T=document.documentElement.clientWidth||document.body.clientWidth,y=b.value.offsetWidth,E=b.value.offsetHeight;z.y-E>=0?(c.value="top",s.value.y=z.y-E-10-4,i.value.y=E):(c.value="bottom",s.value.y=z.y+f.value+10,i.value.y=-10);const L=z.x+y-T;L<0?(s.value.x=z.x,i.value.x=20):(s.value.x=z.x-L,i.value.x=L+20),l.value=!1},D)},S=ht(()=>{v(e.message,e.visible)},10),h=r.computed(()=>e.visible&&w.value),w=r.ref(!0),p=ht(A=>{const C=A[0];C&&(w.value=C.isIntersecting)},10),$=new IntersectionObserver(p);r.watch([()=>e.message,()=>e.visible],([A,C])=>{v(A,C)}),r.onMounted(()=>{v(e.message,e.visible),Cr.watch(e.reference,S),$.observe(e.reference)}),r.onBeforeMount(()=>{Cr.unwatch(e.reference,S),$.unobserve(e.reference),$.disconnect()});const I=r.computed(()=>{const A={"min-width":me(u.value)};return l.value?A.visibility="hidden":A.transform=`translate(${s.value.x}px, ${s.value.y}px)`,A}),F=r.computed(()=>({[`${Lt}__content`]:!0})),V=r.computed(()=>({})),k=r.computed(()=>({[`${Lt}__arrow`]:!0,[`${Lt}__arrow-${e.placement}`]:!0})),N=r.computed(()=>({top:`${i.value.y}px`,left:`${i.value.x}px`}));return{show:h,tipRef:b,classes:d,styles:I,textClasses:F,textStyles:V,arrowClasses:k,arrowStyles:N}}}),Pl={key:1,class:"text"};function Hl(e,t,o,n,a,l){const s=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(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Pl,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 Mt=Ve(_l,[["render",Hl]]);class kr{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 Sn={},zl=new kr,tt=new Map,vn=e=>{if(e){const t=document.getElementById(e);tt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of tt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}tt.clear()}},Wl=e=>{const t=document.getElementById(e.id);if(t){const o=tt.get(e.id);o?e={...Sn,...o,...e}:e={...Sn,...e};const n=r.createVNode(Mt,e);return r.render(n,t),e.id}},Kl=e=>{e.unmount=vn;let t;if(e.id){if(t=e.id,tt.has(t))return Wl(e)}else t=`hinttext_${zl.get()}`;e={...Sn,...e},e.id=t,tt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(Mt,e);return r.render(n,o),document.body.appendChild(o),t},Yl=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},jt={show(e,t,o={},n=!0){return n&&vn(),Yl(t),Kl({...o,message:t,reference:e})},hide(e){vn(e)},install(e){e.config.globalProperties.$hintText=jt}},{componentName:Vr,create:Ul}=Q("item"),Gl=Ul({inheritAttrs:!0,props:{...he,...$e},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ge({componentName:Vr,validate:!1},o);const n=Fe(),a=Rt();At(!1);const l=r.computed(()=>a&&n?Dt(n,!1).value:null),s=Vr,i=r.ref(null),u=r.computed(()=>{const M={[s]:!0,[`${s}__gutter`]:l.value&&l.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(M[e.errorMarkClass]=!!W.value,M[e.warnMarkClass]=!!C.value,M[e.infoMarkClass]=!!N.value,typeof i.value=="function"){const X=i.value(o);M[X]=!0}else if(typeof i.value=="string"){const X=i.value;M[X]=!0}return M}),f=r.computed(()=>{const M={},X=a&&n?Bt(n,!1):null;if(l.value&&X)if(l.value.type==="grid"){const j=qt(X,l.value,e.span,e.offset);Object.assign(M,j)}else if(l.value.type==="flow"){const j=Ft(X,l.value,e.span,e.offset,e.width);Object.assign(M,j)}else return e.width&&(M.width=me(e.width)),M;else e.width&&(M.width=me(e.width));return M}),c=r.ref(null),d=r.computed({get:()=>c.value??re(e.isRequired),set:M=>{c.value=M}}),b=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),v=Ee(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),S=r.computed(()=>v&&v.value==="top"?"top":v&&v.value==="right"?"right":"left"),h=r.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${S.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${S.value}`]:!0})),p=Ee(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),$=r.computed(()=>p&&p.value?{width:me(p.value)}:{}),I=r.computed(()=>({"label--string":!0,"label--required":d.value})),F=r.computed(()=>({content:!0,[e.contentClass]:!0})),V=r.computed(()=>({...e.contentStyle})),k=r.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});pe({setRequired(M){d.value=M},setErrorTip(M){k.errorTip=M},setErrorIcon(M){k.errorIcon=M},setWarnTip(M){k.warnTip=M},setWarnIcon(M){k.warnIcon=M},setInfoTip(M){k.infoTip=M},setInfoIcon(M){k.infoIcon=M},setCustomClassName(M){i.value=M}});const N=r.computed(()=>e.infoTip||k.infoTip),A=r.computed(()=>e.infoIcon||k.infoIcon),C=r.computed(()=>e.warnTip||k.warnTip),D=r.computed(()=>e.warnIcon||k.warnIcon),W=r.computed(()=>e.errorTip||k.errorTip),z=r.computed(()=>e.errorIcon||k.errorIcon),T=r.computed(()=>W.value?"error":C.value?"warn":N.value?"info":""),y=r.computed(()=>T.value.length>0),E=r.computed(()=>T.value==="error"?W.value:T.value==="warn"?C.value:T.value==="info"?N.value:""),L=r.computed(()=>T.value==="error"?z.value:T.value==="warn"?D.value:T.value==="info"?A.value:null),q=r.computed(()=>{let M={[`${s}__tip`]:!0,[`${s}__tip--${T.value}`]:!0};return T.value==="error"&&e.errorClass?M[`${e.errorClass}`]=!0:T.value==="warn"&&e.warnClass?M[`${e.warnClass}`]=!0:T.value==="info"&&e.infoClass&&(M[`${e.infoClass}`]=!0),M}),B=r.computed(()=>{let M={};return v&&v.value==="top"||!b.value?M["padding-left"]="0px":p&&p.value&&(M["padding-left"]=me(p.value)),M}),x=()=>r.h(L.value,{width:12,height:12}),P=r.computed(()=>t.slots.fixedTip),K=r.computed(()=>({[`${s}__fixed-tip`]:!0})),G=r.ref();let J="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([M,X,j,R])=>{G.value&&(M&&!ce(X)?J?jt.show(G.value,X,{...R,id:J,type:j},!0):J=jt.show(G.value,X,{...R,type:j},!0):jt.hide(J))});let te=null;const ne=()=>{te||!G.value||(te=new IntersectionObserver(M=>{let X=!1;for(let j of M)if(j.intersectionRatio>0){X=!0,X&&t.emit("appear",j);break}X||t.emit("disappear")}),te.observe(G.value))},ae=()=>{!te||!G.value||(te.unobserve(G.value),te=null)};return r.watch(()=>re(e.appearListen),M=>{M?ne():ae()}),r.onMounted(()=>{re(e.appearListen)&&ne()}),r.onUnmounted(ae),{classes:u,styles:f,mainClasses:h,hasLabel:b,labelClasses:w,labelStyles:$,labelStringClasses:I,contentClasses:F,contentStyles:V,contentRef:G,hasTip:y,mTip:E,mIcon:L,renderIcon:x,tipClasses:q,tipStyles:B,hasFixedTip:P,fixedTipClasses:K}}}),Xl=["prop"],Zl={key:0,class:"fox-item__tip--icon"},Jl={class:"fox-item__tip--text"};function Ql(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.createElementBlock("div",Zl,[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon())))])):r.createCommentVNode("",!0),r.createElementVNode("div",Jl,r.toDisplayString(e.mTip),1)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Xl)}const ye=Ve(Gl,[["render",Ql]]);function ei(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=Fe(),l=Rt();At(!1);const s=r.computed(()=>l&&a?Dt(a,!1).value:null),i=e,u=r.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=l&&a?Bt(a,!1):null;if(s.value&&d)if(s.value.type==="grid"){const b=qt(d,s.value,o.span,o.offset);Object.assign(c,b)}else if(s.value.type==="flow"){const b=Ft(d,s.value,o.span,o.offset,o.width);Object.assign(c,b)}else return o.width&&(c.width=me(o.width)),c;else o.width&&(c.width=me(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:ti,create:ni,scope:nf}=Q("slot-item"),Or=ni(ei(ti));function ri(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,n){const a=e,l=r.computed(()=>({[a]:!0,[`${a}__stretch`]:o.span==="stretch",[`${a}__${o.align}`]:!0})),s=Fe(),i=Rt();At(!1);const u=r.computed(()=>{const f={};if(i&&s){const c=Dt(s,!1),d=Bt(s,!1);if(c.value&&d)if(c.value.type==="grid"){const b=qt(d,c.value,o.span,o.offset);Object.assign(f,b)}else if(c.value.type==="flow"){const b=Ft(d,c.value,o.span,o.offset,o.width);Object.assign(f,b)}else o.width&&(f.width=me(o.width))}else o.width&&(f.width=me(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 v=r.h("div",{class:{[`${a}__divide`]:!0}});f.push(v)}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:oi,create:ai,scope:rf}=Q("row-item"),Ir=ai(ri(oi)),Rr={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 li(e,t,o){return{props:{...he,...$e,...Rr},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0,[`${b}__disabled`]:l.value,[`${b}__readonly`]:s.value})),S=T=>{d.value=T,i("update:modelValue",T),i("input",T)},h=T=>{i("change",T)};let w=oe(n,"hintText"),p=r.ref(!1);const $=T=>{let E=T.target.value;c.value=!0,ce(w.value)||(p.value=!0),i("focus",E,T)},I=T=>{setTimeout(()=>{p.value&&(p.value=!1),c.value=!1},0);let E=T.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),i("blur",E,T)},F=()=>{i("clear","")},V=r.ref(!1);let k=null;const N=()=>{n.showTooltip&&V.value===!1&&(k&&clearTimeout(k),k=setTimeout(()=>{V.value=!0},150))},A=()=>{k&&(clearTimeout(k),V.value=!1,k=null)},C=r.computed(()=>V.value||p.value),D=r.computed(()=>V.value?d.value:w.value),W=r.computed(()=>ct(n.unit)>0),z=r.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onChange:h,onInput:S,onFocus:$,onBlur:I,onMouseover:N,onMouseleave:A},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:W.value&&(E.suffix=()=>[n.unit]);const L=[],q=r.h(m.ElInput,y,E);L.push(q);const B={default:()=>L};a.slots.default&&(B.label=a.slots.default),a.slots.default&&(B.fixedTip=a.slots.fixedTip);const P={...ve(n,Rr),hintText:D.value,hintVisible:C.value,prop:`${n.prop}_item`};return r.h(o,P,B)}}}}const{componentName:ii,create:si,scope:ui}=Q("input-item"),Ar=si(li(ii,ui,ye));function He(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function pt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Dr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ci(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let fi=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=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function di(){const e=r.getCurrentInstance();return new fi(e.proxy)}function Br(e,t,o){const n=He(e,t),a=He(e,o);if(n!==a)return!1;const l=pt(e,t),s=pt(e,o);return l===s}function Fr(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 s of n){const i=Dr(e,s);if(Array.isArray(i)&&i.length>0){const u=Fr(e,l,o,i)??[];Reflect.apply([].push,a,u)}else{let u=!1;if(o==="text")u=He(e,s)===l;else if(o==="item")u=Br(e,s,l);else{let f=pt(e,s);f==null&&(f=He(e,s)),u=f===l}if(u){a.push(s);break}}}}),a}function hi(e){return{text:e,value:e}}const qr={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 gi(e,t,o){return{props:{...he,...$e,...qr},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(R=>He(n,R)).join(" "):""),v=(j,R,O,_=!0)=>{const H=Fr(n,j,R,O);if(H===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],_&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let U=!0;if(H.length!==d.value.length)U=!1;else for(let Y=0;Y<H.length;Y++){const Z=H[Y],le=d.value[Y];if(!Br(n,Z,le)){U=!1;break}}if(!U){d.value=H;let Y=[],Z=[],le=[];H.forEach(Xe=>{const lt=pt(n,Xe),it=He(n,Xe);Y.push(lt),le.push(it),n.valueType==="text"?Z.push(it):n.valueType==="item"?Z.push(Xe):Z.push(lt)});let se,fe,Ce;n.multiple?(c.value=Y,se=r.toRaw(Z),fe=le,Ce=r.toRaw(H)):(c.value=Y[0]??"",se=r.toRaw(Z[0]??""),fe=le[0]??"",Ce=r.toRaw(H[0])),_&&(i("update:modelValue",se),i("change",se,Ce)),i("update:text",fe)}},S=r.ref(null),h=r.ref(null),w=r.computed(()=>h.value??S.value??[]),p=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,j=>re(j)),$=di(),I=async(j,R)=>{if(j){const O=await $.load("select",j,R);if(O.length>0)if(typeof O[0]=="string"){let U=O.map(Y=>hi(Y));S.value=U}else S.value=O;else S.value=null}};r.watch([()=>n.source,()=>n.params],([j,R])=>{I(j,R)},{immediate:!p.value});let F=!1;const V=()=>{F||(F=!0,I(n.source,n.params))};r.watch([()=>w.value,()=>n.modelValue],([j,R])=>{v(R,n.valueType,j,!1)});let k=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(k=async j=>{if(j==null){h.value=null;return}N.value=!0;try{const R=await n.remoteMethod(j);R&&(h.value=R)}catch(R){h.value=null,console.error(R)}N.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async j=>{if(j==null){h.value=null;return}N.value=!0;try{const R=await n.filterMethod(j,S.value);R&&(h.value=R)}catch(R){h.value=null,console.error(R)}N.value=!1});const C=r.ref(!1),D=e,W=r.computed(()=>({[D]:!0})),z=j=>{n.allowCreate?(i("update:modelValue",j),i("change",j),i("update:text",j),c.value=j):v(j,"value",w.value,!0)};let T=oe(n,"hintText"),y=r.ref(!1);const E=j=>{let O=j.target.value;C.value=!0,ce(T.value)||(y.value=!0),i("focus",O,j)},L=j=>{setTimeout(()=>{y.value&&(y.value=!1),C.value=!1},0);let O=j.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),te.value||i("blur",O,j)},q=()=>{i("clear","")},B=r.ref(!1);let x=null;const P=()=>{n.showTooltip&&B.value===!1&&(x&&clearTimeout(x),x=setTimeout(()=>{B.value=!0},150))},K=()=>{x&&(clearTimeout(x),B.value=!1,x=null)},G=r.computed(()=>B.value||y.value),J=r.computed(()=>B.value?b.value:T.value),te=r.ref(!1),ne=j=>{te.value=j,i("visible-change",j),j||i("selected")},ae=j=>{i("remove-tag",j)},M=(j,R)=>{const O=[];return j.forEach((_,H)=>{const U=Dr(n,_);if(Array.isArray(U)&&U.length>0){const Y=M(U,R),Z=He(n,_),se={key:`${Z}_${H}`,label:Z};O.push(r.h(m.ElOptionGroup,se,{default:()=>Y}))}else{const Y=pt(n,_),Z=He(n,_),le=ci(n,_),fe={key:`${Y}_${H}`,label:Z,disabled:le,value:Y};if(typeof R=="function")O.push(r.h(m.ElOption,fe,{default:()=>R(_)}));else if(n.optionType==="item"){const Ce={class:{"fox-select-item__option-left":!0}},Xe=r.h("span",Ce,[Y]),lt={class:{"fox-select-item__option-right":!0}},it=r.h("span",lt,[Z]),Rn=r.h("div",{class:{"fox-select-item__option":!0}},[Xe,it]);O.push(r.h(m.ElOption,fe,{default:()=>Rn}))}else n.optionType==="value"?O.push(r.h(m.ElOption,fe,{default:()=>[Y]})):O.push(r.h(m.ElOption,fe))}}),O},X=r.ref();return pe({focus:()=>{X?.value.focus()},blur:()=>{X?.value.blur()}}),()=>{const R={...a.attrs,ref:X,class:W.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:l.value||s.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:q,onChange:z,onFocus:E,onBlur:L,onVisibleChange:ne,onRemoveTag:ae};typeof k=="function"&&(R["remote-method"]=k,R.loading=N.value),typeof A=="function"&&(R["filter-method"]=A,R.loading=N.value);const O={};a.slots.prefix&&(O.prefix=a.slots.prefix),a.slots.empty&&(O.empty=a.slots.empty),a.slots.options?O.default=a.slots.options:O.default=()=>M(w.value,a.slots.option);const _=[],H=r.h(m.ElSelect,R,O);_.push(H);const U={default:()=>_};a.slots.default&&(U.label=a.slots.default),a.slots.fixedTip&&(U.fixedTip=a.slots.fixedTip);const Z={...ve(n,qr),hintText:J.value,hintVisible:G.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:P,onMouseleave:K};return p.value&&(Z["appear-listen"]=!0,Z.onAppear=V),r.h(o,Z,U)}}}}const{componentName:mi,create:pi,scope:yi}=Q("select-item"),Lr=pi(gi(mi,yi,ye));var qe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Le(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o=1e3,n=6e4,a=36e5,l="millisecond",s="second",i="minute",u="hour",f="day",c="week",d="month",b="quarter",v="year",S="date",h="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},I=function(T,y,E){var L=String(T);return!L||L.length>=y?T:""+Array(y+1-L.length).join(E)+T},F={s:I,z:function(T){var y=-T.utcOffset(),E=Math.abs(y),L=Math.floor(E/60),q=E%60;return(y<=0?"+":"-")+I(L,2,"0")+":"+I(q,2,"0")},m:function T(y,E){if(y.date()<E.date())return-T(E,y);var L=12*(E.year()-y.year())+(E.month()-y.month()),q=y.clone().add(L,d),B=E-q<0,x=y.clone().add(L+(B?-1:1),d);return+(-(L+(E-q)/(B?q-x:x-q))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:d,y:v,w:c,d:f,D:S,h:u,m:i,s,ms:l,Q:b}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},V="en",k={};k[V]=$;var N=function(T){return T instanceof W},A=function T(y,E,L){var q;if(!y)return V;if(typeof y=="string"){var B=y.toLowerCase();k[B]&&(q=B),E&&(k[B]=E,q=B);var x=y.split("-");if(!q&&x.length>1)return T(x[0])}else{var P=y.name;k[P]=y,q=P}return!L&&q&&(V=q),q||!L&&V},C=function(T,y){if(N(T))return T.clone();var E=typeof y=="object"?y:{};return E.date=T,E.args=arguments,new W(E)},D=F;D.l=A,D.i=N,D.w=function(T,y){return C(T,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var W=function(){function T(E){this.$L=A(E.locale,null,!0),this.parse(E)}var y=T.prototype;return y.parse=function(E){this.$d=function(L){var q=L.date,B=L.utc;if(q===null)return new Date(NaN);if(D.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var x=q.match(w);if(x){var P=x[2]-1||0,K=(x[7]||"0").substring(0,3);return B?new Date(Date.UTC(x[1],P,x[3]||1,x[4]||0,x[5]||0,x[6]||0,K)):new Date(x[1],P,x[3]||1,x[4]||0,x[5]||0,x[6]||0,K)}}return new Date(q)}(E),this.$x=E.x||{},this.init()},y.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},y.$utils=function(){return D},y.isValid=function(){return this.$d.toString()!==h},y.isSame=function(E,L){var q=C(E);return this.startOf(L)<=q&&q<=this.endOf(L)},y.isAfter=function(E,L){return C(E)<this.startOf(L)},y.isBefore=function(E,L){return this.endOf(L)<C(E)},y.$g=function(E,L,q){return D.u(E)?this[L]:this.set(q,E)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(E,L){var q=this,B=!!D.u(L)||L,x=D.p(E),P=function(X,j){var R=D.w(q.$u?Date.UTC(q.$y,j,X):new Date(q.$y,j,X),q);return B?R:R.endOf(f)},K=function(X,j){return D.w(q.toDate()[X].apply(q.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(j)),q)},G=this.$W,J=this.$M,te=this.$D,ne="set"+(this.$u?"UTC":"");switch(x){case v:return B?P(1,0):P(31,11);case d:return B?P(1,J):P(0,J+1);case c:var ae=this.$locale().weekStart||0,M=(G<ae?G+7:G)-ae;return P(B?te-M:te+(6-M),J);case f:case S:return K(ne+"Hours",0);case u:return K(ne+"Minutes",1);case i:return K(ne+"Seconds",2);case s:return K(ne+"Milliseconds",3);default:return this.clone()}},y.endOf=function(E){return this.startOf(E,!1)},y.$set=function(E,L){var q,B=D.p(E),x="set"+(this.$u?"UTC":""),P=(q={},q[f]=x+"Date",q[S]=x+"Date",q[d]=x+"Month",q[v]=x+"FullYear",q[u]=x+"Hours",q[i]=x+"Minutes",q[s]=x+"Seconds",q[l]=x+"Milliseconds",q)[B],K=B===f?this.$D+(L-this.$W):L;if(B===d||B===v){var G=this.clone().set(S,1);G.$d[P](K),G.init(),this.$d=G.set(S,Math.min(this.$D,G.daysInMonth())).$d}else P&&this.$d[P](K);return this.init(),this},y.set=function(E,L){return this.clone().$set(E,L)},y.get=function(E){return this[D.p(E)]()},y.add=function(E,L){var q,B=this;E=Number(E);var x=D.p(L),P=function(J){var te=C(B);return D.w(te.date(te.date()+Math.round(J*E)),B)};if(x===d)return this.set(d,this.$M+E);if(x===v)return this.set(v,this.$y+E);if(x===f)return P(1);if(x===c)return P(7);var K=(q={},q[i]=n,q[u]=a,q[s]=o,q)[x]||1,G=this.$d.getTime()+E*K;return D.w(G,this)},y.subtract=function(E,L){return this.add(-1*E,L)},y.format=function(E){var L=this,q=this.$locale();if(!this.isValid())return q.invalidDate||h;var B=E||"YYYY-MM-DDTHH:mm:ssZ",x=D.z(this),P=this.$H,K=this.$m,G=this.$M,J=q.weekdays,te=q.months,ne=function(j,R,O,_){return j&&(j[R]||j(L,B))||O[R].slice(0,_)},ae=function(j){return D.s(P%12||12,j,"0")},M=q.meridiem||function(j,R,O){var _=j<12?"AM":"PM";return O?_.toLowerCase():_},X={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:D.s(G+1,2,"0"),MMM:ne(q.monthsShort,G,te,3),MMMM:ne(te,G),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:ne(q.weekdaysMin,this.$W,J,2),ddd:ne(q.weekdaysShort,this.$W,J,3),dddd:J[this.$W],H:String(P),HH:D.s(P,2,"0"),h:ae(1),hh:ae(2),a:M(P,K,!0),A:M(P,K,!1),m:String(K),mm:D.s(K,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:x};return B.replace(p,function(j,R){return R||X[j]||x.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(E,L,q){var B,x=D.p(L),P=C(E),K=(P.utcOffset()-this.utcOffset())*n,G=this-P,J=D.m(this,P);return J=(B={},B[v]=J/12,B[d]=J,B[b]=J/3,B[c]=(G-K)/6048e5,B[f]=(G-K)/864e5,B[u]=G/a,B[i]=G/n,B[s]=G/o,B)[x]||G,q?J:D.a(J)},y.daysInMonth=function(){return this.endOf(d).$D},y.$locale=function(){return k[this.$L]},y.locale=function(E,L){if(!E)return this.$L;var q=this.clone(),B=A(E,L,!0);return B&&(q.$L=B),q},y.clone=function(){return D.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},T}(),z=W.prototype;return C.prototype=z,[["$ms",l],["$s",s],["$m",i],["$H",u],["$W",f],["$M",d],["$y",v],["$D",S]].forEach(function(T){z[T[1]]=function(y){return this.$g(y,T[0],T[1])}}),C.extend=function(T,y){return T.$i||(T(y,W,C),T.$i=!0),C},C.locale=A,C.isDayjs=N,C.unix=function(T){return C(1e3*T)},C.en=k[V],C.Ls=k,C.p={},C})})(Mr);var bi=Mr.exports;const Ae=Le(bi);var jr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,l=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},f=function(h){return function(w){this[h]=+w}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var p=w.match(/([+-]|\d\d)/g),$=60*p[1]+(+p[2]||0);return $===0?0:p[0]==="+"?-$:$}(h)}],d=function(h){var w=i[h];return w&&(w.indexOf?w:w.s.concat(w.f))},b=function(h,w){var p,$=i.meridiem;if($){for(var I=1;I<=24;I+=1)if(h.indexOf($(I,0,w))>-1){p=I>12;break}}else p=h===(w?"pm":"PM");return p},v={A:[s,function(h){this.afternoon=b(h,!1)}],a:[s,function(h){this.afternoon=b(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[a,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],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:[s,function(h){var w=i.ordinal,p=h.match(/\d+/);if(this.day=p[0],w)for(var $=1;$<=31;$+=1)w($).replace(/\[|\]/g,"")===h&&(this.day=$)}],M:[l,f("month")],MM:[a,f("month")],MMM:[s,function(h){var w=d("months"),p=(d("monthsShort")||w.map(function($){return $.slice(0,3)})).indexOf(h)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(h){var w=d("months").indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(h){this.year=u(h)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function S(h){var w,p;w=h,p=i&&i.formats;for(var $=(h=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,D,W){var z=W&&W.toUpperCase();return D||p[W]||o[W]||p[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,y,E){return y||E.slice(1)})})).match(n),I=$.length,F=0;F<I;F+=1){var V=$[F],k=v[V],N=k&&k[0],A=k&&k[1];$[F]=A?{regex:N,parser:A}:V.replace(/^\[|\]$/g,"")}return function(C){for(var D={},W=0,z=0;W<I;W+=1){var T=$[W];if(typeof T=="string")z+=T.length;else{var y=T.regex,E=T.parser,L=C.slice(z),q=y.exec(L)[0];E.call(D,q),C=C.replace(q,"")}}return function(B){var x=B.afternoon;if(x!==void 0){var P=B.hours;x?P<12&&(B.hours+=12):P===12&&(B.hours=0),delete B.afternoon}}(D),D}}return function(h,w,p){p.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var $=w.prototype,I=$.parse;$.parse=function(F){var V=F.date,k=F.utc,N=F.args;this.$u=k;var A=N[1];if(typeof A=="string"){var C=N[2]===!0,D=N[3]===!0,W=C||D,z=N[2];D&&(z=N[2]),i=this.$locale(),!C&&z&&(i=p.Ls[z]),this.$d=function(L,q,B){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*L);var x=S(q)(L),P=x.year,K=x.month,G=x.day,J=x.hours,te=x.minutes,ne=x.seconds,ae=x.milliseconds,M=x.zone,X=new Date,j=G||(P||K?1:X.getDate()),R=P||X.getFullYear(),O=0;P&&!K||(O=K>0?K-1:X.getMonth());var _=J||0,H=te||0,U=ne||0,Y=ae||0;return M?new Date(Date.UTC(R,O,j,_,H,U,Y+60*M.offset*1e3)):B?new Date(Date.UTC(R,O,j,_,H,U,Y)):new Date(R,O,j,_,H,U,Y)}catch{return new Date("")}}(V,A,k),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),W&&V!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var T=A.length,y=1;y<=T;y+=1){N[1]=A[y-1];var E=p.apply(this,N);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}y===T&&(this.$d=new Date(""))}else I.call(this,F)}}})})(jr);var wi=jr.exports;const Si=Le(wi);var _r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=l.format;a.en.ordinal=function(i){var u=["th","st","nd","rd"],f=i%100;return"["+i+(u[(f-20)%10]||u[f]||u[0])+"]"},l.format=function(i){var u=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(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 s.bind(this)(d)}}})})(_r);var vi=_r.exports;const $i=Le(vi);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){var l=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,b,v,S,h){var w=d.name?d:d.$locale(),p=s(w[b]),$=s(w[v]),I=p||$.map(function(V){return V.slice(0,S)});if(!h)return I;var F=w.weekStart;return I.map(function(V,k){return I[(k+(F||0))%7]})},u=function(){return a.Ls[a.locale()]},f=function(d,b){return d.formats[b]||function(v){return v.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,h,w){return h||w.slice(1)})}(d.formats[b.toUpperCase()])},c=function(){var d=this;return{months:function(b){return b?b.format("MMMM"):i(d,"months")},monthsShort:function(b){return b?b.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(b){return b?b.format("dddd"):i(d,"weekdays")},weekdaysMin:function(b){return b?b.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(b){return b?b.format("ddd"):i(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 i(u(),"months")},a.monthsShort=function(){return i(u(),"monthsShort","months",3)},a.weekdays=function(d){return i(u(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(u(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(u(),"weekdaysMin","weekdays",2,d)}}})})(Pr);var Ti=Pr.exports;const xi=Le(Ti);var Hr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){var o="week",n="year";return function(a,l,s){var i=l.prototype;i.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=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(o);if(c.isBefore(d))return 1}var b=s(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),v=this.diff(b,o,!0);return v<0?s(this).startOf("week").week():Math.ceil(v)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Hr);var Ei=Hr.exports;const Ci=Le(Ei);var zr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.weekYear=function(){var a=this.month(),l=this.week(),s=this.year();return l===1&&a===11?s+1:a===0&&l>=52?s-1:s}}})})(zr);var Ni=zr.exports;const ki=Le(Ni);var Wr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n,a){n.prototype.dayOfYear=function(l){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return l==null?s:this.add(l-s,"day")}}})})(Wr);var Vi=Wr.exports;const Oi=Le(Vi);var Kr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrAfter=function(a,l){return this.isSame(a,l)||this.isAfter(a,l)}}})})(Kr);var Ii=Kr.exports;const Ri=Le(Ii);var Yr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(qe,function(){return function(o,n){n.prototype.isSameOrBefore=function(a,l){return this.isSame(a,l)||this.isBefore(a,l)}}})})(Yr);var Ai=Yr.exports;const Di=Le(Ai);Ae.extend(xi),Ae.extend($i),Ae.extend(Si),Ae.extend(Ci),Ae.extend(ki),Ae.extend(Oi),Ae.extend(Ri),Ae.extend(Di);const yt={format(e,t){return Ae(e).format(t)},parser(e,t){return Ae(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(),s=a.getDate(),i=6-l;return n!==0&&(l=l==0?7:l,i=7-l),Math.ceil((s+i)/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),s=Math.round((a.valueOf()-l.valueOf())/864e5);let i=a.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 a=new Date(Number(e),parseInt(t)-1,Number(o)),l=a.getTime();let s=a.getDay();if(n===0){const u=l-s*864e5,f=l+(6-s)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{s=s==0?7:s;const i=24*60*60*1e3,u=l-(s-1)*i,f=l+(7-s)*i,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]=yt.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=yt.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(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),a=e.getTime(),l=n.getTime(),s=t.getTime();return l>s?a>=s&&a<=l:a>=l&&a<=s}},Ur={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},Gr={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1}};function Bi(e,t,o){return{props:{...he,...$e,...Ur,...Gr},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[`${b}__input`]:!0})),S=y=>{d.value=y,i("update:modelValue",y),i("change",y)};let h=oe(n,"hintText"),w=r.ref(!1);const p=y=>{let L=y.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",L,y)},$=y=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let L=y.target.value;n.maxLength&&L.length>Number(n.maxLength)&&(L=L.slice(0,Number(n.maxLength))),i("blur",L,y)},I=()=>{i("clear","")},F=y=>{i("calendar-change",y)},V=(y,E,L)=>{i("panel-change",y,E,L)},k=y=>{i("visible-change",y)},N=Ee(r.computed(()=>n.longTermValue),"longTermText",ke.Near),A=Ee(r.computed(()=>n.longTermValue),"longTermValue",ke.Near);let C=null;const D=r.ref(re(n.longTerm)),W=y=>{if(D.value=y,i("update:longTerm",y),y){let E="";Array.isArray(A.value)?E=A.value.map((L,q)=>L||(Array.isArray(d.value)?d.value[q]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else i("update:modelValue",C)},z=re(n.isLongTerm);if(z){const y=()=>{if(D.value===!0){let E="";Array.isArray(A.value)?E=A.value.map((L,q)=>L||(Array.isArray(d.value)?d.value[q]:n.valueFormat?yt.format(new Date,n.valueFormat):new Date)):E=A.value,C=d.value,i("update:modelValue",E)}else _e(A.value,d.value)&&(D.value=!0)};y(),r.watch([()=>n.longTerm],([E])=>{D.value!==E&&y()})}const T=r.ref();return pe({focus:()=>{T?.value.focus()},blur:()=>{T?.value.blur()},handleOpen:()=>{T?.value.handleOpen()},handleClose:()=>{T?.value.handleClose()}}),()=>{const E={...a.attrs,ref:T,class:v.value,placeholder:f.placeholder.value,disabled:l.value||D.value,readonly:s.value,modelValue:d.value,valueFormat:n.valueFormat,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$,onCalendarChange:F,onPanelChange:V,onVisibleChange:k},L={};a.slots["range-separator"]&&(L["range-separator"]=a.slots["range-separator"]),a.slots.cell&&(L.default=a.slots.cell);const q=[],B=r.h(m.ElDatePicker,E,L);q.push(B);const x={default:()=>q};if(a.slots.default&&(x.label=a.slots.default),a.slots.fixedTip&&(x.fixedTip=a.slots.fixedTip),z){const J={label:N.value,disabled:s.value||l.value,modelValue:D.value,"onUpdate:modelValue":W},te=r.h(m.ElCheckbox,J),ne=r.h("div",{class:{[`${b}__append`]:!0}},[te]);x.append=()=>ne}const K={...ve(n,Ur,Gr),class:{[`${b}__wrapper`]:!0,"has-append":z},hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,K,x)}}}}const{componentName:Fi,create:qi,scope:Li}=Q("date-item"),Xr=qi(Bi(Fi,Li,ye)),Zr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...he,...$e,...Zr},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=k=>{d.value=k,i("update:modelValue",k),i("change",k)};let h=oe(n,"hintText"),w=r.ref(!1);const p=k=>{let A=k.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",A,k)},$=k=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let A=k.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,k)},I=()=>{i("clear","")},F=k=>{i("visible-change",k)},V=r.ref();return pe({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const N={...a.attrs,ref:V,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$,onVisibleChange:F},A={},C=[],D=r.h(m.ElTimePicker,N,A);C.push(D);const W={default:()=>C};a.slots.default&&(W.label=a.slots.default),a.slots.fixedTip&&(W.fixedTip=a.slots.fixedTip);const T={...ve(n,Zr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,T,W)}}}}const{componentName:ji,create:_i,scope:Pi}=Q("time-item"),Jr=_i(Mi(ji,Pi,ye)),Qr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Hi(e,t,o){return{props:{...he,...$e,...Qr},emits:["change","update:modelValue","blur","focus","clear"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=V=>{d.value=V,i("update:modelValue",V),i("change",V)};let h=oe(n,"hintText"),w=r.ref(!1);const p=V=>{let N=V.target.value;c.value=!0,ce(h.value)||(w.value=!0),i("focus",N,V)},$=V=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let N=V.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,V)},I=()=>{i("clear","")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},handleOpen:()=>{F?.value.handleOpen()},handleClose:()=>{F?.value.handleClose()}}),()=>{const k={...a.attrs,ref:F,class:v.value,placeholder:f.placeholder.value,disabled:l.value,readonly:s.value,modelValue:d.value,"onUpdate:modelValue":S,onClear:I,onFocus:p,onBlur:$},N={},A=[],C=r.h(m.ElTimeSelect,k,N);A.push(C);const D={default:()=>A};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const z={...ve(n,Qr),hintText:h.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,z,D)}}}}const{componentName:zi,create:Wi,scope:Ki}=Q("time-select-item"),eo=Wi(Hi(zi,Ki,ye));function to(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 no(e,t,o=20){if(typeof t=="string"&&(t=Se(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Ln(`${e}`,`${t}`);return to(n)}else{let n=Qt(`${e}`,Mn(`${t}`),20);return to(n)}}function Yi(e,t=-1,o=!1,n=3,a=","){return vt(e,t,o,n,a)}function ro(e,t,o,n,a=!0){if(e=="")return"";if(e=jn(e),t=Se(t),t==1)return e;if(n)e=no(e,t),o&&(e=="0"&&a?e=`${e}.`.padEnd(Se(o)+2,"0"):e=Qt(e,1,Se(o)));else{let l=-1*t;e=no(e,l)}return e}function oo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),a=en(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=re(t.maxInclude),a=en(e,t.max);(n&&a==1||!n&&(a==0||a==1))&&(o.maxValid=!1)}return o}const ao={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 Ui(e,t,o){return{props:{...he,...$e,...ao},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(!1),f=oe(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([T,y,E])=>{if(ce(T)){c.value="";return}const L=ro(T,y,E,!1);c.value!==L&&(c.value=L)},{immediate:!0});const d=r.computed(()=>{let T="";return u.value&&(T=c.value),T}),{t:b}=Oe.useFoxI18n(t),v=r.computed(()=>{let T=n.placeholder??"";return!u.value&&!ce(c.value)?T=Yi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):T=b(["placeholder",T]),T}),S=e,h=r.computed(()=>({[S]:!0,[`${S}__disabled`]:l.value,[`${S}__placeholder`]:c.value.length>0})),w=Ee(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:w.value??"right"});const p=r.ref(""),$=r.computed(()=>{let T=p.value;return ce(T)&&(T=n.errorTip??""),T}),I=r.ref(""),F=r.ref(!1),V=(T,y)=>{if(T=`${T}`,ce(T)){c.value="",f.value="",y.forEach(E=>{i(E,"")}),re(n.showTip)&&F.value&&(F.value=!1);return}if(T.length>=2){let E=T;if(E.charAt(0)=="-"&&(E=E.substring(1)),E.length>=2&&E.charAt(0)=="0"&&E.charAt(1)!="."){r.triggerRef(c);return}}if(T!="-"){if(!Gn(T)){r.triggerRef(c);return}if(n.integerLength!=-1&&Xn(T)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Zn(T)>Number(n.decimalLength)){r.triggerRef(c);return}let E=oo(T,n);if(E.maxValid===!1){p.value=E.message,r.triggerRef(c);return}}else if(n.min!=null&&Se(n.min)>=0){r.triggerRef(c);return}I.value=T,re(n.showTip)&&(F.value=T.length>0),c.value=T,f.value=ro(T,n.rates,n.precision,!0),y.forEach(E=>{i(E,f.value)})},k=T=>{V(T,["update:modelValue","input"])},N=T=>{V(T,["update:modelValue","change"])},A=T=>{if(u.value=!0,re(n.showTip)){let y=c.value;ce(y)&&(y=n.hintText),ce(y)||(I.value=y,F.value=!0)}p.value="",i("focus",f.value,T)},C=T=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&F.value===!0&&(F.value=!1)},0),!ce(c.value)){let y=oo(c.value,n);if(y.minValid===!1||y.maxValid===!1){p.value=y.message;return}}i("update:modelValue",f.value,T),i("blur",f.value,T)},D=()=>{i("clear","")},W=r.computed(()=>ct(n.unit)>0),z=r.ref();return pe({focus:()=>{z?.value.focus()},blur:()=>{z?.value.blur()},select:()=>{z?.value.select()}}),()=>{const y={...a.attrs,ref:z,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:v.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onInput:k,onChange:N,onFocus:A,onBlur:C},E={};a.slots.prepend&&(E.prepend=a.slots.prepend),a.slots.append&&(E.append=a.slots.append),a.slots.prefix&&(E.prefix=a.slots.prefix),a.slots.suffix?E.suffix=a.slots.suffix:W.value&&(E.suffix=()=>[n.unit]);const L=[],q=r.h(m.ElInput,y,E);L.push(q);const B={default:()=>L};a.slots.default&&(B.label=a.slots.default),a.slots.fixedTip&&(B.fixedTip=a.slots.fixedTip);const P={...ve(n,ao),errorTip:$.value,hintText:I.value,hintVisible:F.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,P,B)}}}}const{componentName:Gi,create:Xi,scope:Zi}=Q("money-item"),lo=Xi(Ui(Gi,Zi,ye)),io={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 Ji(e,t,o){return{props:{...he,...$e,...io},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0,[`${b}__append`]:k.value})),S=r.computed(()=>({[`${b}__unit`]:!0})),h=A=>{d.value=A,i("update:modelValue",A),i("input",A)},w=A=>{i("change",A)};let p=oe(n,"hintText"),$=r.ref(!1);const I=A=>{let D=A.target.value;c.value=!0,ce(p.value)||($.value=!0),i("focus",D,A)},F=A=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let D=A.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),i("blur",D,A)},V=()=>{i("clear","")},k=r.computed(()=>ct(n.unit)>0),N=r.ref();return pe({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()}}),()=>{const C={...a.attrs,ref:N,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:w,onInput:h,onFocus:I,onBlur:F},D={},W=[],z=r.h(m.ElInputNumber,C,D);W.push(z);const T={default:()=>W};a.slots.default&&(T.label=a.slots.default),a.slots.fixedTip&&(T.fixedTip=a.slots.fixedTip);const E={...ve(n,io),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};if(a.slots.append)T.append=a.slots.append;else if(k.value){const q={class:S.value},B=r.h("div",q,[n.unit]);T.append=()=>B}return r.h(o,E,T)}}}}const{componentName:Qi,create:es,scope:ts}=Q("input-number-item"),so=es(Ji(Qi,ts,ye));function Ue(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ge(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ns(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,a);const l=Re(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n,a))}};function os(){const e=r.getCurrentInstance();return new rs(e.proxy)}function $n(e,t,o){const n=Ue(e,t),a=Ue(e,o);if(n!==a)return!1;const l=Ge(e,t),s=Ge(e,o);return l===s}function uo(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 s=0;Array.isArray(l)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=uo(e,i,o,n);a.push(u)}else{let u=!1;for(let f of l){if(o==="text")u=Ue(e,f)===i;else if(o==="item")u=$n(e,f,i);else{let c=Ge(e,f);c==null&&(c=Ue(e,f)),u=c===i}if(u){a.push(f),l=ns(e,f);break}}if(!u)break}}return a}function as(e){return{text:e,value:e}}const co={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 ls(e,t,o){return{props:{...he,...$e,...co},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),b=r.computed(()=>d.value?d.value.map(X=>Ue(n,X)).join(" "):""),v=(M,X,j,R=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===M)return;c.value=M;const H=r.toRaw(M);if(R){const U=ae?.value.getCheckedNodes();if(U)if(n.multiple){const Y=[];U.forEach(Z=>{const se=(Z.pathNodes??[]).map(fe=>fe.data);Y.push(se)}),i("update:pathNodes",Y)}else{const Z=(U[0]?.pathNodes??[]).map(le=>le.data);i("update:pathNodes",Z)}i("update:modelValue",H),i("change",H)}}const O=uo(n,M,X,j);if(O===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,R&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}let _=!0;if(O.length!==d.value.length)_=!1;else for(let H=0;H<O.length;H++){const U=O[H],Y=d.value[H];if(Array.isArray(U)){if(!Array.isArray(Y)||U.length!==Y.length)_=!1;else for(let Z=0;Z<U.length;Z++)if(!$n(n,U[Z],Y[Z])){_=!1;break}}else $n(n,U,Y)||(_=!1);if(!_)break}if(!_){d.value=O;let H=[],U=[];O.forEach(Z=>{if(Array.isArray(Z)){let le=[],se=[];for(let fe of Z)le.push(Ge(n,fe)),n.valueType==="text"?se.push(Ue(n,fe)):n.valueType==="item"?se.push(fe):se.push(Ge(n,fe));H.push(le),U.push(se)}else H.push(Ge(n,Z)),n.valueType==="text"?U.push(Ue(n,Z)):n.valueType==="item"?U.push(Z):U.push(Ge(n,Z))}),c.value=H;const Y=r.toRaw(U);R&&(i("update:pathNodes",O),i("update:modelValue",Y),i("change",Y))}},S=r.ref([]),h=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,M=>re(M)),w=os(),p=async(M,X)=>{if(M){const j=await w.load("cascader",M,X);if(j.length>0)if(typeof j[0]=="string"){let _=j.map(H=>as(H));S.value=_}else S.value=j}};r.watch([()=>n.source,()=>n.params],async([M,X])=>{p(M,X)},{immediate:!(h.value||n.lazy)});let $=!1;const I=()=>{$||($=!0,p(n.source,n.params))};r.watch([()=>S.value,()=>n.modelValue],([M,X])=>{v(X,n.valueType,M,!1)}),n.lazy&&v(n.modelValue,"value",[],!1);let F=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async M=>{if(M!=null){V.value=!0;try{const X=await n.remoteMethod(M);S.value=X}catch(X){console.error(X)}V.value=!1}});const k=r.ref(!1),N=e,A=r.computed(()=>({[N]:!0})),C=r.computed(()=>{let M={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(M.multiple=!0),n.props&&Object.assign(M,n.props),n.lazy&&(M.lazy=!0,M.lazyLoad=async(X,j)=>{const R=await w.load("cascader",n.source,X,!0);j(R)}),M}),D=M=>{n.allowCreate?(i("update:modelValue",M),i("change",M),c.value=M):v(M,"value",S.value,!0)};let W=oe(n,"hintText"),z=r.ref(!1);const T=M=>{let j=M.target.value;k.value=!0,ce(W.value)||(z.value=!0),i("focus",j,M)},y=M=>{setTimeout(()=>{z.value&&(z.value=!1),k.value=!1},0);let j=M.target.value;n.maxLength&&j.length>Number(n.maxLength)&&(j=j.slice(0,Number(n.maxLength))),G.value||i("blur",j,M)},E=()=>{i("clear","")},L=r.ref(!1);let q=null;const B=()=>{n.showTooltip&&L.value===!1&&(q&&clearTimeout(q),q=setTimeout(()=>{L.value=!0},150))},x=()=>{q&&(clearTimeout(q),L.value=!1,q=null)},P=r.computed(()=>L.value||z.value),K=r.computed(()=>L.value?b.value:W.value),G=r.ref(!1),J=M=>{G.value=M,i("visible-change",M),M||i("selected")},te=M=>{i("remove-tag",M)},ne=M=>{i("expand-change",M)},ae=r.ref();return pe({focus:()=>{ae?.value.focus()},blur:()=>{ae?.value.blur()},getCheckedNodes:()=>ae?.value.getCheckedNodes()}),()=>{const X={...a.attrs,ref:ae,class:A.value,props:C.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:l.value||s.value,options:S.value,modelValue:c.value,onClear:E,onChange:D,onFocus:T,onBlur:y,onVisibleChange:J,onRemoveTag:te,expandChange:ne};typeof F=="function"&&(X["remote-method"]=F,X.loading=V.value);const j={};a.slots.option&&(j.default=a.slots.option),a.slots.empty&&(j.empty=a.slots.empty);const R=[],O=r.h(m.ElCascader,X,j);R.push(O);const _={default:()=>R};a.slots.default&&(_.label=a.slots.default),a.slots.fixedTip&&(_.fixedTip=a.slots.fixedTip);const U={...ve(n,co),hintText:K.value,hintVisible:P.value,prop:`${n.prop??a.attrs.name}_item`,onMouseover:B,onMouseleave:x};return h.value&&!n.lazy&&(U["appear-listen"]=!0,U.onAppear=I),r.h(o,U,_)}}}}const{componentName:is,create:ss,scope:us}=Q("cascader-item"),fo=ss(ls(is,us,ye)),ho={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function cs(e,t,o){return{props:{...he,...$e,...ho},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),{toLocaleRefs:u}=Oe.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=oe(n,"modelValue"),b=e,v=r.computed(()=>({[b]:!0})),S=N=>{d.value=N,i("update:modelValue",N),i("input",N)},h=N=>{i("change",N)},w=N=>{i("select",N)};let p=oe(n,"hintText"),$=r.ref(!1);const I=N=>{let C=N.target.value;c.value=!0,ce(p.value)||($.value=!0),i("focus",C,N)},F=N=>{setTimeout(()=>{$.value&&($.value=!1),c.value=!1},0);let C=N.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),i("blur",C,N)},V=()=>{i("clear","")},k=r.ref();return pe({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()},select:()=>{k?.value.select()}}),()=>{const A={...a.attrs,ref:k,class:v.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:l.value,readonly:s.value,modelValue:d.value,onClear:V,onChange:h,onInput:S,onFocus:I,onBlur:F,onSelect:w},C={};a.slots.prepend&&(C.prepend=a.slots.prepend),a.slots.append&&(C.append=a.slots.append),a.slots.prefix&&(C.prefix=a.slots.prefix),a.slots.suffix&&(C.suffix=a.slots.suffix),a.slots.option&&(C.default=a.slots.option);const D=[],W=r.h(m.ElAutocomplete,A,C);D.push(W);const z={default:()=>D};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,ho),hintText:p.value,hintVisible:$.value,prop:`${n.prop}_item`};return r.h(o,y,z)}}}}const{componentName:fs,create:ds,scope:hs}=Q("autocomplete-item"),go=ds(cs(fs,hs,ye));function gs(e,t,o,n,a){let l=[];Array.isArray(e)?l=e:l=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[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;s.push(d[o])}return s}if(Array.isArray(i))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;s.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;s.push(d[o]),u=d[a]}}return s}let ms=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=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function ps(){const e=r.getCurrentInstance();return new ms(e.proxy)}const mo={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 ys(e,t){return{props:{...mo},setup(o,{attrs:n,slots:a}){const l=ps(),s=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{s.value=await l.load(o.sourceType,f,c)},{immediate:!0});const i=r.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let f=gs(o.modelValue,s.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:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):r.h(u,f,{default:()=>i.value}):r.h(u,f,i.value)}}}}const{componentName:of,create:bs,scope:af}=Q("mapping"),_t=bs(ys());function ws(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ss(e,t){return{props:{...mo},setup(o,{attrs:n,slots:a}){return()=>{const l={default:s=>{const i=ws(s.row,s.column.property);return a.default?r.h(_t,{...o,modelValue:i},{default:a.default}):r.h(_t,{...o,modelValue:i})}};return r.h(m.ElTableColumn,{...n},l)}}}}const{componentName:lf,create:vs,scope:sf}=Q("table-mapping-column"),po=vs(Ss()),$s=Symbol.for("TableStateKey");function yo(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function Ts(e,t){return{props:{},setup(o,{attrs:n}){const a=r.inject($s,{});return()=>{const l=a.currentRow?a.currentRow.value:null,s={default:i=>{const u=yo(i.row,i.column.property),f=l?yo(l,i.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}})]),v={class:{"el-radio":!0,"is-checked":c}};return r.h("label",v,[b])}};return r.h(m.ElTableColumn,{...n},s)}}}}const{componentName:uf,create:xs,scope:cf}=Q("table-radio-column"),bo=xs(Ts()),Es={},Cs={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"},Ns=[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 ks(e,t){return r.openBlock(),r.createElementBlock("svg",Cs,Ns)}const Vs=Ve(Es,[["render",ks]]),{componentName:df,create:Os,scope:hf}=Q("table-setting"),Is={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:"不固定"}},Rs=Os({components:{FoxPopover:m.ElPopover,FoxCheckbox:m.ElCheckbox,FoxCheckboxGroup:m.ElCheckboxGroup,FoxButton:m.ElButton,FoxIcon:m.ElIcon,DragIcon:Vs,Download:De.Download,RefreshLeft:De.RefreshLeft},props:{...Is},emits:["update:modelValue","change","close"],setup(e,{emit:t,attrs:o}){let n=[];const a=r.ref([]),l=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed===""||x.fixed===!0||x.fixed==="left")),s=r.computed(()=>a.value.filter(x=>x.label===""||x.type?!1:x.fixed==="right")),i=r.computed(()=>a.value.filter(x=>!(x.label===""||x.type||x.fixed!==void 0))),u=r.computed(()=>(l.value.length>0||s.value.length>0)&&i.value.length>0),f=r.computed(()=>l.value.length>0),c=r.computed(()=>s.value.length>0),d=x=>x.length>1,b=x=>{const P=[];a.value=x.map((G,J)=>(!(G.label===""||G.type)&&G.visible!==!1&&P.push(G.prop),{...G,sortIndex:J})),i.value.length+l.value.length+s.value.length===P.length?$.value=!0:P.length>0&&(I.value=!0),k.value=P},v=x=>x?x.type?x.type:x.label?x.prop:"":"",S=(x,P)=>{if(x.length!==P.length)return!1;const K=x.map(G=>v(G));for(let G of P){const J=v(G);if(K.indexOf(J)===-1)return!1}return!0},h=x=>{if(!x){const P=e.tableRef.getColumnSetting(),K=P.srcColumnPropertyList;n=K.map((G,J)=>({...G,sortIndex:J})),x=P.columnPropertyList,x&&x.length>0&&S(K,x)||(x=K)}b(x)},w=()=>{e.tableRef.setColumnSetting(a.value)},p=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),$=r.ref(!1),I=r.ref(!1),F=x=>{const P=[];a.value.forEach(G=>{x&&!(G.label===""||G.type)&&P.push(G.prop),G.visible=x}),$.value=!1,I.value=!1,i.value.length+l.value.length+s.value.length===P.length?$.value=!0:P.length>0&&(I.value=!0),k.value=P,w()},V=()=>{h(n),w()},k=r.ref([]),N=x=>{a.value.forEach(K=>{if(K.label===""||K.type)return;const G=x.indexOf(K.prop)!==-1;K.visible=G}),$.value=!1,I.value=!1;const P=i.value.length+l.value.length+s.value.length;x.length===P?$.value=!0:x.length>0&&(I.value=!0),w()},A=()=>{h()};r.onMounted(()=>{setTimeout(()=>{h()},50)});const C={currentRow:null,index:null,roleType:null},D=x=>x?x.dataset&&x.dataset.role==="row"?x:x.tagName.toLowerCase()!=="body"?(x=x.parentElement,D(x)):null:null;return{attrs:o,leftFixedColumns:l,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:$,isIndeterminate:I,handleCheckAllChange:F,handleReset:V,checkedValue:k,handleCheckChange:N,onShow:A,onDragStart:x=>{const P=x.currentTarget;P&&P.dataset&&(C.roleType=P.dataset.roleType,C.index=P.dataset.index)},onDragEnd:x=>{C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null),C.index=null,C.roleType=null},onDragOver:x=>{const P=x.currentTarget;x.relatedTarget;const K=D(P);if(!K)return;const G=K.dataset&&K.dataset.roleType;C.roleType===G&&(x.preventDefault(),C.currentRow&&C.currentRow!==K&&C.currentRow.classList.remove("is-dragover"),K.classList.add("is-dragover"),C.currentRow=K)},onDragLeave:x=>{x.preventDefault(),C.currentRow&&(C.currentRow.classList.remove("is-dragover"),C.currentRow=null)},onDrop:x=>{const P=x.currentTarget,K=D(P);if(!K)return;const G=K.dataset&&K.dataset.roleType;if(C.roleType!==G)return;x.preventDefault();const J=Number(C.index),te=Number(K.dataset.index);if(J!==te){if(J<te){const ne=a.value[J];a.value.splice(J,1),a.value.splice(te,0,ne)}else{const ne=a.value[J];a.value.splice(J,1),a.value.splice(te+1,0,ne)}b(a.value),w()}},toLeftFixed:x=>{const P=a.value[x];P.fixed="left",w()},toRightFixed:x=>{const P=a.value[x];P.fixed="right",w()},toUnFixed:x=>{const P=a.value[x];P.fixed=void 0,w()},checkboxLabelStyle:p}}}),As={class:"fox-table-setting"},Ds={class:"fox-table-setting__header"},Bs={class:"fox-table-setting__body"},Fs={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},qs={key:0,class:"fox-table-setting__body-title"},Ls=["data-index","draggable"],Ms={class:"tools-item"},js={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},_s={key:0,class:"fox-table-setting__body-title"},Ps=["data-index","draggable"],Hs={class:"tools-item"},zs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ws={key:0,class:"fox-table-setting__body-title"},Ks=["data-index","draggable"],Ys={class:"tools-item"};function Us(e,t,o,n,a,l){const s=r.resolveComponent("FoxCheckbox"),i=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),b=r.resolveComponent("Download"),v=r.resolveComponent("fox-checkbox"),S=r.resolveComponent("FoxCheckboxGroup"),h=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(h,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",As,[r.createElementVNode("div",Ds,[r.createVNode(s,{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(i,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Bs,[r.createVNode(S,{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",qs,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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[2]||(t[2]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[3]||(t[3]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[4]||(t[4]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[5]||(t[5]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{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",Ms,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>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:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ls))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",_s,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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[7]||(t[7]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[8]||(t[8]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[9]||(t[9]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[10]||(t[10]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(s,{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",Hs,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>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:p=>e.toRightFixed(w.sortIndex)},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ps))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",zs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ws,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]=(...p)=>e.onDragStart&&e.onDragStart(...p)),onDragend:t[12]||(t[12]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDrop:t[13]||(t[13]=(...p)=>e.onDrop&&e.onDrop(...p)),onDragover:t[14]||(t[14]=(...p)=>e.onDragOver&&e.onDragOver(...p)),onDragleave:t[15]||(t[15]=(...p)=>e.onDragLeave&&e.onDragLeave(...p))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(v,{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",Ys,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:p=>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:p=>e.toLeftFixed(w.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(b)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ks))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Tn=Ve(Rs,[["render",Us]]);let Gs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,a,l,s,i){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,s,i]);const u=Re(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(je(l)&&r.isReactive(l)&&(l=r.toRaw(l)),await Reflect.apply(u,null,[o,n,a,l,s,i]))}};function Xs(){const e=r.getCurrentInstance();return new Gs(e.proxy)}class Zs{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Re(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Re(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Re(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Js(){const e=r.getCurrentInstance();return new Zs(e.proxy)}const Qs=Symbol.for("TableStateKey");function eu(e,t){let o=t.split("."),n=e;for(let a=0;a<o.length;a++){let l=o[a],s=0,i=l.indexOf("["),u=i==-1?-1:l.indexOf("]",i);for(;i!==-1&&u!==-1;){let f=l.substring(i+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(s==0){let d=l.substring(0,i);n=n[d][c]}else n=n[c];s++}i=l.indexOf("[",u),u=i==-1?-1:l.indexOf("]",i)}s===0&&(n=n[l])}return n}function xn(e,t){return e.filter(n=>{for(let a in t){const l=t[a],s=eu(n,a);if(l!==s)return!1}return!0})}const wo={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazy:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},So={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},En={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 tu(e,t,o){return{inheritAttrs:!1,props:{...he,...$e,...wo,...So,...En},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,a){const{locale:l}=Oe.useFoxI18n(t),{emitEvent:s}=ge({componentName:e,validateHandler:{getValue(...R){return I.value}}},n.prop??a.attrs.name),i=e,u=r.computed(()=>({[i]:!0})),f=r.computed(()=>({[`${i}__setting`]:!0})),c=r.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),b=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,R=>{b.value=R});const v=R=>{b.value=R,s("page-index-change",R)},S=r.ref(n.pageSize);r.watch(()=>n.pageSize,R=>{S.value=R});const h=R=>{S.value=R,s("page-size-change",R)},w=r.shallowRef({}),p=r.computed(()=>({...w.value,...n.params??{},...n.baseParams??{}})),$=r.ref(0),I=r.ref(),F=Xs();let V=!0;const k=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:re(n.autoLoad),N=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,R=>re(R)),A=async(R,O,_,H)=>{try{const U=await F.load("table",R,O,_,H,V,l.value);$.value=U.totalSize,I.value=U.page}catch(U){console.error("[FoxUI] Load Table Data Fail",U),$.value=0,I.value=[]}V=!1,setTimeout(()=>{s("loaded-data")},250)};r.watch([b,S],([R,O],[_,H])=>{O!==H&&(b.value=1,R=1),A(n.data,R,O,p.value)}),r.watch([()=>n.data,p],([R,O],[_,H])=>{k()&&(R!==_&&(V=!0),!(!Array.isArray(R)&&_e(R,_)&&_e(O,H))&&A(R,b.value,S.value,O))},{deep:!0});const C=(R={},O=!1)=>new Promise(_=>{w.value=r.toRaw(R??{}),r.triggerRef(w),O||(b.value=n.pageIndex??1),r.nextTick(async()=>{await A(n.data,b.value,S.value,p.value),_()})}),D=()=>{$.value=0,I.value=[]};let W=!1;const z=()=>{W||(W=!0,C())};k()&&!N.value&&C();const T=r.ref(null);r.provide(Qs,{currentRow:T});const y=(R,O)=>{T.value=R,s("current-change",R,O)},E=(R,O,_)=>{s("row-click",R,O,_),re(n.rowClickSelectable)===!0&&j?.value.toggleRowSelection(R)},L=[],q=(R,O)=>{if(s("expand-change",R,O),re(n.uniqueExpansion))if(Array.isArray(O)&&O.length==0){const _=L.length;L.splice(0,_)}else{L.forEach(H=>{H!==R&&j?.value.toggleRowExpansion(H,!1)});const _=L.length;L.splice(0,_,R)}},B=a.attrs.id??n.prop??a.attrs.name,x=Js(),P=r.ref([]);let K=[];const G=()=>({srcColumnPropertyList:K.map(O=>({...O})),columnPropertyList:P.value}),J=R=>{P.value=[...R],ne()},te=async()=>{const R=await x.load(B);R&&(P.value=R)},ne=()=>{x.save(B,P.value)},ae=()=>{x.remove(B)};te();const M=R=>R?R.type?R.type:R.label?R.prop:"":"",X=r.computed(()=>{if(typeof a.slots.default=="function"){const R=a.slots.default(),O=new Map;if(K=[],R.forEach(_=>{const H=_;if(!H.props)return;const U=M(H.props);O.set(U,_);const Y={label:"",prop:""};Object.assign(Y,H.props),K.push(Y)}),P.value.length===K.length){const _=[];for(let H of P.value){const U=M(H),Y=O.get(U);if(!Y)return R;if(H.visible===!1)continue;const Z=Y;Z.props.fixed=H.fixed,_.push(Z)}return _}return R}return[]}),j=r.ref();return pe({clearSelection:()=>j?.value.clearSelection(),getSelectionRows:()=>j?.value.getSelectionRows(),toggleRowSelection:(R,O)=>{j?.value.toggleRowSelection(R,O)},toggleRowSelectionByProp:(R,O)=>{if(!I.value)return;const _=xn(I.value,R);_.length!==0&&_.forEach(H=>{j?.value.toggleRowSelection(H,O)})},toggleAllSelection:()=>{j?.value.toggleAllSelection()},toggleRowExpansion:(R,O)=>{j?.value.toggleRowExpansion(R,O)},toggleRowExpansionByProp:(R,O)=>{if(!I.value)return;const _=xn(I.value,R);_.length!==0&&_.forEach(H=>{j?.value.toggleRowExpansion(H,O)})},setCurrentRow:R=>{j?.value.setCurrentRow(R)},setCurrentRowByProp:R=>{if(!I.value)return;const O=xn(I.value,R);O.length!==0&&j?.value.setCurrentRow(O[0])},getCurrentRow:()=>T.value,clearSort:()=>{j?.value.clearSort()},clearFilter:R=>{j?.value.clearFilter(R)},doLayout:()=>{j?.value.doLayout()},sort:(R,O)=>{j?.value.sort(R,O)},scrollTo:(R,O)=>{j?.value.scrollTo(R,O)},setScrollTop:R=>{j?.value.setScrollTop(R)},setScrollLeft:R=>{j?.value.setScrollLeft(R)},loadData:C,clearData:D,getData(){return I.value},getTotalSize(){return $.value},getPageIndex(){return b.value},getPageSize(){return S.value},getColumnSetting:G,setColumnSetting:J,removeColumnSetting:ae}),()=>{const O={...a.attrs,onCurrentChange:y,onRowClick:E,onExpandChange:q,data:I.value,ref:j,class:u.value},_={};a.slots.default&&(_.default=()=>X.value),a.slots.append&&(_.append=a.slots.append),a.slots.empty&&(_.empty=a.slots.empty);const H=[],U=r.h(m.ElTable,O,_);H.push(U);let Y=null;if(typeof a.slots.pagination=="function")Y=a.slots.pagination();else if(n.showPagination){const Ce={class:d.value,total:$.value,pageSize:S.value,"onUpdate:pageSize":h,pageSizes:n.pageSizes,currentPage:b.value,"onUpdate:currentPage":v,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};Y=r.h(m.ElPagination,Ce)}if(n.showSetting){const Ce=[];Y&&Ce.push(Y);const Xe=r.h(m.ElIcon,{class:f.value},{default:()=>r.h(De.Setting)}),lt=Qn(n,En),it=r.h(Tn,{...lt,tableRef:{getColumnSetting:G,setColumnSetting:J,removeColumnSetting:ae}},{default:()=>Xe});Ce.push(it);const Rn=r.h("div",{class:c.value},Ce);H.push(Rn)}else Y&&H.push(Y);const Z={default:()=>H},se={...ve(n,wo,So,En),prop:`${n.prop}_item`};return se.contentClass=`${i}__wrap`,se.errorMarkClass="is-table-error",N.value&&k()&&(se["appear-listen"]=!0,se.onAppear=z),r.h(o,se,Z)}}}}const{componentName:nu,create:ru,scope:ou}=Q("table-item"),vo=ru(tu(nu,ou,ye));function nt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let lu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const a=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}};function iu(){const e=r.getCurrentInstance();return new lu(e.proxy)}function $o(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=nt(e,t),a=nt(e,o);if(n!==a)return!1;const l=bt(e,t),s=bt(e,o);return l===s}function su(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 s=!1;if(o==="text")s=nt(e,l)===t;else if(o==="item")s=$o(e,l,t);else{let i=bt(e,l);i==null&&(i=nt(e,l)),s=i===t}if(s){a=l;break}}return a}function uu(e){return{text:e,value:e}}function cu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const To={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 fu(e,t,o){return{inheritAttrs:!0,props:{...he,...$e,...To},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref(null),f=r.ref(null),c=(N,A,C,D=!0)=>{const W=su(n,N,A,C);if(W===null){if(f.value===null)return;f.value=null,u.value=null,D&&(i("update:modelValue",null),i("change",null));return}if(!$o(n,W,f.value)){u.value=N;const T=r.toRaw(W);f.value=T;let y=null;n.valueType==="text"?y=nt(n,T):n.valueType==="item"?y=T:y=bt(n,T),D&&(i("update:modelValue",y),i("change",y))}},d=r.ref([]),b=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>re(N)),v=iu(),S=async(N,A)=>{if(N){const C=await v.load("radio",N,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>uu(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([N,A])=>{S(N,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,A])=>{c(A,n.valueType,N,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=N=>{c(N,"value",d.value,!0)};let F=oe(n,"hintText"),V=oe(n,"hintVisible");const k=(N,A)=>{const C=[];return N.forEach((D,W)=>{const z=bt(n,D),T=nt(n,D);let y=au(n,D);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=cu(n,D,W)??{},L=`${z}_${W}`,q={...E,key:L,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElRadioButton,q,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElRadio,q,{default:()=>A(D)})):C.push(r.h(m.ElRadio,q,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:I},C=[],D={};a.slots.options?D.default=a.slots.options:D.default=()=>k(d.value,a.slots.text);const W=r.h(m.ElRadioGroup,A,D);C.push(W);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,To),hintText:F.value,hintVisible:V.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:du,create:hu,scope:gu}=Q("radio-item"),xo=hu(fu(du,gu,ye));function rt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function mu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class pu{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=Re(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(je(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n))}}function yu(){const e=r.getCurrentInstance();return new pu(e.proxy)}function Eo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=rt(e,t),a=rt(e,o);if(n!==a)return!1;const l=ot(e,t),s=ot(e,o);return l===s}function bu(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 s of n){let i=!1;if(o==="text")i=rt(e,s)===l;else if(o==="item")i=Eo(e,s,l);else{let u=ot(e,s);u==null&&(u=rt(e,s)),i=u===l}if(i){a.push(s);break}}}),a}function wu(e){return{text:e,value:e}}function Su(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Co={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},lazyLoad:{type:[Boolean,String],default:!1}};function vu(e,t,o){return{inheritAttrs:!1,props:{...he,...$e,...Co},emits:["change","update:modelValue"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=r.ref([]),f=r.ref([]),c=(N,A,C,D=!0)=>{const W=bu(n,N,A,C);if(W===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],D&&(i("update:modelValue",[]),i("change",[]));return}let z=!0;if(W.length!==f.value.length)z=!1;else for(let T=0;T<W.length;T++){const y=W[T],E=f.value[T];if(!Eo(n,y,E)){z=!1;break}}if(!z){f.value=W;let T=[],y=[];W.forEach(L=>{T.push(ot(n,L)),n.valueType==="text"?y.push(rt(n,L)):n.valueType==="item"?y.push(L):y.push(ot(n,L))}),u.value=T;const E=r.toRaw(y);D&&(i("update:modelValue",E),i("change",E))}},d=r.ref([]),b=Ee(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,N=>re(N)),v=yu(),S=async(N,A)=>{if(N){const C=await v.load("checkbox",N,A);if(C.length>0)if(typeof C[0]=="string"){let z=C.map(T=>wu(T));d.value=z}else d.value=C}};r.watch([()=>n.source,()=>n.params],async([N,A])=>{S(N,A)},{immediate:!b.value});let h=!1;const w=()=>{h||(h=!0,S(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([N,A])=>{c(A,n.valueType,N,!1)});const p=e,$=r.computed(()=>({[p]:!0,[`is-${n.direction}`]:!0})),I=N=>{c(N,"value",d.value,!0)};let F=oe(n,"hintText"),V=oe(n,"hintVisible");const k=(N,A)=>{const C=[];return N.forEach((D,W)=>{const z=ot(n,D),T=rt(n,D);let y=mu(n,D);l.value===!0&&(y=l.value),s.value===!0&&(y=s.value);const E=Su(n,D,W)??{},L=`${z}_${W}`,q={...E,key:L,class:n.itemClass,label:z,disabled:y,size:n.size,border:re(n.border)};n.itemType==="button"?C.push(r.h(m.ElCheckboxButton,q,{default:()=>[T]})):typeof A=="function"?C.push(r.h(m.ElCheckbox,q,{default:()=>A(D)})):C.push(r.h(m.ElCheckbox,q,{default:()=>[T]}))}),C};return()=>{const A={...a.attrs,class:$.value,disabled:l.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:Se(n.max),min:Se(n.min),onChange:I},C=[],D={};a.slots.options?D.default=a.slots.options:D.default=()=>k(d.value,a.slots.text);const W=r.h(m.ElCheckboxGroup,A,D);C.push(W);const z={default:()=>C};a.slots.default&&(z.label=a.slots.default),a.slots.fixedTip&&(z.fixedTip=a.slots.fixedTip);const y={...ve(n,Co),hintText:F.value,hintVisible:V.value,prop:`${n.prop??a.attrs.name}_item`};return b.value&&(y["appear-listen"]=!0,y.onAppear=w),r.h(o,y,z)}}}}const{componentName:$u,create:Tu,scope:xu}=Q("checkbox-item"),No=Tu(vu($u,xu,ye)),ko={modelValue:{type:[Number,String],required:!1}};function Eu(e,t,o){return{props:{...he,...$e,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue",h=>Se(h)),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),v=r.ref(!1);const S=r.ref();return pe({}),()=>{const w={...a.attrs,ref:S,class:c.value,readonly:s.value||l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElRate,w,p);$.push(I);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const k={...ve(n,ko),hintText:b.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:Cu,create:Nu,scope:ku}=Q("rate-item"),Vo=Nu(Eu(Cu,ku,ye)),Oo={modelValue:{type:[Boolean,String,Number],required:!1}};function Vu(e,t,o){return{props:{...he,...$e,...Oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),{emitEvent:i}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),u=oe(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=h=>{i("update:modelValue",h),i("change",h)};let b=oe(n,"hintText"),v=oe(n,"hintVisible");const S=r.ref();return pe({}),()=>{const w={...a.attrs,ref:S,class:c.value,readonly:s.value,disabled:l.value,modelValue:u.value,onChange:d},p={},$=[],I=r.h(m.ElSwitch,w,p);$.push(I);const F={default:()=>$};a.slots.default&&(F.label=a.slots.default),a.slots.fixedTip&&(F.fixedTip=a.slots.fixedTip);const k={...ve(n,Oo),hintText:b.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,k,F)}}}}const{componentName:Ou,create:Iu,scope:Ru}=Q("switch-item"),Io=Iu(Vu(Ou,Ru,ye)),Ro={modelValue:{type:[String,Number,Boolean],required:!1}};function Au(e,t,o){return{props:{...he,...$e,...Ro},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,a){const l=xe(r.computed(()=>n.disabled)),s=Te(r.computed(()=>n.readonly)),i=r.ref(!1),{emitEvent:u}=ge({componentName:e,get validate(){return!l.value&&!s.value}},n.prop??a.attrs.name),f=oe(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),b=V=>{u("update:modelValue",V),u("change",V)};let v=oe(n,"hintText"),S=r.ref(!1);const h=V=>{let N=V.target.value;i.value=!0,ce(v.value)||(S.value=!0),u("focus",N,V)},w=V=>{setTimeout(()=>{S.value&&(S.value=!1),i.value=!1},0);let N=V.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),$.value||u("blur",N,V)},p=()=>{u("clear","")},$=r.ref(!1),I=V=>{$.value=V,u("visible-change",V),V||u("selected")},F=r.ref();return pe({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()}}),()=>{const k={...a.attrs,ref:F,class:d.value,disabled:l.value||s.value,modelValue:f.value,"onUpdate:modelValue":b,onClear:p,onFocus:h,onBlur:w,onVisibleChange:I},N={};a.slots.option&&(N.default=a.slots.option);const A=[],C=r.h(m.ElTreeSelect,k,N);A.push(C);const D={default:()=>A};a.slots.default&&(D.label=a.slots.default),a.slots.fixedTip&&(D.fixedTip=a.slots.fixedTip);const z={...ve(n,Ro),hintText:v.value,hintVisible:S.value,prop:`${n.prop}_item`};return r.h(o,z,D)}}}}const{componentName:Du,create:Bu,scope:Fu}=Q("tree-select-item"),Ao=Bu(Au(Du,Fu,ye)),qu=Symbol.for("InnerPageScopeKey"),Lu=Symbol.for("PageWrapperKey");function Mu(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(qu,!0);const a={};r.provide(Lu,a);const l=u=>{typeof a.beforeClose=="function"&&a.beforeClose()},s=r.ref(!0),i=u=>{s.value=u};return()=>{const f={...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":l},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(m.ElDialog,f,c)}}}}const{componentName:gf,create:ju,scope:mf}=Q("dialog-item"),Do=ju(Mu());function _u(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})),s=r.computed(()=>o.icon?{[`${a}__icon`]:!0,[`${a}__icon-${o.type}`]:!0}:{[`${a}__mark`]:!0,[`${a}__mark-${o.type}`]:!0}),i=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 h={class:s.value,style:i.value};c=r.h(o.icon??"div",h)}const d={class:u.value,style:f.value},b=n.default?n.default():[],v=r.h("div",d,b),S={class:l.value};return o.textPosition==="right"?r.h("div",S,[c,v]):r.h("div",S,[v,c])}}}}const{componentName:Pu,create:Hu,scope:pf}=Q("indicator"),Bo=Hu(_u(Pu));function zu(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 Wu={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 Ku(e,t){return{props:{...Wu},setup(o,n){const a=r.ref(!0),l=r.ref(null),s=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}),i=c=>{if(c&&re(o.showOverflowTooltip)){const d=c.clientWidth;zu(c,b=>{a.value=b<=d})}};let u=null;r.onMounted(()=>{if(!re(o.showOverflowTooltip))return;const c=l.value;i(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{i(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 v=o.highlightFilter;if(c.indexOf(v)!==-1){const h=c.replace(new RegExp(v,"g"),`<span>${v}</span>`);d.innerHTML=h,d.class["is-highlight"]=!0,b=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const v=o.highlightFilter(c);v&&(d.innerHTML=v,d.class["is-highlight"]=!0,b=r.h(o.tag,d))}return b};return()=>{const c={},d={...n.attrs,class:{...s.value},ref:l};if(re(o.numberFormat)&&typeof n.slots.default=="function"){const h=n.slots.default();if(Array.isArray(h)&&h.length===1){const w=h[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const p=Se(o.digits),$=Se(o.decimalLength),I=re(o.autoPadding);let F=`${h[0].children}`,V=F.split("").reverse().join("");V=vt(V,$,I,p,o.separator),F=V.split("").reverse().join("");let k=null;o.highlightFilter!==void 0&&(k=f(F,d)),k||(d.innerHTML=F,k=r.h(o.tag,d)),c.default=()=>k}}}else{let h=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const w=n.slots.default();if(Array.isArray(w)&&w.length===1){const p=w[0].type.toString();if(p==="Symbol(Text)"||p==="Symbol(v-txt)"){const $=`${w[0].children}`;h=f($,d),h||(d.innerHTML=$,h=r.h(o.tag,d))}}}h||(h=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>h}const v={disabled:a.value};return c.content=n.slots.default,r.h(m.ElTooltip,v,c)}}}}const{componentName:Yu,create:Uu,scope:yf}=Q("text"),Fo=Uu(Ku(Yu)),Gu={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:De.ArrowUp}};function Xu(e,t,o){return{props:{...Gu},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}),s=oe(n,"modelValue"),i=r.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),c=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const h={class:u.value},w=r.h("span",h,[i.value]);d.push(w)}const b={class:f.value},v=o(n.icon,b);return v&&d.push(v),r.h("div",{class:l.value,onClick:c},d)}}}}const{componentName:Zu,create:Ju,scope:Qu}=Q("more-button"),qo=Ju(Xu(Zu,Qu,(e,t)=>(e=e??De.ArrowUp,r.h(m.ElIcon,t,{default:()=>[r.h(e)]})))),{componentName:ec,create:tc,scope:wf}=Q("tour"),nc=tc({components:{Close:De.Close,ElPopover:m.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=ec,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),a=r.ref({}),l=r.computed(()=>`${o}`),s=r.computed(()=>{const{offset:S,maskWidth:h,maskHeight:w}=e,{width:p,height:$,left:I,top:F}=a.value,V=e.steps[n.active].offset??S,k=[I+p/2,F+$/2],N=Number(h||p),A=Number(w||$);return{width:`${N+ +V.left+V.right}px`,height:`${A+V.top+V.bottom}px`,top:`${k[1]-A/2-+V.top}px`,left:`${k[0]-N/2-+V.left}px`}}),i=S=>{S=="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=S=>S.popoverWidth??e.width,f=S=>S.location??e.location,c=()=>{const S=document.querySelector(`${e.steps[n.active].target}`),h=bn(S);a.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},b=()=>{e.closeOnClickOverlay&&d()},v=(S,h=0)=>{S&&c(),e.steps,n.active=h,n.showTour=S,n.showPopup=S};return r.onMounted(()=>{v(e.modelValue,e.current)}),r.watch(()=>e.modelValue,S=>{v(S)}),{...r.toRefs(n),classes:l,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:b}}}),rc={key:0,class:"fox-tour__content"},oc={key:0,class:"fox-tour__content-top"},ac={class:"fox-tour__content-inner"},lc={class:"fox-tour__content-bottom"},ic={class:"fox-tour__content-bottom-init"},sc={class:"fox-tour__content-bottom-operate"},uc={key:1,class:"fox-tour__content fox-tour__content-tile"},cc={class:"fox-tour__content-inner"};function fc(e,t,o,n,a,l){const s=r.resolveComponent("Close"),i=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",rc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",oc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(s,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",ac,r.toDisplayString(f.content),1),r.createElementVNode("div",lc,[r.createElementVNode("div",ic,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",sc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(i,{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(i,{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(i,{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",uc,[r.createElementVNode("div",cc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const Lo=Ve(nc,[["render",fc]]);function Cn(e){let t=e.offsetHeight;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=o.offsetHeight,document.body.removeChild(o)}return t}const be=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Me=e=>e==null,Mo=10;function dc(e,t){return e>t&&e>Mo?"horizontal":t>e&&t>Mo?"vertical":""}function hc(){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 i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=dc(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function gc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function mc(e){e.stopPropagation()}function pc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&mc(e)}class yc{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=gc()}open(t){this.el=t;const o=hc(),n=(a,l,s,i,u)=>{this.updateMove({x:l,y:s})};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()&&pc(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 bc(e,t){return new yc(e,t)}var jo;const Nn=typeof window<"u";Nn&&((jo=window?.navigator)!=null&&jo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let at=[];const _o=e=>{const t=e;t.key==="Escape"&&at.forEach(o=>o(t))},wc=e=>{r.onMounted(()=>{at.length===0&&document.addEventListener("keydown",_o),Nn&&at.push(e)}),r.onBeforeUnmount(()=>{at=at.filter(t=>t!==e),at.length===0&&Nn&&document.removeEventListener("keydown",_o)})},kn="fox-focus-trap.focus-after-trapped",Vn="fox-focus-trap.focus-after-released",Sc="fox-focus-trap.focusout-prevented",Po={cancelable:!0,bubbles:!1},vc={cancelable:!0,bubbles:!1},Ho="foxFocusAfterTrapped",zo="foxFocusAfterReleased",$c=Symbol("foxFocusTrap"),On=r.ref(),Pt=r.ref(0),In=r.ref(0);let Ht=0;const Wo=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},Tc=(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},Ko=(e,t)=>{for(const o of e)if(!Tc(o,t))return o},xc=e=>{const t=Wo(e),o=Ko(t,e),n=Ko(t.reverse(),e);return[o,n]},Ec=e=>e instanceof HTMLInputElement&&"select"in e,ze=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),In.value=window.performance.now(),e!==o&&Ec(e)&&t&&e.select()}};function Yo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Cc=()=>{let e=[];return{push:n=>{const a=e[0];a&&n!==a&&a.pause(),e=Yo(e,n),e.unshift(n)},remove:n=>{e=Yo(e,n),e[0]?.resume?.()}}},Nc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(ze(n,t),document.activeElement!==o)return},Uo=Cc(),kc=()=>Pt.value>In.value,zt=()=>{On.value="pointer",Pt.value=window.performance.now()},Go=()=>{On.value="keyboard",Pt.value=window.performance.now()},Vc=()=>(r.onMounted(()=>{Ht===0&&(document.addEventListener("mousedown",zt),document.addEventListener("touchstart",zt),document.addEventListener("keydown",Go)),Ht++}),r.onBeforeUnmount(()=>{Ht--,Ht<=0&&(document.removeEventListener("mousedown",zt),document.removeEventListener("touchstart",zt),document.removeEventListener("keydown",Go))}),{focusReason:On,lastUserFocusTimestamp:Pt,lastAutomatedFocusTimestamp:In}),Wt=e=>new CustomEvent(Sc,{...vc,detail:e}),{componentName:Sf,create:Oc,scope:vf}=Q("focus-trap"),Ic=Oc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean],required:!0},escape:{type:[Boolean],required:!0,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Ho,zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let a,l;const{focusReason:s}=Vc();wc(h=>{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&&!e.trapped||i.paused)return;const{key:w,altKey:p,ctrlKey:$,metaKey:I,currentTarget:F,shiftKey:V}=h,{loop:k}=e,N=w==="Tab"&&!p&&!$&&!I,A=document.activeElement;if(N&&A){const C=F,[D,W]=xc(C);if(D&&W){if(!V&&A===W){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),k&&ze(D,!0))}else if(V&&[D,C].includes(A)){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||(h.preventDefault(),k&&ze(W,!0))}}else if(A===C){const T=Wt({focusReason:s.value});o("focusout-prevented",T),T.defaultPrevented||h.preventDefault()}}};r.provide($c,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),r.watch([n],([h],[w])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",d),h.addEventListener("focusout",b)),w&&(w.removeEventListener("keydown",u),w.removeEventListener("focusin",d),w.removeEventListener("focusout",b))});const f=h=>{o(Ho,h)},c=h=>o(zo,h),d=h=>{const w=r.unref(n);if(!w)return;const p=h.target,$=h.relatedTarget,I=p&&w.contains(p);e.trapped||$&&w.contains($)||(a=$),I&&o("focusin",h),!i.paused&&e.trapped&&(I?l=p:ze(l,!0))},b=h=>{const w=r.unref(n);if(!(i.paused||!w))if(!e.escape&&e.trapped){const p=h.relatedTarget;!an(p)&&!w.contains(p)&&setTimeout(()=>{if(!i.paused&&e.trapped){const $=Wt({focusReason:s.value});o("focusout-prevented",$),$.defaultPrevented||ze(l,!0)}},0)}else{const p=h.target;p&&w.contains(p)||o("focusout",h)}};async function v(){await r.nextTick();const h=r.unref(n);if(h){Uo.push(i);const w=h.contains(document.activeElement)?a:document.activeElement;if(a=w,!h.contains(w)){const $=new Event(kn,Po);h.addEventListener(kn,f),h.dispatchEvent($),$.defaultPrevented||r.nextTick(()=>{let I=e.focusStartEl;_n(I)||(ze(I),document.activeElement!==I&&(I="first")),I==="first"&&Nc(Wo(h),!0),(document.activeElement===w||I==="container")&&ze(h)})}}}function S(){const h=r.unref(n);if(h){h.removeEventListener(kn,f);const w=new CustomEvent(Vn,{...Po,detail:{focusReason:s.value}});h.addEventListener(Vn,c),h.dispatchEvent(w),!w.defaultPrevented&&(s.value=="keyboard"||!kc())&&ze(a??document.body,!0),h.removeEventListener(Vn,f),Uo.remove(i)}}return r.onMounted(()=>{e.trapped&&v(),r.watch(()=>e.trapped,h=>{h?v():S()})}),r.onBeforeUnmount(()=>{e.trapped&&S()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Rc,create:Ac,scope:Tf}=Q("floating-window"),Dc=Symbol.for("InnerPageScopeKey"),Bc=Symbol.for("PageWrapperKey"),Fc={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},appendToBody:{type:[Boolean],required:!1,default:!0},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"展开"},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[Number,String],requried:!1},collapseWidth:{type:[Number,String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0}},qc=Ac({inheritAttrs:!1,components:{FoxIcon:m.ElIcon,FocusTrap:Ic},props:{...Fc},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Rc,n=r.ref(e.modelValue);r.watch(()=>e.modelValue,B=>{n.value=B});const a=r.ref(e.left),l=r.ref(e.top),s=r.ref(e.right),i=r.ref(e.bottom),u=r.computed(()=>["fox-floating-window"]),f=r.computed(()=>{const B={};return Me(a.value)?B.left="auto":B.left=be(a.value),Me(l.value)?B.top="auto":B.top=be(l.value),Me(s.value)?B.right="auto":B.right=be(s.value),Me(i.value)?B.bottom="auto":B.bottom=be(i.value),Me(e.zIndex)||(B["z-index"]=be(e.zIndex)),Me(I.value)||(B.height=I.value),Me(F.value)||(B.width=F.value),B}),c=r.computed(()=>e.closeIcon??De.Close);r.provide(Dc,!0);const d={};r.provide(Bc,d);const b=()=>{typeof d.beforeClose=="function"?d.beforeClose(()=>{n.value=!1}):n.value=!1},v=r.computed(()=>e.collapseIcon??De.ArrowUp),S=r.computed(()=>V.value?e.expandText??"":e.collapseText??""),h=r.computed(()=>({[`${o}__collapse-text`]:!0})),w=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),p=r.ref(),$=r.ref(),I=r.computed(()=>k.value||be(e.height)||""),F=r.computed(()=>N.value||be(e.width)||""),V=r.ref(!1),k=r.ref(""),N=r.ref(""),A=r.ref(!1);let C=-1;const D=(B,x=!0)=>{const P=p.value;if(P&&V.value!==B){if(C=C===-1?Cn(P):C,A.value=!0,x)if(P.style["will-change"]="height",P.ontransitionend=function(){P.ontransitionend=null,this.style["will-change"]="auto",B||(k.value="",A.value=!1)},B){let K=0;e.collapseHeight?K=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(K=Cn($.value)),k.value=`${C}px`,r.nextTick(()=>{k.value=`${K}px`,N.value=Me(e.collapseWidth)?"":be(e.collapseWidth)})}else k.value=`${C}px`,N.value="";else if(B){let K=0;e.collapseHeight?K=e.collapseHeight:$.value&&$.value.classList.contains(`${o}__header`)&&(K=Cn($.value)),k.value=`${K}px`,N.value=Me(e.collapseWidth)?"":be(e.collapseWidth)}else A.value=!1,k.value=`${C}px`,N.value="";V.value=B,t("update:collapse",B)}};r.watch(()=>e.collapse,B=>{D(B)});const W=()=>{z()},z=B=>{B=B??!V.value,D(B)},T=()=>{a.value=null,l.value=null,s.value=null,i.value=null},y={x:0,y:0},q=bc(B=>{if(!p.value)return;const x=p.value;if(T(),e.origin==="left-top")a.value=x.offsetLeft,l.value=x.offsetTop,y.x=a.value,y.y=l.value;else if(e.origin==="left-bottom"){const P=document.documentElement.clientHeight||document.body.clientHeight;a.value=x.offsetLeft,i.value=P-(x.offsetTop+x.offsetHeight),y.x=a.value,y.y=i.value}else if(e.origin==="right-bottom"){const P=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight;s.value=P-(x.offsetLeft+x.offsetWidth),i.value=K-(x.offsetTop+x.offsetHeight),y.x=s.value,y.y=i.value}else{const P=document.documentElement.clientWidth||document.body.clientWidth;s.value=P-(x.offsetLeft+x.offsetWidth),l.value=x.offsetTop,y.x=s.value,y.y=l.value}},B=>{if(!p.value)return;const x=p.value;T(),e.origin==="left-top"?(a.value=y.x+B.x,l.value=y.y+B.y,x.style.left=be(a.value),x.style.top=be(l.value)):e.origin==="left-bottom"?(a.value=y.x+B.x,i.value=y.y-B.y,x.style.left=be(a.value),x.style.bottom=be(i.value)):e.origin==="right-bottom"?(s.value=y.x-B.x,i.value=y.y-B.y,x.style.right=be(s.value),x.style.bottom=be(i.value)):(s.value=y.x-B.x,l.value=y.y+B.y,x.style.right=be(s.value),x.style.top=be(l.value))});return r.onMounted(()=>{e.draggable&&$.value&&p.value&&q.open($.value),e.collapse===!0&&D(e.collapse,!1)}),r.onBeforeUnmount(()=>{e.draggable&&$.value&&q.close()}),{classes:u,styles:f,visible:n,closeIcon:c,onClose:b,dialogRef:p,headerRef:$,onClickToggle:W,collapseIcon:v,currentCollapseText:S,collapseTextClasses:h,collapseIconClasses:w}}}),Lc={ref:"headerRef",class:"fox-floating-window__header"},Mc={class:"fox-floating-window__title"},jc={class:"fox-floating-window__tools"},_c={class:"fox-floating-window__body"};function Pc(e,t,o,n,a,l){const s=r.resolveComponent("FoxIcon"),i=r.resolveComponent("FocusTrap");return r.openBlock(),r.createBlock(r.Teleport,{to:"body",disabled:!e.appendToBody},[r.createVNode(r.Transition,{name:"dialog-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(i,{loop:!0,escape:!0,trapped:e.visible,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Lc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",Mc,r.toDisplayString(e.title),1),r.createElementVNode("div",jc,[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.currentCollapseText),3),r.createVNode(s,{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(s,{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",_c,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.visible]])]),_:3})],8,["disabled"])}const Xo=Ve(qc,[["render",Pc]]);function Hc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return sr(o.name,o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:xf,create:zc,scope:Ef}=Q("domain-provider"),Zo=zc(Hc()),Wc={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 Kc(e,t){return{inheritAttrs:!1,props:Wc,setup(o,{slots:n}){if(Ze&&window.IntersectionObserver){const a=new WeakMap;let l=new Map;const s=(b,v)=>{if(c===null){l.set(b,{visible:null,callback:v});return}a.has(b)&&c.unobserve(b),a.set(b,{visible:null,callback:v}),c.observe(b)},i=b=>{if(c===null){l.delete(b);return}a.has(b)&&(a.delete(b),c.unobserve(b))};let u=o.initialVisibleObserverSize;Sl({acquire:()=>{const b=u>0;return u--,b},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let c=null;const d=(b,v,S)=>{c=new IntersectionObserver(h=>{for(let w of h){let p=!1;w.intersectionRatio>0&&(p=!0);const $=a.get(w.target);if($)try{if(o.loadPolicy==="lazy"&&!p&&$.visible!==null)return;$.visible=p,$.callback(p)}catch(I){console.error(I)}}},{root:b,rootMargin:v,threshold:S}),l.forEach((h,w)=>{a.set(w,h),c?.observe(w)}),l.clear()};r.watch([()=>o.root,()=>o.disabled],([b,v])=>{if(v||!b||c)return;let S=null;typeof b=="string"?S=document.querySelector(b):S=b,S&&d(S,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Cf,create:Yc,scope:Nf}=Q("rolling-provider"),Jo=Yc(Kc()),Qo=10;function Uc(e,t){return e>t&&e>Qo?"horizontal":t>e&&t>Qo?"vertical":""}function Gc(){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),s=r.ref(0),i=r.ref(0),u=r.ref(0),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",b=()=>c.value==="horizontal",v=()=>{s.value=0,i.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:w=>{const p=w.touches[0];s.value=p.clientX-e.value,i.value=p.clientY-t.value,a.value=p.clientX,l.value=p.clientY,u.value=Math.abs(s.value),f.value=Math.abs(i.value),n.value=Date.now()-o.value,c.value||(c.value=Uc(u.value,f.value))},start:w=>{v(),e.value=w.touches[0].clientX,t.value=w.touches[0].clientY,o.value=Date.now()},reset:v,startX:e,startY:t,startTime:o,duration:n,moveX:a,moveY:l,deltaX:s,deltaY:i,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:b}}const Xc=[yr,br,wr,Sr,xr,ye,Or,Ir,Mt,Ar,Lr,Xr,Jr,eo,lo,so,fo,go,po,bo,Tn,vo,xo,No,Vo,Io,Ao,Do,_t,wn,Bo,Fo,qo,Lo,Xo,Zo,Jo],Zc=new ja(Xc,[Ha],"4.0.0");Object.defineProperty(g,"FoxAffix",{enumerable:!0,get:()=>m.ElAffix}),Object.defineProperty(g,"FoxAlert",{enumerable:!0,get:()=>m.ElAlert}),Object.defineProperty(g,"FoxAside",{enumerable:!0,get:()=>m.ElAside}),Object.defineProperty(g,"FoxAutoResizer",{enumerable:!0,get:()=>m.ElAutoResizer}),Object.defineProperty(g,"FoxAutocomplete",{enumerable:!0,get:()=>m.ElAutocomplete}),Object.defineProperty(g,"FoxAvatar",{enumerable:!0,get:()=>m.ElAvatar}),Object.defineProperty(g,"FoxBacktop",{enumerable:!0,get:()=>m.ElBacktop}),Object.defineProperty(g,"FoxBadge",{enumerable:!0,get:()=>m.ElBadge}),Object.defineProperty(g,"FoxBreadcrumb",{enumerable:!0,get:()=>m.ElBreadcrumb}),Object.defineProperty(g,"FoxBreadcrumbItem",{enumerable:!0,get:()=>m.ElBreadcrumbItem}),Object.defineProperty(g,"FoxButton",{enumerable:!0,get:()=>m.ElButton}),Object.defineProperty(g,"FoxButtonGroup",{enumerable:!0,get:()=>m.ElButtonGroup}),Object.defineProperty(g,"FoxCalendar",{enumerable:!0,get:()=>m.ElCalendar}),Object.defineProperty(g,"FoxCard",{enumerable:!0,get:()=>m.ElCard}),Object.defineProperty(g,"FoxCarousel",{enumerable:!0,get:()=>m.ElCarousel}),Object.defineProperty(g,"FoxCarouselItem",{enumerable:!0,get:()=>m.ElCarouselItem}),Object.defineProperty(g,"FoxCascader",{enumerable:!0,get:()=>m.ElCascader}),Object.defineProperty(g,"FoxCascaderPanel",{enumerable:!0,get:()=>m.ElCascaderPanel}),Object.defineProperty(g,"FoxCheckTag",{enumerable:!0,get:()=>m.ElCheckTag}),Object.defineProperty(g,"FoxCheckbox",{enumerable:!0,get:()=>m.ElCheckbox}),Object.defineProperty(g,"FoxCheckboxButton",{enumerable:!0,get:()=>m.ElCheckboxButton}),Object.defineProperty(g,"FoxCheckboxGroup",{enumerable:!0,get:()=>m.ElCheckboxGroup}),Object.defineProperty(g,"FoxCol",{enumerable:!0,get:()=>m.ElCol}),Object.defineProperty(g,"FoxCollapse",{enumerable:!0,get:()=>m.ElCollapse}),Object.defineProperty(g,"FoxCollapseItem",{enumerable:!0,get:()=>m.ElCollapseItem}),Object.defineProperty(g,"FoxCollapseTransition",{enumerable:!0,get:()=>m.ElCollapseTransition}),Object.defineProperty(g,"FoxColorPicker",{enumerable:!0,get:()=>m.ElColorPicker}),Object.defineProperty(g,"FoxConfigProvider",{enumerable:!0,get:()=>m.ElConfigProvider}),Object.defineProperty(g,"FoxContainer",{enumerable:!0,get:()=>m.ElContainer}),Object.defineProperty(g,"FoxDatePicker",{enumerable:!0,get:()=>m.ElDatePicker}),Object.defineProperty(g,"FoxDescriptions",{enumerable:!0,get:()=>m.ElDescriptions}),Object.defineProperty(g,"FoxDescriptionsItem",{enumerable:!0,get:()=>m.ElDescriptionsItem}),Object.defineProperty(g,"FoxDialog",{enumerable:!0,get:()=>m.ElDialog}),Object.defineProperty(g,"FoxDivider",{enumerable:!0,get:()=>m.ElDivider}),Object.defineProperty(g,"FoxDrawer",{enumerable:!0,get:()=>m.ElDrawer}),Object.defineProperty(g,"FoxDropdown",{enumerable:!0,get:()=>m.ElDropdown}),Object.defineProperty(g,"FoxDropdownItem",{enumerable:!0,get:()=>m.ElDropdownItem}),Object.defineProperty(g,"FoxDropdownMenu",{enumerable:!0,get:()=>m.ElDropdownMenu}),Object.defineProperty(g,"FoxEmpty",{enumerable:!0,get:()=>m.ElEmpty}),Object.defineProperty(g,"FoxFooter",{enumerable:!0,get:()=>m.ElFooter}),Object.defineProperty(g,"FoxForm",{enumerable:!0,get:()=>m.ElForm}),Object.defineProperty(g,"FoxFormItem",{enumerable:!0,get:()=>m.ElFormItem}),Object.defineProperty(g,"FoxHeader",{enumerable:!0,get:()=>m.ElHeader}),Object.defineProperty(g,"FoxIcon",{enumerable:!0,get:()=>m.ElIcon}),Object.defineProperty(g,"FoxImage",{enumerable:!0,get:()=>m.ElImage}),Object.defineProperty(g,"FoxImageViewer",{enumerable:!0,get:()=>m.ElImageViewer}),Object.defineProperty(g,"FoxInput",{enumerable:!0,get:()=>m.ElInput}),Object.defineProperty(g,"FoxInputNumber",{enumerable:!0,get:()=>m.ElInputNumber}),Object.defineProperty(g,"FoxLink",{enumerable:!0,get:()=>m.ElLink}),Object.defineProperty(g,"FoxMain",{enumerable:!0,get:()=>m.ElMain}),Object.defineProperty(g,"FoxMenu",{enumerable:!0,get:()=>m.ElMenu}),Object.defineProperty(g,"FoxMenuItem",{enumerable:!0,get:()=>m.ElMenuItem}),Object.defineProperty(g,"FoxMenuItemGroup",{enumerable:!0,get:()=>m.ElMenuItemGroup}),Object.defineProperty(g,"FoxOption",{enumerable:!0,get:()=>m.ElOption}),Object.defineProperty(g,"FoxOptionGroup",{enumerable:!0,get:()=>m.ElOptionGroup}),Object.defineProperty(g,"FoxPageHeader",{enumerable:!0,get:()=>m.ElPageHeader}),Object.defineProperty(g,"FoxPagination",{enumerable:!0,get:()=>m.ElPagination}),Object.defineProperty(g,"FoxPopconfirm",{enumerable:!0,get:()=>m.ElPopconfirm}),Object.defineProperty(g,"FoxPopover",{enumerable:!0,get:()=>m.ElPopover}),Object.defineProperty(g,"FoxPopper",{enumerable:!0,get:()=>m.ElPopper}),Object.defineProperty(g,"FoxProgress",{enumerable:!0,get:()=>m.ElProgress}),Object.defineProperty(g,"FoxRadio",{enumerable:!0,get:()=>m.ElRadio}),Object.defineProperty(g,"FoxRadioButton",{enumerable:!0,get:()=>m.ElRadioButton}),Object.defineProperty(g,"FoxRadioGroup",{enumerable:!0,get:()=>m.ElRadioGroup}),Object.defineProperty(g,"FoxRate",{enumerable:!0,get:()=>m.ElRate}),Object.defineProperty(g,"FoxResult",{enumerable:!0,get:()=>m.ElResult}),Object.defineProperty(g,"FoxRow",{enumerable:!0,get:()=>m.ElRow}),Object.defineProperty(g,"FoxScrollbar",{enumerable:!0,get:()=>m.ElScrollbar}),Object.defineProperty(g,"FoxSelect",{enumerable:!0,get:()=>m.ElSelect}),Object.defineProperty(g,"FoxSelectV2",{enumerable:!0,get:()=>m.ElSelectV2}),Object.defineProperty(g,"FoxSkeleton",{enumerable:!0,get:()=>m.ElSkeleton}),Object.defineProperty(g,"FoxSkeletonItem",{enumerable:!0,get:()=>m.ElSkeletonItem}),Object.defineProperty(g,"FoxSlider",{enumerable:!0,get:()=>m.ElSlider}),Object.defineProperty(g,"FoxSpace",{enumerable:!0,get:()=>m.ElSpace}),Object.defineProperty(g,"FoxStep",{enumerable:!0,get:()=>m.ElStep}),Object.defineProperty(g,"FoxSteps",{enumerable:!0,get:()=>m.ElSteps}),Object.defineProperty(g,"FoxSubMenu",{enumerable:!0,get:()=>m.ElSubMenu}),Object.defineProperty(g,"FoxSwitch",{enumerable:!0,get:()=>m.ElSwitch}),Object.defineProperty(g,"FoxTabPane",{enumerable:!0,get:()=>m.ElTabPane}),Object.defineProperty(g,"FoxTable",{enumerable:!0,get:()=>m.ElTable}),Object.defineProperty(g,"FoxTableColumn",{enumerable:!0,get:()=>m.ElTableColumn}),Object.defineProperty(g,"FoxTableV2",{enumerable:!0,get:()=>m.ElTableV2}),Object.defineProperty(g,"FoxTabs",{enumerable:!0,get:()=>m.ElTabs}),Object.defineProperty(g,"FoxTag",{enumerable:!0,get:()=>m.ElTag}),Object.defineProperty(g,"FoxTimePicker",{enumerable:!0,get:()=>m.ElTimePicker}),Object.defineProperty(g,"FoxTimeSelect",{enumerable:!0,get:()=>m.ElTimeSelect}),Object.defineProperty(g,"FoxTimeline",{enumerable:!0,get:()=>m.ElTimeline}),Object.defineProperty(g,"FoxTimelineItem",{enumerable:!0,get:()=>m.ElTimelineItem}),Object.defineProperty(g,"FoxTooltip",{enumerable:!0,get:()=>m.ElTooltip}),Object.defineProperty(g,"FoxTransfer",{enumerable:!0,get:()=>m.ElTransfer}),Object.defineProperty(g,"FoxTree",{enumerable:!0,get:()=>m.ElTree}),Object.defineProperty(g,"FoxTreeSelect",{enumerable:!0,get:()=>m.ElTreeSelect}),Object.defineProperty(g,"FoxTreeV2",{enumerable:!0,get:()=>m.ElTreeV2}),Object.defineProperty(g,"FoxUpload",{enumerable:!0,get:()=>m.ElUpload}),g.AutocompleteItem=go,g.Broadcast=ln,g.BroadcastKey=de,g.CascaderItem=fo,g.CheckboxItem=No,g.Content=Sr,g.DataItemsKey=Je,g.DateItem=Xr,g.DateUtils=yt,g.DialogItem=Do,g.Domain=Nt,g.DomainKey=Ne,g.DomainProvider=Zo,g.FloatingWindow=Xo,g.FooterBar=wr,g.Group=xr,g.HeaderBar=br,g.HintText=Mt,g.Indicator=Bo,g.InputItem=Ar,g.InputNumberItem=so,g.Item=ye,g.Mapping=_t,g.MoneyItem=lo,g.MoreButton=qo,g.Page=yr,g.Price=wn,g.PriorityPolicy=ke,g.RadioItem=xo,g.RateItem=Vo,g.RollingProvider=Jo,g.RowItem=Ir,g.SelectItem=Lr,g.SlotItem=Or,g.SwitchItem=Io,g.TableItem=vo,g.TableMappingColumn=po,g.TableRadioColumn=bo,g.TableSetting=Tn,g.Text=Fo,g.TimeItem=Jr,g.TimeSelectItem=eo,g.Tour=Lo,g.TreeSelectItem=Ao,g.UniqueID=kr,g.ValidateSchema=ar,g.ValidateSchemaKey=Be,g.cancelRaf=na,g.clearNonNumber=ya,g.clone=rn,g.compareTo=en,g.createBroadcast=xt,g.createValidateSchema=Ct,g.debounce=ht,g.debounceRef=Oa,g.decimalLength=Zn,g.default=Zc,g.defineBroadcast=va,g.defineConfigDomain=sr,g.defineDataItem=cr,g.defineDomain=cn,g.defineItem=ge,g.definePageState=fr,g.deleteGlobalValidator=Ea,g.disabledProperty=xe,g.divide=Qt,g.excludeProps=ve,g.extend=Ke,g.floatData=Sa,g.getGlobalValidateCheckEvents=nr,g.getGlobalValidateResetEvents=or,g.getPageContentAreaHeight=Vt,g.getPageContentAreaWidth=Ot,g.getPageFooterAreaHeight=mt,g.getPageHeaderAreaHeight=gt,g.getRootDomain=Qe,g.hasSymbol=Hn,g.includeProps=Qn,g.indexOf=ba,g.installRules=ur,g.integerLength=Xn,g.isArray=la,g.isArrayLike=Kn,g.isBrowser=Ze,g.isDate=ua,g.isESModule=da,g.isEmptyString=ce,g.isEqual=_e,g.isFunction=tn,g.isHidden=Wn,g.isInnerPage=Aa,g.isMap=ia,g.isNil=an,g.isNumberString=Gn,g.isObject=je,g.isPlainObject=nn,g.isPromise=fa,g.isRegExp=Un,g.isSet=sa,g.isString=_n,g.isSubPage=Da,g.isSymbol=ca,g.isWindow=zn,g.lastIndexOf=wa,g.makeArray=pa,g.merge=Yn,g.multiply=Ln,g.negate=Mn,g.nextTick=ga,g.numberFormat=vt,g.objectToString=Pn,g.once=Ia,g.property=Ee,g.raf=aa,g.readonlyProperty=Te,g.setGlobalValidateCheckEvents=Ca,g.setGlobalValidateHandler=Ta,g.setGlobalValidateMessages=ka,g.setGlobalValidateResetEvents=Na,g.setGlobalValidator=xa,g.throttle=ir,g.toBoolean=re,g.toNumber=Se,g.toPadding=Ie,g.toPx=ie,g.toPxDesc=me,g.toTypeString=$t,g.toValue=oe,g.tryTimes=sn,g.typeOf=Tt,g.unNumberFormat=jn,g.updatePageState=fn,g.useBroadcast=ft,g.useDomain=Fe,g.useExpose=pe,g.useInnerSize=mn,g.usePageState=kt,g.usePosition=Er,g.useRect=bn,g.useSize=gn,g.useTouch=Gc,g.valueLength=ct,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});