@fox-js/foxui-pc 4.0.1-99 → 4.1.1-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +8417 -5647
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +161 -25
- package/package.json +6 -4
package/dist/index.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-desktop v4.0.0
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
+
* @fox-js/foxui-desktop v4.0.0 Thu Aug 22 2024 15:31:13 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),lt=require("@fox-js/validator"),p=require("element-plus"),Ee=require("@element-plus/icons-vue"),Le=require("@fox-js/i18n"),Ft=window,Yr=typeof window<"u";function Gr(){return typeof Ft<"u"?Ft.requestAnimationFrame||Ft.webkitRequestAnimationFrame||function(e){Ft.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ur(e){Yr?cancelAnimationFrame(e):clearTimeout(e)}const Ao=Gr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Vt(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=ye(e),t=ye(t),[e,t]=Sn(ye(e),ye(t)),o==1&&(n==1?e=Xt(e):t=Xt(t));let l=to(e,t);return o?o==2?"-"+ye(l):e.length<l.length?ye(l.substring(1)):"-"+ye(Xt(l)):ye(l)}function Xt(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 to(t,a)}function ye(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 Sn(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 to(e,t){[e,t]=Sn(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 ce=(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))(ce||{});function mt(e,t=0,o=ce.HALF_EVEN){if(o===ce.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=mt(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,dr(l[1],a,n,o)?(n?"-":"")+Zt(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&&dr(s,i,n,o)&&(i=Zt(i),i.length>t)?(n?"-":"")+Zt(a,parseInt(i[0]))+"."+i.substring(1):(n?"-":"")+a+"."+i}function dr(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ce.DOWN||!o&&n===ce.FLOOR||o&&n===ce.CEILING)return!1;if(n===ce.UP||o&&n===ce.FLOOR||!o&&n===ce.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 ce.HALF_DOWN:return!1;case ce.HALF_UP:return!0;case ce.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function Zt(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 an(e,t){e=e.toString(),t=t.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),t[0]=="-"&&(o++,t=t.substr(1)),e=ct(e),t=ct(t);let n=0,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=ct(e.replace(".","")),t=ct(t.replace(".","")),e.length<t.length){let d=e;e=t,t=d}if(t=="0")return"0";let i=t.length,s=0,u=[],f=i-1,c="";for(let d=0;d<i;d++)u[d]=e.length-1;for(let d=0;d<2*e.length;d++){let v=0;for(let T=t.length-1;T>=f&&T>=0;T--)u[T]>-1&&u[T]<e.length&&(v+=parseInt(e[u[T]--])*parseInt(t[T]));v+=s,s=Math.floor(v/10),c=v%10+c,f--}return c=ct(cl(c,a)),o==1&&(c="-"+c),c}function cl(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function ct(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function sn(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=ye(t.replace(".","")),l>=0){let f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=ye(e+new Array(l+1).join("0"));else if(l>f)e=e.replace(".",""),e=ye(e+new Array(l-f+1).join("0"));else if(l<f){e=e.replace(".","");let c=e.length-f+l;e=ye(e.substring(0,c)+"."+e.substring(c))}else l==f&&(e=ye(e.replace(".","")))}let a=0,i=t.length,s="",u=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),u.indexOf(".")>-1){let f=u.length-u.indexOf(".")-1;u=u.replace(".",""),i>u.length&&(f+=i-u.length,u=u+new Array(i-u.length+1).join("0")),a=f,s="0."+new Array(f).join("0")}for(o=o+2;a<=o;){let f=0;for(;parseInt(u)>=parseInt(t);)u=Vt(u,"-"+t),f++;s+=f,e?(e[0]=="."&&(s+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(s+="."),a++,u=u+"0")}return(n==1?"-":"")+ye(mt(s,o-2))}function un(e,t){return e=e.toString(),t=t.toString(),t=cn(t),Vt(e,t)}function cn(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(),hr(e),hr(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=un(e,an(t,mt(sn(e,t),0,ce.FLOOR)));return o+n}function hr(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function pr(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]=Sn(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 oe{value;static RoundingModes=ce;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=ye(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+ye(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=oe.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=oe.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 oe.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ce.HALF_EVEN){if(t=oe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return mt(t,o,n)}round(t=0,o=ce.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new oe(mt(this.value,t,o))}static floor(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,ce.FLOOR)}static ceil(t){return t=oe.validate(t),t.indexOf(".")===-1?t:oe.round(t,0,ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new oe(this.value):new oe(this.value).round(0,ce.CEILING)}static add(t,o){return t=oe.validate(t),o=oe.validate(o),Vt(t,o)}add(t){return new oe(Vt(this.value,t.getValue()))}static subtract(t,o){return t=oe.validate(t),o=oe.validate(o),un(t,o)}subtract(t){return new oe(un(this.value,t.getValue()))}static multiply(t,o){return t=oe.validate(t),o=oe.validate(o),an(t,o)}multiply(t){return new oe(an(this.value,t.getValue()))}static divide(t,o,n){return t=oe.validate(t),o=oe.validate(o),sn(t,o,n)}divide(t,o){return new oe(sn(this.value,t.getValue(),o))}static modulus(t,o){return t=oe.validate(t),o=oe.validate(o),mr(t,o)}modulus(t){return new oe(mr(this.value,t.getValue()))}static compareTo(t,o){return t=oe.validate(t),o=oe.validate(o),pr(t,o)}compareTo(t){return pr(this.value,t.getValue())}static negate(t){return t=oe.validate(t),cn(t)}negate(){return new oe(cn(this.value))}}function no(e,t){return oe.multiply(`${e}`,`${t}`)}function Tn(e,t,o=8){return oe.divide(`${e}`,`${t}`,o)}function fn(e,t){return e=`${e}`,t=`${t}`,oe.compareTo(e,t)}function ro(e){return oe.negate(e)}function Dt(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="",f=a.indexOf(".");f!=-1&&(s=a.substring(0,f),u=a.substring(f+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let c;if(n>0){let d="",v=s.split("").reverse();for(let T=0;T<v.length;T++)d+=v[T]+((T+1)%n==0&&T+1!=v.length?l:"");u.length==0?c=`${i}${d.split("").reverse().join("")}`:c=`${i}${d.split("").reverse().join("")}.${u}`}else u.length==0?c=`${i}${s}`:c=`${i}${s}.${u}`;return c}function oo(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const fl=ul,dl=Array.isArray,ml=e=>Ft(e)==="[object Map]",hl=e=>Ft(e)==="[object Set]",pl=e=>e instanceof Date,dn=e=>typeof e=="function",lo=e=>typeof e=="string",gl=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",vl=e=>We(e)&&dn(e.then)&&dn(e.catch),ao=Object.prototype.toString,Ft=e=>ao.call(e),mn=e=>Ft(e)==="[object Object]",io=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function yl(e){return e.__esModule||io&&e[Symbol.toStringTag]==="Module"}const bl=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Je(...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 f;Array.isArray(u)?f=s&&Array.isArray(s)?s:[]:f=s&&typeof s=="object"?s:{},t[i]=Je(l,f,u)}else u!==void 0&&(t[i]=u)}}return t}function hn(e,t,o=!1){if(!o)Je(!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)&&!mn(i))continue;a=hn(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)&&!mn(i))continue;a=hn(a,i,o),e[l]=a}else{if(typeof i=="function")continue;e[l]=i}}}return e}const Jt=bl?Promise.resolve():null;function xl(e,...t){Jt!==null?t&&t.length>0?Jt.then(()=>{e(t)}):Jt.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function te(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function be(e){return typeof e=="number"?e:Number(e)}const wl={"[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 Pt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):wl[o]||"object"}function so(e){return e&&typeof e=="object"&&"setInterval"in e}function uo(e){return!e||e.offsetParent===null}function co(e){let t=!!e&&"length"in e&&e.length,o=Pt(e);return o==="function"||so(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function fo(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 Sl(e,t=[]){let o=t;return e!=null&&(co(Object(e))?fo(o,typeof e=="string"?[e]:e):o.push(e)),o}function qe(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Pt(e),n=Pt(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],f=t[s];if(!qe(u,f))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(!qe(a,i))return!1}return!0}return!1}const st=typeof window<"u";function $n(e){return e==null}function mo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const fe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ho(e){return fe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),fe(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function po(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 go(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 gr(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 Tl(e,t=!0,o=!0){t?e=gr(e,".",/\./g):e=e.replace(/\./g,""),o?e=gr(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function $l(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(qe(e,o))return!0}):t.indexOf(e)}function Cl(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(qe(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function xt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function vo(e,...t){const o={};return t.forEach(n=>{for(const l in n)o[l]=e[l]}),o}function xe(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 El=(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},de=Symbol.for("BroadcastKey");class Cn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let l=!1;!t.name||t.name==="*"?l=!0:!t.name||t.name==="+"?(l=!1,t.name="*"):mo(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 At(e,t,o,n){const l=new Cn(t,e,o);if(n&&typeof n=="object")for(const a in n)l.on(a,n[a]);return l}function Nl(e,t,o){const n=o;if(n[de])return n[de];const l=r.inject(de,null),a=new Cn(l,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return n[de]=a,r.provide(de,a),r.onUnmounted(()=>{a.destroy(),n[de]=void 0}),a}function dt(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[de]??r.inject(de,null):r.inject(de,null)}const Ue=e=>e.default??e;class kl{error(t,o){const n=o,l=dt(o);l?l.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=dt(t);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=dt(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=dt(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 yo=new kl;function Vl(e){yo=e}function Pl(e,t){Ue(Ge).setValidator(e,t)}function Il(e){Ue(Ge).deleteValidator(e)}let bo=["blur","clear"];function Ol(e){bo=e}function xo(){return bo}let wo=["focus","change"];function Rl(e){wo=e}function So(){return wo}function Dl(e){Ue(Ge).messages(e)}function ft(...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 Tt(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 Le=Symbol("ValidateSchemaKey");class To{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=Tt(ft(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=Tt(n);const l=ft(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=yo;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?Ue(Ge).setValidator(t,o):this.validators[t]=o}getValidator(t){let o=this.validators[t]??null;return o||(o=this.parent?.getValidator(t)??null),o}deleteValidator(t,o=!1){o?Ue(Ge).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return Ue(Ge).hasValidator(t);{let n=Reflect.has(this.validators,t);return!n&&this.parent!==null&&(n=this.parent.hasValidator(t,!1)),n}}setRule(t){const o=ft(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Tt(t):this.rules=Tt([t]);const n=ft(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=ft(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=Ue(Ge),u=new s(l),f=this.proxy??i;return u.validate(i,{context:f}).then(d=>{if(d.pass)this.success();else{let v="error";Array.isArray(d.errors)&&d.errors.length>0&&(v=d.errors[0].message??v,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(v)}return d}).catch(d=>{const v=d.message??`${d}`;return this.error(v),d})}}return Promise.resolve({pass:!0})}}function Bt(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 To(t,o,e)}const vr=Symbol.for("EventEmitterKey");class Fl{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 ht(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function $o(e,t){let o=0;return function(...n){const l=new Date().getTime();l-o<t||(o=l,Reflect.apply(e,null,[...n]))}}function Al(e,t){const o=ht((n,l)=>{e=n,l()},t);return r.customRef((n,l)=>({get(){return n(),e},set(a){o(a,l)}}))}function Bl(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function En(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 Ve=Symbol("DomainKey"),et=Symbol("DataItemsKey");class Lt{_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 Ll=new Lt;function nt(){return Ll}function Me(e=null){return e||(e=r.getCurrentInstance()?.proxy??null),e?e[Ve]??r.inject(Ve,null):r.inject(Ve,null)}const Qt=Symbol("OriginalDateKey");function Nn(e,t,o=[],n){const l=r.getCurrentInstance(),a=l?.proxy;let i=r.inject(Ve,null);i===null&&(i=nt());const s=e||t.prop||t.name,u=new Lt(s);u.parent=i;const f=m=>{a[Qt]||v(m),u.set("modelValue",m)},c=()=>u.getForSelf("modelValue")??null,d=()=>a[Qt]??null,v=m=>{const y={};Je(!0,y,r.toRaw(m)),a[Qt]=y};r.isReactive(t)||typeof t=="function"?r.watch(t,m=>{u.merge(m,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&v(t.modelValue),a[Ve]=u,r.provide(Ve,u);let T=null,h=null;if(l!==null){const m=r.inject(de,null);T=At(a,m,s,n),u.broadcast=T,a[de]=T,r.provide(de,T),a.broadcast=(b,w,...V)=>Reflect.apply(T.emit,T,[b,w,...V]);const y=r.inject(Le,null);h=Bt(a,y,{componentName:""}),u.validateSchema=h,a[Le]=h,r.provide(Le,h),a[et]=new Map,a.validate=(b=!0)=>{const w=[];let V=null;const D={deep:!1};if(b===!0)V={name:"*"};else if(Array.isArray(b)&&b.length>0){const N=b;V={name:O=>O?N.indexOf(O)!==-1:!1}}else if(b!=null&&typeof b=="object"){const N=b;if(D.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const O=N.include;V={name:k=>k?O.indexOf(k)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const O=N.exclude;V={name:k=>k?O.indexOf(k)===-1:!1}}else V={name:"*"}}if(V){const N=T?.emitToChildren(V,"validate",D);N&&Reflect.apply([].push,w,N)}return w.length==1?w[0]:w.length>1?Promise.all(w).then(N=>{let O=[];return N.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(O=[...O,...k.errors])}),O.length>0?{pass:!1,errors:O}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(b,w=!0,V=!1)=>{if(V===!0){Reflect.ownKeys(b).forEach(N=>{let O=String(N);const R=No(u,O,{componentName:"",fieldName:O,pureDataValidate:!0},T,h);a[et].set(O,R);const I=b[O];I&&R.validateSchema.setRule(I)});return}if(w){const D=Reflect.ownKeys(b),N={name:O=>D.includes(O)};T?.emitToChildren(N,"setNameValidateRules",b,!1)}},a.clearValidate=(b=!0)=>{let w=null;if(b===!0)w={name:"*"};else if(Array.isArray(b)&&b.length>0){const V=b;w={name:D=>D?V.indexOf(D)!==-1:!1}}else if(b!=null&&typeof b=="object"){const V=b;if(Array.isArray(V.include)&&V.include.length>0){const D=V.include;w={name:N=>N?D.indexOf(N)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const D=V.exclude;w={name:N=>N?D.indexOf(N)===-1:!1}}else w={name:"*"}}w&&T?.emitToChildren(w,"clearValidate",!1)},a.resetFields=b=>{const w=c();if(!w)return;const V={};if(Je(!0,V,d()??{}),Array.isArray(b))b.forEach(D=>{w[D]=V[D]});else if(b&&Array.isArray(b.include))(b.include??[]).forEach(N=>{w[N]=V[N]});else if(b&&Array.isArray(b.exclude)){let D=b.exclude??[];Reflect.ownKeys(V).forEach(N=>{D.includes(N)||(w[N]=V[N])})}else Object.assign(w,V);a.clearValidate(b)},a.setModelValue=(b,w)=>{!w||w===s?f(b):T?.emitToChildren({name:w},"setModelValue",b)},a.getModelValue=()=>c()}return r.onUnmounted(()=>{u.destroy(),a[Ve]=void 0,a[et]&&(a[et].clear(),a[et]=void 0),T!==null&&(T.destroy(),a[de]=void 0),h!==null&&(h.destroy(),a[Le]=void 0)}),u}function Co(e,t,o=[]){const l=r.getCurrentInstance()?.proxy;let a=r.inject(Ve,null);a===null&&(a=nt());const i=e||t.prop||t.name,s=new Lt(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[Ve]=s,r.provide(Ve,s),r.onUnmounted(()=>{s.destroy(),l[Ve]=void 0}),s}function Eo(e,t,o){const l=Me(e)?.get("rules");if(!l)return;let a=l[o];a&&(Array.isArray(a)||(a=[a]),a.forEach(i=>{t.setRule(i)}))}function ge(e,t,o){const l=r.getCurrentInstance()?.proxy,a=t??"",i=r.inject(de,null),s=At(l,i,a,o);l[de]=s,r.provide(de,s),l.broadcast=(h,m,...y)=>Reflect.apply(s.emit,s,[h,m,...y]);const u=r.inject(Le,null);e.fieldName=e.fieldName??a;const f=Bt(l,u,e);l[Le]=f,r.provide(Le,f),Eo(l,f,a),l.validate=(h=null)=>{const m=[];let y=!1,b=!1;if(Array.isArray(h)&&h.indexOf(a)!==-1)b=!0,y=!0;else if(h&&typeof h=="object"){const w=h;w.ignoreHidden===!0&&uo(l.$el)?b=!1:(Array.isArray(w.include)&&w.include.indexOf(a)!==-1||Array.isArray(w.exclude)&&w.exclude.indexOf(a),b=!0),y=w.deep??!1}else typeof h=="boolean"&&(y=h),b=!0;if(b){const w=f?.validate();m.push(w)}if(y){let w=null;const V={deep:!1};if(h===!0)w={name:"*"};else if(Array.isArray(h)&&h.length>0){const D=h;w={name:N=>N?D.indexOf(N)!==-1:!1}}else if(h!=null&&typeof h=="object"){const D=h;if(V.ignoreHidden=D.ignoreHidden,Array.isArray(D.include)&&D.include.length>0){const N=D.include;w={name:O=>O?N.indexOf(O)!==-1:!1}}else if(Array.isArray(D.exclude)&&D.exclude.length>0){const N=D.exclude;w={name:O=>O?N.indexOf(O)===-1:!1}}else w={name:"*"}}if(w){const D=s.emitToChildren(w,"validate",V);Reflect.apply([].push,m,D)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(w=>{let V=[];return w.forEach(D=>{D.pass===!1&&Array.isArray(D.errors)&&(V=[...V,...D.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=h=>f?.setRule(h),l.setNameValidateRules=(h,m=!1)=>{const y=h[a];if(y&&f?.setRule(y),m){const b={name:w=>Reflect.ownKeys(h).includes(w)};s.emitToChildren(b,"setNameValidateRules",h,!1)}},l.clearValidate=(h=null)=>{(!Array.isArray(h)||h.indexOf(t??"")!==-1)&&f?.clear();let m=null;if(h===!0)m={name:"*"};else if(Array.isArray(h)&&h.length>0){const y=h;m={name:b=>b?y.indexOf(b)!==-1:!1}}else if(h!=null&&typeof h=="object"){const y=h;if(Array.isArray(y.include)&&y.include.length>0){const b=y.include;m={name:w=>w?b.indexOf(w)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const b=y.exclude;m={name:w=>w?b.indexOf(w)===-1:!1}}else m={name:"*"}}m&&s.emitToChildren(m,"clearValidate",!1)};const c=new Fl(l);l[vr]=c;const d=ht((h="validate")=>{h==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:xo()).forEach(h=>{c.on(h,m=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:So()).forEach(h=>{c.on(h,m=>{d("reset")})}),r.onUnmounted(()=>{s.destroy(),l[de]=void 0,f.destroy(),l[Le]=void 0,c.destroy(),l[vr]=void 0}),{broadcast:s,validateSchema:f,emitEvent:(h,...m)=>{Reflect.apply(c.emit,c,[h,...m])},onEvent:(h,m)=>{Reflect.apply(c.on,c,[m])},offEvent:(h,m)=>{Reflect.apply(c.off,c,[m])}}}function No(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=Bt({},l,o);a.validate=(c=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let v=!1,T=!1;if(Array.isArray(c)&&c.indexOf(i)!==-1)T=!0,v=!0;else if(c&&typeof c=="object"){const h=c;Array.isArray(h.include)&&h.include.indexOf(i)!==-1||Array.isArray(h.exclude)&&h.exclude.indexOf(i),T=!0,v=h.deep??!1}else typeof c=="boolean"&&(v=c),T=!0;if(T){const h=u?.validate();d.push(h)}if(v){let h=null;const m={deep:!1};if(c===!0)h={name:"*"};else if(Array.isArray(c)&&c.length>0){const y=c;h={name:b=>b?y.indexOf(b)!==-1:!1}}else if(c!=null&&typeof c=="object"){const y=c;if(Array.isArray(y.include)&&y.include.length>0){const b=y.include;h={name:w=>w?b.indexOf(w)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const b=y.exclude;h={name:w=>w?b.indexOf(w)===-1:!1}}else h={name:"*"}}if(h){const y=f.emitToChildren(h,"validate",m);Reflect.apply([].push,d,y)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(h=>{let m=[];return h.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(m=[...m,...y.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=c=>u?.setRule(c),a.setNameValidateRules=c=>{const d=c[i];d&&u?.setRule(d)};const f=At(null,n,i,a);return{broadcast:f,validateSchema:u}}const pe=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${se(e,t)}px`:"";function se(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(st){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 Ke="PageStateKey";function Re(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=se(e.top)),e.left!==null&&e.left!==void 0&&(t.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=se(e.right))),t}function pn(e,t,o={},n=!0,l=-1,a=-1,i=0,s=0){if(e.headerHeight=se(o.headerHeight??t.headerHeight),e.headerPadding=Re(o.headerPadding??t.headerPadding),e.footerHeight=se(o.footerHeight??t.footerHeight),e.footerPadding=Re(o.footerPadding??t.footerPadding),e.contentPadding=Re(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=se(u,a):e.height=se(a)-se(i,a)-se(s,a),e.width=se(o.width??t.width??0,l)}}function ko(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=se(l.top),n.safeAreaBottom=se(l.bottom),n.safeAreaLeft=se(l.left),n.safeAreaRight=se(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,f=e.get("footerBarHeight")??0;pn(n,a,t,!0,i,s,u,f);const c=r.reactive(n),d=e.getForParent(Ke);d&&(n.height=It(e,d),n.width=Ot(e,d),r.watch([()=>d.height,()=>d.width,()=>d.contentPadding,()=>d.headerMounted,()=>d.footerMounted],()=>{c.height=It(e,d),c.width=Ot(e,d)}));const v=!d;return r.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([T,h,m=-1,y=-1,b=0,w=0])=>{pn(c,h,t,v,m,y,b,w)}),e.set(Ke,c),c}function qt(e){return e.get(Ke)}function pt(e,t){if(t=t??e.get(Ke),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function gt(e,t){if(t=t??e.get(Ke),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function It(e,t){if(t=t??e.get(Ke),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=pt(e,t),n=gt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function Ot(e,t){return t=t??e.get(Ke),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 Ml(e){return!!e.getForParent(Ke)}var Ne=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ne||{});function en(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Te(e,t,o=1,n){const l=Me();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(en(u,n))return u}const i=e.value;return en(i,n)?i:null}):r.computed(()=>{const a=e.value;return en(a,n)?a:l?.get(t)})}function $e(e){return Te(e,"readonly",0,function(o){return te(o)})}function Ce(e){return Te(e,"disabled",0,function(o){return te(o)})}function ie(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 Vo=new Map,Rt=new Map;let gn=null;function _l(e){gn=e}function Po(e,t,o){if(o){let n=Rt.get(o);n||(n=new Map,Rt.set(o,n)),n.set(e,t)}else Vo.set(e,t)}function De(e,t,o){!o&&gn&&(o=gn(e)??void 0);let n=null;if(o){let l=Rt.get(o);l&&(n=l.get(t))}return n||(n=Vo.get(t)),n}function jl(e,t){for(let o in e){const n=e[o];Po(o,n,t)}}function Hl(e){Rt.delete(e)}function zl(){return{top:0,left:0,bottom:0,right:0}}function Kl(e=0,t=0){if(st){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,l={width:o,height:n-se(e,n)-se(t,n),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:n,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Wl{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=nt();if(this.initPageLayout(o,l),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=$o(()=>{const s={...o},u=document.documentElement.clientWidth||document.body.clientWidth,f=document.documentElement.clientHeight||document.body.clientHeight;s.width=u,s.height=f,this.initPageLayout(s,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=Je({},zl(),t.safeAreaInset),i=Kl(n,l),s=Je({},i.pageLayout,t.pageLayout);o=o??nt(),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){_l(t)}setAPI(t,o,n){Po(t,o,n)}getAPI(t,o,n){return De(t,o,n)}batchSetAPI(t,o){jl(t,o)}clearScopeAPI(t){Hl(t)}getRootDomain(){return nt()}}const Yl=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload],Gl=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Ul=e=>{Yl.forEach(t=>{let o=t.name;typeof o=="string"?(o=`Fox${o.slice(2)}`,e.component(o,t)):e.use(t)}),Gl.forEach(t=>{e.use(t)})};function re(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 me={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}},we={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}},Io={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Oo={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!0},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Ro=[];for(const e in Oo)Ro.push(e);function ve(e,t=null){if(t||(t=r.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const Xl=Symbol.for("InnerPageScopeKey"),Zl=(e,t)=>({inheritAttrs:!0,props:{...me,...Io,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=Nn(o.name,o);if(l){const f=ko(l,o);ve({getPageContentHeight:()=>It(l,f),getPageContentWidth:()=>Ot(l,f),getPageHeaderHeight:()=>pt(l,f),getPageFooterHeight:()=>gt(l,f)});const c=r.inject(Xl,!1);f&&c&&(f.contentHeight="100%")}const a=r.computed(()=>({[e]:!0})),i=r.computed(()=>({})),s=r.getCurrentInstance(),u=(f,c=!1)=>{const d=s?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(f,!0,c)};return r.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[d,v])=>{if(f&&d){const T=r.toRaw(d),h=r.toRaw(f),m=h?Reflect.ownKeys(h):[];(T?Reflect.ownKeys(T):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),u(h)}if(c&&v){const T=r.toRaw(v),h=r.toRaw(c),m=h?Reflect.ownKeys(h):[];(T?Reflect.ownKeys(T):[]).forEach(b=>{m.includes(b)||(h[b]=[])}),u(h,!0)}},{deep:!0}),r.onMounted(()=>{if(o.rules){const f=r.toRaw(o.rules);u(f)}if(o.pureDataRules){const f=r.toRaw(o.pureDataRules);u(f,!0)}}),r.onBeforeUnmount(()=>{}),{classes:a,styles:i}}}),{componentName:Jl,create:Ql,scope:yf}=re("page"),ea=Ql(Zl(Jl));function ta(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 ke=(e,t)=>{const o=e.__vccOpts||e;for(const[n,l]of t)o[n]=l;return o},kn=ke(ea,[["render",ta]]);function Vn(e){const t=r.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Pn(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 na=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,a){const i=Me(),s=i?qt(i):null;s&&(s.headerMounted=!0);const u=r.computed(()=>{const g=e;return{[g]:!0,[`${g}--border`]:l.border,[`${g}--fixed`]:l.fixed,[`${g}--safe-area-inset-top`]:l.safeAreaInsetTop}}),f=l.height!==null&&l.height!==void 0?se(l.height):null,c=r.computed(()=>{const g={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const A=Re(l.padding??s.headerPadding);return Object.assign(g,A),f&&(s.headerHeight=f),g.height=s.headerHeight,g.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,g.safeAreaTop>0&&(g.top=g.safeAreaTop+(A.top??0),g.height=g.height+g.safeAreaTop),g}if(f&&(g.height=f),l.padding){const A=Re(l.padding);Object.assign(g,A)}return g}),d=r.ref(null),v=()=>{if(s&&d.value&&d.value.offsetParent!==null){if(!n){const g=Vn(d.value);s.headerAllHeight=g.height}return s.headerMounted=!0,!0}return!1};let T=null;r.onMounted(()=>{s&&(En(v,50,5,50,!0),window.ResizeObserver&&d.value&&(T=new window.ResizeObserver(()=>{v()}),T.observe(d.value)))}),r.onUnmounted(()=>{s&&(s.headerMounted=!1,T&&(T.disconnect(),T=null))});const h=r.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=`${c.value.bottom}px`),g}),m=r.computed(()=>{const g={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(g.top=`${c.value.safeAreaTop}px`),g}),y=r.computed(()=>{const g={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(g.top=`${c.value.safeAreaTop}px`),g}),b=r.computed(()=>!!l.leftShow),w=r.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),V=r.computed(()=>l.titleShow?l.title||l.titleIcon||a.slots.titleIcon||a.slots.default:!1),D=r.computed(()=>l.rightShow?l.rightText||l.rightIcon||a.slots.rightIcon||a.slots.right:!1),N=r.computed(()=>l.leftIcon),O=r.computed(()=>N.value||a.slots.leftIcon),k=r.computed(()=>l.titleIcon),R=r.computed(()=>l.titleIcon||a.slots.titleIcon),I=r.computed(()=>l.rightIcon),F=r.computed(()=>l.rightIcon||a.slots.rightIcon);function W(){a.emit("back")}function j(){a.emit("click-title")}function S(){a.emit("click-right")}function x(){a.emit("click-right-text")}return{headerBarRef:d,classes:u,styles:h,mHeaderShow:w,leftStyles:m,rightStyles:y,mLeftShow:b,mTitleShow:V,mRightShow:D,mLeftIcon:N,hasLeftIcon:O,mTitleIcon:k,hasTitleIcon:R,mRightIcon:I,hasRightIcon:F,handleLeft:W,handleCenter:j,handleRight:S,handleRightText:x}}}),{componentName:ra,create:oa,scope:la}=re("header-bar"),aa=oa(na(ra,la,Ee.ArrowLeft)),ia={key:1,class:"fox-header-bar__title"},sa={key:0,class:"title-text"};function ua(e,t,o,n,l,a){return e.mHeaderShow?(r.openBlock(),r.createElementBlock("view",{key:0,ref:"headerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(r.openBlock(),r.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:r.normalizeStyle(e.leftStyles)},[r.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[0]||(t[0]=(...i)=>e.handleLeft&&e.handleLeft(...i)),class:"left-icon"},[r.renderSlot(e.$slots,"leftIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mLeftIcon)))])])):r.createCommentVNode("",!0),e.leftText?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[1]||(t[1]=(...i)=>e.handleLeft&&e.handleLeft(...i))},r.toDisplayString(e.leftText),1)):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0),e.mTitleShow?(r.openBlock(),r.createElementBlock("view",ia,[r.renderSlot(e.$slots,"default",{},()=>[e.title?(r.openBlock(),r.createElementBlock("view",sa,r.toDisplayString(e.title),1)):r.createCommentVNode("",!0),e.hasTitleIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[2]||(t[2]=(...i)=>e.handleCenter&&e.handleCenter(...i)),class:"title-icon"},[r.renderSlot(e.$slots,"titleIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mTitleIcon)))])])):r.createCommentVNode("",!0)])])):r.createCommentVNode("",!0),e.mRightShow?(r.openBlock(),r.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:r.normalizeStyle(e.rightStyles)},[r.renderSlot(e.$slots,"right",{},()=>[e.rightText?(r.openBlock(),r.createElementBlock("view",{key:0,onClick:t[3]||(t[3]=(...i)=>e.handleRightText&&e.handleRightText(...i))},r.toDisplayString(e.rightText),1)):r.createCommentVNode("",!0),e.hasRightIcon?(r.openBlock(),r.createElementBlock("view",{key:1,onClick:t[4]||(t[4]=(...i)=>e.handleRight&&e.handleRight(...i)),class:"right-icon"},[r.renderSlot(e.$slots,"rightIcon",{},()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.mRightIcon)))])])):r.createCommentVNode("",!0)])],4)):r.createCommentVNode("",!0)])],6)):r.createCommentVNode("",!0)}const In=ke(aa,[["render",ua]]);function ca(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=Me(),i=a?qt(a):null,s=r.computed(()=>{const h=e;return{[h]:!0,[`${h}--${n.align}`]:!0,[`${h}--border`]:n.border,[`${h}--fixed`]:n.fixed,[`${h}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?se(n.height):null,f=r.computed(()=>{const h={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const m=Re(n.padding??i.footerPadding);return Object.assign(h,m),u&&(i.footerHeight=u),h.height=i.footerHeight,h.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,h.safeAreaBottom>0&&(h.height=h.height+h.safeAreaBottom,h.bottom=h.safeAreaBottom+(m.bottom??0)),h}if(u&&(h.height=u),n.padding){const m=Re(n.padding);Object.assign(h,m)}return h}),c=r.ref(null),d=()=>{if(i&&c.value&&c.value.offsetParent!==null){if(!o){const h=Vn(c.value);i.footerAllHeight=h.height}return i.footerMounted=!0,!0}return!1};let v=null;r.onMounted(()=>{i&&(En(d,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{d()}),v.observe(c.value)))}),r.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const T=r.computed(()=>{const h={};return f.value.height!==null&&f.value.height!==void 0&&(h.height=pe(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(h.paddingTop=pe(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(h.paddingLeft=pe(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(h.paddingRight=pe(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(h.paddingBottom=pe(f.value.bottom)),h});return{footerBarRef:c,classes:s,styles:T}}}}const{componentName:fa,create:da,scope:bf}=re("footer-bar"),ma=da(ca(fa));function ha(e,t,o,n,l,a){return r.openBlock(),r.createElementBlock("view",{ref:"footerBarRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.renderSlot(e.$slots,"default")],6)}const On=ke(ma,[["render",ha]]);function pa(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Me(),l=r.computed(()=>({[e]:!0})),a=n?qt(n):null,i=r.computed(()=>{const f={};if(n&&a){if(o.padding){const T=Re(o.padding);Object.assign(a.contentPadding,T)}const c=pt(n,a),d=gt(n,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,f.height=v,a.contentPadding.top||c>0){const T=(a&&a.contentPadding&&a.contentPadding.top)??0;f.paddingTop=`${c+T}px`}if(a.contentPadding.bottom||d>0){const T=(a&&a.contentPadding&&a.contentPadding.bottom)??0;f.paddingBottom=`${d+T}px`}return a.contentPadding.left&&(f.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(f.paddingRight=`${a.contentPadding.right}px`),f}if(o.padding){const c=Re(o.padding);c.left&&(f.paddingLeft=`${c.left}px`),c.top&&(f.paddingTop=`${c.top}px`),c.right&&(f.paddingRight=`${c.right}px`),c.bottom&&(f.paddingBottom=`${c.bottom}px`)}return f}),s=r.ref(null),u=()=>{if(a&&s.value){const f=Pn(s.value);a.contentInnerHeight=f.height,a.contentInnerWidth=f.width}};return r.onMounted(()=>{u()}),n&&a&&r.watch([()=>pt(n),()=>gt(n)],([])=>{u()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:ga,create:va,scope:xf}=re("content"),ya=va(pa(ga));function ba(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 Rn=ke(ya,[["render",ba]]),lt="GroupStateKey",Do=Symbol.for("GroupScopeKey");function Mt(){return r.inject(Do,!1)}function _t(e=!0){r.provide(Do,e)}function xa(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const l=t[n];$n(l)||(e[n]=l)})}function wa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};xa(n,t);const l=r.shallowRef(n),a=r.markRaw({layout:l,passport:0,order:{index:0}});return e.set(lt,a),a}function tn(e,t,o=-1,n=-1,l=!1,a,i,s){const u=e.get(lt);if(!u)return;const f=e.get("groupLayout")??{};o===-1&&(o=f.column??1),n===-1&&(n=f.gutter??0),a||(a=f.minItemWidth??-1),i||(i=f.maxItemWidth??-1);const c=se(a),d=se(i);s||(s=f.type??"grid");const v=()=>{const T=t===""||t===-1,h=se(t);let m=be(o);const y=se(n);if(!T){let V=(h-(m-1)*y)/m;for(;d!==-1&&V>d;)m++,V=(h-(m-1)*y)/m;for(;c!==-1&&m>1&&V<c;)m--,V=(h-(m-1)*y)/m}let b=!1;const w=u.layout;w.value.width=t,w.value.column!==m&&(w.value.column=m,b=!0),w.value.gutter!==y&&(w.value.gutter=y,b=!0),w.value.type!==s&&(w.value.type=s,b=!0),b&&r.triggerRef(w)};if(l)v();else{const T=++u.passport;setTimeout(()=>{T===u.passport&&v()},50)}}function jt(e,t=!1){let o;return t?o=e.getForParent(lt):o=e.get(lt),o.layout}function Ht(e,t=!1){let o;return t?o=e.getForParent(lt):o=e.get(lt),o.order}function yr(e,t=1){if(t==="stretch")return-1;const o=be(t);return o===-1?100:100*o/e}function zt(e,t,o=1,n=0,l){const a={};let i=0;l?i=se(l):i=yr(t.column,o),i>0&&(a.width=`${i}%`);const s=yr(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 Kt(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,f=u+(t.column-u);return e.index=e.index+(f-u),{"grid-column":`${u+1} / -1`}}let l=be(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=be(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 Fo=Symbol("RollingStateKey");function Sa(e){r.provide(Fo,e)}function Ta(){return r.inject(Fo,null)}function vn(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 $a(e){let t=vn(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=vn(o),document.body.removeChild(o)}return t}function Ca(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const Ea={...me,...Io,...Oo};function Na(e,t,o){return{props:Ea,emits:["update:collapse"],setup(n,l){const a=Nn(n.name,n,Ro),i=wa(a,{type:n.type}),s=Mt();_t(!0);const u=n.rollingDisplay?Ta():null,f=r.ref(null),c=r.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),d=r.computed(()=>s&&a?jt(a,!0).value:null),v=r.getCurrentInstance(),T=($,L=!1)=>{const E=v?.proxy;E&&typeof E.setNameValidateRules=="function"&&E.setNameValidateRules($,!0,L)};r.watch([()=>n.rules,()=>n.pureDataRules],([$,L],[E,z])=>{if($&&E){const _=r.toRaw(E),U=r.toRaw($),ee=U?Reflect.ownKeys(U):[];(_?Reflect.ownKeys(_):[]).forEach(ue=>{ee.includes(ue)||(U[ue]=[])}),T(U)}if(L&&z){const _=r.toRaw(z),U=r.toRaw(L),ee=U?Reflect.ownKeys(U):[];(_?Reflect.ownKeys(_):[]).forEach(ue=>{ee.includes(ue)||(U[ue]=[])}),T(U,!0)}},{deep:!0});const h=e,m=r.computed(()=>{const $={};$.height=A.value;const L=s?Ht(a,!0):null;if(d.value&&L){if(d.value.type==="grid"){const E=Kt(L,d.value,n.span,n.offset);Object.assign($,E)}else if(d.value.type==="flow"){const E=zt(L,d.value,n.span,n.offset,n.width);Object.assign($,E)}}else if(n.width){const E=pe(n.width);$.width=E}return $}),y=r.computed(()=>{const $=i.layout.value.type;return $==="grid"||$==="flow"?{[`${h}--${$}`]:!0,[`${h}--${$}-justify-${n.justify}`]:!0,[`${h}--${$}-align-${n.align}`]:!0,[`${h}--gutter`]:!0}:{[`${h}--${$}`]:!0,[`${h}--gutter`]:!0}}),b=r.computed(()=>{if(i.layout.value.type==="grid"){let L="";if(n.columnWidth)L=`repeat(auto-fill, ${n.columnWidth})`;else{const E=Ca(I.value,i.layout.value.column,i.layout.value.gutter);L=`repeat(${i.layout.value.column}, ${E})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":L}}}),w=r.toRef(n,"title"),V=r.toRef(n,"gutter"),D=r.toRef(n,"column"),N=r.computed(()=>s||c.value?!0:te(n.isWrap)),O=[],k=$=>{O.push($)},R=()=>{let $=O.length;O.splice(0,$)},I=r.ref(-1),F=$=>{const L=Pn($).width;L>0&&L!==I.value&&(I.value=L)};tn(a,I.value,D.value,V.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&r.watch([I,D,V],([$,L,E])=>{i.order.index=0,tn(a,$,L,E,!1,n.minItemWidth,n.maxItemWidth,n.type)});const W=r.computed(()=>P.value?n.expandText??"":n.collapseText??""),j=r.computed(()=>({[`${e}__header-collapse-text`]:!0})),S=r.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!P.value,"is-collapse":P.value})),x=r.ref(),g=r.ref(),A=r.computed(()=>H.value||pe(n.height)||""),P=r.ref(!1),H=r.ref(""),C=r.ref(!1);let B=-1;const M=($,L=!0)=>{const E=x.value;if(E&&P.value!==$){if(B=B===-1?$a(E):B,C.value=!0,L)if(E.style["will-change"]="height",E.ontransitionend=function(){E.ontransitionend=null,this.style["will-change"]="auto",$||(H.value="",C.value=!1)},$){let z=0;n.collapseHeight?z=n.collapseHeight:g.value&&g.value.classList.contains(`${e}__header`)&&(z=g.value.offsetHeight),H.value=`${B}px`,r.nextTick(()=>{H.value=`${z}px`})}else H.value=`${B}px`;else if($){let z=0;n.collapseHeight?z=n.collapseHeight:g.value&&g.value.classList.contains(`${e}__header`)&&(z=g.value.offsetHeight),H.value=`${z}px`}else C.value=!1,H.value=`${B}px`;P.value=$,l.emit("update:collapse",$)}};r.watch(()=>n.collapse,$=>{M($)});const Y=()=>{Z()},Z=$=>{$=$??!P.value,M($)};ve({toggleCollapse:Z,doLayout:()=>{O[0]&&(F(O[0]),tn(a,I.value,D.value,V.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let ne=null,le=!0;const X=$=>{if(n.rules){const L=r.toRaw(n.rules);T(L)}if(n.pureDataRules){const L=r.toRaw(n.pureDataRules);T(L,!0)}if(st&&($&&M(te(n.collapse),!1),n.autoLayout&&Array.isArray(O)&&O.length>0)){const L=O[0];F(L),window.ResizeObserver&&(ne=new window.ResizeObserver(()=>{F(L)}),ne.observe(L))}},Q=()=>{ne?.disconnect(),ne=null},q=!c.value||u?.acquire();q&&(f.value=c.value?!0:null),r.onMounted(()=>{if(q&&(X(le),le=!1),c.value&&u){let $=null,L=u.initialHeight;u.observe(x.value,E=>{if(E!==f.value)if(E)f.value=!0,P.value||(H.value=""),$=setTimeout(()=>{$=null,f.value!==!1&&(X(le),le=!1)},100);else{if($!==null&&clearTimeout($),f.value=!1,!P.value)if(le)H.value=u.initialHeight;else{let z=vn(x.value);z<=0?H.value=L:(H.value=`${z}px`,L=H.value)}le||Q()}})}}),r.onUnmounted(()=>{ne?.disconnect(),u&&u.unobserve(x.value)});const K=($="right")=>{const L=[];if(W.value){const _={class:j.value},U=r.h("span",_,[W.value]);L.push(U)}const E={class:S.value},z=o(n.collapseIcon,E);return z&&L.push(z),L.length>0?r.h("div",{class:{[`${h}__header-collapse`]:!0,[`is-${$}`]:!0},onClick:Y},L):null},G=($,L,E,z)=>{const _={...y.value};return L===0&&(_[`${h}__first`]=!0),E>=z-1&&(_[`${h}__last`]=!0),r.h("div",{ref:k,key:`${L}`,class:_,style:b.value},$)};return()=>{if(c.value&&f.value!==!0){const _=n.tag||"div";return r.h(_,{ref:x,prop:n.name,class:{[`${h}`]:!0,"is-collapse":C.value},style:m.value},[])}i.order.index=0;const $=[];let L=0;if(l.slots.header){const _={key:`${L++}`,ref:g,class:{[`${h}__header`]:!0,[`${h}__first`]:!0}},U=r.h("div",_,[l.slots.header()]);$.push(U)}else{const _=[],U=n.collapsePosition==="left";if(U&&n.showCollapse){const ee=K("left");ee&&_.push(ee)}if(w.value){if(n.showMark){const ae={class:{[`${h}__header-mark`]:!0}};n.markColor&&(ae.style={background:n.markColor});const ue=r.h("div",ae);_.push(ue)}const ee=r.h("div",{class:{[`${h}__header-title`]:!0}},[w.value]);_.push(ee)}if(l.slots.toolbar&&_.push(l.slots.toolbar()),!U&&n.showCollapse){const ee=K("right");ee&&_.push(ee)}if(_.length>0){const ee={key:`${L++}`,ref:g,class:{[`${h}__header`]:!0,[`${h}__first`]:!0}},ae=r.h("div",ee,_);$.push(ae)}}R();const E=l.slots.default?l.slots.default():[],z=i.layout.value.type;if(z==="grid"){const _=G(E,L++,0,E.length);$.push(_)}else if(z==="flow"){const _=G(E,L++,0,E.length);$.push(_)}else for(let _=0;_<E.length;_++){const U=E[_],ee=G([U],L++,_,E.length);$.push(ee)}if(N.value){const _=n.tag||"div";return r.h(_,{ref:x,prop:n.name,class:{[`${h}`]:!0,"is-collapse":C.value},style:m.value},[$])}else return $}}}}const{componentName:ka,create:Va,scope:Pa}=re("group"),Ia=(e,t)=>(e=e??Ee.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]})),Dn=Va(Na(ka,Pa,Ia));function Oa(e){return e===window}const Ra=/matrix\((.+)\)/,Ao=e=>{const t=r.unref(e);if(!t)return{x:0,y:0};if(Oa(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:f}=window.getComputedStyle(l);if(f){const c=Ra.exec(f);if(c){let v=c[1].split(/\s*,\s*/);v.length==6&&(s+=Number(v[4]),u+=Number(v[5]))}}l=l.parentNode}return o-=a,n-=i,o+=s,n+=u,{x:o,y:n}};function Da(e){return e===window}const Fn=e=>{const t=r.unref(e);if(Da(t)){const o=t.innerWidth,n=t.innerHeight;return{top:0,left:0,right:o,bottom:n,width:o,height:n}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Fa{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 Aa{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 Fa,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 br=new Aa,Bo={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:Ba,create:La}=re("price"),qa=La({props:{...Bo},setup(e){const t=r.computed(()=>({[Ba]:!0})),o=r.computed(()=>e.needSymbol?e.symbol:""),n=r.computed(()=>xt(e.price)==0?"":Dt(e.price,e.decimalLength,!0,be(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}}}),Ma=["innerHTML"],_a=["innerHTML"];function ja(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,Ma)):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,_a)):r.createCommentVNode("",!0)],2)}const Wt=ke(qa,[["render",ja]]),{componentName:$t,create:Ha}=re("hint-text"),za=Ha({components:{Price:Wt},props:{...Bo,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,t){const a=r.ref(!0),i=r.ref({x:0,y:0}),s=r.ref({x:0,y:0}),u=r.ref(0),f=r.ref(0),c=r.ref(e.placement),d=r.computed(()=>({[$t]:!0})),v=r.ref(null),T=(R,I,F=10)=>{if(!st||I===!1||!R)return;a.value=!0;const W=Fn(e.reference);u.value=W.width,f.value=W.height,setTimeout(()=>{if(!v.value||!e.reference||e.reference.offsetParent===null)return;const j=Ao(e.reference),S=document.documentElement.clientWidth||document.body.clientWidth,x=v.value.offsetWidth,g=v.value.offsetHeight;j.y-g>=0?(c.value="top",i.value.y=j.y-g-10-4,s.value.y=g):(c.value="bottom",i.value.y=j.y+f.value+10,s.value.y=-10);const A=j.x+x-S;A<0?(i.value.x=j.x,s.value.x=20):(i.value.x=j.x-A,s.value.x=A+20),a.value=!1},F)},h=ht(()=>{T(e.message,e.visible)},10),m=r.computed(()=>e.visible&&y.value),y=r.ref(!0),b=ht(R=>{const I=R[0];I&&(y.value=I.isIntersecting)},10),w=new IntersectionObserver(b);r.watch([()=>e.message,()=>e.visible],([R,I])=>{T(R,I)}),r.onMounted(()=>{T(e.message,e.visible),br.watch(e.reference,h),w.observe(e.reference)}),r.onBeforeMount(()=>{br.unwatch(e.reference,h),w.unobserve(e.reference),w.disconnect()});const V=r.computed(()=>{const R={"min-width":pe(u.value)};return a.value?R.visibility="hidden":R.transform=`translate(${i.value.x}px, ${i.value.y}px)`,R}),D=r.computed(()=>({[`${$t}__content`]:!0})),N=r.computed(()=>({})),O=r.computed(()=>({[`${$t}__arrow`]:!0,[`${$t}__arrow-${e.placement}`]:!0})),k=r.computed(()=>({top:`${s.value.y}px`,left:`${s.value.x}px`}));return{show:m,tipRef:v,classes:d,styles:V,textClasses:D,textStyles:N,arrowClasses:O,arrowStyles:k}}}),Ka={key:1,class:"text"};function Wa(e,t,o,n,l,a){const i=r.resolveComponent("Price");return r.openBlock(),r.createBlock(r.Transition,{name:"hint-text-fade"},{default:r.withCtx(()=>[r.withDirectives(r.createElementVNode("div",{ref:"tipRef",class:r.normalizeClass(e.classes),style:r.normalizeStyle(e.styles)},[r.createElementVNode("div",{class:r.normalizeClass(e.textClasses),style:r.normalizeStyle(e.textStyles)},[e.type=="number"?(r.openBlock(),r.createBlock(i,{key:0,price:e.message,position:"before"},null,8,["price"])):(r.openBlock(),r.createElementBlock("span",Ka,r.toDisplayString(e.message),1))],6),r.createElementVNode("div",{class:r.normalizeClass(e.arrowClasses),style:r.normalizeStyle(e.arrowStyles)},null,6)],6),[[r.vShow,e.show]])]),_:1})}const wt=ke(za,[["render",Wa]]);class Lo{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 yn={},Ya=new Lo,rt=new Map,bn=e=>{if(e){const t=document.getElementById(e);rt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of rt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}rt.clear()}},Ga=e=>{const t=document.getElementById(e.id);if(t){const o=rt.get(e.id);o?e={...yn,...o,...e}:e={...yn,...e};const n=r.createVNode(wt,e);return r.render(n,t),e.id}},Ua=e=>{e.unmount=bn;let t;if(e.id){if(t=e.id,rt.has(t))return Ga(e)}else t=`hinttext_${Ya.get()}`;e={...yn,...e},e.id=t,rt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=r.createVNode(wt,e);return r.render(n,o),document.body.appendChild(o),t},Xa=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},kt={show(e,t,o={},n=!0){return n&&bn(),Xa(t),Ua({...o,message:t,reference:e})},hide(e){bn(e)},install(e){e.config.globalProperties.$hintText=kt}},{componentName:xr,create:Za}=re("item"),Ja=Za({inheritAttrs:!0,props:{...me,...we},emits:["appear","disappear"],setup(e,t){const o=e.prop??t.attrs.name;ge({componentName:xr,validate:!1},o);const n=Me(),l=Mt();_t(!1);const a=r.computed(()=>l&&n?jt(n,!1).value:null),i=xr,s=r.ref(null),u=r.computed(()=>{const q={[i]:!0,[`${i}__gutter`]:a.value&&a.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};if(q[e.errorMarkClass]=!!j.value,q[e.warnMarkClass]=!!F.value,q[e.infoMarkClass]=!!R.value,typeof s.value=="function"){const K=s.value(o);q[K]=!0}else if(typeof s.value=="string"){const K=s.value;q[K]=!0}return q}),f=r.ref(null),c=r.computed(()=>{const q={},K=l&&n?Ht(n,!1):null;if(a.value&&K)if(a.value.type==="grid"){const G=Kt(K,a.value,e.span,e.offset);Object.assign(q,G)}else if(a.value.type==="flow"){const G=zt(K,a.value,e.span,e.offset,e.width);Object.assign(q,G)}else return e.width&&(q.width=pe(e.width)),q;else e.width&&(q.width=pe(e.width));if(typeof f.value=="function"){const G=f.value(o);G&&Object.assign(q,G)}else if(f.value&&typeof f.value=="object"){const G=f.value;Object.assign(q,G)}return q}),d=r.ref(null),v=r.computed({get:()=>d.value??te(e.isRequired),set:q=>{d.value=q}}),T=r.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof t.slots.label=="function"),h=Te(r.toRef(e,"labelPosition"),"labelPosition",Ne.Near),m=r.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),y=r.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${m.value}`]:!0})),b=r.computed(()=>({label:!0,[`label--${m.value}`]:!0})),w=Te(r.toRef(e,"labelWidth"),"labelWidth",Ne.Near),V=r.computed(()=>w&&w.value?{width:pe(w.value)}:{}),D=r.computed(()=>({"label--string":!0,"label--required":v.value})),N=r.computed(()=>({content:!0,[e.contentClass]:!0})),O=r.computed(()=>({...e.contentStyle})),k=r.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ve({setRequired(q){v.value=q},setErrorTip(q){k.errorTip=q},setErrorIcon(q){k.errorIcon=q},setWarnTip(q){k.warnTip=q},setWarnIcon(q){k.warnIcon=q},setInfoTip(q){k.infoTip=q},setInfoIcon(q){k.infoIcon=q},setCustomClassName(q){s.value=q},setCustomStyle(q){f.value=q}});const R=r.computed(()=>e.infoTip||k.infoTip),I=r.computed(()=>e.infoIcon||k.infoIcon),F=r.computed(()=>e.warnTip||k.warnTip),W=r.computed(()=>e.warnIcon||k.warnIcon),j=r.computed(()=>e.errorTip||k.errorTip),S=r.computed(()=>e.errorIcon||k.errorIcon),x=r.computed(()=>j.value?"error":F.value?"warn":R.value?"info":""),g=r.computed(()=>x.value.length>0),A=r.computed(()=>x.value==="error"?j.value:x.value==="warn"?F.value:x.value==="info"?R.value:""),P=r.computed(()=>x.value==="error"?S.value:x.value==="warn"?W.value:x.value==="info"?I.value:null),H=r.computed(()=>{let q={[`${i}__tip`]:!0,[`${i}__tip--${x.value}`]:!0};return x.value==="error"&&e.errorClass?q[`${e.errorClass}`]=!0:x.value==="warn"&&e.warnClass?q[`${e.warnClass}`]=!0:x.value==="info"&&e.infoClass&&(q[`${e.infoClass}`]=!0),q}),C=r.computed(()=>{let q={};return h&&h.value==="top"||!T.value?q["padding-left"]="0px":w&&w.value&&(q["padding-left"]=pe(w.value)),q}),B=()=>{const q=P.value;return q?typeof q=="function"?r.h("div",{class:"fox-item__tip--icon"},[q()]):r.h("div",{class:"fox-item__tip--icon"},[r.h(q)]):null},M=()=>{const q=A.value;return q?typeof q=="function"?r.h("div",{class:"fox-item__tip--text"},[q()]):r.h("div",{class:"fox-item__tip--text"},[q]):null},Y=r.computed(()=>t.slots.fixedTip),Z=r.computed(()=>({[`${i}__fixed-tip`]:!0})),J=r.ref();let ne="";r.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([q,K,G,$])=>{J.value&&(q&&!fe(K)?ne?kt.show(J.value,K,{...$,id:ne,type:G},!0):ne=kt.show(J.value,K,{...$,type:G},!0):kt.hide(ne))});let le=null;const X=()=>{le||!J.value||(le=new IntersectionObserver(q=>{let K=!1;for(let G of q)if(G.intersectionRatio>0){K=!0,K&&t.emit("appear",G);break}K||t.emit("disappear")}),le.observe(J.value))},Q=()=>{!le||!J.value||(le.unobserve(J.value),le=null)};return r.watch(()=>te(e.appearListen),q=>{q?X():Q()}),r.onMounted(()=>{te(e.appearListen)&&X()}),r.onUnmounted(Q),{classes:u,styles:c,mainClasses:y,hasLabel:T,labelClasses:b,labelStyles:V,labelStringClasses:D,contentClasses:N,contentStyles:O,contentRef:J,hasTip:g,mTip:A,mIcon:P,renderIcon:B,renderTip:M,tipClasses:H,tipStyles:C,hasFixedTip:Y,fixedTipClasses:Z}}}),Qa=["prop"];function ei(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,Qa)}const he=ke(Ja,[["render",ei]]);function ti(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const l=Me(),a=Mt();_t(!1);const i=r.computed(()=>a&&l?jt(l,!1).value:null),s=e,u=r.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),f=r.computed(()=>{const c={},d=a&&l?Ht(l,!1):null;if(i.value&&d)if(i.value.type==="grid"){const v=Kt(d,i.value,o.span,o.offset);Object.assign(c,v)}else if(i.value.type==="flow"){const v=zt(d,i.value,o.span,o.offset,o.width);Object.assign(c,v)}else return o.width&&(c.width=pe(o.width)),c;else o.width&&(c.width=pe(o.width));return c});return()=>{const c={class:u.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?r.h("div",c,n.slots.default()):r.h("div",c)}}}}const{componentName:ni,create:ri,scope:wf}=re("slot-item"),An=ri(ti(ni));function oi(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],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=Me(),s=Mt();_t(!1);const u=r.computed(()=>{const f={};if(s&&i){const c=jt(i,!1),d=Ht(i,!1);if(c.value&&d)if(c.value.type==="grid"){const v=Kt(d,c.value,o.span,o.offset);Object.assign(f,v)}else if(c.value.type==="flow"){const v=zt(d,c.value,o.span,o.offset,o.width);Object.assign(f,v)}else o.width&&(f.width=pe(o.width))}else o.width&&(f.width=pe(o.width));return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(o.divide)for(let v=0;v<d.length;v++){if(v>0){const T=r.h("div",{class:{[`${l}__divide`]:!0}});f.push(T)}f.push(d[v])}else Reflect.apply([].push,f,d)}const c={class:a.value,style:u.value};return r.h("div",c,f)}}}}const{componentName:li,create:ai,scope:Sf}=re("row-item"),Bn=ai(oi(li)),Be=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(n=>{typeof n=="string"&&n.indexOf("data-fox")!==0&&(t[n]=e[n])}),t},wr={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 ii(e,t,o){return{props:{...me,...we,...wr},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}=ge({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ie(n,"modelValue"),v=e,T=r.computed(()=>({[v]:!0,[`${v}__disabled`]:a.value,[`${v}__readonly`]:i.value})),h=S=>{d.value=S,s("update:modelValue",S),s("input",S)},m=S=>{s("change",S)};let y=ie(n,"hintText"),b=r.ref(!1);const w=S=>{let g=S.target.value;c.value=!0,fe(y.value)||(b.value=!0),s("focus",g,S)},V=S=>{setTimeout(()=>{b.value&&(b.value=!1),c.value=!1},0);let g=S.target.value;n.maxLength&&g.length>Number(n.maxLength)&&(g=g.slice(0,Number(n.maxLength))),s("blur",g,S)},D=()=>{s("clear","")},N=r.ref(!1);let O=null;const k=()=>{n.showTooltip&&N.value===!1&&(O&&clearTimeout(O),O=setTimeout(()=>{N.value=!0},150))},R=()=>{O&&(clearTimeout(O),N.value=!1,O=null)},I=r.computed(()=>N.value||b.value),F=r.computed(()=>N.value?d.value:y.value),W=r.computed(()=>xt(n.unit)>0),j=r.ref();return ve({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const x={...Be(l.attrs),ref:j,class:T.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:D,onChange:m,onInput:h,onFocus:w,onBlur:V,onMouseover:k,onMouseleave:R},g={};l.slots.prepend&&(g.prepend=l.slots.prepend),l.slots.append&&(g.append=l.slots.append),l.slots.prefix&&(g.prefix=l.slots.prefix),l.slots.suffix?g.suffix=l.slots.suffix:W.value&&(g.suffix=()=>[n.unit]);const A=[],P=r.h(p.ElInput,x,g);A.push(P);const H={default:()=>A};l.slots.default&&(H.label=l.slots.default),l.slots.default&&(H.fixedTip=l.slots.fixedTip);const B={...xe(n,wr),hintText:F.value,hintVisible:I.value,prop:`${n.prop}_item`};return r.h(o,B,H)}}}}const{componentName:si,create:ui,scope:ci}=re("input-item"),Ln=ui(ii(si,ci,he));function ze(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 qo(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function fi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let di=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=De(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 mi(){const e=r.getCurrentInstance();return new di(e.proxy)}function Mo(e,t,o){const n=ze(e,t),l=ze(e,o);if(n!==l)return!1;const a=vt(e,t),i=vt(e,o);return a===i}function _o(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=qo(e,i);if(Array.isArray(s)&&s.length>0){const u=_o(e,a,o,s)??[];Reflect.apply([].push,l,u)}else{let u=!1;if(o==="text")u=ze(e,i)===a;else if(o==="item")u=Mo(e,i,a);else{let f=vt(e,i);f==null&&(f=ze(e,i)),u=f===a}if(u){l.push(i);break}}}}),l}function hi(e){return{text:e,value:e}}const Sr={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},lazyLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function pi(e,t,o){return{props:{...me,...we,...Sr},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}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),v=r.computed(()=>d.value?d.value.map(G=>ze(n,G)).join(" "):""),T=(K,G,$,L=!0)=>{const E=_o(n,K,G,$);if(E===null){if(d.value===null||d.value.length===0)return;c.value=null,d.value=[],L&&(s("update:modelValue",null),s("update:text",null),s("change",null));return}let z=!0;if(E.length!==d.value.length)z=!1;else for(let _=0;_<E.length;_++){const U=E[_],ee=d.value[_];if(!Mo(n,U,ee)){z=!1;break}}if(!z){d.value=E;let _=[],U=[],ee=[];E.forEach(Pe=>{const ut=vt(n,Pe),Oe=ze(n,Pe);_.push(ut),ee.push(Oe),n.valueType==="text"?U.push(Oe):n.valueType==="item"?U.push(Pe):U.push(ut)});let ae,ue,Qe;te(n.multiple)?(c.value=_,ae=r.toRaw(U),ue=ee,Qe=r.toRaw(E)):(c.value=_[0]??"",ae=r.toRaw(U[0]??""),ue=ee[0]??"",Qe=r.toRaw(E[0])),L&&(s("update:modelValue",ae),s("change",ae,Qe)),s("update:text",ue)}},h=r.ref(null),m=r.ref(null),y=r.computed(()=>m.value??h.value??[]),b=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ne.Near,K=>te(K)),w=mi(),V=async(K,G)=>{if(K){const $=await w.load("select",K,G);if($.length>0)if(typeof $[0]=="string"){let z=$.map(_=>hi(_));h.value=z}else h.value=$;else h.value=null}};r.watch([()=>n.source,()=>n.params],([K,G])=>{m.value=null,V(K,G)},{immediate:!b.value});let D=!1;const N=()=>{D||(D=!0,V(n.source,n.params))};r.watch([()=>h.value,()=>n.modelValue],([K,G])=>{if(I()&&te(n.multiple)){qe(G,c.value)||(c.value=G);return}T(G,n.valueType,y.value,!1)});let O=null,k=r.ref(!1);typeof n.remoteMethod=="function"&&(O=async K=>{if(K==null){m.value=null;return}k.value=!0;try{const G=await n.remoteMethod(K);G&&(m.value=G)}catch(G){m.value=null,console.error(G)}k.value=!1});let R=null;typeof n.filterMethod=="function"&&(R=async K=>{if(K==null){m.value=null;return}k.value=!0;try{const G=await n.filterMethod(K,h.value);G&&(m.value=G)}catch(G){m.value=null,console.error(G)}k.value=!1});const I=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",F=r.ref(!1),W=e,j=r.computed(()=>({[W]:!0})),S=K=>{n.allowCreate||I()&&te(n.multiple)?(s("update:modelValue",K),s("change",K),s("update:text",K),c.value=K):T(K,"value",y.value,!0)};let x=ie(n,"hintText"),g=r.ref(!1);const A=K=>{let $=K.target.value;F.value=!0,fe(x.value)||(g.value=!0),s("focus",$,K)},P=K=>{setTimeout(()=>{g.value&&(g.value=!1),F.value=!1},0);let $=K.target.value;n.maxLength&&$.length>Number(n.maxLength)&&($=$.slice(0,Number(n.maxLength))),ne.value||s("blur",$,K)},H=()=>{s("clear","")},C=r.ref(!1);let B=null;const M=()=>{n.showTooltip&&C.value===!1&&(B&&clearTimeout(B),B=setTimeout(()=>{C.value=!0},150))},Y=()=>{B&&(clearTimeout(B),C.value=!1,B=null)},Z=r.computed(()=>C.value||g.value),J=r.computed(()=>C.value?v.value:x.value),ne=r.ref(!1),le=K=>{ne.value=K,s("visible-change",K),K||s("selected")},X=K=>{s("remove-tag",K)},Q=(K,G)=>{const $=[];return K.forEach((L,E)=>{const z=qo(n,L);if(Array.isArray(z)&&z.length>0){const _=Q(z,G),U=ze(n,L),ae={key:`${U}_${E}`,label:U};$.push(r.h(p.ElOptionGroup,ae,{default:()=>_}))}else{const _=vt(n,L),U=ze(n,L),ee=fi(n,L),ue={key:`${_}_${E}`,label:U,disabled:ee,value:_};if(typeof G=="function")$.push(r.h(p.ElOption,ue,{default:()=>G(L)}));else if(n.optionType==="item"){const Qe={class:{"fox-select-item__option-left":!0}},Pe=r.h("span",Qe,[_]),ut={class:{"fox-select-item__option-right":!0}},Oe=r.h("span",ut,[U]),Ut=r.h("div",{class:{"fox-select-item__option":!0}},[Pe,Oe]);$.push(r.h(p.ElOption,ue,{default:()=>Ut}))}else n.optionType==="value"?$.push(r.h(p.ElOption,ue,{default:()=>[_]})):$.push(r.h(p.ElOption,ue))}}),$},q=r.ref();return ve({focus:()=>{q?.value.focus()},blur:()=>{q?.value.blur()}}),()=>{const G={...Be(l.attrs),ref:q,class:j.value,clearable:n.clearable,multiple:n.multiple,placeholder:f.placeholder.value,disabled:a.value||i.value,modelValue:c.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:H,onChange:S,onFocus:A,onBlur:P,onVisibleChange:le,onRemoveTag:X};typeof O=="function"&&(G["remote-method"]=O,G.loading=k.value),typeof R=="function"&&(G["filter-method"]=R,G.loading=k.value);const $={};l.slots.prefix&&($.prefix=l.slots.prefix),l.slots.empty&&($.empty=l.slots.empty),l.slots.options?$.default=l.slots.options:$.default=()=>Q(y.value,l.slots.option);const L=[],E=r.h(p.ElSelect,G,$);L.push(E);const z={default:()=>L};l.slots.default&&(z.label=l.slots.default),l.slots.fixedTip&&(z.fixedTip=l.slots.fixedTip);const U={...xe(n,Sr),hintText:J.value,hintVisible:Z.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:M,onMouseleave:Y};return b.value&&(U["appear-listen"]=!0,U.onAppear=N),r.h(o,U,z)}}}}const{componentName:gi,create:vi,scope:yi}=re("select-item"),qn=vi(pi(gi,yi,he));var _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){var o=1e3,n=6e4,l=36e5,a="millisecond",i="second",s="minute",u="hour",f="day",c="week",d="month",v="quarter",T="year",h="date",m="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},V=function(S,x,g){var A=String(S);return!A||A.length>=x?S:""+Array(x+1-A.length).join(g)+S},D={s:V,z:function(S){var x=-S.utcOffset(),g=Math.abs(x),A=Math.floor(g/60),P=g%60;return(x<=0?"+":"-")+V(A,2,"0")+":"+V(P,2,"0")},m:function S(x,g){if(x.date()<g.date())return-S(g,x);var A=12*(g.year()-x.year())+(g.month()-x.month()),P=x.clone().add(A,d),H=g-P<0,C=x.clone().add(A+(H?-1:1),d);return+(-(A+(g-P)/(H?P-C:C-P))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:d,y:T,w:c,d:f,D:h,h:u,m:s,s:i,ms:a,Q:v}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},N="en",O={};O[N]=w;var k=function(S){return S instanceof W},R=function S(x,g,A){var P;if(!x)return N;if(typeof x=="string"){var H=x.toLowerCase();O[H]&&(P=H),g&&(O[H]=g,P=H);var C=x.split("-");if(!P&&C.length>1)return S(C[0])}else{var B=x.name;O[B]=x,P=B}return!A&&P&&(N=P),P||!A&&N},I=function(S,x){if(k(S))return S.clone();var g=typeof x=="object"?x:{};return g.date=S,g.args=arguments,new W(g)},F=D;F.l=R,F.i=k,F.w=function(S,x){return I(S,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var W=function(){function S(g){this.$L=R(g.locale,null,!0),this.parse(g)}var x=S.prototype;return x.parse=function(g){this.$d=function(A){var P=A.date,H=A.utc;if(P===null)return new Date(NaN);if(F.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var C=P.match(y);if(C){var B=C[2]-1||0,M=(C[7]||"0").substring(0,3);return H?new Date(Date.UTC(C[1],B,C[3]||1,C[4]||0,C[5]||0,C[6]||0,M)):new Date(C[1],B,C[3]||1,C[4]||0,C[5]||0,C[6]||0,M)}}return new Date(P)}(g),this.$x=g.x||{},this.init()},x.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},x.$utils=function(){return F},x.isValid=function(){return this.$d.toString()!==m},x.isSame=function(g,A){var P=I(g);return this.startOf(A)<=P&&P<=this.endOf(A)},x.isAfter=function(g,A){return I(g)<this.startOf(A)},x.isBefore=function(g,A){return this.endOf(A)<I(g)},x.$g=function(g,A,P){return F.u(g)?this[A]:this.set(P,g)},x.unix=function(){return Math.floor(this.valueOf()/1e3)},x.valueOf=function(){return this.$d.getTime()},x.startOf=function(g,A){var P=this,H=!!F.u(A)||A,C=F.p(g),B=function(Q,q){var K=F.w(P.$u?Date.UTC(P.$y,q,Q):new Date(P.$y,q,Q),P);return H?K:K.endOf(f)},M=function(Q,q){return F.w(P.toDate()[Q].apply(P.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(q)),P)},Y=this.$W,Z=this.$M,J=this.$D,ne="set"+(this.$u?"UTC":"");switch(C){case T:return H?B(1,0):B(31,11);case d:return H?B(1,Z):B(0,Z+1);case c:var le=this.$locale().weekStart||0,X=(Y<le?Y+7:Y)-le;return B(H?J-X:J+(6-X),Z);case f:case h:return M(ne+"Hours",0);case u:return M(ne+"Minutes",1);case s:return M(ne+"Seconds",2);case i:return M(ne+"Milliseconds",3);default:return this.clone()}},x.endOf=function(g){return this.startOf(g,!1)},x.$set=function(g,A){var P,H=F.p(g),C="set"+(this.$u?"UTC":""),B=(P={},P[f]=C+"Date",P[h]=C+"Date",P[d]=C+"Month",P[T]=C+"FullYear",P[u]=C+"Hours",P[s]=C+"Minutes",P[i]=C+"Seconds",P[a]=C+"Milliseconds",P)[H],M=H===f?this.$D+(A-this.$W):A;if(H===d||H===T){var Y=this.clone().set(h,1);Y.$d[B](M),Y.init(),this.$d=Y.set(h,Math.min(this.$D,Y.daysInMonth())).$d}else B&&this.$d[B](M);return this.init(),this},x.set=function(g,A){return this.clone().$set(g,A)},x.get=function(g){return this[F.p(g)]()},x.add=function(g,A){var P,H=this;g=Number(g);var C=F.p(A),B=function(Z){var J=I(H);return F.w(J.date(J.date()+Math.round(Z*g)),H)};if(C===d)return this.set(d,this.$M+g);if(C===T)return this.set(T,this.$y+g);if(C===f)return B(1);if(C===c)return B(7);var M=(P={},P[s]=n,P[u]=l,P[i]=o,P)[C]||1,Y=this.$d.getTime()+g*M;return F.w(Y,this)},x.subtract=function(g,A){return this.add(-1*g,A)},x.format=function(g){var A=this,P=this.$locale();if(!this.isValid())return P.invalidDate||m;var H=g||"YYYY-MM-DDTHH:mm:ssZ",C=F.z(this),B=this.$H,M=this.$m,Y=this.$M,Z=P.weekdays,J=P.months,ne=function(q,K,G,$){return q&&(q[K]||q(A,H))||G[K].slice(0,$)},le=function(q){return F.s(B%12||12,q,"0")},X=P.meridiem||function(q,K,G){var $=q<12?"AM":"PM";return G?$.toLowerCase():$},Q={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Y+1,MM:F.s(Y+1,2,"0"),MMM:ne(P.monthsShort,Y,J,3),MMMM:ne(J,Y),D:this.$D,DD:F.s(this.$D,2,"0"),d:String(this.$W),dd:ne(P.weekdaysMin,this.$W,Z,2),ddd:ne(P.weekdaysShort,this.$W,Z,3),dddd:Z[this.$W],H:String(B),HH:F.s(B,2,"0"),h:le(1),hh:le(2),a:X(B,M,!0),A:X(B,M,!1),m:String(M),mm:F.s(M,2,"0"),s:String(this.$s),ss:F.s(this.$s,2,"0"),SSS:F.s(this.$ms,3,"0"),Z:C};return H.replace(b,function(q,K){return K||Q[q]||C.replace(":","")})},x.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},x.diff=function(g,A,P){var H,C=F.p(A),B=I(g),M=(B.utcOffset()-this.utcOffset())*n,Y=this-B,Z=F.m(this,B);return Z=(H={},H[T]=Z/12,H[d]=Z,H[v]=Z/3,H[c]=(Y-M)/6048e5,H[f]=(Y-M)/864e5,H[u]=Y/l,H[s]=Y/n,H[i]=Y/o,H)[C]||Y,P?Z:F.a(Z)},x.daysInMonth=function(){return this.endOf(d).$D},x.$locale=function(){return O[this.$L]},x.locale=function(g,A){if(!g)return this.$L;var P=this.clone(),H=R(g,A,!0);return H&&(P.$L=H),P},x.clone=function(){return F.w(this.$d,this)},x.toDate=function(){return new Date(this.valueOf())},x.toJSON=function(){return this.isValid()?this.toISOString():null},x.toISOString=function(){return this.$d.toISOString()},x.toString=function(){return this.$d.toUTCString()},S}(),j=W.prototype;return I.prototype=j,[["$ms",a],["$s",i],["$m",s],["$H",u],["$W",f],["$M",d],["$y",T],["$D",h]].forEach(function(S){j[S[1]]=function(x){return this.$g(x,S[0],S[1])}}),I.extend=function(S,x){return S.$i||(S(x,W,I),S.$i=!0),I},I.locale=R,I.isDayjs=k,I.unix=function(S){return I(1e3*S)},I.en=O[N],I.Ls=O,I.p={},I})})(jo);var bi=jo.exports;const Fe=je(bi);var Ho={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,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)},f=function(m){return function(y){this[m]=+y}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(m)}],d=function(m){var y=s[m];return y&&(y.indexOf?y:y.s.concat(y.f))},v=function(m,y){var b,w=s.meridiem;if(w){for(var V=1;V<=24;V+=1)if(m.indexOf(w(V,0,y))>-1){b=V>12;break}}else b=m===(y?"pm":"PM");return b},T={A:[i,function(m){this.afternoon=v(m,!1)}],a:[i,function(m){this.afternoon=v(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,f("seconds")],ss:[a,f("seconds")],m:[a,f("minutes")],mm:[a,f("minutes")],H:[a,f("hours")],h:[a,f("hours")],HH:[a,f("hours")],hh:[a,f("hours")],D:[a,f("day")],DD:[l,f("day")],Do:[i,function(m){var y=s.ordinal,b=m.match(/\d+/);if(this.day=b[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],M:[a,f("month")],MM:[l,f("month")],MMM:[i,function(m){var y=d("months"),b=(d("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[i,function(m){var y=d("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,f("year")],YY:[l,function(m){this.year=u(m)}],YYYY:[/\d{4}/,f("year")],Z:c,ZZ:c};function h(m){var y,b;y=m,b=s&&s.formats;for(var w=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,F,W){var j=W&&W.toUpperCase();return F||b[W]||o[W]||b[j].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,x,g){return x||g.slice(1)})})).match(n),V=w.length,D=0;D<V;D+=1){var N=w[D],O=T[N],k=O&&O[0],R=O&&O[1];w[D]=R?{regex:k,parser:R}:N.replace(/^\[|\]$/g,"")}return function(I){for(var F={},W=0,j=0;W<V;W+=1){var S=w[W];if(typeof S=="string")j+=S.length;else{var x=S.regex,g=S.parser,A=I.slice(j),P=x.exec(A)[0];g.call(F,P),I=I.replace(P,"")}}return function(H){var C=H.afternoon;if(C!==void 0){var B=H.hours;C?B<12&&(H.hours+=12):B===12&&(H.hours=0),delete H.afternoon}}(F),F}}return function(m,y,b){b.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var w=y.prototype,V=w.parse;w.parse=function(D){var N=D.date,O=D.utc,k=D.args;this.$u=O;var R=k[1];if(typeof R=="string"){var I=k[2]===!0,F=k[3]===!0,W=I||F,j=k[2];F&&(j=k[2]),s=this.$locale(),!I&&j&&(s=b.Ls[j]),this.$d=function(A,P,H){try{if(["x","X"].indexOf(P)>-1)return new Date((P==="X"?1e3:1)*A);var C=h(P)(A),B=C.year,M=C.month,Y=C.day,Z=C.hours,J=C.minutes,ne=C.seconds,le=C.milliseconds,X=C.zone,Q=new Date,q=Y||(B||M?1:Q.getDate()),K=B||Q.getFullYear(),G=0;B&&!M||(G=M>0?M-1:Q.getMonth());var $=Z||0,L=J||0,E=ne||0,z=le||0;return X?new Date(Date.UTC(K,G,q,$,L,E,z+60*X.offset*1e3)):H?new Date(Date.UTC(K,G,q,$,L,E,z)):new Date(K,G,q,$,L,E,z)}catch{return new Date("")}}(N,R,O),this.init(),j&&j!==!0&&(this.$L=this.locale(j).$L),W&&N!=this.format(R)&&(this.$d=new Date("")),s={}}else if(R instanceof Array)for(var S=R.length,x=1;x<=S;x+=1){k[1]=R[x-1];var g=b.apply(this,k);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}x===S&&(this.$d=new Date(""))}else V.call(this,D)}}})})(Ho);var xi=Ho.exports;const wi=je(xi);var zo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n,l){var a=n.prototype,i=a.format;l.en.ordinal=function(s){var u=["th","st","nd","rd"],f=s%100;return"["+s+(u[(f-20)%10]||u[f]||u[0])+"]"},a.format=function(s){var u=this,f=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(v){switch(v){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return f.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return f.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),v==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),v==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),v==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return v}});return i.bind(this)(d)}}})})(zo);var Si=zo.exports;const Ti=je(Si);var Ko={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n,l){var a=n.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,v,T,h,m){var y=d.name?d:d.$locale(),b=i(y[v]),w=i(y[T]),V=b||w.map(function(N){return N.slice(0,h)});if(!m)return V;var D=y.weekStart;return V.map(function(N,O){return V[(O+(D||0))%7]})},u=function(){return l.Ls[l.locale()]},f=function(d,v){return d.formats[v]||function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,m,y){return m||y.slice(1)})}(d.formats[v.toUpperCase()])},c=function(){var d=this;return{months:function(v){return v?v.format("MMMM"):s(d,"months")},monthsShort:function(v){return v?v.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(d,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return f(d.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},l.localeData=function(){var d=u();return{firstDayOfWeek:function(){return d.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(v){return f(d,v)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(u(),"months")},l.monthsShort=function(){return s(u(),"monthsShort","months",3)},l.weekdays=function(d){return s(u(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(u(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(u(),"weekdaysMin","weekdays",2,d)}}})})(Ko);var $i=Ko.exports;const Ci=je($i);var Wo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,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 f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(n).add(1,n).date(f),d=i(this).endOf(o);if(c.isBefore(d))return 1}var v=i(this).startOf(n).date(f).startOf(o).subtract(1,"millisecond"),T=this.diff(v,o,!0);return T<0?i(this).startOf("week").week():Math.ceil(T)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(Wo);var Ei=Wo.exports;const Ni=je(Ei);var Yo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,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}}})})(Yo);var ki=Yo.exports;const Vi=je(ki);var Go={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,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")}}})})(Go);var Pi=Go.exports;const Ii=je(Pi);var Uo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n){n.prototype.isSameOrAfter=function(l,a){return this.isSame(l,a)||this.isAfter(l,a)}}})})(Uo);var Oi=Uo.exports;const Ri=je(Oi);var Xo={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(_e,function(){return function(o,n){n.prototype.isSameOrBefore=function(l,a){return this.isSame(l,a)||this.isBefore(l,a)}}})})(Xo);var Di=Xo.exports;const Fi=je(Di);Fe.extend(Ci);Fe.extend(Ti);Fe.extend(wi);Fe.extend(Ni);Fe.extend(Vi);Fe.extend(Ii);Fe.extend(Ri);Fe.extend(Fi);const Ie={format(e,t){return Fe(e).format(t)},parser(e,t){return Fe(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,f=a+(6-i)*864e5,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}else{i=i==0?7:i;const s=24*60*60*1e3,u=a-(i-1)*s,f=a+(7-i)*s,c=this.date2Str(new Date(u)),d=this.date2Str(new Date(f));return[c,d]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=Ie.getNumTwoBit(Number(t[2])),t[3]=`${t[0]}-${t[1]}-${t[2]}`,t[4]=Ie.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}},Tr={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}},$r={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 Ai(e,t,o){return{props:{...me,...we,...Tr,...$r},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}=ge({componentName:e,get validate(){return!a.value&&!i.value},validateCheckEvents:["blur","update:modelValue"]},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ie(n,"modelValue"),v=r.computed(()=>g.value&&Array.isArray(d.value)&&d.value.length==2?d.value[0]:d.value),T=r.computed(()=>g.value?"longTermKey":"normalKey"),h=B=>{if(g.value&&n.type==="daterange"){const M=[...d.value];M[0]=B,d.value=M}else d.value=B;s("update:modelValue",d.value),s("change",d.value)},m=r.computed(()=>g.value&&n.type==="daterange"?"date":n.type),y=e,b=r.computed(()=>({[`${y}`]:!0,"is-long":g.value}));let w=ie(n,"hintText"),V=r.ref(!1);const D=B=>{let Y=B.target.value;c.value=!0,fe(w.value)||(V.value=!0),s("focus",Y,B)},N=B=>{setTimeout(()=>{V.value&&(V.value=!1),c.value=!1},0);let Y=B.target.value;n.maxLength&&Y.length>Number(n.maxLength)&&(Y=Y.slice(0,Number(n.maxLength))),s("blur",Y,B)},O=()=>{s("clear","")},k=B=>{s("calendar-change",B)},R=(B,M,Y)=>{s("panel-change",B,M,Y)},I=B=>{s("visible-change",B)},F=Te(r.computed(()=>n.longTermText),"longTermText",Ne.Near),W=Te(r.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ne.Near),j=Te(r.computed(()=>n.longTermValue),"longTermValue",Ne.Near),S=Te(r.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ne.Near);let x=null;const g=r.ref(te(n.longTerm)),A=B=>{if(g.value=B,s("update:longTerm",B),B){if(x=d.value,n.type==="daterange"){const M=[];Array.isArray(j.value)?(M[0]=d.value?d.value[0]??j.value[0]:null,M[1]=j.value[1]??j.value[0]):(M[0]=d.value?d.value[0]??j.value:null,M[1]=g.value),M[0]||(M[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),d.value=M}else Array.isArray(j.value)?d.value=j.value[1]??j.value[0]:d.value=j.value,d.value||(d.value=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date);s("update:modelValue",d.value)}else{if(n.type==="daterange"){const M=[];M[0]=Array.isArray(d.value)?d.value[0]:d.value,Array.isArray(x)?M[1]=x[1]:M[1]=x,M[0]||(M[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=x;s("update:modelValue",d.value)}},P=te(n.isLongTerm);if(P){const B=()=>{if(g.value===!0){if(x=d.value,n.type==="daterange"){const M=[d.value[0]];Array.isArray(j.value)?M[1]=j.value[1]??j.value[0]:M[1]=g.value,M[0]||(M[0]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),M[1]||(M[1]=n.valueFormat?Ie.format(new Date,n.valueFormat):new Date),d.value=M}else d.value=j.value;s("update:modelValue",d.value)}else qe(j.value,d.value)&&(g.value=!0)};B(),r.watch([()=>n.longTerm],([M])=>{g.value!==M&&B()}),r.watch([()=>d.value],([M])=>{let Y=!1;if(n.type==="daterange"&&Array.isArray(M))try{let Z=M[1];if(!Z)return;typeof Z!="string"&&n.valueFormat&&(Z=Ie.format(Z,n.valueFormat));let J=Array.isArray(j.value)?j.value[1]:j.value;(Z===J||Array.isArray(S.value)&&S.value.findIndex(le=>Z==le)!==-1)&&(Y=!0)}catch(Z){console.error(Z)}g.value!==Y&&(g.value=Y)},{immediate:!0})}const H=r.computed(()=>({"fox-date-item__long":!0,"is-active":c.value})),C=r.ref();return ve({focus:()=>{C?.value.focus()},blur:()=>{C?.value.blur()},handleOpen:()=>{C?.value.handleOpen()},handleClose:()=>{C?.value.handleClose()}}),()=>{const M={...l.attrs,key:T.value,type:m.value,ref:C,class:b.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:v.value,valueFormat:n.valueFormat,"onUpdate:modelValue":h,onClear:O,onFocus:D,onBlur:N,onCalendarChange:k,onPanelChange:R,onVisibleChange:I},Y={};l.slots["range-separator"]&&(Y["range-separator"]=l.slots["range-separator"]),l.slots.cell&&(Y.default=l.slots.cell);const Z=[],J=r.h(p.ElDatePicker,M,Y);Z.push(J);const ne={default:()=>Z};if(l.slots.default&&(ne.label=l.slots.default),l.slots.fixedTip&&(ne.fixedTip=l.slots.fixedTip),P){if(g.value){const q=r.h("span",{class:["fox-date-item__long-splitor"]},["-"]),K=r.h("input",{class:["fox-date-item__long-text"],value:F.value,readonly:!0}),G={class:H.value},$=r.h("div",G,{default:()=>[q,K]});Z.push($)}if(!i.value&&!a.value){const q={label:W.value||F.value,disabled:i.value||a.value,modelValue:g.value,"onUpdate:modelValue":A},K=r.h(p.ElCheckbox,q),G=r.h("div",{class:{[`${y}__append`]:!0}},[K]);ne.append=()=>G}}const X={...xe(n,Tr,$r),class:{[`${y}__wrapper`]:!0,"has-append":P},hintText:w.value,hintVisible:V.value,prop:`${n.prop}_item`};return r.h(o,X,ne)}}}}const{componentName:Bi,create:Li,scope:qi}=re("date-item"),Mn=Li(Ai(Bi,qi,he)),Cr={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Mi(e,t,o){return{props:{...me,...we,...Cr},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}=ge({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ie(n,"modelValue"),v=e,T=r.computed(()=>({[v]:!0})),h=O=>{d.value=O,s("update:modelValue",O),s("change",O)};let m=ie(n,"hintText"),y=r.ref(!1);const b=O=>{let R=O.target.value;c.value=!0,fe(m.value)||(y.value=!0),s("focus",R,O)},w=O=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let R=O.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),s("blur",R,O)},V=()=>{s("clear","")},D=O=>{s("visible-change",O)},N=r.ref();return ve({focus:()=>{N?.value.focus()},blur:()=>{N?.value.blur()},handleOpen:()=>{N?.value.handleOpen()},handleClose:()=>{N?.value.handleClose()}}),()=>{const k={...l.attrs,ref:N,class:T.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":h,onClear:V,onFocus:b,onBlur:w,onVisibleChange:D},R={},I=[],F=r.h(p.ElTimePicker,k,R);I.push(F);const W={default:()=>I};l.slots.default&&(W.label=l.slots.default),l.slots.fixedTip&&(W.fixedTip=l.slots.fixedTip);const S={...xe(n,Cr),hintText:m.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,S,W)}}}}const{componentName:_i,create:ji,scope:Hi}=re("time-item"),_n=ji(Mi(_i,Hi,he)),Er={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function zi(e,t,o){return{props:{...me,...we,...Er},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}=ge({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ie(n,"modelValue"),v=e,T=r.computed(()=>({[v]:!0})),h=N=>{d.value=N,s("update:modelValue",N),s("change",N)};let m=ie(n,"hintText"),y=r.ref(!1);const b=N=>{let k=N.target.value;c.value=!0,fe(m.value)||(y.value=!0),s("focus",k,N)},w=N=>{setTimeout(()=>{y.value&&(y.value=!1),c.value=!1},0);let k=N.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),s("blur",k,N)},V=()=>{s("clear","")},D=r.ref();return ve({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},handleOpen:()=>{D?.value.handleOpen()},handleClose:()=>{D?.value.handleClose()}}),()=>{const O={...l.attrs,ref:D,class:T.value,placeholder:f.placeholder.value,disabled:a.value,readonly:i.value,modelValue:d.value,"onUpdate:modelValue":h,onClear:V,onFocus:b,onBlur:w},k={},R=[],I=r.h(p.ElTimeSelect,O,k);R.push(I);const F={default:()=>R};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const j={...xe(n,Er),hintText:m.value,hintVisible:y.value,prop:`${n.prop}_item`};return r.h(o,j,F)}}}}const{componentName:Ki,create:Wi,scope:Yi}=re("time-select-item"),jn=Wi(zi(Ki,Yi,he));function Nr(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 kr(e,t,o=20){if(typeof t=="string"&&(t=be(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=no(`${e}`,`${t}`);return Nr(n)}else{let n=Tn(`${e}`,ro(`${t}`),20);return Nr(n)}}function Gi(e,t=-1,o=!1,n=3,l=","){return Dt(e,t,o,n,l)}function Vr(e,t,o,n,l=!0){if(e=="")return"";if(e=oo(e),t=be(t),t==1)return e;if(n)e=kr(e,t),o&&(e=="0"&&l?e=`${e}.`.padEnd(be(o)+2,"0"):e=Tn(e,1,be(o)));else{let a=-1*t;e=kr(e,a)}return e}function Pr(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=te(t.minInclude),l=fn(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=te(t.maxInclude),l=fn(e,t.max);(n&&l==1||!n&&(l==0||l==1))&&(o.maxValid=!1)}return o}const Ir={modelValue:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Ui(e,t,o){return{props:{...me,...we,...Ir},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}=ge({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(!1),f=ie(n,"modelValue"),c=r.ref("");r.watch([()=>f.value,()=>n.rates,()=>n.precision],([S,x,g])=>{if(fe(S)){c.value="";return}const A=Vr(S,x,g,!1);c.value!==A&&(c.value=A)},{immediate:!0});const d=r.computed(()=>{let S="";return u.value&&(S=c.value),S}),{t:v}=Ae.useFoxI18n(t),T=r.computed(()=>{let S=n.placeholder??"";return!u.value&&!fe(c.value)?S=Gi(c.value,n.decimalLength,n.autoPadding,n.digits,n.separator):S=v(["placeholder",S]),S}),h=e,m=r.computed(()=>({[h]:!0,[`${h}__disabled`]:a.value,[`${h}__placeholder`]:c.value.length>0})),y=Te(r.computed(()=>n.textAlign),"textAlign");r.computed(()=>u.value?{textAlign:"left"}:{textAlign:y.value??"right"});const b=r.ref(""),w=r.computed(()=>{let S=b.value;return fe(S)&&(S=n.errorTip??""),S}),V=r.ref(""),D=r.ref(!1),N=(S,x)=>{if(S=`${S}`,fe(S)){c.value="",f.value="",x.forEach(g=>{s(g,"")}),te(n.showTip)&&D.value&&(D.value=!1);return}if(S.length>=2){let g=S;if(g.charAt(0)=="-"&&(g=g.substring(1)),g.length>=2&&g.charAt(0)=="0"&&g.charAt(1)!="."){r.triggerRef(c);return}}if(S!="-"){if(!ho(S)){r.triggerRef(c);return}if(n.integerLength!=-1&&po(S)>Number(n.integerLength)){r.triggerRef(c);return}if(n.decimalLength&&n.decimalLength!=-1&&go(S)>Number(n.decimalLength)){r.triggerRef(c);return}let g=Pr(S,n);if(g.maxValid===!1){b.value=g.message,r.triggerRef(c);return}}else if(n.min!=null&&be(n.min)>=0){r.triggerRef(c);return}V.value=S,te(n.showTip)&&(D.value=S.length>0),c.value=S,f.value=Vr(S,n.rates,n.precision,!0),x.forEach(g=>{s(g,f.value)})},O=S=>{N(S,["update:modelValue","input"])},k=S=>{N(S,["update:modelValue","change"])},R=S=>{if(u.value=!0,te(n.showTip)){let x=c.value;fe(x)&&(x=n.hintText),fe(x)||(V.value=x,D.value=!0)}b.value="",s("focus",f.value,S)},I=S=>{if(setTimeout(()=>{u.value=!1,te(n.showTip)&&D.value===!0&&(D.value=!1)},0),!fe(c.value)){let x=Pr(c.value,n);if(x.minValid===!1||x.maxValid===!1){b.value=x.message;return}}s("update:modelValue",f.value,S),s("blur",f.value,S)},F=()=>{s("clear","")},W=r.computed(()=>xt(n.unit)>0),j=r.ref();return ve({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()},select:()=>{j?.value.select()}}),()=>{const x={...Be(l.attrs),ref:j,class:m.value,type:"digit",maxlength:n.maxLength,placeholder:T.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:F,onInput:O,onChange:k,onFocus:R,onBlur:I},g={};l.slots.prepend&&(g.prepend=l.slots.prepend),l.slots.append&&(g.append=l.slots.append),l.slots.prefix&&(g.prefix=l.slots.prefix),l.slots.suffix?g.suffix=l.slots.suffix:W.value&&(g.suffix=()=>[n.unit]);const A=[],P=r.h(p.ElInput,x,g);A.push(P);const H={default:()=>A};l.slots.default&&(H.label=l.slots.default),l.slots.fixedTip&&(H.fixedTip=l.slots.fixedTip);const B={...xe(n,Ir),errorTip:w.value,hintText:V.value,hintVisible:D.value,hintType:"number",prop:`${n.prop}_item`};return r.h(o,B,H)}}}}const{componentName:Xi,create:Zi,scope:Ji}=re("money-item"),Hn=Zi(Ui(Xi,Ji,he)),Or={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 Qi(e,t,o){return{props:{...me,...we,...Or},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}=ge({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ie(n,"modelValue"),v=e,T=r.computed(()=>({[v]:!0,[`${v}__append`]:O.value})),h=r.computed(()=>({[`${v}__unit`]:!0})),m=R=>{d.value=R,s("update:modelValue",R),s("input",R)},y=R=>{s("change",R)};let b=ie(n,"hintText"),w=r.ref(!1);const V=R=>{let F=R.target.value;c.value=!0,fe(b.value)||(w.value=!0),s("focus",F,R)},D=R=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let F=R.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),s("blur",F,R)},N=()=>{s("clear","")},O=r.computed(()=>xt(n.unit)>0),k=r.ref();return ve({focus:()=>{k?.value.focus()},blur:()=>{k?.value.blur()}}),()=>{const I={...Be(l.attrs),ref:k,class:T.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onChange:y,onInput:m,onFocus:V,onBlur:D},F={},W=[],j=r.h(p.ElInputNumber,I,F);W.push(j);const S={default:()=>W};l.slots.default&&(S.label=l.slots.default),l.slots.fixedTip&&(S.fixedTip=l.slots.fixedTip);const g={...xe(n,Or),hintText:b.value,hintVisible:w.value,prop:`${n.prop}_item`};if(l.slots.append)S.append=l.slots.append;else if(O.value){const P={class:h.value},H=r.h("div",P,[n.unit]);S.append=()=>H}return r.h(o,g,S)}}}}const{componentName:es,create:ts,scope:ns}=re("input-number-item"),zn=ts(Qi(es,ns,he));function Ze(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Xe(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function rs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let os=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,l);const a=De(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 ls(){const e=r.getCurrentInstance();return new os(e.proxy)}function xn(e,t,o){const n=Ze(e,t),l=Ze(e,o);if(n!==l)return!1;const a=Xe(e,t),i=Xe(e,o);return a===i}function Zo(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=Zo(e,s,o,n);l.push(u)}else{let u=!1;for(let f of a){if(o==="text")u=Ze(e,f)===s;else if(o==="item")u=xn(e,f,s);else{let c=Xe(e,f);c==null&&(c=Ze(e,f)),u=c===s}if(u){l.push(f),a=rs(e,f);break}}if(!u)break}}return l}function as(e){return{text:e,value:e}}const Rr={modelValue:{type:[Array,String],required:!1},pathNodes:{type:[Array],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},props:{type:[Object],required:!1},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},remoteMethod:{type:[Function],required:!1},lazyLoad:{type:[Boolean,String],default:!1},lazy:{type:[Boolean],default:!1},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1}};function is(e,t,o){return{props:{...me,...we,...Rr},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}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(null),d=r.ref([]),v=r.computed(()=>d.value?d.value.map(Q=>Ze(n,Q)).join(" "):""),T=(X,Q,q,K=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(c.value===X)return;c.value=X;const L=r.toRaw(X);if(K){const E=le?.value.getCheckedNodes();if(E)if(n.multiple){const z=[];E.forEach(_=>{const ee=(_.pathNodes??[]).map(ae=>ae.data);z.push(ee)}),s("update:pathNodes",z)}else{const _=(E[0]?.pathNodes??[]).map(U=>U.data);s("update:pathNodes",_)}s("update:modelValue",L),s("change",L)}}const G=Zo(n,X,Q,q);if(G===null){if(d.value.length===0||d.value===null)return;d.value=[],c.value=null,K&&(s("update:pathNodes",[]),s("update:modelValue",null),s("change",null));return}let $=!0;if(G.length!==d.value.length)$=!1;else for(let L=0;L<G.length;L++){const E=G[L],z=d.value[L];if(Array.isArray(E)){if(!Array.isArray(z)||E.length!==z.length)$=!1;else for(let _=0;_<E.length;_++)if(!xn(n,E[_],z[_])){$=!1;break}}else xn(n,E,z)||($=!1);if(!$)break}if(!$){d.value=G;let L=[],E=[];G.forEach(_=>{if(Array.isArray(_)){let U=[],ee=[];for(let ae of _)U.push(Xe(n,ae)),n.valueType==="text"?ee.push(Ze(n,ae)):n.valueType==="item"?ee.push(ae):ee.push(Xe(n,ae));L.push(U),E.push(ee)}else L.push(Xe(n,_)),n.valueType==="text"?E.push(Ze(n,_)):n.valueType==="item"?E.push(_):E.push(Xe(n,_))}),c.value=L;const z=r.toRaw(E);K&&(s("update:pathNodes",G),s("update:modelValue",z),s("change",z))}},h=r.ref([]),m=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ne.Near,X=>te(X)),y=ls(),b=async(X,Q)=>{if(X){const q=await y.load("cascader",X,Q);if(q.length>0)if(typeof q[0]=="string"){let $=q.map(L=>as(L));h.value=$}else h.value=q}};r.watch([()=>n.source,()=>n.params],async([X,Q])=>{b(X,Q)},{immediate:!(m.value||n.lazy)});let w=!1;const V=()=>{w||(w=!0,b(n.source,n.params))};r.watch([()=>h.value,()=>n.modelValue],([X,Q])=>{T(Q,n.valueType,X,!1)}),n.lazy&&T(n.modelValue,"value",[],!1);let D=null,N=r.ref(!1);typeof n.remoteMethod=="function"&&(D=async X=>{if(X!=null){N.value=!0;try{const Q=await n.remoteMethod(X);h.value=Q}catch(Q){console.error(Q)}N.value=!1}});const O=r.ref(!1),k=e,R=r.computed(()=>({[k]:!0})),I=r.computed(()=>{let X={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(X.multiple=!0),n.props&&Object.assign(X,n.props),n.lazy&&(X.lazy=!0,X.lazyLoad=async(Q,q)=>{const K=await y.load("cascader",n.source,Q,!0);q(K)}),X}),F=X=>{n.allowCreate?(s("update:modelValue",X),s("change",X),c.value=X):T(X,"value",h.value,!0)};let W=ie(n,"hintText"),j=r.ref(!1);const S=X=>{let q=X.target.value;O.value=!0,fe(W.value)||(j.value=!0),s("focus",q,X)},x=X=>{setTimeout(()=>{j.value&&(j.value=!1),O.value=!1},0);let q=X.target.value;n.maxLength&&q.length>Number(n.maxLength)&&(q=q.slice(0,Number(n.maxLength))),Y.value||s("blur",q,X)},g=()=>{s("clear","")},A=r.ref(!1);let P=null;const H=()=>{n.showTooltip&&A.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{A.value=!0},150))},C=()=>{P&&(clearTimeout(P),A.value=!1,P=null)},B=r.computed(()=>A.value||j.value),M=r.computed(()=>A.value?v.value:W.value),Y=r.ref(!1),Z=X=>{Y.value=X,s("visible-change",X),X||s("selected")},J=X=>{s("remove-tag",X)},ne=X=>{s("expand-change",X)},le=r.ref();return ve({focus:()=>{le?.value.focus()},blur:()=>{le?.value.blur()},getCheckedNodes:()=>le?.value.getCheckedNodes()}),()=>{const Q={...l.attrs,ref:le,class:R.value,props:I.value,clearable:n.clearable,placeholder:f.placeholder.value,disabled:a.value||i.value,options:h.value,modelValue:c.value,onClear:g,onChange:F,onFocus:S,onBlur:x,onVisibleChange:Z,onRemoveTag:J,expandChange:ne};typeof D=="function"&&(Q["remote-method"]=D,Q.loading=N.value);const q={};l.slots.option&&(q.default=l.slots.option),l.slots.empty&&(q.empty=l.slots.empty);const K=[],G=r.h(p.ElCascader,Q,q);K.push(G);const $={default:()=>K};l.slots.default&&($.label=l.slots.default),l.slots.fixedTip&&($.fixedTip=l.slots.fixedTip);const E={...xe(n,Rr),hintText:M.value,hintVisible:B.value,prop:`${n.prop??l.attrs.name}_item`,onMouseover:H,onMouseleave:C};return m.value&&!n.lazy&&(E["appear-listen"]=!0,E.onAppear=V),r.h(o,E,$)}}}}const{componentName:ss,create:us,scope:cs}=re("cascader-item"),Kn=us(is(ss,cs,he)),Dr={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function fs(e,t,o){return{props:{...me,...we,...Dr},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}=ge({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),{toLocaleRefs:u}=Ae.useFoxI18n(t),f=u(n,["placeholder"]),c=r.ref(!1),d=ie(n,"modelValue"),v=e,T=r.computed(()=>({[v]:!0})),h=k=>{d.value=k,s("update:modelValue",k),s("input",k)},m=k=>{s("change",k)},y=k=>{s("select",k)};let b=ie(n,"hintText"),w=r.ref(!1);const V=k=>{let I=k.target.value;c.value=!0,fe(b.value)||(w.value=!0),s("focus",I,k)},D=k=>{setTimeout(()=>{w.value&&(w.value=!1),c.value=!1},0);let I=k.target.value;n.maxLength&&I.length>Number(n.maxLength)&&(I=I.slice(0,Number(n.maxLength))),s("blur",I,k)},N=()=>{s("clear","")},O=r.ref();return ve({focus:()=>{O?.value.focus()},blur:()=>{O?.value.blur()},select:()=>{O?.value.select()}}),()=>{const R={...l.attrs,ref:O,class:T.value,placeholder:f.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:i.value,modelValue:d.value,onClear:N,onChange:m,onInput:h,onFocus:V,onBlur:D,onSelect:y},I={};l.slots.prepend&&(I.prepend=l.slots.prepend),l.slots.append&&(I.append=l.slots.append),l.slots.prefix&&(I.prefix=l.slots.prefix),l.slots.suffix&&(I.suffix=l.slots.suffix),l.slots.option&&(I.default=l.slots.option);const F=[],W=r.h(p.ElAutocomplete,R,I);F.push(W);const j={default:()=>F};l.slots.default&&(j.label=l.slots.default),l.slots.fixedTip&&(j.fixedTip=l.slots.fixedTip);const x={...xe(n,Dr),hintText:b.value,hintVisible:w.value,prop:`${n.prop}_item`};return r.h(o,x,j)}}}}const{componentName:ds,create:ms,scope:hs}=re("autocomplete-item"),Wn=ms(fs(ds,hs,he));function ps(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 f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o])}return i}if(Array.isArray(s))for(let u=0;u<t.length&&u<a.length;u++){let f=t[u],c=a[u];const d=f.find(v=>v[n]===c);if(!d)break;i.push(d[o])}else{let u=t;for(let f=0;u&&f<a.length;f++){let c=a[f],d=u.find(v=>v[n]===c);if(!d)break;i.push(d[o]),u=d[l]}}return i}let gs=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=De(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 vs(){const e=r.getCurrentInstance();return new gs(e.proxy)}const Jo={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function ys(e,t){return{props:{...Jo},setup(o,{attrs:n,slots:l}){const a=vs(),i=r.ref([]);r.watch([()=>o.source,()=>o.params],async([f,c])=>{i.value=await a.load(o.sourceType,f,c)},{immediate:!0});const s=r.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=ps(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?r.resolveComponent(o.tag):o.tag;return()=>{const f={...n};return 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,f,{default:()=>s.value}):r.h(u,f,s.value)}}}}const{componentName:Ef,create:bs,scope:Nf}=re("mapping"),yt=bs(ys());function xs(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function ws(e,t){return{props:{...Jo},setup(o,{attrs:n,slots:l}){return()=>{const a={default:i=>{const s=xs(i.row,i.column.property);return l.default?r.h(yt,{...o,modelValue:s},{default:l.default}):r.h(yt,{...o,modelValue:s})}};return r.h(p.ElTableColumn,{...n},a)}}}}const{componentName:kf,create:Ss,scope:Vf}=re("table-mapping-column"),Yn=Ss(ws()),Ts=Symbol.for("TableStateKey");function Fr(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function $s(e,t){return{props:{},setup(o,{attrs:n}){const l=r.inject(Ts,{});return()=>{const a=l.currentRow?l.currentRow.value:null,i={default:s=>{const u=Fr(s.row,s.column.property),f=a?Fr(a,s.column.property):null,c=u===f,d={class:{"el-radio__input":!0,"is-checked":c}},v=r.h("span",d,[r.h("span",{class:{"el-radio__inner":!0}})]),T={class:{"el-radio":!0,"is-checked":c}};return r.h("label",T,[v])}};return r.h(p.ElTableColumn,{...n},i)}}}}const{componentName:Pf,create:Cs,scope:If}=re("table-radio-column"),Gn=Cs($s()),Es={},Ns={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"},ks=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),Vs=[ks];function Ps(e,t){return r.openBlock(),r.createElementBlock("svg",Ns,Vs)}const Is=ke(Es,[["render",Ps]]),{componentName:Of,create:Os,scope:Rf}=re("table-setting"),Rs={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:"不固定"}},Ds=Os({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:Is,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Rs},emits:[],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),f=r.computed(()=>a.value.length>0),c=r.computed(()=>i.value.length>0),d=C=>C.length>1,v=C=>{const B=[];l.value=C.map((Y,Z)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&B.push(Y.prop),{...Y,sortIndex:Z})),s.value.length+a.value.length+i.value.length===B.length?w.value=!0:B.length>0&&(V.value=!0),O.value=B},T=C=>C?C.type?C.type:C.label?C.prop:"":"",h=(C,B)=>{if(C.length!==B.length)return!1;const M=C.map(Y=>T(Y));for(let Y of B){const Z=T(Y);if(M.indexOf(Z)===-1)return!1}return!0},m=C=>{if(!C){const B=e.tableRef.getColumnSetting(),M=B.srcColumnPropertyList;n=M.map((Y,Z)=>({...Y,sortIndex:Z})),C=B.columnPropertyList,C&&C.length>0&&h(M,C)||(C=M)}v(C)},y=()=>{e.tableRef.setColumnSetting(l.value)},b=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),w=r.ref(!1),V=r.ref(!1),D=C=>{const B=[];l.value.forEach(Y=>{C&&!(Y.label===""||Y.type)&&B.push(Y.prop),Y.visible=C}),w.value=!1,V.value=!1,s.value.length+a.value.length+i.value.length===B.length?w.value=!0:B.length>0&&(V.value=!0),O.value=B,y()},N=()=>{m(n),y()},O=r.ref([]),k=C=>{l.value.forEach(M=>{if(M.label===""||M.type)return;const Y=C.indexOf(M.prop)!==-1;M.visible=Y}),w.value=!1,V.value=!1;const B=s.value.length+a.value.length+i.value.length;C.length===B?w.value=!0:C.length>0&&(V.value=!0),y()},R=()=>{m()};r.onMounted(()=>{setTimeout(()=>{m()},50)});const I={currentRow:null,index:null,roleType:null},F=C=>C?C.dataset&&C.dataset.role==="row"?C:C.tagName.toLowerCase()!=="body"?(C=C.parentElement,F(C)):null:null;return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:s,isShowNotFixedTitle:u,isShowLeftFixedTitle:f,isShowRightFixedTitle:c,isDraggble:d,isCheckAll:w,isIndeterminate:V,handleCheckAllChange:D,handleReset:N,checkedValue:O,handleCheckChange:k,onShow:R,onDragStart:C=>{const B=C.currentTarget;B&&B.dataset&&(I.roleType=B.dataset.roleType,I.index=B.dataset.index)},onDragEnd:C=>{I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null),I.index=null,I.roleType=null},onDragOver:C=>{const B=C.currentTarget;C.relatedTarget;const M=F(B);if(!M)return;const Y=M.dataset&&M.dataset.roleType;I.roleType===Y&&(C.preventDefault(),I.currentRow&&I.currentRow!==M&&I.currentRow.classList.remove("is-dragover"),M.classList.add("is-dragover"),I.currentRow=M)},onDragLeave:C=>{C.preventDefault(),I.currentRow&&(I.currentRow.classList.remove("is-dragover"),I.currentRow=null)},onDrop:C=>{const B=C.currentTarget,M=F(B);if(!M)return;const Y=M.dataset&&M.dataset.roleType;if(I.roleType!==Y)return;C.preventDefault();const Z=Number(I.index),J=Number(M.dataset.index);if(Z!==J){if(Z<J){const ne=l.value[Z];l.value.splice(Z,1),l.value.splice(J,0,ne)}else{const ne=l.value[Z];l.value.splice(Z,1),l.value.splice(J+1,0,ne)}v(l.value),y()}},toLeftFixed:C=>{const B=l.value[C];B.fixed="left",y()},toRightFixed:C=>{const B=l.value[C];B.fixed="right",y()},toUnFixed:C=>{const B=l.value[C];B.fixed=void 0,y()},checkboxLabelStyle:b}}}),Fs={class:"fox-table-setting"},As={class:"fox-table-setting__header"},Bs={class:"fox-table-setting__body"},Ls={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},qs={key:0,class:"fox-table-setting__body-title"},Ms=["data-index","draggable"],_s={class:"tools-item"},js={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},Hs={key:0,class:"fox-table-setting__body-title"},zs=["data-index","draggable"],Ks={class:"tools-item"},Ws={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Ys={key:0,class:"fox-table-setting__body-title"},Gs=["data-index","draggable"],Us={class:"tools-item"};function Xs(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("RefreshLeft"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),v=r.resolveComponent("Download"),T=r.resolveComponent("fox-checkbox"),h=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",Fs,[r.createElementVNode("div",As,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=y=>e.isCheckAll=y),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",Bs,[r.createVNode(h,{modelValue:e.checkedValue,"onUpdate:modelValue":t[16]||(t[16]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:r.withCtx(()=>[e.leftFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ls,[e.isShowLeftFixedTitle?(r.openBlock(),r.createElementBlock("div",qs,r.toDisplayString(e.leftFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.leftFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[1]||(t[1]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:t[2]||(t[2]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:t[3]||(t[3]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:t[4]||(t[4]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:t[5]||(t[5]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.leftFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",_s,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:b=>e.toUnFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:b=>e.toRightFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(v)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Ms))),128))])):r.createCommentVNode("",!0),e.unFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",js,[e.isShowNotFixedTitle?(r.openBlock(),r.createElementBlock("div",Hs,r.toDisplayString(e.unFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.unFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[6]||(t[6]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:t[7]||(t[7]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:t[8]||(t[8]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:t[9]||(t[9]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:t[10]||(t[10]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.unFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(i,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ks,[r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:b=>e.toLeftFixed(y.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(v)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedRightText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:b=>e.toRightFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(v)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,zs))),128))])):r.createCommentVNode("",!0),e.rightFixedColumns.length>0?(r.openBlock(),r.createElementBlock("div",Ws,[e.isShowRightFixedTitle?(r.openBlock(),r.createElementBlock("div",Ys,r.toDisplayString(e.rightFixedTitle),1)):r.createCommentVNode("",!0),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.rightFixedColumns,y=>(r.openBlock(),r.createElementBlock("div",{key:y.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":y.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[11]||(t[11]=(...b)=>e.onDragStart&&e.onDragStart(...b)),onDragend:t[12]||(t[12]=(...b)=>e.onDragEnd&&e.onDragEnd(...b)),onDrop:t[13]||(t[13]=(...b)=>e.onDrop&&e.onDrop(...b)),onDragover:t[14]||(t[14]=(...b)=>e.onDragOver&&e.onDragOver(...b)),onDragleave:t[15]||(t[15]=(...b)=>e.onDragLeave&&e.onDragLeave(...b))},[e.isDraggble(e.rightFixedColumns)?(r.openBlock(),r.createBlock(u,{key:0,class:"icon-item"})):r.createCommentVNode("",!0),r.createVNode(T,{class:"checkbox-item",label:y.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(y.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Us,[r.createVNode(d,{content:e.unFixedText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:b=>e.toUnFixed(y.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.fixedLeftText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:b=>e.toLeftFixed(y.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(v)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Gs))),128))])):r.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const Yt=ke(Ds,[["render",Xs]]);let Zs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,l,a,i,s){if(Array.isArray(o)){let f=(n-1)*l,c=f+l;c>o.length&&(c=o.length);const d=o.slice(f,c);return{totalSize:o.length,page:d}}if(typeof o=="function")return await Reflect.apply(o,null,[n,l,a,i,s]);const u=De(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 Js(){const e=r.getCurrentInstance();return new Zs(e.proxy)}class Qs{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=De(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=De(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=De(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Qo(){const e=r.getCurrentInstance();return new Qs(e.proxy)}const eu=Symbol.for("TableStateKey");function tu(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 f=a.substring(s+1,u);if(/^\d+$/.test(f)){let c=parseInt(f);if(i==0){let d=a.substring(0,s);n=n[d][c]}else n=n[c];i++}s=a.indexOf("[",u),u=s==-1?-1:a.indexOf("]",s)}i===0&&(n=n[a])}return n}function nn(e,t){return e.filter(n=>{for(let l in t){const a=t[l],i=tu(n,l);if(a!==i)return!1}return!0})}const Ar={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},lazyLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},Br={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}},rn={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 nu(e,t,o){return{inheritAttrs:!1,props:{...me,...we,...Ar,...Br,...rn},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,l){const{locale:a}=Ae.useFoxI18n(t),{emitEvent:i}=ge({componentName:e,validateHandler:{getValue(...E){return V.value}}},n.prop??l.attrs.name),s=e,u=r.computed(()=>({[s]:!0})),f=r.computed(()=>({[`${s}__setting`]:!0})),c=r.computed(()=>({[`${s}__footer`]:!0,[`${s}__footer__${n.footerAlign}`]:!0})),d=r.computed(()=>({[`${s}__pagination`]:!0,[`${s}__pagination__${n.paginationAlign}`]:!0})),v=r.ref(n.pageIndex);r.watch(()=>n.pageIndex,E=>{v.value=E});const T=E=>{v.value=E,i("page-index-change",E)},h=r.ref(n.pageSize);r.watch(()=>n.pageSize,E=>{h.value=E});const m=E=>{h.value=E,i("page-size-change",E)},y=r.shallowRef({}),b=r.computed(()=>({...y.value,...n.params??{},...n.baseParams??{}})),w=r.ref(0),V=r.ref(),D=Js();let N=!0;const O=()=>Array.isArray(n.data)||typeof n.data=="function"?!0:te(n.autoLoad),k=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ne.Near,E=>te(E)),R=async(E,z,_,U)=>{try{const ee=await D.load("table",E,z,_,U,N,a.value);w.value=ee.totalSize,V.value=ee.page}catch(ee){console.error("[FoxUI] Load Table Data Fail",ee),w.value=0,V.value=[]}N=!1,setTimeout(()=>{i("loaded-data")},250)};r.watch([v,h],([E,z],[_,U])=>{z!==U&&(v.value=1,E=1),R(n.data,E,z,b.value)}),r.watch([()=>n.data,b],([E,z],[_,U])=>{O()&&(E!==_&&(N=!0),!(!Array.isArray(E)&&qe(E,_)&&qe(z,U))&&R(E,v.value,h.value,z))},{deep:!0});const I=(E={},z=!1)=>new Promise(_=>{y.value=r.toRaw(E??{}),r.triggerRef(y),z||(v.value=n.pageIndex??1),r.nextTick(async()=>{await R(n.data,v.value,h.value,b.value),_()})}),F=()=>{w.value=0,V.value=[]};let W=!1;const j=()=>{W||(W=!0,I())};O()&&!k.value&&I();const S=r.ref(null);r.provide(eu,{currentRow:S});const x=(E,z)=>{S.value=E,i("current-change",E,z)},g=(E,z,_)=>{i("row-click",E,z,_),te(n.rowClickSelectable)===!0&&L?.value.toggleRowSelection(E)},A=[],P=(E,z)=>{if(i("expand-change",E,z),te(n.uniqueExpansion))if(Array.isArray(z)&&z.length==0){const _=A.length;A.splice(0,_)}else{A.forEach(U=>{U!==E&&L?.value.toggleRowExpansion(U,!1)});const _=A.length;A.splice(0,_,E)}},H=l.attrs.id??n.prop??l.attrs.name,C=Qo(),B=r.ref([]);let M=[];const Y=()=>({srcColumnPropertyList:M.map(z=>({...z})),columnPropertyList:B.value}),Z=E=>{B.value=[...E],ne()},J=async()=>{const E=await C.load(H);E&&(B.value=E)},ne=()=>{C.save(H,B.value)},le=()=>{C.remove(H)};J();const X=E=>E?E.type?E.type:E.label?E.prop:"":"",Q=r.computed(()=>{if(typeof l.slots.default=="function"){const E=l.slots.default(),z=new Map;if(M=[],E.forEach(_=>{const U=_;if(!U.props)return;const ee=X(U.props);z.set(ee,_);const ae={label:"",prop:""};Object.assign(ae,U.props),M.push(ae)}),B.value.length===M.length){const _=[];for(let U of B.value){const ee=X(U),ae=z.get(ee);if(!ae)return E;if(U.visible===!1)continue;const ue=ae;ue.props.fixed=U.fixed,_.push(ue)}return _}return E}return[]}),q=r.shallowRef(new Map),K=({column:E,rowIndex:z})=>{const _=`${z}_${E.property}`;return q.value.get(_)??""},G=E=>typeof E=="function"?z=>{const _=[];let U=K(z);return U&&_.push(U),U=E(z),U&&_.push(U),_.length===0?"":_.join(" ")}:K,$=(E,z,_)=>{const U=`${E}_${z}`;_?q.value.set(U,_):q.value.delete(U),r.triggerRef(q)},L=r.ref();return ve({clearSelection:()=>L?.value.clearSelection(),getSelectionRows:()=>L?.value.getSelectionRows(),toggleRowSelection:(E,z)=>{L?.value.toggleRowSelection(E,z)},toggleRowSelectionByProp:(E,z)=>{if(!V.value)return;const _=nn(V.value,E);_.length!==0&&_.forEach(U=>{L?.value.toggleRowSelection(U,z)})},toggleAllSelection:()=>{L?.value.toggleAllSelection()},toggleRowExpansion:(E,z)=>{L?.value.toggleRowExpansion(E,z)},toggleRowExpansionByProp:(E,z)=>{if(!V.value)return;const _=nn(V.value,E);_.length!==0&&_.forEach(U=>{L?.value.toggleRowExpansion(U,z)})},setCurrentRow:E=>{L?.value.setCurrentRow(E)},setCurrentRowByProp:E=>{if(!V.value)return;const z=nn(V.value,E);z.length!==0&&L?.value.setCurrentRow(z[0])},getCurrentRow:()=>S.value,clearSort:()=>{L?.value.clearSort()},clearFilter:E=>{L?.value.clearFilter(E)},doLayout:()=>{L?.value.doLayout()},sort:(E,z)=>{L?.value.sort(E,z)},scrollTo:(E,z)=>{L?.value.scrollTo(E,z)},setScrollTop:E=>{L?.value.setScrollTop(E)},setScrollLeft:E=>{L?.value.setScrollLeft(E)},loadData:I,clearData:F,getData(){return V.value},getTotalSize(){return w.value},getPageIndex(){return v.value},getPageSize(){return h.value},getColumnSetting:Y,setColumnSetting:Z,removeColumnSetting:le,setCellClassName:$}),()=>{const z={...Be(l.attrs),onCurrentChange:x,onRowClick:g,onExpandChange:P,data:V.value,ref:L,class:u.value,"cell-class-name":G(n.cellClassName)},_={};l.slots.default&&(_.default=()=>Q.value),l.slots.append&&(_.append=l.slots.append),l.slots.empty&&(_.empty=l.slots.empty);const U=[],ee=r.h(p.ElTable,z,_);U.push(ee);let ae=null;if(typeof l.slots.pagination=="function")ae=l.slots.pagination();else if(n.showPagination){const Oe={class:d.value,total:w.value,pageSize:h.value,"onUpdate:pageSize":m,pageSizes:n.pageSizes,currentPage:v.value,"onUpdate:currentPage":T,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,small:!0};ae=r.h(p.ElPagination,Oe)}if(n.showSetting){const Oe=[];ae&&Oe.push(ae);const Ut=r.h(p.ElIcon,{class:f.value},{default:()=>r.h(Ee.Setting)}),rl=vo(n,rn),ol=r.h(Yt,{...rl,tableRef:{getColumnSetting:Y,setColumnSetting:Z,removeColumnSetting:le}},{default:()=>Ut});Oe.push(ol);const ll=r.h("div",{class:c.value},Oe);U.push(ll)}else ae&&U.push(ae);const ue={default:()=>U},Pe={...xe(n,Ar,Br,rn),prop:`${n.prop}_item`};return Pe.contentClass=`${s}__wrap`,Pe.errorMarkClass="is-table-error",k.value&&O()&&(Pe["appear-listen"]=!0,Pe.onAppear=j),r.h(o,Pe,ue)}}}}const{componentName:ru,create:ou,scope:lu}=re("table-item"),Un=ou(nu(ru,lu,he));function at(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function au(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let iu=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=De(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 su(){const e=r.getCurrentInstance();return new iu(e.proxy)}function el(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=bt(e,t),i=bt(e,o);return a===i}function uu(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=el(e,a,t);else{let s=bt(e,a);s==null&&(s=at(e,a)),i=s===t}if(i){l=a;break}}return l}function cu(e){return{text:e,value:e}}function fu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const Lr={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 du(e,t,o){return{inheritAttrs:!0,props:{...me,...we,...Lr},emits:["change","update:modelValue"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref(null),f=r.ref(null),c=(k,R,I,F=!0)=>{const W=uu(n,k,R,I);if(W===null){if(f.value===null)return;f.value=null,u.value=null,F&&(s("update:modelValue",null),s("change",null));return}if(!el(n,W,f.value)){u.value=k;const S=r.toRaw(W);f.value=S;let x=null;n.valueType==="text"?x=at(n,S):n.valueType==="item"?x=S:x=bt(n,S),F&&(s("update:modelValue",x),s("change",x))}},d=r.ref([]),v=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ne.Near,k=>te(k)),T=su(),h=async(k,R)=>{if(k){const I=await T.load("radio",k,R);if(I.length>0)if(typeof I[0]=="string"){let j=I.map(S=>cu(S));d.value=j}else d.value=I}};r.watch([()=>n.source,()=>n.params],async([k,R])=>{h(k,R)},{immediate:!v.value});let m=!1;const y=()=>{m||(m=!0,h(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([k,R])=>{c(R,n.valueType,k,!1)});const b=e,w=r.computed(()=>({[b]:!0,[`is-${n.direction}`]:!0})),V=k=>{c(k,"value",d.value,!0)};let D=ie(n,"hintText"),N=ie(n,"hintVisible");const O=(k,R)=>{const I=[];return k.forEach((F,W)=>{const j=bt(n,F),S=at(n,F);let x=au(n,F);a.value===!0&&(x=a.value),i.value===!0&&(x=i.value);const g=fu(n,F,W)??{},A=`${j}_${W}`,P={...g,key:A,label:j,size:n.size,border:te(n.border)};x&&(P.disabled=x),n.itemType==="button"?I.push(r.h(p.ElRadioButton,P,{default:()=>[S]})):typeof R=="function"?I.push(r.h(p.ElRadio,P,{default:()=>R(F)})):I.push(r.h(p.ElRadio,P,{default:()=>[S]}))}),I};return()=>{const R={...Be(l.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:V},I=[],F={};l.slots.options?F.default=l.slots.options:F.default=()=>O(d.value,l.slots.text);const W=r.h(p.ElRadioGroup,R,F);I.push(W);const j={default:()=>I};l.slots.default&&(j.label=l.slots.default),l.slots.fixedTip&&(j.fixedTip=l.slots.fixedTip);const x={...xe(n,Lr),hintText:D.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return v.value&&(x["appear-listen"]=!0,x.onAppear=y),r.h(o,x,j)}}}}const{componentName:mu,create:hu,scope:pu}=re("radio-item"),Xn=hu(du(mu,pu,he));function it(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function gu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}class vu{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=De(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 yu(){const e=r.getCurrentInstance();return new vu(e.proxy)}function tl(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=ot(e,t),i=ot(e,o);return a===i}function bu(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=tl(e,i,a);else{let u=ot(e,i);u==null&&(u=it(e,i)),s=u===a}if(s){l.push(i);break}}}),l}function xu(e){return{text:e,value:e}}function wu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const qr={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 Su(e,t,o){return{inheritAttrs:!0,props:{...me,...we,...qr},emits:["change","update:modelValue"],setup(n,l){const a=Ce(r.computed(()=>n.disabled)),i=$e(r.computed(()=>n.readonly)),{emitEvent:s}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=r.ref([]),f=r.ref([]),c=(k,R,I,F=!0)=>{const W=bu(n,k,R,I);if(W===null){if(f.value===null||f.value.length===0)return;u.value=[],f.value=[],F&&(s("update:modelValue",[]),s("change",[]));return}let j=!0;if(W.length!==f.value.length)j=!1;else for(let S=0;S<W.length;S++){const x=W[S],g=f.value[S];if(!tl(n,x,g)){j=!1;break}}if(!j){f.value=W;let S=[],x=[];W.forEach(A=>{S.push(ot(n,A)),n.valueType==="text"?x.push(it(n,A)):n.valueType==="item"?x.push(A):x.push(ot(n,A))}),u.value=S;const g=r.toRaw(x);F&&(s("update:modelValue",g),s("change",g))}},d=r.ref([]),v=Te(r.computed(()=>n.lazyLoad),"lazyLoad",Ne.Near,k=>te(k)),T=yu(),h=async(k,R)=>{if(k){const I=await T.load("checkbox",k,R);if(I.length>0)if(typeof I[0]=="string"){let j=I.map(S=>xu(S));d.value=j}else d.value=I}};r.watch([()=>n.source,()=>n.params],async([k,R])=>{h(k,R)},{immediate:!v.value});let m=!1;const y=()=>{m||(m=!0,h(n.source,n.params))};r.watch([()=>d.value,()=>n.modelValue],([k,R])=>{c(R,n.valueType,k,!1)});const b=e,w=r.computed(()=>({[b]:!0,[`is-${n.direction}`]:!0})),V=k=>{c(k,"value",d.value,!0)};let D=ie(n,"hintText"),N=ie(n,"hintVisible");const O=(k,R)=>{const I=[];return k.forEach((F,W)=>{const j=ot(n,F),S=it(n,F);let x=gu(n,F);a.value===!0&&(x=a.value),i.value===!0&&(x=i.value);const g=wu(n,F,W)??{},A=`${j}_${W}`,P={...g,key:A,class:n.itemClass,label:j,size:n.size,border:te(n.border)};x&&(P.disabled=x),n.itemType==="button"?I.push(r.h(p.ElCheckboxButton,P,{default:()=>[S]})):typeof R=="function"?I.push(r.h(p.ElCheckbox,P,{default:()=>R(F)})):I.push(r.h(p.ElCheckbox,P,{default:()=>[S]}))}),I};return()=>{const R={...Be(l.attrs),class:w.value,disabled:a.value||i.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:be(n.max),min:be(n.min),onChange:V},I=[],F={};l.slots.options?F.default=l.slots.options:F.default=()=>O(d.value,l.slots.text);const W=r.h(p.ElCheckboxGroup,R,F);I.push(W);const j={default:()=>I};l.slots.default&&(j.label=l.slots.default),l.slots.fixedTip&&(j.fixedTip=l.slots.fixedTip);const x={...xe(n,qr),hintText:D.value,hintVisible:N.value,prop:`${n.prop??l.attrs.name}_item`};return v.value&&(x["appear-listen"]=!0,x.onAppear=y),r.h(o,x,j)}}}}const{componentName:Tu,create:$u,scope:Cu}=re("checkbox-item"),Zn=$u(Su(Tu,Cu,he)),Mr={modelValue:{type:[Number,String],required:!1}};function Eu(e,t,o){return{props:{...me,...we,...Mr},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}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=ie(n,"modelValue",m=>be(m)),f=e,c=r.computed(()=>({[f]:!0})),d=m=>{s("update:modelValue",m),s("change",m)};let v=ie(n,"hintText"),T=r.ref(!1);const h=r.ref();return ve({}),()=>{const y={...Be(l.attrs),ref:h,class:c.value,readonly:i.value||a.value,modelValue:u.value,onChange:d},b={},w=[],V=r.h(p.ElRate,y,b);w.push(V);const D={default:()=>w};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const O={...xe(n,Mr),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,O,D)}}}}const{componentName:Nu,create:ku,scope:Vu}=re("rate-item"),Jn=ku(Eu(Nu,Vu,he)),_r={modelValue:{type:[Boolean,String,Number],required:!1}};function Pu(e,t,o){return{props:{...me,...we,..._r},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}=ge({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),u=ie(n,"modelValue"),f=e,c=r.computed(()=>({[f]:!0})),d=m=>{s("update:modelValue",m),s("change",m)};let v=ie(n,"hintText"),T=ie(n,"hintVisible");const h=r.ref();return ve({}),()=>{const y={...Be(l.attrs),ref:h,class:c.value,readonly:i.value,disabled:a.value,modelValue:u.value,onChange:d},b={},w=[],V=r.h(p.ElSwitch,y,b);w.push(V);const D={default:()=>w};l.slots.default&&(D.label=l.slots.default),l.slots.fixedTip&&(D.fixedTip=l.slots.fixedTip);const O={...xe(n,_r),hintText:v.value,hintVisible:T.value,prop:`${n.prop}_item`};return r.h(o,O,D)}}}}const{componentName:Iu,create:Ou,scope:Ru}=re("switch-item"),Qn=Ou(Pu(Iu,Ru,he)),jr={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function Du(e,t,o){return{props:{...me,...we,...jr},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}=ge({componentName:e,get validate(){return!a.value&&!i.value}},n.prop??l.attrs.name),f=ie(n,"modelValue"),c=e,d=r.computed(()=>({[c]:!0})),v=N=>{u("update:modelValue",N),u("change",N)};let T=ie(n,"hintText"),h=r.ref(!1);const m=N=>{let k=N.target.value;s.value=!0,fe(T.value)||(h.value=!0),u("focus",k,N)},y=N=>{setTimeout(()=>{h.value&&(h.value=!1),s.value=!1},0);let k=N.target.value;n.maxLength&&k.length>Number(n.maxLength)&&(k=k.slice(0,Number(n.maxLength))),w.value||u("blur",k,N)},b=()=>{u("clear","")},w=r.ref(!1),V=N=>{w.value=N,u("visible-change",N),N||u("selected")},D=r.ref();return ve({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()}}),()=>{const O={...Be(l.attrs),ref:D,class:d.value,disabled:a.value||i.value,modelValue:f.value,"onUpdate:modelValue":v,onClear:b,onFocus:m,onBlur:y,onVisibleChange:V},k={};l.slots.option&&(k.default=l.slots.option);const R=[],I=r.h(p.ElTreeSelect,O,k);R.push(I);const F={default:()=>R};l.slots.default&&(F.label=l.slots.default),l.slots.fixedTip&&(F.fixedTip=l.slots.fixedTip);const j={...xe(n,jr),hintText:T.value,hintVisible:h.value,prop:`${n.prop}_item`};return r.h(o,j,F)}}}}const{componentName:Fu,create:Au,scope:Bu}=re("tree-select-item"),er=Au(Du(Fu,Bu,he)),Lu={},qu={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"},Mu=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),_u=[Mu];function ju(e,t){return r.openBlock(),r.createElementBlock("svg",qu,_u)}const Hu=ke(Lu,[["render",ju]]),{componentName:Af,create:zu,scope:Bf}=re("group-setting"),Ku={groupProp:{type:[String]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[String],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Wu=zu({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:Hu,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Ku},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let l=null;const a=r.ref([]),i=Qo(),s=x=>x.length>1,u=()=>{const x=[],g=[...a.value];a.value=g.map((P,H)=>(P.visible!==!1&&x.push(P.prop),{...P,sortIndex:H})),a.value.length===x.length?h.value=!0:x.length>0&&(m.value=!0),w.value=x},f=x=>{const g=document.querySelectorAll(`.fox-group[prop="${x}"] > div > .fox-item[prop]`),A=[];return g.forEach(P=>{const H=P.querySelector(".label--string");let C="";H&&(C=H.textContent??"");const B=P.getAttribute("prop")??"",Y=window.getComputedStyle(P,null).getPropertyValue("display");A.push({label:C,prop:B,sortIndex:0,visible:Y!=="none"})}),A},c=async(x=!1)=>{l||(l=f(e.groupProp));const g=l.map(P=>({...P})),A=await i.load(e.groupProp);Array.isArray(A)&&A.forEach(P=>{g.some(H=>H.prop===P.prop?(Object.assign(H,P),!0):!1)}),a.value=g.sort((P,H)=>P.sortIndex-H.sortIndex),u(),x&&v(!1)},d=()=>{const x=l??[];a.value=x.map(g=>({...g})),u(),v()},v=(x=!0)=>{x&&i.save(e.groupProp,a.value);const g=a.value.map(A=>({...A}));t("change",g)},T=r.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=r.ref(!1),m=r.ref(!1),y=x=>{const g=[];a.value.forEach(P=>{x&&g.push(P.prop),P.visible=x}),h.value=!1,m.value=!1,a.value.length===g.length?h.value=!0:g.length>0&&(m.value=!0),w.value=g,v()},b=()=>{d()},w=r.ref([]),V=x=>{a.value.forEach(A=>{const P=x.indexOf(A.prop)!==-1;A.visible=P}),h.value=!1,m.value=!1;const g=a.value.length;x.length===g?h.value=!0:x.length>0&&(m.value=!0),v()},D=()=>{c()};r.onMounted(()=>{e.initDelay>0?setTimeout(()=>{c(!0)},e.initDelay):c(!0)});const N={currentRow:null,index:null},O=x=>x?x.dataset&&x.dataset.role==="row"?x:x.tagName.toLowerCase()!=="body"?(x=x.parentElement,O(x)):null:null,k=x=>{const g=x.currentTarget;g&&g.dataset&&(N.index=g.dataset.index)},R=x=>{N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null),N.index=null},I=x=>{const g=x.currentTarget;x.relatedTarget;const A=O(g);A&&(x.preventDefault(),N.currentRow&&N.currentRow!==A&&N.currentRow.classList.remove("is-dragover"),A.classList.add("is-dragover"),N.currentRow=A)},F=x=>{x.preventDefault(),N.currentRow&&(N.currentRow.classList.remove("is-dragover"),N.currentRow=null)},W=x=>{const g=x.currentTarget,A=O(g);if(!A)return;x.preventDefault();const P=Number(N.index),H=Number(A.dataset.index);if(P!==H){if(P<H){const C=a.value[P];a.value.splice(P,1),a.value.splice(H,0,C)}else{const C=a.value[P];a.value.splice(P,1),a.value.splice(H+1,0,C)}u(),v()}},j=x=>{const g=a.value[x];a.value.splice(x,1),a.value.splice(0,0,g),u(),v()},S=x=>{const g=a.value[x];a.value.splice(x,1),a.value.push(g),u(),v()};return n({refresh:()=>{l=null,c(!1)}}),{attrs:o,itemPropertyList:a,isDraggble:s,isCheckAll:h,isIndeterminate:m,handleCheckAllChange:y,handleReset:b,checkedValue:w,handleCheckChange:V,onShow:D,onDragStart:k,onDragEnd:R,onDragOver:I,onDragLeave:F,onDrop:W,checkboxLabelStyle:T,toTop:j,toBottom:S}}}),Yu={class:"fox-group-setting"},Gu={class:"fox-group-setting__header"},Uu={class:"fox-group-setting__body"},Xu={class:"fox-group-setting__body-list","data-role":"container"},Zu=["data-index","draggable"],Ju={class:"tools-item"};function Qu(e,t,o,n,l,a){const i=r.resolveComponent("FoxCheckbox"),s=r.resolveComponent("FoxButton"),u=r.resolveComponent("DragIcon"),f=r.resolveComponent("Download"),c=r.resolveComponent("FoxIcon"),d=r.resolveComponent("fox-tooltip"),v=r.resolveComponent("FoxCheckboxGroup"),T=r.resolveComponent("FoxPopover");return r.openBlock(),r.createBlock(T,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",Yu,[r.createElementVNode("div",Gu,[r.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),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",Uu,[r.createVNode(v,{modelValue:e.checkedValue,"onUpdate:modelValue":t[6]||(t[6]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:r.withCtx(()=>[r.createElementVNode("div",Xu,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.itemPropertyList,h=>(r.openBlock(),r.createElementBlock("div",{key:h.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":h.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:h.prop},{default:r.withCtx(()=>[r.createElementVNode("span",{class:"checkbox-item__label",style:r.normalizeStyle(e.checkboxLabelStyle)},r.toDisplayString(h.label),5)]),_:2},1032,["label"]),r.createElementVNode("div",Ju,[r.createVNode(d,{content:e.toTopText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toTop(h.sortIndex),class:"is-reverse"},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"]),r.createVNode(d,{content:e.toBottomText,placement:"top"},{default:r.withCtx(()=>[r.createVNode(c,{onClick:m=>e.toBottom(h.sortIndex)},{default:r.withCtx(()=>[r.createVNode(f)]),_:2},1032,["onClick"])]),_:2},1032,["content"])])],40,Zu))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const tr=ke(Wu,[["render",Qu]]),ec=Symbol.for("InnerPageScopeKey"),tc=Symbol.for("PageWrapperKey");function nc(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(ec,!0);const l={};r.provide(tc,l);const a=u=>{typeof l.beforeClose=="function"&&l.beforeClose()},i=r.ref(!0),s=u=>{i.value=u};return()=>{const f={...n.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":s,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},c={};if(typeof n.slots.default=="function"){const d=n.slots.default();c.default=()=>d}return r.h(p.ElDialog,f,c)}}}}const{componentName:Lf,create:rc,scope:qf}=re("dialog-item"),nr=rc(nc());function oc(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}),f=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 d={class:u.value,style:f.value},v=n.default?n.default():[],T=r.h("div",d,v),h={class:a.value};return o.textPosition==="right"?r.h("div",h,[c,T]):r.h("div",h,[T,c])}}}}const{componentName:lc,create:ac,scope:Mf}=re("indicator"),rr=ac(oc(lc));function ic(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 sc={class:{type:[String],required:!1},tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1}};function uc(e,t){return{props:{...sc},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(v=>{c[v]=!0}),o.type&&(c[`${e}__${o.type}`]=!0),o.size&&(c[`${e}__${o.size}`]=!0),c}),s=c=>{if(c&&te(o.showOverflowTooltip)){const d=c.clientWidth;ic(c,v=>{l.value=v<=d})}};let u=null;r.onMounted(()=>{if(!te(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 f=(c,d)=>{let v=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const T=o.highlightFilter;if(c.indexOf(T)!==-1){const m=c.replace(new RegExp(T,"g"),`<span>${T}</span>`);d.innerHTML=m,d.class["is-highlight"]=!0,v=r.h(o.tag,d)}}else if(typeof o.highlightFilter=="function"){const T=o.highlightFilter(c);T&&(d.innerHTML=T,d.class["is-highlight"]=!0,v=r.h(o.tag,d))}return v};return()=>{const c={},d={...n.attrs,class:{...i.value},ref:a};if(te(o.numberFormat)&&typeof n.slots.default=="function"){const m=n.slots.default();if(Array.isArray(m)&&m.length===1){const y=m[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const b=be(o.digits),w=be(o.decimalLength),V=te(o.autoPadding);let D=`${m[0].children}`,N=D.split("").reverse().join("");N=Dt(N,w,V,b,o.separator),D=N.split("").reverse().join("");let O=null;o.highlightFilter!==void 0&&(O=f(D,d)),O||(d.innerHTML=D,O=r.h(o.tag,d)),c.default=()=>O}}}else{let m=null;if(o.highlightFilter!==void 0&&typeof n.slots.default=="function"){const y=n.slots.default();if(Array.isArray(y)&&y.length===1){const b=y[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const w=`${y[0].children}`;m=f(w,d),m||(d.innerHTML=w,m=r.h(o.tag,d))}}}m||(m=r.h(o.tag,d,{default:n.slots.default})),c.default=()=>m}const T={disabled:l.value};return c.content=n.slots.default,r.h(p.ElTooltip,T,c)}}}}const{componentName:cc,create:fc,scope:_f}=re("text"),or=fc(uc(cc)),dc={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:Ee.ArrowUp}};function mc(e,t,o){return{props:{...dc},emits:["click","update:modelValue"],setup(n,{emit:l}){const a=r.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}__disabled`]=!0:d[`${e}__${n.type}`]=!0,d}),i=ie(n,"modelValue"),s=r.computed(()=>i.value?n.expandText??"":n.collapseText??""),u=r.computed(()=>({[`${e}__text`]:!0})),f=r.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),c=()=>{l("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const m={class:u.value},y=r.h("span",m,[s.value]);d.push(y)}const v={class:f.value},T=o(n.icon,v);return T&&d.push(T),r.h("div",{class:a.value,onClick:c},d)}}}}const{componentName:hc,create:pc,scope:gc}=re("more-button"),vc=(e,t)=>(e=e??Ee.ArrowUp,r.h(p.ElIcon,t,{default:()=>[r.h(e)]})),lr=pc(mc(hc,gc,vc)),{componentName:yc,create:bc,scope:jf}=re("tour"),xc=bc({components:{Close:Ee.Close,ElPopover:p.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=yc,n=r.reactive({showTour:e.modelValue,showPopup:!1,active:0}),l=r.ref({}),a=r.computed(()=>`${o}`),i=r.computed(()=>{const{offset:h,maskWidth:m,maskHeight:y}=e,{width:b,height:w,left:V,top:D}=l.value,N=e.steps[n.active].offset??h,O=[V+b/2,D+w/2],k=Number(m||b),R=Number(y||w);return{width:`${k+ +N.left+N.right}px`,height:`${R+N.top+N.bottom}px`,top:`${O[1]-R/2-+N.top}px`,left:`${O[0]-k/2-+N.left}px`}}),s=h=>{h=="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=h=>h.popoverWidth??e.width,f=h=>h.location??e.location,c=()=>{const h=document.querySelector(`${e.steps[n.active].target}`),m=Fn(h);l.value={x:m.left,y:m.top,top:m.top,left:m.left,width:m.width,height:m.height}},d=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&d()},T=(h,m=0)=>{h&&c(),e.steps,n.active=m,n.showTour=h,n.showPopup=h};return r.onMounted(()=>{T(e.modelValue,e.current)}),r.watch(()=>e.modelValue,h=>{T(h)}),{...r.toRefs(n),classes:a,maskStyle:i,changeStep:s,popoverWidth:u,popoverLocation:f,close:d,handleClickMask:v}}}),wc={key:0,class:"fox-tour__content"},Sc={key:0,class:"fox-tour__content-top"},Tc={class:"fox-tour__content-inner"},$c={class:"fox-tour__content-bottom"},Cc={class:"fox-tour__content-bottom-init"},Ec={class:"fox-tour__content-bottom-operate"},Nc={key:1,class:"fox-tour__content fox-tour__content-tile"},kc={class:"fox-tour__content-inner"};function Vc(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]=(...f)=>e.handleClickMask&&e.handleClickMask(...f))},null,512),[[r.vShow,e.showTour]]),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.steps,(f,c)=>(r.openBlock(),r.createElementBlock("div",{key:c,style:{height:"0"}},[c==e.active?(r.openBlock(),r.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(f),width:e.popoverWidth(f)},{reference:r.withCtx(()=>[e.showTour?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:r.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):r.createCommentVNode("",!0)]),default:r.withCtx(()=>[r.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(r.openBlock(),r.createElementBlock("div",wc,[e.showTitleBar?(r.openBlock(),r.createElementBlock("div",Sc,[r.createElementVNode("div",{onClick:t[1]||(t[1]=(...d)=>e.close&&e.close(...d))},[r.createVNode(i,{class:"fox-tour__content-top-close"})])])):r.createCommentVNode("",!0),r.createElementVNode("div",Tc,r.toDisplayString(f.content),1),r.createElementVNode("div",$c,[r.createElementVNode("div",Cc,r.toDisplayString(e.active+1)+"/"+r.toDisplayString(e.steps.length),1),r.createElementVNode("div",Ec,[r.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(r.openBlock(),r.createBlock(s,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=d=>e.changeStep("prev"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.prevStepText),1)]),_:1})):r.createCommentVNode("",!0)]),e.steps.length-1==e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):r.createCommentVNode("",!0),r.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(r.openBlock(),r.createBlock(s,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=d=>e.changeStep("next"))},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(e.nextStepText),1)]),_:1})):r.createCommentVNode("",!0)])])])])):r.createCommentVNode("",!0),e.type=="tile"?(r.openBlock(),r.createElementBlock("div",Nc,[r.createElementVNode("div",kc,r.toDisplayString(f.content),1)])):r.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):r.createCommentVNode("",!0)]))),128))],2)}const ar=ke(xc,[["render",Vc]]),Se=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,Ye=e=>e==null,Hr=10;function Pc(e,t){return e>t&&e>Hr?"horizontal":t>e&&t>Hr?"vertical":""}function Ic(){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=Pc(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 Oc(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Rc(e){e.stopPropagation()}function Dc(e,t){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),t&&Rc(e)}class Fc{startMove;updateMove;isTouch=!1;el=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(t,o){this.startMove=t,this.updateMove=o,this.isTouch=Oc()}open(t){this.el=t;const o=Ic(),n=(l,a,i,s,u)=>{this.updateMove({x:a,y:i})};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),o.isHorizontal()&&Dc(l,!0),n(t,o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(t,o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},t.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const t=this.el;this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.el=null}}function zr(e,t){return new Fc(e,t)}var Kr;const wn=typeof window<"u";wn&&((Kr=window?.navigator)!=null&&Kr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);let tt=[];const Wr=e=>{const t=e;t.key==="Escape"&&tt.forEach(o=>o(t))},Ac=e=>{r.onMounted(()=>{tt.length===0&&document.addEventListener("keydown",Wr),wn&&tt.push(e)}),r.onBeforeUnmount(()=>{tt=tt.filter(t=>t!==e),tt.length===0&&wn&&document.removeEventListener("keydown",Wr)})},on="fox-focus-trap.focus-after-trapped",ln="fox-focus-trap.focus-after-released",Bc="fox-focus-trap.focusout-prevented",Yr={cancelable:!0,bubbles:!1},Lc={cancelable:!0,bubbles:!1},Gr="foxFocusAfterTrapped",Ur="foxFocusAfterReleased",qc=Symbol("foxFocusTrap"),ir=r.ref(),Gt=r.ref(0),sr=r.ref(0);let Ct=0;const nl=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},Mc=(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},Xr=(e,t)=>{for(const o of e)if(!Mc(o,t))return o},_c=e=>{const t=nl(e),o=Xr(t,e),n=Xr(t.reverse(),e);return[o,n]},jc=e=>e instanceof HTMLInputElement&&"select"in e,He=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),sr.value=window.performance.now(),e!==o&&jc(e)&&t&&e.select()}};function Zr(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Hc=()=>{let e=[];return{push:n=>{const l=e[0];l&&n!==l&&l.pause(),e=Zr(e,n),e.unshift(n)},remove:n=>{e=Zr(e,n),e[0]?.resume?.()}}},zc=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(He(n,t),document.activeElement!==o)return},Jr=Hc(),Kc=()=>Gt.value>sr.value,Et=()=>{ir.value="pointer",Gt.value=window.performance.now()},Qr=()=>{ir.value="keyboard",Gt.value=window.performance.now()},Wc=()=>(r.onMounted(()=>{Ct===0&&(document.addEventListener("mousedown",Et),document.addEventListener("touchstart",Et),document.addEventListener("keydown",Qr)),Ct++}),r.onBeforeUnmount(()=>{Ct--,Ct<=0&&(document.removeEventListener("mousedown",Et),document.removeEventListener("touchstart",Et),document.removeEventListener("keydown",Qr))}),{focusReason:ir,lastUserFocusTimestamp:Gt,lastAutomatedFocusTimestamp:sr}),Nt=e=>new CustomEvent(Bc,{...Lc,detail:e}),{componentName:Hf,create:Yc,scope:zf}=re("focus-trap"),Gc={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"}},Uc=Yc({props:Gc,emits:[Gr,Ur,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=r.ref();let l,a;const{focusReason:i}=Wc();Ac(m=>{te(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&&!te(e.trapped)||s.paused)return;const{key:y,altKey:b,ctrlKey:w,metaKey:V,currentTarget:D,shiftKey:N}=m,{loop:O}=e,k=y==="Tab"&&!b&&!w&&!V,R=document.activeElement;if(k&&R){const I=D,[F,W]=_c(I);if(F&&W){if(!N&&R===W){const S=Nt({focusReason:i.value});o("focusout-prevented",S),S.defaultPrevented||(m.preventDefault(),O&&He(F,!0))}else if(N&&[F,I].includes(R)){const S=Nt({focusReason:i.value});o("focusout-prevented",S),S.defaultPrevented||(m.preventDefault(),O&&He(W,!0))}}else if(R===I){const S=Nt({focusReason:i.value});o("focusout-prevented",S),S.defaultPrevented||m.preventDefault()}}};r.provide(qc,{focusTrapRef:n,onKeydown:u}),r.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),r.watch([n],([m],[y])=>{m&&(m.addEventListener("keydown",u),m.addEventListener("focusin",d),m.addEventListener("focusout",v)),y&&(y.removeEventListener("keydown",u),y.removeEventListener("focusin",d),y.removeEventListener("focusout",v))});const f=m=>{o(Gr,m)},c=m=>o(Ur,m),d=m=>{const y=r.unref(n);if(!y)return;const b=m.target,w=m.relatedTarget,V=b&&y.contains(b);te(e.trapped)||w&&y.contains(w)||(l=w),V&&o("focusin",m),!s.paused&&te(e.trapped)&&(V?a=b:He(a,!0))},v=m=>{const y=r.unref(n);if(!(s.paused||!y))if(!e.escape&&te(e.trapped)){const b=m.relatedTarget;!$n(b)&&!y.contains(b)&&setTimeout(()=>{if(!s.paused&&te(e.trapped)){const w=Nt({focusReason:i.value});o("focusout-prevented",w),w.defaultPrevented||He(a,!0)}},0)}else{const b=m.target;b&&y.contains(b)||o("focusout",m)}};async function T(){await r.nextTick();const m=r.unref(n);if(m){Jr.push(s);const y=m.contains(document.activeElement)?l:document.activeElement;if(l=y,!m.contains(y)){const w=new Event(on,Yr);m.addEventListener(on,f),m.dispatchEvent(w),w.defaultPrevented||r.nextTick(()=>{let V=e.focusStartEl;lo(V)||(He(V),document.activeElement!==V&&(V="first")),V==="first"&&zc(nl(m),!0),(document.activeElement===y||V==="container")&&He(m)})}}}function h(){const m=r.unref(n);if(m){m.removeEventListener(on,f);const y=new CustomEvent(ln,{...Yr,detail:{focusReason:i.value}});m.addEventListener(ln,c),m.dispatchEvent(y),!y.defaultPrevented&&(i.value=="keyboard"||!Kc())&&He(l??document.body,!0),m.removeEventListener(ln,f),Jr.remove(s)}}return r.onMounted(()=>{te(e.trapped)&&T(),r.watch(()=>e.trapped,m=>{te(m)?T():h()})}),r.onBeforeUnmount(()=>{te(e.trapped)&&h()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:Xc,create:Zc,scope:Kf}=re("floating-window"),Jc=Symbol.for("InnerPageScopeKey"),Qc=Symbol.for("PageWrapperKey"),ef={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},origin:{type:[String],required:!1,default:"right-top"},top:{type:[String,Number],required:!1},left:{type:[String,Number],required:!1},bottom:{type:[String,Number],required:!1},right:{type:[String,Number],required:!1},teleport:{type:[String,Element],default:"body"},fixedNavTeleport:{type:[String,Element]},zIndex:{type:[String,Number],required:!1},collapse:{type:[Boolean],requried:!1},showCollapse:{type:[Boolean],required:!1,default:!0},collapseText:{type:[String],requried:!1,default:"收起"},collapseIcon:{type:[Object],requried:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseTop:{type:[String],requried:!1,default:"30vh"},expandText:{type:[String],requried:!1},expandIcon:{type:[Object],requried:!1},expandClass:{type:[String],requried:!1},showClose:{type:[Boolean],required:!1,default:!0},closeIcon:{type:[Object],requried:!1},draggable:{type:[Boolean],required:!1,default:!0},customClass:{type:[String],required:!1}},tf=Zc({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:Uc},props:{...ef},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=Xc,n=r.ref(e.modelValue),l=r.computed(()=>!e.teleport);r.watch(()=>e.modelValue,$=>{n.value=$});const a=r.computed(()=>n.value===!1?!1:!k.value),i=r.ref(e.left),s=r.ref(e.top),u=r.ref(e.right),f=r.ref(e.bottom),c=r.computed(()=>{const $=["fox-floating-window"];return e.customClass&&$.push(e.customClass),$}),d=r.computed(()=>{const $={};return Ye(i.value)?$.left="auto":$.left=Se(i.value),Ye(s.value)?$.top="auto":$.top=Se(s.value),Ye(u.value)?$.right="auto":$.right=Se(u.value),Ye(f.value)?$.bottom="auto":$.bottom=Se(f.value),Ye(e.zIndex)||($["z-index"]=Se(e.zIndex)),Ye(N.value)||($.height=N.value),Ye(O.value)||($.width=O.value),$}),v=r.computed(()=>e.closeIcon??Ee.Close),T=r.computed(()=>e.collapseIcon??Ee.ArrowUp),h=r.computed(()=>e.collapseText??""),m=r.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),y=r.computed(()=>e.expandText??e.title??"展开"),b=r.computed(()=>({[`${o}__collapse-text`]:!0})),w=r.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!k.value,"is-collapse":k.value})),V=r.ref(),D=r.ref(),N=r.computed(()=>Se(e.height)||""),O=r.computed(()=>Se(e.width)||""),k=r.ref(te(e.collapse)),R=($,L=!0)=>{k.value!==$&&(k.value=$,$?M():Y(),t("update:collapse",$))};r.watch(()=>e.collapse,$=>{R($)});const I=()=>{F()},F=$=>{$=$??!k.value,R($)};r.provide(Jc,!0);const W={setCollapse:R,setFixedNavVisible:$=>{H.value=$}};r.provide(Qc,W);const j=()=>{typeof W.beforeClose=="function"?W.beforeClose(()=>{n.value=!1}):n.value=!1},S=r.ref(null),x=r.computed(()=>!e.fixedNavTeleport),g=r.computed(()=>{const $=["fox-floating-window__fixednav"];return e.expandClass&&$.push(e.expandClass),e.collapsePosition==="left"?$.push("is-left"):e.collapsePosition==="right"&&$.push("is-right"),$}),A=r.ref(""),P=r.computed(()=>{const $={};return A.value?$.top=A.value:e.collapseTop&&($.top=e.collapseTop),$}),H=r.ref(k.value);let C=null;const B=()=>{typeof C=="function"&&(C(),C=null)},M=()=>{S.value&&S.value.classList.add("slide-in"),H.value=!0,C=()=>{S.value&&S.value.classList.remove("slide-in")}},Y=()=>{S.value&&S.value.classList.add("slide-out"),C=()=>{S.value&&S.value.classList.remove("slide-out"),H.value=!1}},Z=()=>{i.value=null,s.value=null,u.value=null,f.value=null},J={x:0,y:0},X=zr($=>{if(!V.value)return;const L=V.value;if(Z(),e.origin==="left-top")i.value=L.offsetLeft,s.value=L.offsetTop,J.x=i.value,J.y=s.value;else if(e.origin==="left-bottom"){const E=document.documentElement.clientHeight||document.body.clientHeight;i.value=L.offsetLeft,f.value=E-(L.offsetTop+L.offsetHeight),J.x=i.value,J.y=f.value}else if(e.origin==="right-bottom"){const E=document.documentElement.clientWidth||document.body.clientWidth,z=document.documentElement.clientHeight||document.body.clientHeight;u.value=E-(L.offsetLeft+L.offsetWidth),f.value=z-(L.offsetTop+L.offsetHeight),J.x=u.value,J.y=f.value}else{const E=document.documentElement.clientWidth||document.body.clientWidth;u.value=E-(L.offsetLeft+L.offsetWidth),s.value=L.offsetTop,J.x=u.value,J.y=s.value}},$=>{if(!V.value)return;const L=V.value;Z(),e.origin==="left-top"?(i.value=J.x+$.x,s.value=J.y+$.y,L.style.left=Se(i.value),L.style.top=Se(s.value)):e.origin==="left-bottom"?(i.value=J.x+$.x,f.value=J.y-$.y,L.style.left=Se(i.value),L.style.bottom=Se(f.value)):e.origin==="right-bottom"?(u.value=J.x-$.x,f.value=J.y-$.y,L.style.right=Se(u.value),L.style.bottom=Se(f.value)):(u.value=J.x-$.x,s.value=J.y+$.y,L.style.right=Se(u.value),L.style.top=Se(s.value))}),Q={x:0,y:0},G=zr($=>{S.value&&(Q.x=S.value.offsetLeft,Q.y=S.value.offsetTop)},$=>{if(!S.value)return;const L=Q.y+$.y;A.value=`${L}px`});return r.onMounted(()=>{e.draggable&&D.value&&V.value&&X.open(D.value),e.collapse===!0&&R(e.collapse,!1),S.value&&G.open(S.value)}),r.onBeforeUnmount(()=>{e.draggable&&D.value&&X.close(),S.value&&G.close()}),{classes:c,styles:d,isShow:a,closeIcon:v,onClose:j,dialogRef:V,headerRef:D,onClickToggle:I,collapseIcon:T,collapseText:h,collapseTextClasses:b,collapseIconClasses:w,expandIcon:m,expandText:y,isShowFixedNav:H,fixedNavRef:S,fixedNavClasses:g,fixedNavStyles:P,onAnimationEnd:B,teleportDisabled:l,fixedNavTeleportDisabled:x}}}),nf={ref:"headerRef",class:"fox-floating-window__header"},rf={class:"fox-floating-window__title"},of={class:"fox-floating-window__tools"},lf={class:"fox-floating-window__body"},af={class:"fox-floating-window__fixednav__text"};function sf(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",nf,[r.renderSlot(e.$slots,"header",{},()=>[r.createElementVNode("span",rf,r.toDisplayString(e.title),1),r.createElementVNode("div",of,[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",lf,[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",af,r.toDisplayString(e.expandText),1)])],38),[[r.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const ur=ke(tf,[["render",sf]]);function uf(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return Co(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Wf,create:cf,scope:Yf}=re("domain-provider"),cr=cf(uf()),ff={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 df(e,t){return{inheritAttrs:!1,props:ff,setup(o,{slots:n}){if(st&&window.IntersectionObserver){const l=new WeakMap;let a=new Map;const i=(v,T)=>{if(c===null){a.set(v,{visible:null,callback:T});return}l.has(v)&&c.unobserve(v),l.set(v,{visible:null,callback:T}),c.observe(v)},s=v=>{if(c===null){a.delete(v);return}l.has(v)&&(l.delete(v),c.unobserve(v))};let u=o.initialVisibleObserverSize;Sa({acquire:()=>{const v=u>0;return u--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:s});let c=null;const d=(v,T,h)=>{c=new IntersectionObserver(m=>{for(let y of m){let b=!1;y.intersectionRatio>0&&(b=!0);const w=l.get(y.target);if(w)try{if(o.loadPolicy==="lazy"&&!b&&w.visible!==null)return;w.visible=b,w.callback(b)}catch(V){console.error(V)}}},{root:v,rootMargin:T,threshold:h}),a.forEach((m,y)=>{l.set(y,m),c?.observe(y)}),a.clear()};r.watch([()=>o.root,()=>o.disabled],([v,T])=>{if(T||!v||c)return;let h=null;typeof v=="string"?h=document.querySelector(v):h=v,h&&d(h,o.rootMargin,o.threshold)},{immediate:!0}),r.onUnmounted(()=>{c&&(c.disconnect(),c=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:Gf,create:mf,scope:Uf}=re("rolling-provider"),fr=mf(df()),eo=10;function hf(e,t){return e>t&&e>eo?"horizontal":t>e&&t>eo?"vertical":""}function pf(){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),f=r.ref(0),c=r.ref(""),d=()=>c.value==="vertical",v=()=>c.value==="horizontal",T=()=>{i.value=0,s.value=0,u.value=0,f.value=0,c.value="",o.value=0};return{move:y=>{const b=y.touches[0];i.value=b.clientX-e.value,s.value=b.clientY-t.value,l.value=b.clientX,a.value=b.clientY,u.value=Math.abs(i.value),f.value=Math.abs(s.value),n.value=Date.now()-o.value,c.value||(c.value=hf(u.value,f.value))},start:y=>{T(),e.value=y.touches[0].clientX,t.value=y.touches[0].clientY,o.value=Date.now()},reset:T,startX:e,startY:t,startTime:o,duration:n,moveX:l,moveY:a,deltaX:i,deltaY:s,offsetX:u,offsetY:f,direction:c,isVertical:d,isHorizontal:v}}const gf=[kn,In,On,Rn,Dn,he,An,Bn,wt,Ln,qn,Mn,_n,jn,Hn,zn,Kn,Wn,Yn,Gn,Yt,Un,Xn,Zn,Jn,Qn,er,tr,nr,yt,Wt,rr,or,lr,ar,ur,cr,fr],vf=new Wl(gf,[Ul],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>p.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>p.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>p.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>p.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>p.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>p.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>p.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>p.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>p.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>p.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>p.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>p.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>p.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>p.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>p.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>p.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>p.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload});exports.AutocompleteItem=Wn;exports.Broadcast=Cn;exports.BroadcastKey=de;exports.CascaderItem=Kn;exports.CheckboxItem=Zn;exports.Content=Rn;exports.DataItemsKey=et;exports.DateItem=Mn;exports.DateUtils=Ie;exports.DialogItem=nr;exports.Domain=Lt;exports.DomainKey=Ve;exports.DomainProvider=cr;exports.FloatingWindow=ur;exports.FooterBar=On;exports.FoxAutocompleteItem=Wn;exports.FoxCascaderItem=Kn;exports.FoxCheckboxItem=Zn;exports.FoxContent=Rn;exports.FoxDateItem=Mn;exports.FoxDialogItem=nr;exports.FoxDomainProvider=cr;exports.FoxFloatingWindow=ur;exports.FoxFooterBar=On;exports.FoxGroup=Dn;exports.FoxGroupSetting=tr;exports.FoxHeaderBar=In;exports.FoxHintText=wt;exports.FoxIndicator=rr;exports.FoxInputItem=Ln;exports.FoxInputNumberItem=zn;exports.FoxItem=he;exports.FoxMapping=yt;exports.FoxMoneyItem=Hn;exports.FoxMoreButton=lr;exports.FoxPage=kn;exports.FoxPrice=Wt;exports.FoxRadioItem=Xn;exports.FoxRateItem=Jn;exports.FoxRollingProvider=fr;exports.FoxRowItem=Bn;exports.FoxSelectItem=qn;exports.FoxSlotItem=An;exports.FoxSwitchItem=Qn;exports.FoxTableItem=Un;exports.FoxTableMappingColumn=Yn;exports.FoxTableRadioColumn=Gn;exports.FoxTableSetting=Yt;exports.FoxText=or;exports.FoxTimeItem=_n;exports.FoxTimeSelectItem=jn;exports.FoxTour=ar;exports.FoxTreeSelectItem=er;exports.Group=Dn;exports.GroupSetting=tr;exports.HeaderBar=In;exports.HintText=wt;exports.Indicator=rr;exports.InputItem=Ln;exports.InputNumberItem=zn;exports.Item=he;exports.Mapping=yt;exports.MoneyItem=Hn;exports.MoreButton=lr;exports.Page=kn;exports.Price=Wt;exports.PriorityPolicy=Ne;exports.RadioItem=Xn;exports.RateItem=Jn;exports.RollingProvider=fr;exports.RowItem=Bn;exports.SelectItem=qn;exports.SlotItem=An;exports.SwitchItem=Qn;exports.TableItem=Un;exports.TableMappingColumn=Yn;exports.TableRadioColumn=Gn;exports.TableSetting=Yt;exports.Text=or;exports.TimeItem=_n;exports.TimeSelectItem=jn;exports.Tour=ar;exports.TreeSelectItem=er;exports.UniqueID=Lo;exports.ValidateSchema=To;exports.ValidateSchemaKey=Le;exports.cancelRaf=sl;exports.clearNonNumber=Tl;exports.clone=hn;exports.compareTo=fn;exports.createBroadcast=At;exports.createValidateSchema=Bt;exports.debounce=ht;exports.debounceRef=Al;exports.decimalLength=go;exports.default=vf;exports.defineBroadcast=Nl;exports.defineConfigDomain=Co;exports.defineDataItem=No;exports.defineDomain=Nn;exports.defineItem=ge;exports.definePageState=ko;exports.deleteGlobalValidator=Il;exports.disabledProperty=Ce;exports.divide=Tn;exports.excludeProps=xe;exports.extend=Je;exports.floatData=El;exports.getGlobalValidateCheckEvents=xo;exports.getGlobalValidateResetEvents=So;exports.getPageContentAreaHeight=It;exports.getPageContentAreaWidth=Ot;exports.getPageFooterAreaHeight=gt;exports.getPageHeaderAreaHeight=pt;exports.getRootDomain=nt;exports.hasSymbol=io;exports.includeProps=vo;exports.indexOf=$l;exports.installRules=Eo;exports.integerLength=po;exports.isArray=dl;exports.isArrayLike=co;exports.isBrowser=st;exports.isDate=pl;exports.isESModule=yl;exports.isEmptyString=fe;exports.isEqual=qe;exports.isFunction=dn;exports.isHidden=uo;exports.isInnerPage=ql;exports.isMap=ml;exports.isNil=$n;exports.isNumberString=ho;exports.isObject=We;exports.isPlainObject=mn;exports.isPromise=vl;exports.isRegExp=mo;exports.isSet=hl;exports.isString=lo;exports.isSubPage=Ml;exports.isSymbol=gl;exports.isWindow=so;exports.lastIndexOf=Cl;exports.makeArray=Sl;exports.merge=fo;exports.multiply=no;exports.negate=ro;exports.nextTick=xl;exports.numberFormat=Dt;exports.objectToString=ao;exports.once=Bl;exports.property=Te;exports.raf=fl;exports.readonlyProperty=$e;exports.setGlobalValidateCheckEvents=Ol;exports.setGlobalValidateHandler=Vl;exports.setGlobalValidateMessages=Dl;exports.setGlobalValidateResetEvents=Rl;exports.setGlobalValidator=Pl;exports.throttle=$o;exports.toBoolean=te;exports.toNumber=be;exports.toPadding=Re;exports.toPx=se;exports.toPxDesc=pe;exports.toTypeString=Ft;exports.toValue=ie;exports.tryTimes=En;exports.typeOf=Pt;exports.unNumberFormat=oo;exports.updatePageState=pn;exports.useBroadcast=dt;exports.useDomain=Me;exports.useExpose=ve;exports.useInnerSize=Pn;exports.usePageState=qt;exports.usePosition=Ao;exports.useRect=Fn;exports.useSize=Vn;exports.useTouch=pf;exports.valueLength=xt;
|
|
5
|
+
*/function Mt(e,t="0"){let o=0,n=-1;e[0]=="-"&&(o++,n=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,n=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=Bn($e(e),$e(t)),o==1&&(n==1?e=hn(e):t=hn(t));let r=Lo(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(hn(r)):$e(r)}function hn(e){let t="",o=e.length,n=e.split(".")[1],r=n?n.length:0;for(let s=0;s<o;s++)e[s]>="0"&&e[s]<="9"?t+=9-parseInt(e[s]):t+=e[s];let a=r>0?"0."+new Array(r).join("0")+"1":"1";return Lo(t,a)}function $e(e){let t=e.split(".");for(t[0]||(t[0]="0");t[0][0]=="0"&&t[0].length>1;)t[0]=t[0].substring(1);return t[0]+(t[1]?"."+t[1]:"")}function Bn(e,t){let o=e.split("."),n=t.split("."),r=o[0].length,a=n[0].length;return r>a?n[0]=new Array(Math.abs(r-a)+1).join("0")+(n[0]?n[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=n[1]?n[1].length:0,(r||a)&&(r>a?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(r-a)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-a)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),t=n[0]+(n[1]?"."+n[1]:""),[e,t]}function Lo(e,t){[e,t]=Bn(e,t);let o="",n=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+n;o=a%10+o,n=Math.floor(a/10)}return n?n.toString()+o:o}var ge=(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))(ge||{});function $t(e,t=0,o=ge.HALF_EVEN){if(o===ge.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let r=e.split("."),a=r[0],s=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let u=a.substr(0,a.length-t);return e=u+"."+a.substr(a.length-t)+s,u=$t(e,0,o),(n?"-":"")+u+new Array(t+1).join("0")}}if(t==0)return a.length,Bl(r[1],a,n,o)?(n?"-":"")+mn(a):(n?"-":"")+a;if(r[1]){if(r[1].length<t)return(n?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(n?"-":"")+a+"."+new Array(t+1).join("0");s=r[1].substring(0,t);let i=r[1].substring(t);return i&&Bl(i,s,n,o)&&(s=mn(s),s.length>t)?(n?"-":"")+mn(a,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+a+"."+s}function Bl(e,t,o,n){if(!e||e===new Array(e.length+1).join("0")||n===ge.DOWN||!o&&n===ge.FLOOR||o&&n===ge.CEILING)return!1;if(n===ge.UP||o&&n===ge.FLOOR||!o&&n===ge.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(n){case ge.HALF_DOWN:return!1;case ge.HALF_UP:return!0;case ge.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function mn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,n="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,n+=a}return t&&(n+=t),n.split("").reverse().join("")}function 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=yt(e),t=yt(t);let n=0,r=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=n+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let c=e;e=t,t=c}if(t=="0")return"0";let s=t.length,i=0,u=[],d=s-1,f="";for(let c=0;c<s;c++)u[c]=e.length-1;for(let c=0;c<2*e.length;c++){let x=0;for(let E=t.length-1;E>=d&&E>=0;E--)u[E]>-1&&u[E]<e.length&&(x+=parseInt(e[u[E]--])*parseInt(t[E]));x+=i,i=Math.floor(x/10),f=x%10+f,d--}return f=yt(Xr(f,a)),o==1&&(f="-"+f),f}function Xr(e,t){return t==0?e:(e=t>=e.length?new Array(t-e.length+1).join("0")+e:e,e.substr(0,e.length-t)+"."+e.substr(e.length-t,t))}function yt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function Nn(e,t,o=8){if(t==0)throw new Error("Cannot divide by 0");if(e=e.toString(),t=t.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),t=t.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;t[0]=="-"&&(t=t.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=$e(e+new Array(r+1).join("0"));else if(r>d)e=e.replace(".",""),e=$e(e+new Array(r-d+1).join("0"));else if(r<d){e=e.replace(".","");let f=e.length-d+r;e=$e(e.substring(0,f)+"."+e.substring(f))}else r==d&&(e=$e(e.replace(".","")))}let a=0,s=t.length,i="",u=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),u.indexOf(".")>-1){let d=u.length-u.indexOf(".")-1;u=u.replace(".",""),s>u.length&&(d+=s-u.length,u=u+new Array(s-u.length+1).join("0")),a=d,i="0."+new Array(d).join("0")}for(o=o+2;a<=o;){let d=0;for(;parseInt(u)>=parseInt(t);)u=Mt(u,"-"+t),d++;i+=d,e?(e[0]=="."&&(i+=".",a++,e=e.substring(1)),u=u+e.substring(0,1),e=e.substring(1)):(a||(i+="."),a++,u=u+"0")}return(n==1?"-":"")+$e($t(i,o-2))}function kn(e,t){return e=e.toString(),t=t.toString(),t=In(t),Mt(e,t)}function In(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function _l(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),ql(e),ql(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let n=kn(e,En(t,$t(Nn(e,t),0,ge.FLOOR)));return o+n}function ql(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function jl(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]=Bn(e,t),e.localeCompare(t)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return e[n]>t[n]?o?-1:1:o?1:-1;return 0}class ce{value;static RoundingModes=ge;static validate(t){if(t){if(t=t.toString(),isNaN(t))throw Error("Parameter is not a number: "+t);t[0]=="+"&&(t=t.substring(1))}else t="0";if(t.startsWith(".")?t="0"+t:t.startsWith("-.")&&(t="-0"+t.substr(1)),/e/i.test(t)){let[o,n]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(n=parseInt(n)+o.indexOf("."),o=o.replace(".","")):n=parseInt(n)+o.length,o.length<n?t=r+o+new Array(n-o.length+1).join("0"):o.length>=n&&n>0?t=r+$e(o.substring(0,n))+(o.length>n?"."+o.substring(n):""):t=r+"0."+new Array(-n+1).join("0")+o}return t}constructor(t="0"){this.value=ce.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,n){if(!(o||n))o=3,n=",";else if(!(o&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=ce.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var s="",i=a;i>0;)i<o?(o=i,i=0):i-=o,s=t.substring(i,i+o)+(i<a-o&&i>=0?n:"")+s;return(r?"-":"")+s+t.substring(a)}getPrettyValue(t,o){return ce.getPrettyValue(this.value,t,o)}static round(t,o=0,n=ge.HALF_EVEN){if(t=ce.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return $t(t,o,n)}round(t=0,o=ge.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new ce($t(this.value,t,o))}static floor(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,ge.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ge.FLOOR)}static ceil(t){return t=ce.validate(t),t.indexOf(".")===-1?t:ce.round(t,0,ge.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,ge.CEILING)}static add(t,o){return t=ce.validate(t),o=ce.validate(o),Mt(t,o)}add(t){return new ce(Mt(this.value,t.getValue()))}static subtract(t,o){return t=ce.validate(t),o=ce.validate(o),kn(t,o)}subtract(t){return new ce(kn(this.value,t.getValue()))}static multiply(t,o){return t=ce.validate(t),o=ce.validate(o),En(t,o)}multiply(t){return new ce(En(this.value,t.getValue()))}static divide(t,o,n){return t=ce.validate(t),o=ce.validate(o),Nn(t,o,n)}divide(t,o){return new ce(Nn(this.value,t.getValue(),o))}static modulus(t,o){return t=ce.validate(t),o=ce.validate(o),_l(t,o)}modulus(t){return new ce(_l(this.value,t.getValue()))}static compareTo(t,o){return t=ce.validate(t),o=ce.validate(o),jl(t,o)}compareTo(t){return jl(this.value,t.getValue())}static negate(t){return t=ce.validate(t),In(t)}negate(){return new ce(In(this.value))}}function Mo(e,t){return ce.multiply(`${e}`,`${t}`)}function _n(e,t,o=8){return ce.divide(`${e}`,`${t}`,o)}function On(e,t){return e=`${e}`,t=`${t}`,ce.compareTo(e,t)}function Bo(e){return ce.negate(e)}function Kt(e,t=-1,o=!1,n=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let s=a.charAt(0);s=="-"?a=a.substring(1):s="";let i=a,u="",d=a.indexOf(".");d!=-1&&(i=a.substring(0,d),u=a.substring(d+1)),t!=-1&&(t<u.length?u=u.substring(0,t):o&&t>u.length&&(u=u.padEnd(t,"0")));let f;if(n>0){let c="",x=i.split("").reverse();for(let E=0;E<x.length;E++)c+=x[E]+((E+1)%n==0&&E+1!=x.length?r:"");u.length==0?f=`${s}${c.split("").reverse().join("")}`:f=`${s}${c.split("").reverse().join("")}.${u}`}else u.length==0?f=`${s}${i}`:f=`${s}${i}.${u}`;return f}function _o(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let n=t.replace(/[^\d\.-]/g,"");return`${o}${n}`}const qn=Ao,Zr=Array.isArray,Jr=e=>Wt(e)==="[object Map]",Qr=e=>Wt(e)==="[object Set]",ea=e=>e instanceof Date,Vn=e=>typeof e=="function",qo=e=>typeof e=="string",ta=e=>typeof e=="symbol",Ye=e=>e!==null&&typeof e=="object",jo=e=>Ye(e)&&Vn(e.then)&&Vn(e.catch),zo=Object.prototype.toString,Wt=e=>zo.call(e),Pn=e=>Wt(e)==="[object Object]",Ho=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function na(e){return e.__esModule||Ho&&e[Symbol.toStringTag]==="Module"}const la=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function at(...e){let t=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,n=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<n;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let s in a){let i=t[s],u=a[s];if(i!==u)if(r===!0&&u&&typeof u=="object"){let d;Array.isArray(u)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},t[s]=at(r,d,u)}else u!==void 0&&(t[s]=u)}}return t}function Fn(e,t,o=!1){if(!o)at(!0,e,t);else{if(typeof t!="object")return{};typeof e!="object"&&(e={});for(let r in t){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Pn(s))continue;a=Fn(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}const n=Object.getOwnPropertySymbols(t);for(let r of n){let a=e[r],s=t[r];if(a!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Pn(s))continue;a=Fn(a,s,o),e[r]=a}else{if(typeof s=="function")continue;e[r]=s}}}return e}const gn=la?Promise.resolve():null;function oa(e,...t){gn!==null?t&&t.length>0?gn.then(()=>{e(t)}):gn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function se(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function be(e){return typeof e=="number"?e:Number(e)}const ra={"[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 Bt(e){let o=Object.prototype.toString.call(e);return e==null?String(e):ra[o]||"object"}function Ko(e){return e&&typeof e=="object"&&"setInterval"in e}function Yt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Wo(e){let t=!!e&&"length"in e&&e.length,o=Bt(e);return o==="function"||Ko(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Yo(e,t){let o=+t.length,n=0,r=e.length;for(;n<o;n++)e[r++]=t[n];return e.length=r,e}function aa(e,t=[]){let o=t;return e!=null&&(Wo(Object(e))?Yo(o,typeof e=="string"?[e]:e):o.push(e)),o}function We(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=Bt(e),n=Bt(t);if(o!==n)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s=0;s<r.length;s++){let i=r[s],u=e[i],d=t[i];if(!We(u,d))return!1}return!0}else if(o==="array"){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let a=e[r],s=t[r];if(!We(a,s))return!1}return!0}return!1}const it=typeof window<"u";function jn(e){return e==null}function Go(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const me=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Uo(e){return me(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),me(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Xo(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 Zo(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 zl(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 ia(e,t=!0,o=!0){t?e=zl(e,".",/\./g):e=e.replace(/\./g,""),o?e=zl(e,"-",/-/g):e=e.replace(/-/,"");const n=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(We(e,o))return!0}):t.indexOf(e)}function ua(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(n=>{if(We(e,n))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Vt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Jo(e,...t){const o={};return t.forEach(n=>{for(const r in n)o[r]=e[r]}),o}function Ne(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const n={};for(const r in e)o.includes(r)||(n[r]=e[r]);return n}const ca=(e,t,o)=>{const n=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(n).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(n[a]=t[r[a]]):t[a]&&(n[a]=t[a])}),n):e},pe=Symbol.for("BroadcastKey");class zn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,n){this.parent=t,this.proxy=o,this.name=n,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(n=>t===n);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...n){if(t.maxLevel!==void 0&&t.maxLevel!==null&&t.maxLevel>0){if(t.level=t.level??0,t.level>t.maxLevel)return[];t.level++}let r=!1;!t.name||t.name==="*"?r=!0:!t.name||t.name==="+"?(r=!1,t.name="*"):Go(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const s=this.callbacks.get(o);if(typeof s=="function"){const u=Reflect.apply(s,this.proxy,[...n]);u!=null&&a.push(u)}const i=this.proxy??{};if(typeof i[o]=="function"){const u=Reflect.apply(i[o],i,[...n]);u!=null&&a.push(u)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...t},o,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,a,[...i])}),a}emitToChildren(t,o,...n){const r=[];return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...t},o,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}on(t,o){this.callbacks.set(t,o)}}function Gt(e,t,o,n){const r=new zn(t,e,o);if(n&&typeof n=="object")for(const a in n)r.on(a,n[a]);return r}function fa(e,t,o){const n=o;if(n[pe])return n[pe];const r=l.inject(pe,null),a=new zn(r,o,e);if(t&&typeof t=="object")for(const s in t)a.on(s,t[s]);return n[pe]=a,l.provide(pe,a),l.onUnmounted(()=>{a.destroy(),n[pe]=void 0}),a}function St(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[pe]??l.inject(pe,null):l.inject(pe,null)}const ot=e=>e.default??e;class da{error(t,o){const n=o,r=o||l.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof n.setErrorTip=="function"&&n.setErrorTip(t)}reset(t){const o=t,n=t||l.hasInjectionContext()?St(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,n=t||l.hasInjectionContext()?St(t):null;n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,n){Array.isArray(t)||(t=[t]);const r=n,a=n||l.hasInjectionContext()?St(n):null,s=o.find(u=>u.required===!0||u.type==="required"&&u.required!==!1),i=t.find(u=>u.required===!0||u.type==="required"&&u.required!==!1);!s&&i?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):s&&!i&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(n))}getValue(t){return t.modelValue}}let Tt=new da;function ha(e){Tt=e}function ma(e){Tt?Object.assign(Tt,e):Tt=e}function ga(e,t){ot(lt).setValidator(e,t)}function pa(e){ot(lt).deleteValidator(e)}let Qo=["blur","clear"];function va(e){Qo=e}function er(){return Qo}let tr=["focus","change","setValue"];function ya(e){tr=e}function nr(){return tr}function ba(e){ot(lt).messages(e)}function bt(...e){const t=[];return e.forEach(o=>{o.forEach(n=>{const r=t.findIndex(a=>a.type===n.type);r!==-1&&t.splice(r,1),t.push(n)})}),t}function Dt(e){return e.forEach(t=>{t.type==="required"&&(t.required===null||t.required===void 0)&&(t.required=!0),!t.type&&(t.required===!0||t.required===!1)&&(t.type="required")}),e}const _e=Symbol("ValidateSchemaKey");class lr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,n){this.parent=t,this.descriptor=o,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let t=this.proxy.$attrs;t&&(this.scope=l.effectScope(!0),this.scope.run(()=>{l.watchEffect(()=>{const o=Dt(bt(this.attrRules,this.rules)),n=[];for(let a in t){let s=t[a];if(this.hasValidator(a,!0)){if(s===!1)continue;let u={type:a};s!==null&&typeof s=="object"&&Object.assign(u,s),n.push(u);continue}let i=this.getValidator(a);if(i!==null){let u={type:a,validator:i};n.push(u)}}this.attrRules=Dt(n);const r=bt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const n=this.descriptor.validateHandler;if(n&&typeof n[t]=="function")return Reflect.apply(n[t],n,[...o]);const r=Tt;return r&&typeof r[t]=="function"?Reflect.apply(r[t],r,[...o]):null}decorate(t,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",t,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(t){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",t,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(t,o,n=!1){n?ot(lt).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?ot(lt).deleteValidator(t):Reflect.deleteProperty(this.validators,t)}hasValidator(t,o=!1){if(o)return ot(lt).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=bt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Dt(t):this.rules=Dt([t]);const n=bt(this.attrRules,this.rules);l.nextTick(()=>{this.decorate(n,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=bt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${n}`]:o},a=this.getValue(),s={[`${n}`]:a},i=ot(lt),u=new i(r),d=this.proxy??s;return u.validate(s,{context:d}).then(c=>{if(c.pass)this.success();else{let x="error";Array.isArray(c.errors)&&c.errors.length>0&&(x=c.errors[0].message??x,c.errors=[c.errors[0]],c.errors[0].ref=d),this.error(x)}return c}).catch(c=>{const x=c.message??`${c}`;return this.error(x),c})}}return Promise.resolve({pass:!0})}}function Ut(e,t,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(a){return a[r]}}}return new lr(t,o,e)}const _t=Symbol.for("EventEmitterKey");class or{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let n=this.register.get(t);if(n&&Array.isArray(n)){let r=n.findIndex(a=>a===o);r!==-1&&n.splice(r,1)}}on(t,o){let n=this.register.get(t);n||(n=new Array,this.register.set(t,n)),n.push(o)}emit(t,...o){const n=this.register.get(t);n&&n.forEach(r=>{try{Reflect.apply(r,null,[t,...o])}catch(a){console.error(a.message,a)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[t,...o])}}function Ct(e,t){let o=null;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...n])},t)}}function rr(e,t){let o=0;return function(...n){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...n]))}}function xa(e,t){const o=Ct((n,r)=>{e=n,r()},t);return l.customRef((n,r)=>({get(){return n(),e},set(a){o(a,r)}}))}function wa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Xt(e,t,o,n=0,r=!0,a){let s=t,i=0;if(r){const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}}const u=()=>{const d=e();if(i++,d){typeof a=="function"&&a(!0);return}if(i>o){typeof a=="function"&&a(!1);return}s+=n,setTimeout(u,s)};setTimeout(u,s)}const De=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Zt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=l.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const n in t){const r=t[n];o.length>0&&o.indexOf(r)!==-1||(this._props[n]=r)}}has(t){if(Reflect.has(this._props,t)){const o=this._props[t];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(t)}delete(t){Reflect.deleteProperty(this._props,t)}set(t,o){this._props[t]=o}get(t,o){if(Reflect.has(this._props,t)){const n=this._props[t];if(n!=null)return n}return this.parent==null?o:this.parent.get(t,o)}getForParent(t,o){return this.parent==null?o:this.parent.get(t,o)}getForSelf(t){return this._props[t]}getAll(t){const o=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,t)){const r=n._props[t];o.push(r)}n=n._parent}return o}}const Sa=new Zt;function ft(){return Sa}function Ge(e=null){return e||(e=l.getCurrentInstance()?.proxy??null),e?e[De]??l.inject(De,null):l.inject(De,null)}const pn=Symbol("OriginalDateKey");function Hn(e,t,o=[],n){const r=l.getCurrentInstance();let a=r?.proxy,s=l.inject(De,null);s===null&&(s=ft());const i=e||t.prop||t.name;let u=new Zt(i);u.parent=s;const d=E=>{a[pn]||x(E),u?.set("modelValue",E)},f=()=>u?.getForSelf("modelValue")??null,c=()=>a[pn]??null,x=E=>{const m={};at(!0,m,l.toRaw(E)),a[pn]=m};if(l.isReactive(t)||typeof t=="function"?l.watch(t,E=>{u?.merge(E,o)},{immediate:!0}):u.merge(t,o),t.modelValue&&x(t.modelValue),a[De]=u,l.provide(De,u),r!==null){const E=l.inject(pe,null),m=Gt(a,E,i,n);u.broadcast=m,a[pe]=m,l.provide(pe,m),a.broadcast=(T,b,...$)=>Reflect.apply(m.emit,m,[T,b,...$]);const h=l.inject(_e,null),g=Ut(a,h,{componentName:""});u.validateSchema=g,a[_e]=g,l.provide(_e,g),a[ut]=new Map,a.validate=(T=!0)=>{const b=[];let $=null;const B={deep:!1};if(T===!0)$={name:"*"};else if(Array.isArray(T)&&T.length>0){const L=T;$={name:D=>D?L.indexOf(D)!==-1:!1}}else if(T!=null&&typeof T=="object"){const L=T;if(Object.assign(B,L),Array.isArray(L.include)&&L.include.length>0){const D=L.include;$={name:R=>R?D.indexOf(R)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const D=L.exclude;$={name:R=>R?D.indexOf(R)===-1:!1}}else $={name:"*"}}if($){const L=m?.emitToChildren($,"validate",B);L&&Reflect.apply([].push,b,L)}return b.length==1?b[0]:b.length>1?Promise.all(b).then(L=>{let D=[];return L.forEach(R=>{R.pass===!1&&Array.isArray(R.errors)&&(D=[...D,...R.errors])}),D.length>0?{pass:!1,errors:D}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,b=!0,$=!1)=>{if($===!0){Reflect.ownKeys(T).forEach(L=>{let D=String(L);const R={componentName:"",fieldName:D,pureDataValidate:!0};if(u){const A=sr(u,D,R,m,g);a[ut].set(D,A);const O=T[D];O&&A.validateSchema.setRule(O)}});return}if(b){const B=Reflect.ownKeys(T),L={name:D=>B.includes(D)};m?.emitToChildren(L,"setNameValidateRules",T,!1)}},a.clearValidate=(T=!0)=>{let b=null;if(T===!0)b={name:"*"};else if(Array.isArray(T)&&T.length>0){const $=T;b={name:B=>B?$.indexOf(B)!==-1:!1}}else if(T!=null&&typeof T=="object"){const $=T;if(Array.isArray($.include)&&$.include.length>0){const B=$.include;b={name:L=>L?B.indexOf(L)!==-1:!1}}else if(Array.isArray($.exclude)&&$.exclude.length>0){const B=$.exclude;b={name:L=>L?B.indexOf(L)===-1:!1}}else b={name:"*"}}b&&m?.emitToChildren(b,"clearValidate",!1)},a.resetFields=T=>{const b=f();if(!b)return;const $={};if(at(!0,$,c()??{}),Array.isArray(T))T.forEach(B=>{b[B]=$[B]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(L=>{b[L]=$[L]});else if(T&&Array.isArray(T.exclude)){let B=T.exclude??[];Reflect.ownKeys($).forEach(L=>{B.includes(L)||(b[L]=$[L])})}else Object.assign(b,$);a.clearValidate(T)},a.setModelValue=(T,b)=>{!b||b===i?d(T):m?.emitToChildren({name:b},"setModelValue",T)},a.getModelValue=()=>f()}return l.onUnmounted(function(){u?.validateSchema&&(u.validateSchema.destroy(),a[_e]=void 0,l.provide(_e,null)),u?.broadcast&&(u?.broadcast?.destroy(),a[pe]=void 0,l.provide(pe,null)),u?.destroy(),a[De]=void 0,l.provide(De,null),a[ut]&&(a[ut].clear(),a[ut]=void 0),a.broadcast=null,a.validate=null,a.setNameValidateRules=null,a.clearValidate=null,a.resetFields=null,a.setModelValue=null,a.getModelValue=null,u=null,a=null}),u}function ar(e,t,o=[]){let r=l.getCurrentInstance()?.proxy,a=l.inject(De,null);a===null&&(a=ft());const s=e||t.prop||t.name;let i=new Zt(s);return i.parent=a,l.isReactive(t)||typeof t=="function"?l.watch(t,u=>{i?.merge(u,o)},{immediate:!0}):i.merge(t,o),r[De]=i,l.provide(De,i),l.onUnmounted(()=>{i?.destroy(),r[De]=void 0,l.provide(De,null),i=null,r=null}),i}function ir(e,t,o){const r=Ge(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Se(e,t,o){const r=l.getCurrentInstance()?.proxy,a=t??"",s=l.inject(pe,null);let i=Gt(r,s,a,o);r[pe]=i,l.provide(pe,i),r.broadcast=(m,h,...g)=>i?Reflect.apply(i.emit,i,[m,h,...g]):null;const u=l.inject(_e,null);e.fieldName=e.fieldName??a;let d=Ut(r,u,e);r[_e]=d,l.provide(_e,d),ir(r,d,a),r.validate=(m=null)=>{if(!d)return Promise.resolve({pass:!0});const h=[];let g=!1,T=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)T=!0,g=!0;else if(m&&typeof m=="object"){const b=m,$=b.ignoreDisabled??!0,B=b.ignoreReadonly??!0,L=b.ignoreHidden??!0;$===!0&&e.disabled===!0||B===!0&&e.readonly===!0||L===!0&&Yt(r.$el)?T=!1:(Array.isArray(b.include)&&b.include.indexOf(a)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(a),T=!0),g=b.deep??!1}else typeof m=="boolean"&&(g=m),T=!0;if(T){const b=d?.validate();h.push(b)}if(g){let b=null;const $={deep:!1};if(m===!0)b={name:"*"};else if(Array.isArray(m)&&m.length>0){const B=m;b={name:L=>L?B.indexOf(L)!==-1:!1}}else if(m!=null&&typeof m=="object"){const B=m;if(Object.assign($,B),Array.isArray(B.include)&&B.include.length>0){const L=B.include;b={name:D=>D?L.indexOf(D)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const L=B.exclude;b={name:D=>D?L.indexOf(D)===-1:!1}}else b={name:"*"}}if(b&&i){const B=i.emitToChildren(b,"validate",$);Reflect.apply([].push,h,B)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(b=>{let $=[];return b.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&($=[...$,...B.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>d?.setRule(m),r.setNameValidateRules=(m,h=!1)=>{const g=m[a];if(g&&d?.setRule(g),h&&i){const T={name:b=>Reflect.ownKeys(m).includes(b)};i.emitToChildren(T,"setNameValidateRules",m,!1)}},r.clearValidate=(m=null)=>{(!Array.isArray(m)||m.indexOf(t??"")!==-1)&&d?.clear();let h=null;if(m===!0)h={name:"*"};else if(Array.isArray(m)&&m.length>0){const g=m;h={name:T=>T?g.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const g=m;if(Array.isArray(g.include)&&g.include.length>0){const T=g.include;h={name:b=>b?T.indexOf(b)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;h={name:b=>b?T.indexOf(b)===-1:!1}}else h={name:"*"}}h&&i&&i.emitToChildren(h,"clearValidate",!1)};let f=new or(r);r[_t]=f;const c=Ct((m="validate")=>{d&&(m==="reset"?d.clear():d.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:er()).forEach(m=>{f&&f.on(m,h=>{c("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:nr()).forEach(m=>{f&&f.on(m,h=>{c("reset")})}),l.onUnmounted(()=>{i?.destroy(),r[pe]=void 0,l.provide(pe,null),i=null,d?.destroy(),r[_e]=void 0,l.provide(_e,null),d=null,f?.destroy(),r[_t]=void 0,f=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:i,validateSchema:d,emitEvent:(m,...h)=>{f&&Reflect.apply(f.emit,f,[m,...h])},onEvent:(m,h)=>{f&&Reflect.apply(f.on,f,[h])},offEvent:(m,h)=>{f&&Reflect.apply(f.off,f,[h])}}}function sr(e,t,o,n,r){const a={},s=t??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};o.fieldName=s,o.validateHandler={getValue(f){return i.getValue()}};let u=Ut({},r,o);a.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const c=[];let x=!1,E=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)E=!0,x=!0;else if(f&&typeof f=="object"){const m=f;Array.isArray(m.include)&&m.include.indexOf(s)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(s),E=!0,x=m.deep??!1}else typeof f=="boolean"&&(x=f),E=!0;if(E&&u){const m=u.validate();c.push(m)}if(x){let m=null;const h={deep:!1};if(f===!0)m={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;m={name:T=>T?g.indexOf(T)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Object.assign(h,g),Array.isArray(g.include)&&g.include.length>0){const T=g.include;m={name:b=>b?T.indexOf(b)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const T=g.exclude;m={name:b=>b?T.indexOf(b)===-1:!1}}else m={name:"*"}}if(m&&d){const g=d.emitToChildren(m,"validate",h);Reflect.apply([].push,c,g)}}return c.length==1?c[0]:c.length>1?Promise.all(c).then(m=>{let h=[];return m.forEach(g=>{g.pass===!1&&Array.isArray(g.errors)&&(h=[...h,...g.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=f=>u?.setRule(f),a.setNameValidateRules=f=>{const c=f[s];c&&u?.setRule(c)};let d=Gt(null,n,s,a);return l.onUnmounted(()=>{u=null,d=null}),{broadcast:d,validateSchema:u}}function ur(){let t=l.getCurrentInstance()?.proxy,o=new or(t);return t[_t]=o,l.onUnmounted(()=>{o?.destroy(),t[_t]=void 0,o=null,t=null}),{emitEvent:(n,...r)=>{o&&Reflect.apply(o.emit,o,[n,...r])},onEvent:(n,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(n,r)=>{o&&Reflect.apply(o.off,o,[r])}}}const Ce=(e,t=-1)=>e?typeof e=="string"&&(e.endsWith("%")&&t<=0||e.endsWith("vh")||e.endsWith("vw"))?e:`${de(e,t)}px`:"";function de(e,t=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&t>0?e*t:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),a=1;if(it){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(a=Number(s.substring(0,i)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const n=Number(e);return isNaN(n)?0:n}const Qe="PageStateKey";function je(e){const t={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(t.top=de(e.top)),e.left!==null&&e.left!==void 0&&(t.left=de(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=de(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=de(e.right))),t}function Dn(e,t,o={},n=!0,r=-1,a=-1,s=0,i=0){if(e.headerHeight=de(o.headerHeight??t.headerHeight??-1),e.headerPadding=je(o.headerPadding??t.headerPadding),e.footerHeight=de(o.footerHeight??t.footerHeight??-1),e.footerPadding=je(o.footerPadding??t.footerPadding),e.contentPadding=je(o.contentPadding??t.contentPadding),n){const u=o.height??t.height;u?e.height=de(u,a):e.height=de(a)-de(s,a)-de(i,a),e.width=de(o.width??t.width??0,r)}}function cr(e,t={}){const o={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},t.safeAreaInset??{});r&&(n.safeAreaTop=de(r.top),n.safeAreaBottom=de(r.bottom),n.safeAreaLeft=de(r.left),n.safeAreaRight=de(r.right));const a=e.get("pageLayout");if(!a)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,u=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Dn(n,a,t,!0,s,i,u,d);const f=l.reactive(n),c=e.getForParent(Qe);c&&(n.height=qt(e,c),n.width=jt(e,c),l.watch([()=>qt(e,c),()=>jt(e,c)],([E,m])=>{f.height=E,f.width=m}));const x=!c;return l.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([E,m,h=-1,g=-1,T=0,b=0])=>{Dn(f,m,t,x,h,g,T,b)}),e.set(Qe,f),f}function Jt(e){return e.get(Qe)}function Et(e,t){if(t=t??e.get(Qe),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Nt(e,t){if(t=t??e.get(Qe),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function qt(e,t){if(t=t??e.get(Qe),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Et(e,t),n=Nt(e,t);return t.height-o-n-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function jt(e,t){return t=t??e.get(Qe),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function Ta(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function $a(e){return!!e.getForParent(Qe)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function vn(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Ve(e,t,o=1,n){const r=Ge();return r==null?e:o===0?l.computed(()=>{const a=r.getAll(t);for(let i=a.length-1;i>=0;i--){const u=a[i];if(vn(u,n))return u}const s=e.value;return vn(s,n)?s:null}):l.computed(()=>{const a=e.value;return vn(a,n)?a:r?.get(t)})}function Pe(e){return Ve(e,"readonly",0,function(o){return se(o)})}function Fe(e){return Ve(e,"disabled",0,function(o){return se(o)})}function he(e,t="modelValue",o=null,n){const r=l.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const s=l.ref(a);return l.watch(r,i=>{if(typeof o=="function"){const u=o(i);u!==s.value&&(s.value=u,n&&n("setValue",u))}else i!==s.value&&(s.value=i,n&&n("setValue",i))}),s}const fr=new Map,zt=new Map;let Rn=null;function Ca(e){Rn=e}function dr(e,t,o){if(o){let n=zt.get(o);n||(n=new Map,zt.set(o,n)),n.set(e,t)}else fr.set(e,t)}function qe(e,t,o){!o&&Rn&&(o=Rn(e)??void 0);let n=null;if(o){let r=zt.get(o);r&&(n=r.get(t))}return n||(n=fr.get(t)),n}function Ea(e,t){for(let o in e){const n=e[o];dr(o,n,t)}}function Na(e){zt.delete(e)}function ka(){return{top:0,left:0,bottom:0,right:0}}function Ia(e=0,t=0){if(it){const o=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:n-de(e,n)-de(t,n)};return{rootWidth:o,rootHeight:n,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%"}}}function Oa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Va{packages;installers;_version;get version(){return this._version}constructor(t,o,n){this.packages=t,this.installers=o,this._version=n}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const s=Oa(a.name,o);t.component(s,a)}}),this.installers.forEach(a=>{a(t,o)}));const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ft();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=rr(()=>{const i={...o},u=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=u,i.height=d,this.initPageLayout(i,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)n.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const n=t.headerBarHeight??0,r=t.footerBarHeight??0,a=at({},ka(),t.safeAreaInset),s=Ia(n,r),i=at({},s.pageLayout,t.pageLayout);o=o??ft(),o.set("safeAreaInset",a),o.set("headerBarHeight",n),o.set("footerBarHeight",r),o.set("pageLayout",i),o.set("rootWidth",s.rootWidth),o.set("rootHeight",s.rootHeight)}setScopeGetter(t){Ca(t)}setAPI(t,o,n){dr(t,o,n)}getAPI(t,o,n){return qe(t,o,n)}batchSetAPI(t,o){Ea(t,o)}clearScopeAPI(t){Na(t)}getRootDomain(){return ft()}}const Pa=[p.ElAffix,p.ElAlert,p.ElAutocomplete,p.ElAutoResizer,p.ElAvatar,p.ElBacktop,p.ElBadge,p.ElBreadcrumb,p.ElBreadcrumbItem,p.ElButton,p.ElButtonGroup,p.ElCalendar,p.ElCard,p.ElCarousel,p.ElCarouselItem,p.ElCascader,p.ElCascaderPanel,p.ElCheckTag,p.ElCheckbox,p.ElCheckboxButton,p.ElCheckboxGroup,p.ElCol,p.ElCollapse,p.ElCollapseItem,p.ElCollapseTransition,p.ElColorPicker,p.ElConfigProvider,p.ElContainer,p.ElAside,p.ElFooter,p.ElHeader,p.ElMain,p.ElDatePicker,p.ElDescriptions,p.ElDescriptionsItem,p.ElDialog,p.ElDivider,p.ElDrawer,p.ElDropdown,p.ElDropdownItem,p.ElDropdownMenu,p.ElEmpty,p.ElForm,p.ElFormItem,p.ElIcon,p.ElImage,p.ElImageViewer,p.ElInput,p.ElInputNumber,p.ElLink,p.ElMenu,p.ElSubMenu,p.ElMenuItem,p.ElMenuItemGroup,p.ElPageHeader,p.ElPagination,p.ElPopconfirm,p.ElPopover,p.ElPopper,p.ElProgress,p.ElRadio,p.ElRadioButton,p.ElRadioGroup,p.ElRate,p.ElResult,p.ElRow,p.ElScrollbar,p.ElSelect,p.ElOption,p.ElOptionGroup,p.ElSelectV2,p.ElSkeleton,p.ElSkeletonItem,p.ElSlider,p.ElSpace,p.ElSteps,p.ElStep,p.ElSwitch,p.ElTable,p.ElTableColumn,p.ElTableV2,p.ElTabs,p.ElTabPane,p.ElTag,p.ElTimePicker,p.ElTimeSelect,p.ElTimeline,p.ElTimelineItem,p.ElTooltip,p.ElTransfer,p.ElTree,p.ElTreeSelect,p.ElTreeV2,p.ElUpload,p.ElStatistic,p.ElCountdown,p.ElSegmented,p.ElAnchor,p.ElAnchorLink,p.ElWatermark,p.ElMessageBox,p.ElMessage,p.ElNotification],Fa=[p.ElInfiniteScroll,p.ElLoading,p.ElMessage,p.ElMessageBox,p.ElNotification,p.ElPopoverDirective],Da=(e,t={})=>{const o=t.componentPrefix??"fox",n=o[0].toUpperCase()+o.slice(1);Pa.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${n}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Fa.forEach(r=>{e.use(r)})};function ie(e){const t="fox-"+e;return{componentName:t,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=t,o.install=n=>{n.component(o.name,o)},l.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,l.defineComponent(o)}}}function Te(e,t=null){if(t||(t=l.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const xe={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ke={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},hr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},mr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},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}},gr=[];for(const e in mr)gr.push(e);const Ra=Symbol.for("InnerPageScopeKey"),Aa={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}},La=(e,t)=>({inheritAttrs:!0,props:{...xe,...hr,...Aa},setup(o,{slots:n}){const r=Hn(o.name,o),a=l.inject(Ra,!1);if(r){const f=cr(r,o);Te({getPageContentHeight:()=>qt(r,f),getPageContentWidth:()=>jt(r,f),getPageHeaderHeight:()=>Et(r,f),getPageFooterHeight:()=>Nt(r,f)}),f&&a&&(f.contentHeight="100%")}const s=l.computed(()=>({[e]:!0})),i=l.computed(()=>({})),u=l.getCurrentInstance(),d=(f,c=!1)=>{const x=u?.proxy;x&&typeof x.setNameValidateRules=="function"&&x.setNameValidateRules(f,!0,c)};return l.watch([()=>o.rules,()=>o.pureDataRules],([f,c],[x,E])=>{if(f&&x){const m=l.toRaw(x),h=l.toRaw(f),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(b=>{g.includes(b)||(h[b]=[])}),d(h)}if(c&&E){const m=l.toRaw(E),h=l.toRaw(c),g=h?Reflect.ownKeys(h):[];(m?Reflect.ownKeys(m):[]).forEach(b=>{g.includes(b)||(h[b]=[])}),d(h,!0)}},{deep:!0}),l.onMounted(()=>{if(o.rules){const f=l.toRaw(o.rules);d(f)}if(o.pureDataRules){const f=l.toRaw(o.pureDataRules);d(f,!0)}}),()=>{const f={class:s.value,style:i.value};return l.h("div",f,[n?.default?.()])}}}),{componentName:Ma,create:Ba,scope:$h}=ie("page"),Kn=Ba(La(Ma));function Qt(e){const t=l.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Wn(e){const t=l.unref(e),o=window.getComputedStyle(t,null),n=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),s=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-n-r,height:t.clientHeight-a-s}}const _a=(e,t,o,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:o},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(r,a){const s=Ge(),i=s?Jt(s):null;i&&(i.headerMounted=!0);const u=e,d=l.computed(()=>({[u]:!0,[`${u}--border`]:r.border,[`${u}--fixed`]:r.fixed,[`${u}--safe-area-inset-top`]:r.safeAreaInsetTop})),f=l.computed(()=>({[`${u}__inner`]:!0,[`${u}__inner--${r.align}`]:!0})),c=r.height!==null&&r.height!==void 0?de(r.height):null,x=l.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const v=je(r.padding??i.headerPadding);return Object.assign(N,v),c&&(i.headerHeight=c),i.headerHeight>0&&(N.height=i.headerHeight),N.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(v.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(c&&(N.height=c),r.padding){const v=je(r.padding);Object.assign(N,v)}return N}),E=l.ref(null),m=()=>{if(i&&E.value&&!Yt(E.value)){if(!n){const N=Qt(E.value);i.headerAllHeight=N.height}return i.headerMounted=!0,!0}return!1};let h=null;l.onMounted(()=>{i&&(Xt(m,50,5,50,!0),window.ResizeObserver&&E.value&&(h=new window.ResizeObserver(()=>{m()}),h.observe(E.value)))}),l.onUnmounted(()=>{i&&(i.headerMounted=!1,h&&(h.disconnect(),h=null))});const g=l.computed(()=>{const N={};return x.value.height!==null&&x.value.height!==void 0&&(N.height=`${x.value.height}px`),x.value.top!==null&&x.value.top!==void 0&&(N.paddingTop=`${x.value.top}px`),x.value.left!==null&&x.value.left!==void 0&&(N.paddingLeft=`${x.value.left}px`),x.value.right!==null&&x.value.right!==void 0&&(N.paddingRight=`${x.value.right}px`),x.value.bottom!==null&&x.value.bottom!==void 0&&(N.paddingBottom=`${x.value.bottom}px`),N}),T=l.computed(()=>!(x.value.height!==null&&x.value.height!==void 0&&x.value.height<=0));function b(){a.emit("back")}function $(){a.emit("click-title")}function B(){a.emit("click-right")}function L(){a.emit("click-right-text")}const D=()=>{if(!r.leftShow)return null;const N=[];if(a.slots.left)N.push(a.slots.left());else{if(a.slots.leftIcon){const v=l.h("view",{class:"left-icon",onClick:b},[a.slots.leftIcon()]);N.push(v)}else if(r.leftIcon){const v=l.h("view",{class:"left-icon",onClick:b},[l.h(r.leftIcon)]);N.push(v)}if(r.leftText){const v=l.h("view",{class:"left-text",onClick:b},[r.leftText]);N.push(v)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__left"},N)},R=()=>{if(!r.rightShow)return null;const N=[];if(a.slots.right)N.push(a.slots.right());else{if(r.rightText){const v=l.h("view",{class:"right-text",onClick:L},[r.rightText]);N.push(v)}if(a.slots.rightIcon){const v=l.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);N.push(v)}else if(r.rightIcon){const v=l.h("view",{class:"right-icon",onClick:B},[l.h(r.rightIcon)]);N.push(v)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__right"},N)},A=()=>{if(!r.titleShow)return null;const N=[],v=a.slots.default?a.slots.default():null;if(v)N.push(v);else{if(r.title){const _=l.h("view",{class:"title-text"},[r.title]);N.push(_)}if(a.slots.titleIcon){const _=l.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);N.push(_)}else if(r.titleIcon){const _=l.h("view",{class:"title-icon",onClick:$},[l.h(r.titleIcon)]);N.push(_)}}return N.length===0?null:l.h("view",{class:"fox-header-bar__title"},N)},O=()=>{const N=[],v=a.slots.bottom?a.slots.bottom():null;return v&&N.push(v),N.length===0?null:l.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!T.value)return null;const N=[];if(a.slots.all)N.push(a.slots.all());else{const _=[],M=D();M&&_.push(M);const P=A();P&&_.push(P);const V=R();if(V&&_.push(V),_.length>0){const Y=l.h("view",{class:f.value},_);N.push(Y)}const H=O();H&&N.push(H)}if(N.length===0)return null;const v={class:d.value,style:g.value,ref:E};return l.h("view",v,N)}}}),{componentName:qa,create:ja,scope:za}=ie("header-bar"),Yn=ja(_a(qa,za,Ee.ArrowLeft));function Ha(e,t,o=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,r){const a=Ge(),s=a?Jt(a):null,i=l.computed(()=>{const m=e;return{[m]:!0,[`${m}--${n.align}`]:!0,[`${m}--border`]:n.border,[`${m}--fixed`]:n.fixed,[`${m}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),u=n.height!==null&&n.height!==void 0?de(n.height):null,d=l.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&s){const h=je(n.padding??s.footerPadding);return Object.assign(m,h),u&&(s.footerHeight=u),s.footerHeight>0&&(m.height=s.footerHeight),m.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,m.safeAreaBottom>0&&(m.bottom=m.safeAreaBottom+(h.bottom??0),m.height&&m.height>0&&(m.height=m.height+m.safeAreaBottom)),m}if(u&&(m.height=u),n.padding){const h=je(n.padding);Object.assign(m,h)}return m}),f=l.ref(null),c=()=>{if(s&&f.value&&!Yt(f.value)){if(!o){const m=Qt(f.value);s.footerAllHeight=m.height}return s.footerMounted=!0,!0}return!1};let x=null;l.onMounted(()=>{s&&(Xt(c,50,5,50,!0),window.ResizeObserver&&(x=new window.ResizeObserver(()=>{c()}),x.observe(f.value)))}),l.onUnmounted(()=>{s&&(s.footerMounted=!1,x&&(x.disconnect(),x=null))});const E=l.computed(()=>{const m={};return d.value.height!==null&&d.value.height!==void 0&&(m.height=Ce(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(m.paddingTop=Ce(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(m.paddingLeft=Ce(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(m.paddingRight=Ce(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(m.paddingBottom=Ce(d.value.bottom)),m});return()=>{const m=r.slots.default?r.slots.default():[],h={ref:f,class:i.value,style:E.value};return l.h("view",h,m)}}}}const{componentName:Ka,create:Wa,scope:Ch}=ie("footer-bar"),Gn=Wa(Ha(Ka));function Ya(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const n=Ge(),r=l.computed(()=>({[e]:!0})),a=n?Jt(n):null,s=l.computed(()=>{const d={};if(n&&a){if(o.padding){const E=je(o.padding);Object.assign(a.contentPadding,E)}const f=Et(n,a),c=Nt(n,a);let x="";if(a.contentHeight?x=`${a.contentHeight}`:x=`${a.height}px`,a.contentPadding,d.height=x,a.contentPadding.top||f>0){const E=(a&&a.contentPadding&&a.contentPadding.top)??0;d.paddingTop=`${f+E}px`}if(a.contentPadding.bottom||c>0){const E=(a&&a.contentPadding&&a.contentPadding.bottom)??0;d.paddingBottom=`${c+E}px`}return a.contentPadding.left&&(d.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(d.paddingRight=`${a.contentPadding.right}px`),d}if(o.padding){const f=je(o.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=l.ref(null),u=()=>{if(a&&i.value){const d=Wn(i.value);a.contentInnerHeight=d.height,a.contentInnerWidth=d.width}};return l.onMounted(()=>{u()}),n&&a&&l.watch([()=>Et(n),()=>Nt(n)],([])=>{u()}),{contentRef:i,classes:r,styles:s}}}}const{componentName:Ga,create:Ua,scope:Eh}=ie("content"),Xa=Ua(Ya(Ga));function Za(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("div",{ref:"contentRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},Un=Me(Xa,[["render",Za]]),mt="GroupStateKey",pr=Symbol.for("GroupScopeKey");function en(){return l.inject(pr,!1)}function tn(e=!0){l.provide(pr,e)}function Ja(e,t={}){Reflect.ownKeys(t).forEach(n=>{if(typeof n!="string")return;const r=t[n];jn(r)||(e[n]=r)})}function Qa(e,t={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ja(n,t);const r=l.shallowRef(n),a=l.markRaw({layout:r,passport:0,order:{index:0}});return e.set(mt,a),a}function yn(e,t,o=-1,n=-1,r=!1,a,s,i){const u=e.get(mt);if(!u)return;const d=e.get("groupLayout")??{};o===-1&&(o=d.column??1),n===-1&&(n=d.gutter??0),a||(a=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=de(a),c=de(s);i||(i=d.type??"grid");const x=()=>{const E=t===""||t===-1,m=de(t);let h=be(o);const g=de(n);if(!E){let $=(m-(h-1)*g)/h;for(;c!==-1&&$>c;)h++,$=(m-(h-1)*g)/h;for(;f!==-1&&h>1&&$<f;)h--,$=(m-(h-1)*g)/h}let T=!1;const b=u.layout;b.value.width=t,b.value.column!==h&&(b.value.column=h,T=!0),b.value.gutter!==g&&(b.value.gutter=g,T=!0),b.value.type!==i&&(b.value.type=i,T=!0),T&&l.triggerRef(b)};if(r)x();else{const E=++u.passport;setTimeout(()=>{E===u.passport&&x()},50)}}function nn(e,t=!1){let o;return t?o=e.getForParent(mt):o=e.get(mt),o.layout}function ln(e,t=!1){let o;return t?o=e.getForParent(mt):o=e.get(mt),o.order}function Hl(e,t=1){if(t==="stretch")return-1;const o=be(t);return o===-1?100:100*o/e}function on(e,t,o=1,n=0,r){const a={};let s=0;r?s=de(r):s=Hl(t.column,o),s>0&&(a.width=`${s}%`);const i=Hl(t.column,n);i>0&&(a["margin-left"]=`${i}%`);const u=t.gutter/2;return u>0&&(a["padding-left"]=`${u}px`,a["padding-right"]=`${u}px`),a}function rn(e,t,o=1,n=0){if(o==="stretch"){const u=e.index%t.column,d=u+(t.column-u);return e.index=e.index+(d-u),{"grid-column":`${u+1} / -1`}}let r=be(o);if(r===-1){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const u=e.index%t.column;return t.column,u==0?e.index=e.index+t.column:e.index=e.index+(t.column-u)+t.column,{"grid-column":"1 / -1"}}const a=be(n)%t.column;let s=(e.index+a)%t.column,i=s+r;return i>t.column?(s=0,i=s+r,e.index=e.index+(t.column-s)+r):e.index=e.index+a+r,a>0?{"grid-column":`${s+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const vr=Symbol("RollingStateKey");function ei(e){l.provide(vr,e)}function ti(){return l.inject(vr,null)}function An(e){let t=0;const o=window.getComputedStyle(e,null);if(o.getPropertyValue("box-sizing")==="content-box"){const r=parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("padding-bottom"));t=e.clientHeight-r-a}else t=e.offsetHeight;return t}function ni(e){let t=An(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=An(o),document.body.removeChild(o)}return t}function li(e,t,o){if(e<=0)return"1fr";const n=(e-(t-1)*o)/t;return n>0?`${n}px`:"1fr"}const oi={...xe,...hr,...mr};function ri(e,t,o){return{props:oi,emits:["update:collapse","header-click"],setup(n,r){const a=Hn(n.name,n,gr),s=Qa(a,{type:n.type}),i=en();tn(!0);const u=n.rollingDisplay?ti():null,d=l.ref(null),f=l.computed(()=>n.rollingDisplay?u&&!u.disabled:!1),c=l.computed(()=>i&&a?nn(a,!0).value:null),x=l.getCurrentInstance(),E=(z,Z=!1)=>{const ee=x?.proxy;ee&&typeof ee.setNameValidateRules=="function"&&ee.setNameValidateRules(z,!0,Z)};l.watch([()=>n.rules,()=>n.pureDataRules],([z,Z],[ee,S])=>{if(z&&ee){const K=l.toRaw(ee),te=l.toRaw(z),le=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{le.includes(ae)||(te[ae]=[])}),E(te)}if(Z&&S){const K=l.toRaw(S),te=l.toRaw(Z),le=te?Reflect.ownKeys(te):[];(K?Reflect.ownKeys(K):[]).forEach(ae=>{le.includes(ae)||(te[ae]=[])}),E(te,!0)}},{deep:!0});const m=e,h=l.computed(()=>{const z={};z.height=V.value;const Z=i?ln(a,!0):null;if(c.value&&Z){if(c.value.type==="grid"){const ee=rn(Z,c.value,n.span,n.offset);Object.assign(z,ee)}else if(c.value.type==="flow"){const ee=on(Z,c.value,n.span,n.offset,n.width);Object.assign(z,ee)}}else if(n.width){const ee=Ce(n.width);z.width=ee}return z}),g=l.computed(()=>{const z=s.layout.value.type;return z==="grid"||z==="flow"?{[`${m}--${z}`]:!0,[`${m}--${z}-justify-${n.justify}`]:!0,[`${m}--${z}-align-${n.align}`]:!0,[`${m}--gutter`]:!0}:{[`${m}--${z}`]:!0,[`${m}--gutter`]:!0}}),T=l.computed(()=>{if(s.layout.value.type==="grid"){let Z="";if(n.columnWidth)Z=`repeat(auto-fill, ${n.columnWidth})`;else{const ee=li(A.value,s.layout.value.column,s.layout.value.gutter);Z=`repeat(${s.layout.value.column}, ${ee})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Z}}}),b=l.toRef(n,"gutter"),$=l.toRef(n,"column"),B=l.computed(()=>i||f.value?!0:se(n.isWrap)),L=[],D=z=>{L.push(z)},R=()=>{let z=L.length;L.splice(0,z)},A=l.ref(-1),O=z=>{const Z=Wn(z).width;Z>0&&Z!==A.value&&(A.value=Z)};yn(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&l.watch([A,$,b],([z,Z,ee])=>{s.order.index=0,yn(a,z,Z,ee,!1,n.minItemWidth,n.maxItemWidth,n.type)});const N=l.computed(()=>H.value?n.expandText??"":n.collapseText??""),v=l.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=l.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!H.value,"is-collapse":H.value})),M=l.ref(),P=l.ref(),V=l.computed(()=>Y.value||Ce(n.height)||""),H=l.ref(!1),Y=l.ref(""),G=l.ref(!1);let X=-1;const Q=(z,Z=!0)=>{const ee=M.value;if(ee&&H.value!==z){if(X=X===-1?ni(ee):X,G.value=!0,Z)if(ee.style["will-change"]="height",ee.ontransitionend=function(){ee.ontransitionend=null,this.style["will-change"]="auto",z||(Y.value="",G.value=!1)},z){let S=0;n.collapseHeight?S=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(S=P.value.offsetHeight),Y.value=`${X}px`,l.nextTick(()=>{Y.value=`${S}px`})}else Y.value=`${X}px`;else if(z){let S=0;n.collapseHeight?S=n.collapseHeight:P.value&&P.value.classList.contains(`${e}__header`)&&(S=P.value.offsetHeight),Y.value=`${S}px`}else G.value=!1,Y.value=`${X}px`;H.value=z,r.emit("update:collapse",z)}};l.watch(()=>n.collapse,z=>{Q(z)});const ne=z=>{r.emit("header-click",z)},I=()=>{w()},w=z=>{z=z??!H.value,Q(z)};Te({toggleCollapse:w,doLayout:()=>{L[0]&&(O(L[0]),yn(a,A.value,$.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let C=null,y=!0;const W=z=>{if(n.rules){const Z=l.toRaw(n.rules);E(Z)}if(n.pureDataRules){const Z=l.toRaw(n.pureDataRules);E(Z,!0)}if(it&&(z&&Q(se(n.collapse),!1),n.autoLayout&&Array.isArray(L)&&L.length>0)){const Z=L[0];O(Z),window.ResizeObserver&&(C=new window.ResizeObserver(()=>{O(Z)}),C.observe(Z))}},q=()=>{C?.disconnect(),C=null},j=!f.value||u?.acquire();j&&(d.value=f.value?!0:null),l.onMounted(()=>{if(j&&(W(y),y=!1),f.value&&u){let z=null,Z=u.initialHeight;u.observe(M.value,ee=>{if(ee!==d.value)if(ee)d.value=!0,H.value||(Y.value=""),z=setTimeout(()=>{z=null,d.value!==!1&&(W(y),y=!1)},100);else{if(z!==null&&clearTimeout(z),d.value=!1,!H.value)if(y)Y.value=u.initialHeight;else{let S=An(M.value);S<=0?Y.value=Z:(Y.value=`${S}px`,Z=Y.value)}y||q()}})}}),l.onUnmounted(()=>{C?.disconnect(),u&&u.unobserve(M.value)});const F=(z="right")=>{const Z=[];if(N.value){const K={class:v.value},te=l.h("span",K,[N.value]);Z.push(te)}const ee={class:_.value},S=o(n.collapseIcon,ee);return S&&Z.push(S),Z.length>0?l.h("div",{class:{[`${m}__header-collapse`]:!0,[`is-${z}`]:!0},onClick:I},Z):null},U=(z,Z,ee,S)=>{const K={...g.value};return Z===0&&(K[`${m}__first`]=!0),ee>=S-1&&(K[`${m}__last`]=!0),l.h("div",{ref:D,key:`${Z}`,class:K,style:T.value},z)};return()=>{if(f.value&&d.value!==!0){const K=n.tag||"div";return l.h(K,{ref:M,prop:n.name,class:{[`${m}`]:!0,"is-collapse":G.value},style:h.value},[])}s.order.index=0;const z=[];let Z=0;if(r.slots.header){const K={key:`${Z++}`,ref:P,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ne},te=l.h("div",K,[r.slots.header()]);z.push(te)}else{const K=[],te=n.collapsePosition==="left";if(te&&n.showCollapse){const le=F("left");le&&K.push(le)}if(n.title||r.slots.title){if(n.showMark){const le={class:{[`${m}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const fe=l.h("div",le);K.push(fe)}if(r.slots.title){const le=l.h("div",{class:{[`${m}__header-title`]:!0}},[r.slots.title()]);K.push(le)}else if(n.title){const le=l.h("div",{class:{[`${m}__header-title`]:!0}},[n.title]);K.push(le)}}if(r.slots.toolbar&&K.push(r.slots.toolbar()),!te&&n.showCollapse){const le=F("right");le&&K.push(le)}if(K.length>0){const le={key:`${Z++}`,ref:P,class:{[`${m}__header`]:!0,[`${m}__first`]:!0},onClick:ne},fe=l.h("div",le,K);z.push(fe)}}R();const ee=r.slots.default?r.slots.default():[],S=s.layout.value.type;if(S==="grid"){const K=U(ee,Z++,0,ee.length);z.push(K)}else if(S==="flow"){const K=U(ee,Z++,0,ee.length);z.push(K)}else for(let K=0;K<ee.length;K++){const te=ee[K],le=U([te],Z++,K,ee.length);z.push(le)}if(B.value){const K=n.tag||"div";return l.h(K,{ref:M,prop:n.name,class:{[`${m}`]:!0,"is-collapse":G.value},style:h.value},[z])}else return z}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),ui=(e,t)=>(e=e??Ee.ArrowUp,l.h(p.ElIcon,t,{default:()=>[l.h(e)]})),Xn=ii(ri(ai,si,ui));function ci(e){return e===window}const fi=/matrix\((.+)\)/,yr=e=>{const t=l.unref(e);if(!t)return{x:0,y:0};if(ci(t))return{x:0,y:0};let o=0,n=0,r=t;for(;r!==null;)o+=r.offsetLeft,n+=r.offsetTop,r=r.offsetParent;let a=0,s=0,i=0,u=0;for(r=t;r!==document;){s+=r.scrollTop,a+=r.scrollLeft;const{transform:d}=window.getComputedStyle(r);if(d){const f=fi.exec(d);if(f){let x=f[1].split(/\s*,\s*/);x.length==6&&(i+=Number(x[4]),u+=Number(x[5]))}}r=r.parentNode}return o-=a,n-=s,o+=i,n+=u,{x:o,y:n}};class di{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 hi{monitorRegister=new WeakMap;watch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a||(a=new di,n.addEventListener("scroll",a.listen),n===document.body&&n.addEventListener("resize",a.listen),this.monitorRegister.set(n,a)),a.add(o),n=n.parentNode}}unwatch(t,o){let n=t.parentNode;const r=document.body.parentNode;for(;n&&n!==r;){let a=this.monitorRegister.get(n);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",a.listen),n===document.body&&n.removeEventListener("resize",a.listen))),n=n.parentNode}}}const Kl=new hi,br={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:mi,create:gi}=ie("price"),pi=gi({props:{...br},setup(e){const t=l.computed(()=>({[mi]:!0})),o=l.computed(()=>e.needSymbol?e.symbol:""),n=l.computed(()=>Vt(e.price)==0?"":Kt(e.price,e.decimalLength,!0,be(e.digits),e.separator)),r=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),a=l.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),vi=["innerHTML"],yi=["innerHTML"];function bi(e,t,o,n,r,a){return l.openBlock(),l.createElementBlock("view",{class:l.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,vi)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--${e.size}`)},l.toDisplayString(e.intText),3),e.decimalText.length!=0?(l.openBlock(),l.createElementBlock("view",{key:1,class:l.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:l.normalizeClass(`fox-price--decimal-${e.size}`)},l.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(l.openBlock(),l.createElementBlock("view",{key:2,class:l.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):l.createCommentVNode("",!0)],2)}const an=Me(pi,[["render",bi]]),{componentName:bn,create:xi}=ie("hint-text"),wi=xi({components:{Price:an},props:{...br,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,t){const o=l.ref({top:null,right:null,bottom:null,left:null}),n=l.ref({x:0,y:0}),r=l.ref(0),a=l.ref(0),s=l.ref(e.placement),i=l.ref(!1),u=l.ref(null),d=(v,_,M,P,V,H)=>{const Y=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,X=v.split("-");let Q=[];X[0]==="top"?Q=["top","bottom","right","left"]:X[0]==="bottom"?Q=["bottom","top","right","left"]:X[0]==="left"?Q=["left","top","bottom","right"]:X[0]==="right"&&(Q=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},I=[];for(let w=0;w<Q.length;w++){const k=Q[w];if(I[0]=k,X[1]&&(I[1]=X[1]),k==="top"){const C=_.y-H-e.arrowSize-e.offset;if(C>=0){ne.top=C;let y=0;X[1]==="start"?y=_.x:X[1]==="end"?y=_.x+M-V:y=_.x+M/2-V/2;const W=Y-y-V;W<0?(y+=W,c.value=-W):c.value=0,ne.left=y<0?0:y;break}}else if(k==="bottom"){const C=_.y+P+e.arrowSize+e.offset;if(C+H<=G){ne.top=C;let y=0;X[1]==="start"?y=_.x:X[1]==="end"?y=_.x+M-V:y=_.x+M/2-V/2;const W=Y-y-V;W<0?(y+=W,c.value=-W):c.value=0,ne.left=y<0?0:y;break}}else if(k==="left"){const C=_.x-V-e.arrowSize-e.offset;if(C>=0){ne.left=C;let y=0;X[1]==="start"?y=_.y:X[1]==="end"?y=_.y+P-H:y=_.y+P/2-H/2,ne.top=y<0?0:y;break}}else if(k==="right"){const C=_.x+M+e.arrowSize+e.offset;if(C+V<=Y){ne.left=C;let y=0;X[1]==="start"?y=_.y:X[1]==="end"?y=_.y+P-H:y=_.y+P/2-H/2,ne.top=y<0?0:y;break}}}return{bestPlacement:I.join("-"),bestInsetRect:ne}},f=(v,_,M=10)=>{if(!it||_===!1||!v)return;n.value=yr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const P=u.value.offsetHeight,V=u.value.offsetWidth,{bestPlacement:H,bestInsetRect:Y}=d(e.placement,n.value,r.value,a.value,V,P);s.value=H,o.value=Y,i.value=!0},c=l.ref(0),x=Ct(()=>{f(e.message,e.visible)},10),E=l.ref(e.visible);l.watch(()=>e.visible,v=>{E.value=v});const m=l.computed(()=>E.value&&h.value),h=l.ref(!0),g=Ct(v=>{const _=v[0];_&&(h.value=_.isIntersecting)},10),T=new IntersectionObserver(g);l.watch([()=>e.message,()=>e.visible],([v,_])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),l.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Kl.watch(e.reference,x),T.observe(e.reference)}),l.onBeforeMount(()=>{Kl.unwatch(e.reference,x),T.unobserve(e.reference),T.disconnect()});const b=l.computed(()=>{const v={[bn]:!0};return s.value.startsWith("top")?v["is-top"]=!0:s.value.startsWith("right")?v["is-right"]=!0:s.value.startsWith("bottom")?v["is-bottom"]=!0:s.value.startsWith("right")&&(v["is-right"]=!0),e.size==="small"?v["is-small"]=!0:e.size==="large"&&(v["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(v[`${e.customClass}`]=!0),v}),$=l.computed(()=>{const v={};o.value.top!==null&&(v.top=`${o.value.top}px`),o.value.right!==null&&(v.right=`${o.value.right}px`),o.value.bottom!==null&&(v.bottom=`${o.value.bottom}px`),o.value.left!==null&&(v.left=`${o.value.left}px`),e.autoFit&&(v["min-width"]=`${r.value}px`);const _=document.documentElement.clientWidth||document.body.clientWidth;return v["max-width"]=`${_}px`,i.value&&(v.opacity="1"),e.transition||(v.transition="none"),e.zIndex&&(v["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(v,e.customStyle),v}),B=l.computed(()=>{const v=[`${bn}__content`];return e.customTextClass&&v.push(e.customTextClass),v}),L=l.computed(()=>{const v={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(v,e.customTextStyle),v}),D=l.computed(()=>({[`${bn}__arrow`]:!0})),R=l.computed(()=>{const v={};return e.showArrow?(v.width=`${e.arrowSize}px`,v.height=`${e.arrowSize}px`,s.value==="top"?(v.left="50%",v.bottom=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):s.value==="top-start"?(v.left=`${e.arrowOffset+c.value}px`,v.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(v.right=`${e.arrowOffset-c.value}px`,v.bottom=`-${e.arrowSize}px`):s.value==="right"?(v.left=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):s.value==="right-start"?(v.left=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):s.value==="right-end"?(v.left=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(v.left="50%",v.top=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(v.left=`${e.arrowOffset+c.value}px`,v.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(v.right=`${e.arrowOffset-c.value}px`,v.top=`-${e.arrowSize}px`):s.value==="left"?(v.right=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):s.value==="left-start"?(v.right=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):s.value==="left-end"&&(v.right=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`),v):{display:"none"}}),A=l.computed(()=>m.value&&e.closeOnClick),O=l.computed(()=>{const v={};return e.zIndex&&(v["z-index"]=`${e.zIndex}`),v});return{show:m,tipRef:u,classes:b,styles:$,textClasses:B,textStyles:L,arrowClasses:D,arrowStyles:R,overlayShow:A,overlayStyle:O,onClickOverlay:()=>{E.value=!1,t.emit("update:visible",!1)}}}}),Si=["innerHTML"];function Ti(e,t,o,n,r,a){const s=l.resolveComponent("Price");return l.openBlock(),l.createElementBlock(l.Fragment,null,[e.overlayShow?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:l.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):l.createCommentVNode("",!0),l.withDirectives(l.createElementVNode("div",{ref:"tipRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles)},[l.createElementVNode("div",{class:l.normalizeClass(e.textClasses),style:l.normalizeStyle(e.textStyles)},[e.type=="number"?(l.openBlock(),l.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(l.openBlock(),l.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Si))],6),l.createElementVNode("div",{class:l.normalizeClass(e.arrowClasses),style:l.normalizeStyle(e.arrowStyles)},null,6)],6),[[l.vShow,e.show]])],64)}const Pt=Me(wi,[["render",Ti]]);class xr{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 Ln={},$i=new xr,dt=new Map,Ht=e=>{if(e){const t=document.getElementById(e);dt.delete(e),t&&t.parentNode?.removeChild(t)}else{for(const t of dt.keys()){const o=document.getElementById(t);o&&o.parentNode?.removeChild(o)}dt.clear()}},Ci=e=>{e.unmount=Ht;const t=document.getElementById(e.id);if(t){const o=dt.get(e.id);o?e={...Ln,...o,...e}:e={...Ln,...e},e.transition=!1;const n=l.createVNode(Pt,e);l.render(n,t)}return e.id},Ei=e=>{e.unmount=Ht;let t=e.id??`hinttext_${$i.get()}`;e={...Ln,...e},e.id=t,dt.set(t,e);const o=document.createElement("div");o.id=e.id;const n=l.createVNode(Pt,e);return l.render(n,o),document.body.appendChild(o),t},Ni=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Oe={show(e,t,o={},n=!0){Ni(t);const r=o.id;return r&&dt.has(r)?Ci({...o,message:t,reference:e}):(n&&Ht(),Ei({...o,message:t,reference:e}))},hide(e){Ht(e)},install(e){e.config.globalProperties.$hintText=Oe}};function ki(e,t,o,n=!1){return{inheritAttrs:!0,props:{...xe,...ke},emits:["appear","disappear"],setup(r,a){const s=r.prop??a.attrs.name;Se({componentName:e,validate:!1},s);const i=Ge(),u=en();tn(!1);const d=l.computed(()=>u&&i?nn(i,!1).value:null),f=e,c=l.ref(null),x=l.computed(()=>{const S={[f]:!0,[`${f}__gutter`]:d.value&&d.value.type!=="flow",[`${f}__stretch`]:r.span==="stretch",[`${f}__input--border`]:se(r.hasBorder)};if(S[r.errorMarkClass]=!!H.value,S[r.warnMarkClass]=!!P.value,S[r.infoMarkClass]=!!_.value,typeof c.value=="function"){const K=c.value(s);S[K]=!0}else if(typeof c.value=="string"){const K=c.value;S[K]=!0}return S}),E=l.ref(null),m=l.computed(()=>{const S={};if(r.width)r.width!=="auto"&&(S.width=Ce(r.width));else{const K=u&&i?ln(i,!1):null;if(d.value&&K){if(d.value.type==="grid"){const te=rn(K,d.value,r.span,r.offset);Object.assign(S,te)}else if(d.value.type==="flow"){const te=on(K,d.value,r.span,r.offset,r.width);Object.assign(S,te)}}}if(typeof E.value=="function"){const K=E.value(s);K&&Object.assign(S,K)}else if(E.value&&typeof E.value=="object"){const K=E.value;Object.assign(S,K)}return S}),h=l.ref(null),g=l.computed({get:()=>h.value??se(r.isRequired),set:S=>{h.value=S}}),T=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",b=Ve(l.toRef(r,"labelPosition"),"labelPosition",Ae.Near),$=l.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),B=l.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${$.value}`]:!0})),L=l.computed(()=>({label:!0,[`label--${$.value}`]:!0})),D=Ve(l.toRef(r,"labelWidth"),"labelWidth",Ae.Near),R=l.computed(()=>D&&D.value?{width:Ce(D.value)}:{}),A=l.computed(()=>({"label--string":!0,"label--required":g.value})),O=l.computed(()=>({content:!0,[r.contentClass]:!0})),N=l.computed(()=>({...r.contentStyle})),v=l.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(S){g.value=S},setErrorTip(S){v.errorTip=S},setErrorIcon(S){v.errorIcon=S},setWarnTip(S){v.warnTip=S},setWarnIcon(S){v.warnIcon=S},setInfoTip(S){v.infoTip=S},setInfoIcon(S){v.infoIcon=S},setCustomClassName(S){c.value=S},setCustomStyle(S){E.value=S}});const _=l.computed(()=>r.infoTip||v.infoTip),M=l.computed(()=>r.infoIcon||v.infoIcon),P=l.computed(()=>r.warnTip||v.warnTip),V=l.computed(()=>r.warnIcon||v.warnIcon),H=l.computed(()=>r.errorTip||v.errorTip),Y=l.computed(()=>r.errorIcon||v.errorIcon),G=l.computed(()=>H.value?"error":P.value?"warn":_.value?"info":""),X=()=>G.value.length>0,Q=l.computed(()=>G.value==="error"?H.value:G.value==="warn"?P.value:G.value==="info"?_.value:""),ne=l.computed(()=>G.value==="error"?Y.value:G.value==="warn"?V.value:G.value==="info"?M.value:null),I=l.computed(()=>{const S={[`${f}__tip`]:!0,[`${f}__tip--${G.value}`]:!0,[`${f}--animate`]:!0};return G.value==="error"&&r.errorClass?S[`${r.errorClass}`]=!0:G.value==="warn"&&r.warnClass?S[`${r.warnClass}`]=!0:G.value==="info"&&r.infoClass&&(S[`${r.infoClass}`]=!0),S}),w=l.computed(()=>{const S={};return b&&b.value==="top"||!T()?S["padding-left"]="0px":D&&D.value&&(S["padding-left"]=Ce(D.value)),S}),k=l.ref();let C="";l.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([S,K,te,le])=>{k.value&&(S&&!me(K)?C?o.show(k.value,K,{...le,id:C,type:te},!0):C=o.show(k.value,K,{...le,type:te},!0):o.hide(C))});let y=null;const W=()=>{y||!k.value||(y=new IntersectionObserver(S=>{let K=!1;for(let te of S)if(te.intersectionRatio>0){K=!0,K&&a.emit("appear",te);break}K||a.emit("disappear")}),y.observe(k.value))},q=()=>{!y||!k.value||(y.unobserve(k.value),y=null)};l.watch(()=>se(r.appearListen),S=>{S?W():q()}),l.onMounted(()=>{se(r.appearListen)&&W()}),l.onUnmounted(q);const j=()=>{if(!T())return null;const S=[],K=a.slots?.label?.()??r.label,te={class:A.value},le=l.h("div",te,[K]);if(S.push(le),a.slots.fixedPreTip){const ae=a.slots.fixedPreTip();S.push(ae)}const fe={class:L.value,style:R.value};return l.h("div",fe,S)},F=()=>{const S=[];if(a.slots.prepend){const te=a.slots.prepend();S.push(te)}if(a.slots.default){const te=a.slots.default();S.push(te)}if(a.slots.append){const te=a.slots.append();S.push(te)}if(a.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},le=l.h("div",te,[a.slots.fixedTip()]);S.push(le)}const K={ref:k,class:O.value,style:N.value};return l.h("div",K,S)},U=()=>{const S=ne.value;return S?typeof S=="function"?l.h("div",{class:"fox-item__tip--icon"},[S()]):l.h("div",{class:"fox-item__tip--icon"},[l.h(S)]):null},z=()=>{const S=Q.value;return S?typeof S=="function"?l.h("div",{class:"fox-item__tip--text"},[S()]):l.h("div",{class:"fox-item__tip--text"},[S]):null},Z=()=>{if(!X())return null;const S=[],K=U();K&&S.push(K);const te=z();te&&S.push(te);const le={class:I.value,style:w.value};return l.h("div",le,S)},ee=()=>a.slots?.hide?.()??null;return()=>{const S=[],K=[],te=j();te&&K.push(te);const le=F();le&&K.push(le);const fe={class:B.value},ae=l.h("div",fe,K);S.push(ae);const J=Z();J&&S.push(J);const oe=ee();oe&&S.push(oe);const re={class:x.value,style:m.value,prop:r.prop};return l.h("div",re,S)}}}}const{componentName:Ii,create:Oi,scope:Vi}=ie("item"),we=Oi(ki(Ii,Vi,Oe,!1));function Pi(e,t){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(o,n){const r=Ge(),a=en();tn(!1);const s=l.computed(()=>a&&r?nn(r,!1).value:null),i=e,u=l.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:o.span==="stretch"})),d=l.computed(()=>{const f={},c=a&&r?ln(r,!1):null;if(s.value&&c)if(s.value.type==="grid"){const x=rn(c,s.value,o.span,o.offset);Object.assign(f,x)}else if(s.value.type==="flow"){const x=on(c,s.value,o.span,o.offset,o.width);Object.assign(f,x)}else return o.width&&(f.width=Ce(o.width)),f;else o.width&&(f.width=Ce(o.width));return f});return()=>{const f={class:u.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?l.h("div",f,n.slots.default()):l.h("div",f)}}}}const{componentName:Fi,create:Di,scope:Nh}=ie("slot-item"),Zn=Di(Pi(Fi));function Ri(e,t){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(o,n){const r=e,a=l.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),s=Ge(),i=en();tn(!1);const u=l.computed(()=>{const d={};if(i&&s){const f=nn(s,!1),c=ln(s,!1);if(f.value&&c)if(f.value.type==="grid"){const x=rn(c,f.value,o.span,o.offset);Object.assign(d,x)}else if(f.value.type==="flow"){const x=on(c,f.value,o.span,o.offset,o.width);Object.assign(d,x)}else o.width&&(d.width=Ce(o.width))}else o.width&&(d.width=Ce(o.width));return d});return()=>{const d=[];if(n.slots.default){const c=n.slots.default();if(o.divide)for(let x=0;x<c.length;x++){if(x>0){const E=l.h("div",{class:{[`${r}__divide`]:!0}});d.push(E)}d.push(c[x])}else Reflect.apply([].push,d,c)}const f={class:a.value,style:u.value};return l.h("div",f,d)}}}}const{componentName:Ai,create:Li,scope:kh}=ie("row-item"),Jn=Li(Ri(Ai)),He=(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},Wl={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 Mi(e,t,o){return{props:{...xe,...ke,...Wl},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=he(n,"modelValue",null,i),x=e,E=l.computed(()=>({[x]:!0,[`${x}__disabled`]:a.value,[`${x}__readonly`]:s.value})),m=M=>{c.value=M,i("update:modelValue",M),i("input",M)},h=M=>{i("change",M)};let g=he(n,"hintText"),T=l.ref(!1);const b=M=>{let V=M.target.value;f.value=!0,me(g.value)||(T.value=!0),i("focus",V,M)},$=M=>{setTimeout(()=>{T.value&&(T.value=!1),f.value=!1},0);let V=M.target.value;n.maxLength&&V.length>Number(n.maxLength)&&(V=V.slice(0,Number(n.maxLength))),i("blur",V,M)},B=()=>{i("clear","")},L=l.ref(!1);let D=null;const R=()=>{n.showTooltip&&L.value===!1&&(D&&clearTimeout(D),D=setTimeout(()=>{L.value=!0},150))},A=()=>{D&&(clearTimeout(D),L.value=!1,D=null)},O=l.computed(()=>L.value||T.value),N=l.computed(()=>L.value?c.value:g.value),v=l.computed(()=>Vt(n.unit)>0),_=l.ref();return Te({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const P={...He(r.attrs),ref:_,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:B,onChange:h,onInput:m,onFocus:b,onBlur:$,onMouseover:R,onMouseleave:A},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix?V.suffix=r.slots.suffix:v.value&&(V.suffix=()=>[n.unit]);const H=[],Y=l.h(p.ElInput,P,V);H.push(Y);const G={default:()=>H};r.slots.default&&(G.label=r.slots.default),r.slots.default&&(G.fixedTip=r.slots.fixedTip);const Q={...Ne(n,Wl),hintText:N.value,hintVisible:O.value};return n.prop&&(Q.prop=`${n.prop}_item`),l.h(o,Q,G)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("input-item"),Qn=_i(Mi(Bi,qi,we));function Je(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function kt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function wr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function ji(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let zi=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Hi(){const e=l.getCurrentInstance();return new zi(e.proxy)}function Sr(e,t,o){const n=Je(e,t),r=Je(e,o);if(n!==r)return!1;const a=kt(e,t),s=kt(e,o);return a===s}function Tr(e,t,o,n){if(n.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){const i=wr(e,s);if(Array.isArray(i)&&i.length>0){const u=Tr(e,a,o,i)??[];Reflect.apply([].push,r,u)}else{let u=!1;if(o==="text")u=Je(e,s)===a;else if(o==="item")u=Sr(e,s,a);else{let d=kt(e,s);d==null&&(d=Je(e,s)),u=d===a}if(u){r.push(s);break}}}}),r}function Ki(e){return{text:e,value:e}}const Yl={modelValue:{type:[String,Boolean,Number,Object,Array],required:!1},text:{type:[String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},clearable:{type:[Boolean,String],default:!0},multiple:{type:[Boolean],default:!1},valueType:{type:String,required:!1,default:"value"},optionType:{type:String,required:!1,default:"text"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},disabledKey:{type:[String],required:!1,default:"disabled"},remoteMethod:{type:[Function],required:!1},filterMethod:{type:[Function],required:!1},allowCreate:{type:Boolean,default:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},appearLoad:{type:[Boolean,String],default:!1},showTooltip:{type:Boolean,default:!1}};function Wi(e,t,o){return{props:{...xe,...ke,...Yl},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),x=l.computed(()=>c.value?c.value.map(U=>Je(n,U)).join(" "):""),E=(F,U,z,Z=!0)=>{const ee=Tr(n,F,U,z);if(ee===null){if(c.value===null||c.value.length===0)return;f.value=null,c.value=[],Z&&(i("update:modelValue",null),i("update:text",null),i("change",null));return}let S=!0;if(ee.length!==c.value.length)S=!1;else for(let K=0;K<ee.length;K++){const te=ee[K],le=c.value[K];if(!Sr(n,te,le)){S=!1;break}}if(!S){c.value=ee;let K=[],te=[],le=[];ee.forEach(oe=>{const re=kt(n,oe),ue=Je(n,oe);K.push(re),le.push(ue),n.valueType==="text"?te.push(ue):n.valueType==="item"?te.push(oe):te.push(re)});let fe,ae,J;se(n.multiple)?(f.value=K,fe=l.toRaw(te),ae=le,J=l.toRaw(ee)):(f.value=K[0]??"",fe=l.toRaw(te[0]??""),ae=le[0]??"",J=l.toRaw(ee[0])),Z&&(i("update:modelValue",fe),i("change",fe,J)),i("update:text",ae)}},m=l.ref(null),h=l.ref(null),g=l.computed(()=>h.value??m.value??[]),T=Ve(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,F=>se(F)),b=Hi(),$=async(F,U)=>{if(F){const z=await b.load("select",F,U);if(z.length>0)if(typeof z[0]=="string"){let S=z.map(K=>Ki(K));m.value=S}else m.value=z;else m.value=null}};l.watch([()=>n.source,()=>n.params],([F,U])=>{h.value=null,$(F,U)},{immediate:!T.value});let B=!1;const L=()=>{B||(B=!0,$(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([F,U])=>{if(O()&&se(n.multiple)){We(U,f.value)||(f.value=U);return}E(U,n.valueType,g.value,!1),i("setValue",U)});let D=null,R=l.ref(!1);typeof n.remoteMethod=="function"&&(D=async F=>{if(F==null){h.value=null;return}R.value=!0;try{const U=await n.remoteMethod(F);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}R.value=!1});let A=null;typeof n.filterMethod=="function"&&(A=async F=>{if(F==null){h.value=null;return}R.value=!0;try{const U=await n.filterMethod(F,m.value);U&&(h.value=U)}catch(U){h.value=null,console.error(U)}R.value=!1});const O=()=>typeof n.remoteMethod=="function"||typeof n.filterMethod=="function",N=l.ref(!1),v=e,_=l.computed(()=>({[v]:!0})),M=F=>{n.allowCreate||O()&&se(n.multiple)?(i("update:modelValue",F),i("change",F),i("update:text",F),f.value=F):E(F,"value",g.value,!0)};let P=he(n,"hintText"),V=l.ref(!1);const H=F=>{let z=F.target.value;N.value=!0,me(P.value)||(V.value=!0),i("focus",z,F)},Y=F=>{setTimeout(()=>{V.value&&(V.value=!1),N.value=!1},0);let z=F.target.value;n.maxLength&&z.length>Number(n.maxLength)&&(z=z.slice(0,Number(n.maxLength))),C.value||i("blur",z,F)},G=()=>{i("clear","")},X=l.ref(!1);let Q=null;const ne=()=>{n.showTooltip&&X.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{X.value=!0},150))},I=()=>{Q&&(clearTimeout(Q),X.value=!1,Q=null)},w=l.computed(()=>X.value||V.value),k=l.computed(()=>X.value?x.value:P.value),C=l.ref(!1),y=F=>{C.value=F,i("visible-change",F),F||i("selected")},W=F=>{i("remove-tag",F)},q=(F,U)=>{const z=[];return F.forEach((Z,ee)=>{const S=wr(n,Z);if(Array.isArray(S)&&S.length>0){const K=q(S,U),te=Je(n,Z),fe={key:`${te}_${ee}`,label:te};z.push(l.h(p.ElOptionGroup,fe,{default:()=>K}))}else{const K=kt(n,Z),te=Je(n,Z),le=ji(n,Z),ae={key:`${K}_${ee}`,label:te,disabled:le,value:K};if(typeof U=="function")z.push(l.h(p.ElOption,ae,{default:()=>U(Z)}));else if(n.optionType==="item"){const J={class:{"fox-select-item__option-left":!0}},oe=l.h("span",J,[K]),re={class:{"fox-select-item__option-right":!0}},ue=l.h("span",re,[te]),ye=l.h("div",{class:{"fox-select-item__option":!0}},[oe,ue]);z.push(l.h(p.ElOption,ae,{default:()=>ye}))}else n.optionType==="value"?z.push(l.h(p.ElOption,ae,{default:()=>[K]})):z.push(l.h(p.ElOption,ae))}}),z},j=l.ref();return Te({focus:()=>{j?.value.focus()},blur:()=>{j?.value.blur()}}),()=>{const U={...He(r.attrs),ref:j,class:_.value,clearable:n.clearable,multiple:n.multiple,placeholder:d.placeholder.value,disabled:a.value||s.value,modelValue:f.value,"value-key":n.valueKey,"allow-create":n.allowCreate,onClear:G,onChange:M,onFocus:H,onBlur:Y,onVisibleChange:y,onRemoveTag:W};typeof D=="function"&&(U["remote-method"]=D,U.loading=R.value),typeof A=="function"&&(U["filter-method"]=A,U.loading=R.value);const z={};r.slots.prefix&&(z.prefix=r.slots.prefix),r.slots.empty&&(z.empty=r.slots.empty),r.slots.options?z.default=r.slots.options:z.default=()=>q(g.value,r.slots.option);const Z=[],ee=l.h(p.ElSelect,U,z);Z.push(ee);const S={default:()=>Z};r.slots.default&&(S.label=r.slots.default),r.slots.fixedTip&&(S.fixedTip=r.slots.fixedTip);const te={...Ne(n,Yl),hintText:k.value,hintVisible:w.value,onMouseover:ne,onMouseleave:I};return n.prop&&(te.prop=`${n.prop}_item`),T.value&&(te["appear-listen"]=!0,te.onAppear=L),l.h(o,te,S)}}}}const{componentName:Yi,create:Gi,scope:Ui}=ie("select-item"),el=Gi(Wi(Yi,Ui,we));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $r={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o=1e3,n=6e4,r=36e5,a="millisecond",s="second",i="minute",u="hour",d="day",f="week",c="month",x="quarter",E="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,T=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var V=["th","st","nd","rd"],H=P%100;return"["+P+(V[(H-20)%10]||V[H]||V[0])+"]"}},$=function(P,V,H){var Y=String(P);return!Y||Y.length>=V?P:""+Array(V+1-Y.length).join(H)+P},B={s:$,z:function(P){var V=-P.utcOffset(),H=Math.abs(V),Y=Math.floor(H/60),G=H%60;return(V<=0?"+":"-")+$(Y,2,"0")+":"+$(G,2,"0")},m:function P(V,H){if(V.date()<H.date())return-P(H,V);var Y=12*(H.year()-V.year())+(H.month()-V.month()),G=V.clone().add(Y,c),X=H-G<0,Q=V.clone().add(Y+(X?-1:1),c);return+(-(Y+(H-G)/(X?G-Q:Q-G))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:E,w:f,d,D:m,h:u,m:i,s,ms:a,Q:x}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},L="en",D={};D[L]=b;var R="$isDayjsObject",A=function(P){return P instanceof _||!(!P||!P[R])},O=function P(V,H,Y){var G;if(!V)return L;if(typeof V=="string"){var X=V.toLowerCase();D[X]&&(G=X),H&&(D[X]=H,G=X);var Q=V.split("-");if(!G&&Q.length>1)return P(Q[0])}else{var ne=V.name;D[ne]=V,G=ne}return!Y&&G&&(L=G),G||!Y&&L},N=function(P,V){if(A(P))return P.clone();var H=typeof V=="object"?V:{};return H.date=P,H.args=arguments,new _(H)},v=B;v.l=O,v.i=A,v.w=function(P,V){return N(P,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var _=function(){function P(H){this.$L=O(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[R]=!0}var V=P.prototype;return V.parse=function(H){this.$d=function(Y){var G=Y.date,X=Y.utc;if(G===null)return new Date(NaN);if(v.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var Q=G.match(g);if(Q){var ne=Q[2]-1||0,I=(Q[7]||"0").substring(0,3);return X?new Date(Date.UTC(Q[1],ne,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,I)):new Date(Q[1],ne,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,I)}}return new Date(G)}(H),this.init()},V.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},V.$utils=function(){return v},V.isValid=function(){return this.$d.toString()!==h},V.isSame=function(H,Y){var G=N(H);return this.startOf(Y)<=G&&G<=this.endOf(Y)},V.isAfter=function(H,Y){return N(H)<this.startOf(Y)},V.isBefore=function(H,Y){return this.endOf(Y)<N(H)},V.$g=function(H,Y,G){return v.u(H)?this[Y]:this.set(G,H)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(H,Y){var G=this,X=!!v.u(Y)||Y,Q=v.p(H),ne=function(j,F){var U=v.w(G.$u?Date.UTC(G.$y,F,j):new Date(G.$y,F,j),G);return X?U:U.endOf(d)},I=function(j,F){return v.w(G.toDate()[j].apply(G.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(F)),G)},w=this.$W,k=this.$M,C=this.$D,y="set"+(this.$u?"UTC":"");switch(Q){case E:return X?ne(1,0):ne(31,11);case c:return X?ne(1,k):ne(0,k+1);case f:var W=this.$locale().weekStart||0,q=(w<W?w+7:w)-W;return ne(X?C-q:C+(6-q),k);case d:case m:return I(y+"Hours",0);case u:return I(y+"Minutes",1);case i:return I(y+"Seconds",2);case s:return I(y+"Milliseconds",3);default:return this.clone()}},V.endOf=function(H){return this.startOf(H,!1)},V.$set=function(H,Y){var G,X=v.p(H),Q="set"+(this.$u?"UTC":""),ne=(G={},G[d]=Q+"Date",G[m]=Q+"Date",G[c]=Q+"Month",G[E]=Q+"FullYear",G[u]=Q+"Hours",G[i]=Q+"Minutes",G[s]=Q+"Seconds",G[a]=Q+"Milliseconds",G)[X],I=X===d?this.$D+(Y-this.$W):Y;if(X===c||X===E){var w=this.clone().set(m,1);w.$d[ne](I),w.init(),this.$d=w.set(m,Math.min(this.$D,w.daysInMonth())).$d}else ne&&this.$d[ne](I);return this.init(),this},V.set=function(H,Y){return this.clone().$set(H,Y)},V.get=function(H){return this[v.p(H)]()},V.add=function(H,Y){var G,X=this;H=Number(H);var Q=v.p(Y),ne=function(k){var C=N(X);return v.w(C.date(C.date()+Math.round(k*H)),X)};if(Q===c)return this.set(c,this.$M+H);if(Q===E)return this.set(E,this.$y+H);if(Q===d)return ne(1);if(Q===f)return ne(7);var I=(G={},G[i]=n,G[u]=r,G[s]=o,G)[Q]||1,w=this.$d.getTime()+H*I;return v.w(w,this)},V.subtract=function(H,Y){return this.add(-1*H,Y)},V.format=function(H){var Y=this,G=this.$locale();if(!this.isValid())return G.invalidDate||h;var X=H||"YYYY-MM-DDTHH:mm:ssZ",Q=v.z(this),ne=this.$H,I=this.$m,w=this.$M,k=G.weekdays,C=G.months,y=G.meridiem,W=function(F,U,z,Z){return F&&(F[U]||F(Y,X))||z[U].slice(0,Z)},q=function(F){return v.s(ne%12||12,F,"0")},j=y||function(F,U,z){var Z=F<12?"AM":"PM";return z?Z.toLowerCase():Z};return X.replace(T,function(F,U){return U||function(z){switch(z){case"YY":return String(Y.$y).slice(-2);case"YYYY":return v.s(Y.$y,4,"0");case"M":return w+1;case"MM":return v.s(w+1,2,"0");case"MMM":return W(G.monthsShort,w,C,3);case"MMMM":return W(C,w);case"D":return Y.$D;case"DD":return v.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return W(G.weekdaysMin,Y.$W,k,2);case"ddd":return W(G.weekdaysShort,Y.$W,k,3);case"dddd":return k[Y.$W];case"H":return String(ne);case"HH":return v.s(ne,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return j(ne,I,!0);case"A":return j(ne,I,!1);case"m":return String(I);case"mm":return v.s(I,2,"0");case"s":return String(Y.$s);case"ss":return v.s(Y.$s,2,"0");case"SSS":return v.s(Y.$ms,3,"0");case"Z":return Q}return null}(F)||Q.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(H,Y,G){var X,Q=this,ne=v.p(Y),I=N(H),w=(I.utcOffset()-this.utcOffset())*n,k=this-I,C=function(){return v.m(Q,I)};switch(ne){case E:X=C()/12;break;case c:X=C();break;case x:X=C()/3;break;case f:X=(k-w)/6048e5;break;case d:X=(k-w)/864e5;break;case u:X=k/r;break;case i:X=k/n;break;case s:X=k/o;break;default:X=k}return G?X:v.a(X)},V.daysInMonth=function(){return this.endOf(c).$D},V.$locale=function(){return D[this.$L]},V.locale=function(H,Y){if(!H)return this.$L;var G=this.clone(),X=O(H,Y,!0);return X&&(G.$L=X),G},V.clone=function(){return v.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},P}(),M=_.prototype;return N.prototype=M,[["$ms",a],["$s",s],["$m",i],["$H",u],["$W",d],["$M",c],["$y",E],["$D",m]].forEach(function(P){M[P[1]]=function(V){return this.$g(V,P[0],P[1])}}),N.extend=function(P,V){return P.$i||(P(V,_,N),P.$i=!0),N},N.locale=O,N.isDayjs=A,N.unix=function(P){return N(1e3*P)},N.en=D[L],N.Ls=D,N.p={},N})})($r);var Xi=$r.exports;const ze=Xe(Xi);var Cr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},u=function(h){return(h=+h)+(h>68?1900:2e3)},d=function(h){return function(g){this[h]=+g}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var T=g.match(/([+-]|\d\d)/g),b=60*T[1]+(+T[2]||0);return b===0?0:T[0]==="+"?-b:b}(h)}],c=function(h){var g=i[h];return g&&(g.indexOf?g:g.s.concat(g.f))},x=function(h,g){var T,b=i.meridiem;if(b){for(var $=1;$<=24;$+=1)if(h.indexOf(b($,0,g))>-1){T=$>12;break}}else T=h===(g?"pm":"PM");return T},E={A:[s,function(h){this.afternoon=x(h,!1)}],a:[s,function(h){this.afternoon=x(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[r,d("day")],Do:[s,function(h){var g=i.ordinal,T=h.match(/\d+/);if(this.day=T[0],g)for(var b=1;b<=31;b+=1)g(b).replace(/\[|\]/g,"")===h&&(this.day=b)}],M:[a,d("month")],MM:[r,d("month")],MMM:[s,function(h){var g=c("months"),T=(c("monthsShort")||g.map(function(b){return b.slice(0,3)})).indexOf(h)+1;if(T<1)throw new Error;this.month=T%12||T}],MMMM:[s,function(h){var g=c("months").indexOf(h)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[r,function(h){this.year=u(h)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function m(h){var g,T;g=h,T=i&&i.formats;for(var b=(h=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,N,v){var _=v&&v.toUpperCase();return N||T[v]||o[v]||T[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,P,V){return P||V.slice(1)})})).match(n),$=b.length,B=0;B<$;B+=1){var L=b[B],D=E[L],R=D&&D[0],A=D&&D[1];b[B]=A?{regex:R,parser:A}:L.replace(/^\[|\]$/g,"")}return function(O){for(var N={},v=0,_=0;v<$;v+=1){var M=b[v];if(typeof M=="string")_+=M.length;else{var P=M.regex,V=M.parser,H=O.slice(_),Y=P.exec(H)[0];V.call(N,Y),O=O.replace(Y,"")}}return function(G){var X=G.afternoon;if(X!==void 0){var Q=G.hours;X?Q<12&&(G.hours+=12):Q===12&&(G.hours=0),delete G.afternoon}}(N),N}}return function(h,g,T){T.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(u=h.parseTwoDigitYear);var b=g.prototype,$=b.parse;b.parse=function(B){var L=B.date,D=B.utc,R=B.args;this.$u=D;var A=R[1];if(typeof A=="string"){var O=R[2]===!0,N=R[3]===!0,v=O||N,_=R[2];N&&(_=R[2]),i=this.$locale(),!O&&_&&(i=T.Ls[_]),this.$d=function(H,Y,G){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*H);var X=m(Y)(H),Q=X.year,ne=X.month,I=X.day,w=X.hours,k=X.minutes,C=X.seconds,y=X.milliseconds,W=X.zone,q=new Date,j=I||(Q||ne?1:q.getDate()),F=Q||q.getFullYear(),U=0;Q&&!ne||(U=ne>0?ne-1:q.getMonth());var z=w||0,Z=k||0,ee=C||0,S=y||0;return W?new Date(Date.UTC(F,U,j,z,Z,ee,S+60*W.offset*1e3)):G?new Date(Date.UTC(F,U,j,z,Z,ee,S)):new Date(F,U,j,z,Z,ee,S)}catch{return new Date("")}}(L,A,D),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),v&&L!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var M=A.length,P=1;P<=M;P+=1){R[1]=A[P-1];var V=T.apply(this,R);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}P===M&&(this.$d=new Date(""))}else $.call(this,B)}}})})(Cr);var Zi=Cr.exports;const Ji=Xe(Zi);var Er={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){var r=n.prototype,a=r.format;r.format=function(s){var i=this,u=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(c){switch(c){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return u.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return u.ordinal(i.week(),"W");case"w":case"ww":return d.s(i.week(),c==="w"?1:2,"0");case"W":case"WW":return d.s(i.isoWeek(),c==="W"?1:2,"0");case"k":case"kk":return d.s(String(i.$H===0?24:i.$H),c==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return c}});return a.bind(this)(f)}}})})(Er);var Qi=Er.exports;const es=Xe(Qi);var Nr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){var a=n.prototype,s=function(c){return c&&(c.indexOf?c:c.s)},i=function(c,x,E,m,h){var g=c.name?c:c.$locale(),T=s(g[x]),b=s(g[E]),$=T||b.map(function(L){return L.slice(0,m)});if(!h)return $;var B=g.weekStart;return $.map(function(L,D){return $[(D+(B||0))%7]})},u=function(){return r.Ls[r.locale()]},d=function(c,x){return c.formats[x]||function(E){return E.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,h,g){return h||g.slice(1)})}(c.formats[x.toUpperCase()])},f=function(){var c=this;return{months:function(x){return x?x.format("MMMM"):i(c,"months")},monthsShort:function(x){return x?x.format("MMM"):i(c,"monthsShort","months",3)},firstDayOfWeek:function(){return c.$locale().weekStart||0},weekdays:function(x){return x?x.format("dddd"):i(c,"weekdays")},weekdaysMin:function(x){return x?x.format("dd"):i(c,"weekdaysMin","weekdays",2)},weekdaysShort:function(x){return x?x.format("ddd"):i(c,"weekdaysShort","weekdays",3)},longDateFormat:function(x){return d(c.$locale(),x)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return f.bind(this)()},r.localeData=function(){var c=u();return{firstDayOfWeek:function(){return c.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(x){return d(c,x)},meridiem:c.meridiem,ordinal:c.ordinal}},r.months=function(){return i(u(),"months")},r.monthsShort=function(){return i(u(),"monthsShort","months",3)},r.weekdays=function(c){return i(u(),"weekdays",null,null,c)},r.weekdaysShort=function(c){return i(u(),"weekdaysShort","weekdays",3,c)},r.weekdaysMin=function(c){return i(u(),"weekdaysMin","weekdays",2,c)}}})})(Nr);var ts=Nr.exports;const ns=Xe(ts);var kr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){var o="week",n="year";return function(r,a,s){var i=a.prototype;i.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f=s(this).startOf(n).add(1,n).date(d),c=s(this).endOf(o);if(f.isBefore(c))return 1}var x=s(this).startOf(n).date(d).startOf(o).subtract(1,"millisecond"),E=this.diff(x,o,!0);return E<0?s(this).startOf("week").week():Math.ceil(E)},i.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(kr);var ls=kr.exports;const os=Xe(ls);var Ir={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.weekYear=function(){var r=this.month(),a=this.week(),s=this.year();return a===1&&r===11?s+1:r===0&&a>=52?s-1:s}}})})(Ir);var rs=Ir.exports;const as=Xe(rs);var Or={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n,r){n.prototype.dayOfYear=function(a){var s=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?s:this.add(a-s,"day")}}})})(Or);var is=Or.exports;const ss=Xe(is);var Vr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Vr);var us=Vr.exports;const cs=Xe(us);var Pr={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Ue,function(){return function(o,n){n.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Pr);var fs=Pr.exports;const ds=Xe(fs);ze.extend(ns);ze.extend(es);ze.extend(Ji);ze.extend(os);ze.extend(as);ze.extend(ss);ze.extend(cs);ze.extend(ds);const Re={format(e,t){return ze(e).format(t)},parser(e,t){return ze(e,t).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,t,o){const r=new Date(e+"/"+t+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,t){let n=new Date(e+"/"+t+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,t){return/^0/.test(t)&&(t=t.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][t]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,t){t=t||"-";const o=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,n,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const n=e*(1e3*60*60*24);return o=new Date(o.getTime()+n),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let n;return typeof t=="string"?n=new Date(t.replace("-","/").replace("-","/")):n=t,!(o>=n)},isEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e;let n;return typeof t=="string"?n=new Date(t).getTime():n=t,o==n},getMonthWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),s=r.getDate(),i=6-a;return n!==0&&(a=a==0?7:a,i=7-a),Math.ceil((s+i)/7)},getYearWeek:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),s=Math.round((r.valueOf()-a.valueOf())/864e5);let i=r.getDay(),u=6-i;return n!==0&&(i=i==0?7:i,u=7-i),Math.ceil((s+u)/7)},getWeekDate:function(e,t,o,n=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let s=r.getDay();if(n===0){const u=a-s*864e5,d=a+(6-s)*864e5,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}else{s=s==0?7:s;const i=24*60*60*1e3,u=a-(s-1)*i,d=a+(7-s)*i,f=this.date2Str(new Date(u)),c=this.date2Str(new Date(d));return[f,c]}},formatResultDate:function(e){let t=[...e.split("-")];return t[2]=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)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s},inScope4Month(e,t,o){const n=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=n.getTime(),s=t.getTime();return a>s?r>=s&&r<=a:r>=a&&r<=s}},Gl={type:{type:[String],required:!1},modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1},valueFormat:{type:[String],required:!1},format:{type:[String],required:!1,default:"YYYY-MM-DD"},flashFill:{type:[Boolean],required:!1,default:!0},flashFillThreshold:{type:[Function,Number],required:!1,default:8},flashFillFormat:{type:[Function,String],required:!1,default:"YYYYMMDD"}},Ul={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 hs(e,t,o){return{props:{...xe,...ke,...Gl,...Ul},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=he(n,"modelValue",null,i),x=l.computed(()=>V.value&&Array.isArray(c.value)&&c.value.length==2?c.value[0]:c.value),E=l.computed(()=>V.value?"longTermKey":"normalKey"),m=j=>{if(V.value&&n.type==="daterange"){const F=[...c.value];F[0]=j,c.value=F}else c.value=j;i("update:modelValue",c.value),i("change",c.value)},h=l.computed(()=>V.value&&n.type==="daterange"?"date":n.type),g=e,T=l.computed(()=>({[`${g}`]:!0,"is-long":V.value,"is-readonly":s.value,"is-disabled":a.value}));let b=he(n,"hintText"),$=l.ref(!1);const B=j=>{let U=j.target.value;f.value=!0,me(b.value)||($.value=!0),i("focus",U,j)},L=j=>{setTimeout(()=>{$.value&&($.value=!1),f.value=!1},0);let U=j.target.value;n.maxLength&&U.length>Number(n.maxLength)&&(U=U.slice(0,Number(n.maxLength))),i("blur",U,j)},D=()=>{i("clear","")},R=j=>{i("calendar-change",j)},A=(j,F,U)=>{i("panel-change",j,F,U)},O=j=>{i("visible-change",j)},N=Ve(l.computed(()=>n.longTermText),"longTermText",Ae.Near),v=Ve(l.computed(()=>n.longTermActionLabel),"longTermActionLabel",Ae.Near),_=Ve(l.computed(()=>n.longTermValue),"longTermValue",Ae.Near),M=Ve(l.computed(()=>n.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let P=null;const V=l.ref(se(n.longTerm)),H=j=>{if(V.value=j,i("update:longTerm",j),j){if(P=c.value,n.type==="daterange"){const F=[];Array.isArray(_.value)?(F[0]=c.value?c.value[0]??_.value[0]:null,F[1]=_.value[1]??_.value[0]):(F[0]=c.value?c.value[0]??_.value:null,F[1]=V.value),F[0]||(F[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=F}else Array.isArray(_.value)?c.value=_.value[1]??_.value[0]:c.value=_.value,c.value||(c.value=n.valueFormat?Re.format(new Date,n.valueFormat):new Date);i("update:modelValue",c.value)}else{if(n.type==="daterange"){const F=[];F[0]=Array.isArray(c.value)?c.value[0]:c.value,Array.isArray(P)?F[1]=P[1]:F[1]=P,F[0]||(F[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=F}else c.value=P;i("update:modelValue",c.value),setTimeout(()=>{W()},100)}},Y=se(n.isLongTerm);if(Y){const j=()=>{if(V.value===!0){if(P=c.value,n.type==="daterange"){const F=[c.value[0]];Array.isArray(_.value)?F[1]=_.value[1]??_.value[0]:F[1]=V.value,F[0]||(F[0]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),F[1]||(F[1]=n.valueFormat?Re.format(new Date,n.valueFormat):new Date),c.value=F}else c.value=_.value;i("update:modelValue",c.value)}else We(_.value,c.value)&&(V.value=!0)};j(),l.watch([()=>n.longTerm],([F])=>{V.value!==F&&j()}),l.watch([()=>c.value],([F])=>{let U=!1;if(n.type==="daterange"&&Array.isArray(F))try{let z=F[1];if(!z)return;typeof z!="string"&&n.valueFormat&&(z=Re.format(z,n.valueFormat));let Z=Array.isArray(_.value)?_.value[1]:_.value;(z===Z||Array.isArray(M.value)&&M.value.findIndex(S=>z==S)!==-1)&&(U=!0)}catch(z){console.error(z)}V.value!==U&&(V.value=U)},{immediate:!0})}const G=l.computed(()=>({"fox-date-item__long":!0,"is-active":f.value})),X=l.ref(),Q=l.ref(),ne=/^\d+$/,I=(j,F)=>typeof n.flashFillThreshold=="function"?n.flashFillThreshold(j,F):ne.test(j)&&j.length===n.flashFillThreshold,w=(j,F)=>{let U;if(typeof n.flashFillFormat=="function")U=n.flashFillFormat(j,F);else{const Z=n.flashFillFormat??"YYYYMMDD";U=Re.parser(j,Z)}const z=n.valueFormat??"YYYY-MM-DD";return Re.format(U,z)},k=j=>j?j.endsWith("range"):!1,C=j=>{if(!j.target)return;const F=j.target.value??"";if(I(F,n.type)){const U=w(F,n.type);if(k(n.type)){const z=Array.isArray(c.value)?[...c.value]:[];z[0]=U,m(z)}else m(U)}},y=j=>{if(!j.target)return;const F=j.target.value??"";if(I(F,n.type)){const U=w(F,n.type);if(k(n.type)){const z=Array.isArray(c.value)?[...c.value]:[];z[1]=U,m(z)}else m(U)}},W=()=>{if(n.flashFill&&X.value&&X.value.$el)if(k(n.type)){const j=X.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].addEventListener("input",C),j[1]&&j[1].addEventListener("input",y)}else{const j=X.value.$el.querySelector("input.el-input__inner");j&&j.addEventListener("input",C)}},q=()=>{if(n.flashFill&&X.value&&X.value.$el)if(k(n.type)){const j=X.value.$el.querySelectorAll("input.el-range-input");j[0]&&j[0].removeEventListener("input",C),j[1]&&j[1].removeEventListener("input",y)}else{const j=X.value.$el.querySelector("input.el-input__inner");j&&j.removeEventListener("input",C)}};return l.onMounted(W),l.onBeforeUnmount(q),Te({focus:()=>{Q?.value.focus()},blur:()=>{Q?.value.blur()},handleOpen:()=>{Q?.value.handleOpen()},handleClose:()=>{Q?.value.handleClose()}}),()=>{const F={...r.attrs,key:E.value,type:h.value,ref:Q,class:T.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:x.value,valueFormat:n.valueFormat,format:n.format,"onUpdate:modelValue":m,onClear:D,onFocus:B,onBlur:L,onCalendarChange:R,onPanelChange:A,onVisibleChange:O},U={};r.slots["range-separator"]&&(U["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(U.default=r.slots.cell);const z=[],Z=l.h(p.ElDatePicker,F,U);z.push(Z);const ee={default:()=>z};if(r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip),Y){if(V.value){const le=l.h("span",{class:["fox-date-item__long-splitor"]},["-"]),fe=l.h("input",{class:["fox-date-item__long-text"],value:N.value,readonly:!0}),ae={class:G.value},J=l.h("div",ae,{default:()=>[le,fe]});z.push(J)}if(!s.value&&!a.value){const le={label:v.value||N.value,disabled:s.value||a.value,modelValue:V.value,"onUpdate:modelValue":H},fe=l.h(p.ElCheckbox,le),ae=l.h("div",{class:{[`${g}__append`]:!0}},[fe]);ee.append=()=>ae}}const K={...Ne(n,Gl,Ul),ref:X,class:{[`${g}__wrapper`]:!0,"has-append":Y},hintText:b.value,hintVisible:$.value};return n.prop&&(K.prop=`${n.prop}_item`),l.h(o,K,ee)}}}}const{componentName:ms,create:gs,scope:ps}=ie("date-item"),tl=gs(hs(ms,ps,we)),Xl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function vs(e,t,o){return{props:{...xe,...ke,...Xl},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=he(n,"modelValue",null,i),x=e,E=l.computed(()=>({[x]:!0})),m=D=>{c.value=D,i("update:modelValue",D),i("change",D)};let h=he(n,"hintText"),g=l.ref(!1);const T=D=>{let A=D.target.value;f.value=!0,me(h.value)||(g.value=!0),i("focus",A,D)},b=D=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let A=D.target.value;n.maxLength&&A.length>Number(n.maxLength)&&(A=A.slice(0,Number(n.maxLength))),i("blur",A,D)},$=()=>{i("clear","")},B=D=>{i("visible-change",D)},L=l.ref();return Te({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()}}),()=>{const R={...r.attrs,ref:L,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:$,onFocus:T,onBlur:b,onVisibleChange:B},A={},O=[],N=l.h(p.ElTimePicker,R,A);O.push(N);const v={default:()=>O};r.slots.default&&(v.label=r.slots.default),r.slots.fixedTip&&(v.fixedTip=r.slots.fixedTip);const M={...Ne(n,Xl),hintText:h.value,hintVisible:g.value};return n.prop&&(M.prop=`${n.prop}_item`),l.h(o,M,v)}}}}const{componentName:ys,create:bs,scope:xs}=ie("time-item"),nl=bs(vs(ys,xs,we)),Zl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ws(e,t,o){return{props:{...xe,...ke,...Zl},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=he(n,"modelValue",null,i),x=e,E=l.computed(()=>({[x]:!0})),m=L=>{c.value=L,i("update:modelValue",L),i("change",L)};let h=he(n,"hintText"),g=l.ref(!1);const T=L=>{let R=L.target.value;f.value=!0,me(h.value)||(g.value=!0),i("focus",R,L)},b=L=>{setTimeout(()=>{g.value&&(g.value=!1),f.value=!1},0);let R=L.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),i("blur",R,L)},$=()=>{i("clear","")},B=l.ref();return Te({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()},handleOpen:()=>{B?.value.handleOpen()},handleClose:()=>{B?.value.handleClose()}}),()=>{const D={...r.attrs,ref:B,class:E.value,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,modelValue:c.value,"onUpdate:modelValue":m,onClear:$,onFocus:T,onBlur:b},R={},A=[],O=l.h(p.ElTimeSelect,D,R);A.push(O);const N={default:()=>A};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const _={...Ne(n,Zl),hintText:h.value,hintVisible:g.value};return n.prop&&(_.prop=`${n.prop}_item`),l.h(o,_,N)}}}}const{componentName:Ss,create:Ts,scope:$s}=ie("time-select-item"),ll=Ts(ws(Ss,$s,we));function Jl(e,t=0){let o=`${e}`,n=o.indexOf(".");if(n==-1)return o;let r=n;for(let a=o.length-1;a>=n;a--)if(o.charAt(a)!="0"){r=a;break}return r-n<t?r=n+t+1:r!=n&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Ql(e,t,o=20){if(typeof t=="string"&&(t=be(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let n=Mo(`${e}`,`${t}`);return Jl(n)}else{let n=_n(`${e}`,Bo(`${t}`),20);return Jl(n)}}function Cs(e,t=-1,o=!1,n=3,r=","){return Kt(e,t,o,n,r)}function eo(e,t,o,n,r=!0){if(e==="")return"";if(e=_o(e),t=be(t),t==1)return e;if(n)e=Ql(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(be(o)+2,"0"):e=_n(e,1,be(o)));else{let a=-1*t;e=Ql(e,a)}return e}function to(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let n=se(t.minInclude),r=On(e,t.min);if(n&&r==-1||!n&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let n=se(t.maxInclude),r=On(e,t.max);(n&&r==1||!n&&(r==0||r==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 Es(e,t,o){return{props:{...xe,...ke,...no},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(!1),d=he(n,"modelValue",null,i),f=l.ref("");l.watch([()=>d.value,()=>n.rates,()=>n.precision],([M,P,V])=>{if(me(M)){f.value="";return}const H=eo(M,P,V,!1);f.value!==H&&(f.value=H)},{immediate:!0});const c=l.computed(()=>{let M="";return u.value&&(M=f.value),M}),{t:x}=Le.useFoxI18n(t),E=l.computed(()=>{let M=n.placeholder??"";return!u.value&&!me(f.value)?M=Cs(f.value,n.decimalLength,n.autoPadding,n.digits,n.separator):M=x(["placeholder",M]),M}),m=e,h=l.computed(()=>({[m]:!0,[`${m}__disabled`]:a.value,[`${m}__placeholder`]:f.value.length>0})),g=Ve(l.computed(()=>n.textAlign),"textAlign");l.computed(()=>u.value?{textAlign:"left"}:{textAlign:g.value??"right"});const T=l.ref(""),b=l.computed(()=>{let M=T.value;return me(M)&&(M=n.errorTip??""),M}),$=l.ref(""),B=l.ref(!1),L=(M,P)=>{if(M=`${M}`,me(M)){f.value="",d.value="",P.forEach(V=>{i(V,"")}),se(n.showTip)&&B.value&&(B.value=!1);return}if(M.length>=2){let V=M;if(V.charAt(0)=="-"&&(V=V.substring(1)),V.length>=2&&V.charAt(0)=="0"&&V.charAt(1)!="."){l.triggerRef(f);return}}if(M!="-"){if(!Uo(M)){l.triggerRef(f);return}if(n.integerLength!=-1&&Xo(M)>Number(n.integerLength)){l.triggerRef(f);return}if(n.decimalLength&&n.decimalLength!=-1&&Zo(M)>Number(n.decimalLength)){l.triggerRef(f);return}let V=to(M,n);if(V.maxValid===!1){T.value=V.message,l.triggerRef(f);return}}else if(n.min!=null&&be(n.min)>=0){l.triggerRef(f);return}$.value=M,se(n.showTip)&&(B.value=M.length>0),f.value=M,d.value=eo(M,n.rates,n.precision,!0),P.forEach(V=>{i(V,d.value)})},D=M=>{L(M,["update:modelValue","input"])},R=M=>{L(M,["update:modelValue","change"])},A=M=>{if(u.value=!0,se(n.showTip)){let P=f.value;me(P)&&(P=n.hintText),me(P)||($.value=P,B.value=!0)}T.value="",i("focus",d.value,M)},O=M=>{if(setTimeout(()=>{u.value=!1,se(n.showTip)&&B.value===!0&&(B.value=!1)},0),!me(f.value)){let P=to(f.value,n);if(P.minValid===!1||P.maxValid===!1){T.value=P.message;return}}i("update:modelValue",d.value,M),i("blur",d.value,M)},N=()=>{i("clear","")},v=l.computed(()=>Vt(n.unit)>0),_=l.ref();return Te({focus:()=>{_?.value.focus()},blur:()=>{_?.value.blur()},select:()=>{_?.value.select()}}),()=>{const P={...He(r.attrs),ref:_,class:h.value,type:"digit",maxlength:n.maxLength,placeholder:E.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:N,onInput:D,onChange:R,onFocus:A,onBlur:O},V={};r.slots.prepend&&(V.prepend=r.slots.prepend),r.slots.append&&(V.append=r.slots.append),r.slots.prefix&&(V.prefix=r.slots.prefix),r.slots.suffix?V.suffix=r.slots.suffix:v.value&&(V.suffix=()=>[n.unit]);const H=[],Y=l.h(p.ElInput,P,V);H.push(Y);const G={default:()=>H};r.slots.default&&(G.label=r.slots.default),r.slots.fixedTip&&(G.fixedTip=r.slots.fixedTip);const Q={...Ne(n,no),errorTip:b.value,hintText:$.value,hintVisible:B.value,hintType:"number"};return n.prop&&(Q.prop=`${n.prop}_item`),l.h(o,Q,G)}}}}const{componentName:Ns,create:ks,scope:Is}=ie("money-item"),ol=ks(Es(Ns,Is,we)),lo={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 Os(e,t,o){return{props:{...xe,...ke,...lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=he(n,"modelValue",null,i),x=e,E=l.computed(()=>({[x]:!0,[`${x}__append`]:D.value})),m=l.computed(()=>({[`${x}__unit`]:!0})),h=A=>{c.value=A,i("update:modelValue",A),i("input",A)},g=A=>{i("change",A)};let T=he(n,"hintText"),b=l.ref(!1);const $=A=>{let N=A.target.value;f.value=!0,me(T.value)||(b.value=!0),i("focus",N,A)},B=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let N=A.target.value;n.maxLength&&N.length>Number(n.maxLength)&&(N=N.slice(0,Number(n.maxLength))),i("blur",N,A)},L=()=>{i("clear","")},D=l.computed(()=>Vt(n.unit)>0),R=l.ref();return Te({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()}}),()=>{const O={...He(r.attrs),ref:R,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,"adjust-position":n.adjustPosition,"always-system":n.alwaysSystem,onClear:L,onChange:g,onInput:h,onFocus:$,onBlur:B},N={},v=[],_=l.h(p.ElInputNumber,O,N);v.push(_);const M={default:()=>v};r.slots.default&&(M.label=r.slots.default),r.slots.fixedTip&&(M.fixedTip=r.slots.fixedTip);const V={...Ne(n,lo),hintText:T.value,hintVisible:b.value};if(n.prop&&(V.prop=`${n.prop}_item`),r.slots.append)M.append=r.slots.append;else if(D.value){const Y={class:m.value},G=l.h("div",Y,[n.unit]);M.append=()=>G}return l.h(o,V,M)}}}}const{componentName:Vs,create:Ps,scope:Fs}=ie("input-number-item"),rl=Ps(Os(Vs,Fs,we));function Ke(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function rt(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Ds(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let Rs=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n,r);const a=qe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await a(o,n,r))}};function As(){const e=l.getCurrentInstance();return new Rs(e.proxy)}function Mn(e,t,o){const n=Ke(e,t),r=Ke(e,o);if(n!==r)return!1;const a=rt(e,t),s=rt(e,o);return a===s}function Fr(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=n;for(let s=0;Array.isArray(a)&&s<t.length;s++){const i=t[s];if(Array.isArray(i)){const u=Fr(e,i,o,n);r.push(u)}else{let u=!1;for(let d of a){if(o==="text")u=Ke(e,d)===i;else if(o==="item")u=Mn(e,d,i);else{let f=rt(e,d);f==null&&(f=Ke(e,d)),u=f===i}if(u){r.push(d),a=Ds(e,d);break}}if(!u)break}}return r}function Ls(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},appearLoad:{type:[Boolean],default:!1},lazy:{type:[Boolean],default:!1},lazyLoad:{type:[Function]},leafKey:{type:[String],default:"leaf"},showTooltip:{type:Boolean,default:!1},separator:{type:[String],default:" / "},placeholder:{type:[String],required:!1}};function Ms(e,t,o){return{props:{...xe,...ke,...oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(null),c=l.ref([]),x=l.computed(()=>c.value?c.value.map(j=>Array.isArray(j)?j.map(U=>Ke(n,U)).join(" "):Ke(n,j)).join(" "):""),E=(q,j,F,U=!0)=>{if(n.props&&n.props.lazy===!0||n.lazy===!0){if(f.value===q)return;f.value=q;const S=l.toRaw(q);if(U){const K=W?.value.getCheckedNodes();if(K)if(n.multiple){const te=[];K.forEach(le=>{const ae=(le.pathNodes??[]).map(J=>J.data);te.push(ae)}),i("update:pathNodes",te)}else{const le=(K[0]?.pathNodes??[]).map(fe=>fe.data);i("update:pathNodes",le)}i("update:modelValue",S),i("change",S)}return}const z=Fr(n,q,j,F);if(z===null){if(c.value.length===0||c.value===null)return;c.value=[],f.value=null,U&&(i("update:pathNodes",[]),i("update:modelValue",null),i("change",null));return}const Z=z[z.length-1];if(N.value.checkStrictly!==!0&&Z&&!Array.isArray(Z)&&Array.isArray(Z.children)&&Z.children.length>0){const S=[];z.forEach(K=>{const te=`${Ke(n,K)}`;S.push(te)}),S.length>0&&(A.value=S.join(n.separator))}else A.value=null;let ee=!0;if(z.length!==c.value.length)ee=!1;else for(let S=0;S<z.length;S++){const K=z[S],te=c.value[S];if(Array.isArray(K)){if(!Array.isArray(te)||K.length!==te.length)ee=!1;else for(let le=0;le<K.length;le++)if(!Mn(n,K[le],te[le])){ee=!1;break}}else Mn(n,K,te)||(ee=!1);if(!ee)break}if(!ee){c.value=z;let S=[],K=[];z.forEach(le=>{if(Array.isArray(le)){let fe=[],ae=[];for(let J of le)fe.push(rt(n,J)),n.valueType==="text"?ae.push(Ke(n,J)):n.valueType==="item"?ae.push(J):ae.push(rt(n,J));S.push(fe),K.push(ae)}else S.push(rt(n,le)),n.valueType==="text"?K.push(Ke(n,le)):n.valueType==="item"?K.push(le):K.push(rt(n,le))}),f.value=S;const te=l.toRaw(K);U&&(i("update:pathNodes",z),i("update:modelValue",te),i("change",te))}},m=l.ref([]),h=Ve(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,q=>se(q)),g=As(),T=async(q,j)=>{if(q){const F=await g.load("cascader",q,j);if(F.length>0)if(typeof F[0]=="string"){let Z=F.map(ee=>Ls(ee));m.value=Z}else m.value=F}};l.watch([()=>n.source,()=>n.params],async([q,j])=>{T(q,j)},{immediate:!(h.value||n.lazy)});let b=!1;const $=()=>{b||(b=!0,T(n.source,n.params))};l.watch([()=>m.value,()=>n.modelValue],([q,j])=>{E(j,n.valueType,q,!1),i("setValue",j)}),n.lazy&&E(n.modelValue,"value",[],!1);let B=null,L=l.ref(!1);typeof n.remoteMethod=="function"&&(B=async q=>{if(q!=null){L.value=!0;try{const j=await n.remoteMethod(q);m.value=j}catch(j){console.error(j)}L.value=!1}});const D=l.ref(!1),R=e,A=l.ref(null),O=l.computed(()=>({[R]:!0,"is-incomplete":A.value&&A.value.length>0})),N=l.computed(()=>{let q={label:n.textKey,value:n.valueKey,children:n.childrenKey};return n.multiple===!0&&(q.multiple=!0),n.props&&Object.assign(q,n.props),n.lazy&&(q.lazy=!0,typeof n.lazyLoad=="function"?q.lazyLoad=n.lazyLoad:q.lazyLoad=async(j,F)=>{const U=await g.load("cascader",n.source,j,!0);if(j?.config?.checkStrictly!==!0&&Array.isArray(f.value)&&f.value.length===j.level){const z=j.pathLabels??[];let Z=[];z.forEach(ee=>{ee&&Z.push(ee)}),Z.length>0&&(A.value=Z.join(n.separator))}else A.value=null;F(U)}),q}),v=q=>{n.allowCreate?(i("update:modelValue",q),i("change",q),f.value=q):E(q,"value",m.value,!0)};let _=he(n,"hintText"),M=l.ref(!1);const P=q=>{let F=q.target.value;D.value=!0,me(_.value)||(M.value=!0),i("focus",F,q)},V=q=>{setTimeout(()=>{M.value&&(M.value=!1),D.value=!1},0);let F=q.target.value;n.maxLength&&F.length>Number(n.maxLength)&&(F=F.slice(0,Number(n.maxLength))),w.value||i("blur",F,q)},H=()=>{i("clear","")},Y=l.ref(!1);let G=null;const X=()=>{n.showTooltip&&Y.value===!1&&(G&&clearTimeout(G),G=setTimeout(()=>{Y.value=!0},150))},Q=()=>{G&&(clearTimeout(G),Y.value=!1,G=null)},ne=l.computed(()=>Y.value||M.value),I=l.computed(()=>Y.value?x.value:_.value),w=l.ref(!1),k=q=>{w.value=q,i("visible-change",q),q||i("selected")},C=q=>{i("remove-tag",q)},y=q=>{i("expand-change",q)},W=l.ref();return Te({focus:()=>{W?.value.focus()},blur:()=>{W?.value.blur()},getCheckedNodes:()=>W?.value.getCheckedNodes()}),()=>{const j={...r.attrs,ref:W,class:O.value,props:N.value,clearable:n.clearable,placeholder:A.value||d.placeholder.value,disabled:a.value||s.value,options:m.value,modelValue:f.value,separator:n.separator,onClear:H,onChange:v,onFocus:P,onBlur:V,onVisibleChange:k,onRemoveTag:C,expandChange:y};typeof B=="function"&&(j["remote-method"]=B,j.loading=L.value);const F={};r.slots.option&&(F.default=r.slots.option),r.slots.empty&&(F.empty=r.slots.empty);const U=[],z=l.h(p.ElCascader,j,F);U.push(z);const Z={default:()=>U};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const S={...Ne(n,oo),hintText:I.value,hintVisible:ne.value,onMouseover:X,onMouseleave:Q};return n.prop&&(S.prop=`${n.prop}_item`),h.value&&!n.lazy&&(S["appear-listen"]=!0,S.onAppear=$),l.h(o,S,Z)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),al=_s(Ms(Bs,qs,we)),ro={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function js(e,t,o){return{props:{...xe,...ke,...ro},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),{toLocaleRefs:u}=Le.useFoxI18n(t),d=u(n,["placeholder"]),f=l.ref(!1),c=he(n,"modelValue",null,i),x=e,E=l.computed(()=>({[x]:!0})),m=R=>{c.value=R,i("update:modelValue",R),i("input",R)},h=R=>{i("change",R)},g=R=>{i("select",R)};let T=he(n,"hintText"),b=l.ref(!1);const $=R=>{let O=R.target.value;f.value=!0,me(T.value)||(b.value=!0),i("focus",O,R)},B=R=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let O=R.target.value;n.maxLength&&O.length>Number(n.maxLength)&&(O=O.slice(0,Number(n.maxLength))),i("blur",O,R)},L=()=>{i("clear","")},D=l.ref();return Te({focus:()=>{D?.value.focus()},blur:()=>{D?.value.blur()},select:()=>{D?.value.select()}}),()=>{const A={...r.attrs,ref:D,class:E.value,placeholder:d.placeholder.value,clearable:n.clearable,disabled:a.value,readonly:s.value,modelValue:c.value,onClear:L,onChange:h,onInput:m,onFocus:$,onBlur:B,onSelect:g},O={};r.slots.prepend&&(O.prepend=r.slots.prepend),r.slots.append&&(O.append=r.slots.append),r.slots.prefix&&(O.prefix=r.slots.prefix),r.slots.suffix&&(O.suffix=r.slots.suffix),r.slots.option&&(O.default=r.slots.option);const N=[],v=l.h(p.ElAutocomplete,A,O);N.push(v);const _={default:()=>N};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const P={...Ne(n,ro),hintText:T.value,hintVisible:b.value};return n.prop&&(P.prop=`${n.prop}_item`),l.h(o,P,_)}}}}const{componentName:zs,create:Hs,scope:Ks}=ie("autocomplete-item"),il=Hs(js(zs,Ks,we));function Ws(e,t,o,n,r){let a=[];Array.isArray(e)?a=e:a=[e];const s=[],i=t[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[r]){let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(x=>x[n]===f);if(!c)break;s.push(c[o])}return s}if(Array.isArray(i))for(let u=0;u<t.length&&u<a.length;u++){let d=t[u],f=a[u];const c=d.find(x=>x[n]===f);if(!c)break;s.push(c[o])}else{let u=t;for(let d=0;u&&d<a.length;d++){let f=a[d],c=u.find(x=>x[n]===f);if(!c)break;s.push(c[o]),u=c[r]}}return s}let Ys=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Gs(){const e=l.getCurrentInstance();return new Ys(e.proxy)}const Dr={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Us(e,t){return{props:{...Dr},setup(o,{attrs:n,slots:r}){const a=Gs(),s=l.ref([]);l.watch([()=>o.source,()=>o.params],async([d,f])=>{s.value=await a.load(o.sourceType,d,f)},{immediate:!0});const i=l.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let d=Ws(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return d.length==0?o.emptyText??"":d.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${d[0]}`:d[0]:d.join(o.separator)}),u=o.resolveTag?l.resolveComponent(o.tag):o.tag;return()=>{const d={...n};return r.default?r.default({text:i.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===i.value?l.h(o.emptyTag??"span",{...n,class:o.emptyClass},i.value):l.h(u,d,{default:()=>i.value}):l.h(u,d,i.value)}}}}const{componentName:Ph,create:Xs,scope:Fh}=ie("mapping"),It=Xs(Us());function Zs(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function Js(e,t){return{props:{...Dr},setup(o,{attrs:n,slots:r}){return()=>{const a={default:s=>{const i=Zs(s.row,s.column.property);return r.default?l.h(It,{...o,modelValue:i},{default:r.default}):l.h(It,{...o,modelValue:i})}};for(let s in r)s!=="default"&&(a[s]=r[s]);return l.h(p.ElTableColumn,{...n},a)}}}}const{componentName:Dh,create:Qs,scope:Rh}=ie("table-mapping-column"),sl=Qs(Js()),eu=Symbol.for("TableStateKey");function ao(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function tu(e,t){return{props:{},setup(o,{attrs:n}){const r=l.inject(eu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,s={default:i=>{const u=ao(i.row,i.column.property),d=a?ao(a,i.column.property):null,f=u===d,c={class:{"el-radio__input":!0,"is-checked":f}},x=l.h("span",c,[l.h("span",{class:{"el-radio__inner":!0}})]),E={class:{"el-radio":!0,"is-checked":f}};return l.h("label",E,[x])}};return l.h(p.ElTableColumn,{...n},s)}}}}const{componentName:Ah,create:nu,scope:Lh}=ie("table-radio-column"),ul=nu(tu()),lu={},ou={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"},ru=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),au=[ru];function iu(e,t){return l.openBlock(),l.createElementBlock("svg",ou,au)}const su=Me(lu,[["render",iu]]),{componentName:Mh,create:uu,scope:Bh}=ie("table-setting"),cu={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:"不固定"}},fu=uu({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:su,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...cu},setup(e,{emit:t,attrs:o}){let n=[];const r=l.ref([]),a=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed===""||y.fixed===!0||y.fixed==="left")),s=l.computed(()=>r.value.filter(y=>y.label===""||y.type?!1:y.fixed==="right")),i=l.computed(()=>r.value.filter(y=>!(y.label===""||y.type||y.fixed!==void 0))),u=l.computed(()=>(a.value.length>0||s.value.length>0)&&i.value.length>0),d=l.computed(()=>a.value.length>0),f=l.computed(()=>s.value.length>0),c=y=>y.length>1,x=(y,W)=>{Array.isArray(y)&&Array.isArray(W)&&y.forEach(F=>{W.some(U=>U.prop===F.prop?(F.label=U.label,!0):!1)});const q=[];r.value=y.map((F,U)=>(!(F.label===""||F.type)&&F.visible!==!1&&q.push(F.prop),{...F,sortIndex:U})),i.value.length+a.value.length+s.value.length===q.length?b.value=!0:q.length>0&&($.value=!0),D.value=q},E=y=>y?y.type?y.type:y.label?y.prop:"":"",m=(y,W)=>{if(y.length!==W.length)return!1;const q=y.map(j=>E(j));for(let j of W){const F=E(j);if(q.indexOf(F)===-1)return!1}return!0},h=y=>{if(!y){const W=e.tableRef.getColumnSetting(),q=W.srcColumnPropertyList;n=q.map((j,F)=>({...j,sortIndex:F})),y=W.columnPropertyList,y&&y.length>0&&m(q,y)||(y=q)}x(y,n)},g=()=>{e.tableRef.setColumnSetting(r.value)},T=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),b=l.ref(!1),$=l.ref(!1),B=y=>{const W=[];r.value.forEach(j=>{y&&!(j.label===""||j.type)&&W.push(j.prop),j.visible=y}),b.value=!1,$.value=!1,i.value.length+a.value.length+s.value.length===W.length?b.value=!0:W.length>0&&($.value=!0),D.value=W,g()},L=()=>{h(n),g()},D=l.ref([]),R=y=>{r.value.forEach(q=>{if(q.label===""||q.type)return;const j=y.indexOf(q.prop)!==-1;q.visible=j}),b.value=!1,$.value=!1;const W=i.value.length+a.value.length+s.value.length;y.length===W?b.value=!0:y.length>0&&($.value=!0),g()},A=()=>{h()};l.onMounted(()=>{setTimeout(()=>{h()},50)});const O={currentRow:null,index:null,roleType:null},N=y=>y?y.dataset&&y.dataset.role==="row"?y:y.tagName.toLowerCase()!=="body"?(y=y.parentElement,N(y)):null:null,v=y=>{const W=y.currentTarget;W&&W.dataset&&(O.roleType=W.dataset.roleType,O.index=W.dataset.index)},_=y=>{O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null),O.index=null,O.roleType=null},M=y=>{const W=y.currentTarget;y.relatedTarget;const q=N(W);if(!q)return;const j=q.dataset&&q.dataset.roleType;O.roleType===j&&(y.preventDefault(),O.currentRow&&O.currentRow!==q&&O.currentRow.classList.remove("is-dragover"),q.classList.add("is-dragover"),O.currentRow=q)},P=y=>{y.preventDefault(),O.currentRow&&(O.currentRow.classList.remove("is-dragover"),O.currentRow=null)},V=y=>{const W=y.currentTarget,q=N(W);if(!q)return;const j=q.dataset&&q.dataset.roleType;if(O.roleType!==j)return;y.preventDefault();const F=Number(O.index),U=Number(q.dataset.index);if(F!==U){if(F<U){const z=r.value[F];r.value.splice(F,1),r.value.splice(U,0,z)}else{const z=r.value[F];r.value.splice(F,1),r.value.splice(U+1,0,z)}x(r.value,n),g()}},H=y=>{const W=r.value[y];W.fixed="left",g()},Y=y=>{const W=r.value[y];W.fixed="right",g()},G=y=>{const W=r.value[y];W.fixed=void 0,g()},X=new Map;let Q=null;function ne(y){const W=document.createRange();return W.setStart(y,0),W.setEnd(y,y.childNodes.length),W.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:s,unFixedColumns:i,isShowNotFixedTitle:u,isShowLeftFixedTitle:d,isShowRightFixedTitle:f,isDraggble:c,isCheckAll:b,isIndeterminate:$,handleCheckAllChange:B,handleReset:L,checkedValue:D,handleCheckChange:R,onShow:A,onDragStart:v,onDragEnd:_,onDragOver:M,onDragLeave:P,onDrop:V,toLeftFixed:H,toRightFixed:Y,toUnFixed:G,checkboxLabelStyle:T,onMouseOverForOverflowText:(y,W,q)=>{const j=y.currentTarget;if(j){const F=Math.floor(j.offsetWidth);if(Math.floor(ne(j))>F){let z=X.get(W);if(z){if(z===Q)return;Oe.hide(z)}z=Oe.show(j,q,{type:"text",placement:"top",closeOnClick:!1}),z&&(X.set(W,z),Q=z)}}},onMouseLeaveForOverflowText:(y,W)=>{const q=X.get(W);q&&(Oe.hide(q),q===Q&&(Q=null))},onMouseOverForTip:(y,W)=>{const q=y.currentTarget;q&&(Q&&Oe.hide(Q),Q=Oe.show(q,W,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:y=>{Q&&(Oe.hide(Q),Q=null)}}}}),du={class:"fox-table-setting"},hu={class:"fox-table-setting__header"},mu={class:"fox-table-setting__body"},gu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},pu={key:0,class:"fox-table-setting__body-title"},vu=["data-index","draggable"],yu=["onMouseover","onMouseleave"],bu={class:"tools-item"},xu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},wu={key:0,class:"fox-table-setting__body-title"},Su=["data-index","draggable"],Tu=["onMouseover","onMouseleave"],$u={class:"tools-item"},Cu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Eu={key:0,class:"fox-table-setting__body-title"},Nu=["data-index","draggable"],ku=["onMouseover","onMouseleave"],Iu={class:"tools-item"};function Ou(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("RefreshLeft"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("Download"),x=l.resolveComponent("fox-checkbox"),E=l.resolveComponent("FoxCheckboxGroup"),m=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(m,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",du,[l.createElementVNode("div",hu,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=h=>e.isCheckAll=h),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",mu,[l.createVNode(E,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=h=>e.checkedValue=h),onChange:e.handleCheckChange},{default:l.withCtx(()=>[e.leftFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",gu,[e.isShowLeftFixedTitle?(l.openBlock(),l.createElementBlock("div",pu,l.toDisplayString(e.leftFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.leftFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.leftFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,yu)]),_:2},1032,["value"]),l.createElementVNode("div",bu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,vu))),128))])):l.createCommentVNode("",!0),e.unFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",xu,[e.isShowNotFixedTitle?(l.openBlock(),l.createElementBlock("div",wu,l.toDisplayString(e.unFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.unFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[15]||(t[15]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[16]||(t[16]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[17]||(t[17]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[18]||(t[18]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.unFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",value:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,Tu)]),_:2},1032,["value"]),l.createElementVNode("div",$u,[l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[10]||(t[10]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toRightFixed(h.sortIndex),onMouseover:t[12]||(t[12]=g=>e.onMouseOverForTip(g,e.fixedRightText)),onMouseleave:t[13]||(t[13]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Su))),128))])):l.createCommentVNode("",!0),e.rightFixedColumns.length>0?(l.openBlock(),l.createElementBlock("div",Cu,[e.isShowRightFixedTitle?(l.openBlock(),l.createElementBlock("div",Eu,l.toDisplayString(e.rightFixedTitle),1)):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.rightFixedColumns,h=>(l.openBlock(),l.createElementBlock("div",{key:h.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":h.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[24]||(t[24]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[25]||(t[25]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[26]||(t[26]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[27]||(t[27]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.rightFixedColumns)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(x,{class:"checkbox-item",label:h.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,h.prop,h.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,h.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(h.label),45,ku)]),_:2},1032,["label"]),l.createElementVNode("div",Iu,[l.createVNode(f,{onClick:g=>e.toUnFixed(h.sortIndex),onMouseover:t[19]||(t[19]=g=>e.onMouseOverForTip(g,e.unFixedText)),onMouseleave:t[20]||(t[20]=g=>e.onMouseLeaveForTip(g))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:g=>e.toLeftFixed(h.sortIndex),onMouseover:t[21]||(t[21]=g=>e.onMouseOverForTip(g,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(c)]),_:2},1032,["onClick"])])],40,Nu))),128))])):l.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const sn=Me(fu,[["render",Ou]]);let Vu=class{proxy;constructor(t){this.proxy=t}async load(t,o,n,r,a,s,i){if(Array.isArray(o)){let d=(n-1)*r,f=d+r;f>o.length&&(f=o.length);const c=o.slice(d,f);return{totalSize:o.length,page:c}}if(typeof o=="function")return await Reflect.apply(o,null,[n,r,a,s,i]);const u=qe(this.proxy,t);return u===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ye(a)&&l.isReactive(a)&&(a=l.toRaw(a)),await Reflect.apply(u,null,[o,n,r,a,s,i]))}};function Pu(){const e=l.getCurrentInstance();return new Vu(e.proxy)}class Fu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const n=qe(this.proxy,"tableSetting");return typeof n=="function"&&(o=await Reflect.apply(n,null,["load",t])),o}save(t,o){const n=qe(this.proxy,"tableSetting");typeof n=="function"&&Reflect.apply(n,null,["save",t,o])}remove(t){const o=qe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Rr(){const e=l.getCurrentInstance();return new Fu(e.proxy)}const Du=Symbol.for("TableStateKey"),io={data:{type:[String,Array,Function],required:!0},autoLoad:{type:[String,Boolean],required:!1,default:!1},appearLoad:{type:[String,Boolean],required:!1,default:!1},baseParams:{type:[Object]},params:{type:[Object]},cellClassName:{type:Function},rowClickSelectable:{type:[String,Boolean],required:!1,default:!1},uniqueExpansion:{type:[String,Boolean],required:!1,default:!1},showSetting:{type:[Boolean],required:!1,default:!1},footerAlign:{type:[String],required:!1,default:"right"}},so={pageIndex:{type:[Number],required:!1,default:1},pageSize:{type:[Number],required:!1,default:10},pageSizes:{type:[Array],required:!1},paginationLayout:{type:[String],required:!1,default:"total, sizes, prev, pager, next, jumper"},paginationAlign:{type:[String],required:!1,default:"right"},paginationBackground:{type:[Boolean],required:!1,default:!1},paginationSmall:{type:[Boolean],required:!1,default:!0},showPagination:{type:[Boolean],required:!1,default:!0},hideOnSinglePage:{type:[Boolean],required:!1,default:!0}},xn={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:"不固定"}},Ru={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Au(e,t){let o=t.split("."),n=e;for(let r=0;r<o.length;r++){let a=o[r],s=0,i=a.indexOf("["),u=i==-1?-1:a.indexOf("]",i);for(;i!==-1&&u!==-1;){let d=a.substring(i+1,u);if(/^\d+$/.test(d)){let f=parseInt(d);if(s==0){let c=a.substring(0,i);n=n[c][f]}else n=n[f];s++}i=a.indexOf("[",u),u=i==-1?-1:a.indexOf("]",i)}s===0&&(n=n[a])}return n}function wn(e,t){return e.filter(n=>{for(let r in t){const a=t[r],s=Au(n,r);if(a!==s)return!1}return!0})}function Lu(e,t,o){return{inheritAttrs:!1,props:{...xe,...ke,...io,...so,...xn,...Ru},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(n,r){const{locale:a}=Le.useFoxI18n(t),{emitEvent:s}=Se({componentName:e,validateHandler:{getValue(...J){return D.value}}},n.prop??r.attrs.name),i=e,u=l.computed(()=>({[i]:!0})),d=l.computed(()=>({[`${i}__setting`]:!0})),f=l.computed(()=>({[`${i}__footer`]:!0,[`${i}__footer__${n.footerAlign}`]:!0})),c=l.computed(()=>({[`${i}__pagination`]:!0,[`${i}__pagination__${n.paginationAlign}`]:!0})),x=l.shallowRef({}),E=l.computed(()=>({...x.value,...n.params??{},...n.baseParams??{}})),m=l.ref(n.infiniteLoad===!0?0:n.pageIndex),h=l.ref(n.pageSize),g=se(n.infiniteLoad);g||(l.watch(()=>n.pageIndex,J=>{m.value=J}),l.watch(()=>n.pageSize,J=>{h.value=J}),l.watch([m,h],([J,oe],[re,ue])=>{oe!==ue&&(m.value=1,J=1),N(n.data,J,oe,E.value)}));const T=()=>Array.isArray(n.data)?!0:se(n.autoLoad);T()&&l.watch([()=>n.data,E],async([J,oe],[re,ue])=>{T()&&(J!==re&&(A=!0),!(!Array.isArray(J)&&We(J,re)&&We(oe,ue))&&(g?(m.value=0,B.value=!0,D.value=[],_()):m.value===1?N(J,m.value,h.value,oe):m.value=1))},{deep:!0});const b=J=>{m.value=J,s("page-index-change",J)},$=J=>{h.value=J,s("page-size-change",J)},B=l.ref(!0),L=l.ref(0),D=l.ref(),R=Pu();let A=!0;const O=Ve(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,J=>se(J)),N=async(J,oe,re,ue,ye)=>{A=!1;try{if(ye===!0){if(!B.value)return!1;const ve=await R.load("table",J,oe,re,ue,A,a.value);return L.value=ve.totalSize,!ve.page||!Array.isArray(ve.page)||(Reflect.apply([].push,D.value,ve.page),setTimeout(()=>{s("loaded-data")},250),(D.value?.length??0)>=L.value)||ve.page.length<re?(B.value=!1,!1):!0}else{const ve=await R.load("table",J,oe,re,ue,A,a.value);return L.value=ve.totalSize,D.value=ve.page??[],setTimeout(()=>{s("loaded-data")},250),!0}}catch(ve){console.error("[FoxUI] Load Table Data Fail",ve),L.value=0,D.value=[]}return!1};let v=!1;const _=async()=>{if(!v){if(v=!0,!B.value){v=!1;return}m.value+=1,await N(n.data,m.value,h.value,E.value,!0),v=!1}},M=(J={},oe=!1)=>new Promise(async re=>{x.value={...l.toRaw(J??{})},oe||(m.value=n.pageIndex??1),g===!0?(m.value=0,D.value=[],B.value=!0,await _()):await N(n.data,m.value,h.value,E.value),re()}),P=()=>{L.value=0,D.value=[],g===!0&&(m.value=0,B.value=!0)};let V=!1;const H=()=>{V||(V=!0,M())},Y=l.ref(null);if(g===!0){let J=null;const oe=()=>{Y.value&&(J=new IntersectionObserver(ue=>{let ye=!1;for(let ve of ue)if(ve.intersectionRatio>0){ye=!0;break}ye&&_()}),J.observe(Y.value))},re=()=>{!J||!Y.value||(J.unobserve(Y.value),J=null)};l.onMounted(oe),l.onBeforeUnmount(re)}T()&&!O.value&&M();const G=l.ref(null);l.provide(Du,{currentRow:G});const X=(J,oe)=>{G.value=J,s("current-change",J,oe)},Q=(J,oe,re)=>{s("row-click",J,oe,re),se(n.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(J)},ne=[],I=(J,oe)=>{if(s("expand-change",J,oe),se(n.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=ne.length;ne.splice(0,re)}else{ne.forEach(ue=>{ue!==J&&ae?.value.toggleRowExpansion(ue,!1)});const re=ne.length;ne.splice(0,re,J)}},w=r.attrs.id??n.prop??r.attrs.name,k=Rr(),C=l.ref([]);let y=[];const W=()=>({srcColumnPropertyList:y.map(oe=>({...oe})),columnPropertyList:C.value}),q=J=>{C.value=[...J],F()},j=async()=>{const J=await k.load(w);J&&(C.value=J)},F=()=>{k.save(w,C.value)},U=()=>{k.remove(w)};j();const z=J=>J?J.type?J.type:J.label?J.prop:"":"",Z=()=>typeof r.slots.default=="function"?r.slots.default():[],ee=(J,oe={})=>{for(let re in oe){const ue=oe[re];typeof ue!="function"&&(J[re]=ue)}},S=l.computed(()=>{const J=Z(),oe=new Map;if(y=[],J.forEach(re=>{const ye=re;if(!ye.props)return;const ve=z(ye.props);oe.set(ve,ye);const et={label:"",prop:""};ee(et,ye.props),y.push(et)}),C.value.length===y.length){const re=[];for(let ue of C.value){const ye=z(ue),ve=oe.get(ye);if(!ve)return J;if(ue.visible===!1)continue;const et=ve;et.props.fixed=ue.fixed,re.push(et)}return re}return J}),K=l.shallowRef(new Map),te=({column:J,rowIndex:oe})=>{const re=`${oe}_${J.property}`;return K.value.get(re)??""},le=J=>typeof J=="function"?oe=>{const re=[];let ue=te(oe);return ue&&re.push(ue),ue=J(oe),ue&&re.push(ue),re.length===0?"":re.join(" ")}:te,fe=(J,oe,re)=>{const ue=`${J}_${oe}`;re?K.value.set(ue,re):K.value.delete(ue),l.triggerRef(K)},ae=l.ref();return Te({clearSelection:()=>ae?.value.clearSelection(),getSelectionRows:()=>ae?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{ae?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!D.value)return;const re=wn(D.value,J);re.length!==0&&re.forEach(ue=>{ae?.value.toggleRowSelection(ue,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{ae?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!D.value)return;const re=wn(D.value,J);re.length!==0&&re.forEach(ue=>{ae?.value.toggleRowExpansion(ue,oe)})},setCurrentRow:J=>{ae?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!D.value)return;const oe=wn(D.value,J);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>G.value,clearSort:()=>{ae?.value.clearSort()},clearFilter:J=>{ae?.value.clearFilter(J)},doLayout:()=>{ae?.value.doLayout()},sort:(J,oe)=>{ae?.value.sort(J,oe)},scrollTo:(J,oe)=>{ae?.value.scrollTo(J,oe)},setScrollTop:J=>{ae?.value.setScrollTop(J)},setScrollLeft:J=>{ae?.value.setScrollLeft(J)},loadData:M,clearData:P,getData(){return D.value},getTotalSize(){return L.value},getPageIndex(){return m.value},getPageSize(){return h.value},getColumnSetting:W,setColumnSetting:q,removeColumnSetting:U,setCellClassName:fe}),()=>{const oe={...He(r.attrs),onCurrentChange:X,onRowClick:Q,onExpandChange:I,data:D.value,ref:ae,class:u.value,"cell-class-name":le(n.cellClassName)},re={};if(r.slots.default&&(re.default=()=>S.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),g===!0){const Be=[];if(B.value){const vt=l.h(Ee.Loading,{class:`${i}__infinite-icon`});Be.push(vt);const dn=l.h("span",{class:`${i}__infinite-text`},[n.loadText]);Be.push(dn)}else{const vt=l.h("span",{class:`${i}__infinite-text`},[n.loadMoreText]);Be.push(vt)}const tt={ref:Y,class:`${i}__infinite`},fn=l.h("div",tt,Be);re.append=()=>fn}const ue=l.h(p.ElTable,oe,re),ye=[];if(ye.push(ue),!g){let Be=null;if(typeof r.slots.pagination=="function")Be=r.slots.pagination();else if(n.showPagination){const tt={class:c.value,total:L.value,pageSize:h.value,"onUpdate:pageSize":$,pageSizes:n.pageSizes,currentPage:m.value,"onUpdate:currentPage":b,hideOnSinglePage:n.hideOnSinglePage,layout:n.paginationLayout,samll:n.paginationSmall,background:n.paginationBackground};Be=l.h(p.ElPagination,tt)}if(n.showSetting){const tt=[];Be&&tt.push(Be);const fn=l.h(p.ElIcon,{class:d.value},{default:()=>l.h(Ee.Setting)}),vt=Jo(n,xn),dn=l.h(sn,{...vt,tableRef:{getColumnSetting:W,setColumnSetting:q,removeColumnSetting:U}},{default:()=>fn});tt.push(dn);const Wr=l.h("div",{class:f.value},tt);ye.push(Wr)}else Be&&ye.push(Be)}const ve={default:()=>ye},st={...Ne(n,io,so,xn)};return n.prop&&(st.prop=`${n.prop}_item`),st.contentClass=`${i}__wrap`,st.errorMarkClass="is-table-error",O.value&&T()&&(st["appear-listen"]=!0,st.onAppear=H),l.h(o,st,ve)}}}}const{componentName:Mu,create:Bu,scope:_u}=ie("table-item"),cl=Bu(Lu(Mu,_u,we));function gt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function Ot(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function qu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let ju=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function zu(){const e=l.getCurrentInstance();return new ju(e.proxy)}function Ar(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=gt(e,t),r=gt(e,o);if(n!==r)return!1;const a=Ot(e,t),s=Ot(e,o);return a===s}function Hu(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of n){let s=!1;if(o==="text")s=gt(e,a)===t;else if(o==="item")s=Ar(e,a,t);else{let i=Ot(e,a);i==null&&(i=gt(e,a)),s=i===t}if(s){r=a;break}}return r}function Ku(e){return{text:e,value:e}}function Wu(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const uo={modelValue:{type:[String,Object,Boolean,Number],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},itemType:{type:[String],required:!1,default:"radio"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function Yu(e,t,o){return{inheritAttrs:!0,props:{...xe,...ke,...uo},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref(null),d=l.ref(null),f=(R,A,O,N=!0)=>{const v=Hu(n,R,A,O);if(v===null){if(d.value===null)return;d.value=null,u.value=null,N&&(i("update:modelValue",null),i("change",null));return}if(!Ar(n,v,d.value)){u.value=R;const M=l.toRaw(v);d.value=M;let P=null;n.valueType==="text"?P=gt(n,M):n.valueType==="item"?P=M:P=Ot(n,M),N&&(i("update:modelValue",P),i("change",P))}},c=l.ref([]),x=Ve(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,R=>se(R)),E=zu(),m=async(R,A)=>{if(R){const O=await E.load("radio",R,A);if(O.length>0)if(typeof O[0]=="string"){let _=O.map(M=>Ku(M));c.value=_}else c.value=O}};l.watch([()=>n.source,()=>n.params],async([R,A])=>{m(R,A)},{immediate:!x.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([R,A])=>{f(A,n.valueType,R,!1),i("setValue",A)});const T=e,b=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),$=R=>{f(R,"value",c.value,!0)};let B=he(n,"hintText"),L=he(n,"hintVisible");const D=(R,A)=>{const O=[];return R.forEach((N,v)=>{const _=Ot(n,N),M=gt(n,N);let P=qu(n,N);a.value===!0&&(P=a.value),s.value===!0&&(P=s.value);const V=Wu(n,N,v)??{},H=`${_}_${v}`,Y={...V,key:H,value:_,size:n.size,border:se(n.border)};P&&(Y.disabled=P),n.itemType==="button"?O.push(l.h(p.ElRadioButton,Y,{default:()=>[M]})):typeof A=="function"?O.push(l.h(p.ElRadio,Y,{default:()=>A(N)})):O.push(l.h(p.ElRadio,Y,{default:()=>[M]}))}),O};return()=>{const A={...He(r.attrs),class:b.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,onChange:$},O=[],N={};r.slots.options?N.default=r.slots.options:N.default=()=>D(c.value,r.slots.text);const v=l.h(p.ElRadioGroup,A,N);O.push(v);const _={default:()=>O};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const P={...Ne(n,uo),hintText:B.value,hintVisible:L.value};return n.prop&&(P.prop=`${n.prop}_item`),x.value&&(P["appear-listen"]=!0,P.onAppear=g),l.h(o,P,_)}}}}const{componentName:Gu,create:Uu,scope:Xu}=ie("radio-item"),fl=Uu(Yu(Gu,Xu,we));function pt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function ht(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function Zu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Ju=class{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await o(n);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await r(o,n))}};function Qu(){const e=l.getCurrentInstance();return new Ju(e.proxy)}function Lr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const n=pt(e,t),r=pt(e,o);if(n!==r)return!1;const a=ht(e,t),s=ht(e,o);return a===s}function ec(e,t,o,n){if(n.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let s of n){let i=!1;if(o==="text")i=pt(e,s)===a;else if(o==="item")i=Lr(e,s,a);else{let u=ht(e,s);u==null&&(u=pt(e,s)),i=u===a}if(i){r.push(s);break}}}),r}function tc(e){return{text:e,value:e}}function nc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const co={modelValue:{type:[Array,String],required:!1},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},disabledKey:{type:[String],required:!1,default:"disabled"},size:{type:[String],required:!1},textColor:{type:[String],required:!1},fill:{type:[String],required:!1},border:{type:[Boolean],required:!1},min:{type:[String,Number],required:!1},max:{type:[String,Number],required:!1},itemType:{type:[String],required:!1,default:"checkbox"},itemOptions:{type:[Object,Function],required:!1},direction:{type:[String],required:!1,default:"horizontal"},appearLoad:{type:[Boolean,String],default:!1}};function lc(e,t,o){return{inheritAttrs:!0,props:{...xe,...ke,...co},emits:["change","update:modelValue","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=l.ref([]),d=l.ref([]),f=(R,A,O,N=!0)=>{const v=ec(n,R,A,O);if(v===null){if(d.value===null||d.value.length===0)return;u.value=[],d.value=[],N&&(i("update:modelValue",[]),i("change",[]));return}let _=!0;if(v.length!==d.value.length)_=!1;else for(let M=0;M<v.length;M++){const P=v[M],V=d.value[M];if(!Lr(n,P,V)){_=!1;break}}if(!_){d.value=v;let M=[],P=[];v.forEach(H=>{M.push(ht(n,H)),n.valueType==="text"?P.push(pt(n,H)):n.valueType==="item"?P.push(H):P.push(ht(n,H))}),u.value=M;const V=l.toRaw(P);N&&(i("update:modelValue",V),i("change",V))}},c=l.ref([]),x=Ve(l.computed(()=>n.appearLoad),"appearLoad",Ae.Near,R=>se(R)),E=Qu(),m=async(R,A)=>{if(R){const O=await E.load("checkbox",R,A);if(O.length>0)if(typeof O[0]=="string"){let _=O.map(M=>tc(M));c.value=_}else c.value=O}};l.watch([()=>n.source,()=>n.params],async([R,A])=>{m(R,A)},{immediate:!x.value});let h=!1;const g=()=>{h||(h=!0,m(n.source,n.params))};l.watch([()=>c.value,()=>n.modelValue],([R,A])=>{f(A,n.valueType,R,!1),i("setValue",A)});const T=e,b=l.computed(()=>({[T]:!0,[`is-${n.direction}`]:!0})),$=R=>{f(R,"value",c.value,!0)};let B=he(n,"hintText"),L=he(n,"hintVisible");const D=(R,A)=>{const O=[];return R.forEach((N,v)=>{const _=ht(n,N),M=pt(n,N);let P=Zu(n,N);a.value===!0&&(P=a.value),s.value===!0&&(P=s.value);const V=nc(n,N,v)??{},H=`${_}_${v}`,Y={...V,key:H,class:n.itemClass,value:_,size:n.size,border:se(n.border)};P&&(Y.disabled=P),n.itemType==="button"?O.push(l.h(p.ElCheckboxButton,Y,{default:()=>[M]})):typeof A=="function"?O.push(l.h(p.ElCheckbox,Y,{default:()=>A(N)})):O.push(l.h(p.ElCheckbox,Y,{default:()=>[M]}))}),O};return()=>{const A={...He(r.attrs),class:b.value,disabled:a.value||s.value,modelValue:u.value,"text-color":n.textColor,fill:n.fill,max:be(n.max),min:be(n.min),onChange:$},O=[],N={};r.slots.options?N.default=r.slots.options:N.default=()=>D(c.value,r.slots.text);const v=l.h(p.ElCheckboxGroup,A,N);O.push(v);const _={default:()=>O};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const P={...Ne(n,co),hintText:B.value,hintVisible:L.value};return n.prop&&(P.prop=`${n.prop}_item`),x.value&&(P["appear-listen"]=!0,P.onAppear=g),l.h(o,P,_)}}}}const{componentName:oc,create:rc,scope:ac}=ie("checkbox-item"),dl=rc(lc(oc,ac,we)),fo={modelValue:{type:[Number,String],required:!1}};function ic(e,t,o){return{props:{...xe,...ke,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",h=>be(h),i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let x=he(n,"hintText"),E=l.ref(!1);const m=l.ref();return Te({}),()=>{const g={...He(r.attrs),ref:m,class:f.value,readonly:s.value||a.value,modelValue:u.value,onChange:c},T={},b=[],$=l.h(p.ElRate,g,T);b.push($);const B={default:()=>b};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const D={...Ne(n,fo),hintText:x.value,hintVisible:E.value};return n.prop&&(D.prop=`${n.prop}_item`),l.h(o,D,B)}}}}const{componentName:sc,create:uc,scope:cc}=ie("rate-item"),hl=uc(ic(sc,cc,we)),ho={modelValue:{type:[Boolean,String,Number],required:!1}};function fc(e,t,o){return{props:{...xe,...ke,...ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),{emitEvent:i}=Se({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),u=he(n,"modelValue",null,i),d=e,f=l.computed(()=>({[d]:!0})),c=h=>{i("update:modelValue",h),i("change",h)};let x=he(n,"hintText"),E=he(n,"hintVisible");const m=l.ref();return Te({}),()=>{const g={...He(r.attrs),ref:m,class:f.value,readonly:s.value,disabled:a.value,modelValue:u.value,onChange:c},T={},b=[],$=l.h(p.ElSwitch,g,T);b.push($);const B={default:()=>b};r.slots.default&&(B.label=r.slots.default),r.slots.fixedTip&&(B.fixedTip=r.slots.fixedTip);const D={...Ne(n,ho),hintText:x.value,hintVisible:E.value};return n.prop&&(D.prop=`${n.prop}_item`),l.h(o,D,B)}}}}const{componentName:dc,create:hc,scope:mc}=ie("switch-item"),ml=hc(fc(dc,mc,we)),mo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function gc(e,t,o){return{props:{...xe,...ke,...mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(n,r){const a=Fe(l.computed(()=>n.disabled)),s=Pe(l.computed(()=>n.readonly)),i=l.ref(!1),{emitEvent:u}=Se({componentName:e,get readonly(){return s.value},get disabled(){return a.value}},n.prop??r.attrs.name),d=he(n,"modelValue",null,u),f=e,c=l.computed(()=>({[f]:!0})),x=L=>{u("update:modelValue",L),u("change",L)};let E=he(n,"hintText"),m=l.ref(!1);const h=L=>{let R=L.target.value;i.value=!0,me(E.value)||(m.value=!0),u("focus",R,L)},g=L=>{setTimeout(()=>{m.value&&(m.value=!1),i.value=!1},0);let R=L.target.value;n.maxLength&&R.length>Number(n.maxLength)&&(R=R.slice(0,Number(n.maxLength))),b.value||u("blur",R,L)},T=()=>{u("clear","")},b=l.ref(!1),$=L=>{b.value=L,u("visible-change",L),L||u("selected")},B=l.ref();return Te({focus:()=>{B?.value.focus()},blur:()=>{B?.value.blur()}}),()=>{const D={...He(r.attrs),ref:B,class:c.value,disabled:a.value||s.value,modelValue:d.value,"onUpdate:modelValue":x,onClear:T,onFocus:h,onBlur:g,onVisibleChange:$},R={};r.slots.option&&(R.default=r.slots.option);const A=[],O=l.h(p.ElTreeSelect,D,R);A.push(O);const N={default:()=>A};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const _={...Ne(n,mo),hintText:E.value,hintVisible:m.value};return n.prop&&(_.prop=`${n.prop}_item`),l.h(o,_,N)}}}}const{componentName:pc,create:vc,scope:yc}=ie("tree-select-item"),gl=vc(gc(pc,yc,we)),bc={},xc={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"},wc=l.createElementVNode("path",{d:"M235.84 813.632c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.592 0 98.816-41.728 98.816-93.312 0-51.52-44.224-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.592 0 98.816-41.92 98.816-93.44 0-51.52-44.224-93.312-98.816-93.312z m0-400.832C181.312 11.968 137.024 53.76 137.024 105.408c0 51.456 44.288 93.248 98.816 93.248 54.592 0 98.816-41.728 98.816-93.312C334.72 53.76 290.432 11.968 235.84 11.968z m527.104 801.664c-54.528 0-98.816 41.792-98.816 93.312 0 51.584 44.288 93.312 98.816 93.312 54.528 0 98.816-41.728 98.816-93.312 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.312 0 51.52 44.288 93.44 98.816 93.44 54.528 0 98.816-41.92 98.816-93.44 0-51.52-44.288-93.312-98.816-93.312z m0-400.832c-54.528 0-98.816 41.792-98.816 93.44 0 51.456 44.288 93.248 98.816 93.248 54.528 0 98.816-41.728 98.816-93.312 0-51.584-44.288-93.376-98.816-93.376z","p-id":"722"},null,-1),Sc=[wc];function Tc(e,t){return l.openBlock(),l.createElementBlock("svg",xc,Sc)}const $c=Me(bc,[["render",Tc]]),{componentName:zh,create:Cc,scope:Hh}=ie("group-setting"),Ec={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Nc=Cc({components:{FoxPopover:p.ElPopover,FoxCheckbox:p.ElCheckbox,FoxCheckboxGroup:p.ElCheckboxGroup,FoxButton:p.ElButton,FoxIcon:p.ElIcon,DragIcon:$c,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Ec},emits:["change"],setup(e,{emit:t,attrs:o,expose:n}){let r=null;const a=l.ref([]),s=Rr(),i=I=>I.length>1,u=()=>{const I=[],w=[...a.value];a.value=w.map((C,y)=>(C.visible!==!1&&I.push(C.prop),{...C,sortIndex:y})),a.value.length===I.length?h.value=!0:I.length>0&&(g.value=!0),$.value=I},d=I=>{let w=null;if(typeof I=="string")w=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const C=I.$el??I;typeof C.querySelectorAll=="function"&&(w=C.querySelectorAll(".fox-item[prop]"))}if(!w)return[];const k=[];return w.forEach(C=>{const y=C.querySelector(".label--string");let W="";y&&(W=y.textContent??"");const q=C.getAttribute("prop")??"",F=window.getComputedStyle(C,null).getPropertyValue("display");k.push({label:W,prop:q,sortIndex:0,visible:F!=="none"})}),k},f=()=>{if(!r){const I=d(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},c=async(I=!1)=>{const w=await s.load(e.groupProp),k=C=>{if(!C||!r)return;const y=r.map(W=>({...W}));Array.isArray(w)&&w.forEach(W=>{y.some(q=>{if(q.prop===W.prop){const j=q.label;return Object.assign(q,W),q.label=j,!0}return!1})}),a.value=y.sort((W,q)=>W.sortIndex-q.sortIndex),u(),I&&E(!1)};r?k(!0):Xt(f,e.initDelay,5,50,!1,k)},x=()=>{const I=r??[];a.value=I.map(w=>({...w})),u(),E()},E=(I=!0)=>{I&&s.save(e.groupProp,a.value);const w=a.value.map(k=>({...k}));t("change",w)},m=l.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),h=l.ref(!1),g=l.ref(!1),T=I=>{const w=[];a.value.forEach(C=>{I&&w.push(C.prop),C.visible=I}),h.value=!1,g.value=!1,a.value.length===w.length?h.value=!0:w.length>0&&(g.value=!0),$.value=w,E()},b=()=>{x()},$=l.ref([]),B=I=>{a.value.forEach(k=>{const C=I.indexOf(k.prop)!==-1;k.visible=C}),h.value=!1,g.value=!1;const w=a.value.length;I.length===w?h.value=!0:I.length>0&&(g.value=!0),E()},L=()=>{c()};l.onMounted(()=>{c(!0)});const D={currentRow:null,index:null},R=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,R(I)):null:null,A=I=>{const w=I.currentTarget;w&&w.dataset&&(D.index=w.dataset.index)},O=I=>{D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null),D.index=null},N=I=>{const w=I.currentTarget;I.relatedTarget;const k=R(w);k&&(I.preventDefault(),D.currentRow&&D.currentRow!==k&&D.currentRow.classList.remove("is-dragover"),k.classList.add("is-dragover"),D.currentRow=k)},v=I=>{I.preventDefault(),D.currentRow&&(D.currentRow.classList.remove("is-dragover"),D.currentRow=null)},_=I=>{const w=I.currentTarget,k=R(w);if(!k)return;I.preventDefault();const C=Number(D.index),y=Number(k.dataset.index);if(C!==y){if(C<y){const W=a.value[C];a.value.splice(C,1),a.value.splice(y,0,W)}else{const W=a.value[C];a.value.splice(C,1),a.value.splice(y+1,0,W)}u(),E()}},M=I=>{const w=a.value[I];a.value.splice(I,1),a.value.splice(0,0,w),u(),E()},P=I=>{const w=a.value[I];a.value.splice(I,1),a.value.push(w),u(),E()};n({refresh:()=>{r=null,c(!1)}});const V=new Map;let H=null;function Y(I){const w=document.createRange();return w.setStart(I,0),w.setEnd(I,I.childNodes.length),w.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:i,isCheckAll:h,isIndeterminate:g,handleCheckAllChange:T,handleReset:b,checkedValue:$,handleCheckChange:B,onShow:L,onDragStart:A,onDragEnd:O,onDragOver:N,onDragLeave:v,onDrop:_,checkboxLabelStyle:m,toTop:M,toBottom:P,onMouseOverForOverflowText:(I,w,k)=>{const C=I.currentTarget;if(C){const y=Math.floor(C.offsetWidth);if(Math.floor(Y(C))>y){let q=V.get(w);if(q){if(q===H)return;Oe.hide(q)}q=Oe.show(C,k,{type:"text",placement:"top",closeOnClick:!1}),V.set(w,q),H=q}}},onMouseLeaveForOverflowText:(I,w)=>{const k=V.get(w);k&&(Oe.hide(k),k===H&&(H=null))},onMouseOverForTip:(I,w)=>{const k=I.currentTarget;k&&(H&&Oe.hide(H),H=Oe.show(k,w,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{H&&(Oe.hide(H),H=null)}}}}),kc={class:"fox-group-setting"},Ic={class:"fox-group-setting__header"},Oc={class:"fox-group-setting__body"},Vc={class:"fox-group-setting__body-list","data-role":"container"},Pc=["data-index","draggable"],Fc=["onMouseover","onMouseleave"],Dc={class:"tools-item"};function Rc(e,t,o,n,r,a){const s=l.resolveComponent("FoxCheckbox"),i=l.resolveComponent("FoxButton"),u=l.resolveComponent("DragIcon"),d=l.resolveComponent("Download"),f=l.resolveComponent("FoxIcon"),c=l.resolveComponent("FoxCheckboxGroup"),x=l.resolveComponent("FoxPopover");return l.openBlock(),l.createBlock(x,l.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),default:l.withCtx(()=>[l.createElementVNode("div",kc,[l.createElementVNode("div",Ic,[l.createVNode(s,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=E=>e.isCheckAll=E),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),l.createVNode(i,{onClick:e.handleReset,link:"",type:"primary"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),l.createElementVNode("div",Oc,[l.createVNode(c,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=E=>e.checkedValue=E),onChange:e.handleCheckChange},{default:l.withCtx(()=>[l.createElementVNode("div",Vc,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.itemPropertyList,E=>(l.openBlock(),l.createElementBlock("div",{key:E.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":E.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...m)=>e.onDragStart&&e.onDragStart(...m)),onDragend:t[6]||(t[6]=(...m)=>e.onDragEnd&&e.onDragEnd(...m)),onDrop:t[7]||(t[7]=(...m)=>e.onDrop&&e.onDrop(...m)),onDragover:t[8]||(t[8]=(...m)=>e.onDragOver&&e.onDragOver(...m)),onDragleave:t[9]||(t[9]=(...m)=>e.onDragLeave&&e.onDragLeave(...m))},[e.isDraggble(e.itemPropertyList)?(l.openBlock(),l.createBlock(u,{key:0,class:"icon-item"})):l.createCommentVNode("",!0),l.createVNode(s,{class:"checkbox-item",label:E.prop},{default:l.withCtx(()=>[l.createElementVNode("span",{onMouseover:m=>e.onMouseOverForOverflowText(m,E.prop,E.label),onMouseleave:m=>e.onMouseLeaveForOverflowText(m,E.prop),class:"checkbox-item__label",style:l.normalizeStyle(e.checkboxLabelStyle)},l.toDisplayString(E.label),45,Fc)]),_:2},1032,["label"]),l.createElementVNode("div",Dc,[l.createVNode(f,{onClick:m=>e.toTop(E.sortIndex),onMouseover:t[1]||(t[1]=m=>e.onMouseOverForTip(m,e.toTopText)),onMouseleave:t[2]||(t[2]=m=>e.onMouseLeaveForTip(m)),class:"is-reverse"},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"]),l.createVNode(f,{onClick:m=>e.toBottom(E.sortIndex),onMouseover:t[3]||(t[3]=m=>e.onMouseOverForTip(m,e.toBottomText)),onMouseleave:t[4]||(t[4]=m=>e.onMouseLeaveForTip(m))},{default:l.withCtx(()=>[l.createVNode(d)]),_:2},1032,["onClick"])])],40,Pc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pl=Me(Nc,[["render",Rc]]),Ac=["aria-labelledby"],Lc=l.createElementVNode("path",{d:"M834.7 920.1h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43zm0-729.2h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43s-19.3 43-43 43zm0 354.6h-643c-23.7 0-43-19.2-43-43 0-23.7 19.2-43 43-43h643c23.7 0 43 19.2 43 43 0 23.7-19.3 43-43 43z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mc=[Lc],Bc=l.defineComponent({__name:"MoreH",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mc,14,Ac))}}),_c=["aria-labelledby"],qc=l.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),jc=[qc],vl=l.defineComponent({__name:"Loading",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},jc,14,_c))}}),zc=["aria-labelledby"],Hc=l.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Kc=[Hc],Wc=l.defineComponent({__name:"Close",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Kc,14,zc))}}),Yc=["aria-labelledby"],Gc=l.createElementVNode("path",{d:"M159.289 500.622c62.578 0 125.155 17.067 221.867 102.4 8.533 5.69 19.91 5.69 25.6 0 48.355-54.044 238.933-261.689 455.11-329.955 0 0 28.445-5.69 42.667 19.91 8.534 17.067 19.911 34.134-5.689 54.045-22.755 17.067-264.533 179.2-440.888 440.89l-2.845 2.844c-11.378 8.533-68.267 51.2-119.467-14.223-56.888-71.11-85.333-139.377-196.266-196.266-2.845 0-2.845-2.845-5.69-5.69-11.377-11.377-54.044-73.955 25.6-73.955z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Uc=[Gc],Xc=l.defineComponent({__name:"Checklist",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Uc,14,Yc))}}),Zc=["aria-labelledby"],Jc=l.createElementVNode("path",{d:"m387.547 980.846 305.006-397.532a117.102 117.102 0 0 0 0-142.628L387.584 43.154a44.837 44.837 0 0 0-71.131 54.492l305.042 397.568a27.538 27.538 0 0 1 0 33.572L316.489 926.318a44.8 44.8 0 0 0 71.058 54.564",fill:"currentColor","fill-opacity":"0.9"},null,-1),Qc=[Jc],ef=l.defineComponent({__name:"ArrowRight",props:{class:{type:String,default:""},name:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""}},emits:["click"],setup(e,{emit:t}){const o=e,n=t,r=u=>{n("click",u)},a=u=>{if(u)return isNaN(Number(u))?String(u):u+"px"},s=l.computed(()=>{const u="fox-icon";return{[u]:!0,[u+"-"+o.name]:o.name,[o.class]:!!o.class}}),i=l.computed(()=>{const u={};return u.height=a(o.height)??a(o.size),u.width=a(o.width)??a(o.size),u.color=o.color,u});return(u,d)=>(l.openBlock(),l.createElementBlock("svg",{class:l.normalizeClass(s.value),style:l.normalizeStyle(i.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Qc,14,Zc))}}),tf={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},go=(e,t)=>t[e.textKey],xt=(e,t)=>t[e.valueKey],nf=(e,t)=>t[e.visibleKey],po=(e,t)=>t[e.disabledKey],lf=(e,t)=>{const o=t[e.doitKey];return se(o)},of=(e,t)=>{const o=t[e.numKey];return o==null?null:be(t[o])},vo=(e,t,o)=>{const n=e.itemOptions;return typeof n=="function"?n(t,o):n||null};function rf(e,t,o,n=!1){return{props:{...tf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:s}){const i=l.computed(()=>{const I={};return I[`${e}`]=!0,I}),u=l.computed(()=>{const I={};return I[`${e}__titles`]=!0,I[`${r.direction}`]=!0,r.align==="left"&&(I.left=!0),r.scroll===!0&&(I.scrollable=!0),r.shape&&(I[`${r.shape}`]=!0),I}),d=l.computed(()=>({})),f=l.computed(()=>{if(!r.gutter)return 0;const I=de(r.gutter);return I<=0?0:I}),c=l.ref(r.modelValue);l.watch(()=>r.modelValue,I=>{c.value!==I&&(c.value=I,Y(!1))});const x=l.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),E=l.computed(()=>{const I={};return h.value||(I.display="none"),I}),m=l.ref(),h=l.ref(!1),g=()=>{const I=!h.value;T(I)},T=I=>{const w=I;w?(h.value=w,setTimeout(()=>{x.value["fox-tabs-bar__popup--show"]=!0,x.value["fox-tabs-bar__popup--hide"]=!1},0)):(x.value["fox-tabs-bar__popup--show"]=!1,x.value["fox-tabs-bar__popup--hide"]=!0,m.value?m.value.addEventListener("transitionend",()=>{h.value=!1},{once:!0}):setTimeout(()=>{h.value=!1},0))},b=l.ref(),$=l.ref([]),B=(I,w)=>{$.value[w]=I},L=I=>w=>{B(w,I)},D=(I,w)=>{const k=b.value,C=$.value;if(!k||!C||!C[I])return;const y=C[I];let W=0;r.direction==="vertical"?W=y.offsetTop-(k.offsetHeight-y.offsetHeight)/2:W=y.offsetLeft-(k.offsetWidth-y.offsetWidth)/2,R(k,W,w?0:.3,r.direction)},R=(I,w,k,C)=>{let y=0;const W=C==="horizontal"?I.scrollLeft:I.scrollTop,q=k===0?1:Math.round(k*1e3/16);function j(){C==="horizontal"?I.scrollLeft+=(w-W)/q:I.scrollTop+=(w-W)/q,++y<q&&qn(j)}j()},A=(I,w)=>{const k=xt(r,I),C={};return C[`${e}__titles-item`]=!0,C.disabled=po(r,I),C.active=k===c.value,r.shape&&(C[`${r.shape}`]=!0),r.ellipsis&&(C.ellipsis=!0),w&&(w.class&&(C[`${w.class}`]=!0),w.disabled===!0&&(C.disabled=w.disabled)),C},O=(I,w)=>{const k={};if(f.value>0){const C=Math.abs(f.value/2);r.direction==="vertical"?(k["margin-top"]=`${C}px`,k["margin-bottom"]=`${C}px`):(k["margin-left"]=`${C}px`,k["margin-right"]=`${C}px`)}return w&&w.style&&Object.assign(k,w.style),k},N=(I,w)=>`${xt(r,I)??w}`,v=(I,w)=>{const k=xt(r,I),C={};C[`${e}__popup-item`]=!0,C.disabled=po(r,I),C.active=k===c.value,r.shape&&(C[`${r.shape}`]=!0);const y=vo(r,I,w);return y&&y.disabled===!0&&(C.disabled=y.disabled),C},_=l.computed(()=>(r.data??[]).filter(w=>nf(r,w)!==!1)),M=(I,w)=>{const k=xt(r,I);if(c.value==k)return;const C=()=>{c.value=k,r.scroll&&D(w,!1),s("update:modelValue",k),s("change",I,w)};if(typeof r.beforeChange=="function"){const y=r.beforeChange(I,w);jo(y)?y.then(W=>{W!==!1&&C()}).catch(()=>{C()}):y!==!1&&C()}else C()},P=(I,w)=>function(){M(I,w)},V=(I,w)=>{M(I,w),T(!1)},H=(I,w)=>function(){V(I,w)},Y=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const w=r.data.findIndex(k=>xt(r,k)===c.value);w!==-1&&D(w,I)};l.watch(()=>r.data,()=>{setTimeout(Y,0)}),l.onMounted(()=>{Y(!0)});const G=(I,w)=>{if(a.item)return a.item({item:I,index:w});const k=vo(r,I,w),C=[];if(a.text){const j=a.text({item:I,index:w});C.push(j)}else{const j=[];if(k?.doit===!0||lf(r,I)){const Z={class:[`${e}__titles-item-tip`,"doit"]},ee=l.h("view",Z);j.push(ee)}const F=k?.num??of(r,I);if(F){let Z="";const ee=be(F);ee>=100?Z="99+":Z=`${ee}`;const S={class:[`${e}__titles-item-tip`,"num"]},K=l.h("view",S,[Z]);j.push(K)}const U={class:`${e}__titles-item-text`};j.push(go(r,I));const z=l.h("view",U,j);C.push(z)}const y={class:`${e}__titles-item-line`},W=l.h("view",y);C.push(W);const q={ref:L(w),class:A(I,k),style:O(I,k),key:N(I,w),onClick:P(I,w)};return l.h("view",q,C)},X=()=>{const I=a.default?a.default():[];if(I.length===0)for(let k=0;k<_.value.length;k++){const C=_.value[k],y=G(C,k);I.push(y)}const w={ref:b,class:u.value,style:d.value};return l.h("view",w,I)},Q=()=>{let I=null;a.navigation?I=a.navigation():I=l.h(o);const w={class:`${e}__navigation`,onClick:g};return l.h("view",w,[I])},ne=()=>{const I=[];for(let k=0;k<_.value.length;k++){const C=_.value[k];let y=null;a.popupItem?y=a.popupItem({item:C,index:k}):y=go(r,C);const W={class:v(C,k),key:N(C,k),onClick:H(C,k)},q=l.h("view",W,[y]);I.push(q)}const w={class:x.value,style:E.value};return l.h("view",w,I)};return()=>{const I=[],w=X();if(I.push(w),r.showQuickNavigation){const C=Q();I.push(C);const y=ne();I.push(y)}const k={class:i.value};return l.h("view",k,I)}}}}const{create:af,componentName:sf,scope:uf}=ie("tabs-bar"),yl=af(rf(sf,uf,Bc,!1)),Mr=Symbol("TabsStatesKey"),cf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function ff(e,t,o=!1){return{props:{...cf},emits:["update:modelValue","change"],setup(n,{emit:r,slots:a}){const s=l.shallowRef([]),i={current:l.ref(n.modelValue??""),direction:l.ref(n.direction),tabWidth:l.ref(-1),tabHeight:l.ref(-1),add:h=>{const g={name:h};i.current.value===h&&(g.loaded=!0),s.value.push(g),l.triggerRef(s)},remove:h=>{const g=s.value.findIndex(T=>T.name===h);g!==-1&&s.value.splice(g,1)},isLoaded:h=>{if(!n.lazy)return!0;const g=s.value.findIndex(T=>T.name===h);return g!==-1?i.current.value?s.value[g].loaded??!1:g===0:!1}};l.provide(Mr,i);const u=h=>{const g=s.value.findIndex(T=>T.name===h);g!==-1&&(s.value[g].loaded=!0,l.triggerRef(s))};l.watch([()=>n.modelValue,()=>n.direction],([h,g])=>{i.current.value!==h&&(i.current.value=h??"",u(h??"")),i.direction.value!==g&&(i.direction.value=g)});const d=l.ref(null),f=l.ref(null),c=l.computed(()=>({[e]:!0,[`${n.direction}`]:!0}));let x=!0;const E=l.computed(()=>{const h={},g=s.value.length;if(g<=0)return h;const T=s.value.findIndex(b=>b.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(h.height=`${g*i.tabHeight.value}px`,T!==-1&&(h.transform=`translate(0, -${T*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(h.width=`${g*i.tabWidth.value}px`,T!==-1&&(h.transform=`translate(-${T*i.tabWidth.value}px, 0)`)),x&&(x=!1,h.transition="transform 0s ease"),h});let m=null;return l.onMounted(()=>{if(!d.value)return;const h=()=>{const g=Qt(d.value);i.tabWidth.value=g.width,i.tabHeight.value=g.height};window.ResizeObserver&&(m=new window.ResizeObserver(h),m.observe(d.value)),h()}),l.onBeforeUnmount(()=>{m&&(m.disconnect(),m=null)}),()=>{const h={class:`${e}__panes`,style:E.value,ref:f},g=l.h("view",h,[a?.default?.()]),T={class:c.value,ref:d};return l.h("view",T,[g])}}}}const{create:df,componentName:hf,scope:mf}=ie("tabs-container"),bl=df(ff(hf,mf,!1)),gf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function pf(e,t,o){return{props:{...gf},setup(n,{emit:r,slots:a}){const s=l.inject(Mr);l.onMounted(()=>{s.add(n.paneKey)}),l.onBeforeUnmount(()=>{s.remove(n.paneKey)});const i=l.computed(()=>{const d={};return s.direction.value==="vertical"&&s.tabHeight.value>0?d.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(d.width=`${s.tabWidth.value}px`),d}),u=l.computed(()=>n.loaded!=null?se(n.loaded):s.isLoaded(n.paneKey));return()=>{let d=[];if(u.value)d=a?.default?.()??[];else if(a.empty)d=a.empty();else{const c={class:`${e}__empty-icon`},x=n.emptyIcon??o,E=l.h(x,c),m={class:`${e}__empty-text`},h=n.emptyText??"Loading",g=l.h("view",m,[h]),T={class:`${e}__empty`},b=l.h("view",T,[E,g]);d.push(b)}const f={class:`${e}`,style:i.value};return l.h("view",f,d)}}}}const{create:vf,componentName:yf,scope:bf}=ie("tabs-pane"),xl=vf(pf(yf,bf,vl)),xf={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function wf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function yo(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function bo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Sf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function Sn(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function xo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function wo(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Tn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class Tf{proxy;constructor(t){this.proxy=t}async load(t,o,n){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[n]);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ye(n)&&l.isReactive(n)&&(n=l.toRaw(n)),await Reflect.apply(r,null,[o,n]))}}function $f(){const e=l.getCurrentInstance();return new Tf(e.proxy)}function Cf(e,t,o,n){return{props:{...xf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:s}){const i=e,u=$f(),d=l.ref([]),f=l.computed(()=>d.value.filter(w=>Sf(r,w)!==!1)),c=l.ref(-1),x=()=>{const w=r.modelValue,k=f.value.findIndex(C=>yo(r,C)===w);c.value!==k&&(c.value=k,r.scroll&&ne(k,!1))};l.watch([()=>r.modelValue,f],()=>{x()});const E=w=>c.value===w,m=w=>{if(w<0&&w>=f.value.length)return!1;const k=f.value[w],y=(Tn(r,k,w)??{}).status??Sn(r,k);return E(w)||y},h=l.computed(()=>{const w={[i]:!0};return r.mode?w[`is-${r.mode}`]=!0:r.direction&&(w[`is-${r.direction}`]=!0),r.scroll&&(w["is-scroll"]=!0),w}),g=l.computed(()=>({})),T=(w,k,C,y,W)=>{const q={[`${i}__step`]:!0};return W&&(q[`${W}`]=!0),q[`${b.value}`]=!0,y&&(q["is-doit"]=!0),w===c.value?q["is-active"]=!0:k==="done"?q["is-done"]=!0:k==="error"?q["is-error"]=!0:k==="half"?q["is-half"]=!0:C?q["is-disabled"]=!0:q["is-normal"]=!0,q},b=l.computed(()=>{if(r.mode==="simple")return"start";let w=r.align;return w||(r.direction==="vertical"?w="start":w="center"),w}),$=(w,k={})=>{const C={...k};return b.value==="start"&&w===f.value.length-1?C.flex="0 0 auto":r.step?r.direction==="vertical"?C.height=r.step:C.width=r.step:C.flex="1 1 100%",C},B=(w,k)=>{let C={};if(k<f.value.length-1){const y=k+1;m(k)&&m(y)?r.direction==="vertical"?C.height="100%":C.width="100%":C.opacity="0"}return C},L=w=>f.value.length-1===w,D=(w,k)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&k>c.value||c.value===k)return;const C=c.value,y=k;c.value=k,r.scroll&&ne(k,!1);const W=yo(r,w);s("update:modelValue",W);const q={fromIndex:C,currentIndex:y,item:w,items:f.value,clickNavigatePolicy:r.clickNavigatePolicy};s("change",W,q)},R=l.ref(!0),A=async(w,k)=>{try{const C=await u.load("stesbar",w,k);Array.isArray(C)&&(d.value=C),R.value=!1}catch(C){console.error("[FoxUI] Load StepsBar Data Fail",C),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};l.watch([()=>r.data,()=>r.params],async([w,k])=>{w&&A(w,k)},{immediate:!0});const O=(w,k,C,y,W)=>{let q=null;if(a.icon)q=a.icon({item:w,index:k,status:y});else if(y==="done"){const F={};r.iconSize&&(F.width=r.iconSize,F.height=r.iconSize);const U=r.icon??o;q=l.h(U,F)}else{const F=C??`${k+1}`;q=l.h("span",{},[F])}const j={class:"fox-steps-bar__icon",onClick:()=>{W||D(w,k)}};return l.h("view",j,[q])},N=(w,k,C)=>{const y=l.h("i",{class:"fox-steps-bar__line-inner",style:B(w,k)});return l.h("view",{class:"fox-steps-bar__line"},[y])},v=()=>{let w=null;if(a.markIcon)w=a.markIcon();else{const C={};r.iconSize&&(C.width=r.markIconSize,C.height=r.markIconSize);const y=r.markIcon??n;w=l.h(y,C)}return l.h("view",{class:"fox-steps-bar__mark"},[w])},_=(w,k,C,y,W)=>{const q=[];if(!L(k)){const U=N(w,k);q.push(U)}const j=O(w,k,C,y,W);q.push(j);const F={class:"fox-steps-bar__head"};return l.h("view",F,q)},M=(w,k,C,y)=>{let W=null;a.main?W=a.main({item:w,index:k,status:C}):W=wf(r,w);const q={class:"fox-steps-bar__main",onClick:()=>{y||D(w,k)}};return l.h("view",q,[W])},P=(w,k,C)=>{let y=null;if(a.sub){y=a.sub({item:w,index:k,status:C});const W={class:"fox-steps-bar__sub"};return l.h("view",W,[y])}return null},V=(w,k)=>{const C=Tn(r,w,k)??{},y=C.status??Sn(r,w);let W=bo(r,w);C.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const q=C.label??wo(r,w),j=[],F=O(w,k,q,y,W);F&&j.push(F);const U=M(w,k,y,W);if(U&&j.push(U),!L(k)){const te=N(w,k);te&&j.push(te)}const z=l.h("view",{class:"fox-steps-bar__head"},j),Z=C.class,ee=C.style??{};let S=xo(r,w);C.doit===!0&&(S=!0);const K={ref:Q(k),class:T(k,y,W,S,Z),style:$(k,ee)};return l.h("view",K,[z])},H=(w,k)=>{const C=Tn(r,w,k)??{},y=C.status??Sn(r,w);let W=bo(r,w);C.disabled===!0&&(W=!0),r.disabled===!0&&(W=!0);const q=C.label??wo(r,w),j=[],F=r.layout;for(let S of F)if(S==="head"){const K=_(w,k,q,y,W);j.push(K)}else if(S==="main"){const K=M(w,k,y,W);j.push(K)}else if(S==="sub"){const K=P(w,k,y);j.push(K)}else if(S==="mark"){const K=v();j.push(K)}const U=C.class,z=C.style??{};let Z=xo(r,w);C.doit===!0&&(Z=!0);const ee={ref:Q(k),class:T(k,y,W,Z,U),style:$(k,z)};return l.h("view",ee,j)},Y=l.ref(),G=l.ref([]),X=(w,k)=>{G.value[k]=w},Q=w=>k=>{X(k,w)},ne=(w,k)=>{const C=Y.value,y=G.value;if(!C||!y||!y[w])return;const W=y[w];let q=0;r.direction==="vertical"?q=W.offsetTop-(C.offsetHeight-W.offsetHeight)/2:q=W.offsetLeft-(C.offsetWidth-W.offsetWidth)/2,I(C,q,k?0:.3,r.direction)},I=(w,k,C,y)=>{let W=0;const q=y==="horizontal"?w.scrollLeft:w.scrollTop,j=C===0?1:Math.round(C*1e3/16);function F(){y==="horizontal"?w.scrollLeft+=(k-q)/j:w.scrollTop+=(k-q)/j,++W<j&&qn(F)}F()};return()=>{const w=[];if(r.mode==="simple")for(let C=0;C<f.value.length;C++){const y=f.value[C],W=V(y,C);w.push(W)}else for(let C=0;C<f.value.length;C++){const y=f.value[C],W=H(y,C);w.push(W)}const k={ref:Y,class:h.value,style:g.value};return l.h("view",k,w)}}}}const{componentName:Ef,create:Nf,scope:kf}=ie("steps-bar"),wl=Nf(Cf(Ef,kf,Xc,ef)),If=Symbol.for("InnerPageScopeKey"),Of=Symbol.for("PageWrapperKey");function Vf(e,t){return{props:{title:{type:[String]},draggable:{type:[Boolean],default:!0},appendToBody:{type:[Boolean],default:!0},closeOnClickModal:{type:[Boolean],default:!1},closeOnPressEscape:{type:[Boolean],default:!0}},setup(o,n){l.provide(If,!0);const r={};l.provide(Of,r);const a=u=>{typeof r.beforeClose=="function"&&r.beforeClose()},s=l.ref(!0),i=u=>{s.value=u};return()=>{const d={...n.attrs,title:o.title,draggable:o.draggable,modelValue:s.value,"onUpdate:modelValue":i,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},f={};if(typeof n.slots.default=="function"){const c=n.slots.default();f.default=()=>c}return l.h(p.ElDialog,d,f)}}}}const{componentName:Kh,create:Pf,scope:Wh}=ie("dialog-item"),Sl=Pf(Vf());let wt=0;const So="fox-overflow-hidden",To=()=>it?document.body:{classList:[]},Ff=e=>[()=>{if(e())try{!wt&&To().classList.add(So),wt++}catch{}},()=>{if(e()&&wt)try{wt--,!wt&&To().classList.remove(So)}catch{}}],Df={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Rf,create:Af}=ie("overlay"),Lf=Af({props:{...Df},emits:["click","update:visible"],setup(e,{emit:t}){const[o,n]=Ff(()=>e.lockScroll),r=l.computed(()=>({[Rf]:!0,[e.overlayClass]:!0})),a=l.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return l.watch(()=>e.visible,i=>{i?o():n()}),{classes:r,style:a,onClick:i=>{t("click",i),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Mf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"overlay-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),onClick:t[0]||(t[0]=l.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:l.normalizeStyle(e.style)},[l.renderSlot(e.$slots,"default")],6),[[l.vShow,e.visible]])]),_:3})}const un=Me(Lf,[["render",Mf]]),Bf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Br=2e3;let $o=Br;const _f=(e,t)=>({components:t,props:{...Bf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:n}){const r=l.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=l.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),s=l.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),i=l.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),u=()=>{o.zIndex!==Br&&($o=Number(o.zIndex)),n("update:visible",!0),r.zIndex=++$o,o.destroyOnClose&&(r.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},f=h=>{n("click-pop",h)},c=h=>{h.stopPropagation(),n("click-close-icon",h),n("update:visible",!1)},x=h=>{n("click-overlay",h),o.closeOnClickOverlay&&n("update:visible",!1)},E=h=>{n("opend",h)},m=h=>{n("closed",h)};return l.watch(()=>o.visible,h=>{o.visible?u():d()}),l.watch(()=>o.closeable,h=>{r.closed=h}),{...l.toRefs(r),popStyle:s,transitionName:i,classes:a,onClick:f,onClickCloseIcon:c,onClickOverlay:x,onOpened:E,onClosed:m}}}),{componentName:qf,create:jf}=ie("popup"),zf=jf(_f(qf,{FoxOverLay:un,Close:Wc}));function Hf(e,t,o,n,r,a){const s=l.resolveComponent("FoxOverLay"),i=l.resolveComponent("Close");return l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(l.openBlock(),l.createBlock(s,l.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):l.createCommentVNode("",!0),l.createVNode(l.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...u)=>e.onClick&&e.onClick(...u))},[e.showSlot?l.renderSlot(e.$slots,"default",{key:0}):l.createCommentVNode("",!0),e.closed?(l.openBlock(),l.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...u)=>e.onClickCloseIcon&&e.onClickCloseIcon(...u)),class:l.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[l.renderSlot(e.$slots,"close-icon",{},()=>[l.createVNode(i)])],2)):l.createCommentVNode("",!0)],6),[[l.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Tl=Me(zf,[["render",Hf]]),{create:Kf}=ie("toast"),Wf=Kf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const n=l.reactive({mounted:!1});l.onMounted(()=>{n.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{n.mounted=!1},s=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},i=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&s(),l.watch(()=>e.duration,E=>{E&&s()});const u=l.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const E=de(e.iconSize);return l.h(e.icon,{width:E,height:E,color:e.iconColor})},f=l.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":u.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),c=l.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:a,clickCover:i,renderIcon:d,hasIcon:u,toastBodyClass:f,toastIconWrapperClass:c,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Yf={key:1,class:"fox-toast-title"},Gf=["innerHTML"];function Uf(e,t,o,n,r,a){return l.openBlock(),l.createBlock(l.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("view",{class:l.normalizeClass(e.toastBodyClass),style:l.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[l.createElementVNode("view",{class:"fox-toast-inner",style:l.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(l.openBlock(),l.createElementBlock("view",{key:0,class:l.normalizeClass(e.toastIconWrapperClass)},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.renderIcon())))],2)):l.createCommentVNode("",!0),e.title?(l.openBlock(),l.createElementBlock("div",Yf,l.toDisplayString(e.title),1)):l.createCommentVNode("",!0),l.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Gf)],4)],6),[[l.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const $l=Me(Wf,[["render",Uf]]),Xf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Zf=(e,t,o)=>({props:{...Xf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(n,{slots:r}){const{emitEvent:a}=ur(),{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["placeholder"]),u=l.reactive({active:!1}),d=l.computed(()=>({background:n.background})),f=l.computed(()=>({background:n.inputBackground})),c=O=>{let v=O.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),a("update:modelValue",v,O),a("change",v,O)},x=l.ref({}),E=O=>{let v=O.target.value;u.active=!0,x.value=n.focusStyle,a("focus",v,O)},m=O=>{setTimeout(()=>{u.active=!1},0);let v=O.target.value;n.maxLength&&v.length>Number(n.maxLength)&&(v=v.slice(0,Number(n.maxLength))),x.value={},a("blur",v,O)},h=O=>{a("update:modelValue","",O),a("change","",O),a("clear","")},g=l.computed(()=>String(n.modelValue).length>0),T=l.computed(()=>{const O={};return g.value||(O.display="none"),O}),b=()=>{a("search",n.modelValue)},$=O=>{a("keyup-input",O),O.key.toLocaleUpperCase()==="ENTER"&&b()},B=O=>{a("click-input",O)},L=O=>{a("click-left-icon",n.modelValue,O)},D=l.computed(()=>({textAlign:n.inputAlign})),R=l.ref(null);l.onMounted(()=>{n.autofocus&&R.value.focus()});const A=()=>{const O=[];if(r.leftin){const P={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:L},V=l.h("view",P,[r.leftin()]);O.push(V)}const N={ref:R,class:[`${e}__input-inner`],style:D.value,type:n.inputType,maxlengt:n.maxLength,placeholder:i.placeholder.value,value:n.modelValue,disabled:n.disabled,readonly:n.readonly,onClick:B,onInput:c,onFocus:E,onBlur:m,onkeyup:$},v=l.h("input",N);O.push(v);const _=[];if(n.clearable){const P={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:T.value,onClick:h},V=r?.clear?.()??n.clearIcon??o,H=l.h("view",P,[l.h(V)]);_.push(H)}if(r.rightin){const P={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},V=l.h("view",P,[r.rightin()]);_.push(V)}if(_.length>0){const P={class:`${e}__input-inner-right`},V=l.h("view",P,_);O.push(V)}const M={class:[`${e}__search-input`,`${n.shape}`],style:{...f.value,...x.value}};return l.h("view",M,O)};return()=>{const O=[];if(n.label){const _={class:`${e}__search-label`},M=l.h("span",_,[n.label]);O.push(M)}if(r.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},M=l.h("view",_,[r.leftout()]);O.push(M)}const N=A();if(O.push(N),r.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},M=l.h("view",_,[r.rightout()]);O.push(M)}const v={class:`${e}`,style:d.value};return l.h("view",v,O)}}}),{componentName:Jf,create:Qf,scope:ed}=ie("searchbar"),Cl=Qf(Zf(Jf,ed,Ee.CircleClose)),td=/scroll|auto|overlay/i,_r=window;function nd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ld(e,t=_r){let o=e;for(;o&&o!==t&&nd(o);){const{overflowY:n}=window.getComputedStyle(o);if(td.test(n))return o;o=o.parentNode}return t}function qr(e,t=_r){const o=l.ref();return l.onMounted(()=>{e.value&&(o.value=ld(e.value,t))}),o}const jr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,od={modelValue:{type:[Boolean],default:!1},hasMore:{type:[Boolean],default:!0},threshold:{type:[Number],default:200},loadText:{type:[String]},loadMoreText:{type:[String]},useCapture:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1}};function rd(e,t,o){return{props:{...od},emits:["scroll-change","load-more","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullText","loadText","loadMoreText"]),u=l.ref(),d=qr(u),f=l.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=l.computed(()=>({[e]:!0})),x=b=>b?b.offsetTop+x(b.offsetParent):0,E=()=>{let b=0,$=0,B="down";if(d.value==window){const L=jr();u.value&&(b=x(u.value)+u.value.offsetHeight-L-window.innerHeight),$=L}else{const{scrollHeight:L,clientHeight:D,scrollTop:R}=d.value;b=L-D-R,$=R}return f.beforeScrollTop>$?B="up":B="down",f.beforeScrollTop=$,r("scroll-change",$),b<=n.threshold&&B=="down"},m=()=>{Ao(()=>{if(!E()||!n.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,r("update:modelValue",!0),l.nextTick(()=>r("load-more"))})},h=()=>{d.value&&d.value.addEventListener("scroll",m,n.useCapture)},g=()=>{d.value&&d.value.removeEventListener("scroll",m,n.useCapture)};l.onMounted(()=>{h(),n.immediate&&m()}),l.onUnmounted(()=>{g()});const T=l.ref(!1);return l.onActivated(()=>{T.value&&(T.value=!1,h())}),l.onDeactivated(()=>{T.value=!0,g()}),l.watch(()=>n.modelValue,b=>{b||(f.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},$=l.h("view",b,[a?.default?.()]),B=[];if(f.isInfiniting){let A=a?.loading?.()??null;if(!A){let v=a?.loadingIcon?.()??null;if(!v){const P={class:["fox-infinite__bottom-box__img"]};v=l.h(o,P)}const _={class:"fox-infinite__bottom-box__text"},M=l.h("view",_,[i.loadText.value]);A=[v,M]}const O={class:"fox-infinite__bottom-box"},N=l.h("view",O,A);B.push(N)}else if(!n.hasMore){let A=a?.finished?.()??null;if(!A){const O={class:"fox-infinite__bottom-tips"};A=l.h("view",O,[i.loadMoreText.value]),B.push(A)}}const L={class:"fox-infinite__bottom"},D=l.h("view",L,B),R={class:c.value,ref:u};return l.h("view",R,[$,D])}}}}const{componentName:ad,create:id,scope:sd}=ie("infinite-loading"),El=id(rd(ad,sd,vl)),Co=10;function zr(e,t){return e>t&&e>Co?"horizontal":t>e&&t>Co?"vertical":""}function Nl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function kl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},t=()=>e.direction==="vertical",o=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const d=s.touches[0];e.deltaX=d.clientX-e.startX,e.deltaY=d.clientY-e.startY,e.moveX=d.clientX,e.moveY=d.clientY}else{const u=s;e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=zr(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const d=s.touches[0];e.startX=d.clientX,e.startY=d.clientY}else{const u=s;e.startX=u.clientX,e.startY=u.clientY}e.startTime=Date.now()},reset:n,isVertical:t,isHorizontal:o,state:e}}function ud(){const e=l.ref(0),t=l.ref(0),o=l.ref(0),n=l.ref(0),r=l.ref(0),a=l.ref(0),s=l.ref(0),i=l.ref(0),u=l.ref(0),d=l.ref(0),f=l.ref(""),c=()=>f.value==="vertical",x=()=>f.value==="horizontal",E=()=>{s.value=0,i.value=0,u.value=0,d.value=0,f.value="",o.value=0};return{move:g=>{if(g.touches){const $=g.touches[0];s.value=$.clientX-e.value,i.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const b=g;s.value=b.clientX-e.value,i.value=b.clientY-t.value,r.value=b.clientX,a.value=b.clientY}u.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-o.value,f.value||(f.value=zr(u.value,d.value))},start:g=>{if(E(),g.touches){const $=g.touches[0];e.value=$.clientX,t.value=$.clientY}else{const b=g;e.value=b.clientX,t.value=b.clientY}o.value=Date.now()},reset:E,startX:e,startY:t,startTime:o,duration:n,moveX:r,moveY:a,deltaX:s,deltaY:i,offsetX:u,offsetY:d,direction:f,isVertical:c,isHorizontal:x}}const cd={modelValue:{type:[Boolean],default:!1},pullingText:{type:[String]},loosingText:{type:[String]},loadingText:{type:[String]},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},fd=(e,t,o)=>({props:{...cd},emits:["change","refresh","update:modelValue"],setup(n,{emit:r,slots:a}){const{toLocaleRefs:s}=Le.useFoxI18n(t),i=s(n,["pullingText","loosingText","loadingText"]),u=kl(),d=l.ref(),f=qr(d),c=l.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),x=l.computed(()=>({[e]:!0})),E=l.computed(()=>{switch(c.status){case"pulling":return a.pulling?"":i.pullingText.value;case"loosing":return a.loosing?"":i.loosingText.value;case"loading":return a.loading?"":i.loadingText.value;default:return""}}),m=l.computed(()=>({transitionDuration:`${n.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=l.computed(()=>{const R={};return n.headHeight!=50&&(R.height=Ce(n.headHeight)),R}),g=R=>{const A=+(n.pullDistance||n.headHeight);let O=R;return R>A&&(R<A*2?O=(R+A)/2:O=A+R/4),Math.round(O)},T=(R,A)=>{const O=+(n.pullDistance||n.headHeight);c.distance=R,A?c.status="loading":R===0?c.status="normal":R<O?c.status="pulling":c.status="loosing",r("change",{status:c.status,distance:R})},b=()=>c.status!=="loading"&&c.status!=="complete",$=()=>f.value==window?jr()==0:f.value&&f.value.scrollTop==0,B=R=>{b()&&($()?(u.start(R),c.isPullRefresh=!0,c.moving=!0):(c.distance=0,c.isPullRefresh=!1))},L=R=>{b()&&c.moving&&(u.move(R),u.isVertical()&&u.state.deltaY>0&&c.isPullRefresh&&(R.cancelable&&R.preventDefault(),T(g(u.state.deltaY))))},D=()=>{c.moving=!1,c.isPullRefresh&&b()&&u.state.deltaY&&(c.status==="loosing"?(T(+n.headHeight,!0),r("update:modelValue",!0),l.nextTick(()=>r("refresh"))):T(0)),setTimeout(()=>{u.reset()},0)};return l.watch(()=>n.modelValue,R=>{R?T(+n.headHeight,!0):T(0)}),()=>{const R=[];let A=null;if(c.status==="loading"){if(A=a?.loading?.()??null,!A){const H={class:["fox-pull-refresh-container-topbox-icon"]};A=l.h(o,H)}}else c.status==="pulling"?A=a?.pulling?.()??null:c.status==="loosing"&&(A=a?.loosing?.()??null);A&&R.push(A);const O={class:["fox-pull-refresh-container-topbox-text"]},N=l.h("dive",O,[E.value]);R.push(N);const v={class:["fox-pull-refresh-container-topbox"],style:h.value},_=l.h("div",v,R),M={class:"fox-pull-refresh-container",style:m.value},P=l.h("div",M,[_,a?.default?.()]),V={ref:d,class:x.value};return Nl()?Object.assign(V,{onTouchstart:B,onTouchmove:L,onTouchend:D}):Object.assign(V,{onMousedown:B,onMousemove:L,onMouseup:D}),l.h("div",V,[P])}}}),{componentName:dd,create:hd,scope:md}=ie("pull-refresh"),Il=hd(fd(dd,md,vl));function gd(e,t){return{props:{type:{type:[String],required:!1,default:""},color:{type:[String],required:!1,default:""},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"}},setup(o,{slots:n}){const r=e,a=l.computed(()=>({[r]:!0})),s=l.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),i=l.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),u=l.computed(()=>{const f={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?f["is-left"]=!0:f["is-right"]=!0,f}),d=l.computed(()=>o.color?{color:o.color}:null);return()=>{let f=null;if(n.mark)f=n.mark()[0];else{const h={class:s.value,style:i.value};f=l.h(o.icon??"div",h)}const c={class:u.value,style:d.value},x=n.default?n.default():[],E=l.h("div",c,x),m={class:a.value};return o.textPosition==="right"?l.h("div",m,[f,E]):l.h("div",m,[E,f])}}}}const{componentName:pd,create:vd,scope:Yh}=ie("indicator"),Ol=vd(gd(pd));function yd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const n=o.getBoundingClientRect().width;if(n>0){t(n);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const bd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function xd(e,t,o,n=!1){return{props:{...bd},emits:["click"],setup(r,a){const s=l.ref(null),i=l.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),u=l.computed(()=>{const $={},B=r.textColor??r.color;return B&&($.color=B),$}),d=($,B)=>{let L=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const D=r.highlightFilter;if($.indexOf(D)!==-1){const A=$.replace(new RegExp(D,"g"),`<span>${D}</span>`);B.innerHTML=A,B.class["is-highlight"]=!0,L=l.h(r.tag,B)}}else if(typeof r.highlightFilter=="function"){const D=r.highlightFilter($);D&&(B.innerHTML=D,B.class["is-highlight"]=!0,L=l.h(r.tag,B))}return L},f=$=>{a.emit("click",$)};let c="";const x=()=>{const $=s.value;if(!$)return;const B=$.clientWidth;yd($,L=>{const D=$.innerHTML??"";me(D)||L<B||(c?o?.show($,D,{type:"text",id:c,showArrow:r.showArrow},!0):c=o?.show($,D,{type:"text",showArrow:r.showArrow},!0)??"")})},E=()=>{c&&o?.hide(c)};let m=null;const h=$=>{m||(m=setTimeout(()=>{x(),m=null},r.showAfter??0))},g=$=>{m&&(clearTimeout(m),m=null),setTimeout(()=>{E()},r.hideAfter??0)},T=()=>{const $=s.value;$&&($.addEventListener("mouseover",h),$.addEventListener("mouseleave",g))},b=()=>{const $=s.value;$&&($.removeEventListener("mouseover",h),$.removeEventListener("mouseleave",g))};return l.onMounted(()=>{!se(r.showOverflowTooltip)||!o||T()}),l.onBeforeUnmount(()=>{!se(r.showOverflowTooltip)||!o||b()}),()=>{const $={onClick:f,class:i.value,style:u.value,ref:s};let B=null;if(se(r.numberFormat)&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const O=A[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const N=be(r.digits),v=be(r.decimalLength),_=se(r.autoPadding);let M=`${A[0].children}`,P=M.split("").reverse().join("");P=Kt(P,v,_,N,r.separator),M=P.split("").reverse().join(""),r.highlightFilter!==void 0&&(B=d(M,$)),B||($.innerHTML=M,B=l.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const A=a.slots.default();if(Array.isArray(A)&&A.length===1){const O=A[0].type.toString();if(O==="Symbol(Text)"||O==="Symbol(v-txt)"){const N=`${A[0].children}`;B=d(N,$),B||($.innerHTML=N,B=l.h(r.tag,$))}}}B||(B=l.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return B;let D=null;if(r.icon){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const O={},N=r.color;N&&(O.color=N);const v={class:A,style:O};D=l.h("view",v,l.h(r.icon))}else if(a.slots.mark){const A={[`${e}__mark-wrap`]:!0};r.type&&(A[`${e}__mark-wrap--${r.type}`]=!0);const O={},N=r.color;N&&(O.color=N);const v={class:A,style:O};D=l.h("view",v,{default:a.slots.mark})}else{const A={[`${e}__mark`]:!0};r.type&&(A[`${e}__mark--${r.type??"default"}`]=!0);const O={},N=r.color;N&&(O["background-color"]=N);const v={class:A,style:O};D=l.h("view",v)}const R={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return l.h("view",R,[D,B])}}}}const{componentName:wd,create:Sd,scope:Td}=ie("text"),Vl=Sd(xd(wd,Td,Oe,!1)),$d={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:Ee.ArrowUp}};function Cd(e,t,o){return{props:{...$d},emits:["click","update:modelValue"],setup(n,{emit:r}){const a=l.computed(()=>{const c={[`${e}`]:!0};return n.disabled?c[`${e}__disabled`]=!0:c[`${e}__${n.type}`]=!0,c}),s=he(n,"modelValue"),i=l.computed(()=>s.value?n.expandText??"":n.collapseText??""),u=l.computed(()=>({[`${e}__text`]:!0})),d=l.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{r("update:modelValue",!s.value)};return()=>{const c=[];if(i.value){const h={class:u.value},g=l.h("span",h,[i.value]);c.push(g)}const x={class:d.value},E=o(n.icon,x);return E&&c.push(E),l.h("div",{class:a.value,onClick:f},c)}}}}const{componentName:Ed,create:Nd,scope:kd}=ie("more-button"),Id=(e,t)=>(e=e??Ee.ArrowUp,l.h(p.ElIcon,t,{default:()=>[l.h(e)]})),Pl=Nd(Cd(Ed,kd,Id));function Od(e){return e===window}const Hr=e=>{const t=l.unref(e);if(Od(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:Vd,create:Pd,scope:Gh}=ie("tour"),Fd=Pd({components:{Close:Ee.Close,ElPopover:p.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Vd,n=l.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=l.ref({}),a=l.computed(()=>`${o}`),s=l.computed(()=>{const{offset:m,maskWidth:h,maskHeight:g}=e,{width:T,height:b,left:$,top:B}=r.value,L=e.steps[n.active].offset??m,D=[$+T/2,B+b/2],R=Number(h||T),A=Number(g||b);return{width:`${R+ +L.left+L.right}px`,height:`${A+L.top+L.bottom}px`,top:`${D[1]-A/2-+L.top}px`,left:`${D[0]-R/2-+L.left}px`}}),i=m=>{m=="next"?n.active=n.active+1:n.active=n.active-1,n.showPopup=!1,l.nextTick(()=>{n.showPopup=!0,f()}),t("change",n.active)},u=m=>m.popoverWidth??e.width,d=m=>m.location??e.location,f=()=>{const m=document.querySelector(`${e.steps[n.active].target}`),h=Hr(m);r.value={x:h.left,y:h.top,top:h.top,left:h.left,width:h.width,height:h.height}},c=()=>{n.showTour=!1,n.showPopup=!1,t("close",n.active),t("update:modelValue",!1)},x=()=>{e.closeOnClickOverlay&&c()},E=(m,h=0)=>{m&&f(),e.steps,n.active=h,n.showTour=m,n.showPopup=m};return l.onMounted(()=>{E(e.modelValue,e.current)}),l.watch(()=>e.modelValue,m=>{E(m)}),{...l.toRefs(n),classes:a,maskStyle:s,changeStep:i,popoverWidth:u,popoverLocation:d,close:c,handleClickMask:x}}}),Dd={key:0,class:"fox-tour__content"},Rd={key:0,class:"fox-tour__content-top"},Ad={class:"fox-tour__content-inner"},Ld={class:"fox-tour__content-bottom"},Md={class:"fox-tour__content-bottom-init"},Bd={class:"fox-tour__content-bottom-operate"},_d={key:1,class:"fox-tour__content fox-tour__content-tile"},qd={class:"fox-tour__content-inner"};function jd(e,t,o,n,r,a){const s=l.resolveComponent("Close"),i=l.resolveComponent("fox-button"),u=l.resolveComponent("ElPopover");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(e.classes)},[l.withDirectives(l.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...d)=>e.handleClickMask&&e.handleClickMask(...d))},null,512),[[l.vShow,e.showTour]]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:f,style:{height:"0"}},[f==e.active?(l.openBlock(),l.createBlock(u,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(d),width:e.popoverWidth(d)},{reference:l.withCtx(()=>[e.showTour?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:l.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):l.createCommentVNode("",!0)]),default:l.withCtx(()=>[l.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(l.openBlock(),l.createElementBlock("div",Dd,[e.showTitleBar?(l.openBlock(),l.createElementBlock("div",Rd,[l.createElementVNode("div",{onClick:t[1]||(t[1]=(...c)=>e.close&&e.close(...c))},[l.createVNode(s,{class:"fox-tour__content-top-close"})])])):l.createCommentVNode("",!0),l.createElementVNode("div",Ad,l.toDisplayString(d.content),1),l.createElementVNode("div",Ld,[l.createElementVNode("div",Md,l.toDisplayString(e.active+1)+"/"+l.toDisplayString(e.steps.length),1),l.createElementVNode("div",Bd,[l.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(l.openBlock(),l.createBlock(i,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=c=>e.changeStep("prev"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.prevStepText),1)]),_:1})):l.createCommentVNode("",!0)]),e.steps.length-1==e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0),l.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(l.openBlock(),l.createBlock(i,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=c=>e.changeStep("next"))},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(e.nextStepText),1)]),_:1})):l.createCommentVNode("",!0)])])])])):l.createCommentVNode("",!0),e.type=="tile"?(l.openBlock(),l.createElementBlock("div",_d,[l.createElementVNode("div",qd,l.toDisplayString(d.content),1)])):l.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):l.createCommentVNode("",!0)]))),128))],2)}const Fl=Me(Fd,[["render",jd]]),Ie=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,nt=e=>e==null;class zd{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=Nl()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=kl(),n=(r,a,s,i)=>{this.updateMove({x:r,y:a})};this.touchstart=r=>{this.moving||(o.start(r),this.startMove({x:o.state.startX,y:o.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=r=>{this.moving&&(o.move(r),n(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{n(o.state.deltaX,o.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),o.reset(),this.moving=!1},this.els.forEach(r=>{this.touchstart&&r.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(t=>{this.touchstart&&t.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Eo(e,t){return new zd(e,t)}const No=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let ct=[];const ko=e=>{const t=e;t.key==="Escape"&&ct.forEach(o=>o(t))},Hd=e=>{l.onMounted(()=>{ct.length===0&&document.addEventListener("keydown",ko),No&&ct.push(e)}),l.onBeforeUnmount(()=>{ct=ct.filter(t=>t!==e),ct.length===0&&No&&document.removeEventListener("keydown",ko)})},$n="fox-focus-trap.focus-after-trapped",Cn="fox-focus-trap.focus-after-released",Kd="fox-focus-trap.focusout-prevented",Io={cancelable:!0,bubbles:!1},Wd={cancelable:!0,bubbles:!1},Oo="foxFocusAfterTrapped",Vo="foxFocusAfterReleased",Yd=Symbol("foxFocusTrap"),Dl=l.ref(),cn=l.ref(0),Rl=l.ref(0);let Rt=0;const Kr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const r=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||r?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Gd=(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},Po=(e,t)=>{for(const o of e)if(!Gd(o,t))return o},Ud=e=>{const t=Kr(e),o=Po(t,e),n=Po(t.reverse(),e);return[o,n]},Xd=e=>e instanceof HTMLInputElement&&"select"in e,Ze=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Xd(e)&&t&&e.select()}};function Fo(e,t){const o=[...e],n=e.indexOf(t);return n!==-1&&o.splice(n,1),o}const Zd=()=>{let e=[];return{push:n=>{const r=e[0];r&&n!==r&&r.pause(),e=Fo(e,n),e.unshift(n)},remove:n=>{e=Fo(e,n),e[0]?.resume?.()}}},Jd=(e,t=!1)=>{const o=document.activeElement;for(const n of e)if(Ze(n,t),document.activeElement!==o)return},Do=Zd(),Qd=()=>cn.value>Rl.value,At=()=>{Dl.value="pointer",cn.value=window.performance.now()},Ro=()=>{Dl.value="keyboard",cn.value=window.performance.now()},eh=()=>(l.onMounted(()=>{Rt===0&&(document.addEventListener("mousedown",At),document.addEventListener("touchstart",At),document.addEventListener("keydown",Ro)),Rt++}),l.onBeforeUnmount(()=>{Rt--,Rt<=0&&(document.removeEventListener("mousedown",At),document.removeEventListener("touchstart",At),document.removeEventListener("keydown",Ro))}),{focusReason:Dl,lastUserFocusTimestamp:cn,lastAutomatedFocusTimestamp:Rl}),Lt=e=>new CustomEvent(Kd,{...Wd,detail:e}),{componentName:Uh,create:th,scope:Xh}=ie("focus-trap"),nh={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"}},lh=th({props:nh,emits:[Oo,Vo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const n=l.ref();let r,a;const{focusReason:s}=eh();Hd(h=>{se(e.trapped)&&!i.paused&&o("release-requested",h)});const i={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},u=h=>{if(!e.loop&&!se(e.trapped)||i.paused)return;const{key:g,altKey:T,ctrlKey:b,metaKey:$,currentTarget:B,shiftKey:L}=h,{loop:D}=e,R=g==="Tab"&&!T&&!b&&!$,A=document.activeElement;if(R&&A){const O=B,[N,v]=Ud(O);if(N&&v){if(!L&&A===v){const M=Lt({focusReason:s.value});o("focusout-prevented",M),M.defaultPrevented||(h.preventDefault(),D&&Ze(N,!0))}else if(L&&[N,O].includes(A)){const M=Lt({focusReason:s.value});o("focusout-prevented",M),M.defaultPrevented||(h.preventDefault(),D&&Ze(v,!0))}}else if(A===O){const M=Lt({focusReason:s.value});o("focusout-prevented",M),M.defaultPrevented||h.preventDefault()}}};l.provide(Yd,{focusTrapRef:n,onKeydown:u}),l.watch(()=>e.focusTrapEl,h=>{h&&(n.value=h)},{immediate:!0}),l.watch([n],([h],[g])=>{h&&(h.addEventListener("keydown",u),h.addEventListener("focusin",c),h.addEventListener("focusout",x)),g&&(g.removeEventListener("keydown",u),g.removeEventListener("focusin",c),g.removeEventListener("focusout",x))});const d=h=>{o(Oo,h)},f=h=>o(Vo,h),c=h=>{const g=l.unref(n);if(!g)return;const T=h.target,b=h.relatedTarget,$=T&&g.contains(T);se(e.trapped)||b&&g.contains(b)||(r=b),$&&o("focusin",h),!i.paused&&se(e.trapped)&&($?a=T:Ze(a,!0))},x=h=>{const g=l.unref(n);if(!(i.paused||!g))if(!e.escape&&se(e.trapped)){const T=h.relatedTarget;!jn(T)&&!g.contains(T)&&setTimeout(()=>{if(!i.paused&&se(e.trapped)){const b=Lt({focusReason:s.value});o("focusout-prevented",b),b.defaultPrevented||Ze(a,!0)}},0)}else{const T=h.target;T&&g.contains(T)||o("focusout",h)}};async function E(){await l.nextTick();const h=l.unref(n);if(h){Do.push(i);const g=h.contains(document.activeElement)?r:document.activeElement;if(r=g,!h.contains(g)){const b=new Event($n,Io);h.addEventListener($n,d),h.dispatchEvent(b),b.defaultPrevented||l.nextTick(()=>{let $=e.focusStartEl;qo($)||(Ze($),document.activeElement!==$&&($="first")),$==="first"&&Jd(Kr(h),!0),(document.activeElement===g||$==="container")&&Ze(h)})}}}function m(){const h=l.unref(n);if(h){h.removeEventListener($n,d);const g=new CustomEvent(Cn,{...Io,detail:{focusReason:s.value}});h.addEventListener(Cn,f),h.dispatchEvent(g),!g.defaultPrevented&&(s.value=="keyboard"||!Qd())&&Ze(r??document.body,!0),h.removeEventListener(Cn,d),Do.remove(i)}}return l.onMounted(()=>{se(e.trapped)&&E(),l.watch(()=>e.trapped,h=>{se(h)?E():m()})}),l.onBeforeUnmount(()=>{se(e.trapped)&&m()}),()=>typeof t.default=="function"?t.default({"handle-keydown":u}):null}}),{componentName:oh,create:rh,scope:Zh}=ie("floating-window"),ah=Symbol.for("InnerPageScopeKey"),ih=Symbol.for("PageWrapperKey"),sh={modelValue:{type:[Boolean,String],required:!1,default:!0},title:{type:[String],required:!1},width:{type:[String,Number],required:!1},height:{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}},uh=rh({inheritAttrs:!1,components:{FoxIcon:p.ElIcon,FocusTrap:lh},props:{...sh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=oh,n=l.ref(e.modelValue),r=l.computed(()=>!e.teleport);l.watch(()=>e.modelValue,S=>{n.value=S});const a=l.computed(()=>n.value===!1?!1:!A.value),s=l.ref(e.left),i=l.ref(e.top),u=l.ref(e.right),d=l.ref(e.bottom),f=l.computed(()=>{const S=["fox-floating-window"];return e.customClass&&S.push(e.customClass),S}),c=l.computed(()=>{const S={};return nt(s.value)?S.left="auto":S.left=Ie(s.value),nt(i.value)?S.top="auto":S.top=Ie(i.value),nt(u.value)?S.right="auto":S.right=Ie(u.value),nt(d.value)?S.bottom="auto":S.bottom=Ie(d.value),nt(e.zIndex)||(S["z-index"]=Ie(e.zIndex)),nt(D.value)||(S.height=D.value),nt(R.value)||(S.width=R.value),S}),x=l.computed(()=>e.closeIcon??Ee.Close),E=l.computed(()=>e.collapseIcon??Ee.ArrowUp),m=l.computed(()=>e.collapseText??""),h=l.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),g=l.computed(()=>e.expandText??e.title??"展开"),T=l.computed(()=>({[`${o}__collapse-text`]:!0})),b=l.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),$=l.ref(),B=l.ref(null),L=l.ref(null),D=l.computed(()=>Ie(e.height)||""),R=l.computed(()=>Ie(e.width)||""),A=l.ref(se(e.collapse)),O=(S,K=!0)=>{A.value!==S&&(A.value=S,S?w():k(),t("update:collapse",S),S&&typeof _.onHide=="function"?_.onHide():!S&&typeof _.onShow=="function"&&_.onShow())};l.watch(()=>e.collapse,S=>{O(S)});const N=()=>{v()},v=S=>{S=S??!A.value,O(S)};l.provide(ah,!0);const _={setCollapse:O,setFixedNavVisible:S=>{Q.value=S}};l.provide(ih,_);const M=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{n.value=!1}):n.value=!1},P=l.ref(null),V=l.computed(()=>!e.fixedNavTeleport),H=l.computed(()=>{const S=["fox-floating-window__fixednav"];return e.expandClass&&S.push(e.expandClass),e.collapsePosition==="left"?S.push("is-left"):e.collapsePosition==="right"&&S.push("is-right"),S}),Y=l.ref(""),G=l.computed(()=>{const S={};return Y.value?S.top=Y.value:e.collapseTop&&(S.top=e.collapseTop),S}),X=l.ref(A.value),Q=l.computed({set:S=>{X.value=S},get:()=>n.value===!1?!1:X.value});let ne=null;const I=()=>{typeof ne=="function"&&(ne(),ne=null)},w=()=>{P.value&&P.value.classList.add("slide-in"),Q.value=!0,ne=()=>{P.value&&P.value.classList.remove("slide-in")}},k=()=>{P.value&&P.value.classList.add("slide-out"),ne=()=>{P.value&&P.value.classList.remove("slide-out"),Q.value=!1}},C=()=>{s.value=null,i.value=null,u.value=null,d.value=null},y={x:0,y:0},j=Eo(S=>{if(!$.value)return;const K=$.value;if(C(),e.origin==="left-top")s.value=K.offsetLeft,i.value=K.offsetTop,y.x=s.value,y.y=i.value;else if(e.origin==="left-bottom"){const te=document.documentElement.clientHeight||document.body.clientHeight;s.value=K.offsetLeft,d.value=te-(K.offsetTop+K.offsetHeight),y.x=s.value,y.y=d.value}else if(e.origin==="right-bottom"){const te=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;u.value=te-(K.offsetLeft+K.offsetWidth),d.value=le-(K.offsetTop+K.offsetHeight),y.x=u.value,y.y=d.value}else{const te=document.documentElement.clientWidth||document.body.clientWidth;u.value=te-(K.offsetLeft+K.offsetWidth),i.value=K.offsetTop,y.x=u.value,y.y=i.value}},S=>{if(!$.value)return;const K=$.value;C(),e.origin==="left-top"?(s.value=y.x+S.x,i.value=y.y+S.y,K.style.left=Ie(s.value),K.style.top=Ie(i.value)):e.origin==="left-bottom"?(s.value=y.x+S.x,d.value=y.y-S.y,K.style.left=Ie(s.value),K.style.bottom=Ie(d.value)):e.origin==="right-bottom"?(u.value=y.x-S.x,d.value=y.y-S.y,K.style.right=Ie(u.value),K.style.bottom=Ie(d.value)):(u.value=y.x-S.x,i.value=y.y+S.y,K.style.right=Ie(u.value),K.style.top=Ie(i.value))}),F={x:0,y:0},Z=Eo(S=>{P.value&&(F.x=P.value.offsetLeft,F.y=P.value.offsetTop)},S=>{if(!P.value)return;const K=F.y+S.y;Y.value=`${K}px`}),ee=()=>{if($.value){const S=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");L.value=S}};return l.onMounted(()=>{if(e.draggable&&$.value){const S=[];B.value&&S.push(B.value),e.footerDraggable&&(ee(),L.value&&S.push(L.value)),j.open(S)}e.collapse===!0&&O(e.collapse,!1),P.value&&Z.open(P.value)}),l.onBeforeUnmount(()=>{e.draggable&&B.value&&j.close(),P.value&&Z.close()}),{classes:f,styles:c,isShow:a,closeIcon:x,onClose:M,dialogRef:$,headerRef:B,onClickToggle:N,collapseIcon:E,collapseText:m,collapseTextClasses:T,collapseIconClasses:b,expandIcon:h,expandText:g,isShowFixedNav:Q,fixedNavRef:P,fixedNavClasses:H,fixedNavStyles:G,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:V}}}),ch={ref:"headerRef",class:"fox-floating-window__header"},fh={class:"fox-floating-window__title"},dh={class:"fox-floating-window__tools"},hh={class:"fox-floating-window__body"},mh={class:"fox-floating-window__fixednav__text"};function gh(e,t,o,n,r,a){const s=l.resolveComponent("FoxIcon"),i=l.resolveComponent("FocusTrap");return l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(),l.createBlock(l.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[l.createVNode(l.Transition,{name:"fox-floating-window-fade"},{default:l.withCtx(()=>[l.withDirectives(l.createElementVNode("div",{ref:"dialogRef",class:l.normalizeClass(e.classes),style:l.normalizeStyle(e.styles),tabindex:"-1"},[l.createVNode(i,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:l.withCtx(()=>[l.createElementVNode("div",ch,[l.renderSlot(e.$slots,"header",{},()=>[l.createElementVNode("span",fh,l.toDisplayString(e.title),1),l.createElementVNode("div",dh,[e.showCollapse?(l.openBlock(),l.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createElementVNode("span",{class:l.normalizeClass(e.collapseTextClasses)},l.toDisplayString(e.collapseText),3),l.createVNode(s,{class:l.normalizeClass(e.collapseIconClasses)},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):l.createCommentVNode("",!0),e.showClose?(l.openBlock(),l.createBlock(s,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])],512),l.createElementVNode("div",hh,[l.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[l.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(l.openBlock(),l.createBlock(l.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[l.withDirectives(l.createElementVNode("div",{ref:"fixedNavRef",class:l.normalizeClass(e.fixedNavClasses),style:l.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[l.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...u)=>e.onClickToggle&&e.onClickToggle(...u))},[l.createVNode(s,{class:"fox-floating-window__fixednav__icon"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.expandIcon)))]),_:1}),l.createElementVNode("div",mh,l.toDisplayString(e.expandText),1)])],38),[[l.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=Me(uh,[["render",gh]]);function ph(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:n}){return ar(o.name,()=>o.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Jh,create:vh,scope:Qh}=ie("domain-provider"),Ll=vh(ph()),yh={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 bh(e,t){return{inheritAttrs:!1,props:yh,setup(o,{slots:n}){if(it&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const s=(x,E)=>{if(f===null){a.set(x,{visible:null,callback:E});return}r.has(x)&&f.unobserve(x),r.set(x,{visible:null,callback:E}),f.observe(x)},i=x=>{if(f===null){a.delete(x);return}r.has(x)&&(r.delete(x),f.unobserve(x))};let u=o.initialVisibleObserverSize;ei({acquire:()=>{const x=u>0;return u--,x},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const c=(x,E,m)=>{f=new IntersectionObserver(h=>{for(let g of h){let T=!1;g.intersectionRatio>0&&(T=!0);const b=r.get(g.target);if(b)try{if(o.loadPolicy==="lazy"&&!T&&b.visible!==null)return;b.visible=T,b.callback(T)}catch($){console.error($)}}},{root:x,rootMargin:E,threshold:m}),a.forEach((h,g)=>{r.set(g,h),f?.observe(g)}),a.clear()};l.watch([()=>o.root,()=>o.disabled],([x,E])=>{if(E||!x||f)return;let m=null;typeof x=="string"?m=document.querySelector(x):m=x,m&&c(m,o.rootMargin,o.threshold)},{immediate:!0}),l.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:em,create:xh,scope:tm}=ie("rolling-provider"),Ml=xh(bh()),wh=[Kn,Yn,Gn,Un,Xn,we,Zn,Jn,Pt,Qn,el,tl,nl,ll,ol,rl,al,il,sl,ul,sn,cl,fl,dl,hl,ml,gl,pl,yl,bl,xl,wl,Sl,un,Tl,$l,Cl,El,Il,It,an,Ol,Vl,Pl,Fl,Al,Ll,Ml],Sh=new Va(wh,[Da],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>p.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>p.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>p.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>p.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>p.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>p.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>p.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>p.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>p.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>p.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>p.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>p.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>p.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>p.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>p.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>p.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>p.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>p.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>p.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>p.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>p.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>p.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>p.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>p.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>p.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>p.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>p.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>p.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>p.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>p.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>p.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>p.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>p.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>p.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>p.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>p.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>p.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>p.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>p.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>p.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>p.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>p.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>p.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>p.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>p.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>p.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>p.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>p.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>p.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>p.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>p.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>p.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>p.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>p.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>p.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>p.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>p.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>p.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>p.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>p.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>p.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>p.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>p.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>p.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>p.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>p.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>p.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>p.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>p.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>p.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>p.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>p.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>p.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>p.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>p.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>p.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>p.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>p.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>p.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>p.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>p.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>p.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>p.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>p.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>p.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>p.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>p.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>p.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>p.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>p.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>p.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>p.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>p.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>p.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>p.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>p.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>p.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>p.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>p.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>p.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>p.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>p.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>p.ElWatermark});exports.AutocompleteItem=il;exports.Broadcast=zn;exports.BroadcastKey=pe;exports.CascaderItem=al;exports.CheckboxItem=dl;exports.Content=Un;exports.DataItemsKey=ut;exports.DateItem=tl;exports.DateUtils=Re;exports.DialogItem=Sl;exports.Domain=Zt;exports.DomainKey=De;exports.DomainProvider=Ll;exports.FloatingWindow=Al;exports.FooterBar=Gn;exports.FoxAutocompleteItem=il;exports.FoxCascaderItem=al;exports.FoxCheckboxItem=dl;exports.FoxContent=Un;exports.FoxDateItem=tl;exports.FoxDialogItem=Sl;exports.FoxDomainProvider=Ll;exports.FoxFloatingWindow=Al;exports.FoxFooterBar=Gn;exports.FoxGroup=Xn;exports.FoxGroupSetting=pl;exports.FoxHeaderBar=Yn;exports.FoxHintText=Pt;exports.FoxIndicator=Ol;exports.FoxInfiniteLoading=El;exports.FoxInputItem=Qn;exports.FoxInputNumberItem=rl;exports.FoxItem=we;exports.FoxMapping=It;exports.FoxMoneyItem=ol;exports.FoxMoreButton=Pl;exports.FoxOverLay=un;exports.FoxPage=Kn;exports.FoxPopup=Tl;exports.FoxPrice=an;exports.FoxPullRefresh=Il;exports.FoxRadioItem=fl;exports.FoxRateItem=hl;exports.FoxRollingProvider=Ml;exports.FoxRowItem=Jn;exports.FoxSearchBar=Cl;exports.FoxSelectItem=el;exports.FoxSlotItem=Zn;exports.FoxStepsBar=wl;exports.FoxSwitchItem=ml;exports.FoxTableItem=cl;exports.FoxTableMappingColumn=sl;exports.FoxTableRadioColumn=ul;exports.FoxTableSetting=sn;exports.FoxTabsBar=yl;exports.FoxTabsContainer=bl;exports.FoxTabsPane=xl;exports.FoxText=Vl;exports.FoxTimeItem=nl;exports.FoxTimeSelectItem=ll;exports.FoxToast=$l;exports.FoxTour=Fl;exports.FoxTreeSelectItem=gl;exports.Group=Xn;exports.GroupSetting=pl;exports.HeaderBar=Yn;exports.HintText=Pt;exports.Indicator=Ol;exports.InfiniteLoading=El;exports.InputItem=Qn;exports.InputNumberItem=rl;exports.Item=we;exports.Mapping=It;exports.MoneyItem=ol;exports.MoreButton=Pl;exports.OverLay=un;exports.Page=Kn;exports.Popup=Tl;exports.Price=an;exports.PriorityPolicy=Ae;exports.PullRefresh=Il;exports.RadioItem=fl;exports.RateItem=hl;exports.RollingProvider=Ml;exports.RowItem=Jn;exports.SearchBar=Cl;exports.SelectItem=el;exports.SlotItem=Zn;exports.StepsBar=wl;exports.SwitchItem=ml;exports.TableItem=cl;exports.TableMappingColumn=sl;exports.TableRadioColumn=ul;exports.TableSetting=sn;exports.TabsBar=yl;exports.TabsContainer=bl;exports.TabsPane=xl;exports.Text=Vl;exports.TimeItem=nl;exports.TimeSelectItem=ll;exports.Toast=$l;exports.Tour=Fl;exports.TreeSelectItem=gl;exports.UniqueID=xr;exports.ValidateSchema=lr;exports.ValidateSchemaKey=_e;exports.cancelRaf=Ur;exports.clearNonNumber=ia;exports.clone=Fn;exports.compareTo=On;exports.createBroadcast=Gt;exports.createValidateSchema=Ut;exports.debounce=Ct;exports.debounceRef=xa;exports.decimalLength=Zo;exports.default=Sh;exports.defineBroadcast=fa;exports.defineConfigDomain=ar;exports.defineDataItem=sr;exports.defineDomain=Hn;exports.defineItem=Se;exports.definePageState=cr;exports.defineSimpleItem=ur;exports.deleteGlobalValidator=pa;exports.disabledProperty=Fe;exports.divide=_n;exports.excludeProps=Ne;exports.extend=at;exports.floatData=ca;exports.getGlobalValidateCheckEvents=er;exports.getGlobalValidateResetEvents=nr;exports.getPageContentAreaHeight=qt;exports.getPageContentAreaWidth=jt;exports.getPageFooterAreaHeight=Nt;exports.getPageHeaderAreaHeight=Et;exports.getRootDomain=ft;exports.hasSymbol=Ho;exports.includeProps=Jo;exports.indexOf=sa;exports.installRules=ir;exports.integerLength=Xo;exports.isArray=Zr;exports.isArrayLike=Wo;exports.isBrowser=it;exports.isDate=ea;exports.isESModule=na;exports.isEmptyString=me;exports.isEqual=We;exports.isFunction=Vn;exports.isHidden=Yt;exports.isInnerPage=Ta;exports.isMap=Jr;exports.isNil=jn;exports.isNumberString=Uo;exports.isObject=Ye;exports.isPlainObject=Pn;exports.isPromise=jo;exports.isRegExp=Go;exports.isSet=Qr;exports.isString=qo;exports.isSubPage=$a;exports.isSymbol=ta;exports.isTouch=Nl;exports.isWindow=Ko;exports.lastIndexOf=ua;exports.makeArray=aa;exports.merge=Yo;exports.multiply=Mo;exports.negate=Bo;exports.nextTick=oa;exports.numberFormat=Kt;exports.objectToString=zo;exports.once=wa;exports.overrideGlobalValidateHandler=ma;exports.property=Ve;exports.raf=qn;exports.readonlyProperty=Pe;exports.setGlobalValidateCheckEvents=va;exports.setGlobalValidateHandler=ha;exports.setGlobalValidateMessages=ba;exports.setGlobalValidateResetEvents=ya;exports.setGlobalValidator=ga;exports.throttle=rr;exports.toBoolean=se;exports.toNumber=be;exports.toPadding=je;exports.toPx=de;exports.toPxDesc=Ce;exports.toTypeString=Wt;exports.toValue=he;exports.tryTimes=Xt;exports.typeOf=Bt;exports.unNumberFormat=_o;exports.updatePageState=Dn;exports.useBroadcast=St;exports.useDomain=Ge;exports.useExpose=Te;exports.useInnerSize=Wn;exports.usePageState=Jt;exports.usePosition=yr;exports.useRawTouch=kl;exports.useRect=Hr;exports.useSize=Qt;exports.useTouch=ud;exports.valueLength=Vt;
|