@fox-js/foxui-pc 4.0.1-104 → 4.0.1-105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +229 -231
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(h,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):(h=typeof globalThis<"u"?globalThis:h||self,r(h.FoxUI={},h.Vue,h.FoxValidator,h.ElementPlus,h.ElementPlusIconsVue,h.FoxI18n))})(this,function(h,r,Xe,y,Ne,Fe){"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Feb 29 2024 00:08:19 GMT+0800 (中国标准时间)
|
|
3
3
|
*/const Tt=window,ol=typeof window<"u";function ll(){return typeof Tt<"u"?Tt.requestAnimationFrame||Tt.webkitRequestAnimationFrame||function(e){Tt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function al(e){ol?cancelAnimationFrame(e):clearTimeout(e)}const il=ll();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function $t(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=be(e),t=be(t),[e,t]=Jt(be(e),be(t)),o==1&&(n==1?e=Zt(e):t=Zt(t));let l=hr(e,t);return o?o==2?"-"+be(l):e.length<l.length?be(l.substring(1)):"-"+be(Zt(l)):be(l)}function Zt(e){let t="",o=e.length,n=e.split(".")[1],l=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=l>0?"0."+new Array(l).join("0")+"1":"1";return hr(t,a)}function be(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 Jt(e,t){let o=e.split("."),n=t.split("."),l=o[0].length,a=n[0].length;return l>a?n[0]=new Array(Math.abs(l-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(l-a)+1).join("0")+(o[0]?o[0]:""),l=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(l||a)&&(l>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function hr(e,t){[e,t]=Jt(e,t);let o="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){o="."+o;continue}let a=parseInt(e[l])+parseInt(t[l])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var fe=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(fe||{});function ct(e,t=0,o=fe.HALF_EVEN){if(o===fe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let l=e.split("."),a=l[0],i=l[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=ct(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,gr(l[1],a,n,o)?(n?"-":"")+Qt(a):(n?"-":"")+a;if(l[1]){if(l[1].length<t)return(n?"-":"")+a+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let s=l[1].substring(t);return s&&gr(s,i,n,o)&&(i=Qt(i),i.length>t)?(n?"-":"")+Qt(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function gr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===fe.DOWN||!o&&n===fe.FLOOR||o&&n===fe.CEILING)return!1;if(n===fe.UP||o&&n===fe.FLOOR||!o&&n===fe.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Qt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let l=o;l>=0;l--){let a=parseInt(e[l])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function en(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=ft(e),t=ft(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let a=n+l;if(e=ft(e.replace(".","")),t=ft(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,c="";for(let f=0;f<i;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let p=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(p+=parseInt(e[u[N]--])*parseInt(t[N]));p+=s,s=Math.floor(p/10),c=p%10+c,d--}return c=ft(sl(c,a)),o==1&&(c="-"+c),c}function sl(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function ft(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function tn(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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=be(t.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=be(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=be(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let c=e.length-d+l;e=be(e.substring(0,c)+"."+e.substring(c))}else l==d&&(e=be(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=$t(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+be(ct(s,o-2))}function nn(e,t){return e=e.toString(),t=t.toString(),t=rn(t),$t(e,t)}function rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),pr(e),pr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=nn(e,en(t,ct(tn(e,t),0,fe.FLOOR)));return o+n}function pr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function yr(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Jt(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 le{value;static RoundingModes=fe;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=be(o);let l="";o[0]=="-"&&(l="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=l+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=l+be(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=le.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=le.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(l?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return le.getPrettyValue(this.value,t,o)}static round(t,o=0,n=fe.HALF_EVEN){if(t=le.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ct(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new le(ct(this.value,t,o))}static floor(t){return t=le.validate(t),t.indexOf(".")===-1?t:le.round(t,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new le(this.value):new le(this.value).round(0,fe.FLOOR)}static ceil(t){return t=le.validate(t),t.indexOf(".")===-1?t:le.round(t,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new le(this.value):new le(this.value).round(0,fe.CEILING)}static add(t,o){return t=le.validate(t),o=le.validate(o),$t(t,o)}add(t){return new le($t(this.value,t.getValue()))}static subtract(t,o){return t=le.validate(t),o=le.validate(o),nn(t,o)}subtract(t){return new le(nn(this.value,t.getValue()))}static multiply(t,o){return t=le.validate(t),o=le.validate(o),en(t,o)}multiply(t){return new le(en(this.value,t.getValue()))}static divide(t,o,n){return t=le.validate(t),o=le.validate(o),tn(t,o,n)}divide(t,o){return new le(tn(this.value,t.getValue(),o))}static modulus(t,o){return t=le.validate(t),o=le.validate(o),mr(t,o)}modulus(t){return new le(mr(this.value,t.getValue()))}static compareTo(t,o){return t=le.validate(t),o=le.validate(o),yr(t,o)}compareTo(t){return yr(this.value,t.getValue())}static negate(t){return t=le.validate(t),rn(t)}negate(){return new le(rn(this.value))}}function br(e,t){return le.multiply(`${e}`,`${t}`)}function on(e,t,o=8){return le.divide(`${e}`,`${t}`,o)}function ln(e,t){return e=`${e}`,t=`${t}`,le.compareTo(e,t)}function vr(e){return le.negate(e)}function Ct(e,t=-1,o=!1,n=3,l=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let f="",p=s.split("").reverse();for(let N=0;N<p.length;N++)f+=p[N]+((N+1)%n==0&&N+1!=p.length?l:"");u.length==0?c=`${i}${f.split("").reverse().join("")}`:c=`${i}${f.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function wr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ul=il,cl=Array.isArray,fl=e=>Et(e)==="[object Map]",dl=e=>Et(e)==="[object Set]",hl=e=>e instanceof Date,an=e=>typeof e=="function",Sr=e=>typeof e=="string",gl=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",ml=e=>We(e)&&an(e.then)&&an(e.catch),xr=Object.prototype.toString,Et=e=>xr.call(e),sn=e=>Et(e)==="[object Object]",Tr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function pl(e){return e.__esModule||Tr&&e[Symbol.toStringTag]==="Module"}const yl=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ze(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(l===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=Ze(l,d,u)}else u!==void 0&&(t[i]=u)}}return t}function un(e,t,o=!1){if(!o)Ze(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!sn(i))continue;a=un(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!sn(i))continue;a=un(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}}return e}const cn=yl?Promise.resolve():null;function bl(e,...t){cn!==null?t&&t.length>0?cn.then(()=>{e(t)}):cn.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 ve(e){return typeof e=="number"?e:Number(e)}const vl={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Nt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):vl[o]||"object"}function $r(e){return e&&typeof e=="object"&&"setInterval"in e}function kt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Cr(e){let t=!!e&&"length"in e&&e.length,o=Nt(e);return o==="function"||$r(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Er(e,t){let o=+t.length,n=0,l=e.length;for(;n<o;n++)e[l++]=t[n];return e.length=l,e}function wl(e,t=[]){let o=t;return e!=null&&(Cr(Object(e))?Er(o,typeof e=="string"?[e]:e):o.push(e)),o}function Me(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Nt(e),n=Nt(t);if(o!==n)return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],u=e[s],d=t[s];if(!Me(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],i=t[l];if(!Me(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function fn(e){return e==null}function Nr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function kr(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Vr(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function Or(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Ir(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 Sl(e,t=!0,o=!0){t?e=Ir(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ir(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function xl(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Me(e,o))return!0}):t.indexOf(e)}function Tl(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Me(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function dt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Rr(e,...t){const o={};return t.forEach(n=>{for(const l in n)o[l]=e[l]}),o}function we(e,...t){const o=[];t.forEach(l=>{Reflect.apply([].push,o,Reflect.ownKeys(l))});const n={};for(const l in e)o.includes(l)||(n[l]=e[l]);return n}const $l=(e,t,o)=>{const n=Object.assign({},e),l=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{l.hasOwnProperty(a)?typeof l[a]=="string"&&(n[a]=t[l[a]]):t[a]&&(n[a]=t[a])}),n):e},he=Symbol.for("BroadcastKey");class dn{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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Nr(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const a=[];if(l){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const l=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,o){this.callbacks.set(t,o)}}function Vt(e,t,o,n){const l=new dn(t,e,o);if(n&&typeof n=="object")for(const a in n)l.on(a,n[a]);return l}function Cl(e,t,o){const n=o;if(n[he])return n[he];const l=r.inject(he,null),a=new dn(l,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[he]=a,r.provide(he,a),r.onUnmounted(()=>{a.destroy(),n[he]=void 0}),a}function ht(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Je=e=>e.default??e;class El{error(t,o){const n=o,l=ht(o);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const l=n,a=ht(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Dr=new El;function Nl(e){Dr=e}function kl(e,t){Je(Xe).setValidator(e,t)}function Vl(e){Je(Xe).deleteValidator(e)}let Fr=["blur","clear"];function Ol(e){Fr=e}function Ar(){return Fr}let Br=["focus","change"];function Il(e){Br=e}function qr(){return Br}function Rl(e){Je(Xe).messages(e)}function gt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const l=t.findIndex(a=>a.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function Ot(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const je=Symbol("ValidateSchemaKey");class _r{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=Ot(gt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Ot(n);const l=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,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 l=Dr;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...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?Je(Xe).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?Je(Xe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Je(Xe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=gt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ot(t):this.rules=Ot([t]);const n=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=gt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const l={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=Je(Xe),u=new s(l),d=this.proxy??i;return u.validate(i,{context:d}).then(f=>{if(f.pass)this.success();else{let p="error";Array.isArray(f.errors)&&f.errors.length>0&&(p=f.errors[0].message??p,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(p)}return f}).catch(f=>{const p=f.message??`${f}`;return this.error(p),f})}}return Promise.resolve({pass:!0})}}function It(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new _r(t,o,e)}const Lr=Symbol.for("EventEmitterKey");class Dl{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 l=n.findIndex(a=>a===o);l!==-1&&n.splice(l,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(l=>{try{Reflect.apply(l,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function mt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Mr(e,t){let o=0;return function(...n){const l=new Date().getTime();l-o<t||(o=l,Reflect.apply(e,null,[...n]))}}function Fl(e,t){const o=mt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(a){o(a,l)}}))}function Al(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function hn(e,t,o,n=0,l=!0){let a=t,i=0;if(l){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(a+=n,setTimeout(s,a))};setTimeout(s,a)}const Oe=Symbol("DomainKey"),nt=Symbol("DataItemsKey");class Rt{_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 l=t[n];o.length>0&&o.indexOf(l)!==-1||(this._props[n]=l)}}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 l=n._props[t];o.push(l)}n=n._parent}return o}}const Bl=new Rt;function rt(){return Bl}function Pe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Oe]??r.inject(Oe,null):r.inject(Oe,null)}const gn=Symbol("OriginalDateKey");function mn(e,t,o=[],n){const l=r.getCurrentInstance(),a=l?.proxy;let i=r.inject(Oe,null);i===null&&(i=rt());const s=e||t.prop||t.name,u=new Rt(s);u.parent=i;const d=m=>{a[gn]||p(m),u.set("modelValue",m)},c=()=>u.getForSelf("modelValue")??null,f=()=>a[gn]??null,p=m=>{const v={};Ze(!0,v,r.toRaw(m)),a[gn]=v};r.isReactive(t)||typeof t=="function"?r.watch(t,m=>{u.merge(m,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&p(t.modelValue),a[Oe]=u,r.provide(Oe,u);let N=null,g=null;if(l!==null){const m=r.inject(he,null);N=Vt(a,m,s,n),u.broadcast=N,a[he]=N,r.provide(he,N),a.broadcast=(w,T,...O)=>Reflect.apply(N.emit,N,[w,T,...O]);const v=r.inject(je,null);g=It(a,v,{componentName:""}),u.validateSchema=g,a[je]=g,r.provide(je,g),a[nt]=new Map,a.validate=(w=!0)=>{const T=[];let O=null;const q={deep:!1};if(w===!0)O={name:"*"};else if(Array.isArray(w)&&w.length>0){const V=w;O={name:F=>F?V.indexOf(F)!==-1:!1}}else if(w!=null&&typeof w=="object"){const V=w;if(q.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const F=V.include;O={name:R=>R?F.indexOf(R)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const F=V.exclude;O={name:R=>R?F.indexOf(R)===-1:!1}}else O={name:"*"}}if(O){const V=N?.emitToChildren(O,"validate",q);V&&Reflect.apply([].push,T,V)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(V=>{let F=[];return V.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(F=[...F,...R.errors])}),F.length>0?{pass:!1,errors:F}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(w,T=!0,O=!1)=>{if(O===!0){Reflect.ownKeys(w).forEach(V=>{let F=String(V);const M=zr(u,F,{componentName:"",fieldName:F,pureDataValidate:!0},N,g);a[nt].set(F,M);const D=w[F];D&&M.validateSchema.setRule(D)});return}if(T){const q=Reflect.ownKeys(w),V={name:F=>q.includes(F)};N?.emitToChildren(V,"setNameValidateRules",w,!1)}},a.clearValidate=(w=!0)=>{let T=null;if(w===!0)T={name:"*"};else if(Array.isArray(w)&&w.length>0){const O=w;T={name:q=>q?O.indexOf(q)!==-1:!1}}else if(w!=null&&typeof w=="object"){const O=w;if(Array.isArray(O.include)&&O.include.length>0){const q=O.include;T={name:V=>V?q.indexOf(V)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const q=O.exclude;T={name:V=>V?q.indexOf(V)===-1:!1}}else T={name:"*"}}T&&N?.emitToChildren(T,"clearValidate",!1)},a.resetFields=w=>{const T=c();if(!T)return;const O={};if(Ze(!0,O,f()??{}),Array.isArray(w))w.forEach(q=>{T[q]=O[q]});else if(w&&Array.isArray(w.include))(w.include??[]).forEach(V=>{T[V]=O[V]});else if(w&&Array.isArray(w.exclude)){let q=w.exclude??[];Reflect.ownKeys(O).forEach(V=>{q.includes(V)||(T[V]=O[V])})}else Object.assign(T,O);a.clearValidate(w)},a.setModelValue=(w,T)=>{!T||T===s?d(w):N?.emitToChildren({name:T},"setModelValue",w)},a.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),a[Oe]=void 0,a[nt]&&(a[nt].clear(),a[nt]=void 0),N!==null&&(N.destroy(),a[he]=void 0),g!==null&&(g.destroy(),a[je]=void 0)}),u}function jr(e,t,o=[]){const l=r.getCurrentInstance()?.proxy;let a=r.inject(Oe,null);a===null&&(a=rt());const i=e||t.prop||t.name,s=new Rt(i);return s.parent=a,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),l[Oe]=s,r.provide(Oe,s),r.onUnmounted(()=>{s.destroy(),l[Oe]=void 0}),s}function Pr(e,t,o){const l=Pe(e)?.get("rules");if(!l)return;let a=l[o];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const l=r.getCurrentInstance()?.proxy,a=t??"",i=r.inject(he,null),s=Vt(l,i,a,o);l[he]=s,r.provide(he,s),l.broadcast=(g,m,...v)=>Reflect.apply(s.emit,s,[g,m,...v]);const u=r.inject(je,null);e.fieldName=e.fieldName??a;const d=It(l,u,e);l[je]=d,r.provide(je,d),Pr(l,d,a),l.validate=(g=null)=>{const m=[];let v=!1,w=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)w=!0,v=!0;else if(g&&typeof g=="object"){const T=g;T.ignoreHidden===!0&&kt(l.$el)?w=!1:(Array.isArray(T.include)&&T.include.indexOf(a)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(a),w=!0),v=T.deep??!1}else typeof g=="boolean"&&(v=g),w=!0;if(w){const T=d?.validate();m.push(T)}if(v){let T=null;const O={deep:!1};if(g===!0)T={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;T={name:V=>V?q.indexOf(V)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(O.ignoreHidden=q.ignoreHidden,Array.isArray(q.include)&&q.include.length>0){const V=q.include;T={name:F=>F?V.indexOf(F)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const V=q.exclude;T={name:F=>F?V.indexOf(F)===-1:!1}}else T={name:"*"}}if(T){const q=s.emitToChildren(T,"validate",O);Reflect.apply([].push,m,q)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(T=>{let O=[];return T.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(O=[...O,...q.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>d?.setRule(g),l.setNameValidateRules=(g,m=!1)=>{const v=g[a];if(v&&d?.setRule(v),m){const w={name:T=>Reflect.ownKeys(g).includes(T)};s.emitToChildren(w,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let m=null;if(g===!0)m={name:"*"};else if(Array.isArray(g)&&g.length>0){const v=g;m={name:w=>w?v.indexOf(w)!==-1:!1}}else if(g!=null&&typeof g=="object"){const v=g;if(Array.isArray(v.include)&&v.include.length>0){const w=v.include;m={name:T=>T?w.indexOf(T)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;m={name:T=>T?w.indexOf(T)===-1:!1}}else m={name:"*"}}m&&s.emitToChildren(m,"clearValidate",!1)};const c=new Dl(l);l[Lr]=c;const f=mt((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ar()).forEach(g=>{c.on(g,m=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:qr()).forEach(g=>{c.on(g,m=>{f("reset")})}),r.onUnmounted(()=>{s.destroy(),l[he]=void 0,d.destroy(),l[je]=void 0,c.destroy(),l[Lr]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(g,...m)=>{Reflect.apply(c.emit,c,[g,...m])},onEvent:(g,m)=>{Reflect.apply(c.on,c,[m])},offEvent:(g,m)=>{Reflect.apply(c.off,c,[m])}}}function zr(e,t,o,n,l){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};const u=It({},l,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const f=[];let p=!1,N=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)N=!0,p=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),N=!0,p=g.deep??!1}else typeof c=="boolean"&&(p=c),N=!0;if(N){const g=u?.validate();f.push(g)}if(p){let g=null;const m={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const v=c;g={name:w=>w?v.indexOf(w)!==-1:!1}}else if(c!=null&&typeof c=="object"){const v=c;if(Array.isArray(v.include)&&v.include.length>0){const w=v.include;g={name:T=>T?w.indexOf(T)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;g={name:T=>T?w.indexOf(T)===-1:!1}}else g={name:"*"}}if(g){const v=d.emitToChildren(g,"validate",m);Reflect.apply([].push,f,v)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let m=[];return g.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(m=[...m,...v.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const f=c[i];f&&u?.setRule(f)};const d=Vt(null,n,i,a);return{broadcast:d,validateSchema:u}}const Se=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,t)}px`:"";function ce(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 l=Number(e.substring(0,o)),a=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return l*=a,l}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ye="PageStateKey";function Ae(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ce(e.right))),t}function pn(e,t,o={},n=!0,l=-1,a=-1,i=0,s=0){if(e.headerHeight=ce(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ae(o.headerPadding??t.headerPadding),e.footerHeight=ce(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ae(o.footerPadding??t.footerPadding),e.contentPadding=Ae(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ce(u,a):e.height=ce(a)-ce(i,a)-ce(s,a),e.width=ce(o.width??t.width??0,l)}}function Hr(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},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=ce(l.top),n.safeAreaBottom=ce(l.bottom),n.safeAreaLeft=ce(l.left),n.safeAreaRight=ce(l.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;pn(n,a,t,!0,i,s,u,d);const c=r.reactive(n),f=e.getForParent(Ye);f&&(n.height=Ft(e,f),n.width=At(e,f),r.watch([()=>Ft(e,f),()=>At(e,f)],([N,g])=>{c.height=N,c.width=g}));const p=!f;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,g,m=-1,v=-1,w=0,T=0])=>{pn(c,g,t,p,m,v,w,T)}),e.set(Ye,c),c}function Dt(e){return e.get(Ye)}function pt(e,t){if(t=t??e.get(Ye),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function yt(e,t){if(t=t??e.get(Ye),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Ft(e,t){if(t=t??e.get(Ye),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pt(e,t),n=yt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function At(e,t){return t=t??e.get(Ye),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ql(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function _l(e){return!!e.getForParent(Ye)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function yn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Te(e,t,o=1,n){const l=Pe();return l==null?e:o===0?r.computed(()=>{const a=l.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(yn(u,n))return u}const i=e.value;return yn(i,n)?i:null}):r.computed(()=>{const a=e.value;return yn(a,n)?a:l?.get(t)})}function $e(e){return Te(e,"readonly",0,function(o){return re(o)})}function Ce(e){return Te(e,"disabled",0,function(o){return re(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let l=n.value;typeof o=="function"&&(l=o(n.value));const a=r.ref(l);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const Kr=new Map,Bt=new Map;let bn=null;function Ll(e){bn=e}function Wr(e,t,o){if(o){let n=Bt.get(o);n||(n=new Map,Bt.set(o,n)),n.set(e,t)}else Kr.set(e,t)}function Be(e,t,o){!o&&bn&&(o=bn(e)??void 0);let n=null;if(o){let l=Bt.get(o);l&&(n=l.get(t))}return n||(n=Kr.get(t)),n}function Ml(e,t){for(let o in e){const n=e[o];Wr(o,n,t)}}function jl(e){Bt.delete(e)}function Pl(){return{top:0,left:0,bottom:0,right:0}}function zl(e=0,t=0){if(tt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:o,height:n-ce(e,n)-ce(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Hl{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=rt();if(this.initPageLayout(o,l),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Mr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,l)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&l.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,a=Ze({},Pl(),t.safeAreaInset),i=zl(n,l),s=Ze({},i.pageLayout,t.pageLayout);o=o??rt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",l),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ll(t)}setAPI(t,o,n){Wr(t,o,n)}getAPI(t,o,n){return Be(t,o,n)}batchSetAPI(t,o){Ml(t,o)}clearScopeAPI(t){jl(t)}getRootDomain(){return rt()}}const Kl=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Wl=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Yl=e=>{Kl.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Wl.forEach(t=>{e.use(t)})};function oe(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},xe={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}},Yr={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}},Gr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ur=[];for(const e in Gr)Ur.push(e);function ye(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Gl=Symbol.for("InnerPageScopeKey"),Ul=(e,t)=>({inheritAttrs:!0,props:{...ge,...Yr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(o,n){const l=mn(o.name,o);if(l){const d=Hr(l,o);ye({getPageContentHeight:()=>Ft(l,d),getPageContentWidth:()=>At(l,d),getPageHeaderHeight:()=>pt(l,d),getPageFooterHeight:()=>yt(l,d)});const c=r.inject(Gl,!1);d&&c&&(d.contentHeight="100%")}const a=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(d,c=!1)=>{const f=s?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(d,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([d,c],[f,p])=>{if(d&&f){const N=r.toRaw(f),g=r.toRaw(d),m=g?Reflect.ownKeys(g):[];(N?Reflect.ownKeys(N):[]).forEach(w=>{m.includes(w)||(g[w]=[])}),u(g)}if(c&&p){const N=r.toRaw(p),g=r.toRaw(c),m=g?Reflect.ownKeys(g):[];(N?Reflect.ownKeys(N):[]).forEach(w=>{m.includes(w)||(g[w]=[])}),u(g,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const d=r.toRaw(o.rules);u(d)}if(o.pureDataRules){const d=r.toRaw(o.pureDataRules);u(d,!0)}}),r.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:Xl,create:Zl,scope:of}=oe("page"),Jl=Zl(Ul(Xl));function Ql(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ie=(e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o},vn=Ie(Jl,[["render",Ql]]);function wn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Sn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),l=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-a-i}}const ea=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,a){const i=Pe(),s=i?Dt(i):null;s&&(s.headerMounted=!0);const u=e,d=r.computed(()=>({[u]:!0,[`${u}--border`]:l.border,[`${u}--fixed`]:l.fixed,[`${u}--safe-area-inset-top`]:l.safeAreaInsetTop})),c=r.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${l.align}`]:!0})),f=l.height!==null&&l.height!==void 0?ce(l.height):null,p=r.computed(()=>{const E={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const k=Ae(l.padding??s.headerPadding);return Object.assign(E,k),f&&(s.headerHeight=f),s.headerHeight>0&&(E.height=s.headerHeight),E.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,E.safeAreaTop>0&&(E.top=E.safeAreaTop+(k.top??0),E.height=(E.height??0)+E.safeAreaTop),E}if(f&&(E.height=f),l.padding){const k=Ae(l.padding);Object.assign(E,k)}return E}),N=r.ref(null),g=()=>{if(s&&N.value&&!kt(N.value)){if(!n){const E=wn(N.value);s.headerAllHeight=E.height}return s.headerMounted=!0,!0}return!1};let m=null;r.onMounted(()=>{s&&(hn(g,50,5,50,!0),window.ResizeObserver&&N.value&&(m=new window.ResizeObserver(()=>{g()}),m.observe(N.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,m&&(m.disconnect(),m=null))});const v=r.computed(()=>{const E={};return p.value.height!==null&&p.value.height!==void 0&&(E.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(E.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(E.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(E.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(E.paddingBottom=`${p.value.bottom}px`),E}),w=r.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function T(){a.emit("back")}function O(){a.emit("click-title")}function q(){a.emit("click-right")}function V(){a.emit("click-right-text")}const F=()=>{if(!l.leftShow)return null;const E=[];if(a.slots.left)E.push(a.slots.left());else{if(a.slots.leftIcon){const k=r.h("view",{class:"left-icon",onClick:T},[a.slots.leftIcon()]);E.push(k)}else if(l.leftIcon){const k=r.h("view",{class:"left-icon",onClick:T},[r.h(l.leftIcon)]);E.push(k)}if(l.leftText){const k=r.h("view",{class:"left-text",onClick:T},[l.leftText]);E.push(k)}}return E.length===0?null:r.h("view",{class:"fox-header-bar__left"},E)},R=()=>{if(!l.rightShow)return null;const E=[];if(a.slots.right)E.push(a.slots.right());else{if(l.rightText){const k=r.h("view",{class:"right-text",onClick:V},[l.rightText]);E.push(k)}if(a.slots.rightIcon){const k=r.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);E.push(k)}else if(l.rightIcon){const k=r.h("view",{class:"right-icon",onClick:q},[r.h(l.rightIcon)]);E.push(k)}}return E.length===0?null:r.h("view",{class:"fox-header-bar__right"},E)},M=()=>{if(!l.titleShow)return null;const E=[],k=a.slots.default?a.slots.default():null;if(k)E.push(k);else{if(l.title){const B=r.h("view",{class:"title-text"},[l.title]);E.push(B)}if(a.slots.titleIcon){const B=r.h("view",{class:"title-icon",onClick:O},[a.slots.titleIcon()]);E.push(B)}else if(l.titleIcon){const B=r.h("view",{class:"title-icon",onClick:O},[r.h(l.titleIcon)]);E.push(B)}}return E.length===0?null:r.h("view",{class:"fox-header-bar__title"},E)},D=()=>{const E=[],k=a.slots.bottom?a.slots.bottom():null;return k&&E.push(k),E.length===0?null:r.h("view",{class:"fox-header-bar__bottom"},E)};return()=>{if(!w.value)return null;const E=[];if(a.slots.all)E.push(a.slots.all());else{const B=[],$=F();$&&B.push($);const b=M();b&&B.push(b);const S=R();if(S&&B.push(S),B.length>0){const I=r.h("view",{class:c.value},B);E.push(I)}const P=D();P&&E.push(P)}if(E.length===0)return null;const k={class:d.value,style:v.value,ref:N};return r.h("view",k,E)}}}),{componentName:ta,create:na,scope:ra}=oe("header-bar"),xn=na(ea(ta,ra,Ne.ArrowLeft));function oa(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,l){const a=Pe(),i=a?Dt(a):null,s=r.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ce(n.height):null,d=r.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const m=Ae(n.padding??i.footerPadding);return Object.assign(g,m),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.height=(g.height??0)+g.safeAreaBottom,g.bottom=g.safeAreaBottom+(m.bottom??0)),g}if(u&&(g.height=u),n.padding){const m=Ae(n.padding);Object.assign(g,m)}return g}),c=r.ref(null),f=()=>{if(i&&c.value&&!kt(c.value)){if(!o){const g=wn(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let p=null;r.onMounted(()=>{i&&(hn(f,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{f()}),p.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const N=r.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Se(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Se(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Se(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Se(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Se(d.value.bottom)),g});return()=>{const g=l.slots.default?l.slots.default():[],m={ref:c,class:s.value,style:N.value};return r.h("view",m,g)}}}}const{componentName:la,create:aa,scope:lf}=oe("footer-bar"),Tn=aa(oa(la));function ia(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Pe(),l=r.computed(()=>({[e]:!0})),a=n?Dt(n):null,i=r.computed(()=>{const d={};if(n&&a){if(o.padding){const N=Ae(o.padding);Object.assign(a.contentPadding,N)}const c=pt(n,a),f=yt(n,a);let p="";if(a.contentHeight?p=`${a.contentHeight}`:p=`${a.height}px`,a.contentPadding,d.height=p,a.contentPadding.top||c>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${c+N}px`}if(a.contentPadding.bottom||f>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${f+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const c=Ae(o.padding);c.left&&(d.paddingLeft=`${c.left}px`),c.top&&(d.paddingTop=`${c.top}px`),c.right&&(d.paddingRight=`${c.right}px`),c.bottom&&(d.paddingBottom=`${c.bottom}px`)}return d}),s=r.ref(null),u=()=>{if(a&&s.value){const d=Sn(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return r.onMounted(()=>{u()}),n&&a&&r.watch([()=>pt(n),()=>yt(n)],([])=>{u()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:sa,create:ua,scope:af}=oe("content"),ca=ua(ia(sa));function fa(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const $n=Ie(ca,[["render",fa]]),ot="GroupStateKey",Xr=Symbol.for("GroupScopeKey");function qt(){return r.inject(Xr,!1)}function _t(e=!0){r.provide(Xr,e)}function da(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const l=t[n];fn(l)||(e[n]=l)})}function ha(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};da(n,t);const l=r.shallowRef(n),a=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ot,a),a}function Cn(e,t,o=-1,n=-1,l=!1,a,i,s){const u=e.get(ot);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const c=ce(a),f=ce(i);s||(s=d.type??"grid");const p=()=>{const N=t===""||t===-1,g=ce(t);let m=ve(o);const v=ce(n);if(!N){let O=(g-(m-1)*v)/m;for(;f!==-1&&O>f;)m++,O=(g-(m-1)*v)/m;for(;c!==-1&&m>1&&O<c;)m--,O=(g-(m-1)*v)/m}let w=!1;const T=u.layout;T.value.width=t,T.value.column!==m&&(T.value.column=m,w=!0),T.value.gutter!==v&&(T.value.gutter=v,w=!0),T.value.type!==s&&(T.value.type=s,w=!0),w&&r.triggerRef(T)};if(l)p();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&p()},50)}}function Lt(e,t=!1){let o;return t?o=e.getForParent(ot):o=e.get(ot),o.layout}function Mt(e,t=!1){let o;return t?o=e.getForParent(ot):o=e.get(ot),o.order}function Zr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function jt(e,t,o=1,n=0,l){const a={};let i=0;l?i=ce(l):i=Zr(t.column,o),i>0&&(a.width=`${i}%`);const s=Zr(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function Pt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let l=ve(o);if(l===-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(l>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ve(n)%t.column;let i=(e.index+a)%t.column,s=i+l;return s>t.column?(i=0,s=i+l,e.index=e.index+(t.column-i)+l):e.index=e.index+a+l,a>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Jr=Symbol("RollingStateKey");function ga(e){r.provide(Jr,e)}function ma(){return r.inject(Jr,null)}function En(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-l-a}else t=e.offsetHeight;return t}function pa(e){let t=En(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=En(o),document.body.removeChild(o)}return t}function ya(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ba={...ge,...Yr,...Gr};function va(e,t,o){return{props:ba,emits:["update:collapse"],setup(n,l){const a=mn(n.name,n,Ur),i=ha(a,{type:n.type}),s=qt();_t(!0);const u=n.rollingDisplay?ma():null,d=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),f=r.computed(()=>s&&a?Lt(a,!0).value:null),p=r.getCurrentInstance(),N=(z,Y=!1)=>{const x=p?.proxy;x&&typeof x.setNameValidateRules=="function"&&x.setNameValidateRules(z,!0,Y)};r.watch([()=>n.rules,()=>n.pureDataRules],([z,Y],[x,_])=>{if(z&&x){const H=r.toRaw(x),G=r.toRaw(z),te=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ue=>{te.includes(ue)||(G[ue]=[])}),N(G)}if(Y&&_){const H=r.toRaw(_),G=r.toRaw(Y),te=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ue=>{te.includes(ue)||(G[ue]=[])}),N(G,!0)}},{deep:!0});const g=e,m=r.computed(()=>{const z={};z.height=P.value;const Y=s?Mt(a,!0):null;if(f.value&&Y){if(f.value.type==="grid"){const x=Pt(Y,f.value,n.span,n.offset);Object.assign(z,x)}else if(f.value.type==="flow"){const x=jt(Y,f.value,n.span,n.offset,n.width);Object.assign(z,x)}}else if(n.width){const x=Se(n.width);z.width=x}return z}),v=r.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),w=r.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const x=ya(D.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${x})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),T=r.toRef(n,"title"),O=r.toRef(n,"gutter"),q=r.toRef(n,"column"),V=r.computed(()=>s||c.value?!0:re(n.isWrap)),F=[],R=z=>{F.push(z)},M=()=>{let z=F.length;F.splice(0,z)},D=r.ref(-1),E=z=>{const Y=Sn(z).width;Y>0&&Y!==D.value&&(D.value=Y)};Cn(a,D.value,q.value,O.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([D,q,O],([z,Y,x])=>{i.order.index=0,Cn(a,z,Y,x,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=r.computed(()=>I.value?n.expandText??"":n.collapseText??""),B=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),$=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),b=r.ref(),S=r.ref(),P=r.computed(()=>K.value||Se(n.height)||""),I=r.ref(!1),K=r.ref(""),C=r.ref(!1);let A=-1;const j=(z,Y=!0)=>{const x=b.value;if(x&&I.value!==z){if(A=A===-1?pa(x):A,C.value=!0,Y)if(x.style["will-change"]="height",x.ontransitionend=function(){x.ontransitionend=null,this.style["will-change"]="auto",z||(K.value="",C.value=!1)},z){let _=0;n.collapseHeight?_=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(_=S.value.offsetHeight),K.value=`${A}px`,r.nextTick(()=>{K.value=`${_}px`})}else K.value=`${A}px`;else if(z){let _=0;n.collapseHeight?_=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(_=S.value.offsetHeight),K.value=`${_}px`}else C.value=!1,K.value=`${A}px`;I.value=z,l.emit("update:collapse",z)}};r.watch(()=>n.collapse,z=>{j(z)});const U=()=>{Q()},Q=z=>{z=z??!I.value,j(z)};ye({toggleCollapse:Q,doLayout:()=>{F[0]&&(E(F[0]),Cn(a,D.value,q.value,O.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let J=null,ee=!0;const ae=z=>{if(n.rules){const Y=r.toRaw(n.rules);N(Y)}if(n.pureDataRules){const Y=r.toRaw(n.pureDataRules);N(Y,!0)}if(tt&&(z&&j(re(n.collapse),!1),n.autoLayout&&Array.isArray(F)&&F.length>0)){const Y=F[0];E(Y),window.ResizeObserver&&(J=new window.ResizeObserver(()=>{E(Y)}),J.observe(Y))}},Z=()=>{J?.disconnect(),J=null},L=!c.value||u?.acquire();L&&(d.value=c.value?!0:null),r.onMounted(()=>{if(L&&(ae(ee),ee=!1),c.value&&u){let z=null,Y=u.initialHeight;u.observe(b.value,x=>{if(x!==d.value)if(x)d.value=!0,I.value||(K.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(ae(ee),ee=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!I.value)if(ee)K.value=u.initialHeight;else{let _=En(b.value);_<=0?K.value=Y:(K.value=`${_}px`,Y=K.value)}ee||Z()}})}}),r.onUnmounted(()=>{J?.disconnect(),u&&u.unobserve(b.value)});const W=(z="right")=>{const Y=[];if(k.value){const H={class:B.value},G=r.h("span",H,[k.value]);Y.push(G)}const x={class:$.value},_=o(n.collapseIcon,x);return _&&Y.push(_),Y.length>0?r.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:U},Y):null},X=(z,Y,x,_)=>{const H={...v.value};return Y===0&&(H[`${g}__first`]=!0),x>=_-1&&(H[`${g}__last`]=!0),r.h("div",{ref:R,key:`${Y}`,class:H,style:w.value},z)};return()=>{if(c.value&&d.value!==!0){const H=n.tag||"div";return r.h(H,{ref:b,prop:n.name,class:{[`${g}`]:!0,"is-collapse":C.value},style:m.value},[])}i.order.index=0;const z=[];let Y=0;if(l.slots.header){const H={key:`${Y++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},G=r.h("div",H,[l.slots.header()]);z.push(G)}else{const H=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=W("left");te&&H.push(te)}if(T.value){if(n.showMark){const ie={class:{[`${g}__header-mark`]:!0}};n.markColor&&(ie.style={background:n.markColor});const ue=r.h("div",ie);H.push(ue)}const te=r.h("div",{class:{[`${g}__header-title`]:!0}},[T.value]);H.push(te)}if(l.slots.toolbar&&H.push(l.slots.toolbar()),!G&&n.showCollapse){const te=W("right");te&&H.push(te)}if(H.length>0){const te={key:`${Y++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},ie=r.h("div",te,H);z.push(ie)}}M();const x=l.slots.default?l.slots.default():[],_=i.layout.value.type;if(_==="grid"){const H=X(x,Y++,0,x.length);z.push(H)}else if(_==="flow"){const H=X(x,Y++,0,x.length);z.push(H)}else for(let H=0;H<x.length;H++){const G=x[H],te=X([G],Y++,H,x.length);z.push(te)}if(V.value){const H=n.tag||"div";return r.h(H,{ref:b,prop:n.name,class:{[`${g}`]:!0,"is-collapse":C.value},style:m.value},[z])}else return z}}}}const{componentName:wa,create:Sa,scope:xa}=oe("group"),Nn=Sa(va(wa,xa,(e,t)=>(e=e??Ne.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function Ta(e){return e===window}const $a=/matrix\((.+)\)/,Qr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Ta(t))return{x:0,y:0};let o=0,n=0,l=t;for(;l!==null;)o+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let a=0,i=0,s=0,u=0;for(l=t;l!==document;){i+=l.scrollTop,a+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const c=$a.exec(d);if(c){let p=c[1].split(/\s*,\s*/);p.length==6&&(s+=Number(p[4]),u+=Number(p[5]))}}l=l.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Ca{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 Ea{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a||(a=new Ca,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const eo=new Ea,to={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Na,create:ka}=oe("price"),Va=ka({props:{...to},setup(e){const t=r.computed(()=>({[Na]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>dt(e.price)==0?"":Ct(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:l,decimalText:a}}}),Oa=["innerHTML"],Ia=["innerHTML"];function Ra(e,t,o,n,l,a){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,Oa)):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,Ia)):r.createCommentVNode("",!0)],2)}const zt=Ie(Va,[["render",Ra]]),{componentName:kn,create:Da}=oe("hint-text"),Fa=Da({components:{Price:zt},props:{...to,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=r.ref({top:null,right:null,bottom:null,left:null}),n=r.ref({x:0,y:0}),l=r.ref(0),a=r.ref(0),i=r.ref(e.placement),s=r.ref(!1),u=r.ref(null),d=(k,B,$,b,S,P)=>{const I=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight,C=k.split("-");let A=[];C[0]==="top"?A=["top","bottom","right","left"]:C[0]==="bottom"?A=["bottom","top","right","left"]:C[0]==="left"?A=["left","top","bottom","right"]:C[0]==="right"&&(A=["right","top","bottom","left"]);const j={top:null,right:null,bottom:null,left:null},U=[];for(let Q=0;Q<A.length;Q++){const ne=A[Q];if(U[0]=ne,C[1]&&(U[1]=C[1]),ne==="top"){const J=B.y-P-e.arrowSize-e.offset;if(J>=0){j.top=J;let ee=0;C[1]==="start"?ee=B.x:C[1]==="end"?ee=B.x+$-S:ee=B.x+$/2-S/2;const ae=I-ee-S;ae<0?(ee+=ae,f.value=-ae):f.value=0,j.left=ee<0?0:ee;break}}else if(ne==="bottom"){const J=B.y+b+e.arrowSize+e.offset;if(J+P<=K){j.top=J;let ee=0;C[1]==="start"?ee=B.x:C[1]==="end"?ee=B.x+$-S:ee=B.x+$/2-S/2;const ae=I-ee-S;ae<0?(ee+=ae,f.value=-ae):f.value=0,j.left=ee<0?0:ee;break}}else if(ne==="left"){const J=B.x-S-e.arrowSize-e.offset;if(J>=0){j.left=J;let ee=0;C[1]==="start"?ee=B.y:C[1]==="end"?ee=B.y+b-P:ee=B.y+b/2-P/2,j.top=ee<0?0:ee;break}}else if(ne==="right"){const J=B.x+$+e.arrowSize+e.offset;if(J+S<=I){j.left=J;let ee=0;C[1]==="start"?ee=B.y:C[1]==="end"?ee=B.y+b-P:ee=B.y+b/2-P/2,j.top=ee<0?0:ee;break}}}return{bestPlacement:U.join("-"),bestInsetRect:j}},c=(k,B,$=10)=>{if(!tt||B===!1||!k)return;n.value=Qr(e.reference),l.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const b=u.value.offsetHeight,S=u.value.offsetWidth,{bestPlacement:P,bestInsetRect:I}=d(e.placement,n.value,l.value,a.value,S,b);i.value=P,o.value=I,s.value=!0},f=r.ref(0),p=mt(()=>{c(e.message,e.visible)},10),N=r.ref(e.visible);r.watch(()=>e.visible,k=>{N.value=k});const g=r.computed(()=>N.value&&m.value),m=r.ref(!0),v=mt(k=>{const B=k[0];B&&(m.value=B.isIntersecting)},10),w=new IntersectionObserver(v);r.watch([()=>e.message,()=>e.visible],([k,B])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),r.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),eo.watch(e.reference,p),w.observe(e.reference)}),r.onBeforeMount(()=>{eo.unwatch(e.reference,p),w.unobserve(e.reference),w.disconnect()});const T=r.computed(()=>{const k={[kn]:!0};return i.value.startsWith("top")?k["is-top"]=!0:i.value.startsWith("right")?k["is-right"]=!0:i.value.startsWith("bottom")?k["is-bottom"]=!0:i.value.startsWith("right")&&(k["is-right"]=!0),e.size==="small"?k["is-small"]=!0:e.size==="large"&&(k["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(k[`${e.customClass}`]=!0),k}),O=r.computed(()=>{const k={};o.value.top!==null&&(k.top=`${o.value.top}px`),o.value.right!==null&&(k.right=`${o.value.right}px`),o.value.bottom!==null&&(k.bottom=`${o.value.bottom}px`),o.value.left!==null&&(k.left=`${o.value.left}px`),e.autoFit&&(k["min-width"]=`${l.value}px`);const B=document.documentElement.clientWidth||document.body.clientWidth;return k["max-width"]=`${B}px`,s.value&&(k.opacity="1"),e.transition||(k.transition="none"),e.zIndex&&(k["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(k,e.customStyle),k}),q=r.computed(()=>{const k=[`${kn}__content`];return e.customTextClass&&k.push(e.customTextClass),k}),V=r.computed(()=>{const k={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(k,e.customTextStyle),k}),F=r.computed(()=>({[`${kn}__arrow`]:!0})),R=r.computed(()=>{const k={};return e.showArrow?(k.width=`${e.arrowSize}px`,k.height=`${e.arrowSize}px`,i.value==="top"?(k.left="50%",k.bottom=`-${e.arrowSize}px`,k.transform=" translate(-50%, 0%)"):i.value==="top-start"?(k.left=`${e.arrowOffset+f.value}px`,k.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(k.right=`${e.arrowOffset-f.value}px`,k.bottom=`-${e.arrowSize}px`):i.value==="right"?(k.left=`-${e.arrowSize}px`,k.top="50%",k.transform=" translate(0%, -50%)"):i.value==="right-start"?(k.left=`-${e.arrowSize}px`,k.top=`${e.arrowOffset}px`):i.value==="right-end"?(k.left=`-${e.arrowSize}px`,k.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(k.left="50%",k.top=`-${e.arrowSize}px`,k.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(k.left=`${e.arrowOffset+f.value}px`,k.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(k.right=`${e.arrowOffset-f.value}px`,k.top=`-${e.arrowSize}px`):i.value==="left"?(k.right=`-${e.arrowSize}px`,k.top="50%",k.transform=" translate(0%, -50%)"):i.value==="left-start"?(k.right=`-${e.arrowSize}px`,k.top=`${e.arrowOffset}px`):i.value==="left-end"&&(k.right=`-${e.arrowSize}px`,k.bottom=`-${e.arrowOffset}px`),k):{display:"none"}}),M=r.computed(()=>g.value&&e.closeOnClick),D=r.computed(()=>{const k={};return e.zIndex&&(k["z-index"]=`${e.zIndex}`),k});return{show:g,tipRef:u,classes:T,styles:O,textClasses:q,textStyles:V,arrowClasses:F,arrowStyles:R,overlayShow:M,overlayStyle:D,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}});function Aa(e,t,o,n,l,a){const i=r.resolveComponent("Price");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.overlayShow?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:r.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(e.message),1)],64))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])],64)}const bt=Ie(Fa,[["render",Aa]]);class no{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 Vn={},Ba=new no,lt=new Map,Ht=e=>{if(e){const t=document.getElementById(e);lt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of lt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}lt.clear()}},qa=e=>{e.unmount=Ht;const t=document.getElementById(e.id);if(t){const o=lt.get(e.id);o?e={...Vn,...o,...e}:e={...Vn,...e},e.transition=!1;const n=r.createVNode(bt,e);return r.render(n,t),e.id}},_a=e=>{e.unmount=Ht;let t=e.id??`hinttext_${Ba.get()}`;e={...Vn,...e},e.id=t,lt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(bt,e);return r.render(n,o),document.body.appendChild(o),t},La=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Kt={show(e,t,o={},n=!0){La(t);const l=o.id;return l&<.has(l)?qa({...o,message:t,reference:e}):(n&&Ht(),_a({...o,message:t,reference:e}))},hide(e){Ht(e)},install(e){e.config.globalProperties.$hintText=Kt}},{componentName:ro,create:Ma}=oe("item"),ja=Ma({inheritAttrs:!0,props:{...ge,...xe},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:ro,validate:!1},o);const n=Pe(),l=qt();_t(!1);const a=r.computed(()=>l&&n?Lt(n,!1).value:null),i=ro,s=r.ref(null),u=r.computed(()=>{const L={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(L[e.errorMarkClass]=!!B.value,L[e.warnMarkClass]=!!E.value,L[e.infoMarkClass]=!!M.value,typeof s.value=="function"){const W=s.value(o);L[W]=!0}else if(typeof s.value=="string"){const W=s.value;L[W]=!0}return L}),d=r.ref(null),c=r.computed(()=>{const L={},W=l&&n?Mt(n,!1):null;if(a.value&&W)if(a.value.type==="grid"){const X=Pt(W,a.value,e.span,e.offset);Object.assign(L,X)}else if(a.value.type==="flow"){const X=jt(W,a.value,e.span,e.offset,e.width);Object.assign(L,X)}else return e.width&&(L.width=Se(e.width)),L;else e.width&&(L.width=Se(e.width));if(typeof d.value=="function"){const X=d.value(o);X&&Object.assign(L,X)}else if(d.value&&typeof d.value=="object"){const X=d.value;Object.assign(L,X)}return L}),f=r.ref(null),p=r.computed({get:()=>f.value??re(e.isRequired),set:L=>{f.value=L}}),N=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=Te(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),m=r.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),v=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${m.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${m.value}`]:!0})),T=Te(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),O=r.computed(()=>T&&T.value?{width:Se(T.value)}:{}),q=r.computed(()=>({"label--string":!0,"label--required":p.value})),V=r.computed(()=>({content:!0,[e.contentClass]:!0})),F=r.computed(()=>({...e.contentStyle})),R=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ye({setRequired(L){p.value=L},setErrorTip(L){R.errorTip=L},setErrorIcon(L){R.errorIcon=L},setWarnTip(L){R.warnTip=L},setWarnIcon(L){R.warnIcon=L},setInfoTip(L){R.infoTip=L},setInfoIcon(L){R.infoIcon=L},setCustomClassName(L){s.value=L},setCustomStyle(L){d.value=L}});const M=r.computed(()=>e.infoTip||R.infoTip),D=r.computed(()=>e.infoIcon||R.infoIcon),E=r.computed(()=>e.warnTip||R.warnTip),k=r.computed(()=>e.warnIcon||R.warnIcon),B=r.computed(()=>e.errorTip||R.errorTip),$=r.computed(()=>e.errorIcon||R.errorIcon),b=r.computed(()=>B.value?"error":E.value?"warn":M.value?"info":""),S=r.computed(()=>b.value.length>0),P=r.computed(()=>b.value==="error"?B.value:b.value==="warn"?E.value:b.value==="info"?M.value:""),I=r.computed(()=>b.value==="error"?$.value:b.value==="warn"?k.value:b.value==="info"?D.value:null),K=r.computed(()=>{let L={[`${i}__tip`]:!0,[`${i}__tip--${b.value}`]:!0};return b.value==="error"&&e.errorClass?L[`${e.errorClass}`]=!0:b.value==="warn"&&e.warnClass?L[`${e.warnClass}`]=!0:b.value==="info"&&e.infoClass&&(L[`${e.infoClass}`]=!0),L}),C=r.computed(()=>{let L={};return g&&g.value==="top"||!N.value?L["padding-left"]="0px":T&&T.value&&(L["padding-left"]=Se(T.value)),L}),A=()=>{const L=I.value;return L?typeof L=="function"?r.h("div",{class:"fox-item__tip--icon"},[L()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(L)]):null},j=()=>{const L=P.value;return L?typeof L=="function"?r.h("div",{class:"fox-item__tip--text"},[L()]):r.h("div",{class:"fox-item__tip--text"},[L]):null},U=r.computed(()=>t.slots.fixedTip),Q=r.computed(()=>({[`${i}__fixed-tip`]:!0})),ne=r.ref();let J="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([L,W,X,z])=>{ne.value&&(L&&!de(W)?J?Kt.show(ne.value,W,{...z,id:J,type:X},!0):J=Kt.show(ne.value,W,{...z,type:X},!0):Kt.hide(J))});let ee=null;const ae=()=>{ee||!ne.value||(ee=new IntersectionObserver(L=>{let W=!1;for(let X of L)if(X.intersectionRatio>0){W=!0,W&&t.emit("appear",X);break}W||t.emit("disappear")}),ee.observe(ne.value))},Z=()=>{!ee||!ne.value||(ee.unobserve(ne.value),ee=null)};return r.watch(()=>re(e.appearListen),L=>{L?ae():Z()}),r.onMounted(()=>{re(e.appearListen)&&ae()}),r.onUnmounted(Z),{classes:u,styles:c,mainClasses:v,hasLabel:N,labelClasses:w,labelStyles:O,labelStringClasses:q,contentClasses:V,contentStyles:F,contentRef:ne,hasTip:S,mTip:P,mIcon:I,renderIcon:A,renderTip:j,tipClasses:K,tipStyles:C,hasFixedTip:U,fixedTipClasses:Q}}}),Pa=["prop"];function za(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon()),{key:0})):r.createCommentVNode("",!0),e.mTip?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderTip()),{key:1})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Pa)}const me=Ie(ja,[["render",za]]);function Ha(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 l=Pe(),a=qt();_t(!1);const i=r.computed(()=>a&&l?Lt(l,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),d=r.computed(()=>{const c={},f=a&&l?Mt(l,!1):null;if(i.value&&f)if(i.value.type==="grid"){const p=Pt(f,i.value,o.span,o.offset);Object.assign(c,p)}else if(i.value.type==="flow"){const p=jt(f,i.value,o.span,o.offset,o.width);Object.assign(c,p)}else return o.width&&(c.width=Se(o.width)),c;else o.width&&(c.width=Se(o.width));return c});return()=>{const c={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Ka,create:Wa,scope:uf}=oe("slot-item"),On=Wa(Ha(Ka));function Ya(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 l=e,a=r.computed(()=>({[l]:!0,[`${l}__stretch`]:o.span==="stretch",[`${l}__${o.align}`]:!0})),i=Pe(),s=qt();_t(!1);const u=r.computed(()=>{const d={};if(s&&i){const c=Lt(i,!1),f=Mt(i,!1);if(c.value&&f)if(c.value.type==="grid"){const p=Pt(f,c.value,o.span,o.offset);Object.assign(d,p)}else if(c.value.type==="flow"){const p=jt(f,c.value,o.span,o.offset,o.width);Object.assign(d,p)}else o.width&&(d.width=Se(o.width))}else o.width&&(d.width=Se(o.width));return d});return()=>{const d=[];if(n.slots.default){const f=n.slots.default();if(o.divide)for(let p=0;p<f.length;p++){if(p>0){const N=r.h("div",{class:{[`${l}__divide`]:!0}});d.push(N)}d.push(f[p])}else Reflect.apply([].push,d,f)}const c={class:a.value,style:u.value};return r.h("div",c,d)}}}}const{componentName:Ga,create:Ua,scope:cf}=oe("row-item"),In=Ua(Ya(Ga)),qe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},oo={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 Xa(e,t,o){return{props:{...ge,...xe,...oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0,[`${p}__disabled`]:a.value,[`${p}__readonly`]:i.value})),g=$=>{f.value=$,s("update:modelValue",$),s("input",$)},m=$=>{s("change",$)};let v=se(n,"hintText"),w=r.ref(!1);const T=$=>{let S=$.target.value;c.value=!0,de(v.value)||(w.value=!0),s("focus",S,$)},O=$=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let S=$.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),s("blur",S,$)},q=()=>{s("clear","")},V=r.ref(!1);let F=null;const R=()=>{n.showTooltip&&V.value===!1&&(F&&clearTimeout(F),F=setTimeout(()=>{V.value=!0},150))},M=()=>{F&&(clearTimeout(F),V.value=!1,F=null)},D=r.computed(()=>V.value||w.value),E=r.computed(()=>V.value?f.value:v.value),k=r.computed(()=>dt(n.unit)>0),B=r.ref();return ye({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const b={...qe(l.attrs),ref:B,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:m,onInput:g,onFocus:T,onBlur:O,onMouseover:R,onMouseleave:M},S={};l.slots.prepend&&(S.prepend=l.slots.prepend),l.slots.append&&(S.append=l.slots.append),l.slots.prefix&&(S.prefix=l.slots.prefix),l.slots.suffix?S.suffix=l.slots.suffix:k.value&&(S.suffix=()=>[n.unit]);const P=[],I=r.h(y.ElInput,b,S);P.push(I);const K={default:()=>P};l.slots.default&&(K.label=l.slots.default),l.slots.default&&(K.fixedTip=l.slots.fixedTip);const A={...we(n,oo),hintText:E.value,hintVisible:D.value,prop:`${n.prop}_item`};return r.h(o,A,K)}}}}const{componentName:Za,create:Ja,scope:Qa}=oe("input-item"),Rn=Ja(Xa(Za,Qa,me));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function lo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ei(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ti=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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function ni(){const e=r.getCurrentInstance();return new ti(e.proxy)}function ao(e,t,o){const n=Ge(e,t),l=Ge(e,o);if(n!==l)return!1;const a=vt(e,t),i=vt(e,o);return a===i}function io(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){const s=lo(e,i);if(Array.isArray(s)&&s.length>0){const u=io(e,a,o,s)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(o==="text")u=Ge(e,i)===a;else if(o==="item")u=ao(e,i,a);else{let d=vt(e,i);d==null&&(d=Ge(e,i)),u=d===a}if(u){l.push(i);break}}}}),l}function ri(e){return{text:e,value:e}}const so={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function oi(e,t,o){return{props:{...ge,...xe,...so},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),p=r.computed(()=>f.value?f.value.map(X=>Ge(n,X)).join(" "):""),N=(W,X,z,Y=!0)=>{const x=io(n,W,X,z);if(x===null){if(f.value===null||f.value.length===0)return;c.value=null,f.value=[],Y&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let _=!0;if(x.length!==f.value.length)_=!1;else for(let H=0;H<x.length;H++){const G=x[H],te=f.value[H];if(!ao(n,G,te)){_=!1;break}}if(!_){f.value=x;let H=[],G=[],te=[];x.forEach(De=>{const xt=vt(n,De),Le=Ge(n,De);H.push(xt),te.push(Le),n.valueType==="text"?G.push(Le):n.valueType==="item"?G.push(De):G.push(xt)});let ie,ue,Ve;re(n.multiple)?(c.value=H,ie=r.toRaw(G),ue=te,Ve=r.toRaw(x)):(c.value=H[0]??"",ie=r.toRaw(G[0]??""),ue=te[0]??"",Ve=r.toRaw(x[0])),Y&&(s("update:modelValue",ie),s("change",ie,Ve)),s("update:text",ue)}},g=r.ref(null),m=r.ref(null),v=r.computed(()=>m.value??g.value??[]),w=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,W=>re(W)),T=ni(),O=async(W,X)=>{if(W){const z=await T.load("select",W,X);if(z.length>0)if(typeof z[0]=="string"){let _=z.map(H=>ri(H));g.value=_}else g.value=z;else g.value=null}};r.watch([()=>n.source,()=>n.params],([W,X])=>{m.value=null,O(W,X)},{immediate:!w.value});let q=!1;const V=()=>{q||(q=!0,O(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([W,X])=>{if(D()&&re(n.multiple)){Me(X,c.value)||(c.value=X);return}N(X,n.valueType,v.value,!1)});let F=null,R=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async W=>{if(W==null){m.value=null;return}R.value=!0;try{const X=await n.remoteMethod(W);X&&(m.value=X)}catch(X){m.value=null,console.error(X)}R.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async W=>{if(W==null){m.value=null;return}R.value=!0;try{const X=await n.filterMethod(W,g.value);X&&(m.value=X)}catch(X){m.value=null,console.error(X)}R.value=!1});const D=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",E=r.ref(!1),k=e,B=r.computed(()=>({[k]:!0})),$=W=>{n.allowCreate||D()&&re(n.multiple)?(s("update:modelValue",W),s("change",W),s("update:text",W),c.value=W):N(W,"value",v.value,!0)};let b=se(n,"hintText"),S=r.ref(!1);const P=W=>{let z=W.target.value;E.value=!0,de(b.value)||(S.value=!0),s("focus",z,W)},I=W=>{setTimeout(()=>{S.value&&(S.value=!1),E.value=!1},0);let z=W.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),J.value||s("blur",z,W)},K=()=>{s("clear","")},C=r.ref(!1);let A=null;const j=()=>{n.showTooltip&&C.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{C.value=!0},150))},U=()=>{A&&(clearTimeout(A),C.value=!1,A=null)},Q=r.computed(()=>C.value||S.value),ne=r.computed(()=>C.value?p.value:b.value),J=r.ref(!1),ee=W=>{J.value=W,s("visible-change",W),W||s("selected")},ae=W=>{s("remove-tag",W)},Z=(W,X)=>{const z=[];return W.forEach((Y,x)=>{const _=lo(n,Y);if(Array.isArray(_)&&_.length>0){const H=Z(_,X),G=Ge(n,Y),ie={key:`${G}_${x}`,label:G};z.push(r.h(y.ElOptionGroup,ie,{default:()=>H}))}else{const H=vt(n,Y),G=Ge(n,Y),te=ei(n,Y),ue={key:`${H}_${x}`,label:G,disabled:te,value:H};if(typeof X=="function")z.push(r.h(y.ElOption,ue,{default:()=>X(Y)}));else if(n.optionType==="item"){const Ve={class:{"fox-select-item__option-left":!0}},De=r.h("span",Ve,[H]),xt={class:{"fox-select-item__option-right":!0}},Le=r.h("span",xt,[G]),dr=r.h("div",{class:{"fox-select-item__option":!0}},[De,Le]);z.push(r.h(y.ElOption,ue,{default:()=>dr}))}else n.optionType==="value"?z.push(r.h(y.ElOption,ue,{default:()=>[H]})):z.push(r.h(y.ElOption,ue))}}),z},L=r.ref();return ye({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const X={...qe(l.attrs),ref:L,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:K,onChange:$,onFocus:P,onBlur:I,onVisibleChange:ee,onRemoveTag:ae};typeof F=="function"&&(X["remote-method"]=F,X.loading=R.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=R.value);const z={};l.slots.prefix&&(z.prefix=l.slots.prefix),l.slots.empty&&(z.empty=l.slots.empty),l.slots.options?z.default=l.slots.options:z.default=()=>Z(v.value,l.slots.option);const Y=[],x=r.h(y.ElSelect,X,z);Y.push(x);const _={default:()=>Y};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const G={...we(n,so),hintText:ne.value,hintVisible:Q.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:j,onMouseleave:U};return w.value&&(G["appear-listen"]=!0,G.onAppear=V),r.h(o,G,_)}}}}const{componentName:li,create:ai,scope:ii}=oe("select-item"),Dn=ai(oi(li,ii,me));var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){var o=1e3,n=6e4,l=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",c="week",f="month",p="quarter",N="year",g="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function($,b,S){var P=String($);return!P||P.length>=b?$:""+Array(b+1-P.length).join(S)+$},q={s:O,z:function($){var b=-$.utcOffset(),S=Math.abs(b),P=Math.floor(S/60),I=S%60;return(b<=0?"+":"-")+O(P,2,"0")+":"+O(I,2,"0")},m:function $(b,S){if(b.date()<S.date())return-$(S,b);var P=12*(S.year()-b.year())+(S.month()-b.month()),I=b.clone().add(P,f),K=S-I<0,C=b.clone().add(P+(K?-1:1),f);return+(-(P+(S-I)/(K?I-C:C-I))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:N,w:c,d,D:g,h:u,m:s,s:i,ms:a,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},V="en",F={};F[V]=T;var R=function($){return $ instanceof k},M=function $(b,S,P){var I;if(!b)return V;if(typeof b=="string"){var K=b.toLowerCase();F[K]&&(I=K),S&&(F[K]=S,I=K);var C=b.split("-");if(!I&&C.length>1)return $(C[0])}else{var A=b.name;F[A]=b,I=A}return!P&&I&&(V=I),I||!P&&V},D=function($,b){if(R($))return $.clone();var S=typeof b=="object"?b:{};return S.date=$,S.args=arguments,new k(S)},E=q;E.l=M,E.i=R,E.w=function($,b){return D($,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var k=function(){function $(S){this.$L=M(S.locale,null,!0),this.parse(S)}var b=$.prototype;return b.parse=function(S){this.$d=function(P){var I=P.date,K=P.utc;if(I===null)return new Date(NaN);if(E.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var C=I.match(v);if(C){var A=C[2]-1||0,j=(C[7]||"0").substring(0,3);return K?new Date(Date.UTC(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,j)):new Date(C[1],A,C[3]||1,C[4]||0,C[5]||0,C[6]||0,j)}}return new Date(I)}(S),this.$x=S.x||{},this.init()},b.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},b.$utils=function(){return E},b.isValid=function(){return this.$d.toString()!==m},b.isSame=function(S,P){var I=D(S);return this.startOf(P)<=I&&I<=this.endOf(P)},b.isAfter=function(S,P){return D(S)<this.startOf(P)},b.isBefore=function(S,P){return this.endOf(P)<D(S)},b.$g=function(S,P,I){return E.u(S)?this[P]:this.set(I,S)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(S,P){var I=this,K=!!E.u(P)||P,C=E.p(S),A=function(Z,L){var W=E.w(I.$u?Date.UTC(I.$y,L,Z):new Date(I.$y,L,Z),I);return K?W:W.endOf(d)},j=function(Z,L){return E.w(I.toDate()[Z].apply(I.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(L)),I)},U=this.$W,Q=this.$M,ne=this.$D,J="set"+(this.$u?"UTC":"");switch(C){case N:return K?A(1,0):A(31,11);case f:return K?A(1,Q):A(0,Q+1);case c:var ee=this.$locale().weekStart||0,ae=(U<ee?U+7:U)-ee;return A(K?ne-ae:ne+(6-ae),Q);case d:case g:return j(J+"Hours",0);case u:return j(J+"Minutes",1);case s:return j(J+"Seconds",2);case i:return j(J+"Milliseconds",3);default:return this.clone()}},b.endOf=function(S){return this.startOf(S,!1)},b.$set=function(S,P){var I,K=E.p(S),C="set"+(this.$u?"UTC":""),A=(I={},I[d]=C+"Date",I[g]=C+"Date",I[f]=C+"Month",I[N]=C+"FullYear",I[u]=C+"Hours",I[s]=C+"Minutes",I[i]=C+"Seconds",I[a]=C+"Milliseconds",I)[K],j=K===d?this.$D+(P-this.$W):P;if(K===f||K===N){var U=this.clone().set(g,1);U.$d[A](j),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},b.set=function(S,P){return this.clone().$set(S,P)},b.get=function(S){return this[E.p(S)]()},b.add=function(S,P){var I,K=this;S=Number(S);var C=E.p(P),A=function(Q){var ne=D(K);return E.w(ne.date(ne.date()+Math.round(Q*S)),K)};if(C===f)return this.set(f,this.$M+S);if(C===N)return this.set(N,this.$y+S);if(C===d)return A(1);if(C===c)return A(7);var j=(I={},I[s]=n,I[u]=l,I[i]=o,I)[C]||1,U=this.$d.getTime()+S*j;return E.w(U,this)},b.subtract=function(S,P){return this.add(-1*S,P)},b.format=function(S){var P=this,I=this.$locale();if(!this.isValid())return I.invalidDate||m;var K=S||"YYYY-MM-DDTHH:mm:ssZ",C=E.z(this),A=this.$H,j=this.$m,U=this.$M,Q=I.weekdays,ne=I.months,J=function(L,W,X,z){return L&&(L[W]||L(P,K))||X[W].slice(0,z)},ee=function(L){return E.s(A%12||12,L,"0")},ae=I.meridiem||function(L,W,X){var z=L<12?"AM":"PM";return X?z.toLowerCase():z},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:E.s(U+1,2,"0"),MMM:J(I.monthsShort,U,ne,3),MMMM:J(ne,U),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:J(I.weekdaysMin,this.$W,Q,2),ddd:J(I.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(A),HH:E.s(A,2,"0"),h:ee(1),hh:ee(2),a:ae(A,j,!0),A:ae(A,j,!1),m:String(j),mm:E.s(j,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:C};return K.replace(w,function(L,W){return W||Z[L]||C.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(S,P,I){var K,C=E.p(P),A=D(S),j=(A.utcOffset()-this.utcOffset())*n,U=this-A,Q=E.m(this,A);return Q=(K={},K[N]=Q/12,K[f]=Q,K[p]=Q/3,K[c]=(U-j)/6048e5,K[d]=(U-j)/864e5,K[u]=U/l,K[s]=U/n,K[i]=U/o,K)[C]||U,I?Q:E.a(Q)},b.daysInMonth=function(){return this.endOf(f).$D},b.$locale=function(){return F[this.$L]},b.locale=function(S,P){if(!S)return this.$L;var I=this.clone(),K=M(S,P,!0);return K&&(I.$L=K),I},b.clone=function(){return E.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},$}(),B=k.prototype;return D.prototype=B,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",f],["$y",N],["$D",g]].forEach(function($){B[$[1]]=function(b){return this.$g(b,$[0],$[1])}}),D.extend=function($,b){return $.$i||($(b,k,D),$.$i=!0),D},D.locale=M,D.isDayjs=R,D.unix=function($){return D(1e3*$)},D.en=F[V],D.Ls=F,D.p={},D})})(uo);var si=uo.exports;const _e=He(si);var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(v){this[m]=+v}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var w=v.match(/([+-]|\d\d)/g),T=60*w[1]+(+w[2]||0);return T===0?0:w[0]==="+"?-T:T}(m)}],f=function(m){var v=s[m];return v&&(v.indexOf?v:v.s.concat(v.f))},p=function(m,v){var w,T=s.meridiem;if(T){for(var O=1;O<=24;O+=1)if(m.indexOf(T(O,0,v))>-1){w=O>12;break}}else w=m===(v?"pm":"PM");return w},N={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[l,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[l,d("day")],Do:[i,function(m){var v=s.ordinal,w=m.match(/\d+/);if(this.day=w[0],v)for(var T=1;T<=31;T+=1)v(T).replace(/\[|\]/g,"")===m&&(this.day=T)}],M:[a,d("month")],MM:[l,d("month")],MMM:[i,function(m){var v=f("months"),w=(f("monthsShort")||v.map(function(T){return T.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(m){var v=f("months").indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(m){this.year=u(m)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function g(m){var v,w;v=m,w=s&&s.formats;for(var T=(m=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,E,k){var B=k&&k.toUpperCase();return E||w[k]||o[k]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,b,S){return b||S.slice(1)})})).match(n),O=T.length,q=0;q<O;q+=1){var V=T[q],F=N[V],R=F&&F[0],M=F&&F[1];T[q]=M?{regex:R,parser:M}:V.replace(/^\[|\]$/g,"")}return function(D){for(var E={},k=0,B=0;k<O;k+=1){var $=T[k];if(typeof $=="string")B+=$.length;else{var b=$.regex,S=$.parser,P=D.slice(B),I=b.exec(P)[0];S.call(E,I),D=D.replace(I,"")}}return function(K){var C=K.afternoon;if(C!==void 0){var A=K.hours;C?A<12&&(K.hours+=12):A===12&&(K.hours=0),delete K.afternoon}}(E),E}}return function(m,v,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var T=v.prototype,O=T.parse;T.parse=function(q){var V=q.date,F=q.utc,R=q.args;this.$u=F;var M=R[1];if(typeof M=="string"){var D=R[2]===!0,E=R[3]===!0,k=D||E,B=R[2];E&&(B=R[2]),s=this.$locale(),!D&&B&&(s=w.Ls[B]),this.$d=function(P,I,K){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*P);var C=g(I)(P),A=C.year,j=C.month,U=C.day,Q=C.hours,ne=C.minutes,J=C.seconds,ee=C.milliseconds,ae=C.zone,Z=new Date,L=U||(A||j?1:Z.getDate()),W=A||Z.getFullYear(),X=0;A&&!j||(X=j>0?j-1:Z.getMonth());var z=Q||0,Y=ne||0,x=J||0,_=ee||0;return ae?new Date(Date.UTC(W,X,L,z,Y,x,_+60*ae.offset*1e3)):K?new Date(Date.UTC(W,X,L,z,Y,x,_)):new Date(W,X,L,z,Y,x,_)}catch{return new Date("")}}(V,M,F),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),k&&V!=this.format(M)&&(this.$d=new Date("")),s={}}else if(M instanceof Array)for(var $=M.length,b=1;b<=$;b+=1){R[1]=M[b-1];var S=w.apply(this,R);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}b===$&&(this.$d=new Date(""))}else O.call(this,q)}}})})(co);var ui=co.exports;const ci=He(ui);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n,l){var a=n.prototype,i=a.format;l.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),p==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),p==="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 p}});return i.bind(this)(f)}}})})(fo);var fi=fo.exports;const di=He(fi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n,l){var a=n.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,p,N,g,m){var v=f.name?f:f.$locale(),w=i(v[p]),T=i(v[N]),O=w||T.map(function(V){return V.slice(0,g)});if(!m)return O;var q=v.weekStart;return O.map(function(V,F){return O[(F+(q||0))%7]})},u=function(){return l.Ls[l.locale()]},d=function(f,p){return f.formats[p]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,m,v){return m||v.slice(1)})}(f.formats[p.toUpperCase()])},c=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):s(f,"months")},monthsShort:function(p){return p?p.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(p){return d(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return s(u(),"months")},l.monthsShort=function(){return s(u(),"monthsShort","months",3)},l.weekdays=function(f){return s(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(ho);var hi=ho.exports;const gi=He(hi);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){var o="week",n="year";return function(l,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(d),f=i(this).endOf(o);if(c.isBefore(f))return 1}var p=i(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(p,o,!0);return N<0?i(this).startOf("week").week():Math.ceil(N)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(go);var mi=go.exports;const pi=He(mi);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n){n.prototype.weekYear=function(){var l=this.month(),a=this.week(),i=this.year();return a===1&&l===11?i+1:l===0&&a>=52?i-1:i}}})})(mo);var yi=mo.exports;const bi=He(yi);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n,l){n.prototype.dayOfYear=function(a){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(po);var vi=po.exports;const wi=He(vi);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n){n.prototype.isSameOrAfter=function(l,a){return this.isSame(l,a)||this.isAfter(l,a)}}})})(yo);var Si=yo.exports;const xi=He(Si);var bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n){n.prototype.isSameOrBefore=function(l,a){return this.isSame(l,a)||this.isBefore(l,a)}}})})(bo);var Ti=bo.exports;const $i=He(Ti);_e.extend(gi),_e.extend(di),_e.extend(ci),_e.extend(pi),_e.extend(bi),_e.extend(wi),_e.extend(xi),_e.extend($i);const Re={format(e,t){return _e(e).format(t)},parser(e,t){return _e(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const l=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},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),l=this.getNumTwoBit(e.getDate());return[o,n,l].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 l=new Date(Number(e),parseInt(t)-1,Number(o));let a=l.getDay(),i=l.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((l.valueOf()-a.valueOf())/864e5);let s=l.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=l.getTime();let i=l.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Re.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Re.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i}},vo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},wo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Ci(e,t,o){return{props:{...ge,...xe,...vo,...wo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=r.computed(()=>S.value&&Array.isArray(f.value)&&f.value.length==2?f.value[0]:f.value),N=r.computed(()=>S.value?"longTermKey":"normalKey"),g=A=>{if(S.value&&n.type==="daterange"){const j=[...f.value];j[0]=A,f.value=j}else f.value=A;s("update:modelValue",f.value),s("change",f.value)},m=r.computed(()=>S.value&&n.type==="daterange"?"date":n.type),v=e,w=r.computed(()=>({[`${v}`]:!0,"is-long":S.value,"is-readonly":i.value,"is-disabled":a.value}));let T=se(n,"hintText"),O=r.ref(!1);const q=A=>{let U=A.target.value;c.value=!0,de(T.value)||(O.value=!0),s("focus",U,A)},V=A=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let U=A.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),s("blur",U,A)},F=()=>{s("clear","")},R=A=>{s("calendar-change",A)},M=(A,j,U)=>{s("panel-change",A,j,U)},D=A=>{s("visible-change",A)},E=Te(r.computed(()=>n.longTermText),"longTermText",ke.Near),k=Te(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",ke.Near),B=Te(r.computed(()=>n.longTermValue),"longTermValue",ke.Near),$=Te(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",ke.Near);let b=null;const S=r.ref(re(n.longTerm)),P=A=>{if(S.value=A,s("update:longTerm",A),A){if(b=f.value,n.type==="daterange"){const j=[];Array.isArray(B.value)?(j[0]=f.value?f.value[0]??B.value[0]:null,j[1]=B.value[1]??B.value[0]):(j[0]=f.value?f.value[0]??B.value:null,j[1]=S.value),j[0]||(j[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),j[1]||(j[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),f.value=j}else Array.isArray(B.value)?f.value=B.value[1]??B.value[0]:f.value=B.value,f.value||(f.value=n.valueFormat?Re.format(new Date,n.valueFormat):new Date);s("update:modelValue",f.value)}else{if(n.type==="daterange"){const j=[];j[0]=Array.isArray(f.value)?f.value[0]:f.value,Array.isArray(b)?j[1]=b[1]:j[1]=b,j[0]||(j[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),j[1]||(j[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),f.value=j}else f.value=b;s("update:modelValue",f.value)}},I=re(n.isLongTerm);if(I){const A=()=>{if(S.value===!0){if(b=f.value,n.type==="daterange"){const j=[f.value[0]];Array.isArray(B.value)?j[1]=B.value[1]??B.value[0]:j[1]=S.value,j[0]||(j[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),j[1]||(j[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),f.value=j}else f.value=B.value;s("update:modelValue",f.value)}else Me(B.value,f.value)&&(S.value=!0)};A(),r.watch([()=>n.longTerm],([j])=>{S.value!==j&&A()}),r.watch([()=>f.value],([j])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(j))try{let Q=j[1];if(!Q)return;typeof Q!="string"&&n.valueFormat&&(Q=Re.format(Q,n.valueFormat));let ne=Array.isArray(B.value)?B.value[1]:B.value;(Q===ne||Array.isArray($.value)&&$.value.findIndex(ee=>Q==ee)!==-1)&&(U=!0)}catch(Q){console.error(Q)}S.value!==U&&(S.value=U)},{immediate:!0})}const K=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),C=r.ref();return ye({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},handleOpen:()=>{C?.value.handleOpen()},handleClose:()=>{C?.value.handleClose()}}),()=>{const j={...l.attrs,key:N.value,type:m.value,ref:C,class:w.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:p.value,valueFormat:n.valueFormat,"onUpdate:modelValue":g,onClear:F,onFocus:q,onBlur:V,onCalendarChange:R,onPanelChange:M,onVisibleChange:D},U={};l.slots["range-separator"]&&(U["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(U.default=l.slots.cell);const Q=[],ne=r.h(y.ElDatePicker,j,U);Q.push(ne);const J={default:()=>Q};if(l.slots.default&&(J.label=l.slots.default),l.slots.fixedTip&&(J.fixedTip=l.slots.fixedTip),I){if(S.value){const L=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),W=r.h("input",{class:["fox-date-item__long-text"],value:E.value,readonly:!0}),X={class:K.value},z=r.h("div",X,{default:()=>[L,W]});Q.push(z)}if(!i.value&&!a.value){const L={label:k.value||E.value,disabled:i.value||a.value,modelValue:S.value,"onUpdate:modelValue":P},W=r.h(y.ElCheckbox,L),X=r.h("div",{class:{[`${v}__append`]:!0}},[W]);J.append=()=>X}}const ae={...we(n,vo,wo),class:{[`${v}__wrapper`]:!0,"has-append":I},hintText:T.value,hintVisible:O.value,prop:`${n.prop}_item`};return r.h(o,ae,J)}}}}const{componentName:Ei,create:Ni,scope:ki}=oe("date-item"),Fn=Ni(Ci(Ei,ki,me)),So={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Vi(e,t,o){return{props:{...ge,...xe,...So},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0})),g=F=>{f.value=F,s("update:modelValue",F),s("change",F)};let m=se(n,"hintText"),v=r.ref(!1);const w=F=>{let M=F.target.value;c.value=!0,de(m.value)||(v.value=!0),s("focus",M,F)},T=F=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let M=F.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),s("blur",M,F)},O=()=>{s("clear","")},q=F=>{s("visible-change",F)},V=r.ref();return ye({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const R={...l.attrs,ref:V,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":g,onClear:O,onFocus:w,onBlur:T,onVisibleChange:q},M={},D=[],E=r.h(y.ElTimePicker,R,M);D.push(E);const k={default:()=>D};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const $={...we(n,So),hintText:m.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,$,k)}}}}const{componentName:Oi,create:Ii,scope:Ri}=oe("time-item"),An=Ii(Vi(Oi,Ri,me)),xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Di(e,t,o){return{props:{...ge,...xe,...xo},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0})),g=V=>{f.value=V,s("update:modelValue",V),s("change",V)};let m=se(n,"hintText"),v=r.ref(!1);const w=V=>{let R=V.target.value;c.value=!0,de(m.value)||(v.value=!0),s("focus",R,V)},T=V=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,V)},O=()=>{s("clear","")},q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const F={...l.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":g,onClear:O,onFocus:w,onBlur:T},R={},M=[],D=r.h(y.ElTimeSelect,F,R);M.push(D);const E={default:()=>M};l.slots.default&&(E.label=l.slots.default),l.slots.fixedTip&&(E.fixedTip=l.slots.fixedTip);const B={...we(n,xo),hintText:m.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,B,E)}}}}const{componentName:Fi,create:Ai,scope:Bi}=oe("time-select-item"),Bn=Ai(Di(Fi,Bi,me));function To(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let l=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){l=a;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>o.length?o=o.padEnd(l,"0"):o=o.substring(0,l),o}function $o(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=br(`${e}`,`${t}`);return To(n)}else{let n=on(`${e}`,vr(`${t}`),20);return To(n)}}function qi(e,t=-1,o=!1,n=3,l=","){return Ct(e,t,o,n,l)}function Co(e,t,o,n,l=!0){if(e=="")return"";if(e=wr(e),t=ve(t),t==1)return e;if(n)e=$o(e,t),o&&(e=="0"&&l?e=`${e}.`.padEnd(ve(o)+2,"0"):e=on(e,1,ve(o)));else{let a=-1*t;e=$o(e,a)}return e}function Eo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),l=ln(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=re(t.maxInclude),l=ln(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(o.maxValid=!1)}return o}const No={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 _i(e,t,o){return{props:{...ge,...xe,...No},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(!1),d=se(n,"modelValue"),c=r.ref("");r.watch([()=>d.value,()=>n.rates,()=>n.precision],([$,b,S])=>{if(de($)){c.value="";return}const P=Co($,b,S,!1);c.value!==P&&(c.value=P)},{immediate:!0});const f=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:p}=Fe.useFoxI18n(t),N=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!de(c.value)?$=qi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=p(["placeholder",$]),$}),g=e,m=r.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),v=Te(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:v.value??"right"});const w=r.ref(""),T=r.computed(()=>{let $=w.value;return de($)&&($=n.errorTip??""),$}),O=r.ref(""),q=r.ref(!1),V=($,b)=>{if($=`${$}`,de($)){c.value="",d.value="",b.forEach(S=>{s(S,"")}),re(n.showTip)&&q.value&&(q.value=!1);return}if($.length>=2){let S=$;if(S.charAt(0)=="-"&&(S=S.substring(1)),S.length>=2&&S.charAt(0)=="0"&&S.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!kr($)){r.triggerRef(c);return}if(n.integerLength!=-1&&Vr($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Or($)>Number(n.decimalLength)){r.triggerRef(c);return}let S=Eo($,n);if(S.maxValid===!1){w.value=S.message,r.triggerRef(c);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(c);return}O.value=$,re(n.showTip)&&(q.value=$.length>0),c.value=$,d.value=Co($,n.rates,n.precision,!0),b.forEach(S=>{s(S,d.value)})},F=$=>{V($,["update:modelValue","input"])},R=$=>{V($,["update:modelValue","change"])},M=$=>{if(u.value=!0,re(n.showTip)){let b=c.value;de(b)&&(b=n.hintText),de(b)||(O.value=b,q.value=!0)}w.value="",s("focus",d.value,$)},D=$=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&q.value===!0&&(q.value=!1)},0),!de(c.value)){let b=Eo(c.value,n);if(b.minValid===!1||b.maxValid===!1){w.value=b.message;return}}s("update:modelValue",d.value,$),s("blur",d.value,$)},E=()=>{s("clear","")},k=r.computed(()=>dt(n.unit)>0),B=r.ref();return ye({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const b={...qe(l.attrs),ref:B,class:m.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:E,onInput:F,onChange:R,onFocus:M,onBlur:D},S={};l.slots.prepend&&(S.prepend=l.slots.prepend),l.slots.append&&(S.append=l.slots.append),l.slots.prefix&&(S.prefix=l.slots.prefix),l.slots.suffix?S.suffix=l.slots.suffix:k.value&&(S.suffix=()=>[n.unit]);const P=[],I=r.h(y.ElInput,b,S);P.push(I);const K={default:()=>P};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const A={...we(n,No),errorTip:T.value,hintText:O.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,A,K)}}}}const{componentName:Li,create:Mi,scope:ji}=oe("money-item"),qn=Mi(_i(Li,ji,me)),ko={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 Pi(e,t,o){return{props:{...ge,...xe,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0,[`${p}__append`]:F.value})),g=r.computed(()=>({[`${p}__unit`]:!0})),m=M=>{f.value=M,s("update:modelValue",M),s("input",M)},v=M=>{s("change",M)};let w=se(n,"hintText"),T=r.ref(!1);const O=M=>{let E=M.target.value;c.value=!0,de(w.value)||(T.value=!0),s("focus",E,M)},q=M=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let E=M.target.value;n.maxLength&&E.length>Number(n.maxLength)&&(E=E.slice(0,Number(n.maxLength))),s("blur",E,M)},V=()=>{s("clear","")},F=r.computed(()=>dt(n.unit)>0),R=r.ref();return ye({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const D={...qe(l.attrs),ref:R,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:v,onInput:m,onFocus:O,onBlur:q},E={},k=[],B=r.h(y.ElInputNumber,D,E);k.push(B);const $={default:()=>k};l.slots.default&&($.label=l.slots.default),l.slots.fixedTip&&($.fixedTip=l.slots.fixedTip);const S={...we(n,ko),hintText:w.value,hintVisible:T.value,prop:`${n.prop}_item`};if(l.slots.append)$.append=l.slots.append;else if(F.value){const I={class:g.value},K=r.h("div",I,[n.unit]);$.append=()=>K}return r.h(o,S,$)}}}}const{componentName:zi,create:Hi,scope:Ki}=oe("input-number-item"),_n=Hi(Pi(zi,Ki,me));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Yi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,l);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n,l))}};function Gi(){const e=r.getCurrentInstance();return new Yi(e.proxy)}function Ln(e,t,o){const n=Ke(e,t),l=Ke(e,o);if(n!==l)return!1;const a=Qe(e,t),i=Qe(e,o);return a===i}function Vo(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Vo(e,s,o,n);l.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ke(e,d)===s;else if(o==="item")u=Ln(e,d,s);else{let c=Qe(e,d);c==null&&(c=Ke(e,d)),u=c===s}if(u){l.push(d),a=Wi(e,d);break}}if(!u)break}}return l}function Ui(e){return{text:e,value:e}}const Oo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "}};function Xi(e,t,o){return{props:{...ge,...xe,...Oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),p=r.computed(()=>f.value?f.value.map(L=>Array.isArray(L)?L.map(X=>Ke(n,X)).join(" "):Ke(n,L)).join(" "):""),N=(Z,L,W,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===Z)return;c.value=Z;const _=r.toRaw(Z);if(X){const H=ae?.value.getCheckedNodes();if(H)if(n.multiple){const G=[];H.forEach(te=>{const ue=(te.pathNodes??[]).map(Ve=>Ve.data);G.push(ue)}),s("update:pathNodes",G)}else{const te=(H[0]?.pathNodes??[]).map(ie=>ie.data);s("update:pathNodes",te)}s("update:modelValue",_),s("change",_)}return}const z=Vo(n,Z,L,W);if(z===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,X&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Y=z[z.length-1];if(E.value.checkStrictly!==!0&&!Array.isArray(Y)&&Array.isArray(Y.children)&&Y.children.length>0){const _=[];z.forEach(H=>{const G=`${Ke(n,H)}`;_.push(G)}),_.length>0&&(D.value=_.join(n.separator))}else D.value=null;let x=!0;if(z.length!==f.value.length)x=!1;else for(let _=0;_<z.length;_++){const H=z[_],G=f.value[_];if(Array.isArray(H)){if(!Array.isArray(G)||H.length!==G.length)x=!1;else for(let te=0;te<H.length;te++)if(!Ln(n,H[te],G[te])){x=!1;break}}else Ln(n,H,G)||(x=!1);if(!x)break}if(!x){f.value=z;let _=[],H=[];z.forEach(te=>{if(Array.isArray(te)){let ie=[],ue=[];for(let Ve of te)ie.push(Qe(n,Ve)),n.valueType==="text"?ue.push(Ke(n,Ve)):n.valueType==="item"?ue.push(Ve):ue.push(Qe(n,Ve));_.push(ie),H.push(ue)}else _.push(Qe(n,te)),n.valueType==="text"?H.push(Ke(n,te)):n.valueType==="item"?H.push(te):H.push(Qe(n,te))}),c.value=_;const G=r.toRaw(H);X&&(s("update:pathNodes",z),s("update:modelValue",G),s("change",G))}},g=r.ref([]),m=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,Z=>re(Z)),v=Gi(),w=async(Z,L)=>{if(Z){const W=await v.load("cascader",Z,L);if(W.length>0)if(typeof W[0]=="string"){let Y=W.map(x=>Ui(x));g.value=Y}else g.value=W}};r.watch([()=>n.source,()=>n.params],async([Z,L])=>{w(Z,L)},{immediate:!(m.value||n.lazy)});let T=!1;const O=()=>{T||(T=!0,w(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([Z,L])=>{N(L,n.valueType,Z,!1)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(q=async Z=>{if(Z!=null){V.value=!0;try{const L=await n.remoteMethod(Z);g.value=L}catch(L){console.error(L)}V.value=!1}});const F=r.ref(!1),R=e,M=r.computed(()=>({[R]:!0})),D=r.ref(null),E=r.computed(()=>{let Z={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(Z.multiple=!0),n.props&&Object.assign(Z,n.props),n.lazy&&(Z.lazy=!0,Z.lazyLoad=async(L,W)=>{const X=await v.load("cascader",n.source,L,!0);if(L?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===L.level){const z=L.pathLabels??[];let Y=[];z.forEach(x=>{x&&Y.push(x)}),Y.length>0&&(D.value=Y.join(n.separator))}else D.value=null;W(X)}),Z}),k=Z=>{n.allowCreate?(s("update:modelValue",Z),s("change",Z),c.value=Z):N(Z,"value",g.value,!0)};let B=se(n,"hintText"),$=r.ref(!1);const b=Z=>{let W=Z.target.value;F.value=!0,de(B.value)||($.value=!0),s("focus",W,Z)},S=Z=>{setTimeout(()=>{$.value&&($.value=!1),F.value=!1},0);let W=Z.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),Q.value||s("blur",W,Z)},P=()=>{s("clear","")},I=r.ref(!1);let K=null;const C=()=>{n.showTooltip&&I.value===!1&&(K&&clearTimeout(K),K=setTimeout(()=>{I.value=!0},150))},A=()=>{K&&(clearTimeout(K),I.value=!1,K=null)},j=r.computed(()=>I.value||$.value),U=r.computed(()=>I.value?p.value:B.value),Q=r.ref(!1),ne=Z=>{Q.value=Z,s("visible-change",Z),Z||s("selected")},J=Z=>{s("remove-tag",Z)},ee=Z=>{s("expand-change",Z)},ae=r.ref();return ye({focus:()=>{ae?.value.focus()},blur:()=>{ae?.value.blur()},getCheckedNodes:()=>ae?.value.getCheckedNodes()}),()=>{const L={...l.attrs,ref:ae,class:M.value,props:E.value,clearable:n.clearable,placeholder:D.value||d.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:P,onChange:k,onFocus:b,onBlur:S,onVisibleChange:ne,onRemoveTag:J,expandChange:ee};typeof q=="function"&&(L["remote-method"]=q,L.loading=V.value);const W={};l.slots.option&&(W.default=l.slots.option),l.slots.empty&&(W.empty=l.slots.empty);const X=[],z=r.h(y.ElCascader,L,W);X.push(z);const Y={default:()=>X};l.slots.default&&(Y.label=l.slots.default),l.slots.fixedTip&&(Y.fixedTip=l.slots.fixedTip);const _={...we(n,Oo),hintText:U.value,hintVisible:j.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:C,onMouseleave:A};return m.value&&!n.lazy&&(_["appear-listen"]=!0,_.onAppear=O),r.h(o,_,Y)}}}}const{componentName:Zi,create:Ji,scope:Qi}=oe("cascader-item"),Mn=Ji(Xi(Zi,Qi,me)),Io={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function es(e,t,o){return{props:{...ge,...xe,...Io},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0})),g=R=>{f.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)},v=R=>{s("select",R)};let w=se(n,"hintText"),T=r.ref(!1);const O=R=>{let D=R.target.value;c.value=!0,de(w.value)||(T.value=!0),s("focus",D,R)},q=R=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let D=R.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,R)},V=()=>{s("clear","")},F=r.ref();return ye({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const M={...l.attrs,ref:F,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,onClear:V,onChange:m,onInput:g,onFocus:O,onBlur:q,onSelect:v},D={};l.slots.prepend&&(D.prepend=l.slots.prepend),l.slots.append&&(D.append=l.slots.append),l.slots.prefix&&(D.prefix=l.slots.prefix),l.slots.suffix&&(D.suffix=l.slots.suffix),l.slots.option&&(D.default=l.slots.option);const E=[],k=r.h(y.ElAutocomplete,M,D);E.push(k);const B={default:()=>E};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const b={...we(n,Io),hintText:w.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,b,B)}}}}const{componentName:ts,create:ns,scope:rs}=oe("autocomplete-item"),jn=ns(es(ts,rs,me));function os(e,t,o,n,l){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let u=t;for(let d=0;u&&d<a.length;d++){let c=a[d],f=u.find(p=>p[n]===c);if(!f)break;i.push(f[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],c=a[u];const f=d.find(p=>p[n]===c);if(!f)break;i.push(f[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let c=a[d],f=u.find(p=>p[n]===c);if(!f)break;i.push(f[o]),u=f[l]}}return i}let ls=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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function as(){const e=r.getCurrentInstance();return new ls(e.proxy)}const Ro={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 is(e,t){return{props:{...Ro},setup(o,{attrs:n,slots:l}){const a=as(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([d,c])=>{i.value=await a.load(o.sourceType,d,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=os(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return l.default?l.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,d,{default:()=>s.value}):r.h(u,d,s.value)}}}}const{componentName:ff,create:ss,scope:df}=oe("mapping"),wt=ss(is());function us(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=a.substring(0,s);n=n[f][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function cs(e,t){return{props:{...Ro},setup(o,{attrs:n,slots:l}){return()=>{const a={default:i=>{const s=us(i.row,i.column.property);return l.default?r.h(wt,{...o,modelValue:s},{default:l.default}):r.h(wt,{...o,modelValue:s})}};return r.h(y.ElTableColumn,{...n},a)}}}}const{componentName:hf,create:fs,scope:gf}=oe("table-mapping-column"),Pn=fs(cs()),ds=Symbol.for("TableStateKey");function Do(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=a.substring(0,s);n=n[f][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function hs(e,t){return{props:{},setup(o,{attrs:n}){const l=r.inject(ds,{});return()=>{const a=l.currentRow?l.currentRow.value:null,i={default:s=>{const u=Do(s.row,s.column.property),d=a?Do(a,s.column.property):null,c=u===d,f={class:{"el-radio__input":!0,"is-checked":c}},p=r.h("span",f,[r.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":c}};return r.h("label",N,[p])}};return r.h(y.ElTableColumn,{...n},i)}}}}const{componentName:mf,create:gs,scope:pf}=oe("table-radio-column"),zn=gs(hs()),ms={},ps={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"},ys=[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 bs(e,t){return r.openBlock(),r.createElementBlock("svg",ps,ys)}const vs=Ie(ms,[["render",bs]]),{componentName:bf,create:ws,scope:vf}=oe("table-setting"),Ss={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:"不固定"}},xs=ws({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:vs,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Ss},setup(e,{emit:t,attrs:o}){let n=[];const l=r.ref([]),a=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed===""||C.fixed===!0||C.fixed==="left")),i=r.computed(()=>l.value.filter(C=>C.label===""||C.type?!1:C.fixed==="right")),s=r.computed(()=>l.value.filter(C=>!(C.label===""||C.type||C.fixed!==void 0))),u=r.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=r.computed(()=>a.value.length>0),c=r.computed(()=>i.value.length>0),f=C=>C.length>1,p=C=>{const A=[];l.value=C.map((U,Q)=>(!(U.label===""||U.type)&&U.visible!==!1&&A.push(U.prop),{...U,sortIndex:Q})),s.value.length+a.value.length+i.value.length===A.length?T.value=!0:A.length>0&&(O.value=!0),F.value=A},N=C=>C?C.type?C.type:C.label?C.prop:"":"",g=(C,A)=>{if(C.length!==A.length)return!1;const j=C.map(U=>N(U));for(let U of A){const Q=N(U);if(j.indexOf(Q)===-1)return!1}return!0},m=C=>{if(!C){const A=e.tableRef.getColumnSetting(),j=A.srcColumnPropertyList;n=j.map((U,Q)=>({...U,sortIndex:Q})),C=A.columnPropertyList,C&&C.length>0&&g(j,C)||(C=j)}p(C)},v=()=>{e.tableRef.setColumnSetting(l.value)},w=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),O=r.ref(!1),q=C=>{const A=[];l.value.forEach(U=>{C&&!(U.label===""||U.type)&&A.push(U.prop),U.visible=C}),T.value=!1,O.value=!1,s.value.length+a.value.length+i.value.length===A.length?T.value=!0:A.length>0&&(O.value=!0),F.value=A,v()},V=()=>{m(n),v()},F=r.ref([]),R=C=>{l.value.forEach(j=>{if(j.label===""||j.type)return;const U=C.indexOf(j.prop)!==-1;j.visible=U}),T.value=!1,O.value=!1;const A=s.value.length+a.value.length+i.value.length;C.length===A?T.value=!0:C.length>0&&(O.value=!0),v()},M=()=>{m()};r.onMounted(()=>{setTimeout(()=>{m()},50)});const D={currentRow:null,index:null,roleType:null},E=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,E(C)):null:null;return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:c,isDraggble:f,isCheckAll:T,isIndeterminate:O,handleCheckAllChange:q,handleReset:V,checkedValue:F,handleCheckChange:R,onShow:M,onDragStart:C=>{const A=C.currentTarget;A&&A.dataset&&(D.roleType=A.dataset.roleType,D.index=A.dataset.index)},onDragEnd:C=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null,D.roleType=null},onDragOver:C=>{const A=C.currentTarget;C.relatedTarget;const j=E(A);if(!j)return;const U=j.dataset&&j.dataset.roleType;D.roleType===U&&(C.preventDefault(),D.currentRow&&D.currentRow!==j&&D.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),D.currentRow=j)},onDragLeave:C=>{C.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},onDrop:C=>{const A=C.currentTarget,j=E(A);if(!j)return;const U=j.dataset&&j.dataset.roleType;if(D.roleType!==U)return;C.preventDefault();const Q=Number(D.index),ne=Number(j.dataset.index);if(Q!==ne){if(Q<ne){const J=l.value[Q];l.value.splice(Q,1),l.value.splice(ne,0,J)}else{const J=l.value[Q];l.value.splice(Q,1),l.value.splice(ne+1,0,J)}p(l.value),v()}},toLeftFixed:C=>{const A=l.value[C];A.fixed="left",v()},toRightFixed:C=>{const A=l.value[C];A.fixed="right",v()},toUnFixed:C=>{const A=l.value[C];A.fixed=void 0,v()},checkboxLabelStyle:w}}}),Ts={class:"fox-table-setting"},$s={class:"fox-table-setting__header"},Cs={class:"fox-table-setting__body"},Es={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ns={key:0,class:"fox-table-setting__body-title"},ks=["data-index","draggable"],Vs={class:"tools-item"},Os={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Is={key:0,class:"fox-table-setting__body-title"},Rs=["data-index","draggable"],Ds={class:"tools-item"},Fs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},As={key:0,class:"fox-table-setting__body-title"},Bs=["data-index","draggable"],qs={class:"tools-item"};function _s(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),d=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),f=r.resolveComponent("fox-tooltip"),p=r.resolveComponent("Download"),N=r.resolveComponent("fox-checkbox"),g=r.resolveComponent("FoxCheckboxGroup"),m=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(m,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",Ts,[r.createElementVNode("div",$s,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Cs,[r.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Es,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ns,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,v=>(r.openBlock(),r.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:t[2]||(t[2]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:t[3]||(t[3]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:t[4]||(t[4]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:t[5]||(t[5]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:v.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(v.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Vs,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toUnFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toRightFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ks))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Os,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Is,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,v=>(r.openBlock(),r.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:t[7]||(t[7]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:t[8]||(t[8]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:t[9]||(t[9]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:t[10]||(t[10]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:v.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(v.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ds,[r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toRightFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Rs))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",As,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,v=>(r.openBlock(),r.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:t[12]||(t[12]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:t[13]||(t[13]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:t[14]||(t[14]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:t[15]||(t[15]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(N,{class:"checkbox-item",label:v.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(v.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",qs,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toUnFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Bs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Wt=Ie(xs,[["render",_s]]);let Ls=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l,a,i,s){if(Array.isArray(o)){let d=(n-1)*l,c=d+l;c>o.length&&(c=o.length);const f=o.slice(d,c);return{totalSize:o.length,page:f}}if(typeof o=="function")return await Reflect.apply(o,null,[n,l,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(a)&&r.isReactive(a)&&(a=r.toRaw(a)),await Reflect.apply(u,null,[o,n,l,a,i,s]))}};function Ms(){const e=r.getCurrentInstance();return new Ls(e.proxy)}class js{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Fo(){const e=r.getCurrentInstance();return new js(e.proxy)}const Ps=Symbol.for("TableStateKey");function zs(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=a.substring(0,s);n=n[f][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Hn(e,t){return e.filter(n=>{for(let l in t){const a=t[l],i=zs(n,l);if(a!==i)return!1}return!0})}const Ao={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Bo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Kn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Hs(e,t,o){return{inheritAttrs:!1,props:{...ge,...xe,...Ao,...Bo,...Kn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:a}=Fe.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...x){return O.value}}},n.prop??l.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),d=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),f=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),p=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,x=>{p.value=x});const N=x=>{p.value=x,i("page-index-change",x)},g=r.ref(n.pageSize);r.watch(()=>n.pageSize,x=>{g.value=x});const m=x=>{g.value=x,i("page-size-change",x)},v=r.shallowRef({}),w=r.computed(()=>({...v.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),O=r.ref(),q=Ms();let V=!0;const F=()=>Array.isArray(n.data)?!0:re(n.autoLoad),R=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,x=>re(x)),M=async(x,_,H,G)=>{try{const te=await q.load("table",x,_,H,G,V,a.value);T.value=te.totalSize,O.value=te.page}catch(te){console.error("[FoxUI] Load Table Data Fail",te),T.value=0,O.value=[]}V=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([p,g],([x,_],[H,G])=>{_!==G&&(p.value=1,x=1),M(n.data,x,_,w.value)}),r.watch([()=>n.data,w],([x,_],[H,G])=>{F()&&(x!==H&&(V=!0),!(!Array.isArray(x)&&Me(x,H)&&Me(_,G))&&M(x,p.value,g.value,_))},{deep:!0});const D=(x={},_=!1)=>new Promise(H=>{v.value=r.toRaw(x??{}),r.triggerRef(v),_||(p.value=n.pageIndex??1),r.nextTick(async()=>{await M(n.data,p.value,g.value,w.value),H()})}),E=()=>{T.value=0,O.value=[]};let k=!1;const B=()=>{k||(k=!0,D())};F()&&!R.value&&D();const $=r.ref(null);r.provide(Ps,{currentRow:$});const b=(x,_)=>{$.value=x,i("current-change",x,_)},S=(x,_,H)=>{i("row-click",x,_,H),re(n.rowClickSelectable)===!0&&Y?.value.toggleRowSelection(x)},P=[],I=(x,_)=>{if(i("expand-change",x,_),re(n.uniqueExpansion))if(Array.isArray(_)&&_.length==0){const H=P.length;P.splice(0,H)}else{P.forEach(G=>{G!==x&&Y?.value.toggleRowExpansion(G,!1)});const H=P.length;P.splice(0,H,x)}},K=l.attrs.id??n.prop??l.attrs.name,C=Fo(),A=r.ref([]);let j=[];const U=()=>({srcColumnPropertyList:j.map(_=>({..._})),columnPropertyList:A.value}),Q=x=>{A.value=[...x],J()},ne=async()=>{const x=await C.load(K);x&&(A.value=x)},J=()=>{C.save(K,A.value)},ee=()=>{C.remove(K)};ne();const ae=x=>x?x.type?x.type:x.label?x.prop:"":"",Z=r.computed(()=>{if(typeof l.slots.default=="function"){const x=l.slots.default(),_=new Map;if(j=[],x.forEach(H=>{const G=H;if(!G.props)return;const te=ae(G.props);_.set(te,H);const ie={label:"",prop:""};Object.assign(ie,G.props),j.push(ie)}),A.value.length===j.length){const H=[];for(let G of A.value){const te=ae(G),ie=_.get(te);if(!ie)return x;if(G.visible===!1)continue;const ue=ie;ue.props.fixed=G.fixed,H.push(ue)}return H}return x}return[]}),L=r.shallowRef(new Map),W=({column:x,rowIndex:_})=>{const H=`${_}_${x.property}`;return L.value.get(H)??""},X=x=>typeof x=="function"?_=>{const H=[];let G=W(_);return G&&H.push(G),G=x(_),G&&H.push(G),H.length===0?"":H.join(" ")}:W,z=(x,_,H)=>{const G=`${x}_${_}`;H?L.value.set(G,H):L.value.delete(G),r.triggerRef(L)},Y=r.ref();return ye({clearSelection:()=>Y?.value.clearSelection(),getSelectionRows:()=>Y?.value.getSelectionRows(),toggleRowSelection:(x,_)=>{Y?.value.toggleRowSelection(x,_)},toggleRowSelectionByProp:(x,_)=>{if(!O.value)return;const H=Hn(O.value,x);H.length!==0&&H.forEach(G=>{Y?.value.toggleRowSelection(G,_)})},toggleAllSelection:()=>{Y?.value.toggleAllSelection()},toggleRowExpansion:(x,_)=>{Y?.value.toggleRowExpansion(x,_)},toggleRowExpansionByProp:(x,_)=>{if(!O.value)return;const H=Hn(O.value,x);H.length!==0&&H.forEach(G=>{Y?.value.toggleRowExpansion(G,_)})},setCurrentRow:x=>{Y?.value.setCurrentRow(x)},setCurrentRowByProp:x=>{if(!O.value)return;const _=Hn(O.value,x);_.length!==0&&Y?.value.setCurrentRow(_[0])},getCurrentRow:()=>$.value,clearSort:()=>{Y?.value.clearSort()},clearFilter:x=>{Y?.value.clearFilter(x)},doLayout:()=>{Y?.value.doLayout()},sort:(x,_)=>{Y?.value.sort(x,_)},scrollTo:(x,_)=>{Y?.value.scrollTo(x,_)},setScrollTop:x=>{Y?.value.setScrollTop(x)},setScrollLeft:x=>{Y?.value.setScrollLeft(x)},loadData:D,clearData:E,getData(){return O.value},getTotalSize(){return T.value},getPageIndex(){return p.value},getPageSize(){return g.value},getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:ee,setCellClassName:z}),()=>{const _={...qe(l.attrs),onCurrentChange:b,onRowClick:S,onExpandChange:I,data:O.value,ref:Y,class:u.value,"cell-class-name":X(n.cellClassName)},H={};l.slots.default&&(H.default=()=>Z.value),l.slots.append&&(H.append=l.slots.append),l.slots.empty&&(H.empty=l.slots.empty);const G=[],te=r.h(y.ElTable,_,H);G.push(te);let ie=null;if(typeof l.slots.pagination=="function")ie=l.slots.pagination();else if(n.showPagination){const Le={class:f.value,total:T.value,pageSize:g.value,"onUpdate:pageSize":m,pageSizes:n.pageSizes,currentPage:p.value,"onUpdate:currentPage":N,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ie=r.h(y.ElPagination,Le)}if(n.showSetting){const Le=[];ie&&Le.push(ie);const dr=r.h(y.ElIcon,{class:d.value},{default:()=>r.h(Ne.Setting)}),tf=Rr(n,Kn),nf=r.h(Wt,{...tf,tableRef:{getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:ee}},{default:()=>dr});Le.push(nf);const rf=r.h("div",{class:c.value},Le);G.push(rf)}else ie&&G.push(ie);const ue={default:()=>G},De={...we(n,Ao,Bo,Kn),prop:`${n.prop}_item`};return De.contentClass=`${s}__wrap`,De.errorMarkClass="is-table-error",R.value&&F()&&(De["appear-listen"]=!0,De.onAppear=B),r.h(o,De,ue)}}}}const{componentName:Ks,create:Ws,scope:Ys}=oe("table-item"),Wn=Ws(Hs(Ks,Ys,me));function at(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function St(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Gs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Us=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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function Xs(){const e=r.getCurrentInstance();return new Us(e.proxy)}function qo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=at(e,t),l=at(e,o);if(n!==l)return!1;const a=St(e,t),i=St(e,o);return a===i}function Zs(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let a of n){let i=!1;if(o==="text")i=at(e,a)===t;else if(o==="item")i=qo(e,a,t);else{let s=St(e,a);s==null&&(s=at(e,a)),i=s===t}if(i){l=a;break}}return l}function Js(e){return{text:e,value:e}}function Qs(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const _o={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 eu(e,t,o){return{inheritAttrs:!0,props:{...ge,...xe,..._o},emits:["change","update:modelValue"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(null),d=r.ref(null),c=(R,M,D,E=!0)=>{const k=Zs(n,R,M,D);if(k===null){if(d.value===null)return;d.value=null,u.value=null,E&&(s("update:modelValue",null),s("change",null));return}if(!qo(n,k,d.value)){u.value=R;const $=r.toRaw(k);d.value=$;let b=null;n.valueType==="text"?b=at(n,$):n.valueType==="item"?b=$:b=St(n,$),E&&(s("update:modelValue",b),s("change",b))}},f=r.ref([]),p=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,R=>re(R)),N=Xs(),g=async(R,M)=>{if(R){const D=await N.load("radio",R,M);if(D.length>0)if(typeof D[0]=="string"){let B=D.map($=>Js($));f.value=B}else f.value=D}};r.watch([()=>n.source,()=>n.params],async([R,M])=>{g(R,M)},{immediate:!p.value});let m=!1;const v=()=>{m||(m=!0,g(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([R,M])=>{c(M,n.valueType,R,!1)});const w=e,T=r.computed(()=>({[w]:!0,[`is-${n.direction}`]:!0})),O=R=>{c(R,"value",f.value,!0)};let q=se(n,"hintText"),V=se(n,"hintVisible");const F=(R,M)=>{const D=[];return R.forEach((E,k)=>{const B=St(n,E),$=at(n,E);let b=Gs(n,E);a.value===!0&&(b=a.value),i.value===!0&&(b=i.value);const S=Qs(n,E,k)??{},P=`${B}_${k}`,I={...S,key:P,label:B,size:n.size,border:re(n.border)};b&&(I.disabled=b),n.itemType==="button"?D.push(r.h(y.ElRadioButton,I,{default:()=>[$]})):typeof M=="function"?D.push(r.h(y.ElRadio,I,{default:()=>M(E)})):D.push(r.h(y.ElRadio,I,{default:()=>[$]}))}),D};return()=>{const M={...qe(l.attrs),class:T.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:O},D=[],E={};l.slots.options?E.default=l.slots.options:E.default=()=>F(f.value,l.slots.text);const k=r.h(y.ElRadioGroup,M,E);D.push(k);const B={default:()=>D};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const b={...we(n,_o),hintText:q.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return p.value&&(b["appear-listen"]=!0,b.onAppear=v),r.h(o,b,B)}}}}const{componentName:tu,create:nu,scope:ru}=oe("radio-item"),Yn=nu(eu(tu,ru,me));function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function st(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ou(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class lu{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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}}function au(){const e=r.getCurrentInstance();return new lu(e.proxy)}function Lo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=it(e,t),l=it(e,o);if(n!==l)return!1;const a=st(e,t),i=st(e,o);return a===i}function iu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=it(e,i)===a;else if(o==="item")s=Lo(e,i,a);else{let u=st(e,i);u==null&&(u=it(e,i)),s=u===a}if(s){l.push(i);break}}}),l}function su(e){return{text:e,value:e}}function uu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Mo={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 cu(e,t,o){return{inheritAttrs:!0,props:{...ge,...xe,...Mo},emits:["change","update:modelValue"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref([]),d=r.ref([]),c=(R,M,D,E=!0)=>{const k=iu(n,R,M,D);if(k===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],E&&(s("update:modelValue",[]),s("change",[]));return}let B=!0;if(k.length!==d.value.length)B=!1;else for(let $=0;$<k.length;$++){const b=k[$],S=d.value[$];if(!Lo(n,b,S)){B=!1;break}}if(!B){d.value=k;let $=[],b=[];k.forEach(P=>{$.push(st(n,P)),n.valueType==="text"?b.push(it(n,P)):n.valueType==="item"?b.push(P):b.push(st(n,P))}),u.value=$;const S=r.toRaw(b);E&&(s("update:modelValue",S),s("change",S))}},f=r.ref([]),p=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,R=>re(R)),N=au(),g=async(R,M)=>{if(R){const D=await N.load("checkbox",R,M);if(D.length>0)if(typeof D[0]=="string"){let B=D.map($=>su($));f.value=B}else f.value=D}};r.watch([()=>n.source,()=>n.params],async([R,M])=>{g(R,M)},{immediate:!p.value});let m=!1;const v=()=>{m||(m=!0,g(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([R,M])=>{c(M,n.valueType,R,!1)});const w=e,T=r.computed(()=>({[w]:!0,[`is-${n.direction}`]:!0})),O=R=>{c(R,"value",f.value,!0)};let q=se(n,"hintText"),V=se(n,"hintVisible");const F=(R,M)=>{const D=[];return R.forEach((E,k)=>{const B=st(n,E),$=it(n,E);let b=ou(n,E);a.value===!0&&(b=a.value),i.value===!0&&(b=i.value);const S=uu(n,E,k)??{},P=`${B}_${k}`,I={...S,key:P,class:n.itemClass,label:B,size:n.size,border:re(n.border)};b&&(I.disabled=b),n.itemType==="button"?D.push(r.h(y.ElCheckboxButton,I,{default:()=>[$]})):typeof M=="function"?D.push(r.h(y.ElCheckbox,I,{default:()=>M(E)})):D.push(r.h(y.ElCheckbox,I,{default:()=>[$]}))}),D};return()=>{const M={...qe(l.attrs),class:T.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:O},D=[],E={};l.slots.options?E.default=l.slots.options:E.default=()=>F(f.value,l.slots.text);const k=r.h(y.ElCheckboxGroup,M,E);D.push(k);const B={default:()=>D};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const b={...we(n,Mo),hintText:q.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return p.value&&(b["appear-listen"]=!0,b.onAppear=v),r.h(o,b,B)}}}}const{componentName:fu,create:du,scope:hu}=oe("checkbox-item"),Gn=du(cu(fu,hu,me)),jo={modelValue:{type:[Number,String],required:!1}};function gu(e,t,o){return{props:{...ge,...xe,...jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue",m=>ve(m)),d=e,c=r.computed(()=>({[d]:!0})),f=m=>{s("update:modelValue",m),s("change",m)};let p=se(n,"hintText"),N=r.ref(!1);const g=r.ref();return ye({}),()=>{const v={...qe(l.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:f},w={},T=[],O=r.h(y.ElRate,v,w);T.push(O);const q={default:()=>T};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const F={...we(n,jo),hintText:p.value,hintVisible:N.value,prop:`${n.prop}_item`};return r.h(o,F,q)}}}}const{componentName:mu,create:pu,scope:yu}=oe("rate-item"),Un=pu(gu(mu,yu,me)),Po={modelValue:{type:[Boolean,String,Number],required:!1}};function bu(e,t,o){return{props:{...ge,...xe,...Po},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue"),d=e,c=r.computed(()=>({[d]:!0})),f=m=>{s("update:modelValue",m),s("change",m)};let p=se(n,"hintText"),N=se(n,"hintVisible");const g=r.ref();return ye({}),()=>{const v={...qe(l.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:f},w={},T=[],O=r.h(y.ElSwitch,v,w);T.push(O);const q={default:()=>T};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const F={...we(n,Po),hintText:p.value,hintVisible:N.value,prop:`${n.prop}_item`};return r.h(o,F,q)}}}}const{componentName:vu,create:wu,scope:Su}=oe("switch-item"),Xn=wu(bu(vu,Su,me)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function xu(e,t,o){return{props:{...ge,...xe,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),d=se(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),p=V=>{u("update:modelValue",V),u("change",V)};let N=se(n,"hintText"),g=r.ref(!1);const m=V=>{let R=V.target.value;s.value=!0,de(N.value)||(g.value=!0),u("focus",R,V)},v=V=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),T.value||u("blur",R,V)},w=()=>{u("clear","")},T=r.ref(!1),O=V=>{T.value=V,u("visible-change",V),V||u("selected")},q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const F={...qe(l.attrs),ref:q,class:f.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:w,onFocus:m,onBlur:v,onVisibleChange:O},R={};l.slots.option&&(R.default=l.slots.option);const M=[],D=r.h(y.ElTreeSelect,F,R);M.push(D);const E={default:()=>M};l.slots.default&&(E.label=l.slots.default),l.slots.fixedTip&&(E.fixedTip=l.slots.fixedTip);const B={...we(n,zo),hintText:N.value,hintVisible:g.value,prop:`${n.prop}_item`};return r.h(o,B,E)}}}}const{componentName:Tu,create:$u,scope:Cu}=oe("tree-select-item"),Zn=$u(xu(Tu,Cu,me)),Eu={},Nu={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"},ku=[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 Vu(e,t){return r.openBlock(),r.createElementBlock("svg",Nu,ku)}const Ou=Ie(Eu,[["render",Vu]]),{componentName:Sf,create:Iu,scope:xf}=oe("group-setting"),Ru={groupProp:{type:[String]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Du=Iu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Ou,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Ru},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let l=null;const a=r.ref([]),i=Fo(),s=b=>b.length>1,u=()=>{const b=[],S=[...a.value];a.value=S.map((I,K)=>(I.visible!==!1&&b.push(I.prop),{...I,sortIndex:K})),a.value.length===b.length?g.value=!0:b.length>0&&(m.value=!0),T.value=b},d=b=>{const S=document.querySelectorAll(`.fox-group[prop="${b}"] > div > .fox-item[prop]`),P=[];return S.forEach(I=>{const K=I.querySelector(".label--string");let C="";K&&(C=K.textContent??"");const A=I.getAttribute("prop")??"",U=window.getComputedStyle(I,null).getPropertyValue("display");P.push({label:C,prop:A,sortIndex:0,visible:U!=="none"})}),P},c=async(b=!1)=>{l||(l=d(e.groupProp));const S=l.map(I=>({...I})),P=await i.load(e.groupProp);Array.isArray(P)&&P.forEach(I=>{S.some(K=>K.prop===I.prop?(Object.assign(K,I),!0):!1)}),a.value=S.sort((I,K)=>I.sortIndex-K.sortIndex),u(),b&&p(!1)},f=()=>{const b=l??[];a.value=b.map(S=>({...S})),u(),p()},p=(b=!0)=>{b&&i.save(e.groupProp,a.value);const S=a.value.map(P=>({...P}));t("change",S)},N=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=r.ref(!1),m=r.ref(!1),v=b=>{const S=[];a.value.forEach(I=>{b&&S.push(I.prop),I.visible=b}),g.value=!1,m.value=!1,a.value.length===S.length?g.value=!0:S.length>0&&(m.value=!0),T.value=S,p()},w=()=>{f()},T=r.ref([]),O=b=>{a.value.forEach(P=>{const I=b.indexOf(P.prop)!==-1;P.visible=I}),g.value=!1,m.value=!1;const S=a.value.length;b.length===S?g.value=!0:b.length>0&&(m.value=!0),p()},q=()=>{c()};r.onMounted(()=>{e.initDelay>0?setTimeout(()=>{c(!0)},e.initDelay):c(!0)});const V={currentRow:null,index:null},F=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,F(b)):null:null,R=b=>{const S=b.currentTarget;S&&S.dataset&&(V.index=S.dataset.index)},M=b=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null},D=b=>{const S=b.currentTarget;b.relatedTarget;const P=F(S);P&&(b.preventDefault(),V.currentRow&&V.currentRow!==P&&V.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),V.currentRow=P)},E=b=>{b.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},k=b=>{const S=b.currentTarget,P=F(S);if(!P)return;b.preventDefault();const I=Number(V.index),K=Number(P.dataset.index);if(I!==K){if(I<K){const C=a.value[I];a.value.splice(I,1),a.value.splice(K,0,C)}else{const C=a.value[I];a.value.splice(I,1),a.value.splice(K+1,0,C)}u(),p()}},B=b=>{const S=a.value[b];a.value.splice(b,1),a.value.splice(0,0,S),u(),p()},$=b=>{const S=a.value[b];a.value.splice(b,1),a.value.push(S),u(),p()};return n({refresh:()=>{l=null,c(!1)}}),{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:g,isIndeterminate:m,handleCheckAllChange:v,handleReset:w,checkedValue:T,handleCheckChange:O,onShow:q,onDragStart:R,onDragEnd:M,onDragOver:D,onDragLeave:E,onDrop:k,checkboxLabelStyle:N,toTop:B,toBottom:$}}}),Fu={class:"fox-group-setting"},Au={class:"fox-group-setting__header"},Bu={class:"fox-group-setting__body"},qu={class:"fox-group-setting__body-list","data-role":"container"},_u=["data-index","draggable"],Lu={class:"tools-item"};function Mu(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),d=r.resolveComponent("Download"),c=r.resolveComponent("FoxIcon"),f=r.resolveComponent("fox-tooltip"),p=r.resolveComponent("FoxCheckboxGroup"),N=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(N,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Fu,[r.createElementVNode("div",Au,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.isCheckAll=g),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Bu,[r.createVNode(p,{modelValue:e.checkedValue,"onUpdate:modelValue":t[6]||(t[6]=g=>e.checkedValue=g),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",qu,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,g=>(r.openBlock(),r.createElementBlock("div",{key:g.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":g.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:g.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(g.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Lu,[r.createVNode(f,{content:e.toTopText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toTop(g.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.toBottomText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toBottom(g.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,_u))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Jn=Ie(Du,[["render",Mu]]),ju=Symbol.for("InnerPageScopeKey"),Pu=Symbol.for("PageWrapperKey");function zu(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){r.provide(ju,!0);const l={};r.provide(Pu,l);const a=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const f=n.slots.default();c.default=()=>f}return r.h(y.ElDialog,d,c)}}}}const{componentName:Tf,create:Hu,scope:$f}=oe("dialog-item"),Qn=Hu(zu());function Ku(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 l=e,a=r.computed(()=>({[l]:!0})),i=r.computed(()=>o.icon?{[`${l}__icon`]:!0,[`${l}__icon-${o.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${l}__text`]:!0,[`${l}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),d=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const m={class:i.value,style:s.value};c=r.h(o.icon??"div",m)}const f={class:u.value,style:d.value},p=n.default?n.default():[],N=r.h("div",f,p),g={class:a.value};return o.textPosition==="right"?r.h("div",g,[c,N]):r.h("div",g,[N,c])}}}}const{componentName:Wu,create:Yu,scope:Cf}=oe("indicator"),er=Yu(Ku(Wu));function Gu(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 l=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(l)},500)}const Uu={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},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Xu(e,t){return{props:{...Uu},setup(o,n){const l=r.ref(!0),a=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(p=>{c[p]=!0}),o.type&&(c[`${e}--${o.type}`]=!0),o.size&&(c[`${e}--${o.size}`]=!0),c}),s=c=>{if(c&&re(o.showOverflowTooltip)){const f=c.clientWidth;Gu(c,p=>{l.value=p<=f})}};let u=null;r.onMounted(()=>{if(!re(o.showOverflowTooltip))return;const c=a.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const d=(c,f)=>{let p=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const N=o.highlightFilter;if(c.indexOf(N)!==-1){const m=c.replace(new RegExp(N,"g"),`<span>${N}</span>`);f.innerHTML=m,f.class["is-highlight"]=!0,p=r.h(o.tag,f)}}else if(typeof o.highlightFilter=="function"){const N=o.highlightFilter(c);N&&(f.innerHTML=N,f.class["is-highlight"]=!0,p=r.h(o.tag,f))}return p};return()=>{const c={},f={...n.attrs,class:{...i.value},ref:a};let p=null;if(re(o.numberFormat)&&typeof n.slots.default=="function"){const v=n.slots.default();if(Array.isArray(v)&&v.length===1){const w=v[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const T=ve(o.digits),O=ve(o.decimalLength),q=re(o.autoPadding);let V=`${v[0].children}`,F=V.split("").reverse().join("");F=Ct(F,O,q,T,o.separator),V=F.split("").reverse().join(""),o.highlightFilter!==void 0&&(p=d(V,f)),p||(f.innerHTML=V,p=r.h(o.tag,f))}}}else{if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const v=n.slots.default();if(Array.isArray(v)&&v.length===1){const w=v[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const T=`${v[0].children}`;p=d(T,f),p||(f.innerHTML=T,p=r.h(o.tag,f))}}}p||(p=r.h(o.tag,f,{default:n.slots.default}))}if(!o.mark&&!o.icon&&!n.slots.mark)c.default=()=>p;else{let v=null;if(o.icon){const O={[`${e}__mark-wrap`]:!0};o.type&&(O[`${e}__mark-wrap--${o.type}`]=!0);const q={},V=o.color;V&&(q.color=V);const F={class:O,style:q};v=r.h("div",F,r.h(o.icon))}else if(n.slots.mark){const O={[`${e}__mark-wrap`]:!0};o.type&&(O[`${e}__mark-wrap--${o.type}`]=!0);const q={},V=o.color;V&&(q.color=V);const F={class:O,style:q};v=r.h("div",F,{default:n.slots.mark})}else{const O={[`${e}__mark`]:!0};o.type&&(O[`${e}__mark--${o.type??"default"}`]=!0);const q={},V=o.color;V&&(q["background-color"]=V);const F={class:O,style:q};v=r.h("div",F)}const w={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}},T=r.h("view",w,[v,p]);c.default=()=>T}const g={disabled:l.value};return c.content=n.slots.default,r.h(y.ElTooltip,g,c)}}}}const{componentName:Zu,create:Ju,scope:Ef}=oe("text"),tr=Ju(Xu(Zu)),Qu={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ne.ArrowUp}};function ec(e,t,o){return{props:{...Qu},emits:["click","update:modelValue"],setup(n,{emit:l}){const a=r.computed(()=>{const f={[`${e}`]:!0};return n.disabled?f[`${e}__disabled`]=!0:f[`${e}__${n.type}`]=!0,f}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),d=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{l("update:modelValue",!i.value)};return()=>{const f=[];if(s.value){const m={class:u.value},v=r.h("span",m,[s.value]);f.push(v)}const p={class:d.value},N=o(n.icon,p);return N&&f.push(N),r.h("div",{class:a.value,onClick:c},f)}}}}const{componentName:tc,create:nc,scope:rc}=oe("more-button"),nr=nc(ec(tc,rc,(e,t)=>(e=e??Ne.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function oc(e){return e===window}const Ho=e=>{const t=r.unref(e);if(oc(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:lc,create:ac,scope:kf}=oe("tour"),ic=ac({components:{Close:Ne.Close,ElPopover:y.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=lc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),a=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:g,maskWidth:m,maskHeight:v}=e,{width:w,height:T,left:O,top:q}=l.value,V=e.steps[n.active].offset??g,F=[O+w/2,q+T/2],R=Number(m||w),M=Number(v||T);return{width:`${R+ +V.left+V.right}px`,height:`${M+V.top+V.bottom}px`,top:`${F[1]-M/2-+V.top}px`,left:`${F[0]-R/2-+V.left}px`}}),s=g=>{g=="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=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),m=Ho(g);l.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},f=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&f()},N=(g,m=0)=>{g&&c(),e.steps,n.active=m,n.showTour=g,n.showPopup=g};return r.onMounted(()=>{N(e.modelValue,e.current)}),r.watch(()=>e.modelValue,g=>{N(g)}),{...r.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:p}}}),sc={key:0,class:"fox-tour__content"},uc={key:0,class:"fox-tour__content-top"},cc={class:"fox-tour__content-inner"},fc={class:"fox-tour__content-bottom"},dc={class:"fox-tour__content-bottom-init"},hc={class:"fox-tour__content-bottom-operate"},gc={key:1,class:"fox-tour__content fox-tour__content-tile"},mc={class:"fox-tour__content-inner"};function pc(e,t,o,n,l,a){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(d,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(d),width:e.popoverWidth(d)},{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",sc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",uc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",cc,r.toDisplayString(d.content),1),r.createElementVNode("div",fc,[r.createElementVNode("div",dc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",hc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>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",gc,[r.createElementVNode("div",mc,r.toDisplayString(d.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const rr=Ie(ic,[["render",pc]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,et=e=>e==null,Ko=10;function yc(e,t){return e>t&&e>Ko?"horizontal":t>e&&t>Ko?"vertical":""}function bc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=yc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function vc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class wc{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=vc()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=bc(),n=(l,a,i,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(o.start(l),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=l=>{this.moving&&(o.move(l),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Wo(e,t){return new wc(e,t)}var Yo;const or=typeof window<"u";or&&((Yo=window?.navigator)!=null&&Yo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ut=[];const Go=e=>{const t=e;t.key==="Escape"&&ut.forEach(o=>o(t))},Sc=e=>{r.onMounted(()=>{ut.length===0&&document.addEventListener("keydown",Go),or&&ut.push(e)}),r.onBeforeUnmount(()=>{ut=ut.filter(t=>t!==e),ut.length===0&&or&&document.removeEventListener("keydown",Go)})},lr="fox-focus-trap.focus-after-trapped",ar="fox-focus-trap.focus-after-released",xc="fox-focus-trap.focusout-prevented",Uo={cancelable:!0,bubbles:!1},Tc={cancelable:!0,bubbles:!1},Xo="foxFocusAfterTrapped",Zo="foxFocusAfterReleased",$c=Symbol("foxFocusTrap"),ir=r.ref(),Yt=r.ref(0),sr=r.ref(0);let Gt=0;const Jo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const l=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||l?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Cc=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Qo=(e,t)=>{for(const o of e)if(!Cc(o,t))return o},Ec=e=>{const t=Jo(e),o=Qo(t,e),n=Qo(t.reverse(),e);return[o,n]},Nc=e=>e instanceof HTMLInputElement&&"select"in e,Ue=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&Nc(e)&&t&&e.select()}};function el(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const kc=()=>{let e=[];return{push:n=>{const l=e[0];l&&n!==l&&l.pause(),e=el(e,n),e.unshift(n)},remove:n=>{e=el(e,n),e[0]?.resume?.()}}},Vc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ue(n,t),document.activeElement!==o)return},tl=kc(),Oc=()=>Yt.value>sr.value,Ut=()=>{ir.value="pointer",Yt.value=window.performance.now()},nl=()=>{ir.value="keyboard",Yt.value=window.performance.now()},Ic=()=>(r.onMounted(()=>{Gt===0&&(document.addEventListener("mousedown",Ut),document.addEventListener("touchstart",Ut),document.addEventListener("keydown",nl)),Gt++}),r.onBeforeUnmount(()=>{Gt--,Gt<=0&&(document.removeEventListener("mousedown",Ut),document.removeEventListener("touchstart",Ut),document.removeEventListener("keydown",nl))}),{focusReason:ir,lastUserFocusTimestamp:Yt,lastAutomatedFocusTimestamp:sr}),Xt=e=>new CustomEvent(xc,{...Tc,detail:e}),{componentName:Vf,create:Rc,scope:Of}=oe("focus-trap"),Dc=Rc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Xo,Zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let l,a;const{focusReason:i}=Ic();Sc(m=>{re(e.trapped)&&!s.paused&&o("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=m=>{if(!e.loop&&!re(e.trapped)||s.paused)return;const{key:v,altKey:w,ctrlKey:T,metaKey:O,currentTarget:q,shiftKey:V}=m,{loop:F}=e,R=v==="Tab"&&!w&&!T&&!O,M=document.activeElement;if(R&&M){const D=q,[E,k]=Ec(D);if(E&&k){if(!V&&M===k){const $=Xt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(m.preventDefault(),F&&Ue(E,!0))}else if(V&&[E,D].includes(M)){const $=Xt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(m.preventDefault(),F&&Ue(k,!0))}}else if(M===D){const $=Xt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||m.preventDefault()}}};r.provide($c,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),r.watch([n],([m],[v])=>{m&&(m.addEventListener("keydown",u),m.addEventListener("focusin",f),m.addEventListener("focusout",p)),v&&(v.removeEventListener("keydown",u),v.removeEventListener("focusin",f),v.removeEventListener("focusout",p))});const d=m=>{o(Xo,m)},c=m=>o(Zo,m),f=m=>{const v=r.unref(n);if(!v)return;const w=m.target,T=m.relatedTarget,O=w&&v.contains(w);re(e.trapped)||T&&v.contains(T)||(l=T),O&&o("focusin",m),!s.paused&&re(e.trapped)&&(O?a=w:Ue(a,!0))},p=m=>{const v=r.unref(n);if(!(s.paused||!v))if(!e.escape&&re(e.trapped)){const w=m.relatedTarget;!fn(w)&&!v.contains(w)&&setTimeout(()=>{if(!s.paused&&re(e.trapped)){const T=Xt({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||Ue(a,!0)}},0)}else{const w=m.target;w&&v.contains(w)||o("focusout",m)}};async function N(){await r.nextTick();const m=r.unref(n);if(m){tl.push(s);const v=m.contains(document.activeElement)?l:document.activeElement;if(l=v,!m.contains(v)){const T=new Event(lr,Uo);m.addEventListener(lr,d),m.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let O=e.focusStartEl;Sr(O)||(Ue(O),document.activeElement!==O&&(O="first")),O==="first"&&Vc(Jo(m),!0),(document.activeElement===v||O==="container")&&Ue(m)})}}}function g(){const m=r.unref(n);if(m){m.removeEventListener(lr,d);const v=new CustomEvent(ar,{...Uo,detail:{focusReason:i.value}});m.addEventListener(ar,c),m.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!Oc())&&Ue(l??document.body,!0),m.removeEventListener(ar,d),tl.remove(s)}}return r.onMounted(()=>{re(e.trapped)&&N(),r.watch(()=>e.trapped,m=>{re(m)?N():g()})}),r.onBeforeUnmount(()=>{re(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Fc,create:Ac,scope:Rf}=oe("floating-window"),Bc=Symbol.for("InnerPageScopeKey"),qc=Symbol.for("PageWrapperKey"),_c={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Lc=Ac({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Dc},props:{..._c},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Fc,n=r.ref(e.modelValue),l=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,x=>{n.value=x});const a=r.computed(()=>n.value===!1?!1:!M.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),d=r.ref(e.bottom),c=r.computed(()=>{const x=["fox-floating-window"];return e.customClass&&x.push(e.customClass),x}),f=r.computed(()=>{const x={};return et(i.value)?x.left="auto":x.left=Ee(i.value),et(s.value)?x.top="auto":x.top=Ee(s.value),et(u.value)?x.right="auto":x.right=Ee(u.value),et(d.value)?x.bottom="auto":x.bottom=Ee(d.value),et(e.zIndex)||(x["z-index"]=Ee(e.zIndex)),et(F.value)||(x.height=F.value),et(R.value)||(x.width=R.value),x}),p=r.computed(()=>e.closeIcon??Ne.Close),N=r.computed(()=>e.collapseIcon??Ne.ArrowUp),g=r.computed(()=>e.collapseText??""),m=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),v=r.computed(()=>e.expandText??e.title??"展开"),w=r.computed(()=>({[`${o}__collapse-text`]:!0})),T=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),O=r.ref(),q=r.ref(null),V=r.ref(null),F=r.computed(()=>Ee(e.height)||""),R=r.computed(()=>Ee(e.width)||""),M=r.ref(re(e.collapse)),D=(x,_=!0)=>{M.value!==x&&(M.value=x,x?U():Q(),t("update:collapse",x))};r.watch(()=>e.collapse,x=>{D(x)});const E=()=>{k()},k=x=>{x=x??!M.value,D(x)};r.provide(Bc,!0);const B={setCollapse:D,setFixedNavVisible:x=>{C.value=x}};r.provide(qc,B);const $=()=>{typeof B.beforeClose=="function"?B.beforeClose(()=>{n.value=!1}):n.value=!1},b=r.ref(null),S=r.computed(()=>!e.fixedNavTeleport),P=r.computed(()=>{const x=["fox-floating-window__fixednav"];return e.expandClass&&x.push(e.expandClass),e.collapsePosition==="left"?x.push("is-left"):e.collapsePosition==="right"&&x.push("is-right"),x}),I=r.ref(""),K=r.computed(()=>{const x={};return I.value?x.top=I.value:e.collapseTop&&(x.top=e.collapseTop),x}),C=r.ref(M.value);let A=null;const j=()=>{typeof A=="function"&&(A(),A=null)},U=()=>{b.value&&b.value.classList.add("slide-in"),C.value=!0,A=()=>{b.value&&b.value.classList.remove("slide-in")}},Q=()=>{b.value&&b.value.classList.add("slide-out"),A=()=>{b.value&&b.value.classList.remove("slide-out"),C.value=!1}},ne=()=>{i.value=null,s.value=null,u.value=null,d.value=null},J={x:0,y:0},Z=Wo(x=>{if(!O.value)return;const _=O.value;if(ne(),e.origin==="left-top")i.value=_.offsetLeft,s.value=_.offsetTop,J.x=i.value,J.y=s.value;else if(e.origin==="left-bottom"){const H=document.documentElement.clientHeight||document.body.clientHeight;i.value=_.offsetLeft,d.value=H-(_.offsetTop+_.offsetHeight),J.x=i.value,J.y=d.value}else if(e.origin==="right-bottom"){const H=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight;u.value=H-(_.offsetLeft+_.offsetWidth),d.value=G-(_.offsetTop+_.offsetHeight),J.x=u.value,J.y=d.value}else{const H=document.documentElement.clientWidth||document.body.clientWidth;u.value=H-(_.offsetLeft+_.offsetWidth),s.value=_.offsetTop,J.x=u.value,J.y=s.value}},x=>{if(!O.value)return;const _=O.value;ne(),e.origin==="left-top"?(i.value=J.x+x.x,s.value=J.y+x.y,_.style.left=Ee(i.value),_.style.top=Ee(s.value)):e.origin==="left-bottom"?(i.value=J.x+x.x,d.value=J.y-x.y,_.style.left=Ee(i.value),_.style.bottom=Ee(d.value)):e.origin==="right-bottom"?(u.value=J.x-x.x,d.value=J.y-x.y,_.style.right=Ee(u.value),_.style.bottom=Ee(d.value)):(u.value=J.x-x.x,s.value=J.y+x.y,_.style.right=Ee(u.value),_.style.top=Ee(s.value))}),L={x:0,y:0},z=Wo(x=>{b.value&&(L.x=b.value.offsetLeft,L.y=b.value.offsetTop)},x=>{if(!b.value)return;const _=L.y+x.y;I.value=`${_}px`}),Y=()=>{if(O.value){const x=O.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");V.value=x}};return r.onMounted(()=>{if(e.draggable&&O.value){const x=[];q.value&&x.push(q.value),e.footerDraggable&&(Y(),V.value&&x.push(V.value)),Z.open(x)}e.collapse===!0&&D(e.collapse,!1),b.value&&z.open(b.value)}),r.onBeforeUnmount(()=>{e.draggable&&q.value&&Z.close(),b.value&&z.close()}),{classes:c,styles:f,isShow:a,closeIcon:p,onClose:$,dialogRef:O,headerRef:q,onClickToggle:E,collapseIcon:N,collapseText:g,collapseTextClasses:w,collapseIconClasses:T,expandIcon:m,expandText:v,isShowFixedNav:C,fixedNavRef:b,fixedNavClasses:P,fixedNavStyles:K,onAnimationEnd:j,teleportDisabled:l,fixedNavTeleportDisabled:S}}}),Mc={ref:"headerRef",class:"fox-floating-window__header"},jc={class:"fox-floating-window__title"},Pc={class:"fox-floating-window__tools"},zc={class:"fox-floating-window__body"},Hc={class:"fox-floating-window__fixednav__text"};function Kc(e,t,o,n,l,a){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[r.createVNode(r.Transition,{name:"fox-floating-window-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Mc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",jc,r.toDisplayString(e.title),1),r.createElementVNode("div",Pc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.collapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",zc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(r.openBlock(),r.createBlock(r.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[r.withDirectives(r.createElementVNode("div",{ref:"fixedNavRef",class:r.normalizeClass(e.fixedNavClasses),style:r.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[r.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",Hc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=Ie(Lc,[["render",Kc]]);function Wc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return jr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Df,create:Yc,scope:Ff}=oe("domain-provider"),cr=Yc(Wc()),Gc={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 Uc(e,t){return{inheritAttrs:!1,props:Gc,setup(o,{slots:n}){if(tt&&window.IntersectionObserver){const l=new WeakMap;let a=new Map;const i=(p,N)=>{if(c===null){a.set(p,{visible:null,callback:N});return}l.has(p)&&c.unobserve(p),l.set(p,{visible:null,callback:N}),c.observe(p)},s=p=>{if(c===null){a.delete(p);return}l.has(p)&&(l.delete(p),c.unobserve(p))};let u=o.initialVisibleObserverSize;ga({acquire:()=>{const p=u>0;return u--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const f=(p,N,g)=>{c=new IntersectionObserver(m=>{for(let v of m){let w=!1;v.intersectionRatio>0&&(w=!0);const T=l.get(v.target);if(T)try{if(o.loadPolicy==="lazy"&&!w&&T.visible!==null)return;T.visible=w,T.callback(w)}catch(O){console.error(O)}}},{root:p,rootMargin:N,threshold:g}),a.forEach((m,v)=>{l.set(v,m),c?.observe(v)}),a.clear()};r.watch([()=>o.root,()=>o.disabled],([p,N])=>{if(N||!p||c)return;let g=null;typeof p=="string"?g=document.querySelector(p):g=p,g&&f(g,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Af,create:Xc,scope:Bf}=oe("rolling-provider"),fr=Xc(Uc()),rl=10;function Zc(e,t){return e>t&&e>rl?"horizontal":t>e&&t>rl?"vertical":""}function Jc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),l=r.ref(0),a=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),d=r.ref(0),c=r.ref(""),f=()=>c.value==="vertical",p=()=>c.value==="horizontal",N=()=>{i.value=0,s.value=0,u.value=0,d.value=0,c.value="",o.value=0};return{move:v=>{const w=v.touches[0];i.value=w.clientX-e.value,s.value=w.clientY-t.value,l.value=w.clientX,a.value=w.clientY,u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Zc(u.value,d.value))},start:v=>{N(),e.value=v.touches[0].clientX,t.value=v.touches[0].clientY,o.value=Date.now()},reset:N,startX:e,startY:t,startTime:o,duration:n,moveX:l,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:c,isVertical:f,isHorizontal:p}}const Qc=[vn,xn,Tn,$n,Nn,me,On,In,bt,Rn,Dn,Fn,An,Bn,qn,_n,Mn,jn,Pn,zn,Wt,Wn,Yn,Gn,Un,Xn,Zn,Jn,Qn,wt,zt,er,tr,nr,rr,ur,cr,fr],ef=new Hl(Qc,[Yl],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),h.AutocompleteItem=jn,h.Broadcast=dn,h.BroadcastKey=he,h.CascaderItem=Mn,h.CheckboxItem=Gn,h.Content=$n,h.DataItemsKey=nt,h.DateItem=Fn,h.DateUtils=Re,h.DialogItem=Qn,h.Domain=Rt,h.DomainKey=Oe,h.DomainProvider=cr,h.FloatingWindow=ur,h.FooterBar=Tn,h.FoxAutocompleteItem=jn,h.FoxCascaderItem=Mn,h.FoxCheckboxItem=Gn,h.FoxContent=$n,h.FoxDateItem=Fn,h.FoxDialogItem=Qn,h.FoxDomainProvider=cr,h.FoxFloatingWindow=ur,h.FoxFooterBar=Tn,h.FoxGroup=Nn,h.FoxGroupSetting=Jn,h.FoxHeaderBar=xn,h.FoxHintText=bt,h.FoxIndicator=er,h.FoxInputItem=Rn,h.FoxInputNumberItem=_n,h.FoxItem=me,h.FoxMapping=wt,h.FoxMoneyItem=qn,h.FoxMoreButton=nr,h.FoxPage=vn,h.FoxPrice=zt,h.FoxRadioItem=Yn,h.FoxRateItem=Un,h.FoxRollingProvider=fr,h.FoxRowItem=In,h.FoxSelectItem=Dn,h.FoxSlotItem=On,h.FoxSwitchItem=Xn,h.FoxTableItem=Wn,h.FoxTableMappingColumn=Pn,h.FoxTableRadioColumn=zn,h.FoxTableSetting=Wt,h.FoxText=tr,h.FoxTimeItem=An,h.FoxTimeSelectItem=Bn,h.FoxTour=rr,h.FoxTreeSelectItem=Zn,h.Group=Nn,h.GroupSetting=Jn,h.HeaderBar=xn,h.HintText=bt,h.Indicator=er,h.InputItem=Rn,h.InputNumberItem=_n,h.Item=me,h.Mapping=wt,h.MoneyItem=qn,h.MoreButton=nr,h.Page=vn,h.Price=zt,h.PriorityPolicy=ke,h.RadioItem=Yn,h.RateItem=Un,h.RollingProvider=fr,h.RowItem=In,h.SelectItem=Dn,h.SlotItem=On,h.SwitchItem=Xn,h.TableItem=Wn,h.TableMappingColumn=Pn,h.TableRadioColumn=zn,h.TableSetting=Wt,h.Text=tr,h.TimeItem=An,h.TimeSelectItem=Bn,h.Tour=rr,h.TreeSelectItem=Zn,h.UniqueID=no,h.ValidateSchema=_r,h.ValidateSchemaKey=je,h.cancelRaf=al,h.clearNonNumber=Sl,h.clone=un,h.compareTo=ln,h.createBroadcast=Vt,h.createValidateSchema=It,h.debounce=mt,h.debounceRef=Fl,h.decimalLength=Or,h.default=ef,h.defineBroadcast=Cl,h.defineConfigDomain=jr,h.defineDataItem=zr,h.defineDomain=mn,h.defineItem=pe,h.definePageState=Hr,h.deleteGlobalValidator=Vl,h.disabledProperty=Ce,h.divide=on,h.excludeProps=we,h.extend=Ze,h.floatData=$l,h.getGlobalValidateCheckEvents=Ar,h.getGlobalValidateResetEvents=qr,h.getPageContentAreaHeight=Ft,h.getPageContentAreaWidth=At,h.getPageFooterAreaHeight=yt,h.getPageHeaderAreaHeight=pt,h.getRootDomain=rt,h.hasSymbol=Tr,h.includeProps=Rr,h.indexOf=xl,h.installRules=Pr,h.integerLength=Vr,h.isArray=cl,h.isArrayLike=Cr,h.isBrowser=tt,h.isDate=hl,h.isESModule=pl,h.isEmptyString=de,h.isEqual=Me,h.isFunction=an,h.isHidden=kt,h.isInnerPage=ql,h.isMap=fl,h.isNil=fn,h.isNumberString=kr,h.isObject=We,h.isPlainObject=sn,h.isPromise=ml,h.isRegExp=Nr,h.isSet=dl,h.isString=Sr,h.isSubPage=_l,h.isSymbol=gl,h.isWindow=$r,h.lastIndexOf=Tl,h.makeArray=wl,h.merge=Er,h.multiply=br,h.negate=vr,h.nextTick=bl,h.numberFormat=Ct,h.objectToString=xr,h.once=Al,h.property=Te,h.raf=ul,h.readonlyProperty=$e,h.setGlobalValidateCheckEvents=Ol,h.setGlobalValidateHandler=Nl,h.setGlobalValidateMessages=Rl,h.setGlobalValidateResetEvents=Il,h.setGlobalValidator=kl,h.throttle=Mr,h.toBoolean=re,h.toNumber=ve,h.toPadding=Ae,h.toPx=ce,h.toPxDesc=Se,h.toTypeString=Et,h.toValue=se,h.tryTimes=hn,h.typeOf=Nt,h.unNumberFormat=wr,h.updatePageState=pn,h.useBroadcast=ht,h.useDomain=Pe,h.useExpose=ye,h.useInnerSize=Sn,h.usePageState=Dt,h.usePosition=Qr,h.useRect=Ho,h.useSize=wn,h.useTouch=Jc,h.valueLength=dt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
5
|
+
*/function $t(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=be(e),t=be(t),[e,t]=Jt(be(e),be(t)),o==1&&(n==1?e=Zt(e):t=Zt(t));let l=hr(e,t);return o?o==2?"-"+be(l):e.length<l.length?be(l.substring(1)):"-"+be(Zt(l)):be(l)}function Zt(e){let t="",o=e.length,n=e.split(".")[1],l=n?n.length:0;for(let i=0;i<o;i++)e[i]>="0"&&e[i]<="9"?t+=9-parseInt(e[i]):t+=e[i];let a=l>0?"0."+new Array(l).join("0")+"1":"1";return hr(t,a)}function be(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 Jt(e,t){let o=e.split("."),n=t.split("."),l=o[0].length,a=n[0].length;return l>a?n[0]=new Array(Math.abs(l-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(l-a)+1).join("0")+(o[0]?o[0]:""),l=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(l||a)&&(l>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(l-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function hr(e,t){[e,t]=Jt(e,t);let o="",n=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){o="."+o;continue}let a=parseInt(e[l])+parseInt(t[l])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var fe=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(fe||{});function ct(e,t=0,o=fe.HALF_EVEN){if(o===fe.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let l=e.split("."),a=l[0],i=l[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+i,u=ct(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,gr(l[1],a,n,o)?(n?"-":"")+Qt(a):(n?"-":"")+a;if(l[1]){if(l[1].length<t)return(n?"-":"")+a+"."+l[1]+new Array(t-l[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");i=l[1].substring(0,t);let s=l[1].substring(t);return s&&gr(s,i,n,o)&&(i=Qt(i),i.length>t)?(n?"-":"")+Qt(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function gr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===fe.DOWN||!o&&n===fe.FLOOR||o&&n===fe.CEILING)return!1;if(n===fe.UP||o&&n===fe.FLOOR||!o&&n===fe.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(n){case fe.HALF_DOWN:return!1;case fe.HALF_UP:return!0;case fe.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Qt(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let l=o;l>=0;l--){let a=parseInt(e[l])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function en(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=ft(e),t=ft(t);let n=0,l=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(l=t.length-t.indexOf(".")-1);let a=n+l;if(e=ft(e.replace(".","")),t=ft(t.replace(".","")),e.length<t.length){let f=e;e=t,t=f}if(t=="0")return"0";let i=t.length,s=0,u=[],d=i-1,c="";for(let f=0;f<i;f++)u[f]=e.length-1;for(let f=0;f<2*e.length;f++){let p=0;for(let N=t.length-1;N>=d&&N>=0;N--)u[N]>-1&&u[N]<e.length&&(p+=parseInt(e[u[N]--])*parseInt(t[N]));p+=s,s=Math.floor(p/10),c=p%10+c,d--}return c=ft(sl(c,a)),o==1&&(c="-"+c),c}function sl(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function ft(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function tn(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 l=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=be(t.replace(".","")),l>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=be(e+new Array(l+1).join("0"));else if(l>d)e=e.replace(".",""),e=be(e+new Array(l-d+1).join("0"));else if(l<d){e=e.replace(".","");let c=e.length-d+l;e=be(e.substring(0,c)+"."+e.substring(c))}else l==d&&(e=be(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(d+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=d,s="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=$t(u,"-"+t),d++;s+=d,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+be(ct(s,o-2))}function nn(e,t){return e=e.toString(),t=t.toString(),t=rn(t),$t(e,t)}function rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mr(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),pr(e),pr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=nn(e,en(t,ct(tn(e,t),0,fe.FLOOR)));return o+n}function pr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function yr(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=Jt(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 le{value;static RoundingModes=fe;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=be(o);let l="";o[0]=="-"&&(l="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=l+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=l+be(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=l+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=le.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=le.validate(t);let l=t.charAt(0)=="-";l&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",s=a;s>0;)s<o?(o=s,s=0):s-=o,i=t.substring(s,s+o)+(s<a-o&&s>=0?n:"")+i;return(l?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return le.getPrettyValue(this.value,t,o)}static round(t,o=0,n=fe.HALF_EVEN){if(t=le.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return ct(t,o,n)}round(t=0,o=fe.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new le(ct(this.value,t,o))}static floor(t){return t=le.validate(t),t.indexOf(".")===-1?t:le.round(t,0,fe.FLOOR)}floor(){return this.value.indexOf(".")===-1?new le(this.value):new le(this.value).round(0,fe.FLOOR)}static ceil(t){return t=le.validate(t),t.indexOf(".")===-1?t:le.round(t,0,fe.CEILING)}ceil(){return this.value.indexOf(".")===-1?new le(this.value):new le(this.value).round(0,fe.CEILING)}static add(t,o){return t=le.validate(t),o=le.validate(o),$t(t,o)}add(t){return new le($t(this.value,t.getValue()))}static subtract(t,o){return t=le.validate(t),o=le.validate(o),nn(t,o)}subtract(t){return new le(nn(this.value,t.getValue()))}static multiply(t,o){return t=le.validate(t),o=le.validate(o),en(t,o)}multiply(t){return new le(en(this.value,t.getValue()))}static divide(t,o,n){return t=le.validate(t),o=le.validate(o),tn(t,o,n)}divide(t,o){return new le(tn(this.value,t.getValue(),o))}static modulus(t,o){return t=le.validate(t),o=le.validate(o),mr(t,o)}modulus(t){return new le(mr(this.value,t.getValue()))}static compareTo(t,o){return t=le.validate(t),o=le.validate(o),yr(t,o)}compareTo(t){return yr(this.value,t.getValue())}static negate(t){return t=le.validate(t),rn(t)}negate(){return new le(rn(this.value))}}function br(e,t){return le.multiply(`${e}`,`${t}`)}function on(e,t,o=8){return le.divide(`${e}`,`${t}`,o)}function ln(e,t){return e=`${e}`,t=`${t}`,le.compareTo(e,t)}function vr(e){return le.negate(e)}function Ct(e,t=-1,o=!1,n=3,l=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let s=a,u="",d=a.indexOf(".");d!=-1&&(s=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let f="",p=s.split("").reverse();for(let N=0;N<p.length;N++)f+=p[N]+((N+1)%n==0&&N+1!=p.length?l:"");u.length==0?c=`${i}${f.split("").reverse().join("")}`:c=`${i}${f.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function wr(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const ul=il,cl=Array.isArray,fl=e=>Et(e)==="[object Map]",dl=e=>Et(e)==="[object Set]",hl=e=>e instanceof Date,an=e=>typeof e=="function",Sr=e=>typeof e=="string",gl=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",ml=e=>We(e)&&an(e.then)&&an(e.catch),xr=Object.prototype.toString,Et=e=>xr.call(e),sn=e=>Et(e)==="[object Object]",Tr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function pl(e){return e.__esModule||Tr&&e[Symbol.toStringTag]==="Module"}const yl=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ze(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,l=!1;for(typeof t=="boolean"&&(l=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let s=t[i],u=a[i];if(s!==u)if(l===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=s&&Array.isArray(s)?s:[]:d=s&&typeof s=="object"?s:{},t[i]=Ze(l,d,u)}else u!==void 0&&(t[i]=u)}}return t}function un(e,t,o=!1){if(!o)Ze(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let l in t){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!sn(i))continue;a=un(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}const n=Object.getOwnPropertySymbols(t);for(let l of n){let a=e[l],i=t[l];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!sn(i))continue;a=un(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}}return e}const cn=yl?Promise.resolve():null;function bl(e,...t){cn!==null?t&&t.length>0?cn.then(()=>{e(t)}):cn.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 ve(e){return typeof e=="number"?e:Number(e)}const vl={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function Nt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):vl[o]||"object"}function $r(e){return e&&typeof e=="object"&&"setInterval"in e}function kt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Cr(e){let t=!!e&&"length"in e&&e.length,o=Nt(e);return o==="function"||$r(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Er(e,t){let o=+t.length,n=0,l=e.length;for(;n<o;n++)e[l++]=t[n];return e.length=l,e}function wl(e,t=[]){let o=t;return e!=null&&(Cr(Object(e))?Er(o,typeof e=="string"?[e]:e):o.push(e)),o}function Me(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Nt(e),n=Nt(t);if(o!==n)return!1;if(o==="object"){let l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],u=e[s],d=t[s];if(!Me(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let l=0;l<e.length;l++){let a=e[l],i=t[l];if(!Me(a,i))return!1}return!0}return!1}const tt=typeof window<"u";function fn(e){return e==null}function Nr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function kr(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Vr(e){if(e==null)return 0;let t=`${e}`;if(t.length==0)return 0;t.charAt(0)=="-"&&(t=t.substring(1)),t=t.replace(/[^\d\.-]/g,"");const o=t.indexOf(".");return o==-1?t.length:o}function Or(e){if(e==null)return 0;const t=`${e}`;if(t.length==0)return 0;const o=t.indexOf(".");return o==-1?0:t.length-(o+1)}function Ir(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 Sl(e,t=!0,o=!0){t?e=Ir(e,".",/\./g):e=e.replace(/\./g,""),o?e=Ir(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function xl(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Me(e,o))return!0}):t.indexOf(e)}function Tl(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(Me(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function dt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Rr(e,...t){const o={};return t.forEach(n=>{for(const l in n)o[l]=e[l]}),o}function we(e,...t){const o=[];t.forEach(l=>{Reflect.apply([].push,o,Reflect.ownKeys(l))});const n={};for(const l in e)o.includes(l)||(n[l]=e[l]);return n}const $l=(e,t,o)=>{const n=Object.assign({},e),l=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{l.hasOwnProperty(a)?typeof l[a]=="string"&&(n[a]=t[l[a]]):t[a]&&(n[a]=t[a])}),n):e},he=Symbol.for("BroadcastKey");class dn{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 l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):Nr(t.name)&&this.name&&t.name.test(this.name)?l=!0:typeof t.name=="function"?l=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(l=!0);const a=[];if(l){const i=this.callbacks.get(o);if(typeof i=="function"){const u=Reflect.apply(i,this.proxy,[...n]);u!=null&&a.push(u)}const s=this.proxy??{};if(typeof s[o]=="function"){const u=Reflect.apply(s[o],s,[...n]);u!=null&&a.push(u)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}emitToChildren(t,o,...n){const l=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(t,o){this.callbacks.set(t,o)}}function Vt(e,t,o,n){const l=new dn(t,e,o);if(n&&typeof n=="object")for(const a in n)l.on(a,n[a]);return l}function Cl(e,t,o){const n=o;if(n[he])return n[he];const l=r.inject(he,null),a=new dn(l,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[he]=a,r.provide(he,a),r.onUnmounted(()=>{a.destroy(),n[he]=void 0}),a}function ht(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[he]??r.inject(he,null):r.inject(he,null)}const Je=e=>e.default??e;class El{error(t,o){const n=o,l=ht(o);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=ht(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const l=n,a=ht(n),i=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),s=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!i&&s?a?a.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(a?a.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Dr=new El;function Nl(e){Dr=e}function kl(e,t){Je(Xe).setValidator(e,t)}function Vl(e){Je(Xe).deleteValidator(e)}let Fr=["blur","clear"];function Ol(e){Fr=e}function Ar(){return Fr}let Br=["focus","change"];function Il(e){Br=e}function qr(){return Br}function Rl(e){Je(Xe).messages(e)}function gt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const l=t.findIndex(a=>a.type===n.type);l!==-1&&t.splice(l,1),t.push(n)})}),t}function Ot(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const je=Symbol("ValidateSchemaKey");class _r{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=Ot(gt(this.attrRules,this.rules)),n=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let u={type:a};i!==null&&typeof i=="object"&&Object.assign(u,i),n.push(u);continue}let s=this.getValidator(a);if(s!==null){let u={type:a,validator:s};n.push(u)}}this.attrRules=Ot(n);const l=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(l,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 l=Dr;return l&&typeof l[t]=="function"?Reflect.apply(l[t],l,[...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?Je(Xe).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?Je(Xe).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Je(Xe).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=gt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ot(t):this.rules=Ot([t]);const n=gt(this.attrRules,this.rules);r.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=gt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const l={[`${n}`]:o},a=this.getValue(),i={[`${n}`]:a},s=Je(Xe),u=new s(l),d=this.proxy??i;return u.validate(i,{context:d}).then(f=>{if(f.pass)this.success();else{let p="error";Array.isArray(f.errors)&&f.errors.length>0&&(p=f.errors[0].message??p,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(p)}return f}).catch(f=>{const p=f.message??`${f}`;return this.error(p),f})}}return Promise.resolve({pass:!0})}}function It(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const l=o.valueName;o.validateHandler={getValue(a){return a[l]}}}return new _r(t,o,e)}const Lr=Symbol.for("EventEmitterKey");class Dl{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 l=n.findIndex(a=>a===o);l!==-1&&n.splice(l,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(l=>{try{Reflect.apply(l,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function mt(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function Mr(e,t){let o=0;return function(...n){const l=new Date().getTime();l-o<t||(o=l,Reflect.apply(e,null,[...n]))}}function Fl(e,t){const o=mt((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(a){o(a,l)}}))}function Al(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function hn(e,t,o,n=0,l=!0){let a=t,i=0;if(l){const u=e();if(i++,u||i>o)return}const s=()=>{const u=e();i++,!(u||i>o)&&(a+=n,setTimeout(s,a))};setTimeout(s,a)}const Oe=Symbol("DomainKey"),nt=Symbol("DataItemsKey");class Rt{_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 l=t[n];o.length>0&&o.indexOf(l)!==-1||(this._props[n]=l)}}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 l=n._props[t];o.push(l)}n=n._parent}return o}}const Bl=new Rt;function rt(){return Bl}function Pe(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Oe]??r.inject(Oe,null):r.inject(Oe,null)}const gn=Symbol("OriginalDateKey");function mn(e,t,o=[],n){const l=r.getCurrentInstance(),a=l?.proxy;let i=r.inject(Oe,null);i===null&&(i=rt());const s=e||t.prop||t.name,u=new Rt(s);u.parent=i;const d=m=>{a[gn]||p(m),u.set("modelValue",m)},c=()=>u.getForSelf("modelValue")??null,f=()=>a[gn]??null,p=m=>{const v={};Ze(!0,v,r.toRaw(m)),a[gn]=v};r.isReactive(t)||typeof t=="function"?r.watch(t,m=>{u.merge(m,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&p(t.modelValue),a[Oe]=u,r.provide(Oe,u);let N=null,g=null;if(l!==null){const m=r.inject(he,null);N=Vt(a,m,s,n),u.broadcast=N,a[he]=N,r.provide(he,N),a.broadcast=(w,T,...O)=>Reflect.apply(N.emit,N,[w,T,...O]);const v=r.inject(je,null);g=It(a,v,{componentName:""}),u.validateSchema=g,a[je]=g,r.provide(je,g),a[nt]=new Map,a.validate=(w=!0)=>{const T=[];let O=null;const q={deep:!1};if(w===!0)O={name:"*"};else if(Array.isArray(w)&&w.length>0){const V=w;O={name:F=>F?V.indexOf(F)!==-1:!1}}else if(w!=null&&typeof w=="object"){const V=w;if(q.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const F=V.include;O={name:R=>R?F.indexOf(R)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const F=V.exclude;O={name:R=>R?F.indexOf(R)===-1:!1}}else O={name:"*"}}if(O){const V=N?.emitToChildren(O,"validate",q);V&&Reflect.apply([].push,T,V)}return T.length==1?T[0]:T.length>1?Promise.all(T).then(V=>{let F=[];return V.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(F=[...F,...R.errors])}),F.length>0?{pass:!1,errors:F}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(w,T=!0,O=!1)=>{if(O===!0){Reflect.ownKeys(w).forEach(V=>{let F=String(V);const M=zr(u,F,{componentName:"",fieldName:F,pureDataValidate:!0},N,g);a[nt].set(F,M);const D=w[F];D&&M.validateSchema.setRule(D)});return}if(T){const q=Reflect.ownKeys(w),V={name:F=>q.includes(F)};N?.emitToChildren(V,"setNameValidateRules",w,!1)}},a.clearValidate=(w=!0)=>{let T=null;if(w===!0)T={name:"*"};else if(Array.isArray(w)&&w.length>0){const O=w;T={name:q=>q?O.indexOf(q)!==-1:!1}}else if(w!=null&&typeof w=="object"){const O=w;if(Array.isArray(O.include)&&O.include.length>0){const q=O.include;T={name:V=>V?q.indexOf(V)!==-1:!1}}else if(Array.isArray(O.exclude)&&O.exclude.length>0){const q=O.exclude;T={name:V=>V?q.indexOf(V)===-1:!1}}else T={name:"*"}}T&&N?.emitToChildren(T,"clearValidate",!1)},a.resetFields=w=>{const T=c();if(!T)return;const O={};if(Ze(!0,O,f()??{}),Array.isArray(w))w.forEach(q=>{T[q]=O[q]});else if(w&&Array.isArray(w.include))(w.include??[]).forEach(V=>{T[V]=O[V]});else if(w&&Array.isArray(w.exclude)){let q=w.exclude??[];Reflect.ownKeys(O).forEach(V=>{q.includes(V)||(T[V]=O[V])})}else Object.assign(T,O);a.clearValidate(w)},a.setModelValue=(w,T)=>{!T||T===s?d(w):N?.emitToChildren({name:T},"setModelValue",w)},a.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),a[Oe]=void 0,a[nt]&&(a[nt].clear(),a[nt]=void 0),N!==null&&(N.destroy(),a[he]=void 0),g!==null&&(g.destroy(),a[je]=void 0)}),u}function jr(e,t,o=[]){const l=r.getCurrentInstance()?.proxy;let a=r.inject(Oe,null);a===null&&(a=rt());const i=e||t.prop||t.name,s=new Rt(i);return s.parent=a,r.isReactive(t)||typeof t=="function"?r.watch(t,u=>{s.merge(u,o)},{immediate:!0}):s.merge(t,o),l[Oe]=s,r.provide(Oe,s),r.onUnmounted(()=>{s.destroy(),l[Oe]=void 0}),s}function Pr(e,t,o){const l=Pe(e)?.get("rules");if(!l)return;let a=l[o];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{t.setRule(i)}))}function pe(e,t,o){const l=r.getCurrentInstance()?.proxy,a=t??"",i=r.inject(he,null),s=Vt(l,i,a,o);l[he]=s,r.provide(he,s),l.broadcast=(g,m,...v)=>Reflect.apply(s.emit,s,[g,m,...v]);const u=r.inject(je,null);e.fieldName=e.fieldName??a;const d=It(l,u,e);l[je]=d,r.provide(je,d),Pr(l,d,a),l.validate=(g=null)=>{const m=[];let v=!1,w=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)w=!0,v=!0;else if(g&&typeof g=="object"){const T=g;T.ignoreHidden===!0&&kt(l.$el)?w=!1:(Array.isArray(T.include)&&T.include.indexOf(a)!==-1||Array.isArray(T.exclude)&&T.exclude.indexOf(a),w=!0),v=T.deep??!1}else typeof g=="boolean"&&(v=g),w=!0;if(w){const T=d?.validate();m.push(T)}if(v){let T=null;const O={deep:!1};if(g===!0)T={name:"*"};else if(Array.isArray(g)&&g.length>0){const q=g;T={name:V=>V?q.indexOf(V)!==-1:!1}}else if(g!=null&&typeof g=="object"){const q=g;if(O.ignoreHidden=q.ignoreHidden,Array.isArray(q.include)&&q.include.length>0){const V=q.include;T={name:F=>F?V.indexOf(F)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const V=q.exclude;T={name:F=>F?V.indexOf(F)===-1:!1}}else T={name:"*"}}if(T){const q=s.emitToChildren(T,"validate",O);Reflect.apply([].push,m,q)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(T=>{let O=[];return T.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(O=[...O,...q.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>d?.setRule(g),l.setNameValidateRules=(g,m=!1)=>{const v=g[a];if(v&&d?.setRule(v),m){const w={name:T=>Reflect.ownKeys(g).includes(T)};s.emitToChildren(w,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&d?.clear();let m=null;if(g===!0)m={name:"*"};else if(Array.isArray(g)&&g.length>0){const v=g;m={name:w=>w?v.indexOf(w)!==-1:!1}}else if(g!=null&&typeof g=="object"){const v=g;if(Array.isArray(v.include)&&v.include.length>0){const w=v.include;m={name:T=>T?w.indexOf(T)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;m={name:T=>T?w.indexOf(T)===-1:!1}}else m={name:"*"}}m&&s.emitToChildren(m,"clearValidate",!1)};const c=new Dl(l);l[Lr]=c;const f=mt((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ar()).forEach(g=>{c.on(g,m=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:qr()).forEach(g=>{c.on(g,m=>{f("reset")})}),r.onUnmounted(()=>{s.destroy(),l[he]=void 0,d.destroy(),l[je]=void 0,c.destroy(),l[Lr]=void 0}),{broadcast:s,validateSchema:d,emitEvent:(g,...m)=>{Reflect.apply(c.emit,c,[g,...m])},onEvent:(g,m)=>{Reflect.apply(c.on,c,[m])},offEvent:(g,m)=>{Reflect.apply(c.off,c,[m])}}}function zr(e,t,o,n,l){const a={},i=t??"",s={getValue(){const c=e.getForSelf("modelValue");return c?c[i]:null},isExist(){const c=e.getForSelf("modelValue");return c?Reflect.has(c,i):!1}};o.fieldName=i,o.validateHandler={getValue(c){return s.getValue()}};const u=It({},l,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const f=[];let p=!1,N=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)N=!0,p=!0;else if(c&&typeof c=="object"){const g=c;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),N=!0,p=g.deep??!1}else typeof c=="boolean"&&(p=c),N=!0;if(N){const g=u?.validate();f.push(g)}if(p){let g=null;const m={deep:!1};if(c===!0)g={name:"*"};else if(Array.isArray(c)&&c.length>0){const v=c;g={name:w=>w?v.indexOf(w)!==-1:!1}}else if(c!=null&&typeof c=="object"){const v=c;if(Array.isArray(v.include)&&v.include.length>0){const w=v.include;g={name:T=>T?w.indexOf(T)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const w=v.exclude;g={name:T=>T?w.indexOf(T)===-1:!1}}else g={name:"*"}}if(g){const v=d.emitToChildren(g,"validate",m);Reflect.apply([].push,f,v)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let m=[];return g.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(m=[...m,...v.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const f=c[i];f&&u?.setRule(f)};const d=Vt(null,n,i,a);return{broadcast:d,validateSchema:u}}const Se=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${ce(e,t)}px`:"";function ce(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 l=Number(e.substring(0,o)),a=1;if(tt){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(a=Number(i.substring(0,s)))}return l*=a,l}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Ye="PageStateKey";function Ae(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=ce(e.top)),e.left!==null&&e.left!==void 0&&(t.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=ce(e.right))),t}function pn(e,t,o={},n=!0,l=-1,a=-1,i=0,s=0){if(e.headerHeight=ce(o.headerHeight??t.headerHeight??-1),e.headerPadding=Ae(o.headerPadding??t.headerPadding),e.footerHeight=ce(o.footerHeight??t.footerHeight??-1),e.footerPadding=Ae(o.footerPadding??t.footerPadding),e.contentPadding=Ae(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=ce(u,a):e.height=ce(a)-ce(i,a)-ce(s,a),e.width=ce(o.width??t.width??0,l)}}function Hr(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},l=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});l&&(n.safeAreaTop=ce(l.top),n.safeAreaBottom=ce(l.bottom),n.safeAreaLeft=ce(l.left),n.safeAreaRight=ce(l.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;pn(n,a,t,!0,i,s,u,d);const c=r.reactive(n),f=e.getForParent(Ye);f&&(n.height=Ft(e,f),n.width=At(e,f),r.watch([()=>Ft(e,f),()=>At(e,f)],([N,g])=>{c.height=N,c.width=g}));const p=!f;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([N,g,m=-1,v=-1,w=0,T=0])=>{pn(c,g,t,p,m,v,w,T)}),e.set(Ye,c),c}function Dt(e){return e.get(Ye)}function pt(e,t){if(t=t??e.get(Ye),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function yt(e,t){if(t=t??e.get(Ye),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function Ft(e,t){if(t=t??e.get(Ye),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pt(e,t),n=yt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function At(e,t){return t=t??e.get(Ye),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function ql(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function _l(e){return!!e.getForParent(Ye)}var ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(ke||{});function yn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Te(e,t,o=1,n){const l=Pe();return l==null?e:o===0?r.computed(()=>{const a=l.getAll(t);for(let s=a.length-1;s>=0;s--){const u=a[s];if(yn(u,n))return u}const i=e.value;return yn(i,n)?i:null}):r.computed(()=>{const a=e.value;return yn(a,n)?a:l?.get(t)})}function $e(e){return Te(e,"readonly",0,function(o){return re(o)})}function Ce(e){return Te(e,"disabled",0,function(o){return re(o)})}function se(e,t="modelValue",o){const n=r.toRef(e,t);let l=n.value;typeof o=="function"&&(l=o(n.value));const a=r.ref(l);return r.watch(n,i=>{if(typeof o=="function"){const s=o(i);s!==a.value&&(a.value=s)}else i!==a.value&&(a.value=i)}),a}const Kr=new Map,Bt=new Map;let bn=null;function Ll(e){bn=e}function Wr(e,t,o){if(o){let n=Bt.get(o);n||(n=new Map,Bt.set(o,n)),n.set(e,t)}else Kr.set(e,t)}function Be(e,t,o){!o&&bn&&(o=bn(e)??void 0);let n=null;if(o){let l=Bt.get(o);l&&(n=l.get(t))}return n||(n=Kr.get(t)),n}function Ml(e,t){for(let o in e){const n=e[o];Wr(o,n,t)}}function jl(e){Bt.delete(e)}function Pl(){return{top:0,left:0,bottom:0,right:0}}function zl(e=0,t=0){if(tt){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:o,height:n-ce(e,n)-ce(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}class Hl{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{a.install?t.use(a):a.name&&t.component(a.name,a)}),this.installers.forEach(a=>{a(t)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=rt();if(this.initPageLayout(o,l),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=Mr(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=d,this.initPageLayout(s,l)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&l.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,l=t.footerBarHeight??0,a=Ze({},Pl(),t.safeAreaInset),i=zl(n,l),s=Ze({},i.pageLayout,t.pageLayout);o=o??rt(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",l),o.set("pageLayout",s),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ll(t)}setAPI(t,o,n){Wr(t,o,n)}getAPI(t,o,n){return Be(t,o,n)}batchSetAPI(t,o){Ml(t,o)}clearScopeAPI(t){jl(t)}getRootDomain(){return rt()}}const Kl=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload],Wl=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Yl=e=>{Kl.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Wl.forEach(t=>{e.use(t)})};function oe(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},r.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,r.defineComponent(o)}}}const ge={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},xe={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}},Yr={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}},Gr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ur=[];for(const e in Gr)Ur.push(e);function ye(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Gl=Symbol.for("InnerPageScopeKey"),Ul=(e,t)=>({inheritAttrs:!0,props:{...ge,...Yr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(o,n){const l=mn(o.name,o);if(l){const d=Hr(l,o);ye({getPageContentHeight:()=>Ft(l,d),getPageContentWidth:()=>At(l,d),getPageHeaderHeight:()=>pt(l,d),getPageFooterHeight:()=>yt(l,d)});const c=r.inject(Gl,!1);d&&c&&(d.contentHeight="100%")}const a=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(d,c=!1)=>{const f=s?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(d,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([d,c],[f,p])=>{if(d&&f){const N=r.toRaw(f),g=r.toRaw(d),m=g?Reflect.ownKeys(g):[];(N?Reflect.ownKeys(N):[]).forEach(w=>{m.includes(w)||(g[w]=[])}),u(g)}if(c&&p){const N=r.toRaw(p),g=r.toRaw(c),m=g?Reflect.ownKeys(g):[];(N?Reflect.ownKeys(N):[]).forEach(w=>{m.includes(w)||(g[w]=[])}),u(g,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const d=r.toRaw(o.rules);u(d)}if(o.pureDataRules){const d=r.toRaw(o.pureDataRules);u(d,!0)}}),r.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:Xl,create:Zl,scope:of}=oe("page"),Jl=Zl(Ul(Xl));function Ql(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),title:""},[r.renderSlot(e.$slots,"default")],6)}const Ie=(e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o},vn=Ie(Jl,[["render",Ql]]);function wn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Sn(e){const t=r.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),l=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-l,height:t.clientHeight-a-i}}const ea=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,a){const i=Pe(),s=i?Dt(i):null;s&&(s.headerMounted=!0);const u=e,d=r.computed(()=>({[u]:!0,[`${u}--border`]:l.border,[`${u}--fixed`]:l.fixed,[`${u}--safe-area-inset-top`]:l.safeAreaInsetTop})),c=r.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${l.align}`]:!0})),f=l.height!==null&&l.height!==void 0?ce(l.height):null,p=r.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const k=Ae(l.padding??s.headerPadding);return Object.assign(C,k),f&&(s.headerHeight=f),s.headerHeight>0&&(C.height=s.headerHeight),C.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(k.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(f&&(C.height=f),l.padding){const k=Ae(l.padding);Object.assign(C,k)}return C}),N=r.ref(null),g=()=>{if(s&&N.value&&!kt(N.value)){if(!n){const C=wn(N.value);s.headerAllHeight=C.height}return s.headerMounted=!0,!0}return!1};let m=null;r.onMounted(()=>{s&&(hn(g,50,5,50,!0),window.ResizeObserver&&N.value&&(m=new window.ResizeObserver(()=>{g()}),m.observe(N.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,m&&(m.disconnect(),m=null))});const v=r.computed(()=>{const C={};return p.value.height!==null&&p.value.height!==void 0&&(C.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(C.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(C.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(C.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(C.paddingBottom=`${p.value.bottom}px`),C}),w=r.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function T(){a.emit("back")}function O(){a.emit("click-title")}function q(){a.emit("click-right")}function V(){a.emit("click-right-text")}const F=()=>{if(!l.leftShow)return null;const C=[];if(a.slots.left)C.push(a.slots.left());else{if(a.slots.leftIcon){const k=r.h("view",{class:"left-icon",onClick:T},[a.slots.leftIcon()]);C.push(k)}else if(l.leftIcon){const k=r.h("view",{class:"left-icon",onClick:T},[r.h(l.leftIcon)]);C.push(k)}if(l.leftText){const k=r.h("view",{class:"left-text",onClick:T},[l.leftText]);C.push(k)}}return C.length===0?null:r.h("view",{class:"fox-header-bar__left"},C)},R=()=>{if(!l.rightShow)return null;const C=[];if(a.slots.right)C.push(a.slots.right());else{if(l.rightText){const k=r.h("view",{class:"right-text",onClick:V},[l.rightText]);C.push(k)}if(a.slots.rightIcon){const k=r.h("view",{class:"right-icon",onClick:q},[a.slots.rightIcon()]);C.push(k)}else if(l.rightIcon){const k=r.h("view",{class:"right-icon",onClick:q},[r.h(l.rightIcon)]);C.push(k)}}return C.length===0?null:r.h("view",{class:"fox-header-bar__right"},C)},M=()=>{if(!l.titleShow)return null;const C=[],k=a.slots.default?a.slots.default():null;if(k)C.push(k);else{if(l.title){const B=r.h("view",{class:"title-text"},[l.title]);C.push(B)}if(a.slots.titleIcon){const B=r.h("view",{class:"title-icon",onClick:O},[a.slots.titleIcon()]);C.push(B)}else if(l.titleIcon){const B=r.h("view",{class:"title-icon",onClick:O},[r.h(l.titleIcon)]);C.push(B)}}return C.length===0?null:r.h("view",{class:"fox-header-bar__title"},C)},D=()=>{const C=[],k=a.slots.bottom?a.slots.bottom():null;return k&&C.push(k),C.length===0?null:r.h("view",{class:"fox-header-bar__bottom"},C)};return()=>{if(!w.value)return null;const C=[];if(a.slots.all)C.push(a.slots.all());else{const B=[],$=F();$&&B.push($);const b=M();b&&B.push(b);const S=R();if(S&&B.push(S),B.length>0){const I=r.h("view",{class:c.value},B);C.push(I)}const P=D();P&&C.push(P)}if(C.length===0)return null;const k={class:d.value,style:v.value,ref:N};return r.h("view",k,C)}}}),{componentName:ta,create:na,scope:ra}=oe("header-bar"),xn=na(ea(ta,ra,Ne.ArrowLeft));function oa(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,l){const a=Pe(),i=a?Dt(a):null,s=r.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?ce(n.height):null,d=r.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const m=Ae(n.padding??i.footerPadding);return Object.assign(g,m),u&&(i.footerHeight=u),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(m.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(u&&(g.height=u),n.padding){const m=Ae(n.padding);Object.assign(g,m)}return g}),c=r.ref(null),f=()=>{if(i&&c.value&&!kt(c.value)){if(!o){const g=wn(c.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let p=null;r.onMounted(()=>{i&&(hn(f,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{f()}),p.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const N=r.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=Se(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=Se(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=Se(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=Se(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=Se(d.value.bottom)),g});return()=>{const g=l.slots.default?l.slots.default():[],m={ref:c,class:s.value,style:N.value};return r.h("view",m,g)}}}}const{componentName:la,create:aa,scope:lf}=oe("footer-bar"),Tn=aa(oa(la));function ia(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Pe(),l=r.computed(()=>({[e]:!0})),a=n?Dt(n):null,i=r.computed(()=>{const d={};if(n&&a){if(o.padding){const N=Ae(o.padding);Object.assign(a.contentPadding,N)}const c=pt(n,a),f=yt(n,a);let p="";if(a.contentHeight?p=`${a.contentHeight}`:p=`${a.height}px`,a.contentPadding,d.height=p,a.contentPadding.top||c>0){const N=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${c+N}px`}if(a.contentPadding.bottom||f>0){const N=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${f+N}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const c=Ae(o.padding);c.left&&(d.paddingLeft=`${c.left}px`),c.top&&(d.paddingTop=`${c.top}px`),c.right&&(d.paddingRight=`${c.right}px`),c.bottom&&(d.paddingBottom=`${c.bottom}px`)}return d}),s=r.ref(null),u=()=>{if(a&&s.value){const d=Sn(s.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return r.onMounted(()=>{u()}),n&&a&&r.watch([()=>pt(n),()=>yt(n)],([])=>{u()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:sa,create:ua,scope:af}=oe("content"),ca=ua(ia(sa));function fa(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{ref:"contentRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const $n=Ie(ca,[["render",fa]]),ot="GroupStateKey",Xr=Symbol.for("GroupScopeKey");function qt(){return r.inject(Xr,!1)}function _t(e=!0){r.provide(Xr,e)}function da(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const l=t[n];fn(l)||(e[n]=l)})}function ha(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};da(n,t);const l=r.shallowRef(n),a=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ot,a),a}function Cn(e,t,o=-1,n=-1,l=!1,a,i,s){const u=e.get(ot);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),i||(i=d.maxItemWidth??-1);const c=ce(a),f=ce(i);s||(s=d.type??"grid");const p=()=>{const N=t===""||t===-1,g=ce(t);let m=ve(o);const v=ce(n);if(!N){let O=(g-(m-1)*v)/m;for(;f!==-1&&O>f;)m++,O=(g-(m-1)*v)/m;for(;c!==-1&&m>1&&O<c;)m--,O=(g-(m-1)*v)/m}let w=!1;const T=u.layout;T.value.width=t,T.value.column!==m&&(T.value.column=m,w=!0),T.value.gutter!==v&&(T.value.gutter=v,w=!0),T.value.type!==s&&(T.value.type=s,w=!0),w&&r.triggerRef(T)};if(l)p();else{const N=++u.passport;setTimeout(()=>{N===u.passport&&p()},50)}}function Lt(e,t=!1){let o;return t?o=e.getForParent(ot):o=e.get(ot),o.layout}function Mt(e,t=!1){let o;return t?o=e.getForParent(ot):o=e.get(ot),o.order}function Zr(e,t=1){if(t==="stretch")return-1;const o=ve(t);return o===-1?100:100*o/e}function jt(e,t,o=1,n=0,l){const a={};let i=0;l?i=ce(l):i=Zr(t.column,o),i>0&&(a.width=`${i}%`);const s=Zr(t.column,n);s>0&&(a["margin-left"]=`${s}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function Pt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let l=ve(o);if(l===-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(l>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=ve(n)%t.column;let i=(e.index+a)%t.column,s=i+l;return s>t.column?(i=0,s=i+l,e.index=e.index+(t.column-i)+l):e.index=e.index+a+l,a>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Jr=Symbol("RollingStateKey");function ga(e){r.provide(Jr,e)}function ma(){return r.inject(Jr,null)}function En(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-l-a}else t=e.offsetHeight;return t}function pa(e){let t=En(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=En(o),document.body.removeChild(o)}return t}function ya(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const ba={...ge,...Yr,...Gr};function va(e,t,o){return{props:ba,emits:["update:collapse"],setup(n,l){const a=mn(n.name,n,Ur),i=ha(a,{type:n.type}),s=qt();_t(!0);const u=n.rollingDisplay?ma():null,d=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),f=r.computed(()=>s&&a?Lt(a,!0).value:null),p=r.getCurrentInstance(),N=(z,Y=!1)=>{const x=p?.proxy;x&&typeof x.setNameValidateRules=="function"&&x.setNameValidateRules(z,!0,Y)};r.watch([()=>n.rules,()=>n.pureDataRules],([z,Y],[x,_])=>{if(z&&x){const H=r.toRaw(x),G=r.toRaw(z),te=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ue=>{te.includes(ue)||(G[ue]=[])}),N(G)}if(Y&&_){const H=r.toRaw(_),G=r.toRaw(Y),te=G?Reflect.ownKeys(G):[];(H?Reflect.ownKeys(H):[]).forEach(ue=>{te.includes(ue)||(G[ue]=[])}),N(G,!0)}},{deep:!0});const g=e,m=r.computed(()=>{const z={};z.height=P.value;const Y=s?Mt(a,!0):null;if(f.value&&Y){if(f.value.type==="grid"){const x=Pt(Y,f.value,n.span,n.offset);Object.assign(z,x)}else if(f.value.type==="flow"){const x=jt(Y,f.value,n.span,n.offset,n.width);Object.assign(z,x)}}else if(n.width){const x=Se(n.width);z.width=x}return z}),v=r.computed(()=>{const z=i.layout.value.type;return z==="grid"||z==="flow"?{[`${g}--${z}`]:!0,[`${g}--${z}-justify-${n.justify}`]:!0,[`${g}--${z}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${z}`]:!0,[`${g}--gutter`]:!0}}),w=r.computed(()=>{if(i.layout.value.type==="grid"){let Y="";if(n.columnWidth)Y=`repeat(auto-fill, ${n.columnWidth})`;else{const x=ya(D.value,i.layout.value.column,i.layout.value.gutter);Y=`repeat(${i.layout.value.column}, ${x})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":Y}}}),T=r.toRef(n,"title"),O=r.toRef(n,"gutter"),q=r.toRef(n,"column"),V=r.computed(()=>s||c.value?!0:re(n.isWrap)),F=[],R=z=>{F.push(z)},M=()=>{let z=F.length;F.splice(0,z)},D=r.ref(-1),C=z=>{const Y=Sn(z).width;Y>0&&Y!==D.value&&(D.value=Y)};Cn(a,D.value,q.value,O.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([D,q,O],([z,Y,x])=>{i.order.index=0,Cn(a,z,Y,x,!1,n.minItemWidth,n.maxItemWidth,n.type)});const k=r.computed(()=>I.value?n.expandText??"":n.collapseText??""),B=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),$=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!I.value,"is-collapse":I.value})),b=r.ref(),S=r.ref(),P=r.computed(()=>K.value||Se(n.height)||""),I=r.ref(!1),K=r.ref(""),E=r.ref(!1);let A=-1;const j=(z,Y=!0)=>{const x=b.value;if(x&&I.value!==z){if(A=A===-1?pa(x):A,E.value=!0,Y)if(x.style["will-change"]="height",x.ontransitionend=function(){x.ontransitionend=null,this.style["will-change"]="auto",z||(K.value="",E.value=!1)},z){let _=0;n.collapseHeight?_=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(_=S.value.offsetHeight),K.value=`${A}px`,r.nextTick(()=>{K.value=`${_}px`})}else K.value=`${A}px`;else if(z){let _=0;n.collapseHeight?_=n.collapseHeight:S.value&&S.value.classList.contains(`${e}__header`)&&(_=S.value.offsetHeight),K.value=`${_}px`}else E.value=!1,K.value=`${A}px`;I.value=z,l.emit("update:collapse",z)}};r.watch(()=>n.collapse,z=>{j(z)});const U=()=>{Q()},Q=z=>{z=z??!I.value,j(z)};ye({toggleCollapse:Q,doLayout:()=>{F[0]&&(C(F[0]),Cn(a,D.value,q.value,O.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let J=null,ee=!0;const ae=z=>{if(n.rules){const Y=r.toRaw(n.rules);N(Y)}if(n.pureDataRules){const Y=r.toRaw(n.pureDataRules);N(Y,!0)}if(tt&&(z&&j(re(n.collapse),!1),n.autoLayout&&Array.isArray(F)&&F.length>0)){const Y=F[0];C(Y),window.ResizeObserver&&(J=new window.ResizeObserver(()=>{C(Y)}),J.observe(Y))}},Z=()=>{J?.disconnect(),J=null},L=!c.value||u?.acquire();L&&(d.value=c.value?!0:null),r.onMounted(()=>{if(L&&(ae(ee),ee=!1),c.value&&u){let z=null,Y=u.initialHeight;u.observe(b.value,x=>{if(x!==d.value)if(x)d.value=!0,I.value||(K.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(ae(ee),ee=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!I.value)if(ee)K.value=u.initialHeight;else{let _=En(b.value);_<=0?K.value=Y:(K.value=`${_}px`,Y=K.value)}ee||Z()}})}}),r.onUnmounted(()=>{J?.disconnect(),u&&u.unobserve(b.value)});const W=(z="right")=>{const Y=[];if(k.value){const H={class:B.value},G=r.h("span",H,[k.value]);Y.push(G)}const x={class:$.value},_=o(n.collapseIcon,x);return _&&Y.push(_),Y.length>0?r.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:U},Y):null},X=(z,Y,x,_)=>{const H={...v.value};return Y===0&&(H[`${g}__first`]=!0),x>=_-1&&(H[`${g}__last`]=!0),r.h("div",{ref:R,key:`${Y}`,class:H,style:w.value},z)};return()=>{if(c.value&&d.value!==!0){const H=n.tag||"div";return r.h(H,{ref:b,prop:n.name,class:{[`${g}`]:!0,"is-collapse":E.value},style:m.value},[])}i.order.index=0;const z=[];let Y=0;if(l.slots.header){const H={key:`${Y++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},G=r.h("div",H,[l.slots.header()]);z.push(G)}else{const H=[],G=n.collapsePosition==="left";if(G&&n.showCollapse){const te=W("left");te&&H.push(te)}if(T.value){if(n.showMark){const ie={class:{[`${g}__header-mark`]:!0}};n.markColor&&(ie.style={background:n.markColor});const ue=r.h("div",ie);H.push(ue)}const te=r.h("div",{class:{[`${g}__header-title`]:!0}},[T.value]);H.push(te)}if(l.slots.toolbar&&H.push(l.slots.toolbar()),!G&&n.showCollapse){const te=W("right");te&&H.push(te)}if(H.length>0){const te={key:`${Y++}`,ref:S,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},ie=r.h("div",te,H);z.push(ie)}}M();const x=l.slots.default?l.slots.default():[],_=i.layout.value.type;if(_==="grid"){const H=X(x,Y++,0,x.length);z.push(H)}else if(_==="flow"){const H=X(x,Y++,0,x.length);z.push(H)}else for(let H=0;H<x.length;H++){const G=x[H],te=X([G],Y++,H,x.length);z.push(te)}if(V.value){const H=n.tag||"div";return r.h(H,{ref:b,prop:n.name,class:{[`${g}`]:!0,"is-collapse":E.value},style:m.value},[z])}else return z}}}}const{componentName:wa,create:Sa,scope:xa}=oe("group"),Nn=Sa(va(wa,xa,(e,t)=>(e=e??Ne.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function Ta(e){return e===window}const $a=/matrix\((.+)\)/,Qr=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Ta(t))return{x:0,y:0};let o=0,n=0,l=t;for(;l!==null;)o+=l.offsetLeft,n+=l.offsetTop,l=l.offsetParent;let a=0,i=0,s=0,u=0;for(l=t;l!==document;){i+=l.scrollTop,a+=l.scrollLeft;const{transform:d}=window.getComputedStyle(l);if(d){const c=$a.exec(d);if(c){let p=c[1].split(/\s*,\s*/);p.length==6&&(s+=Number(p[4]),u+=Number(p[5]))}}l=l.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};class Ca{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 Ea{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a||(a=new Ca,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const l=document.body.parentNode;for(;n&&n!==l;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const eo=new Ea,to={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Na,create:ka}=oe("price"),Va=ka({props:{...to},setup(e){const t=r.computed(()=>({[Na]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>dt(e.price)==0?"":Ct(e.price,e.decimalLength,!0,ve(e.digits),e.separator)),l=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),a=r.computed(()=>{let i=n.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:t,showSymbol:o,intText:l,decimalText:a}}}),Oa=["innerHTML"],Ia=["innerHTML"];function Ra(e,t,o,n,l,a){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,Oa)):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,Ia)):r.createCommentVNode("",!0)],2)}const zt=Ie(Va,[["render",Ra]]),{componentName:kn,create:Da}=oe("hint-text"),Fa=Da({components:{Price:zt},props:{...to,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=r.ref({top:null,right:null,bottom:null,left:null}),n=r.ref({x:0,y:0}),l=r.ref(0),a=r.ref(0),i=r.ref(e.placement),s=r.ref(!1),u=r.ref(null),d=(k,B,$,b,S,P)=>{const I=document.documentElement.clientWidth||document.body.clientWidth,K=document.documentElement.clientHeight||document.body.clientHeight,E=k.split("-");let A=[];E[0]==="top"?A=["top","bottom","right","left"]:E[0]==="bottom"?A=["bottom","top","right","left"]:E[0]==="left"?A=["left","top","bottom","right"]:E[0]==="right"&&(A=["right","top","bottom","left"]);const j={top:null,right:null,bottom:null,left:null},U=[];for(let Q=0;Q<A.length;Q++){const ne=A[Q];if(U[0]=ne,E[1]&&(U[1]=E[1]),ne==="top"){const J=B.y-P-e.arrowSize-e.offset;if(J>=0){j.top=J;let ee=0;E[1]==="start"?ee=B.x:E[1]==="end"?ee=B.x+$-S:ee=B.x+$/2-S/2;const ae=I-ee-S;ae<0?(ee+=ae,f.value=-ae):f.value=0,j.left=ee<0?0:ee;break}}else if(ne==="bottom"){const J=B.y+b+e.arrowSize+e.offset;if(J+P<=K){j.top=J;let ee=0;E[1]==="start"?ee=B.x:E[1]==="end"?ee=B.x+$-S:ee=B.x+$/2-S/2;const ae=I-ee-S;ae<0?(ee+=ae,f.value=-ae):f.value=0,j.left=ee<0?0:ee;break}}else if(ne==="left"){const J=B.x-S-e.arrowSize-e.offset;if(J>=0){j.left=J;let ee=0;E[1]==="start"?ee=B.y:E[1]==="end"?ee=B.y+b-P:ee=B.y+b/2-P/2,j.top=ee<0?0:ee;break}}else if(ne==="right"){const J=B.x+$+e.arrowSize+e.offset;if(J+S<=I){j.left=J;let ee=0;E[1]==="start"?ee=B.y:E[1]==="end"?ee=B.y+b-P:ee=B.y+b/2-P/2,j.top=ee<0?0:ee;break}}}return{bestPlacement:U.join("-"),bestInsetRect:j}},c=(k,B,$=10)=>{if(!tt||B===!1||!k)return;n.value=Qr(e.reference),l.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const b=u.value.offsetHeight,S=u.value.offsetWidth,{bestPlacement:P,bestInsetRect:I}=d(e.placement,n.value,l.value,a.value,S,b);i.value=P,o.value=I,s.value=!0},f=r.ref(0),p=mt(()=>{c(e.message,e.visible)},10),N=r.ref(e.visible);r.watch(()=>e.visible,k=>{N.value=k});const g=r.computed(()=>N.value&&m.value),m=r.ref(!0),v=mt(k=>{const B=k[0];B&&(m.value=B.isIntersecting)},10),w=new IntersectionObserver(v);r.watch([()=>e.message,()=>e.visible],([k,B])=>{setTimeout(()=>{c(e.message,e.visible)},0)}),r.onMounted(()=>{setTimeout(()=>{c(e.message,e.visible)},0),eo.watch(e.reference,p),w.observe(e.reference)}),r.onBeforeMount(()=>{eo.unwatch(e.reference,p),w.unobserve(e.reference),w.disconnect()});const T=r.computed(()=>{const k={[kn]:!0};return i.value.startsWith("top")?k["is-top"]=!0:i.value.startsWith("right")?k["is-right"]=!0:i.value.startsWith("bottom")?k["is-bottom"]=!0:i.value.startsWith("right")&&(k["is-right"]=!0),e.size==="small"?k["is-small"]=!0:e.size==="large"&&(k["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(k[`${e.customClass}`]=!0),k}),O=r.computed(()=>{const k={};o.value.top!==null&&(k.top=`${o.value.top}px`),o.value.right!==null&&(k.right=`${o.value.right}px`),o.value.bottom!==null&&(k.bottom=`${o.value.bottom}px`),o.value.left!==null&&(k.left=`${o.value.left}px`),e.autoFit&&(k["min-width"]=`${l.value}px`);const B=document.documentElement.clientWidth||document.body.clientWidth;return k["max-width"]=`${B}px`,s.value&&(k.opacity="1"),e.transition||(k.transition="none"),e.zIndex&&(k["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(k,e.customStyle),k}),q=r.computed(()=>{const k=[`${kn}__content`];return e.customTextClass&&k.push(e.customTextClass),k}),V=r.computed(()=>{const k={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(k,e.customTextStyle),k}),F=r.computed(()=>({[`${kn}__arrow`]:!0})),R=r.computed(()=>{const k={};return e.showArrow?(k.width=`${e.arrowSize}px`,k.height=`${e.arrowSize}px`,i.value==="top"?(k.left="50%",k.bottom=`-${e.arrowSize}px`,k.transform=" translate(-50%, 0%)"):i.value==="top-start"?(k.left=`${e.arrowOffset+f.value}px`,k.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(k.right=`${e.arrowOffset-f.value}px`,k.bottom=`-${e.arrowSize}px`):i.value==="right"?(k.left=`-${e.arrowSize}px`,k.top="50%",k.transform=" translate(0%, -50%)"):i.value==="right-start"?(k.left=`-${e.arrowSize}px`,k.top=`${e.arrowOffset}px`):i.value==="right-end"?(k.left=`-${e.arrowSize}px`,k.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(k.left="50%",k.top=`-${e.arrowSize}px`,k.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(k.left=`${e.arrowOffset+f.value}px`,k.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(k.right=`${e.arrowOffset-f.value}px`,k.top=`-${e.arrowSize}px`):i.value==="left"?(k.right=`-${e.arrowSize}px`,k.top="50%",k.transform=" translate(0%, -50%)"):i.value==="left-start"?(k.right=`-${e.arrowSize}px`,k.top=`${e.arrowOffset}px`):i.value==="left-end"&&(k.right=`-${e.arrowSize}px`,k.bottom=`-${e.arrowOffset}px`),k):{display:"none"}}),M=r.computed(()=>g.value&&e.closeOnClick),D=r.computed(()=>{const k={};return e.zIndex&&(k["z-index"]=`${e.zIndex}`),k});return{show:g,tipRef:u,classes:T,styles:O,textClasses:q,textStyles:V,arrowClasses:F,arrowStyles:R,overlayShow:M,overlayStyle:D,onClickOverlay:()=>{N.value=!1,t.emit("update:visible",!1)}}}});function Aa(e,t,o,n,l,a){const i=r.resolveComponent("Price");return r.openBlock(),r.createElementBlock(r.Fragment,null,[e.overlayShow?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:r.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},null,4)):r.createCommentVNode("",!0),r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createTextVNode(r.toDisplayString(e.message),1)],64))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])],64)}const bt=Ie(Fa,[["render",Aa]]);class no{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 Vn={},Ba=new no,lt=new Map,Ht=e=>{if(e){const t=document.getElementById(e);lt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of lt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}lt.clear()}},qa=e=>{e.unmount=Ht;const t=document.getElementById(e.id);if(t){const o=lt.get(e.id);o?e={...Vn,...o,...e}:e={...Vn,...e},e.transition=!1;const n=r.createVNode(bt,e);return r.render(n,t),e.id}},_a=e=>{e.unmount=Ht;let t=e.id??`hinttext_${Ba.get()}`;e={...Vn,...e},e.id=t,lt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(bt,e);return r.render(n,o),document.body.appendChild(o),t},La=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Kt={show(e,t,o={},n=!0){La(t);const l=o.id;return l&<.has(l)?qa({...o,message:t,reference:e}):(n&&Ht(),_a({...o,message:t,reference:e}))},hide(e){Ht(e)},install(e){e.config.globalProperties.$hintText=Kt}},{componentName:ro,create:Ma}=oe("item"),ja=Ma({inheritAttrs:!0,props:{...ge,...xe},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;pe({componentName:ro,validate:!1},o);const n=Pe(),l=qt();_t(!1);const a=r.computed(()=>l&&n?Lt(n,!1).value:null),i=ro,s=r.ref(null),u=r.computed(()=>{const L={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(L[e.errorMarkClass]=!!B.value,L[e.warnMarkClass]=!!C.value,L[e.infoMarkClass]=!!M.value,typeof s.value=="function"){const W=s.value(o);L[W]=!0}else if(typeof s.value=="string"){const W=s.value;L[W]=!0}return L}),d=r.ref(null),c=r.computed(()=>{const L={},W=l&&n?Mt(n,!1):null;if(a.value&&W)if(a.value.type==="grid"){const X=Pt(W,a.value,e.span,e.offset);Object.assign(L,X)}else if(a.value.type==="flow"){const X=jt(W,a.value,e.span,e.offset,e.width);Object.assign(L,X)}else return e.width&&(L.width=Se(e.width)),L;else e.width&&(L.width=Se(e.width));if(typeof d.value=="function"){const X=d.value(o);X&&Object.assign(L,X)}else if(d.value&&typeof d.value=="object"){const X=d.value;Object.assign(L,X)}return L}),f=r.ref(null),p=r.computed({get:()=>f.value??re(e.isRequired),set:L=>{f.value=L}}),N=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),g=Te(r.toRef(e,"labelPosition"),"labelPosition",ke.Near),m=r.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),v=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${m.value}`]:!0})),w=r.computed(()=>({label:!0,[`label--${m.value}`]:!0})),T=Te(r.toRef(e,"labelWidth"),"labelWidth",ke.Near),O=r.computed(()=>T&&T.value?{width:Se(T.value)}:{}),q=r.computed(()=>({"label--string":!0,"label--required":p.value})),V=r.computed(()=>({content:!0,[e.contentClass]:!0})),F=r.computed(()=>({...e.contentStyle})),R=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ye({setRequired(L){p.value=L},setErrorTip(L){R.errorTip=L},setErrorIcon(L){R.errorIcon=L},setWarnTip(L){R.warnTip=L},setWarnIcon(L){R.warnIcon=L},setInfoTip(L){R.infoTip=L},setInfoIcon(L){R.infoIcon=L},setCustomClassName(L){s.value=L},setCustomStyle(L){d.value=L}});const M=r.computed(()=>e.infoTip||R.infoTip),D=r.computed(()=>e.infoIcon||R.infoIcon),C=r.computed(()=>e.warnTip||R.warnTip),k=r.computed(()=>e.warnIcon||R.warnIcon),B=r.computed(()=>e.errorTip||R.errorTip),$=r.computed(()=>e.errorIcon||R.errorIcon),b=r.computed(()=>B.value?"error":C.value?"warn":M.value?"info":""),S=r.computed(()=>b.value.length>0),P=r.computed(()=>b.value==="error"?B.value:b.value==="warn"?C.value:b.value==="info"?M.value:""),I=r.computed(()=>b.value==="error"?$.value:b.value==="warn"?k.value:b.value==="info"?D.value:null),K=r.computed(()=>{let L={[`${i}__tip`]:!0,[`${i}__tip--${b.value}`]:!0};return b.value==="error"&&e.errorClass?L[`${e.errorClass}`]=!0:b.value==="warn"&&e.warnClass?L[`${e.warnClass}`]=!0:b.value==="info"&&e.infoClass&&(L[`${e.infoClass}`]=!0),L}),E=r.computed(()=>{let L={};return g&&g.value==="top"||!N.value?L["padding-left"]="0px":T&&T.value&&(L["padding-left"]=Se(T.value)),L}),A=()=>{const L=I.value;return L?typeof L=="function"?r.h("div",{class:"fox-item__tip--icon"},[L()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(L)]):null},j=()=>{const L=P.value;return L?typeof L=="function"?r.h("div",{class:"fox-item__tip--text"},[L()]):r.h("div",{class:"fox-item__tip--text"},[L]):null},U=r.computed(()=>t.slots.fixedTip),Q=r.computed(()=>({[`${i}__fixed-tip`]:!0})),ne=r.ref();let J="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([L,W,X,z])=>{ne.value&&(L&&!de(W)?J?Kt.show(ne.value,W,{...z,id:J,type:X},!0):J=Kt.show(ne.value,W,{...z,type:X},!0):Kt.hide(J))});let ee=null;const ae=()=>{ee||!ne.value||(ee=new IntersectionObserver(L=>{let W=!1;for(let X of L)if(X.intersectionRatio>0){W=!0,W&&t.emit("appear",X);break}W||t.emit("disappear")}),ee.observe(ne.value))},Z=()=>{!ee||!ne.value||(ee.unobserve(ne.value),ee=null)};return r.watch(()=>re(e.appearListen),L=>{L?ae():Z()}),r.onMounted(()=>{re(e.appearListen)&&ae()}),r.onUnmounted(Z),{classes:u,styles:c,mainClasses:v,hasLabel:N,labelClasses:w,labelStyles:O,labelStringClasses:q,contentClasses:V,contentStyles:F,contentRef:ne,hasTip:S,mTip:P,mIcon:I,renderIcon:A,renderTip:j,tipClasses:K,tipStyles:E,hasFixedTip:U,fixedTipClasses:Q}}}),Pa=["prop"];function za(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),prop:e.prop},[r.createElementVNode("div",{class:r.normalizeClass(e.mainClasses)},[e.hasLabel?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.labelClasses),style:r.normalizeStyle(e.labelStyles)},[r.createElementVNode("div",{class:r.normalizeClass(e.labelStringClasses)},[r.renderSlot(e.$slots,"label",{},()=>[r.createTextVNode(r.toDisplayString(e.label),1)])],2)],6)):r.createCommentVNode("",!0),r.createElementVNode("div",{ref:"contentRef",class:r.normalizeClass(e.contentClasses),style:r.normalizeStyle(e.contentStyles)},[r.renderSlot(e.$slots,"prepend"),r.renderSlot(e.$slots,"default"),r.renderSlot(e.$slots,"append"),e.hasFixedTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.fixedTipClasses)},[r.renderSlot(e.$slots,"fixedTip")],2)):r.createCommentVNode("",!0)],6)],2),r.createVNode(r.Transition,{name:"fox-item__animate"},{default:r.withCtx(()=>[e.hasTip?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(e.tipClasses),style:r.normalizeStyle(e.tipStyles)},[e.mIcon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderIcon()),{key:0})):r.createCommentVNode("",!0),e.mTip?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.renderTip()),{key:1})):r.createCommentVNode("",!0)],6)):r.createCommentVNode("",!0)]),_:1}),r.renderSlot(e.$slots,"hide")],14,Pa)}const me=Ie(ja,[["render",za]]);function Ha(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 l=Pe(),a=qt();_t(!1);const i=r.computed(()=>a&&l?Lt(l,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),d=r.computed(()=>{const c={},f=a&&l?Mt(l,!1):null;if(i.value&&f)if(i.value.type==="grid"){const p=Pt(f,i.value,o.span,o.offset);Object.assign(c,p)}else if(i.value.type==="flow"){const p=jt(f,i.value,o.span,o.offset,o.width);Object.assign(c,p)}else return o.width&&(c.width=Se(o.width)),c;else o.width&&(c.width=Se(o.width));return c});return()=>{const c={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:Ka,create:Wa,scope:uf}=oe("slot-item"),On=Wa(Ha(Ka));function Ya(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 l=e,a=r.computed(()=>({[l]:!0,[`${l}__stretch`]:o.span==="stretch",[`${l}__${o.align}`]:!0})),i=Pe(),s=qt();_t(!1);const u=r.computed(()=>{const d={};if(s&&i){const c=Lt(i,!1),f=Mt(i,!1);if(c.value&&f)if(c.value.type==="grid"){const p=Pt(f,c.value,o.span,o.offset);Object.assign(d,p)}else if(c.value.type==="flow"){const p=jt(f,c.value,o.span,o.offset,o.width);Object.assign(d,p)}else o.width&&(d.width=Se(o.width))}else o.width&&(d.width=Se(o.width));return d});return()=>{const d=[];if(n.slots.default){const f=n.slots.default();if(o.divide)for(let p=0;p<f.length;p++){if(p>0){const N=r.h("div",{class:{[`${l}__divide`]:!0}});d.push(N)}d.push(f[p])}else Reflect.apply([].push,d,f)}const c={class:a.value,style:u.value};return r.h("div",c,d)}}}}const{componentName:Ga,create:Ua,scope:cf}=oe("row-item"),In=Ua(Ya(Ga)),qe=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},oo={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 Xa(e,t,o){return{props:{...ge,...xe,...oo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0,[`${p}__disabled`]:a.value,[`${p}__readonly`]:i.value})),g=$=>{f.value=$,s("update:modelValue",$),s("input",$)},m=$=>{s("change",$)};let v=se(n,"hintText"),w=r.ref(!1);const T=$=>{let S=$.target.value;c.value=!0,de(v.value)||(w.value=!0),s("focus",S,$)},O=$=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let S=$.target.value;n.maxLength&&S.length>Number(n.maxLength)&&(S=S.slice(0,Number(n.maxLength))),s("blur",S,$)},q=()=>{s("clear","")},V=r.ref(!1);let F=null;const R=()=>{n.showTooltip&&V.value===!1&&(F&&clearTimeout(F),F=setTimeout(()=>{V.value=!0},150))},M=()=>{F&&(clearTimeout(F),V.value=!1,F=null)},D=r.computed(()=>V.value||w.value),C=r.computed(()=>V.value?f.value:v.value),k=r.computed(()=>dt(n.unit)>0),B=r.ref();return ye({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const b={...qe(l.attrs),ref:B,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:q,onChange:m,onInput:g,onFocus:T,onBlur:O,onMouseover:R,onMouseleave:M},S={};l.slots.prepend&&(S.prepend=l.slots.prepend),l.slots.append&&(S.append=l.slots.append),l.slots.prefix&&(S.prefix=l.slots.prefix),l.slots.suffix?S.suffix=l.slots.suffix:k.value&&(S.suffix=()=>[n.unit]);const P=[],I=r.h(y.ElInput,b,S);P.push(I);const K={default:()=>P};l.slots.default&&(K.label=l.slots.default),l.slots.default&&(K.fixedTip=l.slots.fixedTip);const A={...we(n,oo),hintText:C.value,hintVisible:D.value,prop:`${n.prop}_item`};return r.h(o,A,K)}}}}const{componentName:Za,create:Ja,scope:Qa}=oe("input-item"),Rn=Ja(Xa(Za,Qa,me));function Ge(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function vt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function lo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ei(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ti=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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function ni(){const e=r.getCurrentInstance();return new ti(e.proxy)}function ao(e,t,o){const n=Ge(e,t),l=Ge(e,o);if(n!==l)return!1;const a=vt(e,t),i=vt(e,o);return a===i}function io(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){const s=lo(e,i);if(Array.isArray(s)&&s.length>0){const u=io(e,a,o,s)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(o==="text")u=Ge(e,i)===a;else if(o==="item")u=ao(e,i,a);else{let d=vt(e,i);d==null&&(d=Ge(e,i)),u=d===a}if(u){l.push(i);break}}}}),l}function ri(e){return{text:e,value:e}}const so={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function oi(e,t,o){return{props:{...ge,...xe,...so},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),p=r.computed(()=>f.value?f.value.map(X=>Ge(n,X)).join(" "):""),N=(W,X,z,Y=!0)=>{const x=io(n,W,X,z);if(x===null){if(f.value===null||f.value.length===0)return;c.value=null,f.value=[],Y&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let _=!0;if(x.length!==f.value.length)_=!1;else for(let H=0;H<x.length;H++){const G=x[H],te=f.value[H];if(!ao(n,G,te)){_=!1;break}}if(!_){f.value=x;let H=[],G=[],te=[];x.forEach(De=>{const xt=vt(n,De),Le=Ge(n,De);H.push(xt),te.push(Le),n.valueType==="text"?G.push(Le):n.valueType==="item"?G.push(De):G.push(xt)});let ie,ue,Ve;re(n.multiple)?(c.value=H,ie=r.toRaw(G),ue=te,Ve=r.toRaw(x)):(c.value=H[0]??"",ie=r.toRaw(G[0]??""),ue=te[0]??"",Ve=r.toRaw(x[0])),Y&&(s("update:modelValue",ie),s("change",ie,Ve)),s("update:text",ue)}},g=r.ref(null),m=r.ref(null),v=r.computed(()=>m.value??g.value??[]),w=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,W=>re(W)),T=ni(),O=async(W,X)=>{if(W){const z=await T.load("select",W,X);if(z.length>0)if(typeof z[0]=="string"){let _=z.map(H=>ri(H));g.value=_}else g.value=z;else g.value=null}};r.watch([()=>n.source,()=>n.params],([W,X])=>{m.value=null,O(W,X)},{immediate:!w.value});let q=!1;const V=()=>{q||(q=!0,O(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([W,X])=>{if(D()&&re(n.multiple)){Me(X,c.value)||(c.value=X);return}N(X,n.valueType,v.value,!1)});let F=null,R=r.ref(!1);typeof n.remoteMethod=="function"&&(F=async W=>{if(W==null){m.value=null;return}R.value=!0;try{const X=await n.remoteMethod(W);X&&(m.value=X)}catch(X){m.value=null,console.error(X)}R.value=!1});let M=null;typeof n.filterMethod=="function"&&(M=async W=>{if(W==null){m.value=null;return}R.value=!0;try{const X=await n.filterMethod(W,g.value);X&&(m.value=X)}catch(X){m.value=null,console.error(X)}R.value=!1});const D=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",C=r.ref(!1),k=e,B=r.computed(()=>({[k]:!0})),$=W=>{n.allowCreate||D()&&re(n.multiple)?(s("update:modelValue",W),s("change",W),s("update:text",W),c.value=W):N(W,"value",v.value,!0)};let b=se(n,"hintText"),S=r.ref(!1);const P=W=>{let z=W.target.value;C.value=!0,de(b.value)||(S.value=!0),s("focus",z,W)},I=W=>{setTimeout(()=>{S.value&&(S.value=!1),C.value=!1},0);let z=W.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),J.value||s("blur",z,W)},K=()=>{s("clear","")},E=r.ref(!1);let A=null;const j=()=>{n.showTooltip&&E.value===!1&&(A&&clearTimeout(A),A=setTimeout(()=>{E.value=!0},150))},U=()=>{A&&(clearTimeout(A),E.value=!1,A=null)},Q=r.computed(()=>E.value||S.value),ne=r.computed(()=>E.value?p.value:b.value),J=r.ref(!1),ee=W=>{J.value=W,s("visible-change",W),W||s("selected")},ae=W=>{s("remove-tag",W)},Z=(W,X)=>{const z=[];return W.forEach((Y,x)=>{const _=lo(n,Y);if(Array.isArray(_)&&_.length>0){const H=Z(_,X),G=Ge(n,Y),ie={key:`${G}_${x}`,label:G};z.push(r.h(y.ElOptionGroup,ie,{default:()=>H}))}else{const H=vt(n,Y),G=Ge(n,Y),te=ei(n,Y),ue={key:`${H}_${x}`,label:G,disabled:te,value:H};if(typeof X=="function")z.push(r.h(y.ElOption,ue,{default:()=>X(Y)}));else if(n.optionType==="item"){const Ve={class:{"fox-select-item__option-left":!0}},De=r.h("span",Ve,[H]),xt={class:{"fox-select-item__option-right":!0}},Le=r.h("span",xt,[G]),dr=r.h("div",{class:{"fox-select-item__option":!0}},[De,Le]);z.push(r.h(y.ElOption,ue,{default:()=>dr}))}else n.optionType==="value"?z.push(r.h(y.ElOption,ue,{default:()=>[H]})):z.push(r.h(y.ElOption,ue))}}),z},L=r.ref();return ye({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()}}),()=>{const X={...qe(l.attrs),ref:L,class:B.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:K,onChange:$,onFocus:P,onBlur:I,onVisibleChange:ee,onRemoveTag:ae};typeof F=="function"&&(X["remote-method"]=F,X.loading=R.value),typeof M=="function"&&(X["filter-method"]=M,X.loading=R.value);const z={};l.slots.prefix&&(z.prefix=l.slots.prefix),l.slots.empty&&(z.empty=l.slots.empty),l.slots.options?z.default=l.slots.options:z.default=()=>Z(v.value,l.slots.option);const Y=[],x=r.h(y.ElSelect,X,z);Y.push(x);const _={default:()=>Y};l.slots.default&&(_.label=l.slots.default),l.slots.fixedTip&&(_.fixedTip=l.slots.fixedTip);const G={...we(n,so),hintText:ne.value,hintVisible:Q.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:j,onMouseleave:U};return w.value&&(G["appear-listen"]=!0,G.onAppear=V),r.h(o,G,_)}}}}const{componentName:li,create:ai,scope:ii}=oe("select-item"),Dn=ai(oi(li,ii,me));var ze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){var o=1e3,n=6e4,l=36e5,a="millisecond",i="second",s="minute",u="hour",d="day",c="week",f="month",p="quarter",N="year",g="date",m="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},O=function($,b,S){var P=String($);return!P||P.length>=b?$:""+Array(b+1-P.length).join(S)+$},q={s:O,z:function($){var b=-$.utcOffset(),S=Math.abs(b),P=Math.floor(S/60),I=S%60;return(b<=0?"+":"-")+O(P,2,"0")+":"+O(I,2,"0")},m:function $(b,S){if(b.date()<S.date())return-$(S,b);var P=12*(S.year()-b.year())+(S.month()-b.month()),I=b.clone().add(P,f),K=S-I<0,E=b.clone().add(P+(K?-1:1),f);return+(-(P+(S-I)/(K?I-E:E-I))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:f,y:N,w:c,d,D:g,h:u,m:s,s:i,ms:a,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},V="en",F={};F[V]=T;var R=function($){return $ instanceof k},M=function $(b,S,P){var I;if(!b)return V;if(typeof b=="string"){var K=b.toLowerCase();F[K]&&(I=K),S&&(F[K]=S,I=K);var E=b.split("-");if(!I&&E.length>1)return $(E[0])}else{var A=b.name;F[A]=b,I=A}return!P&&I&&(V=I),I||!P&&V},D=function($,b){if(R($))return $.clone();var S=typeof b=="object"?b:{};return S.date=$,S.args=arguments,new k(S)},C=q;C.l=M,C.i=R,C.w=function($,b){return D($,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var k=function(){function $(S){this.$L=M(S.locale,null,!0),this.parse(S)}var b=$.prototype;return b.parse=function(S){this.$d=function(P){var I=P.date,K=P.utc;if(I===null)return new Date(NaN);if(C.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var E=I.match(v);if(E){var A=E[2]-1||0,j=(E[7]||"0").substring(0,3);return K?new Date(Date.UTC(E[1],A,E[3]||1,E[4]||0,E[5]||0,E[6]||0,j)):new Date(E[1],A,E[3]||1,E[4]||0,E[5]||0,E[6]||0,j)}}return new Date(I)}(S),this.$x=S.x||{},this.init()},b.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},b.$utils=function(){return C},b.isValid=function(){return this.$d.toString()!==m},b.isSame=function(S,P){var I=D(S);return this.startOf(P)<=I&&I<=this.endOf(P)},b.isAfter=function(S,P){return D(S)<this.startOf(P)},b.isBefore=function(S,P){return this.endOf(P)<D(S)},b.$g=function(S,P,I){return C.u(S)?this[P]:this.set(I,S)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(S,P){var I=this,K=!!C.u(P)||P,E=C.p(S),A=function(Z,L){var W=C.w(I.$u?Date.UTC(I.$y,L,Z):new Date(I.$y,L,Z),I);return K?W:W.endOf(d)},j=function(Z,L){return C.w(I.toDate()[Z].apply(I.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(L)),I)},U=this.$W,Q=this.$M,ne=this.$D,J="set"+(this.$u?"UTC":"");switch(E){case N:return K?A(1,0):A(31,11);case f:return K?A(1,Q):A(0,Q+1);case c:var ee=this.$locale().weekStart||0,ae=(U<ee?U+7:U)-ee;return A(K?ne-ae:ne+(6-ae),Q);case d:case g:return j(J+"Hours",0);case u:return j(J+"Minutes",1);case s:return j(J+"Seconds",2);case i:return j(J+"Milliseconds",3);default:return this.clone()}},b.endOf=function(S){return this.startOf(S,!1)},b.$set=function(S,P){var I,K=C.p(S),E="set"+(this.$u?"UTC":""),A=(I={},I[d]=E+"Date",I[g]=E+"Date",I[f]=E+"Month",I[N]=E+"FullYear",I[u]=E+"Hours",I[s]=E+"Minutes",I[i]=E+"Seconds",I[a]=E+"Milliseconds",I)[K],j=K===d?this.$D+(P-this.$W):P;if(K===f||K===N){var U=this.clone().set(g,1);U.$d[A](j),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},b.set=function(S,P){return this.clone().$set(S,P)},b.get=function(S){return this[C.p(S)]()},b.add=function(S,P){var I,K=this;S=Number(S);var E=C.p(P),A=function(Q){var ne=D(K);return C.w(ne.date(ne.date()+Math.round(Q*S)),K)};if(E===f)return this.set(f,this.$M+S);if(E===N)return this.set(N,this.$y+S);if(E===d)return A(1);if(E===c)return A(7);var j=(I={},I[s]=n,I[u]=l,I[i]=o,I)[E]||1,U=this.$d.getTime()+S*j;return C.w(U,this)},b.subtract=function(S,P){return this.add(-1*S,P)},b.format=function(S){var P=this,I=this.$locale();if(!this.isValid())return I.invalidDate||m;var K=S||"YYYY-MM-DDTHH:mm:ssZ",E=C.z(this),A=this.$H,j=this.$m,U=this.$M,Q=I.weekdays,ne=I.months,J=function(L,W,X,z){return L&&(L[W]||L(P,K))||X[W].slice(0,z)},ee=function(L){return C.s(A%12||12,L,"0")},ae=I.meridiem||function(L,W,X){var z=L<12?"AM":"PM";return X?z.toLowerCase():z},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:C.s(U+1,2,"0"),MMM:J(I.monthsShort,U,ne,3),MMMM:J(ne,U),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:J(I.weekdaysMin,this.$W,Q,2),ddd:J(I.weekdaysShort,this.$W,Q,3),dddd:Q[this.$W],H:String(A),HH:C.s(A,2,"0"),h:ee(1),hh:ee(2),a:ae(A,j,!0),A:ae(A,j,!1),m:String(j),mm:C.s(j,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:E};return K.replace(w,function(L,W){return W||Z[L]||E.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(S,P,I){var K,E=C.p(P),A=D(S),j=(A.utcOffset()-this.utcOffset())*n,U=this-A,Q=C.m(this,A);return Q=(K={},K[N]=Q/12,K[f]=Q,K[p]=Q/3,K[c]=(U-j)/6048e5,K[d]=(U-j)/864e5,K[u]=U/l,K[s]=U/n,K[i]=U/o,K)[E]||U,I?Q:C.a(Q)},b.daysInMonth=function(){return this.endOf(f).$D},b.$locale=function(){return F[this.$L]},b.locale=function(S,P){if(!S)return this.$L;var I=this.clone(),K=M(S,P,!0);return K&&(I.$L=K),I},b.clone=function(){return C.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},$}(),B=k.prototype;return D.prototype=B,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",d],["$M",f],["$y",N],["$D",g]].forEach(function($){B[$[1]]=function(b){return this.$g(b,$[0],$[1])}}),D.extend=function($,b){return $.$i||($(b,k,D),$.$i=!0),D},D.locale=M,D.isDayjs=R,D.unix=function($){return D(1e3*$)},D.en=F[V],D.Ls=F,D.p={},D})})(uo);var si=uo.exports;const _e=He(si);var co={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},u=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(v){this[m]=+v}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var w=v.match(/([+-]|\d\d)/g),T=60*w[1]+(+w[2]||0);return T===0?0:w[0]==="+"?-T:T}(m)}],f=function(m){var v=s[m];return v&&(v.indexOf?v:v.s.concat(v.f))},p=function(m,v){var w,T=s.meridiem;if(T){for(var O=1;O<=24;O+=1)if(m.indexOf(T(O,0,v))>-1){w=O>12;break}}else w=m===(v?"pm":"PM");return w},N={A:[i,function(m){this.afternoon=p(m,!1)}],a:[i,function(m){this.afternoon=p(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[l,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[l,d("day")],Do:[i,function(m){var v=s.ordinal,w=m.match(/\d+/);if(this.day=w[0],v)for(var T=1;T<=31;T+=1)v(T).replace(/\[|\]/g,"")===m&&(this.day=T)}],M:[a,d("month")],MM:[l,d("month")],MMM:[i,function(m){var v=f("months"),w=(f("monthsShort")||v.map(function(T){return T.slice(0,3)})).indexOf(m)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[i,function(m){var v=f("months").indexOf(m)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(m){this.year=u(m)}],YYYY:[/\d{4}/,d("year")],Z:c,ZZ:c};function g(m){var v,w;v=m,w=s&&s.formats;for(var T=(m=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,C,k){var B=k&&k.toUpperCase();return C||w[k]||o[k]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,b,S){return b||S.slice(1)})})).match(n),O=T.length,q=0;q<O;q+=1){var V=T[q],F=N[V],R=F&&F[0],M=F&&F[1];T[q]=M?{regex:R,parser:M}:V.replace(/^\[|\]$/g,"")}return function(D){for(var C={},k=0,B=0;k<O;k+=1){var $=T[k];if(typeof $=="string")B+=$.length;else{var b=$.regex,S=$.parser,P=D.slice(B),I=b.exec(P)[0];S.call(C,I),D=D.replace(I,"")}}return function(K){var E=K.afternoon;if(E!==void 0){var A=K.hours;E?A<12&&(K.hours+=12):A===12&&(K.hours=0),delete K.afternoon}}(C),C}}return function(m,v,w){w.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var T=v.prototype,O=T.parse;T.parse=function(q){var V=q.date,F=q.utc,R=q.args;this.$u=F;var M=R[1];if(typeof M=="string"){var D=R[2]===!0,C=R[3]===!0,k=D||C,B=R[2];C&&(B=R[2]),s=this.$locale(),!D&&B&&(s=w.Ls[B]),this.$d=function(P,I,K){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*P);var E=g(I)(P),A=E.year,j=E.month,U=E.day,Q=E.hours,ne=E.minutes,J=E.seconds,ee=E.milliseconds,ae=E.zone,Z=new Date,L=U||(A||j?1:Z.getDate()),W=A||Z.getFullYear(),X=0;A&&!j||(X=j>0?j-1:Z.getMonth());var z=Q||0,Y=ne||0,x=J||0,_=ee||0;return ae?new Date(Date.UTC(W,X,L,z,Y,x,_+60*ae.offset*1e3)):K?new Date(Date.UTC(W,X,L,z,Y,x,_)):new Date(W,X,L,z,Y,x,_)}catch{return new Date("")}}(V,M,F),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),k&&V!=this.format(M)&&(this.$d=new Date("")),s={}}else if(M instanceof Array)for(var $=M.length,b=1;b<=$;b+=1){R[1]=M[b-1];var S=w.apply(this,R);if(S.isValid()){this.$d=S.$d,this.$L=S.$L,this.init();break}b===$&&(this.$d=new Date(""))}else O.call(this,q)}}})})(co);var ui=co.exports;const ci=He(ui);var fo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n,l){var a=n.prototype,i=a.format;l.en.ordinal=function(s){var u=["th","st","nd","rd"],d=s%100;return"["+s+(u[(d-20)%10]||u[d]||u[0])+"]"},a.format=function(s){var u=this,d=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return d.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return d.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),p==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),p==="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 p}});return i.bind(this)(f)}}})})(fo);var fi=fo.exports;const di=He(fi);var ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n,l){var a=n.prototype,i=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,p,N,g,m){var v=f.name?f:f.$locale(),w=i(v[p]),T=i(v[N]),O=w||T.map(function(V){return V.slice(0,g)});if(!m)return O;var q=v.weekStart;return O.map(function(V,F){return O[(F+(q||0))%7]})},u=function(){return l.Ls[l.locale()]},d=function(f,p){return f.formats[p]||function(N){return N.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,m,v){return m||v.slice(1)})}(f.formats[p.toUpperCase()])},c=function(){var f=this;return{months:function(p){return p?p.format("MMMM"):s(f,"months")},monthsShort:function(p){return p?p.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):s(f,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return d(f.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(p){return d(f,p)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return s(u(),"months")},l.monthsShort=function(){return s(u(),"monthsShort","months",3)},l.weekdays=function(f){return s(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(ho);var hi=ho.exports;const gi=He(hi);var go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){var o="week",n="year";return function(l,a,i){var s=a.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(d),f=i(this).endOf(o);if(c.isBefore(f))return 1}var p=i(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),N=this.diff(p,o,!0);return N<0?i(this).startOf("week").week():Math.ceil(N)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(go);var mi=go.exports;const pi=He(mi);var mo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n){n.prototype.weekYear=function(){var l=this.month(),a=this.week(),i=this.year();return a===1&&l===11?i+1:l===0&&a>=52?i-1:i}}})})(mo);var yi=mo.exports;const bi=He(yi);var po={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n,l){n.prototype.dayOfYear=function(a){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(po);var vi=po.exports;const wi=He(vi);var yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n){n.prototype.isSameOrAfter=function(l,a){return this.isSame(l,a)||this.isAfter(l,a)}}})})(yo);var Si=yo.exports;const xi=He(Si);var bo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(ze,function(){return function(o,n){n.prototype.isSameOrBefore=function(l,a){return this.isSame(l,a)||this.isBefore(l,a)}}})})(bo);var Ti=bo.exports;const $i=He(Ti);_e.extend(gi),_e.extend(di),_e.extend(ci),_e.extend(pi),_e.extend(bi),_e.extend(wi),_e.extend(xi),_e.extend($i);const Re={format(e,t){return _e(e).format(t)},parser(e,t){return _e(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const l=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},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),l=this.getNumTwoBit(e.getDate());return[o,n,l].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 l=new Date(Number(e),parseInt(t)-1,Number(o));let a=l.getDay(),i=l.getDate(),s=6-a;return n!==0&&(a=a==0?7:a,s=7-a),Math.ceil((i+s)/7)},getYearWeek:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((l.valueOf()-a.valueOf())/864e5);let s=l.getDay(),u=6-s;return n!==0&&(s=s==0?7:s,u=7-s),Math.ceil((i+u)/7)},getWeekDate:function(e,t,o,n=0){const l=new Date(Number(e),parseInt(t)-1,Number(o)),a=l.getTime();let i=l.getDay();if(n===0){const u=a-i*864e5,d=a+(6-i)*864e5,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,d=a+(7-i)*s,c=this.date2Str(new Date(u)),f=this.date2Str(new Date(d));return[c,f]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Re.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Re.getWhatDay(+t[0],+t[1],+t[2]),t},inScope4Day(e,t,o){const n=new Date(new Date(t).setDate(t.getDate()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),l=e.getTime(),a=n.getTime(),i=t.getTime();return a>i?l>=i&&l<=a:l>=a&&l<=i}},vo={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1}},wo={isLongTerm:{type:[Boolean,String],required:!1,default:!1},longTermText:{type:[String],required:!1},longTermActionLabel:{type:[String],required:!1},longTerm:{type:[Boolean],required:!1,default:!1},longTermValue:{type:[Date,Number,String,Array],required:!1},compatibleLongTermValue:{type:[Date,Number,String,Array],required:!1}};function Ci(e,t,o){return{props:{...ge,...xe,...vo,...wo},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=r.computed(()=>S.value&&Array.isArray(f.value)&&f.value.length==2?f.value[0]:f.value),N=r.computed(()=>S.value?"longTermKey":"normalKey"),g=A=>{if(S.value&&n.type==="daterange"){const j=[...f.value];j[0]=A,f.value=j}else f.value=A;s("update:modelValue",f.value),s("change",f.value)},m=r.computed(()=>S.value&&n.type==="daterange"?"date":n.type),v=e,w=r.computed(()=>({[`${v}`]:!0,"is-long":S.value,"is-readonly":i.value,"is-disabled":a.value}));let T=se(n,"hintText"),O=r.ref(!1);const q=A=>{let U=A.target.value;c.value=!0,de(T.value)||(O.value=!0),s("focus",U,A)},V=A=>{setTimeout(()=>{O.value&&(O.value=!1),c.value=!1},0);let U=A.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),s("blur",U,A)},F=()=>{s("clear","")},R=A=>{s("calendar-change",A)},M=(A,j,U)=>{s("panel-change",A,j,U)},D=A=>{s("visible-change",A)},C=Te(r.computed(()=>n.longTermText),"longTermText",ke.Near),k=Te(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",ke.Near),B=Te(r.computed(()=>n.longTermValue),"longTermValue",ke.Near),$=Te(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",ke.Near);let b=null;const S=r.ref(re(n.longTerm)),P=A=>{if(S.value=A,s("update:longTerm",A),A){if(b=f.value,n.type==="daterange"){const j=[];Array.isArray(B.value)?(j[0]=f.value?f.value[0]??B.value[0]:null,j[1]=B.value[1]??B.value[0]):(j[0]=f.value?f.value[0]??B.value:null,j[1]=S.value),j[0]||(j[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),j[1]||(j[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),f.value=j}else Array.isArray(B.value)?f.value=B.value[1]??B.value[0]:f.value=B.value,f.value||(f.value=n.valueFormat?Re.format(new Date,n.valueFormat):new Date);s("update:modelValue",f.value)}else{if(n.type==="daterange"){const j=[];j[0]=Array.isArray(f.value)?f.value[0]:f.value,Array.isArray(b)?j[1]=b[1]:j[1]=b,j[0]||(j[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),j[1]||(j[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),f.value=j}else f.value=b;s("update:modelValue",f.value)}},I=re(n.isLongTerm);if(I){const A=()=>{if(S.value===!0){if(b=f.value,n.type==="daterange"){const j=[f.value[0]];Array.isArray(B.value)?j[1]=B.value[1]??B.value[0]:j[1]=S.value,j[0]||(j[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),j[1]||(j[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),f.value=j}else f.value=B.value;s("update:modelValue",f.value)}else Me(B.value,f.value)&&(S.value=!0)};A(),r.watch([()=>n.longTerm],([j])=>{S.value!==j&&A()}),r.watch([()=>f.value],([j])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(j))try{let Q=j[1];if(!Q)return;typeof Q!="string"&&n.valueFormat&&(Q=Re.format(Q,n.valueFormat));let ne=Array.isArray(B.value)?B.value[1]:B.value;(Q===ne||Array.isArray($.value)&&$.value.findIndex(ee=>Q==ee)!==-1)&&(U=!0)}catch(Q){console.error(Q)}S.value!==U&&(S.value=U)},{immediate:!0})}const K=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),E=r.ref();return ye({focus:()=>{E?.value.focus()},blur:()=>{E?.value.blur()},handleOpen:()=>{E?.value.handleOpen()},handleClose:()=>{E?.value.handleClose()}}),()=>{const j={...l.attrs,key:N.value,type:m.value,ref:E,class:w.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:p.value,valueFormat:n.valueFormat,"onUpdate:modelValue":g,onClear:F,onFocus:q,onBlur:V,onCalendarChange:R,onPanelChange:M,onVisibleChange:D},U={};l.slots["range-separator"]&&(U["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(U.default=l.slots.cell);const Q=[],ne=r.h(y.ElDatePicker,j,U);Q.push(ne);const J={default:()=>Q};if(l.slots.default&&(J.label=l.slots.default),l.slots.fixedTip&&(J.fixedTip=l.slots.fixedTip),I){if(S.value){const L=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),W=r.h("input",{class:["fox-date-item__long-text"],value:C.value,readonly:!0}),X={class:K.value},z=r.h("div",X,{default:()=>[L,W]});Q.push(z)}if(!i.value&&!a.value){const L={label:k.value||C.value,disabled:i.value||a.value,modelValue:S.value,"onUpdate:modelValue":P},W=r.h(y.ElCheckbox,L),X=r.h("div",{class:{[`${v}__append`]:!0}},[W]);J.append=()=>X}}const ae={...we(n,vo,wo),class:{[`${v}__wrapper`]:!0,"has-append":I},hintText:T.value,hintVisible:O.value,prop:`${n.prop}_item`};return r.h(o,ae,J)}}}}const{componentName:Ei,create:Ni,scope:ki}=oe("date-item"),Fn=Ni(Ci(Ei,ki,me)),So={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Vi(e,t,o){return{props:{...ge,...xe,...So},emits:["change","update:modelValue","blur","focus","clear","visible-change"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0})),g=F=>{f.value=F,s("update:modelValue",F),s("change",F)};let m=se(n,"hintText"),v=r.ref(!1);const w=F=>{let M=F.target.value;c.value=!0,de(m.value)||(v.value=!0),s("focus",M,F)},T=F=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let M=F.target.value;n.maxLength&&M.length>Number(n.maxLength)&&(M=M.slice(0,Number(n.maxLength))),s("blur",M,F)},O=()=>{s("clear","")},q=F=>{s("visible-change",F)},V=r.ref();return ye({focus:()=>{V?.value.focus()},blur:()=>{V?.value.blur()},handleOpen:()=>{V?.value.handleOpen()},handleClose:()=>{V?.value.handleClose()}}),()=>{const R={...l.attrs,ref:V,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":g,onClear:O,onFocus:w,onBlur:T,onVisibleChange:q},M={},D=[],C=r.h(y.ElTimePicker,R,M);D.push(C);const k={default:()=>D};l.slots.default&&(k.label=l.slots.default),l.slots.fixedTip&&(k.fixedTip=l.slots.fixedTip);const $={...we(n,So),hintText:m.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,$,k)}}}}const{componentName:Oi,create:Ii,scope:Ri}=oe("time-item"),An=Ii(Vi(Oi,Ri,me)),xo={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Di(e,t,o){return{props:{...ge,...xe,...xo},emits:["change","update:modelValue","blur","focus","clear"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0})),g=V=>{f.value=V,s("update:modelValue",V),s("change",V)};let m=se(n,"hintText"),v=r.ref(!1);const w=V=>{let R=V.target.value;c.value=!0,de(m.value)||(v.value=!0),s("focus",R,V)},T=V=>{setTimeout(()=>{v.value&&(v.value=!1),c.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,V)},O=()=>{s("clear","")},q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()},handleOpen:()=>{q?.value.handleOpen()},handleClose:()=>{q?.value.handleClose()}}),()=>{const F={...l.attrs,ref:q,class:N.value,placeholder:d.placeholder.value,disabled:a.value,readonly:i.value,modelValue:f.value,"onUpdate:modelValue":g,onClear:O,onFocus:w,onBlur:T},R={},M=[],D=r.h(y.ElTimeSelect,F,R);M.push(D);const C={default:()=>M};l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip);const B={...we(n,xo),hintText:m.value,hintVisible:v.value,prop:`${n.prop}_item`};return r.h(o,B,C)}}}}const{componentName:Fi,create:Ai,scope:Bi}=oe("time-select-item"),Bn=Ai(Di(Fi,Bi,me));function To(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let l=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){l=a;break}return l-n<t?l=n+t+1:l!=n&&(l+=1),l>o.length?o=o.padEnd(l,"0"):o=o.substring(0,l),o}function $o(e,t,o=20){if(typeof t=="string"&&(t=ve(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=br(`${e}`,`${t}`);return To(n)}else{let n=on(`${e}`,vr(`${t}`),20);return To(n)}}function qi(e,t=-1,o=!1,n=3,l=","){return Ct(e,t,o,n,l)}function Co(e,t,o,n,l=!0){if(e=="")return"";if(e=wr(e),t=ve(t),t==1)return e;if(n)e=$o(e,t),o&&(e=="0"&&l?e=`${e}.`.padEnd(ve(o)+2,"0"):e=on(e,1,ve(o)));else{let a=-1*t;e=$o(e,a)}return e}function Eo(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=re(t.minInclude),l=ln(e,t.min);if(n&&l==-1||!n&&(l==0||l==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=re(t.maxInclude),l=ln(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(o.maxValid=!1)}return o}const No={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 _i(e,t,o){return{props:{...ge,...xe,...No},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(!1),d=se(n,"modelValue"),c=r.ref("");r.watch([()=>d.value,()=>n.rates,()=>n.precision],([$,b,S])=>{if(de($)){c.value="";return}const P=Co($,b,S,!1);c.value!==P&&(c.value=P)},{immediate:!0});const f=r.computed(()=>{let $="";return u.value&&($=c.value),$}),{t:p}=Fe.useFoxI18n(t),N=r.computed(()=>{let $=n.placeholder??"";return!u.value&&!de(c.value)?$=qi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):$=p(["placeholder",$]),$}),g=e,m=r.computed(()=>({[g]:!0,[`${g}__disabled`]:a.value,[`${g}__placeholder`]:c.value.length>0})),v=Te(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:v.value??"right"});const w=r.ref(""),T=r.computed(()=>{let $=w.value;return de($)&&($=n.errorTip??""),$}),O=r.ref(""),q=r.ref(!1),V=($,b)=>{if($=`${$}`,de($)){c.value="",d.value="",b.forEach(S=>{s(S,"")}),re(n.showTip)&&q.value&&(q.value=!1);return}if($.length>=2){let S=$;if(S.charAt(0)=="-"&&(S=S.substring(1)),S.length>=2&&S.charAt(0)=="0"&&S.charAt(1)!="."){r.triggerRef(c);return}}if($!="-"){if(!kr($)){r.triggerRef(c);return}if(n.integerLength!=-1&&Vr($)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&Or($)>Number(n.decimalLength)){r.triggerRef(c);return}let S=Eo($,n);if(S.maxValid===!1){w.value=S.message,r.triggerRef(c);return}}else if(n.min!=null&&ve(n.min)>=0){r.triggerRef(c);return}O.value=$,re(n.showTip)&&(q.value=$.length>0),c.value=$,d.value=Co($,n.rates,n.precision,!0),b.forEach(S=>{s(S,d.value)})},F=$=>{V($,["update:modelValue","input"])},R=$=>{V($,["update:modelValue","change"])},M=$=>{if(u.value=!0,re(n.showTip)){let b=c.value;de(b)&&(b=n.hintText),de(b)||(O.value=b,q.value=!0)}w.value="",s("focus",d.value,$)},D=$=>{if(setTimeout(()=>{u.value=!1,re(n.showTip)&&q.value===!0&&(q.value=!1)},0),!de(c.value)){let b=Eo(c.value,n);if(b.minValid===!1||b.maxValid===!1){w.value=b.message;return}}s("update:modelValue",d.value,$),s("blur",d.value,$)},C=()=>{s("clear","")},k=r.computed(()=>dt(n.unit)>0),B=r.ref();return ye({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},select:()=>{B?.value.select()}}),()=>{const b={...qe(l.attrs),ref:B,class:m.value,type:"digit",maxlength:n.maxLength,placeholder:N.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:C,onInput:F,onChange:R,onFocus:M,onBlur:D},S={};l.slots.prepend&&(S.prepend=l.slots.prepend),l.slots.append&&(S.append=l.slots.append),l.slots.prefix&&(S.prefix=l.slots.prefix),l.slots.suffix?S.suffix=l.slots.suffix:k.value&&(S.suffix=()=>[n.unit]);const P=[],I=r.h(y.ElInput,b,S);P.push(I);const K={default:()=>P};l.slots.default&&(K.label=l.slots.default),l.slots.fixedTip&&(K.fixedTip=l.slots.fixedTip);const A={...we(n,No),errorTip:T.value,hintText:O.value,hintVisible:q.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,A,K)}}}}const{componentName:Li,create:Mi,scope:ji}=oe("money-item"),qn=Mi(_i(Li,ji,me)),ko={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 Pi(e,t,o){return{props:{...ge,...xe,...ko},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0,[`${p}__append`]:F.value})),g=r.computed(()=>({[`${p}__unit`]:!0})),m=M=>{f.value=M,s("update:modelValue",M),s("input",M)},v=M=>{s("change",M)};let w=se(n,"hintText"),T=r.ref(!1);const O=M=>{let C=M.target.value;c.value=!0,de(w.value)||(T.value=!0),s("focus",C,M)},q=M=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let C=M.target.value;n.maxLength&&C.length>Number(n.maxLength)&&(C=C.slice(0,Number(n.maxLength))),s("blur",C,M)},V=()=>{s("clear","")},F=r.computed(()=>dt(n.unit)>0),R=r.ref();return ye({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const D={...qe(l.attrs),ref:R,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:V,onChange:v,onInput:m,onFocus:O,onBlur:q},C={},k=[],B=r.h(y.ElInputNumber,D,C);k.push(B);const $={default:()=>k};l.slots.default&&($.label=l.slots.default),l.slots.fixedTip&&($.fixedTip=l.slots.fixedTip);const S={...we(n,ko),hintText:w.value,hintVisible:T.value,prop:`${n.prop}_item`};if(l.slots.append)$.append=l.slots.append;else if(F.value){const I={class:g.value},K=r.h("div",I,[n.unit]);$.append=()=>K}return r.h(o,S,$)}}}}const{componentName:zi,create:Hi,scope:Ki}=oe("input-number-item"),_n=Hi(Pi(zi,Ki,me));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Qe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Wi(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Yi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,l);const a=Be(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await a(o,n,l))}};function Gi(){const e=r.getCurrentInstance();return new Yi(e.proxy)}function Ln(e,t,o){const n=Ke(e,t),l=Ke(e,o);if(n!==l)return!1;const a=Qe(e,t),i=Qe(e,o);return a===i}function Vo(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];let a=n;for(let i=0;Array.isArray(a)&&i<t.length;i++){const s=t[i];if(Array.isArray(s)){const u=Vo(e,s,o,n);l.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ke(e,d)===s;else if(o==="item")u=Ln(e,d,s);else{let c=Qe(e,d);c==null&&(c=Ke(e,d)),u=c===s}if(u){l.push(d),a=Wi(e,d);break}}if(!u)break}}return l}function Ui(e){return{text:e,value:e}}const Oo={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "}};function Xi(e,t,o){return{props:{...ge,...xe,...Oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(null),f=r.ref([]),p=r.computed(()=>f.value?f.value.map(L=>Array.isArray(L)?L.map(X=>Ke(n,X)).join(" "):Ke(n,L)).join(" "):""),N=(Z,L,W,X=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===Z)return;c.value=Z;const _=r.toRaw(Z);if(X){const H=ae?.value.getCheckedNodes();if(H)if(n.multiple){const G=[];H.forEach(te=>{const ue=(te.pathNodes??[]).map(Ve=>Ve.data);G.push(ue)}),s("update:pathNodes",G)}else{const te=(H[0]?.pathNodes??[]).map(ie=>ie.data);s("update:pathNodes",te)}s("update:modelValue",_),s("change",_)}return}const z=Vo(n,Z,L,W);if(z===null){if(f.value.length===0||f.value===null)return;f.value=[],c.value=null,X&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}const Y=z[z.length-1];if(C.value.checkStrictly!==!0&&!Array.isArray(Y)&&Array.isArray(Y.children)&&Y.children.length>0){const _=[];z.forEach(H=>{const G=`${Ke(n,H)}`;_.push(G)}),_.length>0&&(D.value=_.join(n.separator))}else D.value=null;let x=!0;if(z.length!==f.value.length)x=!1;else for(let _=0;_<z.length;_++){const H=z[_],G=f.value[_];if(Array.isArray(H)){if(!Array.isArray(G)||H.length!==G.length)x=!1;else for(let te=0;te<H.length;te++)if(!Ln(n,H[te],G[te])){x=!1;break}}else Ln(n,H,G)||(x=!1);if(!x)break}if(!x){f.value=z;let _=[],H=[];z.forEach(te=>{if(Array.isArray(te)){let ie=[],ue=[];for(let Ve of te)ie.push(Qe(n,Ve)),n.valueType==="text"?ue.push(Ke(n,Ve)):n.valueType==="item"?ue.push(Ve):ue.push(Qe(n,Ve));_.push(ie),H.push(ue)}else _.push(Qe(n,te)),n.valueType==="text"?H.push(Ke(n,te)):n.valueType==="item"?H.push(te):H.push(Qe(n,te))}),c.value=_;const G=r.toRaw(H);X&&(s("update:pathNodes",z),s("update:modelValue",G),s("change",G))}},g=r.ref([]),m=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,Z=>re(Z)),v=Gi(),w=async(Z,L)=>{if(Z){const W=await v.load("cascader",Z,L);if(W.length>0)if(typeof W[0]=="string"){let Y=W.map(x=>Ui(x));g.value=Y}else g.value=W}};r.watch([()=>n.source,()=>n.params],async([Z,L])=>{w(Z,L)},{immediate:!(m.value||n.lazy)});let T=!1;const O=()=>{T||(T=!0,w(n.source,n.params))};r.watch([()=>g.value,()=>n.modelValue],([Z,L])=>{N(L,n.valueType,Z,!1)}),n.lazy&&N(n.modelValue,"value",[],!1);let q=null,V=r.ref(!1);typeof n.remoteMethod=="function"&&(q=async Z=>{if(Z!=null){V.value=!0;try{const L=await n.remoteMethod(Z);g.value=L}catch(L){console.error(L)}V.value=!1}});const F=r.ref(!1),R=e,M=r.computed(()=>({[R]:!0})),D=r.ref(null),C=r.computed(()=>{let Z={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(Z.multiple=!0),n.props&&Object.assign(Z,n.props),n.lazy&&(Z.lazy=!0,Z.lazyLoad=async(L,W)=>{const X=await v.load("cascader",n.source,L,!0);if(L?.config?.checkStrictly!==!0&&Array.isArray(c.value)&&c.value.length===L.level){const z=L.pathLabels??[];let Y=[];z.forEach(x=>{x&&Y.push(x)}),Y.length>0&&(D.value=Y.join(n.separator))}else D.value=null;W(X)}),Z}),k=Z=>{n.allowCreate?(s("update:modelValue",Z),s("change",Z),c.value=Z):N(Z,"value",g.value,!0)};let B=se(n,"hintText"),$=r.ref(!1);const b=Z=>{let W=Z.target.value;F.value=!0,de(B.value)||($.value=!0),s("focus",W,Z)},S=Z=>{setTimeout(()=>{$.value&&($.value=!1),F.value=!1},0);let W=Z.target.value;n.maxLength&&W.length>Number(n.maxLength)&&(W=W.slice(0,Number(n.maxLength))),Q.value||s("blur",W,Z)},P=()=>{s("clear","")},I=r.ref(!1);let K=null;const E=()=>{n.showTooltip&&I.value===!1&&(K&&clearTimeout(K),K=setTimeout(()=>{I.value=!0},150))},A=()=>{K&&(clearTimeout(K),I.value=!1,K=null)},j=r.computed(()=>I.value||$.value),U=r.computed(()=>I.value?p.value:B.value),Q=r.ref(!1),ne=Z=>{Q.value=Z,s("visible-change",Z),Z||s("selected")},J=Z=>{s("remove-tag",Z)},ee=Z=>{s("expand-change",Z)},ae=r.ref();return ye({focus:()=>{ae?.value.focus()},blur:()=>{ae?.value.blur()},getCheckedNodes:()=>ae?.value.getCheckedNodes()}),()=>{const L={...l.attrs,ref:ae,class:M.value,props:C.value,clearable:n.clearable,placeholder:D.value||d.placeholder.value,disabled:a.value||i.value,options:g.value,modelValue:c.value,separator:n.separator,onClear:P,onChange:k,onFocus:b,onBlur:S,onVisibleChange:ne,onRemoveTag:J,expandChange:ee};typeof q=="function"&&(L["remote-method"]=q,L.loading=V.value);const W={};l.slots.option&&(W.default=l.slots.option),l.slots.empty&&(W.empty=l.slots.empty);const X=[],z=r.h(y.ElCascader,L,W);X.push(z);const Y={default:()=>X};l.slots.default&&(Y.label=l.slots.default),l.slots.fixedTip&&(Y.fixedTip=l.slots.fixedTip);const _={...we(n,Oo),hintText:U.value,hintVisible:j.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:E,onMouseleave:A};return m.value&&!n.lazy&&(_["appear-listen"]=!0,_.onAppear=O),r.h(o,_,Y)}}}}const{componentName:Zi,create:Ji,scope:Qi}=oe("cascader-item"),Mn=Ji(Xi(Zi,Qi,me)),Io={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function es(e,t,o){return{props:{...ge,...xe,...Io},emits:["change","update:modelValue","blur","focus","clear","input","select"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Fe.useFoxI18n(t),d=u(n,["placeholder"]),c=r.ref(!1),f=se(n,"modelValue"),p=e,N=r.computed(()=>({[p]:!0})),g=R=>{f.value=R,s("update:modelValue",R),s("input",R)},m=R=>{s("change",R)},v=R=>{s("select",R)};let w=se(n,"hintText"),T=r.ref(!1);const O=R=>{let D=R.target.value;c.value=!0,de(w.value)||(T.value=!0),s("focus",D,R)},q=R=>{setTimeout(()=>{T.value&&(T.value=!1),c.value=!1},0);let D=R.target.value;n.maxLength&&D.length>Number(n.maxLength)&&(D=D.slice(0,Number(n.maxLength))),s("blur",D,R)},V=()=>{s("clear","")},F=r.ref();return ye({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()}}),()=>{const M={...l.attrs,ref:F,class:N.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:f.value,onClear:V,onChange:m,onInput:g,onFocus:O,onBlur:q,onSelect:v},D={};l.slots.prepend&&(D.prepend=l.slots.prepend),l.slots.append&&(D.append=l.slots.append),l.slots.prefix&&(D.prefix=l.slots.prefix),l.slots.suffix&&(D.suffix=l.slots.suffix),l.slots.option&&(D.default=l.slots.option);const C=[],k=r.h(y.ElAutocomplete,M,D);C.push(k);const B={default:()=>C};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const b={...we(n,Io),hintText:w.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,b,B)}}}}const{componentName:ts,create:ns,scope:rs}=oe("autocomplete-item"),jn=ns(es(ts,rs,me));function os(e,t,o,n,l){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],s=t[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let u=t;for(let d=0;u&&d<a.length;d++){let c=a[d],f=u.find(p=>p[n]===c);if(!f)break;i.push(f[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],c=a[u];const f=d.find(p=>p[n]===c);if(!f)break;i.push(f[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let c=a[d],f=u.find(p=>p[n]===c);if(!f)break;i.push(f[o]),u=f[l]}}return i}let ls=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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function as(){const e=r.getCurrentInstance();return new ls(e.proxy)}const Ro={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 is(e,t){return{props:{...Ro},setup(o,{attrs:n,slots:l}){const a=as(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([d,c])=>{i.value=await a.load(o.sourceType,d,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let d=os(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return l.default?l.default({text:s.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===s.value?r.h(o.emptyTag??"span",{...n,class:o.emptyClass},s.value):r.h(u,d,{default:()=>s.value}):r.h(u,d,s.value)}}}}const{componentName:ff,create:ss,scope:df}=oe("mapping"),wt=ss(is());function us(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=a.substring(0,s);n=n[f][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function cs(e,t){return{props:{...Ro},setup(o,{attrs:n,slots:l}){return()=>{const a={default:i=>{const s=us(i.row,i.column.property);return l.default?r.h(wt,{...o,modelValue:s},{default:l.default}):r.h(wt,{...o,modelValue:s})}};return r.h(y.ElTableColumn,{...n},a)}}}}const{componentName:hf,create:fs,scope:gf}=oe("table-mapping-column"),Pn=fs(cs()),ds=Symbol.for("TableStateKey");function Do(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=a.substring(0,s);n=n[f][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function hs(e,t){return{props:{},setup(o,{attrs:n}){const l=r.inject(ds,{});return()=>{const a=l.currentRow?l.currentRow.value:null,i={default:s=>{const u=Do(s.row,s.column.property),d=a?Do(a,s.column.property):null,c=u===d,f={class:{"el-radio__input":!0,"is-checked":c}},p=r.h("span",f,[r.h("span",{class:{"el-radio__inner":!0}})]),N={class:{"el-radio":!0,"is-checked":c}};return r.h("label",N,[p])}};return r.h(y.ElTableColumn,{...n},i)}}}}const{componentName:mf,create:gs,scope:pf}=oe("table-radio-column"),zn=gs(hs()),ms={},ps={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"},ys=[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 bs(e,t){return r.openBlock(),r.createElementBlock("svg",ps,ys)}const vs=Ie(ms,[["render",bs]]),{componentName:bf,create:ws,scope:vf}=oe("table-setting"),Ss={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:"不固定"}},xs=ws({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:vs,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Ss},setup(e,{emit:t,attrs:o}){let n=[];const l=r.ref([]),a=r.computed(()=>l.value.filter(E=>E.label===""||E.type?!1:E.fixed===""||E.fixed===!0||E.fixed==="left")),i=r.computed(()=>l.value.filter(E=>E.label===""||E.type?!1:E.fixed==="right")),s=r.computed(()=>l.value.filter(E=>!(E.label===""||E.type||E.fixed!==void 0))),u=r.computed(()=>(a.value.length>0||i.value.length>0)&&s.value.length>0),d=r.computed(()=>a.value.length>0),c=r.computed(()=>i.value.length>0),f=E=>E.length>1,p=E=>{const A=[];l.value=E.map((U,Q)=>(!(U.label===""||U.type)&&U.visible!==!1&&A.push(U.prop),{...U,sortIndex:Q})),s.value.length+a.value.length+i.value.length===A.length?T.value=!0:A.length>0&&(O.value=!0),F.value=A},N=E=>E?E.type?E.type:E.label?E.prop:"":"",g=(E,A)=>{if(E.length!==A.length)return!1;const j=E.map(U=>N(U));for(let U of A){const Q=N(U);if(j.indexOf(Q)===-1)return!1}return!0},m=E=>{if(!E){const A=e.tableRef.getColumnSetting(),j=A.srcColumnPropertyList;n=j.map((U,Q)=>({...U,sortIndex:Q})),E=A.columnPropertyList,E&&E.length>0&&g(j,E)||(E=j)}p(E)},v=()=>{e.tableRef.setColumnSetting(l.value)},w=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),T=r.ref(!1),O=r.ref(!1),q=E=>{const A=[];l.value.forEach(U=>{E&&!(U.label===""||U.type)&&A.push(U.prop),U.visible=E}),T.value=!1,O.value=!1,s.value.length+a.value.length+i.value.length===A.length?T.value=!0:A.length>0&&(O.value=!0),F.value=A,v()},V=()=>{m(n),v()},F=r.ref([]),R=E=>{l.value.forEach(j=>{if(j.label===""||j.type)return;const U=E.indexOf(j.prop)!==-1;j.visible=U}),T.value=!1,O.value=!1;const A=s.value.length+a.value.length+i.value.length;E.length===A?T.value=!0:E.length>0&&(O.value=!0),v()},M=()=>{m()};r.onMounted(()=>{setTimeout(()=>{m()},50)});const D={currentRow:null,index:null,roleType:null},C=E=>E?E.dataset&&E.dataset.role==="row"?E:E.tagName.toLowerCase()!=="body"?(E=E.parentElement,C(E)):null:null;return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:c,isDraggble:f,isCheckAll:T,isIndeterminate:O,handleCheckAllChange:q,handleReset:V,checkedValue:F,handleCheckChange:R,onShow:M,onDragStart:E=>{const A=E.currentTarget;A&&A.dataset&&(D.roleType=A.dataset.roleType,D.index=A.dataset.index)},onDragEnd:E=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null,D.roleType=null},onDragOver:E=>{const A=E.currentTarget;E.relatedTarget;const j=C(A);if(!j)return;const U=j.dataset&&j.dataset.roleType;D.roleType===U&&(E.preventDefault(),D.currentRow&&D.currentRow!==j&&D.currentRow.classList.remove("is-dragover"),j.classList.add("is-dragover"),D.currentRow=j)},onDragLeave:E=>{E.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},onDrop:E=>{const A=E.currentTarget,j=C(A);if(!j)return;const U=j.dataset&&j.dataset.roleType;if(D.roleType!==U)return;E.preventDefault();const Q=Number(D.index),ne=Number(j.dataset.index);if(Q!==ne){if(Q<ne){const J=l.value[Q];l.value.splice(Q,1),l.value.splice(ne,0,J)}else{const J=l.value[Q];l.value.splice(Q,1),l.value.splice(ne+1,0,J)}p(l.value),v()}},toLeftFixed:E=>{const A=l.value[E];A.fixed="left",v()},toRightFixed:E=>{const A=l.value[E];A.fixed="right",v()},toUnFixed:E=>{const A=l.value[E];A.fixed=void 0,v()},checkboxLabelStyle:w}}}),Ts={class:"fox-table-setting"},$s={class:"fox-table-setting__header"},Cs={class:"fox-table-setting__body"},Es={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},Ns={key:0,class:"fox-table-setting__body-title"},ks=["data-index","draggable"],Vs={class:"tools-item"},Os={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Is={key:0,class:"fox-table-setting__body-title"},Rs=["data-index","draggable"],Ds={class:"tools-item"},Fs={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},As={key:0,class:"fox-table-setting__body-title"},Bs=["data-index","draggable"],qs={class:"tools-item"};function _s(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),d=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),f=r.resolveComponent("fox-tooltip"),p=r.resolveComponent("Download"),N=r.resolveComponent("fox-checkbox"),g=r.resolveComponent("FoxCheckboxGroup"),m=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(m,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",Ts,[r.createElementVNode("div",$s,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=v=>e.isCheckAll=v),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Cs,[r.createVNode(g,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=v=>e.checkedValue=v),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Es,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",Ns,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,v=>(r.openBlock(),r.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:t[2]||(t[2]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:t[3]||(t[3]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:t[4]||(t[4]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:t[5]||(t[5]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:v.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(v.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Vs,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toUnFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toRightFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,ks))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Os,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Is,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,v=>(r.openBlock(),r.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:t[7]||(t[7]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:t[8]||(t[8]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:t[9]||(t[9]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:t[10]||(t[10]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:v.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(v.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ds,[r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toRightFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Rs))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Fs,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",As,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,v=>(r.openBlock(),r.createElementBlock("div",{key:v.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":v.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...w)=>e.onDragStart&&e.onDragStart(...w)),onDragend:t[12]||(t[12]=(...w)=>e.onDragEnd&&e.onDragEnd(...w)),onDrop:t[13]||(t[13]=(...w)=>e.onDrop&&e.onDrop(...w)),onDragover:t[14]||(t[14]=(...w)=>e.onDragOver&&e.onDragOver(...w)),onDragleave:t[15]||(t[15]=(...w)=>e.onDragLeave&&e.onDragLeave(...w))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(N,{class:"checkbox-item",label:v.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(v.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",qs,[r.createVNode(f,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toUnFixed(v.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:w=>e.toLeftFixed(v.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(p)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Bs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Wt=Ie(xs,[["render",_s]]);let Ls=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l,a,i,s){if(Array.isArray(o)){let d=(n-1)*l,c=d+l;c>o.length&&(c=o.length);const f=o.slice(d,c);return{totalSize:o.length,page:f}}if(typeof o=="function")return await Reflect.apply(o,null,[n,l,a,i,s]);const u=Be(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(We(a)&&r.isReactive(a)&&(a=r.toRaw(a)),await Reflect.apply(u,null,[o,n,l,a,i,s]))}};function Ms(){const e=r.getCurrentInstance();return new Ls(e.proxy)}class js{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=Be(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=Be(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=Be(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Fo(){const e=r.getCurrentInstance();return new js(e.proxy)}const Ps=Symbol.for("TableStateKey");function zs(e,t){let o=t.split("."),n=e;for(let l=0;l<o.length;l++){let a=o[l],i=0,s=a.indexOf("["),u=s==-1?-1:a.indexOf("]",s);for(;s!==-1&&u!==-1;){let d=a.substring(s+1,u);if(/^\d+$/.test(d)){let c=parseInt(d);if(i==0){let f=a.substring(0,s);n=n[f][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function Hn(e,t){return e.filter(n=>{for(let l in t){const a=t[l],i=zs(n,l);if(a!==i)return!1}return!0})}const Ao={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Bo={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},Kn={popoverWidth:{type:[String,Number],required:!1,default:280},popoverPlacement:{type:[String],required:!1,default:"top-start"},title:{type:[String],required:!1,default:"列设置"},resetText:{type:[String],required:!1,default:"重置"},leftFixedTitle:{type:[String],required:!1,default:"固定在左侧"},rightFixedTitle:{type:[String],required:!1,default:"固定在右侧"},unFixedTitle:{type:[String],required:!1,default:"不固定"},fixedLeftText:{type:[String],required:!1,default:"固定到列头"},fixedRightText:{type:[String],required:!1,default:"固定到列尾"},unFixedText:{type:[String],required:!1,default:"不固定"}};function Hs(e,t,o){return{inheritAttrs:!1,props:{...ge,...xe,...Ao,...Bo,...Kn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:a}=Fe.useFoxI18n(t),{emitEvent:i}=pe({componentName:e,validateHandler:{getValue(...x){return O.value}}},n.prop??l.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),d=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),f=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),p=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,x=>{p.value=x});const N=x=>{p.value=x,i("page-index-change",x)},g=r.ref(n.pageSize);r.watch(()=>n.pageSize,x=>{g.value=x});const m=x=>{g.value=x,i("page-size-change",x)},v=r.shallowRef({}),w=r.computed(()=>({...v.value,...n.params??{},...n.baseParams??{}})),T=r.ref(0),O=r.ref(),q=Ms();let V=!0;const F=()=>Array.isArray(n.data)?!0:re(n.autoLoad),R=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,x=>re(x)),M=async(x,_,H,G)=>{try{const te=await q.load("table",x,_,H,G,V,a.value);T.value=te.totalSize,O.value=te.page}catch(te){console.error("[FoxUI] Load Table Data Fail",te),T.value=0,O.value=[]}V=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([p,g],([x,_],[H,G])=>{_!==G&&(p.value=1,x=1),M(n.data,x,_,w.value)}),r.watch([()=>n.data,w],([x,_],[H,G])=>{F()&&(x!==H&&(V=!0),!(!Array.isArray(x)&&Me(x,H)&&Me(_,G))&&M(x,p.value,g.value,_))},{deep:!0});const D=(x={},_=!1)=>new Promise(H=>{v.value=r.toRaw(x??{}),r.triggerRef(v),_||(p.value=n.pageIndex??1),r.nextTick(async()=>{await M(n.data,p.value,g.value,w.value),H()})}),C=()=>{T.value=0,O.value=[]};let k=!1;const B=()=>{k||(k=!0,D())};F()&&!R.value&&D();const $=r.ref(null);r.provide(Ps,{currentRow:$});const b=(x,_)=>{$.value=x,i("current-change",x,_)},S=(x,_,H)=>{i("row-click",x,_,H),re(n.rowClickSelectable)===!0&&Y?.value.toggleRowSelection(x)},P=[],I=(x,_)=>{if(i("expand-change",x,_),re(n.uniqueExpansion))if(Array.isArray(_)&&_.length==0){const H=P.length;P.splice(0,H)}else{P.forEach(G=>{G!==x&&Y?.value.toggleRowExpansion(G,!1)});const H=P.length;P.splice(0,H,x)}},K=l.attrs.id??n.prop??l.attrs.name,E=Fo(),A=r.ref([]);let j=[];const U=()=>({srcColumnPropertyList:j.map(_=>({..._})),columnPropertyList:A.value}),Q=x=>{A.value=[...x],J()},ne=async()=>{const x=await E.load(K);x&&(A.value=x)},J=()=>{E.save(K,A.value)},ee=()=>{E.remove(K)};ne();const ae=x=>x?x.type?x.type:x.label?x.prop:"":"",Z=r.computed(()=>{if(typeof l.slots.default=="function"){const x=l.slots.default(),_=new Map;if(j=[],x.forEach(H=>{const G=H;if(!G.props)return;const te=ae(G.props);_.set(te,H);const ie={label:"",prop:""};Object.assign(ie,G.props),j.push(ie)}),A.value.length===j.length){const H=[];for(let G of A.value){const te=ae(G),ie=_.get(te);if(!ie)return x;if(G.visible===!1)continue;const ue=ie;ue.props.fixed=G.fixed,H.push(ue)}return H}return x}return[]}),L=r.shallowRef(new Map),W=({column:x,rowIndex:_})=>{const H=`${_}_${x.property}`;return L.value.get(H)??""},X=x=>typeof x=="function"?_=>{const H=[];let G=W(_);return G&&H.push(G),G=x(_),G&&H.push(G),H.length===0?"":H.join(" ")}:W,z=(x,_,H)=>{const G=`${x}_${_}`;H?L.value.set(G,H):L.value.delete(G),r.triggerRef(L)},Y=r.ref();return ye({clearSelection:()=>Y?.value.clearSelection(),getSelectionRows:()=>Y?.value.getSelectionRows(),toggleRowSelection:(x,_)=>{Y?.value.toggleRowSelection(x,_)},toggleRowSelectionByProp:(x,_)=>{if(!O.value)return;const H=Hn(O.value,x);H.length!==0&&H.forEach(G=>{Y?.value.toggleRowSelection(G,_)})},toggleAllSelection:()=>{Y?.value.toggleAllSelection()},toggleRowExpansion:(x,_)=>{Y?.value.toggleRowExpansion(x,_)},toggleRowExpansionByProp:(x,_)=>{if(!O.value)return;const H=Hn(O.value,x);H.length!==0&&H.forEach(G=>{Y?.value.toggleRowExpansion(G,_)})},setCurrentRow:x=>{Y?.value.setCurrentRow(x)},setCurrentRowByProp:x=>{if(!O.value)return;const _=Hn(O.value,x);_.length!==0&&Y?.value.setCurrentRow(_[0])},getCurrentRow:()=>$.value,clearSort:()=>{Y?.value.clearSort()},clearFilter:x=>{Y?.value.clearFilter(x)},doLayout:()=>{Y?.value.doLayout()},sort:(x,_)=>{Y?.value.sort(x,_)},scrollTo:(x,_)=>{Y?.value.scrollTo(x,_)},setScrollTop:x=>{Y?.value.setScrollTop(x)},setScrollLeft:x=>{Y?.value.setScrollLeft(x)},loadData:D,clearData:C,getData(){return O.value},getTotalSize(){return T.value},getPageIndex(){return p.value},getPageSize(){return g.value},getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:ee,setCellClassName:z}),()=>{const _={...qe(l.attrs),onCurrentChange:b,onRowClick:S,onExpandChange:I,data:O.value,ref:Y,class:u.value,"cell-class-name":X(n.cellClassName)},H={};l.slots.default&&(H.default=()=>Z.value),l.slots.append&&(H.append=l.slots.append),l.slots.empty&&(H.empty=l.slots.empty);const G=[],te=r.h(y.ElTable,_,H);G.push(te);let ie=null;if(typeof l.slots.pagination=="function")ie=l.slots.pagination();else if(n.showPagination){const Le={class:f.value,total:T.value,pageSize:g.value,"onUpdate:pageSize":m,pageSizes:n.pageSizes,currentPage:p.value,"onUpdate:currentPage":N,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ie=r.h(y.ElPagination,Le)}if(n.showSetting){const Le=[];ie&&Le.push(ie);const dr=r.h(y.ElIcon,{class:d.value},{default:()=>r.h(Ne.Setting)}),tf=Rr(n,Kn),nf=r.h(Wt,{...tf,tableRef:{getColumnSetting:U,setColumnSetting:Q,removeColumnSetting:ee}},{default:()=>dr});Le.push(nf);const rf=r.h("div",{class:c.value},Le);G.push(rf)}else ie&&G.push(ie);const ue={default:()=>G},De={...we(n,Ao,Bo,Kn),prop:`${n.prop}_item`};return De.contentClass=`${s}__wrap`,De.errorMarkClass="is-table-error",R.value&&F()&&(De["appear-listen"]=!0,De.onAppear=B),r.h(o,De,ue)}}}}const{componentName:Ks,create:Ws,scope:Ys}=oe("table-item"),Wn=Ws(Hs(Ks,Ys,me));function at(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function St(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Gs(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Us=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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}};function Xs(){const e=r.getCurrentInstance();return new Us(e.proxy)}function qo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=at(e,t),l=at(e,o);if(n!==l)return!1;const a=St(e,t),i=St(e,o);return a===i}function Zs(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let l=null;for(let a of n){let i=!1;if(o==="text")i=at(e,a)===t;else if(o==="item")i=qo(e,a,t);else{let s=St(e,a);s==null&&(s=at(e,a)),i=s===t}if(i){l=a;break}}return l}function Js(e){return{text:e,value:e}}function Qs(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const _o={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 eu(e,t,o){return{inheritAttrs:!0,props:{...ge,...xe,..._o},emits:["change","update:modelValue"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(null),d=r.ref(null),c=(R,M,D,C=!0)=>{const k=Zs(n,R,M,D);if(k===null){if(d.value===null)return;d.value=null,u.value=null,C&&(s("update:modelValue",null),s("change",null));return}if(!qo(n,k,d.value)){u.value=R;const $=r.toRaw(k);d.value=$;let b=null;n.valueType==="text"?b=at(n,$):n.valueType==="item"?b=$:b=St(n,$),C&&(s("update:modelValue",b),s("change",b))}},f=r.ref([]),p=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,R=>re(R)),N=Xs(),g=async(R,M)=>{if(R){const D=await N.load("radio",R,M);if(D.length>0)if(typeof D[0]=="string"){let B=D.map($=>Js($));f.value=B}else f.value=D}};r.watch([()=>n.source,()=>n.params],async([R,M])=>{g(R,M)},{immediate:!p.value});let m=!1;const v=()=>{m||(m=!0,g(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([R,M])=>{c(M,n.valueType,R,!1)});const w=e,T=r.computed(()=>({[w]:!0,[`is-${n.direction}`]:!0})),O=R=>{c(R,"value",f.value,!0)};let q=se(n,"hintText"),V=se(n,"hintVisible");const F=(R,M)=>{const D=[];return R.forEach((C,k)=>{const B=St(n,C),$=at(n,C);let b=Gs(n,C);a.value===!0&&(b=a.value),i.value===!0&&(b=i.value);const S=Qs(n,C,k)??{},P=`${B}_${k}`,I={...S,key:P,label:B,size:n.size,border:re(n.border)};b&&(I.disabled=b),n.itemType==="button"?D.push(r.h(y.ElRadioButton,I,{default:()=>[$]})):typeof M=="function"?D.push(r.h(y.ElRadio,I,{default:()=>M(C)})):D.push(r.h(y.ElRadio,I,{default:()=>[$]}))}),D};return()=>{const M={...qe(l.attrs),class:T.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:O},D=[],C={};l.slots.options?C.default=l.slots.options:C.default=()=>F(f.value,l.slots.text);const k=r.h(y.ElRadioGroup,M,C);D.push(k);const B={default:()=>D};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const b={...we(n,_o),hintText:q.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return p.value&&(b["appear-listen"]=!0,b.onAppear=v),r.h(o,b,B)}}}}const{componentName:tu,create:nu,scope:ru}=oe("radio-item"),Yn=nu(eu(tu,ru,me));function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function st(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function ou(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class lu{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 l=Be(this.proxy,t);return l===null?(console.error(`${t} component not found api function`),[]):(We(n)&&r.isReactive(n)&&(n=r.toRaw(n)),await l(o,n))}}function au(){const e=r.getCurrentInstance();return new lu(e.proxy)}function Lo(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=it(e,t),l=it(e,o);if(n!==l)return!1;const a=st(e,t),i=st(e,o);return a===i}function iu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const l=[];return t.forEach(a=>{for(let i of n){let s=!1;if(o==="text")s=it(e,i)===a;else if(o==="item")s=Lo(e,i,a);else{let u=st(e,i);u==null&&(u=it(e,i)),s=u===a}if(s){l.push(i);break}}}),l}function su(e){return{text:e,value:e}}function uu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Mo={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 cu(e,t,o){return{inheritAttrs:!0,props:{...ge,...xe,...Mo},emits:["change","update:modelValue"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref([]),d=r.ref([]),c=(R,M,D,C=!0)=>{const k=iu(n,R,M,D);if(k===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],C&&(s("update:modelValue",[]),s("change",[]));return}let B=!0;if(k.length!==d.value.length)B=!1;else for(let $=0;$<k.length;$++){const b=k[$],S=d.value[$];if(!Lo(n,b,S)){B=!1;break}}if(!B){d.value=k;let $=[],b=[];k.forEach(P=>{$.push(st(n,P)),n.valueType==="text"?b.push(it(n,P)):n.valueType==="item"?b.push(P):b.push(st(n,P))}),u.value=$;const S=r.toRaw(b);C&&(s("update:modelValue",S),s("change",S))}},f=r.ref([]),p=Te(r.computed(()=>n.lazyLoad),"lazyLoad",ke.Near,R=>re(R)),N=au(),g=async(R,M)=>{if(R){const D=await N.load("checkbox",R,M);if(D.length>0)if(typeof D[0]=="string"){let B=D.map($=>su($));f.value=B}else f.value=D}};r.watch([()=>n.source,()=>n.params],async([R,M])=>{g(R,M)},{immediate:!p.value});let m=!1;const v=()=>{m||(m=!0,g(n.source,n.params))};r.watch([()=>f.value,()=>n.modelValue],([R,M])=>{c(M,n.valueType,R,!1)});const w=e,T=r.computed(()=>({[w]:!0,[`is-${n.direction}`]:!0})),O=R=>{c(R,"value",f.value,!0)};let q=se(n,"hintText"),V=se(n,"hintVisible");const F=(R,M)=>{const D=[];return R.forEach((C,k)=>{const B=st(n,C),$=it(n,C);let b=ou(n,C);a.value===!0&&(b=a.value),i.value===!0&&(b=i.value);const S=uu(n,C,k)??{},P=`${B}_${k}`,I={...S,key:P,class:n.itemClass,label:B,size:n.size,border:re(n.border)};b&&(I.disabled=b),n.itemType==="button"?D.push(r.h(y.ElCheckboxButton,I,{default:()=>[$]})):typeof M=="function"?D.push(r.h(y.ElCheckbox,I,{default:()=>M(C)})):D.push(r.h(y.ElCheckbox,I,{default:()=>[$]}))}),D};return()=>{const M={...qe(l.attrs),class:T.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:ve(n.max),min:ve(n.min),onChange:O},D=[],C={};l.slots.options?C.default=l.slots.options:C.default=()=>F(f.value,l.slots.text);const k=r.h(y.ElCheckboxGroup,M,C);D.push(k);const B={default:()=>D};l.slots.default&&(B.label=l.slots.default),l.slots.fixedTip&&(B.fixedTip=l.slots.fixedTip);const b={...we(n,Mo),hintText:q.value,hintVisible:V.value,prop:`${n.prop??l.attrs.name}_item`};return p.value&&(b["appear-listen"]=!0,b.onAppear=v),r.h(o,b,B)}}}}const{componentName:fu,create:du,scope:hu}=oe("checkbox-item"),Gn=du(cu(fu,hu,me)),jo={modelValue:{type:[Number,String],required:!1}};function gu(e,t,o){return{props:{...ge,...xe,...jo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue",m=>ve(m)),d=e,c=r.computed(()=>({[d]:!0})),f=m=>{s("update:modelValue",m),s("change",m)};let p=se(n,"hintText"),N=r.ref(!1);const g=r.ref();return ye({}),()=>{const v={...qe(l.attrs),ref:g,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:f},w={},T=[],O=r.h(y.ElRate,v,w);T.push(O);const q={default:()=>T};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const F={...we(n,jo),hintText:p.value,hintVisible:N.value,prop:`${n.prop}_item`};return r.h(o,F,q)}}}}const{componentName:mu,create:pu,scope:yu}=oe("rate-item"),Un=pu(gu(mu,yu,me)),Po={modelValue:{type:[Boolean,String,Number],required:!1}};function bu(e,t,o){return{props:{...ge,...xe,...Po},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=pe({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=se(n,"modelValue"),d=e,c=r.computed(()=>({[d]:!0})),f=m=>{s("update:modelValue",m),s("change",m)};let p=se(n,"hintText"),N=se(n,"hintVisible");const g=r.ref();return ye({}),()=>{const v={...qe(l.attrs),ref:g,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:f},w={},T=[],O=r.h(y.ElSwitch,v,w);T.push(O);const q={default:()=>T};l.slots.default&&(q.label=l.slots.default),l.slots.fixedTip&&(q.fixedTip=l.slots.fixedTip);const F={...we(n,Po),hintText:p.value,hintVisible:N.value,prop:`${n.prop}_item`};return r.h(o,F,q)}}}}const{componentName:vu,create:wu,scope:Su}=oe("switch-item"),Xn=wu(bu(vu,Su,me)),zo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function xu(e,t,o){return{props:{...ge,...xe,...zo},emits:["change","update:modelValue","blur","focus","clear","input"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),s=r.ref(!1),{emitEvent:u}=pe({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),d=se(n,"modelValue"),c=e,f=r.computed(()=>({[c]:!0})),p=V=>{u("update:modelValue",V),u("change",V)};let N=se(n,"hintText"),g=r.ref(!1);const m=V=>{let R=V.target.value;s.value=!0,de(N.value)||(g.value=!0),u("focus",R,V)},v=V=>{setTimeout(()=>{g.value&&(g.value=!1),s.value=!1},0);let R=V.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),T.value||u("blur",R,V)},w=()=>{u("clear","")},T=r.ref(!1),O=V=>{T.value=V,u("visible-change",V),V||u("selected")},q=r.ref();return ye({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const F={...qe(l.attrs),ref:q,class:f.value,disabled:a.value||i.value,modelValue:d.value,"onUpdate:modelValue":p,onClear:w,onFocus:m,onBlur:v,onVisibleChange:O},R={};l.slots.option&&(R.default=l.slots.option);const M=[],D=r.h(y.ElTreeSelect,F,R);M.push(D);const C={default:()=>M};l.slots.default&&(C.label=l.slots.default),l.slots.fixedTip&&(C.fixedTip=l.slots.fixedTip);const B={...we(n,zo),hintText:N.value,hintVisible:g.value,prop:`${n.prop}_item`};return r.h(o,B,C)}}}}const{componentName:Tu,create:$u,scope:Cu}=oe("tree-select-item"),Zn=$u(xu(Tu,Cu,me)),Eu={},Nu={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"},ku=[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 Vu(e,t){return r.openBlock(),r.createElementBlock("svg",Nu,ku)}const Ou=Ie(Eu,[["render",Vu]]),{componentName:Sf,create:Iu,scope:xf}=oe("group-setting"),Ru={groupProp:{type:[String]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Du=Iu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:Ou,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Ru},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let l=null;const a=r.ref([]),i=Fo(),s=b=>b.length>1,u=()=>{const b=[],S=[...a.value];a.value=S.map((I,K)=>(I.visible!==!1&&b.push(I.prop),{...I,sortIndex:K})),a.value.length===b.length?g.value=!0:b.length>0&&(m.value=!0),T.value=b},d=b=>{const S=document.querySelectorAll(`.fox-group[prop="${b}"] > div > .fox-item[prop]`),P=[];return S.forEach(I=>{const K=I.querySelector(".label--string");let E="";K&&(E=K.textContent??"");const A=I.getAttribute("prop")??"",U=window.getComputedStyle(I,null).getPropertyValue("display");P.push({label:E,prop:A,sortIndex:0,visible:U!=="none"})}),P},c=async(b=!1)=>{l||(l=d(e.groupProp));const S=l.map(I=>({...I})),P=await i.load(e.groupProp);Array.isArray(P)&&P.forEach(I=>{S.some(K=>K.prop===I.prop?(Object.assign(K,I),!0):!1)}),a.value=S.sort((I,K)=>I.sortIndex-K.sortIndex),u(),b&&p(!1)},f=()=>{const b=l??[];a.value=b.map(S=>({...S})),u(),p()},p=(b=!0)=>{b&&i.save(e.groupProp,a.value);const S=a.value.map(P=>({...P}));t("change",S)},N=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),g=r.ref(!1),m=r.ref(!1),v=b=>{const S=[];a.value.forEach(I=>{b&&S.push(I.prop),I.visible=b}),g.value=!1,m.value=!1,a.value.length===S.length?g.value=!0:S.length>0&&(m.value=!0),T.value=S,p()},w=()=>{f()},T=r.ref([]),O=b=>{a.value.forEach(P=>{const I=b.indexOf(P.prop)!==-1;P.visible=I}),g.value=!1,m.value=!1;const S=a.value.length;b.length===S?g.value=!0:b.length>0&&(m.value=!0),p()},q=()=>{c()};r.onMounted(()=>{e.initDelay>0?setTimeout(()=>{c(!0)},e.initDelay):c(!0)});const V={currentRow:null,index:null},F=b=>b?b.dataset&&b.dataset.role==="row"?b:b.tagName.toLowerCase()!=="body"?(b=b.parentElement,F(b)):null:null,R=b=>{const S=b.currentTarget;S&&S.dataset&&(V.index=S.dataset.index)},M=b=>{V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null),V.index=null},D=b=>{const S=b.currentTarget;b.relatedTarget;const P=F(S);P&&(b.preventDefault(),V.currentRow&&V.currentRow!==P&&V.currentRow.classList.remove("is-dragover"),P.classList.add("is-dragover"),V.currentRow=P)},C=b=>{b.preventDefault(),V.currentRow&&(V.currentRow.classList.remove("is-dragover"),V.currentRow=null)},k=b=>{const S=b.currentTarget,P=F(S);if(!P)return;b.preventDefault();const I=Number(V.index),K=Number(P.dataset.index);if(I!==K){if(I<K){const E=a.value[I];a.value.splice(I,1),a.value.splice(K,0,E)}else{const E=a.value[I];a.value.splice(I,1),a.value.splice(K+1,0,E)}u(),p()}},B=b=>{const S=a.value[b];a.value.splice(b,1),a.value.splice(0,0,S),u(),p()},$=b=>{const S=a.value[b];a.value.splice(b,1),a.value.push(S),u(),p()};return n({refresh:()=>{l=null,c(!1)}}),{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:g,isIndeterminate:m,handleCheckAllChange:v,handleReset:w,checkedValue:T,handleCheckChange:O,onShow:q,onDragStart:R,onDragEnd:M,onDragOver:D,onDragLeave:C,onDrop:k,checkboxLabelStyle:N,toTop:B,toBottom:$}}}),Fu={class:"fox-group-setting"},Au={class:"fox-group-setting__header"},Bu={class:"fox-group-setting__body"},qu={class:"fox-group-setting__body-list","data-role":"container"},_u=["data-index","draggable"],Lu={class:"tools-item"};function Mu(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),d=r.resolveComponent("Download"),c=r.resolveComponent("FoxIcon"),f=r.resolveComponent("fox-tooltip"),p=r.resolveComponent("FoxCheckboxGroup"),N=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(N,r.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:r.withCtx(()=>[r.renderSlot(e.$slots,"default")]),default:r.withCtx(()=>[r.createElementVNode("div",Fu,[r.createElementVNode("div",Au,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=g=>e.isCheckAll=g),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),r.createVNode(s,{onClick:e.handleReset,link:"",type:"primary"},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),r.createElementVNode("div",Bu,[r.createVNode(p,{modelValue:e.checkedValue,"onUpdate:modelValue":t[6]||(t[6]=g=>e.checkedValue=g),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",qu,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,g=>(r.openBlock(),r.createElementBlock("div",{key:g.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":g.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[1]||(t[1]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[2]||(t[2]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[3]||(t[3]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[4]||(t[4]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[5]||(t[5]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:g.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(g.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Lu,[r.createVNode(f,{content:e.toTopText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toTop(g.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(f,{content:e.toBottomText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toBottom(g.sortIndex)},{default:r.withCtx(()=>[r.createVNode(d)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,_u))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Jn=Ie(Du,[["render",Mu]]),ju=Symbol.for("InnerPageScopeKey"),Pu=Symbol.for("PageWrapperKey");function zu(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){r.provide(ju,!0);const l={};r.provide(Pu,l);const a=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const f=n.slots.default();c.default=()=>f}return r.h(y.ElDialog,d,c)}}}}const{componentName:Tf,create:Hu,scope:$f}=oe("dialog-item"),Qn=Hu(zu());function Ku(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 l=e,a=r.computed(()=>({[l]:!0})),i=r.computed(()=>o.icon?{[`${l}__icon`]:!0,[`${l}__icon-${o.type}`]:!0}:{[`${l}__mark`]:!0,[`${l}__mark-${o.type}`]:!0}),s=r.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=r.computed(()=>{const c={[`${l}__text`]:!0,[`${l}__text-${o.type}`]:!0};return o.textPosition==="left"?c["is-left"]=!0:c["is-right"]=!0,c}),d=r.computed(()=>o.color?{color:o.color}:null);return()=>{let c=null;if(n.mark)c=n.mark()[0];else{const m={class:i.value,style:s.value};c=r.h(o.icon??"div",m)}const f={class:u.value,style:d.value},p=n.default?n.default():[],N=r.h("div",f,p),g={class:a.value};return o.textPosition==="right"?r.h("div",g,[c,N]):r.h("div",g,[N,c])}}}}const{componentName:Wu,create:Yu,scope:Cf}=oe("indicator"),er=Yu(Ku(Wu));function Gu(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 l=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(l)},500)}const Uu={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},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Xu(e,t){return{props:{...Uu},setup(o,n){const l=r.ref(!0),a=r.ref(null),i=r.computed(()=>{const c={[`${e}`]:!0,"is-truncated":o.truncated};return typeof o.class=="string"&&o.class.length>0&&o.class.split(/\s+/).forEach(p=>{c[p]=!0}),o.type&&(c[`${e}--${o.type}`]=!0),o.size&&(c[`${e}--${o.size}`]=!0),c}),s=c=>{if(c&&re(o.showOverflowTooltip)){const f=c.clientWidth;Gu(c,p=>{l.value=p<=f})}};let u=null;r.onMounted(()=>{if(!re(o.showOverflowTooltip))return;const c=a.value;s(c),c&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{s(c)}),u.observe(c))}),r.onUnmounted(()=>{u?.disconnect()});const d=(c,f)=>{let p=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const N=o.highlightFilter;if(c.indexOf(N)!==-1){const m=c.replace(new RegExp(N,"g"),`<span>${N}</span>`);f.innerHTML=m,f.class["is-highlight"]=!0,p=r.h(o.tag,f)}}else if(typeof o.highlightFilter=="function"){const N=o.highlightFilter(c);N&&(f.innerHTML=N,f.class["is-highlight"]=!0,p=r.h(o.tag,f))}return p};return()=>{const c={},f={...n.attrs,class:{...i.value},ref:a};let p=null;if(re(o.numberFormat)&&typeof n.slots.default=="function"){const v=n.slots.default();if(Array.isArray(v)&&v.length===1){const w=v[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const T=ve(o.digits),O=ve(o.decimalLength),q=re(o.autoPadding);let V=`${v[0].children}`,F=V.split("").reverse().join("");F=Ct(F,O,q,T,o.separator),V=F.split("").reverse().join(""),o.highlightFilter!==void 0&&(p=d(V,f)),p||(f.innerHTML=V,p=r.h(o.tag,f))}}}else{if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const v=n.slots.default();if(Array.isArray(v)&&v.length===1){const w=v[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const T=`${v[0].children}`;p=d(T,f),p||(f.innerHTML=T,p=r.h(o.tag,f))}}}p||(p=r.h(o.tag,f,{default:n.slots.default}))}if(!o.mark&&!o.icon&&!n.slots.mark)c.default=()=>p;else{let v=null;if(o.icon){const O={[`${e}__mark-wrap`]:!0};o.type&&(O[`${e}__mark-wrap--${o.type}`]=!0);const q={},V=o.color;V&&(q.color=V);const F={class:O,style:q};v=r.h("div",F,r.h(o.icon))}else if(n.slots.mark){const O={[`${e}__mark-wrap`]:!0};o.type&&(O[`${e}__mark-wrap--${o.type}`]=!0);const q={},V=o.color;V&&(q.color=V);const F={class:O,style:q};v=r.h("div",F,{default:n.slots.mark})}else{const O={[`${e}__mark`]:!0};o.type&&(O[`${e}__mark--${o.type??"default"}`]=!0);const q={},V=o.color;V&&(q["background-color"]=V);const F={class:O,style:q};v=r.h("div",F)}const w={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}},T=r.h("view",w,[v,p]);c.default=()=>T}const g={disabled:l.value};return c.content=n.slots.default,r.h(y.ElTooltip,g,c)}}}}const{componentName:Zu,create:Ju,scope:Ef}=oe("text"),tr=Ju(Xu(Zu)),Qu={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ne.ArrowUp}};function ec(e,t,o){return{props:{...Qu},emits:["click","update:modelValue"],setup(n,{emit:l}){const a=r.computed(()=>{const f={[`${e}`]:!0};return n.disabled?f[`${e}__disabled`]=!0:f[`${e}__${n.type}`]=!0,f}),i=se(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),d=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{l("update:modelValue",!i.value)};return()=>{const f=[];if(s.value){const m={class:u.value},v=r.h("span",m,[s.value]);f.push(v)}const p={class:d.value},N=o(n.icon,p);return N&&f.push(N),r.h("div",{class:a.value,onClick:c},f)}}}}const{componentName:tc,create:nc,scope:rc}=oe("more-button"),nr=nc(ec(tc,rc,(e,t)=>(e=e??Ne.ArrowUp,r.h(y.ElIcon,t,{default:()=>[r.h(e)]}))));function oc(e){return e===window}const Ho=e=>{const t=r.unref(e);if(oc(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:lc,create:ac,scope:kf}=oe("tour"),ic=ac({components:{Close:Ne.Close,ElPopover:y.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=lc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),a=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:g,maskWidth:m,maskHeight:v}=e,{width:w,height:T,left:O,top:q}=l.value,V=e.steps[n.active].offset??g,F=[O+w/2,q+T/2],R=Number(m||w),M=Number(v||T);return{width:`${R+ +V.left+V.right}px`,height:`${M+V.top+V.bottom}px`,top:`${F[1]-M/2-+V.top}px`,left:`${F[0]-R/2-+V.left}px`}}),s=g=>{g=="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=g=>g.popoverWidth??e.width,d=g=>g.location??e.location,c=()=>{const g=document.querySelector(`${e.steps[n.active].target}`),m=Ho(g);l.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},f=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&f()},N=(g,m=0)=>{g&&c(),e.steps,n.active=m,n.showTour=g,n.showPopup=g};return r.onMounted(()=>{N(e.modelValue,e.current)}),r.watch(()=>e.modelValue,g=>{N(g)}),{...r.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:d,close:f,handleClickMask:p}}}),sc={key:0,class:"fox-tour__content"},uc={key:0,class:"fox-tour__content-top"},cc={class:"fox-tour__content-inner"},fc={class:"fox-tour__content-bottom"},dc={class:"fox-tour__content-bottom-init"},hc={class:"fox-tour__content-bottom-operate"},gc={key:1,class:"fox-tour__content fox-tour__content-tile"},mc={class:"fox-tour__content-inner"};function pc(e,t,o,n,l,a){const i=r.resolveComponent("Close"),s=r.resolveComponent("fox-button"),u=r.resolveComponent("ElPopover");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(e.classes)},[r.withDirectives(r.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(d,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(d),width:e.popoverWidth(d)},{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",sc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",uc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...f)=>e.close&&e.close(...f))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",cc,r.toDisplayString(d.content),1),r.createElementVNode("div",fc,[r.createElementVNode("div",dc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",hc,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=f=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=f=>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",gc,[r.createElementVNode("div",mc,r.toDisplayString(d.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const rr=Ie(ic,[["render",pc]]),Ee=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,et=e=>e==null,Ko=10;function yc(e,t){return e>t&&e>Ko?"horizontal":t>e&&t>Ko?"vertical":""}function bc(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const s=i.touches[0];e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}else e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=yc(e.offsetX,e.offsetY))},start:i=>{if(n(),i.touches){const s=i.touches[0];e.startX=s.clientX,e.startY=s.clientY}else e.startX=i.clientX,e.startY=i.clientY;e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function vc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}class wc{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=vc()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=bc(),n=(l,a,i,s)=>{this.updateMove({x:l,y:a})};this.touchstart=l=>{this.moving||(o.start(l),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=l=>{this.moving&&(o.move(l),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Wo(e,t){return new wc(e,t)}var Yo;const or=typeof window<"u";or&&((Yo=window?.navigator)!=null&&Yo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let ut=[];const Go=e=>{const t=e;t.key==="Escape"&&ut.forEach(o=>o(t))},Sc=e=>{r.onMounted(()=>{ut.length===0&&document.addEventListener("keydown",Go),or&&ut.push(e)}),r.onBeforeUnmount(()=>{ut=ut.filter(t=>t!==e),ut.length===0&&or&&document.removeEventListener("keydown",Go)})},lr="fox-focus-trap.focus-after-trapped",ar="fox-focus-trap.focus-after-released",xc="fox-focus-trap.focusout-prevented",Uo={cancelable:!0,bubbles:!1},Tc={cancelable:!0,bubbles:!1},Xo="foxFocusAfterTrapped",Zo="foxFocusAfterReleased",$c=Symbol("foxFocusTrap"),ir=r.ref(),Yt=r.ref(0),sr=r.ref(0);let Gt=0;const Jo=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const l=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||l?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Cc=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},Qo=(e,t)=>{for(const o of e)if(!Cc(o,t))return o},Ec=e=>{const t=Jo(e),o=Qo(t,e),n=Qo(t.reverse(),e);return[o,n]},Nc=e=>e instanceof HTMLInputElement&&"select"in e,Ue=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&Nc(e)&&t&&e.select()}};function el(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const kc=()=>{let e=[];return{push:n=>{const l=e[0];l&&n!==l&&l.pause(),e=el(e,n),e.unshift(n)},remove:n=>{e=el(e,n),e[0]?.resume?.()}}},Vc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ue(n,t),document.activeElement!==o)return},tl=kc(),Oc=()=>Yt.value>sr.value,Ut=()=>{ir.value="pointer",Yt.value=window.performance.now()},nl=()=>{ir.value="keyboard",Yt.value=window.performance.now()},Ic=()=>(r.onMounted(()=>{Gt===0&&(document.addEventListener("mousedown",Ut),document.addEventListener("touchstart",Ut),document.addEventListener("keydown",nl)),Gt++}),r.onBeforeUnmount(()=>{Gt--,Gt<=0&&(document.removeEventListener("mousedown",Ut),document.removeEventListener("touchstart",Ut),document.removeEventListener("keydown",nl))}),{focusReason:ir,lastUserFocusTimestamp:Yt,lastAutomatedFocusTimestamp:sr}),Xt=e=>new CustomEvent(xc,{...Tc,detail:e}),{componentName:Vf,create:Rc,scope:Of}=oe("focus-trap"),Dc=Rc({props:{loop:{type:[Boolean]},trapped:{type:[Boolean,String],required:!1,default:!1},escape:{type:[Boolean],required:!1,default:!1},focusTrapEl:{type:Object},focusStartEl:{type:[Object,String],default:"first"}},emits:[Xo,Zo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let l,a;const{focusReason:i}=Ic();Sc(m=>{re(e.trapped)&&!s.paused&&o("release-requested",m)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=m=>{if(!e.loop&&!re(e.trapped)||s.paused)return;const{key:v,altKey:w,ctrlKey:T,metaKey:O,currentTarget:q,shiftKey:V}=m,{loop:F}=e,R=v==="Tab"&&!w&&!T&&!O,M=document.activeElement;if(R&&M){const D=q,[C,k]=Ec(D);if(C&&k){if(!V&&M===k){const $=Xt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(m.preventDefault(),F&&Ue(C,!0))}else if(V&&[C,D].includes(M)){const $=Xt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||(m.preventDefault(),F&&Ue(k,!0))}}else if(M===D){const $=Xt({focusReason:i.value});o("focusout-prevented",$),$.defaultPrevented||m.preventDefault()}}};r.provide($c,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),r.watch([n],([m],[v])=>{m&&(m.addEventListener("keydown",u),m.addEventListener("focusin",f),m.addEventListener("focusout",p)),v&&(v.removeEventListener("keydown",u),v.removeEventListener("focusin",f),v.removeEventListener("focusout",p))});const d=m=>{o(Xo,m)},c=m=>o(Zo,m),f=m=>{const v=r.unref(n);if(!v)return;const w=m.target,T=m.relatedTarget,O=w&&v.contains(w);re(e.trapped)||T&&v.contains(T)||(l=T),O&&o("focusin",m),!s.paused&&re(e.trapped)&&(O?a=w:Ue(a,!0))},p=m=>{const v=r.unref(n);if(!(s.paused||!v))if(!e.escape&&re(e.trapped)){const w=m.relatedTarget;!fn(w)&&!v.contains(w)&&setTimeout(()=>{if(!s.paused&&re(e.trapped)){const T=Xt({focusReason:i.value});o("focusout-prevented",T),T.defaultPrevented||Ue(a,!0)}},0)}else{const w=m.target;w&&v.contains(w)||o("focusout",m)}};async function N(){await r.nextTick();const m=r.unref(n);if(m){tl.push(s);const v=m.contains(document.activeElement)?l:document.activeElement;if(l=v,!m.contains(v)){const T=new Event(lr,Uo);m.addEventListener(lr,d),m.dispatchEvent(T),T.defaultPrevented||r.nextTick(()=>{let O=e.focusStartEl;Sr(O)||(Ue(O),document.activeElement!==O&&(O="first")),O==="first"&&Vc(Jo(m),!0),(document.activeElement===v||O==="container")&&Ue(m)})}}}function g(){const m=r.unref(n);if(m){m.removeEventListener(lr,d);const v=new CustomEvent(ar,{...Uo,detail:{focusReason:i.value}});m.addEventListener(ar,c),m.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!Oc())&&Ue(l??document.body,!0),m.removeEventListener(ar,d),tl.remove(s)}}return r.onMounted(()=>{re(e.trapped)&&N(),r.watch(()=>e.trapped,m=>{re(m)?N():g()})}),r.onBeforeUnmount(()=>{re(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Fc,create:Ac,scope:Rf}=oe("floating-window"),Bc=Symbol.for("InnerPageScopeKey"),qc=Symbol.for("PageWrapperKey"),_c={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},footerDraggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},Lc=Ac({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Dc},props:{..._c},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Fc,n=r.ref(e.modelValue),l=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,x=>{n.value=x});const a=r.computed(()=>n.value===!1?!1:!M.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),d=r.ref(e.bottom),c=r.computed(()=>{const x=["fox-floating-window"];return e.customClass&&x.push(e.customClass),x}),f=r.computed(()=>{const x={};return et(i.value)?x.left="auto":x.left=Ee(i.value),et(s.value)?x.top="auto":x.top=Ee(s.value),et(u.value)?x.right="auto":x.right=Ee(u.value),et(d.value)?x.bottom="auto":x.bottom=Ee(d.value),et(e.zIndex)||(x["z-index"]=Ee(e.zIndex)),et(F.value)||(x.height=F.value),et(R.value)||(x.width=R.value),x}),p=r.computed(()=>e.closeIcon??Ne.Close),N=r.computed(()=>e.collapseIcon??Ne.ArrowUp),g=r.computed(()=>e.collapseText??""),m=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),v=r.computed(()=>e.expandText??e.title??"展开"),w=r.computed(()=>({[`${o}__collapse-text`]:!0})),T=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),O=r.ref(),q=r.ref(null),V=r.ref(null),F=r.computed(()=>Ee(e.height)||""),R=r.computed(()=>Ee(e.width)||""),M=r.ref(re(e.collapse)),D=(x,_=!0)=>{M.value!==x&&(M.value=x,x?U():Q(),t("update:collapse",x))};r.watch(()=>e.collapse,x=>{D(x)});const C=()=>{k()},k=x=>{x=x??!M.value,D(x)};r.provide(Bc,!0);const B={setCollapse:D,setFixedNavVisible:x=>{E.value=x}};r.provide(qc,B);const $=()=>{typeof B.beforeClose=="function"?B.beforeClose(()=>{n.value=!1}):n.value=!1},b=r.ref(null),S=r.computed(()=>!e.fixedNavTeleport),P=r.computed(()=>{const x=["fox-floating-window__fixednav"];return e.expandClass&&x.push(e.expandClass),e.collapsePosition==="left"?x.push("is-left"):e.collapsePosition==="right"&&x.push("is-right"),x}),I=r.ref(""),K=r.computed(()=>{const x={};return I.value?x.top=I.value:e.collapseTop&&(x.top=e.collapseTop),x}),E=r.ref(M.value);let A=null;const j=()=>{typeof A=="function"&&(A(),A=null)},U=()=>{b.value&&b.value.classList.add("slide-in"),E.value=!0,A=()=>{b.value&&b.value.classList.remove("slide-in")}},Q=()=>{b.value&&b.value.classList.add("slide-out"),A=()=>{b.value&&b.value.classList.remove("slide-out"),E.value=!1}},ne=()=>{i.value=null,s.value=null,u.value=null,d.value=null},J={x:0,y:0},Z=Wo(x=>{if(!O.value)return;const _=O.value;if(ne(),e.origin==="left-top")i.value=_.offsetLeft,s.value=_.offsetTop,J.x=i.value,J.y=s.value;else if(e.origin==="left-bottom"){const H=document.documentElement.clientHeight||document.body.clientHeight;i.value=_.offsetLeft,d.value=H-(_.offsetTop+_.offsetHeight),J.x=i.value,J.y=d.value}else if(e.origin==="right-bottom"){const H=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight;u.value=H-(_.offsetLeft+_.offsetWidth),d.value=G-(_.offsetTop+_.offsetHeight),J.x=u.value,J.y=d.value}else{const H=document.documentElement.clientWidth||document.body.clientWidth;u.value=H-(_.offsetLeft+_.offsetWidth),s.value=_.offsetTop,J.x=u.value,J.y=s.value}},x=>{if(!O.value)return;const _=O.value;ne(),e.origin==="left-top"?(i.value=J.x+x.x,s.value=J.y+x.y,_.style.left=Ee(i.value),_.style.top=Ee(s.value)):e.origin==="left-bottom"?(i.value=J.x+x.x,d.value=J.y-x.y,_.style.left=Ee(i.value),_.style.bottom=Ee(d.value)):e.origin==="right-bottom"?(u.value=J.x-x.x,d.value=J.y-x.y,_.style.right=Ee(u.value),_.style.bottom=Ee(d.value)):(u.value=J.x-x.x,s.value=J.y+x.y,_.style.right=Ee(u.value),_.style.top=Ee(s.value))}),L={x:0,y:0},z=Wo(x=>{b.value&&(L.x=b.value.offsetLeft,L.y=b.value.offsetTop)},x=>{if(!b.value)return;const _=L.y+x.y;I.value=`${_}px`}),Y=()=>{if(O.value){const x=O.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");V.value=x}};return r.onMounted(()=>{if(e.draggable&&O.value){const x=[];q.value&&x.push(q.value),e.footerDraggable&&(Y(),V.value&&x.push(V.value)),Z.open(x)}e.collapse===!0&&D(e.collapse,!1),b.value&&z.open(b.value)}),r.onBeforeUnmount(()=>{e.draggable&&q.value&&Z.close(),b.value&&z.close()}),{classes:c,styles:f,isShow:a,closeIcon:p,onClose:$,dialogRef:O,headerRef:q,onClickToggle:C,collapseIcon:N,collapseText:g,collapseTextClasses:w,collapseIconClasses:T,expandIcon:m,expandText:v,isShowFixedNav:E,fixedNavRef:b,fixedNavClasses:P,fixedNavStyles:K,onAnimationEnd:j,teleportDisabled:l,fixedNavTeleportDisabled:S}}}),Mc={ref:"headerRef",class:"fox-floating-window__header"},jc={class:"fox-floating-window__title"},Pc={class:"fox-floating-window__tools"},zc={class:"fox-floating-window__body"},Hc={class:"fox-floating-window__fixednav__text"};function Kc(e,t,o,n,l,a){const i=r.resolveComponent("FoxIcon"),s=r.resolveComponent("FocusTrap");return r.openBlock(),r.createElementBlock(r.Fragment,null,[(r.openBlock(),r.createBlock(r.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[r.createVNode(r.Transition,{name:"fox-floating-window-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"dialogRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles),tabindex:"-1"},[r.createVNode(s,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:r.withCtx(()=>[r.createElementVNode("div",Mc,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",jc,r.toDisplayString(e.title),1),r.createElementVNode("div",Pc,[e.showCollapse?(r.openBlock(),r.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createElementVNode("span",{class:r.normalizeClass(e.collapseTextClasses)},r.toDisplayString(e.collapseText),3),r.createVNode(i,{class:r.normalizeClass(e.collapseIconClasses)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):r.createCommentVNode("",!0),e.showClose?(r.openBlock(),r.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):r.createCommentVNode("",!0)])])],512),r.createElementVNode("div",zc,[r.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[r.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(r.openBlock(),r.createBlock(r.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[r.withDirectives(r.createElementVNode("div",{ref:"fixedNavRef",class:r.normalizeClass(e.fixedNavClasses),style:r.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[r.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[r.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.expandIcon)))]),_:1}),r.createElementVNode("div",Hc,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=Ie(Lc,[["render",Kc]]);function Wc(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return jr(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Df,create:Yc,scope:Ff}=oe("domain-provider"),cr=Yc(Wc()),Gc={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 Uc(e,t){return{inheritAttrs:!1,props:Gc,setup(o,{slots:n}){if(tt&&window.IntersectionObserver){const l=new WeakMap;let a=new Map;const i=(p,N)=>{if(c===null){a.set(p,{visible:null,callback:N});return}l.has(p)&&c.unobserve(p),l.set(p,{visible:null,callback:N}),c.observe(p)},s=p=>{if(c===null){a.delete(p);return}l.has(p)&&(l.delete(p),c.unobserve(p))};let u=o.initialVisibleObserverSize;ga({acquire:()=>{const p=u>0;return u--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const f=(p,N,g)=>{c=new IntersectionObserver(m=>{for(let v of m){let w=!1;v.intersectionRatio>0&&(w=!0);const T=l.get(v.target);if(T)try{if(o.loadPolicy==="lazy"&&!w&&T.visible!==null)return;T.visible=w,T.callback(w)}catch(O){console.error(O)}}},{root:p,rootMargin:N,threshold:g}),a.forEach((m,v)=>{l.set(v,m),c?.observe(v)}),a.clear()};r.watch([()=>o.root,()=>o.disabled],([p,N])=>{if(N||!p||c)return;let g=null;typeof p=="string"?g=document.querySelector(p):g=p,g&&f(g,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Af,create:Xc,scope:Bf}=oe("rolling-provider"),fr=Xc(Uc()),rl=10;function Zc(e,t){return e>t&&e>rl?"horizontal":t>e&&t>rl?"vertical":""}function Jc(){const e=r.ref(0),t=r.ref(0),o=r.ref(0),n=r.ref(0),l=r.ref(0),a=r.ref(0),i=r.ref(0),s=r.ref(0),u=r.ref(0),d=r.ref(0),c=r.ref(""),f=()=>c.value==="vertical",p=()=>c.value==="horizontal",N=()=>{i.value=0,s.value=0,u.value=0,d.value=0,c.value="",o.value=0};return{move:v=>{const w=v.touches[0];i.value=w.clientX-e.value,s.value=w.clientY-t.value,l.value=w.clientX,a.value=w.clientY,u.value=Math.abs(i.value),d.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=Zc(u.value,d.value))},start:v=>{N(),e.value=v.touches[0].clientX,t.value=v.touches[0].clientY,o.value=Date.now()},reset:N,startX:e,startY:t,startTime:o,duration:n,moveX:l,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:d,direction:c,isVertical:f,isHorizontal:p}}const Qc=[vn,xn,Tn,$n,Nn,me,On,In,bt,Rn,Dn,Fn,An,Bn,qn,_n,Mn,jn,Pn,zn,Wt,Wn,Yn,Gn,Un,Xn,Zn,Jn,Qn,wt,zt,er,tr,nr,rr,ur,cr,fr],ef=new Hl(Qc,[Yl],"4.0.0");Object.defineProperty(h,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix}),Object.defineProperty(h,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert}),Object.defineProperty(h,"FoxAside",{enumerable:!0,get:()=>y.ElAside}),Object.defineProperty(h,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer}),Object.defineProperty(h,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete}),Object.defineProperty(h,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar}),Object.defineProperty(h,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop}),Object.defineProperty(h,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge}),Object.defineProperty(h,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb}),Object.defineProperty(h,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem}),Object.defineProperty(h,"FoxButton",{enumerable:!0,get:()=>y.ElButton}),Object.defineProperty(h,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup}),Object.defineProperty(h,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar}),Object.defineProperty(h,"FoxCard",{enumerable:!0,get:()=>y.ElCard}),Object.defineProperty(h,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel}),Object.defineProperty(h,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem}),Object.defineProperty(h,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader}),Object.defineProperty(h,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel}),Object.defineProperty(h,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag}),Object.defineProperty(h,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox}),Object.defineProperty(h,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton}),Object.defineProperty(h,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup}),Object.defineProperty(h,"FoxCol",{enumerable:!0,get:()=>y.ElCol}),Object.defineProperty(h,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse}),Object.defineProperty(h,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem}),Object.defineProperty(h,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition}),Object.defineProperty(h,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker}),Object.defineProperty(h,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider}),Object.defineProperty(h,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer}),Object.defineProperty(h,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker}),Object.defineProperty(h,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions}),Object.defineProperty(h,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem}),Object.defineProperty(h,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog}),Object.defineProperty(h,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider}),Object.defineProperty(h,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer}),Object.defineProperty(h,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown}),Object.defineProperty(h,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem}),Object.defineProperty(h,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu}),Object.defineProperty(h,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty}),Object.defineProperty(h,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter}),Object.defineProperty(h,"FoxForm",{enumerable:!0,get:()=>y.ElForm}),Object.defineProperty(h,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem}),Object.defineProperty(h,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader}),Object.defineProperty(h,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon}),Object.defineProperty(h,"FoxImage",{enumerable:!0,get:()=>y.ElImage}),Object.defineProperty(h,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer}),Object.defineProperty(h,"FoxInput",{enumerable:!0,get:()=>y.ElInput}),Object.defineProperty(h,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber}),Object.defineProperty(h,"FoxLink",{enumerable:!0,get:()=>y.ElLink}),Object.defineProperty(h,"FoxMain",{enumerable:!0,get:()=>y.ElMain}),Object.defineProperty(h,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu}),Object.defineProperty(h,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem}),Object.defineProperty(h,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup}),Object.defineProperty(h,"FoxOption",{enumerable:!0,get:()=>y.ElOption}),Object.defineProperty(h,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup}),Object.defineProperty(h,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader}),Object.defineProperty(h,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination}),Object.defineProperty(h,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm}),Object.defineProperty(h,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover}),Object.defineProperty(h,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper}),Object.defineProperty(h,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress}),Object.defineProperty(h,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio}),Object.defineProperty(h,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton}),Object.defineProperty(h,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup}),Object.defineProperty(h,"FoxRate",{enumerable:!0,get:()=>y.ElRate}),Object.defineProperty(h,"FoxResult",{enumerable:!0,get:()=>y.ElResult}),Object.defineProperty(h,"FoxRow",{enumerable:!0,get:()=>y.ElRow}),Object.defineProperty(h,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar}),Object.defineProperty(h,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect}),Object.defineProperty(h,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2}),Object.defineProperty(h,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton}),Object.defineProperty(h,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem}),Object.defineProperty(h,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider}),Object.defineProperty(h,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace}),Object.defineProperty(h,"FoxStep",{enumerable:!0,get:()=>y.ElStep}),Object.defineProperty(h,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps}),Object.defineProperty(h,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu}),Object.defineProperty(h,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch}),Object.defineProperty(h,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane}),Object.defineProperty(h,"FoxTable",{enumerable:!0,get:()=>y.ElTable}),Object.defineProperty(h,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn}),Object.defineProperty(h,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2}),Object.defineProperty(h,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs}),Object.defineProperty(h,"FoxTag",{enumerable:!0,get:()=>y.ElTag}),Object.defineProperty(h,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker}),Object.defineProperty(h,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect}),Object.defineProperty(h,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline}),Object.defineProperty(h,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem}),Object.defineProperty(h,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip}),Object.defineProperty(h,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer}),Object.defineProperty(h,"FoxTree",{enumerable:!0,get:()=>y.ElTree}),Object.defineProperty(h,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect}),Object.defineProperty(h,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2}),Object.defineProperty(h,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload}),h.AutocompleteItem=jn,h.Broadcast=dn,h.BroadcastKey=he,h.CascaderItem=Mn,h.CheckboxItem=Gn,h.Content=$n,h.DataItemsKey=nt,h.DateItem=Fn,h.DateUtils=Re,h.DialogItem=Qn,h.Domain=Rt,h.DomainKey=Oe,h.DomainProvider=cr,h.FloatingWindow=ur,h.FooterBar=Tn,h.FoxAutocompleteItem=jn,h.FoxCascaderItem=Mn,h.FoxCheckboxItem=Gn,h.FoxContent=$n,h.FoxDateItem=Fn,h.FoxDialogItem=Qn,h.FoxDomainProvider=cr,h.FoxFloatingWindow=ur,h.FoxFooterBar=Tn,h.FoxGroup=Nn,h.FoxGroupSetting=Jn,h.FoxHeaderBar=xn,h.FoxHintText=bt,h.FoxIndicator=er,h.FoxInputItem=Rn,h.FoxInputNumberItem=_n,h.FoxItem=me,h.FoxMapping=wt,h.FoxMoneyItem=qn,h.FoxMoreButton=nr,h.FoxPage=vn,h.FoxPrice=zt,h.FoxRadioItem=Yn,h.FoxRateItem=Un,h.FoxRollingProvider=fr,h.FoxRowItem=In,h.FoxSelectItem=Dn,h.FoxSlotItem=On,h.FoxSwitchItem=Xn,h.FoxTableItem=Wn,h.FoxTableMappingColumn=Pn,h.FoxTableRadioColumn=zn,h.FoxTableSetting=Wt,h.FoxText=tr,h.FoxTimeItem=An,h.FoxTimeSelectItem=Bn,h.FoxTour=rr,h.FoxTreeSelectItem=Zn,h.Group=Nn,h.GroupSetting=Jn,h.HeaderBar=xn,h.HintText=bt,h.Indicator=er,h.InputItem=Rn,h.InputNumberItem=_n,h.Item=me,h.Mapping=wt,h.MoneyItem=qn,h.MoreButton=nr,h.Page=vn,h.Price=zt,h.PriorityPolicy=ke,h.RadioItem=Yn,h.RateItem=Un,h.RollingProvider=fr,h.RowItem=In,h.SelectItem=Dn,h.SlotItem=On,h.SwitchItem=Xn,h.TableItem=Wn,h.TableMappingColumn=Pn,h.TableRadioColumn=zn,h.TableSetting=Wt,h.Text=tr,h.TimeItem=An,h.TimeSelectItem=Bn,h.Tour=rr,h.TreeSelectItem=Zn,h.UniqueID=no,h.ValidateSchema=_r,h.ValidateSchemaKey=je,h.cancelRaf=al,h.clearNonNumber=Sl,h.clone=un,h.compareTo=ln,h.createBroadcast=Vt,h.createValidateSchema=It,h.debounce=mt,h.debounceRef=Fl,h.decimalLength=Or,h.default=ef,h.defineBroadcast=Cl,h.defineConfigDomain=jr,h.defineDataItem=zr,h.defineDomain=mn,h.defineItem=pe,h.definePageState=Hr,h.deleteGlobalValidator=Vl,h.disabledProperty=Ce,h.divide=on,h.excludeProps=we,h.extend=Ze,h.floatData=$l,h.getGlobalValidateCheckEvents=Ar,h.getGlobalValidateResetEvents=qr,h.getPageContentAreaHeight=Ft,h.getPageContentAreaWidth=At,h.getPageFooterAreaHeight=yt,h.getPageHeaderAreaHeight=pt,h.getRootDomain=rt,h.hasSymbol=Tr,h.includeProps=Rr,h.indexOf=xl,h.installRules=Pr,h.integerLength=Vr,h.isArray=cl,h.isArrayLike=Cr,h.isBrowser=tt,h.isDate=hl,h.isESModule=pl,h.isEmptyString=de,h.isEqual=Me,h.isFunction=an,h.isHidden=kt,h.isInnerPage=ql,h.isMap=fl,h.isNil=fn,h.isNumberString=kr,h.isObject=We,h.isPlainObject=sn,h.isPromise=ml,h.isRegExp=Nr,h.isSet=dl,h.isString=Sr,h.isSubPage=_l,h.isSymbol=gl,h.isWindow=$r,h.lastIndexOf=Tl,h.makeArray=wl,h.merge=Er,h.multiply=br,h.negate=vr,h.nextTick=bl,h.numberFormat=Ct,h.objectToString=xr,h.once=Al,h.property=Te,h.raf=ul,h.readonlyProperty=$e,h.setGlobalValidateCheckEvents=Ol,h.setGlobalValidateHandler=Nl,h.setGlobalValidateMessages=Rl,h.setGlobalValidateResetEvents=Il,h.setGlobalValidator=kl,h.throttle=Mr,h.toBoolean=re,h.toNumber=ve,h.toPadding=Ae,h.toPx=ce,h.toPxDesc=Se,h.toTypeString=Et,h.toValue=se,h.tryTimes=hn,h.typeOf=Nt,h.unNumberFormat=wr,h.updatePageState=pn,h.useBroadcast=ht,h.useDomain=Pe,h.useExpose=ye,h.useInnerSize=Sn,h.usePageState=Dt,h.usePosition=Qr,h.useRect=Ho,h.useSize=wn,h.useTouch=Jc,h.valueLength=dt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|