@fox-js/foxui-pc 4.1.1-5 → 4.1.1-6

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-desktop v4.0.0 Sat Oct 19 2024 16:37:59 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),lt=require("@fox-js/validator"),y=require("element-plus"),Ee=require("@element-plus/icons-vue"),Le=require("@fox-js/i18n"),Dt=window,Yr=typeof window<"u";function Gr(){return typeof Dt<"u"?Dt.requestAnimationFrame||Dt.webkitRequestAnimationFrame||function(e){Dt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ur(e){Yr?cancelAnimationFrame(e):clearTimeout(e)}const Ao=Gr();/*!
2
+ * @fox-js/foxui-desktop v4.0.0 Thu Nov 07 2024 20:41:26 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),lt=require("@fox-js/validator"),b=require("element-plus"),Ne=require("@element-plus/icons-vue"),Me=require("@fox-js/i18n"),Dt=window,Gr=typeof window<"u";function Ur(){return typeof Dt<"u"?Dt.requestAnimationFrame||Dt.webkitRequestAnimationFrame||function(e){Dt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Xr(e){Gr?cancelAnimationFrame(e):clearTimeout(e)}const Mo=Ur();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function Bt(e,t="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,l=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=Bn($e(e),$e(t)),o==1&&(l==1?e=mn(e):t=mn(t));let r=Lo(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(mn(r)):$e(r)}function mn(e){let t="",o=e.length,l=e.split(".")[1],r=l?l.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=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("."),l=t.split("."),r=o[0].length,a=l[0].length;return r>a?l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=l[1]?l[1].length:0,(r||a)&&(r>a?l[1]=(l[1]?l[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=l[0]+(l[1]?"."+l[1]:""),[e,t]}function Lo(e,t){[e,t]=Bn(e,t);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+l;o=a%10+o,l=Math.floor(a/10)}return l?l.toString()+o:o}var ve=(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))(ve||{});function $t(e,t=0,o=ve.HALF_EVEN){if(o===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let s=a.substr(0,a.length-t);return e=s+"."+a.substr(a.length-t)+i,s=$t(e,0,o),(l?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,Bl(r[1],a,l,o)?(l?"-":"")+gn(a):(l?"-":"")+a;if(r[1]){if(r[1].length<t)return(l?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(l?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let u=r[1].substring(t);return u&&Bl(u,i,l,o)&&(i=gn(i),i.length>t)?(l?"-":"")+gn(a,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+a+"."+i}function Bl(e,t,o,l){if(!e||e===new Array(e.length+1).join("0")||l===ve.DOWN||!o&&l===ve.FLOOR||o&&l===ve.CEILING)return!1;if(l===ve.UP||o&&l===ve.FLOOR||!o&&l===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function gn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,l+=a}return t&&(l+=t),l.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 l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=l+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let m=e;e=t,t=m}if(t=="0")return"0";let i=t.length,u=0,s=[],c=i-1,d="";for(let m=0;m<i;m++)s[m]=e.length-1;for(let m=0;m<2*e.length;m++){let v=0;for(let b=t.length-1;b>=c&&b>=0;b--)s[b]>-1&&s[b]<e.length&&(v+=parseInt(e[s[b]--])*parseInt(t[b]));v+=u,u=Math.floor(v/10),d=v%10+d,c--}return d=yt(Xr(d,a)),o==1&&(d="-"+d),d}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 l=0;t[0]=="-"&&(t=t.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=$e(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=$e(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=$e(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=$e(e.replace(".","")))}let a=0,i=t.length,u="",s=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),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(t);)s=Bt(s,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(l==1?"-":"")+$e($t(u,o-2))}function kn(e,t){return e=e.toString(),t=t.toString(),t=In(t),Bt(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 l=kn(e,En(t,$t(Nn(e,t),0,ve.FLOOR)));return o+l}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 l=0;l<e.length;l++)if(e[l]!=t[l])return e[l]>t[l]?o?-1:1:o?1:-1;return 0}class fe{value;static RoundingModes=ve;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,l]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?t=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?t=r+$e(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):t=r+"0."+new Array(-l+1).join("0")+o}return t}constructor(t="0"){this.value=fe.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=fe.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=t.substring(u,u+o)+(u<a-o&&u>=0?l:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return fe.getPrettyValue(this.value,t,o)}static round(t,o=0,l=ve.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return $t(t,o,l)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe($t(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ve.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ve.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),Bt(t,o)}add(t){return new fe(Bt(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),kn(t,o)}subtract(t){return new fe(kn(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),En(t,o)}multiply(t){return new fe(En(this.value,t.getValue()))}static divide(t,o,l){return t=fe.validate(t),o=fe.validate(o),Nn(t,o,l)}divide(t,o){return new fe(Nn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),_l(t,o)}modulus(t){return new fe(_l(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),jl(t,o)}compareTo(t){return jl(this.value,t.getValue())}static negate(t){return t=fe.validate(t),In(t)}negate(){return new fe(In(this.value))}}function Mo(e,t){return fe.multiply(`${e}`,`${t}`)}function _n(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function On(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function Bo(e){return fe.negate(e)}function Wt(e,t=-1,o=!1,l=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),t!=-1&&(t<s.length?s=s.substring(0,t):o&&t>s.length&&(s=s.padEnd(t,"0")));let d;if(l>0){let m="",v=u.split("").reverse();for(let b=0;b<v.length;b++)m+=v[b]+((b+1)%l==0&&b+1!=v.length?r:"");s.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function _o(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let l=t.replace(/[^\d\.-]/g,"");return`${o}${l}`}const qn=Ao,Zr=Array.isArray,Qr=e=>Yt(e)==="[object Map]",Jr=e=>Yt(e)==="[object Set]",ea=e=>e instanceof Date,Pn=e=>typeof e=="function",qo=e=>typeof e=="string",ta=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",jo=e=>Ge(e)&&Pn(e.then)&&Pn(e.catch),zo=Object.prototype.toString,Yt=e=>zo.call(e),Vn=e=>Yt(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,l=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=t[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},t[i]=at(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function Dn(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],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Vn(i))continue;a=Dn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const l=Object.getOwnPropertySymbols(t);for(let r of l){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Vn(i))continue;a=Dn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const pn=la?Promise.resolve():null;function oa(e,...t){pn!==null?t&&t.length>0?pn.then(()=>{e(t)}):pn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function xe(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 _t(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 Gt(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=_t(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,l=0,r=e.length;for(;l<o;l++)e[r++]=t[l];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 Ye(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=_t(e),l=_t(t);if(o!==l)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=t[u];if(!Ye(s,c))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],i=t[r];if(!Ye(a,i))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 pe=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Uo(e){return pe(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),pe(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 l=e.indexOf(t);return l===-1?e:t==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).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 l=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function sa(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ye(e,o))return!0}):t.indexOf(e)}function ua(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(l=>{if(Ye(e,l))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Pt(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Qo(e,...t){const o={};return t.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ne(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}const ca=(e,t,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(l).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(l[a]=t[r[a]]):t[a]&&(l[a]=t[a])}),l):e},ye=Symbol.for("BroadcastKey");class zn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,l){this.parent=t,this.proxy=o,this.name=l,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(l=>t===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...l){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 i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&a.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(t,o,...l){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Ut(e,t,o,l){const r=new zn(t,e,o);if(l&&typeof l=="object")for(const a in l)r.on(a,l[a]);return r}function fa(e,t,o){const l=o;if(l[ye])return l[ye];const r=n.inject(ye,null),a=new zn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return l[ye]=a,n.provide(ye,a),n.onUnmounted(()=>{a.destroy(),l[ye]=void 0}),a}function St(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[ye]??n.inject(ye,null):n.inject(ye,null)}const ot=e=>e.default??e;class da{error(t,o){const l=o,r=o||n.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof l.setErrorTip=="function"&&l.setErrorTip(t)}reset(t){const o=t,l=t||n.hasInjectionContext()?St(t):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,l=t||n.hasInjectionContext()?St(t):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,l){Array.isArray(t)||(t=[t]);const r=l,a=l||n.hasInjectionContext()?St(l):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(l))}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 Jo=["blur","clear"];function va(e){Jo=e}function er(){return Jo}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(l=>{const r=t.findIndex(a=>a.type===l.type);r!==-1&&t.splice(r,1),t.push(l)})}),t}function Ft(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,l){this.parent=t,this.descriptor=o,this.proxy=l,(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=n.effectScope(!0),this.scope.run(()=>{n.watchEffect(()=>{const o=Ft(bt(this.attrRules,this.rules)),l=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};l.push(s)}}this.attrRules=Ft(l);const r=bt(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[t]=="function")return Reflect.apply(l[t],l,[...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,l=!1){l?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 l=Reflect.has(this.validators,t);return!l&&this.parent!==null&&(l=this.parent.hasValidator(t,!1)),l}}setRule(t){const o=bt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ft(t):this.rules=Ft([t]);const l=bt(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(l,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 l=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${l}`]:o},a=this.getValue(),i={[`${l}`]:a},u=ot(lt),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(m=>{if(m.pass)this.success();else{let v="error";Array.isArray(m.errors)&&m.errors.length>0&&(v=m.errors[0].message??v,m.errors=[m.errors[0]],m.errors[0].ref=c),this.error(v)}return m}).catch(m=>{const v=m.message??`${m}`;return this.error(v),m})}}return Promise.resolve({pass:!0})}}function Xt(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 qt=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 l=this.register.get(t);if(l&&Array.isArray(l)){let r=l.findIndex(a=>a===o);r!==-1&&l.splice(r,1)}}on(t,o){let l=this.register.get(t);l||(l=new Array,this.register.set(t,l)),l.push(o)}emit(t,...o){const l=this.register.get(t);l&&l.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(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},t)}}function rr(e,t){let o=0;return function(...l){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...l]))}}function xa(e,t){const o=Ct((l,r)=>{e=l,r()},t);return n.customRef((l,r)=>({get(){return l(),e},set(a){o(a,r)}}))}function wa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Zt(e,t,o,l=0,r=!0,a){let i=t,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Fe=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Qt{_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=n.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const l in t){const r=t[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=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 l=this._props[t];if(l!=null)return l}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 l=this;for(;l!=null;){if(Reflect.has(l._props,t)){const r=l._props[t];o.push(r)}l=l._parent}return o}}const Sa=new Qt;function ft(){return Sa}function Ue(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[Fe]??n.inject(Fe,null):n.inject(Fe,null)}const vn=Symbol("OriginalDateKey");function Hn(e,t,o=[],l){const r=n.getCurrentInstance();let a=r?.proxy,i=n.inject(Fe,null);i===null&&(i=ft());const u=e||t.prop||t.name;let s=new Qt(u);s.parent=i;const c=f=>{a[vn]||v(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[vn]??null,v=f=>{const h={};at(!0,h,n.toRaw(f)),a[vn]=h};n.isReactive(t)||typeof t=="function"?n.watch(t,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(t,o),t.modelValue&&v(t.modelValue);const b=(f,h)=>{s?.set(f,h)},g=f=>s?.getForSelf(f)??null;if(a[Fe]=s,n.provide(Fe,s),r!==null){const f=n.inject(ye,null),h=Ut(a,f,u,l);s.broadcast=h,a[ye]=h,n.provide(ye,h),a.broadcast=($,B,...q)=>Reflect.apply(h.emit,h,[$,B,...q]);const P=n.inject(_e,null),k=Xt(a,P,{componentName:""});s.validateSchema=k,a[_e]=k,n.provide(_e,k),a[ut]=new Map,a.validate=($=!0)=>{const B=[];let q=null;const L={deep:!1};if($===!0)q={name:"*"};else if(Array.isArray($)&&$.length>0){const M=$;q={name:R=>R?M.indexOf(R)!==-1:!1}}else if($!=null&&typeof $=="object"){const M=$;if(Object.assign(L,M),Array.isArray(M.include)&&M.include.length>0){const R=M.include;q={name:w=>w?R.indexOf(w)!==-1:!1}}else if(Array.isArray(M.exclude)&&M.exclude.length>0){const R=M.exclude;q={name:w=>w?R.indexOf(w)===-1:!1}}else q={name:"*"}}if(q){const M=h?.emitToChildren(q,"validate",L);M&&Reflect.apply([].push,B,M)}return B.length==1?B[0]:B.length>1?Promise.all(B).then(M=>{let R=[];return M.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(R=[...R,...w.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=($,B=!0,q=!1)=>{if(q===!0){Reflect.ownKeys($).forEach(M=>{let R=String(M);const w={componentName:"",fieldName:R,pureDataValidate:!0};if(s){const C=sr(s,R,w,h,k);a[ut].set(R,C);const p=$[R];p&&C.validateSchema.setRule(p)}});return}if(B){const L=Reflect.ownKeys($),M={name:R=>L.includes(R)};h?.emitToChildren(M,"setNameValidateRules",$,!1)}},a.clearValidate=($=!0)=>{let B=null;if($===!0)B={name:"*"};else if(Array.isArray($)&&$.length>0){const q=$;B={name:L=>L?q.indexOf(L)!==-1:!1}}else if($!=null&&typeof $=="object"){const q=$;if(Array.isArray(q.include)&&q.include.length>0){const L=q.include;B={name:M=>M?L.indexOf(M)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const L=q.exclude;B={name:M=>M?L.indexOf(M)===-1:!1}}else B={name:"*"}}B&&h?.emitToChildren(B,"clearValidate",!1)},a.resetFields=$=>{const B=d();if(!B)return;const q={};if(at(!0,q,m()??{}),Array.isArray($))$.forEach(L=>{B[L]=q[L]});else if($&&Array.isArray($.include))($.include??[]).forEach(M=>{B[M]=q[M]});else if($&&Array.isArray($.exclude)){let L=$.exclude??[];Reflect.ownKeys(q).forEach(M=>{L.includes(M)||(B[M]=q[M])})}else Object.assign(B,q);a.clearValidate($)},a.setModelValue=($,B)=>{!B||B===u?c($):h?.emitToChildren({name:B},"setModelValue",$)},a.getModelValue=()=>d(),a.setDomainProperty=($,B)=>{b($,B)},a.getDomainProperty=$=>g($)}return n.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[_e]=void 0,n.provide(_e,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[ye]=void 0,n.provide(ye,null)),s?.destroy(),a[Fe]=void 0,n.provide(Fe,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,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function ar(e,t,o=[]){let r=n.getCurrentInstance()?.proxy,a=n.inject(Fe,null);a===null&&(a=ft());const i=e||t.prop||t.name;let u=new Qt(i);return u.parent=a,n.isReactive(t)||typeof t=="function"?n.watch(t,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(t,o),r[Fe]=u,n.provide(Fe,u),n.onUnmounted(()=>{u?.destroy(),r[Fe]=void 0,n.provide(Fe,null),u=null,r=null}),u}function ir(e,t,o){const r=Ue(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Te(e,t,o){const r=n.getCurrentInstance()?.proxy,a=t??"",i=n.inject(ye,null);let u=Ut(r,i,a,o);r[ye]=u,n.provide(ye,u),r.broadcast=(g,f,...h)=>u?Reflect.apply(u.emit,u,[g,f,...h]):null;const s=n.inject(_e,null);e.fieldName=e.fieldName??a;let c=Xt(r,s,e);r[_e]=c,n.provide(_e,c),ir(r,c,a),r.validate=(g=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,P=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)P=!0,h=!0;else if(g&&typeof g=="object"){const k=g,$=k.ignoreDisabled??!0,B=k.ignoreReadonly??!0,q=k.ignoreHidden??!0;$===!0&&e.disabled===!0||B===!0&&e.readonly===!0||q===!0&&Gt(r.$el)?P=!1:(Array.isArray(k.include)&&k.include.indexOf(a)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(a),P=!0),h=k.deep??!1}else typeof g=="boolean"&&(h=g),P=!0;if(P){const k=c?.validate();f.push(k)}if(h){let k=null;const $={deep:!1};if(g===!0)k={name:"*"};else if(Array.isArray(g)&&g.length>0){const B=g;k={name:q=>q?B.indexOf(q)!==-1:!1}}else if(g!=null&&typeof g=="object"){const B=g;if(Object.assign($,B),Array.isArray(B.include)&&B.include.length>0){const q=B.include;k={name:L=>L?q.indexOf(L)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const q=B.exclude;k={name:L=>L?q.indexOf(L)===-1:!1}}else k={name:"*"}}if(k&&u){const B=u.emitToChildren(k,"validate",$);Reflect.apply([].push,f,B)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(k=>{let $=[];return k.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&($=[...$,...B.errors])}),$.length>0?{pass:!1,errors:$}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>c?.setRule(g),r.setNameValidateRules=(g,f=!1)=>{const h=g[a];if(h&&c?.setRule(h),f&&u){const P={name:k=>Reflect.ownKeys(g).includes(k)};u.emitToChildren(P,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(g===!0)f={name:"*"};else if(Array.isArray(g)&&g.length>0){const h=g;f={name:P=>P?h.indexOf(P)!==-1:!1}}else if(g!=null&&typeof g=="object"){const h=g;if(Array.isArray(h.include)&&h.include.length>0){const P=h.include;f={name:k=>k?P.indexOf(k)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const P=h.exclude;f={name:k=>k?P.indexOf(k)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new or(r);r[qt]=d;const m=Ct((g="validate")=>{c&&(g==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:er()).forEach(g=>{d&&d.on(g,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:nr()).forEach(g=>{d&&d.on(g,f=>{m("reset")})}),n.onUnmounted(()=>{u?.destroy(),r[ye]=void 0,n.provide(ye,null),u=null,c?.destroy(),r[_e]=void 0,n.provide(_e,null),c=null,d?.destroy(),r[qt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(g,...f)=>{d&&Reflect.apply(d.emit,d,[g,...f])},onEvent:(g,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(g,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function sr(e,t,o,l,r){const a={},i=t??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=Xt({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let v=!1,b=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)b=!0,v=!0;else if(d&&typeof d=="object"){const g=d;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),b=!0,v=g.deep??!1}else typeof d=="boolean"&&(v=d),b=!0;if(b&&s){const g=s.validate();m.push(g)}if(v){let g=null;const f={deep:!1};if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;g={name:P=>P?h.indexOf(P)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const P=h.include;g={name:k=>k?P.indexOf(k)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const P=h.exclude;g={name:k=>k?P.indexOf(k)===-1:!1}}else g={name:"*"}}if(g&&c){const h=c.emitToChildren(g,"validate",f);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let f=[];return g.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&s?.setRule(m)};let c=Ut(null,l,i,a);return n.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function ur(){let t=n.getCurrentInstance()?.proxy,o=new or(t);return t[qt]=o,n.onUnmounted(()=>{o?.destroy(),t[qt]=void 0,o=null,t=null}),{emitEvent:(l,...r)=>{o&&Reflect.apply(o.emit,o,[l,...r])},onEvent:(l,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(l,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:`${he(e,t)}px`:"";function he(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:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const l=Number(e);return isNaN(l)?0:l}const et="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=he(e.top)),e.left!==null&&e.left!==void 0&&(t.left=he(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=he(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=he(e.right))),t}function Fn(e,t,o={},l=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=he(o.headerHeight??t.headerHeight??-1),e.headerPadding=je(o.headerPadding??t.headerPadding),e.footerHeight=he(o.footerHeight??t.footerHeight??-1),e.footerPadding=je(o.footerPadding??t.footerPadding),e.contentPadding=je(o.contentPadding??t.contentPadding),l){const s=o.height??t.height;s?e.height=he(s,a):e.height=he(a)-he(i,a)-he(u,a),e.width=he(o.width??t.width??0,r)}}function cr(e,t={}){const o={top:null,left:null,bottom:null,right:null},l={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&&(l.safeAreaTop=he(r.top),l.safeAreaBottom=he(r.bottom),l.safeAreaLeft=he(r.left),l.safeAreaRight=he(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;Fn(l,a,t,!0,i,u,s,c);const d=n.reactive(l),m=e.getForParent(et);m&&(l.height=jt(e,m),l.width=zt(e,m),n.watch([()=>jt(e,m),()=>zt(e,m)],([b,g])=>{d.height=b,d.width=g}));const v=!m;return n.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,g,f=-1,h=-1,P=0,k=0])=>{Fn(d,g,t,v,f,h,P,k)}),e.set(et,d),d}function Jt(e){return e.get(et)}function Et(e,t){if(t=t??e.get(et),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(et),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function jt(e,t){if(t=t??e.get(et),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Et(e,t),l=Nt(e,t);return t.height-o-l-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function zt(e,t){return t=t??e.get(et),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(et)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function Rt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Pe(e,t,o=1,l){const r=Ue();return r==null?e:o===0?n.computed(()=>{const a=r.getAll(t);for(let u=a.length-1;u>=0;u--){const s=a[u];if(Rt(s,l))return s}const i=e.value;return Rt(i,l)?i:null}):n.computed(()=>{const a=e.value;if(Rt(a,l))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(Rt(s,l))return s}return null})}function Ve(e){return Pe(e,"readonly",1)}function De(e){return Pe(e,"disabled",1)}function de(e,t="modelValue",o=null,l){const r=n.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=n.ref(a);return n.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const fr=new Map,Ht=new Map;let Rn=null;function Ca(e){Rn=e}function dr(e,t,o){if(o){let l=Ht.get(o);l||(l=new Map,Ht.set(o,l)),l.set(e,t)}else fr.set(e,t)}function qe(e,t,o){!o&&Rn&&(o=Rn(e)??void 0);let l=null;if(o){let r=Ht.get(o);r&&(l=r.get(t))}return l||(l=fr.get(t)),l}function Ea(e,t){for(let o in e){const l=e[o];dr(o,l,t)}}function Na(e){Ht.delete(e)}function ka(){return{top:0,left:0,bottom:0,right:0}}function Ia(){if(it){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:t,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}function Oa(e,t){if(t.componentPrefix){const o=e.indexOf("-");return`${t.componentPrefix}${e.slice(o)}`}return e}class Pa{packages;installers;_version;get version(){return this._version}constructor(t,o,l){this.packages=t,this.installers=o,this._version=l}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Oa(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ft();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=rr(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)l.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const l=t.headerBarHeight??0,r=t.footerBarHeight??0,a=at({},ka(),t.safeAreaInset),i=Ia(),u=at({},i.pageLayout,t.pageLayout);o=o??ft(),o.set("safeAreaInset",a),o.set("headerBarHeight",l),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Ca(t)}setAPI(t,o,l){dr(t,o,l)}getAPI(t,o,l){return qe(t,o,l)}batchSetAPI(t,o){Ea(t,o)}clearScopeAPI(t){Na(t)}getRootDomain(){return ft()}}const Va=[y.ElAffix,y.ElAlert,y.ElAutocomplete,y.ElAutoResizer,y.ElAvatar,y.ElBacktop,y.ElBadge,y.ElBreadcrumb,y.ElBreadcrumbItem,y.ElButton,y.ElButtonGroup,y.ElCalendar,y.ElCard,y.ElCarousel,y.ElCarouselItem,y.ElCascader,y.ElCascaderPanel,y.ElCheckTag,y.ElCheckbox,y.ElCheckboxButton,y.ElCheckboxGroup,y.ElCol,y.ElCollapse,y.ElCollapseItem,y.ElCollapseTransition,y.ElColorPicker,y.ElConfigProvider,y.ElContainer,y.ElAside,y.ElFooter,y.ElHeader,y.ElMain,y.ElDatePicker,y.ElDescriptions,y.ElDescriptionsItem,y.ElDialog,y.ElDivider,y.ElDrawer,y.ElDropdown,y.ElDropdownItem,y.ElDropdownMenu,y.ElEmpty,y.ElForm,y.ElFormItem,y.ElIcon,y.ElImage,y.ElImageViewer,y.ElInput,y.ElInputNumber,y.ElLink,y.ElMenu,y.ElSubMenu,y.ElMenuItem,y.ElMenuItemGroup,y.ElPageHeader,y.ElPagination,y.ElPopconfirm,y.ElPopover,y.ElPopper,y.ElProgress,y.ElRadio,y.ElRadioButton,y.ElRadioGroup,y.ElRate,y.ElResult,y.ElRow,y.ElScrollbar,y.ElSelect,y.ElOption,y.ElOptionGroup,y.ElSelectV2,y.ElSkeleton,y.ElSkeletonItem,y.ElSlider,y.ElSpace,y.ElSteps,y.ElStep,y.ElSwitch,y.ElTable,y.ElTableColumn,y.ElTableV2,y.ElTabs,y.ElTabPane,y.ElTag,y.ElTimePicker,y.ElTimeSelect,y.ElTimeline,y.ElTimelineItem,y.ElTooltip,y.ElTransfer,y.ElTree,y.ElTreeSelect,y.ElTreeV2,y.ElUpload,y.ElStatistic,y.ElCountdown,y.ElSegmented,y.ElAnchor,y.ElAnchorLink,y.ElWatermark,y.ElMessageBox,y.ElMessage,y.ElNotification],Da=[y.ElInfiniteScroll,y.ElLoading,y.ElMessage,y.ElMessageBox,y.ElNotification,y.ElPopoverDirective],Fa=(e,t={})=>{const o=t.componentPrefix??"fox",l=o[0].toUpperCase()+o.slice(1);Va.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${l}${a.slice(2)}`,e.component(a,r)):e.use(r)}),Da.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=l=>{l.component(o.name,o)},n.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,n.defineComponent(o)}}}function be(e,t=null){if(t||(t=n.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},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},prop:{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:{...we,...hr,...Aa},setup(o,{slots:l}){const r=Hn(o.name,o),a=n.inject(Ra,!1);if(r){const d=cr(r,o);be({getPageContentHeight:()=>jt(r,d),getPageContentWidth:()=>zt(r,d),getPageHeaderHeight:()=>Et(r,d),getPageFooterHeight:()=>Nt(r,d)}),d&&a&&(d.contentHeight="100%")}const i=n.computed(()=>({[e]:!0})),u=n.computed(()=>({})),s=n.getCurrentInstance(),c=(d,m=!1)=>{const v=s?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(d,!0,m)};return n.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[v,b])=>{if(d&&v){const g=n.toRaw(v),f=n.toRaw(d),h=f?Reflect.ownKeys(f):[];(g?Reflect.ownKeys(g):[]).forEach(k=>{h.includes(k)||(f[k]=[])}),c(f)}if(m&&b){const g=n.toRaw(b),f=n.toRaw(m),h=f?Reflect.ownKeys(f):[];(g?Reflect.ownKeys(g):[]).forEach(k=>{h.includes(k)||(f[k]=[])}),c(f,!0)}},{deep:!0}),n.onMounted(()=>{if(o.rules){const d=n.toRaw(o.rules);c(d)}if(o.pureDataRules){const d=n.toRaw(o.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return n.h("div",d,[l?.default?.()])}}}),{componentName:Ma,create:Ba,scope:xh}=ie("page"),Kn=Ba(La(Ma));function en(e){const t=n.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Wn(e){const t=n.unref(e),o=window.getComputedStyle(t,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-l-r,height:t.clientHeight-a-i}}const _a=(e,t,o,l=!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 i=Ue(),u=i?Jt(i):null;u&&(u.headerMounted=!0);const s=e,c=n.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=n.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?he(r.height):null,v=n.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const p=je(r.padding??u.headerPadding);return Object.assign(C,p),m&&(u.headerHeight=m),u.headerHeight>0&&(C.height=u.headerHeight),C.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(p.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(m&&(C.height=m),r.padding){const p=je(r.padding);Object.assign(C,p)}return C}),b=n.ref(null),g=()=>{if(u&&b.value&&!Gt(b.value)){if(!l){const C=en(b.value);u.headerAllHeight=C.height}return u.headerMounted=!0,!0}return!1};let f=null;n.onMounted(()=>{u&&(Zt(g,50,5,50,!0),window.ResizeObserver&&b.value&&(f=new window.ResizeObserver(()=>{g()}),f.observe(b.value)))}),n.onUnmounted(()=>{u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const h=n.computed(()=>{const C={};return v.value.height!==null&&v.value.height!==void 0&&(C.height=`${v.value.height}px`),v.value.top!==null&&v.value.top!==void 0&&(C.paddingTop=`${v.value.top}px`),v.value.left!==null&&v.value.left!==void 0&&(C.paddingLeft=`${v.value.left}px`),v.value.right!==null&&v.value.right!==void 0&&(C.paddingRight=`${v.value.right}px`),v.value.bottom!==null&&v.value.bottom!==void 0&&(C.paddingBottom=`${v.value.bottom}px`),C}),P=n.computed(()=>!(v.value.height!==null&&v.value.height!==void 0&&v.value.height<=0));function k(){a.emit("back")}function $(){a.emit("click-title")}function B(){a.emit("click-right")}function q(){a.emit("click-right-text")}const L=()=>{if(!r.leftShow)return null;const C=[];if(a.slots.left)C.push(a.slots.left());else{if(a.slots.leftIcon){const p=n.h("view",{class:"left-icon",onClick:k},[a.slots.leftIcon()]);C.push(p)}else if(r.leftIcon){const p=n.h("view",{class:"left-icon",onClick:k},[n.h(r.leftIcon)]);C.push(p)}if(r.leftText){const p=n.h("view",{class:"left-text",onClick:k},[r.leftText]);C.push(p)}}return C.length===0?null:n.h("view",{class:"fox-header-bar__left"},C)},M=()=>{if(!r.rightShow)return null;const C=[];if(a.slots.right)C.push(a.slots.right());else{if(r.rightText){const p=n.h("view",{class:"right-text",onClick:q},[r.rightText]);C.push(p)}if(a.slots.rightIcon){const p=n.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);C.push(p)}else if(r.rightIcon){const p=n.h("view",{class:"right-icon",onClick:B},[n.h(r.rightIcon)]);C.push(p)}}return C.length===0?null:n.h("view",{class:"fox-header-bar__right"},C)},R=()=>{if(!r.titleShow)return null;const C=[],p=a.slots.default?a.slots.default():null;if(p)C.push(p);else{if(r.title){const _=n.h("view",{class:"title-text"},[r.title]);C.push(_)}if(a.slots.titleIcon){const _=n.h("view",{class:"title-icon",onClick:$},[a.slots.titleIcon()]);C.push(_)}else if(r.titleIcon){const _=n.h("view",{class:"title-icon",onClick:$},[n.h(r.titleIcon)]);C.push(_)}}return C.length===0?null:n.h("view",{class:"fox-header-bar__title"},C)},w=()=>{const C=[],p=a.slots.bottom?a.slots.bottom():null;return p&&C.push(p),C.length===0?null:n.h("view",{class:"fox-header-bar__bottom"},C)};return()=>{if(!P.value)return null;const C=[];if(a.slots.all)C.push(a.slots.all());else{const _=[],Z=L();Z&&_.push(Z);const F=R();F&&_.push(F);const T=M();if(T&&_.push(T),_.length>0){const A=n.h("view",{class:d.value},_);C.push(A)}const V=w();V&&C.push(V)}if(C.length===0)return null;const p={class:c.value,style:h.value,ref:b};return n.h("view",p,C)}}}),{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(l,r){const a=Ue(),i=a?Jt(a):null,u=n.computed(()=>{const g=e;return{[g]:!0,[`${g}--${l.align}`]:!0,[`${g}--border`]:l.border,[`${g}--fixed`]:l.fixed,[`${g}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?he(l.height):null,c=n.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const f=je(l.padding??i.footerPadding);return Object.assign(g,f),s&&(i.footerHeight=s),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(f.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(s&&(g.height=s),l.padding){const f=je(l.padding);Object.assign(g,f)}return g}),d=n.ref(null),m=()=>{if(i&&d.value&&!Gt(d.value)){if(!o){const g=en(d.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let v=null;n.onMounted(()=>{i&&(Zt(m,50,5,50,!0),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{m()}),v.observe(d.value)))}),n.onUnmounted(()=>{i&&(i.footerMounted=!1,v&&(v.disconnect(),v=null))});const b=n.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Ce(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Ce(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Ce(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Ce(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Ce(c.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],f={ref:d,class:u.value,style:b.value};return n.h("view",f,g)}}}}const{componentName:Ka,create:Wa,scope:wh}=ie("footer-bar"),Gn=Wa(Ha(Ka));function Ya(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ue(),r=n.computed(()=>({[e]:!0})),a=l?Jt(l):null,i=n.computed(()=>{const c={};if(l&&a){if(o.padding){const b=je(o.padding);Object.assign(a.contentPadding,b)}const d=Et(l,a),m=Nt(l,a);let v="";if(a.contentHeight?v=`${a.contentHeight}`:v=`${a.height}px`,a.contentPadding,c.height=v,a.contentPadding.top||d>0){const b=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${d+b}px`}if(a.contentPadding.bottom||m>0){const b=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${m+b}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const d=je(o.padding);d.left&&(c.paddingLeft=`${d.left}px`),d.top&&(c.paddingTop=`${d.top}px`),d.right&&(c.paddingRight=`${d.right}px`),d.bottom&&(c.paddingBottom=`${d.bottom}px`)}return c}),u=n.ref(null),s=()=>{if(a&&u.value){const c=Wn(u.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return n.onMounted(()=>{s()}),l&&a&&n.watch([()=>Et(l),()=>Nt(l)],([])=>{s()}),{contentRef:u,classes:r,styles:i}}}}const{componentName:Ga,create:Ua,scope:Sh}=ie("content"),Xa=Ua(Ya(Ga));function Za(e,t,o,l,r,a){return n.openBlock(),n.createElementBlock("div",{ref:"contentRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"default")],6)}const Me=(e,t)=>{const o=e.__vccOpts||e;for(const[l,r]of t)o[l]=r;return o},Un=Me(Xa,[["render",Za]]),mt="GroupStateKey",pr=Symbol.for("GroupScopeKey");function tn(){return n.inject(pr,!1)}function nn(e=!0){n.provide(pr,e)}function Qa(e,t={}){Reflect.ownKeys(t).forEach(l=>{if(typeof l!="string")return;const r=t[l];jn(r)||(e[l]=r)})}function Ja(e,t={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qa(l,t);const r=n.shallowRef(l),a=n.markRaw({layout:r,passport:0,order:{index:0}});return e.set(mt,a),a}function yn(e,t,o=-1,l=-1,r=!1,a,i,u){const s=e.get(mt);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),l===-1&&(l=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=he(a),m=he(i);u||(u=c.type??"grid");const v=()=>{const b=t===""||t===-1,g=he(t);let f=xe(o);const h=he(l);if(!b){let $=(g-(f-1)*h)/f;for(;m!==-1&&$>m;)f++,$=(g-(f-1)*h)/f;for(;d!==-1&&f>1&&$<d;)f--,$=(g-(f-1)*h)/f}let P=!1;const k=s.layout;k.value.width=t,k.value.column!==f&&(k.value.column=f,P=!0),k.value.gutter!==h&&(k.value.gutter=h,P=!0),k.value.type!==u&&(k.value.type=u,P=!0),P&&n.triggerRef(k)};if(r)v();else{const b=++s.passport;setTimeout(()=>{b===s.passport&&v()},50)}}function ln(e,t=!1){let o;return t?o=e.getForParent(mt):o=e.get(mt),o.layout}function on(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=xe(t);return o===-1?100:100*o/e}function rn(e,t,o=1,l=0,r){const a={};let i=0;r?i=he(r):i=Hl(t.column,o),i>0&&(a.width=`${i}%`);const u=Hl(t.column,l);u>0&&(a["margin-left"]=`${u}%`);const s=t.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function an(e,t,o=1,l=0){if(o==="stretch"){const s=e.index%t.column,c=s+(t.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=xe(o);if(r===-1){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}const a=xe(l)%t.column;let i=(e.index+a)%t.column,u=i+r;return u>t.column?(i=0,u=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const vr=Symbol("RollingStateKey");function ei(e){n.provide(vr,e)}function ti(){return n.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),l=e.offsetWidth;o.style=`width: ${l}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 l=(e-(t-1)*o)/t;return l>0?`${l}px`:"1fr"}const oi={...we,...hr,...mr};function ri(e,t,o){return{props:oi,emits:["update:collapse","header-click"],setup(l,r){const a=Hn(l.prop??l.name,l,gr),i=Ja(a,{type:l.type}),u=tn();nn(!0);const s=l.rollingDisplay?ti():null,c=n.ref(null),d=n.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),m=n.computed(()=>u&&a?ln(a,!0).value:null),v=n.getCurrentInstance(),b=(E,z=!1)=>{const U=v?.proxy;U&&typeof U.setNameValidateRules=="function"&&U.setNameValidateRules(E,!0,z)};n.watch([()=>l.rules,()=>l.pureDataRules],([E,z],[U,N])=>{if(E&&U){const H=n.toRaw(U),ee=n.toRaw(E),le=ee?Reflect.ownKeys(ee):[];(H?Reflect.ownKeys(H):[]).forEach(ae=>{le.includes(ae)||(ee[ae]=[])}),b(ee)}if(z&&N){const H=n.toRaw(N),ee=n.toRaw(z),le=ee?Reflect.ownKeys(ee):[];(H?Reflect.ownKeys(H):[]).forEach(ae=>{le.includes(ae)||(ee[ae]=[])}),b(ee,!0)}},{deep:!0});const g=e,f=n.computed(()=>{const E={};E.height=T.value;const z=u?on(a,!0):null;if(m.value&&z){if(m.value.type==="grid"){const U=an(z,m.value,l.span,l.offset);Object.assign(E,U)}else if(m.value.type==="flow"){const U=rn(z,m.value,l.span,l.offset,l.width);Object.assign(E,U)}}else if(l.width){const U=Ce(l.width);E.width=U}return E}),h=n.computed(()=>{const E=i.layout.value.type;return E==="grid"||E==="flow"?{[`${g}--${E}`]:!0,[`${g}--${E}-justify-${l.justify}`]:!0,[`${g}--${E}-align-${l.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${E}`]:!0,[`${g}--gutter`]:!0}}),P=n.computed(()=>{if(i.layout.value.type==="grid"){let z="";if(l.columnWidth)z=`repeat(auto-fill, ${l.columnWidth})`;else{const U=li(R.value,i.layout.value.column,i.layout.value.gutter);z=`repeat(${i.layout.value.column}, ${U})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":z}}}),k=n.toRef(l,"gutter"),$=n.toRef(l,"column"),B=n.computed(()=>u||d.value?!0:ue(l.isWrap)),q=[],L=E=>{q.push(E)},M=()=>{let E=q.length;q.splice(0,E)},R=n.ref(-1),w=E=>{const z=Wn(E).width;z>0&&z!==R.value&&(R.value=z)};yn(a,R.value,$.value,k.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&n.watch([R,$,k],([E,z,U])=>{i.order.index=0,yn(a,E,z,U,!1,l.minItemWidth,l.maxItemWidth,l.type)});const C=n.computed(()=>V.value?l.expandText??"":l.collapseText??""),p=n.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=n.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),Z=n.ref(),F=n.ref(),T=n.computed(()=>A.value||Ce(l.height)||""),V=n.ref(!1),A=n.ref(""),W=n.ref(!1);let X=-1;const J=(E,z=!0)=>{const U=Z.value;if(U&&V.value!==E){if(X=X===-1?ni(U):X,W.value=!0,z)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",E||(A.value="",W.value=!1)},E){let N=0;l.collapseHeight?N=l.collapseHeight:F.value&&F.value.classList.contains(`${e}__header`)&&(N=F.value.offsetHeight),A.value=`${X}px`,n.nextTick(()=>{A.value=`${N}px`})}else A.value=`${X}px`;else if(E){let N=0;l.collapseHeight?N=l.collapseHeight:F.value&&F.value.classList.contains(`${e}__header`)&&(N=F.value.offsetHeight),A.value=`${N}px`}else W.value=!1,A.value=`${X}px`;V.value=E,r.emit("update:collapse",E)}};n.watch(()=>l.collapse,E=>{J(E)});const ne=E=>{r.emit("header-click",E)},I=()=>{S()},S=E=>{E=E??!V.value,J(E)};be({toggleCollapse:S,doLayout:()=>{q[0]&&(w(q[0]),yn(a,R.value,$.value,k.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let O=null,x=!0;const j=E=>{if(l.rules){const z=n.toRaw(l.rules);b(z)}if(l.pureDataRules){const z=n.toRaw(l.pureDataRules);b(z,!0)}if(it&&(E&&J(ue(l.collapse),!1),l.autoLayout&&Array.isArray(q)&&q.length>0)){const z=q[0];w(z),window.ResizeObserver&&(O=new window.ResizeObserver(()=>{w(z)}),O.observe(z))}},G=()=>{O?.disconnect(),O=null},te=!d.value||s?.acquire();te&&(c.value=d.value?!0:null),n.onMounted(()=>{if(te&&(j(x),x=!1),d.value&&s){let E=null,z=s.initialHeight;s.observe(Z.value,U=>{if(U!==c.value)if(U)c.value=!0,V.value||(A.value=""),E=setTimeout(()=>{E=null,c.value!==!1&&(j(x),x=!1)},100);else{if(E!==null&&clearTimeout(E),c.value=!1,!V.value)if(x)A.value=s.initialHeight;else{let N=An(Z.value);N<=0?A.value=z:(A.value=`${N}px`,z=A.value)}x||G()}})}}),n.onUnmounted(()=>{O?.disconnect(),s&&s.unobserve(Z.value)});const Y=(E="right")=>{const z=[];if(C.value){const H={class:p.value},ee=n.h("span",H,[C.value]);z.push(ee)}const U={class:_.value},N=o(l.collapseIcon,U);return N&&z.push(N),z.length>0?n.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${E}`]:!0},onClick:I},z):null},K=(E,z,U,N)=>{const H={...h.value};return z===0&&(H[`${g}__first`]=!0),U>=N-1&&(H[`${g}__last`]=!0),n.h("div",{ref:L,key:`${z}`,class:H,style:P.value},E)};return()=>{if(d.value&&c.value!==!0){const H=l.tag||"div";return n.h(H,{ref:Z,prop:l.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:f.value},[])}i.order.index=0;const E=[];let z=0;if(r.slots.header){const H={key:`${z++}`,ref:F,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ne},ee=n.h("div",H,[r.slots.header()]);E.push(ee)}else{const H=[],ee=l.collapsePosition==="left";if(ee&&l.showCollapse){const le=Y("left");le&&H.push(le)}if(l.title||r.slots.title){if(l.showMark){const le={class:{[`${g}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const se=n.h("div",le);H.push(se)}if(r.slots.title){const le=n.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);H.push(le)}else if(l.title){const le=n.h("div",{class:{[`${g}__header-title`]:!0}},[l.title]);H.push(le)}}if(r.slots.toolbar&&H.push(r.slots.toolbar()),!ee&&l.showCollapse){const le=Y("right");le&&H.push(le)}if(H.length>0){const le={key:`${z++}`,ref:F,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ne},se=n.h("div",le,H);E.push(se)}}M();const U=r.slots.default?r.slots.default():[],N=i.layout.value.type;if(N==="grid"){const H=K(U,z++,0,U.length);E.push(H)}else if(N==="flow"){const H=K(U,z++,0,U.length);E.push(H)}else for(let H=0;H<U.length;H++){const ee=U[H],le=K([ee],z++,H,U.length);E.push(le)}if(B.value){const H=l.tag||"div";return n.h(H,{ref:Z,prop:l.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:f.value},[E])}else return E}}}}const{componentName:ai,create:ii,scope:si}=ie("group"),ui=(e,t)=>(e=e??Ee.ArrowUp,n.h(y.ElIcon,t,{default:()=>[n.h(e)]})),Xn=ii(ri(ai,si,ui));function ci(e){return e===window}const fi=/matrix\((.+)\)/,yr=e=>{const t=n.unref(e);if(!t)return{x:0,y:0};if(ci(t))return{x:0,y:0};let o=0,l=0,r=t;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=fi.exec(c);if(d){let v=d[1].split(/\s*,\s*/);v.length==6&&(u+=Number(v[4]),s+=Number(v[5]))}}r=r.parentNode}return o-=a,l-=i,o+=u,l+=s,{x:o,y:l}};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 l=t.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a||(a=new di,l.addEventListener("scroll",a.listen),l===document.body&&l.addEventListener("resize",a.listen),this.monitorRegister.set(l,a)),a.add(o),l=l.parentNode}}unwatch(t,o){let l=t.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",a.listen),l===document.body&&l.removeEventListener("resize",a.listen))),l=l.parentNode}}}const Kl=new hi,br={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:mi,create:gi}=ie("price"),pi=gi({props:{...br},setup(e){const t=n.computed(()=>({[mi]:!0})),o=n.computed(()=>e.needSymbol?e.symbol:""),l=n.computed(()=>Pt(e.price)==0?"":Wt(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=n.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=n.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),vi=["innerHTML"],yi=["innerHTML"];function bi(e,t,o,l,r,a){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,vi)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--${e.size}`)},n.toDisplayString(e.intText),3),e.decimalText.length!=0?(n.openBlock(),n.createElementBlock("view",{key:1,class:n.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--decimal-${e.size}`)},n.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(n.openBlock(),n.createElementBlock("view",{key:2,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):n.createCommentVNode("",!0)],2)}const sn=Me(pi,[["render",bi]]),{componentName:bn,create:xi}=ie("hint-text"),wi=xi({components:{Price:sn},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=n.ref({top:null,right:null,bottom:null,left:null}),l=n.ref({x:0,y:0}),r=n.ref(0),a=n.ref(0),i=n.ref(e.placement),u=n.ref(!1),s=n.ref(null),c=(p,_,Z,F,T,V)=>{const A=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,X=p.split("-");let J=[];X[0]==="top"?J=["top","bottom","right","left"]:X[0]==="bottom"?J=["bottom","top","right","left"]:X[0]==="left"?J=["left","top","bottom","right"]:X[0]==="right"&&(J=["right","top","bottom","left"]);const ne={top:null,right:null,bottom:null,left:null},I=[];for(let S=0;S<J.length;S++){const D=J[S];if(I[0]=D,X[1]&&(I[1]=X[1]),D==="top"){const O=_.y-V-e.arrowSize-e.offset;if(O>=0){ne.top=O;let x=0;X[1]==="start"?x=_.x:X[1]==="end"?x=_.x+Z-T:x=_.x+Z/2-T/2;const j=A-x-T;j<0?(x+=j,m.value=-j):m.value=0,ne.left=x<0?0:x;break}}else if(D==="bottom"){const O=_.y+F+e.arrowSize+e.offset;if(O+V<=W){ne.top=O;let x=0;X[1]==="start"?x=_.x:X[1]==="end"?x=_.x+Z-T:x=_.x+Z/2-T/2;const j=A-x-T;j<0?(x+=j,m.value=-j):m.value=0,ne.left=x<0?0:x;break}}else if(D==="left"){const O=_.x-T-e.arrowSize-e.offset;if(O>=0){ne.left=O;let x=0;X[1]==="start"?x=_.y:X[1]==="end"?x=_.y+F-V:x=_.y+F/2-V/2,ne.top=x<0?0:x;break}}else if(D==="right"){const O=_.x+Z+e.arrowSize+e.offset;if(O+T<=A){ne.left=O;let x=0;X[1]==="start"?x=_.y:X[1]==="end"?x=_.y+F-V:x=_.y+F/2-V/2,ne.top=x<0?0:x;break}}}return{bestPlacement:I.join("-"),bestInsetRect:ne}},d=(p,_,Z=10)=>{if(!it||_===!1||!p)return;l.value=yr(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const F=s.value.offsetHeight,T=s.value.offsetWidth,{bestPlacement:V,bestInsetRect:A}=c(e.placement,l.value,r.value,a.value,T,F);i.value=V,o.value=A,u.value=!0},m=n.ref(0),v=Ct(()=>{d(e.message,e.visible)},10),b=n.ref(e.visible);n.watch(()=>e.visible,p=>{b.value=p});const g=n.computed(()=>b.value&&f.value),f=n.ref(!0),h=Ct(p=>{const _=p[0];_&&(f.value=_.isIntersecting)},10),P=new IntersectionObserver(h);n.watch([()=>e.message,()=>e.visible],([p,_])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),n.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Kl.watch(e.reference,v),P.observe(e.reference)}),n.onBeforeMount(()=>{Kl.unwatch(e.reference,v),P.unobserve(e.reference),P.disconnect()});const k=n.computed(()=>{const p={[bn]:!0};return i.value.startsWith("top")?p["is-top"]=!0:i.value.startsWith("right")?p["is-right"]=!0:i.value.startsWith("bottom")?p["is-bottom"]=!0:i.value.startsWith("right")&&(p["is-right"]=!0),e.size==="small"?p["is-small"]=!0:e.size==="large"&&(p["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(p[`${e.customClass}`]=!0),p}),$=n.computed(()=>{const p={};o.value.top!==null&&(p.top=`${o.value.top}px`),o.value.right!==null&&(p.right=`${o.value.right}px`),o.value.bottom!==null&&(p.bottom=`${o.value.bottom}px`),o.value.left!==null&&(p.left=`${o.value.left}px`),e.autoFit&&(p["min-width"]=`${r.value}px`);const _=document.documentElement.clientWidth||document.body.clientWidth;return p["max-width"]=`${_}px`,u.value&&(p.opacity="1"),e.transition||(p.transition="none"),e.zIndex&&(p["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(p,e.customStyle),p}),B=n.computed(()=>{const p=[`${bn}__content`];return e.customTextClass&&p.push(e.customTextClass),p}),q=n.computed(()=>{const p={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(p,e.customTextStyle),p}),L=n.computed(()=>({[`${bn}__arrow`]:!0})),M=n.computed(()=>{const p={};return e.showArrow?(p.width=`${e.arrowSize}px`,p.height=`${e.arrowSize}px`,i.value==="top"?(p.left="50%",p.bottom=`-${e.arrowSize}px`,p.transform=" translate(-50%, 0%)"):i.value==="top-start"?(p.left=`${e.arrowOffset+m.value}px`,p.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(p.right=`${e.arrowOffset-m.value}px`,p.bottom=`-${e.arrowSize}px`):i.value==="right"?(p.left=`-${e.arrowSize}px`,p.top="50%",p.transform=" translate(0%, -50%)"):i.value==="right-start"?(p.left=`-${e.arrowSize}px`,p.top=`${e.arrowOffset}px`):i.value==="right-end"?(p.left=`-${e.arrowSize}px`,p.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(p.left="50%",p.top=`-${e.arrowSize}px`,p.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(p.left=`${e.arrowOffset+m.value}px`,p.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(p.right=`${e.arrowOffset-m.value}px`,p.top=`-${e.arrowSize}px`):i.value==="left"?(p.right=`-${e.arrowSize}px`,p.top="50%",p.transform=" translate(0%, -50%)"):i.value==="left-start"?(p.right=`-${e.arrowSize}px`,p.top=`${e.arrowOffset}px`):i.value==="left-end"&&(p.right=`-${e.arrowSize}px`,p.bottom=`-${e.arrowOffset}px`),p):{display:"none"}}),R=n.computed(()=>g.value&&e.closeOnClick),w=n.computed(()=>{const p={};return e.zIndex&&(p["z-index"]=`${e.zIndex}`),p});return{show:g,tipRef:s,classes:k,styles:$,textClasses:B,textStyles:q,arrowClasses:L,arrowStyles:M,overlayShow:R,overlayStyle:w,onClickOverlay:()=>{b.value=!1,t.emit("update:visible",!1)}}}}),Si=["innerHTML"];function Ti(e,t,o,l,r,a){const i=n.resolveComponent("Price");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.overlayShow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:n.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",{ref:"tipRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.createElementVNode("div",{class:n.normalizeClass(e.textClasses),style:n.normalizeStyle(e.textStyles)},[e.type=="number"?(n.openBlock(),n.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(n.openBlock(),n.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Si))],6),n.createElementVNode("div",{class:n.normalizeClass(e.arrowClasses),style:n.normalizeStyle(e.arrowStyles)},null,6)],6),[[n.vShow,e.show]])],64)}const Vt=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,Kt=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=Kt;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 l=n.createVNode(Vt,e);n.render(l,t)}return e.id},Ei=e=>{e.unmount=Kt;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 l=n.createVNode(Vt,e);return n.render(l,o),document.body.appendChild(o),t},Ni=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Oe={show(e,t,o={},l=!0){Ni(t);const r=o.id;return r&&dt.has(r)?Ci({...o,message:t,reference:e}):(l&&Kt(),Ei({...o,message:t,reference:e}))},hide(e){Kt(e)},install(e){e.config.globalProperties.$hintText=Oe}};function ki(e,t,o,l=!1){return{inheritAttrs:!0,props:{...we,...ke},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Te({componentName:e,validate:!1},i);const u=Ue(),s=tn();nn(!1);const c=n.computed(()=>s&&u?ln(u,!1).value:null),d=e,m=n.ref(null),v=n.computed(()=>{const N={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(N[r.errorMarkClass]=!!V.value,N[r.warnMarkClass]=!!F.value,N[r.infoMarkClass]=!!_.value,typeof m.value=="function"){const H=m.value(i);N[H]=!0}else if(typeof m.value=="string"){const H=m.value;N[H]=!0}return N}),b=n.ref(null),g=n.computed(()=>{const N={};if(r.width)r.width!=="auto"&&(N.width=Ce(r.width));else{const H=s&&u?on(u,!1):null;if(c.value&&H){if(c.value.type==="grid"){const ee=an(H,c.value,r.span,r.offset);Object.assign(N,ee)}else if(c.value.type==="flow"){const ee=rn(H,c.value,r.span,r.offset,r.width);Object.assign(N,ee)}}}if(typeof b.value=="function"){const H=b.value(i);H&&Object.assign(N,H)}else if(b.value&&typeof b.value=="object"){const H=b.value;Object.assign(N,H)}return N}),f=n.ref(null),h=n.computed({get:()=>f.value??ue(r.isRequired),set:N=>{f.value=N}}),P=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",k=Pe(n.toRef(r,"labelPosition"),"labelPosition",Ae.Near),$=n.computed(()=>k&&k.value==="top"?"top":k&&k.value==="right"?"right":"left"),B=n.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${$.value}`]:!0})),q=n.computed(()=>({label:!0,[`label--${$.value}`]:!0})),L=Pe(n.toRef(r,"labelWidth"),"labelWidth",Ae.Near),M=n.computed(()=>L&&L.value?{width:Ce(L.value)}:{}),R=n.computed(()=>({"label--string":!0,"label--required":h.value})),w=n.computed(()=>({content:!0,[r.contentClass]:!0})),C=n.computed(()=>({...r.contentStyle})),p=n.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(N){h.value=N},setErrorTip(N){p.errorTip=N},setErrorIcon(N){p.errorIcon=N},setWarnTip(N){p.warnTip=N},setWarnIcon(N){p.warnIcon=N},setInfoTip(N){p.infoTip=N},setInfoIcon(N){p.infoIcon=N},setCustomClassName(N){m.value=N},setCustomStyle(N){b.value=N}});const _=n.computed(()=>r.infoTip||p.infoTip),Z=n.computed(()=>r.infoIcon||p.infoIcon),F=n.computed(()=>r.warnTip||p.warnTip),T=n.computed(()=>r.warnIcon||p.warnIcon),V=n.computed(()=>r.errorTip||p.errorTip),A=n.computed(()=>r.errorIcon||p.errorIcon),W=n.computed(()=>V.value?"error":F.value?"warn":_.value?"info":""),X=()=>W.value.length>0,J=n.computed(()=>W.value==="error"?V.value:W.value==="warn"?F.value:W.value==="info"?_.value:""),ne=n.computed(()=>W.value==="error"?A.value:W.value==="warn"?T.value:W.value==="info"?Z.value:null),I=n.computed(()=>{const N={[`${d}__tip`]:!0,[`${d}__tip--${W.value}`]:!0,[`${d}--animate`]:!0};return W.value==="error"&&r.errorClass?N[`${r.errorClass}`]=!0:W.value==="warn"&&r.warnClass?N[`${r.warnClass}`]=!0:W.value==="info"&&r.infoClass&&(N[`${r.infoClass}`]=!0),N}),S=n.computed(()=>{const N={};return k&&k.value==="top"||!P()?N["padding-left"]="0px":L&&L.value&&(N["padding-left"]=Ce(L.value)),N}),D=n.ref();let O="";n.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([N,H,ee,le])=>{D.value&&(N&&!pe(H)?O?o.show(D.value,H,{...le,id:O,type:ee},!0):O=o.show(D.value,H,{...le,type:ee},!0):o.hide(O))});let x=null;const j=()=>{x||!D.value||(x=new IntersectionObserver(N=>{let H=!1;for(let ee of N)if(ee.intersectionRatio>0){H=!0,H&&a.emit("appear",ee);break}H||a.emit("disappear")}),x.observe(D.value))},G=()=>{!x||!D.value||(x.unobserve(D.value),x=null)};n.watch(()=>ue(r.appearListen),N=>{N?j():G()}),n.onMounted(()=>{ue(r.appearListen)&&j()}),n.onUnmounted(G);const te=()=>{if(!P())return null;const N=[],H=a.slots?.label?.()??r.label,ee={class:R.value},le=n.h("div",ee,[H]);if(N.push(le),a.slots.fixedPreTip){const ae=a.slots.fixedPreTip();N.push(ae)}const se={class:q.value,style:M.value};return n.h("div",se,N)},Y=()=>{const N=[];if(a.slots.prepend){const ee=a.slots.prepend();N.push(ee)}if(a.slots.default){const ee=a.slots.default();N.push(ee)}if(a.slots.append){const ee=a.slots.append();N.push(ee)}if(a.slots.fixedTip){const ee={class:[`${d}__fixed-tip`]},le=n.h("div",ee,[a.slots.fixedTip()]);N.push(le)}const H={ref:D,class:w.value,style:C.value};return n.h("div",H,N)},K=()=>{const N=ne.value;return N?typeof N=="function"?n.h("div",{class:"fox-item__tip--icon"},[N()]):n.h("div",{class:"fox-item__tip--icon"},[n.h(N)]):null},E=()=>{const N=J.value;return N?typeof N=="function"?n.h("div",{class:"fox-item__tip--text"},[N()]):n.h("div",{class:"fox-item__tip--text"},[N]):null},z=()=>{if(!X())return null;const N=[],H=K();H&&N.push(H);const ee=E();ee&&N.push(ee);const le={class:I.value,style:S.value};return n.h("div",le,N)},U=()=>a.slots?.hide?.()??null;return()=>{const N=[],H=[],ee=te();ee&&H.push(ee);const le=Y();le&&H.push(le);const se={class:B.value},ae=n.h("div",se,H);N.push(ae);const Q=z();Q&&N.push(Q);const oe=U();oe&&N.push(oe);const re={class:v.value,style:g.value,prop:r.prop};return n.h("div",re,N)}}}}const{componentName:Ii,create:Oi,scope:Pi}=ie("item"),Se=Oi(ki(Ii,Pi,Oe,!1));function Vi(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,l){const r=Ue(),a=tn();nn(!1);const i=n.computed(()=>a&&r?ln(r,!1).value:null),u=e,s=n.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=n.computed(()=>{const d={},m=a&&r?on(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const v=an(m,i.value,o.span,o.offset);Object.assign(d,v)}else if(i.value.type==="flow"){const v=rn(m,i.value,o.span,o.offset,o.width);Object.assign(d,v)}else return o.width&&(d.width=Ce(o.width)),d;else o.width&&(d.width=Ce(o.width));return d});return()=>{const d={class:s.value,style:c.value};return l.slots&&typeof l.slots.default=="function"?n.h("div",d,l.slots.default()):n.h("div",d)}}}}const{componentName:Di,create:Fi,scope:Th}=ie("slot-item"),Zn=Fi(Vi(Di));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,l){const r=e,a=n.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Ue(),u=tn();nn(!1);const s=n.computed(()=>{const c={};if(u&&i){const d=ln(i,!1),m=on(i,!1);if(d.value&&m)if(d.value.type==="grid"){const v=an(m,d.value,o.span,o.offset);Object.assign(c,v)}else if(d.value.type==="flow"){const v=rn(m,d.value,o.span,o.offset,o.width);Object.assign(c,v)}else o.width&&(c.width=Ce(o.width))}else o.width&&(c.width=Ce(o.width));return c});return()=>{const c=[];if(l.slots.default){const m=l.slots.default();if(o.divide)for(let v=0;v<m.length;v++){if(v>0){const b=n.h("div",{class:{[`${r}__divide`]:!0}});c.push(b)}c.push(m[v])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return n.h("div",d,c)}}}}const{componentName:Ai,create:Li,scope:$h}=ie("row-item"),Qn=Li(Ri(Ai)),He=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(t[l]=e[l])}),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:{...we,...ke,...Wl},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(!1),b=de(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value,[`${g}__readonly`]:s.value})),h=T=>{b.value=T,c("update:modelValue",T),c("input",T)},P=T=>{c("change",T)};let k=de(l,"hintText"),$=n.ref(!1);const B=T=>{let A=T.target.value;v.value=!0,pe(k.value)||($.value=!0),c("focus",A,T)},q=T=>{setTimeout(()=>{$.value&&($.value=!1),v.value=!1},0);let A=T.target.value;l.maxLength&&A.length>Number(l.maxLength)&&(A=A.slice(0,Number(l.maxLength))),c("blur",A,T)},L=()=>{c("clear","")},M=n.ref(!1);let R=null;const w=()=>{l.showTooltip&&M.value===!1&&(R&&clearTimeout(R),R=setTimeout(()=>{M.value=!0},150))},C=()=>{R&&(clearTimeout(R),M.value=!1,R=null)},p=n.computed(()=>M.value||$.value),_=n.computed(()=>M.value?b.value:k.value),Z=n.computed(()=>Pt(l.unit)>0),F=n.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()},setDisabled:T=>{a.value=T},setReadonly:T=>{u.value=T}}),()=>{const V={...He(r.attrs),ref:F,class:f.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:L,onChange:P,onInput:h,onFocus:B,onBlur:q,onMouseover:w,onMouseleave:C},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:Z.value&&(A.suffix=()=>[l.unit]);const W=[],X=n.h(y.ElInput,V,A);W.push(X);const J={default:()=>W};r.slots.default&&(J.label=r.slots.default),r.slots.default&&(J.fixedTip=r.slots.fixedTip);const I={...Ne(l,Wl),hintText:_.value,hintVisible:p.value};return l.prop&&(I.prop=`${l.prop}_item`),n.h(o,I,J)}}}}const{componentName:Bi,create:_i,scope:qi}=ie("input-item"),Jn=_i(Mi(Bi,qi,Se));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,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function Hi(){const e=n.getCurrentInstance();return new zi(e.proxy)}function Sr(e,t,o){const l=Je(e,t),r=Je(e,o);if(l!==r)return!1;const a=kt(e,t),i=kt(e,o);return a===i}function Tr(e,t,o,l){if(l.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of l){const u=wr(e,i);if(Array.isArray(u)&&u.length>0){const s=Tr(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=Je(e,i)===a;else if(o==="item")s=Sr(e,i,a);else{let c=kt(e,i);c==null&&(c=Je(e,i)),s=c===a}if(s){r.push(i);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:{...we,...ke,...Yl},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(null),b=n.ref([]),g=n.computed(()=>b.value?b.value.map(z=>Je(l,z)).join(" "):""),f=(E,z,U,N=!0)=>{const H=Tr(l,E,z,U);if(H===null){if(b.value===null||b.value.length===0)return;v.value=null,b.value=[],N&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let ee=!0;if(H.length!==b.value.length)ee=!1;else for(let le=0;le<H.length;le++){const se=H[le],ae=b.value[le];if(!Sr(l,se,ae)){ee=!1;break}}if(!ee){b.value=H;let le=[],se=[],ae=[];H.forEach(ce=>{const ge=kt(l,ce),me=Je(l,ce);le.push(ge),ae.push(me),l.valueType==="text"?se.push(me):l.valueType==="item"?se.push(ce):se.push(ge)});let Q,oe,re;ue(l.multiple)?(v.value=le,Q=n.toRaw(se),oe=ae,re=n.toRaw(H)):(v.value=le[0]??"",Q=n.toRaw(se[0]??""),oe=ae[0]??"",re=n.toRaw(H[0])),N&&(c("update:modelValue",Q),c("change",Q,re)),c("update:text",oe)}},h=n.ref(null),P=n.ref(null),k=n.computed(()=>P.value??h.value??[]),$=Pe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,E=>ue(E)),B=Hi(),q=async(E,z)=>{if(E){const U=await B.load("select",E,z);if(U.length>0)if(typeof U[0]=="string"){let ee=U.map(le=>Ki(le));h.value=ee}else h.value=U;else h.value=null}};n.watch([()=>l.source,()=>l.params],([E,z])=>{P.value=null,q(E,z)},{immediate:!$.value});let L=!1;const M=()=>{L||(L=!0,q(l.source,l.params))};n.watch([()=>h.value,()=>l.modelValue],([E,z])=>{if(p()&&ue(l.multiple)){Ye(z,v.value)||(v.value=z);return}f(z,l.valueType,k.value,!1),c("setValue",z)});let R=null,w=n.ref(!1);typeof l.remoteMethod=="function"&&(R=async E=>{if(E==null){P.value=null;return}w.value=!0;try{const z=await l.remoteMethod(E);z&&(P.value=z)}catch(z){P.value=null,console.error(z)}w.value=!1});let C=null;typeof l.filterMethod=="function"&&(C=async E=>{if(E==null){P.value=null;return}w.value=!0;try{const z=await l.filterMethod(E,h.value);z&&(P.value=z)}catch(z){P.value=null,console.error(z)}w.value=!1});const p=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",_=n.ref(!1),Z=e,F=n.computed(()=>({[Z]:!0})),T=E=>{l.allowCreate||p()&&ue(l.multiple)?(c("update:modelValue",E),c("change",E),c("update:text",E),v.value=E):f(E,"value",k.value,!0)};let V=de(l,"hintText"),A=n.ref(!1);const W=E=>{let U=E.target.value;_.value=!0,pe(V.value)||(A.value=!0),c("focus",U,E)},X=E=>{setTimeout(()=>{A.value&&(A.value=!1),_.value=!1},0);let U=E.target.value;l.maxLength&&U.length>Number(l.maxLength)&&(U=U.slice(0,Number(l.maxLength))),j.value||c("blur",U,E)},J=()=>{c("clear","")},ne=n.ref(!1);let I=null;const S=()=>{l.showTooltip&&ne.value===!1&&(I&&clearTimeout(I),I=setTimeout(()=>{ne.value=!0},150))},D=()=>{I&&(clearTimeout(I),ne.value=!1,I=null)},O=n.computed(()=>ne.value||A.value),x=n.computed(()=>ne.value?g.value:V.value),j=n.ref(!1),G=E=>{j.value=E,c("visible-change",E),E||c("selected")},te=E=>{c("remove-tag",E)},Y=(E,z)=>{const U=[];return E.forEach((N,H)=>{const ee=wr(l,N);if(Array.isArray(ee)&&ee.length>0){const le=Y(ee,z),se=Je(l,N),Q={key:`${se}_${H}`,label:se};U.push(n.h(y.ElOptionGroup,Q,{default:()=>le}))}else{const le=kt(l,N),se=Je(l,N),ae=ji(l,N),oe={key:`${le}_${H}`,label:se,disabled:ae,value:le};if(typeof z=="function")U.push(n.h(y.ElOption,oe,{default:()=>z(N)}));else if(l.optionType==="item"){const re={class:{"fox-select-item__option-left":!0}},ce=n.h("span",re,[le]),ge={class:{"fox-select-item__option-right":!0}},me=n.h("span",ge,[se]),Ke=n.h("div",{class:{"fox-select-item__option":!0}},[ce,me]);U.push(n.h(y.ElOption,oe,{default:()=>Ke}))}else l.optionType==="value"?U.push(n.h(y.ElOption,oe,{default:()=>[le]})):U.push(n.h(y.ElOption,oe))}}),U},K=n.ref();return be({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const z={...He(r.attrs),ref:K,class:F.value,clearable:l.clearable,multiple:l.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:v.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:J,onChange:T,onFocus:W,onBlur:X,onVisibleChange:G,onRemoveTag:te};typeof R=="function"&&(z["remote-method"]=R,z.loading=w.value),typeof C=="function"&&(z["filter-method"]=C,z.loading=w.value);const U={};r.slots.prefix&&(U.prefix=r.slots.prefix),r.slots.empty&&(U.empty=r.slots.empty),r.slots.options?U.default=r.slots.options:U.default=()=>Y(k.value,r.slots.option);const N=[],H=n.h(y.ElSelect,z,U);N.push(H);const ee={default:()=>N};r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip);const se={...Ne(l,Yl),hintText:x.value,hintVisible:O.value,onMouseover:S,onMouseleave:D};return l.prop&&(se.prop=`${l.prop}_item`),$.value&&(se["appear-listen"]=!0,se.onAppear=M),n.h(o,se,ee)}}}}const{componentName:Yi,create:Gi,scope:Ui}=ie("select-item"),el=Gi(Wi(Yi,Ui,Se));var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $r={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){var o=1e3,l=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",v="quarter",b="year",g="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,k={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(F){var T=["th","st","nd","rd"],V=F%100;return"["+F+(T[(V-20)%10]||T[V]||T[0])+"]"}},$=function(F,T,V){var A=String(F);return!A||A.length>=T?F:""+Array(T+1-A.length).join(V)+F},B={s:$,z:function(F){var T=-F.utcOffset(),V=Math.abs(T),A=Math.floor(V/60),W=V%60;return(T<=0?"+":"-")+$(A,2,"0")+":"+$(W,2,"0")},m:function F(T,V){if(T.date()<V.date())return-F(V,T);var A=12*(V.year()-T.year())+(V.month()-T.month()),W=T.clone().add(A,m),X=V-W<0,J=T.clone().add(A+(X?-1:1),m);return+(-(A+(V-W)/(X?W-J:J-W))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:m,y:b,w:d,d:c,D:g,h:s,m:u,s:i,ms:a,Q:v}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},q="en",L={};L[q]=k;var M="$isDayjsObject",R=function(F){return F instanceof _||!(!F||!F[M])},w=function F(T,V,A){var W;if(!T)return q;if(typeof T=="string"){var X=T.toLowerCase();L[X]&&(W=X),V&&(L[X]=V,W=X);var J=T.split("-");if(!W&&J.length>1)return F(J[0])}else{var ne=T.name;L[ne]=T,W=ne}return!A&&W&&(q=W),W||!A&&q},C=function(F,T){if(R(F))return F.clone();var V=typeof T=="object"?T:{};return V.date=F,V.args=arguments,new _(V)},p=B;p.l=w,p.i=R,p.w=function(F,T){return C(F,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var _=function(){function F(V){this.$L=w(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[M]=!0}var T=F.prototype;return T.parse=function(V){this.$d=function(A){var W=A.date,X=A.utc;if(W===null)return new Date(NaN);if(p.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var J=W.match(h);if(J){var ne=J[2]-1||0,I=(J[7]||"0").substring(0,3);return X?new Date(Date.UTC(J[1],ne,J[3]||1,J[4]||0,J[5]||0,J[6]||0,I)):new Date(J[1],ne,J[3]||1,J[4]||0,J[5]||0,J[6]||0,I)}}return new Date(W)}(V),this.init()},T.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},T.$utils=function(){return p},T.isValid=function(){return this.$d.toString()!==f},T.isSame=function(V,A){var W=C(V);return this.startOf(A)<=W&&W<=this.endOf(A)},T.isAfter=function(V,A){return C(V)<this.startOf(A)},T.isBefore=function(V,A){return this.endOf(A)<C(V)},T.$g=function(V,A,W){return p.u(V)?this[A]:this.set(W,V)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(V,A){var W=this,X=!!p.u(A)||A,J=p.p(V),ne=function(te,Y){var K=p.w(W.$u?Date.UTC(W.$y,Y,te):new Date(W.$y,Y,te),W);return X?K:K.endOf(c)},I=function(te,Y){return p.w(W.toDate()[te].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(Y)),W)},S=this.$W,D=this.$M,O=this.$D,x="set"+(this.$u?"UTC":"");switch(J){case b:return X?ne(1,0):ne(31,11);case m:return X?ne(1,D):ne(0,D+1);case d:var j=this.$locale().weekStart||0,G=(S<j?S+7:S)-j;return ne(X?O-G:O+(6-G),D);case c:case g:return I(x+"Hours",0);case s:return I(x+"Minutes",1);case u:return I(x+"Seconds",2);case i:return I(x+"Milliseconds",3);default:return this.clone()}},T.endOf=function(V){return this.startOf(V,!1)},T.$set=function(V,A){var W,X=p.p(V),J="set"+(this.$u?"UTC":""),ne=(W={},W[c]=J+"Date",W[g]=J+"Date",W[m]=J+"Month",W[b]=J+"FullYear",W[s]=J+"Hours",W[u]=J+"Minutes",W[i]=J+"Seconds",W[a]=J+"Milliseconds",W)[X],I=X===c?this.$D+(A-this.$W):A;if(X===m||X===b){var S=this.clone().set(g,1);S.$d[ne](I),S.init(),this.$d=S.set(g,Math.min(this.$D,S.daysInMonth())).$d}else ne&&this.$d[ne](I);return this.init(),this},T.set=function(V,A){return this.clone().$set(V,A)},T.get=function(V){return this[p.p(V)]()},T.add=function(V,A){var W,X=this;V=Number(V);var J=p.p(A),ne=function(D){var O=C(X);return p.w(O.date(O.date()+Math.round(D*V)),X)};if(J===m)return this.set(m,this.$M+V);if(J===b)return this.set(b,this.$y+V);if(J===c)return ne(1);if(J===d)return ne(7);var I=(W={},W[u]=l,W[s]=r,W[i]=o,W)[J]||1,S=this.$d.getTime()+V*I;return p.w(S,this)},T.subtract=function(V,A){return this.add(-1*V,A)},T.format=function(V){var A=this,W=this.$locale();if(!this.isValid())return W.invalidDate||f;var X=V||"YYYY-MM-DDTHH:mm:ssZ",J=p.z(this),ne=this.$H,I=this.$m,S=this.$M,D=W.weekdays,O=W.months,x=W.meridiem,j=function(Y,K,E,z){return Y&&(Y[K]||Y(A,X))||E[K].slice(0,z)},G=function(Y){return p.s(ne%12||12,Y,"0")},te=x||function(Y,K,E){var z=Y<12?"AM":"PM";return E?z.toLowerCase():z};return X.replace(P,function(Y,K){return K||function(E){switch(E){case"YY":return String(A.$y).slice(-2);case"YYYY":return p.s(A.$y,4,"0");case"M":return S+1;case"MM":return p.s(S+1,2,"0");case"MMM":return j(W.monthsShort,S,O,3);case"MMMM":return j(O,S);case"D":return A.$D;case"DD":return p.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return j(W.weekdaysMin,A.$W,D,2);case"ddd":return j(W.weekdaysShort,A.$W,D,3);case"dddd":return D[A.$W];case"H":return String(ne);case"HH":return p.s(ne,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return te(ne,I,!0);case"A":return te(ne,I,!1);case"m":return String(I);case"mm":return p.s(I,2,"0");case"s":return String(A.$s);case"ss":return p.s(A.$s,2,"0");case"SSS":return p.s(A.$ms,3,"0");case"Z":return J}return null}(Y)||J.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(V,A,W){var X,J=this,ne=p.p(A),I=C(V),S=(I.utcOffset()-this.utcOffset())*l,D=this-I,O=function(){return p.m(J,I)};switch(ne){case b:X=O()/12;break;case m:X=O();break;case v:X=O()/3;break;case d:X=(D-S)/6048e5;break;case c:X=(D-S)/864e5;break;case s:X=D/r;break;case u:X=D/l;break;case i:X=D/o;break;default:X=D}return W?X:p.a(X)},T.daysInMonth=function(){return this.endOf(m).$D},T.$locale=function(){return L[this.$L]},T.locale=function(V,A){if(!V)return this.$L;var W=this.clone(),X=w(V,A,!0);return X&&(W.$L=X),W},T.clone=function(){return p.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},F}(),Z=_.prototype;return C.prototype=Z,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",b],["$D",g]].forEach(function(F){Z[F[1]]=function(T){return this.$g(T,F[0],F[1])}}),C.extend=function(F,T){return F.$i||(F(T,_,C),F.$i=!0),C},C.locale=w,C.isDayjs=R,C.unix=function(F){return C(1e3*F)},C.en=L[q],C.Ls=L,C.p={},C})})($r);var Xi=$r.exports;const ze=Ze(Xi);var Cr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var P=h.match(/([+-]|\d\d)/g),k=60*P[1]+(+P[2]||0);return k===0?0:P[0]==="+"?-k:k}(f)}],m=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},v=function(f,h){var P,k=u.meridiem;if(k){for(var $=1;$<=24;$+=1)if(f.indexOf(k($,0,h))>-1){P=$>12;break}}else P=f===(h?"pm":"PM");return P},b={A:[i,function(f){this.afternoon=v(f,!1)}],a:[i,function(f){this.afternoon=v(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,P=f.match(/\d+/);if(this.day=P[0],h)for(var k=1;k<=31;k+=1)h(k).replace(/\[|\]/g,"")===f&&(this.day=k)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=m("months"),P=(m("monthsShort")||h.map(function(k){return k.slice(0,3)})).indexOf(f)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[i,function(f){var h=m("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(f){var h,P;h=f,P=u&&u.formats;for(var k=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,C,p){var _=p&&p.toUpperCase();return C||P[p]||o[p]||P[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Z,F,T){return F||T.slice(1)})})).match(l),$=k.length,B=0;B<$;B+=1){var q=k[B],L=b[q],M=L&&L[0],R=L&&L[1];k[B]=R?{regex:M,parser:R}:q.replace(/^\[|\]$/g,"")}return function(w){for(var C={},p=0,_=0;p<$;p+=1){var Z=k[p];if(typeof Z=="string")_+=Z.length;else{var F=Z.regex,T=Z.parser,V=w.slice(_),A=F.exec(V)[0];T.call(C,A),w=w.replace(A,"")}}return function(W){var X=W.afternoon;if(X!==void 0){var J=W.hours;X?J<12&&(W.hours+=12):J===12&&(W.hours=0),delete W.afternoon}}(C),C}}return function(f,h,P){P.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var k=h.prototype,$=k.parse;k.parse=function(B){var q=B.date,L=B.utc,M=B.args;this.$u=L;var R=M[1];if(typeof R=="string"){var w=M[2]===!0,C=M[3]===!0,p=w||C,_=M[2];C&&(_=M[2]),u=this.$locale(),!w&&_&&(u=P.Ls[_]),this.$d=function(V,A,W){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*V);var X=g(A)(V),J=X.year,ne=X.month,I=X.day,S=X.hours,D=X.minutes,O=X.seconds,x=X.milliseconds,j=X.zone,G=new Date,te=I||(J||ne?1:G.getDate()),Y=J||G.getFullYear(),K=0;J&&!ne||(K=ne>0?ne-1:G.getMonth());var E=S||0,z=D||0,U=O||0,N=x||0;return j?new Date(Date.UTC(Y,K,te,E,z,U,N+60*j.offset*1e3)):W?new Date(Date.UTC(Y,K,te,E,z,U,N)):new Date(Y,K,te,E,z,U,N)}catch{return new Date("")}}(q,R,L),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),p&&q!=this.format(R)&&(this.$d=new Date("")),u={}}else if(R instanceof Array)for(var Z=R.length,F=1;F<=Z;F+=1){M[1]=R[F-1];var T=P.apply(this,M);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}F===Z&&(this.$d=new Date(""))}else $.call(this,B)}}})})(Cr);var Zi=Cr.exports;const Qi=Ze(Zi);var Er={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){var r=l.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="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 m}});return a.bind(this)(d)}}})})(Er);var Ji=Er.exports;const es=Ze(Ji);var Nr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l,r){var a=l.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,v,b,g,f){var h=m.name?m:m.$locale(),P=i(h[v]),k=i(h[b]),$=P||k.map(function(q){return q.slice(0,g)});if(!f)return $;var B=h.weekStart;return $.map(function(q,L){return $[(L+(B||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(m,v){return m.formats[v]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,f,h){return f||h.slice(1)})}(m.formats[v.toUpperCase()])},d=function(){var m=this;return{months:function(v){return v?v.format("MMMM"):u(m,"months")},monthsShort:function(v){return v?v.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):u(m,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(m.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var m=s();return{firstDayOfWeek:function(){return m.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(v){return c(m,v)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(m){return u(s(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return u(s(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return u(s(),"weekdaysMin","weekdays",2,m)}}})})(Nr);var ts=Nr.exports;const ns=Ze(ts);var kr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){var o="week",l="year";return function(r,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(l).add(1,l).date(c),m=i(this).endOf(o);if(d.isBefore(m))return 1}var v=i(this).startOf(l).date(c).startOf(o).subtract(1,"millisecond"),b=this.diff(v,o,!0);return b<0?i(this).startOf("week").week():Math.ceil(b)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(kr);var ls=kr.exports;const os=Ze(ls);var Ir={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Ir);var rs=Ir.exports;const as=Ze(rs);var Or={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l,r){l.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Or);var is=Or.exports;const ss=Ze(is);var Pr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Pr);var us=Pr.exports;const cs=Ze(us);var Vr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Vr);var fs=Vr.exports;const ds=Ze(fs);ze.extend(ns);ze.extend(es);ze.extend(Qi);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 l=new Date(e+"/"+t+"/01").getDay();return l==0&&(l=7),l},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(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof t=="string"?l=new Date(t.replace("-","/").replace("-","/")):l=t,!(o>=l)},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 l;return typeof t=="string"?l=new Date(t).getTime():l=t,o==l},getMonthWeek:function(e,t,o,l=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return l!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,t,o,l=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,t,o,l=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(l===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[d,m]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[d,m]}},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 l=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=l.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const l=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=l.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},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:{...we,...ke,...Gl,...Ul},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(!1),b=de(l,"modelValue",null,c),g=n.computed(()=>A.value&&Array.isArray(b.value)&&b.value.length==2?b.value[0]:b.value),f=n.computed(()=>A.value?"longTermKey":"normalKey"),h=K=>{if(A.value&&l.type==="daterange"){const E=[...b.value];E[0]=K,b.value=E}else b.value=K;c("update:modelValue",b.value),c("change",b.value)},P=n.computed(()=>A.value&&l.type==="daterange"?"date":l.type),k=e,$=n.computed(()=>({[`${k}`]:!0,"is-long":A.value,"is-readonly":s.value,"is-disabled":i.value}));let B=de(l,"hintText"),q=n.ref(!1);const L=K=>{let z=K.target.value;v.value=!0,pe(B.value)||(q.value=!0),c("focus",z,K)},M=K=>{setTimeout(()=>{q.value&&(q.value=!1),v.value=!1},0);let z=K.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),c("blur",z,K)},R=()=>{c("clear","")},w=K=>{c("calendar-change",K)},C=(K,E,z)=>{c("panel-change",K,E,z)},p=K=>{c("visible-change",K)},_=Pe(n.computed(()=>l.longTermText),"longTermText",Ae.Near),Z=Pe(n.computed(()=>l.longTermActionLabel),"longTermActionLabel",Ae.Near),F=Pe(n.computed(()=>l.longTermValue),"longTermValue",Ae.Near),T=Pe(n.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let V=null;const A=n.ref(ue(l.longTerm)),W=K=>{if(A.value=K,c("update:longTerm",K),K){if(V=b.value,l.type==="daterange"){const E=[];Array.isArray(F.value)?(E[0]=b.value?b.value[0]??F.value[0]:null,E[1]=F.value[1]??F.value[0]):(E[0]=b.value?b.value[0]??F.value:null,E[1]=A.value),E[0]||(E[0]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),E[1]||(E[1]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),b.value=E}else Array.isArray(F.value)?b.value=F.value[1]??F.value[0]:b.value=F.value,b.value||(b.value=l.valueFormat?Re.format(new Date,l.valueFormat):new Date);c("update:modelValue",b.value)}else{if(l.type==="daterange"){const E=[];E[0]=Array.isArray(b.value)?b.value[0]:b.value,Array.isArray(V)?E[1]=V[1]:E[1]=V,E[0]||(E[0]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),E[1]||(E[1]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),b.value=E}else b.value=V;c("update:modelValue",b.value),setTimeout(()=>{te()},100)}},X=ue(l.isLongTerm);if(X){const K=()=>{if(A.value===!0){if(V=b.value,l.type==="daterange"){const E=[b.value[0]];Array.isArray(F.value)?E[1]=F.value[1]??F.value[0]:E[1]=A.value,E[0]||(E[0]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),E[1]||(E[1]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),b.value=E}else b.value=F.value;c("update:modelValue",b.value)}else Ye(F.value,b.value)&&(A.value=!0)};K(),n.watch([()=>l.longTerm],([E])=>{A.value!==E&&K()}),n.watch([()=>b.value],([E])=>{let z=!1;if(l.type==="daterange"&&Array.isArray(E))try{let U=E[1];if(!U)return;typeof U!="string"&&l.valueFormat&&(U=Re.format(U,l.valueFormat));let N=Array.isArray(F.value)?F.value[1]:F.value;(U===N||Array.isArray(T.value)&&T.value.findIndex(ee=>U==ee)!==-1)&&(z=!0)}catch(U){console.error(U)}A.value!==z&&(A.value=z)},{immediate:!0})}const J=n.computed(()=>({"fox-date-item__long":!0,"is-active":v.value})),ne=n.ref(),I=n.ref(),S=/^\d+$/,D=(K,E)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(K,E):S.test(K)&&K.length===l.flashFillThreshold,O=(K,E)=>{let z;if(typeof l.flashFillFormat=="function")z=l.flashFillFormat(K,E);else{const N=l.flashFillFormat??"YYYYMMDD";z=Re.parser(K,N)}const U=l.valueFormat??"YYYY-MM-DD";return Re.format(z,U)},x=K=>K?K.endsWith("range"):!1,j=K=>{if(!K.target)return;const E=K.target.value??"";if(D(E,l.type)){const z=O(E,l.type);if(x(l.type)){const U=Array.isArray(b.value)?[...b.value]:[];U[0]=z,h(U)}else h(z)}},G=K=>{if(!K.target)return;const E=K.target.value??"";if(D(E,l.type)){const z=O(E,l.type);if(x(l.type)){const U=Array.isArray(b.value)?[...b.value]:[];U[1]=z,h(U)}else h(z)}},te=()=>{if(l.flashFill&&ne.value&&ne.value.$el)if(x(l.type)){const K=ne.value.$el.querySelectorAll("input.el-range-input");K[0]&&K[0].addEventListener("input",j),K[1]&&K[1].addEventListener("input",G)}else{const K=ne.value.$el.querySelector("input.el-input__inner");K&&K.addEventListener("input",j)}},Y=()=>{if(l.flashFill&&ne.value&&ne.value.$el)if(x(l.type)){const K=ne.value.$el.querySelectorAll("input.el-range-input");K[0]&&K[0].removeEventListener("input",j),K[1]&&K[1].removeEventListener("input",G)}else{const K=ne.value.$el.querySelector("input.el-input__inner");K&&K.removeEventListener("input",j)}};return n.onMounted(te),n.onBeforeUnmount(Y),be({focus:()=>{I?.value.focus()},blur:()=>{I?.value.blur()},handleOpen:()=>{I?.value.handleOpen()},handleClose:()=>{I?.value.handleClose()},setDisabled:K=>{a.value=K},setReadonly:K=>{u.value=K}}),()=>{const E={...r.attrs,key:f.value,type:P.value,ref:I,class:$.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:g.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":h,onClear:R,onFocus:L,onBlur:M,onCalendarChange:w,onPanelChange:C,onVisibleChange:p},z={};r.slots["range-separator"]&&(z["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(z.default=r.slots.cell);const U=[],N=n.h(y.ElDatePicker,E,z);U.push(N);const H={default:()=>U};if(r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip),X){if(A.value){const ae=n.h("span",{class:["fox-date-item__long-splitor"]},["-"]),Q=n.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),oe={class:J.value},re=n.h("div",oe,{default:()=>[ae,Q]});U.push(re)}if(!s.value&&!i.value){const ae={label:Z.value||_.value,disabled:s.value||i.value,modelValue:A.value,"onUpdate:modelValue":W},Q=n.h(y.ElCheckbox,ae),oe=n.h("div",{class:{[`${k}__append`]:!0}},[Q]);H.append=()=>oe}}const le={...Ne(l,Gl,Ul),ref:ne,class:{[`${k}__wrapper`]:!0,"has-append":X},hintText:B.value,hintVisible:q.value};return l.prop&&(le.prop=`${l.prop}_item`),n.h(o,le,H)}}}}const{componentName:ms,create:gs,scope:ps}=ie("date-item"),tl=gs(hs(ms,ps,Se)),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:{...we,...ke,...Xl},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(!1),b=de(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0})),h=R=>{b.value=R,c("update:modelValue",R),c("change",R)};let P=de(l,"hintText"),k=n.ref(!1);const $=R=>{let C=R.target.value;v.value=!0,pe(P.value)||(k.value=!0),c("focus",C,R)},B=R=>{setTimeout(()=>{k.value&&(k.value=!1),v.value=!1},0);let C=R.target.value;l.maxLength&&C.length>Number(l.maxLength)&&(C=C.slice(0,Number(l.maxLength))),c("blur",C,R)},q=()=>{c("clear","")},L=R=>{c("visible-change",R)},M=n.ref();return be({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()},setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const w={...r.attrs,ref:M,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:q,onFocus:$,onBlur:B,onVisibleChange:L},C={},p=[],_=n.h(y.ElTimePicker,w,C);p.push(_);const Z={default:()=>p};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const T={...Ne(l,Xl),hintText:P.value,hintVisible:k.value};return l.prop&&(T.prop=`${l.prop}_item`),n.h(o,T,Z)}}}}const{componentName:ys,create:bs,scope:xs}=ie("time-item"),nl=bs(vs(ys,xs,Se)),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:{...we,...ke,...Zl},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(!1),b=de(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0})),h=M=>{b.value=M,c("update:modelValue",M),c("change",M)};let P=de(l,"hintText"),k=n.ref(!1);const $=M=>{let w=M.target.value;v.value=!0,pe(P.value)||(k.value=!0),c("focus",w,M)},B=M=>{setTimeout(()=>{k.value&&(k.value=!1),v.value=!1},0);let w=M.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),c("blur",w,M)},q=()=>{c("clear","")},L=n.ref();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()},setDisabled:M=>{a.value=M},setReadonly:M=>{u.value=M}}),()=>{const R={...r.attrs,ref:L,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:b.value,"onUpdate:modelValue":h,onClear:q,onFocus:$,onBlur:B},w={},C=[],p=n.h(y.ElTimeSelect,R,w);C.push(p);const _={default:()=>C};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ne(l,Zl),hintText:P.value,hintVisible:k.value};return l.prop&&(F.prop=`${l.prop}_item`),n.h(o,F,_)}}}}const{componentName:Ss,create:Ts,scope:$s}=ie("time-select-item"),ll=Ts(ws(Ss,$s,Se));function Ql(e,t=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let a=o.length-1;a>=l;a--)if(o.charAt(a)!="0"){r=a;break}return r-l<t?r=l+t+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Jl(e,t,o=20){if(typeof t=="string"&&(t=xe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let l=Mo(`${e}`,`${t}`);return Ql(l)}else{let l=_n(`${e}`,Bo(`${t}`),20);return Ql(l)}}function Cs(e,t=-1,o=!1,l=3,r=","){return Wt(e,t,o,l,r)}function eo(e,t,o,l,r=!0){if(e==="")return"";if(e=_o(e),t=xe(t),t==1)return e;if(l)e=Jl(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=_n(e,1,xe(o)));else{let a=-1*t;e=Jl(e,a)}return e}function to(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let l=ue(t.minInclude),r=On(e,t.min);if(l&&r==-1||!l&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let l=ue(t.maxInclude),r=On(e,t.max);(l&&r==1||!l&&(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:{...we,...ke,...no},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=n.ref(!1),m=de(l,"modelValue",null,c),v=n.ref("");n.watch([()=>m.value,()=>l.rates,()=>l.precision],([T,V,A])=>{if(pe(T)){v.value="";return}const W=eo(T,V,A,!1);v.value!==W&&(v.value=W)},{immediate:!0});const b=n.computed(()=>{let T="";return d.value&&(T=v.value),T}),{t:g}=Le.useFoxI18n(t),f=n.computed(()=>{let T=l.placeholder??"";return!d.value&&!pe(v.value)?T=Cs(v.value,l.decimalLength,l.autoPadding,l.digits,l.separator):T=g(["placeholder",T]),T}),h=e,P=n.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:v.value.length>0})),k=Pe(n.computed(()=>l.textAlign),"textAlign");n.computed(()=>d.value?{textAlign:"left"}:{textAlign:k.value??"right"});const $=n.ref(""),B=n.computed(()=>{let T=$.value;return pe(T)&&(T=l.errorTip??""),T}),q=n.ref(""),L=n.ref(!1),M=(T,V)=>{if(T=`${T}`,pe(T)){v.value="",m.value="",V.forEach(A=>{c(A,"")}),ue(l.showTip)&&L.value&&(L.value=!1);return}if(T.length>=2){let A=T;if(A.charAt(0)=="-"&&(A=A.substring(1)),A.length>=2&&A.charAt(0)=="0"&&A.charAt(1)!="."){n.triggerRef(v);return}}if(T!="-"){if(!Uo(T)){n.triggerRef(v);return}if(l.integerLength!=-1&&Xo(T)>Number(l.integerLength)){n.triggerRef(v);return}if(l.decimalLength&&l.decimalLength!=-1&&Zo(T)>Number(l.decimalLength)){n.triggerRef(v);return}let A=to(T,l);if(A.maxValid===!1){$.value=A.message,n.triggerRef(v);return}}else if(l.min!=null&&xe(l.min)>=0){n.triggerRef(v);return}q.value=T,ue(l.showTip)&&(L.value=T.length>0),v.value=T,m.value=eo(T,l.rates,l.precision,!0),V.forEach(A=>{c(A,m.value)})},R=T=>{M(T,["update:modelValue","input"])},w=T=>{M(T,["update:modelValue","change"])},C=T=>{if(d.value=!0,ue(l.showTip)){let V=v.value;pe(V)&&(V=l.hintText),pe(V)||(q.value=V,L.value=!0)}$.value="",c("focus",m.value,T)},p=T=>{if(setTimeout(()=>{d.value=!1,ue(l.showTip)&&L.value===!0&&(L.value=!1)},0),!pe(v.value)){let V=to(v.value,l);if(V.minValid===!1||V.maxValid===!1){$.value=V.message;return}}c("update:modelValue",m.value,T),c("blur",m.value,T)},_=()=>{c("clear","")},Z=n.computed(()=>Pt(l.unit)>0),F=n.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()},setDisabled:T=>{a.value=T},setReadonly:T=>{u.value=T}}),()=>{const V={...He(r.attrs),ref:F,class:P.value,type:"digit",maxlength:l.maxLength,placeholder:f.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:_,onInput:R,onChange:w,onFocus:C,onBlur:p},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:Z.value&&(A.suffix=()=>[l.unit]);const W=[],X=n.h(y.ElInput,V,A);W.push(X);const J={default:()=>W};r.slots.default&&(J.label=r.slots.default),r.slots.fixedTip&&(J.fixedTip=r.slots.fixedTip);const I={...Ne(l,no),errorTip:B.value,hintText:q.value,hintVisible:L.value,hintType:"number"};return l.prop&&(I.prop=`${l.prop}_item`),n.h(o,I,J)}}}}const{componentName:Ns,create:ks,scope:Is}=ie("money-item"),ol=ks(Es(Ns,Is,Se)),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:{...we,...ke,...lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(!1),b=de(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0,[`${g}__append`]:R.value})),h=n.computed(()=>({[`${g}__unit`]:!0})),P=C=>{b.value=C,c("update:modelValue",C),c("input",C)},k=C=>{c("change",C)};let $=de(l,"hintText"),B=n.ref(!1);const q=C=>{let _=C.target.value;v.value=!0,pe($.value)||(B.value=!0),c("focus",_,C)},L=C=>{setTimeout(()=>{B.value&&(B.value=!1),v.value=!1},0);let _=C.target.value;l.maxLength&&_.length>Number(l.maxLength)&&(_=_.slice(0,Number(l.maxLength))),c("blur",_,C)},M=()=>{c("clear","")},R=n.computed(()=>Pt(l.unit)>0),w=n.ref();return be({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},setDisabled:C=>{a.value=C},setReadonly:C=>{u.value=C}}),()=>{const p={...He(r.attrs),ref:w,class:f.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:M,onChange:k,onInput:P,onFocus:q,onBlur:L},_={},Z=[],F=n.h(y.ElInputNumber,p,_);Z.push(F);const T={default:()=>Z};r.slots.default&&(T.label=r.slots.default),r.slots.fixedTip&&(T.fixedTip=r.slots.fixedTip);const A={...Ne(l,lo),hintText:$.value,hintVisible:B.value};if(l.prop&&(A.prop=`${l.prop}_item`),r.slots.append)T.append=r.slots.append;else if(R.value){const X={class:h.value},J=n.h("div",X,[l.unit]);T.append=()=>J}return n.h(o,A,T)}}}}const{componentName:Ps,create:Vs,scope:Ds}=ie("input-number-item"),rl=Vs(Os(Ps,Ds,Se));function We(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 Fs(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,l,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,r);const a=qe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await a(o,l,r))}};function As(){const e=n.getCurrentInstance();return new Rs(e.proxy)}function Mn(e,t,o){const l=We(e,t),r=We(e,o);if(l!==r)return!1;const a=rt(e,t),i=rt(e,o);return a===i}function Dr(e,t,o,l){if(l.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=l;for(let i=0;Array.isArray(a)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=Dr(e,u,o,l);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=We(e,c)===u;else if(o==="item")s=Mn(e,c,u);else{let d=rt(e,c);d==null&&(d=We(e,c)),s=d===u}if(s){r.push(c),a=Fs(e,c);break}}if(!s)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:{...we,...ke,...oo},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(null),b=n.ref([]),g=n.computed(()=>b.value?b.value.map(K=>Array.isArray(K)?K.map(z=>We(l,z)).join(" "):We(l,K)).join(" "):""),f=(Y,K,E,z=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(v.value===Y)return;v.value=Y;const ee=n.toRaw(Y);if(z){const le=te?.value.getCheckedNodes();if(le)if(l.multiple){const se=[];le.forEach(ae=>{const oe=(ae.pathNodes??[]).map(re=>re.data);se.push(oe)}),c("update:pathNodes",se)}else{const ae=(le[0]?.pathNodes??[]).map(Q=>Q.data);c("update:pathNodes",ae)}c("update:modelValue",ee),c("change",ee)}return}const U=Dr(l,Y,K,E);if(U===null){if(b.value.length===0||b.value===null)return;b.value=[],v.value=null,z&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const N=U[U.length-1];if(_.value.checkStrictly!==!0&&N&&!Array.isArray(N)&&Array.isArray(N.children)&&N.children.length>0){const ee=[];U.forEach(le=>{const se=`${We(l,le)}`;ee.push(se)}),ee.length>0&&(C.value=ee.join(l.separator))}else C.value=null;let H=!0;if(U.length!==b.value.length)H=!1;else for(let ee=0;ee<U.length;ee++){const le=U[ee],se=b.value[ee];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)H=!1;else for(let ae=0;ae<le.length;ae++)if(!Mn(l,le[ae],se[ae])){H=!1;break}}else Mn(l,le,se)||(H=!1);if(!H)break}if(!H){b.value=U;let ee=[],le=[];U.forEach(ae=>{if(Array.isArray(ae)){let Q=[],oe=[];for(let re of ae)Q.push(rt(l,re)),l.valueType==="text"?oe.push(We(l,re)):l.valueType==="item"?oe.push(re):oe.push(rt(l,re));ee.push(Q),le.push(oe)}else ee.push(rt(l,ae)),l.valueType==="text"?le.push(We(l,ae)):l.valueType==="item"?le.push(ae):le.push(rt(l,ae))}),v.value=ee;const se=n.toRaw(le);z&&(c("update:pathNodes",U),c("update:modelValue",se),c("change",se))}},h=n.ref([]),P=Pe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,Y=>ue(Y)),k=As(),$=async(Y,K)=>{if(Y){const E=await k.load("cascader",Y,K);if(E.length>0)if(typeof E[0]=="string"){let N=E.map(H=>Ls(H));h.value=N}else h.value=E}};n.watch([()=>l.source,()=>l.params],async([Y,K])=>{$(Y,K)},{immediate:!(P.value||l.lazy)});let B=!1;const q=()=>{B||(B=!0,$(l.source,l.params))};n.watch([()=>h.value,()=>l.modelValue],([Y,K])=>{f(K,l.valueType,Y,!1),c("setValue",K)}),l.lazy&&f(l.modelValue,"value",[],!1);let L=null,M=n.ref(!1);typeof l.remoteMethod=="function"&&(L=async Y=>{if(Y!=null){M.value=!0;try{const K=await l.remoteMethod(Y);h.value=K}catch(K){console.error(K)}M.value=!1}});const R=n.ref(!1),w=e,C=n.ref(null),p=n.computed(()=>({[w]:!0,"is-incomplete":C.value&&C.value.length>0})),_=n.computed(()=>{let Y={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(Y.multiple=!0),l.props&&Object.assign(Y,l.props),l.lazy&&(Y.lazy=!0,typeof l.lazyLoad=="function"?Y.lazyLoad=l.lazyLoad:Y.lazyLoad=async(K,E)=>{const z=await k.load("cascader",l.source,K,!0);if(K?.config?.checkStrictly!==!0&&Array.isArray(v.value)&&v.value.length===K.level){const U=K.pathLabels??[];let N=[];U.forEach(H=>{H&&N.push(H)}),N.length>0&&(C.value=N.join(l.separator))}else C.value=null;E(z)}),Y}),Z=Y=>{l.allowCreate?(c("update:modelValue",Y),c("change",Y),v.value=Y):f(Y,"value",h.value,!0)};let F=de(l,"hintText"),T=n.ref(!1);const V=Y=>{let E=Y.target.value;R.value=!0,pe(F.value)||(T.value=!0),c("focus",E,Y)},A=Y=>{setTimeout(()=>{T.value&&(T.value=!1),R.value=!1},0);let E=Y.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),O.value||c("blur",E,Y)},W=()=>{c("clear","")},X=n.ref(!1);let J=null;const ne=()=>{l.showTooltip&&X.value===!1&&(J&&clearTimeout(J),J=setTimeout(()=>{X.value=!0},150))},I=()=>{J&&(clearTimeout(J),X.value=!1,J=null)},S=n.computed(()=>X.value||T.value),D=n.computed(()=>X.value?g.value:F.value),O=n.ref(!1),x=Y=>{O.value=Y,c("visible-change",Y),Y||c("selected")},j=Y=>{c("remove-tag",Y)},G=Y=>{c("expand-change",Y)},te=n.ref();return be({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},getCheckedNodes:()=>te?.value.getCheckedNodes(),setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const K={...r.attrs,ref:te,class:p.value,props:_.value,clearable:l.clearable,placeholder:C.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:v.value,separator:l.separator,onClear:W,onChange:Z,onFocus:V,onBlur:A,onVisibleChange:x,onRemoveTag:j,expandChange:G};typeof L=="function"&&(K["remote-method"]=L,K.loading=M.value);const E={};r.slots.option&&(E.default=r.slots.option),r.slots.empty&&(E.empty=r.slots.empty);const z=[],U=n.h(y.ElCascader,K,E);z.push(U);const N={default:()=>z};r.slots.default&&(N.label=r.slots.default),r.slots.fixedTip&&(N.fixedTip=r.slots.fixedTip);const ee={...Ne(l,oo),hintText:D.value,hintVisible:S.value,onMouseover:ne,onMouseleave:I};return l.prop&&(ee.prop=`${l.prop}_item`),P.value&&!l.lazy&&(ee["appear-listen"]=!0,ee.onAppear=q),n.h(o,ee,N)}}}}const{componentName:Bs,create:_s,scope:qs}=ie("cascader-item"),al=_s(Ms(Bs,qs,Se)),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:{...we,...ke,...ro},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Le.useFoxI18n(t),m=d(l,["placeholder"]),v=n.ref(!1),b=de(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0})),h=w=>{b.value=w,c("update:modelValue",w),c("input",w)},P=w=>{c("change",w)},k=w=>{c("select",w)};let $=de(l,"hintText"),B=n.ref(!1);const q=w=>{let p=w.target.value;v.value=!0,pe($.value)||(B.value=!0),c("focus",p,w)},L=w=>{setTimeout(()=>{B.value&&(B.value=!1),v.value=!1},0);let p=w.target.value;l.maxLength&&p.length>Number(l.maxLength)&&(p=p.slice(0,Number(l.maxLength))),c("blur",p,w)},M=()=>{c("clear","")},R=n.ref();return be({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const C={...r.attrs,ref:R,class:f.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:b.value,onClear:M,onChange:P,onInput:h,onFocus:q,onBlur:L,onSelect:k},p={};r.slots.prepend&&(p.prepend=r.slots.prepend),r.slots.append&&(p.append=r.slots.append),r.slots.prefix&&(p.prefix=r.slots.prefix),r.slots.suffix&&(p.suffix=r.slots.suffix),r.slots.option&&(p.default=r.slots.option);const _=[],Z=n.h(y.ElAutocomplete,C,p);_.push(Z);const F={default:()=>_};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const V={...Ne(l,ro),hintText:$.value,hintVisible:B.value};return l.prop&&(V.prop=`${l.prop}_item`),n.h(o,V,F)}}}}const{componentName:zs,create:Hs,scope:Ks}=ie("autocomplete-item"),il=Hs(js(zs,Ks,Se));function Ws(e,t,o,l,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(v=>v[l]===d);if(!m)break;i.push(m[o])}return i}if(Array.isArray(u))for(let s=0;s<t.length&&s<a.length;s++){let c=t[s],d=a[s];const m=c.find(v=>v[l]===d);if(!m)break;i.push(m[o])}else{let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(v=>v[l]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let Ys=class{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function Gs(){const e=n.getCurrentInstance();return new Ys(e.proxy)}const Fr={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:{...Fr},setup(o,{attrs:l,slots:r}){const a=Gs(),i=n.ref([]);n.watch([()=>o.source,()=>o.params],async([c,d])=>{i.value=await a.load(o.sourceType,c,d)},{immediate:!0});const u=n.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Ws(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),s=o.resolveTag?n.resolveComponent(o.tag):o.tag;return()=>{const c={...l};return r.default?r.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?n.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):n.h(s,c,{default:()=>u.value}):n.h(s,c,u.value)}}}}const{componentName:kh,create:Xs,scope:Ih}=ie("mapping"),It=Xs(Us());function Zs(e,t){let o=t.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);l=l[m][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function Qs(e,t){return{props:{...Fr},setup(o,{attrs:l,slots:r}){return()=>{const a={default:i=>{const u=Zs(i.row,i.column.property);return r.default?n.h(It,{...o,modelValue:u},{default:r.default}):n.h(It,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return n.h(y.ElTableColumn,{...l},a)}}}}const{componentName:Oh,create:Js,scope:Ph}=ie("table-mapping-column"),sl=Js(Qs()),eu=Symbol.for("TableStateKey");function ao(e,t){let o=t.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);l=l[m][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function tu(e,t){return{props:{},setup(o,{attrs:l}){const r=n.inject(eu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=ao(u.row,u.column.property),c=a?ao(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},v=n.h("span",m,[n.h("span",{class:{"el-radio__inner":!0}})]),b={class:{"el-radio":!0,"is-checked":d}};return n.h("label",b,[v])}};return n.h(y.ElTableColumn,{...l},i)}}}}const{componentName:Vh,create:nu,scope:Dh}=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"};function ru(e,t){return n.openBlock(),n.createElementBlock("svg",ou,t[0]||(t[0]=[n.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)]))}const au=Me(lu,[["render",ru]]),{componentName:Fh,create:iu,scope:Rh}=ie("table-setting"),su={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:"不固定"}},uu=iu({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:au,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...su},setup(e,{emit:t,attrs:o}){let l=[];const r=n.ref([]),a=n.computed(()=>r.value.filter(x=>x.label===""||x.type?!1:x.fixed===""||x.fixed===!0||x.fixed==="left")),i=n.computed(()=>r.value.filter(x=>x.label===""||x.type?!1:x.fixed==="right")),u=n.computed(()=>r.value.filter(x=>!(x.label===""||x.type||x.fixed!==void 0))),s=n.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=n.computed(()=>a.value.length>0),d=n.computed(()=>i.value.length>0),m=x=>x.length>1,v=(x,j)=>{Array.isArray(x)&&Array.isArray(j)&&x.forEach(Y=>{j.some(K=>K.prop===Y.prop?(Y.label=K.label,!0):!1)});const G=[];r.value=x.map((Y,K)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&G.push(Y.prop),{...Y,sortIndex:K})),u.value.length+a.value.length+i.value.length===G.length?k.value=!0:G.length>0&&($.value=!0),L.value=G},b=x=>x?x.type?x.type:x.label?x.prop:"":"",g=(x,j)=>{if(x.length!==j.length)return!1;const G=x.map(te=>b(te));for(let te of j){const Y=b(te);if(G.indexOf(Y)===-1)return!1}return!0},f=x=>{if(!x){const j=e.tableRef.getColumnSetting(),G=j.srcColumnPropertyList;l=G.map((te,Y)=>({...te,sortIndex:Y})),x=j.columnPropertyList,x&&x.length>0&&g(G,x)||(x=G)}v(x,l)},h=()=>{e.tableRef.setColumnSetting(r.value)},P=n.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),k=n.ref(!1),$=n.ref(!1),B=x=>{const j=[];r.value.forEach(te=>{x&&!(te.label===""||te.type)&&j.push(te.prop),te.visible=x}),k.value=!1,$.value=!1,u.value.length+a.value.length+i.value.length===j.length?k.value=!0:j.length>0&&($.value=!0),L.value=j,h()},q=()=>{f(l),h()},L=n.ref([]),M=x=>{r.value.forEach(G=>{if(G.label===""||G.type)return;const te=x.indexOf(G.prop)!==-1;G.visible=te}),k.value=!1,$.value=!1;const j=u.value.length+a.value.length+i.value.length;x.length===j?k.value=!0:x.length>0&&($.value=!0),h()},R=()=>{f()};n.onMounted(()=>{setTimeout(()=>{f()},50)});const w={currentRow:null,index:null,roleType:null},C=x=>x?x.dataset&&x.dataset.role==="row"?x:x.tagName.toLowerCase()!=="body"?(x=x.parentElement,C(x)):null:null,p=x=>{const j=x.currentTarget;j&&j.dataset&&(w.roleType=j.dataset.roleType,w.index=j.dataset.index)},_=x=>{w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null),w.index=null,w.roleType=null},Z=x=>{const j=x.currentTarget;x.relatedTarget;const G=C(j);if(!G)return;const te=G.dataset&&G.dataset.roleType;w.roleType===te&&(x.preventDefault(),w.currentRow&&w.currentRow!==G&&w.currentRow.classList.remove("is-dragover"),G.classList.add("is-dragover"),w.currentRow=G)},F=x=>{x.preventDefault(),w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null)},T=x=>{const j=x.currentTarget,G=C(j);if(!G)return;const te=G.dataset&&G.dataset.roleType;if(w.roleType!==te)return;x.preventDefault();const Y=Number(w.index),K=Number(G.dataset.index);if(Y!==K){if(Y<K){const E=r.value[Y];r.value.splice(Y,1),r.value.splice(K,0,E)}else{const E=r.value[Y];r.value.splice(Y,1),r.value.splice(K+1,0,E)}v(r.value,l),h()}},V=x=>{const j=r.value[x];j.fixed="left",h()},A=x=>{const j=r.value[x];j.fixed="right",h()},W=x=>{const j=r.value[x];j.fixed=void 0,h()},X=new Map;let J=null;function ne(x){const j=document.createRange();return j.setStart(x,0),j.setEnd(x,x.childNodes.length),j.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:k,isIndeterminate:$,handleCheckAllChange:B,handleReset:q,checkedValue:L,handleCheckChange:M,onShow:R,onDragStart:p,onDragEnd:_,onDragOver:Z,onDragLeave:F,onDrop:T,toLeftFixed:V,toRightFixed:A,toUnFixed:W,checkboxLabelStyle:P,onMouseOverForOverflowText:(x,j,G)=>{const te=x.currentTarget;if(te){const Y=Math.floor(te.offsetWidth);if(Math.floor(ne(te))>Y){let E=X.get(j);if(E){if(E===J)return;Oe.hide(E)}E=Oe.show(te,G,{type:"text",placement:"top",closeOnClick:!1}),E&&(X.set(j,E),J=E)}}},onMouseLeaveForOverflowText:(x,j)=>{const G=X.get(j);G&&(Oe.hide(G),G===J&&(J=null))},onMouseOverForTip:(x,j)=>{const G=x.currentTarget;G&&(J&&Oe.hide(J),J=Oe.show(G,j,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:x=>{J&&(Oe.hide(J),J=null)}}}}),cu={class:"fox-table-setting"},fu={class:"fox-table-setting__header"},du={class:"fox-table-setting__body"},hu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},mu={key:0,class:"fox-table-setting__body-title"},gu=["data-index","draggable"],pu=["onMouseover","onMouseleave"],vu={class:"tools-item"},yu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},bu={key:0,class:"fox-table-setting__body-title"},xu=["data-index","draggable"],wu=["onMouseover","onMouseleave"],Su={class:"tools-item"},Tu={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},$u={key:0,class:"fox-table-setting__body-title"},Cu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],Nu={class:"tools-item"};function ku(e,t,o,l,r,a){const i=n.resolveComponent("FoxCheckbox"),u=n.resolveComponent("FoxButton"),s=n.resolveComponent("DragIcon"),c=n.resolveComponent("RefreshLeft"),d=n.resolveComponent("FoxIcon"),m=n.resolveComponent("Download"),v=n.resolveComponent("fox-checkbox"),b=n.resolveComponent("FoxCheckboxGroup"),g=n.resolveComponent("FoxPopover");return n.openBlock(),n.createBlock(g,n.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("div",cu,[n.createElementVNode("div",fu,[n.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),n.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),n.createElementVNode("div",du,[n.createVNode(b,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:n.withCtx(()=>[e.leftFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",hu,[e.isShowLeftFixedTitle?(n.openBlock(),n.createElementBlock("div",mu,n.toDisplayString(e.leftFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.leftFixedColumns,f=>(n.openBlock(),n.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[6]||(t[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[7]||(t[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[8]||(t[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[9]||(t[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",value:f.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(f.label),45,pu)]),_:2},1032,["value"]),n.createElementVNode("div",vu,[n.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[1]||(t[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[2]||(t[2]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[3]||(t[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[4]||(t[4]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"])])],40,gu))),128))])):n.createCommentVNode("",!0),e.unFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",yu,[e.isShowNotFixedTitle?(n.openBlock(),n.createElementBlock("div",bu,n.toDisplayString(e.unFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unFixedColumns,f=>(n.openBlock(),n.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[15]||(t[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[16]||(t[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[17]||(t[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[18]||(t[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",value:f.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(f.label),45,wu)]),_:2},1032,["value"]),n.createElementVNode("div",Su,[n.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[10]||(t[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[12]||(t[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[13]||(t[13]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"])])],40,xu))),128))])):n.createCommentVNode("",!0),e.rightFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",Tu,[e.isShowRightFixedTitle?(n.openBlock(),n.createElementBlock("div",$u,n.toDisplayString(e.rightFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rightFixedColumns,f=>(n.openBlock(),n.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[24]||(t[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[25]||(t[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[26]||(t[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[27]||(t[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(v,{class:"checkbox-item",label:f.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(f.label),45,Eu)]),_:2},1032,["label"]),n.createElementVNode("div",Nu,[n.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[19]||(t[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[20]||(t[20]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[21]||(t[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"])])],40,Cu))),128))])):n.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const un=Me(uu,[["render",ku]]);let Iu=class{proxy;constructor(t){this.proxy=t}async load(t,o,l,r,a,i,u){if(Array.isArray(o)){let c=(l-1)*r,d=c+r;d>o.length&&(d=o.length);const m=o.slice(c,d);return{totalSize:o.length,page:m}}if(typeof o=="function")return await Reflect.apply(o,null,[l,r,a,i,u]);const s=qe(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await Reflect.apply(s,null,[o,l,r,a,i,u]))}};function Ou(){const e=n.getCurrentInstance();return new Iu(e.proxy)}class Pu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const l=qe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",t])),o}save(t,o){const l=qe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,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=n.getCurrentInstance();return new Pu(e.proxy)}const Vu=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:"不固定"}},Du={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Fu(e,t){let o=t.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);l=l[m][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function wn(e,t){return e.filter(l=>{for(let r in t){const a=t[r],i=Fu(l,r);if(a!==i)return!1}return!0})}function Ru(e,t,o){return{inheritAttrs:!1,props:{...we,...ke,...io,...so,...xn,...Du},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,r){const{locale:a}=Le.useFoxI18n(t),{emitEvent:i}=Te({componentName:e,validateHandler:{getValue(...Q){return L.value}}},l.prop??r.attrs.name),u=e,s=n.computed(()=>({[u]:!0})),c=n.computed(()=>({[`${u}__setting`]:!0})),d=n.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),m=n.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),v=n.shallowRef({}),b=n.computed(()=>({...v.value,...l.params??{},...l.baseParams??{}})),g=n.ref(l.infiniteLoad===!0?0:l.pageIndex),f=n.ref(l.pageSize),h=ue(l.infiniteLoad);h||(n.watch(()=>l.pageIndex,Q=>{g.value=Q}),n.watch(()=>l.pageSize,Q=>{f.value=Q}),n.watch([g,f],([Q,oe],[re,ce])=>{oe!==ce&&(g.value=1,Q=1),C(l.data,Q,oe,b.value)}));const P=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);P()&&n.watch([()=>l.data,b],async([Q,oe],[re,ce])=>{P()&&(Q!==re&&(R=!0),!(!Array.isArray(Q)&&Ye(Q,re)&&Ye(oe,ce))&&(h?(g.value=0,B.value=!0,L.value=[],_()):g.value===1?C(Q,g.value,f.value,oe):g.value=1))},{deep:!0});const k=Q=>{g.value=Q,i("page-index-change",Q)},$=Q=>{f.value=Q,i("page-size-change",Q)},B=n.ref(!0),q=n.ref(0),L=n.ref(),M=Ou();let R=!0;const w=Pe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,Q=>ue(Q)),C=async(Q,oe,re,ce,ge)=>{R=!1;try{if(ge===!0){if(!B.value)return!1;const me=await M.load("table",Q,oe,re,ce,R,a.value);return q.value=me.totalSize,!me.page||!Array.isArray(me.page)||(Reflect.apply([].push,L.value,me.page),setTimeout(()=>{i("loaded-data")},250),(L.value?.length??0)>=q.value)||me.page.length<re?(B.value=!1,!1):!0}else{const me=await M.load("table",Q,oe,re,ce,R,a.value);return q.value=me.totalSize,L.value=me.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(me){console.error("[FoxUI] Load Table Data Fail",me),q.value=0,L.value=[]}return!1};let p=!1;const _=async()=>{if(!p){if(p=!0,!B.value){p=!1;return}g.value+=1,await C(l.data,g.value,f.value,b.value,!0),p=!1}},Z=(Q={},oe=!1)=>new Promise(async re=>{v.value={...n.toRaw(Q??{})},oe||(g.value=l.pageIndex??1),h===!0?(g.value=0,L.value=[],B.value=!0,await _()):await C(l.data,g.value,f.value,b.value),re()}),F=()=>{q.value=0,L.value=[],h===!0&&(g.value=0,B.value=!0)};let T=!1;const V=()=>{T||(T=!0,Z())},A=n.ref(null);if(h===!0){let Q=null;const oe=()=>{A.value&&(Q=new IntersectionObserver(ce=>{let ge=!1;for(let me of ce)if(me.intersectionRatio>0){ge=!0;break}ge&&_()}),Q.observe(A.value))},re=()=>{!Q||!A.value||(Q.unobserve(A.value),Q=null)};n.onMounted(oe),n.onBeforeUnmount(re)}P()&&!w.value&&Z();const W=n.ref(null);n.provide(Vu,{currentRow:W});const X=(Q,oe)=>{W.value=Q,i("current-change",Q,oe)},J=(Q,oe,re)=>{i("row-click",Q,oe,re),ue(l.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(Q)},ne=[],I=(Q,oe)=>{if(i("expand-change",Q,oe),ue(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=ne.length;ne.splice(0,re)}else{ne.forEach(ce=>{ce!==Q&&ae?.value.toggleRowExpansion(ce,!1)});const re=ne.length;ne.splice(0,re,Q)}},S=r.attrs.id??l.prop??r.attrs.name,D=Rr(),O=n.ref([]);let x=[];const j=()=>({srcColumnPropertyList:x.map(oe=>({...oe})),columnPropertyList:O.value}),G=Q=>{O.value=[...Q],Y()},te=async()=>{const Q=await D.load(S);Q&&(O.value=Q)},Y=()=>{D.save(S,O.value)},K=()=>{D.remove(S)};te();const E=Q=>Q?Q.type?Q.type:Q.label?Q.prop:"":"",z=()=>typeof r.slots.default=="function"?r.slots.default():[],U=(Q,oe={})=>{for(let re in oe){const ce=oe[re];typeof ce!="function"&&(Q[re]=ce)}},N=n.computed(()=>{const Q=z(),oe=new Map;if(x=[],Q.forEach(re=>{const ge=re;if(!ge.props)return;const me=E(ge.props);oe.set(me,ge);const Ke={label:"",prop:""};U(Ke,ge.props),x.push(Ke)}),O.value.length===x.length){const re=[];for(let ce of O.value){const ge=E(ce),me=oe.get(ge);if(!me)return Q;if(ce.visible===!1)continue;const Ke=me;Ke.props.fixed=ce.fixed,re.push(Ke)}return re}return Q}),H=n.shallowRef(new Map),ee=({column:Q,rowIndex:oe})=>{const re=`${oe}_${Q.property}`;return H.value.get(re)??""},le=Q=>typeof Q=="function"?oe=>{const re=[];let ce=ee(oe);return ce&&re.push(ce),ce=Q(oe),ce&&re.push(ce),re.length===0?"":re.join(" ")}:ee,se=(Q,oe,re)=>{const ce=`${Q}_${oe}`;re?H.value.set(ce,re):H.value.delete(ce),n.triggerRef(H)},ae=n.ref();return be({clearSelection:()=>ae?.value.clearSelection(),getSelectionRows:()=>ae?.value.getSelectionRows(),toggleRowSelection:(Q,oe)=>{ae?.value.toggleRowSelection(Q,oe)},toggleRowSelectionByProp:(Q,oe)=>{if(!L.value)return;const re=wn(L.value,Q);re.length!==0&&re.forEach(ce=>{ae?.value.toggleRowSelection(ce,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(Q,oe)=>{ae?.value.toggleRowExpansion(Q,oe)},toggleRowExpansionByProp:(Q,oe)=>{if(!L.value)return;const re=wn(L.value,Q);re.length!==0&&re.forEach(ce=>{ae?.value.toggleRowExpansion(ce,oe)})},setCurrentRow:Q=>{ae?.value.setCurrentRow(Q)},setCurrentRowByProp:Q=>{if(!L.value)return;const oe=wn(L.value,Q);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>W.value,clearSort:()=>{ae?.value.clearSort()},clearFilter:Q=>{ae?.value.clearFilter(Q)},doLayout:()=>{ae?.value.doLayout()},sort:(Q,oe)=>{ae?.value.sort(Q,oe)},scrollTo:(Q,oe)=>{ae?.value.scrollTo(Q,oe)},setScrollTop:Q=>{ae?.value.setScrollTop(Q)},setScrollLeft:Q=>{ae?.value.setScrollLeft(Q)},loadData:Z,clearData:F,getData(){return L.value},getTotalSize(){return q.value},getPageIndex(){return g.value},getPageSize(){return f.value},getColumnSetting:j,setColumnSetting:G,removeColumnSetting:K,setCellClassName:se}),()=>{const oe={...He(r.attrs),onCurrentChange:X,onRowClick:J,onExpandChange:I,data:L.value,ref:ae,class:s.value,"cell-class-name":le(l.cellClassName)},re={};if(r.slots.default&&(re.default=()=>N.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),h===!0){const Be=[];if(B.value){const vt=n.h(Ee.Loading,{class:`${u}__infinite-icon`});Be.push(vt);const hn=n.h("span",{class:`${u}__infinite-text`},[l.loadText]);Be.push(hn)}else{const vt=n.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);Be.push(vt)}const tt={ref:A,class:`${u}__infinite`},dn=n.h("div",tt,Be);re.append=()=>dn}const ce=n.h(y.ElTable,oe,re),ge=[];if(ge.push(ce),!h){let Be=null;if(typeof r.slots.pagination=="function")Be=r.slots.pagination();else if(l.showPagination){const tt={class:m.value,total:q.value,pageSize:f.value,"onUpdate:pageSize":$,pageSizes:l.pageSizes,currentPage:g.value,"onUpdate:currentPage":k,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};Be=n.h(y.ElPagination,tt)}if(l.showSetting){const tt=[];Be&&tt.push(Be);const dn=n.h(y.ElIcon,{class:c.value},{default:()=>n.h(Ee.Setting)}),vt=Qo(l,xn),hn=n.h(un,{...vt,tableRef:{getColumnSetting:j,setColumnSetting:G,removeColumnSetting:K}},{default:()=>dn});tt.push(hn);const Wr=n.h("div",{class:d.value},tt);ge.push(Wr)}else Be&&ge.push(Be)}const me={default:()=>ge},st={...Ne(l,io,so,xn)};return l.prop&&(st.prop=`${l.prop}_item`),st.contentClass=`${u}__wrap`,st.errorMarkClass="is-table-error",w.value&&P()&&(st["appear-listen"]=!0,st.onAppear=V),n.h(o,st,me)}}}}const{componentName:Au,create:Lu,scope:Mu}=ie("table-item"),cl=Lu(Ru(Au,Mu,Se));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 Bu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let _u=class{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function qu(){const e=n.getCurrentInstance();return new _u(e.proxy)}function Ar(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const l=gt(e,t),r=gt(e,o);if(l!==r)return!1;const a=Ot(e,t),i=Ot(e,o);return a===i}function ju(e,t,o,l){if(l.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of l){let i=!1;if(o==="text")i=gt(e,a)===t;else if(o==="item")i=Ar(e,a,t);else{let u=Ot(e,a);u==null&&(u=gt(e,a)),i=u===t}if(i){r=a;break}}return r}function zu(e){return{text:e,value:e}}function Hu(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 Ku(e,t,o){return{inheritAttrs:!0,props:{...we,...ke,...uo},emits:["change","update:modelValue","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=n.ref(null),m=n.ref(null),v=(w,C,p,_=!0)=>{const Z=ju(l,w,C,p);if(Z===null){if(m.value===null)return;m.value=null,d.value=null,_&&(c("update:modelValue",null),c("change",null));return}if(!Ar(l,Z,m.value)){d.value=w;const T=n.toRaw(Z);m.value=T;let V=null;l.valueType==="text"?V=gt(l,T):l.valueType==="item"?V=T:V=Ot(l,T),_&&(c("update:modelValue",V),c("change",V))}},b=n.ref([]),g=Pe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,w=>ue(w)),f=qu(),h=async(w,C)=>{if(w){const p=await f.load("radio",w,C);if(p.length>0)if(typeof p[0]=="string"){let F=p.map(T=>zu(T));b.value=F}else b.value=p}};n.watch([()=>l.source,()=>l.params],async([w,C])=>{h(w,C)},{immediate:!g.value});let P=!1;const k=()=>{P||(P=!0,h(l.source,l.params))};n.watch([()=>b.value,()=>l.modelValue],([w,C])=>{v(C,l.valueType,w,!1),c("setValue",C)});const $=e,B=n.computed(()=>({[$]:!0,[`is-${l.direction}`]:!0})),q=w=>{v(w,"value",b.value,!0)};let L=de(l,"hintText"),M=de(l,"hintVisible");const R=(w,C)=>{const p=[];return w.forEach((_,Z)=>{const F=Ot(l,_),T=gt(l,_);let V=Bu(l,_);i.value===!0&&(V=i.value),s.value===!0&&(V=s.value);const A=Hu(l,_,Z)??{},W=`${F}_${Z}`,X={...A,key:W,value:F,size:l.size,border:ue(l.border)};V&&(X.disabled=V),l.itemType==="button"?p.push(n.h(y.ElRadioButton,X,{default:()=>[T]})):typeof C=="function"?p.push(n.h(y.ElRadio,X,{default:()=>C(_)})):p.push(n.h(y.ElRadio,X,{default:()=>[T]}))}),p};return be({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const C={...He(r.attrs),class:B.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,onChange:q},p=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(b.value,r.slots.text);const Z=n.h(y.ElRadioGroup,C,_);p.push(Z);const F={default:()=>p};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const V={...Ne(l,uo),hintText:L.value,hintVisible:M.value};return l.prop&&(V.prop=`${l.prop}_item`),g.value&&(V["appear-listen"]=!0,V.onAppear=k),n.h(o,V,F)}}}}const{componentName:Wu,create:Yu,scope:Gu}=ie("radio-item"),fl=Yu(Ku(Wu,Gu,Se));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 Uu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Xu=class{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function Zu(){const e=n.getCurrentInstance();return new Xu(e.proxy)}function Lr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const l=pt(e,t),r=pt(e,o);if(l!==r)return!1;const a=ht(e,t),i=ht(e,o);return a===i}function Qu(e,t,o,l){if(l.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of l){let u=!1;if(o==="text")u=pt(e,i)===a;else if(o==="item")u=Lr(e,i,a);else{let s=ht(e,i);s==null&&(s=pt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function Ju(e){return{text:e,value:e}}function ec(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 tc(e,t,o){return{inheritAttrs:!0,props:{...we,...ke,...co},emits:["change","update:modelValue","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=n.ref([]),m=n.ref([]),v=(w,C,p,_=!0)=>{const Z=Qu(l,w,C,p);if(Z===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],_&&(c("update:modelValue",[]),c("change",[]));return}let F=!0;if(Z.length!==m.value.length)F=!1;else for(let T=0;T<Z.length;T++){const V=Z[T],A=m.value[T];if(!Lr(l,V,A)){F=!1;break}}if(!F){m.value=Z;let T=[],V=[];Z.forEach(W=>{T.push(ht(l,W)),l.valueType==="text"?V.push(pt(l,W)):l.valueType==="item"?V.push(W):V.push(ht(l,W))}),d.value=T;const A=n.toRaw(V);_&&(c("update:modelValue",A),c("change",A))}},b=n.ref([]),g=Pe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,w=>ue(w)),f=Zu(),h=async(w,C)=>{if(w){const p=await f.load("checkbox",w,C);if(p.length>0)if(typeof p[0]=="string"){let F=p.map(T=>Ju(T));b.value=F}else b.value=p}};n.watch([()=>l.source,()=>l.params],async([w,C])=>{h(w,C)},{immediate:!g.value});let P=!1;const k=()=>{P||(P=!0,h(l.source,l.params))};n.watch([()=>b.value,()=>l.modelValue],([w,C])=>{v(C,l.valueType,w,!1),c("setValue",C)});const $=e,B=n.computed(()=>({[$]:!0,[`is-${l.direction}`]:!0})),q=w=>{v(w,"value",b.value,!0)};let L=de(l,"hintText"),M=de(l,"hintVisible");const R=(w,C)=>{const p=[];return w.forEach((_,Z)=>{const F=ht(l,_),T=pt(l,_);let V=Uu(l,_);i.value===!0&&(V=i.value),s.value===!0&&(V=s.value);const A=ec(l,_,Z)??{},W=`${F}_${Z}`,X={...A,key:W,class:l.itemClass,value:F,size:l.size,border:ue(l.border)};V&&(X.disabled=V),l.itemType==="button"?p.push(n.h(y.ElCheckboxButton,X,{default:()=>[T]})):typeof C=="function"?p.push(n.h(y.ElCheckbox,X,{default:()=>C(_)})):p.push(n.h(y.ElCheckbox,X,{default:()=>[T]}))}),p};return be({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const C={...He(r.attrs),class:B.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,max:xe(l.max),min:xe(l.min),onChange:q},p=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(b.value,r.slots.text);const Z=n.h(y.ElCheckboxGroup,C,_);p.push(Z);const F={default:()=>p};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const V={...Ne(l,co),hintText:L.value,hintVisible:M.value};return l.prop&&(V.prop=`${l.prop}_item`),g.value&&(V["appear-listen"]=!0,V.onAppear=k),n.h(o,V,F)}}}}const{componentName:nc,create:lc,scope:oc}=ie("checkbox-item"),dl=lc(tc(nc,oc,Se)),fo={modelValue:{type:[Number,String],required:!1}};function rc(e,t,o){return{props:{...we,...ke,...fo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=de(l,"modelValue",P=>xe(P),c),m=e,v=n.computed(()=>({[m]:!0})),b=P=>{c("update:modelValue",P),c("change",P)};let g=de(l,"hintText"),f=n.ref(!1);const h=n.ref();return be({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const k={...He(r.attrs),ref:h,class:v.value,readonly:s.value||i.value,modelValue:d.value,onChange:b},$={},B=[],q=n.h(y.ElRate,k,$);B.push(q);const L={default:()=>B};r.slots.default&&(L.label=r.slots.default),r.slots.fixedTip&&(L.fixedTip=r.slots.fixedTip);const R={...Ne(l,fo),hintText:g.value,hintVisible:f.value};return l.prop&&(R.prop=`${l.prop}_item`),n.h(o,R,L)}}}}const{componentName:ac,create:ic,scope:sc}=ie("rate-item"),hl=ic(rc(ac,sc,Se)),ho={modelValue:{type:[Boolean,String,Number],required:!1}};function uc(e,t,o){return{props:{...we,...ke,...ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=de(l,"modelValue",null,c),m=e,v=n.computed(()=>({[m]:!0})),b=P=>{c("update:modelValue",P),c("change",P)};let g=de(l,"hintText"),f=de(l,"hintVisible");const h=n.ref();return be({setDisabled:P=>{a.value=P},setReadonly:P=>{u.value=P}}),()=>{const k={...He(r.attrs),ref:h,class:v.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:b},$={},B=[],q=n.h(y.ElSwitch,k,$);B.push(q);const L={default:()=>B};r.slots.default&&(L.label=r.slots.default),r.slots.fixedTip&&(L.fixedTip=r.slots.fixedTip);const R={...Ne(l,ho),hintText:g.value,hintVisible:f.value};return l.prop&&(R.prop=`${l.prop}_item`),n.h(o,R,L)}}}}const{componentName:cc,create:fc,scope:dc}=ie("switch-item"),ml=fc(uc(cc,dc,Se)),mo={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function hc(e,t,o){return{props:{...we,...ke,...mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),c=n.ref(!1),{emitEvent:d}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),m=de(l,"modelValue",null,d),v=e,b=n.computed(()=>({[v]:!0})),g=M=>{d("update:modelValue",M),d("change",M)};let f=de(l,"hintText"),h=n.ref(!1);const P=M=>{let w=M.target.value;c.value=!0,pe(f.value)||(h.value=!0),d("focus",w,M)},k=M=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let w=M.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),B.value||d("blur",w,M)},$=()=>{d("clear","")},B=n.ref(!1),q=M=>{B.value=M,d("visible-change",M),M||d("selected")},L=n.ref();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},setDisabled:M=>{a.value=M},setReadonly:M=>{u.value=M}}),()=>{const R={...He(r.attrs),ref:L,class:b.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":g,onClear:$,onFocus:P,onBlur:k,onVisibleChange:q},w={};r.slots.option&&(w.default=r.slots.option);const C=[],p=n.h(y.ElTreeSelect,R,w);C.push(p);const _={default:()=>C};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ne(l,mo),hintText:f.value,hintVisible:h.value};return l.prop&&(F.prop=`${l.prop}_item`),n.h(o,F,_)}}}}const{componentName:mc,create:gc,scope:pc}=ie("tree-select-item"),gl=gc(hc(mc,pc,Se)),vc={},yc={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"};function bc(e,t){return n.openBlock(),n.createElementBlock("svg",yc,t[0]||(t[0]=[n.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)]))}const xc=Me(vc,[["render",bc]]),{componentName:Bh,create:wc,scope:_h}=ie("group-setting"),Sc={groupProp:{type:[String]},groupRef:{type:[Object]},popoverPlacement:{type:[String],required:!1,default:"bottom"},popoverWidth:{type:[String,Number],required:!1,default:280},title:{type:[String],required:!1,default:"条件筛选"},resetText:{type:[String],required:!1,default:"重置"},initDelay:{type:[Number],required:!1,default:50},toTopText:{type:[String],required:!1,default:"到顶部"},toBottomText:{type:[String],required:!1,default:"到底部"}},Tc=wc({components:{FoxPopover:y.ElPopover,FoxCheckbox:y.ElCheckbox,FoxCheckboxGroup:y.ElCheckboxGroup,FoxButton:y.ElButton,FoxIcon:y.ElIcon,DragIcon:xc,Download:Ee.Download,RefreshLeft:Ee.RefreshLeft},props:{...Sc},emits:["change"],setup(e,{emit:t,attrs:o,expose:l}){let r=null;const a=n.ref([]),i=Rr(),u=I=>I.length>1,s=()=>{const I=[],S=[...a.value];a.value=S.map((O,x)=>(O.visible!==!1&&I.push(O.prop),{...O,sortIndex:x})),a.value.length===I.length?f.value=!0:I.length>0&&(h.value=!0),$.value=I},c=I=>{let S=null;if(typeof I=="string")S=document.querySelectorAll(`.fox-group[prop="${I}"] > div > .fox-item[prop]`);else if(I&&typeof I=="object"){const O=I.$el??I;typeof O.querySelectorAll=="function"&&(S=O.querySelectorAll(".fox-item[prop]"))}if(!S)return[];const D=[];return S.forEach(O=>{const x=O.querySelector(".label--string");let j="";x&&(j=x.textContent??"");const G=O.getAttribute("prop")??"",Y=window.getComputedStyle(O,null).getPropertyValue("display");D.push({label:j,prop:G,sortIndex:0,visible:Y!=="none"})}),D},d=()=>{if(!r){const I=c(e.groupRef??e.groupProp);if(I.length===0)return!1;r=I}return!0},m=async(I=!1)=>{const S=await i.load(e.groupProp),D=O=>{if(!O||!r)return;const x=r.map(j=>({...j}));Array.isArray(S)&&S.forEach(j=>{x.some(G=>{if(G.prop===j.prop){const te=G.label;return Object.assign(G,j),G.label=te,!0}return!1})}),a.value=x.sort((j,G)=>j.sortIndex-G.sortIndex),s(),I&&b(!1)};r?D(!0):Zt(d,e.initDelay,5,50,!1,D)},v=()=>{const I=r??[];a.value=I.map(S=>({...S})),s(),b()},b=(I=!0)=>{I&&i.save(e.groupProp,a.value);const S=a.value.map(D=>({...D}));t("change",S)},g=n.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=n.ref(!1),h=n.ref(!1),P=I=>{const S=[];a.value.forEach(O=>{I&&S.push(O.prop),O.visible=I}),f.value=!1,h.value=!1,a.value.length===S.length?f.value=!0:S.length>0&&(h.value=!0),$.value=S,b()},k=()=>{v()},$=n.ref([]),B=I=>{a.value.forEach(D=>{const O=I.indexOf(D.prop)!==-1;D.visible=O}),f.value=!1,h.value=!1;const S=a.value.length;I.length===S?f.value=!0:I.length>0&&(h.value=!0),b()},q=()=>{m()};n.onMounted(()=>{m(!0)});const L={currentRow:null,index:null},M=I=>I?I.dataset&&I.dataset.role==="row"?I:I.tagName.toLowerCase()!=="body"?(I=I.parentElement,M(I)):null:null,R=I=>{const S=I.currentTarget;S&&S.dataset&&(L.index=S.dataset.index)},w=I=>{L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null),L.index=null},C=I=>{const S=I.currentTarget;I.relatedTarget;const D=M(S);D&&(I.preventDefault(),L.currentRow&&L.currentRow!==D&&L.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),L.currentRow=D)},p=I=>{I.preventDefault(),L.currentRow&&(L.currentRow.classList.remove("is-dragover"),L.currentRow=null)},_=I=>{const S=I.currentTarget,D=M(S);if(!D)return;I.preventDefault();const O=Number(L.index),x=Number(D.dataset.index);if(O!==x){if(O<x){const j=a.value[O];a.value.splice(O,1),a.value.splice(x,0,j)}else{const j=a.value[O];a.value.splice(O,1),a.value.splice(x+1,0,j)}s(),b()}},Z=I=>{const S=a.value[I];a.value.splice(I,1),a.value.splice(0,0,S),s(),b()},F=I=>{const S=a.value[I];a.value.splice(I,1),a.value.push(S),s(),b()};l({refresh:()=>{r=null,m(!1)}});const T=new Map;let V=null;function A(I){const S=document.createRange();return S.setStart(I,0),S.setEnd(I,I.childNodes.length),S.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:P,handleReset:k,checkedValue:$,handleCheckChange:B,onShow:q,onDragStart:R,onDragEnd:w,onDragOver:C,onDragLeave:p,onDrop:_,checkboxLabelStyle:g,toTop:Z,toBottom:F,onMouseOverForOverflowText:(I,S,D)=>{const O=I.currentTarget;if(O){const x=Math.floor(O.offsetWidth);if(Math.floor(A(O))>x){let G=T.get(S);if(G){if(G===V)return;Oe.hide(G)}G=Oe.show(O,D,{type:"text",placement:"top",closeOnClick:!1}),T.set(S,G),V=G}}},onMouseLeaveForOverflowText:(I,S)=>{const D=T.get(S);D&&(Oe.hide(D),D===V&&(V=null))},onMouseOverForTip:(I,S)=>{const D=I.currentTarget;D&&(V&&Oe.hide(V),V=Oe.show(D,S,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:I=>{V&&(Oe.hide(V),V=null)}}}}),$c={class:"fox-group-setting"},Cc={class:"fox-group-setting__header"},Ec={class:"fox-group-setting__body"},Nc={class:"fox-group-setting__body-list","data-role":"container"},kc=["data-index","draggable"],Ic=["onMouseover","onMouseleave"],Oc={class:"tools-item"};function Pc(e,t,o,l,r,a){const i=n.resolveComponent("FoxCheckbox"),u=n.resolveComponent("FoxButton"),s=n.resolveComponent("DragIcon"),c=n.resolveComponent("Download"),d=n.resolveComponent("FoxIcon"),m=n.resolveComponent("FoxCheckboxGroup"),v=n.resolveComponent("FoxPopover");return n.openBlock(),n.createBlock(v,n.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("div",$c,[n.createElementVNode("div",Cc,[n.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=b=>e.isCheckAll=b),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),n.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),n.createElementVNode("div",Ec,[n.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=b=>e.checkedValue=b),onChange:e.handleCheckChange},{default:n.withCtx(()=>[n.createElementVNode("div",Nc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.itemPropertyList,b=>(n.openBlock(),n.createElementBlock("div",{key:b.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":b.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",label:b.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,b.prop,b.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,b.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(b.label),45,Ic)]),_:2},1032,["label"]),n.createElementVNode("div",Oc,[n.createVNode(d,{onClick:g=>e.toTop(b.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:g=>e.toBottom(b.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"])])],40,kc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const pl=Me(Tc,[["render",Pc]]),Vc=["aria-labelledby"],Dc=n.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),Fc=[Dc],Rc=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Fc,14,Vc))}}),Ac=["aria-labelledby"],Lc=n.createElementVNode("path",{d:"M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Mc=[Lc],vl=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Mc,14,Ac))}}),Bc=["aria-labelledby"],_c=n.createElementVNode("path",{d:"M981.577 1024c-11.703 0-23.406-2.926-32.183-11.703L13.166 76.07c-14.629-17.555-14.629-46.812 0-64.366 17.554-14.629 46.811-14.629 64.365 0L1013.76 947.93c17.554 17.555 17.554 43.886 0 61.44-8.777 11.703-20.48 14.629-32.183 14.629zm-936.228 0c-11.703 0-23.406-2.926-32.183-11.703-17.555-17.554-17.555-43.886 0-61.44L949.394 14.63c17.555-17.555 43.886-17.555 61.44 0 17.555 17.554 17.555 43.885 0 61.44L74.606 1012.297C68.754 1021.074 57.05 1024 45.349 1024z",fill:"currentColor","fill-opacity":"0.9"},null,-1),qc=[_c],jc=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},qc,14,Bc))}}),zc=["aria-labelledby"],Hc=n.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),Kc=[Hc],Wc=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Kc,14,zc))}}),Yc=["aria-labelledby"],Gc=n.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),Uc=[Gc],Xc=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.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={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],Qc=(e,t)=>t[e.visibleKey],po=(e,t)=>t[e.disabledKey],Jc=(e,t)=>{const o=t[e.doitKey];return ue(o)},ef=(e,t)=>{const o=t[e.numKey];return o==null?null:xe(t[o])},vo=(e,t,o)=>{const l=e.itemOptions;return typeof l=="function"?l(t,o):l||null};function tf(e,t,o,l=!1){return{props:{...Zc},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=n.computed(()=>{const I={};return I[`${e}`]=!0,I}),s=n.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}),c=n.computed(()=>({})),d=n.computed(()=>{if(!r.gutter)return 0;const I=he(r.gutter);return I<=0?0:I}),m=n.ref(r.modelValue);n.watch(()=>r.modelValue,I=>{m.value!==I&&(m.value=I,A(!1))});const v=n.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=n.computed(()=>{const I={};return f.value||(I.display="none"),I}),g=n.ref(),f=n.ref(!1),h=()=>{const I=!f.value;P(I)},P=I=>{const S=I;S?(f.value=S,setTimeout(()=>{v.value["fox-tabs-bar__popup--show"]=!0,v.value["fox-tabs-bar__popup--hide"]=!1},0)):(v.value["fox-tabs-bar__popup--show"]=!1,v.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},k=n.ref(),$=n.ref([]),B=(I,S)=>{$.value[S]=I},q=I=>S=>{B(S,I)},L=(I,S)=>{const D=k.value,O=$.value;if(!D||!O||!O[I])return;const x=O[I];let j=0;r.direction==="vertical"?j=x.offsetTop-(D.offsetHeight-x.offsetHeight)/2:j=x.offsetLeft-(D.offsetWidth-x.offsetWidth)/2,M(D,j,S?0:.3,r.direction)},M=(I,S,D,O)=>{let x=0;const j=O==="horizontal"?I.scrollLeft:I.scrollTop,G=D===0?1:Math.round(D*1e3/16);function te(){O==="horizontal"?I.scrollLeft+=(S-j)/G:I.scrollTop+=(S-j)/G,++x<G&&qn(te)}te()},R=(I,S)=>{const D=xt(r,I),O={};return O[`${e}__titles-item`]=!0,O.disabled=po(r,I),O.active=D===m.value,r.shape&&(O[`${r.shape}`]=!0),r.ellipsis&&(O.ellipsis=!0),S&&(S.class&&(O[`${S.class}`]=!0),S.disabled===!0&&(O.disabled=S.disabled)),O},w=(I,S)=>{const D={};if(d.value>0){const O=Math.abs(d.value/2);r.direction==="vertical"?(D["margin-top"]=`${O}px`,D["margin-bottom"]=`${O}px`):(D["margin-left"]=`${O}px`,D["margin-right"]=`${O}px`)}return S&&S.style&&Object.assign(D,S.style),D},C=(I,S)=>`${xt(r,I)??S}`,p=(I,S)=>{const D=xt(r,I),O={};O[`${e}__popup-item`]=!0,O.disabled=po(r,I),O.active=D===m.value,r.shape&&(O[`${r.shape}`]=!0);const x=vo(r,I,S);return x&&x.disabled===!0&&(O.disabled=x.disabled),O},_=n.computed(()=>(r.data??[]).filter(S=>Qc(r,S)!==!1)),Z=(I,S)=>{const D=xt(r,I);if(m.value==D)return;const O=()=>{m.value=D,r.scroll&&L(S,!1),i("update:modelValue",D),i("change",I,S)};if(typeof r.beforeChange=="function"){const x=r.beforeChange(I,S);jo(x)?x.then(j=>{j!==!1&&O()}).catch(()=>{O()}):x!==!1&&O()}else O()},F=(I,S)=>function(){Z(I,S)},T=(I,S)=>{Z(I,S),P(!1)},V=(I,S)=>function(){T(I,S)},A=I=>{if(!Array.isArray(r.data)||!r.scroll)return;const S=r.data.findIndex(D=>xt(r,D)===m.value);S!==-1&&L(S,I)};n.watch(()=>r.data,()=>{setTimeout(A,0)}),n.onMounted(()=>{A(!0)});const W=(I,S)=>{if(a.item)return a.item({item:I,index:S});const D=vo(r,I,S),O=[];if(a.text){const te=a.text({item:I,index:S});O.push(te)}else{const te=[];if(D?.doit===!0||Jc(r,I)){const z={class:[`${e}__titles-item-tip`,"doit"]},U=n.h("view",z);te.push(U)}const Y=D?.num??ef(r,I);if(Y){let z="";const U=xe(Y);U>=100?z="99+":z=`${U}`;const N={class:[`${e}__titles-item-tip`,"num"]},H=n.h("view",N,[z]);te.push(H)}const K={class:`${e}__titles-item-text`};te.push(go(r,I));const E=n.h("view",K,te);O.push(E)}const x={class:`${e}__titles-item-line`},j=n.h("view",x);O.push(j);const G={ref:q(S),class:R(I,D),style:w(I,D),key:C(I,S),onClick:F(I,S)};return n.h("view",G,O)},X=()=>{const I=a.default?a.default():[];if(I.length===0)for(let D=0;D<_.value.length;D++){const O=_.value[D],x=W(O,D);I.push(x)}const S={ref:k,class:s.value,style:c.value};return n.h("view",S,I)},J=()=>{let I=null;a.navigation?I=a.navigation():I=n.h(o);const S={class:`${e}__navigation`,onClick:h};return n.h("view",S,[I])},ne=()=>{const I=[];for(let D=0;D<_.value.length;D++){const O=_.value[D];let x=null;a.popupItem?x=a.popupItem({item:O,index:D}):x=go(r,O);const j={class:p(O,D),key:C(O,D),onClick:V(O,D)},G=n.h("view",j,[x]);I.push(G)}const S={class:v.value,style:b.value};return n.h("view",S,I)};return()=>{const I=[],S=X();if(I.push(S),r.showQuickNavigation){const O=J();I.push(O);const x=ne();I.push(x)}const D={class:u.value};return n.h("view",D,I)}}}}const{create:nf,componentName:lf,scope:of}=ie("tabs-bar"),yl=nf(tf(lf,of,Rc,!1)),Mr=Symbol("TabsStatesKey"),rf={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function af(e,t,o=!1){return{props:{...rf},emits:["update:modelValue","change"],setup(l,{emit:r,slots:a}){const i=n.shallowRef([]),u={current:n.ref(l.modelValue??""),direction:n.ref(l.direction),tabWidth:n.ref(-1),tabHeight:n.ref(-1),add:f=>{const h={name:f};u.current.value===f&&(h.loaded=!0),i.value.push(h),n.triggerRef(i)},remove:f=>{const h=i.value.findIndex(P=>P.name===f);h!==-1&&i.value.splice(h,1)},isLoaded:f=>{if(!l.lazy)return!0;const h=i.value.findIndex(P=>P.name===f);return h!==-1?u.current.value?i.value[h].loaded??!1:h===0:!1}};n.provide(Mr,u);const s=f=>{const h=i.value.findIndex(P=>P.name===f);h!==-1&&(i.value[h].loaded=!0,n.triggerRef(i))};n.watch([()=>l.modelValue,()=>l.direction],([f,h])=>{u.current.value!==f&&(u.current.value=f??"",s(f??"")),u.direction.value!==h&&(u.direction.value=h)});const c=n.ref(null),d=n.ref(null),m=n.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let v=!0;const b=n.computed(()=>{const f={},h=i.value.length;if(h<=0)return f;const P=i.value.findIndex(k=>k.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(f.height=`${h*u.tabHeight.value}px`,P!==-1&&(f.transform=`translate(0, -${P*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(f.width=`${h*u.tabWidth.value}px`,P!==-1&&(f.transform=`translate(-${P*u.tabWidth.value}px, 0)`)),v&&(v=!1,f.transition="transform 0s ease"),f});let g=null;return n.onMounted(()=>{if(!c.value)return;const f=()=>{const h=en(c.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height};window.ResizeObserver&&(g=new window.ResizeObserver(f),g.observe(c.value)),f()}),n.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const f={class:`${e}__panes`,style:b.value,ref:d},h=n.h("view",f,[a?.default?.()]),P={class:m.value,ref:c};return n.h("view",P,[h])}}}}const{create:sf,componentName:uf,scope:cf}=ie("tabs-container"),bl=sf(af(uf,cf,!1)),ff={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function df(e,t,o){return{props:{...ff},setup(l,{emit:r,slots:a}){const i=n.inject(Mr);n.onMounted(()=>{i.add(l.paneKey)}),n.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=n.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=n.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const m={class:`${e}__empty-icon`},v=l.emptyIcon??o,b=n.h(v,m),g={class:`${e}__empty-text`},f=l.emptyText??"Loading",h=n.h("view",g,[f]),P={class:`${e}__empty`},k=n.h("view",P,[b,h]);c.push(k)}const d={class:`${e}`,style:u.value};return n.h("view",d,c)}}}}const{create:hf,componentName:mf,scope:gf}=ie("tabs-pane"),xl=hf(df(mf,gf,vl)),pf={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function vf(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 yf(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 bf{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await Reflect.apply(r,null,[o,l]))}}function xf(){const e=n.getCurrentInstance();return new bf(e.proxy)}function wf(e,t,o,l){return{props:{...pf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=xf(),c=n.ref([]),d=n.computed(()=>c.value.filter(S=>yf(r,S)!==!1)),m=n.ref(-1),v=()=>{const S=r.modelValue,D=d.value.findIndex(O=>yo(r,O)===S);m.value!==D&&(m.value=D,r.scroll&&ne(D))};n.watch([()=>r.modelValue,d],()=>{v()});const b=S=>m.value===S,g=S=>{if(S<0&&S>=d.value.length)return!1;const D=d.value[S],x=(Tn(r,D,S)??{}).status??Sn(r,D);return b(S)||x},f=n.computed(()=>{const S={[u]:!0};return r.mode?S[`is-${r.mode}`]=!0:r.direction&&(S[`is-${r.direction}`]=!0),r.scroll&&(S["is-scroll"]=!0),S}),h=n.computed(()=>({})),P=(S,D,O,x,j)=>{const G={[`${u}__step`]:!0};return j&&(G[`${j}`]=!0),G[`${k.value}`]=!0,x&&(G["is-doit"]=!0),S===m.value?G["is-active"]=!0:D==="done"?G["is-done"]=!0:D==="error"?G["is-error"]=!0:D==="half"?G["is-half"]=!0:O?G["is-disabled"]=!0:G["is-normal"]=!0,G},k=n.computed(()=>{if(r.mode==="simple")return"start";let S=r.align;return S||(r.direction==="vertical"?S="start":S="center"),S}),$=(S,D={})=>{const O={...D};return k.value==="start"&&S===d.value.length-1?O.flex="0 0 auto":r.step?r.direction==="vertical"?O.height=r.step:O.width=r.step:O.flex="1 1 100%",O},B=(S,D)=>{let O={};if(D<d.value.length-1){const x=D+1;g(D)&&g(x)?r.direction==="vertical"?O.height="100%":O.width="100%":O.opacity="0"}return O},q=S=>d.value.length-1===S,L=(S,D)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&D>m.value||m.value===D)return;const O=m.value,x=D;m.value=D,r.scroll&&ne(D);const j=yo(r,S);i("update:modelValue",j);const G={fromIndex:O,currentIndex:x,item:S,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",j,G)},M=n.ref(!0),R=async(S,D)=>{try{const O=await s.load("stesbar",S,D);Array.isArray(O)&&(c.value=O),M.value=!1}catch(O){console.error("[FoxUI] Load StepsBar Data Fail",O),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};n.watch([()=>r.data,()=>r.params],async([S,D])=>{S&&R(S,D)},{immediate:!0});const w=(S,D,O,x,j)=>{let G=null;if(a.icon)G=a.icon({item:S,index:D,status:x});else if(x==="done"){const Y={};r.iconSize&&(Y.width=r.iconSize,Y.height=r.iconSize);const K=r.icon??o;G=n.h(K,Y)}else{const Y=O??`${D+1}`;G=n.h("span",{},[Y])}const te={class:"fox-steps-bar__icon",onClick:()=>{j||L(S,D)}};return n.h("view",te,[G])},C=(S,D,O)=>{const x=n.h("i",{class:"fox-steps-bar__line-inner",style:B(S,D)});return n.h("view",{class:"fox-steps-bar__line"},[x])},p=()=>{let S=null;if(a.markIcon)S=a.markIcon();else{const O={};r.iconSize&&(O.width=r.markIconSize,O.height=r.markIconSize);const x=r.markIcon??l;S=n.h(x,O)}return n.h("view",{class:"fox-steps-bar__mark"},[S])},_=(S,D,O,x,j)=>{const G=[];if(!q(D)){const K=C(S,D);G.push(K)}const te=w(S,D,O,x,j);G.push(te);const Y={class:"fox-steps-bar__head"};return n.h("view",Y,G)},Z=(S,D,O,x)=>{let j=null;a.main?j=a.main({item:S,index:D,status:O}):j=vf(r,S);const G={class:"fox-steps-bar__main",onClick:()=>{x||L(S,D)}};return n.h("view",G,[j])},F=(S,D,O)=>{let x=null;if(a.sub){x=a.sub({item:S,index:D,status:O});const j={class:"fox-steps-bar__sub"};return n.h("view",j,[x])}return null},T=(S,D)=>{const O=Tn(r,S,D)??{},x=O.status??Sn(r,S);let j=bo(r,S);O.disabled===!0&&(j=!0),r.disabled===!0&&(j=!0);const G=O.label??wo(r,S),te=[],Y=w(S,D,G,x,j);Y&&te.push(Y);const K=Z(S,D,x,j);if(K&&te.push(K),!q(D)){const ee=C(S,D);ee&&te.push(ee)}const E=n.h("view",{class:"fox-steps-bar__head"},te),z=O.class,U=O.style??{};let N=xo(r,S);O.doit===!0&&(N=!0);const H={ref:J(D),class:P(D,x,j,N,z),style:$(D,U)};return n.h("view",H,[E])},V=(S,D)=>{const O=Tn(r,S,D)??{},x=O.status??Sn(r,S);let j=bo(r,S);O.disabled===!0&&(j=!0),r.disabled===!0&&(j=!0);const G=O.label??wo(r,S),te=[],Y=r.layout;for(let N of Y)if(N==="head"){const H=_(S,D,G,x,j);te.push(H)}else if(N==="main"){const H=Z(S,D,x,j);te.push(H)}else if(N==="sub"){const H=F(S,D,x);te.push(H)}else if(N==="mark"){const H=p();te.push(H)}const K=O.class,E=O.style??{};let z=xo(r,S);O.doit===!0&&(z=!0);const U={ref:J(D),class:P(D,x,j,z,K),style:$(D,E)};return n.h("view",U,te)},A=n.ref(),W=n.ref([]),X=(S,D)=>{W.value[D]=S},J=S=>D=>{X(D,S)},ne=(S,D)=>{const O=A.value,x=W.value;if(!O||!x||!x[S])return;const j=x[S];let G=0;r.direction==="vertical"?G=j.offsetTop-(O.offsetHeight-j.offsetHeight)/2:G=j.offsetLeft-(O.offsetWidth-j.offsetWidth)/2,I(O,G,.3,r.direction)},I=(S,D,O,x)=>{let j=0;const G=x==="horizontal"?S.scrollLeft:S.scrollTop,te=Math.round(O*1e3/16);function Y(){x==="horizontal"?S.scrollLeft+=(D-G)/te:S.scrollTop+=(D-G)/te,++j<te&&qn(Y)}Y()};return()=>{const S=[];if(r.mode==="simple")for(let O=0;O<d.value.length;O++){const x=d.value[O],j=T(x,O);S.push(j)}else for(let O=0;O<d.value.length;O++){const x=d.value[O],j=V(x,O);S.push(j)}const D={ref:A,class:f.value,style:h.value};return n.h("view",D,S)}}}}const{componentName:Sf,create:Tf,scope:$f}=ie("steps-bar"),wl=Tf(wf(Sf,$f,Wc,Xc)),Cf=Symbol.for("InnerPageScopeKey"),Ef=Symbol.for("PageWrapperKey");function Nf(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,l){n.provide(Cf,!0);const r={};n.provide(Ef,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=n.ref(!0),u=s=>{i.value=s};return()=>{const c={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},d={};if(typeof l.slots.default=="function"){const m=l.slots.default();d.default=()=>m}return n.h(y.ElDialog,c,d)}}}}const{componentName:qh,create:kf,scope:jh}=ie("dialog-item"),Sl=kf(Nf());let wt=0;const So="fox-overflow-hidden",To=()=>it?document.body:{classList:[]},If=e=>[()=>{if(e())try{!wt&&To().classList.add(So),wt++}catch{}},()=>{if(e()&&wt)try{wt--,!wt&&To().classList.remove(So)}catch{}}],Of={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:Pf,create:Vf}=ie("overlay"),Df=Vf({props:{...Of},emits:["click","update:visible"],setup(e,{emit:t}){const[o,l]=If(()=>e.lockScroll),r=n.computed(()=>({[Pf]:!0,[e.overlayClass]:!0})),a=n.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return n.watch(()=>e.visible,u=>{u?o():l()}),{classes:r,style:a,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Ff(e,t,o,l,r,a){return n.openBlock(),n.createBlock(n.Transition,{name:"overlay-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),onClick:t[0]||(t[0]=n.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default")],6),[[n.vShow,e.visible]])]),_:3})}const cn=Me(Df,[["render",Ff]]),Rf={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},Br=2e3;let $o=Br;const Af=(e,t)=>({components:t,props:{...Rf},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=n.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=n.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=n.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=n.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==Br&&($o=Number(o.zIndex)),l("update:visible",!0),r.zIndex=++$o,o.destroyOnClose&&(r.showSlot=!0),l("open")},c=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{l("click-pop",f)},m=f=>{f.stopPropagation(),l("click-close-icon",f),l("update:visible",!1)},v=f=>{l("click-overlay",f),o.closeOnClickOverlay&&l("update:visible",!1)},b=f=>{l("opend",f)},g=f=>{l("closed",f)};return n.watch(()=>o.visible,f=>{o.visible?s():c()}),n.watch(()=>o.closeable,f=>{r.closed=f}),{...n.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:m,onClickOverlay:v,onOpened:b,onClosed:g}}}),{componentName:Lf,create:Mf}=ie("popup"),Bf=Mf(Af(Lf,{FoxOverLay:cn,Close:jc}));function _f(e,t,o,l,r,a){const i=n.resolveComponent("FoxOverLay"),u=n.resolveComponent("Close");return n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(n.openBlock(),n.createBlock(i,n.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"])):n.createCommentVNode("",!0),n.createVNode(n.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?n.renderSlot(e.$slots,"default",{key:0}):n.createCommentVNode("",!0),e.closed?(n.openBlock(),n.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:n.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[n.renderSlot(e.$slots,"close-icon",{},()=>[n.createVNode(u)])],2)):n.createCommentVNode("",!0)],6),[[n.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Tl=Me(Bf,[["render",_f]]),{create:qf}=ie("toast"),jf=qf({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){let o=null;const l=n.reactive({mounted:!1});n.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{l.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),n.watch(()=>e.duration,b=>{b&&i()});const s=n.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const b=he(e.iconSize);return n.h(e.icon,{width:b,height:b,color:e.iconColor})},d=n.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=n.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),zf={key:1,class:"fox-toast-title"},Hf=["innerHTML"];function Kf(e,t,o,l,r,a){return n.openBlock(),n.createBlock(n.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.toastBodyClass),style:n.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[n.createElementVNode("view",{class:"fox-toast-inner",style:n.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(e.toastIconWrapperClass)},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.renderIcon())))],2)):n.createCommentVNode("",!0),e.title?(n.openBlock(),n.createElementBlock("div",zf,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Hf)],4)],6),[[n.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const $l=Me(jf,[["render",Kf]]),Wf={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"}},Yf=(e,t,o)=>({props:{...Wf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:r}){const{emitEvent:a}=ur(),{toLocaleRefs:i}=Le.useFoxI18n(t),u=i(l,["placeholder"]),s=n.reactive({active:!1}),c=n.computed(()=>({background:l.background})),d=n.computed(()=>({background:l.inputBackground})),m=w=>{let p=w.target.value;l.maxLength&&p.length>Number(l.maxLength)&&(p=p.slice(0,Number(l.maxLength))),a("update:modelValue",p,w),a("change",p,w)},v=n.ref({}),b=w=>{let p=w.target.value;s.active=!0,v.value=l.focusStyle,a("focus",p,w)},g=w=>{setTimeout(()=>{s.active=!1},0);let p=w.target.value;l.maxLength&&p.length>Number(l.maxLength)&&(p=p.slice(0,Number(l.maxLength))),v.value={},a("blur",p,w)},f=w=>{a("update:modelValue","",w),a("change","",w),a("clear","")},h=n.computed(()=>String(l.modelValue).length>0),P=n.computed(()=>{const w={};return h.value||(w.display="none"),w}),k=()=>{a("search",l.modelValue)},$=w=>{a("keyup-input",w),w.key.toLocaleUpperCase()==="ENTER"&&k()},B=w=>{a("click-input",w)},q=w=>{a("click-left-icon",l.modelValue,w)},L=n.computed(()=>({textAlign:l.inputAlign})),M=n.ref(null);n.onMounted(()=>{l.autofocus&&M.value.focus()});const R=()=>{const w=[];if(r.leftin){const F={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:q},T=n.h("view",F,[r.leftin()]);w.push(T)}const C={ref:M,class:[`${e}__input-inner`],style:L.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:m,onFocus:b,onBlur:g,onkeyup:$},p=n.h("input",C);w.push(p);const _=[];if(l.clearable){const F={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:P.value,onClick:f},T=r?.clear?.()??l.clearIcon??o,V=n.h("view",F,[n.h(T)]);_.push(V)}if(r.rightin){const F={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},T=n.h("view",F,[r.rightin()]);_.push(T)}if(_.length>0){const F={class:`${e}__input-inner-right`},T=n.h("view",F,_);w.push(T)}const Z={class:[`${e}__search-input`,`${l.shape}`],style:{...d.value,...v.value}};return n.h("view",Z,w)};return()=>{const w=[];if(l.label){const _={class:`${e}__search-label`},Z=n.h("span",_,[l.label]);w.push(Z)}if(r.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Z=n.h("view",_,[r.leftout()]);w.push(Z)}const C=R();if(w.push(C),r.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Z=n.h("view",_,[r.rightout()]);w.push(Z)}const p={class:`${e}`,style:c.value};return n.h("view",p,w)}}}),{componentName:Gf,create:Uf,scope:Xf}=ie("searchbar"),Cl=Uf(Yf(Gf,Xf,Ee.CircleClose)),Zf=/scroll|auto|overlay/i,_r=window;function Qf(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Jf(e,t=_r){let o=e;for(;o&&o!==t&&Qf(o);){const{overflowY:l}=window.getComputedStyle(o);if(Zf.test(l))return o;o=o.parentNode}return t}function qr(e,t=_r){const o=n.ref();return n.onMounted(()=>{e.value&&(o.value=Jf(e.value,t))}),o}const jr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ed={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 td(e,t,o){return{props:{...ed},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Le.useFoxI18n(t),u=i(l,["pullText","loadText","loadMoreText"]),s=n.ref(),c=qr(s),d=n.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=n.computed(()=>({[e]:!0})),v=k=>k?k.offsetTop+v(k.offsetParent):0,b=()=>{let k=0,$=0,B="down";if(c.value==window){const q=jr();s.value&&(k=v(s.value)+s.value.offsetHeight-q-window.innerHeight),$=q}else{const{scrollHeight:q,clientHeight:L,scrollTop:M}=c.value;k=q-L-M,$=M}return d.beforeScrollTop>$?B="up":B="down",d.beforeScrollTop=$,r("scroll-change",$),k<=l.threshold&&B=="down"},g=()=>{Ao(()=>{if(!b()||!l.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),n.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",g,l.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",g,l.useCapture)};n.onMounted(()=>{f(),l.immediate&&g()}),n.onUnmounted(()=>{h()});const P=n.ref(!1);return n.onActivated(()=>{P.value&&(P.value=!1,f())}),n.onDeactivated(()=>{P.value=!0,h()}),n.watch(()=>l.modelValue,k=>{k||(d.isInfiniting=!1)}),()=>{const k={class:"fox-infinite__container"},$=n.h("view",k,[a?.default?.()]),B=[];if(d.isInfiniting){let R=a?.loading?.()??null;if(!R){let p=a?.loadingIcon?.()??null;if(!p){const F={class:["fox-infinite__bottom-box__img"]};p=n.h(o,F)}const _={class:"fox-infinite__bottom-box__text"},Z=n.h("view",_,[u.loadText.value]);R=[p,Z]}const w={class:"fox-infinite__bottom-box"},C=n.h("view",w,R);B.push(C)}else if(!l.hasMore){let R=a?.finished?.()??null;if(!R){const w={class:"fox-infinite__bottom-tips"};R=n.h("view",w,[u.loadMoreText.value]),B.push(R)}}const q={class:"fox-infinite__bottom"},L=n.h("view",q,B),M={class:m.value,ref:s};return n.h("view",M,[$,L])}}}}const{componentName:nd,create:ld,scope:od}=ie("infinite-loading"),El=ld(td(nd,od,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",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=zr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:t,isHorizontal:o,state:e}}function rd(){const e=n.ref(0),t=n.ref(0),o=n.ref(0),l=n.ref(0),r=n.ref(0),a=n.ref(0),i=n.ref(0),u=n.ref(0),s=n.ref(0),c=n.ref(0),d=n.ref(""),m=()=>d.value==="vertical",v=()=>d.value==="horizontal",b=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const $=h.touches[0];i.value=$.clientX-e.value,u.value=$.clientY-t.value,r.value=$.clientX,a.value=$.clientY}else{const k=h;i.value=k.clientX-e.value,u.value=k.clientY-t.value,r.value=k.clientX,a.value=k.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),l.value=Date.now()-o.value,d.value||(d.value=zr(s.value,c.value))},start:h=>{if(b(),h.touches){const $=h.touches[0];e.value=$.clientX,t.value=$.clientY}else{const k=h;e.value=k.clientX,t.value=k.clientY}o.value=Date.now()},reset:b,startX:e,startY:t,startTime:o,duration:l,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:m,isHorizontal:v}}const ad={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}},id=(e,t,o)=>({props:{...ad},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Le.useFoxI18n(t),u=i(l,["pullingText","loosingText","loadingText"]),s=kl(),c=n.ref(),d=qr(c),m=n.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),v=n.computed(()=>({[e]:!0})),b=n.computed(()=>{switch(m.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),g=n.computed(()=>({transitionDuration:`${l.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),f=n.computed(()=>{const M={};return l.headHeight!=50&&(M.height=Ce(l.headHeight)),M}),h=M=>{const R=+(l.pullDistance||l.headHeight);let w=M;return M>R&&(M<R*2?w=(M+R)/2:w=R+M/4),Math.round(w)},P=(M,R)=>{const w=+(l.pullDistance||l.headHeight);m.distance=M,R?m.status="loading":M===0?m.status="normal":M<w?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:M})},k=()=>m.status!=="loading"&&m.status!=="complete",$=()=>d.value==window?jr()==0:d.value&&d.value.scrollTop==0,B=M=>{k()&&($()?(s.start(M),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},q=M=>{k()&&m.moving&&(s.move(M),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(M.cancelable&&M.preventDefault(),P(h(s.state.deltaY))))},L=()=>{m.moving=!1,m.isPullRefresh&&k()&&s.state.deltaY&&(m.status==="loosing"?(P(+l.headHeight,!0),r("update:modelValue",!0),n.nextTick(()=>r("refresh"))):P(0)),setTimeout(()=>{s.reset()},0)};return n.watch(()=>l.modelValue,M=>{M?P(+l.headHeight,!0):P(0)}),()=>{const M=[];let R=null;if(m.status==="loading"){if(R=a?.loading?.()??null,!R){const V={class:["fox-pull-refresh-container-topbox-icon"]};R=n.h(o,V)}}else m.status==="pulling"?R=a?.pulling?.()??null:m.status==="loosing"&&(R=a?.loosing?.()??null);R&&M.push(R);const w={class:["fox-pull-refresh-container-topbox-text"]},C=n.h("dive",w,[b.value]);M.push(C);const p={class:["fox-pull-refresh-container-topbox"],style:f.value},_=n.h("div",p,M),Z={class:"fox-pull-refresh-container",style:g.value},F=n.h("div",Z,[_,a?.default?.()]),T={ref:c,class:v.value};return Nl()?Object.assign(T,{onTouchstart:B,onTouchmove:q,onTouchend:L}):Object.assign(T,{onMousedown:B,onMousemove:q,onMouseup:L}),n.h("div",T,[F])}}}),{componentName:sd,create:ud,scope:cd}=ie("pull-refresh"),Il=ud(id(sd,cd,vl));function fd(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:l}){const r=e,a=n.computed(()=>({[r]:!0})),i=n.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),u=n.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=n.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=n.computed(()=>o.color?{color:o.color}:null);return()=>{let d=null;if(l.mark)d=l.mark()[0];else{const f={class:i.value,style:u.value};d=n.h(o.icon??"div",f)}const m={class:s.value,style:c.value},v=l.default?l.default():[],b=n.h("div",m,v),g={class:a.value};return o.textPosition==="right"?n.h("div",g,[d,b]):n.h("div",g,[b,d])}}}}const{componentName:dd,create:hd,scope:zh}=ie("indicator"),Ol=hd(fd(dd));function md(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){t(l);return}e.classList.add("is-selectable"),setTimeout(()=>{o.setStart(e,0),o.setEnd(e,e.childNodes.length);const r=o.getBoundingClientRect().width;e.classList.remove("is-selectable"),t(r)},500)}const gd={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function pd(e,t,o,l=!1){return{props:{...gd},emits:["click"],setup(r,a){const i=n.ref(null),u=n.computed(()=>{const $={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&($[`${e}--${r.type??"default"}`]=!0),r.size&&($[`${e}--${r.size}`]=!0),$}),s=n.computed(()=>{const $={},B=r.textColor??r.color;return B&&($.color=B),$}),c=($,B)=>{let q=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const L=r.highlightFilter;if($.indexOf(L)!==-1){const R=$.replace(new RegExp(L,"g"),`<span>${L}</span>`);B.innerHTML=R,B.class["is-highlight"]=!0,q=n.h(r.tag,B)}}else if(typeof r.highlightFilter=="function"){const L=r.highlightFilter($);L&&(B.innerHTML=L,B.class["is-highlight"]=!0,q=n.h(r.tag,B))}return q},d=$=>{a.emit("click",$)};let m="";const v=()=>{const $=i.value;if(!$)return;const B=$.clientWidth;md($,q=>{const L=$.innerHTML??"";pe(L)||q<B||(m?o?.show($,L,{type:"text",id:m,showArrow:r.showArrow},!0):m=o?.show($,L,{type:"text",showArrow:r.showArrow},!0)??"")})},b=()=>{m&&o?.hide(m)};let g=null;const f=$=>{g||(g=setTimeout(()=>{v(),g=null},r.showAfter??0))},h=$=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{b()},r.hideAfter??0)},P=()=>{const $=i.value;$&&($.addEventListener("mouseover",f),$.addEventListener("mouseleave",h))},k=()=>{const $=i.value;$&&($.removeEventListener("mouseover",f),$.removeEventListener("mouseleave",h))};return n.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||P()}),n.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||k()}),()=>{const $={onClick:d,class:u.value,style:s.value,ref:i};let B=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const w=R[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const C=xe(r.digits),p=xe(r.decimalLength),_=ue(r.autoPadding);let Z=`${R[0].children}`,F=Z.split("").reverse().join("");F=Wt(F,p,_,C,r.separator),Z=F.split("").reverse().join(""),r.highlightFilter!==void 0&&(B=c(Z,$)),B||($.innerHTML=Z,B=n.h(r.tag,$))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const w=R[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const C=`${R[0].children}`;B=c(C,$),B||($.innerHTML=C,B=n.h(r.tag,$))}}}B||(B=n.h(r.tag,$,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return B;let L=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const w={},C=r.color;C&&(w.color=C);const p={class:R,style:w};L=n.h("view",p,n.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const w={},C=r.color;C&&(w.color=C);const p={class:R,style:w};L=n.h("view",p,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const w={},C=r.color;C&&(w["background-color"]=C);const p={class:R,style:w};L=n.h("view",p)}const M={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return n.h("view",M,[L,B])}}}}const{componentName:vd,create:yd,scope:bd}=ie("text"),Pl=yd(pd(vd,bd,Oe,!1)),xd={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 wd(e,t,o){return{props:{...xd},emits:["click","update:modelValue"],setup(l,{emit:r}){const a=n.computed(()=>{const m={[`${e}`]:!0};return l.disabled?m[`${e}__disabled`]=!0:m[`${e}__${l.type}`]=!0,m}),i=de(l,"modelValue"),u=n.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=n.computed(()=>({[`${e}__text`]:!0})),c=n.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const m=[];if(u.value){const f={class:s.value},h=n.h("span",f,[u.value]);m.push(h)}const v={class:c.value},b=o(l.icon,v);return b&&m.push(b),n.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:Sd,create:Td,scope:$d}=ie("more-button"),Cd=(e,t)=>(e=e??Ee.ArrowUp,n.h(y.ElIcon,t,{default:()=>[n.h(e)]})),Vl=Td(wd(Sd,$d,Cd));function Ed(e){return e===window}const Hr=e=>{const t=n.unref(e);if(Ed(t)){const o=t.innerWidth,l=t.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:Nd,create:kd,scope:Hh}=ie("tour"),Id=kd({components:{Close:Ee.Close,ElPopover:y.ElPopover},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},width:{type:String,default:"300px"},popperClass:{type:String,default:""},current:{type:Number,default:0},nextStepText:{type:String,default:"下一步"},prevStepText:{type:String,default:"上一步"},completeText:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Object,default:{left:8,top:10,right:8,botttom:10}},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:t}){const o=Nd,l=n.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=n.ref({}),a=n.computed(()=>`${o}`),i=n.computed(()=>{const{offset:g,maskWidth:f,maskHeight:h}=e,{width:P,height:k,left:$,top:B}=r.value,q=e.steps[l.active].offset??g,L=[$+P/2,B+k/2],M=Number(f||P),R=Number(h||k);return{width:`${M+ +q.left+q.right}px`,height:`${R+q.top+q.bottom}px`,top:`${L[1]-R/2-+q.top}px`,left:`${L[0]-M/2-+q.left}px`}}),u=g=>{g=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,n.nextTick(()=>{l.showPopup=!0,d()}),t("change",l.active)},s=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,d=()=>{const g=document.querySelector(`${e.steps[l.active].target}`),f=Hr(g);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},m=()=>{l.showTour=!1,l.showPopup=!1,t("close",l.active),t("update:modelValue",!1)},v=()=>{e.closeOnClickOverlay&&m()},b=(g,f=0)=>{g&&d(),e.steps,l.active=f,l.showTour=g,l.showPopup=g};return n.onMounted(()=>{b(e.modelValue,e.current)}),n.watch(()=>e.modelValue,g=>{b(g)}),{...n.toRefs(l),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:v}}}),Od={key:0,class:"fox-tour__content"},Pd={key:0,class:"fox-tour__content-top"},Vd={class:"fox-tour__content-inner"},Dd={class:"fox-tour__content-bottom"},Fd={class:"fox-tour__content-bottom-init"},Rd={class:"fox-tour__content-bottom-operate"},Ad={key:1,class:"fox-tour__content fox-tour__content-tile"},Ld={class:"fox-tour__content-inner"};function Md(e,t,o,l,r,a){const i=n.resolveComponent("Close"),u=n.resolveComponent("fox-button"),s=n.resolveComponent("ElPopover");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes)},[n.withDirectives(n.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[n.vShow,e.showTour]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,(c,d)=>(n.openBlock(),n.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(n.openBlock(),n.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:n.withCtx(()=>[e.showTour?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:n.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(n.openBlock(),n.createElementBlock("div",Od,[e.showTitleBar?(n.openBlock(),n.createElementBlock("div",Pd,[n.createElementVNode("div",{onClick:t[1]||(t[1]=(...m)=>e.close&&e.close(...m))},[n.createVNode(i,{class:"fox-tour__content-top-close"})])])):n.createCommentVNode("",!0),n.createElementVNode("div",Vd,n.toDisplayString(c.content),1),n.createElementVNode("div",Dd,[n.createElementVNode("div",Fd,n.toDisplayString(e.active+1)+"/"+n.toDisplayString(e.steps.length),1),n.createElementVNode("div",Rd,[n.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(n.openBlock(),n.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=m=>e.changeStep("prev"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.prevStepText),1)]),_:1})):n.createCommentVNode("",!0)]),e.steps.length-1==e.active?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=m=>e.changeStep("next"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.nextStepText),1)]),_:1})):n.createCommentVNode("",!0)])])])])):n.createCommentVNode("",!0),e.type=="tile"?(n.openBlock(),n.createElementBlock("div",Ad,[n.createElementVNode("div",Ld,n.toDisplayString(c.content),1)])):n.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):n.createCommentVNode("",!0)]))),128))],2)}const Dl=Me(Id,[["render",Md]]),Ie=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,nt=e=>e==null;class Bd{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(),l=(r,a,i,u)=>{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),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(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 Bd(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))},_d=e=>{n.onMounted(()=>{ct.length===0&&document.addEventListener("keydown",ko),No&&ct.push(e)}),n.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",qd="fox-focus-trap.focusout-prevented",Io={cancelable:!0,bubbles:!1},jd={cancelable:!0,bubbles:!1},Oo="foxFocusAfterTrapped",Po="foxFocusAfterReleased",zd=Symbol("foxFocusTrap"),Fl=n.ref(),fn=n.ref(0),Rl=n.ref(0);let At=0;const Kr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const r=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||r?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},Hd=(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},Vo=(e,t)=>{for(const o of e)if(!Hd(o,t))return o},Kd=e=>{const t=Kr(e),o=Vo(t,e),l=Vo(t.reverse(),e);return[o,l]},Wd=e=>e instanceof HTMLInputElement&&"select"in e,Qe=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Rl.value=window.performance.now(),e!==o&&Wd(e)&&t&&e.select()}};function Do(e,t){const o=[...e],l=e.indexOf(t);return l!==-1&&o.splice(l,1),o}const Yd=()=>{let e=[];return{push:l=>{const r=e[0];r&&l!==r&&r.pause(),e=Do(e,l),e.unshift(l)},remove:l=>{e=Do(e,l),e[0]?.resume?.()}}},Gd=(e,t=!1)=>{const o=document.activeElement;for(const l of e)if(Qe(l,t),document.activeElement!==o)return},Fo=Yd(),Ud=()=>fn.value>Rl.value,Lt=()=>{Fl.value="pointer",fn.value=window.performance.now()},Ro=()=>{Fl.value="keyboard",fn.value=window.performance.now()},Xd=()=>(n.onMounted(()=>{At===0&&(document.addEventListener("mousedown",Lt),document.addEventListener("touchstart",Lt),document.addEventListener("keydown",Ro)),At++}),n.onBeforeUnmount(()=>{At--,At<=0&&(document.removeEventListener("mousedown",Lt),document.removeEventListener("touchstart",Lt),document.removeEventListener("keydown",Ro))}),{focusReason:Fl,lastUserFocusTimestamp:fn,lastAutomatedFocusTimestamp:Rl}),Mt=e=>new CustomEvent(qd,{...jd,detail:e}),{componentName:Kh,create:Zd,scope:Wh}=ie("focus-trap"),Qd={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"}},Jd=Zd({props:Qd,emits:[Oo,Po,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const l=n.ref();let r,a;const{focusReason:i}=Xd();_d(f=>{ue(e.trapped)&&!u.paused&&o("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:h,altKey:P,ctrlKey:k,metaKey:$,currentTarget:B,shiftKey:q}=f,{loop:L}=e,M=h==="Tab"&&!P&&!k&&!$,R=document.activeElement;if(M&&R){const w=B,[C,p]=Kd(w);if(C&&p){if(!q&&R===p){const Z=Mt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),L&&Qe(C,!0))}else if(q&&[C,w].includes(R)){const Z=Mt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),L&&Qe(p,!0))}}else if(R===w){const Z=Mt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||f.preventDefault()}}};n.provide(zd,{focusTrapRef:l,onKeydown:s}),n.watch(()=>e.focusTrapEl,f=>{f&&(l.value=f)},{immediate:!0}),n.watch([l],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",m),f.addEventListener("focusout",v)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",v))});const c=f=>{o(Oo,f)},d=f=>o(Po,f),m=f=>{const h=n.unref(l);if(!h)return;const P=f.target,k=f.relatedTarget,$=P&&h.contains(P);ue(e.trapped)||k&&h.contains(k)||(r=k),$&&o("focusin",f),!u.paused&&ue(e.trapped)&&($?a=P:Qe(a,!0))},v=f=>{const h=n.unref(l);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const P=f.relatedTarget;!jn(P)&&!h.contains(P)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const k=Mt({focusReason:i.value});o("focusout-prevented",k),k.defaultPrevented||Qe(a,!0)}},0)}else{const P=f.target;P&&h.contains(P)||o("focusout",f)}};async function b(){await n.nextTick();const f=n.unref(l);if(f){Fo.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const k=new Event($n,Io);f.addEventListener($n,c),f.dispatchEvent(k),k.defaultPrevented||n.nextTick(()=>{let $=e.focusStartEl;qo($)||(Qe($),document.activeElement!==$&&($="first")),$==="first"&&Gd(Kr(f),!0),(document.activeElement===h||$==="container")&&Qe(f)})}}}function g(){const f=n.unref(l);if(f){f.removeEventListener($n,c);const h=new CustomEvent(Cn,{...Io,detail:{focusReason:i.value}});f.addEventListener(Cn,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!Ud())&&Qe(r??document.body,!0),f.removeEventListener(Cn,c),Fo.remove(u)}}return n.onMounted(()=>{ue(e.trapped)&&b(),n.watch(()=>e.trapped,f=>{ue(f)?b():g()})}),n.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:eh,create:th,scope:Yh}=ie("floating-window"),nh=Symbol.for("InnerPageScopeKey"),lh=Symbol.for("PageWrapperKey"),oh={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}},rh=th({inheritAttrs:!1,components:{FoxIcon:y.ElIcon,FocusTrap:Jd},props:{...oh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=eh,l=n.ref(e.modelValue),r=n.computed(()=>!e.teleport);n.watch(()=>e.modelValue,N=>{l.value=N});const a=n.computed(()=>l.value===!1?!1:!R.value),i=n.ref(e.left),u=n.ref(e.top),s=n.ref(e.right),c=n.ref(e.bottom),d=n.computed(()=>{const N=["fox-floating-window"];return e.customClass&&N.push(e.customClass),N}),m=n.computed(()=>{const N={};return nt(i.value)?N.left="auto":N.left=Ie(i.value),nt(u.value)?N.top="auto":N.top=Ie(u.value),nt(s.value)?N.right="auto":N.right=Ie(s.value),nt(c.value)?N.bottom="auto":N.bottom=Ie(c.value),nt(e.zIndex)||(N["z-index"]=Ie(e.zIndex)),nt(L.value)||(N.height=L.value),nt(M.value)||(N.width=M.value),N}),v=n.computed(()=>e.closeIcon??Ee.Close),b=n.computed(()=>e.collapseIcon??Ee.ArrowUp),g=n.computed(()=>e.collapseText??""),f=n.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ee.ArrowRight:e.expandIcon??Ee.ArrowLeft),h=n.computed(()=>e.expandText??e.title??"展开"),P=n.computed(()=>({[`${o}__collapse-text`]:!0})),k=n.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),$=n.ref(),B=n.ref(null),q=n.ref(null),L=n.computed(()=>Ie(e.height)||""),M=n.computed(()=>Ie(e.width)||""),R=n.ref(ue(e.collapse)),w=(N,H=!0)=>{R.value!==N&&(R.value=N,N?S():D(),t("update:collapse",N),N&&typeof _.onHide=="function"?_.onHide():!N&&typeof _.onShow=="function"&&_.onShow())};n.watch(()=>e.collapse,N=>{w(N)});const C=()=>{p()},p=N=>{N=N??!R.value,w(N)};n.provide(nh,!0);const _={setCollapse:w,setFixedNavVisible:N=>{J.value=N}};n.provide(lh,_);const Z=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{l.value=!1}):l.value=!1},F=n.ref(null),T=n.computed(()=>!e.fixedNavTeleport),V=n.computed(()=>{const N=["fox-floating-window__fixednav"];return e.expandClass&&N.push(e.expandClass),e.collapsePosition==="left"?N.push("is-left"):e.collapsePosition==="right"&&N.push("is-right"),N}),A=n.ref(""),W=n.computed(()=>{const N={};return A.value?N.top=A.value:e.collapseTop&&(N.top=e.collapseTop),N}),X=n.ref(R.value),J=n.computed({set:N=>{X.value=N},get:()=>l.value===!1?!1:X.value});let ne=null;const I=()=>{typeof ne=="function"&&(ne(),ne=null)},S=()=>{F.value&&F.value.classList.add("slide-in"),J.value=!0,ne=()=>{F.value&&F.value.classList.remove("slide-in")}},D=()=>{F.value&&F.value.classList.add("slide-out"),ne=()=>{F.value&&F.value.classList.remove("slide-out"),J.value=!1}},O=()=>{i.value=null,u.value=null,s.value=null,c.value=null},x={x:0,y:0},te=Eo(N=>{if(!$.value)return;const H=$.value;if(O(),e.origin==="left-top")i.value=H.offsetLeft,u.value=H.offsetTop,x.x=i.value,x.y=u.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=ee-(H.offsetTop+H.offsetHeight),x.x=i.value,x.y=c.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=ee-(H.offsetLeft+H.offsetWidth),c.value=le-(H.offsetTop+H.offsetHeight),x.x=s.value,x.y=c.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;s.value=ee-(H.offsetLeft+H.offsetWidth),u.value=H.offsetTop,x.x=s.value,x.y=u.value}},N=>{if(!$.value)return;const H=$.value;O(),e.origin==="left-top"?(i.value=x.x+N.x,u.value=x.y+N.y,H.style.left=Ie(i.value),H.style.top=Ie(u.value)):e.origin==="left-bottom"?(i.value=x.x+N.x,c.value=x.y-N.y,H.style.left=Ie(i.value),H.style.bottom=Ie(c.value)):e.origin==="right-bottom"?(s.value=x.x-N.x,c.value=x.y-N.y,H.style.right=Ie(s.value),H.style.bottom=Ie(c.value)):(s.value=x.x-N.x,u.value=x.y+N.y,H.style.right=Ie(s.value),H.style.top=Ie(u.value))}),Y={x:0,y:0},z=Eo(N=>{F.value&&(Y.x=F.value.offsetLeft,Y.y=F.value.offsetTop)},N=>{if(!F.value)return;const H=Y.y+N.y;A.value=`${H}px`}),U=()=>{if($.value){const N=$.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");q.value=N}};return n.onMounted(()=>{if(e.draggable&&$.value){const N=[];B.value&&N.push(B.value),e.footerDraggable&&(U(),q.value&&N.push(q.value)),te.open(N)}e.collapse===!0&&w(e.collapse,!1),F.value&&z.open(F.value)}),n.onBeforeUnmount(()=>{e.draggable&&B.value&&te.close(),F.value&&z.close()}),{classes:d,styles:m,isShow:a,closeIcon:v,onClose:Z,dialogRef:$,headerRef:B,onClickToggle:C,collapseIcon:b,collapseText:g,collapseTextClasses:P,collapseIconClasses:k,expandIcon:f,expandText:h,isShowFixedNav:J,fixedNavRef:F,fixedNavClasses:V,fixedNavStyles:W,onAnimationEnd:I,teleportDisabled:r,fixedNavTeleportDisabled:T}}}),ah={ref:"headerRef",class:"fox-floating-window__header"},ih={class:"fox-floating-window__title"},sh={class:"fox-floating-window__tools"},uh={class:"fox-floating-window__body"},ch={class:"fox-floating-window__fixednav__text"};function fh(e,t,o,l,r,a){const i=n.resolveComponent("FoxIcon"),u=n.resolveComponent("FocusTrap");return n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[n.createVNode(n.Transition,{name:"fox-floating-window-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref:"dialogRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles),tabindex:"-1"},[n.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:n.withCtx(()=>[n.createElementVNode("div",ah,[n.renderSlot(e.$slots,"header",{},()=>[n.createElementVNode("span",ih,n.toDisplayString(e.title),1),n.createElementVNode("div",sh,[e.showCollapse?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[n.createElementVNode("span",{class:n.normalizeClass(e.collapseTextClasses)},n.toDisplayString(e.collapseText),3),n.createVNode(i,{class:n.normalizeClass(e.collapseIconClasses)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):n.createCommentVNode("",!0),e.showClose?(n.openBlock(),n.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):n.createCommentVNode("",!0)])])],512),n.createElementVNode("div",uh,[n.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[n.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(n.openBlock(),n.createBlock(n.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[n.withDirectives(n.createElementVNode("div",{ref:"fixedNavRef",class:n.normalizeClass(e.fixedNavClasses),style:n.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[n.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[n.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.expandIcon)))]),_:1}),n.createElementVNode("div",ch,n.toDisplayString(e.expandText),1)])],38),[[n.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Al=Me(rh,[["render",fh]]);function dh(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return ar(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:Gh,create:hh,scope:Uh}=ie("domain-provider"),Ll=hh(dh()),mh={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 gh(e,t){return{inheritAttrs:!1,props:mh,setup(o,{slots:l}){if(it&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(v,b)=>{if(d===null){a.set(v,{visible:null,callback:b});return}r.has(v)&&d.unobserve(v),r.set(v,{visible:null,callback:b}),d.observe(v)},u=v=>{if(d===null){a.delete(v);return}r.has(v)&&(r.delete(v),d.unobserve(v))};let s=o.initialVisibleObserverSize;ei({acquire:()=>{const v=s>0;return s--,v},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(v,b,g)=>{d=new IntersectionObserver(f=>{for(let h of f){let P=!1;h.intersectionRatio>0&&(P=!0);const k=r.get(h.target);if(k)try{if(o.loadPolicy==="lazy"&&!P&&k.visible!==null)return;k.visible=P,k.callback(P)}catch($){console.error($)}}},{root:v,rootMargin:b,threshold:g}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};n.watch([()=>o.root,()=>o.disabled],([v,b])=>{if(b||!v||d)return;let g=null;typeof v=="string"?g=document.querySelector(v):g=v,g&&m(g,o.rootMargin,o.threshold)},{immediate:!0}),n.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:Xh,create:ph,scope:Zh}=ie("rolling-provider"),Ml=ph(gh()),vh=[Kn,Yn,Gn,Un,Xn,Se,Zn,Qn,Vt,Jn,el,tl,nl,ll,ol,rl,al,il,sl,ul,un,cl,fl,dl,hl,ml,gl,pl,yl,bl,xl,wl,Sl,cn,Tl,$l,Cl,El,Il,It,sn,Ol,Pl,Vl,Dl,Al,Ll,Ml],yh=new Pa(vh,[Fa],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>y.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>y.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>y.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>y.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>y.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>y.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>y.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>y.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>y.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>y.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>y.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>y.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>y.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>y.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>y.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>y.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>y.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>y.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>y.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>y.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>y.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>y.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>y.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>y.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>y.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>y.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>y.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>y.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>y.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>y.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>y.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>y.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>y.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>y.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>y.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>y.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>y.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>y.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>y.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>y.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>y.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>y.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>y.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>y.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>y.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>y.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>y.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>y.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>y.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>y.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>y.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>y.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>y.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>y.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>y.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>y.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>y.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>y.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>y.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>y.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>y.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>y.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>y.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>y.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>y.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>y.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>y.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>y.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>y.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>y.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>y.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>y.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>y.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>y.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>y.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>y.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>y.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>y.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>y.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>y.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>y.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>y.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>y.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>y.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>y.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>y.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>y.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>y.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>y.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>y.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>y.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>y.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>y.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>y.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>y.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>y.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>y.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>y.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>y.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>y.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>y.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>y.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>y.ElWatermark});exports.AutocompleteItem=il;exports.Broadcast=zn;exports.BroadcastKey=ye;exports.CascaderItem=al;exports.CheckboxItem=dl;exports.Content=Un;exports.DataItemsKey=ut;exports.DateItem=tl;exports.DateUtils=Re;exports.DialogItem=Sl;exports.Domain=Qt;exports.DomainKey=Fe;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=Vt;exports.FoxIndicator=Ol;exports.FoxInfiniteLoading=El;exports.FoxInputItem=Jn;exports.FoxInputNumberItem=rl;exports.FoxItem=Se;exports.FoxMapping=It;exports.FoxMoneyItem=ol;exports.FoxMoreButton=Vl;exports.FoxOverLay=cn;exports.FoxPage=Kn;exports.FoxPopup=Tl;exports.FoxPrice=sn;exports.FoxPullRefresh=Il;exports.FoxRadioItem=fl;exports.FoxRateItem=hl;exports.FoxRollingProvider=Ml;exports.FoxRowItem=Qn;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=un;exports.FoxTabsBar=yl;exports.FoxTabsContainer=bl;exports.FoxTabsPane=xl;exports.FoxText=Pl;exports.FoxTimeItem=nl;exports.FoxTimeSelectItem=ll;exports.FoxToast=$l;exports.FoxTour=Dl;exports.FoxTreeSelectItem=gl;exports.Group=Xn;exports.GroupSetting=pl;exports.HeaderBar=Yn;exports.HintText=Vt;exports.Indicator=Ol;exports.InfiniteLoading=El;exports.InputItem=Jn;exports.InputNumberItem=rl;exports.Item=Se;exports.Mapping=It;exports.MoneyItem=ol;exports.MoreButton=Vl;exports.OverLay=cn;exports.Page=Kn;exports.Popup=Tl;exports.Price=sn;exports.PriorityPolicy=Ae;exports.PullRefresh=Il;exports.RadioItem=fl;exports.RateItem=hl;exports.RollingProvider=Ml;exports.RowItem=Qn;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=un;exports.TabsBar=yl;exports.TabsContainer=bl;exports.TabsPane=xl;exports.Text=Pl;exports.TimeItem=nl;exports.TimeSelectItem=ll;exports.Toast=$l;exports.Tour=Dl;exports.TreeSelectItem=gl;exports.UniqueID=xr;exports.ValidateSchema=lr;exports.ValidateSchemaKey=_e;exports.cancelRaf=Ur;exports.clearNonNumber=ia;exports.clone=Dn;exports.compareTo=On;exports.createBroadcast=Ut;exports.createValidateSchema=Xt;exports.debounce=Ct;exports.debounceRef=xa;exports.decimalLength=Zo;exports.default=yh;exports.defineBroadcast=fa;exports.defineConfigDomain=ar;exports.defineDataItem=sr;exports.defineDomain=Hn;exports.defineItem=Te;exports.definePageState=cr;exports.defineSimpleItem=ur;exports.deleteGlobalValidator=pa;exports.disabledProperty=De;exports.divide=_n;exports.excludeProps=Ne;exports.extend=at;exports.floatData=ca;exports.getGlobalValidateCheckEvents=er;exports.getGlobalValidateResetEvents=nr;exports.getPageContentAreaHeight=jt;exports.getPageContentAreaWidth=zt;exports.getPageFooterAreaHeight=Nt;exports.getPageHeaderAreaHeight=Et;exports.getRootDomain=ft;exports.hasSymbol=Ho;exports.includeProps=Qo;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=pe;exports.isEqual=Ye;exports.isFunction=Pn;exports.isHidden=Gt;exports.isInnerPage=Ta;exports.isMap=Qr;exports.isNil=jn;exports.isNumberString=Uo;exports.isObject=Ge;exports.isPlainObject=Vn;exports.isPromise=jo;exports.isRegExp=Go;exports.isSet=Jr;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=Wt;exports.objectToString=zo;exports.once=wa;exports.overrideGlobalValidateHandler=ma;exports.property=Pe;exports.raf=qn;exports.readonlyProperty=Ve;exports.setGlobalValidateCheckEvents=va;exports.setGlobalValidateHandler=ha;exports.setGlobalValidateMessages=ba;exports.setGlobalValidateResetEvents=ya;exports.setGlobalValidator=ga;exports.throttle=rr;exports.toBoolean=ue;exports.toNumber=xe;exports.toPadding=je;exports.toPx=he;exports.toPxDesc=Ce;exports.toTypeString=Yt;exports.toValue=de;exports.tryTimes=Zt;exports.typeOf=_t;exports.unNumberFormat=_o;exports.updatePageState=Fn;exports.useBroadcast=St;exports.useDomain=Ue;exports.useExpose=be;exports.useInnerSize=Wn;exports.usePageState=Jt;exports.usePosition=yr;exports.useRawTouch=kl;exports.useRect=Hr;exports.useSize=en;exports.useTouch=rd;exports.valueLength=Pt;
5
+ */function Bt(e,t="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),t[0]=="-"&&(o++,l=2,t=t.substring(1),t.length),e=$e(e),t=$e(t),[e,t]=qn($e(e),$e(t)),o==1&&(l==1?e=pn(e):t=pn(t));let r=Lo(e,t);return o?o==2?"-"+$e(r):e.length<r.length?$e(r.substring(1)):"-"+$e(pn(r)):$e(r)}function pn(e){let t="",o=e.length,l=e.split(".")[1],r=l?l.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=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 qn(e,t){let o=e.split("."),l=t.split("."),r=o[0].length,a=l[0].length;return r>a?l[0]=new Array(Math.abs(r-a)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-a)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,a=l[1]?l[1].length:0,(r||a)&&(r>a?l[1]=(l[1]?l[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=l[0]+(l[1]?"."+l[1]:""),[e,t]}function Lo(e,t){[e,t]=qn(e,t);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let a=parseInt(e[r])+parseInt(t[r])+l;o=a%10+o,l=Math.floor(a/10)}return l?l.toString()+o:o}var ve=(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))(ve||{});function $t(e,t=0,o=ve.HALF_EVEN){if(o===ve.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),a=r[0],i=r[1];if(t<0){if(t=-t,a.length<=t)return"0";{let s=a.substr(0,a.length-t);return e=s+"."+a.substr(a.length-t)+i,s=$t(e,0,o),(l?"-":"")+s+new Array(t+1).join("0")}}if(t==0)return a.length,_l(r[1],a,l,o)?(l?"-":"")+vn(a):(l?"-":"")+a;if(r[1]){if(r[1].length<t)return(l?"-":"")+a+"."+r[1]+new Array(t-r[1].length+1).join("0")}else return(l?"-":"")+a+"."+new Array(t+1).join("0");i=r[1].substring(0,t);let u=r[1].substring(t);return u&&_l(u,i,l,o)&&(i=vn(i),i.length>t)?(l?"-":"")+vn(a,parseInt(i[0]))+"."+i.substring(1):(l?"-":"")+a+"."+i}function _l(e,t,o,l){if(!e||e===new Array(e.length+1).join("0")||l===ve.DOWN||!o&&l===ve.FLOOR||o&&l===ve.CEILING)return!1;if(l===ve.UP||o&&l===ve.FLOOR||!o&&l===ve.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case ve.HALF_DOWN:return!1;case ve.HALF_UP:return!0;case ve.HALF_EVEN:default:return parseInt(t[t.length-1])%2==1}}function vn(e,t=0){t||(t=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let a=parseInt(e[r])+t;a==10?(t=1,a=0):t=0,l+=a}return t&&(l+=t),l.split("").reverse().join("")}function kn(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 l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),t.indexOf(".")!=-1&&(r=t.length-t.indexOf(".")-1);let a=l+r;if(e=yt(e.replace(".","")),t=yt(t.replace(".","")),e.length<t.length){let m=e;e=t,t=m}if(t=="0")return"0";let i=t.length,u=0,s=[],c=i-1,d="";for(let m=0;m<i;m++)s[m]=e.length-1;for(let m=0;m<2*e.length;m++){let p=0;for(let y=t.length-1;y>=c&&y>=0;y--)s[y]>-1&&s[y]<e.length&&(p+=parseInt(e[s[y]--])*parseInt(t[y]));p+=u,u=Math.floor(p/10),d=p%10+d,c--}return d=yt(Zr(d,a)),o==1&&(d="-"+d),d}function Zr(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 Pn(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 l=0;t[0]=="-"&&(t=t.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=t.indexOf(".")>0?t.length-t.indexOf(".")-1:-1;if(t=$e(t.replace(".","")),r>=0){let c=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(c==-1)e=$e(e+new Array(r+1).join("0"));else if(r>c)e=e.replace(".",""),e=$e(e+new Array(r-c+1).join("0"));else if(r<c){e=e.replace(".","");let d=e.length-c+r;e=$e(e.substring(0,d)+"."+e.substring(d))}else r==c&&(e=$e(e.replace(".","")))}let a=0,i=t.length,u="",s=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),s.indexOf(".")>-1){let c=s.length-s.indexOf(".")-1;s=s.replace(".",""),i>s.length&&(c+=i-s.length,s=s+new Array(i-s.length+1).join("0")),a=c,u="0."+new Array(c).join("0")}for(o=o+2;a<=o;){let c=0;for(;parseInt(s)>=parseInt(t);)s=Bt(s,"-"+t),c++;u+=c,e?(e[0]=="."&&(u+=".",a++,e=e.substring(1)),s=s+e.substring(0,1),e=e.substring(1)):(a||(u+="."),a++,s=s+"0")}return(l==1?"-":"")+$e($t(u,o-2))}function In(e,t){return e=e.toString(),t=t.toString(),t=On(t),Bt(e,t)}function On(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ql(e,t){if(t==0)throw new Error("Cannot divide by 0");e=e.toString(),t=t.toString(),jl(e),jl(t);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),t[0]=="-"&&(t=t.substr(1));let l=In(e,kn(t,$t(Pn(e,t),0,ve.FLOOR)));return o+l}function jl(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function zl(e,t){let o=!1;if(e[0]=="-"&&t[0]!="-")return-1;if(e[0]!="-"&&t[0]=="-")return 1;if(e[0]=="-"&&t[0]=="-"&&(e=e.substr(1),t=t.substr(1),o=!0),[e,t]=qn(e,t),e.localeCompare(t)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=t[l])return e[l]>t[l]?o?-1:1:o?1:-1;return 0}class fe{value;static RoundingModes=ve;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,l]=t.split(/[eE]/);o=$e(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?t=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?t=r+$e(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):t=r+"0."+new Array(-l+1).join("0")+o}return t}constructor(t="0"){this.value=fe.validate(t)}getValue(){return this.value}static getPrettyValue(t,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");t=fe.validate(t);let r=t.charAt(0)=="-";r&&(t=t.substring(1));var a=t.indexOf(".");a=a>0?a:t.length;for(var i="",u=a;u>0;)u<o?(o=u,u=0):u-=o,i=t.substring(u,u+o)+(u<a-o&&u>=0?l:"")+i;return(r?"-":"")+i+t.substring(a)}getPrettyValue(t,o){return fe.getPrettyValue(this.value,t,o)}static round(t,o=0,l=ve.HALF_EVEN){if(t=fe.validate(t),isNaN(o))throw Error("Precision is not a number: "+o);return $t(t,o,l)}round(t=0,o=ve.HALF_EVEN){if(isNaN(t))throw Error("Precision is not a number: "+t);return new fe($t(this.value,t,o))}static floor(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ve.FLOOR)}floor(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ve.FLOOR)}static ceil(t){return t=fe.validate(t),t.indexOf(".")===-1?t:fe.round(t,0,ve.CEILING)}ceil(){return this.value.indexOf(".")===-1?new fe(this.value):new fe(this.value).round(0,ve.CEILING)}static add(t,o){return t=fe.validate(t),o=fe.validate(o),Bt(t,o)}add(t){return new fe(Bt(this.value,t.getValue()))}static subtract(t,o){return t=fe.validate(t),o=fe.validate(o),In(t,o)}subtract(t){return new fe(In(this.value,t.getValue()))}static multiply(t,o){return t=fe.validate(t),o=fe.validate(o),kn(t,o)}multiply(t){return new fe(kn(this.value,t.getValue()))}static divide(t,o,l){return t=fe.validate(t),o=fe.validate(o),Pn(t,o,l)}divide(t,o){return new fe(Pn(this.value,t.getValue(),o))}static modulus(t,o){return t=fe.validate(t),o=fe.validate(o),ql(t,o)}modulus(t){return new fe(ql(this.value,t.getValue()))}static compareTo(t,o){return t=fe.validate(t),o=fe.validate(o),zl(t,o)}compareTo(t){return zl(this.value,t.getValue())}static negate(t){return t=fe.validate(t),On(t)}negate(){return new fe(On(this.value))}}function Bo(e,t){return fe.multiply(`${e}`,`${t}`)}function jn(e,t,o=8){return fe.divide(`${e}`,`${t}`,o)}function Vn(e,t){return e=`${e}`,t=`${t}`,fe.compareTo(e,t)}function _o(e){return fe.negate(e)}function Wt(e,t=-1,o=!1,l=3,r=","){let a=`${e}`;if(a.length==0||a==="-")return"";let i=a.charAt(0);i=="-"?a=a.substring(1):i="";let u=a,s="",c=a.indexOf(".");c!=-1&&(u=a.substring(0,c),s=a.substring(c+1)),t!=-1&&(t<s.length?s=s.substring(0,t):o&&t>s.length&&(s=s.padEnd(t,"0")));let d;if(l>0){let m="",p=u.split("").reverse();for(let y=0;y<p.length;y++)m+=p[y]+((y+1)%l==0&&y+1!=p.length?r:"");s.length==0?d=`${i}${m.split("").reverse().join("")}`:d=`${i}${m.split("").reverse().join("")}.${s}`}else s.length==0?d=`${i}${u}`:d=`${i}${u}.${s}`;return d}function qo(e){let t=`${e}`,o=t.charAt(0);o=="-"?t=t.substring(1):o="";let l=t.replace(/[^\d\.-]/g,"");return`${o}${l}`}const zn=Mo,Jr=Array.isArray,Qr=e=>Yt(e)==="[object Map]",ea=e=>Yt(e)==="[object Set]",ta=e=>e instanceof Date,Dn=e=>typeof e=="function",jo=e=>typeof e=="string",na=e=>typeof e=="symbol",Ge=e=>e!==null&&typeof e=="object",zo=e=>Ge(e)&&Dn(e.then)&&Dn(e.catch),Ho=Object.prototype.toString,Yt=e=>Ho.call(e),Fn=e=>Yt(e)==="[object Object]",Ko=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function la(e){return e.__esModule||Ko&&e[Symbol.toStringTag]==="Module"}const oa=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,l=e.length,r=!1;for(typeof t=="boolean"&&(r=t,t=e[o]??{},o++),typeof t!="object"&&(t={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let a=e[o];for(let i in a){let u=t[i],s=a[i];if(u!==s)if(r===!0&&s&&typeof s=="object"){let c;Array.isArray(s)?c=u&&Array.isArray(u)?u:[]:c=u&&typeof u=="object"?u:{},t[i]=at(r,c,s)}else s!==void 0&&(t[i]=s)}}return t}function Rn(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],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Fn(i))continue;a=Rn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}const l=Object.getOwnPropertySymbols(t);for(let r of l){let a=e[r],i=t[r];if(a!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!Fn(i))continue;a=Rn(a,i,o),e[r]=a}else{if(typeof i=="function")continue;e[r]=i}}}return e}const yn=oa?Promise.resolve():null;function ra(e,...t){yn!==null?t&&t.length>0?yn.then(()=>{e(t)}):yn.then(e):t&&t.length>0?setTimeout(()=>{e(t)}):setTimeout(e)}function ue(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function xe(e){return typeof e=="number"?e:Number(e)}const aa={"[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 _t(e){let o=Object.prototype.toString.call(e);return e==null?String(e):aa[o]||"object"}function Wo(e){return e&&typeof e=="object"&&"setInterval"in e}function Gt(e){if(!e)return!0;const{display:t}=window.getComputedStyle(e);return t==="none"}function Yo(e){let t=!!e&&"length"in e&&e.length,o=_t(e);return o==="function"||Wo(e)?!1:o==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function Go(e,t){let o=+t.length,l=0,r=e.length;for(;l<o;l++)e[r++]=t[l];return e.length=r,e}function ia(e,t=[]){let o=t;return e!=null&&(Yo(Object(e))?Go(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ye(e,t){if(e==t)return!0;if(e===void 0||t===void 0)return!1;let o=_t(e),l=_t(t);if(o!==l)return!1;if(o==="object"){let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let i=0;i<r.length;i++){let u=r[i],s=e[u],c=t[u];if(!Ye(s,c))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],i=t[r];if(!Ye(a,i))return!1}return!0}return!1}const it=typeof window<"u";function Hn(e){return e==null}function Uo(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Xo(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Zo(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 Jo(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 Hl(e,t,o){const l=e.indexOf(t);return l===-1?e:t==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function sa(e,t=!0,o=!0){t?e=Hl(e,".",/\./g):e=e.replace(/\./g,""),o?e=Hl(e,"-",/-/g):e=e.replace(/-/,"");const l=t?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function ua(e,t){return typeof e=="object"||Array.isArray(e)?t.findIndex(o=>{if(Ye(e,o))return!0}):t.indexOf(e)}function ca(e,t){if(typeof e=="object"||Array.isArray(e)){let o=t.reverse().findIndex(l=>{if(Ye(e,l))return!0});return o!==-1&&(o=t.length-1-o),o}return t.lastIndexOf(e)}function Ot(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Qo(e,...t){const o={};return t.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function Ee(e,...t){const o=[];t.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}const fa=(e,t,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(t).length>0?(Object.keys(l).forEach(a=>{r.hasOwnProperty(a)?typeof r[a]=="string"&&(l[a]=t[r[a]]):t[a]&&(l[a]=t[a])}),l):e},ye=Symbol.for("BroadcastKey");class Kn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(t,o,l){this.parent=t,this.proxy=o,this.name=l,t!==null&&t.addChild(this)}addChild(t){this.children.push(t)}removeChild(t){const o=this.children.findIndex(l=>t===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(t,o,...l){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="*"):Uo(t.name)&&this.name&&t.name.test(this.name)?r=!0:typeof t.name=="function"?r=Reflect.apply(t.name,null,[this.name]):t.name===this.name&&(r=!0);const a=[];if(r){const i=this.callbacks.get(o);if(typeof i=="function"){const s=Reflect.apply(i,this.proxy,[...l]);s!=null&&a.push(s)}const u=this.proxy??{};if(typeof u[o]=="function"){const s=Reflect.apply(u[o],u,[...l]);s!=null&&a.push(s)}}return this.children.forEach(i=>{const u=Reflect.apply(i.emit,i,[{...t},o,...l]);u!=null&&Array.isArray(u)&&Reflect.apply([].push,a,[...u])}),a}emitToChildren(t,o,...l){const r=[];return this.children.forEach(a=>{const i=Reflect.apply(a.emit,a,[{...t},o,...l]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}on(t,o){this.callbacks.set(t,o)}}function Ut(e,t,o,l){const r=new Kn(t,e,o);if(l&&typeof l=="object")for(const a in l)r.on(a,l[a]);return r}function da(e,t,o){const l=o;if(l[ye])return l[ye];const r=n.inject(ye,null),a=new Kn(r,o,e);if(t&&typeof t=="object")for(const i in t)a.on(i,t[i]);return l[ye]=a,n.provide(ye,a),n.onUnmounted(()=>{a.destroy(),l[ye]=void 0}),a}function St(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[ye]??n.inject(ye,null):n.inject(ye,null)}const ot=e=>e.default??e;class ha{error(t,o){const l=o,r=o||n.hasInjectionContext()?St(o):null;r?r.emit({name:"*",maxLevel:1},"setErrorTip",t):typeof l.setErrorTip=="function"&&l.setErrorTip(t)}reset(t){const o=t,l=t||n.hasInjectionContext()?St(t):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(t){const o=t,l=t||n.hasInjectionContext()?St(t):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(t,o,l){Array.isArray(t)||(t=[t]);const r=l,a=l||n.hasInjectionContext()?St(l):null,i=o.find(s=>s.required===!0||s.type==="required"&&s.required!==!1),u=t.find(s=>s.required===!0||s.type==="required"&&s.required!==!1);!i&&u?a?a.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):i&&!u&&(a?a.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(l))}getValue(t){return t.modelValue}}let Tt=new ha;function ma(e){Tt=e}function ga(e){Tt?Object.assign(Tt,e):Tt=e}function pa(e,t){ot(lt).setValidator(e,t)}function va(e){ot(lt).deleteValidator(e)}let er=["blur","clear"];function ya(e){er=e}function tr(){return er}let nr=["focus","change","setValue"];function ba(e){nr=e}function lr(){return nr}function xa(e){ot(lt).messages(e)}function bt(...e){const t=[];return e.forEach(o=>{o.forEach(l=>{const r=t.findIndex(a=>a.type===l.type);r!==-1&&t.splice(r,1),t.push(l)})}),t}function Ft(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 or{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(t,o,l){this.parent=t,this.descriptor=o,this.proxy=l,(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=n.effectScope(!0),this.scope.run(()=>{n.watchEffect(()=>{const o=Ft(bt(this.attrRules,this.rules)),l=[];for(let a in t){let i=t[a];if(this.hasValidator(a,!0)){if(i===!1)continue;let s={type:a};i!==null&&typeof i=="object"&&Object.assign(s,i),l.push(s);continue}let u=this.getValidator(a);if(u!==null){let s={type:a,validator:u};l.push(s)}}this.attrRules=Ft(l);const r=bt(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(t,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[t]=="function")return Reflect.apply(l[t],l,[...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,l=!1){l?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 l=Reflect.has(this.validators,t);return!l&&this.parent!==null&&(l=this.parent.hasValidator(t,!1)),l}}setRule(t){const o=bt(this.attrRules,this.rules);t===null?this.rules=[]:Array.isArray(t)?this.rules=Ft(t):this.rules=Ft([t]);const l=bt(this.attrRules,this.rules);n.nextTick(()=>{this.decorate(l,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 l=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${l}`]:o},a=this.getValue(),i={[`${l}`]:a},u=ot(lt),s=new u(r),c=this.proxy??i;return s.validate(i,{context:c}).then(m=>{if(m.pass)this.success();else{let p="error";Array.isArray(m.errors)&&m.errors.length>0&&(p=m.errors[0].message??p,m.errors=[m.errors[0]],m.errors[0].ref=c),this.error(p)}return m}).catch(m=>{const p=m.message??`${m}`;return this.error(p),m})}}return Promise.resolve({pass:!0})}}function Xt(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 or(t,o,e)}const qt=Symbol.for("EventEmitterKey");class rr{register=new Map;proxy;constructor(t){this.proxy=t}destroy(){this.proxy=null,this.register.clear()}off(t,o){let l=this.register.get(t);if(l&&Array.isArray(l)){let r=l.findIndex(a=>a===o);r!==-1&&l.splice(r,1)}}on(t,o){let l=this.register.get(t);l||(l=new Array,this.register.set(t,l)),l.push(o)}emit(t,...o){const l=this.register.get(t);l&&l.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(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},t)}}function ar(e,t){let o=0;return function(...l){const r=new Date().getTime();r-o<t||(o=r,Reflect.apply(e,null,[...l]))}}function wa(e,t){const o=Ct((l,r)=>{e=l,r()},t);return n.customRef((l,r)=>({get(){return l(),e},set(a){o(a,r)}}))}function Sa(e){let t=!1;return function(...o){t||(t=!0,Reflect.apply(e,null,[...o]))}}function Zt(e,t,o,l=0,r=!0,a){let i=t,u=0;if(r){const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}}const s=()=>{const c=e();if(u++,c){typeof a=="function"&&a(!0);return}if(u>o){typeof a=="function"&&a(!1);return}i+=l,setTimeout(s,i)};setTimeout(s,i)}const Fe=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class Jt{_parent=null;get parent(){return this._parent}set parent(t){this._parent=t}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(t){this._broadcast=t}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(t){this._validateSchema=t}_props=n.reactive({});constructor(t=null){this._name=t}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(t,o=[]){for(const l in t){const r=t[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=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 l=this._props[t];if(l!=null)return l}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 l=this;for(;l!=null;){if(Reflect.has(l._props,t)){const r=l._props[t];o.push(r)}l=l._parent}return o}}const Ta=new Jt;function ft(){return Ta}function Ue(e=null){return e||(e=n.getCurrentInstance()?.proxy??null),e?e[Fe]??n.inject(Fe,null):n.inject(Fe,null)}const bn=Symbol("OriginalDateKey");function Wn(e,t,o=[],l){const r=n.getCurrentInstance();let a=r?.proxy,i=n.inject(Fe,null);i===null&&(i=ft());const u=e||t.prop||t.name;let s=new Jt(u);s.parent=i;const c=f=>{a[bn]||p(f),s?.set("modelValue",f)},d=()=>s?.getForSelf("modelValue")??null,m=()=>a[bn]??null,p=f=>{const h={};at(!0,h,n.toRaw(f)),a[bn]=h};n.isReactive(t)||typeof t=="function"?n.watch(t,f=>{s?.merge(f,o)},{immediate:!0}):s.merge(t,o),t.modelValue&&p(t.modelValue);const y=(f,h)=>{s?.set(f,h)},g=f=>s?.getForSelf(f)??null;if(a[Fe]=s,n.provide(Fe,s),r!==null){const f=n.inject(ye,null),h=Ut(a,f,u,l);s.broadcast=h,a[ye]=h,n.provide(ye,h),a.broadcast=(T,B,...q)=>Reflect.apply(h.emit,h,[T,B,...q]);const O=n.inject(_e,null),S=Xt(a,O,{componentName:""});s.validateSchema=S,a[_e]=S,n.provide(_e,S),a[ut]=new Map,a.validate=(T=!0)=>{const B=[];let q=null;const M={deep:!1};if(T===!0)q={name:"*"};else if(Array.isArray(T)&&T.length>0){const L=T;q={name:R=>R?L.indexOf(R)!==-1:!1}}else if(T!=null&&typeof T=="object"){const L=T;if(Object.assign(M,L),Array.isArray(L.include)&&L.include.length>0){const R=L.include;q={name:w=>w?R.indexOf(w)!==-1:!1}}else if(Array.isArray(L.exclude)&&L.exclude.length>0){const R=L.exclude;q={name:w=>w?R.indexOf(w)===-1:!1}}else q={name:"*"}}if(q){const L=h?.emitToChildren(q,"validate",M);L&&Reflect.apply([].push,B,L)}return B.length==1?B[0]:B.length>1?Promise.all(B).then(L=>{let R=[];return L.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(R=[...R,...w.errors])}),R.length>0?{pass:!1,errors:R}:{pass:!0}}):Promise.resolve({pass:!0})},a.setNameValidateRules=(T,B=!0,q=!1)=>{if(q===!0){Reflect.ownKeys(T).forEach(L=>{let R=String(L);const w={componentName:"",fieldName:R,pureDataValidate:!0};if(s){const N=ur(s,R,w,h,S);a[ut].set(R,N);const v=T[R];v&&N.validateSchema.setRule(v)}});return}if(B){const M=Reflect.ownKeys(T),L={name:R=>M.includes(R)};h?.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 q=T;B={name:M=>M?q.indexOf(M)!==-1:!1}}else if(T!=null&&typeof T=="object"){const q=T;if(Array.isArray(q.include)&&q.include.length>0){const M=q.include;B={name:L=>L?M.indexOf(L)!==-1:!1}}else if(Array.isArray(q.exclude)&&q.exclude.length>0){const M=q.exclude;B={name:L=>L?M.indexOf(L)===-1:!1}}else B={name:"*"}}B&&h?.emitToChildren(B,"clearValidate",!1)},a.resetFields=T=>{const B=d();if(!B)return;const q={};if(at(!0,q,m()??{}),Array.isArray(T))T.forEach(M=>{B[M]=q[M]});else if(T&&Array.isArray(T.include))(T.include??[]).forEach(L=>{B[L]=q[L]});else if(T&&Array.isArray(T.exclude)){let M=T.exclude??[];Reflect.ownKeys(q).forEach(L=>{M.includes(L)||(B[L]=q[L])})}else Object.assign(B,q);a.clearValidate(T)},a.setModelValue=(T,B)=>{!B||B===u?c(T):h?.emitToChildren({name:B},"setModelValue",T)},a.getModelValue=()=>d(),a.setDomainProperty=(T,B)=>{y(T,B)},a.getDomainProperty=T=>g(T)}return n.onUnmounted(function(){s?.validateSchema&&(s.validateSchema.destroy(),a[_e]=void 0,n.provide(_e,null)),s?.broadcast&&(s?.broadcast?.destroy(),a[ye]=void 0,n.provide(ye,null)),s?.destroy(),a[Fe]=void 0,n.provide(Fe,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,a.setDomainProperty=null,a.getDomainProperty=null,s=null,a=null}),s}function ir(e,t,o=[]){let r=n.getCurrentInstance()?.proxy,a=n.inject(Fe,null);a===null&&(a=ft());const i=e||t.prop||t.name;let u=new Jt(i);return u.parent=a,n.isReactive(t)||typeof t=="function"?n.watch(t,s=>{u?.merge(s,o)},{immediate:!0}):u.merge(t,o),r[Fe]=u,n.provide(Fe,u),n.onUnmounted(()=>{u?.destroy(),r[Fe]=void 0,n.provide(Fe,null),u=null,r=null}),u}function sr(e,t,o){const r=Ue(e)?.get("rules");if(!r)return;let a=r[o];a&&(Array.isArray(a)||(a=[a]),t.setRule(a))}function Te(e,t,o){const r=n.getCurrentInstance()?.proxy,a=t??"",i=n.inject(ye,null);let u=Ut(r,i,a,o);r[ye]=u,n.provide(ye,u),r.broadcast=(g,f,...h)=>u?Reflect.apply(u.emit,u,[g,f,...h]):null;const s=n.inject(_e,null);e.fieldName=e.fieldName??a;let c=Xt(r,s,e);r[_e]=c,n.provide(_e,c),sr(r,c,a),r.validate=(g=null)=>{if(!c)return Promise.resolve({pass:!0});const f=[];let h=!1,O=!1;if(Array.isArray(g)&&g.indexOf(a)!==-1)O=!0,h=!0;else if(g&&typeof g=="object"){const S=g,T=S.ignoreDisabled??!0,B=S.ignoreReadonly??!0,q=S.ignoreHidden??!0;T===!0&&e.disabled===!0||B===!0&&e.readonly===!0||q===!0&&Gt(r.$el)?O=!1:(Array.isArray(S.include)&&S.include.indexOf(a)!==-1||Array.isArray(S.exclude)&&S.exclude.indexOf(a),O=!0),h=S.deep??!1}else typeof g=="boolean"&&(h=g),O=!0;if(O){const S=c?.validate();f.push(S)}if(h){let S=null;const T={deep:!1};if(g===!0)S={name:"*"};else if(Array.isArray(g)&&g.length>0){const B=g;S={name:q=>q?B.indexOf(q)!==-1:!1}}else if(g!=null&&typeof g=="object"){const B=g;if(Object.assign(T,B),Array.isArray(B.include)&&B.include.length>0){const q=B.include;S={name:M=>M?q.indexOf(M)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const q=B.exclude;S={name:M=>M?q.indexOf(M)===-1:!1}}else S={name:"*"}}if(S&&u){const B=u.emitToChildren(S,"validate",T);Reflect.apply([].push,f,B)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(S=>{let T=[];return S.forEach(B=>{B.pass===!1&&Array.isArray(B.errors)&&(T=[...T,...B.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=g=>c?.setRule(g),r.setNameValidateRules=(g,f=!1)=>{const h=g[a];if(h&&c?.setRule(h),f&&u){const O={name:S=>Reflect.ownKeys(g).includes(S)};u.emitToChildren(O,"setNameValidateRules",g,!1)}},r.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(t??"")!==-1)&&c?.clear();let f=null;if(g===!0)f={name:"*"};else if(Array.isArray(g)&&g.length>0){const h=g;f={name:O=>O?h.indexOf(O)!==-1:!1}}else if(g!=null&&typeof g=="object"){const h=g;if(Array.isArray(h.include)&&h.include.length>0){const O=h.include;f={name:S=>S?O.indexOf(S)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const O=h.exclude;f={name:S=>S?O.indexOf(S)===-1:!1}}else f={name:"*"}}f&&u&&u.emitToChildren(f,"clearValidate",!1)};let d=new rr(r);r[qt]=d;const m=Ct((g="validate")=>{c&&(g==="reset"?c.clear():c.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:tr()).forEach(g=>{d&&d.on(g,f=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:lr()).forEach(g=>{d&&d.on(g,f=>{m("reset")})}),n.onUnmounted(()=>{u?.destroy(),r[ye]=void 0,n.provide(ye,null),u=null,c?.destroy(),r[_e]=void 0,n.provide(_e,null),c=null,d?.destroy(),r[qt]=void 0,d=null,r.broadcast=null,r.validate=null,r.setValidateRule=null,r.setNameValidateRules=null,r.clearValidate=null}),{broadcast:u,validateSchema:c,emitEvent:(g,...f)=>{d&&Reflect.apply(d.emit,d,[g,...f])},onEvent:(g,f)=>{d&&Reflect.apply(d.on,d,[f])},offEvent:(g,f)=>{d&&Reflect.apply(d.off,d,[f])}}}function ur(e,t,o,l,r){const a={},i=t??"",u={getValue(){const d=e.getForSelf("modelValue");return d?d[i]:null},isExist(){const d=e.getForSelf("modelValue");return d?Reflect.has(d,i):!1}};o.fieldName=i,o.validateHandler={getValue(d){return u.getValue()}};let s=Xt({},r,o);a.validate=(d=null)=>{if(!u.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const m=[];let p=!1,y=!1;if(Array.isArray(d)&&d.indexOf(i)!==-1)y=!0,p=!0;else if(d&&typeof d=="object"){const g=d;Array.isArray(g.include)&&g.include.indexOf(i)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(i),y=!0,p=g.deep??!1}else typeof d=="boolean"&&(p=d),y=!0;if(y&&s){const g=s.validate();m.push(g)}if(p){let g=null;const f={deep:!1};if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const h=d;g={name:O=>O?h.indexOf(O)!==-1:!1}}else if(d!=null&&typeof d=="object"){const h=d;if(Object.assign(f,h),Array.isArray(h.include)&&h.include.length>0){const O=h.include;g={name:S=>S?O.indexOf(S)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const O=h.exclude;g={name:S=>S?O.indexOf(S)===-1:!1}}else g={name:"*"}}if(g&&c){const h=c.emitToChildren(g,"validate",f);Reflect.apply([].push,m,h)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let f=[];return g.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(f=[...f,...h.errors])}),f.length>0?{pass:!1,errors:f}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=d=>s?.setRule(d),a.setNameValidateRules=d=>{const m=d[i];m&&s?.setRule(m)};let c=Ut(null,l,i,a);return n.onUnmounted(()=>{s=null,c=null}),{broadcast:c,validateSchema:s}}function cr(){let t=n.getCurrentInstance()?.proxy,o=new rr(t);return t[qt]=o,n.onUnmounted(()=>{o?.destroy(),t[qt]=void 0,o=null,t=null}),{emitEvent:(l,...r)=>{o&&Reflect.apply(o.emit,o,[l,...r])},onEvent:(l,r)=>{o&&Reflect.apply(o.on,o,[r])},offEvent:(l,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:`${me(e,t)}px`:"";function me(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:i}=window.getComputedStyle(document.documentElement,null),u=i.indexOf("px");u>0&&(a=Number(i.substring(0,u)))}return r*=a,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))/100*t;const l=Number(e);return isNaN(l)?0:l}const et="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=me(e.top)),e.left!==null&&e.left!==void 0&&(t.left=me(e.left)),e.bottom!==null&&e.bottom!==void 0&&(t.bottom=me(e.bottom)),e.right!==null&&e.right!==void 0&&(t.right=me(e.right))),t}function An(e,t,o={},l=!0,r=-1,a=-1,i=0,u=0){if(e.headerHeight=me(o.headerHeight??t.headerHeight??-1),e.headerPadding=je(o.headerPadding??t.headerPadding),e.footerHeight=me(o.footerHeight??t.footerHeight??-1),e.footerPadding=je(o.footerPadding??t.footerPadding),e.contentPadding=je(o.contentPadding??t.contentPadding),l){const s=o.height??t.height;s?e.height=me(s,a):e.height=me(a)-me(i,a)-me(u,a),e.width=me(o.width??t.width??0,r)}}function fr(e,t={}){const o={top:null,left:null,bottom:null,right:null},l={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&&(l.safeAreaTop=me(r.top),l.safeAreaBottom=me(r.bottom),l.safeAreaLeft=me(r.left),l.safeAreaRight=me(r.right));const a=e.get("pageLayout");if(!a)return null;const i=e.get("rootWidth")??-1,u=e.get("rootHeight")??-1,s=e.get("headerBarHeight")??0,c=e.get("footerBarHeight")??0;An(l,a,t,!0,i,u,s,c);const d=n.reactive(l),m=e.getForParent(et);m&&(l.height=jt(e,m),l.width=zt(e,m),n.watch([()=>jt(e,m),()=>zt(e,m)],([y,g])=>{d.height=y,d.width=g}));const p=!m;return n.watch([()=>t.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,f=-1,h=-1,O=0,S=0])=>{An(d,g,t,p,f,h,O,S)}),e.set(et,d),d}function Qt(e){return e.get(et)}function Nt(e,t){if(t=t??e.get(et),t&&t.headerMounted){const o=t.safeAreaTop==-1?0:t.safeAreaTop;return t.headerAllHeight??t.headerHeight+o}return 0}function Et(e,t){if(t=t??e.get(et),t&&t.footerMounted){const o=t.safeAreaBottom==-1?0:t.safeAreaBottom;return t.footerAllHeight??t.footerHeight+o}return 0}function jt(e,t){if(t=t??e.get(et),t){if(t.contentInnerHeight)return t.contentInnerHeight;const o=Nt(e,t),l=Et(e,t);return t.height-o-l-(t.contentPadding.top??0)-(t.contentPadding.bottom??0)}return 0}function zt(e,t){return t=t??e.get(et),t?t.contentInnerWidth??t.width-(t.contentPadding.left??0)-(t.contentPadding.right??0):0}function $a(e,t){const o=e.get("isInnerPage");return typeof o=="function"?Reflect.apply(o,{},[t,e]):!1}function Ca(e){return!!e.getForParent(et)}var Ae=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ae||{});function Rt(e,t){return e==null?!1:typeof t=="function"?t(e):!0}function Oe(e,t,o=1,l){const r=Ue();return r==null?e:o===0?n.computed(()=>{const a=r.getAll(t);for(let u=a.length-1;u>=0;u--){const s=a[u];if(Rt(s,l))return s}const i=e.value;return Rt(i,l)?i:null}):n.computed(()=>{const a=e.value;if(Rt(a,l))return a;const i=r.getAll(t);for(let u=0;u<i.length;u++){const s=i[u];if(Rt(s,l))return s}return null})}function Ve(e){return Oe(e,"readonly",1)}function De(e){return Oe(e,"disabled",1)}function he(e,t="modelValue",o=null,l){const r=n.toRef(e,t);let a=r.value;typeof o=="function"&&(a=o(r.value));const i=n.ref(a);return n.watch(r,u=>{if(typeof o=="function"){const s=o(u);s!==i.value&&(i.value=s,l&&l("setValue",s))}else u!==i.value&&(i.value=u,l&&l("setValue",u))}),i}const dr=new Map,Ht=new Map;let Mn=null;function Na(e){Mn=e}function hr(e,t,o){if(o){let l=Ht.get(o);l||(l=new Map,Ht.set(o,l)),l.set(e,t)}else dr.set(e,t)}function qe(e,t,o){!o&&Mn&&(o=Mn(e)??void 0);let l=null;if(o){let r=Ht.get(o);r&&(l=r.get(t))}return l||(l=dr.get(t)),l}function Ea(e,t){for(let o in e){const l=e[o];hr(o,l,t)}}function ka(e){Ht.delete(e)}function Pa(){return{top:0,left:0,bottom:0,right:0}}function Ia(){if(it){const e=document.documentElement.clientWidth||document.body.clientWidth,t=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:t,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{}}}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,l){this.packages=t,this.installers=o,this._version=l}install(t,o={}){o?.install!==!1&&(this.packages.forEach(a=>{if(a.install)t.use(a);else if(a.name){const i=Oa(a.name,o);t.component(i,a)}}),this.installers.forEach(a=>{a(t,o)}));const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=ft();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const a=ar(()=>{const u={...o},s=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight;u.width=s,u.height=c,this.initPageLayout(u,r)},150);new window.ResizeObserver(a).observe(window.document.body)}for(const a in o)l.indexOf(a)===-1&&r.set(a,o[a])}initPageLayout(t,o){const l=t.headerBarHeight??0,r=t.footerBarHeight??0,a=at({},Pa(),t.safeAreaInset),i=Ia(),u=at({},i.pageLayout,t.pageLayout);o=o??ft(),o.set("safeAreaInset",a),o.set("headerBarHeight",l),o.set("footerBarHeight",r),o.set("pageLayout",u),o.set("rootWidth",i.rootWidth),o.set("rootHeight",i.rootHeight)}setScopeGetter(t){Na(t)}setAPI(t,o,l){hr(t,o,l)}getAPI(t,o,l){return qe(t,o,l)}batchSetAPI(t,o){Ea(t,o)}clearScopeAPI(t){ka(t)}getRootDomain(){return ft()}}const Da=[b.ElAffix,b.ElAlert,b.ElAutocomplete,b.ElAutoResizer,b.ElAvatar,b.ElBacktop,b.ElBadge,b.ElBreadcrumb,b.ElBreadcrumbItem,b.ElButton,b.ElButtonGroup,b.ElCalendar,b.ElCard,b.ElCarousel,b.ElCarouselItem,b.ElCascader,b.ElCascaderPanel,b.ElCheckTag,b.ElCheckbox,b.ElCheckboxButton,b.ElCheckboxGroup,b.ElCol,b.ElCollapse,b.ElCollapseItem,b.ElCollapseTransition,b.ElColorPicker,b.ElConfigProvider,b.ElContainer,b.ElAside,b.ElFooter,b.ElHeader,b.ElMain,b.ElDatePicker,b.ElDescriptions,b.ElDescriptionsItem,b.ElDialog,b.ElDivider,b.ElDrawer,b.ElDropdown,b.ElDropdownItem,b.ElDropdownMenu,b.ElEmpty,b.ElForm,b.ElFormItem,b.ElIcon,b.ElImage,b.ElImageViewer,b.ElInput,b.ElInputNumber,b.ElLink,b.ElMenu,b.ElSubMenu,b.ElMenuItem,b.ElMenuItemGroup,b.ElPageHeader,b.ElPagination,b.ElPopconfirm,b.ElPopover,b.ElPopper,b.ElProgress,b.ElRadio,b.ElRadioButton,b.ElRadioGroup,b.ElRate,b.ElResult,b.ElRow,b.ElScrollbar,b.ElSelect,b.ElOption,b.ElOptionGroup,b.ElSelectV2,b.ElSkeleton,b.ElSkeletonItem,b.ElSlider,b.ElSpace,b.ElSteps,b.ElStep,b.ElSwitch,b.ElTable,b.ElTableColumn,b.ElTableV2,b.ElTabs,b.ElTabPane,b.ElTag,b.ElTimePicker,b.ElTimeSelect,b.ElTimeline,b.ElTimelineItem,b.ElTooltip,b.ElTransfer,b.ElTree,b.ElTreeSelect,b.ElTreeV2,b.ElUpload,b.ElStatistic,b.ElCountdown,b.ElSegmented,b.ElAnchor,b.ElAnchorLink,b.ElWatermark,b.ElMessageBox,b.ElMessage,b.ElNotification],Fa=[b.ElInfiniteScroll,b.ElLoading,b.ElMessage,b.ElMessageBox,b.ElNotification,b.ElPopoverDirective],Ra=(e,t={})=>{const o=t.componentPrefix??"fox",l=o[0].toUpperCase()+o.slice(1);Da.forEach(r=>{let a=r.name;typeof a=="string"?(a=`${l}${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=l=>{l.component(o.name,o)},n.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,n.defineComponent(o)}}}function be(e,t=null){if(t||(t=n.getCurrentInstance()),t&&t.proxy){let o=t.proxy;Object.assign(o,e)}}const we={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},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}},mr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},gr={name:{type:String,required:!1},prop:{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}},pr=[];for(const e in gr)pr.push(e);const Aa=Symbol.for("InnerPageScopeKey"),Ma={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:{...we,...mr,...Ma},setup(o,{slots:l}){const r=Wn(o.name,o),a=n.inject(Aa,!1);if(r){const d=fr(r,o);be({getPageContentHeight:()=>jt(r,d),getPageContentWidth:()=>zt(r,d),getPageHeaderHeight:()=>Nt(r,d),getPageFooterHeight:()=>Et(r,d)}),d&&a&&(d.contentHeight="100%")}const i=n.computed(()=>({[e]:!0})),u=n.computed(()=>({})),s=n.getCurrentInstance(),c=(d,m=!1)=>{const p=s?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(d,!0,m)};return n.watch([()=>o.rules,()=>o.pureDataRules],([d,m],[p,y])=>{if(d&&p){const g=n.toRaw(p),f=n.toRaw(d),h=f?Reflect.ownKeys(f):[];(g?Reflect.ownKeys(g):[]).forEach(S=>{h.includes(S)||(f[S]=[])}),c(f)}if(m&&y){const g=n.toRaw(y),f=n.toRaw(m),h=f?Reflect.ownKeys(f):[];(g?Reflect.ownKeys(g):[]).forEach(S=>{h.includes(S)||(f[S]=[])}),c(f,!0)}},{deep:!0}),n.onMounted(()=>{if(o.rules){const d=n.toRaw(o.rules);c(d)}if(o.pureDataRules){const d=n.toRaw(o.pureDataRules);c(d,!0)}}),()=>{const d={class:i.value,style:u.value};return n.h("div",d,[l?.default?.()])}}}),{componentName:Ba,create:_a,scope:Dh}=ie("page"),Yn=_a(La(Ba));function en(e){const t=n.unref(e);return{width:t.offsetWidth,height:t.offsetHeight}}function Gn(e){const t=n.unref(e),o=window.getComputedStyle(t,null),l=parseFloat(o.getPropertyValue("padding-left")),r=parseFloat(o.getPropertyValue("padding-right")),a=parseFloat(o.getPropertyValue("padding-top")),i=parseFloat(o.getPropertyValue("padding-bottom"));return{width:t.clientWidth-l-r,height:t.clientHeight-a-i}}const qa=(e,t,o,l=!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 i=Ue(),u=i?Qt(i):null;u&&(u.headerMounted=!0);const s=e,c=n.computed(()=>({[s]:!0,[`${s}--border`]:r.border,[`${s}--fixed`]:r.fixed,[`${s}--safe-area-inset-top`]:r.safeAreaInsetTop})),d=n.computed(()=>({[`${s}__inner`]:!0,[`${s}__inner--${r.align}`]:!0})),m=r.height!==null&&r.height!==void 0?me(r.height):null,p=n.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&u){const v=je(r.padding??u.headerPadding);return Object.assign(N,v),m&&(u.headerHeight=m),u.headerHeight>0&&(N.height=u.headerHeight),N.safeAreaTop=u.safeAreaTop===-1?0:u.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(v.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(m&&(N.height=m),r.padding){const v=je(r.padding);Object.assign(N,v)}return N}),y=n.ref(null),g=()=>{if(u&&y.value&&!Gt(y.value)){if(!l){const N=en(y.value);u.headerAllHeight=N.height}return u.headerMounted=!0,!0}return!1};let f=null;n.onMounted(()=>{u&&(Zt(g,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(()=>{g()}),f.observe(y.value)))}),n.onUnmounted(()=>{u&&(u.headerMounted=!1,f&&(f.disconnect(),f=null))});const h=n.computed(()=>{const N={};return p.value.height!==null&&p.value.height!==void 0&&(N.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(N.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(N.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(N.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(N.paddingBottom=`${p.value.bottom}px`),N}),O=n.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function S(){a.emit("back")}function T(){a.emit("click-title")}function B(){a.emit("click-right")}function q(){a.emit("click-right-text")}const M=()=>{if(!r.leftShow)return null;const N=[];if(a.slots.left)N.push(a.slots.left());else{if(a.slots.leftIcon){const v=n.h("view",{class:"left-icon",onClick:S},[a.slots.leftIcon()]);N.push(v)}else if(r.leftIcon){const v=n.h("view",{class:"left-icon",onClick:S},[n.h(r.leftIcon)]);N.push(v)}if(r.leftText){const v=n.h("view",{class:"left-text",onClick:S},[r.leftText]);N.push(v)}}return N.length===0?null:n.h("view",{class:"fox-header-bar__left"},N)},L=()=>{if(!r.rightShow)return null;const N=[];if(a.slots.right)N.push(a.slots.right());else{if(r.rightText){const v=n.h("view",{class:"right-text",onClick:q},[r.rightText]);N.push(v)}if(a.slots.rightIcon){const v=n.h("view",{class:"right-icon",onClick:B},[a.slots.rightIcon()]);N.push(v)}else if(r.rightIcon){const v=n.h("view",{class:"right-icon",onClick:B},[n.h(r.rightIcon)]);N.push(v)}}return N.length===0?null:n.h("view",{class:"fox-header-bar__right"},N)},R=()=>{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 _=n.h("view",{class:"title-text"},[r.title]);N.push(_)}if(a.slots.titleIcon){const _=n.h("view",{class:"title-icon",onClick:T},[a.slots.titleIcon()]);N.push(_)}else if(r.titleIcon){const _=n.h("view",{class:"title-icon",onClick:T},[n.h(r.titleIcon)]);N.push(_)}}return N.length===0?null:n.h("view",{class:"fox-header-bar__title"},N)},w=()=>{const N=[],v=a.slots.bottom?a.slots.bottom():null;return v&&N.push(v),N.length===0?null:n.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!O.value)return null;const N=[];if(a.slots.all)N.push(a.slots.all());else{const _=[],Z=M();Z&&_.push(Z);const F=R();F&&_.push(F);const C=L();if(C&&_.push(C),_.length>0){const A=n.h("view",{class:d.value},_);N.push(A)}const V=w();V&&N.push(V)}if(N.length===0)return null;const v={class:c.value,style:h.value,ref:y};return n.h("view",v,N)}}}),{componentName:ja,create:za,scope:Ha}=ie("header-bar"),Un=za(qa(ja,Ha,Ne.ArrowLeft));function Ka(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(l,r){const a=Ue(),i=a?Qt(a):null,u=n.computed(()=>{const g=e;return{[g]:!0,[`${g}--${l.align}`]:!0,[`${g}--border`]:l.border,[`${g}--fixed`]:l.fixed,[`${g}--safe-area-inset-bottom`]:l.safeAreaInsetBottom}}),s=l.height!==null&&l.height!==void 0?me(l.height):null,c=n.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&i){const f=je(l.padding??i.footerPadding);return Object.assign(g,f),s&&(i.footerHeight=s),i.footerHeight>0&&(g.height=i.footerHeight),g.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(f.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(s&&(g.height=s),l.padding){const f=je(l.padding);Object.assign(g,f)}return g}),d=n.ref(null),m=()=>{if(i&&d.value&&!Gt(d.value)){if(!o){const g=en(d.value);i.footerAllHeight=g.height}return i.footerMounted=!0,!0}return!1};let p=null;n.onMounted(()=>{i&&(Zt(m,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{m()}),p.observe(d.value)))}),n.onUnmounted(()=>{i&&(i.footerMounted=!1,p&&(p.disconnect(),p=null))});const y=n.computed(()=>{const g={};return c.value.height!==null&&c.value.height!==void 0&&(g.height=Ce(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(g.paddingTop=Ce(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(g.paddingLeft=Ce(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(g.paddingRight=Ce(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(g.paddingBottom=Ce(c.value.bottom)),g});return()=>{const g=r.slots.default?r.slots.default():[],f={ref:d,class:u.value,style:y.value};return n.h("view",f,g)}}}}const{componentName:Wa,create:Ya,scope:Fh}=ie("footer-bar"),Xn=Ya(Ka(Wa));function Ga(e,t){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=Ue(),r=n.computed(()=>({[e]:!0})),a=l?Qt(l):null,i=n.computed(()=>{const c={};if(l&&a){if(o.padding){const y=je(o.padding);Object.assign(a.contentPadding,y)}const d=Nt(l,a),m=Et(l,a);let p="";if(a.contentHeight?p=`${a.contentHeight}`:p=`${a.height}px`,a.contentPadding,c.height=p,a.contentPadding.top||d>0){const y=(a&&a.contentPadding&&a.contentPadding.top)??0;c.paddingTop=`${d+y}px`}if(a.contentPadding.bottom||m>0){const y=(a&&a.contentPadding&&a.contentPadding.bottom)??0;c.paddingBottom=`${m+y}px`}return a.contentPadding.left&&(c.paddingLeft=`${a.contentPadding.left}px`),a.contentPadding.right&&(c.paddingRight=`${a.contentPadding.right}px`),c}if(o.padding){const d=je(o.padding);d.left&&(c.paddingLeft=`${d.left}px`),d.top&&(c.paddingTop=`${d.top}px`),d.right&&(c.paddingRight=`${d.right}px`),d.bottom&&(c.paddingBottom=`${d.bottom}px`)}return c}),u=n.ref(null),s=()=>{if(a&&u.value){const c=Gn(u.value);a.contentInnerHeight=c.height,a.contentInnerWidth=c.width}};return n.onMounted(()=>{s()}),l&&a&&n.watch([()=>Nt(l),()=>Et(l)],([])=>{s()}),{contentRef:u,classes:r,styles:i}}}}const{componentName:Ua,create:Xa,scope:Rh}=ie("content"),Za=Xa(Ga(Ua));function Ja(e,t,o,l,r,a){return n.openBlock(),n.createElementBlock("div",{ref:"contentRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.renderSlot(e.$slots,"default")],6)}const Le=(e,t)=>{const o=e.__vccOpts||e;for(const[l,r]of t)o[l]=r;return o},Zn=Le(Za,[["render",Ja]]),mt="GroupStateKey",vr=Symbol.for("GroupScopeKey");function tn(){return n.inject(vr,!1)}function nn(e=!0){n.provide(vr,e)}function Qa(e,t={}){Reflect.ownKeys(t).forEach(l=>{if(typeof l!="string")return;const r=t[l];Hn(r)||(e[l]=r)})}function ei(e,t={}){const l={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qa(l,t);const r=n.shallowRef(l),a=n.markRaw({layout:r,passport:0,order:{index:0}});return e.set(mt,a),a}function xn(e,t,o=-1,l=-1,r=!1,a,i,u){const s=e.get(mt);if(!s)return;const c=e.get("groupLayout")??{};o===-1&&(o=c.column??1),l===-1&&(l=c.gutter??0),a||(a=c.minItemWidth??-1),i||(i=c.maxItemWidth??-1);const d=me(a),m=me(i);u||(u=c.type??"grid");const p=()=>{const y=t===""||t===-1,g=me(t);let f=xe(o);const h=me(l);if(!y){let T=(g-(f-1)*h)/f;for(;m!==-1&&T>m;)f++,T=(g-(f-1)*h)/f;for(;d!==-1&&f>1&&T<d;)f--,T=(g-(f-1)*h)/f}let O=!1;const S=s.layout;S.value.width=t,S.value.column!==f&&(S.value.column=f,O=!0),S.value.gutter!==h&&(S.value.gutter=h,O=!0),S.value.type!==u&&(S.value.type=u,O=!0),O&&n.triggerRef(S)};if(r)p();else{const y=++s.passport;setTimeout(()=>{y===s.passport&&p()},50)}}function ln(e,t=!1){let o;return t?o=e.getForParent(mt):o=e.get(mt),o.layout}function on(e,t=!1){let o;return t?o=e.getForParent(mt):o=e.get(mt),o.order}function Kl(e,t=1){if(t==="stretch")return-1;const o=xe(t);return o===-1?100:100*o/e}function rn(e,t,o=1,l=0,r){const a={};let i=0;r?i=me(r):i=Kl(t.column,o),i>0&&(a.width=`${i}%`);const u=Kl(t.column,l);u>0&&(a["margin-left"]=`${u}%`);const s=t.gutter/2;return s>0&&(a["padding-left"]=`${s}px`,a["padding-right"]=`${s}px`),a}function an(e,t,o=1,l=0){if(o==="stretch"){const s=e.index%t.column,c=s+(t.column-s);return e.index=e.index+(c-s),{"grid-column":`${s+1} / -1`}}let r=xe(o);if(r===-1){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}if(r>t.column){const s=e.index%t.column;return t.column,s==0?e.index=e.index+t.column:e.index=e.index+(t.column-s)+t.column,{"grid-column":"1 / -1"}}const a=xe(l)%t.column;let i=(e.index+a)%t.column,u=i+r;return u>t.column?(i=0,u=i+r,e.index=e.index+(t.column-i)+r):e.index=e.index+a+r,a>0?{"grid-column":`${i+1} / span ${r}`}:{"grid-column-start":`span ${r}`}}const yr=Symbol("RollingStateKey");function ti(e){n.provide(yr,e)}function ni(){return n.inject(yr,null)}function Ln(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 li(e){let t=Ln(e);if(t<=0){const o=e.cloneNode(!0),l=e.offsetWidth;o.style=`width: ${l}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(o),t=Ln(o),document.body.removeChild(o)}return t}function oi(e,t,o){if(e<=0)return"1fr";const l=(e-(t-1)*o)/t;return l>0?`${l}px`:"1fr"}const ri={...we,...mr,...gr};function ai(e,t,o){return{props:ri,emits:["update:collapse","header-click"],setup(l,r){const a=Wn(l.prop??l.name,l,pr),i=ei(a,{type:l.type}),u=tn();nn(!0);const s=l.rollingDisplay?ni():null,c=n.ref(null),d=n.computed(()=>l.rollingDisplay?s&&!s.disabled:!1),m=n.computed(()=>u&&a?ln(a,!0).value:null),p=n.getCurrentInstance(),y=(E,z=!1)=>{const U=p?.proxy;U&&typeof U.setNameValidateRules=="function"&&U.setNameValidateRules(E,!0,z)};n.watch([()=>l.rules,()=>l.pureDataRules],([E,z],[U,k])=>{if(E&&U){const H=n.toRaw(U),ee=n.toRaw(E),le=ee?Reflect.ownKeys(ee):[];(H?Reflect.ownKeys(H):[]).forEach(ae=>{le.includes(ae)||(ee[ae]=[])}),y(ee)}if(z&&k){const H=n.toRaw(k),ee=n.toRaw(z),le=ee?Reflect.ownKeys(ee):[];(H?Reflect.ownKeys(H):[]).forEach(ae=>{le.includes(ae)||(ee[ae]=[])}),y(ee,!0)}},{deep:!0});const g=e,f=n.computed(()=>{const E={};E.height=C.value;const z=u?on(a,!0):null;if(m.value&&z){if(m.value.type==="grid"){const U=an(z,m.value,l.span,l.offset);Object.assign(E,U)}else if(m.value.type==="flow"){const U=rn(z,m.value,l.span,l.offset,l.width);Object.assign(E,U)}}else if(l.width){const U=Ce(l.width);E.width=U}return E}),h=n.computed(()=>{const E=i.layout.value.type;return E==="grid"||E==="flow"?{[`${g}--${E}`]:!0,[`${g}--${E}-justify-${l.justify}`]:!0,[`${g}--${E}-align-${l.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${E}`]:!0,[`${g}--gutter`]:!0}}),O=n.computed(()=>{if(i.layout.value.type==="grid"){let z="";if(l.columnWidth)z=`repeat(auto-fill, ${l.columnWidth})`;else{const U=oi(R.value,i.layout.value.column,i.layout.value.gutter);z=`repeat(${i.layout.value.column}, ${U})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":z}}}),S=n.toRef(l,"gutter"),T=n.toRef(l,"column"),B=n.computed(()=>u||d.value?!0:ue(l.isWrap)),q=[],M=E=>{q.push(E)},L=()=>{let E=q.length;q.splice(0,E)},R=n.ref(-1),w=E=>{const z=Gn(E).width;z>0&&z!==R.value&&(R.value=z)};xn(a,R.value,T.value,S.value,!0,l.minItemWidth,l.maxItemWidth,l.type),l.autoLayout&&n.watch([R,T,S],([E,z,U])=>{i.order.index=0,xn(a,E,z,U,!1,l.minItemWidth,l.maxItemWidth,l.type)});const N=n.computed(()=>V.value?l.expandText??"":l.collapseText??""),v=n.computed(()=>({[`${e}__header-collapse-text`]:!0})),_=n.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),Z=n.ref(),F=n.ref(),C=n.computed(()=>A.value||Ce(l.height)||""),V=n.ref(!1),A=n.ref(""),W=n.ref(!1);let X=-1;const Q=(E,z=!0)=>{const U=Z.value;if(U&&V.value!==E){if(X=X===-1?li(U):X,W.value=!0,z)if(U.style["will-change"]="height",U.ontransitionend=function(){U.ontransitionend=null,this.style["will-change"]="auto",E||(A.value="",W.value=!1)},E){let k=0;l.collapseHeight?k=l.collapseHeight:F.value&&F.value.classList.contains(`${e}__header`)&&(k=F.value.offsetHeight),A.value=`${X}px`,n.nextTick(()=>{A.value=`${k}px`})}else A.value=`${X}px`;else if(E){let k=0;l.collapseHeight?k=l.collapseHeight:F.value&&F.value.classList.contains(`${e}__header`)&&(k=F.value.offsetHeight),A.value=`${k}px`}else W.value=!1,A.value=`${X}px`;V.value=E,r.emit("update:collapse",E)}};n.watch(()=>l.collapse,E=>{Q(E)});const ne=E=>{r.emit("header-click",E)},P=()=>{$()},$=E=>{E=E??!V.value,Q(E)};be({toggleCollapse:$,doLayout:()=>{q[0]&&(w(q[0]),xn(a,R.value,T.value,S.value,!0,l.minItemWidth,l.maxItemWidth,l.type))}});let I=null,x=!0;const j=E=>{if(l.rules){const z=n.toRaw(l.rules);y(z)}if(l.pureDataRules){const z=n.toRaw(l.pureDataRules);y(z,!0)}if(it&&(E&&Q(ue(l.collapse),!1),l.autoLayout&&Array.isArray(q)&&q.length>0)){const z=q[0];w(z),window.ResizeObserver&&(I=new window.ResizeObserver(()=>{w(z)}),I.observe(z))}},G=()=>{I?.disconnect(),I=null},te=!d.value||s?.acquire();te&&(c.value=d.value?!0:null),n.onMounted(()=>{if(te&&(j(x),x=!1),d.value&&s){let E=null,z=s.initialHeight;s.observe(Z.value,U=>{if(U!==c.value)if(U)c.value=!0,V.value||(A.value=""),E=setTimeout(()=>{E=null,c.value!==!1&&(j(x),x=!1)},100);else{if(E!==null&&clearTimeout(E),c.value=!1,!V.value)if(x)A.value=s.initialHeight;else{let k=Ln(Z.value);k<=0?A.value=z:(A.value=`${k}px`,z=A.value)}x||G()}})}}),n.onUnmounted(()=>{I?.disconnect(),s&&s.unobserve(Z.value)});const Y=(E="right")=>{const z=[];if(N.value){const H={class:v.value},ee=n.h("span",H,[N.value]);z.push(ee)}const U={class:_.value},k=o(l.collapseIcon,U);return k&&z.push(k),z.length>0?n.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${E}`]:!0},onClick:P},z):null},K=(E,z,U,k)=>{const H={...h.value};return z===0&&(H[`${g}__first`]=!0),U>=k-1&&(H[`${g}__last`]=!0),n.h("div",{ref:M,key:`${z}`,class:H,style:O.value},E)};return()=>{if(d.value&&c.value!==!0){const H=l.tag||"div";return n.h(H,{ref:Z,prop:l.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:f.value},[])}i.order.index=0;const E=[];let z=0;if(r.slots.header){const H={key:`${z++}`,ref:F,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ne},ee=n.h("div",H,[r.slots.header()]);E.push(ee)}else{const H=[],ee=l.collapsePosition==="left";if(ee&&l.showCollapse){const le=Y("left");le&&H.push(le)}if(l.title||r.slots.title){if(l.showMark){const le={class:{[`${g}__header-mark`]:!0}};l.markColor&&(le.style={background:l.markColor});const se=n.h("div",le);H.push(se)}if(r.slots.title){const le=n.h("div",{class:{[`${g}__header-title`]:!0}},[r.slots.title()]);H.push(le)}else if(l.title){const le=n.h("div",{class:{[`${g}__header-title`]:!0}},[l.title]);H.push(le)}}if(r.slots.toolbar&&H.push(r.slots.toolbar()),!ee&&l.showCollapse){const le=Y("right");le&&H.push(le)}if(H.length>0){const le={key:`${z++}`,ref:F,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ne},se=n.h("div",le,H);E.push(se)}}L();const U=r.slots.default?r.slots.default():[],k=i.layout.value.type;if(k==="grid"){const H=K(U,z++,0,U.length);E.push(H)}else if(k==="flow"){const H=K(U,z++,0,U.length);E.push(H)}else for(let H=0;H<U.length;H++){const ee=U[H],le=K([ee],z++,H,U.length);E.push(le)}if(B.value){const H=l.tag||"div";return n.h(H,{ref:Z,prop:l.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:f.value},[E])}else return E}}}}const{componentName:ii,create:si,scope:ui}=ie("group"),ci=(e,t)=>(e=e??Ne.ArrowUp,n.h(b.ElIcon,t,{default:()=>[n.h(e)]})),Jn=si(ai(ii,ui,ci));function fi(e){return e===window}const di=/matrix\((.+)\)/,br=e=>{const t=n.unref(e);if(!t)return{x:0,y:0};if(fi(t))return{x:0,y:0};let o=0,l=0,r=t;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let a=0,i=0,u=0,s=0;for(r=t;r!==document;){i+=r.scrollTop,a+=r.scrollLeft;const{transform:c}=window.getComputedStyle(r);if(c){const d=di.exec(c);if(d){let p=d[1].split(/\s*,\s*/);p.length==6&&(u+=Number(p[4]),s+=Number(p[5]))}}r=r.parentNode}return o-=a,l-=i,o+=u,l+=s,{x:o,y:l}};class hi{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 mi{monitorRegister=new WeakMap;watch(t,o){let l=t.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a||(a=new hi,l.addEventListener("scroll",a.listen),l===document.body&&l.addEventListener("resize",a.listen),this.monitorRegister.set(l,a)),a.add(o),l=l.parentNode}}unwatch(t,o){let l=t.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let a=this.monitorRegister.get(l);a&&(a.remove(o),a.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",a.listen),l===document.body&&l.removeEventListener("resize",a.listen))),l=l.parentNode}}}const Wl=new mi,xr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:gi,create:pi}=ie("price"),vi=pi({props:{...xr},setup(e){const t=n.computed(()=>({[gi]:!0})),o=n.computed(()=>e.needSymbol?e.symbol:""),l=n.computed(()=>Ot(e.price)==0?"":Wt(e.price,e.decimalLength,!0,xe(e.digits),e.separator)),r=n.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(0,u)}),a=n.computed(()=>{let i=l.value;if(i.length==0)return"";let u=i.indexOf(".");return i.substring(u+1)});return{classes:t,showSymbol:o,intText:r,decimalText:a}}}),yi=["innerHTML"],bi=["innerHTML"];function xi(e,t,o,l,r,a){return n.openBlock(),n.createElementBlock("view",{class:n.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--${e.size}`)},n.toDisplayString(e.intText),3),e.decimalText.length!=0?(n.openBlock(),n.createElementBlock("view",{key:1,class:n.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:n.normalizeClass(`fox-price--decimal-${e.size}`)},n.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(n.openBlock(),n.createElementBlock("view",{key:2,class:n.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,bi)):n.createCommentVNode("",!0)],2)}const sn=Le(vi,[["render",xi]]),{componentName:wn,create:wi}=ie("hint-text"),Si=wi({components:{Price:sn},props:{...xr,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=n.ref({top:null,right:null,bottom:null,left:null}),l=n.ref({x:0,y:0}),r=n.ref(0),a=n.ref(0),i=n.ref(e.placement),u=n.ref(!1),s=n.ref(null),c=(v,_,Z,F,C,V)=>{const A=document.documentElement.clientWidth||document.body.clientWidth,W=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},P=[];for(let $=0;$<Q.length;$++){const D=Q[$];if(P[0]=D,X[1]&&(P[1]=X[1]),D==="top"){const I=_.y-V-e.arrowSize-e.offset;if(I>=0){ne.top=I;let x=0;X[1]==="start"?x=_.x:X[1]==="end"?x=_.x+Z-C:x=_.x+Z/2-C/2;const j=A-x-C;j<0?(x+=j,m.value=-j):m.value=0,ne.left=x<0?0:x;break}}else if(D==="bottom"){const I=_.y+F+e.arrowSize+e.offset;if(I+V<=W){ne.top=I;let x=0;X[1]==="start"?x=_.x:X[1]==="end"?x=_.x+Z-C:x=_.x+Z/2-C/2;const j=A-x-C;j<0?(x+=j,m.value=-j):m.value=0,ne.left=x<0?0:x;break}}else if(D==="left"){const I=_.x-C-e.arrowSize-e.offset;if(I>=0){ne.left=I;let x=0;X[1]==="start"?x=_.y:X[1]==="end"?x=_.y+F-V:x=_.y+F/2-V/2,ne.top=x<0?0:x;break}}else if(D==="right"){const I=_.x+Z+e.arrowSize+e.offset;if(I+C<=A){ne.left=I;let x=0;X[1]==="start"?x=_.y:X[1]==="end"?x=_.y+F-V:x=_.y+F/2-V/2,ne.top=x<0?0:x;break}}}return{bestPlacement:P.join("-"),bestInsetRect:ne}},d=(v,_,Z=10)=>{if(!it||_===!1||!v)return;l.value=br(e.reference),r.value=e.reference.offsetWidth,a.value=e.reference.offsetHeight;const F=s.value.offsetHeight,C=s.value.offsetWidth,{bestPlacement:V,bestInsetRect:A}=c(e.placement,l.value,r.value,a.value,C,F);i.value=V,o.value=A,u.value=!0},m=n.ref(0),p=Ct(()=>{d(e.message,e.visible)},10),y=n.ref(e.visible);n.watch(()=>e.visible,v=>{y.value=v});const g=n.computed(()=>y.value&&f.value),f=n.ref(!0),h=Ct(v=>{const _=v[0];_&&(f.value=_.isIntersecting)},10),O=new IntersectionObserver(h);n.watch([()=>e.message,()=>e.visible],([v,_])=>{setTimeout(()=>{d(e.message,e.visible)},0)}),n.onMounted(()=>{setTimeout(()=>{d(e.message,e.visible)},0),Wl.watch(e.reference,p),O.observe(e.reference)}),n.onBeforeMount(()=>{Wl.unwatch(e.reference,p),O.unobserve(e.reference),O.disconnect()});const S=n.computed(()=>{const v={[wn]:!0};return i.value.startsWith("top")?v["is-top"]=!0:i.value.startsWith("right")?v["is-right"]=!0:i.value.startsWith("bottom")?v["is-bottom"]=!0:i.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}),T=n.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`,u.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=n.computed(()=>{const v=[`${wn}__content`];return e.customTextClass&&v.push(e.customTextClass),v}),q=n.computed(()=>{const v={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(v,e.customTextStyle),v}),M=n.computed(()=>({[`${wn}__arrow`]:!0})),L=n.computed(()=>{const v={};return e.showArrow?(v.width=`${e.arrowSize}px`,v.height=`${e.arrowSize}px`,i.value==="top"?(v.left="50%",v.bottom=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):i.value==="top-start"?(v.left=`${e.arrowOffset+m.value}px`,v.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(v.right=`${e.arrowOffset-m.value}px`,v.bottom=`-${e.arrowSize}px`):i.value==="right"?(v.left=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):i.value==="right-start"?(v.left=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):i.value==="right-end"?(v.left=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(v.left="50%",v.top=`-${e.arrowSize}px`,v.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(v.left=`${e.arrowOffset+m.value}px`,v.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(v.right=`${e.arrowOffset-m.value}px`,v.top=`-${e.arrowSize}px`):i.value==="left"?(v.right=`-${e.arrowSize}px`,v.top="50%",v.transform=" translate(0%, -50%)"):i.value==="left-start"?(v.right=`-${e.arrowSize}px`,v.top=`${e.arrowOffset}px`):i.value==="left-end"&&(v.right=`-${e.arrowSize}px`,v.bottom=`-${e.arrowOffset}px`),v):{display:"none"}}),R=n.computed(()=>g.value&&e.closeOnClick),w=n.computed(()=>{const v={};return e.zIndex&&(v["z-index"]=`${e.zIndex}`),v});return{show:g,tipRef:s,classes:S,styles:T,textClasses:B,textStyles:q,arrowClasses:M,arrowStyles:L,overlayShow:R,overlayStyle:w,onClickOverlay:()=>{y.value=!1,t.emit("update:visible",!1)}}}}),Ti=["innerHTML"];function $i(e,t,o,l,r,a){const i=n.resolveComponent("Price");return n.openBlock(),n.createElementBlock(n.Fragment,null,[e.overlayShow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:n.normalizeStyle(e.overlayStyle),onClick:t[0]||(t[0]=(...u)=>e.onClickOverlay&&e.onClickOverlay(...u))},null,4)):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("div",{ref:"tipRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles)},[n.createElementVNode("div",{class:n.normalizeClass(e.textClasses),style:n.normalizeStyle(e.textStyles)},[e.type=="number"?(n.openBlock(),n.createBlock(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(n.openBlock(),n.createElementBlock("span",{key:1,innerHTML:e.message},null,8,Ti))],6),n.createElementVNode("div",{class:n.normalizeClass(e.arrowClasses),style:n.normalizeStyle(e.arrowStyles)},null,6)],6),[[n.vShow,e.show]])],64)}const Vt=Le(Si,[["render",$i]]);class wr{seed=new Date().getTime();constructor(t){this.seed=t??new Date().getTime()}get(){let t=this.seed++;return this.seed<0&&(this.seed=0),t}}const Bn={},Ci=new wr,dt=new Map,Kt=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()}},Ni=e=>{e.unmount=Kt;const t=document.getElementById(e.id);if(t){const o=dt.get(e.id);o?e={...Bn,...o,...e}:e={...Bn,...e},e.transition=!1;const l=n.createVNode(Vt,e);n.render(l,t)}return e.id},Ei=e=>{e.unmount=Kt;let t=e.id??`hinttext_${Ci.get()}`;e={...Bn,...e},e.id=t,dt.set(t,e);const o=document.createElement("div");o.id=e.id;const l=n.createVNode(Vt,e);return n.render(l,o),document.body.appendChild(o),t},ki=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ie={show(e,t,o={},l=!0){ki(t);const r=o.id;return r&&dt.has(r)?Ni({...o,message:t,reference:e}):(l&&Kt(),Ei({...o,message:t,reference:e}))},hide(e){Kt(e)},install(e){e.config.globalProperties.$hintText=Ie}};function Pi(e,t,o,l=!1){return{inheritAttrs:!0,props:{...we,...ke},emits:["appear","disappear"],setup(r,a){const i=r.prop??a.attrs.name;Te({componentName:e,validate:!1},i);const u=Ue(),s=tn();nn(!1);const c=n.computed(()=>s&&u?ln(u,!1).value:null),d=e,m=n.ref(null),p=n.computed(()=>{const k={[d]:!0,[`${d}__gutter`]:c.value&&c.value.type!=="flow",[`${d}__stretch`]:r.span==="stretch",[`${d}__input--border`]:ue(r.hasBorder)};if(k[r.errorMarkClass]=!!V.value,k[r.warnMarkClass]=!!F.value,k[r.infoMarkClass]=!!_.value,typeof m.value=="function"){const H=m.value(i);k[H]=!0}else if(typeof m.value=="string"){const H=m.value;k[H]=!0}return k}),y=n.ref(null),g=n.computed(()=>{const k={};if(r.width)r.width!=="auto"&&(k.width=Ce(r.width));else{const H=s&&u?on(u,!1):null;if(c.value&&H){if(c.value.type==="grid"){const ee=an(H,c.value,r.span,r.offset);Object.assign(k,ee)}else if(c.value.type==="flow"){const ee=rn(H,c.value,r.span,r.offset,r.width);Object.assign(k,ee)}}}if(typeof y.value=="function"){const H=y.value(i);H&&Object.assign(k,H)}else if(y.value&&typeof y.value=="object"){const H=y.value;Object.assign(k,H)}return k}),f=n.ref(null),h=n.computed({get:()=>f.value??ue(r.isRequired),set:k=>{f.value=k}}),O=()=>typeof r.label=="string"&&r.label.length>0||typeof a.slots.label=="function",S=Oe(n.toRef(r,"labelPosition"),"labelPosition",Ae.Near),T=n.computed(()=>S&&S.value==="top"?"top":S&&S.value==="right"?"right":"left"),B=n.computed(()=>({[`${d}__main`]:!0,[`${d}__main--${T.value}`]:!0})),q=n.computed(()=>({label:!0,[`label--${T.value}`]:!0})),M=Oe(n.toRef(r,"labelWidth"),"labelWidth",Ae.Near),L=n.computed(()=>M&&M.value?{width:Ce(M.value)}:{}),R=n.computed(()=>({"label--string":!0,"label--required":h.value})),w=n.computed(()=>({content:!0,[r.contentClass]:!0})),N=n.computed(()=>({...r.contentStyle})),v=n.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});be({setRequired(k){h.value=k},setErrorTip(k){v.errorTip=k},setErrorIcon(k){v.errorIcon=k},setWarnTip(k){v.warnTip=k},setWarnIcon(k){v.warnIcon=k},setInfoTip(k){v.infoTip=k},setInfoIcon(k){v.infoIcon=k},setCustomClassName(k){m.value=k},setCustomStyle(k){y.value=k}});const _=n.computed(()=>r.infoTip||v.infoTip),Z=n.computed(()=>r.infoIcon||v.infoIcon),F=n.computed(()=>r.warnTip||v.warnTip),C=n.computed(()=>r.warnIcon||v.warnIcon),V=n.computed(()=>r.errorTip||v.errorTip),A=n.computed(()=>r.errorIcon||v.errorIcon),W=n.computed(()=>V.value?"error":F.value?"warn":_.value?"info":""),X=()=>W.value.length>0,Q=n.computed(()=>W.value==="error"?V.value:W.value==="warn"?F.value:W.value==="info"?_.value:""),ne=n.computed(()=>W.value==="error"?A.value:W.value==="warn"?C.value:W.value==="info"?Z.value:null),P=n.computed(()=>{const k={[`${d}__tip`]:!0,[`${d}__tip--${W.value}`]:!0,[`${d}--animate`]:!0};return W.value==="error"&&r.errorClass?k[`${r.errorClass}`]=!0:W.value==="warn"&&r.warnClass?k[`${r.warnClass}`]=!0:W.value==="info"&&r.infoClass&&(k[`${r.infoClass}`]=!0),k}),$=n.computed(()=>{const k={};return S&&S.value==="top"||!O()?k["padding-left"]="0px":M&&M.value&&(k["padding-left"]=Ce(M.value)),k}),D=n.ref();let I="";n.watch([()=>r.hintVisible,()=>r.hintText,()=>r.hintType,()=>r.hintProps],([k,H,ee,le])=>{D.value&&(k&&!de(H)?I?o.show(D.value,H,{...le,id:I,type:ee},!0):I=o.show(D.value,H,{...le,type:ee},!0):o.hide(I))});let x=null;const j=()=>{x||!D.value||(x=new IntersectionObserver(k=>{let H=!1;for(let ee of k)if(ee.intersectionRatio>0){H=!0,H&&a.emit("appear",ee);break}H||a.emit("disappear")}),x.observe(D.value))},G=()=>{!x||!D.value||(x.unobserve(D.value),x=null)};n.watch(()=>ue(r.appearListen),k=>{k?j():G()}),n.onMounted(()=>{ue(r.appearListen)&&j()}),n.onUnmounted(G);const te=()=>{if(!O())return null;const k=[],H=a.slots?.label?.()??r.label,ee={class:R.value},le=n.h("div",ee,[H]);if(k.push(le),a.slots.fixedPreTip){const ae=a.slots.fixedPreTip();k.push(ae)}const se={class:q.value,style:L.value};return n.h("div",se,k)},Y=()=>{const k=[];if(a.slots.prepend){const ee=a.slots.prepend();k.push(ee)}if(a.slots.default){const ee=a.slots.default();k.push(ee)}if(a.slots.append){const ee=a.slots.append();k.push(ee)}if(a.slots.fixedTip){const ee={class:[`${d}__fixed-tip`]},le=n.h("div",ee,[a.slots.fixedTip()]);k.push(le)}const H={ref:D,class:w.value,style:N.value};return n.h("div",H,k)},K=()=>{const k=ne.value;return k?typeof k=="function"?n.h("div",{class:"fox-item__tip--icon"},[k()]):n.h("div",{class:"fox-item__tip--icon"},[n.h(k)]):null},E=()=>{const k=Q.value;return k?typeof k=="function"?n.h("div",{class:"fox-item__tip--text"},[k()]):n.h("div",{class:"fox-item__tip--text"},[k]):null},z=()=>{if(!X())return null;const k=[],H=K();H&&k.push(H);const ee=E();ee&&k.push(ee);const le={class:P.value,style:$.value};return n.h("div",le,k)},U=()=>a.slots?.hide?.()??null;return()=>{const k=[],H=[],ee=te();ee&&H.push(ee);const le=Y();le&&H.push(le);const se={class:B.value},ae=n.h("div",se,H);k.push(ae);const J=z();J&&k.push(J);const oe=U();oe&&k.push(oe);const re={class:p.value,style:g.value,prop:r.prop};return n.h("div",re,k)}}}}const{componentName:Ii,create:Oi,scope:Vi}=ie("item"),Se=Oi(Pi(Ii,Vi,Ie,!1));function Di(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,l){const r=Ue(),a=tn();nn(!1);const i=n.computed(()=>a&&r?ln(r,!1).value:null),u=e,s=n.computed(()=>({[u]:!0,[`${u}__gutter`]:i.value&&i.value.type!=="flow",[`${u}__stretch`]:o.span==="stretch"})),c=n.computed(()=>{const d={},m=a&&r?on(r,!1):null;if(i.value&&m)if(i.value.type==="grid"){const p=an(m,i.value,o.span,o.offset);Object.assign(d,p)}else if(i.value.type==="flow"){const p=rn(m,i.value,o.span,o.offset,o.width);Object.assign(d,p)}else return o.width&&(d.width=Ce(o.width)),d;else o.width&&(d.width=Ce(o.width));return d});return()=>{const d={class:s.value,style:c.value};return l.slots&&typeof l.slots.default=="function"?n.h("div",d,l.slots.default()):n.h("div",d)}}}}const{componentName:Fi,create:Ri,scope:Ah}=ie("slot-item"),Qn=Ri(Di(Fi));function Ai(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,l){const r=e,a=n.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),i=Ue(),u=tn();nn(!1);const s=n.computed(()=>{const c={};if(u&&i){const d=ln(i,!1),m=on(i,!1);if(d.value&&m)if(d.value.type==="grid"){const p=an(m,d.value,o.span,o.offset);Object.assign(c,p)}else if(d.value.type==="flow"){const p=rn(m,d.value,o.span,o.offset,o.width);Object.assign(c,p)}else o.width&&(c.width=Ce(o.width))}else o.width&&(c.width=Ce(o.width));return c});return()=>{const c=[];if(l.slots.default){const m=l.slots.default();if(o.divide)for(let p=0;p<m.length;p++){if(p>0){const y=n.h("div",{class:{[`${r}__divide`]:!0}});c.push(y)}c.push(m[p])}else Reflect.apply([].push,c,m)}const d={class:a.value,style:s.value};return n.h("div",d,c)}}}}const{componentName:Mi,create:Li,scope:Mh}=ie("row-item"),el=Li(Ai(Mi)),He=(e={})=>{if(!e)return{};const t={};return Reflect.ownKeys(e).forEach(l=>{typeof l=="string"&&l.indexOf("data-fox")!==0&&(t[l]=e[l])}),t},Yl={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 Bi(e,t,o){return{props:{...we,...ke,...Yl},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(!1),y=he(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0,[`${g}__disabled`]:i.value,[`${g}__readonly`]:s.value})),h=C=>{y.value=C,c("update:modelValue",C),c("input",C)},O=C=>{c("change",C)};let S=he(l,"hintText"),T=n.ref(!1);const B=C=>{let A=C.target.value;p.value=!0,de(S.value)||(T.value=!0),c("focus",A,C)},q=C=>{setTimeout(()=>{T.value&&(T.value=!1),p.value=!1},0);let A=C.target.value;l.maxLength&&A.length>Number(l.maxLength)&&(A=A.slice(0,Number(l.maxLength))),c("blur",A,C)},M=()=>{c("clear","")},L=n.ref(!1);let R=null;const w=()=>{l.showTooltip&&L.value===!1&&(R&&clearTimeout(R),R=setTimeout(()=>{L.value=!0},150))},N=()=>{R&&(clearTimeout(R),L.value=!1,R=null)},v=n.computed(()=>L.value||T.value),_=n.computed(()=>L.value?y.value:S.value),Z=n.computed(()=>Ot(l.unit)>0),F=n.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()},setDisabled:C=>{a.value=C},setReadonly:C=>{u.value=C}}),()=>{const V={...He(r.attrs),ref:F,class:f.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:M,onChange:O,onInput:h,onFocus:B,onBlur:q,onMouseover:w,onMouseleave:N},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:Z.value&&(A.suffix=()=>[l.unit]);const W=[],X=n.h(b.ElInput,V,A);W.push(X);const Q={default:()=>W};r.slots.default&&(Q.label=r.slots.default),r.slots.default&&(Q.fixedTip=r.slots.fixedTip);const P={...Ee(l,Yl),hintText:_.value,hintVisible:v.value};return l.prop&&(P.prop=`${l.prop}_item`),n.h(o,P,Q)}}}}const{componentName:_i,create:qi,scope:ji}=ie("input-item"),tl=qi(Bi(_i,ji,Se));function Qe(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 Sr(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}function zi(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Hi=class{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function Ki(){const e=n.getCurrentInstance();return new Hi(e.proxy)}function Tr(e,t,o){const l=Qe(e,t),r=Qe(e,o);if(l!==r)return!1;const a=kt(e,t),i=kt(e,o);return a===i}function $r(e,t,o,l){if(l.length===0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of l){const u=Sr(e,i);if(Array.isArray(u)&&u.length>0){const s=$r(e,a,o,u)??[];Reflect.apply([].push,r,s)}else{let s=!1;if(o==="text")s=Qe(e,i)===a;else if(o==="item")s=Tr(e,i,a);else{let c=kt(e,i);c==null&&(c=Qe(e,i)),s=c===a}if(s){r.push(i);break}}}}),r}function Wi(e){return{text:e,value:e}}const Gl={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 Yi(e,t,o){return{props:{...we,...ke,...Gl},emits:["change","update:modelValue","update:text","blur","focus","clear","visible-change","remove-tag","selected","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(null),y=n.ref([]),g=n.computed(()=>y.value?y.value.map(z=>Qe(l,z)).join(" "):""),f=(E,z,U,k=!0)=>{const H=$r(l,E,z,U);if(H===null){if(y.value===null||y.value.length===0)return;p.value=null,y.value=[],k&&(c("update:modelValue",null),c("update:text",null),c("change",null));return}let ee=!0;if(H.length!==y.value.length)ee=!1;else for(let le=0;le<H.length;le++){const se=H[le],ae=y.value[le];if(!Tr(l,se,ae)){ee=!1;break}}if(!ee){y.value=H;let le=[],se=[],ae=[];H.forEach(ce=>{const pe=kt(l,ce),ge=Qe(l,ce);le.push(pe),ae.push(ge),l.valueType==="text"?se.push(ge):l.valueType==="item"?se.push(ce):se.push(pe)});let J,oe,re;ue(l.multiple)?(p.value=le,J=n.toRaw(se),oe=ae,re=n.toRaw(H)):(p.value=le[0]??"",J=n.toRaw(se[0]??""),oe=ae[0]??"",re=n.toRaw(H[0])),k&&(c("update:modelValue",J),c("change",J,re)),c("update:text",oe)}},h=n.ref(null),O=n.ref(null),S=n.computed(()=>O.value??h.value??[]),T=Oe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,E=>ue(E)),B=Ki(),q=async(E,z)=>{if(E){const U=await B.load("select",E,z);if(U.length>0)if(typeof U[0]=="string"){let ee=U.map(le=>Wi(le));h.value=ee}else h.value=U;else h.value=null}};n.watch([()=>l.source,()=>l.params],([E,z])=>{O.value=null,q(E,z)},{immediate:!T.value});let M=!1;const L=()=>{M||(M=!0,q(l.source,l.params))};n.watch([()=>h.value,()=>l.modelValue],([E,z])=>{if(v()&&ue(l.multiple)){Ye(z,p.value)||(p.value=z);return}f(z,l.valueType,S.value,!1),c("setValue",z)});let R=null,w=n.ref(!1);typeof l.remoteMethod=="function"&&(R=async E=>{if(E==null){O.value=null;return}w.value=!0;try{const z=await l.remoteMethod(E);z&&(O.value=z)}catch(z){O.value=null,console.error(z)}w.value=!1});let N=null;typeof l.filterMethod=="function"&&(N=async E=>{if(E==null){O.value=null;return}w.value=!0;try{const z=await l.filterMethod(E,h.value);z&&(O.value=z)}catch(z){O.value=null,console.error(z)}w.value=!1});const v=()=>typeof l.remoteMethod=="function"||typeof l.filterMethod=="function",_=n.ref(!1),Z=e,F=n.computed(()=>({[Z]:!0})),C=E=>{l.allowCreate||v()&&ue(l.multiple)?(c("update:modelValue",E),c("change",E),c("update:text",E),p.value=E):f(E,"value",S.value,!0)};let V=he(l,"hintText"),A=n.ref(!1);const W=E=>{let U=E.target.value;_.value=!0,de(V.value)||(A.value=!0),c("focus",U,E)},X=E=>{setTimeout(()=>{A.value&&(A.value=!1),_.value=!1},0);let U=E.target.value;l.maxLength&&U.length>Number(l.maxLength)&&(U=U.slice(0,Number(l.maxLength))),j.value||c("blur",U,E)},Q=()=>{c("clear","")},ne=n.ref(!1);let P=null;const $=()=>{l.showTooltip&&ne.value===!1&&(P&&clearTimeout(P),P=setTimeout(()=>{ne.value=!0},150))},D=()=>{P&&(clearTimeout(P),ne.value=!1,P=null)},I=n.computed(()=>ne.value||A.value),x=n.computed(()=>ne.value?g.value:V.value),j=n.ref(!1),G=E=>{j.value=E,c("visible-change",E),E||c("selected")},te=E=>{c("remove-tag",E)},Y=(E,z)=>{const U=[];return E.forEach((k,H)=>{const ee=Sr(l,k);if(Array.isArray(ee)&&ee.length>0){const le=Y(ee,z),se=Qe(l,k),J={key:`${se}_${H}`,label:se};U.push(n.h(b.ElOptionGroup,J,{default:()=>le}))}else{const le=kt(l,k),se=Qe(l,k),ae=zi(l,k),oe={key:`${le}_${H}`,label:se,disabled:ae,value:le};if(typeof z=="function")U.push(n.h(b.ElOption,oe,{default:()=>z(k)}));else if(l.optionType==="item"){const re={class:{"fox-select-item__option-left":!0}},ce=n.h("span",re,[le]),pe={class:{"fox-select-item__option-right":!0}},ge=n.h("span",pe,[se]),Ke=n.h("div",{class:{"fox-select-item__option":!0}},[ce,ge]);U.push(n.h(b.ElOption,oe,{default:()=>Ke}))}else l.optionType==="value"?U.push(n.h(b.ElOption,oe,{default:()=>[le]})):U.push(n.h(b.ElOption,oe))}}),U},K=n.ref();return be({focus:()=>{K?.value.focus()},blur:()=>{K?.value.blur()},setDisabled:E=>{a.value=E},setReadonly:E=>{u.value=E}}),()=>{const z={...He(r.attrs),ref:K,class:F.value,clearable:l.clearable,multiple:l.multiple,placeholder:m.placeholder.value,disabled:i.value||s.value,modelValue:p.value,"value-key":l.valueKey,"allow-create":l.allowCreate,onClear:Q,onChange:C,onFocus:W,onBlur:X,onVisibleChange:G,onRemoveTag:te};typeof R=="function"&&(z["remote-method"]=R,z.loading=w.value),typeof N=="function"&&(z["filter-method"]=N,z.loading=w.value);const U={};r.slots.prefix&&(U.prefix=r.slots.prefix),r.slots.empty&&(U.empty=r.slots.empty),r.slots.options?U.default=r.slots.options:U.default=()=>Y(S.value,r.slots.option);const k=[],H=n.h(b.ElSelect,z,U);k.push(H);const ee={default:()=>k};r.slots.default&&(ee.label=r.slots.default),r.slots.fixedTip&&(ee.fixedTip=r.slots.fixedTip);const se={...Ee(l,Gl),hintText:x.value,hintVisible:I.value,onMouseover:$,onMouseleave:D};return l.prop&&(se.prop=`${l.prop}_item`),T.value&&(se["appear-listen"]=!0,se.onAppear=L),n.h(o,se,ee)}}}}const{componentName:Gi,create:Ui,scope:Xi}=ie("select-item"),nl=Ui(Yi(Gi,Xi,Se));var Xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){var o=1e3,l=6e4,r=36e5,a="millisecond",i="second",u="minute",s="hour",c="day",d="week",m="month",p="quarter",y="year",g="date",f="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|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,S={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(F){var C=["th","st","nd","rd"],V=F%100;return"["+F+(C[(V-20)%10]||C[V]||C[0])+"]"}},T=function(F,C,V){var A=String(F);return!A||A.length>=C?F:""+Array(C+1-A.length).join(V)+F},B={s:T,z:function(F){var C=-F.utcOffset(),V=Math.abs(C),A=Math.floor(V/60),W=V%60;return(C<=0?"+":"-")+T(A,2,"0")+":"+T(W,2,"0")},m:function F(C,V){if(C.date()<V.date())return-F(V,C);var A=12*(V.year()-C.year())+(V.month()-C.month()),W=C.clone().add(A,m),X=V-W<0,Q=C.clone().add(A+(X?-1:1),m);return+(-(A+(V-W)/(X?W-Q:Q-W))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:m,y,w:d,d:c,D:g,h:s,m:u,s:i,ms:a,Q:p}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},q="en",M={};M[q]=S;var L="$isDayjsObject",R=function(F){return F instanceof _||!(!F||!F[L])},w=function F(C,V,A){var W;if(!C)return q;if(typeof C=="string"){var X=C.toLowerCase();M[X]&&(W=X),V&&(M[X]=V,W=X);var Q=C.split("-");if(!W&&Q.length>1)return F(Q[0])}else{var ne=C.name;M[ne]=C,W=ne}return!A&&W&&(q=W),W||!A&&q},N=function(F,C){if(R(F))return F.clone();var V=typeof C=="object"?C:{};return V.date=F,V.args=arguments,new _(V)},v=B;v.l=w,v.i=R,v.w=function(F,C){return N(F,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var _=function(){function F(V){this.$L=w(V.locale,null,!0),this.parse(V),this.$x=this.$x||V.x||{},this[L]=!0}var C=F.prototype;return C.parse=function(V){this.$d=function(A){var W=A.date,X=A.utc;if(W===null)return new Date(NaN);if(v.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var Q=W.match(h);if(Q){var ne=Q[2]-1||0,P=(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,P)):new Date(Q[1],ne,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,P)}}return new Date(W)}(V),this.init()},C.init=function(){var V=this.$d;this.$y=V.getFullYear(),this.$M=V.getMonth(),this.$D=V.getDate(),this.$W=V.getDay(),this.$H=V.getHours(),this.$m=V.getMinutes(),this.$s=V.getSeconds(),this.$ms=V.getMilliseconds()},C.$utils=function(){return v},C.isValid=function(){return this.$d.toString()!==f},C.isSame=function(V,A){var W=N(V);return this.startOf(A)<=W&&W<=this.endOf(A)},C.isAfter=function(V,A){return N(V)<this.startOf(A)},C.isBefore=function(V,A){return this.endOf(A)<N(V)},C.$g=function(V,A,W){return v.u(V)?this[A]:this.set(W,V)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(V,A){var W=this,X=!!v.u(A)||A,Q=v.p(V),ne=function(te,Y){var K=v.w(W.$u?Date.UTC(W.$y,Y,te):new Date(W.$y,Y,te),W);return X?K:K.endOf(c)},P=function(te,Y){return v.w(W.toDate()[te].apply(W.toDate("s"),(X?[0,0,0,0]:[23,59,59,999]).slice(Y)),W)},$=this.$W,D=this.$M,I=this.$D,x="set"+(this.$u?"UTC":"");switch(Q){case y:return X?ne(1,0):ne(31,11);case m:return X?ne(1,D):ne(0,D+1);case d:var j=this.$locale().weekStart||0,G=($<j?$+7:$)-j;return ne(X?I-G:I+(6-G),D);case c:case g:return P(x+"Hours",0);case s:return P(x+"Minutes",1);case u:return P(x+"Seconds",2);case i:return P(x+"Milliseconds",3);default:return this.clone()}},C.endOf=function(V){return this.startOf(V,!1)},C.$set=function(V,A){var W,X=v.p(V),Q="set"+(this.$u?"UTC":""),ne=(W={},W[c]=Q+"Date",W[g]=Q+"Date",W[m]=Q+"Month",W[y]=Q+"FullYear",W[s]=Q+"Hours",W[u]=Q+"Minutes",W[i]=Q+"Seconds",W[a]=Q+"Milliseconds",W)[X],P=X===c?this.$D+(A-this.$W):A;if(X===m||X===y){var $=this.clone().set(g,1);$.$d[ne](P),$.init(),this.$d=$.set(g,Math.min(this.$D,$.daysInMonth())).$d}else ne&&this.$d[ne](P);return this.init(),this},C.set=function(V,A){return this.clone().$set(V,A)},C.get=function(V){return this[v.p(V)]()},C.add=function(V,A){var W,X=this;V=Number(V);var Q=v.p(A),ne=function(D){var I=N(X);return v.w(I.date(I.date()+Math.round(D*V)),X)};if(Q===m)return this.set(m,this.$M+V);if(Q===y)return this.set(y,this.$y+V);if(Q===c)return ne(1);if(Q===d)return ne(7);var P=(W={},W[u]=l,W[s]=r,W[i]=o,W)[Q]||1,$=this.$d.getTime()+V*P;return v.w($,this)},C.subtract=function(V,A){return this.add(-1*V,A)},C.format=function(V){var A=this,W=this.$locale();if(!this.isValid())return W.invalidDate||f;var X=V||"YYYY-MM-DDTHH:mm:ssZ",Q=v.z(this),ne=this.$H,P=this.$m,$=this.$M,D=W.weekdays,I=W.months,x=W.meridiem,j=function(Y,K,E,z){return Y&&(Y[K]||Y(A,X))||E[K].slice(0,z)},G=function(Y){return v.s(ne%12||12,Y,"0")},te=x||function(Y,K,E){var z=Y<12?"AM":"PM";return E?z.toLowerCase():z};return X.replace(O,function(Y,K){return K||function(E){switch(E){case"YY":return String(A.$y).slice(-2);case"YYYY":return v.s(A.$y,4,"0");case"M":return $+1;case"MM":return v.s($+1,2,"0");case"MMM":return j(W.monthsShort,$,I,3);case"MMMM":return j(I,$);case"D":return A.$D;case"DD":return v.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return j(W.weekdaysMin,A.$W,D,2);case"ddd":return j(W.weekdaysShort,A.$W,D,3);case"dddd":return D[A.$W];case"H":return String(ne);case"HH":return v.s(ne,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return te(ne,P,!0);case"A":return te(ne,P,!1);case"m":return String(P);case"mm":return v.s(P,2,"0");case"s":return String(A.$s);case"ss":return v.s(A.$s,2,"0");case"SSS":return v.s(A.$ms,3,"0");case"Z":return Q}return null}(Y)||Q.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(V,A,W){var X,Q=this,ne=v.p(A),P=N(V),$=(P.utcOffset()-this.utcOffset())*l,D=this-P,I=function(){return v.m(Q,P)};switch(ne){case y:X=I()/12;break;case m:X=I();break;case p:X=I()/3;break;case d:X=(D-$)/6048e5;break;case c:X=(D-$)/864e5;break;case s:X=D/r;break;case u:X=D/l;break;case i:X=D/o;break;default:X=D}return W?X:v.a(X)},C.daysInMonth=function(){return this.endOf(m).$D},C.$locale=function(){return M[this.$L]},C.locale=function(V,A){if(!V)return this.$L;var W=this.clone(),X=w(V,A,!0);return X&&(W.$L=X),W},C.clone=function(){return v.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},F}(),Z=_.prototype;return N.prototype=Z,[["$ms",a],["$s",i],["$m",u],["$H",s],["$W",c],["$M",m],["$y",y],["$D",g]].forEach(function(F){Z[F[1]]=function(C){return this.$g(C,F[0],F[1])}}),N.extend=function(F,C){return F.$i||(F(C,_,N),F.$i=!0),N},N.locale=w,N.isDayjs=R,N.unix=function(F){return N(1e3*F)},N.en=M[q],N.Ls=M,N.p={},N})})(Cr);var Zi=Cr.exports;const ze=Ze(Zi);var Nr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,u={},s=function(f){return(f=+f)+(f>68?1900:2e3)},c=function(f){return function(h){this[f]=+h}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var O=h.match(/([+-]|\d\d)/g),S=60*O[1]+(+O[2]||0);return S===0?0:O[0]==="+"?-S:S}(f)}],m=function(f){var h=u[f];return h&&(h.indexOf?h:h.s.concat(h.f))},p=function(f,h){var O,S=u.meridiem;if(S){for(var T=1;T<=24;T+=1)if(f.indexOf(S(T,0,h))>-1){O=T>12;break}}else O=f===(h?"pm":"PM");return O},y={A:[i,function(f){this.afternoon=p(f,!1)}],a:[i,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[r,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[r,c("day")],Do:[i,function(f){var h=u.ordinal,O=f.match(/\d+/);if(this.day=O[0],h)for(var S=1;S<=31;S+=1)h(S).replace(/\[|\]/g,"")===f&&(this.day=S)}],M:[a,c("month")],MM:[r,c("month")],MMM:[i,function(f){var h=m("months"),O=(m("monthsShort")||h.map(function(S){return S.slice(0,3)})).indexOf(f)+1;if(O<1)throw new Error;this.month=O%12||O}],MMMM:[i,function(f){var h=m("months").indexOf(f)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,c("year")],YY:[r,function(f){this.year=s(f)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(f){var h,O;h=f,O=u&&u.formats;for(var S=(f=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,N,v){var _=v&&v.toUpperCase();return N||O[v]||o[v]||O[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Z,F,C){return F||C.slice(1)})})).match(l),T=S.length,B=0;B<T;B+=1){var q=S[B],M=y[q],L=M&&M[0],R=M&&M[1];S[B]=R?{regex:L,parser:R}:q.replace(/^\[|\]$/g,"")}return function(w){for(var N={},v=0,_=0;v<T;v+=1){var Z=S[v];if(typeof Z=="string")_+=Z.length;else{var F=Z.regex,C=Z.parser,V=w.slice(_),A=F.exec(V)[0];C.call(N,A),w=w.replace(A,"")}}return function(W){var X=W.afternoon;if(X!==void 0){var Q=W.hours;X?Q<12&&(W.hours+=12):Q===12&&(W.hours=0),delete W.afternoon}}(N),N}}return function(f,h,O){O.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(s=f.parseTwoDigitYear);var S=h.prototype,T=S.parse;S.parse=function(B){var q=B.date,M=B.utc,L=B.args;this.$u=M;var R=L[1];if(typeof R=="string"){var w=L[2]===!0,N=L[3]===!0,v=w||N,_=L[2];N&&(_=L[2]),u=this.$locale(),!w&&_&&(u=O.Ls[_]),this.$d=function(V,A,W){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*V);var X=g(A)(V),Q=X.year,ne=X.month,P=X.day,$=X.hours,D=X.minutes,I=X.seconds,x=X.milliseconds,j=X.zone,G=new Date,te=P||(Q||ne?1:G.getDate()),Y=Q||G.getFullYear(),K=0;Q&&!ne||(K=ne>0?ne-1:G.getMonth());var E=$||0,z=D||0,U=I||0,k=x||0;return j?new Date(Date.UTC(Y,K,te,E,z,U,k+60*j.offset*1e3)):W?new Date(Date.UTC(Y,K,te,E,z,U,k)):new Date(Y,K,te,E,z,U,k)}catch{return new Date("")}}(q,R,M),this.init(),_&&_!==!0&&(this.$L=this.locale(_).$L),v&&q!=this.format(R)&&(this.$d=new Date("")),u={}}else if(R instanceof Array)for(var Z=R.length,F=1;F<=Z;F+=1){L[1]=R[F-1];var C=O.apply(this,L);if(C.isValid()){this.$d=C.$d,this.$L=C.$L,this.init();break}F===Z&&(this.$d=new Date(""))}else T.call(this,B)}}})})(Nr);var Ji=Nr.exports;const Qi=Ze(Ji);var Er={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){var r=l.prototype,a=r.format;r.format=function(i){var u=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var c=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return s.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return s.ordinal(u.week(),"W");case"w":case"ww":return c.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.s(String(u.$H===0?24:u.$H),m==="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 m}});return a.bind(this)(d)}}})})(Er);var es=Er.exports;const ts=Ze(es);var kr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l,r){var a=l.prototype,i=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,p,y,g,f){var h=m.name?m:m.$locale(),O=i(h[p]),S=i(h[y]),T=O||S.map(function(q){return q.slice(0,g)});if(!f)return T;var B=h.weekStart;return T.map(function(q,M){return T[(M+(B||0))%7]})},s=function(){return r.Ls[r.locale()]},c=function(m,p){return m.formats[p]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,f,h){return f||h.slice(1)})}(m.formats[p.toUpperCase()])},d=function(){var m=this;return{months:function(p){return p?p.format("MMMM"):u(m,"months")},monthsShort:function(p){return p?p.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):u(m,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return c(m.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},r.localeData=function(){var m=s();return{firstDayOfWeek:function(){return m.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(p){return c(m,p)},meridiem:m.meridiem,ordinal:m.ordinal}},r.months=function(){return u(s(),"months")},r.monthsShort=function(){return u(s(),"monthsShort","months",3)},r.weekdays=function(m){return u(s(),"weekdays",null,null,m)},r.weekdaysShort=function(m){return u(s(),"weekdaysShort","weekdays",3,m)},r.weekdaysMin=function(m){return u(s(),"weekdaysMin","weekdays",2,m)}}})})(kr);var ns=kr.exports;const ls=Ze(ns);var Pr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){var o="week",l="year";return function(r,a,i){var u=a.prototype;u.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=i(this).startOf(l).add(1,l).date(c),m=i(this).endOf(o);if(d.isBefore(m))return 1}var p=i(this).startOf(l).date(c).startOf(o).subtract(1,"millisecond"),y=this.diff(p,o,!0);return y<0?i(this).startOf("week").week():Math.ceil(y)},u.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(Pr);var os=Pr.exports;const rs=Ze(os);var Ir={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),a=this.week(),i=this.year();return a===1&&r===11?i+1:r===0&&a>=52?i-1:i}}})})(Ir);var as=Ir.exports;const is=Ze(as);var Or={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l,r){l.prototype.dayOfYear=function(a){var i=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return a==null?i:this.add(a-i,"day")}}})})(Or);var ss=Or.exports;const us=Ze(ss);var Vr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,a){return this.isSame(r,a)||this.isAfter(r,a)}}})})(Vr);var cs=Vr.exports;const fs=Ze(cs);var Dr={exports:{}};(function(e,t){(function(o,l){e.exports=l()})(Xe,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,a){return this.isSame(r,a)||this.isBefore(r,a)}}})})(Dr);var ds=Dr.exports;const hs=Ze(ds);ze.extend(ls);ze.extend(ts);ze.extend(Qi);ze.extend(rs);ze.extend(is);ze.extend(us);ze.extend(fs);ze.extend(hs);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 l=new Date(e+"/"+t+"/01").getDay();return l==0&&(l=7),l},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(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(t)},getDay(e,t){e=e||0;let o=t??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,t){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof t=="string"?l=new Date(t.replace("-","/").replace("-","/")):l=t,!(o>=l)},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 l;return typeof t=="string"?l=new Date(t).getTime():l=t,o==l},getMonthWeek:function(e,t,o,l=0){const r=new Date(Number(e),parseInt(t)-1,Number(o));let a=r.getDay(),i=r.getDate(),u=6-a;return l!==0&&(a=a==0?7:a,u=7-a),Math.ceil((i+u)/7)},getYearWeek:function(e,t,o,l=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=new Date(Number(e),0,1),i=Math.round((r.valueOf()-a.valueOf())/864e5);let u=r.getDay(),s=6-u;return l!==0&&(u=u==0?7:u,s=7-u),Math.ceil((i+s)/7)},getWeekDate:function(e,t,o,l=0){const r=new Date(Number(e),parseInt(t)-1,Number(o)),a=r.getTime();let i=r.getDay();if(l===0){const s=a-i*864e5,c=a+(6-i)*864e5,d=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[d,m]}else{i=i==0?7:i;const u=24*60*60*1e3,s=a-(i-1)*u,c=a+(7-i)*u,d=this.date2Str(new Date(s)),m=this.date2Str(new Date(c));return[d,m]}},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 l=new Date(new Date(t).setDate(t.getDate()+o)),r=e.getTime(),a=l.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i},inScope4Month(e,t,o){const l=new Date(new Date(t).setMonth(t.getMonth()+o)),r=e.getTime(),a=l.getTime(),i=t.getTime();return a>i?r>=i&&r<=a:r>=a&&r<=i}},Ul={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"}},Xl={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 ms(e,t,o){return{props:{...we,...ke,...Ul,...Xl},emits:["change","update:modelValue","update:longTerm","blur","focus","clear","visible-change","calendar-change","panel-change","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(!1),y=he(l,"modelValue",null,c),g=n.computed(()=>A.value&&Array.isArray(y.value)&&y.value.length==2?y.value[0]:y.value),f=n.computed(()=>A.value?"longTermKey":"normalKey"),h=K=>{if(A.value&&l.type==="daterange"){const E=[...y.value];E[0]=K,y.value=E}else y.value=K;c("update:modelValue",y.value),c("change",y.value)},O=n.computed(()=>A.value&&l.type==="daterange"?"date":l.type),S=e,T=n.computed(()=>({[`${S}`]:!0,"is-long":A.value,"is-readonly":s.value,"is-disabled":i.value}));let B=he(l,"hintText"),q=n.ref(!1);const M=K=>{let z=K.target.value;p.value=!0,de(B.value)||(q.value=!0),c("focus",z,K)},L=K=>{setTimeout(()=>{q.value&&(q.value=!1),p.value=!1},0);let z=K.target.value;l.maxLength&&z.length>Number(l.maxLength)&&(z=z.slice(0,Number(l.maxLength))),c("blur",z,K)},R=()=>{c("clear","")},w=K=>{c("calendar-change",K)},N=(K,E,z)=>{c("panel-change",K,E,z)},v=K=>{c("visible-change",K)},_=Oe(n.computed(()=>l.longTermText),"longTermText",Ae.Near),Z=Oe(n.computed(()=>l.longTermActionLabel),"longTermActionLabel",Ae.Near),F=Oe(n.computed(()=>l.longTermValue),"longTermValue",Ae.Near),C=Oe(n.computed(()=>l.compatibleLongTermValue),"compatibleLongTermValue",Ae.Near);let V=null;const A=n.ref(ue(l.longTerm)),W=K=>{if(A.value=K,c("update:longTerm",K),K){if(V=y.value,l.type==="daterange"){const E=[];Array.isArray(F.value)?(E[0]=y.value?y.value[0]??F.value[0]:null,E[1]=F.value[1]??F.value[0]):(E[0]=y.value?y.value[0]??F.value:null,E[1]=A.value),E[0]||(E[0]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),E[1]||(E[1]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),y.value=E}else Array.isArray(F.value)?y.value=F.value[1]??F.value[0]:y.value=F.value,y.value||(y.value=l.valueFormat?Re.format(new Date,l.valueFormat):new Date);c("update:modelValue",y.value)}else{if(l.type==="daterange"){const E=[];E[0]=Array.isArray(y.value)?y.value[0]:y.value,Array.isArray(V)?E[1]=V[1]:E[1]=V,E[0]||(E[0]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),E[1]||(E[1]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),y.value=E}else y.value=V;c("update:modelValue",y.value),setTimeout(()=>{te()},100)}},X=ue(l.isLongTerm);if(X){const K=()=>{if(A.value===!0){if(V=y.value,l.type==="daterange"){const E=[y.value[0]];Array.isArray(F.value)?E[1]=F.value[1]??F.value[0]:E[1]=A.value,E[0]||(E[0]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),E[1]||(E[1]=l.valueFormat?Re.format(new Date,l.valueFormat):new Date),y.value=E}else y.value=F.value;c("update:modelValue",y.value)}else Ye(F.value,y.value)&&(A.value=!0)};K(),n.watch([()=>l.longTerm],([E])=>{A.value!==E&&K()}),n.watch([()=>y.value],([E])=>{let z=!1;if(l.type==="daterange"&&Array.isArray(E))try{let U=E[1];if(!U)return;if(E[0]==null){c("update:modelValue",[]);return}typeof U!="string"&&l.valueFormat&&(U=Re.format(U,l.valueFormat));let k=Array.isArray(F.value)?F.value[1]:F.value;(U===k||Array.isArray(C.value)&&C.value.findIndex(ee=>U==ee)!==-1)&&(z=!0)}catch(U){console.error(U)}A.value!==z&&(A.value=z)},{immediate:!0})}const Q=n.computed(()=>({"fox-date-item__long":!0,"is-active":p.value})),ne=n.ref(),P=n.ref(),$=/^\d+$/,D=(K,E)=>typeof l.flashFillThreshold=="function"?l.flashFillThreshold(K,E):$.test(K)&&K.length===l.flashFillThreshold,I=(K,E)=>{let z;if(typeof l.flashFillFormat=="function")z=l.flashFillFormat(K,E);else{const k=l.flashFillFormat??"YYYYMMDD";z=Re.parser(K,k)}const U=l.valueFormat??"YYYY-MM-DD";return Re.format(z,U)},x=K=>K?K.endsWith("range"):!1,j=K=>{if(!K.target)return;const E=K.target.value??"";if(D(E,l.type)){const z=I(E,l.type);if(x(l.type)){const U=Array.isArray(y.value)?[...y.value]:[];U[0]=z,h(U)}else h(z)}},G=K=>{if(!K.target)return;const E=K.target.value??"";if(D(E,l.type)){const z=I(E,l.type);if(x(l.type)){const U=Array.isArray(y.value)?[...y.value]:[];U[1]=z,h(U)}else h(z)}},te=()=>{if(l.flashFill&&ne.value&&ne.value.$el)if(x(l.type)){const K=ne.value.$el.querySelectorAll("input.el-range-input");K[0]&&K[0].addEventListener("input",j),K[1]&&K[1].addEventListener("input",G)}else{const K=ne.value.$el.querySelector("input.el-input__inner");K&&K.addEventListener("input",j)}},Y=()=>{if(l.flashFill&&ne.value&&ne.value.$el)if(x(l.type)){const K=ne.value.$el.querySelectorAll("input.el-range-input");K[0]&&K[0].removeEventListener("input",j),K[1]&&K[1].removeEventListener("input",G)}else{const K=ne.value.$el.querySelector("input.el-input__inner");K&&K.removeEventListener("input",j)}};return n.onMounted(te),n.onBeforeUnmount(Y),be({focus:()=>{P?.value.focus()},blur:()=>{P?.value.blur()},handleOpen:()=>{P?.value.handleOpen()},handleClose:()=>{P?.value.handleClose()},setDisabled:K=>{a.value=K},setReadonly:K=>{u.value=K}}),()=>{const E={...r.attrs,key:f.value,type:O.value,ref:P,class:T.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:g.value,valueFormat:l.valueFormat,format:l.format,"onUpdate:modelValue":h,onClear:R,onFocus:M,onBlur:L,onCalendarChange:w,onPanelChange:N,onVisibleChange:v},z={};r.slots["range-separator"]&&(z["range-separator"]=r.slots["range-separator"]),r.slots.cell&&(z.default=r.slots.cell);const U=[],k=n.h(b.ElDatePicker,E,z);U.push(k);const H={default:()=>U};if(r.slots.default&&(H.label=r.slots.default),r.slots.fixedTip&&(H.fixedTip=r.slots.fixedTip),X){if(A.value){const ae=n.h("span",{class:["fox-date-item__long-splitor"]},["-"]),J=n.h("input",{class:["fox-date-item__long-text"],value:_.value,readonly:!0}),oe={class:Q.value},re=n.h("div",oe,{default:()=>[ae,J]});U.push(re)}if(!s.value&&!i.value){const ae={label:Z.value||_.value,disabled:s.value||i.value,modelValue:A.value,"onUpdate:modelValue":W},J=n.h(b.ElCheckbox,ae),oe=n.h("div",{class:{[`${S}__append`]:!0}},[J]);H.append=()=>oe}}const le={...Ee(l,Ul,Xl),ref:ne,class:{[`${S}__wrapper`]:!0,"has-append":X},hintText:B.value,hintVisible:q.value};return l.prop&&(le.prop=`${l.prop}_item`),n.h(o,le,H)}}}}const{componentName:gs,create:ps,scope:vs}=ie("date-item"),ll=ps(ms(gs,vs,Se)),Zl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function ys(e,t,o){return{props:{...we,...ke,...Zl},emits:["change","update:modelValue","blur","focus","clear","visible-change","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(!1),y=he(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0})),h=R=>{y.value=R,c("update:modelValue",R),c("change",R)};let O=he(l,"hintText"),S=n.ref(!1);const T=R=>{let N=R.target.value;p.value=!0,de(O.value)||(S.value=!0),c("focus",N,R)},B=R=>{setTimeout(()=>{S.value&&(S.value=!1),p.value=!1},0);let N=R.target.value;l.maxLength&&N.length>Number(l.maxLength)&&(N=N.slice(0,Number(l.maxLength))),c("blur",N,R)},q=()=>{c("clear","")},M=R=>{c("visible-change",R)},L=n.ref();return be({focus:()=>{L?.value.focus()},blur:()=>{L?.value.blur()},handleOpen:()=>{L?.value.handleOpen()},handleClose:()=>{L?.value.handleClose()},setDisabled:R=>{a.value=R},setReadonly:R=>{u.value=R}}),()=>{const w={...r.attrs,ref:L,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":h,onClear:q,onFocus:T,onBlur:B,onVisibleChange:M},N={},v=[],_=n.h(b.ElTimePicker,w,N);v.push(_);const Z={default:()=>v};r.slots.default&&(Z.label=r.slots.default),r.slots.fixedTip&&(Z.fixedTip=r.slots.fixedTip);const C={...Ee(l,Zl),hintText:O.value,hintVisible:S.value};return l.prop&&(C.prop=`${l.prop}_item`),n.h(o,C,Z)}}}}const{componentName:bs,create:xs,scope:ws}=ie("time-item"),ol=xs(ys(bs,ws,Se)),Jl={modelValue:{type:[Date,Number,String,Array],required:!1},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function Ss(e,t,o){return{props:{...we,...ke,...Jl},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(!1),y=he(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0})),h=L=>{y.value=L,c("update:modelValue",L),c("change",L)};let O=he(l,"hintText"),S=n.ref(!1);const T=L=>{let w=L.target.value;p.value=!0,de(O.value)||(S.value=!0),c("focus",w,L)},B=L=>{setTimeout(()=>{S.value&&(S.value=!1),p.value=!1},0);let w=L.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),c("blur",w,L)},q=()=>{c("clear","")},M=n.ref();return be({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},handleOpen:()=>{M?.value.handleOpen()},handleClose:()=>{M?.value.handleClose()},setDisabled:L=>{a.value=L},setReadonly:L=>{u.value=L}}),()=>{const R={...r.attrs,ref:M,class:f.value,placeholder:m.placeholder.value,disabled:i.value,readonly:s.value,modelValue:y.value,"onUpdate:modelValue":h,onClear:q,onFocus:T,onBlur:B},w={},N=[],v=n.h(b.ElTimeSelect,R,w);N.push(v);const _={default:()=>N};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ee(l,Jl),hintText:O.value,hintVisible:S.value};return l.prop&&(F.prop=`${l.prop}_item`),n.h(o,F,_)}}}}const{componentName:Ts,create:$s,scope:Cs}=ie("time-select-item"),rl=$s(Ss(Ts,Cs,Se));function Ql(e,t=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let a=o.length-1;a>=l;a--)if(o.charAt(a)!="0"){r=a;break}return r-l<t?r=l+t+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function eo(e,t,o=20){if(typeof t=="string"&&(t=xe(t)),t==1||t==-1)return`${e}`;if(t==0)return"0";if(t>0){let l=Bo(`${e}`,`${t}`);return Ql(l)}else{let l=jn(`${e}`,_o(`${t}`),20);return Ql(l)}}function Ns(e,t=-1,o=!1,l=3,r=","){return Wt(e,t,o,l,r)}function to(e,t,o,l,r=!0){if(e==="")return"";if(e=qo(e),t=xe(t),t==1)return e;if(l)e=eo(e,t),o&&(e=="0"&&r?e=`${e}.`.padEnd(xe(o)+2,"0"):e=jn(e,1,xe(o)));else{let a=-1*t;e=eo(e,a)}return e}function no(e,t){let o={maxValid:!0,minValid:!0,message:""};if(t.min!==void 0){let l=ue(t.minInclude),r=Vn(e,t.min);if(l&&r==-1||!l&&(r==0||r==-1)){let a="请输入不小于 {0} 的数值";o.message=a.replace("{0}",t.min),o.minValid=!1}}if(t.max!=null){let l=ue(t.maxInclude),r=Vn(e,t.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}const lo={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:{...we,...ke,...lo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=n.ref(!1),m=he(l,"modelValue",null,c),p=n.ref("");n.watch([()=>m.value,()=>l.rates,()=>l.precision],([C,V,A])=>{if(de(C)){p.value="";return}const W=to(C,V,A,!1);p.value!==W&&(p.value=W)},{immediate:!0});const y=n.computed(()=>{let C="";return d.value&&(C=p.value),C}),{t:g}=Me.useFoxI18n(t),f=n.computed(()=>{let C=l.placeholder??"";return!d.value&&!de(p.value)?C=Ns(p.value,l.decimalLength,l.autoPadding,l.digits,l.separator):C=g(["placeholder",C]),C}),h=e,O=n.computed(()=>({[h]:!0,[`${h}__disabled`]:i.value,[`${h}__placeholder`]:p.value.length>0})),S=Oe(n.computed(()=>l.textAlign),"textAlign");n.computed(()=>d.value?{textAlign:"left"}:{textAlign:S.value??"right"});const T=n.ref(""),B=n.computed(()=>{let C=T.value;return de(C)&&(C=l.errorTip??""),C}),q=n.ref(""),M=n.ref(!1),L=(C,V)=>{if(C=`${C}`,de(C)){p.value="",m.value="",V.forEach(A=>{c(A,"")}),ue(l.showTip)&&M.value&&(M.value=!1);return}if(C.length>=2){let A=C;if(A.charAt(0)=="-"&&(A=A.substring(1)),A.length>=2&&A.charAt(0)=="0"&&A.charAt(1)!="."){n.triggerRef(p);return}}if(C!="-"){if(!Xo(C)){n.triggerRef(p);return}if(l.integerLength!=-1&&Zo(C)>Number(l.integerLength)){n.triggerRef(p);return}if(l.decimalLength&&l.decimalLength!=-1&&Jo(C)>Number(l.decimalLength)){n.triggerRef(p);return}let A=no(C,l);if(A.maxValid===!1){T.value=A.message,n.triggerRef(p);return}}else if(l.min!=null&&xe(l.min)>=0){n.triggerRef(p);return}q.value=C,ue(l.showTip)&&(M.value=C.length>0),p.value=C,m.value=to(C,l.rates,l.precision,!0),V.forEach(A=>{c(A,m.value)})},R=C=>{L(C,["update:modelValue","input"])},w=C=>{L(C,["update:modelValue","change"])},N=C=>{if(d.value=!0,ue(l.showTip)){let V=p.value;de(V)&&(V=l.hintText),de(V)||(q.value=V,M.value=!0)}T.value="",c("focus",m.value,C)},v=C=>{if(setTimeout(()=>{d.value=!1,ue(l.showTip)&&M.value===!0&&(M.value=!1)},0),!de(p.value)){let V=no(p.value,l);if(V.minValid===!1||V.maxValid===!1){T.value=V.message;return}}c("update:modelValue",m.value,C),c("blur",m.value,C)},_=()=>{c("clear","")},Z=n.computed(()=>Ot(l.unit)>0),F=n.ref();return be({focus:()=>{F?.value.focus()},blur:()=>{F?.value.blur()},select:()=>{F?.value.select()},setDisabled:C=>{a.value=C},setReadonly:C=>{u.value=C}}),()=>{const V={...He(r.attrs),ref:F,class:O.value,type:"digit",maxlength:l.maxLength,placeholder:f.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:_,onInput:R,onChange:w,onFocus:N,onBlur:v},A={};r.slots.prepend&&(A.prepend=r.slots.prepend),r.slots.append&&(A.append=r.slots.append),r.slots.prefix&&(A.prefix=r.slots.prefix),r.slots.suffix?A.suffix=r.slots.suffix:Z.value&&(A.suffix=()=>[l.unit]);const W=[],X=n.h(b.ElInput,V,A);W.push(X);const Q={default:()=>W};r.slots.default&&(Q.label=r.slots.default),r.slots.fixedTip&&(Q.fixedTip=r.slots.fixedTip);const P={...Ee(l,lo),errorTip:B.value,hintText:q.value,hintVisible:M.value,hintType:"number"};return l.prop&&(P.prop=`${l.prop}_item`),n.h(o,P,Q)}}}}const{componentName:ks,create:Ps,scope:Is}=ie("money-item"),al=Ps(Es(ks,Is,Se)),oo={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:{...we,...ke,...oo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(!1),y=he(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0,[`${g}__append`]:R.value})),h=n.computed(()=>({[`${g}__unit`]:!0})),O=N=>{y.value=N,c("update:modelValue",N),c("input",N)},S=N=>{c("change",N)};let T=he(l,"hintText"),B=n.ref(!1);const q=N=>{let _=N.target.value;p.value=!0,de(T.value)||(B.value=!0),c("focus",_,N)},M=N=>{setTimeout(()=>{B.value&&(B.value=!1),p.value=!1},0);let _=N.target.value;l.maxLength&&_.length>Number(l.maxLength)&&(_=_.slice(0,Number(l.maxLength))),c("blur",_,N)},L=()=>{c("clear","")},R=n.computed(()=>Ot(l.unit)>0),w=n.ref();return be({focus:()=>{w?.value.focus()},blur:()=>{w?.value.blur()},setDisabled:N=>{a.value=N},setReadonly:N=>{u.value=N}}),()=>{const v={...He(r.attrs),ref:w,class:f.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onClear:L,onChange:S,onInput:O,onFocus:q,onBlur:M},_={},Z=[],F=n.h(b.ElInputNumber,v,_);Z.push(F);const C={default:()=>Z};r.slots.default&&(C.label=r.slots.default),r.slots.fixedTip&&(C.fixedTip=r.slots.fixedTip);const A={...Ee(l,oo),hintText:T.value,hintVisible:B.value};if(l.prop&&(A.prop=`${l.prop}_item`),r.slots.append)C.append=r.slots.append;else if(R.value){const X={class:h.value},Q=n.h("div",X,[l.unit]);C.append=()=>Q}return n.h(o,A,C)}}}}const{componentName:Vs,create:Ds,scope:Fs}=ie("input-number-item"),il=Ds(Os(Vs,Fs,Se));function We(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 Rs(e,t){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?t[e.childrenKey]||null:t.children??null}let As=class{proxy;constructor(t){this.proxy=t}async load(t,o,l,r){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l,r);const a=qe(this.proxy,t);return a===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await a(o,l,r))}};function Ms(){const e=n.getCurrentInstance();return new As(e.proxy)}function _n(e,t,o){const l=We(e,t),r=We(e,o);if(l!==r)return!1;const a=rt(e,t),i=rt(e,o);return a===i}function Fr(e,t,o,l){if(l.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];let a=l;for(let i=0;Array.isArray(a)&&i<t.length;i++){const u=t[i];if(Array.isArray(u)){const s=Fr(e,u,o,l);r.push(s)}else{let s=!1;for(let c of a){if(o==="text")s=We(e,c)===u;else if(o==="item")s=_n(e,c,u);else{let d=rt(e,c);d==null&&(d=We(e,c)),s=d===u}if(s){r.push(c),a=Rs(e,c);break}}if(!s)break}}return r}function Ls(e){return{text:e,value:e}}const ro={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 Bs(e,t,o){return{props:{...we,...ke,...ro},emits:["change","update:modelValue","update:pathNodes","blur","focus","clear","visible-change","expand-change","remove-tag","selected","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","selected"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(null),y=n.ref([]),g=n.computed(()=>y.value?y.value.map(K=>Array.isArray(K)?K.map(z=>We(l,z)).join(" "):We(l,K)).join(" "):""),f=(Y,K,E,z=!0)=>{if(l.props&&l.props.lazy===!0||l.lazy===!0){if(p.value===Y)return;p.value=Y;const ee=n.toRaw(Y);if(z){const le=te?.value.getCheckedNodes();if(le)if(l.multiple){const se=[];le.forEach(ae=>{const oe=(ae.pathNodes??[]).map(re=>re.data);se.push(oe)}),c("update:pathNodes",se)}else{const ae=(le[0]?.pathNodes??[]).map(J=>J.data);c("update:pathNodes",ae)}c("update:modelValue",ee),c("change",ee)}return}const U=Fr(l,Y,K,E);if(U===null){if(y.value.length===0||y.value===null)return;y.value=[],p.value=null,z&&(c("update:pathNodes",[]),c("update:modelValue",null),c("change",null));return}const k=U[U.length-1];if(_.value.checkStrictly!==!0&&k&&!Array.isArray(k)&&Array.isArray(k.children)&&k.children.length>0){const ee=[];U.forEach(le=>{const se=`${We(l,le)}`;ee.push(se)}),ee.length>0&&(N.value=ee.join(l.separator))}else N.value=null;let H=!0;if(U.length!==y.value.length)H=!1;else for(let ee=0;ee<U.length;ee++){const le=U[ee],se=y.value[ee];if(Array.isArray(le)){if(!Array.isArray(se)||le.length!==se.length)H=!1;else for(let ae=0;ae<le.length;ae++)if(!_n(l,le[ae],se[ae])){H=!1;break}}else _n(l,le,se)||(H=!1);if(!H)break}if(!H){y.value=U;let ee=[],le=[];U.forEach(ae=>{if(Array.isArray(ae)){let J=[],oe=[];for(let re of ae)J.push(rt(l,re)),l.valueType==="text"?oe.push(We(l,re)):l.valueType==="item"?oe.push(re):oe.push(rt(l,re));ee.push(J),le.push(oe)}else ee.push(rt(l,ae)),l.valueType==="text"?le.push(We(l,ae)):l.valueType==="item"?le.push(ae):le.push(rt(l,ae))}),p.value=ee;const se=n.toRaw(le);z&&(c("update:pathNodes",U),c("update:modelValue",se),c("change",se))}},h=n.ref([]),O=Oe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,Y=>ue(Y)),S=Ms(),T=async(Y,K)=>{if(Y){const E=await S.load("cascader",Y,K);if(E.length>0)if(typeof E[0]=="string"){let k=E.map(H=>Ls(H));h.value=k}else h.value=E}};n.watch([()=>l.source,()=>l.params],async([Y,K])=>{T(Y,K)},{immediate:!(O.value||l.lazy)});let B=!1;const q=()=>{B||(B=!0,T(l.source,l.params))};n.watch([()=>h.value,()=>l.modelValue],([Y,K])=>{f(K,l.valueType,Y,!1),c("setValue",K)}),l.lazy&&f(l.modelValue,"value",[],!1);let M=null,L=n.ref(!1);typeof l.remoteMethod=="function"&&(M=async Y=>{if(Y!=null){L.value=!0;try{const K=await l.remoteMethod(Y);h.value=K}catch(K){console.error(K)}L.value=!1}});const R=n.ref(!1),w=e,N=n.ref(null),v=n.computed(()=>({[w]:!0,"is-incomplete":N.value&&N.value.length>0})),_=n.computed(()=>{let Y={label:l.textKey,value:l.valueKey,children:l.childrenKey};return l.multiple===!0&&(Y.multiple=!0),l.props&&Object.assign(Y,l.props),l.lazy&&(Y.lazy=!0,typeof l.lazyLoad=="function"?Y.lazyLoad=l.lazyLoad:Y.lazyLoad=async(K,E)=>{const z=await S.load("cascader",l.source,K,!0);if(K?.config?.checkStrictly!==!0&&Array.isArray(p.value)&&p.value.length===K.level){const U=K.pathLabels??[];let k=[];U.forEach(H=>{H&&k.push(H)}),k.length>0&&(N.value=k.join(l.separator))}else N.value=null;E(z)}),Y}),Z=Y=>{l.allowCreate?(c("update:modelValue",Y),c("change",Y),p.value=Y):f(Y,"value",h.value,!0)};let F=he(l,"hintText"),C=n.ref(!1);const V=Y=>{let E=Y.target.value;R.value=!0,de(F.value)||(C.value=!0),c("focus",E,Y)},A=Y=>{setTimeout(()=>{C.value&&(C.value=!1),R.value=!1},0);let E=Y.target.value;l.maxLength&&E.length>Number(l.maxLength)&&(E=E.slice(0,Number(l.maxLength))),I.value||c("blur",E,Y)},W=()=>{c("clear","")},X=n.ref(!1);let Q=null;const ne=()=>{l.showTooltip&&X.value===!1&&(Q&&clearTimeout(Q),Q=setTimeout(()=>{X.value=!0},150))},P=()=>{Q&&(clearTimeout(Q),X.value=!1,Q=null)},$=n.computed(()=>X.value||C.value),D=n.computed(()=>X.value?g.value:F.value),I=n.ref(!1),x=Y=>{I.value=Y,c("visible-change",Y),Y||c("selected")},j=Y=>{c("remove-tag",Y)},G=Y=>{c("expand-change",Y)},te=n.ref();return be({focus:()=>{te?.value.focus()},blur:()=>{te?.value.blur()},getCheckedNodes:()=>te?.value.getCheckedNodes(),setDisabled:Y=>{a.value=Y},setReadonly:Y=>{u.value=Y}}),()=>{const K={...r.attrs,ref:te,class:v.value,props:_.value,clearable:l.clearable,placeholder:N.value||m.placeholder.value,disabled:i.value||s.value,options:h.value,modelValue:p.value,separator:l.separator,onClear:W,onChange:Z,onFocus:V,onBlur:A,onVisibleChange:x,onRemoveTag:j,expandChange:G};typeof M=="function"&&(K["remote-method"]=M,K.loading=L.value);const E={};r.slots.option&&(E.default=r.slots.option),r.slots.empty&&(E.empty=r.slots.empty);const z=[],U=n.h(b.ElCascader,K,E);z.push(U);const k={default:()=>z};r.slots.default&&(k.label=r.slots.default),r.slots.fixedTip&&(k.fixedTip=r.slots.fixedTip);const ee={...Ee(l,ro),hintText:D.value,hintVisible:$.value,onMouseover:ne,onMouseleave:P};return l.prop&&(ee.prop=`${l.prop}_item`),O.value&&!l.lazy&&(ee["appear-listen"]=!0,ee.onAppear=q),n.h(o,ee,k)}}}}const{componentName:_s,create:qs,scope:js}=ie("cascader-item"),sl=qs(Bs(_s,js,Se)),ao={modelValue:{type:[String,Object],required:!1},clearable:{type:[Boolean,String],default:!0},unit:{type:[String],required:!1},placeholder:{type:[String],required:!1}};function zs(e,t,o){return{props:{...we,...ke,...ao},emits:["change","update:modelValue","blur","focus","clear","input","select","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:d}=Me.useFoxI18n(t),m=d(l,["placeholder"]),p=n.ref(!1),y=he(l,"modelValue",null,c),g=e,f=n.computed(()=>({[g]:!0})),h=w=>{y.value=w,c("update:modelValue",w),c("input",w)},O=w=>{c("change",w)},S=w=>{c("select",w)};let T=he(l,"hintText"),B=n.ref(!1);const q=w=>{let v=w.target.value;p.value=!0,de(T.value)||(B.value=!0),c("focus",v,w)},M=w=>{setTimeout(()=>{B.value&&(B.value=!1),p.value=!1},0);let v=w.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),c("blur",v,w)},L=()=>{c("clear","")},R=n.ref();return be({focus:()=>{R?.value.focus()},blur:()=>{R?.value.blur()},select:()=>{R?.value.select()},setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const N={...r.attrs,ref:R,class:f.value,placeholder:m.placeholder.value,clearable:l.clearable,disabled:i.value,readonly:s.value,modelValue:y.value,onClear:L,onChange:O,onInput:h,onFocus:q,onBlur:M,onSelect:S},v={};r.slots.prepend&&(v.prepend=r.slots.prepend),r.slots.append&&(v.append=r.slots.append),r.slots.prefix&&(v.prefix=r.slots.prefix),r.slots.suffix&&(v.suffix=r.slots.suffix),r.slots.option&&(v.default=r.slots.option);const _=[],Z=n.h(b.ElAutocomplete,N,v);_.push(Z);const F={default:()=>_};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const V={...Ee(l,ao),hintText:T.value,hintVisible:B.value};return l.prop&&(V.prop=`${l.prop}_item`),n.h(o,V,F)}}}}const{componentName:Hs,create:Ks,scope:Ws}=ie("autocomplete-item"),ul=Ks(zs(Hs,Ws,Se));function Ys(e,t,o,l,r){let a=[];Array.isArray(e)?a=e:a=[e];const i=[],u=t[0];if(Array.isArray(e)&&!Array.isArray(u)&&!u[r]){let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(p=>p[l]===d);if(!m)break;i.push(m[o])}return i}if(Array.isArray(u))for(let s=0;s<t.length&&s<a.length;s++){let c=t[s],d=a[s];const m=c.find(p=>p[l]===d);if(!m)break;i.push(m[o])}else{let s=t;for(let c=0;s&&c<a.length;c++){let d=a[c],m=s.find(p=>p[l]===d);if(!m)break;i.push(m[o]),s=m[r]}}return i}let Gs=class{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function Us(){const e=n.getCurrentInstance();return new Gs(e.proxy)}const Rr={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 Xs(e,t){return{props:{...Rr},setup(o,{attrs:l,slots:r}){const a=Us(),i=n.ref([]);n.watch([()=>o.source,()=>o.params],async([c,d])=>{i.value=await a.load(o.sourceType,c,d)},{immediate:!0});const u=n.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let c=Ys(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return c.length==0?o.emptyText??"":c.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${c[0]}`:c[0]:c.join(o.separator)}),s=o.resolveTag?n.resolveComponent(o.tag):o.tag;return()=>{const c={...l};return r.default?r.default({text:u.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===u.value?n.h(o.emptyTag??"span",{...l,class:o.emptyClass},u.value):n.h(s,c,{default:()=>u.value}):n.h(s,c,u.value)}}}}const{componentName:qh,create:Zs,scope:jh}=ie("mapping"),Pt=Zs(Xs());function Js(e,t){let o=t.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);l=l[m][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function Qs(e,t){return{props:{...Rr},setup(o,{attrs:l,slots:r}){return()=>{const a={default:i=>{const u=Js(i.row,i.column.property);return r.default?n.h(Pt,{...o,modelValue:u},{default:r.default}):n.h(Pt,{...o,modelValue:u})}};for(let i in r)i!=="default"&&(a[i]=r[i]);return n.h(b.ElTableColumn,{...l},a)}}}}const{componentName:zh,create:eu,scope:Hh}=ie("table-mapping-column"),cl=eu(Qs()),tu=Symbol.for("TableStateKey");function io(e,t){let o=t.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);l=l[m][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function nu(e,t){return{props:{},setup(o,{attrs:l}){const r=n.inject(tu,{});return()=>{const a=r.currentRow?r.currentRow.value:null,i={default:u=>{const s=io(u.row,u.column.property),c=a?io(a,u.column.property):null,d=s===c,m={class:{"el-radio__input":!0,"is-checked":d}},p=n.h("span",m,[n.h("span",{class:{"el-radio__inner":!0}})]),y={class:{"el-radio":!0,"is-checked":d}};return n.h("label",y,[p])}};return n.h(b.ElTableColumn,{...l},i)}}}}const{componentName:Kh,create:lu,scope:Wh}=ie("table-radio-column"),fl=lu(nu()),ou={},ru={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"};function au(e,t){return n.openBlock(),n.createElementBlock("svg",ru,t[0]||(t[0]=[n.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)]))}const iu=Le(ou,[["render",au]]),{componentName:Yh,create:su,scope:Gh}=ie("table-setting"),uu={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:"不固定"}},cu=su({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:iu,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...uu},setup(e,{emit:t,attrs:o}){let l=[];const r=n.ref([]),a=n.computed(()=>r.value.filter(x=>x.label===""||x.type?!1:x.fixed===""||x.fixed===!0||x.fixed==="left")),i=n.computed(()=>r.value.filter(x=>x.label===""||x.type?!1:x.fixed==="right")),u=n.computed(()=>r.value.filter(x=>!(x.label===""||x.type||x.fixed!==void 0))),s=n.computed(()=>(a.value.length>0||i.value.length>0)&&u.value.length>0),c=n.computed(()=>a.value.length>0),d=n.computed(()=>i.value.length>0),m=x=>x.length>1,p=(x,j)=>{Array.isArray(x)&&Array.isArray(j)&&x.forEach(Y=>{j.some(K=>K.prop===Y.prop?(Y.label=K.label,!0):!1)});const G=[];r.value=x.map((Y,K)=>(!(Y.label===""||Y.type)&&Y.visible!==!1&&G.push(Y.prop),{...Y,sortIndex:K})),u.value.length+a.value.length+i.value.length===G.length?S.value=!0:G.length>0&&(T.value=!0),M.value=G},y=x=>x?x.type?x.type:x.label?x.prop:"":"",g=(x,j)=>{if(x.length!==j.length)return!1;const G=x.map(te=>y(te));for(let te of j){const Y=y(te);if(G.indexOf(Y)===-1)return!1}return!0},f=x=>{if(!x){const j=e.tableRef.getColumnSetting(),G=j.srcColumnPropertyList;l=G.map((te,Y)=>({...te,sortIndex:Y})),x=j.columnPropertyList,x&&x.length>0&&g(G,x)||(x=G)}p(x,l)},h=()=>{e.tableRef.setColumnSetting(r.value)},O=n.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),S=n.ref(!1),T=n.ref(!1),B=x=>{const j=[];r.value.forEach(te=>{x&&!(te.label===""||te.type)&&j.push(te.prop),te.visible=x}),S.value=!1,T.value=!1,u.value.length+a.value.length+i.value.length===j.length?S.value=!0:j.length>0&&(T.value=!0),M.value=j,h()},q=()=>{f(l),h()},M=n.ref([]),L=x=>{r.value.forEach(G=>{if(G.label===""||G.type)return;const te=x.indexOf(G.prop)!==-1;G.visible=te}),S.value=!1,T.value=!1;const j=u.value.length+a.value.length+i.value.length;x.length===j?S.value=!0:x.length>0&&(T.value=!0),h()},R=()=>{f()};n.onMounted(()=>{setTimeout(()=>{f()},50)});const w={currentRow:null,index:null,roleType:null},N=x=>x?x.dataset&&x.dataset.role==="row"?x:x.tagName.toLowerCase()!=="body"?(x=x.parentElement,N(x)):null:null,v=x=>{const j=x.currentTarget;j&&j.dataset&&(w.roleType=j.dataset.roleType,w.index=j.dataset.index)},_=x=>{w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null),w.index=null,w.roleType=null},Z=x=>{const j=x.currentTarget;x.relatedTarget;const G=N(j);if(!G)return;const te=G.dataset&&G.dataset.roleType;w.roleType===te&&(x.preventDefault(),w.currentRow&&w.currentRow!==G&&w.currentRow.classList.remove("is-dragover"),G.classList.add("is-dragover"),w.currentRow=G)},F=x=>{x.preventDefault(),w.currentRow&&(w.currentRow.classList.remove("is-dragover"),w.currentRow=null)},C=x=>{const j=x.currentTarget,G=N(j);if(!G)return;const te=G.dataset&&G.dataset.roleType;if(w.roleType!==te)return;x.preventDefault();const Y=Number(w.index),K=Number(G.dataset.index);if(Y!==K){if(Y<K){const E=r.value[Y];r.value.splice(Y,1),r.value.splice(K,0,E)}else{const E=r.value[Y];r.value.splice(Y,1),r.value.splice(K+1,0,E)}p(r.value,l),h()}},V=x=>{const j=r.value[x];j.fixed="left",h()},A=x=>{const j=r.value[x];j.fixed="right",h()},W=x=>{const j=r.value[x];j.fixed=void 0,h()},X=new Map;let Q=null;function ne(x){const j=document.createRange();return j.setStart(x,0),j.setEnd(x,x.childNodes.length),j.getBoundingClientRect().width}return{attrs:o,leftFixedColumns:a,rightFixedColumns:i,unFixedColumns:u,isShowNotFixedTitle:s,isShowLeftFixedTitle:c,isShowRightFixedTitle:d,isDraggble:m,isCheckAll:S,isIndeterminate:T,handleCheckAllChange:B,handleReset:q,checkedValue:M,handleCheckChange:L,onShow:R,onDragStart:v,onDragEnd:_,onDragOver:Z,onDragLeave:F,onDrop:C,toLeftFixed:V,toRightFixed:A,toUnFixed:W,checkboxLabelStyle:O,onMouseOverForOverflowText:(x,j,G)=>{const te=x.currentTarget;if(te){const Y=Math.floor(te.offsetWidth);if(Math.floor(ne(te))>Y){let E=X.get(j);if(E){if(E===Q)return;Ie.hide(E)}E=Ie.show(te,G,{type:"text",placement:"top",closeOnClick:!1}),E&&(X.set(j,E),Q=E)}}},onMouseLeaveForOverflowText:(x,j)=>{const G=X.get(j);G&&(Ie.hide(G),G===Q&&(Q=null))},onMouseOverForTip:(x,j)=>{const G=x.currentTarget;G&&(Q&&Ie.hide(Q),Q=Ie.show(G,j,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:x=>{Q&&(Ie.hide(Q),Q=null)}}}}),fu={class:"fox-table-setting"},du={class:"fox-table-setting__header"},hu={class:"fox-table-setting__body"},mu={key:0,class:"fox-table-setting__body-list left-fixed","data-role":"container","data-role-type":"leftFixed"},gu={key:0,class:"fox-table-setting__body-title"},pu=["data-index","draggable"],vu=["onMouseover","onMouseleave"],yu={class:"tools-item"},bu={key:1,class:"fox-table-setting__body-list not-fixed","data-role":"container","data-role-type":"unFixed"},xu={key:0,class:"fox-table-setting__body-title"},wu=["data-index","draggable"],Su=["onMouseover","onMouseleave"],Tu={class:"tools-item"},$u={key:2,class:"fox-table-setting__body-list right-fixed","data-role":"container","data-role-type":"rightFixed"},Cu={key:0,class:"fox-table-setting__body-title"},Nu=["data-index","draggable"],Eu=["onMouseover","onMouseleave"],ku={class:"tools-item"};function Pu(e,t,o,l,r,a){const i=n.resolveComponent("FoxCheckbox"),u=n.resolveComponent("FoxButton"),s=n.resolveComponent("DragIcon"),c=n.resolveComponent("RefreshLeft"),d=n.resolveComponent("FoxIcon"),m=n.resolveComponent("Download"),p=n.resolveComponent("fox-checkbox"),y=n.resolveComponent("FoxCheckboxGroup"),g=n.resolveComponent("FoxPopover");return n.openBlock(),n.createBlock(g,n.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-table-setting__popper"}),{reference:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("div",fu,[n.createElementVNode("div",du,[n.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=f=>e.isCheckAll=f),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),n.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),n.createElementVNode("div",hu,[n.createVNode(y,{modelValue:e.checkedValue,"onUpdate:modelValue":t[28]||(t[28]=f=>e.checkedValue=f),onChange:e.handleCheckChange},{default:n.withCtx(()=>[e.leftFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",mu,[e.isShowLeftFixedTitle?(n.openBlock(),n.createElementBlock("div",gu,n.toDisplayString(e.leftFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.leftFixedColumns,f=>(n.openBlock(),n.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"leftFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.leftFixedColumns),onDragstart:t[5]||(t[5]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[6]||(t[6]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[7]||(t[7]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[8]||(t[8]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[9]||(t[9]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.leftFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",value:f.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(f.label),45,vu)]),_:2},1032,["value"]),n.createElementVNode("div",yu,[n.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[1]||(t[1]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[2]||(t[2]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[3]||(t[3]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[4]||(t[4]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"])])],40,pu))),128))])):n.createCommentVNode("",!0),e.unFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",bu,[e.isShowNotFixedTitle?(n.openBlock(),n.createElementBlock("div",xu,n.toDisplayString(e.unFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unFixedColumns,f=>(n.openBlock(),n.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"unFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.unFixedColumns),onDragstart:t[14]||(t[14]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[15]||(t[15]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[16]||(t[16]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[17]||(t[17]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[18]||(t[18]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.unFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",value:f.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(f.label),45,Su)]),_:2},1032,["value"]),n.createElementVNode("div",Tu,[n.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[10]||(t[10]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[11]||(t[11]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:h=>e.toRightFixed(f.sortIndex),onMouseover:t[12]||(t[12]=h=>e.onMouseOverForTip(h,e.fixedRightText)),onMouseleave:t[13]||(t[13]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"])])],40,wu))),128))])):n.createCommentVNode("",!0),e.rightFixedColumns.length>0?(n.openBlock(),n.createElementBlock("div",$u,[e.isShowRightFixedTitle?(n.openBlock(),n.createElementBlock("div",Cu,n.toDisplayString(e.rightFixedTitle),1)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rightFixedColumns,f=>(n.openBlock(),n.createElementBlock("div",{key:f.prop,class:"fox-table-setting__body-row","data-role":"row","data-role-type":"rightFixed","data-index":f.sortIndex,draggable:e.isDraggble(e.rightFixedColumns),onDragstart:t[23]||(t[23]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[24]||(t[24]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDrop:t[25]||(t[25]=(...h)=>e.onDrop&&e.onDrop(...h)),onDragover:t[26]||(t[26]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[27]||(t[27]=(...h)=>e.onDragLeave&&e.onDragLeave(...h))},[e.isDraggble(e.rightFixedColumns)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(p,{class:"checkbox-item",label:f.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:h=>e.onMouseOverForOverflowText(h,f.prop,f.label),onMouseleave:h=>e.onMouseLeaveForOverflowText(h,f.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(f.label),45,Eu)]),_:2},1032,["label"]),n.createElementVNode("div",ku,[n.createVNode(d,{onClick:h=>e.toUnFixed(f.sortIndex),onMouseover:t[19]||(t[19]=h=>e.onMouseOverForTip(h,e.unFixedText)),onMouseleave:t[20]||(t[20]=h=>e.onMouseLeaveForTip(h))},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:h=>e.toLeftFixed(f.sortIndex),onMouseover:t[21]||(t[21]=h=>e.onMouseOverForTip(h,e.fixedLeftText)),onMouseleave:t[22]||(t[22]=h=>e.onMouseLeaveForTip(h)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(m)]),_:2},1032,["onClick"])])],40,Nu))),128))])):n.createCommentVNode("",!0)]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const un=Le(cu,[["render",Pu]]);let Iu=class{proxy;constructor(t){this.proxy=t}async load(t,o,l,r,a,i,u){if(Array.isArray(o)){let c=(l-1)*r,d=c+r;d>o.length&&(d=o.length);const m=o.slice(c,d);return{totalSize:o.length,page:m}}if(typeof o=="function")return await Reflect.apply(o,null,[l,r,a,i,u]);const s=qe(this.proxy,t);return s===null?(console.error(`${t} component not found api function`),{totalSize:0,page:[]}):(Ge(a)&&n.isReactive(a)&&(a=n.toRaw(a)),await Reflect.apply(s,null,[o,l,r,a,i,u]))}};function Ou(){const e=n.getCurrentInstance();return new Iu(e.proxy)}class Vu{proxy;constructor(t){this.proxy=t}async load(t){let o=null;const l=qe(this.proxy,"tableSetting");return typeof l=="function"&&(o=await Reflect.apply(l,null,["load",t])),o}save(t,o){const l=qe(this.proxy,"tableSetting");typeof l=="function"&&Reflect.apply(l,null,["save",t,o])}remove(t){const o=qe(this.proxy,"tableSetting");typeof o=="function"&&Reflect.apply(o,null,["remove",t])}}function Ar(){const e=n.getCurrentInstance();return new Vu(e.proxy)}const Du=Symbol.for("TableStateKey"),so={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"}},uo={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}},Sn={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:"不固定"}},Fu={infiniteLoad:{type:Boolean,default:!1},loadText:{type:String,default:"加载中..."},loadMoreText:{type:String,default:"无更多数据"}};function Ru(e,t){let o=t.split("."),l=e;for(let r=0;r<o.length;r++){let a=o[r],i=0,u=a.indexOf("["),s=u==-1?-1:a.indexOf("]",u);for(;u!==-1&&s!==-1;){let c=a.substring(u+1,s);if(/^\d+$/.test(c)){let d=parseInt(c);if(i==0){let m=a.substring(0,u);l=l[m][d]}else l=l[d];i++}u=a.indexOf("[",s),s=u==-1?-1:a.indexOf("]",u)}i===0&&(l=l[a])}return l}function Tn(e,t){return e.filter(l=>{for(let r in t){const a=t[r],i=Ru(l,r);if(a!==i)return!1}return!0})}function Au(e,t,o){return{inheritAttrs:!1,props:{...we,...ke,...so,...uo,...Sn,...Fu},emits:["change","page-size-change","page-index-change","current-change","loaded-data","expand-change","row-click"],setup(l,r){const{locale:a}=Me.useFoxI18n(t),{emitEvent:i}=Te({componentName:e,validateHandler:{getValue(...J){return M.value}}},l.prop??r.attrs.name),u=e,s=n.computed(()=>({[u]:!0})),c=n.computed(()=>({[`${u}__setting`]:!0})),d=n.computed(()=>({[`${u}__footer`]:!0,[`${u}__footer__${l.footerAlign}`]:!0})),m=n.computed(()=>({[`${u}__pagination`]:!0,[`${u}__pagination__${l.paginationAlign}`]:!0})),p=n.shallowRef({}),y=n.computed(()=>({...p.value,...l.params??{},...l.baseParams??{}})),g=n.ref(l.infiniteLoad===!0?0:l.pageIndex),f=n.ref(l.pageSize),h=ue(l.infiniteLoad);h||(n.watch(()=>l.pageIndex,J=>{g.value=J}),n.watch(()=>l.pageSize,J=>{f.value=J}),n.watch([g,f],([J,oe],[re,ce])=>{oe!==ce&&(g.value=1,J=1),N(l.data,J,oe,y.value)}));const O=()=>Array.isArray(l.data)?!0:ue(l.autoLoad);O()&&n.watch([()=>l.data,y],async([J,oe],[re,ce])=>{O()&&(J!==re&&(R=!0),!(!Array.isArray(J)&&Ye(J,re)&&Ye(oe,ce))&&(h?(g.value=0,B.value=!0,M.value=[],_()):g.value===1?N(J,g.value,f.value,oe):g.value=1))},{deep:!0});const S=J=>{g.value=J,i("page-index-change",J)},T=J=>{f.value=J,i("page-size-change",J)},B=n.ref(!0),q=n.ref(0),M=n.ref(),L=Ou();let R=!0;const w=Oe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,J=>ue(J)),N=async(J,oe,re,ce,pe)=>{R=!1;try{if(pe===!0){if(!B.value)return!1;const ge=await L.load("table",J,oe,re,ce,R,a.value);return q.value=ge.totalSize,!ge.page||!Array.isArray(ge.page)||(Reflect.apply([].push,M.value,ge.page),setTimeout(()=>{i("loaded-data")},250),(M.value?.length??0)>=q.value)||ge.page.length<re?(B.value=!1,!1):!0}else{const ge=await L.load("table",J,oe,re,ce,R,a.value);return q.value=ge.totalSize,M.value=ge.page??[],setTimeout(()=>{i("loaded-data")},250),!0}}catch(ge){console.error("[FoxUI] Load Table Data Fail",ge),q.value=0,M.value=[]}return!1};let v=!1;const _=async()=>{if(!v){if(v=!0,!B.value){v=!1;return}g.value+=1,await N(l.data,g.value,f.value,y.value,!0),v=!1}},Z=(J={},oe=!1)=>new Promise(async re=>{p.value={...n.toRaw(J??{})},oe||(g.value=l.pageIndex??1),h===!0?(g.value=0,M.value=[],B.value=!0,await _()):await N(l.data,g.value,f.value,y.value),re()}),F=()=>{q.value=0,M.value=[],h===!0&&(g.value=0,B.value=!0)};let C=!1;const V=()=>{C||(C=!0,Z())},A=n.ref(null);if(h===!0){let J=null;const oe=()=>{A.value&&(J=new IntersectionObserver(ce=>{let pe=!1;for(let ge of ce)if(ge.intersectionRatio>0){pe=!0;break}pe&&_()}),J.observe(A.value))},re=()=>{!J||!A.value||(J.unobserve(A.value),J=null)};n.onMounted(oe),n.onBeforeUnmount(re)}O()&&!w.value&&Z();const W=n.ref(null);n.provide(Du,{currentRow:W});const X=(J,oe)=>{W.value=J,i("current-change",J,oe)},Q=(J,oe,re)=>{i("row-click",J,oe,re),ue(l.rowClickSelectable)===!0&&ae?.value.toggleRowSelection(J)},ne=[],P=(J,oe)=>{if(i("expand-change",J,oe),ue(l.uniqueExpansion))if(Array.isArray(oe)&&oe.length==0){const re=ne.length;ne.splice(0,re)}else{ne.forEach(ce=>{ce!==J&&ae?.value.toggleRowExpansion(ce,!1)});const re=ne.length;ne.splice(0,re,J)}},$=r.attrs.id??l.prop??r.attrs.name,D=Ar(),I=n.ref([]);let x=[];const j=()=>({srcColumnPropertyList:x.map(oe=>({...oe})),columnPropertyList:I.value}),G=J=>{I.value=[...J],Y()},te=async()=>{const J=await D.load($);J&&(I.value=J)},Y=()=>{D.save($,I.value)},K=()=>{D.remove($)};te();const E=J=>J?J.type?J.type:J.label?J.prop:"":"",z=()=>typeof r.slots.default=="function"?r.slots.default():[],U=(J,oe={})=>{for(let re in oe){const ce=oe[re];typeof ce!="function"&&(J[re]=ce)}},k=n.computed(()=>{const J=z(),oe=new Map;if(x=[],J.forEach(re=>{const pe=re;if(!pe.props)return;const ge=E(pe.props);oe.set(ge,pe);const Ke={label:"",prop:""};U(Ke,pe.props),x.push(Ke)}),I.value.length===x.length){const re=[];for(let ce of I.value){const pe=E(ce),ge=oe.get(pe);if(!ge)return J;if(ce.visible===!1)continue;const Ke=ge;Ke.props.fixed=ce.fixed,re.push(Ke)}return re}return J}),H=n.shallowRef(new Map),ee=({column:J,rowIndex:oe})=>{const re=`${oe}_${J.property}`;return H.value.get(re)??""},le=J=>typeof J=="function"?oe=>{const re=[];let ce=ee(oe);return ce&&re.push(ce),ce=J(oe),ce&&re.push(ce),re.length===0?"":re.join(" ")}:ee,se=(J,oe,re)=>{const ce=`${J}_${oe}`;re?H.value.set(ce,re):H.value.delete(ce),n.triggerRef(H)},ae=n.ref();return be({clearSelection:()=>ae?.value.clearSelection(),getSelectionRows:()=>ae?.value.getSelectionRows(),toggleRowSelection:(J,oe)=>{ae?.value.toggleRowSelection(J,oe)},toggleRowSelectionByProp:(J,oe)=>{if(!M.value)return;const re=Tn(M.value,J);re.length!==0&&re.forEach(ce=>{ae?.value.toggleRowSelection(ce,oe)})},toggleAllSelection:()=>{ae?.value.toggleAllSelection()},toggleRowExpansion:(J,oe)=>{ae?.value.toggleRowExpansion(J,oe)},toggleRowExpansionByProp:(J,oe)=>{if(!M.value)return;const re=Tn(M.value,J);re.length!==0&&re.forEach(ce=>{ae?.value.toggleRowExpansion(ce,oe)})},setCurrentRow:J=>{ae?.value.setCurrentRow(J)},setCurrentRowByProp:J=>{if(!M.value)return;const oe=Tn(M.value,J);oe.length!==0&&ae?.value.setCurrentRow(oe[0])},getCurrentRow:()=>W.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:Z,clearData:F,getData(){return M.value},getTotalSize(){return q.value},getPageIndex(){return g.value},getPageSize(){return f.value},getColumnSetting:j,setColumnSetting:G,removeColumnSetting:K,setCellClassName:se}),()=>{const oe={...He(r.attrs),onCurrentChange:X,onRowClick:Q,onExpandChange:P,data:M.value,ref:ae,class:s.value,"cell-class-name":le(l.cellClassName)},re={};if(r.slots.default&&(re.default=()=>k.value),r.slots.append&&(re.append=r.slots.append),r.slots.empty&&(re.empty=r.slots.empty),h===!0){const Be=[];if(B.value){const vt=n.h(Ne.Loading,{class:`${u}__infinite-icon`});Be.push(vt);const gn=n.h("span",{class:`${u}__infinite-text`},[l.loadText]);Be.push(gn)}else{const vt=n.h("span",{class:`${u}__infinite-text`},[l.loadMoreText]);Be.push(vt)}const tt={ref:A,class:`${u}__infinite`},mn=n.h("div",tt,Be);re.append=()=>mn}const ce=n.h(b.ElTable,oe,re),pe=[];if(pe.push(ce),!h){let Be=null;if(typeof r.slots.pagination=="function")Be=r.slots.pagination();else if(l.showPagination){const tt={class:m.value,total:q.value,pageSize:f.value,"onUpdate:pageSize":T,pageSizes:l.pageSizes,currentPage:g.value,"onUpdate:currentPage":S,hideOnSinglePage:l.hideOnSinglePage,layout:l.paginationLayout,samll:l.paginationSmall,background:l.paginationBackground};Be=n.h(b.ElPagination,tt)}if(l.showSetting){const tt=[];Be&&tt.push(Be);const mn=n.h(b.ElIcon,{class:c.value},{default:()=>n.h(Ne.Setting)}),vt=Qo(l,Sn),gn=n.h(un,{...vt,tableRef:{getColumnSetting:j,setColumnSetting:G,removeColumnSetting:K}},{default:()=>mn});tt.push(gn);const Yr=n.h("div",{class:d.value},tt);pe.push(Yr)}else Be&&pe.push(Be)}const ge={default:()=>pe},st={...Ee(l,so,uo,Sn)};return l.prop&&(st.prop=`${l.prop}_item`),st.contentClass=`${u}__wrap`,st.errorMarkClass="is-table-error",w.value&&O()&&(st["appear-listen"]=!0,st.onAppear=V),n.h(o,st,ge)}}}}const{componentName:Mu,create:Lu,scope:Bu}=ie("table-item"),dl=Lu(Au(Mu,Bu,Se));function gt(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function It(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function _u(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let qu=class{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function ju(){const e=n.getCurrentInstance();return new qu(e.proxy)}function Mr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const l=gt(e,t),r=gt(e,o);if(l!==r)return!1;const a=It(e,t),i=It(e,o);return a===i}function zu(e,t,o,l){if(l.length==0||t===""||t===null||t===void 0)return null;let r=null;for(let a of l){let i=!1;if(o==="text")i=gt(e,a)===t;else if(o==="item")i=Mr(e,a,t);else{let u=It(e,a);u==null&&(u=gt(e,a)),i=u===t}if(i){r=a;break}}return r}function Hu(e){return{text:e,value:e}}function Ku(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const co={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 Wu(e,t,o){return{inheritAttrs:!0,props:{...we,...ke,...co},emits:["change","update:modelValue","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=n.ref(null),m=n.ref(null),p=(w,N,v,_=!0)=>{const Z=zu(l,w,N,v);if(Z===null){if(m.value===null)return;m.value=null,d.value=null,_&&(c("update:modelValue",null),c("change",null));return}if(!Mr(l,Z,m.value)){d.value=w;const C=n.toRaw(Z);m.value=C;let V=null;l.valueType==="text"?V=gt(l,C):l.valueType==="item"?V=C:V=It(l,C),_&&(c("update:modelValue",V),c("change",V))}},y=n.ref([]),g=Oe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,w=>ue(w)),f=ju(),h=async(w,N)=>{if(w){const v=await f.load("radio",w,N);if(v.length>0)if(typeof v[0]=="string"){let F=v.map(C=>Hu(C));y.value=F}else y.value=v}};n.watch([()=>l.source,()=>l.params],async([w,N])=>{h(w,N)},{immediate:!g.value});let O=!1;const S=()=>{O||(O=!0,h(l.source,l.params))};n.watch([()=>y.value,()=>l.modelValue],([w,N])=>{p(N,l.valueType,w,!1),c("setValue",N)});const T=e,B=n.computed(()=>({[T]:!0,[`is-${l.direction}`]:!0})),q=w=>{p(w,"value",y.value,!0)};let M=he(l,"hintText"),L=he(l,"hintVisible");const R=(w,N)=>{const v=[];return w.forEach((_,Z)=>{const F=It(l,_),C=gt(l,_);let V=_u(l,_);i.value===!0&&(V=i.value),s.value===!0&&(V=s.value);const A=Ku(l,_,Z)??{},W=`${F}_${Z}`,X={...A,key:W,value:F,size:l.size,border:ue(l.border)};V&&(X.disabled=V),l.itemType==="button"?v.push(n.h(b.ElRadioButton,X,{default:()=>[C]})):typeof N=="function"?v.push(n.h(b.ElRadio,X,{default:()=>N(_)})):v.push(n.h(b.ElRadio,X,{default:()=>[C]}))}),v};return be({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const N={...He(r.attrs),class:B.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,onChange:q},v=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(y.value,r.slots.text);const Z=n.h(b.ElRadioGroup,N,_);v.push(Z);const F={default:()=>v};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const V={...Ee(l,co),hintText:M.value,hintVisible:L.value};return l.prop&&(V.prop=`${l.prop}_item`),g.value&&(V["appear-listen"]=!0,V.onAppear=S),n.h(o,V,F)}}}}const{componentName:Yu,create:Gu,scope:Uu}=ie("radio-item"),hl=Gu(Wu(Yu,Uu,Se));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 Xu(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}let Zu=class{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await r(o,l))}};function Ju(){const e=n.getCurrentInstance();return new Zu(e.proxy)}function Lr(e,t,o){if(t===o)return!0;if(t===null||o===null)return!1;const l=pt(e,t),r=pt(e,o);if(l!==r)return!1;const a=ht(e,t),i=ht(e,o);return a===i}function Qu(e,t,o,l){if(l.length==0||t===""||t===null||t===void 0)return null;Array.isArray(t)||(t=[t]);const r=[];return t.forEach(a=>{for(let i of l){let u=!1;if(o==="text")u=pt(e,i)===a;else if(o==="item")u=Lr(e,i,a);else{let s=ht(e,i);s==null&&(s=pt(e,i)),u=s===a}if(u){r.push(i);break}}}),r}function ec(e){return{text:e,value:e}}function tc(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}const fo={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 nc(e,t,o){return{inheritAttrs:!0,props:{...we,...ke,...fo},emits:["change","update:modelValue","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=n.ref([]),m=n.ref([]),p=(w,N,v,_=!0)=>{const Z=Qu(l,w,N,v);if(Z===null){if(m.value===null||m.value.length===0)return;d.value=[],m.value=[],_&&(c("update:modelValue",[]),c("change",[]));return}let F=!0;if(Z.length!==m.value.length)F=!1;else for(let C=0;C<Z.length;C++){const V=Z[C],A=m.value[C];if(!Lr(l,V,A)){F=!1;break}}if(!F){m.value=Z;let C=[],V=[];Z.forEach(W=>{C.push(ht(l,W)),l.valueType==="text"?V.push(pt(l,W)):l.valueType==="item"?V.push(W):V.push(ht(l,W))}),d.value=C;const A=n.toRaw(V);_&&(c("update:modelValue",A),c("change",A))}},y=n.ref([]),g=Oe(n.computed(()=>l.appearLoad),"appearLoad",Ae.Near,w=>ue(w)),f=Ju(),h=async(w,N)=>{if(w){const v=await f.load("checkbox",w,N);if(v.length>0)if(typeof v[0]=="string"){let F=v.map(C=>ec(C));y.value=F}else y.value=v}};n.watch([()=>l.source,()=>l.params],async([w,N])=>{h(w,N)},{immediate:!g.value});let O=!1;const S=()=>{O||(O=!0,h(l.source,l.params))};n.watch([()=>y.value,()=>l.modelValue],([w,N])=>{p(N,l.valueType,w,!1),c("setValue",N)});const T=e,B=n.computed(()=>({[T]:!0,[`is-${l.direction}`]:!0})),q=w=>{p(w,"value",y.value,!0)};let M=he(l,"hintText"),L=he(l,"hintVisible");const R=(w,N)=>{const v=[];return w.forEach((_,Z)=>{const F=ht(l,_),C=pt(l,_);let V=Xu(l,_);i.value===!0&&(V=i.value),s.value===!0&&(V=s.value);const A=tc(l,_,Z)??{},W=`${F}_${Z}`,X={...A,key:W,class:l.itemClass,value:F,size:l.size,border:ue(l.border)};V&&(X.disabled=V),l.itemType==="button"?v.push(n.h(b.ElCheckboxButton,X,{default:()=>[C]})):typeof N=="function"?v.push(n.h(b.ElCheckbox,X,{default:()=>N(_)})):v.push(n.h(b.ElCheckbox,X,{default:()=>[C]}))}),v};return be({setDisabled:w=>{a.value=w},setReadonly:w=>{u.value=w}}),()=>{const N={...He(r.attrs),class:B.value,disabled:i.value||s.value,modelValue:d.value,"text-color":l.textColor,fill:l.fill,max:xe(l.max),min:xe(l.min),onChange:q},v=[],_={};r.slots.options?_.default=r.slots.options:_.default=()=>R(y.value,r.slots.text);const Z=n.h(b.ElCheckboxGroup,N,_);v.push(Z);const F={default:()=>v};r.slots.default&&(F.label=r.slots.default),r.slots.fixedTip&&(F.fixedTip=r.slots.fixedTip);const V={...Ee(l,fo),hintText:M.value,hintVisible:L.value};return l.prop&&(V.prop=`${l.prop}_item`),g.value&&(V["appear-listen"]=!0,V.onAppear=S),n.h(o,V,F)}}}}const{componentName:lc,create:oc,scope:rc}=ie("checkbox-item"),ml=oc(nc(lc,rc,Se)),ho={modelValue:{type:[Number,String],required:!1}};function ac(e,t,o){return{props:{...we,...ke,...ho},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=he(l,"modelValue",O=>xe(O),c),m=e,p=n.computed(()=>({[m]:!0})),y=O=>{c("update:modelValue",O),c("change",O)};let g=he(l,"hintText"),f=n.ref(!1);const h=n.ref();return be({setDisabled:O=>{a.value=O},setReadonly:O=>{u.value=O}}),()=>{const S={...He(r.attrs),ref:h,class:p.value,readonly:s.value||i.value,modelValue:d.value,onChange:y},T={},B=[],q=n.h(b.ElRate,S,T);B.push(q);const M={default:()=>B};r.slots.default&&(M.label=r.slots.default),r.slots.fixedTip&&(M.fixedTip=r.slots.fixedTip);const R={...Ee(l,ho),hintText:g.value,hintVisible:f.value};return l.prop&&(R.prop=`${l.prop}_item`),n.h(o,R,M)}}}}const{componentName:ic,create:sc,scope:uc}=ie("rate-item"),gl=sc(ac(ic,uc,Se)),mo={modelValue:{type:[Boolean,String,Number],required:!1}};function cc(e,t,o){return{props:{...we,...ke,...mo},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),d=he(l,"modelValue",null,c),m=e,p=n.computed(()=>({[m]:!0})),y=O=>{c("update:modelValue",O),c("change",O)};let g=he(l,"hintText"),f=he(l,"hintVisible");const h=n.ref();return be({setDisabled:O=>{a.value=O},setReadonly:O=>{u.value=O}}),()=>{const S={...He(r.attrs),ref:h,class:p.value,readonly:s.value,disabled:i.value,modelValue:d.value,onChange:y},T={},B=[],q=n.h(b.ElSwitch,S,T);B.push(q);const M={default:()=>B};r.slots.default&&(M.label=r.slots.default),r.slots.fixedTip&&(M.fixedTip=r.slots.fixedTip);const R={...Ee(l,mo),hintText:g.value,hintVisible:f.value};return l.prop&&(R.prop=`${l.prop}_item`),n.h(o,R,M)}}}}const{componentName:fc,create:dc,scope:hc}=ie("switch-item"),pl=dc(cc(fc,hc,Se)),go={modelValue:{type:[String,Number,Boolean,Array],required:!1}};function mc(e,t,o){return{props:{...we,...ke,...go},emits:["change","update:modelValue","blur","focus","clear","input","setValue"],setup(l,r){const a=n.ref(null),i=De(n.computed(()=>a.value??l.disabled)),u=n.ref(null),s=Ve(n.computed(()=>u.value??l.readonly)),c=n.ref(!1),{emitEvent:d}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),m=he(l,"modelValue",null,d),p=e,y=n.computed(()=>({[p]:!0})),g=L=>{d("update:modelValue",L),d("change",L)};let f=he(l,"hintText"),h=n.ref(!1);const O=L=>{let w=L.target.value;c.value=!0,de(f.value)||(h.value=!0),d("focus",w,L)},S=L=>{setTimeout(()=>{h.value&&(h.value=!1),c.value=!1},0);let w=L.target.value;l.maxLength&&w.length>Number(l.maxLength)&&(w=w.slice(0,Number(l.maxLength))),B.value||d("blur",w,L)},T=()=>{d("clear","")},B=n.ref(!1),q=L=>{B.value=L,d("visible-change",L),L||d("selected")},M=n.ref();return be({focus:()=>{M?.value.focus()},blur:()=>{M?.value.blur()},setDisabled:L=>{a.value=L},setReadonly:L=>{u.value=L}}),()=>{const R={...He(r.attrs),ref:M,class:y.value,disabled:i.value||s.value,modelValue:m.value,"onUpdate:modelValue":g,onClear:T,onFocus:O,onBlur:S,onVisibleChange:q},w={};r.slots.option&&(w.default=r.slots.option);const N=[],v=n.h(b.ElTreeSelect,R,w);N.push(v);const _={default:()=>N};r.slots.default&&(_.label=r.slots.default),r.slots.fixedTip&&(_.fixedTip=r.slots.fixedTip);const F={...Ee(l,go),hintText:f.value,hintVisible:h.value};return l.prop&&(F.prop=`${l.prop}_item`),n.h(o,F,_)}}}}const{componentName:gc,create:pc,scope:vc}=ie("tree-select-item"),vl=pc(mc(gc,vc,Se)),yc={},bc={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"};function xc(e,t){return n.openBlock(),n.createElementBlock("svg",bc,t[0]||(t[0]=[n.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)]))}const wc=Le(yc,[["render",xc]]),{componentName:Jh,create:Sc,scope:Qh}=ie("group-setting"),Tc={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:"到底部"}},$c=Sc({components:{FoxPopover:b.ElPopover,FoxCheckbox:b.ElCheckbox,FoxCheckboxGroup:b.ElCheckboxGroup,FoxButton:b.ElButton,FoxIcon:b.ElIcon,DragIcon:wc,Download:Ne.Download,RefreshLeft:Ne.RefreshLeft},props:{...Tc},emits:["change"],setup(e,{emit:t,attrs:o,expose:l}){let r=null;const a=n.ref([]),i=Ar(),u=P=>P.length>1,s=()=>{const P=[],$=[...a.value];a.value=$.map((I,x)=>(I.visible!==!1&&P.push(I.prop),{...I,sortIndex:x})),a.value.length===P.length?f.value=!0:P.length>0&&(h.value=!0),T.value=P},c=P=>{let $=null;if(typeof P=="string")$=document.querySelectorAll(`.fox-group[prop="${P}"] > div > .fox-item[prop]`);else if(P&&typeof P=="object"){const I=P.$el??P;typeof I.querySelectorAll=="function"&&($=I.querySelectorAll(".fox-item[prop]"))}if(!$)return[];const D=[];return $.forEach(I=>{const x=I.querySelector(".label--string");let j="";x&&(j=x.textContent??"");const G=I.getAttribute("prop")??"",Y=window.getComputedStyle(I,null).getPropertyValue("display");D.push({label:j,prop:G,sortIndex:0,visible:Y!=="none"})}),D},d=()=>{if(!r){const P=c(e.groupRef??e.groupProp);if(P.length===0)return!1;r=P}return!0},m=async(P=!1)=>{const $=await i.load(e.groupProp),D=I=>{if(!I||!r)return;const x=r.map(j=>({...j}));Array.isArray($)&&$.forEach(j=>{x.some(G=>{if(G.prop===j.prop){const te=G.label;return Object.assign(G,j),G.label=te,!0}return!1})}),a.value=x.sort((j,G)=>j.sortIndex-G.sortIndex),s(),P&&y(!1)};r?D(!0):Zt(d,e.initDelay,5,50,!1,D)},p=()=>{const P=r??[];a.value=P.map($=>({...$})),s(),y()},y=(P=!0)=>{P&&i.save(e.groupProp,a.value);const $=a.value.map(D=>({...D}));t("change",$)},g=n.computed(()=>({"max-width":`${e.popoverWidth-125}px`})),f=n.ref(!1),h=n.ref(!1),O=P=>{const $=[];a.value.forEach(I=>{P&&$.push(I.prop),I.visible=P}),f.value=!1,h.value=!1,a.value.length===$.length?f.value=!0:$.length>0&&(h.value=!0),T.value=$,y()},S=()=>{p()},T=n.ref([]),B=P=>{a.value.forEach(D=>{const I=P.indexOf(D.prop)!==-1;D.visible=I}),f.value=!1,h.value=!1;const $=a.value.length;P.length===$?f.value=!0:P.length>0&&(h.value=!0),y()},q=()=>{m()};n.onMounted(()=>{m(!0)});const M={currentRow:null,index:null},L=P=>P?P.dataset&&P.dataset.role==="row"?P:P.tagName.toLowerCase()!=="body"?(P=P.parentElement,L(P)):null:null,R=P=>{const $=P.currentTarget;$&&$.dataset&&(M.index=$.dataset.index)},w=P=>{M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null),M.index=null},N=P=>{const $=P.currentTarget;P.relatedTarget;const D=L($);D&&(P.preventDefault(),M.currentRow&&M.currentRow!==D&&M.currentRow.classList.remove("is-dragover"),D.classList.add("is-dragover"),M.currentRow=D)},v=P=>{P.preventDefault(),M.currentRow&&(M.currentRow.classList.remove("is-dragover"),M.currentRow=null)},_=P=>{const $=P.currentTarget,D=L($);if(!D)return;P.preventDefault();const I=Number(M.index),x=Number(D.dataset.index);if(I!==x){if(I<x){const j=a.value[I];a.value.splice(I,1),a.value.splice(x,0,j)}else{const j=a.value[I];a.value.splice(I,1),a.value.splice(x+1,0,j)}s(),y()}},Z=P=>{const $=a.value[P];a.value.splice(P,1),a.value.splice(0,0,$),s(),y()},F=P=>{const $=a.value[P];a.value.splice(P,1),a.value.push($),s(),y()};l({refresh:()=>{r=null,m(!1)}});const C=new Map;let V=null;function A(P){const $=document.createRange();return $.setStart(P,0),$.setEnd(P,P.childNodes.length),$.getBoundingClientRect().width}return{attrs:o,itemPropertyList:a,isDraggble:u,isCheckAll:f,isIndeterminate:h,handleCheckAllChange:O,handleReset:S,checkedValue:T,handleCheckChange:B,onShow:q,onDragStart:R,onDragEnd:w,onDragOver:N,onDragLeave:v,onDrop:_,checkboxLabelStyle:g,toTop:Z,toBottom:F,onMouseOverForOverflowText:(P,$,D)=>{const I=P.currentTarget;if(I){const x=Math.floor(I.offsetWidth);if(Math.floor(A(I))>x){let G=C.get($);if(G){if(G===V)return;Ie.hide(G)}G=Ie.show(I,D,{type:"text",placement:"top",closeOnClick:!1}),C.set($,G),V=G}}},onMouseLeaveForOverflowText:(P,$)=>{const D=C.get($);D&&(Ie.hide(D),D===V&&(V=null))},onMouseOverForTip:(P,$)=>{const D=P.currentTarget;D&&(V&&Ie.hide(V),V=Ie.show(D,$,{type:"text",placement:"top",closeOnClick:!1}))},onMouseLeaveForTip:P=>{V&&(Ie.hide(V),V=null)}}}}),Cc={class:"fox-group-setting"},Nc={class:"fox-group-setting__header"},Ec={class:"fox-group-setting__body"},kc={class:"fox-group-setting__body-list","data-role":"container"},Pc=["data-index","draggable"],Ic=["onMouseover","onMouseleave"],Oc={class:"tools-item"};function Vc(e,t,o,l,r,a){const i=n.resolveComponent("FoxCheckbox"),u=n.resolveComponent("FoxButton"),s=n.resolveComponent("DragIcon"),c=n.resolveComponent("Download"),d=n.resolveComponent("FoxIcon"),m=n.resolveComponent("FoxCheckboxGroup"),p=n.resolveComponent("FoxPopover");return n.openBlock(),n.createBlock(p,n.mergeProps(e.attrs,{placement:e.popoverPlacement,width:e.popoverWidth,onShow:e.onShow,trigger:"click","popper-class":"fox-group-setting__popper"}),{reference:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),default:n.withCtx(()=>[n.createElementVNode("div",Cc,[n.createElementVNode("div",Nc,[n.createVNode(i,{modelValue:e.isCheckAll,"onUpdate:modelValue":t[0]||(t[0]=y=>e.isCheckAll=y),indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title),1)]),_:1},8,["modelValue","indeterminate","onChange"]),n.createVNode(u,{onClick:e.handleReset,link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.resetText),1)]),_:1},8,["onClick"])]),n.createElementVNode("div",Ec,[n.createVNode(m,{modelValue:e.checkedValue,"onUpdate:modelValue":t[10]||(t[10]=y=>e.checkedValue=y),onChange:e.handleCheckChange},{default:n.withCtx(()=>[n.createElementVNode("div",kc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.itemPropertyList,y=>(n.openBlock(),n.createElementBlock("div",{key:y.prop,class:"fox-group-setting__body-row","data-role":"row","data-index":y.sortIndex,draggable:e.isDraggble(e.itemPropertyList),onDragstart:t[5]||(t[5]=(...g)=>e.onDragStart&&e.onDragStart(...g)),onDragend:t[6]||(t[6]=(...g)=>e.onDragEnd&&e.onDragEnd(...g)),onDrop:t[7]||(t[7]=(...g)=>e.onDrop&&e.onDrop(...g)),onDragover:t[8]||(t[8]=(...g)=>e.onDragOver&&e.onDragOver(...g)),onDragleave:t[9]||(t[9]=(...g)=>e.onDragLeave&&e.onDragLeave(...g))},[e.isDraggble(e.itemPropertyList)?(n.openBlock(),n.createBlock(s,{key:0,class:"icon-item"})):n.createCommentVNode("",!0),n.createVNode(i,{class:"checkbox-item",label:y.prop},{default:n.withCtx(()=>[n.createElementVNode("span",{onMouseover:g=>e.onMouseOverForOverflowText(g,y.prop,y.label),onMouseleave:g=>e.onMouseLeaveForOverflowText(g,y.prop),class:"checkbox-item__label",style:n.normalizeStyle(e.checkboxLabelStyle)},n.toDisplayString(y.label),45,Ic)]),_:2},1032,["label"]),n.createElementVNode("div",Oc,[n.createVNode(d,{onClick:g=>e.toTop(y.sortIndex),onMouseover:t[1]||(t[1]=g=>e.onMouseOverForTip(g,e.toTopText)),onMouseleave:t[2]||(t[2]=g=>e.onMouseLeaveForTip(g)),class:"is-reverse"},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"]),n.createVNode(d,{onClick:g=>e.toBottom(y.sortIndex),onMouseover:t[3]||(t[3]=g=>e.onMouseOverForTip(g,e.toBottomText)),onMouseleave:t[4]||(t[4]=g=>e.onMouseLeaveForTip(g))},{default:n.withCtx(()=>[n.createVNode(c)]),_:2},1032,["onClick"])])],40,Pc))),128))])]),_:1},8,["modelValue","onChange"])])])]),_:3},16,["placement","width","onShow"])}const yl=Le($c,[["render",Vc]]),Dc=["aria-labelledby"],Fc=n.createElementVNode("path",{d:"M960 572.8H64c-25.6 0-48-22.4-48-48s22.4-48 48-48h896c25.6 0 48 22.4 48 48s-22.4 48-48 48zm-448 448c-25.6 0-48-22.4-48-48v-896c0-25.6 22.4-48 48-48s48 22.4 48 48v896c0 25.6-22.4 48-48 48z",fill:"currentColor","fill-opacity":"0.9"},null,-1),Rc=[Fc],Ac=n.defineComponent({__name:"Uploader",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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Rc,14,Dc))}}),Mc=["aria-labelledby"],Lc=n.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),Bc=[Lc],_c=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Bc,14,Mc))}}),qc=["aria-labelledby"],jc=n.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),zc=[jc],bl=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},zc,14,qc))}}),Hc=["aria-labelledby"],Kc=n.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),Wc=[Kc],Yc=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1026 1024","aria-labelledby":e.name,role:"presentation"},Wc,14,Hc))}}),Gc=["aria-labelledby"],Uc=n.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),Xc=[Uc],Zc=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},Xc,14,Gc))}}),Jc=["aria-labelledby"],Qc=n.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),ef=[Qc],tf=n.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,l=t,r=s=>{l("click",s)},a=s=>{if(s)return isNaN(Number(s))?String(s):s+"px"},i=n.computed(()=>{const s="fox-icon";return{[s]:!0,[s+"-"+o.name]:o.name,[o.class]:!!o.class}}),u=n.computed(()=>{const s={};return s.height=a(o.height)??a(o.size),s.width=a(o.width)??a(o.size),s.color=o.color,s});return(s,c)=>(n.openBlock(),n.createElementBlock("svg",{class:n.normalizeClass(i.value),style:n.normalizeStyle(u.value),onClick:r,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024","aria-labelledby":e.name,role:"presentation"},ef,14,Jc))}}),nf={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}},po=(e,t)=>t[e.textKey],xt=(e,t)=>t[e.valueKey],lf=(e,t)=>t[e.visibleKey],vo=(e,t)=>t[e.disabledKey],of=(e,t)=>{const o=t[e.doitKey];return ue(o)},rf=(e,t)=>{const o=t[e.numKey];return o==null?null:xe(t[o])},yo=(e,t,o)=>{const l=e.itemOptions;return typeof l=="function"?l(t,o):l||null};function af(e,t,o,l=!1){return{props:{...nf},emits:["update:modelValue","change"],setup(r,{slots:a,emit:i}){const u=n.computed(()=>{const P={};return P[`${e}`]=!0,P}),s=n.computed(()=>{const P={};return P[`${e}__titles`]=!0,P[`${r.direction}`]=!0,r.align==="left"&&(P.left=!0),r.scroll===!0&&(P.scrollable=!0),r.shape&&(P[`${r.shape}`]=!0),P}),c=n.computed(()=>({})),d=n.computed(()=>{if(!r.gutter)return 0;const P=me(r.gutter);return P<=0?0:P}),m=n.ref(r.modelValue);n.watch(()=>r.modelValue,P=>{m.value!==P&&(m.value=P,A(!1))});const p=n.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),y=n.computed(()=>{const P={};return f.value||(P.display="none"),P}),g=n.ref(),f=n.ref(!1),h=()=>{const P=!f.value;O(P)},O=P=>{const $=P;$?(f.value=$,setTimeout(()=>{p.value["fox-tabs-bar__popup--show"]=!0,p.value["fox-tabs-bar__popup--hide"]=!1},0)):(p.value["fox-tabs-bar__popup--show"]=!1,p.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},S=n.ref(),T=n.ref([]),B=(P,$)=>{T.value[$]=P},q=P=>$=>{B($,P)},M=(P,$)=>{const D=S.value,I=T.value;if(!D||!I||!I[P])return;const x=I[P];let j=0;r.direction==="vertical"?j=x.offsetTop-(D.offsetHeight-x.offsetHeight)/2:j=x.offsetLeft-(D.offsetWidth-x.offsetWidth)/2,L(D,j,$?0:.3,r.direction)},L=(P,$,D,I)=>{let x=0;const j=I==="horizontal"?P.scrollLeft:P.scrollTop,G=D===0?1:Math.round(D*1e3/16);function te(){I==="horizontal"?P.scrollLeft+=($-j)/G:P.scrollTop+=($-j)/G,++x<G&&zn(te)}te()},R=(P,$)=>{const D=xt(r,P),I={};return I[`${e}__titles-item`]=!0,I.disabled=vo(r,P),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0),r.ellipsis&&(I.ellipsis=!0),$&&($.class&&(I[`${$.class}`]=!0),$.disabled===!0&&(I.disabled=$.disabled)),I},w=(P,$)=>{const D={};if(d.value>0){const I=Math.abs(d.value/2);r.direction==="vertical"?(D["margin-top"]=`${I}px`,D["margin-bottom"]=`${I}px`):(D["margin-left"]=`${I}px`,D["margin-right"]=`${I}px`)}return $&&$.style&&Object.assign(D,$.style),D},N=(P,$)=>`${xt(r,P)??$}`,v=(P,$)=>{const D=xt(r,P),I={};I[`${e}__popup-item`]=!0,I.disabled=vo(r,P),I.active=D===m.value,r.shape&&(I[`${r.shape}`]=!0);const x=yo(r,P,$);return x&&x.disabled===!0&&(I.disabled=x.disabled),I},_=n.computed(()=>(r.data??[]).filter($=>lf(r,$)!==!1)),Z=(P,$)=>{const D=xt(r,P);if(m.value==D)return;const I=()=>{m.value=D,r.scroll&&M($,!1),i("update:modelValue",D),i("change",P,$)};if(typeof r.beforeChange=="function"){const x=r.beforeChange(P,$);zo(x)?x.then(j=>{j!==!1&&I()}).catch(()=>{I()}):x!==!1&&I()}else I()},F=(P,$)=>function(){Z(P,$)},C=(P,$)=>{Z(P,$),O(!1)},V=(P,$)=>function(){C(P,$)},A=P=>{if(!Array.isArray(r.data)||!r.scroll)return;const $=r.data.findIndex(D=>xt(r,D)===m.value);$!==-1&&M($,P)};n.watch(()=>r.data,()=>{setTimeout(A,0)}),n.onMounted(()=>{A(!0)});const W=(P,$)=>{if(a.item)return a.item({item:P,index:$});const D=yo(r,P,$),I=[];if(a.text){const te=a.text({item:P,index:$});I.push(te)}else{const te=[];if(D?.doit===!0||of(r,P)){const z={class:[`${e}__titles-item-tip`,"doit"]},U=n.h("view",z);te.push(U)}const Y=D?.num??rf(r,P);if(Y){let z="";const U=xe(Y);U>=100?z="99+":z=`${U}`;const k={class:[`${e}__titles-item-tip`,"num"]},H=n.h("view",k,[z]);te.push(H)}const K={class:`${e}__titles-item-text`};te.push(po(r,P));const E=n.h("view",K,te);I.push(E)}const x={class:`${e}__titles-item-line`},j=n.h("view",x);I.push(j);const G={ref:q($),class:R(P,D),style:w(P,D),key:N(P,$),onClick:F(P,$)};return n.h("view",G,I)},X=()=>{const P=a.default?a.default():[];if(P.length===0)for(let D=0;D<_.value.length;D++){const I=_.value[D],x=W(I,D);P.push(x)}const $={ref:S,class:s.value,style:c.value};return n.h("view",$,P)},Q=()=>{let P=null;a.navigation?P=a.navigation():P=n.h(o);const $={class:`${e}__navigation`,onClick:h};return n.h("view",$,[P])},ne=()=>{const P=[];for(let D=0;D<_.value.length;D++){const I=_.value[D];let x=null;a.popupItem?x=a.popupItem({item:I,index:D}):x=po(r,I);const j={class:v(I,D),key:N(I,D),onClick:V(I,D)},G=n.h("view",j,[x]);P.push(G)}const $={class:p.value,style:y.value};return n.h("view",$,P)};return()=>{const P=[],$=X();if(P.push($),r.showQuickNavigation){const I=Q();P.push(I);const x=ne();P.push(x)}const D={class:u.value};return n.h("view",D,P)}}}}const{create:sf,componentName:uf,scope:cf}=ie("tabs-bar"),xl=sf(af(uf,cf,_c,!1)),Br=Symbol("TabsStatesKey"),ff={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function df(e,t,o=!1){return{props:{...ff},emits:["update:modelValue","change"],setup(l,{emit:r,slots:a}){const i=n.shallowRef([]),u={current:n.ref(l.modelValue??""),direction:n.ref(l.direction),tabWidth:n.ref(-1),tabHeight:n.ref(-1),add:f=>{const h={name:f};u.current.value===f&&(h.loaded=!0),i.value.push(h),n.triggerRef(i)},remove:f=>{const h=i.value.findIndex(O=>O.name===f);h!==-1&&i.value.splice(h,1)},isLoaded:f=>{if(!l.lazy)return!0;const h=i.value.findIndex(O=>O.name===f);return h!==-1?u.current.value?i.value[h].loaded??!1:h===0:!1}};n.provide(Br,u);const s=f=>{const h=i.value.findIndex(O=>O.name===f);h!==-1&&(i.value[h].loaded=!0,n.triggerRef(i))};n.watch([()=>l.modelValue,()=>l.direction],([f,h])=>{u.current.value!==f&&(u.current.value=f??"",s(f??"")),u.direction.value!==h&&(u.direction.value=h)});const c=n.ref(null),d=n.ref(null),m=n.computed(()=>({[e]:!0,[`${l.direction}`]:!0}));let p=!0;const y=n.computed(()=>{const f={},h=i.value.length;if(h<=0)return f;const O=i.value.findIndex(S=>S.name===u.current.value);return u.direction.value==="vertical"?u.tabHeight.value>0&&(f.height=`${h*u.tabHeight.value}px`,O!==-1&&(f.transform=`translate(0, -${O*u.tabHeight.value}px)`)):u.tabWidth.value>0&&(f.width=`${h*u.tabWidth.value}px`,O!==-1&&(f.transform=`translate(-${O*u.tabWidth.value}px, 0)`)),p&&(p=!1,f.transition="transform 0s ease"),f});let g=null;return n.onMounted(()=>{if(!c.value)return;const f=()=>{const h=en(c.value);u.tabWidth.value=h.width,u.tabHeight.value=h.height};window.ResizeObserver&&(g=new window.ResizeObserver(f),g.observe(c.value)),f()}),n.onBeforeUnmount(()=>{g&&(g.disconnect(),g=null)}),()=>{const f={class:`${e}__panes`,style:y.value,ref:d},h=n.h("view",f,[a?.default?.()]),O={class:m.value,ref:c};return n.h("view",O,[h])}}}}const{create:hf,componentName:mf,scope:gf}=ie("tabs-container"),wl=hf(df(mf,gf,!1)),pf={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function vf(e,t,o){return{props:{...pf},setup(l,{emit:r,slots:a}){const i=n.inject(Br);n.onMounted(()=>{i.add(l.paneKey)}),n.onBeforeUnmount(()=>{i.remove(l.paneKey)});const u=n.computed(()=>{const c={};return i.direction.value==="vertical"&&i.tabHeight.value>0?c.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(c.width=`${i.tabWidth.value}px`),c}),s=n.computed(()=>l.loaded!=null?ue(l.loaded):i.isLoaded(l.paneKey));return()=>{let c=[];if(s.value)c=a?.default?.()??[];else if(a.empty)c=a.empty();else{const m={class:`${e}__empty-icon`},p=l.emptyIcon??o,y=n.h(p,m),g={class:`${e}__empty-text`},f=l.emptyText??"Loading",h=n.h("view",g,[f]),O={class:`${e}__empty`},S=n.h("view",O,[y,h]);c.push(S)}const d={class:`${e}`,style:u.value};return n.h("view",d,c)}}}}const{create:yf,componentName:bf,scope:xf}=ie("tabs-pane"),Sl=yf(vf(bf,xf,bl)),wf={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:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Sf(e,t){return typeof e.textKey=="string"&&e.textKey.length>0?t[e.textKey]:t.text}function bo(e,t){return typeof e.valueKey=="string"&&e.valueKey.length>0?t[e.valueKey]:t.value}function xo(e,t){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?t[e.disabledKey]:t.disabled??null}function Tf(e,t){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?t[e.visibleKey]:t.visible??null}function $n(e,t){return typeof e.statusKey=="string"&&e.statusKey.length>0?t[e.statusKey]:t.statusKey??null}function wo(e,t){return typeof e.doitKey=="string"&&e.doitKey.length>0?t[e.doitKey]:t.doitKey??null}function So(e,t){return typeof e.labelKey=="string"&&e.labelKey.length>0?t[e.labelKey]:t.labelKey??null}function Cn(e,t,o){return typeof e.itemOptions=="function"?e.itemOptions(t,o):e.itemOptions}class $f{proxy;constructor(t){this.proxy=t}async load(t,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await Reflect.apply(o,null,[l]);const r=qe(this.proxy,t);return r===null?(console.error(`${t} component not found api function`),[]):(Ge(l)&&n.isReactive(l)&&(l=n.toRaw(l)),await Reflect.apply(r,null,[o,l]))}}function Cf(){const e=n.getCurrentInstance();return new $f(e.proxy)}function Nf(e,t,o,l){return{props:{...wf},emits:["update:modelValue","change","loaded-data"],setup(r,{slots:a,emit:i}){const u=e,s=Cf(),c=n.ref([]),d=n.computed(()=>c.value.filter($=>Tf(r,$)!==!1)),m=n.ref(-1),p=()=>{const $=r.modelValue,D=d.value.findIndex(I=>bo(r,I)===$);m.value!==D&&(m.value=D,r.scroll&&ne(D))};n.watch([()=>r.modelValue,d],()=>{p()});const y=$=>m.value===$,g=$=>{if($<0&&$>=d.value.length)return!1;const D=d.value[$],x=(Cn(r,D,$)??{}).status??$n(r,D);return y($)||x},f=n.computed(()=>{const $={[u]:!0};return r.mode?$[`is-${r.mode}`]=!0:r.direction&&($[`is-${r.direction}`]=!0),r.scroll&&($["is-scroll"]=!0),$}),h=n.computed(()=>({})),O=($,D,I,x,j)=>{const G={[`${u}__step`]:!0};return j&&(G[`${j}`]=!0),G[`${S.value}`]=!0,x&&(G["is-doit"]=!0),$===m.value?G["is-active"]=!0:D==="done"?G["is-done"]=!0:D==="error"?G["is-error"]=!0:D==="half"?G["is-half"]=!0:I?G["is-disabled"]=!0:G["is-normal"]=!0,G},S=n.computed(()=>{if(r.mode==="simple")return"start";let $=r.align;return $||(r.direction==="vertical"?$="start":$="center"),$}),T=($,D={})=>{const I={...D};return S.value==="start"&&$===d.value.length-1?I.flex="0 0 auto":r.step?r.direction==="vertical"?I.height=r.step:I.width=r.step:I.flex="1 1 100%",I},B=($,D)=>{let I={};if(D<d.value.length-1){const x=D+1;g(D)&&g(x)?r.direction==="vertical"?I.height="100%":I.width="100%":I.opacity="0"}return I},q=$=>d.value.length-1===$,M=($,D)=>{if(r.clickNavigatePolicy==="disabled"||(r.clickNavigatePolicy==="only-back"||r.clickNavigatePolicy==="only-back-reset")&&D>m.value||m.value===D)return;const I=m.value,x=D;m.value=D,r.scroll&&ne(D);const j=bo(r,$);i("update:modelValue",j);const G={fromIndex:I,currentIndex:x,item:$,items:d.value,clickNavigatePolicy:r.clickNavigatePolicy};i("change",j,G)},L=n.ref(!0),R=async($,D)=>{try{const I=await s.load("stesbar",$,D);Array.isArray(I)&&(c.value=I),L.value=!1}catch(I){console.error("[FoxUI] Load StepsBar Data Fail",I),c.value=[]}setTimeout(()=>{i("loaded-data")},250)};n.watch([()=>r.data,()=>r.params],async([$,D])=>{$&&R($,D)},{immediate:!0});const w=($,D,I,x,j)=>{let G=null;if(a.icon)G=a.icon({item:$,index:D,status:x});else if(x==="done"){const Y={};r.iconSize&&(Y.width=r.iconSize,Y.height=r.iconSize);const K=r.icon??o;G=n.h(K,Y)}else{const Y=I??`${D+1}`;G=n.h("span",{},[Y])}const te={class:"fox-steps-bar__icon",onClick:()=>{j||M($,D)}};return n.h("view",te,[G])},N=($,D,I)=>{const x=n.h("i",{class:"fox-steps-bar__line-inner",style:B($,D)});return n.h("view",{class:"fox-steps-bar__line"},[x])},v=()=>{let $=null;if(a.markIcon)$=a.markIcon();else{const I={};r.iconSize&&(I.width=r.markIconSize,I.height=r.markIconSize);const x=r.markIcon??l;$=n.h(x,I)}return n.h("view",{class:"fox-steps-bar__mark"},[$])},_=($,D,I,x,j)=>{const G=[];if(!q(D)){const K=N($,D);G.push(K)}const te=w($,D,I,x,j);G.push(te);const Y={class:"fox-steps-bar__head"};return n.h("view",Y,G)},Z=($,D,I,x)=>{let j=null;a.main?j=a.main({item:$,index:D,status:I}):j=Sf(r,$);const G={class:"fox-steps-bar__main",onClick:()=>{x||M($,D)}};return n.h("view",G,[j])},F=($,D,I)=>{let x=null;if(a.sub){x=a.sub({item:$,index:D,status:I});const j={class:"fox-steps-bar__sub"};return n.h("view",j,[x])}return null},C=($,D)=>{const I=Cn(r,$,D)??{},x=I.status??$n(r,$);let j=xo(r,$);I.disabled===!0&&(j=!0),r.disabled===!0&&(j=!0);const G=I.label??So(r,$),te=[],Y=w($,D,G,x,j);Y&&te.push(Y);const K=Z($,D,x,j);if(K&&te.push(K),!q(D)){const ee=N($,D);ee&&te.push(ee)}const E=n.h("view",{class:"fox-steps-bar__head"},te),z=I.class,U=I.style??{};let k=wo(r,$);I.doit===!0&&(k=!0);const H={ref:Q(D),class:O(D,x,j,k,z),style:T(D,U)};return n.h("view",H,[E])},V=($,D)=>{const I=Cn(r,$,D)??{},x=I.status??$n(r,$);let j=xo(r,$);I.disabled===!0&&(j=!0),r.disabled===!0&&(j=!0);const G=I.label??So(r,$),te=[],Y=r.layout;for(let k of Y)if(k==="head"){const H=_($,D,G,x,j);te.push(H)}else if(k==="main"){const H=Z($,D,x,j);te.push(H)}else if(k==="sub"){const H=F($,D,x);te.push(H)}else if(k==="mark"){const H=v();te.push(H)}const K=I.class,E=I.style??{};let z=wo(r,$);I.doit===!0&&(z=!0);const U={ref:Q(D),class:O(D,x,j,z,K),style:T(D,E)};return n.h("view",U,te)},A=n.ref(),W=n.ref([]),X=($,D)=>{W.value[D]=$},Q=$=>D=>{X(D,$)},ne=($,D)=>{const I=A.value,x=W.value;if(!I||!x||!x[$])return;const j=x[$];let G=0;r.direction==="vertical"?G=j.offsetTop-(I.offsetHeight-j.offsetHeight)/2:G=j.offsetLeft-(I.offsetWidth-j.offsetWidth)/2,P(I,G,.3,r.direction)},P=($,D,I,x)=>{let j=0;const G=x==="horizontal"?$.scrollLeft:$.scrollTop,te=Math.round(I*1e3/16);function Y(){x==="horizontal"?$.scrollLeft+=(D-G)/te:$.scrollTop+=(D-G)/te,++j<te&&zn(Y)}Y()};return()=>{const $=[];if(r.mode==="simple")for(let I=0;I<d.value.length;I++){const x=d.value[I],j=C(x,I);$.push(j)}else for(let I=0;I<d.value.length;I++){const x=d.value[I],j=V(x,I);$.push(j)}const D={ref:A,class:f.value,style:h.value};return n.h("view",D,$)}}}}const{componentName:Ef,create:kf,scope:Pf}=ie("steps-bar"),Tl=kf(Nf(Ef,Pf,Zc,tf)),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,l){n.provide(If,!0);const r={};n.provide(Of,r);const a=s=>{typeof r.beforeClose=="function"&&r.beforeClose()},i=n.ref(!0),u=s=>{i.value=s};return()=>{const c={...l.attrs,title:o.title,draggable:o.draggable,modelValue:i.value,"onUpdate:modelValue":u,"append-to-body":o.appendToBody,"close-on-click-modal":o.closeOnClickModal,"close-on-press-escape":o.closeOnPressEscape,"before-close":a},d={};if(typeof l.slots.default=="function"){const m=l.slots.default();d.default=()=>m}return n.h(b.ElDialog,c,d)}}}}const{componentName:em,create:Df,scope:tm}=ie("dialog-item"),$l=Df(Vf());let wt=0;const To="fox-overflow-hidden",$o=()=>it?document.body:{classList:[]},Ff=e=>[()=>{if(e())try{!wt&&$o().classList.add(To),wt++}catch{}},()=>{if(e()&&wt)try{wt--,!wt&&$o().classList.remove(To)}catch{}}],Rf={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:Af,create:Mf}=ie("overlay"),Lf=Mf({props:{...Rf},emits:["click","update:visible"],setup(e,{emit:t}){const[o,l]=Ff(()=>e.lockScroll),r=n.computed(()=>({[Af]:!0,[e.overlayClass]:!0})),a=n.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return n.watch(()=>e.visible,u=>{u?o():l()}),{classes:r,style:a,onClick:u=>{t("click",u),e.closeOnClickOverlay&&t("update:visible",!1)}}}});function Bf(e,t,o,l,r,a){return n.openBlock(),n.createBlock(n.Transition,{name:"overlay-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),onClick:t[0]||(t[0]=n.withModifiers((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:n.normalizeStyle(e.style)},[n.renderSlot(e.$slots,"default")],6),[[n.vShow,e.visible]])]),_:3})}const cn=Le(Lf,[["render",Bf]]),_f={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:{}}},_r=2e3;let Co=_r;const qf=(e,t)=>({components:t,props:{..._f},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(o,{emit:l}){const r=n.reactive({zIndex:o.zIndex,showSlot:!0,closed:o.closeable}),a=n.computed(()=>({[e]:!0,round:o.round,[`fox-popup--${o.position}`]:!0,[`fox-popup--${o.position}--safebottom`]:o.position==="bottom"&&o.safeAreaInsetBottom,[o.popClass]:!0})),i=n.computed(()=>({zIndex:r.zIndex,transitionDuration:`${o.duration}s`,...o.style})),u=n.computed(()=>o.transition?o.transition:`fox-popup-slide-${o.position}`),s=()=>{o.zIndex!==_r&&(Co=Number(o.zIndex)),l("update:visible",!0),r.zIndex=++Co,o.destroyOnClose&&(r.showSlot=!0),l("open")},c=()=>{l("update:visible",!1),l("close"),o.destroyOnClose&&setTimeout(()=>{r.showSlot=!1},+o.duration*1e3)},d=f=>{l("click-pop",f)},m=f=>{f.stopPropagation(),l("click-close-icon",f),l("update:visible",!1)},p=f=>{l("click-overlay",f),o.closeOnClickOverlay&&l("update:visible",!1)},y=f=>{l("opend",f)},g=f=>{l("closed",f)};return n.watch(()=>o.visible,f=>{o.visible?s():c()}),n.watch(()=>o.closeable,f=>{r.closed=f}),{...n.toRefs(r),popStyle:i,transitionName:u,classes:a,onClick:d,onClickCloseIcon:m,onClickOverlay:p,onOpened:y,onClosed:g}}}),{componentName:jf,create:zf}=ie("popup"),Hf=zf(qf(jf,{FoxOverLay:cn,Close:Yc}));function Kf(e,t,o,l,r,a){const i=n.resolveComponent("FoxOverLay"),u=n.resolveComponent("Close");return n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(n.openBlock(),n.createBlock(i,n.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"])):n.createCommentVNode("",!0),n.createVNode(n.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.popStyle),onClick:t[1]||(t[1]=(...s)=>e.onClick&&e.onClick(...s))},[e.showSlot?n.renderSlot(e.$slots,"default",{key:0}):n.createCommentVNode("",!0),e.closed?(n.openBlock(),n.createElementBlock("view",{key:1,onClick:t[0]||(t[0]=(...s)=>e.onClickCloseIcon&&e.onClickCloseIcon(...s)),class:n.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[n.renderSlot(e.$slots,"close-icon",{},()=>[n.createVNode(u)])],2)):n.createCommentVNode("",!0)],6),[[n.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const Cl=Le(Hf,[["render",Kf]]),{create:Wf}=ie("toast"),Yf=Wf({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 l=n.reactive({mounted:!1});n.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},a=()=>{l.mounted=!1},i=()=>{r(),e.duration&&(o=setTimeout(()=>{a()},e.duration))},u=()=>{e.closeOnClickOverlay&&(a(),t("close"))};e.duration&&i(),n.watch(()=>e.duration,y=>{y&&i()});const s=n.computed(()=>e.type!=="text"?!0:!!e.icon),c=()=>{const y=me(e.iconSize);return n.h(e.icon,{width:y,height:y,color:e.iconColor})},d=n.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":s.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=n.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:a,clickCover:u,renderIcon:c,hasIcon:s,toastBodyClass:d,toastIconWrapperClass:m,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Gf={key:1,class:"fox-toast-title"},Uf=["innerHTML"];function Xf(e,t,o,l,r,a){return n.openBlock(),n.createBlock(n.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("view",{class:n.normalizeClass(e.toastBodyClass),style:n.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:t[0]||(t[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[n.createElementVNode("view",{class:"fox-toast-inner",style:n.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(n.openBlock(),n.createElementBlock("view",{key:0,class:n.normalizeClass(e.toastIconWrapperClass)},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.renderIcon())))],2)):n.createCommentVNode("",!0),e.title?(n.openBlock(),n.createElementBlock("div",Gf,n.toDisplayString(e.title),1)):n.createCommentVNode("",!0),n.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Uf)],4)],6),[[n.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Nl=Le(Yf,[["render",Xf]]),Zf={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Jf=(e,t,o)=>({props:{...Zf},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(l,{slots:r}){const{emitEvent:a}=cr(),{toLocaleRefs:i}=Me.useFoxI18n(t),u=i(l,["placeholder"]),s=n.reactive({active:!1}),c=n.computed(()=>({background:l.background})),d=n.computed(()=>({background:l.inputBackground})),m=w=>{let v=w.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),a("update:modelValue",v,w),a("change",v,w)},p=n.ref({}),y=w=>{let v=w.target.value;s.active=!0,p.value=l.focusStyle,a("focus",v,w)},g=w=>{setTimeout(()=>{s.active=!1},0);let v=w.target.value;l.maxLength&&v.length>Number(l.maxLength)&&(v=v.slice(0,Number(l.maxLength))),p.value={},a("blur",v,w)},f=w=>{a("update:modelValue","",w),a("change","",w),a("clear","")},h=n.computed(()=>String(l.modelValue).length>0),O=n.computed(()=>{const w={};return h.value||(w.display="none"),w}),S=()=>{a("search",l.modelValue)},T=w=>{a("keyup-input",w),w.key.toLocaleUpperCase()==="ENTER"&&S()},B=w=>{a("click-input",w)},q=w=>{a("click-left-icon",l.modelValue,w)},M=n.computed(()=>({textAlign:l.inputAlign})),L=n.ref(null);n.onMounted(()=>{l.autofocus&&L.value.focus()});const R=()=>{const w=[];if(r.leftin){const F={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:q},C=n.h("view",F,[r.leftin()]);w.push(C)}const N={ref:L,class:[`${e}__input-inner`],style:M.value,type:l.inputType,maxlengt:l.maxLength,placeholder:u.placeholder.value,value:l.modelValue,disabled:l.disabled,readonly:l.readonly,onClick:B,onInput:m,onFocus:y,onBlur:g,onkeyup:T},v=n.h("input",N);w.push(v);const _=[];if(l.clearable){const F={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:O.value,onClick:f},C=r?.clear?.()??l.clearIcon??o,V=n.h("view",F,[n.h(C)]);_.push(V)}if(r.rightin){const F={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},C=n.h("view",F,[r.rightin()]);_.push(C)}if(_.length>0){const F={class:`${e}__input-inner-right`},C=n.h("view",F,_);w.push(C)}const Z={class:[`${e}__search-input`,`${l.shape}`],style:{...d.value,...p.value}};return n.h("view",Z,w)};return()=>{const w=[];if(l.label){const _={class:`${e}__search-label`},Z=n.h("span",_,[l.label]);w.push(Z)}if(r.leftout){const _={class:[`${e}__search-icon`,`${e}__left-search-icon`]},Z=n.h("view",_,[r.leftout()]);w.push(Z)}const N=R();if(w.push(N),r.rightout){const _={class:[`${e}__search-icon`,`${e}__right-search-icon`]},Z=n.h("view",_,[r.rightout()]);w.push(Z)}const v={class:`${e}`,style:c.value};return n.h("view",v,w)}}}),{componentName:Qf,create:ed,scope:td}=ie("searchbar"),El=ed(Jf(Qf,td,Ne.CircleClose)),nd=/scroll|auto|overlay/i,qr=window;function ld(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function od(e,t=qr){let o=e;for(;o&&o!==t&&ld(o);){const{overflowY:l}=window.getComputedStyle(o);if(nd.test(l))return o;o=o.parentNode}return t}function jr(e,t=qr){const o=n.ref();return n.onMounted(()=>{e.value&&(o.value=od(e.value,t))}),o}const zr=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,rd={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 ad(e,t,o){return{props:{...rd},emits:["scroll-change","load-more","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Me.useFoxI18n(t),u=i(l,["pullText","loadText","loadMoreText"]),s=n.ref(),c=jr(s),d=n.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),m=n.computed(()=>({[e]:!0})),p=S=>S?S.offsetTop+p(S.offsetParent):0,y=()=>{let S=0,T=0,B="down";if(c.value==window){const q=zr();s.value&&(S=p(s.value)+s.value.offsetHeight-q-window.innerHeight),T=q}else{const{scrollHeight:q,clientHeight:M,scrollTop:L}=c.value;S=q-M-L,T=L}return d.beforeScrollTop>T?B="up":B="down",d.beforeScrollTop=T,r("scroll-change",T),S<=l.threshold&&B=="down"},g=()=>{Mo(()=>{if(!y()||!l.hasMore||d.isInfiniting)return!1;d.isInfiniting=!0,r("update:modelValue",!0),n.nextTick(()=>r("load-more"))})},f=()=>{c.value&&c.value.addEventListener("scroll",g,l.useCapture)},h=()=>{c.value&&c.value.removeEventListener("scroll",g,l.useCapture)};n.onMounted(()=>{f(),l.immediate&&g()}),n.onUnmounted(()=>{h()});const O=n.ref(!1);return n.onActivated(()=>{O.value&&(O.value=!1,f())}),n.onDeactivated(()=>{O.value=!0,h()}),n.watch(()=>l.modelValue,S=>{S||(d.isInfiniting=!1)}),()=>{const S={class:"fox-infinite__container"},T=n.h("view",S,[a?.default?.()]),B=[];if(d.isInfiniting){let R=a?.loading?.()??null;if(!R){let v=a?.loadingIcon?.()??null;if(!v){const F={class:["fox-infinite__bottom-box__img"]};v=n.h(o,F)}const _={class:"fox-infinite__bottom-box__text"},Z=n.h("view",_,[u.loadText.value]);R=[v,Z]}const w={class:"fox-infinite__bottom-box"},N=n.h("view",w,R);B.push(N)}else if(!l.hasMore){let R=a?.finished?.()??null;if(!R){const w={class:"fox-infinite__bottom-tips"};R=n.h("view",w,[u.loadMoreText.value]),B.push(R)}}const q={class:"fox-infinite__bottom"},M=n.h("view",q,B),L={class:m.value,ref:s};return n.h("view",L,[T,M])}}}}const{componentName:id,create:sd,scope:ud}=ie("infinite-loading"),kl=sd(ad(id,ud,bl)),No=10;function Hr(e,t){return e>t&&e>No?"horizontal":t>e&&t>No?"vertical":""}function fn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function dn(){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",l=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const c=i.touches[0];e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}else{const s=i;e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Hr(e.offsetX,e.offsetY))},start:i=>{if(l(),i.touches){const c=i.touches[0];e.startX=c.clientX,e.startY=c.clientY}else{const s=i;e.startX=s.clientX,e.startY=s.clientY}e.startTime=Date.now()},reset:l,isVertical:t,isHorizontal:o,state:e}}function cd(){const e=n.ref(0),t=n.ref(0),o=n.ref(0),l=n.ref(0),r=n.ref(0),a=n.ref(0),i=n.ref(0),u=n.ref(0),s=n.ref(0),c=n.ref(0),d=n.ref(""),m=()=>d.value==="vertical",p=()=>d.value==="horizontal",y=()=>{i.value=0,u.value=0,s.value=0,c.value=0,d.value="",o.value=0};return{move:h=>{if(h.touches){const T=h.touches[0];i.value=T.clientX-e.value,u.value=T.clientY-t.value,r.value=T.clientX,a.value=T.clientY}else{const S=h;i.value=S.clientX-e.value,u.value=S.clientY-t.value,r.value=S.clientX,a.value=S.clientY}s.value=Math.abs(i.value),c.value=Math.abs(u.value),l.value=Date.now()-o.value,d.value||(d.value=Hr(s.value,c.value))},start:h=>{if(y(),h.touches){const T=h.touches[0];e.value=T.clientX,t.value=T.clientY}else{const S=h;e.value=S.clientX,t.value=S.clientY}o.value=Date.now()},reset:y,startX:e,startY:t,startTime:o,duration:l,moveX:r,moveY:a,deltaX:i,deltaY:u,offsetX:s,offsetY:c,direction:d,isVertical:m,isHorizontal:p}}const fd={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}},dd=(e,t,o)=>({props:{...fd},emits:["change","refresh","update:modelValue"],setup(l,{emit:r,slots:a}){const{toLocaleRefs:i}=Me.useFoxI18n(t),u=i(l,["pullingText","loosingText","loadingText"]),s=dn(),c=n.ref(),d=jr(c),m=n.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),p=n.computed(()=>({[e]:!0})),y=n.computed(()=>{switch(m.status){case"pulling":return a.pulling?"":u.pullingText.value;case"loosing":return a.loosing?"":u.loosingText.value;case"loading":return a.loading?"":u.loadingText.value;default:return""}}),g=n.computed(()=>({transitionDuration:`${l.duration}s`,transform:m.distance?`translate3d(0,${m.distance}px, 0)`:""})),f=n.computed(()=>{const L={};return l.headHeight!=50&&(L.height=Ce(l.headHeight)),L}),h=L=>{const R=+(l.pullDistance||l.headHeight);let w=L;return L>R&&(L<R*2?w=(L+R)/2:w=R+L/4),Math.round(w)},O=(L,R)=>{const w=+(l.pullDistance||l.headHeight);m.distance=L,R?m.status="loading":L===0?m.status="normal":L<w?m.status="pulling":m.status="loosing",r("change",{status:m.status,distance:L})},S=()=>m.status!=="loading"&&m.status!=="complete",T=()=>d.value==window?zr()==0:d.value&&d.value.scrollTop==0,B=L=>{S()&&(T()?(s.start(L),m.isPullRefresh=!0,m.moving=!0):(m.distance=0,m.isPullRefresh=!1))},q=L=>{S()&&m.moving&&(s.move(L),s.isVertical()&&s.state.deltaY>0&&m.isPullRefresh&&(L.cancelable&&L.preventDefault(),O(h(s.state.deltaY))))},M=()=>{m.moving=!1,m.isPullRefresh&&S()&&s.state.deltaY&&(m.status==="loosing"?(O(+l.headHeight,!0),r("update:modelValue",!0),n.nextTick(()=>r("refresh"))):O(0)),setTimeout(()=>{s.reset()},0)};return n.watch(()=>l.modelValue,L=>{L?O(+l.headHeight,!0):O(0)}),()=>{const L=[];let R=null;if(m.status==="loading"){if(R=a?.loading?.()??null,!R){const V={class:["fox-pull-refresh-container-topbox-icon"]};R=n.h(o,V)}}else m.status==="pulling"?R=a?.pulling?.()??null:m.status==="loosing"&&(R=a?.loosing?.()??null);R&&L.push(R);const w={class:["fox-pull-refresh-container-topbox-text"]},N=n.h("dive",w,[y.value]);L.push(N);const v={class:["fox-pull-refresh-container-topbox"],style:f.value},_=n.h("div",v,L),Z={class:"fox-pull-refresh-container",style:g.value},F=n.h("div",Z,[_,a?.default?.()]),C={ref:c,class:p.value};return fn()?Object.assign(C,{onTouchstart:B,onTouchmove:q,onTouchend:M}):Object.assign(C,{onMousedown:B,onMousemove:q,onMouseup:M}),n.h("div",C,[F])}}}),{componentName:hd,create:md,scope:gd}=ie("pull-refresh"),Pl=md(dd(hd,gd,bl));function pd(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:l}){const r=e,a=n.computed(()=>({[r]:!0})),i=n.computed(()=>o.icon?{[`${r}__icon`]:!0,[`${r}__icon-${o.type}`]:!0}:{[`${r}__mark`]:!0,[`${r}__mark-${o.type}`]:!0}),u=n.computed(()=>o.color?o.icon?{color:o.color}:{background:o.color}:null),s=n.computed(()=>{const d={[`${r}__text`]:!0,[`${r}__text-${o.type}`]:!0};return o.textPosition==="left"?d["is-left"]=!0:d["is-right"]=!0,d}),c=n.computed(()=>o.color?{color:o.color}:null);return()=>{let d=null;if(l.mark)d=l.mark()[0];else{const f={class:i.value,style:u.value};d=n.h(o.icon??"div",f)}const m={class:s.value,style:c.value},p=l.default?l.default():[],y=n.h("div",m,p),g={class:a.value};return o.textPosition==="right"?n.h("div",g,[d,y]):n.h("div",g,[y,d])}}}}const{componentName:vd,create:yd,scope:nm}=ie("indicator"),Il=yd(pd(vd));function bd(e,t){const o=document.createRange();o.setStart(e,0),o.setEnd(e,e.childNodes.length);const l=o.getBoundingClientRect().width;if(l>0){t(l);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 xd={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 wd(e,t,o,l=!1){return{props:{...xd},emits:["click"],setup(r,a){const i=n.ref(null),u=n.computed(()=>{const T={[`${e}`]:!0,"is-truncated":r.truncated};return r.type&&(T[`${e}--${r.type??"default"}`]=!0),r.size&&(T[`${e}--${r.size}`]=!0),T}),s=n.computed(()=>{const T={},B=r.textColor??r.color;return B&&(T.color=B),T}),c=(T,B)=>{let q=null;if(typeof r.highlightFilter=="string"&&r.highlightFilter.length>0){const M=r.highlightFilter;if(T.indexOf(M)!==-1){const R=T.replace(new RegExp(M,"g"),`<span>${M}</span>`);B.innerHTML=R,B.class["is-highlight"]=!0,q=n.h(r.tag,B)}}else if(typeof r.highlightFilter=="function"){const M=r.highlightFilter(T);M&&(B.innerHTML=M,B.class["is-highlight"]=!0,q=n.h(r.tag,B))}return q},d=T=>{a.emit("click",T)};let m="";const p=()=>{const T=i.value;if(!T)return;const B=T.clientWidth;bd(T,q=>{const M=T.innerHTML??"";de(M)||q<B||(m?o?.show(T,M,{type:"text",id:m,showArrow:r.showArrow},!0):m=o?.show(T,M,{type:"text",showArrow:r.showArrow},!0)??"")})},y=()=>{m&&o?.hide(m)};let g=null;const f=T=>{g||(g=setTimeout(()=>{p(),g=null},r.showAfter??0))},h=T=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{y()},r.hideAfter??0)},O=()=>{const T=i.value;T&&(T.addEventListener("mouseover",f),T.addEventListener("mouseleave",h))},S=()=>{const T=i.value;T&&(T.removeEventListener("mouseover",f),T.removeEventListener("mouseleave",h))};return n.onMounted(()=>{!ue(r.showOverflowTooltip)||!o||O()}),n.onBeforeUnmount(()=>{!ue(r.showOverflowTooltip)||!o||S()}),()=>{const T={onClick:d,class:u.value,style:s.value,ref:i};let B=null;if(ue(r.numberFormat)&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const w=R[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const N=xe(r.digits),v=xe(r.decimalLength),_=ue(r.autoPadding);let Z=`${R[0].children}`,F=Z.split("").reverse().join("");F=Wt(F,v,_,N,r.separator),Z=F.split("").reverse().join(""),r.highlightFilter!==void 0&&(B=c(Z,T)),B||(T.innerHTML=Z,B=n.h(r.tag,T))}}}else{if(r.highlightFilter!==void 0&&typeof a.slots.default=="function"){const R=a.slots.default();if(Array.isArray(R)&&R.length===1){const w=R[0].type.toString();if(w==="Symbol(Text)"||w==="Symbol(v-txt)"){const N=`${R[0].children}`;B=c(N,T),B||(T.innerHTML=N,B=n.h(r.tag,T))}}}B||(B=n.h(r.tag,T,{default:a.slots.default}))}if(!r.mark&&!r.icon&&!a.slots.mark)return B;let M=null;if(r.icon){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const w={},N=r.color;N&&(w.color=N);const v={class:R,style:w};M=n.h("view",v,n.h(r.icon))}else if(a.slots.mark){const R={[`${e}__mark-wrap`]:!0};r.type&&(R[`${e}__mark-wrap--${r.type}`]=!0);const w={},N=r.color;N&&(w.color=N);const v={class:R,style:w};M=n.h("view",v,{default:a.slots.mark})}else{const R={[`${e}__mark`]:!0};r.type&&(R[`${e}__mark--${r.type??"default"}`]=!0);const w={},N=r.color;N&&(w["background-color"]=N);const v={class:R,style:w};M=n.h("view",v)}const L={class:{"fox-text__wrap":!0,"text-left":r.textPosition==="left","text-right":r.textPosition==="right"}};return n.h("view",L,[M,B])}}}}const{componentName:Sd,create:Td,scope:$d}=ie("text"),Ol=Td(wd(Sd,$d,Ie,!1)),Cd={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1,default:Ne.ArrowUp}};function Nd(e,t,o){return{props:{...Cd},emits:["click","update:modelValue"],setup(l,{emit:r}){const a=n.computed(()=>{const m={[`${e}`]:!0};return l.disabled?m[`${e}__disabled`]=!0:m[`${e}__${l.type}`]=!0,m}),i=he(l,"modelValue"),u=n.computed(()=>i.value?l.expandText??"":l.collapseText??""),s=n.computed(()=>({[`${e}__text`]:!0})),c=n.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),d=()=>{r("update:modelValue",!i.value)};return()=>{const m=[];if(u.value){const f={class:s.value},h=n.h("span",f,[u.value]);m.push(h)}const p={class:c.value},y=o(l.icon,p);return y&&m.push(y),n.h("div",{class:a.value,onClick:d},m)}}}}const{componentName:Ed,create:kd,scope:Pd}=ie("more-button"),Id=(e,t)=>(e=e??Ne.ArrowUp,n.h(b.ElIcon,t,{default:()=>[n.h(e)]})),Vl=kd(Nd(Ed,Pd,Id));function Od(e){e.stopPropagation()}let Vd=class{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=fn()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=dn(),l=(r,a,i,u)=>{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),Od(r),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(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 Dd(e,t){return new Vd(e,t)}const Fd={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},Rd=(e,t,o,l=!1)=>({props:{...Fd},emits:["click"],setup(r,{slots:a,emit:i}){const u=n.reactive({top:r.top,right:r.right,bottom:r.bottom,left:r.left}),s=n.computed(()=>{const S=[`${e}`];return r.customClass&&S.push(r.customClass),S}),c=n.computed(()=>{const S={};return de(u.top)||(S.top=u.top),de(u.right)||(S.right=u.right),de(u.bottom)||(S.bottom=u.bottom),de(u.left)||(S.left=u.left),de(r.width)||(S.width=r.width),de(r.height)||(S.height=r.height),de(r.color)||(S.color=r.color),de(r.background)||(S.background=r.background),de(r.borderRadius)||(S["border-radius"]=r.borderRadius),S}),d=n.computed(()=>({[`${e}__icon`]:!0})),m=()=>{i("click")},p=n.ref(null),y=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},g={x:0,y:0},O=Dd(S=>{if(!p.value)return;const T=p.value;y(),u.left=T.offsetLeft,u.top=T.offsetTop,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`,T.style.right=null,T.style.bottom=null,g.x=u.left,g.y=u.top},S=>{if(!p.value)return;const T=p.value;y(),u.left=g.x+S.x,u.top=g.y+S.y,T.style.left=`${u.left}px`,T.style.top=`${u.top}px`});return n.onMounted(()=>{if(r.draggable&&p.value){const S=[p.value];O.open(S)}}),n.onBeforeUnmount(()=>{r.draggable&&p.value&&O.close()}),()=>{let S=[];const T=typeof a.default=="function"?a.default():[];if(T&&T.length>0)S=T;else{const q=n.h(o,{class:d.value});S.push(q)}const B={ref:q=>{p.value=q},class:s.value,style:c.value,onClick:m};return n.h("view",B,S)}}}),{componentName:Ad,create:Md,scope:Ld}=ie("floating-button"),Dl=Md(Rd(Ad,Ld,Ac,!1));function Bd(e){return e===window}const Kr=e=>{const t=n.unref(e);if(Bd(t)){const o=t.innerWidth,l=t.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return t&&t.getBoundingClientRect?t.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},{componentName:_d,create:qd,scope:om}=ie("tour"),jd=qd({components:{Close:Ne.Close,ElPopover:b.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=_d,l=n.reactive({showTour:e.modelValue,showPopup:!1,active:0}),r=n.ref({}),a=n.computed(()=>`${o}`),i=n.computed(()=>{const{offset:g,maskWidth:f,maskHeight:h}=e,{width:O,height:S,left:T,top:B}=r.value,q=e.steps[l.active].offset??g,M=[T+O/2,B+S/2],L=Number(f||O),R=Number(h||S);return{width:`${L+ +q.left+q.right}px`,height:`${R+q.top+q.bottom}px`,top:`${M[1]-R/2-+q.top}px`,left:`${M[0]-L/2-+q.left}px`}}),u=g=>{g=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,n.nextTick(()=>{l.showPopup=!0,d()}),t("change",l.active)},s=g=>g.popoverWidth??e.width,c=g=>g.location??e.location,d=()=>{const g=document.querySelector(`${e.steps[l.active].target}`),f=Kr(g);r.value={x:f.left,y:f.top,top:f.top,left:f.left,width:f.width,height:f.height}},m=()=>{l.showTour=!1,l.showPopup=!1,t("close",l.active),t("update:modelValue",!1)},p=()=>{e.closeOnClickOverlay&&m()},y=(g,f=0)=>{g&&d(),e.steps,l.active=f,l.showTour=g,l.showPopup=g};return n.onMounted(()=>{y(e.modelValue,e.current)}),n.watch(()=>e.modelValue,g=>{y(g)}),{...n.toRefs(l),classes:a,maskStyle:i,changeStep:u,popoverWidth:s,popoverLocation:c,close:m,handleClickMask:p}}}),zd={key:0,class:"fox-tour__content"},Hd={key:0,class:"fox-tour__content-top"},Kd={class:"fox-tour__content-inner"},Wd={class:"fox-tour__content-bottom"},Yd={class:"fox-tour__content-bottom-init"},Gd={class:"fox-tour__content-bottom-operate"},Ud={key:1,class:"fox-tour__content fox-tour__content-tile"},Xd={class:"fox-tour__content-inner"};function Zd(e,t,o,l,r,a){const i=n.resolveComponent("Close"),u=n.resolveComponent("fox-button"),s=n.resolveComponent("ElPopover");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(e.classes)},[n.withDirectives(n.createElementVNode("div",{class:"fox-tour__masked",onClick:t[0]||(t[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[n.vShow,e.showTour]]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,(c,d)=>(n.openBlock(),n.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(n.openBlock(),n.createBlock(s,{key:0,"popper-class":"popperClass",visible:e.showPopup,placement:e.popoverLocation(c),width:e.popoverWidth(c)},{reference:n.withCtx(()=>[e.showTour?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["fox-tour__mask",[e.mask?"":"fox-tour__mask-none"]]),style:n.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(n.openBlock(),n.createElementBlock("div",zd,[e.showTitleBar?(n.openBlock(),n.createElementBlock("div",Hd,[n.createElementVNode("div",{onClick:t[1]||(t[1]=(...m)=>e.close&&e.close(...m))},[n.createVNode(i,{class:"fox-tour__content-top-close"})])])):n.createCommentVNode("",!0),n.createElementVNode("div",Kd,n.toDisplayString(c.content),1),n.createElementVNode("div",Wd,[n.createElementVNode("div",Yd,n.toDisplayString(e.active+1)+"/"+n.toDisplayString(e.steps.length),1),n.createElementVNode("div",Gd,[n.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(n.openBlock(),n.createBlock(u,{key:0,small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[2]||(t[2]=m=>e.changeStep("prev"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.prevStepText),1)]),_:1})):n.createCommentVNode("",!0)]),e.steps.length-1==e.active?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.completeText),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(n.openBlock(),n.createBlock(u,{key:0,type:"primary",small:"",class:"fox-tour__content-bottom-operate-btn",onClick:t[3]||(t[3]=m=>e.changeStep("next"))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.nextStepText),1)]),_:1})):n.createCommentVNode("",!0)])])])])):n.createCommentVNode("",!0),e.type=="tile"?(n.openBlock(),n.createElementBlock("div",Ud,[n.createElementVNode("div",Xd,n.toDisplayString(c.content),1)])):n.createCommentVNode("",!0)])]),_:2},1032,["visible","placement","width"])):n.createCommentVNode("",!0)]))),128))],2)}const Fl=Le(jd,[["render",Zd]]),Pe=e=>typeof e=="number"?`${e}px`:/^d+(\.?d+)$/.test(e)?`${e}px`:e,nt=e=>e==null;class Jd{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=fn()}open(t){Array.isArray(t)||(t=[t]),this.els=t;const o=dn(),l=(r,a,i,u)=>{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),l(o.state.deltaX,o.state.deltaY))},this.touchend=()=>{l(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 Jd(e,t)}const ko=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;let ct=[];const Po=e=>{const t=e;t.key==="Escape"&&ct.forEach(o=>o(t))},Qd=e=>{n.onMounted(()=>{ct.length===0&&document.addEventListener("keydown",Po),ko&&ct.push(e)}),n.onBeforeUnmount(()=>{ct=ct.filter(t=>t!==e),ct.length===0&&ko&&document.removeEventListener("keydown",Po)})},Nn="fox-focus-trap.focus-after-trapped",En="fox-focus-trap.focus-after-released",eh="fox-focus-trap.focusout-prevented",Io={cancelable:!0,bubbles:!1},th={cancelable:!0,bubbles:!1},Oo="foxFocusAfterTrapped",Vo="foxFocusAfterReleased",nh=Symbol("foxFocusTrap"),Rl=n.ref(),hn=n.ref(0),Al=n.ref(0);let At=0;const Wr=e=>{const t=[],o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const r=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||r?NodeFilter.FILTER_SKIP:l.tabIndex>=0||l===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)t.push(o.currentNode);return t},lh=(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},Do=(e,t)=>{for(const o of e)if(!lh(o,t))return o},oh=e=>{const t=Wr(e),o=Do(t,e),l=Do(t.reverse(),e);return[o,l]},rh=e=>e instanceof HTMLInputElement&&"select"in e,Je=(e,t)=>{if(e&&e.focus){const o=document.activeElement;e.focus({preventScroll:!0}),Al.value=window.performance.now(),e!==o&&rh(e)&&t&&e.select()}};function Fo(e,t){const o=[...e],l=e.indexOf(t);return l!==-1&&o.splice(l,1),o}const ah=()=>{let e=[];return{push:l=>{const r=e[0];r&&l!==r&&r.pause(),e=Fo(e,l),e.unshift(l)},remove:l=>{e=Fo(e,l),e[0]?.resume?.()}}},ih=(e,t=!1)=>{const o=document.activeElement;for(const l of e)if(Je(l,t),document.activeElement!==o)return},Ro=ah(),sh=()=>hn.value>Al.value,Mt=()=>{Rl.value="pointer",hn.value=window.performance.now()},Ao=()=>{Rl.value="keyboard",hn.value=window.performance.now()},uh=()=>(n.onMounted(()=>{At===0&&(document.addEventListener("mousedown",Mt),document.addEventListener("touchstart",Mt),document.addEventListener("keydown",Ao)),At++}),n.onBeforeUnmount(()=>{At--,At<=0&&(document.removeEventListener("mousedown",Mt),document.removeEventListener("touchstart",Mt),document.removeEventListener("keydown",Ao))}),{focusReason:Rl,lastUserFocusTimestamp:hn,lastAutomatedFocusTimestamp:Al}),Lt=e=>new CustomEvent(eh,{...th,detail:e}),{componentName:rm,create:ch,scope:am}=ie("focus-trap"),fh={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"}},dh=ch({props:fh,emits:[Oo,Vo,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{slots:t,emit:o}){const l=n.ref();let r,a;const{focusReason:i}=uh();Qd(f=>{ue(e.trapped)&&!u.paused&&o("release-requested",f)});const u={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=f=>{if(!e.loop&&!ue(e.trapped)||u.paused)return;const{key:h,altKey:O,ctrlKey:S,metaKey:T,currentTarget:B,shiftKey:q}=f,{loop:M}=e,L=h==="Tab"&&!O&&!S&&!T,R=document.activeElement;if(L&&R){const w=B,[N,v]=oh(w);if(N&&v){if(!q&&R===v){const Z=Lt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),M&&Je(N,!0))}else if(q&&[N,w].includes(R)){const Z=Lt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||(f.preventDefault(),M&&Je(v,!0))}}else if(R===w){const Z=Lt({focusReason:i.value});o("focusout-prevented",Z),Z.defaultPrevented||f.preventDefault()}}};n.provide(nh,{focusTrapRef:l,onKeydown:s}),n.watch(()=>e.focusTrapEl,f=>{f&&(l.value=f)},{immediate:!0}),n.watch([l],([f],[h])=>{f&&(f.addEventListener("keydown",s),f.addEventListener("focusin",m),f.addEventListener("focusout",p)),h&&(h.removeEventListener("keydown",s),h.removeEventListener("focusin",m),h.removeEventListener("focusout",p))});const c=f=>{o(Oo,f)},d=f=>o(Vo,f),m=f=>{const h=n.unref(l);if(!h)return;const O=f.target,S=f.relatedTarget,T=O&&h.contains(O);ue(e.trapped)||S&&h.contains(S)||(r=S),T&&o("focusin",f),!u.paused&&ue(e.trapped)&&(T?a=O:Je(a,!0))},p=f=>{const h=n.unref(l);if(!(u.paused||!h))if(!e.escape&&ue(e.trapped)){const O=f.relatedTarget;!Hn(O)&&!h.contains(O)&&setTimeout(()=>{if(!u.paused&&ue(e.trapped)){const S=Lt({focusReason:i.value});o("focusout-prevented",S),S.defaultPrevented||Je(a,!0)}},0)}else{const O=f.target;O&&h.contains(O)||o("focusout",f)}};async function y(){await n.nextTick();const f=n.unref(l);if(f){Ro.push(u);const h=f.contains(document.activeElement)?r:document.activeElement;if(r=h,!f.contains(h)){const S=new Event(Nn,Io);f.addEventListener(Nn,c),f.dispatchEvent(S),S.defaultPrevented||n.nextTick(()=>{let T=e.focusStartEl;jo(T)||(Je(T),document.activeElement!==T&&(T="first")),T==="first"&&ih(Wr(f),!0),(document.activeElement===h||T==="container")&&Je(f)})}}}function g(){const f=n.unref(l);if(f){f.removeEventListener(Nn,c);const h=new CustomEvent(En,{...Io,detail:{focusReason:i.value}});f.addEventListener(En,d),f.dispatchEvent(h),!h.defaultPrevented&&(i.value=="keyboard"||!sh())&&Je(r??document.body,!0),f.removeEventListener(En,c),Ro.remove(u)}}return n.onMounted(()=>{ue(e.trapped)&&y(),n.watch(()=>e.trapped,f=>{ue(f)?y():g()})}),n.onBeforeUnmount(()=>{ue(e.trapped)&&g()}),()=>typeof t.default=="function"?t.default({"handle-keydown":s}):null}}),{componentName:hh,create:mh,scope:im}=ie("floating-window"),gh=Symbol.for("InnerPageScopeKey"),ph=Symbol.for("PageWrapperKey"),vh={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}},yh=mh({inheritAttrs:!1,components:{FoxIcon:b.ElIcon,FocusTrap:dh},props:{...vh},emits:["update:modelValue","update:collapse"],setup(e,{emit:t}){const o=hh,l=n.ref(e.modelValue),r=n.computed(()=>!e.teleport);n.watch(()=>e.modelValue,k=>{l.value=k});const a=n.computed(()=>l.value===!1?!1:!R.value),i=n.ref(e.left),u=n.ref(e.top),s=n.ref(e.right),c=n.ref(e.bottom),d=n.computed(()=>{const k=["fox-floating-window"];return e.customClass&&k.push(e.customClass),k}),m=n.computed(()=>{const k={};return nt(i.value)?k.left="auto":k.left=Pe(i.value),nt(u.value)?k.top="auto":k.top=Pe(u.value),nt(s.value)?k.right="auto":k.right=Pe(s.value),nt(c.value)?k.bottom="auto":k.bottom=Pe(c.value),nt(e.zIndex)||(k["z-index"]=Pe(e.zIndex)),nt(M.value)||(k.height=M.value),nt(L.value)||(k.width=L.value),k}),p=n.computed(()=>e.closeIcon??Ne.Close),y=n.computed(()=>e.collapseIcon??Ne.ArrowUp),g=n.computed(()=>e.collapseText??""),f=n.computed(()=>e.collapsePosition==="left"?e.expandIcon??Ne.ArrowRight:e.expandIcon??Ne.ArrowLeft),h=n.computed(()=>e.expandText??e.title??"展开"),O=n.computed(()=>({[`${o}__collapse-text`]:!0})),S=n.computed(()=>({[`${o}__collapse-icon`]:!0,"is-expand":!R.value,"is-collapse":R.value})),T=n.ref(),B=n.ref(null),q=n.ref(null),M=n.computed(()=>Pe(e.height)||""),L=n.computed(()=>Pe(e.width)||""),R=n.ref(ue(e.collapse)),w=(k,H=!0)=>{R.value!==k&&(R.value=k,k?$():D(),t("update:collapse",k),k&&typeof _.onHide=="function"?_.onHide():!k&&typeof _.onShow=="function"&&_.onShow())};n.watch(()=>e.collapse,k=>{w(k)});const N=()=>{v()},v=k=>{k=k??!R.value,w(k)};n.provide(gh,!0);const _={setCollapse:w,setFixedNavVisible:k=>{Q.value=k}};n.provide(ph,_);const Z=()=>{typeof _.beforeClose=="function"?_.beforeClose(()=>{l.value=!1}):l.value=!1},F=n.ref(null),C=n.computed(()=>!e.fixedNavTeleport),V=n.computed(()=>{const k=["fox-floating-window__fixednav"];return e.expandClass&&k.push(e.expandClass),e.collapsePosition==="left"?k.push("is-left"):e.collapsePosition==="right"&&k.push("is-right"),k}),A=n.ref(""),W=n.computed(()=>{const k={};return A.value?k.top=A.value:e.collapseTop&&(k.top=e.collapseTop),k}),X=n.ref(R.value),Q=n.computed({set:k=>{X.value=k},get:()=>l.value===!1?!1:X.value});let ne=null;const P=()=>{typeof ne=="function"&&(ne(),ne=null)},$=()=>{F.value&&F.value.classList.add("slide-in"),Q.value=!0,ne=()=>{F.value&&F.value.classList.remove("slide-in")}},D=()=>{F.value&&F.value.classList.add("slide-out"),ne=()=>{F.value&&F.value.classList.remove("slide-out"),Q.value=!1}},I=()=>{i.value=null,u.value=null,s.value=null,c.value=null},x={x:0,y:0},te=Eo(k=>{if(!T.value)return;const H=T.value;if(I(),e.origin==="left-top")i.value=H.offsetLeft,u.value=H.offsetTop,x.x=i.value,x.y=u.value;else if(e.origin==="left-bottom"){const ee=document.documentElement.clientHeight||document.body.clientHeight;i.value=H.offsetLeft,c.value=ee-(H.offsetTop+H.offsetHeight),x.x=i.value,x.y=c.value}else if(e.origin==="right-bottom"){const ee=document.documentElement.clientWidth||document.body.clientWidth,le=document.documentElement.clientHeight||document.body.clientHeight;s.value=ee-(H.offsetLeft+H.offsetWidth),c.value=le-(H.offsetTop+H.offsetHeight),x.x=s.value,x.y=c.value}else{const ee=document.documentElement.clientWidth||document.body.clientWidth;s.value=ee-(H.offsetLeft+H.offsetWidth),u.value=H.offsetTop,x.x=s.value,x.y=u.value}},k=>{if(!T.value)return;const H=T.value;I(),e.origin==="left-top"?(i.value=x.x+k.x,u.value=x.y+k.y,H.style.left=Pe(i.value),H.style.top=Pe(u.value)):e.origin==="left-bottom"?(i.value=x.x+k.x,c.value=x.y-k.y,H.style.left=Pe(i.value),H.style.bottom=Pe(c.value)):e.origin==="right-bottom"?(s.value=x.x-k.x,c.value=x.y-k.y,H.style.right=Pe(s.value),H.style.bottom=Pe(c.value)):(s.value=x.x-k.x,u.value=x.y+k.y,H.style.right=Pe(s.value),H.style.top=Pe(u.value))}),Y={x:0,y:0},z=Eo(k=>{F.value&&(Y.x=F.value.offsetLeft,Y.y=F.value.offsetTop)},k=>{if(!F.value)return;const H=Y.y+k.y;A.value=`${H}px`}),U=()=>{if(T.value){const k=T.value.querySelector(".fox-floating-window__body > .fox-page > .fox-footer-bar");q.value=k}};return n.onMounted(()=>{if(e.draggable&&T.value){const k=[];B.value&&k.push(B.value),e.footerDraggable&&(U(),q.value&&k.push(q.value)),te.open(k)}e.collapse===!0&&w(e.collapse,!1),F.value&&z.open(F.value)}),n.onBeforeUnmount(()=>{e.draggable&&B.value&&te.close(),F.value&&z.close()}),{classes:d,styles:m,isShow:a,closeIcon:p,onClose:Z,dialogRef:T,headerRef:B,onClickToggle:N,collapseIcon:y,collapseText:g,collapseTextClasses:O,collapseIconClasses:S,expandIcon:f,expandText:h,isShowFixedNav:Q,fixedNavRef:F,fixedNavClasses:V,fixedNavStyles:W,onAnimationEnd:P,teleportDisabled:r,fixedNavTeleportDisabled:C}}}),bh={ref:"headerRef",class:"fox-floating-window__header"},xh={class:"fox-floating-window__title"},wh={class:"fox-floating-window__tools"},Sh={class:"fox-floating-window__body"},Th={class:"fox-floating-window__fixednav__text"};function $h(e,t,o,l,r,a){const i=n.resolveComponent("FoxIcon"),u=n.resolveComponent("FocusTrap");return n.openBlock(),n.createElementBlock(n.Fragment,null,[(n.openBlock(),n.createBlock(n.Teleport,{to:e.teleport,disabled:e.teleportDisabled},[n.createVNode(n.Transition,{name:"fox-floating-window-fade"},{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",{ref:"dialogRef",class:n.normalizeClass(e.classes),style:n.normalizeStyle(e.styles),tabindex:"-1"},[n.createVNode(u,{loop:!0,escape:!0,trapped:e.isShow,"focus-trap-el":e.dialogRef,"focus-start-el":"container"},{default:n.withCtx(()=>[n.createElementVNode("div",bh,[n.renderSlot(e.$slots,"header",{},()=>[n.createElementVNode("span",xh,n.toDisplayString(e.title),1),n.createElementVNode("div",wh,[e.showCollapse?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fox-floating-window__collapse",onClick:t[0]||(t[0]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[n.createElementVNode("span",{class:n.normalizeClass(e.collapseTextClasses)},n.toDisplayString(e.collapseText),3),n.createVNode(i,{class:n.normalizeClass(e.collapseIconClasses)},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.collapseIcon)))]),_:1},8,["class"])])):n.createCommentVNode("",!0),e.showClose?(n.openBlock(),n.createBlock(i,{key:1,class:"fox-floating-window__close",onClick:e.onClose},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.closeIcon)))]),_:1},8,["onClick"])):n.createCommentVNode("",!0)])])],512),n.createElementVNode("div",Sh,[n.renderSlot(e.$slots,"default")])]),_:3},8,["trapped","focus-trap-el"])],6),[[n.vShow,e.isShow]])]),_:3})],8,["to","disabled"])),(n.openBlock(),n.createBlock(n.Teleport,{to:e.fixedNavTeleport,disabled:e.fixedNavTeleportDisabled},[n.withDirectives(n.createElementVNode("div",{ref:"fixedNavRef",class:n.normalizeClass(e.fixedNavClasses),style:n.normalizeStyle(e.fixedNavStyles),onAnimationend:t[2]||(t[2]=(...s)=>e.onAnimationEnd&&e.onAnimationEnd(...s))},[n.createElementVNode("div",{class:"fox-floating-window__fixednav__inner",onClick:t[1]||(t[1]=(...s)=>e.onClickToggle&&e.onClickToggle(...s))},[n.createVNode(i,{class:"fox-floating-window__fixednav__icon"},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.expandIcon)))]),_:1}),n.createElementVNode("div",Th,n.toDisplayString(e.expandText),1)])],38),[[n.vShow,e.isShowFixedNav]])],8,["to","disabled"]))],64)}const Ml=Le(yh,[["render",$h]]);function Ch(e,t){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return ir(o.name,()=>o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:sm,create:Nh,scope:um}=ie("domain-provider"),Ll=Nh(Ch()),Eh={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 kh(e,t){return{inheritAttrs:!1,props:Eh,setup(o,{slots:l}){if(it&&window.IntersectionObserver){const r=new WeakMap;let a=new Map;const i=(p,y)=>{if(d===null){a.set(p,{visible:null,callback:y});return}r.has(p)&&d.unobserve(p),r.set(p,{visible:null,callback:y}),d.observe(p)},u=p=>{if(d===null){a.delete(p);return}r.has(p)&&(r.delete(p),d.unobserve(p))};let s=o.initialVisibleObserverSize;ti({acquire:()=>{const p=s>0;return s--,p},get disabled(){return o.disabled},get initialHeight(){return o.initialInvisibleObserverHeight},observe:i,unobserve:u});let d=null;const m=(p,y,g)=>{d=new IntersectionObserver(f=>{for(let h of f){let O=!1;h.intersectionRatio>0&&(O=!0);const S=r.get(h.target);if(S)try{if(o.loadPolicy==="lazy"&&!O&&S.visible!==null)return;S.visible=O,S.callback(O)}catch(T){console.error(T)}}},{root:p,rootMargin:y,threshold:g}),a.forEach((f,h)=>{r.set(h,f),d?.observe(h)}),a.clear()};n.watch([()=>o.root,()=>o.disabled],([p,y])=>{if(y||!p||d)return;let g=null;typeof p=="string"?g=document.querySelector(p):g=p,g&&m(g,o.rootMargin,o.threshold)},{immediate:!0}),n.onUnmounted(()=>{d&&(d.disconnect(),d=null)})}return()=>typeof l.default=="function"?l.default():null}}}const{componentName:cm,create:Ph,scope:fm}=ie("rolling-provider"),Bl=Ph(kh()),Ih=[Yn,Un,Xn,Zn,Jn,Se,Qn,el,Vt,tl,nl,ll,ol,rl,al,il,sl,ul,cl,fl,un,dl,hl,ml,gl,pl,vl,yl,xl,wl,Sl,Tl,$l,cn,Cl,Nl,El,kl,Pl,Pt,sn,Il,Ol,Vl,Dl,Fl,Ml,Ll,Bl],Oh=new Va(Ih,[Ra],"4.0.0");Object.defineProperty(exports,"FoxAffix",{enumerable:!0,get:()=>b.ElAffix});Object.defineProperty(exports,"FoxAlert",{enumerable:!0,get:()=>b.ElAlert});Object.defineProperty(exports,"FoxAnchor",{enumerable:!0,get:()=>b.ElAnchor});Object.defineProperty(exports,"FoxAnchorLink",{enumerable:!0,get:()=>b.ElAnchorLink});Object.defineProperty(exports,"FoxAside",{enumerable:!0,get:()=>b.ElAside});Object.defineProperty(exports,"FoxAutoResizer",{enumerable:!0,get:()=>b.ElAutoResizer});Object.defineProperty(exports,"FoxAutocomplete",{enumerable:!0,get:()=>b.ElAutocomplete});Object.defineProperty(exports,"FoxAvatar",{enumerable:!0,get:()=>b.ElAvatar});Object.defineProperty(exports,"FoxBacktop",{enumerable:!0,get:()=>b.ElBacktop});Object.defineProperty(exports,"FoxBadge",{enumerable:!0,get:()=>b.ElBadge});Object.defineProperty(exports,"FoxBreadcrumb",{enumerable:!0,get:()=>b.ElBreadcrumb});Object.defineProperty(exports,"FoxBreadcrumbItem",{enumerable:!0,get:()=>b.ElBreadcrumbItem});Object.defineProperty(exports,"FoxButton",{enumerable:!0,get:()=>b.ElButton});Object.defineProperty(exports,"FoxButtonGroup",{enumerable:!0,get:()=>b.ElButtonGroup});Object.defineProperty(exports,"FoxCalendar",{enumerable:!0,get:()=>b.ElCalendar});Object.defineProperty(exports,"FoxCard",{enumerable:!0,get:()=>b.ElCard});Object.defineProperty(exports,"FoxCarousel",{enumerable:!0,get:()=>b.ElCarousel});Object.defineProperty(exports,"FoxCarouselItem",{enumerable:!0,get:()=>b.ElCarouselItem});Object.defineProperty(exports,"FoxCascader",{enumerable:!0,get:()=>b.ElCascader});Object.defineProperty(exports,"FoxCascaderPanel",{enumerable:!0,get:()=>b.ElCascaderPanel});Object.defineProperty(exports,"FoxCheckTag",{enumerable:!0,get:()=>b.ElCheckTag});Object.defineProperty(exports,"FoxCheckbox",{enumerable:!0,get:()=>b.ElCheckbox});Object.defineProperty(exports,"FoxCheckboxButton",{enumerable:!0,get:()=>b.ElCheckboxButton});Object.defineProperty(exports,"FoxCheckboxGroup",{enumerable:!0,get:()=>b.ElCheckboxGroup});Object.defineProperty(exports,"FoxCol",{enumerable:!0,get:()=>b.ElCol});Object.defineProperty(exports,"FoxCollapse",{enumerable:!0,get:()=>b.ElCollapse});Object.defineProperty(exports,"FoxCollapseItem",{enumerable:!0,get:()=>b.ElCollapseItem});Object.defineProperty(exports,"FoxCollapseTransition",{enumerable:!0,get:()=>b.ElCollapseTransition});Object.defineProperty(exports,"FoxColorPicker",{enumerable:!0,get:()=>b.ElColorPicker});Object.defineProperty(exports,"FoxConfigProvider",{enumerable:!0,get:()=>b.ElConfigProvider});Object.defineProperty(exports,"FoxContainer",{enumerable:!0,get:()=>b.ElContainer});Object.defineProperty(exports,"FoxCountdown",{enumerable:!0,get:()=>b.ElCountdown});Object.defineProperty(exports,"FoxDatePicker",{enumerable:!0,get:()=>b.ElDatePicker});Object.defineProperty(exports,"FoxDescriptions",{enumerable:!0,get:()=>b.ElDescriptions});Object.defineProperty(exports,"FoxDescriptionsItem",{enumerable:!0,get:()=>b.ElDescriptionsItem});Object.defineProperty(exports,"FoxDialog",{enumerable:!0,get:()=>b.ElDialog});Object.defineProperty(exports,"FoxDivider",{enumerable:!0,get:()=>b.ElDivider});Object.defineProperty(exports,"FoxDrawer",{enumerable:!0,get:()=>b.ElDrawer});Object.defineProperty(exports,"FoxDropdown",{enumerable:!0,get:()=>b.ElDropdown});Object.defineProperty(exports,"FoxDropdownItem",{enumerable:!0,get:()=>b.ElDropdownItem});Object.defineProperty(exports,"FoxDropdownMenu",{enumerable:!0,get:()=>b.ElDropdownMenu});Object.defineProperty(exports,"FoxEmpty",{enumerable:!0,get:()=>b.ElEmpty});Object.defineProperty(exports,"FoxFooter",{enumerable:!0,get:()=>b.ElFooter});Object.defineProperty(exports,"FoxForm",{enumerable:!0,get:()=>b.ElForm});Object.defineProperty(exports,"FoxFormItem",{enumerable:!0,get:()=>b.ElFormItem});Object.defineProperty(exports,"FoxHeader",{enumerable:!0,get:()=>b.ElHeader});Object.defineProperty(exports,"FoxIcon",{enumerable:!0,get:()=>b.ElIcon});Object.defineProperty(exports,"FoxImage",{enumerable:!0,get:()=>b.ElImage});Object.defineProperty(exports,"FoxImageViewer",{enumerable:!0,get:()=>b.ElImageViewer});Object.defineProperty(exports,"FoxInput",{enumerable:!0,get:()=>b.ElInput});Object.defineProperty(exports,"FoxInputNumber",{enumerable:!0,get:()=>b.ElInputNumber});Object.defineProperty(exports,"FoxLink",{enumerable:!0,get:()=>b.ElLink});Object.defineProperty(exports,"FoxMain",{enumerable:!0,get:()=>b.ElMain});Object.defineProperty(exports,"FoxMenu",{enumerable:!0,get:()=>b.ElMenu});Object.defineProperty(exports,"FoxMenuItem",{enumerable:!0,get:()=>b.ElMenuItem});Object.defineProperty(exports,"FoxMenuItemGroup",{enumerable:!0,get:()=>b.ElMenuItemGroup});Object.defineProperty(exports,"FoxMessage",{enumerable:!0,get:()=>b.ElMessage});Object.defineProperty(exports,"FoxMessageBox",{enumerable:!0,get:()=>b.ElMessageBox});Object.defineProperty(exports,"FoxNotification",{enumerable:!0,get:()=>b.ElNotification});Object.defineProperty(exports,"FoxOption",{enumerable:!0,get:()=>b.ElOption});Object.defineProperty(exports,"FoxOptionGroup",{enumerable:!0,get:()=>b.ElOptionGroup});Object.defineProperty(exports,"FoxPageHeader",{enumerable:!0,get:()=>b.ElPageHeader});Object.defineProperty(exports,"FoxPagination",{enumerable:!0,get:()=>b.ElPagination});Object.defineProperty(exports,"FoxPopconfirm",{enumerable:!0,get:()=>b.ElPopconfirm});Object.defineProperty(exports,"FoxPopover",{enumerable:!0,get:()=>b.ElPopover});Object.defineProperty(exports,"FoxPopper",{enumerable:!0,get:()=>b.ElPopper});Object.defineProperty(exports,"FoxProgress",{enumerable:!0,get:()=>b.ElProgress});Object.defineProperty(exports,"FoxRadio",{enumerable:!0,get:()=>b.ElRadio});Object.defineProperty(exports,"FoxRadioButton",{enumerable:!0,get:()=>b.ElRadioButton});Object.defineProperty(exports,"FoxRadioGroup",{enumerable:!0,get:()=>b.ElRadioGroup});Object.defineProperty(exports,"FoxRate",{enumerable:!0,get:()=>b.ElRate});Object.defineProperty(exports,"FoxResult",{enumerable:!0,get:()=>b.ElResult});Object.defineProperty(exports,"FoxRow",{enumerable:!0,get:()=>b.ElRow});Object.defineProperty(exports,"FoxScrollbar",{enumerable:!0,get:()=>b.ElScrollbar});Object.defineProperty(exports,"FoxSegmented",{enumerable:!0,get:()=>b.ElSegmented});Object.defineProperty(exports,"FoxSelect",{enumerable:!0,get:()=>b.ElSelect});Object.defineProperty(exports,"FoxSelectV2",{enumerable:!0,get:()=>b.ElSelectV2});Object.defineProperty(exports,"FoxSkeleton",{enumerable:!0,get:()=>b.ElSkeleton});Object.defineProperty(exports,"FoxSkeletonItem",{enumerable:!0,get:()=>b.ElSkeletonItem});Object.defineProperty(exports,"FoxSlider",{enumerable:!0,get:()=>b.ElSlider});Object.defineProperty(exports,"FoxSpace",{enumerable:!0,get:()=>b.ElSpace});Object.defineProperty(exports,"FoxStatistic",{enumerable:!0,get:()=>b.ElStatistic});Object.defineProperty(exports,"FoxStep",{enumerable:!0,get:()=>b.ElStep});Object.defineProperty(exports,"FoxSteps",{enumerable:!0,get:()=>b.ElSteps});Object.defineProperty(exports,"FoxSubMenu",{enumerable:!0,get:()=>b.ElSubMenu});Object.defineProperty(exports,"FoxSwitch",{enumerable:!0,get:()=>b.ElSwitch});Object.defineProperty(exports,"FoxTabPane",{enumerable:!0,get:()=>b.ElTabPane});Object.defineProperty(exports,"FoxTable",{enumerable:!0,get:()=>b.ElTable});Object.defineProperty(exports,"FoxTableColumn",{enumerable:!0,get:()=>b.ElTableColumn});Object.defineProperty(exports,"FoxTableV2",{enumerable:!0,get:()=>b.ElTableV2});Object.defineProperty(exports,"FoxTabs",{enumerable:!0,get:()=>b.ElTabs});Object.defineProperty(exports,"FoxTag",{enumerable:!0,get:()=>b.ElTag});Object.defineProperty(exports,"FoxTimePicker",{enumerable:!0,get:()=>b.ElTimePicker});Object.defineProperty(exports,"FoxTimeSelect",{enumerable:!0,get:()=>b.ElTimeSelect});Object.defineProperty(exports,"FoxTimeline",{enumerable:!0,get:()=>b.ElTimeline});Object.defineProperty(exports,"FoxTimelineItem",{enumerable:!0,get:()=>b.ElTimelineItem});Object.defineProperty(exports,"FoxTooltip",{enumerable:!0,get:()=>b.ElTooltip});Object.defineProperty(exports,"FoxTransfer",{enumerable:!0,get:()=>b.ElTransfer});Object.defineProperty(exports,"FoxTree",{enumerable:!0,get:()=>b.ElTree});Object.defineProperty(exports,"FoxTreeSelect",{enumerable:!0,get:()=>b.ElTreeSelect});Object.defineProperty(exports,"FoxTreeV2",{enumerable:!0,get:()=>b.ElTreeV2});Object.defineProperty(exports,"FoxUpload",{enumerable:!0,get:()=>b.ElUpload});Object.defineProperty(exports,"FoxWatermark",{enumerable:!0,get:()=>b.ElWatermark});exports.AutocompleteItem=ul;exports.Broadcast=Kn;exports.BroadcastKey=ye;exports.CascaderItem=sl;exports.CheckboxItem=ml;exports.Content=Zn;exports.DataItemsKey=ut;exports.DateItem=ll;exports.DateUtils=Re;exports.DialogItem=$l;exports.Domain=Jt;exports.DomainKey=Fe;exports.DomainProvider=Ll;exports.FloatingButton=Dl;exports.FloatingWindow=Ml;exports.FooterBar=Xn;exports.FoxAutocompleteItem=ul;exports.FoxCascaderItem=sl;exports.FoxCheckboxItem=ml;exports.FoxContent=Zn;exports.FoxDateItem=ll;exports.FoxDialogItem=$l;exports.FoxDomainProvider=Ll;exports.FoxFloatingButton=Dl;exports.FoxFloatingWindow=Ml;exports.FoxFooterBar=Xn;exports.FoxGroup=Jn;exports.FoxGroupSetting=yl;exports.FoxHeaderBar=Un;exports.FoxHintText=Vt;exports.FoxIndicator=Il;exports.FoxInfiniteLoading=kl;exports.FoxInputItem=tl;exports.FoxInputNumberItem=il;exports.FoxItem=Se;exports.FoxMapping=Pt;exports.FoxMoneyItem=al;exports.FoxMoreButton=Vl;exports.FoxOverLay=cn;exports.FoxPage=Yn;exports.FoxPopup=Cl;exports.FoxPrice=sn;exports.FoxPullRefresh=Pl;exports.FoxRadioItem=hl;exports.FoxRateItem=gl;exports.FoxRollingProvider=Bl;exports.FoxRowItem=el;exports.FoxSearchBar=El;exports.FoxSelectItem=nl;exports.FoxSlotItem=Qn;exports.FoxStepsBar=Tl;exports.FoxSwitchItem=pl;exports.FoxTableItem=dl;exports.FoxTableMappingColumn=cl;exports.FoxTableRadioColumn=fl;exports.FoxTableSetting=un;exports.FoxTabsBar=xl;exports.FoxTabsContainer=wl;exports.FoxTabsPane=Sl;exports.FoxText=Ol;exports.FoxTimeItem=ol;exports.FoxTimeSelectItem=rl;exports.FoxToast=Nl;exports.FoxTour=Fl;exports.FoxTreeSelectItem=vl;exports.Group=Jn;exports.GroupSetting=yl;exports.HeaderBar=Un;exports.HintText=Vt;exports.Indicator=Il;exports.InfiniteLoading=kl;exports.InputItem=tl;exports.InputNumberItem=il;exports.Item=Se;exports.Mapping=Pt;exports.MoneyItem=al;exports.MoreButton=Vl;exports.OverLay=cn;exports.Page=Yn;exports.Popup=Cl;exports.Price=sn;exports.PriorityPolicy=Ae;exports.PullRefresh=Pl;exports.RadioItem=hl;exports.RateItem=gl;exports.RollingProvider=Bl;exports.RowItem=el;exports.SearchBar=El;exports.SelectItem=nl;exports.SlotItem=Qn;exports.StepsBar=Tl;exports.SwitchItem=pl;exports.TableItem=dl;exports.TableMappingColumn=cl;exports.TableRadioColumn=fl;exports.TableSetting=un;exports.TabsBar=xl;exports.TabsContainer=wl;exports.TabsPane=Sl;exports.Text=Ol;exports.TimeItem=ol;exports.TimeSelectItem=rl;exports.Toast=Nl;exports.Tour=Fl;exports.TreeSelectItem=vl;exports.UniqueID=wr;exports.ValidateSchema=or;exports.ValidateSchemaKey=_e;exports.cancelRaf=Xr;exports.clearNonNumber=sa;exports.clone=Rn;exports.compareTo=Vn;exports.createBroadcast=Ut;exports.createValidateSchema=Xt;exports.debounce=Ct;exports.debounceRef=wa;exports.decimalLength=Jo;exports.default=Oh;exports.defineBroadcast=da;exports.defineConfigDomain=ir;exports.defineDataItem=ur;exports.defineDomain=Wn;exports.defineItem=Te;exports.definePageState=fr;exports.defineSimpleItem=cr;exports.deleteGlobalValidator=va;exports.disabledProperty=De;exports.divide=jn;exports.excludeProps=Ee;exports.extend=at;exports.floatData=fa;exports.getGlobalValidateCheckEvents=tr;exports.getGlobalValidateResetEvents=lr;exports.getPageContentAreaHeight=jt;exports.getPageContentAreaWidth=zt;exports.getPageFooterAreaHeight=Et;exports.getPageHeaderAreaHeight=Nt;exports.getRootDomain=ft;exports.hasSymbol=Ko;exports.includeProps=Qo;exports.indexOf=ua;exports.installRules=sr;exports.integerLength=Zo;exports.isArray=Jr;exports.isArrayLike=Yo;exports.isBrowser=it;exports.isDate=ta;exports.isESModule=la;exports.isEmptyString=de;exports.isEqual=Ye;exports.isFunction=Dn;exports.isHidden=Gt;exports.isInnerPage=$a;exports.isMap=Qr;exports.isNil=Hn;exports.isNumberString=Xo;exports.isObject=Ge;exports.isPlainObject=Fn;exports.isPromise=zo;exports.isRegExp=Uo;exports.isSet=ea;exports.isString=jo;exports.isSubPage=Ca;exports.isSymbol=na;exports.isTouch=fn;exports.isWindow=Wo;exports.lastIndexOf=ca;exports.makeArray=ia;exports.merge=Go;exports.multiply=Bo;exports.negate=_o;exports.nextTick=ra;exports.numberFormat=Wt;exports.objectToString=Ho;exports.once=Sa;exports.overrideGlobalValidateHandler=ga;exports.property=Oe;exports.raf=zn;exports.readonlyProperty=Ve;exports.setGlobalValidateCheckEvents=ya;exports.setGlobalValidateHandler=ma;exports.setGlobalValidateMessages=xa;exports.setGlobalValidateResetEvents=ba;exports.setGlobalValidator=pa;exports.throttle=ar;exports.toBoolean=ue;exports.toNumber=xe;exports.toPadding=je;exports.toPx=me;exports.toPxDesc=Ce;exports.toTypeString=Yt;exports.toValue=he;exports.tryTimes=Zt;exports.typeOf=_t;exports.unNumberFormat=qo;exports.updatePageState=An;exports.useBroadcast=St;exports.useDomain=Ue;exports.useExpose=be;exports.useInnerSize=Gn;exports.usePageState=Qt;exports.usePosition=br;exports.useRawTouch=dn;exports.useRect=Kr;exports.useSize=en;exports.useTouch=cd;exports.valueLength=Ot;